commit f05c44733f02d470d5808560c27a6d09db167493 Author: Friederich Loheide Date: Sun Sep 27 17:06:02 2026 +0000 Kleinanzeigen-Plugin 1.0.0 Co-Authored-By: Claude Opus 5.5 (1M context) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ceeeb4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +*.zip diff --git a/README.md b/README.md new file mode 100644 index 0000000..bb22419 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# Kleinanzeigen – Plugin für Inhaus + +Der Kleinanzeigenmarkt im Mitarbeiterportal – von Kolleginnen und Kollegen für Kolleginnen und Kollegen. + +- **Verkaufe, Verschenke, Suche, Tausche** in 13 Kategorien (Möbel, Kinder, Fahrräder, Mitfahrgelegenheit, Hilfe …), + Preis mit „VB“, Ort bzw. Abholung, optional Telefon, bis zu 8 Fotos (werden verkleinert). +- **Freigabe durch die Moderation**: Neue Anzeigen – und inhaltliche Änderungen an freigegebenen – erscheinen erst nach + Prüfung durch Personen mit dem Recht **„Kleinanzeigen freigeben und moderieren“**. Zurückgeben mit Begründung. +- **30 Tage Laufzeit**, Erinnerung drei Tage vorher, mit einem Klick verlängern; „reserviert“ und „erledigt“ markieren. +- **Kontakt**: „Im Chat schreiben“, wenn das Plugin *Nachrichten* (inhaus-plugin-chat) aktiv ist – sonst per E-Mail + (die Adresse der anbietenden Person bleibt verborgen, geantwortet wird direkt). +- **Merkliste**, **Suche** und Filter, Anzeigen **melden**, Kachel auf der Startseite, Treffer in der globalen Suche, + Abschnitt im Wochenüberblick. +- Fotos liegen nicht im öffentlichen Ordner – nur angemeldete Mitarbeitende sehen sie. + +Voraussetzung: Inhaus **0.39.0** oder neuer. Optional: Plugin *Nachrichten* für den Kontakt per Chat. + +## Installation + +1. `kleinanzeigen-.zip` unter https://git.loheide.cloud/friloo/inhaus-plugin-kleinanzeigen/releases laden. +2. Backend → **Plugins** → hochladen → aktivieren. Updates erscheinen danach automatisch. +3. Unter **Rollen** das Recht **„Kleinanzeigen freigeben und moderieren“** vergeben. Ohne solche Rolle geht die Freigabe + an die Administration. + +## Entwicklung + +```bash +npm install && npm run build # dist/ wird eingecheckt +npm run package # kleinanzeigen-.zip +``` + +Tests laufen in einer Inhaus-Installation mit dem Plugin unter `plugins/kleinanzeigen`: +`vendor-dev/bin/phpunit plugins/kleinanzeigen/tests` (der Chat-Test läuft nur, wenn auch `plugins/chat` vorhanden ist). diff --git a/bin/package b/bin/package new file mode 100755 index 0000000..371255c --- /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}/kleinanzeigen-{$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(), 'kleinanzeigen/'.$relative); +} + +$zip->close(); +echo "Paket: {$target}\n"; diff --git a/database/migrations/2026_10_22_000001_create_kleinanzeigen_tables.php b/database/migrations/2026_10_22_000001_create_kleinanzeigen_tables.php new file mode 100644 index 0000000..db6e612 --- /dev/null +++ b/database/migrations/2026_10_22_000001_create_kleinanzeigen_tables.php @@ -0,0 +1,72 @@ +id(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->string('type', 10); // sell | give | search | swap + $table->string('category', 30); + $table->string('title', 120); + $table->text('description'); + $table->unsignedInteger('price_cents')->nullable(); + $table->boolean('negotiable')->default(false); + $table->string('location', 120)->nullable(); + $table->string('phone', 40)->nullable(); + // pending | active | rejected | done | expired + $table->string('status', 10)->default('pending'); + $table->boolean('reserved')->default(false); + $table->string('review_note', 500)->nullable(); + $table->foreignId('reviewed_by')->nullable()->constrained('users')->nullOnDelete(); + $table->timestamp('published_at')->nullable(); + $table->timestamp('expires_at')->nullable(); + $table->timestamp('reminded_at')->nullable(); + $table->timestamps(); + + $table->index(['status', 'published_at']); + $table->index(['user_id', 'status']); + }); + + Schema::create('kleinanzeigen_images', function (Blueprint $table) { + $table->id(); + $table->foreignId('listing_id')->constrained('kleinanzeigen_listings')->cascadeOnDelete(); + $table->string('path', 300); + $table->string('thumb_path', 300); + $table->unsignedInteger('width')->nullable(); + $table->unsignedInteger('height')->nullable(); + $table->unsignedSmallInteger('sort')->default(0); + }); + + Schema::create('kleinanzeigen_favorites', function (Blueprint $table) { + $table->foreignId('listing_id')->constrained('kleinanzeigen_listings')->cascadeOnDelete(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->timestamp('created_at')->nullable(); + + $table->primary(['listing_id', 'user_id']); + }); + + Schema::create('kleinanzeigen_reports', function (Blueprint $table) { + $table->id(); + $table->foreignId('listing_id')->constrained('kleinanzeigen_listings')->cascadeOnDelete(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->string('reason', 500); + $table->timestamp('resolved_at')->nullable(); + $table->timestamps(); + + $table->unique(['listing_id', 'user_id']); + }); + } + + public function down(): void + { + foreach (['kleinanzeigen_reports', 'kleinanzeigen_favorites', 'kleinanzeigen_images', 'kleinanzeigen_listings'] as $table) { + Schema::dropIfExists($table); + } + } +}; diff --git a/dist/assets/style-CAm2qtFB.css b/dist/assets/style-CAm2qtFB.css new file mode 100644 index 0000000..6f79df0 --- /dev/null +++ b/dist/assets/style-CAm2qtFB.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-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-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-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}@layer theme{:root,:host{--ih-spacing:.25rem;--ih-container-md:28rem;--ih-container-3xl:48rem;--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-lg:1.125rem;--ih-text-lg--line-height:calc(1.75 / 1.125);--ih-text-xl:1.25rem;--ih-text-xl--line-height:calc(1.75 / 1.25);--ih-text-2xl:1.5rem;--ih-text-2xl--line-height:calc(2 / 1.5);--ih-font-weight-medium:500;--ih-font-weight-semibold:600;--ih-tracking-tight:-.025em;--ih-tracking-wider:.05em;--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\:relative{position:relative}.ih\:top-1{top:var(--ih-spacing)}.ih\:top-1\/2{top:50%}.ih\:top-2{top:calc(var(--ih-spacing) * 2)}.ih\:right-1{right:var(--ih-spacing)}.ih\:right-2{right:calc(var(--ih-spacing) * 2)}.ih\:right-3{right:calc(var(--ih-spacing) * 3)}.ih\:bottom-2{bottom:calc(var(--ih-spacing) * 2)}.ih\:bottom-3{bottom:calc(var(--ih-spacing) * 3)}.ih\:left-2{left:calc(var(--ih-spacing) * 2)}.ih\:left-2\.5{left:calc(var(--ih-spacing) * 2.5)}.ih\:left-3{left:calc(var(--ih-spacing) * 3)}.ih\:col-span-2{grid-column:span 2/span 2}.ih\:-mx-5{margin-inline:calc(var(--ih-spacing) * -5)}.ih\:mt-0\.5{margin-top:calc(var(--ih-spacing) * .5)}.ih\:mt-1{margin-top:var(--ih-spacing)}.ih\:mt-2{margin-top:calc(var(--ih-spacing) * 2)}.ih\:mt-3{margin-top:calc(var(--ih-spacing) * 3)}.ih\:mt-4{margin-top:calc(var(--ih-spacing) * 4)}.ih\:mt-6{margin-top:calc(var(--ih-spacing) * 6)}.ih\:mt-10{margin-top:calc(var(--ih-spacing) * 10)}.ih\:mt-auto{margin-top:auto}.ih\:mb-1\.5{margin-bottom:calc(var(--ih-spacing) * 1.5)}.ih\:mb-2{margin-bottom:calc(var(--ih-spacing) * 2)}.ih\:mb-4{margin-bottom:calc(var(--ih-spacing) * 4)}.ih\:mb-6{margin-bottom:calc(var(--ih-spacing) * 6)}.ih\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.ih\:line-clamp-4{-webkit-line-clamp:4;-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-flex{display:inline-flex}.ih\:aspect-\[4\/3\]{aspect-ratio:4/3}.ih\:size-3{width:calc(var(--ih-spacing) * 3);height:calc(var(--ih-spacing) * 3)}.ih\:size-3\.5{width:calc(var(--ih-spacing) * 3.5);height:calc(var(--ih-spacing) * 3.5)}.ih\:size-4{width:calc(var(--ih-spacing) * 4);height:calc(var(--ih-spacing) * 4)}.ih\:size-5{width:calc(var(--ih-spacing) * 5);height:calc(var(--ih-spacing) * 5)}.ih\:size-6{width:calc(var(--ih-spacing) * 6);height:calc(var(--ih-spacing) * 6)}.ih\:size-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\:size-12{width:calc(var(--ih-spacing) * 12);height:calc(var(--ih-spacing) * 12)}.ih\:size-16{width:calc(var(--ih-spacing) * 16);height:calc(var(--ih-spacing) * 16)}.ih\:size-20{width:calc(var(--ih-spacing) * 20);height:calc(var(--ih-spacing) * 20)}.ih\:size-full{width:100%;height:100%}.ih\:h-9{height:calc(var(--ih-spacing) * 9)}.ih\:h-10{height:calc(var(--ih-spacing) * 10)}.ih\:max-h-full{max-height:100%}.ih\:w-full{width:100%}.ih\:max-w-3xl{max-width:var(--ih-container-3xl)}.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\:cursor-pointer{cursor:pointer}.ih\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ih\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ih\:flex-col{flex-direction:column}.ih\:flex-wrap{flex-wrap:wrap}.ih\:place-items-center{place-items:center}.ih\:content-start{align-content:flex-start}.ih\:items-center{align-items:center}.ih\:items-start{align-items:flex-start}.ih\:justify-between{justify-content:space-between}.ih\:justify-center{justify-content:center}.ih\:gap-0\.5{gap:calc(var(--ih-spacing) * .5)}.ih\:gap-1{gap:var(--ih-spacing)}.ih\:gap-1\.5{gap:calc(var(--ih-spacing) * 1.5)}.ih\:gap-2{gap:calc(var(--ih-spacing) * 2)}.ih\:gap-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-6{column-gap:calc(var(--ih-spacing) * 6)}.ih\:gap-y-2{row-gap:calc(var(--ih-spacing) * 2)}: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\:self-end{align-self:flex-end}.ih\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ih\:overflow-hidden{overflow:hidden}.ih\:overflow-x-auto{overflow-x:auto}.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\:rounded-xl{border-radius:calc(var(--radius) * 1.5)}.ih\:border{border-style:var(--tw-border-style);border-width:1px}.ih\:border-2{border-style:var(--tw-border-style);border-width:2px}.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-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.ih\:border-destructive\/30.ih\:border-destructive\/30{border-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.ih\:border-input{border-color:var(--input)}.ih\:border-transparent{border-color:#0000}.ih\:bg-accent{background-color:var(--accent)}.ih\:bg-brand{background-color:var(--brand)}.ih\:bg-brand-soft{background-color:var(--brand-soft)}.ih\:bg-card,.ih\:bg-card\/90{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-card\/90.ih\:bg-card\/90{background-color:color-mix(in oklab, var(--card) 90%, transparent)}}.ih\:bg-card\/95{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-card\/95.ih\:bg-card\/95{background-color:color-mix(in oklab, var(--card) 95%, transparent)}}.ih\:bg-destructive\/5{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-destructive\/5.ih\:bg-destructive\/5{background-color:color-mix(in oklab, var(--destructive) 5%, transparent)}}.ih\:bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-destructive\/10.ih\:bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.ih\:bg-foreground,.ih\:bg-foreground\/70{background-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-foreground\/70.ih\:bg-foreground\/70{background-color:color-mix(in oklab, var(--foreground) 70%, transparent)}}.ih\:bg-foreground\/75{background-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-foreground\/75.ih\:bg-foreground\/75{background-color:color-mix(in oklab, var(--foreground) 75%, transparent)}}.ih\:bg-foreground\/85{background-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.ih\:bg-foreground\/85.ih\:bg-foreground\/85{background-color:color-mix(in oklab, var(--foreground) 85%, transparent)}}.ih\:bg-muted{background-color:var(--muted)}.ih\:fill-current{fill:currentColor}.ih\:object-contain{object-fit:contain}.ih\:object-cover{object-fit:cover}.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\.5{padding-block:calc(var(--ih-spacing) * 2.5)}.ih\:py-3{padding-block:calc(var(--ih-spacing) * 3)}.ih\:pt-1{padding-top:var(--ih-spacing)}.ih\:pt-4{padding-top:calc(var(--ih-spacing) * 4)}.ih\:pr-3{padding-right:calc(var(--ih-spacing) * 3)}.ih\:pb-2{padding-bottom:calc(var(--ih-spacing) * 2)}.ih\:pl-8{padding-left:calc(var(--ih-spacing) * 8)}.ih\:text-left{text-align:left}.ih\:text-2xl{font-size:var(--ih-text-2xl);line-height:var(--tw-leading,var(--ih-text-2xl--line-height))}.ih\:text-lg{font-size:var(--ih-text-lg);line-height:var(--tw-leading,var(--ih-text-lg--line-height))}.ih\:text-sm{font-size:var(--ih-text-sm);line-height:var(--tw-leading,var(--ih-text-sm--line-height))}.ih\:text-xl{font-size:var(--ih-text-xl);line-height:var(--tw-leading,var(--ih-text-xl--line-height))}.ih\:text-xs{font-size:var(--ih-text-xs);line-height:var(--tw-leading,var(--ih-text-xs--line-height))}.ih\:text-\[11px\]{font-size:11px}.ih\:text-\[13px\]{font-size:13px}.ih\:text-\[15px\]{font-size:15px}.ih\:leading-relaxed{--tw-leading:var(--ih-leading-relaxed);line-height:var(--ih-leading-relaxed)}.ih\:leading-snug{--tw-leading:var(--ih-leading-snug);line-height:var(--ih-leading-snug)}.ih\:font-medium{--tw-font-weight:var(--ih-font-weight-medium);font-weight:var(--ih-font-weight-medium)}.ih\:font-semibold{--tw-font-weight:var(--ih-font-weight-semibold);font-weight:var(--ih-font-weight-semibold)}.ih\:tracking-tight{--tw-tracking:var(--ih-tracking-tight);letter-spacing:var(--ih-tracking-tight)}.ih\:tracking-wider{--tw-tracking:var(--ih-tracking-wider);letter-spacing:var(--ih-tracking-wider)}.ih\:text-balance{text-wrap:balance}.ih\:whitespace-pre-line{white-space:pre-line}.ih\:text-accent-foreground{color:var(--accent-foreground)}.ih\:text-background{color:var(--background)}.ih\:text-brand-foreground{color:var(--brand-foreground)}.ih\:text-brand-text{color:var(--brand-text)}.ih\:text-destructive{color:var(--destructive)}.ih\:text-muted-foreground{color:var(--muted-foreground)}.ih\:uppercase{text-transform:uppercase}.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\:opacity-70{opacity:.7}.ih\:shadow{--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-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--ih-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ih-default-transition-duration))}.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\.03\].ih\:group-hover\:scale-\[1\.03\]:is(:where(.ih\:group):hover *){scale:1.03}.ih\:hover\:border-brand.ih\:hover\:border-brand:hover{border-color:var(--brand)}.ih\:hover\:bg-accent.ih\:hover\:bg-accent:hover,.ih\:hover\:bg-accent\/50.ih\:hover\:bg-accent\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.ih\:hover\:bg-accent\/50.ih\:hover\:bg-accent\/50:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.ih\:hover\:text-brand-text.ih\:hover\:text-brand-text:hover{color:var(--brand-text)}.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\:opacity-100.ih\:hover\:opacity-100:hover{opacity:1}.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}.ih\:has-\[\:checked\]\:border-brand.ih\:has-\[\:checked\]\:border-brand:has(:checked){border-color:var(--brand)}.ih\:has-\[\:checked\]\:bg-brand.ih\:has-\[\:checked\]\:bg-brand:has(:checked){background-color:var(--brand)}.ih\:has-\[\:checked\]\:text-brand-foreground.ih\:has-\[\:checked\]\:text-brand-foreground:has(:checked){color:var(--brand-foreground)}.ih\:has-\[\:focus-visible\]\:ring-3.ih\:has-\[\:focus-visible\]\:ring-3:has(: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\:has-\[\:focus-visible\]\:ring-ring\/30.ih\:has-\[\:focus-visible\]\:ring-ring\/30:has(:focus-visible){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.ih\:has-\[\:focus-visible\]\:ring-ring\/30.ih\:has-\[\:focus-visible\]\:ring-ring\/30:has(:focus-visible){--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media (min-width:40rem){.ih\:sm\:aspect-\[16\/10\].ih\:sm\:aspect-\[16\/10\]{aspect-ratio:16/10}.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-4.ih\:sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.ih\:sm\:flex-nowrap.ih\:sm\:flex-nowrap{flex-wrap:nowrap}.ih\:sm\:gap-4.ih\:sm\:gap-4{gap:calc(var(--ih-spacing) * 4)}.ih\:sm\:p-6.ih\:sm\:p-6{padding:calc(var(--ih-spacing) * 6)}}@media (min-width:48rem){.ih\:md\:grid-cols-2.ih\:md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ih\:md\:grid-cols-3.ih\:md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ih\:md\:grid-cols-4.ih\:md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.ih\:md\:grid-cols-\[12rem_minmax\(0\,1fr\)\].ih\:md\:grid-cols-\[12rem_minmax\(0\,1fr\)\]{grid-template-columns:12rem minmax(0,1fr)}}@media (min-width:64rem){.ih\:lg\:block.ih\:lg\:block{display:block}.ih\:lg\:hidden.ih\:lg\:hidden{display:none}.ih\:lg\:grid-cols-\[15rem_minmax\(0\,1fr\)\].ih\:lg\:grid-cols-\[15rem_minmax\(0\,1fr\)\]{grid-template-columns:15rem minmax(0,1fr)}.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))}}}@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-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}} diff --git a/dist/chunks/ListingCard-DfH_TzXE.js b/dist/chunks/ListingCard-DfH_TzXE.js new file mode 100644 index 0000000..6868f00 --- /dev/null +++ b/dist/chunks/ListingCard-DfH_TzXE.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";import{t}from"./heart-CyCnSX5a.js";import{t as n}from"./image-off-BfSjK3tM.js";import{createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createTextVNode as s,createVNode as c,normalizeClass as l,openBlock as u,toDisplayString as d,unref as f,withCtx as p}from"vue";import{Link as m,router as h}from"@inertiajs/vue3";var g=e({name:`camera`,size:24,node:[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]}),_=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`}]]}),v={class:`ih:group ih:relative 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`},y=[`src`,`alt`],b={key:1,class:`ih:grid ih:size-full ih:place-items-center ih:text-muted-foreground`},x={class:`ih:absolute ih:top-2 ih:left-2 ih:rounded ih:bg-card/95 ih:px-1.5 ih:py-0.5 ih:text-[11px] ih:font-semibold ih:shadow-xs`},S={key:2,class:`ih:absolute ih:bottom-2 ih:left-2 ih:rounded ih:bg-foreground/85 ih:px-1.5 ih:py-0.5 ih:text-[11px] ih:font-semibold ih:text-background`},C={key:3,class:`ih:absolute ih:right-2 ih:bottom-2 ih:inline-flex ih:items-center ih:gap-1 ih:rounded ih:bg-foreground/70 ih:px-1.5 ih:py-0.5 ih:text-[11px] ih:text-background`},w=[`aria-pressed`,`aria-label`],T={class:`ih:flex ih:flex-1 ih:flex-col ih:gap-1 ih:p-3`},E={key:0,class:`ih:text-[15px] ih:font-semibold ih:text-brand-text`},D={key:1,class:`ih:mt-auto ih:flex ih:items-center ih:gap-1 ih:pt-1 ih:text-xs ih:text-muted-foreground`},O={class:`ih:truncate`},k={__name:`ListingCard`,props:{listing:{type:Object,required:!0},compact:{type:Boolean,default:!1}},setup(e){let k=e;function A(){let e=k.listing;e.favorite=!e.favorite,h.visit(`/kleinanzeigen/${e.id}/merken`,{method:e.favorite?`post`:`delete`,preserveScroll:!0,preserveState:!0})}return(h,k)=>(u(),a(`article`,v,[c(f(m),{href:e.listing.url,class:`ih:relative ih:block ih:aspect-[4/3] ih:overflow-hidden ih:bg-muted`},{default:p(()=>[e.listing.thumb_url?(u(),a(`img`,{key:0,src:e.listing.thumb_url,alt:e.listing.title,loading:`lazy`,class:`ih:size-full ih:object-cover ih:transition-transform ih:duration-300 ih:group-hover:scale-[1.03]`},null,8,y)):(u(),a(`span`,b,[c(f(n),{class:`ih:size-8`,"stroke-width":1.5})])),o(`span`,x,d(e.listing.type_label),1),e.listing.reserved?(u(),a(`span`,S,`Reserviert`)):i(``,!0),e.listing.images>1?(u(),a(`span`,C,[c(f(g),{class:`ih:size-3`}),s(d(e.listing.images),1)])):i(``,!0)]),_:1},8,[`href`]),o(`button`,{type:`button`,class:l([`ih:absolute ih:top-2 ih:right-2 ih:grid ih:size-8 ih:place-items-center ih:rounded-full ih:bg-card/95 ih:shadow-xs ih:transition-colors ih:hover:text-brand-text`,e.listing.favorite?`ih:text-brand-text`:`ih:text-muted-foreground`]),"aria-pressed":e.listing.favorite,"aria-label":e.listing.favorite?`Von der Merkliste nehmen`:`Merken`,onClick:A},[c(f(t),{class:l([`ih:size-4`,e.listing.favorite?`ih:fill-current`:``])},null,8,[`class`])],10,w),o(`div`,T,[e.listing.price?(u(),a(`p`,E,d(e.listing.price),1)):i(``,!0),c(f(m),{href:e.listing.url,class:`ih:line-clamp-2 ih:text-sm ih:leading-snug ih:font-medium ih:hover:underline`},{default:p(()=>[s(d(e.listing.title),1)]),_:1},8,[`href`]),e.compact?i(``,!0):(u(),a(`p`,D,[e.listing.location?(u(),r(f(_),{key:0,class:`ih:size-3 ih:shrink-0`})):i(``,!0),o(`span`,O,d([e.listing.location,e.listing.category_label].filter(Boolean).join(` · `)),1)]))])]))}};export{_ as n,k 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/flag-DsBVcwMd.js b/dist/chunks/flag-DsBVcwMd.js new file mode 100644 index 0000000..cc9e8ee --- /dev/null +++ b/dist/chunks/flag-DsBVcwMd.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=e({name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]});export{t}; \ No newline at end of file diff --git a/dist/chunks/heart-CyCnSX5a.js b/dist/chunks/heart-CyCnSX5a.js new file mode 100644 index 0000000..fe4c9a5 --- /dev/null +++ b/dist/chunks/heart-CyCnSX5a.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=e({name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]});export{t}; \ No newline at end of file diff --git a/dist/chunks/image-off-BfSjK3tM.js b/dist/chunks/image-off-BfSjK3tM.js new file mode 100644 index 0000000..8db64e0 --- /dev/null +++ b/dist/chunks/image-off-BfSjK3tM.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=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`}]]});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/plus-CThDQH9c.js b/dist/chunks/plus-CThDQH9c.js new file mode 100644 index 0000000..47f1709 --- /dev/null +++ b/dist/chunks/plus-CThDQH9c.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=e({name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]});export{t}; \ No newline at end of file diff --git a/dist/chunks/shield-check-CrHENMih.js b/dist/chunks/shield-check-CrHENMih.js new file mode 100644 index 0000000..d8d0f19 --- /dev/null +++ b/dist/chunks/shield-check-CrHENMih.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=e({name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]});export{t}; \ No newline at end of file diff --git a/dist/chunks/trash-DzQOFBxr.js b/dist/chunks/trash-DzQOFBxr.js new file mode 100644 index 0000000..7a2e838 --- /dev/null +++ b/dist/chunks/trash-DzQOFBxr.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CYyWUN7r.js";var t=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`}]]}),n=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 as n,n as t}; \ No newline at end of file diff --git a/dist/editorial/EditorialListings.js b/dist/editorial/EditorialListings.js new file mode 100644 index 0000000..4ca7294 --- /dev/null +++ b/dist/editorial/EditorialListings.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}from"@inhaus/ui";var m={key:0,class:`ih:-mx-5 ih:divide-y ih:border-t`},h=[`src`],g={class:`ih:shrink-0 ih:text-xs ih:text-muted-foreground`},_={key:1,class:`ih:text-sm ih:text-muted-foreground`},v={__name:`EditorialListings`,props:{pending:{type:Array,required:!0}},setup(v){return(y,b)=>(s(),t(u(p),{title:`Kleinanzeigen – Freigabe`,"action-label":`Zur Freigabe`,"action-href":`/kleinanzeigen/moderation`},{default:d(()=>[v.pending.length?(s(),r(`ul`,m,[(s(!0),r(e,null,c(v.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.thumb_url?(s(),r(`img`,{key:0,src:e.thumb_url,alt:``,class:`ih:size-10 ih:rounded ih:object-cover`},null,8,h)):n(``,!0),o(u(f),{href:e.url,class:`ih:min-w-0 ih:flex-1 ih:truncate ih:text-sm ih:font-medium ih:hover:underline`},{default:d(()=>[a(l(e.title),1)]),_:2},1032,[`href`]),i(`span`,g,l(e.type_label),1)]))),128))])):(s(),r(`p`,_,`Keine Anzeigen warten auf Freigabe.`))]),_:1}))}};export{v as default}; \ No newline at end of file diff --git a/dist/inhaus.json b/dist/inhaus.json new file mode 100644 index 0000000..f694eae --- /dev/null +++ b/dist/inhaus.json @@ -0,0 +1,14 @@ +{ + "components": { + "editorial/EditorialListings": "editorial/EditorialListings.js", + "pages/Editor": "pages/Editor.js", + "pages/Index": "pages/Index.js", + "pages/Mine": "pages/Mine.js", + "pages/Moderation": "pages/Moderation.js", + "pages/Show": "pages/Show.js", + "widgets/Latest": "widgets/Latest.js" + }, + "css": [ + "assets/style-CAm2qtFB.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..f7112a7 --- /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{Fragment as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,openBlock as d,ref as f,renderList as p,toDisplayString as m,unref as h,vModelRadio as g,vModelSelect as _,withCtx as v,withDirectives as y,withModifiers as b}from"vue";import{Link as x,useForm as S}from"@inertiajs/vue3";import{AppLayout as ee,Button as C,FormField as w,Input as T,PageHeader as E,Panel as D,Switch as O,Textarea as te,toast as ne}from"@inhaus/ui";var re=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`}]]}),k=e({name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]}),A=e({name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]}),j={key:0,class:`ih:mb-4 ih:flex ih:items-start ih:gap-2 ih:rounded-md ih:border ih:border-destructive/30 ih:bg-destructive/5 ih:p-3 ih:text-sm`},M={class:`ih:grid ih:gap-5`},N={class:`ih:flex ih:flex-wrap ih:gap-2`},P=[`value`],F=[`value`],I={key:0,class:`ih:grid ih:gap-4 ih:sm:grid-cols-2`},L={key:0,class:`ih:flex ih:items-center ih:gap-3 ih:self-end ih:pb-2 ih:text-sm`},R={class:`ih:grid ih:gap-4 ih:sm:grid-cols-2`},z=[`src`],B=[`onClick`],V=[`src`],H=[`onClick`],U={key:0,class:`ih:mt-2 ih:text-[13px] ih:text-destructive`},W={class:`ih:flex ih:flex-wrap ih:items-center ih:gap-3`},G={class:`ih:text-xs ih:text-muted-foreground`},K={__name:`Editor`,props:{listing:{type:Object,default:null},types:{type:Object,required:!0},categories:{type:Object,required:!0},maxPhotos:{type:Number,default:8},defaultLocation:{type:String,default:null}},setup(e){let K=e,q=K.listing,J=S({type:q?.type??`sell`,category:q?.category??``,title:q?.title??``,description:q?.description??``,price:q?.price??``,negotiable:q?.negotiable??!1,location:q?.location??K.defaultLocation??``,phone:q?.phone??``,photos:[],remove_photos:[]}),Y=f(q?.photos??[]),X=f([]),Z=f(null),ie=i(()=>[`sell`,`search`].includes(J.type)),Q=i(()=>Y.value.length+J.photos.length);function $(e){for(let t of e)if(t.type.startsWith(`image/`)){if(Q.value>=K.maxPhotos){ne.error(`Höchstens ${K.maxPhotos} Fotos.`);break}J.photos.push(t),X.value.push(URL.createObjectURL(t))}}function ae(e){URL.revokeObjectURL(X.value[e]),J.photos.splice(e,1),X.value.splice(e,1)}function oe(e){J.remove_photos.push(e.id),Y.value=Y.value.filter(t=>t.id!==e.id)}function se(){J.post(q?`/kleinanzeigen/${q.id}`:`/kleinanzeigen`,{forceFormData:!0,preserveScroll:!0})}let ce=i(()=>q&&[`active`,`rejected`,`expired`].includes(q.status));return(i,f)=>(d(),a(h(ee),{title:h(q)?`Anzeige bearbeiten`:`Anzeige aufgeben`},{default:v(()=>[u(h(E),{title:h(q)?`Anzeige bearbeiten`:`Anzeige aufgeben`,breadcrumbs:[{label:`Kleinanzeigen`,href:`/kleinanzeigen`}]},null,8,[`title`]),h(q)?.review_note?(d(),s(`p`,j,[u(h(k),{class:`ih:mt-0.5 ih:size-4 ih:shrink-0 ih:text-destructive`}),l(` Hinweis der Moderation: `+m(h(q).review_note),1)])):o(``,!0),c(`form`,{class:`ih:grid ih:max-w-3xl ih:gap-6`,onSubmit:b(se,[`prevent`])},[u(h(D),null,{default:v(()=>[c(`div`,M,[c(`fieldset`,null,[f[12]||=c(`legend`,{class:`ih:mb-2 ih:text-sm ih:font-medium`},`Ich …`,-1),c(`div`,N,[(d(!0),s(r,null,p(e.types,(e,t)=>(d(),s(`label`,{key:t,class:`ih:cursor-pointer ih:rounded-full ih:border ih:px-4 ih:py-1.5 ih:text-sm ih:has-[:checked]:border-brand ih:has-[:checked]:bg-brand ih:has-[:checked]:text-brand-foreground ih:has-[:focus-visible]:ring-3 ih:has-[:focus-visible]:ring-ring/30`},[y(c(`input`,{"onUpdate:modelValue":f[0]||=e=>h(J).type=e,type:`radio`,name:`type`,value:t,class:`ih:sr-only`},null,8,P),[[g,h(J).type]]),l(m(e.toLowerCase()),1)]))),128))])]),u(h(w),{id:`ka-title`,label:`Titel`,error:h(J).errors.title},{default:v(()=>[u(h(T),{id:`ka-title`,modelValue:h(J).title,"onUpdate:modelValue":f[1]||=e=>h(J).title=e,maxlength:`120`,placeholder:`z. B. Kinderfahrrad 20 Zoll, blau`},null,8,[`modelValue`])]),_:1},8,[`error`]),u(h(w),{id:`ka-category`,label:`Kategorie`,error:h(J).errors.category},{default:v(()=>[y(c(`select`,{id:`ka-category`,"onUpdate:modelValue":f[2]||=e=>h(J).category=e,class:`ih:h-9 ih:w-full ih:rounded-md ih:border ih:border-input ih:bg-card ih:px-2 ih:text-sm`},[f[13]||=c(`option`,{value:``,disabled:``},`Bitte wählen`,-1),(d(!0),s(r,null,p(e.categories,(e,t)=>(d(),s(`option`,{key:t,value:t},m(e),9,F))),128))],512),[[_,h(J).category]])]),_:1},8,[`error`]),u(h(w),{id:`ka-description`,label:`Beschreibung`,error:h(J).errors.description,hint:`Zustand, Maße, Abholung – alles, was Interessierte wissen möchten.`},{default:v(()=>[u(h(te),{id:`ka-description`,modelValue:h(J).description,"onUpdate:modelValue":f[3]||=e=>h(J).description=e,rows:`6`,maxlength:`5000`},null,8,[`modelValue`])]),_:1},8,[`error`]),ie.value?(d(),s(`div`,I,[u(h(w),{id:`ka-price`,label:h(J).type===`search`?`Budget (optional)`:`Preis in € (leer = auf Anfrage)`,error:h(J).errors.price},{default:v(()=>[u(h(T),{id:`ka-price`,modelValue:h(J).price,"onUpdate:modelValue":f[4]||=e=>h(J).price=e,inputmode:`decimal`,placeholder:`z. B. 25 oder 12,50`},null,8,[`modelValue`])]),_:1},8,[`label`,`error`]),h(J).type===`sell`?(d(),s(`label`,L,[u(h(O),{modelValue:h(J).negotiable,"onUpdate:modelValue":f[5]||=e=>h(J).negotiable=e},null,8,[`modelValue`]),f[14]||=l(` Verhandlungsbasis (VB)`,-1)])):o(``,!0)])):o(``,!0),c(`div`,R,[u(h(w),{id:`ka-location`,label:`Ort bzw. Abholung`,error:h(J).errors.location},{default:v(()=>[u(h(T),{id:`ka-location`,modelValue:h(J).location,"onUpdate:modelValue":f[6]||=e=>h(J).location=e,maxlength:`120`,placeholder:`z. B. Haus A oder Mainz-Gonsenheim`},null,8,[`modelValue`])]),_:1},8,[`error`]),u(h(w),{id:`ka-phone`,label:`Telefon (optional)`,error:h(J).errors.phone,hint:`Wird in der Anzeige gezeigt.`},{default:v(()=>[u(h(T),{id:`ka-phone`,modelValue:h(J).phone,"onUpdate:modelValue":f[7]||=e=>h(J).phone=e,type:`tel`,maxlength:`40`},null,8,[`modelValue`])]),_:1},8,[`error`])])])]),_:1}),u(h(D),{title:`Fotos (${Q.value}/${e.maxPhotos})`},{default:v(()=>[c(`div`,{class:`ih:grid ih:grid-cols-3 ih:gap-3 ih:sm:grid-cols-4`,onDragover:f[9]||=b(()=>{},[`prevent`]),onDrop:f[10]||=b(e=>$([...e.dataTransfer.files]),[`prevent`])},[(d(!0),s(r,null,p(Y.value,e=>(d(),s(`div`,{key:e.id,class:`ih:relative ih:aspect-[4/3] ih:overflow-hidden ih:rounded-md ih:border`},[c(`img`,{src:e.url,alt:``,class:`ih:size-full ih:object-cover`},null,8,z),c(`button`,{type:`button`,class:`ih:absolute ih:top-1 ih:right-1 ih:grid ih:size-6 ih:place-items-center ih:rounded-full ih:bg-foreground/75 ih:text-background`,"aria-label":`Foto entfernen`,onClick:t=>oe(e)},[u(h(A),{class:`ih:size-3.5`})],8,B)]))),128)),(d(!0),s(r,null,p(X.value,(e,t)=>(d(),s(`div`,{key:e,class:`ih:relative ih:aspect-[4/3] ih:overflow-hidden ih:rounded-md ih:border`},[c(`img`,{src:e,alt:``,class:`ih:size-full ih:object-cover`},null,8,V),c(`button`,{type:`button`,class:`ih:absolute ih:top-1 ih:right-1 ih:grid ih:size-6 ih:place-items-center ih:rounded-full ih:bg-foreground/75 ih:text-background`,"aria-label":`Foto entfernen`,onClick:e=>ae(t)},[u(h(A),{class:`ih:size-3.5`})],8,H)]))),128)),Q.valueZ.value?.click()},[u(h(re),{class:`ih:size-6`}),f[15]||=l(` Fotos hinzufügen `,-1)])):o(``,!0)],32),c(`input`,{ref_key:`fileInput`,ref:Z,type:`file`,accept:`image/*`,multiple:``,class:`ih:hidden`,onChange:f[11]||=e=>{$([...e.target.files]),e.target.value=``}},null,544),h(J).errors.photos||h(J).errors[`photos.0`]?(d(),s(`p`,U,m(h(J).errors.photos||h(J).errors[`photos.0`]),1)):o(``,!0),f[16]||=c(`p`,{class:`ih:mt-3 ih:text-xs ih:text-muted-foreground`},`Das erste Foto erscheint in der Übersicht. Fotos sind nur für angemeldete Mitarbeitende sichtbar.`,-1)]),_:1},8,[`title`]),c(`div`,W,[u(h(C),{type:`submit`,disabled:h(J).processing},{default:v(()=>[h(J).processing?(d(),a(h(n),{key:0,class:`ih:animate-spin`})):o(``,!0),l(` `+m(h(q)?`Speichern`:`Zur Freigabe einreichen`),1)]),_:1},8,[`disabled`]),u(h(C),{variant:`ghost`,"as-child":``},{default:v(()=>[u(h(x),{href:h(q)?`/kleinanzeigen/meine`:`/kleinanzeigen`},{default:v(()=>[u(h(t)),f[17]||=l(` Abbrechen`,-1)]),_:1},8,[`href`])]),_:1}),c(`p`,G,m(h(q)?ce.value?`Änderungen an Inhalt oder Fotos werden erneut geprüft.`:``:`Die Moderation prüft Ihre Anzeige; danach ist sie 30 Tage online.`),1)])],32)]),_:1},8,[`title`]))}};export{K 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..3e0a3e4 --- /dev/null +++ b/dist/pages/Index.js @@ -0,0 +1 @@ +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{t}from"../chunks/ListingCard-DfH_TzXE.js";import{t as n}from"../chunks/heart-CyCnSX5a.js";import{t as ee}from"../chunks/plus-CThDQH9c.js";import{t as te}from"../chunks/shield-check-CrHENMih.js";import{Fragment as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,createVNode as l,normalizeClass as u,openBlock as d,ref as ne,renderList as f,toDisplayString as p,unref as m,vModelText as h,watch as g,withCtx as _,withDirectives as re}from"vue";import{Link as v,router as ie,usePage as y}from"@inertiajs/vue3";import{AppLayout as b,Button as x,EmptyState as S,PageHeader as C,toast as w}from"@inhaus/ui";var T=e({name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]}),E=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`}]]}),D=e({name:`shopping-bag`,size:24,node:[[`path`,{d:`M16 10a4 4 0 0 1-8 0`,key:`1ltviw`}],[`path`,{d:`M3.103 6.034h17.794`,key:`awc11p`}],[`path`,{d:`M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z`,key:`o988cm`}]]}),O={key:0,class:`ih:rounded-full ih:bg-brand ih:px-1.5 ih:text-[11px] ih:text-brand-foreground`},k={key:0,class:`ih:text-muted-foreground`},A={class:`ih:grid ih:gap-6 ih:lg:grid-cols-[15rem_minmax(0,1fr)]`},j={class:`ih:grid ih:content-start ih:gap-5`},M={class:`ih:relative`},N={"aria-label":`Art`,class:`ih:flex ih:flex-wrap ih:gap-1.5`},P=[`aria-pressed`],F=[`aria-pressed`,`onClick`],I={"aria-label":`Kategorien`,class:`ih:hidden ih:lg:block`},L={class:`ih:grid ih:gap-0.5 ih:text-sm`},R=[`onClick`],ae={class:`ih:text-xs ih:text-muted-foreground ih:tabular-nums`},z=[`value`],B=[`value`],V={class:`ih:min-w-0`},H={class:`ih:mb-4 ih:flex ih:flex-wrap ih:items-center ih:gap-3`},U={class:`ih:flex-1 ih:text-sm ih:text-muted-foreground`},W=[`aria-pressed`],G=[`value`],K=[`value`],q={key:0,class:`ih:grid ih:grid-cols-2 ih:gap-3 ih:sm:gap-4 ih:md:grid-cols-3 ih:xl:grid-cols-4`},J={key:1,class:`ih:rounded-lg ih:border ih:bg-card`},oe={key:2,class:`ih:mt-6 ih:flex ih:items-center ih:justify-between ih:text-sm`,"aria-label":`Seiten`},se={key:1},ce={class:`ih:text-muted-foreground`},le={key:3},Y={__name:`Index`,props:{listings:{type:Array,required:!0},pagination:{type:Object,required:!0},filters:{type:Object,required:!0},types:{type:Object,required:!0},categories:{type:Object,required:!0},counts:{type:Object,default:()=>({})},pending:{type:Number,default:null},mine:{type:Number,default:0}},setup(e){let Y=e,X=y();g(()=>X.props.flash?.status,e=>e&&w.success(e),{immediate:!0});let Z=ne(Y.filters.q),Q;g(Z,e=>{clearTimeout(Q),Q=setTimeout(()=>$({q:e}),350)});function $(e){let t={...Y.filters,...e};ie.get(`/kleinanzeigen`,Object.fromEntries(Object.entries(t).filter(([e,t])=>t&&(e!==`sortierung`||t!==`neu`))),{preserveState:!0,preserveScroll:!0})}let ue={neu:`Neueste zuerst`,preis:`Preis aufsteigend`,"preis-ab":`Preis absteigend`};return(ne,g)=>(d(),i(m(b),{title:`Kleinanzeigen`},{default:_(()=>[l(m(C),{title:`Kleinanzeigen`,description:`Von Kolleginnen und Kollegen für Kolleginnen und Kollegen – verkaufen, verschenken, suchen, tauschen.`},{actions:_(()=>[e.pending===null?a(``,!0):(d(),i(m(x),{key:0,variant:`outline`,"as-child":``},{default:_(()=>[l(m(v),{href:`/kleinanzeigen/moderation`},{default:_(()=>[l(m(te)),g[6]||=c(` Freigabe`,-1),e.pending?(d(),o(`span`,O,p(e.pending),1)):a(``,!0)]),_:1})]),_:1})),l(m(x),{variant:`outline`,"as-child":``},{default:_(()=>[l(m(v),{href:`/kleinanzeigen/meine`},{default:_(()=>[l(m(T)),g[7]||=c(` Meine Anzeigen`,-1),e.mine?(d(),o(`span`,k,`(`+p(e.mine)+`)`,1)):a(``,!0)]),_:1})]),_:1}),l(m(x),{"as-child":``},{default:_(()=>[l(m(v),{href:`/kleinanzeigen/neu`},{default:_(()=>[l(m(ee)),g[8]||=c(` Anzeige aufgeben`,-1)]),_:1})]),_:1})]),_:1}),s(`div`,A,[s(`aside`,j,[s(`div`,M,[l(m(E),{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`}),re(s(`input`,{"onUpdate:modelValue":g[0]||=e=>Z.value=e,type:`search`,placeholder:`Suchen`,"aria-label":`Anzeigen durchsuchen`,class:`ih:h-10 ih:w-full ih:rounded-md ih:border ih:border-input ih:bg-card ih:pr-3 ih:pl-8 ih:text-sm ih:shadow-xs ih:focus-visible:ring-3 ih:focus-visible:ring-ring/30 ih:focus-visible:outline-none`},null,512),[[h,Z.value]])]),s(`nav`,N,[s(`button`,{type:`button`,class:u([`ih:rounded-full ih:border ih:px-3 ih:py-1 ih:text-[13px]`,e.filters.typ?`ih:bg-card ih:hover:bg-accent`:`ih:border-brand ih:bg-brand ih:text-brand-foreground`]),"aria-pressed":!e.filters.typ,onClick:g[1]||=e=>$({typ:null})},`Alle`,10,P),(d(!0),o(r,null,f(e.types,(t,n)=>(d(),o(`button`,{key:n,type:`button`,class:u([`ih:rounded-full ih:border ih:px-3 ih:py-1 ih:text-[13px]`,e.filters.typ===n?`ih:border-brand ih:bg-brand ih:text-brand-foreground`:`ih:bg-card ih:hover:bg-accent`]),"aria-pressed":e.filters.typ===n,onClick:e=>$({typ:n})},p(t),11,F))),128))]),s(`nav`,I,[g[9]||=s(`h2`,{class:`ih:mb-1.5 ih:text-xs ih:font-semibold ih:tracking-wider ih:text-muted-foreground ih:uppercase`},`Kategorien`,-1),s(`ul`,L,[s(`li`,null,[s(`button`,{type:`button`,class:u([`ih:flex ih:w-full ih:justify-between ih:rounded ih:px-2 ih:py-1.5 ih:text-left`,e.filters.kategorie?`ih:hover:bg-accent`:`ih:bg-brand-soft ih:font-medium ih:text-brand-text`]),onClick:g[2]||=e=>$({kategorie:null})},`Alle Kategorien`,2)]),(d(!0),o(r,null,f(e.categories,(t,n)=>(d(),o(`li`,{key:n},[s(`button`,{type:`button`,class:u([`ih:flex ih:w-full ih:justify-between ih:gap-2 ih:rounded ih:px-2 ih:py-1.5 ih:text-left`,e.filters.kategorie===n?`ih:bg-brand-soft ih:font-medium ih:text-brand-text`:`ih:hover:bg-accent`]),onClick:e=>$({kategorie:n})},[s(`span`,null,p(t),1),s(`span`,ae,p(e.counts[n]??0),1)],10,R)]))),128))])]),s(`select`,{class:`ih:h-10 ih:rounded-md ih:border ih:bg-card ih:px-2 ih:text-sm ih:lg:hidden`,"aria-label":`Kategorie`,value:e.filters.kategorie??``,onChange:g[3]||=e=>$({kategorie:e.target.value||null})},[g[10]||=s(`option`,{value:``},`Alle Kategorien`,-1),(d(!0),o(r,null,f(e.categories,(t,n)=>(d(),o(`option`,{key:n,value:n},p(t)+` (`+p(e.counts[n]??0)+`)`,9,B))),128))],40,z)]),s(`section`,V,[s(`div`,H,[s(`p`,U,p(e.pagination.total)+` `+p(e.pagination.total===1?`Anzeige`:`Anzeigen`),1),s(`button`,{type:`button`,class:u([`ih:inline-flex ih:items-center ih:gap-1.5 ih:rounded-md ih:border ih:px-3 ih:py-1.5 ih:text-sm`,e.filters.merkliste?`ih:border-brand ih:bg-brand-soft ih:text-brand-text`:`ih:bg-card ih:hover:bg-accent`]),"aria-pressed":e.filters.merkliste,onClick:g[4]||=t=>$({merkliste:e.filters.merkliste?null:1})},[l(m(n),{class:u([`ih:size-4`,e.filters.merkliste?`ih:fill-current`:``])},null,8,[`class`]),g[11]||=c(` Merkliste `,-1)],10,W),s(`select`,{class:`ih:h-9 ih:rounded-md ih:border ih:bg-card ih:px-2 ih:text-sm`,"aria-label":`Sortierung`,value:e.filters.sortierung,onChange:g[5]||=e=>$({sortierung:e.target.value})},[(d(),o(r,null,f(ue,(e,t)=>s(`option`,{key:t,value:t},p(e),9,K)),64))],40,G)]),e.listings.length?(d(),o(`div`,q,[(d(!0),o(r,null,f(e.listings,e=>(d(),i(t,{key:e.id,listing:e},null,8,[`listing`]))),128))])):(d(),o(`div`,J,[l(m(S),{icon:m(D),title:e.filters.q||e.filters.typ||e.filters.kategorie||e.filters.merkliste?`Keine passenden Anzeigen`:`Noch keine Anzeigen`,text:`Etwas übrig oder auf der Suche? Geben Sie die erste Anzeige auf.`},null,8,[`icon`,`title`])])),e.pagination.last>1?(d(),o(`nav`,oe,[e.pagination.prev?(d(),i(m(v),{key:0,href:e.pagination.prev,"preserve-scroll":``,class:`ih:font-medium ih:text-brand-text ih:hover:underline`},{default:_(()=>[...g[12]||=[c(`← Zurück`,-1)]]),_:1},8,[`href`])):(d(),o(`span`,se)),s(`span`,ce,`Seite `+p(e.pagination.current)+` von `+p(e.pagination.last),1),e.pagination.next?(d(),i(m(v),{key:2,href:e.pagination.next,"preserve-scroll":``,class:`ih:font-medium ih:text-brand-text ih:hover:underline`},{default:_(()=>[...g[13]||=[c(`Weiter →`,-1)]]),_:1},8,[`href`])):(d(),o(`span`,le))])):a(``,!0)])])]),_:1}))}};export{Y as default}; \ No newline at end of file diff --git a/dist/pages/Mine.js b/dist/pages/Mine.js new file mode 100644 index 0000000..8aa8615 --- /dev/null +++ b/dist/pages/Mine.js @@ -0,0 +1 @@ +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{t}from"../chunks/heart-CyCnSX5a.js";import{t as n}from"../chunks/image-off-BfSjK3tM.js";import{n as r,t as i}from"../chunks/trash-DzQOFBxr.js";import{t as a}from"../chunks/plus-CThDQH9c.js";import{Fragment as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createTextVNode as d,createVNode as f,normalizeClass as p,openBlock as m,renderList as h,toDisplayString as g,unref as _,watch as v,withCtx as y}from"vue";import{Link as b,router as x,usePage as S}from"@inertiajs/vue3";import{AppLayout as C,Button as w,EmptyState as T,PageHeader as E,formatDate as D,toast as O}from"@inhaus/ui";var k=e({name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]}),A=e({name:`check-check`,size:24,node:[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]}),j=e({name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]}),M=e({name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]}),N={key:0,class:`ih:grid ih:gap-3`},P=[`src`],F={key:1,class:`ih:grid ih:size-full ih:place-items-center ih:text-muted-foreground`},I={class:`ih:min-w-0 ih:flex-1`},L={class:`ih:flex ih:flex-wrap ih:items-center ih:gap-2`},R={key:0,class:`ih:rounded ih:bg-foreground ih:px-1.5 ih:py-0.5 ih:text-[11px] ih:font-medium ih:text-background`},z={class:`ih:mt-0.5 ih:flex ih:flex-wrap ih:items-center ih:gap-x-3 ih:text-xs ih:text-muted-foreground`},B={key:0,class:`ih:inline-flex ih:items-center ih:gap-1`},V={key:1,class:`ih:inline-flex ih:items-center ih:gap-1`},H={key:0,class:`ih:mt-1 ih:text-xs ih:text-destructive`},U={class:`ih:flex ih:shrink-0 ih:flex-wrap ih:gap-1`},W={key:1,class:`ih:rounded-lg ih:border ih:bg-card`},G={__name:`Mine`,props:{listings:{type:Array,required:!0}},setup(e){let G=S();v(()=>G.props.flash?.status,e=>e&&O.success(e),{immediate:!0});let K=(e,t)=>x.post(`/kleinanzeigen/${e.id}/${t}`,{},{preserveScroll:!0}),q=e=>window.confirm(`„${e.title}“ löschen?`)&&x.delete(`/kleinanzeigen/${e.id}`,{preserveScroll:!0}),J={pending:`ih:bg-accent ih:text-accent-foreground`,active:`ih:bg-brand-soft ih:text-brand-text`,rejected:`ih:bg-destructive/10 ih:text-destructive`,done:`ih:bg-muted ih:text-muted-foreground`,expired:`ih:bg-muted ih:text-muted-foreground`};return(v,x)=>(m(),s(_(C),{title:`Meine Anzeigen`},{default:y(()=>[f(_(E),{title:`Meine Anzeigen`,breadcrumbs:[{label:`Kleinanzeigen`,href:`/kleinanzeigen`}]},{actions:y(()=>[f(_(w),{"as-child":``},{default:y(()=>[f(_(b),{href:`/kleinanzeigen/neu`},{default:y(()=>[f(_(a)),x[0]||=d(` Anzeige aufgeben`,-1)]),_:1})]),_:1})]),_:1}),e.listings.length?(m(),l(`ul`,N,[(m(!0),l(o,null,h(e.listings,e=>(m(),l(`li`,{key:e.id,class:`ih:flex ih:flex-wrap ih:items-center ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-3 ih:shadow-xs ih:sm:flex-nowrap`},[f(_(b),{href:e.url,class:`ih:block ih:size-20 ih:shrink-0 ih:overflow-hidden ih:rounded-md ih:bg-muted`},{default:y(()=>[e.thumb_url?(m(),l(`img`,{key:0,src:e.thumb_url,alt:``,class:`ih:size-full ih:object-cover`},null,8,P)):(m(),l(`span`,F,[f(_(n),{class:`ih:size-6`})]))]),_:2},1032,[`href`]),u(`div`,I,[u(`div`,L,[f(_(b),{href:e.url,class:`ih:font-medium ih:hover:underline`},{default:y(()=>[d(g(e.title),1)]),_:2},1032,[`href`]),u(`span`,{class:p([`ih:rounded ih:px-1.5 ih:py-0.5 ih:text-[11px] ih:font-medium`,J[e.status]])},g(e.status_label),3),e.reserved?(m(),l(`span`,R,`Reserviert`)):c(``,!0)]),u(`p`,z,[u(`span`,null,g([e.type_label,e.price].filter(Boolean).join(` · `)),1),e.status===`active`&&e.expires_at?(m(),l(`span`,B,[f(_(k),{class:`ih:size-3`}),d(` bis `+g(_(D)(e.expires_at)),1)])):c(``,!0),e.favorites?(m(),l(`span`,V,[f(_(t),{class:`ih:size-3`}),d(` `+g(e.favorites)+`× gemerkt`,1)])):c(``,!0)]),e.status===`rejected`&&e.review_note?(m(),l(`p`,H,`Hinweis: `+g(e.review_note),1)):c(``,!0)]),u(`div`,U,[[`active`,`expired`].includes(e.status)?(m(),s(_(w),{key:0,variant:`outline`,size:`sm`,onClick:t=>K(e,`verlaengern`)},{default:y(()=>[f(_(j)),x[1]||=d(` Verlängern`,-1)]),_:1},8,[`onClick`])):c(``,!0),e.status===`active`?(m(),s(_(w),{key:1,variant:`ghost`,size:`sm`,onClick:t=>K(e,`reserviert`)},{default:y(()=>[f(_(M)),d(` `+g(e.reserved?`Nicht reserviert`:`Reserviert`),1)]),_:2},1032,[`onClick`])):c(``,!0),e.status===`active`?(m(),s(_(w),{key:2,variant:`ghost`,size:`sm`,onClick:t=>K(e,`erledigt`)},{default:y(()=>[f(_(A)),x[2]||=d(` Erledigt`,-1)]),_:1},8,[`onClick`])):c(``,!0),e.status===`done`?c(``,!0):(m(),s(_(w),{key:3,variant:`ghost`,size:`icon`,"aria-label":`${e.title} bearbeiten`,"as-child":``},{default:y(()=>[f(_(b),{href:e.edit_url},{default:y(()=>[f(_(r))]),_:1},8,[`href`])]),_:2},1032,[`aria-label`])),f(_(w),{variant:`ghost`,size:`icon`,class:`ih:text-muted-foreground ih:hover:text-destructive`,"aria-label":`${e.title} löschen`,onClick:t=>q(e)},{default:y(()=>[f(_(i))]),_:1},8,[`aria-label`,`onClick`])])]))),128))])):(m(),l(`div`,W,[f(_(T),{icon:_(M),title:`Sie haben noch keine Anzeigen`,text:`Etwas übrig oder auf der Suche? Geben Sie Ihre erste Anzeige auf.`},null,8,[`icon`])]))]),_:1}))}};export{G as default}; \ No newline at end of file diff --git a/dist/pages/Moderation.js b/dist/pages/Moderation.js new file mode 100644 index 0000000..e376495 --- /dev/null +++ b/dist/pages/Moderation.js @@ -0,0 +1 @@ +import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{t}from"../chunks/flag-DsBVcwMd.js";import{t as n}from"../chunks/image-off-BfSjK3tM.js";import{Fragment as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,createVNode as l,openBlock as u,ref as d,renderList as f,toDisplayString as p,unref as m,watch as h,withCtx as g}from"vue";import{Link as _,router as v,usePage as y}from"@inertiajs/vue3";import{AppLayout as b,Button as x,EmptyState as S,PageHeader as C,Panel as w,Textarea as T,toast as E}from"@inhaus/ui";var D=e({name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]}),O=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`}]]}),k={class:`ih:-mx-5 ih:divide-y ih:border-t`},A={class:`ih:min-w-0 ih:flex-1`},j={class:`ih:text-xs ih:text-muted-foreground`},M={key:1,class:`ih:grid ih:gap-4`},N={class:`ih:grid ih:grid-cols-3 ih:content-start ih:gap-1 ih:md:grid-cols-2`},P=[`src`],F={key:0,class:`ih:col-span-2 ih:grid ih:aspect-[4/3] ih:place-items-center ih:rounded ih:bg-muted ih:text-muted-foreground`},I={class:`ih:min-w-0`},L={class:`ih:text-xs ih:text-muted-foreground`},R={key:0,class:`ih:font-medium ih:text-brand-text`},z={class:`ih:mt-2 ih:line-clamp-4 ih:text-sm ih:whitespace-pre-line`},B={key:1,class:`ih:mt-3 ih:grid ih:gap-2`},V={class:`ih:flex ih:gap-2`},H={key:2,class:`ih:mt-3 ih:flex ih:gap-2`},U={key:2,class:`ih:rounded-lg ih:border ih:bg-card`},W={__name:`Moderation`,props:{pending:{type:Array,required:!0},reported:{type:Array,required:!0}},setup(e){let W=y();h(()=>W.props.flash?.status,e=>e&&E.success(e),{immediate:!0});let G=d({}),K=d(null),q=e=>v.post(`/kleinanzeigen/${e.id}/freigeben`,{},{preserveScroll:!0});function J(e){v.post(`/kleinanzeigen/${e.id}/zurueckgeben`,{note:G.value[e.id]??``},{preserveScroll:!0,onSuccess:()=>K.value=null})}let Y=(e,t)=>v.post(`/kleinanzeigen/${e.id}/meldungen`,{action:t},{preserveScroll:!0});return(d,h)=>(u(),i(m(b),{title:`Kleinanzeigen – Freigabe`},{default:g(()=>[l(m(C),{title:`Freigabe`,description:`Neue und geänderte Anzeigen prüfen. Die anbietende Person bekommt Bescheid.`,breadcrumbs:[{label:`Kleinanzeigen`,href:`/kleinanzeigen`}]}),e.reported.length?(u(),i(m(w),{key:0,title:`Gemeldet`,class:`ih:mb-6`},{default:g(()=>[s(`ul`,k,[(u(!0),o(r,null,f(e.reported,e=>(u(),o(`li`,{key:e.id,class:`ih:flex ih:flex-wrap ih:items-center ih:gap-3 ih:px-5 ih:py-3`},[l(m(t),{class:`ih:size-4 ih:shrink-0 ih:text-destructive`}),s(`div`,A,[l(m(_),{href:e.url,class:`ih:font-medium ih:hover:underline`},{default:g(()=>[c(p(e.title),1)]),_:2},1032,[`href`]),s(`p`,j,p(e.seller)+` · `+p(e.reasons.join(` / `)),1)]),l(m(x),{size:`sm`,variant:`outline`,onClick:t=>Y(e,`keep`)},{default:g(()=>[...h[1]||=[c(`In Ordnung`,-1)]]),_:1},8,[`onClick`]),l(m(x),{size:`sm`,variant:`outline`,class:`ih:text-destructive ih:hover:text-destructive`,onClick:t=>Y(e,`remove`)},{default:g(()=>[...h[2]||=[c(`Offline nehmen`,-1)]]),_:1},8,[`onClick`])]))),128))])]),_:1})):a(``,!0),e.pending.length?(u(),o(`div`,M,[(u(!0),o(r,null,f(e.pending,e=>(u(),o(`article`,{key:e.id,class:`ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-4 ih:shadow-xs ih:md:grid-cols-[12rem_minmax(0,1fr)]`},[s(`div`,N,[(u(!0),o(r,null,f(e.photos.slice(0,4),e=>(u(),o(`img`,{key:e.id,src:e.thumb_url,alt:``,class:`ih:aspect-[4/3] ih:w-full ih:rounded ih:object-cover`},null,8,P))),128)),e.photos.length?a(``,!0):(u(),o(`span`,F,[l(m(n),{class:`ih:size-6`})]))]),s(`div`,I,[s(`p`,L,p(e.type_label)+` · `+p(e.category_label)+` · von `+p(e.seller?.name),1),l(m(_),{href:e.url,class:`ih:text-lg ih:font-semibold ih:hover:underline`},{default:g(()=>[c(p(e.title),1)]),_:2},1032,[`href`]),e.price?(u(),o(`p`,R,p(e.price),1)):a(``,!0),s(`p`,z,p(e.description),1),K.value===e.id?(u(),o(`div`,B,[l(m(T),{modelValue:G.value[e.id],"onUpdate:modelValue":t=>G.value[e.id]=t,rows:`2`,maxlength:`500`,placeholder:`Begründung für die anbietende Person`,"aria-label":`Begründung`},null,8,[`modelValue`,`onUpdate:modelValue`]),s(`div`,V,[l(m(x),{size:`sm`,disabled:!(G.value[e.id]??``).trim(),onClick:t=>J(e)},{default:g(()=>[...h[3]||=[c(`Zurückgeben`,-1)]]),_:1},8,[`disabled`,`onClick`]),l(m(x),{size:`sm`,variant:`ghost`,onClick:h[0]||=e=>K.value=null},{default:g(()=>[...h[4]||=[c(`Abbrechen`,-1)]]),_:1})])])):(u(),o(`div`,H,[l(m(x),{size:`sm`,onClick:t=>q(e)},{default:g(()=>[l(m(D)),h[5]||=c(` Freigeben`,-1)]),_:1},8,[`onClick`]),l(m(x),{size:`sm`,variant:`outline`,onClick:t=>K.value=e.id},{default:g(()=>[l(m(O)),h[6]||=c(` Zurückgeben …`,-1)]),_:1},8,[`onClick`])]))])]))),128))])):(u(),o(`div`,U,[l(m(S),{icon:m(D),title:`Alles erledigt`,text:`Keine Anzeigen warten auf Freigabe.`},null,8,[`icon`])]))]),_:1}))}};export{W 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..22067f0 --- /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 ee}from"../chunks/ListingCard-DfH_TzXE.js";import{n,t as te}from"../chunks/loader-circle-DBP4Qhm5.js";import{t as r}from"../chunks/flag-DsBVcwMd.js";import{t as i}from"../chunks/heart-CyCnSX5a.js";import{t as ne}from"../chunks/image-off-BfSjK3tM.js";import{n as re,t as ie}from"../chunks/trash-DzQOFBxr.js";import{t as ae}from"../chunks/shield-check-CrHENMih.js";import{Fragment as a,computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createTextVNode as d,createVNode as f,normalizeClass as p,openBlock as m,ref as h,renderList as g,resolveDynamicComponent as _,toDisplayString as v,unref as y,watch as oe,withCtx as b,withModifiers as se}from"vue";import{Link as x,router as S,useForm as C,usePage as ce}from"@inertiajs/vue3";import{AppLayout as le,Button as w,Dialog as T,DialogContent as E,DialogDescription as D,DialogFooter as O,DialogHeader as k,DialogTitle as A,PersonAvatar as j,Textarea as M,formatDate as N,toast as P}from"@inhaus/ui";var F=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`}]]}),I=e({name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]}),L=e({name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]}),R=e({name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]}),z=e({name:`phone`,size:24,node:[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]}),B={class:`ih:mb-4 ih:flex ih:items-center ih:justify-between ih:gap-3`},V={class:`ih:flex ih:gap-2`},H={key:0,class:`ih:mb-4 ih:rounded-md ih:border ih:bg-muted ih:px-4 ih:py-3 ih:text-sm`},U={class:`ih:grid ih:gap-6 ih:lg:grid-cols-[minmax(0,1fr)_22rem]`},W={class:`ih:grid ih:min-w-0 ih:content-start ih:gap-6`},ue={class:`ih:overflow-hidden ih:rounded-xl ih:border ih:bg-card`,"aria-label":`Fotos`},de={class:`ih:relative ih:flex ih:aspect-[4/3] ih:items-center ih:justify-center ih:bg-muted ih:sm:aspect-[16/10]`},fe=[`src`,`alt`],pe={class:`ih:absolute ih:right-3 ih:bottom-3 ih:rounded ih:bg-foreground/70 ih:px-2 ih:py-0.5 ih:text-xs ih:text-background ih:tabular-nums`},me={key:0,class:`ih:flex ih:gap-2 ih:overflow-x-auto ih:p-3`},he=[`aria-label`,`aria-current`,`onClick`],ge=[`src`],_e={class:`ih:rounded-xl ih:border ih:bg-card ih:p-5 ih:sm:p-6`},ve={class:`ih:flex ih:flex-wrap ih:items-center ih:gap-2 ih:text-xs`},ye={class:`ih:rounded ih:bg-brand-soft ih:px-2 ih:py-0.5 ih:font-semibold ih:text-brand-text`},be={class:`ih:text-muted-foreground`},xe={key:0,class:`ih:rounded ih:bg-foreground ih:px-2 ih:py-0.5 ih:font-semibold ih:text-background`},Se={class:`ih:mt-2 ih:text-2xl ih:font-semibold ih:tracking-tight ih:text-balance`},Ce={key:0,class:`ih:mt-1 ih:text-xl ih:font-semibold ih:text-brand-text`},we={class:`ih:mt-4 ih:flex ih:flex-wrap ih:gap-x-6 ih:gap-y-2 ih:text-sm ih:text-muted-foreground`},Te={key:0,class:`ih:flex ih:items-center ih:gap-1.5`},Ee={key:1,class:`ih:flex ih:items-center ih:gap-1.5`},De={class:`ih:text-[15px] ih:leading-relaxed ih:whitespace-pre-line`},Oe={class:`ih:grid ih:content-start ih:gap-4`},ke={key:0,class:`ih:rounded-xl ih:border ih:bg-card ih:p-5`},Ae={class:`ih:min-w-0`},je={class:`ih:block ih:font-semibold`},Me={class:`ih:block ih:truncate ih:text-[13px] ih:text-muted-foreground`},Ne={key:0,class:`ih:mt-2 ih:text-xs ih:text-muted-foreground`},Pe={for:`kontakt`,class:`ih:text-sm ih:font-medium`},Fe={key:0,class:`ih:text-[13px] ih:text-destructive`},Ie={class:`ih:text-xs ih:text-muted-foreground`},Le=[`href`],Re={key:1,class:`ih:flex ih:gap-2`},ze={key:2,class:`ih:flex ih:items-center ih:gap-2 ih:text-sm`},Be={key:1,class:`ih:mt-10`},Ve={class:`ih:grid ih:grid-cols-2 ih:gap-3 ih:md:grid-cols-4`},G={__name:`Show`,props:{listing:{type:Object,required:!0},more:{type:Array,default:()=>[]}},setup(e){let G=e,He=ce();oe(()=>He.props.flash?.status,e=>e&&P.success(e),{immediate:!0});let K=o(()=>G.listing),q=h(0),J=o(()=>K.value.photos[q.value]),Y=e=>q.value=(q.value+e+K.value.photos.length)%K.value.photos.length,X=C({message:`Hallo ${K.value.seller?.name?.split(` `)[0]??``}, ist „${K.value.title}“ noch zu haben?`}),Ue=()=>X.post(`/kleinanzeigen/${K.value.id}/kontakt`,{preserveScroll:!0,onSuccess:()=>X.reset()}),Z=h(!1),Q=C({reason:``}),We=()=>Q.post(`/kleinanzeigen/${K.value.id}/melden`,{preserveScroll:!0,onSuccess:()=>{Z.value=!1,Q.reset()}});function Ge(){S.visit(`/kleinanzeigen/${K.value.id}/merken`,{method:K.value.favorite?`delete`:`post`,preserveScroll:!0})}function Ke(){window.confirm(`Anzeige löschen?`)&&S.delete(`/kleinanzeigen/${K.value.id}`)}let $=o(()=>({pending:`Diese Anzeige wartet auf Freigabe und ist noch nicht öffentlich.`,rejected:`Diese Anzeige wurde nicht freigegeben.`,done:`Diese Anzeige ist erledigt.`,expired:`Diese Anzeige ist abgelaufen.`})[K.value.status]);return(o,h)=>(m(),s(y(le),{title:K.value.title},{default:b(()=>[u(`div`,B,[f(y(x),{href:`/kleinanzeigen`,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:b(()=>[f(y(n),{class:`ih:size-4`}),h[7]||=d(` Alle Kleinanzeigen`,-1)]),_:1}),u(`div`,V,[K.value.own?(m(),s(y(w),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:b(()=>[f(y(x),{href:`/kleinanzeigen/${K.value.id}/bearbeiten`},{default:b(()=>[f(y(re)),h[8]||=d(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):c(``,!0),K.value.own||K.value.can_moderate?(m(),s(y(w),{key:1,variant:`ghost`,size:`sm`,class:`ih:text-destructive ih:hover:text-destructive`,onClick:Ke},{default:b(()=>[f(y(ie)),h[9]||=d(` Löschen`,-1)]),_:1})):c(``,!0)])]),$.value?(m(),l(`p`,H,[d(v($.value),1),K.value.review_note?(m(),l(a,{key:0},[d(` Hinweis: `+v(K.value.review_note),1)],64)):c(``,!0)])):c(``,!0),u(`div`,U,[u(`div`,W,[u(`section`,ue,[u(`div`,de,[J.value?(m(),l(`img`,{key:0,src:J.value.url,alt:`${K.value.title} – Foto ${q.value+1}`,class:`ih:max-h-full ih:max-w-full ih:object-contain`},null,8,fe)):(m(),s(y(ne),{key:1,class:`ih:size-10 ih:text-muted-foreground`,"stroke-width":1.5})),K.value.photos.length>1?(m(),l(a,{key:2},[u(`button`,{type:`button`,class:`ih:absolute ih:left-3 ih:grid ih:size-10 ih:place-items-center ih:rounded-full ih:bg-card/90 ih:shadow`,"aria-label":`Vorheriges Foto`,onClick:h[0]||=e=>Y(-1)},[f(y(n),{class:`ih:size-5`})]),u(`button`,{type:`button`,class:`ih:absolute ih:right-3 ih:grid ih:size-10 ih:place-items-center ih:rounded-full ih:bg-card/90 ih:shadow`,"aria-label":`Nächstes Foto`,onClick:h[1]||=e=>Y(1)},[f(y(I),{class:`ih:size-5`})]),u(`span`,pe,v(q.value+1)+` / `+v(K.value.photos.length),1)],64)):c(``,!0)]),K.value.photos.length>1?(m(),l(`div`,me,[(m(!0),l(a,null,g(K.value.photos,(e,t)=>(m(),l(`button`,{key:e.id,type:`button`,class:p([`ih:size-16 ih:shrink-0 ih:overflow-hidden ih:rounded-md ih:border-2`,t===q.value?`ih:border-brand`:`ih:border-transparent ih:opacity-70 ih:hover:opacity-100`]),"aria-label":`Foto ${t+1}`,"aria-current":t===q.value,onClick:e=>q.value=t},[u(`img`,{src:e.thumb_url,alt:``,class:`ih:size-full ih:object-cover`},null,8,ge)],10,he))),128))])):c(``,!0)]),u(`section`,_e,[u(`div`,ve,[u(`span`,ye,v(K.value.type_label),1),u(`span`,be,v(K.value.category_label),1),K.value.reserved?(m(),l(`span`,xe,`Reserviert`)):c(``,!0)]),u(`h1`,Se,v(K.value.title),1),K.value.price?(m(),l(`p`,Ce,v(K.value.price),1)):c(``,!0),u(`dl`,we,[K.value.location?(m(),l(`div`,Te,[h[10]||=u(`dt`,{class:`ih:sr-only`},`Ort`,-1),f(y(t),{class:`ih:size-4`,"aria-hidden":`true`}),u(`dd`,null,v(K.value.location),1)])):c(``,!0),K.value.published_at?(m(),l(`div`,Ee,[h[11]||=u(`dt`,{class:`ih:sr-only`},`Eingestellt`,-1),f(y(F),{class:`ih:size-4`,"aria-hidden":`true`}),u(`dd`,null,`seit `+v(y(N)(K.value.published_at)),1)])):c(``,!0)]),h[12]||=u(`h2`,{class:`ih:mt-6 ih:mb-2 ih:text-sm ih:font-semibold`},`Beschreibung`,-1),u(`p`,De,v(K.value.description),1)])]),u(`aside`,Oe,[K.value.seller?(m(),l(`section`,ke,[f(y(x),{href:`/personen/${K.value.seller.id}`,class:`ih:flex ih:items-center ih:gap-3 ih:rounded-md ih:hover:bg-accent/50`},{default:b(()=>[f(y(j),{person:K.value.seller,class:`ih:size-12`},null,8,[`person`]),u(`span`,Ae,[u(`span`,je,v(K.value.seller.name),1),u(`span`,Me,v([K.value.seller.department,K.value.seller.location].filter(Boolean).join(` · `)),1)])]),_:1},8,[`href`]),K.value.seller.listings>1?(m(),l(`p`,Ne,v(K.value.seller.listings)+` Anzeigen online`,1)):c(``,!0),K.value.contact?(m(),l(`form`,{key:1,class:`ih:mt-4 ih:grid ih:gap-2 ih:border-t ih:pt-4`,onSubmit:se(Ue,[`prevent`])},[u(`label`,Pe,`Nachricht an `+v(K.value.seller.name.split(` `)[0]),1),f(y(M),{id:`kontakt`,modelValue:y(X).message,"onUpdate:modelValue":h[2]||=e=>y(X).message=e,rows:`4`,maxlength:`2000`},null,8,[`modelValue`]),y(X).errors.message?(m(),l(`p`,Fe,v(y(X).errors.message),1)):c(``,!0),f(y(w),{type:`submit`,disabled:y(X).processing||!y(X).message.trim()},{default:b(()=>[y(X).processing?(m(),s(y(te),{key:0,class:`ih:animate-spin`})):(m(),s(_(K.value.contact===`chat`?y(R):y(L)),{key:1})),d(` `+v(K.value.contact===`chat`?`Im Chat schreiben`:`Per E-Mail schreiben`),1)]),_:1},8,[`disabled`]),u(`p`,Ie,v(K.value.contact===`chat`?`Öffnet ein Gespräch unter „Nachrichten“.`:`Die Antwort kommt per E-Mail; die Adresse der anbietenden Person bleibt verborgen.`),1)],32)):c(``,!0),K.value.phone?(m(),l(`a`,{key:2,href:`tel:${K.value.phone.replace(/[^0-9+]/g,``)}`,class:`ih:mt-3 ih:flex ih:items-center ih:gap-2 ih:text-sm ih:font-medium ih:text-brand-text ih:hover:underline`},[f(y(z),{class:`ih:size-4`}),d(` `+v(K.value.phone),1)],8,Le)):c(``,!0)])):c(``,!0),K.value.own?c(``,!0):(m(),l(`div`,Re,[f(y(w),{variant:`outline`,class:`ih:flex-1`,"aria-pressed":K.value.favorite,onClick:Ge},{default:b(()=>[f(y(i),{class:p(K.value.favorite?`ih:fill-current ih:text-brand-text`:``)},null,8,[`class`]),d(` `+v(K.value.favorite?`Gemerkt`:`Merken`),1)]),_:1},8,[`aria-pressed`]),f(y(w),{variant:`ghost`,class:`ih:text-muted-foreground`,onClick:h[3]||=e=>Z.value=!0},{default:b(()=>[f(y(r)),h[13]||=d(` Melden`,-1)]),_:1})])),K.value.can_moderate&&K.value.status===`pending`?(m(),l(`p`,ze,[f(y(ae),{class:`ih:size-4 ih:text-brand-text`}),h[15]||=d(),f(y(x),{href:`/kleinanzeigen/moderation`,class:`ih:font-medium ih:text-brand-text ih:hover:underline`},{default:b(()=>[...h[14]||=[d(`Zur Freigabe`,-1)]]),_:1})])):c(``,!0)])]),e.more.length?(m(),l(`section`,Be,[h[16]||=u(`h2`,{class:`ih:mb-4 ih:text-lg ih:font-semibold`},`Das könnte Sie auch interessieren`,-1),u(`div`,Ve,[(m(!0),l(a,null,g(e.more,e=>(m(),s(ee,{key:e.id,listing:e},null,8,[`listing`]))),128))])])):c(``,!0),f(y(T),{open:Z.value,"onUpdate:open":h[6]||=e=>Z.value=e},{default:b(()=>[f(y(E),{class:`ih:sm:max-w-md`},{default:b(()=>[f(y(k),null,{default:b(()=>[f(y(A),null,{default:b(()=>[...h[17]||=[d(`Anzeige melden`,-1)]]),_:1}),f(y(D),null,{default:b(()=>[...h[18]||=[d(`Was stimmt nicht? Die Moderation sieht sich die Anzeige an.`,-1)]]),_:1})]),_:1}),f(y(M),{modelValue:y(Q).reason,"onUpdate:modelValue":h[4]||=e=>y(Q).reason=e,rows:`3`,maxlength:`500`,placeholder:`z. B. unpassend, doppelt, kein Mitarbeiterangebot …`,"aria-label":`Grund`},null,8,[`modelValue`]),f(y(O),null,{default:b(()=>[f(y(w),{variant:`ghost`,onClick:h[5]||=e=>Z.value=!1},{default:b(()=>[...h[19]||=[d(`Abbrechen`,-1)]]),_:1}),f(y(w),{disabled:y(Q).processing||!y(Q).reason.trim(),onClick:We},{default:b(()=>[...h[20]||=[d(`Melden`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{G as default}; \ No newline at end of file diff --git a/dist/widgets/Latest.js b/dist/widgets/Latest.js new file mode 100644 index 0000000..f17fc2e --- /dev/null +++ b/dist/widgets/Latest.js @@ -0,0 +1 @@ +import{t as e}from"../chunks/ListingCard-DfH_TzXE.js";import{Fragment as t,createBlock as n,createElementBlock as r,createElementVNode as i,openBlock as a,renderList as o,unref as s,withCtx as c}from"vue";import{Panel as l}from"@inhaus/ui";var u={class:`ih:grid ih:grid-cols-2 ih:gap-2`},d={__name:`Latest`,props:{listings:{type:Array,required:!0}},setup(d){return(f,p)=>(a(),n(s(l),{title:`Kleinanzeigen`,"action-label":`Alle Anzeigen`,"action-href":`/kleinanzeigen`},{default:c(()=>[i(`div`,u,[(a(!0),r(t,null,o(d.listings,t=>(a(),n(e,{key:t.id,listing:t,compact:``},null,8,[`listing`]))),128))])]),_:1}))}};export{d 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..6da5cbc --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1712 @@ +{ + "name": "inhaus-plugin-kleinanzeigen", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "inhaus-plugin-kleinanzeigen", + "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..702aa7b --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "inhaus-plugin-kleinanzeigen", + "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..f805b25 --- /dev/null +++ b/plugin.json @@ -0,0 +1,14 @@ +{ + "slug": "kleinanzeigen", + "name": "Kleinanzeigen", + "version": "1.0.0", + "description": "Kleinanzeigen von Kolleginnen und Kollegen für Kolleginnen und Kollegen: verkaufen, verschenken, suchen, tauschen – mit Fotos, Merkliste und Freigabe durch die Moderation. Kontakt über das Chat-Plugin oder per E-Mail.", + "author": "Loheide", + "namespace": "Inhaus\\Plugins\\Kleinanzeigen\\", + "class": "Inhaus\\Plugins\\Kleinanzeigen\\KleinanzeigenPlugin", + "requires": { + "core": ">=0.39.1", + "php": ">=8.3" + }, + "update_url": "https://git.loheide.cloud/api/v1/repos/friloo/inhaus-plugin-kleinanzeigen/releases/latest" +} diff --git a/resources/css/style.css b/resources/css/style.css new file mode 100644 index 0000000..843a864 --- /dev/null +++ b/resources/css/style.css @@ -0,0 +1,3 @@ +/* Tailwind mit den Design-Tokens des Portals – Klassen mit Präfix „ih:“, z. B. ih:bg-brand, ih:text-muted-foreground, ih:rounded-lg */ +@import "../../inhaus-sdk/theme.css"; +@source "../js"; diff --git a/resources/js/components/ListingCard.vue b/resources/js/components/ListingCard.vue new file mode 100644 index 0000000..567b7d8 --- /dev/null +++ b/resources/js/components/ListingCard.vue @@ -0,0 +1,43 @@ + + + diff --git a/resources/js/editorial/EditorialListings.vue b/resources/js/editorial/EditorialListings.vue new file mode 100644 index 0000000..bf553ad --- /dev/null +++ b/resources/js/editorial/EditorialListings.vue @@ -0,0 +1,19 @@ + + + diff --git a/resources/js/pages/Editor.vue b/resources/js/pages/Editor.vue new file mode 100644 index 0000000..0adf665 --- /dev/null +++ b/resources/js/pages/Editor.vue @@ -0,0 +1,145 @@ + + +