Merge pull request 'Plugin-Updates über update_url (0.24.0)' (#39) from feature/plugin-updates into main
Some checks are pending
CI / PHP 8.3 / mariadb:10.6 (push) Waiting to run
CI / PHP 8.4 / mariadb:10.6 (push) Waiting to run
CI / PHP 8.3 / mariadb:11.4 (push) Waiting to run
CI / PHP 8.4 / mariadb:11.4 (push) Waiting to run
CI / PHP 8.3 / mysql:8.0 (push) Waiting to run
CI / PHP 8.4 / mysql:8.0 (push) Waiting to run
CI / PHP 8.3 / mysql:8.4 (push) Waiting to run
CI / PHP 8.4 / mysql:8.4 (push) Waiting to run
CI / Build-Artefakte aktuell (push) Waiting to run
Some checks are pending
CI / PHP 8.3 / mariadb:10.6 (push) Waiting to run
CI / PHP 8.4 / mariadb:10.6 (push) Waiting to run
CI / PHP 8.3 / mariadb:11.4 (push) Waiting to run
CI / PHP 8.4 / mariadb:11.4 (push) Waiting to run
CI / PHP 8.3 / mysql:8.0 (push) Waiting to run
CI / PHP 8.4 / mysql:8.0 (push) Waiting to run
CI / PHP 8.3 / mysql:8.4 (push) Waiting to run
CI / PHP 8.4 / mysql:8.4 (push) Waiting to run
CI / Build-Artefakte aktuell (push) Waiting to run
This commit is contained in:
commit
232dc5c59c
117 changed files with 739 additions and 297 deletions
|
|
@ -4,6 +4,11 @@ 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.24.0
|
||||
|
||||
- Plugins: Separat installierte Plugins können sich selbst aktualisieren. Inhaus prüft täglich deren Update-Adresse (z. B. die Releases auf Forgejo, Gitea oder GitHub) und zeigt unter „Administration → Plugins“ „Update verfügbar“ mit „Jetzt aktualisieren“ und den Neuerungen. Prüfsumme und Mindestversion von Inhaus werden beachtet, Daten und Einstellungen bleiben erhalten
|
||||
- Monatsspruch 1.1.0 nutzt das bereits – einmalig das ZIP aus dem Release hochladen, danach kommen Updates automatisch
|
||||
|
||||
## 0.23.0
|
||||
|
||||
- Termine lassen sich jetzt auch im Portal anlegen, bearbeiten und löschen – mit Titelbild aus der Mediathek, Beschreibung, Ort, Online-Link und Zielgruppe. „Neuer Termin“ auf der Terminseite, „Bearbeiten“ am Termin und eine Liste unter „Redaktion → Termine“ (für Personen mit dem Recht „Termine verwalten“)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ use App\Plugins\PluginAccess;
|
|||
use App\Plugins\PluginInstaller;
|
||||
use App\Plugins\PluginManager;
|
||||
use App\Plugins\PluginManifest;
|
||||
use App\Plugins\PluginUpdates;
|
||||
use App\Support\Audit;
|
||||
use BackedEnum;
|
||||
use Filament\Actions\Action;
|
||||
|
|
@ -88,6 +89,37 @@ class Plugins extends Page
|
|||
$this->run(fn () => $plugins->delete($slug, $removeData), 'Plugin gelöscht', $removeData ? 'Das Plugin und seine Daten wurden entfernt.' : 'Die Daten des Plugins sind noch in der Datenbank.');
|
||||
}
|
||||
|
||||
public function checkUpdates(PluginUpdates $updates): void
|
||||
{
|
||||
$results = $updates->check();
|
||||
$available = collect(array_keys($results))->filter(fn (string $slug) => $updates->info($slug)['available'] ?? false)->count();
|
||||
|
||||
Notification::make()->success()
|
||||
->title($results === [] ? 'Keine Plugins mit Update-Adresse' : ($available ? "{$available} Update(s) verfügbar" : 'Alle Plugins sind aktuell'))
|
||||
->send();
|
||||
}
|
||||
|
||||
public function updatePlugin(string $slug, PluginUpdates $updates): void
|
||||
{
|
||||
$this->run(function () use ($slug, $updates) {
|
||||
$manifest = $updates->update($slug);
|
||||
Notification::make()->success()->title("„{$manifest->name}“ ist jetzt auf {$manifest->version}")->send();
|
||||
}, 'Plugin aktualisiert', 'Die neue Fassung ist ab dem nächsten Seitenaufruf aktiv.');
|
||||
}
|
||||
|
||||
public static function getNavigationBadge(): ?string
|
||||
{
|
||||
$updates = app(PluginUpdates::class);
|
||||
$count = collect(app(PluginManager::class)->all())->filter(fn (PluginManifest $m) => ! $m->core && ($updates->info($m->slug)['available'] ?? false))->count();
|
||||
|
||||
return $count ? (string) $count : null;
|
||||
}
|
||||
|
||||
public static function getNavigationBadgeTooltip(): ?string
|
||||
{
|
||||
return 'Plugin-Updates verfügbar';
|
||||
}
|
||||
|
||||
public function installArchive(PluginInstaller $installer): void
|
||||
{
|
||||
$this->validate(['archive' => ['required', 'file', 'mimes:zip', 'max:51200']], attributes: ['archive' => 'ZIP-Archiv']);
|
||||
|
|
@ -134,6 +166,9 @@ class Plugins extends Page
|
|||
'excluded' => ($ids = app(PluginAccess::class)->excludedRoles($m->slug)) ? Role::query()->whereIn('id', $ids)->orderBy('name')->pluck('name')->all() : [],
|
||||
])->sortBy(fn (array $p) => [$p['manifest']->core ? 0 : 1, $p['manifest']->name])->values(),
|
||||
'uploadsAllowed' => PluginInstaller::uploadsAllowed(),
|
||||
'updates' => collect($plugins->all())->mapWithKeys(fn (PluginManifest $m) => [$m->slug => app(PluginUpdates::class)->info($m->slug)])->filter()->all(),
|
||||
'updatesCheckedAt' => app(PluginUpdates::class)->checkedAt(),
|
||||
'hasUpdateUrls' => collect($plugins->all())->contains(fn (PluginManifest $m) => ! $m->core && $m->updateUrl),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
198
app/Plugins/PluginUpdates.php
Normal file
198
app/Plugins/PluginUpdates.php
Normal file
|
|
@ -0,0 +1,198 @@
|
|||
<?php
|
||||
|
||||
namespace App\Plugins;
|
||||
|
||||
use App\Support\Audit;
|
||||
use App\Support\Settings;
|
||||
use App\Version;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Updates separat installierter Plugins über die „update_url“ aus plugin.json.
|
||||
*
|
||||
* Die Adresse liefert entweder das Inhaus-Format
|
||||
*
|
||||
* { "version": "1.2.0", "download_url": "https://…/plugin-1.2.0.zip",
|
||||
* "sha256": "…", "changelog": "…", "requires": { "core": ">=0.20" } }
|
||||
*
|
||||
* oder eine Release-Antwort von Forgejo/Gitea/GitHub (…/releases/latest bzw.
|
||||
* …/releases): Version aus „tag_name“, Download = erstes ZIP unter „assets“.
|
||||
*/
|
||||
class PluginUpdates
|
||||
{
|
||||
public const STATE = 'plugins.updates';
|
||||
|
||||
public const MAX_BYTES = 50 * 1024 * 1024;
|
||||
|
||||
public function __construct(
|
||||
private readonly PluginManager $plugins,
|
||||
private readonly PluginInstaller $installer,
|
||||
private readonly Settings $settings,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Alle Kunden-Plugins mit update_url prüfen.
|
||||
*
|
||||
* @return array<string, array<string, mixed>>
|
||||
*/
|
||||
public function check(): array
|
||||
{
|
||||
$results = [];
|
||||
|
||||
foreach ($this->plugins->all() as $manifest) {
|
||||
if ($manifest->core || ! $manifest->updateUrl) {
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
$results[$manifest->slug] = $this->fetch($manifest->updateUrl);
|
||||
} catch (Throwable $e) {
|
||||
$results[$manifest->slug] = ['error' => $e->getMessage()];
|
||||
}
|
||||
}
|
||||
|
||||
$this->settings->set(self::STATE, ['checked_at' => now()->toIso8601String(), 'plugins' => $results]);
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
public function checkedAt(): ?string
|
||||
{
|
||||
return $this->settings->get(self::STATE)['checked_at'] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bekannte Informationen zu einem Plugin (aus der letzten Prüfung).
|
||||
*
|
||||
* @return array{version?: string, download_url?: string, sha256?: ?string, changelog?: ?string, requires_core?: ?string, error?: string, available: bool, compatible: bool}|null
|
||||
*/
|
||||
public function info(string $slug): ?array
|
||||
{
|
||||
$manifest = $this->plugins->find($slug);
|
||||
$info = $this->settings->get(self::STATE)['plugins'][$slug] ?? null;
|
||||
|
||||
if (! $manifest || $manifest->core || ! is_array($info)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$newer = isset($info['version']) && version_compare(ltrim($info['version'], 'vV'), ltrim($manifest->version, 'vV'), '>');
|
||||
$compatible = ! isset($info['requires_core']) || VersionConstraint::satisfies(Version::VERSION, $info['requires_core']);
|
||||
|
||||
return [...$info, 'available' => $newer && isset($info['download_url']), 'compatible' => $compatible];
|
||||
}
|
||||
|
||||
/**
|
||||
* Neue Fassung herunterladen und installieren; Daten und Aktivierung bleiben erhalten.
|
||||
*/
|
||||
public function update(string $slug): PluginManifest
|
||||
{
|
||||
$info = $this->info($slug);
|
||||
|
||||
if (! $info || ! $info['available']) {
|
||||
throw new RuntimeException('Für dieses Plugin ist kein Update bekannt – bitte zuerst „Nach Updates suchen“.');
|
||||
}
|
||||
|
||||
if (! $info['compatible']) {
|
||||
throw new RuntimeException("Die neue Fassung benötigt Inhaus {$info['requires_core']}. Bitte zuerst Inhaus aktualisieren.");
|
||||
}
|
||||
|
||||
$file = tempnam(sys_get_temp_dir(), 'plugin-update');
|
||||
|
||||
try {
|
||||
$response = Http::timeout(120)->withOptions(['sink' => $file])->get($this->safeUrl($info['download_url']));
|
||||
|
||||
if (! $response->successful()) {
|
||||
throw new RuntimeException("Download fehlgeschlagen (HTTP {$response->status()}).");
|
||||
}
|
||||
|
||||
if (filesize($file) > self::MAX_BYTES) {
|
||||
throw new RuntimeException('Das Update ist größer als 50 MB.');
|
||||
}
|
||||
|
||||
if (! empty($info['sha256']) && ! hash_equals(strtolower($info['sha256']), hash_file('sha256', $file))) {
|
||||
throw new RuntimeException('Die Prüfsumme des Downloads stimmt nicht – das Update wurde nicht installiert.');
|
||||
}
|
||||
|
||||
$wasEnabled = $this->plugins->isEnabled($slug);
|
||||
$manifest = $this->installer->install($file);
|
||||
|
||||
if ($manifest->slug !== $slug) {
|
||||
throw new RuntimeException("Das Archiv enthält das Plugin „{$manifest->slug}“ statt „{$slug}“.");
|
||||
}
|
||||
|
||||
// Neue Tabellen oder Spalten des Plugins sofort anlegen
|
||||
if ($wasEnabled && is_dir($manifest->migrationsPath())) {
|
||||
Artisan::call('migrate', ['--path' => $manifest->migrationsPath(), '--realpath' => true, '--force' => true]);
|
||||
}
|
||||
|
||||
Audit::log('plugin.auto_updated', ['plugin' => $slug, 'version' => $manifest->version]);
|
||||
|
||||
return $manifest;
|
||||
} finally {
|
||||
@unlink($file);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{version: string, download_url: ?string, sha256: ?string, changelog: ?string, requires_core: ?string}
|
||||
*/
|
||||
private function fetch(string $url): array
|
||||
{
|
||||
$response = Http::timeout(15)->acceptJson()->get($this->safeUrl($url));
|
||||
|
||||
if (! $response->successful()) {
|
||||
throw new RuntimeException("Update-Adresse antwortet mit HTTP {$response->status()}.");
|
||||
}
|
||||
|
||||
$data = $response->json();
|
||||
|
||||
if (! is_array($data)) {
|
||||
throw new RuntimeException('Update-Adresse liefert kein JSON.');
|
||||
}
|
||||
|
||||
// Liste von Releases: das neueste ohne Vorabversion
|
||||
if (array_is_list($data)) {
|
||||
$data = collect($data)->first(fn ($release) => is_array($release) && ! ($release['prerelease'] ?? false) && ! ($release['draft'] ?? false));
|
||||
|
||||
if (! $data) {
|
||||
throw new RuntimeException('Keine veröffentlichte Version gefunden.');
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($data['tag_name'])) {
|
||||
$zip = collect($data['assets'] ?? [])->first(fn ($asset) => str_ends_with(strtolower((string) ($asset['name'] ?? '')), '.zip'));
|
||||
|
||||
return [
|
||||
'version' => ltrim((string) $data['tag_name'], 'vV'),
|
||||
'download_url' => $zip['browser_download_url'] ?? null,
|
||||
'sha256' => null,
|
||||
'changelog' => isset($data['body']) ? mb_substr((string) $data['body'], 0, 2000) : null,
|
||||
'requires_core' => null,
|
||||
];
|
||||
}
|
||||
|
||||
if (! is_string($data['version'] ?? null)) {
|
||||
throw new RuntimeException('Update-Adresse liefert keine Version.');
|
||||
}
|
||||
|
||||
return [
|
||||
'version' => ltrim($data['version'], 'vV'),
|
||||
'download_url' => is_string($data['download_url'] ?? null) ? $data['download_url'] : null,
|
||||
'sha256' => is_string($data['sha256'] ?? null) ? $data['sha256'] : null,
|
||||
'changelog' => is_string($data['changelog'] ?? null) ? mb_substr($data['changelog'], 0, 2000) : null,
|
||||
'requires_core' => is_string($data['requires']['core'] ?? null) ? $data['requires']['core'] : null,
|
||||
];
|
||||
}
|
||||
|
||||
private function safeUrl(string $url): string
|
||||
{
|
||||
if (! preg_match('#^https://[^\s/]+#i', $url)) {
|
||||
throw new RuntimeException('Update-Adressen müssen mit https:// beginnen.');
|
||||
}
|
||||
|
||||
return $url;
|
||||
}
|
||||
}
|
||||
|
|
@ -9,5 +9,5 @@ namespace App;
|
|||
*/
|
||||
final class Version
|
||||
{
|
||||
public const VERSION = '0.23.0';
|
||||
public const VERSION = '0.24.0';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,9 +101,9 @@ Oberflächen:
|
|||
deaktiviert, Admin wird informiert, Portal bleibt erreichbar.
|
||||
- Datei-Änderungen über den Admin per Konfiguration abschaltbar
|
||||
(analog `DISALLOW_FILE_MODS`).
|
||||
- Updates von Kunden-Plugins: später über eine `update_url` im Manifest; für
|
||||
eigene, lizenzpflichtige Plugins kann dasselbe Proxy-Modell wie beim Core
|
||||
genutzt werden.
|
||||
- Updates von Kunden-Plugins: ✅ über `update_url` im Manifest (Forgejo/Gitea/GitHub-Releases
|
||||
oder eigenes JSON, siehe docs/PLUGINS.md); für eigene, lizenzpflichtige Plugins kann
|
||||
dasselbe Proxy-Modell wie beim Core genutzt werden (offen).
|
||||
|
||||
### 4.2 Aufbau eines Plugins
|
||||
|
||||
|
|
|
|||
|
|
@ -154,7 +154,30 @@ $this->app->make(Blocks::class)->add(BlockType::make('mein-plugin.liste', 'Meine
|
|||
- Kunden-Plugins liegen in `plugins/` und werden von Aktualisierungen nie verändert.
|
||||
- Wirft ein Plugin beim Laden einen Fehler – oder bringt es den PHP-Prozess zum
|
||||
Absturz –, wird es automatisch deaktiviert; der Grund steht auf der Plugins-Seite.
|
||||
- `INHAUS_DISALLOW_FILE_MODS=true` in der `.env` verbietet Hochladen und Löschen.
|
||||
- `INHAUS_DISALLOW_FILE_MODS=true` in der `.env` verbietet Hochladen, Aktualisieren und Löschen.
|
||||
|
||||
### Updates über `update_url`
|
||||
|
||||
Mit `"update_url"` in `plugin.json` prüft Inhaus täglich (und auf Knopfdruck unter
|
||||
„Plugins“), ob es eine neue Fassung gibt. Die Adresse muss mit `https://` beginnen und
|
||||
liefert eines dieser Formate:
|
||||
|
||||
- **Releases von Forgejo, Gitea oder GitHub** – z. B.
|
||||
`https://git.example.org/api/v1/repos/<owner>/<repo>/releases/latest`: Version aus
|
||||
`tag_name` (ein führendes „v“ entfällt), Download = erstes ZIP unter den Anhängen,
|
||||
Neuerungen aus dem Release-Text. Das Repository muss ohne Anmeldung lesbar sein.
|
||||
- **Eigenes JSON:**
|
||||
|
||||
```json
|
||||
{ "version": "1.2.0", "download_url": "https://…/mein-plugin-1.2.0.zip",
|
||||
"sha256": "…", "changelog": "…", "requires": { "core": ">=0.24" } }
|
||||
```
|
||||
|
||||
`sha256` ist optional, wird aber geprüft, wenn angegeben. `requires.core` verhindert
|
||||
Updates, die eine neuere Inhaus-Version brauchen.
|
||||
|
||||
Das Update ersetzt die Dateien des Plugins; Aktivierung, Einstellungen und Daten bleiben,
|
||||
neue Migrationen laufen sofort.
|
||||
|
||||
## Eigene Oberflächen mit dem Plugin-SDK
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,J as n,On 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}from"./runtime-core.esm-bundler-B8D2lM98.js";import{Yt as m,at as h,ct as g,it as _,ot as v,st as y}from"./app-BAVpMSkT.js";var b={class:`px-5 pt-1 pb-5`},x={__name:`Accordion`,props:{block:{type:Object,required:!0}},setup(x){let S=x,C=n(`pagebuilder:list`),w=n(`pagebuilder:editing`,!1),T=s(()=>{let e=S.block.items[0]?.id;return S.block.data.multiple?S.block.data.first_open&&e?[e]:[]:S.block.data.first_open?e:void 0});return(n,s)=>(c(),f(r(g),{key:`${x.block.data.multiple}-${r(w)}`,type:x.block.data.multiple?`multiple`:`single`,"default-value":T.value,collapsible:``,class:`divide-y rounded-lg border bg-card`},{default:u(()=>[(c(!0),a(l,null,o(x.block.items,(n,a)=>(c(),f(r(y),{key:n.id,value:n.id},{default:u(()=>[e(r(h),{as:`h3`},{default:u(()=>[e(r(_),{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:u(()=>[t(d(n.title||`Abschnitt ${a+1}`)+` `,1),e(r(m),{class:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180`})]),_:2},1024)]),_:2},1024),e(r(v),{class:`overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`},{default:u(()=>[i(`div`,b,[(c(),f(p(r(C)),{item:n},null,8,[`item`]))])]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1},8,[`type`,`default-value`]))}};export{x as default};
|
||||
import{D as e,E as t,J as n,On 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}from"./runtime-core.esm-bundler-B8D2lM98.js";import{Yt as m,at as h,ct as g,it as _,ot as v,st as y}from"./app-ljw5ZzEq.js";var b={class:`px-5 pt-1 pb-5`},x={__name:`Accordion`,props:{block:{type:Object,required:!0}},setup(x){let S=x,C=n(`pagebuilder:list`),w=n(`pagebuilder:editing`,!1),T=s(()=>{let e=S.block.items[0]?.id;return S.block.data.multiple?S.block.data.first_open&&e?[e]:[]:S.block.data.first_open?e:void 0});return(n,s)=>(c(),f(r(g),{key:`${x.block.data.multiple}-${r(w)}`,type:x.block.data.multiple?`multiple`:`single`,"default-value":T.value,collapsible:``,class:`divide-y rounded-lg border bg-card`},{default:u(()=>[(c(!0),a(l,null,o(x.block.items,(n,a)=>(c(),f(r(y),{key:n.id,value:n.id},{default:u(()=>[e(r(h),{as:`h3`},{default:u(()=>[e(r(_),{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:u(()=>[t(d(n.title||`Abschnitt ${a+1}`)+` `,1),e(r(m),{class:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180`})]),_:2},1024)]),_:2},1024),e(r(v),{class:`overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`},{default:u(()=>[i(`div`,b,[(c(),f(p(r(C)),{item:n},null,8,[`item`]))])]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1},8,[`type`,`default-value`]))}};export{x as default};
|
||||
|
|
@ -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{i as u}from"./dist--2OKCVzt.js";import{t as d}from"./file-check-corner-J0TYMSsH.js";import{w as f}from"./app-BAVpMSkT.js";var p={class:`-mt-1 mb-3 text-[13px] text-muted-foreground`},m={class:`grid gap-1`},h={class:`min-w-0 truncate`},g={__name:`Acknowledgements`,props:{entries:{type:Array,required:!0},total:{type:Number,required:!0},url:{type:String,required:!0}},setup(g){return(_,v)=>(a(),l(f,{title:`Bitte lesen und bestätigen`,"action-label":g.total>g.entries.length?`Alle ${g.total}`:`QM`,"action-href":g.url},{default:s(()=>[n(`p`,p,c(g.total===1?`Ein QM-Dokument wartet`:`${g.total} QM-Dokumente warten`)+` auf Ihre Lesebestätigung. `,1),n(`ul`,m,[(a(!0),r(o,null,i(g.entries,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:i.url,class:`flex items-center gap-2.5 rounded-md px-2 py-1.5 text-sm hover:bg-accent`},{default:s(()=>[e(t(d),{class:`size-4 shrink-0 text-amber-600 dark:text-amber-400`}),n(`span`,h,c(i.title),1)]),_:2},1032,[`href`])]))),128))])]),_:1},8,[`action-label`,`action-href`]))}};export{g as default};
|
||||
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{i as u}from"./dist--2OKCVzt.js";import{t as d}from"./file-check-corner-J0TYMSsH.js";import{w as f}from"./app-ljw5ZzEq.js";var p={class:`-mt-1 mb-3 text-[13px] text-muted-foreground`},m={class:`grid gap-1`},h={class:`min-w-0 truncate`},g={__name:`Acknowledgements`,props:{entries:{type:Array,required:!0},total:{type:Number,required:!0},url:{type:String,required:!0}},setup(g){return(_,v)=>(a(),l(f,{title:`Bitte lesen und bestätigen`,"action-label":g.total>g.entries.length?`Alle ${g.total}`:`QM`,"action-href":g.url},{default:s(()=>[n(`p`,p,c(g.total===1?`Ein QM-Dokument wartet`:`${g.total} QM-Dokumente warten`)+` auf Ihre Lesebestätigung. `,1),n(`ul`,m,[(a(!0),r(o,null,i(g.entries,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:i.url,class:`flex items-center gap-2.5 rounded-md px-2 py-1.5 text-sm hover:bg-accent`},{default:s(()=>[e(t(d),{class:`size-4 shrink-0 text-amber-600 dark:text-amber-400`}),n(`span`,h,c(i.title),1)]),_:2},1032,[`href`])]))),128))])]),_:1},8,[`action-label`,`action-href`]))}};export{g as default};
|
||||
|
|
@ -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{w as s}from"./app-BAVpMSkT.js";import{t as c}from"./NewsCard-Ba6R3LMR.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};
|
||||
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{w as s}from"./app-ljw5ZzEq.js";import{t as c}from"./NewsCard-BibmiOWg.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};
|
||||
|
|
@ -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{i as u}from"./dist--2OKCVzt.js";import{M as d,Qt as f}from"./app-BAVpMSkT.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};
|
||||
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{i as u}from"./dist--2OKCVzt.js";import{M as d,Qt as f}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -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-D956hOlz.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};
|
||||
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-EzbfSTdi.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};
|
||||
|
|
@ -1 +1 @@
|
|||
import{J as e,On as t,b as n,bt as r,mt as i,o as a,v as o,wt as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as l}from"./registry-BRBgo7Wj.js";var u={class:`grid gap-6`},d={__name:`BlockList`,props:{item:{type:Object,required:!0}},setup(d){let f=e(`pagebuilder:types`,{});return(e,p)=>(i(),n(`div`,u,[(i(!0),n(a,null,r(d.item.blocks,e=>(i(),n(a,{key:e.id},[t(l)(t(f)[e.type]?.component??e.component??``)?(i(),o(s(t(l)(t(f)[e.type]?.component??e.component??``)),{key:0,block:e},null,8,[`block`])):c(``,!0)],64))),128))]))}};export{d as t};
|
||||
import{J as e,On as t,b as n,bt as r,mt as i,o as a,v as o,wt as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as l}from"./registry-C7xLZK8R.js";var u={class:`grid gap-6`},d={__name:`BlockList`,props:{item:{type:Object,required:!0}},setup(d){let f=e(`pagebuilder:types`,{});return(e,p)=>(i(),n(`div`,u,[(i(!0),n(a,null,r(d.item.blocks,e=>(i(),n(a,{key:e.id},[t(l)(t(f)[e.type]?.component??e.component??``)?(i(),o(s(t(l)(t(f)[e.type]?.component??e.component??``)),{key:0,block:e},null,8,[`block`])):c(``,!0)],64))),128))]))}};export{d as t};
|
||||
|
|
@ -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{t as u}from"./circle-alert-AqOvEy07.js";import{t as d}from"./circle-check-K9QH5jex.js";import{t as f}from"./info-ByKJSon9.js";import{t as p}from"./triangle-alert-DyO_Fk2w.js";import{Mt as m,mt as h}from"./app-BAVpMSkT.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:f,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:m,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:d,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:u,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:h,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};
|
||||
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{t as u}from"./circle-alert-AqOvEy07.js";import{t as d}from"./circle-check-K9QH5jex.js";import{t as f}from"./info-ByKJSon9.js";import{t as p}from"./triangle-alert-DyO_Fk2w.js";import{Mt as m,mt as h}from"./app-ljw5ZzEq.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:f,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:m,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:d,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:u,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:h,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};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{E as e,J 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{t as p}from"./createLucideIcon-VlaMqNX_.js";import{m}from"./app-BAVpMSkT.js";var h=p({name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]}),g=[`href`,`target`,`rel`],_={key:0,class:`text-sm text-muted-foreground`},v={__name:`Buttons`,props:{block:{type:Object,required:!0}},setup(p){let v={primary:`default`,outline:`outline`,link:`link`},y=t(`pagebuilder:editing`,!1);return(t,b)=>(s(),a(`div`,{class:r([`flex flex-wrap gap-3`,{"justify-center":p.block.data.align===`center`}])},[(s(!0),a(c,null,o(p.block.data.buttons,(t,r)=>(s(),d(n(m),{key:r,variant:v[t.variant]??`default`,"as-child":``},{default:l(()=>[i(`a`,{href:t.url||`#`,target:t.new_tab?`_blank`:void 0,rel:t.new_tab?`noopener`:void 0},[e(u(t.label||`Schaltfläche`)+` `,1),t.new_tab?(s(),d(n(h),{key:0})):f(``,!0)],8,g)]),_:2},1032,[`variant`]))),128)),n(y)&&!p.block.data.buttons.length?(s(),a(`p`,_,`Noch keine Schaltflächen.`)):f(``,!0)],2))}};export{v as default};
|
||||
import{E as e,J 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{t as p}from"./createLucideIcon-VlaMqNX_.js";import{m}from"./app-ljw5ZzEq.js";var h=p({name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]}),g=[`href`,`target`,`rel`],_={key:0,class:`text-sm text-muted-foreground`},v={__name:`Buttons`,props:{block:{type:Object,required:!0}},setup(p){let v={primary:`default`,outline:`outline`,link:`link`},y=t(`pagebuilder:editing`,!1);return(t,b)=>(s(),a(`div`,{class:r([`flex flex-wrap gap-3`,{"justify-center":p.block.data.align===`center`}])},[(s(!0),a(c,null,o(p.block.data.buttons,(t,r)=>(s(),d(n(m),{key:r,variant:v[t.variant]??`default`,"as-child":``},{default:l(()=>[i(`a`,{href:t.url||`#`,target:t.new_tab?`_blank`:void 0,rel:t.new_tab?`noopener`:void 0},[e(u(t.label||`Schaltfläche`)+` `,1),t.new_tab?(s(),d(n(h),{key:0})):f(``,!0)],8,g)]),_:2},1032,[`variant`]))),128)),n(y)&&!p.block.data.buttons.length?(s(),a(`p`,_,`Noch keine Schaltflächen.`)):f(``,!0)],2))}};export{v as default};
|
||||
|
|
@ -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,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{n as m,t as h}from"./message-circle-C0OAlJBT.js";import{w as g}from"./app-BAVpMSkT.js";var _={class:`-my-1 divide-y`},v={class:`flex items-center gap-1.5 text-xs text-muted-foreground`},y={class:`mt-1 text-sm leading-relaxed break-words text-foreground/80`},b={key:0,class:`mt-2 border-t pt-3 text-xs text-muted-foreground`},x={__name:`Comments`,props:{total:{type:Number,required:!0},comments:{type:Array,required:!0}},setup(x){let S=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`,year:`numeric`});return(C,w)=>(o(),u(g,{title:`Kommentare (${x.total})`},{default:c(()=>[r(`ol`,_,[(o(!0),i(s,null,a(x.comments,a=>(o(),i(`li`,{key:a.id,class:`py-3`},[r(`p`,v,[(o(),u(d(a.is_reply?n(m):n(h)),{class:`size-3.5 shrink-0`})),r(`span`,null,l(a.is_reply?`Antwort`:`Kommentar`)+` am `+l(n(S).format(new Date(a.created_at)))+` zu`,1)]),e(n(p),{href:a.post.url,class:`mt-0.5 block text-sm font-medium text-brand-text hover:underline`},{default:c(()=>[t(l(a.post.title),1)]),_:2},1032,[`href`]),r(`p`,y,`„`+l(a.excerpt)+`“`,1)]))),128))]),x.total>x.comments.length?(o(),i(`p`,b,`Die neuesten `+l(x.comments.length)+` von `+l(x.total)+` Kommentaren.`,1)):f(``,!0)]),_:1},8,[`title`]))}};export{x as default};
|
||||
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,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{n as m,t as h}from"./message-circle-C0OAlJBT.js";import{w as g}from"./app-ljw5ZzEq.js";var _={class:`-my-1 divide-y`},v={class:`flex items-center gap-1.5 text-xs text-muted-foreground`},y={class:`mt-1 text-sm leading-relaxed break-words text-foreground/80`},b={key:0,class:`mt-2 border-t pt-3 text-xs text-muted-foreground`},x={__name:`Comments`,props:{total:{type:Number,required:!0},comments:{type:Array,required:!0}},setup(x){let S=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`,year:`numeric`});return(C,w)=>(o(),u(g,{title:`Kommentare (${x.total})`},{default:c(()=>[r(`ol`,_,[(o(!0),i(s,null,a(x.comments,a=>(o(),i(`li`,{key:a.id,class:`py-3`},[r(`p`,v,[(o(),u(d(a.is_reply?n(m):n(h)),{class:`size-3.5 shrink-0`})),r(`span`,null,l(a.is_reply?`Antwort`:`Kommentar`)+` am `+l(n(S).format(new Date(a.created_at)))+` zu`,1)]),e(n(p),{href:a.post.url,class:`mt-0.5 block text-sm font-medium text-brand-text hover:underline`},{default:c(()=>[t(l(a.post.title),1)]),_:2},1032,[`href`]),r(`p`,y,`„`+l(a.excerpt)+`“`,1)]))),128))]),x.total>x.comments.length?(o(),i(`p`,b,`Die neuesten `+l(x.comments.length)+` von `+l(x.total)+` Kommentaren.`,1)):f(``,!0)]),_:1},8,[`title`]))}};export{x as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,J as n,On 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,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{M as m,Ot as h,St as g}from"./app-BAVpMSkT.js";var _={key:0,class:`mb-3 text-lg font-semibold`},v={class:`min-w-0`},y={key:0,class:`truncate text-[13px] text-muted-foreground`},b={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},x=[`href`],S=[`href`],C={class:`truncate`},w={key:0,class:`text-sm text-muted-foreground`},T={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(T){let E=n(`pagebuilder:editing`,!1);return(n,D)=>(c(),o(`section`,null,[T.block.data.title?(c(),o(`h3`,_,d(T.block.data.title),1)):f(``,!0),a(`div`,{class:i(T.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(c(!0),o(l,null,s(T.block.props?.people??[],n=>(c(),o(`div`,{key:n.id,class:i([`flex gap-3`,T.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(m,{person:n,class:`size-12 shrink-0`},null,8,[`person`]),a(`div`,v,[e(r(p),{href:`/personen/${n.id}`,class:`block truncate font-semibold hover:underline`},{default:u(()=>[t(d(n.name),1)]),_:2},1032,[`href`]),n.job_title?(c(),o(`p`,y,d(n.job_title),1)):f(``,!0),a(`div`,b,[n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(r(g),{class:`size-3.5`}),t(` `+d(n.phone),1)],8,x)):f(``,!0),a(`a`,{href:`mailto:${n.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(r(h),{class:`size-3.5 shrink-0`}),D[0]||=t(),a(`span`,C,d(n.email),1)],8,S)])])],2))),128)),r(E)&&!(T.block.props?.people??[]).length?(c(),o(`p`,w,`Noch keine Personen ausgewählt.`)):f(``,!0)],2)]))}};export{T as default};
|
||||
import{D as e,E as t,J as n,On 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,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{M as m,Ot as h,St as g}from"./app-ljw5ZzEq.js";var _={key:0,class:`mb-3 text-lg font-semibold`},v={class:`min-w-0`},y={key:0,class:`truncate text-[13px] text-muted-foreground`},b={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},x=[`href`],S=[`href`],C={class:`truncate`},w={key:0,class:`text-sm text-muted-foreground`},T={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(T){let E=n(`pagebuilder:editing`,!1);return(n,D)=>(c(),o(`section`,null,[T.block.data.title?(c(),o(`h3`,_,d(T.block.data.title),1)):f(``,!0),a(`div`,{class:i(T.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(c(!0),o(l,null,s(T.block.props?.people??[],n=>(c(),o(`div`,{key:n.id,class:i([`flex gap-3`,T.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(m,{person:n,class:`size-12 shrink-0`},null,8,[`person`]),a(`div`,v,[e(r(p),{href:`/personen/${n.id}`,class:`block truncate font-semibold hover:underline`},{default:u(()=>[t(d(n.name),1)]),_:2},1032,[`href`]),n.job_title?(c(),o(`p`,y,d(n.job_title),1)):f(``,!0),a(`div`,b,[n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(r(g),{class:`size-3.5`}),t(` `+d(n.phone),1)],8,x)):f(``,!0),a(`a`,{href:`mailto:${n.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(r(h),{class:`size-3.5 shrink-0`}),D[0]||=t(),a(`span`,C,d(n.email),1)],8,S)])])],2))),128)),r(E)&&!(T.block.props?.people??[]).length?(c(),o(`p`,w,`Noch keine Personen ausgewählt.`)):f(``,!0)],2)]))}};export{T as default};
|
||||
|
|
@ -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{t as u}from"./circle-alert-AqOvEy07.js";import{t as d}from"./circle-check-K9QH5jex.js";import{t as f}from"./info-ByKJSon9.js";import{t as p}from"./triangle-alert-DyO_Fk2w.js";import{Et as m,w as h}from"./app-BAVpMSkT.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:m,class:`border-brand bg-brand text-brand-foreground`},info:{icon:f,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:p,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:u,class:`border-border bg-card text-foreground`}};return(u,d)=>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(m)),{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};
|
||||
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{t as u}from"./circle-alert-AqOvEy07.js";import{t as d}from"./circle-check-K9QH5jex.js";import{t as f}from"./info-ByKJSon9.js";import{t as p}from"./triangle-alert-DyO_Fk2w.js";import{Et as m,w as h}from"./app-ljw5ZzEq.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:m,class:`border-brand bg-brand text-brand-foreground`},info:{icon:f,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:p,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:u,class:`border-border bg-card text-foreground`}};return(u,d)=>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(m)),{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};
|
||||
|
|
@ -1 +1 @@
|
|||
import{On as e,_ as t,b as n,bt as r,et as i,g as a,mt as o,o as s,qt as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./dist-DtZOZ5EL.js";import{E as p}from"./app-BAVpMSkT.js";import{t as m}from"./widgets-ByPKMgVP.js";var h={key:0,class:`mb-6 grid gap-6`},g={key:1,class:`grid grid-cols-12 gap-6`},_={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},v={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},y={key:2,class:`grid min-w-0 grid-cols-1 gap-6`},b={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(b){let x=b,S=f(`(min-width: 1024px)`),C=a(()=>x.widgets.filter(e=>m(e.component))),w=e=>C.value.filter(t=>t.area===e),T=a(()=>w(`hero`)[0]??null),E=a(()=>[...C.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(a,f)=>(o(),l(p,{title:`Startseite`},{default:c(()=>[e(S)&&w(`top`).length?(o(),n(`div`,h,[(o(!0),n(s,null,r(w(`top`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])):d(``,!0),e(S)?(o(),n(`div`,g,[t(`div`,_,[T.value?(o(),l(u(e(m)(T.value.component)),i({key:0},T.value.props,{class:`xl:col-span-2`}),null,16)):d(``,!0),(o(!0),n(s,null,r(w(`feed`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{wide:!T.value,class:T.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(o(!0),n(s,null,r(w(`main`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{class:`xl:col-span-3`}),null,16))),128))]),t(`aside`,v,[(o(!0),n(s,null,r(w(`aside`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])])):(o(),n(`div`,y,[(o(!0),n(s,null,r(E.value,t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))]))]),_:1}))}};export{b as default};
|
||||
import{On as e,_ as t,b as n,bt as r,et as i,g as a,mt as o,o as s,qt as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./dist-DtZOZ5EL.js";import{E as p}from"./app-ljw5ZzEq.js";import{t as m}from"./widgets-RiaT6wIj.js";var h={key:0,class:`mb-6 grid gap-6`},g={key:1,class:`grid grid-cols-12 gap-6`},_={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},v={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},y={key:2,class:`grid min-w-0 grid-cols-1 gap-6`},b={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(b){let x=b,S=f(`(min-width: 1024px)`),C=a(()=>x.widgets.filter(e=>m(e.component))),w=e=>C.value.filter(t=>t.area===e),T=a(()=>w(`hero`)[0]??null),E=a(()=>[...C.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(a,f)=>(o(),l(p,{title:`Startseite`},{default:c(()=>[e(S)&&w(`top`).length?(o(),n(`div`,h,[(o(!0),n(s,null,r(w(`top`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])):d(``,!0),e(S)?(o(),n(`div`,g,[t(`div`,_,[T.value?(o(),l(u(e(m)(T.value.component)),i({key:0},T.value.props,{class:`xl:col-span-2`}),null,16)):d(``,!0),(o(!0),n(s,null,r(w(`feed`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{wide:!T.value,class:T.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(o(!0),n(s,null,r(w(`main`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{class:`xl:col-span-3`}),null,16))),128))]),t(`aside`,v,[(o(!0),n(s,null,r(w(`aside`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])])):(o(),n(`div`,y,[(o(!0),n(s,null,r(E.value,t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))]))]),_:1}))}};export{b as default};
|
||||
|
|
@ -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{a as u,i as d}from"./dist--2OKCVzt.js";import{t as f}from"./arrow-left-DROE4wuA.js";import{t as p}from"./eye-off-CneL5LCR.js";import{t as m}from"./eye-Cklkscvg.js";import{t as h}from"./loader-circle-Wr6tQn-J.js";import{f as g,m as _,x as v}from"./app-BAVpMSkT.js";import{t as y}from"./GuestLayout-Ccy6gSko.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=u({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,u)=>(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(v,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(g),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":u[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(v,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(g),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":u[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:u[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(p),{key:0,class:`size-4`})):(i(),o(n(m),{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(h),{key:0,class:`animate-spin`})):c(``,!0),u[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(f),{class:`size-4`}),u[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default};
|
||||
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{a as u,i as d}from"./dist--2OKCVzt.js";import{t as f}from"./arrow-left-DROE4wuA.js";import{t as p}from"./eye-off-CneL5LCR.js";import{t as m}from"./eye-Cklkscvg.js";import{t as h}from"./loader-circle-Wr6tQn-J.js";import{f as g,m as _,x as v}from"./app-ljw5ZzEq.js";import{t as y}from"./GuestLayout-Zom_9WY0.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=u({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,u)=>(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(v,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(g),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":u[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(v,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(g),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":u[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:u[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(p),{key:0,class:`size-4`})):(i(),o(n(m),{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(h),{key:0,class:`animate-spin`})):c(``,!0),u[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(f),{class:`size-4`}),u[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default};
|
||||
|
|
@ -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{t as l}from"./download-K4OGj5k2.js";import{Ht as u}from"./app-BAVpMSkT.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(u),{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(l),{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};
|
||||
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{t as l}from"./download-K4OGj5k2.js";import{Ht as u}from"./app-ljw5ZzEq.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(u),{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(l),{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};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./plus-CQwC4vy-.js";import{m as _,w as v}from"./app-BAVpMSkT.js";import{t as y}from"./EventDateBlock-DjXcMauQ.js";var b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`truncate text-xs text-muted-foreground`},C={key:0,class:`shrink-0 rounded bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground`},w={key:1,class:`text-sm text-muted-foreground`},T={__name:`EditorialEvents`,props:{events:{type:Array,required:!0}},setup(T){let E=T,D=p(!1),O=s(()=>E.events.filter(e=>D.value||!e.is_past)),k=s(()=>E.events.filter(e=>e.is_past).length),A=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,hour:`2-digit`,minute:`2-digit`}),j=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,year:`numeric`});return(s,p)=>(c(),f(v,{title:`Termine`},{actions:u(()=>[e(n(_),{size:`sm`,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/redaktion/termine/neu`},{default:u(()=>[e(n(g)),p[1]||=t(` Neuer Termin`,-1)]),_:1})]),_:1})]),default:u(()=>[O.value.length?(c(),a(`ul`,b,[(c(!0),a(l,null,o(O.value,o=>(c(),a(`li`,{key:o.id,class:r([`flex items-center gap-3 px-5 py-2.5`,{"opacity-60":o.is_past}])},[e(y,{date:o.starts_at,class:`w-11 shrink-0 py-1 text-xs`},null,8,[`date`]),i(`div`,x,[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`,S,[t(d(o.all_day?`${n(j).format(new Date(o.starts_at))} · ganztägig`:`${n(A).format(new Date(o.starts_at))} Uhr`),1),o.location?(c(),a(l,{key:0},[t(` · `+d(o.location),1)],64)):m(``,!0)])]),o.is_published?m(``,!0):(c(),a(`span`,C,`Entwurf`))],2))),128))])):(c(),a(`p`,w,`Keine anstehenden Termine.`)),k.value?(c(),a(`button`,{key:2,type:`button`,class:`mt-3 text-[13px] text-muted-foreground hover:text-foreground hover:underline`,onClick:p[0]||=e=>D.value=!D.value},d(D.value?`Vergangene ausblenden`:`Vergangene der letzten 30 Tage zeigen (${k.value})`),1)):m(``,!0)]),_:1}))}};export{T as default};
|
||||
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,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./plus-CQwC4vy-.js";import{m as _,w as v}from"./app-ljw5ZzEq.js";import{t as y}from"./EventDateBlock-CCI883zc.js";var b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`truncate text-xs text-muted-foreground`},C={key:0,class:`shrink-0 rounded bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground`},w={key:1,class:`text-sm text-muted-foreground`},T={__name:`EditorialEvents`,props:{events:{type:Array,required:!0}},setup(T){let E=T,D=p(!1),O=s(()=>E.events.filter(e=>D.value||!e.is_past)),k=s(()=>E.events.filter(e=>e.is_past).length),A=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,hour:`2-digit`,minute:`2-digit`}),j=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,year:`numeric`});return(s,p)=>(c(),f(v,{title:`Termine`},{actions:u(()=>[e(n(_),{size:`sm`,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/redaktion/termine/neu`},{default:u(()=>[e(n(g)),p[1]||=t(` Neuer Termin`,-1)]),_:1})]),_:1})]),default:u(()=>[O.value.length?(c(),a(`ul`,b,[(c(!0),a(l,null,o(O.value,o=>(c(),a(`li`,{key:o.id,class:r([`flex items-center gap-3 px-5 py-2.5`,{"opacity-60":o.is_past}])},[e(y,{date:o.starts_at,class:`w-11 shrink-0 py-1 text-xs`},null,8,[`date`]),i(`div`,x,[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`,S,[t(d(o.all_day?`${n(j).format(new Date(o.starts_at))} · ganztägig`:`${n(A).format(new Date(o.starts_at))} Uhr`),1),o.location?(c(),a(l,{key:0},[t(` · `+d(o.location),1)],64)):m(``,!0)])]),o.is_published?m(``,!0):(c(),a(`span`,C,`Entwurf`))],2))),128))])):(c(),a(`p`,w,`Keine anstehenden Termine.`)),k.value?(c(),a(`button`,{key:2,type:`button`,class:`mt-3 text-[13px] text-muted-foreground hover:text-foreground hover:underline`,onClick:p[0]||=e=>D.value=!D.value},d(D.value?`Vergangene ausblenden`:`Vergangene der letzten 30 Tage zeigen (${k.value})`),1)):m(``,!0)]),_:1}))}};export{T as default};
|
||||
|
|
@ -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{i as f}from"./dist--2OKCVzt.js";import{t as p}from"./download-K4OGj5k2.js";import{t as m}from"./pencil-line-5xb0u6Cg.js";import{t as h}from"./plus-CQwC4vy-.js";import{t as g}from"./table-properties-DOd7BPqt.js";import{m as _,w as v}from"./app-BAVpMSkT.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};
|
||||
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{i as f}from"./dist--2OKCVzt.js";import{t as p}from"./download-K4OGj5k2.js";import{t as m}from"./pencil-line-5xb0u6Cg.js";import{t as h}from"./plus-CQwC4vy-.js";import{t as g}from"./table-properties-DOd7BPqt.js";import{m as _,w as v}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -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{i as f}from"./dist--2OKCVzt.js";import{t as p}from"./image-off-BO5qjHGQ.js";import{It as m,w as h}from"./app-BAVpMSkT.js";var g={class:`-mt-1 mb-3 text-[13px] text-muted-foreground`},_={key:0,class:`grid grid-cols-4 gap-2`},v=[`src`,`alt`],y={key:1,class:`grid aspect-[4/3] place-items-center text-muted-foreground`},b={key:1,class:`grid place-items-center rounded-md border border-dashed py-8 text-center text-[13px] text-muted-foreground`},x={__name:`EditorialMedia`,props:{total:{type:Number,default:0},unused:{type:Number,default:null},recent:{type:Array,default:()=>[]}},setup(x){return(S,C)=>(o(),u(h,{title:`Mediathek`,"action-label":`Mediathek öffnen`,"action-href":`/redaktion/mediathek`},{default:c(()=>[r(`p`,g,[t(l(x.total.toLocaleString(`de-DE`))+` `+l(x.total===1?`Bild`:`Bilder`)+` `,1),x.unused?(o(),i(s,{key:0},[C[0]||=t(` · `,-1),e(n(f),{href:`/redaktion/mediathek?status=unbenutzt`,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(l(x.unused)+` nicht verwendet`,1)]),_:1})],64)):d(``,!0)]),x.recent.length?(o(),i(`ul`,_,[(o(!0),i(s,null,a(x.recent,t=>(o(),i(`li`,{key:t.id},[e(n(f),{href:`/redaktion/mediathek?q=${encodeURIComponent(t.name)}`,class:`block overflow-hidden rounded-md border bg-muted hover:border-brand-300`,title:t.alt||t.name},{default:c(()=>[t.thumb_url?(o(),i(`img`,{key:0,src:t.thumb_url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover`},null,8,v)):(o(),i(`span`,y,[e(n(p),{class:`size-5`,"stroke-width":1.5})]))]),_:2},1032,[`href`,`title`])]))),128))])):(o(),i(`div`,b,[e(n(m),{class:`mb-2 size-6`,"stroke-width":1.5}),C[1]||=t(` Noch keine Bilder hochgeladen. `,-1)]))]),_:1}))}};export{x as default};
|
||||
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{i as f}from"./dist--2OKCVzt.js";import{t as p}from"./image-off-BO5qjHGQ.js";import{It as m,w as h}from"./app-ljw5ZzEq.js";var g={class:`-mt-1 mb-3 text-[13px] text-muted-foreground`},_={key:0,class:`grid grid-cols-4 gap-2`},v=[`src`,`alt`],y={key:1,class:`grid aspect-[4/3] place-items-center text-muted-foreground`},b={key:1,class:`grid place-items-center rounded-md border border-dashed py-8 text-center text-[13px] text-muted-foreground`},x={__name:`EditorialMedia`,props:{total:{type:Number,default:0},unused:{type:Number,default:null},recent:{type:Array,default:()=>[]}},setup(x){return(S,C)=>(o(),u(h,{title:`Mediathek`,"action-label":`Mediathek öffnen`,"action-href":`/redaktion/mediathek`},{default:c(()=>[r(`p`,g,[t(l(x.total.toLocaleString(`de-DE`))+` `+l(x.total===1?`Bild`:`Bilder`)+` `,1),x.unused?(o(),i(s,{key:0},[C[0]||=t(` · `,-1),e(n(f),{href:`/redaktion/mediathek?status=unbenutzt`,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(l(x.unused)+` nicht verwendet`,1)]),_:1})],64)):d(``,!0)]),x.recent.length?(o(),i(`ul`,_,[(o(!0),i(s,null,a(x.recent,t=>(o(),i(`li`,{key:t.id},[e(n(f),{href:`/redaktion/mediathek?q=${encodeURIComponent(t.name)}`,class:`block overflow-hidden rounded-md border bg-muted hover:border-brand-300`,title:t.alt||t.name},{default:c(()=>[t.thumb_url?(o(),i(`img`,{key:0,src:t.thumb_url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover`},null,8,v)):(o(),i(`span`,y,[e(n(p),{class:`size-5`,"stroke-width":1.5})]))]),_:2},1032,[`href`,`title`])]))),128))])):(o(),i(`div`,b,[e(n(m),{class:`mb-2 size-6`,"stroke-width":1.5}),C[1]||=t(` Noch keine Bilder hochgeladen. `,-1)]))]),_:1}))}};export{x as default};
|
||||
|
|
@ -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{i as p}from"./dist--2OKCVzt.js";import{t as m}from"./message-square-warning-Bf7QtZts.js";import{t as h}from"./plus-CQwC4vy-.js";import{R as g,m as _,w as v}from"./app-BAVpMSkT.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-pill 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(h)),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),h=>(s(),a(`section`,{key:h.key},[i(`h3`,b,[t(u(h.title)+` `,1),h.key===`review`?(s(),a(`span`,x,u(h.items.length),1)):f(``,!0)]),h.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(h.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),h.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(g)(o.date)),1)],64)):f(``,!0)])]),o.review_note?(s(),d(n(m),{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(h.empty),1))]))),128))])]),_:1}))}};export{E as default};
|
||||
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{i as p}from"./dist--2OKCVzt.js";import{t as m}from"./message-square-warning-Bf7QtZts.js";import{t as h}from"./plus-CQwC4vy-.js";import{R as g,m as _,w as v}from"./app-ljw5ZzEq.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-pill 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(h)),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),h=>(s(),a(`section`,{key:h.key},[i(`h3`,b,[t(u(h.title)+` `,1),h.key===`review`?(s(),a(`span`,x,u(h.items.length),1)):f(``,!0)]),h.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(h.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),h.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(g)(o.date)),1)],64)):f(``,!0)])]),o.review_note?(s(),d(n(m),{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(h.empty),1))]))),128))])]),_:1}))}};export{E as default};
|
||||
|
|
@ -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{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./lock-yku43otw.js";import{t as _}from"./plus-CQwC4vy-.js";import{R as v,m as y,w as b}from"./app-BAVpMSkT.js";import{t as x}from"./NewPageDialog-BrpCaPdD.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(_)),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(v)(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(g),{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};
|
||||
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{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./lock-yku43otw.js";import{t as _}from"./plus-CQwC4vy-.js";import{R as v,m as y,w as b}from"./app-ljw5ZzEq.js";import{t as x}from"./NewPageDialog-BZP8ymcK.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(_)),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(v)(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(g),{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};
|
||||
|
|
@ -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,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as h}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as g,s as _}from"./dist--2OKCVzt.js";import{t as v}from"./component-5v7AiJbe.js";import{t as y}from"./file-stack-CDegUTxJ.js";import{t as b}from"./plus-CQwC4vy-.js";import{t as x}from"./trash-CONUPzoz.js";import{n as S}from"./lib-Be7KNAML.js";import{H as C,R as w,a as T,f as E,i as D,m as O,n as k,o as A,r as j,s as M,w as N}from"./app-BAVpMSkT.js";var P={class:`-mt-1 mb-3 inline-flex rounded-md border p-0.5 text-[13px]`,role:`tablist`},F=[`aria-selected`],I=[`aria-selected`],L={class:`mb-3 text-[13px] text-muted-foreground`},R={key:0,class:`-mx-5 divide-y border-t`},z={class:`min-w-0 flex-1`},B={class:`truncate text-xs text-muted-foreground`},V={key:1,class:`text-sm text-muted-foreground`},H={__name:`EditorialSnippets`,props:{snippets:{type:Array,required:!0}},setup(H){let U=H,W=p(`block`),G=s(()=>U.snippets.filter(e=>e.kind===W.value)),K=p(!1),q=p(``),J=p(!1);async function Y(){J.value=!0;try{let e=await C.post(`/redaktion/bausteine`,{kind:W.value,name:q.value,content:{blocks:[]}});_.visit(e.edit_url)}catch(e){S.error(e.data?.errors?.name?.[0]??e.message),J.value=!1}}function X(e){let t=e.usages.length?`\n\nAchtung: Der Baustein ist auf ${e.usages.length} Seite(n) eingebunden und verschwindet dort.`:``;window.confirm(`„${e.name}“ löschen?${t}`)&&_.delete(`/redaktion/bausteine/${e.id}`,{preserveScroll:!0,onSuccess:()=>S.success(`Gelöscht`)})}return(s,p)=>(c(),f(N,{title:`Bausteine & Vorlagen`},{actions:u(()=>[e(n(O),{size:`sm`,variant:`outline`,onClick:p[0]||=e=>(q.value=``,K.value=!0)},{default:u(()=>[e(n(b)),t(` `+d(W.value===`block`?`Neuer Baustein`:`Neue Vorlage`),1)]),_:1})]),default:u(()=>[i(`div`,P,[i(`button`,{type:`button`,role:`tab`,"aria-selected":W.value===`block`,class:r([`inline-flex items-center gap-1.5 rounded-sm px-3 py-1`,W.value===`block`?`bg-muted font-medium`:`text-muted-foreground`]),onClick:p[1]||=e=>W.value=`block`},[e(n(v),{class:`size-3.5`}),p[6]||=t(` Bausteine`,-1)],10,F),i(`button`,{type:`button`,role:`tab`,"aria-selected":W.value===`template`,class:r([`inline-flex items-center gap-1.5 rounded-sm px-3 py-1`,W.value===`template`?`bg-muted font-medium`:`text-muted-foreground`]),onClick:p[2]||=e=>W.value=`template`},[e(n(y),{class:`size-3.5`}),p[7]||=t(` Seitenvorlagen`,-1)],10,I)]),i(`p`,L,[W.value===`block`?(c(),a(l,{key:0},[t(`Bausteine erscheinen auf vielen Seiten gleich, z. B. ein Kontaktkasten oder Öffnungszeiten. Eine Änderung wirkt überall.`)],64)):(c(),a(l,{key:1},[t(`Vorlagen sind Ausgangspunkt für neue Seiten – beim Anlegen wird der Inhalt kopiert.`)],64))]),G.value.length?(c(),a(`ul`,R,[(c(!0),a(l,null,o(G.value,r=>(c(),a(`li`,{key:r.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,z,[e(n(g),{href:r.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(r.name),1)]),_:2},1032,[`href`]),i(`p`,B,[r.description?(c(),a(l,{key:0},[t(d(r.description)+` · `,1)],64)):m(``,!0),t(` `+d(r.blocks)+` `+d(r.blocks===1?`Block`:`Blöcke`)+` `,1),r.kind===`block`?(c(),a(l,{key:1},[t(` · `+d(r.usages.length?`auf ${r.usages.length} ${r.usages.length===1?`Seite`:`Seiten`}`:`noch nicht eingebunden`),1)],64)):m(``,!0),r.updated_at?(c(),a(l,{key:2},[t(` · `+d(n(w)(r.updated_at))+d(r.editor?` von ${r.editor}`:``),1)],64)):m(``,!0)])]),e(n(O),{size:`icon`,variant:`ghost`,class:`size-8 text-muted-foreground hover:text-destructive`,"aria-label":`${r.name} löschen`,onClick:e=>X(r)},{default:u(()=>[e(n(x))]),_:1},8,[`aria-label`,`onClick`])]))),128))])):(c(),a(`p`,V,d(W.value===`block`?`Noch keine Bausteine. Tipp: Im Seiteneditor lässt sich jeder Block „Als Baustein speichern“.`:`Noch keine Vorlagen. Tipp: Im Seiteneditor unter ⋮ „Als Vorlage speichern“.`),1)),e(n(M),{open:K.value,"onUpdate:open":p[5]||=e=>K.value=e},{default:u(()=>[e(n(A),{class:`sm:max-w-md`},{default:u(()=>[e(n(j),null,{default:u(()=>[e(n(k),null,{default:u(()=>[t(d(W.value===`block`?`Neuer Baustein`:`Neue Seitenvorlage`),1)]),_:1}),e(n(T),null,{default:u(()=>[...p[8]||=[t(`Danach öffnet sich der Editor.`,-1)]]),_:1})]),_:1}),i(`form`,{class:`grid gap-4`,onSubmit:h(Y,[`prevent`])},[e(n(E),{modelValue:q.value,"onUpdate:modelValue":p[3]||=e=>q.value=e,maxlength:`120`,autofocus:``,placeholder:`Name, z. B. „Kontakt Personalabteilung“`,"aria-label":`Name`},null,8,[`modelValue`]),e(n(D),null,{default:u(()=>[e(n(O),{type:`button`,variant:`outline`,onClick:p[4]||=e=>K.value=!1},{default:u(()=>[...p[9]||=[t(`Abbrechen`,-1)]]),_:1}),e(n(O),{type:`submit`,disabled:J.value||!q.value.trim()},{default:u(()=>[...p[10]||=[t(`Anlegen`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1}))}};export{H as default};
|
||||
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,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as h}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as g,s as _}from"./dist--2OKCVzt.js";import{t as v}from"./component-5v7AiJbe.js";import{t as y}from"./file-stack-CDegUTxJ.js";import{t as b}from"./plus-CQwC4vy-.js";import{t as x}from"./trash-CONUPzoz.js";import{n as S}from"./lib-Be7KNAML.js";import{H as C,R as w,a as T,f as E,i as D,m as O,n as k,o as A,r as j,s as M,w as N}from"./app-ljw5ZzEq.js";var P={class:`-mt-1 mb-3 inline-flex rounded-md border p-0.5 text-[13px]`,role:`tablist`},F=[`aria-selected`],I=[`aria-selected`],L={class:`mb-3 text-[13px] text-muted-foreground`},R={key:0,class:`-mx-5 divide-y border-t`},z={class:`min-w-0 flex-1`},B={class:`truncate text-xs text-muted-foreground`},V={key:1,class:`text-sm text-muted-foreground`},H={__name:`EditorialSnippets`,props:{snippets:{type:Array,required:!0}},setup(H){let U=H,W=p(`block`),G=s(()=>U.snippets.filter(e=>e.kind===W.value)),K=p(!1),q=p(``),J=p(!1);async function Y(){J.value=!0;try{let e=await C.post(`/redaktion/bausteine`,{kind:W.value,name:q.value,content:{blocks:[]}});_.visit(e.edit_url)}catch(e){S.error(e.data?.errors?.name?.[0]??e.message),J.value=!1}}function X(e){let t=e.usages.length?`\n\nAchtung: Der Baustein ist auf ${e.usages.length} Seite(n) eingebunden und verschwindet dort.`:``;window.confirm(`„${e.name}“ löschen?${t}`)&&_.delete(`/redaktion/bausteine/${e.id}`,{preserveScroll:!0,onSuccess:()=>S.success(`Gelöscht`)})}return(s,p)=>(c(),f(N,{title:`Bausteine & Vorlagen`},{actions:u(()=>[e(n(O),{size:`sm`,variant:`outline`,onClick:p[0]||=e=>(q.value=``,K.value=!0)},{default:u(()=>[e(n(b)),t(` `+d(W.value===`block`?`Neuer Baustein`:`Neue Vorlage`),1)]),_:1})]),default:u(()=>[i(`div`,P,[i(`button`,{type:`button`,role:`tab`,"aria-selected":W.value===`block`,class:r([`inline-flex items-center gap-1.5 rounded-sm px-3 py-1`,W.value===`block`?`bg-muted font-medium`:`text-muted-foreground`]),onClick:p[1]||=e=>W.value=`block`},[e(n(v),{class:`size-3.5`}),p[6]||=t(` Bausteine`,-1)],10,F),i(`button`,{type:`button`,role:`tab`,"aria-selected":W.value===`template`,class:r([`inline-flex items-center gap-1.5 rounded-sm px-3 py-1`,W.value===`template`?`bg-muted font-medium`:`text-muted-foreground`]),onClick:p[2]||=e=>W.value=`template`},[e(n(y),{class:`size-3.5`}),p[7]||=t(` Seitenvorlagen`,-1)],10,I)]),i(`p`,L,[W.value===`block`?(c(),a(l,{key:0},[t(`Bausteine erscheinen auf vielen Seiten gleich, z. B. ein Kontaktkasten oder Öffnungszeiten. Eine Änderung wirkt überall.`)],64)):(c(),a(l,{key:1},[t(`Vorlagen sind Ausgangspunkt für neue Seiten – beim Anlegen wird der Inhalt kopiert.`)],64))]),G.value.length?(c(),a(`ul`,R,[(c(!0),a(l,null,o(G.value,r=>(c(),a(`li`,{key:r.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,z,[e(n(g),{href:r.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(r.name),1)]),_:2},1032,[`href`]),i(`p`,B,[r.description?(c(),a(l,{key:0},[t(d(r.description)+` · `,1)],64)):m(``,!0),t(` `+d(r.blocks)+` `+d(r.blocks===1?`Block`:`Blöcke`)+` `,1),r.kind===`block`?(c(),a(l,{key:1},[t(` · `+d(r.usages.length?`auf ${r.usages.length} ${r.usages.length===1?`Seite`:`Seiten`}`:`noch nicht eingebunden`),1)],64)):m(``,!0),r.updated_at?(c(),a(l,{key:2},[t(` · `+d(n(w)(r.updated_at))+d(r.editor?` von ${r.editor}`:``),1)],64)):m(``,!0)])]),e(n(O),{size:`icon`,variant:`ghost`,class:`size-8 text-muted-foreground hover:text-destructive`,"aria-label":`${r.name} löschen`,onClick:e=>X(r)},{default:u(()=>[e(n(x))]),_:1},8,[`aria-label`,`onClick`])]))),128))])):(c(),a(`p`,V,d(W.value===`block`?`Noch keine Bausteine. Tipp: Im Seiteneditor lässt sich jeder Block „Als Baustein speichern“.`:`Noch keine Vorlagen. Tipp: Im Seiteneditor unter ⋮ „Als Vorlage speichern“.`),1)),e(n(M),{open:K.value,"onUpdate:open":p[5]||=e=>K.value=e},{default:u(()=>[e(n(A),{class:`sm:max-w-md`},{default:u(()=>[e(n(j),null,{default:u(()=>[e(n(k),null,{default:u(()=>[t(d(W.value===`block`?`Neuer Baustein`:`Neue Seitenvorlage`),1)]),_:1}),e(n(T),null,{default:u(()=>[...p[8]||=[t(`Danach öffnet sich der Editor.`,-1)]]),_:1})]),_:1}),i(`form`,{class:`grid gap-4`,onSubmit:h(Y,[`prevent`])},[e(n(E),{modelValue:q.value,"onUpdate:modelValue":p[3]||=e=>q.value=e,maxlength:`120`,autofocus:``,placeholder:`Name, z. B. „Kontakt Personalabteilung“`,"aria-label":`Name`},null,8,[`modelValue`]),e(n(D),null,{default:u(()=>[e(n(O),{type:`button`,variant:`outline`,onClick:p[4]||=e=>K.value=!1},{default:u(()=>[...p[9]||=[t(`Abbrechen`,-1)]]),_:1}),e(n(O),{type:`submit`,disabled:J.value||!q.value.trim()},{default:u(()=>[...p[10]||=[t(`Anlegen`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1}))}};export{H as default};
|
||||
|
|
@ -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{P as a}from"./app-BAVpMSkT.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};
|
||||
import{_ as e,b as t,g as n,mt as r,tr as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{P as a}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -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{i as l}from"./dist--2OKCVzt.js";import{I as u}from"./app-BAVpMSkT.js";import{t as d}from"./EventDateBlock-DjXcMauQ.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};
|
||||
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{i as l}from"./dist--2OKCVzt.js";import{I as u}from"./app-ljw5ZzEq.js";import{t as d}from"./EventDateBlock-CCI883zc.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};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -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{i as d}from"./dist--2OKCVzt.js";import{t as f}from"./download-K4OGj5k2.js";import{Jt as p,O as m}from"./app-BAVpMSkT.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(p),{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(f),{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};
|
||||
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{i as d}from"./dist--2OKCVzt.js";import{t as f}from"./download-K4OGj5k2.js";import{Jt as p,O as m}from"./app-ljw5ZzEq.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(p),{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(f),{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};
|
||||
|
|
@ -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,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./createLucideIcon-VlaMqNX_.js";import{t as _}from"./smartphone-DpYdBNLx.js";import{M as v,Ot as y,St as b,k as x}from"./app-BAVpMSkT.js";import{t as S}from"./colors-RDOJqd57.js";var C=g({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`]}),w={class:`flex gap-3`},T={class:`min-w-0 pt-0.5`},E={class:`mt-1 grid gap-0.5 text-[13px]`},D=[`href`],O={key:2,class:`truncate text-muted-foreground`},k={__name:`ContactCard`,props:{contact:{type:Object,required:!0}},setup(r){let s=e=>e.type===`phone`?`tel:${e.value}`:e.type===`email`?`mailto:${e.value}`:null,g=e=>e.key===`mobile`?_:e.type===`phone`?b:e.type===`email`?y:null;return(_,y)=>(c(),a(`div`,w,[e(n(h),{href:`/personen/${r.contact.id}`,class:`shrink-0`},{default:u(()=>[e(v,{person:r.contact,class:`size-14 text-base`},null,8,[`person`])]),_:1},8,[`href`]),i(`div`,T,[e(n(h),{href:`/personen/${r.contact.id}`,class:`block truncate text-sm font-semibold hover:underline`},{default:u(()=>[t(d(r.contact.name),1)]),_:1},8,[`href`]),i(`ul`,E,[(c(!0),a(l,null,o(r.contact.fields,e=>(c(),a(`li`,{key:e.key,class:`flex min-w-0 items-center gap-1.5`},[g(e)?(c(),f(p(g(e)),{key:0,class:`size-3.5 shrink-0 text-muted-foreground`})):m(``,!0),s(e)?(c(),a(`a`,{key:1,href:s(e),class:`truncate text-brand-text hover:underline`},d(e.value),9,D)):(c(),a(`span`,O,d(e.value),1))]))),128))])])]))}},A=[`src`],j={__name:`QmIcon`,props:{icon:{type:Object,default:()=>({name:`folder`})},strokeWidth:{type:[Number,String],default:1.75}},setup(e){return(t,n)=>e.icon?.name?(c(),f(x,{key:0,name:e.icon.name,"stroke-width":e.strokeWidth},null,8,[`name`,`stroke-width`])):e.icon?.url&&e.icon.mono?(c(),a(`span`,{key:1,class:`inline-block bg-current`,style:s({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?(c(),a(`img`,{key:2,src:e.icon.url,alt:``,class:`object-contain`},null,8,A)):(c(),f(x,{key:3,name:`folder`,"stroke-width":e.strokeWidth},null,8,[`stroke-width`]))}},M={class:`pointer-events-none absolute -right-4 -bottom-5 opacity-15 transition-transform group-hover:scale-105`,"aria-hidden":`true`},N={class:`relative mt-3`},P={class:`mt-0.5 block text-xs text-white/80`},F={__name:`FolderTile`,props:{folder:{type:Object,required:!0},small:{type:Boolean,default:!1}},setup(t){let a=t,o=()=>{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,s)=>(c(),f(n(h),{href:t.folder.url,class:r([`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`,[n(S)(t.folder.color).tile,t.small?`min-h-24 p-3.5`:`min-h-32 p-4`]])},{default:u(()=>[i(`span`,M,[e(j,{icon:t.folder.icon,class:r(t.small?`size-20`:`size-24`)},null,8,[`icon`,`class`])]),i(`span`,{class:r([`grid place-items-center rounded-md bg-white/15`,t.small?`size-9`:`size-11`])},[e(j,{icon:t.folder.icon,class:r(t.small?`size-5`:`size-6`)},null,8,[`icon`,`class`])],2),i(`span`,N,[i(`span`,{class:r([`block leading-tight font-semibold`,t.small?`text-sm`:`text-[15px]`])},d(t.folder.name),3),i(`span`,P,d(o()),1)])]),_:1},8,[`href`,`class`]))}};export{C as i,j as n,k as r,F as t};
|
||||
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,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./createLucideIcon-VlaMqNX_.js";import{t as _}from"./smartphone-DpYdBNLx.js";import{M as v,Ot as y,St as b,k as x}from"./app-ljw5ZzEq.js";import{t as S}from"./colors-RDOJqd57.js";var C=g({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`]}),w={class:`flex gap-3`},T={class:`min-w-0 pt-0.5`},E={class:`mt-1 grid gap-0.5 text-[13px]`},D=[`href`],O={key:2,class:`truncate text-muted-foreground`},k={__name:`ContactCard`,props:{contact:{type:Object,required:!0}},setup(r){let s=e=>e.type===`phone`?`tel:${e.value}`:e.type===`email`?`mailto:${e.value}`:null,g=e=>e.key===`mobile`?_:e.type===`phone`?b:e.type===`email`?y:null;return(_,y)=>(c(),a(`div`,w,[e(n(h),{href:`/personen/${r.contact.id}`,class:`shrink-0`},{default:u(()=>[e(v,{person:r.contact,class:`size-14 text-base`},null,8,[`person`])]),_:1},8,[`href`]),i(`div`,T,[e(n(h),{href:`/personen/${r.contact.id}`,class:`block truncate text-sm font-semibold hover:underline`},{default:u(()=>[t(d(r.contact.name),1)]),_:1},8,[`href`]),i(`ul`,E,[(c(!0),a(l,null,o(r.contact.fields,e=>(c(),a(`li`,{key:e.key,class:`flex min-w-0 items-center gap-1.5`},[g(e)?(c(),f(p(g(e)),{key:0,class:`size-3.5 shrink-0 text-muted-foreground`})):m(``,!0),s(e)?(c(),a(`a`,{key:1,href:s(e),class:`truncate text-brand-text hover:underline`},d(e.value),9,D)):(c(),a(`span`,O,d(e.value),1))]))),128))])])]))}},A=[`src`],j={__name:`QmIcon`,props:{icon:{type:Object,default:()=>({name:`folder`})},strokeWidth:{type:[Number,String],default:1.75}},setup(e){return(t,n)=>e.icon?.name?(c(),f(x,{key:0,name:e.icon.name,"stroke-width":e.strokeWidth},null,8,[`name`,`stroke-width`])):e.icon?.url&&e.icon.mono?(c(),a(`span`,{key:1,class:`inline-block bg-current`,style:s({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?(c(),a(`img`,{key:2,src:e.icon.url,alt:``,class:`object-contain`},null,8,A)):(c(),f(x,{key:3,name:`folder`,"stroke-width":e.strokeWidth},null,8,[`stroke-width`]))}},M={class:`pointer-events-none absolute -right-4 -bottom-5 opacity-15 transition-transform group-hover:scale-105`,"aria-hidden":`true`},N={class:`relative mt-3`},P={class:`mt-0.5 block text-xs text-white/80`},F={__name:`FolderTile`,props:{folder:{type:Object,required:!0},small:{type:Boolean,default:!1}},setup(t){let a=t,o=()=>{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,s)=>(c(),f(n(h),{href:t.folder.url,class:r([`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`,[n(S)(t.folder.color).tile,t.small?`min-h-24 p-3.5`:`min-h-32 p-4`]])},{default:u(()=>[i(`span`,M,[e(j,{icon:t.folder.icon,class:r(t.small?`size-20`:`size-24`)},null,8,[`icon`,`class`])]),i(`span`,{class:r([`grid place-items-center rounded-md bg-white/15`,t.small?`size-9`:`size-11`])},[e(j,{icon:t.folder.icon,class:r(t.small?`size-5`:`size-6`)},null,8,[`icon`,`class`])],2),i(`span`,N,[i(`span`,{class:r([`block leading-tight font-semibold`,t.small?`text-sm`:`text-[15px]`])},d(t.folder.name),3),i(`span`,P,d(o()),1)])]),_:1},8,[`href`,`class`]))}};export{C as i,j as n,k as r,F as t};
|
||||
|
|
@ -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{a as d,i as f}from"./dist--2OKCVzt.js";import{t as p}from"./arrow-left-DROE4wuA.js";import{t as m}from"./loader-circle-Wr6tQn-J.js";import{f as h,m as g,x as _}from"./app-BAVpMSkT.js";import{t as v}from"./GuestLayout-Ccy6gSko.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=d({email:``});return(d,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(_,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(h),{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(m),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(f),{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(p),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default};
|
||||
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{a as d,i as f}from"./dist--2OKCVzt.js";import{t as p}from"./arrow-left-DROE4wuA.js";import{t as m}from"./loader-circle-Wr6tQn-J.js";import{f as h,m as g,x as _}from"./app-ljw5ZzEq.js";import{t as v}from"./GuestLayout-Zom_9WY0.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=d({email:``});return(d,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(_,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(h),{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(m),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(f),{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(p),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default};
|
||||
|
|
@ -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-Bm3es5-d.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};
|
||||
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-BSsckrsz.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};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,J as n,On 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,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as h}from"./chevron-left-DSEhAEgi.js";import{Jt as g,Lt as _,n as v,o as y,s as b}from"./app-BAVpMSkT.js";var x=[`aria-label`,`onClick`],S=[`src`,`alt`],C={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},w={key:2,class:`mt-1.5 text-xs text-muted-foreground`},T={key:0,class:`col-span-full text-sm text-muted-foreground`},E=[`src`,`alt`],D={class:`flex items-center justify-between gap-4 px-4 pt-1 pb-3 text-sm`},O={class:`text-white/80`},k={key:0,class:`shrink-0 text-white/60 tabular-nums`},A={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(A){let j=A,M=n(`pagebuilder:editing`,!1),N={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},P=c(()=>j.block.data.images.map((e,t)=>({...e,url:j.block.props?.urls?.[t]??null}))),F=c(()=>P.value.filter(e=>e.url)),I=p(null),L=c(()=>I.value===null?null:F.value[I.value]);function R(e){I.value=F.value.indexOf(e)}function z(e){I.value===null||F.value.length<2||(I.value=(I.value+e+F.value.length)%F.value.length)}function B(e){e.key===`ArrowRight`&&z(1),e.key===`ArrowLeft`&&z(-1)}let V=null,H=e=>V=e.touches[0].clientX;function U(e){if(V===null)return;let t=e.changedTouches[0].clientX-V;Math.abs(t)>50&&z(t<0?1:-1),V=null}return(n,c)=>(l(),o(u,null,[a(`div`,{class:i([`grid grid-cols-2 gap-3`,N[A.block.data.columns]])},[(l(!0),o(u,null,s(P.value,(t,n)=>(l(),o(`figure`,{key:n},[t.url?(l(),o(`button`,{key:0,type:`button`,class:`block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`${t.alt||`Bild`} vergrößern`,onClick:e=>R(t)},[a(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform duration-300 hover:scale-[1.03]`},null,8,S)],8,x)):(l(),o(`div`,C,[e(r(_),{class:`size-6`})])),t.caption?(l(),o(`figcaption`,w,f(t.caption),1)):m(``,!0)]))),128)),r(M)&&!P.value.length?(l(),o(`p`,T,`Noch keine Bilder.`)):m(``,!0)],2),e(r(b),{open:L.value!==null,"onUpdate:open":c[2]||=e=>!e&&(I.value=null)},{default:d(()=>[e(r(y),{class:`max-w-6xl border-0 bg-black/95 p-0 text-white sm:max-w-6xl`,onKeydown:B},{default:d(()=>[e(r(v),{class:`sr-only`},{default:d(()=>[t(f(L.value?.alt||`Bild`),1)]),_:1}),a(`div`,{class:`relative`,onTouchstartPassive:H,onTouchend:U},[L.value?(l(),o(`img`,{key:L.value.url,src:L.value.url,alt:L.value.alt,class:`max-h-[82vh] w-full object-contain`},null,8,E)):m(``,!0),F.value.length>1?(l(),o(u,{key:1},[a(`button`,{type:`button`,class:`absolute top-1/2 left-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Vorheriges Bild`,onClick:c[0]||=e=>z(-1)},[e(r(h),{class:`size-6`})]),a(`button`,{type:`button`,class:`absolute top-1/2 right-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Nächstes Bild`,onClick:c[1]||=e=>z(1)},[e(r(g),{class:`size-6`})])],64)):m(``,!0)],32),a(`div`,D,[a(`p`,O,f(L.value?.caption),1),F.value.length>1?(l(),o(`span`,k,f(I.value+1)+` / `+f(F.value.length),1)):m(``,!0)])]),_:1})]),_:1},8,[`open`])],64))}};export{A as default};
|
||||
import{D as e,E as t,J as n,On 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,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as h}from"./chevron-left-DSEhAEgi.js";import{Jt as g,Lt as _,n as v,o as y,s as b}from"./app-ljw5ZzEq.js";var x=[`aria-label`,`onClick`],S=[`src`,`alt`],C={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},w={key:2,class:`mt-1.5 text-xs text-muted-foreground`},T={key:0,class:`col-span-full text-sm text-muted-foreground`},E=[`src`,`alt`],D={class:`flex items-center justify-between gap-4 px-4 pt-1 pb-3 text-sm`},O={class:`text-white/80`},k={key:0,class:`shrink-0 text-white/60 tabular-nums`},A={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(A){let j=A,M=n(`pagebuilder:editing`,!1),N={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},P=c(()=>j.block.data.images.map((e,t)=>({...e,url:j.block.props?.urls?.[t]??null}))),F=c(()=>P.value.filter(e=>e.url)),I=p(null),L=c(()=>I.value===null?null:F.value[I.value]);function R(e){I.value=F.value.indexOf(e)}function z(e){I.value===null||F.value.length<2||(I.value=(I.value+e+F.value.length)%F.value.length)}function B(e){e.key===`ArrowRight`&&z(1),e.key===`ArrowLeft`&&z(-1)}let V=null,H=e=>V=e.touches[0].clientX;function U(e){if(V===null)return;let t=e.changedTouches[0].clientX-V;Math.abs(t)>50&&z(t<0?1:-1),V=null}return(n,c)=>(l(),o(u,null,[a(`div`,{class:i([`grid grid-cols-2 gap-3`,N[A.block.data.columns]])},[(l(!0),o(u,null,s(P.value,(t,n)=>(l(),o(`figure`,{key:n},[t.url?(l(),o(`button`,{key:0,type:`button`,class:`block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`${t.alt||`Bild`} vergrößern`,onClick:e=>R(t)},[a(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform duration-300 hover:scale-[1.03]`},null,8,S)],8,x)):(l(),o(`div`,C,[e(r(_),{class:`size-6`})])),t.caption?(l(),o(`figcaption`,w,f(t.caption),1)):m(``,!0)]))),128)),r(M)&&!P.value.length?(l(),o(`p`,T,`Noch keine Bilder.`)):m(``,!0)],2),e(r(b),{open:L.value!==null,"onUpdate:open":c[2]||=e=>!e&&(I.value=null)},{default:d(()=>[e(r(y),{class:`max-w-6xl border-0 bg-black/95 p-0 text-white sm:max-w-6xl`,onKeydown:B},{default:d(()=>[e(r(v),{class:`sr-only`},{default:d(()=>[t(f(L.value?.alt||`Bild`),1)]),_:1}),a(`div`,{class:`relative`,onTouchstartPassive:H,onTouchend:U},[L.value?(l(),o(`img`,{key:L.value.url,src:L.value.url,alt:L.value.alt,class:`max-h-[82vh] w-full object-contain`},null,8,E)):m(``,!0),F.value.length>1?(l(),o(u,{key:1},[a(`button`,{type:`button`,class:`absolute top-1/2 left-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Vorheriges Bild`,onClick:c[0]||=e=>z(-1)},[e(r(h),{class:`size-6`})]),a(`button`,{type:`button`,class:`absolute top-1/2 right-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Nächstes Bild`,onClick:c[1]||=e=>z(1)},[e(r(g),{class:`size-6`})])],64)):m(``,!0)],32),a(`div`,D,[a(`p`,O,f(L.value?.caption),1),F.value.length>1?(l(),o(`span`,k,f(I.value+1)+` / `+f(F.value.length),1)):m(``,!0)])]),_:1})]),_:1},8,[`open`])],64))}};export{A as default};
|
||||
|
|
@ -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}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p,o as m}from"./dist--2OKCVzt.js";import{M as h,_t as g,dt as _,ft as v,k as y,kt as b}from"./app-BAVpMSkT.js";import{t as x}from"./CoverBanner-BUBm8Lmj.js";var S={class:`overflow-hidden rounded-lg border bg-card`},C={class:`min-w-0`},w={class:`text-sm opacity-85`},T={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},E={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},D={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`},O={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0},actions:{type:Array,default:()=>[]}},setup(m){let O=m,k=s(()=>({3:`grid-cols-3`,4:`grid-cols-4`,5:`grid-cols-5`})[Math.min(5,3+O.actions.length)]);return(s,O)=>(c(),a(`section`,S,[e(x,{image:m.user.cover_url,class:`flex items-center justify-between gap-4 px-6 py-6 text-brand-foreground`},{default:u(()=>[i(`div`,C,[i(`div`,w,d(m.greeting)+`,`,1),i(`div`,T,d(m.user.name),1),i(`div`,E,d(m.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(h,{person:m.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),_:1},8,[`image`]),i(`nav`,{class:r([`grid divide-x`,k.value]),"aria-label":`Mein Bereich`},[e(n(p),{href:`/personen/${m.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:u(()=>[e(n(_),{class:`size-5 text-brand-text`,"stroke-width":1.75}),O[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(p),{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:u(()=>[e(n(v),{class:`size-5 text-brand-text`,"stroke-width":1.75}),O[1]||=t(` Profil bearbeiten `,-1)]),_:1}),(c(!0),a(l,null,o(m.actions,r=>(c(),f(n(p),{key:r.href,href:r.href,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:u(()=>[e(y,{name:r.icon||`link`,class:`size-5 text-brand-text`,"stroke-width":1.75},null,8,[`name`]),t(` `+d(r.label),1)]),_:2},1032,[`href`]))),128)),m.user.can_admin?(c(),a(`a`,D,[e(n(g),{class:`size-5 text-brand-text`,"stroke-width":1.75}),O[2]||=t(` Administration `,-1)])):(c(),f(n(p),{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:u(()=>[e(n(b),{class:`size-5 text-brand-text`,"stroke-width":1.75}),O[3]||=t(` Abmelden `,-1)]),_:1}))],2)]))}},k={__name:`Greeting`,props:{profile:{type:Object,required:!0},actions:{type:Array,default:()=>[]}},setup(e){let t=e,n=m(),r=s(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=s(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(c(),f(O,{user:r.value,profile:e.profile,greeting:i.value,actions:e.actions},null,8,[`user`,`profile`,`greeting`,`actions`]))}};export{k as default};
|
||||
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}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p,o as m}from"./dist--2OKCVzt.js";import{M as h,_t as g,dt as _,ft as v,k as y,kt as b}from"./app-ljw5ZzEq.js";import{t as x}from"./CoverBanner-BUBm8Lmj.js";var S={class:`overflow-hidden rounded-lg border bg-card`},C={class:`min-w-0`},w={class:`text-sm opacity-85`},T={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},E={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},D={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`},O={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0},actions:{type:Array,default:()=>[]}},setup(m){let O=m,k=s(()=>({3:`grid-cols-3`,4:`grid-cols-4`,5:`grid-cols-5`})[Math.min(5,3+O.actions.length)]);return(s,O)=>(c(),a(`section`,S,[e(x,{image:m.user.cover_url,class:`flex items-center justify-between gap-4 px-6 py-6 text-brand-foreground`},{default:u(()=>[i(`div`,C,[i(`div`,w,d(m.greeting)+`,`,1),i(`div`,T,d(m.user.name),1),i(`div`,E,d(m.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(h,{person:m.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),_:1},8,[`image`]),i(`nav`,{class:r([`grid divide-x`,k.value]),"aria-label":`Mein Bereich`},[e(n(p),{href:`/personen/${m.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:u(()=>[e(n(_),{class:`size-5 text-brand-text`,"stroke-width":1.75}),O[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(p),{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:u(()=>[e(n(v),{class:`size-5 text-brand-text`,"stroke-width":1.75}),O[1]||=t(` Profil bearbeiten `,-1)]),_:1}),(c(!0),a(l,null,o(m.actions,r=>(c(),f(n(p),{key:r.href,href:r.href,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:u(()=>[e(y,{name:r.icon||`link`,class:`size-5 text-brand-text`,"stroke-width":1.75},null,8,[`name`]),t(` `+d(r.label),1)]),_:2},1032,[`href`]))),128)),m.user.can_admin?(c(),a(`a`,D,[e(n(g),{class:`size-5 text-brand-text`,"stroke-width":1.75}),O[2]||=t(` Administration `,-1)])):(c(),f(n(p),{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:u(()=>[e(n(b),{class:`size-5 text-brand-text`,"stroke-width":1.75}),O[3]||=t(` Abmelden `,-1)]),_:1}))],2)]))}},k={__name:`Greeting`,props:{profile:{type:Object,required:!0},actions:{type:Array,default:()=>[]}},setup(e){let t=e,n=m(),r=s(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=s(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(c(),f(O,{user:r.value,profile:e.profile,greeting:i.value,actions:e.actions},null,8,[`user`,`profile`,`greeting`,`actions`]))}};export{k as default};
|
||||
|
|
@ -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{t as l}from"./x-DU8daajy.js";import{Qt as u}from"./app-BAVpMSkT.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(`<svg class="pointer-events-none absolute inset-0 size-full opacity-25" aria-hidden="true"><circle cx="8%" cy="30%" r="4" fill="currentColor"></circle><circle cx="15%" cy="75%" r="3" fill="currentColor"></circle><rect x="24%" y="18%" width="7" height="7" transform="rotate(20)" fill="currentColor"></rect><circle cx="62%" cy="20%" r="3" fill="currentColor"></circle><circle cx="78%" cy="70%" r="5" fill="currentColor"></circle><rect x="88%" y="30%" width="8" height="8" fill="currentColor"></rect><circle cx="94%" cy="80%" r="3" fill="currentColor"></circle></svg>`,1),r(`div`,f,[r(`span`,p,[e(t(u),{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(l),{class:`size-5`})])])]))}};export{g as default};
|
||||
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{t as l}from"./x-DU8daajy.js";import{Qt as u}from"./app-ljw5ZzEq.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(`<svg class="pointer-events-none absolute inset-0 size-full opacity-25" aria-hidden="true"><circle cx="8%" cy="30%" r="4" fill="currentColor"></circle><circle cx="15%" cy="75%" r="3" fill="currentColor"></circle><rect x="24%" y="18%" width="7" height="7" transform="rotate(20)" fill="currentColor"></rect><circle cx="62%" cy="20%" r="3" fill="currentColor"></circle><circle cx="78%" cy="70%" r="5" fill="currentColor"></circle><rect x="88%" y="30%" width="8" height="8" fill="currentColor"></rect><circle cx="94%" cy="80%" r="3" fill="currentColor"></circle></svg>`,1),r(`div`,f,[r(`span`,p,[e(t(u),{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(l),{class:`size-5`})])])]))}};export{g as default};
|
||||
|
|
@ -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{o as d,r as f}from"./dist--2OKCVzt.js";import{U as p}from"./app-BAVpMSkT.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};
|
||||
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{o as d,r as f}from"./dist--2OKCVzt.js";import{U as p}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -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,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{m as l}from"./app-BAVpMSkT.js";var u=[`src`],d={class:`relative max-w-2xl p-6 @3xl:p-10`},f={key:0,class:`text-2xl font-semibold tracking-tight @3xl:text-3xl`},p={key:1,class:`mt-2 text-[15px] leading-relaxed text-white/90 @3xl:text-base`},m=[`href`],h={__name:`Hero`,props:{block:{type:Object,required:!0}},setup(h){let g={small:`min-h-48`,medium:`min-h-72`,large:`min-h-96`};return(_,v)=>(i(),r(`section`,{class:t([`relative flex items-end overflow-hidden rounded-lg bg-brand text-white`,g[h.block.data.height]])},[h.block.props?.url?(i(),r(`img`,{key:0,src:h.block.props.url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,u)):c(``,!0),v[0]||=n(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent`},null,-1),n(`div`,d,[h.block.data.title?(i(),r(`h2`,f,o(h.block.data.title),1)):c(``,!0),h.block.data.text?(i(),r(`p`,p,o(h.block.data.text),1)):c(``,!0),h.block.data.button_label&&h.block.data.button_url?(i(),s(e(l),{key:2,"as-child":``,class:`mt-5 bg-white text-neutral-900 hover:bg-white/90`},{default:a(()=>[n(`a`,{href:h.block.data.button_url},o(h.block.data.button_label),9,m)]),_:1})):c(``,!0)])],2))}};export{h as default};
|
||||
import{On as e,Zn 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{m as l}from"./app-ljw5ZzEq.js";var u=[`src`],d={class:`relative max-w-2xl p-6 @3xl:p-10`},f={key:0,class:`text-2xl font-semibold tracking-tight @3xl:text-3xl`},p={key:1,class:`mt-2 text-[15px] leading-relaxed text-white/90 @3xl:text-base`},m=[`href`],h={__name:`Hero`,props:{block:{type:Object,required:!0}},setup(h){let g={small:`min-h-48`,medium:`min-h-72`,large:`min-h-96`};return(_,v)=>(i(),r(`section`,{class:t([`relative flex items-end overflow-hidden rounded-lg bg-brand text-white`,g[h.block.data.height]])},[h.block.props?.url?(i(),r(`img`,{key:0,src:h.block.props.url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,u)):c(``,!0),v[0]||=n(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent`},null,-1),n(`div`,d,[h.block.data.title?(i(),r(`h2`,f,o(h.block.data.title),1)):c(``,!0),h.block.data.text?(i(),r(`p`,p,o(h.block.data.text),1)):c(``,!0),h.block.data.button_label&&h.block.data.button_url?(i(),s(e(l),{key:2,"as-child":``,class:`mt-5 bg-white text-neutral-900 hover:bg-white/90`},{default:a(()=>[n(`a`,{href:h.block.data.button_url},o(h.block.data.button_label),9,m)]),_:1})):c(``,!0)])],2))}};export{h as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,g as c,it as l,mt as u,o as d,qt as f,tr as p,v as m,vn as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as _}from"./dist--2OKCVzt.js";import{t as v}from"./createLucideIcon-VlaMqNX_.js";import{t as y}from"./chevron-left-DSEhAEgi.js";import{t as b}from"./play-BGJiFgAn.js";import{Jt as x,tn as S}from"./app-BAVpMSkT.js";var C=v({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`}]]}),w=[`src`,`aria-hidden`,`loading`],T={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},E={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`},D={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},O={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},k={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},A={class:`flex items-center gap-1.5 px-1`},j=[`aria-label`,`aria-current`,`onClick`],M=[`aria-label`],N={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(v){let N=v,P=h(0),F=h(!1),I=c(()=>N.posts[P.value]),L=null;function R(e){P.value=(e+N.posts.length)%N.posts.length}function z(){B(),N.posts.length>1&&!F.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(L=setInterval(()=>R(P.value+1),7e3))}function B(){clearInterval(L)}function V(){F.value=!F.value,z()}return s(z),l(B),(s,c)=>(u(),a(`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:B,onMouseleave:z,onFocusin:B,onFocusout:z},[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`img`,{key:e.id,src:e.cover_url,alt:``,"aria-hidden":t!==P.value,loading:t===0?`eager`:`lazy`,class:r([`absolute inset-0 -z-10 size-full object-cover transition-opacity duration-700`,t===P.value?`opacity-100`:`opacity-0`])},null,10,w))),128)),c[3]||=i(`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),i(`div`,T,[I.value.category?(u(),a(`span`,E,p(I.value.category.name),1)):g(``,!0),i(`h2`,D,p(I.value.title),1),I.value.teaser?(u(),a(`p`,O,p(I.value.teaser),1)):g(``,!0),e(n(_),{href:`/neuigkeiten/${I.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:f(()=>[c[2]||=t(` Mehr erfahren `,-1),e(n(S),{class:`size-4`})]),_:1},8,[`href`])]),v.posts.length>1?(u(),a(`div`,k,[i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:c[0]||=e=>R(P.value-1)},[e(n(y),{class:`size-5`})]),i(`div`,A,[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`button`,{key:e.id,type:`button`,class:r([`h-1.5 rounded-full transition-all`,t===P.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${v.posts.length}`,"aria-current":t===P.value,onClick:e=>R(t)},null,10,j))),128))]),i(`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:c[1]||=e=>R(P.value+1)},[e(n(x),{class:`size-5`})]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":F.value?`Automatisch weiterblättern`:`Anhalten`,onClick:V},[F.value?(u(),m(n(b),{key:0,class:`size-4`})):(u(),m(n(C),{key:1,class:`size-4`}))],8,M)])):g(``,!0)],32))}},P={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),m(N,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{P as default};
|
||||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,g as c,it as l,mt as u,o as d,qt as f,tr as p,v as m,vn as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as _}from"./dist--2OKCVzt.js";import{t as v}from"./createLucideIcon-VlaMqNX_.js";import{t as y}from"./chevron-left-DSEhAEgi.js";import{t as b}from"./play-BGJiFgAn.js";import{Jt as x,tn as S}from"./app-ljw5ZzEq.js";var C=v({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`}]]}),w=[`src`,`aria-hidden`,`loading`],T={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},E={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`},D={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},O={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},k={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},A={class:`flex items-center gap-1.5 px-1`},j=[`aria-label`,`aria-current`,`onClick`],M=[`aria-label`],N={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(v){let N=v,P=h(0),F=h(!1),I=c(()=>N.posts[P.value]),L=null;function R(e){P.value=(e+N.posts.length)%N.posts.length}function z(){B(),N.posts.length>1&&!F.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(L=setInterval(()=>R(P.value+1),7e3))}function B(){clearInterval(L)}function V(){F.value=!F.value,z()}return s(z),l(B),(s,c)=>(u(),a(`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:B,onMouseleave:z,onFocusin:B,onFocusout:z},[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`img`,{key:e.id,src:e.cover_url,alt:``,"aria-hidden":t!==P.value,loading:t===0?`eager`:`lazy`,class:r([`absolute inset-0 -z-10 size-full object-cover transition-opacity duration-700`,t===P.value?`opacity-100`:`opacity-0`])},null,10,w))),128)),c[3]||=i(`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),i(`div`,T,[I.value.category?(u(),a(`span`,E,p(I.value.category.name),1)):g(``,!0),i(`h2`,D,p(I.value.title),1),I.value.teaser?(u(),a(`p`,O,p(I.value.teaser),1)):g(``,!0),e(n(_),{href:`/neuigkeiten/${I.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:f(()=>[c[2]||=t(` Mehr erfahren `,-1),e(n(S),{class:`size-4`})]),_:1},8,[`href`])]),v.posts.length>1?(u(),a(`div`,k,[i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:c[0]||=e=>R(P.value-1)},[e(n(y),{class:`size-5`})]),i(`div`,A,[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`button`,{key:e.id,type:`button`,class:r([`h-1.5 rounded-full transition-all`,t===P.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${v.posts.length}`,"aria-current":t===P.value,onClick:e=>R(t)},null,10,j))),128))]),i(`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:c[1]||=e=>R(P.value+1)},[e(n(x),{class:`size-5`})]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":F.value?`Automatisch weiterblättern`:`Anhalten`,onClick:V},[F.value?(u(),m(n(b),{key:0,class:`size-4`})):(u(),m(n(C),{key:1,class:`size-4`}))],8,M)])):g(``,!0)],32))}},P={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),m(N,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{P as default};
|
||||
|
|
@ -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{k as f}from"./app-BAVpMSkT.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};
|
||||
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{k as f}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -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{Lt as d}from"./app-BAVpMSkT.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};
|
||||
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{Lt as d}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -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{i as m}from"./dist--2OKCVzt.js";import{C as h,E as g,Qt as _,T as v}from"./app-BAVpMSkT.js";import{t as y}from"./BirthdayItem-D956hOlz.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(v,{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(y,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(h,{icon:n(_),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default};
|
||||
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{i as m}from"./dist--2OKCVzt.js";import{C as h,E as g,Qt as _,T as v}from"./app-ljw5ZzEq.js";import{t as y}from"./BirthdayItem-EzbfSTdi.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(v,{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(y,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(h,{icon:n(_),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialEvents-L3G2Blym.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/dist--2OKCVzt.js","assets/Presence-DEjNbTl8.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/createContext-CgVTZeqH.js","assets/useForwardExpose-CxX7fZdu.js","assets/Primitive-Bc3V858a.js","assets/plus-CQwC4vy-.js","assets/createLucideIcon-VlaMqNX_.js","assets/app-BAVpMSkT.js","assets/preload-helper-CwIXHf_L.js","assets/info-ByKJSon9.js","assets/loader-circle-Wr6tQn-J.js","assets/PopoverTrigger-B7McAoPv.js","assets/circle-check-K9QH5jex.js","assets/triangle-alert-DyO_Fk2w.js","assets/x-DU8daajy.js","assets/Teleport-gLFWhBwt.js","assets/getActiveElement-DWEoD8ZB.js","assets/nullish-DHihWhf5.js","assets/useDirection-DA6i3jxU.js","assets/useForwardPropsEmits-CXqK2gMN.js","assets/dist-CZxP9TJf.js","assets/utils-DOQQTBMN.js","assets/lib-Be7KNAML.js","assets/usePrimitiveElement-CquXUboG.js","assets/DialogTitle-CJ4_uV5l.js","assets/RovingFocusGroup-Cc2A9ECP.js","assets/dist-DtZOZ5EL.js","assets/app-DvoOghq_.css","assets/EventDateBlock-DjXcMauQ.js","assets/EditorialForms-CBG-UJZP.js","assets/download-K4OGj5k2.js","assets/pencil-line-5xb0u6Cg.js","assets/table-properties-DOd7BPqt.js","assets/EditorialNews-CPZ12B9e.js","assets/message-square-warning-Bf7QtZts.js","assets/EditorialPages-BqmWeDZM.js","assets/lock-yku43otw.js","assets/NewPageDialog-BrpCaPdD.js","assets/EditorialSnippets-kQclxyUh.js","assets/component-5v7AiJbe.js","assets/file-stack-CDegUTxJ.js","assets/trash-CONUPzoz.js","assets/EditorialMedia-CQQlrJqQ.js","assets/image-off-BO5qjHGQ.js"])))=>i.map(i=>d[i]);
|
||||
import{D as e,O as t,On as n,_ as r,b as i,bt as a,et as o,mt as s,o as c,qt as l,v as u,wt as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./preload-helper-CwIXHf_L.js";import{E as p,T as m,t as h}from"./app-BAVpMSkT.js";var g={class:`grid grid-cols-1 items-start gap-6 xl:grid-cols-2`},_={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(_){let v=Object.assign({"../../../../plugins-core/events/resources/js/editorial/EditorialEvents.vue":()=>f(()=>import(`./EditorialEvents-L3G2Blym.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>f(()=>import(`./EditorialForms-CBG-UJZP.js`),__vite__mapDeps([32,1,2,3,4,5,6,7,33,9,34,8,35,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>f(()=>import(`./EditorialNews-CPZ12B9e.js`),__vite__mapDeps([36,1,2,3,4,5,6,7,37,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>f(()=>import(`./EditorialPages-BqmWeDZM.js`),__vite__mapDeps([38,1,2,3,4,5,6,7,39,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,40])),"../../../../plugins-core/pages/resources/js/editorial/EditorialSnippets.vue":()=>f(()=>import(`./EditorialSnippets-kQclxyUh.js`),__vite__mapDeps([41,1,4,2,3,5,6,7,42,9,43,8,44,25,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30]))}),y={};for(let[e,n]of Object.entries(v)){let[,r]=e.match(/plugins-core\/([^/]+)\//);y[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}for(let[e,n]of Object.entries(Object.assign({"../../components/editorial/EditorialMedia.vue":()=>f(()=>import(`./EditorialMedia-CQQlrJqQ.js`),__vite__mapDeps([45,1,2,3,4,5,6,7,46,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]))})))y[`core::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n);return(t,f)=>(s(),u(p,{title:`Redaktion`},{default:l(()=>[e(m,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),r(`div`,g,[(s(!0),i(c,null,a(_.sections,e=>(s(),u(d(y[e.component]??n(h)(e.component,`editorial`)),o({key:e.key},{ref_for:!0},e.props,{class:`min-w-0`}),null,16))),128))])]),_:1}))}};export{_ as default};
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialEvents-C6Vol-C5.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/dist--2OKCVzt.js","assets/Presence-DEjNbTl8.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/createContext-CgVTZeqH.js","assets/useForwardExpose-CxX7fZdu.js","assets/Primitive-Bc3V858a.js","assets/plus-CQwC4vy-.js","assets/createLucideIcon-VlaMqNX_.js","assets/app-ljw5ZzEq.js","assets/preload-helper-CwIXHf_L.js","assets/info-ByKJSon9.js","assets/loader-circle-Wr6tQn-J.js","assets/PopoverTrigger-B7McAoPv.js","assets/circle-check-K9QH5jex.js","assets/triangle-alert-DyO_Fk2w.js","assets/x-DU8daajy.js","assets/Teleport-gLFWhBwt.js","assets/getActiveElement-DWEoD8ZB.js","assets/nullish-DHihWhf5.js","assets/useDirection-DA6i3jxU.js","assets/useForwardPropsEmits-CXqK2gMN.js","assets/dist-CZxP9TJf.js","assets/utils-DOQQTBMN.js","assets/lib-Be7KNAML.js","assets/usePrimitiveElement-CquXUboG.js","assets/DialogTitle-CJ4_uV5l.js","assets/RovingFocusGroup-Cc2A9ECP.js","assets/dist-DtZOZ5EL.js","assets/app-DFRFPbBC.css","assets/EventDateBlock-CCI883zc.js","assets/EditorialForms-DYofwMr6.js","assets/download-K4OGj5k2.js","assets/pencil-line-5xb0u6Cg.js","assets/table-properties-DOd7BPqt.js","assets/EditorialNews-DtAg2VGT.js","assets/message-square-warning-Bf7QtZts.js","assets/EditorialPages-rJNjOgjV.js","assets/lock-yku43otw.js","assets/NewPageDialog-BZP8ymcK.js","assets/EditorialSnippets-BAyawKP-.js","assets/component-5v7AiJbe.js","assets/file-stack-CDegUTxJ.js","assets/trash-CONUPzoz.js","assets/EditorialMedia-Bvf8dDVl.js","assets/image-off-BO5qjHGQ.js"])))=>i.map(i=>d[i]);
|
||||
import{D as e,O as t,On as n,_ as r,b as i,bt as a,et as o,mt as s,o as c,qt as l,v as u,wt as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./preload-helper-CwIXHf_L.js";import{E as p,T as m,t as h}from"./app-ljw5ZzEq.js";var g={class:`grid grid-cols-1 items-start gap-6 xl:grid-cols-2`},_={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(_){let v=Object.assign({"../../../../plugins-core/events/resources/js/editorial/EditorialEvents.vue":()=>f(()=>import(`./EditorialEvents-C6Vol-C5.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>f(()=>import(`./EditorialForms-DYofwMr6.js`),__vite__mapDeps([32,1,2,3,4,5,6,7,33,9,34,8,35,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>f(()=>import(`./EditorialNews-DtAg2VGT.js`),__vite__mapDeps([36,1,2,3,4,5,6,7,37,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>f(()=>import(`./EditorialPages-rJNjOgjV.js`),__vite__mapDeps([38,1,2,3,4,5,6,7,39,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,40])),"../../../../plugins-core/pages/resources/js/editorial/EditorialSnippets.vue":()=>f(()=>import(`./EditorialSnippets-BAyawKP-.js`),__vite__mapDeps([41,1,4,2,3,5,6,7,42,9,43,8,44,25,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30]))}),y={};for(let[e,n]of Object.entries(v)){let[,r]=e.match(/plugins-core\/([^/]+)\//);y[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}for(let[e,n]of Object.entries(Object.assign({"../../components/editorial/EditorialMedia.vue":()=>f(()=>import(`./EditorialMedia-Bvf8dDVl.js`),__vite__mapDeps([45,1,2,3,4,5,6,7,46,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]))})))y[`core::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n);return(t,f)=>(s(),u(p,{title:`Redaktion`},{default:l(()=>[e(m,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),r(`div`,g,[(s(!0),i(c,null,a(_.sections,e=>(s(),u(d(y[e.component]??n(h)(e.component,`editorial`)),o({key:e.key},{ref_for:!0},e.props,{class:`min-w-0`}),null,16))),128))])]),_:1}))}};export{_ as default};
|
||||
|
|
@ -1 +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,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as v,s as y}from"./dist--2OKCVzt.js";import{t as b}from"./search-x-Bfzq4V3S.js";import{p as x}from"./dist-CZxP9TJf.js";import{C as S,D as C,E as w,O as T,T as E,k as D,vt as O}from"./app-BAVpMSkT.js";var k={class:`grid gap-6 lg:grid-cols-12`},A={class:`grid content-start gap-6 lg:col-span-9`},j={class:`relative block`},M=[`id`],N={class:`flex items-center gap-2.5 border-b px-5 py-3`},P={class:`grid size-8 place-items-center rounded-md bg-brand-soft text-brand-text`},F={class:`text-base font-semibold`},I={class:`ml-auto text-xs text-muted-foreground`},L={class:`divide-y`},R=[`src`],z={class:`min-w-0 flex-1`},B=[`innerHTML`],V={key:0,class:`mt-0.5 text-xs text-muted-foreground`},H=[`innerHTML`],U={key:0,class:`rounded-lg border bg-card`},W={key:0,class:`hidden lg:col-span-3 lg:block`},G={class:`sticky top-20 rounded-lg border bg-card p-4`},K={class:`grid gap-0.5 text-sm`},q=[`href`],J={class:`ml-auto text-xs text-muted-foreground tabular-nums`},Y={__name:`Index`,props:{query:{type:String,default:``},groups:{type:Array,required:!0},minLength:{type:Number,default:2}},setup(Y){let X=Y,Z=m(X.query),Q=c(()=>X.groups.reduce((e,t)=>e+t.items.length,0));return n(Z,x(e=>y.get(`/suche`,e.trim()?{q:e.trim()}:{},{preserveState:!0,preserveScroll:!0,replace:!0}),300)),(n,c)=>(l(),p(w,{title:`Suche`},{default:d(()=>[e(E,{title:`Suche`},{description:d(()=>[Y.query.length>=Y.minLength?(l(),o(u,{key:0},[t(f(Q.value?`${Q.value} Treffer für „${Y.query}“`:`Keine Treffer für „${Y.query}“`),1)],64)):(l(),o(u,{key:1},[t(`Neuigkeiten, Termine, Seiten, Downloads und Dokumente durchsuchen`)],64))]),_:1}),a(`div`,k,[a(`div`,A,[a(`label`,j,[c[1]||=a(`span`,{class:`sr-only`},`Suchbegriff`,-1),e(r(O),{class:`pointer-events-none absolute top-1/2 left-4 size-5 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>Z.value=e,type:`search`,autofocus:``,placeholder:`Wonach suchen Sie?`,class:`h-12 w-full rounded-lg border border-input bg-card pr-4 pl-12 text-base 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),[[_,Z.value]])]),(l(!0),o(u,null,s(Y.groups,t=>(l(),o(`section`,{id:`treffer-${t.key}`,key:t.key,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,N,[a(`span`,P,[e(D,{name:t.icon,class:`size-4`},null,8,[`name`])]),a(`h2`,F,f(t.label),1),a(`span`,I,f(t.items.length===20?`20+`:t.items.length)+` Treffer`,1)]),a(`ul`,L,[(l(!0),o(u,null,s(t.items,e=>(l(),o(`li`,{key:e.url},[(l(),p(h(e.external?`a`:r(v)),{href:e.url,class:`group flex items-start gap-4 px-5 py-3.5 transition-colors hover:bg-accent/50`},{default:d(()=>[e.image?(l(),o(`img`,{key:0,src:e.image,alt:``,loading:`lazy`,class:`hidden h-14 w-20 shrink-0 rounded-md object-cover sm:block`},null,8,R)):e.file?(l(),p(T,{key:1,extension:e.file,class:`shrink-0`},null,8,[`extension`])):g(``,!0),a(`div`,z,[a(`h3`,{class:`text-[15px] font-semibold group-hover:underline`,innerHTML:r(C)(e.title,Y.query)},null,8,B),e.meta?(l(),o(`p`,V,f(e.meta),1)):g(``,!0),e.excerpt?(l(),o(`p`,{key:1,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`,innerHTML:r(C)(e.excerpt,Y.query)},null,8,H)):g(``,!0)])]),_:2},1032,[`href`]))]))),128))])],8,M))),128)),Y.query.length>=Y.minLength&&!Y.groups.length?(l(),o(`div`,U,[e(S,{icon:r(b),title:`Nichts gefunden`,text:`Andere Schreibweise oder weniger Begriffe versuchen. Personen finden Sie im Personenverzeichnis.`},null,8,[`icon`])])):g(``,!0)]),Y.groups.length>1?(l(),o(`aside`,W,[a(`nav`,G,[c[2]||=a(`h2`,{class:`mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Bereiche`,-1),a(`ul`,K,[(l(!0),o(u,null,s(Y.groups,n=>(l(),o(`li`,{key:n.key},[a(`a`,{href:`#treffer-${n.key}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-accent`},[e(D,{name:n.icon,class:`size-4 text-muted-foreground`},null,8,[`name`]),t(` `+f(n.label)+` `,1),a(`span`,J,f(n.items.length),1)],8,q)]))),128))]),e(r(v),{href:Y.query?`/personen?q=${encodeURIComponent(Y.query)}`:`/personen`,class:`mt-3 block border-t pt-3 text-[13px] text-brand-text hover:underline`},{default:d(()=>[t(`„`+f(Y.query)+`“ im Personenverzeichnis suchen`,1)]),_:1},8,[`href`])])])):g(``,!0)])]),_:1}))}};export{Y as default};
|
||||
import{D as e,E as t,Ht as n,On as r,Yt 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,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as v,s as y}from"./dist--2OKCVzt.js";import{t as b}from"./search-x-Bfzq4V3S.js";import{p as x}from"./dist-CZxP9TJf.js";import{C as S,D as C,E as w,O as T,T as E,k as D,vt as O}from"./app-ljw5ZzEq.js";var k={class:`grid gap-6 lg:grid-cols-12`},A={class:`grid content-start gap-6 lg:col-span-9`},j={class:`relative block`},M=[`id`],N={class:`flex items-center gap-2.5 border-b px-5 py-3`},P={class:`grid size-8 place-items-center rounded-md bg-brand-soft text-brand-text`},F={class:`text-base font-semibold`},I={class:`ml-auto text-xs text-muted-foreground`},L={class:`divide-y`},R=[`src`],z={class:`min-w-0 flex-1`},B=[`innerHTML`],V={key:0,class:`mt-0.5 text-xs text-muted-foreground`},H=[`innerHTML`],U={key:0,class:`rounded-lg border bg-card`},W={key:0,class:`hidden lg:col-span-3 lg:block`},G={class:`sticky top-20 rounded-lg border bg-card p-4`},K={class:`grid gap-0.5 text-sm`},q=[`href`],J={class:`ml-auto text-xs text-muted-foreground tabular-nums`},Y={__name:`Index`,props:{query:{type:String,default:``},groups:{type:Array,required:!0},minLength:{type:Number,default:2}},setup(Y){let X=Y,Z=m(X.query),Q=c(()=>X.groups.reduce((e,t)=>e+t.items.length,0));return n(Z,x(e=>y.get(`/suche`,e.trim()?{q:e.trim()}:{},{preserveState:!0,preserveScroll:!0,replace:!0}),300)),(n,c)=>(l(),p(w,{title:`Suche`},{default:d(()=>[e(E,{title:`Suche`},{description:d(()=>[Y.query.length>=Y.minLength?(l(),o(u,{key:0},[t(f(Q.value?`${Q.value} Treffer für „${Y.query}“`:`Keine Treffer für „${Y.query}“`),1)],64)):(l(),o(u,{key:1},[t(`Neuigkeiten, Termine, Seiten, Downloads und Dokumente durchsuchen`)],64))]),_:1}),a(`div`,k,[a(`div`,A,[a(`label`,j,[c[1]||=a(`span`,{class:`sr-only`},`Suchbegriff`,-1),e(r(O),{class:`pointer-events-none absolute top-1/2 left-4 size-5 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>Z.value=e,type:`search`,autofocus:``,placeholder:`Wonach suchen Sie?`,class:`h-12 w-full rounded-lg border border-input bg-card pr-4 pl-12 text-base 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),[[_,Z.value]])]),(l(!0),o(u,null,s(Y.groups,t=>(l(),o(`section`,{id:`treffer-${t.key}`,key:t.key,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,N,[a(`span`,P,[e(D,{name:t.icon,class:`size-4`},null,8,[`name`])]),a(`h2`,F,f(t.label),1),a(`span`,I,f(t.items.length===20?`20+`:t.items.length)+` Treffer`,1)]),a(`ul`,L,[(l(!0),o(u,null,s(t.items,e=>(l(),o(`li`,{key:e.url},[(l(),p(h(e.external?`a`:r(v)),{href:e.url,class:`group flex items-start gap-4 px-5 py-3.5 transition-colors hover:bg-accent/50`},{default:d(()=>[e.image?(l(),o(`img`,{key:0,src:e.image,alt:``,loading:`lazy`,class:`hidden h-14 w-20 shrink-0 rounded-md object-cover sm:block`},null,8,R)):e.file?(l(),p(T,{key:1,extension:e.file,class:`shrink-0`},null,8,[`extension`])):g(``,!0),a(`div`,z,[a(`h3`,{class:`text-[15px] font-semibold group-hover:underline`,innerHTML:r(C)(e.title,Y.query)},null,8,B),e.meta?(l(),o(`p`,V,f(e.meta),1)):g(``,!0),e.excerpt?(l(),o(`p`,{key:1,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`,innerHTML:r(C)(e.excerpt,Y.query)},null,8,H)):g(``,!0)])]),_:2},1032,[`href`]))]))),128))])],8,M))),128)),Y.query.length>=Y.minLength&&!Y.groups.length?(l(),o(`div`,U,[e(S,{icon:r(b),title:`Nichts gefunden`,text:`Andere Schreibweise oder weniger Begriffe versuchen. Personen finden Sie im Personenverzeichnis.`},null,8,[`icon`])])):g(``,!0)]),Y.groups.length>1?(l(),o(`aside`,W,[a(`nav`,G,[c[2]||=a(`h2`,{class:`mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Bereiche`,-1),a(`ul`,K,[(l(!0),o(u,null,s(Y.groups,n=>(l(),o(`li`,{key:n.key},[a(`a`,{href:`#treffer-${n.key}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-accent`},[e(D,{name:n.icon,class:`size-4 text-muted-foreground`},null,8,[`name`]),t(` `+f(n.label)+` `,1),a(`span`,J,f(n.items.length),1)],8,q)]))),128))]),e(r(v),{href:Y.query?`/personen?q=${encodeURIComponent(Y.query)}`:`/personen`,class:`mt-3 block border-t pt-3 text-[13px] text-brand-text hover:underline`},{default:d(()=>[t(`„`+f(Y.query)+`“ im Personenverzeichnis suchen`,1)]),_:1},8,[`href`])])])):g(``,!0)])]),_:1}))}};export{Y as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,Ht as n,On as r,Zn as i,_ as a,b as o,bt as s,et as c,g as l,mt as u,o as d,qt as f,tr as p,v as m,w as h,wt as g,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as v,o as y}from"./dist--2OKCVzt.js";import{t as b}from"./plus-CQwC4vy-.js";import{n as x}from"./lib-Be7KNAML.js";import{C as S,Dt as C,E as w,I as T,L as E,T as D,Zt as O,lt as k,m as A}from"./app-BAVpMSkT.js";import{t as j}from"./EventDateBlock-DjXcMauQ.js";import{t as M}from"./widgets-ByPKMgVP.js";var N={class:`grid min-w-0 grid-cols-1 content-start gap-6`},P={__name:`DashboardSidebar`,props:{widgets:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),o(`aside`,N,[(u(!0),o(d,null,s(e.widgets,e=>(u(),o(d,{key:e.key},[r(M)(e.component)?(u(),m(g(r(M)(e.component)),c({key:0,ref_for:!0},e.props),null,16)):_(``,!0)],64))),128))]))}},F={class:`grid gap-6 lg:grid-cols-12`},I={key:0,class:`grid gap-8`},L={class:`mb-3 text-sm font-semibold text-muted-foreground`},R={class:`divide-y rounded-lg border bg-card`},z={class:`min-w-0 flex-1`},B={class:`text-[15px] font-semibold group-hover:underline`},V={class:`mt-0.5 text-[13px] text-muted-foreground`},H={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},U=[`src`],W={key:1,class:`rounded-lg border border-dashed bg-card`},G={__name:`Index`,props:{events:{type:Object,required:!0},sidebar:{type:Array,default:()=>[]},canManage:{type:Boolean,default:!1}},setup(c){let g=c,M=y();n(()=>M.props.flash.status,e=>e&&x.success(e),{immediate:!0});let N=l(()=>{let e=[];for(let t of g.events.data){let n=new Date(t.starts_at),r=E((n<new Date?new Date:n).toISOString()),i=e[e.length-1];i?.label===r?i.events.push(t):e.push({label:r,events:[t]})}return e});return(n,l)=>(u(),m(w,{title:`Termine`},{default:f(()=>[e(D,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`},h({_:2},[c.canManage?{name:`actions`,fn:f(()=>[e(r(A),{"as-child":``},{default:f(()=>[e(r(v),{href:`/redaktion/termine/neu`},{default:f(()=>[e(r(b)),l[0]||=t(` Neuer Termin`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),a(`div`,F,[a(`div`,{class:i([`min-w-0`,c.sidebar.length?`lg:col-span-8 xl:col-span-9`:`lg:col-span-12`])},[N.value.length?(u(),o(`div`,I,[(u(!0),o(d,null,s(N.value,n=>(u(),o(`section`,{key:n.label},[a(`h2`,L,p(n.label),1),a(`ul`,R,[(u(!0),o(d,null,s(n.events,n=>(u(),o(`li`,{key:n.id},[e(r(v),{href:`/termine/${n.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:f(()=>[e(j,{date:n.starts_at,class:`w-14`},null,8,[`date`]),a(`div`,z,[a(`h3`,B,p(n.title),1),a(`p`,V,p(r(T)(n)),1),n.location||n.online_url?(u(),o(`p`,H,[n.location?(u(),m(r(C),{key:0,class:`size-3.5`})):(u(),m(r(k),{key:1,class:`size-3.5`})),t(` `+p(n.location||`Online`),1)])):_(``,!0)]),n.thumb_url?(u(),o(`img`,{key:0,src:n.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,U)):_(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(u(),o(`div`,W,[e(S,{icon:r(O),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))],2),c.sidebar.length?(u(),m(P,{key:0,widgets:c.sidebar,class:`lg:col-span-4 xl:col-span-3`},null,8,[`widgets`])):_(``,!0)])]),_:1}))}};export{G as default};
|
||||
import{D as e,E as t,Ht as n,On as r,Zn as i,_ as a,b as o,bt as s,et as c,g as l,mt as u,o as d,qt as f,tr as p,v as m,w as h,wt as g,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as v,o as y}from"./dist--2OKCVzt.js";import{t as b}from"./plus-CQwC4vy-.js";import{n as x}from"./lib-Be7KNAML.js";import{C as S,Dt as C,E as w,I as T,L as E,T as D,Zt as O,lt as k,m as A}from"./app-ljw5ZzEq.js";import{t as j}from"./EventDateBlock-CCI883zc.js";import{t as M}from"./widgets-RiaT6wIj.js";var N={class:`grid min-w-0 grid-cols-1 content-start gap-6`},P={__name:`DashboardSidebar`,props:{widgets:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),o(`aside`,N,[(u(!0),o(d,null,s(e.widgets,e=>(u(),o(d,{key:e.key},[r(M)(e.component)?(u(),m(g(r(M)(e.component)),c({key:0,ref_for:!0},e.props),null,16)):_(``,!0)],64))),128))]))}},F={class:`grid gap-6 lg:grid-cols-12`},I={key:0,class:`grid gap-8`},L={class:`mb-3 text-sm font-semibold text-muted-foreground`},R={class:`divide-y rounded-lg border bg-card`},z={class:`min-w-0 flex-1`},B={class:`text-[15px] font-semibold group-hover:underline`},V={class:`mt-0.5 text-[13px] text-muted-foreground`},H={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},U=[`src`],W={key:1,class:`rounded-lg border border-dashed bg-card`},G={__name:`Index`,props:{events:{type:Object,required:!0},sidebar:{type:Array,default:()=>[]},canManage:{type:Boolean,default:!1}},setup(c){let g=c,M=y();n(()=>M.props.flash.status,e=>e&&x.success(e),{immediate:!0});let N=l(()=>{let e=[];for(let t of g.events.data){let n=new Date(t.starts_at),r=E((n<new Date?new Date:n).toISOString()),i=e[e.length-1];i?.label===r?i.events.push(t):e.push({label:r,events:[t]})}return e});return(n,l)=>(u(),m(w,{title:`Termine`},{default:f(()=>[e(D,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`},h({_:2},[c.canManage?{name:`actions`,fn:f(()=>[e(r(A),{"as-child":``},{default:f(()=>[e(r(v),{href:`/redaktion/termine/neu`},{default:f(()=>[e(r(b)),l[0]||=t(` Neuer Termin`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),a(`div`,F,[a(`div`,{class:i([`min-w-0`,c.sidebar.length?`lg:col-span-8 xl:col-span-9`:`lg:col-span-12`])},[N.value.length?(u(),o(`div`,I,[(u(!0),o(d,null,s(N.value,n=>(u(),o(`section`,{key:n.label},[a(`h2`,L,p(n.label),1),a(`ul`,R,[(u(!0),o(d,null,s(n.events,n=>(u(),o(`li`,{key:n.id},[e(r(v),{href:`/termine/${n.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:f(()=>[e(j,{date:n.starts_at,class:`w-14`},null,8,[`date`]),a(`div`,z,[a(`h3`,B,p(n.title),1),a(`p`,V,p(r(T)(n)),1),n.location||n.online_url?(u(),o(`p`,H,[n.location?(u(),m(r(C),{key:0,class:`size-3.5`})):(u(),m(r(k),{key:1,class:`size-3.5`})),t(` `+p(n.location||`Online`),1)])):_(``,!0)]),n.thumb_url?(u(),o(`img`,{key:0,src:n.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,U)):_(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(u(),o(`div`,W,[e(S,{icon:r(O),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))],2),c.sidebar.length?(u(),m(P,{key:0,widgets:c.sidebar,class:`lg:col-span-4 xl:col-span-3`},null,8,[`widgets`])):_(``,!0)])]),_:1}))}};export{G as default};
|
||||
|
|
@ -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{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./plus-CQwC4vy-.js";import{C as g,E as _,Ht as v,Jt as y,T as b,Vt as x,m as S}from"./app-BAVpMSkT.js";import{t as C}from"./NewPageDialog-BrpCaPdD.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(b,{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(h)),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(x),{key:0,class:`size-5`})):(o(),u(n(v),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(y),{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(g,{icon:n(v),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};
|
||||
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{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./plus-CQwC4vy-.js";import{C as g,E as _,Ht as v,Jt as y,T as b,Vt as x,m as S}from"./app-ljw5ZzEq.js";import{t as C}from"./NewPageDialog-BZP8ymcK.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(b,{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(h)),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(x),{key:0,class:`size-5`})):(o(),u(n(v),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(y),{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(g,{icon:n(v),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};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +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{i as _,s as v}from"./dist--2OKCVzt.js";import{t as y}from"./chevron-left-DSEhAEgi.js";import{t as b}from"./search-x-Bfzq4V3S.js";import{p as x}from"./dist-CZxP9TJf.js";import{E as S,Jt as C,M as w,Ot as T,St as E,T as D,m as O,vt as k}from"./app-BAVpMSkT.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),v.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return n(X,x(Q,300)),n(Z,Q),(n,p)=>(c(),f(S,{title:`Personen`},{default:u(()=>[e(D,{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(_),{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(k),{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(_),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:u(()=>[e(w,{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(T),{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(E),{class:`size-4`}),p[8]||=t(` Anrufen `,-1)],8,U)):m(``,!0)])]))),128))])):(c(),o(`div`,W,[e(r(b),{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(O),{variant:`outline`,size:`sm`,disabled:!J.people.links.prev,onClick:p[2]||=e=>r(v).get(J.people.links.prev,{},{preserveScroll:!1})},{default:u(()=>[e(r(y)),p[11]||=t(` Zurück `,-1)]),_:1},8,[`disabled`]),e(r(O),{variant:`outline`,size:`sm`,disabled:!J.people.links.next,onClick:p[3]||=e=>r(v).get(J.people.links.next,{},{preserveScroll:!1})},{default:u(()=>[p[12]||=t(` Weiter `,-1),e(r(C))]),_:1},8,[`disabled`])])])):m(``,!0)]),_:1}))}};export{J as default};
|
||||
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{i as _,s as v}from"./dist--2OKCVzt.js";import{t as y}from"./chevron-left-DSEhAEgi.js";import{t as b}from"./search-x-Bfzq4V3S.js";import{p as x}from"./dist-CZxP9TJf.js";import{E as S,Jt as C,M as w,Ot as T,St as E,T as D,m as O,vt as k}from"./app-ljw5ZzEq.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),v.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return n(X,x(Q,300)),n(Z,Q),(n,p)=>(c(),f(S,{title:`Personen`},{default:u(()=>[e(D,{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(_),{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(k),{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(_),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:u(()=>[e(w,{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(T),{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(E),{class:`size-4`}),p[8]||=t(` Anrufen `,-1)],8,U)):m(``,!0)])]))),128))])):(c(),o(`div`,W,[e(r(b),{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(O),{variant:`outline`,size:`sm`,disabled:!J.people.links.prev,onClick:p[2]||=e=>r(v).get(J.people.links.prev,{},{preserveScroll:!1})},{default:u(()=>[e(r(y)),p[11]||=t(` Zurück `,-1)]),_:1},8,[`disabled`]),e(r(O),{variant:`outline`,size:`sm`,disabled:!J.people.links.next,onClick:p[3]||=e=>r(v).get(J.people.links.next,{},{preserveScroll:!1})},{default:u(()=>[p[12]||=t(` Weiter `,-1),e(r(C))]),_:1},8,[`disabled`])])])):m(``,!0)]),_:1}))}};export{J as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -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{i as d}from"./dist--2OKCVzt.js";import{C as f,E as p,F as m,Gt as h,Jt as g,T as _}from"./app-BAVpMSkT.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(p,{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(h),{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(m)(i.closes_at)),1)):u(``,!0)]),e(t(g),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(f,{icon:t(h),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default};
|
||||
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{i as d}from"./dist--2OKCVzt.js";import{C as f,E as p,F as m,Gt as h,Jt as g,T as _}from"./app-ljw5ZzEq.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(p,{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(h),{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(m)(i.closes_at)),1)):u(``,!0)]),e(t(g),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(f,{icon:t(h),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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{i as m,s as h}from"./dist--2OKCVzt.js";import{t as g}from"./chevron-left-DSEhAEgi.js";import{t as _}from"./pen-line-B1UtLKH3.js";import{C as v,Ct as y,E as b,Jt as x,T as S,m as C}from"./app-BAVpMSkT.js";import{t as w}from"./NewsCard-Ba6R3LMR.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(b,{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(m),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(_)),N[2]||=t(` Beitrag schreiben`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),j.categories.length?(s(),a(`nav`,T,[e(n(m),{href:`/neuigkeiten`,class:r([`rounded-pill 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(m),{key:e.slug,href:`/neuigkeiten?kategorie=${e.slug}`,class:r([`rounded-pill 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(v,{icon:n(y),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(h).get(j.posts.links.prev)},{default:l(()=>[e(n(g)),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(h).get(j.posts.links.next)},{default:l(()=>[N[5]||=t(`Ältere `,-1),e(n(x))]),_:1},8,[`disabled`])])])):p(``,!0)]),_:1}))}};export{j as default};
|
||||
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{i as m,s as h}from"./dist--2OKCVzt.js";import{t as g}from"./chevron-left-DSEhAEgi.js";import{t as _}from"./pen-line-B1UtLKH3.js";import{C as v,Ct as y,E as b,Jt as x,T as S,m as C}from"./app-ljw5ZzEq.js";import{t as w}from"./NewsCard-BibmiOWg.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(b,{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(m),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(_)),N[2]||=t(` Beitrag schreiben`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),j.categories.length?(s(),a(`nav`,T,[e(n(m),{href:`/neuigkeiten`,class:r([`rounded-pill 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(m),{key:e.slug,href:`/neuigkeiten?kategorie=${e.slug}`,class:r([`rounded-pill 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(v,{icon:n(y),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(h).get(j.posts.links.prev)},{default:l(()=>[e(n(g)),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(h).get(j.posts.links.next)},{default:l(()=>[N[5]||=t(`Ältere `,-1),e(n(x))]),_:1},8,[`disabled`])])])):p(``,!0)]),_:1}))}};export{j as default};
|
||||
|
|
@ -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{C as l,Ct as u,w as d}from"./app-BAVpMSkT.js";import{t as f}from"./NewsListItem-Bz4HsmDD.js";var p={key:0,href:`/redaktion/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(l,{key:1,icon:e(u),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};
|
||||
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{C as l,Ct as u,w as d}from"./app-ljw5ZzEq.js";import{t as f}from"./NewsListItem-BpDZCZh5.js";var p={key:0,href:`/redaktion/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(l,{key:1,icon:e(u),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};
|
||||
|
|
@ -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{i as f}from"./dist--2OKCVzt.js";import{Jt as p}from"./app-BAVpMSkT.js";import{t as m}from"./NewsCard-Ba6R3LMR.js";import{t as h}from"./NewsListItem-Bz4HsmDD.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};
|
||||
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{i as f}from"./dist--2OKCVzt.js";import{Jt as p}from"./app-ljw5ZzEq.js";import{t as m}from"./NewsCard-BibmiOWg.js";import{t as h}from"./NewsListItem-BpDZCZh5.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};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -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,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as m,i as h}from"./dist--2OKCVzt.js";import{t as g}from"./eye-off-CneL5LCR.js";import{t as _}from"./eye-Cklkscvg.js";import{t as v}from"./loader-circle-Wr6tQn-J.js";import{$t as y,Ft as b,S as x,f as S,gt as C,m as w,u as T,x as E}from"./app-BAVpMSkT.js";import{t as D}from"./GuestLayout-Ccy6gSko.js";var O={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},k={key:1,class:`mb-6 rounded-md border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm text-destructive`,role:`alert`},A={key:2,class:`mb-6 grid gap-3`},j=[`href`],M={key:0,class:`size-[18px]`,viewBox:`0 0 21 21`,"aria-hidden":`true`},N={class:`relative`},P=[`aria-label`],F={class:`flex items-center justify-between`},I={__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(I){let L=I,R=d(!1),z=m({email:``,password:``,remember:!1});function B(){L.preview||z.post(`/login`,{onFinish:()=>z.reset(`password`)})}return(d,m)=>(o(),u(D,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:c(()=>[I.status?(o(),i(`div`,O,l(I.status),1)):f(``,!0),I.identityError?(o(),i(`div`,k,l(I.identityError),1)):f(``,!0),I.providers.length?(o(),i(`div`,A,[(o(!0),i(s,null,a(I.providers,e=>(o(),i(`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`?(o(),i(`svg`,M,[...m[4]||=[r(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),r(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),r(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),r(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(o(),u(n(y),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(o(),u(n(C),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(o(),u(n(b),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),t(` `+l(e.label),1)],8,j))),128)),m[5]||=r(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[r(`span`,{class:`h-px flex-1 bg-border`}),t(` oder mit E-Mail und Passwort `),r(`span`,{class:`h-px flex-1 bg-border`})],-1)])):f(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:p(B,[`prevent`])},[e(E,{id:`email`,label:`E-Mail-Adresse`,error:n(z).errors.email},{default:c(()=>[e(n(S),{id:`email`,modelValue:n(z).email,"onUpdate:modelValue":m[0]||=e=>n(z).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!n(z).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),e(E,{id:`password`,label:`Passwort`,error:n(z).errors.password},{default:c(()=>[r(`div`,N,[e(n(S),{id:`password`,modelValue:n(z).password,"onUpdate:modelValue":m[1]||=e=>n(z).password=e,type:R.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(z).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":R.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:m[2]||=e=>R.value=!R.value},[R.value?(o(),u(n(g),{key:0,class:`size-4`})):(o(),u(n(_),{key:1,class:`size-4`}))],8,P)])]),_:1},8,[`error`]),r(`div`,F,[e(n(x),{class:`flex items-center gap-2 text-sm font-normal`},{default:c(()=>[e(n(T),{modelValue:n(z).remember,"onUpdate:modelValue":m[3]||=e=>n(z).remember=e},null,8,[`modelValue`]),m[6]||=t(` Angemeldet bleiben `,-1)]),_:1}),I.canResetPassword?(o(),u(n(h),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:c(()=>[...m[7]||=[t(` Passwort vergessen? `,-1)]]),_:1})):f(``,!0)]),e(n(w),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(z).processing},{default:c(()=>[n(z).processing?(o(),u(n(v),{key:0,class:`animate-spin`})):f(``,!0),m[8]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{I as default};
|
||||
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,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as m,i as h}from"./dist--2OKCVzt.js";import{t as g}from"./eye-off-CneL5LCR.js";import{t as _}from"./eye-Cklkscvg.js";import{t as v}from"./loader-circle-Wr6tQn-J.js";import{$t as y,Ft as b,S as x,f as S,gt as C,m as w,u as T,x as E}from"./app-ljw5ZzEq.js";import{t as D}from"./GuestLayout-Zom_9WY0.js";var O={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},k={key:1,class:`mb-6 rounded-md border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm text-destructive`,role:`alert`},A={key:2,class:`mb-6 grid gap-3`},j=[`href`],M={key:0,class:`size-[18px]`,viewBox:`0 0 21 21`,"aria-hidden":`true`},N={class:`relative`},P=[`aria-label`],F={class:`flex items-center justify-between`},I={__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(I){let L=I,R=d(!1),z=m({email:``,password:``,remember:!1});function B(){L.preview||z.post(`/login`,{onFinish:()=>z.reset(`password`)})}return(d,m)=>(o(),u(D,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:c(()=>[I.status?(o(),i(`div`,O,l(I.status),1)):f(``,!0),I.identityError?(o(),i(`div`,k,l(I.identityError),1)):f(``,!0),I.providers.length?(o(),i(`div`,A,[(o(!0),i(s,null,a(I.providers,e=>(o(),i(`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`?(o(),i(`svg`,M,[...m[4]||=[r(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),r(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),r(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),r(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(o(),u(n(y),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(o(),u(n(C),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(o(),u(n(b),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),t(` `+l(e.label),1)],8,j))),128)),m[5]||=r(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[r(`span`,{class:`h-px flex-1 bg-border`}),t(` oder mit E-Mail und Passwort `),r(`span`,{class:`h-px flex-1 bg-border`})],-1)])):f(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:p(B,[`prevent`])},[e(E,{id:`email`,label:`E-Mail-Adresse`,error:n(z).errors.email},{default:c(()=>[e(n(S),{id:`email`,modelValue:n(z).email,"onUpdate:modelValue":m[0]||=e=>n(z).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!n(z).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),e(E,{id:`password`,label:`Passwort`,error:n(z).errors.password},{default:c(()=>[r(`div`,N,[e(n(S),{id:`password`,modelValue:n(z).password,"onUpdate:modelValue":m[1]||=e=>n(z).password=e,type:R.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(z).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":R.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:m[2]||=e=>R.value=!R.value},[R.value?(o(),u(n(g),{key:0,class:`size-4`})):(o(),u(n(_),{key:1,class:`size-4`}))],8,P)])]),_:1},8,[`error`]),r(`div`,F,[e(n(x),{class:`flex items-center gap-2 text-sm font-normal`},{default:c(()=>[e(n(T),{modelValue:n(z).remember,"onUpdate:modelValue":m[3]||=e=>n(z).remember=e},null,8,[`modelValue`]),m[6]||=t(` Angemeldet bleiben `,-1)]),_:1}),I.canResetPassword?(o(),u(n(h),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:c(()=>[...m[7]||=[t(` Passwort vergessen? `,-1)]]),_:1})):f(``,!0)]),e(n(w),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(z).processing},{default:c(()=>[n(z).processing?(o(),u(n(v),{key:0,class:`animate-spin`})):f(``,!0),m[8]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{I as default};
|
||||
|
|
@ -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{O as p,mt as m,w as h}from"./app-BAVpMSkT.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(p,{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(m),{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};
|
||||
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{O as p,mt as m,w as h}from"./app-ljw5ZzEq.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(p,{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(m),{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};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,ct as o,mt as s,o as c,qt as l,tr as u,v as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./calendar-clock-DpH3ndNA.js";import{n as g,t as _}from"./message-square-plus-3BKsmzEu.js";import{H as v,c as y,w as b}from"./app-BAVpMSkT.js";var x={key:0,class:`grid grid-cols-2 gap-2`},S={class:`grid grid-cols-2 gap-2`},C={class:`block text-xl font-semibold tabular-nums`},w={class:`flex items-center gap-1 text-xs text-muted-foreground`},T={class:`block text-xl font-semibold tabular-nums`},E={class:`flex items-center gap-1 text-xs text-muted-foreground`},D={key:0,class:`mt-3 grid min-w-0 grid-cols-1 gap-0.5`},O={class:`min-w-0 truncate`},k={class:`max-w-[45%] shrink-0 truncate text-[11px] text-muted-foreground`},A={key:2,class:`text-[13px] text-muted-foreground`},j={__name:`MyIt`,setup(j){let M=f(null),N=f(!1);return o(async()=>{try{M.value=await v.get(`/it-service/uebersicht`)}catch{N.value=!0}}),(o,f)=>(s(),d(b,{title:`Meine IT`,"action-label":`Öffnen`,"action-href":`/it-service`},{default:l(()=>[!M.value&&!N.value?(s(),i(`div`,x,[e(n(y),{class:`h-16`}),e(n(y),{class:`h-16`})])):M.value?(s(),i(c,{key:1},[r(`div`,S,[e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,C,u(M.value.open_tickets),1),r(`span`,w,[e(n(g),{class:`size-3.5`}),f[0]||=t(` offene Tickets`,-1)])]),_:1}),e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,T,u(M.value.loans),1),r(`span`,E,[e(n(h),{class:`size-3.5`}),f[1]||=t(` Ausleihen`,-1)])]),_:1})]),M.value.latest.length?(s(),i(`ul`,D,[(s(!0),i(c,null,a(M.value.latest,t=>(s(),i(`li`,{key:t.id},[e(n(m),{href:`/it-service/tickets/${t.id}`,class:`flex min-w-0 items-center justify-between gap-2 rounded px-1 py-1 text-[13px] hover:bg-accent`,title:t.subject},{default:l(()=>[r(`span`,O,u(t.subject),1),r(`span`,k,u(t.status_label),1)]),_:2},1032,[`href`,`title`])]))),128))])):p(``,!0)],64)):(s(),i(`p`,A,`Der IT-Service ist gerade nicht erreichbar.`)),e(n(m),{href:`/it-service/tickets/neu`,class:`mt-3 flex items-center gap-1.5 border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:l(()=>[e(n(_),{class:`size-4`}),f[2]||=t(` IT-Problem melden `,-1)]),_:1})]),_:1}))}};export{j as default};
|
||||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,ct as o,mt as s,o as c,qt as l,tr as u,v as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./calendar-clock-DpH3ndNA.js";import{n as g,t as _}from"./message-square-plus-3BKsmzEu.js";import{H as v,c as y,w as b}from"./app-ljw5ZzEq.js";var x={key:0,class:`grid grid-cols-2 gap-2`},S={class:`grid grid-cols-2 gap-2`},C={class:`block text-xl font-semibold tabular-nums`},w={class:`flex items-center gap-1 text-xs text-muted-foreground`},T={class:`block text-xl font-semibold tabular-nums`},E={class:`flex items-center gap-1 text-xs text-muted-foreground`},D={key:0,class:`mt-3 grid min-w-0 grid-cols-1 gap-0.5`},O={class:`min-w-0 truncate`},k={class:`max-w-[45%] shrink-0 truncate text-[11px] text-muted-foreground`},A={key:2,class:`text-[13px] text-muted-foreground`},j={__name:`MyIt`,setup(j){let M=f(null),N=f(!1);return o(async()=>{try{M.value=await v.get(`/it-service/uebersicht`)}catch{N.value=!0}}),(o,f)=>(s(),d(b,{title:`Meine IT`,"action-label":`Öffnen`,"action-href":`/it-service`},{default:l(()=>[!M.value&&!N.value?(s(),i(`div`,x,[e(n(y),{class:`h-16`}),e(n(y),{class:`h-16`})])):M.value?(s(),i(c,{key:1},[r(`div`,S,[e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,C,u(M.value.open_tickets),1),r(`span`,w,[e(n(g),{class:`size-3.5`}),f[0]||=t(` offene Tickets`,-1)])]),_:1}),e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,T,u(M.value.loans),1),r(`span`,E,[e(n(h),{class:`size-3.5`}),f[1]||=t(` Ausleihen`,-1)])]),_:1})]),M.value.latest.length?(s(),i(`ul`,D,[(s(!0),i(c,null,a(M.value.latest,t=>(s(),i(`li`,{key:t.id},[e(n(m),{href:`/it-service/tickets/${t.id}`,class:`flex min-w-0 items-center justify-between gap-2 rounded px-1 py-1 text-[13px] hover:bg-accent`,title:t.subject},{default:l(()=>[r(`span`,O,u(t.subject),1),r(`span`,k,u(t.status_label),1)]),_:2},1032,[`href`,`title`])]))),128))])):p(``,!0)],64)):(s(),i(`p`,A,`Der IT-Service ist gerade nicht erreichbar.`)),e(n(m),{href:`/it-service/tickets/neu`,class:`mt-3 flex items-center gap-1.5 border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:l(()=>[e(n(_),{class:`size-4`}),f[2]||=t(` IT-Problem melden `,-1)]),_:1})]),_:1}))}};export{j as default};
|
||||
|
|
@ -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{i as u}from"./dist--2OKCVzt.js";import{M as d,w as f}from"./app-BAVpMSkT.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};
|
||||
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{i as u}from"./dist--2OKCVzt.js";import{M as d,w as f}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -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,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as m}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as h}from"./dist--2OKCVzt.js";import{H as g,a as _,b as v,f as y,i as b,m as x,n as S,o as C,r as w,s as T}from"./app-BAVpMSkT.js";var E={class:`grid gap-1.5`},D={key:0,class:`text-[13px] text-destructive`},O={key:0,class:`grid gap-1.5`},k={__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:k}){let A=e,j=r(e,`open`),M=k,N=h({title:``,parent_id:null,template_id:null}),P=f([]);i(j,async e=>{if(e){N.reset(),N.clearErrors();try{P.value=(await g.get(`/redaktion/bausteine?kind=template`)).snippets}catch{P.value=[]}}});async function F(){M(`before-create`),N.parent_id=A.parentId,N.post(`/redaktion/seiten`)}return(r,i)=>(c(),d(a(T),{open:j.value,"onUpdate:open":i[3]||=e=>j.value=e},{default:l(()=>[t(a(C),{class:`sm:max-w-md`},{default:l(()=>[t(a(w),null,{default:l(()=>[t(a(S),null,{default:l(()=>[n(u(e.parentId?`Unterseite anlegen`:`Neue Seite`),1)]),_:1}),e.parentId?(c(),d(a(_),{key:0},{default:l(()=>[n(`Unter „`+u(e.parentTitle)+`“. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,1)]),_:1})):(c(),d(a(_),{key:1},{default:l(()=>[...i[4]||=[n(`Auf der obersten Ebene. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,-1)]]),_:1}))]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:m(F,[`prevent`])},[o(`label`,E,[i[5]||=o(`span`,{class:`text-[13px] font-medium`},`Titel`,-1),t(a(y),{modelValue:a(N).title,"onUpdate:modelValue":i[0]||=e=>a(N).title=e,maxlength:`200`,autofocus:``,"aria-invalid":!!a(N).errors.title},null,8,[`modelValue`,`aria-invalid`]),a(N).errors.title?(c(),s(`span`,D,u(a(N).errors.title),1)):p(``,!0)]),P.value.length?(c(),s(`label`,O,[i[6]||=o(`span`,{class:`text-[13px] font-medium`},`Vorlage`,-1),t(v,{modelValue:a(N).template_id,"onUpdate:modelValue":i[1]||=e=>a(N).template_id=e,options:[{value:null,label:`Leere Seite`},...P.value.map(e=>({value:e.id,label:e.description?`${e.name} – ${e.description}`:e.name}))]},null,8,[`modelValue`,`options`])])):p(``,!0),t(a(b),null,{default:l(()=>[t(a(x),{type:`button`,variant:`outline`,onClick:i[2]||=e=>j.value=!1},{default:l(()=>[...i[7]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(x),{type:`submit`,disabled:a(N).processing||!a(N).title.trim()},{default:l(()=>[...i[8]||=[n(`Anlegen und bearbeiten`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}};export{k as t};
|
||||
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,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as m}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as h}from"./dist--2OKCVzt.js";import{H as g,a as _,b as v,f as y,i as b,m as x,n as S,o as C,r as w,s as T}from"./app-ljw5ZzEq.js";var E={class:`grid gap-1.5`},D={key:0,class:`text-[13px] text-destructive`},O={key:0,class:`grid gap-1.5`},k={__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:k}){let A=e,j=r(e,`open`),M=k,N=h({title:``,parent_id:null,template_id:null}),P=f([]);i(j,async e=>{if(e){N.reset(),N.clearErrors();try{P.value=(await g.get(`/redaktion/bausteine?kind=template`)).snippets}catch{P.value=[]}}});async function F(){M(`before-create`),N.parent_id=A.parentId,N.post(`/redaktion/seiten`)}return(r,i)=>(c(),d(a(T),{open:j.value,"onUpdate:open":i[3]||=e=>j.value=e},{default:l(()=>[t(a(C),{class:`sm:max-w-md`},{default:l(()=>[t(a(w),null,{default:l(()=>[t(a(S),null,{default:l(()=>[n(u(e.parentId?`Unterseite anlegen`:`Neue Seite`),1)]),_:1}),e.parentId?(c(),d(a(_),{key:0},{default:l(()=>[n(`Unter „`+u(e.parentTitle)+`“. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,1)]),_:1})):(c(),d(a(_),{key:1},{default:l(()=>[...i[4]||=[n(`Auf der obersten Ebene. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,-1)]]),_:1}))]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:m(F,[`prevent`])},[o(`label`,E,[i[5]||=o(`span`,{class:`text-[13px] font-medium`},`Titel`,-1),t(a(y),{modelValue:a(N).title,"onUpdate:modelValue":i[0]||=e=>a(N).title=e,maxlength:`200`,autofocus:``,"aria-invalid":!!a(N).errors.title},null,8,[`modelValue`,`aria-invalid`]),a(N).errors.title?(c(),s(`span`,D,u(a(N).errors.title),1)):p(``,!0)]),P.value.length?(c(),s(`label`,O,[i[6]||=o(`span`,{class:`text-[13px] font-medium`},`Vorlage`,-1),t(v,{modelValue:a(N).template_id,"onUpdate:modelValue":i[1]||=e=>a(N).template_id=e,options:[{value:null,label:`Leere Seite`},...P.value.map(e=>({value:e.id,label:e.description?`${e.name} – ${e.description}`:e.name}))]},null,8,[`modelValue`,`options`])])):p(``,!0),t(a(b),null,{default:l(()=>[t(a(x),{type:`button`,variant:`outline`,onClick:i[2]||=e=>j.value=!1},{default:l(()=>[...i[7]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(x),{type:`submit`,disabled:a(N).processing||!a(N).title.trim()},{default:l(()=>[...i[8]||=[n(`Anlegen und bearbeiten`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}};export{k as t};
|
||||
|
|
@ -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{i as l}from"./dist--2OKCVzt.js";import{z as u}from"./app-BAVpMSkT.js";import{n as d,t as f}from"./NewsImage-Bq2V5qsh.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};
|
||||
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{i as l}from"./dist--2OKCVzt.js";import{z as u}from"./app-ljw5ZzEq.js";import{n as d,t as f}from"./NewsImage-IM48ksuB.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};
|
||||
|
|
@ -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{Ct as o}from"./app-BAVpMSkT.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};
|
||||
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{Ct as o}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -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{i as s}from"./dist--2OKCVzt.js";import{R as c}from"./app-BAVpMSkT.js";import{n as l,t as u}from"./NewsImage-Bq2V5qsh.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};
|
||||
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{i as s}from"./dist--2OKCVzt.js";import{R as c}from"./app-ljw5ZzEq.js";import{n as l,t as u}from"./NewsImage-IM48ksuB.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};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,b as t,g as n,gt as r,mt as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as a}from"./BlockList-C4oAQFR_.js";var o={class:`@container`},s={__name:`PageContent`,props:{content:{type:Object,required:!0},types:{type:Object,default:null}},setup(s){let c=s;r(`pagebuilder:list`,a),r(`pagebuilder:editing`,!1),r(`pagebuilder:types`,c.types??{});let l=n(()=>({blocks:c.content.blocks??[]}));return(n,r)=>(i(),t(`div`,o,[e(a,{item:l.value},null,8,[`item`])]))}};export{s as t};
|
||||
import{D as e,b as t,g as n,gt as r,mt as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as a}from"./BlockList-C1d87MfV.js";var o={class:`@container`},s={__name:`PageContent`,props:{content:{type:Object,required:!0},types:{type:Object,default:null}},setup(s){let c=s;r(`pagebuilder:list`,a),r(`pagebuilder:editing`,!1),r(`pagebuilder:types`,c.types??{});let l=n(()=>({blocks:c.content.blocks??[]}));return(n,r)=>(i(),t(`div`,o,[e(a,{item:l.value},null,8,[`item`])]))}};export{s as t};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,Ht as n,On as r,Yt as i,Zn as a,_ as o,b as s,bt as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as g,x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as v,s as y}from"./dist--2OKCVzt.js";import{t as b}from"./loader-circle-Wr6tQn-J.js";import{p as x}from"./dist-CZxP9TJf.js";import{H as S,N as C,tn as w,vt as T,w as E}from"./app-BAVpMSkT.js";var D={key:0,class:`mt-4 grid gap-3`},O=[`src`,`alt`],k={class:`min-w-0`},A={class:`block font-semibold leading-tight`},j={key:0,class:`mt-0.5 block text-xs text-muted-foreground`},M={key:0,class:`divide-y border-t px-3 text-[13px]`},N={class:`text-[10px] font-semibold tracking-wider text-muted-foreground uppercase`},P={class:`mt-0.5 break-words`},F=[`href`],I={key:1,class:`mt-4 text-[13px] text-muted-foreground`},L={__name:`PeopleSearch`,props:{count:{type:Number,required:!0}},setup(L){let R=m(``),z=m([]),B=m(0),V=m(!1),H=0,U=x(async e=>{let t=++H;try{let n=await S.get(`/personen/karten?q=${encodeURIComponent(e)}`);t===H&&(z.value=n.people,B.value=n.total)}finally{t===H&&(V.value=!1)}},220);n(R,e=>{if(e.trim().length<2){H++,z.value=[],B.value=0,V.value=!1;return}V.value=!0,U(e.trim())});function W(){R.value.trim()&&y.visit(`/personen?q=${encodeURIComponent(R.value.trim())}`)}let G=e=>e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value.replace(/[^\d+]/g,``)}`:null;return(n,m)=>(l(),p(E,{title:`Kolleg:innen finden`},{default:d(()=>[o(`form`,{role:`search`,class:`relative`,onSubmit:g(W,[`prevent`])},[e(r(T),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(o(`input`,{"onUpdate:modelValue":m[0]||=e=>R.value=e,name:`q`,type:`search`,autocomplete:`off`,placeholder:`Name, Funktion, Abteilung …`,class:`h-10 w-full rounded-pill border border-input bg-background pr-9 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),[[_,R.value]]),V.value?(l(),p(r(b),{key:0,class:`absolute top-1/2 right-3 size-4 -translate-y-1/2 animate-spin text-muted-foreground`})):h(``,!0)],32),z.value.length?(l(),s(`div`,D,[(l(!0),s(u,null,c(z.value,n=>(l(),s(`article`,{key:n.id,class:`overflow-hidden rounded-lg border border-l-4 border-l-brand bg-card shadow-xs`},[e(r(v),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-3 hover:bg-accent/40`},{default:d(()=>[n.avatar_url?(l(),s(`img`,{key:0,src:n.avatar_url,alt:n.name,class:`size-14 shrink-0 rounded-lg object-cover`},null,8,O)):(l(),s(`span`,{key:1,class:a([`grid size-14 shrink-0 place-items-center rounded-lg text-lg font-semibold`,r(C)(n.id).soft])},f(n.initials),3)),o(`span`,k,[o(`span`,A,f(n.name),1),n.subtitle?(l(),s(`span`,j,f(n.subtitle),1)):h(``,!0)])]),_:2},1032,[`href`]),n.fields.length?(l(),s(`dl`,M,[(l(!0),s(u,null,c(n.fields,e=>(l(),s(`div`,{key:e.key,class:`py-2`},[o(`dt`,N,f(e.label),1),o(`dd`,P,[G(e)?(l(),s(`a`,{key:0,href:G(e),class:`text-brand-text hover:underline`},f(e.value),9,F)):(l(),s(u,{key:1},[t(f(e.value),1)],64))])]))),128))])):h(``,!0)]))),128))])):R.value.trim().length>=2&&!V.value?(l(),s(`p`,I,`Niemand gefunden für „`+f(R.value.trim())+`“.`,1)):h(``,!0),e(r(v),{href:R.value.trim().length>=2?`/personen?q=${encodeURIComponent(R.value.trim())}`:`/personen`,class:`mt-4 flex items-center justify-between text-[13px] text-muted-foreground hover:text-foreground`},{default:d(()=>[R.value.trim().length>=2&&B.value>z.value.length?(l(),s(u,{key:0},[t(`Alle `+f(B.value.toLocaleString(`de-DE`))+` Treffer anzeigen`,1)],64)):(l(),s(u,{key:1},[t(f(L.count===1?`1 Person`:`${L.count.toLocaleString(`de-DE`)} Personen`)+` im Verzeichnis`,1)],64)),e(r(w),{class:`size-4`})]),_:1},8,[`href`])]),_:1}))}};export{L as default};
|
||||
import{D as e,E as t,Ht as n,On as r,Yt as i,Zn as a,_ as o,b as s,bt as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as g,x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as v,s as y}from"./dist--2OKCVzt.js";import{t as b}from"./loader-circle-Wr6tQn-J.js";import{p as x}from"./dist-CZxP9TJf.js";import{H as S,N as C,tn as w,vt as T,w as E}from"./app-ljw5ZzEq.js";var D={key:0,class:`mt-4 grid gap-3`},O=[`src`,`alt`],k={class:`min-w-0`},A={class:`block font-semibold leading-tight`},j={key:0,class:`mt-0.5 block text-xs text-muted-foreground`},M={key:0,class:`divide-y border-t px-3 text-[13px]`},N={class:`text-[10px] font-semibold tracking-wider text-muted-foreground uppercase`},P={class:`mt-0.5 break-words`},F=[`href`],I={key:1,class:`mt-4 text-[13px] text-muted-foreground`},L={__name:`PeopleSearch`,props:{count:{type:Number,required:!0}},setup(L){let R=m(``),z=m([]),B=m(0),V=m(!1),H=0,U=x(async e=>{let t=++H;try{let n=await S.get(`/personen/karten?q=${encodeURIComponent(e)}`);t===H&&(z.value=n.people,B.value=n.total)}finally{t===H&&(V.value=!1)}},220);n(R,e=>{if(e.trim().length<2){H++,z.value=[],B.value=0,V.value=!1;return}V.value=!0,U(e.trim())});function W(){R.value.trim()&&y.visit(`/personen?q=${encodeURIComponent(R.value.trim())}`)}let G=e=>e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value.replace(/[^\d+]/g,``)}`:null;return(n,m)=>(l(),p(E,{title:`Kolleg:innen finden`},{default:d(()=>[o(`form`,{role:`search`,class:`relative`,onSubmit:g(W,[`prevent`])},[e(r(T),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(o(`input`,{"onUpdate:modelValue":m[0]||=e=>R.value=e,name:`q`,type:`search`,autocomplete:`off`,placeholder:`Name, Funktion, Abteilung …`,class:`h-10 w-full rounded-pill border border-input bg-background pr-9 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),[[_,R.value]]),V.value?(l(),p(r(b),{key:0,class:`absolute top-1/2 right-3 size-4 -translate-y-1/2 animate-spin text-muted-foreground`})):h(``,!0)],32),z.value.length?(l(),s(`div`,D,[(l(!0),s(u,null,c(z.value,n=>(l(),s(`article`,{key:n.id,class:`overflow-hidden rounded-lg border border-l-4 border-l-brand bg-card shadow-xs`},[e(r(v),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-3 hover:bg-accent/40`},{default:d(()=>[n.avatar_url?(l(),s(`img`,{key:0,src:n.avatar_url,alt:n.name,class:`size-14 shrink-0 rounded-lg object-cover`},null,8,O)):(l(),s(`span`,{key:1,class:a([`grid size-14 shrink-0 place-items-center rounded-lg text-lg font-semibold`,r(C)(n.id).soft])},f(n.initials),3)),o(`span`,k,[o(`span`,A,f(n.name),1),n.subtitle?(l(),s(`span`,j,f(n.subtitle),1)):h(``,!0)])]),_:2},1032,[`href`]),n.fields.length?(l(),s(`dl`,M,[(l(!0),s(u,null,c(n.fields,e=>(l(),s(`div`,{key:e.key,class:`py-2`},[o(`dt`,N,f(e.label),1),o(`dd`,P,[G(e)?(l(),s(`a`,{key:0,href:G(e),class:`text-brand-text hover:underline`},f(e.value),9,F)):(l(),s(u,{key:1},[t(f(e.value),1)],64))])]))),128))])):h(``,!0)]))),128))])):R.value.trim().length>=2&&!V.value?(l(),s(`p`,I,`Niemand gefunden für „`+f(R.value.trim())+`“.`,1)):h(``,!0),e(r(v),{href:R.value.trim().length>=2?`/personen?q=${encodeURIComponent(R.value.trim())}`:`/personen`,class:`mt-4 flex items-center justify-between text-[13px] text-muted-foreground hover:text-foreground`},{default:d(()=>[R.value.trim().length>=2&&B.value>z.value.length?(l(),s(u,{key:0},[t(`Alle `+f(B.value.toLocaleString(`de-DE`))+` Treffer anzeigen`,1)],64)):(l(),s(u,{key:1},[t(f(L.count===1?`1 Person`:`${L.count.toLocaleString(`de-DE`)} Personen`)+` im Verzeichnis`,1)],64)),e(r(w),{class:`size-4`})]),_:1},8,[`href`])]),_:1}))}};export{L as default};
|
||||
|
|
@ -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,s as f}from"./dist--2OKCVzt.js";import{t as p}from"./loader-circle-Wr6tQn-J.js";import{n as m}from"./lib-Be7KNAML.js";import{Qt as h,b as g,m as _,w as v,x as y}from"./app-BAVpMSkT.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=d({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(),m.success(`Geburtstag gespeichert`)}})}function k(){f.delete(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.day=null,T.month=null,T.defaults(),m.success(`Aus der Geburtstagsliste entfernt`)}})}return(i,d)=>(a(),c(v,{title:`Geburtstag`},{default:o(()=>[r(`form`,{class:`grid gap-4`,onSubmit:u(O,[`prevent`])},[r(`p`,b,[e(n(h),{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(y,{id:`birthday-day`,label:`Tag`,error:n(T).errors.day},{default:o(()=>[e(g,{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(y,{id:`birthday-month`,label:`Monat`,error:n(T).errors.month},{default:o(()=>[e(g,{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};
|
||||
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,s as f}from"./dist--2OKCVzt.js";import{t as p}from"./loader-circle-Wr6tQn-J.js";import{n as m}from"./lib-Be7KNAML.js";import{Qt as h,b as g,m as _,w as v,x as y}from"./app-ljw5ZzEq.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=d({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(),m.success(`Geburtstag gespeichert`)}})}function k(){f.delete(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.day=null,T.month=null,T.defaults(),m.success(`Aus der Geburtstagsliste entfernt`)}})}return(i,d)=>(a(),c(v,{title:`Geburtstag`},{default:o(()=>[r(`form`,{class:`grid gap-4`,onSubmit:u(O,[`prevent`])},[r(`p`,b,[e(n(h),{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(y,{id:`birthday-day`,label:`Tag`,error:n(T).errors.day},{default:o(()=>[e(g,{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(y,{id:`birthday-month`,label:`Monat`,error:n(T).errors.month},{default:o(()=>[e(g,{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};
|
||||
|
|
@ -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{i as o}from"./dist--2OKCVzt.js";import{ft as s}from"./app-BAVpMSkT.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};
|
||||
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{i as o}from"./dist--2OKCVzt.js";import{ft as s}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -1 +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{s as o}from"./dist--2OKCVzt.js";import{f as s,vt as c}from"./app-BAVpMSkT.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(c),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(t(s),{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};
|
||||
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{s as o}from"./dist--2OKCVzt.js";import{f as s,vt as c}from"./app-ljw5ZzEq.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(c),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(t(s),{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};
|
||||
|
|
@ -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{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./chevron-left-DSEhAEgi.js";import{i as g,n as _}from"./dist-DtZOZ5EL.js";import{Jt as v,k as y}from"./app-BAVpMSkT.js";var b={class:`@container rounded-lg border bg-card`},x={class:`flex items-center justify-between px-5 pt-4 pb-3 @max-md:px-4`},S={key:0,class:`flex gap-1.5`},C=[`disabled`],w=[`disabled`],T={class:`text-xs leading-tight font-medium break-words hyphens-auto`},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<e.scrollWidth-4)}function j(e){D.value?.scrollBy({left:e*D.value.clientWidth*.8,behavior:`smooth`})}return a(A),g(D,A),_(D,`scroll`,A,{passive:!0}),(a,d)=>(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(h),{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(v),{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] @max-md:grid @max-md:grid-cols-3 @max-md:gap-2 @max-md:overflow-visible @max-md:px-4 @max-md:pb-4 [&::-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 @max-md:w-auto @max-md:gap-2 @max-md:px-1.5 @max-md:py-3`},{default:c(()=>[e(y,{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};
|
||||
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{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./chevron-left-DSEhAEgi.js";import{i as g,n as _}from"./dist-DtZOZ5EL.js";import{Jt as v,k as y}from"./app-ljw5ZzEq.js";var b={class:`@container rounded-lg border bg-card`},x={class:`flex items-center justify-between px-5 pt-4 pb-3 @max-md:px-4`},S={key:0,class:`flex gap-1.5`},C=[`disabled`],w=[`disabled`],T={class:`text-xs leading-tight font-medium break-words hyphens-auto`},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<e.scrollWidth-4)}function j(e){D.value?.scrollBy({left:e*D.value.clientWidth*.8,behavior:`smooth`})}return a(A),g(D,A),_(D,`scroll`,A,{passive:!0}),(a,d)=>(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(h),{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(v),{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] @max-md:grid @max-md:grid-cols-3 @max-md:gap-2 @max-md:overflow-visible @max-md:px-4 @max-md:pb-4 [&::-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 @max-md:w-auto @max-md:gap-2 @max-md:px-1.5 @max-md:py-3`},{default:c(()=>[e(y,{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};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,mt as a,tr as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{bt as c}from"./app-BAVpMSkT.js";var l={class:`relative overflow-hidden rounded-lg border bg-card p-5`},u={key:0,class:`text-xs font-semibold tracking-wide text-brand-text uppercase`},d={class:`relative mt-2`},f={class:`text-[15px] leading-relaxed text-pretty`},p={key:0,class:`mt-2 text-sm font-semibold`},m={key:1,class:`mt-3 border-t pt-2 text-xs text-muted-foreground`},h=[`href`],g={__name:`Quote`,props:{title:{type:String,default:``},text:{type:String,required:!0},source:{type:String,default:``},note:{type:String,default:``},link:{type:Object,default:null}},setup(g){return(_,v)=>(a(),i(`section`,l,[e(n(c),{class:`absolute -top-1 -right-1 size-20 rotate-180 text-brand/10`,"aria-hidden":`true`}),g.title?(a(),i(`p`,u,o(g.title),1)):s(``,!0),r(`blockquote`,d,[r(`p`,f,`„`+o(g.text)+`“`,1),g.source?(a(),i(`footer`,p,o(g.source),1)):s(``,!0)]),g.note||g.link?(a(),i(`p`,m,[t(o(g.note)+` `,1),g.link?(a(),i(`a`,{key:0,href:g.link.url,target:`_blank`,rel:`noopener`,class:`text-brand-text hover:underline`},o(g.link.label),9,h)):s(``,!0)])):s(``,!0)]))}};export{g as default};
|
||||
import{D as e,E as t,On as n,_ as r,b as i,mt as a,tr as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{bt as c}from"./app-ljw5ZzEq.js";var l={class:`relative overflow-hidden rounded-lg border bg-card p-5`},u={key:0,class:`text-xs font-semibold tracking-wide text-brand-text uppercase`},d={class:`relative mt-2`},f={class:`text-[15px] leading-relaxed text-pretty`},p={key:0,class:`mt-2 text-sm font-semibold`},m={key:1,class:`mt-3 border-t pt-2 text-xs text-muted-foreground`},h=[`href`],g={__name:`Quote`,props:{title:{type:String,default:``},text:{type:String,required:!0},source:{type:String,default:``},note:{type:String,default:``},link:{type:Object,default:null}},setup(g){return(_,v)=>(a(),i(`section`,l,[e(n(c),{class:`absolute -top-1 -right-1 size-20 rotate-180 text-brand/10`,"aria-hidden":`true`}),g.title?(a(),i(`p`,u,o(g.title),1)):s(``,!0),r(`blockquote`,d,[r(`p`,f,`„`+o(g.text)+`“`,1),g.source?(a(),i(`footer`,p,o(g.source),1)):s(``,!0)]),g.note||g.link?(a(),i(`p`,m,[t(o(g.note)+` `,1),g.link?(a(),i(`a`,{key:0,href:g.link.url,target:`_blank`,rel:`noopener`,class:`text-brand-text hover:underline`},o(g.link.label),9,h)):s(``,!0)])):s(``,!0)]))}};export{g as default};
|
||||
|
|
@ -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{a as l}from"./dist--2OKCVzt.js";import{t as u}from"./loader-circle-Wr6tQn-J.js";import{f as d,m as f,x as p}from"./app-BAVpMSkT.js";import{t as m}from"./GuestLayout-Ccy6gSko.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(p,{id:`email`,label:`E-Mail-Adresse`,error:n(_).errors.email},{default:a(()=>[e(n(d),{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(p,{id:`password`,label:`Neues Passwort`,error:n(_).errors.password},{default:a(()=>[e(n(d),{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(p,{id:`password_confirmation`,label:`Passwort wiederholen`},{default:a(()=>[e(n(d),{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};
|
||||
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{a as l}from"./dist--2OKCVzt.js";import{t as u}from"./loader-circle-Wr6tQn-J.js";import{f as d,m as f,x as p}from"./app-ljw5ZzEq.js";import{t as m}from"./GuestLayout-Zom_9WY0.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(p,{id:`email`,label:`E-Mail-Adresse`,error:n(_).errors.email},{default:a(()=>[e(n(d),{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(p,{id:`password`,label:`Neues Passwort`,error:n(_).errors.password},{default:a(()=>[e(n(d),{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(p,{id:`password_confirmation`,label:`Passwort wiederholen`},{default:a(()=>[e(n(d),{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};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,Ht as n,On 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,vn as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as g,o as _,s as v}from"./dist--2OKCVzt.js";import{t as y}from"./calendar-check-Bic6Qg9i.js";import{t as b}from"./calendar-clock-DpH3ndNA.js";import{n as x}from"./lib-Be7KNAML.js";import{C as S,E as C,T as w,m as T}from"./app-BAVpMSkT.js";import{t as E}from"./colors-RDOJqd57.js";import{n as D}from"./format-20VMi8w8.js";var O={key:0,class:`grid gap-8`},k={class:`font-normal text-muted-foreground`},A={class:`divide-y overflow-hidden rounded-lg border bg-card`},j={class:`min-w-0`},M={class:`mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs text-muted-foreground`},N={key:0},P={key:1},F={key:2},I={key:0,class:`flex items-center gap-2`},L={key:1,class:`rounded-lg border bg-card`},R={__name:`Reviews`,props:{entries:{type:Array,required:!0},intervals:{type:Object,required:!0},leadDays:{type:Number,required:!0}},setup(R){let z=R,B=_();n(()=>B.props.flash.status,e=>e&&x.success(e),{immediate:!0});let V=c(()=>[{key:`overdue`,title:`Überfällig`,tone:`text-red-700 dark:text-red-400`,dot:`bg-red-500`},{key:`due`,title:`Fällig in den nächsten ${z.leadDays} Tagen`,tone:`text-amber-700 dark:text-amber-400`,dot:`bg-amber-500`},{key:`planned`,title:`Geplant`,tone:`text-muted-foreground`,dot:`bg-muted-foreground/40`}].map(e=>({...e,entries:z.entries.filter(t=>t.review.state===e.key)})).filter(e=>e.entries.length)),H=m(null);function U(e){v.post(`/qm/eintraege/${e.id}/geprueft`,{},{preserveScroll:!0,onFinish:()=>H.value=null})}let W=new Intl.DateTimeFormat(`de-DE`,{dateStyle:`medium`});return(n,c)=>(l(),p(C,{title:`QM-Prüfungen`},{default:d(()=>[e(w,{title:`Prüfungen`,description:`Wiedervorlage der QM-Dokumente: Was steht wann zur Prüfung an?`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}]}),V.value.length?(l(),o(`div`,O,[(l(!0),o(u,null,s(V.value,n=>(l(),o(`section`,{key:n.key},[a(`h2`,{class:i([`mb-3 flex items-center gap-2 text-sm font-semibold`,n.tone])},[a(`span`,{class:i([`size-2 rounded-full`,n.dot])},null,2),t(` `+f(n.title)+` `,1),a(`span`,k,`(`+f(n.entries.length)+`)`,1)],2),a(`ul`,A,[(l(!0),o(u,null,s(n.entries,s=>(l(),o(`li`,{key:s.id,class:`grid gap-x-4 gap-y-2 px-4 py-3 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center`},[a(`div`,j,[e(r(g),{href:s.open_kind===`view`?s.open_url:s.folder.url,class:`font-medium hover:underline`},{default:d(()=>[t(f(s.title),1)]),_:2},1032,[`href`]),a(`p`,M,[e(r(g),{href:s.folder.url,class:`inline-flex items-center gap-1.5 hover:underline`},{default:d(()=>[a(`span`,{class:i([`size-2 rounded-sm`,r(E)(s.folder.color).dot])},null,2),t(f(s.folder.path),1)]),_:2},1032,[`href`]),a(`span`,{class:i([`inline-flex items-center gap-1 font-medium`,n.tone])},[e(r(b),{class:`size-3`}),t(` `+f(r(D)(s.review.due_at)),1)],2),s.review.interval_months?(l(),o(`span`,N,f(R.intervals[s.review.interval_months]),1)):h(``,!0),s.review.responsible?(l(),o(`span`,P,`Verantwortlich: `+f(s.review.responsible.name),1)):h(``,!0),s.review.reviewed_at?(l(),o(`span`,F,`Zuletzt geprüft `+f(r(W).format(new Date(s.review.reviewed_at)))+f(s.reviewer?` von ${s.reviewer}`:``),1)):h(``,!0)])]),s.can_complete?(l(),o(`div`,I,[H.value===s.id?(l(),o(u,{key:0},[c[3]||=a(`span`,{class:`text-[13px] text-muted-foreground`},`Inhalt geprüft und aktuell?`,-1),e(r(T),{size:`sm`,variant:`ghost`,onClick:c[0]||=e=>H.value=null},{default:d(()=>[...c[1]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(T),{size:`sm`,onClick:e=>U(s)},{default:d(()=>[e(r(y)),c[2]||=t(` Ja, geprüft`,-1)]),_:1},8,[`onClick`])],64)):(l(),p(r(T),{key:1,size:`sm`,variant:`outline`,onClick:e=>H.value=s.id},{default:d(()=>[e(r(y)),c[4]||=t(` Als geprüft vermerken`,-1)]),_:1},8,[`onClick`]))])):h(``,!0)]))),128))])]))),128))])):(l(),o(`div`,L,[e(S,{icon:r(y),title:`Keine Prüftermine`,text:`Termine setzen Sie beim Bearbeiten eines Dokuments unter „Prüfung und Kenntnisnahme“.`},null,8,[`icon`])]))]),_:1}))}};export{R as default};
|
||||
import{D as e,E as t,Ht as n,On 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,vn as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as g,o as _,s as v}from"./dist--2OKCVzt.js";import{t as y}from"./calendar-check-Bic6Qg9i.js";import{t as b}from"./calendar-clock-DpH3ndNA.js";import{n as x}from"./lib-Be7KNAML.js";import{C as S,E as C,T as w,m as T}from"./app-ljw5ZzEq.js";import{t as E}from"./colors-RDOJqd57.js";import{n as D}from"./format-20VMi8w8.js";var O={key:0,class:`grid gap-8`},k={class:`font-normal text-muted-foreground`},A={class:`divide-y overflow-hidden rounded-lg border bg-card`},j={class:`min-w-0`},M={class:`mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs text-muted-foreground`},N={key:0},P={key:1},F={key:2},I={key:0,class:`flex items-center gap-2`},L={key:1,class:`rounded-lg border bg-card`},R={__name:`Reviews`,props:{entries:{type:Array,required:!0},intervals:{type:Object,required:!0},leadDays:{type:Number,required:!0}},setup(R){let z=R,B=_();n(()=>B.props.flash.status,e=>e&&x.success(e),{immediate:!0});let V=c(()=>[{key:`overdue`,title:`Überfällig`,tone:`text-red-700 dark:text-red-400`,dot:`bg-red-500`},{key:`due`,title:`Fällig in den nächsten ${z.leadDays} Tagen`,tone:`text-amber-700 dark:text-amber-400`,dot:`bg-amber-500`},{key:`planned`,title:`Geplant`,tone:`text-muted-foreground`,dot:`bg-muted-foreground/40`}].map(e=>({...e,entries:z.entries.filter(t=>t.review.state===e.key)})).filter(e=>e.entries.length)),H=m(null);function U(e){v.post(`/qm/eintraege/${e.id}/geprueft`,{},{preserveScroll:!0,onFinish:()=>H.value=null})}let W=new Intl.DateTimeFormat(`de-DE`,{dateStyle:`medium`});return(n,c)=>(l(),p(C,{title:`QM-Prüfungen`},{default:d(()=>[e(w,{title:`Prüfungen`,description:`Wiedervorlage der QM-Dokumente: Was steht wann zur Prüfung an?`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}]}),V.value.length?(l(),o(`div`,O,[(l(!0),o(u,null,s(V.value,n=>(l(),o(`section`,{key:n.key},[a(`h2`,{class:i([`mb-3 flex items-center gap-2 text-sm font-semibold`,n.tone])},[a(`span`,{class:i([`size-2 rounded-full`,n.dot])},null,2),t(` `+f(n.title)+` `,1),a(`span`,k,`(`+f(n.entries.length)+`)`,1)],2),a(`ul`,A,[(l(!0),o(u,null,s(n.entries,s=>(l(),o(`li`,{key:s.id,class:`grid gap-x-4 gap-y-2 px-4 py-3 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center`},[a(`div`,j,[e(r(g),{href:s.open_kind===`view`?s.open_url:s.folder.url,class:`font-medium hover:underline`},{default:d(()=>[t(f(s.title),1)]),_:2},1032,[`href`]),a(`p`,M,[e(r(g),{href:s.folder.url,class:`inline-flex items-center gap-1.5 hover:underline`},{default:d(()=>[a(`span`,{class:i([`size-2 rounded-sm`,r(E)(s.folder.color).dot])},null,2),t(f(s.folder.path),1)]),_:2},1032,[`href`]),a(`span`,{class:i([`inline-flex items-center gap-1 font-medium`,n.tone])},[e(r(b),{class:`size-3`}),t(` `+f(r(D)(s.review.due_at)),1)],2),s.review.interval_months?(l(),o(`span`,N,f(R.intervals[s.review.interval_months]),1)):h(``,!0),s.review.responsible?(l(),o(`span`,P,`Verantwortlich: `+f(s.review.responsible.name),1)):h(``,!0),s.review.reviewed_at?(l(),o(`span`,F,`Zuletzt geprüft `+f(r(W).format(new Date(s.review.reviewed_at)))+f(s.reviewer?` von ${s.reviewer}`:``),1)):h(``,!0)])]),s.can_complete?(l(),o(`div`,I,[H.value===s.id?(l(),o(u,{key:0},[c[3]||=a(`span`,{class:`text-[13px] text-muted-foreground`},`Inhalt geprüft und aktuell?`,-1),e(r(T),{size:`sm`,variant:`ghost`,onClick:c[0]||=e=>H.value=null},{default:d(()=>[...c[1]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(T),{size:`sm`,onClick:e=>U(s)},{default:d(()=>[e(r(y)),c[2]||=t(` Ja, geprüft`,-1)]),_:1},8,[`onClick`])],64)):(l(),p(r(T),{key:1,size:`sm`,variant:`outline`,onClick:e=>H.value=s.id},{default:d(()=>[e(r(y)),c[4]||=t(` Als geprüft vermerken`,-1)]),_:1},8,[`onClick`]))])):h(``,!0)]))),128))])]))),128))])):(l(),o(`div`,L,[e(S,{icon:r(y),title:`Keine Prüftermine`,text:`Termine setzen Sie beim Bearbeiten eines Dokuments unter „Prüfung und Kenntnisnahme“.`},null,8,[`icon`])]))]),_:1}))}};export{R as default};
|
||||
|
|
@ -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{E as s,en as c,f as l,m as u,w as d}from"./app-BAVpMSkT.js";import{t as f}from"./PageContent-CsdnNsNe.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(s,{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(d,{title:`Bedienelemente`,"action-label":`Alle anzeigen`,"action-href":`#`},{default:a(()=>[r(`div`,g,[e(n(l),{placeholder:`Eingabefeld`}),r(`div`,_,[e(n(u),null,{default:a(()=>[...b[2]||=[t(`Primär`,-1)]]),_:1}),e(n(u),{variant:`outline`},{default:a(()=>[...b[3]||=[t(`Umrandet`,-1)]]),_:1}),e(n(u),{variant:`ghost`},{default:a(()=>[e(n(c)),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};
|
||||
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{E as s,en as c,f as l,m as u,w as d}from"./app-ljw5ZzEq.js";import{t as f}from"./PageContent-DHbh3vNt.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(s,{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(d,{title:`Bedienelemente`,"action-label":`Alle anzeigen`,"action-href":`#`},{default:a(()=>[r(`div`,g,[e(n(l),{placeholder:`Eingabefeld`}),r(`div`,_,[e(n(u),null,{default:a(()=>[...b[2]||=[t(`Primär`,-1)]]),_:1}),e(n(u),{variant:`outline`},{default:a(()=>[...b[3]||=[t(`Umrandet`,-1)]]),_:1}),e(n(u),{variant:`ghost`},{default:a(()=>[e(n(c)),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};
|
||||
|
|
@ -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,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./createLucideIcon-VlaMqNX_.js";import{t as g}from"./external-link-Ddmamed9.js";import{t as _}from"./search-x-Bfzq4V3S.js";import{C as v,E as y,Gt as b,O as x,T as S}from"./app-BAVpMSkT.js";import{t as C}from"./colors-RDOJqd57.js";import{n as w}from"./format-20VMi8w8.js";import{t as T}from"./QmSearchBox-CudzU-Jp.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(y,{title:`Suche: ${h.query}`},{default:l(()=>[e(S,{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(x,{key:0,extension:o.extension},null,8,[`extension`])):(s(),a(`span`,O,[o.type===`form`?(s(),d(n(b),{key:0,class:`size-5`})):(s(),d(n(g),{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(w)(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(C)(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(v,{icon:n(_),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};
|
||||
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{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./createLucideIcon-VlaMqNX_.js";import{t as g}from"./external-link-Ddmamed9.js";import{t as _}from"./search-x-Bfzq4V3S.js";import{C as v,E as y,Gt as b,O as x,T as S}from"./app-ljw5ZzEq.js";import{t as C}from"./colors-RDOJqd57.js";import{n as w}from"./format-20VMi8w8.js";import{t as T}from"./QmSearchBox-C5ubSqJ1.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(y,{title:`Suche: ${h.query}`},{default:l(()=>[e(S,{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(x,{key:0,extension:o.extension},null,8,[`extension`])):(s(),a(`span`,O,[o.type===`form`?(s(),d(n(b),{key:0,class:`size-5`})):(s(),d(n(g),{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(w)(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(C)(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(v,{icon:n(_),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};
|
||||
|
|
@ -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{i as u}from"./dist--2OKCVzt.js";import{t as d}from"./arrow-left-DROE4wuA.js";import{t as f}from"./calendar-clock-DpH3ndNA.js";import{E as p,F as m}from"./app-BAVpMSkT.js";import{t as h}from"./FormRenderer-Bm3es5-d.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(p,{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(d),{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(f),{class:`size-4`}),t(` Einsendeschluss: `+s(n(m)(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};
|
||||
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{i as u}from"./dist--2OKCVzt.js";import{t as d}from"./arrow-left-DROE4wuA.js";import{t as f}from"./calendar-clock-DpH3ndNA.js";import{E as p,F as m}from"./app-ljw5ZzEq.js";import{t as h}from"./FormRenderer-BSsckrsz.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(p,{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(d),{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(f),{class:`size-4`}),t(` Einsendeschluss: `+s(n(m)(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};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -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{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./calendar-clock-DpH3ndNA.js";import{t as g}from"./pencil-line-5xb0u6Cg.js";import{E as _,F as v,Jt as y,m as b}from"./app-BAVpMSkT.js";import{t as x}from"./PageContent-CsdnNsNe.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(y),{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(v)(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(g)),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(h),{key:0,class:`mt-0.5 size-4 shrink-0 text-brand-text`})):(c(),f(n(g),{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};
|
||||
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{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./calendar-clock-DpH3ndNA.js";import{t as g}from"./pencil-line-5xb0u6Cg.js";import{E as _,F as v,Jt as y,m as b}from"./app-ljw5ZzEq.js";import{t as x}from"./PageContent-DHbh3vNt.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(y),{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(v)(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(g)),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(h),{key:0,class:`mt-0.5 size-4 shrink-0 text-brand-text`})):(c(),f(n(g),{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};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,Ht as n,On as r,_ as i,b as a,mt as o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d,o as f}from"./dist--2OKCVzt.js";import{t as p}from"./createLucideIcon-VlaMqNX_.js";import{t as m}from"./arrow-left-DROE4wuA.js";import{t as h}from"./pencil-line-5xb0u6Cg.js";import{n as g}from"./lib-Be7KNAML.js";import{Dt as _,E as v,I as y,Wt as b,lt as x,m as S,w as C}from"./app-BAVpMSkT.js";import{t as w}from"./EventDateBlock-DjXcMauQ.js";var T=p({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`}]]}),E={class:`mx-auto max-w-4xl`},D={class:`mb-6 flex items-center justify-between gap-3`},O={class:`flex items-start gap-4`},k={class:`pt-1 text-2xl leading-tight font-semibold tracking-tight sm:text-3xl`},A=[`src`,`alt`],j={class:`mt-6 grid gap-6 lg:grid-cols-3`},M=[`innerHTML`],N={key:1,class:`text-sm text-muted-foreground`},P={class:`grid gap-4 text-sm`},F={class:`flex gap-3`},I={key:0,class:`flex gap-3`},L={key:1,class:`flex gap-3`},R={class:`min-w-0`},z={class:`truncate`},B=[`href`],V=[`href`],H={__name:`Show`,props:{event:{type:Object,required:!0},editUrl:{type:String,default:null}},setup(p){let H=f();return n(()=>H.props.flash.status,e=>e&&g.success(e),{immediate:!0}),(n,f)=>(o(),l(v,{title:p.event.title},{default:s(()=>[i(`div`,E,[i(`div`,D,[e(r(d),{href:`/termine`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:s(()=>[e(r(m),{class:`size-4`}),f[0]||=t(` Alle Termine `,-1)]),_:1}),p.editUrl?(o(),l(r(S),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:s(()=>[e(r(d),{href:p.editUrl},{default:s(()=>[e(r(h)),f[1]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):u(``,!0)]),i(`div`,O,[e(w,{date:p.event.starts_at,class:`w-16 py-2`},null,8,[`date`]),i(`h1`,k,c(p.event.title),1)]),p.event.image_url?(o(),a(`img`,{key:0,src:p.event.image_url,alt:p.event.title,class:`mt-6 aspect-video w-full rounded-lg object-cover`},null,8,A)):u(``,!0),i(`div`,j,[e(C,{title:`Beschreibung`,class:`lg:col-span-2`},{default:s(()=>[p.event.description_html?(o(),a(`div`,{key:0,class:`prose prose-neutral max-w-none text-[15px]`,innerHTML:p.event.description_html},null,8,M)):(o(),a(`p`,N,`Keine weiteren Informationen.`))]),_:1}),e(C,{title:`Details`,class:`content-start`},{default:s(()=>[i(`dl`,P,[i(`div`,F,[e(r(b),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),i(`div`,null,[f[2]||=i(`dt`,{class:`text-xs text-muted-foreground`},`Wann`,-1),i(`dd`,null,c(r(y)(p.event)),1)])]),p.event.location?(o(),a(`div`,I,[e(r(_),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),i(`div`,null,[f[3]||=i(`dt`,{class:`text-xs text-muted-foreground`},`Ort`,-1),i(`dd`,null,c(p.event.location),1)])])):u(``,!0),p.event.online_url?(o(),a(`div`,L,[e(r(x),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),i(`div`,R,[f[4]||=i(`dt`,{class:`text-xs text-muted-foreground`},`Online`,-1),i(`dd`,z,[i(`a`,{href:p.event.online_url,target:`_blank`,rel:`noopener`,class:`text-brand-text hover:underline`},`Zur Teilnahme`,8,B)])])])):u(``,!0)]),e(r(S),{variant:`outline`,class:`mt-5 w-full`,"as-child":``},{default:s(()=>[i(`a`,{href:`/termine/${p.event.id}/kalender.ics`},[e(r(T)),f[5]||=t(` In meinen Kalender`,-1)],8,V)]),_:1})]),_:1})])])]),_:1},8,[`title`]))}};export{H as default};
|
||||
import{D as e,E as t,Ht as n,On as r,_ as i,b as a,mt as o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d,o as f}from"./dist--2OKCVzt.js";import{t as p}from"./createLucideIcon-VlaMqNX_.js";import{t as m}from"./arrow-left-DROE4wuA.js";import{t as h}from"./pencil-line-5xb0u6Cg.js";import{n as g}from"./lib-Be7KNAML.js";import{Dt as _,E as v,I as y,Wt as b,lt as x,m as S,w as C}from"./app-ljw5ZzEq.js";import{t as w}from"./EventDateBlock-CCI883zc.js";var T=p({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`}]]}),E={class:`mx-auto max-w-4xl`},D={class:`mb-6 flex items-center justify-between gap-3`},O={class:`flex items-start gap-4`},k={class:`pt-1 text-2xl leading-tight font-semibold tracking-tight sm:text-3xl`},A=[`src`,`alt`],j={class:`mt-6 grid gap-6 lg:grid-cols-3`},M=[`innerHTML`],N={key:1,class:`text-sm text-muted-foreground`},P={class:`grid gap-4 text-sm`},F={class:`flex gap-3`},I={key:0,class:`flex gap-3`},L={key:1,class:`flex gap-3`},R={class:`min-w-0`},z={class:`truncate`},B=[`href`],V=[`href`],H={__name:`Show`,props:{event:{type:Object,required:!0},editUrl:{type:String,default:null}},setup(p){let H=f();return n(()=>H.props.flash.status,e=>e&&g.success(e),{immediate:!0}),(n,f)=>(o(),l(v,{title:p.event.title},{default:s(()=>[i(`div`,E,[i(`div`,D,[e(r(d),{href:`/termine`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:s(()=>[e(r(m),{class:`size-4`}),f[0]||=t(` Alle Termine `,-1)]),_:1}),p.editUrl?(o(),l(r(S),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:s(()=>[e(r(d),{href:p.editUrl},{default:s(()=>[e(r(h)),f[1]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):u(``,!0)]),i(`div`,O,[e(w,{date:p.event.starts_at,class:`w-16 py-2`},null,8,[`date`]),i(`h1`,k,c(p.event.title),1)]),p.event.image_url?(o(),a(`img`,{key:0,src:p.event.image_url,alt:p.event.title,class:`mt-6 aspect-video w-full rounded-lg object-cover`},null,8,A)):u(``,!0),i(`div`,j,[e(C,{title:`Beschreibung`,class:`lg:col-span-2`},{default:s(()=>[p.event.description_html?(o(),a(`div`,{key:0,class:`prose prose-neutral max-w-none text-[15px]`,innerHTML:p.event.description_html},null,8,M)):(o(),a(`p`,N,`Keine weiteren Informationen.`))]),_:1}),e(C,{title:`Details`,class:`content-start`},{default:s(()=>[i(`dl`,P,[i(`div`,F,[e(r(b),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),i(`div`,null,[f[2]||=i(`dt`,{class:`text-xs text-muted-foreground`},`Wann`,-1),i(`dd`,null,c(r(y)(p.event)),1)])]),p.event.location?(o(),a(`div`,I,[e(r(_),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),i(`div`,null,[f[3]||=i(`dt`,{class:`text-xs text-muted-foreground`},`Ort`,-1),i(`dd`,null,c(p.event.location),1)])])):u(``,!0),p.event.online_url?(o(),a(`div`,L,[e(r(x),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),i(`div`,R,[f[4]||=i(`dt`,{class:`text-xs text-muted-foreground`},`Online`,-1),i(`dd`,z,[i(`a`,{href:p.event.online_url,target:`_blank`,rel:`noopener`,class:`text-brand-text hover:underline`},`Zur Teilnahme`,8,B)])])])):u(``,!0)]),e(r(S),{variant:`outline`,class:`mt-5 w-full`,"as-child":``},{default:s(()=>[i(`a`,{href:`/termine/${p.event.id}/kalender.ics`},[e(r(T)),f[5]||=t(` In meinen Kalender`,-1)],8,V)]),_:1})]),_:1})])])]),_:1},8,[`title`]))}};export{H as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,J as n,On as r,_ as i,b as a,g as o,gt as s,mt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as f}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{t as p}from"./component-5v7AiJbe.js";import{t as m}from"./pencil-line-5xb0u6Cg.js";import{t as h}from"./triangle-alert-DyO_Fk2w.js";import{t as g}from"./BlockList-C4oAQFR_.js";var _={key:0,class:`rounded-md border border-dashed border-brand-300 p-3`},v={class:`mb-3 flex flex-wrap items-center gap-2 text-xs`},y={class:`inline-flex items-center gap-1.5 rounded bg-brand-soft px-2 py-0.5 font-medium text-brand-soft-foreground`},b=[`href`],x={key:0,class:`text-sm text-muted-foreground`},S={key:1,class:`flex items-center gap-2 text-sm text-amber-700 dark:text-amber-400`},C={key:2,class:`pointer-events-none`},w={__name:`Snippet`,props:{block:{type:Object,required:!0}},setup(w){let T=w,E=n(`pagebuilder:editing`,o(()=>!1));s(`pagebuilder:list`,g),s(`pagebuilder:editing`,o(()=>!1));let D=o(()=>({blocks:T.block.props?.blocks??[]}));return(n,o)=>r(E)?(c(),a(`div`,_,[i(`div`,v,[i(`span`,y,[e(r(p),{class:`size-3.5`}),t(` Baustein`+l(w.block.props?.name?`: ${w.block.props.name}`:``),1)]),w.block.props?.edit_url?(c(),a(`a`,{key:0,href:w.block.props.edit_url,target:`_blank`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`,onClick:o[0]||=f(()=>{},[`stop`])},[e(r(m),{class:`size-3`}),o[1]||=t(` Baustein bearbeiten`,-1)],8,b)):d(``,!0)]),w.block.data.snippet?w.block.props?.missing?(c(),a(`p`,S,[e(r(h),{class:`size-4`}),o[2]||=t(` Dieser Baustein wurde gelöscht und wird nicht angezeigt.`,-1)])):(c(),a(`div`,C,[e(g,{item:D.value},null,8,[`item`])])):(c(),a(`p`,x,`Bitte rechts einen Baustein auswählen.`))])):D.value.blocks.length?(c(),u(g,{key:1,item:D.value},null,8,[`item`])):d(``,!0)}};export{w as default};
|
||||
import{D as e,E as t,J as n,On as r,_ as i,b as a,g as o,gt as s,mt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as f}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{t as p}from"./component-5v7AiJbe.js";import{t as m}from"./pencil-line-5xb0u6Cg.js";import{t as h}from"./triangle-alert-DyO_Fk2w.js";import{t as g}from"./BlockList-C1d87MfV.js";var _={key:0,class:`rounded-md border border-dashed border-brand-300 p-3`},v={class:`mb-3 flex flex-wrap items-center gap-2 text-xs`},y={class:`inline-flex items-center gap-1.5 rounded bg-brand-soft px-2 py-0.5 font-medium text-brand-soft-foreground`},b=[`href`],x={key:0,class:`text-sm text-muted-foreground`},S={key:1,class:`flex items-center gap-2 text-sm text-amber-700 dark:text-amber-400`},C={key:2,class:`pointer-events-none`},w={__name:`Snippet`,props:{block:{type:Object,required:!0}},setup(w){let T=w,E=n(`pagebuilder:editing`,o(()=>!1));s(`pagebuilder:list`,g),s(`pagebuilder:editing`,o(()=>!1));let D=o(()=>({blocks:T.block.props?.blocks??[]}));return(n,o)=>r(E)?(c(),a(`div`,_,[i(`div`,v,[i(`span`,y,[e(r(p),{class:`size-3.5`}),t(` Baustein`+l(w.block.props?.name?`: ${w.block.props.name}`:``),1)]),w.block.props?.edit_url?(c(),a(`a`,{key:0,href:w.block.props.edit_url,target:`_blank`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`,onClick:o[0]||=f(()=>{},[`stop`])},[e(r(m),{class:`size-3`}),o[1]||=t(` Baustein bearbeiten`,-1)],8,b)):d(``,!0)]),w.block.data.snippet?w.block.props?.missing?(c(),a(`p`,S,[e(r(h),{class:`size-4`}),o[2]||=t(` Dieser Baustein wurde gelöscht und wird nicht angezeigt.`,-1)])):(c(),a(`div`,C,[e(g,{item:D.value},null,8,[`item`])])):(c(),a(`p`,x,`Bitte rechts einen Baustein auswählen.`))])):D.value.blocks.length?(c(),u(g,{key:1,item:D.value},null,8,[`item`])):d(``,!0)}};export{w as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -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{i as f}from"./dist--2OKCVzt.js";import{Ht as p,Jt as m}from"./app-BAVpMSkT.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};
|
||||
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{i as f}from"./dist--2OKCVzt.js";import{Ht as p,Jt as m}from"./app-ljw5ZzEq.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};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,Ht as n,J as r,On as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,vn as f,wt as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{$ as m,et as h,nt as g,tt as _}from"./app-BAVpMSkT.js";var v={__name:`Tabs`,props:{block:{type:Object,required:!0}},setup(v){let y=v,b=r(`pagebuilder:list`),x=f(y.block.items[0]?.id);return n(()=>y.block.items.map(e=>e.id),e=>{e.includes(x.value)||(x.value=e[0])}),(n,r)=>(s(),d(i(g),{modelValue:x.value,"onUpdate:modelValue":r[0]||=e=>x.value=e},{default:l(()=>[e(i(h),{class:`-mb-px flex gap-1 overflow-x-auto border-b`,"aria-label":`Reiter`},{default:l(()=>[(s(!0),a(c,null,o(v.block.items,(e,n)=>(s(),d(i(m),{key:e.id,value:e.id,class:`relative shrink-0 px-4 py-2.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors hover:text-foreground data-[state=active]:text-foreground data-[state=active]:after:absolute data-[state=active]:after:inset-x-2 data-[state=active]:after:bottom-0 data-[state=active]:after:h-[3px] data-[state=active]:after:rounded-t-full data-[state=active]:after:bg-brand`},{default:l(()=>[t(u(e.title||`Tab ${n+1}`),1)]),_:2},1032,[`value`]))),128))]),_:1}),(s(!0),a(c,null,o(v.block.items,e=>(s(),d(i(_),{key:e.id,value:e.id,class:`pt-5 focus-visible:outline-none`},{default:l(()=>[(s(),d(p(i(b)),{item:e},null,8,[`item`]))]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`]))}};export{v as default};
|
||||
import{D as e,E as t,Ht as n,J as r,On as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,vn as f,wt as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{$ as m,et as h,nt as g,tt as _}from"./app-ljw5ZzEq.js";var v={__name:`Tabs`,props:{block:{type:Object,required:!0}},setup(v){let y=v,b=r(`pagebuilder:list`),x=f(y.block.items[0]?.id);return n(()=>y.block.items.map(e=>e.id),e=>{e.includes(x.value)||(x.value=e[0])}),(n,r)=>(s(),d(i(g),{modelValue:x.value,"onUpdate:modelValue":r[0]||=e=>x.value=e},{default:l(()=>[e(i(h),{class:`-mb-px flex gap-1 overflow-x-auto border-b`,"aria-label":`Reiter`},{default:l(()=>[(s(!0),a(c,null,o(v.block.items,(e,n)=>(s(),d(i(m),{key:e.id,value:e.id,class:`relative shrink-0 px-4 py-2.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors hover:text-foreground data-[state=active]:text-foreground data-[state=active]:after:absolute data-[state=active]:after:inset-x-2 data-[state=active]:after:bottom-0 data-[state=active]:after:h-[3px] data-[state=active]:after:rounded-t-full data-[state=active]:after:bg-brand`},{default:l(()=>[t(u(e.title||`Tab ${n+1}`),1)]),_:2},1032,[`value`]))),128))]),_:1}),(s(!0),a(c,null,o(v.block.items,e=>(s(),d(i(_),{key:e.id,value:e.id,class:`pt-5 focus-visible:outline-none`},{default:l(()=>[(s(),d(p(i(b)),{item:e},null,8,[`item`]))]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`]))}};export{v as default};
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-BAVpMSkT.js","assets/Presence-DEjNbTl8.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/createContext-CgVTZeqH.js","assets/useForwardExpose-CxX7fZdu.js","assets/Primitive-Bc3V858a.js","assets/dist--2OKCVzt.js","assets/preload-helper-CwIXHf_L.js","assets/createLucideIcon-VlaMqNX_.js","assets/info-ByKJSon9.js","assets/loader-circle-Wr6tQn-J.js","assets/PopoverTrigger-B7McAoPv.js","assets/circle-check-K9QH5jex.js","assets/triangle-alert-DyO_Fk2w.js","assets/x-DU8daajy.js","assets/Teleport-gLFWhBwt.js","assets/getActiveElement-DWEoD8ZB.js","assets/nullish-DHihWhf5.js","assets/useDirection-DA6i3jxU.js","assets/useForwardPropsEmits-CXqK2gMN.js","assets/dist-CZxP9TJf.js","assets/utils-DOQQTBMN.js","assets/lib-Be7KNAML.js","assets/usePrimitiveElement-CquXUboG.js","assets/DialogTitle-CJ4_uV5l.js","assets/RovingFocusGroup-Cc2A9ECP.js","assets/dist-DtZOZ5EL.js","assets/app-DvoOghq_.css"])))=>i.map(i=>d[i]);
|
||||
import{D as e,J as t,O as n,On as r,b as i,mt as a,vn as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./preload-helper-CwIXHf_L.js";var c=[`innerHTML`],l={__name:`Text`,props:{block:{type:Object,required:!0}},setup(l){let u=t(`pagebuilder:editing`,!1),d=n(()=>s(()=>import(`./app-BAVpMSkT.js`).then(e=>e.v),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]))),f=o(null);function p(e){e.target.closest(`.ProseMirror, [role="toolbar"]`)||f.value?.focus()}return(t,n)=>r(u)?(a(),i(`div`,{key:0,class:`min-h-16 cursor-text pt-3 [&_.tiptap]:min-h-10`,onClick:p},[e(r(d),{ref_key:`editorRef`,ref:f,modelValue:l.block.data.html,"onUpdate:modelValue":n[0]||=e=>l.block.data.html=e,placeholder:`Text eingeben …`},null,8,[`modelValue`])])):(a(),i(`div`,{key:1,class:`prose prose-neutral max-w-none prose-headings:tracking-tight prose-img:rounded-lg`,innerHTML:l.block.data.html},null,8,c))}};export{l as default};
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-ljw5ZzEq.js","assets/Presence-DEjNbTl8.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/createContext-CgVTZeqH.js","assets/useForwardExpose-CxX7fZdu.js","assets/Primitive-Bc3V858a.js","assets/dist--2OKCVzt.js","assets/preload-helper-CwIXHf_L.js","assets/createLucideIcon-VlaMqNX_.js","assets/info-ByKJSon9.js","assets/loader-circle-Wr6tQn-J.js","assets/PopoverTrigger-B7McAoPv.js","assets/circle-check-K9QH5jex.js","assets/triangle-alert-DyO_Fk2w.js","assets/x-DU8daajy.js","assets/Teleport-gLFWhBwt.js","assets/getActiveElement-DWEoD8ZB.js","assets/nullish-DHihWhf5.js","assets/useDirection-DA6i3jxU.js","assets/useForwardPropsEmits-CXqK2gMN.js","assets/dist-CZxP9TJf.js","assets/utils-DOQQTBMN.js","assets/lib-Be7KNAML.js","assets/usePrimitiveElement-CquXUboG.js","assets/DialogTitle-CJ4_uV5l.js","assets/RovingFocusGroup-Cc2A9ECP.js","assets/dist-DtZOZ5EL.js","assets/app-DFRFPbBC.css"])))=>i.map(i=>d[i]);
|
||||
import{D as e,J as t,O as n,On as r,b as i,mt as a,vn as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./preload-helper-CwIXHf_L.js";var c=[`innerHTML`],l={__name:`Text`,props:{block:{type:Object,required:!0}},setup(l){let u=t(`pagebuilder:editing`,!1),d=n(()=>s(()=>import(`./app-ljw5ZzEq.js`).then(e=>e.v),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]))),f=o(null);function p(e){e.target.closest(`.ProseMirror, [role="toolbar"]`)||f.value?.focus()}return(t,n)=>r(u)?(a(),i(`div`,{key:0,class:`min-h-16 cursor-text pt-3 [&_.tiptap]:min-h-10`,onClick:p},[e(r(d),{ref_key:`editorRef`,ref:f,modelValue:l.block.data.html,"onUpdate:modelValue":n[0]||=e=>l.block.data.html=e,placeholder:`Text eingeben …`},null,8,[`modelValue`])])):(a(),i(`div`,{key:1,class:`prose prose-neutral max-w-none prose-headings:tracking-tight prose-img:rounded-lg`,innerHTML:l.block.data.html},null,8,c))}};export{l as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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{w as s}from"./app-BAVpMSkT.js";import{t as c}from"./BirthdayItem-D956hOlz.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(s,{title:`Geburtstage`,"action-label":`Alle`,"action-href":`/geburtstage`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.birthdays,e=>(r(),o(c,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128))])]),_:1}))}};export{u as default};
|
||||
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{w as s}from"./app-ljw5ZzEq.js";import{t as c}from"./BirthdayItem-EzbfSTdi.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(s,{title:`Geburtstage`,"action-label":`Alle`,"action-href":`/geburtstage`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.birthdays,e=>(r(),o(c,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128))])]),_:1}))}};export{u as default};
|
||||
|
|
@ -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{C as s,Zt as c,w as l}from"./app-BAVpMSkT.js";import{t as u}from"./EventListItem-DMke71Km.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(s,{key:1,icon:e(c),title:`Keine anstehenden Termine`,class:`py-6`},null,8,[`icon`]))]),_:1}))}};export{f as default};
|
||||
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{C as s,Zt as c,w as l}from"./app-ljw5ZzEq.js";import{t as u}from"./EventListItem-7bxtEVUT.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(s,{key:1,icon:e(c),title:`Keine anstehenden Termine`,class:`py-6`},null,8,[`icon`]))]),_:1}))}};export{f as default};
|
||||
|
|
@ -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{i as f}from"./dist--2OKCVzt.js";import{Jt as p}from"./app-BAVpMSkT.js";import{t as m}from"./EventListItem-DMke71Km.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};
|
||||
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{i as f}from"./dist--2OKCVzt.js";import{Jt as p}from"./app-ljw5ZzEq.js";import{t as m}from"./EventListItem-7bxtEVUT.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};
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue