commit 5bdfb8a082f98c76ef39bc01cdea08ee5f1654dc Author: Friederich Loheide Date: Sun Sep 27 17:17:10 2026 +0000 Gruppen-Plugin 1.0.0 Co-Authored-By: Claude Opus 5.5 (1M context) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ceeeb4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +*.zip diff --git a/README.md b/README.md new file mode 100644 index 0000000..112479e --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# Gruppen – Diskussionsgruppen für Inhaus + +Austausch zu Themen, Hobbys und Projekten – wie Gruppen bei Facebook, im eigenen Mitarbeiterportal. + +- **Alle können Gruppen gründen**, in drei Arten: + - **Offen** – alle sehen die Beiträge und treten mit einem Klick bei. + - **Geschlossen** – alle finden die Gruppe, Beiträge sehen nur Mitglieder; Beitritt auf Anfrage. + - **Privat** – nur Mitglieder finden die Gruppe; Beitritt nur auf Einladung. +- **Beiträge** mit Text (Links werden erkannt), bis zu 10 **Fotos und Dateien**, **Umfragen** (eine oder mehrere + Antworten), **Reaktionen** (👍 ❤️ 😂 😮 😢 👏), **Kommentare mit Antworten**; eigene Beiträge bearbeiten. +- **Rollen** je Gruppe: Admin, Moderation, Mitglied. Admins bearbeiten die Gruppe (Name, Beschreibung, Art, + Titelbild), vergeben Rollen und löschen die Gruppe; Moderation nimmt Anfragen an, **pinnt** Beiträge (bis zu 3), + löscht Beiträge und Kommentare und bearbeitet **Meldungen** der Mitglieder. +- **Benachrichtigungen**: neuer Beitrag (je Gruppe einmal, bis man wieder vorbeischaut; pro Gruppe abschaltbar), + Kommentare zu eigenen Beiträgen, Antworten, Einladungen, Beitrittsanfragen. +- Feed „Neues aus Ihren Gruppen“, Gruppen entdecken, Treffer in der globalen Suche, Startseiten-Kachel, + Abschnitt im Wochenüberblick. +- Fotos, Dateien und Titelbilder liegen nicht im öffentlichen Ordner und werden nur an Berechtigte ausgeliefert. + +Das Recht **„Alle Gruppen verwalten“** (Rollen) erlaubt, auch private Gruppen zu sehen und bei Meldungen +einzugreifen – bitte nur an die Personen vergeben, die das wirklich brauchen. + +Voraussetzung: Inhaus **0.39.0** oder neuer. + +## Installation + +1. `gruppen-.zip` unter https://git.loheide.cloud/friloo/inhaus-plugin-gruppen/releases laden. +2. Backend → **Plugins** → hochladen → aktivieren. Updates erscheinen danach automatisch. + +## Entwicklung + +```bash +npm install && npm run build # dist/ wird eingecheckt +npm run package # gruppen-.zip +``` + +Tests laufen in einer Inhaus-Installation mit dem Plugin unter `plugins/gruppen`: +`vendor-dev/bin/phpunit plugins/gruppen/tests`. diff --git a/bin/package b/bin/package new file mode 100755 index 0000000..e38c71d --- /dev/null +++ b/bin/package @@ -0,0 +1,29 @@ +#!/usr/bin/env php +.zip zum Hochladen unter Administration → Plugins. + * Enthält alles außer Quelltexten fürs Frontend-Build und node_modules. + */ +$root = dirname(__DIR__); +$manifest = json_decode(file_get_contents("{$root}/plugin.json"), true); +$target = "{$root}/gruppen-{$manifest['version']}.zip"; +$skip = ['node_modules', '.git', 'inhaus-sdk', 'package.json', 'package-lock.json', 'vite.config.js', basename($target)]; + +@unlink($target); +$zip = new ZipArchive; +$zip->open($target, ZipArchive::CREATE); +$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($root, FilesystemIterator::SKIP_DOTS)); + +foreach ($files as $file) { + $relative = substr($file->getPathname(), strlen($root) + 1); + + if (in_array(explode(DIRECTORY_SEPARATOR, $relative)[0], $skip, true) || str_ends_with($relative, '.zip')) { + continue; + } + + $zip->addFile($file->getPathname(), 'gruppen/'.$relative); +} + +$zip->close(); +echo "Paket: {$target}\n"; diff --git a/database/migrations/2026_10_23_000001_create_gruppen_tables.php b/database/migrations/2026_10_23_000001_create_gruppen_tables.php new file mode 100644 index 0000000..f004daf --- /dev/null +++ b/database/migrations/2026_10_23_000001_create_gruppen_tables.php @@ -0,0 +1,117 @@ +id(); + $table->string('name', 100); + $table->string('slug', 120)->unique(); + $table->text('description')->nullable(); + $table->string('cover_path', 300)->nullable(); + // open: jeder tritt bei | closed: sichtbar, Beitritt auf Anfrage | secret: unsichtbar, nur auf Einladung + $table->string('privacy', 10)->default('open'); + $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete(); + $table->unsignedInteger('members_count')->default(0); + $table->unsignedInteger('posts_count')->default(0); + $table->timestamp('last_activity_at')->nullable()->index(); + $table->timestamps(); + }); + + Schema::create('gruppen_members', function (Blueprint $table) { + $table->foreignId('group_id')->constrained('gruppen_groups')->cascadeOnDelete(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->string('role', 10)->default('member'); // admin | moderator | member + $table->string('status', 10)->default('active'); // active | pending | invited + $table->foreignId('invited_by')->nullable()->constrained('users')->nullOnDelete(); + $table->string('notify', 10)->default('all'); // all | off + $table->timestamp('joined_at')->nullable(); + $table->timestamp('last_seen_at')->nullable(); + $table->timestamp('notified_at')->nullable(); + $table->timestamps(); + + $table->primary(['group_id', 'user_id']); + $table->index(['user_id', 'status']); + }); + + Schema::create('gruppen_posts', function (Blueprint $table) { + $table->id(); + $table->foreignId('group_id')->constrained('gruppen_groups')->cascadeOnDelete(); + $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); + $table->text('body')->nullable(); + $table->json('poll')->nullable(); // { options: [...], multiple: bool } + $table->timestamp('pinned_at')->nullable(); + $table->timestamp('edited_at')->nullable(); + $table->unsignedInteger('comments_count')->default(0); + $table->timestamps(); + + $table->index(['group_id', 'created_at']); + }); + + Schema::create('gruppen_attachments', function (Blueprint $table) { + $table->id(); + $table->foreignId('post_id')->constrained('gruppen_posts')->cascadeOnDelete(); + $table->string('path', 300); + $table->string('thumb_path', 300)->nullable(); + $table->string('name', 200); + $table->string('mime', 100); + $table->unsignedBigInteger('size'); + $table->unsignedInteger('width')->nullable(); + $table->unsignedInteger('height')->nullable(); + $table->unsignedSmallInteger('sort')->default(0); + }); + + Schema::create('gruppen_poll_votes', function (Blueprint $table) { + $table->foreignId('post_id')->constrained('gruppen_posts')->cascadeOnDelete(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->unsignedTinyInteger('option'); + + $table->primary(['post_id', 'user_id', 'option']); + }); + + Schema::create('gruppen_comments', function (Blueprint $table) { + $table->id(); + $table->foreignId('post_id')->constrained('gruppen_posts')->cascadeOnDelete(); + $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); + $table->foreignId('parent_id')->nullable()->constrained('gruppen_comments')->cascadeOnDelete(); + $table->text('body'); + $table->timestamp('edited_at')->nullable(); + $table->timestamps(); + + $table->index(['post_id', 'id']); + }); + + Schema::create('gruppen_reactions', function (Blueprint $table) { + $table->foreignId('post_id')->constrained('gruppen_posts')->cascadeOnDelete(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->string('emoji', 16); + + $table->primary(['post_id', 'user_id']); + }); + + Schema::create('gruppen_reports', function (Blueprint $table) { + $table->id(); + $table->foreignId('group_id')->constrained('gruppen_groups')->cascadeOnDelete(); + $table->foreignId('post_id')->constrained('gruppen_posts')->cascadeOnDelete(); + $table->foreignId('comment_id')->nullable()->constrained('gruppen_comments')->cascadeOnDelete(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->string('reason', 500); + $table->timestamp('resolved_at')->nullable(); + $table->timestamps(); + + $table->unique(['user_id', 'post_id', 'comment_id']); + }); + } + + public function down(): void + { + foreach (['gruppen_reports', 'gruppen_reactions', 'gruppen_comments', 'gruppen_poll_votes', 'gruppen_attachments', 'gruppen_posts', 'gruppen_members', 'gruppen_groups'] as $table) { + Schema::dropIfExists($table); + } + } +}; diff --git a/dist/assets/style-CWIv2Jl3.css b/dist/assets/style-CWIv2Jl3.css new file mode 100644 index 0000000..ae4d16d --- /dev/null +++ b/dist/assets/style-CWIv2Jl3.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--ih-spacing:.25rem;--ih-container-md:28rem;--ih-container-lg:32rem;--ih-container-2xl:42rem;--ih-text-xs:.75rem;--ih-text-xs--line-height:calc(1 / .75);--ih-text-sm:.875rem;--ih-text-sm--line-height:calc(1.25 / .875);--ih-text-base:1rem;--ih-text-base--line-height:calc(1.5 / 1);--ih-text-xl:1.25rem;--ih-text-xl--line-height:calc(1.75 / 1.25);--ih-text-2xl:1.5rem;--ih-text-2xl--line-height:calc(2 / 1.5);--ih-font-weight-medium:500;--ih-font-weight-semibold:600;--ih-tracking-tighter:-.05em;--ih-tracking-tight:-.025em;--ih-leading-snug:1.375;--ih-leading-relaxed:1.625;--ih-animate-spin:spin 1s linear infinite;--ih-default-transition-duration:.15s;--ih-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.ih\:pointer-events-none{pointer-events:none}.ih\:absolute{position:absolute}.ih\:relative{position:relative}.ih\:inset-0{inset:0}.ih\:inset-x-2{inset-inline:calc(var(--ih-spacing) * 2)}.ih\:inset-y-0{inset-block:0}.ih\:-top-1\.5{top:calc(var(--ih-spacing) * -1.5)}.ih\:top-1\/2{top:50%}.ih\:-right-1\.5{right:calc(var(--ih-spacing) * -1.5)}.ih\:bottom-0{bottom:0}.ih\:bottom-full{bottom:100%}.ih\:left-0{left:0}.ih\:left-2{left:calc(var(--ih-spacing) * 2)}.ih\:left-2\.5{left:calc(var(--ih-spacing) * 2.5)}.ih\:z-20{z-index:20}.ih\:row-span-2{grid-row:span 2/span 2}.ih\:-mx-2{margin-inline:calc(var(--ih-spacing) * -2)}.ih\:mx-1{margin-inline:var(--ih-spacing)}.ih\:mx-4{margin-inline:calc(var(--ih-spacing) * 4)}.ih\:mx-auto{margin-inline:auto}.ih\:-my-1{margin-block:calc(var(--ih-spacing) * -1)}.ih\:mt-0\.5{margin-top:calc(var(--ih-spacing) * .5)}.ih\:mt-1{margin-top:var(--ih-spacing)}.ih\:mt-2{margin-top:calc(var(--ih-spacing) * 2)}.ih\:mt-3{margin-top:calc(var(--ih-spacing) * 3)}.ih\:mt-5{margin-top:calc(var(--ih-spacing) * 5)}.ih\:mt-6{margin-top:calc(var(--ih-spacing) * 6)}.ih\:mt-auto{margin-top:auto}.ih\:mb-1{margin-bottom:var(--ih-spacing)}.ih\:mb-2{margin-bottom:calc(var(--ih-spacing) * 2)}.ih\:mb-5{margin-bottom:calc(var(--ih-spacing) * 5)}.ih\:ml-1{margin-left:var(--ih-spacing)}.ih\:ml-10{margin-left:calc(var(--ih-spacing) * 10)}.ih\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.ih\:block{display:block}.ih\:flex{display:flex}.ih\:grid{display:grid}.ih\:hidden{display:none}.ih\:inline-block{display:inline-block}.ih\:inline-flex{display:inline-flex}.ih\:aspect-square{aspect-ratio:1}.ih\:size-3{width:calc(var(--ih-spacing) * 3);height:calc(var(--ih-spacing) * 3)}.ih\:size-3\.5{width:calc(var(--ih-spacing) * 3.5);height:calc(var(--ih-spacing) * 3.5)}.ih\:size-4{width:calc(var(--ih-spacing) * 4);height:calc(var(--ih-spacing) * 4)}.ih\:size-5{width:calc(var(--ih-spacing) * 5);height:calc(var(--ih-spacing) * 5)}.ih\:size-6{width:calc(var(--ih-spacing) * 6);height:calc(var(--ih-spacing) * 6)}.ih\:size-7{width:calc(var(--ih-spacing) * 7);height:calc(var(--ih-spacing) * 7)}.ih\:size-8{width:calc(var(--ih-spacing) * 8);height:calc(var(--ih-spacing) * 8)}.ih\:size-9{width:calc(var(--ih-spacing) * 9);height:calc(var(--ih-spacing) * 9)}.ih\:size-10{width:calc(var(--ih-spacing) * 10);height:calc(var(--ih-spacing) * 10)}.ih\:size-20{width:calc(var(--ih-spacing) * 20);height:calc(var(--ih-spacing) * 20)}.ih\:h-3{height:calc(var(--ih-spacing) * 3)}.ih\:h-8{height:calc(var(--ih-spacing) * 8)}.ih\:h-9{height:calc(var(--ih-spacing) * 9)}.ih\:h-10{height:calc(var(--ih-spacing) * 10)}.ih\:h-20{height:calc(var(--ih-spacing) * 20)}.ih\:h-24{height:calc(var(--ih-spacing) * 24)}.ih\:h-36{height:calc(var(--ih-spacing) * 36)}.ih\:h-\[3px\]{height:3px}.ih\:h-full{height:100%}.ih\:max-h-64{max-height:calc(var(--ih-spacing) * 64)}.ih\:max-h-\[32rem\]{max-height:32rem}.ih\:min-h-10{min-height:calc(var(--ih-spacing) * 10)}.ih\:w-40{width:calc(var(--ih-spacing) * 40)}.ih\:w-full{width:100%}.ih\:max-w-2xl{max-width:var(--ih-container-2xl)}.ih\:max-w-full{max-width:100%}.ih\:max-w-md{max-width:var(--ih-container-md)}.ih\:min-w-0{min-width:0}.ih\:flex-1{flex:1}.ih\:shrink-0{flex-shrink:0}.ih\:-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.ih\:animate-spin{animation:var(--ih-animate-spin)}.ih\:cursor-pointer{cursor:pointer}.ih\:resize-none{resize:none}.ih\:list-disc{list-style-type:disc}.ih\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ih\:flex-col{flex-direction:column}.ih\:flex-wrap{flex-wrap:wrap}.ih\:place-items-center{place-items:center}.ih\:content-start{align-content:flex-start}.ih\:items-center{align-items:center}.ih\:items-end{align-items:flex-end}.ih\:items-start{align-items:flex-start}.ih\:justify-between{justify-content:space-between}.ih\:justify-center{justify-content:center}.ih\:gap-0\.5{gap:calc(var(--ih-spacing) * .5)}.ih\:gap-1{gap:var(--ih-spacing)}.ih\:gap-1\.5{gap:calc(var(--ih-spacing) * 1.5)}.ih\:gap-2{gap:calc(var(--ih-spacing) * 2)}.ih\:gap-2\.5{gap:calc(var(--ih-spacing) * 2.5)}.ih\:gap-3{gap:calc(var(--ih-spacing) * 3)}.ih\:gap-4{gap:calc(var(--ih-spacing) * 4)}.ih\:gap-5{gap:calc(var(--ih-spacing) * 5)}.ih\:gap-6{gap:calc(var(--ih-spacing) * 6)}.ih\:gap-x-3{column-gap:calc(var(--ih-spacing) * 3)}.ih\:gap-y-1{row-gap:var(--ih-spacing)}.ih\:justify-self-start{justify-self:flex-start}.ih\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ih\:overflow-hidden{overflow:hidden}.ih\:overflow-y-auto{overflow-y:auto}.ih\:rounded{border-radius:.25rem}.ih\:rounded-2xl{border-radius:calc(var(--radius) * 2)}.ih\:rounded-full{border-radius:2147483647px}.ih\:rounded-lg{border-radius:var(--radius)}.ih\:rounded-md{border-radius:calc(var(--radius) - 2px)}.ih\:rounded-xl{border-radius:calc(var(--radius) * 1.5)}.ih\:rounded-t-full{border-top-left-radius:2147483647px;border-top-right-radius:2147483647px}.ih\:border{border-style:var(--tw-border-style);border-width:1px}.ih\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.ih\:border-brand,.ih\:border-brand\/40{border-color:var(--brand)}@supports (color:color-mix(in lab, red, red)){.ih\:border-brand\/40.ih\:border-brand\/40{border-color:color-mix(in oklab, var(--brand) 40%, transparent)}}.ih\:border-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.ih\:border-destructive\/30.ih\:border-destructive\/30{border-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.ih\:border-input{border-color:var(--input)}.ih\:bg-accent{background-color:var(--accent)}.ih\:bg-background{background-color:var(--background)}.ih\:bg-brand{background-color:var(--brand)}.ih\:bg-brand-soft,.ih\:bg-brand-soft\/40{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-brand-soft\/40.ih\:bg-brand-soft\/40{background-color:color-mix(in oklab, var(--brand-soft) 40%, transparent)}}.ih\:bg-card{background-color:var(--card)}.ih\:bg-destructive\/5{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-destructive\/5.ih\:bg-destructive\/5{background-color:color-mix(in oklab, var(--destructive) 5%, transparent)}}.ih\:bg-foreground,.ih\:bg-foreground\/55{background-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-foreground\/55.ih\:bg-foreground\/55{background-color:color-mix(in oklab, var(--foreground) 55%, transparent)}}.ih\:bg-muted{background-color:var(--muted)}.ih\:bg-popover{background-color:var(--popover)}.ih\:bg-cover{background-size:cover}.ih\:bg-center{background-position:50%}.ih\:object-cover{object-fit:cover}.ih\:p-0\.5{padding:calc(var(--ih-spacing) * .5)}.ih\:p-1{padding:var(--ih-spacing)}.ih\:p-1\.5{padding:calc(var(--ih-spacing) * 1.5)}.ih\:p-2{padding:calc(var(--ih-spacing) * 2)}.ih\:p-2\.5{padding:calc(var(--ih-spacing) * 2.5)}.ih\:p-3{padding:calc(var(--ih-spacing) * 3)}.ih\:p-4{padding:calc(var(--ih-spacing) * 4)}.ih\:p-5{padding:calc(var(--ih-spacing) * 5)}.ih\:px-1{padding-inline:var(--ih-spacing)}.ih\:px-1\.5{padding-inline:calc(var(--ih-spacing) * 1.5)}.ih\:px-2{padding-inline:calc(var(--ih-spacing) * 2)}.ih\:px-2\.5{padding-inline:calc(var(--ih-spacing) * 2.5)}.ih\:px-3{padding-inline:calc(var(--ih-spacing) * 3)}.ih\:px-4{padding-inline:calc(var(--ih-spacing) * 4)}.ih\:py-0\.5{padding-block:calc(var(--ih-spacing) * .5)}.ih\:py-1{padding-block:var(--ih-spacing)}.ih\:py-1\.5{padding-block:calc(var(--ih-spacing) * 1.5)}.ih\:py-2{padding-block:calc(var(--ih-spacing) * 2)}.ih\:py-3{padding-block:calc(var(--ih-spacing) * 3)}.ih\:pt-3{padding-top:calc(var(--ih-spacing) * 3)}.ih\:pt-4{padding-top:calc(var(--ih-spacing) * 4)}.ih\:pr-1{padding-right:var(--ih-spacing)}.ih\:pr-3{padding-right:calc(var(--ih-spacing) * 3)}.ih\:pb-4{padding-bottom:calc(var(--ih-spacing) * 4)}.ih\:pl-0\.5{padding-left:calc(var(--ih-spacing) * .5)}.ih\:pl-6{padding-left:calc(var(--ih-spacing) * 6)}.ih\:pl-8{padding-left:calc(var(--ih-spacing) * 8)}.ih\:pl-13{padding-left:calc(var(--ih-spacing) * 13)}.ih\:text-left{text-align:left}.ih\:text-2xl{font-size:var(--ih-text-2xl);line-height:var(--tw-leading,var(--ih-text-2xl--line-height))}.ih\:text-base{font-size:var(--ih-text-base);line-height:var(--tw-leading,var(--ih-text-base--line-height))}.ih\:text-sm{font-size:var(--ih-text-sm);line-height:var(--tw-leading,var(--ih-text-sm--line-height))}.ih\:text-xl{font-size:var(--ih-text-xl);line-height:var(--tw-leading,var(--ih-text-xl--line-height))}.ih\:text-xs{font-size:var(--ih-text-xs);line-height:var(--tw-leading,var(--ih-text-xs--line-height))}.ih\:text-\[10px\]{font-size:10px}.ih\:text-\[11px\]{font-size:11px}.ih\:text-\[13px\]{font-size:13px}.ih\:text-\[15px\]{font-size:15px}.ih\:leading-relaxed{--tw-leading:var(--ih-leading-relaxed);line-height:var(--ih-leading-relaxed)}.ih\:leading-snug{--tw-leading:var(--ih-leading-snug);line-height:var(--ih-leading-snug)}.ih\:font-medium{--tw-font-weight:var(--ih-font-weight-medium);font-weight:var(--ih-font-weight-medium)}.ih\:font-semibold{--tw-font-weight:var(--ih-font-weight-semibold);font-weight:var(--ih-font-weight-semibold)}.ih\:tracking-tight{--tw-tracking:var(--ih-tracking-tight);letter-spacing:var(--ih-tracking-tight)}.ih\:tracking-tighter{--tw-tracking:var(--ih-tracking-tighter);letter-spacing:var(--ih-tracking-tighter)}.ih\:break-words{overflow-wrap:break-word}.ih\:whitespace-pre-line{white-space:pre-line}.ih\:whitespace-pre-wrap{white-space:pre-wrap}.ih\:text-background{color:var(--background)}.ih\:text-brand-foreground{color:var(--brand-foreground)}.ih\:text-brand-text{color:var(--brand-text)}.ih\:text-destructive{color:var(--destructive)}.ih\:text-foreground{color:var(--foreground)}.ih\:text-muted-foreground{color:var(--muted-foreground)}.ih\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ih\:underline{text-decoration-line:underline}.ih\:underline-offset-2{text-underline-offset:2px}.ih\:accent-\[var\(--color-brand\)\]{accent-color:var(--color-brand)}.ih\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--ih-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ih-default-transition-duration))}.ih\:group-focus-within\/react\:flex.ih\:group-focus-within\/react\:flex:is(:where(.ih\:group\/react):focus-within *){display:flex}@media (hover:hover){.ih\:group-hover\/react\:flex.ih\:group-hover\/react\:flex:is(:where(.ih\:group\/react):hover *){display:flex}.ih\:hover\:scale-125.ih\:hover\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.ih\:hover\:border-brand\/50.ih\:hover\:border-brand\/50:hover{border-color:var(--brand)}@supports (color:color-mix(in lab, red, red)){.ih\:hover\:border-brand\/50.ih\:hover\:border-brand\/50:hover{border-color:color-mix(in oklab, var(--brand) 50%, transparent)}}.ih\:hover\:bg-accent.ih\:hover\:bg-accent:hover,.ih\:hover\:bg-accent\/50.ih\:hover\:bg-accent\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.ih\:hover\:bg-accent\/50.ih\:hover\:bg-accent\/50:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.ih\:hover\:bg-accent\/60.ih\:hover\:bg-accent\/60:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.ih\:hover\:bg-accent\/60.ih\:hover\:bg-accent\/60:hover{background-color:color-mix(in oklab, var(--accent) 60%, transparent)}}.ih\:hover\:bg-brand-soft.ih\:hover\:bg-brand-soft:hover{background-color:var(--brand-soft)}.ih\:hover\:bg-muted.ih\:hover\:bg-muted:hover,.ih\:hover\:bg-muted\/50.ih\:hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.ih\:hover\:bg-muted\/50.ih\:hover\:bg-muted\/50:hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.ih\:hover\:text-destructive.ih\:hover\:text-destructive:hover{color:var(--destructive)}.ih\:hover\:text-foreground.ih\:hover\:text-foreground:hover{color:var(--foreground)}.ih\:hover\:underline.ih\:hover\:underline:hover{text-decoration-line:underline}}.ih\:focus-visible\:bg-background.ih\:focus-visible\:bg-background:focus-visible{background-color:var(--background)}.ih\:focus-visible\:ring-3.ih\:focus-visible\:ring-3:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ih\:focus-visible\:ring-ring\/30.ih\:focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.ih\:focus-visible\:ring-ring\/30.ih\:focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.ih\:focus-visible\:outline-none.ih\:focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.ih\:disabled\:cursor-default.ih\:disabled\:cursor-default:disabled{cursor:default}.ih\:disabled\:opacity-40.ih\:disabled\:opacity-40:disabled{opacity:.4}.ih\:has-\[\:checked\]\:border-brand.ih\:has-\[\:checked\]\:border-brand:has(:checked){border-color:var(--brand)}.ih\:has-\[\:checked\]\:bg-brand-soft\/50.ih\:has-\[\:checked\]\:bg-brand-soft\/50:has(:checked){background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.ih\:has-\[\:checked\]\:bg-brand-soft\/50.ih\:has-\[\:checked\]\:bg-brand-soft\/50:has(:checked){background-color:color-mix(in oklab, var(--brand-soft) 50%, transparent)}}@media (min-width:40rem){.ih\:sm\:mx-5.ih\:sm\:mx-5{margin-inline:calc(var(--ih-spacing) * 5)}.ih\:sm\:ml-13.ih\:sm\:ml-13{margin-left:calc(var(--ih-spacing) * 13)}.ih\:sm\:h-52.ih\:sm\:h-52{height:calc(var(--ih-spacing) * 52)}.ih\:sm\:max-w-lg.ih\:sm\:max-w-lg{max-width:var(--ih-container-lg)}.ih\:sm\:max-w-md.ih\:sm\:max-w-md{max-width:var(--ih-container-md)}.ih\:sm\:grid-cols-2.ih\:sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ih\:sm\:px-5.ih\:sm\:px-5{padding-inline:calc(var(--ih-spacing) * 5)}}@media (min-width:64rem){.ih\:lg\:grid-cols-3.ih\:lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\].ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\]{grid-template-columns:minmax(0,1fr) 20rem}}@media (min-width:80rem){.ih\:xl\:grid-cols-4.ih\:xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}} diff --git a/dist/chunks/GroupCard-5fLVVVGb.js b/dist/chunks/GroupCard-5fLVVVGb.js new file mode 100644 index 0000000..0006ec6 --- /dev/null +++ b/dist/chunks/GroupCard-5fLVVVGb.js @@ -0,0 +1 @@ +import{n as e}from"./loader-circle-CxzeMpQS.js";import{a as t,i as n,n as r,o as i}from"./GroupDialog-DkTJQL7Q.js";import{createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,normalizeStyle as d,openBlock as f,resolveDynamicComponent as p,toDisplayString as m,unref as h,withCtx as g}from"vue";import{Link as _,router as v}from"@inertiajs/vue3";import{Button as y}from"@inhaus/ui";var b=e({name:`compass`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]}),x={class:`ih:flex ih:flex-col ih:overflow-hidden ih:rounded-xl ih:border ih:bg-card ih:shadow-xs`},S={class:`ih:flex ih:flex-1 ih:flex-col ih:gap-1 ih:p-4`},C={class:`ih:flex ih:items-center ih:gap-1.5 ih:text-xs ih:text-muted-foreground`},w={key:0,class:`ih:line-clamp-2 ih:text-sm ih:text-muted-foreground`},T={class:`ih:mt-auto ih:pt-3`},E={__name:`GroupCard`,props:{group:{type:Object,required:!0}},setup(e){let b=e,E={open:t,closed:n,secret:i},D=()=>v.post(`/gruppen/${b.group.slug}/beitreten`,{},{preserveScroll:!0});return(t,n)=>(f(),s(`article`,x,[u(h(_),{href:e.group.url,class:`ih:block ih:h-24 ih:bg-brand ih:bg-cover ih:bg-center`,style:d(e.group.cover_url?{backgroundImage:`url(${e.group.cover_url})`}:{}),"aria-label":e.group.name},null,8,[`href`,`style`,`aria-label`]),c(`div`,S,[u(h(_),{href:e.group.url,class:`ih:font-semibold ih:hover:underline`},{default:g(()=>[l(m(e.group.name),1)]),_:1},8,[`href`]),c(`p`,C,[(f(),a(p(E[e.group.privacy]),{class:`ih:size-3.5`})),l(` `+m(e.group.privacy_label)+` · `,1),u(h(r),{class:`ih:size-3.5`}),l(` `+m(e.group.members_count),1)]),e.group.description?(f(),s(`p`,w,m(e.group.description),1)):o(``,!0),c(`div`,T,[e.group.status===`active`?(f(),a(h(y),{key:0,variant:`outline`,size:`sm`,class:`ih:w-full`,"as-child":``},{default:g(()=>[u(h(_),{href:e.group.url},{default:g(()=>[...n[0]||=[l(`Ansehen`,-1)]]),_:1},8,[`href`])]),_:1})):e.group.status===`pending`?(f(),a(h(y),{key:1,variant:`outline`,size:`sm`,class:`ih:w-full`,disabled:``},{default:g(()=>[...n[1]||=[l(`Angefragt`,-1)]]),_:1})):(f(),a(h(y),{key:2,size:`sm`,class:`ih:w-full`,onClick:D},{default:g(()=>[l(m(e.group.status===`invited`?`Einladung annehmen`:e.group.privacy===`open`?`Beitreten`:`Beitritt anfragen`),1)]),_:1}))])])]))}};export{b as n,E as t}; \ No newline at end of file diff --git a/dist/chunks/GroupDialog-DkTJQL7Q.js b/dist/chunks/GroupDialog-DkTJQL7Q.js new file mode 100644 index 0000000..ff9ef2d --- /dev/null +++ b/dist/chunks/GroupDialog-DkTJQL7Q.js @@ -0,0 +1 @@ +import{n as e,t}from"./loader-circle-CxzeMpQS.js";import{Fragment as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createTextVNode as s,createVNode as c,mergeModels as l,openBlock as u,renderList as d,toDisplayString as f,unref as p,useModel as m,vModelCheckbox as h,vModelRadio as g,watch as _,withCtx as v,withDirectives as y,withModifiers as b}from"vue";import{useForm as x}from"@inertiajs/vue3";import{Button as S,Dialog as C,DialogContent as w,DialogDescription as T,DialogFooter as E,DialogHeader as D,DialogTitle as O,FormField as k,Input as A,Textarea as j}from"@inhaus/ui";var M=e({name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]}),N=e({name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]}),P=e({name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]}),F=e({name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]}),I=e({name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]}),L={class:`ih:grid ih:gap-2`},R=[`value`],z={class:`ih:font-medium`},B={class:`ih:block ih:text-xs ih:text-muted-foreground`},V={key:0,class:`ih:flex ih:items-center ih:gap-2 ih:text-sm`},H={__name:`GroupDialog`,props:l({group:{type:Object,default:null},privacy:{type:Object,required:!0},privacyHints:{type:Object,required:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(e){let l=e,M=m(e,`open`),N=x({name:``,description:``,privacy:`open`,cover:null,remove_cover:!1});_(M,e=>{e&&(N.clearErrors(),N.defaults({name:l.group?.name??``,description:l.group?.description??``,privacy:l.group?.privacy??`open`,cover:null,remove_cover:!1}),N.reset())});function P(){N.post(l.group?`/gruppen/${l.group.slug}`:`/gruppen`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>M.value=!1})}return(l,m)=>(u(),r(p(C),{open:M.value,"onUpdate:open":m[6]||=e=>M.value=e},{default:v(()=>[c(p(w),{class:`ih:sm:max-w-lg`},{default:v(()=>[c(p(D),null,{default:v(()=>[c(p(O),null,{default:v(()=>[s(f(e.group?`Gruppe bearbeiten`:`Gruppe gründen`),1)]),_:1}),c(p(T),null,{default:v(()=>[s(f(e.group?`Name, Beschreibung, Art und Titelbild.`:`Zu einem Thema, einem Hobby oder einem Projekt – Sie verwalten die Gruppe.`),1)]),_:1})]),_:1}),o(`form`,{id:`group-form`,class:`ih:grid ih:gap-4`,onSubmit:b(P,[`prevent`])},[c(p(k),{id:`g-name`,label:`Name`,error:p(N).errors.name},{default:v(()=>[c(p(A),{id:`g-name`,modelValue:p(N).name,"onUpdate:modelValue":m[0]||=e=>p(N).name=e,maxlength:`100`,placeholder:`z. B. Laufgruppe Mainz`},null,8,[`modelValue`])]),_:1},8,[`error`]),c(p(k),{id:`g-description`,label:`Worum geht es? (optional)`,error:p(N).errors.description},{default:v(()=>[c(p(j),{id:`g-description`,modelValue:p(N).description,"onUpdate:modelValue":m[1]||=e=>p(N).description=e,rows:`3`,maxlength:`2000`},null,8,[`modelValue`])]),_:1},8,[`error`]),o(`fieldset`,L,[m[7]||=o(`legend`,{class:`ih:mb-1 ih:text-sm ih:font-medium`},`Wer darf rein?`,-1),(u(!0),a(n,null,d(e.privacy,(t,n)=>(u(),a(`label`,{key:n,class:`ih:flex ih:cursor-pointer ih:items-start ih:gap-3 ih:rounded-md ih:border ih:p-3 ih:text-sm ih:has-[:checked]:border-brand ih:has-[:checked]:bg-brand-soft/50`},[y(o(`input`,{"onUpdate:modelValue":m[2]||=e=>p(N).privacy=e,type:`radio`,name:`privacy`,value:n,class:`ih:mt-0.5 ih:size-4 ih:accent-[var(--color-brand)]`},null,8,R),[[g,p(N).privacy]]),o(`span`,null,[o(`span`,z,f(t),1),o(`span`,B,f(e.privacyHints[n]),1)])]))),128))]),c(p(k),{id:`g-cover`,label:`Titelbild (optional)`,error:p(N).errors.cover},{default:v(()=>[o(`input`,{id:`g-cover`,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`ih:text-sm`,onChange:m[3]||=e=>p(N).cover=e.target.files[0]??null},null,32)]),_:1},8,[`error`]),e.group?.cover_url?(u(),a(`label`,V,[y(o(`input`,{"onUpdate:modelValue":m[4]||=e=>p(N).remove_cover=e,type:`checkbox`},null,512),[[h,p(N).remove_cover]]),m[8]||=s(` Titelbild entfernen`,-1)])):i(``,!0)],32),c(p(E),null,{default:v(()=>[c(p(S),{variant:`ghost`,onClick:m[5]||=e=>M.value=!1},{default:v(()=>[...m[9]||=[s(`Abbrechen`,-1)]]),_:1}),c(p(S),{type:`submit`,form:`group-form`,disabled:p(N).processing||!p(N).name.trim()},{default:v(()=>[p(N).processing?(u(),r(p(t),{key:0,class:`ih:animate-spin`})):i(``,!0),s(` `+f(e.group?`Speichern`:`Gründen`),1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}};export{N as a,P as i,I as n,M as o,F as r,H as t}; \ No newline at end of file diff --git a/dist/chunks/PostCard-hYMtqskw.js b/dist/chunks/PostCard-hYMtqskw.js new file mode 100644 index 0000000..e268f50 --- /dev/null +++ b/dist/chunks/PostCard-hYMtqskw.js @@ -0,0 +1 @@ +import{n as e,t}from"./loader-circle-CxzeMpQS.js";import{Fragment as n,computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,createVNode as l,normalizeClass as u,normalizeStyle as d,openBlock as f,ref as p,renderList as m,resolveDynamicComponent as h,toDisplayString as g,unref as _,vModelText as v,withCtx as y,withDirectives as b,withModifiers as x}from"vue";import{Button as S,DropdownMenu as C,DropdownMenuContent as w,DropdownMenuItem as T,DropdownMenuTrigger as ee,FileIcon as te,PersonAvatar as E,formatRelative as D,http as O,toast as k}from"@inhaus/ui";var A=e({name:`corner-down-right`,size:24,node:[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]}),ne=e({name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]}),re=e({name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]}),j=e({name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]}),ie=e({name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]}),ae=e({name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]}),M=e({name:`pin-off`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]}),N=e({name:`pin`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]}),P=e({name:`send-horizontal`,size:24,node:[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]],aliases:[`send-horizonal`]}),F=e({name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]});function I(e){let t=[],n=/(https?:\/\/[^\s<>"']+[^\s<>"'.,;:!?)\]])/g,r=0;for(let i of(e??``).matchAll(n))i.index>r&&t.push({text:e.slice(r,i.index)}),t.push({text:i[0],href:i[0]}),r=i.index+i[0].length;return r<(e??``).length&&t.push({text:e.slice(r)}),t}function L(e){return e<1048576?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`}var R={class:`ih:break-words ih:whitespace-pre-wrap`},z=[`href`],B={__name:`RichText`,props:{text:{type:String,default:``},limit:{type:Number,default:600}},setup(e){let t=e,i=p(!1),s=r(()=>t.text.length>t.limit),l=r(()=>s.value&&!i.value?`${t.text.slice(0,t.limit).trimEnd()} …`:t.text);return(e,t)=>(f(),o(`p`,R,[(f(!0),o(n,null,m(_(I)(l.value),(e,t)=>(f(),o(n,{key:t},[e.href?(f(),o(`a`,{key:0,href:e.href,target:`_blank`,rel:`noopener noreferrer`,class:`ih:text-brand-text ih:underline ih:underline-offset-2`},g(e.text),9,z)):(f(),o(n,{key:1},[c(g(e.text),1)],64))],64))),128)),s.value?(f(),o(`button`,{key:0,type:`button`,class:`ih:ml-1 ih:font-medium ih:text-brand-text ih:hover:underline`,onClick:t[0]||=e=>i.value=!i.value},g(i.value?`Weniger`:`Mehr anzeigen`),1)):a(``,!0)]))}},V={class:`ih:grid ih:gap-3 ih:border-t ih:px-4 ih:pt-3 ih:pb-4 ih:sm:px-5`},H=[`id`],U={class:`ih:flex ih:gap-2.5`},W={class:`ih:min-w-0 ih:flex-1`},G={class:`ih:inline-block ih:max-w-full ih:rounded-2xl ih:bg-muted ih:px-3 ih:py-2 ih:text-sm`},K=[`href`],q={class:`ih:mt-0.5 ih:flex ih:gap-3 ih:px-3 ih:text-xs ih:text-muted-foreground`},J=[`onClick`],Y=[`aria-label`,`onClick`],X=[`id`],Z={class:`ih:min-w-0 ih:flex-1`},Q={class:`ih:inline-block ih:max-w-full ih:rounded-2xl ih:bg-muted ih:px-3 ih:py-2 ih:text-sm`},oe=[`href`],se={class:`ih:mt-0.5 ih:flex ih:gap-3 ih:px-3 ih:text-xs ih:text-muted-foreground`},ce=[`onClick`],le=[`onSubmit`],ue=[`placeholder`],de=[`disabled`],fe={__name:`Comments`,props:{post:{type:Object,required:!0},full:{type:Boolean,default:!1},initial:{type:Array,default:null}},setup(e){let r=e,c=p(r.initial??r.post.comments),u=p(r.full),d=p(``),h=p(null),y=p(``),S=p(!1);async function C(){c.value=(await O.get(`/gruppen/beitraege/${r.post.id}/kommentare`)).comments,u.value=!0}async function w(e,t=null){if(e.trim()){S.value=!0;try{let n=await O.post(`/gruppen/beitraege/${r.post.id}/kommentare`,{body:e,parent_id:t});c.value=n.comments,u.value=!0,r.post.comments_count=n.comments.reduce((e,t)=>e+1+t.replies.length,0),d.value=y.value=``,h.value=null}catch(e){k.error(e.message)}finally{S.value=!1}}}async function T(e){window.confirm(`Kommentar löschen?`)&&(await O.delete(`/gruppen/kommentare/${e.id}`),await C(),r.post.comments_count=c.value.reduce((e,t)=>e+1+t.replies.length,0))}return(r,p)=>(f(),o(`div`,V,[!u.value&&e.post.comments_count>c.value.length?(f(),o(`button`,{key:0,type:`button`,class:`ih:justify-self-start ih:text-[13px] ih:font-medium ih:text-muted-foreground ih:hover:text-foreground ih:hover:underline`,onClick:C},` Alle `+g(e.post.comments_count)+` Kommentare anzeigen `,1)):a(``,!0),(f(!0),o(n,null,m(c.value,t=>(f(),o(`div`,{id:`kommentar-${t.id}`,key:t.id,class:`ih:grid ih:gap-2`},[s(`div`,U,[t.user?(f(),i(_(E),{key:0,person:t.user,class:`ih:size-8 ih:text-[11px]`},null,8,[`person`])):a(``,!0),s(`div`,W,[s(`div`,G,[t.user?(f(),o(`a`,{key:0,href:`/personen/${t.user.id}`,class:`ih:font-semibold ih:hover:underline`},g(t.user.name),9,K)):a(``,!0),l(B,{text:t.body,limit:400},null,8,[`text`])]),s(`div`,q,[s(`span`,null,g(_(D)(t.created_at)),1),e.post.can_comment?(f(),o(`button`,{key:0,type:`button`,class:`ih:font-medium ih:hover:text-foreground`,onClick:e=>h.value=h.value===t.id?null:t.id},`Antworten`,8,J)):a(``,!0),t.can_delete?(f(),o(`button`,{key:1,type:`button`,class:`ih:hover:text-destructive`,"aria-label":`Kommentar von ${t.user?.name} löschen`,onClick:e=>T(t)},[l(_(F),{class:`ih:size-3.5`})],8,Y)):a(``,!0)])])]),(f(!0),o(n,null,m(t.replies,e=>(f(),o(`div`,{id:`kommentar-${e.id}`,key:e.id,class:`ih:ml-10 ih:flex ih:gap-2.5`},[e.user?(f(),i(_(E),{key:0,person:e.user,class:`ih:size-7 ih:text-[10px]`},null,8,[`person`])):a(``,!0),s(`div`,Z,[s(`div`,Q,[e.user?(f(),o(`a`,{key:0,href:`/personen/${e.user.id}`,class:`ih:font-semibold ih:hover:underline`},g(e.user.name),9,oe)):a(``,!0),l(B,{text:e.body,limit:400},null,8,[`text`])]),s(`div`,se,[s(`span`,null,g(_(D)(e.created_at)),1),e.can_delete?(f(),o(`button`,{key:0,type:`button`,class:`ih:hover:text-destructive`,"aria-label":`Antwort löschen`,onClick:t=>T(e)},[l(_(F),{class:`ih:size-3.5`})],8,ce)):a(``,!0)])])],8,X))),128)),h.value===t.id?(f(),o(`form`,{key:0,class:`ih:ml-10 ih:flex ih:items-center ih:gap-2`,onSubmit:x(e=>w(y.value,t.id),[`prevent`])},[l(_(A),{class:`ih:size-4 ih:shrink-0 ih:text-muted-foreground`}),b(s(`input`,{"onUpdate:modelValue":p[0]||=e=>y.value=e,maxlength:`3000`,placeholder:`Antwort an ${t.user?.name??``}`,"aria-label":`Antwort`,autofocus:``,class:`ih:h-9 ih:min-w-0 ih:flex-1 ih:rounded-full ih:border ih:border-input ih:bg-background ih:px-4 ih:text-sm ih:focus-visible:ring-3 ih:focus-visible:ring-ring/30 ih:focus-visible:outline-none`},null,8,ue),[[v,y.value]])],40,le)):a(``,!0)],8,H))),128)),e.post.can_comment?(f(),o(`form`,{key:1,class:`ih:flex ih:items-center ih:gap-2`,onSubmit:p[2]||=x(e=>w(d.value),[`prevent`])},[b(s(`input`,{"onUpdate:modelValue":p[1]||=e=>d.value=e,maxlength:`3000`,placeholder:`Kommentieren …`,"aria-label":`Kommentar`,class:`ih:h-9 ih:min-w-0 ih:flex-1 ih:rounded-full ih:border ih:border-input ih:bg-background ih:px-4 ih:text-sm ih:focus-visible:ring-3 ih:focus-visible:ring-ring/30 ih:focus-visible:outline-none`},null,512),[[v,d.value]]),s(`button`,{type:`submit`,class:`ih:grid ih:size-9 ih:shrink-0 ih:place-items-center ih:rounded-full ih:text-brand-text ih:hover:bg-brand-soft ih:disabled:opacity-40`,disabled:S.value||!d.value.trim(),"aria-label":`Kommentar senden`},[S.value?(f(),i(_(t),{key:0,class:`ih:size-4 ih:animate-spin`})):(f(),i(_(P),{key:1,class:`ih:size-4`}))],8,de)],32)):a(``,!0)]))}},pe=[`aria-label`],me={class:`ih:flex ih:items-start ih:gap-3 ih:px-4 ih:pt-4 ih:sm:px-5`},he={class:`ih:min-w-0 ih:flex-1 ih:text-sm`},ge={class:`ih:leading-snug`},_e=[`href`],ve=[`href`],$={class:`ih:flex ih:items-center ih:gap-1.5 ih:text-xs ih:text-muted-foreground`},ye=[`href`],be={key:1,class:`ih:inline-flex ih:items-center ih:gap-0.5 ih:font-medium ih:text-brand-text`},xe={type:`button`,class:`ih:grid ih:size-8 ih:place-items-center ih:rounded-full ih:text-muted-foreground ih:hover:bg-accent`,"aria-label":`Weitere Aktionen`},Se={class:`ih:px-4 ih:pt-3 ih:text-[15px] ih:leading-relaxed ih:sm:px-5`},Ce={class:`ih:flex ih:gap-2`},we=[`href`],Te=[`src`,`alt`],Ee={key:0,class:`ih:absolute ih:inset-0 ih:grid ih:place-items-center ih:bg-foreground/55 ih:text-2xl ih:font-semibold ih:text-background`},De={key:1,class:`ih:grid ih:gap-2 ih:px-4 ih:pt-3 ih:sm:px-5`},Oe=[`href`],ke={class:`ih:min-w-0 ih:flex-1`},Ae={class:`ih:block ih:truncate ih:text-sm ih:font-medium`},je={class:`ih:text-xs ih:text-muted-foreground`},Me={key:2,class:`ih:mx-4 ih:mt-3 ih:grid ih:gap-2 ih:rounded-lg ih:border ih:p-3 ih:sm:mx-5`},Ne={class:`ih:px-1 ih:text-xs ih:font-semibold ih:text-muted-foreground`},Pe=[`aria-pressed`,`disabled`,`onClick`],Fe={class:`ih:relative ih:flex ih:justify-between ih:gap-3`},Ie={key:0,class:`ih:text-muted-foreground ih:tabular-nums`},Le={class:`ih:flex ih:items-center ih:justify-between ih:text-xs ih:text-muted-foreground`},Re={class:`ih:mt-3 ih:flex ih:items-center ih:justify-between ih:px-4 ih:text-[13px] ih:text-muted-foreground ih:sm:px-5`},ze={key:0,class:`ih:inline-flex ih:items-center ih:gap-1`},Be={class:`ih:tracking-tighter`},Ve={key:1},He={key:3,class:`ih:mx-4 ih:mt-2 ih:grid ih:grid-cols-2 ih:border-t ih:py-1 ih:sm:mx-5`},Ue={class:`ih:group/react ih:relative`},We=[`aria-pressed`],Ge={class:`ih:text-base`},Ke={class:`ih:absolute ih:bottom-full ih:left-2 ih:z-20 ih:hidden ih:gap-0.5 ih:rounded-full ih:border ih:bg-popover ih:p-1 ih:shadow-md ih:group-focus-within/react:flex ih:group-hover/react:flex`},qe=[`aria-label`,`onClick`],Je={key:4,class:`ih:h-3`},Ye={__name:`PostCard`,props:{post:{type:Object,required:!0},reactions:{type:Array,required:!0},showGroup:{type:Boolean,default:!1},fullComments:{type:Array,default:null}},emits:[`deleted`,`changed`],setup(e,{emit:t}){let A=e,P=t,I=A.post,R=p(!!A.fullComments||I.comments.length>0),z=p(!1),V=p(I.body??``);async function H(e){let t=I.my_reaction===e?null:e,n=I.my_reaction,r=(e,t)=>{if(!e)return;let n=I.reactions.find(t=>t.emoji===e);n?n.count+=t:t>0&&I.reactions.push({emoji:e,count:1}),I.reactions=I.reactions.filter(e=>e.count>0).sort((e,t)=>t.count-e.count),I.reactions_total+=t};r(n,-1),r(t,1),I.my_reaction=t,await O.post(`/gruppen/beitraege/${I.id}/reaktion`,{emoji:t}).catch(e=>k.error(e.message))}let U=p([...I.poll?.mine??[]]),W=r(()=>(I.poll?.mine??[]).length>0),G=r(()=>I.poll?.options.reduce((e,t)=>e+t.votes,0)??0);async function K(e){try{I.poll=(await O.post(`/gruppen/beitraege/${I.id}/abstimmen`,{options:e})).poll,U.value=[...I.poll.mine]}catch(e){k.error(e.message)}}function q(e){I.can_comment&&(I.poll.multiple?U.value=U.value.includes(e)?U.value.filter(t=>t!==e):[...U.value,e]:K([e]))}async function J(){try{await O.post(`/gruppen/beitraege/${I.id}/anpinnen`,{pinned:!I.pinned}),I.pinned=!I.pinned,P(`changed`)}catch(e){k.error(e.message)}}async function Y(){window.confirm(`Beitrag löschen?`)&&(await O.delete(`/gruppen/beitraege/${I.id}`),P(`deleted`,I))}async function X(){await O.put(`/gruppen/beitraege/${I.id}`,{body:V.value}),I.body=V.value,I.edited=!0,z.value=!1}async function Z(){let e=window.prompt(`Was stimmt mit diesem Beitrag nicht?`);if(!e?.trim())return;let t=await O.post(`/gruppen/beitraege/${I.id}/melden`,{reason:e});k.success(t.message)}let Q=r(()=>I.images.slice(0,4));return(t,r)=>(f(),o(`article`,{class:`ih:overflow-hidden ih:rounded-xl ih:border ih:bg-card ih:shadow-xs`,"aria-label":`Beitrag von ${_(I).user?.name??`Gelöschtes Konto`}`},[s(`header`,me,[_(I).user?(f(),i(_(E),{key:0,person:_(I).user,class:`ih:size-10`},null,8,[`person`])):a(``,!0),s(`div`,he,[s(`p`,ge,[_(I).user?(f(),o(`a`,{key:0,href:`/personen/${_(I).user.id}`,class:`ih:font-semibold ih:hover:underline`},g(_(I).user.name),9,_e)):a(``,!0),e.showGroup?(f(),o(n,{key:1},[r[7]||=s(`span`,{class:`ih:mx-1 ih:text-muted-foreground`},`in`,-1),s(`a`,{href:`/gruppen/${_(I).group.slug}`,class:`ih:font-semibold ih:hover:underline`},g(_(I).group.name),9,ve)],64)):a(``,!0)]),s(`p`,$,[s(`a`,{href:_(I).url,class:`ih:hover:underline`},g(_(D)(_(I).created_at)),9,ye),_(I).edited?(f(),o(n,{key:0},[c(` · bearbeitet`)],64)):a(``,!0),_(I).pinned?(f(),o(`span`,be,[l(_(N),{class:`ih:size-3`}),r[8]||=c(` Angepinnt`,-1)])):a(``,!0)])]),l(_(C),null,{default:y(()=>[l(_(ee),{"as-child":``},{default:y(()=>[s(`button`,xe,[l(_(re),{class:`ih:size-5`})])]),_:1}),l(_(w),{align:`end`},{default:y(()=>[_(I).can_pin?(f(),i(_(T),{key:0,onSelect:J},{default:y(()=>[(f(),i(h(_(I).pinned?_(M):_(N)))),c(` `+g(_(I).pinned?`Nicht mehr anpinnen`:`Oben anpinnen`),1)]),_:1})):a(``,!0),_(I).can_edit&&_(I).body!==null?(f(),i(_(T),{key:1,onSelect:r[0]||=e=>{z.value=!0,V.value=_(I).body}},{default:y(()=>[l(_(ae)),r[9]||=c(` Bearbeiten`,-1)]),_:1})):a(``,!0),_(I).can_delete?(f(),i(_(T),{key:2,class:`ih:text-destructive`,onSelect:Y},{default:y(()=>[l(_(F)),r[10]||=c(` Löschen`,-1)]),_:1})):a(``,!0),_(I).can_edit?a(``,!0):(f(),i(_(T),{key:3,onSelect:Z},{default:y(()=>[l(_(j)),r[11]||=c(` Melden`,-1)]),_:1}))]),_:1})]),_:1})]),s(`div`,Se,[z.value?(f(),o(`form`,{key:0,class:`ih:grid ih:gap-2`,onSubmit:x(X,[`prevent`])},[b(s(`textarea`,{"onUpdate:modelValue":r[1]||=e=>V.value=e,rows:`4`,maxlength:`10000`,"aria-label":`Beitrag bearbeiten`,class:`ih:w-full ih:rounded-md ih:border ih:border-input ih:bg-background ih:p-3 ih:text-sm`},null,512),[[v,V.value]]),s(`div`,Ce,[l(_(S),{size:`sm`,type:`submit`},{default:y(()=>[...r[12]||=[c(`Speichern`,-1)]]),_:1}),l(_(S),{size:`sm`,variant:`ghost`,type:`button`,onClick:r[2]||=e=>z.value=!1},{default:y(()=>[...r[13]||=[c(`Abbrechen`,-1)]]),_:1})])],32)):_(I).body?(f(),i(B,{key:1,text:_(I).body},null,8,[`text`])):a(``,!0)]),_(I).images.length?(f(),o(`div`,{key:0,class:u([`ih:mt-3 ih:grid ih:gap-0.5`,_(I).images.length===1?``:`ih:grid-cols-2`])},[(f(!0),o(n,null,m(Q.value,(e,t)=>(f(),o(`a`,{key:e.id,href:e.url,target:`_blank`,rel:`noopener`,class:u([`ih:relative ih:block ih:overflow-hidden ih:bg-muted`,_(I).images.length===3&&t===0?`ih:row-span-2`:``])},[s(`img`,{src:_(I).images.length===1?e.url:e.thumb_url,alt:e.name,loading:`lazy`,class:u([`ih:w-full ih:object-cover`,_(I).images.length===1?`ih:max-h-[32rem]`:`ih:aspect-square ih:h-full`])},null,10,Te),t===3&&_(I).images.length>4?(f(),o(`span`,Ee,`+`+g(_(I).images.length-4),1)):a(``,!0)],10,we))),128))],2)):a(``,!0),_(I).files.length?(f(),o(`div`,De,[(f(!0),o(n,null,m(_(I).files,e=>(f(),o(`a`,{key:e.id,href:e.url,class:`ih:flex ih:items-center ih:gap-3 ih:rounded-lg ih:border ih:p-2.5 ih:hover:bg-accent/60`},[l(_(te),{extension:e.name.split(`.`).pop(),class:`ih:shrink-0`},null,8,[`extension`]),s(`span`,ke,[s(`span`,Ae,g(e.name),1),s(`span`,je,g(_(L)(e.size)),1)]),l(_(ne),{class:`ih:size-4 ih:text-muted-foreground`})],8,Oe))),128))])):a(``,!0),_(I).poll?(f(),o(`fieldset`,Me,[s(`legend`,Ne,`Umfrage`+g(_(I).poll.multiple?` · mehrere Antworten möglich`:``),1),(f(!0),o(n,null,m(_(I).poll.options,(e,t)=>(f(),o(`button`,{key:t,type:`button`,class:u([`ih:relative ih:overflow-hidden ih:rounded-md ih:border ih:px-3 ih:py-2 ih:text-left ih:text-sm ih:disabled:cursor-default`,(W.value?_(I).poll.mine:U.value).includes(t)?`ih:border-brand`:`ih:hover:border-brand/50`]),"aria-pressed":(W.value?_(I).poll.mine:U.value).includes(t),disabled:!_(I).can_comment,onClick:e=>q(t)},[W.value?(f(),o(`span`,{key:0,class:`ih:absolute ih:inset-y-0 ih:left-0 ih:bg-brand-soft`,style:d({width:`${G.value?Math.round(e.votes/G.value*100):0}%`}),"aria-hidden":`true`},null,4)):a(``,!0),s(`span`,Fe,[s(`span`,{class:u({"ih:font-semibold":_(I).poll.mine.includes(t)})},g(e.label),3),W.value?(f(),o(`span`,Ie,g(G.value?Math.round(e.votes/G.value*100):0)+` % · `+g(e.votes),1)):a(``,!0)])],10,Pe))),128)),s(`div`,Le,[s(`span`,null,g(_(I).poll.voters)+` `+g(_(I).poll.voters===1?`Person hat`:`Personen haben`)+` abgestimmt`,1),_(I).poll.multiple&&_(I).can_comment?(f(),i(_(S),{key:0,size:`sm`,variant:`outline`,disabled:!U.value.length&&!W.value,onClick:r[3]||=e=>K(U.value)},{default:y(()=>[c(g(W.value?`Stimme ändern`:`Abstimmen`),1)]),_:1},8,[`disabled`])):a(``,!0)])])):a(``,!0),s(`div`,Re,[_(I).reactions_total?(f(),o(`span`,ze,[s(`span`,Be,g(_(I).reactions.slice(0,3).map(e=>e.emoji).join(``)),1),c(` `+g(_(I).reactions_total),1)])):(f(),o(`span`,Ve)),_(I).comments_count?(f(),o(`button`,{key:2,type:`button`,class:`ih:hover:underline`,onClick:r[4]||=e=>R.value=!R.value},g(_(I).comments_count)+` `+g(_(I).comments_count===1?`Kommentar`:`Kommentare`),1)):a(``,!0)]),_(I).can_comment?(f(),o(`div`,He,[s(`div`,Ue,[s(`button`,{type:`button`,class:u([`ih:flex ih:w-full ih:items-center ih:justify-center ih:gap-2 ih:rounded-md ih:py-2 ih:text-sm ih:font-medium ih:hover:bg-accent`,_(I).my_reaction?`ih:text-brand-text`:`ih:text-muted-foreground`]),"aria-pressed":!!_(I).my_reaction,onClick:r[5]||=e=>H(_(I).my_reaction??`👍`)},[s(`span`,Ge,g(_(I).my_reaction??`👍`),1),c(` `+g(_(I).my_reaction?`Reagiert`:`Gefällt mir`),1)],10,We),s(`div`,Ke,[(f(!0),o(n,null,m(e.reactions,e=>(f(),o(`button`,{key:e,type:`button`,class:`ih:grid ih:size-9 ih:place-items-center ih:rounded-full ih:text-xl ih:transition-transform ih:hover:scale-125`,"aria-label":`Mit ${e} reagieren`,onClick:t=>H(e)},g(e),9,qe))),128))])]),s(`button`,{type:`button`,class:`ih:flex ih:items-center ih:justify-center ih:gap-2 ih:rounded-md ih:py-2 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:bg-accent`,onClick:r[6]||=e=>R.value=!0},[l(_(ie),{class:`ih:size-4`}),r[14]||=c(` Kommentieren`,-1)])])):(f(),o(`div`,Je)),R.value?(f(),i(fe,{key:5,post:_(I),full:!!e.fullComments,initial:e.fullComments},null,8,[`post`,`full`,`initial`])):a(``,!0)],8,pe))}};export{j as i,L as n,F as r,Ye as t}; \ No newline at end of file diff --git a/dist/chunks/loader-circle-CxzeMpQS.js b/dist/chunks/loader-circle-CxzeMpQS.js new file mode 100644 index 0000000..2daca84 --- /dev/null +++ b/dist/chunks/loader-circle-CxzeMpQS.js @@ -0,0 +1 @@ +import{h as e,inject as t}from"vue";var n={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},r=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim();function i(e){return e!=null}function a(e,t={}){let a=t.attributeNames??{},o=e=>a[e]??e,s=e.size??e.width??n.width,c=e.size??e.height??n.height,l=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],u=[...e.name?[`lucide-${e.name}`]:[],...l],d=t.className?.split(` `).filter(Boolean)??[],f=t.includeDefaultClasses===!1?r(...d):r(`lucide`,...u,...d),p=t.absoluteStrokeWidth?Number(t.strokeWidth??n[`stroke-width`])*Number(e.size??e.width??n.width)/Number(t.size??t.width??n.width):t.strokeWidth??n[`stroke-width`];return[`svg`,{...Object.entries(n).reduce((e,[t,n])=>(e[o(t)]=n,e),{}),...`color`in t&&t.color&&{[o(`stroke`)]:t.color},...`size`in t&&i(t.size)&&{[o(`width`)]:t.size,[o(`height`)]:t.size},...`width`in t&&i(t.width)&&{[o(`width`)]:t.width},...`height`in t&&i(t.height)&&{[o(`height`)]:t.height},[o(`stroke-width`)]:p,...f&&{[o(`class`)]:f},[o(`viewBox`)]:`0 0 ${s} ${c}`,...t.hasA11yProp===!1?{[o(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,r,i]=e,a=t.nonScalingStroke?{[o(`vector-effect`)]:`non-scaling-stroke`,...r}:r;return i?[n,a,i]:[n,a]})]}var o=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},s=e=>e===``,c=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),l=Symbol(`lucide-icons`);function u(){return t(l,{})}var d=({name:t,iconNode:n,"icon-node":r,icon:i={name:t&&c(t),node:n??r??[],size:24,aliases:[]},absoluteStrokeWidth:l,"absolute-stroke-width":d,nonScalingStroke:f,"non-scaling-stroke":p,strokeWidth:m,"stroke-width":h,size:g,width:_=g,height:v=g,color:y,...b},{slots:x})=>{let{size:S,color:C,strokeWidth:w=2,absoluteStrokeWidth:T=!1,nonScalingStroke:E=!1,class:D=``}=u(),O=s(l)||s(d)||l===!0||d===!0||T===!0,k=s(f)||s(p)||f===!0||p===!0||E===!0;delete b.class;let A=x.default?.(),[,j,M=[]]=a(i,{color:y??C,width:_??g??S,height:v??g??S,strokeWidth:m??h??w,absoluteStrokeWidth:O,nonScalingStroke:k,className:D,hasA11yProp:A!=null&&A.length>0||o(b),attributes:b});return e(`svg`,j,[...M.map(([t,n])=>e(t,n)),...A??[]])};function f(t,n=[]){let r=typeof t==`string`?{name:t,node:n}:t;return(t,{slots:n})=>e(d,{...t,icon:r},n.default?{default:n.default}:void 0)}var p=f({name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]});export{f as n,p as t}; \ No newline at end of file diff --git a/dist/chunks/search-7rL_HYGC.js b/dist/chunks/search-7rL_HYGC.js new file mode 100644 index 0000000..2c5ba09 --- /dev/null +++ b/dist/chunks/search-7rL_HYGC.js @@ -0,0 +1 @@ +import{n as e}from"./loader-circle-CxzeMpQS.js";var t=e({name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]});export{t}; \ No newline at end of file diff --git a/dist/inhaus.json b/dist/inhaus.json new file mode 100644 index 0000000..b962745 --- /dev/null +++ b/dist/inhaus.json @@ -0,0 +1,12 @@ +{ + "components": { + "pages/Discover": "pages/Discover.js", + "pages/Index": "pages/Index.js", + "pages/Post": "pages/Post.js", + "pages/Show": "pages/Show.js", + "widgets/Recent": "widgets/Recent.js" + }, + "css": [ + "assets/style-CWIv2Jl3.css" + ] +} \ No newline at end of file diff --git a/dist/pages/Discover.js b/dist/pages/Discover.js new file mode 100644 index 0000000..69fc286 --- /dev/null +++ b/dist/pages/Discover.js @@ -0,0 +1 @@ +import{n as e,t}from"../chunks/GroupCard-5fLVVVGb.js";import{r as n,t as r}from"../chunks/GroupDialog-DkTJQL7Q.js";import{t as i}from"../chunks/search-7rL_HYGC.js";import{Fragment as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createElementVNode as l,createTextVNode as u,createVNode as d,openBlock as f,ref as p,renderList as m,unref as h,vModelText as g,watch as _,withCtx as v,withDirectives as y}from"vue";import{Link as b,router as x,usePage as S}from"@inertiajs/vue3";import{AppLayout as C,Button as w,EmptyState as T,PageHeader as E,toast as D}from"@inhaus/ui";var O={class:`ih:relative ih:mb-5 ih:max-w-md`},k={key:0,class:`ih:grid ih:gap-4 ih:sm:grid-cols-2 ih:lg:grid-cols-3 ih:xl:grid-cols-4`},A={key:1,class:`ih:rounded-xl ih:border ih:bg-card`},j={key:2,class:`ih:mt-6 ih:flex ih:justify-between ih:text-sm`},M={key:1},N={__name:`Discover`,props:{groups:{type:Array,required:!0},pagination:{type:Object,required:!0},q:{type:String,default:``},privacy:{type:Object,required:!0},privacyHints:{type:Object,required:!0}},setup(N){let P=N,F=S();_(()=>F.props.flash?.status,e=>e&&D.success(e),{immediate:!0});let I=p(P.q),L=p(!1),R;return _(I,e=>{clearTimeout(R),R=setTimeout(()=>x.get(`/gruppen/entdecken`,e?{q:e}:{},{preserveState:!0}),300)}),(p,_)=>(f(),o(h(C),{title:`Gruppen entdecken`},{default:v(()=>[d(h(E),{title:`Gruppen entdecken`,breadcrumbs:[{label:`Gruppen`,href:`/gruppen`}]},{actions:v(()=>[d(h(w),{onClick:_[0]||=e=>L.value=!0},{default:v(()=>[d(h(n)),_[3]||=u(` Gruppe gründen`,-1)]),_:1})]),_:1}),l(`div`,O,[d(h(i),{class:`ih:pointer-events-none ih:absolute ih:top-1/2 ih:left-2.5 ih:size-4 ih:-translate-y-1/2 ih:text-muted-foreground`}),y(l(`input`,{"onUpdate:modelValue":_[1]||=e=>I.value=e,type:`search`,placeholder:`Gruppen suchen`,"aria-label":`Gruppen suchen`,class:`ih:h-10 ih:w-full ih:rounded-md ih:border ih:border-input ih:bg-card ih:pr-3 ih:pl-8 ih:text-sm ih:shadow-xs`},null,512),[[g,I.value]])]),N.groups.length?(f(),c(`div`,k,[(f(!0),c(a,null,m(N.groups,e=>(f(),o(t,{key:e.id,group:e},null,8,[`group`]))),128))])):(f(),c(`div`,A,[d(h(T),{icon:h(e),title:N.q?`Keine passenden Gruppen`:`Noch keine Gruppen`,text:`Gründen Sie die erste!`},null,8,[`icon`,`title`])])),N.pagination.prev||N.pagination.next?(f(),c(`nav`,j,[N.pagination.prev?(f(),o(h(b),{key:0,href:N.pagination.prev,class:`ih:text-brand-text ih:hover:underline`},{default:v(()=>[..._[4]||=[u(`← Zurück`,-1)]]),_:1},8,[`href`])):(f(),c(`span`,M)),N.pagination.next?(f(),o(h(b),{key:2,href:N.pagination.next,class:`ih:text-brand-text ih:hover:underline`},{default:v(()=>[..._[5]||=[u(`Weiter →`,-1)]]),_:1},8,[`href`])):s(``,!0)])):s(``,!0),d(r,{open:L.value,"onUpdate:open":_[2]||=e=>L.value=e,privacy:N.privacy,"privacy-hints":N.privacyHints},null,8,[`open`,`privacy`,`privacy-hints`])]),_:1}))}};export{N as default}; \ No newline at end of file diff --git a/dist/pages/Index.js b/dist/pages/Index.js new file mode 100644 index 0000000..0f3ba23 --- /dev/null +++ b/dist/pages/Index.js @@ -0,0 +1 @@ +import{n as e,t}from"../chunks/loader-circle-CxzeMpQS.js";import{n,t as r}from"../chunks/GroupCard-5fLVVVGb.js";import{t as i}from"../chunks/PostCard-hYMtqskw.js";import{r as a,t as o}from"../chunks/GroupDialog-DkTJQL7Q.js";import{Fragment as s,createBlock as c,createCommentVNode as l,createElementBlock as u,createElementVNode as d,createTextVNode as f,createVNode as p,normalizeStyle as m,openBlock as h,ref as g,renderList as _,toDisplayString as v,unref as y,watch as b,withCtx as x}from"vue";import{Link as S,usePage as C}from"@inertiajs/vue3";import{AppLayout as w,Button as T,EmptyState as E,PageHeader as D,http as O,toast as k}from"@inhaus/ui";var A=e({name:`users-round`,size:24,node:[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]],aliases:[`users-2`]}),j={class:`ih:grid ih:gap-6 ih:lg:grid-cols-[minmax(0,1fr)_20rem]`},M={class:`ih:mx-auto ih:grid ih:w-full ih:max-w-2xl ih:content-start ih:gap-4`,"aria-label":`Neue Beiträge aus Ihren Gruppen`},N={key:1,class:`ih:rounded-xl ih:border ih:bg-card`},P={class:`ih:grid ih:content-start ih:gap-5`},F={key:0,class:`ih:rounded-xl ih:border ih:border-brand/40 ih:bg-brand-soft/40 ih:p-4`},I={class:`ih:grid ih:gap-3`},L={class:`ih:rounded-xl ih:border ih:bg-card ih:p-4`},R={key:0,class:`ih:-mx-2 ih:grid`},z={class:`ih:min-w-0`},B={class:`ih:block ih:truncate ih:text-sm ih:font-medium`},V={class:`ih:text-xs ih:text-muted-foreground`},H={key:1,class:`ih:text-sm ih:text-muted-foreground`},U={key:1,class:`ih:grid ih:gap-3`},W={__name:`Index`,props:{posts:{type:Array,required:!0},more:{type:Boolean,default:!1},groups:{type:Array,required:!0},invitations:{type:Array,default:()=>[]},suggested:{type:Array,default:()=>[]},privacy:{type:Object,required:!0},privacyHints:{type:Object,required:!0}},setup(e){let W=e,G=C();b(()=>G.props.flash?.status,e=>e&&k.success(e),{immediate:!0});let K=g(W.posts),q=g(W.more),J=g(!1),Y=g(!1),X=[`👍`,`❤️`,`😂`,`😮`,`😢`,`👏`];async function Z(){J.value=!0;let e=await O.get(`/gruppen?vor=${K.value.at(-1).id}`);K.value.push(...e.posts),q.value=e.more,J.value=!1}return(g,b)=>(h(),c(y(w),{title:`Gruppen`},{default:x(()=>[p(y(D),{title:`Gruppen`,description:`Austausch zu Themen, Hobbys und Projekten – offen, geschlossen oder privat.`},{actions:x(()=>[p(y(T),{variant:`outline`,"as-child":``},{default:x(()=>[p(y(S),{href:`/gruppen/entdecken`},{default:x(()=>[p(y(n)),b[2]||=f(` Gruppen entdecken`,-1)]),_:1})]),_:1}),p(y(T),{onClick:b[0]||=e=>Y.value=!0},{default:x(()=>[p(y(a)),b[3]||=f(` Gruppe gründen`,-1)]),_:1})]),_:1}),d(`div`,j,[d(`section`,M,[(h(!0),u(s,null,_(K.value,e=>(h(),c(i,{key:e.id,post:e,reactions:X,"show-group":``,onDeleted:t=>K.value=K.value.filter(t=>t.id!==e.id)},null,8,[`post`,`onDeleted`]))),128)),q.value?(h(),c(y(T),{key:0,variant:`outline`,disabled:J.value,onClick:Z},{default:x(()=>[J.value?(h(),c(y(t),{key:0,class:`ih:animate-spin`})):l(``,!0),b[4]||=f(` Ältere Beiträge laden`,-1)]),_:1},8,[`disabled`])):l(``,!0),K.value.length?l(``,!0):(h(),u(`div`,N,[p(y(E),{icon:y(A),title:e.groups.length?`Noch keine Beiträge`:`Sie sind noch in keiner Gruppe`,text:e.groups.length?`Schreiben Sie den ersten Beitrag in einer Ihrer Gruppen.`:`Entdecken Sie Gruppen zu Ihren Themen – oder gründen Sie selbst eine.`},null,8,[`icon`,`title`,`text`])]))]),d(`aside`,P,[e.invitations.length?(h(),u(`section`,F,[b[5]||=d(`h2`,{class:`ih:mb-2 ih:text-sm ih:font-semibold`},`Einladungen`,-1),d(`div`,I,[(h(!0),u(s,null,_(e.invitations,e=>(h(),c(r,{key:e.id,group:e},null,8,[`group`]))),128))])])):l(``,!0),d(`section`,L,[b[6]||=d(`h2`,{class:`ih:mb-2 ih:text-sm ih:font-semibold`},`Ihre Gruppen`,-1),e.groups.length?(h(),u(`ul`,R,[(h(!0),u(s,null,_(e.groups,e=>(h(),u(`li`,{key:e.id},[p(y(S),{href:e.url,class:`ih:flex ih:items-center ih:gap-3 ih:rounded-md ih:p-2 ih:hover:bg-accent/60`},{default:x(()=>[d(`span`,{class:`ih:size-10 ih:shrink-0 ih:rounded-md ih:bg-brand ih:bg-cover ih:bg-center`,style:m(e.cover_url?{backgroundImage:`url(${e.cover_url})`}:{})},null,4),d(`span`,z,[d(`span`,B,v(e.name),1),d(`span`,V,v(e.members_count)+` `+v(e.members_count===1?`Mitglied`:`Mitglieder`),1)])]),_:2},1032,[`href`])]))),128))])):(h(),u(`p`,H,`Noch keine.`))]),e.suggested.length?(h(),u(`section`,U,[b[7]||=d(`h2`,{class:`ih:text-sm ih:font-semibold`},`Vorschläge`,-1),(h(!0),u(s,null,_(e.suggested,e=>(h(),c(r,{key:e.id,group:e},null,8,[`group`]))),128))])):l(``,!0)])]),p(o,{open:Y.value,"onUpdate:open":b[1]||=e=>Y.value=e,privacy:e.privacy,"privacy-hints":e.privacyHints},null,8,[`open`,`privacy`,`privacy-hints`])]),_:1}))}};export{W as default}; \ No newline at end of file diff --git a/dist/pages/Post.js b/dist/pages/Post.js new file mode 100644 index 0000000..17c5a26 --- /dev/null +++ b/dist/pages/Post.js @@ -0,0 +1 @@ +import{n as e}from"../chunks/loader-circle-CxzeMpQS.js";import{i as t,t as n}from"../chunks/PostCard-hYMtqskw.js";import{Fragment as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,createVNode as l,onMounted as u,openBlock as d,renderList as f,toDisplayString as p,unref as m,withCtx as h}from"vue";import{Link as g,router as _}from"@inertiajs/vue3";import{AppLayout as v,Button as y,http as b,toast as x}from"@inhaus/ui";var S=e({name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]}),C={class:`ih:mx-auto ih:grid ih:max-w-2xl ih:gap-4`},w={key:0,class:`ih:rounded-md ih:border ih:border-destructive/30 ih:bg-destructive/5 ih:p-3 ih:text-sm`},T={class:`ih:flex ih:items-center ih:gap-2 ih:font-medium`},E={class:`ih:mt-1 ih:list-disc ih:pl-6 ih:text-muted-foreground`},D={__name:`Post`,props:{group:{type:Object,required:!0},post:{type:Object,required:!0},comments:{type:Array,required:!0},reactions:{type:Array,required:!0},reports:{type:Array,default:()=>[]}},setup(e){let D=e;u(()=>{(location.hash&&document.querySelector(location.hash))?.scrollIntoView({block:`center`})});async function O(){await b.post(`/gruppen/beitraege/${D.post.id}/meldungen-erledigt`),x.success(`Meldungen erledigt`),_.reload()}return(u,b)=>(d(),i(m(v),{title:`Beitrag in ${e.group.name}`},{default:h(()=>[s(`div`,C,[l(m(g),{href:e.group.url,class:`ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:text-foreground`},{default:h(()=>[l(m(S),{class:`ih:size-4`}),c(` `+p(e.group.name),1)]),_:1},8,[`href`]),e.reports.length?(d(),o(`div`,w,[s(`p`,T,[l(m(t),{class:`ih:size-4 ih:text-destructive`}),c(` `+p(e.reports.length)+` `+p(e.reports.length===1?`Meldung`:`Meldungen`),1)]),s(`ul`,E,[(d(!0),o(r,null,f(e.reports,e=>(d(),o(`li`,{key:e.id},p(e.comment_id?`Kommentar: `:``)+p(e.reason),1))),128))]),l(m(y),{size:`sm`,variant:`outline`,class:`ih:mt-2`,onClick:O},{default:h(()=>[...b[1]||=[c(`In Ordnung – erledigt`,-1)]]),_:1})])):a(``,!0),l(n,{post:e.post,reactions:e.reactions,"full-comments":e.comments,onDeleted:b[0]||=t=>m(_).visit(e.group.url)},null,8,[`post`,`reactions`,`full-comments`])])]),_:1},8,[`title`]))}};export{D as default}; \ No newline at end of file diff --git a/dist/pages/Show.js b/dist/pages/Show.js new file mode 100644 index 0000000..a013c19 --- /dev/null +++ b/dist/pages/Show.js @@ -0,0 +1 @@ +import{n as e,t}from"../chunks/loader-circle-CxzeMpQS.js";import{i as n,n as r,r as i,t as a}from"../chunks/PostCard-hYMtqskw.js";import{a as o,i as s,n as c,o as l,r as u,t as d}from"../chunks/GroupDialog-DkTJQL7Q.js";import{t as f}from"../chunks/search-7rL_HYGC.js";import{Fragment as p,computed as m,createBlock as h,createCommentVNode as g,createElementBlock as _,createElementVNode as v,createTextVNode as y,createVNode as b,mergeModels as x,normalizeClass as S,normalizeStyle as C,openBlock as w,ref as T,renderList as E,resolveDynamicComponent as D,toDisplayString as O,unref as k,useModel as A,vModelText as j,watch as M,withCtx as N,withDirectives as P,withKeys as F,withModifiers as I}from"vue";import{Link as ee,router as L,usePage as te}from"@inertiajs/vue3";import{AppLayout as ne,Button as R,Dialog as re,DialogContent as ie,DialogDescription as ae,DialogFooter as oe,DialogHeader as se,DialogTitle as ce,EmptyState as z,PersonAvatar as B,Switch as V,http as H,toast as U}from"@inhaus/ui";var le=e({name:`bell-off`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742`,key:`178tsu`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05`,key:`1hqiys`}]]}),ue=e({name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]}),W=e({name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]}),G=e({name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]}),K=e({name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]}),q=e({name:`image-plus`,size:24,node:[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]}),de=e({name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]}),J=e({name:`paperclip`,size:24,node:[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]}),Y=e({name:`pencil-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]}),fe=e({name:`user-minus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]}),pe=e({name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]}),X=e({name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]}),Z={class:`ih:grid ih:gap-2`},Q={key:0,class:`ih:flex ih:flex-wrap ih:gap-1.5`},$=[`aria-label`,`onClick`],me={class:`ih:relative`},he=[`autofocus`,`placeholder`],ge={key:1,class:`ih:max-h-64 ih:overflow-y-auto ih:rounded-md ih:border ih:bg-popover ih:p-1`,role:`listbox`},_e=[`aria-selected`],ve=[`onClick`,`onMouseenter`],ye={class:`ih:min-w-0 ih:flex-1`},be={class:`ih:block ih:truncate ih:font-medium`},xe={key:0,class:`ih:block ih:truncate ih:text-xs ih:text-muted-foreground`},Se={key:2,class:`ih:px-1 ih:text-[13px] ih:text-muted-foreground`},Ce={__name:`PeopleSelect`,props:x({multiple:{type:Boolean,default:!1},exclude:{type:Array,default:()=>[]},placeholder:{type:String,default:`Name oder E-Mail eingeben …`},autofocus:{type:Boolean,default:!1}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:x([`pick`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=A(e,`modelValue`),a=T(``),o=T([]),s=T(0),c=T(!1),l;M(a,e=>{if(clearTimeout(l),e.trim().length<2){o.value=[];return}l=setTimeout(async()=>{c.value=!0;try{let t=[...n.exclude,...i.value.map(e=>e.id)];o.value=(await H.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`)).people.filter(e=>!t.includes(e.id)),s.value=0}finally{c.value=!1}},200)});function u(e){e&&(r(`pick`,e),n.multiple&&(i.value=[...i.value,e]),a.value=``,o.value=[])}let d=e=>i.value=i.value.filter(t=>t.id!==e.id);return(t,n)=>(w(),_(`div`,Z,[e.multiple&&i.value.length?(w(),_(`div`,Q,[(w(!0),_(p,null,E(i.value,e=>(w(),_(`span`,{key:e.id,class:`ih:inline-flex ih:items-center ih:gap-1.5 ih:rounded-full ih:border ih:bg-card ih:py-0.5 ih:pr-1 ih:pl-0.5 ih:text-[13px]`},[b(k(B),{person:e,class:`ih:size-6 ih:text-[10px]`},null,8,[`person`]),y(` `+O(e.name)+` `,1),v(`button`,{type:`button`,class:`ih:rounded-full ih:p-0.5 ih:text-muted-foreground ih:hover:bg-muted ih:hover:text-foreground`,"aria-label":`${e.name} entfernen`,onClick:t=>d(e)},[b(k(X),{class:`ih:size-3.5`})],8,$)]))),128))])):g(``,!0),v(`div`,me,[b(k(f),{class:`ih:pointer-events-none ih:absolute ih:top-1/2 ih:left-2.5 ih:size-4 ih:-translate-y-1/2 ih:text-muted-foreground`}),P(v(`input`,{"onUpdate:modelValue":n[0]||=e=>a.value=e,type:`search`,autocomplete:`off`,autofocus:e.autofocus,placeholder:e.placeholder,"aria-label":`Person suchen`,class:`ih:h-10 ih:w-full ih:rounded-md ih:border ih:border-input ih:bg-card ih:pr-3 ih:pl-8 ih:text-sm ih:shadow-xs ih:focus-visible:ring-3 ih:focus-visible:ring-ring/30 ih:focus-visible:outline-none`,onKeydown:[n[1]||=F(I(e=>s.value=Math.min(o.value.length-1,s.value+1),[`prevent`]),[`down`]),n[2]||=F(I(e=>s.value=Math.max(0,s.value-1),[`prevent`]),[`up`]),n[3]||=F(I(e=>u(o.value[s.value]),[`prevent`]),[`enter`])]},null,40,he),[[j,a.value]])]),o.value.length?(w(),_(`ul`,ge,[(w(!0),_(p,null,E(o.value,(e,t)=>(w(),_(`li`,{key:e.id,role:`option`,"aria-selected":t===s.value},[v(`button`,{type:`button`,class:S([`ih:flex ih:w-full ih:items-center ih:gap-2.5 ih:rounded ih:px-2 ih:py-1.5 ih:text-left ih:text-sm`,t===s.value?`ih:bg-accent`:`ih:hover:bg-accent/60`]),onClick:t=>u(e),onMouseenter:e=>s.value=t},[b(k(B),{person:e,class:`ih:size-7 ih:text-[11px]`},null,8,[`person`]),v(`span`,ye,[v(`span`,be,O(e.name),1),e.job_title||e.department?(w(),_(`span`,xe,O([e.job_title,e.department].filter(Boolean).join(` · `)),1)):g(``,!0)])],42,ve)],8,_e))),128))])):a.value.trim().length>=2&&!c.value?(w(),_(`p`,Se,`Niemand gefunden.`)):g(``,!0)]))}},we={class:`ih:flex ih:gap-3`},Te=[`rows`,`placeholder`],Ee={key:0,class:`ih:mt-3 ih:flex ih:flex-wrap ih:gap-2 ih:pl-13`},De=[`src`,`alt`],Oe={key:1,class:`ih:flex ih:h-20 ih:w-40 ih:items-center ih:gap-2 ih:rounded-md ih:border ih:bg-muted ih:px-2 ih:text-xs`},ke={class:`ih:min-w-0`},Ae={class:`ih:block ih:truncate ih:font-medium`},je=[`aria-label`,`onClick`],Me={key:1,class:`ih:mt-3 ih:grid ih:gap-2 ih:rounded-lg ih:border ih:p-3 ih:sm:ml-13`},Ne={class:`ih:flex ih:items-center ih:justify-between`},Pe=[`onUpdate:modelValue`,`placeholder`,`aria-label`],Fe={class:`ih:flex ih:flex-wrap ih:items-center ih:justify-between ih:gap-2`},Ie={class:`ih:flex ih:items-center ih:gap-2 ih:text-sm`},Le={key:2,class:`ih:mt-3 ih:flex ih:flex-wrap ih:items-center ih:gap-1 ih:border-t ih:pt-3`},Re={__name:`PostComposer`,props:{group:{type:Object,required:!0},me:{type:Object,required:!0}},emits:[`created`],setup(e,{emit:n}){let i=e,a=n,o=T(``),s=T([]),c=T(null),l=T(!1),d=T(!1),f=T(null),x=T(null),S=T(!1),C=m(()=>!d.value&&(o.value.trim()||s.value.length||c.value&&c.value.filter(e=>e.trim()).length>=2));function D(e){for(let t of e){if(s.value.length>=10){U.error(`Höchstens 10 Dateien je Beitrag.`);break}s.value.push({file:t,url:t.type.startsWith(`image/`)?URL.createObjectURL(t):null})}S.value=!0}function A(e){let[t]=s.value.splice(e,1);t?.url&&URL.revokeObjectURL(t.url)}async function M(){d.value=!0;let e=new FormData;o.value.trim()&&e.append(`body`,o.value),s.value.forEach(t=>e.append(`files[]`,t.file)),c.value&&(c.value.filter(e=>e.trim()).forEach(t=>e.append(`poll[]`,t)),e.append(`multiple`,l.value?`1`:`0`));try{let{post:t}=await H.post(`/gruppen/${i.group.slug}/beitraege`,e);a(`created`,t),s.value.forEach(e=>e.url&&URL.revokeObjectURL(e.url)),o.value=``,s.value=[],c.value=null,S.value=!1}catch(e){U.error(e.message)}finally{d.value=!1}}return(n,i)=>(w(),_(`section`,{class:`ih:rounded-xl ih:border ih:bg-card ih:p-4 ih:shadow-xs`,"aria-label":`Neuer Beitrag`,onDragover:i[11]||=I(()=>{},[`prevent`]),onDrop:i[12]||=I(e=>D([...e.dataTransfer.files]),[`prevent`])},[v(`div`,we,[b(k(B),{person:e.me,class:`ih:size-10`},null,8,[`person`]),P(v(`textarea`,{"onUpdate:modelValue":i[0]||=e=>o.value=e,rows:S.value||o.value?4:1,maxlength:`10000`,placeholder:`Was möchten Sie mit „${e.group.name}“ teilen?`,"aria-label":`Beitrag schreiben`,class:`ih:min-h-10 ih:flex-1 ih:resize-none ih:rounded-2xl ih:bg-muted ih:px-4 ih:py-2 ih:text-[15px] ih:focus-visible:bg-background ih:focus-visible:ring-3 ih:focus-visible:ring-ring/30 ih:focus-visible:outline-none`,onFocus:i[1]||=e=>S.value=!0,onPaste:i[2]||=e=>e.clipboardData?.files?.length&&(e.preventDefault(),D([...e.clipboardData.files]))},null,40,Te),[[j,o.value]])]),s.value.length?(w(),_(`ul`,Ee,[(w(!0),_(p,null,E(s.value,(e,t)=>(w(),_(`li`,{key:t,class:`ih:relative`},[e.url?(w(),_(`img`,{key:0,src:e.url,alt:e.file.name,class:`ih:size-20 ih:rounded-md ih:border ih:object-cover`},null,8,De)):(w(),_(`span`,Oe,[b(k(K),{class:`ih:size-5 ih:shrink-0`}),v(`span`,ke,[v(`span`,Ae,O(e.file.name),1),y(O(k(r)(e.file.size)),1)])])),v(`button`,{type:`button`,class:`ih:absolute ih:-top-1.5 ih:-right-1.5 ih:grid ih:size-5 ih:place-items-center ih:rounded-full ih:bg-foreground ih:text-background`,"aria-label":`${e.file.name} entfernen`,onClick:e=>A(t)},[b(k(X),{class:`ih:size-3`})],8,je)]))),128))])):g(``,!0),c.value?(w(),_(`div`,Me,[v(`div`,Ne,[i[13]||=v(`span`,{class:`ih:text-sm ih:font-medium`},`Umfrage`,-1),v(`button`,{type:`button`,class:`ih:text-xs ih:text-muted-foreground ih:hover:text-foreground`,onClick:i[3]||=e=>c.value=null},`Entfernen`)]),(w(!0),_(p,null,E(c.value,(e,t)=>P((w(),_(`input`,{key:t,"onUpdate:modelValue":e=>c.value[t]=e,maxlength:`120`,placeholder:`Antwort ${t+1}`,"aria-label":`Antwort ${t+1}`,class:`ih:h-9 ih:rounded-md ih:border ih:border-input ih:bg-background ih:px-3 ih:text-sm`},null,8,Pe)),[[j,c.value[t]]])),128)),v(`div`,Fe,[c.value.length<10?(w(),_(`button`,{key:0,type:`button`,class:`ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:text-brand-text ih:hover:underline`,onClick:i[4]||=e=>c.value.push(``)},[b(k(u),{class:`ih:size-4`}),i[14]||=y(` Antwort`,-1)])):g(``,!0),v(`label`,Ie,[b(k(V),{modelValue:l.value,"onUpdate:modelValue":i[5]||=e=>l.value=e},null,8,[`modelValue`]),i[15]||=y(` Mehrere Antworten erlauben`,-1)])])])):g(``,!0),S.value||o.value||s.value.length||c.value?(w(),_(`div`,Le,[v(`button`,{type:`button`,class:`ih:inline-flex ih:items-center ih:gap-1.5 ih:rounded-md ih:px-2.5 ih:py-1.5 ih:text-sm ih:text-muted-foreground ih:hover:bg-accent`,onClick:i[6]||=e=>f.value?.click()},[b(k(q),{class:`ih:size-4`}),i[16]||=y(` Foto`,-1)]),v(`button`,{type:`button`,class:`ih:inline-flex ih:items-center ih:gap-1.5 ih:rounded-md ih:px-2.5 ih:py-1.5 ih:text-sm ih:text-muted-foreground ih:hover:bg-accent`,onClick:i[7]||=e=>x.value?.click()},[b(k(J),{class:`ih:size-4`}),i[17]||=y(` Datei`,-1)]),c.value?g(``,!0):(w(),_(`button`,{key:0,type:`button`,class:`ih:inline-flex ih:items-center ih:gap-1.5 ih:rounded-md ih:px-2.5 ih:py-1.5 ih:text-sm ih:text-muted-foreground ih:hover:bg-accent`,onClick:i[8]||=e=>c.value=[``,``]},[b(k(W),{class:`ih:size-4`}),i[18]||=y(` Umfrage`,-1)])),i[20]||=v(`span`,{class:`ih:flex-1`},null,-1),b(k(R),{disabled:!C.value,onClick:M},{default:N(()=>[d.value?(w(),h(k(t),{key:0,class:`ih:animate-spin`})):g(``,!0),i[19]||=y(` Veröffentlichen`,-1)]),_:1},8,[`disabled`]),v(`input`,{ref_key:`photoInput`,ref:f,type:`file`,accept:`image/*`,multiple:``,class:`ih:hidden`,onChange:i[9]||=e=>{D([...e.target.files]),e.target.value=``}},null,544),v(`input`,{ref_key:`fileInput`,ref:x,type:`file`,multiple:``,class:`ih:hidden`,onChange:i[10]||=e=>{D([...e.target.files]),e.target.value=``}},null,544)])):g(``,!0)],32))}},ze={class:`ih:overflow-hidden ih:rounded-xl ih:border ih:bg-card ih:shadow-xs`},Be={class:`ih:flex ih:flex-wrap ih:items-end ih:gap-4 ih:p-5`},Ve={class:`ih:min-w-0 ih:flex-1`},He={class:`ih:mb-1 ih:text-[13px]`},Ue={class:`ih:text-2xl ih:font-semibold ih:tracking-tight`},We={class:`ih:mt-1 ih:flex ih:flex-wrap ih:items-center ih:gap-x-3 ih:gap-y-1 ih:text-sm ih:text-muted-foreground`},Ge=[`title`],Ke={class:`ih:inline-flex ih:items-center ih:gap-1`},qe={class:`ih:flex ih:flex-wrap ih:gap-2`},Je={class:`ih:flex ih:gap-1 ih:border-t ih:px-3`,role:`tablist`},Ye=[`aria-selected`,`onClick`],Xe={key:0,class:`ih:ml-1 ih:rounded-full ih:bg-brand ih:px-1.5 ih:text-[11px] ih:text-brand-foreground`},Ze={key:1,class:`ih:absolute ih:inset-x-2 ih:bottom-0 ih:h-[3px] ih:rounded-t-full ih:bg-brand`},Qe={class:`ih:mx-auto ih:mt-6 ih:grid ih:max-w-2xl ih:gap-4`},$e={key:0,class:`ih:flex ih:items-center ih:gap-2 ih:rounded-md ih:border ih:border-destructive/30 ih:bg-destructive/5 ih:p-3 ih:text-sm`},et={key:2,class:`ih:rounded-xl ih:border ih:bg-card`},tt={key:1,class:`ih:rounded-xl ih:border ih:bg-card`},nt={key:2,class:`ih:rounded-xl ih:border ih:bg-card ih:p-5`},rt={class:`ih:-mx-2 ih:mb-5 ih:grid`},it={class:`ih:min-w-0 ih:flex-1 ih:text-sm`},at={class:`ih:font-medium`},ot={class:`ih:block ih:text-xs ih:text-muted-foreground`},st={class:`ih:mb-2 ih:text-sm ih:font-semibold`},ct={class:`ih:-mx-2 ih:grid`},lt=[`href`],ut={class:`ih:font-medium`},dt={class:`ih:block ih:text-xs ih:text-muted-foreground`},ft=[`value`,`aria-label`,`onChange`],pt=[`value`],mt={key:1,class:`ih:rounded ih:bg-brand-soft ih:px-1.5 ih:py-0.5 ih:text-[11px] ih:font-medium ih:text-brand-text`},ht=[`aria-label`,`onClick`],gt={class:`ih:text-sm ih:text-muted-foreground`},_t={key:1,class:`ih:text-sm ih:text-muted-foreground`},vt={key:3,class:`ih:grid ih:gap-4 ih:rounded-xl ih:border ih:bg-card ih:p-5 ih:text-sm`},yt={key:0,class:`ih:text-[15px] ih:leading-relaxed ih:whitespace-pre-line`},bt={class:`ih:flex ih:items-start ih:gap-2 ih:text-muted-foreground`},xt={__name:`Show`,props:{group:{type:Object,required:!0},membership:{type:Object,default:null},can:{type:Object,required:!0},posts:{type:Array,required:!0},more:{type:Boolean,default:!1},members:{type:Object,default:null},privacy:{type:Object,required:!0},privacyHints:{type:Object,required:!0},roles:{type:Object,required:!0},reactions:{type:Array,required:!0},tab:{type:String,default:`beitraege`},reports:{type:Number,default:0}},setup(e){let r=e,u=te();M(()=>u.props.flash?.status,e=>e&&U.success(e),{immediate:!0});let f=m(()=>u.props.auth.user),x=T(r.posts);M(()=>r.posts,e=>x.value=e);let A=T(r.more),j=T(!1),P=T(r.tab),F=T(!1),I=T(!1),V=T([]),W={open:o,closed:s,secret:l},K=m(()=>r.membership?.status);async function q(){j.value=!0;let e=x.value.filter(e=>!e.pinned).at(-1),t=await H.get(`/gruppen/${r.group.slug}?vor=${e?.id??0}`);x.value.push(...t.posts.filter(e=>!x.value.some(t=>t.id===e.id))),A.value=t.more,j.value=!1}let J=(e,t={},n=`post`)=>L.visit(`/gruppen/${r.group.slug}${e}`,{method:n,data:t,preserveScroll:!0}),Z=e=>window.confirm(`${e.name} aus der Gruppe entfernen?`)&&J(`/mitglieder/${e.id}`,{},`delete`),Q=()=>window.confirm(`„${r.group.name}“ verlassen?`)&&J(`/verlassen`),$=()=>window.confirm(`Gruppe „${r.group.name}“ mit allen Beiträgen löschen?`)&&J(``,{},`delete`);function me(){L.post(`/gruppen/${r.group.slug}/einladen`,{users:V.value.map(e=>e.id)},{preserveScroll:!0,onSuccess:()=>{I.value=!1,V.value=[]}})}let he=m(()=>r.can.post&&(r.group.privacy===`open`||r.can.moderate));return(r,o)=>(w(),h(k(ne),{title:e.group.name},{default:N(()=>[v(`header`,ze,[v(`div`,{class:`ih:h-36 ih:bg-brand ih:bg-cover ih:bg-center ih:sm:h-52`,style:C(e.group.cover_url?{backgroundImage:`url(${e.group.cover_url})`}:{})},null,4),v(`div`,Be,[v(`div`,Ve,[v(`p`,He,[b(k(ee),{href:`/gruppen`,class:`ih:text-muted-foreground ih:hover:underline`},{default:N(()=>[...o[11]||=[y(`Gruppen`,-1)]]),_:1})]),v(`h1`,Ue,O(e.group.name),1),v(`p`,We,[v(`span`,{class:`ih:inline-flex ih:items-center ih:gap-1`,title:e.group.privacy_hint},[(w(),h(D(W[e.group.privacy]),{class:`ih:size-4`})),y(` `+O(e.group.privacy_label)+`e Gruppe`,1)],8,Ge),v(`span`,Ke,[b(k(c),{class:`ih:size-4`}),y(` `+O(e.group.members_count)+` `+O(e.group.members_count===1?`Mitglied`:`Mitglieder`),1)])])]),v(`div`,qe,[K.value===`active`?(w(),_(p,{key:0},[he.value?(w(),h(k(R),{key:0,onClick:o[0]||=e=>I.value=!0},{default:N(()=>[b(k(pe)),o[12]||=y(` Einladen`,-1)]),_:1})):g(``,!0),b(k(R),{variant:`outline`,size:`icon`,"aria-label":e.membership.notify===`all`?`Benachrichtigungen ausschalten`:`Benachrichtigungen einschalten`,title:e.membership.notify===`all`?`Sie werden über neue Beiträge benachrichtigt`:`Keine Benachrichtigungen`,onClick:o[1]||=t=>J(`/benachrichtigungen`,{notify:e.membership.notify===`all`?`off`:`all`},`put`)},{default:N(()=>[(w(),h(D(e.membership.notify===`all`?k(ue):k(le))))]),_:1},8,[`aria-label`,`title`]),e.can.admin?(w(),h(k(R),{key:1,variant:`outline`,onClick:o[2]||=e=>F.value=!0},{default:N(()=>[b(k(Y)),o[13]||=y(` Bearbeiten`,-1)]),_:1})):g(``,!0),b(k(R),{variant:`ghost`,class:`ih:text-muted-foreground`,onClick:Q},{default:N(()=>[b(k(de)),o[14]||=y(` Verlassen`,-1)]),_:1})],64)):K.value===`pending`?(w(),h(k(R),{key:1,variant:`outline`,disabled:``},{default:N(()=>[...o[15]||=[y(`Beitritt angefragt`,-1)]]),_:1})):K.value===`invited`?(w(),h(k(R),{key:2,onClick:o[3]||=e=>J(`/beitreten`)},{default:N(()=>[b(k(G)),o[16]||=y(` Einladung annehmen`,-1)]),_:1})):e.group.privacy===`secret`?g(``,!0):(w(),h(k(R),{key:3,onClick:o[4]||=e=>J(`/beitreten`)},{default:N(()=>[y(O(e.group.privacy===`open`?`Beitreten`:`Beitritt anfragen`),1)]),_:1})),e.can.admin&&K.value!==`active`?(w(),h(k(R),{key:4,variant:`outline`,onClick:o[5]||=e=>F.value=!0},{default:N(()=>[b(k(Y)),o[17]||=y(` Bearbeiten`,-1)]),_:1})):g(``,!0)])]),v(`nav`,Je,[(w(),_(p,null,E([{key:`beitraege`,label:`Beiträge`},{key:`mitglieder`,label:`Mitglieder`},{key:`info`,label:`Info`}],t=>v(`button`,{key:t.key,type:`button`,role:`tab`,"aria-selected":P.value===t.key,class:S([`ih:relative ih:px-3 ih:py-3 ih:text-sm ih:font-medium`,P.value===t.key?`ih:text-foreground`:`ih:text-muted-foreground ih:hover:text-foreground`]),onClick:e=>P.value=t.key},[y(O(t.label),1),t.key===`mitglieder`&&e.members?.pending.length?(w(),_(`span`,Xe,O(e.members.pending.length),1)):g(``,!0),P.value===t.key?(w(),_(`span`,Ze)):g(``,!0)],10,Ye)),64))])]),v(`div`,Qe,[e.can.moderate&&e.reports?(w(),_(`p`,$e,[b(k(n),{class:`ih:size-4 ih:text-destructive`}),y(` `+O(e.reports)+` offene `+O(e.reports===1?`Meldung`:`Meldungen`)+` – zu finden an den betroffenen Beiträgen.`,1)])):g(``,!0),P.value===`beitraege`?(w(),_(p,{key:1},[e.can.read?(w(),_(p,{key:0},[e.can.post?(w(),h(Re,{key:0,group:e.group,me:f.value,onCreated:o[6]||=e=>x.value.splice(x.value.filter(e=>e.pinned).length,0,e)},null,8,[`group`,`me`])):g(``,!0),(w(!0),_(p,null,E(x.value,t=>(w(),h(a,{key:t.id,post:t,reactions:e.reactions,onDeleted:e=>x.value=x.value.filter(e=>e.id!==t.id)},null,8,[`post`,`reactions`,`onDeleted`]))),128)),A.value?(w(),h(k(R),{key:1,variant:`outline`,disabled:j.value,onClick:q},{default:N(()=>[j.value?(w(),h(k(t),{key:0,class:`ih:animate-spin`})):g(``,!0),o[18]||=y(` Ältere Beiträge laden`,-1)]),_:1},8,[`disabled`])):g(``,!0),x.value.length?g(``,!0):(w(),_(`div`,et,[b(k(z),{icon:k(c),title:`Noch keine Beiträge`,text:e.can.post?`Schreiben Sie den ersten Beitrag!`:`Treten Sie bei, um mitzuschreiben.`},null,8,[`icon`,`text`])]))],64)):(w(),_(`div`,tt,[b(k(z),{icon:k(s),title:`Nur für Mitglieder`,text:e.group.privacy_hint},null,8,[`icon`,`text`])]))],64)):P.value===`mitglieder`?(w(),_(`section`,nt,[e.members?(w(),_(p,{key:0},[e.members.pending.length?(w(),_(p,{key:0},[o[20]||=v(`h2`,{class:`ih:mb-2 ih:text-sm ih:font-semibold`},`Beitrittsanfragen`,-1),v(`ul`,rt,[(w(!0),_(p,null,E(e.members.pending,e=>(w(),_(`li`,{key:e.id,class:`ih:flex ih:items-center ih:gap-3 ih:rounded-md ih:p-2`},[b(k(B),{person:e,class:`ih:size-9`},null,8,[`person`]),v(`span`,it,[v(`span`,at,O(e.name),1),v(`span`,ot,O(e.job_title),1)]),b(k(R),{size:`sm`,onClick:t=>J(`/anfragen/${e.id}`,{accept:!0})},{default:N(()=>[b(k(G)),o[19]||=y(` Aufnehmen`,-1)]),_:1},8,[`onClick`]),b(k(R),{size:`sm`,variant:`ghost`,"aria-label":`Anfrage von ${e.name} ablehnen`,onClick:t=>J(`/anfragen/${e.id}`,{accept:!1})},{default:N(()=>[b(k(X))]),_:1},8,[`aria-label`,`onClick`])]))),128))])],64)):g(``,!0),v(`h2`,st,O(e.members.active.length)+` `+O(e.members.active.length===1?`Mitglied`:`Mitglieder`),1),v(`ul`,ct,[(w(!0),_(p,null,E(e.members.active,t=>(w(),_(`li`,{key:t.id,class:`ih:flex ih:items-center ih:gap-3 ih:rounded-md ih:p-2 ih:hover:bg-muted/50`},[b(k(B),{person:t,class:`ih:size-9`},null,8,[`person`]),v(`a`,{href:`/personen/${t.id}`,class:`ih:min-w-0 ih:flex-1 ih:text-sm ih:hover:underline`},[v(`span`,ut,O(t.name),1),v(`span`,dt,O(t.job_title),1)],8,lt),e.can.admin&&t.id!==f.value.id?(w(),_(`select`,{key:0,value:t.role,class:`ih:h-8 ih:rounded-md ih:border ih:bg-card ih:px-2 ih:text-xs`,"aria-label":`Rolle von ${t.name}`,onChange:e=>J(`/mitglieder/${t.id}`,{role:e.target.value},`put`)},[(w(!0),_(p,null,E(e.roles,(e,t)=>(w(),_(`option`,{key:t,value:t},O(e),9,pt))),128))],40,ft)):t.role===`member`?g(``,!0):(w(),_(`span`,mt,O(e.roles[t.role]),1)),e.can.moderate&&t.id!==f.value.id&&(e.can.admin||t.role===`member`)?(w(),_(`button`,{key:2,type:`button`,class:`ih:rounded ih:p-1.5 ih:text-muted-foreground ih:hover:text-destructive`,"aria-label":`${t.name} entfernen`,onClick:e=>Z(t)},[b(k(fe),{class:`ih:size-4`})],8,ht)):g(``,!0)]))),128))]),e.members.invited.length?(w(),_(p,{key:1},[o[21]||=v(`h2`,{class:`ih:mt-5 ih:mb-2 ih:text-sm ih:font-semibold`},`Eingeladen`,-1),v(`p`,gt,O(e.members.invited.map(e=>e.name).join(`, `)),1)],64)):g(``,!0)],64)):(w(),_(`p`,_t,`Die Mitgliederliste sehen nur Mitglieder.`))])):(w(),_(`section`,vt,[e.group.description?(w(),_(`p`,yt,O(e.group.description),1)):g(``,!0),v(`p`,bt,[(w(),h(D(W[e.group.privacy]),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0`})),y(` `+O(e.group.privacy_hint),1)]),e.can.admin?(w(),h(k(R),{key:1,variant:`outline`,class:`ih:justify-self-start ih:text-destructive ih:hover:text-destructive`,onClick:$},{default:N(()=>[b(k(i)),o[22]||=y(` Gruppe löschen`,-1)]),_:1})):g(``,!0)]))]),b(d,{open:F.value,"onUpdate:open":o[7]||=e=>F.value=e,group:e.group,privacy:e.privacy,"privacy-hints":e.privacyHints},null,8,[`open`,`group`,`privacy`,`privacy-hints`]),b(k(re),{open:I.value,"onUpdate:open":o[10]||=e=>I.value=e},{default:N(()=>[b(k(ie),{class:`ih:sm:max-w-md`},{default:N(()=>[b(k(se),null,{default:N(()=>[b(k(ce),null,{default:N(()=>[y(`In „`+O(e.group.name)+`“ einladen`,1)]),_:1}),b(k(ae),null,{default:N(()=>[...o[23]||=[y(`Die Eingeladenen bekommen eine Benachrichtigung und können annehmen.`,-1)]]),_:1})]),_:1}),b(Ce,{modelValue:V.value,"onUpdate:modelValue":o[8]||=e=>V.value=e,multiple:``,exclude:e.members?.active.map(e=>e.id)??[]},null,8,[`modelValue`,`exclude`]),b(k(oe),null,{default:N(()=>[b(k(R),{variant:`ghost`,onClick:o[9]||=e=>I.value=!1},{default:N(()=>[...o[24]||=[y(`Abbrechen`,-1)]]),_:1}),b(k(R),{disabled:!V.value.length,onClick:me},{default:N(()=>[...o[25]||=[y(`Einladen`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{xt as default}; \ No newline at end of file diff --git a/dist/widgets/Recent.js b/dist/widgets/Recent.js new file mode 100644 index 0000000..0628d2b --- /dev/null +++ b/dist/widgets/Recent.js @@ -0,0 +1 @@ +import{Fragment as e,createBlock as t,createCommentVNode as n,createElementBlock as r,createElementVNode as i,createTextVNode as a,openBlock as o,renderList as s,toDisplayString as c,unref as l,withCtx as u}from"vue";import{Panel as d,PersonAvatar as f,formatRelative as p}from"@inhaus/ui";var m={class:`ih:-my-1 ih:grid ih:gap-1`},h=[`href`],g={class:`ih:min-w-0 ih:text-sm`},_={class:`ih:block ih:truncate`},v={class:`ih:font-medium`},y={class:`ih:text-muted-foreground`},b={class:`ih:line-clamp-2 ih:text-[13px] ih:text-muted-foreground`},x={class:`ih:text-xs ih:text-muted-foreground`},S={__name:`Recent`,props:{posts:{type:Array,required:!0}},setup(S){return(C,w)=>(o(),t(l(d),{title:`Aus Ihren Gruppen`,"action-label":`Alle Gruppen`,"action-href":`/gruppen`},{default:u(()=>[i(`ul`,m,[(o(!0),r(e,null,s(S.posts,e=>(o(),r(`li`,{key:e.id},[i(`a`,{href:e.url,class:`ih:-mx-2 ih:flex ih:gap-2.5 ih:rounded-md ih:p-2 ih:hover:bg-accent/50`},[e.user?(o(),t(l(f),{key:0,person:e.user,class:`ih:size-8 ih:text-[11px]`},null,8,[`person`])):n(``,!0),i(`span`,g,[i(`span`,_,[i(`span`,v,c(e.user?.name),1),w[0]||=a(),i(`span`,y,`in `+c(e.group),1)]),i(`span`,b,c(e.text),1),i(`span`,x,c(l(p)(e.created_at)),1)])],8,h)]))),128))])]),_:1}))}};export{S as default}; \ No newline at end of file diff --git a/inhaus-sdk/theme.css b/inhaus-sdk/theme.css new file mode 100644 index 0000000..8e14bdf --- /dev/null +++ b/inhaus-sdk/theme.css @@ -0,0 +1,63 @@ +/* + * Automatisch erzeugt (scripts/generate-sdk-shims.mjs) – Design-Tokens des Portals. + * In der style.css eines Plugins: @import "../../inhaus-sdk/theme.css"; + * Farben, Ecken und Schrift folgen so dem Erscheinungsbild der Installation. + * + * Tailwind-Klassen in Plugins tragen das Präfix „ih:“ (z. B. ih:grid, ih:lg:grid-cols-2, ih:bg-brand). + * So kann das CSS eines Plugins nie die Klassen des Portals überschreiben. + * Nur Hilfsklassen – Grundstile (Preflight) bringt das Portal selbst mit. + */ +@import "tailwindcss/theme" layer(theme) prefix(ih); +@import "tailwindcss/utilities" layer(utilities); +@custom-variant dark (&:is(.dark *)); + +@theme inline { + --font-sans: var(--font-body); + + --radius-sm: calc(var(--radius) - 4px); + --radius-md: calc(var(--radius) - 2px); + --radius-lg: var(--radius); + --radius-xl: calc(var(--radius) * 1.5); + --radius-2xl: calc(var(--radius) * 2); + /* „Pille“: voll gerundet – außer bei „Eckig“ im Erscheinungsbild (dann 0) */ + --radius-pill: calc(var(--radius) * 1000); + + --color-background: var(--background); + --color-foreground: var(--foreground); + --color-card: var(--card); + --color-card-foreground: var(--card-foreground); + --color-popover: var(--popover); + --color-popover-foreground: var(--popover-foreground); + --color-primary: var(--primary); + --color-primary-foreground: var(--primary-foreground); + --color-secondary: var(--secondary); + --color-secondary-foreground: var(--secondary-foreground); + --color-muted: var(--muted); + --color-muted-foreground: var(--muted-foreground); + --color-accent: var(--accent); + --color-accent-foreground: var(--accent-foreground); + --color-destructive: var(--destructive); + --color-border: var(--border); + --color-input: var(--input); + --color-ring: var(--ring); + + --color-brand: var(--brand); + --color-brand-foreground: var(--brand-foreground); + --color-brand-text: var(--brand-text); + --color-accent2: var(--accent2); + --color-accent2-foreground: var(--accent2-foreground); + --color-accent2-text: var(--accent2-text); + --color-brand-soft: var(--brand-soft); + --color-brand-soft-foreground: var(--brand-soft-foreground); + --color-brand-50: var(--brand-50); + --color-brand-100: var(--brand-100); + --color-brand-200: var(--brand-200); + --color-brand-300: var(--brand-300); + --color-brand-400: var(--brand-400); + --color-brand-500: var(--brand-500); + --color-brand-600: var(--brand-600); + --color-brand-700: var(--brand-700); + --color-brand-800: var(--brand-800); + --color-brand-900: var(--brand-900); + --color-brand-950: var(--brand-950); +} diff --git a/inhaus-sdk/vite.js b/inhaus-sdk/vite.js new file mode 100644 index 0000000..694892c --- /dev/null +++ b/inhaus-sdk/vite.js @@ -0,0 +1,127 @@ +/** + * Vite-Voreinstellung für Inhaus-Plugins (Plugin-SDK). + * + * // vite.config.js im Plugin + * import { defineConfig } from 'vite'; + * import { inhausPlugin } from './inhaus-sdk/vite.js'; + * export default defineConfig(inhausPlugin()); + * + * Baut jede Vue-Datei unter resources/js/{pages,widgets,blocks,profile,profile-panels,editorial,header}/ + * als eigenes ES-Modul nach dist/ und schreibt dist/inhaus.json. Vue, Inertia und @inhaus/ui + * bleiben extern – das Portal stellt sie per Import Map bereit. + */ +import { existsSync, globSync } from 'node:fs'; +import { resolve } from 'node:path'; +import postcss from 'postcss'; +import vue from '@vitejs/plugin-vue'; +import tailwindcss from '@tailwindcss/vite'; + +export const KINDS = ['pages', 'widgets', 'blocks', 'profile', 'profile-panels', 'editorial', 'header']; +export const EXTERNAL = ['vue', '@inertiajs/vue3', '@inhaus/ui']; + +export function inhausPlugin({ root = process.cwd() } = {}) { + const input = {}; + + for (const kind of KINDS) { + for (const file of globSync(`resources/js/${kind}/**/*.vue`, { cwd: root })) { + const name = file.replace(`resources/js/${kind}/`, '').replace(/\.vue$/, ''); + input[`${kind}/${name}`] = resolve(root, file); + } + } + + if (existsSync(resolve(root, 'resources/css/style.css'))) { + input.style = resolve(root, 'resources/css/style.css'); + } + + if (Object.keys(input).length === 0) { + throw new Error('Keine Oberfläche gefunden: Vue-Dateien gehören nach resources/js//.'); + } + + return { + plugins: [vue(), tailwindcss(), manifest(Object.keys(input)), strongerVariants()], + // Plugins laufen unter /plugin-assets/// – Pfade relativ halten + base: './', + build: { + outDir: 'dist', + emptyOutDir: true, + target: 'es2022', + rollupOptions: { + input, + external: EXTERNAL, + preserveEntrySignatures: 'strict', + output: { + format: 'es', + entryFileNames: '[name].js', + chunkFileNames: 'chunks/[name]-[hash].js', + assetFileNames: 'assets/[name]-[hash][extname]', + }, + }, + }, + }; +} + +/** dist/inhaus.json: welche Komponente in welcher Datei steckt, welches CSS dazugehört */ +function manifest(entries) { + return { + name: 'inhaus-manifest', + generateBundle(_, bundle) { + const components = {}; + const css = []; + + for (const file of Object.values(bundle)) { + if (file.type === 'chunk' && file.isEntry && entries.includes(file.name) && file.name !== 'style') { + components[file.name] = file.fileName; + } + + if (file.type === 'asset' && file.fileName.endsWith('.css')) { + css.push(file.fileName); + } + } + + // Leere Hülle des CSS-Einstiegs nicht ausliefern + for (const [key, file] of Object.entries(bundle)) { + if (file.type === 'chunk' && file.name === 'style') delete bundle[key]; + } + + this.emitFile({ type: 'asset', fileName: 'inhaus.json', source: JSON.stringify({ components, css: [...new Set(css)] }, null, 4) }); + }, + }; +} + +/** + * Mehrere Plugins bringen jeweils eigenes CSS mit, und dieselbe Hilfsklasse (z. B. ih:grid) kann in + * mehreren Dateien stehen. Lädt ein anderes Plugin sein CSS später, würde dessen „ih:grid“ sonst + * die Varianten dieses Plugins (ih:lg:hidden, ih:hover:…) überstimmen. Deshalb bekommen Regeln + * mit Variante (Media Query, :hover …) eine doppelte Klasse – sie gewinnen so immer gegen + * einfache Klassen, egal in welcher Reihenfolge die Dateien laden. + */ +export function strongerVariants() { + const pseudo = /(? { + let conditional = false; + + for (let parent = rule.parent; parent && parent.type !== 'root'; parent = parent.parent) { + if (parent.type === 'atrule' && parent.name !== 'layer') conditional = true; + } + + rule.selectors = rule.selectors.map((selector) => (conditional || pseudo.test(selector.replace(/^[^.]*/, ''))) && firstClass.test(selector) + ? selector.replace(firstClass, (match) => match + match) + : selector); + }); + + file.source = root.toString(); + } + }, + }; +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..f154bad --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1712 @@ +{ + "name": "inhaus-plugin-gruppen", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "inhaus-plugin-gruppen", + "dependencies": { + "@lucide/vue": "^1.48.0" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.3.3", + "@vitejs/plugin-vue": "^6.0.9", + "postcss": "^8.5.28", + "tailwindcss": "^4.3.3", + "vite": "^8.3.1", + "vue": "^3.5.43" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", + "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@lucide/vue": { + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/@lucide/vue/-/vue-1.48.0.tgz", + "integrity": "sha512-3/Nwx/RsqQ4ZrrSML1GNsSWCSDyLnBgoF/eEr1q9G6iZymn3+WKtzIj7Dbc/Nxrt9WOPuGrJ58S+CBiamK+36w==", + "license": "ISC", + "peerDependencies": { + "vue": ">=3.0.1" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.151.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.151.0.tgz", + "integrity": "sha512-J1yXrIlNDZVzE3ada310xeAw7nH8yCAyLPuUIsjKatFPmfn5bS1oW+cM+QsGOtVWd5nhSpbwZWx/rue+r5Z+PA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.11.tgz", + "integrity": "sha512-A5kXfGKvKWWZE0TtPrfsvT+q4Y5d1QG8gGUzpYjGydM+fARM9MuX90PrXYXe0XbsDVgyxxNzHo6giCj90bsFNw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.11.tgz", + "integrity": "sha512-z6cTycz+iJ4PVkuL4HHW4DfTfoeU/2nqYYuSOrTmH7yHK5Y0LCOnA03V4ZNxavyVaU1oOqUgIg2klN/s+USGOA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.11.tgz", + "integrity": "sha512-jShvqNtP6vDC6/A5JOAzbVV+DkgHqhl/ScVCJEbt+TUY6QYz7YnXcrg3sLtFBniro0f/Ld50ZwCWA6f7KYD1nQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.11.tgz", + "integrity": "sha512-f2i2xiNWq1Z1l2++q2fuhZRdLAT3aqxD6vRNm1RAxpUoBcdqNB3C0s1Bt+K+PbEx2F5F4gQp6hqKkphCY/xF9w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.11.tgz", + "integrity": "sha512-4Ir5FSOKIAMr4r0kExpt1s3bMgzJU3rA45AYOHtQpls0oNeqcYBKrWMlckrYH4KCfGLfkfn1tN1dmZPMVsdXow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.11.tgz", + "integrity": "sha512-/gnRDM+39BROzAN/k1OZjDPnDMcZxB/0EUxKjONO5yVkNEvlsoMDrxGNKgZi/ttFriS2gwlDNzB65pvNbFOXIQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.11.tgz", + "integrity": "sha512-PFaK8HwvAHbaKbBcDNQihjMKYvFnA5hiENx/l5tphTDz1E0WFp32l0A7aq7lyUwGsRw/xSrNIy/gIK4thrSCrw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.11.tgz", + "integrity": "sha512-AskzJUIKRLPxkruR1wLKewGbOw+EYfU/9lOrBFj4AFrEA8hPpKFnODWNu2WLaNs0QNkEb9QIJufmVZZIL/bJlg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.11.tgz", + "integrity": "sha512-qlUGAheh2yh8afH7QBgx0PrRHN85hKnNd78x8MeMhXivuevgd8vgf6/CstOzmNKY/lLTHvNTrPy98cLnAugzJw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.11.tgz", + "integrity": "sha512-secpEad+0vCbSfn8upFySkDskv+bGPk3THSDS9Y89yc4rb4kzqHp8Dmyd9BkQW4SnhNXBZCl/6CrO//hZahNJQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.11.tgz", + "integrity": "sha512-mOVBT3dPpkWm8XBWPmU4bf+U6dYDLeMo/9ojUmis4N0L5uu10qra5vOyngZ7/PSdoE4G9KvRt4bloRxNjLas7A==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.11.tgz", + "integrity": "sha512-Is78i9A8Ui4SqcxUwFJ9uMmjDn58IbVTjFWYdQestFEgeuEmHMLGNriXnVJKkwG2YiZjw8cP0zCTyDMdDGtOOg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.11.tgz", + "integrity": "sha512-dUCXneZ87INUMyQ0D+C0HrEBNUPNXHaPmU5GTjyKTJEiussw9Kaj5Ln8UztPe4epV/ffvgNBEadksdYhmW6xJA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.11.tgz", + "integrity": "sha512-jByxb6qfd+bH1xUd0qnfFnb17i9sWBPY2tOavJ0l3tdr3OTu+Kvtm8cd/JV5nFt657b1VqGltxg9olOEfofXWw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.11.tgz", + "integrity": "sha512-/PzKqzAJ03i19oy2ItPvyvaVjOjBCNnfaJs8yvUdGBKmiESgnrJSQ2awd81QzFbbnAmu7YO9ZnJrDCb9VSJPRA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz", + "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.24.1", + "jiti": "^2.7.0", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.3" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz", + "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-x64": "4.3.3", + "@tailwindcss/oxide-freebsd-x64": "4.3.3", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-x64-musl": "4.3.3", + "@tailwindcss/oxide-wasm32-wasi": "4.3.3", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.3" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz", + "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz", + "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz", + "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz", + "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz", + "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz", + "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz", + "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz", + "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz", + "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz", + "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.11.1", + "@emnapi/runtime": "^1.11.1", + "@emnapi/wasi-threads": "^1.2.2", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.2", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz", + "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz", + "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz", + "integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.3", + "@tailwindcss/oxide": "4.3.3", + "tailwindcss": "4.3.3" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@vitejs/plugin-vue": { + "version": "6.0.9", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.9.tgz", + "integrity": "sha512-rD/MORlhaZMlXWW0rEn4FB4wMinWC0z/D7Ye160S5+Rs1mC8ZDAdcDp4SjKfUhG5t8q1ktcPVw4xuTkPRlzrSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.43.tgz", + "integrity": "sha512-zdiLhnbe1QQqgDT8xZMpNmyqZ3qlI+/Q/FHQco57Kwl/b05HhCzN6eVGN9QU9rbga4CrS0H5SYY8VGHZCt/1Hg==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@vue/shared": "3.5.43", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.43.tgz", + "integrity": "sha512-PEZoAk3NQmsn/ejMzSOCyTYqwGqczrWm70PuhBKjjv1+TCoQAaO/zOqNwjV+honlNstT5ILxtc+8r8UUfj+iEQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.43", + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.43.tgz", + "integrity": "sha512-FCbrG3XNCRl+js3huuKx4IVHBLTvMkJhVepjbxSPu1gn4yWLaYtGNQdjJGZaMytXB6qb76qQDDmDSLy/vkmleQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@vue/compiler-core": "3.5.43", + "@vue/compiler-dom": "3.5.43", + "@vue/compiler-ssr": "3.5.43", + "@vue/shared": "3.5.43", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.28", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.43.tgz", + "integrity": "sha512-GF62orf7KiJX9RqrHNGrYBudsQGD0OhJ5nDs90O8UiDuS40+YMYomiXu6w6EuvtXuRDc3MSNis3EaaSKAVSWpg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.43", + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.43.tgz", + "integrity": "sha512-G/c9GyOZNI2jVaaS6OX1EF1SSFSv7H0ERqNTl4+DTFMlZmB5eVAB53aLQNam/7NL2NPtaDD7RdVrzf8uJzMuOA==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.43.tgz", + "integrity": "sha512-hU6U6VnVhBGQDpvlnnDlIB8ZGJBiOcgk2lh/0InltHiz3D8oSkluvuvY+do1G2H3+udeKFsmaBlgVYP7gXQzEw==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.43", + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.43.tgz", + "integrity": "sha512-Bb2Jc0YjjJdMt1SJmb9b2L/IWd3I8lIT9x9eS/xvvP9CiVgna0ffua74xKRmt4/uSJ+0r4iN8ex1jrqkhQGWQw==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.43", + "@vue/runtime-core": "3.5.43", + "@vue/shared": "3.5.43", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.43.tgz", + "integrity": "sha512-l2Ygjv9NehV94PSBxNWsAHC0j/eIIKbn92mBuWXAPGLnn6HfJ6MH5ubsd+Nk0YoZ5FRuxWI1P2VSoh+dbPQhCQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.43", + "@vue/runtime-dom": "3.5.43", + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.43.tgz", + "integrity": "sha512-uksS7YGMR5NZyr4JNq0Rp+QyLns0ueaz20KwzIPW9R0LH1Vnt4E+XUM29PNseEbf1www2gOuhuDi5AKOIXag9Q==", + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.25.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.25.1.tgz", + "integrity": "sha512-nGXts5znJzmWPu+mIE9izCOzdg63oJca2mDzGWWTth7sr4aCToKcoyFVBQwN75Ij5Pf6p510EwkTqViTRzDV+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/nanoid": { + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.18", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/rolldown": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.11.tgz", + "integrity": "sha512-qpSwIyz0jHQq5qXBTNxFmE6664rJ7O+4TvPFOiOaBSrz8IOHc1koKKSqTM2H6u1UG1+TveuC6vaDHKXFOvb1Kw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.151.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.11", + "@rolldown/binding-android-arm64": "1.2.11", + "@rolldown/binding-darwin-arm64": "1.2.11", + "@rolldown/binding-darwin-x64": "1.2.11", + "@rolldown/binding-freebsd-x64": "1.2.11", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.11", + "@rolldown/binding-linux-arm64-gnu": "1.2.11", + "@rolldown/binding-linux-arm64-musl": "1.2.11", + "@rolldown/binding-linux-ppc64-gnu": "1.2.11", + "@rolldown/binding-linux-s390x-gnu": "1.2.11", + "@rolldown/binding-linux-x64-gnu": "1.2.11", + "@rolldown/binding-linux-x64-musl": "1.2.11", + "@rolldown/binding-openharmony-arm64": "1.2.11", + "@rolldown/binding-win32-arm64-msvc": "1.2.11", + "@rolldown/binding-win32-x64-msvc": "1.2.11" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tailwindcss": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz", + "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/vite": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.1.tgz", + "integrity": "sha512-/bvH9E9tmCXRGp2uXY3WbOldqpTwFkbha/8ANaEQ6VkxhH60KyqLwgZq6lG2y+4uT55x9+9eUHMpQ7uGnOCKjA==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.28", + "rolldown": "~1.2.9", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/vite/node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vue": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.43.tgz", + "integrity": "sha512-o5qZoksdnjIKvW1srZ3ab7pcDNYAerBjRe54D0LBLfRdCYFrSgBHVXokMas35czQc0//lmx4/tuY4ZNQ+Rf2Ng==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.43", + "@vue/compiler-sfc": "3.5.43", + "@vue/runtime-dom": "3.5.43", + "@vue/server-renderer": "3.5.43", + "@vue/shared": "3.5.43" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..1fa80d5 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "inhaus-plugin-gruppen", + "private": true, + "type": "module", + "scripts": { + "build": "vite build", + "dev": "vite build --watch", + "package": "vite build && php bin/package" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.3.3", + "@vitejs/plugin-vue": "^6.0.9", + "postcss": "^8.5.28", + "tailwindcss": "^4.3.3", + "vite": "^8.3.1", + "vue": "^3.5.43" + }, + "dependencies": { + "@lucide/vue": "^1.48.0" + } +} diff --git a/plugin.json b/plugin.json new file mode 100644 index 0000000..9c69226 --- /dev/null +++ b/plugin.json @@ -0,0 +1,14 @@ +{ + "slug": "gruppen", + "name": "Gruppen", + "version": "1.0.0", + "description": "Diskussionsgruppen wie bei Facebook: offen, geschlossen (Beitritt auf Anfrage) oder privat (nur auf Einladung). Beiträge mit Fotos, Dateien und Umfragen, Reaktionen, Kommentare mit Antworten, Anpinnen, Melden und Moderation.", + "author": "Loheide", + "namespace": "Inhaus\\Plugins\\Gruppen\\", + "class": "Inhaus\\Plugins\\Gruppen\\GruppenPlugin", + "requires": { + "core": ">=0.39.1", + "php": ">=8.3" + }, + "update_url": "https://git.loheide.cloud/api/v1/repos/friloo/inhaus-plugin-gruppen/releases/latest" +} diff --git a/resources/css/style.css b/resources/css/style.css new file mode 100644 index 0000000..843a864 --- /dev/null +++ b/resources/css/style.css @@ -0,0 +1,3 @@ +/* Tailwind mit den Design-Tokens des Portals – Klassen mit Präfix „ih:“, z. B. ih:bg-brand, ih:text-muted-foreground, ih:rounded-lg */ +@import "../../inhaus-sdk/theme.css"; +@source "../js"; diff --git a/resources/js/components/Comments.vue b/resources/js/components/Comments.vue new file mode 100644 index 0000000..fcb16bd --- /dev/null +++ b/resources/js/components/Comments.vue @@ -0,0 +1,103 @@ + + + diff --git a/resources/js/components/GroupCard.vue b/resources/js/components/GroupCard.vue new file mode 100644 index 0000000..bccf87c --- /dev/null +++ b/resources/js/components/GroupCard.vue @@ -0,0 +1,27 @@ + + + diff --git a/resources/js/components/GroupDialog.vue b/resources/js/components/GroupDialog.vue new file mode 100644 index 0000000..fd64d47 --- /dev/null +++ b/resources/js/components/GroupDialog.vue @@ -0,0 +1,60 @@ + + +