commit 14aaa16b3086c3026eec04e9ee12f224c8af0b64 Author: Friederich Loheide Date: Mon Sep 28 15:17:47 2026 +0000 Verleih 1.0.0: Verleihsystem für Inhaus Übersicht mit Status und Standort, Anfragen im Portal (Benachrichtigung + E-Mail ans Team), Zusagen/Absagen mit automatischem Eintrag, Zurücknehmen, Recht „Verleih verwalten“, einstellbare Bezeichnungen und Übernahme aus dem WordPress-Plugin „FL-Verleihsystem“ (WXR mit Bildern). 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..83d9450 --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +# Verleih – Plugin für Inhaus + +Verleihsystem für das Mitarbeiterportal **Inhaus** – gebaut für die Bilder des Künstlerteams, +aber für alles nutzbar, was verliehen wird (Bezeichnungen im Backend einstellbar). + +- **Übersicht** `/verleih`: alle Bilder mit Status (verfügbar / verliehen) und aktuellem Standort, + verfügbare zuerst, Filter und Suche. Kunstwerke werden nie beschnitten. +- **Anfragen im Portal** statt E-Mail-Links: „Bild anfragen“ mit Wunschort, optionalem Zeitraum und + Nachricht. Das Team bekommt eine Benachrichtigung im Portal und eine E-Mail (Antworten gehen direkt + an die anfragende Person). +- **Zusagen / Absagen** unter `/verleih/anfragen` (und in der Redaktion): Eine Zusage trägt das Bild + gleich als verliehen ein – Ort, Person, Zeitraum. Die anfragende Person wird benachrichtigt. + „Zurückgenommen“ macht es wieder verfügbar, mit neuem Standort. +- **Recht** „Verleih verwalten“ (`verleih.manage`) – z. B. der Rolle „Künstlerteam“ geben. + Wer das Bild gerade hat, sehen nur Personen mit diesem Recht. +- **Übernahme aus WordPress** (Plugin „FL-Verleihsystem“): Administration → Portal → Verleih → + „Aus WordPress übernehmen“. Datei aus WordPress unter „Werkzeuge → Daten exportieren → Objekte“. + Übernommen werden Titel, Beschreibung, Beitragsbild, `_bv_verliehen` und `_bv_verleihort` von + veröffentlichten Objekten. Ein zweiter Lauf überschreibt nichts. Bilder werden von der alten Seite + geladen (nur öffentlich erreichbare Adressen) – bei vielen Bildern „Bilder nachladen“ wiederholen. + +Voraussetzung: Inhaus ab 0.42.0. + +## Installation + +1. Neuestes Release herunterladen: `verleih-.zip` unter + +2. Administration → Plugins → „Plugin hochladen“, danach aktivieren. +3. Unter Benutzer & Rechte → Rollen einer Rolle (z. B. „Künstlerteam“) das Recht „Verleih verwalten“ geben. + +Updates erscheinen danach automatisch unter Administration → Plugins. + +## Entwicklung + +```bash +npm install +npm run build # dist/ – wird mit ins Repository eingecheckt +npm run package # baut und erzeugt verleih-.zip +``` + +Tests laufen in einer Inhaus-Installation, in der das Plugin unter `plugins/verleih` liegt (Kopie oder Symlink): + +```bash +vendor-dev/bin/phpunit plugins/verleih/tests +``` diff --git a/bin/package b/bin/package new file mode 100755 index 0000000..7de843e --- /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}/verleih-{$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(), 'verleih/'.$relative); +} + +$zip->close(); +echo "Paket: {$target}\n"; diff --git a/database/migrations/2026_10_28_000001_create_verleih_tables.php b/database/migrations/2026_10_28_000001_create_verleih_tables.php new file mode 100644 index 0000000..79c0f1e --- /dev/null +++ b/database/migrations/2026_10_28_000001_create_verleih_tables.php @@ -0,0 +1,53 @@ +id(); + $table->string('title'); + $table->text('description')->nullable(); + $table->string('image_path')->nullable(); + $table->string('thumb_path')->nullable(); + $table->unsignedSmallInteger('image_width')->nullable(); + $table->unsignedSmallInteger('image_height')->nullable(); + $table->boolean('lent')->default(false)->index(); + $table->string('location')->nullable(); + $table->foreignId('lent_to_id')->nullable()->constrained('users')->nullOnDelete(); + $table->date('lent_since')->nullable(); + $table->date('lent_until')->nullable(); + // Import aus dem WordPress-Verleihsystem: Beitrags-ID und Bildadresse (für „Bilder nachladen“) + $table->unsignedBigInteger('wp_id')->nullable()->unique(); + $table->string('wp_image_url', 1000)->nullable(); + $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete(); + $table->timestamps(); + }); + + Schema::create('verleih_requests', function (Blueprint $table) { + $table->id(); + $table->foreignId('item_id')->constrained('verleih_items')->cascadeOnDelete(); + $table->foreignId('user_id')->constrained('users')->cascadeOnDelete(); + $table->string('location', 200); + $table->date('from')->nullable(); + $table->date('until')->nullable(); + $table->text('message')->nullable(); + $table->string('status', 16)->default('pending')->index(); // pending, accepted, declined, cancelled + $table->foreignId('decided_by')->nullable()->constrained('users')->nullOnDelete(); + $table->timestamp('decided_at')->nullable(); + $table->string('note', 1000)->nullable(); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('verleih_requests'); + Schema::dropIfExists('verleih_items'); + } +}; diff --git a/dist/assets/style-DpnhOE_3.css b/dist/assets/style-DpnhOE_3.css new file mode 100644 index 0000000..2d20285 --- /dev/null +++ b/dist/assets/style-DpnhOE_3.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-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight: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-duration:initial}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight: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-duration:initial}}}@layer theme{:root,:host{--ih-color-black:#000;--ih-color-white:#fff;--ih-spacing:.25rem;--ih-container-md:28rem;--ih-container-lg:32rem;--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-xl:1.25rem;--ih-text-xl--line-height:calc(1.75 / 1.25);--ih-font-weight-medium:500;--ih-font-weight-semibold:600;--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\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ih\:absolute{position:absolute}.ih\:fixed{position:fixed}.ih\:relative{position:relative}.ih\:inset-0{inset:0}.ih\:top-1\/2{top:50%}.ih\:top-2{top:calc(var(--ih-spacing) * 2)}.ih\:top-4{top:calc(var(--ih-spacing) * 4)}.ih\:right-4{right:calc(var(--ih-spacing) * 4)}.ih\:left-2{left:calc(var(--ih-spacing) * 2)}.ih\:left-2\.5{left:calc(var(--ih-spacing) * 2.5)}.ih\:z-50{z-index:50}.ih\:-mx-5{margin-inline:calc(var(--ih-spacing) * -5)}.ih\:mt-0\.5{margin-top:calc(var(--ih-spacing) * .5)}.ih\:mt-3{margin-top:calc(var(--ih-spacing) * 3)}.ih\:mt-6{margin-top:calc(var(--ih-spacing) * 6)}.ih\:mt-auto{margin-top:auto}.ih\:mb-2{margin-bottom:calc(var(--ih-spacing) * 2)}.ih\:mb-3{margin-bottom:calc(var(--ih-spacing) * 3)}.ih\:mb-4{margin-bottom:calc(var(--ih-spacing) * 4)}.ih\:mb-5{margin-bottom:calc(var(--ih-spacing) * 5)}.ih\:mb-6{margin-bottom:calc(var(--ih-spacing) * 6)}.ih\:mb-8{margin-bottom:calc(var(--ih-spacing) * 8)}.ih\:ml-auto{margin-left:auto}.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-\[4\/3\]{aspect-ratio:4/3}.ih\:size-1\.5{width:calc(var(--ih-spacing) * 1.5);height:calc(var(--ih-spacing) * 1.5)}.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-6{width:calc(var(--ih-spacing) * 6);height:calc(var(--ih-spacing) * 6)}.ih\:size-8{width:calc(var(--ih-spacing) * 8);height:calc(var(--ih-spacing) * 8)}.ih\:size-10{width:calc(var(--ih-spacing) * 10);height:calc(var(--ih-spacing) * 10)}.ih\:h-9{height:calc(var(--ih-spacing) * 9)}.ih\:max-h-\[70vh\]{max-height:70vh}.ih\:max-h-full{max-height:100%}.ih\:w-28{width:calc(var(--ih-spacing) * 28)}.ih\:w-auto{width:auto}.ih\:w-fit{width:-moz-fit-content;width:fit-content}.ih\:w-full{width:100%}.ih\:max-w-full{max-width:100%}.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\: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\:justify-between{justify-content:space-between}.ih\:justify-items-center{justify-items:center}.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-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-x-4{column-gap:calc(var(--ih-spacing) * 4)}.ih\:gap-y-1{row-gap:var(--ih-spacing)}:where(.ih\:divide-y.ih\:divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.ih\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ih\:overflow-hidden{overflow:hidden}.ih\:rounded{border-radius:.25rem}.ih\:rounded-full{border-radius:2147483647px}.ih\:rounded-lg{border-radius:var(--radius)}.ih\:rounded-md{border-radius:calc(var(--radius) - 2px)}.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-dashed{--tw-border-style:dashed;border-style:dashed}.ih\:border-brand{border-color:var(--brand)}.ih\:border-input{border-color:var(--input)}.ih\:bg-black\/85{background-color:var(--ih-color-black)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-black\/85.ih\:bg-black\/85{background-color:color-mix(in oklab, var(--ih-color-black) 85%, transparent)}}.ih\:bg-brand{background-color:var(--brand)}.ih\:bg-brand-foreground{background-color:var(--brand-foreground)}.ih\:bg-brand-soft{background-color:var(--brand-soft)}.ih\:bg-card{background-color:var(--card)}.ih\:bg-muted{background-color:var(--muted)}.ih\:bg-muted-foreground{background-color:var(--muted-foreground)}.ih\:bg-white\/15{background-color:var(--ih-color-white)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-white\/15.ih\:bg-white\/15{background-color:color-mix(in oklab, var(--ih-color-white) 15%, transparent)}}.ih\:object-contain{object-fit:contain}.ih\:p-1{padding:var(--ih-spacing)}.ih\:p-2{padding:calc(var(--ih-spacing) * 2)}.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\.5{padding-inline:calc(var(--ih-spacing) * 1.5)}.ih\:px-2{padding-inline:calc(var(--ih-spacing) * 2)}.ih\:px-3{padding-inline:calc(var(--ih-spacing) * 3)}.ih\:px-4{padding-inline:calc(var(--ih-spacing) * 4)}.ih\:px-5{padding-inline:calc(var(--ih-spacing) * 5)}.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-2\.5{padding-block:calc(var(--ih-spacing) * 2.5)}.ih\:pt-1{padding-top:var(--ih-spacing)}.ih\:pr-3{padding-right:calc(var(--ih-spacing) * 3)}.ih\:pl-8{padding-left:calc(var(--ih-spacing) * 8)}.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-\[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\:text-brand-foreground{color:var(--brand-foreground)}.ih\:text-brand-text{color:var(--brand-text)}.ih\:text-destructive{color:var(--destructive)}.ih\:text-muted-foreground{color:var(--muted-foreground)}.ih\:text-white{color:var(--ih-color-white)}.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\:opacity-75{opacity:.75}.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-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px 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-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--ih-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ih-default-transition-duration))}.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\:duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.ih\:group-hover\:scale-\[1\.02\].ih\:group-hover\:scale-\[1\.02\]:is(:where(.ih\:group):hover *){scale:1.02}.ih\:hover\:bg-accent.ih\:hover\:bg-accent:hover{background-color:var(--accent)}.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\:hover\:shadow-md.ih\:hover\:shadow-md:hover{--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\: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}@media (min-width:40rem){.ih\:sm\:w-64.ih\:sm\:w-64{width:calc(var(--ih-spacing) * 64)}.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\:grid-cols-\[7rem_minmax\(0\,1fr\)_auto\].ih\:sm\:grid-cols-\[7rem_minmax\(0\,1fr\)_auto\]{grid-template-columns:7rem minmax(0,1fr) auto}.ih\:sm\:flex-col.ih\:sm\:flex-col{flex-direction:column}.ih\:sm\:items-center.ih\:sm\:items-center{align-items:center}.ih\:sm\:gap-4.ih\:sm\:gap-4{gap:calc(var(--ih-spacing) * 4)}.ih\:sm\:p-8.ih\:sm\:p-8{padding:calc(var(--ih-spacing) * 8)}}@media (min-width:48rem){.ih\:md\:grid-cols-3.ih\:md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:64rem){.ih\:lg\:sticky.ih\:lg\:sticky{position:sticky}.ih\:lg\:top-24.ih\:lg\:top-24{top:calc(var(--ih-spacing) * 24)}.ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\].ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\]{grid-template-columns:minmax(0,1fr) 20rem}.ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_22rem\].ih\:lg\:grid-cols-\[minmax\(0\,1fr\)_22rem\]{grid-template-columns:minmax(0,1fr) 22rem}}@media (min-width:80rem){.ih\:xl\:grid-cols-4.ih\:xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}}.verleih-text p{margin:.5rem 0}.verleih-text.verleih-text p:first-child{margin-top:0}.verleih-text.verleih-text p:last-child{margin-bottom:0}.verleih-text ul{margin:.5rem 0;padding-left:1.25rem;list-style:outside}.verleih-text ol{margin:.5rem 0;padding-left:1.25rem;list-style:decimal}.verleih-text h2,.verleih-text h3{margin:1rem 0 .5rem;font-weight:600}.verleih-text a{color:var(--color-brand-text);text-decoration:underline}@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-divide-y-reverse{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-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-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}} diff --git a/dist/chunks/StatusBadge-CZaj6wAi.js b/dist/chunks/StatusBadge-CZaj6wAi.js new file mode 100644 index 0000000..faa8016 --- /dev/null +++ b/dist/chunks/StatusBadge-CZaj6wAi.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";import{createElementBlock as t,createElementVNode as n,createTextVNode as r,normalizeClass as i,openBlock as a,toDisplayString as o}from"vue";var s=e({name:`image-off`,size:24,node:[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]}),c=e({name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]}),l={__name:`StatusBadge`,props:{lent:{type:Boolean,required:!0}},setup(e){return(s,c)=>(a(),t(`span`,{class:i([`ih:inline-flex ih:items-center ih:gap-1.5 ih:rounded-full ih:px-2 ih:py-0.5 ih:text-[11px] ih:font-semibold ih:shadow-xs`,e.lent?`ih:bg-card ih:text-muted-foreground`:`ih:bg-brand ih:text-brand-foreground`])},[n(`span`,{class:i([`ih:size-1.5 ih:rounded-full`,e.lent?`ih:bg-muted-foreground`:`ih:bg-brand-foreground`]),"aria-hidden":`true`},null,2),r(` `+o(e.lent?`Verliehen`:`Verfügbar`),1)],2))}};export{c as n,s as r,l as t}; \ No newline at end of file diff --git a/dist/chunks/createLucideIcon-CYyWUN7r.js b/dist/chunks/createLucideIcon-CYyWUN7r.js new file mode 100644 index 0000000..1da56d8 --- /dev/null +++ b/dist/chunks/createLucideIcon-CYyWUN7r.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)}export{f as t}; \ No newline at end of file diff --git a/dist/chunks/inbox-CWQqWjak.js b/dist/chunks/inbox-CWQqWjak.js new file mode 100644 index 0000000..52faea2 --- /dev/null +++ b/dist/chunks/inbox-CWQqWjak.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=e({name:`inbox`,size:24,node:[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]});export{t}; \ No newline at end of file diff --git a/dist/chunks/loader-circle-DBP4Qhm5.js b/dist/chunks/loader-circle-DBP4Qhm5.js new file mode 100644 index 0000000..b891360 --- /dev/null +++ b/dist/chunks/loader-circle-DBP4Qhm5.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=e({name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]}),n=e({name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]});export{t as n,n as t}; \ No newline at end of file diff --git a/dist/chunks/trash-COMUOW6h.js b/dist/chunks/trash-COMUOW6h.js new file mode 100644 index 0000000..92f0540 --- /dev/null +++ b/dist/chunks/trash-COMUOW6h.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=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`]});export{t}; \ No newline at end of file diff --git a/dist/chunks/x-CV132X1X.js b/dist/chunks/x-CV132X1X.js new file mode 100644 index 0000000..29db583 --- /dev/null +++ b/dist/chunks/x-CV132X1X.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=e({name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]}),n=e({name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]});export{t as n,n as t}; \ No newline at end of file diff --git a/dist/editorial/EditorialRequests.js b/dist/editorial/EditorialRequests.js new file mode 100644 index 0000000..cf06507 --- /dev/null +++ b/dist/editorial/EditorialRequests.js @@ -0,0 +1 @@ +import{Fragment as e,createBlock as t,createCommentVNode as n,createElementBlock as r,createElementVNode as i,createTextVNode as a,createVNode as o,openBlock as s,renderList as c,toDisplayString as l,unref as u,withCtx as d}from"vue";import{Link as f}from"@inertiajs/vue3";import{Panel as p,formatRelative as m}from"@inhaus/ui";var h={key:0,class:`ih:-mx-5 ih:divide-y ih:border-t`},g=[`src`],_={class:`ih:min-w-0 ih:flex-1`},v={class:`ih:truncate ih:text-xs ih:text-muted-foreground`},y={class:`ih:shrink-0 ih:text-xs ih:text-muted-foreground`},b={key:1,class:`ih:text-sm ih:text-muted-foreground`},x={__name:`EditorialRequests`,props:{pending:{type:Array,required:!0}},setup(x){return(S,C)=>(s(),t(u(p),{title:`Verleih – offene Anfragen`,"action-label":`Zu den Anfragen`,"action-href":`/verleih/anfragen`},{default:d(()=>[x.pending.length?(s(),r(`ul`,h,[(s(!0),r(e,null,c(x.pending,e=>(s(),r(`li`,{key:e.id,class:`ih:flex ih:items-center ih:gap-3 ih:px-5 ih:py-2.5`},[e.item?.thumb_url?(s(),r(`img`,{key:0,src:e.item.thumb_url,alt:``,class:`ih:size-10 ih:rounded ih:bg-muted ih:object-contain`},null,8,g)):n(``,!0),i(`div`,_,[o(u(f),{href:e.item?.url??`/verleih/anfragen`,class:`ih:block ih:truncate ih:text-sm ih:font-medium ih:hover:underline`},{default:d(()=>[a(l(e.item?.title),1)]),_:2},1032,[`href`]),i(`p`,v,l(e.user?.name)+` · nach `+l(e.location),1)]),i(`span`,y,l(u(m)(e.created_at)),1)]))),128))])):(s(),r(`p`,b,`Keine offenen Anfragen.`))]),_:1}))}};export{x as default}; \ No newline at end of file diff --git a/dist/inhaus.json b/dist/inhaus.json new file mode 100644 index 0000000..fa902f2 --- /dev/null +++ b/dist/inhaus.json @@ -0,0 +1,12 @@ +{ + "components": { + "editorial/EditorialRequests": "editorial/EditorialRequests.js", + "pages/Editor": "pages/Editor.js", + "pages/Index": "pages/Index.js", + "pages/Requests": "pages/Requests.js", + "pages/Show": "pages/Show.js" + }, + "css": [ + "assets/style-DpnhOE_3.css" + ] +} \ No newline at end of file diff --git a/dist/pages/Editor.js b/dist/pages/Editor.js new file mode 100644 index 0000000..d77c438 --- /dev/null +++ b/dist/pages/Editor.js @@ -0,0 +1 @@ +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,t as n}from"../chunks/loader-circle-DBP4Qhm5.js";import{t as r}from"../chunks/trash-COMUOW6h.js";import{Fragment as i,computed as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createElementVNode as l,createTextVNode as u,createVNode as d,normalizeClass as f,openBlock as p,ref as m,renderList as h,toDisplayString as g,unref as _,withCtx as v,withModifiers as y}from"vue";import{Link as b,useForm as x}from"@inertiajs/vue3";import{AppLayout as S,Button as C,FormField as w,Input as T,PageHeader as E,Panel as D,RichTextEditor as O}from"@inhaus/ui";var k=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`}]]}),A={class:`ih:grid ih:min-w-0 ih:content-start ih:gap-6`},j={class:`ih:grid ih:gap-5`},M={class:`ih:grid ih:content-start ih:gap-6`},N={class:`ih:grid ih:gap-3`},P=[`src`],F={key:0,class:`ih:flex ih:gap-2`},I={key:1,class:`ih:text-[13px] ih:text-destructive`},L={key:2,class:`ih:text-[13px] ih:text-muted-foreground`},R={class:`ih:grid ih:gap-4`},z={class:`ih:grid ih:grid-cols-2 ih:gap-1 ih:rounded-md ih:bg-muted ih:p-1`,role:`radiogroup`,"aria-label":`Verleihstatus`},B=[`aria-checked`,`onClick`],V={__name:`Editor`,props:{item:{type:Object,default:null},labels:{type:Object,required:!0}},setup(e){let V=e,H=V.item,U=x({title:H?.title??``,description:H?.description??``,lent:H?.lent??!1,location:H?.location??``,image:null,remove_image:!1}),W=m(H?.image_url??null),G=m(null),K=m(!1);function q(e){let t=[...e].find(e=>e.type.startsWith(`image/`));t&&(U.image=t,U.remove_image=!1,W.value=URL.createObjectURL(t))}function J(){U.image=null,U.remove_image=!0,W.value=null}let Y=a(()=>H?`${V.labels.singular} bearbeiten`:`${V.labels.singular} erfassen`);function X(){U.transform(e=>({...e,lent:+!!e.lent,remove_image:+!!e.remove_image})).post(H?`/verleih/${H.id}`:`/verleih`,{forceFormData:!0})}return(a,m)=>(p(),o(_(S),{title:Y.value},{default:v(()=>[d(_(b),{href:_(H)?_(H).url:`/verleih`,class:`ih:mb-4 ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:text-foreground`},{default:v(()=>[d(_(t),{class:`ih:size-4`}),u(` `+g(_(H)?_(H).title:e.labels.title),1)]),_:1},8,[`href`]),d(_(E),{title:Y.value},null,8,[`title`]),l(`form`,{class:`ih:grid ih:gap-6 ih:lg:grid-cols-[minmax(0,1fr)_20rem]`,onSubmit:y(X,[`prevent`])},[l(`div`,A,[d(_(D),null,{default:v(()=>[l(`div`,j,[d(_(w),{id:`vl-title`,label:`Titel`,error:_(U).errors.title},{default:v(()=>[d(_(T),{id:`vl-title`,modelValue:_(U).title,"onUpdate:modelValue":m[0]||=e=>_(U).title=e,maxlength:`200`,required:``,placeholder:`z. B. „Sommerwiese“, Acryl auf Leinwand`},null,8,[`modelValue`])]),_:1},8,[`error`]),d(_(w),{id:`vl-description`,label:`Beschreibung`,error:_(U).errors.description,hint:`Z. B. Künstlerin oder Künstler, Maße, Technik – alles, was bei der Auswahl hilft.`},{default:v(()=>[d(_(O),{id:`vl-description`,modelValue:_(U).description,"onUpdate:modelValue":m[1]||=e=>_(U).description=e,bordered:``,"min-height":`12rem`,headings:[2,3],placeholder:`Beschreibung …`},null,8,[`modelValue`])]),_:1},8,[`error`])])]),_:1})]),l(`aside`,M,[d(_(D),null,{default:v(()=>[l(`div`,N,[m[12]||=l(`p`,{class:`ih:text-[13px] ih:font-medium`},`Foto`,-1),l(`div`,{class:f([`ih:relative ih:grid ih:aspect-[4/3] ih:place-items-center ih:overflow-hidden ih:rounded-md ih:border ih:border-dashed ih:bg-muted ih:p-2`,K.value?`ih:border-brand ih:bg-brand-soft`:``]),onDragover:m[3]||=y(e=>K.value=!0,[`prevent`]),onDragleave:m[4]||=e=>K.value=!1,onDrop:m[5]||=y(e=>{K.value=!1,q(e.dataTransfer.files)},[`prevent`])},[W.value?(p(),c(`img`,{key:0,src:W.value,alt:`Vorschau`,class:`ih:max-h-full ih:max-w-full ih:object-contain`},null,8,P)):(p(),c(`button`,{key:1,type:`button`,class:`ih:grid ih:justify-items-center ih:gap-1 ih:text-sm ih:text-muted-foreground`,onClick:m[2]||=e=>G.value.click()},[d(_(k),{class:`ih:size-8`,"stroke-width":1.5}),m[9]||=u(` Foto wählen oder hierher ziehen `,-1)]))],34),l(`input`,{ref_key:`fileInput`,ref:G,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`ih:hidden`,onChange:m[6]||=e=>q(e.target.files)},null,544),W.value?(p(),c(`div`,F,[d(_(C),{type:`button`,variant:`outline`,size:`sm`,onClick:m[7]||=e=>G.value.click()},{default:v(()=>[d(_(k)),m[10]||=u(` Anderes Foto`,-1)]),_:1}),d(_(C),{type:`button`,variant:`ghost`,size:`sm`,class:`ih:text-destructive`,onClick:J},{default:v(()=>[d(_(r)),m[11]||=u(` Entfernen`,-1)]),_:1})])):s(``,!0),_(U).errors.image?(p(),c(`p`,I,g(_(U).errors.image),1)):s(``,!0),_(U).progress?(p(),c(`p`,L,`Wird hochgeladen … `+g(_(U).progress.percentage)+` %`,1)):s(``,!0)])]),_:1}),d(_(D),null,{default:v(()=>[l(`fieldset`,R,[m[13]||=l(`legend`,{class:`ih:mb-2 ih:text-[13px] ih:font-medium`},`Verleihstatus`,-1),l(`div`,z,[(p(),c(i,null,h([{value:!1,label:`Verfügbar`},{value:!0,label:`Verliehen`}],e=>l(`button`,{key:e.label,type:`button`,role:`radio`,"aria-checked":_(U).lent===e.value,class:f([`ih:rounded ih:py-1.5 ih:text-sm ih:font-medium`,_(U).lent===e.value?`ih:bg-card ih:shadow-xs`:`ih:text-muted-foreground`]),onClick:t=>_(U).lent=e.value},g(e.label),11,B)),64))]),d(_(w),{id:`vl-location`,label:_(U).lent?`Verliehen an / Ort`:`Aktueller Standort`,error:_(U).errors.location},{default:v(()=>[d(_(T),{id:`vl-location`,modelValue:_(U).location,"onUpdate:modelValue":m[8]||=e=>_(U).location=e,maxlength:`200`,placeholder:_(U).lent?`z. B. Verwaltung, Flur 1. OG`:`z. B. Lager Künstlerteam`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`,`error`])])]),_:1}),d(_(C),{type:`submit`,size:`lg`,disabled:_(U).processing||!_(U).title.trim()},{default:v(()=>[_(U).processing?(p(),o(_(n),{key:0,class:`ih:animate-spin`})):s(``,!0),m[14]||=u(` Speichern `,-1)]),_:1},8,[`disabled`])])],32)]),_:1},8,[`title`]))}};export{V 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..f29579b --- /dev/null +++ b/dist/pages/Index.js @@ -0,0 +1 @@ +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,r as n,t as r}from"../chunks/StatusBadge-CZaj6wAi.js";import{t as i}from"../chunks/inbox-CWQqWjak.js";import{Fragment as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createElementVNode as l,createTextVNode as u,createVNode as d,normalizeClass as f,openBlock as p,ref as m,renderList as h,toDisplayString as g,unref as _,vModelText as v,watch as y,withCtx as b,withDirectives as x}from"vue";import{Link as S,router as C,usePage as w}from"@inertiajs/vue3";import{AppLayout as T,Button as E,EmptyState as D,PageHeader as O,formatDate as k,toast as A}from"@inhaus/ui";var j=e({name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]}),M=e({name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]}),N=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`}]]}),P=e({name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]}),F={class:`ih:group ih:flex ih:flex-col ih:overflow-hidden ih:rounded-lg ih:border ih:bg-card ih:shadow-xs ih:transition-shadow ih:hover:shadow-md`},I=[`src`,`alt`],L={class:`ih:flex ih:flex-1 ih:flex-col ih:gap-1 ih:p-3`},R={key:0,class:`ih:mt-auto ih:flex ih:items-center ih:gap-1 ih:pt-1 ih:text-xs ih:text-muted-foreground`},z={class:`ih:truncate`},B={__name:`ItemCard`,props:{item:{type:Object,required:!0}},setup(e){return(i,a)=>(p(),c(`article`,F,[d(_(S),{href:e.item.url,prefetch:``,class:`ih:relative ih:grid ih:aspect-[4/3] ih:place-items-center ih:overflow-hidden ih:bg-muted ih:p-3`},{default:b(()=>[e.item.thumb_url?(p(),c(`img`,{key:0,src:e.item.thumb_url,alt:e.item.title,loading:`lazy`,class:`ih:max-h-full ih:max-w-full ih:object-contain ih:shadow-sm ih:transition-transform ih:duration-300 ih:group-hover:scale-[1.02]`},null,8,I)):(p(),o(_(n),{key:1,class:`ih:size-8 ih:text-muted-foreground`,"stroke-width":1.5})),d(r,{lent:e.item.lent,class:`ih:absolute ih:top-2 ih:left-2`},null,8,[`lent`])]),_:1},8,[`href`]),l(`div`,L,[d(_(S),{href:e.item.url,prefetch:``,class:`ih:line-clamp-2 ih:text-[15px] ih:leading-snug ih:font-semibold ih:hover:underline`},{default:b(()=>[u(g(e.item.title),1)]),_:1},8,[`href`]),e.item.location?(p(),c(`p`,R,[d(_(t),{class:`ih:size-3.5 ih:shrink-0`}),l(`span`,z,g(e.item.location),1)])):s(``,!0)])]))}},V={key:0,class:`ih:rounded-full ih:bg-brand ih:px-1.5 ih:text-[11px] ih:text-brand-foreground`},H={key:0,class:`ih:mb-6 ih:rounded-lg ih:border ih:bg-card ih:p-4`,"aria-labelledby":`meine-anfragen`},U={class:`ih:divide-y`},W={class:`ih:text-muted-foreground`},G={key:0,class:`ih:text-muted-foreground`},K={class:`ih:ml-auto ih:text-xs ih:text-muted-foreground`},q=[`onClick`],J={class:`ih:mb-5 ih:flex ih:flex-wrap ih:items-center ih:gap-3`},Y={class:`ih:flex ih:flex-wrap ih:gap-1.5`,"aria-label":`Status`},X=[`aria-pressed`,`onClick`],Z={class:`ih:tabular-nums ih:opacity-75`},Q={class:`ih:relative ih:ml-auto ih:w-full ih:sm:w-64`},$=[`placeholder`,`aria-label`],ee={key:1,class:`ih:grid ih:grid-cols-2 ih:gap-3 ih:sm:gap-4 ih:md:grid-cols-3 ih:xl:grid-cols-4`},te={key:2,class:`ih:rounded-lg ih:border ih:bg-card`},ne={key:3,class:`ih:mt-6 ih:flex ih:items-center ih:gap-1.5 ih:text-xs ih:text-muted-foreground`},re={__name:`Index`,props:{items:{type:Array,required:!0},filters:{type:Object,required:!0},counts:{type:Object,required:!0},labels:{type:Object,required:!0},canManage:{type:Boolean,default:!1},pendingRequests:{type:Number,default:null},myRequests:{type:Array,default:()=>[]}},setup(e){let t=e,n=w();y(()=>n.props.flash?.status,e=>e&&A.success(e),{immediate:!0});let r=m(t.filters.q),F;y(r,e=>{clearTimeout(F),F=setTimeout(()=>I({q:e}),300)});function I(e){let n={...t.filters,...e};C.get(`/verleih`,Object.fromEntries(Object.entries(n).filter(([,e])=>e)),{preserveState:!0,preserveScroll:!0,replace:!0})}let L=[{value:null,label:`Alle`,count:`all`},{value:`verfuegbar`,label:`Verfügbar`,count:`available`},{value:`verliehen`,label:`Verliehen`,count:`lent`}],R=e=>window.confirm(`Anfrage zurückziehen?`)&&C.delete(`/verleih/anfragen/${e.id}`,{preserveScroll:!0});return(t,n)=>(p(),o(_(T),{title:e.labels.title},{default:b(()=>[d(_(O),{title:e.labels.title,description:`Alle ${e.labels.plural} auf einen Blick – verfügbar oder verliehen, und wo sie gerade sind.`},{actions:b(()=>[e.canManage?(p(),c(a,{key:0},[d(_(E),{variant:`outline`,"as-child":``},{default:b(()=>[d(_(S),{href:`/verleih/anfragen`},{default:b(()=>[d(_(i)),n[1]||=u(` Anfragen`,-1),e.pendingRequests?(p(),c(`span`,V,g(e.pendingRequests),1)):s(``,!0)]),_:1})]),_:1}),d(_(E),{"as-child":``},{default:b(()=>[d(_(S),{href:`/verleih/neu`},{default:b(()=>[d(_(M)),u(` `+g(e.labels.singular)+` erfassen`,1)]),_:1})]),_:1})],64)):s(``,!0)]),_:1},8,[`title`,`description`]),e.myRequests.length?(p(),c(`section`,H,[n[2]||=l(`h2`,{id:`meine-anfragen`,class:`ih:mb-2 ih:text-sm ih:font-semibold`},`Ihre Anfragen`,-1),l(`ul`,U,[(p(!0),c(a,null,h(e.myRequests,e=>(p(),c(`li`,{key:e.id,class:`ih:flex ih:flex-wrap ih:items-center ih:gap-x-3 ih:gap-y-1 ih:py-2 ih:text-sm`},[d(_(S),{href:e.item.url,class:`ih:font-medium ih:hover:underline`},{default:b(()=>[u(g(e.item.title),1)]),_:2},1032,[`href`]),l(`span`,W,`nach `+g(e.location),1),l(`span`,{class:f([`ih:rounded-full ih:px-2 ih:py-0.5 ih:text-xs ih:font-medium`,e.status===`accepted`?`ih:bg-brand ih:text-brand-foreground`:e.status===`pending`?`ih:bg-brand-soft ih:text-brand-text`:`ih:bg-muted ih:text-muted-foreground`])},g(e.status_label),3),e.note?(p(),c(`span`,G,`„`+g(e.note)+`“`,1)):s(``,!0),l(`span`,K,g(_(k)(e.created_at)),1),e.status===`pending`?(p(),c(`button`,{key:1,type:`button`,class:`ih:text-xs ih:font-medium ih:text-muted-foreground ih:hover:text-destructive`,onClick:t=>R(e)},`Zurückziehen`,8,q)):s(``,!0)]))),128))])])):s(``,!0),l(`div`,J,[l(`nav`,Y,[(p(),c(a,null,h(L,t=>l(`button`,{key:t.label,type:`button`,class:f([`ih:inline-flex ih:items-center ih:gap-1.5 ih:rounded-full ih:border ih:px-3 ih:py-1 ih:text-[13px]`,e.filters.status===t.value?`ih:border-brand ih:bg-brand ih:text-brand-foreground`:`ih:bg-card ih:hover:bg-accent`]),"aria-pressed":e.filters.status===t.value,onClick:e=>I({status:t.value})},[u(g(t.label)+` `,1),l(`span`,Z,g(e.counts[t.count]),1)],10,X)),64))]),l(`div`,Q,[d(_(N),{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`}),x(l(`input`,{"onUpdate:modelValue":n[0]||=e=>r.value=e,type:`search`,placeholder:`${e.labels.plural} oder Orte suchen`,"aria-label":`${e.labels.plural} durchsuchen`,class:`ih:h-9 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`},null,8,$),[[v,r.value]])])]),e.items.length?(p(),c(`div`,ee,[(p(!0),c(a,null,h(e.items,e=>(p(),o(B,{key:e.id,item:e},null,8,[`item`]))),128))])):(p(),c(`div`,te,[d(_(D),{icon:_(j),title:e.filters.q||e.filters.status?`Keine passenden ${e.labels.plural}`:`Noch keine ${e.labels.plural}`,text:e.canManage&&!e.filters.q&&!e.filters.status?`Legen Sie mit „${e.labels.singular} erfassen“ los – oder übernehmen Sie den Bestand aus WordPress (Administration → Portal → Verleih).`:``},null,8,[`icon`,`title`,`text`])])),e.canManage?(p(),c(`p`,ne,[d(_(P),{class:`ih:size-3.5`}),n[3]||=u(` Bezeichnungen und Übernahme aus WordPress: Administration → Portal → Verleih `,-1)])):s(``,!0)]),_:1},8,[`title`]))}};export{re as default}; \ No newline at end of file diff --git a/dist/pages/Requests.js b/dist/pages/Requests.js new file mode 100644 index 0000000..04c3227 --- /dev/null +++ b/dist/pages/Requests.js @@ -0,0 +1 @@ +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,t as n}from"../chunks/x-CV132X1X.js";import{n as ee,t as te}from"../chunks/loader-circle-DBP4Qhm5.js";import{n as ne,r as re,t as ie}from"../chunks/StatusBadge-CZaj6wAi.js";import{t as r}from"../chunks/inbox-CWQqWjak.js";import{Fragment as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,normalizeClass as d,openBlock as f,ref as p,renderList as m,toDisplayString as h,unref as g,watch as _,withCtx as v,withModifiers as y}from"vue";import{Link as b,useForm as x,usePage as S}from"@inertiajs/vue3";import{AppLayout as C,Button as w,Dialog as T,DialogContent as E,DialogDescription as D,DialogFooter as O,DialogHeader as k,DialogTitle as A,EmptyState as j,FormField as M,PageHeader as N,PersonAvatar as P,Textarea as F,formatDate as I,formatRelative as L,toast as R}from"@inhaus/ui";var z=e({name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]}),B=e({name:`message-square-text`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]}),V={"aria-labelledby":`offen`,class:`ih:mb-8`},H={id:`offen`,class:`ih:mb-3 ih:text-sm ih:font-semibold`},ae={class:`ih:text-muted-foreground`},U={key:0,class:`ih:grid ih:gap-3`},W=[`src`,`alt`],G={class:`ih:grid ih:min-w-0 ih:gap-1.5`},K={class:`ih:flex ih:flex-wrap ih:items-center ih:gap-2`},q={class:`ih:flex ih:items-center ih:gap-2 ih:text-sm`},J={class:`ih:font-medium`},oe={key:0,class:`ih:text-muted-foreground`},se={class:`ih:text-xs ih:text-muted-foreground`},ce={class:`ih:flex ih:flex-wrap ih:gap-x-4 ih:gap-y-1 ih:text-sm ih:text-muted-foreground`},le={class:`ih:inline-flex ih:items-center ih:gap-1`},ue={key:0,class:`ih:inline-flex ih:items-center ih:gap-1`},de={key:0,class:`ih:flex ih:gap-1.5 ih:text-sm`},fe={key:1,class:`ih:text-xs ih:text-muted-foreground`},pe={class:`ih:flex ih:gap-2 ih:sm:flex-col`},me={key:1,class:`ih:rounded-lg ih:border ih:bg-card`},he={key:0,"aria-labelledby":`zuletzt`},ge={class:`ih:divide-y ih:rounded-lg ih:border ih:bg-card`},_e={class:`ih:text-muted-foreground`},ve={class:`ih:ml-auto ih:text-xs ih:text-muted-foreground`},Y={__name:`Requests`,props:{pending:{type:Array,required:!0},recent:{type:Array,default:()=>[]},labels:{type:Object,required:!0}},setup(e){let Y=S();_(()=>Y.props.flash?.status,e=>e&&R.success(e),{immediate:!0});let X=p(null),Z=x({note:``});function Q(e,t){Z.reset(),Z.clearErrors(),X.value={request:e,accept:t}}function ye(){let{request:e,accept:t}=X.value;Z.post(`/verleih/anfragen/${e.id}/${t?`zusagen`:`absagen`}`,{preserveScroll:!0,onSuccess:()=>X.value=null})}let $=e=>[e.from?`ab ${I(e.from)}`:null,e.until?`bis ${I(e.until)}`:null].filter(Boolean).join(` `);return(p,_)=>(f(),a(g(C),{title:`Anfragen`},{default:v(()=>[u(g(b),{href:`/verleih`,class:`ih:mb-4 ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:text-foreground`},{default:v(()=>[u(g(ee),{class:`ih:size-4`}),l(` `+h(e.labels.title),1)]),_:1}),u(g(N),{title:`Anfragen`,description:`Zusagen trägt das ${e.labels.singular} gleich als verliehen ein – mit Wunschort und Person. Die anfragende Person wird benachrichtigt.`},null,8,[`description`]),c(`section`,V,[c(`h2`,H,[_[3]||=l(`Offen `,-1),c(`span`,ae,`(`+h(e.pending.length)+`)`,1)]),e.pending.length?(f(),s(`div`,U,[(f(!0),s(i,null,m(e.pending,e=>(f(),s(`article`,{key:e.id,class:`ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-4 ih:sm:grid-cols-[7rem_minmax(0,1fr)_auto] ih:sm:items-center`},[u(g(b),{href:e.item?.url??`#`,class:`ih:grid ih:aspect-[4/3] ih:w-28 ih:place-items-center ih:overflow-hidden ih:rounded-md ih:bg-muted`},{default:v(()=>[e.item?.thumb_url?(f(),s(`img`,{key:0,src:e.item.thumb_url,alt:e.item.title,class:`ih:max-h-full ih:max-w-full ih:object-contain`},null,8,W)):(f(),a(g(re),{key:1,class:`ih:size-6 ih:text-muted-foreground`}))]),_:2},1032,[`href`]),c(`div`,G,[c(`div`,K,[u(g(b),{href:e.item?.url??`#`,class:`ih:font-semibold ih:hover:underline`},{default:v(()=>[l(h(e.item?.title),1)]),_:2},1032,[`href`]),e.item?(f(),a(ie,{key:0,lent:e.item.lent,class:`ih:border`},null,8,[`lent`])):o(``,!0)]),c(`p`,q,[u(g(P),{person:e.user,class:`ih:size-6`},null,8,[`person`]),c(`span`,null,[c(`span`,J,h(e.user?.name),1),e.user?.department?(f(),s(`span`,oe,` · `+h(e.user.department),1)):o(``,!0)]),c(`span`,se,h(g(L)(e.created_at)),1)]),c(`p`,ce,[c(`span`,le,[u(g(ne),{class:`ih:size-3.5`}),l(` `+h(e.location),1)]),$(e)?(f(),s(`span`,ue,[u(g(t),{class:`ih:size-3.5`}),l(` `+h($(e)),1)])):o(``,!0)]),e.message?(f(),s(`p`,de,[u(g(B),{class:`ih:mt-0.5 ih:size-3.5 ih:shrink-0 ih:text-muted-foreground`}),l(` „`+h(e.message)+`“`,1)])):o(``,!0),e.item?.lent?(f(),s(`p`,fe,`Gerade verliehen`+h(e.item.location?` (${e.item.location})`:``)+` – eine Zusage trägt den neuen Ort ein.`,1)):o(``,!0)]),c(`div`,pe,[u(g(w),{onClick:t=>Q(e,!0)},{default:v(()=>[u(g(z)),_[4]||=l(` Zusagen`,-1)]),_:1},8,[`onClick`]),u(g(w),{variant:`outline`,onClick:t=>Q(e,!1)},{default:v(()=>[u(g(n)),_[5]||=l(` Absagen`,-1)]),_:1},8,[`onClick`])])]))),128))])):(f(),s(`div`,me,[u(g(j),{icon:g(r),title:`Keine offenen Anfragen`,text:`Neue Anfragen kommen im Portal und per E-Mail.`},null,8,[`icon`])]))]),e.recent.length?(f(),s(`section`,he,[_[6]||=c(`h2`,{id:`zuletzt`,class:`ih:mb-3 ih:text-sm ih:font-semibold`},`Zuletzt beantwortet`,-1),c(`ul`,ge,[(f(!0),s(i,null,m(e.recent,e=>(f(),s(`li`,{key:e.id,class:`ih:flex ih:flex-wrap ih:items-center ih:gap-x-3 ih:gap-y-1 ih:px-4 ih:py-2.5 ih:text-sm`},[u(g(b),{href:e.item?.url??`#`,class:`ih:font-medium ih:hover:underline`},{default:v(()=>[l(h(e.item?.title),1)]),_:2},1032,[`href`]),c(`span`,_e,h(e.user?.name)+` · `+h(e.location),1),c(`span`,{class:d([`ih:rounded-full ih:px-2 ih:py-0.5 ih:text-xs ih:font-medium`,e.status===`accepted`?`ih:bg-brand-soft ih:text-brand-text`:`ih:bg-muted ih:text-muted-foreground`])},h(e.status_label),3),c(`span`,ve,h(e.decider?`${e.decider.name}, `:``)+h(g(I)(e.decided_at??e.created_at)),1)]))),128))])])):o(``,!0),u(g(T),{open:!!X.value,"onUpdate:open":_[2]||=e=>!e&&(X.value=null)},{default:v(()=>[X.value?(f(),a(g(E),{key:0,class:`ih:sm:max-w-md`},{default:v(()=>[u(g(k),null,{default:v(()=>[u(g(A),null,{default:v(()=>[l(h(X.value.accept?`Zusagen`:`Absagen`)+`: `+h(X.value.request.item?.title),1)]),_:1}),u(g(D),null,{default:v(()=>[X.value.accept?(f(),s(i,{key:0},[l(`Wird als verliehen an `+h(X.value.request.user?.name)+` nach „`+h(X.value.request.location)+`“ eingetragen.`,1)],64)):(f(),s(i,{key:1},[l(h(X.value.request.user?.name)+` bekommt die Absage im Portal und per E-Mail.`,1)],64))]),_:1})]),_:1}),c(`form`,{id:`verleih-entscheidung`,onSubmit:y(ye,[`prevent`])},[u(g(M),{id:`vl-note`,label:`Hinweis (optional)`,error:g(Z).errors.note||g(Z).errors.status},{default:v(()=>[u(g(F),{id:`vl-note`,modelValue:g(Z).note,"onUpdate:modelValue":_[0]||=e=>g(Z).note=e,rows:`3`,maxlength:`1000`,placeholder:X.value.accept?`z. B. Wir bringen es am Montag vorbei.`:`z. B. Ist bis Ende März schon vergeben.`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`error`])],32),u(g(O),null,{default:v(()=>[u(g(w),{variant:`outline`,onClick:_[1]||=e=>X.value=null},{default:v(()=>[..._[7]||=[l(`Abbrechen`,-1)]]),_:1}),u(g(w),{type:`submit`,form:`verleih-entscheidung`,variant:X.value.accept?`default`:`destructive`,disabled:g(Z).processing},{default:v(()=>[g(Z).processing?(f(),a(g(te),{key:0,class:`ih:animate-spin`})):o(``,!0),l(` `+h(X.value.accept?`Zusagen`:`Absagen`),1)]),_:1},8,[`variant`,`disabled`])]),_:1})]),_:1})):o(``,!0)]),_:1},8,[`open`])]),_:1}))}};export{Y 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..4d0666a --- /dev/null +++ b/dist/pages/Show.js @@ -0,0 +1 @@ +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{n as t,t as n}from"../chunks/x-CV132X1X.js";import{n as r,t as i}from"../chunks/loader-circle-DBP4Qhm5.js";import{n as a,r as o,t as s}from"../chunks/StatusBadge-CZaj6wAi.js";import{t as ee}from"../chunks/trash-COMUOW6h.js";import{Fragment as c,computed as te,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createTextVNode as p,createVNode as m,mergeModels as h,onBeforeUnmount as g,openBlock as _,ref as v,renderList as ne,toDisplayString as y,unref as b,useModel as x,watch as S,withCtx as C,withModifiers as w}from"vue";import{Link as T,router as E,useForm as D,usePage as O}from"@inertiajs/vue3";import{AppLayout as re,Button as k,Dialog as A,DialogContent as j,DialogDescription as M,DialogFooter as N,DialogHeader as P,DialogTitle as F,FormField as I,Input as L,PersonAvatar as R,Textarea as z,formatDate as B,toast as ie}from"@inhaus/ui";var ae=e({name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]}),V=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`}]]}),H=e({name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]}),U=e({name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]}),W=e({name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]}),G={class:`ih:grid ih:gap-4 ih:sm:grid-cols-2`},K={__name:`RequestDialog`,props:h({item:{type:Object,required:!0},labels:{type:Object,required:!0},defaultLocation:{type:String,default:null}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(e){let t=e,n=x(e,`open`),r=new Date().toISOString().slice(0,10),a=D({location:t.defaultLocation??``,from:``,until:``,message:``});function o(){a.post(`/verleih/${t.item.id}/anfragen`,{preserveScroll:!0,onSuccess:()=>{n.value=!1,a.reset(`from`,`until`,`message`)}})}return(t,s)=>(_(),l(b(A),{open:n.value,"onUpdate:open":s[5]||=e=>n.value=e},{default:C(()=>[m(b(j),{class:`ih:sm:max-w-lg`},{default:C(()=>[m(b(P),null,{default:C(()=>[m(b(F),null,{default:C(()=>[p(`„`+y(e.item.title)+`“ anfragen`,1)]),_:1}),m(b(M),null,{default:C(()=>[s[6]||=p(` Das Team bekommt Ihre Anfrage im Portal und per E-Mail und meldet sich bei Ihnen. `,-1),e.item.lent?(_(),d(c,{key:0},[p(` Gerade ist es verliehen – Sie können es trotzdem für später anfragen.`)],64)):u(``,!0)]),_:1})]),_:1}),f(`form`,{id:`verleih-anfrage`,class:`ih:grid ih:gap-4`,onSubmit:w(o,[`prevent`])},[m(b(I),{id:`vl-location`,label:`Wo soll es hin?`,error:b(a).errors.location},{default:C(()=>[m(b(L),{id:`vl-location`,modelValue:b(a).location,"onUpdate:modelValue":s[0]||=e=>b(a).location=e,maxlength:`200`,placeholder:`z. B. Verwaltung, Besprechungsraum 2. OG`,required:``},null,8,[`modelValue`])]),_:1},8,[`error`]),f(`div`,G,[m(b(I),{id:`vl-from`,label:`Ab (optional)`,error:b(a).errors.from},{default:C(()=>[m(b(L),{id:`vl-from`,modelValue:b(a).from,"onUpdate:modelValue":s[1]||=e=>b(a).from=e,type:`date`,min:b(r)},null,8,[`modelValue`,`min`])]),_:1},8,[`error`]),m(b(I),{id:`vl-until`,label:`Bis (optional)`,error:b(a).errors.until},{default:C(()=>[m(b(L),{id:`vl-until`,modelValue:b(a).until,"onUpdate:modelValue":s[2]||=e=>b(a).until=e,type:`date`,min:b(a).from||b(r)},null,8,[`modelValue`,`min`])]),_:1},8,[`error`])]),m(b(I),{id:`vl-message`,label:`Nachricht (optional)`,error:b(a).errors.message},{default:C(()=>[m(b(z),{id:`vl-message`,modelValue:b(a).message,"onUpdate:modelValue":s[3]||=e=>b(a).message=e,rows:`3`,maxlength:`2000`,placeholder:`z. B. Anlass, Ansprechperson vor Ort …`},null,8,[`modelValue`])]),_:1},8,[`error`])],32),m(b(N),null,{default:C(()=>[m(b(k),{variant:`outline`,onClick:s[4]||=e=>n.value=!1},{default:C(()=>[...s[7]||=[p(`Abbrechen`,-1)]]),_:1}),m(b(k),{type:`submit`,form:`verleih-anfrage`,disabled:b(a).processing||!b(a).location.trim()},{default:C(()=>[b(a).processing?(_(),l(b(i),{key:0,class:`ih:animate-spin`})):(_(),l(b(H),{key:1})),s[8]||=p(` Anfrage senden `,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},q={class:`ih:mb-4 ih:flex ih:flex-wrap ih:items-center ih:justify-between ih:gap-3`},J={key:0,class:`ih:flex ih:gap-2`},oe={class:`ih:grid ih:gap-6 ih:lg:grid-cols-[minmax(0,1fr)_22rem]`},se={class:`ih:grid ih:min-w-0 ih:content-start ih:gap-6`},ce=[`aria-label`],le=[`src`,`alt`],ue={key:1,class:`ih:grid ih:aspect-[4/3] ih:place-items-center ih:rounded-lg ih:border ih:bg-muted ih:text-muted-foreground`},de={key:2,class:`ih:rounded-lg ih:border ih:bg-card ih:p-5`},fe=[`innerHTML`],pe={class:`ih:grid ih:content-start ih:gap-4 ih:lg:sticky ih:lg:top-24`},me={class:`ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-5`},he={class:`ih:grid ih:gap-2`},ge={class:`ih:text-xl ih:leading-snug ih:font-semibold`},_e={class:`ih:grid ih:gap-2 ih:text-sm`},ve={class:`ih:flex ih:gap-2`},ye={key:0,class:`ih:flex ih:gap-2`},be={key:1,class:`ih:flex ih:gap-2`},xe={key:0,class:`ih:grid ih:gap-2 ih:rounded-md ih:bg-brand-soft ih:p-3 ih:text-sm ih:text-brand-text`},Se={class:`ih:flex ih:items-center ih:gap-1.5 ih:font-medium`},Ce={key:0,class:`ih:rounded-lg ih:border ih:bg-card ih:p-5`},we={class:`ih:grid ih:gap-3`},Te={class:`ih:min-w-0`},Ee={class:`ih:font-medium`},De={class:`ih:text-xs ih:text-muted-foreground`},Oe=[`aria-label`],ke=[`src`,`alt`],Y={__name:`Show`,props:{item:{type:Object,required:!0},labels:{type:Object,required:!0},canManage:{type:Boolean,default:!1},myRequest:{type:Object,default:null},defaultLocation:{type:String,default:null},requests:{type:Array,default:()=>[]}},setup(e){let h=e,x=O();S(()=>x.props.flash?.status,e=>e&&ie.success(e),{immediate:!0});let z=te(()=>h.item),G=v(!1),Y=v(!1),X=e=>e.key===`Escape`&&(Y.value=!1);S(Y,e=>e?window.addEventListener(`keydown`,X):window.removeEventListener(`keydown`,X)),g(()=>window.removeEventListener(`keydown`,X));let Z=v(!1),Q=D({location:``}),Ae=()=>Q.post(`/verleih/${z.value.id}/zurueck`,{preserveScroll:!0,onSuccess:()=>Z.value=!1}),je=()=>window.confirm(`Anfrage zurückziehen?`)&&E.delete(`/verleih/anfragen/${h.myRequest.id}`,{preserveScroll:!0}),Me=()=>window.confirm(`„${z.value.title}“ endgültig löschen?`)&&E.delete(`/verleih/${z.value.id}`),$=(e,t)=>[e?`ab ${B(e)}`:null,t?`bis ${B(t)}`:null].filter(Boolean).join(` `);return(te,h)=>(_(),l(b(re),{title:z.value.title},{default:C(()=>[f(`div`,q,[m(b(T),{href:`/verleih`,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:C(()=>[m(b(r),{class:`ih:size-4`}),p(` `+y(e.labels.title),1)]),_:1}),e.canManage?(_(),d(`div`,J,[m(b(k),{variant:`outline`,size:`sm`,"as-child":``},{default:C(()=>[m(b(T),{href:`/verleih/${z.value.id}/bearbeiten`},{default:C(()=>[m(b(V)),h[9]||=p(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1}),m(b(k),{variant:`ghost`,size:`sm`,class:`ih:text-destructive ih:hover:text-destructive`,onClick:Me},{default:C(()=>[m(b(ee)),h[10]||=p(` Löschen`,-1)]),_:1})])):u(``,!0)]),f(`div`,oe,[f(`div`,se,[z.value.image_url?(_(),d(`button`,{key:0,type:`button`,class:`ih:grid ih:place-items-center ih:rounded-lg ih:border ih:bg-muted ih:p-4 ih:sm:p-8`,"aria-label":`${z.value.title} vergrößern`,onClick:h[0]||=e=>Y.value=!0},[f(`img`,{src:z.value.image_url,alt:z.value.title,class:`ih:max-h-[70vh] ih:w-auto ih:max-w-full ih:object-contain ih:shadow-md`},null,8,le)],8,ce)):(_(),d(`div`,ue,[m(b(o),{class:`ih:size-10`,"stroke-width":1.5})])),z.value.description?(_(),d(`section`,de,[f(`div`,{class:`verleih-text ih:text-[15px] ih:leading-relaxed`,innerHTML:z.value.description},null,8,fe)])):u(``,!0)]),f(`aside`,pe,[f(`section`,me,[f(`div`,he,[m(s,{lent:z.value.lent,class:`ih:w-fit ih:border`},null,8,[`lent`]),f(`h1`,ge,y(z.value.title),1)]),f(`dl`,_e,[f(`div`,ve,[h[11]||=f(`dt`,{class:`ih:sr-only`},`Aktueller Standort`,-1),m(b(a),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-muted-foreground`,"aria-hidden":`true`}),f(`dd`,null,y(z.value.location||`Standort nicht angegeben`),1)]),z.value.lent&&(z.value.lent_since||z.value.lent_until)?(_(),d(`div`,ye,[h[12]||=f(`dt`,{class:`ih:sr-only`},`Zeitraum`,-1),m(b(t),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-muted-foreground`,"aria-hidden":`true`}),f(`dd`,null,`Verliehen `+y($(z.value.lent_since,z.value.lent_until)),1)])):u(``,!0),z.value.lent_to?(_(),d(`div`,be,[h[13]||=f(`dt`,{class:`ih:sr-only`},`Ausgeliehen von`,-1),m(b(W),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-muted-foreground`,"aria-hidden":`true`}),f(`dd`,null,[m(b(T),{href:`/personen/${z.value.lent_to.id}`,class:`ih:hover:underline`},{default:C(()=>[p(y(z.value.lent_to.name),1)]),_:1},8,[`href`])])])):u(``,!0)]),e.myRequest?(_(),d(`div`,xe,[f(`p`,Se,[m(b(ae),{class:`ih:size-4`}),p(` Angefragt am `+y(b(B)(e.myRequest.created_at)),1)]),f(`p`,null,`Nach „`+y(e.myRequest.location)+`“ `+y($(e.myRequest.from,e.myRequest.until))+` – das Team meldet sich.`,1),f(`button`,{type:`button`,class:`ih:w-fit ih:text-xs ih:font-medium ih:underline`,onClick:je},`Anfrage zurückziehen`)])):(_(),l(b(k),{key:1,size:`lg`,class:`ih:w-full`,onClick:h[1]||=e=>G.value=!0},{default:C(()=>[m(b(H)),p(` `+y(e.labels.singular)+` anfragen`,1)]),_:1})),e.canManage&&z.value.lent?(_(),l(b(k),{key:2,variant:`outline`,class:`ih:w-full`,onClick:h[2]||=e=>Z.value=!0},{default:C(()=>[m(b(U)),h[14]||=p(` Zurückgenommen`,-1)]),_:1})):u(``,!0)]),e.canManage&&e.requests.length?(_(),d(`section`,Ce,[h[16]||=f(`h2`,{class:`ih:mb-3 ih:text-sm ih:font-semibold`},`Anfragen`,-1),f(`ul`,we,[(_(!0),d(c,null,ne(e.requests,e=>(_(),d(`li`,{key:e.id,class:`ih:flex ih:gap-3 ih:text-sm`},[m(b(R),{person:e.user,class:`ih:size-8`},null,8,[`person`]),f(`div`,Te,[f(`p`,null,[f(`span`,Ee,y(e.user?.name),1),p(` · `+y(e.location),1)]),f(`p`,De,y(e.status_label)+` · `+y(b(B)(e.created_at)),1)])]))),128))]),m(b(T),{href:`/verleih/anfragen`,class:`ih:mt-3 ih:inline-block ih:text-sm ih:font-medium ih:text-brand-text ih:hover:underline`},{default:C(()=>[...h[15]||=[p(`Alle Anfragen`,-1)]]),_:1})])):u(``,!0)])]),m(K,{open:G.value,"onUpdate:open":h[3]||=e=>G.value=e,item:z.value,labels:e.labels,"default-location":e.defaultLocation},null,8,[`open`,`item`,`labels`,`default-location`]),m(b(A),{open:Z.value,"onUpdate:open":h[6]||=e=>Z.value=e},{default:C(()=>[m(b(j),{class:`ih:sm:max-w-md`},{default:C(()=>[m(b(P),null,{default:C(()=>[m(b(F),null,{default:C(()=>[p(`„`+y(z.value.title)+`“ zurückgenommen`,1)]),_:1}),m(b(M),null,{default:C(()=>[...h[17]||=[p(`Danach ist es wieder verfügbar. Wo ist es jetzt?`,-1)]]),_:1})]),_:1}),f(`form`,{id:`verleih-zurueck`,onSubmit:w(Ae,[`prevent`])},[m(b(I),{id:`vl-return`,label:`Neuer Standort`,error:b(Q).errors.location},{default:C(()=>[m(b(L),{id:`vl-return`,modelValue:b(Q).location,"onUpdate:modelValue":h[4]||=e=>b(Q).location=e,maxlength:`200`,placeholder:`z. B. Lager Künstlerteam`},null,8,[`modelValue`])]),_:1},8,[`error`])],32),m(b(N),null,{default:C(()=>[m(b(k),{variant:`outline`,onClick:h[5]||=e=>Z.value=!1},{default:C(()=>[...h[18]||=[p(`Abbrechen`,-1)]]),_:1}),m(b(k),{type:`submit`,form:`verleih-zurueck`,disabled:b(Q).processing},{default:C(()=>[b(Q).processing?(_(),l(b(i),{key:0,class:`ih:animate-spin`})):u(``,!0),h[19]||=p(` Speichern`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]),Y.value?(_(),d(`div`,{key:0,class:`ih:fixed ih:inset-0 ih:z-50 ih:grid ih:place-items-center ih:bg-black/85 ih:p-4`,role:`dialog`,"aria-modal":`true`,"aria-label":z.value.title,onClick:h[8]||=e=>Y.value=!1},[f(`img`,{src:z.value.image_url,alt:z.value.title,class:`ih:max-h-full ih:max-w-full ih:object-contain`},null,8,ke),f(`button`,{type:`button`,class:`ih:absolute ih:top-4 ih:right-4 ih:grid ih:size-10 ih:place-items-center ih:rounded-full ih:bg-white/15 ih:text-white`,"aria-label":`Schließen`,onClick:h[7]||=w(e=>Y.value=!1,[`stop`])},[m(b(n))])],8,Oe)):u(``,!0)]),_:1},8,[`title`]))}};export{Y 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..f19a0b0 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1712 @@ +{ + "name": "inhaus-plugin-verleih", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "inhaus-plugin-verleih", + "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..f6827b0 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "inhaus-plugin-verleih", + "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..20d195e --- /dev/null +++ b/plugin.json @@ -0,0 +1,14 @@ +{ + "slug": "verleih", + "name": "Verleih", + "version": "1.0.0", + "description": "Verleihsystem, z. B. für die Bilder des Künstlerteams: Übersicht mit Status und aktuellem Standort, Anfragen im Portal mit Zusage oder Absage, Import aus dem bisherigen WordPress-Verleihsystem.", + "author": "Loheide", + "namespace": "Inhaus\\Plugins\\Verleih\\", + "class": "Inhaus\\Plugins\\Verleih\\VerleihPlugin", + "requires": { + "core": ">=0.42.0", + "php": ">=8.3" + }, + "update_url": "https://git.loheide.cloud/api/v1/repos/friloo/inhaus-plugin-verleih/releases/latest" +} diff --git a/resources/css/style.css b/resources/css/style.css new file mode 100644 index 0000000..6d171ad --- /dev/null +++ b/resources/css/style.css @@ -0,0 +1,12 @@ +/* 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"; + +/* Beschreibung (bereinigtes HTML aus dem Editor bzw. aus WordPress) */ +.verleih-text p { margin: 0.5rem 0; } +.verleih-text p:first-child { margin-top: 0; } +.verleih-text p:last-child { margin-bottom: 0; } +.verleih-text ul { list-style: disc; padding-left: 1.25rem; margin: 0.5rem 0; } +.verleih-text ol { list-style: decimal; padding-left: 1.25rem; margin: 0.5rem 0; } +.verleih-text h2, .verleih-text h3 { font-weight: 600; margin: 1rem 0 0.5rem; } +.verleih-text a { color: var(--color-brand-text); text-decoration: underline; } diff --git a/resources/js/components/ItemCard.vue b/resources/js/components/ItemCard.vue new file mode 100644 index 0000000..bfb41a9 --- /dev/null +++ b/resources/js/components/ItemCard.vue @@ -0,0 +1,26 @@ + + + diff --git a/resources/js/components/RequestDialog.vue b/resources/js/components/RequestDialog.vue new file mode 100644 index 0000000..a97b777 --- /dev/null +++ b/resources/js/components/RequestDialog.vue @@ -0,0 +1,62 @@ + + +