{"version":3,"file":"SettingsSidebar-DPXrvCeg.js","sources":["../../src/lib/components/atoms/SettingsSidebar.svelte"],"sourcesContent":["<!--\nSettingsSidebar atom.\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 { AppRail, AppRailAnchor, AppRailTile } from '@skeletonlabs/skeleton';\n\timport { createEventDispatcher } from 'svelte';\n\timport { _, locale, locales } from 'svelte-i18n';\n\timport { Bell24, Gear24, Key24, Paintbrush24, Person24 } from 'svelte-octicons';\n\n\tlet currentTile = 0;\n\tconst dispatcher = createEventDispatcher();\n\n\tfunction onTileChanged(ev) {\n\t\tdispatcher('switch-settings', ev.target.value);\n\t}\n</script>\n\n<AppRail aspectRatio=\"auto\" gap=\"gap-8\" height=\"h-auto\" width=\"w-[230px]\" spacing=\"my-2\">\n\t<svelte:fragment slot=\"lead\">\n\t\t<AppRailTile\n\t\t\tregionLabel=\"!text-3xl text-surface-500-400-token bg-surface-100-800-token float-start w-full text-start ps-8 pt-8 -my-2\"\n\t\t\t>{$_('settings.headline')}</AppRailTile\n\t\t>\n\t</svelte:fragment>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"profile\"\n\t\tvalue=\"profile\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text-surface-500-400-token\"\n\t\ttitle={$_('settings.profile.label')}\n\t>\n\t\t<svelte:fragment slot=\"lead\">\n\t\t\t<Person24 fill=\"currentColor\" class=\"inline\" />\n\t\t</svelte:fragment>\n\t\t<span>{$_('settings.profile.label')}</span>\n\t</AppRailTile>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"account\"\n\t\tvalue=\"account\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text-surface-500-400-token\"\n\t\ttitle={$_('settings.account.label')}\n\t>\n\t\t<svelte:fragment slot=\"lead\">\n\t\t\t<Gear24 fill=\"currentColor\" class=\"inline\" />\n\t\t</svelte:fragment>\n\t\t<span>{$_('settings.account.label')}</span>\n\t</AppRailTile>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"ssh_gpg_keys\"\n\t\tvalue=\"ssh_gpg_keys\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text-surface-500-400-token\"\n\t\ttitle={$_('settings.ssh_gpg_keys.label')}\n\t>\n\t\t<svelte:fragment slot=\"lead\">\n\t\t\t<Key24 fill=\"currentColor\" class=\"inline\" />\n\t\t</svelte:fragment>\n\t\t<span>{$_('settings.ssh_gpg_keys.label')}</span>\n\t</AppRailTile>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"appearance\"\n\t\tvalue=\"appearance\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text-surface-500-400-token\"\n\t\ttitle={$_('settings.appearance.label')}\n\t>\n\t\t<svelte:fragment slot=\"lead\">\n\t\t\t<Paintbrush24 fill=\"currentColor\" class=\"inline\" />\n\t\t</svelte:fragment>\n\t\t<span>{$_('settings.appearance.label')}</span>\n\t</AppRailTile>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"notifications\"\n\t\tvalue=\"notifications\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text