{"version":3,"file":"Projects.stories-DyWBdEQK.js","sources":["../../stories/templates/Projects.stories.ts"],"sourcesContent":["/* Stories for Projects template.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * This 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 *\n * This 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 *\n * You should have received a copy of the GNU Affero General Public License along with this program. If not, see .\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport Projects from '$lib/components/templates/Projects.svelte';\n\nconst meta = {\n\ttitle: 'Templates/Projects',\n\tcomponent: Projects,\n\ttags: ['autodocs']\n} satisfies Meta;\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const NoProjects: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tprojects: []\n\t\t}\n\t}\n};\n\nexport const SingleProject: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tprojects: [\n\t\t\t\t{\n\t\t\t\t\tname: 'Project A',\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'This software project is a web-based application that will allow users to book appointments online.',\n\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t// Date back three months\n\t\t\t\t\tlastUpdated: new Date(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000),\n\t\t\t\t\tmembers: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person A',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'a'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person B',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'b'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person C',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'c'\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\ttags: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'ActivityPub',\n\t\t\t\t\t\t\tlink: '/tag/ActivityPub'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'css',\n\t\t\t\t\t\t\tlink: '/tag/css'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'guile',\n\t\t\t\t\t\t\tlink: '/tag/guile'\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n};\n\nexport const MultipleProjects: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tprojects: [\n\t\t\t\t{\n\t\t\t\t\tname: 'Project A',\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'This software project is a web-based application that will allow users to book appointments online.',\n\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t// Date back three months\n\t\t\t\t\tlastUpdated: new Date(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000),\n\t\t\t\t\tmembers: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person A',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'a'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person B',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'b'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person C',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'c'\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\ttags: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'ActivityPub',\n\t\t\t\t\t\t\tlink: '/tag/ActivityPub'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'css',\n\t\t\t\t\t\t\tlink: '/tag/css'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'guile',\n\t\t\t\t\t\t\tlink: '/tag/guile'\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'Project B',\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'This software project is a web-based application that will allow users to book appointments online.',\n\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t// Date back three months\n\t\t\t\t\tlastUpdated: new Date(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000),\n\t\t\t\t\tmembers: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person A',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'a'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person B',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'b'\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\ttags: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'ActivityPub',\n\t\t\t\t\t\t\tlink: '/tag/ActivityPub'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'css',\n\t\t\t\t\t\t\tlink: '/tag/css'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'guile',\n\t\t\t\t\t\t\tlink: '/tag/guile'\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n};\n"],"names":["meta","title","component","Projects","tags","NoProjects","args","data","projects","SingleProject","name","description","avatar","lastUpdated","Date","now","members","slug","link","MultipleProjects","parameters","docs","source","originalSource"],"mappings":"6dAgBA,MAAMA,EAAO,CACTC,MAAO,qBACPC,UAAWC,EACXC,KAAM,CAAC,UAAQ,CACnB,EAKaC,EAAoB,CAC7BC,KAAI,CACAC,KAAC,CACGC,SAAG,CAAA,CACZ,CACD,CACF,EAEaC,EAAuB,CAChCH,KAAI,CACAC,KAAC,CACGC,SACP,CAAA,CACeE,KAAG,YACNC,YACO,sGACJC,OAAQ,sBAERC,YAAa,IAAIC,KAAKA,KAAKC,IAAQ,EAAA,EAAI,GAAK,GAAK,GAAC,GAAA,GAAA,EACvDC,QACR,CAAA,CACiBN,KAAA,WACIE,OAAQ,sBACpBK,KAAA,GAAA,EAET,CACiBP,KAAA,WACIE,OAAQ,sBACpBK,KAAA,GAAA,EAET,CACiBP,KAAA,WACIE,OAAQ,sBACpBK,KAAA,GAAA,CAET,EACKb,KACL,CAAA,CACoBM,KAAA,cACCQ,KAAG,kBAAA,EAExB,CACYR,KAAA,MACIQ,KAAA,UAAA,EAEhB,CACcR,KAAA,QACIQ,KAAA,YAAA,CAClB,CAAA,CAEF,CAEF,CACD,CACF,EAEaC,EAA0B,CACnCb,KAAI,CACAC,KAAC,CACGC,SACP,CAAA,CACeE,KAAG,YACNC,YACO,sGACJC,OAAQ,sBAERC,YAAa,IAAIC,KAAKA,KAAKC,IAAQ,EAAA,EAAI,GAAK,GAAK,GAAC,GAAA,GAAA,EACvDC,QACR,CAAA,CACiBN,KAAA,WACIE,OAAQ,sBACpBK,KAAA,GAAA,EAET,CACiBP,KAAA,WACIE,OAAQ,sBACpBK,KAAA,GAAA,EAET,CACiBP,KAAA,WACIE,OAAQ,sBACpBK,KAAA,GAAA,CAET,EACKb,KACL,CAAA,CACoBM,KAAA,cACCQ,KAAG,kBAAA,EAExB,CACYR,KAAA,MACIQ,KAAA,UAAA,EAEhB,CACcR,KAAA,QACIQ,KAAA,YAAA,CAClB,CAAA,EAGF,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