Anvil/assets/SettingsNotifications-NcgYyc_l.js.map
André Jaenisch fe5164d76e
Updates
2024-08-14 17:01:21 +02:00

1 line
No EOL
4.6 KiB
Text

{"version":3,"file":"SettingsNotifications-NcgYyc_l.js","sources":["../../src/lib/components/molecules/SettingsNotifications.svelte"],"sourcesContent":["<!--\nSettingsNotifications molecule.\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 { SlideToggle } from '@skeletonlabs/skeleton';\n\timport { _ } from 'svelte-i18n';\n\timport { Eye24, EyeClosed24, Mention24 } from 'svelte-octicons';\n\n\tconst username = 'jane';\n\tconst instance = 'server.com';\n\tlet defaultNofication = 'mentioned';\n\tlet isNotifiedOnMention = false;\n\tlet labelYes = 'On';\n\tlet labelNo = 'Off';\n</script>\n\n<div class=\"flex flex-col flex-1 gap-6 pe-8 pb-8 ps-8 pt-20 bg-surface-100-800-token\">\n\t<div class=\"text-surface-500-400-token text-xl font-semibold\">\n\t\t{$_('settings.notifications.headline')}\n\t</div>\n\t<div class=\"flex flex-col gap-2\">\n\t\t<div class=\"text-surface-500-400-token font-semibold py-1\">\n\t\t\t{$_('settings.notifications.mentions.headline')}\n\t\t</div>\n\t\t<p class=\"text-sm leading-tight\">\n\t\t\t{@html $_('settings.notifications.mentions.intro', {\n\t\t\t\tvalues: { blockElementOpen: '<strong>', blockElementClose: '</strong>', instance, username }\n\t\t\t})}\n\t\t</p>\n\t\t<SlideToggle\n\t\t\tclass=\"flex gap-8\"\n\t\t\tname=\"mentions\"\n\t\t\tactive=\"bg-primary-500\"\n\t\t\tsize=\"sm\"\n\t\t\tbind:checked={isNotifiedOnMention}\n\t\t>\n\t\t\t{#if isNotifiedOnMention}\n\t\t\t\t{$_('settings.notifications.mentions.labelYes')}\n\t\t\t{:else}\n\t\t\t\t{$_('settings.notifications.mentions.labelNo')}\n\t\t\t{/if}\n\t\t</SlideToggle>\n\t</div>\n\n\t<div class=\"flex flex-col gap-2\">\n\t\t<div class=\"text-surface-500-400-token font-semibold py-1\">\n\t\t\t{$_('settings.notifications.default.headline')}\n\t\t</div>\n\t\t<p class=\"text-sm text-surface-500-400-token leading-tight\">\n\t\t\t{$_('settings.notifications.default.intro')}\n\t\t</p>\n\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t<label class=\"label flex items-center gap-2\">\n\t\t\t\t<input\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tclass=\"me-2\"\n\t\t\t\t\tname=\"theme\"\n\t\t\t\t\tvalue=\"light\"\n\t\t\t\t\tchecked={defaultNofication === 'all'}\n\t\t\t\t/>\n\t\t\t\t<Eye24 fill=\"currentColor\" />\n\t\t\t\t{$_('settings.notifications.default.notification.all')}\n\t\t\t</label>\n\t\t\t<label class=\"label flex items-center gap-2\">\n\t\t\t\t<input\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tclass=\"me-2\"\n\t\t\t\t\tname=\"theme\"\n\t\t\t\t\tvalue=\"dark\"\n\t\t\t\t\tchecked={defaultNofication === 'off'}\n\t\t\t\t/>\n\t\t\t\t<EyeClosed24 fill=\"currentColor\" />\n\t\t\t\t{$_('settings.notifications.default.notification.off')}\n\t\t\t</label>\n\t\t\t<label class=\"label flex items-center gap-2\">\n\t\t\t\t<input\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tclass=\"me-2\"\n\t\t\t\t\tname=\"theme\"\n\t\t\t\t\tvalue=\"auto\"\n\t\t\t\t\tchecked={defaultNofication === 'mentioned'}\n\t\t\t\t/>\n\t\t\t\t<Mention24 fill=\"currentColor\" />\n\t\t\t\t{$_('settings.notifications.default.notification.mentioned')}\n\t\t\t</label>\n\t\t</div>\n\t</div>\n</div>\n"],"names":["t2","t3","p0","html_tag","raw_value","cov_2k6gi7olia","s","ctx","t20_value","div6","div2","div1","append_hydration","b","current","dirty","set_data","t20"],"mappings":"6xmDAgBUA,EAAAC,GAAAC,EAAAC,EAAAC,GAAAC,EAAAC,EAAAA,QAAAC,EAAA,CAAA,EAAA,kfA8BFC,GAAAH,IAAAC,QAAAC,EAAA,CAAA,EAAA,uDAAmB,ssJAGtBE,EAAAC,CAAA,EAAAL,EAAA,EAAAC,EAAA,GAAA,MAnCKI,EAAAC,CAAA,EAAAN,EAAAC,EAAAA,WACAM,EAAAA,CAAAA,EAAAA,IAAAA,EAAAA,GAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,IAAAA,EAAAA,GAAAA,IAAAA,EAkCLF,EAAAR,CAAA,EAAAG,EAAAC,EAAAA,8jCAjCK,GAAA,IAAAD,EAAAQ,EAAAA,aAAAC,IAAAT,EAAAQ,EAAAA,WAAAE,EAAA,MAAAV,IAAAQ,WAAAT,KAAAA,EAAAG,KAAA,wCAAsD,0tCA8BxDF,EAAA,EAAAQ,EAAAC,EAAAA,EAAAA,CAAAA,KAAAA,CAAAA,IAAAT,EAAA,EAAAQ,WAAAE,EAAA,MAAAV,IAAAQ,WAAAL,KAAAA,EAAAD,KAAA,uDAAmB,EAAA,MAAAF,EAAAQ,EAAAA,WAAAR,EAAA,EAAAC,EAAAU,GAAAA,IAAAA,EAAAC,GAAAT,CAAA,GAAAH,EAAA,EAAAQ,EAAA,EAAA,EAAA,CAAA"}