1 line
No EOL
2.9 KiB
Text
1 line
No EOL
2.9 KiB
Text
{"version":3,"file":"Pagination-tx3XB2cB.js","sources":["../../src/lib/components/molecules/Pagination.svelte"],"sourcesContent":["<!--\nPagination for a page.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport { ChevronLeft24, ChevronRight24 } from 'svelte-octicons';\n\timport { _ } from 'svelte-i18n';\n\n\t/**\n\t * Translation keys.\n\t */\n\texport let i18n = {\n\t\tnext: '',\n\t\tprevious: ''\n\t};\n</script>\n\n<nav class=\"flex gap-4 items-center justify-center\">\n\t<a href=\"?page=-1\" class=\"flex gap-2 text-primary-500\">\n\t\t<ChevronLeft24 fill=\"currentColor\" />\n\t\t{$_(i18n.previous)}\n\t</a>\n\t<a href=\"?page=1\" class=\"text-surface-500-400-token\">1</a>\n\t<a href=\"?page=2\" class=\"text-surface-500-400-token\">2</a>\n\t<a href=\"?page=3\" class=\"text-surface-500-400-token\">3</a>\n\t<a\n\t\thref=\"?page=4\"\n\t\tclass=\"bg-primary-500 text-white dark:text-black rounded h-8 w-8 flex justify-center items-center\"\n\t>\n\t\t4\n\t</a>\n\t<a href=\"?page=5\" class=\"text-surface-500-400-token\">5</a>\n\t<a href=\"?page=6\" class=\"text-surface-500-400-token\">6</a>\n\t<span>…</span>\n\t<a href=\"?page=17\" class=\"text-surface-500-400-token\">17</a>\n\t<a href=\"?page=18\" class=\"text-surface-500-400-token\">18</a>\n\t<a href=\"?page=+1\" class=\"flex gap-2 text-primary-500\">\n\t\t{$_(i18n.next)}\n\t\t<ChevronRight24 fill=\"currentColor\" />\n\t</a>\n</nav>\n"],"names":["ctx","previous","cov_4q4ncaphn","b","s","set_data","t1","t1_value"],"mappings":"2oqBAeUA,EAAA,CAAA,EAAAA,EAASC,CAAAA,EAAAA,QAAa,2wJAAtBD,EAAAA,CAAAA,EAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,EAAAA,EAAAA,CAAAA,EAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,GAAAA,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,CAAAA,CAAAA,EAAAA,CAAAA,EAAAA,EAAAA,EAAAA,CAAAA,IAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,CAAAA,KAAAA,CAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,CAAAA,IAAAA,EAAAA,MAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,CAAAA,IAAAA,KAAAA,EAAAA,EAAAA,CAAAA,EAAAA,EAASC,CAAAA,EAAAA,QAAa,QAAAC,EAAA,EAAAC,EAAA,CAAA,EAAA,CAAA,IAAAD,EAAA,EAAAE,EAAA,GAAA,IAAAC,GAAAC,EAAAC,CAAA,GAAAL,EAAAC,EAAAA,EAAAD,CAAAA,EAAAA,CAAAA,IAAAA,EAAA,EAAAE"} |