diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e67728a..67990e08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ Neueste Version oben. Jeder Abschnitt beginnt mit `## MAJOR.MINOR.PATCH` und enthält kurze Stichpunkte für Anwenderinnen und Anwender – keine Commit-Texte. Der Self-Updater zeigt diese Abschnitte bei neuen Versionen an. +## 0.11.0 + +- **Neues Modul „Qualitätsmanagement“** (Menüpunkt „Qualitätsmanagement“, Adresse /qm): + - Startseite mit Kategorien (durch Linien getrennt) und farbigen Ordnerkacheln; jeder Ordner mit Farbe und Symbol – aus der Symbolauswahl oder selbst hochgeladen –, Unterordner übernehmen beides + - Ordnerseite mit Einführungstext, Ansprechpartner*innen (Foto und frei wählbare Profilfelder), Unterordnern und Dokumentenliste + - Einträge als Datei, Link oder Online-Formular; Liste mit Dokument, Version, Stand, Größe und Aktion + - Dateien: Lesefassung (PDF öffnet sich direkt im Portal) und optional eine bearbeitbare Vorlage; neue Fassungen schieben die bisherigen ins Archiv + - Eigene Suche nur im QM – auch im Text von PDF, Word, Excel und PowerPoint, mit Textausschnitt; eingescannte PDFs per Texterkennung, wenn der Server sie bietet + - Rollen lassen sich vom ganzen Modul ausschließen (z. B. Klient*innen); pflegen darf, wer „Qualitätsmanagement pflegen“ hat; Kategorien können auf Zielgruppen beschränkt werden + - Vorbereitet: Wiedervorlage, Verantwortliche, Lesebestätigungen +- Seitenkopf mit optionalem Symbol links; Dateityp-Symbol als gemeinsamer Baustein + ## 0.10.0 - **„Dokumente“ heißt jetzt „Downloads“** (Adresse /downloads, alte Links leiten weiter). Der Name „Dokumente“ ist für das kommende QM-Modul mit QM-Dokumenten und Formularen vorgesehen. Ordner, Dateien, Rechte, Sichtbarkeiten, Favoriten, Menüpunkte und eingebundene Blöcke werden beim Update automatisch übernommen diff --git a/app/Version.php b/app/Version.php index a947dd9b..ac5a5bbd 100644 --- a/app/Version.php +++ b/app/Version.php @@ -9,5 +9,5 @@ namespace App; */ final class Version { - public const VERSION = '0.10.0'; + public const VERSION = '0.11.0'; } diff --git a/composer.json b/composer.json index 8b696738..6b5fd001 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,7 @@ "laravel/framework": "^13.17", "league/commonmark": "^2.10", "onelogin/php-saml": "^4.3", + "smalot/pdfparser": "^2.12", "symfony/html-sanitizer": "^7.4" }, "require-dev": { diff --git a/composer.lock b/composer.lock index e0bca5ab..5e4b8b60 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6d9154cd3a1a14d3c801025c7efbeda5", + "content-hash": "72f7525a1e66b25ed25efb76099164be", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -5844,6 +5844,57 @@ ], "time": "2022-12-17T21:53:22+00:00" }, + { + "name": "smalot/pdfparser", + "version": "v2.12.5", + "source": { + "type": "git", + "url": "https://github.com/smalot/pdfparser.git", + "reference": "2cfa0d92bd557875c9f52a75fde0e8392302a354" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/smalot/pdfparser/zipball/2cfa0d92bd557875c9f52a75fde0e8392302a354", + "reference": "2cfa0d92bd557875c9f52a75fde0e8392302a354", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "ext-zlib": "*", + "php": ">=7.1", + "symfony/polyfill-mbstring": "^1.18" + }, + "type": "library", + "autoload": { + "psr-0": { + "Smalot\\PdfParser\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Sebastien MALOT", + "email": "sebastien@malot.fr" + } + ], + "description": "Pdf parser library. Can read and extract information from pdf file.", + "homepage": "https://www.pdfparser.org", + "keywords": [ + "extract", + "parse", + "parser", + "pdf", + "text" + ], + "support": { + "issues": "https://github.com/smalot/pdfparser/issues", + "source": "https://github.com/smalot/pdfparser/tree/v2.12.5" + }, + "time": "2026-04-17T11:37:58+00:00" + }, { "name": "spatie/invade", "version": "2.1.1", diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index 9267acbd..c2a4024f 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -102,6 +102,23 @@ ein Plugin (unter „Plugins“ abschaltbar); mehrere Verfahren gleichzeitig sin Nach der ersten Anmeldung zeigt das Formular unter „Zuletzt empfangene Angaben“, welche Attribute und Gruppen der Anbieter liefert. +## Qualitätsmanagement: Texterkennung (optional) + +Der Text von PDF-, Word-, Excel- und PowerPoint-Dateien wird ohne weitere Voraussetzungen +durchsuchbar gemacht. **Eingescannte PDFs** (Bilder ohne Textebene) brauchen eine +Texterkennung. Dafür gibt es kein Apache- oder PHP-Modul; das Portal ruft das Programm +**Tesseract** auf und wandelt PDF-Seiten mit `pdftoppm` (poppler-utils) oder PHP-Imagick in Bilder um. + +Auf einem eigenen Server (Debian/Ubuntu): + + apt install tesseract-ocr tesseract-ocr-deu poppler-utils + +Dann unter **Administration → Qualitätsmanagement → QM-Einstellungen** die Texterkennung +einschalten. Die Seite zeigt, was der Server bereitstellt. Erkannt wird im Hintergrund +(Hintergrundaufgaben), einige Dateien je Durchgang. PHP muss Programme starten dürfen +(`proc_open` nicht in `disable_functions`). Auf Shared Hosting ist das meist nicht möglich – +eingescannte PDFs sind dort nur über Titel und Beschreibung auffindbar. + ## Erscheinungsbild Unter **Administration → Portal → Erscheinungsbild** lassen sich Name, Logos, diff --git a/docs/PLAN.md b/docs/PLAN.md index 1c8ab885..0369610c 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -485,7 +485,7 @@ Kantinenplan, Ideenbox, Urlaubsanträge. | **4 – CMS** ✅ | Seitenbaum, Pagebuilder (Layout-, Inhalts-, Medien- und dynamische Blöcke, Sichtbarkeit je Block), Entwürfe, Versionen, Zeitsteuerung, Bearbeitungssperre, Freigaben; News-Freigabe-Workflow und Redaktion im Portal; Benachrichtigungen. Offen: Vorlagen und wiederverwendbare Blöcke | | **4b – Formulare & Umstieg** ✅ | Formular-Plugin (visueller Baukasten im Portal, Bedingungen, Uploads, anonyme Formulare, Mail + Backend, Ergebnis-Rechte je Formular und Rolle, CSV, Löschfristen; eingebunden per Pagebuilder-Block und unter Beiträgen, kein eigener Menüpunkt); WordPress-Import (Beiträge, Kategorien, Bilder, Seiten); E-Mail-Versand im Admin; anpassbare Startseite mit eigenen Kacheln; Geburtstage (optionales Plugin) | | **5 – Branding & Theming** ✅ | Vollständige Seite „Erscheinungsbild“: Logo-Varianten, Farben inkl. Farbtreue & Kontrastprüfung, Schriften, Form, Login-Seite, E-Mails, Live-Vorschau, Entwurf/Veröffentlichen, Export/Import | -| **6 – Weitere Plugins & IdPs** | ✅ Organigramm (aus Vorgesetzten, im Admin pflegbar), ✅ Downloads (Ordner mit vererbten Rechten und Sichtbarkeit, Versionen, Suche, Favoriten, Pagebuilder-Block – früher „Dokumente“); geplant: QM-Modul für QM-Dokumente und -Formulare; ✅ OIDC generisch, LDAP/AD, SAML 2 (als Plugins auf gemeinsamem Treiber-Unterbau); offen: Lasttests 5.000 User | +| **6 – Weitere Plugins & IdPs** | ✅ Organigramm (aus Vorgesetzten, im Admin pflegbar), ✅ Downloads (Ordner mit vererbten Rechten und Sichtbarkeit, Versionen, Suche, Favoriten, Pagebuilder-Block – früher „Dokumente“); ✅ Qualitätsmanagement (Kategorien, farbige Ordner mit Symbolen, Einführung, Ansprechpartner, Versionen mit Stand und Archiv, Volltextsuche inkl. OCR-Anbindung, PDF-Betrachter, Rollen-Ausschluss; vorbereitet: Wiedervorlage, Lesebestätigung); ✅ OIDC generisch, LDAP/AD, SAML 2 (als Plugins auf gemeinsamem Treiber-Unterbau); offen: Lasttests 5.000 User | | **7 – Plugin-SDK öffentlich** | Doku, Generator, Beispiel-Plugins (kein Plugin-Verzeichnis) | | **8 – Mobil** | REST-API (Sanctum), Web-Push, native App | diff --git a/plugins-core/downloads/resources/js/blocks/FolderBlock.vue b/plugins-core/downloads/resources/js/blocks/FolderBlock.vue index 7b77358f..05152bfa 100644 --- a/plugins-core/downloads/resources/js/blocks/FolderBlock.vue +++ b/plugins-core/downloads/resources/js/blocks/FolderBlock.vue @@ -1,7 +1,7 @@ + + diff --git a/plugins-core/qm/resources/js/components/ContactCard.vue b/plugins-core/qm/resources/js/components/ContactCard.vue new file mode 100644 index 00000000..22980c6a --- /dev/null +++ b/plugins-core/qm/resources/js/components/ContactCard.vue @@ -0,0 +1,28 @@ + + + diff --git a/plugins-core/qm/resources/js/components/EntryDialog.vue b/plugins-core/qm/resources/js/components/EntryDialog.vue new file mode 100644 index 00000000..79b1de58 --- /dev/null +++ b/plugins-core/qm/resources/js/components/EntryDialog.vue @@ -0,0 +1,135 @@ + + + diff --git a/plugins-core/qm/resources/js/components/EntryTable.vue b/plugins-core/qm/resources/js/components/EntryTable.vue new file mode 100644 index 00000000..3db624b6 --- /dev/null +++ b/plugins-core/qm/resources/js/components/EntryTable.vue @@ -0,0 +1,100 @@ + + + diff --git a/plugins-core/qm/resources/js/components/FilePick.vue b/plugins-core/qm/resources/js/components/FilePick.vue new file mode 100644 index 00000000..d4a3790c --- /dev/null +++ b/plugins-core/qm/resources/js/components/FilePick.vue @@ -0,0 +1,38 @@ + + + diff --git a/plugins-core/qm/resources/js/components/FolderTile.vue b/plugins-core/qm/resources/js/components/FolderTile.vue new file mode 100644 index 00000000..a9cacffc --- /dev/null +++ b/plugins-core/qm/resources/js/components/FolderTile.vue @@ -0,0 +1,40 @@ + + + diff --git a/plugins-core/qm/resources/js/components/PdfViewer.vue b/plugins-core/qm/resources/js/components/PdfViewer.vue new file mode 100644 index 00000000..8ac9b0d1 --- /dev/null +++ b/plugins-core/qm/resources/js/components/PdfViewer.vue @@ -0,0 +1,110 @@ + + + diff --git a/plugins-core/qm/resources/js/components/QmIcon.vue b/plugins-core/qm/resources/js/components/QmIcon.vue new file mode 100644 index 00000000..b715e081 --- /dev/null +++ b/plugins-core/qm/resources/js/components/QmIcon.vue @@ -0,0 +1,24 @@ + + + diff --git a/plugins-core/qm/resources/js/components/QmSearchBox.vue b/plugins-core/qm/resources/js/components/QmSearchBox.vue new file mode 100644 index 00000000..718feacf --- /dev/null +++ b/plugins-core/qm/resources/js/components/QmSearchBox.vue @@ -0,0 +1,23 @@ + + + diff --git a/plugins-core/qm/resources/js/format.js b/plugins-core/qm/resources/js/format.js new file mode 100644 index 00000000..badc47bc --- /dev/null +++ b/plugins-core/qm/resources/js/format.js @@ -0,0 +1,10 @@ +const dateFormat = new Intl.DateTimeFormat('de-DE', { day: '2-digit', month: '2-digit', year: 'numeric' }); + +export const formatStand = (date) => (date ? dateFormat.format(new Date(`${date}T12:00:00`)) : '–'); + +export const formatSize = (bytes) => { + if (!bytes) return '–'; + if (bytes >= 1024 * 1024) return `${(bytes / 1024 / 1024).toFixed(1).replace('.', ',')} MB`; + + return `${Math.max(1, Math.round(bytes / 1024))} KB`; +}; diff --git a/plugins-core/qm/resources/js/pages/Folder.vue b/plugins-core/qm/resources/js/pages/Folder.vue new file mode 100644 index 00000000..b3834b0f --- /dev/null +++ b/plugins-core/qm/resources/js/pages/Folder.vue @@ -0,0 +1,106 @@ + + + diff --git a/plugins-core/qm/resources/js/pages/Index.vue b/plugins-core/qm/resources/js/pages/Index.vue new file mode 100644 index 00000000..93918889 --- /dev/null +++ b/plugins-core/qm/resources/js/pages/Index.vue @@ -0,0 +1,44 @@ + + + diff --git a/plugins-core/qm/resources/js/pages/Search.vue b/plugins-core/qm/resources/js/pages/Search.vue new file mode 100644 index 00000000..94d245af --- /dev/null +++ b/plugins-core/qm/resources/js/pages/Search.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/plugins-core/qm/resources/js/pages/Viewer.vue b/plugins-core/qm/resources/js/pages/Viewer.vue new file mode 100644 index 00000000..89c2fc76 --- /dev/null +++ b/plugins-core/qm/resources/js/pages/Viewer.vue @@ -0,0 +1,44 @@ + + + diff --git a/plugins-core/qm/routes/web.php b/plugins-core/qm/routes/web.php new file mode 100644 index 00000000..b7789437 --- /dev/null +++ b/plugins-core/qm/routes/web.php @@ -0,0 +1,21 @@ +prefix('qm')->name('qm.')->controller(QmController::class) + ->where(['folder' => '[0-9]+', 'entry' => '[0-9]+', 'file' => '[0-9]+']) + ->group(function () { + Route::get('/', 'index')->name('index'); + Route::get('/suche', 'search')->name('search'); + Route::get('/ordner/{folder}', 'folder')->name('folder'); + Route::get('/lesen/{entry}', 'view')->name('view'); + Route::get('/datei/{file}/{name}', 'file')->name('file'); + + // Pflege (Recht „qm.manage“) + Route::post('/ordner/{folder}/eintraege', 'store')->name('entries.store'); + Route::post('/eintraege/{entry}', 'update')->name('entries.update'); // POST wegen Datei-Upload + Route::delete('/eintraege/{entry}', 'destroy')->name('entries.destroy'); + Route::get('/eintraege/{entry}/archiv', 'archive')->name('entries.archive'); + }); diff --git a/plugins-core/qm/src/Colors.php b/plugins-core/qm/src/Colors.php new file mode 100644 index 00000000..1b6431fe --- /dev/null +++ b/plugins-core/qm/src/Colors.php @@ -0,0 +1,43 @@ + [Bezeichnung, Hex] – die Hex-Werte entsprechen den Tailwind-Klassen im Frontend. */ + public const PALETTE = [ + 'blue' => ['Blau', '#2563eb'], + 'sky' => ['Himmelblau', '#0369a1'], + 'teal' => ['Petrol', '#0f766e'], + 'emerald' => ['Smaragd', '#047857'], + 'green' => ['Grün', '#15803d'], + 'amber' => ['Bernstein', '#b45309'], + 'orange' => ['Orange', '#c2410c'], + 'red' => ['Rot', '#dc2626'], + 'rose' => ['Rosé', '#e11d48'], + 'violet' => ['Violett', '#7c3aed'], + 'indigo' => ['Indigo', '#4f46e5'], + 'slate' => ['Schiefer', '#475569'], + ]; + + public static function has(?string $key): bool + { + return $key !== null && isset(self::PALETTE[$key]); + } + + /** + * Für Filament-Select mit ->allowHtml(): Farbfeld und Name. + * + * @return array + */ + public static function options(): array + { + return collect(self::PALETTE)->map(fn (array $color) => ''.e($color[0]).'')->all(); + } +} diff --git a/plugins-core/qm/src/Filament/Pages/QmSettings.php b/plugins-core/qm/src/Filament/Pages/QmSettings.php new file mode 100644 index 00000000..4112efbc --- /dev/null +++ b/plugins-core/qm/src/Filament/Pages/QmSettings.php @@ -0,0 +1,125 @@ +|null */ + public ?array $data = []; + + public static function canAccess(): bool + { + return auth()->user()?->can('qm.manage') ?? false; + } + + public function mount(Settings $settings): void + { + $this->form->fill([ + 'contact_fields' => (array) $settings->get(Presenter::CONTACT_FIELDS, Presenter::DEFAULT_CONTACT_FIELDS), + 'excluded_roles' => array_map('strval', (array) $settings->get(QmAccess::EXCLUDED_ROLES, [])), + 'ocr_enabled' => (bool) $settings->get(Ocr::SETTING_ENABLED, false), + 'ocr_binary' => (string) $settings->get(Ocr::SETTING_BINARY, ''), + ]); + } + + public function form(Schema $schema): Schema + { + return $schema->statePath('data')->components([ + Section::make('Ansprechpartner') + ->description('Welche Angaben aus dem Profil bei Ansprechpartnern in den QM-Ordnern erscheinen. Name und Foto werden immer gezeigt.') + ->schema([ + CheckboxList::make('contact_fields')->hiddenLabel()->columns(3) + ->options(fn () => app(Presenter::class)->contactFieldOptions()), + ]), + + Section::make('Zugang') + ->description('Grundsätzlich sehen alle angemeldeten Personen das Qualitätsmanagement; pflegen darf nur, wer das Recht „Qualitätsmanagement pflegen“ hat (ohne Vergabe: die Administration).') + ->schema([ + Select::make('excluded_roles')->label('Ausgeschlossene Rollen')->multiple()->native(false) + ->options(fn () => Role::query()->orderBy('name')->pluck('name', 'id')->mapWithKeys(fn ($name, $id) => [(string) $id => $name])->all()) + ->helperText('Wer eine dieser Rollen hat, sieht das Modul nicht – weder im Menü noch über Links (z. B. Klient*innen, Gäste). Der Ausschluss geht anderen Rollen vor.'), + ]), + + Section::make('Texterkennung (OCR) für eingescannte PDFs') + ->description('Text aus PDF, Word, Excel und PowerPoint wird immer durchsuchbar gemacht. Eingescannte PDFs ohne Textebene brauchen dafür eine Texterkennung auf dem Server.') + ->columns(2) + ->schema([ + Text::make(fn () => $this->ocrStatus())->columnSpanFull(), + Toggle::make('ocr_enabled')->label('Texterkennung verwenden') + ->helperText('Läuft im Hintergrund (Hintergrundaufgaben), einige Dateien je Durchgang.'), + TextInput::make('ocr_binary')->label('Pfad zu Tesseract')->placeholder('tesseract')->maxLength(200) + ->regex('#^(/[\w./-]+|[\w.-]+)$#') + ->helperText('Nur nötig, wenn das Programm nicht im Suchpfad liegt, z. B. /usr/bin/tesseract.'), + ]), + ]); + } + + public function save(Settings $settings): void + { + $data = $this->form->getState(); + $options = app(Presenter::class)->contactFieldOptions(); + + $settings->setMany([ + Presenter::CONTACT_FIELDS => array_values(array_intersect((array) $data['contact_fields'], array_keys($options))), + QmAccess::EXCLUDED_ROLES => array_values(array_map('intval', (array) $data['excluded_roles'])), + Ocr::SETTING_ENABLED => (bool) $data['ocr_enabled'], + Ocr::SETTING_BINARY => trim((string) $data['ocr_binary']), + ]); + + Audit::log('qm.settings_saved', ['excluded_roles' => count((array) $data['excluded_roles'])]); + Notification::make()->success()->title('Gespeichert')->send(); + } + + private function ocrStatus(): HtmlString + { + $status = app(Ocr::class)->status(); + $pending = DB::table('qm_files')->where('text_status', 'needs_ocr')->whereNull('archived_at')->count(); + $ok = fn (bool $v) => $v ? '✔' : '✘'; + + return new HtmlString( + '
' + .'
'.$ok($status['exec']).' Programme aufrufen erlaubt (PHP-Funktion proc_open)
' + .'
'.$ok($status['tesseract'] !== null).' Tesseract: '.e($status['tesseract'] ?? 'nicht gefunden') + .($status['languages'] ? ' · Sprachen: '.e(implode(', ', array_slice($status['languages'], 0, 8))) : '').'
' + .'
'.$ok($status['rasterizer'] !== null).' PDF-Seiten in Bilder umwandeln: '.e($status['rasterizer'] ?? 'weder pdftoppm noch Imagick mit PDF-Unterstützung').'
' + .'
'.$pending.' eingescannte Datei(en) warten auf Texterkennung.
' + .'
Einrichtung auf eigenem Server (Debian/Ubuntu): apt install tesseract-ocr tesseract-ocr-deu poppler-utils. Ein Apache-Modul gibt es dafür nicht; Tesseract ist ein eigenständiges Programm, das PHP aufruft.
' + .'
' + ); + } +} diff --git a/plugins-core/qm/src/Filament/Resources/QmCategories/Pages/ManageQmCategories.php b/plugins-core/qm/src/Filament/Resources/QmCategories/Pages/ManageQmCategories.php new file mode 100644 index 00000000..1ac2e397 --- /dev/null +++ b/plugins-core/qm/src/Filament/Resources/QmCategories/Pages/ManageQmCategories.php @@ -0,0 +1,18 @@ +label('Kategorie anlegen')->after(fn () => QmTree::flush())]; + } +} diff --git a/plugins-core/qm/src/Filament/Resources/QmCategories/QmCategoryResource.php b/plugins-core/qm/src/Filament/Resources/QmCategories/QmCategoryResource.php new file mode 100644 index 00000000..fa1958ed --- /dev/null +++ b/plugins-core/qm/src/Filament/Resources/QmCategories/QmCategoryResource.php @@ -0,0 +1,73 @@ +user()?->can('qm.manage') ?? false; + } + + public static function form(Schema $schema): Schema + { + return $schema->columns(2)->components([ + TextInput::make('name')->label('Name')->required()->maxLength(120)->placeholder('z. B. Allgemein'), + TextInput::make('sort')->label('Reihenfolge')->numeric()->default(0), + AudienceSection::make('qm_category', 'Wer die Kategorie samt allen Ordnern sieht. Leer lassen = alle, die das QM-Modul sehen.')->columnSpanFull()->collapsed(), + ]); + } + + public static function table(Table $table): Table + { + return $table + ->defaultSort('sort') + ->reorderable('sort') + ->modifyQueryUsing(fn ($query) => $query->withCount('folders')) + ->columns([ + TextColumn::make('name')->label('Name')->weight('medium'), + TextColumn::make('folders_count')->label('Ordner'), + ]) + ->recordActions([ + EditAction::make()->after(fn () => QmTree::flush()), + DeleteAction::make()->modalDescription('Die Ordner bleiben erhalten und erscheinen unter „Weitere“.'), + ]); + } + + public static function getPages(): array + { + return ['index' => ManageQmCategories::route('/')]; + } +} diff --git a/plugins-core/qm/src/Filament/Resources/QmFolders/Pages/CreateQmFolder.php b/plugins-core/qm/src/Filament/Resources/QmFolders/Pages/CreateQmFolder.php new file mode 100644 index 00000000..eb8320b1 --- /dev/null +++ b/plugins-core/qm/src/Filament/Resources/QmFolders/Pages/CreateQmFolder.php @@ -0,0 +1,35 @@ +id(); + + if (filled($data['parent_id'] ?? null)) { + $data['category_id'] = null; + } + + return $data; + } + + protected function afterCreate(): void + { + SvgSanitizer::sanitizeFile($this->record->icon_path); + QmTree::flush(); + } + + protected function getRedirectUrl(): string + { + return QmFolderResource::getUrl('index'); + } +} diff --git a/plugins-core/qm/src/Filament/Resources/QmFolders/Pages/EditQmFolder.php b/plugins-core/qm/src/Filament/Resources/QmFolders/Pages/EditQmFolder.php new file mode 100644 index 00000000..7b9fe8f3 --- /dev/null +++ b/plugins-core/qm/src/Filament/Resources/QmFolders/Pages/EditQmFolder.php @@ -0,0 +1,49 @@ +previousIcon = $this->record->icon_path; + + if (filled($data['parent_id'] ?? null)) { + $data['category_id'] = null; + } + + return $data; + } + + protected function afterSave(): void + { + if ($this->previousIcon && $this->previousIcon !== $this->record->icon_path) { + Storage::disk('uploads')->delete($this->previousIcon); + } + + SvgSanitizer::sanitizeFile($this->record->icon_path); + QmTree::flush(); + } + + protected function getHeaderActions(): array + { + return [ + Action::make('open')->label('Im Portal ansehen')->icon(Heroicon::OutlinedEye)->color('gray') + ->url(fn () => route('qm.folder', $this->record))->openUrlInNewTab(), + DeleteAction::make()->visible(fn () => ! $this->record->entries()->exists() && ! $this->record->children()->exists()), + ]; + } +} diff --git a/plugins-core/qm/src/Filament/Resources/QmFolders/Pages/ListQmFolders.php b/plugins-core/qm/src/Filament/Resources/QmFolders/Pages/ListQmFolders.php new file mode 100644 index 00000000..34a274c3 --- /dev/null +++ b/plugins-core/qm/src/Filament/Resources/QmFolders/Pages/ListQmFolders.php @@ -0,0 +1,34 @@ +label('QM im Portal')->icon(Heroicon::OutlinedEye)->color('gray')->url('/qm')->openUrlInNewTab(), + CreateAction::make()->label('Ordner anlegen'), + ]; + } + + /** + * In Baumreihenfolge: jeder Ordner direkt unter seinem übergeordneten. + */ + protected function applySortingToTableQuery(Builder $query): Builder + { + $order = array_keys(app(QmTree::class)->options()); + + return $order === [] ? $query : $query->orderByRaw('FIELD(id, '.implode(',', array_map('intval', $order)).')'); + } +} diff --git a/plugins-core/qm/src/Filament/Resources/QmFolders/QmFolderResource.php b/plugins-core/qm/src/Filament/Resources/QmFolders/QmFolderResource.php new file mode 100644 index 00000000..2cda24ce --- /dev/null +++ b/plugins-core/qm/src/Filament/Resources/QmFolders/QmFolderResource.php @@ -0,0 +1,148 @@ +user()?->can('qm.manage') ?? false; + } + + public static function form(Schema $schema): Schema + { + return $schema->columns(1)->components([ + Section::make('Ordner')->columns(2)->schema([ + TextInput::make('name')->label('Name')->required()->maxLength(120), + Select::make('parent_id')->label('Übergeordneter Ordner')->placeholder('– oberste Ebene –')->searchable()->native(false)->live() + ->options(fn (?QmFolder $record) => collect(app(QmTree::class)->options()) + ->except($record ? [$record->id, ...app(QmTree::class)->descendantIds([$record->id])] : [])->all()), + Select::make('category_id')->label('Kategorie auf der QM-Startseite')->native(false) + ->options(fn () => QmCategory::query()->orderBy('sort')->pluck('name', 'id')->all()) + ->required(fn (Get $get) => blank($get('parent_id'))) + ->visible(fn (Get $get) => blank($get('parent_id'))) + ->helperText('Nur für Ordner der obersten Ebene. Kategorien legen Sie unter „Kategorien“ an.'), + TextInput::make('sort')->label('Reihenfolge')->numeric()->default(0), + ]), + + Section::make('Farbe und Symbol') + ->description('Unterordner übernehmen Farbe und Symbol, solange dort nichts eigenes gewählt ist.') + ->columns(2) + ->schema([ + Select::make('color')->label('Farbe')->native(false)->allowHtml() + ->options(Colors::options()) + ->placeholder(fn (Get $get) => blank($get('parent_id')) ? 'Standard (Blau)' : 'Vom übergeordneten Ordner übernehmen'), + Select::make('icon')->label('Symbol')->native(false)->allowHtml()->searchable() + ->options(Icons::options()) + ->getSearchResultsUsing(fn (string $search) => Icons::search($search)) + ->getOptionLabelUsing(fn (?string $value) => $value ? Icons::option($value) : null) + ->placeholder(fn (Get $get) => blank($get('parent_id')) ? 'Ordner' : 'Vom übergeordneten Ordner übernehmen') + ->helperText('Alle 1.800+ Symbole über die Suche (englische Namen).'), + FileUpload::make('icon_path')->label('Oder eigenes Symbol hochladen') + ->disk('uploads')->directory('qm-icons')->visibility('public') + ->acceptedFileTypes(['image/svg+xml', 'image/png', 'image/webp', 'image/jpeg'])->maxSize(1024) + ->helperText('SVG (empfohlen), PNG, WebP oder JPG, quadratisch. Ersetzt das Symbol aus der Auswahl.') + ->live(), + Toggle::make('icon_mono')->label('Eigenes Symbol einfarbig darstellen')->default(true) + ->helperText('Wie die mitgelieferten Symbole: weiß auf der Kachel. Für farbige Logos ausschalten.') + ->visible(fn (Get $get) => filled($get('icon_path'))), + ]), + + Section::make('Einführungstext')->schema([ + RichEditor::make('intro')->hiddenLabel() + ->toolbarButtons(['bold', 'italic', 'link', 'bulletList', 'orderedList', 'h3', 'blockquote', 'undo', 'redo']), + ]), + + Section::make('Ansprechpartner') + ->description('Welche Angaben aus dem Profil erscheinen (Telefon, E-Mail …), legen Sie unter „QM-Einstellungen“ fest.') + ->schema([ + Select::make('contacts')->hiddenLabel()->multiple()->searchable()->preload() + ->relationship('contacts', 'name', fn ($query) => $query->where('is_active', true)->orderBy('last_name')) + ->getOptionLabelFromRecordUsing(fn ($record) => $record->name.($record->job_title ? ' – '.$record->job_title : '')), + ]), + ]); + } + + public static function table(Table $table): Table + { + $tree = app(QmTree::class); + + return $table + ->modifyQueryUsing(fn ($query) => $query->withCount('entries')) + ->defaultSort('name') + ->paginated(false) + ->columns([ + TextColumn::make('name')->label('Ordner')->weight('medium')->searchable() + ->formatStateUsing(function (string $state, QmFolder $record) use ($tree) { + $node = $tree->folder($record->id); + $depth = max(0, count($tree->path($record->id)) - 1); + $hex = Colors::PALETTE[$node['color'] ?? Colors::DEFAULT][1]; + + return new HtmlString(str_repeat('', $depth) + .''.e($state)); + }), + TextColumn::make('category.name')->label('Kategorie')->placeholder('–'), + TextColumn::make('entries_count')->label('Einträge'), + ]) + ->recordActions([ + Action::make('open')->label('Im Portal')->icon(Heroicon::OutlinedArrowTopRightOnSquare)->iconButton() + ->url(fn (QmFolder $record) => route('qm.folder', $record))->openUrlInNewTab(), + EditAction::make(), + DeleteAction::make()->visible(fn (QmFolder $record) => $record->entries_count === 0 && ! $record->children()->exists()), + ]); + } + + public static function getPages(): array + { + return [ + 'index' => ListQmFolders::route('/'), + 'create' => CreateQmFolder::route('/neu'), + 'edit' => EditQmFolder::route('/{record}/edit'), + ]; + } +} diff --git a/plugins-core/qm/src/Http/Controllers/QmController.php b/plugins-core/qm/src/Http/Controllers/QmController.php new file mode 100644 index 00000000..3dcf8fe0 --- /dev/null +++ b/plugins-core/qm/src/Http/Controllers/QmController.php @@ -0,0 +1,253 @@ +entryCounts(); + + return Inertia::render('qm::Index', [ + 'categories' => collect($this->tree->categories($request->user()))->map(fn (array $category) => [ + 'id' => $category['id'], + 'name' => $category['name'], + 'folders' => array_map(fn (int $id) => $this->presenter->tile($id, $counts), $category['folders']), + ])->values(), + 'canManage' => $this->access->canManage($request->user()), + 'adminUrl' => $this->access->canManage($request->user()) ? url('/admin/qm-ordner') : null, + ]); + } + + public function folder(Request $request, QmFolder $folder): Response + { + abort_unless($this->tree->isVisible($folder->id, $request->user()), 404); + + $counts = $this->entryCounts(); + $canManage = $this->access->canManage($request->user()); + $entries = $folder->entries()->with(['readingFile', 'editableFile'])->orderBy('sort')->orderBy('title')->get(); + $node = $this->tree->folder($folder->id); + + return Inertia::render('qm::Folder', [ + 'folder' => [ + 'id' => $folder->id, + 'name' => $folder->name, + 'color' => $node['color'], + 'icon' => $node['icon'], + 'intro' => app(RichText::class)->sanitize($folder->intro), + 'contacts' => $this->presenter->contacts($folder->contacts()->get(), $request->user()), + ], + 'breadcrumbs' => array_map(fn (array $f) => ['id' => $f['id'], 'name' => $f['name'], 'color' => $f['color']], array_slice($this->tree->path($folder->id), 0, -1)), + 'children' => array_map(fn (int $id) => $this->presenter->tile($id, $counts), $this->tree->childIds($folder->id)), + 'entries' => $entries->map(fn (QmEntry $entry) => $this->presenter->entry($entry)), + 'canManage' => $canManage, + 'forms' => $canManage ? $this->formOptions() : [], + 'maxUploadMb' => (int) floor(min(Library::MAX_KB / 1024, self::phpUploadLimitMb())), + 'adminUrl' => $canManage ? url('/admin/qm-ordner/'.$folder->id.'/edit') : null, + ]); + } + + public function search(Request $request, Search $search): Response + { + $query = trim((string) $request->query('q', '')); + + return Inertia::render('qm::Search', [ + 'query' => $query, + 'results' => $query === '' ? [] : $search->run($query, $request->user())->map(fn (array $hit) => [ + ...$this->presenter->entry($hit['entry'], withFolder: true), + 'snippet' => $hit['snippet'], + 'in_content' => $hit['in_content'], + ])->values(), + ]); + } + + /** + * Datei zum Lesen im Portal (PDF-Betrachter bzw. Bild). + */ + public function view(Request $request, QmEntry $entry): Response|RedirectResponse + { + abort_unless($this->tree->isVisible($entry->folder_id, $request->user()), 404); + + $entry->load(['readingFile', 'editableFile']); + $file = $entry->readingFile ?? $entry->editableFile; + abort_unless($file, 404); + + if (! $file->isViewable()) { + return redirect($file->url()); + } + + return Inertia::render('qm::Viewer', [ + 'entry' => $this->presenter->entry($entry, withFolder: true), + 'file' => ['url' => $file->url(inline: true), 'kind' => $file->mime === 'application/pdf' ? 'pdf' : 'image', 'name' => $file->name], + 'query' => (string) $request->query('suche', ''), + ]); + } + + public function file(Request $request, QmFile $file): HttpResponse + { + $entry = $file->entry; + abort_unless($entry && $this->tree->isVisible($entry->folder_id, $request->user()), 404); + // Archivierte Fassungen sieht nur das QM-Team. + abort_if($file->archived_at && ! $this->access->canManage($request->user()), 404); + + $headers = ['X-Content-Type-Options' => 'nosniff', 'Cache-Control' => 'private, max-age=300']; + + if ($request->boolean('lesen') && $file->isViewable()) { + // Bilder abgeschottet; PDFs ohne sandbox, sonst blockiert Chrome seinen PDF-Betrachter. + return Storage::disk(QmFile::DISK)->response($file->path, $file->name, [ + ...$headers, + 'Content-Type' => $file->mime, + ...($file->mime === 'application/pdf' ? [] : ['Content-Security-Policy' => "default-src 'none'; sandbox"]), + ]); + } + + return Storage::disk(QmFile::DISK)->download($file->path, $file->name, [...$headers, 'Content-Type' => $file->mime ?: 'application/octet-stream']); + } + + public function store(Request $request, QmFolder $folder, Library $library): RedirectResponse + { + $this->authorizeManage($request); + $data = $this->validated($request, null); + + $entry = $library->create($folder, $data, $request->file('reading'), $request->file('editable'), $request->user()); + Audit::log('qm.entry_created', ['entry' => $entry->id, 'title' => $entry->title, 'folder' => $folder->id]); + + return back()->with('status', 'Eintrag „'.$entry->title.'“ angelegt.'); + } + + public function update(Request $request, QmEntry $entry, Library $library): RedirectResponse + { + $this->authorizeManage($request); + $data = $this->validated($request, $entry); + + $library->update($entry, $data, $request->file('reading'), $request->file('editable'), $request->boolean('remove_editable'), $request->user()); + Audit::log('qm.entry_updated', ['entry' => $entry->id, 'title' => $entry->title, 'new_version' => $request->hasFile('reading') || $request->hasFile('editable')]); + + return back()->with('status', $request->hasFile('reading') || $request->hasFile('editable') ? 'Neue Fassung gespeichert – die bisherige liegt im Archiv.' : 'Gespeichert.'); + } + + public function destroy(Request $request, QmEntry $entry): RedirectResponse + { + $this->authorizeManage($request); + $title = $entry->title; + $entry->delete(); + Audit::log('qm.entry_deleted', ['entry' => $entry->id, 'title' => $title]); + + return back()->with('status', '„'.$title.'“ gelöscht.'); + } + + public function archive(Request $request, QmEntry $entry): JsonResponse + { + $this->authorizeManage($request); + + return response()->json(['files' => $entry->files()->with('uploader:id,first_name,last_name,name')->orderByDesc('created_at')->orderByDesc('id')->get() + ->map(fn (QmFile $file) => [ + 'id' => $file->id, + 'kind' => $file->kind, + 'name' => $file->name, + 'version' => $file->version, + 'valid_from' => $file->valid_from?->toDateString(), + 'size' => $file->size, + 'uploaded_at' => $file->created_at?->toIso8601String(), + 'uploader' => $file->uploader?->name, + 'archived' => $file->archived_at !== null, + 'url' => $file->url(), + ])]); + } + + /** + * @return array + */ + private function validated(Request $request, ?QmEntry $entry): array + { + $type = $entry?->type ?? $request->input('type'); + $fileRule = ['nullable', 'file', 'max:'.Library::MAX_KB, 'extensions:'.implode(',', Library::EXTENSIONS)]; + + return $request->validate([ + 'type' => [$entry ? 'nullable' : 'required', Rule::in([QmEntry::FILE, QmEntry::LINK, QmEntry::FORM])], + 'title' => ['required', 'string', 'max:250'], + 'description' => ['nullable', 'string', 'max:1000'], + 'version' => ['nullable', 'string', 'max:30'], + 'valid_from' => ['nullable', 'date'], + 'url' => [Rule::requiredIf($type === QmEntry::LINK), 'nullable', 'string', 'max:1000', 'regex:#^(https?://|/)#i'], + 'form_id' => [Rule::requiredIf($type === QmEntry::FORM), 'nullable', 'integer', Rule::exists('forms', 'id')], + 'reading' => [...$fileRule, Rule::requiredIf($type === QmEntry::FILE && ! $entry && ! $request->hasFile('editable'))], + 'editable' => $fileRule, + ], ['url.regex' => 'Bitte eine Adresse angeben, die mit https:// oder / beginnt.', 'reading.required' => 'Bitte eine Datei auswählen.'], [ + 'title' => 'Titel', 'version' => 'Version', 'valid_from' => 'Stand', 'url' => 'Adresse', 'form_id' => 'Formular', + 'reading' => 'Datei', 'editable' => 'Bearbeitbare Vorlage', + ]) + ['type' => $type]; + } + + private function authorizeManage(Request $request): void + { + abort_unless($this->access->canManage($request->user()), 403); + } + + /** + * @return array Ordner => Anzahl Einträge + */ + private function entryCounts(): array + { + return DB::table('qm_entries')->selectRaw('folder_id, count(*) as c')->groupBy('folder_id')->pluck('c', 'folder_id')->map(fn ($c) => (int) $c)->all(); + } + + /** + * @return list + */ + private function formOptions(): array + { + if (! DB::getSchemaBuilder()->hasTable('forms')) { + return []; + } + + return DB::table('forms')->orderBy('title')->get(['id', 'title'])->map(fn ($f) => ['value' => (int) $f->id, 'label' => $f->title])->all(); + } + + private static function phpUploadLimitMb(): float + { + $bytes = function (string $value): float { + $value = trim($value); + $unit = strtolower(substr($value, -1)); + $number = (float) $value; + + return match ($unit) { + 'g' => $number * 1024 ** 3, + 'm' => $number * 1024 ** 2, + 'k' => $number * 1024, + default => $number, + }; + }; + + $limits = array_filter([$bytes((string) ini_get('upload_max_filesize')), $bytes((string) ini_get('post_max_size'))]); + + return $limits === [] ? 100 : min($limits) / 1024 / 1024; + } +} diff --git a/plugins-core/qm/src/Http/EnsureQmAccess.php b/plugins-core/qm/src/Http/EnsureQmAccess.php new file mode 100644 index 00000000..deca94eb --- /dev/null +++ b/plugins-core/qm/src/Http/EnsureQmAccess.php @@ -0,0 +1,21 @@ +allows($request->user()), 404); + + return $next($request); + } +} diff --git a/plugins-core/qm/src/Indexer.php b/plugins-core/qm/src/Indexer.php new file mode 100644 index 00000000..b58138ce --- /dev/null +++ b/plugins-core/qm/src/Indexer.php @@ -0,0 +1,55 @@ +path($file->path); + $result = $this->extractor->extract($path, pathinfo($file->name, PATHINFO_EXTENSION)); + + // PDF ohne Text: vermutlich eingescannt → Texterkennung vormerken. + $status = $result['status'] === 'empty' && $file->mime === 'application/pdf' ? 'needs_ocr' : $result['status']; + + $file->forceFill(['text' => $result['text'], 'text_status' => $status])->save(); + } + + /** + * Hintergrundaufgabe: vorgemerkte Scans erkennen. Gibt die Anzahl bearbeiteter Dateien zurück. + */ + public function processOcr(int $limit = 5): int + { + if (! $this->ocr->enabled() || ! $this->ocr->available()) { + return 0; + } + + $done = 0; + + foreach (QmFile::query()->where('text_status', 'needs_ocr')->whereNull('archived_at')->limit($limit)->get() as $file) { + try { + $text = $this->ocr->recognize(Storage::disk(QmFile::DISK)->path($file->path)); + $file->forceFill(['text' => $text !== '' ? $text : null, 'text_status' => $text !== '' ? 'ocr' : 'empty'])->save(); + } catch (Throwable $e) { + logger()->warning("QM-Texterkennung für {$file->name} fehlgeschlagen: ".$e->getMessage()); + $file->forceFill(['text_status' => 'failed'])->save(); + } + + $done++; + } + + return $done; + } +} diff --git a/plugins-core/qm/src/Library.php b/plugins-core/qm/src/Library.php new file mode 100644 index 00000000..b3e52f47 --- /dev/null +++ b/plugins-core/qm/src/Library.php @@ -0,0 +1,122 @@ +entries()->create([ + ...$this->attributes($data), + 'created_by' => $user->id, + 'updated_by' => $user->id, + ]); + + if ($entry->type === QmEntry::FILE) { + $this->storeFiles($entry, $reading, $editable, $user); + } + + return $entry; + }); + } + + /** + * Angaben ändern; mit Datei(en) = neue Fassung (bisherige ins Archiv). + * + * @param array $data + */ + public function update(QmEntry $entry, array $data, ?UploadedFile $reading, ?UploadedFile $editable, bool $removeEditable, User $user): QmEntry + { + return DB::transaction(function () use ($entry, $data, $reading, $editable, $removeEditable, $user) { + $entry->update([...$this->attributes([...$data, 'type' => $entry->type]), 'updated_by' => $user->id]); + + if ($entry->type !== QmEntry::FILE) { + return $entry; + } + + if ($reading || $editable) { + $this->storeFiles($entry, $reading, $editable, $user); + } else { + // Nur Angaben korrigiert (z. B. Tippfehler in der Version): aktuelle Dateien anpassen. + $entry->files()->whereNull('archived_at')->update(['version' => $entry->version, 'valid_from' => $entry->valid_from]); + } + + if ($removeEditable && ! $editable) { + $entry->files()->where('kind', QmFile::EDITABLE)->whereNull('archived_at')->update(['archived_at' => now()]); + } + + return $entry->refresh(); + }); + } + + /** + * @param array $data + * @return array + */ + private function attributes(array $data): array + { + $type = $data['type']; + + return [ + 'type' => $type, + 'title' => trim((string) $data['title']), + 'description' => filled($data['description'] ?? null) ? trim((string) $data['description']) : null, + 'version' => filled($data['version'] ?? null) ? trim((string) $data['version']) : null, + 'valid_from' => filled($data['valid_from'] ?? null) ? Carbon::parse($data['valid_from'])->toDateString() : now()->toDateString(), + 'url' => $type === QmEntry::LINK ? trim((string) $data['url']) : null, + 'form_id' => $type === QmEntry::FORM ? (int) $data['form_id'] : null, + ]; + } + + private function storeFiles(QmEntry $entry, ?UploadedFile $reading, ?UploadedFile $editable, User $user): void + { + foreach ([QmFile::READING => $reading, QmFile::EDITABLE => $editable] as $kind => $upload) { + if (! $upload) { + continue; + } + + $entry->files()->where('kind', $kind)->whereNull('archived_at')->update(['archived_at' => now()]); + + $name = Str::limit(preg_replace('/[^\pL\pN ._()\-]+/u', '_', $upload->getClientOriginalName()) ?: 'datei', 200, ''); + $extension = strtolower(pathinfo($name, PATHINFO_EXTENSION)); + + $file = $entry->files()->create([ + 'kind' => $kind, + 'version' => $entry->version, + 'valid_from' => $entry->valid_from, + 'name' => $name, + 'path' => $upload->storeAs('qm/'.$entry->id, Str::random(40).($extension ? '.'.$extension : ''), QmFile::DISK), + 'mime' => $upload->getMimeType(), + 'size' => $upload->getSize(), + 'uploaded_by' => $user->id, + 'created_at' => now(), + ]); + + $this->indexer->index($file); + } + } +} diff --git a/plugins-core/qm/src/Models/QmCategory.php b/plugins-core/qm/src/Models/QmCategory.php new file mode 100644 index 00000000..fa35fb3c --- /dev/null +++ b/plugins-core/qm/src/Models/QmCategory.php @@ -0,0 +1,29 @@ + QmTree::flush()); + static::deleted(fn () => QmTree::flush()); + } + + /** + * @return HasMany + */ + public function folders(): HasMany + { + return $this->hasMany(QmFolder::class, 'category_id'); + } +} diff --git a/plugins-core/qm/src/Models/QmEntry.php b/plugins-core/qm/src/Models/QmEntry.php new file mode 100644 index 00000000..36b6cf40 --- /dev/null +++ b/plugins-core/qm/src/Models/QmEntry.php @@ -0,0 +1,66 @@ + $entry->files()->get()->each->delete()); + } + + protected function casts(): array + { + return ['valid_from' => 'date', 'review_due_at' => 'date', 'requires_acknowledgement' => 'boolean']; + } + + /** + * @return BelongsTo + */ + public function folder(): BelongsTo + { + return $this->belongsTo(QmFolder::class); + } + + /** + * @return HasMany + */ + public function files(): HasMany + { + return $this->hasMany(QmFile::class, 'entry_id'); + } + + /** + * @return HasOne + */ + public function readingFile(): HasOne + { + return $this->hasOne(QmFile::class, 'entry_id')->where('kind', QmFile::READING)->whereNull('archived_at'); + } + + /** + * @return HasOne + */ + public function editableFile(): HasOne + { + return $this->hasOne(QmFile::class, 'entry_id')->where('kind', QmFile::EDITABLE)->whereNull('archived_at'); + } +} diff --git a/plugins-core/qm/src/Models/QmFile.php b/plugins-core/qm/src/Models/QmFile.php new file mode 100644 index 00000000..c241e242 --- /dev/null +++ b/plugins-core/qm/src/Models/QmFile.php @@ -0,0 +1,71 @@ + Storage::disk(self::DISK)->delete($file->path)); + } + + protected function casts(): array + { + return ['valid_from' => 'date', 'archived_at' => 'datetime', 'created_at' => 'datetime']; + } + + /** + * @return BelongsTo + */ + public function entry(): BelongsTo + { + return $this->belongsTo(QmEntry::class, 'entry_id'); + } + + /** + * @return BelongsTo + */ + public function uploader(): BelongsTo + { + return $this->belongsTo(User::class, 'uploaded_by'); + } + + public function extension(): string + { + return strtoupper(pathinfo($this->name, PATHINFO_EXTENSION)); + } + + public function isViewable(): bool + { + return in_array($this->mime, self::VIEWABLE, true); + } + + public function url(bool $inline = false): string + { + return route('qm.file', ['file' => $this->id, 'name' => $this->name]).($inline ? '?lesen=1' : ''); + } +} diff --git a/plugins-core/qm/src/Models/QmFolder.php b/plugins-core/qm/src/Models/QmFolder.php new file mode 100644 index 00000000..ad375c19 --- /dev/null +++ b/plugins-core/qm/src/Models/QmFolder.php @@ -0,0 +1,73 @@ + QmTree::flush()); + static::deleted(function (QmFolder $folder) { + if ($folder->icon_path) { + Storage::disk('uploads')->delete($folder->icon_path); + } + + QmTree::flush(); + }); + } + + protected function casts(): array + { + return ['icon_mono' => 'boolean']; + } + + /** + * @return BelongsTo + */ + public function category(): BelongsTo + { + return $this->belongsTo(QmCategory::class); + } + + /** + * @return BelongsTo + */ + public function parent(): BelongsTo + { + return $this->belongsTo(self::class, 'parent_id'); + } + + /** + * @return HasMany + */ + public function children(): HasMany + { + return $this->hasMany(self::class, 'parent_id'); + } + + /** + * @return HasMany + */ + public function entries(): HasMany + { + return $this->hasMany(QmEntry::class, 'folder_id'); + } + + /** + * @return BelongsToMany + */ + public function contacts(): BelongsToMany + { + return $this->belongsToMany(User::class, 'qm_folder_contacts', 'folder_id', 'user_id')->withPivot('sort')->orderByPivot('sort'); + } +} diff --git a/plugins-core/qm/src/Presenter.php b/plugins-core/qm/src/Presenter.php new file mode 100644 index 00000000..a410b824 --- /dev/null +++ b/plugins-core/qm/src/Presenter.php @@ -0,0 +1,159 @@ + 'Funktion', + 'department' => 'Abteilung', + 'location' => 'Standort', + 'phone' => 'Telefon', + 'mobile' => 'Mobil', + 'email' => 'E-Mail-Adresse', + ]; + + public const DEFAULT_CONTACT_FIELDS = ['job_title', 'phone', 'email']; + + public function __construct(private readonly QmTree $tree, private readonly Settings $settings, private readonly ProfileFields $profileFields) {} + + /** + * @param array $counts Ordner => Anzahl Einträge + * @return array + */ + public function tile(int $id, array $counts = []): array + { + $folder = $this->tree->folder($id); + $children = count($this->tree->childIds($id)); + + return [ + 'id' => $id, + 'name' => $folder['name'], + 'color' => $folder['color'], + 'icon' => $folder['icon'], + 'folders' => $children, + 'entries' => (int) ($counts[$id] ?? 0), + 'url' => route('qm.folder', $id), + ]; + } + + /** + * @return array + */ + public function entry(QmEntry $entry, bool $withFolder = false): array + { + $reading = $entry->relationLoaded('readingFile') ? $entry->readingFile : null; + $editable = $entry->relationLoaded('editableFile') ? $entry->editableFile : null; + $main = $reading ?? $editable; + + $open = match ($entry->type) { + QmEntry::LINK => ['url' => $entry->url, 'kind' => 'link'], + QmEntry::FORM => ['url' => $entry->form_id ? $this->formUrl($entry->form_id) : null, 'kind' => 'form'], + default => $main + ? ($main->isViewable() ? ['url' => route('qm.view', $entry), 'kind' => 'view'] : ['url' => $main->url(), 'kind' => 'download']) + : ['url' => null, 'kind' => 'none'], + }; + + return [ + 'id' => $entry->id, + 'type' => $entry->type, + 'title' => $entry->title, + 'description' => $entry->description, + 'version' => $entry->version, + 'valid_from' => $entry->valid_from?->toDateString(), + 'size' => $main?->size, + 'extension' => $main?->extension(), + 'open_url' => $open['url'], + 'open_kind' => $open['kind'], + 'download_url' => $main?->url(), + 'editable' => $editable ? ['name' => $editable->name, 'extension' => $editable->extension(), 'url' => $editable->url(), 'size' => $editable->size] : null, + 'searchable' => $main ? in_array($main->text_status, ['ok', 'ocr'], true) : null, + 'text_status' => $main?->text_status, + 'url' => $entry->url, + 'form_id' => $entry->form_id, + 'folder' => $withFolder ? $this->folderLabel($entry->folder_id) : null, + ]; + } + + /** + * @return array{id: int, path: string, color: string} + */ + public function folderLabel(int $id): array + { + return [ + 'id' => $id, + 'path' => implode(' › ', array_column($this->tree->path($id), 'name')), + 'color' => $this->tree->folder($id)['color'] ?? Colors::DEFAULT, + 'url' => route('qm.folder', $id), + ]; + } + + /** + * Ansprechpartner mit den im Admin gewählten Profilfeldern. + * + * @param iterable $people + * @return list> + */ + public function contacts(iterable $people, ?User $viewer): array + { + $fields = (array) $this->settings->get(self::CONTACT_FIELDS, self::DEFAULT_CONTACT_FIELDS); + $result = []; + + foreach ($people as $person) { + if (! $person->is_active) { + continue; + } + + $values = []; + $custom = collect($this->profileFields->visibleValues($person, $viewer))->keyBy('key'); + + foreach ($fields as $field) { + if (isset(self::CORE_FIELDS[$field])) { + $value = $person->{$field}; + + if (filled($value)) { + $values[] = ['key' => $field, 'label' => self::CORE_FIELDS[$field], 'value' => $value, 'type' => in_array($field, ['phone', 'mobile'], true) ? 'phone' : ($field === 'email' ? 'email' : 'text')]; + } + } elseif (str_starts_with($field, 'custom.') && ($item = $custom->get(substr($field, 7)))) { + $values[] = ['key' => $field, 'label' => $item['label'], 'value' => $item['value'], 'type' => $item['type'] ?? 'text']; + } + } + + $result[] = [ + 'id' => $person->id, + 'name' => $person->name, + 'initials' => $person->initials, + 'avatar_url' => $person->avatarUrl(160), + 'fields' => $values, + ]; + } + + return $result; + } + + /** + * @return array auswählbare Felder für die Einstellungen + */ + public function contactFieldOptions(): array + { + return self::CORE_FIELDS + collect($this->profileFields->options())->mapWithKeys(fn ($label, $key) => ['custom.'.$key => $label.' (Profilfeld)'])->all(); + } + + private function formUrl(int $id): ?string + { + $class = 'Inhaus\\Plugins\\Forms\\Models\\Form'; + + return class_exists($class) ? $class::query()->find($id)?->url() : null; + } +} diff --git a/plugins-core/qm/src/QmAccess.php b/plugins-core/qm/src/QmAccess.php new file mode 100644 index 00000000..261ceb3d --- /dev/null +++ b/plugins-core/qm/src/QmAccess.php @@ -0,0 +1,40 @@ +canManage($user)) { + return true; + } + + $excluded = array_map('intval', (array) $this->settings->get(self::EXCLUDED_ROLES, [])); + + return $excluded === [] || ! $user->roles()->whereIn('roles.id', $excluded)->exists(); + } + + public function canManage(?User $user): bool + { + return (bool) $user?->can('qm.manage'); + } +} diff --git a/plugins-core/qm/src/QmPlugin.php b/plugins-core/qm/src/QmPlugin.php new file mode 100644 index 00000000..1fa42b66 --- /dev/null +++ b/plugins-core/qm/src/QmPlugin.php @@ -0,0 +1,36 @@ +app->singleton($class); + } + + $this->app->make(Navigation::class)->add('qm', 'Qualitätsmanagement', '/qm', active: 'qm.*', sort: 55, + visible: fn (User $user) => $this->app->make(QmAccess::class)->allows($user)); + + $abilities = $this->app->make(Abilities::class); + $abilities->define('qm.manage', 'Qualitätsmanagement pflegen (Ordner, Dokumente, Einstellungen)', 'Qualitätsmanagement'); + $abilities->resourceType('qm_category', 'QM-Kategorie', fn () => QmCategory::query()->orderBy('sort')->pluck('name', 'id')->all()); + } + + public function boot(): void + { + // Eingescannte PDFs per Texterkennung durchsuchbar machen (nur wenn eingerichtet). + Schedule::call(fn () => $this->app->make(Indexer::class)->processOcr()) + ->everyTenMinutes()->name('qm-ocr')->withoutOverlapping(30); + } +} diff --git a/plugins-core/qm/src/QmTree.php b/plugins-core/qm/src/QmTree.php new file mode 100644 index 00000000..87ce5d97 --- /dev/null +++ b/plugins-core/qm/src/QmTree.php @@ -0,0 +1,206 @@ +|null */ + private ?array $data = null; + + public static function flush(): void + { + Cache::forget(self::CACHE_KEY); + app(self::class)->data = null; + } + + /** + * @return array{id: int, parent_id: ?int, category_id: ?int, name: string, color: string, own_color: ?string, icon: array{name?: string, url?: string, mono?: bool}, sort: int}|null + */ + public function folder(int $id): ?array + { + return $this->data()['folders'][$id] ?? null; + } + + /** + * @return list + */ + public function childIds(?int $id): array + { + return $this->data()['children'][$id ?? 0] ?? []; + } + + /** + * @return list> Weg von oben bis einschließlich des Ordners + */ + public function path(int $id): array + { + $path = []; + + for ($folder = $this->folder($id); $folder && count($path) < 50; $folder = $folder['parent_id'] ? $this->folder($folder['parent_id']) : null) { + array_unshift($path, $folder); + } + + return $path; + } + + /** + * @param list $ids + * @return list + */ + public function descendantIds(array $ids): array + { + $result = []; + + foreach ($ids as $id) { + foreach ($this->childIds($id) as $child) { + $result[] = $child; + array_push($result, ...$this->descendantIds([$child])); + } + } + + return $result; + } + + /** + * Kategorie eines Ordners (die des obersten Ordners im Pfad). + */ + public function categoryId(int $id): ?int + { + return $this->path($id)[0]['category_id'] ?? null; + } + + public function isVisible(int $id, ?User $user): bool + { + if (! $this->folder($id)) { + return false; + } + + $category = $this->categoryId($id); + + return $category === null || $this->categoryVisible($category, $user); + } + + public function categoryVisible(int $category, ?User $user): bool + { + return Audiences::matches($this->data()['category_audiences'][$category] ?? null, $user); + } + + /** + * @return list + */ + public function visibleIds(?User $user): array + { + return array_values(array_filter(array_keys($this->data()['folders']), fn (int $id) => $this->isVisible($id, $user))); + } + + /** + * Kategorien mit ihren obersten Ordnern – für die Startseite. + * + * @return list}> + */ + public function categories(?User $user): array + { + $groups = []; + + foreach ($this->data()['categories'] as $category) { + if (! $this->categoryVisible($category['id'], $user)) { + continue; + } + + $folders = array_values(array_filter($this->childIds(null), fn (int $id) => $this->folder($id)['category_id'] === $category['id'])); + + if ($folders !== []) { + $groups[] = ['id' => $category['id'], 'name' => $category['name'], 'folders' => $folders]; + } + } + + // Oberste Ordner ohne (gültige) Kategorie + $known = array_column($this->data()['categories'], 'id'); + $rest = array_values(array_filter($this->childIds(null), fn (int $id) => ! in_array($this->folder($id)['category_id'], $known, true))); + + if ($rest !== []) { + $groups[] = ['id' => null, 'name' => $groups === [] ? 'Ordner' : 'Weitere', 'folders' => $rest]; + } + + return $groups; + } + + /** + * Alle Ordner mit Einrückung – für Auswahllisten. + * + * @return array + */ + public function options(?int $rootId = null, int $depth = 0): array + { + $options = []; + + foreach ($this->childIds($rootId) as $id) { + $options[$id] = str_repeat('— ', $depth).$this->folder($id)['name']; + $options += $this->options($id, $depth + 1); + } + + return $options; + } + + /** + * @return array + */ + private function data(): array + { + return $this->data ??= Cache::rememberForever(self::CACHE_KEY, function () { + $categories = DB::table('qm_categories')->orderBy('sort')->orderBy('name')->get(['id', 'name']) + ->map(fn ($c) => ['id' => (int) $c->id, 'name' => $c->name])->all(); + $rows = DB::table('qm_folders')->orderBy('sort')->orderBy('name')->get(['id', 'parent_id', 'category_id', 'name', 'color', 'icon', 'icon_path', 'icon_mono', 'sort']); + + $folders = []; + $children = []; + + foreach ($rows as $row) { + $folders[(int) $row->id] = [ + 'id' => (int) $row->id, + 'parent_id' => $row->parent_id ? (int) $row->parent_id : null, + 'category_id' => $row->category_id ? (int) $row->category_id : null, + 'name' => $row->name, + 'own_color' => Colors::has($row->color) ? $row->color : null, + 'color' => Colors::DEFAULT, + 'own_icon' => $row->icon_path + ? ['url' => Storage::disk('uploads')->url($row->icon_path), 'mono' => (bool) $row->icon_mono] + : (Icons::has($row->icon) ? ['name' => $row->icon] : null), + 'icon' => ['name' => 'folder'], + 'sort' => (int) $row->sort, + ]; + $children[(int) ($row->parent_id ?? 0)][] = (int) $row->id; + } + + // Farbe und Symbol vererben: von oben nach unten auflösen. + $resolve = function (int $parent, string $color, array $icon) use (&$resolve, &$folders, $children) { + foreach ($children[$parent] ?? [] as $id) { + $folders[$id]['color'] = $folders[$id]['own_color'] ?? $color; + $folders[$id]['icon'] = $folders[$id]['own_icon'] ?? $icon; + $resolve($id, $folders[$id]['color'], $folders[$id]['icon']); + } + }; + $resolve(0, Colors::DEFAULT, ['name' => 'folder']); + + return [ + 'categories' => $categories, + 'folders' => $folders, + 'children' => $children, + 'category_audiences' => Audiences::allOfType('qm_category'), + ]; + }); + } +} diff --git a/plugins-core/qm/src/Search.php b/plugins-core/qm/src/Search.php new file mode 100644 index 00000000..0ad502ba --- /dev/null +++ b/plugins-core/qm/src/Search.php @@ -0,0 +1,144 @@ + + */ + public function run(string $query, ?User $user): Collection + { + $terms = $this->terms($query); + + if ($terms === []) { + return collect(); + } + + $folders = $this->tree->visibleIds($user) ?: [0]; + $like = fn (string $term) => '%'.str_replace(['\\', '%', '_'], ['\\\\', '\\%', '\\_'], $term).'%'; + + // 1) Metadaten: alle Begriffe in Titel, Beschreibung, Version oder Dateiname + $byMeta = QmEntry::query()->whereIn('folder_id', $folders) + ->where(function (Builder $q) use ($terms, $like) { + foreach ($terms as $term) { + $q->where(fn (Builder $w) => $w->where('title', 'like', $like($term)) + ->orWhere('description', 'like', $like($term)) + ->orWhere('version', 'like', $like($term)) + ->orWhereHas('files', fn (Builder $f) => $f->whereNull('archived_at')->where('name', 'like', $like($term)))); + } + }) + ->limit(self::LIMIT)->pluck('id')->all(); + + // 2) Inhalt: Volltextindex (schnell, mit Gewichtung) – Rückfall auf Textsuche + $contentHits = $this->contentMatches($terms, $folders, $like); + + $ids = array_values(array_unique([...$byMeta, ...array_keys($contentHits)])); + $entries = QmEntry::query()->whereIn('id', $ids ?: [0])->with(['readingFile', 'editableFile'])->get()->keyBy('id'); + + return collect($ids) + ->filter(fn (int $id) => $entries->has($id)) + ->map(fn (int $id) => [ + 'entry' => $entries[$id], + 'snippet' => isset($contentHits[$id]) ? $this->snippet($contentHits[$id], $terms) : null, + 'in_content' => isset($contentHits[$id]) && ! in_array($id, $byMeta, true), + ]) + ->take(self::LIMIT) + ->values(); + } + + /** + * @param list $terms + * @param list $folders + * @return array Eintrag => Text + */ + private function contentMatches(array $terms, array $folders, \Closure $like): array + { + $base = fn () => DB::table('qm_files')->join('qm_entries', 'qm_entries.id', '=', 'qm_files.entry_id') + ->whereIn('qm_entries.folder_id', $folders)->whereNull('qm_files.archived_at')->whereNotNull('qm_files.text'); + + $rows = collect(); + + if (in_array(DB::getDriverName(), ['mysql', 'mariadb'], true) && collect($terms)->every(fn ($t) => mb_strlen($t) >= 3)) { + $boolean = implode(' ', array_map(fn ($t) => '+'.preg_replace('/[^\p{L}\p{N}]+/u', '', $t).'*', $terms)); + $rows = $base()->whereRaw('MATCH(qm_files.text) AGAINST (? IN BOOLEAN MODE)', [$boolean]) + ->orderByRaw('MATCH(qm_files.text) AGAINST (? IN BOOLEAN MODE) DESC', [$boolean]) + ->limit(self::LIMIT)->get(['qm_files.entry_id', 'qm_files.kind', 'qm_files.text']); + } + + // Kurze Begriffe, frisch gespeicherte Zeilen oder andere Datenbanken + if ($rows->isEmpty()) { + $query = $base(); + + foreach ($terms as $term) { + $query->where('qm_files.text', 'like', $like($term)); + } + + $rows = $query->limit(self::LIMIT)->get(['qm_files.entry_id', 'qm_files.kind', 'qm_files.text']); + } + + // Je Eintrag ein Text – die Lesefassung vor der Vorlage. + $texts = []; + + foreach ($rows as $row) { + if (! isset($texts[(int) $row->entry_id]) || $row->kind === 'reading') { + $texts[(int) $row->entry_id] = (string) $row->text; + } + } + + return $texts; + } + + /** + * @return list + */ + private function terms(string $query): array + { + $words = preg_split('/\s+/u', mb_strtolower(trim($query)), -1, PREG_SPLIT_NO_EMPTY) ?: []; + + return array_values(array_unique(array_filter(array_slice($words, 0, 8), fn ($w) => mb_strlen($w) >= 2))); + } + + /** + * Ausschnitt rund um den ersten Treffer, Begriffe hervorgehoben (HTML, escaped). + * + * @param list $terms + */ + private function snippet(string $text, array $terms): string + { + $lower = mb_strtolower($text); + $position = null; + + foreach ($terms as $term) { + $found = mb_strpos($lower, $term); + + if ($found !== false && ($position === null || $found < $position)) { + $position = $found; + } + } + + $start = max(0, ($position ?? 0) - 80); + $excerpt = str_replace("\n", ' ', mb_substr($text, $start, 240)); + $html = ($start > 0 ? '… ' : '').e($excerpt).(mb_strlen($text) > $start + 240 ? ' …' : ''); + + foreach ($terms as $term) { + $html = preg_replace('/('.preg_quote(e($term), '/').')/iu', '$1', $html) ?? $html; + } + + return $html; + } +} diff --git a/plugins-core/qm/src/Text/Ocr.php b/plugins-core/qm/src/Text/Ocr.php new file mode 100644 index 00000000..410cdbb2 --- /dev/null +++ b/plugins-core/qm/src/Text/Ocr.php @@ -0,0 +1,163 @@ +settings->get(self::SETTING_ENABLED, false); + } + + /** + * Was auf diesem Server vorhanden ist. + * + * @return array{exec: bool, // Programme dürfen aufgerufen werden (proc_open) + * tesseract: ?string, languages: list, rasterizer: ?string} + */ + public function status(): array + { + $exec = function_exists('proc_open') && ! in_array('proc_open', array_map('trim', explode(',', (string) ini_get('disable_functions'))), true); + $tesseract = null; + $languages = []; + + if ($exec) { + $binary = $this->binary(); + $version = $this->run([$binary, '--version']); + + if ($version !== null && str_contains(strtolower($version), 'tesseract')) { + $tesseract = trim(strtok($version, "\n")); + $languages = array_values(array_filter(array_map('trim', array_slice(explode("\n", (string) $this->run([$binary, '--list-langs'])), 1)))); + } + } + + return ['exec' => $exec, 'tesseract' => $tesseract, 'languages' => $languages, 'rasterizer' => $this->rasterizer($exec)]; + } + + public function available(): bool + { + $status = $this->status(); + + return $status['tesseract'] !== null && $status['rasterizer'] !== null; + } + + /** + * Text einer PDF-Datei per Texterkennung. + */ + public function recognize(string $pdf): string + { + $dir = sys_get_temp_dir().'/inhaus-ocr-'.bin2hex(random_bytes(6)); + @mkdir($dir, 0700, true); + + try { + $images = $this->rasterize($pdf, $dir); + $languages = in_array('deu', $this->status()['languages'], true) ? 'deu+eng' : 'eng'; + $text = ''; + + foreach ($images as $image) { + $text .= $this->run([$this->binary(), $image, 'stdout', '-l', $languages, '--psm', '1'])."\n"; + } + + return TextExtractor::normalize($text); + } finally { + array_map('unlink', glob($dir.'/*') ?: []); + @rmdir($dir); + } + } + + private function binary(): string + { + $binary = trim((string) $this->settings->get(self::SETTING_BINARY, '')) ?: 'tesseract'; + + // Nur ein Programmname oder ein absoluter Pfad – keine Parameter. + return preg_match('#^(/[\w./-]+|[\w.-]+)$#', $binary) ? $binary : 'tesseract'; + } + + private function rasterizer(bool $exec): ?string + { + if ($exec && $this->run(['pdftoppm', '-v']) !== null) { + return 'pdftoppm'; + } + + try { + if (class_exists(Imagick::class) && in_array('PDF', Imagick::queryFormats('PDF'), true)) { + return 'imagick'; + } + } catch (Throwable) { + // Imagick ohne PDF-Unterstützung + } + + return null; + } + + /** + * @return list Bilddateien der Seiten + */ + private function rasterize(string $pdf, string $dir): array + { + if ($this->rasterizer(true) === 'pdftoppm') { + $this->run(['pdftoppm', '-r', '300', '-gray', '-png', '-l', (string) self::MAX_PAGES, $pdf, $dir.'/seite']); + } else { + $imagick = new Imagick; + $imagick->setResolution(300, 300); + $imagick->readImage($pdf.'[0-'.(self::MAX_PAGES - 1).']'); + + foreach ($imagick as $index => $page) { + $page->setImageFormat('png'); + $page->writeImage(sprintf('%s/seite-%03d.png', $dir, $index + 1)); + } + + $imagick->clear(); + } + + $images = glob($dir.'/seite*.png') ?: []; + natsort($images); + + return array_values($images); + } + + /** + * Programm ohne Shell aufrufen; null, wenn es nicht läuft. + * + * @param list $command + */ + protected function run(array $command): ?string + { + if (! function_exists('proc_open')) { + return null; + } + + $process = @proc_open($command, [1 => ['pipe', 'w'], 2 => ['pipe', 'w']], $pipes); + + if (! is_resource($process)) { + return null; + } + + $output = stream_get_contents($pipes[1]).stream_get_contents($pipes[2]); + fclose($pipes[1]); + fclose($pipes[2]); + + return proc_close($process) === 0 ? (string) $output : null; + } +} diff --git a/plugins-core/qm/src/Text/TextExtractor.php b/plugins-core/qm/src/Text/TextExtractor.php new file mode 100644 index 00000000..edb3f78c --- /dev/null +++ b/plugins-core/qm/src/Text/TextExtractor.php @@ -0,0 +1,120 @@ + $this->pdf($path), + 'docx' => $this->xmlInZip($path, ['word/document.xml', 'word/header1.xml', 'word/footer1.xml']), + 'xlsx' => $this->xmlInZip($path, ['xl/sharedStrings.xml']), + 'pptx' => $this->xmlInZip($path, $this->zipEntries($path, '#^ppt/slides/slide\d+\.xml$#')), + 'odt', 'ods', 'odp' => $this->xmlInZip($path, ['content.xml']), + 'txt', 'csv' => (string) file_get_contents($path, length: self::MAX_CHARS), + default => null, + }; + } catch (Throwable $e) { + logger()->warning("QM: Text aus {$path} nicht lesbar: ".$e->getMessage()); + + return ['text' => null, 'status' => 'failed']; + } + + if ($text === null) { + return ['text' => null, 'status' => 'unsupported']; + } + + $text = self::normalize($text); + + return ['text' => $text === '' ? null : $text, 'status' => $text === '' ? 'empty' : 'ok']; + } + + public static function normalize(string $text): string + { + $text = mb_convert_encoding($text, 'UTF-8', 'UTF-8'); + $text = preg_replace('/[^\P{C}\n\t]+/u', ' ', $text) ?? ''; + $text = preg_replace('/[ \t\x{00A0}]+/u', ' ', $text) ?? ''; + $text = preg_replace('/\s*\n\s*/', "\n", $text) ?? ''; + + return mb_substr(trim($text), 0, self::MAX_CHARS); + } + + private function pdf(string $path): string + { + $parser = new Parser; + + return $parser->parseFile($path)->getText(); + } + + /** + * @param list $entries + */ + private function xmlInZip(string $path, array $entries): string + { + $zip = new ZipArchive; + + if ($zip->open($path) !== true) { + throw new \RuntimeException('Keine gültige Office-Datei.'); + } + + $text = ''; + + foreach ($entries as $entry) { + $xml = $zip->getFromName($entry); + + if ($xml !== false) { + // Absätze und Zellen als Zeilen, dann Tags entfernen. + $xml = preg_replace('##', "\n", $xml); + $text .= html_entity_decode(strip_tags((string) $xml), ENT_QUOTES | ENT_XML1, 'UTF-8')."\n"; + } + } + + $zip->close(); + + return $text; + } + + /** + * @return list + */ + private function zipEntries(string $path, string $pattern): array + { + $zip = new ZipArchive; + + if ($zip->open($path) !== true) { + return []; + } + + $names = []; + + for ($i = 0; $i < $zip->numFiles; $i++) { + $name = (string) $zip->getNameIndex($i); + + if (preg_match($pattern, $name)) { + $names[] = $name; + } + } + + $zip->close(); + natsort($names); + + return array_values($names); + } +} diff --git a/public/build/assets/Accordion-qBB3ElDl.js b/public/build/assets/Accordion-BX1-UHdr.js similarity index 98% rename from public/build/assets/Accordion-qBB3ElDl.js rename to public/build/assets/Accordion-BX1-UHdr.js index d406427e..a2632b94 100644 --- a/public/build/assets/Accordion-qBB3ElDl.js +++ b/public/build/assets/Accordion-BX1-UHdr.js @@ -1 +1 @@ -import{d as e,n as t,r as n,s as r}from"./usePrimitiveElement-BOk1PFhF.js";import{D as i,E as a,Ht as o,J as s,On as c,Tn as l,_ as u,b as d,bt as f,ct as p,et as m,g as h,k as g,mt as _,o as v,qt as y,tr as b,tt as x,v as S,vn as C,wt as w,xt as T,y as E}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as D}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{S as O,b as k,h as A,p as j}from"./dist-CleIz2GP.js";import{M}from"./AppIcon-BVHFLm12.js";import{C as N}from"./http-9R3L4KBg.js";import{n as P,t as F}from"./isValueEqualOrExist-BDaOcy4r.js";var[I,L]=e(`CollapsibleRoot`),R=g({__name:`CollapsibleRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=O(r,`open`,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=l(r);return L({contentId:``,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),A(),(e,t)=>(_(),S(c(j),{as:e.as,"as-child":r.asChild,"data-state":c(i)?`open`:`closed`,"data-disabled":c(a)?``:void 0},{default:y(()=>[T(e.$slots,`default`,{open:c(i)})]),_:3},8,[`as`,`as-child`,`data-state`,`data-disabled`]))}}),z=g({inheritAttrs:!1,__name:`CollapsibleContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`contentFound`],setup(e,{emit:r}){let a=e,s=r,l=I();l.contentId||=n(void 0,`reka-collapsible-content`);let u=C(),{forwardRef:d,currentElement:f}=A(),g=C(0),v=C(0),b=h(()=>l.open.value),w=C(b.value),D=C();o(()=>[b.value,u.value?.present],async()=>{await x();let e=f.value;if(!e)return;D.value=D.value||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();v.value=t.height,g.value=t.width,w.value||(e.style.transitionDuration=D.value.transitionDuration,e.style.animationName=D.value.animationName)},{immediate:!0});let O=h(()=>w.value&&l.open.value);return p(()=>{requestAnimationFrame(()=>{w.value=!1})}),k(f,`beforematch`,e=>{requestAnimationFrame(()=>{l.onOpenToggle(),s(`contentFound`)})}),(e,n)=>(_(),S(c(t),{ref_key:`presentRef`,ref:u,present:e.forceMount||c(l).open.value,"force-mount":!0},{default:y(({present:t})=>[i(c(j),m(e.$attrs,{id:c(l).contentId,ref:c(d),"as-child":a.asChild,as:e.as,hidden:t?void 0:c(l).unmountOnHide.value?``:`until-found`,"data-state":O.value?void 0:c(l).open.value?`open`:`closed`,"data-disabled":c(l).disabled?.value?``:void 0,style:{"--reka-collapsible-content-height":`${v.value}px`,"--reka-collapsible-content-width":`${g.value}px`}}),{default:y(()=>[!c(l).unmountOnHide.value||t?T(e.$slots,`default`,{key:0}):E(`v-if`,!0)]),_:2},1040,[`id`,`as-child`,`as`,`hidden`,`data-state`,`data-disabled`,`style`])]),_:3},8,[`present`]))}}),B=g({__name:`CollapsibleTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;A();let n=I();return(e,r)=>(_(),S(c(j),{type:e.as===`button`?`button`:void 0,as:e.as,"as-child":t.asChild,"aria-controls":c(n).contentId,"aria-expanded":c(n).open.value,"data-state":c(n).open.value?`open`:`closed`,"data-disabled":c(n).disabled?.value?``:void 0,disabled:c(n).disabled?.value,onClick:c(n).onOpenToggle},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`type`,`as`,`as-child`,`aria-controls`,`aria-expanded`,`data-state`,`data-disabled`,`disabled`,`onClick`]))}});function V({type:e,defaultValue:t,modelValue:n}){let r=n||t;return n!==void 0||t!==void 0?Array.isArray(r)?`multiple`:`single`:e??`single`}function H({type:e,defaultValue:t,modelValue:n}){return e||V({type:e,defaultValue:t,modelValue:n})}function U({type:e,defaultValue:t}){return t===void 0?e===`single`?void 0:[]:t}function W(e,t){let n=h(()=>H(e)),r=O(e,`modelValue`,t,{defaultValue:U(e),passive:e.modelValue===void 0,deep:!0});function i(e){if(n.value===`single`)r.value=P(e,r.value)?void 0:e;else{let t=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(F(t,e)){let n=t.findIndex(t=>P(t,e));t.splice(n,1)}else t.push(e);r.value=t}}return{modelValue:r,changeModelValue:i,isSingle:h(()=>n.value===`single`)}}var[G,K]=e(`AccordionRoot`),q=g({__name:`AccordionRoot`,props:{collapsible:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:`vertical`},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,i=t,{dir:a,disabled:o,unmountOnHide:s}=l(n),u=r(a),{modelValue:d,changeModelValue:f,isSingle:p}=W(n,i),{forwardRef:m,currentElement:h}=A();return K({disabled:o,direction:u,orientation:n.orientation,parentElement:h,isSingle:p,collapsible:n.collapsible,modelValue:d,changeModelValue:f,unmountOnHide:s}),(e,t)=>(_(),S(c(j),{ref:c(m),"as-child":e.asChild,as:e.as},{default:y(()=>[T(e.$slots,`default`,{modelValue:c(d)})]),_:3},8,[`as-child`,`as`]))}}),J=function(e){return e.Open=`open`,e.Closed=`closed`,e}(J||{}),[Y,X]=e(`AccordionItem`),Z=g({__name:`AccordionItem`,props:{disabled:{type:Boolean,required:!1},value:{type:String,required:!0},unmountOnHide:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){let n=e,r=G(),i=h(()=>r.isSingle.value?n.value===r.modelValue.value:Array.isArray(r.modelValue.value)&&r.modelValue.value.includes(n.value)),a=h(()=>r.disabled.value||n.disabled),o=h(()=>a.value?``:void 0),s=h(()=>i.value?J.Open:J.Closed);t({open:i,dataDisabled:o});let{currentRef:l,currentElement:u}=A();X({open:i,dataState:s,disabled:a,dataDisabled:o,triggerId:``,currentRef:l,currentElement:u,value:h(()=>n.value)});function d(e){let t=e.target;if(Array.from(r.parentElement.value?.querySelectorAll(`[data-reka-collection-item]`)??[]).findIndex(e=>e===t)===-1)return null;M(e,t,r.parentElement.value,{arrowKeyOptions:r.orientation,dir:r.direction.value,focus:!0})}return(e,t)=>(_(),S(c(R),{"data-orientation":c(r).orientation,"data-disabled":o.value,"data-state":s.value,disabled:a.value,open:i.value,as:n.as,"as-child":n.asChild,"unmount-on-hide":n.unmountOnHide??c(r).unmountOnHide.value,onKeydown:D(d,[`up`,`down`,`left`,`right`,`home`,`end`])},{default:y(()=>[T(e.$slots,`default`,{open:i.value})]),_:3},8,[`data-orientation`,`data-disabled`,`data-state`,`disabled`,`open`,`as`,`as-child`,`unmount-on-hide`]))}}),Q=g({__name:`AccordionContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=G(),r=Y();return A(),(e,i)=>(_(),S(c(z),{role:`region`,"as-child":t.asChild,as:e.as,"force-mount":t.forceMount,"aria-labelledby":c(r).triggerId,"data-state":c(r).dataState.value,"data-disabled":c(r).dataDisabled.value,"data-orientation":c(n).orientation,style:{"--reka-accordion-content-width":`var(--reka-collapsible-content-width)`,"--reka-accordion-content-height":`var(--reka-collapsible-content-height)`},onContentFound:i[0]||=e=>c(n).changeModelValue(c(r).value.value)},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`force-mount`,`aria-labelledby`,`data-state`,`data-disabled`,`data-orientation`]))}}),$=g({__name:`AccordionHeader`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h3`}},setup(e){let t=e,n=G(),r=Y();return A(),(e,i)=>(_(),S(c(j),{as:t.as,"as-child":t.asChild,"data-orientation":c(n).orientation,"data-state":c(r).dataState.value,"data-disabled":c(r).dataDisabled.value},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-orientation`,`data-state`,`data-disabled`]))}}),ee=g({__name:`AccordionTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,r=G(),i=Y();i.triggerId||=n(void 0,`reka-accordion-trigger`);function a(){let e=r.isSingle.value&&i.open.value&&!r.collapsible;i.disabled.value||e||r.changeModelValue(i.value.value)}return(e,n)=>(_(),S(c(B),{id:c(i).triggerId,ref:c(i).currentRef,"data-reka-collection-item":``,as:t.as,"as-child":t.asChild,"aria-disabled":c(i).disabled.value||void 0,"aria-expanded":c(i).open.value||!1,"data-disabled":c(i).dataDisabled.value,"data-orientation":c(r).orientation,"data-state":c(i).dataState.value,disabled:c(i).disabled.value,onClick:a},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`id`,`as`,`as-child`,`aria-disabled`,`aria-expanded`,`data-disabled`,`data-orientation`,`data-state`,`disabled`]))}}),te={class:`px-5 pt-1 pb-5`},ne={__name:`Accordion`,props:{block:{type:Object,required:!0}},setup(e){let t=e,n=s(`pagebuilder:list`),r=s(`pagebuilder:editing`,!1),o=h(()=>{let e=t.block.items[0]?.id;return t.block.data.multiple?t.block.data.first_open&&e?[e]:[]:t.block.data.first_open?e:void 0});return(t,s)=>(_(),S(c(q),{key:`${e.block.data.multiple}-${c(r)}`,type:e.block.data.multiple?`multiple`:`single`,"default-value":o.value,collapsible:``,class:`divide-y rounded-lg border bg-card`},{default:y(()=>[(_(!0),d(v,null,f(e.block.items,(e,t)=>(_(),S(c(Z),{key:e.id,value:e.id},{default:y(()=>[i(c($),{as:`h3`},{default:y(()=>[i(c(ee),{class:`group flex w-full items-center justify-between gap-4 px-5 py-4 text-left text-[15px] font-medium hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`},{default:y(()=>[a(b(e.title||`Abschnitt ${t+1}`)+` `,1),i(c(N),{class:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180`})]),_:2},1024)]),_:2},1024),i(c(Q),{class:`overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`},{default:y(()=>[u(`div`,te,[(_(),S(w(c(n)),{item:e},null,8,[`item`]))])]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1},8,[`type`,`default-value`]))}};export{ne as default}; \ No newline at end of file +import{d as e,n as t,r as n,s as r}from"./usePrimitiveElement-BOk1PFhF.js";import{D as i,E as a,Ht as o,J as s,On as c,Tn as l,_ as u,b as d,bt as f,ct as p,et as m,g as h,k as g,mt as _,o as v,qt as y,tr as b,tt as x,v as S,vn as C,wt as w,xt as T,y as E}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as D}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{S as O,b as k,h as A,p as j}from"./dist-CleIz2GP.js";import{M}from"./AppIcon-SVMShh8s.js";import{C as N}from"./http-9R3L4KBg.js";import{n as P,t as F}from"./isValueEqualOrExist-BDaOcy4r.js";var[I,L]=e(`CollapsibleRoot`),R=g({__name:`CollapsibleRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=O(r,`open`,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=l(r);return L({contentId:``,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),A(),(e,t)=>(_(),S(c(j),{as:e.as,"as-child":r.asChild,"data-state":c(i)?`open`:`closed`,"data-disabled":c(a)?``:void 0},{default:y(()=>[T(e.$slots,`default`,{open:c(i)})]),_:3},8,[`as`,`as-child`,`data-state`,`data-disabled`]))}}),z=g({inheritAttrs:!1,__name:`CollapsibleContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`contentFound`],setup(e,{emit:r}){let a=e,s=r,l=I();l.contentId||=n(void 0,`reka-collapsible-content`);let u=C(),{forwardRef:d,currentElement:f}=A(),g=C(0),v=C(0),b=h(()=>l.open.value),w=C(b.value),D=C();o(()=>[b.value,u.value?.present],async()=>{await x();let e=f.value;if(!e)return;D.value=D.value||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();v.value=t.height,g.value=t.width,w.value||(e.style.transitionDuration=D.value.transitionDuration,e.style.animationName=D.value.animationName)},{immediate:!0});let O=h(()=>w.value&&l.open.value);return p(()=>{requestAnimationFrame(()=>{w.value=!1})}),k(f,`beforematch`,e=>{requestAnimationFrame(()=>{l.onOpenToggle(),s(`contentFound`)})}),(e,n)=>(_(),S(c(t),{ref_key:`presentRef`,ref:u,present:e.forceMount||c(l).open.value,"force-mount":!0},{default:y(({present:t})=>[i(c(j),m(e.$attrs,{id:c(l).contentId,ref:c(d),"as-child":a.asChild,as:e.as,hidden:t?void 0:c(l).unmountOnHide.value?``:`until-found`,"data-state":O.value?void 0:c(l).open.value?`open`:`closed`,"data-disabled":c(l).disabled?.value?``:void 0,style:{"--reka-collapsible-content-height":`${v.value}px`,"--reka-collapsible-content-width":`${g.value}px`}}),{default:y(()=>[!c(l).unmountOnHide.value||t?T(e.$slots,`default`,{key:0}):E(`v-if`,!0)]),_:2},1040,[`id`,`as-child`,`as`,`hidden`,`data-state`,`data-disabled`,`style`])]),_:3},8,[`present`]))}}),B=g({__name:`CollapsibleTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;A();let n=I();return(e,r)=>(_(),S(c(j),{type:e.as===`button`?`button`:void 0,as:e.as,"as-child":t.asChild,"aria-controls":c(n).contentId,"aria-expanded":c(n).open.value,"data-state":c(n).open.value?`open`:`closed`,"data-disabled":c(n).disabled?.value?``:void 0,disabled:c(n).disabled?.value,onClick:c(n).onOpenToggle},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`type`,`as`,`as-child`,`aria-controls`,`aria-expanded`,`data-state`,`data-disabled`,`disabled`,`onClick`]))}});function V({type:e,defaultValue:t,modelValue:n}){let r=n||t;return n!==void 0||t!==void 0?Array.isArray(r)?`multiple`:`single`:e??`single`}function H({type:e,defaultValue:t,modelValue:n}){return e||V({type:e,defaultValue:t,modelValue:n})}function U({type:e,defaultValue:t}){return t===void 0?e===`single`?void 0:[]:t}function W(e,t){let n=h(()=>H(e)),r=O(e,`modelValue`,t,{defaultValue:U(e),passive:e.modelValue===void 0,deep:!0});function i(e){if(n.value===`single`)r.value=P(e,r.value)?void 0:e;else{let t=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(F(t,e)){let n=t.findIndex(t=>P(t,e));t.splice(n,1)}else t.push(e);r.value=t}}return{modelValue:r,changeModelValue:i,isSingle:h(()=>n.value===`single`)}}var[G,K]=e(`AccordionRoot`),q=g({__name:`AccordionRoot`,props:{collapsible:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:`vertical`},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,i=t,{dir:a,disabled:o,unmountOnHide:s}=l(n),u=r(a),{modelValue:d,changeModelValue:f,isSingle:p}=W(n,i),{forwardRef:m,currentElement:h}=A();return K({disabled:o,direction:u,orientation:n.orientation,parentElement:h,isSingle:p,collapsible:n.collapsible,modelValue:d,changeModelValue:f,unmountOnHide:s}),(e,t)=>(_(),S(c(j),{ref:c(m),"as-child":e.asChild,as:e.as},{default:y(()=>[T(e.$slots,`default`,{modelValue:c(d)})]),_:3},8,[`as-child`,`as`]))}}),J=function(e){return e.Open=`open`,e.Closed=`closed`,e}(J||{}),[Y,X]=e(`AccordionItem`),Z=g({__name:`AccordionItem`,props:{disabled:{type:Boolean,required:!1},value:{type:String,required:!0},unmountOnHide:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){let n=e,r=G(),i=h(()=>r.isSingle.value?n.value===r.modelValue.value:Array.isArray(r.modelValue.value)&&r.modelValue.value.includes(n.value)),a=h(()=>r.disabled.value||n.disabled),o=h(()=>a.value?``:void 0),s=h(()=>i.value?J.Open:J.Closed);t({open:i,dataDisabled:o});let{currentRef:l,currentElement:u}=A();X({open:i,dataState:s,disabled:a,dataDisabled:o,triggerId:``,currentRef:l,currentElement:u,value:h(()=>n.value)});function d(e){let t=e.target;if(Array.from(r.parentElement.value?.querySelectorAll(`[data-reka-collection-item]`)??[]).findIndex(e=>e===t)===-1)return null;M(e,t,r.parentElement.value,{arrowKeyOptions:r.orientation,dir:r.direction.value,focus:!0})}return(e,t)=>(_(),S(c(R),{"data-orientation":c(r).orientation,"data-disabled":o.value,"data-state":s.value,disabled:a.value,open:i.value,as:n.as,"as-child":n.asChild,"unmount-on-hide":n.unmountOnHide??c(r).unmountOnHide.value,onKeydown:D(d,[`up`,`down`,`left`,`right`,`home`,`end`])},{default:y(()=>[T(e.$slots,`default`,{open:i.value})]),_:3},8,[`data-orientation`,`data-disabled`,`data-state`,`disabled`,`open`,`as`,`as-child`,`unmount-on-hide`]))}}),Q=g({__name:`AccordionContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=G(),r=Y();return A(),(e,i)=>(_(),S(c(z),{role:`region`,"as-child":t.asChild,as:e.as,"force-mount":t.forceMount,"aria-labelledby":c(r).triggerId,"data-state":c(r).dataState.value,"data-disabled":c(r).dataDisabled.value,"data-orientation":c(n).orientation,style:{"--reka-accordion-content-width":`var(--reka-collapsible-content-width)`,"--reka-accordion-content-height":`var(--reka-collapsible-content-height)`},onContentFound:i[0]||=e=>c(n).changeModelValue(c(r).value.value)},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`force-mount`,`aria-labelledby`,`data-state`,`data-disabled`,`data-orientation`]))}}),$=g({__name:`AccordionHeader`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h3`}},setup(e){let t=e,n=G(),r=Y();return A(),(e,i)=>(_(),S(c(j),{as:t.as,"as-child":t.asChild,"data-orientation":c(n).orientation,"data-state":c(r).dataState.value,"data-disabled":c(r).dataDisabled.value},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-orientation`,`data-state`,`data-disabled`]))}}),ee=g({__name:`AccordionTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,r=G(),i=Y();i.triggerId||=n(void 0,`reka-accordion-trigger`);function a(){let e=r.isSingle.value&&i.open.value&&!r.collapsible;i.disabled.value||e||r.changeModelValue(i.value.value)}return(e,n)=>(_(),S(c(B),{id:c(i).triggerId,ref:c(i).currentRef,"data-reka-collection-item":``,as:t.as,"as-child":t.asChild,"aria-disabled":c(i).disabled.value||void 0,"aria-expanded":c(i).open.value||!1,"data-disabled":c(i).dataDisabled.value,"data-orientation":c(r).orientation,"data-state":c(i).dataState.value,disabled:c(i).disabled.value,onClick:a},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`id`,`as`,`as-child`,`aria-disabled`,`aria-expanded`,`data-disabled`,`data-orientation`,`data-state`,`disabled`]))}}),te={class:`px-5 pt-1 pb-5`},ne={__name:`Accordion`,props:{block:{type:Object,required:!0}},setup(e){let t=e,n=s(`pagebuilder:list`),r=s(`pagebuilder:editing`,!1),o=h(()=>{let e=t.block.items[0]?.id;return t.block.data.multiple?t.block.data.first_open&&e?[e]:[]:t.block.data.first_open?e:void 0});return(t,s)=>(_(),S(c(q),{key:`${e.block.data.multiple}-${c(r)}`,type:e.block.data.multiple?`multiple`:`single`,"default-value":o.value,collapsible:``,class:`divide-y rounded-lg border bg-card`},{default:y(()=>[(_(!0),d(v,null,f(e.block.items,(e,t)=>(_(),S(c(Z),{key:e.id,value:e.id},{default:y(()=>[i(c($),{as:`h3`},{default:y(()=>[i(c(ee),{class:`group flex w-full items-center justify-between gap-4 px-5 py-4 text-left text-[15px] font-medium hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`},{default:y(()=>[a(b(e.title||`Abschnitt ${t+1}`)+` `,1),i(c(N),{class:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180`})]),_:2},1024)]),_:2},1024),i(c(Q),{class:`overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`},{default:y(()=>[u(`div`,te,[(_(),S(w(c(n)),{item:e},null,8,[`item`]))])]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1},8,[`type`,`default-value`]))}};export{ne as default}; \ No newline at end of file diff --git a/public/build/assets/AppIcon-BVHFLm12.js b/public/build/assets/AppIcon-SVMShh8s.js similarity index 99% rename from public/build/assets/AppIcon-BVHFLm12.js rename to public/build/assets/AppIcon-SVMShh8s.js index 334eb646..6377e45f 100644 --- a/public/build/assets/AppIcon-BVHFLm12.js +++ b/public/build/assets/AppIcon-SVMShh8s.js @@ -1 +1 @@ -import{a as e,d as t,i as n,n as r,o as i,r as a,s as o,u as s}from"./usePrimitiveElement-BOk1PFhF.js";import{$n as c,D as l,E as u,Ht as d,On as f,Q as p,Tn as m,Ut as h,Yt as g,Zn as _,_ as v,b as y,ct as b,et as x,ft as ee,g as S,k as C,mt as w,qt as T,tr as te,tt as E,un as ne,v as D,vn as O,wt as re,xn as k,xt as A,y as j,z as M}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as ie,S as N,w as P}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o as ae}from"./app-CIvn5Z1l.js";import{O as oe,S as F,T as se,b as ce,d as I,h as L,j as R,o as z,p as B,w as le}from"./dist-CleIz2GP.js";import{c as ue,l as de,o as fe,s as pe,t as me}from"./RovingFocusGroup-NIVUjBd5.js";import{_ as he,b as ge,c as _e,d as ve,f as ye,g as be,h as xe,l as Se,m as Ce,p as V,s as we,u as Te,x as Ee,y as De}from"./http-9R3L4KBg.js";var Oe=R({name:`accessibility`,size:24,node:[[`circle`,{cx:`16`,cy:`4`,r:`1`,key:`1grugj`}],[`path`,{d:`m18 19 1-7-6 1`,key:`r0i19z`}],[`path`,{d:`m5 8 3-3 5.5 3-2.36 3.5`,key:`9ptxx2`}],[`path`,{d:`M4.24 14.5a5 5 0 0 0 6.88 6`,key:`10kmtu`}],[`path`,{d:`M13.76 17.5a5 5 0 0 0-6.88-6`,key:`2qq6rc`}]]}),ke=R({name:`baby`,size:24,node:[[`path`,{d:`M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5`,key:`1u7htd`}],[`path`,{d:`M15 12h.01`,key:`1k8ypt`}],[`path`,{d:`M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1`,key:`11xh7x`}],[`path`,{d:`M9 12h.01`,key:`157uk2`}]]}),H=R({name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]}),Ae=R({name:`bike`,size:24,node:[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]}),je=R({name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]}),Me=R({name:`briefcase`,size:24,node:[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]}),Ne=R({name:`bus`,size:24,node:[[`path`,{d:`M8 6v6`,key:`18i7km`}],[`path`,{d:`M15 6v6`,key:`1sg6z9`}],[`path`,{d:`M2 12h19.6`,key:`de5uta`}],[`path`,{d:`M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3`,key:`1wwztk`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}]]}),Pe=R({name:`cake`,size:24,node:[[`path`,{d:`M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8`,key:`1w3rig`}],[`path`,{d:`M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1`,key:`n2jgmb`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M7 8v3`,key:`1qtyvj`}],[`path`,{d:`M12 8v3`,key:`hwp4zt`}],[`path`,{d:`M17 8v3`,key:`1i6e5u`}],[`path`,{d:`M7 4h.01`,key:`1bh4kh`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M17 4h.01`,key:`1upcoc`}]]}),Fe=R({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`}]]}),Ie=R({name:`car`,size:24,node:[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]}),Le=R({name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]}),Re=R({name:`church`,size:24,node:[[`path`,{d:`M10 9h4`,key:`u4k05v`}],[`path`,{d:`M12 7v5`,key:`ma6bk`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`m18 9 3.52 2.147a1 1 0 0 1 .48.854V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.999a1 1 0 0 1 .48-.854L6 9`,key:`flvdwo`}],[`path`,{d:`M6 21V7a1 1 0 0 1 .376-.782l5-3.999a1 1 0 0 1 1.249.001l5 4A1 1 0 0 1 18 7v14`,key:`a5i0n2`}]]}),ze=R({name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]}),Be=R({name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]}),Ve=R({name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]}),He=R({name:`coffee`,size:24,node:[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]}),Ue=R({name:`euro`,size:24,node:[[`path`,{d:`M4 10h12`,key:`1y6xl8`}],[`path`,{d:`M4 14h9`,key:`1loblj`}],[`path`,{d:`M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2`,key:`1j6lzo`}]]}),We=R({name:`file-down`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]}),Ge=R({name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]}),Ke=R({name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]}),qe=R({name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),Je=R({name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]}),Ye=R({name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]}),Xe=R({name:`hammer`,size:24,node:[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]}),Ze=R({name:`handshake`,size:24,node:[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]}),Qe=R({name:`headset`,size:24,node:[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]}),$e=R({name:`heart-handshake`,size:24,node:[[`path`,{d:`M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762`,key:`17lmqv`}]]}),et=R({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`}]]}),tt=R({name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]}),nt=R({name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]}),rt=R({name:`landmark`,size:24,node:[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z`,key:`yxxwt6`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]}),it=R({name:`laptop`,size:24,node:[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]}),at=R({name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]}),ot=R({name:`leaf`,size:24,node:[[`path`,{d:`M11 20a10 10 0 0010-10 25.9 25.9 0 00-1.04-7.281 1 1 0 00-1.755-.325C15.833 5.5 13 5.5 9.8 6.1A7 7 0 0011 20`,key:`1wjnjv`}],[`path`,{d:`M2 21a5 5 0 012.911-4.544C7.613 15.212 8.351 15.24 11 13`,key:`c1ejpn`}]]}),st=R({name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]}),ct=R({name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]}),lt=R({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`}]]}),ut=R({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`}]]}),dt=R({name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]}),ft=R({name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]}),pt=R({name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]}),mt=R({name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]}),ht=R({name:`newspaper`,size:24,node:[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]}),gt=R({name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]}),_t=R({name:`printer`,size:24,node:[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]]}),vt=R({name:`receipt`,size:24,node:[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]}),yt=R({name:`scale`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]}),bt=R({name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]}),xt=R({name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]}),St=R({name:`shopping-cart`,size:24,node:[[`path`,{d:`m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18`,key:`uebgi3`}],[`path`,{d:`M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25`,key:`1j7c9p`}],[`circle`,{cx:`18`,cy:`20`,r:`2`,key:`t9985n`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),Ct=R({name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]}),wt=R({name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]}),Tt=R({name:`stethoscope`,size:24,node:[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]}),Et=R({name:`trophy`,size:24,node:[[`path`,{d:`M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2`,key:`pwuv1l`}],[`path`,{d:`M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2`,key:`1y54w1`}],[`path`,{d:`M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3`,key:`e30mpu`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3`,key:`i0yafy`}]]}),Dt=R({name:`truck`,size:24,node:[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]}),Ot=R({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`}]]}),kt=R({name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]}),At=R({name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]}),jt=R({name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]}),Mt=R({name:`utensils`,size:24,node:[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]],aliases:[`fork-knife`]}),Nt=R({name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]}),Pt=R({name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]}),Ft=[`INPUT`,`TEXTAREA`];function U(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Ft.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;return v||_?b=It(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function It(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;let i=e.indexOf(t),a;if(a=i===-1?n.goForward?0:e.length-1:n.goForward?i+1:i-1,!n.loop&&(a<0||a>=e.length))return null;let o=e[(a+e.length)%e.length];return o?o.hasAttribute(`disabled`)&&o.getAttribute(`disabled`)!==`false`?It(e,o,n,r):o:null}function Lt(e){let t=oe(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e)e(n);else{let e=s(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=zt(n.map(e=>e.textValue),t.value,i?.textValue),o=n.find(e=>e.textValue===a);return o&&o.ref.focus(),o?.ref}},resetTypeahead:()=>{t.value=``}}}function Rt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function zt(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Rt(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}var[W,Bt]=t(`DialogRoot`),Vt=C({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=F(n,`open`,t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=O(),a=O(),{modal:o,unmountOnHide:s}=m(n);return Bt({open:r,modal:o,unmountOnHide:s,openModal:()=>{r.value=!0},onOpenChange:e=>{r.value=e},onOpenToggle:()=>{r.value=!r.value},contentId:``,titleId:``,descriptionId:``,triggerElement:i,contentElement:a}),(e,t)=>A(e.$slots,`default`,{open:f(r),close:()=>r.value=!1})}}),Ht=C({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;L();let n=W();return(e,r)=>(w(),D(f(B),x(t,{type:e.as===`button`?`button`:void 0,onClick:r[0]||=e=>f(n).onOpenChange(!1)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`type`]))}}),Ut=`menu.itemSelect`,G=[`Enter`,` `],Wt=[`ArrowDown`,`PageUp`,`Home`],Gt=[`ArrowUp`,`PageDown`,`End`],Kt=[...Wt,...Gt];[...G],[...G];function qt(e){return e?`open`:`closed`}function Jt(e){return e===`indeterminate`}function Yt(e){return Jt(e)?`indeterminate`:e?`checked`:`unchecked`}function Xt(e){let t=s();for(let n of e)if(n===t||(n.focus(),s()!==t))return}function Zt(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Qt(e,t){return t?Zt({x:e.clientX,y:e.clientY},t):!1}function K(e){return e.pointerType===`mouse`}var $t=C({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=W(),{forwardRef:o,currentElement:c}=L();return i.titleId||=a(void 0,`reka-dialog-title`),i.descriptionId||=a(void 0,`reka-dialog-description`),b(()=>{i.contentElement=c,s()!==document.body&&(i.triggerElement.value=s())}),(e,t)=>(w(),D(f(ye),{"as-child":``,loop:``,trapped:n.trapFocus,present:n.present,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:T(()=>[l(f(V),x({id:f(i).contentId,ref:f(o),as:e.as,"as-child":e.asChild,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":f(i).descriptionId,"aria-labelledby":f(i).titleId,"data-state":f(qt)(f(i).open.value)},e.$attrs,{onDismiss:t[0]||=e=>f(i).onOpenChange(!1),onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[2]||=e=>r(`focusOutside`,e),onInteractOutside:t[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:t[4]||=e=>r(`pointerDownOutside`,e)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`present`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`,`present`]))}}),en=C({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,a=W(),o=i(r),{forwardRef:s,currentElement:c}=L(),l=S(()=>n.present?c.value:void 0);Ce(l);let u=S(()=>{let{present:e,...t}=n;return t});return d(()=>n.present,(e,t)=>{!e&&t&&a.triggerElement.value?.focus()}),(e,t)=>(w(),D($t,x({...u.value,...f(o)},{ref:f(s),present:e.present,"trap-focus":f(a).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(e.preventDefault(),f(a).triggerElement.value?.focus())},onPointerDownOutside:t[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()},onFocusOutside:t[2]||=e=>{e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`present`,`trap-focus`,`disable-outside-pointer-events`]))}}),tn=C({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=i(t);L();let a=W(),o=O(!1),s=O(!1),c=S(()=>{let{present:e,...t}=n;return t});return d(()=>n.present,(e,t)=>{!e&&t&&(o.value||a.triggerElement.value?.focus(),o.value=!1,s.value=!1)}),(e,t)=>(w(),D($t,x({...c.value,...f(r)},{present:e.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(o.value||f(a).triggerElement.value?.focus(),e.preventDefault()),o.value=!1,s.value=!1},onInteractOutside:t[1]||=e=>{e.defaultPrevented||(o.value=!0,e.detail.originalEvent.type===`pointerdown`&&(s.value=!0));let t=e.target;f(a).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&s.value&&e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`present`]))}}),nn=C({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,a=t,o=W(),s=i(a),{forwardRef:c}=L(),l=S(()=>n.forceMount||!o.unmountOnHide.value);return(e,t)=>(w(),D(f(r),{present:f(o).open.value,"force-mount":l.value},{default:T(({present:t})=>[f(o).modal.value?g((w(),D(en,x({key:0,ref:f(c),present:!l.value||t},{...n,...f(s),...e.$attrs}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`present`])),[[N,e.forceMount||f(o).unmountOnHide.value||t]]):g((w(),D(tn,x({key:1,ref:f(c),present:!l.value||t},{...n,...f(s),...e.$attrs}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`present`])),[[N,e.forceMount||f(o).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`]))}}),rn=C({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){let t=e,n=W(),r=be(t.present);return d(()=>t.present,e=>r.value=e),L(),(e,t)=>(w(),D(f(B),{as:e.as,"as-child":e.asChild,"data-state":f(n).open.value?`open`:`closed`,style:{"pointer-events":`auto`},onPointerdown:t[0]||=P(()=>{},[`left`,`self`,`prevent`])},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),an=C({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=W(),{forwardRef:i}=L(),a=S(()=>t.forceMount||!n.unmountOnHide.value);return(e,t)=>f(n)?.modal.value?(w(),D(f(r),{key:0,present:f(n).open.value,"force-mount":a.value},{default:T(({present:t})=>[g(l(rn,x(e.$attrs,{ref:f(i),as:e.as,"as-child":e.asChild,present:!a.value||t}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`as`,`as-child`,`present`]),[[N,e.forceMount||f(n).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`])):j(`v-if`,!0)}}),on=C({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(ve),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),sn=C({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=W();return L(),(e,r)=>(w(),D(f(B),x(t,{id:f(n).titleId}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`]))}}),[cn,ln]=t(`AvatarRoot`),un=C({__name:`AvatarRoot`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return L(),ln({imageLoadingStatus:O(`idle`)}),(e,t)=>(w(),D(f(B),{"as-child":e.asChild,as:e.as},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),dn=C({__name:`AvatarFallback`,props:{delayMs:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=cn();L();let r=O(t.delayMs===void 0);return h(e=>{if(t.delayMs&&se){let n=window.setTimeout(()=>{r.value=!0},t.delayMs);e(()=>{window.clearTimeout(n)})}}),(e,t)=>r.value&&f(n).imageLoadingStatus.value!==`loaded`?(w(),D(f(B),{key:0,"as-child":e.asChild,as:e.as},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`])):j(`v-if`,!0)}});function fn(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function pn(e,{referrerPolicy:t,crossOrigin:n}={}){let r=O(!1),i=O(null),a=S(()=>r.value?(!i.value&&se&&(i.value=new window.Image),i.value):null),o=O(fn(a.value,e.value)),s=e=>()=>{r.value&&(o.value=e)};return b(()=>{r.value=!0,h(r=>{let i=a.value;if(!i)return;o.value=fn(i,e.value);let c=s(`loaded`),l=s(`error`);i.addEventListener(`load`,c),i.addEventListener(`error`,l),t?.value&&(i.referrerPolicy=t.value),typeof n?.value==`string`&&(i.crossOrigin=n.value),r(()=>{i.removeEventListener(`load`,c),i.removeEventListener(`error`,l)})})}),ee(()=>{r.value=!1}),o}var mn=C({__name:`AvatarImage`,props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`img`}},emits:[`loadingStatusChange`],setup(e,{emit:t}){let n=e,r=t,{src:i,referrerPolicy:a,crossOrigin:o}=m(n);L();let s=cn(),c=pn(i,{referrerPolicy:a,crossOrigin:o});return d(c,e=>{r(`loadingStatusChange`,e),e!==`idle`&&(s.imageLoadingStatus.value=e)},{immediate:!0}),(e,t)=>g((w(),D(f(B),{role:`img`,"as-child":e.asChild,as:e.as,src:f(i),referrerpolicy:f(a),crossorigin:f(o)},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`src`,`referrerpolicy`,`crossorigin`])),[[N,f(c)===`loaded`]])}}),hn=C({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(Se),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}});function gn(){let e=O(!1);return b(()=>{ce(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),ce([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}var _n=le(gn),[q,vn]=t([`MenuRoot`,`MenuSub`],`MenuContext`),[J,yn]=t(`MenuRoot`),bn=C({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=m(n),s=o(a),c=F(n,`open`,r),l=O(),u=_n();return vn({open:c,onOpenChange:e=>{c.value=e},content:l,onContentChange:e=>{l.value=e}}),yn({onClose:()=>{c.value=!1},isUsingKeyboardRef:u,dir:s,modal:i}),(e,t)=>(w(),D(f(Te),null,{default:T(()=>[A(e.$slots,`default`)]),_:3}))}}),[xn,Sn]=t(`MenuContent`),Cn=C({__name:`MenuContentImpl`,props:p({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...we}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=q(),a=J(),{trapFocus:o,disableOutsidePointerEvents:c,loop:u}=m(n);xe(),be(c.value);let p=O(``),h=O(0),g=O(0),_=O(null),v=O(`right`),y=O(0),b=O(null),x=O(),{forwardRef:S,currentElement:C}=L(),{handleTypeaheadSearch:te}=Lt(),E=O();function ne(e){let t=U(e,E.value||s(),C.value,{loop:u.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!1,attributeName:`[data-reka-collection-item]:not([data-disabled])`});t&&(E.value=t,t.scrollIntoView({block:`nearest`}))}function re(){E.value&&E.value.click()}let k=O(),j=O();d(E,e=>{if(j.value&&(e===void 0||e!==j.value.trigger.value)){if(e===void 0)return;j.value.onOpenChange(!1),j.value=void 0}}),d(C,e=>{i.onContentChange(e)}),ee(()=>{window.clearTimeout(h.value)});function M(e){return v.value===_.value?.side&&Qt(e,_.value?.area)}async function ie(e){r(`openAutoFocus`,e),!e.defaultPrevented&&(e.preventDefault(),C.value?.focus({preventScroll:!0}))}function N(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=[`input`,`textarea`].includes(t.tagName.toLowerCase()),i=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1,c=U(e,s(),C.value,{loop:u.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(c)return c?.focus();if(e.code===`Space`)return;let l=x.value?.getItems()??[];if(n&&(e.key===`Tab`&&a.modal.value&&e.preventDefault(),!i&&o&&!r&&te(e.key,l)),e.target!==C.value||!Kt.includes(e.key))return;e.preventDefault();let d=[...l.map(e=>e.ref)];Gt.includes(e.key)&&d.reverse(),Xt(d)}function P(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(h.value),p.value=``)}function ae(e){if(!K(e))return;let t=e.target,n=y.value!==e.clientX;if((e?.currentTarget)?.contains(t)&&n){let t=e.clientX>y.value?`right`:`left`;v.value=t,y.value=e.clientX}}function oe(e){K(e)&&k.value&&k.value.focus()}return Sn({onItemEnter:e=>!!M(e),onItemLeave:e=>M(e)?!0:([`INPUT`,`TEXTAREA`].includes(s()?.tagName||``)||C.value?.focus(),b.value=null,!1),onTriggerLeave:e=>!!M(e),searchRef:p,highlightedElement:E,onKeydownNavigation:ne,onKeydownEnter:re,filterElement:k,onFilterElementChange:e=>{k.value=e},activeSubmenuContext:j,pointerGraceTimerRef:g,onPointerGraceIntentChange:e=>{_.value=e}}),(e,t)=>(w(),D(f(ye),{"as-child":``,trapped:f(o),onMountAutoFocus:ie,onUnmountAutoFocus:t[7]||=e=>r(`closeAutoFocus`,e)},{default:T(()=>[l(f(V),{"as-child":``,"disable-outside-pointer-events":f(c),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[4]||=e=>r(`focusOutside`,e),onInteractOutside:t[5]||=e=>r(`interactOutside`,e),onDismiss:t[6]||=e=>r(`dismiss`)},{default:T(()=>[l(f(me),{ref_key:`rovingFocusGroupRef`,ref:x,"current-tab-stop-id":b.value,"onUpdate:currentTabStopId":t[0]||=e=>b.value=e,"as-child":``,orientation:`vertical`,dir:f(a).dir.value,loop:f(u),onEntryFocus:t[1]||=e=>{r(`entryFocus`,e),f(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:T(()=>[l(f(_e),{ref:f(S),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":f(qt)(f(i).open.value),dir:f(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:N,onBlur:P,onPointermove:ae,onPointerenter:oe},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),wn=C({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=xn(),{forwardRef:r,currentElement:i}=L(),{CollectionItem:a}=fe(),o=O(!1),c=S(()=>o.value||i.value!=null&&n.highlightedElement.value===i.value);async function u(e){if(!e.defaultPrevented&&K(e)){if(t.disabled)n.onItemLeave(e);else if(!n.onItemEnter(e)){let t=e.currentTarget;n.highlightedElement.value=t,[`INPUT`,`TEXTAREA`].includes(s()?.tagName||``)||t.focus({preventScroll:!0})}}}async function d(e){await E(),!e.defaultPrevented&&K(e)&&n.highlightedElement.value===i.value&&!n.onItemLeave(e)&&n.highlightedElement.value===i.value&&(n.highlightedElement.value=void 0)}return(e,t)=>(w(),D(f(a),{value:{textValue:e.textValue}},{default:T(()=>[l(f(B),x({ref:f(r),role:`menuitem`,tabindex:`-1`},e.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":c.value?``:void 0,onPointermove:u,onPointerleave:d,onFocus:t[0]||=async t=>{let r=t.currentTarget;await E(),!(t.defaultPrevented||e.disabled)&&(o.value=!0,f(n).highlightedElement.value=r)},onBlur:t[1]||=async e=>{await E(),!e.defaultPrevented&&(o.value=!1)}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),Tn=C({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=L(),o=J(),s=xn(),c=O(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(Ut,{bubbles:!0,cancelable:!0});r(`select`,e),await E(),e.defaultPrevented?c.value=!1:o.onClose()}}return(e,t)=>(w(),D(wn,x(n,{ref:f(i),onClick:l,onPointerdown:t[0]||=()=>{c.value=!0},onPointerup:t[1]||=async e=>{await E(),!e.defaultPrevented&&(c.value||e.currentTarget?.click())},onKeydown:t[2]||=async t=>{let n=f(s).searchRef.value!==``;e.disabled||n&&t.key===` `||f(G).includes(t.key)&&(t.currentTarget?.click(),t.preventDefault())}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),En=C({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=n(r,i),o=q(),{forwardRef:s,currentElement:c}=L();return Ce(c),(e,t)=>(w(),D(Cn,x(f(a),{ref:f(s),"trap-focus":f(o).open.value,"disable-outside-pointer-events":f(o).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>f(o).onOpenChange(!1),onFocusOutside:t[1]||=P(e=>i(`focusOutside`,e),[`prevent`])}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),Dn=C({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=n(e,t),i=q();return(e,t)=>(w(),D(Cn,x(f(r),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>f(i).onOpenChange(!1)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),On=C({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let i=n(e,t),a=q(),o=J();return(e,t)=>(w(),D(f(r),{present:e.forceMount||f(a).open.value},{default:T(()=>[f(o).modal.value?(w(),D(En,c(x({key:0},{...e.$attrs,...f(i)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16)):(w(),D(Dn,c(x({key:1},{...e.$attrs,...f(i)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),kn=C({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(ve),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),An=C({__name:`MenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(B),x(t,{role:`separator`,"aria-orientation":`horizontal`}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),[jn,Mn]=t(`DropdownMenuRoot`),Nn=C({__name:`DropdownMenuRoot`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;L();let i=F(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=O(),{modal:s,dir:c}=m(n),l=o(c);return Mn({open:i,onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},triggerId:``,triggerElement:a,contentId:``,modal:s,dir:l}),(e,t)=>(w(),D(f(bn),{open:f(i),"onUpdate:open":t[0]||=e=>ne(i)?i.value=e:null,dir:f(l),modal:f(s)},{default:T(()=>[A(e.$slots,`default`,{open:f(i)})]),_:3},8,[`open`,`dir`,`modal`]))}}),Pn=C({__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let r=n(e,t);L();let i=jn(),o=O(!1);function s(e){e.defaultPrevented||(o.value||setTimeout(()=>{i.triggerElement.value?.focus()},0),o.value=!1,e.preventDefault())}return i.contentId||=a(void 0,`reka-dropdown-menu-content`),(e,t)=>(w(),D(f(On),x(f(r),{id:f(i).contentId,"aria-labelledby":f(i)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`},onCloseAutoFocus:s,onInteractOutside:t[0]||=e=>{if(e.defaultPrevented)return;let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!f(i).modal.value||r)&&(o.value=!0),f(i).triggerElement.value?.contains(e.target)&&e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`]))}}),Fn=C({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=i(t);return L(),(e,t)=>(w(),D(f(Tn),c(M({...n,...f(r)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),In=C({__name:`DropdownMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(kn),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Ln=C({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return L(),(e,n)=>(w(),D(f(An),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Rn=C({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=jn(),{forwardRef:r,currentElement:i}=L();return b(()=>{n.triggerElement=i}),n.triggerId||=a(void 0,`reka-dropdown-menu-trigger`),(e,i)=>(w(),D(f(hn),{"as-child":``},{default:T(()=>[l(f(B),{id:f(n).triggerId,ref:f(r),type:e.as===`button`?`button`:void 0,"as-child":t.asChild,as:e.as,"aria-haspopup":`menu`,"aria-expanded":f(n).open.value,"aria-controls":f(n).open.value?f(n).contentId:void 0,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,"data-state":f(n).open.value?`open`:`closed`,onClick:i[0]||=async t=>{!e.disabled&&t.button===0&&t.ctrlKey===!1&&(f(n)?.onOpenToggle(),await E(),f(n).open.value&&t.preventDefault())},onKeydown:i[1]||=ie(t=>{e.disabled||([`Enter`,` `].includes(t.key)&&f(n).onOpenToggle(),t.key===`ArrowDown`&&f(n).onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(t.key)&&t.preventDefault())},[`enter`,`space`,`arrow-down`])},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as-child`,`as`,`aria-expanded`,`aria-controls`,`data-disabled`,`disabled`,`data-state`])]),_:3}))}}),zn=C({__name:`Avatar`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(w(),D(f(un),{"data-slot":`avatar`,class:_(f(I)(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,t.class))},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`class`]))}}),Bn=C({__name:`AvatarFallback`,props:{delayMs:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=z(t,`class`);return(e,r)=>(w(),D(f(dn),x({"data-slot":`avatar-fallback`},f(n),{class:f(I)(`bg-muted flex size-full items-center justify-center rounded-full`,t.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Vn=C({__name:`AvatarImage`,props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(w(),D(f(mn),x({"data-slot":`avatar-image`},t,{class:`aspect-square size-full`}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Y=[{soft:`bg-sky-100 text-sky-800 dark:bg-sky-950 dark:text-sky-200`,bar:`bg-sky-500`,text:`text-sky-700 dark:text-sky-300`},{soft:`bg-emerald-100 text-emerald-800 dark:bg-emerald-950 dark:text-emerald-200`,bar:`bg-emerald-500`,text:`text-emerald-700 dark:text-emerald-300`},{soft:`bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-200`,bar:`bg-amber-500`,text:`text-amber-700 dark:text-amber-300`},{soft:`bg-rose-100 text-rose-800 dark:bg-rose-950 dark:text-rose-200`,bar:`bg-rose-500`,text:`text-rose-700 dark:text-rose-300`},{soft:`bg-violet-100 text-violet-800 dark:bg-violet-950 dark:text-violet-200`,bar:`bg-violet-500`,text:`text-violet-700 dark:text-violet-300`},{soft:`bg-teal-100 text-teal-800 dark:bg-teal-950 dark:text-teal-200`,bar:`bg-teal-500`,text:`text-teal-700 dark:text-teal-300`},{soft:`bg-orange-100 text-orange-800 dark:bg-orange-950 dark:text-orange-200`,bar:`bg-orange-500`,text:`text-orange-700 dark:text-orange-300`},{soft:`bg-indigo-100 text-indigo-800 dark:bg-indigo-950 dark:text-indigo-200`,bar:`bg-indigo-500`,text:`text-indigo-700 dark:text-indigo-300`}],Hn={soft:`bg-muted text-muted-foreground`,bar:`bg-border`,text:`text-muted-foreground`};function Un(e){let t=0;for(let n of String(e))t=t*31+n.codePointAt(0)>>>0;return t}function Wn(e){return e==null||e===``?Hn:Y[Un(typeof e==`string`?e.trim().toLowerCase():e)%Y.length]}var Gn={__name:`PersonAvatar`,props:{person:{type:Object,required:!0},class:{type:[String,Array,Object],default:``}},setup(e){let t=e,n=S(()=>Wn(t.person.id??t.person.name));return(t,r)=>(w(),D(f(zn),{class:_(f(I)(`size-10`,t.$props.class))},{default:T(()=>[e.person.avatar_url?(w(),D(f(Vn),{key:0,src:e.person.avatar_url,alt:e.person.name},null,8,[`src`,`alt`])):j(``,!0),l(f(Bn),{class:_([`font-semibold`,n.value.soft])},{default:T(()=>[u(te(e.person.initials),1)]),_:1},8,[`class`])]),_:1},8,[`class`]))}},Kn=C({__name:`Sheet`,props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(w(),D(f(Vt),x({"data-slot":`sheet`},f(r)),{default:T(t=>[A(e.$slots,`default`,c(M(t)))]),_:3},16))}}),qn=C({__name:`SheetOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=z(t,`class`);return(e,r)=>(w(),D(f(an),x({"data-slot":`sheet-overlay`,class:f(I)(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,t.class)},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Jn=C({inheritAttrs:!1,__name:`SheetContent`,props:{class:{type:[Boolean,null,String,Object,Array]},side:{default:`right`},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=z(r,`class`,`side`),o=n(a,i);return(t,n)=>(w(),D(f(on),null,{default:T(()=>[l(qn),l(f(nn),x({"data-slot":`sheet-content`,class:f(I)(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,e.side===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,e.side===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,e.side===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,e.side===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,r.class)},{...t.$attrs,...f(o)}),{default:T(()=>[A(t.$slots,`default`),l(f(Ht),{class:`ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none`},{default:T(()=>[l(f(he),{class:`size-4`}),n[0]||=v(`span`,{class:`sr-only`},`Schließen`,-1)]),_:1})]),_:3},16,[`class`])]),_:3}))}}),Yn=C({__name:`SheetHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(w(),y(`div`,{"data-slot":`sheet-header`,class:_(f(I)(`flex flex-col gap-1.5 p-4`,t.class))},[A(e.$slots,`default`)],2))}}),Xn=C({__name:`SheetTitle`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=z(t,`class`);return(e,r)=>(w(),D(f(sn),x({"data-slot":`sheet-title`,class:f(I)(`text-foreground font-semibold`,t.class)},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Zn=C({__name:`DropdownMenu`,props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(w(),D(f(Nn),x({"data-slot":`dropdown-menu`},f(r)),{default:T(t=>[A(e.$slots,`default`,c(M(t)))]),_:3},16))}}),Qn=C({inheritAttrs:!1,__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean},loop:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=z(r,`class`),o=n(a,i);return(e,t)=>(w(),D(f(In),null,{default:T(()=>[l(f(Pn),x({"data-slot":`dropdown-menu-content`},{...e.$attrs,...f(o)},{class:f(I)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,r.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`])]),_:3}))}}),$n=C({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean},variant:{default:`default`}},setup(t){let n=t,r=z(n,`inset`,`variant`,`class`),i=e(r);return(e,r)=>(w(),D(f(Fn),x({"data-slot":`dropdown-menu-item`,"data-inset":t.inset?``:void 0,"data-variant":t.variant},f(i),{class:f(I)(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`,n.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`data-inset`,`data-variant`,`class`]))}}),er=C({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=z(t,`class`);return(e,r)=>(w(),D(f(Ln),x({"data-slot":`dropdown-menu-separator`},f(n),{class:f(I)(`bg-border -mx-1 my-1 h-px`,t.class)}),null,16,[`class`]))}}),tr=C({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){let n=e(t);return(e,t)=>(w(),D(f(Rn),x({"data-slot":`dropdown-menu-trigger`},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),nr=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`,year:`numeric`}),rr=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`short`,year:`numeric`}),ir=new Intl.DateTimeFormat(`de-DE`,{hour:`2-digit`,minute:`2-digit`});new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`});var ar=new Intl.DateTimeFormat(`de-DE`,{month:`short`}),or=new Intl.DateTimeFormat(`de-DE`,{month:`long`,year:`numeric`}),X=new Intl.RelativeTimeFormat(`de-DE`,{numeric:`auto`}),sr=e=>nr.format(new Date(e)),Z=e=>rr.format(new Date(e)),Q=e=>ir.format(new Date(e)),cr=e=>or.format(new Date(e));function lr(e){let t=(new Date(e).getTime()-Date.now())/1e3,n=Math.abs(t);return n<60?`gerade eben`:n<3600?X.format(Math.round(t/60),`minute`):n<86400?X.format(Math.round(t/3600),`hour`):n<604800?X.format(Math.round(t/86400),`day`):sr(e)}function ur(e){let t=new Date(e);return{day:t.getDate(),month:ar.format(t).replace(`.`,``).toUpperCase()}}function dr(e){let t=new Date(e.starts_at),n=e.ends_at?new Date(e.ends_at):null,r=n&&t.toDateString()===n.toDateString();return e.all_day?n&&!r?`${Z(e.starts_at)} – ${Z(e.ends_at)}`:`${Z(e.starts_at)}, ganztägig`:n?r?`${Z(e.starts_at)}, ${Q(e.starts_at)} – ${Q(e.ends_at)} Uhr`:`${Z(e.starts_at)}, ${Q(e.starts_at)} Uhr – ${Z(e.ends_at)}, ${Q(e.ends_at)} Uhr`:`${Z(e.starts_at)}, ${Q(e.starts_at)} Uhr`}var fr={house:tt,newspaper:ht,"calendar-days":Fe,folder:qe,"folder-open":Ke,"file-text":Ge,"file-down":We,"clipboard-list":Be,users:jt,network:mt,"user-round":At,"user-plus":kt,cake:Pe,"layout-grid":at,info:Ee,"circle-help":ze,settings:xt,star:wt,bell:H,megaphone:dt,clock:Ve,plane:gt,receipt:vt,"graduation-cap":Ye,briefcase:Me,"list-checks":ge,"book-open":je,scale:yt,euro:Ue,"chart-column":Le,landmark:rt,"building-2":de,"map-pin":ut,"key-round":ue,"shopping-cart":St,truck:Dt,monitor:pt,laptop:it,headset:Qe,printer:_t,globe:Je,mail:lt,phone:De,"message-square":ft,link:ct,image:nt,video:Nt,"heart-handshake":$e,handshake:Ze,heart:et,stethoscope:Tt,baby:ke,church:Re,accessibility:Oe,"shield-check":pe,lightbulb:st,sparkles:Ct,trophy:Et,leaf:ot,utensils:Mt,coffee:He,car:Ie,bus:Ne,bike:Ae,wrench:Pt,hammer:Xe},$=k(null),pr=null;function mr(){return pr??=ae(()=>import(`./icon-set-B_oGzY3h.js`).then(e=>($.value={icons:e.default,aliases:e.aliases},$.value)),[]),pr}function hr(e){let t=$.value;return!t||!e?null:t.icons[e]??t.icons[t.aliases[e]]??null}var gr=[`stroke-width`,`innerHTML`],_r={__name:`AppIcon`,props:{name:{type:String,default:null},strokeWidth:{type:[Number,String],default:2}},setup(e){let t=e,n=S(()=>t.name?fr[t.name]:null),r=S(()=>n.value?null:hr(t.name));return h(()=>{t.name&&!n.value&&mr()}),(t,i)=>n.value?(w(),D(re(n.value),{key:0,"stroke-width":e.strokeWidth,"aria-hidden":`true`},null,8,[`stroke-width`])):e.name?(w(),y(`svg`,{key:1,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":e.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`,innerHTML:r.value??``},null,8,gr)):j(``,!0)}};export{Ge as $,Vt as A,ht as B,sn as C,Yt as D,nn as E,At as F,ut as G,pt as H,Ot as I,st as J,lt as K,wt as L,U as M,Nt as N,Jt as O,jt as P,Ke as Q,xt as R,Tn as S,an as T,ft as U,mt as V,dt as W,nt as X,at as Y,qe as Z,Yn as _,sr as a,H as at,Gn as b,lr as c,tr as d,We as et,er as f,Xn as g,Zn as h,ur as i,Pe as it,W as j,Ht as k,Z as l,Qn as m,$ as n,Be as nt,dr as o,$n as p,ct as q,mr as r,Fe as rt,cr as s,_r as t,Ve as tt,Q as u,Jn as v,on as w,Wn as x,Kn as y,bt as z}; \ No newline at end of file +import{a as e,d as t,i as n,n as r,o as i,r as a,s as o,u as s}from"./usePrimitiveElement-BOk1PFhF.js";import{$n as c,D as l,E as u,Ht as d,On as f,Q as p,Tn as m,Ut as h,Yt as g,Zn as _,_ as v,b as y,ct as b,et as x,ft as ee,g as S,k as C,mt as w,qt as T,tr as te,tt as E,un as ne,v as D,vn as O,wt as re,xn as k,xt as A,y as j,z as M}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as ie,S as N,w as P}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o as ae}from"./app-Dy5FbYkt.js";import{O as oe,S as F,T as se,b as ce,d as I,h as L,j as R,o as z,p as B,w as le}from"./dist-CleIz2GP.js";import{c as ue,l as de,o as fe,s as pe,t as me}from"./RovingFocusGroup-NIVUjBd5.js";import{_ as he,b as ge,c as _e,d as ve,f as ye,g as be,h as xe,l as Se,m as Ce,p as V,s as we,u as Te,x as Ee,y as De}from"./http-9R3L4KBg.js";var Oe=R({name:`accessibility`,size:24,node:[[`circle`,{cx:`16`,cy:`4`,r:`1`,key:`1grugj`}],[`path`,{d:`m18 19 1-7-6 1`,key:`r0i19z`}],[`path`,{d:`m5 8 3-3 5.5 3-2.36 3.5`,key:`9ptxx2`}],[`path`,{d:`M4.24 14.5a5 5 0 0 0 6.88 6`,key:`10kmtu`}],[`path`,{d:`M13.76 17.5a5 5 0 0 0-6.88-6`,key:`2qq6rc`}]]}),ke=R({name:`baby`,size:24,node:[[`path`,{d:`M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5`,key:`1u7htd`}],[`path`,{d:`M15 12h.01`,key:`1k8ypt`}],[`path`,{d:`M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1`,key:`11xh7x`}],[`path`,{d:`M9 12h.01`,key:`157uk2`}]]}),H=R({name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]}),Ae=R({name:`bike`,size:24,node:[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]}),je=R({name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]}),Me=R({name:`briefcase`,size:24,node:[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]}),Ne=R({name:`bus`,size:24,node:[[`path`,{d:`M8 6v6`,key:`18i7km`}],[`path`,{d:`M15 6v6`,key:`1sg6z9`}],[`path`,{d:`M2 12h19.6`,key:`de5uta`}],[`path`,{d:`M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3`,key:`1wwztk`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}]]}),Pe=R({name:`cake`,size:24,node:[[`path`,{d:`M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8`,key:`1w3rig`}],[`path`,{d:`M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1`,key:`n2jgmb`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M7 8v3`,key:`1qtyvj`}],[`path`,{d:`M12 8v3`,key:`hwp4zt`}],[`path`,{d:`M17 8v3`,key:`1i6e5u`}],[`path`,{d:`M7 4h.01`,key:`1bh4kh`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M17 4h.01`,key:`1upcoc`}]]}),Fe=R({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`}]]}),Ie=R({name:`car`,size:24,node:[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]}),Le=R({name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]}),Re=R({name:`church`,size:24,node:[[`path`,{d:`M10 9h4`,key:`u4k05v`}],[`path`,{d:`M12 7v5`,key:`ma6bk`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`m18 9 3.52 2.147a1 1 0 0 1 .48.854V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.999a1 1 0 0 1 .48-.854L6 9`,key:`flvdwo`}],[`path`,{d:`M6 21V7a1 1 0 0 1 .376-.782l5-3.999a1 1 0 0 1 1.249.001l5 4A1 1 0 0 1 18 7v14`,key:`a5i0n2`}]]}),ze=R({name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]}),Be=R({name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]}),Ve=R({name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]}),He=R({name:`coffee`,size:24,node:[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]}),Ue=R({name:`euro`,size:24,node:[[`path`,{d:`M4 10h12`,key:`1y6xl8`}],[`path`,{d:`M4 14h9`,key:`1loblj`}],[`path`,{d:`M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2`,key:`1j6lzo`}]]}),We=R({name:`file-down`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]}),Ge=R({name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]}),Ke=R({name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]}),qe=R({name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),Je=R({name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]}),Ye=R({name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]}),Xe=R({name:`hammer`,size:24,node:[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]}),Ze=R({name:`handshake`,size:24,node:[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]}),Qe=R({name:`headset`,size:24,node:[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]}),$e=R({name:`heart-handshake`,size:24,node:[[`path`,{d:`M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762`,key:`17lmqv`}]]}),et=R({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`}]]}),tt=R({name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]}),nt=R({name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]}),rt=R({name:`landmark`,size:24,node:[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z`,key:`yxxwt6`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]}),it=R({name:`laptop`,size:24,node:[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]}),at=R({name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]}),ot=R({name:`leaf`,size:24,node:[[`path`,{d:`M11 20a10 10 0 0010-10 25.9 25.9 0 00-1.04-7.281 1 1 0 00-1.755-.325C15.833 5.5 13 5.5 9.8 6.1A7 7 0 0011 20`,key:`1wjnjv`}],[`path`,{d:`M2 21a5 5 0 012.911-4.544C7.613 15.212 8.351 15.24 11 13`,key:`c1ejpn`}]]}),st=R({name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]}),ct=R({name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]}),lt=R({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`}]]}),ut=R({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`}]]}),dt=R({name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]}),ft=R({name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]}),pt=R({name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]}),mt=R({name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]}),ht=R({name:`newspaper`,size:24,node:[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]}),gt=R({name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]}),_t=R({name:`printer`,size:24,node:[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]]}),vt=R({name:`receipt`,size:24,node:[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]}),yt=R({name:`scale`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]}),bt=R({name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]}),xt=R({name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]}),St=R({name:`shopping-cart`,size:24,node:[[`path`,{d:`m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18`,key:`uebgi3`}],[`path`,{d:`M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25`,key:`1j7c9p`}],[`circle`,{cx:`18`,cy:`20`,r:`2`,key:`t9985n`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),Ct=R({name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]}),wt=R({name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]}),Tt=R({name:`stethoscope`,size:24,node:[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]}),Et=R({name:`trophy`,size:24,node:[[`path`,{d:`M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2`,key:`pwuv1l`}],[`path`,{d:`M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2`,key:`1y54w1`}],[`path`,{d:`M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3`,key:`e30mpu`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3`,key:`i0yafy`}]]}),Dt=R({name:`truck`,size:24,node:[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]}),Ot=R({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`}]]}),kt=R({name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]}),At=R({name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]}),jt=R({name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]}),Mt=R({name:`utensils`,size:24,node:[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]],aliases:[`fork-knife`]}),Nt=R({name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]}),Pt=R({name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]}),Ft=[`INPUT`,`TEXTAREA`];function U(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Ft.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;return v||_?b=It(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function It(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;let i=e.indexOf(t),a;if(a=i===-1?n.goForward?0:e.length-1:n.goForward?i+1:i-1,!n.loop&&(a<0||a>=e.length))return null;let o=e[(a+e.length)%e.length];return o?o.hasAttribute(`disabled`)&&o.getAttribute(`disabled`)!==`false`?It(e,o,n,r):o:null}function Lt(e){let t=oe(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e)e(n);else{let e=s(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=zt(n.map(e=>e.textValue),t.value,i?.textValue),o=n.find(e=>e.textValue===a);return o&&o.ref.focus(),o?.ref}},resetTypeahead:()=>{t.value=``}}}function Rt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function zt(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Rt(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}var[W,Bt]=t(`DialogRoot`),Vt=C({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=F(n,`open`,t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=O(),a=O(),{modal:o,unmountOnHide:s}=m(n);return Bt({open:r,modal:o,unmountOnHide:s,openModal:()=>{r.value=!0},onOpenChange:e=>{r.value=e},onOpenToggle:()=>{r.value=!r.value},contentId:``,titleId:``,descriptionId:``,triggerElement:i,contentElement:a}),(e,t)=>A(e.$slots,`default`,{open:f(r),close:()=>r.value=!1})}}),Ht=C({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;L();let n=W();return(e,r)=>(w(),D(f(B),x(t,{type:e.as===`button`?`button`:void 0,onClick:r[0]||=e=>f(n).onOpenChange(!1)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`type`]))}}),Ut=`menu.itemSelect`,G=[`Enter`,` `],Wt=[`ArrowDown`,`PageUp`,`Home`],Gt=[`ArrowUp`,`PageDown`,`End`],Kt=[...Wt,...Gt];[...G],[...G];function qt(e){return e?`open`:`closed`}function Jt(e){return e===`indeterminate`}function Yt(e){return Jt(e)?`indeterminate`:e?`checked`:`unchecked`}function Xt(e){let t=s();for(let n of e)if(n===t||(n.focus(),s()!==t))return}function Zt(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Qt(e,t){return t?Zt({x:e.clientX,y:e.clientY},t):!1}function K(e){return e.pointerType===`mouse`}var $t=C({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=W(),{forwardRef:o,currentElement:c}=L();return i.titleId||=a(void 0,`reka-dialog-title`),i.descriptionId||=a(void 0,`reka-dialog-description`),b(()=>{i.contentElement=c,s()!==document.body&&(i.triggerElement.value=s())}),(e,t)=>(w(),D(f(ye),{"as-child":``,loop:``,trapped:n.trapFocus,present:n.present,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:T(()=>[l(f(V),x({id:f(i).contentId,ref:f(o),as:e.as,"as-child":e.asChild,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":f(i).descriptionId,"aria-labelledby":f(i).titleId,"data-state":f(qt)(f(i).open.value)},e.$attrs,{onDismiss:t[0]||=e=>f(i).onOpenChange(!1),onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[2]||=e=>r(`focusOutside`,e),onInteractOutside:t[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:t[4]||=e=>r(`pointerDownOutside`,e)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`present`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`,`present`]))}}),en=C({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,a=W(),o=i(r),{forwardRef:s,currentElement:c}=L(),l=S(()=>n.present?c.value:void 0);Ce(l);let u=S(()=>{let{present:e,...t}=n;return t});return d(()=>n.present,(e,t)=>{!e&&t&&a.triggerElement.value?.focus()}),(e,t)=>(w(),D($t,x({...u.value,...f(o)},{ref:f(s),present:e.present,"trap-focus":f(a).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(e.preventDefault(),f(a).triggerElement.value?.focus())},onPointerDownOutside:t[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()},onFocusOutside:t[2]||=e=>{e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`present`,`trap-focus`,`disable-outside-pointer-events`]))}}),tn=C({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=i(t);L();let a=W(),o=O(!1),s=O(!1),c=S(()=>{let{present:e,...t}=n;return t});return d(()=>n.present,(e,t)=>{!e&&t&&(o.value||a.triggerElement.value?.focus(),o.value=!1,s.value=!1)}),(e,t)=>(w(),D($t,x({...c.value,...f(r)},{present:e.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(o.value||f(a).triggerElement.value?.focus(),e.preventDefault()),o.value=!1,s.value=!1},onInteractOutside:t[1]||=e=>{e.defaultPrevented||(o.value=!0,e.detail.originalEvent.type===`pointerdown`&&(s.value=!0));let t=e.target;f(a).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&s.value&&e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`present`]))}}),nn=C({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,a=t,o=W(),s=i(a),{forwardRef:c}=L(),l=S(()=>n.forceMount||!o.unmountOnHide.value);return(e,t)=>(w(),D(f(r),{present:f(o).open.value,"force-mount":l.value},{default:T(({present:t})=>[f(o).modal.value?g((w(),D(en,x({key:0,ref:f(c),present:!l.value||t},{...n,...f(s),...e.$attrs}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`present`])),[[N,e.forceMount||f(o).unmountOnHide.value||t]]):g((w(),D(tn,x({key:1,ref:f(c),present:!l.value||t},{...n,...f(s),...e.$attrs}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`present`])),[[N,e.forceMount||f(o).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`]))}}),rn=C({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){let t=e,n=W(),r=be(t.present);return d(()=>t.present,e=>r.value=e),L(),(e,t)=>(w(),D(f(B),{as:e.as,"as-child":e.asChild,"data-state":f(n).open.value?`open`:`closed`,style:{"pointer-events":`auto`},onPointerdown:t[0]||=P(()=>{},[`left`,`self`,`prevent`])},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),an=C({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=W(),{forwardRef:i}=L(),a=S(()=>t.forceMount||!n.unmountOnHide.value);return(e,t)=>f(n)?.modal.value?(w(),D(f(r),{key:0,present:f(n).open.value,"force-mount":a.value},{default:T(({present:t})=>[g(l(rn,x(e.$attrs,{ref:f(i),as:e.as,"as-child":e.asChild,present:!a.value||t}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`as`,`as-child`,`present`]),[[N,e.forceMount||f(n).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`])):j(`v-if`,!0)}}),on=C({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(ve),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),sn=C({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=W();return L(),(e,r)=>(w(),D(f(B),x(t,{id:f(n).titleId}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`]))}}),[cn,ln]=t(`AvatarRoot`),un=C({__name:`AvatarRoot`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return L(),ln({imageLoadingStatus:O(`idle`)}),(e,t)=>(w(),D(f(B),{"as-child":e.asChild,as:e.as},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),dn=C({__name:`AvatarFallback`,props:{delayMs:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=cn();L();let r=O(t.delayMs===void 0);return h(e=>{if(t.delayMs&&se){let n=window.setTimeout(()=>{r.value=!0},t.delayMs);e(()=>{window.clearTimeout(n)})}}),(e,t)=>r.value&&f(n).imageLoadingStatus.value!==`loaded`?(w(),D(f(B),{key:0,"as-child":e.asChild,as:e.as},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`])):j(`v-if`,!0)}});function fn(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function pn(e,{referrerPolicy:t,crossOrigin:n}={}){let r=O(!1),i=O(null),a=S(()=>r.value?(!i.value&&se&&(i.value=new window.Image),i.value):null),o=O(fn(a.value,e.value)),s=e=>()=>{r.value&&(o.value=e)};return b(()=>{r.value=!0,h(r=>{let i=a.value;if(!i)return;o.value=fn(i,e.value);let c=s(`loaded`),l=s(`error`);i.addEventListener(`load`,c),i.addEventListener(`error`,l),t?.value&&(i.referrerPolicy=t.value),typeof n?.value==`string`&&(i.crossOrigin=n.value),r(()=>{i.removeEventListener(`load`,c),i.removeEventListener(`error`,l)})})}),ee(()=>{r.value=!1}),o}var mn=C({__name:`AvatarImage`,props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`img`}},emits:[`loadingStatusChange`],setup(e,{emit:t}){let n=e,r=t,{src:i,referrerPolicy:a,crossOrigin:o}=m(n);L();let s=cn(),c=pn(i,{referrerPolicy:a,crossOrigin:o});return d(c,e=>{r(`loadingStatusChange`,e),e!==`idle`&&(s.imageLoadingStatus.value=e)},{immediate:!0}),(e,t)=>g((w(),D(f(B),{role:`img`,"as-child":e.asChild,as:e.as,src:f(i),referrerpolicy:f(a),crossorigin:f(o)},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`src`,`referrerpolicy`,`crossorigin`])),[[N,f(c)===`loaded`]])}}),hn=C({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(Se),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}});function gn(){let e=O(!1);return b(()=>{ce(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),ce([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}var _n=le(gn),[q,vn]=t([`MenuRoot`,`MenuSub`],`MenuContext`),[J,yn]=t(`MenuRoot`),bn=C({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=m(n),s=o(a),c=F(n,`open`,r),l=O(),u=_n();return vn({open:c,onOpenChange:e=>{c.value=e},content:l,onContentChange:e=>{l.value=e}}),yn({onClose:()=>{c.value=!1},isUsingKeyboardRef:u,dir:s,modal:i}),(e,t)=>(w(),D(f(Te),null,{default:T(()=>[A(e.$slots,`default`)]),_:3}))}}),[xn,Sn]=t(`MenuContent`),Cn=C({__name:`MenuContentImpl`,props:p({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...we}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=q(),a=J(),{trapFocus:o,disableOutsidePointerEvents:c,loop:u}=m(n);xe(),be(c.value);let p=O(``),h=O(0),g=O(0),_=O(null),v=O(`right`),y=O(0),b=O(null),x=O(),{forwardRef:S,currentElement:C}=L(),{handleTypeaheadSearch:te}=Lt(),E=O();function ne(e){let t=U(e,E.value||s(),C.value,{loop:u.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!1,attributeName:`[data-reka-collection-item]:not([data-disabled])`});t&&(E.value=t,t.scrollIntoView({block:`nearest`}))}function re(){E.value&&E.value.click()}let k=O(),j=O();d(E,e=>{if(j.value&&(e===void 0||e!==j.value.trigger.value)){if(e===void 0)return;j.value.onOpenChange(!1),j.value=void 0}}),d(C,e=>{i.onContentChange(e)}),ee(()=>{window.clearTimeout(h.value)});function M(e){return v.value===_.value?.side&&Qt(e,_.value?.area)}async function ie(e){r(`openAutoFocus`,e),!e.defaultPrevented&&(e.preventDefault(),C.value?.focus({preventScroll:!0}))}function N(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=[`input`,`textarea`].includes(t.tagName.toLowerCase()),i=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1,c=U(e,s(),C.value,{loop:u.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(c)return c?.focus();if(e.code===`Space`)return;let l=x.value?.getItems()??[];if(n&&(e.key===`Tab`&&a.modal.value&&e.preventDefault(),!i&&o&&!r&&te(e.key,l)),e.target!==C.value||!Kt.includes(e.key))return;e.preventDefault();let d=[...l.map(e=>e.ref)];Gt.includes(e.key)&&d.reverse(),Xt(d)}function P(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(h.value),p.value=``)}function ae(e){if(!K(e))return;let t=e.target,n=y.value!==e.clientX;if((e?.currentTarget)?.contains(t)&&n){let t=e.clientX>y.value?`right`:`left`;v.value=t,y.value=e.clientX}}function oe(e){K(e)&&k.value&&k.value.focus()}return Sn({onItemEnter:e=>!!M(e),onItemLeave:e=>M(e)?!0:([`INPUT`,`TEXTAREA`].includes(s()?.tagName||``)||C.value?.focus(),b.value=null,!1),onTriggerLeave:e=>!!M(e),searchRef:p,highlightedElement:E,onKeydownNavigation:ne,onKeydownEnter:re,filterElement:k,onFilterElementChange:e=>{k.value=e},activeSubmenuContext:j,pointerGraceTimerRef:g,onPointerGraceIntentChange:e=>{_.value=e}}),(e,t)=>(w(),D(f(ye),{"as-child":``,trapped:f(o),onMountAutoFocus:ie,onUnmountAutoFocus:t[7]||=e=>r(`closeAutoFocus`,e)},{default:T(()=>[l(f(V),{"as-child":``,"disable-outside-pointer-events":f(c),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[4]||=e=>r(`focusOutside`,e),onInteractOutside:t[5]||=e=>r(`interactOutside`,e),onDismiss:t[6]||=e=>r(`dismiss`)},{default:T(()=>[l(f(me),{ref_key:`rovingFocusGroupRef`,ref:x,"current-tab-stop-id":b.value,"onUpdate:currentTabStopId":t[0]||=e=>b.value=e,"as-child":``,orientation:`vertical`,dir:f(a).dir.value,loop:f(u),onEntryFocus:t[1]||=e=>{r(`entryFocus`,e),f(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:T(()=>[l(f(_e),{ref:f(S),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":f(qt)(f(i).open.value),dir:f(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:N,onBlur:P,onPointermove:ae,onPointerenter:oe},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),wn=C({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=xn(),{forwardRef:r,currentElement:i}=L(),{CollectionItem:a}=fe(),o=O(!1),c=S(()=>o.value||i.value!=null&&n.highlightedElement.value===i.value);async function u(e){if(!e.defaultPrevented&&K(e)){if(t.disabled)n.onItemLeave(e);else if(!n.onItemEnter(e)){let t=e.currentTarget;n.highlightedElement.value=t,[`INPUT`,`TEXTAREA`].includes(s()?.tagName||``)||t.focus({preventScroll:!0})}}}async function d(e){await E(),!e.defaultPrevented&&K(e)&&n.highlightedElement.value===i.value&&!n.onItemLeave(e)&&n.highlightedElement.value===i.value&&(n.highlightedElement.value=void 0)}return(e,t)=>(w(),D(f(a),{value:{textValue:e.textValue}},{default:T(()=>[l(f(B),x({ref:f(r),role:`menuitem`,tabindex:`-1`},e.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":c.value?``:void 0,onPointermove:u,onPointerleave:d,onFocus:t[0]||=async t=>{let r=t.currentTarget;await E(),!(t.defaultPrevented||e.disabled)&&(o.value=!0,f(n).highlightedElement.value=r)},onBlur:t[1]||=async e=>{await E(),!e.defaultPrevented&&(o.value=!1)}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),Tn=C({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=L(),o=J(),s=xn(),c=O(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(Ut,{bubbles:!0,cancelable:!0});r(`select`,e),await E(),e.defaultPrevented?c.value=!1:o.onClose()}}return(e,t)=>(w(),D(wn,x(n,{ref:f(i),onClick:l,onPointerdown:t[0]||=()=>{c.value=!0},onPointerup:t[1]||=async e=>{await E(),!e.defaultPrevented&&(c.value||e.currentTarget?.click())},onKeydown:t[2]||=async t=>{let n=f(s).searchRef.value!==``;e.disabled||n&&t.key===` `||f(G).includes(t.key)&&(t.currentTarget?.click(),t.preventDefault())}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),En=C({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=n(r,i),o=q(),{forwardRef:s,currentElement:c}=L();return Ce(c),(e,t)=>(w(),D(Cn,x(f(a),{ref:f(s),"trap-focus":f(o).open.value,"disable-outside-pointer-events":f(o).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>f(o).onOpenChange(!1),onFocusOutside:t[1]||=P(e=>i(`focusOutside`,e),[`prevent`])}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),Dn=C({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=n(e,t),i=q();return(e,t)=>(w(),D(Cn,x(f(r),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>f(i).onOpenChange(!1)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),On=C({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let i=n(e,t),a=q(),o=J();return(e,t)=>(w(),D(f(r),{present:e.forceMount||f(a).open.value},{default:T(()=>[f(o).modal.value?(w(),D(En,c(x({key:0},{...e.$attrs,...f(i)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16)):(w(),D(Dn,c(x({key:1},{...e.$attrs,...f(i)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),kn=C({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(ve),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),An=C({__name:`MenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(B),x(t,{role:`separator`,"aria-orientation":`horizontal`}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),[jn,Mn]=t(`DropdownMenuRoot`),Nn=C({__name:`DropdownMenuRoot`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;L();let i=F(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=O(),{modal:s,dir:c}=m(n),l=o(c);return Mn({open:i,onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},triggerId:``,triggerElement:a,contentId:``,modal:s,dir:l}),(e,t)=>(w(),D(f(bn),{open:f(i),"onUpdate:open":t[0]||=e=>ne(i)?i.value=e:null,dir:f(l),modal:f(s)},{default:T(()=>[A(e.$slots,`default`,{open:f(i)})]),_:3},8,[`open`,`dir`,`modal`]))}}),Pn=C({__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let r=n(e,t);L();let i=jn(),o=O(!1);function s(e){e.defaultPrevented||(o.value||setTimeout(()=>{i.triggerElement.value?.focus()},0),o.value=!1,e.preventDefault())}return i.contentId||=a(void 0,`reka-dropdown-menu-content`),(e,t)=>(w(),D(f(On),x(f(r),{id:f(i).contentId,"aria-labelledby":f(i)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`},onCloseAutoFocus:s,onInteractOutside:t[0]||=e=>{if(e.defaultPrevented)return;let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!f(i).modal.value||r)&&(o.value=!0),f(i).triggerElement.value?.contains(e.target)&&e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`]))}}),Fn=C({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=i(t);return L(),(e,t)=>(w(),D(f(Tn),c(M({...n,...f(r)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),In=C({__name:`DropdownMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(kn),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Ln=C({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return L(),(e,n)=>(w(),D(f(An),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Rn=C({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=jn(),{forwardRef:r,currentElement:i}=L();return b(()=>{n.triggerElement=i}),n.triggerId||=a(void 0,`reka-dropdown-menu-trigger`),(e,i)=>(w(),D(f(hn),{"as-child":``},{default:T(()=>[l(f(B),{id:f(n).triggerId,ref:f(r),type:e.as===`button`?`button`:void 0,"as-child":t.asChild,as:e.as,"aria-haspopup":`menu`,"aria-expanded":f(n).open.value,"aria-controls":f(n).open.value?f(n).contentId:void 0,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,"data-state":f(n).open.value?`open`:`closed`,onClick:i[0]||=async t=>{!e.disabled&&t.button===0&&t.ctrlKey===!1&&(f(n)?.onOpenToggle(),await E(),f(n).open.value&&t.preventDefault())},onKeydown:i[1]||=ie(t=>{e.disabled||([`Enter`,` `].includes(t.key)&&f(n).onOpenToggle(),t.key===`ArrowDown`&&f(n).onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(t.key)&&t.preventDefault())},[`enter`,`space`,`arrow-down`])},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as-child`,`as`,`aria-expanded`,`aria-controls`,`data-disabled`,`disabled`,`data-state`])]),_:3}))}}),zn=C({__name:`Avatar`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(w(),D(f(un),{"data-slot":`avatar`,class:_(f(I)(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,t.class))},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`class`]))}}),Bn=C({__name:`AvatarFallback`,props:{delayMs:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=z(t,`class`);return(e,r)=>(w(),D(f(dn),x({"data-slot":`avatar-fallback`},f(n),{class:f(I)(`bg-muted flex size-full items-center justify-center rounded-full`,t.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Vn=C({__name:`AvatarImage`,props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(w(),D(f(mn),x({"data-slot":`avatar-image`},t,{class:`aspect-square size-full`}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Y=[{soft:`bg-sky-100 text-sky-800 dark:bg-sky-950 dark:text-sky-200`,bar:`bg-sky-500`,text:`text-sky-700 dark:text-sky-300`},{soft:`bg-emerald-100 text-emerald-800 dark:bg-emerald-950 dark:text-emerald-200`,bar:`bg-emerald-500`,text:`text-emerald-700 dark:text-emerald-300`},{soft:`bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-200`,bar:`bg-amber-500`,text:`text-amber-700 dark:text-amber-300`},{soft:`bg-rose-100 text-rose-800 dark:bg-rose-950 dark:text-rose-200`,bar:`bg-rose-500`,text:`text-rose-700 dark:text-rose-300`},{soft:`bg-violet-100 text-violet-800 dark:bg-violet-950 dark:text-violet-200`,bar:`bg-violet-500`,text:`text-violet-700 dark:text-violet-300`},{soft:`bg-teal-100 text-teal-800 dark:bg-teal-950 dark:text-teal-200`,bar:`bg-teal-500`,text:`text-teal-700 dark:text-teal-300`},{soft:`bg-orange-100 text-orange-800 dark:bg-orange-950 dark:text-orange-200`,bar:`bg-orange-500`,text:`text-orange-700 dark:text-orange-300`},{soft:`bg-indigo-100 text-indigo-800 dark:bg-indigo-950 dark:text-indigo-200`,bar:`bg-indigo-500`,text:`text-indigo-700 dark:text-indigo-300`}],Hn={soft:`bg-muted text-muted-foreground`,bar:`bg-border`,text:`text-muted-foreground`};function Un(e){let t=0;for(let n of String(e))t=t*31+n.codePointAt(0)>>>0;return t}function Wn(e){return e==null||e===``?Hn:Y[Un(typeof e==`string`?e.trim().toLowerCase():e)%Y.length]}var Gn={__name:`PersonAvatar`,props:{person:{type:Object,required:!0},class:{type:[String,Array,Object],default:``}},setup(e){let t=e,n=S(()=>Wn(t.person.id??t.person.name));return(t,r)=>(w(),D(f(zn),{class:_(f(I)(`size-10`,t.$props.class))},{default:T(()=>[e.person.avatar_url?(w(),D(f(Vn),{key:0,src:e.person.avatar_url,alt:e.person.name},null,8,[`src`,`alt`])):j(``,!0),l(f(Bn),{class:_([`font-semibold`,n.value.soft])},{default:T(()=>[u(te(e.person.initials),1)]),_:1},8,[`class`])]),_:1},8,[`class`]))}},Kn=C({__name:`Sheet`,props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(w(),D(f(Vt),x({"data-slot":`sheet`},f(r)),{default:T(t=>[A(e.$slots,`default`,c(M(t)))]),_:3},16))}}),qn=C({__name:`SheetOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=z(t,`class`);return(e,r)=>(w(),D(f(an),x({"data-slot":`sheet-overlay`,class:f(I)(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,t.class)},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Jn=C({inheritAttrs:!1,__name:`SheetContent`,props:{class:{type:[Boolean,null,String,Object,Array]},side:{default:`right`},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=z(r,`class`,`side`),o=n(a,i);return(t,n)=>(w(),D(f(on),null,{default:T(()=>[l(qn),l(f(nn),x({"data-slot":`sheet-content`,class:f(I)(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,e.side===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,e.side===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,e.side===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,e.side===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,r.class)},{...t.$attrs,...f(o)}),{default:T(()=>[A(t.$slots,`default`),l(f(Ht),{class:`ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none`},{default:T(()=>[l(f(he),{class:`size-4`}),n[0]||=v(`span`,{class:`sr-only`},`Schließen`,-1)]),_:1})]),_:3},16,[`class`])]),_:3}))}}),Yn=C({__name:`SheetHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(w(),y(`div`,{"data-slot":`sheet-header`,class:_(f(I)(`flex flex-col gap-1.5 p-4`,t.class))},[A(e.$slots,`default`)],2))}}),Xn=C({__name:`SheetTitle`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=z(t,`class`);return(e,r)=>(w(),D(f(sn),x({"data-slot":`sheet-title`,class:f(I)(`text-foreground font-semibold`,t.class)},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Zn=C({__name:`DropdownMenu`,props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(w(),D(f(Nn),x({"data-slot":`dropdown-menu`},f(r)),{default:T(t=>[A(e.$slots,`default`,c(M(t)))]),_:3},16))}}),Qn=C({inheritAttrs:!1,__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean},loop:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=z(r,`class`),o=n(a,i);return(e,t)=>(w(),D(f(In),null,{default:T(()=>[l(f(Pn),x({"data-slot":`dropdown-menu-content`},{...e.$attrs,...f(o)},{class:f(I)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,r.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`])]),_:3}))}}),$n=C({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean},variant:{default:`default`}},setup(t){let n=t,r=z(n,`inset`,`variant`,`class`),i=e(r);return(e,r)=>(w(),D(f(Fn),x({"data-slot":`dropdown-menu-item`,"data-inset":t.inset?``:void 0,"data-variant":t.variant},f(i),{class:f(I)(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`,n.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`data-inset`,`data-variant`,`class`]))}}),er=C({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=z(t,`class`);return(e,r)=>(w(),D(f(Ln),x({"data-slot":`dropdown-menu-separator`},f(n),{class:f(I)(`bg-border -mx-1 my-1 h-px`,t.class)}),null,16,[`class`]))}}),tr=C({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){let n=e(t);return(e,t)=>(w(),D(f(Rn),x({"data-slot":`dropdown-menu-trigger`},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),nr=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`,year:`numeric`}),rr=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`short`,year:`numeric`}),ir=new Intl.DateTimeFormat(`de-DE`,{hour:`2-digit`,minute:`2-digit`});new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`});var ar=new Intl.DateTimeFormat(`de-DE`,{month:`short`}),or=new Intl.DateTimeFormat(`de-DE`,{month:`long`,year:`numeric`}),X=new Intl.RelativeTimeFormat(`de-DE`,{numeric:`auto`}),sr=e=>nr.format(new Date(e)),Z=e=>rr.format(new Date(e)),Q=e=>ir.format(new Date(e)),cr=e=>or.format(new Date(e));function lr(e){let t=(new Date(e).getTime()-Date.now())/1e3,n=Math.abs(t);return n<60?`gerade eben`:n<3600?X.format(Math.round(t/60),`minute`):n<86400?X.format(Math.round(t/3600),`hour`):n<604800?X.format(Math.round(t/86400),`day`):sr(e)}function ur(e){let t=new Date(e);return{day:t.getDate(),month:ar.format(t).replace(`.`,``).toUpperCase()}}function dr(e){let t=new Date(e.starts_at),n=e.ends_at?new Date(e.ends_at):null,r=n&&t.toDateString()===n.toDateString();return e.all_day?n&&!r?`${Z(e.starts_at)} – ${Z(e.ends_at)}`:`${Z(e.starts_at)}, ganztägig`:n?r?`${Z(e.starts_at)}, ${Q(e.starts_at)} – ${Q(e.ends_at)} Uhr`:`${Z(e.starts_at)}, ${Q(e.starts_at)} Uhr – ${Z(e.ends_at)}, ${Q(e.ends_at)} Uhr`:`${Z(e.starts_at)}, ${Q(e.starts_at)} Uhr`}var fr={house:tt,newspaper:ht,"calendar-days":Fe,folder:qe,"folder-open":Ke,"file-text":Ge,"file-down":We,"clipboard-list":Be,users:jt,network:mt,"user-round":At,"user-plus":kt,cake:Pe,"layout-grid":at,info:Ee,"circle-help":ze,settings:xt,star:wt,bell:H,megaphone:dt,clock:Ve,plane:gt,receipt:vt,"graduation-cap":Ye,briefcase:Me,"list-checks":ge,"book-open":je,scale:yt,euro:Ue,"chart-column":Le,landmark:rt,"building-2":de,"map-pin":ut,"key-round":ue,"shopping-cart":St,truck:Dt,monitor:pt,laptop:it,headset:Qe,printer:_t,globe:Je,mail:lt,phone:De,"message-square":ft,link:ct,image:nt,video:Nt,"heart-handshake":$e,handshake:Ze,heart:et,stethoscope:Tt,baby:ke,church:Re,accessibility:Oe,"shield-check":pe,lightbulb:st,sparkles:Ct,trophy:Et,leaf:ot,utensils:Mt,coffee:He,car:Ie,bus:Ne,bike:Ae,wrench:Pt,hammer:Xe},$=k(null),pr=null;function mr(){return pr??=ae(()=>import(`./icon-set-B_oGzY3h.js`).then(e=>($.value={icons:e.default,aliases:e.aliases},$.value)),[]),pr}function hr(e){let t=$.value;return!t||!e?null:t.icons[e]??t.icons[t.aliases[e]]??null}var gr=[`stroke-width`,`innerHTML`],_r={__name:`AppIcon`,props:{name:{type:String,default:null},strokeWidth:{type:[Number,String],default:2}},setup(e){let t=e,n=S(()=>t.name?fr[t.name]:null),r=S(()=>n.value?null:hr(t.name));return h(()=>{t.name&&!n.value&&mr()}),(t,i)=>n.value?(w(),D(re(n.value),{key:0,"stroke-width":e.strokeWidth,"aria-hidden":`true`},null,8,[`stroke-width`])):e.name?(w(),y(`svg`,{key:1,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":e.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`,innerHTML:r.value??``},null,8,gr)):j(``,!0)}};export{Ge as $,Vt as A,ht as B,sn as C,Yt as D,nn as E,At as F,ut as G,pt as H,Ot as I,st as J,lt as K,wt as L,U as M,Nt as N,Jt as O,jt as P,Ke as Q,xt as R,Tn as S,an as T,ft as U,mt as V,dt as W,nt as X,at as Y,qe as Z,Yn as _,sr as a,H as at,Gn as b,lr as c,tr as d,We as et,er as f,Xn as g,Zn as h,ur as i,Pe as it,W as j,Ht as k,Z as l,Qn as m,$ as n,Be as nt,dr as o,$n as p,ct as q,mr as r,Fe as rt,cr as s,_r as t,Ve as tt,Q as u,Jn as v,on as w,Wn as x,Kn as y,bt as z}; \ No newline at end of file diff --git a/public/build/assets/AppLayout-Cy38OwfZ.js b/public/build/assets/AppLayout-X0y7XSjx.js similarity index 98% rename from public/build/assets/AppLayout-Cy38OwfZ.js rename to public/build/assets/AppLayout-X0y7XSjx.js index 7a58cdda..cddece1a 100644 --- a/public/build/assets/AppLayout-Cy38OwfZ.js +++ b/public/build/assets/AppLayout-X0y7XSjx.js @@ -1 +1 @@ -import{a as e,d as t,i as n,n as r,o as i,r as a}from"./usePrimitiveElement-BOk1PFhF.js";import{$n as o,D as s,E as c,Ht as l,On as u,Tn as d,Yt as f,Zn as p,_ as m,b as h,bt as g,ct as _,et as v,g as y,it as ee,k as b,mt as x,o as S,qt as C,tr as w,tt as te,v as T,vn as E,wt as D,xt as O,y as k,z as A}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as ne,x as re}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as j,i as M,n as N,t as ie}from"./app-CIvn5Z1l.js";import{A as P,D as F,S as I,d as L,h as R,j as z,o as B,p as V}from"./dist-CleIz2GP.js";import{B as ae,D as H,F as oe,H as se,I as ce,O as le,R as U,S as ue,U as de,_ as fe,at as pe,b as me,c as he,d as W,f as G,g as ge,h as K,j as _e,m as q,p as J,t as Y,v as ve,y as ye,z as X}from"./AppIcon-BVHFLm12.js";import{C as Z,a as be,i as xe,n as Se,r as Ce,t as we}from"./http-9R3L4KBg.js";import{t as Te}from"./BrandLogo-TGGJyC1K.js";var Ee=z({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`}]]}),De=z({name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]}),Oe=z({name:`file-check`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]}),ke=z({name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]}),Ae=z({name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]}),je=z({name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]}),Me=z({name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]}),Ne=z({name:`user-round-pen`,size:24,node:[[`path`,{d:`M2 21a8 8 0 0 1 10.821-7.487`,key:`1c8h7z`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}]]}),Pe=b({__name:`DialogTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=_e(),{forwardRef:r,currentElement:i}=R();return n.contentId||=a(void 0,`reka-dialog-content`),_(()=>{n.triggerElement.value=i.value}),(e,i)=>(x(),T(u(V),v(t,{ref:u(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":u(n).open.value||!1,"aria-controls":u(n).open.value?u(n).contentId:void 0,"data-state":u(n).open.value?`open`:`closed`,onClick:u(n).onOpenToggle}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`onClick`]))}}),[Fe,Ie]=t([`MenuCheckboxItem`,`MenuRadioItem`],`MenuItemIndicatorContext`),Le=b({__name:`MenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=Fe({modelValue:E(!1)});return(e,n)=>(x(),T(u(r),{present:e.forceMount||u(le)(u(t).modelValue.value)||u(t).modelValue.value===!0},{default:C(()=>[s(u(V),{as:e.as,"as-child":e.asChild,"data-state":u(H)(u(t).modelValue.value)},{default:C(()=>[O(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`])]),_:3},8,[`present`]))}}),[Re,ze]=t(`MenuGroup`),Be=b({__name:`MenuGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=a(void 0,`reka-menu-group`);return ze({id:n}),(e,r)=>(x(),T(u(V),v({role:`group`},t,{"aria-labelledby":u(n)}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),Ve=b({__name:`MenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e,n=Re({id:``});return(e,r)=>(x(),T(u(V),v(t,{id:u(n).id||void 0}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`id`]))}}),[He,Ue]=t(`MenuRadioGroup`),We=b({__name:`MenuRadioGroup`,props:{modelValue:{type:null,required:!1,default:``},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=F(r,[`modelValue`]),s=e(a),c=I(r,`modelValue`,i);return Ue({modelValue:c,onValueChange:e=>{c.value=e}}),(e,t)=>(x(),T(Be,o(A(u(s))),{default:C(()=>[O(e.$slots,`default`,{modelValue:u(c)})]),_:3},16))}}),Ge=b({__name:`MenuRadioItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(t,{emit:n}){let r=t,i=n,a=F(r,[`value`]),o=e(a),{value:s}=d(r),c=He(),l=y(()=>c.modelValue.value===s?.value);return Ie({modelValue:l}),(e,t)=>(x(),T(ue,v({role:`menuitemradio`},u(o),{"aria-checked":l.value,"data-state":u(H)(l.value),onSelect:t[0]||=async e=>{i(`select`,e),u(c).onValueChange(u(s))}}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`aria-checked`,`data-state`]))}}),Ke=b({__name:`DropdownMenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return R(),(e,n)=>(x(),T(u(Le),o(A(t)),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),qe=b({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return R(),(e,n)=>(x(),T(u(Ve),o(A(t)),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Je=b({__name:`DropdownMenuRadioGroup`,props:{modelValue:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=i(t);return R(),(e,t)=>(x(),T(u(We),o(A({...n,...u(r)})),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Ye=b({__name:`DropdownMenuRadioItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let r=n(e,t);return R(),(e,t)=>(x(),T(u(Ge),o(A(u(r))),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Xe=b({__name:`SheetTrigger`,props:{asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(x(),T(u(Pe),v({"data-slot":`sheet-trigger`},t),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Q=b({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},setup(t){let n=t,r=B(n,`class`,`inset`),i=e(r);return(e,r)=>(x(),T(u(qe),v({"data-slot":`dropdown-menu-label`,"data-inset":t.inset?``:void 0},u(i),{class:u(L)(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n.class)}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`data-inset`,`class`]))}}),Ze=b({__name:`DropdownMenuRadioGroup`,props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(x(),T(u(Je),v({"data-slot":`dropdown-menu-radio-group`},u(r)),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Qe={class:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`},$e=b({__name:`DropdownMenuRadioItem`,props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`select`],setup(e,{emit:t}){let r=e,i=t,a=B(r,`class`),o=n(a,i);return(e,t)=>(x(),T(u(Ye),v({"data-slot":`dropdown-menu-radio-item`},u(o),{class:u(L)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r.class)}),{default:C(()=>[m(`span`,Qe,[s(u(Ke),null,{default:C(()=>[O(e.$slots,`indicator-icon`,{},()=>[s(u(De),{class:`size-2 fill-current`})])]),_:3})]),O(e.$slots,`default`)]),_:3},16,[`class`]))}}),et={key:0,class:`absolute top-1.5 right-1.5 grid h-4 min-w-4 place-items-center rounded-full bg-brand px-1 text-[10px] leading-none font-semibold text-brand-foreground`},tt={class:`flex items-center justify-between border-b px-4 py-3`},nt={class:`max-h-[60vh] overflow-y-auto`},rt={key:0,class:`grid place-items-center py-8`},it={key:1,class:`px-4 py-8 text-center text-sm text-muted-foreground`},at={key:2,class:`divide-y`},ot=[`onClick`],st={class:`min-w-0 flex-1`},ct={key:0,class:`mt-0.5 line-clamp-2 block text-[13px] text-muted-foreground`},lt={class:`mt-1 block text-xs text-muted-foreground`},ut={key:0,class:`mt-2 size-2 shrink-0 rounded-full bg-brand`,"aria-label":`ungelesen`},dt={__name:`NotificationBell`,setup(e){let t=M(),n=y(()=>t.props.notifications?.unread??0),r=E(null),i=E(null),a=y(()=>i.value??n.value),o={"file-check":Oe,newspaper:ae,undo:ce,message:de};async function l(e){if(!e)return;r.value=null;let t=await we.get(`/benachrichtigungen`);r.value=t.notifications,i.value=t.unread}async function d(){await we.post(`/benachrichtigungen/gelesen`),r.value=r.value.map(e=>({...e,read:!0})),i.value=0}function f(e){i.value=null,j.visit(`/benachrichtigungen/${e.id}`)}return(e,t)=>(x(),T(u(xe),{"onUpdate:open":l},{default:C(()=>[s(u(Se),{class:`relative grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground`,"aria-label":a.value?`Benachrichtigungen, ${a.value} ungelesen`:`Benachrichtigungen`},{default:C(()=>[s(u(pe),{class:`size-5`}),a.value?(x(),h(`span`,et,w(a.value>9?`9+`:a.value),1)):k(``,!0)]),_:1},8,[`aria-label`]),s(u(Ce),{align:`end`,class:`w-[22rem] p-0`},{default:C(()=>[m(`div`,tt,[t[1]||=m(`h2`,{class:`text-sm font-semibold`},`Benachrichtigungen`,-1),a.value?(x(),h(`button`,{key:0,type:`button`,class:`inline-flex items-center gap-1 text-xs font-medium text-brand-text hover:underline`,onClick:d},[s(u(Ee),{class:`size-3.5`}),t[0]||=c(` Alle gelesen `,-1)])):k(``,!0)]),m(`div`,nt,[r.value===null?(x(),h(`div`,rt,[s(u(P),{class:`size-5 animate-spin text-muted-foreground`})])):r.value.length?(x(),h(`ul`,at,[(x(!0),h(S,null,g(r.value,e=>(x(),h(`li`,{key:e.id},[m(`button`,{type:`button`,class:`flex w-full gap-3 px-4 py-3 text-left hover:bg-accent/60`,onClick:t=>f(e)},[m(`span`,{class:p([`mt-0.5 grid size-8 shrink-0 place-items-center rounded-full`,e.read?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-text`])},[(x(),T(D(o[e.icon]??u(pe)),{class:`size-4`}))],2),m(`span`,st,[m(`span`,{class:p([`block text-sm`,e.read?`text-foreground/80`:`font-semibold`])},w(e.title),3),e.body?(x(),h(`span`,ct,w(e.body),1)):k(``,!0),m(`span`,lt,w(u(he)(e.created_at)),1)]),e.read?k(``,!0):(x(),h(`span`,ut))],8,ot)]))),128))])):(x(),h(`p`,it,`Keine Benachrichtigungen.`))])]),_:1})]),_:1}))}},ft=[`href`,`target`,`rel`],$={__name:`NavLink`,props:{item:{type:Object,required:!0}},setup(e){return(t,n)=>e.item.new_tab||!e.item.href.startsWith(`/`)?(x(),h(`a`,{key:0,href:e.item.href,target:e.item.new_tab?`_blank`:void 0,rel:e.item.new_tab?`noopener`:void 0},[O(t.$slots,`default`)],8,ft)):(x(),T(u(N),{key:1,href:e.item.href},{default:C(()=>[O(t.$slots,`default`)]),_:3},8,[`href`]))}},pt=typeof window<`u`?window.matchMedia(`(prefers-color-scheme: dark)`):null;function mt(e){let t=e===`dark`||e===`system`&&pt?.matches;document.documentElement.classList.toggle(`dark`,t),document.documentElement.dataset.theme=e}pt?.addEventListener(`change`,()=>mt(document.documentElement.dataset.theme??`system`));function ht(){let e=M(),t=y(()=>e.props.auth.user?.theme??`system`);function n(e){mt(e),j.put(`/profil/darstellung`,{theme:e},{preserveScroll:!0,preserveState:!0})}return{preference:t,setPreference:n}}var gt={class:`flex min-h-screen flex-col`},_t={key:0,class:`flex flex-wrap items-center justify-center gap-x-3 gap-y-1 bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},vt=[`data-header`],yt={class:`mx-auto flex h-16 max-w-[1440px] items-center gap-2 px-4 lg:gap-6 lg:px-6`},bt={class:`grid gap-1 overflow-y-auto p-3`,"aria-label":`Hauptnavigation`},xt={key:1,class:`px-3 pt-3 pb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},St={key:2,class:`mb-1 ml-3 grid gap-0.5 border-l pl-2`},Ct={class:`flex h-full items-stretch gap-1`},wt={key:1,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Tt={key:1,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Et={key:0,class:`flex`},Dt={key:0,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Ot={class:`ml-auto flex shrink-0 items-center gap-1`},kt={class:`relative block`},At={key:0,href:`/admin`,class:`grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground`,"aria-label":`Administration`,title:`Administration`},jt={class:`min-w-0`},Mt={class:`truncate text-sm font-semibold`},Nt={class:`truncate text-xs text-muted-foreground`},Pt={href:`/admin`},Ft={class:`mx-auto w-full max-w-[1440px] flex-1 px-4 py-6 lg:px-6 lg:py-7`},It={key:1,class:`border-t`},Lt={class:`mx-auto flex max-w-[1440px] flex-wrap items-center justify-between gap-x-6 gap-y-2 px-4 py-5 text-[13px] text-muted-foreground lg:px-6`},Rt={key:0},zt={key:1,class:`flex flex-wrap gap-x-5 gap-y-1`,"aria-label":`Fußzeile`},Bt=[`href`],Vt=84,Ht={__name:`AppLayout`,props:{title:{type:String,default:``}},setup(e){let t=M(),n=y(()=>t.props.auth.user),r=y(()=>t.props.branding),i=y(()=>r.value.header_style??`light`),a=y(()=>t.props.navigation),o=E(null),d=E(null),v=E(a.value.length);function b(){let e=o.value,t=d.value?[...d.value.children]:[];if(!e||!t.length)return;let n=t.map(e=>e.getBoundingClientRect().width+4),r=e.clientWidth;if(n.reduce((e,t)=>e+t,0)<=r){v.value=n.length;return}let i=Vt,a=0;for(let e of n){if(i+e>r)break;i+=e,a++}v.value=Math.max(1,a)}let A;_(()=>{A=new ResizeObserver(b),o.value&&A.observe(o.value),te(b),document.fonts?.ready.then(b)}),ee(()=>A?.disconnect()),l(a,()=>te(b));let P=y(()=>a.value.slice(0,v.value)),F=y(()=>a.value.slice(v.value)),{preference:I,setPreference:L}=ht(),R=E(!1),z=E(t.url.startsWith(`/personen?`)?new URLSearchParams(t.url.split(`?`)[1]).get(`q`)??``:``);function B(){j.get(`/personen`,z.value?{q:z.value}:{})}let V=[{value:`system`,label:`Wie im System`,icon:se},{value:`light`,label:`Hell`,icon:Me},{value:`dark`,label:`Dunkel`,icon:je}];return(t,l)=>(x(),h(S,null,[e.title?(x(),T(u(ie),{key:0,title:e.title},null,8,[`title`])):k(``,!0),m(`div`,gt,[r.value.preview?(x(),h(`div`,_t,[...l[4]||=[c(` Vorschau des Entwurfs – so sieht das Portal nach dem Veröffentlichen aus. `,-1),m(`a`,{href:`?vorschau=aus`,class:`underline`},`Vorschau beenden`,-1)]])):k(``,!0),m(`header`,{class:p([`sticky top-0 z-40 border-b`,i.value===`light`?`bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/85`:``]),"data-header":i.value},[m(`div`,yt,[s(u(ye),{open:R.value,"onUpdate:open":l[2]||=e=>R.value=e},{default:C(()=>[s(u(Xe),{class:`-ml-2 grid size-10 place-items-center rounded-md text-foreground/80 hover:bg-accent lg:hidden`,"aria-label":`Menü öffnen`},{default:C(()=>[s(u(Ae),{class:`size-5`})]),_:1}),s(u(ve),{side:`left`,class:`w-72 p-0`},{default:C(()=>[s(u(fe),{class:`border-b px-5 py-4`},{default:C(()=>[s(u(ge),{class:`text-left`},{default:C(()=>[s(Te)]),_:1})]),_:1}),m(`nav`,bt,[(x(!0),h(S,null,g(a.value,e=>(x(),h(S,{key:e.key},[e.href?(x(),T($,{key:0,item:e,class:p([`flex items-center gap-2.5 rounded-md px-3 py-2.5 text-[15px] font-medium`,e.active&&!e.children.some(e=>e.active)?`bg-brand-soft text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent`]),onClick:l[0]||=e=>R.value=!1},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-[18px] opacity-80`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`])):(x(),h(`p`,xt,w(e.label),1)),e.children.length?(x(),h(`div`,St,[(x(!0),h(S,null,g(e.children,e=>(x(),T($,{key:e.key,item:e,class:p([`flex items-center gap-2 rounded-md px-3 py-2 text-sm`,e.active?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/75 hover:bg-accent`]),onClick:l[1]||=e=>R.value=!1},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 opacity-70`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`]))),128))])):k(``,!0)],64))),128))])]),_:1})]),_:1},8,[`open`]),s(u(N),{href:`/`,class:`shrink-0 text-foreground`,"aria-label":`Startseite`},{default:C(()=>[s(Te,{inverted:i.value!==`light`,compact:``},null,8,[`inverted`])]),_:1}),m(`nav`,{ref_key:`navBox`,ref:o,class:`relative hidden h-full min-w-0 flex-1 lg:block`,"aria-label":`Hauptnavigation`},[m(`ul`,{ref_key:`navMeasure`,ref:d,class:`pointer-events-none invisible absolute flex gap-1`,"aria-hidden":`true`},[(x(!0),h(S,null,g(a.value,e=>(x(),h(`li`,{key:e.key,class:`flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap`},[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4`},null,8,[`name`])):k(``,!0),c(w(e.label),1),e.children.length?(x(),T(u(Z),{key:1,class:`size-4`})):k(``,!0)]))),128))],512),m(`ul`,Ct,[(x(!0),h(S,null,g(P.value,e=>(x(),h(`li`,{key:e.key,class:`flex`},[e.children.length?(x(),T(u(K),{key:0},{default:C(()=>[s(u(W),{class:p([`relative flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap transition-colors outline-none`,e.active?`text-foreground`:`text-foreground/70 hover:text-foreground`])},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 opacity-80`},null,8,[`name`])):k(``,!0),c(w(e.label)+` `,1),s(u(Z),{class:`size-4 opacity-70`}),e.active?(x(),h(`span`,wt)):k(``,!0)]),_:2},1032,[`class`]),s(u(q),{align:`start`,class:`min-w-56`},{default:C(()=>[e.href?(x(),h(S,{key:0},[s(u(J),{"as-child":``},{default:C(()=>[s($,{item:e,class:p(e.active&&!e.children.some(e=>e.active)?`font-semibold text-brand-text`:`font-medium`)},{default:C(()=>[c(w(e.label)+` – Übersicht`,1)]),_:2},1032,[`item`,`class`])]),_:2},1024),s(u(G))],64)):k(``,!0),(x(!0),h(S,null,g(e.children,e=>(x(),T(u(J),{key:e.key,"as-child":``},{default:C(()=>[s($,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024)):(x(),T($,{key:1,item:e,class:p([`relative flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap transition-colors`,e.active?`text-foreground`:`text-foreground/70 hover:text-foreground`]),"aria-current":e.active?`page`:void 0},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 opacity-80`},null,8,[`name`])):k(``,!0),c(w(e.label)+` `,1),e.active?(x(),h(`span`,Tt)):k(``,!0)]),_:2},1032,[`item`,`class`,`aria-current`]))]))),128)),F.value.length?(x(),h(`li`,Et,[s(u(K),null,{default:C(()=>[s(u(W),{class:p([`relative flex items-center gap-1 px-3 text-sm font-medium whitespace-nowrap transition-colors outline-none`,F.value.some(e=>e.active)?`text-foreground`:`text-foreground/70 hover:text-foreground`])},{default:C(()=>[l[5]||=c(` Mehr `,-1),s(u(Z),{class:`size-4`}),F.value.some(e=>e.active)?(x(),h(`span`,Dt)):k(``,!0)]),_:1},8,[`class`]),s(u(q),{align:`start`,class:`min-w-48`},{default:C(()=>[(x(!0),h(S,null,g(F.value,(e,t)=>(x(),h(S,{key:e.key},[e.children.length?(x(),h(S,{key:0},[t?(x(),T(u(G),{key:0})):k(``,!0),s(u(Q),{class:`text-xs text-muted-foreground`},{default:C(()=>[c(w(e.label),1)]),_:2},1024),e.href?(x(),T(u(J),{key:1,"as-child":``},{default:C(()=>[s($,{item:e},{default:C(()=>[...l[6]||=[c(`Übersicht`,-1)]]),_:1},8,[`item`])]),_:2},1024)):k(``,!0),(x(!0),h(S,null,g(e.children,e=>(x(),T(u(J),{key:e.key,"as-child":``},{default:C(()=>[s($,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))),128))],64)):(x(),T(u(J),{key:1,"as-child":``},{default:C(()=>[s($,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))],64))),128))]),_:1})]),_:1})])):k(``,!0)])],512),m(`div`,Ot,[m(`form`,{class:`mr-2 hidden w-64 md:block xl:w-80`,role:`search`,onSubmit:ne(B,[`prevent`])},[m(`label`,kt,[l[7]||=m(`span`,{class:`sr-only`},`Personen suchen`,-1),s(u(X),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),f(m(`input`,{"onUpdate:modelValue":l[3]||=e=>z.value=e,type:`search`,placeholder:`Personen suchen …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[re,z.value]])])],32),s(u(N),{href:`/personen`,class:`grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground md:hidden`,"aria-label":`Personen suchen`},{default:C(()=>[s(u(X),{class:`size-5`})]),_:1}),s(dt),n.value.can_admin?(x(),h(`a`,At,[s(u(U),{class:`size-5`})])):k(``,!0),s(u(K),null,{default:C(()=>[s(u(W),{class:`ml-1 flex items-center gap-1.5 rounded-full py-1 pr-1.5 pl-1 hover:bg-accent focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`Menü für ${n.value.name}`},{default:C(()=>[s(me,{person:n.value,class:`size-9`},null,8,[`person`]),s(u(Z),{class:`size-4 text-muted-foreground`})]),_:1},8,[`aria-label`]),s(u(q),{align:`end`,class:`w-72`},{default:C(()=>[s(u(Q),{class:`flex items-center gap-3 py-2 font-normal`},{default:C(()=>[s(me,{person:n.value,class:`size-10`},null,8,[`person`]),m(`div`,jt,[m(`div`,Mt,w(n.value.name),1),m(`div`,Nt,w(n.value.email),1)])]),_:1}),s(u(G)),s(u(J),{"as-child":``},{default:C(()=>[s(u(N),{href:`/personen/${n.value.id}`},{default:C(()=>[s(u(oe)),l[8]||=c(` Mein Profil`,-1)]),_:1},8,[`href`])]),_:1}),s(u(J),{"as-child":``},{default:C(()=>[s(u(N),{href:`/profil/bearbeiten`},{default:C(()=>[s(u(Ne)),l[9]||=c(` Profil bearbeiten`,-1)]),_:1})]),_:1}),n.value.can_admin?(x(),T(u(J),{key:0,"as-child":``},{default:C(()=>[m(`a`,Pt,[s(u(U)),l[10]||=c(` Administration`,-1)])]),_:1})):k(``,!0),r.value.color_mode?k(``,!0):(x(),h(S,{key:1},[s(u(G)),s(u(Q),{class:`text-xs font-medium text-muted-foreground`},{default:C(()=>[...l[11]||=[c(`Darstellung`,-1)]]),_:1}),s(u(Ze),{"model-value":u(I),"onUpdate:modelValue":u(L)},{default:C(()=>[(x(),h(S,null,g(V,e=>s(u($e),{key:e.value,value:e.value},{default:C(()=>[(x(),T(D(e.icon),{class:`size-4 text-muted-foreground`})),c(` `+w(e.label),1)]),_:2},1032,[`value`])),64))]),_:1},8,[`model-value`,`onUpdate:modelValue`])],64)),s(u(G)),s(u(J),{"as-child":``},{default:C(()=>[s(u(N),{href:`/logout`,method:`post`,as:`button`,class:`w-full`},{default:C(()=>[s(u(ke)),l[12]||=c(` Abmelden`,-1)]),_:1})]),_:1})]),_:1})]),_:1})])])],10,vt),m(`main`,Ft,[O(t.$slots,`default`)]),r.value.footer.text||r.value.footer.links.length?(x(),h(`footer`,It,[m(`div`,Lt,[r.value.footer.text?(x(),h(`p`,Rt,w(r.value.footer.text),1)):k(``,!0),r.value.footer.links.length?(x(),h(`nav`,zt,[(x(!0),h(S,null,g(r.value.footer.links,e=>(x(),h(`a`,{key:e.url,href:e.url,class:`hover:text-foreground hover:underline`},w(e.label),9,Bt))),128))])):k(``,!0)])])):k(``,!0)]),s(u(be),{position:`bottom-right`})],64))}};export{Ne as n,ke as r,Ht as t}; \ No newline at end of file +import{a as e,d as t,i as n,n as r,o as i,r as a}from"./usePrimitiveElement-BOk1PFhF.js";import{$n as o,D as s,E as c,Ht as l,On as u,Tn as d,Yt as f,Zn as p,_ as m,b as h,bt as g,ct as _,et as v,g as y,it as ee,k as b,mt as x,o as S,qt as C,tr as w,tt as te,v as T,vn as E,wt as D,xt as O,y as k,z as A}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as ne,x as re}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as j,i as M,n as N,t as ie}from"./app-Dy5FbYkt.js";import{A as P,D as F,S as I,d as L,h as R,j as z,o as B,p as V}from"./dist-CleIz2GP.js";import{B as ae,D as H,F as oe,H as se,I as ce,O as le,R as U,S as ue,U as de,_ as fe,at as pe,b as me,c as he,d as W,f as G,g as ge,h as K,j as _e,m as q,p as J,t as Y,v as ve,y as ye,z as X}from"./AppIcon-SVMShh8s.js";import{C as Z,a as be,i as xe,n as Se,r as Ce,t as we}from"./http-9R3L4KBg.js";import{t as Te}from"./BrandLogo-DRGdNySk.js";var Ee=z({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`}]]}),De=z({name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]}),Oe=z({name:`file-check`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]}),ke=z({name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]}),Ae=z({name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]}),je=z({name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]}),Me=z({name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]}),Ne=z({name:`user-round-pen`,size:24,node:[[`path`,{d:`M2 21a8 8 0 0 1 10.821-7.487`,key:`1c8h7z`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}]]}),Pe=b({__name:`DialogTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=_e(),{forwardRef:r,currentElement:i}=R();return n.contentId||=a(void 0,`reka-dialog-content`),_(()=>{n.triggerElement.value=i.value}),(e,i)=>(x(),T(u(V),v(t,{ref:u(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":u(n).open.value||!1,"aria-controls":u(n).open.value?u(n).contentId:void 0,"data-state":u(n).open.value?`open`:`closed`,onClick:u(n).onOpenToggle}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`onClick`]))}}),[Fe,Ie]=t([`MenuCheckboxItem`,`MenuRadioItem`],`MenuItemIndicatorContext`),Le=b({__name:`MenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=Fe({modelValue:E(!1)});return(e,n)=>(x(),T(u(r),{present:e.forceMount||u(le)(u(t).modelValue.value)||u(t).modelValue.value===!0},{default:C(()=>[s(u(V),{as:e.as,"as-child":e.asChild,"data-state":u(H)(u(t).modelValue.value)},{default:C(()=>[O(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`])]),_:3},8,[`present`]))}}),[Re,ze]=t(`MenuGroup`),Be=b({__name:`MenuGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=a(void 0,`reka-menu-group`);return ze({id:n}),(e,r)=>(x(),T(u(V),v({role:`group`},t,{"aria-labelledby":u(n)}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),Ve=b({__name:`MenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e,n=Re({id:``});return(e,r)=>(x(),T(u(V),v(t,{id:u(n).id||void 0}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`id`]))}}),[He,Ue]=t(`MenuRadioGroup`),We=b({__name:`MenuRadioGroup`,props:{modelValue:{type:null,required:!1,default:``},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=F(r,[`modelValue`]),s=e(a),c=I(r,`modelValue`,i);return Ue({modelValue:c,onValueChange:e=>{c.value=e}}),(e,t)=>(x(),T(Be,o(A(u(s))),{default:C(()=>[O(e.$slots,`default`,{modelValue:u(c)})]),_:3},16))}}),Ge=b({__name:`MenuRadioItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(t,{emit:n}){let r=t,i=n,a=F(r,[`value`]),o=e(a),{value:s}=d(r),c=He(),l=y(()=>c.modelValue.value===s?.value);return Ie({modelValue:l}),(e,t)=>(x(),T(ue,v({role:`menuitemradio`},u(o),{"aria-checked":l.value,"data-state":u(H)(l.value),onSelect:t[0]||=async e=>{i(`select`,e),u(c).onValueChange(u(s))}}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`aria-checked`,`data-state`]))}}),Ke=b({__name:`DropdownMenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return R(),(e,n)=>(x(),T(u(Le),o(A(t)),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),qe=b({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return R(),(e,n)=>(x(),T(u(Ve),o(A(t)),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Je=b({__name:`DropdownMenuRadioGroup`,props:{modelValue:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=i(t);return R(),(e,t)=>(x(),T(u(We),o(A({...n,...u(r)})),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Ye=b({__name:`DropdownMenuRadioItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let r=n(e,t);return R(),(e,t)=>(x(),T(u(Ge),o(A(u(r))),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Xe=b({__name:`SheetTrigger`,props:{asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(x(),T(u(Pe),v({"data-slot":`sheet-trigger`},t),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Q=b({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},setup(t){let n=t,r=B(n,`class`,`inset`),i=e(r);return(e,r)=>(x(),T(u(qe),v({"data-slot":`dropdown-menu-label`,"data-inset":t.inset?``:void 0},u(i),{class:u(L)(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n.class)}),{default:C(()=>[O(e.$slots,`default`)]),_:3},16,[`data-inset`,`class`]))}}),Ze=b({__name:`DropdownMenuRadioGroup`,props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(x(),T(u(Je),v({"data-slot":`dropdown-menu-radio-group`},u(r)),{default:C(()=>[O(e.$slots,`default`)]),_:3},16))}}),Qe={class:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`},$e=b({__name:`DropdownMenuRadioItem`,props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`select`],setup(e,{emit:t}){let r=e,i=t,a=B(r,`class`),o=n(a,i);return(e,t)=>(x(),T(u(Ye),v({"data-slot":`dropdown-menu-radio-item`},u(o),{class:u(L)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r.class)}),{default:C(()=>[m(`span`,Qe,[s(u(Ke),null,{default:C(()=>[O(e.$slots,`indicator-icon`,{},()=>[s(u(De),{class:`size-2 fill-current`})])]),_:3})]),O(e.$slots,`default`)]),_:3},16,[`class`]))}}),et={key:0,class:`absolute top-1.5 right-1.5 grid h-4 min-w-4 place-items-center rounded-full bg-brand px-1 text-[10px] leading-none font-semibold text-brand-foreground`},tt={class:`flex items-center justify-between border-b px-4 py-3`},nt={class:`max-h-[60vh] overflow-y-auto`},rt={key:0,class:`grid place-items-center py-8`},it={key:1,class:`px-4 py-8 text-center text-sm text-muted-foreground`},at={key:2,class:`divide-y`},ot=[`onClick`],st={class:`min-w-0 flex-1`},ct={key:0,class:`mt-0.5 line-clamp-2 block text-[13px] text-muted-foreground`},lt={class:`mt-1 block text-xs text-muted-foreground`},ut={key:0,class:`mt-2 size-2 shrink-0 rounded-full bg-brand`,"aria-label":`ungelesen`},dt={__name:`NotificationBell`,setup(e){let t=M(),n=y(()=>t.props.notifications?.unread??0),r=E(null),i=E(null),a=y(()=>i.value??n.value),o={"file-check":Oe,newspaper:ae,undo:ce,message:de};async function l(e){if(!e)return;r.value=null;let t=await we.get(`/benachrichtigungen`);r.value=t.notifications,i.value=t.unread}async function d(){await we.post(`/benachrichtigungen/gelesen`),r.value=r.value.map(e=>({...e,read:!0})),i.value=0}function f(e){i.value=null,j.visit(`/benachrichtigungen/${e.id}`)}return(e,t)=>(x(),T(u(xe),{"onUpdate:open":l},{default:C(()=>[s(u(Se),{class:`relative grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground`,"aria-label":a.value?`Benachrichtigungen, ${a.value} ungelesen`:`Benachrichtigungen`},{default:C(()=>[s(u(pe),{class:`size-5`}),a.value?(x(),h(`span`,et,w(a.value>9?`9+`:a.value),1)):k(``,!0)]),_:1},8,[`aria-label`]),s(u(Ce),{align:`end`,class:`w-[22rem] p-0`},{default:C(()=>[m(`div`,tt,[t[1]||=m(`h2`,{class:`text-sm font-semibold`},`Benachrichtigungen`,-1),a.value?(x(),h(`button`,{key:0,type:`button`,class:`inline-flex items-center gap-1 text-xs font-medium text-brand-text hover:underline`,onClick:d},[s(u(Ee),{class:`size-3.5`}),t[0]||=c(` Alle gelesen `,-1)])):k(``,!0)]),m(`div`,nt,[r.value===null?(x(),h(`div`,rt,[s(u(P),{class:`size-5 animate-spin text-muted-foreground`})])):r.value.length?(x(),h(`ul`,at,[(x(!0),h(S,null,g(r.value,e=>(x(),h(`li`,{key:e.id},[m(`button`,{type:`button`,class:`flex w-full gap-3 px-4 py-3 text-left hover:bg-accent/60`,onClick:t=>f(e)},[m(`span`,{class:p([`mt-0.5 grid size-8 shrink-0 place-items-center rounded-full`,e.read?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-text`])},[(x(),T(D(o[e.icon]??u(pe)),{class:`size-4`}))],2),m(`span`,st,[m(`span`,{class:p([`block text-sm`,e.read?`text-foreground/80`:`font-semibold`])},w(e.title),3),e.body?(x(),h(`span`,ct,w(e.body),1)):k(``,!0),m(`span`,lt,w(u(he)(e.created_at)),1)]),e.read?k(``,!0):(x(),h(`span`,ut))],8,ot)]))),128))])):(x(),h(`p`,it,`Keine Benachrichtigungen.`))])]),_:1})]),_:1}))}},ft=[`href`,`target`,`rel`],$={__name:`NavLink`,props:{item:{type:Object,required:!0}},setup(e){return(t,n)=>e.item.new_tab||!e.item.href.startsWith(`/`)?(x(),h(`a`,{key:0,href:e.item.href,target:e.item.new_tab?`_blank`:void 0,rel:e.item.new_tab?`noopener`:void 0},[O(t.$slots,`default`)],8,ft)):(x(),T(u(N),{key:1,href:e.item.href},{default:C(()=>[O(t.$slots,`default`)]),_:3},8,[`href`]))}},pt=typeof window<`u`?window.matchMedia(`(prefers-color-scheme: dark)`):null;function mt(e){let t=e===`dark`||e===`system`&&pt?.matches;document.documentElement.classList.toggle(`dark`,t),document.documentElement.dataset.theme=e}pt?.addEventListener(`change`,()=>mt(document.documentElement.dataset.theme??`system`));function ht(){let e=M(),t=y(()=>e.props.auth.user?.theme??`system`);function n(e){mt(e),j.put(`/profil/darstellung`,{theme:e},{preserveScroll:!0,preserveState:!0})}return{preference:t,setPreference:n}}var gt={class:`flex min-h-screen flex-col`},_t={key:0,class:`flex flex-wrap items-center justify-center gap-x-3 gap-y-1 bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},vt=[`data-header`],yt={class:`mx-auto flex h-16 max-w-[1440px] items-center gap-2 px-4 lg:gap-6 lg:px-6`},bt={class:`grid gap-1 overflow-y-auto p-3`,"aria-label":`Hauptnavigation`},xt={key:1,class:`px-3 pt-3 pb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},St={key:2,class:`mb-1 ml-3 grid gap-0.5 border-l pl-2`},Ct={class:`flex h-full items-stretch gap-1`},wt={key:1,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Tt={key:1,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Et={key:0,class:`flex`},Dt={key:0,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Ot={class:`ml-auto flex shrink-0 items-center gap-1`},kt={class:`relative block`},At={key:0,href:`/admin`,class:`grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground`,"aria-label":`Administration`,title:`Administration`},jt={class:`min-w-0`},Mt={class:`truncate text-sm font-semibold`},Nt={class:`truncate text-xs text-muted-foreground`},Pt={href:`/admin`},Ft={class:`mx-auto w-full max-w-[1440px] flex-1 px-4 py-6 lg:px-6 lg:py-7`},It={key:1,class:`border-t`},Lt={class:`mx-auto flex max-w-[1440px] flex-wrap items-center justify-between gap-x-6 gap-y-2 px-4 py-5 text-[13px] text-muted-foreground lg:px-6`},Rt={key:0},zt={key:1,class:`flex flex-wrap gap-x-5 gap-y-1`,"aria-label":`Fußzeile`},Bt=[`href`],Vt=84,Ht={__name:`AppLayout`,props:{title:{type:String,default:``}},setup(e){let t=M(),n=y(()=>t.props.auth.user),r=y(()=>t.props.branding),i=y(()=>r.value.header_style??`light`),a=y(()=>t.props.navigation),o=E(null),d=E(null),v=E(a.value.length);function b(){let e=o.value,t=d.value?[...d.value.children]:[];if(!e||!t.length)return;let n=t.map(e=>e.getBoundingClientRect().width+4),r=e.clientWidth;if(n.reduce((e,t)=>e+t,0)<=r){v.value=n.length;return}let i=Vt,a=0;for(let e of n){if(i+e>r)break;i+=e,a++}v.value=Math.max(1,a)}let A;_(()=>{A=new ResizeObserver(b),o.value&&A.observe(o.value),te(b),document.fonts?.ready.then(b)}),ee(()=>A?.disconnect()),l(a,()=>te(b));let P=y(()=>a.value.slice(0,v.value)),F=y(()=>a.value.slice(v.value)),{preference:I,setPreference:L}=ht(),R=E(!1),z=E(t.url.startsWith(`/personen?`)?new URLSearchParams(t.url.split(`?`)[1]).get(`q`)??``:``);function B(){j.get(`/personen`,z.value?{q:z.value}:{})}let V=[{value:`system`,label:`Wie im System`,icon:se},{value:`light`,label:`Hell`,icon:Me},{value:`dark`,label:`Dunkel`,icon:je}];return(t,l)=>(x(),h(S,null,[e.title?(x(),T(u(ie),{key:0,title:e.title},null,8,[`title`])):k(``,!0),m(`div`,gt,[r.value.preview?(x(),h(`div`,_t,[...l[4]||=[c(` Vorschau des Entwurfs – so sieht das Portal nach dem Veröffentlichen aus. `,-1),m(`a`,{href:`?vorschau=aus`,class:`underline`},`Vorschau beenden`,-1)]])):k(``,!0),m(`header`,{class:p([`sticky top-0 z-40 border-b`,i.value===`light`?`bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/85`:``]),"data-header":i.value},[m(`div`,yt,[s(u(ye),{open:R.value,"onUpdate:open":l[2]||=e=>R.value=e},{default:C(()=>[s(u(Xe),{class:`-ml-2 grid size-10 place-items-center rounded-md text-foreground/80 hover:bg-accent lg:hidden`,"aria-label":`Menü öffnen`},{default:C(()=>[s(u(Ae),{class:`size-5`})]),_:1}),s(u(ve),{side:`left`,class:`w-72 p-0`},{default:C(()=>[s(u(fe),{class:`border-b px-5 py-4`},{default:C(()=>[s(u(ge),{class:`text-left`},{default:C(()=>[s(Te)]),_:1})]),_:1}),m(`nav`,bt,[(x(!0),h(S,null,g(a.value,e=>(x(),h(S,{key:e.key},[e.href?(x(),T($,{key:0,item:e,class:p([`flex items-center gap-2.5 rounded-md px-3 py-2.5 text-[15px] font-medium`,e.active&&!e.children.some(e=>e.active)?`bg-brand-soft text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent`]),onClick:l[0]||=e=>R.value=!1},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-[18px] opacity-80`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`])):(x(),h(`p`,xt,w(e.label),1)),e.children.length?(x(),h(`div`,St,[(x(!0),h(S,null,g(e.children,e=>(x(),T($,{key:e.key,item:e,class:p([`flex items-center gap-2 rounded-md px-3 py-2 text-sm`,e.active?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/75 hover:bg-accent`]),onClick:l[1]||=e=>R.value=!1},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 opacity-70`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`]))),128))])):k(``,!0)],64))),128))])]),_:1})]),_:1},8,[`open`]),s(u(N),{href:`/`,class:`shrink-0 text-foreground`,"aria-label":`Startseite`},{default:C(()=>[s(Te,{inverted:i.value!==`light`,compact:``},null,8,[`inverted`])]),_:1}),m(`nav`,{ref_key:`navBox`,ref:o,class:`relative hidden h-full min-w-0 flex-1 lg:block`,"aria-label":`Hauptnavigation`},[m(`ul`,{ref_key:`navMeasure`,ref:d,class:`pointer-events-none invisible absolute flex gap-1`,"aria-hidden":`true`},[(x(!0),h(S,null,g(a.value,e=>(x(),h(`li`,{key:e.key,class:`flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap`},[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4`},null,8,[`name`])):k(``,!0),c(w(e.label),1),e.children.length?(x(),T(u(Z),{key:1,class:`size-4`})):k(``,!0)]))),128))],512),m(`ul`,Ct,[(x(!0),h(S,null,g(P.value,e=>(x(),h(`li`,{key:e.key,class:`flex`},[e.children.length?(x(),T(u(K),{key:0},{default:C(()=>[s(u(W),{class:p([`relative flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap transition-colors outline-none`,e.active?`text-foreground`:`text-foreground/70 hover:text-foreground`])},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 opacity-80`},null,8,[`name`])):k(``,!0),c(w(e.label)+` `,1),s(u(Z),{class:`size-4 opacity-70`}),e.active?(x(),h(`span`,wt)):k(``,!0)]),_:2},1032,[`class`]),s(u(q),{align:`start`,class:`min-w-56`},{default:C(()=>[e.href?(x(),h(S,{key:0},[s(u(J),{"as-child":``},{default:C(()=>[s($,{item:e,class:p(e.active&&!e.children.some(e=>e.active)?`font-semibold text-brand-text`:`font-medium`)},{default:C(()=>[c(w(e.label)+` – Übersicht`,1)]),_:2},1032,[`item`,`class`])]),_:2},1024),s(u(G))],64)):k(``,!0),(x(!0),h(S,null,g(e.children,e=>(x(),T(u(J),{key:e.key,"as-child":``},{default:C(()=>[s($,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024)):(x(),T($,{key:1,item:e,class:p([`relative flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap transition-colors`,e.active?`text-foreground`:`text-foreground/70 hover:text-foreground`]),"aria-current":e.active?`page`:void 0},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 opacity-80`},null,8,[`name`])):k(``,!0),c(w(e.label)+` `,1),e.active?(x(),h(`span`,Tt)):k(``,!0)]),_:2},1032,[`item`,`class`,`aria-current`]))]))),128)),F.value.length?(x(),h(`li`,Et,[s(u(K),null,{default:C(()=>[s(u(W),{class:p([`relative flex items-center gap-1 px-3 text-sm font-medium whitespace-nowrap transition-colors outline-none`,F.value.some(e=>e.active)?`text-foreground`:`text-foreground/70 hover:text-foreground`])},{default:C(()=>[l[5]||=c(` Mehr `,-1),s(u(Z),{class:`size-4`}),F.value.some(e=>e.active)?(x(),h(`span`,Dt)):k(``,!0)]),_:1},8,[`class`]),s(u(q),{align:`start`,class:`min-w-48`},{default:C(()=>[(x(!0),h(S,null,g(F.value,(e,t)=>(x(),h(S,{key:e.key},[e.children.length?(x(),h(S,{key:0},[t?(x(),T(u(G),{key:0})):k(``,!0),s(u(Q),{class:`text-xs text-muted-foreground`},{default:C(()=>[c(w(e.label),1)]),_:2},1024),e.href?(x(),T(u(J),{key:1,"as-child":``},{default:C(()=>[s($,{item:e},{default:C(()=>[...l[6]||=[c(`Übersicht`,-1)]]),_:1},8,[`item`])]),_:2},1024)):k(``,!0),(x(!0),h(S,null,g(e.children,e=>(x(),T(u(J),{key:e.key,"as-child":``},{default:C(()=>[s($,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))),128))],64)):(x(),T(u(J),{key:1,"as-child":``},{default:C(()=>[s($,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:C(()=>[e.icon?(x(),T(Y,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):k(``,!0),c(w(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))],64))),128))]),_:1})]),_:1})])):k(``,!0)])],512),m(`div`,Ot,[m(`form`,{class:`mr-2 hidden w-64 md:block xl:w-80`,role:`search`,onSubmit:ne(B,[`prevent`])},[m(`label`,kt,[l[7]||=m(`span`,{class:`sr-only`},`Personen suchen`,-1),s(u(X),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),f(m(`input`,{"onUpdate:modelValue":l[3]||=e=>z.value=e,type:`search`,placeholder:`Personen suchen …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[re,z.value]])])],32),s(u(N),{href:`/personen`,class:`grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground md:hidden`,"aria-label":`Personen suchen`},{default:C(()=>[s(u(X),{class:`size-5`})]),_:1}),s(dt),n.value.can_admin?(x(),h(`a`,At,[s(u(U),{class:`size-5`})])):k(``,!0),s(u(K),null,{default:C(()=>[s(u(W),{class:`ml-1 flex items-center gap-1.5 rounded-full py-1 pr-1.5 pl-1 hover:bg-accent focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`Menü für ${n.value.name}`},{default:C(()=>[s(me,{person:n.value,class:`size-9`},null,8,[`person`]),s(u(Z),{class:`size-4 text-muted-foreground`})]),_:1},8,[`aria-label`]),s(u(q),{align:`end`,class:`w-72`},{default:C(()=>[s(u(Q),{class:`flex items-center gap-3 py-2 font-normal`},{default:C(()=>[s(me,{person:n.value,class:`size-10`},null,8,[`person`]),m(`div`,jt,[m(`div`,Mt,w(n.value.name),1),m(`div`,Nt,w(n.value.email),1)])]),_:1}),s(u(G)),s(u(J),{"as-child":``},{default:C(()=>[s(u(N),{href:`/personen/${n.value.id}`},{default:C(()=>[s(u(oe)),l[8]||=c(` Mein Profil`,-1)]),_:1},8,[`href`])]),_:1}),s(u(J),{"as-child":``},{default:C(()=>[s(u(N),{href:`/profil/bearbeiten`},{default:C(()=>[s(u(Ne)),l[9]||=c(` Profil bearbeiten`,-1)]),_:1})]),_:1}),n.value.can_admin?(x(),T(u(J),{key:0,"as-child":``},{default:C(()=>[m(`a`,Pt,[s(u(U)),l[10]||=c(` Administration`,-1)])]),_:1})):k(``,!0),r.value.color_mode?k(``,!0):(x(),h(S,{key:1},[s(u(G)),s(u(Q),{class:`text-xs font-medium text-muted-foreground`},{default:C(()=>[...l[11]||=[c(`Darstellung`,-1)]]),_:1}),s(u(Ze),{"model-value":u(I),"onUpdate:modelValue":u(L)},{default:C(()=>[(x(),h(S,null,g(V,e=>s(u($e),{key:e.value,value:e.value},{default:C(()=>[(x(),T(D(e.icon),{class:`size-4 text-muted-foreground`})),c(` `+w(e.label),1)]),_:2},1032,[`value`])),64))]),_:1},8,[`model-value`,`onUpdate:modelValue`])],64)),s(u(G)),s(u(J),{"as-child":``},{default:C(()=>[s(u(N),{href:`/logout`,method:`post`,as:`button`,class:`w-full`},{default:C(()=>[s(u(ke)),l[12]||=c(` Abmelden`,-1)]),_:1})]),_:1})]),_:1})]),_:1})])])],10,vt),m(`main`,Ft,[O(t.$slots,`default`)]),r.value.footer.text||r.value.footer.links.length?(x(),h(`footer`,It,[m(`div`,Lt,[r.value.footer.text?(x(),h(`p`,Rt,w(r.value.footer.text),1)):k(``,!0),r.value.footer.links.length?(x(),h(`nav`,zt,[(x(!0),h(S,null,g(r.value.footer.links,e=>(x(),h(`a`,{key:e.url,href:e.url,class:`hover:text-foreground hover:underline`},w(e.label),9,Bt))),128))])):k(``,!0)])])):k(``,!0)]),s(u(be),{position:`bottom-right`})],64))}};export{Ne as n,ke as r,Ht as t}; \ No newline at end of file diff --git a/public/build/assets/Areas-Bzac5pwG.js b/public/build/assets/Areas-pbtOL7ox.js similarity index 91% rename from public/build/assets/Areas-Bzac5pwG.js rename to public/build/assets/Areas-pbtOL7ox.js index 8abe78cc..09132fc1 100644 --- a/public/build/assets/Areas-Bzac5pwG.js +++ b/public/build/assets/Areas-pbtOL7ox.js @@ -1 +1 @@ -import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./Panel-xPHuwfuu.js";import{t as c}from"./NewsCard-CWMFENyt.js";var l={class:`-mx-5 flex snap-x scroll-px-5 gap-4 overflow-x-auto px-5 pb-1 [scrollbar-width:none] sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 sm:pb-0 xl:grid-cols-4 [&::-webkit-scrollbar]:hidden`},u={__name:`Areas`,props:{posts:{type:Array,required:!0}},setup(u){return(d,f)=>(r(),o(s,{title:`Aktuelles aus den Bereichen`,"action-label":`Alle`,"action-href":`/neuigkeiten`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.posts,e=>(r(),o(c,{key:e.id,post:e,class:`w-[78%] shrink-0 snap-start sm:w-auto`},null,8,[`post`]))),128))])]),_:1}))}};export{u as default}; \ No newline at end of file +import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./Panel-DF-wChKt.js";import{t as c}from"./NewsCard-BnbSPjUt.js";var l={class:`-mx-5 flex snap-x scroll-px-5 gap-4 overflow-x-auto px-5 pb-1 [scrollbar-width:none] sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 sm:pb-0 xl:grid-cols-4 [&::-webkit-scrollbar]:hidden`},u={__name:`Areas`,props:{posts:{type:Array,required:!0}},setup(u){return(d,f)=>(r(),o(s,{title:`Aktuelles aus den Bereichen`,"action-label":`Alle`,"action-href":`/neuigkeiten`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.posts,e=>(r(),o(c,{key:e.id,post:e,class:`w-[78%] shrink-0 snap-start sm:w-auto`},null,8,[`post`]))),128))])]),_:1}))}};export{u as default}; \ No newline at end of file diff --git a/public/build/assets/BirthdayItem-DK6xURSZ.js b/public/build/assets/BirthdayItem-1R7P_7L0.js similarity index 90% rename from public/build/assets/BirthdayItem-DK6xURSZ.js rename to public/build/assets/BirthdayItem-1R7P_7L0.js index 7fcca362..740c2dfe 100644 --- a/public/build/assets/BirthdayItem-DK6xURSZ.js +++ b/public/build/assets/BirthdayItem-1R7P_7L0.js @@ -1 +1 @@ -import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-CIvn5Z1l.js";import{b as d,it as f}from"./AppIcon-BVHFLm12.js";var p={class:`relative shrink-0`},m={key:0,class:`absolute -right-1 -bottom-1 grid size-5 place-items-center rounded-full bg-brand text-brand-foreground ring-2 ring-card`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block truncate text-xs text-muted-foreground`},v={__name:`BirthdayItem`,props:{item:{type:Object,required:!0}},setup(v){let y=e=>new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}).format(new Date(`${e}T12:00:00`)),b=e=>new Intl.DateTimeFormat(`de-DE`,{weekday:`short`}).format(new Date(`${e}T12:00:00`));return(x,S)=>(a(),c(t(u),{href:`/personen/${v.item.person.id}`,class:`group flex items-center gap-3 py-2.5`},{default:o(()=>[r(`span`,p,[e(d,{person:v.item.person,class:`size-10`},null,8,[`person`]),v.item.today?(a(),i(`span`,m,[e(t(f),{class:`size-3`})])):l(``,!0)]),r(`span`,h,[r(`span`,g,s(v.item.person.name),1),r(`span`,_,s(v.item.person.job_title||v.item.person.department),1)]),r(`span`,{class:n([`shrink-0 text-right text-xs`,v.item.today?`font-semibold text-brand-text`:`text-muted-foreground`])},s(v.item.today?`Heute`:`${b(v.item.date)}, ${y(v.item.date)}`),3)]),_:1},8,[`href`]))}};export{v as t}; \ No newline at end of file +import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-Dy5FbYkt.js";import{b as d,it as f}from"./AppIcon-SVMShh8s.js";var p={class:`relative shrink-0`},m={key:0,class:`absolute -right-1 -bottom-1 grid size-5 place-items-center rounded-full bg-brand text-brand-foreground ring-2 ring-card`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block truncate text-xs text-muted-foreground`},v={__name:`BirthdayItem`,props:{item:{type:Object,required:!0}},setup(v){let y=e=>new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}).format(new Date(`${e}T12:00:00`)),b=e=>new Intl.DateTimeFormat(`de-DE`,{weekday:`short`}).format(new Date(`${e}T12:00:00`));return(x,S)=>(a(),c(t(u),{href:`/personen/${v.item.person.id}`,class:`group flex items-center gap-3 py-2.5`},{default:o(()=>[r(`span`,p,[e(d,{person:v.item.person,class:`size-10`},null,8,[`person`]),v.item.today?(a(),i(`span`,m,[e(t(f),{class:`size-3`})])):l(``,!0)]),r(`span`,h,[r(`span`,g,s(v.item.person.name),1),r(`span`,_,s(v.item.person.job_title||v.item.person.department),1)]),r(`span`,{class:n([`shrink-0 text-right text-xs`,v.item.today?`font-semibold text-brand-text`:`text-muted-foreground`])},s(v.item.today?`Heute`:`${b(v.item.date)}, ${y(v.item.date)}`),3)]),_:1},8,[`href`]))}};export{v as t}; \ No newline at end of file diff --git a/public/build/assets/BirthdaysBlock-ClAbA8ni.js b/public/build/assets/BirthdaysBlock-B1d6oFTq.js similarity index 91% rename from public/build/assets/BirthdaysBlock-ClAbA8ni.js rename to public/build/assets/BirthdaysBlock-B1d6oFTq.js index c6fd0429..29e7ab32 100644 --- a/public/build/assets/BirthdaysBlock-ClAbA8ni.js +++ b/public/build/assets/BirthdaysBlock-B1d6oFTq.js @@ -1 +1 @@ -import{_ as e,b as t,bt as n,mt as r,o as i,tr as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as c}from"./BirthdayItem-DK6xURSZ.js";var l={key:0,class:`mb-3 text-lg font-semibold`},u={class:`divide-y rounded-lg border bg-card px-4`},d={key:0,class:`py-3 text-sm text-muted-foreground`},f={__name:`BirthdaysBlock`,props:{block:{type:Object,required:!0}},setup(f){return(p,m)=>(r(),t(`section`,null,[f.block.data.title?(r(),t(`h3`,l,a(f.block.data.title),1)):s(``,!0),e(`div`,u,[(r(!0),t(i,null,n(f.block.props?.birthdays??[],e=>(r(),o(c,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128)),(f.block.props?.birthdays??[]).length?s(``,!0):(r(),t(`p`,d,`Keine anstehenden Geburtstage.`))])]))}};export{f as default}; \ No newline at end of file +import{_ as e,b as t,bt as n,mt as r,o as i,tr as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as c}from"./BirthdayItem-1R7P_7L0.js";var l={key:0,class:`mb-3 text-lg font-semibold`},u={class:`divide-y rounded-lg border bg-card px-4`},d={key:0,class:`py-3 text-sm text-muted-foreground`},f={__name:`BirthdaysBlock`,props:{block:{type:Object,required:!0}},setup(f){return(p,m)=>(r(),t(`section`,null,[f.block.data.title?(r(),t(`h3`,l,a(f.block.data.title),1)):s(``,!0),e(`div`,u,[(r(!0),t(i,null,n(f.block.props?.birthdays??[],e=>(r(),o(c,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128)),(f.block.props?.birthdays??[]).length?s(``,!0):(r(),t(`p`,d,`Keine anstehenden Geburtstage.`))])]))}};export{f as default}; \ No newline at end of file diff --git a/public/build/assets/Box-Bm0v4HQS.js b/public/build/assets/Box-anuOZX0-.js similarity index 96% rename from public/build/assets/Box-Bm0v4HQS.js rename to public/build/assets/Box-anuOZX0-.js index 5b7250ee..555b482e 100644 --- a/public/build/assets/Box-Bm0v4HQS.js +++ b/public/build/assets/Box-anuOZX0-.js @@ -1 +1 @@ -import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{J as u,L as d}from"./AppIcon-BVHFLm12.js";import{S as f,v as p,x as m}from"./http-9R3L4KBg.js";import{t as h}from"./circle-alert-qymEjja5.js";var g=[`role`],_={class:`min-w-0 flex-1`},v={key:0,class:`mb-2 font-semibold`},y={__name:`Box`,props:{block:{type:Object,required:!0}},setup(y){let b=e(`pagebuilder:list`),x={info:{icon:m,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,iconClass:`text-sky-600 dark:text-sky-400`},note:{icon:u,class:`border-amber-200 bg-amber-50 text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`,iconClass:`text-amber-600 dark:text-amber-400`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`,iconClass:`text-red-600 dark:text-red-400`},success:{icon:f,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,iconClass:`text-emerald-600 dark:text-emerald-400`},neutral:{icon:h,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:d,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,u)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[y.block.data.variant]?.class]),role:y.block.data.variant===`warning`?`alert`:`note`},[y.block.data.show_icon?(a(),s(c(x[y.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[y.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,_,[y.block.data.title?(a(),i(`p`,v,o(y.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:y.block.items[0]},null,8,[`item`]))])],10,g))}};export{y as default}; \ No newline at end of file +import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{J as u,L as d}from"./AppIcon-SVMShh8s.js";import{S as f,v as p,x as m}from"./http-9R3L4KBg.js";import{t as h}from"./circle-alert-qymEjja5.js";var g=[`role`],_={class:`min-w-0 flex-1`},v={key:0,class:`mb-2 font-semibold`},y={__name:`Box`,props:{block:{type:Object,required:!0}},setup(y){let b=e(`pagebuilder:list`),x={info:{icon:m,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,iconClass:`text-sky-600 dark:text-sky-400`},note:{icon:u,class:`border-amber-200 bg-amber-50 text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`,iconClass:`text-amber-600 dark:text-amber-400`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`,iconClass:`text-red-600 dark:text-red-400`},success:{icon:f,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,iconClass:`text-emerald-600 dark:text-emerald-400`},neutral:{icon:h,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:d,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,u)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[y.block.data.variant]?.class]),role:y.block.data.variant===`warning`?`alert`:`note`},[y.block.data.show_icon?(a(),s(c(x[y.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[y.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,_,[y.block.data.title?(a(),i(`p`,v,o(y.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:y.block.items[0]},null,8,[`item`]))])],10,g))}};export{y as default}; \ No newline at end of file diff --git a/public/build/assets/BrandLogo-TGGJyC1K.js b/public/build/assets/BrandLogo-DRGdNySk.js similarity index 95% rename from public/build/assets/BrandLogo-TGGJyC1K.js rename to public/build/assets/BrandLogo-DRGdNySk.js index 4f661e9b..dab3bb6d 100644 --- a/public/build/assets/BrandLogo-TGGJyC1K.js +++ b/public/build/assets/BrandLogo-DRGdNySk.js @@ -1 +1 @@ -import{Zn as e,_ as t,b as n,g as r,mt as i,o as a,tr as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as c}from"./app-CIvn5Z1l.js";var l={class:`flex items-center gap-3`},u=[`src`,`alt`],d=[`src`,`alt`],f=[`src`,`alt`],p=[`src`,`alt`],m=[`src`],h={class:`text-[17px] font-semibold tracking-tight`},g={__name:`BrandLogo`,props:{inverted:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},setup(g){let _=g,v=r(()=>c().props.branding),y=r(()=>v.value.portal_name.trim().charAt(0).toUpperCase()),b=r(()=>v.value.logo_dark_url??v.value.logo_url);return(r,c)=>(i(),n(`span`,l,[v.value.logo_url?(i(),n(a,{key:0},[g.compact&&v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:v.value.portal_name,class:`size-8 sm:hidden`},null,8,u)):s(``,!0),t(`span`,{class:e(g.compact&&v.value.logo_mark_url?`hidden sm:contents`:`contents`)},[_.inverted?(i(),n(`img`,{key:0,src:b.value,alt:v.value.portal_name,class:`h-8 w-auto`},null,8,d)):(i(),n(a,{key:1},[t(`img`,{src:v.value.logo_url,alt:v.value.portal_name,class:`h-8 w-auto dark:hidden`},null,8,f),t(`img`,{src:b.value,alt:v.value.portal_name,class:`hidden h-8 w-auto dark:block`},null,8,p)],64))],2)],64)):(i(),n(a,{key:1},[v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:``,class:`size-8`},null,8,m)):(i(),n(`span`,{key:1,class:e([`grid size-8 place-items-center rounded-md text-base font-bold`,_.inverted?`bg-white/15 text-current`:`bg-brand text-brand-foreground`])},o(y.value),3)),t(`span`,h,o(v.value.portal_name),1)],64))]))}};export{g as t}; \ No newline at end of file +import{Zn as e,_ as t,b as n,g as r,mt as i,o as a,tr as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as c}from"./app-Dy5FbYkt.js";var l={class:`flex items-center gap-3`},u=[`src`,`alt`],d=[`src`,`alt`],f=[`src`,`alt`],p=[`src`,`alt`],m=[`src`],h={class:`text-[17px] font-semibold tracking-tight`},g={__name:`BrandLogo`,props:{inverted:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},setup(g){let _=g,v=r(()=>c().props.branding),y=r(()=>v.value.portal_name.trim().charAt(0).toUpperCase()),b=r(()=>v.value.logo_dark_url??v.value.logo_url);return(r,c)=>(i(),n(`span`,l,[v.value.logo_url?(i(),n(a,{key:0},[g.compact&&v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:v.value.portal_name,class:`size-8 sm:hidden`},null,8,u)):s(``,!0),t(`span`,{class:e(g.compact&&v.value.logo_mark_url?`hidden sm:contents`:`contents`)},[_.inverted?(i(),n(`img`,{key:0,src:b.value,alt:v.value.portal_name,class:`h-8 w-auto`},null,8,d)):(i(),n(a,{key:1},[t(`img`,{src:v.value.logo_url,alt:v.value.portal_name,class:`h-8 w-auto dark:hidden`},null,8,f),t(`img`,{src:b.value,alt:v.value.portal_name,class:`hidden h-8 w-auto dark:block`},null,8,p)],64))],2)],64)):(i(),n(a,{key:1},[v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:``,class:`size-8`},null,8,m)):(i(),n(`span`,{key:1,class:e([`grid size-8 place-items-center rounded-md text-base font-bold`,_.inverted?`bg-white/15 text-current`:`bg-brand text-brand-foreground`])},o(y.value),3)),t(`span`,h,o(v.value.portal_name),1)],64))]))}};export{g as t}; \ No newline at end of file diff --git a/public/build/assets/Builder-ChYMgScI.js b/public/build/assets/Builder-ChYMgScI.js new file mode 100644 index 00000000..99cf5d90 --- /dev/null +++ b/public/build/assets/Builder-ChYMgScI.js @@ -0,0 +1 @@ +import{D as e,E as t,Ht as n,J as r,On as i,Yt as a,Zn as o,_ as s,b as c,bt as l,ct as u,er as d,g as f,gn as p,gt as m,it as h,mt as g,o as _,qt as v,tr as y,v as b,vn as x,wt as S,y as C}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w,x as T}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as E,n as D,t as O}from"./app-Dy5FbYkt.js";import{A as k,j as A}from"./dist-CleIz2GP.js";import{n as j,t as M}from"./arrow-up-B8ttChMk.js";import{t as ee}from"./arrow-left-nZZEveo4.js";import{C as N,S as te,_ as P,a as ne,b as F,i as re,n as ie,o as I,r as ae,t as oe,x as L,y as R}from"./http-9R3L4KBg.js";import{a as z,i as B,n as se,o as ce,r as le,t as ue}from"./vue-draggable-plus-qBP-KoW2.js";import{t as de}from"./eye-DcTo_il4.js";import{t as V}from"./lock-4X8Kfof0.js";import{t as H}from"./paperclip-D1QLTe3x.js";import{t as fe}from"./pencil-line-Cp-EHBoW.js";import{t as U}from"./plus-cKZvz4wH.js";import{t as pe}from"./save-COy1XW3C.js";import{t as me}from"./table-properties-B82lvC7D.js";import{t as W}from"./trash-3XeUxfQJ.js";import{t as G}from"./Switch-BaFVWLMv.js";import{t as K}from"./button-SRYY3-ko.js";import{t as q}from"./NativeSelect-BBbvK4oZ.js";import{t as J}from"./Input-CgjHXzkf.js";import{t as he}from"./Textarea-DWpyL-nk.js";import{t as ge}from"./FormRenderer-BI08HA0r.js";var _e=A({name:`asterisk`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m18.065 8.496-12.125 7`,key:`1h26g9`}],[`path`,{d:`m5.94 8.504 12.125 7`,key:`k77sdm`}]]}),ve=A({name:`at-sign`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]}),ye=A({name:`calendar`,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`}]]}),be=A({name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]}),xe=A({name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]}),Se=A({name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]}),Ce=A({name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]}),we=A({name:`square-check-big`,size:24,node:[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-square`]}),Y={text:{icon:A({name:`text-cursor-input`,size:24,node:[[`path`,{d:`M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6`,key:`1528k5`}],[`path`,{d:`M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7`,key:`13ksps`}],[`path`,{d:`M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1`,key:`1n9rhb`}],[`path`,{d:`M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1`,key:`1mj8rg`}],[`path`,{d:`M9 6v12`,key:`velyjx`}]]}),group:`Eingabe`,defaults:{label:`Textzeile`,width:`full`}},textarea:{icon:se,group:`Eingabe`,defaults:{label:`Mehrzeiliger Text`,rows:4,width:`full`}},email:{icon:ve,group:`Eingabe`,defaults:{label:`E-Mail-Adresse`,width:`half`}},phone:{icon:R,group:`Eingabe`,defaults:{label:`Telefonnummer`,width:`half`}},number:{icon:Ce,group:`Eingabe`,defaults:{label:`Zahl`,width:`half`}},date:{icon:ye,group:`Eingabe`,defaults:{label:`Datum`,width:`half`}},select:{icon:be,group:`Auswahl`,defaults:{label:`Auswahlliste`,options:[`Option 1`,`Option 2`],width:`full`}},radio:{icon:xe,group:`Auswahl`,defaults:{label:`Einfachauswahl`,options:[`Ja`,`Nein`],width:`full`}},checkboxes:{icon:F,group:`Auswahl`,defaults:{label:`Mehrfachauswahl`,options:[`Option 1`,`Option 2`,`Option 3`],width:`full`}},checkbox:{icon:we,group:`Auswahl`,defaults:{label:`Ich stimme zu.`,width:`full`}},file:{icon:H,group:`Sonstiges`,defaults:{label:`Datei`,accept:`any`,max_size:10,width:`full`}},heading:{icon:B,group:`Gestaltung`,defaults:{text:`Zwischenüberschrift`}},paragraph:{icon:L,group:`Gestaltung`,defaults:{text:`Hinweistext`}}},X=[`heading`,`paragraph`],Z=[`select`,`radio`,`checkboxes`];function Te(e){return String(e??``).toLowerCase().replace(/ä/g,`ae`).replace(/ö/g,`oe`).replace(/ü/g,`ue`).replace(/ß/g,`ss`).normalize(`NFKD`).replace(/[̀-ͯ]/g,``).replace(/@/g,`_at_`).replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``).slice(0,60)}function Q(){return Math.random().toString(36).slice(2,10)}function Ee(e){let t=new Set(e.filter(e=>!e._new&&e.data.key).map(e=>e.data.key));for(let n of e){if(!n._new)continue;let e=Te(n.data.label||n.data.text||n.type)||n.type,r=e;for(let n=2;t.has(r);n++)r=`${e}_${n}`;n.data.key=r,t.add(r)}}function De(e){return{_id:Q(),_new:!0,type:e,data:structuredClone(Y[e].defaults)}}function Oe(e){let t={documents:`.pdf,.doc,.docx,.xls,.xlsx,.odt,.ods,.ppt,.pptx,.txt,.csv,.rtf`,images:`.jpg,.jpeg,.png,.webp,.gif,.heic`,any:``};return e.map(({type:e,data:n})=>({type:e,key:n.key,label:n.label,text:n.text,help:n.help,placeholder:n.placeholder,required:!!n.required,options:(n.options??[]).filter(e=>e!==``),width:n.width??`full`,min:n.min,max:n.max,rows:n.rows,multiple:!!n.multiple,accept:t[n.accept??`any`]||void 0,max_size:n.max_size,locked:!!(n.locked&&n.prefill&&[`text`,`email`,`phone`].includes(e)),condition:n.condition_field?{field:n.condition_field,operator:n.condition_operator??`equals`,value:String(n.condition_value??``)}:null}))}var ke={equals:`ist gleich`,not_equals:`ist nicht`,contains:`enthält`,filled:`ist ausgefüllt`,empty:`ist leer`},Ae=[`data-field-id`],je={class:`fb-handle flex cursor-grab items-center gap-1 px-1 py-0.5 font-medium text-muted-foreground active:cursor-grabbing`,title:`Ziehen zum Verschieben`},Me=[`aria-pressed`],Ne=[`title`],Pe={key:0,class:`mb-1.5 mr-1 inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground`},Fe={key:1,class:`mb-1.5 inline-flex items-center gap-1 rounded bg-amber-100 px-1.5 py-0.5 text-[11px] text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},Ie={key:4,class:`flex items-start gap-2.5`},Le={key:0,class:`text-destructive`},Re={key:5,class:`grid gap-1.5`},ze={class:`flex items-center gap-0.5 text-[13px] font-medium`},Be={key:0,class:`text-destructive`},Ve={key:1,class:`grid gap-1.5`},He={key:0,class:`grid gap-1 rounded-md border border-dashed p-2`},Ue={class:`w-5 text-right text-xs text-muted-foreground`},We=[`onUpdate:modelValue`,`data-option`,`onKeydown`],Ge=[`onClick`],Ke={key:2,class:`grid gap-1.5`},qe=[`onUpdate:modelValue`,`data-option`,`onKeydown`],Je=[`onClick`],Ye={key:3,class:`flex h-10 items-center justify-center gap-2 rounded-md border border-dashed text-sm text-muted-foreground`},Xe={key:5,class:`flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm text-muted-foreground`},Ze={key:6,class:`rounded-md border border-input bg-card shadow-xs`},Qe=[`placeholder`,`disabled`],$=`w-full min-w-0 rounded-sm bg-transparent outline-none placeholder:text-muted-foreground/60 focus:bg-brand-soft/40`,$e=`field-sizing-content min-w-6 max-w-full rounded-sm bg-transparent outline-none placeholder:text-muted-foreground/60 focus:bg-brand-soft/40`,et=`flex h-9 w-full items-center rounded-md border border-input bg-card px-3 text-sm text-muted-foreground shadow-xs`,tt={__name:`BuilderField`,props:{field:{type:Object,required:!0},index:{type:Number,required:!0}},setup(n){let u=n,p=r(`forms:builder`),m=f(()=>p.selectedId.value===u.field._id),h=f(()=>p.errorIndex.value===u.index),v=f(()=>X.includes(u.field.type)),x=f(()=>u.field.data),E=f(()=>{if(!x.value.condition_field)return null;let e=p.fields.find(e=>e.data.key===x.value.condition_field)?.data.label??x.value.condition_field,t=ke[x.value.condition_operator??`equals`];return[`filled`,`empty`].includes(x.value.condition_operator)?`${e} ${t}`:`${e} ${t} „${x.value.condition_value??``}“`});function D(){x.value.options=[...x.value.options??[],`Option ${(x.value.options?.length??0)+1}`],requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${x.value.options.length-1}"]`)?.select())}function O(e){x.value.options=x.value.options.filter((t,n)=>n!==e)}function k(e,t){e.key===`Enter`?(e.preventDefault(),x.value.options.splice(t+1,0,``),requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${t+1}"]`)?.focus())):e.key===`Backspace`&&x.value.options[t]===``&&x.value.options.length>1&&(e.preventDefault(),O(t),requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${Math.max(0,t-1)}"]`)?.focus()))}return(r,u)=>(g(),c(`div`,{class:o([`group relative rounded-md p-3 outline-offset-2 transition-[outline-color]`,[n.field.data.width===`half`&&!v.value?``:`@xl:col-span-2`,m.value?`bg-brand-soft/30 outline-2 outline-brand-500`:h.value?`outline-2 outline-destructive`:`outline-1 outline-transparent hover:outline-brand-300`]]),"data-field-id":n.field._id,onClick:u[13]||=w(e=>i(p).select(n.field._id),[`stop`])},[s(`div`,{class:o([`absolute -top-3.5 right-2 z-10 items-center gap-0.5 rounded-md border bg-card px-1 py-0.5 text-xs shadow-sm`,m.value?`flex`:`hidden group-hover:flex`]),onClick:u[4]||=w(()=>{},[`stop`])},[s(`span`,je,[e(i(z),{class:`size-3.5`}),(g(),b(S(i(Y)[n.field.type].icon),{class:`size-3.5`})),t(` `+y(i(p).types[n.field.type]),1)]),v.value?C(``,!0):(g(),c(_,{key:0},[u[15]||=s(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),s(`button`,{type:`button`,class:o([`flex h-6 items-center gap-1 rounded px-1.5`,x.value.required?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),"aria-pressed":!!x.value.required,title:`Pflichtfeld`,onClick:u[0]||=e=>x.value.required=!x.value.required},[e(i(_e),{class:`size-3.5`}),u[14]||=t(` Pflicht `,-1)],10,Me),s(`button`,{type:`button`,class:`h-6 rounded px-1.5 text-muted-foreground hover:bg-accent`,title:x.value.width===`half`?`Volle Breite`:`Halbe Breite`,onClick:u[1]||=e=>x.value.width=x.value.width===`half`?`full`:`half`},y(x.value.width===`half`?`½`:`1/1`),9,Ne)],64)),u[16]||=s(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Duplizieren`,onClick:u[2]||=e=>i(p).duplicate(n.field._id)},[e(i(ce),{class:`size-3.5`})]),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:u[3]||=e=>i(p).remove(n.field._id)},[e(i(W),{class:`size-3.5`})])],2),x.value.prefill&&!x.value.locked&&!v.value?(g(),c(`p`,Pe,` Vorbelegt: `+y(i(p).prefillOptions.find(e=>e.value===x.value.prefill)?.label??x.value.prefill),1)):C(``,!0),E.value?(g(),c(`p`,Fe,[e(i(Se),{class:`size-3`}),t(` Nur wenn `+y(E.value),1)])):C(``,!0),n.field.type===`heading`?a((g(),c(`input`,{key:2,"onUpdate:modelValue":u[5]||=e=>x.value.text=e,class:o([$,`text-lg font-semibold`]),placeholder:`Zwischenüberschrift`,"aria-label":`Zwischenüberschrift`},null,2)),[[T,x.value.text]]):n.field.type===`paragraph`?a((g(),c(`textarea`,{key:3,"onUpdate:modelValue":u[6]||=e=>x.value.text=e,class:o([$,`field-sizing-content resize-none text-sm leading-relaxed text-muted-foreground`]),rows:`1`,placeholder:`Hinweistext`,"aria-label":`Hinweistext`},null,2)),[[T,x.value.text]]):n.field.type===`checkbox`?(g(),c(`div`,Ie,[u[17]||=s(`span`,{class:`mt-0.5 size-4 shrink-0 rounded-[4px] border border-input bg-card`},null,-1),a(s(`input`,{"onUpdate:modelValue":u[7]||=e=>x.value.label=e,class:o([$e,`text-sm`]),placeholder:`Text neben dem Kästchen`,"aria-label":`Bezeichnung`},null,2),[[T,x.value.label]]),x.value.required?(g(),c(`span`,Le,`*`)):C(``,!0)])):(g(),c(`div`,Re,[s(`div`,ze,[a(s(`input`,{"onUpdate:modelValue":u[8]||=e=>x.value.label=e,class:o($e),placeholder:`Bezeichnung`,"aria-label":`Bezeichnung`},null,512),[[T,x.value.label]]),x.value.required?(g(),c(`span`,Be,`*`)):C(``,!0)]),n.field.type===`textarea`?(g(),c(`div`,{key:0,class:`rounded-md border border-input bg-card shadow-xs`,style:d({height:`${(x.value.rows??4)*1.5+1}rem`})},[a(s(`input`,{"onUpdate:modelValue":u[9]||=e=>x.value.placeholder=e,class:`w-full bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground/50`,placeholder:`Platzhalter (optional)`,"aria-label":`Platzhalter`},null,512),[[T,x.value.placeholder]])],4)):n.field.type===`select`?(g(),c(`div`,Ve,[s(`div`,{class:o([et,`justify-between`])},[u[18]||=t(`Bitte wählen … `,-1),e(i(N),{class:`size-4`})],2),m.value?(g(),c(`div`,He,[u[20]||=s(`p`,{class:`text-xs text-muted-foreground`},`Auswahlmöglichkeiten`,-1),(g(!0),c(_,null,l(x.value.options,(t,r)=>(g(),c(`div`,{key:r,class:`flex items-center gap-2`},[s(`span`,Ue,y(r+1)+`.`,1),a(s(`input`,{"onUpdate:modelValue":e=>x.value.options[r]=e,"data-option":`${n.field._id}-${r}`,class:o([$,`text-sm`]),placeholder:`Auswahlmöglichkeit`,onKeydown:e=>k(e,r)},null,42,We),[[T,x.value.options[r]]]),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-muted-foreground hover:bg-accent`,title:`Entfernen`,onClick:w(e=>O(r),[`stop`])},[e(i(P),{class:`size-3.5`})],8,Ge)]))),128)),s(`button`,{type:`button`,class:`inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:w(D,[`stop`])},[e(i(U),{class:`size-3.5`}),u[19]||=t(` Auswahlmöglichkeit`,-1)])])):C(``,!0)])):i(Z).includes(n.field.type)?(g(),c(`div`,Ke,[(g(!0),c(_,null,l(x.value.options,(t,r)=>(g(),c(`div`,{key:r,class:`flex items-center gap-2.5`},[s(`span`,{class:o([`size-4 shrink-0 border border-input bg-card`,n.field.type===`radio`?`rounded-full`:`rounded-[4px]`])},null,2),a(s(`input`,{"onUpdate:modelValue":e=>x.value.options[r]=e,"data-option":`${n.field._id}-${r}`,class:o([$,`text-sm`]),placeholder:`Auswahlmöglichkeit`,onKeydown:e=>k(e,r),onFocus:u[10]||=e=>i(p).select(n.field._id)},null,42,qe),[[T,x.value.options[r]]]),m.value?(g(),c(`button`,{key:0,type:`button`,class:`grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent`,title:`Entfernen`,onClick:w(e=>O(r),[`stop`])},[e(i(P),{class:`size-3.5`})],8,Je)):C(``,!0)]))),128)),m.value?(g(),c(`button`,{key:0,type:`button`,class:`ml-6.5 inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:w(D,[`stop`])},[e(i(U),{class:`size-3.5`}),u[21]||=t(` Auswahlmöglichkeit`,-1)])):C(``,!0)])):n.field.type===`file`?(g(),c(`div`,Ye,[e(i(H),{class:`size-4`}),t(` `+y(x.value.multiple?`Dateien auswählen`:`Datei auswählen`),1)])):n.field.type===`date`?(g(),c(`div`,{key:4,class:o([et,`justify-between`])},[u[22]||=t(`TT.MM.JJJJ `,-1),e(i(ye),{class:`size-4`})],2)):x.value.locked&&x.value.prefill?(g(),c(`div`,Xe,[e(i(V),{class:`size-3.5`}),t(` Aus dem Profil: `+y(i(p).prefillOptions.find(e=>e.value===x.value.prefill)?.label??x.value.prefill)+` – nicht änderbar `,1)])):(g(),c(`div`,Ze,[a(s(`input`,{"onUpdate:modelValue":u[11]||=e=>x.value.placeholder=e,class:`h-9 w-full bg-transparent px-3 text-sm outline-none placeholder:text-muted-foreground/50`,placeholder:n.field.type===`text`?`Platzhalter (optional)`:``,disabled:n.field.type!==`text`,"aria-label":`Platzhalter`},null,8,Qe),[[T,x.value.placeholder]])])),m.value||x.value.help?a((g(),c(`input`,{key:7,"onUpdate:modelValue":u[12]||=e=>x.value.help=e,class:o([$,`text-[13px] text-muted-foreground`]),placeholder:`Hinweis unter dem Feld hinzufügen …`,"aria-label":`Hinweis`},null,2)),[[T,x.value.help]]):C(``,!0)]))],10,Ae))}},nt={class:`grid gap-5`},rt={class:`flex items-center gap-3`},it={class:`grid size-9 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},at={class:`min-w-0`},ot={class:`font-semibold`},st={key:0,class:`grid gap-1.5`},ct={class:`grid gap-1.5`},lt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},ut={class:`grid gap-1.5`},dt={class:`grid grid-cols-2 rounded-md border p-0.5 text-[13px]`,role:`group`},ft=[`aria-pressed`,`onClick`],pt={class:`grid gap-1.5`},mt={key:0,class:`grid gap-1.5`},ht={key:1,class:`grid gap-1.5 rounded-md border p-3`},gt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},_t={class:`text-xs text-muted-foreground`},vt={key:0,class:`text-xs text-amber-700 dark:text-amber-300`},yt={key:2,class:`grid grid-cols-2 gap-3`},bt={key:0,class:`grid gap-1.5`},xt={class:`text-[13px] font-medium`},St={class:`grid gap-1.5`},Ct={class:`text-[13px] font-medium`},wt={key:1,class:`grid gap-1.5`},Tt={class:`grid gap-1.5`},Et={class:`grid gap-1.5`},Dt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Ot={key:4,class:`grid gap-1.5`},kt=[`onClick`],At=[`onClick`],jt=[`onClick`],Mt=[`open`],Nt={class:`grid gap-3 border-t px-3 py-3`},Pt={key:0,class:`text-xs text-muted-foreground`},Ft={key:2,class:`grid gap-1.5`},It={__name:`FieldSettings`,props:{field:{type:Object,required:!0}},setup(n){let a=n,u=r(`forms:builder`),d=f(()=>a.field.data),p=f(()=>X.includes(a.field.type)),m=f(()=>{let e=u.fields.findIndex(e=>e._id===a.field._id);return u.fields.slice(0,e).filter(e=>!X.includes(e.type)).map(e=>({value:e.data.key,label:e.data.label||e.data.key}))}),h=f(()=>u.fields.find(e=>e.data.key===d.value.condition_field)),v=f(()=>{let e=h.value;return e?e.type===`checkbox`?[{value:`1`,label:`angehakt`}]:Z.includes(e.type)?(e.data.options??[]).filter(Boolean).map(e=>({value:e,label:e})):null:null});function x(e){if(!e){delete d.value.condition_field,delete d.value.condition_operator,delete d.value.condition_value;return}d.value.condition_field=e,d.value.condition_operator??=`equals`}function w(e,t){let n=[...d.value.options],r=e+t;r<0||r>=n.length||([n[e],n[r]]=[n[r],n[e]],d.value.options=n)}let T=e=>({get:()=>d.value[e]??``,set:t=>t===``||t===null?delete d.value[e]:d.value[e]=Number(t)}),E=f(T(`min`)),D=f(T(`max`)),O=f(T(`rows`)),k=f(T(`max_size`));return(r,a)=>(g(),c(`div`,nt,[s(`header`,rt,[s(`span`,it,[(g(),b(S(i(Y)[n.field.type].icon),{class:`size-4.5`}))]),s(`div`,at,[s(`h2`,ot,y(i(u).types[n.field.type]),1),a[17]||=s(`p`,{class:`text-xs text-muted-foreground`},`Bezeichnung und Auswahlmöglichkeiten bearbeiten Sie direkt im Formular.`,-1)])]),p.value?(g(),c(`label`,st,[a[18]||=s(`span`,{class:`text-[13px] font-medium`},`Text`,-1),n.field.type===`paragraph`?(g(),b(i(he),{key:0,modelValue:d.value.text,"onUpdate:modelValue":a[0]||=e=>d.value.text=e,rows:`4`,maxlength:`3000`},null,8,[`modelValue`])):(g(),b(i(J),{key:1,modelValue:d.value.text,"onUpdate:modelValue":a[1]||=e=>d.value.text=e,maxlength:`200`},null,8,[`modelValue`]))])):(g(),c(_,{key:1},[s(`label`,ct,[a[19]||=s(`span`,{class:`text-[13px] font-medium`},`Bezeichnung`,-1),e(i(J),{modelValue:d.value.label,"onUpdate:modelValue":a[2]||=e=>d.value.label=e,maxlength:`200`},null,8,[`modelValue`])]),s(`label`,lt,[a[20]||=t(` Pflichtfeld `,-1),e(i(G),{"model-value":!!d.value.required,"onUpdate:modelValue":a[3]||=e=>d.value.required=e},null,8,[`model-value`])]),s(`div`,ut,[a[21]||=s(`span`,{class:`text-[13px] font-medium`},`Breite`,-1),s(`div`,dt,[(g(),c(_,null,l([{value:`full`,label:`Volle Breite`},{value:`half`,label:`Halbe Breite`}],e=>s(`button`,{key:e.value,type:`button`,class:o([`rounded py-1.5`,(d.value.width??`full`)===e.value?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),"aria-pressed":(d.value.width??`full`)===e.value,onClick:t=>d.value.width=e.value},y(e.label),11,ft)),64))])]),s(`label`,pt,[a[22]||=s(`span`,{class:`text-[13px] font-medium`},`Hinweis unter dem Feld`,-1),e(i(J),{modelValue:d.value.help,"onUpdate:modelValue":a[4]||=e=>d.value.help=e,maxlength:`300`},null,8,[`modelValue`])]),[`text`,`email`,`phone`].includes(n.field.type)?(g(),c(`label`,mt,[a[23]||=s(`span`,{class:`text-[13px] font-medium`},`Vorbelegen mit`,-1),e(q,{"model-value":d.value.prefill??null,options:i(u).prefillOptions,placeholder:`– nicht vorbelegen –`,"onUpdate:modelValue":a[5]||=e=>e?d.value.prefill=e:(delete d.value.prefill,delete d.value.locked)},null,8,[`model-value`,`options`])])):C(``,!0),[`text`,`email`,`phone`].includes(n.field.type)&&d.value.prefill?(g(),c(`div`,ht,[s(`label`,gt,[a[24]||=t(` Nicht änderbar `,-1),e(i(G),{"model-value":!!d.value.locked,"onUpdate:modelValue":a[6]||=e=>e?d.value.locked=!0:delete d.value.locked},null,8,[`model-value`])]),s(`span`,_t,y(d.value.locked?`Das Feld zeigt den Wert aus dem Profil und kann nicht geändert werden. Beim Absenden wird immer der Profilwert gespeichert.`:`Das Feld ist mit dem Profilwert vorausgefüllt, kann aber geändert werden.`),1),d.value.locked&&i(u).anonymous?(g(),c(`span`,vt,`Achtung: Das Formular ist anonym – diese Profilangabe wird trotzdem mit der Einsendung gespeichert.`)):C(``,!0)])):C(``,!0),[`text`,`textarea`,`number`,`checkboxes`].includes(n.field.type)?(g(),c(`div`,yt,[[`number`,`checkboxes`].includes(n.field.type)?(g(),c(`label`,bt,[s(`span`,xt,y(n.field.type===`checkboxes`?`Mindestens wählen`:`Mindestens`),1),e(i(J),{modelValue:E.value,"onUpdate:modelValue":a[7]||=e=>E.value=e,type:`number`},null,8,[`modelValue`])])):C(``,!0),s(`label`,St,[s(`span`,Ct,y({text:`Höchstlänge`,textarea:`Höchstlänge`,number:`Höchstens`,checkboxes:`Höchstens wählen`}[n.field.type]),1),e(i(J),{modelValue:D.value,"onUpdate:modelValue":a[8]||=e=>D.value=e,type:`number`,min:`1`},null,8,[`modelValue`])]),n.field.type===`textarea`?(g(),c(`label`,wt,[a[25]||=s(`span`,{class:`text-[13px] font-medium`},`Zeilen`,-1),e(i(J),{modelValue:O.value,"onUpdate:modelValue":a[9]||=e=>O.value=e,type:`number`,min:`2`,max:`20`},null,8,[`modelValue`])])):C(``,!0)])):C(``,!0),n.field.type===`file`?(g(),c(_,{key:3},[s(`label`,Tt,[a[26]||=s(`span`,{class:`text-[13px] font-medium`},`Erlaubte Dateien`,-1),e(q,{modelValue:d.value.accept,"onUpdate:modelValue":a[10]||=e=>d.value.accept=e,options:[{value:`documents`,label:`Dokumente (PDF, Office …)`},{value:`images`,label:`Bilder`},{value:`any`,label:`Dokumente und Bilder`}]},null,8,[`modelValue`])]),s(`label`,Et,[a[27]||=s(`span`,{class:`text-[13px] font-medium`},`Höchstgröße in MB`,-1),e(i(J),{modelValue:k.value,"onUpdate:modelValue":a[11]||=e=>k.value=e,type:`number`,min:`1`,max:`50`},null,8,[`modelValue`])]),s(`label`,Dt,[a[28]||=t(` Mehrere Dateien (bis 10) `,-1),e(i(G),{"model-value":!!d.value.multiple,"onUpdate:modelValue":a[12]||=e=>d.value.multiple=e},null,8,[`model-value`])])],64)):C(``,!0),i(Z).includes(n.field.type)?(g(),c(`div`,Ot,[a[30]||=s(`span`,{class:`text-[13px] font-medium`},`Auswahlmöglichkeiten`,-1),(g(!0),c(_,null,l(d.value.options,(t,n)=>(g(),c(`div`,{key:n,class:`flex items-center gap-1`},[e(i(J),{modelValue:d.value.options[n],"onUpdate:modelValue":e=>d.value.options[n]=e,class:`h-8`,maxlength:`200`},null,8,[`modelValue`,`onUpdate:modelValue`]),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>w(n,-1)},[e(i(M),{class:`size-3.5`})],8,kt),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:e=>w(n,1)},[e(i(j),{class:`size-3.5`})],8,At),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>d.value.options=d.value.options.filter((e,t)=>t!==n)},[e(i(P),{class:`size-3.5`})],8,jt)]))),128)),s(`button`,{type:`button`,class:`inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:a[13]||=e=>d.value.options=[...d.value.options??[],``]},[e(i(U),{class:`size-3.5`}),a[29]||=t(` Hinzufügen`,-1)])])):C(``,!0)],64)),s(`details`,{class:`rounded-md border`,open:!!d.value.condition_field},[a[31]||=s(`summary`,{class:`cursor-pointer px-3 py-2 text-[13px] font-medium`},`Nur anzeigen, wenn …`,-1),s(`div`,Nt,[m.value.length?(g(),c(_,{key:1},[e(q,{"model-value":d.value.condition_field??null,options:m.value,placeholder:`– immer anzeigen –`,"aria-label":`Feld`,"onUpdate:modelValue":x},null,8,[`model-value`,`options`]),d.value.condition_field?(g(),c(_,{key:0},[e(q,{modelValue:d.value.condition_operator,"onUpdate:modelValue":a[14]||=e=>d.value.condition_operator=e,options:Object.entries(i(ke)).map(([e,t])=>({value:e,label:t})),"aria-label":`Bedingung`},null,8,[`modelValue`,`options`]),[`filled`,`empty`].includes(d.value.condition_operator)?C(``,!0):(g(),c(_,{key:0},[v.value?(g(),b(q,{key:0,modelValue:d.value.condition_value,"onUpdate:modelValue":a[15]||=e=>d.value.condition_value=e,options:v.value,placeholder:`Wert wählen …`,"aria-label":`Wert`},null,8,[`modelValue`,`options`])):(g(),b(i(J),{key:1,modelValue:d.value.condition_value,"onUpdate:modelValue":a[16]||=e=>d.value.condition_value=e,placeholder:`Wert`,"aria-label":`Wert`},null,8,[`modelValue`]))],64))],64)):C(``,!0)],64)):(g(),c(`p`,Pt,`Bedingungen beziehen sich auf Felder weiter oben im Formular.`))])],8,Mt),p.value?C(``,!0):(g(),c(`label`,Ft,[a[32]||=s(`span`,{class:`text-[13px] font-medium`},`Technischer Schlüssel`,-1),e(i(J),{"model-value":d.value.key,disabled:``,class:`font-mono text-xs`},null,8,[`model-value`]),a[33]||=s(`span`,{class:`text-xs text-muted-foreground`},`Für Export und Bedingungen. Wird aus der Bezeichnung gebildet und bleibt danach gleich.`,-1)]))]))}},Lt={class:`flex h-dvh flex-col bg-background`},Rt={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},zt={class:`min-w-0 flex-1`},Bt={class:`truncate text-sm font-semibold`},Vt={class:`flex items-center gap-1 truncate text-xs text-muted-foreground`,"aria-live":`polite`},Ht={class:`flex rounded-md border p-0.5 text-sm`,role:`group`,"aria-label":`Ansicht`},Ut=[`href`],Wt=[`href`],Gt={class:`flex min-h-0 flex-1`},Kt={class:`mx-auto max-w-3xl px-4 py-8`},qt={key:0,class:`mb-4 rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-[13px] text-amber-900 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`},Jt={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},Yt={key:0,class:`rounded-md border border-dashed p-6 text-center text-sm text-muted-foreground`},Xt={class:`grid grid-cols-2 gap-2`},Zt=[`onClick`],Qt={class:`truncate`},$t={class:`text-3xl font-semibold tracking-tight`},en={key:0,class:`mt-3 leading-relaxed whitespace-pre-line text-muted-foreground`},tn={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},nn={key:0,class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},rn={class:`min-h-0 flex-1 overflow-y-auto p-4`},an={class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},on=[`onClick`],sn={class:`truncate`},cn={__name:`Builder`,props:{form:{type:Object,required:!0},types:{type:Object,required:!0},prefillOptions:{type:Array,required:!0},settingsUrl:{type:String,required:!0},resultsUrl:{type:String,default:null}},setup(r){let d=r,A=p({title:d.form.title,description:d.form.description??``,fields:d.form.fields.map(e=>({_id:Q(),type:e.type,data:{...e.data}}))}),j=x(null),M=x(null),N=x(`edit`),P=x(!1),F=x(JSON.stringify(A)),L=f(()=>JSON.stringify(A)!==F.value),R=f(()=>A.fields.find(e=>e._id===j.value)??null);n(()=>A.fields.map(e=>[e._new,e.data.label,e.data.text]),()=>Ee(A.fields),{deep:!0,immediate:!0});function z(e){j.value=e}function B(e,t=null){let n=De(e),r=A.fields.findIndex(e=>e._id===j.value),i=t??(r>=0?r+1:A.fields.length);A.fields.splice(i,0,n),z(n._id),requestAnimationFrame(()=>{let e=document.querySelector(`[data-field-id="${n._id}"]`);e?.scrollIntoView({behavior:`smooth`,block:`center`}),e?.querySelector(`input, textarea`)?.select()})}function se(e){let t=A.fields.find(t=>t._id===e),n=A.fields.filter(e=>e.data.condition_field&&e.data.condition_field===t?.data.key);(!n.length||window.confirm(`${n.length} Feld(er) hängen von diesem Feld ab. Die Bedingung wird dort entfernt. Trotzdem löschen?`))&&(n.forEach(e=>{delete e.data.condition_field,delete e.data.condition_operator,delete e.data.condition_value}),A.fields=A.fields.filter(t=>t._id!==e),j.value===e&&z(null))}function ce(e){let t=A.fields.findIndex(t=>t._id===e),n={_id:Q(),_new:!0,type:A.fields[t].type,data:structuredClone({...A.fields[t].data,key:void 0})};A.fields.splice(t+1,0,n),z(n._id)}m(`forms:builder`,{get fields(){return A.fields},types:d.types,prefillOptions:d.prefillOptions,anonymous:d.form.anonymous,selectedId:j,errorIndex:M,select:z,remove:se,duplicate:ce});async function V(){if(!P.value){P.value=!0,M.value=null;try{let e={title:A.title,description:A.description,fields:A.fields.map(({type:e,data:t})=>({type:e,data:t}))};(await oe.put(`/redaktion/formulare/${d.form.id}`,e)).fields.forEach((e,t)=>{A.fields[t]&&(A.fields[t].data.key=e.data.key,delete A.fields[t]._new)}),F.value=JSON.stringify(A),I.success(`Formular gespeichert`)}catch(e){let[t,n]=Object.entries(e.fieldErrors??{})[0]??[],r=t?.match(/^fields\.(\d+)/);r&&(M.value=Number(r[1]),z(A.fields[M.value]?._id),document.querySelector(`[data-field-id="${j.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`})),I.error(n??e.message)}finally{P.value=!1}}}function H(e){(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),V()):e.key===`Escape`&&z(null)}function W(e){L.value&&(e.preventDefault(),e.returnValue=``)}let G;u(()=>{window.addEventListener(`keydown`,H),window.addEventListener(`beforeunload`,W),G=E.on(`before`,e=>{if(L.value&&e.detail.visit.method===`get`&&!window.confirm(`Es gibt ungespeicherte Änderungen. Seite trotzdem verlassen?`))return!1})}),h(()=>{window.removeEventListener(`keydown`,H),window.removeEventListener(`beforeunload`,W),G?.()});let q=f(()=>({id:-1,title:A.title,description:A.description,url:`#`,fields:Oe(A.fields),prefill:{},submit_label:`Absenden`,confirmation:``,open:!0})),J=f(()=>{let e={};for(let[t,n]of Object.entries(Y))(e[n.group]??=[]).push({type:t,label:d.types[t],icon:n.icon});return Object.entries(e)});return(n,u)=>(g(),c(_,null,[e(i(O),{title:`Formular: ${A.title}`},null,8,[`title`]),s(`div`,Lt,[s(`header`,Rt,[e(i(D),{href:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zurück zur Redaktion`},{default:v(()=>[e(i(ee),{class:`size-5`})]),_:1}),s(`div`,zt,[s(`p`,Bt,y(A.title||`Ohne Titel`),1),s(`p`,Vt,[P.value?(g(),c(_,{key:0},[e(i(k),{class:`size-3 animate-spin`}),u[11]||=t(` Speichert …`,-1)],64)):L.value?(g(),c(_,{key:1},[t(`Ungespeicherte Änderungen`)],64)):(g(),c(_,{key:2},[e(i(te),{class:`size-3`}),t(` Gespeichert · `+y(r.form.submissions)+` Einsendungen`,1)],64))])]),s(`div`,Ht,[s(`button`,{type:`button`,class:o([`flex items-center gap-1.5 rounded px-2.5 py-1`,N.value===`edit`?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),onClick:u[0]||=e=>N.value=`edit`},[e(i(fe),{class:`size-4`}),u[12]||=t(),u[13]||=s(`span`,{class:`hidden sm:inline`},`Bearbeiten`,-1)],2),s(`button`,{type:`button`,class:o([`flex items-center gap-1.5 rounded px-2.5 py-1`,N.value===`preview`?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),onClick:u[1]||=e=>{N.value=`preview`,z(null)}},[e(i(de),{class:`size-4`}),u[14]||=t(),u[15]||=s(`span`,{class:`hidden sm:inline`},`Vorschau`,-1)],2)]),e(i(K),{variant:`ghost`,size:`icon`,"as-child":``,title:`Einstellungen, Benachrichtigung und Zugriff`},{default:v(()=>[s(`a`,{href:r.settingsUrl},[e(i(le))],8,Ut)]),_:1}),r.resultsUrl?(g(),b(i(K),{key:0,variant:`ghost`,size:`icon`,"as-child":``,title:`Ergebnisse`},{default:v(()=>[s(`a`,{href:r.resultsUrl},[e(i(me))],8,Wt)]),_:1})):C(``,!0),e(i(K),{disabled:P.value||!L.value,onClick:V},{default:v(()=>[e(i(pe)),u[16]||=t(),u[17]||=s(`span`,{class:`hidden sm:inline`},`Speichern`,-1)]),_:1},8,[`disabled`])]),s(`div`,Gt,[s(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:u[10]||=e=>z(null)},[s(`div`,Kt,[r.form.submissions&&N.value===`edit`?(g(),c(`p`,qt,` Es gibt bereits `+y(r.form.submissions)+` Einsendungen. Umbenennen ist unproblematisch – gelöschte Felder fehlen nur in neuen Einsendungen. `,1)):C(``,!0),N.value===`edit`?(g(),c(_,{key:1},[a(s(`input`,{"onUpdate:modelValue":u[2]||=e=>A.title=e,class:`w-full rounded-sm bg-transparent text-3xl font-semibold tracking-tight outline-none focus:bg-brand-soft/40`,placeholder:`Titel des Formulars`,"aria-label":`Titel`,maxlength:`200`,onClick:u[3]||=w(()=>{},[`stop`])},null,512),[[T,A.title]]),a(s(`textarea`,{"onUpdate:modelValue":u[4]||=e=>A.description=e,class:`field-sizing-content mt-3 w-full resize-none rounded-sm bg-transparent leading-relaxed text-muted-foreground outline-none placeholder:text-muted-foreground/50 focus:bg-brand-soft/40`,placeholder:`Einleitung (optional) – z. B. wofür das Formular gedacht ist und wer es bearbeitet`,"aria-label":`Einleitung`,rows:`1`,maxlength:`2000`,onClick:u[5]||=w(()=>{},[`stop`])},null,512),[[T,A.description]]),s(`div`,Jt,[e(i(ue),{modelValue:A.fields,"onUpdate:modelValue":u[6]||=e=>A.fields=e,group:{name:`form-fields`},handle:`.fb-handle`,animation:150,"ghost-class":`pb-ghost`,class:`grid min-h-24 gap-x-5 gap-y-3 @xl:grid-cols-2`,onAdd:u[7]||=e=>z(A.fields[e.newIndex]?._id)},{default:v(()=>[(g(!0),c(_,null,l(A.fields,(e,t)=>(g(),b(tt,{key:e._id,field:e,index:t},null,8,[`field`,`index`]))),128))]),_:1},8,[`modelValue`]),A.fields.length?C(``,!0):(g(),c(`p`,Yt,` Noch keine Felder. Felder aus der rechten Spalte hierher ziehen oder anklicken. `)),e(i(re),null,{default:v(()=>[e(i(ie),{class:`mt-4 flex h-9 w-full items-center justify-center gap-1.5 rounded-md border border-dashed text-sm font-medium text-muted-foreground hover:border-brand-300 hover:bg-brand-soft hover:text-brand-soft-foreground`,onClick:u[8]||=w(()=>{},[`stop`])},{default:v(()=>[e(i(U),{class:`size-4`}),u[18]||=t(` Feld hinzufügen `,-1)]),_:1}),e(i(ae),{class:`w-[22rem] p-3`,onClick:u[9]||=w(()=>{},[`stop`])},{default:v(()=>[s(`div`,Xt,[(g(!0),c(_,null,l(r.types,(e,n)=>(g(),c(`button`,{key:n,type:`button`,class:`flex items-center gap-2 rounded-md border px-2.5 py-2 text-left text-[13px] font-medium hover:border-brand-300 hover:bg-brand-soft/60`,onClick:e=>B(n,A.fields.length)},[(g(),b(S(i(Y)[n].icon),{class:`size-4 shrink-0 text-brand-text`})),u[19]||=t(),s(`span`,Qt,y(e),1)],8,Zt))),128))])]),_:1})]),_:1}),u[20]||=s(`div`,{class:`mt-5 flex items-center gap-4 border-t pt-5`},[s(`span`,{class:`inline-flex h-9 items-center rounded-md bg-brand px-4 text-sm font-medium text-brand-foreground opacity-80`},`Absenden`),s(`span`,{class:`text-xs text-muted-foreground`},`Beschriftung und Bestätigungstext unter „Einstellungen“`)],-1)])],64)):(g(),c(_,{key:2},[s(`h1`,$t,y(A.title),1),A.description?(g(),c(`p`,en,y(A.description),1)):C(``,!0),s(`div`,tn,[(g(),b(ge,{key:JSON.stringify(q.value.fields),form:q.value,preview:``},null,8,[`form`]))]),u[21]||=s(`p`,{class:`mt-3 text-center text-xs text-muted-foreground`},`Vorschau: Bedingungen und Pflichtfelder funktionieren wie im Portal, gesendet wird nichts.`,-1)],64))])]),N.value===`edit`?(g(),c(`aside`,nn,[s(`div`,rn,[R.value?(g(),b(It,{key:R.value._id,field:R.value},null,8,[`field`])):(g(),c(_,{key:1},[u[22]||=s(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt das Feld unter dem ausgewählten ein. Felder lassen sich auch an jede Stelle ziehen.`,-1),(g(!0),c(_,null,l(J.value,([t,n])=>(g(),c(`section`,{key:t,class:`mb-4`},[s(`h3`,an,y(t),1),e(i(ue),{"model-value":n,group:{name:`form-fields`,pull:`clone`,put:!1},clone:e=>i(De)(e.type),sort:!1,class:`grid grid-cols-2 gap-2`},{default:v(()=>[(g(!0),c(_,null,l(n,e=>(g(),c(`button`,{key:e.type,type:`button`,class:`flex cursor-grab items-center gap-2 rounded-md border bg-card px-2.5 py-2 text-left text-[13px] font-medium hover:border-brand-300 hover:bg-brand-soft/60 active:cursor-grabbing`,onClick:t=>B(e.type)},[(g(),b(S(e.icon),{class:`size-4 shrink-0 text-brand-text`})),s(`span`,sn,y(e.label),1)],8,on))),128))]),_:2},1032,[`model-value`,`clone`])]))),128))],64))])])):C(``,!0)])]),e(i(ne),{position:`bottom-left`})],64))}};export{cn as default}; \ No newline at end of file diff --git a/public/build/assets/Builder-DQTVazsj.js b/public/build/assets/Builder-DQTVazsj.js deleted file mode 100644 index 28cce4b6..00000000 --- a/public/build/assets/Builder-DQTVazsj.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,Ht as n,J as r,On as i,Yt as a,Zn as o,_ as s,b as c,bt as l,ct as u,er as d,g as f,gn as p,gt as m,it as h,mt as g,o as _,qt as v,tr as y,v as b,vn as x,wt as S,y as C}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w,x as T}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as E,n as D,t as O}from"./app-CIvn5Z1l.js";import{A as k,j as A}from"./dist-CleIz2GP.js";import{n as j,t as M}from"./arrow-up-B8ttChMk.js";import{t as ee}from"./arrow-left-nZZEveo4.js";import{C as N,S as te,_ as P,a as ne,b as F,i as re,n as ie,o as I,r as ae,t as oe,x as L,y as R}from"./http-9R3L4KBg.js";import{a as z,i as B,n as se,o as ce,r as le,t as ue}from"./vue-draggable-plus-qBP-KoW2.js";import{t as de}from"./eye-DcTo_il4.js";import{t as V}from"./lock-4X8Kfof0.js";import{n as H,t as fe}from"./FormRenderer-nT5JUcxg.js";import{t as pe}from"./pencil-line-Cp-EHBoW.js";import{t as U}from"./plus-cKZvz4wH.js";import{t as me}from"./save-COy1XW3C.js";import{t as he}from"./table-properties-B82lvC7D.js";import{t as W}from"./trash-3XeUxfQJ.js";import{t as G}from"./Switch-BaFVWLMv.js";import{t as K}from"./button-SRYY3-ko.js";import{t as q}from"./NativeSelect-BBbvK4oZ.js";import{t as J}from"./Input-CgjHXzkf.js";import{t as ge}from"./Textarea-DWpyL-nk.js";var _e=A({name:`asterisk`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m18.065 8.496-12.125 7`,key:`1h26g9`}],[`path`,{d:`m5.94 8.504 12.125 7`,key:`k77sdm`}]]}),ve=A({name:`at-sign`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]}),ye=A({name:`calendar`,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`}]]}),be=A({name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]}),xe=A({name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]}),Se=A({name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]}),Ce=A({name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]}),we=A({name:`square-check-big`,size:24,node:[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-square`]}),Y={text:{icon:A({name:`text-cursor-input`,size:24,node:[[`path`,{d:`M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6`,key:`1528k5`}],[`path`,{d:`M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7`,key:`13ksps`}],[`path`,{d:`M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1`,key:`1n9rhb`}],[`path`,{d:`M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1`,key:`1mj8rg`}],[`path`,{d:`M9 6v12`,key:`velyjx`}]]}),group:`Eingabe`,defaults:{label:`Textzeile`,width:`full`}},textarea:{icon:se,group:`Eingabe`,defaults:{label:`Mehrzeiliger Text`,rows:4,width:`full`}},email:{icon:ve,group:`Eingabe`,defaults:{label:`E-Mail-Adresse`,width:`half`}},phone:{icon:R,group:`Eingabe`,defaults:{label:`Telefonnummer`,width:`half`}},number:{icon:Ce,group:`Eingabe`,defaults:{label:`Zahl`,width:`half`}},date:{icon:ye,group:`Eingabe`,defaults:{label:`Datum`,width:`half`}},select:{icon:be,group:`Auswahl`,defaults:{label:`Auswahlliste`,options:[`Option 1`,`Option 2`],width:`full`}},radio:{icon:xe,group:`Auswahl`,defaults:{label:`Einfachauswahl`,options:[`Ja`,`Nein`],width:`full`}},checkboxes:{icon:F,group:`Auswahl`,defaults:{label:`Mehrfachauswahl`,options:[`Option 1`,`Option 2`,`Option 3`],width:`full`}},checkbox:{icon:we,group:`Auswahl`,defaults:{label:`Ich stimme zu.`,width:`full`}},file:{icon:H,group:`Sonstiges`,defaults:{label:`Datei`,accept:`any`,max_size:10,width:`full`}},heading:{icon:B,group:`Gestaltung`,defaults:{text:`Zwischenüberschrift`}},paragraph:{icon:L,group:`Gestaltung`,defaults:{text:`Hinweistext`}}},X=[`heading`,`paragraph`],Z=[`select`,`radio`,`checkboxes`];function Te(e){return String(e??``).toLowerCase().replace(/ä/g,`ae`).replace(/ö/g,`oe`).replace(/ü/g,`ue`).replace(/ß/g,`ss`).normalize(`NFKD`).replace(/[̀-ͯ]/g,``).replace(/@/g,`_at_`).replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``).slice(0,60)}function Q(){return Math.random().toString(36).slice(2,10)}function Ee(e){let t=new Set(e.filter(e=>!e._new&&e.data.key).map(e=>e.data.key));for(let n of e){if(!n._new)continue;let e=Te(n.data.label||n.data.text||n.type)||n.type,r=e;for(let n=2;t.has(r);n++)r=`${e}_${n}`;n.data.key=r,t.add(r)}}function De(e){return{_id:Q(),_new:!0,type:e,data:structuredClone(Y[e].defaults)}}function Oe(e){let t={documents:`.pdf,.doc,.docx,.xls,.xlsx,.odt,.ods,.ppt,.pptx,.txt,.csv,.rtf`,images:`.jpg,.jpeg,.png,.webp,.gif,.heic`,any:``};return e.map(({type:e,data:n})=>({type:e,key:n.key,label:n.label,text:n.text,help:n.help,placeholder:n.placeholder,required:!!n.required,options:(n.options??[]).filter(e=>e!==``),width:n.width??`full`,min:n.min,max:n.max,rows:n.rows,multiple:!!n.multiple,accept:t[n.accept??`any`]||void 0,max_size:n.max_size,locked:!!(n.locked&&n.prefill&&[`text`,`email`,`phone`].includes(e)),condition:n.condition_field?{field:n.condition_field,operator:n.condition_operator??`equals`,value:String(n.condition_value??``)}:null}))}var ke={equals:`ist gleich`,not_equals:`ist nicht`,contains:`enthält`,filled:`ist ausgefüllt`,empty:`ist leer`},Ae=[`data-field-id`],je={class:`fb-handle flex cursor-grab items-center gap-1 px-1 py-0.5 font-medium text-muted-foreground active:cursor-grabbing`,title:`Ziehen zum Verschieben`},Me=[`aria-pressed`],Ne=[`title`],Pe={key:0,class:`mb-1.5 mr-1 inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground`},Fe={key:1,class:`mb-1.5 inline-flex items-center gap-1 rounded bg-amber-100 px-1.5 py-0.5 text-[11px] text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},Ie={key:4,class:`flex items-start gap-2.5`},Le={key:0,class:`text-destructive`},Re={key:5,class:`grid gap-1.5`},ze={class:`flex items-center gap-0.5 text-[13px] font-medium`},Be={key:0,class:`text-destructive`},Ve={key:1,class:`grid gap-1.5`},He={key:0,class:`grid gap-1 rounded-md border border-dashed p-2`},Ue={class:`w-5 text-right text-xs text-muted-foreground`},We=[`onUpdate:modelValue`,`data-option`,`onKeydown`],Ge=[`onClick`],Ke={key:2,class:`grid gap-1.5`},qe=[`onUpdate:modelValue`,`data-option`,`onKeydown`],Je=[`onClick`],Ye={key:3,class:`flex h-10 items-center justify-center gap-2 rounded-md border border-dashed text-sm text-muted-foreground`},Xe={key:5,class:`flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm text-muted-foreground`},Ze={key:6,class:`rounded-md border border-input bg-card shadow-xs`},Qe=[`placeholder`,`disabled`],$=`w-full min-w-0 rounded-sm bg-transparent outline-none placeholder:text-muted-foreground/60 focus:bg-brand-soft/40`,$e=`field-sizing-content min-w-6 max-w-full rounded-sm bg-transparent outline-none placeholder:text-muted-foreground/60 focus:bg-brand-soft/40`,et=`flex h-9 w-full items-center rounded-md border border-input bg-card px-3 text-sm text-muted-foreground shadow-xs`,tt={__name:`BuilderField`,props:{field:{type:Object,required:!0},index:{type:Number,required:!0}},setup(n){let u=n,p=r(`forms:builder`),m=f(()=>p.selectedId.value===u.field._id),h=f(()=>p.errorIndex.value===u.index),v=f(()=>X.includes(u.field.type)),x=f(()=>u.field.data),E=f(()=>{if(!x.value.condition_field)return null;let e=p.fields.find(e=>e.data.key===x.value.condition_field)?.data.label??x.value.condition_field,t=ke[x.value.condition_operator??`equals`];return[`filled`,`empty`].includes(x.value.condition_operator)?`${e} ${t}`:`${e} ${t} „${x.value.condition_value??``}“`});function D(){x.value.options=[...x.value.options??[],`Option ${(x.value.options?.length??0)+1}`],requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${x.value.options.length-1}"]`)?.select())}function O(e){x.value.options=x.value.options.filter((t,n)=>n!==e)}function k(e,t){e.key===`Enter`?(e.preventDefault(),x.value.options.splice(t+1,0,``),requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${t+1}"]`)?.focus())):e.key===`Backspace`&&x.value.options[t]===``&&x.value.options.length>1&&(e.preventDefault(),O(t),requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${Math.max(0,t-1)}"]`)?.focus()))}return(r,u)=>(g(),c(`div`,{class:o([`group relative rounded-md p-3 outline-offset-2 transition-[outline-color]`,[n.field.data.width===`half`&&!v.value?``:`@xl:col-span-2`,m.value?`bg-brand-soft/30 outline-2 outline-brand-500`:h.value?`outline-2 outline-destructive`:`outline-1 outline-transparent hover:outline-brand-300`]]),"data-field-id":n.field._id,onClick:u[13]||=w(e=>i(p).select(n.field._id),[`stop`])},[s(`div`,{class:o([`absolute -top-3.5 right-2 z-10 items-center gap-0.5 rounded-md border bg-card px-1 py-0.5 text-xs shadow-sm`,m.value?`flex`:`hidden group-hover:flex`]),onClick:u[4]||=w(()=>{},[`stop`])},[s(`span`,je,[e(i(z),{class:`size-3.5`}),(g(),b(S(i(Y)[n.field.type].icon),{class:`size-3.5`})),t(` `+y(i(p).types[n.field.type]),1)]),v.value?C(``,!0):(g(),c(_,{key:0},[u[15]||=s(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),s(`button`,{type:`button`,class:o([`flex h-6 items-center gap-1 rounded px-1.5`,x.value.required?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),"aria-pressed":!!x.value.required,title:`Pflichtfeld`,onClick:u[0]||=e=>x.value.required=!x.value.required},[e(i(_e),{class:`size-3.5`}),u[14]||=t(` Pflicht `,-1)],10,Me),s(`button`,{type:`button`,class:`h-6 rounded px-1.5 text-muted-foreground hover:bg-accent`,title:x.value.width===`half`?`Volle Breite`:`Halbe Breite`,onClick:u[1]||=e=>x.value.width=x.value.width===`half`?`full`:`half`},y(x.value.width===`half`?`½`:`1/1`),9,Ne)],64)),u[16]||=s(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Duplizieren`,onClick:u[2]||=e=>i(p).duplicate(n.field._id)},[e(i(ce),{class:`size-3.5`})]),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:u[3]||=e=>i(p).remove(n.field._id)},[e(i(W),{class:`size-3.5`})])],2),x.value.prefill&&!x.value.locked&&!v.value?(g(),c(`p`,Pe,` Vorbelegt: `+y(i(p).prefillOptions.find(e=>e.value===x.value.prefill)?.label??x.value.prefill),1)):C(``,!0),E.value?(g(),c(`p`,Fe,[e(i(Se),{class:`size-3`}),t(` Nur wenn `+y(E.value),1)])):C(``,!0),n.field.type===`heading`?a((g(),c(`input`,{key:2,"onUpdate:modelValue":u[5]||=e=>x.value.text=e,class:o([$,`text-lg font-semibold`]),placeholder:`Zwischenüberschrift`,"aria-label":`Zwischenüberschrift`},null,2)),[[T,x.value.text]]):n.field.type===`paragraph`?a((g(),c(`textarea`,{key:3,"onUpdate:modelValue":u[6]||=e=>x.value.text=e,class:o([$,`field-sizing-content resize-none text-sm leading-relaxed text-muted-foreground`]),rows:`1`,placeholder:`Hinweistext`,"aria-label":`Hinweistext`},null,2)),[[T,x.value.text]]):n.field.type===`checkbox`?(g(),c(`div`,Ie,[u[17]||=s(`span`,{class:`mt-0.5 size-4 shrink-0 rounded-[4px] border border-input bg-card`},null,-1),a(s(`input`,{"onUpdate:modelValue":u[7]||=e=>x.value.label=e,class:o([$e,`text-sm`]),placeholder:`Text neben dem Kästchen`,"aria-label":`Bezeichnung`},null,2),[[T,x.value.label]]),x.value.required?(g(),c(`span`,Le,`*`)):C(``,!0)])):(g(),c(`div`,Re,[s(`div`,ze,[a(s(`input`,{"onUpdate:modelValue":u[8]||=e=>x.value.label=e,class:o($e),placeholder:`Bezeichnung`,"aria-label":`Bezeichnung`},null,512),[[T,x.value.label]]),x.value.required?(g(),c(`span`,Be,`*`)):C(``,!0)]),n.field.type===`textarea`?(g(),c(`div`,{key:0,class:`rounded-md border border-input bg-card shadow-xs`,style:d({height:`${(x.value.rows??4)*1.5+1}rem`})},[a(s(`input`,{"onUpdate:modelValue":u[9]||=e=>x.value.placeholder=e,class:`w-full bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground/50`,placeholder:`Platzhalter (optional)`,"aria-label":`Platzhalter`},null,512),[[T,x.value.placeholder]])],4)):n.field.type===`select`?(g(),c(`div`,Ve,[s(`div`,{class:o([et,`justify-between`])},[u[18]||=t(`Bitte wählen … `,-1),e(i(N),{class:`size-4`})],2),m.value?(g(),c(`div`,He,[u[20]||=s(`p`,{class:`text-xs text-muted-foreground`},`Auswahlmöglichkeiten`,-1),(g(!0),c(_,null,l(x.value.options,(t,r)=>(g(),c(`div`,{key:r,class:`flex items-center gap-2`},[s(`span`,Ue,y(r+1)+`.`,1),a(s(`input`,{"onUpdate:modelValue":e=>x.value.options[r]=e,"data-option":`${n.field._id}-${r}`,class:o([$,`text-sm`]),placeholder:`Auswahlmöglichkeit`,onKeydown:e=>k(e,r)},null,42,We),[[T,x.value.options[r]]]),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-muted-foreground hover:bg-accent`,title:`Entfernen`,onClick:w(e=>O(r),[`stop`])},[e(i(P),{class:`size-3.5`})],8,Ge)]))),128)),s(`button`,{type:`button`,class:`inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:w(D,[`stop`])},[e(i(U),{class:`size-3.5`}),u[19]||=t(` Auswahlmöglichkeit`,-1)])])):C(``,!0)])):i(Z).includes(n.field.type)?(g(),c(`div`,Ke,[(g(!0),c(_,null,l(x.value.options,(t,r)=>(g(),c(`div`,{key:r,class:`flex items-center gap-2.5`},[s(`span`,{class:o([`size-4 shrink-0 border border-input bg-card`,n.field.type===`radio`?`rounded-full`:`rounded-[4px]`])},null,2),a(s(`input`,{"onUpdate:modelValue":e=>x.value.options[r]=e,"data-option":`${n.field._id}-${r}`,class:o([$,`text-sm`]),placeholder:`Auswahlmöglichkeit`,onKeydown:e=>k(e,r),onFocus:u[10]||=e=>i(p).select(n.field._id)},null,42,qe),[[T,x.value.options[r]]]),m.value?(g(),c(`button`,{key:0,type:`button`,class:`grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent`,title:`Entfernen`,onClick:w(e=>O(r),[`stop`])},[e(i(P),{class:`size-3.5`})],8,Je)):C(``,!0)]))),128)),m.value?(g(),c(`button`,{key:0,type:`button`,class:`ml-6.5 inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:w(D,[`stop`])},[e(i(U),{class:`size-3.5`}),u[21]||=t(` Auswahlmöglichkeit`,-1)])):C(``,!0)])):n.field.type===`file`?(g(),c(`div`,Ye,[e(i(H),{class:`size-4`}),t(` `+y(x.value.multiple?`Dateien auswählen`:`Datei auswählen`),1)])):n.field.type===`date`?(g(),c(`div`,{key:4,class:o([et,`justify-between`])},[u[22]||=t(`TT.MM.JJJJ `,-1),e(i(ye),{class:`size-4`})],2)):x.value.locked&&x.value.prefill?(g(),c(`div`,Xe,[e(i(V),{class:`size-3.5`}),t(` Aus dem Profil: `+y(i(p).prefillOptions.find(e=>e.value===x.value.prefill)?.label??x.value.prefill)+` – nicht änderbar `,1)])):(g(),c(`div`,Ze,[a(s(`input`,{"onUpdate:modelValue":u[11]||=e=>x.value.placeholder=e,class:`h-9 w-full bg-transparent px-3 text-sm outline-none placeholder:text-muted-foreground/50`,placeholder:n.field.type===`text`?`Platzhalter (optional)`:``,disabled:n.field.type!==`text`,"aria-label":`Platzhalter`},null,8,Qe),[[T,x.value.placeholder]])])),m.value||x.value.help?a((g(),c(`input`,{key:7,"onUpdate:modelValue":u[12]||=e=>x.value.help=e,class:o([$,`text-[13px] text-muted-foreground`]),placeholder:`Hinweis unter dem Feld hinzufügen …`,"aria-label":`Hinweis`},null,2)),[[T,x.value.help]]):C(``,!0)]))],10,Ae))}},nt={class:`grid gap-5`},rt={class:`flex items-center gap-3`},it={class:`grid size-9 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},at={class:`min-w-0`},ot={class:`font-semibold`},st={key:0,class:`grid gap-1.5`},ct={class:`grid gap-1.5`},lt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},ut={class:`grid gap-1.5`},dt={class:`grid grid-cols-2 rounded-md border p-0.5 text-[13px]`,role:`group`},ft=[`aria-pressed`,`onClick`],pt={class:`grid gap-1.5`},mt={key:0,class:`grid gap-1.5`},ht={key:1,class:`grid gap-1.5 rounded-md border p-3`},gt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},_t={class:`text-xs text-muted-foreground`},vt={key:0,class:`text-xs text-amber-700 dark:text-amber-300`},yt={key:2,class:`grid grid-cols-2 gap-3`},bt={key:0,class:`grid gap-1.5`},xt={class:`text-[13px] font-medium`},St={class:`grid gap-1.5`},Ct={class:`text-[13px] font-medium`},wt={key:1,class:`grid gap-1.5`},Tt={class:`grid gap-1.5`},Et={class:`grid gap-1.5`},Dt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Ot={key:4,class:`grid gap-1.5`},kt=[`onClick`],At=[`onClick`],jt=[`onClick`],Mt=[`open`],Nt={class:`grid gap-3 border-t px-3 py-3`},Pt={key:0,class:`text-xs text-muted-foreground`},Ft={key:2,class:`grid gap-1.5`},It={__name:`FieldSettings`,props:{field:{type:Object,required:!0}},setup(n){let a=n,u=r(`forms:builder`),d=f(()=>a.field.data),p=f(()=>X.includes(a.field.type)),m=f(()=>{let e=u.fields.findIndex(e=>e._id===a.field._id);return u.fields.slice(0,e).filter(e=>!X.includes(e.type)).map(e=>({value:e.data.key,label:e.data.label||e.data.key}))}),h=f(()=>u.fields.find(e=>e.data.key===d.value.condition_field)),v=f(()=>{let e=h.value;return e?e.type===`checkbox`?[{value:`1`,label:`angehakt`}]:Z.includes(e.type)?(e.data.options??[]).filter(Boolean).map(e=>({value:e,label:e})):null:null});function x(e){if(!e){delete d.value.condition_field,delete d.value.condition_operator,delete d.value.condition_value;return}d.value.condition_field=e,d.value.condition_operator??=`equals`}function w(e,t){let n=[...d.value.options],r=e+t;r<0||r>=n.length||([n[e],n[r]]=[n[r],n[e]],d.value.options=n)}let T=e=>({get:()=>d.value[e]??``,set:t=>t===``||t===null?delete d.value[e]:d.value[e]=Number(t)}),E=f(T(`min`)),D=f(T(`max`)),O=f(T(`rows`)),k=f(T(`max_size`));return(r,a)=>(g(),c(`div`,nt,[s(`header`,rt,[s(`span`,it,[(g(),b(S(i(Y)[n.field.type].icon),{class:`size-4.5`}))]),s(`div`,at,[s(`h2`,ot,y(i(u).types[n.field.type]),1),a[17]||=s(`p`,{class:`text-xs text-muted-foreground`},`Bezeichnung und Auswahlmöglichkeiten bearbeiten Sie direkt im Formular.`,-1)])]),p.value?(g(),c(`label`,st,[a[18]||=s(`span`,{class:`text-[13px] font-medium`},`Text`,-1),n.field.type===`paragraph`?(g(),b(i(ge),{key:0,modelValue:d.value.text,"onUpdate:modelValue":a[0]||=e=>d.value.text=e,rows:`4`,maxlength:`3000`},null,8,[`modelValue`])):(g(),b(i(J),{key:1,modelValue:d.value.text,"onUpdate:modelValue":a[1]||=e=>d.value.text=e,maxlength:`200`},null,8,[`modelValue`]))])):(g(),c(_,{key:1},[s(`label`,ct,[a[19]||=s(`span`,{class:`text-[13px] font-medium`},`Bezeichnung`,-1),e(i(J),{modelValue:d.value.label,"onUpdate:modelValue":a[2]||=e=>d.value.label=e,maxlength:`200`},null,8,[`modelValue`])]),s(`label`,lt,[a[20]||=t(` Pflichtfeld `,-1),e(i(G),{"model-value":!!d.value.required,"onUpdate:modelValue":a[3]||=e=>d.value.required=e},null,8,[`model-value`])]),s(`div`,ut,[a[21]||=s(`span`,{class:`text-[13px] font-medium`},`Breite`,-1),s(`div`,dt,[(g(),c(_,null,l([{value:`full`,label:`Volle Breite`},{value:`half`,label:`Halbe Breite`}],e=>s(`button`,{key:e.value,type:`button`,class:o([`rounded py-1.5`,(d.value.width??`full`)===e.value?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),"aria-pressed":(d.value.width??`full`)===e.value,onClick:t=>d.value.width=e.value},y(e.label),11,ft)),64))])]),s(`label`,pt,[a[22]||=s(`span`,{class:`text-[13px] font-medium`},`Hinweis unter dem Feld`,-1),e(i(J),{modelValue:d.value.help,"onUpdate:modelValue":a[4]||=e=>d.value.help=e,maxlength:`300`},null,8,[`modelValue`])]),[`text`,`email`,`phone`].includes(n.field.type)?(g(),c(`label`,mt,[a[23]||=s(`span`,{class:`text-[13px] font-medium`},`Vorbelegen mit`,-1),e(q,{"model-value":d.value.prefill??null,options:i(u).prefillOptions,placeholder:`– nicht vorbelegen –`,"onUpdate:modelValue":a[5]||=e=>e?d.value.prefill=e:(delete d.value.prefill,delete d.value.locked)},null,8,[`model-value`,`options`])])):C(``,!0),[`text`,`email`,`phone`].includes(n.field.type)&&d.value.prefill?(g(),c(`div`,ht,[s(`label`,gt,[a[24]||=t(` Nicht änderbar `,-1),e(i(G),{"model-value":!!d.value.locked,"onUpdate:modelValue":a[6]||=e=>e?d.value.locked=!0:delete d.value.locked},null,8,[`model-value`])]),s(`span`,_t,y(d.value.locked?`Das Feld zeigt den Wert aus dem Profil und kann nicht geändert werden. Beim Absenden wird immer der Profilwert gespeichert.`:`Das Feld ist mit dem Profilwert vorausgefüllt, kann aber geändert werden.`),1),d.value.locked&&i(u).anonymous?(g(),c(`span`,vt,`Achtung: Das Formular ist anonym – diese Profilangabe wird trotzdem mit der Einsendung gespeichert.`)):C(``,!0)])):C(``,!0),[`text`,`textarea`,`number`,`checkboxes`].includes(n.field.type)?(g(),c(`div`,yt,[[`number`,`checkboxes`].includes(n.field.type)?(g(),c(`label`,bt,[s(`span`,xt,y(n.field.type===`checkboxes`?`Mindestens wählen`:`Mindestens`),1),e(i(J),{modelValue:E.value,"onUpdate:modelValue":a[7]||=e=>E.value=e,type:`number`},null,8,[`modelValue`])])):C(``,!0),s(`label`,St,[s(`span`,Ct,y({text:`Höchstlänge`,textarea:`Höchstlänge`,number:`Höchstens`,checkboxes:`Höchstens wählen`}[n.field.type]),1),e(i(J),{modelValue:D.value,"onUpdate:modelValue":a[8]||=e=>D.value=e,type:`number`,min:`1`},null,8,[`modelValue`])]),n.field.type===`textarea`?(g(),c(`label`,wt,[a[25]||=s(`span`,{class:`text-[13px] font-medium`},`Zeilen`,-1),e(i(J),{modelValue:O.value,"onUpdate:modelValue":a[9]||=e=>O.value=e,type:`number`,min:`2`,max:`20`},null,8,[`modelValue`])])):C(``,!0)])):C(``,!0),n.field.type===`file`?(g(),c(_,{key:3},[s(`label`,Tt,[a[26]||=s(`span`,{class:`text-[13px] font-medium`},`Erlaubte Dateien`,-1),e(q,{modelValue:d.value.accept,"onUpdate:modelValue":a[10]||=e=>d.value.accept=e,options:[{value:`documents`,label:`Dokumente (PDF, Office …)`},{value:`images`,label:`Bilder`},{value:`any`,label:`Dokumente und Bilder`}]},null,8,[`modelValue`])]),s(`label`,Et,[a[27]||=s(`span`,{class:`text-[13px] font-medium`},`Höchstgröße in MB`,-1),e(i(J),{modelValue:k.value,"onUpdate:modelValue":a[11]||=e=>k.value=e,type:`number`,min:`1`,max:`50`},null,8,[`modelValue`])]),s(`label`,Dt,[a[28]||=t(` Mehrere Dateien (bis 10) `,-1),e(i(G),{"model-value":!!d.value.multiple,"onUpdate:modelValue":a[12]||=e=>d.value.multiple=e},null,8,[`model-value`])])],64)):C(``,!0),i(Z).includes(n.field.type)?(g(),c(`div`,Ot,[a[30]||=s(`span`,{class:`text-[13px] font-medium`},`Auswahlmöglichkeiten`,-1),(g(!0),c(_,null,l(d.value.options,(t,n)=>(g(),c(`div`,{key:n,class:`flex items-center gap-1`},[e(i(J),{modelValue:d.value.options[n],"onUpdate:modelValue":e=>d.value.options[n]=e,class:`h-8`,maxlength:`200`},null,8,[`modelValue`,`onUpdate:modelValue`]),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>w(n,-1)},[e(i(M),{class:`size-3.5`})],8,kt),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:e=>w(n,1)},[e(i(j),{class:`size-3.5`})],8,At),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>d.value.options=d.value.options.filter((e,t)=>t!==n)},[e(i(P),{class:`size-3.5`})],8,jt)]))),128)),s(`button`,{type:`button`,class:`inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:a[13]||=e=>d.value.options=[...d.value.options??[],``]},[e(i(U),{class:`size-3.5`}),a[29]||=t(` Hinzufügen`,-1)])])):C(``,!0)],64)),s(`details`,{class:`rounded-md border`,open:!!d.value.condition_field},[a[31]||=s(`summary`,{class:`cursor-pointer px-3 py-2 text-[13px] font-medium`},`Nur anzeigen, wenn …`,-1),s(`div`,Nt,[m.value.length?(g(),c(_,{key:1},[e(q,{"model-value":d.value.condition_field??null,options:m.value,placeholder:`– immer anzeigen –`,"aria-label":`Feld`,"onUpdate:modelValue":x},null,8,[`model-value`,`options`]),d.value.condition_field?(g(),c(_,{key:0},[e(q,{modelValue:d.value.condition_operator,"onUpdate:modelValue":a[14]||=e=>d.value.condition_operator=e,options:Object.entries(i(ke)).map(([e,t])=>({value:e,label:t})),"aria-label":`Bedingung`},null,8,[`modelValue`,`options`]),[`filled`,`empty`].includes(d.value.condition_operator)?C(``,!0):(g(),c(_,{key:0},[v.value?(g(),b(q,{key:0,modelValue:d.value.condition_value,"onUpdate:modelValue":a[15]||=e=>d.value.condition_value=e,options:v.value,placeholder:`Wert wählen …`,"aria-label":`Wert`},null,8,[`modelValue`,`options`])):(g(),b(i(J),{key:1,modelValue:d.value.condition_value,"onUpdate:modelValue":a[16]||=e=>d.value.condition_value=e,placeholder:`Wert`,"aria-label":`Wert`},null,8,[`modelValue`]))],64))],64)):C(``,!0)],64)):(g(),c(`p`,Pt,`Bedingungen beziehen sich auf Felder weiter oben im Formular.`))])],8,Mt),p.value?C(``,!0):(g(),c(`label`,Ft,[a[32]||=s(`span`,{class:`text-[13px] font-medium`},`Technischer Schlüssel`,-1),e(i(J),{"model-value":d.value.key,disabled:``,class:`font-mono text-xs`},null,8,[`model-value`]),a[33]||=s(`span`,{class:`text-xs text-muted-foreground`},`Für Export und Bedingungen. Wird aus der Bezeichnung gebildet und bleibt danach gleich.`,-1)]))]))}},Lt={class:`flex h-dvh flex-col bg-background`},Rt={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},zt={class:`min-w-0 flex-1`},Bt={class:`truncate text-sm font-semibold`},Vt={class:`flex items-center gap-1 truncate text-xs text-muted-foreground`,"aria-live":`polite`},Ht={class:`flex rounded-md border p-0.5 text-sm`,role:`group`,"aria-label":`Ansicht`},Ut=[`href`],Wt=[`href`],Gt={class:`flex min-h-0 flex-1`},Kt={class:`mx-auto max-w-3xl px-4 py-8`},qt={key:0,class:`mb-4 rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-[13px] text-amber-900 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`},Jt={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},Yt={key:0,class:`rounded-md border border-dashed p-6 text-center text-sm text-muted-foreground`},Xt={class:`grid grid-cols-2 gap-2`},Zt=[`onClick`],Qt={class:`truncate`},$t={class:`text-3xl font-semibold tracking-tight`},en={key:0,class:`mt-3 leading-relaxed whitespace-pre-line text-muted-foreground`},tn={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},nn={key:0,class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},rn={class:`min-h-0 flex-1 overflow-y-auto p-4`},an={class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},on=[`onClick`],sn={class:`truncate`},cn={__name:`Builder`,props:{form:{type:Object,required:!0},types:{type:Object,required:!0},prefillOptions:{type:Array,required:!0},settingsUrl:{type:String,required:!0},resultsUrl:{type:String,default:null}},setup(r){let d=r,A=p({title:d.form.title,description:d.form.description??``,fields:d.form.fields.map(e=>({_id:Q(),type:e.type,data:{...e.data}}))}),j=x(null),M=x(null),N=x(`edit`),P=x(!1),F=x(JSON.stringify(A)),L=f(()=>JSON.stringify(A)!==F.value),R=f(()=>A.fields.find(e=>e._id===j.value)??null);n(()=>A.fields.map(e=>[e._new,e.data.label,e.data.text]),()=>Ee(A.fields),{deep:!0,immediate:!0});function z(e){j.value=e}function B(e,t=null){let n=De(e),r=A.fields.findIndex(e=>e._id===j.value),i=t??(r>=0?r+1:A.fields.length);A.fields.splice(i,0,n),z(n._id),requestAnimationFrame(()=>{let e=document.querySelector(`[data-field-id="${n._id}"]`);e?.scrollIntoView({behavior:`smooth`,block:`center`}),e?.querySelector(`input, textarea`)?.select()})}function se(e){let t=A.fields.find(t=>t._id===e),n=A.fields.filter(e=>e.data.condition_field&&e.data.condition_field===t?.data.key);(!n.length||window.confirm(`${n.length} Feld(er) hängen von diesem Feld ab. Die Bedingung wird dort entfernt. Trotzdem löschen?`))&&(n.forEach(e=>{delete e.data.condition_field,delete e.data.condition_operator,delete e.data.condition_value}),A.fields=A.fields.filter(t=>t._id!==e),j.value===e&&z(null))}function ce(e){let t=A.fields.findIndex(t=>t._id===e),n={_id:Q(),_new:!0,type:A.fields[t].type,data:structuredClone({...A.fields[t].data,key:void 0})};A.fields.splice(t+1,0,n),z(n._id)}m(`forms:builder`,{get fields(){return A.fields},types:d.types,prefillOptions:d.prefillOptions,anonymous:d.form.anonymous,selectedId:j,errorIndex:M,select:z,remove:se,duplicate:ce});async function V(){if(!P.value){P.value=!0,M.value=null;try{let e={title:A.title,description:A.description,fields:A.fields.map(({type:e,data:t})=>({type:e,data:t}))};(await oe.put(`/redaktion/formulare/${d.form.id}`,e)).fields.forEach((e,t)=>{A.fields[t]&&(A.fields[t].data.key=e.data.key,delete A.fields[t]._new)}),F.value=JSON.stringify(A),I.success(`Formular gespeichert`)}catch(e){let[t,n]=Object.entries(e.fieldErrors??{})[0]??[],r=t?.match(/^fields\.(\d+)/);r&&(M.value=Number(r[1]),z(A.fields[M.value]?._id),document.querySelector(`[data-field-id="${j.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`})),I.error(n??e.message)}finally{P.value=!1}}}function H(e){(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),V()):e.key===`Escape`&&z(null)}function W(e){L.value&&(e.preventDefault(),e.returnValue=``)}let G;u(()=>{window.addEventListener(`keydown`,H),window.addEventListener(`beforeunload`,W),G=E.on(`before`,e=>{if(L.value&&e.detail.visit.method===`get`&&!window.confirm(`Es gibt ungespeicherte Änderungen. Seite trotzdem verlassen?`))return!1})}),h(()=>{window.removeEventListener(`keydown`,H),window.removeEventListener(`beforeunload`,W),G?.()});let q=f(()=>({id:-1,title:A.title,description:A.description,url:`#`,fields:Oe(A.fields),prefill:{},submit_label:`Absenden`,confirmation:``,open:!0})),J=f(()=>{let e={};for(let[t,n]of Object.entries(Y))(e[n.group]??=[]).push({type:t,label:d.types[t],icon:n.icon});return Object.entries(e)});return(n,u)=>(g(),c(_,null,[e(i(O),{title:`Formular: ${A.title}`},null,8,[`title`]),s(`div`,Lt,[s(`header`,Rt,[e(i(D),{href:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zurück zur Redaktion`},{default:v(()=>[e(i(ee),{class:`size-5`})]),_:1}),s(`div`,zt,[s(`p`,Bt,y(A.title||`Ohne Titel`),1),s(`p`,Vt,[P.value?(g(),c(_,{key:0},[e(i(k),{class:`size-3 animate-spin`}),u[11]||=t(` Speichert …`,-1)],64)):L.value?(g(),c(_,{key:1},[t(`Ungespeicherte Änderungen`)],64)):(g(),c(_,{key:2},[e(i(te),{class:`size-3`}),t(` Gespeichert · `+y(r.form.submissions)+` Einsendungen`,1)],64))])]),s(`div`,Ht,[s(`button`,{type:`button`,class:o([`flex items-center gap-1.5 rounded px-2.5 py-1`,N.value===`edit`?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),onClick:u[0]||=e=>N.value=`edit`},[e(i(pe),{class:`size-4`}),u[12]||=t(),u[13]||=s(`span`,{class:`hidden sm:inline`},`Bearbeiten`,-1)],2),s(`button`,{type:`button`,class:o([`flex items-center gap-1.5 rounded px-2.5 py-1`,N.value===`preview`?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),onClick:u[1]||=e=>{N.value=`preview`,z(null)}},[e(i(de),{class:`size-4`}),u[14]||=t(),u[15]||=s(`span`,{class:`hidden sm:inline`},`Vorschau`,-1)],2)]),e(i(K),{variant:`ghost`,size:`icon`,"as-child":``,title:`Einstellungen, Benachrichtigung und Zugriff`},{default:v(()=>[s(`a`,{href:r.settingsUrl},[e(i(le))],8,Ut)]),_:1}),r.resultsUrl?(g(),b(i(K),{key:0,variant:`ghost`,size:`icon`,"as-child":``,title:`Ergebnisse`},{default:v(()=>[s(`a`,{href:r.resultsUrl},[e(i(he))],8,Wt)]),_:1})):C(``,!0),e(i(K),{disabled:P.value||!L.value,onClick:V},{default:v(()=>[e(i(me)),u[16]||=t(),u[17]||=s(`span`,{class:`hidden sm:inline`},`Speichern`,-1)]),_:1},8,[`disabled`])]),s(`div`,Gt,[s(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:u[10]||=e=>z(null)},[s(`div`,Kt,[r.form.submissions&&N.value===`edit`?(g(),c(`p`,qt,` Es gibt bereits `+y(r.form.submissions)+` Einsendungen. Umbenennen ist unproblematisch – gelöschte Felder fehlen nur in neuen Einsendungen. `,1)):C(``,!0),N.value===`edit`?(g(),c(_,{key:1},[a(s(`input`,{"onUpdate:modelValue":u[2]||=e=>A.title=e,class:`w-full rounded-sm bg-transparent text-3xl font-semibold tracking-tight outline-none focus:bg-brand-soft/40`,placeholder:`Titel des Formulars`,"aria-label":`Titel`,maxlength:`200`,onClick:u[3]||=w(()=>{},[`stop`])},null,512),[[T,A.title]]),a(s(`textarea`,{"onUpdate:modelValue":u[4]||=e=>A.description=e,class:`field-sizing-content mt-3 w-full resize-none rounded-sm bg-transparent leading-relaxed text-muted-foreground outline-none placeholder:text-muted-foreground/50 focus:bg-brand-soft/40`,placeholder:`Einleitung (optional) – z. B. wofür das Formular gedacht ist und wer es bearbeitet`,"aria-label":`Einleitung`,rows:`1`,maxlength:`2000`,onClick:u[5]||=w(()=>{},[`stop`])},null,512),[[T,A.description]]),s(`div`,Jt,[e(i(ue),{modelValue:A.fields,"onUpdate:modelValue":u[6]||=e=>A.fields=e,group:{name:`form-fields`},handle:`.fb-handle`,animation:150,"ghost-class":`pb-ghost`,class:`grid min-h-24 gap-x-5 gap-y-3 @xl:grid-cols-2`,onAdd:u[7]||=e=>z(A.fields[e.newIndex]?._id)},{default:v(()=>[(g(!0),c(_,null,l(A.fields,(e,t)=>(g(),b(tt,{key:e._id,field:e,index:t},null,8,[`field`,`index`]))),128))]),_:1},8,[`modelValue`]),A.fields.length?C(``,!0):(g(),c(`p`,Yt,` Noch keine Felder. Felder aus der rechten Spalte hierher ziehen oder anklicken. `)),e(i(re),null,{default:v(()=>[e(i(ie),{class:`mt-4 flex h-9 w-full items-center justify-center gap-1.5 rounded-md border border-dashed text-sm font-medium text-muted-foreground hover:border-brand-300 hover:bg-brand-soft hover:text-brand-soft-foreground`,onClick:u[8]||=w(()=>{},[`stop`])},{default:v(()=>[e(i(U),{class:`size-4`}),u[18]||=t(` Feld hinzufügen `,-1)]),_:1}),e(i(ae),{class:`w-[22rem] p-3`,onClick:u[9]||=w(()=>{},[`stop`])},{default:v(()=>[s(`div`,Xt,[(g(!0),c(_,null,l(r.types,(e,n)=>(g(),c(`button`,{key:n,type:`button`,class:`flex items-center gap-2 rounded-md border px-2.5 py-2 text-left text-[13px] font-medium hover:border-brand-300 hover:bg-brand-soft/60`,onClick:e=>B(n,A.fields.length)},[(g(),b(S(i(Y)[n].icon),{class:`size-4 shrink-0 text-brand-text`})),u[19]||=t(),s(`span`,Qt,y(e),1)],8,Zt))),128))])]),_:1})]),_:1}),u[20]||=s(`div`,{class:`mt-5 flex items-center gap-4 border-t pt-5`},[s(`span`,{class:`inline-flex h-9 items-center rounded-md bg-brand px-4 text-sm font-medium text-brand-foreground opacity-80`},`Absenden`),s(`span`,{class:`text-xs text-muted-foreground`},`Beschriftung und Bestätigungstext unter „Einstellungen“`)],-1)])],64)):(g(),c(_,{key:2},[s(`h1`,$t,y(A.title),1),A.description?(g(),c(`p`,en,y(A.description),1)):C(``,!0),s(`div`,tn,[(g(),b(fe,{key:JSON.stringify(q.value.fields),form:q.value,preview:``},null,8,[`form`]))]),u[21]||=s(`p`,{class:`mt-3 text-center text-xs text-muted-foreground`},`Vorschau: Bedingungen und Pflichtfelder funktionieren wie im Portal, gesendet wird nichts.`,-1)],64))])]),N.value===`edit`?(g(),c(`aside`,nn,[s(`div`,rn,[R.value?(g(),b(It,{key:R.value._id,field:R.value},null,8,[`field`])):(g(),c(_,{key:1},[u[22]||=s(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt das Feld unter dem ausgewählten ein. Felder lassen sich auch an jede Stelle ziehen.`,-1),(g(!0),c(_,null,l(J.value,([t,n])=>(g(),c(`section`,{key:t,class:`mb-4`},[s(`h3`,an,y(t),1),e(i(ue),{"model-value":n,group:{name:`form-fields`,pull:`clone`,put:!1},clone:e=>i(De)(e.type),sort:!1,class:`grid grid-cols-2 gap-2`},{default:v(()=>[(g(!0),c(_,null,l(n,e=>(g(),c(`button`,{key:e.type,type:`button`,class:`flex cursor-grab items-center gap-2 rounded-md border bg-card px-2.5 py-2 text-left text-[13px] font-medium hover:border-brand-300 hover:bg-brand-soft/60 active:cursor-grabbing`,onClick:t=>B(e.type)},[(g(),b(S(e.icon),{class:`size-4 shrink-0 text-brand-text`})),s(`span`,sn,y(e.label),1)],8,on))),128))]),_:2},1032,[`model-value`,`clone`])]))),128))],64))])])):C(``,!0)])]),e(i(ne),{position:`bottom-left`})],64))}};export{cn as default}; \ No newline at end of file diff --git a/public/build/assets/Contacts-pzJUQND2.js b/public/build/assets/Contacts-B--3_7OC.js similarity index 92% rename from public/build/assets/Contacts-pzJUQND2.js rename to public/build/assets/Contacts-B--3_7OC.js index 5930fb4e..25244a8e 100644 --- a/public/build/assets/Contacts-pzJUQND2.js +++ b/public/build/assets/Contacts-B--3_7OC.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CIvn5Z1l.js";import{K as p,b as m}from"./AppIcon-BVHFLm12.js";import{y as h}from"./http-9R3L4KBg.js";var g={key:0,class:`mb-3 text-lg font-semibold`},_={class:`min-w-0`},v={key:0,class:`truncate text-[13px] text-muted-foreground`},y={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},b=[`href`],x=[`href`],S={class:`truncate`},C={key:0,class:`text-sm text-muted-foreground`},w={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(w){return(T,E)=>(s(),a(`section`,null,[w.block.data.title?(s(),a(`h3`,g,u(w.block.data.title),1)):d(``,!0),i(`div`,{class:r(w.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(s(!0),a(c,null,o(w.block.props?.people??[],o=>(s(),a(`div`,{key:o.id,class:r([`flex gap-3`,w.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(m,{person:o,class:`size-12 shrink-0`},null,8,[`person`]),i(`div`,_,[e(n(f),{href:`/personen/${o.id}`,class:`block truncate font-semibold hover:underline`},{default:l(()=>[t(u(o.name),1)]),_:2},1032,[`href`]),o.job_title?(s(),a(`p`,v,u(o.job_title),1)):d(``,!0),i(`div`,y,[o.phone?(s(),a(`a`,{key:0,href:`tel:${o.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(n(h),{class:`size-3.5`}),t(` `+u(o.phone),1)],8,b)):d(``,!0),i(`a`,{href:`mailto:${o.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(n(p),{class:`size-3.5 shrink-0`}),E[0]||=t(),i(`span`,S,u(o.email),1)],8,x)])])],2))),128)),(w.block.props?.people??[]).length?d(``,!0):(s(),a(`p`,C,`Noch keine Personen ausgewählt.`))],2)]))}};export{w as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Dy5FbYkt.js";import{K as p,b as m}from"./AppIcon-SVMShh8s.js";import{y as h}from"./http-9R3L4KBg.js";var g={key:0,class:`mb-3 text-lg font-semibold`},_={class:`min-w-0`},v={key:0,class:`truncate text-[13px] text-muted-foreground`},y={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},b=[`href`],x=[`href`],S={class:`truncate`},C={key:0,class:`text-sm text-muted-foreground`},w={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(w){return(T,E)=>(s(),a(`section`,null,[w.block.data.title?(s(),a(`h3`,g,u(w.block.data.title),1)):d(``,!0),i(`div`,{class:r(w.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(s(!0),a(c,null,o(w.block.props?.people??[],o=>(s(),a(`div`,{key:o.id,class:r([`flex gap-3`,w.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(m,{person:o,class:`size-12 shrink-0`},null,8,[`person`]),i(`div`,_,[e(n(f),{href:`/personen/${o.id}`,class:`block truncate font-semibold hover:underline`},{default:l(()=>[t(u(o.name),1)]),_:2},1032,[`href`]),o.job_title?(s(),a(`p`,v,u(o.job_title),1)):d(``,!0),i(`div`,y,[o.phone?(s(),a(`a`,{key:0,href:`tel:${o.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(n(h),{class:`size-3.5`}),t(` `+u(o.phone),1)],8,b)):d(``,!0),i(`a`,{href:`mailto:${o.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(n(p),{class:`size-3.5 shrink-0`}),E[0]||=t(),i(`span`,S,u(o.email),1)],8,x)])])],2))),128)),(w.block.props?.people??[]).length?d(``,!0):(s(),a(`p`,C,`Noch keine Personen ausgewählt.`))],2)]))}};export{w as default}; \ No newline at end of file diff --git a/public/build/assets/CustomTile-rpvbUDGX.js b/public/build/assets/CustomTile-BUG7m3MU.js similarity index 95% rename from public/build/assets/CustomTile-rpvbUDGX.js rename to public/build/assets/CustomTile-BUG7m3MU.js index 63b382ca..48f0914f 100644 --- a/public/build/assets/CustomTile-rpvbUDGX.js +++ b/public/build/assets/CustomTile-BUG7m3MU.js @@ -1 +1 @@ -import{On as e,Zn as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{W as u}from"./AppIcon-BVHFLm12.js";import{S as d,v as f,x as p}from"./http-9R3L4KBg.js";import{t as m}from"./circle-alert-qymEjja5.js";import{t as h}from"./Panel-xPHuwfuu.js";var g=[`src`,`alt`],_={key:0,class:`block px-4 py-3 text-sm font-semibold group-hover:underline`},v={class:`min-w-0 flex-1`},y={key:0,class:`font-semibold`},b=[`innerHTML`],x=[`href`,`target`],S=[`innerHTML`],C=[`href`,`target`],w={__name:`CustomTile`,props:{tile:{type:Object,required:!0}},setup(w){let T={brand:{icon:u,class:`border-brand bg-brand text-brand-foreground`},info:{icon:p,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`},warning:{icon:f,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`},neutral:{icon:m,class:`border-border bg-card text-foreground`}};return(d,f)=>w.tile.type===`image`&&w.tile.image_url?(i(),s(c(w.tile.url?`a`:`figure`),{key:0,href:w.tile.url||void 0,target:w.tile.url&&w.tile.new_tab?`_blank`:void 0,rel:w.tile.url&&w.tile.new_tab?`noopener`:void 0,class:`group block overflow-hidden rounded-lg border bg-card`},{default:a(()=>[n(`img`,{src:w.tile.image_url,alt:w.tile.alt||w.tile.title||``,loading:`lazy`,class:`w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]`},null,8,g),w.tile.title?(i(),r(`span`,_,o(w.tile.title),1)):l(``,!0)]),_:1},8,[`href`,`target`,`rel`])):w.tile.type===`notice`?(i(),r(`section`,{key:1,class:t([`pb-box flex gap-3 rounded-lg border p-4 sm:p-5`,T[w.tile.variant]?.class??T.brand.class])},[(i(),s(c(T[w.tile.variant]?.icon??e(u)),{class:`mt-0.5 size-5 shrink-0`})),n(`div`,v,[w.tile.title?(i(),r(`p`,y,o(w.tile.title),1)):l(``,!0),w.tile.html?(i(),r(`div`,{key:1,class:t([`prose prose-sm max-w-none [&_a]:underline`,w.tile.title?`mt-1`:``]),innerHTML:w.tile.html},null,10,b)):l(``,!0),w.tile.url?(i(),r(`a`,{key:2,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-2 inline-block text-sm font-medium underline`},`Mehr erfahren`,8,x)):l(``,!0)])],2)):(i(),s(h,{key:2,title:w.tile.title||``},{default:a(()=>[n(`div`,{class:`prose prose-sm prose-neutral max-w-none prose-img:rounded-md`,innerHTML:w.tile.html},null,8,S),w.tile.url?(i(),r(`a`,{key:0,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-3 inline-block text-[13px] font-medium text-brand-text hover:underline`},`Mehr erfahren`,8,C)):l(``,!0)]),_:1},8,[`title`]))}};export{w as default}; \ No newline at end of file +import{On as e,Zn as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{W as u}from"./AppIcon-SVMShh8s.js";import{S as d,v as f,x as p}from"./http-9R3L4KBg.js";import{t as m}from"./circle-alert-qymEjja5.js";import{t as h}from"./Panel-DF-wChKt.js";var g=[`src`,`alt`],_={key:0,class:`block px-4 py-3 text-sm font-semibold group-hover:underline`},v={class:`min-w-0 flex-1`},y={key:0,class:`font-semibold`},b=[`innerHTML`],x=[`href`,`target`],S=[`innerHTML`],C=[`href`,`target`],w={__name:`CustomTile`,props:{tile:{type:Object,required:!0}},setup(w){let T={brand:{icon:u,class:`border-brand bg-brand text-brand-foreground`},info:{icon:p,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`},warning:{icon:f,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`},neutral:{icon:m,class:`border-border bg-card text-foreground`}};return(d,f)=>w.tile.type===`image`&&w.tile.image_url?(i(),s(c(w.tile.url?`a`:`figure`),{key:0,href:w.tile.url||void 0,target:w.tile.url&&w.tile.new_tab?`_blank`:void 0,rel:w.tile.url&&w.tile.new_tab?`noopener`:void 0,class:`group block overflow-hidden rounded-lg border bg-card`},{default:a(()=>[n(`img`,{src:w.tile.image_url,alt:w.tile.alt||w.tile.title||``,loading:`lazy`,class:`w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]`},null,8,g),w.tile.title?(i(),r(`span`,_,o(w.tile.title),1)):l(``,!0)]),_:1},8,[`href`,`target`,`rel`])):w.tile.type===`notice`?(i(),r(`section`,{key:1,class:t([`pb-box flex gap-3 rounded-lg border p-4 sm:p-5`,T[w.tile.variant]?.class??T.brand.class])},[(i(),s(c(T[w.tile.variant]?.icon??e(u)),{class:`mt-0.5 size-5 shrink-0`})),n(`div`,v,[w.tile.title?(i(),r(`p`,y,o(w.tile.title),1)):l(``,!0),w.tile.html?(i(),r(`div`,{key:1,class:t([`prose prose-sm max-w-none [&_a]:underline`,w.tile.title?`mt-1`:``]),innerHTML:w.tile.html},null,10,b)):l(``,!0),w.tile.url?(i(),r(`a`,{key:2,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-2 inline-block text-sm font-medium underline`},`Mehr erfahren`,8,x)):l(``,!0)])],2)):(i(),s(h,{key:2,title:w.tile.title||``},{default:a(()=>[n(`div`,{class:`prose prose-sm prose-neutral max-w-none prose-img:rounded-md`,innerHTML:w.tile.html},null,8,S),w.tile.url?(i(),r(`a`,{key:0,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-3 inline-block text-[13px] font-medium text-brand-text hover:underline`},`Mehr erfahren`,8,C)):l(``,!0)]),_:1},8,[`title`]))}};export{w as default}; \ No newline at end of file diff --git a/public/build/assets/Dashboard-BiW9lQww.js b/public/build/assets/Dashboard-Bex8V2VA.js similarity index 58% rename from public/build/assets/Dashboard-BiW9lQww.js rename to public/build/assets/Dashboard-Bex8V2VA.js index 6678e03f..2b374974 100644 --- a/public/build/assets/Dashboard-BiW9lQww.js +++ b/public/build/assets/Dashboard-Bex8V2VA.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CustomTile-rpvbUDGX.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/AppIcon-BVHFLm12.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-CleIz2GP.js","assets/app-CIvn5Z1l.js","assets/app-BZMCjaRn.css","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/circle-alert-qymEjja5.js","assets/Panel-xPHuwfuu.js","assets/chevron-right-DR4LjgDm.js","assets/Greeting-B05GQpKd.js","assets/AppLayout-Cy38OwfZ.js","assets/BrandLogo-TGGJyC1K.js","assets/NewColleagues-DMxyPHNm.js","assets/PeopleSearch-lOnxyLDv.js","assets/arrow-right-CdMsByuI.js","assets/ProfileIncomplete-D_-55Kim.js","assets/QuickLinks-DD-ribbK.js","assets/chevron-left-CfNljcKt.js","assets/dist-BRRmd-wM.js","assets/Greeting-BNtvUzyI.js","assets/Upcoming-2G8rjb71.js","assets/BirthdayItem-DK6xURSZ.js","assets/MyDownloads-C3KvafhB.js","assets/FileIcon-BHQ0ftg2.js","assets/Upcoming-DpyMBhkM.js","assets/EmptyState-Ceq4v8mE.js","assets/EventListItem-C_pDZ4ur.js","assets/EventDateBlock-Cxz_hY6g.js","assets/Areas-Bzac5pwG.js","assets/NewsCard-CWMFENyt.js","assets/NewsImage-31QS1JbU.js","assets/Hero-OPvK6LV0.js","assets/play-_hM1KTvn.js","assets/Latest-CZZxoFB3.js","assets/NewsListItem-DmR535f5.js"])))=>i.map(i=>d[i]); -import{O as e,On as t,_ as n,b as r,bt as i,et as a,g as o,mt as s,o as c,qt as l,v as u,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as p}from"./app-CIvn5Z1l.js";import{t as m}from"./AppLayout-Cy38OwfZ.js";import{n as h}from"./dist-BRRmd-wM.js";var g=Object.assign({"../widgets/CustomTile.vue":()=>p(()=>import(`./CustomTile-rpvbUDGX.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"../widgets/Greeting.vue":()=>p(()=>import(`./Greeting-B05GQpKd.js`),__vite__mapDeps([13,1,6,4,7,2,3,5,8,9,14,15])),"../widgets/NewColleagues.vue":()=>p(()=>import(`./NewColleagues-DMxyPHNm.js`),__vite__mapDeps([16,1,6,4,7,2,3,5,8,9,11,12])),"../widgets/PeopleSearch.vue":()=>p(()=>import(`./PeopleSearch-lOnxyLDv.js`),__vite__mapDeps([17,1,6,4,7,2,3,5,8,9,18,11,12])),"../widgets/ProfileIncomplete.vue":()=>p(()=>import(`./ProfileIncomplete-D_-55Kim.js`),__vite__mapDeps([19,1,6,4,7,14,3,5,2,8,9,15])),"../widgets/QuickLinks.vue":()=>p(()=>import(`./QuickLinks-DD-ribbK.js`),__vite__mapDeps([20,1,6,4,7,2,3,5,8,9,21,12,22]))}),_=Object.assign({"../../../plugins-core/birthdays/resources/js/widgets/Greeting.vue":()=>p(()=>import(`./Greeting-BNtvUzyI.js`),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9])),"../../../plugins-core/birthdays/resources/js/widgets/Upcoming.vue":()=>p(()=>import(`./Upcoming-2G8rjb71.js`),__vite__mapDeps([24,1,25,6,4,7,2,3,5,8,9,11,12])),"../../../plugins-core/downloads/resources/js/widgets/MyDownloads.vue":()=>p(()=>import(`./MyDownloads-C3KvafhB.js`),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,27,11,12])),"../../../plugins-core/events/resources/js/widgets/Upcoming.vue":()=>p(()=>import(`./Upcoming-DpyMBhkM.js`),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,29,11,12,30,31])),"../../../plugins-core/news/resources/js/widgets/Areas.vue":()=>p(()=>import(`./Areas-Bzac5pwG.js`),__vite__mapDeps([32,1,11,6,4,7,12,5,33,2,3,8,9,34])),"../../../plugins-core/news/resources/js/widgets/Hero.vue":()=>p(()=>import(`./Hero-OPvK6LV0.js`),__vite__mapDeps([35,1,4,6,7,5,18,21,12,36])),"../../../plugins-core/news/resources/js/widgets/Latest.vue":()=>p(()=>import(`./Latest-CZZxoFB3.js`),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,29,11,12,38,34]))}),v={};for(let[t,n]of Object.entries(g))v[`core::${t.split(`/`).pop().replace(`.vue`,``)}`]=e(n);for(let[t,n]of Object.entries(_)){let[,r]=t.match(/plugins-core\/([^/]+)\//);v[`${r}::${t.split(`/`).pop().replace(`.vue`,``)}`]=e(n)}function y(e){return v[e]??null}var b={key:0,class:`mb-6 grid gap-6`},x={key:1,class:`grid grid-cols-12 gap-6`},S={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},C={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},w={key:2,class:`grid min-w-0 grid-cols-1 gap-6`},T={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(e){let p=e,g=h(`(min-width: 1024px)`),_=o(()=>p.widgets.filter(e=>y(e.component))),v=e=>_.value.filter(t=>t.area===e),T=o(()=>v(`hero`)[0]??null),E=o(()=>[..._.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(e,o)=>(s(),u(m,{title:`Startseite`},{default:l(()=>[t(g)&&v(`top`).length?(s(),r(`div`,b,[(s(!0),r(c,null,i(v(`top`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])):f(``,!0),t(g)?(s(),r(`div`,x,[n(`div`,S,[T.value?(s(),u(d(t(y)(T.value.component)),a({key:0},T.value.props,{class:`xl:col-span-2`}),null,16)):f(``,!0),(s(!0),r(c,null,i(v(`feed`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props,{wide:!T.value,class:T.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(s(!0),r(c,null,i(v(`main`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props,{class:`xl:col-span-3`}),null,16))),128))]),n(`aside`,C,[(s(!0),r(c,null,i(v(`aside`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])])):(s(),r(`div`,w,[(s(!0),r(c,null,i(E.value,e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))]))]),_:1}))}};export{T as default}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CustomTile-BUG7m3MU.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/AppIcon-SVMShh8s.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-CleIz2GP.js","assets/app-Dy5FbYkt.js","assets/app-BXGstlVh.css","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/circle-alert-qymEjja5.js","assets/Panel-DF-wChKt.js","assets/chevron-right-DR4LjgDm.js","assets/Greeting-BOnbAa6o.js","assets/AppLayout-X0y7XSjx.js","assets/BrandLogo-DRGdNySk.js","assets/NewColleagues-DQMglEr-.js","assets/PeopleSearch-C2eKM9Kj.js","assets/arrow-right-CdMsByuI.js","assets/ProfileIncomplete-BXGHcWOo.js","assets/QuickLinks-DTert53x.js","assets/chevron-left-CfNljcKt.js","assets/dist-BRRmd-wM.js","assets/Greeting-DVG_w5Qo.js","assets/Upcoming-B9CELbEG.js","assets/BirthdayItem-1R7P_7L0.js","assets/MyDownloads-CCohgsaT.js","assets/FileIcon-LA1rFyBK.js","assets/Upcoming-BI7F0wE_.js","assets/EmptyState-Ceq4v8mE.js","assets/EventListItem-CtMhLvQC.js","assets/EventDateBlock-DzdXYi61.js","assets/Areas-pbtOL7ox.js","assets/NewsCard-BnbSPjUt.js","assets/NewsImage-BzxvsZoE.js","assets/Hero-CEjML8k5.js","assets/play-_hM1KTvn.js","assets/Latest-DyQlf2fO.js","assets/NewsListItem-Bak5OcQP.js"])))=>i.map(i=>d[i]); +import{O as e,On as t,_ as n,b as r,bt as i,et as a,g as o,mt as s,o as c,qt as l,v as u,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as p}from"./app-Dy5FbYkt.js";import{t as m}from"./AppLayout-X0y7XSjx.js";import{n as h}from"./dist-BRRmd-wM.js";var g=Object.assign({"../widgets/CustomTile.vue":()=>p(()=>import(`./CustomTile-BUG7m3MU.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"../widgets/Greeting.vue":()=>p(()=>import(`./Greeting-BOnbAa6o.js`),__vite__mapDeps([13,1,6,4,7,2,3,5,8,9,14,15])),"../widgets/NewColleagues.vue":()=>p(()=>import(`./NewColleagues-DQMglEr-.js`),__vite__mapDeps([16,1,6,4,7,2,3,5,8,9,11,12])),"../widgets/PeopleSearch.vue":()=>p(()=>import(`./PeopleSearch-C2eKM9Kj.js`),__vite__mapDeps([17,1,6,4,7,2,3,5,8,9,18,11,12])),"../widgets/ProfileIncomplete.vue":()=>p(()=>import(`./ProfileIncomplete-BXGHcWOo.js`),__vite__mapDeps([19,1,6,4,7,14,3,5,2,8,9,15])),"../widgets/QuickLinks.vue":()=>p(()=>import(`./QuickLinks-DTert53x.js`),__vite__mapDeps([20,1,6,4,7,2,3,5,8,9,21,12,22]))}),_=Object.assign({"../../../plugins-core/birthdays/resources/js/widgets/Greeting.vue":()=>p(()=>import(`./Greeting-DVG_w5Qo.js`),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9])),"../../../plugins-core/birthdays/resources/js/widgets/Upcoming.vue":()=>p(()=>import(`./Upcoming-B9CELbEG.js`),__vite__mapDeps([24,1,25,6,4,7,2,3,5,8,9,11,12])),"../../../plugins-core/downloads/resources/js/widgets/MyDownloads.vue":()=>p(()=>import(`./MyDownloads-CCohgsaT.js`),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,27,11,12])),"../../../plugins-core/events/resources/js/widgets/Upcoming.vue":()=>p(()=>import(`./Upcoming-BI7F0wE_.js`),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,29,11,12,30,31])),"../../../plugins-core/news/resources/js/widgets/Areas.vue":()=>p(()=>import(`./Areas-pbtOL7ox.js`),__vite__mapDeps([32,1,11,6,4,7,12,5,33,2,3,8,9,34])),"../../../plugins-core/news/resources/js/widgets/Hero.vue":()=>p(()=>import(`./Hero-CEjML8k5.js`),__vite__mapDeps([35,1,4,6,7,5,18,21,12,36])),"../../../plugins-core/news/resources/js/widgets/Latest.vue":()=>p(()=>import(`./Latest-DyQlf2fO.js`),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,29,11,12,38,34]))}),v={};for(let[t,n]of Object.entries(g))v[`core::${t.split(`/`).pop().replace(`.vue`,``)}`]=e(n);for(let[t,n]of Object.entries(_)){let[,r]=t.match(/plugins-core\/([^/]+)\//);v[`${r}::${t.split(`/`).pop().replace(`.vue`,``)}`]=e(n)}function y(e){return v[e]??null}var b={key:0,class:`mb-6 grid gap-6`},x={key:1,class:`grid grid-cols-12 gap-6`},S={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},C={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},w={key:2,class:`grid min-w-0 grid-cols-1 gap-6`},T={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(e){let p=e,g=h(`(min-width: 1024px)`),_=o(()=>p.widgets.filter(e=>y(e.component))),v=e=>_.value.filter(t=>t.area===e),T=o(()=>v(`hero`)[0]??null),E=o(()=>[..._.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(e,o)=>(s(),u(m,{title:`Startseite`},{default:l(()=>[t(g)&&v(`top`).length?(s(),r(`div`,b,[(s(!0),r(c,null,i(v(`top`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])):f(``,!0),t(g)?(s(),r(`div`,x,[n(`div`,S,[T.value?(s(),u(d(t(y)(T.value.component)),a({key:0},T.value.props,{class:`xl:col-span-2`}),null,16)):f(``,!0),(s(!0),r(c,null,i(v(`feed`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props,{wide:!T.value,class:T.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(s(!0),r(c,null,i(v(`main`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props,{class:`xl:col-span-3`}),null,16))),128))]),n(`aside`,C,[(s(!0),r(c,null,i(v(`aside`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])])):(s(),r(`div`,w,[(s(!0),r(c,null,i(E.value,e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))]))]),_:1}))}};export{T as default}; \ No newline at end of file diff --git a/public/build/assets/DialogHeader-ByFe3nCF.js b/public/build/assets/DialogHeader-UfXa7NWq.js similarity index 94% rename from public/build/assets/DialogHeader-ByFe3nCF.js rename to public/build/assets/DialogHeader-UfXa7NWq.js index 7c3591d6..0a8fa334 100644 --- a/public/build/assets/DialogHeader-ByFe3nCF.js +++ b/public/build/assets/DialogHeader-UfXa7NWq.js @@ -1 +1 @@ -import{a as e}from"./usePrimitiveElement-BOk1PFhF.js";import{On as t,Zn as n,b as r,et as i,k as a,mt as o,qt as s,v as c,xt as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{d as u,h as d,o as f,p}from"./dist-CleIz2GP.js";import{j as m}from"./AppIcon-BVHFLm12.js";var h=a({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let n=e;d();let r=m();return(e,a)=>(o(),c(t(p),i(n,{id:t(r).descriptionId}),{default:s(()=>[l(e.$slots,`default`)]),_:3},16,[`id`]))}}),g=a({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n,a=f(r,`class`),d=e(a);return(e,n)=>(o(),c(t(h),i({"data-slot":`dialog-description`},t(d),{class:t(u)(`text-muted-foreground text-sm`,r.class)}),{default:s(()=>[l(e.$slots,`default`)]),_:3},16,[`class`]))}}),_=a({__name:`DialogHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let i=e;return(e,a)=>(o(),r(`div`,{"data-slot":`dialog-header`,class:n(t(u)(`flex flex-col gap-2 text-center sm:text-left`,i.class))},[l(e.$slots,`default`)],2))}});export{g as n,_ as t}; \ No newline at end of file +import{a as e}from"./usePrimitiveElement-BOk1PFhF.js";import{On as t,Zn as n,b as r,et as i,k as a,mt as o,qt as s,v as c,xt as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{d as u,h as d,o as f,p}from"./dist-CleIz2GP.js";import{j as m}from"./AppIcon-SVMShh8s.js";var h=a({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let n=e;d();let r=m();return(e,a)=>(o(),c(t(p),i(n,{id:t(r).descriptionId}),{default:s(()=>[l(e.$slots,`default`)]),_:3},16,[`id`]))}}),g=a({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n,a=f(r,`class`),d=e(a);return(e,n)=>(o(),c(t(h),i({"data-slot":`dialog-description`},t(d),{class:t(u)(`text-muted-foreground text-sm`,r.class)}),{default:s(()=>[l(e.$slots,`default`)]),_:3},16,[`class`]))}}),_=a({__name:`DialogHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let i=e;return(e,a)=>(o(),r(`div`,{"data-slot":`dialog-header`,class:n(t(u)(`flex flex-col gap-2 text-center sm:text-left`,i.class))},[l(e.$slots,`default`)],2))}});export{g as n,_ as t}; \ No newline at end of file diff --git a/public/build/assets/DirectoryLogin-ClBeVS4i.js b/public/build/assets/DirectoryLogin-CjtXWv8X.js similarity index 95% rename from public/build/assets/DirectoryLogin-ClBeVS4i.js rename to public/build/assets/DirectoryLogin-CjtXWv8X.js index 7527fab7..1a9912d4 100644 --- a/public/build/assets/DirectoryLogin-ClBeVS4i.js +++ b/public/build/assets/DirectoryLogin-CjtXWv8X.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as l}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as u,r as d}from"./app-CIvn5Z1l.js";import{A as f}from"./dist-CleIz2GP.js";import{t as p}from"./arrow-left-nZZEveo4.js";import{t as m}from"./eye-off-DWbaLHNt.js";import{t as h}from"./eye-DcTo_il4.js";import{t as g}from"./FormField-BcJMyuzX.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Input-CgjHXzkf.js";import{t as y}from"./GuestLayout-DAusAB2K.js";var b={class:`relative`},x=[`aria-label`],S={__name:`DirectoryLogin`,props:{provider:{type:Object,required:!0}},setup(S){let C=S,w=s(!1),T=d({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,d)=>(i(),o(y,{title:S.provider.label,description:`Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:l(E,[`prevent`])},[e(g,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(v),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":d[0]||=e=>n(T).username=e,autocomplete:`username`,autocapitalize:`none`,spellcheck:`false`,autofocus:``,class:`h-10`,"aria-invalid":!!n(T).errors.username},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`label`,`error`]),e(g,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(v),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":d[1]||=e=>n(T).password=e,type:w.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(T).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":w.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:d[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(m),{key:0,class:`size-4`})):(i(),o(n(h),{key:1,class:`size-4`}))],8,x)])]),_:1},8,[`error`]),e(n(_),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(T).processing},{default:a(()=>[n(T).processing?(i(),o(n(f),{key:0,class:`animate-spin`})):c(``,!0),d[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(u),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(p),{class:`size-4`}),d[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as l}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as u,r as d}from"./app-Dy5FbYkt.js";import{A as f}from"./dist-CleIz2GP.js";import{t as p}from"./arrow-left-nZZEveo4.js";import{t as m}from"./eye-off-DWbaLHNt.js";import{t as h}from"./eye-DcTo_il4.js";import{t as g}from"./FormField-BcJMyuzX.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Input-CgjHXzkf.js";import{t as y}from"./GuestLayout-DxnnRWk6.js";var b={class:`relative`},x=[`aria-label`],S={__name:`DirectoryLogin`,props:{provider:{type:Object,required:!0}},setup(S){let C=S,w=s(!1),T=d({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,d)=>(i(),o(y,{title:S.provider.label,description:`Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:l(E,[`prevent`])},[e(g,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(v),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":d[0]||=e=>n(T).username=e,autocomplete:`username`,autocapitalize:`none`,spellcheck:`false`,autofocus:``,class:`h-10`,"aria-invalid":!!n(T).errors.username},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`label`,`error`]),e(g,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(v),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":d[1]||=e=>n(T).password=e,type:w.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(T).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":w.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:d[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(m),{key:0,class:`size-4`})):(i(),o(n(h),{key:1,class:`size-4`}))],8,x)])]),_:1},8,[`error`]),e(n(_),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(T).processing},{default:a(()=>[n(T).processing?(i(),o(n(f),{key:0,class:`animate-spin`})):c(``,!0),d[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(u),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(p),{class:`size-4`}),d[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default}; \ No newline at end of file diff --git a/public/build/assets/Downloads-BCdWiVDF.js b/public/build/assets/Downloads-BbH66euM.js similarity index 95% rename from public/build/assets/Downloads-BCdWiVDF.js rename to public/build/assets/Downloads-BbH66euM.js index eb74c464..8a9693c1 100644 --- a/public/build/assets/Downloads-BCdWiVDF.js +++ b/public/build/assets/Downloads-BbH66euM.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,tr as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{$ as l}from"./AppIcon-BVHFLm12.js";import{t as u}from"./download-cH_7CRKx.js";var d={key:0,class:`mb-3 text-lg font-semibold`},f={class:`divide-y rounded-lg border bg-card`},p=[`href`],m={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block text-xs text-muted-foreground`},v={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},y={__name:`Downloads`,props:{block:{type:Object,required:!0}},setup(y){let b=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(x,S)=>(a(),r(`section`,null,[y.block.data.title?(a(),r(`h3`,d,s(y.block.data.title),1)):c(``,!0),n(`ul`,f,[(a(!0),r(o,null,i(y.block.props?.files??[],i=>(a(),r(`li`,{key:i.id},[n(`a`,{href:i.url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[n(`span`,m,[e(t(l),{class:`size-5`})]),n(`span`,h,[n(`span`,g,s(i.name),1),n(`span`,_,s(i.extension||`Datei`)+` · `+s(b(i.size)),1)]),e(t(u),{class:`size-4 shrink-0 text-muted-foreground`})],8,p)]))),128)),(y.block.props?.files??[]).length?c(``,!0):(a(),r(`li`,v,`Noch keine Dateien.`))])]))}};export{y as default}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,tr as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{$ as l}from"./AppIcon-SVMShh8s.js";import{t as u}from"./download-cH_7CRKx.js";var d={key:0,class:`mb-3 text-lg font-semibold`},f={class:`divide-y rounded-lg border bg-card`},p=[`href`],m={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block text-xs text-muted-foreground`},v={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},y={__name:`Downloads`,props:{block:{type:Object,required:!0}},setup(y){let b=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(x,S)=>(a(),r(`section`,null,[y.block.data.title?(a(),r(`h3`,d,s(y.block.data.title),1)):c(``,!0),n(`ul`,f,[(a(!0),r(o,null,i(y.block.props?.files??[],i=>(a(),r(`li`,{key:i.id},[n(`a`,{href:i.url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[n(`span`,m,[e(t(l),{class:`size-5`})]),n(`span`,h,[n(`span`,g,s(i.name),1),n(`span`,_,s(i.extension||`Datei`)+` · `+s(b(i.size)),1)]),e(t(u),{class:`size-4 shrink-0 text-muted-foreground`})],8,p)]))),128)),(y.block.props?.files??[]).length?c(``,!0):(a(),r(`li`,v,`Noch keine Dateien.`))])]))}};export{y as default}; \ No newline at end of file diff --git a/public/build/assets/Edit-c1ouj20i.js b/public/build/assets/Edit-B8iiYql2.js similarity index 93% rename from public/build/assets/Edit-c1ouj20i.js rename to public/build/assets/Edit-B8iiYql2.js index ad522255..a1df2dd0 100644 --- a/public/build/assets/Edit-c1ouj20i.js +++ b/public/build/assets/Edit-B8iiYql2.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProfileBirthday-CKO31Nfm.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-CIvn5Z1l.js","assets/app-BZMCjaRn.css","assets/dist-CleIz2GP.js","assets/AppIcon-BVHFLm12.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/FormField-BcJMyuzX.js","assets/button-SRYY3-ko.js","assets/NativeSelect-BBbvK4oZ.js","assets/Panel-xPHuwfuu.js","assets/chevron-right-DR4LjgDm.js"])))=>i.map(i=>d[i]); -import{D as e,E as t,O as ee,On as n,Zn as r,_ as i,b as a,bt as o,et as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,wt as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as _,o as v,r as y}from"./app-CIvn5Z1l.js";import{A as b,j as x}from"./dist-CleIz2GP.js";import{b as te}from"./AppIcon-BVHFLm12.js";import{t as S}from"./AppLayout-Cy38OwfZ.js";import{o as C}from"./http-9R3L4KBg.js";import{t as w}from"./trash-3XeUxfQJ.js";import{t as T}from"./FormField-BcJMyuzX.js";import{t as E}from"./button-SRYY3-ko.js";import{t as D}from"./Panel-xPHuwfuu.js";import{t as O}from"./Input-CgjHXzkf.js";import{t as k}from"./Textarea-DWpyL-nk.js";var A=x({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`}]]}),j={class:`grid gap-6 lg:grid-cols-12`},M={class:`lg:col-span-4`},N={class:`flex flex-col items-center text-center`},P={class:`mt-5 flex flex-wrap justify-center gap-2`},F={key:0,class:`mt-3 text-[13px] text-destructive`},I={class:`grid content-start gap-6 lg:col-span-8`},L={class:`grid gap-5 sm:grid-cols-2`},R={key:0,class:`grid gap-5 border-t pt-5`},z={class:`grid gap-5 sm:grid-cols-2`},B={class:`flex justify-end border-t pt-5`},V={class:`grid gap-5 sm:grid-cols-2`},H={class:`flex justify-end border-t pt-5`},U={__name:`Edit`,props:{profile:{type:Object,required:!0},managed:{type:Array,default:()=>[]},customFields:{type:Array,default:()=>[]},sections:{type:Array,default:()=>[]}},setup(x){let U=x,W=Object.fromEntries(Object.entries(Object.assign({"../../../../plugins-core/birthdays/resources/js/profile/ProfileBirthday.vue":()=>v(()=>import(`./ProfileBirthday-CKO31Nfm.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))})).map(([e,t])=>[`${e.match(/plugins-core\/([^/]+)\//)[1]}::${e.split(`/`).pop().replace(`.vue`,``)}`,ee(t)])),G=e=>U.managed.includes(e),K=y({first_name:U.profile.first_name??``,last_name:U.profile.last_name??``,email:U.profile.email,job_title:U.profile.job_title??``,department:U.profile.department??``,location:U.profile.location??``,phone:U.profile.phone??``,mobile:U.profile.mobile??``,about:U.profile.about??``,custom_fields:Object.fromEntries(U.customFields.map(e=>[e.key,e.value??``]))}),q={email:`email`,phone:`tel`,url:`url`,date:`date`};function J(e){let t=[];return e.managed?t.push(`Wird aus Microsoft Entra ID übernommen.`):e.readonly&&t.push(`Wird von der Personalverwaltung gepflegt.`),e.restricted&&t.push(`Nur für Sie und die Personalverwaltung sichtbar.`),e.help&&t.push(e.help),t.join(` `)}function Y(){K.put(`/profil`,{preserveScroll:!0,onSuccess:()=>{K.defaults(),C.success(`Profil gespeichert`)}})}let X=[{key:`first_name`,label:`Vorname`,autocomplete:`given-name`},{key:`last_name`,label:`Nachname`,autocomplete:`family-name`},{key:`email`,label:`E-Mail-Adresse`,type:`email`,autocomplete:`email`,wide:!0},{key:`job_title`,label:`Funktion`,autocomplete:`organization-title`},{key:`department`,label:`Abteilung`},{key:`location`,label:`Standort`},{key:`phone`,label:`Telefon`,type:`tel`,autocomplete:`tel`},{key:`mobile`,label:`Mobil`,type:`tel`}],Z=p(null),Q=y({avatar:null});function ne(e){let t=e.target.files?.[0];t&&(Q.avatar=t,Q.post(`/profil/bild`,{preserveScroll:!0,forceFormData:!0,onSuccess:()=>C.success(`Profilbild aktualisiert`),onFinish:()=>{e.target.value=``}}))}function re(){_.delete(`/profil/bild`,{preserveScroll:!0,onSuccess:()=>C.success(`Profilbild entfernt`)})}let $=y({current_password:``,password:``,password_confirmation:``});function ie(){$.put(`/user/password`,{preserveScroll:!0,errorBag:`updatePassword`,onSuccess:()=>{$.reset(),C.success(`Passwort geändert`)}})}return(ee,p)=>(c(),f(S,{title:`Profil bearbeiten`},{default:u(()=>[p[10]||=i(`h1`,{class:`mb-6 text-2xl font-semibold tracking-tight`},`Profil bearbeiten`,-1),i(`div`,j,[i(`div`,M,[e(D,{title:`Profilbild`},{default:u(()=>[i(`div`,N,[e(te,{person:x.profile,class:`size-32 text-3xl`},null,8,[`person`]),i(`input`,{ref_key:`avatarInput`,ref:Z,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`hidden`,onChange:ne},null,544),i(`div`,P,[e(n(E),{variant:`outline`,disabled:n(Q).processing,onClick:p[0]||=e=>Z.value?.click()},{default:u(()=>[n(Q).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):(c(),f(n(A),{key:1})),t(` `+d(x.profile.avatar_url?`Bild ändern`:`Bild hochladen`),1)]),_:1},8,[`disabled`]),x.profile.avatar_url?(c(),f(n(E),{key:0,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:re},{default:u(()=>[e(n(w)),p[5]||=t(` Entfernen `,-1)]),_:1})):h(``,!0)]),n(Q).errors.avatar?(c(),a(`p`,F,d(n(Q).errors.avatar),1)):h(``,!0),p[6]||=i(`p`,{class:`mt-3 text-[13px] text-muted-foreground`},`JPG, PNG oder WebP, höchstens 8 MB. Das Bild wird quadratisch zugeschnitten.`,-1)])]),_:1})]),i(`div`,I,[e(D,{title:`Persönliche Angaben`},{default:u(()=>[i(`form`,{class:`grid gap-5`,onSubmit:g(Y,[`prevent`])},[i(`div`,L,[(c(),a(l,null,o(X,t=>e(T,{id:t.key,key:t.key,label:t.label,error:n(K).errors[t.key],hint:G(t.key)?`Wird aus Microsoft Entra ID übernommen.`:``,class:r({"sm:col-span-2":t.wide})},{default:u(()=>[e(n(O),{id:t.key,modelValue:n(K)[t.key],"onUpdate:modelValue":e=>n(K)[t.key]=e,type:t.type??`text`,autocomplete:t.autocomplete,disabled:G(t.key),"aria-invalid":!!n(K).errors[t.key]},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`autocomplete`,`disabled`,`aria-invalid`])]),_:2},1032,[`id`,`label`,`error`,`hint`,`class`])),64)),e(T,{id:`about`,label:`Über mich`,error:n(K).errors.about,hint:`Aufgaben, Themen, bei denen man Sie ansprechen kann.`,class:`sm:col-span-2`},{default:u(()=>[e(n(k),{id:`about`,modelValue:n(K).about,"onUpdate:modelValue":p[1]||=e=>n(K).about=e,rows:`4`,maxlength:`2000`},null,8,[`modelValue`])]),_:1},8,[`error`])]),x.customFields.length?(c(),a(`div`,R,[p[7]||=i(`h3`,{class:`text-sm font-semibold`},`Weitere Angaben`,-1),i(`div`,z,[(c(!0),a(l,null,o(x.customFields,e=>(c(),f(T,{id:`custom-${e.key}`,key:e.key,label:e.label,error:n(K).errors[`custom_fields.${e.key}`],hint:J(e),class:r({"sm:col-span-2":e.type===`textarea`})},{default:u(()=>[e.type===`textarea`?(c(),f(n(k),{key:0,id:`custom-${e.key}`,modelValue:n(K).custom_fields[e.key],"onUpdate:modelValue":t=>n(K).custom_fields[e.key]=t,rows:`3`,disabled:e.readonly},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`disabled`])):(c(),f(n(O),{key:1,id:`custom-${e.key}`,modelValue:n(K).custom_fields[e.key],"onUpdate:modelValue":t=>n(K).custom_fields[e.key]=t,type:q[e.type]??`text`,disabled:e.readonly,"aria-invalid":!!n(K).errors[`custom_fields.${e.key}`]},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`disabled`,`aria-invalid`]))]),_:2},1032,[`id`,`label`,`error`,`hint`,`class`]))),128))])])):h(``,!0),i(`div`,B,[e(n(E),{type:`submit`,disabled:n(K).processing||!n(K).isDirty},{default:u(()=>[n(K).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):h(``,!0),p[8]||=t(` Speichern `,-1)]),_:1},8,[`disabled`])])],32)]),_:1}),(c(!0),a(l,null,o(x.sections,e=>(c(),f(m(n(W)[e.component]),s({key:e.key},{ref_for:!0},e.props),null,16))),128)),x.profile.has_password?(c(),f(D,{key:0,title:`Passwort ändern`},{default:u(()=>[i(`form`,{class:`grid gap-5`,onSubmit:g(ie,[`prevent`])},[e(T,{id:`current_password`,label:`Aktuelles Passwort`,error:n($).errors.current_password,class:`sm:max-w-sm`},{default:u(()=>[e(n(O),{id:`current_password`,modelValue:n($).current_password,"onUpdate:modelValue":p[2]||=e=>n($).current_password=e,type:`password`,autocomplete:`current-password`},null,8,[`modelValue`])]),_:1},8,[`error`]),i(`div`,V,[e(T,{id:`password`,label:`Neues Passwort`,error:n($).errors.password,hint:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:u(()=>[e(n(O),{id:`password`,modelValue:n($).password,"onUpdate:modelValue":p[3]||=e=>n($).password=e,type:`password`,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(T,{id:`password_confirmation`,label:`Neues Passwort wiederholen`},{default:u(()=>[e(n(O),{id:`password_confirmation`,modelValue:n($).password_confirmation,"onUpdate:modelValue":p[4]||=e=>n($).password_confirmation=e,type:`password`,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1})]),i(`div`,H,[e(n(E),{type:`submit`,disabled:n($).processing},{default:u(()=>[n($).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):h(``,!0),p[9]||=t(` Passwort ändern `,-1)]),_:1},8,[`disabled`])])],32)]),_:1})):h(``,!0)])])]),_:1}))}};export{U as default}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProfileBirthday-zCmMKl8D.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-Dy5FbYkt.js","assets/app-BXGstlVh.css","assets/dist-CleIz2GP.js","assets/AppIcon-SVMShh8s.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/FormField-BcJMyuzX.js","assets/button-SRYY3-ko.js","assets/NativeSelect-BBbvK4oZ.js","assets/Panel-DF-wChKt.js","assets/chevron-right-DR4LjgDm.js"])))=>i.map(i=>d[i]); +import{D as e,E as t,O as ee,On as n,Zn as r,_ as i,b as a,bt as o,et as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,wt as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as _,o as v,r as y}from"./app-Dy5FbYkt.js";import{A as b,j as x}from"./dist-CleIz2GP.js";import{b as te}from"./AppIcon-SVMShh8s.js";import{t as S}from"./AppLayout-X0y7XSjx.js";import{o as C}from"./http-9R3L4KBg.js";import{t as w}from"./trash-3XeUxfQJ.js";import{t as T}from"./FormField-BcJMyuzX.js";import{t as E}from"./button-SRYY3-ko.js";import{t as D}from"./Panel-DF-wChKt.js";import{t as O}from"./Input-CgjHXzkf.js";import{t as k}from"./Textarea-DWpyL-nk.js";var A=x({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`}]]}),j={class:`grid gap-6 lg:grid-cols-12`},M={class:`lg:col-span-4`},N={class:`flex flex-col items-center text-center`},P={class:`mt-5 flex flex-wrap justify-center gap-2`},F={key:0,class:`mt-3 text-[13px] text-destructive`},I={class:`grid content-start gap-6 lg:col-span-8`},L={class:`grid gap-5 sm:grid-cols-2`},R={key:0,class:`grid gap-5 border-t pt-5`},z={class:`grid gap-5 sm:grid-cols-2`},B={class:`flex justify-end border-t pt-5`},V={class:`grid gap-5 sm:grid-cols-2`},H={class:`flex justify-end border-t pt-5`},U={__name:`Edit`,props:{profile:{type:Object,required:!0},managed:{type:Array,default:()=>[]},customFields:{type:Array,default:()=>[]},sections:{type:Array,default:()=>[]}},setup(x){let U=x,W=Object.fromEntries(Object.entries(Object.assign({"../../../../plugins-core/birthdays/resources/js/profile/ProfileBirthday.vue":()=>v(()=>import(`./ProfileBirthday-zCmMKl8D.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))})).map(([e,t])=>[`${e.match(/plugins-core\/([^/]+)\//)[1]}::${e.split(`/`).pop().replace(`.vue`,``)}`,ee(t)])),G=e=>U.managed.includes(e),K=y({first_name:U.profile.first_name??``,last_name:U.profile.last_name??``,email:U.profile.email,job_title:U.profile.job_title??``,department:U.profile.department??``,location:U.profile.location??``,phone:U.profile.phone??``,mobile:U.profile.mobile??``,about:U.profile.about??``,custom_fields:Object.fromEntries(U.customFields.map(e=>[e.key,e.value??``]))}),q={email:`email`,phone:`tel`,url:`url`,date:`date`};function J(e){let t=[];return e.managed?t.push(`Wird aus Microsoft Entra ID übernommen.`):e.readonly&&t.push(`Wird von der Personalverwaltung gepflegt.`),e.restricted&&t.push(`Nur für Sie und die Personalverwaltung sichtbar.`),e.help&&t.push(e.help),t.join(` `)}function Y(){K.put(`/profil`,{preserveScroll:!0,onSuccess:()=>{K.defaults(),C.success(`Profil gespeichert`)}})}let X=[{key:`first_name`,label:`Vorname`,autocomplete:`given-name`},{key:`last_name`,label:`Nachname`,autocomplete:`family-name`},{key:`email`,label:`E-Mail-Adresse`,type:`email`,autocomplete:`email`,wide:!0},{key:`job_title`,label:`Funktion`,autocomplete:`organization-title`},{key:`department`,label:`Abteilung`},{key:`location`,label:`Standort`},{key:`phone`,label:`Telefon`,type:`tel`,autocomplete:`tel`},{key:`mobile`,label:`Mobil`,type:`tel`}],Z=p(null),Q=y({avatar:null});function ne(e){let t=e.target.files?.[0];t&&(Q.avatar=t,Q.post(`/profil/bild`,{preserveScroll:!0,forceFormData:!0,onSuccess:()=>C.success(`Profilbild aktualisiert`),onFinish:()=>{e.target.value=``}}))}function re(){_.delete(`/profil/bild`,{preserveScroll:!0,onSuccess:()=>C.success(`Profilbild entfernt`)})}let $=y({current_password:``,password:``,password_confirmation:``});function ie(){$.put(`/user/password`,{preserveScroll:!0,errorBag:`updatePassword`,onSuccess:()=>{$.reset(),C.success(`Passwort geändert`)}})}return(ee,p)=>(c(),f(S,{title:`Profil bearbeiten`},{default:u(()=>[p[10]||=i(`h1`,{class:`mb-6 text-2xl font-semibold tracking-tight`},`Profil bearbeiten`,-1),i(`div`,j,[i(`div`,M,[e(D,{title:`Profilbild`},{default:u(()=>[i(`div`,N,[e(te,{person:x.profile,class:`size-32 text-3xl`},null,8,[`person`]),i(`input`,{ref_key:`avatarInput`,ref:Z,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`hidden`,onChange:ne},null,544),i(`div`,P,[e(n(E),{variant:`outline`,disabled:n(Q).processing,onClick:p[0]||=e=>Z.value?.click()},{default:u(()=>[n(Q).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):(c(),f(n(A),{key:1})),t(` `+d(x.profile.avatar_url?`Bild ändern`:`Bild hochladen`),1)]),_:1},8,[`disabled`]),x.profile.avatar_url?(c(),f(n(E),{key:0,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:re},{default:u(()=>[e(n(w)),p[5]||=t(` Entfernen `,-1)]),_:1})):h(``,!0)]),n(Q).errors.avatar?(c(),a(`p`,F,d(n(Q).errors.avatar),1)):h(``,!0),p[6]||=i(`p`,{class:`mt-3 text-[13px] text-muted-foreground`},`JPG, PNG oder WebP, höchstens 8 MB. Das Bild wird quadratisch zugeschnitten.`,-1)])]),_:1})]),i(`div`,I,[e(D,{title:`Persönliche Angaben`},{default:u(()=>[i(`form`,{class:`grid gap-5`,onSubmit:g(Y,[`prevent`])},[i(`div`,L,[(c(),a(l,null,o(X,t=>e(T,{id:t.key,key:t.key,label:t.label,error:n(K).errors[t.key],hint:G(t.key)?`Wird aus Microsoft Entra ID übernommen.`:``,class:r({"sm:col-span-2":t.wide})},{default:u(()=>[e(n(O),{id:t.key,modelValue:n(K)[t.key],"onUpdate:modelValue":e=>n(K)[t.key]=e,type:t.type??`text`,autocomplete:t.autocomplete,disabled:G(t.key),"aria-invalid":!!n(K).errors[t.key]},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`autocomplete`,`disabled`,`aria-invalid`])]),_:2},1032,[`id`,`label`,`error`,`hint`,`class`])),64)),e(T,{id:`about`,label:`Über mich`,error:n(K).errors.about,hint:`Aufgaben, Themen, bei denen man Sie ansprechen kann.`,class:`sm:col-span-2`},{default:u(()=>[e(n(k),{id:`about`,modelValue:n(K).about,"onUpdate:modelValue":p[1]||=e=>n(K).about=e,rows:`4`,maxlength:`2000`},null,8,[`modelValue`])]),_:1},8,[`error`])]),x.customFields.length?(c(),a(`div`,R,[p[7]||=i(`h3`,{class:`text-sm font-semibold`},`Weitere Angaben`,-1),i(`div`,z,[(c(!0),a(l,null,o(x.customFields,e=>(c(),f(T,{id:`custom-${e.key}`,key:e.key,label:e.label,error:n(K).errors[`custom_fields.${e.key}`],hint:J(e),class:r({"sm:col-span-2":e.type===`textarea`})},{default:u(()=>[e.type===`textarea`?(c(),f(n(k),{key:0,id:`custom-${e.key}`,modelValue:n(K).custom_fields[e.key],"onUpdate:modelValue":t=>n(K).custom_fields[e.key]=t,rows:`3`,disabled:e.readonly},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`disabled`])):(c(),f(n(O),{key:1,id:`custom-${e.key}`,modelValue:n(K).custom_fields[e.key],"onUpdate:modelValue":t=>n(K).custom_fields[e.key]=t,type:q[e.type]??`text`,disabled:e.readonly,"aria-invalid":!!n(K).errors[`custom_fields.${e.key}`]},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`disabled`,`aria-invalid`]))]),_:2},1032,[`id`,`label`,`error`,`hint`,`class`]))),128))])])):h(``,!0),i(`div`,B,[e(n(E),{type:`submit`,disabled:n(K).processing||!n(K).isDirty},{default:u(()=>[n(K).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):h(``,!0),p[8]||=t(` Speichern `,-1)]),_:1},8,[`disabled`])])],32)]),_:1}),(c(!0),a(l,null,o(x.sections,e=>(c(),f(m(n(W)[e.component]),s({key:e.key},{ref_for:!0},e.props),null,16))),128)),x.profile.has_password?(c(),f(D,{key:0,title:`Passwort ändern`},{default:u(()=>[i(`form`,{class:`grid gap-5`,onSubmit:g(ie,[`prevent`])},[e(T,{id:`current_password`,label:`Aktuelles Passwort`,error:n($).errors.current_password,class:`sm:max-w-sm`},{default:u(()=>[e(n(O),{id:`current_password`,modelValue:n($).current_password,"onUpdate:modelValue":p[2]||=e=>n($).current_password=e,type:`password`,autocomplete:`current-password`},null,8,[`modelValue`])]),_:1},8,[`error`]),i(`div`,V,[e(T,{id:`password`,label:`Neues Passwort`,error:n($).errors.password,hint:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:u(()=>[e(n(O),{id:`password`,modelValue:n($).password,"onUpdate:modelValue":p[3]||=e=>n($).password=e,type:`password`,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(T,{id:`password_confirmation`,label:`Neues Passwort wiederholen`},{default:u(()=>[e(n(O),{id:`password_confirmation`,modelValue:n($).password_confirmation,"onUpdate:modelValue":p[4]||=e=>n($).password_confirmation=e,type:`password`,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1})]),i(`div`,H,[e(n(E),{type:`submit`,disabled:n($).processing},{default:u(()=>[n($).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):h(``,!0),p[9]||=t(` Passwort ändern `,-1)]),_:1},8,[`disabled`])])],32)]),_:1})):h(``,!0)])])]),_:1}))}};export{U as default}; \ No newline at end of file diff --git a/public/build/assets/Editor-BbW_ap54.js b/public/build/assets/Editor-BbW_ap54.js deleted file mode 100644 index b74e8a26..00000000 --- a/public/build/assets/Editor-BbW_ap54.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,D as t,E as n,Ft as r,Ht as i,J as a,On as o,St as s,Yt as c,Zn as l,_ as u,b as d,bt as f,ct as p,g as m,gn as h,gt as g,it as _,mt as v,o as y,qt as b,tr as x,v as S,vn as C,wt as w,y as T}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as E,x as ee,y as D}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as O,n as k,t as te}from"./app-CIvn5Z1l.js";import{A as ne,j as A}from"./dist-CleIz2GP.js";import{B as j,H as re,I as ie,X as M,_ as ae,b as oe,c as se,d as ce,et as N,f as le,g as ue,h as de,it as P,m as fe,n as pe,nt as F,p as I,r as L,rt as R,t as z,u as me,v as he,y as ge,z as _e}from"./AppIcon-BVHFLm12.js";import{n as ve,t as ye}from"./arrow-up-B8ttChMk.js";import{t as be}from"./arrow-left-nZZEveo4.js";import{a as xe,i as Se,n as Ce,r as we}from"./RichTextEditor-CSdBGrkn.js";import{t as Te}from"./calendar-clock-CswFc-uh.js";import{C as Ee,S as De,_ as B,a as Oe,b as ke,i as Ae,n as je,o as V,r as Me,t as H}from"./http-9R3L4KBg.js";import{n as U,t as Ne}from"./minus-CbZH2mo0.js";import{a as Pe,i as W,n as Fe,o as Ie,r as Le,t as Re}from"./vue-draggable-plus-qBP-KoW2.js";import{a as ze,i as Be,n as Ve,r as He,t as G}from"./upload-CsKboDGl.js";import{t as K}from"./eye-off-DWbaLHNt.js";import{t as Ue}from"./eye-DcTo_il4.js";import{t as We}from"./lock-4X8Kfof0.js";import{t as Ge}from"./message-square-warning-CUD7Iy66.js";import{t as Ke}from"./play-_hM1KTvn.js";import{t as q}from"./plus-cKZvz4wH.js";import{t as qe}from"./send-BevoJaJI.js";import{t as Je}from"./smartphone-2VTLQVgX.js";import{t as Ye}from"./trash-3XeUxfQJ.js";import{n as Xe,t as J}from"./DialogHeader-ByFe3nCF.js";import{t as Ze}from"./Switch-BaFVWLMv.js";import{t as Y}from"./button-SRYY3-ko.js";import{t as Qe}from"./NativeSelect-BBbvK4oZ.js";import{t as X}from"./Input-CgjHXzkf.js";import{t as $e}from"./Textarea-DWpyL-nk.js";import{i as et,n as tt,r as Z,t as Q}from"./dialog-bBqX5pN5.js";import{n as nt,t as rt}from"./PageContent-DplopdM5.js";import{t as it}from"./NewPageDialog-BbIzQTb2.js";var at=A({name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]}),ot=A({name:`cloud-alert`,size:24,node:[[`path`,{d:`M12 12v4`,key:`tww15h`}],[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.128 16.949A7 7 0 1 1 15.71 8h1.79a1 1 0 0 1 0 9h-1.642`,key:`1namsd`}]]}),st=A({name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]}),ct=A({name:`contact`,size:24,node:[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2`,key:`k82dct`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]}),lt=A({name:`gallery-horizontal-end`,size:24,node:[[`path`,{d:`M2 7v10`,key:`a2pl2d`}],[`path`,{d:`M6 5v14`,key:`1kq3d7`}],[`rect`,{width:`12`,height:`18`,x:`10`,y:`3`,rx:`2`,key:`13i7bc`}]]}),ut=A({name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]}),dt=A({name:`list-collapse`,size:24,node:[[`path`,{d:`M10 5h11`,key:`1hkqpe`}],[`path`,{d:`M10 12h11`,key:`6m4ad9`}],[`path`,{d:`M10 19h11`,key:`14g2nv`}],[`path`,{d:`m3 10 3-3-3-3`,key:`i7pm08`}],[`path`,{d:`m3 20 3-3-3-3`,key:`20gx1n`}]]}),ft=A({name:`mouse-pointer-click`,size:24,node:[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]}),pt=A({name:`move-vertical`,size:24,node:[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m8 18 4 4 4-4`,key:`bh5tu3`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}]]}),mt=A({name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]}),ht=A({name:`square-dashed`,size:24,node:[[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M21 14v1`,key:`169vum`}]],aliases:[`box-select`]}),gt=A({name:`table`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]}),_t=A({name:`tablet`,size:24,node:[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`,key:`76otgf`}],[`line`,{x1:`12`,x2:`12.01`,y1:`18`,y2:`18`,key:`1dp563`}]]}),vt={"square-dashed":ht,"columns-3":st,"panel-top":mt,"list-collapse":dt,"message-square-warning":Ge,heading:W,text:Fe,quote:Se,"mouse-pointer-click":ft,"list-checks":ke,table:gt,minus:Ne,"move-vertical":pt,image:M,images:ut,play:Ke,panorama:lt,contact:ct,"file-down":N,"folder-tree":He,newspaper:j,"calendar-days":R,"clipboard-list":F,cake:P};function yt(e){return vt[e]??at}function bt(){return Math.random().toString(36).slice(2,8)+Date.now().toString(36).slice(-6)}function xt(e){return JSON.parse(JSON.stringify(e))}function St(e,t){return e.container?e.key===`columns`?(t.layout??`1-1`).split(`-`).length:e.key===`tabs`?2:e.key===`accordion`?3:e.container.min:0}function Ct(e){let t=xt(e.defaults??{}),n={id:bt(),type:e.key,data:t};return e.container&&(n.items=Array.from({length:St(e,t)},(t,n)=>({id:bt(),title:e.container.titled?`${e.container.label} ${n+1}`:void 0,blocks:[]}))),n}function wt(e){let t=xt(e),n=e=>{e.id=bt(),(e.items??[]).forEach(e=>{e.id=bt(),e.blocks.forEach(n)})};return n(t),t}function $(e,t,n=null){for(let r=0;rTt(e.blocks,t))}function Et(e){let t=(e.data.layout??`1-1`).split(`-`).length;for(;e.items.lengtht){let n=e.items.splice(t).flatMap(e=>e.blocks);e.items[t-1].blocks.push(...n)}}var Dt={class:`grid gap-4`},Ot={class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},kt=[`title`,`disabled`,`onClick`],At={class:`truncate`},jt={__name:`BlockPalette`,props:{compact:{type:Boolean,default:!1}},emits:[`pick`],setup(e,{emit:n}){let r=n,i=a(`pagebuilder:editor`),s=m(()=>Object.entries(i.groups).map(([e,t])=>({key:e,label:t,types:Object.values(i.types).filter(t=>t.group===e)})).filter(e=>e.types.length));return(n,a)=>(v(),d(`div`,Dt,[(v(!0),d(y,null,f(s.value,n=>(v(),d(`section`,{key:n.key},[u(`h3`,Ot,x(n.label),1),t(o(Re),{"model-value":n.types,group:{name:`pagebuilder`,pull:`clone`,put:!1},clone:e=>o(Ct)(e),sort:!1,disabled:e.compact||o(i).readOnly.value,class:`grid grid-cols-2 gap-2`},{default:b(()=>[(v(!0),d(y,null,f(n.types,t=>(v(),d(`button`,{key:t.key,type:`button`,class:l([`flex items-center gap-2 rounded-md border bg-card px-2.5 py-2 text-left text-[13px] font-medium transition-colors hover:border-brand-300 hover:bg-brand-soft/60`,e.compact?``:`cursor-grab active:cursor-grabbing`]),title:t.description||t.label,disabled:o(i).readOnly.value,onClick:e=>r(`pick`,t)},[(v(),S(w(o(yt)(t.icon)),{class:`size-4 shrink-0 text-brand-text`})),u(`span`,At,x(t.label),1)],10,kt))),128))]),_:2},1032,[`model-value`,`clone`,`disabled`])]))),128))]))}},Mt={class:`grid gap-1.5`},Nt=[`for`],Pt=[`for`],Ft={key:8,class:`grid gap-2`},It={class:`grid max-h-56 grid-cols-6 gap-1.5 overflow-y-auto`},Lt=[`title`,`aria-pressed`,`onClick`],Rt={key:0,class:`col-span-6 py-2 text-center text-xs text-muted-foreground`},zt={key:9,class:`grid gap-2`},Bt={key:0,class:`relative overflow-hidden rounded-md border bg-muted`},Vt=[`src`],Ht=[`disabled`],Ut={key:10,class:`grid gap-2`},Wt={key:0,class:`grid gap-1`},Gt={class:`min-w-0 flex-1 truncate text-[13px]`},Kt=[`onClick`],qt=[`onClick`],Jt={class:`relative`},Yt={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-60 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},Xt=[`onClick`],Zt={class:`min-w-0`},Qt={class:`block truncate font-medium`},$t={class:`block truncate text-xs text-muted-foreground`},en={key:11,class:`grid gap-2`},tn={class:`overflow-x-auto rounded-md border`},nn={class:`w-full text-[13px]`},rn=[`value`,`aria-label`,`onInput`],an={class:`w-7 p-0 text-center`},on=[`onClick`],sn=[`onClick`],cn={class:`flex gap-2`},ln={key:12,class:`grid gap-2`},un=[`open`],dn={class:`flex cursor-pointer list-none items-center gap-2 px-3 py-2 text-[13px] font-medium`},fn={class:`min-w-0 flex-1 truncate`},pn=[`onClick`],mn=[`onClick`],hn=[`onClick`],gn={class:`grid gap-3 border-t px-3 py-3`},_n={key:13,class:`grid gap-2`},vn={key:0,class:`grid gap-1`},yn={class:`min-w-0 flex-1 truncate`},bn={key:0,class:`shrink-0 text-xs text-muted-foreground`},xn=[`onClick`],Sn=[`onClick`],Cn=[`disabled`],wn={key:14,class:`text-xs text-muted-foreground`},Tn={__name:`FieldInput`,props:e({field:{type:Object,required:!0},id:{type:String,required:!0}},{modelValue:{default:null},modelModifiers:{}}),emits:e([`image-uploaded`],[`update:modelValue`]),setup(e,{emit:c}){let p=e,h=r(e,`modelValue`),g=a(`pagebuilder:editor`),_=c,b=C(!1),w=C(null);async function ee(e){let t=e.target.files?.[0];if(e.target.value=``,t){b.value=!0;try{let e=await g.uploadImage(t);h.value=e.path,_(`image-uploaded`,e)}catch(e){V.error(e.fieldErrors?.image??e.message)}finally{b.value=!1}}}let D=C(``),O=C([]),k=g.peopleCache,te;if(i(D,e=>{if(clearTimeout(te),e.trim().length<2){O.value=[];return}te=setTimeout(async()=>{let t=await H.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`);t.people.forEach(e=>k[e.id]=e),O.value=t.people.filter(e=>!(h.value??[]).includes(e.id))},250)}),p.field.type===`people`&&(h.value??[]).some(e=>!k[e])){let e=h.value.filter(e=>!k[e]);H.get(`/personen/suche?${e.map(e=>`ids[]=${e}`).join(`&`)}`).then(e=>e.people.forEach(e=>k[e.id]=e))}function A(e){h.value=[...h.value??[],e.id],D.value=``,O.value=[]}function j(e,t,n){let r=t+n;if(r<0||r>=e.length)return;let i=[...e];[i[t],i[r]]=[i[r],i[t]],h.value=i}function re(e){h.value=h.value.filter((t,n)=>n!==e)}function ie(){let e=Object.fromEntries(p.field.fields.map(e=>[e.name,structuredClone(e.default??(e.type===`toggle`?!1:e.type===`repeater`?[]:``))]));h.value=[...h.value??[],e]}let M=m(()=>h.value??[[``]]);function ae(e,t,n){let r=M.value.map(e=>[...e]);r[e][t]=n,h.value=r}function se(){h.value=[...M.value,Array(M.value[0]?.length??1).fill(``)]}function ce(){h.value=M.value.map(e=>[...e,``])}function le(e){M.value.length>1&&(h.value=M.value.filter((t,n)=>n!==e))}function ue(e){(M.value[0]?.length??1)>1&&(h.value=M.value.map(t=>t.filter((t,n)=>n!==e)))}let de=C(null),P=m(()=>Object.fromEntries(g.files.value.map(e=>[e.id,e])));async function fe(e){let t=[...e.target.files??[]];e.target.value=``,b.value=!0;try{for(let e of t){let t=await g.uploadFile(e);h.value=[...h.value??[],t.id]}}catch(e){V.error(e.fieldErrors?.file??e.message)}finally{b.value=!1}}let F=m(()=>g.files.value.filter(e=>!(h.value??[]).includes(e.id))),I=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,R=C(``),me=m(()=>{let e=R.value.trim().toLowerCase(),t=(p.field.choices??[]).map(e=>({value:e.value,label:e.label}));if(!e)return h.value&&!t.some(e=>e.value===h.value)?[{value:h.value,label:h.value},...t]:t;let n=t.filter(t=>t.label.toLowerCase().includes(e)||t.value.includes(e)),r=pe.value?Object.keys(pe.value.icons).filter(t=>t.includes(e)&&!n.some(e=>e.value===t)):[];return[...n,...r.map(e=>({value:e,label:e}))].slice(0,60)});return i(R,e=>e.trim()&&L()),(r,i)=>{let a=s(`FieldInput`,!0);return v(),d(`div`,Mt,[e.field.type===`toggle`?T(``,!0):(v(),d(`label`,{key:0,for:e.id,class:`text-[13px] font-medium`},x(e.field.label),9,Nt)),e.field.type===`text`?(v(),S(o(X),{key:1,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[0]||=e=>h.value=e,maxlength:e.field.max,placeholder:e.field.placeholder??``},null,8,[`id`,`modelValue`,`maxlength`,`placeholder`])):e.field.type===`url`?(v(),S(o(X),{key:2,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[1]||=e=>h.value=e,type:`text`,inputmode:`url`,placeholder:`https://… oder /seiten/…`},null,8,[`id`,`modelValue`])):e.field.type===`textarea`?(v(),S(o($e),{key:3,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[2]||=e=>h.value=e,maxlength:e.field.max,rows:`3`},null,8,[`id`,`modelValue`,`maxlength`])):e.field.type===`html`?(v(),S(Ce,{key:4,modelValue:h.value,"onUpdate:modelValue":i[3]||=e=>h.value=e,bordered:``,"min-height":`[&_.tiptap]:min-h-24`},null,8,[`modelValue`])):e.field.type===`number`?(v(),S(o(X),{key:5,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[4]||=e=>h.value=e,modelModifiers:{number:!0},type:`number`,min:e.field.min,max:e.field.max},null,8,[`id`,`modelValue`,`min`,`max`])):e.field.type===`select`?(v(),S(Qe,{key:6,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[5]||=e=>h.value=e,options:e.field.choices},null,8,[`id`,`modelValue`,`options`])):e.field.type===`toggle`?(v(),d(`label`,{key:7,for:e.id,class:`flex items-center justify-between gap-3 py-0.5 text-[13px] font-medium`},[n(x(e.field.label)+` `,1),t(o(Ze),{id:e.id,modelValue:h.value,"onUpdate:modelValue":i[6]||=e=>h.value=e},null,8,[`id`,`modelValue`])],8,Pt)):e.field.type===`icon`?(v(),d(`div`,Ft,[t(o(X),{modelValue:R.value,"onUpdate:modelValue":i[7]||=e=>R.value=e,type:`search`,placeholder:`Alle Symbole durchsuchen (englisch, z. B. calendar)`,class:`h-8 text-[13px]`},null,8,[`modelValue`]),u(`div`,It,[(v(!0),d(y,null,f(me.value,e=>(v(),d(`button`,{key:e.value,type:`button`,class:l([`grid aspect-square place-items-center rounded-md border transition-colors`,h.value===e.value?`border-brand-400 bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":h.value===e.value,onClick:t=>h.value=e.value},[t(z,{name:e.value,class:`size-4`},null,8,[`name`])],10,Lt))),128)),R.value&&!me.value.length?(v(),d(`p`,Rt,`Kein Symbol gefunden.`)):T(``,!0)])])):e.field.type===`image`?(v(),d(`div`,zt,[h.value?(v(),d(`div`,Bt,[u(`img`,{src:o(g).imageUrl(h.value),alt:``,class:`aspect-video w-full object-cover`},null,8,Vt),u(`button`,{type:`button`,class:`absolute top-1.5 right-1.5 grid size-7 place-items-center rounded-md bg-card/90 shadow-sm hover:bg-card`,title:`Bild entfernen`,onClick:i[8]||=e=>h.value=null},[t(o(B),{class:`size-4`})])])):T(``,!0),u(`button`,{type:`button`,class:`flex h-9 items-center justify-center gap-2 rounded-md border border-dashed text-[13px] font-medium text-muted-foreground hover:border-brand-300 hover:text-foreground`,disabled:b.value,onClick:i[9]||=e=>w.value?.click()},[b.value?(v(),S(o(ne),{key:0,class:`size-4 animate-spin`})):(v(),S(o(xe),{key:1,class:`size-4`})),n(` `+x(h.value?`Anderes Bild wählen`:`Bild hochladen`),1)],8,Ht),u(`input`,{ref_key:`imageInput`,ref:w,type:`file`,accept:`image/jpeg,image/png,image/webp,image/gif`,class:`hidden`,onChange:ee},null,544)])):e.field.type===`people`?(v(),d(`div`,Ut,[(h.value??[]).length?(v(),d(`ul`,Wt,[(v(!0),d(y,null,f(h.value,(e,n)=>(v(),d(`li`,{key:e,class:`flex items-center gap-2 rounded-md border bg-card px-2 py-1.5`},[o(k)[e]?(v(),S(oe,{key:0,person:o(k)[e],class:`size-7 text-[10px]`},null,8,[`person`])):T(``,!0),u(`span`,Gt,x(o(k)[e]?.name??`…`),1),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>j(h.value,n,-1)},[t(o(ye),{class:`size-3.5`})],8,Kt),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>re(n)},[t(o(B),{class:`size-3.5`})],8,qt)]))),128))])):T(``,!0),u(`div`,Jt,[t(o(_e),{class:`pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground`}),t(o(X),{id:e.id,modelValue:D.value,"onUpdate:modelValue":i[10]||=e=>D.value=e,class:`pl-8`,placeholder:`Person suchen …`,autocomplete:`off`},null,8,[`id`,`modelValue`]),O.value.length?(v(),d(`ul`,Yt,[(v(!0),d(y,null,f(O.value,e=>(v(),d(`li`,{key:e.id},[u(`button`,{type:`button`,class:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-[13px] hover:bg-accent`,onClick:t=>A(e)},[t(oe,{person:e,class:`size-7 text-[10px]`},null,8,[`person`]),u(`span`,Zt,[u(`span`,Qt,x(e.name),1),u(`span`,$t,x(e.job_title),1)])],8,Xt)]))),128))])):T(``,!0)])])):e.field.type===`table`?(v(),d(`div`,en,[u(`div`,tn,[u(`table`,nn,[u(`tbody`,null,[(v(!0),d(y,null,f(M.value,(e,n)=>(v(),d(`tr`,{key:n,class:`border-b last:border-0`},[(v(!0),d(y,null,f(e,(e,t)=>(v(),d(`td`,{key:t,class:`border-r p-0 last:border-r-0`},[u(`input`,{value:e,class:`h-8 w-full min-w-20 bg-transparent px-2 focus:bg-brand-soft/50 focus:outline-none`,"aria-label":`Zeile ${n+1}, Spalte ${t+1}`,onInput:e=>ae(n,t,e.target.value)},null,40,rn)]))),128)),u(`td`,an,[u(`button`,{type:`button`,class:`grid size-7 place-items-center text-muted-foreground hover:text-destructive`,title:`Zeile entfernen`,onClick:e=>le(n)},[t(o(B),{class:`size-3.5`})],8,on)])]))),128)),u(`tr`,null,[(v(!0),d(y,null,f(M.value[0],(e,n)=>(v(),d(`td`,{key:n,class:`p-0 text-center`},[u(`button`,{type:`button`,class:`mx-auto grid size-7 place-items-center text-muted-foreground hover:text-destructive`,title:`Spalte entfernen`,onClick:e=>ue(n)},[t(o(B),{class:`size-3.5`})],8,sn)]))),128)),i[13]||=u(`td`,null,null,-1)])])])]),u(`div`,cn,[u(`button`,{type:`button`,class:`inline-flex items-center gap-1 text-[13px] font-medium text-brand-text hover:underline`,onClick:se},[t(o(q),{class:`size-3.5`}),i[14]||=n(` Zeile`,-1)]),u(`button`,{type:`button`,class:`inline-flex items-center gap-1 text-[13px] font-medium text-brand-text hover:underline`,onClick:ce},[t(o(q),{class:`size-3.5`}),i[15]||=n(` Spalte`,-1)])])])):e.field.type===`repeater`?(v(),d(`div`,ln,[(v(!0),d(y,null,f(h.value??[],(n,r)=>(v(),d(`details`,{key:r,class:`group rounded-md border bg-card`,open:r===(h.value??[]).length-1},[u(`summary`,dn,[u(`span`,fn,x(n.label||n.title||n.alt||`${e.field.itemLabel} ${r+1}`),1),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:E(e=>j(h.value,r,-1),[`prevent`])},[t(o(ye),{class:`size-3.5`})],8,pn),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:E(e=>j(h.value,r,1),[`prevent`])},[t(o(ve),{class:`size-3.5`})],8,mn),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:E(e=>re(r),[`prevent`])},[t(o(Ye),{class:`size-3.5`})],8,hn)]),u(`div`,gn,[(v(!0),d(y,null,f(e.field.fields,t=>(v(),S(a,{id:`${e.id}-${r}-${t.name}`,key:t.name,modelValue:n[t.name],"onUpdate:modelValue":e=>n[t.name]=e,field:t},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`field`]))),128))])],8,un))),128)),(h.value??[]).length(v(),d(`li`,{key:e,class:`flex items-center gap-2 rounded-md border bg-card px-2 py-1.5 text-[13px]`},[t(o(N),{class:`size-4 shrink-0 text-muted-foreground`}),u(`span`,yn,x(P.value[e]?.name??`Datei nicht mehr vorhanden`),1),P.value[e]?(v(),d(`span`,bn,x(I(P.value[e].size)),1)):T(``,!0),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>j(h.value,n,-1)},[t(o(ye),{class:`size-3.5`})],8,xn),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>re(n)},[t(o(B),{class:`size-3.5`})],8,Sn)]))),128))])):T(``,!0),u(`button`,{type:`button`,class:`flex h-9 items-center justify-center gap-2 rounded-md border border-dashed text-[13px] font-medium text-muted-foreground hover:border-brand-300 hover:text-foreground`,disabled:b.value,onClick:i[11]||=e=>de.value?.click()},[b.value?(v(),S(o(ne),{key:0,class:`size-4 animate-spin`})):(v(),S(o(G),{key:1,class:`size-4`})),i[16]||=n(` Dateien hochladen `,-1)],8,Cn),u(`input`,{ref_key:`fileInput`,ref:de,type:`file`,multiple:``,class:`hidden`,onChange:fe},null,544),F.value.length?(v(),S(Qe,{key:1,"model-value":null,options:F.value.map(e=>({value:e.id,label:e.name})),placeholder:`Bereits hochgeladene Datei wählen …`,"onUpdate:modelValue":i[12]||=e=>e&&(h.value=[...h.value??[],e])},null,8,[`options`])):T(``,!0)])):T(``,!0),e.field.help?(v(),d(`p`,wn,x(e.field.help),1)):T(``,!0)])}}},En={key:0,class:`grid gap-5`},Dn={class:`flex items-start gap-3`},On={class:`grid size-9 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},kn={class:`min-w-0`},An={class:`font-semibold`},jn={key:0,class:`text-xs text-muted-foreground`},Mn={key:0,class:`rounded-md bg-muted px-3 py-2 text-xs text-muted-foreground`},Nn={key:1,class:`grid gap-2`},Pn={class:`text-[13px] font-medium`},Fn={key:1,class:`flex-1 text-[13px]`},In=[`onClick`],Ln=[`onClick`],Rn=[`disabled`,`onClick`],zn=[`open`],Bn={class:`flex cursor-pointer items-center gap-2 px-3 py-2 text-[13px] font-medium`},Vn={key:0,class:`ml-auto rounded bg-amber-100 px-1.5 py-0.5 text-[11px] text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},Hn={class:`grid gap-3 border-t px-3 py-3`},Un={class:`mb-1 text-xs font-semibold text-muted-foreground`},Wn={class:`grid max-h-36 gap-0.5 overflow-y-auto`},Gn=[`checked`,`onChange`],Kn={__name:`BlockSettings`,props:{block:{type:Object,required:!0}},setup(e){let r=e,s=a(`pagebuilder:editor`),c=m(()=>s.types[r.block.type]),l=m(()=>(c.value?.fields??[]).filter(e=>e.type!==`html`));i(()=>r.block.data.layout,()=>{r.block.type===`columns`&&Et(r.block)});function p(){r.block.items.push({id:bt(),title:`${c.value.container.label} ${r.block.items.length+1}`,blocks:[]})}function h(e,t){let n=r.block.items,i=e+t;i>=0&&ir.block.visibility??{}),b=m(()=>Object.values(_.value).some(e=>e?.length));function C(e,t){let n=new Set(_.value[e]??[]);n.has(t)?n.delete(t):n.add(t),r.block.visibility={..._.value,[e]:[...n]}}let E=m(()=>[{key:`role`,label:`Rollen`,options:s.audienceOptions.role},{key:`department`,label:`Abteilungen`,options:s.audienceOptions.department.map(e=>({value:e,label:e}))},{key:`location`,label:`Standorte`,options:s.audienceOptions.location.map(e=>({value:e,label:e}))}].filter(e=>e.options.length));return(r,i)=>c.value?(v(),d(`div`,En,[u(`header`,Dn,[u(`span`,On,[(v(),S(w(o(yt)(c.value.icon)),{class:`size-4.5`}))]),u(`div`,kn,[u(`h2`,An,x(c.value.label),1),c.value.description?(v(),d(`p`,jn,x(c.value.description),1)):T(``,!0)])]),c.value.fields.some(e=>e.type===`html`)?(v(),d(`p`,Mn,` Den Text bearbeiten Sie direkt im Block. Markieren Sie Text für Fettdruck, Links und Listen. `)):T(``,!0),(v(!0),d(y,null,f(l.value,t=>(v(),S(Tn,{id:`field-${e.block.id}-${t.name}`,key:`${e.block.id}-${t.name}`,modelValue:e.block.data[t.name],"onUpdate:modelValue":n=>e.block.data[t.name]=n,field:t},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`field`]))),128)),c.value.container&&c.value.container.max>1&&c.value.key!==`columns`?(v(),d(`section`,Nn,[u(`h3`,Pn,x(c.value.container.label)+`s`,1),(v(!0),d(y,null,f(e.block.items,(n,r)=>(v(),d(`div`,{key:n.id,class:`flex items-center gap-1`},[c.value.container.titled?(v(),S(o(X),{key:0,modelValue:n.title,"onUpdate:modelValue":e=>n.title=e,class:`h-8`,"aria-label":`Titel ${r+1}`,maxlength:`120`},null,8,[`modelValue`,`onUpdate:modelValue`,`aria-label`])):(v(),d(`span`,Fn,x(c.value.container.label)+` `+x(r+1),1)),u(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>h(r,-1)},[t(o(ye),{class:`size-3.5`})],8,In),u(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:e=>h(r,1)},[t(o(ve),{class:`size-3.5`})],8,Ln),u(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded text-destructive hover:bg-destructive/10 disabled:opacity-30`,title:`Entfernen`,disabled:e.block.items.length<=c.value.container.min,onClick:e=>g(r)},[t(o(Ye),{class:`size-3.5`})],8,Rn)]))),128)),e.block.items.length(v(),d(`fieldset`,{key:e.key,class:`grid gap-1`},[u(`legend`,Un,x(e.label),1),u(`div`,Wn,[(v(!0),d(y,null,f(e.options,t=>(v(),d(`label`,{key:t.value,class:`flex items-center gap-2 rounded px-1 py-0.5 text-[13px] hover:bg-accent`},[u(`input`,{type:`checkbox`,class:`size-4 accent-[var(--brand)]`,checked:(_.value[e.key]??[]).includes(t.value),onChange:n=>C(e.key,t.value)},null,40,Gn),n(` `+x(t.label),1)]))),128))])]))),128))])],8,zn)):T(``,!0)])):T(``,!0)}},qn=[`data-block-id`],Jn={class:`pb-handle flex cursor-grab items-center gap-1 rounded px-1 py-0.5 font-medium text-muted-foreground active:cursor-grabbing`,title:`Ziehen zum Verschieben`},Yn={key:2,class:`rounded-md border border-dashed p-4 text-sm text-muted-foreground`},Xn={__name:`EditorBlock`,props:{block:{type:Object,required:!0}},setup(e){let r=e,i=a(`pagebuilder:editor`),s=m(()=>i.types[r.block.type]),c=m(()=>i.selectedId.value===r.block.id),f=m(()=>i.hoveredId.value===r.block.id),p=m(()=>Object.values(r.block.visibility??{}).some(e=>e?.length)),h=m(()=>({...r.block,props:i.previews[r.block.id]??r.block.props}));return(r,a)=>(v(),d(`div`,{class:l([`relative rounded-md outline-offset-4 transition-[outline-color]`,[c.value?`outline-2 outline-brand-500`:f.value?`outline-1 outline-brand-300`:`outline-1 outline-transparent`,s.value?``:`opacity-60`]]),"data-block-id":e.block.id,onClick:a[5]||=E(t=>o(i).select(e.block.id),[`stop`]),onMouseover:a[6]||=E(t=>o(i).hoveredId.value=e.block.id,[`stop`]),onMouseleave:a[7]||=t=>o(i).hoveredId.value===e.block.id&&(o(i).hoveredId.value=null)},[(c.value||f.value)&&!o(i).readOnly.value?(v(),d(`div`,{key:0,class:`absolute -top-3.5 right-2 z-20 flex items-center gap-0.5 rounded-md border bg-card px-1 py-0.5 text-xs shadow-sm`,onClick:a[4]||=E(()=>{},[`stop`])},[u(`span`,Jn,[t(o(Pe),{class:`size-3.5`}),(v(),S(w(o(yt)(s.value?.icon)),{class:`size-3.5`})),n(` `+x(s.value?.label??e.block.type),1)]),p.value?(v(),S(o(K),{key:0,class:`mx-1 size-3.5 text-amber-600`,title:`Nur für bestimmte Personen sichtbar`})):T(``,!0),a[8]||=u(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:a[0]||=t=>o(i).move(e.block.id,-1)},[t(o(U),{class:`size-3.5`})]),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:a[1]||=t=>o(i).move(e.block.id,1)},[t(o(Ee),{class:`size-3.5`})]),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Duplizieren`,onClick:a[2]||=t=>o(i).duplicate(e.block.id)},[t(o(Ie),{class:`size-3.5`})]),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:a[3]||=t=>o(i).remove(e.block.id)},[t(o(Ye),{class:`size-3.5`})])])):T(``,!0),s.value&&o(nt)(s.value.component)?(v(),S(w(o(nt)(s.value.component)),{key:1,block:h.value},null,8,[`block`])):(v(),d(`div`,Yn,` Dieser Block (`+x(e.block.type)+`) ist nicht verfügbar – vermutlich ist das zugehörige Plugin deaktiviert. Er wird nicht angezeigt. `,1))],42,qn))}},Zn={key:0,class:`pointer-events-none text-center text-xs text-muted-foreground`},Qn={__name:`EditorBlockList`,props:{item:{type:Object,required:!0},root:{type:Boolean,default:!1}},setup(e){let r=e,i=a(`pagebuilder:editor`),s=m(()=>r.root||i.containsActive(r.item));return(r,a)=>(v(),d(`div`,{class:l([`grid`,e.root?`gap-6`:`gap-4`])},[t(o(Re),{modelValue:e.item.blocks,"onUpdate:modelValue":a[0]||=t=>e.item.blocks=t,group:{name:`pagebuilder`},handle:`.pb-handle`,animation:150,disabled:o(i).readOnly.value,"ghost-class":`pb-ghost`,class:l([`grid min-h-6`,[e.root?`gap-6`:`gap-4`,e.item.blocks.length?``:`rounded-md border border-dashed border-border bg-muted/40 p-3`]]),onAdd:a[1]||=t=>o(i).select(e.item.blocks[t.newIndex]?.id)},{default:b(()=>[(v(!0),d(y,null,f(e.item.blocks,e=>(v(),S(Xn,{key:e.id,block:e},null,8,[`block`]))),128)),e.item.blocks.length?T(``,!0):(v(),d(`p`,Zn,x(e.root?`Noch keine Inhalte. Blöcke aus der rechten Spalte hierher ziehen oder hinzufügen.`:`Blöcke hierher ziehen`),1))]),_:1},8,[`modelValue`,`disabled`,`class`]),!o(i).readOnly.value&&(s.value||!e.item.blocks.length)?(v(),S(o(Ae),{key:0},{default:b(()=>[t(o(je),{class:`flex h-8 items-center justify-center gap-1.5 rounded-md border border-dashed text-xs font-medium text-muted-foreground transition-colors hover:border-brand-300 hover:bg-brand-soft hover:text-brand-soft-foreground`,onClick:a[2]||=E(()=>{},[`stop`])},{default:b(()=>[t(o(q),{class:`size-3.5`}),a[5]||=n(` Block hinzufügen `,-1)]),_:1}),t(o(Me),{class:`max-h-[70vh] w-[22rem] overflow-y-auto p-3`,align:`center`,onClick:a[4]||=E(()=>{},[`stop`])},{default:b(()=>[t(jt,{compact:``,onPick:a[3]||=t=>o(i).insert(e.item.blocks,e.item.blocks.length,t)})]),_:1})]),_:1})):T(``,!0)],2))}},$n={key:0,class:`rounded-md bg-amber-50 px-3 py-2 text-sm text-amber-900 dark:bg-amber-950/50 dark:text-amber-100`},er={class:`grid gap-2`},tr={class:`flex cursor-pointer items-start gap-3 rounded-md border p-3 has-checked:border-brand-400 has-checked:bg-brand-soft/60`},nr={class:`flex cursor-pointer items-start gap-3 rounded-md border p-3 has-checked:border-brand-400 has-checked:bg-brand-soft/60`},rr={class:`grid flex-1 gap-2`},ir={__name:`PublishDialog`,props:e({scheduledAt:{type:String,default:null}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`publish`],[`update:open`]),setup(e,{emit:a}){let s=e,l=r(e,`open`),f=a,p=C(`now`),m=C(``),h=C(!1);function g(e){let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}`}i(l,e=>{if(e){p.value=`now`;let e=new Date(Date.now()+864e5);e.setHours(7,0,0,0),m.value=g(e),h.value=!1}});async function _(){h.value=!0,f(`publish`,p.value===`later`?new Date(m.value).toISOString():null),setTimeout(()=>h.value=!1,800)}return(e,r)=>(v(),S(o(et),{open:l.value,"onUpdate:open":r[4]||=e=>l.value=e},{default:b(()=>[t(o(Z),{class:`sm:max-w-md`},{default:b(()=>[t(o(J),null,{default:b(()=>[t(o(Q),null,{default:b(()=>[...r[5]||=[n(`Seite veröffentlichen`,-1)]]),_:1}),t(o(Xe),null,{default:b(()=>[...r[6]||=[n(`Der aktuelle Stand wird für alle sichtbar, die die Seite sehen dürfen. Frühere Stände bleiben unter „Versionen“ erhalten.`,-1)]]),_:1})]),_:1}),s.scheduledAt?(v(),d(`p`,$n,` Es ist bereits eine Veröffentlichung geplant. Sie wird durch diese ersetzt. `)):T(``,!0),u(`fieldset`,er,[r[9]||=u(`legend`,{class:`sr-only`},`Zeitpunkt`,-1),u(`label`,tr,[c(u(`input`,{"onUpdate:modelValue":r[0]||=e=>p.value=e,type:`radio`,value:`now`,class:`mt-1 accent-[var(--brand)]`},null,512),[[D,p.value]]),r[7]||=u(`span`,null,[u(`span`,{class:`block text-sm font-medium`},`Jetzt veröffentlichen`),u(`span`,{class:`block text-xs text-muted-foreground`},`Sofort sichtbar.`)],-1)]),u(`label`,nr,[c(u(`input`,{"onUpdate:modelValue":r[1]||=e=>p.value=e,type:`radio`,value:`later`,class:`mt-1 accent-[var(--brand)]`},null,512),[[D,p.value]]),u(`span`,rr,[r[8]||=u(`span`,null,[u(`span`,{class:`block text-sm font-medium`},`Zeitgesteuert`),u(`span`,{class:`block text-xs text-muted-foreground`},`Der aktuelle Stand geht zum gewählten Zeitpunkt online.`)],-1),p.value===`later`?(v(),S(o(X),{key:0,modelValue:m.value,"onUpdate:modelValue":r[2]||=e=>m.value=e,type:`datetime-local`,min:g(new Date),"aria-label":`Zeitpunkt der Veröffentlichung`},null,8,[`modelValue`,`min`])):T(``,!0)])])]),t(o(tt),null,{default:b(()=>[t(o(Y),{variant:`outline`,onClick:r[3]||=e=>l.value=!1},{default:b(()=>[...r[10]||=[n(`Abbrechen`,-1)]]),_:1}),t(o(Y),{disabled:h.value||p.value===`later`&&!m.value,onClick:_},{default:b(()=>[p.value===`later`?(v(),S(o(Te),{key:0})):(v(),S(o(qe),{key:1})),n(` `+x(p.value===`later`?`Planen`:`Veröffentlichen`),1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},ar={class:`flex min-h-0 flex-1`},or={class:`w-64 shrink-0 overflow-y-auto border-r p-2`},sr={key:0,class:`grid place-items-center py-10`},cr={key:1,class:`px-3 py-6 text-center text-sm text-muted-foreground`},lr=[`onClick`],ur={class:`block text-sm font-medium`},dr={class:`block truncate text-xs text-muted-foreground`},fr={class:`flex min-w-0 flex-1 flex-col`},pr={class:`min-h-0 flex-1 overflow-y-auto bg-background p-6`},mr={key:0,class:`grid place-items-center py-16`},hr={class:`mb-6 text-2xl font-semibold tracking-tight`},gr={key:0,class:`flex items-center justify-between gap-3 border-t px-5 py-3`},_r={class:`text-xs text-muted-foreground`},vr={__name:`RevisionsDialog`,props:e({base:{type:String,required:!0},readOnly:{type:Boolean,default:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`restored`],[`update:open`]),setup(e,{emit:a}){let s=e,c=r(e,`open`),p=a,m=C(null),h=C(null),g=C(null),_=C(!1);i(c,async e=>{e&&(m.value=null,g.value=null,h.value=null,m.value=(await H.get(`${s.base}/versionen`)).revisions,m.value.length&&w(m.value[0]))});async function w(e){h.value=e,_.value=!0;try{g.value=await H.get(`${s.base}/versionen/${e.id}`)}finally{_.value=!1}}async function E(){try{p(`restored`,await H.post(`${s.base}/versionen/${h.value.id}/wiederherstellen`))}catch(e){V.error(e.message)}}return(r,i)=>(v(),S(o(et),{open:c.value,"onUpdate:open":i[0]||=e=>c.value=e},{default:b(()=>[t(o(Z),{class:`flex h-[85vh] max-w-5xl flex-col gap-0 p-0 sm:max-w-5xl`},{default:b(()=>[t(o(J),{class:`border-b px-5 py-4`},{default:b(()=>[t(o(Q),null,{default:b(()=>[...i[1]||=[n(`Versionen`,-1)]]),_:1}),t(o(Xe),null,{default:b(()=>[...i[2]||=[n(`Jede Veröffentlichung wird gespeichert. Eine ältere Version lässt sich als Entwurf zurückholen.`,-1)]]),_:1})]),_:1}),u(`div`,ar,[u(`ul`,or,[m.value===null?(v(),d(`li`,sr,[t(o(ne),{class:`size-5 animate-spin text-muted-foreground`})])):m.value.length?T(``,!0):(v(),d(`li`,cr,`Noch keine veröffentlichten Versionen.`)),(v(!0),d(y,null,f(m.value??[],e=>(v(),d(`li`,{key:e.id},[u(`button`,{type:`button`,class:l([`w-full rounded-md px-3 py-2 text-left`,h.value?.id===e.id?`bg-brand-soft text-brand-soft-foreground`:`hover:bg-accent`]),onClick:t=>w(e)},[u(`span`,ur,x(o(se)(e.created_at)),1),u(`span`,dr,[n(x(e.action),1),e.user?(v(),d(y,{key:0},[n(` · `+x(e.user),1)],64)):T(``,!0)])],10,lr)]))),128))]),u(`div`,fr,[u(`div`,pr,[_.value?(v(),d(`div`,mr,[t(o(ne),{class:`size-6 animate-spin text-muted-foreground`})])):g.value?(v(),d(y,{key:1},[u(`h1`,hr,x(g.value.title),1),t(rt,{content:g.value.content},null,8,[`content`])],64)):T(``,!0)]),h.value?(v(),d(`div`,gr,[u(`span`,_r,x(new Date(h.value.created_at).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`})),1),t(o(Y),{disabled:e.readOnly,onClick:E},{default:b(()=>[t(o(Ve)),i[3]||=n(` Als Entwurf wiederherstellen`,-1)]),_:1},8,[`disabled`])])):T(``,!0)])])]),_:1})]),_:1},8,[`open`]))}},yr={class:`grid gap-1.5`},br={key:0,class:`text-[13px] text-destructive`},xr={key:1,class:`text-xs text-muted-foreground`},Sr={key:0,class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Cr={__name:`PageSettingsDialog`,props:e({page:{type:Object,required:!0},base:{type:String,required:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`saved`],[`update:open`]),setup(e,{emit:a}){let s=e,c=r(e,`open`),l=a,f=C({slug:``,in_navigation:!1}),p=C({}),m=C(!1);i(c,e=>{e&&(f.value={slug:s.page.slug,in_navigation:s.page.in_navigation},p.value={})});async function h(){m.value=!0;try{l(`saved`,await H.put(`${s.base}/einstellungen`,f.value)),c.value=!1}catch(e){p.value=e.fieldErrors??{}}finally{m.value=!1}}return(r,i)=>(v(),S(o(et),{open:c.value,"onUpdate:open":i[3]||=e=>c.value=e},{default:b(()=>[t(o(Z),{class:`sm:max-w-md`},{default:b(()=>[t(o(J),null,{default:b(()=>[t(o(Q),null,{default:b(()=>[...i[4]||=[n(`Seiteneinstellungen`,-1)]]),_:1}),t(o(Xe),null,{default:b(()=>[...i[5]||=[n(`Sichtbarkeit und Rechte pflegen Sie in der Administration unter „Seiten“.`,-1)]]),_:1})]),_:1}),u(`form`,{class:`grid gap-4`,onSubmit:E(h,[`prevent`])},[u(`label`,yr,[i[6]||=u(`span`,{class:`text-[13px] font-medium`},`Kürzel in der Adresse`,-1),t(o(X),{modelValue:f.value.slug,"onUpdate:modelValue":i[0]||=e=>f.value.slug=e,maxlength:`120`,"aria-invalid":!!p.value.slug},null,8,[`modelValue`,`aria-invalid`]),p.value.slug?(v(),d(`span`,br,x(p.value.slug),1)):(v(),d(`span`,xr,`Ändert auch die Adressen aller Unterseiten. Alte Links funktionieren dann nicht mehr.`))]),e.page.can.navigation?(v(),d(`label`,Sr,[i[7]||=n(` In der Hauptnavigation anzeigen `,-1),t(o(Ze),{modelValue:f.value.in_navigation,"onUpdate:modelValue":i[1]||=e=>f.value.in_navigation=e},null,8,[`modelValue`])])):T(``,!0),t(o(tt),null,{default:b(()=>[t(o(Y),{type:`button`,variant:`outline`,onClick:i[2]||=e=>c.value=!1},{default:b(()=>[...i[8]||=[n(`Abbrechen`,-1)]]),_:1}),t(o(Y),{type:`submit`,disabled:m.value},{default:b(()=>[...i[9]||=[n(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}},wr={class:`grid gap-1.5`},Tr={__name:`ReviewDialog`,props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:e([`submit`],[`update:open`]),setup(e,{emit:a}){let s=r(e,`open`),c=a,l=C(``),d=C(!1);i(s,e=>e&&(l.value=``,d.value=!1));function f(){d.value=!0,c(`submit`,l.value),setTimeout(()=>d.value=!1,1500)}return(e,r)=>(v(),S(o(et),{open:s.value,"onUpdate:open":r[2]||=e=>s.value=e},{default:b(()=>[t(o(Z),{class:`sm:max-w-md`},{default:b(()=>[t(o(J),null,{default:b(()=>[t(o(Q),null,{default:b(()=>[...r[3]||=[n(`Freigabe anfordern`,-1)]]),_:1}),t(o(Xe),null,{default:b(()=>[...r[4]||=[n(`Ihre Änderungen sind als Entwurf gespeichert. Die Personen, die diese Seite veröffentlichen dürfen, werden benachrichtigt.`,-1)]]),_:1})]),_:1}),u(`label`,wr,[r[5]||=u(`span`,{class:`text-[13px] font-medium`},`Nachricht (freiwillig)`,-1),t(o($e),{modelValue:l.value,"onUpdate:modelValue":r[0]||=e=>l.value=e,rows:`3`,maxlength:`1000`,placeholder:`z. B. Bitte bis Freitag veröffentlichen.`},null,8,[`modelValue`])]),t(o(tt),null,{default:b(()=>[t(o(Y),{variant:`outline`,onClick:r[1]||=e=>s.value=!1},{default:b(()=>[...r[6]||=[n(`Abbrechen`,-1)]]),_:1}),t(o(Y),{disabled:d.value,onClick:f},{default:b(()=>[t(o(qe)),r[7]||=n(` Anfordern`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},Er={class:`flex h-dvh flex-col bg-background`},Dr={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},Or={class:`min-w-0 flex-1`},kr={class:`flex items-center gap-2`},Ar={class:`truncate text-sm font-semibold`},jr={class:`flex items-center gap-1 truncate text-xs text-muted-foreground`,"aria-live":`polite`},Mr={class:`hidden items-center gap-0.5 md:flex`},Nr=[`disabled`],Pr=[`disabled`],Fr={class:`flex rounded-md border p-0.5`,role:`group`,"aria-label":`Vorschau`},Ir=[`title`,`aria-pressed`,`onClick`],Lr=[`href`],Rr={key:0,class:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-amber-200 bg-amber-50 px-4 py-2.5 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950/50 dark:text-amber-100`},zr={class:`flex-1`},Br={class:`flex min-h-0 flex-1`},Vr={key:0,class:`mb-2 flex flex-wrap gap-1 text-xs text-muted-foreground`,"aria-label":`Brotkrumen`},Hr=[`readonly`],Ur={class:`@container`},Wr={class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},Gr={class:`flex shrink-0 border-b px-2`,role:`tablist`},Kr=[`aria-selected`,`disabled`,`onClick`],qr={key:0,class:`absolute inset-x-2 bottom-0 h-[3px] rounded-t-full bg-brand`},Jr={class:`min-h-0 flex-1 overflow-y-auto p-4`},Yr={class:`fixed right-4 bottom-4 z-30 flex gap-2 lg:hidden`},Xr={__name:`Editor`,props:{page:{type:Object,required:!0},working:{type:Object,required:!0},lockedBy:{type:Object,default:null},blockTypes:{type:Array,required:!0},blockGroups:{type:Object,required:!0},files:{type:Array,default:()=>[]},audienceOptions:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},uploadsUrl:{type:String,required:!0}},setup(e){let r=e,a=`/redaktion/seiten/${r.page.id}`,s=Object.fromEntries(r.blockTypes.map(e=>[e.key,e])),D=C(r.page),A=h(xt(r.working)),j=C(null),M=C(null),oe=h({}),se=C(r.files),N=C(!!r.lockedBy),P=C(r.lockedBy),pe=C(`desktop`),F=C(!1),L=C(`blocks`),R=m(()=>j.value?$(A.content.blocks,j.value)?.block??null:null);i(j,e=>{L.value=e?`block`:`blocks`});function z(e){j.value=e??null}function _e(e,t,n){if(N.value)return;let r=Ct(n);e.splice(t,0,r),z(r.id)}function ve(e){let t=R.value?$(A.content.blocks,R.value.id):null;t?_e(t.list,t.index+1,e):_e(A.content.blocks,A.content.blocks.length,e),F.value=!1,requestAnimationFrame(()=>document.querySelector(`[data-block-id="${j.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`}))}function ye(e){let t=$(A.content.blocks,e);t&&(t.list.splice(t.index,1),j.value===e&&z(null))}function xe(e,t){let n=$(A.content.blocks,e),r=n?n.index+t:-1;n&&r>=0&&rt.items?.includes(e)||$(e.blocks,t.id))}async function Ee(e){let t=new FormData;return t.append(`image`,e),H.post(`${a}/bilder`,t)}async function B(e){let t=new FormData;t.append(`file`,e);let n=await H.post(`${a}/dateien`,t);return se.value=[n.file,...se.value],n.file}let ke=h({});g(`pagebuilder:editor`,{types:s,groups:r.blockGroups,selectedId:j,hoveredId:M,previews:oe,readOnly:N,files:se,peopleCache:ke,audienceOptions:r.audienceOptions,select:z,insert:_e,remove:ye,move:xe,duplicate:Se,containsActive:Ce,uploadImage:Ee,uploadFile:B,imageUrl:e=>`${r.uploadsUrl}/${e}`}),g(`pagebuilder:list`,Qn),g(`pagebuilder:types`,s),g(`pagebuilder:editing`,m(()=>!N.value));let Ae={},je;function Me(){let e=[];Tt(A.content.blocks,t=>{if(!s[t.type]?.dynamic)return;let n=JSON.stringify(t.data);Ae[t.id]!==n&&(Ae[t.id]=n,e.push({id:t.id,type:t.type,data:t.data}))}),e.length&&H.post(`${a}/vorschau`,{blocks:e.slice(0,100)}).then(e=>Object.assign(oe,e.props)).catch(()=>{})}let U=C(`saved`),Ne=C(D.value.draft_updated_at),Pe,W=JSON.stringify(A);function Fe(){return{title:A.title,content:A.content}}async function Ie(){if(clearTimeout(Pe),N.value)return;let e=JSON.stringify(A);if(e===W){U.value=`saved`;return}U.value=`saving`;try{let t=await H.put(`${a}/entwurf`,Fe());W=e,D.value=t.page,Ne.value=new Date().toISOString(),U.value=JSON.stringify(A)===W?`saved`:`dirty`,U.value===`dirty`&&Re()}catch(e){He(e),U.value=`error`}}function Re(e=1200){clearTimeout(Pe),Pe=setTimeout(Ie,e)}function He(e){e.status===423?(N.value=!0,P.value=e.data.lockedBy,V.error(e.message)):e.status===422&&e.data?.errors?.title?V.error(e.data.errors.title[0]):V.error(e.message||`Speichern fehlgeschlagen. Bitte die Verbindung prüfen.`)}let G=C([]),K=C([]),Ge=JSON.stringify(A),Ke=!1,q;function Xe(){let e=JSON.stringify(A);e!==Ge&&(G.value=[...G.value.slice(-49),Ge],K.value=[],Ge=e)}function J(e){Ke=!0;let t=JSON.parse(e);A.title=t.title,A.content=t.content,Ge=e,j.value&&!$(A.content.blocks,j.value)&&z(null),setTimeout(()=>Ke=!1)}function Ze(){Xe(),G.value.length&&(K.value=[...K.value,JSON.stringify(A)],J(G.value.at(-1)),G.value=G.value.slice(0,-1))}function Qe(){K.value.length&&(G.value=[...G.value,JSON.stringify(A)],J(K.value.at(-1)),K.value=K.value.slice(0,-1))}i(A,()=>{N.value||(U.value=`dirty`,Re(),clearTimeout(je),je=setTimeout(Me,500),Ke||(clearTimeout(q),q=setTimeout(Xe,700)))},{deep:!0});function X(e){let t=e.target.closest?.(`input, textarea, select, [contenteditable="true"]`);(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),Ie()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`z`?(e.preventDefault(),e.shiftKey?Qe():Ze()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`y`?(e.preventDefault(),Qe()):e.key===`Escape`&&!t&&z(null)}let $e;async function et(e=!1){try{await H.post(`${a}/sperre`,{takeover:e}),e&&(N.value=!1,P.value=null,V.success(`Sie bearbeiten die Seite jetzt.`))}catch(e){e.status===423&&(N.value=!0,P.value=e.data.lockedBy)}}async function tt(){await et(!0),O.reload({only:[`working`,`page`],onSuccess:()=>Object.assign(A,xt(r.working))})}function Z(){N.value||(JSON.stringify(A)!==W&&fetch(`${a}/entwurf`,{method:`PUT`,keepalive:!0,credentials:`same-origin`,headers:{"Content-Type":`application/json`,Accept:`application/json`,"X-XSRF-TOKEN":decodeURIComponent(document.cookie.match(/XSRF-TOKEN=([^;]*)/)?.[1]??``)},body:JSON.stringify(Fe())}),H.post(`${a}/sperre/freigeben`,{},{keepalive:!0}).catch(()=>{}))}p(()=>{Me(),window.addEventListener(`keydown`,X),window.addEventListener(`pagehide`,Z),$e=setInterval(()=>!N.value&&et(),45e3)}),_(()=>{window.removeEventListener(`keydown`,X),window.removeEventListener(`pagehide`,Z),clearInterval($e),clearTimeout(Pe),Z()});let Q=h({publish:!1,review:!1,revisions:!1,settings:!1,newPage:!1});async function nt(e){clearTimeout(Pe);try{let t=await H.post(`${a}/veroeffentlichen`,{...Fe(),scheduled_at:e||null});D.value=t.page,W=JSON.stringify(A),U.value=`saved`,Q.publish=!1,V.success(e?`Veröffentlichung geplant für ${new Date(e).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`})}`:`Seite veröffentlicht`,{action:e?void 0:{label:`Ansehen`,onClick:()=>O.visit(D.value.url)}})}catch(e){He(e)}}async function rt(e){await Ie();try{let t=await H.post(`${a}/freigabe`,{message:e});Q.review=!1,V.success(`Freigabe angefordert – ${t.recipients} ${t.recipients===1?`Person wurde`:`Personen wurden`} benachrichtigt.`)}catch(e){V.error(e.message)}}async function at(e,t,n,r){if(!n||window.confirm(n))try{let n=await H[e](t);if(n.page&&(D.value=n.page),n.working&&(J(JSON.stringify(n.working)),W=JSON.stringify(A)),n.redirect){O.visit(n.redirect);return}V.success(r)}catch(e){V.error(e.message)}}function st(e){D.value=e.page,J(JSON.stringify(e.working)),W=JSON.stringify(A),Object.keys(Ae).forEach(e=>delete Ae[e]),Me(),Q.revisions=!1,V.success(`Version als Entwurf wiederhergestellt`)}let ct=m(()=>D.value.scheduled_at?{label:`Geplant: ${new Date(D.value.scheduled_at).toLocaleString(`de-DE`,{dateStyle:`short`,timeStyle:`short`})}`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`}:D.value.is_published?D.value.has_draft?{label:`Entwurf mit Änderungen`,class:`bg-brand-soft text-brand-soft-foreground`}:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`}:{label:`Nicht veröffentlicht`,class:`bg-muted text-muted-foreground`}),lt=[{key:`desktop`,label:`Desktop`,icon:re,width:`max-w-[1100px]`},{key:`tablet`,label:`Tablet`,icon:_t,width:`max-w-[768px]`},{key:`mobile`,label:`Smartphone`,icon:Je,width:`max-w-[390px]`}],ut=m(()=>lt.find(e=>e.key===pe.value).width);return(r,i)=>(v(),d(y,null,[t(o(te),{title:`Bearbeiten: ${A.title}`},null,8,[`title`]),u(`div`,Er,[u(`header`,Dr,[t(o(k),{href:D.value.is_published?D.value.url:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zurück`},{default:b(()=>[t(o(be),{class:`size-5`})]),_:1},8,[`href`]),u(`div`,Or,[u(`div`,kr,[u(`span`,Ar,x(A.title||`Ohne Titel`),1),u(`span`,{class:l([`hidden shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium sm:inline`,ct.value.class])},x(ct.value.label),3)]),u(`p`,jr,[N.value?(v(),d(y,{key:0},[t(o(We),{class:`size-3`}),i[21]||=n(` Nur lesen`,-1)],64)):U.value===`saving`?(v(),d(y,{key:1},[t(o(ne),{class:`size-3 animate-spin`}),i[22]||=n(` Speichert …`,-1)],64)):U.value===`error`?(v(),d(y,{key:2},[t(o(ot),{class:`size-3 text-destructive`}),i[23]||=n(` Nicht gespeichert`,-1)],64)):U.value===`dirty`?(v(),d(y,{key:3},[n(`Ungespeicherte Änderungen`)],64)):Ne.value?(v(),d(y,{key:4},[t(o(De),{class:`size-3`}),n(` Entwurf gespeichert `+x(o(me)(Ne.value)),1)],64)):(v(),d(y,{key:5},[n(x(D.value.url),1)],64))])]),u(`div`,Mr,[u(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Rückgängig (Strg+Z)`,disabled:!G.value.length||N.value,onClick:Ze},[t(o(ie),{class:`size-4`})],8,Nr),u(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Wiederholen (Strg+Y)`,disabled:!K.value.length||N.value,onClick:Qe},[t(o(we),{class:`size-4`})],8,Pr),i[24]||=u(`span`,{class:`mx-1 h-6 w-px bg-border`},null,-1),u(`div`,Fr,[(v(),d(y,null,f(lt,e=>u(`button`,{key:e.key,type:`button`,class:l([`grid size-8 place-items-center rounded`,pe.value===e.key?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":pe.value===e.key,onClick:t=>pe.value=e.key},[(v(),S(w(e.icon),{class:`size-4`}))],10,Ir)),64))])]),t(o(de),null,{default:b(()=>[t(o(ce),{class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent`,"aria-label":`Weitere Aktionen`},{default:b(()=>[t(o(ze),{class:`size-5`})]),_:1}),t(o(fe),{align:`end`,class:`w-64`},{default:b(()=>[D.value.is_published?(v(),S(o(I),{key:0,"as-child":``},{default:b(()=>[u(`a`,{href:D.value.url,target:`_blank`},[t(o(Ue)),i[25]||=n(` Veröffentlichte Seite ansehen`,-1)],8,Lr)]),_:1})):T(``,!0),t(o(I),{onSelect:i[0]||=e=>Q.revisions=!0},{default:b(()=>[t(o(Ve)),i[26]||=n(` Versionen`,-1)]),_:1}),D.value.can.configure?(v(),S(o(I),{key:1,onSelect:i[1]||=e=>Q.settings=!0},{default:b(()=>[t(o(Le)),i[27]||=n(` Seiteneinstellungen`,-1)]),_:1})):T(``,!0),D.value.can.create_child?(v(),S(o(I),{key:2,onSelect:i[2]||=e=>Q.newPage=!0},{default:b(()=>[t(o(Be)),i[28]||=n(` Unterseite anlegen`,-1)]),_:1})):T(``,!0),t(o(le)),D.value.has_draft&&D.value.is_published&&!N.value?(v(),S(o(I),{key:3,onSelect:i[3]||=e=>at(`delete`,`${a}/entwurf`,`Alle Änderungen seit der letzten Veröffentlichung verwerfen?`,`Entwurf verworfen`)},{default:b(()=>[t(o(ie)),i[29]||=n(` Entwurf verwerfen `,-1)]),_:1})):T(``,!0),D.value.scheduled_at&&D.value.can.publish?(v(),S(o(I),{key:4,onSelect:i[4]||=e=>at(`delete`,`${a}/planung`,null,`Planung aufgehoben – der Stand ist wieder ein Entwurf`)},{default:b(()=>[t(o(Te)),i[30]||=n(` Geplante Veröffentlichung aufheben `,-1)]),_:1})):T(``,!0),D.value.is_published&&D.value.can.publish?(v(),S(o(I),{key:5,onSelect:i[5]||=e=>at(`post`,`${a}/zurueckziehen`,`Seite offline nehmen? Der Inhalt bleibt als Entwurf erhalten.`,`Seite ist offline`)},{default:b(()=>[t(o(We)),i[31]||=n(` Veröffentlichung zurückziehen `,-1)]),_:1})):T(``,!0),D.value.can.delete?(v(),S(o(I),{key:6,class:`text-destructive`,onSelect:i[6]||=e=>at(`delete`,a,`Seite endgültig löschen? Versionen und Dateien werden entfernt.`,`Seite gelöscht`)},{default:b(()=>[t(o(Ye)),i[32]||=n(` Seite löschen `,-1)]),_:1})):T(``,!0)]),_:1})]),_:1}),D.value.can.publish?(v(),S(o(Y),{key:0,disabled:N.value,onClick:i[7]||=e=>Q.publish=!0},{default:b(()=>[t(o(qe)),i[33]||=n(),i[34]||=u(`span`,{class:`hidden sm:inline`},`Veröffentlichen`,-1)]),_:1},8,[`disabled`])):(v(),S(o(Y),{key:1,disabled:N.value,onClick:i[8]||=e=>Q.review=!0},{default:b(()=>[t(o(qe)),i[35]||=n(),i[36]||=u(`span`,{class:`hidden sm:inline`},`Freigabe anfordern`,-1)]),_:1},8,[`disabled`]))]),N.value?(v(),d(`div`,Rr,[t(o(We),{class:`size-4 shrink-0`}),u(`span`,zr,x(P.value?.name??`Jemand anderes`)+` bearbeitet diese Seite gerade. Sie sehen den zuletzt gespeicherten Stand.`,1),t(o(Y),{size:`sm`,variant:`outline`,class:`bg-card`,onClick:tt},{default:b(()=>[...i[37]||=[n(`Bearbeitung übernehmen`,-1)]]),_:1})])):T(``,!0),u(`div`,Br,[u(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:i[11]||=e=>z(null)},[u(`div`,{class:l([`mx-auto px-4 py-8 transition-[max-width] duration-300 sm:px-8`,ut.value])},[e.breadcrumbs.length?(v(),d(`nav`,Vr,[(v(!0),d(y,null,f(e.breadcrumbs,e=>(v(),d(`span`,{key:e.url},x(e.title)+` /`,1))),128))])):T(``,!0),c(u(`input`,{"onUpdate:modelValue":i[9]||=e=>A.title=e,class:`mb-6 w-full bg-transparent text-3xl font-semibold tracking-tight outline-none placeholder:text-muted-foreground/60`,placeholder:`Titel der Seite`,maxlength:`200`,"aria-label":`Titel der Seite`,readonly:N.value,onClick:i[10]||=E(()=>{},[`stop`])},null,8,Hr),[[ee,A.title]]),u(`div`,Ur,[t(Qn,{item:A.content,root:``},null,8,[`item`])])],2)]),u(`aside`,Wr,[u(`div`,Gr,[(v(),d(y,null,f([{key:`blocks`,label:`Blöcke`},{key:`block`,label:`Ausgewählter Block`}],e=>u(`button`,{key:e.key,type:`button`,role:`tab`,class:l([`relative px-3 py-3 text-sm font-medium disabled:opacity-40`,L.value===e.key?`text-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-selected":L.value===e.key,disabled:e.key===`block`&&!R.value,onClick:t=>L.value=e.key},[n(x(e.label)+` `,1),L.value===e.key?(v(),d(`span`,qr)):T(``,!0)],10,Kr)),64))]),u(`div`,Jr,[L.value===`block`&&R.value?(v(),S(Kn,{key:R.value.id,block:R.value},null,8,[`block`])):(v(),d(y,{key:1},[i[38]||=u(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt den Block unter dem ausgewählten ein. Blöcke lassen sich auch an jede Stelle ziehen.`,-1),t(jt,{onPick:ve})],64))])])]),u(`div`,Yr,[t(o(Y),{variant:`outline`,class:`bg-card shadow-md`,disabled:N.value,onClick:i[12]||=e=>{L.value=`blocks`,F.value=!0}},{default:b(()=>[...i[39]||=[n(`Block hinzufügen`,-1)]]),_:1},8,[`disabled`]),R.value?(v(),S(o(Y),{key:0,class:`shadow-md`,onClick:i[13]||=e=>{L.value=`block`,F.value=!0}},{default:b(()=>[...i[40]||=[n(`Einstellungen`,-1)]]),_:1})):T(``,!0)]),t(o(ge),{open:F.value,"onUpdate:open":i[14]||=e=>F.value=e},{default:b(()=>[t(o(he),{side:`right`,class:`w-[340px] overflow-y-auto p-4 sm:max-w-[340px]`},{default:b(()=>[t(o(ae),{class:`p-0`},{default:b(()=>[t(o(ue),null,{default:b(()=>[n(x(L.value===`block`?`Block`:`Blöcke`),1)]),_:1})]),_:1}),L.value===`block`&&R.value?(v(),S(Kn,{key:R.value.id,block:R.value},null,8,[`block`])):(v(),S(jt,{key:1,onPick:ve}))]),_:1})]),_:1},8,[`open`]),t(ir,{open:Q.publish,"onUpdate:open":i[15]||=e=>Q.publish=e,"scheduled-at":D.value.scheduled_at,onPublish:nt},null,8,[`open`,`scheduled-at`]),t(Tr,{open:Q.review,"onUpdate:open":i[16]||=e=>Q.review=e,onSubmit:rt},null,8,[`open`]),t(vr,{open:Q.revisions,"onUpdate:open":i[17]||=e=>Q.revisions=e,base:a,"read-only":N.value,onRestored:st},null,8,[`open`,`read-only`]),t(Cr,{open:Q.settings,"onUpdate:open":i[18]||=e=>Q.settings=e,page:D.value,base:a,onSaved:i[19]||=e=>D.value=e.page},null,8,[`open`,`page`]),t(it,{open:Q.newPage,"onUpdate:open":i[20]||=e=>Q.newPage=e,"parent-id":D.value.id,"parent-title":D.value.title,onBeforeCreate:Ie},null,8,[`open`,`parent-id`,`parent-title`])]),t(o(Oe),{position:`bottom-left`})],64))}};export{Xr as default}; \ No newline at end of file diff --git a/public/build/assets/Editor-C9VQdhzX.js b/public/build/assets/Editor-C9VQdhzX.js new file mode 100644 index 00000000..7bf95f2d --- /dev/null +++ b/public/build/assets/Editor-C9VQdhzX.js @@ -0,0 +1 @@ +import{$ as e,D as t,E as n,Ft as r,Ht as i,J as a,On as o,St as s,Yt as c,Zn as l,_ as u,b as d,bt as f,ct as p,g as m,gn as h,gt as g,it as _,mt as v,o as y,qt as b,tr as x,v as S,vn as C,wt as w,y as T}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as E,x as ee,y as D}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as O,n as k,t as te}from"./app-Dy5FbYkt.js";import{A as ne,j as A}from"./dist-CleIz2GP.js";import{B as j,H as re,I as ie,X as M,_ as ae,b as oe,c as se,d as ce,et as N,f as le,g as ue,h as de,it as P,m as fe,n as pe,nt as F,p as I,r as L,rt as R,t as z,u as me,v as he,y as ge,z as _e}from"./AppIcon-SVMShh8s.js";import{n as ve,t as ye}from"./arrow-up-B8ttChMk.js";import{t as be}from"./arrow-left-nZZEveo4.js";import{a as xe,i as Se,n as Ce,r as we}from"./RichTextEditor-DgNr9C_U.js";import{t as Te}from"./calendar-clock-CswFc-uh.js";import{C as Ee,S as De,_ as B,a as Oe,b as ke,i as Ae,n as je,o as V,r as Me,t as H}from"./http-9R3L4KBg.js";import{t as U}from"./chevron-up-B_XdKobX.js";import{a as Ne,i as Pe,n as W,o as Fe,r as Ie,t as Le}from"./vue-draggable-plus-qBP-KoW2.js";import{n as Re,t as ze}from"./file-plus-corner-InzMgr9W.js";import{t as Be}from"./eye-off-DWbaLHNt.js";import{t as Ve}from"./eye-DcTo_il4.js";import{n as He,r as Ue,t as G}from"./upload-mORtSS3U.js";import{t as We}from"./lock-4X8Kfof0.js";import{t as K}from"./message-square-warning-CUD7Iy66.js";import{t as Ge}from"./minus-G8J1pUIu.js";import{t as Ke}from"./play-_hM1KTvn.js";import{t as q}from"./plus-cKZvz4wH.js";import{t as qe}from"./send-BevoJaJI.js";import{t as Je}from"./smartphone-2VTLQVgX.js";import{t as Ye}from"./trash-3XeUxfQJ.js";import{n as Xe,t as J}from"./DialogHeader-UfXa7NWq.js";import{t as Ze}from"./Switch-BaFVWLMv.js";import{t as Y}from"./button-SRYY3-ko.js";import{t as Qe}from"./NativeSelect-BBbvK4oZ.js";import{t as X}from"./Input-CgjHXzkf.js";import{t as $e}from"./Textarea-DWpyL-nk.js";import{i as et,n as tt,r as Z,t as Q}from"./dialog-DrnG5a9r.js";import{n as nt,t as rt}from"./PageContent-DK_3i7FH.js";import{t as it}from"./NewPageDialog-B5SW-nak.js";var at=A({name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]}),ot=A({name:`cloud-alert`,size:24,node:[[`path`,{d:`M12 12v4`,key:`tww15h`}],[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.128 16.949A7 7 0 1 1 15.71 8h1.79a1 1 0 0 1 0 9h-1.642`,key:`1namsd`}]]}),st=A({name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]}),ct=A({name:`contact`,size:24,node:[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2`,key:`k82dct`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]}),lt=A({name:`gallery-horizontal-end`,size:24,node:[[`path`,{d:`M2 7v10`,key:`a2pl2d`}],[`path`,{d:`M6 5v14`,key:`1kq3d7`}],[`rect`,{width:`12`,height:`18`,x:`10`,y:`3`,rx:`2`,key:`13i7bc`}]]}),ut=A({name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]}),dt=A({name:`list-collapse`,size:24,node:[[`path`,{d:`M10 5h11`,key:`1hkqpe`}],[`path`,{d:`M10 12h11`,key:`6m4ad9`}],[`path`,{d:`M10 19h11`,key:`14g2nv`}],[`path`,{d:`m3 10 3-3-3-3`,key:`i7pm08`}],[`path`,{d:`m3 20 3-3-3-3`,key:`20gx1n`}]]}),ft=A({name:`mouse-pointer-click`,size:24,node:[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]}),pt=A({name:`move-vertical`,size:24,node:[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m8 18 4 4 4-4`,key:`bh5tu3`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}]]}),mt=A({name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]}),ht=A({name:`square-dashed`,size:24,node:[[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M21 14v1`,key:`169vum`}]],aliases:[`box-select`]}),gt=A({name:`table`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]}),_t=A({name:`tablet`,size:24,node:[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`,key:`76otgf`}],[`line`,{x1:`12`,x2:`12.01`,y1:`18`,y2:`18`,key:`1dp563`}]]}),vt={"square-dashed":ht,"columns-3":st,"panel-top":mt,"list-collapse":dt,"message-square-warning":K,heading:Pe,text:W,quote:Se,"mouse-pointer-click":ft,"list-checks":ke,table:gt,minus:Ge,"move-vertical":pt,image:M,images:ut,play:Ke,panorama:lt,contact:ct,"file-down":N,"folder-tree":Ue,newspaper:j,"calendar-days":R,"clipboard-list":F,cake:P};function yt(e){return vt[e]??at}function bt(){return Math.random().toString(36).slice(2,8)+Date.now().toString(36).slice(-6)}function xt(e){return JSON.parse(JSON.stringify(e))}function St(e,t){return e.container?e.key===`columns`?(t.layout??`1-1`).split(`-`).length:e.key===`tabs`?2:e.key===`accordion`?3:e.container.min:0}function Ct(e){let t=xt(e.defaults??{}),n={id:bt(),type:e.key,data:t};return e.container&&(n.items=Array.from({length:St(e,t)},(t,n)=>({id:bt(),title:e.container.titled?`${e.container.label} ${n+1}`:void 0,blocks:[]}))),n}function wt(e){let t=xt(e),n=e=>{e.id=bt(),(e.items??[]).forEach(e=>{e.id=bt(),e.blocks.forEach(n)})};return n(t),t}function $(e,t,n=null){for(let r=0;rTt(e.blocks,t))}function Et(e){let t=(e.data.layout??`1-1`).split(`-`).length;for(;e.items.lengtht){let n=e.items.splice(t).flatMap(e=>e.blocks);e.items[t-1].blocks.push(...n)}}var Dt={class:`grid gap-4`},Ot={class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},kt=[`title`,`disabled`,`onClick`],At={class:`truncate`},jt={__name:`BlockPalette`,props:{compact:{type:Boolean,default:!1}},emits:[`pick`],setup(e,{emit:n}){let r=n,i=a(`pagebuilder:editor`),s=m(()=>Object.entries(i.groups).map(([e,t])=>({key:e,label:t,types:Object.values(i.types).filter(t=>t.group===e)})).filter(e=>e.types.length));return(n,a)=>(v(),d(`div`,Dt,[(v(!0),d(y,null,f(s.value,n=>(v(),d(`section`,{key:n.key},[u(`h3`,Ot,x(n.label),1),t(o(Le),{"model-value":n.types,group:{name:`pagebuilder`,pull:`clone`,put:!1},clone:e=>o(Ct)(e),sort:!1,disabled:e.compact||o(i).readOnly.value,class:`grid grid-cols-2 gap-2`},{default:b(()=>[(v(!0),d(y,null,f(n.types,t=>(v(),d(`button`,{key:t.key,type:`button`,class:l([`flex items-center gap-2 rounded-md border bg-card px-2.5 py-2 text-left text-[13px] font-medium transition-colors hover:border-brand-300 hover:bg-brand-soft/60`,e.compact?``:`cursor-grab active:cursor-grabbing`]),title:t.description||t.label,disabled:o(i).readOnly.value,onClick:e=>r(`pick`,t)},[(v(),S(w(o(yt)(t.icon)),{class:`size-4 shrink-0 text-brand-text`})),u(`span`,At,x(t.label),1)],10,kt))),128))]),_:2},1032,[`model-value`,`clone`,`disabled`])]))),128))]))}},Mt={class:`grid gap-1.5`},Nt=[`for`],Pt=[`for`],Ft={key:8,class:`grid gap-2`},It={class:`grid max-h-56 grid-cols-6 gap-1.5 overflow-y-auto`},Lt=[`title`,`aria-pressed`,`onClick`],Rt={key:0,class:`col-span-6 py-2 text-center text-xs text-muted-foreground`},zt={key:9,class:`grid gap-2`},Bt={key:0,class:`relative overflow-hidden rounded-md border bg-muted`},Vt=[`src`],Ht=[`disabled`],Ut={key:10,class:`grid gap-2`},Wt={key:0,class:`grid gap-1`},Gt={class:`min-w-0 flex-1 truncate text-[13px]`},Kt=[`onClick`],qt=[`onClick`],Jt={class:`relative`},Yt={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-60 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},Xt=[`onClick`],Zt={class:`min-w-0`},Qt={class:`block truncate font-medium`},$t={class:`block truncate text-xs text-muted-foreground`},en={key:11,class:`grid gap-2`},tn={class:`overflow-x-auto rounded-md border`},nn={class:`w-full text-[13px]`},rn=[`value`,`aria-label`,`onInput`],an={class:`w-7 p-0 text-center`},on=[`onClick`],sn=[`onClick`],cn={class:`flex gap-2`},ln={key:12,class:`grid gap-2`},un=[`open`],dn={class:`flex cursor-pointer list-none items-center gap-2 px-3 py-2 text-[13px] font-medium`},fn={class:`min-w-0 flex-1 truncate`},pn=[`onClick`],mn=[`onClick`],hn=[`onClick`],gn={class:`grid gap-3 border-t px-3 py-3`},_n={key:13,class:`grid gap-2`},vn={key:0,class:`grid gap-1`},yn={class:`min-w-0 flex-1 truncate`},bn={key:0,class:`shrink-0 text-xs text-muted-foreground`},xn=[`onClick`],Sn=[`onClick`],Cn=[`disabled`],wn={key:14,class:`text-xs text-muted-foreground`},Tn={__name:`FieldInput`,props:e({field:{type:Object,required:!0},id:{type:String,required:!0}},{modelValue:{default:null},modelModifiers:{}}),emits:e([`image-uploaded`],[`update:modelValue`]),setup(e,{emit:c}){let p=e,h=r(e,`modelValue`),g=a(`pagebuilder:editor`),_=c,b=C(!1),w=C(null);async function ee(e){let t=e.target.files?.[0];if(e.target.value=``,t){b.value=!0;try{let e=await g.uploadImage(t);h.value=e.path,_(`image-uploaded`,e)}catch(e){V.error(e.fieldErrors?.image??e.message)}finally{b.value=!1}}}let D=C(``),O=C([]),k=g.peopleCache,te;if(i(D,e=>{if(clearTimeout(te),e.trim().length<2){O.value=[];return}te=setTimeout(async()=>{let t=await H.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`);t.people.forEach(e=>k[e.id]=e),O.value=t.people.filter(e=>!(h.value??[]).includes(e.id))},250)}),p.field.type===`people`&&(h.value??[]).some(e=>!k[e])){let e=h.value.filter(e=>!k[e]);H.get(`/personen/suche?${e.map(e=>`ids[]=${e}`).join(`&`)}`).then(e=>e.people.forEach(e=>k[e.id]=e))}function A(e){h.value=[...h.value??[],e.id],D.value=``,O.value=[]}function j(e,t,n){let r=t+n;if(r<0||r>=e.length)return;let i=[...e];[i[t],i[r]]=[i[r],i[t]],h.value=i}function re(e){h.value=h.value.filter((t,n)=>n!==e)}function ie(){let e=Object.fromEntries(p.field.fields.map(e=>[e.name,structuredClone(e.default??(e.type===`toggle`?!1:e.type===`repeater`?[]:``))]));h.value=[...h.value??[],e]}let M=m(()=>h.value??[[``]]);function ae(e,t,n){let r=M.value.map(e=>[...e]);r[e][t]=n,h.value=r}function se(){h.value=[...M.value,Array(M.value[0]?.length??1).fill(``)]}function ce(){h.value=M.value.map(e=>[...e,``])}function le(e){M.value.length>1&&(h.value=M.value.filter((t,n)=>n!==e))}function ue(e){(M.value[0]?.length??1)>1&&(h.value=M.value.map(t=>t.filter((t,n)=>n!==e)))}let de=C(null),P=m(()=>Object.fromEntries(g.files.value.map(e=>[e.id,e])));async function fe(e){let t=[...e.target.files??[]];e.target.value=``,b.value=!0;try{for(let e of t){let t=await g.uploadFile(e);h.value=[...h.value??[],t.id]}}catch(e){V.error(e.fieldErrors?.file??e.message)}finally{b.value=!1}}let F=m(()=>g.files.value.filter(e=>!(h.value??[]).includes(e.id))),I=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,R=C(``),me=m(()=>{let e=R.value.trim().toLowerCase(),t=(p.field.choices??[]).map(e=>({value:e.value,label:e.label}));if(!e)return h.value&&!t.some(e=>e.value===h.value)?[{value:h.value,label:h.value},...t]:t;let n=t.filter(t=>t.label.toLowerCase().includes(e)||t.value.includes(e)),r=pe.value?Object.keys(pe.value.icons).filter(t=>t.includes(e)&&!n.some(e=>e.value===t)):[];return[...n,...r.map(e=>({value:e,label:e}))].slice(0,60)});return i(R,e=>e.trim()&&L()),(r,i)=>{let a=s(`FieldInput`,!0);return v(),d(`div`,Mt,[e.field.type===`toggle`?T(``,!0):(v(),d(`label`,{key:0,for:e.id,class:`text-[13px] font-medium`},x(e.field.label),9,Nt)),e.field.type===`text`?(v(),S(o(X),{key:1,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[0]||=e=>h.value=e,maxlength:e.field.max,placeholder:e.field.placeholder??``},null,8,[`id`,`modelValue`,`maxlength`,`placeholder`])):e.field.type===`url`?(v(),S(o(X),{key:2,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[1]||=e=>h.value=e,type:`text`,inputmode:`url`,placeholder:`https://… oder /seiten/…`},null,8,[`id`,`modelValue`])):e.field.type===`textarea`?(v(),S(o($e),{key:3,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[2]||=e=>h.value=e,maxlength:e.field.max,rows:`3`},null,8,[`id`,`modelValue`,`maxlength`])):e.field.type===`html`?(v(),S(Ce,{key:4,modelValue:h.value,"onUpdate:modelValue":i[3]||=e=>h.value=e,bordered:``,"min-height":`[&_.tiptap]:min-h-24`},null,8,[`modelValue`])):e.field.type===`number`?(v(),S(o(X),{key:5,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[4]||=e=>h.value=e,modelModifiers:{number:!0},type:`number`,min:e.field.min,max:e.field.max},null,8,[`id`,`modelValue`,`min`,`max`])):e.field.type===`select`?(v(),S(Qe,{key:6,id:e.id,modelValue:h.value,"onUpdate:modelValue":i[5]||=e=>h.value=e,options:e.field.choices},null,8,[`id`,`modelValue`,`options`])):e.field.type===`toggle`?(v(),d(`label`,{key:7,for:e.id,class:`flex items-center justify-between gap-3 py-0.5 text-[13px] font-medium`},[n(x(e.field.label)+` `,1),t(o(Ze),{id:e.id,modelValue:h.value,"onUpdate:modelValue":i[6]||=e=>h.value=e},null,8,[`id`,`modelValue`])],8,Pt)):e.field.type===`icon`?(v(),d(`div`,Ft,[t(o(X),{modelValue:R.value,"onUpdate:modelValue":i[7]||=e=>R.value=e,type:`search`,placeholder:`Alle Symbole durchsuchen (englisch, z. B. calendar)`,class:`h-8 text-[13px]`},null,8,[`modelValue`]),u(`div`,It,[(v(!0),d(y,null,f(me.value,e=>(v(),d(`button`,{key:e.value,type:`button`,class:l([`grid aspect-square place-items-center rounded-md border transition-colors`,h.value===e.value?`border-brand-400 bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":h.value===e.value,onClick:t=>h.value=e.value},[t(z,{name:e.value,class:`size-4`},null,8,[`name`])],10,Lt))),128)),R.value&&!me.value.length?(v(),d(`p`,Rt,`Kein Symbol gefunden.`)):T(``,!0)])])):e.field.type===`image`?(v(),d(`div`,zt,[h.value?(v(),d(`div`,Bt,[u(`img`,{src:o(g).imageUrl(h.value),alt:``,class:`aspect-video w-full object-cover`},null,8,Vt),u(`button`,{type:`button`,class:`absolute top-1.5 right-1.5 grid size-7 place-items-center rounded-md bg-card/90 shadow-sm hover:bg-card`,title:`Bild entfernen`,onClick:i[8]||=e=>h.value=null},[t(o(B),{class:`size-4`})])])):T(``,!0),u(`button`,{type:`button`,class:`flex h-9 items-center justify-center gap-2 rounded-md border border-dashed text-[13px] font-medium text-muted-foreground hover:border-brand-300 hover:text-foreground`,disabled:b.value,onClick:i[9]||=e=>w.value?.click()},[b.value?(v(),S(o(ne),{key:0,class:`size-4 animate-spin`})):(v(),S(o(xe),{key:1,class:`size-4`})),n(` `+x(h.value?`Anderes Bild wählen`:`Bild hochladen`),1)],8,Ht),u(`input`,{ref_key:`imageInput`,ref:w,type:`file`,accept:`image/jpeg,image/png,image/webp,image/gif`,class:`hidden`,onChange:ee},null,544)])):e.field.type===`people`?(v(),d(`div`,Ut,[(h.value??[]).length?(v(),d(`ul`,Wt,[(v(!0),d(y,null,f(h.value,(e,n)=>(v(),d(`li`,{key:e,class:`flex items-center gap-2 rounded-md border bg-card px-2 py-1.5`},[o(k)[e]?(v(),S(oe,{key:0,person:o(k)[e],class:`size-7 text-[10px]`},null,8,[`person`])):T(``,!0),u(`span`,Gt,x(o(k)[e]?.name??`…`),1),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>j(h.value,n,-1)},[t(o(ye),{class:`size-3.5`})],8,Kt),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>re(n)},[t(o(B),{class:`size-3.5`})],8,qt)]))),128))])):T(``,!0),u(`div`,Jt,[t(o(_e),{class:`pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground`}),t(o(X),{id:e.id,modelValue:D.value,"onUpdate:modelValue":i[10]||=e=>D.value=e,class:`pl-8`,placeholder:`Person suchen …`,autocomplete:`off`},null,8,[`id`,`modelValue`]),O.value.length?(v(),d(`ul`,Yt,[(v(!0),d(y,null,f(O.value,e=>(v(),d(`li`,{key:e.id},[u(`button`,{type:`button`,class:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-[13px] hover:bg-accent`,onClick:t=>A(e)},[t(oe,{person:e,class:`size-7 text-[10px]`},null,8,[`person`]),u(`span`,Zt,[u(`span`,Qt,x(e.name),1),u(`span`,$t,x(e.job_title),1)])],8,Xt)]))),128))])):T(``,!0)])])):e.field.type===`table`?(v(),d(`div`,en,[u(`div`,tn,[u(`table`,nn,[u(`tbody`,null,[(v(!0),d(y,null,f(M.value,(e,n)=>(v(),d(`tr`,{key:n,class:`border-b last:border-0`},[(v(!0),d(y,null,f(e,(e,t)=>(v(),d(`td`,{key:t,class:`border-r p-0 last:border-r-0`},[u(`input`,{value:e,class:`h-8 w-full min-w-20 bg-transparent px-2 focus:bg-brand-soft/50 focus:outline-none`,"aria-label":`Zeile ${n+1}, Spalte ${t+1}`,onInput:e=>ae(n,t,e.target.value)},null,40,rn)]))),128)),u(`td`,an,[u(`button`,{type:`button`,class:`grid size-7 place-items-center text-muted-foreground hover:text-destructive`,title:`Zeile entfernen`,onClick:e=>le(n)},[t(o(B),{class:`size-3.5`})],8,on)])]))),128)),u(`tr`,null,[(v(!0),d(y,null,f(M.value[0],(e,n)=>(v(),d(`td`,{key:n,class:`p-0 text-center`},[u(`button`,{type:`button`,class:`mx-auto grid size-7 place-items-center text-muted-foreground hover:text-destructive`,title:`Spalte entfernen`,onClick:e=>ue(n)},[t(o(B),{class:`size-3.5`})],8,sn)]))),128)),i[13]||=u(`td`,null,null,-1)])])])]),u(`div`,cn,[u(`button`,{type:`button`,class:`inline-flex items-center gap-1 text-[13px] font-medium text-brand-text hover:underline`,onClick:se},[t(o(q),{class:`size-3.5`}),i[14]||=n(` Zeile`,-1)]),u(`button`,{type:`button`,class:`inline-flex items-center gap-1 text-[13px] font-medium text-brand-text hover:underline`,onClick:ce},[t(o(q),{class:`size-3.5`}),i[15]||=n(` Spalte`,-1)])])])):e.field.type===`repeater`?(v(),d(`div`,ln,[(v(!0),d(y,null,f(h.value??[],(n,r)=>(v(),d(`details`,{key:r,class:`group rounded-md border bg-card`,open:r===(h.value??[]).length-1},[u(`summary`,dn,[u(`span`,fn,x(n.label||n.title||n.alt||`${e.field.itemLabel} ${r+1}`),1),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:E(e=>j(h.value,r,-1),[`prevent`])},[t(o(ye),{class:`size-3.5`})],8,pn),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:E(e=>j(h.value,r,1),[`prevent`])},[t(o(ve),{class:`size-3.5`})],8,mn),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:E(e=>re(r),[`prevent`])},[t(o(Ye),{class:`size-3.5`})],8,hn)]),u(`div`,gn,[(v(!0),d(y,null,f(e.field.fields,t=>(v(),S(a,{id:`${e.id}-${r}-${t.name}`,key:t.name,modelValue:n[t.name],"onUpdate:modelValue":e=>n[t.name]=e,field:t},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`field`]))),128))])],8,un))),128)),(h.value??[]).length(v(),d(`li`,{key:e,class:`flex items-center gap-2 rounded-md border bg-card px-2 py-1.5 text-[13px]`},[t(o(N),{class:`size-4 shrink-0 text-muted-foreground`}),u(`span`,yn,x(P.value[e]?.name??`Datei nicht mehr vorhanden`),1),P.value[e]?(v(),d(`span`,bn,x(I(P.value[e].size)),1)):T(``,!0),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>j(h.value,n,-1)},[t(o(ye),{class:`size-3.5`})],8,xn),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>re(n)},[t(o(B),{class:`size-3.5`})],8,Sn)]))),128))])):T(``,!0),u(`button`,{type:`button`,class:`flex h-9 items-center justify-center gap-2 rounded-md border border-dashed text-[13px] font-medium text-muted-foreground hover:border-brand-300 hover:text-foreground`,disabled:b.value,onClick:i[11]||=e=>de.value?.click()},[b.value?(v(),S(o(ne),{key:0,class:`size-4 animate-spin`})):(v(),S(o(G),{key:1,class:`size-4`})),i[16]||=n(` Dateien hochladen `,-1)],8,Cn),u(`input`,{ref_key:`fileInput`,ref:de,type:`file`,multiple:``,class:`hidden`,onChange:fe},null,544),F.value.length?(v(),S(Qe,{key:1,"model-value":null,options:F.value.map(e=>({value:e.id,label:e.name})),placeholder:`Bereits hochgeladene Datei wählen …`,"onUpdate:modelValue":i[12]||=e=>e&&(h.value=[...h.value??[],e])},null,8,[`options`])):T(``,!0)])):T(``,!0),e.field.help?(v(),d(`p`,wn,x(e.field.help),1)):T(``,!0)])}}},En={key:0,class:`grid gap-5`},Dn={class:`flex items-start gap-3`},On={class:`grid size-9 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},kn={class:`min-w-0`},An={class:`font-semibold`},jn={key:0,class:`text-xs text-muted-foreground`},Mn={key:0,class:`rounded-md bg-muted px-3 py-2 text-xs text-muted-foreground`},Nn={key:1,class:`grid gap-2`},Pn={class:`text-[13px] font-medium`},Fn={key:1,class:`flex-1 text-[13px]`},In=[`onClick`],Ln=[`onClick`],Rn=[`disabled`,`onClick`],zn=[`open`],Bn={class:`flex cursor-pointer items-center gap-2 px-3 py-2 text-[13px] font-medium`},Vn={key:0,class:`ml-auto rounded bg-amber-100 px-1.5 py-0.5 text-[11px] text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},Hn={class:`grid gap-3 border-t px-3 py-3`},Un={class:`mb-1 text-xs font-semibold text-muted-foreground`},Wn={class:`grid max-h-36 gap-0.5 overflow-y-auto`},Gn=[`checked`,`onChange`],Kn={__name:`BlockSettings`,props:{block:{type:Object,required:!0}},setup(e){let r=e,s=a(`pagebuilder:editor`),c=m(()=>s.types[r.block.type]),l=m(()=>(c.value?.fields??[]).filter(e=>e.type!==`html`));i(()=>r.block.data.layout,()=>{r.block.type===`columns`&&Et(r.block)});function p(){r.block.items.push({id:bt(),title:`${c.value.container.label} ${r.block.items.length+1}`,blocks:[]})}function h(e,t){let n=r.block.items,i=e+t;i>=0&&ir.block.visibility??{}),b=m(()=>Object.values(_.value).some(e=>e?.length));function C(e,t){let n=new Set(_.value[e]??[]);n.has(t)?n.delete(t):n.add(t),r.block.visibility={..._.value,[e]:[...n]}}let E=m(()=>[{key:`role`,label:`Rollen`,options:s.audienceOptions.role},{key:`department`,label:`Abteilungen`,options:s.audienceOptions.department.map(e=>({value:e,label:e}))},{key:`location`,label:`Standorte`,options:s.audienceOptions.location.map(e=>({value:e,label:e}))}].filter(e=>e.options.length));return(r,i)=>c.value?(v(),d(`div`,En,[u(`header`,Dn,[u(`span`,On,[(v(),S(w(o(yt)(c.value.icon)),{class:`size-4.5`}))]),u(`div`,kn,[u(`h2`,An,x(c.value.label),1),c.value.description?(v(),d(`p`,jn,x(c.value.description),1)):T(``,!0)])]),c.value.fields.some(e=>e.type===`html`)?(v(),d(`p`,Mn,` Den Text bearbeiten Sie direkt im Block. Markieren Sie Text für Fettdruck, Links und Listen. `)):T(``,!0),(v(!0),d(y,null,f(l.value,t=>(v(),S(Tn,{id:`field-${e.block.id}-${t.name}`,key:`${e.block.id}-${t.name}`,modelValue:e.block.data[t.name],"onUpdate:modelValue":n=>e.block.data[t.name]=n,field:t},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`field`]))),128)),c.value.container&&c.value.container.max>1&&c.value.key!==`columns`?(v(),d(`section`,Nn,[u(`h3`,Pn,x(c.value.container.label)+`s`,1),(v(!0),d(y,null,f(e.block.items,(n,r)=>(v(),d(`div`,{key:n.id,class:`flex items-center gap-1`},[c.value.container.titled?(v(),S(o(X),{key:0,modelValue:n.title,"onUpdate:modelValue":e=>n.title=e,class:`h-8`,"aria-label":`Titel ${r+1}`,maxlength:`120`},null,8,[`modelValue`,`onUpdate:modelValue`,`aria-label`])):(v(),d(`span`,Fn,x(c.value.container.label)+` `+x(r+1),1)),u(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>h(r,-1)},[t(o(ye),{class:`size-3.5`})],8,In),u(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:e=>h(r,1)},[t(o(ve),{class:`size-3.5`})],8,Ln),u(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded text-destructive hover:bg-destructive/10 disabled:opacity-30`,title:`Entfernen`,disabled:e.block.items.length<=c.value.container.min,onClick:e=>g(r)},[t(o(Ye),{class:`size-3.5`})],8,Rn)]))),128)),e.block.items.length(v(),d(`fieldset`,{key:e.key,class:`grid gap-1`},[u(`legend`,Un,x(e.label),1),u(`div`,Wn,[(v(!0),d(y,null,f(e.options,t=>(v(),d(`label`,{key:t.value,class:`flex items-center gap-2 rounded px-1 py-0.5 text-[13px] hover:bg-accent`},[u(`input`,{type:`checkbox`,class:`size-4 accent-[var(--brand)]`,checked:(_.value[e.key]??[]).includes(t.value),onChange:n=>C(e.key,t.value)},null,40,Gn),n(` `+x(t.label),1)]))),128))])]))),128))])],8,zn)):T(``,!0)])):T(``,!0)}},qn=[`data-block-id`],Jn={class:`pb-handle flex cursor-grab items-center gap-1 rounded px-1 py-0.5 font-medium text-muted-foreground active:cursor-grabbing`,title:`Ziehen zum Verschieben`},Yn={key:2,class:`rounded-md border border-dashed p-4 text-sm text-muted-foreground`},Xn={__name:`EditorBlock`,props:{block:{type:Object,required:!0}},setup(e){let r=e,i=a(`pagebuilder:editor`),s=m(()=>i.types[r.block.type]),c=m(()=>i.selectedId.value===r.block.id),f=m(()=>i.hoveredId.value===r.block.id),p=m(()=>Object.values(r.block.visibility??{}).some(e=>e?.length)),h=m(()=>({...r.block,props:i.previews[r.block.id]??r.block.props}));return(r,a)=>(v(),d(`div`,{class:l([`relative rounded-md outline-offset-4 transition-[outline-color]`,[c.value?`outline-2 outline-brand-500`:f.value?`outline-1 outline-brand-300`:`outline-1 outline-transparent`,s.value?``:`opacity-60`]]),"data-block-id":e.block.id,onClick:a[5]||=E(t=>o(i).select(e.block.id),[`stop`]),onMouseover:a[6]||=E(t=>o(i).hoveredId.value=e.block.id,[`stop`]),onMouseleave:a[7]||=t=>o(i).hoveredId.value===e.block.id&&(o(i).hoveredId.value=null)},[(c.value||f.value)&&!o(i).readOnly.value?(v(),d(`div`,{key:0,class:`absolute -top-3.5 right-2 z-20 flex items-center gap-0.5 rounded-md border bg-card px-1 py-0.5 text-xs shadow-sm`,onClick:a[4]||=E(()=>{},[`stop`])},[u(`span`,Jn,[t(o(Ne),{class:`size-3.5`}),(v(),S(w(o(yt)(s.value?.icon)),{class:`size-3.5`})),n(` `+x(s.value?.label??e.block.type),1)]),p.value?(v(),S(o(Be),{key:0,class:`mx-1 size-3.5 text-amber-600`,title:`Nur für bestimmte Personen sichtbar`})):T(``,!0),a[8]||=u(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:a[0]||=t=>o(i).move(e.block.id,-1)},[t(o(U),{class:`size-3.5`})]),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:a[1]||=t=>o(i).move(e.block.id,1)},[t(o(Ee),{class:`size-3.5`})]),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Duplizieren`,onClick:a[2]||=t=>o(i).duplicate(e.block.id)},[t(o(Fe),{class:`size-3.5`})]),u(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:a[3]||=t=>o(i).remove(e.block.id)},[t(o(Ye),{class:`size-3.5`})])])):T(``,!0),s.value&&o(nt)(s.value.component)?(v(),S(w(o(nt)(s.value.component)),{key:1,block:h.value},null,8,[`block`])):(v(),d(`div`,Yn,` Dieser Block (`+x(e.block.type)+`) ist nicht verfügbar – vermutlich ist das zugehörige Plugin deaktiviert. Er wird nicht angezeigt. `,1))],42,qn))}},Zn={key:0,class:`pointer-events-none text-center text-xs text-muted-foreground`},Qn={__name:`EditorBlockList`,props:{item:{type:Object,required:!0},root:{type:Boolean,default:!1}},setup(e){let r=e,i=a(`pagebuilder:editor`),s=m(()=>r.root||i.containsActive(r.item));return(r,a)=>(v(),d(`div`,{class:l([`grid`,e.root?`gap-6`:`gap-4`])},[t(o(Le),{modelValue:e.item.blocks,"onUpdate:modelValue":a[0]||=t=>e.item.blocks=t,group:{name:`pagebuilder`},handle:`.pb-handle`,animation:150,disabled:o(i).readOnly.value,"ghost-class":`pb-ghost`,class:l([`grid min-h-6`,[e.root?`gap-6`:`gap-4`,e.item.blocks.length?``:`rounded-md border border-dashed border-border bg-muted/40 p-3`]]),onAdd:a[1]||=t=>o(i).select(e.item.blocks[t.newIndex]?.id)},{default:b(()=>[(v(!0),d(y,null,f(e.item.blocks,e=>(v(),S(Xn,{key:e.id,block:e},null,8,[`block`]))),128)),e.item.blocks.length?T(``,!0):(v(),d(`p`,Zn,x(e.root?`Noch keine Inhalte. Blöcke aus der rechten Spalte hierher ziehen oder hinzufügen.`:`Blöcke hierher ziehen`),1))]),_:1},8,[`modelValue`,`disabled`,`class`]),!o(i).readOnly.value&&(s.value||!e.item.blocks.length)?(v(),S(o(Ae),{key:0},{default:b(()=>[t(o(je),{class:`flex h-8 items-center justify-center gap-1.5 rounded-md border border-dashed text-xs font-medium text-muted-foreground transition-colors hover:border-brand-300 hover:bg-brand-soft hover:text-brand-soft-foreground`,onClick:a[2]||=E(()=>{},[`stop`])},{default:b(()=>[t(o(q),{class:`size-3.5`}),a[5]||=n(` Block hinzufügen `,-1)]),_:1}),t(o(Me),{class:`max-h-[70vh] w-[22rem] overflow-y-auto p-3`,align:`center`,onClick:a[4]||=E(()=>{},[`stop`])},{default:b(()=>[t(jt,{compact:``,onPick:a[3]||=t=>o(i).insert(e.item.blocks,e.item.blocks.length,t)})]),_:1})]),_:1})):T(``,!0)],2))}},$n={key:0,class:`rounded-md bg-amber-50 px-3 py-2 text-sm text-amber-900 dark:bg-amber-950/50 dark:text-amber-100`},er={class:`grid gap-2`},tr={class:`flex cursor-pointer items-start gap-3 rounded-md border p-3 has-checked:border-brand-400 has-checked:bg-brand-soft/60`},nr={class:`flex cursor-pointer items-start gap-3 rounded-md border p-3 has-checked:border-brand-400 has-checked:bg-brand-soft/60`},rr={class:`grid flex-1 gap-2`},ir={__name:`PublishDialog`,props:e({scheduledAt:{type:String,default:null}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`publish`],[`update:open`]),setup(e,{emit:a}){let s=e,l=r(e,`open`),f=a,p=C(`now`),m=C(``),h=C(!1);function g(e){let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}`}i(l,e=>{if(e){p.value=`now`;let e=new Date(Date.now()+864e5);e.setHours(7,0,0,0),m.value=g(e),h.value=!1}});async function _(){h.value=!0,f(`publish`,p.value===`later`?new Date(m.value).toISOString():null),setTimeout(()=>h.value=!1,800)}return(e,r)=>(v(),S(o(et),{open:l.value,"onUpdate:open":r[4]||=e=>l.value=e},{default:b(()=>[t(o(Z),{class:`sm:max-w-md`},{default:b(()=>[t(o(J),null,{default:b(()=>[t(o(Q),null,{default:b(()=>[...r[5]||=[n(`Seite veröffentlichen`,-1)]]),_:1}),t(o(Xe),null,{default:b(()=>[...r[6]||=[n(`Der aktuelle Stand wird für alle sichtbar, die die Seite sehen dürfen. Frühere Stände bleiben unter „Versionen“ erhalten.`,-1)]]),_:1})]),_:1}),s.scheduledAt?(v(),d(`p`,$n,` Es ist bereits eine Veröffentlichung geplant. Sie wird durch diese ersetzt. `)):T(``,!0),u(`fieldset`,er,[r[9]||=u(`legend`,{class:`sr-only`},`Zeitpunkt`,-1),u(`label`,tr,[c(u(`input`,{"onUpdate:modelValue":r[0]||=e=>p.value=e,type:`radio`,value:`now`,class:`mt-1 accent-[var(--brand)]`},null,512),[[D,p.value]]),r[7]||=u(`span`,null,[u(`span`,{class:`block text-sm font-medium`},`Jetzt veröffentlichen`),u(`span`,{class:`block text-xs text-muted-foreground`},`Sofort sichtbar.`)],-1)]),u(`label`,nr,[c(u(`input`,{"onUpdate:modelValue":r[1]||=e=>p.value=e,type:`radio`,value:`later`,class:`mt-1 accent-[var(--brand)]`},null,512),[[D,p.value]]),u(`span`,rr,[r[8]||=u(`span`,null,[u(`span`,{class:`block text-sm font-medium`},`Zeitgesteuert`),u(`span`,{class:`block text-xs text-muted-foreground`},`Der aktuelle Stand geht zum gewählten Zeitpunkt online.`)],-1),p.value===`later`?(v(),S(o(X),{key:0,modelValue:m.value,"onUpdate:modelValue":r[2]||=e=>m.value=e,type:`datetime-local`,min:g(new Date),"aria-label":`Zeitpunkt der Veröffentlichung`},null,8,[`modelValue`,`min`])):T(``,!0)])])]),t(o(tt),null,{default:b(()=>[t(o(Y),{variant:`outline`,onClick:r[3]||=e=>l.value=!1},{default:b(()=>[...r[10]||=[n(`Abbrechen`,-1)]]),_:1}),t(o(Y),{disabled:h.value||p.value===`later`&&!m.value,onClick:_},{default:b(()=>[p.value===`later`?(v(),S(o(Te),{key:0})):(v(),S(o(qe),{key:1})),n(` `+x(p.value===`later`?`Planen`:`Veröffentlichen`),1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},ar={class:`flex min-h-0 flex-1`},or={class:`w-64 shrink-0 overflow-y-auto border-r p-2`},sr={key:0,class:`grid place-items-center py-10`},cr={key:1,class:`px-3 py-6 text-center text-sm text-muted-foreground`},lr=[`onClick`],ur={class:`block text-sm font-medium`},dr={class:`block truncate text-xs text-muted-foreground`},fr={class:`flex min-w-0 flex-1 flex-col`},pr={class:`min-h-0 flex-1 overflow-y-auto bg-background p-6`},mr={key:0,class:`grid place-items-center py-16`},hr={class:`mb-6 text-2xl font-semibold tracking-tight`},gr={key:0,class:`flex items-center justify-between gap-3 border-t px-5 py-3`},_r={class:`text-xs text-muted-foreground`},vr={__name:`RevisionsDialog`,props:e({base:{type:String,required:!0},readOnly:{type:Boolean,default:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`restored`],[`update:open`]),setup(e,{emit:a}){let s=e,c=r(e,`open`),p=a,m=C(null),h=C(null),g=C(null),_=C(!1);i(c,async e=>{e&&(m.value=null,g.value=null,h.value=null,m.value=(await H.get(`${s.base}/versionen`)).revisions,m.value.length&&w(m.value[0]))});async function w(e){h.value=e,_.value=!0;try{g.value=await H.get(`${s.base}/versionen/${e.id}`)}finally{_.value=!1}}async function E(){try{p(`restored`,await H.post(`${s.base}/versionen/${h.value.id}/wiederherstellen`))}catch(e){V.error(e.message)}}return(r,i)=>(v(),S(o(et),{open:c.value,"onUpdate:open":i[0]||=e=>c.value=e},{default:b(()=>[t(o(Z),{class:`flex h-[85vh] max-w-5xl flex-col gap-0 p-0 sm:max-w-5xl`},{default:b(()=>[t(o(J),{class:`border-b px-5 py-4`},{default:b(()=>[t(o(Q),null,{default:b(()=>[...i[1]||=[n(`Versionen`,-1)]]),_:1}),t(o(Xe),null,{default:b(()=>[...i[2]||=[n(`Jede Veröffentlichung wird gespeichert. Eine ältere Version lässt sich als Entwurf zurückholen.`,-1)]]),_:1})]),_:1}),u(`div`,ar,[u(`ul`,or,[m.value===null?(v(),d(`li`,sr,[t(o(ne),{class:`size-5 animate-spin text-muted-foreground`})])):m.value.length?T(``,!0):(v(),d(`li`,cr,`Noch keine veröffentlichten Versionen.`)),(v(!0),d(y,null,f(m.value??[],e=>(v(),d(`li`,{key:e.id},[u(`button`,{type:`button`,class:l([`w-full rounded-md px-3 py-2 text-left`,h.value?.id===e.id?`bg-brand-soft text-brand-soft-foreground`:`hover:bg-accent`]),onClick:t=>w(e)},[u(`span`,ur,x(o(se)(e.created_at)),1),u(`span`,dr,[n(x(e.action),1),e.user?(v(),d(y,{key:0},[n(` · `+x(e.user),1)],64)):T(``,!0)])],10,lr)]))),128))]),u(`div`,fr,[u(`div`,pr,[_.value?(v(),d(`div`,mr,[t(o(ne),{class:`size-6 animate-spin text-muted-foreground`})])):g.value?(v(),d(y,{key:1},[u(`h1`,hr,x(g.value.title),1),t(rt,{content:g.value.content},null,8,[`content`])],64)):T(``,!0)]),h.value?(v(),d(`div`,gr,[u(`span`,_r,x(new Date(h.value.created_at).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`})),1),t(o(Y),{disabled:e.readOnly,onClick:E},{default:b(()=>[t(o(He)),i[3]||=n(` Als Entwurf wiederherstellen`,-1)]),_:1},8,[`disabled`])])):T(``,!0)])])]),_:1})]),_:1},8,[`open`]))}},yr={class:`grid gap-1.5`},br={key:0,class:`text-[13px] text-destructive`},xr={key:1,class:`text-xs text-muted-foreground`},Sr={key:0,class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Cr={__name:`PageSettingsDialog`,props:e({page:{type:Object,required:!0},base:{type:String,required:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`saved`],[`update:open`]),setup(e,{emit:a}){let s=e,c=r(e,`open`),l=a,f=C({slug:``,in_navigation:!1}),p=C({}),m=C(!1);i(c,e=>{e&&(f.value={slug:s.page.slug,in_navigation:s.page.in_navigation},p.value={})});async function h(){m.value=!0;try{l(`saved`,await H.put(`${s.base}/einstellungen`,f.value)),c.value=!1}catch(e){p.value=e.fieldErrors??{}}finally{m.value=!1}}return(r,i)=>(v(),S(o(et),{open:c.value,"onUpdate:open":i[3]||=e=>c.value=e},{default:b(()=>[t(o(Z),{class:`sm:max-w-md`},{default:b(()=>[t(o(J),null,{default:b(()=>[t(o(Q),null,{default:b(()=>[...i[4]||=[n(`Seiteneinstellungen`,-1)]]),_:1}),t(o(Xe),null,{default:b(()=>[...i[5]||=[n(`Sichtbarkeit und Rechte pflegen Sie in der Administration unter „Seiten“.`,-1)]]),_:1})]),_:1}),u(`form`,{class:`grid gap-4`,onSubmit:E(h,[`prevent`])},[u(`label`,yr,[i[6]||=u(`span`,{class:`text-[13px] font-medium`},`Kürzel in der Adresse`,-1),t(o(X),{modelValue:f.value.slug,"onUpdate:modelValue":i[0]||=e=>f.value.slug=e,maxlength:`120`,"aria-invalid":!!p.value.slug},null,8,[`modelValue`,`aria-invalid`]),p.value.slug?(v(),d(`span`,br,x(p.value.slug),1)):(v(),d(`span`,xr,`Ändert auch die Adressen aller Unterseiten. Alte Links funktionieren dann nicht mehr.`))]),e.page.can.navigation?(v(),d(`label`,Sr,[i[7]||=n(` In der Hauptnavigation anzeigen `,-1),t(o(Ze),{modelValue:f.value.in_navigation,"onUpdate:modelValue":i[1]||=e=>f.value.in_navigation=e},null,8,[`modelValue`])])):T(``,!0),t(o(tt),null,{default:b(()=>[t(o(Y),{type:`button`,variant:`outline`,onClick:i[2]||=e=>c.value=!1},{default:b(()=>[...i[8]||=[n(`Abbrechen`,-1)]]),_:1}),t(o(Y),{type:`submit`,disabled:m.value},{default:b(()=>[...i[9]||=[n(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}},wr={class:`grid gap-1.5`},Tr={__name:`ReviewDialog`,props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:e([`submit`],[`update:open`]),setup(e,{emit:a}){let s=r(e,`open`),c=a,l=C(``),d=C(!1);i(s,e=>e&&(l.value=``,d.value=!1));function f(){d.value=!0,c(`submit`,l.value),setTimeout(()=>d.value=!1,1500)}return(e,r)=>(v(),S(o(et),{open:s.value,"onUpdate:open":r[2]||=e=>s.value=e},{default:b(()=>[t(o(Z),{class:`sm:max-w-md`},{default:b(()=>[t(o(J),null,{default:b(()=>[t(o(Q),null,{default:b(()=>[...r[3]||=[n(`Freigabe anfordern`,-1)]]),_:1}),t(o(Xe),null,{default:b(()=>[...r[4]||=[n(`Ihre Änderungen sind als Entwurf gespeichert. Die Personen, die diese Seite veröffentlichen dürfen, werden benachrichtigt.`,-1)]]),_:1})]),_:1}),u(`label`,wr,[r[5]||=u(`span`,{class:`text-[13px] font-medium`},`Nachricht (freiwillig)`,-1),t(o($e),{modelValue:l.value,"onUpdate:modelValue":r[0]||=e=>l.value=e,rows:`3`,maxlength:`1000`,placeholder:`z. B. Bitte bis Freitag veröffentlichen.`},null,8,[`modelValue`])]),t(o(tt),null,{default:b(()=>[t(o(Y),{variant:`outline`,onClick:r[1]||=e=>s.value=!1},{default:b(()=>[...r[6]||=[n(`Abbrechen`,-1)]]),_:1}),t(o(Y),{disabled:d.value,onClick:f},{default:b(()=>[t(o(qe)),r[7]||=n(` Anfordern`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},Er={class:`flex h-dvh flex-col bg-background`},Dr={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},Or={class:`min-w-0 flex-1`},kr={class:`flex items-center gap-2`},Ar={class:`truncate text-sm font-semibold`},jr={class:`flex items-center gap-1 truncate text-xs text-muted-foreground`,"aria-live":`polite`},Mr={class:`hidden items-center gap-0.5 md:flex`},Nr=[`disabled`],Pr=[`disabled`],Fr={class:`flex rounded-md border p-0.5`,role:`group`,"aria-label":`Vorschau`},Ir=[`title`,`aria-pressed`,`onClick`],Lr=[`href`],Rr={key:0,class:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-amber-200 bg-amber-50 px-4 py-2.5 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950/50 dark:text-amber-100`},zr={class:`flex-1`},Br={class:`flex min-h-0 flex-1`},Vr={key:0,class:`mb-2 flex flex-wrap gap-1 text-xs text-muted-foreground`,"aria-label":`Brotkrumen`},Hr=[`readonly`],Ur={class:`@container`},Wr={class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},Gr={class:`flex shrink-0 border-b px-2`,role:`tablist`},Kr=[`aria-selected`,`disabled`,`onClick`],qr={key:0,class:`absolute inset-x-2 bottom-0 h-[3px] rounded-t-full bg-brand`},Jr={class:`min-h-0 flex-1 overflow-y-auto p-4`},Yr={class:`fixed right-4 bottom-4 z-30 flex gap-2 lg:hidden`},Xr={__name:`Editor`,props:{page:{type:Object,required:!0},working:{type:Object,required:!0},lockedBy:{type:Object,default:null},blockTypes:{type:Array,required:!0},blockGroups:{type:Object,required:!0},files:{type:Array,default:()=>[]},audienceOptions:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},uploadsUrl:{type:String,required:!0}},setup(e){let r=e,a=`/redaktion/seiten/${r.page.id}`,s=Object.fromEntries(r.blockTypes.map(e=>[e.key,e])),D=C(r.page),A=h(xt(r.working)),j=C(null),M=C(null),oe=h({}),se=C(r.files),N=C(!!r.lockedBy),P=C(r.lockedBy),pe=C(`desktop`),F=C(!1),L=C(`blocks`),R=m(()=>j.value?$(A.content.blocks,j.value)?.block??null:null);i(j,e=>{L.value=e?`block`:`blocks`});function z(e){j.value=e??null}function _e(e,t,n){if(N.value)return;let r=Ct(n);e.splice(t,0,r),z(r.id)}function ve(e){let t=R.value?$(A.content.blocks,R.value.id):null;t?_e(t.list,t.index+1,e):_e(A.content.blocks,A.content.blocks.length,e),F.value=!1,requestAnimationFrame(()=>document.querySelector(`[data-block-id="${j.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`}))}function ye(e){let t=$(A.content.blocks,e);t&&(t.list.splice(t.index,1),j.value===e&&z(null))}function xe(e,t){let n=$(A.content.blocks,e),r=n?n.index+t:-1;n&&r>=0&&rt.items?.includes(e)||$(e.blocks,t.id))}async function Ee(e){let t=new FormData;return t.append(`image`,e),H.post(`${a}/bilder`,t)}async function B(e){let t=new FormData;t.append(`file`,e);let n=await H.post(`${a}/dateien`,t);return se.value=[n.file,...se.value],n.file}let ke=h({});g(`pagebuilder:editor`,{types:s,groups:r.blockGroups,selectedId:j,hoveredId:M,previews:oe,readOnly:N,files:se,peopleCache:ke,audienceOptions:r.audienceOptions,select:z,insert:_e,remove:ye,move:xe,duplicate:Se,containsActive:Ce,uploadImage:Ee,uploadFile:B,imageUrl:e=>`${r.uploadsUrl}/${e}`}),g(`pagebuilder:list`,Qn),g(`pagebuilder:types`,s),g(`pagebuilder:editing`,m(()=>!N.value));let Ae={},je;function Me(){let e=[];Tt(A.content.blocks,t=>{if(!s[t.type]?.dynamic)return;let n=JSON.stringify(t.data);Ae[t.id]!==n&&(Ae[t.id]=n,e.push({id:t.id,type:t.type,data:t.data}))}),e.length&&H.post(`${a}/vorschau`,{blocks:e.slice(0,100)}).then(e=>Object.assign(oe,e.props)).catch(()=>{})}let U=C(`saved`),Ne=C(D.value.draft_updated_at),Pe,W=JSON.stringify(A);function Fe(){return{title:A.title,content:A.content}}async function Le(){if(clearTimeout(Pe),N.value)return;let e=JSON.stringify(A);if(e===W){U.value=`saved`;return}U.value=`saving`;try{let t=await H.put(`${a}/entwurf`,Fe());W=e,D.value=t.page,Ne.value=new Date().toISOString(),U.value=JSON.stringify(A)===W?`saved`:`dirty`,U.value===`dirty`&&Be()}catch(e){Ue(e),U.value=`error`}}function Be(e=1200){clearTimeout(Pe),Pe=setTimeout(Le,e)}function Ue(e){e.status===423?(N.value=!0,P.value=e.data.lockedBy,V.error(e.message)):e.status===422&&e.data?.errors?.title?V.error(e.data.errors.title[0]):V.error(e.message||`Speichern fehlgeschlagen. Bitte die Verbindung prüfen.`)}let G=C([]),K=C([]),Ge=JSON.stringify(A),Ke=!1,q;function Xe(){let e=JSON.stringify(A);e!==Ge&&(G.value=[...G.value.slice(-49),Ge],K.value=[],Ge=e)}function J(e){Ke=!0;let t=JSON.parse(e);A.title=t.title,A.content=t.content,Ge=e,j.value&&!$(A.content.blocks,j.value)&&z(null),setTimeout(()=>Ke=!1)}function Ze(){Xe(),G.value.length&&(K.value=[...K.value,JSON.stringify(A)],J(G.value.at(-1)),G.value=G.value.slice(0,-1))}function Qe(){K.value.length&&(G.value=[...G.value,JSON.stringify(A)],J(K.value.at(-1)),K.value=K.value.slice(0,-1))}i(A,()=>{N.value||(U.value=`dirty`,Be(),clearTimeout(je),je=setTimeout(Me,500),Ke||(clearTimeout(q),q=setTimeout(Xe,700)))},{deep:!0});function X(e){let t=e.target.closest?.(`input, textarea, select, [contenteditable="true"]`);(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),Le()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`z`?(e.preventDefault(),e.shiftKey?Qe():Ze()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`y`?(e.preventDefault(),Qe()):e.key===`Escape`&&!t&&z(null)}let $e;async function et(e=!1){try{await H.post(`${a}/sperre`,{takeover:e}),e&&(N.value=!1,P.value=null,V.success(`Sie bearbeiten die Seite jetzt.`))}catch(e){e.status===423&&(N.value=!0,P.value=e.data.lockedBy)}}async function tt(){await et(!0),O.reload({only:[`working`,`page`],onSuccess:()=>Object.assign(A,xt(r.working))})}function Z(){N.value||(JSON.stringify(A)!==W&&fetch(`${a}/entwurf`,{method:`PUT`,keepalive:!0,credentials:`same-origin`,headers:{"Content-Type":`application/json`,Accept:`application/json`,"X-XSRF-TOKEN":decodeURIComponent(document.cookie.match(/XSRF-TOKEN=([^;]*)/)?.[1]??``)},body:JSON.stringify(Fe())}),H.post(`${a}/sperre/freigeben`,{},{keepalive:!0}).catch(()=>{}))}p(()=>{Me(),window.addEventListener(`keydown`,X),window.addEventListener(`pagehide`,Z),$e=setInterval(()=>!N.value&&et(),45e3)}),_(()=>{window.removeEventListener(`keydown`,X),window.removeEventListener(`pagehide`,Z),clearInterval($e),clearTimeout(Pe),Z()});let Q=h({publish:!1,review:!1,revisions:!1,settings:!1,newPage:!1});async function nt(e){clearTimeout(Pe);try{let t=await H.post(`${a}/veroeffentlichen`,{...Fe(),scheduled_at:e||null});D.value=t.page,W=JSON.stringify(A),U.value=`saved`,Q.publish=!1,V.success(e?`Veröffentlichung geplant für ${new Date(e).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`})}`:`Seite veröffentlicht`,{action:e?void 0:{label:`Ansehen`,onClick:()=>O.visit(D.value.url)}})}catch(e){Ue(e)}}async function rt(e){await Le();try{let t=await H.post(`${a}/freigabe`,{message:e});Q.review=!1,V.success(`Freigabe angefordert – ${t.recipients} ${t.recipients===1?`Person wurde`:`Personen wurden`} benachrichtigt.`)}catch(e){V.error(e.message)}}async function at(e,t,n,r){if(!n||window.confirm(n))try{let n=await H[e](t);if(n.page&&(D.value=n.page),n.working&&(J(JSON.stringify(n.working)),W=JSON.stringify(A)),n.redirect){O.visit(n.redirect);return}V.success(r)}catch(e){V.error(e.message)}}function st(e){D.value=e.page,J(JSON.stringify(e.working)),W=JSON.stringify(A),Object.keys(Ae).forEach(e=>delete Ae[e]),Me(),Q.revisions=!1,V.success(`Version als Entwurf wiederhergestellt`)}let ct=m(()=>D.value.scheduled_at?{label:`Geplant: ${new Date(D.value.scheduled_at).toLocaleString(`de-DE`,{dateStyle:`short`,timeStyle:`short`})}`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`}:D.value.is_published?D.value.has_draft?{label:`Entwurf mit Änderungen`,class:`bg-brand-soft text-brand-soft-foreground`}:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`}:{label:`Nicht veröffentlicht`,class:`bg-muted text-muted-foreground`}),lt=[{key:`desktop`,label:`Desktop`,icon:re,width:`max-w-[1100px]`},{key:`tablet`,label:`Tablet`,icon:_t,width:`max-w-[768px]`},{key:`mobile`,label:`Smartphone`,icon:Je,width:`max-w-[390px]`}],ut=m(()=>lt.find(e=>e.key===pe.value).width);return(r,i)=>(v(),d(y,null,[t(o(te),{title:`Bearbeiten: ${A.title}`},null,8,[`title`]),u(`div`,Er,[u(`header`,Dr,[t(o(k),{href:D.value.is_published?D.value.url:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zurück`},{default:b(()=>[t(o(be),{class:`size-5`})]),_:1},8,[`href`]),u(`div`,Or,[u(`div`,kr,[u(`span`,Ar,x(A.title||`Ohne Titel`),1),u(`span`,{class:l([`hidden shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium sm:inline`,ct.value.class])},x(ct.value.label),3)]),u(`p`,jr,[N.value?(v(),d(y,{key:0},[t(o(We),{class:`size-3`}),i[21]||=n(` Nur lesen`,-1)],64)):U.value===`saving`?(v(),d(y,{key:1},[t(o(ne),{class:`size-3 animate-spin`}),i[22]||=n(` Speichert …`,-1)],64)):U.value===`error`?(v(),d(y,{key:2},[t(o(ot),{class:`size-3 text-destructive`}),i[23]||=n(` Nicht gespeichert`,-1)],64)):U.value===`dirty`?(v(),d(y,{key:3},[n(`Ungespeicherte Änderungen`)],64)):Ne.value?(v(),d(y,{key:4},[t(o(De),{class:`size-3`}),n(` Entwurf gespeichert `+x(o(me)(Ne.value)),1)],64)):(v(),d(y,{key:5},[n(x(D.value.url),1)],64))])]),u(`div`,Mr,[u(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Rückgängig (Strg+Z)`,disabled:!G.value.length||N.value,onClick:Ze},[t(o(ie),{class:`size-4`})],8,Nr),u(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Wiederholen (Strg+Y)`,disabled:!K.value.length||N.value,onClick:Qe},[t(o(we),{class:`size-4`})],8,Pr),i[24]||=u(`span`,{class:`mx-1 h-6 w-px bg-border`},null,-1),u(`div`,Fr,[(v(),d(y,null,f(lt,e=>u(`button`,{key:e.key,type:`button`,class:l([`grid size-8 place-items-center rounded`,pe.value===e.key?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":pe.value===e.key,onClick:t=>pe.value=e.key},[(v(),S(w(e.icon),{class:`size-4`}))],10,Ir)),64))])]),t(o(de),null,{default:b(()=>[t(o(ce),{class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent`,"aria-label":`Weitere Aktionen`},{default:b(()=>[t(o(Re),{class:`size-5`})]),_:1}),t(o(fe),{align:`end`,class:`w-64`},{default:b(()=>[D.value.is_published?(v(),S(o(I),{key:0,"as-child":``},{default:b(()=>[u(`a`,{href:D.value.url,target:`_blank`},[t(o(Ve)),i[25]||=n(` Veröffentlichte Seite ansehen`,-1)],8,Lr)]),_:1})):T(``,!0),t(o(I),{onSelect:i[0]||=e=>Q.revisions=!0},{default:b(()=>[t(o(He)),i[26]||=n(` Versionen`,-1)]),_:1}),D.value.can.configure?(v(),S(o(I),{key:1,onSelect:i[1]||=e=>Q.settings=!0},{default:b(()=>[t(o(Ie)),i[27]||=n(` Seiteneinstellungen`,-1)]),_:1})):T(``,!0),D.value.can.create_child?(v(),S(o(I),{key:2,onSelect:i[2]||=e=>Q.newPage=!0},{default:b(()=>[t(o(ze)),i[28]||=n(` Unterseite anlegen`,-1)]),_:1})):T(``,!0),t(o(le)),D.value.has_draft&&D.value.is_published&&!N.value?(v(),S(o(I),{key:3,onSelect:i[3]||=e=>at(`delete`,`${a}/entwurf`,`Alle Änderungen seit der letzten Veröffentlichung verwerfen?`,`Entwurf verworfen`)},{default:b(()=>[t(o(ie)),i[29]||=n(` Entwurf verwerfen `,-1)]),_:1})):T(``,!0),D.value.scheduled_at&&D.value.can.publish?(v(),S(o(I),{key:4,onSelect:i[4]||=e=>at(`delete`,`${a}/planung`,null,`Planung aufgehoben – der Stand ist wieder ein Entwurf`)},{default:b(()=>[t(o(Te)),i[30]||=n(` Geplante Veröffentlichung aufheben `,-1)]),_:1})):T(``,!0),D.value.is_published&&D.value.can.publish?(v(),S(o(I),{key:5,onSelect:i[5]||=e=>at(`post`,`${a}/zurueckziehen`,`Seite offline nehmen? Der Inhalt bleibt als Entwurf erhalten.`,`Seite ist offline`)},{default:b(()=>[t(o(We)),i[31]||=n(` Veröffentlichung zurückziehen `,-1)]),_:1})):T(``,!0),D.value.can.delete?(v(),S(o(I),{key:6,class:`text-destructive`,onSelect:i[6]||=e=>at(`delete`,a,`Seite endgültig löschen? Versionen und Dateien werden entfernt.`,`Seite gelöscht`)},{default:b(()=>[t(o(Ye)),i[32]||=n(` Seite löschen `,-1)]),_:1})):T(``,!0)]),_:1})]),_:1}),D.value.can.publish?(v(),S(o(Y),{key:0,disabled:N.value,onClick:i[7]||=e=>Q.publish=!0},{default:b(()=>[t(o(qe)),i[33]||=n(),i[34]||=u(`span`,{class:`hidden sm:inline`},`Veröffentlichen`,-1)]),_:1},8,[`disabled`])):(v(),S(o(Y),{key:1,disabled:N.value,onClick:i[8]||=e=>Q.review=!0},{default:b(()=>[t(o(qe)),i[35]||=n(),i[36]||=u(`span`,{class:`hidden sm:inline`},`Freigabe anfordern`,-1)]),_:1},8,[`disabled`]))]),N.value?(v(),d(`div`,Rr,[t(o(We),{class:`size-4 shrink-0`}),u(`span`,zr,x(P.value?.name??`Jemand anderes`)+` bearbeitet diese Seite gerade. Sie sehen den zuletzt gespeicherten Stand.`,1),t(o(Y),{size:`sm`,variant:`outline`,class:`bg-card`,onClick:tt},{default:b(()=>[...i[37]||=[n(`Bearbeitung übernehmen`,-1)]]),_:1})])):T(``,!0),u(`div`,Br,[u(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:i[11]||=e=>z(null)},[u(`div`,{class:l([`mx-auto px-4 py-8 transition-[max-width] duration-300 sm:px-8`,ut.value])},[e.breadcrumbs.length?(v(),d(`nav`,Vr,[(v(!0),d(y,null,f(e.breadcrumbs,e=>(v(),d(`span`,{key:e.url},x(e.title)+` /`,1))),128))])):T(``,!0),c(u(`input`,{"onUpdate:modelValue":i[9]||=e=>A.title=e,class:`mb-6 w-full bg-transparent text-3xl font-semibold tracking-tight outline-none placeholder:text-muted-foreground/60`,placeholder:`Titel der Seite`,maxlength:`200`,"aria-label":`Titel der Seite`,readonly:N.value,onClick:i[10]||=E(()=>{},[`stop`])},null,8,Hr),[[ee,A.title]]),u(`div`,Ur,[t(Qn,{item:A.content,root:``},null,8,[`item`])])],2)]),u(`aside`,Wr,[u(`div`,Gr,[(v(),d(y,null,f([{key:`blocks`,label:`Blöcke`},{key:`block`,label:`Ausgewählter Block`}],e=>u(`button`,{key:e.key,type:`button`,role:`tab`,class:l([`relative px-3 py-3 text-sm font-medium disabled:opacity-40`,L.value===e.key?`text-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-selected":L.value===e.key,disabled:e.key===`block`&&!R.value,onClick:t=>L.value=e.key},[n(x(e.label)+` `,1),L.value===e.key?(v(),d(`span`,qr)):T(``,!0)],10,Kr)),64))]),u(`div`,Jr,[L.value===`block`&&R.value?(v(),S(Kn,{key:R.value.id,block:R.value},null,8,[`block`])):(v(),d(y,{key:1},[i[38]||=u(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt den Block unter dem ausgewählten ein. Blöcke lassen sich auch an jede Stelle ziehen.`,-1),t(jt,{onPick:ve})],64))])])]),u(`div`,Yr,[t(o(Y),{variant:`outline`,class:`bg-card shadow-md`,disabled:N.value,onClick:i[12]||=e=>{L.value=`blocks`,F.value=!0}},{default:b(()=>[...i[39]||=[n(`Block hinzufügen`,-1)]]),_:1},8,[`disabled`]),R.value?(v(),S(o(Y),{key:0,class:`shadow-md`,onClick:i[13]||=e=>{L.value=`block`,F.value=!0}},{default:b(()=>[...i[40]||=[n(`Einstellungen`,-1)]]),_:1})):T(``,!0)]),t(o(ge),{open:F.value,"onUpdate:open":i[14]||=e=>F.value=e},{default:b(()=>[t(o(he),{side:`right`,class:`w-[340px] overflow-y-auto p-4 sm:max-w-[340px]`},{default:b(()=>[t(o(ae),{class:`p-0`},{default:b(()=>[t(o(ue),null,{default:b(()=>[n(x(L.value===`block`?`Block`:`Blöcke`),1)]),_:1})]),_:1}),L.value===`block`&&R.value?(v(),S(Kn,{key:R.value.id,block:R.value},null,8,[`block`])):(v(),S(jt,{key:1,onPick:ve}))]),_:1})]),_:1},8,[`open`]),t(ir,{open:Q.publish,"onUpdate:open":i[15]||=e=>Q.publish=e,"scheduled-at":D.value.scheduled_at,onPublish:nt},null,8,[`open`,`scheduled-at`]),t(Tr,{open:Q.review,"onUpdate:open":i[16]||=e=>Q.review=e,onSubmit:rt},null,8,[`open`]),t(vr,{open:Q.revisions,"onUpdate:open":i[17]||=e=>Q.revisions=e,base:a,"read-only":N.value,onRestored:st},null,8,[`open`,`read-only`]),t(Cr,{open:Q.settings,"onUpdate:open":i[18]||=e=>Q.settings=e,page:D.value,base:a,onSaved:i[19]||=e=>D.value=e.page},null,8,[`open`,`page`]),t(it,{open:Q.newPage,"onUpdate:open":i[20]||=e=>Q.newPage=e,"parent-id":D.value.id,"parent-title":D.value.title,onBeforeCreate:Le},null,8,[`open`,`parent-id`,`parent-title`])]),t(o(Oe),{position:`bottom-left`})],64))}};export{Xr as default}; \ No newline at end of file diff --git a/public/build/assets/Editor-Cx9Ivcev.js b/public/build/assets/Editor-DnkhkJEP.js similarity index 96% rename from public/build/assets/Editor-Cx9Ivcev.js rename to public/build/assets/Editor-DnkhkJEP.js index 322a2ccb..38402062 100644 --- a/public/build/assets/Editor-Cx9Ivcev.js +++ b/public/build/assets/Editor-DnkhkJEP.js @@ -1 +1 @@ -import{D as e,E as t,Ht as n,On as r,Zn as i,_ as a,b as o,g as s,mt as c,o as ee,qt as l,tr as u,v as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as m,i as te,n as h,r as g}from"./app-CIvn5Z1l.js";import{A as ne}from"./dist-CleIz2GP.js";import{I as _}from"./AppIcon-BVHFLm12.js";import{t as re}from"./arrow-left-nZZEveo4.js";import{a as ie,n as ae}from"./RichTextEditor-CSdBGrkn.js";import{t as oe}from"./calendar-clock-CswFc-uh.js";import{t as se}from"./AppLayout-Cy38OwfZ.js";import{_ as ce,o as v,t as le}from"./http-9R3L4KBg.js";import{t as ue}from"./eye-DcTo_il4.js";import{t as de}from"./message-square-warning-CUD7Iy66.js";import{t as fe}from"./save-COy1XW3C.js";import{t as y}from"./send-BevoJaJI.js";import{t as b}from"./trash-3XeUxfQJ.js";import{n as x,t as pe}from"./DialogHeader-ByFe3nCF.js";import{t as S}from"./FormField-BcJMyuzX.js";import{t as me}from"./Switch-BaFVWLMv.js";import{t as C}from"./button-SRYY3-ko.js";import{t as w}from"./NativeSelect-BBbvK4oZ.js";import{t as T}from"./Panel-xPHuwfuu.js";import{t as E}from"./Input-CgjHXzkf.js";import{t as D}from"./Textarea-DWpyL-nk.js";import{i as O,n as k,r as A,t as j}from"./dialog-bBqX5pN5.js";var M={class:`mb-6 flex flex-wrap items-center justify-between gap-4`},N={class:`min-w-0`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`flex items-center gap-2`},I=[`href`],L={key:0,class:`mb-6 flex gap-3 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`},R={class:`mt-0.5 whitespace-pre-line`},z={key:1,class:`mb-6 flex flex-wrap items-center gap-3 rounded-lg border border-brand-200 bg-brand-soft px-4 py-3 text-sm`},he={class:`flex-1`},ge={class:`grid items-start gap-6 lg:grid-cols-12`},B={class:`grid gap-5`},_e={class:`grid gap-1.5`},ve={key:0,class:`text-[13px] text-destructive`},ye={class:`grid gap-6 lg:col-span-4`},be={class:`grid gap-4`},xe={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Se={key:1,class:`rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground`},Ce={class:`grid gap-2 border-t pt-4`},we={class:`grid gap-3`},Te={key:0,class:`relative overflow-hidden rounded-md border`},Ee=[`src`],De={key:1,class:`text-[13px] text-destructive`},V={__name:`Editor`,props:{post:{type:Object,default:null},categories:{type:Array,required:!0},canPublishWithoutCategory:{type:Boolean,default:!1},canDelete:{type:Boolean,default:!1},forms:{type:Array,default:()=>[]}},setup(V){let H=V,Oe=te();function ke(e){if(!e)return``;let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}let U=g({title:H.post?.title??``,teaser:H.post?.teaser??``,body:H.post?.body??``,category_id:H.post?.category_id??(H.categories.length===1?H.categories[0].id:null),cover:null,remove_cover:!1,is_featured:H.post?.is_featured??!1,published_at:ke(H.post?.published_at),form_id:H.post?.form_id??null,action:`draft`}),W=s(()=>H.categories.find(e=>e.id===Number(U.category_id))),G=s(()=>W.value?W.value.can_publish:H.canPublishWithoutCategory),K=s(()=>H.post?.status===`pending`),q=s(()=>H.post?.status===`published`),Ae=s(()=>H.categories.map(e=>({value:e.id,label:e.name}))),J=f(H.post?.cover_url??null),Y=f(null);function je(e){let t=e.target.files?.[0];t&&(U.cover=t,U.remove_cover=!1,J.value=URL.createObjectURL(t))}function Me(){U.cover=null,U.remove_cover=!0,J.value=null}async function Ne(e){let t=new FormData;t.append(`image`,e);try{return(await le.post(`/redaktion/neuigkeiten/bilder`,t)).url}catch(e){throw v.error(e.fieldErrors?.image??e.message),e}}function X(e){U.action=e,U.transform(e=>({...e,published_at:e.published_at?new Date(e.published_at).toISOString():null,category_id:e.category_id?Number(e.category_id):null,form_id:e.form_id?Number(e.form_id):``,...H.post?{_method:`put`}:{}})).post(H.post?`/redaktion/neuigkeiten/${H.post.id}`:`/redaktion/neuigkeiten`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{U.cover=null,U.defaults()},onError:e=>e.action&&v.error(e.action)})}n(()=>Oe.props.flash.status,e=>e&&v.success(e),{immediate:!0});let Z=f(!1),Q=g({note:``});function Pe(){m.post(`/redaktion/neuigkeiten/${H.post.id}/freigeben`,{published_at:U.published_at?new Date(U.published_at).toISOString():null})}function Fe(){Q.post(`/redaktion/neuigkeiten/${H.post.id}/zurueckgeben`,{onSuccess:()=>Z.value=!1})}function Ie(){window.confirm(`Beitrag endgültig löschen?`)&&m.delete(`/redaktion/neuigkeiten/${H.post.id}`)}let $=s(()=>U.published_at&&new Date(U.published_at)>new Date);return(n,s)=>(c(),d(se,{title:V.post?`Bearbeiten: ${V.post.title}`:`Neuer Beitrag`},{default:l(()=>[a(`div`,M,[a(`div`,N,[e(r(h),{href:`/redaktion`,class:`mb-2 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:l(()=>[e(r(re),{class:`size-4`}),s[15]||=t(` Redaktion`,-1)]),_:1}),a(`h1`,P,u(V.post?`Beitrag bearbeiten`:`Neuer Beitrag`),1)]),V.post?(c(),o(`div`,F,[a(`span`,{class:i([`rounded px-2 py-1 text-xs font-medium`,{"bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200":V.post.status===`pending`||V.post.status_label===`Geplant`,"bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200":V.post.status_label===`Veröffentlicht`,"bg-muted text-muted-foreground":V.post.status===`draft`}])},u(V.post.status_label),3),V.post.url?(c(),d(r(C),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[a(`a`,{href:V.post.url},[e(r(ue)),s[16]||=t(` Ansehen`,-1)],8,I)]),_:1})):p(``,!0)])):p(``,!0)]),V.post?.review_note?(c(),o(`div`,L,[e(r(de),{class:`mt-0.5 size-4 shrink-0`}),a(`div`,null,[s[17]||=a(`p`,{class:`font-medium`},`Zurückgegeben mit Anmerkung`,-1),a(`p`,R,u(V.post.review_note),1)])])):p(``,!0),K.value&&G.value?(c(),o(`div`,z,[a(`p`,he,u(V.post.author)+` hat diesen Beitrag zur Freigabe eingereicht.`,1),e(r(C),{size:`sm`,variant:`outline`,class:`bg-card`,onClick:s[0]||=e=>Z.value=!0},{default:l(()=>[e(r(_)),s[18]||=t(` Zurückgeben`,-1)]),_:1}),e(r(C),{size:`sm`,onClick:Pe},{default:l(()=>[e(r(y)),t(` `+u($.value?`Freigeben und planen`:`Freigeben`),1)]),_:1})])):p(``,!0),a(`div`,ge,[e(T,{class:`lg:col-span-8`},{default:l(()=>[a(`div`,B,[e(S,{id:`title`,label:`Titel`,error:r(U).errors.title},{default:l(()=>[e(r(E),{id:`title`,modelValue:r(U).title,"onUpdate:modelValue":s[1]||=e=>r(U).title=e,maxlength:`160`,class:`h-11 text-lg font-semibold`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(S,{id:`teaser`,label:`Kurztext`,error:r(U).errors.teaser,hint:`Erscheint in Listen und auf der Startseite. 1–2 Sätze.`},{default:l(()=>[e(r(D),{id:`teaser`,modelValue:r(U).teaser,"onUpdate:modelValue":s[2]||=e=>r(U).teaser=e,rows:`2`,maxlength:`300`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(`div`,_e,[s[19]||=a(`span`,{class:`text-[13px] font-medium`},`Text`,-1),e(ae,{modelValue:r(U).body,"onUpdate:modelValue":s[3]||=e=>r(U).body=e,bordered:``,"upload-image":Ne,placeholder:`Beitrag schreiben …`,"min-height":`[&_.tiptap]:min-h-72`},null,8,[`modelValue`]),r(U).errors.body?(c(),o(`p`,ve,u(r(U).errors.body),1)):p(``,!0)])])]),_:1}),a(`div`,ye,[e(T,{title:`Veröffentlichung`},{default:l(()=>[a(`div`,be,[e(S,{id:`category`,label:`Kategorie`,error:r(U).errors.category_id},{default:l(()=>[e(w,{id:`category`,modelValue:r(U).category_id,"onUpdate:modelValue":s[4]||=e=>r(U).category_id=e,options:Ae.value,placeholder:V.canPublishWithoutCategory?`Ohne Kategorie`:`Kategorie wählen …`},null,8,[`modelValue`,`options`,`placeholder`])]),_:1},8,[`error`]),G.value?(c(),o(ee,{key:0},[e(S,{id:`published_at`,label:`Veröffentlichen am`,error:r(U).errors.published_at,hint:`Leer = sofort. Ein Datum in der Zukunft plant den Beitrag.`},{default:l(()=>[e(r(E),{id:`published_at`,modelValue:r(U).published_at,"onUpdate:modelValue":s[5]||=e=>r(U).published_at=e,type:`datetime-local`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(`label`,xe,[s[20]||=t(` Auf der Startseite hervorheben `,-1),e(r(me),{modelValue:r(U).is_featured,"onUpdate:modelValue":s[6]||=e=>r(U).is_featured=e},null,8,[`modelValue`])])],64)):(c(),o(`p`,Se,` In dieser Kategorie veröffentlicht die Redaktion. Reichen Sie den Beitrag zur Freigabe ein, wenn er fertig ist. `)),a(`div`,Ce,[G.value?(c(),d(r(C),{key:0,disabled:r(U).processing||!r(U).title,onClick:s[7]||=e=>X(`publish`)},{default:l(()=>[r(U).processing&&r(U).action===`publish`?(c(),d(r(ne),{key:0,class:`animate-spin`})):$.value?(c(),d(r(oe),{key:1})):(c(),d(r(y),{key:2})),t(` `+u($.value?`Planen`:q.value?`Aktualisieren`:`Veröffentlichen`),1)]),_:1},8,[`disabled`])):(c(),d(r(C),{key:1,disabled:r(U).processing||!r(U).title||K.value,onClick:s[8]||=e=>X(`submit`)},{default:l(()=>[e(r(y)),t(` `+u(K.value?`Liegt zur Freigabe vor`:`Zur Freigabe einreichen`),1)]),_:1},8,[`disabled`])),e(r(C),{variant:`outline`,disabled:r(U).processing||!r(U).title,onClick:s[9]||=e=>X(`draft`)},{default:l(()=>[e(r(fe)),t(` `+u(q.value?`Offline nehmen (Entwurf)`:`Als Entwurf speichern`),1)]),_:1},8,[`disabled`]),V.canDelete?(c(),d(r(C),{key:2,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:Ie},{default:l(()=>[e(r(b)),s[21]||=t(` Löschen`,-1)]),_:1})):p(``,!0)])])]),_:1}),V.forms.length?(c(),d(T,{key:0,title:`Formular`},{default:l(()=>[e(S,{id:`form_id`,label:`Formular unter dem Beitrag`,error:r(U).errors.form_id,hint:`Z. B. Anmeldung zum Sommerfest oder Rückmeldung. Formulare legt die Redaktion unter „Formulare“ an.`},{default:l(()=>[e(w,{id:`form_id`,modelValue:r(U).form_id,"onUpdate:modelValue":s[10]||=e=>r(U).form_id=e,options:V.forms,placeholder:`– kein Formular –`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])]),_:1})):p(``,!0),e(T,{title:`Titelbild`},{default:l(()=>[a(`div`,we,[J.value?(c(),o(`div`,Te,[a(`img`,{src:J.value,alt:``,class:`aspect-video w-full object-cover`},null,8,Ee),a(`button`,{type:`button`,class:`absolute top-2 right-2 grid size-8 place-items-center rounded-md bg-card/90 shadow-sm hover:bg-card`,title:`Titelbild entfernen`,onClick:Me},[e(r(ce),{class:`size-4`})])])):p(``,!0),e(r(C),{variant:`outline`,onClick:s[11]||=e=>Y.value?.click()},{default:l(()=>[e(r(ie)),t(` `+u(J.value?`Anderes Bild wählen`:`Bild hochladen`),1)]),_:1}),a(`input`,{ref_key:`coverInput`,ref:Y,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`hidden`,onChange:je},null,544),s[22]||=a(`p`,{class:`text-xs text-muted-foreground`},`Querformat, am besten 1600 × 900 Pixel. Wird auf 16:9 zugeschnitten.`,-1),r(U).errors.cover?(c(),o(`p`,De,u(r(U).errors.cover),1)):p(``,!0)])]),_:1})])]),e(r(O),{open:Z.value,"onUpdate:open":s[14]||=e=>Z.value=e},{default:l(()=>[e(r(A),{class:`sm:max-w-md`},{default:l(()=>[e(r(pe),null,{default:l(()=>[e(r(j),null,{default:l(()=>[...s[23]||=[t(`Beitrag zurückgeben`,-1)]]),_:1}),e(r(x),null,{default:l(()=>[t(u(V.post?.author)+` wird benachrichtigt und sieht Ihre Anmerkung.`,1)]),_:1})]),_:1}),e(S,{id:`note`,label:`Was soll geändert werden?`,error:r(Q).errors.note},{default:l(()=>[e(r(D),{id:`note`,modelValue:r(Q).note,"onUpdate:modelValue":s[12]||=e=>r(Q).note=e,rows:`4`,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(k),null,{default:l(()=>[e(r(C),{variant:`outline`,onClick:s[13]||=e=>Z.value=!1},{default:l(()=>[...s[24]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(C),{disabled:r(Q).processing||!r(Q).note.trim(),onClick:Fe},{default:l(()=>[e(r(_)),s[25]||=t(` Zurückgeben`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{V as default}; \ No newline at end of file +import{D as e,E as t,Ht as n,On as r,Zn as i,_ as a,b as o,g as s,mt as c,o as ee,qt as l,tr as u,v as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as m,i as te,n as h,r as g}from"./app-Dy5FbYkt.js";import{A as ne}from"./dist-CleIz2GP.js";import{I as _}from"./AppIcon-SVMShh8s.js";import{t as re}from"./arrow-left-nZZEveo4.js";import{a as ie,n as ae}from"./RichTextEditor-DgNr9C_U.js";import{t as oe}from"./calendar-clock-CswFc-uh.js";import{t as se}from"./AppLayout-X0y7XSjx.js";import{_ as ce,o as v,t as le}from"./http-9R3L4KBg.js";import{t as ue}from"./eye-DcTo_il4.js";import{t as de}from"./message-square-warning-CUD7Iy66.js";import{t as fe}from"./save-COy1XW3C.js";import{t as y}from"./send-BevoJaJI.js";import{t as b}from"./trash-3XeUxfQJ.js";import{n as x,t as pe}from"./DialogHeader-UfXa7NWq.js";import{t as S}from"./FormField-BcJMyuzX.js";import{t as me}from"./Switch-BaFVWLMv.js";import{t as C}from"./button-SRYY3-ko.js";import{t as w}from"./NativeSelect-BBbvK4oZ.js";import{t as T}from"./Panel-DF-wChKt.js";import{t as E}from"./Input-CgjHXzkf.js";import{t as D}from"./Textarea-DWpyL-nk.js";import{i as O,n as k,r as A,t as j}from"./dialog-DrnG5a9r.js";var M={class:`mb-6 flex flex-wrap items-center justify-between gap-4`},N={class:`min-w-0`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`flex items-center gap-2`},I=[`href`],L={key:0,class:`mb-6 flex gap-3 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`},R={class:`mt-0.5 whitespace-pre-line`},z={key:1,class:`mb-6 flex flex-wrap items-center gap-3 rounded-lg border border-brand-200 bg-brand-soft px-4 py-3 text-sm`},he={class:`flex-1`},ge={class:`grid items-start gap-6 lg:grid-cols-12`},B={class:`grid gap-5`},_e={class:`grid gap-1.5`},ve={key:0,class:`text-[13px] text-destructive`},ye={class:`grid gap-6 lg:col-span-4`},be={class:`grid gap-4`},xe={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Se={key:1,class:`rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground`},Ce={class:`grid gap-2 border-t pt-4`},we={class:`grid gap-3`},Te={key:0,class:`relative overflow-hidden rounded-md border`},Ee=[`src`],De={key:1,class:`text-[13px] text-destructive`},V={__name:`Editor`,props:{post:{type:Object,default:null},categories:{type:Array,required:!0},canPublishWithoutCategory:{type:Boolean,default:!1},canDelete:{type:Boolean,default:!1},forms:{type:Array,default:()=>[]}},setup(V){let H=V,Oe=te();function ke(e){if(!e)return``;let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}let U=g({title:H.post?.title??``,teaser:H.post?.teaser??``,body:H.post?.body??``,category_id:H.post?.category_id??(H.categories.length===1?H.categories[0].id:null),cover:null,remove_cover:!1,is_featured:H.post?.is_featured??!1,published_at:ke(H.post?.published_at),form_id:H.post?.form_id??null,action:`draft`}),W=s(()=>H.categories.find(e=>e.id===Number(U.category_id))),G=s(()=>W.value?W.value.can_publish:H.canPublishWithoutCategory),K=s(()=>H.post?.status===`pending`),q=s(()=>H.post?.status===`published`),Ae=s(()=>H.categories.map(e=>({value:e.id,label:e.name}))),J=f(H.post?.cover_url??null),Y=f(null);function je(e){let t=e.target.files?.[0];t&&(U.cover=t,U.remove_cover=!1,J.value=URL.createObjectURL(t))}function Me(){U.cover=null,U.remove_cover=!0,J.value=null}async function Ne(e){let t=new FormData;t.append(`image`,e);try{return(await le.post(`/redaktion/neuigkeiten/bilder`,t)).url}catch(e){throw v.error(e.fieldErrors?.image??e.message),e}}function X(e){U.action=e,U.transform(e=>({...e,published_at:e.published_at?new Date(e.published_at).toISOString():null,category_id:e.category_id?Number(e.category_id):null,form_id:e.form_id?Number(e.form_id):``,...H.post?{_method:`put`}:{}})).post(H.post?`/redaktion/neuigkeiten/${H.post.id}`:`/redaktion/neuigkeiten`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{U.cover=null,U.defaults()},onError:e=>e.action&&v.error(e.action)})}n(()=>Oe.props.flash.status,e=>e&&v.success(e),{immediate:!0});let Z=f(!1),Q=g({note:``});function Pe(){m.post(`/redaktion/neuigkeiten/${H.post.id}/freigeben`,{published_at:U.published_at?new Date(U.published_at).toISOString():null})}function Fe(){Q.post(`/redaktion/neuigkeiten/${H.post.id}/zurueckgeben`,{onSuccess:()=>Z.value=!1})}function Ie(){window.confirm(`Beitrag endgültig löschen?`)&&m.delete(`/redaktion/neuigkeiten/${H.post.id}`)}let $=s(()=>U.published_at&&new Date(U.published_at)>new Date);return(n,s)=>(c(),d(se,{title:V.post?`Bearbeiten: ${V.post.title}`:`Neuer Beitrag`},{default:l(()=>[a(`div`,M,[a(`div`,N,[e(r(h),{href:`/redaktion`,class:`mb-2 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:l(()=>[e(r(re),{class:`size-4`}),s[15]||=t(` Redaktion`,-1)]),_:1}),a(`h1`,P,u(V.post?`Beitrag bearbeiten`:`Neuer Beitrag`),1)]),V.post?(c(),o(`div`,F,[a(`span`,{class:i([`rounded px-2 py-1 text-xs font-medium`,{"bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200":V.post.status===`pending`||V.post.status_label===`Geplant`,"bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200":V.post.status_label===`Veröffentlicht`,"bg-muted text-muted-foreground":V.post.status===`draft`}])},u(V.post.status_label),3),V.post.url?(c(),d(r(C),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[a(`a`,{href:V.post.url},[e(r(ue)),s[16]||=t(` Ansehen`,-1)],8,I)]),_:1})):p(``,!0)])):p(``,!0)]),V.post?.review_note?(c(),o(`div`,L,[e(r(de),{class:`mt-0.5 size-4 shrink-0`}),a(`div`,null,[s[17]||=a(`p`,{class:`font-medium`},`Zurückgegeben mit Anmerkung`,-1),a(`p`,R,u(V.post.review_note),1)])])):p(``,!0),K.value&&G.value?(c(),o(`div`,z,[a(`p`,he,u(V.post.author)+` hat diesen Beitrag zur Freigabe eingereicht.`,1),e(r(C),{size:`sm`,variant:`outline`,class:`bg-card`,onClick:s[0]||=e=>Z.value=!0},{default:l(()=>[e(r(_)),s[18]||=t(` Zurückgeben`,-1)]),_:1}),e(r(C),{size:`sm`,onClick:Pe},{default:l(()=>[e(r(y)),t(` `+u($.value?`Freigeben und planen`:`Freigeben`),1)]),_:1})])):p(``,!0),a(`div`,ge,[e(T,{class:`lg:col-span-8`},{default:l(()=>[a(`div`,B,[e(S,{id:`title`,label:`Titel`,error:r(U).errors.title},{default:l(()=>[e(r(E),{id:`title`,modelValue:r(U).title,"onUpdate:modelValue":s[1]||=e=>r(U).title=e,maxlength:`160`,class:`h-11 text-lg font-semibold`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(S,{id:`teaser`,label:`Kurztext`,error:r(U).errors.teaser,hint:`Erscheint in Listen und auf der Startseite. 1–2 Sätze.`},{default:l(()=>[e(r(D),{id:`teaser`,modelValue:r(U).teaser,"onUpdate:modelValue":s[2]||=e=>r(U).teaser=e,rows:`2`,maxlength:`300`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(`div`,_e,[s[19]||=a(`span`,{class:`text-[13px] font-medium`},`Text`,-1),e(ae,{modelValue:r(U).body,"onUpdate:modelValue":s[3]||=e=>r(U).body=e,bordered:``,"upload-image":Ne,placeholder:`Beitrag schreiben …`,"min-height":`[&_.tiptap]:min-h-72`},null,8,[`modelValue`]),r(U).errors.body?(c(),o(`p`,ve,u(r(U).errors.body),1)):p(``,!0)])])]),_:1}),a(`div`,ye,[e(T,{title:`Veröffentlichung`},{default:l(()=>[a(`div`,be,[e(S,{id:`category`,label:`Kategorie`,error:r(U).errors.category_id},{default:l(()=>[e(w,{id:`category`,modelValue:r(U).category_id,"onUpdate:modelValue":s[4]||=e=>r(U).category_id=e,options:Ae.value,placeholder:V.canPublishWithoutCategory?`Ohne Kategorie`:`Kategorie wählen …`},null,8,[`modelValue`,`options`,`placeholder`])]),_:1},8,[`error`]),G.value?(c(),o(ee,{key:0},[e(S,{id:`published_at`,label:`Veröffentlichen am`,error:r(U).errors.published_at,hint:`Leer = sofort. Ein Datum in der Zukunft plant den Beitrag.`},{default:l(()=>[e(r(E),{id:`published_at`,modelValue:r(U).published_at,"onUpdate:modelValue":s[5]||=e=>r(U).published_at=e,type:`datetime-local`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(`label`,xe,[s[20]||=t(` Auf der Startseite hervorheben `,-1),e(r(me),{modelValue:r(U).is_featured,"onUpdate:modelValue":s[6]||=e=>r(U).is_featured=e},null,8,[`modelValue`])])],64)):(c(),o(`p`,Se,` In dieser Kategorie veröffentlicht die Redaktion. Reichen Sie den Beitrag zur Freigabe ein, wenn er fertig ist. `)),a(`div`,Ce,[G.value?(c(),d(r(C),{key:0,disabled:r(U).processing||!r(U).title,onClick:s[7]||=e=>X(`publish`)},{default:l(()=>[r(U).processing&&r(U).action===`publish`?(c(),d(r(ne),{key:0,class:`animate-spin`})):$.value?(c(),d(r(oe),{key:1})):(c(),d(r(y),{key:2})),t(` `+u($.value?`Planen`:q.value?`Aktualisieren`:`Veröffentlichen`),1)]),_:1},8,[`disabled`])):(c(),d(r(C),{key:1,disabled:r(U).processing||!r(U).title||K.value,onClick:s[8]||=e=>X(`submit`)},{default:l(()=>[e(r(y)),t(` `+u(K.value?`Liegt zur Freigabe vor`:`Zur Freigabe einreichen`),1)]),_:1},8,[`disabled`])),e(r(C),{variant:`outline`,disabled:r(U).processing||!r(U).title,onClick:s[9]||=e=>X(`draft`)},{default:l(()=>[e(r(fe)),t(` `+u(q.value?`Offline nehmen (Entwurf)`:`Als Entwurf speichern`),1)]),_:1},8,[`disabled`]),V.canDelete?(c(),d(r(C),{key:2,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:Ie},{default:l(()=>[e(r(b)),s[21]||=t(` Löschen`,-1)]),_:1})):p(``,!0)])])]),_:1}),V.forms.length?(c(),d(T,{key:0,title:`Formular`},{default:l(()=>[e(S,{id:`form_id`,label:`Formular unter dem Beitrag`,error:r(U).errors.form_id,hint:`Z. B. Anmeldung zum Sommerfest oder Rückmeldung. Formulare legt die Redaktion unter „Formulare“ an.`},{default:l(()=>[e(w,{id:`form_id`,modelValue:r(U).form_id,"onUpdate:modelValue":s[10]||=e=>r(U).form_id=e,options:V.forms,placeholder:`– kein Formular –`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])]),_:1})):p(``,!0),e(T,{title:`Titelbild`},{default:l(()=>[a(`div`,we,[J.value?(c(),o(`div`,Te,[a(`img`,{src:J.value,alt:``,class:`aspect-video w-full object-cover`},null,8,Ee),a(`button`,{type:`button`,class:`absolute top-2 right-2 grid size-8 place-items-center rounded-md bg-card/90 shadow-sm hover:bg-card`,title:`Titelbild entfernen`,onClick:Me},[e(r(ce),{class:`size-4`})])])):p(``,!0),e(r(C),{variant:`outline`,onClick:s[11]||=e=>Y.value?.click()},{default:l(()=>[e(r(ie)),t(` `+u(J.value?`Anderes Bild wählen`:`Bild hochladen`),1)]),_:1}),a(`input`,{ref_key:`coverInput`,ref:Y,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`hidden`,onChange:je},null,544),s[22]||=a(`p`,{class:`text-xs text-muted-foreground`},`Querformat, am besten 1600 × 900 Pixel. Wird auf 16:9 zugeschnitten.`,-1),r(U).errors.cover?(c(),o(`p`,De,u(r(U).errors.cover),1)):p(``,!0)])]),_:1})])]),e(r(O),{open:Z.value,"onUpdate:open":s[14]||=e=>Z.value=e},{default:l(()=>[e(r(A),{class:`sm:max-w-md`},{default:l(()=>[e(r(pe),null,{default:l(()=>[e(r(j),null,{default:l(()=>[...s[23]||=[t(`Beitrag zurückgeben`,-1)]]),_:1}),e(r(x),null,{default:l(()=>[t(u(V.post?.author)+` wird benachrichtigt und sieht Ihre Anmerkung.`,1)]),_:1})]),_:1}),e(S,{id:`note`,label:`Was soll geändert werden?`,error:r(Q).errors.note},{default:l(()=>[e(r(D),{id:`note`,modelValue:r(Q).note,"onUpdate:modelValue":s[12]||=e=>r(Q).note=e,rows:`4`,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(k),null,{default:l(()=>[e(r(C),{variant:`outline`,onClick:s[13]||=e=>Z.value=!1},{default:l(()=>[...s[24]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(C),{disabled:r(Q).processing||!r(Q).note.trim(),onClick:Fe},{default:l(()=>[e(r(_)),s[25]||=t(` Zurückgeben`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{V as default}; \ No newline at end of file diff --git a/public/build/assets/EditorialForms-Di1_sGWd.js b/public/build/assets/EditorialForms-DKd7Ncoz.js similarity index 94% rename from public/build/assets/EditorialForms-Di1_sGWd.js rename to public/build/assets/EditorialForms-DKd7Ncoz.js index 7b72f333..108f712e 100644 --- a/public/build/assets/EditorialForms-Di1_sGWd.js +++ b/public/build/assets/EditorialForms-DKd7Ncoz.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CIvn5Z1l.js";import{t as p}from"./download-cH_7CRKx.js";import{t as m}from"./pencil-line-Cp-EHBoW.js";import{t as h}from"./plus-cKZvz4wH.js";import{t as g}from"./table-properties-B82lvC7D.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Panel-xPHuwfuu.js";var y=[`href`],b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`text-xs text-muted-foreground`},C={class:`font-medium text-brand-text`},w=[`href`],T=[`href`],E={key:1,class:`text-sm text-muted-foreground`},D={__name:`EditorialForms`,props:{forms:{type:Array,required:!0},createUrl:{type:String,default:null}},setup(D){return(O,k)=>(o(),u(v,{title:`Formulare`},{actions:c(()=>[D.createUrl?(o(),u(n(_),{key:0,size:`sm`,variant:`outline`,"as-child":``},{default:c(()=>[r(`a`,{href:D.createUrl},[e(n(h)),k[0]||=t(` Neues Formular`,-1)],8,y)]),_:1})):d(``,!0)]),default:c(()=>[D.forms.length?(o(),i(`ul`,b,[(o(!0),i(s,null,a(D.forms,a=>(o(),i(`li`,{key:a.id,class:`flex items-center gap-3 px-5 py-2.5`},[r(`div`,x,[e(n(f),{href:a.url,class:`block truncate text-sm font-medium hover:underline`},{default:c(()=>[t(l(a.title),1)]),_:2},1032,[`href`]),r(`p`,S,[t(l(a.open?`offen`:`geschlossen`)+` · `+l(a.submissions)+` Einsendungen`,1),a.unread?(o(),i(s,{key:0},[k[1]||=t(`, `,-1),r(`span`,C,l(a.unread)+` neu`,1)],64)):d(``,!0)])]),a.builder_url?(o(),u(n(_),{key:0,size:`icon`,variant:`ghost`,"as-child":``,title:`Felder bearbeiten`},{default:c(()=>[e(n(f),{href:a.builder_url},{default:c(()=>[e(n(m))]),_:1},8,[`href`])]),_:2},1024)):d(``,!0),a.results_url?(o(),u(n(_),{key:1,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse`},{default:c(()=>[r(`a`,{href:a.results_url},[e(n(g))],8,w)]),_:2},1024)):d(``,!0),a.csv_url?(o(),u(n(_),{key:2,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse als CSV herunterladen`},{default:c(()=>[r(`a`,{href:a.csv_url},[e(n(p))],8,T)]),_:2},1024)):d(``,!0)]))),128))])):(o(),i(`p`,E,`Noch keine Formulare.`))]),_:1}))}};export{D as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Dy5FbYkt.js";import{t as p}from"./download-cH_7CRKx.js";import{t as m}from"./pencil-line-Cp-EHBoW.js";import{t as h}from"./plus-cKZvz4wH.js";import{t as g}from"./table-properties-B82lvC7D.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Panel-DF-wChKt.js";var y=[`href`],b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`text-xs text-muted-foreground`},C={class:`font-medium text-brand-text`},w=[`href`],T=[`href`],E={key:1,class:`text-sm text-muted-foreground`},D={__name:`EditorialForms`,props:{forms:{type:Array,required:!0},createUrl:{type:String,default:null}},setup(D){return(O,k)=>(o(),u(v,{title:`Formulare`},{actions:c(()=>[D.createUrl?(o(),u(n(_),{key:0,size:`sm`,variant:`outline`,"as-child":``},{default:c(()=>[r(`a`,{href:D.createUrl},[e(n(h)),k[0]||=t(` Neues Formular`,-1)],8,y)]),_:1})):d(``,!0)]),default:c(()=>[D.forms.length?(o(),i(`ul`,b,[(o(!0),i(s,null,a(D.forms,a=>(o(),i(`li`,{key:a.id,class:`flex items-center gap-3 px-5 py-2.5`},[r(`div`,x,[e(n(f),{href:a.url,class:`block truncate text-sm font-medium hover:underline`},{default:c(()=>[t(l(a.title),1)]),_:2},1032,[`href`]),r(`p`,S,[t(l(a.open?`offen`:`geschlossen`)+` · `+l(a.submissions)+` Einsendungen`,1),a.unread?(o(),i(s,{key:0},[k[1]||=t(`, `,-1),r(`span`,C,l(a.unread)+` neu`,1)],64)):d(``,!0)])]),a.builder_url?(o(),u(n(_),{key:0,size:`icon`,variant:`ghost`,"as-child":``,title:`Felder bearbeiten`},{default:c(()=>[e(n(f),{href:a.builder_url},{default:c(()=>[e(n(m))]),_:1},8,[`href`])]),_:2},1024)):d(``,!0),a.results_url?(o(),u(n(_),{key:1,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse`},{default:c(()=>[r(`a`,{href:a.results_url},[e(n(g))],8,w)]),_:2},1024)):d(``,!0),a.csv_url?(o(),u(n(_),{key:2,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse als CSV herunterladen`},{default:c(()=>[r(`a`,{href:a.csv_url},[e(n(p))],8,T)]),_:2},1024)):d(``,!0)]))),128))])):(o(),i(`p`,E,`Noch keine Formulare.`))]),_:1}))}};export{D as default}; \ No newline at end of file diff --git a/public/build/assets/EditorialNews-B8R4_r-1.js b/public/build/assets/EditorialNews-C9f0OExj.js similarity index 92% rename from public/build/assets/EditorialNews-B8R4_r-1.js rename to public/build/assets/EditorialNews-C9f0OExj.js index 34546498..211ec035 100644 --- a/public/build/assets/EditorialNews-B8R4_r-1.js +++ b/public/build/assets/EditorialNews-C9f0OExj.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-CIvn5Z1l.js";import{c as m}from"./AppIcon-BVHFLm12.js";import{t as h}from"./message-square-warning-CUD7Iy66.js";import{t as g}from"./plus-cKZvz4wH.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Panel-xPHuwfuu.js";var y={class:`grid gap-5`},b={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},x={key:0,class:`ml-1 rounded-full bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},S={key:0,class:`-mx-5 divide-y border-y`},C={class:`min-w-0 flex-1`},w={class:`truncate text-xs text-muted-foreground`},T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=e=>({pending:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`,published:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`,draft:`bg-muted text-muted-foreground`})[e.status];return(O,k)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[E.canCreate?(s(),d(n(_),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(g)),k[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,y,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:E.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:E.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:E.scheduled,empty:null}].filter(e=>e.items.length||e.empty),g=>(s(),a(`section`,{key:g.key},[i(`h3`,b,[t(u(g.title)+` `,1),g.key===`review`?(s(),a(`span`,x,u(g.items.length),1)):f(``,!0)]),g.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(g.items,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,C,[e(n(p),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,w,[t(u(o.category??`Ohne Kategorie`),1),g.key!==`mine`&&o.author?(s(),a(c,{key:0},[t(` · `+u(o.author),1)],64)):f(``,!0),o.date?(s(),a(c,{key:1},[t(` · `+u(n(m)(o.date)),1)],64)):f(``,!0)])]),o.review_note?(s(),d(n(h),{key:0,class:`size-4 shrink-0 text-amber-600`,title:`Mit Anmerkung zurückgegeben`})):f(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,D(o)])},u(o.status_label),3)]))),128))])):(s(),a(`p`,T,u(g.empty),1))]))),128))])]),_:1}))}};export{E as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-Dy5FbYkt.js";import{c as m}from"./AppIcon-SVMShh8s.js";import{t as h}from"./message-square-warning-CUD7Iy66.js";import{t as g}from"./plus-cKZvz4wH.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Panel-DF-wChKt.js";var y={class:`grid gap-5`},b={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},x={key:0,class:`ml-1 rounded-full bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},S={key:0,class:`-mx-5 divide-y border-y`},C={class:`min-w-0 flex-1`},w={class:`truncate text-xs text-muted-foreground`},T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=e=>({pending:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`,published:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`,draft:`bg-muted text-muted-foreground`})[e.status];return(O,k)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[E.canCreate?(s(),d(n(_),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(g)),k[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,y,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:E.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:E.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:E.scheduled,empty:null}].filter(e=>e.items.length||e.empty),g=>(s(),a(`section`,{key:g.key},[i(`h3`,b,[t(u(g.title)+` `,1),g.key===`review`?(s(),a(`span`,x,u(g.items.length),1)):f(``,!0)]),g.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(g.items,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,C,[e(n(p),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,w,[t(u(o.category??`Ohne Kategorie`),1),g.key!==`mine`&&o.author?(s(),a(c,{key:0},[t(` · `+u(o.author),1)],64)):f(``,!0),o.date?(s(),a(c,{key:1},[t(` · `+u(n(m)(o.date)),1)],64)):f(``,!0)])]),o.review_note?(s(),d(n(h),{key:0,class:`size-4 shrink-0 text-amber-600`,title:`Mit Anmerkung zurückgegeben`})):f(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,D(o)])},u(o.status_label),3)]))),128))])):(s(),a(`p`,T,u(g.empty),1))]))),128))])]),_:1}))}};export{E as default}; \ No newline at end of file diff --git a/public/build/assets/EditorialPages-CIn86wBI.js b/public/build/assets/EditorialPages-DcM9sgTM.js similarity index 91% rename from public/build/assets/EditorialPages-CIn86wBI.js rename to public/build/assets/EditorialPages-DcM9sgTM.js index 6ce09545..08e23030 100644 --- a/public/build/assets/EditorialPages-CIn86wBI.js +++ b/public/build/assets/EditorialPages-DcM9sgTM.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-CIvn5Z1l.js";import{c as g}from"./AppIcon-BVHFLm12.js";import{t as _}from"./lock-4X8Kfof0.js";import{t as v}from"./plus-cKZvz4wH.js";import{t as y}from"./button-SRYY3-ko.js";import{t as b}from"./Panel-xPHuwfuu.js";import{t as x}from"./NewPageDialog-BbIzQTb2.js";var S={key:0,class:`-mx-5 divide-y border-t`},C={class:`text-xs text-muted-foreground`},w=[`title`],T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialPages`,props:{pages:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=p(!1),O={published:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`},draft:{label:`Entwurf`,class:`bg-brand-soft text-brand-soft-foreground`},scheduled:{label:`Geplant`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},new:{label:`Neu`,class:`bg-muted text-muted-foreground`}};return(p,k)=>(c(),f(b,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(y),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(v)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(g)(o.changed_at)),1)],64)):m(``,!0)])],2),o.locked_by?(c(),a(`span`,{key:0,class:`inline-flex items-center gap-1 text-xs text-muted-foreground`,title:`${o.locked_by} bearbeitet gerade`},[e(n(_),{class:`size-3.5`}),t(` `+d(o.locked_by),1)],8,w)):m(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,O[o.status].class])},d(O[o.status].label),3)],4))),128))])):(c(),a(`p`,T,`Sie dürfen noch keine Seiten bearbeiten.`)),e(x,{open:D.value,"onUpdate:open":k[1]||=e=>D.value=e},null,8,[`open`])]),_:1}))}};export{E as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-Dy5FbYkt.js";import{c as g}from"./AppIcon-SVMShh8s.js";import{t as _}from"./lock-4X8Kfof0.js";import{t as v}from"./plus-cKZvz4wH.js";import{t as y}from"./button-SRYY3-ko.js";import{t as b}from"./Panel-DF-wChKt.js";import{t as x}from"./NewPageDialog-B5SW-nak.js";var S={key:0,class:`-mx-5 divide-y border-t`},C={class:`text-xs text-muted-foreground`},w=[`title`],T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialPages`,props:{pages:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=p(!1),O={published:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`},draft:{label:`Entwurf`,class:`bg-brand-soft text-brand-soft-foreground`},scheduled:{label:`Geplant`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},new:{label:`Neu`,class:`bg-muted text-muted-foreground`}};return(p,k)=>(c(),f(b,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(y),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(v)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(g)(o.changed_at)),1)],64)):m(``,!0)])],2),o.locked_by?(c(),a(`span`,{key:0,class:`inline-flex items-center gap-1 text-xs text-muted-foreground`,title:`${o.locked_by} bearbeitet gerade`},[e(n(_),{class:`size-3.5`}),t(` `+d(o.locked_by),1)],8,w)):m(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,O[o.status].class])},d(O[o.status].label),3)],4))),128))])):(c(),a(`p`,T,`Sie dürfen noch keine Seiten bearbeiten.`)),e(x,{open:D.value,"onUpdate:open":k[1]||=e=>D.value=e},null,8,[`open`])]),_:1}))}};export{E as default}; \ No newline at end of file diff --git a/public/build/assets/EventDateBlock-Cxz_hY6g.js b/public/build/assets/EventDateBlock-DzdXYi61.js similarity index 88% rename from public/build/assets/EventDateBlock-Cxz_hY6g.js rename to public/build/assets/EventDateBlock-DzdXYi61.js index f5d49f77..46187966 100644 --- a/public/build/assets/EventDateBlock-Cxz_hY6g.js +++ b/public/build/assets/EventDateBlock-DzdXYi61.js @@ -1 +1 @@ -import{_ as e,b as t,g as n,mt as r,tr as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as a}from"./AppIcon-BVHFLm12.js";var o={class:`grid w-12 shrink-0 place-items-center rounded-md bg-muted py-1.5 leading-none`},s={class:`text-xl font-semibold`},c={class:`mt-1 text-[10px] font-semibold tracking-wide text-accent2-text`},l={__name:`EventDateBlock`,props:{date:{type:String,required:!0}},setup(l){let u=l,d=n(()=>a(u.date));return(n,a)=>(r(),t(`div`,o,[e(`span`,s,i(d.value.day),1),e(`span`,c,i(d.value.month),1)]))}};export{l as t}; \ No newline at end of file +import{_ as e,b as t,g as n,mt as r,tr as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as a}from"./AppIcon-SVMShh8s.js";var o={class:`grid w-12 shrink-0 place-items-center rounded-md bg-muted py-1.5 leading-none`},s={class:`text-xl font-semibold`},c={class:`mt-1 text-[10px] font-semibold tracking-wide text-accent2-text`},l={__name:`EventDateBlock`,props:{date:{type:String,required:!0}},setup(l){let u=l,d=n(()=>a(u.date));return(n,a)=>(r(),t(`div`,o,[e(`span`,s,i(d.value.day),1),e(`span`,c,i(d.value.month),1)]))}};export{l as t}; \ No newline at end of file diff --git a/public/build/assets/EventListItem-C_pDZ4ur.js b/public/build/assets/EventListItem-CtMhLvQC.js similarity index 85% rename from public/build/assets/EventListItem-C_pDZ4ur.js rename to public/build/assets/EventListItem-CtMhLvQC.js index 0ba0f3cd..bfd36563 100644 --- a/public/build/assets/EventListItem-C_pDZ4ur.js +++ b/public/build/assets/EventListItem-CtMhLvQC.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-CIvn5Z1l.js";import{o as u}from"./AppIcon-BVHFLm12.js";import{t as d}from"./EventDateBlock-Cxz_hY6g.js";var f={class:`min-w-0 pt-0.5`},p={class:`line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},m={class:`mt-0.5 text-xs text-muted-foreground`},h={key:0,class:`truncate text-xs text-muted-foreground`},g={__name:`EventListItem`,props:{event:{type:Object,required:!0}},setup(g){return(_,v)=>(i(),s(t(l),{href:`/termine/${g.event.id}`,class:`group flex items-start gap-3.5 py-3`},{default:a(()=>[e(d,{date:g.event.starts_at},null,8,[`date`]),n(`div`,f,[n(`h3`,p,o(g.event.title),1),n(`p`,m,o(t(u)(g.event)),1),g.event.location?(i(),r(`p`,h,o(g.event.location),1)):c(``,!0)])]),_:1},8,[`href`]))}};export{g as t}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-Dy5FbYkt.js";import{o as u}from"./AppIcon-SVMShh8s.js";import{t as d}from"./EventDateBlock-DzdXYi61.js";var f={class:`min-w-0 pt-0.5`},p={class:`line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},m={class:`mt-0.5 text-xs text-muted-foreground`},h={key:0,class:`truncate text-xs text-muted-foreground`},g={__name:`EventListItem`,props:{event:{type:Object,required:!0}},setup(g){return(_,v)=>(i(),s(t(l),{href:`/termine/${g.event.id}`,class:`group flex items-start gap-3.5 py-3`},{default:a(()=>[e(d,{date:g.event.starts_at},null,8,[`date`]),n(`div`,f,[n(`h3`,p,o(g.event.title),1),n(`p`,m,o(t(u)(g.event)),1),g.event.location?(i(),r(`p`,h,o(g.event.location),1)):c(``,!0)])]),_:1},8,[`href`]))}};export{g as t}; \ No newline at end of file diff --git a/public/build/assets/FileIcon-BHQ0ftg2.js b/public/build/assets/FileIcon-LA1rFyBK.js similarity index 98% rename from public/build/assets/FileIcon-BHQ0ftg2.js rename to public/build/assets/FileIcon-LA1rFyBK.js index dd36b9ea..80f15028 100644 --- a/public/build/assets/FileIcon-BHQ0ftg2.js +++ b/public/build/assets/FileIcon-LA1rFyBK.js @@ -1 +1 @@ -import{Zn as e,b as t,g as n,mt as r,tr as i,v as a,wt as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{j as c}from"./dist-CleIz2GP.js";import{$ as l}from"./AppIcon-BVHFLm12.js";var u=c({name:`file-archive`,size:24,node:[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),d=c({name:`file-image`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]}),f=c({name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]}),p=c({name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]}),m=c({name:`presentation`,size:24,node:[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]}),h=[`title`],g={key:0,class:`absolute -bottom-1.5 rounded-[3px] bg-card px-1 text-[9px] leading-tight font-bold tracking-wide text-current ring-1 ring-border`},_={__name:`FileIcon`,props:{extension:{type:String,default:``},size:{type:String,default:`md`}},setup(c){let _=c,v={icon:l},y={icon:f},b={PDF:{...v,class:`bg-red-50 text-red-700 dark:bg-red-950/50 dark:text-red-300`},DOC:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},DOCX:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},ODT:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},RTF:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},TXT:{...v,class:`bg-muted text-muted-foreground`},XLS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},XLSX:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},CSV:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},ODS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},PPT:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},PPTX:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},JPG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},JPEG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},PNG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},ZIP:{icon:u,class:`bg-amber-50 text-amber-700 dark:bg-amber-950/50 dark:text-amber-300`}},x=n(()=>b[_.extension?.toUpperCase()]??{icon:p,class:`bg-muted text-muted-foreground`}),S=n(()=>({sm:`size-8 rounded-md`,md:`size-10 rounded-md`,lg:`size-14 rounded-lg`})[_.size]),C=n(()=>({sm:`size-4`,md:`size-5`,lg:`size-7`})[_.size]);return(n,l)=>(r(),t(`span`,{class:e([`relative grid shrink-0 place-items-center`,[S.value,x.value.class]]),title:c.extension||void 0},[(r(),a(o(x.value.icon),{class:e(C.value),"stroke-width":1.75},null,8,[`class`])),c.extension&&c.size!==`sm`?(r(),t(`span`,g,i(c.extension),1)):s(``,!0)],10,h))}};export{_ as t}; \ No newline at end of file +import{Zn as e,b as t,g as n,mt as r,tr as i,v as a,wt as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{j as c}from"./dist-CleIz2GP.js";import{$ as l}from"./AppIcon-SVMShh8s.js";var u=c({name:`file-archive`,size:24,node:[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),d=c({name:`file-image`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]}),f=c({name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]}),p=c({name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]}),m=c({name:`presentation`,size:24,node:[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]}),h=[`title`],g={key:0,class:`absolute -bottom-1.5 rounded-[3px] bg-card px-1 text-[9px] leading-tight font-bold tracking-wide text-current ring-1 ring-border`},_={__name:`FileIcon`,props:{extension:{type:String,default:``},size:{type:String,default:`md`}},setup(c){let _=c,v={icon:l},y={icon:f},b={PDF:{...v,class:`bg-red-50 text-red-700 dark:bg-red-950/50 dark:text-red-300`},DOC:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},DOCX:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},ODT:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},RTF:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},TXT:{...v,class:`bg-muted text-muted-foreground`},XLS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},XLSX:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},CSV:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},ODS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},PPT:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},PPTX:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},JPG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},JPEG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},PNG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},ZIP:{icon:u,class:`bg-amber-50 text-amber-700 dark:bg-amber-950/50 dark:text-amber-300`}},x=n(()=>b[_.extension?.toUpperCase()]??{icon:p,class:`bg-muted text-muted-foreground`}),S=n(()=>({sm:`size-8 rounded-md`,md:`size-10 rounded-md`,lg:`size-14 rounded-lg`})[_.size]),C=n(()=>({sm:`size-4`,md:`size-5`,lg:`size-7`})[_.size]);return(n,l)=>(r(),t(`span`,{class:e([`relative grid shrink-0 place-items-center`,[S.value,x.value.class]]),title:c.extension||void 0},[(r(),a(o(x.value.icon),{class:e(C.value),"stroke-width":1.75},null,8,[`class`])),c.extension&&c.size!==`sm`?(r(),t(`span`,g,i(c.extension),1)):s(``,!0)],10,h))}};export{_ as t}; \ No newline at end of file diff --git a/public/build/assets/Folder-BP6hnAoY.js b/public/build/assets/Folder-BP6hnAoY.js new file mode 100644 index 00000000..ce5bad93 --- /dev/null +++ b/public/build/assets/Folder-BP6hnAoY.js @@ -0,0 +1 @@ +import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,Yt as o,Zn as s,_ as c,b as l,bt as u,er as d,g as f,mt as p,o as m,qt as h,tr as g,v as _,vn as v,wt as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{_ as x,w as S}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as C,i as w,n as T,r as E}from"./app-Dy5FbYkt.js";import{A as D,j as O}from"./dist-CleIz2GP.js";import{$ as ee,K as k,P as A,b as te,d as ne,f as re,h as j,m as M,nt as N,p as P}from"./AppIcon-SVMShh8s.js";import{t as ie}from"./AppLayout-X0y7XSjx.js";import{_ as ae,o as oe,t as se,y as ce}from"./http-9R3L4KBg.js";import{t as F}from"./download-cH_7CRKx.js";import{n as le,t as ue}from"./file-plus-corner-InzMgr9W.js";import{n as I,r as L,t as R}from"./format-CUVSeMK_.js";import{t as z}from"./FileIcon-LA1rFyBK.js";import{n as B,r as V,t as H}from"./FolderTile-CFCj9eng.js";import{t as U}from"./paperclip-D1QLTe3x.js";import{t as de}from"./pencil-line-Cp-EHBoW.js";import{t as fe}from"./smartphone-2VTLQVgX.js";import{t as pe}from"./trash-3XeUxfQJ.js";import{n as W,t as G}from"./DialogHeader-UfXa7NWq.js";import{t as K}from"./FormField-BcJMyuzX.js";import{t as me}from"./EmptyState-Ceq4v8mE.js";import{t as he}from"./PageHeader-Dcr3nLVu.js";import{t as q}from"./button-SRYY3-ko.js";import{t as ge}from"./NativeSelect-BBbvK4oZ.js";import{t as J}from"./Input-CgjHXzkf.js";import{t as _e}from"./Skeleton-CDbudwoF.js";import{i as Y,n as ve,r as X,t as Z}from"./dialog-DrnG5a9r.js";import{t as ye}from"./colors-RDOJqd57.js";import{t as be}from"./QmSearchBox-DmD7IrDS.js";var xe=O({name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]}),Se=O({name:`file-up`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]}),Ce=O({name:`files`,size:24,node:[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]}),we=O({name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]}),Te=O({name:`scan-text`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 8h8`,key:`1jbsf9`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h6`,key:`1vyc9m`}]]}),Ee={key:0,class:`grid gap-2`,"aria-busy":`true`},De={key:1,class:`-mx-2 divide-y`},Oe={class:`min-w-0 flex-1`},ke={class:`truncate text-sm`},Ae={key:0,class:`ml-1 text-[11px] text-muted-foreground`},je={class:`text-xs text-muted-foreground`},Me=[`href`],Ne={__name:`ArchiveDialog`,props:{open:{type:Boolean,default:!1},entry:{type:Object,default:null}},emits:[`update:open`],setup(e){let r=e,o=v(null);return i(()=>r.open,async e=>{e&&r.entry&&(o.value=null,o.value=(await se.get(`/qm/eintraege/${r.entry.id}/archiv`)).files)}),(r,i)=>(p(),_(a(Y),{open:e.open,"onUpdate:open":i[0]||=e=>r.$emit(`update:open`,e)},{default:h(()=>[t(a(X),{class:`sm:max-w-2xl`},{default:h(()=>[t(a(G),null,{default:h(()=>[t(a(Z),null,{default:h(()=>[...i[1]||=[n(`Fassungen`,-1)]]),_:1}),t(a(W),null,{default:h(()=>[n(g(e.entry?.title)+` – frühere Fassungen sieht nur das QM-Team.`,1)]),_:1})]),_:1}),o.value?(p(),l(`ul`,De,[(p(!0),l(m,null,u(o.value,e=>(p(),l(`li`,{key:e.id,class:`flex items-center gap-3 px-2 py-2.5`},[c(`div`,Oe,[c(`p`,ke,[n(g(e.name)+` `,1),c(`span`,{class:s([`ml-1 rounded px-1.5 py-0.5 text-[11px]`,e.archived?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-soft-foreground`])},g(e.archived?`Archiv`:`aktuell`),3),e.kind===`editable`?(p(),l(`span`,Ae,`Vorlage`)):b(``,!0)]),c(`p`,je,[n(` Version `+g(e.version||`–`)+` · Stand `+g(a(I)(e.valid_from))+` · `+g(a(R)(e.size)),1),e.uploader?(p(),l(m,{key:0},[n(` · `+g(e.uploader),1)],64)):b(``,!0)])]),t(a(q),{variant:`ghost`,size:`icon`,"as-child":``,title:`${e.name} herunterladen`},{default:h(()=>[c(`a`,{href:e.url},[t(a(F))],8,Me)]),_:2},1032,[`title`])]))),128))])):(p(),l(`div`,Ee,[(p(),l(m,null,u(3,e=>t(a(_e),{key:e,class:`h-10`})),64))]))]),_:1})]),_:1},8,[`open`]))}},Pe={class:`flex gap-3`},Fe={class:`min-w-0 pt-0.5`},Ie={class:`mt-1 grid gap-0.5 text-[13px]`},Le=[`href`],Re={key:2,class:`truncate text-muted-foreground`},ze={__name:`ContactCard`,props:{contact:{type:Object,required:!0}},setup(e){let r=e=>e.type===`phone`?`tel:${e.value}`:e.type===`email`?`mailto:${e.value}`:null,i=e=>e.key===`mobile`?fe:e.type===`phone`?ce:e.type===`email`?k:null;return(o,s)=>(p(),l(`div`,Pe,[t(a(T),{href:`/personen/${e.contact.id}`,class:`shrink-0`},{default:h(()=>[t(te,{person:e.contact,class:`size-14 text-base`},null,8,[`person`])]),_:1},8,[`href`]),c(`div`,Fe,[t(a(T),{href:`/personen/${e.contact.id}`,class:`block truncate text-sm font-semibold hover:underline`},{default:h(()=>[n(g(e.contact.name),1)]),_:1},8,[`href`]),c(`ul`,Ie,[(p(!0),l(m,null,u(e.contact.fields,e=>(p(),l(`li`,{key:e.key,class:`flex min-w-0 items-center gap-1.5`},[i(e)?(p(),_(y(i(e)),{key:0,class:`size-3.5 shrink-0 text-muted-foreground`})):b(``,!0),r(e)?(p(),l(`a`,{key:1,href:r(e),class:`truncate text-brand-text hover:underline`},g(e.value),9,Le)):(p(),l(`span`,Re,g(e.value),1))]))),128))])])]))}},Be={class:`flex min-w-0 items-center gap-2`},Ve=[`id`,`accept`],He={key:0,class:`flex min-w-0 items-center gap-1 text-[13px]`},Ue={class:`truncate`},We={key:1,class:`text-[13px] text-muted-foreground`},Q={__name:`FilePick`,props:e({id:{type:String,required:!0},accept:{type:String,default:``}},{modelValue:{type:[Object,null],default:null},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let i=r(e,`modelValue`),o=v(null);function s(e){i.value=e.target.files[0]??null}function u(){i.value=null,o.value&&(o.value.value=``)}return(r,d)=>(p(),l(`div`,Be,[c(`input`,{id:e.id,ref_key:`input`,ref:o,type:`file`,class:`sr-only`,accept:e.accept,onChange:s},null,40,Ve),t(a(q),{type:`button`,variant:`outline`,size:`sm`,onClick:d[0]||=e=>o.value?.click()},{default:h(()=>[t(a(U)),d[1]||=n(` Datei auswählen`,-1)]),_:1}),i.value?(p(),l(`span`,He,[c(`span`,Ue,g(i.value.name),1),c(`button`,{type:`button`,class:`grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent`,"aria-label":`Auswahl entfernen`,onClick:u},[t(a(ae),{class:`size-3.5`})])])):(p(),l(`span`,We,`Keine Datei ausgewählt`))]))}},Ge={key:0,class:`grid grid-cols-3 gap-2`,role:`radiogroup`,"aria-label":`Art des Eintrags`},Ke=[`aria-checked`,`onClick`],qe={class:`grid gap-4 sm:grid-cols-2`},Je={key:0,class:`flex items-center gap-2 text-[13px]`},Ye={class:`text-xs text-muted-foreground`},Xe={key:4,class:`h-1 overflow-hidden rounded-full bg-muted`},Ze={__name:`EntryDialog`,props:{open:{type:Boolean,default:!1},mode:{type:String,default:`create`},entry:{type:Object,default:null},folderId:{type:Number,required:!0},forms:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20}},emits:[`update:open`],setup(e,{emit:r}){let v=e,C=r,w=()=>new Date().toISOString().slice(0,10),T=E({type:`file`,title:``,description:``,version:``,valid_from:w(),url:``,form_id:null,reading:null,editable:null,remove_editable:!1});i(()=>v.open,e=>{if(!e)return;T.clearErrors();let t=v.entry;T.defaults({type:t?.type??`file`,title:t?.title??``,description:t?.description??``,version:t?.version??``,valid_from:v.mode===`version`?w():t?.valid_from??w(),url:t?.url??``,form_id:t?.form_id??null,reading:null,editable:null,remove_editable:!1}),T.reset()});let O=[{value:`file`,label:`Datei`,icon:ee},{value:`link`,label:`Link`,icon:we},{value:`form`,label:`Online-Formular`,icon:N}],k=f(()=>({create:`Eintrag hinzufügen`,edit:`Eintrag bearbeiten`,version:`Neue Fassung hochladen`})[v.mode]);function A(){let e=v.mode===`create`?`/qm/ordner/${v.folderId}/eintraege`:`/qm/eintraege/${v.entry.id}`;T.post(e,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>C(`update:open`,!1)})}return(r,i)=>(p(),_(a(Y),{open:e.open,"onUpdate:open":i[10]||=e=>C(`update:open`,e)},{default:h(()=>[t(a(X),{class:`sm:max-w-xl`},{default:h(()=>[t(a(G),null,{default:h(()=>[t(a(Z),null,{default:h(()=>[n(g(k.value),1)]),_:1}),e.mode===`version`?(p(),_(a(W),{key:0},{default:h(()=>[n(`„`+g(e.entry?.title)+`“ – die bisherige Fassung kommt ins Archiv und bleibt für das QM-Team abrufbar.`,1)]),_:1})):b(``,!0)]),_:1}),c(`form`,{class:`grid gap-4`,onSubmit:S(A,[`prevent`])},[e.mode===`create`?(p(),l(`div`,Ge,[(p(),l(m,null,u(O,e=>c(`button`,{key:e.value,type:`button`,role:`radio`,"aria-checked":a(T).type===e.value,class:s([`flex items-center justify-center gap-2 rounded-md border px-3 py-2 text-sm`,a(T).type===e.value?`border-brand-400 bg-brand-soft font-medium text-brand-soft-foreground`:`hover:bg-accent`]),onClick:t=>a(T).type=e.value},[(p(),_(y(e.icon),{class:`size-4`})),n(` `+g(e.label),1)],10,Ke)),64))])):b(``,!0),t(K,{id:`qm-title`,label:`Titel`,error:a(T).errors.title},{default:h(()=>[t(a(J),{id:`qm-title`,modelValue:a(T).title,"onUpdate:modelValue":i[0]||=e=>a(T).title=e,maxlength:`250`,placeholder:`z. B. Urlaubsantrag`},null,8,[`modelValue`])]),_:1},8,[`error`]),c(`div`,qe,[t(K,{id:`qm-version`,label:`Version`,error:a(T).errors.version},{default:h(()=>[t(a(J),{id:`qm-version`,modelValue:a(T).version,"onUpdate:modelValue":i[1]||=e=>a(T).version=e,maxlength:`30`,placeholder:`z. B. 2.1`},null,8,[`modelValue`])]),_:1},8,[`error`]),t(K,{id:`qm-valid`,label:`Stand (gültig ab)`,error:a(T).errors.valid_from},{default:h(()=>[t(a(J),{id:`qm-valid`,modelValue:a(T).valid_from,"onUpdate:modelValue":i[2]||=e=>a(T).valid_from=e,type:`date`},null,8,[`modelValue`])]),_:1},8,[`error`])]),t(K,{id:`qm-description`,label:`Beschreibung (optional)`,error:a(T).errors.description},{default:h(()=>[t(a(J),{id:`qm-description`,modelValue:a(T).description,"onUpdate:modelValue":i[3]||=e=>a(T).description=e,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(T).type===`file`?(p(),l(m,{key:1},[t(K,{id:`qm-reading`,label:e.mode===`edit`?`Datei ersetzen (optional – neue Fassung)`:`Datei (PDF empfohlen – öffnet sich direkt zum Lesen)`,error:a(T).errors.reading},{default:h(()=>[t(Q,{id:`qm-reading`,modelValue:a(T).reading,"onUpdate:modelValue":i[4]||=e=>a(T).reading=e,accept:`.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp,.rtf,.txt,.csv,.png,.jpg,.jpeg,.gif,.webp,.zip`},null,8,[`modelValue`])]),_:1},8,[`label`,`error`]),t(K,{id:`qm-editable`,label:`Bearbeitbare Vorlage (optional, z. B. Word oder Excel zum Ausfüllen)`,error:a(T).errors.editable},{default:h(()=>[t(Q,{id:`qm-editable`,modelValue:a(T).editable,"onUpdate:modelValue":i[5]||=e=>a(T).editable=e,accept:`.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp,.rtf,.txt,.csv,.pdf,.zip`},null,8,[`modelValue`])]),_:1},8,[`error`]),e.mode!==`create`&&e.entry?.editable&&!a(T).editable?(p(),l(`label`,Je,[o(c(`input`,{"onUpdate:modelValue":i[6]||=e=>a(T).remove_editable=e,type:`checkbox`},null,512),[[x,a(T).remove_editable]]),n(` Bisherige Vorlage „`+g(e.entry.editable.name)+`“ entfernen `,1)])):b(``,!0),c(`p`,Ye,`Bis `+g(e.maxUploadMb)+` MB je Datei. Der Inhalt wird für die Suche erfasst.`,1)],64)):b(``,!0),a(T).type===`link`?(p(),_(K,{key:2,id:`qm-url`,label:`Adresse`,error:a(T).errors.url},{default:h(()=>[t(a(J),{id:`qm-url`,modelValue:a(T).url,"onUpdate:modelValue":i[7]||=e=>a(T).url=e,placeholder:`https://… oder /seiten/…`},null,8,[`modelValue`])]),_:1},8,[`error`])):b(``,!0),a(T).type===`form`?(p(),_(K,{key:3,id:`qm-form`,label:`Formular`,error:a(T).errors.form_id},{default:h(()=>[t(ge,{id:`qm-form`,modelValue:a(T).form_id,"onUpdate:modelValue":i[8]||=e=>a(T).form_id=e,options:[{value:null,label:`Bitte wählen …`},...e.forms]},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])):b(``,!0),t(a(ve),null,{default:h(()=>[t(a(q),{type:`button`,variant:`outline`,onClick:i[9]||=e=>C(`update:open`,!1)},{default:h(()=>[...i[11]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(q),{type:`submit`,disabled:a(T).processing||e.mode===`version`&&!a(T).reading&&!a(T).editable},{default:h(()=>[a(T).processing?(p(),_(a(D),{key:0,class:`animate-spin`})):b(``,!0),i[12]||=n(` Speichern `,-1)]),_:1},8,[`disabled`])]),_:1}),a(T).progress?(p(),l(`div`,Xe,[c(`div`,{class:`h-full bg-brand`,style:d({width:`${a(T).progress.percentage}%`})},null,4)])):b(``,!0)],32)]),_:1})]),_:1},8,[`open`]))}},Qe={class:`overflow-hidden rounded-lg border bg-card`},$e={class:`divide-y`},et={class:`flex min-w-0 items-center gap-3`},tt={key:1,class:`grid size-8 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},nt={class:`min-w-0`},rt={key:1,class:`block truncate text-sm font-medium`},it={key:2,class:`truncate text-xs text-muted-foreground`},at={class:`flex flex-wrap items-center gap-x-2 text-xs text-muted-foreground`},ot={class:`md:hidden`},st=[`href`,`title`],ct={key:1,class:`inline-flex items-center gap-1 text-amber-700 dark:text-amber-400`,title:`Eingescanntes PDF – Inhalt erst nach Texterkennung durchsuchbar`},lt={class:`hidden text-[13px] md:block`},ut={class:`hidden text-[13px] tabular-nums md:block`},dt={class:`hidden text-right text-[13px] text-muted-foreground tabular-nums md:block`},ft={class:`flex items-center justify-end gap-1`},pt=[`href`,`aria-label`],mt={key:2,class:`hidden size-8 md:block`,"aria-hidden":`true`},ht={__name:`EntryTable`,props:{entries:{type:Array,required:!0},canManage:{type:Boolean,default:!1}},emits:[`edit`,`new-version`,`archive`,`remove`],setup(e){let r={view:`Lesen`,download:`Herunterladen`,link:`Öffnen`,form:`Ausfüllen`},i=e=>e.open_kind===`link`||e.open_kind===`download`;return(o,d)=>(p(),l(`div`,Qe,[c(`div`,{class:s([`hidden grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_9.5rem] items-center gap-4 border-b bg-muted/40 px-4 py-2 text-xs font-medium text-muted-foreground md:grid`,{"md:grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_11.5rem]":e.canManage}])},[...d[0]||=[c(`span`,null,`Dokument`,-1),c(`span`,null,`Version`,-1),c(`span`,null,`Stand`,-1),c(`span`,{class:`text-right`},`Größe`,-1),c(`span`,{class:`sr-only`},`Aktion`,-1)]],2),c(`ul`,$e,[(p(!0),l(m,null,u(e.entries,u=>(p(),l(`li`,{key:u.id,class:s([`grid items-center gap-x-4 gap-y-1 px-4 py-2.5 hover:bg-accent/50 md:grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_9.5rem]`,{"md:grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_11.5rem]":e.canManage}])},[c(`div`,et,[u.type===`file`?(p(),_(z,{key:0,extension:u.extension,size:`sm`},null,8,[`extension`])):(p(),l(`span`,tt,[u.type===`form`?(p(),_(a(N),{key:0,class:`size-4`})):(p(),_(a(L),{key:1,class:`size-4`}))])),c(`div`,nt,[u.open_url?(p(),_(y(i(u)?`a`:a(T)),{key:0,href:u.open_url,target:u.open_kind===`link`?`_blank`:void 0,rel:u.open_kind===`link`?`noopener`:void 0,class:`block truncate text-sm font-medium hover:underline`},{default:h(()=>[n(g(u.title),1)]),_:2},1032,[`href`,`target`,`rel`])):(p(),l(`span`,rt,g(u.title),1)),u.description?(p(),l(`p`,it,g(u.description),1)):b(``,!0),c(`p`,at,[c(`span`,ot,g(u.version?`Version ${u.version} · `:``)+`Stand `+g(a(I)(u.valid_from)),1),u.editable?(p(),l(`a`,{key:0,href:u.editable.url,class:`inline-flex items-center gap-1 text-brand-text hover:underline`,title:u.editable.name},[t(a(F),{class:`size-3`}),n(` Vorlage (`+g(u.editable.extension)+`) `,1)],8,st)):b(``,!0),e.canManage&&u.text_status===`needs_ocr`?(p(),l(`span`,ct,[t(a(Te),{class:`size-3`}),d[1]||=n(` Scan, Inhalt nicht durchsuchbar `,-1)])):b(``,!0)])])]),c(`span`,lt,g(u.version||`–`),1),c(`span`,ut,g(a(I)(u.valid_from)),1),c(`span`,dt,g(u.type===`file`?a(R)(u.size):`–`),1),c(`div`,ft,[u.open_url?(p(),_(a(q),{key:0,size:`sm`,variant:`outline`,class:`h-8 min-w-28`,"as-child":``},{default:h(()=>[(p(),_(y(i(u)?`a`:a(T)),{href:u.open_url,target:u.open_kind===`link`?`_blank`:void 0,rel:u.open_kind===`link`?`noopener`:void 0},{default:h(()=>[u.open_kind===`link`?(p(),_(a(L),{key:0})):u.open_kind===`form`?(p(),_(a(N),{key:1})):u.open_kind===`download`?(p(),_(a(F),{key:2})):b(``,!0),n(` `+g(r[u.open_kind]),1)]),_:2},1032,[`href`,`target`,`rel`]))]),_:2},1024)):b(``,!0),u.open_kind===`view`&&u.download_url?(p(),_(a(q),{key:1,size:`icon`,variant:`ghost`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${u.title} herunterladen`},{default:h(()=>[c(`a`,{href:u.download_url,"aria-label":`${u.title} herunterladen`},[t(a(F))],8,pt)]),_:2},1032,[`title`])):(p(),l(`span`,mt)),e.canManage?(p(),_(a(j),{key:3},{default:h(()=>[t(a(ne),{"as-child":``},{default:h(()=>[t(a(q),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${u.title}`},{default:h(()=>[t(a(le))]),_:1},8,[`aria-label`])]),_:2},1024),t(a(M),{align:`end`,class:`w-56`},{default:h(()=>[t(a(P),{onSelect:e=>o.$emit(`edit`,u)},{default:h(()=>[t(a(de)),d[2]||=n(` Bearbeiten`,-1)]),_:1},8,[`onSelect`]),u.type===`file`?(p(),_(a(P),{key:0,onSelect:e=>o.$emit(`new-version`,u)},{default:h(()=>[t(a(Se)),d[3]||=n(` Neue Fassung hochladen`,-1)]),_:1},8,[`onSelect`])):b(``,!0),u.type===`file`?(p(),_(a(P),{key:1,onSelect:e=>o.$emit(`archive`,u)},{default:h(()=>[t(a(xe)),d[4]||=n(` Archiv (frühere Fassungen)`,-1)]),_:1},8,[`onSelect`])):b(``,!0),t(a(re)),t(a(P),{class:`text-destructive`,onSelect:e=>o.$emit(`remove`,u)},{default:h(()=>[t(a(pe)),d[5]||=n(` Löschen`,-1)]),_:1},8,[`onSelect`])]),_:2},1024)]),_:2},1024)):b(``,!0)])],2))),128))])]))}},gt=[`href`],_t={class:`grid min-w-0 gap-6`},vt={key:0,class:`relative overflow-hidden rounded-lg border bg-card p-5 pl-6`},yt=[`innerHTML`],$={key:1},bt={class:`grid grid-cols-[repeat(auto-fill,minmax(11.5rem,1fr))] gap-3`},xt={class:`mb-3 flex items-center justify-between gap-3`},St={class:`text-sm font-semibold text-muted-foreground`},Ct={key:0,class:`font-normal`},wt={key:1,class:`rounded-lg border border-dashed bg-card`},Tt={key:0,class:`rounded-lg border bg-card`},Et={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Dt={class:`grid gap-4 p-4`},Ot={__name:`Folder`,props:{folder:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},children:{type:Array,default:()=>[]},entries:{type:Array,default:()=>[]},canManage:{type:Boolean,default:!1},forms:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20},adminUrl:{type:String,default:null}},setup(e){let r=e,o=w();i(()=>o.props.flash.status,e=>e&&oe.success(e),{immediate:!0});let d=f(()=>ye(r.folder.color)),y=f(()=>[{label:`Qualitätsmanagement`,href:`/qm`},...r.breadcrumbs.map(e=>({label:e.name,href:`/qm/ordner/${e.id}`}))]),x=f(()=>r.folder.contacts.length>0),S=v({open:!1,mode:`create`,entry:null}),T=v({open:!1,entry:null}),E=(e,t=null)=>S.value={open:!0,mode:e,entry:t};function D(e){window.confirm(`„${e.title}“ mit allen Fassungen löschen?`)&&C.delete(`/qm/eintraege/${e.id}`,{preserveScroll:!0})}return(r,i)=>(p(),_(ie,{title:e.folder.name},{default:h(()=>[t(he,{title:e.folder.name,breadcrumbs:y.value},{leading:h(()=>[c(`span`,{class:s([`grid size-12 shrink-0 place-items-center rounded-lg text-white shadow-xs`,d.value.tile])},[t(B,{icon:e.folder.icon,class:`size-6`},null,8,[`icon`])],2)]),actions:h(()=>[e.adminUrl?(p(),_(a(q),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:h(()=>[c(`a`,{href:e.adminUrl},[t(a(V)),i[6]||=n(` Ordner bearbeiten`,-1)],8,gt)]),_:1})):b(``,!0),t(be)]),_:1},8,[`title`,`breadcrumbs`]),c(`div`,{class:s([`grid items-start gap-6`,{"lg:grid-cols-[minmax(0,1fr)_20rem]":x.value}])},[c(`div`,_t,[e.folder.intro?(p(),l(`section`,vt,[c(`span`,{class:s([`absolute inset-y-0 left-0 w-1.5`,d.value.tile]),"aria-hidden":`true`},null,2),c(`div`,{class:`prose prose-sm max-w-none dark:prose-invert`,innerHTML:e.folder.intro},null,8,yt)])):b(``,!0),e.children.length?(p(),l(`section`,$,[i[7]||=c(`h2`,{class:`mb-3 text-sm font-semibold text-muted-foreground`},`Unterordner`,-1),c(`div`,bt,[(p(!0),l(m,null,u(e.children,e=>(p(),_(H,{key:e.id,folder:e,small:``},null,8,[`folder`]))),128))])])):b(``,!0),c(`section`,null,[c(`div`,xt,[c(`h2`,St,[i[8]||=n(`Dokumente `,-1),e.entries.length?(p(),l(`span`,Ct,`(`+g(e.entries.length)+`)`,1)):b(``,!0)]),e.canManage?(p(),_(a(q),{key:0,size:`sm`,onClick:i[0]||=e=>E(`create`)},{default:h(()=>[t(a(ue)),i[9]||=n(` Eintrag hinzufügen`,-1)]),_:1})):b(``,!0)]),e.entries.length?(p(),_(ht,{key:0,entries:e.entries,"can-manage":e.canManage,onEdit:i[1]||=e=>E(`edit`,e),onNewVersion:i[2]||=e=>E(`version`,e),onArchive:i[3]||=e=>T.value={open:!0,entry:e},onRemove:D},null,8,[`entries`,`can-manage`])):(p(),l(`div`,wt,[t(me,{icon:a(Ce),title:`Noch keine Dokumente`,text:e.canManage?`Mit „Eintrag hinzufügen“ Dateien, Links oder Formulare ergänzen.`:``},null,8,[`icon`,`text`])]))])]),x.value?(p(),l(`aside`,Tt,[c(`h2`,Et,[t(a(A),{class:s([`size-4`,d.value.text])},null,8,[`class`]),n(` `+g(e.folder.contacts.length===1?`Ansprechpartner*in`:`Ansprechpartner*innen`),1)]),c(`div`,Dt,[(p(!0),l(m,null,u(e.folder.contacts,e=>(p(),_(ze,{key:e.id,contact:e},null,8,[`contact`]))),128))])])):b(``,!0)],2),e.canManage?(p(),_(Ze,{key:0,open:S.value.open,"onUpdate:open":i[4]||=e=>S.value.open=e,mode:S.value.mode,entry:S.value.entry,"folder-id":e.folder.id,forms:e.forms,"max-upload-mb":e.maxUploadMb},null,8,[`open`,`mode`,`entry`,`folder-id`,`forms`,`max-upload-mb`])):b(``,!0),e.canManage?(p(),_(Ne,{key:1,open:T.value.open,"onUpdate:open":i[5]||=e=>T.value.open=e,entry:T.value.entry},null,8,[`open`,`entry`])):b(``,!0)]),_:1},8,[`title`]))}};export{Ot as default}; \ No newline at end of file diff --git a/public/build/assets/FolderBlock-BAOKZUHJ.js b/public/build/assets/FolderBlock-DBNJ8vSM.js similarity index 93% rename from public/build/assets/FolderBlock-BAOKZUHJ.js rename to public/build/assets/FolderBlock-DBNJ8vSM.js index 292019cb..1d60bb40 100644 --- a/public/build/assets/FolderBlock-BAOKZUHJ.js +++ b/public/build/assets/FolderBlock-DBNJ8vSM.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as d}from"./app-CIvn5Z1l.js";import{t as f}from"./chevron-right-DR4LjgDm.js";import{t as p}from"./download-cH_7CRKx.js";import{t as m}from"./FileIcon-BHQ0ftg2.js";var h={key:0},g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={class:`divide-y rounded-lg border bg-card`},y=[`href`],b={class:`min-w-0 flex-1`},x={class:`block truncate text-sm font-medium group-hover:underline`},S={key:0,class:`block truncate text-[13px] text-muted-foreground`},C={class:`block text-xs text-muted-foreground`},w={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},T={__name:`FolderBlock`,props:{block:{type:Object,required:!0}},setup(T){let E=e=>e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(D,O)=>T.block.props?(o(),i(`section`,h,[T.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(T.block.data.title),1),e(n(d),{href:T.block.props.folder_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[O[0]||=t(`Zum Ordner `,-1),e(n(f),{class:`size-3.5`})]),_:1},8,[`href`])])):u(``,!0),r(`ul`,v,[(o(!0),i(s,null,a(T.block.props.downloads,t=>(o(),i(`li`,{key:t.id},[r(`a`,{href:t.download_url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[e(m,{extension:t.extension},null,8,[`extension`]),r(`span`,b,[r(`span`,x,l(t.title),1),T.block.data.show_description&&t.description?(o(),i(`span`,S,l(t.description),1)):u(``,!0),r(`span`,C,l(t.extension)+` · `+l(E(t.size)),1)]),e(n(p),{class:`size-4 shrink-0 text-muted-foreground`})],8,y)]))),128)),T.block.props.downloads.length?u(``,!0):(o(),i(`li`,w,`Keine Dateien in diesem Ordner.`))])])):u(``,!0)}};export{T as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as d}from"./app-Dy5FbYkt.js";import{t as f}from"./chevron-right-DR4LjgDm.js";import{t as p}from"./download-cH_7CRKx.js";import{t as m}from"./FileIcon-LA1rFyBK.js";var h={key:0},g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={class:`divide-y rounded-lg border bg-card`},y=[`href`],b={class:`min-w-0 flex-1`},x={class:`block truncate text-sm font-medium group-hover:underline`},S={key:0,class:`block truncate text-[13px] text-muted-foreground`},C={class:`block text-xs text-muted-foreground`},w={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},T={__name:`FolderBlock`,props:{block:{type:Object,required:!0}},setup(T){let E=e=>e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(D,O)=>T.block.props?(o(),i(`section`,h,[T.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(T.block.data.title),1),e(n(d),{href:T.block.props.folder_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[O[0]||=t(`Zum Ordner `,-1),e(n(f),{class:`size-3.5`})]),_:1},8,[`href`])])):u(``,!0),r(`ul`,v,[(o(!0),i(s,null,a(T.block.props.downloads,t=>(o(),i(`li`,{key:t.id},[r(`a`,{href:t.download_url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[e(m,{extension:t.extension},null,8,[`extension`]),r(`span`,b,[r(`span`,x,l(t.title),1),T.block.data.show_description&&t.description?(o(),i(`span`,S,l(t.description),1)):u(``,!0),r(`span`,C,l(t.extension)+` · `+l(E(t.size)),1)]),e(n(p),{class:`size-4 shrink-0 text-muted-foreground`})],8,y)]))),128)),T.block.props.downloads.length?u(``,!0):(o(),i(`li`,w,`Keine Dateien in diesem Ordner.`))])])):u(``,!0)}};export{T as default}; \ No newline at end of file diff --git a/public/build/assets/FolderTile-CFCj9eng.js b/public/build/assets/FolderTile-CFCj9eng.js new file mode 100644 index 00000000..038d8b25 --- /dev/null +++ b/public/build/assets/FolderTile-CFCj9eng.js @@ -0,0 +1 @@ +import{D as e,On as t,Zn as n,_ as r,b as i,er as a,mt as o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-Dy5FbYkt.js";import{j as d}from"./dist-CleIz2GP.js";import{t as f}from"./AppIcon-SVMShh8s.js";import{t as p}from"./colors-RDOJqd57.js";var m=d({name:`folder-cog`,size:24,node:[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]],aliases:[`folder-cog-2`]}),h=[`src`],g={__name:`QmIcon`,props:{icon:{type:Object,default:()=>({name:`folder`})},strokeWidth:{type:[Number,String],default:1.75}},setup(e){return(t,n)=>e.icon?.name?(o(),l(f,{key:0,name:e.icon.name,"stroke-width":e.strokeWidth},null,8,[`name`,`stroke-width`])):e.icon?.url&&e.icon.mono?(o(),i(`span`,{key:1,class:`inline-block bg-current`,style:a({maskImage:`url('${e.icon.url}')`,WebkitMaskImage:`url('${e.icon.url}')`,maskSize:`contain`,WebkitMaskSize:`contain`,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`}),"aria-hidden":`true`},null,4)):e.icon?.url?(o(),i(`img`,{key:2,src:e.icon.url,alt:``,class:`object-contain`},null,8,h)):(o(),l(f,{key:3,name:`folder`,"stroke-width":e.strokeWidth},null,8,[`stroke-width`]))}},_={class:`pointer-events-none absolute -right-4 -bottom-5 opacity-15 transition-transform group-hover:scale-105`,"aria-hidden":`true`},v={class:`relative mt-3`},y={class:`mt-0.5 block text-xs text-white/80`},b={__name:`FolderTile`,props:{folder:{type:Object,required:!0},small:{type:Boolean,default:!1}},setup(i){let a=i,d=()=>{let e=[];return a.folder.folders&&e.push(`${a.folder.folders} ${a.folder.folders,`Ordner`}`),a.folder.entries&&e.push(`${a.folder.entries} ${a.folder.entries===1?`Dokument`:`Dokumente`}`),e.join(` · `)||`Noch leer`};return(a,f)=>(o(),l(t(u),{href:i.folder.url,class:n([`group relative flex flex-col justify-between overflow-hidden rounded-lg text-white shadow-xs transition hover:shadow-md hover:brightness-110 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none`,[t(p)(i.folder.color).tile,i.small?`min-h-24 p-3.5`:`min-h-32 p-4`]])},{default:s(()=>[r(`span`,_,[e(g,{icon:i.folder.icon,class:n(i.small?`size-20`:`size-24`)},null,8,[`icon`,`class`])]),r(`span`,{class:n([`grid place-items-center rounded-md bg-white/15`,i.small?`size-9`:`size-11`])},[e(g,{icon:i.folder.icon,class:n(i.small?`size-5`:`size-6`)},null,8,[`icon`,`class`])],2),r(`span`,v,[r(`span`,{class:n([`block leading-tight font-semibold`,i.small?`text-sm`:`text-[15px]`])},c(i.folder.name),3),r(`span`,y,c(d()),1)])]),_:1},8,[`href`,`class`]))}};export{g as n,m as r,b as t}; \ No newline at end of file diff --git a/public/build/assets/ForgotPassword-DgexuuME.js b/public/build/assets/ForgotPassword-CjPrjuOr.js similarity index 92% rename from public/build/assets/ForgotPassword-DgexuuME.js rename to public/build/assets/ForgotPassword-CjPrjuOr.js index 8d0164e0..83bed672 100644 --- a/public/build/assets/ForgotPassword-DgexuuME.js +++ b/public/build/assets/ForgotPassword-CjPrjuOr.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as d,r as f}from"./app-CIvn5Z1l.js";import{A as p}from"./dist-CleIz2GP.js";import{t as m}from"./arrow-left-nZZEveo4.js";import{t as h}from"./FormField-BcJMyuzX.js";import{t as g}from"./button-SRYY3-ko.js";import{t as _}from"./Input-CgjHXzkf.js";import{t as v}from"./GuestLayout-DAusAB2K.js";var y={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},b={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(b){let x=f({email:``});return(f,S)=>(a(),c(v,{title:`Passwort vergessen`,description:`Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können.`},{default:o(()=>[b.status?(a(),i(`div`,y,s(b.status),1)):l(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:S[1]||=u(e=>n(x).post(`/forgot-password`),[`prevent`])},[e(h,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(_),{id:`email`,modelValue:n(x).email,"onUpdate:modelValue":S[0]||=e=>n(x).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(n(g),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(x).processing},{default:o(()=>[n(x).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(m),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as d,r as f}from"./app-Dy5FbYkt.js";import{A as p}from"./dist-CleIz2GP.js";import{t as m}from"./arrow-left-nZZEveo4.js";import{t as h}from"./FormField-BcJMyuzX.js";import{t as g}from"./button-SRYY3-ko.js";import{t as _}from"./Input-CgjHXzkf.js";import{t as v}from"./GuestLayout-DxnnRWk6.js";var y={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},b={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(b){let x=f({email:``});return(f,S)=>(a(),c(v,{title:`Passwort vergessen`,description:`Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können.`},{default:o(()=>[b.status?(a(),i(`div`,y,s(b.status),1)):l(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:S[1]||=u(e=>n(x).post(`/forgot-password`),[`prevent`])},[e(h,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(_),{id:`email`,modelValue:n(x).email,"onUpdate:modelValue":S[0]||=e=>n(x).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(n(g),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(x).processing},{default:o(()=>[n(x).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(m),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default}; \ No newline at end of file diff --git a/public/build/assets/FormBlock-Dj-egPqI.js b/public/build/assets/FormBlock-D_yNR5Ol.js similarity index 93% rename from public/build/assets/FormBlock-Dj-egPqI.js rename to public/build/assets/FormBlock-D_yNR5Ol.js index 575fe92e..f0cc013f 100644 --- a/public/build/assets/FormBlock-Dj-egPqI.js +++ b/public/build/assets/FormBlock-D_yNR5Ol.js @@ -1 +1 @@ -import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./FormRenderer-nT5JUcxg.js";var d={key:0,class:`rounded-lg border bg-card p-5 @3xl:p-8`},f={class:`text-xl font-semibold tracking-tight`},p={key:0,class:`mt-2 mb-6 text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},m={key:1,class:`rounded-lg border border-dashed p-4 text-sm text-muted-foreground`},h={__name:`FormBlock`,props:{block:{type:Object,required:!0}},setup(h){let g=e(`pagebuilder:editing`,!1);return(e,_)=>h.block.props?(a(),i(`section`,d,[h.block.data.show_title?(a(),i(o,{key:0},[r(`h3`,f,s(h.block.props.title),1),h.block.props.description?(a(),i(`p`,p,s(h.block.props.description),1)):l(``,!0)],64)):l(``,!0),r(`div`,{class:n({"pointer-events-none opacity-80":t(g)})},[(a(),c(u,{key:h.block.props.id,form:h.block.props},null,8,[`form`]))],2)])):t(g)?(a(),i(`p`,m,`Bitte rechts ein Formular auswählen.`)):l(``,!0)}};export{h as default}; \ No newline at end of file +import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./FormRenderer-BI08HA0r.js";var d={key:0,class:`rounded-lg border bg-card p-5 @3xl:p-8`},f={class:`text-xl font-semibold tracking-tight`},p={key:0,class:`mt-2 mb-6 text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},m={key:1,class:`rounded-lg border border-dashed p-4 text-sm text-muted-foreground`},h={__name:`FormBlock`,props:{block:{type:Object,required:!0}},setup(h){let g=e(`pagebuilder:editing`,!1);return(e,_)=>h.block.props?(a(),i(`section`,d,[h.block.data.show_title?(a(),i(o,{key:0},[r(`h3`,f,s(h.block.props.title),1),h.block.props.description?(a(),i(`p`,p,s(h.block.props.description),1)):l(``,!0)],64)):l(``,!0),r(`div`,{class:n({"pointer-events-none opacity-80":t(g)})},[(a(),c(u,{key:h.block.props.id,form:h.block.props},null,8,[`form`]))],2)])):t(g)?(a(),i(`p`,m,`Bitte rechts ein Formular auswählen.`)):l(``,!0)}};export{h as default}; \ No newline at end of file diff --git a/public/build/assets/FormRenderer-BI08HA0r.js b/public/build/assets/FormRenderer-BI08HA0r.js new file mode 100644 index 00000000..20f6d300 --- /dev/null +++ b/public/build/assets/FormRenderer-BI08HA0r.js @@ -0,0 +1 @@ +import{D as e,E as t,On as n,Yt as r,Zn as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,wt as ee,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{_ as h,w as te,y as ne}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as g,r as re}from"./app-Dy5FbYkt.js";import{A as ie}from"./dist-CleIz2GP.js";import{S as ae,_ as oe,o as se}from"./http-9R3L4KBg.js";import{t as ce}from"./eye-off-DWbaLHNt.js";import{t as _}from"./lock-4X8Kfof0.js";import{t as v}from"./paperclip-D1QLTe3x.js";import{t as y}from"./send-BevoJaJI.js";import{t as b}from"./button-SRYY3-ko.js";import{t as x}from"./NativeSelect-BBbvK4oZ.js";import{t as S}from"./Input-CgjHXzkf.js";import{t as C}from"./Textarea-DWpyL-nk.js";var w={key:0,class:`flex gap-3 rounded-lg border border-emerald-200 bg-emerald-50 p-5 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,role:`status`},T={class:`font-medium whitespace-pre-line`},E={key:0,class:`mt-1 text-sm opacity-80`},D={key:1,class:`rounded-lg border bg-muted px-5 py-4 text-sm`},O={key:2,class:`rounded-lg border bg-muted px-5 py-4 text-sm`},k={key:0,class:`flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground @xl:col-span-2`},A={key:1,class:`rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive @xl:col-span-2`},j={key:0,class:`pt-2 text-lg font-semibold @xl:col-span-2`},M={key:1,class:`text-sm leading-relaxed whitespace-pre-line text-muted-foreground @xl:col-span-2`},N=[`for`],P=[`id`,`onUpdate:modelValue`,`aria-invalid`],F={key:0,class:`text-destructive`},I={key:0,class:`text-destructive`},L=[`aria-labelledby`],R=[`onUpdate:modelValue`,`name`,`value`],z=[`checked`,`onChange`],B={key:3,class:`grid gap-2`},le={key:0,class:`grid gap-1`},V={class:`min-w-0 flex-1 truncate`},H={class:`text-xs text-muted-foreground`},U=[`aria-label`,`onClick`],W={key:1,class:`flex h-10 cursor-pointer items-center justify-center gap-2 rounded-md border border-dashed text-sm text-muted-foreground hover:border-brand-300 hover:text-foreground`},ue=[`id`,`accept`,`multiple`,`onChange`],de=[`aria-describedby`],fe=[`id`],pe={key:1,class:`text-muted-foreground italic`},me={key:2,class:`text-[13px] text-destructive`},he={key:0,href:`/profil/bearbeiten`,class:`font-medium underline`},ge=[`id`],_e={key:4,class:`text-[13px] text-muted-foreground`},ve={class:`flex items-center gap-4 border-t pt-5 @xl:col-span-2`},G={__name:`FormRenderer`,props:{form:{type:Object,required:!0},compact:{type:Boolean,default:!1},preview:{type:Boolean,default:!1}},setup(G){let K=G,q=g(),ye=[`text`,`textarea`,`email`,`phone`,`number`,`date`,`select`,`radio`,`checkboxes`,`checkbox`,`file`];function be(e){let t=K.form.prefill?.[e.key];return e.type===`checkboxes`||e.type===`file`?[]:e.type===`checkbox`?!1:t??``}let J=re({answers:Object.fromEntries(K.form.fields.filter(e=>ye.includes(e.type)).map(e=>[e.key,be(e)]))}),xe=c(()=>q.props.flash?.form_submitted===K.form.id);function Y(e,t=0){if(!e.condition||t>10)return!0;let n=K.form.fields.find(t=>t.key===e.condition.field);if(!n||!Y(n,t+1))return!1;let r=J.answers[e.condition.field],i=(Array.isArray(r)?r:r===!0?[`1`]:r===!1||r===``||r==null?[]:[String(r)]).map(String),a=e.condition.value??``;switch(e.condition.operator){case`not_equals`:return!i.includes(a);case`filled`:return i.length>0;case`empty`:return i.length===0;default:return i.includes(a)}}let X=c(()=>K.form.fields.filter(e=>Y(e)));function Z(e){return J.errors[`answers.${e.key}`]??Object.entries(J.errors).find(([t])=>t.startsWith(`answers.${e.key}.`))?.[1]}function Q(e,t){let n=new Set(J.answers[e.key]);n.has(t)?n.delete(t):n.add(t),J.answers[e.key]=[...n]}function Se(e,t){let n=[...t.target.files??[]];J.answers[e.key]=e.multiple?[...J.answers[e.key],...n].slice(0,10):n.slice(0,1),t.target.value=``}function Ce(e,t){J.answers[e.key]=J.answers[e.key].filter((e,n)=>n!==t)}function we(){if(K.preview){se.info(`Vorschau – es wird nichts gesendet.`);return}let e=new Set(X.value.map(e=>e.key));J.transform(t=>({answers:Object.fromEntries(Object.entries(t.answers).filter(([t])=>e.has(t)))})).post(K.form.url,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{q.props.flash?.form_submitted===K.form.id&&J.reset()}})}let Te=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,$=e=>`f${K.form.id}-${e.key}`;return(c,g)=>xe.value?(l(),o(`div`,w,[e(n(ae),{class:`mt-0.5 size-5 shrink-0 text-emerald-600`}),a(`div`,null,[a(`p`,T,f(G.form.confirmation),1),G.form.send_copy?(l(),o(`p`,E,`Eine Kopie Ihrer Angaben ist per E-Mail unterwegs.`)):m(``,!0)])])):G.form.already_submitted?(l(),o(`p`,D,`Sie haben dieses Formular bereits ausgefüllt. Vielen Dank!`)):G.form.open?(l(),o(`form`,{key:3,class:`grid gap-5 @xl:grid-cols-2`,novalidate:``,onSubmit:te(we,[`prevent`])},[G.form.anonymous?(l(),o(`p`,k,[e(n(ce),{class:`mt-0.5 size-4 shrink-0`}),g[0]||=t(` Anonym: Ihr Name und Ihre E-Mail-Adresse werden nicht gespeichert. `,-1)])):m(``,!0),n(J).errors.form?(l(),o(`p`,A,f(n(J).errors.form),1)):m(``,!0),(l(!0),o(u,null,s(X.value,c=>(l(),o(u,{key:c.key},[c.type===`heading`?(l(),o(`h3`,j,f(c.text),1)):c.type===`paragraph`?(l(),o(`p`,M,f(c.text),1)):(l(),o(`div`,{key:2,class:i([`grid content-start gap-1.5`,c.width===`half`?``:`@xl:col-span-2`])},[c.type===`checkbox`?(l(),o(`label`,{key:0,for:$(c),class:`flex items-start gap-2.5 text-sm`},[r(a(`input`,{id:$(c),"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:`checkbox`,class:`mt-0.5 size-4 shrink-0 accent-[var(--brand)]`,"aria-invalid":!!Z(c)},null,8,P),[[h,n(J).answers[c.key]]]),a(`span`,null,[t(f(c.label),1),c.required?(l(),o(`span`,F,` *`)):m(``,!0)])],8,N)):(l(),o(u,{key:1},[(l(),p(ee([`radio`,`checkboxes`].includes(c.type)?`span`:`label`),{for:$(c),class:`text-[13px] font-medium`,id:`${$(c)}-label`},{default:d(()=>[t(f(c.label),1),c.required?(l(),o(`span`,I,` *`)):m(``,!0)]),_:2},1032,[`for`,`id`])),c.type===`textarea`?(l(),p(n(C),{key:0,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,rows:c.rows??4,maxlength:c.max,"aria-invalid":!!Z(c)},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`rows`,`maxlength`,`aria-invalid`])):c.type===`select`?(l(),p(x,{key:1,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,options:c.options.map(e=>({value:e,label:e})),placeholder:`Bitte wählen …`},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`options`])):c.type===`radio`||c.type===`checkboxes`?(l(),o(`div`,{key:2,class:`grid gap-1.5`,role:`group`,"aria-labelledby":`${$(c)}-label`},[(l(!0),o(u,null,s(c.options,e=>(l(),o(`label`,{key:e,class:`flex items-center gap-2.5 text-sm`},[c.type===`radio`?r((l(),o(`input`,{key:0,"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:`radio`,name:$(c),value:e,class:`size-4 accent-[var(--brand)]`},null,8,R)),[[ne,n(J).answers[c.key]]]):(l(),o(`input`,{key:1,type:`checkbox`,checked:n(J).answers[c.key].includes(e),class:`size-4 accent-[var(--brand)]`,onChange:t=>Q(c,e)},null,40,z)),t(` `+f(e),1)]))),128))],8,L)):c.type===`file`?(l(),o(`div`,B,[n(J).answers[c.key].length?(l(),o(`ul`,le,[(l(!0),o(u,null,s(n(J).answers[c.key],(t,r)=>(l(),o(`li`,{key:r,class:`flex items-center gap-2 rounded-md border bg-card px-3 py-1.5 text-sm`},[e(n(v),{class:`size-4 shrink-0 text-muted-foreground`}),a(`span`,V,f(t.name),1),a(`span`,H,f(Te(t.size)),1),a(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,"aria-label":`${t.name} entfernen`,onClick:e=>Ce(c,r)},[e(n(oe),{class:`size-3.5`})],8,U)]))),128))])):m(``,!0),c.multiple||!n(J).answers[c.key].length?(l(),o(`label`,W,[e(n(v),{class:`size-4`}),t(` `+f(c.multiple?`Dateien auswählen`:`Datei auswählen`)+` `,1),a(`input`,{id:$(c),type:`file`,class:`sr-only`,accept:c.accept,multiple:c.multiple,onChange:e=>Se(c,e)},null,40,ue)])):m(``,!0)])):c.locked?(l(),o(`div`,{key:4,class:`flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm`,"aria-describedby":`${$(c)}-locked`},[e(n(_),{class:`size-3.5 shrink-0 text-muted-foreground`}),n(J).answers[c.key]?(l(),o(`span`,{key:0,id:$(c),class:`truncate`},f(n(J).answers[c.key]),9,fe)):(l(),o(`span`,pe,f(G.preview?`wird aus dem Profil übernommen`:`nicht im Profil hinterlegt`),1))],8,de)):(l(),p(n(S),{key:5,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:{email:`email`,phone:`tel`,number:`number`,date:`date`}[c.type]??`text`,placeholder:c.placeholder,maxlength:c.type===`text`?c.max:void 0,min:c.type===`number`?c.min:void 0,max:c.type===`number`?c.max:void 0,"aria-invalid":!!Z(c)},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`placeholder`,`maxlength`,`min`,`max`,`aria-invalid`]))],64)),Z(c)?(l(),o(`p`,me,[t(f(Z(c))+` `,1),c.locked?(l(),o(`a`,he,`Profil öffnen`)):m(``,!0)])):c.locked?(l(),o(`p`,{key:3,id:`${$(c)}-locked`,class:`text-[13px] text-muted-foreground`},`Aus Ihrem Profil – nicht änderbar.`,8,ge)):c.help?(l(),o(`p`,_e,[t(f(c.help),1),c.type===`file`&&c.max_size?(l(),o(u,{key:0},[t(` (höchstens `+f(c.max_size)+` MB)`,1)],64)):m(``,!0)])):m(``,!0)],2))],64))),128)),a(`div`,ve,[e(n(b),{type:`submit`,disabled:n(J).processing},{default:d(()=>[n(J).processing?(l(),p(n(ie),{key:0,class:`animate-spin`})):(l(),p(n(y),{key:1})),t(` `+f(G.form.submit_label),1)]),_:1},8,[`disabled`]),g[1]||=a(`span`,{class:`text-xs text-muted-foreground`},`* Pflichtfeld`,-1)])],32)):(l(),o(`p`,O,`Dieses Formular nimmt keine Einsendungen mehr an.`))}};export{G as t}; \ No newline at end of file diff --git a/public/build/assets/FormRenderer-nT5JUcxg.js b/public/build/assets/FormRenderer-nT5JUcxg.js deleted file mode 100644 index 110ee36c..00000000 --- a/public/build/assets/FormRenderer-nT5JUcxg.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,On as n,Yt as r,Zn as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,wt as ee,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{_ as te,w as h,y as ne}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as g,r as re}from"./app-CIvn5Z1l.js";import{A as ie,j as _}from"./dist-CleIz2GP.js";import{S as ae,_ as oe,o as se}from"./http-9R3L4KBg.js";import{t as v}from"./eye-off-DWbaLHNt.js";import{t as y}from"./lock-4X8Kfof0.js";import{t as b}from"./send-BevoJaJI.js";import{t as x}from"./button-SRYY3-ko.js";import{t as S}from"./NativeSelect-BBbvK4oZ.js";import{t as C}from"./Input-CgjHXzkf.js";import{t as w}from"./Textarea-DWpyL-nk.js";var T=_({name:`paperclip`,size:24,node:[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]}),E={key:0,class:`flex gap-3 rounded-lg border border-emerald-200 bg-emerald-50 p-5 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,role:`status`},D={class:`font-medium whitespace-pre-line`},O={key:0,class:`mt-1 text-sm opacity-80`},k={key:1,class:`rounded-lg border bg-muted px-5 py-4 text-sm`},A={key:2,class:`rounded-lg border bg-muted px-5 py-4 text-sm`},j={key:0,class:`flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground @xl:col-span-2`},M={key:1,class:`rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive @xl:col-span-2`},N={key:0,class:`pt-2 text-lg font-semibold @xl:col-span-2`},P={key:1,class:`text-sm leading-relaxed whitespace-pre-line text-muted-foreground @xl:col-span-2`},F=[`for`],I=[`id`,`onUpdate:modelValue`,`aria-invalid`],L={key:0,class:`text-destructive`},R={key:0,class:`text-destructive`},z=[`aria-labelledby`],B=[`onUpdate:modelValue`,`name`,`value`],V=[`checked`,`onChange`],ce={key:3,class:`grid gap-2`},H={key:0,class:`grid gap-1`},U={class:`min-w-0 flex-1 truncate`},W={class:`text-xs text-muted-foreground`},G=[`aria-label`,`onClick`],le={key:1,class:`flex h-10 cursor-pointer items-center justify-center gap-2 rounded-md border border-dashed text-sm text-muted-foreground hover:border-brand-300 hover:text-foreground`},ue=[`id`,`accept`,`multiple`,`onChange`],de=[`aria-describedby`],fe=[`id`],pe={key:1,class:`text-muted-foreground italic`},me={key:2,class:`text-[13px] text-destructive`},he={key:0,href:`/profil/bearbeiten`,class:`font-medium underline`},ge=[`id`],_e={key:4,class:`text-[13px] text-muted-foreground`},ve={class:`flex items-center gap-4 border-t pt-5 @xl:col-span-2`},K={__name:`FormRenderer`,props:{form:{type:Object,required:!0},compact:{type:Boolean,default:!1},preview:{type:Boolean,default:!1}},setup(_){let K=_,q=g(),ye=[`text`,`textarea`,`email`,`phone`,`number`,`date`,`select`,`radio`,`checkboxes`,`checkbox`,`file`];function be(e){let t=K.form.prefill?.[e.key];return e.type===`checkboxes`||e.type===`file`?[]:e.type===`checkbox`?!1:t??``}let J=re({answers:Object.fromEntries(K.form.fields.filter(e=>ye.includes(e.type)).map(e=>[e.key,be(e)]))}),xe=c(()=>q.props.flash?.form_submitted===K.form.id);function Y(e,t=0){if(!e.condition||t>10)return!0;let n=K.form.fields.find(t=>t.key===e.condition.field);if(!n||!Y(n,t+1))return!1;let r=J.answers[e.condition.field],i=(Array.isArray(r)?r:r===!0?[`1`]:r===!1||r===``||r==null?[]:[String(r)]).map(String),a=e.condition.value??``;switch(e.condition.operator){case`not_equals`:return!i.includes(a);case`filled`:return i.length>0;case`empty`:return i.length===0;default:return i.includes(a)}}let X=c(()=>K.form.fields.filter(e=>Y(e)));function Z(e){return J.errors[`answers.${e.key}`]??Object.entries(J.errors).find(([t])=>t.startsWith(`answers.${e.key}.`))?.[1]}function Q(e,t){let n=new Set(J.answers[e.key]);n.has(t)?n.delete(t):n.add(t),J.answers[e.key]=[...n]}function Se(e,t){let n=[...t.target.files??[]];J.answers[e.key]=e.multiple?[...J.answers[e.key],...n].slice(0,10):n.slice(0,1),t.target.value=``}function Ce(e,t){J.answers[e.key]=J.answers[e.key].filter((e,n)=>n!==t)}function we(){if(K.preview){se.info(`Vorschau – es wird nichts gesendet.`);return}let e=new Set(X.value.map(e=>e.key));J.transform(t=>({answers:Object.fromEntries(Object.entries(t.answers).filter(([t])=>e.has(t)))})).post(K.form.url,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{q.props.flash?.form_submitted===K.form.id&&J.reset()}})}let Te=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,$=e=>`f${K.form.id}-${e.key}`;return(c,g)=>xe.value?(l(),o(`div`,E,[e(n(ae),{class:`mt-0.5 size-5 shrink-0 text-emerald-600`}),a(`div`,null,[a(`p`,D,f(_.form.confirmation),1),_.form.send_copy?(l(),o(`p`,O,`Eine Kopie Ihrer Angaben ist per E-Mail unterwegs.`)):m(``,!0)])])):_.form.already_submitted?(l(),o(`p`,k,`Sie haben dieses Formular bereits ausgefüllt. Vielen Dank!`)):_.form.open?(l(),o(`form`,{key:3,class:`grid gap-5 @xl:grid-cols-2`,novalidate:``,onSubmit:h(we,[`prevent`])},[_.form.anonymous?(l(),o(`p`,j,[e(n(v),{class:`mt-0.5 size-4 shrink-0`}),g[0]||=t(` Anonym: Ihr Name und Ihre E-Mail-Adresse werden nicht gespeichert. `,-1)])):m(``,!0),n(J).errors.form?(l(),o(`p`,M,f(n(J).errors.form),1)):m(``,!0),(l(!0),o(u,null,s(X.value,c=>(l(),o(u,{key:c.key},[c.type===`heading`?(l(),o(`h3`,N,f(c.text),1)):c.type===`paragraph`?(l(),o(`p`,P,f(c.text),1)):(l(),o(`div`,{key:2,class:i([`grid content-start gap-1.5`,c.width===`half`?``:`@xl:col-span-2`])},[c.type===`checkbox`?(l(),o(`label`,{key:0,for:$(c),class:`flex items-start gap-2.5 text-sm`},[r(a(`input`,{id:$(c),"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:`checkbox`,class:`mt-0.5 size-4 shrink-0 accent-[var(--brand)]`,"aria-invalid":!!Z(c)},null,8,I),[[te,n(J).answers[c.key]]]),a(`span`,null,[t(f(c.label),1),c.required?(l(),o(`span`,L,` *`)):m(``,!0)])],8,F)):(l(),o(u,{key:1},[(l(),p(ee([`radio`,`checkboxes`].includes(c.type)?`span`:`label`),{for:$(c),class:`text-[13px] font-medium`,id:`${$(c)}-label`},{default:d(()=>[t(f(c.label),1),c.required?(l(),o(`span`,R,` *`)):m(``,!0)]),_:2},1032,[`for`,`id`])),c.type===`textarea`?(l(),p(n(w),{key:0,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,rows:c.rows??4,maxlength:c.max,"aria-invalid":!!Z(c)},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`rows`,`maxlength`,`aria-invalid`])):c.type===`select`?(l(),p(S,{key:1,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,options:c.options.map(e=>({value:e,label:e})),placeholder:`Bitte wählen …`},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`options`])):c.type===`radio`||c.type===`checkboxes`?(l(),o(`div`,{key:2,class:`grid gap-1.5`,role:`group`,"aria-labelledby":`${$(c)}-label`},[(l(!0),o(u,null,s(c.options,e=>(l(),o(`label`,{key:e,class:`flex items-center gap-2.5 text-sm`},[c.type===`radio`?r((l(),o(`input`,{key:0,"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:`radio`,name:$(c),value:e,class:`size-4 accent-[var(--brand)]`},null,8,B)),[[ne,n(J).answers[c.key]]]):(l(),o(`input`,{key:1,type:`checkbox`,checked:n(J).answers[c.key].includes(e),class:`size-4 accent-[var(--brand)]`,onChange:t=>Q(c,e)},null,40,V)),t(` `+f(e),1)]))),128))],8,z)):c.type===`file`?(l(),o(`div`,ce,[n(J).answers[c.key].length?(l(),o(`ul`,H,[(l(!0),o(u,null,s(n(J).answers[c.key],(t,r)=>(l(),o(`li`,{key:r,class:`flex items-center gap-2 rounded-md border bg-card px-3 py-1.5 text-sm`},[e(n(T),{class:`size-4 shrink-0 text-muted-foreground`}),a(`span`,U,f(t.name),1),a(`span`,W,f(Te(t.size)),1),a(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,"aria-label":`${t.name} entfernen`,onClick:e=>Ce(c,r)},[e(n(oe),{class:`size-3.5`})],8,G)]))),128))])):m(``,!0),c.multiple||!n(J).answers[c.key].length?(l(),o(`label`,le,[e(n(T),{class:`size-4`}),t(` `+f(c.multiple?`Dateien auswählen`:`Datei auswählen`)+` `,1),a(`input`,{id:$(c),type:`file`,class:`sr-only`,accept:c.accept,multiple:c.multiple,onChange:e=>Se(c,e)},null,40,ue)])):m(``,!0)])):c.locked?(l(),o(`div`,{key:4,class:`flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm`,"aria-describedby":`${$(c)}-locked`},[e(n(y),{class:`size-3.5 shrink-0 text-muted-foreground`}),n(J).answers[c.key]?(l(),o(`span`,{key:0,id:$(c),class:`truncate`},f(n(J).answers[c.key]),9,fe)):(l(),o(`span`,pe,f(_.preview?`wird aus dem Profil übernommen`:`nicht im Profil hinterlegt`),1))],8,de)):(l(),p(n(C),{key:5,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:{email:`email`,phone:`tel`,number:`number`,date:`date`}[c.type]??`text`,placeholder:c.placeholder,maxlength:c.type===`text`?c.max:void 0,min:c.type===`number`?c.min:void 0,max:c.type===`number`?c.max:void 0,"aria-invalid":!!Z(c)},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`placeholder`,`maxlength`,`min`,`max`,`aria-invalid`]))],64)),Z(c)?(l(),o(`p`,me,[t(f(Z(c))+` `,1),c.locked?(l(),o(`a`,he,`Profil öffnen`)):m(``,!0)])):c.locked?(l(),o(`p`,{key:3,id:`${$(c)}-locked`,class:`text-[13px] text-muted-foreground`},`Aus Ihrem Profil – nicht änderbar.`,8,ge)):c.help?(l(),o(`p`,_e,[t(f(c.help),1),c.type===`file`&&c.max_size?(l(),o(u,{key:0},[t(` (höchstens `+f(c.max_size)+` MB)`,1)],64)):m(``,!0)])):m(``,!0)],2))],64))),128)),a(`div`,ve,[e(n(x),{type:`submit`,disabled:n(J).processing},{default:d(()=>[n(J).processing?(l(),p(n(ie),{key:0,class:`animate-spin`})):(l(),p(n(b),{key:1})),t(` `+f(_.form.submit_label),1)]),_:1},8,[`disabled`]),g[1]||=a(`span`,{class:`text-xs text-muted-foreground`},`* Pflichtfeld`,-1)])],32)):(l(),o(`p`,A,`Dieses Formular nimmt keine Einsendungen mehr an.`))}};export{T as n,K as t}; \ No newline at end of file diff --git a/public/build/assets/Gallery-BTjs-P7R.js b/public/build/assets/Gallery-BjJmayrq.js similarity index 93% rename from public/build/assets/Gallery-BTjs-P7R.js rename to public/build/assets/Gallery-BjJmayrq.js index 21250a26..16ea0637 100644 --- a/public/build/assets/Gallery-BTjs-P7R.js +++ b/public/build/assets/Gallery-BjJmayrq.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{X as m}from"./AppIcon-BVHFLm12.js";import{i as h,r as g,t as _}from"./dialog-bBqX5pN5.js";var v=[`onClick`],y=[`src`,`alt`],b={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},x={key:2,class:`mt-1.5 text-xs text-muted-foreground`},S={key:0,class:`col-span-full text-sm text-muted-foreground`},C=[`src`,`alt`],w={key:1,class:`px-2 pb-1 text-sm text-muted-foreground`},T={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(T){let E=T,D={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},O=s(()=>E.block.data.images.map((e,t)=>({...e,url:E.block.props?.urls?.[t]??null}))),k=f(null);return(s,f)=>(c(),a(l,null,[i(`div`,{class:r([`grid grid-cols-2 gap-3`,D[T.block.data.columns]])},[(c(!0),a(l,null,o(O.value,(t,r)=>(c(),a(`figure`,{key:r},[t.url?(c(),a(`button`,{key:0,type:`button`,class:`block w-full overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,onClick:e=>k.value=t},[i(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform hover:scale-[1.02]`},null,8,y)],8,v)):(c(),a(`div`,b,[e(n(m),{class:`size-6`})])),t.caption?(c(),a(`figcaption`,x,d(t.caption),1)):p(``,!0)]))),128)),O.value.length?p(``,!0):(c(),a(`p`,S,`Noch keine Bilder.`))],2),e(n(h),{open:!!k.value,"onUpdate:open":f[0]||=e=>!e&&(k.value=null)},{default:u(()=>[e(n(g),{class:`max-w-5xl p-2 sm:max-w-5xl`},{default:u(()=>[e(n(_),{class:`sr-only`},{default:u(()=>[t(d(k.value?.alt||`Bild`),1)]),_:1}),k.value?(c(),a(`img`,{key:0,src:k.value.url,alt:k.value.alt,class:`max-h-[80vh] w-full rounded-md object-contain`},null,8,C)):p(``,!0),k.value?.caption?(c(),a(`p`,w,d(k.value.caption),1)):p(``,!0)]),_:1})]),_:1},8,[`open`])],64))}};export{T as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{X as m}from"./AppIcon-SVMShh8s.js";import{i as h,r as g,t as _}from"./dialog-DrnG5a9r.js";var v=[`onClick`],y=[`src`,`alt`],b={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},x={key:2,class:`mt-1.5 text-xs text-muted-foreground`},S={key:0,class:`col-span-full text-sm text-muted-foreground`},C=[`src`,`alt`],w={key:1,class:`px-2 pb-1 text-sm text-muted-foreground`},T={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(T){let E=T,D={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},O=s(()=>E.block.data.images.map((e,t)=>({...e,url:E.block.props?.urls?.[t]??null}))),k=f(null);return(s,f)=>(c(),a(l,null,[i(`div`,{class:r([`grid grid-cols-2 gap-3`,D[T.block.data.columns]])},[(c(!0),a(l,null,o(O.value,(t,r)=>(c(),a(`figure`,{key:r},[t.url?(c(),a(`button`,{key:0,type:`button`,class:`block w-full overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,onClick:e=>k.value=t},[i(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform hover:scale-[1.02]`},null,8,y)],8,v)):(c(),a(`div`,b,[e(n(m),{class:`size-6`})])),t.caption?(c(),a(`figcaption`,x,d(t.caption),1)):p(``,!0)]))),128)),O.value.length?p(``,!0):(c(),a(`p`,S,`Noch keine Bilder.`))],2),e(n(h),{open:!!k.value,"onUpdate:open":f[0]||=e=>!e&&(k.value=null)},{default:u(()=>[e(n(g),{class:`max-w-5xl p-2 sm:max-w-5xl`},{default:u(()=>[e(n(_),{class:`sr-only`},{default:u(()=>[t(d(k.value?.alt||`Bild`),1)]),_:1}),k.value?(c(),a(`img`,{key:0,src:k.value.url,alt:k.value.alt,class:`max-h-[80vh] w-full rounded-md object-contain`},null,8,C)):p(``,!0),k.value?.caption?(c(),a(`p`,w,d(k.value.caption),1)):p(``,!0)]),_:1})]),_:1},8,[`open`])],64))}};export{T as default}; \ No newline at end of file diff --git a/public/build/assets/Greeting-B05GQpKd.js b/public/build/assets/Greeting-BOnbAa6o.js similarity index 92% rename from public/build/assets/Greeting-B05GQpKd.js rename to public/build/assets/Greeting-BOnbAa6o.js index 3df6ab38..8d7b1b7e 100644 --- a/public/build/assets/Greeting-B05GQpKd.js +++ b/public/build/assets/Greeting-BOnbAa6o.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,g as a,mt as o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u,n as d}from"./app-CIvn5Z1l.js";import{F as f,R as p,b as m}from"./AppIcon-BVHFLm12.js";import{n as h,r as g}from"./AppLayout-Cy38OwfZ.js";var _={class:`overflow-hidden rounded-lg border bg-card`},v={class:`flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground`},y={class:`min-w-0`},b={class:`text-sm opacity-85`},x={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},S={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},C={class:`grid grid-cols-3 divide-x`,"aria-label":`Mein Bereich`},w={key:0,href:`/admin`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},T={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(a){return(u,T)=>(o(),i(`section`,_,[r(`div`,v,[r(`div`,y,[r(`div`,b,c(a.greeting)+`,`,1),r(`div`,x,c(a.user.name),1),r(`div`,S,c(a.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(m,{person:a.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),r(`nav`,C,[e(n(d),{href:`/personen/${a.user.id}`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(f),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(d),{href:`/profil/bearbeiten`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(h),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[1]||=t(` Profil bearbeiten `,-1)]),_:1}),a.user.can_admin?(o(),i(`a`,w,[e(n(p),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[2]||=t(` Administration `,-1)])):(o(),l(n(d),{key:1,href:`/logout`,method:`post`,as:`button`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(g),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[3]||=t(` Abmelden `,-1)]),_:1}))])]))}},E={__name:`Greeting`,props:{profile:{type:Object,required:!0}},setup(e){let t=e,n=u(),r=a(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(o(),l(T,{user:r.value,profile:e.profile,greeting:i.value},null,8,[`user`,`profile`,`greeting`]))}};export{E as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,g as a,mt as o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u,n as d}from"./app-Dy5FbYkt.js";import{F as f,R as p,b as m}from"./AppIcon-SVMShh8s.js";import{n as h,r as g}from"./AppLayout-X0y7XSjx.js";var _={class:`overflow-hidden rounded-lg border bg-card`},v={class:`flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground`},y={class:`min-w-0`},b={class:`text-sm opacity-85`},x={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},S={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},C={class:`grid grid-cols-3 divide-x`,"aria-label":`Mein Bereich`},w={key:0,href:`/admin`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},T={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(a){return(u,T)=>(o(),i(`section`,_,[r(`div`,v,[r(`div`,y,[r(`div`,b,c(a.greeting)+`,`,1),r(`div`,x,c(a.user.name),1),r(`div`,S,c(a.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(m,{person:a.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),r(`nav`,C,[e(n(d),{href:`/personen/${a.user.id}`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(f),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(d),{href:`/profil/bearbeiten`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(h),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[1]||=t(` Profil bearbeiten `,-1)]),_:1}),a.user.can_admin?(o(),i(`a`,w,[e(n(p),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[2]||=t(` Administration `,-1)])):(o(),l(n(d),{key:1,href:`/logout`,method:`post`,as:`button`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(g),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[3]||=t(` Abmelden `,-1)]),_:1}))])]))}},E={__name:`Greeting`,props:{profile:{type:Object,required:!0}},setup(e){let t=e,n=u(),r=a(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(o(),l(T,{user:r.value,profile:e.profile,greeting:i.value},null,8,[`user`,`profile`,`greeting`]))}};export{E as default}; \ No newline at end of file diff --git a/public/build/assets/Greeting-BNtvUzyI.js b/public/build/assets/Greeting-DVG_w5Qo.js similarity index 96% rename from public/build/assets/Greeting-BNtvUzyI.js rename to public/build/assets/Greeting-DVG_w5Qo.js index ff0cd0e5..520a6ef9 100644 --- a/public/build/assets/Greeting-BNtvUzyI.js +++ b/public/build/assets/Greeting-DVG_w5Qo.js @@ -1 +1 @@ -import{D as e,On as t,T as n,_ as r,b as i,mt as a,tr as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{it as l}from"./AppIcon-BVHFLm12.js";import{_ as u}from"./http-9R3L4KBg.js";var d={key:0,class:`relative overflow-hidden rounded-lg bg-brand text-brand-foreground`,role:`status`},f={class:`relative flex items-center gap-4 px-5 py-5 sm:px-8`},p={class:`grid size-12 shrink-0 place-items-center rounded-full bg-white/15`},m={class:`min-w-0 flex-1`},h={class:`text-xl font-semibold tracking-tight`},g={__name:`Greeting`,props:{name:{type:String,required:!0}},setup(g){let _=g,v=`inhaus.birthday-greeting.${new Date().toISOString().slice(0,10)}`,y=s(!1);try{y.value=localStorage.getItem(v)===`1`}catch{}function b(){y.value=!0;try{localStorage.setItem(v,`1`)}catch{}}return(s,g)=>y.value?c(``,!0):(a(),i(`section`,d,[g[1]||=n(``,1),r(`div`,f,[r(`span`,p,[e(t(l),{class:`size-6`})]),r(`div`,m,[r(`p`,h,`Alles Gute zum Geburtstag, `+o(_.name)+`!`,1),g[0]||=r(`p`,{class:`mt-0.5 text-sm opacity-90`},`Wir wünschen Ihnen einen schönen Tag.`,-1)]),r(`button`,{type:`button`,class:`grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15`,"aria-label":`Glückwunsch ausblenden`,onClick:b},[e(t(u),{class:`size-5`})])])]))}};export{g as default}; \ No newline at end of file +import{D as e,On as t,T as n,_ as r,b as i,mt as a,tr as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{it as l}from"./AppIcon-SVMShh8s.js";import{_ as u}from"./http-9R3L4KBg.js";var d={key:0,class:`relative overflow-hidden rounded-lg bg-brand text-brand-foreground`,role:`status`},f={class:`relative flex items-center gap-4 px-5 py-5 sm:px-8`},p={class:`grid size-12 shrink-0 place-items-center rounded-full bg-white/15`},m={class:`min-w-0 flex-1`},h={class:`text-xl font-semibold tracking-tight`},g={__name:`Greeting`,props:{name:{type:String,required:!0}},setup(g){let _=g,v=`inhaus.birthday-greeting.${new Date().toISOString().slice(0,10)}`,y=s(!1);try{y.value=localStorage.getItem(v)===`1`}catch{}function b(){y.value=!0;try{localStorage.setItem(v,`1`)}catch{}}return(s,g)=>y.value?c(``,!0):(a(),i(`section`,d,[g[1]||=n(``,1),r(`div`,f,[r(`span`,p,[e(t(l),{class:`size-6`})]),r(`div`,m,[r(`p`,h,`Alles Gute zum Geburtstag, `+o(_.name)+`!`,1),g[0]||=r(`p`,{class:`mt-0.5 text-sm opacity-90`},`Wir wünschen Ihnen einen schönen Tag.`,-1)]),r(`button`,{type:`button`,class:`grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15`,"aria-label":`Glückwunsch ausblenden`,onClick:b},[e(t(u),{class:`size-5`})])])]))}};export{g as default}; \ No newline at end of file diff --git a/public/build/assets/GuestLayout-DAusAB2K.js b/public/build/assets/GuestLayout-DxnnRWk6.js similarity index 96% rename from public/build/assets/GuestLayout-DAusAB2K.js rename to public/build/assets/GuestLayout-DxnnRWk6.js index f2306501..a62b32fa 100644 --- a/public/build/assets/GuestLayout-DAusAB2K.js +++ b/public/build/assets/GuestLayout-DxnnRWk6.js @@ -1 +1 @@ -import{D as e,On as t,Zn as n,_ as r,b as i,g as a,mt as o,o as s,tr as c,xt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d,t as f}from"./app-CIvn5Z1l.js";import{t as p}from"./BrandLogo-TGGJyC1K.js";var m={key:0,class:`bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},h={key:1,class:`relative grid min-h-screen place-items-center bg-brand px-4 py-12`},g=[`src`],_={key:1,class:`absolute inset-0 bg-black/35`},v={class:`relative w-full max-w-[440px]`},y={class:`rounded-xl border bg-card p-8 text-card-foreground shadow-xl sm:p-10`},b={class:`mb-8`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={key:0,class:`mt-6 text-center text-sm text-white/90 [text-shadow:0_1px_2px_rgb(0_0_0/0.4)]`},T={key:2,class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},E={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},D=[`src`],O={key:1,class:`pointer-events-none absolute inset-0 opacity-[0.12]`,style:{"background-image":`radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)`}},k={key:0,class:`text-3xl leading-tight font-semibold tracking-tight`},A={class:`mt-4 text-[15px] opacity-85`},j={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},M={class:`w-full max-w-[400px]`},N={class:`mb-10 lg:hidden`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`mt-2 text-sm text-muted-foreground`},I={class:`mt-8`},L={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(L){let R=L,z=a(()=>d().props.branding),B=a(()=>z.value.login??{layout:`split`});return(a,d)=>(o(),i(s,null,[e(t(f),{title:R.title},null,8,[`title`]),z.value.preview?(o(),i(`div`,m,`Vorschau des Entwurfs`)):u(``,!0),B.value.layout===`centered`?(o(),i(`div`,h,[B.value.image_url?(o(),i(`img`,{key:0,src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,g)):u(``,!0),B.value.image_url?(o(),i(`div`,_)):u(``,!0),r(`div`,v,[r(`div`,y,[r(`div`,b,[e(p)]),r(`h1`,x,c(R.title),1),R.description?(o(),i(`p`,S,c(R.description),1)):u(``,!0),r(`div`,C,[l(a.$slots,`default`)])]),B.value.title?(o(),i(`p`,w,c(B.value.title),1)):u(``,!0)])])):(o(),i(`div`,T,[r(`aside`,E,[B.value.image_url?(o(),i(s,{key:0},[r(`img`,{src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,D),d[0]||=r(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10`},null,-1)],64)):(o(),i(`div`,O)),e(p,{inverted:``,class:n([`relative`,B.value.image_url?`text-white`:``])},null,8,[`class`]),r(`div`,{class:n([`relative max-w-md`,B.value.image_url?`text-white`:``])},[B.value.title?(o(),i(`p`,k,c(B.value.title),1)):u(``,!0),r(`p`,A,c(B.value.text||`Neuigkeiten, Ansprechpartner und Anwendungen von ${z.value.portal_name}.`),1)],2),r(`p`,{class:n([`relative text-xs opacity-70`,B.value.image_url?`text-white`:``])},`© `+c(new Date().getFullYear())+` `+c(z.value.portal_name),3)]),r(`main`,j,[r(`div`,M,[r(`div`,N,[e(p)]),r(`h1`,P,c(R.title),1),R.description?(o(),i(`p`,F,c(R.description),1)):u(``,!0),r(`div`,I,[l(a.$slots,`default`)])])])]))],64))}};export{L as t}; \ No newline at end of file +import{D as e,On as t,Zn as n,_ as r,b as i,g as a,mt as o,o as s,tr as c,xt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d,t as f}from"./app-Dy5FbYkt.js";import{t as p}from"./BrandLogo-DRGdNySk.js";var m={key:0,class:`bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},h={key:1,class:`relative grid min-h-screen place-items-center bg-brand px-4 py-12`},g=[`src`],_={key:1,class:`absolute inset-0 bg-black/35`},v={class:`relative w-full max-w-[440px]`},y={class:`rounded-xl border bg-card p-8 text-card-foreground shadow-xl sm:p-10`},b={class:`mb-8`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={key:0,class:`mt-6 text-center text-sm text-white/90 [text-shadow:0_1px_2px_rgb(0_0_0/0.4)]`},T={key:2,class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},E={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},D=[`src`],O={key:1,class:`pointer-events-none absolute inset-0 opacity-[0.12]`,style:{"background-image":`radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)`}},k={key:0,class:`text-3xl leading-tight font-semibold tracking-tight`},A={class:`mt-4 text-[15px] opacity-85`},j={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},M={class:`w-full max-w-[400px]`},N={class:`mb-10 lg:hidden`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`mt-2 text-sm text-muted-foreground`},I={class:`mt-8`},L={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(L){let R=L,z=a(()=>d().props.branding),B=a(()=>z.value.login??{layout:`split`});return(a,d)=>(o(),i(s,null,[e(t(f),{title:R.title},null,8,[`title`]),z.value.preview?(o(),i(`div`,m,`Vorschau des Entwurfs`)):u(``,!0),B.value.layout===`centered`?(o(),i(`div`,h,[B.value.image_url?(o(),i(`img`,{key:0,src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,g)):u(``,!0),B.value.image_url?(o(),i(`div`,_)):u(``,!0),r(`div`,v,[r(`div`,y,[r(`div`,b,[e(p)]),r(`h1`,x,c(R.title),1),R.description?(o(),i(`p`,S,c(R.description),1)):u(``,!0),r(`div`,C,[l(a.$slots,`default`)])]),B.value.title?(o(),i(`p`,w,c(B.value.title),1)):u(``,!0)])])):(o(),i(`div`,T,[r(`aside`,E,[B.value.image_url?(o(),i(s,{key:0},[r(`img`,{src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,D),d[0]||=r(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10`},null,-1)],64)):(o(),i(`div`,O)),e(p,{inverted:``,class:n([`relative`,B.value.image_url?`text-white`:``])},null,8,[`class`]),r(`div`,{class:n([`relative max-w-md`,B.value.image_url?`text-white`:``])},[B.value.title?(o(),i(`p`,k,c(B.value.title),1)):u(``,!0),r(`p`,A,c(B.value.text||`Neuigkeiten, Ansprechpartner und Anwendungen von ${z.value.portal_name}.`),1)],2),r(`p`,{class:n([`relative text-xs opacity-70`,B.value.image_url?`text-white`:``])},`© `+c(new Date().getFullYear())+` `+c(z.value.portal_name),3)]),r(`main`,j,[r(`div`,M,[r(`div`,N,[e(p)]),r(`h1`,P,c(R.title),1),R.description?(o(),i(`p`,F,c(R.description),1)):u(``,!0),r(`div`,I,[l(a.$slots,`default`)])])])]))],64))}};export{L as t}; \ No newline at end of file diff --git a/public/build/assets/Hero-OPvK6LV0.js b/public/build/assets/Hero-CEjML8k5.js similarity index 98% rename from public/build/assets/Hero-OPvK6LV0.js rename to public/build/assets/Hero-CEjML8k5.js index 43636e89..6cb424f9 100644 --- a/public/build/assets/Hero-OPvK6LV0.js +++ b/public/build/assets/Hero-CEjML8k5.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Yt as r,Zn as i,_ as a,b as o,bt as s,ct as c,g as l,it as u,mt as d,o as f,qt as p,tr as m,v as h,vn as g,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{S as v,n as y}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as b}from"./app-CIvn5Z1l.js";import{j as x}from"./dist-CleIz2GP.js";import{t as S}from"./arrow-right-CdMsByuI.js";import{t as C}from"./chevron-left-CfNljcKt.js";import{t as w}from"./chevron-right-DR4LjgDm.js";import{t as T}from"./play-_hM1KTvn.js";var E=x({name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]}),D=[`src`],O={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},k={key:0,class:`mb-3 w-fit rounded-sm bg-brand px-2 py-0.5 text-[11px] font-semibold tracking-wide text-brand-foreground uppercase`},A={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},j={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},M={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},N={class:`flex items-center gap-1.5 px-1`},P=[`aria-label`,`aria-current`,`onClick`],F=[`aria-label`],I={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(x){let I=x,L=g(0),R=g(!1),z=l(()=>I.posts[L.value]),B=null;function V(e){L.value=(e+I.posts.length)%I.posts.length}function H(){U(),I.posts.length>1&&!R.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(B=setInterval(()=>V(L.value+1),7e3))}function U(){clearInterval(B)}function W(){R.value=!R.value,H()}return c(H),u(U),(c,l)=>(d(),o(`section`,{class:`relative isolate aspect-[16/10] overflow-hidden rounded-lg bg-brand-950 text-white sm:aspect-[16/9] lg:aspect-auto lg:h-full lg:min-h-[400px]`,"aria-roledescription":`Karussell`,"aria-label":`Hervorgehobene Neuigkeiten`,onMouseenter:U,onMouseleave:H,onFocusin:U,onFocusout:H},[e(y,{"enter-active-class":`transition-opacity duration-700`,"leave-active-class":`transition-opacity duration-700 absolute inset-0`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:p(()=>[(d(!0),o(f,null,s(x.posts,(e,t)=>r((d(),o(`img`,{key:e.id,src:e.cover_url,alt:``,class:`absolute inset-0 -z-10 size-full object-cover`},null,8,D)),[[v,t===L.value]])),128))]),_:1}),l[3]||=a(`div`,{class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/35 to-black/5 sm:bg-gradient-to-r sm:from-black/75 sm:via-black/40 sm:to-transparent`},null,-1),a(`div`,O,[z.value.category?(d(),o(`span`,k,m(z.value.category.name),1)):_(``,!0),a(`h2`,A,m(z.value.title),1),z.value.teaser?(d(),o(`p`,j,m(z.value.teaser),1)):_(``,!0),e(n(b),{href:`/neuigkeiten/${z.value.slug}`,class:`mt-5 inline-flex w-fit items-center gap-2 rounded-md bg-brand px-4 py-2.5 text-sm font-medium text-brand-foreground transition-colors hover:bg-brand-700`},{default:p(()=>[l[2]||=t(` Mehr erfahren `,-1),e(n(S),{class:`size-4`})]),_:1},8,[`href`])]),x.posts.length>1?(d(),o(`div`,M,[a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:l[0]||=e=>V(L.value-1)},[e(n(C),{class:`size-5`})]),a(`div`,N,[(d(!0),o(f,null,s(x.posts,(e,t)=>(d(),o(`button`,{key:e.id,type:`button`,class:i([`h-1.5 rounded-full transition-all`,t===L.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${x.posts.length}`,"aria-current":t===L.value,onClick:e=>V(t)},null,10,P))),128))]),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Nächster Beitrag`,onClick:l[1]||=e=>V(L.value+1)},[e(n(w),{class:`size-5`})]),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":R.value?`Automatisch weiterblättern`:`Anhalten`,onClick:W},[R.value?(d(),h(n(T),{key:0,class:`size-4`})):(d(),h(n(E),{key:1,class:`size-4`}))],8,F)])):_(``,!0)],32))}},L={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(d(),h(I,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{L as default}; \ No newline at end of file +import{D as e,E as t,On as n,Yt as r,Zn as i,_ as a,b as o,bt as s,ct as c,g as l,it as u,mt as d,o as f,qt as p,tr as m,v as h,vn as g,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{S as v,n as y}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as b}from"./app-Dy5FbYkt.js";import{j as x}from"./dist-CleIz2GP.js";import{t as S}from"./arrow-right-CdMsByuI.js";import{t as C}from"./chevron-left-CfNljcKt.js";import{t as w}from"./chevron-right-DR4LjgDm.js";import{t as T}from"./play-_hM1KTvn.js";var E=x({name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]}),D=[`src`],O={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},k={key:0,class:`mb-3 w-fit rounded-sm bg-brand px-2 py-0.5 text-[11px] font-semibold tracking-wide text-brand-foreground uppercase`},A={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},j={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},M={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},N={class:`flex items-center gap-1.5 px-1`},P=[`aria-label`,`aria-current`,`onClick`],F=[`aria-label`],I={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(x){let I=x,L=g(0),R=g(!1),z=l(()=>I.posts[L.value]),B=null;function V(e){L.value=(e+I.posts.length)%I.posts.length}function H(){U(),I.posts.length>1&&!R.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(B=setInterval(()=>V(L.value+1),7e3))}function U(){clearInterval(B)}function W(){R.value=!R.value,H()}return c(H),u(U),(c,l)=>(d(),o(`section`,{class:`relative isolate aspect-[16/10] overflow-hidden rounded-lg bg-brand-950 text-white sm:aspect-[16/9] lg:aspect-auto lg:h-full lg:min-h-[400px]`,"aria-roledescription":`Karussell`,"aria-label":`Hervorgehobene Neuigkeiten`,onMouseenter:U,onMouseleave:H,onFocusin:U,onFocusout:H},[e(y,{"enter-active-class":`transition-opacity duration-700`,"leave-active-class":`transition-opacity duration-700 absolute inset-0`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:p(()=>[(d(!0),o(f,null,s(x.posts,(e,t)=>r((d(),o(`img`,{key:e.id,src:e.cover_url,alt:``,class:`absolute inset-0 -z-10 size-full object-cover`},null,8,D)),[[v,t===L.value]])),128))]),_:1}),l[3]||=a(`div`,{class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/35 to-black/5 sm:bg-gradient-to-r sm:from-black/75 sm:via-black/40 sm:to-transparent`},null,-1),a(`div`,O,[z.value.category?(d(),o(`span`,k,m(z.value.category.name),1)):_(``,!0),a(`h2`,A,m(z.value.title),1),z.value.teaser?(d(),o(`p`,j,m(z.value.teaser),1)):_(``,!0),e(n(b),{href:`/neuigkeiten/${z.value.slug}`,class:`mt-5 inline-flex w-fit items-center gap-2 rounded-md bg-brand px-4 py-2.5 text-sm font-medium text-brand-foreground transition-colors hover:bg-brand-700`},{default:p(()=>[l[2]||=t(` Mehr erfahren `,-1),e(n(S),{class:`size-4`})]),_:1},8,[`href`])]),x.posts.length>1?(d(),o(`div`,M,[a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:l[0]||=e=>V(L.value-1)},[e(n(C),{class:`size-5`})]),a(`div`,N,[(d(!0),o(f,null,s(x.posts,(e,t)=>(d(),o(`button`,{key:e.id,type:`button`,class:i([`h-1.5 rounded-full transition-all`,t===L.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${x.posts.length}`,"aria-current":t===L.value,onClick:e=>V(t)},null,10,P))),128))]),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Nächster Beitrag`,onClick:l[1]||=e=>V(L.value+1)},[e(n(w),{class:`size-5`})]),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":R.value?`Automatisch weiterblättern`:`Anhalten`,onClick:W},[R.value?(d(),h(n(T),{key:0,class:`size-4`})):(d(),h(n(E),{key:1,class:`size-4`}))],8,F)])):_(``,!0)],32))}},L={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(d(),h(I,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{L as default}; \ No newline at end of file diff --git a/public/build/assets/IconList-DoadxhSr.js b/public/build/assets/IconList-KA43UvHu.js similarity index 94% rename from public/build/assets/IconList-DoadxhSr.js rename to public/build/assets/IconList-KA43UvHu.js index 30848eae..27b2bb17 100644 --- a/public/build/assets/IconList-DoadxhSr.js +++ b/public/build/assets/IconList-KA43UvHu.js @@ -1 +1 @@ -import{D as e,Zn as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./AppIcon-BVHFLm12.js";var p={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},m={class:`min-w-0`},h={key:0,class:`mt-0.5 block text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},g={__name:`IconList`,props:{block:{type:Object,required:!0}},setup(g){return(_,v)=>(a(),r(`ul`,{class:t(g.block.data.layout===`grid`?`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`:`grid gap-4`)},[(a(!0),r(o,null,i(g.block.data.items,(i,o)=>(a(),r(`li`,{key:o},[(a(),l(u(i.url?`a`:`div`),{href:i.url||void 0,class:t([`flex gap-4`,[g.block.data.layout===`grid`?`h-full rounded-lg border bg-card p-4`:``,i.url?`group`:``]])},{default:s(()=>[n(`span`,p,[e(f,{name:i.icon||`link`,class:`size-5`},null,8,[`name`])]),n(`span`,m,[n(`span`,{class:t([`block font-medium`,{"group-hover:underline":i.url}])},c(i.title),3),i.text?(a(),r(`span`,h,c(i.text),1)):d(``,!0)])]),_:2},1032,[`href`,`class`]))]))),128))],2))}};export{g as default}; \ No newline at end of file +import{D as e,Zn as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./AppIcon-SVMShh8s.js";var p={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},m={class:`min-w-0`},h={key:0,class:`mt-0.5 block text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},g={__name:`IconList`,props:{block:{type:Object,required:!0}},setup(g){return(_,v)=>(a(),r(`ul`,{class:t(g.block.data.layout===`grid`?`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`:`grid gap-4`)},[(a(!0),r(o,null,i(g.block.data.items,(i,o)=>(a(),r(`li`,{key:o},[(a(),l(u(i.url?`a`:`div`),{href:i.url||void 0,class:t([`flex gap-4`,[g.block.data.layout===`grid`?`h-full rounded-lg border bg-card p-4`:``,i.url?`group`:``]])},{default:s(()=>[n(`span`,p,[e(f,{name:i.icon||`link`,class:`size-5`},null,8,[`name`])]),n(`span`,m,[n(`span`,{class:t([`block font-medium`,{"group-hover:underline":i.url}])},c(i.title),3),i.text?(a(),r(`span`,h,c(i.text),1)):d(``,!0)])]),_:2},1032,[`href`,`class`]))]))),128))],2))}};export{g as default}; \ No newline at end of file diff --git a/public/build/assets/Image-DD-CaJzl.js b/public/build/assets/Image-CXHRAtOC.js similarity index 93% rename from public/build/assets/Image-DD-CaJzl.js rename to public/build/assets/Image-CXHRAtOC.js index a777bf30..d93c99ba 100644 --- a/public/build/assets/Image-DD-CaJzl.js +++ b/public/build/assets/Image-CXHRAtOC.js @@ -1 +1 @@ -import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,wt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{X as d}from"./AppIcon-BVHFLm12.js";var f=[`src`,`alt`],p={key:1,class:`grid aspect-video place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},m={key:2,class:`mt-2 text-sm text-muted-foreground`},h={__name:`Image`,props:{block:{type:Object,required:!0}},setup(h){let g={full:`w-full`,medium:`mx-auto w-full @3xl:w-2/3`,small:`mx-auto w-full @xl:w-1/2 @3xl:w-1/3`};return(_,v)=>(a(),i(`figure`,{class:n(g[h.block.data.size])},[h.block.props?.url?(a(),c(l(h.block.data.url?`a`:`div`),{key:0,href:h.block.data.url||void 0},{default:o(()=>[r(`img`,{src:h.block.props.url,alt:h.block.data.alt,loading:`lazy`,class:`w-full rounded-lg`},null,8,f)]),_:1},8,[`href`])):(a(),i(`div`,p,[e(t(d),{class:`size-8`})])),h.block.data.caption?(a(),i(`figcaption`,m,s(h.block.data.caption),1)):u(``,!0)],2))}};export{h as default}; \ No newline at end of file +import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,wt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{X as d}from"./AppIcon-SVMShh8s.js";var f=[`src`,`alt`],p={key:1,class:`grid aspect-video place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},m={key:2,class:`mt-2 text-sm text-muted-foreground`},h={__name:`Image`,props:{block:{type:Object,required:!0}},setup(h){let g={full:`w-full`,medium:`mx-auto w-full @3xl:w-2/3`,small:`mx-auto w-full @xl:w-1/2 @3xl:w-1/3`};return(_,v)=>(a(),i(`figure`,{class:n(g[h.block.data.size])},[h.block.props?.url?(a(),c(l(h.block.data.url?`a`:`div`),{key:0,href:h.block.data.url||void 0},{default:o(()=>[r(`img`,{src:h.block.props.url,alt:h.block.data.alt,loading:`lazy`,class:`w-full rounded-lg`},null,8,f)]),_:1},8,[`href`])):(a(),i(`div`,p,[e(t(d),{class:`size-8`})])),h.block.data.caption?(a(),i(`figcaption`,m,s(h.block.data.caption),1)):u(``,!0)],2))}};export{h as default}; \ No newline at end of file diff --git a/public/build/assets/Index-DhpHvuGr.js b/public/build/assets/Index-BYfOGxER.js similarity index 86% rename from public/build/assets/Index-DhpHvuGr.js rename to public/build/assets/Index-BYfOGxER.js index d877f940..09e5b876 100644 --- a/public/build/assets/Index-DhpHvuGr.js +++ b/public/build/assets/Index-BYfOGxER.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,g as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-CIvn5Z1l.js";import{G as m,N as h,o as g,rt as _,s as v}from"./AppIcon-BVHFLm12.js";import{t as y}from"./AppLayout-Cy38OwfZ.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-CWL5ThBH.js";import{t as S}from"./EventDateBlock-Cxz_hY6g.js";var C={key:0,class:`grid max-w-4xl gap-8`},w={class:`mb-3 text-sm font-semibold text-muted-foreground`},T={class:`divide-y rounded-lg border bg-card`},E={class:`min-w-0 flex-1`},D={class:`text-[15px] font-semibold group-hover:underline`},O={class:`mt-0.5 text-[13px] text-muted-foreground`},k={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},A=[`src`],j={key:1,class:`max-w-4xl rounded-lg border border-dashed bg-card`},M={__name:`Index`,props:{events:{type:Object,required:!0}},setup(M){let N=M,P=o(()=>{let e=[];for(let t of N.events.data){let n=new Date(t.starts_at),r=v((n(s(),d(y,{title:`Termine`},{default:l(()=>[e(x,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`}),P.value.length?(s(),i(`div`,C,[(s(!0),i(c,null,a(P.value,o=>(s(),i(`section`,{key:o.label},[r(`h2`,w,u(o.label),1),r(`ul`,T,[(s(!0),i(c,null,a(o.events,a=>(s(),i(`li`,{key:a.id},[e(n(p),{href:`/termine/${a.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:l(()=>[e(S,{date:a.starts_at,class:`w-14`},null,8,[`date`]),r(`div`,E,[r(`h3`,D,u(a.title),1),r(`p`,O,u(n(g)(a)),1),a.location||a.online_url?(s(),i(`p`,k,[a.location?(s(),d(n(m),{key:0,class:`size-3.5`})):(s(),d(n(h),{key:1,class:`size-3.5`})),t(` `+u(a.location||`Online`),1)])):f(``,!0)]),a.thumb_url?(s(),i(`img`,{key:0,src:a.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,A)):f(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(s(),i(`div`,j,[e(b,{icon:n(_),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))]),_:1}))}};export{M as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,g as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-Dy5FbYkt.js";import{G as m,N as h,o as g,rt as _,s as v}from"./AppIcon-SVMShh8s.js";import{t as y}from"./AppLayout-X0y7XSjx.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-Dcr3nLVu.js";import{t as S}from"./EventDateBlock-DzdXYi61.js";var C={key:0,class:`grid max-w-4xl gap-8`},w={class:`mb-3 text-sm font-semibold text-muted-foreground`},T={class:`divide-y rounded-lg border bg-card`},E={class:`min-w-0 flex-1`},D={class:`text-[15px] font-semibold group-hover:underline`},O={class:`mt-0.5 text-[13px] text-muted-foreground`},k={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},A=[`src`],j={key:1,class:`max-w-4xl rounded-lg border border-dashed bg-card`},M={__name:`Index`,props:{events:{type:Object,required:!0}},setup(M){let N=M,P=o(()=>{let e=[];for(let t of N.events.data){let n=new Date(t.starts_at),r=v((n(s(),d(y,{title:`Termine`},{default:l(()=>[e(x,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`}),P.value.length?(s(),i(`div`,C,[(s(!0),i(c,null,a(P.value,o=>(s(),i(`section`,{key:o.label},[r(`h2`,w,u(o.label),1),r(`ul`,T,[(s(!0),i(c,null,a(o.events,a=>(s(),i(`li`,{key:a.id},[e(n(p),{href:`/termine/${a.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:l(()=>[e(S,{date:a.starts_at,class:`w-14`},null,8,[`date`]),r(`div`,E,[r(`h3`,D,u(a.title),1),r(`p`,O,u(n(g)(a)),1),a.location||a.online_url?(s(),i(`p`,k,[a.location?(s(),d(n(m),{key:0,class:`size-3.5`})):(s(),d(n(h),{key:1,class:`size-3.5`})),t(` `+u(a.location||`Online`),1)])):f(``,!0)]),a.thumb_url?(s(),i(`img`,{key:0,src:a.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,A)):f(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(s(),i(`div`,j,[e(b,{icon:n(_),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))]),_:1}))}};export{M as default}; \ No newline at end of file diff --git a/public/build/assets/Index-BfHGKDDV.js b/public/build/assets/Index-BfHGKDDV.js deleted file mode 100644 index 89f247b8..00000000 --- a/public/build/assets/Index-BfHGKDDV.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{b as h,x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as _,n as v}from"./app-CIvn5Z1l.js";import{j as y,l as b}from"./dist-CleIz2GP.js";import{K as x,b as S,z as C}from"./AppIcon-BVHFLm12.js";import{t as w}from"./AppLayout-Cy38OwfZ.js";import{y as T}from"./http-9R3L4KBg.js";import{t as E}from"./chevron-left-CfNljcKt.js";import{t as D}from"./chevron-right-DR4LjgDm.js";import{t as O}from"./PageHeader-CWL5ThBH.js";import{t as k}from"./button-SRYY3-ko.js";var A=y({name:`search-x`,size:24,node:[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]}),j={class:`flex w-full flex-col gap-3 sm:w-auto sm:flex-row`},M={class:`relative block sm:w-80`},N=[`value`],P={key:0,class:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},F={class:`min-w-0`},I={class:`truncate text-[15px] font-semibold hover:underline`},L={class:`truncate text-[13px] text-muted-foreground`},R={class:`px-4 pb-3 text-[13px] text-muted-foreground`},z={key:0,class:`font-medium text-brand-text`},B={key:1},V={key:2},H={class:`mt-auto flex border-t text-[13px]`},U=[`href`],W=[`href`],G={key:1,class:`grid place-items-center rounded-lg border border-dashed bg-card px-6 py-16 text-center`},K={key:2,class:`mt-6 flex items-center justify-between`,"aria-label":`Seiten`},q={class:`text-sm text-muted-foreground`},J={class:`flex gap-2`},Y={__name:`Index`,props:{people:{type:Object,required:!0},filters:{type:Object,required:!0},departments:{type:Array,required:!0}},setup(y){let Y=y,X=p(Y.filters.q??``),Z=p(Y.filters.abteilung??``);function Q(){let e={};X.value&&(e.q=X.value),Z.value&&(e.abteilung=Z.value),_.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return n(X,b(Q,300)),n(Z,Q),(n,p)=>(c(),f(w,{title:`Personen`},{default:u(()=>[e(O,{title:`Personen`},{description:u(()=>[t(d(y.people.meta.total.toLocaleString(`de-DE`))+` `+d(y.people.meta.total===1?`Person`:`Personen`)+d(y.filters.q||y.filters.abteilung?` gefunden`:` im Verzeichnis`)+` · `,1),e(r(v),{href:`/personen/organigramm`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...p[4]||=[t(`Organigramm`,-1)]]),_:1})]),actions:u(()=>[a(`div`,j,[a(`label`,M,[p[5]||=a(`span`,{class:`sr-only`},`Suchen`,-1),e(r(C),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":p[0]||=e=>X.value=e,type:`search`,placeholder:`Name, Funktion, Standort …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[g,X.value]])]),i(a(`select`,{"onUpdate:modelValue":p[1]||=e=>Z.value=e,class:`h-10 rounded-md border border-input bg-card px-3 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none sm:w-56`,"aria-label":`Abteilung`},[p[6]||=a(`option`,{value:``},`Alle Abteilungen`,-1),(c(!0),o(l,null,s(y.departments,e=>(c(),o(`option`,{key:e,value:e},d(e),9,N))),128))],512),[[h,Z.value]])])]),_:1}),y.people.data.length?(c(),o(`ul`,P,[(c(!0),o(l,null,s(y.people.data,n=>(c(),o(`li`,{key:n.id,class:`flex flex-col rounded-lg border bg-card`},[e(r(v),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:u(()=>[e(S,{person:n,class:`size-12`},null,8,[`person`]),a(`div`,F,[a(`div`,I,d(n.name),1),a(`div`,L,d(n.job_title||`–`),1)])]),_:2},1032,[`href`]),a(`div`,R,[n.department?(c(),o(`span`,z,d(n.department),1)):m(``,!0),n.department&&n.location?(c(),o(`span`,B,` · `)):m(``,!0),n.location?(c(),o(`span`,V,d(n.location),1)):m(``,!0)]),a(`div`,H,[a(`a`,{href:`mailto:${n.email}`,class:`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(x),{class:`size-4`}),p[7]||=t(` E-Mail `,-1)],8,U),n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`flex flex-1 items-center justify-center gap-1.5 border-l py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(T),{class:`size-4`}),p[8]||=t(` Anrufen `,-1)],8,W)):m(``,!0)])]))),128))])):(c(),o(`div`,G,[e(r(A),{class:`size-8 text-muted-foreground`}),p[9]||=a(`p`,{class:`mt-3 font-medium`},`Niemand gefunden`,-1),p[10]||=a(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Versuchen Sie einen anderen Suchbegriff oder eine andere Abteilung.`,-1)])),y.people.meta.last_page>1?(c(),o(`nav`,K,[a(`p`,q,`Seite `+d(y.people.meta.current_page)+` von `+d(y.people.meta.last_page),1),a(`div`,J,[e(r(k),{variant:`outline`,size:`sm`,disabled:!y.people.links.prev,onClick:p[2]||=e=>r(_).get(y.people.links.prev,{},{preserveScroll:!1})},{default:u(()=>[e(r(E)),p[11]||=t(` Zurück `,-1)]),_:1},8,[`disabled`]),e(r(k),{variant:`outline`,size:`sm`,disabled:!y.people.links.next,onClick:p[3]||=e=>r(_).get(y.people.links.next,{},{preserveScroll:!1})},{default:u(()=>[p[12]||=t(` Weiter `,-1),e(r(D))]),_:1},8,[`disabled`])])])):m(``,!0)]),_:1}))}};export{Y as default}; \ No newline at end of file diff --git a/public/build/assets/Index-BjHFR2Wc.js b/public/build/assets/Index-BjHFR2Wc.js new file mode 100644 index 00000000..2b957d6e --- /dev/null +++ b/public/build/assets/Index-BjHFR2Wc.js @@ -0,0 +1 @@ +import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{b as h,x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as _,n as v}from"./app-Dy5FbYkt.js";import{l as y}from"./dist-CleIz2GP.js";import{K as b,b as x,z as S}from"./AppIcon-SVMShh8s.js";import{t as C}from"./AppLayout-X0y7XSjx.js";import{y as w}from"./http-9R3L4KBg.js";import{t as T}from"./chevron-left-CfNljcKt.js";import{t as E}from"./chevron-right-DR4LjgDm.js";import{t as D}from"./search-x-C4tzI22g.js";import{t as O}from"./PageHeader-Dcr3nLVu.js";import{t as k}from"./button-SRYY3-ko.js";var A={class:`flex w-full flex-col gap-3 sm:w-auto sm:flex-row`},j={class:`relative block sm:w-80`},M=[`value`],N={key:0,class:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},P={class:`min-w-0`},F={class:`truncate text-[15px] font-semibold hover:underline`},I={class:`truncate text-[13px] text-muted-foreground`},L={class:`px-4 pb-3 text-[13px] text-muted-foreground`},R={key:0,class:`font-medium text-brand-text`},z={key:1},B={key:2},V={class:`mt-auto flex border-t text-[13px]`},H=[`href`],U=[`href`],W={key:1,class:`grid place-items-center rounded-lg border border-dashed bg-card px-6 py-16 text-center`},G={key:2,class:`mt-6 flex items-center justify-between`,"aria-label":`Seiten`},K={class:`text-sm text-muted-foreground`},q={class:`flex gap-2`},J={__name:`Index`,props:{people:{type:Object,required:!0},filters:{type:Object,required:!0},departments:{type:Array,required:!0}},setup(J){let Y=J,X=p(Y.filters.q??``),Z=p(Y.filters.abteilung??``);function Q(){let e={};X.value&&(e.q=X.value),Z.value&&(e.abteilung=Z.value),_.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return n(X,y(Q,300)),n(Z,Q),(n,p)=>(c(),f(C,{title:`Personen`},{default:u(()=>[e(O,{title:`Personen`},{description:u(()=>[t(d(J.people.meta.total.toLocaleString(`de-DE`))+` `+d(J.people.meta.total===1?`Person`:`Personen`)+d(J.filters.q||J.filters.abteilung?` gefunden`:` im Verzeichnis`)+` · `,1),e(r(v),{href:`/personen/organigramm`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...p[4]||=[t(`Organigramm`,-1)]]),_:1})]),actions:u(()=>[a(`div`,A,[a(`label`,j,[p[5]||=a(`span`,{class:`sr-only`},`Suchen`,-1),e(r(S),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":p[0]||=e=>X.value=e,type:`search`,placeholder:`Name, Funktion, Standort …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[g,X.value]])]),i(a(`select`,{"onUpdate:modelValue":p[1]||=e=>Z.value=e,class:`h-10 rounded-md border border-input bg-card px-3 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none sm:w-56`,"aria-label":`Abteilung`},[p[6]||=a(`option`,{value:``},`Alle Abteilungen`,-1),(c(!0),o(l,null,s(J.departments,e=>(c(),o(`option`,{key:e,value:e},d(e),9,M))),128))],512),[[h,Z.value]])])]),_:1}),J.people.data.length?(c(),o(`ul`,N,[(c(!0),o(l,null,s(J.people.data,n=>(c(),o(`li`,{key:n.id,class:`flex flex-col rounded-lg border bg-card`},[e(r(v),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:u(()=>[e(x,{person:n,class:`size-12`},null,8,[`person`]),a(`div`,P,[a(`div`,F,d(n.name),1),a(`div`,I,d(n.job_title||`–`),1)])]),_:2},1032,[`href`]),a(`div`,L,[n.department?(c(),o(`span`,R,d(n.department),1)):m(``,!0),n.department&&n.location?(c(),o(`span`,z,` · `)):m(``,!0),n.location?(c(),o(`span`,B,d(n.location),1)):m(``,!0)]),a(`div`,V,[a(`a`,{href:`mailto:${n.email}`,class:`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(b),{class:`size-4`}),p[7]||=t(` E-Mail `,-1)],8,H),n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`flex flex-1 items-center justify-center gap-1.5 border-l py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(w),{class:`size-4`}),p[8]||=t(` Anrufen `,-1)],8,U)):m(``,!0)])]))),128))])):(c(),o(`div`,W,[e(r(D),{class:`size-8 text-muted-foreground`}),p[9]||=a(`p`,{class:`mt-3 font-medium`},`Niemand gefunden`,-1),p[10]||=a(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Versuchen Sie einen anderen Suchbegriff oder eine andere Abteilung.`,-1)])),J.people.meta.last_page>1?(c(),o(`nav`,G,[a(`p`,K,`Seite `+d(J.people.meta.current_page)+` von `+d(J.people.meta.last_page),1),a(`div`,q,[e(r(k),{variant:`outline`,size:`sm`,disabled:!J.people.links.prev,onClick:p[2]||=e=>r(_).get(J.people.links.prev,{},{preserveScroll:!1})},{default:u(()=>[e(r(T)),p[11]||=t(` Zurück `,-1)]),_:1},8,[`disabled`]),e(r(k),{variant:`outline`,size:`sm`,disabled:!J.people.links.next,onClick:p[3]||=e=>r(_).get(J.people.links.next,{},{preserveScroll:!1})},{default:u(()=>[p[12]||=t(` Weiter `,-1),e(r(E))]),_:1},8,[`disabled`])])])):m(``,!0)]),_:1}))}};export{J as default}; \ No newline at end of file diff --git a/public/build/assets/Index-CX11WxUX.js b/public/build/assets/Index-CX11WxUX.js new file mode 100644 index 00000000..fabd6296 --- /dev/null +++ b/public/build/assets/Index-CX11WxUX.js @@ -0,0 +1 @@ +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import"./app-Dy5FbYkt.js";import{s as f}from"./RovingFocusGroup-NIVUjBd5.js";import{t as p}from"./AppLayout-X0y7XSjx.js";import{r as m,t as h}from"./FolderTile-CFCj9eng.js";import{t as g}from"./EmptyState-Ceq4v8mE.js";import{t as _}from"./PageHeader-Dcr3nLVu.js";import{t as v}from"./button-SRYY3-ko.js";import{t as y}from"./QmSearchBox-DmD7IrDS.js";var b=[`href`],x={key:0,class:`grid gap-8`},S={class:`mb-3 flex items-center gap-3`},C={class:`text-sm font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase`},w={class:`grid grid-cols-[repeat(auto-fill,minmax(13rem,1fr))] gap-4`},T={key:1,class:`rounded-lg border bg-card`},E=[`href`],D={__name:`Index`,props:{categories:{type:Array,required:!0},canManage:{type:Boolean,default:!1},adminUrl:{type:String,default:null}},setup(D){return(O,k)=>(o(),u(p,{title:`Qualitätsmanagement`},{default:c(()=>[e(_,{title:`Qualitätsmanagement`,description:`Verfahrensanweisungen, Standards und Formulare – immer in der gültigen Fassung.`},{actions:c(()=>[D.adminUrl?(o(),u(n(v),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:c(()=>[r(`a`,{href:D.adminUrl},[e(n(m)),k[0]||=t(` Ordner verwalten`,-1)],8,b)]),_:1})):d(``,!0),e(y)]),_:1}),D.categories.length?(o(),i(`div`,x,[(o(!0),i(s,null,a(D.categories,e=>(o(),i(`section`,{key:e.id??`rest`},[r(`div`,S,[r(`h2`,C,l(e.name),1),k[1]||=r(`span`,{class:`h-px flex-1 bg-border`,"aria-hidden":`true`},null,-1)]),r(`div`,w,[(o(!0),i(s,null,a(e.folders,e=>(o(),u(h,{key:e.id,folder:e},null,8,[`folder`]))),128))])]))),128))])):(o(),i(`div`,T,[e(g,{icon:n(f),title:`Noch keine Ordner`,text:D.canManage?`Legen Sie Kategorien und Ordner im Admin-Bereich unter „Qualitätsmanagement“ an.`:`Hier erscheinen bald die QM-Dokumente.`},{default:c(()=>[D.adminUrl?(o(),u(n(v),{key:0,class:`mt-4`,"as-child":``},{default:c(()=>[r(`a`,{href:D.adminUrl},`Ordner anlegen`,8,E)]),_:1})):d(``,!0)]),_:1},8,[`icon`,`text`])]))]),_:1}))}};export{D as default}; \ No newline at end of file diff --git a/public/build/assets/Index-CuHYqUvM.js b/public/build/assets/Index-CcNI40_I.js similarity index 89% rename from public/build/assets/Index-CuHYqUvM.js rename to public/build/assets/Index-CcNI40_I.js index 854cd790..45864999 100644 --- a/public/build/assets/Index-CuHYqUvM.js +++ b/public/build/assets/Index-CcNI40_I.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as m,n as h}from"./app-CIvn5Z1l.js";import{B as g}from"./AppIcon-BVHFLm12.js";import{t as _}from"./AppLayout-Cy38OwfZ.js";import{t as v}from"./chevron-left-CfNljcKt.js";import{t as y}from"./chevron-right-DR4LjgDm.js";import{t as b}from"./pen-line-AST4G_M5.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-CWL5ThBH.js";import{t as C}from"./button-SRYY3-ko.js";import{t as w}from"./NewsCard-CWMFENyt.js";var T={key:0,class:`mb-6 flex flex-wrap gap-2`,"aria-label":`Kategorien`},E={key:1,class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},D={key:2,class:`rounded-lg border border-dashed bg-card`},O={key:3,class:`mt-8 flex items-center justify-between`,"aria-label":`Seiten`},k={class:`text-sm text-muted-foreground`},A={class:`flex gap-2`},j={__name:`Index`,props:{posts:{type:Object,required:!0},categories:{type:Array,required:!0},activeCategory:{type:String,default:null},canWrite:{type:Boolean,default:!1}},setup(j){return(M,N)=>(s(),d(_,{title:`Neuigkeiten`},{default:l(()=>[e(S,{title:`Neuigkeiten`,description:`Aktuelles aus dem Unternehmen und den Bereichen.`},f({_:2},[j.canWrite?{name:`actions`,fn:l(()=>[e(n(C),{"as-child":``},{default:l(()=>[e(n(h),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(b)),N[2]||=t(` Beitrag schreiben`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),j.categories.length?(s(),a(`nav`,T,[e(n(h),{href:`/neuigkeiten`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory?`bg-card hover:bg-accent`:`border-brand bg-brand text-brand-foreground`]),"preserve-scroll":``},{default:l(()=>[...N[3]||=[t(` Alle `,-1)]]),_:1},8,[`class`]),(s(!0),a(c,null,o(j.categories,e=>(s(),d(n(h),{key:e.slug,href:`/neuigkeiten?kategorie=${e.slug}`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory===e.slug?`border-brand bg-brand text-brand-foreground`:`bg-card hover:bg-accent`]),"preserve-scroll":``},{default:l(()=>[t(u(e.name),1)]),_:2},1032,[`href`,`class`]))),128))])):p(``,!0),j.posts.data.length?(s(),a(`div`,E,[(s(!0),a(c,null,o(j.posts.data,e=>(s(),d(w,{key:e.id,post:e},null,8,[`post`]))),128))])):(s(),a(`div`,D,[e(x,{icon:n(g),title:`Keine Beiträge`,text:`In dieser Kategorie ist noch nichts veröffentlicht.`},null,8,[`icon`])])),j.posts.meta.last_page>1?(s(),a(`nav`,O,[i(`p`,k,`Seite `+u(j.posts.meta.current_page)+` von `+u(j.posts.meta.last_page),1),i(`div`,A,[e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.prev,onClick:N[0]||=e=>n(m).get(j.posts.links.prev)},{default:l(()=>[e(n(v)),N[4]||=t(` Neuere`,-1)]),_:1},8,[`disabled`]),e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.next,onClick:N[1]||=e=>n(m).get(j.posts.links.next)},{default:l(()=>[N[5]||=t(`Ältere `,-1),e(n(y))]),_:1},8,[`disabled`])])])):p(``,!0)]),_:1}))}};export{j as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as m,n as h}from"./app-Dy5FbYkt.js";import{B as g}from"./AppIcon-SVMShh8s.js";import{t as _}from"./AppLayout-X0y7XSjx.js";import{t as v}from"./chevron-left-CfNljcKt.js";import{t as y}from"./chevron-right-DR4LjgDm.js";import{t as b}from"./pen-line-AST4G_M5.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-Dcr3nLVu.js";import{t as C}from"./button-SRYY3-ko.js";import{t as w}from"./NewsCard-BnbSPjUt.js";var T={key:0,class:`mb-6 flex flex-wrap gap-2`,"aria-label":`Kategorien`},E={key:1,class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},D={key:2,class:`rounded-lg border border-dashed bg-card`},O={key:3,class:`mt-8 flex items-center justify-between`,"aria-label":`Seiten`},k={class:`text-sm text-muted-foreground`},A={class:`flex gap-2`},j={__name:`Index`,props:{posts:{type:Object,required:!0},categories:{type:Array,required:!0},activeCategory:{type:String,default:null},canWrite:{type:Boolean,default:!1}},setup(j){return(M,N)=>(s(),d(_,{title:`Neuigkeiten`},{default:l(()=>[e(S,{title:`Neuigkeiten`,description:`Aktuelles aus dem Unternehmen und den Bereichen.`},f({_:2},[j.canWrite?{name:`actions`,fn:l(()=>[e(n(C),{"as-child":``},{default:l(()=>[e(n(h),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(b)),N[2]||=t(` Beitrag schreiben`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),j.categories.length?(s(),a(`nav`,T,[e(n(h),{href:`/neuigkeiten`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory?`bg-card hover:bg-accent`:`border-brand bg-brand text-brand-foreground`]),"preserve-scroll":``},{default:l(()=>[...N[3]||=[t(` Alle `,-1)]]),_:1},8,[`class`]),(s(!0),a(c,null,o(j.categories,e=>(s(),d(n(h),{key:e.slug,href:`/neuigkeiten?kategorie=${e.slug}`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory===e.slug?`border-brand bg-brand text-brand-foreground`:`bg-card hover:bg-accent`]),"preserve-scroll":``},{default:l(()=>[t(u(e.name),1)]),_:2},1032,[`href`,`class`]))),128))])):p(``,!0),j.posts.data.length?(s(),a(`div`,E,[(s(!0),a(c,null,o(j.posts.data,e=>(s(),d(w,{key:e.id,post:e},null,8,[`post`]))),128))])):(s(),a(`div`,D,[e(x,{icon:n(g),title:`Keine Beiträge`,text:`In dieser Kategorie ist noch nichts veröffentlicht.`},null,8,[`icon`])])),j.posts.meta.last_page>1?(s(),a(`nav`,O,[i(`p`,k,`Seite `+u(j.posts.meta.current_page)+` von `+u(j.posts.meta.last_page),1),i(`div`,A,[e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.prev,onClick:N[0]||=e=>n(m).get(j.posts.links.prev)},{default:l(()=>[e(n(v)),N[4]||=t(` Neuere`,-1)]),_:1},8,[`disabled`]),e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.next,onClick:N[1]||=e=>n(m).get(j.posts.links.next)},{default:l(()=>[N[5]||=t(`Ältere `,-1),e(n(y))]),_:1},8,[`disabled`])])])):p(``,!0)]),_:1}))}};export{j as default}; \ No newline at end of file diff --git a/public/build/assets/Index-CcFQ4knZ.js b/public/build/assets/Index-Cm4o1643.js similarity index 60% rename from public/build/assets/Index-CcFQ4knZ.js rename to public/build/assets/Index-Cm4o1643.js index af4ba883..6c1211a4 100644 --- a/public/build/assets/Index-CcFQ4knZ.js +++ b/public/build/assets/Index-Cm4o1643.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialForms-Di1_sGWd.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/app-CIvn5Z1l.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-BZMCjaRn.css","assets/download-cH_7CRKx.js","assets/dist-CleIz2GP.js","assets/pencil-line-Cp-EHBoW.js","assets/plus-cKZvz4wH.js","assets/table-properties-B82lvC7D.js","assets/button-SRYY3-ko.js","assets/Panel-xPHuwfuu.js","assets/chevron-right-DR4LjgDm.js","assets/EditorialNews-B8R4_r-1.js","assets/AppIcon-BVHFLm12.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/message-square-warning-CUD7Iy66.js","assets/EditorialPages-CIn86wBI.js","assets/lock-4X8Kfof0.js","assets/NewPageDialog-BbIzQTb2.js","assets/DialogHeader-ByFe3nCF.js","assets/Input-CgjHXzkf.js","assets/dist-BRRmd-wM.js","assets/dialog-bBqX5pN5.js"])))=>i.map(i=>d[i]); -import{D as e,O as t,_ as n,b as r,bt as i,et as a,mt as o,o as s,qt as c,v as l,wt as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as d}from"./app-CIvn5Z1l.js";import{t as f}from"./AppLayout-Cy38OwfZ.js";import{t as p}from"./PageHeader-CWL5ThBH.js";var m={class:`grid items-start gap-6 xl:grid-cols-2`},h={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(h){let g=Object.assign({"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>d(()=>import(`./EditorialForms-Di1_sGWd.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>d(()=>import(`./EditorialNews-B8R4_r-1.js`),__vite__mapDeps([13,1,2,3,4,14,15,6,16,17,18,8,10,11,12])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>d(()=>import(`./EditorialPages-CIn86wBI.js`),__vite__mapDeps([19,1,2,3,4,14,15,6,16,17,20,8,10,11,12,21,22,23,24,25]))}),_={};for(let[e,n]of Object.entries(g)){let[,r]=e.match(/plugins-core\/([^/]+)\//);_[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}return(t,d)=>(o(),l(f,{title:`Redaktion`},{default:c(()=>[e(p,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),n(`div`,m,[(o(!0),r(s,null,i(h.sections,e=>(o(),l(u(_[e.component]),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])]),_:1}))}};export{h as default}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialForms-DKd7Ncoz.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/app-Dy5FbYkt.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-BXGstlVh.css","assets/download-cH_7CRKx.js","assets/dist-CleIz2GP.js","assets/pencil-line-Cp-EHBoW.js","assets/plus-cKZvz4wH.js","assets/table-properties-B82lvC7D.js","assets/button-SRYY3-ko.js","assets/Panel-DF-wChKt.js","assets/chevron-right-DR4LjgDm.js","assets/EditorialNews-C9f0OExj.js","assets/AppIcon-SVMShh8s.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/message-square-warning-CUD7Iy66.js","assets/EditorialPages-DcM9sgTM.js","assets/lock-4X8Kfof0.js","assets/NewPageDialog-B5SW-nak.js","assets/DialogHeader-UfXa7NWq.js","assets/Input-CgjHXzkf.js","assets/dist-BRRmd-wM.js","assets/dialog-DrnG5a9r.js"])))=>i.map(i=>d[i]); +import{D as e,O as t,_ as n,b as r,bt as i,et as a,mt as o,o as s,qt as c,v as l,wt as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as d}from"./app-Dy5FbYkt.js";import{t as f}from"./AppLayout-X0y7XSjx.js";import{t as p}from"./PageHeader-Dcr3nLVu.js";var m={class:`grid items-start gap-6 xl:grid-cols-2`},h={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(h){let g=Object.assign({"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>d(()=>import(`./EditorialForms-DKd7Ncoz.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>d(()=>import(`./EditorialNews-C9f0OExj.js`),__vite__mapDeps([13,1,2,3,4,14,15,6,16,17,18,8,10,11,12])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>d(()=>import(`./EditorialPages-DcM9sgTM.js`),__vite__mapDeps([19,1,2,3,4,14,15,6,16,17,20,8,10,11,12,21,22,23,24,25]))}),_={};for(let[e,n]of Object.entries(g)){let[,r]=e.match(/plugins-core\/([^/]+)\//);_[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}return(t,d)=>(o(),l(f,{title:`Redaktion`},{default:c(()=>[e(p,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),n(`div`,m,[(o(!0),r(s,null,i(h.sections,e=>(o(),l(u(_[e.component]),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])]),_:1}))}};export{h as default}; \ No newline at end of file diff --git a/public/build/assets/Index-CbsDlkw3.js b/public/build/assets/Index-CxZeGDv5.js similarity index 84% rename from public/build/assets/Index-CbsDlkw3.js rename to public/build/assets/Index-CxZeGDv5.js index a773729e..8c83b8b0 100644 --- a/public/build/assets/Index-CbsDlkw3.js +++ b/public/build/assets/Index-CxZeGDv5.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-CIvn5Z1l.js";import{it as h}from"./AppIcon-BVHFLm12.js";import{t as g}from"./AppLayout-Cy38OwfZ.js";import{t as _}from"./BirthdayItem-DK6xURSZ.js";import{t as v}from"./EmptyState-Ceq4v8mE.js";import{t as y}from"./PageHeader-CWL5ThBH.js";var b={class:`mx-auto max-w-3xl`},x={key:0,class:`mb-6 rounded-lg border bg-card px-4 py-3 text-sm`},S={key:1,class:`grid gap-5`},C={class:`divide-y px-5`},w={key:2,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{birthdays:{type:Array,required:!0},scope:{type:String,required:!0},registered:{type:Boolean,default:!1}},setup(T){let E=T,D=s(()=>{let e=[];for(let t of E.birthdays){let n=e.at(-1);n&&n.date===t.date?n.items.push(t):e.push({date:t.date,today:t.today,items:[t]})}return e}),O=e=>e.today?`Heute`:new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`}).format(new Date(`${e.date}T12:00:00`));return(s,E)=>(c(),f(g,{title:`Geburtstage`},{default:u(()=>[i(`div`,b,[e(y,{title:`Geburtstage`,description:`Die nächsten 30 Tage · ${T.scope}`},null,8,[`description`]),T.registered?p(``,!0):(c(),a(`p`,x,[E[1]||=t(` Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter `,-1),e(n(m),{href:`/profil/bearbeiten`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...E[0]||=[t(`Profil bearbeiten`,-1)]]),_:1}),E[2]||=t(` ein. `,-1)])),D.value.length?(c(),a(`div`,S,[(c(!0),a(l,null,o(D.value,e=>(c(),a(`section`,{key:e.date,class:`rounded-lg border bg-card`},[i(`h2`,{class:r([`border-b px-5 py-3 text-sm font-semibold`,e.today?`text-brand-text`:``])},d(O(e)),3),i(`div`,C,[(c(!0),a(l,null,o(e.items,e=>(c(),f(_,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(v,{icon:n(h),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-Dy5FbYkt.js";import{it as h}from"./AppIcon-SVMShh8s.js";import{t as g}from"./AppLayout-X0y7XSjx.js";import{t as _}from"./BirthdayItem-1R7P_7L0.js";import{t as v}from"./EmptyState-Ceq4v8mE.js";import{t as y}from"./PageHeader-Dcr3nLVu.js";var b={class:`mx-auto max-w-3xl`},x={key:0,class:`mb-6 rounded-lg border bg-card px-4 py-3 text-sm`},S={key:1,class:`grid gap-5`},C={class:`divide-y px-5`},w={key:2,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{birthdays:{type:Array,required:!0},scope:{type:String,required:!0},registered:{type:Boolean,default:!1}},setup(T){let E=T,D=s(()=>{let e=[];for(let t of E.birthdays){let n=e.at(-1);n&&n.date===t.date?n.items.push(t):e.push({date:t.date,today:t.today,items:[t]})}return e}),O=e=>e.today?`Heute`:new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`}).format(new Date(`${e.date}T12:00:00`));return(s,E)=>(c(),f(g,{title:`Geburtstage`},{default:u(()=>[i(`div`,b,[e(y,{title:`Geburtstage`,description:`Die nächsten 30 Tage · ${T.scope}`},null,8,[`description`]),T.registered?p(``,!0):(c(),a(`p`,x,[E[1]||=t(` Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter `,-1),e(n(m),{href:`/profil/bearbeiten`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...E[0]||=[t(`Profil bearbeiten`,-1)]]),_:1}),E[2]||=t(` ein. `,-1)])),D.value.length?(c(),a(`div`,S,[(c(!0),a(l,null,o(D.value,e=>(c(),a(`section`,{key:e.date,class:`rounded-lg border bg-card`},[i(`h2`,{class:r([`border-b px-5 py-3 text-sm font-semibold`,e.today?`text-brand-text`:``])},d(O(e)),3),i(`div`,C,[(c(!0),a(l,null,o(e.items,e=>(c(),f(_,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(v,{icon:n(h),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default}; \ No newline at end of file diff --git a/public/build/assets/Index-DMTy14mX.js b/public/build/assets/Index-DCsw2Mz2.js similarity index 87% rename from public/build/assets/Index-DMTy14mX.js rename to public/build/assets/Index-DCsw2Mz2.js index aa86a9e6..7d8f8c10 100644 --- a/public/build/assets/Index-DMTy14mX.js +++ b/public/build/assets/Index-DCsw2Mz2.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-CIvn5Z1l.js";import{$ as h,Q as g}from"./AppIcon-BVHFLm12.js";import{t as _}from"./AppLayout-Cy38OwfZ.js";import{t as v}from"./chevron-right-DR4LjgDm.js";import{t as y}from"./plus-cKZvz4wH.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-CWL5ThBH.js";import{t as S}from"./button-SRYY3-ko.js";import{t as C}from"./NewPageDialog-BbIzQTb2.js";var w={key:0,class:`grid gap-5 md:grid-cols-2 xl:grid-cols-3`},T={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},E={class:`min-w-0 flex-1 truncate font-semibold`},D={key:0,class:`grid p-2`},O={class:`truncate`},k={key:0,class:`text-xs text-muted-foreground`},A={key:0,class:`px-3 py-1.5 text-[13px]`},j={key:1,class:`rounded-lg border bg-card`},M={__name:`Index`,props:{tree:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(M){let N=d(!1);return(d,P)=>(o(),u(_,{title:`Seiten`},{default:c(()=>[e(x,{title:`Seiten`,description:`Informationen der Bereiche, Abteilungen und Gremien.`},f({_:2},[M.canCreate?{name:`actions`,fn:c(()=>[e(n(S),{onClick:P[0]||=e=>N.value=!0},{default:c(()=>[e(n(y)),P[2]||=t(` Neue Seite`,-1)]),_:1})]),key:`0`}:void 0]),1024),M.tree.length?(o(),i(`div`,w,[(o(!0),i(s,null,a(M.tree,d=>(o(),i(`section`,{key:d.id,class:`rounded-lg border bg-card`},[e(n(m),{href:d.url,class:`flex items-center gap-3 border-b px-5 py-4 hover:bg-accent/50`},{default:c(()=>[r(`span`,T,[d.children.length?(o(),u(n(g),{key:0,class:`size-5`})):(o(),u(n(h),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(v),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`]),d.children.length?(o(),i(`ul`,D,[(o(!0),i(s,null,a(d.children.slice(0,8),t=>(o(),i(`li`,{key:t.id},[e(n(m),{href:t.url,class:`flex items-center justify-between rounded-md px-3 py-2 text-sm hover:bg-accent`},{default:c(()=>[r(`span`,O,l(t.title),1),t.children.length?(o(),i(`span`,k,l(t.children.length),1)):p(``,!0)]),_:2},1032,[`href`])]))),128)),d.children.length>8?(o(),i(`li`,A,[e(n(m),{href:d.url,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(`Alle `+l(d.children.length)+` Seiten`,1)]),_:2},1032,[`href`])])):p(``,!0)])):p(``,!0)]))),128))])):(o(),i(`div`,j,[e(b,{icon:n(h),title:`Noch keine Seiten`,text:`Hier erscheinen Seiten, sobald sie veröffentlicht sind.`},null,8,[`icon`])])),e(C,{open:N.value,"onUpdate:open":P[1]||=e=>N.value=e},null,8,[`open`])]),_:1}))}};export{M as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-Dy5FbYkt.js";import{$ as h,Q as g}from"./AppIcon-SVMShh8s.js";import{t as _}from"./AppLayout-X0y7XSjx.js";import{t as v}from"./chevron-right-DR4LjgDm.js";import{t as y}from"./plus-cKZvz4wH.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-Dcr3nLVu.js";import{t as S}from"./button-SRYY3-ko.js";import{t as C}from"./NewPageDialog-B5SW-nak.js";var w={key:0,class:`grid gap-5 md:grid-cols-2 xl:grid-cols-3`},T={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},E={class:`min-w-0 flex-1 truncate font-semibold`},D={key:0,class:`grid p-2`},O={class:`truncate`},k={key:0,class:`text-xs text-muted-foreground`},A={key:0,class:`px-3 py-1.5 text-[13px]`},j={key:1,class:`rounded-lg border bg-card`},M={__name:`Index`,props:{tree:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(M){let N=d(!1);return(d,P)=>(o(),u(_,{title:`Seiten`},{default:c(()=>[e(x,{title:`Seiten`,description:`Informationen der Bereiche, Abteilungen und Gremien.`},f({_:2},[M.canCreate?{name:`actions`,fn:c(()=>[e(n(S),{onClick:P[0]||=e=>N.value=!0},{default:c(()=>[e(n(y)),P[2]||=t(` Neue Seite`,-1)]),_:1})]),key:`0`}:void 0]),1024),M.tree.length?(o(),i(`div`,w,[(o(!0),i(s,null,a(M.tree,d=>(o(),i(`section`,{key:d.id,class:`rounded-lg border bg-card`},[e(n(m),{href:d.url,class:`flex items-center gap-3 border-b px-5 py-4 hover:bg-accent/50`},{default:c(()=>[r(`span`,T,[d.children.length?(o(),u(n(g),{key:0,class:`size-5`})):(o(),u(n(h),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(v),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`]),d.children.length?(o(),i(`ul`,D,[(o(!0),i(s,null,a(d.children.slice(0,8),t=>(o(),i(`li`,{key:t.id},[e(n(m),{href:t.url,class:`flex items-center justify-between rounded-md px-3 py-2 text-sm hover:bg-accent`},{default:c(()=>[r(`span`,O,l(t.title),1),t.children.length?(o(),i(`span`,k,l(t.children.length),1)):p(``,!0)]),_:2},1032,[`href`])]))),128)),d.children.length>8?(o(),i(`li`,A,[e(n(m),{href:d.url,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(`Alle `+l(d.children.length)+` Seiten`,1)]),_:2},1032,[`href`])])):p(``,!0)])):p(``,!0)]))),128))])):(o(),i(`div`,j,[e(b,{icon:n(h),title:`Noch keine Seiten`,text:`Hier erscheinen Seiten, sobald sie veröffentlicht sind.`},null,8,[`icon`])])),e(C,{open:N.value,"onUpdate:open":P[1]||=e=>N.value=e},null,8,[`open`])]),_:1}))}};export{M as default}; \ No newline at end of file diff --git a/public/build/assets/Index-DjWJJOPS.js b/public/build/assets/Index-DjWJJOPS.js deleted file mode 100644 index 6f2120b3..00000000 --- a/public/build/assets/Index-DjWJJOPS.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdfThumbnail-8Z6oxZ5l.js","assets/app-CIvn5Z1l.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-BZMCjaRn.css"])))=>i.map(i=>d[i]); -import{D as e,E as t,Ht as n,On as r,St as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,et as d,g as f,it as p,jt as ee,mt as m,o as h,qt as g,tr as _,v,vn as y,wt as b,xt as te,y as x}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as S}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as C,i as ne,n as w,o as T,r as re}from"./app-CIvn5Z1l.js";import{A as ie,j as E}from"./dist-CleIz2GP.js";import{L as ae,Q as oe,Y as se,Z as D,c as O,d as ce,f as le,h as ue,l as de,m as fe,p as k,tt as pe,z as me}from"./AppIcon-BVHFLm12.js";import{n as A,t as j}from"./arrow-up-B8ttChMk.js";import{t as he}from"./AppLayout-Cy38OwfZ.js";import{o as ge,t as _e,x as ve}from"./http-9R3L4KBg.js";import{t as ye}from"./download-cH_7CRKx.js";import{a as be,i as xe,n as M,r as Se,t as Ce}from"./upload-CsKboDGl.js";import{t as N}from"./FileIcon-BHQ0ftg2.js";import{t as we}from"./list-DbBAT7EJ.js";import{t as Te}from"./pencil-line-Cp-EHBoW.js";import{t as Ee}from"./trash-3XeUxfQJ.js";import{n as De,t as P}from"./DialogHeader-ByFe3nCF.js";import{t as F}from"./FormField-BcJMyuzX.js";import{t as Oe}from"./EmptyState-Ceq4v8mE.js";import{t as ke}from"./PageHeader-CWL5ThBH.js";import{t as I}from"./button-SRYY3-ko.js";import{t as Ae}from"./NativeSelect-BBbvK4oZ.js";import{t as L}from"./Input-CgjHXzkf.js";import{n as je,t as Me}from"./useStoredChoice-DGWodkrG.js";import{t as Ne}from"./Textarea-DWpyL-nk.js";import{i as R,n as Pe,r as z,t as B}from"./dialog-bBqX5pN5.js";var Fe=E({name:`folder-plus`,size:24,node:[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),Ie=E({name:`library-big`,size:24,node:[[`rect`,{width:`8`,height:`18`,x:`3`,y:`3`,rx:`1`,key:`oynpb5`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z`,key:`1qboyk`}]]}),Le=E({name:`trending-up`,size:24,node:[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]}),V=e=>e?e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`:`–`,Re=(e,t,n)=>`${e.toLocaleString(`de-DE`)} ${e===1?t:n}`;function ze(e){let t=[];return e.folders&&t.push(Re(e.folders,`Ordner`,`Ordner`)),e.downloads&&t.push(Re(e.downloads,`Datei`,`Dateien`)),t.join(` · `)||`Noch leer`}var H={__name:`DownloadMenu`,props:{download:{type:Object,required:!0},canEdit:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`],setup(n){return(i,a)=>(m(),v(r(ue),null,{default:g(()=>[e(r(ce),{"as-child":``},{default:g(()=>[e(r(I),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${n.download.title}`},{default:g(()=>[e(r(be))]),_:1},8,[`aria-label`])]),_:1}),e(r(fe),{align:`end`,class:`w-60`},{default:g(()=>[e(r(k),{onSelect:a[0]||=e=>i.$emit(`versions`,n.download)},{default:g(()=>[e(r(M)),a[4]||=t(` Fassungen anzeigen`,-1)]),_:1}),n.canEdit?(m(),s(h,{key:0},[e(r(k),{onSelect:a[1]||=e=>i.$emit(`new-version`,n.download)},{default:g(()=>[e(r(xe)),a[5]||=t(` Neue Fassung hochladen`,-1)]),_:1}),e(r(k),{onSelect:a[2]||=e=>i.$emit(`edit`,n.download)},{default:g(()=>[e(r(Te)),a[6]||=t(` Bearbeiten oder verschieben`,-1)]),_:1}),e(r(le)),e(r(k),{class:`text-destructive`,onSelect:a[3]||=e=>i.$emit(`remove`,n.download)},{default:g(()=>[e(r(Ee)),a[7]||=t(` Löschen`,-1)]),_:1})],64)):x(``,!0)]),_:1})]),_:1}))}},Be=[`aria-pressed`,`title`,`aria-label`],U={__name:`FavoriteButton`,props:{download:{type:Object,required:!0}},emits:[`toggle`],setup(t){return(n,i)=>(m(),s(`button`,{type:`button`,class:a([`grid size-8 place-items-center rounded-md hover:bg-accent`,t.download.favorite?`text-amber-500`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":t.download.favorite,title:t.download.favorite?`Aus „Meine Downloads“ entfernen`:`In „Meine Downloads“ merken`,"aria-label":t.download.favorite?`${t.download.title} nicht mehr merken`:`${t.download.title} merken`,onClick:i[0]||=e=>n.$emit(`toggle`,t.download)},[e(r(ae),{class:a([`size-4`,{"fill-current":t.download.favorite}])},null,8,[`class`])],10,Be))}},W=[`src`],Ve={key:1,class:`grid size-full place-items-center`},He={__name:`DownloadThumb`,props:{download:{type:Object,required:!0}},setup(t){let n=t,r=y(null),i=y(null),a=y(!1),o;async function c(){if(n.download.preview_kind===`image`){i.value=n.download.preview_url;return}try{let{pdfThumbnail:e}=await T(async()=>{let{pdfThumbnail:e}=await import(`./pdfThumbnail-8Z6oxZ5l.js`);return{pdfThumbnail:e}},__vite__mapDeps([0,1,2,3,4]));i.value=await e(n.download.preview_url)}catch{a.value=!0}}return l(()=>{n.download.preview_url&&typeof IntersectionObserver<`u`&&(o=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(o.disconnect(),c())},{rootMargin:`200px`}),o.observe(r.value))}),p(()=>o?.disconnect()),(n,o)=>(m(),s(`div`,{ref_key:`root`,ref:r,class:`relative h-32 overflow-hidden rounded-t-lg border-b bg-muted/40`},[i.value&&!a.value?(m(),s(`img`,{key:0,src:i.value,alt:``,class:`size-full object-cover object-top`,loading:`lazy`,onError:o[0]||=e=>a.value=!0},null,40,W)):(m(),s(`div`,Ve,[e(N,{extension:t.download.extension,size:`lg`},null,8,[`extension`])])),te(n.$slots,`default`)],512))}},Ue={class:`grid gap-6`},G={key:0,class:`grid grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))] gap-3`},K={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},We={class:`min-w-0`},q={class:`block truncate text-xs text-muted-foreground`},J={key:1,class:`grid grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))] gap-3`},Ge={key:0,class:`absolute bottom-2 left-2 rounded bg-card px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground ring-1 ring-border`},Ke={key:1,class:`absolute right-2 bottom-2 rounded bg-card px-1.5 py-0.5 text-[10px] font-bold tracking-wide text-muted-foreground uppercase ring-1 ring-border`},qe={class:`flex min-h-0 flex-1 flex-col p-3`},Y=[`href`,`title`],X={key:1,class:`line-clamp-2 text-sm leading-snug font-medium`},Je={class:`mt-auto pt-2 text-xs text-muted-foreground`},Z={key:0,class:`absolute top-2 left-2 z-10 text-amber-500`},Q={class:`absolute top-1.5 right-1.5 z-10 flex gap-0.5 rounded-md bg-card/90 opacity-0 shadow-xs ring-1 ring-border transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 max-md:opacity-100`},$=[`href`,`aria-label`],Ye={__name:`DownloadGrid`,props:{folders:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`,`favorite`],setup(n){return(i,a)=>(m(),s(`div`,Ue,[n.folders.length?(m(),s(`ul`,G,[(m(!0),s(h,null,c(n.folders,n=>(m(),s(`li`,{key:n.id,class:`group relative flex items-center gap-3 rounded-lg border bg-card p-3 hover:border-brand-300 hover:shadow-xs`},[o(`span`,K,[e(r(D),{class:`size-5`,"stroke-width":1.75})]),o(`span`,We,[e(r(w),{href:`/downloads/ordner/${n.id}`,class:`block truncate text-sm font-medium after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`]),o(`span`,q,_(r(ze)(n)),1)])]))),128))])):x(``,!0),n.downloads.length?(m(),s(`ul`,J,[(m(!0),s(h,null,c(n.downloads,t=>(m(),s(`li`,{key:t.id,class:`group relative flex flex-col rounded-lg border bg-card hover:border-brand-300 hover:shadow-xs`},[e(He,{download:t},{default:g(()=>[t.version>1?(m(),s(`span`,Ge,`Fassung `+_(t.version),1)):x(``,!0),t.preview_url?(m(),s(`span`,Ke,_(t.extension),1)):x(``,!0)]),_:2},1032,[`download`]),o(`div`,qe,[t.download_url?(m(),s(`a`,{key:0,href:t.download_url,class:`line-clamp-2 text-sm leading-snug font-medium after:absolute after:inset-0 hover:underline`,title:t.name},_(t.title),9,Y)):(m(),s(`span`,X,_(t.title),1)),o(`p`,Je,_(r(de)(t.updated_at))+` · `+_(r(V)(t.size)),1)]),t.favorite?(m(),s(`div`,Z,[e(r(ae),{class:`size-4 fill-current`})])):x(``,!0),o(`div`,Q,[e(U,{download:t,onToggle:a[0]||=e=>i.$emit(`favorite`,e)},null,8,[`download`]),t.download_url?(m(),v(r(I),{key:0,variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${t.title} herunterladen`},{default:g(()=>[o(`a`,{href:t.download_url,"aria-label":`${t.title} herunterladen`},[e(r(ye))],8,$)]),_:2},1032,[`title`])):x(``,!0),e(H,{download:t,"can-edit":n.canEdit,onVersions:a[1]||=e=>i.$emit(`versions`,e),onNewVersion:a[2]||=e=>i.$emit(`new-version`,e),onEdit:a[3]||=e=>i.$emit(`edit`,e),onRemove:a[4]||=e=>i.$emit(`remove`,e)},null,8,[`download`,`can-edit`])])]))),128))])):x(``,!0)]))}},Xe={class:`rounded-lg border bg-card`},Ze={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Qe={key:0,class:`p-2`},$e=[`href`],et={class:`min-w-0 flex-1`},tt={class:`block truncate text-[13px] font-medium`},nt={class:`block truncate text-xs text-muted-foreground`},rt={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},it={__name:`DownloadMiniList`,props:{title:{type:String,required:!0},icon:{type:[Object,Function],required:!0},downloads:{type:Array,required:!0},empty:{type:String,default:``},showDownloads:{type:Boolean,default:!1}},setup(n){return(r,i)=>(m(),s(`section`,Xe,[o(`h2`,Ze,[(m(),v(b(n.icon),{class:`size-4 text-brand-text`})),t(` `+_(n.title),1)]),n.downloads.length?(m(),s(`ul`,Qe,[(m(!0),s(h,null,c(n.downloads,r=>(m(),s(`li`,{key:r.id},[o(`a`,{href:r.download_url,class:`flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(N,{extension:r.extension,size:`sm`},null,8,[`extension`]),o(`span`,et,[o(`span`,tt,_(r.title),1),o(`span`,nt,[t(_(r.folder_name),1),n.showDownloads?(m(),s(h,{key:0},[t(` · `+_(r.download_count.toLocaleString(`de-DE`))+`× geladen`,1)],64)):x(``,!0)])])],8,$e)]))),128))])):(m(),s(`p`,rt,_(n.empty),1))]))}},at={class:`overflow-hidden rounded-lg border bg-card`},ot={key:1},st={key:2},ct={key:4},lt={key:1,class:`text-right`},ut={class:`divide-y`},dt={class:`flex min-w-0 items-center gap-3`},ft={class:`grid size-8 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},pt={class:`min-w-0`},mt={class:`truncate text-xs text-muted-foreground`},ht={key:0,class:`hidden md:block`},gt={key:1,class:`hidden md:block`},_t={class:`flex min-w-0 items-center gap-3`},vt={class:`min-w-0`},yt={class:`flex min-w-0 items-baseline gap-2`},bt=[`href`,`title`],xt={key:1,class:`truncate text-sm font-medium`},St={class:`hidden shrink-0 text-[11px] font-medium text-muted-foreground uppercase sm:inline`},Ct={key:0,class:`truncate text-xs text-muted-foreground`},wt={class:`truncate text-xs text-muted-foreground md:hidden`},Tt={class:`hidden min-w-0 text-[13px] md:block`},Et={class:`truncate leading-tight`},Dt={class:`truncate text-xs leading-tight text-muted-foreground`},Ot={key:1,class:`hidden text-right text-[13px] text-muted-foreground tabular-nums md:block`},kt={class:`absolute top-1/2 right-2 flex -translate-y-1/2 items-center justify-end gap-0.5 md:static md:translate-y-0`},At=[`href`,`aria-label`],jt={__name:`DownloadTable`,props:{folders:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!1},showFolder:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},compact:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`,`favorite`],setup(n){let i=n,l=y({key:`title`,dir:1});function u(e){l.value=l.value.key===e?{key:e,dir:-l.value.dir}:{key:e,dir:e===`title`?1:-1}}let d=f(()=>{if(!i.sortable)return i.downloads;let{key:e,dir:t}=l.value,n=t=>e===`title`?t.title.toLocaleLowerCase(`de`):e===`size`?t.size:t.updated_at??``;return[...i.downloads].sort((e,r)=>n(e)>n(r)?t:n(e)i.compact?i.showFolder?`md:grid-cols-[minmax(0,1fr)_8rem_9.5rem_6.5rem]`:`md:grid-cols-[minmax(0,1fr)_9.5rem_6.5rem]`:i.showFolder?`md:grid-cols-[minmax(0,1fr)_12rem_11rem_5.5rem_6.5rem]`:`md:grid-cols-[minmax(0,1fr)_11rem_5.5rem_6.5rem]`);return(i,f)=>(m(),s(`div`,at,[o(`div`,{class:a([`hidden border-b bg-muted/40 px-4 py-2 text-xs font-medium text-muted-foreground md:grid md:items-center md:gap-4`,p.value]),role:`row`},[n.sortable?(m(),s(`button`,{key:0,type:`button`,class:`inline-flex items-center gap-1 text-left hover:text-foreground`,onClick:f[0]||=e=>u(`title`)},[f[8]||=t(` Name `,-1),l.value.key===`title`?(m(),v(b(l.value.dir>0?r(j):r(A)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,ot,`Name`)),n.showFolder?(m(),s(`span`,st,`Ordner`)):x(``,!0),n.sortable?(m(),s(`button`,{key:3,type:`button`,class:`inline-flex items-center gap-1 text-left hover:text-foreground`,onClick:f[1]||=e=>u(`updated_at`)},[f[9]||=t(` Geändert `,-1),l.value.key===`updated_at`?(m(),v(b(l.value.dir>0?r(j):r(A)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,ct,`Geändert`)),n.compact?x(``,!0):(m(),s(h,{key:5},[n.sortable?(m(),s(`button`,{key:0,type:`button`,class:`inline-flex items-center justify-end gap-1 hover:text-foreground`,onClick:f[2]||=e=>u(`size`)},[f[10]||=t(` Größe `,-1),l.value.key===`size`?(m(),v(b(l.value.dir>0?r(j):r(A)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,lt,`Größe`))],64)),f[11]||=o(`span`,{class:`sr-only`},`Aktionen`,-1)],2),o(`ul`,ut,[(m(!0),s(h,null,c(n.folders,i=>(m(),s(`li`,{key:`f${i.id}`,class:a([`group relative grid items-center gap-x-4 px-4 py-2 hover:bg-accent/60`,p.value])},[o(`div`,dt,[o(`span`,ft,[e(r(D),{class:`size-4`,"stroke-width":1.75})]),o(`div`,pt,[e(r(w),{href:`/downloads/ordner/${i.id}`,class:`block truncate text-sm font-medium after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(i.name),1)]),_:2},1032,[`href`]),o(`p`,mt,_(r(ze)(i)),1)])]),n.showFolder?(m(),s(`span`,ht)):x(``,!0),f[12]||=o(`span`,{class:`hidden text-[13px] text-muted-foreground md:block`},`–`,-1),n.compact?x(``,!0):(m(),s(`span`,gt)),f[13]||=o(`span`,{class:`hidden md:block`},null,-1)],2))),128)),(m(!0),s(h,null,c(d.value,c=>(m(),s(`li`,{key:c.id,class:a([`group relative grid items-center gap-x-4 py-2 pr-32 pl-4 hover:bg-accent/60 md:pr-4`,p.value])},[o(`div`,_t,[e(N,{extension:c.extension,size:`sm`},null,8,[`extension`]),o(`div`,vt,[o(`div`,yt,[c.download_url?(m(),s(`a`,{key:0,href:c.download_url,class:`truncate text-sm font-medium hover:underline`,title:c.name},_(c.title),9,bt)):(m(),s(`span`,xt,_(c.title),1)),o(`span`,St,_(c.extension),1)]),c.description?(m(),s(`p`,Ct,_(c.description),1)):x(``,!0),o(`p`,wt,[t(_(r(O)(c.updated_at))+` · `+_(r(V)(c.size)),1),n.showFolder&&c.folder_name?(m(),s(h,{key:0},[t(` · `+_(c.folder_name),1)],64)):x(``,!0)])])]),n.showFolder?(m(),v(r(w),{key:0,href:`/downloads/ordner/${c.folder_id}`,class:`hidden truncate text-[13px] text-muted-foreground hover:text-foreground hover:underline md:block`},{default:g(()=>[t(_(c.folder_name),1)]),_:2},1032,[`href`])):x(``,!0),o(`div`,Tt,[o(`div`,Et,_(r(O)(c.updated_at)),1),o(`div`,Dt,[c.updated_by?(m(),s(h,{key:0},[t(_(c.updated_by),1)],64)):x(``,!0),c.version>1?(m(),s(h,{key:1},[t(_(c.updated_by?` · `:``)+`Fassung `+_(c.version),1)],64)):x(``,!0)])]),n.compact?x(``,!0):(m(),s(`span`,Ot,_(r(V)(c.size)),1)),o(`div`,kt,[e(U,{download:c,onToggle:f[3]||=e=>i.$emit(`favorite`,e)},null,8,[`download`]),c.download_url?(m(),v(r(I),{key:0,variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${c.title} herunterladen`},{default:g(()=>[o(`a`,{href:c.download_url,"aria-label":`${c.title} herunterladen`},[e(r(ye))],8,At)]),_:2},1032,[`title`])):x(``,!0),e(H,{download:c,"can-edit":n.canEdit,onVersions:f[4]||=e=>i.$emit(`versions`,e),onNewVersion:f[5]||=e=>i.$emit(`new-version`,e),onEdit:f[6]||=e=>i.$emit(`edit`,e),onRemove:f[7]||=e=>i.$emit(`remove`,e)},null,8,[`download`,`can-edit`])])],2))),128))])]))}},Mt={class:`truncate`},Nt={__name:`FolderTreeNav`,props:{items:{type:Array,required:!0},currentId:{type:Number,default:null},openIds:{type:Array,default:()=>[]},depth:{type:Number,default:0}},setup(t){return(n,l)=>{let u=i(`FolderTreeNav`,!0);return m(),s(`ul`,{class:a([`grid gap-0.5`,t.depth?`ml-3 border-l pl-2`:``])},[(m(!0),s(h,null,c(t.items,n=>(m(),s(`li`,{key:n.id},[e(r(w),{href:`/downloads/ordner/${n.id}`,class:a([`flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm`,n.id===t.currentId?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`]),"preserve-scroll":``},{default:g(()=>[n.id===t.currentId||t.openIds.includes(n.id)?(m(),v(r(oe),{key:0,class:`size-4 shrink-0`})):(m(),v(r(D),{key:1,class:`size-4 shrink-0`})),o(`span`,Mt,_(n.name),1)]),_:2},1032,[`href`,`class`]),n.children.length&&(n.id===t.currentId||t.openIds.includes(n.id))?(m(),v(u,{key:0,items:n.children,"current-id":t.currentId,"open-ids":t.openIds,depth:t.depth+1},null,8,[`items`,`current-id`,`open-ids`,`depth`])):x(``,!0)]))),128))],2)}}},Pt={class:`grid gap-6 lg:grid-cols-[240px_minmax(0,1fr)]`},Ft={class:`hidden lg:block`},It={class:`sticky top-20 rounded-lg border bg-card`,"aria-label":`Ordner`},Lt={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Rt={class:`max-h-[calc(100vh-12rem)] overflow-y-auto p-2`},zt={key:0,class:`px-2.5 py-2 text-[13px] text-muted-foreground`},Bt={key:0,class:`mb-7 grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-4`},Vt={class:`flex items-start gap-3 p-4`},Ht={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand text-white`},Ut={class:`min-w-0`},Wt={key:0,class:`mt-0.5 line-clamp-2 text-[13px] leading-snug text-muted-foreground`},Gt={key:1,class:`relative z-10 mt-1 truncate text-xs text-muted-foreground`},Kt={key:0},qt={class:`mt-auto border-t bg-muted/30 px-4 py-2 text-xs font-medium text-brand-text`},Jt={key:1,class:`mb-5 rounded-lg border bg-card`},Yt={class:`grid items-start gap-5 xl:grid-cols-[minmax(0,1fr)_18rem]`},Xt={key:0,class:`min-w-0`},Zt={class:`mb-3 flex items-center gap-2 text-sm font-semibold`},Qt={class:`grid gap-5 xl:pt-8`},$t={class:`mb-4 flex flex-wrap items-center justify-between gap-3`},en={class:`text-[13px] text-muted-foreground`},tn={class:`flex items-center gap-2`},nn={class:`inline-flex rounded-md border bg-card p-0.5`,role:`group`,"aria-label":`Ansicht`},rn=[`aria-pressed`,`onClick`],an={class:`hidden sm:inline`},on=[`aria-valuenow`],sn={class:`min-w-0`},cn={key:1,class:`rounded-lg border bg-card`},ln={class:`mt-1 text-[13px] text-muted-foreground`},un={key:3,class:`rounded-lg border bg-card`},dn={key:0,class:`hidden overflow-hidden rounded-lg border bg-card text-[13px] xl:block`},fn={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},pn={class:`grid gap-3 p-4`},mn={class:`grid grid-cols-2 gap-2`},hn={class:`rounded-md bg-muted/50 px-3 py-2`},gn={class:`text-lg font-semibold tabular-nums`},_n={class:`rounded-md bg-muted/50 px-3 py-2`},vn={class:`text-lg font-semibold tabular-nums`},yn={key:0},bn={key:0,class:`mt-1 flex flex-wrap gap-1`},xn={key:1},Sn={key:1,class:`rounded-md border border-dashed px-3 py-2 text-xs text-muted-foreground`},Cn={class:`mt-2 text-sm font-semibold text-brand-soft-foreground`},wn={key:0,class:`-mx-2 divide-y`,"aria-busy":`true`},Tn={class:`grid flex-1 gap-1.5`},En={key:1,class:`-mx-2 divide-y`},Dn={class:`grid size-8 place-items-center rounded-md bg-muted text-xs font-semibold`},On={class:`min-w-0 flex-1`},kn={class:`truncate text-sm`},An={key:0,class:`ml-1 rounded bg-brand-soft px-1.5 py-0.5 text-[11px] text-brand-soft-foreground`},jn={class:`text-xs text-muted-foreground`},Mn={key:0,class:`text-xs`},Nn=[`href`],Pn={__name:`Index`,props:{tree:{type:Array,required:!0},folder:{type:Object,default:null},breadcrumbs:{type:Array,default:()=>[]},children:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},recent:{type:Array,default:()=>[]},favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]},search:{type:String,default:``},canCreateRoot:{type:Boolean,default:!1},folderOptions:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20}},setup(i){let l=i,p=ne();n(()=>p.props.flash.status,e=>e&&ge.success(e),{immediate:!0});let te=f(()=>l.breadcrumbs.map(e=>e.id)),T=f(()=>!!l.folder?.can_edit),E=f(()=>l.search?`Suche: ${l.search}`:l.folder?.name??`Downloads`),oe=f(()=>l.downloads.map(e=>e.updated_at).filter(Boolean).sort().at(-1)??null),de=f(()=>A.value?[]:[{label:`Downloads`,href:`/downloads`},...l.breadcrumbs.map(e=>({label:e.name,href:`/downloads/ordner/${e.id}`}))]),A=f(()=>!l.folder&&!l.search),j=Me(`downloads.view`,`list`,[`list`,`grid`]),xe=f(()=>{let e=[];return l.children.length&&!l.search&&e.push(Re(l.children.length,`Ordner`,`Ordner`)),e.push(Re(l.downloads.length,l.search?`Treffer`:`Datei`,l.search?`Treffer`:`Dateien`)),e.join(` · `)}),M={versions:e=>Je(e),"new-version":e=>{G.value=e,K.reset()},edit:e=>Ge(e),remove:e=>qe(e),favorite:e=>N(e)};function N(e){let t=`/downloads/${e.id}/favorit`,n={preserveScroll:!0,preserveState:!0};e.favorite?C.delete(t,n):C.post(t,{},n)}let H=y(l.search);function Be(){C.get(l.folder?`/downloads/ordner/${l.folder.id}`:`/downloads`,H.value.trim()?{q:H.value.trim()}:{},{preserveState:!0})}let U=re({files:[]}),W=y(!1),Ve=y(null);function He(e){if(!T.value||!e.length)return;let t=e.find(e=>e.size>l.maxUploadMb*1024*1024);if(t){ge.error(`„${t.name}“ ist größer als ${l.maxUploadMb} MB.`);return}U.files=e,U.post(`/downloads/ordner/${l.folder.id}/dateien`,{forceFormData:!0,preserveScroll:!0,onError:e=>ge.error(Object.values(e)[0]),onFinish:()=>U.reset()})}function Ue(e){W.value=!1,He([...e.dataTransfer?.files??[]])}let G=y(null),K=re({file:null,note:``});function We(){K.post(`/downloads/${G.value.id}/versionen`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{G.value=null,K.reset()}})}let q=y(null),J=re({title:``,description:``,folder_id:null});function Ge(e){q.value=e,J.defaults({title:e.title,description:e.description??``,folder_id:e.folder_id}),J.reset(),J.clearErrors()}function Ke(){J.put(`/downloads/${q.value.id}`,{preserveScroll:!0,onSuccess:()=>q.value=null})}function qe(e){window.confirm(`„${e.title}“ mit allen Fassungen löschen?`)&&C.delete(`/downloads/${e.id}`,{preserveScroll:!0})}let Y=y(null),X=y([]);async function Je(e){Y.value=e,X.value=[],X.value=(await _e.get(`/downloads/${e.id}/versionen`)).versions}let Z=y(null),Q=re({name:``,parent_id:null});function $(e){Z.value=e,Q.clearErrors(),Q.name=e===`rename`?l.folder.name:``,Q.parent_id=e===`new`?l.folder?.id??null:null}function Xe(){Z.value===`rename`?Q.transform(e=>({name:e.name,description:l.folder.description})).put(`/downloads/ordner/${l.folder.id}`,{onSuccess:()=>Z.value=null}):Q.transform(e=>e).post(`/downloads/ordner`,{onSuccess:()=>Z.value=null})}function Ze(){window.confirm(`Ordner „${l.folder.name}“ löschen?`)&&C.delete(`/downloads/ordner/${l.folder.id}`,{onError:e=>ge.error(Object.values(e)[0])})}return(n,l)=>(m(),v(he,{title:E.value},{default:g(()=>[o(`div`,Pt,[o(`aside`,Ft,[o(`nav`,It,[o(`div`,Lt,[e(r(Se),{class:`size-4 text-brand-text`}),l[22]||=t(` Ablage`,-1)]),o(`div`,Rt,[e(r(w),{href:`/downloads`,class:a([`mb-0.5 flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm`,A.value?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`])},{default:g(()=>[e(r(Ie),{class:`size-4 shrink-0`}),l[23]||=t(` Übersicht `,-1)]),_:1},8,[`class`]),e(Nt,{items:i.tree,"current-id":i.folder?.id??null,"open-ids":te.value},null,8,[`items`,`current-id`,`open-ids`]),i.tree.length?x(``,!0):(m(),s(`p`,zt,`Noch keine Ordner.`))])])]),o(`section`,{class:`relative min-w-0`,onDragover:l[8]||=S(e=>T.value&&(W.value=!0),[`prevent`]),onDrop:S(Ue,[`prevent`])},[e(ke,{title:E.value,breadcrumbs:de.value,description:A.value?`Vorlagen, Anträge und Infomaterial – immer in der aktuellen Fassung.`:i.search?``:i.folder?.description??``},{actions:g(()=>[A.value&&i.canCreateRoot?(m(),v(r(I),{key:0,variant:`outline`,class:`h-10`,onClick:l[0]||=e=>$(`new`)},{default:g(()=>[e(r(Fe)),l[24]||=t(` Ordner anlegen`,-1)]),_:1})):x(``,!0),o(`form`,{class:`relative w-full sm:w-72`,role:`search`,onSubmit:S(Be,[`prevent`])},[e(r(me),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(r(L),{modelValue:H.value,"onUpdate:modelValue":l[1]||=e=>H.value=e,type:`search`,class:`h-10 bg-card pl-9`,placeholder:`Downloads durchsuchen …`,"aria-label":`Downloads durchsuchen`},null,8,[`modelValue`])],32)]),_:1},8,[`title`,`breadcrumbs`,`description`]),A.value?(m(),s(h,{key:0},[i.children.length?(m(),s(`ul`,Bt,[(m(!0),s(h,null,c(i.children,n=>(m(),s(`li`,{key:n.id,class:`group relative flex flex-col rounded-lg border bg-card hover:border-brand-300`},[o(`div`,Vt,[o(`span`,Ht,[e(r(D),{class:`size-5`,"stroke-width":1.75})]),o(`div`,Ut,[e(r(w),{href:`/downloads/ordner/${n.id}`,class:`text-[15px] leading-tight font-semibold after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`]),n.description?(m(),s(`p`,Wt,_(n.description),1)):x(``,!0),n.subfolders.length?(m(),s(`p`,Gt,[(m(!0),s(h,null,c(n.subfolders,(n,i)=>(m(),s(h,{key:n.id},[i?(m(),s(`span`,Kt,` · `)):x(``,!0),e(r(w),{href:`/downloads/ordner/${n.id}`,class:`hover:text-foreground hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`])],64))),128))])):x(``,!0)])]),o(`div`,qt,_(r(ze)(n)),1)]))),128))])):(m(),s(`div`,Jt,[e(Oe,{icon:r(D),title:`Noch keine Downloads`,text:`Sobald Ordner angelegt sind, erscheinen sie hier.`},null,8,[`icon`])])),o(`div`,Yt,[i.recent.length?(m(),s(`div`,Xt,[o(`h2`,Zt,[e(r(pe),{class:`size-4 text-brand-text`}),l[25]||=t(` Zuletzt aktualisiert`,-1)]),e(jt,d({downloads:i.recent,"show-folder":``,compact:``,sortable:!1},ee(M)),null,16,[`downloads`])])):x(``,!0),o(`aside`,Qt,[e(it,{title:`Meine Downloads`,icon:r(ae),downloads:i.favorites,empty:`Mit dem Stern merken Sie sich Dateien – sie erscheinen hier und auf der Startseite.`},null,8,[`icon`,`downloads`]),i.popular.length?(m(),v(it,{key:0,title:`Häufig genutzt`,icon:r(Le),downloads:i.popular,"show-downloads":``},null,8,[`icon`,`downloads`])):x(``,!0)])])],64)):(m(),s(h,{key:1},[o(`div`,$t,[o(`p`,en,_(xe.value),1),o(`div`,tn,[o(`div`,nn,[(m(!0),s(h,null,c([{key:`list`,icon:r(we),label:`Liste`},{key:`grid`,icon:r(se),label:`Kacheln`}],e=>(m(),s(`button`,{key:e.key,type:`button`,class:a([`inline-flex h-8 items-center gap-1.5 rounded px-2.5 text-[13px]`,r(j)===e.key?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":r(j)===e.key,onClick:t=>j.value=e.key},[(m(),v(b(e.icon),{class:`size-4`})),l[26]||=t(),o(`span`,an,_(e.label),1)],10,rn))),128))]),T.value?(m(),v(r(I),{key:0,disabled:r(U).processing,onClick:l[2]||=e=>Ve.value?.click()},{default:g(()=>[r(U).processing?(m(),v(r(ie),{key:0,class:`animate-spin`})):(m(),v(r(Ce),{key:1})),l[27]||=t(` Hochladen `,-1)]),_:1},8,[`disabled`])):x(``,!0),o(`input`,{ref_key:`fileInput`,ref:Ve,type:`file`,multiple:``,class:`hidden`,onChange:l[3]||=e=>{He([...e.target.files]),e.target.value=``}},null,544),T.value?(m(),v(r(ue),{key:1},{default:g(()=>[e(r(ce),{"as-child":``},{default:g(()=>[e(r(I),{variant:`outline`,size:`icon`,"aria-label":`Ordner-Aktionen`},{default:g(()=>[e(r(be))]),_:1})]),_:1}),e(r(fe),{align:`end`},{default:g(()=>[e(r(k),{onSelect:l[4]||=e=>$(`new`)},{default:g(()=>[e(r(Fe)),l[28]||=t(` Unterordner anlegen`,-1)]),_:1}),e(r(k),{onSelect:l[5]||=e=>$(`rename`)},{default:g(()=>[e(r(Te)),l[29]||=t(` Ordner umbenennen`,-1)]),_:1}),i.folder.can_delete?(m(),v(r(le),{key:0})):x(``,!0),i.folder.can_delete?(m(),v(r(k),{key:1,class:`text-destructive`,onSelect:Ze},{default:g(()=>[e(r(Ee)),l[30]||=t(` Ordner löschen`,-1)]),_:1})):x(``,!0)]),_:1})]),_:1})):x(``,!0)])]),r(U).processing&&r(U).progress?(m(),s(`div`,{key:0,class:`mb-3 h-1.5 overflow-hidden rounded-full bg-muted`,role:`progressbar`,"aria-valuenow":r(U).progress.percentage},[o(`div`,{class:`h-full bg-brand transition-all`,style:u({width:`${r(U).progress.percentage}%`})},null,4)],8,on)):x(``,!0),o(`div`,{class:a([`grid items-start gap-5`,{"xl:grid-cols-[minmax(0,1fr)_16rem]":i.folder&&!i.search}])},[o(`div`,sn,[i.children.length&&!i.search||i.downloads.length?(m(),s(h,{key:0},[r(j)===`list`?(m(),v(jt,d({key:0,folders:i.search?[]:i.children,downloads:i.downloads,"can-edit":T.value,"show-folder":!!i.search},ee(M)),null,16,[`folders`,`downloads`,`can-edit`,`show-folder`])):(m(),v(Ye,d({key:1,folders:i.search?[]:i.children,downloads:i.downloads,"can-edit":T.value},ee(M)),null,16,[`folders`,`downloads`,`can-edit`]))],64)):i.search?(m(),s(`div`,cn,[e(Oe,{icon:r(me),title:`Keine Treffer`,text:`Nichts gefunden zu „${i.search}“. Gesucht wird in Titeln, Beschreibungen und Dateinamen.`},null,8,[`icon`,`text`])])):T.value?(m(),s(`button`,{key:2,type:`button`,class:`grid w-full place-items-center rounded-lg border-2 border-dashed bg-card px-6 py-14 text-center hover:border-brand-300`,onClick:l[6]||=e=>Ve.value?.click()},[e(r(Ce),{class:`size-8 text-muted-foreground`,"stroke-width":1.5}),l[31]||=o(`span`,{class:`mt-3 text-sm font-medium`},`Dieser Ordner ist leer`,-1),o(`span`,ln,`Dateien hierher ziehen oder klicken, um sie auszuwählen – bis `+_(i.maxUploadMb)+` MB je Datei.`,1)])):(m(),s(`div`,un,[e(Oe,{icon:r(D),title:`Dieser Ordner ist leer`},null,8,[`icon`])]))]),i.folder&&!i.search?(m(),s(`aside`,dn,[o(`h2`,fn,[e(r(ve),{class:`size-4 text-brand-text`}),l[32]||=t(` Über diesen Ordner`,-1)]),o(`dl`,pn,[o(`div`,mn,[o(`div`,hn,[l[33]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Dateien`,-1),o(`dd`,gn,_(i.downloads.length),1)]),o(`div`,_n,[l[34]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Ordner`,-1),o(`dd`,vn,_(i.children.length),1)])]),oe.value?(m(),s(`div`,yn,[l[35]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Zuletzt geändert`,-1),o(`dd`,null,_(r(O)(oe.value)),1)])):x(``,!0),o(`div`,null,[l[36]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Gepflegt von`,-1),i.folder.editors.length?(m(),s(`dd`,bn,[(m(!0),s(h,null,c(i.folder.editors,e=>(m(),s(`span`,{key:e,class:`rounded bg-brand-soft px-1.5 py-0.5 text-xs text-brand-soft-foreground`},_(e),1))),128))])):(m(),s(`dd`,xn,`Administration`))]),T.value?(m(),s(`div`,Sn,` Dateien einfach in die Liste ziehen. Bis `+_(i.maxUploadMb)+` MB je Datei, ältere Fassungen bleiben erhalten. `,1)):x(``,!0)])])):x(``,!0)],2)],64)),W.value&&T.value?(m(),s(`div`,{key:2,class:`absolute inset-0 z-20 grid place-items-center rounded-lg border-2 border-dashed border-brand-400 bg-brand-soft/90 text-center backdrop-blur-[1px]`,onDragleave:l[7]||=S(e=>W.value=!1,[`self`])},[o(`div`,null,[e(r(Ce),{class:`mx-auto size-8 text-brand-text`}),o(`p`,Cn,`Loslassen, um in „`+_(i.folder.name)+`“ hochzuladen`,1)])],32)):x(``,!0)],32)]),e(r(R),{open:!!G.value,"onUpdate:open":l[12]||=e=>!e&&(G.value=null)},{default:g(()=>[e(r(z),{class:`sm:max-w-md`},{default:g(()=>[e(r(P),null,{default:g(()=>[e(r(B),null,{default:g(()=>[...l[37]||=[t(`Neue Fassung`,-1)]]),_:1}),e(r(De),null,{default:g(()=>[t(`„`+_(G.value?.title)+`“ – die bisherige Fassung bleibt unter „Fassungen“ abrufbar.`,1)]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(We,[`prevent`])},[e(F,{id:`version-file`,label:`Datei`,error:r(K).errors.file},{default:g(()=>[o(`input`,{id:`version-file`,type:`file`,class:`text-sm`,onChange:l[9]||=e=>r(K).file=e.target.files[0]},null,32)]),_:1},8,[`error`]),e(F,{id:`version-note`,label:`Was hat sich geändert? (optional)`,error:r(K).errors.note},{default:g(()=>[e(r(L),{id:`version-note`,modelValue:r(K).note,"onUpdate:modelValue":l[10]||=e=>r(K).note=e,maxlength:`500`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(I),{type:`button`,variant:`outline`,onClick:l[11]||=e=>G.value=null},{default:g(()=>[...l[38]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(I),{type:`submit`,disabled:!r(K).file||r(K).processing},{default:g(()=>[...l[39]||=[t(`Hochladen`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]),e(r(R),{open:!!q.value,"onUpdate:open":l[17]||=e=>!e&&(q.value=null)},{default:g(()=>[e(r(z),{class:`sm:max-w-lg`},{default:g(()=>[e(r(P),null,{default:g(()=>[e(r(B),null,{default:g(()=>[...l[40]||=[t(`Datei bearbeiten`,-1)]]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(Ke,[`prevent`])},[e(F,{id:`doc-title`,label:`Titel`,error:r(J).errors.title},{default:g(()=>[e(r(L),{id:`doc-title`,modelValue:r(J).title,"onUpdate:modelValue":l[13]||=e=>r(J).title=e,maxlength:`250`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(F,{id:`doc-description`,label:`Beschreibung`,error:r(J).errors.description},{default:g(()=>[e(r(Ne),{id:`doc-description`,modelValue:r(J).description,"onUpdate:modelValue":l[14]||=e=>r(J).description=e,rows:`3`,maxlength:`2000`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(F,{id:`doc-folder`,label:`Ordner`,error:r(J).errors.folder_id},{default:g(()=>[e(Ae,{id:`doc-folder`,modelValue:r(J).folder_id,"onUpdate:modelValue":l[15]||=e=>r(J).folder_id=e,options:i.folderOptions},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(I),{type:`button`,variant:`outline`,onClick:l[16]||=e=>q.value=null},{default:g(()=>[...l[41]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(I),{type:`submit`,disabled:r(J).processing},{default:g(()=>[...l[42]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]),e(r(R),{open:!!Y.value,"onUpdate:open":l[18]||=e=>!e&&(Y.value=null)},{default:g(()=>[e(r(z),{class:`sm:max-w-lg`},{default:g(()=>[e(r(P),null,{default:g(()=>[e(r(B),null,{default:g(()=>[...l[43]||=[t(`Fassungen`,-1)]]),_:1}),e(r(De),null,{default:g(()=>[t(_(Y.value?.title),1)]),_:1})]),_:1}),X.value.length?(m(),s(`ul`,En,[(m(!0),s(h,null,c(X.value,n=>(m(),s(`li`,{key:n.version,class:`flex items-center gap-3 px-2 py-2.5`},[o(`span`,Dn,_(n.version),1),o(`div`,On,[o(`p`,kn,[t(_(n.name)+` `,1),n.current?(m(),s(`span`,An,`aktuell`)):x(``,!0)]),o(`p`,jn,[t(_(r(O)(n.created_at)),1),n.uploader?(m(),s(h,{key:0},[t(` · `+_(n.uploader),1)],64)):x(``,!0),t(` · `+_(r(V)(n.size)),1)]),n.note?(m(),s(`p`,Mn,_(n.note),1)):x(``,!0)]),e(r(I),{variant:`ghost`,size:`icon`,"as-child":``,title:`Fassung ${n.version} herunterladen`},{default:g(()=>[o(`a`,{href:n.download_url},[e(r(ye))],8,Nn)]),_:2},1032,[`title`])]))),128))])):(m(),s(`ul`,wn,[(m(),s(h,null,c(3,t=>o(`li`,{key:t,class:`flex items-center gap-3 px-2 py-2.5`},[e(r(je),{class:`size-8`}),o(`div`,Tn,[e(r(je),{class:`h-3.5 w-2/3`}),e(r(je),{class:`h-3 w-1/3`})])])),64))]))]),_:1})]),_:1},8,[`open`]),e(r(R),{open:!!Z.value,"onUpdate:open":l[21]||=e=>!e&&(Z.value=null)},{default:g(()=>[e(r(z),{class:`sm:max-w-md`},{default:g(()=>[e(r(P),null,{default:g(()=>[e(r(B),null,{default:g(()=>[t(_(Z.value===`rename`?`Ordner umbenennen`:i.folder?`Unterordner in „${i.folder.name}“`:`Neuer Ordner`),1)]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(Xe,[`prevent`])},[e(F,{id:`folder-name`,label:`Name`,error:r(Q).errors.name},{default:g(()=>[e(r(L),{id:`folder-name`,modelValue:r(Q).name,"onUpdate:modelValue":l[19]||=e=>r(Q).name=e,maxlength:`120`,autofocus:``},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(I),{type:`button`,variant:`outline`,onClick:l[20]||=e=>Z.value=null},{default:g(()=>[...l[44]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(I),{type:`submit`,disabled:r(Q).processing||!r(Q).name.trim()},{default:g(()=>[...l[45]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{Pn as default}; \ No newline at end of file diff --git a/public/build/assets/Index-PrZevWYb.js b/public/build/assets/Index-PrZevWYb.js new file mode 100644 index 00000000..7819a096 --- /dev/null +++ b/public/build/assets/Index-PrZevWYb.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdfThumbnail-B_ncV1E8.js","assets/app-Dy5FbYkt.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-BXGstlVh.css"])))=>i.map(i=>d[i]); +import{D as e,E as t,Ht as n,On as r,St as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,et as d,g as f,it as p,jt as ee,mt as m,o as h,qt as g,tr as _,v,vn as y,wt as b,xt as te,y as x}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as S}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as C,i as ne,n as w,o as T,r as re}from"./app-Dy5FbYkt.js";import{A as ie,j as E}from"./dist-CleIz2GP.js";import{L as ae,Q as oe,Y as se,Z as D,c as O,d as ce,f as le,h as ue,l as de,m as fe,p as k,tt as pe,z as me}from"./AppIcon-SVMShh8s.js";import{n as A,t as j}from"./arrow-up-B8ttChMk.js";import{t as he}from"./AppLayout-X0y7XSjx.js";import{o as ge,t as _e,x as ve}from"./http-9R3L4KBg.js";import{t as ye}from"./download-cH_7CRKx.js";import{n as be,t as xe}from"./file-plus-corner-InzMgr9W.js";import{t as M}from"./FileIcon-LA1rFyBK.js";import{n as Se,r as Ce,t as we}from"./upload-mORtSS3U.js";import{t as Te}from"./list-DbBAT7EJ.js";import{t as Ee}from"./pencil-line-Cp-EHBoW.js";import{t as De}from"./trash-3XeUxfQJ.js";import{n as Oe,t as N}from"./DialogHeader-UfXa7NWq.js";import{t as P}from"./FormField-BcJMyuzX.js";import{t as ke}from"./EmptyState-Ceq4v8mE.js";import{t as Ae}from"./PageHeader-Dcr3nLVu.js";import{t as F}from"./button-SRYY3-ko.js";import{t as je}from"./NativeSelect-BBbvK4oZ.js";import{t as I}from"./Input-CgjHXzkf.js";import{t as Me}from"./Skeleton-CDbudwoF.js";import{t as Ne}from"./Textarea-DWpyL-nk.js";import{i as L,n as Pe,r as R,t as z}from"./dialog-DrnG5a9r.js";import{t as Fe}from"./useStoredChoice-BAacDiWy.js";var Ie=E({name:`folder-plus`,size:24,node:[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),Le=E({name:`library-big`,size:24,node:[[`rect`,{width:`8`,height:`18`,x:`3`,y:`3`,rx:`1`,key:`oynpb5`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z`,key:`1qboyk`}]]}),Re=E({name:`trending-up`,size:24,node:[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]}),B=e=>e?e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`:`–`,V=(e,t,n)=>`${e.toLocaleString(`de-DE`)} ${e===1?t:n}`;function ze(e){let t=[];return e.folders&&t.push(V(e.folders,`Ordner`,`Ordner`)),e.downloads&&t.push(V(e.downloads,`Datei`,`Dateien`)),t.join(` · `)||`Noch leer`}var H={__name:`DownloadMenu`,props:{download:{type:Object,required:!0},canEdit:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`],setup(n){return(i,a)=>(m(),v(r(ue),null,{default:g(()=>[e(r(ce),{"as-child":``},{default:g(()=>[e(r(F),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${n.download.title}`},{default:g(()=>[e(r(be))]),_:1},8,[`aria-label`])]),_:1}),e(r(fe),{align:`end`,class:`w-60`},{default:g(()=>[e(r(k),{onSelect:a[0]||=e=>i.$emit(`versions`,n.download)},{default:g(()=>[e(r(Se)),a[4]||=t(` Fassungen anzeigen`,-1)]),_:1}),n.canEdit?(m(),s(h,{key:0},[e(r(k),{onSelect:a[1]||=e=>i.$emit(`new-version`,n.download)},{default:g(()=>[e(r(xe)),a[5]||=t(` Neue Fassung hochladen`,-1)]),_:1}),e(r(k),{onSelect:a[2]||=e=>i.$emit(`edit`,n.download)},{default:g(()=>[e(r(Ee)),a[6]||=t(` Bearbeiten oder verschieben`,-1)]),_:1}),e(r(le)),e(r(k),{class:`text-destructive`,onSelect:a[3]||=e=>i.$emit(`remove`,n.download)},{default:g(()=>[e(r(De)),a[7]||=t(` Löschen`,-1)]),_:1})],64)):x(``,!0)]),_:1})]),_:1}))}},Be=[`aria-pressed`,`title`,`aria-label`],U={__name:`FavoriteButton`,props:{download:{type:Object,required:!0}},emits:[`toggle`],setup(t){return(n,i)=>(m(),s(`button`,{type:`button`,class:a([`grid size-8 place-items-center rounded-md hover:bg-accent`,t.download.favorite?`text-amber-500`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":t.download.favorite,title:t.download.favorite?`Aus „Meine Downloads“ entfernen`:`In „Meine Downloads“ merken`,"aria-label":t.download.favorite?`${t.download.title} nicht mehr merken`:`${t.download.title} merken`,onClick:i[0]||=e=>n.$emit(`toggle`,t.download)},[e(r(ae),{class:a([`size-4`,{"fill-current":t.download.favorite}])},null,8,[`class`])],10,Be))}},W=[`src`],G={key:1,class:`grid size-full place-items-center`},Ve={__name:`DownloadThumb`,props:{download:{type:Object,required:!0}},setup(t){let n=t,r=y(null),i=y(null),a=y(!1),o;async function c(){if(n.download.preview_kind===`image`){i.value=n.download.preview_url;return}try{let{pdfThumbnail:e}=await T(async()=>{let{pdfThumbnail:e}=await import(`./pdfThumbnail-B_ncV1E8.js`);return{pdfThumbnail:e}},__vite__mapDeps([0,1,2,3,4]));i.value=await e(n.download.preview_url)}catch{a.value=!0}}return l(()=>{n.download.preview_url&&typeof IntersectionObserver<`u`&&(o=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(o.disconnect(),c())},{rootMargin:`200px`}),o.observe(r.value))}),p(()=>o?.disconnect()),(n,o)=>(m(),s(`div`,{ref_key:`root`,ref:r,class:`relative h-32 overflow-hidden rounded-t-lg border-b bg-muted/40`},[i.value&&!a.value?(m(),s(`img`,{key:0,src:i.value,alt:``,class:`size-full object-cover object-top`,loading:`lazy`,onError:o[0]||=e=>a.value=!0},null,40,W)):(m(),s(`div`,G,[e(M,{extension:t.download.extension,size:`lg`},null,8,[`extension`])])),te(n.$slots,`default`)],512))}},He={class:`grid gap-6`},K={key:0,class:`grid grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))] gap-3`},q={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},Ue={class:`min-w-0`},J={class:`block truncate text-xs text-muted-foreground`},Y={key:1,class:`grid grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))] gap-3`},We={key:0,class:`absolute bottom-2 left-2 rounded bg-card px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground ring-1 ring-border`},Ge={key:1,class:`absolute right-2 bottom-2 rounded bg-card px-1.5 py-0.5 text-[10px] font-bold tracking-wide text-muted-foreground uppercase ring-1 ring-border`},Ke={class:`flex min-h-0 flex-1 flex-col p-3`},X=[`href`,`title`],Z={key:1,class:`line-clamp-2 text-sm leading-snug font-medium`},qe={class:`mt-auto pt-2 text-xs text-muted-foreground`},Q={key:0,class:`absolute top-2 left-2 z-10 text-amber-500`},$={class:`absolute top-1.5 right-1.5 z-10 flex gap-0.5 rounded-md bg-card/90 opacity-0 shadow-xs ring-1 ring-border transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 max-md:opacity-100`},Je=[`href`,`aria-label`],Ye={__name:`DownloadGrid`,props:{folders:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`,`favorite`],setup(n){return(i,a)=>(m(),s(`div`,He,[n.folders.length?(m(),s(`ul`,K,[(m(!0),s(h,null,c(n.folders,n=>(m(),s(`li`,{key:n.id,class:`group relative flex items-center gap-3 rounded-lg border bg-card p-3 hover:border-brand-300 hover:shadow-xs`},[o(`span`,q,[e(r(D),{class:`size-5`,"stroke-width":1.75})]),o(`span`,Ue,[e(r(w),{href:`/downloads/ordner/${n.id}`,class:`block truncate text-sm font-medium after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`]),o(`span`,J,_(r(ze)(n)),1)])]))),128))])):x(``,!0),n.downloads.length?(m(),s(`ul`,Y,[(m(!0),s(h,null,c(n.downloads,t=>(m(),s(`li`,{key:t.id,class:`group relative flex flex-col rounded-lg border bg-card hover:border-brand-300 hover:shadow-xs`},[e(Ve,{download:t},{default:g(()=>[t.version>1?(m(),s(`span`,We,`Fassung `+_(t.version),1)):x(``,!0),t.preview_url?(m(),s(`span`,Ge,_(t.extension),1)):x(``,!0)]),_:2},1032,[`download`]),o(`div`,Ke,[t.download_url?(m(),s(`a`,{key:0,href:t.download_url,class:`line-clamp-2 text-sm leading-snug font-medium after:absolute after:inset-0 hover:underline`,title:t.name},_(t.title),9,X)):(m(),s(`span`,Z,_(t.title),1)),o(`p`,qe,_(r(de)(t.updated_at))+` · `+_(r(B)(t.size)),1)]),t.favorite?(m(),s(`div`,Q,[e(r(ae),{class:`size-4 fill-current`})])):x(``,!0),o(`div`,$,[e(U,{download:t,onToggle:a[0]||=e=>i.$emit(`favorite`,e)},null,8,[`download`]),t.download_url?(m(),v(r(F),{key:0,variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${t.title} herunterladen`},{default:g(()=>[o(`a`,{href:t.download_url,"aria-label":`${t.title} herunterladen`},[e(r(ye))],8,Je)]),_:2},1032,[`title`])):x(``,!0),e(H,{download:t,"can-edit":n.canEdit,onVersions:a[1]||=e=>i.$emit(`versions`,e),onNewVersion:a[2]||=e=>i.$emit(`new-version`,e),onEdit:a[3]||=e=>i.$emit(`edit`,e),onRemove:a[4]||=e=>i.$emit(`remove`,e)},null,8,[`download`,`can-edit`])])]))),128))])):x(``,!0)]))}},Xe={class:`rounded-lg border bg-card`},Ze={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Qe={key:0,class:`p-2`},$e=[`href`],et={class:`min-w-0 flex-1`},tt={class:`block truncate text-[13px] font-medium`},nt={class:`block truncate text-xs text-muted-foreground`},rt={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},it={__name:`DownloadMiniList`,props:{title:{type:String,required:!0},icon:{type:[Object,Function],required:!0},downloads:{type:Array,required:!0},empty:{type:String,default:``},showDownloads:{type:Boolean,default:!1}},setup(n){return(r,i)=>(m(),s(`section`,Xe,[o(`h2`,Ze,[(m(),v(b(n.icon),{class:`size-4 text-brand-text`})),t(` `+_(n.title),1)]),n.downloads.length?(m(),s(`ul`,Qe,[(m(!0),s(h,null,c(n.downloads,r=>(m(),s(`li`,{key:r.id},[o(`a`,{href:r.download_url,class:`flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(M,{extension:r.extension,size:`sm`},null,8,[`extension`]),o(`span`,et,[o(`span`,tt,_(r.title),1),o(`span`,nt,[t(_(r.folder_name),1),n.showDownloads?(m(),s(h,{key:0},[t(` · `+_(r.download_count.toLocaleString(`de-DE`))+`× geladen`,1)],64)):x(``,!0)])])],8,$e)]))),128))])):(m(),s(`p`,rt,_(n.empty),1))]))}},at={class:`overflow-hidden rounded-lg border bg-card`},ot={key:1},st={key:2},ct={key:4},lt={key:1,class:`text-right`},ut={class:`divide-y`},dt={class:`flex min-w-0 items-center gap-3`},ft={class:`grid size-8 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},pt={class:`min-w-0`},mt={class:`truncate text-xs text-muted-foreground`},ht={key:0,class:`hidden md:block`},gt={key:1,class:`hidden md:block`},_t={class:`flex min-w-0 items-center gap-3`},vt={class:`min-w-0`},yt={class:`flex min-w-0 items-baseline gap-2`},bt=[`href`,`title`],xt={key:1,class:`truncate text-sm font-medium`},St={class:`hidden shrink-0 text-[11px] font-medium text-muted-foreground uppercase sm:inline`},Ct={key:0,class:`truncate text-xs text-muted-foreground`},wt={class:`truncate text-xs text-muted-foreground md:hidden`},Tt={class:`hidden min-w-0 text-[13px] md:block`},Et={class:`truncate leading-tight`},Dt={class:`truncate text-xs leading-tight text-muted-foreground`},Ot={key:1,class:`hidden text-right text-[13px] text-muted-foreground tabular-nums md:block`},kt={class:`absolute top-1/2 right-2 flex -translate-y-1/2 items-center justify-end gap-0.5 md:static md:translate-y-0`},At=[`href`,`aria-label`],jt={__name:`DownloadTable`,props:{folders:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!1},showFolder:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},compact:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`,`favorite`],setup(n){let i=n,l=y({key:`title`,dir:1});function u(e){l.value=l.value.key===e?{key:e,dir:-l.value.dir}:{key:e,dir:e===`title`?1:-1}}let d=f(()=>{if(!i.sortable)return i.downloads;let{key:e,dir:t}=l.value,n=t=>e===`title`?t.title.toLocaleLowerCase(`de`):e===`size`?t.size:t.updated_at??``;return[...i.downloads].sort((e,r)=>n(e)>n(r)?t:n(e)i.compact?i.showFolder?`md:grid-cols-[minmax(0,1fr)_8rem_9.5rem_6.5rem]`:`md:grid-cols-[minmax(0,1fr)_9.5rem_6.5rem]`:i.showFolder?`md:grid-cols-[minmax(0,1fr)_12rem_11rem_5.5rem_6.5rem]`:`md:grid-cols-[minmax(0,1fr)_11rem_5.5rem_6.5rem]`);return(i,f)=>(m(),s(`div`,at,[o(`div`,{class:a([`hidden border-b bg-muted/40 px-4 py-2 text-xs font-medium text-muted-foreground md:grid md:items-center md:gap-4`,p.value]),role:`row`},[n.sortable?(m(),s(`button`,{key:0,type:`button`,class:`inline-flex items-center gap-1 text-left hover:text-foreground`,onClick:f[0]||=e=>u(`title`)},[f[8]||=t(` Name `,-1),l.value.key===`title`?(m(),v(b(l.value.dir>0?r(j):r(A)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,ot,`Name`)),n.showFolder?(m(),s(`span`,st,`Ordner`)):x(``,!0),n.sortable?(m(),s(`button`,{key:3,type:`button`,class:`inline-flex items-center gap-1 text-left hover:text-foreground`,onClick:f[1]||=e=>u(`updated_at`)},[f[9]||=t(` Geändert `,-1),l.value.key===`updated_at`?(m(),v(b(l.value.dir>0?r(j):r(A)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,ct,`Geändert`)),n.compact?x(``,!0):(m(),s(h,{key:5},[n.sortable?(m(),s(`button`,{key:0,type:`button`,class:`inline-flex items-center justify-end gap-1 hover:text-foreground`,onClick:f[2]||=e=>u(`size`)},[f[10]||=t(` Größe `,-1),l.value.key===`size`?(m(),v(b(l.value.dir>0?r(j):r(A)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,lt,`Größe`))],64)),f[11]||=o(`span`,{class:`sr-only`},`Aktionen`,-1)],2),o(`ul`,ut,[(m(!0),s(h,null,c(n.folders,i=>(m(),s(`li`,{key:`f${i.id}`,class:a([`group relative grid items-center gap-x-4 px-4 py-2 hover:bg-accent/60`,p.value])},[o(`div`,dt,[o(`span`,ft,[e(r(D),{class:`size-4`,"stroke-width":1.75})]),o(`div`,pt,[e(r(w),{href:`/downloads/ordner/${i.id}`,class:`block truncate text-sm font-medium after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(i.name),1)]),_:2},1032,[`href`]),o(`p`,mt,_(r(ze)(i)),1)])]),n.showFolder?(m(),s(`span`,ht)):x(``,!0),f[12]||=o(`span`,{class:`hidden text-[13px] text-muted-foreground md:block`},`–`,-1),n.compact?x(``,!0):(m(),s(`span`,gt)),f[13]||=o(`span`,{class:`hidden md:block`},null,-1)],2))),128)),(m(!0),s(h,null,c(d.value,c=>(m(),s(`li`,{key:c.id,class:a([`group relative grid items-center gap-x-4 py-2 pr-32 pl-4 hover:bg-accent/60 md:pr-4`,p.value])},[o(`div`,_t,[e(M,{extension:c.extension,size:`sm`},null,8,[`extension`]),o(`div`,vt,[o(`div`,yt,[c.download_url?(m(),s(`a`,{key:0,href:c.download_url,class:`truncate text-sm font-medium hover:underline`,title:c.name},_(c.title),9,bt)):(m(),s(`span`,xt,_(c.title),1)),o(`span`,St,_(c.extension),1)]),c.description?(m(),s(`p`,Ct,_(c.description),1)):x(``,!0),o(`p`,wt,[t(_(r(O)(c.updated_at))+` · `+_(r(B)(c.size)),1),n.showFolder&&c.folder_name?(m(),s(h,{key:0},[t(` · `+_(c.folder_name),1)],64)):x(``,!0)])])]),n.showFolder?(m(),v(r(w),{key:0,href:`/downloads/ordner/${c.folder_id}`,class:`hidden truncate text-[13px] text-muted-foreground hover:text-foreground hover:underline md:block`},{default:g(()=>[t(_(c.folder_name),1)]),_:2},1032,[`href`])):x(``,!0),o(`div`,Tt,[o(`div`,Et,_(r(O)(c.updated_at)),1),o(`div`,Dt,[c.updated_by?(m(),s(h,{key:0},[t(_(c.updated_by),1)],64)):x(``,!0),c.version>1?(m(),s(h,{key:1},[t(_(c.updated_by?` · `:``)+`Fassung `+_(c.version),1)],64)):x(``,!0)])]),n.compact?x(``,!0):(m(),s(`span`,Ot,_(r(B)(c.size)),1)),o(`div`,kt,[e(U,{download:c,onToggle:f[3]||=e=>i.$emit(`favorite`,e)},null,8,[`download`]),c.download_url?(m(),v(r(F),{key:0,variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${c.title} herunterladen`},{default:g(()=>[o(`a`,{href:c.download_url,"aria-label":`${c.title} herunterladen`},[e(r(ye))],8,At)]),_:2},1032,[`title`])):x(``,!0),e(H,{download:c,"can-edit":n.canEdit,onVersions:f[4]||=e=>i.$emit(`versions`,e),onNewVersion:f[5]||=e=>i.$emit(`new-version`,e),onEdit:f[6]||=e=>i.$emit(`edit`,e),onRemove:f[7]||=e=>i.$emit(`remove`,e)},null,8,[`download`,`can-edit`])])],2))),128))])]))}},Mt={class:`truncate`},Nt={__name:`FolderTreeNav`,props:{items:{type:Array,required:!0},currentId:{type:Number,default:null},openIds:{type:Array,default:()=>[]},depth:{type:Number,default:0}},setup(t){return(n,l)=>{let u=i(`FolderTreeNav`,!0);return m(),s(`ul`,{class:a([`grid gap-0.5`,t.depth?`ml-3 border-l pl-2`:``])},[(m(!0),s(h,null,c(t.items,n=>(m(),s(`li`,{key:n.id},[e(r(w),{href:`/downloads/ordner/${n.id}`,class:a([`flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm`,n.id===t.currentId?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`]),"preserve-scroll":``},{default:g(()=>[n.id===t.currentId||t.openIds.includes(n.id)?(m(),v(r(oe),{key:0,class:`size-4 shrink-0`})):(m(),v(r(D),{key:1,class:`size-4 shrink-0`})),o(`span`,Mt,_(n.name),1)]),_:2},1032,[`href`,`class`]),n.children.length&&(n.id===t.currentId||t.openIds.includes(n.id))?(m(),v(u,{key:0,items:n.children,"current-id":t.currentId,"open-ids":t.openIds,depth:t.depth+1},null,8,[`items`,`current-id`,`open-ids`,`depth`])):x(``,!0)]))),128))],2)}}},Pt={class:`grid gap-6 lg:grid-cols-[240px_minmax(0,1fr)]`},Ft={class:`hidden lg:block`},It={class:`sticky top-20 rounded-lg border bg-card`,"aria-label":`Ordner`},Lt={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Rt={class:`max-h-[calc(100vh-12rem)] overflow-y-auto p-2`},zt={key:0,class:`px-2.5 py-2 text-[13px] text-muted-foreground`},Bt={key:0,class:`mb-7 grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-4`},Vt={class:`flex items-start gap-3 p-4`},Ht={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand text-white`},Ut={class:`min-w-0`},Wt={key:0,class:`mt-0.5 line-clamp-2 text-[13px] leading-snug text-muted-foreground`},Gt={key:1,class:`relative z-10 mt-1 truncate text-xs text-muted-foreground`},Kt={key:0},qt={class:`mt-auto border-t bg-muted/30 px-4 py-2 text-xs font-medium text-brand-text`},Jt={key:1,class:`mb-5 rounded-lg border bg-card`},Yt={class:`grid items-start gap-5 xl:grid-cols-[minmax(0,1fr)_18rem]`},Xt={key:0,class:`min-w-0`},Zt={class:`mb-3 flex items-center gap-2 text-sm font-semibold`},Qt={class:`grid gap-5 xl:pt-8`},$t={class:`mb-4 flex flex-wrap items-center justify-between gap-3`},en={class:`text-[13px] text-muted-foreground`},tn={class:`flex items-center gap-2`},nn={class:`inline-flex rounded-md border bg-card p-0.5`,role:`group`,"aria-label":`Ansicht`},rn=[`aria-pressed`,`onClick`],an={class:`hidden sm:inline`},on=[`aria-valuenow`],sn={class:`min-w-0`},cn={key:1,class:`rounded-lg border bg-card`},ln={class:`mt-1 text-[13px] text-muted-foreground`},un={key:3,class:`rounded-lg border bg-card`},dn={key:0,class:`hidden overflow-hidden rounded-lg border bg-card text-[13px] xl:block`},fn={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},pn={class:`grid gap-3 p-4`},mn={class:`grid grid-cols-2 gap-2`},hn={class:`rounded-md bg-muted/50 px-3 py-2`},gn={class:`text-lg font-semibold tabular-nums`},_n={class:`rounded-md bg-muted/50 px-3 py-2`},vn={class:`text-lg font-semibold tabular-nums`},yn={key:0},bn={key:0,class:`mt-1 flex flex-wrap gap-1`},xn={key:1},Sn={key:1,class:`rounded-md border border-dashed px-3 py-2 text-xs text-muted-foreground`},Cn={class:`mt-2 text-sm font-semibold text-brand-soft-foreground`},wn={key:0,class:`-mx-2 divide-y`,"aria-busy":`true`},Tn={class:`grid flex-1 gap-1.5`},En={key:1,class:`-mx-2 divide-y`},Dn={class:`grid size-8 place-items-center rounded-md bg-muted text-xs font-semibold`},On={class:`min-w-0 flex-1`},kn={class:`truncate text-sm`},An={key:0,class:`ml-1 rounded bg-brand-soft px-1.5 py-0.5 text-[11px] text-brand-soft-foreground`},jn={class:`text-xs text-muted-foreground`},Mn={key:0,class:`text-xs`},Nn=[`href`],Pn={__name:`Index`,props:{tree:{type:Array,required:!0},folder:{type:Object,default:null},breadcrumbs:{type:Array,default:()=>[]},children:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},recent:{type:Array,default:()=>[]},favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]},search:{type:String,default:``},canCreateRoot:{type:Boolean,default:!1},folderOptions:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20}},setup(i){let l=i,p=ne();n(()=>p.props.flash.status,e=>e&&ge.success(e),{immediate:!0});let te=f(()=>l.breadcrumbs.map(e=>e.id)),T=f(()=>!!l.folder?.can_edit),E=f(()=>l.search?`Suche: ${l.search}`:l.folder?.name??`Downloads`),oe=f(()=>l.downloads.map(e=>e.updated_at).filter(Boolean).sort().at(-1)??null),de=f(()=>A.value?[]:[{label:`Downloads`,href:`/downloads`},...l.breadcrumbs.map(e=>({label:e.name,href:`/downloads/ordner/${e.id}`}))]),A=f(()=>!l.folder&&!l.search),j=Fe(`downloads.view`,`list`,[`list`,`grid`]),xe=f(()=>{let e=[];return l.children.length&&!l.search&&e.push(V(l.children.length,`Ordner`,`Ordner`)),e.push(V(l.downloads.length,l.search?`Treffer`:`Datei`,l.search?`Treffer`:`Dateien`)),e.join(` · `)}),M={versions:e=>qe(e),"new-version":e=>{K.value=e,q.reset()},edit:e=>We(e),remove:e=>Ke(e),favorite:e=>Se(e)};function Se(e){let t=`/downloads/${e.id}/favorit`,n={preserveScroll:!0,preserveState:!0};e.favorite?C.delete(t,n):C.post(t,{},n)}let H=y(l.search);function Be(){C.get(l.folder?`/downloads/ordner/${l.folder.id}`:`/downloads`,H.value.trim()?{q:H.value.trim()}:{},{preserveState:!0})}let U=re({files:[]}),W=y(!1),G=y(null);function Ve(e){if(!T.value||!e.length)return;let t=e.find(e=>e.size>l.maxUploadMb*1024*1024);if(t){ge.error(`„${t.name}“ ist größer als ${l.maxUploadMb} MB.`);return}U.files=e,U.post(`/downloads/ordner/${l.folder.id}/dateien`,{forceFormData:!0,preserveScroll:!0,onError:e=>ge.error(Object.values(e)[0]),onFinish:()=>U.reset()})}function He(e){W.value=!1,Ve([...e.dataTransfer?.files??[]])}let K=y(null),q=re({file:null,note:``});function Ue(){q.post(`/downloads/${K.value.id}/versionen`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{K.value=null,q.reset()}})}let J=y(null),Y=re({title:``,description:``,folder_id:null});function We(e){J.value=e,Y.defaults({title:e.title,description:e.description??``,folder_id:e.folder_id}),Y.reset(),Y.clearErrors()}function Ge(){Y.put(`/downloads/${J.value.id}`,{preserveScroll:!0,onSuccess:()=>J.value=null})}function Ke(e){window.confirm(`„${e.title}“ mit allen Fassungen löschen?`)&&C.delete(`/downloads/${e.id}`,{preserveScroll:!0})}let X=y(null),Z=y([]);async function qe(e){X.value=e,Z.value=[],Z.value=(await _e.get(`/downloads/${e.id}/versionen`)).versions}let Q=y(null),$=re({name:``,parent_id:null});function Je(e){Q.value=e,$.clearErrors(),$.name=e===`rename`?l.folder.name:``,$.parent_id=e===`new`?l.folder?.id??null:null}function Xe(){Q.value===`rename`?$.transform(e=>({name:e.name,description:l.folder.description})).put(`/downloads/ordner/${l.folder.id}`,{onSuccess:()=>Q.value=null}):$.transform(e=>e).post(`/downloads/ordner`,{onSuccess:()=>Q.value=null})}function Ze(){window.confirm(`Ordner „${l.folder.name}“ löschen?`)&&C.delete(`/downloads/ordner/${l.folder.id}`,{onError:e=>ge.error(Object.values(e)[0])})}return(n,l)=>(m(),v(he,{title:E.value},{default:g(()=>[o(`div`,Pt,[o(`aside`,Ft,[o(`nav`,It,[o(`div`,Lt,[e(r(Ce),{class:`size-4 text-brand-text`}),l[22]||=t(` Ablage`,-1)]),o(`div`,Rt,[e(r(w),{href:`/downloads`,class:a([`mb-0.5 flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm`,A.value?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`])},{default:g(()=>[e(r(Le),{class:`size-4 shrink-0`}),l[23]||=t(` Übersicht `,-1)]),_:1},8,[`class`]),e(Nt,{items:i.tree,"current-id":i.folder?.id??null,"open-ids":te.value},null,8,[`items`,`current-id`,`open-ids`]),i.tree.length?x(``,!0):(m(),s(`p`,zt,`Noch keine Ordner.`))])])]),o(`section`,{class:`relative min-w-0`,onDragover:l[8]||=S(e=>T.value&&(W.value=!0),[`prevent`]),onDrop:S(He,[`prevent`])},[e(Ae,{title:E.value,breadcrumbs:de.value,description:A.value?`Vorlagen, Anträge und Infomaterial – immer in der aktuellen Fassung.`:i.search?``:i.folder?.description??``},{actions:g(()=>[A.value&&i.canCreateRoot?(m(),v(r(F),{key:0,variant:`outline`,class:`h-10`,onClick:l[0]||=e=>Je(`new`)},{default:g(()=>[e(r(Ie)),l[24]||=t(` Ordner anlegen`,-1)]),_:1})):x(``,!0),o(`form`,{class:`relative w-full sm:w-72`,role:`search`,onSubmit:S(Be,[`prevent`])},[e(r(me),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(r(I),{modelValue:H.value,"onUpdate:modelValue":l[1]||=e=>H.value=e,type:`search`,class:`h-10 bg-card pl-9`,placeholder:`Downloads durchsuchen …`,"aria-label":`Downloads durchsuchen`},null,8,[`modelValue`])],32)]),_:1},8,[`title`,`breadcrumbs`,`description`]),A.value?(m(),s(h,{key:0},[i.children.length?(m(),s(`ul`,Bt,[(m(!0),s(h,null,c(i.children,n=>(m(),s(`li`,{key:n.id,class:`group relative flex flex-col rounded-lg border bg-card hover:border-brand-300`},[o(`div`,Vt,[o(`span`,Ht,[e(r(D),{class:`size-5`,"stroke-width":1.75})]),o(`div`,Ut,[e(r(w),{href:`/downloads/ordner/${n.id}`,class:`text-[15px] leading-tight font-semibold after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`]),n.description?(m(),s(`p`,Wt,_(n.description),1)):x(``,!0),n.subfolders.length?(m(),s(`p`,Gt,[(m(!0),s(h,null,c(n.subfolders,(n,i)=>(m(),s(h,{key:n.id},[i?(m(),s(`span`,Kt,` · `)):x(``,!0),e(r(w),{href:`/downloads/ordner/${n.id}`,class:`hover:text-foreground hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`])],64))),128))])):x(``,!0)])]),o(`div`,qt,_(r(ze)(n)),1)]))),128))])):(m(),s(`div`,Jt,[e(ke,{icon:r(D),title:`Noch keine Downloads`,text:`Sobald Ordner angelegt sind, erscheinen sie hier.`},null,8,[`icon`])])),o(`div`,Yt,[i.recent.length?(m(),s(`div`,Xt,[o(`h2`,Zt,[e(r(pe),{class:`size-4 text-brand-text`}),l[25]||=t(` Zuletzt aktualisiert`,-1)]),e(jt,d({downloads:i.recent,"show-folder":``,compact:``,sortable:!1},ee(M)),null,16,[`downloads`])])):x(``,!0),o(`aside`,Qt,[e(it,{title:`Meine Downloads`,icon:r(ae),downloads:i.favorites,empty:`Mit dem Stern merken Sie sich Dateien – sie erscheinen hier und auf der Startseite.`},null,8,[`icon`,`downloads`]),i.popular.length?(m(),v(it,{key:0,title:`Häufig genutzt`,icon:r(Re),downloads:i.popular,"show-downloads":``},null,8,[`icon`,`downloads`])):x(``,!0)])])],64)):(m(),s(h,{key:1},[o(`div`,$t,[o(`p`,en,_(xe.value),1),o(`div`,tn,[o(`div`,nn,[(m(!0),s(h,null,c([{key:`list`,icon:r(Te),label:`Liste`},{key:`grid`,icon:r(se),label:`Kacheln`}],e=>(m(),s(`button`,{key:e.key,type:`button`,class:a([`inline-flex h-8 items-center gap-1.5 rounded px-2.5 text-[13px]`,r(j)===e.key?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":r(j)===e.key,onClick:t=>j.value=e.key},[(m(),v(b(e.icon),{class:`size-4`})),l[26]||=t(),o(`span`,an,_(e.label),1)],10,rn))),128))]),T.value?(m(),v(r(F),{key:0,disabled:r(U).processing,onClick:l[2]||=e=>G.value?.click()},{default:g(()=>[r(U).processing?(m(),v(r(ie),{key:0,class:`animate-spin`})):(m(),v(r(we),{key:1})),l[27]||=t(` Hochladen `,-1)]),_:1},8,[`disabled`])):x(``,!0),o(`input`,{ref_key:`fileInput`,ref:G,type:`file`,multiple:``,class:`hidden`,onChange:l[3]||=e=>{Ve([...e.target.files]),e.target.value=``}},null,544),T.value?(m(),v(r(ue),{key:1},{default:g(()=>[e(r(ce),{"as-child":``},{default:g(()=>[e(r(F),{variant:`outline`,size:`icon`,"aria-label":`Ordner-Aktionen`},{default:g(()=>[e(r(be))]),_:1})]),_:1}),e(r(fe),{align:`end`},{default:g(()=>[e(r(k),{onSelect:l[4]||=e=>Je(`new`)},{default:g(()=>[e(r(Ie)),l[28]||=t(` Unterordner anlegen`,-1)]),_:1}),e(r(k),{onSelect:l[5]||=e=>Je(`rename`)},{default:g(()=>[e(r(Ee)),l[29]||=t(` Ordner umbenennen`,-1)]),_:1}),i.folder.can_delete?(m(),v(r(le),{key:0})):x(``,!0),i.folder.can_delete?(m(),v(r(k),{key:1,class:`text-destructive`,onSelect:Ze},{default:g(()=>[e(r(De)),l[30]||=t(` Ordner löschen`,-1)]),_:1})):x(``,!0)]),_:1})]),_:1})):x(``,!0)])]),r(U).processing&&r(U).progress?(m(),s(`div`,{key:0,class:`mb-3 h-1.5 overflow-hidden rounded-full bg-muted`,role:`progressbar`,"aria-valuenow":r(U).progress.percentage},[o(`div`,{class:`h-full bg-brand transition-all`,style:u({width:`${r(U).progress.percentage}%`})},null,4)],8,on)):x(``,!0),o(`div`,{class:a([`grid items-start gap-5`,{"xl:grid-cols-[minmax(0,1fr)_16rem]":i.folder&&!i.search}])},[o(`div`,sn,[i.children.length&&!i.search||i.downloads.length?(m(),s(h,{key:0},[r(j)===`list`?(m(),v(jt,d({key:0,folders:i.search?[]:i.children,downloads:i.downloads,"can-edit":T.value,"show-folder":!!i.search},ee(M)),null,16,[`folders`,`downloads`,`can-edit`,`show-folder`])):(m(),v(Ye,d({key:1,folders:i.search?[]:i.children,downloads:i.downloads,"can-edit":T.value},ee(M)),null,16,[`folders`,`downloads`,`can-edit`]))],64)):i.search?(m(),s(`div`,cn,[e(ke,{icon:r(me),title:`Keine Treffer`,text:`Nichts gefunden zu „${i.search}“. Gesucht wird in Titeln, Beschreibungen und Dateinamen.`},null,8,[`icon`,`text`])])):T.value?(m(),s(`button`,{key:2,type:`button`,class:`grid w-full place-items-center rounded-lg border-2 border-dashed bg-card px-6 py-14 text-center hover:border-brand-300`,onClick:l[6]||=e=>G.value?.click()},[e(r(we),{class:`size-8 text-muted-foreground`,"stroke-width":1.5}),l[31]||=o(`span`,{class:`mt-3 text-sm font-medium`},`Dieser Ordner ist leer`,-1),o(`span`,ln,`Dateien hierher ziehen oder klicken, um sie auszuwählen – bis `+_(i.maxUploadMb)+` MB je Datei.`,1)])):(m(),s(`div`,un,[e(ke,{icon:r(D),title:`Dieser Ordner ist leer`},null,8,[`icon`])]))]),i.folder&&!i.search?(m(),s(`aside`,dn,[o(`h2`,fn,[e(r(ve),{class:`size-4 text-brand-text`}),l[32]||=t(` Über diesen Ordner`,-1)]),o(`dl`,pn,[o(`div`,mn,[o(`div`,hn,[l[33]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Dateien`,-1),o(`dd`,gn,_(i.downloads.length),1)]),o(`div`,_n,[l[34]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Ordner`,-1),o(`dd`,vn,_(i.children.length),1)])]),oe.value?(m(),s(`div`,yn,[l[35]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Zuletzt geändert`,-1),o(`dd`,null,_(r(O)(oe.value)),1)])):x(``,!0),o(`div`,null,[l[36]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Gepflegt von`,-1),i.folder.editors.length?(m(),s(`dd`,bn,[(m(!0),s(h,null,c(i.folder.editors,e=>(m(),s(`span`,{key:e,class:`rounded bg-brand-soft px-1.5 py-0.5 text-xs text-brand-soft-foreground`},_(e),1))),128))])):(m(),s(`dd`,xn,`Administration`))]),T.value?(m(),s(`div`,Sn,` Dateien einfach in die Liste ziehen. Bis `+_(i.maxUploadMb)+` MB je Datei, ältere Fassungen bleiben erhalten. `,1)):x(``,!0)])])):x(``,!0)],2)],64)),W.value&&T.value?(m(),s(`div`,{key:2,class:`absolute inset-0 z-20 grid place-items-center rounded-lg border-2 border-dashed border-brand-400 bg-brand-soft/90 text-center backdrop-blur-[1px]`,onDragleave:l[7]||=S(e=>W.value=!1,[`self`])},[o(`div`,null,[e(r(we),{class:`mx-auto size-8 text-brand-text`}),o(`p`,Cn,`Loslassen, um in „`+_(i.folder.name)+`“ hochzuladen`,1)])],32)):x(``,!0)],32)]),e(r(L),{open:!!K.value,"onUpdate:open":l[12]||=e=>!e&&(K.value=null)},{default:g(()=>[e(r(R),{class:`sm:max-w-md`},{default:g(()=>[e(r(N),null,{default:g(()=>[e(r(z),null,{default:g(()=>[...l[37]||=[t(`Neue Fassung`,-1)]]),_:1}),e(r(Oe),null,{default:g(()=>[t(`„`+_(K.value?.title)+`“ – die bisherige Fassung bleibt unter „Fassungen“ abrufbar.`,1)]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(Ue,[`prevent`])},[e(P,{id:`version-file`,label:`Datei`,error:r(q).errors.file},{default:g(()=>[o(`input`,{id:`version-file`,type:`file`,class:`text-sm`,onChange:l[9]||=e=>r(q).file=e.target.files[0]},null,32)]),_:1},8,[`error`]),e(P,{id:`version-note`,label:`Was hat sich geändert? (optional)`,error:r(q).errors.note},{default:g(()=>[e(r(I),{id:`version-note`,modelValue:r(q).note,"onUpdate:modelValue":l[10]||=e=>r(q).note=e,maxlength:`500`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(F),{type:`button`,variant:`outline`,onClick:l[11]||=e=>K.value=null},{default:g(()=>[...l[38]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(F),{type:`submit`,disabled:!r(q).file||r(q).processing},{default:g(()=>[...l[39]||=[t(`Hochladen`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]),e(r(L),{open:!!J.value,"onUpdate:open":l[17]||=e=>!e&&(J.value=null)},{default:g(()=>[e(r(R),{class:`sm:max-w-lg`},{default:g(()=>[e(r(N),null,{default:g(()=>[e(r(z),null,{default:g(()=>[...l[40]||=[t(`Datei bearbeiten`,-1)]]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(Ge,[`prevent`])},[e(P,{id:`doc-title`,label:`Titel`,error:r(Y).errors.title},{default:g(()=>[e(r(I),{id:`doc-title`,modelValue:r(Y).title,"onUpdate:modelValue":l[13]||=e=>r(Y).title=e,maxlength:`250`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(P,{id:`doc-description`,label:`Beschreibung`,error:r(Y).errors.description},{default:g(()=>[e(r(Ne),{id:`doc-description`,modelValue:r(Y).description,"onUpdate:modelValue":l[14]||=e=>r(Y).description=e,rows:`3`,maxlength:`2000`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(P,{id:`doc-folder`,label:`Ordner`,error:r(Y).errors.folder_id},{default:g(()=>[e(je,{id:`doc-folder`,modelValue:r(Y).folder_id,"onUpdate:modelValue":l[15]||=e=>r(Y).folder_id=e,options:i.folderOptions},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(F),{type:`button`,variant:`outline`,onClick:l[16]||=e=>J.value=null},{default:g(()=>[...l[41]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(F),{type:`submit`,disabled:r(Y).processing},{default:g(()=>[...l[42]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]),e(r(L),{open:!!X.value,"onUpdate:open":l[18]||=e=>!e&&(X.value=null)},{default:g(()=>[e(r(R),{class:`sm:max-w-lg`},{default:g(()=>[e(r(N),null,{default:g(()=>[e(r(z),null,{default:g(()=>[...l[43]||=[t(`Fassungen`,-1)]]),_:1}),e(r(Oe),null,{default:g(()=>[t(_(X.value?.title),1)]),_:1})]),_:1}),Z.value.length?(m(),s(`ul`,En,[(m(!0),s(h,null,c(Z.value,n=>(m(),s(`li`,{key:n.version,class:`flex items-center gap-3 px-2 py-2.5`},[o(`span`,Dn,_(n.version),1),o(`div`,On,[o(`p`,kn,[t(_(n.name)+` `,1),n.current?(m(),s(`span`,An,`aktuell`)):x(``,!0)]),o(`p`,jn,[t(_(r(O)(n.created_at)),1),n.uploader?(m(),s(h,{key:0},[t(` · `+_(n.uploader),1)],64)):x(``,!0),t(` · `+_(r(B)(n.size)),1)]),n.note?(m(),s(`p`,Mn,_(n.note),1)):x(``,!0)]),e(r(F),{variant:`ghost`,size:`icon`,"as-child":``,title:`Fassung ${n.version} herunterladen`},{default:g(()=>[o(`a`,{href:n.download_url},[e(r(ye))],8,Nn)]),_:2},1032,[`title`])]))),128))])):(m(),s(`ul`,wn,[(m(),s(h,null,c(3,t=>o(`li`,{key:t,class:`flex items-center gap-3 px-2 py-2.5`},[e(r(Me),{class:`size-8`}),o(`div`,Tn,[e(r(Me),{class:`h-3.5 w-2/3`}),e(r(Me),{class:`h-3 w-1/3`})])])),64))]))]),_:1})]),_:1},8,[`open`]),e(r(L),{open:!!Q.value,"onUpdate:open":l[21]||=e=>!e&&(Q.value=null)},{default:g(()=>[e(r(R),{class:`sm:max-w-md`},{default:g(()=>[e(r(N),null,{default:g(()=>[e(r(z),null,{default:g(()=>[t(_(Q.value===`rename`?`Ordner umbenennen`:i.folder?`Unterordner in „${i.folder.name}“`:`Neuer Ordner`),1)]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(Xe,[`prevent`])},[e(P,{id:`folder-name`,label:`Name`,error:r($).errors.name},{default:g(()=>[e(r(I),{id:`folder-name`,modelValue:r($).name,"onUpdate:modelValue":l[19]||=e=>r($).name=e,maxlength:`120`,autofocus:``},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(F),{type:`button`,variant:`outline`,onClick:l[20]||=e=>Q.value=null},{default:g(()=>[...l[44]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(F),{type:`submit`,disabled:r($).processing||!r($).name.trim()},{default:g(()=>[...l[45]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{Pn as default}; \ No newline at end of file diff --git a/public/build/assets/Index-Dm9p24qX.js b/public/build/assets/Index-pznOfjNj.js similarity index 88% rename from public/build/assets/Index-Dm9p24qX.js rename to public/build/assets/Index-pznOfjNj.js index e822b079..075e2058 100644 --- a/public/build/assets/Index-Dm9p24qX.js +++ b/public/build/assets/Index-pznOfjNj.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as d}from"./app-CIvn5Z1l.js";import{a as f,nt as p}from"./AppIcon-BVHFLm12.js";import{t as m}from"./AppLayout-Cy38OwfZ.js";import{t as h}from"./chevron-right-DR4LjgDm.js";import{t as g}from"./EmptyState-Ceq4v8mE.js";import{t as _}from"./PageHeader-CWL5ThBH.js";var v={key:0,class:`grid gap-4 md:grid-cols-2 xl:grid-cols-3`},y={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},b={class:`min-w-0 flex-1`},x={class:`block font-semibold group-hover:underline`},S={key:0,class:`mt-1 line-clamp-2 block text-sm text-muted-foreground`},C={key:1,class:`mt-2 block text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{forms:{type:Array,required:!0}},setup(T){return(E,D)=>(a(),l(m,{title:`Formulare`},{default:s(()=>[e(_,{title:`Formulare`,description:`Anträge, Anmeldungen und Meldungen – direkt online ausfüllen.`}),T.forms.length?(a(),r(`div`,v,[(a(!0),r(o,null,i(T.forms,i=>(a(),l(t(d),{key:i.id,href:i.url,class:`group flex gap-4 rounded-lg border bg-card p-5 hover:border-brand-300`},{default:s(()=>[n(`span`,y,[e(t(p),{class:`size-5`})]),n(`span`,b,[n(`span`,x,c(i.title),1),i.description?(a(),r(`span`,S,c(i.description),1)):u(``,!0),i.closes_at?(a(),r(`span`,C,`Bis `+c(t(f)(i.closes_at)),1)):u(``,!0)]),e(t(h),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(g,{icon:t(p),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as d}from"./app-Dy5FbYkt.js";import{a as f,nt as p}from"./AppIcon-SVMShh8s.js";import{t as m}from"./AppLayout-X0y7XSjx.js";import{t as h}from"./chevron-right-DR4LjgDm.js";import{t as g}from"./EmptyState-Ceq4v8mE.js";import{t as _}from"./PageHeader-Dcr3nLVu.js";var v={key:0,class:`grid gap-4 md:grid-cols-2 xl:grid-cols-3`},y={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},b={class:`min-w-0 flex-1`},x={class:`block font-semibold group-hover:underline`},S={key:0,class:`mt-1 line-clamp-2 block text-sm text-muted-foreground`},C={key:1,class:`mt-2 block text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{forms:{type:Array,required:!0}},setup(T){return(E,D)=>(a(),l(m,{title:`Formulare`},{default:s(()=>[e(_,{title:`Formulare`,description:`Anträge, Anmeldungen und Meldungen – direkt online ausfüllen.`}),T.forms.length?(a(),r(`div`,v,[(a(!0),r(o,null,i(T.forms,i=>(a(),l(t(d),{key:i.id,href:i.url,class:`group flex gap-4 rounded-lg border bg-card p-5 hover:border-brand-300`},{default:s(()=>[n(`span`,y,[e(t(p),{class:`size-5`})]),n(`span`,b,[n(`span`,x,c(i.title),1),i.description?(a(),r(`span`,S,c(i.description),1)):u(``,!0),i.closes_at?(a(),r(`span`,C,`Bis `+c(t(f)(i.closes_at)),1)):u(``,!0)]),e(t(h),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(g,{icon:t(p),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default}; \ No newline at end of file diff --git a/public/build/assets/Latest-CZZxoFB3.js b/public/build/assets/Latest-DyQlf2fO.js similarity index 82% rename from public/build/assets/Latest-CZZxoFB3.js rename to public/build/assets/Latest-DyQlf2fO.js index 582c5b62..be36c0aa 100644 --- a/public/build/assets/Latest-CZZxoFB3.js +++ b/public/build/assets/Latest-DyQlf2fO.js @@ -1 +1 @@ -import{On as e,Zn as t,b as n,bt as r,mt as i,o as a,qt as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{B as l}from"./AppIcon-BVHFLm12.js";import{t as u}from"./EmptyState-Ceq4v8mE.js";import{t as d}from"./Panel-xPHuwfuu.js";import{t as f}from"./NewsListItem-DmR535f5.js";var p={key:0,href:`/admin/neuigkeiten/neu`,class:`mt-4 text-sm font-medium text-brand-text hover:underline`},m={__name:`Latest`,props:{posts:{type:Array,required:!0},canWrite:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},setup(m){return(h,g)=>(i(),s(d,{title:`Neuigkeiten`,"action-label":`Alle anzeigen`,"action-href":`/neuigkeiten`},{default:o(()=>[m.posts.length?(i(),n(`div`,{key:0,class:t([`-my-3 divide-y`,{"sm:grid sm:grid-cols-2 sm:gap-x-6 sm:divide-y-0":m.wide}])},[(i(!0),n(a,null,r(m.posts,e=>(i(),s(f,{key:e.id,post:e},null,8,[`post`]))),128))],2)):(i(),s(u,{key:1,icon:e(l),title:`Noch keine Neuigkeiten`,text:`Sobald Beiträge veröffentlicht sind, erscheinen sie hier.`},{default:o(()=>[m.canWrite?(i(),n(`a`,p,`Ersten Beitrag schreiben`)):c(``,!0)]),_:1},8,[`icon`]))]),_:1}))}};export{m as default}; \ No newline at end of file +import{On as e,Zn as t,b as n,bt as r,mt as i,o as a,qt as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{B as l}from"./AppIcon-SVMShh8s.js";import{t as u}from"./EmptyState-Ceq4v8mE.js";import{t as d}from"./Panel-DF-wChKt.js";import{t as f}from"./NewsListItem-Bak5OcQP.js";var p={key:0,href:`/admin/neuigkeiten/neu`,class:`mt-4 text-sm font-medium text-brand-text hover:underline`},m={__name:`Latest`,props:{posts:{type:Array,required:!0},canWrite:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},setup(m){return(h,g)=>(i(),s(d,{title:`Neuigkeiten`,"action-label":`Alle anzeigen`,"action-href":`/neuigkeiten`},{default:o(()=>[m.posts.length?(i(),n(`div`,{key:0,class:t([`-my-3 divide-y`,{"sm:grid sm:grid-cols-2 sm:gap-x-6 sm:divide-y-0":m.wide}])},[(i(!0),n(a,null,r(m.posts,e=>(i(),s(f,{key:e.id,post:e},null,8,[`post`]))),128))],2)):(i(),s(u,{key:1,icon:e(l),title:`Noch keine Neuigkeiten`,text:`Sobald Beiträge veröffentlicht sind, erscheinen sie hier.`},{default:o(()=>[m.canWrite?(i(),n(`a`,p,`Ersten Beitrag schreiben`)):c(``,!0)]),_:1},8,[`icon`]))]),_:1}))}};export{m as default}; \ No newline at end of file diff --git a/public/build/assets/LatestNews-D_wqcUcS.js b/public/build/assets/LatestNews-C_qKJews.js similarity index 90% rename from public/build/assets/LatestNews-D_wqcUcS.js rename to public/build/assets/LatestNews-C_qKJews.js index bc916208..2dc8ab02 100644 --- a/public/build/assets/LatestNews-D_wqcUcS.js +++ b/public/build/assets/LatestNews-C_qKJews.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CIvn5Z1l.js";import{t as p}from"./chevron-right-DR4LjgDm.js";import{t as m}from"./NewsCard-CWMFENyt.js";import{t as h}from"./NewsListItem-DmR535f5.js";var g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={key:1,class:`divide-y rounded-lg border bg-card px-4`},y={key:2,class:`grid gap-5 @xl:grid-cols-2 @4xl:grid-cols-3`},b={key:3,class:`text-sm text-muted-foreground`},x={__name:`LatestNews`,props:{block:{type:Object,required:!0}},setup(x){return(S,C)=>(o(),i(`section`,null,[x.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(x.block.data.title),1),x.block.props?.more_url?(o(),u(n(f),{key:0,href:x.block.props.more_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[C[0]||=t(` Alle anzeigen `,-1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])):d(``,!0),x.block.data.layout===`list`?(o(),i(`div`,v,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(h,{key:e.id,post:e},null,8,[`post`]))),128))])):(o(),i(`div`,y,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(m,{key:e.id,post:e},null,8,[`post`]))),128))])),(x.block.props?.posts??[]).length?d(``,!0):(o(),i(`p`,b,`Keine Beiträge.`))]))}};export{x as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Dy5FbYkt.js";import{t as p}from"./chevron-right-DR4LjgDm.js";import{t as m}from"./NewsCard-BnbSPjUt.js";import{t as h}from"./NewsListItem-Bak5OcQP.js";var g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={key:1,class:`divide-y rounded-lg border bg-card px-4`},y={key:2,class:`grid gap-5 @xl:grid-cols-2 @4xl:grid-cols-3`},b={key:3,class:`text-sm text-muted-foreground`},x={__name:`LatestNews`,props:{block:{type:Object,required:!0}},setup(x){return(S,C)=>(o(),i(`section`,null,[x.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(x.block.data.title),1),x.block.props?.more_url?(o(),u(n(f),{key:0,href:x.block.props.more_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[C[0]||=t(` Alle anzeigen `,-1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])):d(``,!0),x.block.data.layout===`list`?(o(),i(`div`,v,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(h,{key:e.id,post:e},null,8,[`post`]))),128))])):(o(),i(`div`,y,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(m,{key:e.id,post:e},null,8,[`post`]))),128))])),(x.block.props?.posts??[]).length?d(``,!0):(o(),i(`p`,b,`Keine Beiträge.`))]))}};export{x as default}; \ No newline at end of file diff --git a/public/build/assets/Login-iLM3GgD3.js b/public/build/assets/Login-ER-PAXOz.js similarity index 97% rename from public/build/assets/Login-iLM3GgD3.js rename to public/build/assets/Login-ER-PAXOz.js index 2fcded47..4c2a9c79 100644 --- a/public/build/assets/Login-iLM3GgD3.js +++ b/public/build/assets/Login-ER-PAXOz.js @@ -1 +1 @@ -import{d as e,i as t,l as n,n as r}from"./usePrimitiveElement-BOk1PFhF.js";import{$n as i,D as a,E as o,Nt as s,On as c,_ as l,b as u,bt as d,et as f,g as p,k as m,mt as h,o as g,qt as _,tr as v,v as y,vn as b,wt as x,xt as S,y as C,z as w}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as T,w as E}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as D,r as O}from"./app-CIvn5Z1l.js";import{A as k,S as A,d as j,h as M,o as N,p as P}from"./dist-CleIz2GP.js";import{c as F,l as ee,s as te}from"./RovingFocusGroup-NIVUjBd5.js";import{t as I}from"./check-DGi8MtvT.js";import{t as L}from"./eye-off-DWbaLHNt.js";import{t as R}from"./eye-DcTo_il4.js";import{n as z,t as B}from"./isValueEqualOrExist-BDaOcy4r.js";import{n as V,r as H,t as U}from"./VisuallyHiddenInput-_rInYvRq.js";import{t as W}from"./RovingFocusItem-DX1SmLL8.js";import{n as G,t as K}from"./FormField-BcJMyuzX.js";import{t as q}from"./button-SRYY3-ko.js";import{t as J}from"./Input-CgjHXzkf.js";import{t as Y}from"./GuestLayout-DAusAB2K.js";var[X,ne]=e(`CheckboxGroupRoot`);function Z(e){return e===`indeterminate`}function Q(e){return Z(e)?`indeterminate`:e?`checked`:`unchecked`}var[re,ie]=e(`CheckboxRoot`),ae=m({inheritAttrs:!1,__name:`CheckboxRoot`,props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:`on`},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=e,i=t,{forwardRef:a,currentElement:o}=M(),l=X(null),d=A(r,`modelValue`,i,{defaultValue:r.defaultValue??r.falseValue,passive:r.modelValue===void 0}),m=p(()=>l?.disabled.value||r.disabled),v=p(()=>z(d.value,r.trueValue)),b=p(()=>n(l?.modelValue.value)?d.value===`indeterminate`?`indeterminate`:v.value:B(l.modelValue.value,r.value));function w(){if(n(l?.modelValue.value))d.value===`indeterminate`?d.value=r.trueValue:d.value=v.value?r.falseValue:r.trueValue;else{let e=[...l.modelValue.value||[]];if(B(e,r.value)){let t=e.findIndex(e=>z(e,r.value));e.splice(t,1)}else e.push(r.value);l.modelValue.value=e}}let D=H(o),O=V(),k=s(),j=p(()=>{if(!k[`aria-label`])return r.id&&o.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0});return ie({disabled:m,state:b}),(e,t)=>(h(),u(g,null,[(h(),y(x(c(l)?.rovingFocus.value?c(W):c(P)),f({...e.$attrs,...c(O)},{id:e.id,ref:c(a),role:`checkbox`,"as-child":e.asChild,as:e.as,type:e.as===`button`?`button`:void 0,"aria-checked":c(Z)(b.value)?`mixed`:b.value,"aria-required":e.required,"aria-label":e.$attrs[`aria-label`]||j.value,"data-state":c(Q)(b.value),"data-disabled":m.value?``:void 0,disabled:m.value,focusable:c(l)?.rovingFocus.value?!m.value:void 0,onKeydown:T(E(()=>{},[`prevent`]),[`enter`]),onClick:w}),{default:_(()=>[S(e.$slots,`default`,{modelValue:c(d),state:b.value})]),_:3},16,[`id`,`as-child`,`as`,`type`,`aria-checked`,`aria-required`,`aria-label`,`data-state`,`data-disabled`,`disabled`,`focusable`,`onKeydown`])),c(D)&&e.name&&!c(l)?(h(),y(c(U),f({key:0,type:`checkbox`,checked:!!b.value,name:e.name,value:e.value,disabled:m.value,required:e.required},c(O)),null,16,[`checked`,`name`,`value`,`disabled`,`required`])):C(`v-if`,!0)],64))}}),oe=m({__name:`CheckboxIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=M(),n=re();return(e,i)=>(h(),y(c(r),{present:e.forceMount||c(Z)(c(n).state.value)||c(n).state.value===!0},{default:_(()=>[a(c(P),f({ref:c(t),"data-state":c(Q)(c(n).state.value),"data-disabled":c(n).disabled.value?``:void 0,style:{pointerEvents:`none`},"as-child":e.asChild,as:e.as},e.$attrs),{default:_(()=>[S(e.$slots,`default`)]),_:3},16,[`data-state`,`data-disabled`,`as-child`,`as`])]),_:3},8,[`present`]))}}),$=m({__name:`Checkbox`,props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},value:{},id:{},trueValue:{},falseValue:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,o=n,s=N(r,`class`),l=t(s,o);return(e,t)=>(h(),y(c(ae),f({"data-slot":`checkbox`},c(l),{class:c(j)(`peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50`,r.class)}),{default:_(t=>[a(c(oe),{"data-slot":`checkbox-indicator`,class:`grid place-content-center text-current transition-none`},{default:_(()=>[S(e.$slots,`default`,i(w(t)),()=>[a(c(I),{class:`size-3.5`})])]),_:2},1024)]),_:3},16,[`class`]))}}),se={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},ce={key:1,class:`mb-6 rounded-md border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm text-destructive`,role:`alert`},le={key:2,class:`mb-6 grid gap-3`},ue=[`href`],de={key:0,class:`size-[18px]`,viewBox:`0 0 21 21`,"aria-hidden":`true`},fe={class:`relative`},pe=[`aria-label`],me={class:`flex items-center justify-between`},he={__name:`Login`,props:{canResetPassword:{type:Boolean,default:!1},status:{type:String,default:null},providers:{type:Array,default:()=>[]},identityError:{type:String,default:null},preview:{type:Boolean,default:!1}},setup(e){let t=e,n=b(!1),r=O({email:``,password:``,remember:!1});function i(){t.preview||r.post(`/login`,{onFinish:()=>r.reset(`password`)})}return(t,s)=>(h(),y(Y,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:_(()=>[e.status?(h(),u(`div`,se,v(e.status),1)):C(``,!0),e.identityError?(h(),u(`div`,ce,v(e.identityError),1)):C(``,!0),e.providers.length?(h(),u(`div`,le,[(h(!0),u(g,null,d(e.providers,e=>(h(),u(`a`,{key:e.slug,href:`/auth/${e.slug}/redirect`,class:`inline-flex h-11 items-center justify-center gap-3 rounded-md border border-input bg-card px-4 text-sm font-medium shadow-xs transition-colors hover:bg-accent`},[e.type===`entra`?(h(),u(`svg`,de,[...s[4]||=[l(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),l(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),l(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),l(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(h(),y(c(ee),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(h(),y(c(te),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(h(),y(c(F),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),o(` `+v(e.label),1)],8,ue))),128)),s[5]||=l(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[l(`span`,{class:`h-px flex-1 bg-border`}),o(` oder mit E-Mail und Passwort `),l(`span`,{class:`h-px flex-1 bg-border`})],-1)])):C(``,!0),l(`form`,{class:`grid gap-5`,onSubmit:E(i,[`prevent`])},[a(K,{id:`email`,label:`E-Mail-Adresse`,error:c(r).errors.email},{default:_(()=>[a(c(J),{id:`email`,modelValue:c(r).email,"onUpdate:modelValue":s[0]||=e=>c(r).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!c(r).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),a(K,{id:`password`,label:`Passwort`,error:c(r).errors.password},{default:_(()=>[l(`div`,fe,[a(c(J),{id:`password`,modelValue:c(r).password,"onUpdate:modelValue":s[1]||=e=>c(r).password=e,type:n.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!c(r).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),l(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":n.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:s[2]||=e=>n.value=!n.value},[n.value?(h(),y(c(L),{key:0,class:`size-4`})):(h(),y(c(R),{key:1,class:`size-4`}))],8,pe)])]),_:1},8,[`error`]),l(`div`,me,[a(c(G),{class:`flex items-center gap-2 text-sm font-normal`},{default:_(()=>[a(c($),{modelValue:c(r).remember,"onUpdate:modelValue":s[3]||=e=>c(r).remember=e},null,8,[`modelValue`]),s[6]||=o(` Angemeldet bleiben `,-1)]),_:1}),e.canResetPassword?(h(),y(c(D),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:_(()=>[...s[7]||=[o(` Passwort vergessen? `,-1)]]),_:1})):C(``,!0)]),a(c(q),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:c(r).processing},{default:_(()=>[c(r).processing?(h(),y(c(k),{key:0,class:`animate-spin`})):C(``,!0),s[8]||=o(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{he as default}; \ No newline at end of file +import{d as e,i as t,l as n,n as r}from"./usePrimitiveElement-BOk1PFhF.js";import{$n as i,D as a,E as o,Nt as s,On as c,_ as l,b as u,bt as d,et as f,g as p,k as m,mt as h,o as g,qt as _,tr as v,v as y,vn as b,wt as x,xt as S,y as C,z as w}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as T,w as E}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as D,r as O}from"./app-Dy5FbYkt.js";import{A as k,S as A,d as j,h as M,o as N,p as P}from"./dist-CleIz2GP.js";import{c as F,l as ee,s as te}from"./RovingFocusGroup-NIVUjBd5.js";import{t as I}from"./check-DGi8MtvT.js";import{t as L}from"./eye-off-DWbaLHNt.js";import{t as R}from"./eye-DcTo_il4.js";import{n as z,t as B}from"./isValueEqualOrExist-BDaOcy4r.js";import{n as V,r as H,t as U}from"./VisuallyHiddenInput-_rInYvRq.js";import{t as W}from"./RovingFocusItem-DX1SmLL8.js";import{n as G,t as K}from"./FormField-BcJMyuzX.js";import{t as q}from"./button-SRYY3-ko.js";import{t as J}from"./Input-CgjHXzkf.js";import{t as Y}from"./GuestLayout-DxnnRWk6.js";var[X,ne]=e(`CheckboxGroupRoot`);function Z(e){return e===`indeterminate`}function Q(e){return Z(e)?`indeterminate`:e?`checked`:`unchecked`}var[re,ie]=e(`CheckboxRoot`),ae=m({inheritAttrs:!1,__name:`CheckboxRoot`,props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:`on`},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=e,i=t,{forwardRef:a,currentElement:o}=M(),l=X(null),d=A(r,`modelValue`,i,{defaultValue:r.defaultValue??r.falseValue,passive:r.modelValue===void 0}),m=p(()=>l?.disabled.value||r.disabled),v=p(()=>z(d.value,r.trueValue)),b=p(()=>n(l?.modelValue.value)?d.value===`indeterminate`?`indeterminate`:v.value:B(l.modelValue.value,r.value));function w(){if(n(l?.modelValue.value))d.value===`indeterminate`?d.value=r.trueValue:d.value=v.value?r.falseValue:r.trueValue;else{let e=[...l.modelValue.value||[]];if(B(e,r.value)){let t=e.findIndex(e=>z(e,r.value));e.splice(t,1)}else e.push(r.value);l.modelValue.value=e}}let D=H(o),O=V(),k=s(),j=p(()=>{if(!k[`aria-label`])return r.id&&o.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0});return ie({disabled:m,state:b}),(e,t)=>(h(),u(g,null,[(h(),y(x(c(l)?.rovingFocus.value?c(W):c(P)),f({...e.$attrs,...c(O)},{id:e.id,ref:c(a),role:`checkbox`,"as-child":e.asChild,as:e.as,type:e.as===`button`?`button`:void 0,"aria-checked":c(Z)(b.value)?`mixed`:b.value,"aria-required":e.required,"aria-label":e.$attrs[`aria-label`]||j.value,"data-state":c(Q)(b.value),"data-disabled":m.value?``:void 0,disabled:m.value,focusable:c(l)?.rovingFocus.value?!m.value:void 0,onKeydown:T(E(()=>{},[`prevent`]),[`enter`]),onClick:w}),{default:_(()=>[S(e.$slots,`default`,{modelValue:c(d),state:b.value})]),_:3},16,[`id`,`as-child`,`as`,`type`,`aria-checked`,`aria-required`,`aria-label`,`data-state`,`data-disabled`,`disabled`,`focusable`,`onKeydown`])),c(D)&&e.name&&!c(l)?(h(),y(c(U),f({key:0,type:`checkbox`,checked:!!b.value,name:e.name,value:e.value,disabled:m.value,required:e.required},c(O)),null,16,[`checked`,`name`,`value`,`disabled`,`required`])):C(`v-if`,!0)],64))}}),oe=m({__name:`CheckboxIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=M(),n=re();return(e,i)=>(h(),y(c(r),{present:e.forceMount||c(Z)(c(n).state.value)||c(n).state.value===!0},{default:_(()=>[a(c(P),f({ref:c(t),"data-state":c(Q)(c(n).state.value),"data-disabled":c(n).disabled.value?``:void 0,style:{pointerEvents:`none`},"as-child":e.asChild,as:e.as},e.$attrs),{default:_(()=>[S(e.$slots,`default`)]),_:3},16,[`data-state`,`data-disabled`,`as-child`,`as`])]),_:3},8,[`present`]))}}),$=m({__name:`Checkbox`,props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},value:{},id:{},trueValue:{},falseValue:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,o=n,s=N(r,`class`),l=t(s,o);return(e,t)=>(h(),y(c(ae),f({"data-slot":`checkbox`},c(l),{class:c(j)(`peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50`,r.class)}),{default:_(t=>[a(c(oe),{"data-slot":`checkbox-indicator`,class:`grid place-content-center text-current transition-none`},{default:_(()=>[S(e.$slots,`default`,i(w(t)),()=>[a(c(I),{class:`size-3.5`})])]),_:2},1024)]),_:3},16,[`class`]))}}),se={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},ce={key:1,class:`mb-6 rounded-md border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm text-destructive`,role:`alert`},le={key:2,class:`mb-6 grid gap-3`},ue=[`href`],de={key:0,class:`size-[18px]`,viewBox:`0 0 21 21`,"aria-hidden":`true`},fe={class:`relative`},pe=[`aria-label`],me={class:`flex items-center justify-between`},he={__name:`Login`,props:{canResetPassword:{type:Boolean,default:!1},status:{type:String,default:null},providers:{type:Array,default:()=>[]},identityError:{type:String,default:null},preview:{type:Boolean,default:!1}},setup(e){let t=e,n=b(!1),r=O({email:``,password:``,remember:!1});function i(){t.preview||r.post(`/login`,{onFinish:()=>r.reset(`password`)})}return(t,s)=>(h(),y(Y,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:_(()=>[e.status?(h(),u(`div`,se,v(e.status),1)):C(``,!0),e.identityError?(h(),u(`div`,ce,v(e.identityError),1)):C(``,!0),e.providers.length?(h(),u(`div`,le,[(h(!0),u(g,null,d(e.providers,e=>(h(),u(`a`,{key:e.slug,href:`/auth/${e.slug}/redirect`,class:`inline-flex h-11 items-center justify-center gap-3 rounded-md border border-input bg-card px-4 text-sm font-medium shadow-xs transition-colors hover:bg-accent`},[e.type===`entra`?(h(),u(`svg`,de,[...s[4]||=[l(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),l(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),l(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),l(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(h(),y(c(ee),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(h(),y(c(te),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(h(),y(c(F),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),o(` `+v(e.label),1)],8,ue))),128)),s[5]||=l(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[l(`span`,{class:`h-px flex-1 bg-border`}),o(` oder mit E-Mail und Passwort `),l(`span`,{class:`h-px flex-1 bg-border`})],-1)])):C(``,!0),l(`form`,{class:`grid gap-5`,onSubmit:E(i,[`prevent`])},[a(K,{id:`email`,label:`E-Mail-Adresse`,error:c(r).errors.email},{default:_(()=>[a(c(J),{id:`email`,modelValue:c(r).email,"onUpdate:modelValue":s[0]||=e=>c(r).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!c(r).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),a(K,{id:`password`,label:`Passwort`,error:c(r).errors.password},{default:_(()=>[l(`div`,fe,[a(c(J),{id:`password`,modelValue:c(r).password,"onUpdate:modelValue":s[1]||=e=>c(r).password=e,type:n.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!c(r).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),l(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":n.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:s[2]||=e=>n.value=!n.value},[n.value?(h(),y(c(L),{key:0,class:`size-4`})):(h(),y(c(R),{key:1,class:`size-4`}))],8,pe)])]),_:1},8,[`error`]),l(`div`,me,[a(c(G),{class:`flex items-center gap-2 text-sm font-normal`},{default:_(()=>[a(c($),{modelValue:c(r).remember,"onUpdate:modelValue":s[3]||=e=>c(r).remember=e},null,8,[`modelValue`]),s[6]||=o(` Angemeldet bleiben `,-1)]),_:1}),e.canResetPassword?(h(),y(c(D),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:_(()=>[...s[7]||=[o(` Passwort vergessen? `,-1)]]),_:1})):C(``,!0)]),a(c(q),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:c(r).processing},{default:_(()=>[c(r).processing?(h(),y(c(k),{key:0,class:`animate-spin`})):C(``,!0),s[8]||=o(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{he as default}; \ No newline at end of file diff --git a/public/build/assets/MyDownloads-C3KvafhB.js b/public/build/assets/MyDownloads-CCohgsaT.js similarity index 85% rename from public/build/assets/MyDownloads-C3KvafhB.js rename to public/build/assets/MyDownloads-CCohgsaT.js index 49a30b7c..e00f59ce 100644 --- a/public/build/assets/MyDownloads-C3KvafhB.js +++ b/public/build/assets/MyDownloads-CCohgsaT.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{L as p}from"./AppIcon-BVHFLm12.js";import{t as m}from"./FileIcon-BHQ0ftg2.js";import{t as h}from"./Panel-xPHuwfuu.js";var g={key:0,class:`-my-1.5 grid gap-0.5`},_=[`href`],v={class:`min-w-0 flex-1 truncate text-sm`},y={__name:`MyDownloads`,props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]}},setup(y){let b=y,x=b.favorites.length?b.favorites:b.popular;return(b,S)=>(s(),d(h,{title:y.favorites.length?`Meine Downloads`:`Häufig genutzt`,"action-label":`Alle Downloads`,"action-href":`/downloads`},{default:l(()=>[n(x).length?(s(),a(`ul`,g,[(s(!0),a(c,null,o(n(x),t=>(s(),a(`li`,{key:t.id},[i(`a`,{href:t.download_url,class:`-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(m,{extension:t.extension,size:`sm`},null,8,[`extension`]),i(`span`,v,u(t.title),1)],8,_)]))),128))])):f(``,!0),y.favorites.length?f(``,!0):(s(),a(`p`,{key:1,class:r([`text-[13px] text-muted-foreground`,{"mt-3 border-t pt-3":n(x).length}])},[e(n(p),{class:`-mt-0.5 mr-1 inline size-3.5`}),S[0]||=t(`Mit dem Stern unter „Downloads“ merken Sie sich Dateien für diese Kachel. `,-1)],2))]),_:1},8,[`title`]))}};export{y as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{L as p}from"./AppIcon-SVMShh8s.js";import{t as m}from"./FileIcon-LA1rFyBK.js";import{t as h}from"./Panel-DF-wChKt.js";var g={key:0,class:`-my-1.5 grid gap-0.5`},_=[`href`],v={class:`min-w-0 flex-1 truncate text-sm`},y={__name:`MyDownloads`,props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]}},setup(y){let b=y,x=b.favorites.length?b.favorites:b.popular;return(b,S)=>(s(),d(h,{title:y.favorites.length?`Meine Downloads`:`Häufig genutzt`,"action-label":`Alle Downloads`,"action-href":`/downloads`},{default:l(()=>[n(x).length?(s(),a(`ul`,g,[(s(!0),a(c,null,o(n(x),t=>(s(),a(`li`,{key:t.id},[i(`a`,{href:t.download_url,class:`-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(m,{extension:t.extension,size:`sm`},null,8,[`extension`]),i(`span`,v,u(t.title),1)],8,_)]))),128))])):f(``,!0),y.favorites.length?f(``,!0):(s(),a(`p`,{key:1,class:r([`text-[13px] text-muted-foreground`,{"mt-3 border-t pt-3":n(x).length}])},[e(n(p),{class:`-mt-0.5 mr-1 inline size-3.5`}),S[0]||=t(`Mit dem Stern unter „Downloads“ merken Sie sich Dateien für diese Kachel. `,-1)],2))]),_:1},8,[`title`]))}};export{y as default}; \ No newline at end of file diff --git a/public/build/assets/NewColleagues-DMxyPHNm.js b/public/build/assets/NewColleagues-DQMglEr-.js similarity index 87% rename from public/build/assets/NewColleagues-DMxyPHNm.js rename to public/build/assets/NewColleagues-DQMglEr-.js index ead4e3d3..9da4b4c1 100644 --- a/public/build/assets/NewColleagues-DMxyPHNm.js +++ b/public/build/assets/NewColleagues-DQMglEr-.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-CIvn5Z1l.js";import{b as d}from"./AppIcon-BVHFLm12.js";import{t as f}from"./Panel-xPHuwfuu.js";var p={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},m={class:`min-w-0`},h={class:`truncate text-sm font-semibold`},g={class:`truncate text-[13px] text-muted-foreground`},_={__name:`NewColleagues`,props:{people:{type:Array,required:!0}},setup(_){return(v,y)=>(a(),l(f,{title:`Neu im Team`,"action-label":`Alle Personen`,"action-href":`/personen`},{default:s(()=>[n(`ul`,p,[(a(!0),r(o,null,i(_.people,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:`/personen/${i.id}`,class:`flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent`},{default:s(()=>[e(d,{person:i,class:`size-11`},null,8,[`person`]),n(`div`,m,[n(`div`,h,c(i.name),1),n(`div`,g,c(i.job_title||i.department),1)])]),_:2},1032,[`href`])]))),128))])]),_:1}))}};export{_ as default}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-Dy5FbYkt.js";import{b as d}from"./AppIcon-SVMShh8s.js";import{t as f}from"./Panel-DF-wChKt.js";var p={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},m={class:`min-w-0`},h={class:`truncate text-sm font-semibold`},g={class:`truncate text-[13px] text-muted-foreground`},_={__name:`NewColleagues`,props:{people:{type:Array,required:!0}},setup(_){return(v,y)=>(a(),l(f,{title:`Neu im Team`,"action-label":`Alle Personen`,"action-href":`/personen`},{default:s(()=>[n(`ul`,p,[(a(!0),r(o,null,i(_.people,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:`/personen/${i.id}`,class:`flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent`},{default:s(()=>[e(d,{person:i,class:`size-11`},null,8,[`person`]),n(`div`,m,[n(`div`,h,c(i.name),1),n(`div`,g,c(i.job_title||i.department),1)])]),_:2},1032,[`href`])]))),128))])]),_:1}))}};export{_ as default}; \ No newline at end of file diff --git a/public/build/assets/NewPageDialog-BbIzQTb2.js b/public/build/assets/NewPageDialog-B5SW-nak.js similarity index 91% rename from public/build/assets/NewPageDialog-BbIzQTb2.js rename to public/build/assets/NewPageDialog-B5SW-nak.js index fb613d0e..48a90d33 100644 --- a/public/build/assets/NewPageDialog-BbIzQTb2.js +++ b/public/build/assets/NewPageDialog-B5SW-nak.js @@ -1 +1 @@ -import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,_ as o,b as s,mt as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{r as m}from"./app-CIvn5Z1l.js";import{n as h,t as g}from"./DialogHeader-ByFe3nCF.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Input-CgjHXzkf.js";import{i as y,n as b,r as x,t as S}from"./dialog-bBqX5pN5.js";var C={class:`grid gap-1.5`},w={key:0,class:`text-[13px] text-destructive`},T={__name:`NewPageDialog`,props:e({parentId:{type:Number,default:null},parentTitle:{type:String,default:``}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`before-create`],[`update:open`]),setup(e,{emit:T}){let E=e,D=r(e,`open`),O=T,k=m({title:``,parent_id:null});i(D,e=>e&&(k.reset(),k.clearErrors()));async function A(){O(`before-create`),k.parent_id=E.parentId,k.post(`/redaktion/seiten`)}return(r,i)=>(c(),d(a(y),{open:D.value,"onUpdate:open":i[2]||=e=>D.value=e},{default:l(()=>[t(a(x),{class:`sm:max-w-md`},{default:l(()=>[t(a(g),null,{default:l(()=>[t(a(S),null,{default:l(()=>[n(u(e.parentId?`Unterseite anlegen`:`Neue Seite`),1)]),_:1}),e.parentId?(c(),d(a(h),{key:0},{default:l(()=>[n(`Unter „`+u(e.parentTitle)+`“. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,1)]),_:1})):(c(),d(a(h),{key:1},{default:l(()=>[...i[3]||=[n(`Auf der obersten Ebene. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,-1)]]),_:1}))]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:p(A,[`prevent`])},[o(`label`,C,[i[4]||=o(`span`,{class:`text-[13px] font-medium`},`Titel`,-1),t(a(v),{modelValue:a(k).title,"onUpdate:modelValue":i[0]||=e=>a(k).title=e,maxlength:`200`,autofocus:``,"aria-invalid":!!a(k).errors.title},null,8,[`modelValue`,`aria-invalid`]),a(k).errors.title?(c(),s(`span`,w,u(a(k).errors.title),1)):f(``,!0)]),t(a(b),null,{default:l(()=>[t(a(_),{type:`button`,variant:`outline`,onClick:i[1]||=e=>D.value=!1},{default:l(()=>[...i[5]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(_),{type:`submit`,disabled:a(k).processing||!a(k).title.trim()},{default:l(()=>[...i[6]||=[n(`Anlegen und bearbeiten`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}};export{T as t}; \ No newline at end of file +import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,_ as o,b as s,mt as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{r as m}from"./app-Dy5FbYkt.js";import{n as h,t as g}from"./DialogHeader-UfXa7NWq.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Input-CgjHXzkf.js";import{i as y,n as b,r as x,t as S}from"./dialog-DrnG5a9r.js";var C={class:`grid gap-1.5`},w={key:0,class:`text-[13px] text-destructive`},T={__name:`NewPageDialog`,props:e({parentId:{type:Number,default:null},parentTitle:{type:String,default:``}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`before-create`],[`update:open`]),setup(e,{emit:T}){let E=e,D=r(e,`open`),O=T,k=m({title:``,parent_id:null});i(D,e=>e&&(k.reset(),k.clearErrors()));async function A(){O(`before-create`),k.parent_id=E.parentId,k.post(`/redaktion/seiten`)}return(r,i)=>(c(),d(a(y),{open:D.value,"onUpdate:open":i[2]||=e=>D.value=e},{default:l(()=>[t(a(x),{class:`sm:max-w-md`},{default:l(()=>[t(a(g),null,{default:l(()=>[t(a(S),null,{default:l(()=>[n(u(e.parentId?`Unterseite anlegen`:`Neue Seite`),1)]),_:1}),e.parentId?(c(),d(a(h),{key:0},{default:l(()=>[n(`Unter „`+u(e.parentTitle)+`“. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,1)]),_:1})):(c(),d(a(h),{key:1},{default:l(()=>[...i[3]||=[n(`Auf der obersten Ebene. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,-1)]]),_:1}))]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:p(A,[`prevent`])},[o(`label`,C,[i[4]||=o(`span`,{class:`text-[13px] font-medium`},`Titel`,-1),t(a(v),{modelValue:a(k).title,"onUpdate:modelValue":i[0]||=e=>a(k).title=e,maxlength:`200`,autofocus:``,"aria-invalid":!!a(k).errors.title},null,8,[`modelValue`,`aria-invalid`]),a(k).errors.title?(c(),s(`span`,w,u(a(k).errors.title),1)):f(``,!0)]),t(a(b),null,{default:l(()=>[t(a(_),{type:`button`,variant:`outline`,onClick:i[1]||=e=>D.value=!1},{default:l(()=>[...i[5]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(_),{type:`submit`,disabled:a(k).processing||!a(k).title.trim()},{default:l(()=>[...i[6]||=[n(`Anlegen und bearbeiten`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}};export{T as t}; \ No newline at end of file diff --git a/public/build/assets/NewsCard-CWMFENyt.js b/public/build/assets/NewsCard-BnbSPjUt.js similarity index 88% rename from public/build/assets/NewsCard-CWMFENyt.js rename to public/build/assets/NewsCard-BnbSPjUt.js index 48eff30b..dd7bf5cb 100644 --- a/public/build/assets/NewsCard-CWMFENyt.js +++ b/public/build/assets/NewsCard-BnbSPjUt.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-CIvn5Z1l.js";import{l as u}from"./AppIcon-BVHFLm12.js";import{n as d,t as f}from"./NewsImage-31QS1JbU.js";var p={class:`flex flex-1 flex-col p-4`},m={class:`mt-1 line-clamp-2 text-[15px] leading-snug font-semibold group-hover:underline`},h={key:0,class:`mt-1.5 line-clamp-2 text-[13px] text-muted-foreground`},g={class:`mt-auto pt-3 text-xs text-muted-foreground`},_={__name:`NewsCard`,props:{post:{type:Object,required:!0}},setup(_){return(v,y)=>(i(),s(t(l),{href:`/neuigkeiten/${_.post.slug}`,class:`group flex h-full flex-col overflow-hidden rounded-lg border bg-card transition-shadow hover:shadow-md`},{default:a(()=>[e(f,{src:_.post.thumb_url,alt:_.post.title},null,8,[`src`,`alt`]),n(`div`,p,[e(d,{category:_.post.category},null,8,[`category`]),n(`h3`,m,o(_.post.title),1),_.post.teaser?(i(),r(`p`,h,o(_.post.teaser),1)):c(``,!0),n(`p`,g,o(t(u)(_.post.published_at))+` · `+o(_.post.reading_minutes)+` Min.`,1)])]),_:1},8,[`href`]))}};export{_ as t}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-Dy5FbYkt.js";import{l as u}from"./AppIcon-SVMShh8s.js";import{n as d,t as f}from"./NewsImage-BzxvsZoE.js";var p={class:`flex flex-1 flex-col p-4`},m={class:`mt-1 line-clamp-2 text-[15px] leading-snug font-semibold group-hover:underline`},h={key:0,class:`mt-1.5 line-clamp-2 text-[13px] text-muted-foreground`},g={class:`mt-auto pt-3 text-xs text-muted-foreground`},_={__name:`NewsCard`,props:{post:{type:Object,required:!0}},setup(_){return(v,y)=>(i(),s(t(l),{href:`/neuigkeiten/${_.post.slug}`,class:`group flex h-full flex-col overflow-hidden rounded-lg border bg-card transition-shadow hover:shadow-md`},{default:a(()=>[e(f,{src:_.post.thumb_url,alt:_.post.title},null,8,[`src`,`alt`]),n(`div`,p,[e(d,{category:_.post.category},null,8,[`category`]),n(`h3`,m,o(_.post.title),1),_.post.teaser?(i(),r(`p`,h,o(_.post.teaser),1)):c(``,!0),n(`p`,g,o(t(u)(_.post.published_at))+` · `+o(_.post.reading_minutes)+` Min.`,1)])]),_:1},8,[`href`]))}};export{_ as t}; \ No newline at end of file diff --git a/public/build/assets/NewsImage-31QS1JbU.js b/public/build/assets/NewsImage-BzxvsZoE.js similarity index 85% rename from public/build/assets/NewsImage-31QS1JbU.js rename to public/build/assets/NewsImage-BzxvsZoE.js index 216baa43..fbd70119 100644 --- a/public/build/assets/NewsImage-31QS1JbU.js +++ b/public/build/assets/NewsImage-BzxvsZoE.js @@ -1 +1 @@ -import{D as e,On as t,b as n,mt as r,tr as i,y as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{B as o}from"./AppIcon-BVHFLm12.js";var s={key:0,class:`text-[11px] font-semibold tracking-wide text-accent2-text uppercase`},c={__name:`CategoryLabel`,props:{category:{type:Object,default:null}},setup(e){return(t,o)=>e.category?(r(),n(`span`,s,i(e.category.name),1)):a(``,!0)}},l={class:`relative aspect-video overflow-hidden bg-muted`},u=[`src`,`alt`],d={key:1,class:`grid size-full place-items-center bg-brand-soft`},f={__name:`NewsImage`,props:{src:{type:String,default:null},alt:{type:String,default:``}},setup(i){return(a,s)=>(r(),n(`div`,l,[i.src?(r(),n(`img`,{key:0,src:i.src,alt:i.alt,loading:`lazy`,class:`size-full object-cover`},null,8,u)):(r(),n(`div`,d,[e(t(o),{class:`size-1/4 max-h-10 max-w-10 text-brand-text opacity-60`,"stroke-width":1.5})]))]))}};export{c as n,f as t}; \ No newline at end of file +import{D as e,On as t,b as n,mt as r,tr as i,y as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{B as o}from"./AppIcon-SVMShh8s.js";var s={key:0,class:`text-[11px] font-semibold tracking-wide text-accent2-text uppercase`},c={__name:`CategoryLabel`,props:{category:{type:Object,default:null}},setup(e){return(t,o)=>e.category?(r(),n(`span`,s,i(e.category.name),1)):a(``,!0)}},l={class:`relative aspect-video overflow-hidden bg-muted`},u=[`src`,`alt`],d={key:1,class:`grid size-full place-items-center bg-brand-soft`},f={__name:`NewsImage`,props:{src:{type:String,default:null},alt:{type:String,default:``}},setup(i){return(a,s)=>(r(),n(`div`,l,[i.src?(r(),n(`img`,{key:0,src:i.src,alt:i.alt,loading:`lazy`,class:`size-full object-cover`},null,8,u)):(r(),n(`div`,d,[e(t(o),{class:`size-1/4 max-h-10 max-w-10 text-brand-text opacity-60`,"stroke-width":1.5})]))]))}};export{c as n,f as t}; \ No newline at end of file diff --git a/public/build/assets/NewsListItem-DmR535f5.js b/public/build/assets/NewsListItem-Bak5OcQP.js similarity index 84% rename from public/build/assets/NewsListItem-DmR535f5.js rename to public/build/assets/NewsListItem-Bak5OcQP.js index d9391bcb..e22326c9 100644 --- a/public/build/assets/NewsListItem-DmR535f5.js +++ b/public/build/assets/NewsListItem-Bak5OcQP.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,mt as r,qt as i,tr as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as s}from"./app-CIvn5Z1l.js";import{c}from"./AppIcon-BVHFLm12.js";import{n as l,t as u}from"./NewsImage-31QS1JbU.js";var d={class:`min-w-0`},f={class:`mt-0.5 line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},p={class:`mt-1 text-xs text-muted-foreground`},m={__name:`NewsListItem`,props:{post:{type:Object,required:!0}},setup(m){return(h,g)=>(r(),o(t(s),{href:`/neuigkeiten/${m.post.slug}`,class:`group flex gap-4 py-3`},{default:i(()=>[e(u,{src:m.post.thumb_url,alt:m.post.title,class:`w-28 shrink-0 rounded-md sm:w-32`},null,8,[`src`,`alt`]),n(`div`,d,[e(l,{category:m.post.category},null,8,[`category`]),n(`h3`,f,a(m.post.title),1),n(`p`,p,a(t(c)(m.post.published_at)),1)])]),_:1},8,[`href`]))}};export{m as t}; \ No newline at end of file +import{D as e,On as t,_ as n,mt as r,qt as i,tr as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as s}from"./app-Dy5FbYkt.js";import{c}from"./AppIcon-SVMShh8s.js";import{n as l,t as u}from"./NewsImage-BzxvsZoE.js";var d={class:`min-w-0`},f={class:`mt-0.5 line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},p={class:`mt-1 text-xs text-muted-foreground`},m={__name:`NewsListItem`,props:{post:{type:Object,required:!0}},setup(m){return(h,g)=>(r(),o(t(s),{href:`/neuigkeiten/${m.post.slug}`,class:`group flex gap-4 py-3`},{default:i(()=>[e(u,{src:m.post.thumb_url,alt:m.post.title,class:`w-28 shrink-0 rounded-md sm:w-32`},null,8,[`src`,`alt`]),n(`div`,d,[e(l,{category:m.post.category},null,8,[`category`]),n(`h3`,f,a(m.post.title),1),n(`p`,p,a(t(c)(m.post.published_at)),1)])]),_:1},8,[`href`]))}};export{m as t}; \ No newline at end of file diff --git a/public/build/assets/Organigram-BAINuG6f.js b/public/build/assets/Organigram-BAINuG6f.js deleted file mode 100644 index 1b2188f6..00000000 --- a/public/build/assets/Organigram-BAINuG6f.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,Ht as n,On as r,St as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,g as d,mt as f,o as p,qt as m,tr as h,tt as g,v as _,vn as v,wt as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as x,n as S}from"./app-CIvn5Z1l.js";import{A as C,j as w}from"./dist-CleIz2GP.js";import{F as T,G as E,K as D,P as O,V as k,b as A,x as j,z as ee}from"./AppIcon-BVHFLm12.js";import{t as M}from"./AppLayout-Cy38OwfZ.js";import{C as N,_ as P,t as F,y as I}from"./http-9R3L4KBg.js";import{n as L,t as te}from"./minus-CbZH2mo0.js";import{t as ne}from"./plus-cKZvz4wH.js";import{t as R}from"./smartphone-2VTLQVgX.js";import{t as z}from"./EmptyState-Ceq4v8mE.js";import{t as B}from"./PageHeader-CWL5ThBH.js";import{t as V}from"./button-SRYY3-ko.js";import{t as H}from"./Input-CgjHXzkf.js";import{n as U,t as W}from"./useStoredChoice-DGWodkrG.js";var G=w({name:`maximize`,size:24,node:[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]}),K=w({name:`scan-search`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]}),q=[`id`],J={class:`min-w-0 flex-1`},Y=[`title`],X=[`title`,`aria-label`],Z=[`aria-expanded`],Q={__name:`OrgCard`,props:{person:{type:Object,required:!0},compact:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},open:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:[`toggle`,`focus`],setup(n){let i=n,c=d(()=>j(i.person.department));return(i,l)=>(f(),s(`div`,{id:`person-${n.person.id}`,class:a([`group/card relative overflow-hidden rounded-lg border bg-card text-left shadow-xs transition-shadow hover:shadow-sm`,[n.compact?`w-54`:`w-56`,n.highlighted?`border-brand-400 ring-3 ring-brand-300/50`:``]])},[o(`span`,{class:a([`absolute inset-y-0 left-0 w-1 rounded-l-lg`,c.value.bar]),"aria-hidden":`true`},null,2),o(`div`,{class:a([`flex items-center gap-3`,n.compact?`px-3 py-2`:`px-3.5 pt-3 pb-2.5`])},[e(A,{person:n.person,class:a(n.compact?`size-7 text-[10px]`:`size-10`)},null,8,[`person`,`class`]),o(`div`,J,[n.person.department&&!n.compact?(f(),s(`p`,{key:0,class:a([`truncate text-[10.5px] font-semibold tracking-wide uppercase`,c.value.text])},h(n.person.department),3)):b(``,!0),e(r(S),{href:`/personen/${n.person.id}`,class:`block truncate text-sm leading-tight font-semibold hover:underline`},{default:m(()=>[t(h(n.person.name),1)]),_:1},8,[`href`]),o(`p`,{class:`truncate text-xs leading-tight text-muted-foreground`,title:n.person.job_title},h(n.person.job_title||`–`),9,Y)])],2),o(`button`,{type:`button`,class:`absolute top-1.5 right-1.5 grid size-7 place-items-center rounded-md text-muted-foreground opacity-0 transition-opacity group-hover/card:opacity-100 hover:bg-accent hover:text-foreground focus-visible:opacity-100`,title:`${n.person.name} in den Fokus`,"aria-label":`${n.person.name} in den Fokus`,onClick:l[0]||=e=>i.$emit(`focus`,n.person)},[e(r(K),{class:`size-4`})],8,X),!n.compact&&n.person.reports?(f(),s(`button`,{key:0,type:`button`,class:a([`flex w-full items-center justify-center gap-1.5 rounded-b-lg border-t py-1.5 text-xs font-medium hover:bg-accent`,n.open?`bg-brand-soft/60 text-brand-soft-foreground`:`text-muted-foreground`]),"aria-expanded":n.open,onClick:l[1]||=e=>i.$emit(`toggle`)},[n.loading?(f(),_(r(C),{key:0,class:`size-3.5 animate-spin`})):(f(),_(y(n.open?r(L):r(N)),{key:1,class:`size-3.5`})),t(` `+h(n.person.reports)+` `+h(n.person.reports===1?`Person`:`Personen`)+` im Team `,1)],10,Z)):b(``,!0)],10,q))}},re={key:0,"aria-busy":`true`},ie={class:`org-members`},ae={class:`grid flex-1 gap-1.5`},oe={key:1},se={key:0},ce={__name:`OrgChartNode`,props:{person:{type:Object,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let l=t,u=()=>l.open.includes(l.person.id)&&l.teams[l.person.id]!==void 0,m=v(l.teams[l.person.id]??null),h=v(u()),g=v(!1);n(()=>l.teams,e=>{m.value=e[l.person.id]??m.value,h.value=u()});let y=d(()=>(m.value??[]).filter(e=>e.reports)),x=d(()=>(m.value??[]).filter(e=>!e.reports));async function S(){if(h.value=!h.value,h.value&&m.value===null){g.value=!0;try{m.value=(await F.get(`/personen/organigramm/${l.person.id}/team`)).team}catch{h.value=!1}finally{g.value=!1}}}return(n,l)=>{let u=i(`OrgChartNode`,!0);return f(),s(`li`,null,[e(Q,{person:t.person,highlighted:t.person.id===t.focus,open:h.value,loading:g.value,onToggle:S,onFocus:l[0]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`,`open`,`loading`]),h.value&&g.value?(f(),s(`ul`,re,[o(`li`,null,[o(`div`,ie,[(f(),s(p,null,c(3,t=>o(`div`,{key:t,class:`flex w-54 items-center gap-3 rounded-lg border bg-card px-3 py-2`},[e(r(U),{class:`size-7 rounded-full`}),o(`div`,ae,[e(r(U),{class:`h-3 w-3/4`}),e(r(U),{class:`h-2.5 w-1/2`})])])),64))])])])):h.value&&m.value?.length?(f(),s(`ul`,oe,[(f(!0),s(p,null,c(y.value,e=>(f(),_(u,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:l[1]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128)),x.value.length?(f(),s(`li`,se,[o(`div`,{class:a([`org-members`,{"org-members-wide":x.value.length>8}])},[(f(!0),s(p,null,c(x.value,e=>(f(),_(Q,{key:e.id,person:e,compact:``,highlighted:e.id===t.focus,onFocus:l[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`]))),128))],2)])):b(``,!0)])):b(``,!0)])}}},le={class:`relative overflow-hidden rounded-lg border bg-card`},ue={class:`absolute top-3 right-3 z-10 flex items-center rounded-md border bg-card shadow-xs`},de={class:`w-11 text-center text-xs text-muted-foreground tabular-nums`},fe={class:`org-tree`},pe={__name:`OrgChart`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let i=t,a=v(null),d=v(1),m=[.5,.67,.8,1,1.15];function y(e){let t=m.findIndex(e=>e>=d.value-.001);d.value=m[Math.min(m.length-1,Math.max(0,t+e))]}function b(){let e=a.value;if(!e)return;let t=e.scrollWidth/d.value;d.value=Math.max(.4,Math.min(1,(e.clientWidth-32)/t)),g(()=>e.scrollLeft=(e.scrollWidth-e.clientWidth)/2)}let x=null;function S(e){e.pointerType!==`mouse`||e.button!==0||e.target.closest(`a, button`)||(x={x:e.clientX,y:e.clientY,left:a.value.scrollLeft,top:a.value.scrollTop},a.value.setPointerCapture(e.pointerId))}function C(e){x&&(a.value.scrollLeft=x.left-(e.clientX-x.x),a.value.scrollTop=x.top-(e.clientY-x.y))}function w(){x=null}function T(){g(()=>{let e=a.value,t=i.focus&&document.getElementById(`person-${i.focus}`)||i.roots.length&&document.getElementById(`person-${i.roots[0].id}`);if(e&&t){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();e.scrollLeft+=n.left-r.left-(r.width-n.width)/2,i.focus&&(e.scrollTop+=n.top-r.top-Math.min(120,(r.height-n.height)/2))}})}return l(T),n(()=>i.focus,T),(n,i)=>(f(),s(`div`,le,[o(`div`,ue,[o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Verkleinern`,onClick:i[0]||=e=>y(-1)},[e(r(te),{class:`size-4`})]),o(`span`,de,h(Math.round(d.value*100))+` %`,1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Vergrößern`,onClick:i[1]||=e=>y(1)},[e(r(ne),{class:`size-4`})]),i[3]||=o(`span`,{class:`h-5 w-px bg-border`},null,-1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,title:`Einpassen`,"aria-label":`Einpassen`,onClick:b},[e(r(G),{class:`size-4`})])]),o(`div`,{ref_key:`canvas`,ref:a,class:`org-canvas max-h-[calc(100vh-12rem)] min-h-[18rem] cursor-grab overflow-auto active:cursor-grabbing`,onPointerdown:S,onPointermove:C,onPointerup:w,onPointercancel:w},[o(`div`,{class:`inline-block min-w-full px-8 pt-7 pb-8`,style:u({zoom:d.value})},[o(`ul`,fe,[(f(!0),s(p,null,c(t.roots,e=>(f(),_(ce,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:i[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128))])],4)],544)]))}},me={class:`grid gap-5`},he={class:`relative overflow-hidden rounded-lg border bg-card`},ge={class:`flex flex-col gap-5 p-5 sm:flex-row sm:items-center`},_e={class:`min-w-0 flex-1`},ve={class:`text-xl leading-tight font-semibold tracking-tight`},ye={key:1,class:`text-sm text-muted-foreground`},be={class:`mt-2 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},xe=[`href`],Se={key:1,class:`truncate text-muted-foreground`},Ce={class:`flex shrink-0 flex-wrap gap-2 sm:flex-col`},we={class:`rounded-lg border bg-card`},Te={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ee={class:`font-normal text-muted-foreground`},De={key:0,class:`overflow-hidden rounded-b-lg`},Oe={class:`-mr-px -mb-px grid sm:grid-cols-2 xl:grid-cols-3`},ke=[`onClick`],Ae={class:`min-w-0 flex-1`},je={class:`block truncate text-sm font-medium`},Me={class:`block truncate text-xs text-muted-foreground`},Ne=[`title`],Pe={key:0,class:`flex items-center gap-1 px-4 pb-2.5 pl-16`},Fe=[`title`,`onClick`],Ie={key:0,class:`ml-1 text-xs text-muted-foreground`},Le={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},Re={key:0,class:`grid gap-5`},ze={key:0,class:`rounded-lg border bg-card`},Be={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ve={class:`p-2`},He={key:0,class:`absolute top-9 bottom-0 left-[1.45rem] w-px bg-border`,"aria-hidden":`true`},Ue=[`onClick`],We={class:`min-w-0`},Ge={class:`block truncate text-sm font-medium`},Ke={class:`block truncate text-xs text-muted-foreground`},qe={key:1,class:`rounded-lg border bg-card`},Je={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ye={class:`font-normal text-muted-foreground`},Xe={class:`max-h-80 overflow-y-auto p-2`},Ze=[`onClick`],Qe={class:`min-w-0`},$e={class:`block truncate text-[13px] font-medium`},et={class:`block truncate text-xs text-muted-foreground`},tt={__name:`OrgFocus`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},path:{type:Array,default:()=>[]},details:{type:Object,required:!0}},emits:[`focus`,`show-in-tree`],setup(n){let i=n,l=d(()=>{let e=new Map;return[...i.roots,...Object.values(i.teams).flat()].forEach(t=>e.set(t.id,t)),e}),u=d(()=>i.path.slice(0,-1).map(e=>l.value.get(e)).filter(Boolean)),g=d(()=>u.value.at(-1)??null),v=d(()=>g.value?(i.teams[g.value.id]??[]).filter(e=>e.id!==i.details.id):[]),x=d(()=>i.teams[i.details.id]??[]),C=d(()=>[{icon:D,value:i.details.email,href:`mailto:${i.details.email}`},{icon:I,value:i.details.phone,href:i.details.phone&&`tel:${i.details.phone}`},{icon:R,value:i.details.mobile,href:i.details.mobile&&`tel:${i.details.mobile}`},{icon:E,value:[i.details.department,i.details.location].filter(Boolean).join(` · `)}].filter(e=>e.value));return(i,l)=>(f(),s(`div`,{class:a([`grid items-start gap-5`,{"lg:grid-cols-[minmax(0,1fr)_19rem]":u.value.length||v.value.length}])},[o(`div`,me,[o(`section`,he,[o(`span`,{class:a([`absolute inset-y-0 left-0 w-1`,r(j)(n.details.department).bar]),"aria-hidden":`true`},null,2),o(`div`,ge,[e(A,{person:n.details,class:`size-20 text-xl ring-4 ring-brand-soft`},null,8,[`person`]),o(`div`,_e,[n.details.department?(f(),s(`p`,{key:0,class:a([`text-[11px] font-semibold tracking-wide uppercase`,r(j)(n.details.department).text])},h(n.details.department),3)):b(``,!0),o(`h2`,ve,h(n.details.name),1),n.details.job_title?(f(),s(`p`,ye,h(n.details.job_title),1)):b(``,!0),o(`ul`,be,[(f(!0),s(p,null,c(C.value,e=>(f(),s(`li`,{key:e.value,class:`flex min-w-0 items-center gap-1.5`},[(f(),_(y(e.icon),{class:`size-3.5 shrink-0 text-muted-foreground`})),e.href?(f(),s(`a`,{key:0,href:e.href,class:`truncate text-brand-text hover:underline`},h(e.value),9,xe)):(f(),s(`span`,Se,h(e.value),1))]))),128))])]),o(`div`,Ce,[e(r(V),{size:`sm`,"as-child":``},{default:m(()=>[e(r(S),{href:`/personen/${n.details.id}`},{default:m(()=>[e(r(T)),l[1]||=t(` Profil`,-1)]),_:1},8,[`href`])]),_:1}),e(r(V),{variant:`outline`,size:`sm`,onClick:l[0]||=e=>i.$emit(`show-in-tree`,n.details)},{default:m(()=>[e(r(k)),l[2]||=t(` Im Baum`,-1)]),_:1})])])]),o(`section`,we,[o(`h3`,Te,[e(r(O),{class:`size-4 text-brand-text`}),l[3]||=t(` Direkt unterstellt `,-1),o(`span`,Ee,h(x.value.length),1)]),x.value.length?(f(),s(`div`,De,[o(`ul`,Oe,[(f(!0),s(p,null,c(x.value,a=>(f(),s(`li`,{key:a.id,class:`border-r border-b hover:bg-accent/60`},[o(`button`,{type:`button`,class:`flex w-full items-center gap-3 px-4 py-3 text-left`,onClick:e=>i.$emit(`focus`,a)},[e(A,{person:a,class:`size-9`},null,8,[`person`]),o(`span`,Ae,[o(`span`,je,h(a.name),1),o(`span`,Me,h(a.job_title||`–`),1)]),a.reports?(f(),s(`span`,{key:0,class:`inline-flex shrink-0 items-center gap-1 rounded-full bg-brand-soft px-2 py-0.5 text-[11px] font-medium text-brand-soft-foreground`,title:`${a.reports} im Team`},[e(r(O),{class:`size-3`}),t(` `+h(a.reports),1)],8,Ne)):b(``,!0)],8,ke),n.teams[a.id]?.length?(f(),s(`div`,Pe,[(f(!0),s(p,null,c(n.teams[a.id].slice(0,7),t=>(f(),s(`button`,{key:t.id,type:`button`,class:`-ml-1 rounded-full ring-2 ring-card first:ml-0 hover:ring-brand-300`,title:`${t.name}${t.job_title?` – `+t.job_title:``}`,onClick:e=>i.$emit(`focus`,t)},[e(A,{person:t,class:`size-6 text-[9px]`},null,8,[`person`])],8,Fe))),128)),n.teams[a.id].length>7?(f(),s(`span`,Ie,`+`+h(n.teams[a.id].length-7),1)):b(``,!0)])):b(``,!0)]))),128))])])):(f(),s(`p`,Le,`Keine direkt unterstellten Personen.`))])]),u.value.length||v.value.length?(f(),s(`aside`,Re,[u.value.length?(f(),s(`section`,ze,[o(`h3`,Be,[e(r(L),{class:`size-4 text-brand-text`}),l[4]||=t(` Berichtet an`,-1)]),o(`ol`,Ve,[(f(!0),s(p,null,c([...u.value].reverse(),(t,n)=>(f(),s(`li`,{key:t.id,class:`relative`},[ni.$emit(`focus`,t)},[e(A,{person:t,class:`size-8 text-[11px]`},null,8,[`person`]),o(`span`,We,[o(`span`,Ge,h(t.name),1),o(`span`,Ke,h(t.job_title||t.department||`–`),1)])],8,Ue)]))),128))])])):b(``,!0),v.value.length?(f(),s(`section`,qe,[o(`h3`,Je,[e(r(O),{class:`size-4 text-brand-text`}),l[5]||=t(` Im selben Team `,-1),o(`span`,Ye,h(v.value.length),1)]),o(`ul`,Xe,[(f(!0),s(p,null,c(v.value,t=>(f(),s(`li`,{key:t.id},[o(`button`,{type:`button`,class:`flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left hover:bg-accent`,onClick:e=>i.$emit(`focus`,t)},[e(A,{person:t,class:`size-7 text-[10px]`},null,8,[`person`]),o(`span`,Qe,[o(`span`,$e,h(t.name),1),o(`span`,et,h(t.job_title||`–`),1)])],8,Ze)]))),128))])])):b(``,!0)])):b(``,!0)],2))}},$={class:`flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center`},nt={class:`inline-flex self-start rounded-md border bg-card p-0.5`,role:`group`,"aria-label":`Ansicht`},rt=[`aria-pressed`,`onClick`],it={class:`relative sm:w-80`},at={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-72 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},ot=[`onClick`],st={class:`min-w-0`},ct={class:`block truncate font-medium`},lt={class:`block truncate text-xs text-muted-foreground`},ut={key:0,class:`rounded-lg border bg-card`},dt={key:0,class:`mb-3 flex items-center gap-2 text-[13px]`},ft={key:1,class:`mb-3 flex flex-wrap gap-x-4 gap-y-1.5 text-xs text-muted-foreground`,"aria-label":`Abteilungen`},pt={key:3,class:`mt-4 text-[13px] text-muted-foreground`},mt={__name:`Organigram`,props:{roots:{type:Array,required:!0},path:{type:Array,default:()=>[]},open:{type:Array,default:()=>[]},teams:{type:Object,default:()=>({})},focus:{type:Number,default:null},details:{type:Object,default:null},view:{type:String,default:`baum`},stats:{type:Object,default:()=>({people:0,leaders:0})},unassigned:{type:Number,default:0}},setup(i){let u=i,g=W(`organigram.view`,`baum`,[`baum`,`fokus`]);l(()=>{!new URLSearchParams(window.location.search).has(`ansicht`)&&g.value!==u.view&&C(g.value,u.focus,!0)}),n(()=>u.view,e=>g.value=e);function C(e,t=u.focus,n=!1){let r={ansicht:e};t&&(r.person=t),x.get(`/personen/organigramm`,r,{preserveScroll:e===`fokus`,replace:n})}let w=v(``),T=v([]),E;n(w,e=>{if(clearTimeout(E),e.trim().length<2){T.value=[];return}E=setTimeout(async()=>{T.value=(await F.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`)).people},250)});function D(e){w.value=``,T.value=[],C(u.view,e.id)}let O=e=>e.toLocaleString(`de-DE`),N=d(()=>[...new Set([...u.roots,...Object.values(u.teams).flat()].map(e=>e.department).filter(Boolean))].sort((e,t)=>e.localeCompare(t,`de`)).slice(0,16));return(n,l)=>(f(),_(M,{title:`Organigramm`},{default:m(()=>[e(B,{title:`Organigramm`,breadcrumbs:[{label:`Personen`,href:`/personen`}],description:`${O(i.stats.people)} Personen · ${O(i.stats.leaders)} mit Personalverantwortung`},{actions:m(()=>[o(`div`,$,[o(`div`,nt,[(f(!0),s(p,null,c([{key:`baum`,icon:r(k),label:`Baum`},{key:`fokus`,icon:r(K),label:`Fokus`}],e=>(f(),s(`button`,{key:e.key,type:`button`,class:a([`inline-flex h-9 items-center gap-1.5 rounded px-3 text-[13px]`,i.view===e.key?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":i.view===e.key,onClick:t=>i.view!==e.key&&C(e.key)},[(f(),_(y(e.icon),{class:`size-4`})),t(` `+h(e.label),1)],10,rt))),128))]),o(`div`,it,[e(r(ee),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(r(H),{modelValue:w.value,"onUpdate:modelValue":l[0]||=e=>w.value=e,class:`h-10 bg-card pl-9`,placeholder:`Person finden …`,"aria-label":`Person im Organigramm finden`,autocomplete:`off`},null,8,[`modelValue`]),T.value.length?(f(),s(`ul`,at,[(f(!0),s(p,null,c(T.value,t=>(f(),s(`li`,{key:t.id},[o(`button`,{type:`button`,class:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm hover:bg-accent`,onClick:e=>D(t)},[e(A,{person:t,class:`size-7 text-[10px]`},null,8,[`person`]),o(`span`,st,[o(`span`,ct,h(t.name),1),o(`span`,lt,h(t.job_title),1)])],8,ot)]))),128))])):b(``,!0)])])]),_:1},8,[`description`]),i.roots.length?i.view===`fokus`&&i.details?(f(),_(tt,{key:1,roots:i.roots,teams:i.teams,path:i.path,details:i.details,onFocus:l[1]||=e=>C(`fokus`,e.id),onShowInTree:l[2]||=e=>C(`baum`,e.id)},null,8,[`roots`,`teams`,`path`,`details`])):(f(),s(p,{key:2},[i.focus?(f(),s(`div`,dt,[l[5]||=o(`span`,{class:`text-muted-foreground`},`Der Weg zur gesuchten Person ist aufgeklappt.`,-1),e(r(S),{href:`/personen/organigramm?ansicht=baum`,class:`inline-flex items-center gap-1 font-medium text-brand-text hover:underline`},{default:m(()=>[e(r(P),{class:`size-3.5`}),l[4]||=t(` Zurücksetzen`,-1)]),_:1})])):b(``,!0),N.value.length>1?(f(),s(`ul`,ft,[(f(!0),s(p,null,c(N.value,e=>(f(),s(`li`,{key:e,class:`flex items-center gap-1.5`},[o(`span`,{class:a([`size-2.5 rounded-sm`,r(j)(e).bar])},null,2),t(h(e),1)]))),128))])):b(``,!0),e(pe,{roots:i.roots,teams:i.teams,open:i.open,focus:i.focus,onFocus:l[3]||=e=>C(`fokus`,e.id)},null,8,[`roots`,`teams`,`open`,`focus`])],64)):(f(),s(`div`,ut,[e(z,{icon:r(k),title:`Noch kein Organigramm`,text:`Es sind noch keine Vorgesetzten hinterlegt. Sie kommen aus dem Anmeldedienst (z. B. Entra ID) oder werden im Admin-Bereich bei den Benutzern eingetragen.`},null,8,[`icon`])])),i.unassigned?(f(),s(`p`,pt,h(i.unassigned===1?`1 Person`:`${O(i.unassigned)} Personen`)+` ohne Vorgesetzte*n und ohne Team `+h(i.unassigned===1?`erscheint`:`erscheinen`)+` hier nicht. `,1)):b(``,!0)]),_:1}))}};export{mt as default}; \ No newline at end of file diff --git a/public/build/assets/Organigram-BYglUB79.js b/public/build/assets/Organigram-BYglUB79.js new file mode 100644 index 00000000..7693e0cb --- /dev/null +++ b/public/build/assets/Organigram-BYglUB79.js @@ -0,0 +1 @@ +import{D as e,E as t,Ht as n,On as r,St as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,g as d,mt as f,o as p,qt as m,tr as h,tt as g,v as _,vn as v,wt as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as x,n as S}from"./app-Dy5FbYkt.js";import{A as C,j as w}from"./dist-CleIz2GP.js";import{F as T,G as E,K as D,P as O,V as k,b as A,x as j,z as ee}from"./AppIcon-SVMShh8s.js";import{t as M}from"./AppLayout-X0y7XSjx.js";import{C as N,_ as P,t as F,y as I}from"./http-9R3L4KBg.js";import{t as L}from"./chevron-up-B_XdKobX.js";import{t as te}from"./minus-G8J1pUIu.js";import{t as ne}from"./plus-cKZvz4wH.js";import{t as R}from"./smartphone-2VTLQVgX.js";import{t as z}from"./EmptyState-Ceq4v8mE.js";import{t as B}from"./PageHeader-Dcr3nLVu.js";import{t as V}from"./button-SRYY3-ko.js";import{t as H}from"./Input-CgjHXzkf.js";import{t as U}from"./Skeleton-CDbudwoF.js";import{t as W}from"./useStoredChoice-BAacDiWy.js";var G=w({name:`maximize`,size:24,node:[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]}),K=w({name:`scan-search`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]}),q=[`id`],J={class:`min-w-0 flex-1`},Y=[`title`],X=[`title`,`aria-label`],Z=[`aria-expanded`],Q={__name:`OrgCard`,props:{person:{type:Object,required:!0},compact:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},open:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:[`toggle`,`focus`],setup(n){let i=n,c=d(()=>j(i.person.department));return(i,l)=>(f(),s(`div`,{id:`person-${n.person.id}`,class:a([`group/card relative overflow-hidden rounded-lg border bg-card text-left shadow-xs transition-shadow hover:shadow-sm`,[n.compact?`w-54`:`w-56`,n.highlighted?`border-brand-400 ring-3 ring-brand-300/50`:``]])},[o(`span`,{class:a([`absolute inset-y-0 left-0 w-1 rounded-l-lg`,c.value.bar]),"aria-hidden":`true`},null,2),o(`div`,{class:a([`flex items-center gap-3`,n.compact?`px-3 py-2`:`px-3.5 pt-3 pb-2.5`])},[e(A,{person:n.person,class:a(n.compact?`size-7 text-[10px]`:`size-10`)},null,8,[`person`,`class`]),o(`div`,J,[n.person.department&&!n.compact?(f(),s(`p`,{key:0,class:a([`truncate text-[10.5px] font-semibold tracking-wide uppercase`,c.value.text])},h(n.person.department),3)):b(``,!0),e(r(S),{href:`/personen/${n.person.id}`,class:`block truncate text-sm leading-tight font-semibold hover:underline`},{default:m(()=>[t(h(n.person.name),1)]),_:1},8,[`href`]),o(`p`,{class:`truncate text-xs leading-tight text-muted-foreground`,title:n.person.job_title},h(n.person.job_title||`–`),9,Y)])],2),o(`button`,{type:`button`,class:`absolute top-1.5 right-1.5 grid size-7 place-items-center rounded-md text-muted-foreground opacity-0 transition-opacity group-hover/card:opacity-100 hover:bg-accent hover:text-foreground focus-visible:opacity-100`,title:`${n.person.name} in den Fokus`,"aria-label":`${n.person.name} in den Fokus`,onClick:l[0]||=e=>i.$emit(`focus`,n.person)},[e(r(K),{class:`size-4`})],8,X),!n.compact&&n.person.reports?(f(),s(`button`,{key:0,type:`button`,class:a([`flex w-full items-center justify-center gap-1.5 rounded-b-lg border-t py-1.5 text-xs font-medium hover:bg-accent`,n.open?`bg-brand-soft/60 text-brand-soft-foreground`:`text-muted-foreground`]),"aria-expanded":n.open,onClick:l[1]||=e=>i.$emit(`toggle`)},[n.loading?(f(),_(r(C),{key:0,class:`size-3.5 animate-spin`})):(f(),_(y(n.open?r(L):r(N)),{key:1,class:`size-3.5`})),t(` `+h(n.person.reports)+` `+h(n.person.reports===1?`Person`:`Personen`)+` im Team `,1)],10,Z)):b(``,!0)],10,q))}},re={key:0,"aria-busy":`true`},ie={class:`org-members`},ae={class:`grid flex-1 gap-1.5`},oe={key:1},se={key:0},ce={__name:`OrgChartNode`,props:{person:{type:Object,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let l=t,u=()=>l.open.includes(l.person.id)&&l.teams[l.person.id]!==void 0,m=v(l.teams[l.person.id]??null),h=v(u()),g=v(!1);n(()=>l.teams,e=>{m.value=e[l.person.id]??m.value,h.value=u()});let y=d(()=>(m.value??[]).filter(e=>e.reports)),x=d(()=>(m.value??[]).filter(e=>!e.reports));async function S(){if(h.value=!h.value,h.value&&m.value===null){g.value=!0;try{m.value=(await F.get(`/personen/organigramm/${l.person.id}/team`)).team}catch{h.value=!1}finally{g.value=!1}}}return(n,l)=>{let u=i(`OrgChartNode`,!0);return f(),s(`li`,null,[e(Q,{person:t.person,highlighted:t.person.id===t.focus,open:h.value,loading:g.value,onToggle:S,onFocus:l[0]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`,`open`,`loading`]),h.value&&g.value?(f(),s(`ul`,re,[o(`li`,null,[o(`div`,ie,[(f(),s(p,null,c(3,t=>o(`div`,{key:t,class:`flex w-54 items-center gap-3 rounded-lg border bg-card px-3 py-2`},[e(r(U),{class:`size-7 rounded-full`}),o(`div`,ae,[e(r(U),{class:`h-3 w-3/4`}),e(r(U),{class:`h-2.5 w-1/2`})])])),64))])])])):h.value&&m.value?.length?(f(),s(`ul`,oe,[(f(!0),s(p,null,c(y.value,e=>(f(),_(u,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:l[1]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128)),x.value.length?(f(),s(`li`,se,[o(`div`,{class:a([`org-members`,{"org-members-wide":x.value.length>8}])},[(f(!0),s(p,null,c(x.value,e=>(f(),_(Q,{key:e.id,person:e,compact:``,highlighted:e.id===t.focus,onFocus:l[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`]))),128))],2)])):b(``,!0)])):b(``,!0)])}}},le={class:`relative overflow-hidden rounded-lg border bg-card`},ue={class:`absolute top-3 right-3 z-10 flex items-center rounded-md border bg-card shadow-xs`},de={class:`w-11 text-center text-xs text-muted-foreground tabular-nums`},fe={class:`org-tree`},pe={__name:`OrgChart`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let i=t,a=v(null),d=v(1),m=[.5,.67,.8,1,1.15];function y(e){let t=m.findIndex(e=>e>=d.value-.001);d.value=m[Math.min(m.length-1,Math.max(0,t+e))]}function b(){let e=a.value;if(!e)return;let t=e.scrollWidth/d.value;d.value=Math.max(.4,Math.min(1,(e.clientWidth-32)/t)),g(()=>e.scrollLeft=(e.scrollWidth-e.clientWidth)/2)}let x=null;function S(e){e.pointerType!==`mouse`||e.button!==0||e.target.closest(`a, button`)||(x={x:e.clientX,y:e.clientY,left:a.value.scrollLeft,top:a.value.scrollTop},a.value.setPointerCapture(e.pointerId))}function C(e){x&&(a.value.scrollLeft=x.left-(e.clientX-x.x),a.value.scrollTop=x.top-(e.clientY-x.y))}function w(){x=null}function T(){g(()=>{let e=a.value,t=i.focus&&document.getElementById(`person-${i.focus}`)||i.roots.length&&document.getElementById(`person-${i.roots[0].id}`);if(e&&t){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();e.scrollLeft+=n.left-r.left-(r.width-n.width)/2,i.focus&&(e.scrollTop+=n.top-r.top-Math.min(120,(r.height-n.height)/2))}})}return l(T),n(()=>i.focus,T),(n,i)=>(f(),s(`div`,le,[o(`div`,ue,[o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Verkleinern`,onClick:i[0]||=e=>y(-1)},[e(r(te),{class:`size-4`})]),o(`span`,de,h(Math.round(d.value*100))+` %`,1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Vergrößern`,onClick:i[1]||=e=>y(1)},[e(r(ne),{class:`size-4`})]),i[3]||=o(`span`,{class:`h-5 w-px bg-border`},null,-1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,title:`Einpassen`,"aria-label":`Einpassen`,onClick:b},[e(r(G),{class:`size-4`})])]),o(`div`,{ref_key:`canvas`,ref:a,class:`org-canvas max-h-[calc(100vh-12rem)] min-h-[18rem] cursor-grab overflow-auto active:cursor-grabbing`,onPointerdown:S,onPointermove:C,onPointerup:w,onPointercancel:w},[o(`div`,{class:`inline-block min-w-full px-8 pt-7 pb-8`,style:u({zoom:d.value})},[o(`ul`,fe,[(f(!0),s(p,null,c(t.roots,e=>(f(),_(ce,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:i[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128))])],4)],544)]))}},me={class:`grid gap-5`},he={class:`relative overflow-hidden rounded-lg border bg-card`},ge={class:`flex flex-col gap-5 p-5 sm:flex-row sm:items-center`},_e={class:`min-w-0 flex-1`},ve={class:`text-xl leading-tight font-semibold tracking-tight`},ye={key:1,class:`text-sm text-muted-foreground`},be={class:`mt-2 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},xe=[`href`],Se={key:1,class:`truncate text-muted-foreground`},Ce={class:`flex shrink-0 flex-wrap gap-2 sm:flex-col`},we={class:`rounded-lg border bg-card`},Te={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ee={class:`font-normal text-muted-foreground`},De={key:0,class:`overflow-hidden rounded-b-lg`},Oe={class:`-mr-px -mb-px grid sm:grid-cols-2 xl:grid-cols-3`},ke=[`onClick`],Ae={class:`min-w-0 flex-1`},je={class:`block truncate text-sm font-medium`},Me={class:`block truncate text-xs text-muted-foreground`},Ne=[`title`],Pe={key:0,class:`flex items-center gap-1 px-4 pb-2.5 pl-16`},Fe=[`title`,`onClick`],Ie={key:0,class:`ml-1 text-xs text-muted-foreground`},Le={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},Re={key:0,class:`grid gap-5`},ze={key:0,class:`rounded-lg border bg-card`},Be={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ve={class:`p-2`},He={key:0,class:`absolute top-9 bottom-0 left-[1.45rem] w-px bg-border`,"aria-hidden":`true`},Ue=[`onClick`],We={class:`min-w-0`},Ge={class:`block truncate text-sm font-medium`},Ke={class:`block truncate text-xs text-muted-foreground`},qe={key:1,class:`rounded-lg border bg-card`},Je={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ye={class:`font-normal text-muted-foreground`},Xe={class:`max-h-80 overflow-y-auto p-2`},Ze=[`onClick`],Qe={class:`min-w-0`},$e={class:`block truncate text-[13px] font-medium`},et={class:`block truncate text-xs text-muted-foreground`},tt={__name:`OrgFocus`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},path:{type:Array,default:()=>[]},details:{type:Object,required:!0}},emits:[`focus`,`show-in-tree`],setup(n){let i=n,l=d(()=>{let e=new Map;return[...i.roots,...Object.values(i.teams).flat()].forEach(t=>e.set(t.id,t)),e}),u=d(()=>i.path.slice(0,-1).map(e=>l.value.get(e)).filter(Boolean)),g=d(()=>u.value.at(-1)??null),v=d(()=>g.value?(i.teams[g.value.id]??[]).filter(e=>e.id!==i.details.id):[]),x=d(()=>i.teams[i.details.id]??[]),C=d(()=>[{icon:D,value:i.details.email,href:`mailto:${i.details.email}`},{icon:I,value:i.details.phone,href:i.details.phone&&`tel:${i.details.phone}`},{icon:R,value:i.details.mobile,href:i.details.mobile&&`tel:${i.details.mobile}`},{icon:E,value:[i.details.department,i.details.location].filter(Boolean).join(` · `)}].filter(e=>e.value));return(i,l)=>(f(),s(`div`,{class:a([`grid items-start gap-5`,{"lg:grid-cols-[minmax(0,1fr)_19rem]":u.value.length||v.value.length}])},[o(`div`,me,[o(`section`,he,[o(`span`,{class:a([`absolute inset-y-0 left-0 w-1`,r(j)(n.details.department).bar]),"aria-hidden":`true`},null,2),o(`div`,ge,[e(A,{person:n.details,class:`size-20 text-xl ring-4 ring-brand-soft`},null,8,[`person`]),o(`div`,_e,[n.details.department?(f(),s(`p`,{key:0,class:a([`text-[11px] font-semibold tracking-wide uppercase`,r(j)(n.details.department).text])},h(n.details.department),3)):b(``,!0),o(`h2`,ve,h(n.details.name),1),n.details.job_title?(f(),s(`p`,ye,h(n.details.job_title),1)):b(``,!0),o(`ul`,be,[(f(!0),s(p,null,c(C.value,e=>(f(),s(`li`,{key:e.value,class:`flex min-w-0 items-center gap-1.5`},[(f(),_(y(e.icon),{class:`size-3.5 shrink-0 text-muted-foreground`})),e.href?(f(),s(`a`,{key:0,href:e.href,class:`truncate text-brand-text hover:underline`},h(e.value),9,xe)):(f(),s(`span`,Se,h(e.value),1))]))),128))])]),o(`div`,Ce,[e(r(V),{size:`sm`,"as-child":``},{default:m(()=>[e(r(S),{href:`/personen/${n.details.id}`},{default:m(()=>[e(r(T)),l[1]||=t(` Profil`,-1)]),_:1},8,[`href`])]),_:1}),e(r(V),{variant:`outline`,size:`sm`,onClick:l[0]||=e=>i.$emit(`show-in-tree`,n.details)},{default:m(()=>[e(r(k)),l[2]||=t(` Im Baum`,-1)]),_:1})])])]),o(`section`,we,[o(`h3`,Te,[e(r(O),{class:`size-4 text-brand-text`}),l[3]||=t(` Direkt unterstellt `,-1),o(`span`,Ee,h(x.value.length),1)]),x.value.length?(f(),s(`div`,De,[o(`ul`,Oe,[(f(!0),s(p,null,c(x.value,a=>(f(),s(`li`,{key:a.id,class:`border-r border-b hover:bg-accent/60`},[o(`button`,{type:`button`,class:`flex w-full items-center gap-3 px-4 py-3 text-left`,onClick:e=>i.$emit(`focus`,a)},[e(A,{person:a,class:`size-9`},null,8,[`person`]),o(`span`,Ae,[o(`span`,je,h(a.name),1),o(`span`,Me,h(a.job_title||`–`),1)]),a.reports?(f(),s(`span`,{key:0,class:`inline-flex shrink-0 items-center gap-1 rounded-full bg-brand-soft px-2 py-0.5 text-[11px] font-medium text-brand-soft-foreground`,title:`${a.reports} im Team`},[e(r(O),{class:`size-3`}),t(` `+h(a.reports),1)],8,Ne)):b(``,!0)],8,ke),n.teams[a.id]?.length?(f(),s(`div`,Pe,[(f(!0),s(p,null,c(n.teams[a.id].slice(0,7),t=>(f(),s(`button`,{key:t.id,type:`button`,class:`-ml-1 rounded-full ring-2 ring-card first:ml-0 hover:ring-brand-300`,title:`${t.name}${t.job_title?` – `+t.job_title:``}`,onClick:e=>i.$emit(`focus`,t)},[e(A,{person:t,class:`size-6 text-[9px]`},null,8,[`person`])],8,Fe))),128)),n.teams[a.id].length>7?(f(),s(`span`,Ie,`+`+h(n.teams[a.id].length-7),1)):b(``,!0)])):b(``,!0)]))),128))])])):(f(),s(`p`,Le,`Keine direkt unterstellten Personen.`))])]),u.value.length||v.value.length?(f(),s(`aside`,Re,[u.value.length?(f(),s(`section`,ze,[o(`h3`,Be,[e(r(L),{class:`size-4 text-brand-text`}),l[4]||=t(` Berichtet an`,-1)]),o(`ol`,Ve,[(f(!0),s(p,null,c([...u.value].reverse(),(t,n)=>(f(),s(`li`,{key:t.id,class:`relative`},[ni.$emit(`focus`,t)},[e(A,{person:t,class:`size-8 text-[11px]`},null,8,[`person`]),o(`span`,We,[o(`span`,Ge,h(t.name),1),o(`span`,Ke,h(t.job_title||t.department||`–`),1)])],8,Ue)]))),128))])])):b(``,!0),v.value.length?(f(),s(`section`,qe,[o(`h3`,Je,[e(r(O),{class:`size-4 text-brand-text`}),l[5]||=t(` Im selben Team `,-1),o(`span`,Ye,h(v.value.length),1)]),o(`ul`,Xe,[(f(!0),s(p,null,c(v.value,t=>(f(),s(`li`,{key:t.id},[o(`button`,{type:`button`,class:`flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left hover:bg-accent`,onClick:e=>i.$emit(`focus`,t)},[e(A,{person:t,class:`size-7 text-[10px]`},null,8,[`person`]),o(`span`,Qe,[o(`span`,$e,h(t.name),1),o(`span`,et,h(t.job_title||`–`),1)])],8,Ze)]))),128))])])):b(``,!0)])):b(``,!0)],2))}},$={class:`flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center`},nt={class:`inline-flex self-start rounded-md border bg-card p-0.5`,role:`group`,"aria-label":`Ansicht`},rt=[`aria-pressed`,`onClick`],it={class:`relative sm:w-80`},at={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-72 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},ot=[`onClick`],st={class:`min-w-0`},ct={class:`block truncate font-medium`},lt={class:`block truncate text-xs text-muted-foreground`},ut={key:0,class:`rounded-lg border bg-card`},dt={key:0,class:`mb-3 flex items-center gap-2 text-[13px]`},ft={key:1,class:`mb-3 flex flex-wrap gap-x-4 gap-y-1.5 text-xs text-muted-foreground`,"aria-label":`Abteilungen`},pt={key:3,class:`mt-4 text-[13px] text-muted-foreground`},mt={__name:`Organigram`,props:{roots:{type:Array,required:!0},path:{type:Array,default:()=>[]},open:{type:Array,default:()=>[]},teams:{type:Object,default:()=>({})},focus:{type:Number,default:null},details:{type:Object,default:null},view:{type:String,default:`baum`},stats:{type:Object,default:()=>({people:0,leaders:0})},unassigned:{type:Number,default:0}},setup(i){let u=i,g=W(`organigram.view`,`baum`,[`baum`,`fokus`]);l(()=>{!new URLSearchParams(window.location.search).has(`ansicht`)&&g.value!==u.view&&C(g.value,u.focus,!0)}),n(()=>u.view,e=>g.value=e);function C(e,t=u.focus,n=!1){let r={ansicht:e};t&&(r.person=t),x.get(`/personen/organigramm`,r,{preserveScroll:e===`fokus`,replace:n})}let w=v(``),T=v([]),E;n(w,e=>{if(clearTimeout(E),e.trim().length<2){T.value=[];return}E=setTimeout(async()=>{T.value=(await F.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`)).people},250)});function D(e){w.value=``,T.value=[],C(u.view,e.id)}let O=e=>e.toLocaleString(`de-DE`),N=d(()=>[...new Set([...u.roots,...Object.values(u.teams).flat()].map(e=>e.department).filter(Boolean))].sort((e,t)=>e.localeCompare(t,`de`)).slice(0,16));return(n,l)=>(f(),_(M,{title:`Organigramm`},{default:m(()=>[e(B,{title:`Organigramm`,breadcrumbs:[{label:`Personen`,href:`/personen`}],description:`${O(i.stats.people)} Personen · ${O(i.stats.leaders)} mit Personalverantwortung`},{actions:m(()=>[o(`div`,$,[o(`div`,nt,[(f(!0),s(p,null,c([{key:`baum`,icon:r(k),label:`Baum`},{key:`fokus`,icon:r(K),label:`Fokus`}],e=>(f(),s(`button`,{key:e.key,type:`button`,class:a([`inline-flex h-9 items-center gap-1.5 rounded px-3 text-[13px]`,i.view===e.key?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":i.view===e.key,onClick:t=>i.view!==e.key&&C(e.key)},[(f(),_(y(e.icon),{class:`size-4`})),t(` `+h(e.label),1)],10,rt))),128))]),o(`div`,it,[e(r(ee),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(r(H),{modelValue:w.value,"onUpdate:modelValue":l[0]||=e=>w.value=e,class:`h-10 bg-card pl-9`,placeholder:`Person finden …`,"aria-label":`Person im Organigramm finden`,autocomplete:`off`},null,8,[`modelValue`]),T.value.length?(f(),s(`ul`,at,[(f(!0),s(p,null,c(T.value,t=>(f(),s(`li`,{key:t.id},[o(`button`,{type:`button`,class:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm hover:bg-accent`,onClick:e=>D(t)},[e(A,{person:t,class:`size-7 text-[10px]`},null,8,[`person`]),o(`span`,st,[o(`span`,ct,h(t.name),1),o(`span`,lt,h(t.job_title),1)])],8,ot)]))),128))])):b(``,!0)])])]),_:1},8,[`description`]),i.roots.length?i.view===`fokus`&&i.details?(f(),_(tt,{key:1,roots:i.roots,teams:i.teams,path:i.path,details:i.details,onFocus:l[1]||=e=>C(`fokus`,e.id),onShowInTree:l[2]||=e=>C(`baum`,e.id)},null,8,[`roots`,`teams`,`path`,`details`])):(f(),s(p,{key:2},[i.focus?(f(),s(`div`,dt,[l[5]||=o(`span`,{class:`text-muted-foreground`},`Der Weg zur gesuchten Person ist aufgeklappt.`,-1),e(r(S),{href:`/personen/organigramm?ansicht=baum`,class:`inline-flex items-center gap-1 font-medium text-brand-text hover:underline`},{default:m(()=>[e(r(P),{class:`size-3.5`}),l[4]||=t(` Zurücksetzen`,-1)]),_:1})])):b(``,!0),N.value.length>1?(f(),s(`ul`,ft,[(f(!0),s(p,null,c(N.value,e=>(f(),s(`li`,{key:e,class:`flex items-center gap-1.5`},[o(`span`,{class:a([`size-2.5 rounded-sm`,r(j)(e).bar])},null,2),t(h(e),1)]))),128))])):b(``,!0),e(pe,{roots:i.roots,teams:i.teams,open:i.open,focus:i.focus,onFocus:l[3]||=e=>C(`fokus`,e.id)},null,8,[`roots`,`teams`,`open`,`focus`])],64)):(f(),s(`div`,ut,[e(z,{icon:r(k),title:`Noch kein Organigramm`,text:`Es sind noch keine Vorgesetzten hinterlegt. Sie kommen aus dem Anmeldedienst (z. B. Entra ID) oder werden im Admin-Bereich bei den Benutzern eingetragen.`},null,8,[`icon`])])),i.unassigned?(f(),s(`p`,pt,h(i.unassigned===1?`1 Person`:`${O(i.unassigned)} Personen`)+` ohne Vorgesetzte*n und ohne Team `+h(i.unassigned===1?`erscheint`:`erscheinen`)+` hier nicht. `,1)):b(``,!0)]),_:1}))}};export{mt as default}; \ No newline at end of file diff --git a/public/build/assets/PageContent-DK_3i7FH.js b/public/build/assets/PageContent-DK_3i7FH.js new file mode 100644 index 00000000..8e6e4d46 --- /dev/null +++ b/public/build/assets/PageContent-DK_3i7FH.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Accordion-BX1-UHdr.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-CleIz2GP.js","assets/AppIcon-SVMShh8s.js","assets/app-Dy5FbYkt.js","assets/app-BXGstlVh.css","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/isValueEqualOrExist-BDaOcy4r.js","assets/Box-anuOZX0-.js","assets/circle-alert-qymEjja5.js","assets/Buttons-DQQEn_A2.js","assets/button-SRYY3-ko.js","assets/Columns-TRpz0IQV.js","assets/Contacts-B--3_7OC.js","assets/Divider-Cy8eDUk0.js","assets/Gallery-BjJmayrq.js","assets/dialog-DrnG5a9r.js","assets/Heading-DMxvt-j4.js","assets/Hero-RvLVeHgr.js","assets/IconList-KA43UvHu.js","assets/Image-CXHRAtOC.js","assets/Quote-iODkllPL.js","assets/Section-DitqUeMx.js","assets/Spacer-B_j09dx4.js","assets/Table-Cen5s9kd.js","assets/Tabs-BcYhgnba.js","assets/RovingFocusItem-DX1SmLL8.js","assets/Text-g2hXGkne.js","assets/Video-CPWoETOd.js","assets/play-_hM1KTvn.js","assets/BirthdaysBlock-B1d6oFTq.js","assets/BirthdayItem-1R7P_7L0.js","assets/FolderBlock-DBNJ8vSM.js","assets/chevron-right-DR4LjgDm.js","assets/download-cH_7CRKx.js","assets/FileIcon-LA1rFyBK.js","assets/UpcomingEvents-8IRx5hcQ.js","assets/EventListItem-CtMhLvQC.js","assets/EventDateBlock-DzdXYi61.js","assets/FormBlock-D_yNR5Ol.js","assets/FormRenderer-BI08HA0r.js","assets/eye-off-DWbaLHNt.js","assets/lock-4X8Kfof0.js","assets/paperclip-D1QLTe3x.js","assets/send-BevoJaJI.js","assets/NativeSelect-BBbvK4oZ.js","assets/Input-CgjHXzkf.js","assets/dist-BRRmd-wM.js","assets/Textarea-DWpyL-nk.js","assets/LatestNews-C_qKJews.js","assets/NewsCard-BnbSPjUt.js","assets/NewsImage-BzxvsZoE.js","assets/NewsListItem-Bak5OcQP.js","assets/Downloads-BbH66euM.js","assets/Subpages-BVkH9WFX.js"])))=>i.map(i=>d[i]); +import{D as e,J as t,O as n,On as r,b as i,bt as a,g as o,gt as s,mt as c,o as l,v as u,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as p}from"./app-Dy5FbYkt.js";var m=Object.assign({"./blocks/Accordion.vue":()=>p(()=>import(`./Accordion-BX1-UHdr.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),"./blocks/Box.vue":()=>p(()=>import(`./Box-anuOZX0-.js`),__vite__mapDeps([11,2,5,1,3,4,6,7,8,9,12])),"./blocks/Buttons.vue":()=>p(()=>import(`./Buttons-DQQEn_A2.js`),__vite__mapDeps([13,2,4,14])),"./blocks/Columns.vue":()=>p(()=>import(`./Columns-TRpz0IQV.js`),__vite__mapDeps([15,2])),"./blocks/Contacts.vue":()=>p(()=>import(`./Contacts-B--3_7OC.js`),__vite__mapDeps([16,2,6,3,7,5,1,4,8,9])),"./blocks/Divider.vue":()=>p(()=>import(`./Divider-Cy8eDUk0.js`),__vite__mapDeps([17,2])),"./blocks/Gallery.vue":()=>p(()=>import(`./Gallery-BjJmayrq.js`),__vite__mapDeps([18,2,5,1,3,4,6,7,8,9,19,14])),"./blocks/Heading.vue":()=>p(()=>import(`./Heading-DMxvt-j4.js`),__vite__mapDeps([20,2,3])),"./blocks/Hero.vue":()=>p(()=>import(`./Hero-RvLVeHgr.js`),__vite__mapDeps([21,2,14,4])),"./blocks/IconList.vue":()=>p(()=>import(`./IconList-KA43UvHu.js`),__vite__mapDeps([22,2,5,1,3,4,6,7,8,9])),"./blocks/Image.vue":()=>p(()=>import(`./Image-CXHRAtOC.js`),__vite__mapDeps([23,2,5,1,3,4,6,7,8,9])),"./blocks/Quote.vue":()=>p(()=>import(`./Quote-iODkllPL.js`),__vite__mapDeps([24,2])),"./blocks/Section.vue":()=>p(()=>import(`./Section-DitqUeMx.js`),__vite__mapDeps([25,2])),"./blocks/Spacer.vue":()=>p(()=>import(`./Spacer-B_j09dx4.js`),__vite__mapDeps([26,2])),"./blocks/Table.vue":()=>p(()=>import(`./Table-Cen5s9kd.js`),__vite__mapDeps([27,2])),"./blocks/Tabs.vue":()=>p(()=>import(`./Tabs-BcYhgnba.js`),__vite__mapDeps([28,1,2,3,4,8,29])),"./blocks/Text.vue":()=>p(()=>import(`./Text-g2hXGkne.js`),__vite__mapDeps([30,2,6,3,7])),"./blocks/Video.vue":()=>p(()=>import(`./Video-CPWoETOd.js`),__vite__mapDeps([31,2,5,1,3,4,6,7,8,9,32]))}),h=Object.assign({"../../../plugins-core/birthdays/resources/js/blocks/BirthdaysBlock.vue":()=>p(()=>import(`./BirthdaysBlock-B1d6oFTq.js`),__vite__mapDeps([33,2,34,6,3,7,5,1,4,8,9])),"../../../plugins-core/downloads/resources/js/blocks/FolderBlock.vue":()=>p(()=>import(`./FolderBlock-DBNJ8vSM.js`),__vite__mapDeps([35,2,6,3,7,36,4,37,38,5,1,8,9])),"../../../plugins-core/events/resources/js/blocks/UpcomingEvents.vue":()=>p(()=>import(`./UpcomingEvents-8IRx5hcQ.js`),__vite__mapDeps([39,2,6,3,7,36,4,40,5,1,8,9,41])),"../../../plugins-core/forms/resources/js/blocks/FormBlock.vue":()=>p(()=>import(`./FormBlock-D_yNR5Ol.js`),__vite__mapDeps([42,2,43,3,6,7,4,9,1,44,45,46,47,14,48,49,50,51])),"../../../plugins-core/news/resources/js/blocks/LatestNews.vue":()=>p(()=>import(`./LatestNews-C_qKJews.js`),__vite__mapDeps([52,2,6,3,7,36,4,53,5,1,8,9,54,55])),"../../../plugins-core/pages/resources/js/blocks/Downloads.vue":()=>p(()=>import(`./Downloads-BbH66euM.js`),__vite__mapDeps([56,2,5,1,3,4,6,7,8,9,37])),"../../../plugins-core/pages/resources/js/blocks/Subpages.vue":()=>p(()=>import(`./Subpages-BVkH9WFX.js`),__vite__mapDeps([57,2,6,3,7,5,1,4,8,9,36]))}),g={};for(let[e,t]of Object.entries(m))g[e.split(`/`).pop().replace(`.vue`,``)]=n(t);for(let[e,t]of Object.entries(h)){let[,r]=e.match(/plugins-core\/([^/]+)\//);g[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=n(t)}function _(e){return g[e]??null}var v={class:`grid gap-6`},y={__name:`BlockList`,props:{item:{type:Object,required:!0}},setup(e){let n=t(`pagebuilder:types`,{});return(t,o)=>(c(),i(`div`,v,[(c(!0),i(l,null,a(e.item.blocks,e=>(c(),i(l,{key:e.id},[r(_)(r(n)[e.type]?.component??e.component??``)?(c(),u(d(r(_)(r(n)[e.type]?.component??e.component??``)),{key:0,block:e},null,8,[`block`])):f(``,!0)],64))),128))]))}},b={class:`@container`},x={__name:`PageContent`,props:{content:{type:Object,required:!0},types:{type:Object,default:null}},setup(t){let n=t;s(`pagebuilder:list`,y),s(`pagebuilder:editing`,!1),s(`pagebuilder:types`,n.types??{});let r=o(()=>({blocks:n.content.blocks??[]}));return(t,n)=>(c(),i(`div`,b,[e(y,{item:r.value},null,8,[`item`])]))}};export{_ as n,x as t}; \ No newline at end of file diff --git a/public/build/assets/PageContent-DplopdM5.js b/public/build/assets/PageContent-DplopdM5.js deleted file mode 100644 index efa16150..00000000 --- a/public/build/assets/PageContent-DplopdM5.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Accordion-qBB3ElDl.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-CleIz2GP.js","assets/AppIcon-BVHFLm12.js","assets/app-CIvn5Z1l.js","assets/app-BZMCjaRn.css","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/isValueEqualOrExist-BDaOcy4r.js","assets/Box-Bm0v4HQS.js","assets/circle-alert-qymEjja5.js","assets/Buttons-DQQEn_A2.js","assets/button-SRYY3-ko.js","assets/Columns-TRpz0IQV.js","assets/Contacts-pzJUQND2.js","assets/Divider-Cy8eDUk0.js","assets/Gallery-BTjs-P7R.js","assets/dialog-bBqX5pN5.js","assets/Heading-DMxvt-j4.js","assets/Hero-RvLVeHgr.js","assets/IconList-DoadxhSr.js","assets/Image-DD-CaJzl.js","assets/Quote-iODkllPL.js","assets/Section-DitqUeMx.js","assets/Spacer-B_j09dx4.js","assets/Table-Cen5s9kd.js","assets/Tabs-BcYhgnba.js","assets/RovingFocusItem-DX1SmLL8.js","assets/Text-DMEdDK2X.js","assets/Video-9vSfEOM0.js","assets/play-_hM1KTvn.js","assets/BirthdaysBlock-ClAbA8ni.js","assets/BirthdayItem-DK6xURSZ.js","assets/FolderBlock-BAOKZUHJ.js","assets/chevron-right-DR4LjgDm.js","assets/download-cH_7CRKx.js","assets/FileIcon-BHQ0ftg2.js","assets/UpcomingEvents-xsZFQZUF.js","assets/EventListItem-C_pDZ4ur.js","assets/EventDateBlock-Cxz_hY6g.js","assets/FormBlock-Dj-egPqI.js","assets/FormRenderer-nT5JUcxg.js","assets/eye-off-DWbaLHNt.js","assets/lock-4X8Kfof0.js","assets/send-BevoJaJI.js","assets/NativeSelect-BBbvK4oZ.js","assets/Input-CgjHXzkf.js","assets/dist-BRRmd-wM.js","assets/Textarea-DWpyL-nk.js","assets/LatestNews-D_wqcUcS.js","assets/NewsCard-CWMFENyt.js","assets/NewsImage-31QS1JbU.js","assets/NewsListItem-DmR535f5.js","assets/Downloads-BCdWiVDF.js","assets/Subpages-C2cf5Oaf.js"])))=>i.map(i=>d[i]); -import{D as e,J as t,O as n,On as r,b as i,bt as a,g as o,gt as s,mt as c,o as l,v as u,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as p}from"./app-CIvn5Z1l.js";var m=Object.assign({"./blocks/Accordion.vue":()=>p(()=>import(`./Accordion-qBB3ElDl.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),"./blocks/Box.vue":()=>p(()=>import(`./Box-Bm0v4HQS.js`),__vite__mapDeps([11,2,5,1,3,4,6,7,8,9,12])),"./blocks/Buttons.vue":()=>p(()=>import(`./Buttons-DQQEn_A2.js`),__vite__mapDeps([13,2,4,14])),"./blocks/Columns.vue":()=>p(()=>import(`./Columns-TRpz0IQV.js`),__vite__mapDeps([15,2])),"./blocks/Contacts.vue":()=>p(()=>import(`./Contacts-pzJUQND2.js`),__vite__mapDeps([16,2,6,3,7,5,1,4,8,9])),"./blocks/Divider.vue":()=>p(()=>import(`./Divider-Cy8eDUk0.js`),__vite__mapDeps([17,2])),"./blocks/Gallery.vue":()=>p(()=>import(`./Gallery-BTjs-P7R.js`),__vite__mapDeps([18,2,5,1,3,4,6,7,8,9,19,14])),"./blocks/Heading.vue":()=>p(()=>import(`./Heading-DMxvt-j4.js`),__vite__mapDeps([20,2,3])),"./blocks/Hero.vue":()=>p(()=>import(`./Hero-RvLVeHgr.js`),__vite__mapDeps([21,2,14,4])),"./blocks/IconList.vue":()=>p(()=>import(`./IconList-DoadxhSr.js`),__vite__mapDeps([22,2,5,1,3,4,6,7,8,9])),"./blocks/Image.vue":()=>p(()=>import(`./Image-DD-CaJzl.js`),__vite__mapDeps([23,2,5,1,3,4,6,7,8,9])),"./blocks/Quote.vue":()=>p(()=>import(`./Quote-iODkllPL.js`),__vite__mapDeps([24,2])),"./blocks/Section.vue":()=>p(()=>import(`./Section-DitqUeMx.js`),__vite__mapDeps([25,2])),"./blocks/Spacer.vue":()=>p(()=>import(`./Spacer-B_j09dx4.js`),__vite__mapDeps([26,2])),"./blocks/Table.vue":()=>p(()=>import(`./Table-Cen5s9kd.js`),__vite__mapDeps([27,2])),"./blocks/Tabs.vue":()=>p(()=>import(`./Tabs-BcYhgnba.js`),__vite__mapDeps([28,1,2,3,4,8,29])),"./blocks/Text.vue":()=>p(()=>import(`./Text-DMEdDK2X.js`),__vite__mapDeps([30,2,6,3,7])),"./blocks/Video.vue":()=>p(()=>import(`./Video-9vSfEOM0.js`),__vite__mapDeps([31,2,5,1,3,4,6,7,8,9,32]))}),h=Object.assign({"../../../plugins-core/birthdays/resources/js/blocks/BirthdaysBlock.vue":()=>p(()=>import(`./BirthdaysBlock-ClAbA8ni.js`),__vite__mapDeps([33,2,34,6,3,7,5,1,4,8,9])),"../../../plugins-core/downloads/resources/js/blocks/FolderBlock.vue":()=>p(()=>import(`./FolderBlock-BAOKZUHJ.js`),__vite__mapDeps([35,2,6,3,7,36,4,37,38,5,1,8,9])),"../../../plugins-core/events/resources/js/blocks/UpcomingEvents.vue":()=>p(()=>import(`./UpcomingEvents-xsZFQZUF.js`),__vite__mapDeps([39,2,6,3,7,36,4,40,5,1,8,9,41])),"../../../plugins-core/forms/resources/js/blocks/FormBlock.vue":()=>p(()=>import(`./FormBlock-Dj-egPqI.js`),__vite__mapDeps([42,2,43,3,6,7,4,9,1,44,45,46,14,47,48,49,50])),"../../../plugins-core/news/resources/js/blocks/LatestNews.vue":()=>p(()=>import(`./LatestNews-D_wqcUcS.js`),__vite__mapDeps([51,2,6,3,7,36,4,52,5,1,8,9,53,54])),"../../../plugins-core/pages/resources/js/blocks/Downloads.vue":()=>p(()=>import(`./Downloads-BCdWiVDF.js`),__vite__mapDeps([55,2,5,1,3,4,6,7,8,9,37])),"../../../plugins-core/pages/resources/js/blocks/Subpages.vue":()=>p(()=>import(`./Subpages-C2cf5Oaf.js`),__vite__mapDeps([56,2,6,3,7,5,1,4,8,9,36]))}),g={};for(let[e,t]of Object.entries(m))g[e.split(`/`).pop().replace(`.vue`,``)]=n(t);for(let[e,t]of Object.entries(h)){let[,r]=e.match(/plugins-core\/([^/]+)\//);g[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=n(t)}function _(e){return g[e]??null}var v={class:`grid gap-6`},y={__name:`BlockList`,props:{item:{type:Object,required:!0}},setup(e){let n=t(`pagebuilder:types`,{});return(t,o)=>(c(),i(`div`,v,[(c(!0),i(l,null,a(e.item.blocks,e=>(c(),i(l,{key:e.id},[r(_)(r(n)[e.type]?.component??e.component??``)?(c(),u(d(r(_)(r(n)[e.type]?.component??e.component??``)),{key:0,block:e},null,8,[`block`])):f(``,!0)],64))),128))]))}},b={class:`@container`},x={__name:`PageContent`,props:{content:{type:Object,required:!0},types:{type:Object,default:null}},setup(t){let n=t;s(`pagebuilder:list`,y),s(`pagebuilder:editing`,!1),s(`pagebuilder:types`,n.types??{});let r=o(()=>({blocks:n.content.blocks??[]}));return(t,n)=>(c(),i(`div`,b,[e(y,{item:r.value},null,8,[`item`])]))}};export{_ as n,x as t}; \ No newline at end of file diff --git a/public/build/assets/PageHeader-CWL5ThBH.js b/public/build/assets/PageHeader-CWL5ThBH.js deleted file mode 100644 index 17e1631e..00000000 --- a/public/build/assets/PageHeader-CWL5ThBH.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,xt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-CIvn5Z1l.js";import{t as m}from"./chevron-right-DR4LjgDm.js";var h={class:`mb-6 flex flex-wrap items-end justify-between gap-x-6 gap-y-4`},g={class:`min-w-0`},_={key:0,class:`mb-1 flex flex-wrap items-center gap-1 text-[13px] text-muted-foreground`,"aria-label":`Brotkrumen`},v={class:`text-2xl leading-tight font-semibold tracking-tight`},y={key:1,class:`mt-1 max-w-3xl text-sm text-muted-foreground`},b={key:0,class:`flex w-full flex-wrap items-center gap-2 sm:w-auto`},x={__name:`PageHeader`,props:{title:{type:String,required:!0},description:{type:String,default:``},breadcrumbs:{type:Array,default:()=>[]}},setup(x){return(S,C)=>(o(),i(`header`,h,[r(`div`,g,[x.breadcrumbs.length?(o(),i(`nav`,_,[(o(!0),i(s,null,a(x.breadcrumbs,(r,a)=>(o(),i(s,{key:r.href},[a?(o(),u(n(m),{key:0,class:`size-3.5`})):f(``,!0),e(n(p),{href:r.href,class:`hover:text-foreground hover:underline`},{default:c(()=>[t(l(r.label),1)]),_:2},1032,[`href`])],64))),128))])):f(``,!0),r(`h1`,v,l(x.title),1),x.description||S.$slots.description?(o(),i(`p`,y,[d(S.$slots,`description`,{},()=>[t(l(x.description),1)])])):f(``,!0)]),S.$slots.actions?(o(),i(`div`,b,[d(S.$slots,`actions`)])):f(``,!0)]))}};export{x as t}; \ No newline at end of file diff --git a/public/build/assets/PageHeader-Dcr3nLVu.js b/public/build/assets/PageHeader-Dcr3nLVu.js new file mode 100644 index 00000000..3ced6511 --- /dev/null +++ b/public/build/assets/PageHeader-Dcr3nLVu.js @@ -0,0 +1 @@ +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,xt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-Dy5FbYkt.js";import{t as m}from"./chevron-right-DR4LjgDm.js";var h={class:`mb-6 flex flex-wrap items-end justify-between gap-x-6 gap-y-4`},g={class:`flex min-w-0 items-end gap-3.5`},_={class:`min-w-0`},v={key:0,class:`mb-1 flex flex-wrap items-center gap-1 text-[13px] text-muted-foreground`,"aria-label":`Brotkrumen`},y={class:`text-2xl leading-tight font-semibold tracking-tight`},b={key:1,class:`mt-1 max-w-3xl text-sm text-muted-foreground`},x={key:0,class:`flex w-full flex-wrap items-center gap-2 sm:w-auto`},S={__name:`PageHeader`,props:{title:{type:String,required:!0},description:{type:String,default:``},breadcrumbs:{type:Array,default:()=>[]}},setup(S){return(C,w)=>(o(),i(`header`,h,[r(`div`,g,[d(C.$slots,`leading`),r(`div`,_,[S.breadcrumbs.length?(o(),i(`nav`,v,[(o(!0),i(s,null,a(S.breadcrumbs,(r,a)=>(o(),i(s,{key:r.href},[a?(o(),u(n(m),{key:0,class:`size-3.5`})):f(``,!0),e(n(p),{href:r.href,class:`hover:text-foreground hover:underline`},{default:c(()=>[t(l(r.label),1)]),_:2},1032,[`href`])],64))),128))])):f(``,!0),r(`h1`,y,l(S.title),1),S.description||C.$slots.description?(o(),i(`p`,b,[d(C.$slots,`description`,{},()=>[t(l(S.description),1)])])):f(``,!0)])]),C.$slots.actions?(o(),i(`div`,x,[d(C.$slots,`actions`)])):f(``,!0)]))}};export{S as t}; \ No newline at end of file diff --git a/public/build/assets/Panel-xPHuwfuu.js b/public/build/assets/Panel-DF-wChKt.js similarity index 93% rename from public/build/assets/Panel-xPHuwfuu.js rename to public/build/assets/Panel-DF-wChKt.js index 604fe9f5..34734b05 100644 --- a/public/build/assets/Panel-xPHuwfuu.js +++ b/public/build/assets/Panel-DF-wChKt.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,mt as o,qt as s,tr as c,v as l,xt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CIvn5Z1l.js";import{t as p}from"./chevron-right-DR4LjgDm.js";var m={class:`rounded-lg border bg-card text-card-foreground`},h={key:0,class:`flex items-center justify-between gap-4 px-5 pt-4 pb-3`},g={class:`text-base font-semibold`},_={__name:`Panel`,props:{title:{type:String,default:``},actionLabel:{type:String,default:``},actionHref:{type:String,default:``}},setup(_){return(v,y)=>(o(),a(`section`,m,[_.title||v.$slots.actions?(o(),a(`header`,h,[i(`h2`,g,c(_.title),1),u(v.$slots,`actions`,{},()=>[_.actionHref?(o(),l(n(f),{key:0,href:_.actionHref,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:s(()=>[t(c(_.actionLabel)+` `,1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])])):d(``,!0),i(`div`,{class:r([`px-5 pb-5`,{"pt-5":!_.title&&!v.$slots.actions}])},[u(v.$slots,`default`)],2)]))}};export{_ as t}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,mt as o,qt as s,tr as c,v as l,xt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Dy5FbYkt.js";import{t as p}from"./chevron-right-DR4LjgDm.js";var m={class:`rounded-lg border bg-card text-card-foreground`},h={key:0,class:`flex items-center justify-between gap-4 px-5 pt-4 pb-3`},g={class:`text-base font-semibold`},_={__name:`Panel`,props:{title:{type:String,default:``},actionLabel:{type:String,default:``},actionHref:{type:String,default:``}},setup(_){return(v,y)=>(o(),a(`section`,m,[_.title||v.$slots.actions?(o(),a(`header`,h,[i(`h2`,g,c(_.title),1),u(v.$slots,`actions`,{},()=>[_.actionHref?(o(),l(n(f),{key:0,href:_.actionHref,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:s(()=>[t(c(_.actionLabel)+` `,1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])])):d(``,!0),i(`div`,{class:r([`px-5 pb-5`,{"pt-5":!_.title&&!v.$slots.actions}])},[u(v.$slots,`default`)],2)]))}};export{_ as t}; \ No newline at end of file diff --git a/public/build/assets/PeopleSearch-lOnxyLDv.js b/public/build/assets/PeopleSearch-C2eKM9Kj.js similarity index 89% rename from public/build/assets/PeopleSearch-lOnxyLDv.js rename to public/build/assets/PeopleSearch-C2eKM9Kj.js index 252c9f9e..04d6b4c5 100644 --- a/public/build/assets/PeopleSearch-lOnxyLDv.js +++ b/public/build/assets/PeopleSearch-C2eKM9Kj.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,mt as i,qt as a,tr as o,v as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as c}from"./app-CIvn5Z1l.js";import{z as l}from"./AppIcon-BVHFLm12.js";import{t as u}from"./arrow-right-CdMsByuI.js";import{t as d}from"./Panel-xPHuwfuu.js";var f={action:`/personen`,method:`get`,class:`relative`,role:`search`},p={__name:`PeopleSearch`,props:{count:{type:Number,required:!0}},setup(p){return(m,h)=>(i(),s(d,{title:`Personen finden`},{default:a(()=>[r(`form`,f,[e(n(l),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),h[0]||=r(`input`,{name:`q`,type:`search`,placeholder:`Name, Funktion, Abteilung …`,class:`h-10 w-full rounded-md border border-input bg-background pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,-1)]),e(n(c),{href:`/personen`,class:`mt-4 flex items-center justify-between text-[13px] text-muted-foreground hover:text-foreground`},{default:a(()=>[t(o(p.count===1?`1 Person`:`${p.count.toLocaleString(`de-DE`)} Personen`)+` im Verzeichnis `,1),e(n(u),{class:`size-4`})]),_:1})]),_:1}))}};export{p as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,mt as i,qt as a,tr as o,v as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as c}from"./app-Dy5FbYkt.js";import{z as l}from"./AppIcon-SVMShh8s.js";import{t as u}from"./arrow-right-CdMsByuI.js";import{t as d}from"./Panel-DF-wChKt.js";var f={action:`/personen`,method:`get`,class:`relative`,role:`search`},p={__name:`PeopleSearch`,props:{count:{type:Number,required:!0}},setup(p){return(m,h)=>(i(),s(d,{title:`Personen finden`},{default:a(()=>[r(`form`,f,[e(n(l),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),h[0]||=r(`input`,{name:`q`,type:`search`,placeholder:`Name, Funktion, Abteilung …`,class:`h-10 w-full rounded-md border border-input bg-background pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,-1)]),e(n(c),{href:`/personen`,class:`mt-4 flex items-center justify-between text-[13px] text-muted-foreground hover:text-foreground`},{default:a(()=>[t(o(p.count===1?`1 Person`:`${p.count.toLocaleString(`de-DE`)} Personen`)+` im Verzeichnis `,1),e(n(u),{class:`size-4`})]),_:1})]),_:1}))}};export{p as default}; \ No newline at end of file diff --git a/public/build/assets/ProfileBirthday-CKO31Nfm.js b/public/build/assets/ProfileBirthday-zCmMKl8D.js similarity index 90% rename from public/build/assets/ProfileBirthday-CKO31Nfm.js rename to public/build/assets/ProfileBirthday-zCmMKl8D.js index bbd52106..844069b1 100644 --- a/public/build/assets/ProfileBirthday-CKO31Nfm.js +++ b/public/build/assets/ProfileBirthday-zCmMKl8D.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,g as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as d,r as f}from"./app-CIvn5Z1l.js";import{A as p}from"./dist-CleIz2GP.js";import{it as m}from"./AppIcon-BVHFLm12.js";import{o as h}from"./http-9R3L4KBg.js";import{t as g}from"./FormField-BcJMyuzX.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./NativeSelect-BBbvK4oZ.js";import{t as y}from"./Panel-xPHuwfuu.js";var b={class:`flex gap-2 text-sm text-muted-foreground`},x={class:`grid grid-cols-2 gap-4 sm:max-w-sm`},S={class:`flex justify-end gap-2 border-t pt-4`},C={__name:`ProfileBirthday`,props:{birthday:{type:Object,default:null},months:{type:Array,required:!0},scope:{type:String,default:`all`}},setup(C){let w=C,T=f({day:w.birthday?.day??null,month:w.birthday?.month??null}),E=i(()=>Array.from({length:31},(e,t)=>({value:t+1,label:String(t+1)}))),D={all:`allen Mitarbeitenden`,department:`Ihrer Abteilung`,location:`Ihrem Standort`};function O(){T.put(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.defaults(),h.success(`Geburtstag gespeichert`)}})}function k(){d.delete(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.day=null,T.month=null,T.defaults(),h.success(`Aus der Geburtstagsliste entfernt`)}})}return(i,d)=>(a(),c(y,{title:`Geburtstag`},{default:o(()=>[r(`form`,{class:`grid gap-4`,onSubmit:u(O,[`prevent`])},[r(`p`,b,[e(n(m),{class:`mt-0.5 size-4 shrink-0 text-brand-text`}),r(`span`,null,`Freiwillig: Wenn Sie Tag und Monat eintragen, erscheint Ihr Geburtstag in der Geburtstagsliste und ist `+s(D[C.scope])+` sichtbar. Das Geburtsjahr wird nicht erfasst. Austragen ist jederzeit möglich.`,1)]),r(`div`,x,[e(g,{id:`birthday-day`,label:`Tag`,error:n(T).errors.day},{default:o(()=>[e(v,{id:`birthday-day`,modelValue:n(T).day,"onUpdate:modelValue":d[0]||=e=>n(T).day=e,options:E.value,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(g,{id:`birthday-month`,label:`Monat`,error:n(T).errors.month},{default:o(()=>[e(v,{id:`birthday-month`,modelValue:n(T).month,"onUpdate:modelValue":d[1]||=e=>n(T).month=e,options:C.months,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])]),r(`div`,S,[C.birthday?(a(),c(n(_),{key:0,type:`button`,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:k},{default:o(()=>[...d[2]||=[t(`Austragen`,-1)]]),_:1})):l(``,!0),e(n(_),{type:`submit`,disabled:n(T).processing||!n(T).day||!n(T).month||!n(T).isDirty},{default:o(()=>[n(T).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),t(` `+s(C.birthday?`Speichern`:`Eintragen`),1)]),_:1},8,[`disabled`])])],32)]),_:1}))}};export{C as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,g as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as d,r as f}from"./app-Dy5FbYkt.js";import{A as p}from"./dist-CleIz2GP.js";import{it as m}from"./AppIcon-SVMShh8s.js";import{o as h}from"./http-9R3L4KBg.js";import{t as g}from"./FormField-BcJMyuzX.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./NativeSelect-BBbvK4oZ.js";import{t as y}from"./Panel-DF-wChKt.js";var b={class:`flex gap-2 text-sm text-muted-foreground`},x={class:`grid grid-cols-2 gap-4 sm:max-w-sm`},S={class:`flex justify-end gap-2 border-t pt-4`},C={__name:`ProfileBirthday`,props:{birthday:{type:Object,default:null},months:{type:Array,required:!0},scope:{type:String,default:`all`}},setup(C){let w=C,T=f({day:w.birthday?.day??null,month:w.birthday?.month??null}),E=i(()=>Array.from({length:31},(e,t)=>({value:t+1,label:String(t+1)}))),D={all:`allen Mitarbeitenden`,department:`Ihrer Abteilung`,location:`Ihrem Standort`};function O(){T.put(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.defaults(),h.success(`Geburtstag gespeichert`)}})}function k(){d.delete(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.day=null,T.month=null,T.defaults(),h.success(`Aus der Geburtstagsliste entfernt`)}})}return(i,d)=>(a(),c(y,{title:`Geburtstag`},{default:o(()=>[r(`form`,{class:`grid gap-4`,onSubmit:u(O,[`prevent`])},[r(`p`,b,[e(n(m),{class:`mt-0.5 size-4 shrink-0 text-brand-text`}),r(`span`,null,`Freiwillig: Wenn Sie Tag und Monat eintragen, erscheint Ihr Geburtstag in der Geburtstagsliste und ist `+s(D[C.scope])+` sichtbar. Das Geburtsjahr wird nicht erfasst. Austragen ist jederzeit möglich.`,1)]),r(`div`,x,[e(g,{id:`birthday-day`,label:`Tag`,error:n(T).errors.day},{default:o(()=>[e(v,{id:`birthday-day`,modelValue:n(T).day,"onUpdate:modelValue":d[0]||=e=>n(T).day=e,options:E.value,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(g,{id:`birthday-month`,label:`Monat`,error:n(T).errors.month},{default:o(()=>[e(v,{id:`birthday-month`,modelValue:n(T).month,"onUpdate:modelValue":d[1]||=e=>n(T).month=e,options:C.months,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])]),r(`div`,S,[C.birthday?(a(),c(n(_),{key:0,type:`button`,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:k},{default:o(()=>[...d[2]||=[t(`Austragen`,-1)]]),_:1})):l(``,!0),e(n(_),{type:`submit`,disabled:n(T).processing||!n(T).day||!n(T).month||!n(T).isDirty},{default:o(()=>[n(T).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),t(` `+s(C.birthday?`Speichern`:`Eintragen`),1)]),_:1},8,[`disabled`])])],32)]),_:1}))}};export{C as default}; \ No newline at end of file diff --git a/public/build/assets/ProfileIncomplete-D_-55Kim.js b/public/build/assets/ProfileIncomplete-BXGHcWOo.js similarity index 82% rename from public/build/assets/ProfileIncomplete-D_-55Kim.js rename to public/build/assets/ProfileIncomplete-BXGHcWOo.js index 134f421f..cb818f77 100644 --- a/public/build/assets/ProfileIncomplete-D_-55Kim.js +++ b/public/build/assets/ProfileIncomplete-BXGHcWOo.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,mt as r,qt as i,v as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as o}from"./app-CIvn5Z1l.js";import{n as s}from"./AppLayout-Cy38OwfZ.js";var c={__name:`ProfileIncomplete`,setup(c){return(c,l)=>(r(),a(t(o),{href:`/profil/bearbeiten`,class:`flex items-start gap-3 rounded-lg border border-dashed border-brand-300 bg-card p-4 transition-colors hover:bg-brand-soft`},{default:i(()=>[e(t(s),{class:`mt-0.5 size-5 shrink-0 text-brand-text`}),l[0]||=n(`div`,null,[n(`div`,{class:`text-sm font-semibold`},`Profil vervollständigen`),n(`p`,{class:`mt-0.5 text-[13px] text-muted-foreground`},`Mit Foto und Funktion finden Kolleginnen und Kollegen Sie schneller.`)],-1)]),_:1}))}};export{c as default}; \ No newline at end of file +import{D as e,On as t,_ as n,mt as r,qt as i,v as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as o}from"./app-Dy5FbYkt.js";import{n as s}from"./AppLayout-X0y7XSjx.js";var c={__name:`ProfileIncomplete`,setup(c){return(c,l)=>(r(),a(t(o),{href:`/profil/bearbeiten`,class:`flex items-start gap-3 rounded-lg border border-dashed border-brand-300 bg-card p-4 transition-colors hover:bg-brand-soft`},{default:i(()=>[e(t(s),{class:`mt-0.5 size-5 shrink-0 text-brand-text`}),l[0]||=n(`div`,null,[n(`div`,{class:`text-sm font-semibold`},`Profil vervollständigen`),n(`p`,{class:`mt-0.5 text-[13px] text-muted-foreground`},`Mit Foto und Funktion finden Kolleginnen und Kollegen Sie schneller.`)],-1)]),_:1}))}};export{c as default}; \ No newline at end of file diff --git a/public/build/assets/QmSearchBox-DmD7IrDS.js b/public/build/assets/QmSearchBox-DmD7IrDS.js new file mode 100644 index 00000000..26e9c6e9 --- /dev/null +++ b/public/build/assets/QmSearchBox-DmD7IrDS.js @@ -0,0 +1 @@ +import{D as e,On as t,b as n,mt as r,vn as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as a}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as o}from"./app-Dy5FbYkt.js";import{z as s}from"./AppIcon-SVMShh8s.js";import{t as c}from"./Input-CgjHXzkf.js";var l={__name:`QmSearchBox`,props:{initial:{type:String,default:``}},setup(l){let u=i(l.initial);function d(){u.value.trim()&&o.get(`/qm/suche`,{q:u.value.trim()})}return(i,o)=>(r(),n(`form`,{class:`relative w-full sm:w-80`,role:`search`,onSubmit:a(d,[`prevent`])},[e(t(s),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(t(c),{modelValue:u.value,"onUpdate:modelValue":o[0]||=e=>u.value=e,type:`search`,class:`h-10 bg-card pl-9`,placeholder:`QM durchsuchen – auch im Text …`,"aria-label":`Qualitätsmanagement durchsuchen`},null,8,[`modelValue`])],32))}};export{l as t}; \ No newline at end of file diff --git a/public/build/assets/QuickLinks-DD-ribbK.js b/public/build/assets/QuickLinks-DTert53x.js similarity index 94% rename from public/build/assets/QuickLinks-DD-ribbK.js rename to public/build/assets/QuickLinks-DTert53x.js index db276327..c27d155b 100644 --- a/public/build/assets/QuickLinks-DD-ribbK.js +++ b/public/build/assets/QuickLinks-DTert53x.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,bt as i,ct as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-CIvn5Z1l.js";import{t as h}from"./AppIcon-BVHFLm12.js";import{t as g}from"./chevron-left-CfNljcKt.js";import{t as _}from"./chevron-right-DR4LjgDm.js";import{r as v,t as y}from"./dist-BRRmd-wM.js";var b={class:`rounded-lg border bg-card`},x={class:`flex items-center justify-between px-5 pt-4 pb-3`},S={key:0,class:`flex gap-1.5`},C=[`disabled`],w=[`disabled`],T={class:`text-xs leading-tight font-medium`},E={__name:`QuickLinksRow`,props:{links:{type:Array,required:!0}},setup(E){let D=d(null),O=d(!1),k=d(!1);function A(){let e=D.value;e&&(O.value=e.scrollLeft>4,k.value=e.scrollLeft+e.clientWidth(o(),r(`section`,b,[n(`header`,x,[d[2]||=n(`h2`,{class:`text-base font-semibold`},`Schnellzugriff`,-1),O.value||k.value?(o(),r(`div`,S,[n(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!O.value,"aria-label":`Zurück`,onClick:d[0]||=e=>j(-1)},[e(t(g),{class:`size-4`})],8,C),n(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!k.value,"aria-label":`Weiter`,onClick:d[1]||=e=>j(1)},[e(t(_),{class:`size-4`})],8,w)])):p(``,!0)]),n(`div`,{ref_key:`track`,ref:D,class:`flex snap-x scroll-px-5 gap-3 overflow-x-auto px-5 pb-5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`},[(o(!0),r(s,null,i(E.links,r=>(o(),u(f(r.url.startsWith(`/`)&&!r.new_tab?t(m):`a`),{key:r.label+r.url,href:r.url,target:r.new_tab?`_blank`:void 0,rel:r.new_tab?`noopener`:void 0,class:`flex w-[116px] shrink-0 snap-start flex-col items-center gap-2.5 rounded-md bg-muted px-2 py-4 text-center transition-colors hover:bg-brand-soft`},{default:c(()=>[e(h,{name:r.icon||`link`,class:`size-6 text-brand-text`,"stroke-width":1.6},null,8,[`name`]),n(`span`,T,l(r.label),1)]),_:2},1032,[`href`,`target`,`rel`]))),128))],512)]))}},D={__name:`QuickLinks`,props:{links:{type:Array,required:!0}},setup(e){return(t,n)=>(o(),u(E,{links:e.links},null,8,[`links`]))}};export{D as default}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,bt as i,ct as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-Dy5FbYkt.js";import{t as h}from"./AppIcon-SVMShh8s.js";import{t as g}from"./chevron-left-CfNljcKt.js";import{t as _}from"./chevron-right-DR4LjgDm.js";import{r as v,t as y}from"./dist-BRRmd-wM.js";var b={class:`rounded-lg border bg-card`},x={class:`flex items-center justify-between px-5 pt-4 pb-3`},S={key:0,class:`flex gap-1.5`},C=[`disabled`],w=[`disabled`],T={class:`text-xs leading-tight font-medium`},E={__name:`QuickLinksRow`,props:{links:{type:Array,required:!0}},setup(E){let D=d(null),O=d(!1),k=d(!1);function A(){let e=D.value;e&&(O.value=e.scrollLeft>4,k.value=e.scrollLeft+e.clientWidth(o(),r(`section`,b,[n(`header`,x,[d[2]||=n(`h2`,{class:`text-base font-semibold`},`Schnellzugriff`,-1),O.value||k.value?(o(),r(`div`,S,[n(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!O.value,"aria-label":`Zurück`,onClick:d[0]||=e=>j(-1)},[e(t(g),{class:`size-4`})],8,C),n(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!k.value,"aria-label":`Weiter`,onClick:d[1]||=e=>j(1)},[e(t(_),{class:`size-4`})],8,w)])):p(``,!0)]),n(`div`,{ref_key:`track`,ref:D,class:`flex snap-x scroll-px-5 gap-3 overflow-x-auto px-5 pb-5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`},[(o(!0),r(s,null,i(E.links,r=>(o(),u(f(r.url.startsWith(`/`)&&!r.new_tab?t(m):`a`),{key:r.label+r.url,href:r.url,target:r.new_tab?`_blank`:void 0,rel:r.new_tab?`noopener`:void 0,class:`flex w-[116px] shrink-0 snap-start flex-col items-center gap-2.5 rounded-md bg-muted px-2 py-4 text-center transition-colors hover:bg-brand-soft`},{default:c(()=>[e(h,{name:r.icon||`link`,class:`size-6 text-brand-text`,"stroke-width":1.6},null,8,[`name`]),n(`span`,T,l(r.label),1)]),_:2},1032,[`href`,`target`,`rel`]))),128))],512)]))}},D={__name:`QuickLinks`,props:{links:{type:Array,required:!0}},setup(e){return(t,n)=>(o(),u(E,{links:e.links},null,8,[`links`]))}};export{D as default}; \ No newline at end of file diff --git a/public/build/assets/ResetPassword-BJZyO33I.js b/public/build/assets/ResetPassword-hKQvIauU.js similarity index 93% rename from public/build/assets/ResetPassword-BJZyO33I.js rename to public/build/assets/ResetPassword-hKQvIauU.js index cae5e55f..45b072fc 100644 --- a/public/build/assets/ResetPassword-BJZyO33I.js +++ b/public/build/assets/ResetPassword-hKQvIauU.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as c}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{r as l}from"./app-CIvn5Z1l.js";import{A as u}from"./dist-CleIz2GP.js";import{t as d}from"./FormField-BcJMyuzX.js";import{t as f}from"./button-SRYY3-ko.js";import{t as p}from"./Input-CgjHXzkf.js";import{t as m}from"./GuestLayout-DAusAB2K.js";var h={__name:`ResetPassword`,props:{email:{type:String,default:``},token:{type:String,required:!0}},setup(h){let g=h,_=l({token:g.token,email:g.email,password:``,password_confirmation:``});function v(){_.post(`/reset-password`,{onFinish:()=>_.reset(`password`,`password_confirmation`)})}return(l,h)=>(i(),o(m,{title:`Neues Passwort festlegen`,description:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:c(v,[`prevent`])},[e(d,{id:`email`,label:`E-Mail-Adresse`,error:n(_).errors.email},{default:a(()=>[e(n(p),{id:`email`,modelValue:n(_).email,"onUpdate:modelValue":h[0]||=e=>n(_).email=e,type:`email`,autocomplete:`username`,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password`,label:`Neues Passwort`,error:n(_).errors.password},{default:a(()=>[e(n(p),{id:`password`,modelValue:n(_).password,"onUpdate:modelValue":h[1]||=e=>n(_).password=e,type:`password`,autocomplete:`new-password`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password_confirmation`,label:`Passwort wiederholen`},{default:a(()=>[e(n(p),{id:`password_confirmation`,modelValue:n(_).password_confirmation,"onUpdate:modelValue":h[2]||=e=>n(_).password_confirmation=e,type:`password`,autocomplete:`new-password`,class:`h-10`},null,8,[`modelValue`])]),_:1}),e(n(f),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(_).processing},{default:a(()=>[n(_).processing?(i(),o(n(u),{key:0,class:`animate-spin`})):s(``,!0),h[3]||=t(` Passwort speichern `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{h as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as c}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{r as l}from"./app-Dy5FbYkt.js";import{A as u}from"./dist-CleIz2GP.js";import{t as d}from"./FormField-BcJMyuzX.js";import{t as f}from"./button-SRYY3-ko.js";import{t as p}from"./Input-CgjHXzkf.js";import{t as m}from"./GuestLayout-DxnnRWk6.js";var h={__name:`ResetPassword`,props:{email:{type:String,default:``},token:{type:String,required:!0}},setup(h){let g=h,_=l({token:g.token,email:g.email,password:``,password_confirmation:``});function v(){_.post(`/reset-password`,{onFinish:()=>_.reset(`password`,`password_confirmation`)})}return(l,h)=>(i(),o(m,{title:`Neues Passwort festlegen`,description:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:c(v,[`prevent`])},[e(d,{id:`email`,label:`E-Mail-Adresse`,error:n(_).errors.email},{default:a(()=>[e(n(p),{id:`email`,modelValue:n(_).email,"onUpdate:modelValue":h[0]||=e=>n(_).email=e,type:`email`,autocomplete:`username`,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password`,label:`Neues Passwort`,error:n(_).errors.password},{default:a(()=>[e(n(p),{id:`password`,modelValue:n(_).password,"onUpdate:modelValue":h[1]||=e=>n(_).password=e,type:`password`,autocomplete:`new-password`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password_confirmation`,label:`Passwort wiederholen`},{default:a(()=>[e(n(p),{id:`password_confirmation`,modelValue:n(_).password_confirmation,"onUpdate:modelValue":h[2]||=e=>n(_).password_confirmation=e,type:`password`,autocomplete:`new-password`,class:`h-10`},null,8,[`modelValue`])]),_:1}),e(n(f),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(_).processing},{default:a(()=>[n(_).processing?(i(),o(n(u),{key:0,class:`animate-spin`})):s(``,!0),h[3]||=t(` Passwort speichern `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{h as default}; \ No newline at end of file diff --git a/public/build/assets/RichTextEditor-CSdBGrkn.js b/public/build/assets/RichTextEditor-DgNr9C_U.js similarity index 99% rename from public/build/assets/RichTextEditor-CSdBGrkn.js rename to public/build/assets/RichTextEditor-DgNr9C_U.js index f2f7bc88..af319829 100644 --- a/public/build/assets/RichTextEditor-CSdBGrkn.js +++ b/public/build/assets/RichTextEditor-DgNr9C_U.js @@ -1,4 +1,4 @@ -import{f as e}from"./usePrimitiveElement-BOk1PFhF.js";import{B as t,D as n,Ht as r,L as i,On as a,Ut as o,Yt as s,Zn as c,_ as l,b as u,ct as d,fn as f,it as p,k as m,mt as h,nn as g,o as _,tt as ee,v,vn as y,xn as b,y as te}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as ne,x as re}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{A as ie,j as x}from"./dist-CleIz2GP.js";import{I as ae,q as oe}from"./AppIcon-BVHFLm12.js";import{t as se}from"./check-DGi8MtvT.js";import{_ as ce}from"./http-9R3L4KBg.js";import{t as le}from"./list-DbBAT7EJ.js";var ue=x({name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]}),de=x({name:`heading-2`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]}),fe=x({name:`heading-3`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]}),pe=x({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`}]]}),me=x({name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]}),he=x({name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]}),ge=x({name:`quote`,size:24,node:[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]}),_e=x({name:`redo-2`,size:24,node:[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]}),ve=x({name:`underline`,size:24,node:[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]}),ye=x({name:`unlink`,size:24,node:[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]}),be=Object.defineProperty,S=(e,t)=>{let n={};for(var r in e)be(n,r,{get:e[r],enumerable:!0});return t||be(n,Symbol.toStringTag,{value:`Module`}),n};function C(e){this.content=e}C.prototype={constructor:C,find:function(e){for(var t=0;t>1}},C.from=function(e){if(e instanceof C)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new C(t)};function xe(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i=56320&&e<57344}function we(e){return e>=55296&&e<56320}var w=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;te&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let e=0,a=0;at&&((an)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?Ee(t+1,i):Ee(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;ethis.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;te.type.rank-t.type.rank),n}};T.none=[];var Oe=class extends Error{},E=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Ae(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(ke(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(w.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};E.empty=new E(w.empty,0,0);function ke(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(ke(a.content,t-i-1,n-i-1)))}function Ae(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=Ae(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function je(e,t,n){if(n.openStart>e.depth)throw new Oe(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Oe(`Inconsistent open depths`);return Me(e,t,n,0)}function Me(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ie(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Fe(e.nodeAfter,r),a++));for(let e=a;ei&&Pe(e,t,i+1),o=r.depth>i&&Pe(n,r,i+1),s=[];return Ie(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Ne(a,o),Fe(Le(a,Re(e,t,n,r,i+1)),s)):(a&&Fe(Le(a,ze(e,t,i+1)),s),Ie(t,n,i,s),o&&Fe(Le(o,ze(n,r,i+1)),s)),Ie(r,null,i,s),new w(s)}function ze(e,t,n){let r=[];return Ie(null,e,n,r),e.depth>n&&Fe(Le(Pe(e,t,n+1),ze(e,t,n+1)),r),Ie(t,null,n,r),new w(r)}function Be(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(w.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Ve=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Ge(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=We.get(t);if(r)for(let e=0;ee&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Ye(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=w.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;ee.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=w.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};qe.prototype.text=void 0;var Je=class e extends qe{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ye(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Ye(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Xe(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var Ze=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Qe(t,n);if(r.next==null)return e.empty;let i=$e(r);r.next&&r.err(`Unexpected trailing text`);let a=lt(ot(i));return ut(a,r),a}matchType(e){for(let t=0;te.createAndFill()));for(let e=0;e=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n`+e.indexOf(t.next[n].next);return r}).join(` +import{f as e}from"./usePrimitiveElement-BOk1PFhF.js";import{B as t,D as n,Ht as r,L as i,On as a,Ut as o,Yt as s,Zn as c,_ as l,b as u,ct as d,fn as f,it as p,k as m,mt as h,nn as g,o as _,tt as ee,v,vn as y,xn as b,y as te}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as ne,x as re}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{A as ie,j as x}from"./dist-CleIz2GP.js";import{I as ae,q as oe}from"./AppIcon-SVMShh8s.js";import{t as se}from"./check-DGi8MtvT.js";import{_ as ce}from"./http-9R3L4KBg.js";import{t as le}from"./list-DbBAT7EJ.js";var ue=x({name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]}),de=x({name:`heading-2`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]}),fe=x({name:`heading-3`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]}),pe=x({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`}]]}),me=x({name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]}),he=x({name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]}),ge=x({name:`quote`,size:24,node:[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]}),_e=x({name:`redo-2`,size:24,node:[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]}),ve=x({name:`underline`,size:24,node:[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]}),ye=x({name:`unlink`,size:24,node:[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]}),be=Object.defineProperty,S=(e,t)=>{let n={};for(var r in e)be(n,r,{get:e[r],enumerable:!0});return t||be(n,Symbol.toStringTag,{value:`Module`}),n};function C(e){this.content=e}C.prototype={constructor:C,find:function(e){for(var t=0;t>1}},C.from=function(e){if(e instanceof C)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new C(t)};function xe(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i=56320&&e<57344}function we(e){return e>=55296&&e<56320}var w=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;te&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let e=0,a=0;at&&((an)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?Ee(t+1,i):Ee(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;ethis.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;te.type.rank-t.type.rank),n}};T.none=[];var Oe=class extends Error{},E=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Ae(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(ke(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(w.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};E.empty=new E(w.empty,0,0);function ke(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(ke(a.content,t-i-1,n-i-1)))}function Ae(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=Ae(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function je(e,t,n){if(n.openStart>e.depth)throw new Oe(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Oe(`Inconsistent open depths`);return Me(e,t,n,0)}function Me(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ie(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Fe(e.nodeAfter,r),a++));for(let e=a;ei&&Pe(e,t,i+1),o=r.depth>i&&Pe(n,r,i+1),s=[];return Ie(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Ne(a,o),Fe(Le(a,Re(e,t,n,r,i+1)),s)):(a&&Fe(Le(a,ze(e,t,i+1)),s),Ie(t,n,i,s),o&&Fe(Le(o,ze(n,r,i+1)),s)),Ie(r,null,i,s),new w(s)}function ze(e,t,n){let r=[];return Ie(null,e,n,r),e.depth>n&&Fe(Le(Pe(e,t,n+1),ze(e,t,n+1)),r),Ie(t,null,n,r),new w(r)}function Be(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(w.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Ve=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Ge(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=We.get(t);if(r)for(let e=0;ee&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Ye(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=w.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;ee.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=w.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};qe.prototype.text=void 0;var Je=class e extends qe{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ye(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Ye(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Xe(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var Ze=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Qe(t,n);if(r.next==null)return e.empty;let i=$e(r);r.next&&r.err(`Unexpected trailing text`);let a=lt(ot(i));return ut(a,r),a}matchType(e){for(let t=0;te.createAndFill()));for(let e=0;e=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n`+e.indexOf(t.next[n].next);return r}).join(` `)}};Ze.empty=new Ze(!0);var Qe=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function $e(e){let t=[];do t.push(et(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function et(e){let t=[];do t.push(tt(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function tt(e){let t=at(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=rt(e,t);else break;return t}function nt(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function rt(e,t){let n=nt(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:nt(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function it(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function at(e){if(e.eat(`(`)){let t=$e(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=it(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function ot(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ze(r.indexOf(e.length-1)>-1);for(let e=0;e-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ft(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new qe(this,this.computeAttrs(e),w.from(t),T.setFrom(n))}createChecked(e=null,t,n){return t=w.from(t),this.checkContent(t),new qe(this,this.computeAttrs(e),t,T.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=w.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(w.empty,!0);return i?new qe(this,e,t.append(i),T.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;tr[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function ht(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var gt=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ht(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},_t=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=pt(e,r.attrs),this.excluded=null;let i=dt(this.attrs);this.instance=i?new T(this,i):null}create(e=null){return!e&&this.instance?this.instance:new T(this,ft(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t-1}},vt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=C.from(e.nodes),t.marks=C.from(e.marks||{}),this.nodes=mt.compile(this.spec.nodes,this),this.marks=_t.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Ze.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?yt(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:yt(this,n.split(` `))}this.nodeFromJSON=e=>qe.fromJSON(this,e),this.markFromJSON=e=>T.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof mt))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Je(n,n.defaultAttrs,e,T.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function yt(e,t){let n=[];for(let r=0;r-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function bt(e){return e.tag!=null}function xt(e){return e.style!=null}var St=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(bt(e))this.tags.push(e);else if(xt(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new jt(this,t,!1);return n.addAll(e,T.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new jt(this,t,!0);return n.addAll(e,T.none,t.from,t.to),E.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;re.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r{n(e=Pt(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Pt(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},Ct={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},wt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Tt={ol:!0,ul:!0},Et=1,Dt=2,Ot=4;function kt(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?Et:0)|(t===`full`?Dt:0)}var At=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=T.none,this.match=i||(a&Ot?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(w.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Et)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=w.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(w.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Ct.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},jt=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=kt(null,t.preserveWhitespace,0)|(n?Ot:0);i=r?new At(r.type,r.attrs,T.none,!0,t.topMatch||r.type.contentMatch,a):n?new At(null,null,T.none,!0,null,a):new At(e.schema.topNodeType,null,T.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&Dt?`full`:this.localPreserveWS||(r.options&Et)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,` `);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node){if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e!(a.type?a.type.allowsMarkType(t.type):Ft(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new At(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=Et);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function Mt(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&Tt.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Nt(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Pt(e){let t={};for(let n in e)t[n]=e[n];return t}function Ft(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n{if(i.length||e.marks.length){let n=0,a=0;for(;n=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Ht(Rt(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Ht(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Lt(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Lt(e.marks)}};function Lt(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Rt(e){return e.document||window.document}var zt=new WeakMap;function Bt(e){let t=zt.get(e);return t===void 0&&zt.set(e,t=Vt(e)),t}function Vt(e){let t=null;function n(e){if(e&&typeof e==`object`){if(Array.isArray(e)){if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;iu)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=Ht(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Ut=65535,Wt=2**16;function Gt(e,t){return e+t*Wt}function Kt(e){return e&Ut}function qt(e){return(e-(e&Ut))/Wt}var Jt=1,Yt=2,Xt=4,Zt=8,Qt=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Zt)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Xt)>0}},$t=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Kt(e);if(!this.inverted)for(let e=0;ee)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Gt(o/3,e-s),f=0;return c&&(f|=e==s?Yt:e==u?Jt:Xt,(t<0?e!=s:e!=u)&&(f|=Zt)),new Qt(a,f,d)}r+=l-c}return n?e+r:new Qt(e+r,0,null)}touches(e,t){let n=0,r=Kt(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;te)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;nn&&t!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return O.fromReplace(e,this.from,this.to,i)}invert(){return new an(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};D.jsonID(`addMark`,rn);var an=class e extends D{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new E(nn(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return O.fromReplace(e,this.from,this.to,n)}invert(){return new rn(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};D.jsonID(`removeMark`,an);var on=class e extends D{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return O.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return O.fromReplace(e,this.pos,this.pos+1,new E(w.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;rr.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,E.fromJSON(t,n.slice),n.insert,!!n.structure)}};D.jsonID(`replaceAround`,ln);function un(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function dn(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;ee.step(t)),a.forEach(t=>e.step(t))}function fn(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof _t){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;ee.step(new an(t.from,t.to,t.style)))}function pn(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t=0;t--)e.step(o[t])}function mn(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function hn(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(nn;e--)t||r.index(e)>0?(t=!0,u=w.from(r.node(e).copy(u)),d++):c--;let f=w.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=w.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new ln(i,a,i,a,new E(r,0,0),n.length,!0))}function Sn(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&Tn(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&wn(e,t,n,a),pn(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new ln(c,l,c+1,l-1,new E(w.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&Cn(e,t,n,a),!1}})}function Cn(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function wn(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(` diff --git a/public/build/assets/Sample-XU7cLEYR.js b/public/build/assets/Sample-DYok2NXK.js similarity index 88% rename from public/build/assets/Sample-XU7cLEYR.js rename to public/build/assets/Sample-DYok2NXK.js index 3bdca3ab..8b0a94c9 100644 --- a/public/build/assets/Sample-XU7cLEYR.js +++ b/public/build/assets/Sample-DYok2NXK.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{at as s}from"./AppIcon-BVHFLm12.js";import{t as c}from"./AppLayout-Cy38OwfZ.js";import{t as l}from"./button-SRYY3-ko.js";import{t as u}from"./Panel-xPHuwfuu.js";import{t as d}from"./Input-CgjHXzkf.js";import{t as f}from"./PageContent-DplopdM5.js";var p={class:`grid gap-8 lg:grid-cols-[minmax(0,1fr)_320px]`},m={class:`min-w-0`},h={class:`grid content-start gap-6`},g={class:`grid gap-3`},_={class:`flex flex-wrap gap-2`},v={__name:`Sample`,props:{content:{type:Object,required:!0}},setup(v){return(y,b)=>(i(),o(c,{title:`Beispielseite`},{default:a(()=>[r(`div`,p,[r(`article`,m,[b[0]||=r(`p`,{class:`text-[11px] font-semibold tracking-wide text-accent2-text uppercase`},`Kategorie`,-1),b[1]||=r(`h1`,{class:`mt-1 mb-8 text-3xl font-semibold tracking-tight`},`Beispielseite`,-1),e(f,{content:v.content},null,8,[`content`])]),r(`aside`,h,[e(u,{title:`Bedienelemente`,"action-label":`Alle anzeigen`,"action-href":`#`},{default:a(()=>[r(`div`,g,[e(n(d),{placeholder:`Eingabefeld`}),r(`div`,_,[e(n(l),null,{default:a(()=>[...b[2]||=[t(`Primär`,-1)]]),_:1}),e(n(l),{variant:`outline`},{default:a(()=>[...b[3]||=[t(`Umrandet`,-1)]]),_:1}),e(n(l),{variant:`ghost`},{default:a(()=>[e(n(s)),b[4]||=t(` Symbol`,-1)]),_:1})])])]),_:1}),b[5]||=r(`section`,{class:`rounded-lg bg-brand p-5 text-brand-foreground`},[r(`p`,{class:`font-semibold`},`Fläche in der Markenfarbe`),r(`p`,{class:`mt-1 text-sm opacity-85`},`Zum Beispiel die Begrüßungskarte auf der Startseite.`)],-1)])])]),_:1}))}};export{v as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{at as s}from"./AppIcon-SVMShh8s.js";import{t as c}from"./AppLayout-X0y7XSjx.js";import{t as l}from"./button-SRYY3-ko.js";import{t as u}from"./Panel-DF-wChKt.js";import{t as d}from"./Input-CgjHXzkf.js";import{t as f}from"./PageContent-DK_3i7FH.js";var p={class:`grid gap-8 lg:grid-cols-[minmax(0,1fr)_320px]`},m={class:`min-w-0`},h={class:`grid content-start gap-6`},g={class:`grid gap-3`},_={class:`flex flex-wrap gap-2`},v={__name:`Sample`,props:{content:{type:Object,required:!0}},setup(v){return(y,b)=>(i(),o(c,{title:`Beispielseite`},{default:a(()=>[r(`div`,p,[r(`article`,m,[b[0]||=r(`p`,{class:`text-[11px] font-semibold tracking-wide text-accent2-text uppercase`},`Kategorie`,-1),b[1]||=r(`h1`,{class:`mt-1 mb-8 text-3xl font-semibold tracking-tight`},`Beispielseite`,-1),e(f,{content:v.content},null,8,[`content`])]),r(`aside`,h,[e(u,{title:`Bedienelemente`,"action-label":`Alle anzeigen`,"action-href":`#`},{default:a(()=>[r(`div`,g,[e(n(d),{placeholder:`Eingabefeld`}),r(`div`,_,[e(n(l),null,{default:a(()=>[...b[2]||=[t(`Primär`,-1)]]),_:1}),e(n(l),{variant:`outline`},{default:a(()=>[...b[3]||=[t(`Umrandet`,-1)]]),_:1}),e(n(l),{variant:`ghost`},{default:a(()=>[e(n(s)),b[4]||=t(` Symbol`,-1)]),_:1})])])]),_:1}),b[5]||=r(`section`,{class:`rounded-lg bg-brand p-5 text-brand-foreground`},[r(`p`,{class:`font-semibold`},`Fläche in der Markenfarbe`),r(`p`,{class:`mt-1 text-sm opacity-85`},`Zum Beispiel die Begrüßungskarte auf der Startseite.`)],-1)])])]),_:1}))}};export{v as default}; \ No newline at end of file diff --git a/public/build/assets/Search-5WfA9Ai4.css b/public/build/assets/Search-5WfA9Ai4.css new file mode 100644 index 00000000..8ac55021 --- /dev/null +++ b/public/build/assets/Search-5WfA9Ai4.css @@ -0,0 +1 @@ +.qm-snippet mark{background:color-mix(in srgb, var(--brand,#f59e0b) 22%, transparent);color:var(--foreground);border-radius:2px;padding:0 1px} diff --git a/public/build/assets/Search-CbdzVrSM.js b/public/build/assets/Search-CbdzVrSM.js new file mode 100644 index 00000000..35709dae --- /dev/null +++ b/public/build/assets/Search-CbdzVrSM.js @@ -0,0 +1 @@ +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-Dy5FbYkt.js";import{j as h}from"./dist-CleIz2GP.js";import{nt as g}from"./AppIcon-SVMShh8s.js";import{t as _}from"./AppLayout-X0y7XSjx.js";import{n as v,r as y}from"./format-CUVSeMK_.js";import{t as b}from"./FileIcon-LA1rFyBK.js";import{t as x}from"./search-x-C4tzI22g.js";import{t as S}from"./EmptyState-Ceq4v8mE.js";import{t as C}from"./PageHeader-Dcr3nLVu.js";import{t as w}from"./colors-RDOJqd57.js";import{t as T}from"./QmSearchBox-DmD7IrDS.js";var E=h({name:`text-search`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]}),D={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},O={key:1,class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},k={class:`min-w-0 flex-1`},A={class:`flex flex-wrap items-baseline gap-x-2`},j={key:0,class:`text-xs text-muted-foreground`},M={class:`text-xs text-muted-foreground`},N=[`innerHTML`],P={key:1,class:`mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-brand-text`},F={key:1,class:`rounded-lg border bg-card`},I={__name:`Search`,props:{query:{type:String,default:``},results:{type:Array,default:()=>[]}},setup(h){let I=(e,t)=>e.open_kind===`view`?`${e.open_url}?suche=${encodeURIComponent(t)}`:e.open_url;return(L,R)=>(s(),d(_,{title:`Suche: ${h.query}`},{default:l(()=>[e(C,{title:h.query?`Suche: ${h.query}`:`Suche`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}],description:h.query?`${h.results.length} ${h.results.length,`Treffer`} im Qualitätsmanagement – in Titeln und im Text der Dokumente`:``},{actions:l(()=>[(s(),d(T,{key:h.query,initial:h.query},null,8,[`initial`]))]),_:1},8,[`title`,`description`]),h.results.length?(s(),a(`ul`,D,[(s(!0),a(c,null,o(h.results,o=>(s(),a(`li`,{key:o.id,class:`flex gap-3 px-4 py-3.5 hover:bg-accent/40`},[o.type===`file`?(s(),d(b,{key:0,extension:o.extension},null,8,[`extension`])):(s(),a(`span`,O,[o.type===`form`?(s(),d(n(g),{key:0,class:`size-5`})):(s(),d(n(y),{key:1,class:`size-5`}))])),i(`div`,k,[i(`div`,A,[(s(),d(f(o.open_kind===`view`?n(m):`a`),{href:I(o,h.query),target:o.open_kind===`link`?`_blank`:void 0,class:`text-[15px] font-semibold hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`,`target`])),o.version?(s(),a(`span`,j,`Version `+u(o.version),1)):p(``,!0),i(`span`,M,`Stand `+u(n(v)(o.valid_from)),1)]),e(n(m),{href:o.folder.url,class:`mt-0.5 inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:l(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(w)(o.folder.color).dot])},null,2),t(u(o.folder.path),1)]),_:2},1032,[`href`]),o.snippet?(s(),a(`p`,{key:0,class:`qm-snippet mt-1.5 text-[13px] leading-relaxed text-muted-foreground`,innerHTML:o.snippet},null,8,N)):p(``,!0),o.in_content?(s(),a(`p`,P,[e(n(E),{class:`size-3`}),R[0]||=t(` im Text gefunden`,-1)])):p(``,!0)])]))),128))])):h.query?(s(),a(`div`,F,[e(S,{icon:n(x),title:`Nichts gefunden`,text:`Gesucht wird in Titeln, Beschreibungen, Dateinamen und im Text der Dokumente. Eingescannte PDFs sind nur durchsuchbar, wenn die Texterkennung eingerichtet ist.`},null,8,[`icon`])])):p(``,!0)]),_:1},8,[`title`]))}};export{I as default}; \ No newline at end of file diff --git a/public/build/assets/Show-C0lCCVvK.js b/public/build/assets/Show-CJ8H__98.js similarity index 92% rename from public/build/assets/Show-C0lCCVvK.js rename to public/build/assets/Show-CJ8H__98.js index 232389f0..5aaba752 100644 --- a/public/build/assets/Show-C0lCCVvK.js +++ b/public/build/assets/Show-CJ8H__98.js @@ -1 +1 @@ -import{D as e,E as t,On as n,St as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-CIvn5Z1l.js";import{a as h}from"./AppIcon-BVHFLm12.js";import{t as g}from"./calendar-clock-CswFc-uh.js";import{t as _}from"./AppLayout-Cy38OwfZ.js";import{t as v}from"./chevron-right-DR4LjgDm.js";import{t as y}from"./pencil-line-Cp-EHBoW.js";import{t as b}from"./button-SRYY3-ko.js";import{t as x}from"./PageContent-DplopdM5.js";var S={__name:`PageTreeNav`,props:{items:{type:Array,required:!0},current:{type:String,required:!0},depth:{type:Number,default:0}},setup(a){let h=(e,t)=>e.url===t||e.children.some(e=>h(e,t));return(g,_)=>{let v=r(`PageTreeNav`,!0);return c(),o(`ul`,{class:i([`grid gap-0.5`,a.depth?`mt-0.5 ml-3 border-l pl-2`:`mt-1`])},[(c(!0),o(l,null,s(a.items,r=>(c(),o(`li`,{key:r.id},[e(n(m),{href:r.url,class:i([`block rounded-md px-3 py-1.5 text-sm`,r.url===a.current?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`]),"aria-current":r.url===a.current?`page`:void 0},{default:u(()=>[t(d(r.title),1)]),_:2},1032,[`href`,`class`,`aria-current`]),r.children.length&&h(r,a.current)?(c(),f(v,{key:0,items:r.children,current:a.current,depth:a.depth+1},null,8,[`items`,`current`,`depth`])):p(``,!0)]))),128))],2)}}},C={key:0,class:`hidden lg:block`},w={class:`sticky top-24 rounded-lg border bg-card p-2`,"aria-label":`Seiten in diesem Bereich`},T={key:0,class:`mb-3 flex flex-wrap items-center gap-1 text-[13px] text-muted-foreground`,"aria-label":`Brotkrumen`},E={class:`text-foreground`},D={class:`mb-8 flex flex-wrap items-start justify-between gap-4`},O={class:`min-w-0`},k={class:`text-3xl leading-tight font-semibold tracking-tight`},A={key:0,class:`mt-1.5 text-[13px] text-muted-foreground`},j={key:1,class:`mb-6 flex items-start gap-3 rounded-lg border border-brand-200 bg-brand-soft px-4 py-3 text-sm`},M={key:2,class:`rounded-lg border border-dashed px-6 py-12 text-center text-sm text-muted-foreground`},N={__name:`Show`,props:{page:{type:Object,required:!0},content:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},section:{type:Object,required:!0},editor:{type:Object,default:null}},setup(r){let N=r.section.children.length>0;return(P,F)=>(c(),f(_,{title:r.page.title},{default:u(()=>[a(`div`,{class:i([`grid gap-8`,N?`lg:grid-cols-[260px_minmax(0,1fr)]`:``])},[N?(c(),o(`aside`,C,[a(`nav`,w,[e(n(m),{href:r.section.url,class:i([`block rounded-md px-3 py-2 text-sm font-semibold`,r.section.active?`bg-brand-soft text-brand-soft-foreground`:`hover:bg-accent`])},{default:u(()=>[t(d(r.section.title),1)]),_:1},8,[`href`,`class`]),e(S,{items:r.section.children,current:r.page.url},null,8,[`items`,`current`])])])):p(``,!0),a(`article`,{class:i([`min-w-0`,N?``:`mx-auto w-full max-w-5xl`])},[r.breadcrumbs.length?(c(),o(`nav`,T,[(c(!0),o(l,null,s(r.breadcrumbs,r=>(c(),o(l,{key:r.url},[e(n(m),{href:r.url,class:`hover:text-foreground hover:underline`},{default:u(()=>[t(d(r.title),1)]),_:2},1032,[`href`]),e(n(v),{class:`size-3.5`})],64))),128)),a(`span`,E,d(r.page.title),1)])):p(``,!0),a(`header`,D,[a(`div`,O,[a(`h1`,k,d(r.page.title),1),r.page.published_at?(c(),o(`p`,A,`Zuletzt aktualisiert am `+d(n(h)(r.page.published_at)),1)):p(``,!0)]),r.editor?(c(),f(n(b),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(m),{href:r.editor.url},{default:u(()=>[e(n(y)),F[0]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):p(``,!0)]),r.editor&&(!r.page.is_published||r.editor.has_draft||r.editor.scheduled_at)?(c(),o(`div`,j,[r.editor.scheduled_at?(c(),f(n(g),{key:0,class:`mt-0.5 size-4 shrink-0 text-brand-text`})):(c(),f(n(y),{key:1,class:`mt-0.5 size-4 shrink-0 text-brand-text`})),a(`p`,null,[r.page.is_published?r.editor.scheduled_at?(c(),o(l,{key:1},[t(`Eine neue Fassung wird am `+d(new Date(r.editor.scheduled_at).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`}))+` veröffentlicht.`,1)],64)):(c(),o(l,{key:2},[t(`Es gibt unveröffentlichte Änderungen an dieser Seite.`)],64)):(c(),o(l,{key:0},[t(`Diese Seite ist noch nicht veröffentlicht. Nur Redakteure sehen sie.`)],64)),e(n(m),{href:r.editor.url,class:`ml-1 font-medium text-brand-text hover:underline`},{default:u(()=>[...F[1]||=[t(`Im Editor öffnen`,-1)]]),_:1},8,[`href`])])])):p(``,!0),e(x,{content:r.content},null,8,[`content`]),r.content.blocks.length?p(``,!0):(c(),o(`p`,M,`Diese Seite hat noch keinen Inhalt.`))],2)],2)]),_:1},8,[`title`]))}};export{N as default}; \ No newline at end of file +import{D as e,E as t,On as n,St as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-Dy5FbYkt.js";import{a as h}from"./AppIcon-SVMShh8s.js";import{t as g}from"./calendar-clock-CswFc-uh.js";import{t as _}from"./AppLayout-X0y7XSjx.js";import{t as v}from"./chevron-right-DR4LjgDm.js";import{t as y}from"./pencil-line-Cp-EHBoW.js";import{t as b}from"./button-SRYY3-ko.js";import{t as x}from"./PageContent-DK_3i7FH.js";var S={__name:`PageTreeNav`,props:{items:{type:Array,required:!0},current:{type:String,required:!0},depth:{type:Number,default:0}},setup(a){let h=(e,t)=>e.url===t||e.children.some(e=>h(e,t));return(g,_)=>{let v=r(`PageTreeNav`,!0);return c(),o(`ul`,{class:i([`grid gap-0.5`,a.depth?`mt-0.5 ml-3 border-l pl-2`:`mt-1`])},[(c(!0),o(l,null,s(a.items,r=>(c(),o(`li`,{key:r.id},[e(n(m),{href:r.url,class:i([`block rounded-md px-3 py-1.5 text-sm`,r.url===a.current?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`]),"aria-current":r.url===a.current?`page`:void 0},{default:u(()=>[t(d(r.title),1)]),_:2},1032,[`href`,`class`,`aria-current`]),r.children.length&&h(r,a.current)?(c(),f(v,{key:0,items:r.children,current:a.current,depth:a.depth+1},null,8,[`items`,`current`,`depth`])):p(``,!0)]))),128))],2)}}},C={key:0,class:`hidden lg:block`},w={class:`sticky top-24 rounded-lg border bg-card p-2`,"aria-label":`Seiten in diesem Bereich`},T={key:0,class:`mb-3 flex flex-wrap items-center gap-1 text-[13px] text-muted-foreground`,"aria-label":`Brotkrumen`},E={class:`text-foreground`},D={class:`mb-8 flex flex-wrap items-start justify-between gap-4`},O={class:`min-w-0`},k={class:`text-3xl leading-tight font-semibold tracking-tight`},A={key:0,class:`mt-1.5 text-[13px] text-muted-foreground`},j={key:1,class:`mb-6 flex items-start gap-3 rounded-lg border border-brand-200 bg-brand-soft px-4 py-3 text-sm`},M={key:2,class:`rounded-lg border border-dashed px-6 py-12 text-center text-sm text-muted-foreground`},N={__name:`Show`,props:{page:{type:Object,required:!0},content:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},section:{type:Object,required:!0},editor:{type:Object,default:null}},setup(r){let N=r.section.children.length>0;return(P,F)=>(c(),f(_,{title:r.page.title},{default:u(()=>[a(`div`,{class:i([`grid gap-8`,N?`lg:grid-cols-[260px_minmax(0,1fr)]`:``])},[N?(c(),o(`aside`,C,[a(`nav`,w,[e(n(m),{href:r.section.url,class:i([`block rounded-md px-3 py-2 text-sm font-semibold`,r.section.active?`bg-brand-soft text-brand-soft-foreground`:`hover:bg-accent`])},{default:u(()=>[t(d(r.section.title),1)]),_:1},8,[`href`,`class`]),e(S,{items:r.section.children,current:r.page.url},null,8,[`items`,`current`])])])):p(``,!0),a(`article`,{class:i([`min-w-0`,N?``:`mx-auto w-full max-w-5xl`])},[r.breadcrumbs.length?(c(),o(`nav`,T,[(c(!0),o(l,null,s(r.breadcrumbs,r=>(c(),o(l,{key:r.url},[e(n(m),{href:r.url,class:`hover:text-foreground hover:underline`},{default:u(()=>[t(d(r.title),1)]),_:2},1032,[`href`]),e(n(v),{class:`size-3.5`})],64))),128)),a(`span`,E,d(r.page.title),1)])):p(``,!0),a(`header`,D,[a(`div`,O,[a(`h1`,k,d(r.page.title),1),r.page.published_at?(c(),o(`p`,A,`Zuletzt aktualisiert am `+d(n(h)(r.page.published_at)),1)):p(``,!0)]),r.editor?(c(),f(n(b),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(m),{href:r.editor.url},{default:u(()=>[e(n(y)),F[0]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):p(``,!0)]),r.editor&&(!r.page.is_published||r.editor.has_draft||r.editor.scheduled_at)?(c(),o(`div`,j,[r.editor.scheduled_at?(c(),f(n(g),{key:0,class:`mt-0.5 size-4 shrink-0 text-brand-text`})):(c(),f(n(y),{key:1,class:`mt-0.5 size-4 shrink-0 text-brand-text`})),a(`p`,null,[r.page.is_published?r.editor.scheduled_at?(c(),o(l,{key:1},[t(`Eine neue Fassung wird am `+d(new Date(r.editor.scheduled_at).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`}))+` veröffentlicht.`,1)],64)):(c(),o(l,{key:2},[t(`Es gibt unveröffentlichte Änderungen an dieser Seite.`)],64)):(c(),o(l,{key:0},[t(`Diese Seite ist noch nicht veröffentlicht. Nur Redakteure sehen sie.`)],64)),e(n(m),{href:r.editor.url,class:`ml-1 font-medium text-brand-text hover:underline`},{default:u(()=>[...F[1]||=[t(`Im Editor öffnen`,-1)]]),_:1},8,[`href`])])])):p(``,!0),e(x,{content:r.content},null,8,[`content`]),r.content.blocks.length?p(``,!0):(c(),o(`p`,M,`Diese Seite hat noch keinen Inhalt.`))],2)],2)]),_:1},8,[`title`]))}};export{N as default}; \ No newline at end of file diff --git a/public/build/assets/Show-Ch-d-Qt4.js b/public/build/assets/Show-CXZhW0SC.js similarity index 87% rename from public/build/assets/Show-Ch-d-Qt4.js rename to public/build/assets/Show-CXZhW0SC.js index c2f60550..49427dfb 100644 --- a/public/build/assets/Show-Ch-d-Qt4.js +++ b/public/build/assets/Show-CXZhW0SC.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CIvn5Z1l.js";import{a as p,b as m,tt as h}from"./AppIcon-BVHFLm12.js";import{t as g}from"./arrow-left-nZZEveo4.js";import{t as _}from"./AppLayout-Cy38OwfZ.js";import{t as v}from"./pen-line-AST4G_M5.js";import{t as y}from"./button-SRYY3-ko.js";import{n as b}from"./NewsImage-31QS1JbU.js";import{t as x}from"./NewsCard-CWMFENyt.js";import{t as S}from"./PageContent-DplopdM5.js";var C={class:`mx-auto max-w-3xl`},w={class:`mb-6 flex items-center justify-between gap-4`},T={class:`mt-2 text-3xl leading-tight font-semibold tracking-tight sm:text-[34px]`},E={key:0,class:`mt-4 text-lg leading-relaxed text-muted-foreground`},D={class:`mt-6 flex flex-wrap items-center gap-x-6 gap-y-3 border-y py-4 text-sm`},O={class:`block font-medium`},k={key:0,class:`block text-xs text-muted-foreground`},A={class:`text-muted-foreground`},j={class:`inline-flex items-center gap-1.5 text-muted-foreground`},M=[`src`,`alt`],N=[`innerHTML`],P={key:0,class:`mx-auto mt-16 max-w-5xl`},F={class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3`},I={__name:`Show`,props:{post:{type:Object,required:!0},related:{type:Object,required:!0},editUrl:{type:String,default:null},form:{type:Object,default:null}},setup(I){return(L,R)=>(o(),u(_,{title:I.post.title},{default:c(()=>[r(`article`,C,[r(`div`,w,[e(n(f),{href:`/neuigkeiten`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:c(()=>[e(n(g),{class:`size-4`}),R[0]||=t(` Alle Neuigkeiten `,-1)]),_:1}),I.editUrl?(o(),u(n(y),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:c(()=>[e(n(f),{href:I.editUrl},{default:c(()=>[e(n(v)),R[1]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):d(``,!0)]),r(`header`,null,[e(b,{category:I.post.category},null,8,[`category`]),r(`h1`,T,l(I.post.title),1),I.post.teaser?(o(),i(`p`,E,l(I.post.teaser),1)):d(``,!0),r(`div`,D,[I.post.author?(o(),u(n(f),{key:0,href:`/personen/${I.post.author.id}`,class:`flex items-center gap-3 hover:underline`},{default:c(()=>[e(m,{person:I.post.author,class:`size-9`},null,8,[`person`]),r(`span`,null,[r(`span`,O,l(I.post.author.name),1),I.post.author.job_title?(o(),i(`span`,k,l(I.post.author.job_title),1)):d(``,!0)])]),_:1},8,[`href`])):d(``,!0),r(`span`,A,l(n(p)(I.post.published_at)),1),r(`span`,j,[e(n(h),{class:`size-4`}),t(` `+l(I.post.reading_minutes)+` Min. Lesezeit`,1)])])]),I.post.cover_url?(o(),i(`img`,{key:0,src:I.post.cover_url,alt:I.post.title,class:`mt-8 aspect-video w-full rounded-lg object-cover`},null,8,M)):d(``,!0),r(`div`,{class:`prose prose-neutral mt-8 max-w-none prose-headings:tracking-tight prose-img:rounded-lg`,innerHTML:I.post.body_html},null,8,N),I.form?(o(),u(S,{key:1,content:I.form,class:`mt-10`},null,8,[`content`])):d(``,!0)]),I.related.data.length?(o(),i(`section`,P,[R[2]||=r(`h2`,{class:`mb-4 text-lg font-semibold`},`Weitere Beiträge`,-1),r(`div`,F,[(o(!0),i(s,null,a(I.related.data,e=>(o(),u(x,{key:e.id,post:e},null,8,[`post`]))),128))])])):d(``,!0)]),_:1},8,[`title`]))}};export{I as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Dy5FbYkt.js";import{a as p,b as m,tt as h}from"./AppIcon-SVMShh8s.js";import{t as g}from"./arrow-left-nZZEveo4.js";import{t as _}from"./AppLayout-X0y7XSjx.js";import{t as v}from"./pen-line-AST4G_M5.js";import{t as y}from"./button-SRYY3-ko.js";import{n as b}from"./NewsImage-BzxvsZoE.js";import{t as x}from"./NewsCard-BnbSPjUt.js";import{t as S}from"./PageContent-DK_3i7FH.js";var C={class:`mx-auto max-w-3xl`},w={class:`mb-6 flex items-center justify-between gap-4`},T={class:`mt-2 text-3xl leading-tight font-semibold tracking-tight sm:text-[34px]`},E={key:0,class:`mt-4 text-lg leading-relaxed text-muted-foreground`},D={class:`mt-6 flex flex-wrap items-center gap-x-6 gap-y-3 border-y py-4 text-sm`},O={class:`block font-medium`},k={key:0,class:`block text-xs text-muted-foreground`},A={class:`text-muted-foreground`},j={class:`inline-flex items-center gap-1.5 text-muted-foreground`},M=[`src`,`alt`],N=[`innerHTML`],P={key:0,class:`mx-auto mt-16 max-w-5xl`},F={class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3`},I={__name:`Show`,props:{post:{type:Object,required:!0},related:{type:Object,required:!0},editUrl:{type:String,default:null},form:{type:Object,default:null}},setup(I){return(L,R)=>(o(),u(_,{title:I.post.title},{default:c(()=>[r(`article`,C,[r(`div`,w,[e(n(f),{href:`/neuigkeiten`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:c(()=>[e(n(g),{class:`size-4`}),R[0]||=t(` Alle Neuigkeiten `,-1)]),_:1}),I.editUrl?(o(),u(n(y),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:c(()=>[e(n(f),{href:I.editUrl},{default:c(()=>[e(n(v)),R[1]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):d(``,!0)]),r(`header`,null,[e(b,{category:I.post.category},null,8,[`category`]),r(`h1`,T,l(I.post.title),1),I.post.teaser?(o(),i(`p`,E,l(I.post.teaser),1)):d(``,!0),r(`div`,D,[I.post.author?(o(),u(n(f),{key:0,href:`/personen/${I.post.author.id}`,class:`flex items-center gap-3 hover:underline`},{default:c(()=>[e(m,{person:I.post.author,class:`size-9`},null,8,[`person`]),r(`span`,null,[r(`span`,O,l(I.post.author.name),1),I.post.author.job_title?(o(),i(`span`,k,l(I.post.author.job_title),1)):d(``,!0)])]),_:1},8,[`href`])):d(``,!0),r(`span`,A,l(n(p)(I.post.published_at)),1),r(`span`,j,[e(n(h),{class:`size-4`}),t(` `+l(I.post.reading_minutes)+` Min. Lesezeit`,1)])])]),I.post.cover_url?(o(),i(`img`,{key:0,src:I.post.cover_url,alt:I.post.title,class:`mt-8 aspect-video w-full rounded-lg object-cover`},null,8,M)):d(``,!0),r(`div`,{class:`prose prose-neutral mt-8 max-w-none prose-headings:tracking-tight prose-img:rounded-lg`,innerHTML:I.post.body_html},null,8,N),I.form?(o(),u(S,{key:1,content:I.form,class:`mt-10`},null,8,[`content`])):d(``,!0)]),I.related.data.length?(o(),i(`section`,P,[R[2]||=r(`h2`,{class:`mb-4 text-lg font-semibold`},`Weitere Beiträge`,-1),r(`div`,F,[(o(!0),i(s,null,a(I.related.data,e=>(o(),u(x,{key:e.id,post:e},null,8,[`post`]))),128))])])):d(``,!0)]),_:1},8,[`title`]))}};export{I as default}; \ No newline at end of file diff --git a/public/build/assets/Show-Cl9wZW4g.js b/public/build/assets/Show-DPLD0BpX.js similarity index 87% rename from public/build/assets/Show-Cl9wZW4g.js rename to public/build/assets/Show-DPLD0BpX.js index 7df39ea8..0457e3af 100644 --- a/public/build/assets/Show-Cl9wZW4g.js +++ b/public/build/assets/Show-DPLD0BpX.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-CIvn5Z1l.js";import{j as d}from"./dist-CleIz2GP.js";import{G as f,N as p,o as m,tt as h}from"./AppIcon-BVHFLm12.js";import{t as g}from"./arrow-left-nZZEveo4.js";import{t as _}from"./AppLayout-Cy38OwfZ.js";import{t as v}from"./button-SRYY3-ko.js";import{t as y}from"./Panel-xPHuwfuu.js";import{t as b}from"./EventDateBlock-Cxz_hY6g.js";var x=d({name:`calendar-plus`,size:24,node:[[`path`,{d:`M16 18h6`,key:`987eiv`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M19 15v6`,key:`10aioa`}],[`path`,{d:`M21 11.5V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h8.3`,key:`jgwkxf`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}]]}),S={class:`mx-auto max-w-4xl`},C={class:`flex items-start gap-4`},w={class:`pt-1 text-2xl leading-tight font-semibold tracking-tight sm:text-3xl`},T=[`src`,`alt`],E={class:`mt-6 grid gap-6 lg:grid-cols-3`},D=[`innerHTML`],O={key:1,class:`text-sm text-muted-foreground`},k={class:`grid gap-4 text-sm`},A={class:`flex gap-3`},j={key:0,class:`flex gap-3`},M={key:1,class:`flex gap-3`},N={class:`min-w-0`},P={class:`truncate`},F=[`href`],I=[`href`],L={__name:`Show`,props:{event:{type:Object,required:!0}},setup(d){return(L,R)=>(a(),c(_,{title:d.event.title},{default:o(()=>[r(`div`,S,[e(n(u),{href:`/termine`,class:`mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(g),{class:`size-4`}),R[0]||=t(` Alle Termine `,-1)]),_:1}),r(`div`,C,[e(b,{date:d.event.starts_at,class:`w-16 py-2`},null,8,[`date`]),r(`h1`,w,s(d.event.title),1)]),d.event.image_url?(a(),i(`img`,{key:0,src:d.event.image_url,alt:d.event.title,class:`mt-6 aspect-video w-full rounded-lg object-cover`},null,8,T)):l(``,!0),r(`div`,E,[e(y,{title:`Beschreibung`,class:`lg:col-span-2`},{default:o(()=>[d.event.description_html?(a(),i(`div`,{key:0,class:`prose prose-neutral max-w-none text-[15px]`,innerHTML:d.event.description_html},null,8,D)):(a(),i(`p`,O,`Keine weiteren Informationen.`))]),_:1}),e(y,{title:`Details`,class:`content-start`},{default:o(()=>[r(`dl`,k,[r(`div`,A,[e(n(h),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,null,[R[1]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Wann`,-1),r(`dd`,null,s(n(m)(d.event)),1)])]),d.event.location?(a(),i(`div`,j,[e(n(f),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,null,[R[2]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Ort`,-1),r(`dd`,null,s(d.event.location),1)])])):l(``,!0),d.event.online_url?(a(),i(`div`,M,[e(n(p),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,N,[R[3]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Online`,-1),r(`dd`,P,[r(`a`,{href:d.event.online_url,target:`_blank`,rel:`noopener`,class:`text-brand-text hover:underline`},`Zur Teilnahme`,8,F)])])])):l(``,!0)]),e(n(v),{variant:`outline`,class:`mt-5 w-full`,"as-child":``},{default:o(()=>[r(`a`,{href:`/termine/${d.event.id}/kalender.ics`},[e(n(x)),R[4]||=t(` In meinen Kalender`,-1)],8,I)]),_:1})]),_:1})])])]),_:1},8,[`title`]))}};export{L as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-Dy5FbYkt.js";import{j as d}from"./dist-CleIz2GP.js";import{G as f,N as p,o as m,tt as h}from"./AppIcon-SVMShh8s.js";import{t as g}from"./arrow-left-nZZEveo4.js";import{t as _}from"./AppLayout-X0y7XSjx.js";import{t as v}from"./button-SRYY3-ko.js";import{t as y}from"./Panel-DF-wChKt.js";import{t as b}from"./EventDateBlock-DzdXYi61.js";var x=d({name:`calendar-plus`,size:24,node:[[`path`,{d:`M16 18h6`,key:`987eiv`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M19 15v6`,key:`10aioa`}],[`path`,{d:`M21 11.5V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h8.3`,key:`jgwkxf`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}]]}),S={class:`mx-auto max-w-4xl`},C={class:`flex items-start gap-4`},w={class:`pt-1 text-2xl leading-tight font-semibold tracking-tight sm:text-3xl`},T=[`src`,`alt`],E={class:`mt-6 grid gap-6 lg:grid-cols-3`},D=[`innerHTML`],O={key:1,class:`text-sm text-muted-foreground`},k={class:`grid gap-4 text-sm`},A={class:`flex gap-3`},j={key:0,class:`flex gap-3`},M={key:1,class:`flex gap-3`},N={class:`min-w-0`},P={class:`truncate`},F=[`href`],I=[`href`],L={__name:`Show`,props:{event:{type:Object,required:!0}},setup(d){return(L,R)=>(a(),c(_,{title:d.event.title},{default:o(()=>[r(`div`,S,[e(n(u),{href:`/termine`,class:`mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(g),{class:`size-4`}),R[0]||=t(` Alle Termine `,-1)]),_:1}),r(`div`,C,[e(b,{date:d.event.starts_at,class:`w-16 py-2`},null,8,[`date`]),r(`h1`,w,s(d.event.title),1)]),d.event.image_url?(a(),i(`img`,{key:0,src:d.event.image_url,alt:d.event.title,class:`mt-6 aspect-video w-full rounded-lg object-cover`},null,8,T)):l(``,!0),r(`div`,E,[e(y,{title:`Beschreibung`,class:`lg:col-span-2`},{default:o(()=>[d.event.description_html?(a(),i(`div`,{key:0,class:`prose prose-neutral max-w-none text-[15px]`,innerHTML:d.event.description_html},null,8,D)):(a(),i(`p`,O,`Keine weiteren Informationen.`))]),_:1}),e(y,{title:`Details`,class:`content-start`},{default:o(()=>[r(`dl`,k,[r(`div`,A,[e(n(h),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,null,[R[1]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Wann`,-1),r(`dd`,null,s(n(m)(d.event)),1)])]),d.event.location?(a(),i(`div`,j,[e(n(f),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,null,[R[2]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Ort`,-1),r(`dd`,null,s(d.event.location),1)])])):l(``,!0),d.event.online_url?(a(),i(`div`,M,[e(n(p),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,N,[R[3]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Online`,-1),r(`dd`,P,[r(`a`,{href:d.event.online_url,target:`_blank`,rel:`noopener`,class:`text-brand-text hover:underline`},`Zur Teilnahme`,8,F)])])])):l(``,!0)]),e(n(v),{variant:`outline`,class:`mt-5 w-full`,"as-child":``},{default:o(()=>[r(`a`,{href:`/termine/${d.event.id}/kalender.ics`},[e(n(x)),R[4]||=t(` In meinen Kalender`,-1)],8,I)]),_:1})]),_:1})])])]),_:1},8,[`title`]))}};export{L as default}; \ No newline at end of file diff --git a/public/build/assets/Show-CXvEssaa.js b/public/build/assets/Show-DQfCPmd5.js similarity index 81% rename from public/build/assets/Show-CXvEssaa.js rename to public/build/assets/Show-DQfCPmd5.js index 991d5f1f..54cbf558 100644 --- a/public/build/assets/Show-CXvEssaa.js +++ b/public/build/assets/Show-DQfCPmd5.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-CIvn5Z1l.js";import{a as d}from"./AppIcon-BVHFLm12.js";import{t as f}from"./arrow-left-nZZEveo4.js";import{t as p}from"./calendar-clock-CswFc-uh.js";import{t as m}from"./AppLayout-Cy38OwfZ.js";import{t as h}from"./FormRenderer-nT5JUcxg.js";var g={class:`mx-auto max-w-3xl`},_={class:`text-3xl font-semibold tracking-tight`},v={key:0,class:`mt-3 leading-relaxed whitespace-pre-line text-muted-foreground`},y={key:1,class:`mt-3 inline-flex items-center gap-1.5 text-[13px] text-muted-foreground`},b={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},x={__name:`Show`,props:{form:{type:Object,required:!0}},setup(x){return(S,C)=>(a(),c(m,{title:x.form.title},{default:o(()=>[r(`div`,g,[e(n(u),{href:`/formulare`,class:`mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(f),{class:`size-4`}),C[0]||=t(` Alle Formulare `,-1)]),_:1}),r(`h1`,_,s(x.form.title),1),x.form.description?(a(),i(`p`,v,s(x.form.description),1)):l(``,!0),x.form.closes_at&&x.form.open?(a(),i(`p`,y,[e(n(p),{class:`size-4`}),t(` Einsendeschluss: `+s(n(d)(x.form.closes_at)),1)])):l(``,!0),r(`div`,b,[e(h,{form:x.form},null,8,[`form`])])])]),_:1},8,[`title`]))}};export{x as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-Dy5FbYkt.js";import{a as d}from"./AppIcon-SVMShh8s.js";import{t as f}from"./arrow-left-nZZEveo4.js";import{t as p}from"./calendar-clock-CswFc-uh.js";import{t as m}from"./AppLayout-X0y7XSjx.js";import{t as h}from"./FormRenderer-BI08HA0r.js";var g={class:`mx-auto max-w-3xl`},_={class:`text-3xl font-semibold tracking-tight`},v={key:0,class:`mt-3 leading-relaxed whitespace-pre-line text-muted-foreground`},y={key:1,class:`mt-3 inline-flex items-center gap-1.5 text-[13px] text-muted-foreground`},b={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},x={__name:`Show`,props:{form:{type:Object,required:!0}},setup(x){return(S,C)=>(a(),c(m,{title:x.form.title},{default:o(()=>[r(`div`,g,[e(n(u),{href:`/formulare`,class:`mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(f),{class:`size-4`}),C[0]||=t(` Alle Formulare `,-1)]),_:1}),r(`h1`,_,s(x.form.title),1),x.form.description?(a(),i(`p`,v,s(x.form.description),1)):l(``,!0),x.form.closes_at&&x.form.open?(a(),i(`p`,y,[e(n(p),{class:`size-4`}),t(` Einsendeschluss: `+s(n(d)(x.form.closes_at)),1)])):l(``,!0),r(`div`,b,[e(h,{form:x.form},null,8,[`form`])])])]),_:1},8,[`title`]))}};export{x as default}; \ No newline at end of file diff --git a/public/build/assets/Show-DghwZmO4.js b/public/build/assets/Show-pboqfIu7.js similarity index 95% rename from public/build/assets/Show-DghwZmO4.js rename to public/build/assets/Show-pboqfIu7.js index 963e1ad1..9de5dd08 100644 --- a/public/build/assets/Show-DghwZmO4.js +++ b/public/build/assets/Show-pboqfIu7.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-CIvn5Z1l.js";import{G as g,K as _,b as v}from"./AppIcon-BVHFLm12.js";import{l as y}from"./RovingFocusGroup-NIVUjBd5.js";import{n as b,t as ee}from"./AppLayout-Cy38OwfZ.js";import{y as x}from"./http-9R3L4KBg.js";import{t as S}from"./smartphone-2VTLQVgX.js";import{t as C}from"./button-SRYY3-ko.js";import{t as w}from"./Panel-xPHuwfuu.js";var T={class:`overflow-hidden rounded-lg border bg-card`},E={class:`flex flex-col gap-4 px-6 pb-6 sm:flex-row sm:items-end sm:justify-between`},D={class:`flex flex-col gap-4 sm:flex-row sm:items-end`},O={class:`sm:pb-1`},k={class:`text-2xl font-semibold tracking-tight`},A={key:0,class:`mt-0.5 text-[15px] text-muted-foreground`},j={class:`flex gap-2 sm:pb-1`},M=[`href`],N={class:`mt-6 grid gap-6 lg:grid-cols-12`},P={class:`grid content-start gap-6 lg:col-span-5`},F={class:`grid gap-4`},I={class:`min-w-0`},te={class:`text-xs text-muted-foreground`},L={class:`truncate text-sm`},R=[`href`],z={class:`grid gap-4`},B={class:`text-xs text-muted-foreground`},V=[`href`,`target`],H={class:`grid content-start gap-6 lg:col-span-7`},U={key:0,class:`text-sm leading-relaxed whitespace-pre-line`},W={key:1,class:`text-sm text-muted-foreground`},G={key:0,class:`mb-4`},K={class:`block text-sm font-semibold`},q={class:`block text-[13px] text-muted-foreground`},J={key:1},Y={class:`flex flex-wrap gap-2`},X={__name:`Show`,props:{person:{type:Object,required:!0},isOwnProfile:{type:Boolean,default:!1}},setup(X){let Z=X,Q=s(()=>[{icon:_,label:`E-Mail`,value:Z.person.email,href:`mailto:${Z.person.email}`},{icon:x,label:`Telefon`,value:Z.person.phone,href:Z.person.phone&&`tel:${Z.person.phone}`},{icon:S,label:`Mobil`,value:Z.person.mobile,href:Z.person.mobile&&`tel:${Z.person.mobile}`},{icon:y,label:`Abteilung`,value:Z.person.department},{icon:g,label:`Standort`,value:Z.person.location}].filter(e=>e.value));function $(e){return e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value}`:e.type===`url`&&/^https?:\/\//i.test(e.value)?e.value:null}return(s,g)=>(c(),f(ee,{title:X.person.name},{default:u(()=>[i(`section`,T,[g[2]||=i(`div`,{class:`h-28 bg-brand sm:h-32`,style:{"background-image":`linear-gradient(120deg, transparent 40%, rgb(255 255 255 / 0.08))`}},null,-1),i(`div`,E,[i(`div`,D,[e(v,{person:X.person,class:`-mt-14 size-28 text-2xl ring-4 ring-card`},null,8,[`person`]),i(`div`,O,[i(`h1`,k,d(X.person.name),1),X.person.job_title?(c(),a(`p`,A,d(X.person.job_title),1)):m(``,!0)])]),i(`div`,j,[X.isOwnProfile?(c(),f(n(C),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/profil/bearbeiten`},{default:u(()=>[e(n(b)),g[0]||=t(` Profil bearbeiten`,-1)]),_:1})]),_:1})):(c(),f(n(C),{key:1,"as-child":``},{default:u(()=>[i(`a`,{href:`mailto:${X.person.email}`},[e(n(_)),g[1]||=t(` E-Mail schreiben`,-1)],8,M)]),_:1}))])])]),i(`div`,N,[i(`div`,P,[e(w,{title:`Kontakt`},{default:u(()=>[i(`dl`,F,[(c(!0),a(l,null,o(Q.value,e=>(c(),a(`div`,{key:e.label,class:`flex items-start gap-3`},[(c(),f(p(e.icon),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`})),i(`div`,I,[i(`dt`,te,d(e.label),1),i(`dd`,L,[e.href?(c(),a(`a`,{key:0,href:e.href,class:`text-brand-text hover:underline`},d(e.value),9,R)):(c(),a(l,{key:1},[t(d(e.value),1)],64))])])]))),128))])]),_:1}),X.person.fields?.length?(c(),f(w,{key:0,title:`Weitere Angaben`},{default:u(()=>[i(`dl`,z,[(c(!0),a(l,null,o(X.person.fields,e=>(c(),a(`div`,{key:e.key,class:`min-w-0`},[i(`dt`,B,d(e.label),1),i(`dd`,{class:r([`text-sm break-words`,{"whitespace-pre-line":e.type===`textarea`}])},[$(e)?(c(),a(`a`,{key:0,href:$(e),class:`text-brand-text hover:underline`,target:e.type===`url`?`_blank`:void 0,rel:`noopener`},d(e.value),9,V)):(c(),a(l,{key:1},[t(d(e.value),1)],64))],2)]))),128))])]),_:1})):m(``,!0)]),i(`div`,H,[e(w,{title:`Über mich`},{default:u(()=>[X.person.about?(c(),a(`p`,U,d(X.person.about),1)):(c(),a(`p`,W,`Noch keine Angaben.`))]),_:1}),X.person.manager||X.person.reports.length?(c(),f(w,{key:0,title:`Team`,"action-label":`Im Organigramm`,"action-href":`/personen/organigramm?person=${X.person.id}`},{default:u(()=>[X.person.manager?(c(),a(`div`,G,[g[3]||=i(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Vorgesetzte*r`,-1),e(n(h),{href:`/personen/${X.person.manager.id}`,class:`flex items-center gap-3 rounded-lg p-2 -m-2 hover:bg-accent`},{default:u(()=>[e(v,{person:X.person.manager,class:`size-10`},null,8,[`person`]),i(`span`,null,[i(`span`,K,d(X.person.manager.name),1),i(`span`,q,d(X.person.manager.job_title),1)])]),_:1},8,[`href`])])):m(``,!0),X.person.reports.length?(c(),a(`div`,J,[g[4]||=i(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Mitarbeitende`,-1),i(`div`,Y,[(c(!0),a(l,null,o(X.person.reports,t=>(c(),f(n(h),{key:t.id,href:`/personen/${t.id}`,title:t.name,class:`rounded-full hover:ring-2 hover:ring-brand-300`},{default:u(()=>[e(v,{person:t,class:`size-9`},null,8,[`person`])]),_:2},1032,[`href`,`title`]))),128))])])):m(``,!0)]),_:1},8,[`action-href`])):m(``,!0)])])]),_:1},8,[`title`]))}};export{X as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-Dy5FbYkt.js";import{G as g,K as _,b as v}from"./AppIcon-SVMShh8s.js";import{l as y}from"./RovingFocusGroup-NIVUjBd5.js";import{n as b,t as ee}from"./AppLayout-X0y7XSjx.js";import{y as x}from"./http-9R3L4KBg.js";import{t as S}from"./smartphone-2VTLQVgX.js";import{t as C}from"./button-SRYY3-ko.js";import{t as w}from"./Panel-DF-wChKt.js";var T={class:`overflow-hidden rounded-lg border bg-card`},E={class:`flex flex-col gap-4 px-6 pb-6 sm:flex-row sm:items-end sm:justify-between`},D={class:`flex flex-col gap-4 sm:flex-row sm:items-end`},O={class:`sm:pb-1`},k={class:`text-2xl font-semibold tracking-tight`},A={key:0,class:`mt-0.5 text-[15px] text-muted-foreground`},j={class:`flex gap-2 sm:pb-1`},M=[`href`],N={class:`mt-6 grid gap-6 lg:grid-cols-12`},P={class:`grid content-start gap-6 lg:col-span-5`},F={class:`grid gap-4`},I={class:`min-w-0`},te={class:`text-xs text-muted-foreground`},L={class:`truncate text-sm`},R=[`href`],z={class:`grid gap-4`},B={class:`text-xs text-muted-foreground`},V=[`href`,`target`],H={class:`grid content-start gap-6 lg:col-span-7`},U={key:0,class:`text-sm leading-relaxed whitespace-pre-line`},W={key:1,class:`text-sm text-muted-foreground`},G={key:0,class:`mb-4`},K={class:`block text-sm font-semibold`},q={class:`block text-[13px] text-muted-foreground`},J={key:1},Y={class:`flex flex-wrap gap-2`},X={__name:`Show`,props:{person:{type:Object,required:!0},isOwnProfile:{type:Boolean,default:!1}},setup(X){let Z=X,Q=s(()=>[{icon:_,label:`E-Mail`,value:Z.person.email,href:`mailto:${Z.person.email}`},{icon:x,label:`Telefon`,value:Z.person.phone,href:Z.person.phone&&`tel:${Z.person.phone}`},{icon:S,label:`Mobil`,value:Z.person.mobile,href:Z.person.mobile&&`tel:${Z.person.mobile}`},{icon:y,label:`Abteilung`,value:Z.person.department},{icon:g,label:`Standort`,value:Z.person.location}].filter(e=>e.value));function $(e){return e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value}`:e.type===`url`&&/^https?:\/\//i.test(e.value)?e.value:null}return(s,g)=>(c(),f(ee,{title:X.person.name},{default:u(()=>[i(`section`,T,[g[2]||=i(`div`,{class:`h-28 bg-brand sm:h-32`,style:{"background-image":`linear-gradient(120deg, transparent 40%, rgb(255 255 255 / 0.08))`}},null,-1),i(`div`,E,[i(`div`,D,[e(v,{person:X.person,class:`-mt-14 size-28 text-2xl ring-4 ring-card`},null,8,[`person`]),i(`div`,O,[i(`h1`,k,d(X.person.name),1),X.person.job_title?(c(),a(`p`,A,d(X.person.job_title),1)):m(``,!0)])]),i(`div`,j,[X.isOwnProfile?(c(),f(n(C),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/profil/bearbeiten`},{default:u(()=>[e(n(b)),g[0]||=t(` Profil bearbeiten`,-1)]),_:1})]),_:1})):(c(),f(n(C),{key:1,"as-child":``},{default:u(()=>[i(`a`,{href:`mailto:${X.person.email}`},[e(n(_)),g[1]||=t(` E-Mail schreiben`,-1)],8,M)]),_:1}))])])]),i(`div`,N,[i(`div`,P,[e(w,{title:`Kontakt`},{default:u(()=>[i(`dl`,F,[(c(!0),a(l,null,o(Q.value,e=>(c(),a(`div`,{key:e.label,class:`flex items-start gap-3`},[(c(),f(p(e.icon),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`})),i(`div`,I,[i(`dt`,te,d(e.label),1),i(`dd`,L,[e.href?(c(),a(`a`,{key:0,href:e.href,class:`text-brand-text hover:underline`},d(e.value),9,R)):(c(),a(l,{key:1},[t(d(e.value),1)],64))])])]))),128))])]),_:1}),X.person.fields?.length?(c(),f(w,{key:0,title:`Weitere Angaben`},{default:u(()=>[i(`dl`,z,[(c(!0),a(l,null,o(X.person.fields,e=>(c(),a(`div`,{key:e.key,class:`min-w-0`},[i(`dt`,B,d(e.label),1),i(`dd`,{class:r([`text-sm break-words`,{"whitespace-pre-line":e.type===`textarea`}])},[$(e)?(c(),a(`a`,{key:0,href:$(e),class:`text-brand-text hover:underline`,target:e.type===`url`?`_blank`:void 0,rel:`noopener`},d(e.value),9,V)):(c(),a(l,{key:1},[t(d(e.value),1)],64))],2)]))),128))])]),_:1})):m(``,!0)]),i(`div`,H,[e(w,{title:`Über mich`},{default:u(()=>[X.person.about?(c(),a(`p`,U,d(X.person.about),1)):(c(),a(`p`,W,`Noch keine Angaben.`))]),_:1}),X.person.manager||X.person.reports.length?(c(),f(w,{key:0,title:`Team`,"action-label":`Im Organigramm`,"action-href":`/personen/organigramm?person=${X.person.id}`},{default:u(()=>[X.person.manager?(c(),a(`div`,G,[g[3]||=i(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Vorgesetzte*r`,-1),e(n(h),{href:`/personen/${X.person.manager.id}`,class:`flex items-center gap-3 rounded-lg p-2 -m-2 hover:bg-accent`},{default:u(()=>[e(v,{person:X.person.manager,class:`size-10`},null,8,[`person`]),i(`span`,null,[i(`span`,K,d(X.person.manager.name),1),i(`span`,q,d(X.person.manager.job_title),1)])]),_:1},8,[`href`])])):m(``,!0),X.person.reports.length?(c(),a(`div`,J,[g[4]||=i(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Mitarbeitende`,-1),i(`div`,Y,[(c(!0),a(l,null,o(X.person.reports,t=>(c(),f(n(h),{key:t.id,href:`/personen/${t.id}`,title:t.name,class:`rounded-full hover:ring-2 hover:ring-brand-300`},{default:u(()=>[e(v,{person:t,class:`size-9`},null,8,[`person`])]),_:2},1032,[`href`,`title`]))),128))])])):m(``,!0)]),_:1},8,[`action-href`])):m(``,!0)])])]),_:1},8,[`title`]))}};export{X as default}; \ No newline at end of file diff --git a/public/build/assets/Skeleton-CDbudwoF.js b/public/build/assets/Skeleton-CDbudwoF.js new file mode 100644 index 00000000..d7ab7ea4 --- /dev/null +++ b/public/build/assets/Skeleton-CDbudwoF.js @@ -0,0 +1 @@ +import{On as e,Zn as t,b as n,mt as r}from"./runtime-core.esm-bundler-B8D2lM98.js";import{d as i}from"./dist-CleIz2GP.js";var a={__name:`Skeleton`,props:{class:{type:[String,Array,Object],default:``}},setup(a){let o=a;return(a,s)=>(r(),n(`div`,{class:t(e(i)(`animate-pulse rounded-md bg-muted`,o.class)),"aria-hidden":`true`},null,2))}};export{a as t}; \ No newline at end of file diff --git a/public/build/assets/Subpages-C2cf5Oaf.js b/public/build/assets/Subpages-BVkH9WFX.js similarity index 90% rename from public/build/assets/Subpages-C2cf5Oaf.js rename to public/build/assets/Subpages-BVkH9WFX.js index 22351766..8cdaceb4 100644 --- a/public/build/assets/Subpages-C2cf5Oaf.js +++ b/public/build/assets/Subpages-BVkH9WFX.js @@ -1 +1 @@ -import{D as e,On as t,Zn as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CIvn5Z1l.js";import{$ as p}from"./AppIcon-BVHFLm12.js";import{t as m}from"./chevron-right-DR4LjgDm.js";var h={key:0,class:`mb-3 text-lg font-semibold`},g={class:`min-w-0 flex-1 truncate font-medium group-hover:underline`},_={__name:`Subpages`,props:{block:{type:Object,required:!0}},setup(_){return(v,y)=>(o(),i(`section`,null,[_.block.data.title?(o(),i(`h3`,h,l(_.block.data.title),1)):d(``,!0),r(`div`,{class:n(_.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-3 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(o(!0),i(s,null,a(_.block.props?.pages??[],i=>(o(),u(t(f),{key:i.id,href:i.url,class:n([`group flex items-center gap-3 hover:bg-accent/50`,_.block.data.layout===`list`?`px-4 py-3`:`rounded-lg border bg-card p-4`])},{default:c(()=>[e(t(p),{class:`size-5 shrink-0 text-brand-text`}),r(`span`,g,l(i.title),1),e(t(m),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`,`class`]))),128)),(_.block.props?.pages??[]).length?d(``,!0):(o(),i(`p`,{key:0,class:n([`text-sm text-muted-foreground`,_.block.data.layout===`list`?`px-4 py-3`:``])},`Keine veröffentlichten Unterseiten.`,2))],2)]))}};export{_ as default}; \ No newline at end of file +import{D as e,On as t,Zn as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Dy5FbYkt.js";import{$ as p}from"./AppIcon-SVMShh8s.js";import{t as m}from"./chevron-right-DR4LjgDm.js";var h={key:0,class:`mb-3 text-lg font-semibold`},g={class:`min-w-0 flex-1 truncate font-medium group-hover:underline`},_={__name:`Subpages`,props:{block:{type:Object,required:!0}},setup(_){return(v,y)=>(o(),i(`section`,null,[_.block.data.title?(o(),i(`h3`,h,l(_.block.data.title),1)):d(``,!0),r(`div`,{class:n(_.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-3 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(o(!0),i(s,null,a(_.block.props?.pages??[],i=>(o(),u(t(f),{key:i.id,href:i.url,class:n([`group flex items-center gap-3 hover:bg-accent/50`,_.block.data.layout===`list`?`px-4 py-3`:`rounded-lg border bg-card p-4`])},{default:c(()=>[e(t(p),{class:`size-5 shrink-0 text-brand-text`}),r(`span`,g,l(i.title),1),e(t(m),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`,`class`]))),128)),(_.block.props?.pages??[]).length?d(``,!0):(o(),i(`p`,{key:0,class:n([`text-sm text-muted-foreground`,_.block.data.layout===`list`?`px-4 py-3`:``])},`Keine veröffentlichten Unterseiten.`,2))],2)]))}};export{_ as default}; \ No newline at end of file diff --git a/public/build/assets/Text-DMEdDK2X.js b/public/build/assets/Text-g2hXGkne.js similarity index 73% rename from public/build/assets/Text-DMEdDK2X.js rename to public/build/assets/Text-g2hXGkne.js index 593ca1ef..9991e039 100644 --- a/public/build/assets/Text-DMEdDK2X.js +++ b/public/build/assets/Text-g2hXGkne.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RichTextEditor-CSdBGrkn.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-CleIz2GP.js","assets/AppIcon-BVHFLm12.js","assets/app-CIvn5Z1l.js","assets/app-BZMCjaRn.css","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/check-DGi8MtvT.js","assets/list-DbBAT7EJ.js","assets/RichTextEditor-Lf5W1_X5.css"])))=>i.map(i=>d[i]); -import{J as e,O as t,On as n,b as r,mt as i,v as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o}from"./app-CIvn5Z1l.js";var s=[`innerHTML`],c={__name:`Text`,props:{block:{type:Object,required:!0}},setup(c){let l=e(`pagebuilder:editing`,!1),u=t(()=>o(()=>import(`./RichTextEditor-CSdBGrkn.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])));return(e,t)=>n(l)?(i(),a(n(u),{key:0,modelValue:c.block.data.html,"onUpdate:modelValue":t[0]||=e=>c.block.data.html=e,placeholder:`Text eingeben …`},null,8,[`modelValue`])):(i(),r(`div`,{key:1,class:`prose prose-neutral max-w-none prose-headings:tracking-tight prose-img:rounded-lg`,innerHTML:c.block.data.html},null,8,s))}};export{c as default}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RichTextEditor-DgNr9C_U.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-CleIz2GP.js","assets/AppIcon-SVMShh8s.js","assets/app-Dy5FbYkt.js","assets/app-BXGstlVh.css","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/check-DGi8MtvT.js","assets/list-DbBAT7EJ.js","assets/RichTextEditor-Lf5W1_X5.css"])))=>i.map(i=>d[i]); +import{J as e,O as t,On as n,b as r,mt as i,v as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o}from"./app-Dy5FbYkt.js";var s=[`innerHTML`],c={__name:`Text`,props:{block:{type:Object,required:!0}},setup(c){let l=e(`pagebuilder:editing`,!1),u=t(()=>o(()=>import(`./RichTextEditor-DgNr9C_U.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])));return(e,t)=>n(l)?(i(),a(n(u),{key:0,modelValue:c.block.data.html,"onUpdate:modelValue":t[0]||=e=>c.block.data.html=e,placeholder:`Text eingeben …`},null,8,[`modelValue`])):(i(),r(`div`,{key:1,class:`prose prose-neutral max-w-none prose-headings:tracking-tight prose-img:rounded-lg`,innerHTML:c.block.data.html},null,8,s))}};export{c as default}; \ No newline at end of file diff --git a/public/build/assets/Upcoming-2G8rjb71.js b/public/build/assets/Upcoming-B9CELbEG.js similarity index 89% rename from public/build/assets/Upcoming-2G8rjb71.js rename to public/build/assets/Upcoming-B9CELbEG.js index 159b69c6..0f6bd305 100644 --- a/public/build/assets/Upcoming-2G8rjb71.js +++ b/public/build/assets/Upcoming-B9CELbEG.js @@ -1 +1 @@ -import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./BirthdayItem-DK6xURSZ.js";import{t as c}from"./Panel-xPHuwfuu.js";var l={class:`-my-2 divide-y`},u={__name:`Upcoming`,props:{birthdays:{type:Array,required:!0},days:{type:Number,default:7}},setup(u){return(d,f)=>(r(),o(c,{title:`Geburtstage`,"action-label":`Alle`,"action-href":`/geburtstage`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.birthdays,e=>(r(),o(s,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128))])]),_:1}))}};export{u as default}; \ No newline at end of file +import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./BirthdayItem-1R7P_7L0.js";import{t as c}from"./Panel-DF-wChKt.js";var l={class:`-my-2 divide-y`},u={__name:`Upcoming`,props:{birthdays:{type:Array,required:!0},days:{type:Number,default:7}},setup(u){return(d,f)=>(r(),o(c,{title:`Geburtstage`,"action-label":`Alle`,"action-href":`/geburtstage`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.birthdays,e=>(r(),o(s,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128))])]),_:1}))}};export{u as default}; \ No newline at end of file diff --git a/public/build/assets/Upcoming-DpyMBhkM.js b/public/build/assets/Upcoming-BI7F0wE_.js similarity index 74% rename from public/build/assets/Upcoming-DpyMBhkM.js rename to public/build/assets/Upcoming-BI7F0wE_.js index d457c449..f51b74f0 100644 --- a/public/build/assets/Upcoming-DpyMBhkM.js +++ b/public/build/assets/Upcoming-BI7F0wE_.js @@ -1 +1 @@ -import{On as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{rt as s}from"./AppIcon-BVHFLm12.js";import{t as c}from"./EmptyState-Ceq4v8mE.js";import{t as l}from"./Panel-xPHuwfuu.js";import{t as u}from"./EventListItem-C_pDZ4ur.js";var d={key:0,class:`-my-3 divide-y`},f={__name:`Upcoming`,props:{events:{type:Array,required:!0}},setup(f){return(p,m)=>(r(),o(l,{title:`Termine`,"action-label":`Alle Termine`,"action-href":`/termine`},{default:a(()=>[f.events.length?(r(),t(`div`,d,[(r(!0),t(i,null,n(f.events,e=>(r(),o(u,{key:e.id,event:e},null,8,[`event`]))),128))])):(r(),o(c,{key:1,icon:e(s),title:`Keine anstehenden Termine`,class:`py-6`},null,8,[`icon`]))]),_:1}))}};export{f as default}; \ No newline at end of file +import{On as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{rt as s}from"./AppIcon-SVMShh8s.js";import{t as c}from"./EmptyState-Ceq4v8mE.js";import{t as l}from"./Panel-DF-wChKt.js";import{t as u}from"./EventListItem-CtMhLvQC.js";var d={key:0,class:`-my-3 divide-y`},f={__name:`Upcoming`,props:{events:{type:Array,required:!0}},setup(f){return(p,m)=>(r(),o(l,{title:`Termine`,"action-label":`Alle Termine`,"action-href":`/termine`},{default:a(()=>[f.events.length?(r(),t(`div`,d,[(r(!0),t(i,null,n(f.events,e=>(r(),o(u,{key:e.id,event:e},null,8,[`event`]))),128))])):(r(),o(c,{key:1,icon:e(s),title:`Keine anstehenden Termine`,class:`py-6`},null,8,[`icon`]))]),_:1}))}};export{f as default}; \ No newline at end of file diff --git a/public/build/assets/UpcomingEvents-xsZFQZUF.js b/public/build/assets/UpcomingEvents-8IRx5hcQ.js similarity index 88% rename from public/build/assets/UpcomingEvents-xsZFQZUF.js rename to public/build/assets/UpcomingEvents-8IRx5hcQ.js index 8b63a807..675dd866 100644 --- a/public/build/assets/UpcomingEvents-xsZFQZUF.js +++ b/public/build/assets/UpcomingEvents-8IRx5hcQ.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CIvn5Z1l.js";import{t as p}from"./chevron-right-DR4LjgDm.js";import{t as m}from"./EventListItem-C_pDZ4ur.js";var h={key:0,class:`mb-3 flex items-center justify-between gap-4`},g={class:`text-lg font-semibold`},_={class:`divide-y rounded-lg border bg-card px-4`},v={key:0,class:`py-3 text-sm text-muted-foreground`},y={__name:`UpcomingEvents`,props:{block:{type:Object,required:!0}},setup(y){return(b,x)=>(o(),i(`section`,null,[y.block.data.title?(o(),i(`div`,h,[r(`h3`,g,l(y.block.data.title),1),e(n(f),{href:`/termine`,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[x[0]||=t(`Alle Termine `,-1),e(n(p),{class:`size-3.5`})]),_:1})])):d(``,!0),r(`div`,_,[(o(!0),i(s,null,a(y.block.props?.events??[],e=>(o(),u(m,{key:e.id,event:e},null,8,[`event`]))),128)),(y.block.props?.events??[]).length?d(``,!0):(o(),i(`p`,v,`Keine anstehenden Termine.`))])]))}};export{y as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Dy5FbYkt.js";import{t as p}from"./chevron-right-DR4LjgDm.js";import{t as m}from"./EventListItem-CtMhLvQC.js";var h={key:0,class:`mb-3 flex items-center justify-between gap-4`},g={class:`text-lg font-semibold`},_={class:`divide-y rounded-lg border bg-card px-4`},v={key:0,class:`py-3 text-sm text-muted-foreground`},y={__name:`UpcomingEvents`,props:{block:{type:Object,required:!0}},setup(y){return(b,x)=>(o(),i(`section`,null,[y.block.data.title?(o(),i(`div`,h,[r(`h3`,g,l(y.block.data.title),1),e(n(f),{href:`/termine`,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[x[0]||=t(`Alle Termine `,-1),e(n(p),{class:`size-3.5`})]),_:1})])):d(``,!0),r(`div`,_,[(o(!0),i(s,null,a(y.block.props?.events??[],e=>(o(),u(m,{key:e.id,event:e},null,8,[`event`]))),128)),(y.block.props?.events??[]).length?d(``,!0):(o(),i(`p`,v,`Keine anstehenden Termine.`))])]))}};export{y as default}; \ No newline at end of file diff --git a/public/build/assets/Video-9vSfEOM0.js b/public/build/assets/Video-CPWoETOd.js similarity index 96% rename from public/build/assets/Video-9vSfEOM0.js rename to public/build/assets/Video-CPWoETOd.js index 13fe348a..6db1d5a6 100644 --- a/public/build/assets/Video-9vSfEOM0.js +++ b/public/build/assets/Video-CPWoETOd.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,mt as i,o as a,tr as o,vn as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{N as c}from"./AppIcon-BVHFLm12.js";import{t as l}from"./play-_hM1KTvn.js";var u={class:`relative aspect-video overflow-hidden rounded-lg bg-neutral-900`},d=[`src`],f=[`src`,`title`],p={class:`grid justify-items-center gap-3 px-6 text-center`},m={class:`grid size-16 place-items-center rounded-full bg-white/15 transition-colors hover:bg-white/25`},h={class:`font-medium`},g={class:`max-w-md text-xs text-white/70`},_={key:1,class:`grid size-full place-items-center text-white/60`},v={__name:`Video`,props:{block:{type:Object,required:!0}},setup(v){let y=s(!1);return(s,b)=>(i(),r(`figure`,null,[n(`div`,u,[v.block.props?.embed?(i(),r(a,{key:0},[v.block.props.embed.provider===`file`?(i(),r(`video`,{key:0,src:v.block.props.embed.src,controls:``,preload:`metadata`,class:`size-full`},null,8,d)):y.value?(i(),r(`iframe`,{key:1,src:`${v.block.props.embed.src}&autoplay=1`,title:v.block.data.title||`Video`,class:`size-full`,allow:`autoplay; fullscreen; picture-in-picture`,allowfullscreen:``},null,8,f)):(i(),r(`button`,{key:2,type:`button`,class:`grid size-full place-items-center text-white`,onClick:b[0]||=e=>y.value=!0},[n(`span`,p,[n(`span`,m,[e(t(l),{class:`size-7 fill-current`})]),n(`span`,h,o(v.block.data.title||`Video abspielen`),1),n(`span`,g,`Beim Abspielen wird das Video von `+o(v.block.props.embed.provider)+` geladen. Dabei werden Daten an `+o(v.block.props.embed.provider)+` übertragen.`,1)])]))],64)):(i(),r(`div`,_,[e(t(c),{class:`size-8`})]))])]))}};export{v as default}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,mt as i,o as a,tr as o,vn as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{N as c}from"./AppIcon-SVMShh8s.js";import{t as l}from"./play-_hM1KTvn.js";var u={class:`relative aspect-video overflow-hidden rounded-lg bg-neutral-900`},d=[`src`],f=[`src`,`title`],p={class:`grid justify-items-center gap-3 px-6 text-center`},m={class:`grid size-16 place-items-center rounded-full bg-white/15 transition-colors hover:bg-white/25`},h={class:`font-medium`},g={class:`max-w-md text-xs text-white/70`},_={key:1,class:`grid size-full place-items-center text-white/60`},v={__name:`Video`,props:{block:{type:Object,required:!0}},setup(v){let y=s(!1);return(s,b)=>(i(),r(`figure`,null,[n(`div`,u,[v.block.props?.embed?(i(),r(a,{key:0},[v.block.props.embed.provider===`file`?(i(),r(`video`,{key:0,src:v.block.props.embed.src,controls:``,preload:`metadata`,class:`size-full`},null,8,d)):y.value?(i(),r(`iframe`,{key:1,src:`${v.block.props.embed.src}&autoplay=1`,title:v.block.data.title||`Video`,class:`size-full`,allow:`autoplay; fullscreen; picture-in-picture`,allowfullscreen:``},null,8,f)):(i(),r(`button`,{key:2,type:`button`,class:`grid size-full place-items-center text-white`,onClick:b[0]||=e=>y.value=!0},[n(`span`,p,[n(`span`,m,[e(t(l),{class:`size-7 fill-current`})]),n(`span`,h,o(v.block.data.title||`Video abspielen`),1),n(`span`,g,`Beim Abspielen wird das Video von `+o(v.block.props.embed.provider)+` geladen. Dabei werden Daten an `+o(v.block.props.embed.provider)+` übertragen.`,1)])]))],64)):(i(),r(`div`,_,[e(t(c),{class:`size-8`})]))])]))}};export{v as default}; \ No newline at end of file diff --git a/public/build/assets/Viewer-Ce52TZDt.js b/public/build/assets/Viewer-Ce52TZDt.js new file mode 100644 index 00000000..aa9cc48d --- /dev/null +++ b/public/build/assets/Viewer-Ce52TZDt.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-DbTMovFB.js","assets/app-Dy5FbYkt.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-BXGstlVh.css"])))=>i.map(i=>d[i]); +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,er as c,it as l,mt as u,o as d,qt as f,tr as p,tt as m,v as h,vn as g,xn as _,y as v}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as y,o as b,t as x}from"./app-Dy5FbYkt.js";import{A as S}from"./dist-CleIz2GP.js";import{et as C}from"./AppIcon-SVMShh8s.js";import{t as w}from"./arrow-left-nZZEveo4.js";import{t as T}from"./AppLayout-X0y7XSjx.js";import{t as E}from"./download-cH_7CRKx.js";import{n as D,r as O,t as k}from"./format-CUVSeMK_.js";import{t as A}from"./minus-G8J1pUIu.js";import{t as j}from"./plus-cKZvz4wH.js";import{t as M}from"./button-SRYY3-ko.js";import{t as N}from"./colors-RDOJqd57.js";var P={class:`relative flex h-full min-h-0 flex-col`},F={class:`flex items-center justify-between gap-3 border-b bg-card px-3 py-1.5 text-[13px] text-muted-foreground`},I={class:`tabular-nums`},L={class:`flex items-center rounded-md border`},R={class:`w-12 text-center tabular-nums`},z={key:0,class:`mx-auto max-w-md rounded-lg border bg-card p-6 text-center text-sm`},B={key:1,class:`grid h-full place-items-center`},V={key:2,class:`grid justify-center gap-4`},H=[`data-page`],U=[`aria-label`],W={__name:`PdfViewer`,props:{url:{type:String,required:!0}},setup(t){let r=t,f=g(null),h=_(null),v=g([]),y=g(1),x=g(1),C=g(!1),w=new Map,T;async function E(){try{let[e,t]=await Promise.all([b(()=>import(`./pdf-DbTMovFB.js`),__vite__mapDeps([0,1,2,3,4])),b(()=>import(`./pdf.worker.min-D00xlTFB.js`),[])]);e.GlobalWorkerOptions.workerSrc=t.default,h.value=await e.getDocument({url:r.url,isEvalSupported:!1,enableXfa:!1}).promise;let n=(await h.value.getPage(1)).getViewport({scale:1}),i=Math.min(f.value.clientWidth-48,860);y.value=Math.max(.5,i/n.width),v.value=Array.from({length:h.value.numPages},(e,t)=>({number:t+1,width:n.width,height:n.height})),await m(),D()}catch(e){console.error(e),C.value=!0}}function D(){T?.disconnect(),w.clear(),T=new IntersectionObserver(e=>{for(let t of e){let e=Number(t.target.dataset.page);t.isIntersecting&&(x.value=e,O(e,t.target.querySelector(`canvas`)))}},{root:f.value,rootMargin:`400px 0px`}),f.value.querySelectorAll(`[data-page]`).forEach(e=>T.observe(e))}async function O(e,t){let n=`${e}@${y.value}`;if(!t||w.get(e)===n)return;w.set(e,n);let r=await h.value.getPage(e),i=r.getViewport({scale:y.value}),a=window.devicePixelRatio||1;t.width=Math.floor(i.width*a),t.height=Math.floor(i.height*a),t.style.width=`${Math.floor(i.width)}px`,t.style.height=`${Math.floor(i.height)}px`,await r.render({canvasContext:t.getContext(`2d`),viewport:i,transform:a===1?null:[a,0,0,a,0,0]}).promise}async function k(e){y.value=Math.min(3,Math.max(.4,Math.round((y.value+e)*10)/10)),await m(),D()}return s(E),l(()=>{T?.disconnect(),h.value?.destroy()}),(t,r)=>(u(),a(`div`,P,[i(`div`,F,[i(`span`,I,p(v.value.length?`Seite ${x.value} von ${v.value.length}`:``),1),i(`div`,L,[i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Verkleinern`,onClick:r[0]||=e=>k(-.2)},[e(n(A),{class:`size-4`})]),i(`span`,R,p(Math.round(y.value*100))+` %`,1),i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Vergrößern`,onClick:r[1]||=e=>k(.2)},[e(n(j),{class:`size-4`})])])]),i(`div`,{ref_key:`container`,ref:f,class:`min-h-0 flex-1 overflow-auto bg-muted/60 px-4 py-6`},[C.value?(u(),a(`div`,z,`Die Datei lässt sich hier nicht anzeigen. Bitte herunterladen.`)):v.value.length?(u(),a(`div`,V,[(u(!0),a(d,null,o(v.value,e=>(u(),a(`div`,{key:e.number,"data-page":e.number,class:`bg-white shadow-md`,style:c({width:`${Math.floor(e.width*y.value)}px`,height:`${Math.floor(e.height*y.value)}px`})},[i(`canvas`,{"aria-label":`Seite ${e.number}`},null,8,U)],12,H))),128))])):(u(),a(`div`,B,[e(n(S),{class:`size-6 animate-spin text-muted-foreground`})]))],512)]))}},G={class:`flex h-[calc(100vh-9.5rem)] min-h-[32rem] flex-col overflow-hidden rounded-lg border bg-card`},K={class:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b px-4 py-3`},q={class:`min-w-0 flex-1`},J={class:`truncate text-lg leading-tight font-semibold`},Y={class:`text-xs text-muted-foreground`},X={class:`flex flex-wrap items-center gap-2`},Z=[`href`],Q=[`href`],$=[`href`],ee={key:1,class:`grid min-h-0 flex-1 place-items-center overflow-auto bg-muted/60 p-6`},te=[`src`,`alt`],ne={__name:`Viewer`,props:{entry:{type:Object,required:!0},file:{type:Object,required:!0},query:{type:String,default:``}},setup(o){return(s,c)=>(u(),h(T,{title:o.entry.title},{default:f(()=>[e(n(x),{title:o.entry.title},null,8,[`title`]),i(`div`,G,[i(`header`,K,[e(n(y),{href:o.entry.folder.url,class:`grid size-9 place-items-center rounded-md hover:bg-accent`,"aria-label":`Zurück zu ${o.entry.folder.path}`},{default:f(()=>[e(n(w),{class:`size-5`})]),_:1},8,[`href`,`aria-label`]),i(`div`,q,[e(n(y),{href:o.entry.folder.url,class:`inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:underline`},{default:f(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(N)(o.entry.folder.color).dot])},null,2),t(p(o.entry.folder.path),1)]),_:1},8,[`href`]),i(`h1`,J,p(o.entry.title),1),i(`p`,Y,[o.entry.version?(u(),a(d,{key:0},[t(`Version `+p(o.entry.version)+` · `,1)],64)):v(``,!0),t(`Stand `+p(n(D)(o.entry.valid_from))+` · `+p(n(k)(o.entry.size)),1)])]),i(`div`,X,[o.entry.editable?(u(),h(n(M),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.editable.url},[e(n(C)),t(` Vorlage (`+p(o.entry.editable.extension)+`)`,1)],8,Z)]),_:1})):v(``,!0),e(n(M),{variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.file.url,target:`_blank`,rel:`noopener`},[e(n(O)),c[0]||=t(` In neuem Tab`,-1)],8,Q)]),_:1}),e(n(M),{size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.download_url},[e(n(E)),c[1]||=t(` Herunterladen`,-1)],8,$)]),_:1})])]),o.file.kind===`pdf`?(u(),h(W,{key:0,url:o.file.url,class:`min-h-0 flex-1`},null,8,[`url`])):(u(),a(`div`,ee,[i(`img`,{src:o.file.url,alt:o.entry.title,class:`max-h-full max-w-full rounded shadow-md`},null,8,te)]))])]),_:1},8,[`title`]))}};export{ne as default}; \ No newline at end of file diff --git a/public/build/assets/app-BXGstlVh.css b/public/build/assets/app-BXGstlVh.css new file mode 100644 index 00000000..92a3648b --- /dev/null +++ b/public/build/assets/app-BXGstlVh.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,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--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-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:var(--font-body);--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-700:oklch(55.3% .195 38.402);--color-orange-800:oklch(47% .157 37.304);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-50:oklch(98.2% .018 155.826);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-700:oklch(52.7% .154 150.069);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-50:oklch(98.4% .014 180.72);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-950:oklch(27.7% .046 192.524);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-950:oklch(25.7% .09 281.288);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-950:oklch(28.3% .141 291.089);--color-pink-500:oklch(65.6% .241 354.308);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-rose-950:oklch(27.1% .105 12.094);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:oklch(97% 0 none);--color-neutral-200:oklch(92.2% 0 none);--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:calc(var(--radius) + 4px);--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-body);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv11", "ss01"}h1,h2,h3,h4,.font-heading{font-family:var(--font-heading)}}@layer components;@layer utilities{.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-x-2{inset-inline:calc(var(--spacing) * 2)}.inset-x-3{inset-inline:calc(var(--spacing) * 3)}.inset-y-0{inset-block:0}.-top-3\.5{top:calc(var(--spacing) * -3.5)}.top-0{top:0}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.top-9{top:calc(var(--spacing) * 9)}.top-20{top:calc(var(--spacing) * 20)}.top-24{top:calc(var(--spacing) * 24)}.top-\[-1px\]{top:-1px}.top-\[50\%\]{top:50%}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-4{right:calc(var(--spacing) * -4)}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-1{bottom:calc(var(--spacing) * -1)}.-bottom-1\.5{bottom:calc(var(--spacing) * -1.5)}.-bottom-5{bottom:calc(var(--spacing) * -5)}.bottom-0{bottom:0}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-0{left:0}.left-2{left:calc(var(--spacing) * 2)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-\[1\.45rem\]{left:1.45rem}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.-z-10{z-index:calc(10 * -1)}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.col-span-8{grid-column:span 8/span 8}.col-span-full{grid-column:1/-1}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container\!{width:100%!important}@media (width>=40rem){.container\!{max-width:40rem!important}}@media (width>=48rem){.container\!{max-width:48rem!important}}@media (width>=64rem){.container\!{max-width:64rem!important}}@media (width>=80rem){.container\!{max-width:80rem!important}}@media (width>=96rem){.container\!{max-width:96rem!important}}.-m-2{margin:calc(var(--spacing) * -2)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-mx-5{margin-inline:calc(var(--spacing) * -5)}.mx-0\.5{margin-inline:calc(var(--spacing) * .5)}.mx-1{margin-inline:var(--spacing)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.-my-1\.5{margin-block:calc(var(--spacing) * -1.5)}.-my-2{margin-block:calc(var(--spacing) * -2)}.-my-3{margin-block:calc(var(--spacing) * -3)}.my-1{margin-block:var(--spacing)}.my-1\.5{margin-block:calc(var(--spacing) * 1.5)}.my-2{margin-block:calc(var(--spacing) * 2)}.my-8{margin-block:calc(var(--spacing) * 8)}.my-auto{margin-block:auto}.me-3{margin-inline-end:calc(var(--spacing) * 3)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-0\.5{margin-top:calc(var(--spacing) * -.5)}.-mt-3{margin-top:calc(var(--spacing) * -3)}.-mt-5{margin-top:calc(var(--spacing) * -5)}.-mt-14{margin-top:calc(var(--spacing) * -14)}.-mt-px{margin-top:-1px}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.-mr-px{margin-right:-1px}.mr-1{margin-right:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-6{margin-right:calc(var(--spacing) * 6)}.mr-auto{margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-2{margin-left:calc(var(--spacing) * -2)}.-ml-px{margin-left:-1px}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-6\.5{margin-left:calc(var(--spacing) * 6.5)}.ml-12{margin-left:calc(var(--spacing) * 12)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\!hidden{display:none!important}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline\!{display:inline!important}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table\!{display:table!important}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-1\/4{width:25%;height:25%}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-4\.5{width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-24{width:calc(var(--spacing) * 24);height:calc(var(--spacing) * 24)}.size-28{width:calc(var(--spacing) * 28);height:calc(var(--spacing) * 28)}.size-32{width:calc(var(--spacing) * 32);height:calc(var(--spacing) * 32)}.size-\[9px\]{width:9px;height:9px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-\(--reka-select-trigger-height\){height:var(--reka-select-trigger-height)}.h-0{height:0}.h-1{height:var(--spacing)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-28{height:calc(var(--spacing) * 28)}.h-32{height:calc(var(--spacing) * 32)}.h-\[1\.15rem\]{height:1.15rem}.h-\[3px\]{height:3px}.h-\[18px\]{height:18px}.h-\[23\.5px\]{height:23.5px}.h-\[56px\]{height:56px}.h-\[85vh\]{height:85vh}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-\[calc\(100vh-9\.5rem\)\]{height:calc(100vh - 9.5rem)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-\(--reka-dropdown-menu-content-available-height\){max-height:var(--reka-dropdown-menu-content-available-height)}.max-h-\(--reka-select-content-available-height\){max-height:var(--reka-select-content-available-height)}.max-h-10{max-height:calc(var(--spacing) * 10)}.max-h-36{max-height:calc(var(--spacing) * 36)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-60{max-height:calc(var(--spacing) * 60)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[calc\(100vh-12rem\)\]{max-height:calc(100vh - 12rem)}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-32{min-height:calc(var(--spacing) * 32)}.min-h-48{min-height:calc(var(--spacing) * 48)}.min-h-72{min-height:calc(var(--spacing) * 72)}.min-h-96{min-height:calc(var(--spacing) * 96)}.min-h-\[18rem\]{min-height:18rem}.min-h-\[32rem\]{min-height:32rem}.min-h-dvh{min-height:100dvh}.min-h-screen{min-height:100vh}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-28{width:calc(var(--spacing) * 28)}.w-54{width:calc(var(--spacing) * 54)}.w-56{width:calc(var(--spacing) * 56)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[18px\]{width:18px}.w-\[22rem\]{width:22rem}.w-\[78\%\]{width:78%}.w-\[116px\]{width:116px}.w-\[340px\]{width:340px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\(--reka-dropdown-menu-content-available-width\){max-width:var(--reka-dropdown-menu-content-available-width)}.max-w-\(--reka-popover-content-available-width\){max-width:var(--reka-popover-content-available-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-10{max-width:calc(var(--spacing) * 10)}.max-w-150{max-width:calc(var(--spacing) * 150)}.max-w-\[390px\]{max-width:390px}.max-w-\[400px\]{max-width:400px}.max-w-\[440px\]{max-width:440px}.max-w-\[768px\]{max-width:768px}.max-w-\[1100px\]{max-width:1100px}.max-w-\[1440px\]{max-width:1440px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-\(--reka-select-trigger-width\){min-width:var(--reka-select-trigger-width)}.min-w-0{min-width:0}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-6{min-width:calc(var(--spacing) * 6)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-28{min-width:calc(var(--spacing) * 28)}.min-w-48{min-width:calc(var(--spacing) * 48)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[8rem\]{min-width:8rem}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--reka-dropdown-menu-content-transform-origin\){transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.origin-\(--reka-popover-content-transform-origin\){transform-origin:var(--reka-popover-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0\.5{--tw-translate-y:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform\!{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)!important}.zoom-100{zoom:100%}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-not-allowed\!{cursor:not-allowed!important}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize\!{resize:both!important}.resize-none{resize:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-start{scroll-snap-align:start}.scroll-my-1{scroll-margin-block:var(--spacing)}.scroll-px-5{scroll-padding-inline:calc(var(--spacing) * 5)}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{appearance:none}.columns-2{columns:2}.columns-3{columns:3}.columns-4{columns:4}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[minmax\(0\,1fr\)_6rem_7rem_6rem_9\.5rem\]{grid-template-columns:minmax(0,1fr) 6rem 7rem 6rem 9.5rem}.grid-cols-\[repeat\(auto-fill\,minmax\(11\.5rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(11.5rem,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(12\.5rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(12.5rem,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(13rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(13rem,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(17rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(17rem,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-items-center{justify-items:center}.gap-0{gap:0}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-12{gap:calc(var(--spacing) * 12)}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.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)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}:where(.divide-neutral-200>:not(:last-child)){border-color:var(--color-neutral-200)}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.justify-self-start{justify-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[3px\]{border-radius:3px}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-full{border-top-left-radius:2147483647px;border-top-right-radius:2147483647px}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-amber-200{border-color:var(--color-amber-200)}.border-border{border-color:var(--border)}.border-brand{border-color:var(--brand)}.border-brand-200{border-color:var(--brand-200)}.border-brand-300{border-color:var(--brand-300)}.border-brand-400{border-color:var(--brand-400)}.border-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.border-destructive\/30{border-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-900{border-color:var(--color-emerald-900)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-input{border-color:var(--input)}.border-neutral-100{border-color:var(--color-neutral-100)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-red-200{border-color:var(--color-red-200)}.border-sky-200{border-color:var(--color-sky-200)}.border-transparent{border-color:#0000}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-200{background-color:var(--color-amber-200)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-amber-700{background-color:var(--color-amber-700)}.bg-background{background-color:var(--background)}.bg-black\/8{background-color:#00000014}@supports (color:color-mix(in lab, red, red)){.bg-black\/8{background-color:color-mix(in oklab, var(--color-black) 8%, transparent)}}.bg-black\/10{background-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.bg-black\/10{background-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.bg-black\/35{background-color:#00000059}@supports (color:color-mix(in lab, red, red)){.bg-black\/35{background-color:color-mix(in oklab, var(--color-black) 35%, transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-700{background-color:var(--color-blue-700)}.bg-border{background-color:var(--border)}.bg-brand{background-color:var(--brand)}.bg-brand-950{background-color:var(--brand-950)}.bg-brand-soft,.bg-brand-soft\/30{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.bg-brand-soft\/30{background-color:color-mix(in oklab, var(--brand-soft) 30%, transparent)}}.bg-brand-soft\/60{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.bg-brand-soft\/60{background-color:color-mix(in oklab, var(--brand-soft) 60%, transparent)}}.bg-brand-soft\/90{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.bg-brand-soft\/90{background-color:color-mix(in oklab, var(--brand-soft) 90%, transparent)}}.bg-card,.bg-card\/90{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/90{background-color:color-mix(in oklab, var(--card) 90%, transparent)}}.bg-card\/95{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/95{background-color:color-mix(in oklab, var(--card) 95%, transparent)}}.bg-current{background-color:currentColor}.bg-destructive,.bg-destructive\/5{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/5{background-color:color-mix(in oklab, var(--destructive) 5%, transparent)}}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-200{background-color:var(--color-emerald-200)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-emerald-700{background-color:var(--color-emerald-700)}.bg-emerald-800{background-color:var(--color-emerald-800)}.bg-foreground{background-color:var(--foreground)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-300{background-color:var(--color-green-300)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-700{background-color:var(--color-green-700)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-muted,.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.bg-muted\/40{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/40{background-color:color-mix(in oklab, var(--muted) 40%, transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.bg-muted\/60{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/60{background-color:color-mix(in oklab, var(--muted) 60%, transparent)}}.bg-neutral-50{background-color:var(--color-neutral-50)}.bg-neutral-600{background-color:var(--color-neutral-600)}.bg-neutral-900{background-color:var(--color-neutral-900)}.bg-orange-50{background-color:var(--color-orange-50)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-700{background-color:var(--color-orange-700)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-600{background-color:var(--color-red-600)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-100{background-color:var(--color-rose-100)}.bg-rose-200{background-color:var(--color-rose-200)}.bg-rose-200\!{background-color:var(--color-rose-200)!important}.bg-rose-500{background-color:var(--color-rose-500)}.bg-rose-600{background-color:var(--color-rose-600)}.bg-secondary{background-color:var(--secondary)}.bg-sky-50{background-color:var(--color-sky-50)}.bg-sky-100{background-color:var(--color-sky-100)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-sky-700{background-color:var(--color-sky-700)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-teal-50{background-color:var(--color-teal-50)}.bg-teal-100{background-color:var(--color-teal-100)}.bg-teal-500{background-color:var(--color-teal-500)}.bg-teal-700{background-color:var(--color-teal-700)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-violet-50{background-color:var(--color-violet-50)}.bg-violet-100{background-color:var(--color-violet-100)}.bg-violet-500{background-color:var(--color-violet-500)}.bg-violet-600{background-color:var(--color-violet-600)}.bg-white{background-color:var(--color-white)}.bg-white\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.bg-white\/5{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.bg-white\/15{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.bg-white\/15{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.bg-white\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\/50{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.bg-white\/\[2\%\]{background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.bg-white\/\[2\%\]{background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\/70{--tw-gradient-from:color-mix(in oklab, var(--color-black) 70%, transparent)}}.from-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab, red, red)){.from-black\/80{--tw-gradient-from:color-mix(in oklab, var(--color-black) 80%, transparent)}}.from-black\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-gray-700\/50{--tw-gradient-from:#36415380}@supports (color:color-mix(in lab, red, red)){.from-gray-700\/50{--tw-gradient-from:color-mix(in oklab, var(--color-gray-700) 50%, transparent)}}.from-gray-700\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-black\/25{--tw-gradient-via:#00000040}@supports (color:color-mix(in lab, red, red)){.via-black\/25{--tw-gradient-via:color-mix(in oklab, var(--color-black) 25%, transparent)}}.via-black\/25{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\/30{--tw-gradient-via:#0000004d}@supports (color:color-mix(in lab, red, red)){.via-black\/30{--tw-gradient-via:color-mix(in oklab, var(--color-black) 30%, transparent)}}.via-black\/30{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\/35{--tw-gradient-via:#00000059}@supports (color:color-mix(in lab, red, red)){.via-black\/35{--tw-gradient-via:color-mix(in oklab, var(--color-black) 35%, transparent)}}.via-black\/35{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-transparent{--tw-gradient-via:transparent;--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black\/5{--tw-gradient-to:#0000000d}@supports (color:color-mix(in lab, red, red)){.to-black\/5{--tw-gradient-to:color-mix(in oklab, var(--color-black) 5%, transparent)}}.to-black\/5{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\/10{--tw-gradient-to:#0000001a}@supports (color:color-mix(in lab, red, red)){.to-black\/10{--tw-gradient-to:color-mix(in oklab, var(--color-black) 10%, transparent)}}.to-black\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.fill-foreground{fill:var(--foreground)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-top{object-position:top}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-0\.75{padding:calc(var(--spacing) * .75)}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-\[6px\]{padding-inline:6px}.py-0{padding-block:0}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-14{padding-block:calc(var(--spacing) * 14)}.py-16{padding-block:calc(var(--spacing) * 16)}.ps-3{padding-inline-start:calc(var(--spacing) * 3)}.pt-0{padding-top:0}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-32{padding-right:calc(var(--spacing) * 32)}.pb-0{padding-bottom:0}.pb-1{padding-bottom:var(--spacing)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-16{padding-left:calc(var(--spacing) * 16)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-body)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/none{font-size:var(--text-xs);line-height:1}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[17px\]{font-size:17px}.text-\[22px\]{font-size:22px}.leading-3{--tw-leading:calc(var(--spacing) * 3);line-height:calc(var(--spacing) * 3)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent2-text{color:var(--accent2-text)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-amber-950{color:var(--color-amber-950)}.text-background{color:var(--background)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-700{color:var(--color-blue-700)}.text-blue-900{color:var(--color-blue-900)}.text-brand-foreground{color:var(--brand-foreground)}.text-brand-soft-foreground{color:var(--brand-soft-foreground)}.text-brand-text{color:var(--brand-text)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-emerald-900{color:var(--color-emerald-900)}.text-emerald-950{color:var(--color-emerald-950)}.text-foreground,.text-foreground\/70{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/70{color:color-mix(in oklab, var(--foreground) 70%, transparent)}}.text-foreground\/75{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/75{color:color-mix(in oklab, var(--foreground) 75%, transparent)}}.text-foreground\/80{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/80{color:color-mix(in oklab, var(--foreground) 80%, transparent)}}.text-gray-200{color:var(--color-gray-200)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-700{color:var(--color-green-700)}.text-indigo-700{color:var(--color-indigo-700)}.text-indigo-800{color:var(--color-indigo-800)}.text-input{color:var(--input)}.text-muted{color:var(--muted)}.text-muted-foreground{color:var(--muted-foreground)}.text-neutral-100{color:var(--color-neutral-100)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-500\!{color:var(--color-neutral-500)!important}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-800{color:var(--color-neutral-800)}.text-neutral-900{color:var(--color-neutral-900)}.text-neutral-950{color:var(--color-neutral-950)}.text-orange-700{color:var(--color-orange-700)}.text-orange-800{color:var(--color-orange-800)}.text-pink-500{color:var(--color-pink-500)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-950{color:var(--color-red-950)}.text-rose-700{color:var(--color-rose-700)}.text-rose-800{color:var(--color-rose-800)}.text-rose-900{color:var(--color-rose-900)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sky-600{color:var(--color-sky-600)}.text-sky-700{color:var(--color-sky-700)}.text-sky-800{color:var(--color-sky-800)}.text-sky-950{color:var(--color-sky-950)}.text-slate-700{color:var(--color-slate-700)}.text-teal-700{color:var(--color-teal-700)}.text-teal-800{color:var(--color-teal-800)}.text-violet-700{color:var(--color-violet-700)}.text-violet-800{color:var(--color-violet-800)}.text-white{color:var(--color-white)}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-white\/85{color:#ffffffd9}@supports (color:color-mix(in lab, red, red)){.text-white\/85{color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\/90{color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.italic\!{font-style:italic!important}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.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,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline\!{text-decoration-line:underline!important}.decoration-neutral-400{-webkit-text-decoration-color:var(--color-neutral-400);-webkit-text-decoration-color:var(--color-neutral-400);-webkit-text-decoration-color:var(--color-neutral-400);text-decoration-color:var(--color-neutral-400)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.accent-\[var\(--brand\)\]{accent-color:var(--brand)}.scheme-light-dark{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){.scheme-light-dark{--lightningcss-light: ;--lightningcss-dark:initial}}.opacity-0{opacity:0}.opacity-15{opacity:.15}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-90{opacity:.9}.opacity-\[0\.12\]{opacity:.12}.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)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px 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)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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)}.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)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + 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)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.ring-3{--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)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + 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)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-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)}.shadow-gray-500\/20{--tw-shadow-color:#6a728233}@supports (color:color-mix(in lab, red, red)){.shadow-gray-500\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-gray-500) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-blue-300{--tw-ring-color:var(--color-blue-300)}.ring-border{--tw-ring-color:var(--border)}.ring-brand-300\/50{--tw-ring-color:var(--brand-300)}@supports (color:color-mix(in lab, red, red)){.ring-brand-300\/50{--tw-ring-color:color-mix(in oklab, var(--brand-300) 50%, transparent)}}.ring-brand-soft{--tw-ring-color:var(--brand-soft)}.ring-card{--tw-ring-color:var(--card)}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.ring-white\/25{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.ring-white\/25{--tw-ring-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline,.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-offset-2{outline-offset:2px}.outline-offset-4{outline-offset:4px}.outline-brand-300{outline-color:var(--brand-300)}.outline-brand-500{outline-color:var(--brand-500)}.outline-destructive{outline-color:var(--destructive)}.outline-transparent{outline-color:#0000}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert\!{--tw-invert:invert(100%)!important;filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.sepia{--tw-sepia:sepia(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-\[1px\]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[max-width\]{transition-property:max-width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[outline-color\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.prose-neutral{--tw-prose-body:oklch(37.1% 0 none);--tw-prose-headings:oklch(20.5% 0 none);--tw-prose-lead:oklch(43.9% 0 none);--tw-prose-links:oklch(20.5% 0 none);--tw-prose-bold:oklch(20.5% 0 none);--tw-prose-counters:oklch(55.6% 0 none);--tw-prose-bullets:oklch(87% 0 none);--tw-prose-hr:oklch(92.2% 0 none);--tw-prose-quotes:oklch(20.5% 0 none);--tw-prose-quote-borders:oklch(92.2% 0 none);--tw-prose-captions:oklch(55.6% 0 none);--tw-prose-kbd:oklch(20.5% 0 none);--tw-prose-kbd-shadows:oklab(20.5% 0 0/.1);--tw-prose-code:oklch(20.5% 0 none);--tw-prose-pre-code:oklch(92.2% 0 none);--tw-prose-pre-bg:oklch(26.9% 0 none);--tw-prose-th-borders:oklch(87% 0 none);--tw-prose-td-borders:oklch(92.2% 0 none);--tw-prose-invert-body:oklch(87% 0 none);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.8% 0 none);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.8% 0 none);--tw-prose-invert-bullets:oklch(43.9% 0 none);--tw-prose-invert-hr:oklch(37.1% 0 none);--tw-prose-invert-quotes:oklch(97% 0 none);--tw-prose-invert-quote-borders:oklch(37.1% 0 none);--tw-prose-invert-captions:oklch(70.8% 0 none);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87% 0 none);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(43.9% 0 none);--tw-prose-invert-td-borders:oklch(37.1% 0 none)}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.repeat-1{--tw-animation-iteration-count:1;animation-iteration-count:1}.repeat-2{--tw-animation-iteration-count:2;animation-iteration-count:2}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\[text-shadow\:0_1px_2px_rgb\(0_0_0\/0\.4\)\]{text-shadow:0 1px 2px #0006}.\[wire\:model\=\"\'\+i\+\'\"\]{wire:model="'+i+'"}.\[wire\:model\=\\\"\'\+expression\+\'\\\"\]{wire:model=\""+expression+"\"}.\[wire\:model\]{wire:model}.\[wire\:transition\]{wire:transition}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.fade-in{--tw-enter-opacity:0}.paused{animation-play-state:paused}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.group-focus-within\:opacity-100:is(:where(.group):focus-within *){opacity:1}.group-focus-within\/rte\:flex:is(:where(.group\/rte):focus-within *){display:flex}@media (hover:hover){.group-hover\:flex:is(:where(.group):hover *){display:flex}.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-\[1\.02\]:is(:where(.group):hover *){scale:1.02}.group-hover\:text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)}.group-hover\:underline:is(:where(.group):hover *){text-decoration-line:underline}.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/card\:opacity-100:is(:where(.group\/card):hover *){opacity:1}.group-hover\/exception\:text-blue-500:is(:where(.group\/exception):hover *){color:var(--color-blue-500)}}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-\[\.status-down\]\:bg-red-600:is(:where(.group).status-down *){background-color:var(--color-red-600)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:bg-red-500 ::selection{background-color:var(--color-red-500)}.selection\:bg-red-500::selection{background-color:var(--color-red-500)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.selection\:text-white ::selection{color:var(--color-white)}.selection\:text-white::selection{color:var(--color-white)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder,.placeholder\:text-muted-foreground\/50::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.placeholder\:text-muted-foreground\/50::placeholder{color:color-mix(in oklab, var(--muted-foreground) 50%, transparent)}}.placeholder\:text-muted-foreground\/60::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.placeholder\:text-muted-foreground\/60::placeholder{color:color-mix(in oklab, var(--muted-foreground) 60%, transparent)}}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-0:after{content:var(--tw-content);inset:0}.first\:ml-0:first-child{margin-left:0}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.odd\:bg-white\/2:nth-child(odd){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.odd\:bg-white\/2:nth-child(odd){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.even\:bg-white:nth-child(2n){background-color:var(--color-white)}.focus-within\:border-brand-400:focus-within{border-color:var(--brand-400)}.focus-within\:ring-3:focus-within{--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)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border:hover{border-style:var(--tw-border-style);border-width:1px}.hover\:border-brand-300:hover{border-color:var(--brand-300)}.hover\:border-neutral-200:hover{border-color:var(--color-neutral-200)}.hover\:bg-accent:hover,.hover\:bg-accent\/40:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/40:hover{background-color:color-mix(in oklab, var(--accent) 40%, transparent)}}.hover\:bg-accent\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/50:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.hover\:bg-accent\/60:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/60:hover{background-color:color-mix(in oklab, var(--accent) 60%, transparent)}}.hover\:bg-black\/55:hover{background-color:#0000008c}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/55:hover{background-color:color-mix(in oklab, var(--color-black) 55%, transparent)}}.hover\:bg-brand-700:hover{background-color:var(--brand-700)}.hover\:bg-brand-soft:hover,.hover\:bg-brand-soft\/60:hover{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-brand-soft\/60:hover{background-color:color-mix(in oklab, var(--brand-soft) 60%, transparent)}}.hover\:bg-card:hover{background-color:var(--card)}.hover\:bg-destructive\/10:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/10:hover{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.hover\:bg-secondary:hover,.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\:bg-white\/15:hover{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/15:hover{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.hover\:bg-white\/50:hover{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/50:hover{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.hover\:bg-white\/80:hover{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/80:hover{background-color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.hover\:bg-white\/90:hover{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/90:hover{background-color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-blue-500:hover{color:var(--color-blue-500)}.hover\:text-brand-soft-foreground:hover{color:var(--brand-soft-foreground)}.hover\:text-destructive:hover{color:var(--destructive)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-gray-400:hover{color:var(--color-gray-400)}.hover\:text-gray-500:hover{color:var(--color-gray-500)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.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)}.hover\:shadow-sm:hover{--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)}.hover\:shadow-xs:hover{--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)}.hover\:ring-2:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.hover\:ring-brand-300:hover{--tw-ring-color:var(--brand-300)}.hover\:outline-brand-300:hover{outline-color:var(--brand-300)}.hover\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{border-color:var(--color-blue-300)}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:bg-brand-soft\/40:focus{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.focus\:bg-brand-soft\/40:focus{background-color:color-mix(in oklab, var(--brand-soft) 40%, transparent)}}.focus\:bg-brand-soft\/50:focus{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.focus\:bg-brand-soft\/50:focus{background-color:color-mix(in oklab, var(--brand-soft) 50%, transparent)}}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:ring:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.focus\:outline-2:focus{outline-style:var(--tw-outline-style);outline-width:2px}.focus\:outline-red-500:focus{outline-color:var(--color-red-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:border-brand-400:focus-visible{border-color:var(--brand-400)}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:opacity-100:focus-visible{opacity:1}.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)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 40%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:cursor-grabbing:active{cursor:grabbing}.active\:bg-gray-100:active{background-color:var(--color-gray-100)}.active\:text-gray-500:active{color:var(--color-gray-500)}.active\:text-gray-700:active{color:var(--color-gray-700)}.active\:text-gray-800:active{color:var(--color-gray-800)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.has-checked\:border-brand-400:has(:checked){border-color:var(--brand-400)}.has-checked\:bg-brand-soft\/60:has(:checked){background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.has-checked\:bg-brand-soft\/60:has(:checked){background-color:color-mix(in oklab, var(--brand-soft) 60%, transparent)}}.has-\[\>svg\]\:px-1\.5:has(>svg){padding-inline:calc(var(--spacing) * 1.5)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--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)}.data-\[state\=active\]\:after\:absolute[data-state=active]:after{content:var(--tw-content);position:absolute}.data-\[state\=active\]\:after\:inset-x-2[data-state=active]:after{content:var(--tw-content);inset-inline:calc(var(--spacing) * 2)}.data-\[state\=active\]\:after\:bottom-0[data-state=active]:after{content:var(--tw-content);bottom:0}.data-\[state\=active\]\:after\:h-\[3px\][data-state=active]:after{content:var(--tw-content);height:3px}.data-\[state\=active\]\:after\:rounded-t-full[data-state=active]:after{content:var(--tw-content);border-top-left-radius:2147483647px;border-top-right-radius:2147483647px}.data-\[state\=active\]\:after\:bg-brand[data-state=active]:after{content:var(--tw-content);background-color:var(--brand)}.data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state=checked]{--tw-translate-x:calc(100% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-\[backdrop-filter\]\:bg-card\/85{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.supports-\[backdrop-filter\]\:bg-card\/85{background-color:color-mix(in oklab, var(--card) 85%, transparent)}}}@media not all and (width>=48rem){.max-md\:opacity-100{opacity:1}}@media (width>=40rem){.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-6{bottom:calc(var(--spacing) * 6)}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:mx-0{margin-inline:0}.sm\:mt-0{margin-top:0}.sm\:mb-16{margin-bottom:calc(var(--spacing) * 16)}.sm\:block{display:block}.sm\:contents{display:contents}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:aspect-\[16\/9\]{aspect-ratio:16/9}.sm\:h-32{height:calc(var(--spacing) * 32)}.sm\:w-3\/4{width:75%}.sm\:w-32{width:calc(var(--spacing) * 32)}.sm\:w-56{width:calc(var(--spacing) * 56)}.sm\:w-72{width:calc(var(--spacing) * 72)}.sm\:w-80{width:calc(var(--spacing) * 80)}.sm\:w-auto{width:auto}.sm\:max-w-2xl{max-width:var(--container-2xl)}.sm\:max-w-5xl{max-width:var(--container-5xl)}.sm\:max-w-\[65\%\]{max-width:65%}.sm\:max-w-\[340px\]{max-width:340px}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:max-w-xl{max-width:var(--container-xl)}.sm\:flex-1{flex:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:flex-col{flex-direction:column}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:justify-center{justify-content:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-start{justify-content:flex-start}.sm\:gap-2{gap:calc(var(--spacing) * 2)}.sm\:gap-x-6{column-gap:calc(var(--spacing) * 6)}:where(.sm\:divide-y-0>: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(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}.sm\:overflow-visible{overflow:visible}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.sm\:from-black\/75{--tw-gradient-from:#000000bf}@supports (color:color-mix(in lab, red, red)){.sm\:from-black\/75{--tw-gradient-from:color-mix(in oklab, var(--color-black) 75%, transparent)}}.sm\:from-black\/75{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.sm\:via-black\/40{--tw-gradient-via:#0006}@supports (color:color-mix(in lab, red, red)){.sm\:via-black\/40{--tw-gradient-via:color-mix(in oklab, var(--color-black) 40%, transparent)}}.sm\:via-black\/40{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.sm\:to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:p-10{padding:calc(var(--spacing) * 10)}.sm\:p-14{padding:calc(var(--spacing) * 14)}.sm\:px-0{padding-inline:0}.sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-8{padding-inline:calc(var(--spacing) * 8)}.sm\:py-0{padding-block:0}.sm\:pt-0{padding-top:0}.sm\:pt-16{padding-top:calc(var(--spacing) * 16)}.sm\:pb-0{padding-bottom:0}.sm\:pb-1{padding-bottom:var(--spacing)}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-\[32px\]{font-size:32px}.sm\:text-\[34px\]{font-size:34px}}@media (width>=48rem){.md\:static{position:static}.md\:block{display:block}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:w-full{width:100%}.md\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,1fr\)_6rem_7rem_6rem_9\.5rem\]{grid-template-columns:minmax(0,1fr) 6rem 7rem 6rem 9.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_6rem_7rem_6rem_11\.5rem\]{grid-template-columns:minmax(0,1fr) 6rem 7rem 6rem 11.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_8rem_9\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 8rem 9.5rem 6.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_9\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 9.5rem 6.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_11rem_5\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 11rem 5.5rem 6.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_12rem_11rem_5\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 12rem 11rem 5.5rem 6.5rem}.md\:items-center{align-items:center}.md\:gap-4{gap:calc(var(--spacing) * 4)}.md\:pr-4{padding-right:calc(var(--spacing) * 4)}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (width>=64rem){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-4{grid-column:span 4/span 4}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-8{grid-column:span 8/span 8}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-full{height:100%}.lg\:min-h-\[400px\]{min-height:400px}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.lg\:grid-cols-\[260px_minmax\(0\,1fr\)\]{grid-template-columns:260px minmax(0,1fr)}.lg\:grid-cols-\[minmax\(0\,1fr\)_19rem\]{grid-template-columns:minmax(0,1fr) 19rem}.lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\]{grid-template-columns:minmax(0,1fr) 20rem}.lg\:grid-cols-\[minmax\(0\,1fr\)_320px\]{grid-template-columns:minmax(0,1fr) 320px}.lg\:grid-cols-\[minmax\(0\,5fr\)_minmax\(0\,6fr\)\]{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}.lg\:flex-col{flex-direction:column}.lg\:justify-between{justify-content:space-between}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:p-12{padding:calc(var(--spacing) * 12)}.lg\:px-6{padding-inline:calc(var(--spacing) * 6)}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}.lg\:py-7{padding-block:calc(var(--spacing) * 7)}}@media (width>=80rem){.xl\:col-span-1{grid-column:span 1/span 1}.xl\:col-span-2{grid-column:span 2/span 2}.xl\:col-span-3{grid-column:span 3/span 3}.xl\:col-span-9{grid-column:span 9/span 9}.xl\:block{display:block}.xl\:size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.xl\:w-1\/2{width:50%}.xl\:w-80{width:calc(var(--spacing) * 80)}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-\[minmax\(0\,1fr\)_16rem\]{grid-template-columns:minmax(0,1fr) 16rem}.xl\:grid-cols-\[minmax\(0\,1fr\)_18rem\]{grid-template-columns:minmax(0,1fr) 18rem}.xl\:pt-8{padding-top:calc(var(--spacing) * 8)}.xl\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=96rem){.\32 xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (width>=36rem){.\@xl\:col-span-2{grid-column:span 2/span 2}.\@xl\:w-1\/2{width:50%}.\@xl\:grid-cols-\(--cols\){grid-template-columns:var(--cols)}.\@xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\@xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@xl\:p-5{padding:calc(var(--spacing) * 5)}}@container (width>=48rem){.\@3xl\:w-1\/3{width:33.3333%}.\@3xl\:w-2\/3{width:66.6667%}.\@3xl\:grid-cols-\(--cols\){grid-template-columns:var(--cols)}.\@3xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@3xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\@3xl\:p-8{padding:calc(var(--spacing) * 8)}.\@3xl\:p-10{padding:calc(var(--spacing) * 10)}.\@3xl\:p-12{padding:calc(var(--spacing) * 12)}.\@3xl\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.\@3xl\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@container (width>=56rem){.\@4xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=64rem){.\@5xl\:grid-cols-\(--cols\){grid-template-columns:var(--cols)}}.rtl\:flex-row-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.dark\:block:is(.dark *){display:block}.dark\:hidden:is(.dark *){display:none}:where(.dark\:divide-white\/5:is(.dark *)>:not(:last-child)){border-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){:where(.dark\:divide-white\/5:is(.dark *)>:not(:last-child)){border-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}:where(.dark\:divide-white\/10:is(.dark *)>:not(:last-child)){border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){:where(.dark\:divide-white\/10:is(.dark *)>:not(:last-child)){border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\:border-none:is(.dark *){--tw-border-style:none;border-style:none}.dark\:border-amber-500:is(.dark *){border-color:var(--color-amber-500)}.dark\:border-amber-800:is(.dark *){border-color:var(--color-amber-800)}.dark\:border-amber-900:is(.dark *){border-color:var(--color-amber-900)}.dark\:border-blue-600:is(.dark *){border-color:var(--color-blue-600)}.dark\:border-blue-800:is(.dark *){border-color:var(--color-blue-800)}.dark\:border-emerald-500:is(.dark *){border-color:var(--color-emerald-500)}.dark\:border-emerald-600:is(.dark *){border-color:var(--color-emerald-600)}.dark\:border-emerald-900:is(.dark *){border-color:var(--color-emerald-900)}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:border-neutral-500:is(.dark *){border-color:var(--color-neutral-500)}.dark\:border-neutral-700:is(.dark *){border-color:var(--color-neutral-700)}.dark\:border-neutral-800:is(.dark *){border-color:var(--color-neutral-800)}.dark\:border-red-900:is(.dark *){border-color:var(--color-red-900)}.dark\:border-rose-500:is(.dark *){border-color:var(--color-rose-500)}.dark\:border-rose-900:is(.dark *){border-color:var(--color-rose-900)}.dark\:border-sky-900:is(.dark *){border-color:var(--color-sky-900)}.dark\:border-transparent:is(.dark *){border-color:#0000}.dark\:border-white\/5:is(.dark *){border-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/5:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:border-white\/8:is(.dark *){border-color:#ffffff14}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/8:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 8%, transparent)}}.dark\:border-white\/10:is(.dark *){border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/10:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:border-white\/20:is(.dark *){border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/20:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.dark\:border-white\/\[9\%\]:is(.dark *){border-color:#ffffff17}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/\[9\%\]:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 9%, transparent)}}.dark\:bg-\[\#1a1a1a\]:is(.dark *){background-color:#1a1a1a}.dark\:bg-amber-600:is(.dark *){background-color:var(--color-amber-600)}.dark\:bg-amber-900\/50:is(.dark *){background-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-900) 50%, transparent)}}.dark\:bg-amber-950:is(.dark *){background-color:var(--color-amber-950)}.dark\:bg-amber-950\/40:is(.dark *){background-color:#46190166}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-950) 40%, transparent)}}.dark\:bg-amber-950\/50:is(.dark *){background-color:#46190180}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-950) 50%, transparent)}}.dark\:bg-amber-950\/60:is(.dark *){background-color:#46190199}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-950) 60%, transparent)}}.dark\:bg-blue-700:is(.dark *){background-color:var(--color-blue-700)}.dark\:bg-blue-950:is(.dark *){background-color:var(--color-blue-950)}.dark\:bg-blue-950\/60:is(.dark *){background-color:#16245699}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-blue-950) 60%, transparent)}}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.dark\:bg-emerald-600:is(.dark *){background-color:var(--color-emerald-600)}.dark\:bg-emerald-900\/50:is(.dark *){background-color:#004e3b80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-900) 50%, transparent)}}.dark\:bg-emerald-900\/70:is(.dark *){background-color:#004e3bb3}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/70:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-900) 70%, transparent)}}.dark\:bg-emerald-950:is(.dark *){background-color:var(--color-emerald-950)}.dark\:bg-emerald-950\/40:is(.dark *){background-color:#002c2266}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-950) 40%, transparent)}}.dark\:bg-emerald-950\/50:is(.dark *){background-color:#002c2280}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-950) 50%, transparent)}}.dark\:bg-emerald-950\/60:is(.dark *){background-color:#002c2299}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-950) 60%, transparent)}}.dark\:bg-gray-700:is(.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-green-950\/60:is(.dark *){background-color:#032e1599}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-green-950) 60%, transparent)}}.dark\:bg-indigo-950:is(.dark *){background-color:var(--color-indigo-950)}.dark\:bg-indigo-950\/60:is(.dark *){background-color:#1e1a4d99}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-indigo-950) 60%, transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:bg-neutral-400:is(.dark *){background-color:var(--color-neutral-400)}.dark\:bg-neutral-600:is(.dark *){background-color:var(--color-neutral-600)}.dark\:bg-neutral-700:is(.dark *){background-color:var(--color-neutral-700)}.dark\:bg-neutral-800:is(.dark *){background-color:var(--color-neutral-800)}.dark\:bg-neutral-900:is(.dark *){background-color:var(--color-neutral-900)}.dark\:bg-orange-950:is(.dark *){background-color:var(--color-orange-950)}.dark\:bg-orange-950\/50:is(.dark *){background-color:#44130680}@supports (color:color-mix(in lab, red, red)){.dark\:bg-orange-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-orange-950) 50%, transparent)}}.dark\:bg-orange-950\/60:is(.dark *){background-color:#44130699}@supports (color:color-mix(in lab, red, red)){.dark\:bg-orange-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-orange-950) 60%, transparent)}}.dark\:bg-red-950\/40:is(.dark *){background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.dark\:bg-red-950\/50:is(.dark *){background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-red-950) 50%, transparent)}}.dark\:bg-red-950\/60:is(.dark *){background-color:#46080999}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-red-950) 60%, transparent)}}.dark\:bg-rose-600:is(.dark *){background-color:var(--color-rose-600)}.dark\:bg-rose-900\!:is(.dark *){background-color:var(--color-rose-900)!important}.dark\:bg-rose-950:is(.dark *){background-color:var(--color-rose-950)}.dark\:bg-rose-950\/60:is(.dark *){background-color:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark\:bg-rose-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-rose-950) 60%, transparent)}}.dark\:bg-sky-950:is(.dark *){background-color:var(--color-sky-950)}.dark\:bg-sky-950\/40:is(.dark *){background-color:#052f4a66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-sky-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-sky-950) 40%, transparent)}}.dark\:bg-sky-950\/50:is(.dark *){background-color:#052f4a80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-sky-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-sky-950) 50%, transparent)}}.dark\:bg-sky-950\/60:is(.dark *){background-color:#052f4a99}@supports (color:color-mix(in lab, red, red)){.dark\:bg-sky-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-sky-950) 60%, transparent)}}.dark\:bg-slate-900:is(.dark *){background-color:var(--color-slate-900)}.dark\:bg-teal-950:is(.dark *){background-color:var(--color-teal-950)}.dark\:bg-teal-950\/60:is(.dark *){background-color:#022f2e99}@supports (color:color-mix(in lab, red, red)){.dark\:bg-teal-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-teal-950) 60%, transparent)}}.dark\:bg-transparent:is(.dark *){background-color:#0000}.dark\:bg-violet-950:is(.dark *){background-color:var(--color-violet-950)}.dark\:bg-violet-950\/50:is(.dark *){background-color:#2f0d6880}@supports (color:color-mix(in lab, red, red)){.dark\:bg-violet-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-violet-950) 50%, transparent)}}.dark\:bg-violet-950\/60:is(.dark *){background-color:#2f0d6899}@supports (color:color-mix(in lab, red, red)){.dark\:bg-violet-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-violet-950) 60%, transparent)}}.dark\:bg-white:is(.dark *){background-color:var(--color-white)}.dark\:bg-white\/1:is(.dark *){background-color:#ffffff03}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/1:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 1%, transparent)}}.dark\:bg-white\/2:is(.dark *){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/2:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.dark\:bg-white\/3:is(.dark *){background-color:#ffffff08}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/3:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 3%, transparent)}}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/5:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:bg-white\/10:is(.dark *){background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/10:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:bg-white\/\[2\%\]:is(.dark *){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/\[2\%\]:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.dark\:bg-white\/\[3\%\]:is(.dark *){background-color:#ffffff08}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/\[3\%\]:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 3%, transparent)}}.dark\:text-amber-100:is(.dark *){color:var(--color-amber-100)}.dark\:text-amber-200:is(.dark *){color:var(--color-amber-200)}.dark\:text-amber-300:is(.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:is(.dark *){color:var(--color-amber-400)}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-emerald-100:is(.dark *){color:var(--color-emerald-100)}.dark\:text-emerald-200:is(.dark *){color:var(--color-emerald-200)}.dark\:text-emerald-300:is(.dark *){color:var(--color-emerald-300)}.dark\:text-emerald-400:is(.dark *){color:var(--color-emerald-400)}.dark\:text-emerald-500:is(.dark *){color:var(--color-emerald-500)}.dark\:text-gray-200:is(.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:is(.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-gray-600:is(.dark *){color:var(--color-gray-600)}.dark\:text-green-300:is(.dark *){color:var(--color-green-300)}.dark\:text-indigo-200:is(.dark *){color:var(--color-indigo-200)}.dark\:text-indigo-300:is(.dark *){color:var(--color-indigo-300)}.dark\:text-muted-foreground:is(.dark *){color:var(--muted-foreground)}.dark\:text-neutral-100:is(.dark *){color:var(--color-neutral-100)}.dark\:text-neutral-200:is(.dark *){color:var(--color-neutral-200)}.dark\:text-neutral-300:is(.dark *){color:var(--color-neutral-300)}.dark\:text-neutral-400:is(.dark *){color:var(--color-neutral-400)}.dark\:text-neutral-500:is(.dark *){color:var(--color-neutral-500)}.dark\:text-neutral-600:is(.dark *){color:var(--color-neutral-600)}.dark\:text-neutral-600\!:is(.dark *){color:var(--color-neutral-600)!important}.dark\:text-neutral-900:is(.dark *){color:var(--color-neutral-900)}.dark\:text-orange-200:is(.dark *){color:var(--color-orange-200)}.dark\:text-orange-300:is(.dark *){color:var(--color-orange-300)}.dark\:text-red-100:is(.dark *){color:var(--color-red-100)}.dark\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-rose-100:is(.dark *){color:var(--color-rose-100)}.dark\:text-rose-200:is(.dark *){color:var(--color-rose-200)}.dark\:text-rose-300:is(.dark *){color:var(--color-rose-300)}.dark\:text-sky-100:is(.dark *){color:var(--color-sky-100)}.dark\:text-sky-200:is(.dark *){color:var(--color-sky-200)}.dark\:text-sky-300:is(.dark *){color:var(--color-sky-300)}.dark\:text-sky-400:is(.dark *){color:var(--color-sky-400)}.dark\:text-slate-300:is(.dark *){color:var(--color-slate-300)}.dark\:text-teal-200:is(.dark *){color:var(--color-teal-200)}.dark\:text-teal-300:is(.dark *){color:var(--color-teal-300)}.dark\:text-violet-200:is(.dark *){color:var(--color-violet-200)}.dark\:text-violet-300:is(.dark *){color:var(--color-violet-300)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:text-white\!:is(.dark *){color:var(--color-white)!important}.dark\:prose-invert:is(.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}@media (hover:hover){.group-hover\:dark\:text-emerald-500:is(:where(.group):hover *):is(.dark *),.group-hover\/exception\:dark\:text-emerald-500:is(:where(.group\/exception):hover *):is(.dark *){color:var(--color-emerald-500)}}.odd\:dark\:bg-white\/4:nth-child(odd):is(.dark *){background-color:#ffffff0a}@supports (color:color-mix(in lab, red, red)){.odd\:dark\:bg-white\/4:nth-child(odd):is(.dark *){background-color:color-mix(in oklab, var(--color-white) 4%, transparent)}}.even\:dark\:bg-white\/2:nth-child(2n):is(.dark *){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.even\:dark\:bg-white\/2:nth-child(2n):is(.dark *){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}@media (hover:hover){.dark\:hover\:border-none:is(.dark *):hover{--tw-border-style:none;border-style:none}.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.dark\:hover\:bg-gray-900:is(.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-white\/2:is(.dark *):hover{background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/2:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.dark\:hover\:bg-white\/5:is(.dark *):hover{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/5:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:hover\:bg-white\/10:is(.dark *):hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/10:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.hover\:dark\:bg-white\/5:hover:is(.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.hover\:dark\:bg-white\/5:hover:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:hover\:text-emerald-500:is(.dark *):hover{color:var(--color-emerald-500)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}.dark\:hover\:text-gray-300:is(.dark *):hover{color:var(--color-gray-300)}.hover\:dark\:text-white:hover:is(.dark *){color:var(--color-white)}}.dark\:focus\:border-blue-700:is(.dark *):focus{border-color:var(--color-blue-700)}.dark\:focus\:border-blue-800:is(.dark *):focus{border-color:var(--color-blue-800)}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:active\:bg-gray-700:is(.dark *):active{background-color:var(--color-gray-700)}.dark\:active\:text-gray-300:is(.dark *):active{color:var(--color-gray-300)}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[state\=active\]\:border-input:is(.dark *)[data-state=active]{border-color:var(--input)}.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state=active]{color:var(--foreground)}.dark\:data-\[state\=checked\]\:bg-primary-foreground:is(.dark *)[data-state=checked]{background-color:var(--primary-foreground)}.dark\:data-\[state\=unchecked\]\:bg-foreground:is(.dark *)[data-state=unchecked]{background-color:var(--foreground)}.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:color-mix(in oklab, var(--input) 80%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.prose-headings\:tracking-tight :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.prose-img\:rounded-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:var(--radius)}.prose-img\:rounded-md :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:calc(var(--radius) - 2px)}.\[\&_\.prose\]\:text-brand-foreground .prose{color:var(--brand-foreground)}.\[\&_\.tiptap\]\:min-h-24 .tiptap{min-height:calc(var(--spacing) * 24)}.\[\&_\.tiptap\]\:min-h-72 .tiptap{min-height:calc(var(--spacing) * 72)}.\[\&_a\]\:text-brand-foreground a{color:var(--brand-foreground)}.\[\&_a\]\:underline a{text-decoration-line:underline}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-2\.5 svg{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\]\:\!text-white svg{color:var(--color-white)!important}@media (hover:hover){.hover\:\[\&_svg\]\:stroke-emerald-500:hover svg{stroke:var(--color-emerald-500)}}.dark\:\[\&_svg\]\:\!text-white:is(.dark *) svg{color:var(--color-white)!important}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive\![data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{rotate:180deg}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab, var(--secondary) 90%, transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-ext-wght-normal-C8iNium2.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-wght-normal-BqRLTx4X.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans Variable;font-style:normal;font-display:swap;font-weight:300 800;src:url(/build/assets/open-sans-latin-ext-wght-normal-DPNHYqvY.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans Variable;font-style:normal;font-display:swap;font-weight:300 800;src:url(/build/assets/open-sans-latin-wght-normal-CWNzRldh.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Nunito Sans Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-sans-latin-ext-wght-normal-DMEAsnHD.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nunito Sans Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-sans-latin-wght-normal-BWQ3gi2K.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-ext-wght-normal-DYIxWhlt.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-wght-normal-ccAYIvAh.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Figtree Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/figtree-latin-ext-wght-normal-DCwSJGxG.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Figtree Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/atkinson-hyperlegible-latin-ext-400-normal-DRk46D-x.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/atkinson-hyperlegible-latin-400-normal-BrHNak5F.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:700;src:url(/build/assets/atkinson-hyperlegible-latin-ext-700-normal-BoVPHkS0.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:700;src:url(/build/assets/atkinson-hyperlegible-latin-700-normal-GZI4o3u0.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-serif-4-latin-ext-wght-normal-CxNHBx-q.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-serif-4-latin-wght-normal-D9elroTD.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-ext-wght-normal-BZx4mOJf.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-wght-normal-BovdrKvB.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lora Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/lora-latin-ext-wght-normal-C2Wlntb9.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lora Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/lora-latin-wght-normal-BiLcIKcI.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--radius:.5rem;--background:#f4f5f7;--foreground:#1a1d21;--card:#fff;--card-foreground:#1a1d21;--popover:#fff;--popover-foreground:#1a1d21;--muted:#f1f2f4;--muted-foreground:#5f6670;--accent:#f1f2f4;--accent-foreground:#1a1d21;--secondary:#eef0f2;--secondary-foreground:#1a1d21;--border:#e3e5e8;--input:#d5d8dd;--destructive:#c62828;--primary:var(--brand);--primary-foreground:var(--brand-foreground);--ring:var(--brand-400);--brand-text:var(--brand-600);--accent2:var(--brand);--accent2-foreground:var(--brand-foreground);--accent2-text:var(--brand-text);--font-body:"Inter Variable", ui-sans-serif, system-ui, sans-serif;--font-heading:var(--font-body);--brand-soft:var(--brand-50);--brand-soft-foreground:var(--brand-700)}.dark{--background:#0f1114;--foreground:#e8eaed;--card:#171a1e;--card-foreground:#e8eaed;--popover:#1c1f24;--popover-foreground:#e8eaed;--muted:#22262b;--muted-foreground:#9aa1ab;--accent:#22262b;--accent-foreground:#e8eaed;--secondary:#22262b;--secondary-foreground:#e8eaed;--border:#2a2e34;--input:#353a41;--destructive:#ef5350;--brand-text:var(--brand-300);--brand-soft:var(--brand)}@supports (color:color-mix(in lab, red, red)){.dark{--brand-soft:color-mix(in oklab, var(--brand) 22%, transparent)}}.dark{--brand-soft-foreground:var(--brand-200)}.prose{--tw-prose-body:var(--foreground);--tw-prose-headings:var(--foreground);--tw-prose-links:var(--brand-text);--tw-prose-bold:var(--foreground);--tw-prose-quotes:var(--foreground);--tw-prose-quote-borders:var(--brand-300);--tw-prose-bullets:var(--muted-foreground);--tw-prose-counters:var(--muted-foreground);--tw-prose-hr:var(--border);--tw-prose-th-borders:var(--border);--tw-prose-td-borders:var(--border)}.prose :where(blockquote p:first-of-type):before,.prose :where(blockquote p:last-of-type):after{content:none}.pb-box .prose{--tw-prose-body:currentColor;--tw-prose-bold:currentColor;--tw-prose-links:currentColor;--tw-prose-bullets:currentColor;--tw-prose-headings:currentColor}header[data-header=brand]{--foreground:var(--brand-foreground);--accent:var(--brand-foreground)}@supports (color:color-mix(in lab, red, red)){header[data-header=brand]{--accent:color-mix(in oklab, var(--brand-foreground) 14%, transparent)}}header[data-header=brand]{--muted-foreground:var(--brand-foreground)}@supports (color:color-mix(in lab, red, red)){header[data-header=brand]{--muted-foreground:color-mix(in oklab, var(--brand-foreground) 75%, transparent)}}header[data-header=brand]{background:var(--brand);color:var(--foreground);border-color:#0000}header[data-header=dark]{--foreground:#eef0f2;--accent:#ffffff1a;--muted-foreground:#a3aab3;color:var(--foreground);background:#16191d;border-color:#262a30}header[data-header=brand] input,header[data-header=dark] input{background:var(--foreground)}@supports (color:color-mix(in lab, red, red)){header[data-header=brand] input,header[data-header=dark] input{background:color-mix(in oklab, var(--foreground) 14%, transparent)}}header[data-header=brand] input,header[data-header=dark] input{color:var(--foreground);border-color:#0000}header[data-header=brand] input::placeholder,header[data-header=dark] input::placeholder{color:var(--muted-foreground)}header[data-header=brand] .nav-underline,header[data-header=dark] .nav-underline{background:currentColor}@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-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto}[data-sonner-toaster]{width:var(--width);--gray1:#fcfcfc;--gray2:#f8f8f8;--gray3:#f3f3f3;--gray4:#ededed;--gray5:#e8e8e8;--gray6:#e2e2e2;--gray7:#dbdbdb;--gray8:#c7c7c7;--gray9:#8f8f8f;--gray10:#858585;--gray11:#6f6f6f;--gray12:#171717;--border-radius:8px;box-sizing:border-box;z-index:999999999;outline:none;margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;list-style:none;transition:transform .4s;position:fixed}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);opacity:0;transform:var(--y);touch-action:none;box-sizing:border-box;overflow-wrap:anywhere;outline:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;position:absolute}[data-sonner-toast][data-styled=true]{background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);width:var(--width);align-items:center;gap:6px;padding:16px;font-size:13px;display:flex;box-shadow:0 4px 12px #0000001a}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap));top:0}[data-sonner-toast][data-y-position=bottom]{--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap));bottom:0}[data-sonner-toast][data-styled=true] [data-description]{color:#3f3f3f;font-weight:400;line-height:1.4}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{color:inherit;font-weight:500;line-height:1.5}[data-sonner-toast][data-styled=true] [data-icon]{width:16px;height:16px;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end);flex-shrink:0;justify-content:flex-start;align-items:center;display:flex;position:relative}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform-origin:50%;animation:.3s forwards sonner-fade-in;transform:scale(.8)}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{flex-direction:column;gap:2px;display:flex}[data-sonner-toast][data-styled=true] [data-button]{height:24px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);cursor:pointer;border:none;border-radius:4px;outline:none;flex-shrink:0;align-items:center;padding-left:8px;padding-right:8px;font-size:12px;font-weight:500;transition:opacity .4s,box-shadow .2s;display:flex}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:#ffffff4d}[data-sonner-toaster] [data-close-button-position=top-left]{--toast-close-button-left:0;--toast-close-button-right:unset;--toast-close-button-top:0;--toast-close-button-bottom:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster] [data-close-button-position=top-right]{--toast-close-button-left:unset;--toast-close-button-right:0;--toast-close-button-top:0;--toast-close-button-bottom:unset;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster] [data-close-button-position=bottom-left]{--toast-close-button-left:0;--toast-close-button-right:unset;--toast-close-button-top:unset;--toast-close-button-bottom:0;--toast-close-button-transform:translate(-35%, 35%)}[data-sonner-toaster] [data-close-button-position=bottom-right]{--toast-close-button-left:unset;--toast-close-button-right:0;--toast-close-button-top:unset;--toast-close-button-bottom:0;--toast-close-button-transform:translate(35%, 35%)}[data-sonner-toast][data-styled=true] [data-close-button]{left:var(--toast-close-button-left);right:var(--toast-close-button-right);top:var(--toast-close-button-top);bottom:var(--toast-close-button-bottom);width:20px;height:20px;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);cursor:pointer;z-index:1;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:opacity .1s,background .2s,border-color .2s;display:flex;position:absolute}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";z-index:-1;height:100%;position:absolute;left:-100%;right:-100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3)translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3)translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]:after{content:"";height:calc(var(--gap) + 1px);width:100%;position:absolute;bottom:100%;left:0}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * .05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--toasts-before) * .05 + 1));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0px)) translateX(var(--swipe-amount-x,0px));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (width<=600px){[data-sonner-toaster]{right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%;position:fixed}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{width:calc(100% - var(--mobile-offset-left) * 2);left:0;right:0}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:calc(var(--mobile-offset-bottom) + max(env(safe-area-inset-bottom), 0px))}[data-sonner-toaster][data-y-position=top]{top:calc(var(--mobile-offset-top) + max(env(safe-area-inset-top), 0px))}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:#ecfdf3;--success-border:#bffcd9;--success-text:#008a2e;--info-bg:#f0f8ff;--info-border:#dde7fd;--info-text:#0973dc;--warning-bg:#fffcf0;--warning-border:#fbeeb1;--warning-text:#dc7609;--error-bg:#fff0f0;--error-border:#ffe0e1;--error-text:#e60000}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:#333;--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:#1f1f1f;--normal-border:#333;--normal-border-hover:#404040;--normal-text:var(--gray1);--success-bg:#001f0f;--success-border:#003d1c;--success-text:#59f3a6;--info-bg:#000d1f;--info-border:#19233e;--info-text:#5896f3;--warning-bg:#1d1f00;--warning-border:#2e2e00;--warning-text:#f3cf58;--error-bg:#2d0607;--error-border:#4d0408;--error-text:#ff9ea1}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);z-index:10;position:absolute;inset:0}.sonner-loading-wrapper[data-visible=false]{transform-origin:50%;animation:.2s forwards sonner-fade-out}.sonner-spinner{height:var(--size);width:var(--size);position:relative;top:50%;left:50%}.sonner-loading-bar{background:var(--gray11);border-radius:6px;width:24%;height:8%;animation:1.2s linear infinite sonner-spin;position:absolute;top:-3.9%;left:-10%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg)translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg)translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg)translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg)translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg)translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg)translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg)translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg)translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg)translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg)translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg)translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg)translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{transform-origin:50%;transition:opacity .2s,transform .2s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8)translate(-50%,-50%)} diff --git a/public/build/assets/app-BZMCjaRn.css b/public/build/assets/app-BZMCjaRn.css deleted file mode 100644 index 815c4eb2..00000000 --- a/public/build/assets/app-BZMCjaRn.css +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--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-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:var(--font-body);--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-700:oklch(55.3% .195 38.402);--color-orange-800:oklch(47% .157 37.304);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-950:oklch(27.7% .046 192.524);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-950:oklch(25.7% .09 281.288);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-950:oklch(28.3% .141 291.089);--color-pink-500:oklch(65.6% .241 354.308);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-rose-950:oklch(27.1% .105 12.094);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:oklch(97% 0 none);--color-neutral-200:oklch(92.2% 0 none);--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:calc(var(--radius) + 4px);--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-body);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv11", "ss01"}h1,h2,h3,h4,.font-heading{font-family:var(--font-heading)}}@layer components;@layer utilities{.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-x-2{inset-inline:calc(var(--spacing) * 2)}.inset-x-3{inset-inline:calc(var(--spacing) * 3)}.inset-y-0{inset-block:0}.-top-3\.5{top:calc(var(--spacing) * -3.5)}.top-0{top:0}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.top-9{top:calc(var(--spacing) * 9)}.top-20{top:calc(var(--spacing) * 20)}.top-24{top:calc(var(--spacing) * 24)}.top-\[-1px\]{top:-1px}.top-\[50\%\]{top:50%}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-1{bottom:calc(var(--spacing) * -1)}.-bottom-1\.5{bottom:calc(var(--spacing) * -1.5)}.bottom-0{bottom:0}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-0{left:0}.left-2{left:calc(var(--spacing) * 2)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-\[1\.45rem\]{left:1.45rem}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.-z-10{z-index:calc(10 * -1)}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.col-span-8{grid-column:span 8/span 8}.col-span-full{grid-column:1/-1}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container\!{width:100%!important}@media (width>=40rem){.container\!{max-width:40rem!important}}@media (width>=48rem){.container\!{max-width:48rem!important}}@media (width>=64rem){.container\!{max-width:64rem!important}}@media (width>=80rem){.container\!{max-width:80rem!important}}@media (width>=96rem){.container\!{max-width:96rem!important}}.-m-2{margin:calc(var(--spacing) * -2)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-mx-5{margin-inline:calc(var(--spacing) * -5)}.mx-0\.5{margin-inline:calc(var(--spacing) * .5)}.mx-1{margin-inline:var(--spacing)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.-my-1\.5{margin-block:calc(var(--spacing) * -1.5)}.-my-2{margin-block:calc(var(--spacing) * -2)}.-my-3{margin-block:calc(var(--spacing) * -3)}.my-1{margin-block:var(--spacing)}.my-1\.5{margin-block:calc(var(--spacing) * 1.5)}.my-2{margin-block:calc(var(--spacing) * 2)}.my-8{margin-block:calc(var(--spacing) * 8)}.my-auto{margin-block:auto}.me-3{margin-inline-end:calc(var(--spacing) * 3)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-0\.5{margin-top:calc(var(--spacing) * -.5)}.-mt-3{margin-top:calc(var(--spacing) * -3)}.-mt-5{margin-top:calc(var(--spacing) * -5)}.-mt-14{margin-top:calc(var(--spacing) * -14)}.-mt-px{margin-top:-1px}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-auto{margin-top:auto}.-mr-px{margin-right:-1px}.mr-1{margin-right:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-6{margin-right:calc(var(--spacing) * 6)}.mr-auto{margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-2{margin-left:calc(var(--spacing) * -2)}.-ml-px{margin-left:-1px}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-6\.5{margin-left:calc(var(--spacing) * 6.5)}.ml-12{margin-left:calc(var(--spacing) * 12)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\!hidden{display:none!important}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline\!{display:inline!important}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table\!{display:table!important}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-1\/4{width:25%;height:25%}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-4\.5{width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-28{width:calc(var(--spacing) * 28);height:calc(var(--spacing) * 28)}.size-32{width:calc(var(--spacing) * 32);height:calc(var(--spacing) * 32)}.size-\[9px\]{width:9px;height:9px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-\(--reka-select-trigger-height\){height:var(--reka-select-trigger-height)}.h-0{height:0}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-28{height:calc(var(--spacing) * 28)}.h-32{height:calc(var(--spacing) * 32)}.h-\[1\.15rem\]{height:1.15rem}.h-\[3px\]{height:3px}.h-\[18px\]{height:18px}.h-\[23\.5px\]{height:23.5px}.h-\[56px\]{height:56px}.h-\[85vh\]{height:85vh}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-\(--reka-dropdown-menu-content-available-height\){max-height:var(--reka-dropdown-menu-content-available-height)}.max-h-\(--reka-select-content-available-height\){max-height:var(--reka-select-content-available-height)}.max-h-10{max-height:calc(var(--spacing) * 10)}.max-h-36{max-height:calc(var(--spacing) * 36)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-60{max-height:calc(var(--spacing) * 60)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[calc\(100vh-12rem\)\]{max-height:calc(100vh - 12rem)}.min-h-0{min-height:0}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-48{min-height:calc(var(--spacing) * 48)}.min-h-72{min-height:calc(var(--spacing) * 72)}.min-h-96{min-height:calc(var(--spacing) * 96)}.min-h-\[18rem\]{min-height:18rem}.min-h-dvh{min-height:100dvh}.min-h-screen{min-height:100vh}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-28{width:calc(var(--spacing) * 28)}.w-54{width:calc(var(--spacing) * 54)}.w-56{width:calc(var(--spacing) * 56)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[18px\]{width:18px}.w-\[22rem\]{width:22rem}.w-\[78\%\]{width:78%}.w-\[116px\]{width:116px}.w-\[340px\]{width:340px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\(--reka-dropdown-menu-content-available-width\){max-width:var(--reka-dropdown-menu-content-available-width)}.max-w-\(--reka-popover-content-available-width\){max-width:var(--reka-popover-content-available-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-10{max-width:calc(var(--spacing) * 10)}.max-w-150{max-width:calc(var(--spacing) * 150)}.max-w-\[390px\]{max-width:390px}.max-w-\[400px\]{max-width:400px}.max-w-\[440px\]{max-width:440px}.max-w-\[768px\]{max-width:768px}.max-w-\[1100px\]{max-width:1100px}.max-w-\[1440px\]{max-width:1440px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-\(--reka-select-trigger-width\){min-width:var(--reka-select-trigger-width)}.min-w-0{min-width:0}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-6{min-width:calc(var(--spacing) * 6)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-48{min-width:calc(var(--spacing) * 48)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[8rem\]{min-width:8rem}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--reka-dropdown-menu-content-transform-origin\){transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.origin-\(--reka-popover-content-transform-origin\){transform-origin:var(--reka-popover-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0\.5{--tw-translate-y:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform\!{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)!important}.zoom-100{zoom:100%}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-not-allowed\!{cursor:not-allowed!important}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize\!{resize:both!important}.resize-none{resize:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-start{scroll-snap-align:start}.scroll-my-1{scroll-margin-block:var(--spacing)}.scroll-px-5{scroll-padding-inline:calc(var(--spacing) * 5)}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{appearance:none}.columns-2{columns:2}.columns-3{columns:3}.columns-4{columns:4}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(12\.5rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(12.5rem,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(17rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(17rem,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-items-center{justify-items:center}.gap-0{gap:0}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-12{gap:calc(var(--spacing) * 12)}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.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)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}:where(.divide-neutral-200>:not(:last-child)){border-color:var(--color-neutral-200)}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.justify-self-start{justify-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[3px\]{border-radius:3px}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-full{border-top-left-radius:2147483647px;border-top-right-radius:2147483647px}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-amber-200{border-color:var(--color-amber-200)}.border-border{border-color:var(--border)}.border-brand{border-color:var(--brand)}.border-brand-200{border-color:var(--brand-200)}.border-brand-300{border-color:var(--brand-300)}.border-brand-400{border-color:var(--brand-400)}.border-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.border-destructive\/30{border-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-900{border-color:var(--color-emerald-900)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-input{border-color:var(--input)}.border-neutral-100{border-color:var(--color-neutral-100)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-red-200{border-color:var(--color-red-200)}.border-sky-200{border-color:var(--color-sky-200)}.border-transparent{border-color:#0000}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-200{background-color:var(--color-amber-200)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-background{background-color:var(--background)}.bg-black\/8{background-color:#00000014}@supports (color:color-mix(in lab, red, red)){.bg-black\/8{background-color:color-mix(in oklab, var(--color-black) 8%, transparent)}}.bg-black\/10{background-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.bg-black\/10{background-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.bg-black\/35{background-color:#00000059}@supports (color:color-mix(in lab, red, red)){.bg-black\/35{background-color:color-mix(in oklab, var(--color-black) 35%, transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-700{background-color:var(--color-blue-700)}.bg-border{background-color:var(--border)}.bg-brand{background-color:var(--brand)}.bg-brand-950{background-color:var(--brand-950)}.bg-brand-soft,.bg-brand-soft\/30{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.bg-brand-soft\/30{background-color:color-mix(in oklab, var(--brand-soft) 30%, transparent)}}.bg-brand-soft\/60{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.bg-brand-soft\/60{background-color:color-mix(in oklab, var(--brand-soft) 60%, transparent)}}.bg-brand-soft\/90{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.bg-brand-soft\/90{background-color:color-mix(in oklab, var(--brand-soft) 90%, transparent)}}.bg-card,.bg-card\/90{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/90{background-color:color-mix(in oklab, var(--card) 90%, transparent)}}.bg-card\/95{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/95{background-color:color-mix(in oklab, var(--card) 95%, transparent)}}.bg-destructive,.bg-destructive\/5{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/5{background-color:color-mix(in oklab, var(--destructive) 5%, transparent)}}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-200{background-color:var(--color-emerald-200)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-emerald-800{background-color:var(--color-emerald-800)}.bg-foreground{background-color:var(--foreground)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-300{background-color:var(--color-green-300)}.bg-green-400{background-color:var(--color-green-400)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-muted,.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.bg-muted\/40{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/40{background-color:color-mix(in oklab, var(--muted) 40%, transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.bg-muted\/60{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/60{background-color:color-mix(in oklab, var(--muted) 60%, transparent)}}.bg-neutral-50{background-color:var(--color-neutral-50)}.bg-neutral-600{background-color:var(--color-neutral-600)}.bg-neutral-900{background-color:var(--color-neutral-900)}.bg-orange-50{background-color:var(--color-orange-50)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-50{background-color:var(--color-red-50)}.bg-rose-100{background-color:var(--color-rose-100)}.bg-rose-200{background-color:var(--color-rose-200)}.bg-rose-200\!{background-color:var(--color-rose-200)!important}.bg-rose-500{background-color:var(--color-rose-500)}.bg-rose-600{background-color:var(--color-rose-600)}.bg-secondary{background-color:var(--secondary)}.bg-sky-50{background-color:var(--color-sky-50)}.bg-sky-100{background-color:var(--color-sky-100)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-teal-100{background-color:var(--color-teal-100)}.bg-teal-500{background-color:var(--color-teal-500)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-violet-50{background-color:var(--color-violet-50)}.bg-violet-100{background-color:var(--color-violet-100)}.bg-violet-500{background-color:var(--color-violet-500)}.bg-white{background-color:var(--color-white)}.bg-white\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.bg-white\/5{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.bg-white\/15{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.bg-white\/15{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.bg-white\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\/50{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.bg-white\/\[2\%\]{background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.bg-white\/\[2\%\]{background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\/70{--tw-gradient-from:color-mix(in oklab, var(--color-black) 70%, transparent)}}.from-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab, red, red)){.from-black\/80{--tw-gradient-from:color-mix(in oklab, var(--color-black) 80%, transparent)}}.from-black\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-gray-700\/50{--tw-gradient-from:#36415380}@supports (color:color-mix(in lab, red, red)){.from-gray-700\/50{--tw-gradient-from:color-mix(in oklab, var(--color-gray-700) 50%, transparent)}}.from-gray-700\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-black\/25{--tw-gradient-via:#00000040}@supports (color:color-mix(in lab, red, red)){.via-black\/25{--tw-gradient-via:color-mix(in oklab, var(--color-black) 25%, transparent)}}.via-black\/25{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\/30{--tw-gradient-via:#0000004d}@supports (color:color-mix(in lab, red, red)){.via-black\/30{--tw-gradient-via:color-mix(in oklab, var(--color-black) 30%, transparent)}}.via-black\/30{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\/35{--tw-gradient-via:#00000059}@supports (color:color-mix(in lab, red, red)){.via-black\/35{--tw-gradient-via:color-mix(in oklab, var(--color-black) 35%, transparent)}}.via-black\/35{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-transparent{--tw-gradient-via:transparent;--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black\/5{--tw-gradient-to:#0000000d}@supports (color:color-mix(in lab, red, red)){.to-black\/5{--tw-gradient-to:color-mix(in oklab, var(--color-black) 5%, transparent)}}.to-black\/5{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\/10{--tw-gradient-to:#0000001a}@supports (color:color-mix(in lab, red, red)){.to-black\/10{--tw-gradient-to:color-mix(in oklab, var(--color-black) 10%, transparent)}}.to-black\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.fill-foreground{fill:var(--foreground)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-top{object-position:top}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-0\.75{padding:calc(var(--spacing) * .75)}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-\[6px\]{padding-inline:6px}.py-0{padding-block:0}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-14{padding-block:calc(var(--spacing) * 14)}.py-16{padding-block:calc(var(--spacing) * 16)}.ps-3{padding-inline-start:calc(var(--spacing) * 3)}.pt-0{padding-top:0}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-32{padding-right:calc(var(--spacing) * 32)}.pb-0{padding-bottom:0}.pb-1{padding-bottom:var(--spacing)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-16{padding-left:calc(var(--spacing) * 16)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-body)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/none{font-size:var(--text-xs);line-height:1}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[17px\]{font-size:17px}.text-\[22px\]{font-size:22px}.leading-3{--tw-leading:calc(var(--spacing) * 3);line-height:calc(var(--spacing) * 3)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent2-text{color:var(--accent2-text)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-amber-950{color:var(--color-amber-950)}.text-background{color:var(--background)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-900{color:var(--color-blue-900)}.text-brand-foreground{color:var(--brand-foreground)}.text-brand-soft-foreground{color:var(--brand-soft-foreground)}.text-brand-text{color:var(--brand-text)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-emerald-900{color:var(--color-emerald-900)}.text-emerald-950{color:var(--color-emerald-950)}.text-foreground,.text-foreground\/70{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/70{color:color-mix(in oklab, var(--foreground) 70%, transparent)}}.text-foreground\/75{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/75{color:color-mix(in oklab, var(--foreground) 75%, transparent)}}.text-foreground\/80{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/80{color:color-mix(in oklab, var(--foreground) 80%, transparent)}}.text-gray-200{color:var(--color-gray-200)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-indigo-700{color:var(--color-indigo-700)}.text-indigo-800{color:var(--color-indigo-800)}.text-input{color:var(--input)}.text-muted{color:var(--muted)}.text-muted-foreground{color:var(--muted-foreground)}.text-neutral-100{color:var(--color-neutral-100)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-500\!{color:var(--color-neutral-500)!important}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-800{color:var(--color-neutral-800)}.text-neutral-900{color:var(--color-neutral-900)}.text-neutral-950{color:var(--color-neutral-950)}.text-orange-700{color:var(--color-orange-700)}.text-orange-800{color:var(--color-orange-800)}.text-pink-500{color:var(--color-pink-500)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-950{color:var(--color-red-950)}.text-rose-700{color:var(--color-rose-700)}.text-rose-800{color:var(--color-rose-800)}.text-rose-900{color:var(--color-rose-900)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sky-600{color:var(--color-sky-600)}.text-sky-700{color:var(--color-sky-700)}.text-sky-800{color:var(--color-sky-800)}.text-sky-950{color:var(--color-sky-950)}.text-teal-700{color:var(--color-teal-700)}.text-teal-800{color:var(--color-teal-800)}.text-violet-700{color:var(--color-violet-700)}.text-violet-800{color:var(--color-violet-800)}.text-white{color:var(--color-white)}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.text-white\/85{color:#ffffffd9}@supports (color:color-mix(in lab, red, red)){.text-white\/85{color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\/90{color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.italic\!{font-style:italic!important}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.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,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline\!{text-decoration-line:underline!important}.decoration-neutral-400{-webkit-text-decoration-color:var(--color-neutral-400);-webkit-text-decoration-color:var(--color-neutral-400);-webkit-text-decoration-color:var(--color-neutral-400);text-decoration-color:var(--color-neutral-400)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.accent-\[var\(--brand\)\]{accent-color:var(--brand)}.scheme-light-dark{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){.scheme-light-dark{--lightningcss-light: ;--lightningcss-dark:initial}}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-90{opacity:.9}.opacity-\[0\.12\]{opacity:.12}.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)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px 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)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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)}.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)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + 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)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.ring-3{--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)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + 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)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-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)}.shadow-gray-500\/20{--tw-shadow-color:#6a728233}@supports (color:color-mix(in lab, red, red)){.shadow-gray-500\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-gray-500) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-blue-300{--tw-ring-color:var(--color-blue-300)}.ring-border{--tw-ring-color:var(--border)}.ring-brand-300\/50{--tw-ring-color:var(--brand-300)}@supports (color:color-mix(in lab, red, red)){.ring-brand-300\/50{--tw-ring-color:color-mix(in oklab, var(--brand-300) 50%, transparent)}}.ring-brand-soft{--tw-ring-color:var(--brand-soft)}.ring-card{--tw-ring-color:var(--card)}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.ring-white\/25{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.ring-white\/25{--tw-ring-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline,.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-offset-2{outline-offset:2px}.outline-offset-4{outline-offset:4px}.outline-brand-300{outline-color:var(--brand-300)}.outline-brand-500{outline-color:var(--brand-500)}.outline-destructive{outline-color:var(--destructive)}.outline-transparent{outline-color:#0000}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert\!{--tw-invert:invert(100%)!important;filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.sepia{--tw-sepia:sepia(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-\[1px\]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[max-width\]{transition-property:max-width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[outline-color\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.prose-neutral{--tw-prose-body:oklch(37.1% 0 none);--tw-prose-headings:oklch(20.5% 0 none);--tw-prose-lead:oklch(43.9% 0 none);--tw-prose-links:oklch(20.5% 0 none);--tw-prose-bold:oklch(20.5% 0 none);--tw-prose-counters:oklch(55.6% 0 none);--tw-prose-bullets:oklch(87% 0 none);--tw-prose-hr:oklch(92.2% 0 none);--tw-prose-quotes:oklch(20.5% 0 none);--tw-prose-quote-borders:oklch(92.2% 0 none);--tw-prose-captions:oklch(55.6% 0 none);--tw-prose-kbd:oklch(20.5% 0 none);--tw-prose-kbd-shadows:oklab(20.5% 0 0/.1);--tw-prose-code:oklch(20.5% 0 none);--tw-prose-pre-code:oklch(92.2% 0 none);--tw-prose-pre-bg:oklch(26.9% 0 none);--tw-prose-th-borders:oklch(87% 0 none);--tw-prose-td-borders:oklch(92.2% 0 none);--tw-prose-invert-body:oklch(87% 0 none);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.8% 0 none);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.8% 0 none);--tw-prose-invert-bullets:oklch(43.9% 0 none);--tw-prose-invert-hr:oklch(37.1% 0 none);--tw-prose-invert-quotes:oklch(97% 0 none);--tw-prose-invert-quote-borders:oklch(37.1% 0 none);--tw-prose-invert-captions:oklch(70.8% 0 none);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87% 0 none);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(43.9% 0 none);--tw-prose-invert-td-borders:oklch(37.1% 0 none)}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.repeat-1{--tw-animation-iteration-count:1;animation-iteration-count:1}.repeat-2{--tw-animation-iteration-count:2;animation-iteration-count:2}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\[text-shadow\:0_1px_2px_rgb\(0_0_0\/0\.4\)\]{text-shadow:0 1px 2px #0006}.\[wire\:model\=\"\'\+i\+\'\"\]{wire:model="'+i+'"}.\[wire\:model\=\\\"\'\+expression\+\'\\\"\]{wire:model=\""+expression+"\"}.\[wire\:model\]{wire:model}.\[wire\:transition\]{wire:transition}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.fade-in{--tw-enter-opacity:0}.paused{animation-play-state:paused}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.group-focus-within\:opacity-100:is(:where(.group):focus-within *){opacity:1}.group-focus-within\/rte\:flex:is(:where(.group\/rte):focus-within *){display:flex}@media (hover:hover){.group-hover\:flex:is(:where(.group):hover *){display:flex}.group-hover\:scale-\[1\.02\]:is(:where(.group):hover *){scale:1.02}.group-hover\:text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)}.group-hover\:underline:is(:where(.group):hover *){text-decoration-line:underline}.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/card\:opacity-100:is(:where(.group\/card):hover *){opacity:1}.group-hover\/exception\:text-blue-500:is(:where(.group\/exception):hover *){color:var(--color-blue-500)}}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-\[\.status-down\]\:bg-red-600:is(:where(.group).status-down *){background-color:var(--color-red-600)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:bg-red-500 ::selection{background-color:var(--color-red-500)}.selection\:bg-red-500::selection{background-color:var(--color-red-500)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.selection\:text-white ::selection{color:var(--color-white)}.selection\:text-white::selection{color:var(--color-white)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder,.placeholder\:text-muted-foreground\/50::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.placeholder\:text-muted-foreground\/50::placeholder{color:color-mix(in oklab, var(--muted-foreground) 50%, transparent)}}.placeholder\:text-muted-foreground\/60::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.placeholder\:text-muted-foreground\/60::placeholder{color:color-mix(in oklab, var(--muted-foreground) 60%, transparent)}}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-0:after{content:var(--tw-content);inset:0}.first\:ml-0:first-child{margin-left:0}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.odd\:bg-white\/2:nth-child(odd){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.odd\:bg-white\/2:nth-child(odd){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.even\:bg-white:nth-child(2n){background-color:var(--color-white)}.focus-within\:border-brand-400:focus-within{border-color:var(--brand-400)}.focus-within\:ring-3:focus-within{--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)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border:hover{border-style:var(--tw-border-style);border-width:1px}.hover\:border-brand-300:hover{border-color:var(--brand-300)}.hover\:border-neutral-200:hover{border-color:var(--color-neutral-200)}.hover\:bg-accent:hover,.hover\:bg-accent\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/50:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.hover\:bg-accent\/60:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/60:hover{background-color:color-mix(in oklab, var(--accent) 60%, transparent)}}.hover\:bg-black\/55:hover{background-color:#0000008c}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/55:hover{background-color:color-mix(in oklab, var(--color-black) 55%, transparent)}}.hover\:bg-brand-700:hover{background-color:var(--brand-700)}.hover\:bg-brand-soft:hover,.hover\:bg-brand-soft\/60:hover{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-brand-soft\/60:hover{background-color:color-mix(in oklab, var(--brand-soft) 60%, transparent)}}.hover\:bg-card:hover{background-color:var(--card)}.hover\:bg-destructive\/10:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/10:hover{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.hover\:bg-secondary:hover,.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\:bg-white\/15:hover{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/15:hover{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.hover\:bg-white\/50:hover{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/50:hover{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.hover\:bg-white\/80:hover{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/80:hover{background-color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.hover\:bg-white\/90:hover{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/90:hover{background-color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-blue-500:hover{color:var(--color-blue-500)}.hover\:text-brand-soft-foreground:hover{color:var(--brand-soft-foreground)}.hover\:text-destructive:hover{color:var(--destructive)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-gray-400:hover{color:var(--color-gray-400)}.hover\:text-gray-500:hover{color:var(--color-gray-500)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.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)}.hover\:shadow-sm:hover{--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)}.hover\:shadow-xs:hover{--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)}.hover\:ring-2:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.hover\:ring-brand-300:hover{--tw-ring-color:var(--brand-300)}.hover\:outline-brand-300:hover{outline-color:var(--brand-300)}}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{border-color:var(--color-blue-300)}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:bg-brand-soft\/40:focus{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.focus\:bg-brand-soft\/40:focus{background-color:color-mix(in oklab, var(--brand-soft) 40%, transparent)}}.focus\:bg-brand-soft\/50:focus{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.focus\:bg-brand-soft\/50:focus{background-color:color-mix(in oklab, var(--brand-soft) 50%, transparent)}}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:ring:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.focus\:outline-2:focus{outline-style:var(--tw-outline-style);outline-width:2px}.focus\:outline-red-500:focus{outline-color:var(--color-red-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:border-brand-400:focus-visible{border-color:var(--brand-400)}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:opacity-100:focus-visible{opacity:1}.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)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 40%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:cursor-grabbing:active{cursor:grabbing}.active\:bg-gray-100:active{background-color:var(--color-gray-100)}.active\:text-gray-500:active{color:var(--color-gray-500)}.active\:text-gray-700:active{color:var(--color-gray-700)}.active\:text-gray-800:active{color:var(--color-gray-800)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.has-checked\:border-brand-400:has(:checked){border-color:var(--brand-400)}.has-checked\:bg-brand-soft\/60:has(:checked){background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.has-checked\:bg-brand-soft\/60:has(:checked){background-color:color-mix(in oklab, var(--brand-soft) 60%, transparent)}}.has-\[\>svg\]\:px-1\.5:has(>svg){padding-inline:calc(var(--spacing) * 1.5)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--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)}.data-\[state\=active\]\:after\:absolute[data-state=active]:after{content:var(--tw-content);position:absolute}.data-\[state\=active\]\:after\:inset-x-2[data-state=active]:after{content:var(--tw-content);inset-inline:calc(var(--spacing) * 2)}.data-\[state\=active\]\:after\:bottom-0[data-state=active]:after{content:var(--tw-content);bottom:0}.data-\[state\=active\]\:after\:h-\[3px\][data-state=active]:after{content:var(--tw-content);height:3px}.data-\[state\=active\]\:after\:rounded-t-full[data-state=active]:after{content:var(--tw-content);border-top-left-radius:2147483647px;border-top-right-radius:2147483647px}.data-\[state\=active\]\:after\:bg-brand[data-state=active]:after{content:var(--tw-content);background-color:var(--brand)}.data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state=checked]{--tw-translate-x:calc(100% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-\[backdrop-filter\]\:bg-card\/85{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.supports-\[backdrop-filter\]\:bg-card\/85{background-color:color-mix(in oklab, var(--card) 85%, transparent)}}}@media not all and (width>=48rem){.max-md\:opacity-100{opacity:1}}@media (width>=40rem){.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-6{bottom:calc(var(--spacing) * 6)}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:mx-0{margin-inline:0}.sm\:mt-0{margin-top:0}.sm\:mb-16{margin-bottom:calc(var(--spacing) * 16)}.sm\:block{display:block}.sm\:contents{display:contents}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:aspect-\[16\/9\]{aspect-ratio:16/9}.sm\:h-32{height:calc(var(--spacing) * 32)}.sm\:w-3\/4{width:75%}.sm\:w-32{width:calc(var(--spacing) * 32)}.sm\:w-56{width:calc(var(--spacing) * 56)}.sm\:w-72{width:calc(var(--spacing) * 72)}.sm\:w-80{width:calc(var(--spacing) * 80)}.sm\:w-auto{width:auto}.sm\:max-w-5xl{max-width:var(--container-5xl)}.sm\:max-w-\[65\%\]{max-width:65%}.sm\:max-w-\[340px\]{max-width:340px}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:flex-1{flex:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:flex-col{flex-direction:column}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:justify-center{justify-content:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-start{justify-content:flex-start}.sm\:gap-2{gap:calc(var(--spacing) * 2)}.sm\:gap-x-6{column-gap:calc(var(--spacing) * 6)}:where(.sm\:divide-y-0>: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(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}.sm\:overflow-visible{overflow:visible}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.sm\:from-black\/75{--tw-gradient-from:#000000bf}@supports (color:color-mix(in lab, red, red)){.sm\:from-black\/75{--tw-gradient-from:color-mix(in oklab, var(--color-black) 75%, transparent)}}.sm\:from-black\/75{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.sm\:via-black\/40{--tw-gradient-via:#0006}@supports (color:color-mix(in lab, red, red)){.sm\:via-black\/40{--tw-gradient-via:color-mix(in oklab, var(--color-black) 40%, transparent)}}.sm\:via-black\/40{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.sm\:to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:p-10{padding:calc(var(--spacing) * 10)}.sm\:p-14{padding:calc(var(--spacing) * 14)}.sm\:px-0{padding-inline:0}.sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-8{padding-inline:calc(var(--spacing) * 8)}.sm\:py-0{padding-block:0}.sm\:pt-0{padding-top:0}.sm\:pt-16{padding-top:calc(var(--spacing) * 16)}.sm\:pb-0{padding-bottom:0}.sm\:pb-1{padding-bottom:var(--spacing)}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-\[32px\]{font-size:32px}.sm\:text-\[34px\]{font-size:34px}}@media (width>=48rem){.md\:static{position:static}.md\:block{display:block}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:w-full{width:100%}.md\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,1fr\)_8rem_9\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 8rem 9.5rem 6.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_9\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 9.5rem 6.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_11rem_5\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 11rem 5.5rem 6.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_12rem_11rem_5\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 12rem 11rem 5.5rem 6.5rem}.md\:items-center{align-items:center}.md\:gap-4{gap:calc(var(--spacing) * 4)}.md\:pr-4{padding-right:calc(var(--spacing) * 4)}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (width>=64rem){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-4{grid-column:span 4/span 4}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-8{grid-column:span 8/span 8}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-full{height:100%}.lg\:min-h-\[400px\]{min-height:400px}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.lg\:grid-cols-\[260px_minmax\(0\,1fr\)\]{grid-template-columns:260px minmax(0,1fr)}.lg\:grid-cols-\[minmax\(0\,1fr\)_19rem\]{grid-template-columns:minmax(0,1fr) 19rem}.lg\:grid-cols-\[minmax\(0\,1fr\)_320px\]{grid-template-columns:minmax(0,1fr) 320px}.lg\:grid-cols-\[minmax\(0\,5fr\)_minmax\(0\,6fr\)\]{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}.lg\:flex-col{flex-direction:column}.lg\:justify-between{justify-content:space-between}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:p-12{padding:calc(var(--spacing) * 12)}.lg\:px-6{padding-inline:calc(var(--spacing) * 6)}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}.lg\:py-7{padding-block:calc(var(--spacing) * 7)}}@media (width>=80rem){.xl\:col-span-1{grid-column:span 1/span 1}.xl\:col-span-2{grid-column:span 2/span 2}.xl\:col-span-3{grid-column:span 3/span 3}.xl\:col-span-9{grid-column:span 9/span 9}.xl\:block{display:block}.xl\:size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.xl\:w-1\/2{width:50%}.xl\:w-80{width:calc(var(--spacing) * 80)}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-\[minmax\(0\,1fr\)_16rem\]{grid-template-columns:minmax(0,1fr) 16rem}.xl\:grid-cols-\[minmax\(0\,1fr\)_18rem\]{grid-template-columns:minmax(0,1fr) 18rem}.xl\:pt-8{padding-top:calc(var(--spacing) * 8)}.xl\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=96rem){.\32 xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (width>=36rem){.\@xl\:col-span-2{grid-column:span 2/span 2}.\@xl\:w-1\/2{width:50%}.\@xl\:grid-cols-\(--cols\){grid-template-columns:var(--cols)}.\@xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\@xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@xl\:p-5{padding:calc(var(--spacing) * 5)}}@container (width>=48rem){.\@3xl\:w-1\/3{width:33.3333%}.\@3xl\:w-2\/3{width:66.6667%}.\@3xl\:grid-cols-\(--cols\){grid-template-columns:var(--cols)}.\@3xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@3xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\@3xl\:p-8{padding:calc(var(--spacing) * 8)}.\@3xl\:p-10{padding:calc(var(--spacing) * 10)}.\@3xl\:p-12{padding:calc(var(--spacing) * 12)}.\@3xl\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.\@3xl\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@container (width>=56rem){.\@4xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=64rem){.\@5xl\:grid-cols-\(--cols\){grid-template-columns:var(--cols)}}.rtl\:flex-row-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.dark\:block:is(.dark *){display:block}.dark\:hidden:is(.dark *){display:none}:where(.dark\:divide-white\/5:is(.dark *)>:not(:last-child)){border-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){:where(.dark\:divide-white\/5:is(.dark *)>:not(:last-child)){border-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}:where(.dark\:divide-white\/10:is(.dark *)>:not(:last-child)){border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){:where(.dark\:divide-white\/10:is(.dark *)>:not(:last-child)){border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\:border-none:is(.dark *){--tw-border-style:none;border-style:none}.dark\:border-amber-500:is(.dark *){border-color:var(--color-amber-500)}.dark\:border-amber-800:is(.dark *){border-color:var(--color-amber-800)}.dark\:border-amber-900:is(.dark *){border-color:var(--color-amber-900)}.dark\:border-blue-600:is(.dark *){border-color:var(--color-blue-600)}.dark\:border-blue-800:is(.dark *){border-color:var(--color-blue-800)}.dark\:border-emerald-500:is(.dark *){border-color:var(--color-emerald-500)}.dark\:border-emerald-600:is(.dark *){border-color:var(--color-emerald-600)}.dark\:border-emerald-900:is(.dark *){border-color:var(--color-emerald-900)}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:border-neutral-500:is(.dark *){border-color:var(--color-neutral-500)}.dark\:border-neutral-700:is(.dark *){border-color:var(--color-neutral-700)}.dark\:border-neutral-800:is(.dark *){border-color:var(--color-neutral-800)}.dark\:border-red-900:is(.dark *){border-color:var(--color-red-900)}.dark\:border-rose-500:is(.dark *){border-color:var(--color-rose-500)}.dark\:border-rose-900:is(.dark *){border-color:var(--color-rose-900)}.dark\:border-sky-900:is(.dark *){border-color:var(--color-sky-900)}.dark\:border-transparent:is(.dark *){border-color:#0000}.dark\:border-white\/5:is(.dark *){border-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/5:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:border-white\/8:is(.dark *){border-color:#ffffff14}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/8:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 8%, transparent)}}.dark\:border-white\/10:is(.dark *){border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/10:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:border-white\/20:is(.dark *){border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/20:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.dark\:border-white\/\[9\%\]:is(.dark *){border-color:#ffffff17}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/\[9\%\]:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 9%, transparent)}}.dark\:bg-\[\#1a1a1a\]:is(.dark *){background-color:#1a1a1a}.dark\:bg-amber-600:is(.dark *){background-color:var(--color-amber-600)}.dark\:bg-amber-900\/50:is(.dark *){background-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-900) 50%, transparent)}}.dark\:bg-amber-950:is(.dark *){background-color:var(--color-amber-950)}.dark\:bg-amber-950\/40:is(.dark *){background-color:#46190166}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-950) 40%, transparent)}}.dark\:bg-amber-950\/50:is(.dark *){background-color:#46190180}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-950) 50%, transparent)}}.dark\:bg-blue-700:is(.dark *){background-color:var(--color-blue-700)}.dark\:bg-blue-950:is(.dark *){background-color:var(--color-blue-950)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.dark\:bg-emerald-600:is(.dark *){background-color:var(--color-emerald-600)}.dark\:bg-emerald-900\/50:is(.dark *){background-color:#004e3b80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-900) 50%, transparent)}}.dark\:bg-emerald-900\/70:is(.dark *){background-color:#004e3bb3}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/70:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-900) 70%, transparent)}}.dark\:bg-emerald-950:is(.dark *){background-color:var(--color-emerald-950)}.dark\:bg-emerald-950\/40:is(.dark *){background-color:#002c2266}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-950) 40%, transparent)}}.dark\:bg-emerald-950\/50:is(.dark *){background-color:#002c2280}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-950) 50%, transparent)}}.dark\:bg-gray-700:is(.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-indigo-950:is(.dark *){background-color:var(--color-indigo-950)}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:bg-neutral-400:is(.dark *){background-color:var(--color-neutral-400)}.dark\:bg-neutral-600:is(.dark *){background-color:var(--color-neutral-600)}.dark\:bg-neutral-700:is(.dark *){background-color:var(--color-neutral-700)}.dark\:bg-neutral-800:is(.dark *){background-color:var(--color-neutral-800)}.dark\:bg-neutral-900:is(.dark *){background-color:var(--color-neutral-900)}.dark\:bg-orange-950:is(.dark *){background-color:var(--color-orange-950)}.dark\:bg-orange-950\/50:is(.dark *){background-color:#44130680}@supports (color:color-mix(in lab, red, red)){.dark\:bg-orange-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-orange-950) 50%, transparent)}}.dark\:bg-red-950\/40:is(.dark *){background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.dark\:bg-red-950\/50:is(.dark *){background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-red-950) 50%, transparent)}}.dark\:bg-rose-600:is(.dark *){background-color:var(--color-rose-600)}.dark\:bg-rose-900\!:is(.dark *){background-color:var(--color-rose-900)!important}.dark\:bg-rose-950:is(.dark *){background-color:var(--color-rose-950)}.dark\:bg-sky-950:is(.dark *){background-color:var(--color-sky-950)}.dark\:bg-sky-950\/40:is(.dark *){background-color:#052f4a66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-sky-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-sky-950) 40%, transparent)}}.dark\:bg-sky-950\/50:is(.dark *){background-color:#052f4a80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-sky-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-sky-950) 50%, transparent)}}.dark\:bg-teal-950:is(.dark *){background-color:var(--color-teal-950)}.dark\:bg-transparent:is(.dark *){background-color:#0000}.dark\:bg-violet-950:is(.dark *){background-color:var(--color-violet-950)}.dark\:bg-violet-950\/50:is(.dark *){background-color:#2f0d6880}@supports (color:color-mix(in lab, red, red)){.dark\:bg-violet-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-violet-950) 50%, transparent)}}.dark\:bg-white:is(.dark *){background-color:var(--color-white)}.dark\:bg-white\/1:is(.dark *){background-color:#ffffff03}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/1:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 1%, transparent)}}.dark\:bg-white\/2:is(.dark *){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/2:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.dark\:bg-white\/3:is(.dark *){background-color:#ffffff08}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/3:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 3%, transparent)}}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/5:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:bg-white\/10:is(.dark *){background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/10:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:bg-white\/\[2\%\]:is(.dark *){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/\[2\%\]:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.dark\:bg-white\/\[3\%\]:is(.dark *){background-color:#ffffff08}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/\[3\%\]:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 3%, transparent)}}.dark\:text-amber-100:is(.dark *){color:var(--color-amber-100)}.dark\:text-amber-200:is(.dark *){color:var(--color-amber-200)}.dark\:text-amber-300:is(.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:is(.dark *){color:var(--color-amber-400)}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-emerald-100:is(.dark *){color:var(--color-emerald-100)}.dark\:text-emerald-200:is(.dark *){color:var(--color-emerald-200)}.dark\:text-emerald-300:is(.dark *){color:var(--color-emerald-300)}.dark\:text-emerald-400:is(.dark *){color:var(--color-emerald-400)}.dark\:text-emerald-500:is(.dark *){color:var(--color-emerald-500)}.dark\:text-gray-200:is(.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:is(.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-gray-600:is(.dark *){color:var(--color-gray-600)}.dark\:text-indigo-200:is(.dark *){color:var(--color-indigo-200)}.dark\:text-indigo-300:is(.dark *){color:var(--color-indigo-300)}.dark\:text-muted-foreground:is(.dark *){color:var(--muted-foreground)}.dark\:text-neutral-100:is(.dark *){color:var(--color-neutral-100)}.dark\:text-neutral-200:is(.dark *){color:var(--color-neutral-200)}.dark\:text-neutral-300:is(.dark *){color:var(--color-neutral-300)}.dark\:text-neutral-400:is(.dark *){color:var(--color-neutral-400)}.dark\:text-neutral-500:is(.dark *){color:var(--color-neutral-500)}.dark\:text-neutral-600:is(.dark *){color:var(--color-neutral-600)}.dark\:text-neutral-600\!:is(.dark *){color:var(--color-neutral-600)!important}.dark\:text-neutral-900:is(.dark *){color:var(--color-neutral-900)}.dark\:text-orange-200:is(.dark *){color:var(--color-orange-200)}.dark\:text-orange-300:is(.dark *){color:var(--color-orange-300)}.dark\:text-red-100:is(.dark *){color:var(--color-red-100)}.dark\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-rose-100:is(.dark *){color:var(--color-rose-100)}.dark\:text-rose-200:is(.dark *){color:var(--color-rose-200)}.dark\:text-rose-300:is(.dark *){color:var(--color-rose-300)}.dark\:text-sky-100:is(.dark *){color:var(--color-sky-100)}.dark\:text-sky-200:is(.dark *){color:var(--color-sky-200)}.dark\:text-sky-300:is(.dark *){color:var(--color-sky-300)}.dark\:text-sky-400:is(.dark *){color:var(--color-sky-400)}.dark\:text-teal-200:is(.dark *){color:var(--color-teal-200)}.dark\:text-teal-300:is(.dark *){color:var(--color-teal-300)}.dark\:text-violet-200:is(.dark *){color:var(--color-violet-200)}.dark\:text-violet-300:is(.dark *){color:var(--color-violet-300)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:text-white\!:is(.dark *){color:var(--color-white)!important}.dark\:prose-invert:is(.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}@media (hover:hover){.group-hover\:dark\:text-emerald-500:is(:where(.group):hover *):is(.dark *),.group-hover\/exception\:dark\:text-emerald-500:is(:where(.group\/exception):hover *):is(.dark *){color:var(--color-emerald-500)}}.odd\:dark\:bg-white\/4:nth-child(odd):is(.dark *){background-color:#ffffff0a}@supports (color:color-mix(in lab, red, red)){.odd\:dark\:bg-white\/4:nth-child(odd):is(.dark *){background-color:color-mix(in oklab, var(--color-white) 4%, transparent)}}.even\:dark\:bg-white\/2:nth-child(2n):is(.dark *){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.even\:dark\:bg-white\/2:nth-child(2n):is(.dark *){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}@media (hover:hover){.dark\:hover\:border-none:is(.dark *):hover{--tw-border-style:none;border-style:none}.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.dark\:hover\:bg-gray-900:is(.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-white\/2:is(.dark *):hover{background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/2:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.dark\:hover\:bg-white\/5:is(.dark *):hover{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/5:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:hover\:bg-white\/10:is(.dark *):hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/10:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.hover\:dark\:bg-white\/5:hover:is(.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.hover\:dark\:bg-white\/5:hover:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:hover\:text-emerald-500:is(.dark *):hover{color:var(--color-emerald-500)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}.dark\:hover\:text-gray-300:is(.dark *):hover{color:var(--color-gray-300)}.hover\:dark\:text-white:hover:is(.dark *){color:var(--color-white)}}.dark\:focus\:border-blue-700:is(.dark *):focus{border-color:var(--color-blue-700)}.dark\:focus\:border-blue-800:is(.dark *):focus{border-color:var(--color-blue-800)}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:active\:bg-gray-700:is(.dark *):active{background-color:var(--color-gray-700)}.dark\:active\:text-gray-300:is(.dark *):active{color:var(--color-gray-300)}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[state\=active\]\:border-input:is(.dark *)[data-state=active]{border-color:var(--input)}.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state=active]{color:var(--foreground)}.dark\:data-\[state\=checked\]\:bg-primary-foreground:is(.dark *)[data-state=checked]{background-color:var(--primary-foreground)}.dark\:data-\[state\=unchecked\]\:bg-foreground:is(.dark *)[data-state=unchecked]{background-color:var(--foreground)}.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:color-mix(in oklab, var(--input) 80%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.prose-headings\:tracking-tight :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.prose-img\:rounded-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:var(--radius)}.prose-img\:rounded-md :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:calc(var(--radius) - 2px)}.\[\&_\.prose\]\:text-brand-foreground .prose{color:var(--brand-foreground)}.\[\&_\.tiptap\]\:min-h-24 .tiptap{min-height:calc(var(--spacing) * 24)}.\[\&_\.tiptap\]\:min-h-72 .tiptap{min-height:calc(var(--spacing) * 72)}.\[\&_a\]\:text-brand-foreground a{color:var(--brand-foreground)}.\[\&_a\]\:underline a{text-decoration-line:underline}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-2\.5 svg{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\]\:\!text-white svg{color:var(--color-white)!important}@media (hover:hover){.hover\:\[\&_svg\]\:stroke-emerald-500:hover svg{stroke:var(--color-emerald-500)}}.dark\:\[\&_svg\]\:\!text-white:is(.dark *) svg{color:var(--color-white)!important}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive\![data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{rotate:180deg}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab, var(--secondary) 90%, transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-ext-wght-normal-C8iNium2.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-wght-normal-BqRLTx4X.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans Variable;font-style:normal;font-display:swap;font-weight:300 800;src:url(/build/assets/open-sans-latin-ext-wght-normal-DPNHYqvY.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans Variable;font-style:normal;font-display:swap;font-weight:300 800;src:url(/build/assets/open-sans-latin-wght-normal-CWNzRldh.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Nunito Sans Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-sans-latin-ext-wght-normal-DMEAsnHD.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nunito Sans Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-sans-latin-wght-normal-BWQ3gi2K.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-ext-wght-normal-DYIxWhlt.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-wght-normal-ccAYIvAh.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Figtree Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/figtree-latin-ext-wght-normal-DCwSJGxG.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Figtree Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/atkinson-hyperlegible-latin-ext-400-normal-DRk46D-x.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/atkinson-hyperlegible-latin-400-normal-BrHNak5F.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:700;src:url(/build/assets/atkinson-hyperlegible-latin-ext-700-normal-BoVPHkS0.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:700;src:url(/build/assets/atkinson-hyperlegible-latin-700-normal-GZI4o3u0.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-serif-4-latin-ext-wght-normal-CxNHBx-q.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-serif-4-latin-wght-normal-D9elroTD.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-ext-wght-normal-BZx4mOJf.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-wght-normal-BovdrKvB.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lora Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/lora-latin-ext-wght-normal-C2Wlntb9.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lora Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/lora-latin-wght-normal-BiLcIKcI.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--radius:.5rem;--background:#f4f5f7;--foreground:#1a1d21;--card:#fff;--card-foreground:#1a1d21;--popover:#fff;--popover-foreground:#1a1d21;--muted:#f1f2f4;--muted-foreground:#5f6670;--accent:#f1f2f4;--accent-foreground:#1a1d21;--secondary:#eef0f2;--secondary-foreground:#1a1d21;--border:#e3e5e8;--input:#d5d8dd;--destructive:#c62828;--primary:var(--brand);--primary-foreground:var(--brand-foreground);--ring:var(--brand-400);--brand-text:var(--brand-600);--accent2:var(--brand);--accent2-foreground:var(--brand-foreground);--accent2-text:var(--brand-text);--font-body:"Inter Variable", ui-sans-serif, system-ui, sans-serif;--font-heading:var(--font-body);--brand-soft:var(--brand-50);--brand-soft-foreground:var(--brand-700)}.dark{--background:#0f1114;--foreground:#e8eaed;--card:#171a1e;--card-foreground:#e8eaed;--popover:#1c1f24;--popover-foreground:#e8eaed;--muted:#22262b;--muted-foreground:#9aa1ab;--accent:#22262b;--accent-foreground:#e8eaed;--secondary:#22262b;--secondary-foreground:#e8eaed;--border:#2a2e34;--input:#353a41;--destructive:#ef5350;--brand-text:var(--brand-300);--brand-soft:var(--brand)}@supports (color:color-mix(in lab, red, red)){.dark{--brand-soft:color-mix(in oklab, var(--brand) 22%, transparent)}}.dark{--brand-soft-foreground:var(--brand-200)}.prose{--tw-prose-body:var(--foreground);--tw-prose-headings:var(--foreground);--tw-prose-links:var(--brand-text);--tw-prose-bold:var(--foreground);--tw-prose-quotes:var(--foreground);--tw-prose-quote-borders:var(--brand-300);--tw-prose-bullets:var(--muted-foreground);--tw-prose-counters:var(--muted-foreground);--tw-prose-hr:var(--border);--tw-prose-th-borders:var(--border);--tw-prose-td-borders:var(--border)}.prose :where(blockquote p:first-of-type):before,.prose :where(blockquote p:last-of-type):after{content:none}.pb-box .prose{--tw-prose-body:currentColor;--tw-prose-bold:currentColor;--tw-prose-links:currentColor;--tw-prose-bullets:currentColor;--tw-prose-headings:currentColor}header[data-header=brand]{--foreground:var(--brand-foreground);--accent:var(--brand-foreground)}@supports (color:color-mix(in lab, red, red)){header[data-header=brand]{--accent:color-mix(in oklab, var(--brand-foreground) 14%, transparent)}}header[data-header=brand]{--muted-foreground:var(--brand-foreground)}@supports (color:color-mix(in lab, red, red)){header[data-header=brand]{--muted-foreground:color-mix(in oklab, var(--brand-foreground) 75%, transparent)}}header[data-header=brand]{background:var(--brand);color:var(--foreground);border-color:#0000}header[data-header=dark]{--foreground:#eef0f2;--accent:#ffffff1a;--muted-foreground:#a3aab3;color:var(--foreground);background:#16191d;border-color:#262a30}header[data-header=brand] input,header[data-header=dark] input{background:var(--foreground)}@supports (color:color-mix(in lab, red, red)){header[data-header=brand] input,header[data-header=dark] input{background:color-mix(in oklab, var(--foreground) 14%, transparent)}}header[data-header=brand] input,header[data-header=dark] input{color:var(--foreground);border-color:#0000}header[data-header=brand] input::placeholder,header[data-header=dark] input::placeholder{color:var(--muted-foreground)}header[data-header=brand] .nav-underline,header[data-header=dark] .nav-underline{background:currentColor}@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-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto}[data-sonner-toaster]{width:var(--width);--gray1:#fcfcfc;--gray2:#f8f8f8;--gray3:#f3f3f3;--gray4:#ededed;--gray5:#e8e8e8;--gray6:#e2e2e2;--gray7:#dbdbdb;--gray8:#c7c7c7;--gray9:#8f8f8f;--gray10:#858585;--gray11:#6f6f6f;--gray12:#171717;--border-radius:8px;box-sizing:border-box;z-index:999999999;outline:none;margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;list-style:none;transition:transform .4s;position:fixed}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);opacity:0;transform:var(--y);touch-action:none;box-sizing:border-box;overflow-wrap:anywhere;outline:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;position:absolute}[data-sonner-toast][data-styled=true]{background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);width:var(--width);align-items:center;gap:6px;padding:16px;font-size:13px;display:flex;box-shadow:0 4px 12px #0000001a}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap));top:0}[data-sonner-toast][data-y-position=bottom]{--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap));bottom:0}[data-sonner-toast][data-styled=true] [data-description]{color:#3f3f3f;font-weight:400;line-height:1.4}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{color:inherit;font-weight:500;line-height:1.5}[data-sonner-toast][data-styled=true] [data-icon]{width:16px;height:16px;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end);flex-shrink:0;justify-content:flex-start;align-items:center;display:flex;position:relative}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform-origin:50%;animation:.3s forwards sonner-fade-in;transform:scale(.8)}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{flex-direction:column;gap:2px;display:flex}[data-sonner-toast][data-styled=true] [data-button]{height:24px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);cursor:pointer;border:none;border-radius:4px;outline:none;flex-shrink:0;align-items:center;padding-left:8px;padding-right:8px;font-size:12px;font-weight:500;transition:opacity .4s,box-shadow .2s;display:flex}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:#ffffff4d}[data-sonner-toaster] [data-close-button-position=top-left]{--toast-close-button-left:0;--toast-close-button-right:unset;--toast-close-button-top:0;--toast-close-button-bottom:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster] [data-close-button-position=top-right]{--toast-close-button-left:unset;--toast-close-button-right:0;--toast-close-button-top:0;--toast-close-button-bottom:unset;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster] [data-close-button-position=bottom-left]{--toast-close-button-left:0;--toast-close-button-right:unset;--toast-close-button-top:unset;--toast-close-button-bottom:0;--toast-close-button-transform:translate(-35%, 35%)}[data-sonner-toaster] [data-close-button-position=bottom-right]{--toast-close-button-left:unset;--toast-close-button-right:0;--toast-close-button-top:unset;--toast-close-button-bottom:0;--toast-close-button-transform:translate(35%, 35%)}[data-sonner-toast][data-styled=true] [data-close-button]{left:var(--toast-close-button-left);right:var(--toast-close-button-right);top:var(--toast-close-button-top);bottom:var(--toast-close-button-bottom);width:20px;height:20px;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);cursor:pointer;z-index:1;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:opacity .1s,background .2s,border-color .2s;display:flex;position:absolute}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";z-index:-1;height:100%;position:absolute;left:-100%;right:-100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3)translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3)translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]:after{content:"";height:calc(var(--gap) + 1px);width:100%;position:absolute;bottom:100%;left:0}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * .05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--toasts-before) * .05 + 1));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0px)) translateX(var(--swipe-amount-x,0px));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (width<=600px){[data-sonner-toaster]{right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%;position:fixed}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{width:calc(100% - var(--mobile-offset-left) * 2);left:0;right:0}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:calc(var(--mobile-offset-bottom) + max(env(safe-area-inset-bottom), 0px))}[data-sonner-toaster][data-y-position=top]{top:calc(var(--mobile-offset-top) + max(env(safe-area-inset-top), 0px))}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:#ecfdf3;--success-border:#bffcd9;--success-text:#008a2e;--info-bg:#f0f8ff;--info-border:#dde7fd;--info-text:#0973dc;--warning-bg:#fffcf0;--warning-border:#fbeeb1;--warning-text:#dc7609;--error-bg:#fff0f0;--error-border:#ffe0e1;--error-text:#e60000}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:#333;--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:#1f1f1f;--normal-border:#333;--normal-border-hover:#404040;--normal-text:var(--gray1);--success-bg:#001f0f;--success-border:#003d1c;--success-text:#59f3a6;--info-bg:#000d1f;--info-border:#19233e;--info-text:#5896f3;--warning-bg:#1d1f00;--warning-border:#2e2e00;--warning-text:#f3cf58;--error-bg:#2d0607;--error-border:#4d0408;--error-text:#ff9ea1}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);z-index:10;position:absolute;inset:0}.sonner-loading-wrapper[data-visible=false]{transform-origin:50%;animation:.2s forwards sonner-fade-out}.sonner-spinner{height:var(--size);width:var(--size);position:relative;top:50%;left:50%}.sonner-loading-bar{background:var(--gray11);border-radius:6px;width:24%;height:8%;animation:1.2s linear infinite sonner-spin;position:absolute;top:-3.9%;left:-10%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg)translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg)translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg)translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg)translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg)translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg)translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg)translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg)translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg)translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg)translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg)translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg)translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{transform-origin:50%;transition:opacity .2s,transform .2s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8)translate(-50%,-50%)} diff --git a/public/build/assets/app-CIvn5Z1l.js b/public/build/assets/app-Dy5FbYkt.js similarity index 94% rename from public/build/assets/app-CIvn5Z1l.js rename to public/build/assets/app-Dy5FbYkt.js index a57438cd..b7f58a2b 100644 --- a/public/build/assets/app-CIvn5Z1l.js +++ b/public/build/assets/app-Dy5FbYkt.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Sample-XU7cLEYR.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/AppIcon-BVHFLm12.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-CleIz2GP.js","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/AppLayout-Cy38OwfZ.js","assets/BrandLogo-TGGJyC1K.js","assets/button-SRYY3-ko.js","assets/Panel-xPHuwfuu.js","assets/chevron-right-DR4LjgDm.js","assets/Input-CgjHXzkf.js","assets/dist-BRRmd-wM.js","assets/PageContent-DplopdM5.js","assets/DirectoryLogin-ClBeVS4i.js","assets/arrow-left-nZZEveo4.js","assets/eye-off-DWbaLHNt.js","assets/eye-DcTo_il4.js","assets/FormField-BcJMyuzX.js","assets/GuestLayout-DAusAB2K.js","assets/ForgotPassword-DgexuuME.js","assets/Login-iLM3GgD3.js","assets/check-DGi8MtvT.js","assets/isValueEqualOrExist-BDaOcy4r.js","assets/VisuallyHiddenInput-_rInYvRq.js","assets/RovingFocusItem-DX1SmLL8.js","assets/ResetPassword-BJZyO33I.js","assets/Dashboard-BiW9lQww.js","assets/Index-CcFQ4knZ.js","assets/PageHeader-CWL5ThBH.js","assets/Index-BfHGKDDV.js","assets/chevron-left-CfNljcKt.js","assets/Organigram-BAINuG6f.js","assets/minus-CbZH2mo0.js","assets/plus-cKZvz4wH.js","assets/smartphone-2VTLQVgX.js","assets/EmptyState-Ceq4v8mE.js","assets/useStoredChoice-DGWodkrG.js","assets/Organigram-D2H6GNN8.css","assets/Edit-c1ouj20i.js","assets/trash-3XeUxfQJ.js","assets/Textarea-DWpyL-nk.js","assets/Show-DghwZmO4.js","assets/Index-CbsDlkw3.js","assets/BirthdayItem-DK6xURSZ.js","assets/Index-DjWJJOPS.js","assets/arrow-up-B8ttChMk.js","assets/download-cH_7CRKx.js","assets/upload-CsKboDGl.js","assets/FileIcon-BHQ0ftg2.js","assets/list-DbBAT7EJ.js","assets/pencil-line-Cp-EHBoW.js","assets/DialogHeader-ByFe3nCF.js","assets/NativeSelect-BBbvK4oZ.js","assets/dialog-bBqX5pN5.js","assets/Index-DhpHvuGr.js","assets/EventDateBlock-Cxz_hY6g.js","assets/Show-Cl9wZW4g.js","assets/Builder-DQTVazsj.js","assets/vue-draggable-plus-qBP-KoW2.js","assets/lock-4X8Kfof0.js","assets/FormRenderer-nT5JUcxg.js","assets/send-BevoJaJI.js","assets/save-COy1XW3C.js","assets/table-properties-B82lvC7D.js","assets/Switch-BaFVWLMv.js","assets/Index-Dm9p24qX.js","assets/Show-CXvEssaa.js","assets/calendar-clock-CswFc-uh.js","assets/Editor-Cx9Ivcev.js","assets/RichTextEditor-CSdBGrkn.js","assets/RichTextEditor-Lf5W1_X5.css","assets/message-square-warning-CUD7Iy66.js","assets/Index-CuHYqUvM.js","assets/pen-line-AST4G_M5.js","assets/NewsCard-CWMFENyt.js","assets/NewsImage-31QS1JbU.js","assets/Show-Ch-d-Qt4.js","assets/Editor-BbW_ap54.js","assets/play-_hM1KTvn.js","assets/NewPageDialog-BbIzQTb2.js","assets/Editor-D8CaLfE4.css","assets/Index-DMTy14mX.js","assets/Show-C0lCCVvK.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Sample-DYok2NXK.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/AppIcon-SVMShh8s.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-CleIz2GP.js","assets/RovingFocusGroup-NIVUjBd5.js","assets/http-9R3L4KBg.js","assets/AppLayout-X0y7XSjx.js","assets/BrandLogo-DRGdNySk.js","assets/button-SRYY3-ko.js","assets/Panel-DF-wChKt.js","assets/chevron-right-DR4LjgDm.js","assets/Input-CgjHXzkf.js","assets/dist-BRRmd-wM.js","assets/PageContent-DK_3i7FH.js","assets/DirectoryLogin-CjtXWv8X.js","assets/arrow-left-nZZEveo4.js","assets/eye-off-DWbaLHNt.js","assets/eye-DcTo_il4.js","assets/FormField-BcJMyuzX.js","assets/GuestLayout-DxnnRWk6.js","assets/ForgotPassword-CjPrjuOr.js","assets/Login-ER-PAXOz.js","assets/check-DGi8MtvT.js","assets/isValueEqualOrExist-BDaOcy4r.js","assets/VisuallyHiddenInput-_rInYvRq.js","assets/RovingFocusItem-DX1SmLL8.js","assets/ResetPassword-hKQvIauU.js","assets/Dashboard-Bex8V2VA.js","assets/Index-Cm4o1643.js","assets/PageHeader-Dcr3nLVu.js","assets/Index-BjHFR2Wc.js","assets/chevron-left-CfNljcKt.js","assets/search-x-C4tzI22g.js","assets/Organigram-BYglUB79.js","assets/chevron-up-B_XdKobX.js","assets/minus-G8J1pUIu.js","assets/plus-cKZvz4wH.js","assets/smartphone-2VTLQVgX.js","assets/EmptyState-Ceq4v8mE.js","assets/Skeleton-CDbudwoF.js","assets/useStoredChoice-BAacDiWy.js","assets/Organigram-D2H6GNN8.css","assets/Edit-B8iiYql2.js","assets/trash-3XeUxfQJ.js","assets/Textarea-DWpyL-nk.js","assets/Show-pboqfIu7.js","assets/Index-CxZeGDv5.js","assets/BirthdayItem-1R7P_7L0.js","assets/Index-PrZevWYb.js","assets/arrow-up-B8ttChMk.js","assets/download-cH_7CRKx.js","assets/file-plus-corner-InzMgr9W.js","assets/FileIcon-LA1rFyBK.js","assets/upload-mORtSS3U.js","assets/list-DbBAT7EJ.js","assets/pencil-line-Cp-EHBoW.js","assets/DialogHeader-UfXa7NWq.js","assets/NativeSelect-BBbvK4oZ.js","assets/dialog-DrnG5a9r.js","assets/Index-BYfOGxER.js","assets/EventDateBlock-DzdXYi61.js","assets/Show-DPLD0BpX.js","assets/Builder-ChYMgScI.js","assets/vue-draggable-plus-qBP-KoW2.js","assets/lock-4X8Kfof0.js","assets/paperclip-D1QLTe3x.js","assets/save-COy1XW3C.js","assets/table-properties-B82lvC7D.js","assets/Switch-BaFVWLMv.js","assets/FormRenderer-BI08HA0r.js","assets/send-BevoJaJI.js","assets/Index-pznOfjNj.js","assets/Show-DQfCPmd5.js","assets/calendar-clock-CswFc-uh.js","assets/Editor-DnkhkJEP.js","assets/RichTextEditor-DgNr9C_U.js","assets/RichTextEditor-Lf5W1_X5.css","assets/message-square-warning-CUD7Iy66.js","assets/Index-CcNI40_I.js","assets/pen-line-AST4G_M5.js","assets/NewsCard-BnbSPjUt.js","assets/NewsImage-BzxvsZoE.js","assets/Show-CXZhW0SC.js","assets/Editor-C9VQdhzX.js","assets/play-_hM1KTvn.js","assets/NewPageDialog-B5SW-nak.js","assets/Editor-D8CaLfE4.css","assets/Index-DCsw2Mz2.js","assets/Show-CJ8H__98.js","assets/Folder-BP6hnAoY.js","assets/format-CUVSeMK_.js","assets/FolderTile-CFCj9eng.js","assets/colors-RDOJqd57.js","assets/QmSearchBox-DmD7IrDS.js","assets/Index-CX11WxUX.js","assets/Search-CbdzVrSM.js","assets/Search-5WfA9Ai4.css","assets/Viewer-Ce52TZDt.js"])))=>i.map(i=>d[i]); import{B as e,Ht as t,ct as n,fn as r,ft as i,g as a,gn as o,gt as s,it as c,k as l,o as u,tt as d,vn as f,xn as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as m,i as h}from"./runtime-dom.esm-bundler-BEWGoe8n.js";var g=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function _(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function v(){}function y(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function b(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function x(e){if(y(e))return e;if(Array.isArray(e)||b(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function S(e){return g.Buffer!==void 0&&g.Buffer.isBuffer(e)}function C(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function w(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var T=`[object RegExp]`,E=`[object String]`,ee=`[object Number]`,te=`[object Boolean]`,ne=`[object Arguments]`,re=`[object Symbol]`,ie=`[object Date]`,ae=`[object Map]`,oe=`[object Set]`,se=`[object Array]`,ce=`[object Function]`,le=`[object ArrayBuffer]`,ue=`[object Object]`,de=`[object Error]`,fe=`[object DataView]`,pe=`[object Uint8Array]`,me=`[object Uint8ClampedArray]`,he=`[object Uint16Array]`,ge=`[object Uint32Array]`,_e=`[object BigUint64Array]`,ve=`[object Int8Array]`,ye=`[object Int16Array]`,be=`[object Int32Array]`,xe=`[object BigInt64Array]`,Se=`[object Float32Array]`,Ce=`[object Float64Array]`;function we(e,t){return Te(e,void 0,e,new Map,t)}function Te(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(y(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;aMe(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case se:case pe:case me:case he:case ge:case _e:case ve:case ye:case be:case xe:case Se:case Ce:if(S(e)!==S(t)||e.length!==t.length)return!1;for(let i=0;i=0}var Fe={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ie(e){return e.replace(/[&<>"']/g,e=>Fe[e])}function Le(e){return e!=null&&typeof e!=`function`&&Pe(e.length)}function Re(e){return typeof e==`symbol`||e instanceof Symbol}function ze(e){return e==null?``:Be(e)}function Be(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Be).join(`,`);if(Re(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function Ve(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function He(e){if(Array.isArray(e))return e.map(Ve);if(typeof e==`symbol`)return[e];e=ze(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(w(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),D(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case ee:case E:case te:{let t=new e.constructor(e?.valueOf());return D(t,e),t}case ne:{let t={};return D(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Je(e){return qe(e)}function Ye(e){return typeof e==`object`&&!!e&&w(e)===`[object Arguments]`}var Xe=/^(?:0|[1-9]\d*)$/;function Ze(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e{let r=e[t];(!(Object.hasOwn(e,t)&&Ae(r,n))||n===void 0&&!(t in e))&&(e[t]=n)};function ot(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function st(e,t,n,r){if(e==null&&!Ke(e))return e;let i;i=rt(t,e)?[t]:Array.isArray(t)?t:He(t);let a=n(A(e,i)),o=e;for(let t=0;tn,()=>void 0)}function ct(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=_(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?((r||i)&&(s=e.apply(this,t)),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function lt(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;etypeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0,mt=e=>e instanceof FormData||pt(e)||typeof e==`object`&&!!e&&Object.values(e).some(e=>mt(e)),ht=class extends Error{response;constructor(e){super(`HTTP error ${e.status}`),this.name=`HttpResponseError`,this.response=e}},gt=class extends Error{constructor(e=`Request was cancelled`){super(e),this.name=`HttpCancelledError`}},_t=class extends Error{constructor(e=`Network error`){super(e),this.name=`HttpNetworkError`}};function vt(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{n!=null&&(Array.isArray(n)?n.forEach(n=>t.append(`${e}[]`,String(n))):typeof n==`object`?t.append(e,JSON.stringify(n)):t.append(e,String(n)))}),t.toString()}function yt(e,t,n){if(t&&!e.startsWith(`http://`)&&!e.startsWith(`https://`)&&(e=t.replace(/\/$/,``)+`/`+e.replace(/^\//,``)),n&&Object.keys(n).length>0){let t=vt(n);t&&(e+=(e.includes(`?`)?`&`:`?`)+t)}return e}function bt(){return typeof window>`u`?null:window.axios?.defaults?.headers?.common?.[`X-Requested-With`]??null}function xt(e,t=new FormData,n=null){for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&St(t,n?`${n}[${r}]`:r,e[r]);return t}function St(e,t,n){if(Array.isArray(n))return n.forEach((n,r)=>St(e,`${t}[${r}]`,n));if(n instanceof Date)return e.append(t,n.toISOString());if(typeof File<`u`&&n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);xt(n,e,t)}function Ct(e,t){if(e!=null)return e instanceof FormData?e:typeof e==`object`&&mt(e)?xt(e):typeof e==`object`||t[`Content-Type`]?.includes(`application/json`)?JSON.stringify(e):String(e)}function wt(e){let t={};return e.forEach((e,n)=>{t[n.toLowerCase()]=e}),t}function Tt(e={}){let t=e.xsrfCookieName??`XSRF-TOKEN`,n=e.xsrfHeaderName??`X-XSRF-TOKEN`;function r(){if(typeof document>`u`)return null;let e=document.cookie.match(RegExp(`(^|;\\s*)`+t+`=([^;]*)`));return e?decodeURIComponent(e[2]):null}return{setXsrfCookieName(e){t=e},setXsrfHeaderName(e){n=e},async request(e){let t=yt(e.url,e.baseURL,e.params),i=e.method.toUpperCase(),a={},o=bt();o&&(a[`X-Requested-With`]=o),e.data!==void 0&&![`GET`,`DELETE`].includes(i)&&!(e.data instanceof FormData)&&!mt(e.data)&&(a[`Content-Type`]=`application/json`),e.headers&&Object.entries(e.headers).forEach(([e,t])=>{t!==void 0&&(a[e]=String(t))});let s=r();s&&![`GET`,`HEAD`,`OPTIONS`].includes(i)&&(a[n]=s);let c=e.signal,l,u=e.timeout??3e4;if(u>0&&!c){let e=new AbortController;c=e.signal,l=setTimeout(()=>e.abort(),u)}let d=[`GET`,`DELETE`].includes(i)?void 0:Ct(e.data,a);d instanceof FormData&&delete a[`Content-Type`];try{let n=await fetch(t,{method:i,headers:a,body:d,signal:c,credentials:e.credentials??`same-origin`});l&&clearTimeout(l);let r;r=n.headers.get(`content-type`)?.includes(`application/json`)?await n.json():await n.text();let o={status:n.status,data:r,headers:wt(n.headers)};if(!n.ok)throw new ht(o);return o}catch(e){throw l&&clearTimeout(l),e instanceof ht?e:e instanceof DOMException&&e.name===`AbortError`?new gt:e instanceof TypeError?new _t(e.message):e}}}}var Et=Tt(),Dt=Et,Ot=void 0,kt=void 0,At=`same-origin`,jt=e=>`${e.method}:${e.baseURL??Ot??``}${e.url}`,Mt=e=>e.status===204&&e.headers[`precognition-success`]===`true`,Nt={},M={get:(e,t={},n={})=>Ft(Pt(`get`,e,t,n)),post:(e,t={},n={})=>Ft(Pt(`post`,e,t,n)),patch:(e,t={},n={})=>Ft(Pt(`patch`,e,t,n)),put:(e,t={},n={})=>Ft(Pt(`put`,e,t,n)),delete:(e,t={},n={})=>Ft(Pt(`delete`,e,t,n)),useHttpClient(e){return Dt=e,M},withBaseURL(e){return Ot=e,M},withTimeout(e){return kt=e,M},withCredentials(e){return At=typeof e==`string`?e:e?`include`:`omit`,M},fingerprintRequestsUsing(e){return jt=e===null?()=>null:e,M},determineSuccessUsing(e){return Mt=e,M},withXsrfCookieName(e){return Et.setXsrfCookieName(e),M},withXsrfHeaderName(e){return Et.setXsrfHeaderName(e),M}},Pt=(e,t,n,r)=>({url:t,method:e,...r,...[`get`,`delete`].includes(e)?{params:dt({},n,r?.params)}:{data:dt({},n,r?.data)}}),Ft=(e={})=>{let t=[It,Rt,zt].reduce((e,t)=>t(e),e);return(t.onBefore??(()=>!0))()===!1?Promise.resolve(null):((t.onStart??(()=>null))(),Dt.request({method:t.method,url:t.url,baseURL:t.baseURL??Ot,data:t.data,params:t.params,headers:t.headers,signal:t.signal,timeout:t.timeout,credentials:At}).then(async e=>{t.precognitive&&Bt(e);let n=e.status,r=e;return t.precognitive&&t.onPrecognitionSuccess&&Mt(e)&&(r=await Promise.resolve(t.onPrecognitionSuccess(e)??r)),t.onSuccess&&Lt(n)&&(r=await Promise.resolve(t.onSuccess(r)??r)),(Ht(t,n)??(e=>e))(r)??r},e=>{if(Vt(e))return Promise.reject(e);let n=e;return t.precognitive&&Bt(n.response),(Ht(t,n.response.status)??((e,t)=>Promise.reject(t)))(n.response,n)}).finally(t.onFinish??(()=>null)))},It=e=>{let t=e.only??e.validate;return{...e,timeout:e.timeout??kt,precognitive:e.precognitive!==!1,fingerprint:e.fingerprint===void 0?jt(e,Dt):e.fingerprint,headers:{...e.headers,Accept:`application/json`,"Content-Type":Ut(e),...e.precognitive===!1?{}:{Precognition:!0},...t?{"Precognition-Validate-Only":Array.from(t).join()}:{}}}},Lt=e=>e>=200&&e<300,Rt=e=>typeof e.fingerprint==`string`?(Nt[e.fingerprint]?.abort(),delete Nt[e.fingerprint],e):e,zt=e=>typeof e.fingerprint!=`string`||e.signal||!e.precognitive?e:(Nt[e.fingerprint]=new AbortController,{...e,signal:Nt[e.fingerprint].signal}),Bt=e=>{if(e.headers?.precognition!==`true`)throw Error(`Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.`)},Vt=e=>!(e instanceof ht)||typeof e.response?.status!=`number`,Ht=(e,t)=>({401:e.onUnauthorized,403:e.onForbidden,404:e.onNotFound,409:e.onConflict,422:e.onValidationError,423:e.onLocked})[t],Ut=e=>e.headers?.[`Content-Type`]??e.headers?.[`Content-type`]??e.headers?.[`content-type`]??(mt(e.data)?`multipart/form-data`:`application/json`),Wt=(e,t)=>{if(!e.includes(`*`))return[e];let n=e.split(`.`),r=[``];for(let e of n)if(e===`*`){let e=[];for(let n of r){let r=n?A(t,n):t;if(Array.isArray(r))for(let t=0;tt?`${t}.${e}`:e);return r},Gt=(e,t)=>t.includes(`*`)?RegExp(`^`+t.replace(/\./g,`\\.`).replace(/\*/g,`[^.]+`)+`$`).test(e):e===t,Kt=(e,t)=>Object.fromEntries(Object.entries(e).filter(([e])=>!t.some(t=>Gt(e,t)))),qt=(e,t={})=>{let n={errorsChanged:[],touchedChanged:[],validatingChanged:[],validatedChanged:[]},r=!1,i=!1,a=e=>e===i?[]:(i=e,n.validatingChanged),o=[],s=e=>{let t=[...new Set(e)];return o.length!==t.length||!t.every(e=>o.includes(e))?(o=t,n.validatedChanged):[]},c=()=>o.filter(e=>d[e]===void 0),l=[],u=e=>{let t=[...new Set(e)];return l.length!==t.length||!t.every(e=>l.includes(e))?(l=t,n.touchedChanged):[]},d={},f=e=>{let t=Yt(e);return k(d,t)?[]:(d=t,n.errorsChanged)},p=e=>{let t={...d};return delete t[Xt(e)],f(t)},m=()=>Object.keys(d).length>0,h=1500,g=e=>{h=e,S.cancel(),S=x()},_=t,v=null,y=[],b=null,x=()=>ct(t=>{e({get:(e,n={},r={})=>M.get(e,T(n),C(r,t,n)),post:(e,n={},r={})=>M.post(e,T(n),C(r,t,n)),patch:(e,n={},r={})=>M.patch(e,T(n),C(r,t,n)),put:(e,n={},r={})=>M.put(e,T(n),C(r,t,n)),delete:(e,n={},r={})=>M.delete(e,T(n),C(r,t,n))}).catch(e=>e instanceof gt||e instanceof ht&&e.response?.status===422?null:Promise.reject(e))},h,{leading:!0,trailing:!0}),S=x(),C=(e,t,n={})=>{let r={...e,...t},i=Array.from(r.only??r.validate??l);return{...t,...dt({},e,t),only:i,timeout:r.timeout??5e3,onValidationError:(e,t)=>([...s([...o,...i]),...f(dt(Kt({...d},i),e.data.errors))].forEach(e=>e()),r.onValidationError?r.onValidationError(e,t):Promise.reject(t)),onSuccess:e=>(s([...o,...i]).forEach(e=>e()),r.onSuccess?r.onSuccess(e):e),onPrecognitionSuccess:e=>([...s([...o,...i]),...f(Kt({...d},i))].forEach(e=>e()),r.onPrecognitionSuccess?r.onPrecognitionSuccess(e):e),onBefore:()=>{let e=l.some(e=>e.includes(`*`)),t=e?[...new Set(l.flatMap(e=>Wt(e,n)))]:l;return r.onBeforeValidation&&r.onBeforeValidation({data:n,touched:t},{data:_,touched:y})===!1||(r.onBefore||(()=>!0))()===!1?!1:(e&&u(t).forEach(e=>e()),b=l,v=n,!0)},onStart:()=>{a(!0).forEach(e=>e()),(r.onStart??(()=>null))()},onFinish:()=>{a(!1).forEach(e=>e()),y=b,_=v,b=v=null,(r.onFinish??(()=>null))()}}},w=(e,t,n)=>{if(e===void 0){let e=Array.from(n?.only??n?.validate??[]);u([...l,...e]).forEach(e=>e()),S(n??{});return}if(pt(t)&&!r){console.warn(`Precognition file validation is not active. Call the "validateFiles" function on your form to enable it.`);return}e=Xt(e),(e.includes(`*`)||A(_,e)!==t)&&(u([e,...l]).forEach(e=>e()),S(n??{}))},T=e=>r===!1?Zt(e):e,E={touched:()=>l,validate(e,t,n){return typeof e==`object`&&!(`target`in e)&&(n=e,e=t=void 0),w(e,t,n),E},touch(e){let t=Array.isArray(e)?e:[Xt(e)];return u([...l,...t]).forEach(e=>e()),E},validating:()=>i,valid:c,errors:()=>d,hasErrors:m,setErrors(e){return f(e).forEach(e=>e()),E},forgetError(e){return p(e).forEach(e=>e()),E},defaults(e){return t=e,_=e,E},reset(...e){if(e.length===0)u([]).forEach(e=>e());else{let n=[...l];e.forEach(e=>{n.includes(e)&&n.splice(n.indexOf(e),1),j(_,e,A(t,e))}),u(n).forEach(e=>e())}return E},setTimeout(e){return g(e),E},on(e,t){return n[e].push(t),E},validateFiles(){return r=!0,E},withoutFileValidation(){return r=!1,E}};return E},Jt=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:Array.isArray(e[n])?e[n][0]:e[n]}),{}),Yt=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:typeof e[n]==`string`?[e[n]]:e[n]}),{}),Xt=e=>typeof e==`string`?e:e.target.name,Zt=e=>{let t={...e};return Object.keys(t).forEach(e=>{let n=t[e];if(n!==null){if(pt(n)){delete t[e];return}if(Array.isArray(n)){t[e]=Object.values(Zt({...n}));return}if(typeof n==`object`){t[e]=Zt(t[e]);return}}}),t},Qt=`modulepreload`,$t=function(e){return`/build/`+e},en={},N=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=$t(t,n),t=s(t),t in en)return;en[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Qt,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},tn=new class{config={};defaults;constructor(e){this.defaults=e}extend(e){return e&&(this.defaults={...this.defaults,...e}),this}replace(e){this.config=e}get(e){return Qe(this.config,e)?A(this.config,e):A(this.defaults,e)}set(e,t){typeof e==`string`?j(this.config,e,t):Object.entries(e).forEach(([e,t])=>{j(this.config,e,t)})}}({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0,withAllErrors:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function nn(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function P(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var rn=e=>P(`before`,{cancelable:!0,detail:{visit:e}}),an=(e,{page:t,visitId:n}={})=>P(`error`,{detail:{errors:e,page:t,visitId:n}}),on=e=>P(`networkError`,{cancelable:!0,detail:{error:e}}),sn=e=>P(`finish`,{detail:{visit:e}}),cn=e=>P(`httpException`,{cancelable:!0,detail:{response:e}}),ln=e=>P(`beforeUpdate`,{detail:{page:e}}),un=(e,{cached:t=!1,visitId:n}={})=>P(`navigate`,{detail:{page:e,cached:t,visitId:n}}),dn=(e,{replace:t,visitId:n})=>P(`clientVisit`,{detail:{page:e,replace:t,visitId:n}}),fn=e=>P(`progress`,{detail:{progress:e}}),pn=e=>P(`start`,{detail:{visit:e}}),mn=(e,{visitId:t}={})=>P(`success`,{detail:{page:e,visitId:t}}),hn=(e,t)=>P(`prefetched`,{detail:{fetchedAt:Date.now(),response:e,visit:t}}),gn=e=>P(`prefetching`,{detail:{visit:e}}),_n=e=>P(`flash`,{detail:{flash:e}}),vn=(e,t)=>P(`location`,{cancelable:!0,detail:{url:e,versionChange:t}}),F=class{static locationVisitKey=`inertiaLocationVisit`;static set(e,t){typeof window<`u`&&window.sessionStorage.setItem(e,JSON.stringify(t))}static get(e){if(typeof window<`u`)return JSON.parse(window.sessionStorage.getItem(e)||`null`)}static merge(e,t){let n=this.get(e);n===null?this.set(e,t):this.set(e,{...n,...t})}static remove(e){typeof window<`u`&&window.sessionStorage.removeItem(e)}static removeNested(e,t){let n=this.get(e);n!==null&&(delete n[t],this.set(e,n))}static exists(e){try{return this.get(e)!==null}catch{return!1}}static clear(){typeof window<`u`&&window.sessionStorage.clear()}},yn=async e=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);let t=wn(),n=await Dn(await On());if(!n)throw Error(`Unable to encrypt history`);return await Sn(t,n,e)},bn={key:`historyKey`,iv:`historyIv`},xn=async e=>{let t=wn(),n=await On();if(!n)throw Error(`Unable to decrypt history`);return await Cn(t,n,e)},Sn=async(e,t,n)=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=new TextEncoder,i=JSON.stringify(n),a=new Uint8Array(i.length*3),o=r.encodeInto(i,a);return window.crypto.subtle.encrypt({name:`AES-GCM`,iv:e},t,a.subarray(0,o.written))},Cn=async(e,t,n)=>{if(window.crypto.subtle===void 0)return console.warn(`Decryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=await window.crypto.subtle.decrypt({name:`AES-GCM`,iv:e},t,n);return JSON.parse(new TextDecoder().decode(r))},wn=()=>{let e=F.get(bn.iv);if(e)return new Uint8Array(e);let t=window.crypto.getRandomValues(new Uint8Array(12));return F.set(bn.iv,Array.from(t)),t},Tn=async()=>window.crypto.subtle===void 0?(console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(null)):window.crypto.subtle.generateKey({name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]),En=async e=>{if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve();let t=await window.crypto.subtle.exportKey(`raw`,e);F.set(bn.key,Array.from(new Uint8Array(t)))},Dn=async e=>{if(e)return e;let t=await Tn();return t?(await En(t),t):null},On=async()=>{let e=F.get(bn.key);return e?await window.crypto.subtle.importKey(`raw`,new Uint8Array(e),{name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]):null},kn=e=>{let t={};for(let n of Object.keys(e))e[n]!==void 0&&(t[n]=e[n]);return t},An=(e,t,n)=>{if(e===t)return!0;for(let r in e)if(!n.includes(r)&&e[r]!==t[r]&&!jn(e[r],t[r]))return!1;for(let r in t)if(!n.includes(r)&&!(r in e))return!1;return!0},jn=(e,t)=>{switch(typeof e){case`object`:return An(e,t,[]);case`function`:return e.toString()===t.toString();default:return e===t}},Mn=(e,t,n)=>{let r=He(t);if(r.length===0)return e;let i=(e,t)=>{if(t===r.length)return n;let a=r[t],o=Array.isArray(e)?[...e]:e&&typeof e==`object`?{...e}:/^(?:0|[1-9]\d*)$/.test(a)?[]:{};return o[a]=i(e?.[a],t+1),o};return i(e,0)},Nn={ms:1,s:1e3,m:6e4,h:36e5,d:864e5},Pn=e=>{if(typeof e==`number`)return e;for(let[t,n]of Object.entries(Nn))if(e.endsWith(t))return parseFloat(e)*n;return parseInt(e)},I=new class{cached=[];inFlightRequests=[];removalTimers=[];currentUseId=null;add(e,t,{cacheFor:n,cacheTags:r}){if(this.findInFlight(e))return Promise.resolve();let i=this.findCached(e);if(!e.fresh&&i&&i.staleTimestamp>Date.now())return Promise.resolve();let[a,o]=this.extractStaleValues(n),s=new Promise((n,r)=>{t({...e,onCancel:()=>{this.remove(e),e.onCancel(),r()},onError:t=>{this.remove(e),e.onError(t),r()},onPrefetching(t){e.onPrefetching(t)},onPrefetched(t,n){e.onPrefetched(t,n)},onPrefetchResponse(e){n(e)},onPrefetchError(t){I.removeFromInFlight(e),r(t)}})}).then(t=>{this.remove(e);let n=t.getPageResponse();B.mergeOncePropsIntoResponse(n),this.cached.push({params:{...e},staleTimestamp:Date.now()+a,expiresAt:Date.now()+o,response:s,singleUse:o===0,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(r)?r:[r]});let i=this.getShortestOncePropTtl(n);return this.scheduleForRemoval(e,i?Math.min(o,i):o),this.removeFromInFlight(e),t.handlePrefetch(),t});return this.inFlightRequests.push({params:{...e},response:s,staleTimestamp:null,inFlight:!0}),s}removeAll(){this.cached=[],this.removalTimers.forEach(e=>{clearTimeout(e.timer)}),this.removalTimers=[]}removeByTags(e){this.cached=this.cached.filter(t=>!t.tags.some(t=>e.includes(t)))}remove(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)),this.clearTimer(e)}removeFromInFlight(e){this.inFlightRequests=this.inFlightRequests.filter(t=>!this.paramsAreEqual(t.params,e))}extractStaleValues(e){let[t,n]=this.cacheForToStaleAndExpires(e);return[Pn(t),Pn(n)]}cacheForToStaleAndExpires(e){if(!Array.isArray(e))return[e,e];switch(e.length){case 0:return[0,0];case 1:return[e[0],e[0]];default:return[e[0],e[1]]}}clearTimer(e){let t=this.removalTimers.find(t=>this.paramsAreEqual(t.params,e));t&&(clearTimeout(t.timer),this.removalTimers=this.removalTimers.filter(e=>e!==t))}scheduleForRemoval(e,t){if(typeof window<`u`&&(this.clearTimer(e),t>0)){let n=window.setTimeout(()=>this.remove(e),t);this.removalTimers.push({params:e,timer:n})}}get(e){return this.findCached(e)||this.findInFlight(e)}use(e,t){let n=`${t.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;this.currentUseId=n;let r={...t,cached:!0};return e.response.then(e=>{if(this.currentUseId===n)return e.mergeParams({...r,onPrefetched:()=>{}}),this.removeSingleUseItems(t),e.handle()})}removeSingleUseItems(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)||!t.singleUse)}findCached(e){return this.cached.find(t=>this.paramsAreEqual(t.params,e))||null}findInFlight(e){return this.inFlightRequests.find(t=>this.paramsAreEqual(t.params,e))||null}withoutPurposePrefetchHeader(e){let t=O(e);return t.headers.Purpose===`prefetch`&&delete t.headers.Purpose,t}paramsAreEqual(e,t){return An(this.withoutPurposePrefetchHeader(e),this.withoutPurposePrefetchHeader(t),[`id`,`showProgress`,`replace`,`prefetch`,`preserveScroll`,`preserveState`,`onBefore`,`onBeforeUpdate`,`onStart`,`onProgress`,`onFinish`,`onCancel`,`onSuccess`,`onError`,`onFlash`,`onPrefetched`,`onCancelToken`,`onPrefetching`,`async`,`viewTransition`,`optimistic`,`component`,`pageProps`,`cached`])}updateCachedOncePropsFromCurrentPage(){this.cached.forEach(e=>{e.response.then(t=>{let n=t.getPageResponse();B.mergeOncePropsIntoResponse(n,{force:!0});for(let[e,t]of Object.entries(n.deferredProps??{})){let r=t.filter(e=>A(n.props,e)===void 0);r.length>0?n.deferredProps[e]=r:delete n.deferredProps[e]}let r=this.getShortestOncePropTtl(n);if(r===null)return;let i=e.expiresAt-Date.now(),a=Math.min(i,r);a>0?this.scheduleForRemoval(e.params,a):this.remove(e.params)})})}getShortestOncePropTtl(e){let t=Object.values(e.onceProps??{}).map(e=>e.expiresAt).filter(e=>!!e);return t.length===0?null:Math.min(...t)-Date.now()}},Fn=e=>{if(e.offsetParent===null)return!1;let t=e.getBoundingClientRect(),n=t.top=0,r=t.left=0;return n&&r},In=e=>{let t=e=>{let t=window.getComputedStyle(e);return t.overflowY===`scroll`?!0:t.overflowY===`auto`?[`visible`,`clip`].includes(t.overflowX)?!0:r(t.maxHeight,e.style.height)||i(e,`height`):!1},n=e=>{let t=window.getComputedStyle(e);return t.overflowX===`scroll`?!0:t.overflowX===`auto`?[`visible`,`clip`].includes(t.overflowY)?!0:r(t.maxWidth,e.style.width)||i(e,`width`):!1},r=(e,t)=>!!(e&&e!==`none`&&e!==`0px`||t&&t!==`auto`&&t!==`0`),i=(e,t)=>{let n=e.parentElement;if(!n)return!1;let r=window.getComputedStyle(n);if([`flex`,`inline-flex`].includes(r.display)){let e=[`column`,`column-reverse`].includes(r.flexDirection);return t===`height`?e:!e}return[`grid`,`inline-grid`].includes(r.display)},a=e?.parentElement;for(;a;){let e=t(a)||n(a);if(window.getComputedStyle(a).display!==`contents`&&e)return a;a=a.parentElement}return null},Ln=(e,t)=>{if(!t)return e.filter(e=>Fn(e));let n=e.indexOf(t),r=[],i=[];for(let t=n;t>=0;t--){let n=e[t];if(Fn(n))r.push(n);else break}for(let t=n+1;t{window.requestAnimationFrame(()=>{t>1?Rn(e,t-1):e()})},zn=e=>{if(typeof window>`u`)return null;let t=document.querySelector(`script[data-page="${e}"][type="application/json"]`);return t?.textContent?JSON.parse(t.textContent):null},Bn=typeof window>`u`,Vn=!Bn&&/Firefox/i.test(window.navigator.userAgent),L=class{static save(){V.saveScrollPositions(this.getScrollRegions())}static getScrollRegions(){return Array.from(this.regions()).map(e=>({top:e.scrollTop,left:e.scrollLeft}))}static regions(){return document.querySelectorAll(`[scroll-region]`)}static scrollToTop(){if(Vn&&getComputedStyle(document.documentElement).scrollBehavior===`smooth`)return Rn(()=>window.scrollTo(0,0),2);window.scrollTo(0,0)}static reset(){(Bn||!window.location.hash)&&this.scrollToTop(),this.regions().forEach(e=>{typeof e.scrollTo==`function`?e.scrollTo(0,0):(e.scrollTop=0,e.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){let e=Bn?null:window.location.hash;e&&setTimeout(()=>{let t=document.getElementById(e.slice(1));t?t.scrollIntoView():this.scrollToTop()})}static restore(e){Bn||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(e)})}static restoreScrollRegions(e){Bn||this.regions().forEach((t,n)=>{let r=e[n];r&&(typeof t.scrollTo==`function`?t.scrollTo(r.left,r.top):(t.scrollTop=r.top,t.scrollLeft=r.left))})}static restoreDocument(){let e=V.getDocumentScrollPosition();window.scrollTo(e.left,e.top)}static onScroll(e){let t=e.target;typeof t.hasAttribute==`function`&&t.hasAttribute(`scroll-region`)&&this.save()}static onWindowScroll(){V.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}},Hn=e=>typeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0;function Un(e){return Hn(e)||e instanceof FormData&&Array.from(e.values()).some(e=>Un(e))||typeof e==`object`&&!!e&&Object.values(e).some(e=>Un(e))}var Wn=e=>e instanceof FormData;function Gn(e,t=new FormData,n=null,r=`brackets`){e||={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&qn(t,Kn(n,i,`indices`),e[i],r);return t}function Kn(e,t,n){return e?n===`brackets`?`${e}[]`:`${e}[${t}]`:t}function qn(e,t,n,r){if(Array.isArray(n))return Array.from(n.keys()).forEach(i=>qn(e,Kn(t,i.toString(),r),n[i],r));if(n instanceof Date)return e.append(t,n.toISOString());if(n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);Gn(n,e,t,r)}function Jn(e){return/\[\d+\]/.test(decodeURIComponent(e.search))}function Yn(e){if(!e||e===`?`)return{};let t={};return e.replace(/^\?/,``).split(`&`).filter(Boolean).forEach(e=>{let[n,r]=Zn(e);$n(t,Qn(n),Qn(r))}),t}function Xn(e,t){let n=[];return tr(e,``,n,t),n.length?`?`+n.join(`&`):``}function Zn(e){let t=e.indexOf(`=`);return t===-1?[e,``]:[e.substring(0,t),e.substring(t+1)]}function Qn(e){return decodeURIComponent(e.replace(/\+/g,` `))}function $n(e,t,n){let r=er(t);if(r.some(e=>e===`__proto__`))return;let i=e;for(;r.length>1;){let e=r.shift(),t=r[0]===``;(typeof i[e]!=`object`||i[e]===null)&&(i[e]=t?[]:{}),i=i[e]}let a=r.shift();a===``&&Array.isArray(i)?i.push(n):i[a]=n}function er(e){let t=[],n=e.split(`[`)[0];n&&t.push(n);let r,i=/\[([^\]]*)\]/g;for(;(r=i.exec(e))!==null;)t.push(r[1]);return t}function tr(e,t,n,r){if(e!==void 0){if(e===null){n.push(`${t}=`);return}if(Array.isArray(e)){e.forEach((e,i)=>{tr(e,r===`indices`?`${t}[${i}]`:`${t}[]`,n,r)});return}if(typeof e==`object`){Object.keys(e).forEach(i=>{tr(e[i],t?`${t}[${i}]`:i,n,r)});return}n.push(`${t}=${encodeURIComponent(String(e))}`)}}function R(e){return new URL(e.toString(),typeof window>`u`?void 0:window.location.toString())}var nr=(e,t,n,r,i)=>{let a=typeof e==`string`?R(e):e;if((Un(t)||r)&&!Wn(t)&&(tn.get(`form.forceIndicesArrayFormatInFormData`)&&(i=`indices`),t=Gn(t,new FormData,null,i)),Wn(t))return[a,t];let[o,s]=rr(n,a,t,i);return[R(o),s]};function rr(e,t,n,r=`brackets`){let i=e===`get`&&!Wn(n)&&Object.keys(n).length>0,a=lr(t.toString()),o=a||t.toString().startsWith(`/`)||t.toString()===``,s=!o&&!t.toString().startsWith(`#`)&&!t.toString().startsWith(`?`),c=/^[.]{1,2}([/]|$)/.test(t.toString()),l=t.toString().includes(`?`)||i,u=t.toString().includes(`#`),d=new URL(t.toString(),typeof window>`u`?`http://localhost`:window.location.toString());if(i){let e=Jn(d)?`indices`:r;d.search=Xn({...Yn(d.search),...n},e)}return[[a?`${d.protocol}//${d.host}`:``,o?d.pathname:``,s?d.pathname.substring(+!c):``,l?d.search:``,u?d.hash:``].join(``),i?{}:n]}function ir(e){return e=new URL(e.href),e.hash=``,e}var ar=(e,t)=>{e.hash&&!t.hash&&ir(e).href===t.href&&(t.hash=e.hash)},or=(e,t)=>ir(e).href===ir(t).href,sr=(e,t)=>e.origin===t.origin&&e.pathname===t.pathname;function z(e){return typeof e==`object`&&!!e&&e!==void 0&&`url`in e&&`method`in e}function cr(e){return e.component?typeof e.component==`string`?e.component:(console.error(`The "component" property on the URL method pair received multiple components (${Object.keys(e.component).join(`, `)}), but only a single component string is supported for instant visits. Use the withComponent() method to specify which component to use.`),null):null}function lr(e){return/^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(e)}function ur(e,t){let n=typeof e==`string`?R(e):e;return t?`${n.protocol}//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`}var B=new class{page;swapComponent;resolveComponent;onFlashCallback;componentId={};listeners=[];isFirstPageLoad=!0;cleared=!1;pendingDeferredProps=null;historyQuotaExceeded=!1;optimisticBaseline={};pendingOptimistics=[];optimisticCounter=0;init({initialPage:e,swapComponent:t,resolveComponent:n,onFlash:r}){return this.page={...e,flash:e.flash??{},rescuedProps:e.rescuedProps??[]},this.swapComponent=t,this.resolveComponent=n,this.onFlashCallback=r,H.on(`historyQuotaExceeded`,()=>{this.historyQuotaExceeded=!0}),this}set(e,{replace:t=!1,preserveScroll:n=!1,preserveState:r=!1,viewTransition:i=!1,cached:a=!1,initialRender:o=!1,visitId:s}={}){Object.keys(e.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:e.deferredProps,component:e.component,url:e.url},e.initialDeferredProps===void 0&&(e.initialDeferredProps=e.deferredProps)),this.componentId={};let c=this.componentId;return e.clearHistory&&V.clear(),this.resolve(e.component,e).then(l=>{if(c!==this.componentId)return;e.rememberedState??={};let u=typeof window>`u`,d=u?new URL(e.url):window.location,f=!u&&n?L.getScrollRegions():[];t||=or(R(e.url),d);let p={...e,flash:{}};return new Promise(e=>t?V.replaceState(p,e):V.pushState(p,e)).then(()=>{let c=!this.isTheSame(e);if(!c&&Object.keys(e.props.errors||{}).length>0&&(i=!1),this.page=e,this.cleared=!1,this.hasOnceProps()&&I.updateCachedOncePropsFromCurrentPage(),c&&this.fireEventsFor(`newComponent`),this.isFirstPageLoad&&this.fireEventsFor(`firstLoad`),this.isFirstPageLoad=!1,this.historyQuotaExceeded){this.historyQuotaExceeded=!1;return}return this.swap({component:l,page:e,preserveState:r,viewTransition:i,initialRender:o}).then(()=>{n?window.requestAnimationFrame(()=>L.restoreScrollRegions(f)):L.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===e.component&&this.pendingDeferredProps.url===e.url&&H.fireInternalEvent(`loadDeferredProps`,this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,t||un(e,{cached:a,visitId:s})})})})}setQuietly(e,{preserveState:t=!1}={}){return this.resolve(e.component,e).then(n=>(this.page=e,this.cleared=!1,V.setCurrent(e),this.swap({component:n,page:e,preserveState:t,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}getWithoutFlashData(){return{...this.page,flash:{}}}hasOnceProps(){return Object.keys(this.page.onceProps??{}).length>0}merge(e){this.page={...this.page,...e}}setPropsQuietly(e){return this.page={...this.page,props:e},this.resolve(this.page.component,this.page).then(e=>this.swap({component:e,page:this.page,preserveState:!0,viewTransition:!1}))}setFlash(e){this.page={...this.page,flash:e},this.onFlashCallback?.(e)}setUrlHash(e){this.page.url.includes(e)||(this.page.url+=e)}remember(e){this.page.rememberedState=e}swap({component:e,page:t,preserveState:n,viewTransition:r,initialRender:i=!1}){let a=()=>this.swapComponent({component:e,page:t,preserveState:n,initialRender:i});if(!r||!document?.startViewTransition||document.visibilityState===`hidden`)return a();let o=typeof r==`boolean`?()=>null:r,s=e=>{e.catch(e=>{if(!(e instanceof DOMException))throw e})};return new Promise(e=>{let t=document.startViewTransition(()=>a().then(e));s(t.ready),s(t.finished),s(t.updateCallbackDone),o(t)})}resolve(e,t){return Promise.resolve(this.resolveComponent(e,t))}nextOptimisticId(){return++this.optimisticCounter}setBaseline(e,t){e in this.optimisticBaseline||(this.optimisticBaseline[e]=t)}updateBaseline(e,t){e in this.optimisticBaseline&&(this.optimisticBaseline[e]=t)}hasBaseline(e){return e in this.optimisticBaseline}registerOptimistic(e,t){this.pendingOptimistics.push({id:e,callback:t})}unregisterOptimistic(e){this.pendingOptimistics=this.pendingOptimistics.filter(t=>t.id!==e)}replayOptimistics(){let e=Object.keys(this.optimisticBaseline);if(e.length===0)return{};let t=O(this.page.props);for(let n of e)t[n]=O(this.optimisticBaseline[n]);for(let{callback:e}of this.pendingOptimistics){let n=e(O(t));n&&Object.assign(t,n)}let n={};for(let r of e)n[r]=t[r];return n}pendingOptimisticCount(){return this.pendingOptimistics.length}clearOptimisticState(){this.optimisticBaseline={},this.pendingOptimistics=[]}isTheSame(e){return this.page.component===e.component}on(e,t){return this.listeners.push({event:e,callback:t}),()=>{this.listeners=this.listeners.filter(n=>n.event!==e&&n.callback!==t)}}fireEventsFor(e){this.listeners.filter(t=>t.event===e).forEach(e=>e.callback())}mergeOncePropsIntoResponse(e,{force:t=!1}={}){Object.entries(e.onceProps??{}).forEach(([n,r])=>{let i=this.page.onceProps?.[n];i!==void 0&&(t||A(e.props,r.prop)===void 0)&&(j(e.props,r.prop,A(this.page.props,i.prop)),e.onceProps[n].expiresAt=i.expiresAt)})}},dr=class{items=[];processingPromise=null;add(e){return this.items.push(e),this.process()}process(){return this.processingPromise??=this.processNext().finally(()=>{this.processingPromise=null}),this.processingPromise}processNext(){let e=this.items.shift();return e?Promise.resolve(e()).then(()=>this.processNext()):Promise.resolve()}},fr=typeof window>`u`,pr=new dr,mr=!fr&&/CriOS/.test(window.navigator.userAgent),hr=class{rememberedState=`rememberedState`;scrollRegions=`scrollRegions`;preserveUrl=!1;current={};initialState=null;remember(e,t){this.replaceState({...B.getWithoutFlashData(),rememberedState:{...B.get()?.rememberedState??{},[t]:e}})}restore(e){if(!fr)return this.current[this.rememberedState]?.[e]===void 0?this.initialState?.[this.rememberedState]?.[e]:this.current[this.rememberedState]?.[e]}pushState(e,t=null){if(!fr){if(this.preserveUrl){t&&t();return}this.current=e,pr.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doPushState({page:n},e.url).then(()=>t?.());return mr?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}clonePageProps(e){try{return structuredClone(e.props),e}catch{return{...e,props:O(e.props)}}}getPageData(e){let t=this.clonePageProps(e);return new Promise(n=>e.encryptHistory?yn(t).then(n):n(t))}processQueue(){return pr.process()}decrypt(e=null){if(fr)return Promise.resolve(e??B.get());let t=e??window.history.state?.page;return this.decryptPageData(t).then(e=>{if(!e)throw Error(`Unable to decrypt history`);return this.initialState===null?this.initialState=e??void 0:this.current=e??{},e})}decryptPageData(e){return e instanceof ArrayBuffer?xn(e):Promise.resolve(e)}saveScrollPositions(e){pr.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!k(this.getScrollRegions(),e))return this.doReplaceState({page:window.history.state.page,scrollRegions:e})}))}saveDocumentScrollPosition(e){pr.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!k(this.getDocumentScrollPosition(),e))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:e})}))}getScrollRegions(){return window.history.state?.scrollRegions||[]}getDocumentScrollPosition(){return window.history.state?.documentScrollPosition||{top:0,left:0}}replaceState(e,t=null){if(k(this.current,e)){t&&t();return}let{flash:n,...r}=e;if(B.merge(r),!fr){if(this.preserveUrl){t&&t();return}this.current=e,pr.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doReplaceState({page:n},e.url).then(()=>t?.());return mr?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}isHistoryThrottleError(e){return e instanceof Error&&e.name===`SecurityError`&&(e.message.includes(`history.pushState`)||e.message.includes(`history.replaceState`))}isQuotaExceededError(e){return e instanceof Error&&e.name===`QuotaExceededError`}withThrottleProtection(e){return Promise.resolve().then(()=>{try{return e()}catch(e){if(!this.isHistoryThrottleError(e))throw e;console.error(e.message)}})}doReplaceState(e,t){return this.withThrottleProtection(()=>{window.history.replaceState({...e,scrollRegions:e.scrollRegions??window.history.state?.scrollRegions,documentScrollPosition:e.documentScrollPosition??window.history.state?.documentScrollPosition},``,t)})}doPushState(e,t){return this.withThrottleProtection(()=>{try{window.history.pushState(e,``,t)}catch(e){if(!this.isQuotaExceededError(e))throw e;H.fireInternalEvent(`historyQuotaExceeded`,t)}})}getState(e,t){return this.current?.[e]??t}deleteState(e){this.current[e]!==void 0&&(delete this.current[e],this.replaceState(this.current))}clearInitialState(e){this.initialState&&this.initialState[e]!==void 0&&delete this.initialState[e]}browserHasHistoryEntry(){return!fr&&!!window.history.state?.page}clear(){F.remove(bn.key),F.remove(bn.iv)}setCurrent(e){this.current=e}isValidState(e){return!!e.page}getAllState(){return this.current}};typeof window<`u`&&window.history.scrollRestoration&&(window.history.scrollRestoration=`manual`);var V=new hr,H=new class{internalListeners=[];init(){typeof window<`u`&&(window.addEventListener(`popstate`,this.handlePopstateEvent.bind(this)),window.addEventListener(`pageshow`,this.handlePageshowEvent.bind(this)),window.addEventListener(`scroll`,nn(L.onWindowScroll.bind(L),100),!0)),typeof document<`u`&&document.addEventListener(`scroll`,nn(L.onScroll.bind(L),100),!0)}onGlobalEvent(e,t){return this.registerListener(`inertia:${e}`,(e=>{let n=t(e);e.cancelable&&!e.defaultPrevented&&n===!1&&e.preventDefault()}))}on(e,t){return this.internalListeners.push({event:e,listener:t}),()=>{this.internalListeners=this.internalListeners.filter(e=>e.listener!==t)}}onMissingHistoryItem(){B.clear(),this.fireInternalEvent(`missingHistoryItem`)}fireInternalEvent(e,...t){this.internalListeners.filter(t=>t.event===e).forEach(e=>e.listener(...t))}registerListener(e,t){return document.addEventListener(e,t),()=>document.removeEventListener(e,t)}handlePageshowEvent(e){e.persisted&&V.decrypt().catch(()=>this.onMissingHistoryItem())}handlePopstateEvent(e){let t=e.state||null;if(t===null){let e=R(B.get().url);e.hash=window.location.hash,V.replaceState({...B.getWithoutFlashData(),url:e.href}),L.reset();return}if(!V.isValidState(t))return this.onMissingHistoryItem();V.decrypt(t.page).then(e=>{if(B.get().version!==e.version){this.onMissingHistoryItem();return}X.cancelAll({prefetch:!1}),B.setQuietly(e,{preserveState:!1}).then(()=>{L.restore(V.getScrollRegions()),un(B.get());let t={},n=B.get().props;for(let[r,i]of Object.entries(e.initialDeferredProps??e.deferredProps??{})){let e=i.filter(e=>A(n,e)===void 0);e.length>0&&(t[r]=e)}Object.keys(t).length>0&&this.fireInternalEvent(`loadDeferredProps`,t)})}).catch(()=>{this.onMissingHistoryItem()})}},gr=new class{type;constructor(){this.type=this.resolveType()}resolveType(){return typeof window>`u`?`navigate`:window.performance?.getEntriesByType(`navigation`)[0]?.type??`navigate`}get(){return this.type}isBackForward(){return this.type===`back_forward`}isReload(){return this.type===`reload`}};function _r(){let e=typeof window<`u`?window.crypto:void 0;if(e?.randomUUID)return e.randomUUID();let t=()=>e?.getRandomValues?e.getRandomValues(new Uint8Array(1))[0]:Math.floor(Math.random()*256);return`10000000-1000-4000-8000-100000000000`.replace(/[018]/g,e=>(+e^t()&15>>e/4).toString(16))}var vr=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(e=>e.bind(this)())}static clearRememberedStateOnReload(){gr.isReload()&&(V.deleteState(V.rememberedState),V.clearInitialState(V.rememberedState))}static handleBackForward(){if(!gr.isBackForward()||!V.browserHasHistoryEntry())return!1;let e=V.getScrollRegions();return V.decrypt().then(t=>{let n=_r();B.set(t,{preserveScroll:!0,preserveState:!0,visitId:n}).then(()=>{L.restore(e),un(B.get(),{visitId:n})})}).catch(()=>{H.onMissingHistoryItem()}),!0}static handleLocation(){if(!F.exists(F.locationVisitKey))return!1;let e=F.get(F.locationVisitKey)||{};return F.remove(F.locationVisitKey),typeof window<`u`&&B.setUrlHash(window.location.hash),V.decrypt(B.get()).then(()=>{let t=_r(),n=V.getState(V.rememberedState,{}),r=V.getScrollRegions();B.remember(n),B.set(B.get(),{preserveScroll:e.preserveScroll,preserveState:!0,initialRender:!0,visitId:t}).then(()=>{e.preserveScroll&&L.restore(r),this.fireInitialEvents(t)})}).catch(()=>{H.onMissingHistoryItem()}),!0}static handleDefault(){typeof window<`u`&&B.setUrlHash(window.location.hash);let e=_r();B.set(B.get(),{preserveScroll:!0,preserveState:!0,initialRender:!0,visitId:e}).then(()=>{gr.isReload()?L.restore(V.getScrollRegions()):L.scrollToAnchor(),this.fireInitialEvents(e)})}static fireInitialEvents(e){let t=B.get();un(t,{visitId:e}),Object.keys(t.flash).length>0&&queueMicrotask(()=>_n(t.flash))}},yr=class{intervalId=null;timeoutId=null;throttle=!1;keepAlive=!1;cb;interval;cbCount=0;mode;inFlight=!1;currentCancel=null;stopped=!0;instanceId=0;constructor(e,t,n){this.keepAlive=n.keepAlive??!1,this.mode=n.mode??`overlap`,this.cb=t,this.interval=e,(n.autoStart??!0)&&this.start()}stop(){this.stopped=!0,this.instanceId++,this.inFlight=!1,this.currentCancel=null,this.intervalId&&=(clearInterval(this.intervalId),null),this.timeoutId&&=(clearTimeout(this.timeoutId),null)}start(){if(typeof window<`u`){if(this.stop(),this.stopped=!1,this.mode===`rest`){this.scheduleNext();return}this.intervalId=window.setInterval(()=>this.tick(),this.interval)}}isInBackground(e){this.throttle=!this.keepAlive&&e,this.throttle&&(this.cbCount=0)}scheduleNext(){this.stopped||(this.timeoutId=window.setTimeout(()=>{this.timeoutId=null,this.tick()},this.interval))}tick(){!this.throttle||this.cbCount%10==0?this.fire():this.mode===`rest`&&this.scheduleNext(),this.throttle&&this.cbCount++}fire(){this.inFlight&&this.mode===`cancel`&&this.currentCancel?.();let e=this.instanceId;this.cb({onStart:t=>{e===this.instanceId&&(this.inFlight=!0,this.currentCancel=t)},onFinish:()=>{e===this.instanceId&&(this.inFlight=!1,this.currentCancel=null,this.mode===`rest`&&this.scheduleNext())}})}},br=new class{polls=[];constructor(){this.setupVisibilityListener()}get count(){return this.polls.length}add(e,t,n){let r=new yr(e,t,n);return this.polls.push(r),{stop:()=>r.stop(),start:()=>r.start(),destroy:()=>{r.stop(),this.polls=this.polls.filter(e=>e!==r)}}}clear(){this.polls.forEach(e=>e.stop()),this.polls=[]}setupVisibilityListener(){typeof document<`u`&&document.addEventListener(`visibilitychange`,()=>{this.polls.forEach(e=>e.isInBackground(document.hidden))},!1)}},U=new class{requestHandlers=[];responseHandlers=[];errorHandlers=[];onRequest(e){return this.requestHandlers.push(e),()=>{this.requestHandlers=this.requestHandlers.filter(t=>t!==e)}}onResponse(e){return this.responseHandlers.push(e),()=>{this.responseHandlers=this.responseHandlers.filter(t=>t!==e)}}onError(e){return this.errorHandlers.push(e),()=>{this.errorHandlers=this.errorHandlers.filter(t=>t!==e)}}async processRequest(e){let t=e;for(let e of this.requestHandlers)t=await e(t);return t}async processResponse(e){let t=e;for(let e of this.responseHandlers)t=await e(t);return t}async processError(e){for(let t of this.errorHandlers)await t(e)}},xr=class extends Error{code;url;constructor(e,t,n){super(n?`${e} (${n})`:e),this.name=`HttpError`,this.code=t,this.url=n}},Sr=class extends xr{response;constructor(e,t,n){super(e,`ERR_HTTP_RESPONSE`,n),this.name=`HttpResponseError`,this.response=t}},Cr=class extends xr{constructor(e=`Request was cancelled`,t){super(e,`ERR_CANCELLED`,t),this.name=`HttpCancelledError`}},wr=class extends xr{cause;constructor(e,t,n){super(e,`ERR_NETWORK`,t),this.name=`HttpNetworkError`,this.cause=n}};function Tr(e){let t=document.cookie.match(RegExp(`(^|;\\s*)(`+e+`)=([^;]*)`));return t?decodeURIComponent(t[3]):null}function Er(e){let t={};return e.getAllResponseHeaders().split(`\r `).forEach(e=>{let n=e.indexOf(`:`);n>0&&(t[e.slice(0,n).toLowerCase().trim()]=e.slice(n+1).trim())}),t}function Dr(e){return typeof FormData<`u`&&e instanceof FormData}function Or(e){return typeof e==`string`||Dr(e)||typeof Blob<`u`&&e instanceof Blob||typeof ArrayBuffer<`u`&&e instanceof ArrayBuffer||typeof ArrayBuffer<`u`&&ArrayBuffer.isView(e)||typeof URLSearchParams<`u`&&e instanceof URLSearchParams}function kr(e,t){if(!t.headers)return;let n=Dr(t.data);Object.entries(t.headers).forEach(([t,r])=>{(t.toLowerCase()!==`content-type`||!n)&&e.setRequestHeader(t,String(r))})}function Ar(e,t){if(!t||Object.keys(t).length===0)return e;let[n]=rr(`get`,e,t);return n}var jr=class{xsrfCookieName;xsrfHeaderName;constructor(e={}){this.xsrfCookieName=e.xsrfCookieName??`XSRF-TOKEN`,this.xsrfHeaderName=e.xsrfHeaderName??`X-XSRF-TOKEN`}async request(e){let t=await U.processRequest(e);try{let e=await this.doRequest(t);return await U.processResponse(e)}catch(e){throw(e instanceof Sr||e instanceof wr||e instanceof Cr)&&await U.processError(e),e}}doRequest(e){return new Promise((t,n)=>{let r=new XMLHttpRequest,i=Ar(e.url,e.params);r.open(e.method.toUpperCase(),i,!0);let a=Tr(this.xsrfCookieName);a&&r.setRequestHeader(this.xsrfHeaderName,a),Object.keys(e.headers??{}).some(e=>e.toLowerCase()===`x-requested-with`)||r.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`);let o=null;e.data!==null&&e.data!==void 0&&(Or(e.data)?o=e.data:typeof e.data==`object`?(o=JSON.stringify(e.data),!e.headers?.[`Content-Type`]&&!e.headers?.[`content-type`]&&r.setRequestHeader(`Content-Type`,`application/json`)):o=String(e.data)),kr(r,e),e.onUploadProgress&&(r.upload.onprogress=t=>{let n=t.lengthComputable?t.loaded/t.total:void 0;e.onUploadProgress({progress:n,percentage:n?Math.round(n*100):0,loaded:t.loaded,total:t.lengthComputable?t.total:void 0})}),e.signal&&e.signal.addEventListener(`abort`,()=>r.abort()),r.onabort=()=>n(new Cr(`Request was cancelled`,e.url)),r.onerror=()=>n(new wr(`Network error`,e.url)),r.onload=()=>{let i={status:r.status,data:r.responseText,headers:Er(r)};r.status>=400?n(new Sr(`Request failed with status ${r.status}`,i,e.url)):t(i)},r.send(o)})}},Mr=new jr;function Nr(e){return!(`request`in e)}var Pr={getClient(){return Mr},setClient(e){if(!Nr(e)){Mr=e;return}Mr=new jr(e),e.xsrfCookieName&&M.withXsrfCookieName(e.xsrfCookieName),e.xsrfHeaderName&&M.withXsrfHeaderName(e.xsrfHeaderName)},onRequest:U.onRequest.bind(U),onResponse:U.onResponse.bind(U),onError:U.onError.bind(U),processRequest:U.processRequest.bind(U),processResponse:U.processResponse.bind(U),processError:U.processError.bind(U)},Fr=new class{requestHandlers=[];responseHandlers=[];onVisitRequest(e){return this.requestHandlers.push(e),()=>{this.requestHandlers=this.requestHandlers.filter(t=>t!==e)}}onVisitResponse(e){return this.responseHandlers.push(e),()=>{this.responseHandlers=this.responseHandlers.filter(t=>t!==e)}}async processRequest(e,t){let n=t;for(let t of this.requestHandlers)n=await t(e,n);return n}async processResponse(e,t){let n=t;for(let t of this.responseHandlers)n=await t(e,n);return n}};function Ir(){typeof window<`u`&&(window.__inertia_interceptors__=Fr)}var Lr=class e{callbacks=[];params;constructor(e){if(!e.prefetch)this.params=e;else{let t={onBefore:this.wrapCallback(e,`onBefore`),onBeforeUpdate:this.wrapCallback(e,`onBeforeUpdate`),onStart:this.wrapCallback(e,`onStart`),onProgress:this.wrapCallback(e,`onProgress`),onFinish:this.wrapCallback(e,`onFinish`),onCancel:this.wrapCallback(e,`onCancel`),onSuccess:this.wrapCallback(e,`onSuccess`),onError:this.wrapCallback(e,`onError`),onHttpException:this.wrapCallback(e,`onHttpException`),onNetworkError:this.wrapCallback(e,`onNetworkError`),onFlash:this.wrapCallback(e,`onFlash`),onCancelToken:this.wrapCallback(e,`onCancelToken`),onPrefetched:this.wrapCallback(e,`onPrefetched`),onPrefetching:this.wrapCallback(e,`onPrefetching`)};this.params={...e,...t,onPrefetchResponse:e.onPrefetchResponse||(()=>{}),onPrefetchError:e.onPrefetchError||(()=>{})}}}static create(t){return new e(t)}data(){return this.params.method===`get`?null:this.params.data}queryParams(){return this.params.method===`get`?this.params.data:{}}isPartial(){return this.params.only.length>0||this.params.except.length>0||this.params.reset.length>0}isPrefetch(){return this.params.prefetch===!0}isDeferredPropsRequest(){return this.params.deferredProps===!0}isPollRequest(){return this.params.poll===!0}onCancelToken(e){this.params.onCancelToken({cancel:e})}markAsFinished(){this.params.completed=!0,this.params.cancelled=!1,this.params.interrupted=!1}markAsCancelled({cancelled:e=!0,interrupted:t=!1}){this.params.onCancel(),this.params.completed=!1,this.params.cancelled=e,this.params.interrupted=t}wasCancelledAtAll(){return this.params.cancelled||this.params.interrupted}onFinish(){this.params.onFinish(this.params)}onStart(){this.params.onStart(this.params)}onPrefetching(){this.params.onPrefetching(this.params)}onPrefetchResponse(e){this.params.onPrefetchResponse&&this.params.onPrefetchResponse(e)}onPrefetchError(e){this.params.onPrefetchError&&this.params.onPrefetchError(e)}all(){return this.params}headers(){let e={...this.params.headers};this.isPartial()&&(e[`X-Inertia-Partial-Component`]=B.get().component);let t=this.params.only.concat(this.params.reset);return t.length>0&&(e[`X-Inertia-Partial-Data`]=t.join(`,`)),this.params.except.length>0&&(e[`X-Inertia-Partial-Except`]=this.params.except.join(`,`)),this.params.reset.length>0&&(e[`X-Inertia-Reset`]=this.params.reset.join(`,`)),this.params.errorBag&&this.params.errorBag.length>0&&(e[`X-Inertia-Error-Bag`]=this.params.errorBag),e}setPreserveOptions(t){this.params.preserveScroll=e.resolvePreserveOption(this.params.preserveScroll,t),this.params.preserveState=e.resolvePreserveOption(this.params.preserveState,t)}runCallbacks(){this.callbacks.forEach(({name:e,args:t})=>{this.params[e](...t)})}merge(e){this.params={...this.params,...e}}wrapCallback(e,t){return(...n)=>{this.recordCallback(t,n),e[t](...n)}}recordCallback(e,t){this.callbacks.push({name:e,args:t})}static resolvePreserveOption(e,t){return typeof e==`function`?e(t):e===`errors`?Object.keys(t.props.errors||{}).length>0:e}},Rr={createIframeAndPage(e){typeof e==`object`&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
${JSON.stringify(e)}`);let t=document.createElement(`html`);t.innerHTML=e,t.querySelectorAll(`a`).forEach(e=>e.setAttribute(`target`,`_top`));let n=document.createElement(`iframe`);return n.style.backgroundColor=`white`,n.style.borderRadius=`5px`,n.style.width=`100%`,n.style.height=`100%`,n.setAttribute(`sandbox`,`allow-scripts`),{iframe:n,page:t}},show(e){let{iframe:t,page:n}=this.createIframeAndPage(e);t.style.boxSizing=`border-box`,t.style.display=`block`;let r=document.createElement(`dialog`);r.id=`inertia-error-dialog`,Object.assign(r.style,{width:`calc(100vw - 100px)`,height:`calc(100vh - 100px)`,padding:`0`,margin:`auto`,border:`none`,backgroundColor:`transparent`});let i=document.createElement(`style`);i.textContent=` dialog#inertia-error-dialog::backdrop { @@ -87,4 +87,4 @@ import{B as e,Ht as t,ct as n,fn as r,ft as i,g as a,gn as o,gt as s,it as c,k a 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } - `,document.head.appendChild(t)},J={configure:Fi,isStarted:Li,done:zi,set:Ii,remove:Ui,start:Ri,status:Ni,show:()=>{if(Pi=!1,K?.isConnected){if(Mi)try{K.showPopover()}catch{}else K.style.display=``}},hide:()=>{if(Pi=!0,K?.isConnected){if(Mi)try{K.hidePopover()}catch{}else K.style.display=`none`}}},Y=new class{hideCount=0;start(){J.start()}reveal(e=!1){this.hideCount=Math.max(0,this.hideCount-1),(e||this.hideCount===0)&&J.show()}hide(){this.hideCount++,J.hide()}set(e){J.set(Math.max(0,Math.min(1,e)))}finish(){J.done()}reset(){J.set(0)}remove(){J.done(),J.remove()}isStarted(){return J.isStarted()}getStatus(){return J.status}};function Yi(e){document.addEventListener(`inertia:start`,t=>Xi(t,e)),document.addEventListener(`inertia:progress`,Zi)}function Xi(e,t){e.detail.visit.showProgress||Y.hide();let n=setTimeout(()=>Y.start(),t);document.addEventListener(`inertia:finish`,e=>Qi(e,n),{once:!0})}function Zi(e){Y.isStarted()&&e.detail.progress?.percentage&&Y.set(Math.max(Y.getStatus(),e.detail.progress.percentage/100*.9))}function Qi(e,t){clearTimeout(t),Y.isStarted()&&(e.detail.visit.completed?Y.finish():e.detail.visit.interrupted?Y.reset():e.detail.visit.cancelled&&Y.remove())}function $i({delay:e=250,color:t=`#29d`,includeCSS:n=!0,showSpinner:r=!1,popover:i=null}={}){Yi(e),J.configure({showSpinner:r,includeCSS:n,color:t,popover:i})}var ea=Symbol(`FormComponentReset`);function ta(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement}function na(e,t){let n=e.value,r=e.checked;switch(e.type.toLowerCase()){case`checkbox`:e.checked=t.includes(e.value);break;case`radio`:e.checked=t[0]===e.value;break;case`file`:e.value=``;break;case`button`:case`submit`:case`reset`:case`image`:break;default:e.value=t[0]!==null&&t[0]!==void 0?String(t[0]):``}return e.value!==n||e.checked!==r}function ra(e,t){let n=e.value,r=Array.from(e.selectedOptions).map(e=>e.value);if(e.multiple){let n=t.map(e=>String(e));Array.from(e.options).forEach(e=>{e.selected=n.includes(e.value)})}else e.value=t[0]===void 0?``:String(t[0]);let i=Array.from(e.selectedOptions).map(e=>e.value);return e.multiple?JSON.stringify(r.sort())!==JSON.stringify(i.sort()):e.value!==n}function ia(e,t){if(e.disabled){if(e instanceof HTMLInputElement){let t=e.value,n=e.checked;switch(e.type.toLowerCase()){case`checkbox`:case`radio`:return e.checked=e.defaultChecked,e.checked!==n;case`file`:return e.value=``,t!==``;case`button`:case`submit`:case`reset`:case`image`:return!1;default:return e.value=e.defaultValue,e.value!==t}}else if(e instanceof HTMLSelectElement){let t=Array.from(e.selectedOptions).map(e=>e.value);Array.from(e.options).forEach(e=>{e.selected=e.defaultSelected});let n=Array.from(e.selectedOptions).map(e=>e.value);return JSON.stringify(t.sort())!==JSON.stringify(n.sort())}else if(e instanceof HTMLTextAreaElement){let t=e.value;return e.value=e.defaultValue,e.value!==t}return!1}if(e instanceof HTMLInputElement)return na(e,t);if(e instanceof HTMLSelectElement)return ra(e,t);if(e instanceof HTMLTextAreaElement){let n=e.value;return e.value=t[0]===void 0?``:String(t[0]),e.value!==n}return!1}function aa(e,t){let n=!1;return e instanceof RadioNodeList||e instanceof HTMLCollection?Array.from(e).forEach((e,r)=>{e instanceof Element&&ta(e)&&(e instanceof HTMLInputElement&&[`checkbox`,`radio`].includes(e.type.toLowerCase())?ia(e,t)&&(n=!0):ia(e,t[r]===void 0?[t[0]??null].filter(Boolean):[t[r]])&&(n=!0))}):ta(e)&&(n=ia(e,t)),n}function oa(e,t,n){if(!e)return;let r=!n||n.length===0;if(r){let r=new FormData(e),i=Array.from(e.elements).map(e=>ta(e)?e.name:``).filter(Boolean);n=[...new Set([...t.keys(),...r.keys(),...i])]}let i=!1;n.forEach(n=>{let r=e.elements.namedItem(n);r&&aa(r,t.getAll(n))&&(i=!0)}),i&&r&&e.dispatchEvent(new CustomEvent(`reset`,{bubbles:!0,cancelable:!0,detail:{[ea]:!0}}))}function sa(e,t,n){return`

']); + } + + /** Ein echtes PDF mit Textebene. */ + private function pdf(string $name, array $lines): UploadedFile + { + $content = 'BT /F1 12 Tf 50 750 Td 14 TL '.implode(' ', array_map(fn ($l) => '('.$l.') \'', $lines)).' ET'; + $objects = [ + '<< /Type /Catalog /Pages 2 0 R >>', + '<< /Type /Pages /Kids [3 0 R] /Count 1 >>', + '<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Contents 4 0 R /Resources << /Font << /F1 5 0 R >> >> >>', + '<< /Length '.strlen($content)." >>\nstream\n{$content}\nendstream", + '<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>', + ]; + $pdf = "%PDF-1.4\n"; + $offsets = []; + foreach ($objects as $i => $object) { + $offsets[] = strlen($pdf); + $pdf .= ($i + 1)." 0 obj\n{$object}\nendobj\n"; + } + $xref = strlen($pdf); + $pdf .= 'xref\n0 '.(count($objects) + 1)."\n0000000000 65535 f \n".implode('', array_map(fn ($o) => sprintf("%010d 00000 n \n", $o), $offsets)); + $pdf = str_replace('xref\n', "xref\n", $pdf); + $pdf .= 'trailer << /Size '.(count($objects) + 1)." /Root 1 0 R >>\nstartxref\n{$xref}\n%%EOF"; + + return UploadedFile::fake()->createWithContent($name, $pdf); + } + + private function docx(string $name, string $text): UploadedFile + { + $path = tempnam(sys_get_temp_dir(), 'docx'); + $zip = new ZipArchive; + $zip->open($path, ZipArchive::OVERWRITE); + $zip->addFromString('[Content_Types].xml', ''); + $zip->addFromString('word/document.xml', ''.htmlspecialchars($text).''); + $zip->close(); + + return UploadedFile::fake()->createWithContent($name, (string) file_get_contents($path)); + } + + private function addFile(QmFolder $folder, string $title, UploadedFile $reading, array $extra = []): QmEntry + { + $this->actingAs($this->qmb)->post("/qm/ordner/{$folder->id}/eintraege", ['type' => 'file', 'title' => $title, 'version' => '1.0', 'valid_from' => '2026-03-01', 'reading' => $reading, ...$extra]) + ->assertSessionHasNoErrors(); + + return QmEntry::query()->where('title', $title)->sole(); + } + + public function test_start_page_shows_categories_with_colored_tiles_and_inherited_colors(): void + { + $sub = QmFolder::query()->create(['name' => 'Urlaub', 'parent_id' => $this->personal->id]); + QmFolder::query()->create(['name' => 'Arbeitsschutz', 'category_id' => QmCategory::query()->create(['name' => 'Sicherheit', 'sort' => 2])->id, 'color' => 'red']); + + $this->actingAs(User::factory()->create())->get('/qm')->assertOk()->assertInertia(fn (Assert $p) => $p + ->component('qm::Index') + ->where('categories.0.name', 'Allgemein') + ->where('categories.0.folders.0.name', 'Personal') + ->where('categories.0.folders.0.color', 'teal') + ->where('categories.0.folders.0.icon', ['name' => 'users']) + ->where('categories.0.folders.0.folders', 1) + ->where('categories.1.folders.0.color', 'red') + ->where('adminUrl', null)); + + $node = app(QmTree::class)->folder($sub->id); + $this->assertSame('teal', $node['color'], 'Farbe wird vererbt'); + $this->assertSame(['name' => 'users'], $node['icon'], 'Symbol wird vererbt'); + } + + public function test_folder_page_with_intro_contacts_subfolders_and_entries(): void + { + $anna = User::factory()->create(['first_name' => 'Anna', 'last_name' => 'Schmidt', 'phone' => '+49 40 123', 'job_title' => 'Personalleitung', 'location' => 'Hamburg']); + $gone = User::factory()->inactive()->create(); + $this->personal->contacts()->attach([$anna->id => ['sort' => 1], $gone->id => ['sort' => 2]]); + app(Settings::class)->set(Presenter::CONTACT_FIELDS, ['phone', 'location']); + QmFolder::query()->create(['name' => 'Urlaub', 'parent_id' => $this->personal->id, 'icon' => 'plane']); + $this->addFile($this->personal, 'Dienstplanregelung', $this->pdf('dienstplan.pdf', ['Dienstplan'])); + + $this->actingAs(User::factory()->create())->get("/qm/ordner/{$this->personal->id}")->assertOk()->assertInertia(fn (Assert $p) => $p + ->component('qm::Folder') + ->where('folder.intro', fn ($html) => str_contains($html, 'Personal') && ! str_contains($html, 'has('folder.contacts', 1) + ->where('folder.contacts.0.fields', [ + ['key' => 'phone', 'label' => 'Telefon', 'value' => '+49 40 123', 'type' => 'phone'], + ['key' => 'location', 'label' => 'Standort', 'value' => 'Hamburg', 'type' => 'text'], + ]) + ->where('children.0.icon', ['name' => 'plane']) + ->where('children.0.color', 'teal') + ->where('entries.0.title', 'Dienstplanregelung') + ->where('entries.0.version', '1.0') + ->where('entries.0.valid_from', '2026-03-01') + ->where('entries.0.open_kind', 'view') + ->where('canManage', false)); + } + + public function test_pdfs_open_in_the_portal_and_other_files_download(): void + { + $pdf = $this->addFile($this->personal, 'Leitbild', $this->pdf('leitbild.pdf', ['Unser Leitbild'])); + $xlsx = $this->addFile($this->personal, 'Kostenstellen', UploadedFile::fake()->create('kosten.xlsx', 10)); + $user = User::factory()->create(); + + $this->actingAs($user)->get("/qm/lesen/{$pdf->id}")->assertOk()->assertInertia(fn (Assert $p) => $p->component('qm::Viewer')->where('file.kind', 'pdf')); + $inline = $this->get($pdf->readingFile->url(inline: true))->assertOk(); + $this->assertStringStartsWith('inline', (string) $inline->headers->get('Content-Disposition')); + $this->get("/qm/lesen/{$xlsx->id}")->assertRedirect($xlsx->readingFile->url()); + } + + public function test_links_and_online_forms_as_entries(): void + { + $this->actingAs($this->qmb)->post("/qm/ordner/{$this->personal->id}/eintraege", ['type' => 'link', 'title' => 'Urlaubsantrag', 'url' => 'https://hr.example.org/urlaub'])->assertSessionHasNoErrors(); + $this->post("/qm/ordner/{$this->personal->id}/eintraege", ['type' => 'link', 'title' => 'Böse', 'url' => 'javascript:alert(1)'])->assertSessionHasErrors('url'); + + $entry = QmEntry::query()->where('title', 'Urlaubsantrag')->sole(); + $this->assertSame(now()->toDateString(), $entry->valid_from->toDateString(), 'Stand ohne Angabe = heute'); + $this->get("/qm/ordner/{$this->personal->id}")->assertInertia(fn (Assert $p) => $p->where('entries.0.open_kind', 'link')->where('entries.0.open_url', 'https://hr.example.org/urlaub')); + } + + public function test_new_versions_archive_the_old_file(): void + { + $entry = $this->addFile($this->personal, 'Hygieneplan', $this->pdf('hygiene-v1.pdf', ['Alte Fassung']), ['editable' => $this->docx('hygiene.docx', 'Vorlage')]); + $old = $entry->readingFile; + + $this->post("/qm/eintraege/{$entry->id}", ['title' => 'Hygieneplan', 'version' => '2.0', 'valid_from' => '2026-06-01', 'reading' => $this->pdf('hygiene-v2.pdf', ['Neue Fassung'])]) + ->assertSessionHasNoErrors(); + + $entry->refresh(); + $this->assertSame('2.0', $entry->version); + $this->assertSame('hygiene-v2.pdf', $entry->readingFile->name); + $this->assertNotNull($old->fresh()->archived_at); + $this->assertSame('hygiene.docx', $entry->editableFile->name, 'Vorlage bleibt, wenn keine neue kommt'); + $this->assertCount(3, $this->getJson("/qm/eintraege/{$entry->id}/archiv")->json('files')); + + // Tippfehler korrigieren ändert nur die Angaben. + $this->post("/qm/eintraege/{$entry->id}", ['title' => 'Hygieneplan', 'version' => '2.1', 'valid_from' => '2026-06-01'])->assertSessionHasNoErrors(); + $this->assertSame('2.1', $entry->readingFile()->first()->version); + + // Archiv nur für das QM-Team + $this->actingAs(User::factory()->create())->get($old->url())->assertNotFound(); + $this->getJson("/qm/eintraege/{$entry->id}/archiv")->assertForbidden(); + $this->actingAs($this->qmb)->get($old->url())->assertOk(); + } + + public function test_only_the_qm_team_maintains_entries(): void + { + $this->actingAs(User::factory()->create()) + ->post("/qm/ordner/{$this->personal->id}/eintraege", ['type' => 'link', 'title' => 'X', 'url' => 'https://x.de'])->assertForbidden(); + + $this->actingAs(User::factory()->admin()->create()) + ->post("/qm/ordner/{$this->personal->id}/eintraege", ['type' => 'link', 'title' => 'X', 'url' => 'https://x.de'])->assertSessionHasNoErrors(); + } + + public function test_search_finds_text_inside_pdf_and_word_files(): void + { + $this->addFile($this->personal, 'Verfahrensanweisung Einarbeitung', $this->pdf('va.pdf', ['Neue Mitarbeitende erhalten einen Paten', 'fuer die ersten drei Monate'])); + $this->addFile($this->personal, 'Checkliste', $this->docx('check.docx', 'Schluesselausgabe am ersten Arbeitstag')); + + $user = User::factory()->create(); + $this->actingAs($user)->get('/qm/suche?q=paten')->assertInertia(fn (Assert $p) => $p + ->component('qm::Search') + ->has('results', 1) + ->where('results.0.title', 'Verfahrensanweisung Einarbeitung') + ->where('results.0.in_content', true) + ->where('results.0.snippet', fn ($s) => str_contains($s, 'Paten')) + ->where('results.0.folder.path', 'Personal')); + + $this->get('/qm/suche?q=schluesselausgabe')->assertInertia(fn (Assert $p) => $p->where('results.0.title', 'Checkliste')); + $this->get('/qm/suche?q=checkliste')->assertInertia(fn (Assert $p) => $p->where('results.0.in_content', false)); + } + + public function test_excluded_roles_do_not_see_the_module(): void + { + $clients = Role::query()->create(['name' => 'Klient*innen']); + app(Settings::class)->set(QmAccess::EXCLUDED_ROLES, [$clients->id]); + $entry = $this->addFile($this->personal, 'Leitbild', $this->pdf('leitbild.pdf', ['Leitbild'])); + $client = User::factory()->withRoles([$clients])->create(); + + $this->actingAs($client)->get('/qm')->assertNotFound(); + $this->get("/qm/ordner/{$this->personal->id}")->assertNotFound(); + $this->get('/qm/suche?q=leitbild')->assertNotFound(); + $this->get($entry->readingFile->url())->assertNotFound(); + $this->get('/')->assertInertia(fn (Assert $p) => $p->where('navigation', fn ($nav) => ! collect($nav)->contains('key', 'qm'))); + + $this->actingAs(User::factory()->create())->get('/')->assertInertia(fn (Assert $p) => $p->where('navigation', fn ($nav) => collect($nav)->contains('key', 'qm'))); + $this->qmb->roles()->attach($clients->id); + $this->assertTrue(app(QmAccess::class)->allows($this->qmb->fresh()), 'Wer pflegt, sieht es immer'); + } + + public function test_categories_can_be_limited_to_audiences(): void + { + $secret = QmCategory::query()->create(['name' => 'Leitung']); + $folder = QmFolder::query()->create(['name' => 'Protokolle', 'category_id' => $secret->id]); + $this->addFile($folder, 'Protokoll', $this->pdf('p.pdf', ['Vertraulich'])); + Audiences::sync('qm_category', $secret->id, ['department' => ['Leitung']]); + QmTree::flush(); + + $this->actingAs(User::factory()->create(['department' => 'Pflege']))->get("/qm/ordner/{$folder->id}")->assertNotFound(); + $this->get('/qm/suche?q=vertraulich')->assertInertia(fn (Assert $p) => $p->where('results', [])); + $this->actingAs(User::factory()->create(['department' => 'Leitung']))->get("/qm/ordner/{$folder->id}")->assertOk(); + } + + public function test_scanned_pdfs_are_queued_for_ocr_and_recognized_when_available(): void + { + $entry = $this->addFile($this->personal, 'Scan', $this->pdf('scan.pdf', [])); + $this->assertSame('needs_ocr', $entry->readingFile->text_status); + + $this->app->instance(Ocr::class, new class(app(Settings::class)) extends Ocr + { + public function enabled(): bool + { + return true; + } + + public function available(): bool + { + return true; + } + + public function recognize(string $pdf): string + { + return 'Erkannter Text aus dem Scan'; + } + }); + $this->app->forgetInstance(Indexer::class); + + $this->assertSame(1, app(Indexer::class)->processOcr()); + $this->assertSame('ocr', $entry->readingFile()->first()->text_status); + $this->actingAs(User::factory()->create())->get('/qm/suche?q=erkannter')->assertInertia(fn (Assert $p) => $p->where('results.0.title', 'Scan')); + } + + public function test_admin_pages_for_the_qm_team(): void + { + $this->actingAs($this->qmb); + foreach (['/admin/qm-ordner', '/admin/qm-ordner/neu', "/admin/qm-ordner/{$this->personal->id}/edit", '/admin/qm-kategorien', '/admin/qm-einstellungen'] as $url) { + $this->get($url)->assertOk(); + } + + $this->actingAs(User::factory()->create())->get('/admin/qm-ordner')->assertForbidden(); + } + + public function test_deleting_an_entry_removes_its_files(): void + { + $entry = $this->addFile($this->personal, 'Weg', $this->pdf('weg.pdf', ['weg'])); + $path = $entry->readingFile->path; + + $this->delete("/qm/eintraege/{$entry->id}")->assertSessionHasNoErrors(); + Storage::disk(QmFile::DISK)->assertMissing($path); + $this->assertSame(0, QmFile::query()->count()); + } +} diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index e10ab87a..d141076e 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -5987,6 +5987,52 @@ return array( 'SQLite3Exception' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php', 'SensitiveParameter' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameter.php', 'SensitiveParameterValue' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameterValue.php', + 'Smalot\\PdfParser\\Config' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Config.php', + 'Smalot\\PdfParser\\Document' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Document.php', + 'Smalot\\PdfParser\\Element' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element.php', + 'Smalot\\PdfParser\\Element\\ElementArray' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementArray.php', + 'Smalot\\PdfParser\\Element\\ElementBoolean' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementBoolean.php', + 'Smalot\\PdfParser\\Element\\ElementDate' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementDate.php', + 'Smalot\\PdfParser\\Element\\ElementHexa' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementHexa.php', + 'Smalot\\PdfParser\\Element\\ElementMissing' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementMissing.php', + 'Smalot\\PdfParser\\Element\\ElementName' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementName.php', + 'Smalot\\PdfParser\\Element\\ElementNull' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNull.php', + 'Smalot\\PdfParser\\Element\\ElementNumeric' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNumeric.php', + 'Smalot\\PdfParser\\Element\\ElementString' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementString.php', + 'Smalot\\PdfParser\\Element\\ElementStruct' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementStruct.php', + 'Smalot\\PdfParser\\Element\\ElementXRef' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementXRef.php', + 'Smalot\\PdfParser\\Encoding' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding.php', + 'Smalot\\PdfParser\\Encoding\\AbstractEncoding' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/AbstractEncoding.php', + 'Smalot\\PdfParser\\Encoding\\EncodingLocator' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/EncodingLocator.php', + 'Smalot\\PdfParser\\Encoding\\ISOLatin1Encoding' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin1Encoding.php', + 'Smalot\\PdfParser\\Encoding\\ISOLatin9Encoding' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php', + 'Smalot\\PdfParser\\Encoding\\MacRomanEncoding' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/MacRomanEncoding.php', + 'Smalot\\PdfParser\\Encoding\\PDFDocEncoding' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PDFDocEncoding.php', + 'Smalot\\PdfParser\\Encoding\\PostScriptGlyphs' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PostScriptGlyphs.php', + 'Smalot\\PdfParser\\Encoding\\StandardEncoding' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/StandardEncoding.php', + 'Smalot\\PdfParser\\Encoding\\WinAnsiEncoding' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php', + 'Smalot\\PdfParser\\Exception\\EmptyPdfException' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php', + 'Smalot\\PdfParser\\Exception\\EncodingNotFoundException' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/EncodingNotFoundException.php', + 'Smalot\\PdfParser\\Exception\\InvalidDictionaryObjectException' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/InvalidDictionaryObjectException.php', + 'Smalot\\PdfParser\\Exception\\MissingCatalogException' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingCatalogException.php', + 'Smalot\\PdfParser\\Exception\\MissingPdfHeaderException' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingPdfHeaderException.php', + 'Smalot\\PdfParser\\Exception\\NotImplementedException' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/NotImplementedException.php', + 'Smalot\\PdfParser\\Font' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font.php', + 'Smalot\\PdfParser\\Font\\FontCIDFontType0' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType0.php', + 'Smalot\\PdfParser\\Font\\FontCIDFontType2' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType2.php', + 'Smalot\\PdfParser\\Font\\FontTrueType' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontTrueType.php', + 'Smalot\\PdfParser\\Font\\FontType0' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType0.php', + 'Smalot\\PdfParser\\Font\\FontType1' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType1.php', + 'Smalot\\PdfParser\\Font\\FontType3' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType3.php', + 'Smalot\\PdfParser\\Header' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Header.php', + 'Smalot\\PdfParser\\PDFObject' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php', + 'Smalot\\PdfParser\\Page' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Page.php', + 'Smalot\\PdfParser\\Pages' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Pages.php', + 'Smalot\\PdfParser\\Parser' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Parser.php', + 'Smalot\\PdfParser\\RawData\\FilterHelper' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php', + 'Smalot\\PdfParser\\RawData\\RawDataParser' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php', + 'Smalot\\PdfParser\\XObject\\Form' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/XObject/Form.php', + 'Smalot\\PdfParser\\XObject\\Image' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/XObject/Image.php', 'SortDirection' => $vendorDir . '/symfony/polyfill-php86/Resources/stubs/SortDirection.php', 'Spatie\\Invade\\Invader' => $vendorDir . '/spatie/invade/src/Invader.php', 'Spatie\\Invade\\StaticInvader' => $vendorDir . '/spatie/invade/src/StaticInvader.php', diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php index f0f39580..66ec9bb4 100644 --- a/vendor/composer/autoload_namespaces.php +++ b/vendor/composer/autoload_namespaces.php @@ -6,6 +6,7 @@ $vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( + 'Smalot\\PdfParser\\' => array($vendorDir . '/smalot/pdfparser/src'), 'Highlight\\' => array($vendorDir . '/scrivo/highlight.php'), 'HighlightUtilities\\' => array($vendorDir . '/scrivo/highlight.php'), ); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index c8e78065..a5dfe8d3 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -782,6 +782,13 @@ class ComposerStaticInit7be5f0fc2523def46ad071c4f7cbcb0e ); public static $prefixesPsr0 = array ( + 'S' => + array ( + 'Smalot\\PdfParser\\' => + array ( + 0 => __DIR__ . '/..' . '/smalot/pdfparser/src', + ), + ), 'H' => array ( 'Highlight\\' => @@ -6777,6 +6784,52 @@ class ComposerStaticInit7be5f0fc2523def46ad071c4f7cbcb0e 'SQLite3Exception' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php', 'SensitiveParameter' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameter.php', 'SensitiveParameterValue' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameterValue.php', + 'Smalot\\PdfParser\\Config' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Config.php', + 'Smalot\\PdfParser\\Document' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Document.php', + 'Smalot\\PdfParser\\Element' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element.php', + 'Smalot\\PdfParser\\Element\\ElementArray' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementArray.php', + 'Smalot\\PdfParser\\Element\\ElementBoolean' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementBoolean.php', + 'Smalot\\PdfParser\\Element\\ElementDate' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementDate.php', + 'Smalot\\PdfParser\\Element\\ElementHexa' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementHexa.php', + 'Smalot\\PdfParser\\Element\\ElementMissing' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementMissing.php', + 'Smalot\\PdfParser\\Element\\ElementName' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementName.php', + 'Smalot\\PdfParser\\Element\\ElementNull' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNull.php', + 'Smalot\\PdfParser\\Element\\ElementNumeric' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNumeric.php', + 'Smalot\\PdfParser\\Element\\ElementString' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementString.php', + 'Smalot\\PdfParser\\Element\\ElementStruct' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementStruct.php', + 'Smalot\\PdfParser\\Element\\ElementXRef' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementXRef.php', + 'Smalot\\PdfParser\\Encoding' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding.php', + 'Smalot\\PdfParser\\Encoding\\AbstractEncoding' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/AbstractEncoding.php', + 'Smalot\\PdfParser\\Encoding\\EncodingLocator' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/EncodingLocator.php', + 'Smalot\\PdfParser\\Encoding\\ISOLatin1Encoding' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin1Encoding.php', + 'Smalot\\PdfParser\\Encoding\\ISOLatin9Encoding' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php', + 'Smalot\\PdfParser\\Encoding\\MacRomanEncoding' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/MacRomanEncoding.php', + 'Smalot\\PdfParser\\Encoding\\PDFDocEncoding' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PDFDocEncoding.php', + 'Smalot\\PdfParser\\Encoding\\PostScriptGlyphs' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PostScriptGlyphs.php', + 'Smalot\\PdfParser\\Encoding\\StandardEncoding' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/StandardEncoding.php', + 'Smalot\\PdfParser\\Encoding\\WinAnsiEncoding' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php', + 'Smalot\\PdfParser\\Exception\\EmptyPdfException' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php', + 'Smalot\\PdfParser\\Exception\\EncodingNotFoundException' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/EncodingNotFoundException.php', + 'Smalot\\PdfParser\\Exception\\InvalidDictionaryObjectException' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/InvalidDictionaryObjectException.php', + 'Smalot\\PdfParser\\Exception\\MissingCatalogException' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingCatalogException.php', + 'Smalot\\PdfParser\\Exception\\MissingPdfHeaderException' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingPdfHeaderException.php', + 'Smalot\\PdfParser\\Exception\\NotImplementedException' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/NotImplementedException.php', + 'Smalot\\PdfParser\\Font' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Font.php', + 'Smalot\\PdfParser\\Font\\FontCIDFontType0' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType0.php', + 'Smalot\\PdfParser\\Font\\FontCIDFontType2' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType2.php', + 'Smalot\\PdfParser\\Font\\FontTrueType' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontTrueType.php', + 'Smalot\\PdfParser\\Font\\FontType0' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType0.php', + 'Smalot\\PdfParser\\Font\\FontType1' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType1.php', + 'Smalot\\PdfParser\\Font\\FontType3' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType3.php', + 'Smalot\\PdfParser\\Header' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Header.php', + 'Smalot\\PdfParser\\PDFObject' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php', + 'Smalot\\PdfParser\\Page' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Page.php', + 'Smalot\\PdfParser\\Pages' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Pages.php', + 'Smalot\\PdfParser\\Parser' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/Parser.php', + 'Smalot\\PdfParser\\RawData\\FilterHelper' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php', + 'Smalot\\PdfParser\\RawData\\RawDataParser' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php', + 'Smalot\\PdfParser\\XObject\\Form' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/XObject/Form.php', + 'Smalot\\PdfParser\\XObject\\Image' => __DIR__ . '/..' . '/smalot/pdfparser/src/Smalot/PdfParser/XObject/Image.php', 'SortDirection' => __DIR__ . '/..' . '/symfony/polyfill-php86/Resources/stubs/SortDirection.php', 'Spatie\\Invade\\Invader' => __DIR__ . '/..' . '/spatie/invade/src/Invader.php', 'Spatie\\Invade\\StaticInvader' => __DIR__ . '/..' . '/spatie/invade/src/StaticInvader.php', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index e375e42b..f87d415a 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -6087,6 +6087,60 @@ ], "install-path": "../scrivo/highlight.php" }, + { + "name": "smalot/pdfparser", + "version": "v2.12.5", + "version_normalized": "2.12.5.0", + "source": { + "type": "git", + "url": "https://github.com/smalot/pdfparser.git", + "reference": "2cfa0d92bd557875c9f52a75fde0e8392302a354" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/smalot/pdfparser/zipball/2cfa0d92bd557875c9f52a75fde0e8392302a354", + "reference": "2cfa0d92bd557875c9f52a75fde0e8392302a354", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "ext-zlib": "*", + "php": ">=7.1", + "symfony/polyfill-mbstring": "^1.18" + }, + "time": "2026-04-17T11:37:58+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-0": { + "Smalot\\PdfParser\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Sebastien MALOT", + "email": "sebastien@malot.fr" + } + ], + "description": "Pdf parser library. Can read and extract information from pdf file.", + "homepage": "https://www.pdfparser.org", + "keywords": [ + "extract", + "parse", + "parser", + "pdf", + "text" + ], + "support": { + "issues": "https://github.com/smalot/pdfparser/issues", + "source": "https://github.com/smalot/pdfparser/tree/v2.12.5" + }, + "install-path": "../smalot/pdfparser" + }, { "name": "spatie/invade", "version": "2.1.1", diff --git a/vendor/smalot/pdfparser/LICENSE.txt b/vendor/smalot/pdfparser/LICENSE.txt new file mode 100644 index 00000000..65c5ca88 --- /dev/null +++ b/vendor/smalot/pdfparser/LICENSE.txt @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/vendor/smalot/pdfparser/README.md b/vendor/smalot/pdfparser/README.md new file mode 100644 index 00000000..febcf303 --- /dev/null +++ b/vendor/smalot/pdfparser/README.md @@ -0,0 +1,59 @@ +# PDF parser + +[![Version](https://poser.pugx.org/smalot/pdfparser/v)](//packagist.org/packages/smalot/pdfparser) +![CI](https://github.com/smalot/pdfparser/workflows/CI/badge.svg) +![CS](https://github.com/smalot/pdfparser/workflows/CS/badge.svg) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/smalot/pdfparser/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/smalot/pdfparser/?branch=master) +[![Downloads](https://poser.pugx.org/smalot/pdfparser/downloads)](//packagist.org/packages/smalot/pdfparser) + +The `smalot/pdfparser` is a standalone PHP package that provides various tools to extract data from PDF files. + +This library is under **active maintenance**. +There is no active development by the author of this library (at the moment), but we welcome any pull request adding/extending functionality! +See [CONTRIBUTING.md](./CONTRIBUTING.md) for further information about how to contribute. + +## Features + +- Load/parse objects and headers +- Extract metadata (author, description, ...) +- Extract text from ordered pages +- Support of compressed PDFs +- Support of MAC OS Roman charset encoding +- Handling of hexa and octal encoding in text sections +- Create custom configurations (see [CustomConfig.md](/doc/CustomConfig.md)). + +Currently, secured documents and extracting form data are not supported. + +## License + +This library is under the [LGPLv3 license](https://github.com/smalot/pdfparser/blob/master/LICENSE.txt). + +## Install + +This library requires PHP 7.1+ since [v1](https://github.com/smalot/pdfparser/releases/tag/v1.0.0). +You can install it via [Composer](https://getcomposer.org/): + +```bash +composer require smalot/pdfparser +``` + +In case you can't use Composer, you can include `alt_autoload.php-dist`. It will include all required files automatically. + +## Quick example + +```php +parseFile('/path/to/document.pdf'); + +$text = $pdf->getText(); +echo $text; +``` + +Further usage information can be found [here](/doc/Usage.md). + +## Documentation + +Documentation can be found in the [doc](/doc) folder. diff --git a/vendor/smalot/pdfparser/composer.json b/vendor/smalot/pdfparser/composer.json new file mode 100644 index 00000000..e9f425fd --- /dev/null +++ b/vendor/smalot/pdfparser/composer.json @@ -0,0 +1,37 @@ +{ + "name": "smalot/pdfparser", + "description": "Pdf parser library. Can read and extract information from pdf file.", + "keywords": ["PDF", "text", "parser", "parse", "extract"], + "type": "library", + "license": "LGPL-3.0", + "authors": [ + { + "name": "Sebastien MALOT", + "email": "sebastien@malot.fr" + } + ], + "support": { + "issues": "https://github.com/smalot/pdfparser/issues" + }, + "homepage": "https://www.pdfparser.org", + "require": { + "php": ">=7.1", + "symfony/polyfill-mbstring": "^1.18", + "ext-zlib": "*", + "ext-iconv": "*" + }, + "autoload": { + "psr-0": { + "Smalot\\PdfParser\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "PerformanceTests\\": "tests/Performance/", + "PHPUnitTests\\": "tests/PHPUnit/" + } + }, + "config": { + "process-timeout": 1200 + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Config.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Config.php new file mode 100644 index 00000000..e44b1640 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Config.php @@ -0,0 +1,175 @@ + + * + * @date 2020-11-22 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +/** + * This class contains configurations used in various classes. You can override them + * manually, in case default values aren't working. + * + * @see https://github.com/smalot/pdfparser/issues/305 + */ +class Config +{ + private $fontSpaceLimit = -50; + + /** + * @var string + */ + private $horizontalOffset = ' '; + + /** + * Represents: (NUL, HT, LF, FF, CR, SP) + * + * @var string + */ + private $pdfWhitespaces = "\0\t\n\f\r "; + + /** + * Represents: (NUL, HT, LF, FF, CR, SP) + * + * @var string + */ + private $pdfWhitespacesRegex = '[\0\t\n\f\r ]'; + + /** + * Whether to retain raw image data as content or discard it to save memory + * + * @var bool + */ + private $retainImageContent = true; + + /** + * Memory limit to use when de-compressing files, in bytes. + * + * @var int + */ + private $decodeMemoryLimit = 0; + + /** + * Whether to include font id and size in dataTm array + * + * @var bool + */ + private $dataTmFontInfoHasToBeIncluded = false; + + /** + * Whether to attempt to read PDFs even if they are marked as encrypted. + * + * @var bool + */ + private $ignoreEncryption = false; + + public function getFontSpaceLimit() + { + return $this->fontSpaceLimit; + } + + public function setFontSpaceLimit($value) + { + $this->fontSpaceLimit = $value; + } + + public function getHorizontalOffset(): string + { + return $this->horizontalOffset; + } + + public function setHorizontalOffset($value): void + { + $this->horizontalOffset = $value; + } + + public function getPdfWhitespaces(): string + { + return $this->pdfWhitespaces; + } + + public function setPdfWhitespaces(string $pdfWhitespaces): void + { + $this->pdfWhitespaces = $pdfWhitespaces; + } + + public function getPdfWhitespacesRegex(): string + { + return $this->pdfWhitespacesRegex; + } + + public function setPdfWhitespacesRegex(string $pdfWhitespacesRegex): void + { + $this->pdfWhitespacesRegex = $pdfWhitespacesRegex; + } + + public function getRetainImageContent(): bool + { + return $this->retainImageContent; + } + + public function setRetainImageContent(bool $retainImageContent): void + { + $this->retainImageContent = $retainImageContent; + } + + public function getDecodeMemoryLimit(): int + { + return $this->decodeMemoryLimit; + } + + public function setDecodeMemoryLimit(int $decodeMemoryLimit): void + { + $this->decodeMemoryLimit = $decodeMemoryLimit; + } + + public function getDataTmFontInfoHasToBeIncluded(): bool + { + return $this->dataTmFontInfoHasToBeIncluded; + } + + public function setDataTmFontInfoHasToBeIncluded(bool $dataTmFontInfoHasToBeIncluded): void + { + $this->dataTmFontInfoHasToBeIncluded = $dataTmFontInfoHasToBeIncluded; + } + + public function getIgnoreEncryption(): bool + { + return $this->ignoreEncryption; + } + + /** + * @deprecated this is a temporary workaround, don't rely on it + * @see https://github.com/smalot/pdfparser/pull/653 + */ + public function setIgnoreEncryption(bool $ignoreEncryption): void + { + $this->ignoreEncryption = $ignoreEncryption; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php new file mode 100644 index 00000000..1fad8b1b --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php @@ -0,0 +1,470 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +use Smalot\PdfParser\Encoding\PDFDocEncoding; +use Smalot\PdfParser\Exception\MissingCatalogException; + +/** + * Technical references : + * - http://www.mactech.com/articles/mactech/Vol.15/15.09/PDFIntro/index.html + * - http://framework.zend.com/issues/secure/attachment/12512/Pdf.php + * - http://www.php.net/manual/en/ref.pdf.php#74211 + * - http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/ISOLatin1Encoding.pm + * - http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/ISOLatin9Encoding.pm + * - http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/StandardEncoding.pm + * - http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/WinAnsiEncoding.pm + * + * Class Document + */ +class Document +{ + /** + * @var PDFObject[] + */ + protected $objects = []; + + /** + * @var array + */ + protected $dictionary = []; + + /** + * @var Header + */ + protected $trailer; + + /** + * @var array + */ + protected $metadata = []; + + /** + * @var array + */ + protected $details; + + public function __construct() + { + $this->trailer = new Header([], $this); + } + + public function init() + { + $this->buildDictionary(); + + $this->buildDetails(); + + // Propagate init to objects. + foreach ($this->objects as $object) { + $object->getHeader()->init(); + $object->init(); + } + } + + /** + * Build dictionary based on type header field. + */ + protected function buildDictionary() + { + // Build dictionary. + $this->dictionary = []; + + foreach ($this->objects as $id => $object) { + // Cache objects by type and subtype + $type = $object->getHeader()->get('Type')->getContent(); + + if (null != $type) { + if (!isset($this->dictionary[$type])) { + $this->dictionary[$type] = [ + 'all' => [], + 'subtype' => [], + ]; + } + + $this->dictionary[$type]['all'][$id] = $object; + + $subtype = $object->getHeader()->get('Subtype')->getContent(); + if (null != $subtype) { + if (!isset($this->dictionary[$type]['subtype'][$subtype])) { + $this->dictionary[$type]['subtype'][$subtype] = []; + } + $this->dictionary[$type]['subtype'][$subtype][$id] = $object; + } + } + } + } + + /** + * Build details array. + */ + protected function buildDetails() + { + // Build details array. + $details = []; + + // Extract document info + if ($this->trailer->has('Info')) { + /** @var PDFObject $info */ + $info = $this->trailer->get('Info'); + // This could be an ElementMissing object, so we need to check for + // the getHeader method first. + if (null !== $info && method_exists($info, 'getHeader')) { + $details = $info->getHeader()->getDetails(); + } + } + + // Retrieve the page count + try { + $pages = $this->getPages(); + $details['Pages'] = \count($pages); + } catch (\Exception $e) { + $details['Pages'] = 0; + } + + // Decode and repair encoded document properties + foreach ($details as $key => $value) { + if (\is_string($value)) { + // If the string is already UTF-8 encoded, that means we only + // need to repair Adobe's ham-fisted insertion of line-feeds + // every ~127 characters, which doesn't seem to be multi-byte + // safe + if (mb_check_encoding($value, 'UTF-8')) { + // Remove literal backslash + line-feed "\\r" + $value = str_replace("\x5c\x0d", '', $value); + + // Remove backslash plus bytes written into high part of + // multibyte unicode character + while (preg_match("/\x5c\x5c\xe0([\xb4-\xb8])(.)/", $value, $match)) { + $diff = (\ord($match[1]) - 182) * 64; + $newbyte = PDFDocEncoding::convertPDFDoc2UTF8(\chr(\ord($match[2]) + $diff)); + $value = preg_replace("/\x5c\x5c\xe0".$match[1].$match[2].'/', $newbyte, $value); + } + + // Remove bytes written into low part of multibyte unicode + // character + while (preg_match("/(.)\x9c\xe0([\xb3-\xb7])/", $value, $match)) { + $diff = \ord($match[2]) - 181; + $newbyte = \chr(\ord($match[1]) + $diff); + $value = preg_replace('/'.$match[1]."\x9c\xe0".$match[2].'/', $newbyte, $value); + } + + // Remove this byte string that Adobe occasionally adds + // between two single byte characters in a unicode string + $value = str_replace("\xe5\xb0\x8d", '', $value); + + $details[$key] = $value; + } else { + // If the string is just PDFDocEncoding, remove any line-feeds + // and decode the whole thing. + $value = str_replace("\\\r", '', $value); + $details[$key] = PDFDocEncoding::convertPDFDoc2UTF8($value); + } + } + } + + $details = array_merge($details, $this->metadata); + + $this->details = $details; + } + + /** + * Extract XMP Metadata + */ + public function extractXMPMetadata(string $content): void + { + $xml = xml_parser_create(); + xml_parser_set_option($xml, \XML_OPTION_SKIP_WHITE, 1); + + if (1 === xml_parse_into_struct($xml, $content, $values, $index)) { + /* + * short overview about the following code parts: + * + * The output of xml_parse_into_struct is a single dimensional array (= $values), and the $stack is a last-on, + * first-off array of pointers to positions in $metadata, while iterating through it, that potentially turn the + * results into a more intuitive multi-dimensional array. When an "open" XML tag is encountered, + * we save the current $metadata context in the $stack, then create a child array of $metadata and + * make that the current $metadata context. When a "close" XML tag is encountered, the operations are + * reversed: the most recently added $metadata context from $stack (IOW, the parent of the current + * element) is set as the current $metadata context. + */ + $metadata = []; + $stack = []; + foreach ($values as $val) { + // Standardize to lowercase + $val['tag'] = strtolower($val['tag']); + + // Ignore structural x: and rdf: XML elements + if (0 === strpos($val['tag'], 'x:')) { + continue; + } elseif (0 === strpos($val['tag'], 'rdf:') && 'rdf:li' != $val['tag']) { + continue; + } + + switch ($val['type']) { + case 'open': + // Create an array of list items + if ('rdf:li' == $val['tag']) { + $metadata[] = []; + + // Move up one level in the stack + $stack[\count($stack)] = &$metadata; + $metadata = &$metadata[\count($metadata) - 1]; + } else { + // Else create an array of named values + $metadata[$val['tag']] = []; + + // Move up one level in the stack + $stack[\count($stack)] = &$metadata; + $metadata = &$metadata[$val['tag']]; + } + break; + + case 'complete': + if (isset($val['value'])) { + // Assign a value to this list item + if ('rdf:li' == $val['tag']) { + $metadata[] = $val['value']; + + // Else assign a value to this property + } else { + $metadata[$val['tag']] = $val['value']; + } + } + break; + + case 'close': + // If the value of this property is an array + if (\is_array($metadata)) { + // If the value is a single element array + // where the element is of type string, use + // the value of the first list item as the + // value for this property + if (1 == \count($metadata) && isset($metadata[0]) && \is_string($metadata[0])) { + $metadata = $metadata[0]; + } elseif (0 == \count($metadata)) { + // if the value is an empty array, set + // the value of this property to the empty + // string + $metadata = ''; + } + } + + // Move down one level in the stack + $metadata = &$stack[\count($stack) - 1]; + unset($stack[\count($stack) - 1]); + break; + } + } + + // Only use this metadata if it's referring to a PDF + if (!isset($metadata['dc:format']) || 'application/pdf' == $metadata['dc:format']) { + // According to the XMP specifications: 'Conflict resolution + // for separate packets that describe the same resource is + // beyond the scope of this document.' - Section 6.1 + // Source: https://www.adobe.com/devnet/xmp.html + // Source: https://github.com/adobe/XMP-Toolkit-SDK/blob/main/docs/XMPSpecificationPart1.pdf + // So if there are multiple XMP blocks, just merge the values + // of each found block over top of the existing values + $this->metadata = array_merge($this->metadata, $metadata); + } + } + + // TODO: remove this if-clause and its content when dropping PHP 7 support + if (version_compare(PHP_VERSION, '8.0.0', '<')) { + // ref: https://www.php.net/manual/en/function.xml-parser-free.php + xml_parser_free($xml); + + // to avoid memory leaks; documentation said: + // > it was necessary to also explicitly unset the reference to parser to avoid memory leaks + unset($xml); + } + } + + public function getDictionary(): array + { + return $this->dictionary; + } + + /** + * @param PDFObject[] $objects + */ + public function setObjects($objects = []) + { + $this->objects = (array) $objects; + + $this->init(); + } + + /** + * @return PDFObject[] + */ + public function getObjects() + { + return $this->objects; + } + + /** + * @return PDFObject|Font|Page|Element|null + */ + public function getObjectById(string $id) + { + if (isset($this->objects[$id])) { + return $this->objects[$id]; + } + + return null; + } + + public function hasObjectsByType(string $type, ?string $subtype = null): bool + { + return 0 < \count($this->getObjectsByType($type, $subtype)); + } + + public function getObjectsByType(string $type, ?string $subtype = null): array + { + if (!isset($this->dictionary[$type])) { + return []; + } + + if (null != $subtype) { + if (!isset($this->dictionary[$type]['subtype'][$subtype])) { + return []; + } + + return $this->dictionary[$type]['subtype'][$subtype]; + } + + return $this->dictionary[$type]['all']; + } + + /** + * @return Font[] + */ + public function getFonts() + { + return $this->getObjectsByType('Font'); + } + + public function getFirstFont(): ?Font + { + $fonts = $this->getFonts(); + if ([] === $fonts) { + return null; + } + + return reset($fonts); + } + + /** + * @return Page[] + * + * @throws MissingCatalogException + */ + public function getPages() + { + if ($this->hasObjectsByType('Catalog')) { + // Search for catalog to list pages. + $catalogues = $this->getObjectsByType('Catalog'); + $catalogue = reset($catalogues); + + /** @var Pages $object */ + $object = $catalogue->get('Pages'); + if (method_exists($object, 'getPages')) { + return $object->getPages(true); + } + } + + if ($this->hasObjectsByType('Pages')) { + // Search for pages to list kids. + $pages = []; + + /** @var Pages[] $objects */ + $objects = $this->getObjectsByType('Pages'); + foreach ($objects as $object) { + $pages = array_merge($pages, $object->getPages(true)); + } + + return $pages; + } + + if ($this->hasObjectsByType('Page')) { + // Search for 'page' (unordered pages). + $pages = $this->getObjectsByType('Page'); + + return array_values($pages); + } + + throw new MissingCatalogException('Missing catalog.'); + } + + public function getText(?int $pageLimit = null): string + { + $texts = []; + $pages = $this->getPages(); + + // Only use the first X number of pages if $pageLimit is set and numeric. + if (\is_int($pageLimit) && 0 < $pageLimit) { + $pages = \array_slice($pages, 0, $pageLimit); + } + + foreach ($pages as $index => $page) { + /** + * In some cases, the $page variable may be null. + */ + if (null === $page) { + continue; + } + if ($text = trim($page->getText())) { + $texts[] = $text; + } + } + + return implode("\n\n", $texts); + } + + public function getTrailer(): Header + { + return $this->trailer; + } + + public function setTrailer(Header $trailer) + { + $this->trailer = $trailer; + } + + public function getDetails(): array + { + return $this->details; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element.php new file mode 100644 index 00000000..80660303 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element.php @@ -0,0 +1,156 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +use Smalot\PdfParser\Element\ElementArray; +use Smalot\PdfParser\Element\ElementBoolean; +use Smalot\PdfParser\Element\ElementDate; +use Smalot\PdfParser\Element\ElementHexa; +use Smalot\PdfParser\Element\ElementName; +use Smalot\PdfParser\Element\ElementNull; +use Smalot\PdfParser\Element\ElementNumeric; +use Smalot\PdfParser\Element\ElementString; +use Smalot\PdfParser\Element\ElementStruct; +use Smalot\PdfParser\Element\ElementXRef; + +/** + * Class Element + */ +class Element +{ + /** + * @var Document|null + */ + protected $document; + + protected $value; + + public function __construct($value, ?Document $document = null) + { + $this->value = $value; + $this->document = $document; + } + + public function init() + { + } + + public function equals($value): bool + { + return $value == $this->value; + } + + public function contains($value): bool + { + if (\is_array($this->value)) { + /** @var Element $val */ + foreach ($this->value as $val) { + if ($val->equals($value)) { + return true; + } + } + + return false; + } + + return $this->equals($value); + } + + public function getContent() + { + return $this->value; + } + + public function __toString(): string + { + return (string) $this->value; + } + + public static function parse(string $content, ?Document $document = null, int &$position = 0) + { + $args = \func_get_args(); + $only_values = isset($args[3]) ? $args[3] : false; + $content = trim($content); + $values = []; + + do { + $old_position = $position; + + if (!$only_values) { + if (!preg_match('/\G\s*(?P\/[A-Z#0-9\._]+)(?P.*)/si', $content, $match, 0, $position)) { + break; + } else { + $name = preg_replace_callback( + '/#([0-9a-f]{2})/i', + function ($m) { + return \chr(base_convert($m[1], 16, 10)); + }, + ltrim($match['name'], '/') + ); + $value = $match['value']; + $position = strpos($content, $value, $position + \strlen($match['name'])); + } + } else { + $name = \count($values); + $value = substr($content, $position); + } + + if ($element = ElementName::parse($value, $document, $position)) { + $values[$name] = $element; + } elseif ($element = ElementXRef::parse($value, $document, $position)) { + $values[$name] = $element; + } elseif ($element = ElementNumeric::parse($value, $document, $position)) { + $values[$name] = $element; + } elseif ($element = ElementStruct::parse($value, $document, $position)) { + $values[$name] = $element; + } elseif ($element = ElementBoolean::parse($value, $document, $position)) { + $values[$name] = $element; + } elseif ($element = ElementNull::parse($value, $document, $position)) { + $values[$name] = $element; + } elseif ($element = ElementDate::parse($value, $document, $position)) { + $values[$name] = $element; + } elseif ($element = ElementString::parse($value, $document, $position)) { + $values[$name] = $element; + } elseif ($element = ElementHexa::parse($value, $document, $position)) { + $values[$name] = $element; + } elseif ($element = ElementArray::parse($value, $document, $position)) { + $values[$name] = $element; + } else { + $position = $old_position; + break; + } + } while ($position < \strlen($content)); + + return $values; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementArray.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementArray.php new file mode 100644 index 00000000..b54bf843 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementArray.php @@ -0,0 +1,139 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; +use Smalot\PdfParser\Element; +use Smalot\PdfParser\Header; +use Smalot\PdfParser\PDFObject; + +/** + * Class ElementArray + */ +class ElementArray extends Element +{ + public function __construct($value, ?Document $document = null) + { + parent::__construct($value, $document); + } + + public function getContent() + { + foreach ($this->value as $name => $element) { + $this->resolveXRef($name); + } + + return parent::getContent(); + } + + public function getRawContent(): array + { + return $this->value; + } + + public function getDetails(bool $deep = true): array + { + $values = []; + $elements = $this->getContent(); + + foreach ($elements as $key => $element) { + if ($element instanceof Header && $deep) { + $values[$key] = $element->getDetails($deep); + } elseif ($element instanceof PDFObject && $deep) { + $values[$key] = $element->getDetails(false); + } elseif ($element instanceof self) { + if ($deep) { + $values[$key] = $element->getDetails(); + } + } elseif ($element instanceof Element && !($element instanceof self)) { + $values[$key] = $element->getContent(); + } + } + + return $values; + } + + public function __toString(): string + { + return implode(',', $this->value); + } + + /** + * @return Element|PDFObject + */ + protected function resolveXRef(string $name) + { + if (($obj = $this->value[$name]) instanceof ElementXRef) { + /** @var ElementXRef $obj */ + $obj = $this->document->getObjectById($obj->getId()); + $this->value[$name] = $obj; + } + + return $this->value[$name]; + } + + /** + * @todo: These methods return mixed and mismatched types throughout the hierarchy + * + * @return bool|ElementArray + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*\[(?P.*)/is', $content, $match)) { + preg_match_all('/(.*?)(\[|\])/s', trim($content), $matches); + + $level = 0; + $sub = ''; + foreach ($matches[0] as $part) { + $sub .= $part; + $level += (false !== strpos($part, '[') ? 1 : -1); + if ($level <= 0) { + break; + } + } + + // Removes 1 level [ and ]. + $sub = substr(trim($sub), 1, -1); + $sub_offset = 0; + $values = Element::parse($sub, $document, $sub_offset, true); + + $offset += strpos($content, '[') + 1; + // Find next ']' position + $offset += \strlen($sub) + 1; + + return new self($values, $document); + } + + return false; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementBoolean.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementBoolean.php new file mode 100644 index 00000000..55fb4638 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementBoolean.php @@ -0,0 +1,75 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; +use Smalot\PdfParser\Element; + +/** + * Class ElementBoolean + */ +class ElementBoolean extends Element +{ + /** + * @param string|bool $value + */ + public function __construct($value) + { + parent::__construct('true' == strtolower($value) || true === $value, null); + } + + public function __toString(): string + { + return $this->value ? 'true' : 'false'; + } + + public function equals($value): bool + { + return $this->getContent() === $value; + } + + /** + * @return bool|ElementBoolean + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*(?Ptrue|false)/is', $content, $match)) { + $value = $match['value']; + $offset += strpos($content, $value) + \strlen($value); + + return new self($value); + } + + return false; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementDate.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementDate.php new file mode 100644 index 00000000..f1f2df6f --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementDate.php @@ -0,0 +1,139 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHPi, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; + +/** + * Class ElementDate + */ +class ElementDate extends ElementString +{ + /** + * @var array + */ + protected static $formats = [ + 4 => 'Y', + 6 => 'Ym', + 8 => 'Ymd', + 10 => 'YmdH', + 12 => 'YmdHi', + 14 => 'YmdHis', + 15 => 'YmdHise', + 17 => 'YmdHisO', + 18 => 'YmdHisO', + 19 => 'YmdHisO', + ]; + + /** + * @var string + */ + protected $format = 'c'; + + /** + * @var \DateTime + */ + protected $value; + + public function __construct($value) + { + if (!($value instanceof \DateTime)) { + throw new \Exception('DateTime required.'); // FIXME: Sometimes strings are passed to this function + } + + parent::__construct($value); + } + + public function setFormat(string $format) + { + $this->format = $format; + } + + public function equals($value): bool + { + if ($value instanceof \DateTime) { + $timestamp = $value->getTimeStamp(); + } else { + $timestamp = strtotime($value); + } + + return $timestamp == $this->value->getTimeStamp(); + } + + public function __toString(): string + { + return (string) $this->value->format($this->format); + } + + /** + * @return bool|ElementDate + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*\(D\:(?P.*?)\)/s', $content, $match)) { + $name = $match['name']; + $name = str_replace("'", '', $name); + $date = false; + + // Smallest format : Y + // Full format : YmdHisP + if (preg_match('/^\d{4}(\d{2}(\d{2}(\d{2}(\d{2}(\d{2}(Z(\d{2,4})?|[\+-]?\d{2}(\d{2})?)?)?)?)?)?)?$/', $name)) { + if ($pos = strpos($name, 'Z')) { + $name = substr($name, 0, $pos + 1); + } elseif (18 == \strlen($name) && preg_match('/[^\+-]0000$/', $name)) { + $name = substr($name, 0, -4).'+0000'; + } + + $format = self::$formats[\strlen($name)]; + $date = \DateTime::createFromFormat($format, $name, new \DateTimeZone('UTC')); + } else { + // special cases + if (preg_match('/^\d{1,2}-\d{1,2}-\d{4},?\s+\d{2}:\d{2}:\d{2}[\+-]\d{4}$/', $name)) { + $name = str_replace(',', '', $name); + $format = 'n-j-Y H:i:sO'; + $date = \DateTime::createFromFormat($format, $name, new \DateTimeZone('UTC')); + } + } + + if (!$date) { + return false; + } + + $offset += strpos($content, '(D:') + \strlen($match['name']) + 4; // 1 for '(D:' and ')' + + return new self($date); + } + + return false; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementHexa.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementHexa.php new file mode 100644 index 00000000..3fc34136 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementHexa.php @@ -0,0 +1,91 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; + +/** + * Class ElementHexa + */ +class ElementHexa extends ElementString +{ + /** + * @return bool|ElementHexa|ElementDate + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*\<(?P[A-F0-9]+)\>/is', $content, $match)) { + $name = $match['name']; + $offset += strpos($content, '<'.$name) + \strlen($name) + 2; // 1 for '>' + // repackage string as standard + $name = '('.self::decode($name).')'; + $element = ElementDate::parse($name, $document); + + if (!$element) { + $element = ElementString::parse($name, $document); + } + + return $element; + } + + return false; + } + + public static function decode(string $value): string + { + $text = ''; + + // Filter $value of non-hexadecimal characters + $value = (string) preg_replace('/[^0-9a-f]/i', '', $value); + + // Check for leading zeros (4-byte hexadecimal indicator), or + // the BE BOM + if ('00' === substr($value, 0, 2) || 'feff' === strtolower(substr($value, 0, 4))) { + $value = (string) preg_replace('/^feff/i', '', $value); + for ($i = 0, $length = \strlen($value); $i < $length; $i += 4) { + $hex = substr($value, $i, 4); + $text .= '&#'.str_pad(hexdec($hex), 4, '0', \STR_PAD_LEFT).';'; + } + } else { + // Otherwise decode this as 2-byte hexadecimal + for ($i = 0, $length = \strlen($value); $i < $length; $i += 2) { + $hex = substr($value, $i, 2); + $text .= \chr(hexdec($hex)); + } + } + + $text = html_entity_decode($text, \ENT_NOQUOTES, 'UTF-8'); + + return $text; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementMissing.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementMissing.php new file mode 100644 index 00000000..d2fc0008 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementMissing.php @@ -0,0 +1,66 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Element; + +/** + * Class ElementMissing + */ +class ElementMissing extends Element +{ + public function __construct() + { + parent::__construct(null, null); + } + + public function equals($value): bool + { + return false; + } + + public function contains($value): bool + { + return false; + } + + public function getContent(): bool + { + return false; + } + + public function __toString(): string + { + return ''; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementName.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementName.php new file mode 100644 index 00000000..6e8d97ac --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementName.php @@ -0,0 +1,69 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; +use Smalot\PdfParser\Element; +use Smalot\PdfParser\Font; + +/** + * Class ElementName + */ +class ElementName extends Element +{ + public function __construct(string $value) + { + parent::__construct($value, null); + } + + public function equals($value): bool + { + return $value == $this->value; + } + + /** + * @return bool|ElementName + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*\/([A-Z0-9\-\+,#\.]+)/is', $content, $match)) { + $name = $match[1]; + $offset += strpos($content, $name) + \strlen($name); + $name = Font::decodeEntities($name); + + return new self($name); + } + + return false; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNull.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNull.php new file mode 100644 index 00000000..9af88434 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNull.php @@ -0,0 +1,71 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; +use Smalot\PdfParser\Element; + +/** + * Class ElementNull + */ +class ElementNull extends Element +{ + public function __construct() + { + parent::__construct(null, null); + } + + public function __toString(): string + { + return 'null'; + } + + public function equals($value): bool + { + return $this->getContent() === $value; + } + + /** + * @return bool|ElementNull + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*(null)/s', $content, $match)) { + $offset += strpos($content, 'null') + \strlen('null'); + + return new self(); + } + + return false; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNumeric.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNumeric.php new file mode 100644 index 00000000..5454acc0 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNumeric.php @@ -0,0 +1,62 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; +use Smalot\PdfParser\Element; + +/** + * Class ElementNumeric + */ +class ElementNumeric extends Element +{ + public function __construct(string $value) + { + parent::__construct((float) $value, null); + } + + /** + * @return bool|ElementNumeric + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*(?P\-?[0-9\.]+)/s', $content, $match)) { + $value = $match['value']; + $offset += strpos($content, $value) + \strlen($value); + + return new self($value); + } + + return false; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementString.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementString.php new file mode 100644 index 00000000..011bcf46 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementString.php @@ -0,0 +1,93 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; +use Smalot\PdfParser\Element; +use Smalot\PdfParser\Font; + +/** + * Class ElementString + */ +class ElementString extends Element +{ + public function __construct($value) + { + parent::__construct($value, null); + } + + public function equals($value): bool + { + return $value == $this->value; + } + + /** + * @return bool|ElementString + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*\((?P.*)/s', $content, $match)) { + $name = $match['name']; + + // Find next ')' not escaped. + $cur_start_text = $start_search_end = 0; + while (false !== ($cur_start_pos = strpos($name, ')', $start_search_end))) { + $cur_extract = substr($name, $cur_start_text, $cur_start_pos - $cur_start_text); + preg_match('/(?P[\\\]*)$/s', $cur_extract, $match); + if (!(\strlen($match['escape']) % 2)) { + break; + } + $start_search_end = $cur_start_pos + 1; + } + + // Extract string. + $name = substr($name, 0, (int) $cur_start_pos); + $offset += strpos($content, '(') + $cur_start_pos + 2; // 2 for '(' and ')' + $name = str_replace( + ['\\\\', '\\ ', '\\/', '\(', '\)', '\n', '\r', '\t'], + ['\\', ' ', '/', '(', ')', "\n", "\r", "\t"], + $name + ); + + // Decode string. + $name = Font::decodeOctal($name); + $name = Font::decodeEntities($name); + $name = Font::decodeHexadecimal($name, false); + $name = Font::decodeUnicode($name); + + return new self($name); + } + + return false; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementStruct.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementStruct.php new file mode 100644 index 00000000..c37b6da4 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementStruct.php @@ -0,0 +1,75 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; +use Smalot\PdfParser\Element; +use Smalot\PdfParser\Header; + +/** + * Class ElementStruct + */ +class ElementStruct extends Element +{ + /** + * @return false|Header + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*<<(?P.*)/is', $content)) { + preg_match_all('/(.*?)(<<|>>)/s', trim($content), $matches); + + $level = 0; + $sub = ''; + foreach ($matches[0] as $part) { + $sub .= $part; + $level += (false !== strpos($part, '<<') ? 1 : -1); + if ($level <= 0) { + break; + } + } + + $offset += strpos($content, '<<') + \strlen(rtrim($sub)); + + // Removes '<<' and '>>'. + $sub = trim((string) preg_replace('/^\s*<<(.*)>>\s*$/s', '\\1', $sub)); + + $position = 0; + $elements = Element::parse($sub, $document, $position); + + return new Header($elements, $document); + } + + return false; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementXRef.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementXRef.php new file mode 100644 index 00000000..ebba71a1 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementXRef.php @@ -0,0 +1,98 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Element; + +use Smalot\PdfParser\Document; +use Smalot\PdfParser\Element; + +/** + * Class ElementXRef + */ +class ElementXRef extends Element +{ + public function getId(): string + { + return $this->getContent(); + } + + public function getObject() + { + return $this->document->getObjectById($this->getId()); + } + + public function equals($value): bool + { + /** + * In case $value is a number and $this->value is a string like 5_0 + * + * Without this if-clause code like: + * + * $element = new ElementXRef('5_0'); + * $this->assertTrue($element->equals(5)); + * + * would fail (= 5_0 and 5 are not equal in PHP 8.0+). + */ + if ( + true === is_numeric($value) + && true === \is_string($this->getContent()) + && 1 === preg_match('/[0-9]+\_[0-9]+/', $this->getContent(), $matches) + ) { + return (float) $this->getContent() == $value; + } + + $id = ($value instanceof self) ? $value->getId() : $value; + + return $this->getId() == $id; + } + + public function __toString(): string + { + return '#Obj#'.$this->getId(); + } + + /** + * @return bool|ElementXRef + */ + public static function parse(string $content, ?Document $document = null, int &$offset = 0) + { + if (preg_match('/^\s*(?P[0-9]+\s+[0-9]+\s+R)/s', $content, $match)) { + $id = $match['id']; + $offset += strpos($content, $id) + \strlen($id); + $id = str_replace(' ', '_', rtrim($id, ' R')); + + return new self($id, $document); + } + + return false; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding.php new file mode 100644 index 00000000..511411b8 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding.php @@ -0,0 +1,162 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +use Smalot\PdfParser\Element\ElementNumeric; +use Smalot\PdfParser\Encoding\EncodingLocator; +use Smalot\PdfParser\Encoding\PostScriptGlyphs; +use Smalot\PdfParser\Exception\EncodingNotFoundException; + +/** + * Class Encoding + */ +class Encoding extends PDFObject +{ + /** + * @var array + */ + protected $encoding; + + /** + * @var array + */ + protected $differences; + + /** + * @var array + */ + protected $mapping; + + public function init() + { + $this->mapping = []; + $this->differences = []; + $this->encoding = []; + + if ($this->has('BaseEncoding')) { + $this->encoding = EncodingLocator::getEncoding($this->getEncodingClass())->getTranslations(); + + // Build table including differences. + $differences = $this->get('Differences')->getContent(); + $code = 0; + + if (!\is_array($differences)) { + return; + } + + foreach ($differences as $difference) { + /** @var ElementNumeric $difference */ + if ($difference instanceof ElementNumeric) { + $code = $difference->getContent(); + continue; + } + + // ElementName + $this->differences[$code] = $difference; + if (\is_object($difference)) { + $this->differences[$code] = $difference->getContent(); + } + + // For the next char. + ++$code; + } + + $this->mapping = $this->encoding; + foreach ($this->differences as $code => $difference) { + /* @var string $difference */ + $this->mapping[$code] = $difference; + } + } + } + + public function getDetails(bool $deep = true): array + { + $details = []; + + $details['BaseEncoding'] = ($this->has('BaseEncoding') ? (string) $this->get('BaseEncoding') : 'Ansi'); + $details['Differences'] = ($this->has('Differences') ? (string) $this->get('Differences') : ''); + + $details += parent::getDetails($deep); + + return $details; + } + + public function translateChar($dec): ?int + { + if (isset($this->mapping[$dec])) { + $dec = $this->mapping[$dec]; + } + + return PostScriptGlyphs::getCodePoint($dec); + } + + /** + * Returns encoding class name if available or empty string (only prior PHP 7.4). + * + * @throws \Exception On PHP 7.4+ an exception is thrown if encoding class doesn't exist. + */ + public function __toString(): string + { + try { + return $this->getEncodingClass(); + } catch (\Exception $e) { + // prior to PHP 7.4 toString has to return an empty string. + if (version_compare(\PHP_VERSION, '7.4.0', '<')) { + return ''; + } + throw $e; + } + } + + /** + * @throws EncodingNotFoundException + */ + protected function getEncodingClass(): string + { + // Load reference table charset. + $baseEncoding = preg_replace('/[^A-Z0-9]/is', '', $this->get('BaseEncoding')->getContent()); + + // Check for empty BaseEncoding field value + if (!\is_string($baseEncoding) || 0 == \strlen($baseEncoding)) { + $baseEncoding = 'StandardEncoding'; + } + + $className = '\\Smalot\\PdfParser\\Encoding\\'.$baseEncoding; + + if (!class_exists($className)) { + throw new EncodingNotFoundException('Missing encoding data for: "'.$baseEncoding.'".'); + } + + return $className; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/AbstractEncoding.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/AbstractEncoding.php new file mode 100644 index 00000000..aea9c020 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/AbstractEncoding.php @@ -0,0 +1,8 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +// Source : http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/ISOLatin1Encoding.pm + +namespace Smalot\PdfParser\Encoding; + +/** + * Class ISOLatin1Encoding + */ +class ISOLatin1Encoding extends AbstractEncoding +{ + public function getTranslations(): array + { + $encoding = + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + 'space exclam quotedbl numbersign dollar percent ampersand quoteright '. + 'parenleft parenright asterisk plus comma minus period slash zero one '. + 'two three four five six seven eight nine colon semicolon less equal '. + 'greater question at A B C D E F G H I J K L M N O P Q R S T U V W X '. + 'Y Z bracketleft backslash bracketright asciicircum underscore '. + 'quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z '. + 'braceleft bar braceright asciitilde .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef dotlessi grave acute '. + 'circumflex tilde macron breve dotaccent dieresis .notdef ring '. + 'cedilla .notdef hungarumlaut ogonek caron space exclamdown cent '. + 'sterling currency yen brokenbar section dieresis copyright '. + 'ordfeminine guillemotleft logicalnot hyphen registered macron degree '. + 'plusminus twosuperior threesuperior acute mu paragraph '. + 'periodcentered cedilla onesuperior ordmasculine guillemotright '. + 'onequarter onehalf threequarters questiondown Agrave Aacute '. + 'Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute '. + 'Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde '. + 'Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave '. + 'Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute '. + 'acircumflex atilde adieresis aring ae ccedilla egrave eacute '. + 'ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde '. + 'ograve oacute ocircumflex otilde odieresis divide oslash ugrave '. + 'uacute ucircumflex udieresis yacute thorn ydieresis'; + + return explode(' ', $encoding); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php new file mode 100644 index 00000000..616a0f55 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php @@ -0,0 +1,76 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +// Source : http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/ISOLatin9Encoding.pm + +namespace Smalot\PdfParser\Encoding; + +/** + * Class ISOLatin9Encoding + */ +class ISOLatin9Encoding extends AbstractEncoding +{ + public function getTranslations(): array + { + $encoding = + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + 'space exclam quotedbl numbersign dollar percent ampersand quoteright '. + 'parenleft parenright asterisk plus comma minus period slash zero one '. + 'two three four five six seven eight nine colon semicolon less equal '. + 'greater question at A B C D E F G H I J K L M N O P Q R S T U V W X '. + 'Y Z bracketleft backslash bracketright asciicircum underscore '. + 'quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z '. + 'braceleft bar braceright asciitilde .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef dotlessi grave acute '. + 'circumflex tilde macron breve dotaccent dieresis .notdef ring '. + 'cedilla .notdef hungarumlaut ogonek caron space exclamdown cent '. + 'sterling Euro yen Scaron section scaron copyright '. + 'ordfeminine guillemotleft logicalnot hyphen registered macron degree '. + 'plusminus twosuperior threesuperior Zcaron mu paragraph '. + 'periodcentered zcaron onesuperior ordmasculine guillemotright '. + 'OE oe Ydieresis questiondown Agrave Aacute '. + 'Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute '. + 'Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde '. + 'Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave '. + 'Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute '. + 'acircumflex atilde adieresis aring ae ccedilla egrave eacute '. + 'ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde '. + 'ograve oacute ocircumflex otilde odieresis divide oslash ugrave '. + 'uacute ucircumflex udieresis yacute thorn ydieresis'; + + return explode(' ', $encoding); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/MacRomanEncoding.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/MacRomanEncoding.php new file mode 100644 index 00000000..c47131c9 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/MacRomanEncoding.php @@ -0,0 +1,80 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +// Source : http://www.opensource.apple.com/source/vim/vim-34/vim/runtime/print/mac-roman.ps + +namespace Smalot\PdfParser\Encoding; + +/** + * Class MacRomanEncoding + */ +class MacRomanEncoding extends AbstractEncoding +{ + public function getTranslations(): array + { + $encoding = + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + 'space exclam quotedbl numbersign dollar percent ampersand quotesingle '. + 'parenleft parenright asterisk plus comma minus period slash '. + 'zero one two three four five six seven '. + 'eight nine colon semicolon less equal greater question '. + 'at A B C D E F G '. + 'H I J K L M N O '. + 'P Q R S T U V W '. + 'X Y Z bracketleft backslash bracketright asciicircum underscore '. + 'grave a b c d e f g '. + 'h i j k l m n o '. + 'p q r s t u v w '. + 'x y z braceleft bar braceright asciitilde .notdef '. + 'Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute '. + 'agrave acircumflex adieresis atilde aring ccedilla eacute egrave '. + 'ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute '. + 'ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis '. + 'dagger degree cent sterling section bullet paragraph germandbls '. + 'registered copyright trademark acute dieresis notequal AE Oslash '. + 'infinity plusminus lessequal greaterequal yen mu partialdiff summation '. + 'Pi pi integral ordfeminine ordmasculine Omega ae oslash '. + 'questiondown exclamdown logicalnot radical florin approxequal delta guillemotleft '. + 'guillemotright ellipsis space Agrave Atilde Otilde OE oe '. + 'endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge '. + 'ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl '. + 'daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute '. + 'Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex '. + 'heart Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde '. + 'macron breve dotaccent ring cedilla hungarumlaut ogonek caron'; + + return explode(' ', $encoding); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PDFDocEncoding.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PDFDocEncoding.php new file mode 100644 index 00000000..70bc48cb --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PDFDocEncoding.php @@ -0,0 +1,189 @@ + + * + * @date 2023-06-28 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +// Source : https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.2.pdf +// Source : https://ia801001.us.archive.org/1/items/pdf1.7/pdf_reference_1-7.pdf + +namespace Smalot\PdfParser\Encoding; + +/** + * Class PDFDocEncoding + */ +class PDFDocEncoding +{ + public static function getCodePage(): array + { + return [ + "\x18" => "\u{02d8}", // breve + "\x19" => "\u{02c7}", // caron + "\x1a" => "\u{02c6}", // circumflex + "\x1b" => "\u{02d9}", // dotaccent + "\x1c" => "\u{02dd}", // hungarumlaut + "\x1d" => "\u{02db}", // ogonek + "\x1e" => "\u{02de}", // ring + "\x1f" => "\u{02dc}", // tilde + "\x7f" => '', + "\x80" => "\u{2022}", // bullet + "\x81" => "\u{2020}", // dagger + "\x82" => "\u{2021}", // daggerdbl + "\x83" => "\u{2026}", // ellipsis + "\x84" => "\u{2014}", // emdash + "\x85" => "\u{2013}", // endash + "\x86" => "\u{0192}", // florin + "\x87" => "\u{2044}", // fraction + "\x88" => "\u{2039}", // guilsinglleft + "\x89" => "\u{203a}", // guilsinglright + "\x8a" => "\u{2212}", // minus + "\x8b" => "\u{2030}", // perthousand + "\x8c" => "\u{201e}", // quotedblbase + "\x8d" => "\u{201c}", // quotedblleft + "\x8e" => "\u{201d}", // quotedblright + "\x8f" => "\u{2018}", // quoteleft + "\x90" => "\u{2019}", // quoteright + "\x91" => "\u{201a}", // quotesinglbase + "\x92" => "\u{2122}", // trademark + "\x93" => "\u{fb01}", // fi + "\x94" => "\u{fb02}", // fl + "\x95" => "\u{0141}", // Lslash + "\x96" => "\u{0152}", // OE + "\x97" => "\u{0160}", // Scaron + "\x98" => "\u{0178}", // Ydieresis + "\x99" => "\u{017d}", // Zcaron + "\x9a" => "\u{0131}", // dotlessi + "\x9b" => "\u{0142}", // lslash + "\x9c" => "\u{0153}", // oe + "\x9d" => "\u{0161}", // scaron + "\x9e" => "\u{017e}", // zcaron + "\x9f" => '', + "\xa0" => "\u{20ac}", // Euro + "\xa1" => "\u{00a1}", // exclamdown + "\xa2" => "\u{00a2}", // cent + "\xa3" => "\u{00a3}", // sterling + "\xa4" => "\u{00a4}", // currency + "\xa5" => "\u{00a5}", // yen + "\xa6" => "\u{00a6}", // brokenbar + "\xa7" => "\u{00a7}", // section + "\xa8" => "\u{00a8}", // dieresis + "\xa9" => "\u{00a9}", // copyright + "\xaa" => "\u{00aa}", // ordfeminine + "\xab" => "\u{00ab}", // guillemotleft + "\xac" => "\u{00ac}", // logicalnot + "\xad" => '', + "\xae" => "\u{00ae}", // registered + "\xaf" => "\u{00af}", // macron + "\xb0" => "\u{00b0}", // degree + "\xb1" => "\u{00b1}", // plusminus + "\xb2" => "\u{00b2}", // twosuperior + "\xb3" => "\u{00b3}", // threesuperior + "\xb4" => "\u{00b4}", // acute + "\xb5" => "\u{00b5}", // mu + "\xb6" => "\u{00b6}", // paragraph + "\xb7" => "\u{00b7}", // periodcentered + "\xb8" => "\u{00b8}", // cedilla + "\xb9" => "\u{00b9}", // onesuperior + "\xba" => "\u{00ba}", // ordmasculine + "\xbb" => "\u{00bb}", // guillemotright + "\xbc" => "\u{00bc}", // onequarter + "\xbd" => "\u{00bd}", // onehalf + "\xbe" => "\u{00be}", // threequarters + "\xbf" => "\u{00bf}", // questiondown + "\xc0" => "\u{00c0}", // Agrave + "\xc1" => "\u{00c1}", // Aacute + "\xc2" => "\u{00c2}", // Acircumflex + "\xc3" => "\u{00c3}", // Atilde + "\xc4" => "\u{00c4}", // Adieresis + "\xc5" => "\u{00c5}", // Aring + "\xc6" => "\u{00c6}", // AE + "\xc7" => "\u{00c7}", // Ccedill + "\xc8" => "\u{00c8}", // Egrave + "\xc9" => "\u{00c9}", // Eacute + "\xca" => "\u{00ca}", // Ecircumflex + "\xcb" => "\u{00cb}", // Edieresis + "\xcc" => "\u{00cc}", // Igrave + "\xcd" => "\u{00cd}", // Iacute + "\xce" => "\u{00ce}", // Icircumflex + "\xcf" => "\u{00cf}", // Idieresis + "\xd0" => "\u{00d0}", // Eth + "\xd1" => "\u{00d1}", // Ntilde + "\xd2" => "\u{00d2}", // Ograve + "\xd3" => "\u{00d3}", // Oacute + "\xd4" => "\u{00d4}", // Ocircumflex + "\xd5" => "\u{00d5}", // Otilde + "\xd6" => "\u{00d6}", // Odieresis + "\xd7" => "\u{00d7}", // multiply + "\xd8" => "\u{00d8}", // Oslash + "\xd9" => "\u{00d9}", // Ugrave + "\xda" => "\u{00da}", // Uacute + "\xdb" => "\u{00db}", // Ucircumflex + "\xdc" => "\u{00dc}", // Udieresis + "\xdd" => "\u{00dd}", // Yacute + "\xde" => "\u{00de}", // Thorn + "\xdf" => "\u{00df}", // germandbls + "\xe0" => "\u{00e0}", // agrave + "\xe1" => "\u{00e1}", // aacute + "\xe2" => "\u{00e2}", // acircumflex + "\xe3" => "\u{00e3}", // atilde + "\xe4" => "\u{00e4}", // adieresis + "\xe5" => "\u{00e5}", // aring + "\xe6" => "\u{00e6}", // ae + "\xe7" => "\u{00e7}", // ccedilla + "\xe8" => "\u{00e8}", // egrave + "\xe9" => "\u{00e9}", // eacute + "\xea" => "\u{00ea}", // ecircumflex + "\xeb" => "\u{00eb}", // edieresis + "\xec" => "\u{00ec}", // igrave + "\xed" => "\u{00ed}", // iacute + "\xee" => "\u{00ee}", // icircumflex + "\xef" => "\u{00ef}", // idieresis + "\xf0" => "\u{00f0}", // eth + "\xf1" => "\u{00f1}", // ntilde + "\xf2" => "\u{00f2}", // ograve + "\xf3" => "\u{00f3}", // oacute + "\xf4" => "\u{00f4}", // ocircumflex + "\xf5" => "\u{00f5}", // otilde + "\xf6" => "\u{00f6}", // odieresis + "\xf7" => "\u{00f7}", // divide + "\xf8" => "\u{00f8}", // oslash + "\xf9" => "\u{00f9}", // ugrave + "\xfa" => "\u{00fa}", // uacute + "\xfb" => "\u{00fb}", // ucircumflex + "\xfc" => "\u{00fc}", // udieresis + "\xfd" => "\u{00fd}", // yacute + "\xfe" => "\u{00fe}", // thorn + "\xff" => "\u{00ff}", // ydieresis + ]; + } + + public static function convertPDFDoc2UTF8(string $content): string + { + return strtr($content, static::getCodePage()); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PostScriptGlyphs.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PostScriptGlyphs.php new file mode 100644 index 00000000..fbe1af4b --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PostScriptGlyphs.php @@ -0,0 +1,1099 @@ + + * + * @date 2019-09-17 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Encoding; + +/** + * Class PostScriptGlyphs + */ +class PostScriptGlyphs +{ + /** + * The mapping tables have been converted from https://github.com/OpenPrinting/cups-filters/blob/master/fontembed/aglfn13.c, + * part of the OpenPrinting/cups-filters package, which itself is licensed under the MIT license and lists this specific code part as: + * Copyright 2008,2012 Tobias Hoffmann under the Expat license (https://www.gnu.org/licenses/license-list.html#Expat) + */ + public static function getGlyphs(): array + { + return [ + 'space' => '0x00a0', + 'exclam' => '0x0021', + 'quotedbl' => '0x0022', + 'numbersign' => '0x0023', + 'dollar' => '0x0024', + 'percent' => '0x0025', + 'ampersand' => '0x0026', + 'quotesingle' => '0x0027', + 'parenleft' => '0x0028', + 'parenright' => '0x0029', + 'asterisk' => '0x002a', + 'plus' => '0x002b', + 'comma' => '0x002c', + 'hyphen' => '0x002d', + 'period' => '0x002e', + 'slash' => '0x002f', + 'zero' => '0x0030', + 'one' => '0x0031', + 'two' => '0x0032', + 'three' => '0x0033', + 'four' => '0x0034', + 'five' => '0x0035', + 'six' => '0x0036', + 'seven' => '0x0037', + 'eight' => '0x0038', + 'nine' => '0x0039', + 'colon' => '0x003a', + 'semicolon' => '0x003b', + 'less' => '0x003c', + 'equal' => '0x003d', + 'greater' => '0x003e', + 'question' => '0x003f', + 'at' => '0x0040', + 'A' => '0x0041', + 'B' => '0x0042', + 'C' => '0x0043', + 'D' => '0x0044', + 'E' => '0x0045', + 'F' => '0x0046', + 'G' => '0x0047', + 'H' => '0x0048', + 'I' => '0x0049', + 'J' => '0x004a', + 'K' => '0x004b', + 'L' => '0x004c', + 'M' => '0x004d', + 'N' => '0x004e', + 'O' => '0x004f', + 'P' => '0x0050', + 'Q' => '0x0051', + 'R' => '0x0052', + 'S' => '0x0053', + 'T' => '0x0054', + 'U' => '0x0055', + 'V' => '0x0056', + 'W' => '0x0057', + 'X' => '0x0058', + 'Y' => '0x0059', + 'Z' => '0x005a', + 'bracketleft' => '0x005b', + 'backslash' => '0x005c', + 'bracketright' => '0x005d', + 'asciicircum' => '0x005e', + 'underscore' => '0x005f', + 'grave' => '0x0060', + 'a' => '0x0061', + 'b' => '0x0062', + 'c' => '0x0063', + 'd' => '0x0064', + 'e' => '0x0065', + 'f' => '0x0066', + 'g' => '0x0067', + 'h' => '0x0068', + 'i' => '0x0069', + 'j' => '0x006a', + 'k' => '0x006b', + 'l' => '0x006c', + 'm' => '0x006d', + 'n' => '0x006e', + 'o' => '0x006f', + 'p' => '0x0070', + 'q' => '0x0071', + 'r' => '0x0072', + 's' => '0x0073', + 't' => '0x0074', + 'u' => '0x0075', + 'v' => '0x0076', + 'w' => '0x0077', + 'x' => '0x0078', + 'y' => '0x0079', + 'z' => '0x007a', + 'braceleft' => '0x007b', + 'bar' => '0x007c', + 'braceright' => '0x007d', + 'asciitilde' => '0x007e', + 'exclamdown' => '0x00a1', + 'cent' => '0x00a2', + 'sterling' => '0x00a3', + 'currency' => '0x00a4', + 'yen' => '0x00a5', + 'brokenbar' => '0x00a6', + 'section' => '0x00a7', + 'dieresis' => '0x00a8', + 'copyright' => '0x00a9', + 'ordfeminine' => '0x00aa', + 'guillemotleft' => '0x00ab', + 'logicalnot' => '0x00ac', + 'minus' => '0x2212', + 'registered' => '0x00ae', + 'macron' => '0x02c9', + 'degree' => '0x00b0', + 'plusminus' => '0x00b1', + 'twosuperior' => '0x00b2', + 'threesuperior' => '0x00b3', + 'acute' => '0x00b4', + 'mu' => '0x03bc', + 'paragraph' => '0x00b6', + 'periodcentered' => '0x2219', + 'cedilla' => '0x00b8', + 'onesuperior' => '0x00b9', + 'ordmasculine' => '0x00ba', + 'guillemotright' => '0x00bb', + 'onequarter' => '0x00bc', + 'onehalf' => '0x00bd', + 'threequarters' => '0x00be', + 'questiondown' => '0x00bf', + 'Agrave' => '0x00c0', + 'Aacute' => '0x00c1', + 'Acircumflex' => '0x00c2', + 'Atilde' => '0x00c3', + 'Adieresis' => '0x00c4', + 'Aring' => '0x00c5', + 'AE' => '0x00c6', + 'Ccedilla' => '0x00c7', + 'Egrave' => '0x00c8', + 'Eacute' => '0x00c9', + 'Ecircumflex' => '0x00ca', + 'Edieresis' => '0x00cb', + 'Igrave' => '0x00cc', + 'Iacute' => '0x00cd', + 'Icircumflex' => '0x00ce', + 'Idieresis' => '0x00cf', + 'Eth' => '0x00d0', + 'Ntilde' => '0x00d1', + 'Ograve' => '0x00d2', + 'Oacute' => '0x00d3', + 'Ocircumflex' => '0x00d4', + 'Otilde' => '0x00d5', + 'Odieresis' => '0x00d6', + 'multiply' => '0x00d7', + 'Oslash' => '0x00d8', + 'Ugrave' => '0x00d9', + 'Uacute' => '0x00da', + 'Ucircumflex' => '0x00db', + 'Udieresis' => '0x00dc', + 'Yacute' => '0x00dd', + 'Thorn' => '0x00de', + 'germandbls' => '0x00df', + 'agrave' => '0x00e0', + 'aacute' => '0x00e1', + 'acircumflex' => '0x00e2', + 'atilde' => '0x00e3', + 'adieresis' => '0x00e4', + 'aring' => '0x00e5', + 'ae' => '0x00e6', + 'ccedilla' => '0x00e7', + 'egrave' => '0x00e8', + 'eacute' => '0x00e9', + 'ecircumflex' => '0x00ea', + 'edieresis' => '0x00eb', + 'igrave' => '0x00ec', + 'iacute' => '0x00ed', + 'icircumflex' => '0x00ee', + 'idieresis' => '0x00ef', + 'eth' => '0x00f0', + 'ntilde' => '0x00f1', + 'ograve' => '0x00f2', + 'oacute' => '0x00f3', + 'ocircumflex' => '0x00f4', + 'otilde' => '0x00f5', + 'odieresis' => '0x00f6', + 'divide' => '0x00f7', + 'oslash' => '0x00f8', + 'ugrave' => '0x00f9', + 'uacute' => '0x00fa', + 'ucircumflex' => '0x00fb', + 'udieresis' => '0x00fc', + 'yacute' => '0x00fd', + 'thorn' => '0x00fe', + 'ydieresis' => '0x00ff', + 'Amacron' => '0x0100', + 'amacron' => '0x0101', + 'Abreve' => '0x0102', + 'abreve' => '0x0103', + 'Aogonek' => '0x0104', + 'aogonek' => '0x0105', + 'Cacute' => '0x0106', + 'cacute' => '0x0107', + 'Ccircumflex' => '0x0108', + 'ccircumflex' => '0x0109', + 'Cdotaccent' => '0x010a', + 'cdotaccent' => '0x010b', + 'Ccaron' => '0x010c', + 'ccaron' => '0x010d', + 'Dcaron' => '0x010e', + 'dcaron' => '0x010f', + 'Dcroat' => '0x0110', + 'dcroat' => '0x0111', + 'Emacron' => '0x0112', + 'emacron' => '0x0113', + 'Ebreve' => '0x0114', + 'ebreve' => '0x0115', + 'Edotaccent' => '0x0116', + 'edotaccent' => '0x0117', + 'Eogonek' => '0x0118', + 'eogonek' => '0x0119', + 'Ecaron' => '0x011a', + 'ecaron' => '0x011b', + 'Gcircumflex' => '0x011c', + 'gcircumflex' => '0x011d', + 'Gbreve' => '0x011e', + 'gbreve' => '0x011f', + 'Gdotaccent' => '0x0120', + 'gdotaccent' => '0x0121', + 'Gcommaaccent' => '0x0122', + 'gcommaaccent' => '0x0123', + 'Hcircumflex' => '0x0124', + 'hcircumflex' => '0x0125', + 'Hbar' => '0x0126', + 'hbar' => '0x0127', + 'Itilde' => '0x0128', + 'itilde' => '0x0129', + 'Imacron' => '0x012a', + 'imacron' => '0x012b', + 'Ibreve' => '0x012c', + 'ibreve' => '0x012d', + 'Iogonek' => '0x012e', + 'iogonek' => '0x012f', + 'Idotaccent' => '0x0130', + 'dotlessi' => '0x0131', + 'IJ' => '0x0132', + 'ij' => '0x0133', + 'Jcircumflex' => '0x0134', + 'jcircumflex' => '0x0135', + 'Kcommaaccent' => '0x0136', + 'kcommaaccent' => '0x0137', + 'kgreenlandic' => '0x0138', + 'Lacute' => '0x0139', + 'lacute' => '0x013a', + 'Lcommaaccent' => '0x013b', + 'lcommaaccent' => '0x013c', + 'Lcaron' => '0x013d', + 'lcaron' => '0x013e', + 'Ldot' => '0x013f', + 'ldot' => '0x0140', + 'Lslash' => '0x0141', + 'lslash' => '0x0142', + 'Nacute' => '0x0143', + 'nacute' => '0x0144', + 'Ncommaaccent' => '0x0145', + 'ncommaaccent' => '0x0146', + 'Ncaron' => '0x0147', + 'ncaron' => '0x0148', + 'napostrophe' => '0x0149', + 'Eng' => '0x014a', + 'eng' => '0x014b', + 'Omacron' => '0x014c', + 'omacron' => '0x014d', + 'Obreve' => '0x014e', + 'obreve' => '0x014f', + 'Ohungarumlaut' => '0x0150', + 'ohungarumlaut' => '0x0151', + 'OE' => '0x0152', + 'oe' => '0x0153', + 'Racute' => '0x0154', + 'racute' => '0x0155', + 'Rcommaaccent' => '0x0156', + 'rcommaaccent' => '0x0157', + 'Rcaron' => '0x0158', + 'rcaron' => '0x0159', + 'Sacute' => '0x015a', + 'sacute' => '0x015b', + 'Scircumflex' => '0x015c', + 'scircumflex' => '0x015d', + 'Scedilla' => '0xf6c1', + 'scedilla' => '0xf6c2', + 'Scaron' => '0x0160', + 'scaron' => '0x0161', + 'Tcommaaccent' => '0x021a', + 'tcommaaccent' => '0x021b', + 'Tcaron' => '0x0164', + 'tcaron' => '0x0165', + 'Tbar' => '0x0166', + 'tbar' => '0x0167', + 'Utilde' => '0x0168', + 'utilde' => '0x0169', + 'Umacron' => '0x016a', + 'umacron' => '0x016b', + 'Ubreve' => '0x016c', + 'ubreve' => '0x016d', + 'Uring' => '0x016e', + 'uring' => '0x016f', + 'Uhungarumlaut' => '0x0170', + 'uhungarumlaut' => '0x0171', + 'Uogonek' => '0x0172', + 'uogonek' => '0x0173', + 'Wcircumflex' => '0x0174', + 'wcircumflex' => '0x0175', + 'Ycircumflex' => '0x0176', + 'ycircumflex' => '0x0177', + 'Ydieresis' => '0x0178', + 'Zacute' => '0x0179', + 'zacute' => '0x017a', + 'Zdotaccent' => '0x017b', + 'zdotaccent' => '0x017c', + 'Zcaron' => '0x017d', + 'zcaron' => '0x017e', + 'longs' => '0x017f', + 'florin' => '0x0192', + 'Ohorn' => '0x01a0', + 'ohorn' => '0x01a1', + 'Uhorn' => '0x01af', + 'uhorn' => '0x01b0', + 'Gcaron' => '0x01e6', + 'gcaron' => '0x01e7', + 'Aringacute' => '0x01fa', + 'aringacute' => '0x01fb', + 'AEacute' => '0x01fc', + 'aeacute' => '0x01fd', + 'Oslashacute' => '0x01fe', + 'oslashacute' => '0x01ff', + 'Scommaaccent' => '0x0218', + 'scommaaccent' => '0x0219', + 'afii57929' => '0x02bc', + 'afii64937' => '0x02bd', + 'circumflex' => '0x02c6', + 'caron' => '0x02c7', + 'breve' => '0x02d8', + 'dotaccent' => '0x02d9', + 'ring' => '0x02da', + 'ogonek' => '0x02db', + 'tilde' => '0x02dc', + 'hungarumlaut' => '0x02dd', + 'gravecomb' => '0x0300', + 'acutecomb' => '0x0301', + 'tildecomb' => '0x0303', + 'hookabovecomb' => '0x0309', + 'dotbelowcomb' => '0x0323', + 'tonos' => '0x0384', + 'dieresistonos' => '0x0385', + 'Alphatonos' => '0x0386', + 'anoteleia' => '0x0387', + 'Epsilontonos' => '0x0388', + 'Etatonos' => '0x0389', + 'Iotatonos' => '0x038a', + 'Omicrontonos' => '0x038c', + 'Upsilontonos' => '0x038e', + 'Omegatonos' => '0x038f', + 'iotadieresistonos' => '0x0390', + 'Alpha' => '0x0391', + 'Beta' => '0x0392', + 'Gamma' => '0x0393', + 'Delta' => '0x2206', + 'Epsilon' => '0x0395', + 'Zeta' => '0x0396', + 'Eta' => '0x0397', + 'Theta' => '0x0398', + 'Iota' => '0x0399', + 'Kappa' => '0x039a', + 'Lambda' => '0x039b', + 'Mu' => '0x039c', + 'Nu' => '0x039d', + 'Xi' => '0x039e', + 'Omicron' => '0x039f', + 'Pi' => '0x03a0', + 'Rho' => '0x03a1', + 'Sigma' => '0x03a3', + 'Tau' => '0x03a4', + 'Upsilon' => '0x03a5', + 'Phi' => '0x03a6', + 'Chi' => '0x03a7', + 'Psi' => '0x03a8', + 'Omega' => '0x2126', + 'Iotadieresis' => '0x03aa', + 'Upsilondieresis' => '0x03ab', + 'alphatonos' => '0x03ac', + 'epsilontonos' => '0x03ad', + 'etatonos' => '0x03ae', + 'iotatonos' => '0x03af', + 'upsilondieresistonos' => '0x03b0', + 'alpha' => '0x03b1', + 'beta' => '0x03b2', + 'gamma' => '0x03b3', + 'delta' => '0x03b4', + 'epsilon' => '0x03b5', + 'zeta' => '0x03b6', + 'eta' => '0x03b7', + 'theta' => '0x03b8', + 'iota' => '0x03b9', + 'kappa' => '0x03ba', + 'lambda' => '0x03bb', + 'nu' => '0x03bd', + 'xi' => '0x03be', + 'omicron' => '0x03bf', + 'pi' => '0x03c0', + 'rho' => '0x03c1', + 'sigma1' => '0x03c2', + 'sigma' => '0x03c3', + 'tau' => '0x03c4', + 'upsilon' => '0x03c5', + 'phi' => '0x03c6', + 'chi' => '0x03c7', + 'psi' => '0x03c8', + 'omega' => '0x03c9', + 'iotadieresis' => '0x03ca', + 'upsilondieresis' => '0x03cb', + 'omicrontonos' => '0x03cc', + 'upsilontonos' => '0x03cd', + 'omegatonos' => '0x03ce', + 'theta1' => '0x03d1', + 'Upsilon1' => '0x03d2', + 'phi1' => '0x03d5', + 'omega1' => '0x03d6', + 'afii10023' => '0x0401', + 'afii10051' => '0x0402', + 'afii10052' => '0x0403', + 'afii10053' => '0x0404', + 'afii10054' => '0x0405', + 'afii10055' => '0x0406', + 'afii10056' => '0x0407', + 'afii10057' => '0x0408', + 'afii10058' => '0x0409', + 'afii10059' => '0x040a', + 'afii10060' => '0x040b', + 'afii10061' => '0x040c', + 'afii10062' => '0x040e', + 'afii10145' => '0x040f', + 'afii10017' => '0x0410', + 'afii10018' => '0x0411', + 'afii10019' => '0x0412', + 'afii10020' => '0x0413', + 'afii10021' => '0x0414', + 'afii10022' => '0x0415', + 'afii10024' => '0x0416', + 'afii10025' => '0x0417', + 'afii10026' => '0x0418', + 'afii10027' => '0x0419', + 'afii10028' => '0x041a', + 'afii10029' => '0x041b', + 'afii10030' => '0x041c', + 'afii10031' => '0x041d', + 'afii10032' => '0x041e', + 'afii10033' => '0x041f', + 'afii10034' => '0x0420', + 'afii10035' => '0x0421', + 'afii10036' => '0x0422', + 'afii10037' => '0x0423', + 'afii10038' => '0x0424', + 'afii10039' => '0x0425', + 'afii10040' => '0x0426', + 'afii10041' => '0x0427', + 'afii10042' => '0x0428', + 'afii10043' => '0x0429', + 'afii10044' => '0x042a', + 'afii10045' => '0x042b', + 'afii10046' => '0x042c', + 'afii10047' => '0x042d', + 'afii10048' => '0x042e', + 'afii10049' => '0x042f', + 'afii10065' => '0x0430', + 'afii10066' => '0x0431', + 'afii10067' => '0x0432', + 'afii10068' => '0x0433', + 'afii10069' => '0x0434', + 'afii10070' => '0x0435', + 'afii10072' => '0x0436', + 'afii10073' => '0x0437', + 'afii10074' => '0x0438', + 'afii10075' => '0x0439', + 'afii10076' => '0x043a', + 'afii10077' => '0x043b', + 'afii10078' => '0x043c', + 'afii10079' => '0x043d', + 'afii10080' => '0x043e', + 'afii10081' => '0x043f', + 'afii10082' => '0x0440', + 'afii10083' => '0x0441', + 'afii10084' => '0x0442', + 'afii10085' => '0x0443', + 'afii10086' => '0x0444', + 'afii10087' => '0x0445', + 'afii10088' => '0x0446', + 'afii10089' => '0x0447', + 'afii10090' => '0x0448', + 'afii10091' => '0x0449', + 'afii10092' => '0x044a', + 'afii10093' => '0x044b', + 'afii10094' => '0x044c', + 'afii10095' => '0x044d', + 'afii10096' => '0x044e', + 'afii10097' => '0x044f', + 'afii10071' => '0x0451', + 'afii10099' => '0x0452', + 'afii10100' => '0x0453', + 'afii10101' => '0x0454', + 'afii10102' => '0x0455', + 'afii10103' => '0x0456', + 'afii10104' => '0x0457', + 'afii10105' => '0x0458', + 'afii10106' => '0x0459', + 'afii10107' => '0x045a', + 'afii10108' => '0x045b', + 'afii10109' => '0x045c', + 'afii10110' => '0x045e', + 'afii10193' => '0x045f', + 'afii10146' => '0x0462', + 'afii10194' => '0x0463', + 'afii10147' => '0x0472', + 'afii10195' => '0x0473', + 'afii10148' => '0x0474', + 'afii10196' => '0x0475', + 'afii10050' => '0x0490', + 'afii10098' => '0x0491', + 'afii10846' => '0x04d9', + 'afii57799' => '0x05b0', + 'afii57801' => '0x05b1', + 'afii57800' => '0x05b2', + 'afii57802' => '0x05b3', + 'afii57793' => '0x05b4', + 'afii57794' => '0x05b5', + 'afii57795' => '0x05b6', + 'afii57798' => '0x05b7', + 'afii57797' => '0x05b8', + 'afii57806' => '0x05b9', + 'afii57796' => '0x05bb', + 'afii57807' => '0x05bc', + 'afii57839' => '0x05bd', + 'afii57645' => '0x05be', + 'afii57841' => '0x05bf', + 'afii57842' => '0x05c0', + 'afii57804' => '0x05c1', + 'afii57803' => '0x05c2', + 'afii57658' => '0x05c3', + 'afii57664' => '0x05d0', + 'afii57665' => '0x05d1', + 'afii57666' => '0x05d2', + 'afii57667' => '0x05d3', + 'afii57668' => '0x05d4', + 'afii57669' => '0x05d5', + 'afii57670' => '0x05d6', + 'afii57671' => '0x05d7', + 'afii57672' => '0x05d8', + 'afii57673' => '0x05d9', + 'afii57674' => '0x05da', + 'afii57675' => '0x05db', + 'afii57676' => '0x05dc', + 'afii57677' => '0x05dd', + 'afii57678' => '0x05de', + 'afii57679' => '0x05df', + 'afii57680' => '0x05e0', + 'afii57681' => '0x05e1', + 'afii57682' => '0x05e2', + 'afii57683' => '0x05e3', + 'afii57684' => '0x05e4', + 'afii57685' => '0x05e5', + 'afii57686' => '0x05e6', + 'afii57687' => '0x05e7', + 'afii57688' => '0x05e8', + 'afii57689' => '0x05e9', + 'afii57690' => '0x05ea', + 'afii57716' => '0x05f0', + 'afii57717' => '0x05f1', + 'afii57718' => '0x05f2', + 'afii57388' => '0x060c', + 'afii57403' => '0x061b', + 'afii57407' => '0x061f', + 'afii57409' => '0x0621', + 'afii57410' => '0x0622', + 'afii57411' => '0x0623', + 'afii57412' => '0x0624', + 'afii57413' => '0x0625', + 'afii57414' => '0x0626', + 'afii57415' => '0x0627', + 'afii57416' => '0x0628', + 'afii57417' => '0x0629', + 'afii57418' => '0x062a', + 'afii57419' => '0x062b', + 'afii57420' => '0x062c', + 'afii57421' => '0x062d', + 'afii57422' => '0x062e', + 'afii57423' => '0x062f', + 'afii57424' => '0x0630', + 'afii57425' => '0x0631', + 'afii57426' => '0x0632', + 'afii57427' => '0x0633', + 'afii57428' => '0x0634', + 'afii57429' => '0x0635', + 'afii57430' => '0x0636', + 'afii57431' => '0x0637', + 'afii57432' => '0x0638', + 'afii57433' => '0x0639', + 'afii57434' => '0x063a', + 'afii57440' => '0x0640', + 'afii57441' => '0x0641', + 'afii57442' => '0x0642', + 'afii57443' => '0x0643', + 'afii57444' => '0x0644', + 'afii57445' => '0x0645', + 'afii57446' => '0x0646', + 'afii57470' => '0x0647', + 'afii57448' => '0x0648', + 'afii57449' => '0x0649', + 'afii57450' => '0x064a', + 'afii57451' => '0x064b', + 'afii57452' => '0x064c', + 'afii57453' => '0x064d', + 'afii57454' => '0x064e', + 'afii57455' => '0x064f', + 'afii57456' => '0x0650', + 'afii57457' => '0x0651', + 'afii57458' => '0x0652', + 'afii57392' => '0x0660', + 'afii57393' => '0x0661', + 'afii57394' => '0x0662', + 'afii57395' => '0x0663', + 'afii57396' => '0x0664', + 'afii57397' => '0x0665', + 'afii57398' => '0x0666', + 'afii57399' => '0x0667', + 'afii57400' => '0x0668', + 'afii57401' => '0x0669', + 'afii57381' => '0x066a', + 'afii63167' => '0x066d', + 'afii57511' => '0x0679', + 'afii57506' => '0x067e', + 'afii57507' => '0x0686', + 'afii57512' => '0x0688', + 'afii57513' => '0x0691', + 'afii57508' => '0x0698', + 'afii57505' => '0x06a4', + 'afii57509' => '0x06af', + 'afii57514' => '0x06ba', + 'afii57519' => '0x06d2', + 'afii57534' => '0x06d5', + 'Wgrave' => '0x1e80', + 'wgrave' => '0x1e81', + 'Wacute' => '0x1e82', + 'wacute' => '0x1e83', + 'Wdieresis' => '0x1e84', + 'wdieresis' => '0x1e85', + 'Ygrave' => '0x1ef2', + 'ygrave' => '0x1ef3', + 'afii61664' => '0x200c', + 'afii301' => '0x200d', + 'afii299' => '0x200e', + 'afii300' => '0x200f', + 'figuredash' => '0x2012', + 'endash' => '0x2013', + 'emdash' => '0x2014', + 'afii00208' => '0x2015', + 'underscoredbl' => '0x2017', + 'quoteleft' => '0x2018', + 'quoteright' => '0x2019', + 'quotesinglbase' => '0x201a', + 'quotereversed' => '0x201b', + 'quotedblleft' => '0x201c', + 'quotedblright' => '0x201d', + 'quotedblbase' => '0x201e', + 'dagger' => '0x2020', + 'daggerdbl' => '0x2021', + 'bullet' => '0x2022', + 'onedotenleader' => '0x2024', + 'twodotenleader' => '0x2025', + 'ellipsis' => '0x2026', + 'afii61573' => '0x202c', + 'afii61574' => '0x202d', + 'afii61575' => '0x202e', + 'perthousand' => '0x2030', + 'minute' => '0x2032', + 'second' => '0x2033', + 'guilsinglleft' => '0x2039', + 'guilsinglright' => '0x203a', + 'exclamdbl' => '0x203c', + 'fraction' => '0x2215', + 'zerosuperior' => '0x2070', + 'foursuperior' => '0x2074', + 'fivesuperior' => '0x2075', + 'sixsuperior' => '0x2076', + 'sevensuperior' => '0x2077', + 'eightsuperior' => '0x2078', + 'ninesuperior' => '0x2079', + 'parenleftsuperior' => '0x207d', + 'parenrightsuperior' => '0x207e', + 'nsuperior' => '0x207f', + 'zeroinferior' => '0x2080', + 'oneinferior' => '0x2081', + 'twoinferior' => '0x2082', + 'threeinferior' => '0x2083', + 'fourinferior' => '0x2084', + 'fiveinferior' => '0x2085', + 'sixinferior' => '0x2086', + 'seveninferior' => '0x2087', + 'eightinferior' => '0x2088', + 'nineinferior' => '0x2089', + 'parenleftinferior' => '0x208d', + 'parenrightinferior' => '0x208e', + 'colonmonetary' => '0x20a1', + 'franc' => '0x20a3', + 'lira' => '0x20a4', + 'peseta' => '0x20a7', + 'afii57636' => '0x20aa', + 'dong' => '0x20ab', + 'Euro' => '0x20ac', + 'afii61248' => '0x2105', + 'Ifraktur' => '0x2111', + 'afii61289' => '0x2113', + 'afii61352' => '0x2116', + 'weierstrass' => '0x2118', + 'Rfraktur' => '0x211c', + 'prescription' => '0x211e', + 'trademark' => '0x2122', + 'estimated' => '0x212e', + 'aleph' => '0x2135', + 'onethird' => '0x2153', + 'twothirds' => '0x2154', + 'oneeighth' => '0x215b', + 'threeeighths' => '0x215c', + 'fiveeighths' => '0x215d', + 'seveneighths' => '0x215e', + 'arrowleft' => '0x2190', + 'arrowup' => '0x2191', + 'arrowright' => '0x2192', + 'arrowdown' => '0x2193', + 'arrowboth' => '0x2194', + 'arrowupdn' => '0x2195', + 'arrowupdnbse' => '0x21a8', + 'carriagereturn' => '0x21b5', + 'arrowdblleft' => '0x21d0', + 'arrowdblup' => '0x21d1', + 'arrowdblright' => '0x21d2', + 'arrowdbldown' => '0x21d3', + 'arrowdblboth' => '0x21d4', + 'universal' => '0x2200', + 'partialdiff' => '0x2202', + 'existential' => '0x2203', + 'emptyset' => '0x2205', + 'gradient' => '0x2207', + 'element' => '0x2208', + 'notelement' => '0x2209', + 'suchthat' => '0x220b', + 'product' => '0x220f', + 'summation' => '0x2211', + 'asteriskmath' => '0x2217', + 'radical' => '0x221a', + 'proportional' => '0x221d', + 'infinity' => '0x221e', + 'orthogonal' => '0x221f', + 'angle' => '0x2220', + 'logicaland' => '0x2227', + 'logicalor' => '0x2228', + 'intersection' => '0x2229', + 'union' => '0x222a', + 'integral' => '0x222b', + 'therefore' => '0x2234', + 'similar' => '0x223c', + 'congruent' => '0x2245', + 'approxequal' => '0x2248', + 'notequal' => '0x2260', + 'equivalence' => '0x2261', + 'lessequal' => '0x2264', + 'greaterequal' => '0x2265', + 'propersubset' => '0x2282', + 'propersuperset' => '0x2283', + 'notsubset' => '0x2284', + 'reflexsubset' => '0x2286', + 'reflexsuperset' => '0x2287', + 'circleplus' => '0x2295', + 'circlemultiply' => '0x2297', + 'perpendicular' => '0x22a5', + 'dotmath' => '0x22c5', + 'house' => '0x2302', + 'revlogicalnot' => '0x2310', + 'integraltp' => '0x2320', + 'integralbt' => '0x2321', + 'angleleft' => '0x2329', + 'angleright' => '0x232a', + 'SF100000' => '0x2500', + 'SF110000' => '0x2502', + 'SF010000' => '0x250c', + 'SF030000' => '0x2510', + 'SF020000' => '0x2514', + 'SF040000' => '0x2518', + 'SF080000' => '0x251c', + 'SF090000' => '0x2524', + 'SF060000' => '0x252c', + 'SF070000' => '0x2534', + 'SF050000' => '0x253c', + 'SF430000' => '0x2550', + 'SF240000' => '0x2551', + 'SF510000' => '0x2552', + 'SF520000' => '0x2553', + 'SF390000' => '0x2554', + 'SF220000' => '0x2555', + 'SF210000' => '0x2556', + 'SF250000' => '0x2557', + 'SF500000' => '0x2558', + 'SF490000' => '0x2559', + 'SF380000' => '0x255a', + 'SF280000' => '0x255b', + 'SF270000' => '0x255c', + 'SF260000' => '0x255d', + 'SF360000' => '0x255e', + 'SF370000' => '0x255f', + 'SF420000' => '0x2560', + 'SF190000' => '0x2561', + 'SF200000' => '0x2562', + 'SF230000' => '0x2563', + 'SF470000' => '0x2564', + 'SF480000' => '0x2565', + 'SF410000' => '0x2566', + 'SF450000' => '0x2567', + 'SF460000' => '0x2568', + 'SF400000' => '0x2569', + 'SF540000' => '0x256a', + 'SF530000' => '0x256b', + 'SF440000' => '0x256c', + 'upblock' => '0x2580', + 'dnblock' => '0x2584', + 'block' => '0x2588', + 'lfblock' => '0x258c', + 'rtblock' => '0x2590', + 'ltshade' => '0x2591', + 'shade' => '0x2592', + 'dkshade' => '0x2593', + 'filledbox' => '0x25a0', + 'H22073' => '0x25a1', + 'H18543' => '0x25aa', + 'H18551' => '0x25ab', + 'filledrect' => '0x25ac', + 'triagup' => '0x25b2', + 'triagrt' => '0x25ba', + 'triagdn' => '0x25bc', + 'triaglf' => '0x25c4', + 'lozenge' => '0x25ca', + 'circle' => '0x25cb', + 'H18533' => '0x25cf', + 'invbullet' => '0x25d8', + 'invcircle' => '0x25d9', + 'openbullet' => '0x25e6', + 'smileface' => '0x263a', + 'invsmileface' => '0x263b', + 'sun' => '0x263c', + 'female' => '0x2640', + 'male' => '0x2642', + 'spade' => '0x2660', + 'club' => '0x2663', + 'heart' => '0x2665', + 'diamond' => '0x2666', + 'musicalnote' => '0x266a', + 'musicalnotedbl' => '0x266b', + 'dotlessj' => '0xf6be', + 'LL' => '0xf6bf', + 'll' => '0xf6c0', + 'commaaccent' => '0xf6c3', + 'afii10063' => '0xf6c4', + 'afii10064' => '0xf6c5', + 'afii10192' => '0xf6c6', + 'afii10831' => '0xf6c7', + 'afii10832' => '0xf6c8', + 'Acute' => '0xf6c9', + 'Caron' => '0xf6ca', + 'Dieresis' => '0xf6cb', + 'DieresisAcute' => '0xf6cc', + 'DieresisGrave' => '0xf6cd', + 'Grave' => '0xf6ce', + 'Hungarumlaut' => '0xf6cf', + 'Macron' => '0xf6d0', + 'cyrBreve' => '0xf6d1', + 'cyrFlex' => '0xf6d2', + 'dblGrave' => '0xf6d3', + 'cyrbreve' => '0xf6d4', + 'cyrflex' => '0xf6d5', + 'dblgrave' => '0xf6d6', + 'dieresisacute' => '0xf6d7', + 'dieresisgrave' => '0xf6d8', + 'copyrightserif' => '0xf6d9', + 'registerserif' => '0xf6da', + 'trademarkserif' => '0xf6db', + 'onefitted' => '0xf6dc', + 'rupiah' => '0xf6dd', + 'threequartersemdash' => '0xf6de', + 'centinferior' => '0xf6df', + 'centsuperior' => '0xf6e0', + 'commainferior' => '0xf6e1', + 'commasuperior' => '0xf6e2', + 'dollarinferior' => '0xf6e3', + 'dollarsuperior' => '0xf6e4', + 'hypheninferior' => '0xf6e5', + 'hyphensuperior' => '0xf6e6', + 'periodinferior' => '0xf6e7', + 'periodsuperior' => '0xf6e8', + 'asuperior' => '0xf6e9', + 'bsuperior' => '0xf6ea', + 'dsuperior' => '0xf6eb', + 'esuperior' => '0xf6ec', + 'isuperior' => '0xf6ed', + 'lsuperior' => '0xf6ee', + 'msuperior' => '0xf6ef', + 'osuperior' => '0xf6f0', + 'rsuperior' => '0xf6f1', + 'ssuperior' => '0xf6f2', + 'tsuperior' => '0xf6f3', + 'Brevesmall' => '0xf6f4', + 'Caronsmall' => '0xf6f5', + 'Circumflexsmall' => '0xf6f6', + 'Dotaccentsmall' => '0xf6f7', + 'Hungarumlautsmall' => '0xf6f8', + 'Lslashsmall' => '0xf6f9', + 'OEsmall' => '0xf6fa', + 'Ogoneksmall' => '0xf6fb', + 'Ringsmall' => '0xf6fc', + 'Scaronsmall' => '0xf6fd', + 'Tildesmall' => '0xf6fe', + 'Zcaronsmall' => '0xf6ff', + 'exclamsmall' => '0xf721', + 'dollaroldstyle' => '0xf724', + 'ampersandsmall' => '0xf726', + 'zerooldstyle' => '0xf730', + 'oneoldstyle' => '0xf731', + 'twooldstyle' => '0xf732', + 'threeoldstyle' => '0xf733', + 'fouroldstyle' => '0xf734', + 'fiveoldstyle' => '0xf735', + 'sixoldstyle' => '0xf736', + 'sevenoldstyle' => '0xf737', + 'eightoldstyle' => '0xf738', + 'nineoldstyle' => '0xf739', + 'questionsmall' => '0xf73f', + 'Gravesmall' => '0xf760', + 'Asmall' => '0xf761', + 'Bsmall' => '0xf762', + 'Csmall' => '0xf763', + 'Dsmall' => '0xf764', + 'Esmall' => '0xf765', + 'Fsmall' => '0xf766', + 'Gsmall' => '0xf767', + 'Hsmall' => '0xf768', + 'Ismall' => '0xf769', + 'Jsmall' => '0xf76a', + 'Ksmall' => '0xf76b', + 'Lsmall' => '0xf76c', + 'Msmall' => '0xf76d', + 'Nsmall' => '0xf76e', + 'Osmall' => '0xf76f', + 'Psmall' => '0xf770', + 'Qsmall' => '0xf771', + 'Rsmall' => '0xf772', + 'Ssmall' => '0xf773', + 'Tsmall' => '0xf774', + 'Usmall' => '0xf775', + 'Vsmall' => '0xf776', + 'Wsmall' => '0xf777', + 'Xsmall' => '0xf778', + 'Ysmall' => '0xf779', + 'Zsmall' => '0xf77a', + 'exclamdownsmall' => '0xf7a1', + 'centoldstyle' => '0xf7a2', + 'Dieresissmall' => '0xf7a8', + 'Macronsmall' => '0xf7af', + 'Acutesmall' => '0xf7b4', + 'Cedillasmall' => '0xf7b8', + 'questiondownsmall' => '0xf7bf', + 'Agravesmall' => '0xf7e0', + 'Aacutesmall' => '0xf7e1', + 'Acircumflexsmall' => '0xf7e2', + 'Atildesmall' => '0xf7e3', + 'Adieresissmall' => '0xf7e4', + 'Aringsmall' => '0xf7e5', + 'AEsmall' => '0xf7e6', + 'Ccedillasmall' => '0xf7e7', + 'Egravesmall' => '0xf7e8', + 'Eacutesmall' => '0xf7e9', + 'Ecircumflexsmall' => '0xf7ea', + 'Edieresissmall' => '0xf7eb', + 'Igravesmall' => '0xf7ec', + 'Iacutesmall' => '0xf7ed', + 'Icircumflexsmall' => '0xf7ee', + 'Idieresissmall' => '0xf7ef', + 'Ethsmall' => '0xf7f0', + 'Ntildesmall' => '0xf7f1', + 'Ogravesmall' => '0xf7f2', + 'Oacutesmall' => '0xf7f3', + 'Ocircumflexsmall' => '0xf7f4', + 'Otildesmall' => '0xf7f5', + 'Odieresissmall' => '0xf7f6', + 'Oslashsmall' => '0xf7f8', + 'Ugravesmall' => '0xf7f9', + 'Uacutesmall' => '0xf7fa', + 'Ucircumflexsmall' => '0xf7fb', + 'Udieresissmall' => '0xf7fc', + 'Yacutesmall' => '0xf7fd', + 'Thornsmall' => '0xf7fe', + 'Ydieresissmall' => '0xf7ff', + 'radicalex' => '0xf8e5', + 'arrowvertex' => '0xf8e6', + 'arrowhorizex' => '0xf8e7', + 'registersans' => '0xf8e8', + 'copyrightsans' => '0xf8e9', + 'trademarksans' => '0xf8ea', + 'parenlefttp' => '0xf8eb', + 'parenleftex' => '0xf8ec', + 'parenleftbt' => '0xf8ed', + 'bracketlefttp' => '0xf8ee', + 'bracketleftex' => '0xf8ef', + 'bracketleftbt' => '0xf8f0', + 'bracelefttp' => '0xf8f1', + 'braceleftmid' => '0xf8f2', + 'braceleftbt' => '0xf8f3', + 'braceex' => '0xf8f4', + 'integralex' => '0xf8f5', + 'parenrighttp' => '0xf8f6', + 'parenrightex' => '0xf8f7', + 'parenrightbt' => '0xf8f8', + 'bracketrighttp' => '0xf8f9', + 'bracketrightex' => '0xf8fa', + 'bracketrightbt' => '0xf8fb', + 'bracerighttp' => '0xf8fc', + 'bracerightmid' => '0xf8fd', + 'bracerightbt' => '0xf8fe', + 'ff' => '0xfb00', + 'fi' => '0xfb01', + 'fl' => '0xfb02', + 'ffi' => '0xfb03', + 'ffl' => '0xfb04', + 'afii57705' => '0xfb1f', + 'afii57694' => '0xfb2a', + 'afii57695' => '0xfb2b', + 'afii57723' => '0xfb35', + 'afii57700' => '0xfb4b', + ]; + } + + public static function getCodePoint($glyph): ?int + { + $glyphsMap = static::getGlyphs(); + + if (isset($glyphsMap[$glyph])) { + return hexdec($glyphsMap[$glyph]); + } + + return null; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/StandardEncoding.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/StandardEncoding.php new file mode 100644 index 00000000..01d0a1c4 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/StandardEncoding.php @@ -0,0 +1,76 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +// Source : http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/StandardEncoding.pm + +namespace Smalot\PdfParser\Encoding; + +/** + * Class StandardEncoding + */ +class StandardEncoding extends AbstractEncoding +{ + public function getTranslations(): array + { + $encoding = + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + 'space exclam quotedbl numbersign dollar percent ampersand quoteright '. + 'parenleft parenright asterisk plus comma hyphen period slash zero '. + 'one two three four five six seven eight nine colon semicolon less '. + 'equal greater question at A B C D E F G H I J K L M N O P Q R S T U '. + 'V W X Y Z bracketleft backslash bracketright asciicircum underscore '. + 'quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z '. + 'braceleft bar braceright asciitilde .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef exclamdown cent '. + 'sterling fraction yen florin section currency quotesingle '. + 'quotedblleft guillemotleft guilsinglleft guilsinglright fi fl '. + '.notdef endash dagger daggerdbl periodcentered .notdef paragraph '. + 'bullet quotesinglbase quotedblbase quotedblright guillemotright '. + 'ellipsis perthousand .notdef questiondown .notdef grave acute '. + 'circumflex tilde macron breve dotaccent dieresis .notdef ring '. + 'cedilla .notdef hungarumlaut ogonek caron emdash .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef AE .notdef '. + 'ordfeminine .notdef .notdef .notdef .notdef Lslash Oslash OE '. + 'ordmasculine .notdef .notdef .notdef .notdef .notdef ae .notdef '. + '.notdef .notdef dotlessi .notdef .notdef lslash oslash oe germandbls '. + '.notdef .notdef .notdef .notdef'; + + return explode(' ', $encoding); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php new file mode 100644 index 00000000..1938f555 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php @@ -0,0 +1,76 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +// Source : http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/WinANSIEncoding.pm + +namespace Smalot\PdfParser\Encoding; + +/** + * Class WinAnsiEncoding + */ +class WinAnsiEncoding extends AbstractEncoding +{ + public function getTranslations(): array + { + $encoding = + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + '.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. + 'space exclam quotedbl numbersign dollar percent ampersand quotesingle '. + 'parenleft parenright asterisk plus comma hyphen period slash zero one '. + 'two three four five six seven eight nine colon semicolon less equal '. + 'greater question at A B C D E F G H I J K L M N O P Q R S T U V W X '. + 'Y Z bracketleft backslash bracketright asciicircum underscore '. + 'grave a b c d e f g h i j k l m n o p q r s t u v w x y z '. + 'braceleft bar braceright asciitilde bullet Euro bullet quotesinglbase '. + 'florin quotedblbase ellipsis dagger daggerdbl circumflex perthousand '. + 'Scaron guilsinglleft OE bullet Zcaron bullet bullet quoteleft quoteright '. + 'quotedblleft quotedblright bullet endash emdash tilde trademark scaron '. + 'guilsinglright oe bullet zcaron Ydieresis space exclamdown cent '. + 'sterling currency yen brokenbar section dieresis copyright '. + 'ordfeminine guillemotleft logicalnot hyphen registered macron degree '. + 'plusminus twosuperior threesuperior acute mu paragraph '. + 'periodcentered cedilla onesuperior ordmasculine guillemotright '. + 'onequarter onehalf threequarters questiondown Agrave Aacute '. + 'Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute '. + 'Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde '. + 'Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave '. + 'Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute '. + 'acircumflex atilde adieresis aring ae ccedilla egrave eacute '. + 'ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde '. + 'ograve oacute ocircumflex otilde odieresis divide oslash ugrave '. + 'uacute ucircumflex udieresis yacute thorn ydieresis'; + + return explode(' ', $encoding); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php new file mode 100644 index 00000000..9eda9ce2 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php @@ -0,0 +1,12 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +use Smalot\PdfParser\Encoding\WinAnsiEncoding; +use Smalot\PdfParser\Exception\EncodingNotFoundException; + +/** + * Class Font + */ +class Font extends PDFObject +{ + public const MISSING = '?'; + + /** + * @var array + */ + protected $table; + + /** + * @var array + */ + protected $tableSizes; + + /** + * Caches results from uchr. + * + * @var array + */ + private static $uchrCache = []; + + /** + * In some PDF-files encoding could be referenced by object id but object itself does not contain + * `/Type /Encoding` in its dictionary. These objects wouldn't be initialized as Encoding in + * \Smalot\PdfParser\PDFObject::factory() during file parsing (they would be just PDFObject). + * + * Therefore, we create an instance of Encoding from them during decoding and cache this value in this property. + * + * @var Encoding + * + * @see https://github.com/smalot/pdfparser/pull/500 + */ + private $initializedEncodingByPdfObject; + + public function init() + { + // Load translate table. + $this->loadTranslateTable(); + } + + public function getName(): string + { + return $this->has('BaseFont') ? (string) $this->get('BaseFont') : '[Unknown]'; + } + + public function getType(): string + { + return (string) $this->header->get('Subtype'); + } + + public function getDetails(bool $deep = true): array + { + $details = []; + + $details['Name'] = $this->getName(); + $details['Type'] = $this->getType(); + $details['Encoding'] = ($this->has('Encoding') ? (string) $this->get('Encoding') : 'Ansi'); + + $details += parent::getDetails($deep); + + return $details; + } + + /** + * @return string|bool + */ + public function translateChar(string $char, bool $use_default = true) + { + $dec = hexdec(bin2hex($char)); + + if (\array_key_exists($dec, $this->table)) { + return $this->table[$dec]; + } + + // fallback for decoding single-byte ANSI characters that are not in the lookup table + $fallbackDecoded = $char; + if ( + \strlen($char) < 2 + && $this->has('Encoding') + && $this->get('Encoding') instanceof Encoding + ) { + try { + if (WinAnsiEncoding::class === $this->get('Encoding')->__toString()) { + $fallbackDecoded = self::uchr($dec); + } + } catch (EncodingNotFoundException $e) { + // Encoding->getEncodingClass() throws EncodingNotFoundException when BaseEncoding doesn't exists + // See table 5.11 on PDF 1.5 specs for more info + } + } + + return $use_default ? self::MISSING : $fallbackDecoded; + } + + /** + * Convert unicode character code to "utf-8" encoded string. + * + * @param int|float $code Unicode character code. Will be casted to int internally! + */ + public static function uchr($code): string + { + // note: + // $code was typed as int before, but changed in https://github.com/smalot/pdfparser/pull/623 + // because in some cases uchr was called with a float instead of an integer. + $code = (int) $code; + + if (!isset(self::$uchrCache[$code])) { + // html_entity_decode() will not work with UTF-16 or UTF-32 char entities, + // therefore, we use mb_convert_encoding() instead + self::$uchrCache[$code] = mb_convert_encoding("&#{$code};", 'UTF-8', 'HTML-ENTITIES'); + } + + return self::$uchrCache[$code]; + } + + /** + * Init internal chars translation table by ToUnicode CMap. + */ + public function loadTranslateTable(): array + { + if (null !== $this->table) { + return $this->table; + } + + $this->table = []; + $this->tableSizes = [ + 'from' => 1, + 'to' => 1, + ]; + + if ($this->has('ToUnicode')) { + $content = $this->get('ToUnicode')->getContent(); + $matches = []; + + // Support for multiple spacerange sections + if (preg_match_all('/begincodespacerange(?P.*?)endcodespacerange/s', $content, $matches)) { + foreach ($matches['sections'] as $section) { + $regexp = '/<(?P[0-9A-F]+)> *<(?P[0-9A-F]+)>[ \r\n]+/is'; + + preg_match_all($regexp, $section, $matches); + + $this->tableSizes = [ + 'from' => max(1, \strlen(current($matches['from'])) / 2), + 'to' => max(1, \strlen(current($matches['to'])) / 2), + ]; + + break; + } + } + + // Support for multiple bfchar sections + if (preg_match_all('/beginbfchar(?P.*?)endbfchar/s', $content, $matches)) { + foreach ($matches['sections'] as $section) { + $regexp = '/<(?P[0-9A-F]+)> *<(?P[0-9A-F]+)>[ \r\n]+/is'; + + preg_match_all($regexp, $section, $matches); + + $this->tableSizes['from'] = max(1, \strlen(current($matches['from'])) / 2); + + foreach ($matches['from'] as $key => $from) { + $parts = preg_split( + '/([0-9A-F]{4})/i', + $matches['to'][$key], + 0, + \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE + ); + $text = ''; + foreach ($parts as $part) { + $text .= self::uchr(hexdec($part)); + } + $this->table[hexdec($from)] = $text; + } + } + } + + // Support for multiple bfrange sections + if (preg_match_all('/beginbfrange(?P.*?)endbfrange/s', $content, $matches)) { + foreach ($matches['sections'] as $section) { + /** + * Regexp to capture , , and either or [...] items. + * - (?P...) Source range's start + * - (?P...) Source range's end + * - (?P...) Destination range's offset or each char code + * Some PDF file has 2-byte Unicode values on new lines > added \r\n + */ + $regexp = '/<(?P[0-9A-F]+)> *<(?P[0-9A-F]+)> *(?P<[0-9A-F]+>|\[[\r\n<>0-9A-F ]+\])[ \r\n]+/is'; + + preg_match_all($regexp, $section, $matches); + + foreach ($matches['from'] as $key => $from) { + $char_from = hexdec($from); + $char_to = hexdec($matches['to'][$key]); + $dest = $matches['dest'][$key]; + + if (1 === preg_match('/^<(?P[0-9A-F]+)>$/i', $dest, $offset_matches)) { + // Support for : + $offset = hexdec($offset_matches['offset']); + + for ($char = $char_from; $char <= $char_to; ++$char) { + $this->table[$char] = self::uchr($char - $char_from + $offset); + } + } else { + // Support for : [ ... ] + $strings = []; + $matched = preg_match_all('/<(?P[0-9A-F]+)> */is', $dest, $strings); + if (false === $matched || 0 === $matched) { + continue; + } + + foreach ($strings['string'] as $position => $string) { + $parts = preg_split( + '/([0-9A-F]{4})/i', + $string, + 0, + \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE + ); + if (false === $parts) { + continue; + } + $text = ''; + foreach ($parts as $part) { + $text .= self::uchr(hexdec($part)); + } + $this->table[$char_from + $position] = $text; + } + } + } + } + } + } + + return $this->table; + } + + /** + * Set custom char translation table where: + * - key - integer character code; + * - value - "utf-8" encoded value; + * + * @return void + */ + public function setTable(array $table) + { + $this->table = $table; + } + + /** + * Calculate text width with data from header 'Widths'. If width of character is not found then character is added to missing array. + */ + public function calculateTextWidth(string $text, ?array &$missing = null): ?float + { + $index_map = array_flip($this->table); + $details = $this->getDetails(); + + // Usually, Widths key is set in $details array, but if it isn't use an empty array instead. + $widths = $details['Widths'] ?? []; + + /* + * Widths array is zero indexed but table is not. We must map them based on FirstChar and LastChar + * + * Note: Without the change you would see warnings in PHP 8.4 because the values of FirstChar or LastChar + * can be null sometimes. + */ + $width_map = array_flip(range((int) $details['FirstChar'], (int) $details['LastChar'])); + + $width = null; + $missing = []; + $textLength = mb_strlen($text); + for ($i = 0; $i < $textLength; ++$i) { + $char = mb_substr($text, $i, 1); + if ( + !\array_key_exists($char, $index_map) + || !\array_key_exists($index_map[$char], $width_map) + || !\array_key_exists($width_map[$index_map[$char]], $widths) + ) { + $missing[] = $char; + continue; + } + $width_index = $width_map[$index_map[$char]]; + $width += $widths[$width_index]; + } + + return $width; + } + + /** + * Decode hexadecimal encoded string. If $add_braces is true result value would be wrapped by parentheses. + */ + public static function decodeHexadecimal(string $hexa, bool $add_braces = false): string + { + // Special shortcut for XML content. + if (false !== stripos($hexa, ')/si', $hexa, -1, \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE); + + foreach ($parts as $part) { + if (preg_match('/^<[a-f0-9\s]+>$/si', $part)) { + // strip whitespace + $part = preg_replace("/\s/", '', $part); + $part = trim($part, '<>'); + if ($add_braces) { + $text .= '('; + } + + $part = pack('H*', $part); + $text .= ($add_braces ? preg_replace('/\\\/s', '\\\\\\', $part) : $part); + + if ($add_braces) { + $text .= ')'; + } + } else { + $text .= $part; + } + } + + return $text; + } + + /** + * Decode string with octal-decoded chunks. + */ + public static function decodeOctal(string $text): string + { + // Replace all double backslashes \\ with a special string + $text = strtr($text, ['\\\\' => '[**pdfparserdblslsh**]']); + + // Now we can replace all octal codes without worrying about + // escaped backslashes + $text = preg_replace_callback('/\\\\([0-7]{1,3})/', function ($m) { + return \chr(octdec($m[1])); + }, $text); + + // Unescape any parentheses + $text = str_replace(['\\(', '\\)'], ['(', ')'], $text); + + // Replace instances of the special string with a single backslash + return str_replace('[**pdfparserdblslsh**]', '\\', $text); + } + + /** + * Decode string with html entity encoded chars. + */ + public static function decodeEntities(string $text): string + { + return preg_replace_callback('/#([0-9a-f]{2})/i', function ($m) { + return \chr(hexdec($m[1])); + }, $text); + } + + /** + * Check if given string is Unicode text (by BOM); + * If true - decode to "utf-8" encoded string. + * Otherwise - return text as is. + * + * @todo Rename in next major release to make the name correspond to reality (for ex. decodeIfUnicode()) + */ + public static function decodeUnicode(string $text): string + { + if ("\xFE\xFF" === substr($text, 0, 2)) { + // Strip U+FEFF byte order marker. + $decode = substr($text, 2); + $text = ''; + $length = \strlen($decode); + + for ($i = 0; $i < $length; $i += 2) { + $text .= self::uchr(hexdec(bin2hex(substr($decode, $i, 2)))); + } + } + + return $text; + } + + /** + * @todo Deprecated, use $this->config->getFontSpaceLimit() instead. + */ + protected function getFontSpaceLimit(): int + { + return $this->config->getFontSpaceLimit(); + } + + /** + * Decode text by commands array. + */ + public function decodeText(array $commands, float $fontFactor = 4): string + { + $word_position = 0; + $words = []; + $font_space = $this->getFontSpaceLimit() * abs($fontFactor) / 4; + + foreach ($commands as $command) { + switch ($command[PDFObject::TYPE]) { + case 'n': + $offset = (float) trim($command[PDFObject::COMMAND]); + if ($offset - (float) $font_space < 0) { + $word_position = \count($words); + } + continue 2; + case '<': + // Decode hexadecimal. + $text = self::decodeHexadecimal('<'.$command[PDFObject::COMMAND].'>'); + break; + + default: + // Decode octal (if necessary). + $text = self::decodeOctal($command[PDFObject::COMMAND]); + } + + // replace escaped chars + $text = str_replace( + ['\\\\', '\(', '\)', '\n', '\r', '\t', '\f', '\ ', '\b'], + [\chr(92), \chr(40), \chr(41), \chr(10), \chr(13), \chr(9), \chr(12), \chr(32), \chr(8)], + $text + ); + + // add content to result string + if (isset($words[$word_position])) { + $words[$word_position] .= $text; + } else { + $words[$word_position] = $text; + } + } + + foreach ($words as &$word) { + $word = $this->decodeContent($word); + $word = str_replace("\t", ' ', $word); + } + + // Remove internal "words" that are just spaces, but leave them + // if they are at either end of the array of words. This fixes, + // for example, lines that are justified to fill + // a whole row. + for ($x = \count($words) - 2; $x >= 1; --$x) { + if ('' === trim($words[$x], ' ')) { + unset($words[$x]); + } + } + $words = array_values($words); + + // Cut down on the number of unnecessary internal spaces by + // imploding the string on the null byte, and checking if the + // text includes extra spaces on either side. If so, merge + // where appropriate. + $words = implode("\x00\x00", $words); + $words = str_replace( + [" \x00\x00 ", "\x00\x00 ", " \x00\x00", "\x00\x00"], + [' ', ' ', ' ', ' '], + $words + ); + + return $words; + } + + /** + * Decode given $text to "utf-8" encoded string. + * + * @param bool $unicode This parameter is deprecated and might be removed in a future release + */ + public function decodeContent(string $text, ?bool &$unicode = null): string + { + // If this string begins with a UTF-16BE BOM, then decode it + // directly as Unicode + if ("\xFE\xFF" === substr($text, 0, 2)) { + return $this->decodeUnicode($text); + } + + if ($this->has('ToUnicode')) { + return $this->decodeContentByToUnicodeCMapOrDescendantFonts($text); + } + + if ($this->has('Encoding')) { + $result = $this->decodeContentByEncoding($text); + + if (null !== $result) { + return $result; + } + } + + return $this->decodeContentByAutodetectIfNecessary($text); + } + + /** + * First try to decode $text by ToUnicode CMap. + * If char translation not found in ToUnicode CMap tries: + * - If DescendantFonts exists tries to decode char by one of that fonts. + * - If have no success to decode by DescendantFonts interpret $text as a string with "Windows-1252" encoding. + * - If DescendantFonts does not exist just return "?" as decoded char. + * + * @todo Seems this is invalid algorithm that do not follow pdf-format specification. Must be rewritten. + */ + private function decodeContentByToUnicodeCMapOrDescendantFonts(string $text): string + { + $bytes = $this->tableSizes['from']; + + if ($bytes) { + $result = ''; + $length = \strlen($text); + + for ($i = 0; $i < $length; $i += $bytes) { + $char = substr($text, $i, $bytes); + + if (false !== ($decoded = $this->translateChar($char, false))) { + $char = $decoded; + } elseif ($this->has('DescendantFonts')) { + if ($this->get('DescendantFonts') instanceof PDFObject) { + $fonts = $this->get('DescendantFonts')->getHeader()->getElements(); + } else { + $fonts = $this->get('DescendantFonts')->getContent(); + } + $decoded = false; + + foreach ($fonts as $font) { + if ($font instanceof self) { + if (false !== ($decoded = $font->translateChar($char, false))) { + $decoded = mb_convert_encoding($decoded, 'UTF-8', 'Windows-1252'); + break; + } + } + } + + if (false !== $decoded) { + $char = $decoded; + } else { + $char = mb_convert_encoding($char, 'UTF-8', 'Windows-1252'); + } + } else { + $char = self::MISSING; + } + + $result .= $char; + } + + $text = $result; + } + + return $text; + } + + /** + * Decode content by any type of Encoding (dictionary's item) instance. + */ + private function decodeContentByEncoding(string $text): ?string + { + $encoding = $this->get('Encoding'); + + // When Encoding referenced by object id (/Encoding 520 0 R) but object itself does not contain `/Type /Encoding` in it's dictionary. + if ($encoding instanceof PDFObject) { + $encoding = $this->getInitializedEncodingByPdfObject($encoding); + } + + // When Encoding referenced by object id (/Encoding 520 0 R) but object itself contains `/Type /Encoding` in it's dictionary. + if ($encoding instanceof Encoding) { + return $this->decodeContentByEncodingEncoding($text, $encoding); + } + + // When Encoding is just string (/Encoding /WinAnsiEncoding) + if ($encoding instanceof Element) { // todo: ElementString class must by used? + return $this->decodeContentByEncodingElement($text, $encoding); + } + + // don't double-encode strings already in UTF-8 + if (!mb_check_encoding($text, 'UTF-8')) { + return mb_convert_encoding($text, 'UTF-8', 'Windows-1252'); + } + + return $text; + } + + /** + * Returns already created or create a new one if not created before Encoding instance by PDFObject instance. + */ + private function getInitializedEncodingByPdfObject(PDFObject $PDFObject): Encoding + { + if (!$this->initializedEncodingByPdfObject) { + $this->initializedEncodingByPdfObject = $this->createInitializedEncodingByPdfObject($PDFObject); + } + + return $this->initializedEncodingByPdfObject; + } + + /** + * Decode content when $encoding (given by $this->get('Encoding')) is instance of Encoding. + */ + private function decodeContentByEncodingEncoding(string $text, Encoding $encoding): string + { + $result = ''; + $length = \strlen($text); + + for ($i = 0; $i < $length; ++$i) { + $dec_av = hexdec(bin2hex($text[$i])); + $dec_ap = $encoding->translateChar($dec_av); + $result .= self::uchr($dec_ap ?? $dec_av); + } + + return $result; + } + + /** + * Decode content when $encoding (given by $this->get('Encoding')) is instance of Element. + */ + private function decodeContentByEncodingElement(string $text, Element $encoding): ?string + { + $pdfEncodingName = $encoding->getContent(); + + // mb_convert_encoding does not support MacRoman/macintosh, + // so we use iconv() here + $iconvEncodingName = $this->getIconvEncodingNameOrNullByPdfEncodingName($pdfEncodingName); + + return $iconvEncodingName ? iconv($iconvEncodingName, 'UTF-8//TRANSLIT//IGNORE', $text) : null; + } + + /** + * Convert PDF encoding name to iconv-known encoding name. + */ + private function getIconvEncodingNameOrNullByPdfEncodingName(string $pdfEncodingName): ?string + { + $pdfToIconvEncodingNameMap = [ + 'StandardEncoding' => 'ISO-8859-1', + 'MacRomanEncoding' => 'MACINTOSH', + 'WinAnsiEncoding' => 'CP1252', + ]; + + return \array_key_exists($pdfEncodingName, $pdfToIconvEncodingNameMap) + ? $pdfToIconvEncodingNameMap[$pdfEncodingName] + : null; + } + + /** + * If string seems like "utf-8" encoded string do nothing and just return given string as is. + * Otherwise, interpret string as "Window-1252" encoded string. + * + * @return string|false + */ + private function decodeContentByAutodetectIfNecessary(string $text) + { + if (mb_check_encoding($text, 'UTF-8')) { + return $text; + } + + return mb_convert_encoding($text, 'UTF-8', 'Windows-1252'); + // todo: Why exactly `Windows-1252` used? + } + + /** + * Create Encoding instance by PDFObject instance and init it. + */ + private function createInitializedEncodingByPdfObject(PDFObject $PDFObject): Encoding + { + $encoding = $this->createEncodingByPdfObject($PDFObject); + $encoding->init(); + + return $encoding; + } + + /** + * Create Encoding instance by PDFObject instance (without init). + */ + private function createEncodingByPdfObject(PDFObject $PDFObject): Encoding + { + $document = $PDFObject->getDocument(); + $header = $PDFObject->getHeader(); + $content = $PDFObject->getContent(); + $config = $PDFObject->getConfig(); + + return new Encoding($document, $header, $content, $config); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType0.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType0.php new file mode 100644 index 00000000..310c44cf --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType0.php @@ -0,0 +1,42 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Font; + +use Smalot\PdfParser\Font; + +/** + * Class FontCIDFontType0 + */ +class FontCIDFontType0 extends Font +{ +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType2.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType2.php new file mode 100644 index 00000000..077d6e7a --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType2.php @@ -0,0 +1,42 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Font; + +use Smalot\PdfParser\Font; + +/** + * Class FontCIDFontType2 + */ +class FontCIDFontType2 extends Font +{ +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontTrueType.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontTrueType.php new file mode 100644 index 00000000..8a55c004 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontTrueType.php @@ -0,0 +1,42 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Font; + +use Smalot\PdfParser\Font; + +/** + * Class FontTrueType + */ +class FontTrueType extends Font +{ +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType0.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType0.php new file mode 100644 index 00000000..4e5cc6db --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType0.php @@ -0,0 +1,42 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Font; + +use Smalot\PdfParser\Font; + +/** + * Class FontType0 + */ +class FontType0 extends Font +{ +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType1.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType1.php new file mode 100644 index 00000000..ee93e691 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType1.php @@ -0,0 +1,42 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Font; + +use Smalot\PdfParser\Font; + +/** + * Class FontType1 + */ +class FontType1 extends Font +{ +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType3.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType3.php new file mode 100644 index 00000000..08f8da04 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType3.php @@ -0,0 +1,42 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\Font; + +use Smalot\PdfParser\Font; + +/** + * Class FontType3 + */ +class FontType3 extends Font +{ +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Header.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Header.php new file mode 100644 index 00000000..b58773a5 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Header.php @@ -0,0 +1,194 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +use Smalot\PdfParser\Element\ElementArray; +use Smalot\PdfParser\Element\ElementMissing; +use Smalot\PdfParser\Element\ElementStruct; +use Smalot\PdfParser\Element\ElementXRef; + +/** + * Class Header + */ +class Header +{ + /** + * @var Document|null + */ + protected $document; + + /** + * @var Element[] + */ + protected $elements; + + /** + * @param Element[] $elements list of elements + * @param Document $document document + */ + public function __construct(array $elements = [], ?Document $document = null) + { + $this->elements = $elements; + $this->document = $document; + } + + public function init() + { + foreach ($this->elements as $element) { + if ($element instanceof Element) { + $element->init(); + } + } + } + + /** + * Returns all elements. + */ + public function getElements() + { + foreach ($this->elements as $name => $element) { + $this->resolveXRef($name); + } + + return $this->elements; + } + + /** + * Used only for debug. + */ + public function getElementTypes(): array + { + $types = []; + + foreach ($this->elements as $key => $element) { + $types[$key] = \get_class($element); + } + + return $types; + } + + public function getDetails(bool $deep = true): array + { + $values = []; + $elements = $this->getElements(); + + foreach ($elements as $key => $element) { + if ($element instanceof self && $deep) { + $values[$key] = $element->getDetails($deep); + } elseif ($element instanceof PDFObject && $deep) { + $values[$key] = $element->getDetails(false); + } elseif ($element instanceof ElementArray) { + if ($deep) { + $values[$key] = $element->getDetails(); + } + } elseif ($element instanceof Element) { + $values[$key] = (string) $element; + } + } + + return $values; + } + + /** + * Indicate if an element name is available in header. + * + * @param string $name the name of the element + */ + public function has(string $name): bool + { + return \array_key_exists($name, $this->elements); + } + + /** + * @return Element|PDFObject + */ + public function get(string $name) + { + if (\array_key_exists($name, $this->elements) && $element = $this->resolveXRef($name)) { + return $element; + } + + return new ElementMissing(); + } + + /** + * Resolve XRef to object. + * + * @return Element|PDFObject + * + * @throws \Exception + */ + protected function resolveXRef(string $name) + { + if (($obj = $this->elements[$name]) instanceof ElementXRef && null !== $this->document) { + /** @var ElementXRef $obj */ + $object = $this->document->getObjectById($obj->getId()); + + if (null === $object) { + return new ElementMissing(); + } + + // Update elements list for future calls. + $this->elements[$name] = $object; + } + + return $this->elements[$name]; + } + + /** + * @param string $content The content to parse + * @param Document $document The document + * @param int $position The new position of the cursor after parsing + */ + public static function parse(string $content, Document $document, int &$position = 0): self + { + /* @var Header $header */ + if ('<<' == substr(trim($content), 0, 2)) { + $header = ElementStruct::parse($content, $document, $position); + } else { + $elements = ElementArray::parse($content, $document, $position); + $header = new self([], $document); + + if ($elements) { + $header = new self($elements->getRawContent(), null); + } + } + + if ($header) { + return $header; + } + + // Build an empty header. + return new self([], $document); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php new file mode 100644 index 00000000..378ae15d --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php @@ -0,0 +1,1215 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +use Smalot\PdfParser\Exception\InvalidDictionaryObjectException; +use Smalot\PdfParser\XObject\Form; +use Smalot\PdfParser\XObject\Image; + +/** + * Class PDFObject + */ +class PDFObject +{ + public const TYPE = 't'; + + public const OPERATOR = 'o'; + + public const COMMAND = 'c'; + + /** + * The recursion stack. + * + * @var array + */ + public static $recursionStack = []; + + /** + * @var Document|null + */ + protected $document; + + /** + * @var Header + */ + protected $header; + + /** + * @var string + */ + protected $content; + + /** + * @var Config|null + */ + protected $config; + + /** + * @var bool + */ + protected $addPositionWhitespace = false; + + public function __construct( + Document $document, + ?Header $header = null, + ?string $content = null, + ?Config $config = null + ) { + $this->document = $document; + $this->header = $header ?? new Header(); + $this->content = $content; + $this->config = $config; + } + + public function init() + { + } + + public function getDocument(): Document + { + return $this->document; + } + + public function getHeader(): ?Header + { + return $this->header; + } + + public function getConfig(): ?Config + { + return $this->config; + } + + /** + * @return Element|PDFObject|Header + */ + public function get(string $name) + { + return $this->header->get($name); + } + + public function has(string $name): bool + { + return $this->header->has($name); + } + + public function getDetails(bool $deep = true): array + { + return $this->header->getDetails($deep); + } + + public function getContent(): ?string + { + return $this->content; + } + + /** + * Creates a duplicate of the document stream with + * strings and other items replaced by $char. Formerly + * getSectionsText() used this output to more easily gather offset + * values to extract text from the *actual* document stream. + * + * @deprecated function is no longer used and will be removed in a future release + * + * @internal + */ + public function cleanContent(string $content, string $char = 'X') + { + $char = $char[0]; + $content = str_replace(['\\\\', '\\)', '\\('], $char.$char, $content); + + // Remove image bloc with binary content + preg_match_all('/\s(BI\s.*?(\sID\s).*?(\sEI))\s/s', $content, $matches, \PREG_OFFSET_CAPTURE); + foreach ($matches[0] as $part) { + $content = substr_replace($content, str_repeat($char, \strlen($part[0])), $part[1], \strlen($part[0])); + } + + // Clean content in square brackets [.....] + preg_match_all('/\[((\(.*?\)|[0-9\.\-\s]*)*)\]/s', $content, $matches, \PREG_OFFSET_CAPTURE); + foreach ($matches[1] as $part) { + $content = substr_replace($content, str_repeat($char, \strlen($part[0])), $part[1], \strlen($part[0])); + } + + // Clean content in round brackets (.....) + preg_match_all('/\((.*?)\)/s', $content, $matches, \PREG_OFFSET_CAPTURE); + foreach ($matches[1] as $part) { + $content = substr_replace($content, str_repeat($char, \strlen($part[0])), $part[1], \strlen($part[0])); + } + + // Clean structure + if ($parts = preg_split('/(<|>)/s', $content, -1, \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE)) { + $content = ''; + $level = 0; + foreach ($parts as $part) { + if ('<' == $part) { + ++$level; + } + + $content .= (0 == $level ? $part : str_repeat($char, \strlen($part))); + + if ('>' == $part) { + --$level; + } + } + } + + // Clean BDC and EMC markup + preg_match_all( + '/(\/[A-Za-z0-9\_]*\s*'.preg_quote($char).'*BDC)/s', + $content, + $matches, + \PREG_OFFSET_CAPTURE + ); + foreach ($matches[1] as $part) { + $content = substr_replace($content, str_repeat($char, \strlen($part[0])), $part[1], \strlen($part[0])); + } + + preg_match_all('/\s(EMC)\s/s', $content, $matches, \PREG_OFFSET_CAPTURE); + foreach ($matches[1] as $part) { + $content = substr_replace($content, str_repeat($char, \strlen($part[0])), $part[1], \strlen($part[0])); + } + + return $content; + } + + /** + * Takes a string of PDF document stream text and formats + * it into a multi-line string with one PDF command on each line, + * separated by \r\n. If the given string is null, or binary data + * is detected instead of a document stream then return an empty + * string. + */ + private function formatContent(?string $content): string + { + if (null === $content) { + return ''; + } + + // Outside of (String) and inline image content in PDF document + // streams, all text should conform to UTF-8. Test for binary + // content by deleting everything after the first open- + // parenthesis ( which indicates the beginning of a string, or + // the first ID command which indicates the beginning of binary + // inline image content. Then test what remains for valid + // UTF-8. If it's not UTF-8, return an empty string as this + // $content is most likely binary. Unfortunately, using + // mb_check_encoding(..., 'UTF-8') is not strict enough, so the + // following regexp, adapted from the W3, is used. See: + // https://www.w3.org/International/questions/qa-forms-utf-8.en + // We use preg_replace() instead of preg_match() to avoid "JIT + // stack limit exhausted" errors on larger files. + $utf8Filter = preg_replace('/( + [\x09\x0A\x0D\x20-\x7E] | # ASCII + [\xC2-\xDF][\x80-\xBF] | # non-overlong 2-byte + \xE0[\xA0-\xBF][\x80-\xBF] | # excluding overlongs + [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} | # straight 3-byte + \xED[\x80-\x9F][\x80-\xBF] | # excluding surrogates + \xF0[\x90-\xBF][\x80-\xBF]{2} | # planes 1-3 + [\xF1-\xF3][\x80-\xBF]{3} | # planes 4-15 + \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16 + )/xs', '', preg_replace('/(\(|ID\s).*$/s', '', $content)); + + if ('' !== $utf8Filter) { + return ''; + } + + // Find all inline image content and replace them so they aren't + // affected by the next steps + $pdfInlineImages = []; + $offsetBI = 0; + while (preg_match('/\sBI\s(\/.+?)\sID\s(.+?)\sEI(?=\s|$)/s', $content, $text, \PREG_OFFSET_CAPTURE, $offsetBI)) { + // Attempt to detemine if this instance of the 'BI' command + // actually occured within a (string) using the following + // steps: + + // Step 1: Remove any escaped slashes and parentheses from + // the alleged image characteristics data + $para = str_replace(['\\\\', '\\(', '\\)'], '', $text[1][0]); + + // Step 2: Remove all correctly ordered and balanced + // parentheses from (strings) + do { + $paraTest = $para; + $para = preg_replace('/\(([^()]*)\)/', '$1', $paraTest); + } while ($para != $paraTest); + + $paraOpen = strpos($para, '('); + $paraClose = strpos($para, ')'); + + // Check: If the remaining text contains a close parenthesis + // ')' AND it occurs before any open parenthesis, then we + // are almost certain to be inside a (string) + if (0 < $paraClose && (false === $paraOpen || $paraClose < $paraOpen)) { + // Bump the search offset forward and match again + $offsetBI = (int) $text[1][1]; + continue; + } + + // Step 3: Double check that this is actually inline image + // data by parsing the alleged image characteristics as a + // dictionary + $dict = $this->parseDictionary('<<'.$text[1][0].'>>'); + + // Check if an image Width and Height are set in the dict + if ((isset($dict['W']) || isset($dict['Width'])) + && (isset($dict['H']) || isset($dict['Height']))) { + $id = uniqid('IMAGE_', true); + $pdfInlineImages[$id] = [ + preg_replace(['/\r\n/', '/\r/', '/\n/'], ' ', $text[1][0]), + preg_replace(['/\r\n/', '/\r/', '/\n/'], '', $text[2][0]), + ]; + $content = preg_replace( + '/'.preg_quote($text[0][0], '/').'/', + '^^^'.$id.'^^^', + $content, + 1 + ); + } else { + // If there was no valid dictionary, or a height and width + // weren't specified, then we don't know what this is, so + // just leave it alone; bump the search offset forward and + // match again + $offsetBI = (int) $text[1][1]; + } + } + + // Find all strings () and replace them so they aren't affected + // by the next steps + $pdfstrings = []; + $attempt = '('; + while (preg_match('/'.preg_quote($attempt, '/').'.*?\)/s', $content, $text)) { + // Remove all escaped slashes and parentheses from the target text + $para = str_replace(['\\\\', '\\(', '\\)'], '', $text[0]); + + // PDF strings can contain unescaped parentheses as long as + // they're balanced, so check for balanced parentheses + $left = preg_match_all('/\(/', $para); + $right = preg_match_all('/\)/', $para); + + if (')' == $para[-1] && $left == $right) { + // Replace the string with a unique placeholder + $id = uniqid('STRING_', true); + $pdfstrings[$id] = $text[0]; + $content = preg_replace( + '/'.preg_quote($text[0], '/').'/', + '@@@'.$id.'@@@', + $content, + 1 + ); + + // Reset to search for the next string + $attempt = '('; + } else { + // We had unbalanced parentheses, so use the current + // match as a base to find a longer string + $attempt = $text[0]; + } + } + + // Remove all carriage returns and line-feeds from the document stream + $content = str_replace(["\r", "\n"], ' ', trim($content)); + + // Find all dictionary << >> commands and replace them so they + // aren't affected by the next steps + $dictstore = []; + while (preg_match('/(<<.*?>> *)(BDC|BMC|DP|MP)/s', $content, $dicttext)) { + $dictid = uniqid('DICT_', true); + $dictstore[$dictid] = $dicttext[1]; + $content = preg_replace( + '/'.preg_quote($dicttext[0], '/').'/', + ' ###'.$dictid.'###'.$dicttext[2], + $content, + 1 + ); + } + + // Normalize white-space in the document stream + $content = preg_replace('/\s{2,}/', ' ', $content); + + // Find all valid PDF operators and add \r\n after each; this + // ensures there is just one command on every line + // Source: https://ia801001.us.archive.org/1/items/pdf1.7/pdf_reference_1-7.pdf - Appendix A + // Source: https://archive.org/download/pdf320002008/PDF32000_2008.pdf - Annex A + // Note: PDF Reference 1.7 lists 'I' and 'rI' as valid commands, while + // PDF 32000:2008 lists them as 'i' and 'ri' respectively. Both versions + // appear here in the list for completeness. + $operators = [ + 'b*', 'b', 'BDC', 'BMC', 'B*', 'BI', 'BT', 'BX', 'B', 'cm', 'cs', 'c', 'CS', + 'd0', 'd1', 'd', 'Do', 'DP', 'EMC', 'EI', 'ET', 'EX', 'f*', 'f', 'F', 'gs', + 'g', 'G', 'h', 'i', 'ID', 'I', 'j', 'J', 'k', 'K', 'l', 'm', 'MP', 'M', 'n', + 'q', 'Q', 're', 'rg', 'ri', 'rI', 'RG', 'scn', 'sc', 'sh', 's', 'SCN', 'SC', + 'S', 'T*', 'Tc', 'Td', 'TD', 'Tf', 'TJ', 'Tj', 'TL', 'Tm', 'Tr', 'Ts', 'Tw', + 'Tz', 'v', 'w', 'W*', 'W', 'y', '\'', '"', + ]; + foreach ($operators as $operator) { + $content = preg_replace( + '/(?> commands + $dictstore = array_reverse($dictstore, true); + foreach ($dictstore as $id => $dict) { + $content = str_replace('###'.$id.'###', $dict, $content); + } + + // Restore the original string content + $pdfstrings = array_reverse($pdfstrings, true); + foreach ($pdfstrings as $id => $text) { + // Strings may contain escaped newlines, or literal newlines + // and we should clean these up before replacing the string + // back into the content stream; this ensures no strings are + // split between two lines (every command must be on one line) + $text = str_replace( + ["\\\r\n", "\\\r", "\\\n", "\r", "\n"], + ['', '', '', '\r', '\n'], + $text + ); + + $content = str_replace('@@@'.$id.'@@@', $text, $content); + } + + // Restore the original content of any inline images + $pdfInlineImages = array_reverse($pdfInlineImages, true); + foreach ($pdfInlineImages as $id => $image) { + $content = str_replace( + '^^^'.$id.'^^^', + "\r\nBI\r\n".$image[0]." ID\r\n".$image[1]." EI\r\n", + $content + ); + } + + $content = trim(preg_replace(['/(\r\n){2,}/', '/\r\n +/'], "\r\n", $content)); + + return $content; + } + + /** + * getSectionsText() now takes an entire, unformatted + * document stream as a string, cleans it, then filters out + * commands that aren't needed for text positioning/extraction. It + * returns an array of unprocessed PDF commands, one command per + * element. + * + * @internal + */ + public function getSectionsText(?string $content): array + { + $sections = []; + + // A cleaned stream has one command on every line, so split the + // cleaned stream content on \r\n into an array + $textCleaned = preg_split( + '/(\r\n|\n|\r)/', + $this->formatContent($content), + -1, + \PREG_SPLIT_NO_EMPTY + ); + + $inTextBlock = false; + foreach ($textCleaned as $line) { + $line = trim($line); + + // Skip empty lines + if ('' === $line) { + continue; + } + + // If a 'BT' is encountered, set the $inTextBlock flag + if (preg_match('/BT$/', $line)) { + $inTextBlock = true; + $sections[] = $line; + + // If an 'ET' is encountered, unset the $inTextBlock flag + } elseif ('ET' == $line) { + $inTextBlock = false; + $sections[] = $line; + } elseif ($inTextBlock) { + // If we are inside a BT ... ET text block, save all lines + $sections[] = trim($line); + } else { + // Otherwise, if we are outside of a text block, only + // save specific, necessary lines. Care should be taken + // to ensure a command being checked for *only* matches + // that command. For instance, a simple search for 'c' + // may also match the 'sc' command. See the command + // list in the formatContent() method above. + // Add more commands to save here as you find them in + // weird PDFs! + if ('q' == $line[-1] || 'Q' == $line[-1]) { + // Save and restore graphics state commands + $sections[] = $line; + } elseif (preg_match('/(?getFonts(); + } + + $firstFont = $this->document->getFirstFont(); + if (null !== $firstFont) { + $fonts[] = $firstFont; + } + + if (\count($fonts) > 0) { + return reset($fonts); + } + + return new Font($this->document, null, null, $this->config); + } + + /** + * Decode a '[]TJ' command and attempt to use alternate + * fonts if the current font results in output that contains + * Unicode control characters. + * + * @internal + * + * @param array> $command + */ + private function getTJUsingFontFallback(Font $font, array $command, ?Page $page = null, float $fontFactor = 4): string + { + $orig_text = $font->decodeText($command, $fontFactor); + $text = $orig_text; + + // If we make this a Config option, we can add a check if it's + // enabled here. + if (null !== $page) { + $font_ids = array_keys($page->getFonts()); + + // If the decoded text contains UTF-8 control characters + // then the font page being used is probably the wrong one. + // Loop through the rest of the fonts to see if we can get + // a good decode. Allow x09 to x0d which are whitespace. + while (preg_match('/[\x00-\x08\x0e-\x1f\x7f]/u', $text) || false !== strpos(bin2hex($text), '00')) { + // If we're out of font IDs, then give up and use the + // original string + if (0 == \count($font_ids)) { + return $orig_text; + } + + // Try the next font ID + $font = $page->getFont(array_shift($font_ids)); + $text = $font->decodeText($command, $fontFactor); + } + } + + return $text; + } + + /** + * Expects a string that is a full PDF dictionary object, + * including the outer enclosing << >> angle brackets + * + * @internal + * + * @throws InvalidDictionaryObjectException + */ + public function parseDictionary(string $dictionary): array + { + // Normalize whitespace + $dictionary = preg_replace(['/\r/', '/\n/', '/\s{2,}/'], ' ', trim($dictionary)); + + if ('<<' != substr($dictionary, 0, 2)) { + throw new InvalidDictionaryObjectException('Not a valid dictionary object.'); + } + + $parsed = []; + $stack = []; + $currentName = ''; + $arrayTypeNumeric = false; + + // Remove outer layer of dictionary, and split on tokens + $split = preg_split( + '/(<<|>>|\[|\]|\/[^\s\/\[\]\(\)<>]*)/', + trim(preg_replace('/^<<|>>$/', '', $dictionary)), + -1, + \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE + ); + + foreach ($split as $token) { + $token = trim($token); + switch ($token) { + case '': + break; + + // Open numeric array + case '[': + $parsed[$currentName] = []; + $arrayTypeNumeric = true; + + // Move up one level in the stack + $stack[\count($stack)] = &$parsed; + $parsed = &$parsed[$currentName]; + $currentName = ''; + break; + + // Open hashed array + case '<<': + $parsed[$currentName] = []; + $arrayTypeNumeric = false; + + // Move up one level in the stack + $stack[\count($stack)] = &$parsed; + $parsed = &$parsed[$currentName]; + $currentName = ''; + break; + + // Close numeric array + case ']': + // Revert string type arrays back to a single element + if (\is_array($parsed) && 1 == \count($parsed) + && isset($parsed[0]) && \is_string($parsed[0]) + && '' !== $parsed[0] && '/' != $parsed[0][0]) { + $parsed = '['.$parsed[0].']'; + } + // Close hashed array + // no break + case '>>': + $arrayTypeNumeric = false; + + // Move down one level in the stack + $parsed = &$stack[\count($stack) - 1]; + unset($stack[\count($stack) - 1]); + break; + + default: + // If value begins with a slash, then this is a name + // Add it to the appropriate array + if ('/' == substr($token, 0, 1)) { + $currentName = substr($token, 1); + if (true == $arrayTypeNumeric) { + $parsed[] = $currentName; + $currentName = ''; + } + } elseif ('' != $currentName) { + if (false == $arrayTypeNumeric) { + $parsed[$currentName] = $token; + } + $currentName = ''; + } elseif ('' == $currentName) { + $parsed[] = $token; + } + } + } + + return $parsed; + } + + /** + * Returns the text content of a PDF as a string. Attempts to add + * whitespace for spacing and line-breaks where appropriate. + * + * getText() leverages getTextArray() to get the content + * of the document, setting the addPositionWhitespace flag to true + * so whitespace is inserted in a logical way for reading by + * humans. + */ + public function getText(?Page $page = null): string + { + $this->addPositionWhitespace = true; + $result = $this->getTextArray($page); + $this->addPositionWhitespace = false; + + return implode('', $result).' '; + } + + /** + * Returns the text content of a PDF as an array of strings. No + * extra whitespace is inserted besides what is actually encoded in + * the PDF text. + * + * @throws \Exception + */ + public function getTextArray(?Page $page = null): array + { + $result = []; + $text = []; + + $marked_stack = []; + $last_written_position = false; + + $sections = $this->getSectionsText($this->content); + $current_font = $this->getDefaultFont($page); + $current_font_size = 1; + $current_text_leading = 0; + + $current_position = ['x' => false, 'y' => false]; + $current_position_tm = [ + 'a' => 1, 'b' => 0, 'c' => 0, + 'i' => 0, 'j' => 1, 'k' => 0, + 'x' => 0, 'y' => 0, 'z' => 1, + ]; + $current_position_td = ['x' => 0, 'y' => 0]; + $current_position_cm = [ + 'a' => 1, 'b' => 0, 'c' => 0, + 'i' => 0, 'j' => 1, 'k' => 0, + 'x' => 0, 'y' => 0, 'z' => 1, + ]; + + $clipped_font = []; + $clipped_position_cm = []; + + self::$recursionStack[] = $this->getUniqueId(); + + foreach ($sections as $section) { + $commands = $this->getCommandsText($section); + foreach ($commands as $command) { + switch ($command[self::OPERATOR]) { + // Begin text object + case 'BT': + // Reset text positioning matrices + $current_position_tm = [ + 'a' => 1, 'b' => 0, 'c' => 0, + 'i' => 0, 'j' => 1, 'k' => 0, + 'x' => 0, 'y' => 0, 'z' => 1, + ]; + $current_position_td = ['x' => 0, 'y' => 0]; + $current_text_leading = 0; + break; + + // Begin marked content sequence with property list + case 'BDC': + if (preg_match('/(<<.*>>)$/', $command[self::COMMAND], $match)) { + $dict = $this->parseDictionary($match[1]); + + // Check for ActualText block + if (isset($dict['ActualText']) && \is_string($dict['ActualText']) && '' !== $dict['ActualText']) { + if ('[' == $dict['ActualText'][0]) { + // Simulate a 'TJ' command on the stack + $marked_stack[] = [ + 'ActualText' => $this->getCommandsText($dict['ActualText'].'TJ')[0], + ]; + } elseif ('<' == $dict['ActualText'][0] || '(' == $dict['ActualText'][0]) { + // Simulate a 'Tj' command on the stack + $marked_stack[] = [ + 'ActualText' => $this->getCommandsText($dict['ActualText'].'Tj')[0], + ]; + } + } + } + break; + + // Begin marked content sequence + case 'BMC': + if ('ReversedChars' == $command[self::COMMAND]) { + // Upon encountering a ReversedChars command, + // add the characters we've built up so far to + // the result array + $result = array_merge($result, $text); + + // Start a fresh $text array that will contain + // reversed characters + $text = []; + + // Add the reversed text flag to the stack + $marked_stack[] = ['ReversedChars' => true]; + } + break; + + // set graphics position matrix + case 'cm': + $args = preg_split('/\s+/s', $command[self::COMMAND]); + $current_position_cm = [ + 'a' => (float) $args[0], 'b' => (float) $args[1], 'c' => 0, + 'i' => (float) $args[2], 'j' => (float) $args[3], 'k' => 0, + 'x' => (float) $args[4], 'y' => (float) $args[5], 'z' => 1, + ]; + break; + + case 'Do': + if (is_null($page)) { + break; + } + + $args = preg_split('/\s/s', $command[self::COMMAND]); + $id = trim(array_pop($args), '/ '); + $xobject = $page->getXObject($id); + + // Check we got a PDFObject back. + if (!$xobject instanceof self) { + break; + } + + // If the PDFObject is an Image, do nothing as images + // aren't text. + if ($xobject instanceof Image) { + break; + } + + // Check this is not a circular reference. + if (\in_array($xobject->getUniqueId(), self::$recursionStack, true)) { + break; + } + + $objectText = $xobject->getText($page); + + // If the PDFObject is a Form and doesn't have any text, + // skip it. + if ($xobject instanceof Form && $objectText === ' ') { + break; + } + + $text[] = $objectText; + break; + + // Marked content point with (DP) & without (MP) property list + case 'DP': + case 'MP': + break; + + // End text object + case 'ET': + break; + + // Store current selected font and graphics matrix + case 'q': + $clipped_font[] = [$current_font, $current_font_size]; + $clipped_position_cm[] = $current_position_cm; + break; + + // Restore previous selected font and graphics matrix + case 'Q': + list($current_font, $current_font_size) = array_pop($clipped_font); + $current_position_cm = array_pop($clipped_position_cm); + break; + + // End marked content sequence + case 'EMC': + $data = false; + if (\count($marked_stack)) { + $marked = array_pop($marked_stack); + $action = key($marked); + $data = $marked[$action]; + + switch ($action) { + // If we are in ReversedChars mode... + case 'ReversedChars': + // Reverse the characters we've built up so far + foreach ($text as $key => $t) { + $text[$key] = implode('', array_reverse( + mb_str_split($t, 1, mb_internal_encoding()) + )); + } + + // Add these characters to the result array + $result = array_merge($result, $text); + + // Start a fresh $text array that will contain + // non-reversed characters + $text = []; + break; + + case 'ActualText': + // Use the content of the ActualText as a command + $command = $data; + break; + } + } + + // If this EMC command has been transformed into a 'Tj' + // or 'TJ' command because of being ActualText, then bypass + // the break to proceed to the writing section below. + if ('Tj' != $command[self::OPERATOR] && 'TJ' != $command[self::OPERATOR]) { + break; + } + + // no break + case "'": + case '"': + if ("'" == $command[self::OPERATOR] || '"' == $command[self::OPERATOR]) { + // Move to next line and write text + $current_position['x'] = 0; + $current_position_td['x'] = 0; + $current_position_td['y'] += $current_text_leading; + } + // no break + case 'Tj': + $command[self::COMMAND] = [$command]; + // no break + case 'TJ': + // Check the marked content stack for flags + $actual_text = false; + $reverse_text = false; + foreach ($marked_stack as $marked) { + if (isset($marked['ActualText'])) { + $actual_text = true; + } + if (isset($marked['ReversedChars'])) { + $reverse_text = true; + } + } + + // Account for text position ONLY just before we write text + if (false === $actual_text && \is_array($last_written_position)) { + // If $last_written_position is an array, that + // means we have stored text position coordinates + // for placing an ActualText + $currentX = $last_written_position[0]; + $currentY = $last_written_position[1]; + $last_written_position = false; + } else { + $currentX = $current_position_cm['x'] + $current_position_tm['x'] + $current_position_td['x']; + $currentY = $current_position_cm['y'] + $current_position_tm['y'] + $current_position_td['y']; + } + $whiteSpace = ''; + + $factorX = -$current_font_size * $current_position_tm['a'] - $current_font_size * $current_position_tm['i']; + $factorY = $current_font_size * $current_position_tm['b'] + $current_font_size * $current_position_tm['j']; + + if (true === $this->addPositionWhitespace && false !== $current_position['x']) { + $curY = $currentY - $current_position['y']; + if (abs($curY) >= abs($factorY) / 4) { + $whiteSpace = "\n"; + } else { + if (true === $reverse_text) { + $curX = $current_position['x'] - $currentX; + } else { + $curX = $currentX - $current_position['x']; + } + + // In abs($factorX * 7) below, the 7 is chosen arbitrarily + // as the number of apparent "spaces" in a document we + // would need before considering them a "tab". In the + // future, we might offer this value to users as a config + // option. + if ($curX >= abs($factorX * 7)) { + $whiteSpace = "\t"; + } elseif ($curX >= abs($factorX * 2)) { + $whiteSpace = ' '; + } + } + } + + $newtext = $this->getTJUsingFontFallback( + $current_font, + $command[self::COMMAND], + $page, + $factorX + ); + + // If there is no ActualText pending then write + if (false === $actual_text) { + $newtext = str_replace(["\r", "\n"], '', $newtext); + if (false !== $reverse_text) { + // If we are in ReversedChars mode, add the whitespace last + $text[] = preg_replace('/ $/', ' ', $newtext.$whiteSpace); + } else { + // Otherwise add the whitespace first + if (' ' === $whiteSpace && isset($text[\count($text) - 1])) { + $text[\count($text) - 1] = preg_replace('/ $/', '', $text[\count($text) - 1]); + } + $text[] = preg_replace('/^[ \t]{2}/', ' ', $whiteSpace.$newtext); + } + + // Record the position of this inserted text for comparison + // with the next text block. + // Provide a 'fudge' factor guess on how wide this text block + // is based on the number of characters. This helps limit the + // number of tabs inserted, but isn't perfect. + $factor = $factorX / 2; + $current_position = [ + 'x' => $currentX - mb_strlen($newtext) * $factor, + 'y' => $currentY, + ]; + } elseif (false === $last_written_position) { + // If there is an ActualText in the pipeline + // store the position this undisplayed text + // *would* have been written to, so the + // ActualText is displayed in the right spot + $last_written_position = [$currentX, $currentY]; + $current_position['x'] = $currentX; + } + break; + + // move to start of next line + case 'T*': + $current_position['x'] = 0; + $current_position_td['x'] = 0; + $current_position_td['y'] += $current_text_leading; + break; + + // set character spacing + case 'Tc': + break; + + // move text current point and set leading + case 'Td': + case 'TD': + // move text current point + $args = preg_split('/\s+/s', $command[self::COMMAND]); + $y = (float) array_pop($args); + $x = (float) array_pop($args); + + if ('TD' == $command[self::OPERATOR]) { + $current_text_leading = -$y * $current_position_tm['b'] - $y * $current_position_tm['j']; + } + + $current_position_td = [ + 'x' => $current_position_td['x'] + $x * $current_position_tm['a'] + $x * $current_position_tm['i'], + 'y' => $current_position_td['y'] + $y * $current_position_tm['b'] + $y * $current_position_tm['j'], + ]; + break; + + case 'Tf': + $args = preg_split('/\s/s', $command[self::COMMAND]); + $size = (float) array_pop($args); + $id = trim(array_pop($args), '/'); + if (null !== $page) { + $new_font = $page->getFont($id); + // If an invalid font ID is given, do not update the font. + // This should theoretically never happen, as the PDF spec states for the Tf operator: + // "The specified font value shall match a resource name in the Font entry of the default resource dictionary" + // (https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf, page 435) + // But we want to make sure that malformed PDFs do not simply crash. + if (null !== $new_font) { + $current_font = $new_font; + $current_font_size = $size; + } + } + break; + + // set leading + case 'TL': + $y = (float) $command[self::COMMAND]; + $current_text_leading = -$y * $current_position_tm['b'] + -$y * $current_position_tm['j']; + break; + + // set text position matrix + case 'Tm': + $args = preg_split('/\s+/s', $command[self::COMMAND]); + $current_position_tm = [ + 'a' => (float) $args[0], 'b' => (float) $args[1], 'c' => 0, + 'i' => (float) $args[2], 'j' => (float) $args[3], 'k' => 0, + 'x' => (float) $args[4], 'y' => (float) $args[5], 'z' => 1, + ]; + break; + + // set text rendering mode + case 'Ts': + break; + + // set super/subscripting text rise + case 'Ts': + break; + + // set word spacing + case 'Tw': + break; + + // set horizontal scaling + case 'Tz': + break; + + default: + } + } + } + + $result = array_merge($result, $text); + + return $result; + } + + /** + * getCommandsText() expects the content of $text_part to be an + * already formatted, single-line command from a document stream. + * The companion function getSectionsText() returns a document + * stream as an array of single commands for just this purpose. + * Because of this, the argument $offset is no longer used, and + * may be removed in a future PdfParser release. + * + * A better name for this function would be getCommandText() + * since it now always works on just one command. + */ + public function getCommandsText(string $text_part, int &$offset = 0): array + { + $commands = $matches = []; + + preg_match('/^(([\/\[\(<])?.*)(? '(', + self::OPERATOR => 'TJ', + self::COMMAND => $tjmatch[1], + ]; + if (isset($tjmatch[2]) && trim($tjmatch[2])) { + $subcommand[] = [ + self::TYPE => 'n', + self::OPERATOR => '', + self::COMMAND => $tjmatch[2], + ]; + } + $command = substr($command, \strlen($tjmatch[0])); + } + + // Search for hexadecimal <> format + if (preg_match('/^ *<([0-9a-f\s]*)> *(-?[\d.]+)?/i', $command, $tjmatch)) { + $tjmatch[1] = preg_replace('/\s/', '', $tjmatch[1]); + $subcommand[] = [ + self::TYPE => '<', + self::OPERATOR => 'TJ', + self::COMMAND => $tjmatch[1], + ]; + if (isset($tjmatch[2]) && trim($tjmatch[2])) { + $subcommand[] = [ + self::TYPE => 'n', + self::OPERATOR => '', + self::COMMAND => $tjmatch[2], + ]; + } + $command = substr($command, \strlen($tjmatch[0])); + } + } while ($command != $oldCommand); + + $command = $subcommand; + } elseif ('Tj' == $operator || "'" == $operator || '"' == $operator) { + // Depending on the string type, trim the data of the + // appropriate delimiters + if ('(' == $type) { + // Don't use trim() here since a () string may end with + // a balanced or escaped right parentheses, and trim() + // will delete both. Both strings below are valid: + // eg. (String()) + // eg. (String\)) + $command = preg_replace('/^\(|\)$/', '', $command); + } elseif ('<' == $type) { + $command = trim($command, '<>'); + } + } elseif ('/' == $type) { + $command = substr($command, 1); + } + + $commands[] = [ + self::TYPE => $type, + self::OPERATOR => $operator, + self::COMMAND => $command, + ]; + + return $commands; + } + + public static function factory( + Document $document, + Header $header, + ?string $content, + ?Config $config = null + ): self { + switch ($header->get('Type')->getContent()) { + case 'XObject': + switch ($header->get('Subtype')->getContent()) { + case 'Image': + return new Image($document, $header, $config->getRetainImageContent() ? $content : null, $config); + + case 'Form': + return new Form($document, $header, $content, $config); + } + + return new self($document, $header, $content, $config); + + case 'Pages': + return new Pages($document, $header, $content, $config); + + case 'Page': + return new Page($document, $header, $content, $config); + + case 'Encoding': + return new Encoding($document, $header, $content, $config); + + case 'Font': + $subtype = $header->get('Subtype')->getContent(); + $classname = '\Smalot\PdfParser\Font\Font'.$subtype; + + if (class_exists($classname)) { + return new $classname($document, $header, $content, $config); + } + + return new Font($document, $header, $content, $config); + + default: + return new self($document, $header, $content, $config); + } + } + + /** + * Returns unique id identifying the object. + */ + protected function getUniqueId(): string + { + return spl_object_hash($this); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Page.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Page.php new file mode 100644 index 00000000..1bd29e1e --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Page.php @@ -0,0 +1,1014 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +use Smalot\PdfParser\Element\ElementArray; +use Smalot\PdfParser\Element\ElementMissing; +use Smalot\PdfParser\Element\ElementNull; +use Smalot\PdfParser\Element\ElementXRef; + +class Page extends PDFObject +{ + /** + * @var Font[] + */ + protected $fonts; + + /** + * @var PDFObject[] + */ + protected $xobjects; + + /** + * @var array + */ + protected $dataTm; + + /** + * @param array<\Smalot\PdfParser\Font> $fonts + * + * @internal + */ + public function setFonts($fonts) + { + if (empty($this->fonts)) { + $this->fonts = $fonts; + } + } + + /** + * @return Font[] + */ + public function getFonts() + { + if (null !== $this->fonts) { + return $this->fonts; + } + + $resources = $this->get('Resources'); + + if (method_exists($resources, 'has') && $resources->has('Font')) { + if ($resources->get('Font') instanceof ElementMissing) { + return []; + } + + if ($resources->get('Font') instanceof Header) { + $fonts = $resources->get('Font')->getElements(); + } else { + $fonts = $resources->get('Font')->getHeader()->getElements(); + } + + $table = []; + + foreach ($fonts as $id => $font) { + if ($font instanceof Font) { + $table[$id] = $font; + + // Store too on cleaned id value (only numeric) + $id = preg_replace('/[^0-9\.\-_]/', '', $id); + if ('' != $id) { + $table[$id] = $font; + } + } + } + + return $this->fonts = $table; + } + + return []; + } + + public function getFont(string $id): ?Font + { + $fonts = $this->getFonts(); + + if (isset($fonts[$id])) { + return $fonts[$id]; + } + + // According to the PDF specs (https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf, page 238) + // "The font resource name presented to the Tf operator is arbitrary, as are the names for all kinds of resources" + // Instead, we search for the unfiltered name first and then do this cleaning as a fallback, so all tests still pass. + + if (isset($fonts[$id])) { + return $fonts[$id]; + } else { + $id = preg_replace('/[^0-9\.\-_]/', '', $id); + if (isset($fonts[$id])) { + return $fonts[$id]; + } + } + + return null; + } + + /** + * Support for XObject + * + * @return PDFObject[] + */ + public function getXObjects() + { + if (null !== $this->xobjects) { + return $this->xobjects; + } + + $resources = $this->get('Resources'); + + if (method_exists($resources, 'has') && $resources->has('XObject')) { + if ($resources->get('XObject') instanceof Header) { + $xobjects = $resources->get('XObject')->getElements(); + } else { + $xobjects = $resources->get('XObject')->getHeader()->getElements(); + } + + $table = []; + + foreach ($xobjects as $id => $xobject) { + $table[$id] = $xobject; + + // Store too on cleaned id value (only numeric) + $id = preg_replace('/[^0-9\.\-_]/', '', $id); + if ('' != $id) { + $table[$id] = $xobject; + } + } + + return $this->xobjects = $table; + } + + return []; + } + + public function getXObject(string $id): ?PDFObject + { + $xobjects = $this->getXObjects(); + + if (isset($xobjects[$id])) { + return $xobjects[$id]; + } + + return null; + /*$id = preg_replace('/[^0-9\.\-_]/', '', $id); + + if (isset($xobjects[$id])) { + return $xobjects[$id]; + } else { + return null; + }*/ + } + + public function getText(?self $page = null): string + { + if ($contents = $this->get('Contents')) { + if ($contents instanceof ElementMissing) { + return ''; + } elseif ($contents instanceof ElementNull) { + return ''; + } elseif ($contents instanceof PDFObject) { + $elements = $contents->getHeader()->getElements(); + + if (is_numeric(key($elements))) { + $new_content = ''; + + foreach ($elements as $element) { + if ($element instanceof ElementXRef) { + $new_content .= $element->getObject()->getContent(); + } else { + $new_content .= $element->getContent(); + } + } + + $header = new Header([], $this->document); + $contents = new PDFObject($this->document, $header, $new_content, $this->config); + } + } elseif ($contents instanceof ElementArray) { + // Create a virtual global content. + $new_content = ''; + + foreach ($contents->getContent() as $content) { + $new_content .= $content->getContent()."\n"; + } + + $header = new Header([], $this->document); + $contents = new PDFObject($this->document, $header, $new_content, $this->config); + } + + /* + * Elements referencing each other on the same page can cause endless loops during text parsing. + * To combat this we keep a recursionStack containing already parsed elements on the page. + * The stack is only emptied here after getting text from a page. + */ + $contentsText = $contents->getText($this); + PDFObject::$recursionStack = []; + + return $contentsText; + } + + return ''; + } + + /** + * Return true if the current page is a (setasign\Fpdi\Fpdi) FPDI/FPDF document + * + * The metadata 'Producer' should have the value of "FPDF" . FPDF_VERSION if the + * pdf file was generated by FPDF/Fpfi. + * + * @return bool true is the current page is a FPDI/FPDF document + */ + public function isFpdf(): bool + { + if (\array_key_exists('Producer', $this->document->getDetails()) + && \is_string($this->document->getDetails()['Producer']) + && 0 === strncmp($this->document->getDetails()['Producer'], 'FPDF', 4)) { + return true; + } + + return false; + } + + /** + * Return the page number of the PDF document of the page object + * + * @return int the page number + */ + public function getPageNumber(): int + { + $pages = $this->document->getPages(); + $numOfPages = \count($pages); + for ($pageNum = 0; $pageNum < $numOfPages; ++$pageNum) { + if ($pages[$pageNum] === $this) { + break; + } + } + + return $pageNum; + } + + /** + * Return the Object of the page if the document is a FPDF/FPDI document + * + * If the document was generated by FPDF/FPDI it returns the + * PDFObject of the given page + * + * @return PDFObject The PDFObject for the page + */ + public function getPDFObjectForFpdf(): PDFObject + { + $pageNum = $this->getPageNumber(); + $xObjects = $this->getXObjects(); + + return $xObjects[$pageNum]; + } + + /** + * Return a new PDFObject of the document created with FPDF/FPDI + * + * For a document generated by FPDF/FPDI, it generates a + * new PDFObject for that document + * + * @return PDFObject The PDFObject + */ + public function createPDFObjectForFpdf(): PDFObject + { + $pdfObject = $this->getPDFObjectForFpdf(); + $new_content = $pdfObject->getContent(); + $header = $pdfObject->getHeader(); + $config = $pdfObject->config; + + return new PDFObject($pdfObject->document, $header, $new_content, $config); + } + + /** + * Return page if document is a FPDF/FPDI document + * + * @return Page The page + */ + public function createPageForFpdf(): self + { + $pdfObject = $this->getPDFObjectForFpdf(); + $new_content = $pdfObject->getContent(); + $header = $pdfObject->getHeader(); + $config = $pdfObject->config; + + return new self($pdfObject->document, $header, $new_content, $config); + } + + public function getTextArray(?self $page = null): array + { + if ($this->isFpdf()) { + $pdfObject = $this->getPDFObjectForFpdf(); + $newPdfObject = $this->createPDFObjectForFpdf(); + + return $newPdfObject->getTextArray($pdfObject); + } else { + if ($contents = $this->get('Contents')) { + if ($contents instanceof ElementMissing) { + return []; + } elseif ($contents instanceof ElementNull) { + return []; + } elseif ($contents instanceof PDFObject) { + $elements = $contents->getHeader()->getElements(); + + if (is_numeric(key($elements))) { + $new_content = ''; + + /** @var PDFObject $element */ + foreach ($elements as $element) { + if ($element instanceof ElementXRef) { + $new_content .= $element->getObject()->getContent(); + } else { + $new_content .= $element->getContent(); + } + } + + $header = new Header([], $this->document); + $contents = new PDFObject($this->document, $header, $new_content, $this->config); + } else { + try { + $contents->getTextArray($this); + } catch (\Throwable $e) { + return $contents->getTextArray(); + } + } + } elseif ($contents instanceof ElementArray) { + // Create a virtual global content. + $new_content = ''; + + /** @var PDFObject $content */ + foreach ($contents->getContent() as $content) { + $new_content .= $content->getContent()."\n"; + } + + $header = new Header([], $this->document); + $contents = new PDFObject($this->document, $header, $new_content, $this->config); + } + + return $contents->getTextArray($this); + } + + return []; + } + } + + /** + * Gets all the text data with its internal representation of the page. + * + * Returns an array with the data and the internal representation + */ + public function extractRawData(): array + { + /* + * Now you can get the complete content of the object with the text on it + */ + $extractedData = []; + $content = $this->get('Contents'); + $values = $content->getContent(); + if (isset($values) && \is_array($values)) { + $text = ''; + foreach ($values as $section) { + $text .= $section->getContent(); + } + $sectionsText = $this->getSectionsText($text); + foreach ($sectionsText as $sectionText) { + $commandsText = $this->getCommandsText($sectionText); + foreach ($commandsText as $command) { + $extractedData[] = $command; + } + } + } else { + if ($this->isFpdf()) { + $content = $this->getPDFObjectForFpdf(); + } + $sectionsText = $content->getSectionsText($content->getContent()); + foreach ($sectionsText as $sectionText) { + $commandsText = $content->getCommandsText($sectionText); + foreach ($commandsText as $command) { + $extractedData[] = $command; + } + } + } + + return $extractedData; + } + + /** + * Gets all the decoded text data with it internal representation from a page. + * + * @param array $extractedRawData the extracted data return by extractRawData or + * null if extractRawData should be called + * + * @return array An array with the data and the internal representation + */ + public function extractDecodedRawData(?array $extractedRawData = null): array + { + if (!isset($extractedRawData) || !$extractedRawData) { + $extractedRawData = $this->extractRawData(); + } + $currentFont = null; /** @var Font $currentFont */ + $clippedFont = null; + $fpdfPage = null; + if ($this->isFpdf()) { + $fpdfPage = $this->createPageForFpdf(); + } + foreach ($extractedRawData as &$command) { + if ('Tj' == $command['o'] || 'TJ' == $command['o']) { + $data = $command['c']; + if (!\is_array($data)) { + $tmpText = ''; + if (isset($currentFont)) { + $tmpText = $currentFont->decodeOctal($data); + // $tmpText = $currentFont->decodeHexadecimal($tmpText, false); + } + $tmpText = str_replace( + ['\\\\', '\(', '\)', '\n', '\r', '\t', '\ '], + ['\\', '(', ')', "\n", "\r", "\t", ' '], + $tmpText + ); + $tmpText = mb_convert_encoding($tmpText, 'UTF-8', 'ISO-8859-1'); + if (isset($currentFont)) { + $tmpText = $currentFont->decodeContent($tmpText); + } + $command['c'] = $tmpText; + continue; + } + $numText = \count($data); + for ($i = 0; $i < $numText; ++$i) { + if (0 != ($i % 2)) { + continue; + } + $tmpText = $data[$i]['c']; + $decodedText = isset($currentFont) ? $currentFont->decodeOctal($tmpText) : $tmpText; + $decodedText = str_replace( + ['\\\\', '\(', '\)', '\n', '\r', '\t', '\ '], + ['\\', '(', ')', "\n", "\r", "\t", ' '], + $decodedText + ); + + $decodedText = mb_convert_encoding($decodedText, 'UTF-8', 'ISO-8859-1'); + + if (isset($currentFont)) { + $decodedText = $currentFont->decodeContent($decodedText); + } + $command['c'][$i]['c'] = $decodedText; + continue; + } + } elseif ('Tf' == $command['o'] || 'TF' == $command['o']) { + $fontId = explode(' ', $command['c'])[0]; + // If document is a FPDI/FPDF the $page has the correct font + $currentFont = isset($fpdfPage) ? $fpdfPage->getFont($fontId) : $this->getFont($fontId); + continue; + } elseif ('Q' == $command['o']) { + $currentFont = $clippedFont; + } elseif ('q' == $command['o']) { + $clippedFont = $currentFont; + } + } + + return $extractedRawData; + } + + /** + * Gets just the Text commands that are involved in text positions and + * Text Matrix (Tm) + * + * It extract just the PDF commands that are involved with text positions, and + * the Text Matrix (Tm). These are: BT, ET, TL, Td, TD, Tm, T*, Tj, ', ", and TJ + * + * @param array $extractedDecodedRawData The data extracted by extractDecodeRawData. + * If it is null, the method extractDecodeRawData is called. + * + * @return array An array with the text command of the page + */ + public function getDataCommands(?array $extractedDecodedRawData = null): array + { + if (!isset($extractedDecodedRawData) || !$extractedDecodedRawData) { + $extractedDecodedRawData = $this->extractDecodedRawData(); + } + $extractedData = []; + foreach ($extractedDecodedRawData as $command) { + switch ($command['o']) { + /* + * BT + * Begin a text object, inicializind the Tm and Tlm to identity matrix + */ + case 'BT': + $extractedData[] = $command; + break; + /* + * cm + * Concatenation Matrix that will transform all following Tm + */ + case 'cm': + $extractedData[] = $command; + break; + /* + * ET + * End a text object, discarding the text matrix + */ + case 'ET': + $extractedData[] = $command; + break; + + /* + * leading TL + * Set the text leading, Tl, to leading. Tl is used by the T*, ' and " operators. + * Initial value: 0 + */ + case 'TL': + $extractedData[] = $command; + break; + + /* + * tx ty Td + * Move to the start of the next line, offset form the start of the + * current line by tx, ty. + */ + case 'Td': + $extractedData[] = $command; + break; + + /* + * tx ty TD + * Move to the start of the next line, offset form the start of the + * current line by tx, ty. As a side effect, this operator set the leading + * parameter in the text state. This operator has the same effect as the + * code: + * -ty TL + * tx ty Td + */ + case 'TD': + $extractedData[] = $command; + break; + + /* + * a b c d e f Tm + * Set the text matrix, Tm, and the text line matrix, Tlm. The operands are + * all numbers, and the initial value for Tm and Tlm is the identity matrix + * [1 0 0 1 0 0] + */ + case 'Tm': + $extractedData[] = $command; + break; + + /* + * T* + * Move to the start of the next line. This operator has the same effect + * as the code: + * 0 Tl Td + * Where Tl is the current leading parameter in the text state. + */ + case 'T*': + $extractedData[] = $command; + break; + + /* + * string Tj + * Show a Text String + */ + case 'Tj': + $extractedData[] = $command; + break; + + /* + * string ' + * Move to the next line and show a text string. This operator has the + * same effect as the code: + * T* + * string Tj + */ + case "'": + $extractedData[] = $command; + break; + + /* + * aw ac string " + * Move to the next lkine and show a text string, using aw as the word + * spacing and ac as the character spacing. This operator has the same + * effect as the code: + * aw Tw + * ac Tc + * string ' + * Tw set the word spacing, Tw, to wordSpace. + * Tc Set the character spacing, Tc, to charsSpace. + */ + case '"': + $extractedData[] = $command; + break; + + case 'Tf': + case 'TF': + $extractedData[] = $command; + break; + + /* + * array TJ + * Show one or more text strings allow individual glyph positioning. + * Each lement of array con be a string or a number. If the element is + * a string, this operator shows the string. If it is a number, the + * operator adjust the text position by that amount; that is, it translates + * the text matrix, Tm. This amount is substracted form the current + * horizontal or vertical coordinate, depending on the writing mode. + * in the default coordinate system, a positive adjustment has the effect + * of moving the next glyph painted either to the left or down by the given + * amount. + */ + case 'TJ': + $extractedData[] = $command; + break; + /* + * q + * Save current graphics state to stack + */ + case 'q': + /* + * Q + * Load last saved graphics state from stack + */ + case 'Q': + $extractedData[] = $command; + break; + default: + } + } + + return $extractedData; + } + + /** + * Gets the Text Matrix of the text in the page + * + * Return an array where every item is an array where the first item is the + * Text Matrix (Tm) and the second is a string with the text data. The Text matrix + * is an array of 6 numbers. The last 2 numbers are the coordinates X and Y of the + * text. The first 4 numbers has to be with Scalation, Rotation and Skew of the text. + * + * @param array $dataCommands the data extracted by getDataCommands + * if null getDataCommands is called + * + * @return array an array with the data of the page including the Tm information + * of any text in the page + */ + public function getDataTm(?array $dataCommands = null): array + { + if (!isset($dataCommands) || !$dataCommands) { + $dataCommands = $this->getDataCommands(); + } + + /* + * At the beginning of a text object Tm is the identity matrix + */ + $defaultTm = ['1', '0', '0', '1', '0', '0']; + $concatTm = ['1', '0', '0', '1', '0', '0']; + $graphicsStatesStack = []; + /* + * Set the text leading used by T*, ' and " operators + */ + $defaultTl = 0; + + /* + * Set default values for font data + */ + $defaultFontId = -1; + $defaultFontSize = 1; + + /* + * Indexes of horizontal/vertical scaling and X,Y-coordinates in the matrix (Tm) + */ + $hSc = 0; // horizontal scaling + /** + * index of vertical scaling in the array that encodes the text matrix. + * for more information: https://github.com/smalot/pdfparser/pull/559#discussion_r1053415500 + */ + $vSc = 3; + $x = 4; + $y = 5; + + /* + * x,y-coordinates of text space origin in user units + * + * These will be assigned the value of the currently printed string + */ + $Tx = 0; + $Ty = 0; + + $Tm = $defaultTm; + $Tl = $defaultTl; + $fontId = $defaultFontId; + $fontSize = $defaultFontSize; // reflects fontSize set by Tf or Tfs + + $extractedTexts = $this->getTextArray(); + $extractedData = []; + foreach ($dataCommands as $command) { + // If we've used up all the texts from getTextArray(), exit + // so we aren't accessing non-existent array indices + // Fixes 'undefined array key' errors in Issues #575, #576 + if (\count($extractedTexts) <= \count($extractedData)) { + break; + } + $currentText = $extractedTexts[\count($extractedData)]; + switch ($command['o']) { + /* + * BT + * Begin a text object, initializing the Tm and Tlm to identity matrix + */ + case 'BT': + $Tm = $defaultTm; + $Tl = $defaultTl; + $Tx = 0; + $Ty = 0; + break; + + case 'cm': + $newConcatTm = (array) explode(' ', $command['c']); + $TempMatrix = []; + // Multiply with previous concatTm + $TempMatrix[0] = (float) $concatTm[0] * (float) $newConcatTm[0] + (float) $concatTm[1] * (float) $newConcatTm[2]; + $TempMatrix[1] = (float) $concatTm[0] * (float) $newConcatTm[1] + (float) $concatTm[1] * (float) $newConcatTm[3]; + $TempMatrix[2] = (float) $concatTm[2] * (float) $newConcatTm[0] + (float) $concatTm[3] * (float) $newConcatTm[2]; + $TempMatrix[3] = (float) $concatTm[2] * (float) $newConcatTm[1] + (float) $concatTm[3] * (float) $newConcatTm[3]; + $TempMatrix[4] = (float) $concatTm[4] * (float) $newConcatTm[0] + (float) $concatTm[5] * (float) $newConcatTm[2] + (float) $newConcatTm[4]; + $TempMatrix[5] = (float) $concatTm[4] * (float) $newConcatTm[1] + (float) $concatTm[5] * (float) $newConcatTm[3] + (float) $newConcatTm[5]; + $concatTm = $TempMatrix; + break; + /* + * ET + * End a text object + */ + case 'ET': + break; + + /* + * text leading TL + * Set the text leading, Tl, to leading. Tl is used by the T*, ' and " operators. + * Initial value: 0 + */ + case 'TL': + // scaled text leading + $Tl = (float) $command['c'] * (float) $Tm[$vSc]; + break; + + /* + * tx ty Td + * Move to the start of the next line, offset from the start of the + * current line by tx, ty. + */ + case 'Td': + $coord = explode(' ', $command['c']); + $Tx += (float) $coord[0] * (float) $Tm[$hSc]; + $Ty += (float) $coord[1] * (float) $Tm[$vSc]; + $Tm[$x] = (string) $Tx; + $Tm[$y] = (string) $Ty; + break; + + /* + * tx ty TD + * Move to the start of the next line, offset form the start of the + * current line by tx, ty. As a side effect, this operator set the leading + * parameter in the text state. This operator has the same effect as the + * code: + * -ty TL + * tx ty Td + */ + case 'TD': + $coord = explode(' ', $command['c']); + $Tl = -((float) $coord[1] * (float) $Tm[$vSc]); + $Tx += (float) $coord[0] * (float) $Tm[$hSc]; + $Ty += (float) $coord[1] * (float) $Tm[$vSc]; + $Tm[$x] = (string) $Tx; + $Tm[$y] = (string) $Ty; + break; + + /* + * a b c d e f Tm + * Set the text matrix, Tm, and the text line matrix, Tlm. The operands are + * all numbers, and the initial value for Tm and Tlm is the identity matrix + * [1 0 0 1 0 0] + */ + case 'Tm': + $Tm = explode(' ', $command['c']); + $TempMatrix = []; + $TempMatrix[0] = (float) $Tm[0] * (float) $concatTm[0] + (float) $Tm[1] * (float) $concatTm[2]; + $TempMatrix[1] = (float) $Tm[0] * (float) $concatTm[1] + (float) $Tm[1] * (float) $concatTm[3]; + $TempMatrix[2] = (float) $Tm[2] * (float) $concatTm[0] + (float) $Tm[3] * (float) $concatTm[2]; + $TempMatrix[3] = (float) $Tm[2] * (float) $concatTm[1] + (float) $Tm[3] * (float) $concatTm[3]; + $TempMatrix[4] = (float) $Tm[4] * (float) $concatTm[0] + (float) $Tm[5] * (float) $concatTm[2] + (float) $concatTm[4]; + $TempMatrix[5] = (float) $Tm[4] * (float) $concatTm[1] + (float) $Tm[5] * (float) $concatTm[3] + (float) $concatTm[5]; + $Tm = $TempMatrix; + $Tx = (float) $Tm[$x]; + $Ty = (float) $Tm[$y]; + break; + + /* + * T* + * Move to the start of the next line. This operator has the same effect + * as the code: + * 0 Tl Td + * Where Tl is the current leading parameter in the text state. + */ + case 'T*': + $Ty -= $Tl; + $Tm[$y] = (string) $Ty; + break; + + /* + * string Tj + * Show a Text String + */ + case 'Tj': + $data = [$Tm, $currentText]; + if ($this->config->getDataTmFontInfoHasToBeIncluded()) { + $data[] = $fontId; + $data[] = $fontSize; + } + $extractedData[] = $data; + break; + + /* + * string ' + * Move to the next line and show a text string. This operator has the + * same effect as the code: + * T* + * string Tj + */ + case "'": + $Ty -= $Tl; + $Tm[$y] = (string) $Ty; + $extractedData[] = [$Tm, $currentText]; + break; + + /* + * aw ac string " + * Move to the next line and show a text string, using aw as the word + * spacing and ac as the character spacing. This operator has the same + * effect as the code: + * aw Tw + * ac Tc + * string ' + * Tw set the word spacing, Tw, to wordSpace. + * Tc Set the character spacing, Tc, to charsSpace. + */ + case '"': + $data = explode(' ', $currentText); + $Ty -= $Tl; + $Tm[$y] = (string) $Ty; + $extractedData[] = [$Tm, $data[2]]; // Verify + break; + + case 'Tf': + /* + * From PDF 1.0 specification, page 106: + * fontname size Tf Set font and size + * Sets the text font and text size in the graphics state. There is no default value for + * either fontname or size; they must be selected using Tf before drawing any text. + * fontname is a resource name. size is a number expressed in text space units. + * + * Source: https://ia902503.us.archive.org/10/items/pdfy-0vt8s-egqFwDl7L2/PDF%20Reference%201.0.pdf + * Introduced with https://github.com/smalot/pdfparser/pull/516 + */ + list($fontId, $fontSize) = explode(' ', $command['c'], 2); + break; + + /* + * array TJ + * Show one or more text strings allow individual glyph positioning. + * Each lement of array con be a string or a number. If the element is + * a string, this operator shows the string. If it is a number, the + * operator adjust the text position by that amount; that is, it translates + * the text matrix, Tm. This amount is substracted form the current + * horizontal or vertical coordinate, depending on the writing mode. + * in the default coordinate system, a positive adjustment has the effect + * of moving the next glyph painted either to the left or down by the given + * amount. + */ + case 'TJ': + $data = [$Tm, $currentText]; + if ($this->config->getDataTmFontInfoHasToBeIncluded()) { + $data[] = $fontId; + $data[] = $fontSize; + } + $extractedData[] = $data; + break; + /* + * q + * Save current graphics state to stack + */ + case 'q': + $graphicsStatesStack[] = $concatTm; + break; + /* + * Q + * Load last saved graphics state from stack + */ + case 'Q': + $concatTm = array_pop($graphicsStatesStack); + break; + default: + } + } + $this->dataTm = $extractedData; + + return $extractedData; + } + + /** + * Gets text data that are around the given coordinates (X,Y) + * + * If the text is in near the given coordinates (X,Y) (or the TM info), + * the text is returned. The extractedData return by getDataTm, could be use to see + * where is the coordinates of a given text, using the TM info for it. + * + * @param float $x The X value of the coordinate to search for. if null + * just the Y value is considered (same Row) + * @param float $y The Y value of the coordinate to search for + * just the X value is considered (same column) + * @param float $xError The value less or more to consider an X to be "near" + * @param float $yError The value less or more to consider an Y to be "near" + * + * @return array An array of text that are near the given coordinates. If no text + * "near" the x,y coordinate, an empty array is returned. If Both, x + * and y coordinates are null, null is returned. + */ + public function getTextXY(?float $x = null, ?float $y = null, float $xError = 0, float $yError = 0): array + { + if (!isset($this->dataTm) || !$this->dataTm) { + $this->getDataTm(); + } + + if (null !== $x) { + $x = (float) $x; + } + + if (null !== $y) { + $y = (float) $y; + } + + if (null === $x && null === $y) { + return []; + } + + $xError = (float) $xError; + $yError = (float) $yError; + + $extractedData = []; + foreach ($this->dataTm as $item) { + $tm = $item[0]; + $xTm = (float) $tm[4]; + $yTm = (float) $tm[5]; + $text = $item[1]; + if (null === $y) { + if (($xTm >= ($x - $xError)) + && ($xTm <= ($x + $xError))) { + $extractedData[] = [$tm, $text]; + continue; + } + } + if (null === $x) { + if (($yTm >= ($y - $yError)) + && ($yTm <= ($y + $yError))) { + $extractedData[] = [$tm, $text]; + continue; + } + } + if (($xTm >= ($x - $xError)) + && ($xTm <= ($x + $xError)) + && ($yTm >= ($y - $yError)) + && ($yTm <= ($y + $yError))) { + $extractedData[] = [$tm, $text]; + continue; + } + } + + return $extractedData; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Pages.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Pages.php new file mode 100644 index 00000000..f95134b1 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Pages.php @@ -0,0 +1,131 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +use Smalot\PdfParser\Element\ElementArray; + +/** + * Class Pages + */ +class Pages extends PDFObject +{ + /** + * @var array<\Smalot\PdfParser\Font>|null + */ + protected $fonts; + + /** + * @todo Objects other than Pages or Page might need to be treated specifically + * in order to get Page objects out of them. + * + * @see https://github.com/smalot/pdfparser/issues/331 + */ + public function getPages(bool $deep = false): array + { + if (!$this->has('Kids')) { + return []; + } + + /** @var ElementArray $kidsElement */ + $kidsElement = $this->get('Kids'); + + if (!$deep) { + return $kidsElement->getContent(); + } + + // Prepare to apply the Pages' object's fonts to each page + if (false === \is_array($this->fonts)) { + $this->setupFonts(); + } + $fontsAvailable = 0 < \count($this->fonts); + + $kids = $kidsElement->getContent(); + $pages = []; + + foreach ($kids as $kid) { + if ($kid instanceof self) { + $pages = array_merge($pages, $kid->getPages(true)); + } elseif ($kid instanceof Page) { + if ($fontsAvailable) { + $kid->setFonts($this->fonts); + } + $pages[] = $kid; + } + } + + return $pages; + } + + /** + * Gathers information about fonts and collects them in a list. + * + * @return void + * + * @internal + */ + protected function setupFonts() + { + $resources = $this->get('Resources'); + + if (method_exists($resources, 'has') && $resources->has('Font')) { + // no fonts available, therefore stop here + if ($resources->get('Font') instanceof Element\ElementMissing) { + return; + } + + if ($resources->get('Font') instanceof Header) { + $fonts = $resources->get('Font')->getElements(); + } else { + $fonts = $resources->get('Font')->getHeader()->getElements(); + } + + $table = []; + + foreach ($fonts as $id => $font) { + if ($font instanceof Font) { + $table[$id] = $font; + + // Store too on cleaned id value (only numeric) + $id = preg_replace('/[^0-9\.\-_]/', '', $id); + if ('' != $id) { + $table[$id] = $font; + } + } + } + + $this->fonts = $table; + } else { + $this->fonts = []; + } + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php new file mode 100644 index 00000000..b051f114 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php @@ -0,0 +1,331 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser; + +use Smalot\PdfParser\Element\ElementArray; +use Smalot\PdfParser\Element\ElementBoolean; +use Smalot\PdfParser\Element\ElementDate; +use Smalot\PdfParser\Element\ElementHexa; +use Smalot\PdfParser\Element\ElementName; +use Smalot\PdfParser\Element\ElementNull; +use Smalot\PdfParser\Element\ElementNumeric; +use Smalot\PdfParser\Element\ElementString; +use Smalot\PdfParser\Element\ElementXRef; +use Smalot\PdfParser\RawData\RawDataParser; + +/** + * Class Parser + */ +class Parser +{ + /** + * @var Config + */ + private $config; + + /** + * @var PDFObject[] + */ + protected $objects = []; + + protected $rawDataParser; + + public function __construct($cfg = [], ?Config $config = null) + { + $this->config = $config ?: new Config(); + $this->rawDataParser = new RawDataParser($cfg, $this->config); + } + + public function getConfig(): Config + { + return $this->config; + } + + /** + * @throws \Exception + */ + public function parseFile(string $filename): Document + { + $content = file_get_contents($filename); + + /* + * 2018/06/20 @doganoo as multiple times a + * users have complained that the parseFile() + * method dies silently, it is an better option + * to remove the error control operator (@) and + * let the users know that the method throws an exception + * by adding @throws tag to PHPDoc. + * + * See here for an example: https://github.com/smalot/pdfparser/issues/204 + */ + return $this->parseContent($content); + } + + /** + * @param string $content PDF content to parse + * + * @throws \Exception if secured PDF file was detected + * @throws \Exception if no object list was found + */ + public function parseContent(string $content): Document + { + // Create structure from raw data. + list($xref, $data) = $this->rawDataParser->parseData($content); + + if (isset($xref['trailer']['encrypt']) && false === $this->config->getIgnoreEncryption()) { + throw new \Exception('Secured pdf file are currently not supported.'); + } + + if (empty($data)) { + throw new \Exception('Object list not found. Possible secured file.'); + } + + // Create destination object. + $document = new Document(); + $this->objects = []; + + foreach ($data as $id => $structure) { + $this->parseObject($id, $structure, $document); + unset($data[$id]); + } + + $document->setTrailer($this->parseTrailer($xref['trailer'], $document)); + $document->setObjects($this->objects); + + return $document; + } + + protected function parseTrailer(array $structure, ?Document $document) + { + $trailer = []; + + foreach ($structure as $name => $values) { + $name = ucfirst($name); + + if (is_numeric($values)) { + $trailer[$name] = new ElementNumeric($values); + } elseif (\is_array($values)) { + $value = $this->parseTrailer($values, null); + $trailer[$name] = new ElementArray($value, null); + } elseif (false !== strpos($values, '_')) { + $trailer[$name] = new ElementXRef($values, $document); + } else { + $trailer[$name] = $this->parseHeaderElement('(', $values, $document); + } + } + + return new Header($trailer, $document); + } + + protected function parseObject(string $id, array $structure, ?Document $document) + { + $header = new Header([], $document); + $content = ''; + + foreach ($structure as $position => $part) { + if (\is_int($part)) { + $part = [null, null]; + } + switch ($part[0]) { + case '[': + $elements = []; + + foreach ($part[1] as $sub_element) { + $sub_type = $sub_element[0]; + $sub_value = $sub_element[1]; + $elements[] = $this->parseHeaderElement($sub_type, $sub_value, $document); + } + + $header = new Header($elements, $document); + break; + + case '<<': + $header = $this->parseHeader($part[1], $document); + break; + + case 'stream': + $content = isset($part[3][0]) ? $part[3][0] : $part[1]; + + if ($header->get('Type')->equals('ObjStm')) { + $match = []; + + // Split xrefs and contents. + preg_match('/^((\d+\s+\d+\s*)*)(.*)$/s', $content, $match); + $content = $match[3]; + + // Extract xrefs. + $xrefs = preg_split( + '/(\d+\s+\d+\s*)/s', + $match[1], + -1, + \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE + ); + $table = []; + + foreach ($xrefs as $xref) { + list($id, $position) = preg_split("/\s+/", trim($xref)); + $table[$position] = $id; + } + + ksort($table); + + $ids = array_values($table); + $positions = array_keys($table); + + foreach ($positions as $index => $position) { + $id = $ids[$index].'_0'; + $next_position = isset($positions[$index + 1]) ? $positions[$index + 1] : \strlen($content); + $sub_content = substr($content, $position, (int) $next_position - (int) $position); + + $sub_header = Header::parse($sub_content, $document); + $object = PDFObject::factory($document, $sub_header, '', $this->config); + $this->objects[$id] = $object; + } + + // It is not necessary to store this content. + + return; + } elseif ($header->get('Type')->equals('Metadata')) { + // Attempt to parse XMP XML Metadata + $document->extractXMPMetadata($content); + } + break; + + default: + if ('null' != $part) { + $element = $this->parseHeaderElement($part[0], $part[1], $document); + + if ($element) { + $header = new Header([$element], $document); + } + } + break; + } + } + + if (!isset($this->objects[$id])) { + $this->objects[$id] = PDFObject::factory($document, $header, $content, $this->config); + } + } + + /** + * @throws \Exception + */ + protected function parseHeader(array $structure, ?Document $document): Header + { + $elements = []; + $count = \count($structure); + + for ($position = 0; $position < $count; $position += 2) { + $name = $structure[$position][1]; + $type = $structure[$position + 1][0]; + $value = $structure[$position + 1][1]; + + $elements[$name] = $this->parseHeaderElement($type, $value, $document); + } + + return new Header($elements, $document); + } + + /** + * @param string|array $value + * + * @return Element|Header|null + * + * @throws \Exception + */ + protected function parseHeaderElement(?string $type, $value, ?Document $document) + { + $valueIsEmpty = null == $value || '' == $value || false == $value; + if (('<<' === $type || '>>' === $type) && $valueIsEmpty) { + $value = []; + } + + switch ($type) { + case '<<': + case '>>': + $header = $this->parseHeader($value, $document); + PDFObject::factory($document, $header, null, $this->config); + + return $header; + + case 'numeric': + return new ElementNumeric($value); + + case 'boolean': + return new ElementBoolean($value); + + case 'null': + return new ElementNull(); + + case '(': + if ($date = ElementDate::parse('('.$value.')', $document)) { + return $date; + } + + return ElementString::parse('('.$value.')', $document); + + case '<': + return $this->parseHeaderElement('(', ElementHexa::decode($value), $document); + + case '/': + return ElementName::parse('/'.$value, $document); + + case 'ojbref': // old mistake in tcpdf parser + case 'objref': + return new ElementXRef($value, $document); + + case '[': + $values = []; + + if (\is_array($value)) { + foreach ($value as $sub_element) { + $sub_type = $sub_element[0]; + $sub_value = $sub_element[1]; + $values[] = $this->parseHeaderElement($sub_type, $sub_value, $document); + } + } + + return new ElementArray($values, $document); + + case 'endstream': + case 'obj': // I don't know what it means but got my project fixed. + case '': + // Nothing to do with. + return null; + + default: + throw new \Exception('Invalid type: "'.$type.'".'); + } + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php new file mode 100644 index 00000000..87f5524d --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php @@ -0,0 +1,427 @@ + + * + * @date 2020-01-06 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\RawData; + +use Smalot\PdfParser\Exception\NotImplementedException; + +class FilterHelper +{ + protected $availableFilters = ['ASCIIHexDecode', 'ASCII85Decode', 'LZWDecode', 'FlateDecode', 'RunLengthDecode']; + + /** + * Decode data using the specified filter type. + * + * @param string $filter Filter name + * @param string $data Data to decode + * + * @return string Decoded data string + * + * @throws \Exception + * @throws \Smalot\PdfParser\Exception\NotImplementedException if a certain decode function is not implemented yet + */ + public function decodeFilter(string $filter, string $data, int $decodeMemoryLimit = 0): string + { + switch ($filter) { + case 'ASCIIHexDecode': + return $this->decodeFilterASCIIHexDecode($data); + + case 'ASCII85Decode': + return $this->decodeFilterASCII85Decode($data); + + case 'LZWDecode': + return $this->decodeFilterLZWDecode($data); + + case 'FlateDecode': + return $this->decodeFilterFlateDecode($data, $decodeMemoryLimit); + + case 'RunLengthDecode': + return $this->decodeFilterRunLengthDecode($data); + + case 'CCITTFaxDecode': + throw new NotImplementedException('Decode CCITTFaxDecode not implemented yet.'); + case 'JBIG2Decode': + throw new NotImplementedException('Decode JBIG2Decode not implemented yet.'); + case 'DCTDecode': + throw new NotImplementedException('Decode DCTDecode not implemented yet.'); + case 'JPXDecode': + throw new NotImplementedException('Decode JPXDecode not implemented yet.'); + case 'Crypt': + throw new NotImplementedException('Decode Crypt not implemented yet.'); + default: + return $data; + } + } + + /** + * ASCIIHexDecode + * + * Decodes data encoded in an ASCII hexadecimal representation, reproducing the original binary data. + * + * @param string $data Data to decode + * + * @return string data string + * + * @throws \Exception + */ + protected function decodeFilterASCIIHexDecode(string $data): string + { + // all white-space characters shall be ignored + $data = preg_replace('/[\s]/', '', $data); + // check for EOD character: GREATER-THAN SIGN (3Eh) + $eod = strpos($data, '>'); + if (false !== $eod) { + // remove EOD and extra data (if any) + $data = substr($data, 0, $eod); + $eod = true; + } + // get data length + $data_length = \strlen($data); + if (0 != ($data_length % 2)) { + // odd number of hexadecimal digits + if ($eod) { + // EOD shall behave as if a 0 (zero) followed the last digit + $data = substr($data, 0, -1).'0'.substr($data, -1); + } else { + throw new \Exception('decodeFilterASCIIHexDecode: invalid code'); + } + } + // check for invalid characters + if (preg_match('/[^a-fA-F\d]/', $data) > 0) { + throw new \Exception('decodeFilterASCIIHexDecode: invalid code'); + } + // get one byte of binary data for each pair of ASCII hexadecimal digits + $decoded = pack('H*', $data); + + return $decoded; + } + + /** + * ASCII85Decode + * + * Decodes data encoded in an ASCII base-85 representation, reproducing the original binary data. + * + * @param string $data Data to decode + * + * @return string data string + * + * @throws \Exception + */ + protected function decodeFilterASCII85Decode(string $data): string + { + // initialize string to return + $decoded = ''; + // all white-space characters shall be ignored + $data = preg_replace('/[\s]/', '', $data); + // remove start sequence 2-character sequence <~ (3Ch)(7Eh) + if (0 === strpos($data, '<~')) { + // remove EOD and extra data (if any) + $data = substr($data, 2); + } + // check for EOD: 2-character sequence ~> (7Eh)(3Eh) + $eod = strpos($data, '~>'); + if (\strlen($data) - 2 === $eod) { + // remove EOD and extra data (if any) + $data = substr($data, 0, $eod); + } + // data length + $data_length = \strlen($data); + // check for invalid characters + if (preg_match('/[^\x21-\x75,\x74]/', $data) > 0) { + throw new \Exception('decodeFilterASCII85Decode: invalid code'); + } + // z sequence + $zseq = \chr(0).\chr(0).\chr(0).\chr(0); + // position inside a group of 4 bytes (0-3) + $group_pos = 0; + $tuple = 0; + $pow85 = [85 * 85 * 85 * 85, 85 * 85 * 85, 85 * 85, 85, 1]; + + // for each byte + for ($i = 0; $i < $data_length; ++$i) { + // get char value + $char = \ord($data[$i]); + if (122 == $char) { // 'z' + if (0 == $group_pos) { + $decoded .= $zseq; + } else { + throw new \Exception('decodeFilterASCII85Decode: invalid code'); + } + } else { + // the value represented by a group of 5 characters should never be greater than 2^32 - 1 + $tuple += (($char - 33) * $pow85[$group_pos]); + if (4 == $group_pos) { + // The following if-clauses are an attempt to fix/suppress the following deprecation warning: + // chr(): Providing a value not in-between 0 and 255 is deprecated, this is because a byte value + // must be in the [0, 255] interval. The value used will be constrained using % 256 + // I know this is ugly and there might be more fancier ways. If you know one, feel free to provide a pull request. + if (255 < $tuple >> 8) { + $chr8Part = \chr(($tuple >> 8) % 256); + } else { + $chr8Part = \chr($tuple >> 8); + } + + if (255 < $tuple >> 16) { + $chr16Part = \chr(($tuple >> 16) % 256); + } else { + $chr16Part = \chr($tuple >> 16); + } + + if (255 < $tuple >> 24) { + $chr24Part = \chr(($tuple >> 24) % 256); + } else { + $chr24Part = \chr(($tuple >> 24) & 0xFF); + } + + if (255 < $tuple) { + $chrTuple = \chr($tuple % 256); + } else { + $chrTuple = \chr($tuple); + } + + $decoded .= $chr24Part . $chr16Part . $chr8Part . $chrTuple; + $tuple = 0; + $group_pos = 0; + } else { + ++$group_pos; + } + } + } + if ($group_pos > 1) { + $tuple += $pow85[$group_pos - 1]; + } + // last tuple (if any) + switch ($group_pos) { + case 4: + $decoded .= \chr(($tuple >> 24) & 0xFF).\chr(($tuple >> 16) & 0xFF).\chr(($tuple >> 8) & 0xFF); + break; + + case 3: + $decoded .= \chr(($tuple >> 24) & 0xFF).\chr(($tuple >> 16) & 0xFF); + break; + + case 2: + $decoded .= \chr(($tuple >> 24) & 0xFF); + break; + + case 1: + throw new \Exception('decodeFilterASCII85Decode: invalid code'); + } + + return $decoded; + } + + /** + * FlateDecode + * + * Decompresses data encoded using the zlib/deflate compression method, reproducing the original text or binary data. + * + * @param string $data Data to decode + * @param int $decodeMemoryLimit Memory limit on deflation + * + * @return string data string + * + * @throws \Exception + */ + protected function decodeFilterFlateDecode(string $data, int $decodeMemoryLimit): ?string + { + // Uncatchable E_WARNING for "data error" is @ suppressed + // so execution may proceed with an alternate decompression + // method. + $decoded = @gzuncompress($data, $decodeMemoryLimit); + + if (false === $decoded) { + // If gzuncompress() failed, try again using the compress.zlib:// + // wrapper to decode it in a file-based context. + // See: https://www.php.net/manual/en/function.gzuncompress.php#79042 + // Issue: https://github.com/smalot/pdfparser/issues/592 + $ztmp = tmpfile(); + if (false != $ztmp) { + fwrite($ztmp, "\x1f\x8b\x08\x00\x00\x00\x00\x00".$data); + $file = stream_get_meta_data($ztmp)['uri']; + if (0 === $decodeMemoryLimit) { + $decoded = file_get_contents('compress.zlib://'.$file); + } else { + $decoded = file_get_contents('compress.zlib://'.$file, false, null, 0, $decodeMemoryLimit); + } + fclose($ztmp); + } + } + + if (false === \is_string($decoded) || '' === $decoded) { + // If the decoded string is empty, that means decoding failed. + throw new \Exception('decodeFilterFlateDecode: invalid data'); + } + + return $decoded; + } + + /** + * LZWDecode + * + * Decompresses data encoded using the LZW (Lempel-Ziv-Welch) adaptive compression method, reproducing the original text or binary data. + * + * @param string $data Data to decode + * + * @return string Data string + */ + protected function decodeFilterLZWDecode(string $data): string + { + // initialize string to return + $decoded = ''; + // data length + $data_length = \strlen($data); + // convert string to binary string + $bitstring = ''; + for ($i = 0; $i < $data_length; ++$i) { + $bitstring .= \sprintf('%08b', \ord($data[$i])); + } + // get the number of bits + $data_length = \strlen($bitstring); + // initialize code length in bits + $bitlen = 9; + // initialize dictionary index + $dix = 258; + // initialize the dictionary (with the first 256 entries). + $dictionary = []; + for ($i = 0; $i < 256; ++$i) { + $dictionary[$i] = \chr($i); + } + // previous val + $prev_index = 0; + // while we encounter EOD marker (257), read code_length bits + while (($data_length > 0) && (257 != ($index = bindec(substr($bitstring, 0, $bitlen))))) { + // remove read bits from string + $bitstring = substr($bitstring, $bitlen); + // update number of bits + $data_length -= $bitlen; + if (256 == $index) { // clear-table marker + // reset code length in bits + $bitlen = 9; + // reset dictionary index + $dix = 258; + $prev_index = 256; + // reset the dictionary (with the first 256 entries). + $dictionary = []; + for ($i = 0; $i < 256; ++$i) { + $dictionary[$i] = \chr($i); + } + } elseif (256 == $prev_index) { + // first entry + $decoded .= $dictionary[$index]; + $prev_index = $index; + } else { + // check if index exist in the dictionary + if ($index < $dix) { + // index exist on dictionary + $decoded .= $dictionary[$index]; + $dic_val = $dictionary[$prev_index].$dictionary[$index][0]; + // store current index + $prev_index = $index; + } else { + // index do not exist on dictionary + $dic_val = $dictionary[$prev_index].$dictionary[$prev_index][0]; + $decoded .= $dic_val; + } + // update dictionary + $dictionary[$dix] = $dic_val; + ++$dix; + // change bit length by case + if (2047 == $dix) { + $bitlen = 12; + } elseif (1023 == $dix) { + $bitlen = 11; + } elseif (511 == $dix) { + $bitlen = 10; + } + } + } + + return $decoded; + } + + /** + * RunLengthDecode + * + * Decompresses data encoded using a byte-oriented run-length encoding algorithm. + * + * @param string $data Data to decode + */ + protected function decodeFilterRunLengthDecode(string $data): string + { + // initialize string to return + $decoded = ''; + // data length + $data_length = \strlen($data); + $i = 0; + while ($i < $data_length) { + // get current byte value + $byte = \ord($data[$i]); + if (128 == $byte) { + // a length value of 128 denote EOD + break; + } elseif ($byte < 128) { + // if the length byte is in the range 0 to 127 + // the following length + 1 (1 to 128) bytes shall be copied literally during decompression + $decoded .= substr($data, $i + 1, $byte + 1); + // move to next block + $i += ($byte + 2); + } else { + // if length is in the range 129 to 255, + // the following single byte shall be copied 257 - length (2 to 128) times during decompression + $decoded .= str_repeat($data[$i + 1], 257 - $byte); + // move to next block + $i += 2; + } + } + + return $decoded; + } + + /** + * @return array list of available filters + */ + public function getAvailableFilters(): array + { + return $this->availableFilters; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php new file mode 100644 index 00000000..ec8d01e5 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php @@ -0,0 +1,990 @@ + + * + * @date 2020-01-06 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\RawData; + +use Smalot\PdfParser\Config; +use Smalot\PdfParser\Exception\EmptyPdfException; +use Smalot\PdfParser\Exception\MissingPdfHeaderException; + +class RawDataParser +{ + /** + * @var Config + */ + private $config; + + /** + * Configuration array. + * + * @var array + */ + protected $cfg = [ + // if `true` ignore filter decoding errors + 'ignore_filter_decoding_errors' => true, + // if `true` ignore missing filter decoding errors + 'ignore_missing_filter_decoders' => true, + ]; + + protected $filterHelper; + protected $objects; + + /** + * @param array $cfg Configuration array, default is [] + */ + public function __construct($cfg = [], ?Config $config = null) + { + // merge given array with default values + $this->cfg = array_merge($this->cfg, $cfg); + + $this->filterHelper = new FilterHelper(); + $this->config = $config ?: new Config(); + } + + /** + * Decode the specified stream. + * + * @param string $pdfData PDF data + * @param array $sdic Stream's dictionary array + * @param string $stream Stream to decode + * + * @return array containing decoded stream data and remaining filters + * + * @throws \Exception + */ + protected function decodeStream(string $pdfData, array $xref, array $sdic, string $stream): array + { + // get stream length and filters + $slength = \strlen($stream); + if ($slength <= 0) { + return ['', []]; + } + $filters = []; + foreach ($sdic as $k => $v) { + if ('/' == $v[0]) { + if (('Length' == $v[1]) && (isset($sdic[$k + 1])) && ('numeric' == $sdic[$k + 1][0])) { + // get declared stream length + $declength = (int) $sdic[$k + 1][1]; + if ($declength < $slength) { + $stream = substr($stream, 0, $declength); + $slength = $declength; + } + } elseif (('Filter' == $v[1]) && (isset($sdic[$k + 1]))) { + // resolve indirect object + $objval = $this->getObjectVal($pdfData, $xref, $sdic[$k + 1]); + if ('/' == $objval[0]) { + // single filter + $filters[] = $objval[1]; + } elseif ('[' == $objval[0]) { + // array of filters + foreach ($objval[1] as $flt) { + if ('/' == $flt[0]) { + $filters[] = $flt[1]; + } + } + } + } + } + } + + // decode the stream + $remaining_filters = []; + foreach ($filters as $filter) { + if (\in_array($filter, $this->filterHelper->getAvailableFilters(), true)) { + try { + $stream = $this->filterHelper->decodeFilter($filter, $stream, $this->config->getDecodeMemoryLimit()); + } catch (\Exception $e) { + $emsg = $e->getMessage(); + if ((('~' == $emsg[0]) && !$this->cfg['ignore_missing_filter_decoders']) + || (('~' != $emsg[0]) && !$this->cfg['ignore_filter_decoding_errors']) + ) { + throw new \Exception($e->getMessage()); + } + } + } else { + // add missing filter to array + $remaining_filters[] = $filter; + } + } + + return [$stream, $remaining_filters]; + } + + /** + * Decode the Cross-Reference section + * + * @param string $pdfData PDF data + * @param int $startxref Offset at which the xref section starts (position of the 'xref' keyword) + * @param array $xref Previous xref array (if any) + * @param array $visitedOffsets Array of visited offsets to prevent infinite loops + * + * @return array containing xref and trailer data + * + * @throws \Exception + */ + protected function decodeXref(string $pdfData, int $startxref, array $xref = [], array $visitedOffsets = []): array + { + $startxref += 4; // 4 is the length of the word 'xref' + // skip initial white space chars + $offset = $startxref + strspn($pdfData, $this->config->getPdfWhitespaces(), $startxref); + // initialize object number + $obj_num = 0; + // search for cross-reference entries or subsection + while (preg_match('/([0-9]+)[\x20]([0-9]+)[\x20]?([nf]?)(\r\n|[\x20]?[\r\n])/', $pdfData, $matches, \PREG_OFFSET_CAPTURE, $offset) > 0) { + if ($matches[0][1] != $offset) { + // we are on another section + break; + } + $offset += \strlen($matches[0][0]); + if ('n' == $matches[3][0]) { + // create unique object index: [object number]_[generation number] + $index = $obj_num.'_'.(int) $matches[2][0]; + // check if object already exist + if (!isset($xref['xref'][$index])) { + // store object offset position + $xref['xref'][$index] = (int) $matches[1][0]; + } + ++$obj_num; + } elseif ('f' == $matches[3][0]) { + ++$obj_num; + } else { + // object number (index) + $obj_num = (int) $matches[1][0]; + } + } + // get trailer data + if (preg_match('/trailer[\s]*<<(.*)>>/isU', $pdfData, $matches, \PREG_OFFSET_CAPTURE, $offset) > 0) { + $trailer_data = $matches[1][0]; + if (!isset($xref['trailer']) || empty($xref['trailer'])) { + // get only the last updated version + $xref['trailer'] = []; + // parse trailer_data + if (preg_match('/Size[\s]+([0-9]+)/i', $trailer_data, $matches) > 0) { + $xref['trailer']['size'] = (int) $matches[1]; + } + if (preg_match('/Root[\s]+([0-9]+)[\s]+([0-9]+)[\s]+R/i', $trailer_data, $matches) > 0) { + $xref['trailer']['root'] = (int) $matches[1].'_'.(int) $matches[2]; + } + if (preg_match('/Encrypt[\s]+([0-9]+)[\s]+([0-9]+)[\s]+R/i', $trailer_data, $matches) > 0) { + $xref['trailer']['encrypt'] = (int) $matches[1].'_'.(int) $matches[2]; + } + if (preg_match('/Info[\s]+([0-9]+)[\s]+([0-9]+)[\s]+R/i', $trailer_data, $matches) > 0) { + $xref['trailer']['info'] = (int) $matches[1].'_'.(int) $matches[2]; + } + if (preg_match('/ID[\s]*[\[][\s]*[<]([^>]*)[>][\s]*[<]([^>]*)[>]/i', $trailer_data, $matches) > 0) { + $xref['trailer']['id'] = []; + $xref['trailer']['id'][0] = $matches[1]; + $xref['trailer']['id'][1] = $matches[2]; + } + } + if (preg_match('/Prev[\s]+([0-9]+)/i', $trailer_data, $matches) > 0) { + $offset = (int) $matches[1]; + if (0 != $offset) { + // get previous xref + $xref = $this->getXrefData($pdfData, $offset, $xref, $visitedOffsets); + } + } + } else { + throw new \Exception('Unable to find trailer'); + } + + return $xref; + } + + /** + * Decode the Cross-Reference Stream section + * + * @param string $pdfData PDF data + * @param int $startxref Offset at which the xref section starts + * @param array $xref Previous xref array (if any) + * @param array $visitedOffsets Array of visited offsets to prevent infinite loops + * + * @return array containing xref and trailer data + * + * @throws \Exception if unknown PNG predictor detected + */ + protected function decodeXrefStream(string $pdfData, int $startxref, array $xref = [], array $visitedOffsets = []): array + { + // try to read Cross-Reference Stream + $xrefobj = $this->getRawObject($pdfData, $startxref); + $xrefcrs = $this->getIndirectObject($pdfData, $xref, $xrefobj[1], $startxref, true); + if (!isset($xref['trailer']) || empty($xref['trailer'])) { + // get only the last updated version + $xref['trailer'] = []; + $filltrailer = true; + } else { + $filltrailer = false; + } + if (!isset($xref['xref'])) { + $xref['xref'] = []; + } + $valid_crs = false; + $columns = 0; + $predictor = null; + $sarr = $xrefcrs[0][1]; + if (!\is_array($sarr)) { + $sarr = []; + } + + $wb = []; + + foreach ($sarr as $k => $v) { + if ( + ('/' == $v[0]) + && ('Type' == $v[1]) + && ( + isset($sarr[$k + 1]) + && '/' == $sarr[$k + 1][0] + && 'XRef' == $sarr[$k + 1][1] + ) + ) { + $valid_crs = true; + } elseif (('/' == $v[0]) && ('Index' == $v[1]) && (isset($sarr[$k + 1]))) { + // initialize list for: first object number in the subsection / number of objects + $index_blocks = []; + for ($m = 0; $m < \count($sarr[$k + 1][1]); $m += 2) { + $index_blocks[] = [$sarr[$k + 1][1][$m][1], $sarr[$k + 1][1][$m + 1][1]]; + } + } elseif (('/' == $v[0]) && ('Prev' == $v[1]) && (isset($sarr[$k + 1]) && ('numeric' == $sarr[$k + 1][0]))) { + // get previous xref offset + $prevxref = (int) $sarr[$k + 1][1]; + } elseif (('/' == $v[0]) && ('W' == $v[1]) && (isset($sarr[$k + 1]))) { + // number of bytes (in the decoded stream) of the corresponding field + $wb[0] = (int) $sarr[$k + 1][1][0][1]; + $wb[1] = (int) $sarr[$k + 1][1][1][1]; + $wb[2] = (int) $sarr[$k + 1][1][2][1]; + } elseif (('/' == $v[0]) && ('DecodeParms' == $v[1]) && (isset($sarr[$k + 1][1]))) { + $decpar = $sarr[$k + 1][1]; + foreach ($decpar as $kdc => $vdc) { + if ( + '/' == $vdc[0] + && 'Columns' == $vdc[1] + && ( + isset($decpar[$kdc + 1]) + && 'numeric' == $decpar[$kdc + 1][0] + ) + ) { + $columns = (int) $decpar[$kdc + 1][1]; + } elseif ( + '/' == $vdc[0] + && 'Predictor' == $vdc[1] + && ( + isset($decpar[$kdc + 1]) + && 'numeric' == $decpar[$kdc + 1][0] + ) + ) { + $predictor = (int) $decpar[$kdc + 1][1]; + } + } + } elseif ($filltrailer) { + if (('/' == $v[0]) && ('Size' == $v[1]) && (isset($sarr[$k + 1]) && ('numeric' == $sarr[$k + 1][0]))) { + $xref['trailer']['size'] = $sarr[$k + 1][1]; + } elseif (('/' == $v[0]) && ('Root' == $v[1]) && (isset($sarr[$k + 1]) && ('objref' == $sarr[$k + 1][0]))) { + $xref['trailer']['root'] = $sarr[$k + 1][1]; + } elseif (('/' == $v[0]) && ('Info' == $v[1]) && (isset($sarr[$k + 1]) && ('objref' == $sarr[$k + 1][0]))) { + $xref['trailer']['info'] = $sarr[$k + 1][1]; + } elseif (('/' == $v[0]) && ('Encrypt' == $v[1]) && (isset($sarr[$k + 1]) && ('objref' == $sarr[$k + 1][0]))) { + $xref['trailer']['encrypt'] = $sarr[$k + 1][1]; + } elseif (('/' == $v[0]) && ('ID' == $v[1]) && (isset($sarr[$k + 1]))) { + $xref['trailer']['id'] = []; + $xref['trailer']['id'][0] = $sarr[$k + 1][1][0][1]; + $xref['trailer']['id'][1] = $sarr[$k + 1][1][1][1]; + } + } + } + + // decode data + if ($valid_crs && isset($xrefcrs[1][3][0])) { + if (null !== $predictor) { + // number of bytes in a row + $rowlen = ($columns + 1); + // convert the stream into an array of integers + /** @var array */ + $sdata = unpack('C*', $xrefcrs[1][3][0]); + // TODO: Handle the case when unpack returns false + + // split the rows + $sdata = array_chunk($sdata, $rowlen); + + // initialize decoded array + $ddata = []; + // initialize first row with zeros + $prev_row = array_fill(0, $rowlen, 0); + // for each row apply PNG unpredictor + foreach ($sdata as $k => $row) { + // initialize new row + $ddata[$k] = []; + // get PNG predictor value + $predictor = (10 + $row[0]); + // for each byte on the row + for ($i = 1; $i <= $columns; ++$i) { + // new index + $j = ($i - 1); + $row_up = $prev_row[$j]; + if (1 == $i) { + $row_left = 0; + $row_upleft = 0; + } else { + $row_left = $row[$i - 1]; + $row_upleft = $prev_row[$j - 1]; + } + switch ($predictor) { + case 10: // PNG prediction (on encoding, PNG None on all rows) + $ddata[$k][$j] = $row[$i]; + break; + + case 11: // PNG prediction (on encoding, PNG Sub on all rows) + $ddata[$k][$j] = (($row[$i] + $row_left) & 0xFF); + break; + + case 12: // PNG prediction (on encoding, PNG Up on all rows) + $ddata[$k][$j] = (($row[$i] + $row_up) & 0xFF); + break; + + case 13: // PNG prediction (on encoding, PNG Average on all rows) + $ddata[$k][$j] = (($row[$i] + (($row_left + $row_up) / 2)) & 0xFF); + break; + + case 14: // PNG prediction (on encoding, PNG Paeth on all rows) + // initial estimate + $p = ($row_left + $row_up - $row_upleft); + // distances + $pa = abs($p - $row_left); + $pb = abs($p - $row_up); + $pc = abs($p - $row_upleft); + $pmin = min($pa, $pb, $pc); + // return minimum distance + switch ($pmin) { + case $pa: + $ddata[$k][$j] = (($row[$i] + $row_left) & 0xFF); + break; + + case $pb: + $ddata[$k][$j] = (($row[$i] + $row_up) & 0xFF); + break; + + case $pc: + $ddata[$k][$j] = (($row[$i] + $row_upleft) & 0xFF); + break; + } + break; + + default: // PNG prediction (on encoding, PNG optimum) + throw new \Exception('Unknown PNG predictor: '.$predictor); + } + } + $prev_row = $ddata[$k]; + } // end for each row + // complete decoding + } else { + // number of bytes in a row + $rowlen = array_sum($wb); + if (0 < $rowlen) { + // convert the stream into an array of integers + $sdata = unpack('C*', $xrefcrs[1][3][0]); + // split the rows + $ddata = array_chunk($sdata, $rowlen); + } else { + // if the row length is zero, $ddata should be an empty array as well + $ddata = []; + } + } + + $sdata = []; + + // for every row + foreach ($ddata as $k => $row) { + // initialize new row + $sdata[$k] = [0, 0, 0]; + if (0 == $wb[0]) { + // default type field + $sdata[$k][0] = 1; + } + $i = 0; // count bytes in the row + // for every column + for ($c = 0; $c < 3; ++$c) { + // for every byte on the column + for ($b = 0; $b < $wb[$c]; ++$b) { + if (isset($row[$i])) { + $sdata[$k][$c] += ($row[$i] << (($wb[$c] - 1 - $b) * 8)); + } + ++$i; + } + } + } + + // fill xref + if (isset($index_blocks)) { + // load the first object number of the first /Index entry + $obj_num = $index_blocks[0][0]; + } else { + $obj_num = 0; + } + foreach ($sdata as $k => $row) { + switch ($row[0]) { + case 0: // (f) linked list of free objects + break; + + case 1: // (n) objects that are in use but are not compressed + // create unique object index: [object number]_[generation number] + $index = $obj_num.'_'.$row[2]; + // check if object already exist + if (!isset($xref['xref'][$index])) { + // store object offset position + $xref['xref'][$index] = $row[1]; + } + break; + + case 2: // compressed objects + // $row[1] = object number of the object stream in which this object is stored + // $row[2] = index of this object within the object stream + $index = $row[1].'_0_'.$row[2]; + $xref['xref'][$index] = -1; + break; + + default: // null objects + break; + } + ++$obj_num; + if (isset($index_blocks)) { + // reduce the number of remaining objects + --$index_blocks[0][1]; + if (0 == $index_blocks[0][1]) { + // remove the actual used /Index entry + array_shift($index_blocks); + if (0 < \count($index_blocks)) { + // load the first object number of the following /Index entry + $obj_num = $index_blocks[0][0]; + } else { + // if there are no more entries, remove $index_blocks to avoid actions on an empty array + unset($index_blocks); + } + } + } + } + } // end decoding data + if (isset($prevxref)) { + // get previous xref + $xref = $this->getXrefData($pdfData, $prevxref, $xref, $visitedOffsets); + } + + return $xref; + } + + protected function getObjectHeaderPattern(array $objRefs): string + { + // consider all whitespace character (PDF specifications) + return '/'.$objRefs[0].$this->config->getPdfWhitespacesRegex().$objRefs[1].$this->config->getPdfWhitespacesRegex().'obj/'; + } + + protected function getObjectHeaderLen(array $objRefs): int + { + // "4 0 obj" + // 2 whitespaces + strlen("obj") = 5 + return 5 + \strlen($objRefs[0]) + \strlen($objRefs[1]); + } + + /** + * Get content of indirect object. + * + * @param string $pdfData PDF data + * @param string $objRef Object number and generation number separated by underscore character + * @param int $offset Object offset + * @param bool $decoding If true decode streams + * + * @return array containing object data + * + * @throws \Exception if invalid object reference found + */ + protected function getIndirectObject(string $pdfData, array $xref, string $objRef, int $offset = 0, bool $decoding = true): array + { + /* + * build indirect object header + */ + // $objHeader = "[object number] [generation number] obj" + $objRefArr = explode('_', $objRef); + if (2 !== \count($objRefArr)) { + throw new \Exception('Invalid object reference for $obj.'); + } + + $objHeaderLen = $this->getObjectHeaderLen($objRefArr); + + /* + * check if we are in position + */ + // ignore whitespace characters at offset + $offset += strspn($pdfData, $this->config->getPdfWhitespaces(), $offset); + // ignore leading zeros for object number + $offset += strspn($pdfData, '0', $offset); + if (0 == preg_match($this->getObjectHeaderPattern($objRefArr), substr($pdfData, $offset, $objHeaderLen))) { + // an indirect reference to an undefined object shall be considered a reference to the null object + return ['null', 'null', $offset]; + } + + /* + * get content + */ + // starting position of object content + $offset += $objHeaderLen; + $objContentArr = []; + $i = 0; // object main index + $header = null; + do { + $oldOffset = $offset; + // get element + $element = $this->getRawObject($pdfData, $offset, null != $header ? $header[1] : null); + $offset = $element[2]; + // decode stream using stream's dictionary information + if ($decoding && ('stream' === $element[0]) && null != $header) { + $element[3] = $this->decodeStream($pdfData, $xref, $header[1], $element[1]); + } + $objContentArr[$i] = $element; + $header = isset($element[0]) && '<<' === $element[0] ? $element : null; + ++$i; + } while (('endobj' !== $element[0]) && ($offset !== $oldOffset)); + // remove closing delimiter + array_pop($objContentArr); + + /* + * return raw object content + */ + return $objContentArr; + } + + /** + * Get the content of object, resolving indirect object reference if necessary. + * + * @param string $pdfData PDF data + * @param array $obj Object value + * + * @return array containing object data + * + * @throws \Exception + */ + protected function getObjectVal(string $pdfData, $xref, array $obj): array + { + if ('objref' == $obj[0]) { + // reference to indirect object + if (isset($this->objects[$obj[1]])) { + // this object has been already parsed + return $this->objects[$obj[1]]; + } elseif (isset($xref[$obj[1]])) { + // parse new object + $this->objects[$obj[1]] = $this->getIndirectObject($pdfData, $xref, $obj[1], $xref[$obj[1]], false); + + return $this->objects[$obj[1]]; + } + } + + return $obj; + } + + /** + * Get object type, raw value and offset to next object + * + * @param int $offset Object offset + * @param array|null $headerDic obj header's dictionary, parsed by getRawObject. Used for stream parsing optimization + * + * @return array containing object type, raw value and offset to next object + */ + protected function getRawObject(string $pdfData, int $offset = 0, ?array $headerDic = null): array + { + $objtype = ''; // object type to be returned + $objval = ''; // object value to be returned + + // skip initial white space chars + $offset += strspn($pdfData, $this->config->getPdfWhitespaces(), $offset); + + // get first char + $char = $pdfData[$offset]; + // get object type + switch ($char) { + case '%': // \x25 PERCENT SIGN + // skip comment and search for next token + $next = strcspn($pdfData, "\r\n", $offset); + if ($next > 0) { + $offset += $next; + + return $this->getRawObject($pdfData, $offset); + } + break; + + case '/': // \x2F SOLIDUS + // name object + $objtype = $char; + ++$offset; + $span = strcspn($pdfData, "\x00\x09\x0a\x0c\x0d\x20\n\t\r\v\f\x28\x29\x3c\x3e\x5b\x5d\x7b\x7d\x2f\x25", $offset, 256); + if ($span > 0) { + $objval = substr($pdfData, $offset, $span); // unescaped value + $offset += $span; + } + break; + + case '(': // \x28 LEFT PARENTHESIS + case ')': // \x29 RIGHT PARENTHESIS + // literal string object + $objtype = $char; + ++$offset; + $strpos = $offset; + if ('(' == $char) { + $open_bracket = 1; + while ($open_bracket > 0) { + if (!isset($pdfData[$strpos])) { + break; + } + $ch = $pdfData[$strpos]; + switch ($ch) { + case '\\': // REVERSE SOLIDUS (5Ch) (Backslash) + // skip next character + ++$strpos; + break; + + case '(': // LEFT PARENHESIS (28h) + ++$open_bracket; + break; + + case ')': // RIGHT PARENTHESIS (29h) + --$open_bracket; + break; + } + ++$strpos; + } + $objval = substr($pdfData, $offset, $strpos - $offset - 1); + $offset = $strpos; + } + break; + + case '[': // \x5B LEFT SQUARE BRACKET + case ']': // \x5D RIGHT SQUARE BRACKET + // array object + $objtype = $char; + ++$offset; + if ('[' == $char) { + // get array content + $objval = []; + do { + $oldOffset = $offset; + // get element + $element = $this->getRawObject($pdfData, $offset); + $offset = $element[2]; + $objval[] = $element; + } while ((']' != $element[0]) && ($offset != $oldOffset)); + // remove closing delimiter + array_pop($objval); + } + break; + + case '<': // \x3C LESS-THAN SIGN + case '>': // \x3E GREATER-THAN SIGN + if (isset($pdfData[$offset + 1]) && ($pdfData[$offset + 1] == $char)) { + // dictionary object + $objtype = $char.$char; + $offset += 2; + if ('<' == $char) { + // get array content + $objval = []; + do { + $oldOffset = $offset; + // get element + $element = $this->getRawObject($pdfData, $offset); + $offset = $element[2]; + $objval[] = $element; + } while (('>>' != $element[0]) && ($offset != $oldOffset)); + // remove closing delimiter + array_pop($objval); + } + } else { + // hexadecimal string object + $objtype = $char; + ++$offset; + + $span = strspn($pdfData, "0123456789abcdefABCDEF\x09\x0a\x0c\x0d\x20", $offset); + $dataToCheck = $pdfData[$offset + $span] ?? null; + if ('<' == $char && $span > 0 && '>' == $dataToCheck) { + // remove white space characters + $objval = strtr(substr($pdfData, $offset, $span), $this->config->getPdfWhitespaces(), ''); + $offset += $span + 1; + } elseif (false !== ($endpos = strpos($pdfData, '>', $offset))) { + $offset = $endpos + 1; + } + } + break; + + default: + if ('endobj' == substr($pdfData, $offset, 6)) { + // indirect object + $objtype = 'endobj'; + $offset += 6; + } elseif ('null' == substr($pdfData, $offset, 4)) { + // null object + $objtype = 'null'; + $offset += 4; + $objval = 'null'; + } elseif ('true' == substr($pdfData, $offset, 4)) { + // boolean true object + $objtype = 'boolean'; + $offset += 4; + $objval = 'true'; + } elseif ('false' == substr($pdfData, $offset, 5)) { + // boolean false object + $objtype = 'boolean'; + $offset += 5; + $objval = 'false'; + } elseif ('stream' == substr($pdfData, $offset, 6)) { + // start stream object + $objtype = 'stream'; + $offset += 6; + if (1 == preg_match('/^( *[\r]?[\n])/isU', substr($pdfData, $offset, 4), $matches)) { + $offset += \strlen($matches[0]); + + // we get stream length here to later help preg_match test less data + $streamLen = (int) $this->getHeaderValue($headerDic, 'Length', 'numeric', 0); + $skip = false === $this->config->getRetainImageContent() && 'XObject' == $this->getHeaderValue($headerDic, 'Type', '/') && 'Image' == $this->getHeaderValue($headerDic, 'Subtype', '/'); + + $pregResult = preg_match( + '/(endstream)[\x09\x0a\x0c\x0d\x20]/isU', + $pdfData, + $matches, + \PREG_OFFSET_CAPTURE, + $offset + $streamLen + ); + + if (1 == $pregResult) { + $objval = $skip ? '' : substr($pdfData, $offset, $matches[0][1] - $offset); + $offset = $matches[1][1]; + } + } + } elseif ('endstream' == substr($pdfData, $offset, 9)) { + // end stream object + $objtype = 'endstream'; + $offset += 9; + } elseif (1 == preg_match('/^([0-9]+)[\s]+([0-9]+)[\s]+R/iU', substr($pdfData, $offset, 33), $matches)) { + // indirect object reference + $objtype = 'objref'; + $offset += \strlen($matches[0]); + $objval = (int) $matches[1].'_'.(int) $matches[2]; + } elseif (1 == preg_match('/^([0-9]+)[\s]+([0-9]+)[\s]+obj/iU', substr($pdfData, $offset, 33), $matches)) { + // object start + $objtype = 'obj'; + $objval = (int) $matches[1].'_'.(int) $matches[2]; + $offset += \strlen($matches[0]); + } elseif (($numlen = strspn($pdfData, '+-.0123456789', $offset)) > 0) { + // numeric object + $objtype = 'numeric'; + $objval = substr($pdfData, $offset, $numlen); + $offset += $numlen; + } + break; + } + + return [$objtype, $objval, $offset]; + } + + /** + * Get value of an object header's section (obj << YYY >> part ). + * + * It is similar to Header::get('...')->getContent(), the only difference is it can be used during the parsing process, + * when no Smalot\PdfParser\Header objects are created yet. + * + * @param string $key header's section name + * @param string $type type of the section (i.e. 'numeric', '/', '<<', etc.) + * @param string|array|null $default default value for header's section + * + * @return string|array|null value of obj header's section, or default value if none found, or its type doesn't match $type param + */ + private function getHeaderValue(?array $headerDic, string $key, string $type, $default = '') + { + if (false === \is_array($headerDic)) { + return $default; + } + + /* + * It recieves dictionary of header fields, as it is returned by RawDataParser::getRawObject, + * iterates over it, searching for section of type '/' whith requested key. + * If such a section is found, it tries to receive it's value (next object in dictionary), + * returning it, if it matches requested type, or default value otherwise. + */ + foreach ($headerDic as $i => $val) { + $isSectionName = \is_array($val) && 3 == \count($val) && '/' == $val[0]; + if ( + $isSectionName + && $val[1] == $key + && isset($headerDic[$i + 1]) + ) { + $isSectionValue = \is_array($headerDic[$i + 1]) && 1 < \count($headerDic[$i + 1]); + + return $isSectionValue && $type == $headerDic[$i + 1][0] + ? $headerDic[$i + 1][1] + : $default; + } + } + + return $default; + } + + /** + * Get Cross-Reference (xref) table and trailer data from PDF document data. + * + * @param int $offset xref offset (if known) + * @param array $xref previous xref array (if any) + * @param array $visitedOffsets array of visited offsets to prevent infinite loops + * + * @return array containing xref and trailer data + * + * @throws \Exception if it was unable to find startxref + * @throws \Exception if it was unable to find xref + */ + protected function getXrefData(string $pdfData, int $offset = 0, array $xref = [], array $visitedOffsets = []): array + { + // Check for circular references to prevent infinite loops + if (\in_array($offset, $visitedOffsets, true)) { + // We've already processed this offset, skip to avoid infinite loop + return $xref; + } + + // Track this offset as visited + $visitedOffsets[] = $offset; + // If the $offset is currently pointed at whitespace, bump it + // forward until it isn't; affects loosely targetted offsets + // for the 'xref' keyword + // See: https://github.com/smalot/pdfparser/issues/673 + $bumpOffset = $offset; + while (preg_match('/\s/', substr($pdfData, $bumpOffset, 1))) { + ++$bumpOffset; + } + + // Find all startxref tables from this $offset forward + $startxrefPreg = preg_match_all( + '/(?<=[\r\n])startxref[\s]*[\r\n]+([0-9]+)[\s]*[\r\n]+%%EOF/i', + $pdfData, + $startxrefMatches, + \PREG_SET_ORDER, + $offset + ); + + if (0 == $startxrefPreg) { + // No startxref tables were found + throw new \Exception('Unable to find startxref'); + } elseif (0 == $offset) { + // Use the last startxref in the document + $startxref = (int) $startxrefMatches[\count($startxrefMatches) - 1][1]; + } elseif (strpos($pdfData, 'xref', $bumpOffset) == $bumpOffset) { + // Already pointing at the xref table + $startxref = $bumpOffset; + } elseif (preg_match('/([0-9]+[\s][0-9]+[\s]obj)/i', $pdfData, $matches, 0, $bumpOffset)) { + // Cross-Reference Stream object + $startxref = $bumpOffset; + } else { + // Use the next startxref from this $offset + $startxref = (int) $startxrefMatches[0][1]; + } + + if ($startxref > \strlen($pdfData)) { + throw new \Exception('Unable to find xref (PDF corrupted?)'); + } + + // check xref position + if (strpos($pdfData, 'xref', $startxref) == $startxref) { + // Cross-Reference + $xref = $this->decodeXref($pdfData, $startxref, $xref, $visitedOffsets); + } else { + // Check if the $pdfData might have the wrong line-endings + $pdfDataUnix = str_replace("\r\n", "\n", $pdfData); + if ($startxref < \strlen($pdfDataUnix) && strpos($pdfDataUnix, 'xref', $startxref) == $startxref) { + // Return Unix-line-ending flag + $xref = ['Unix' => true]; + } else { + // Cross-Reference Stream + $xref = $this->decodeXrefStream($pdfData, $startxref, $xref, $visitedOffsets); + } + } + if (empty($xref)) { + throw new \Exception('Unable to find xref'); + } + + return $xref; + } + + /** + * Parses PDF data and returns extracted data as array. + * + * @param string $data PDF data to parse + * + * @return array array of parsed PDF document objects + * + * @throws EmptyPdfException if empty PDF data given + * @throws MissingPdfHeaderException if PDF data missing `%PDF-` header + */ + public function parseData(string $data): array + { + if (empty($data)) { + throw new EmptyPdfException('Empty PDF data given.'); + } + // find the pdf header starting position + if (false === ($trimpos = strpos($data, '%PDF-'))) { + throw new MissingPdfHeaderException('Invalid PDF data: Missing `%PDF-` header.'); + } + + // get PDF content string + $pdfData = $trimpos > 0 ? substr($data, $trimpos) : $data; + + // get xref and trailer data + $xref = $this->getXrefData($pdfData); + + // If we found Unix line-endings + if (isset($xref['Unix'])) { + $pdfData = str_replace("\r\n", "\n", $pdfData); + $xref = $this->getXrefData($pdfData); + } + + // parse all document objects + $objects = []; + foreach ($xref['xref'] as $obj => $offset) { + if (!isset($objects[$obj]) && ($offset > 0)) { + // decode objects with positive offset + $objects[$obj] = $this->getIndirectObject($pdfData, $xref, $obj, $offset, true); + } + } + + return [$xref, $objects]; + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Form.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Form.php new file mode 100644 index 00000000..8e60647f --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Form.php @@ -0,0 +1,51 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\XObject; + +use Smalot\PdfParser\Header; +use Smalot\PdfParser\Page; +use Smalot\PdfParser\PDFObject; + +/** + * Class Form + */ +class Form extends Page +{ + public function getText(?Page $page = null): string + { + $header = new Header([], $this->document); + $contents = new PDFObject($this->document, $header, $this->content, $this->config); + + return $contents->getText($this); + } +} diff --git a/vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Image.php b/vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Image.php new file mode 100644 index 00000000..6dc6b0a6 --- /dev/null +++ b/vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Image.php @@ -0,0 +1,47 @@ + + * + * @date 2017-01-03 + * + * @license LGPLv3 + * + * @url + * + * PdfParser is a pdf library written in PHP, extraction oriented. + * Copyright (C) 2017 - Sébastien MALOT + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. + * If not, see . + */ + +namespace Smalot\PdfParser\XObject; + +use Smalot\PdfParser\Page; +use Smalot\PdfParser\PDFObject; + +/** + * Class Image + */ +class Image extends PDFObject +{ + public function getText(?Page $page = null): string + { + return ''; + } +}