Feste Profilfelder in Formularen, Geburtstage, anpassbare Startseite
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m21s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m40s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m34s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 3m8s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 3m6s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 2m43s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 2m47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m1s

- Formulare: Felder fest aus dem Profil (nicht änderbar, Server setzt den
  Profilwert ein), Hinweis bei fehlender Profilangabe
- Geburtstage (optionales Plugin, standardmäßig aus): Tag und Monat freiwillig
  im Profil, Kachel, Liste /geburtstage, Pagebuilder-Block, Glückwunsch am
  eigenen Geburtstag; Sichtbarkeit alle/Abteilung/Standort
- Startseite: Kacheln je Bereich sortieren und ausblenden; eigene Kacheln
  (Bild mit Link, Text, Hinweis) mit Zeitraum und Zielgruppe
- Kern: optionale mitgelieferte Plugins, Startseitenbereich „top“,
  Profilabschnitte für Plugins, Kachel-Bezeichnungen

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 09:51:19 +00:00
parent 435960725d
commit ee8dde93c0
262 changed files with 2385 additions and 692 deletions

View file

@ -11,10 +11,13 @@ Der Self-Updater zeigt diese Abschnitte bei neuen Versionen an.
- Einsendungen landen im Backend und per E-Mail bei festen Empfängern; auf Wunsch eine Kopie an die ausfüllende Person
- Zugriff auf die Ergebnisse je Formular und Rolle – ansehen und exportieren (CSV für Excel) bzw. löschen getrennt vergebbar
- Anonyme Formulare, „nur einmal ausfüllen“, Einsendeschluss, Sichtbarkeit und automatische Löschfrist
- Formularfelder lassen sich fest mit Profilangaben füllen (z. B. Vorname, Personalnummer, Abteilung) – nicht änderbar, beim Absenden gilt immer der Profilwert
- Formulare lassen sich mit dem Pagebuilder in Seiten und unter Neuigkeiten-Beiträgen einbinden
- Ergebnisse als CSV herunterladen – alle oder nur ausgewählte Einsendungen
- WordPress-Import: Beiträge mit Kategorien, Autorinnen und Autoren, Beitragsbildern und Bildern im Text übernehmen, auf Wunsch auch Seiten – wiederholbar, ohne Doppelungen
- E-Mail-Versand im Admin einrichten (SMTP), mit Test-Mail
- Startseite anpassen: Kacheln je Bereich sortieren und ausblenden, eigene Kacheln anlegen – Bild mit Link, Text oder Hinweis, mit Zeitraum und Zielgruppe
- Geburtstage (optional, unter „Plugins“ zu aktivieren): Mitarbeitende tragen freiwillig Tag und Monat im Profil ein; Kachel und Liste der anstehenden Geburtstage, Glückwunsch auf der Startseite am eigenen Geburtstag
## 0.5.0

View file

@ -20,11 +20,11 @@ class CoreWidgets
'location' => $user->location,
'avatar_url' => $user->avatarUrl(256),
],
], mobileSort: 0);
], label: 'Begrüßung mit Profil', mobileSort: 0);
$widgets->add('core.quick-links', 'core::QuickLinks', 'main', sort: 10, props: fn () => [
'links' => app(QuickLinks::class)->all(),
], mobileSort: 40);
], label: 'Schnellzugriffe', mobileSort: 40);
$widgets->add('core.new-colleagues', 'core::NewColleagues', 'main', sort: 90, props: function (User $user) {
$people = User::query()
@ -36,12 +36,12 @@ class CoreWidgets
->get();
return $people->isEmpty() ? null : ['people' => PersonResource::collection($people)->resolve()];
}, mobileSort: 60);
}, label: 'Neue Kolleginnen und Kollegen', mobileSort: 60);
$widgets->add('core.profile-incomplete', 'core::ProfileIncomplete', 'aside', sort: 50, props: fn (User $user) => $user->avatar_path && $user->job_title ? null : [], mobileSort: 70);
$widgets->add('core.profile-incomplete', 'core::ProfileIncomplete', 'aside', sort: 50, props: fn (User $user) => $user->avatar_path && $user->job_title ? null : [], label: 'Hinweis „Profil vervollständigen“', mobileSort: 70);
$widgets->add('core.people-search', 'core::PeopleSearch', 'aside', sort: 60, props: fn () => [
'count' => User::query()->active()->count(),
], mobileSort: 80);
], label: 'Personen finden', mobileSort: 80);
}
}

View file

@ -2,8 +2,11 @@
namespace App\Dashboard;
use App\Models\DashboardTile;
use App\Models\User;
use App\Support\Settings;
use Illuminate\Http\Request;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Log;
use Throwable;
@ -11,6 +14,7 @@ use Throwable;
* Kacheln der Startseite als Registry.
*
* Bereiche (siehe resources/js/pages/Dashboard.vue):
* top – volle Breite über allem (Hinweise, z. B. Geburtstagsgruß)
* hero – groß links oben (z. B. Slider) feed – neben hero
* main – volle Breite der linken Spalte aside – rechte Spalte
*
@ -19,25 +23,27 @@ use Throwable;
*/
class Widgets
{
public const AREAS = ['hero', 'feed', 'main', 'aside'];
public const AREAS = ['top', 'hero', 'feed', 'main', 'aside'];
/** @var array<string, array{component: string, area: string, sort: int, mobileSort: int, props: callable}> */
/** @var array<string, array{component: string, area: string, sort: int, mobileSort: int, props: callable, label: string}> */
private array $widgets = [];
/**
* @param string $component Vue-Komponente, z. B. „core::QuickLinks“ oder „news::Hero“
* @param callable(User, Request): (array<string, mixed>|null) $props
* @param int|null $mobileSort Reihenfolge in der einspaltigen Mobilansicht (Standard: nach Bereich)
* @param string|null $label Name im Admin unter „Startseite“
*/
public function add(string $key, string $component, string $area, int $sort, callable $props, ?int $mobileSort = null): void
public function add(string $key, string $component, string $area, int $sort, callable $props, ?int $mobileSort = null, ?string $label = null): void
{
if (! in_array($area, self::AREAS, true)) {
throw new \InvalidArgumentException("Unbekannter Bereich „{$area}“ für Kachel {$key}.");
}
$mobileSort ??= ['hero' => 10, 'feed' => 20, 'aside' => 30, 'main' => 50][$area] + $sort;
$mobileSort ??= ['top' => -100, 'hero' => 10, 'feed' => 20, 'aside' => 30, 'main' => 50][$area] + $sort;
$this->widgets[$key] = compact('component', 'area', 'sort', 'mobileSort', 'props');
$label ??= $key;
$this->widgets[$key] = compact('component', 'area', 'sort', 'mobileSort', 'props', 'label');
}
public function remove(string $key): void
@ -45,6 +51,71 @@ class Widgets
unset($this->widgets[$key]);
}
/**
* Alle Kacheln eines Bereichs für den Admin: mitgelieferte und eigene,
* in gespeicherter Reihenfolge, mit Sichtbarkeit.
*
* @return list<array{key: string, label: string, area: string, visible: bool, custom: bool}>
*/
public function forAdmin(string $area): array
{
$layout = $this->layout();
return $this->candidates()
->filter(fn (array $w) => $w['area'] === $area)
->map(fn (array $w, string $key) => [
'key' => $key,
'label' => $w['label'],
'area' => $w['area'],
'visible' => $layout[$key]['visible'] ?? true,
'custom' => $w['custom'] ?? false,
])
->values()
->all();
}
/**
* Mitgelieferte Kacheln plus eigene Kacheln, sortiert nach gespeicherter Anordnung.
*
* @return Collection<string, array<string, mixed>>
*/
private function candidates(?User $user = null)
{
$widgets = collect($this->widgets);
try {
$tiles = DashboardTile::query()->when($user, fn ($q) => $q->visibleTo($user))->get();
} catch (Throwable) {
$tiles = collect(); // Tabelle noch nicht angelegt (Aktualisierung läuft)
}
foreach ($tiles as $tile) {
$widgets[$tile->widgetKey()] = [
'component' => 'core::CustomTile',
'area' => array_key_exists($tile->area, DashboardTile::AREAS) ? $tile->area : 'aside',
'sort' => 1000 + $tile->id,
'mobileSort' => ['top' => -50, 'main' => 45, 'aside' => 32][$tile->area] ?? 32,
'props' => fn () => $tile->toWidgetProps(),
'label' => 'Eigene Kachel: '.$tile->name,
'custom' => true,
];
}
$layout = $this->layout();
return $widgets->sortBy(fn (array $w, string $key) => $layout[$key]['sort'] ?? $w['sort']);
}
/**
* Gespeicherte Anordnung: Schlüssel => [sort, visible].
*
* @return array<string, array{sort?: int, visible?: bool}>
*/
private function layout(): array
{
return (array) app(Settings::class)->get('dashboard.layout', []);
}
/**
* @return list<array{key: string, component: string, area: string, mobileSort: int, props: array<string, mixed>}>
*/
@ -52,7 +123,13 @@ class Widgets
{
$result = [];
foreach (collect($this->widgets)->sortBy('sort') as $key => $widget) {
$layout = $this->layout();
foreach ($this->candidates($user) as $key => $widget) {
if (($layout[$key]['visible'] ?? true) === false) {
continue;
}
try {
$props = ($widget['props'])($user, $request);
} catch (Throwable $e) {

View file

@ -0,0 +1,108 @@
<?php
namespace App\Filament\Pages;
use App\Dashboard\Widgets;
use App\Filament\Resources\DashboardTiles\DashboardTileResource;
use App\Support\Settings;
use BackedEnum;
use Filament\Actions\Action;
use Filament\Forms\Components\Hidden;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\Toggle;
use Filament\Notifications\Notification;
use Filament\Pages\Page;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use UnitEnum;
/**
* Anordnung der Startseite: Kacheln je Bereich sortieren und ausblenden –
* mitgelieferte wie eigene.
*/
class DashboardSettings extends Page
{
protected string $view = 'filament.pages.settings-form';
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedHome;
protected static string|UnitEnum|null $navigationGroup = 'Portal';
protected static ?int $navigationSort = 10;
protected static ?string $navigationLabel = 'Startseite';
protected static ?string $title = 'Startseite';
protected static ?string $slug = 'startseite';
private const AREAS = [
'top' => ['Ganz oben (volle Breite)', 'Hinweise und Banner über allem.'],
'hero' => ['Groß links oben', 'Nur die erste sichtbare Kachel wird gezeigt.'],
'feed' => ['Neben dem großen Bereich', ''],
'main' => ['Hauptspalte', ''],
'aside' => ['Seitenleiste (rechts)', ''],
];
/** @var array<string, mixed>|null */
public ?array $data = [];
public static function canAccess(): bool
{
return auth()->user()?->can('appearance.manage') ?? false;
}
public function mount(Widgets $widgets): void
{
$this->form->fill(collect(self::AREAS)->mapWithKeys(fn ($info, $area) => [$area => $widgets->forAdmin($area)])->all());
}
public function form(Schema $schema): Schema
{
return $schema->statePath('data')->components(
collect(self::AREAS)->map(fn ($info, $area) => Section::make($info[0])
->description($info[1] ?: null)
->visible(fn () => app(Widgets::class)->forAdmin($area) !== [])
->schema([
Repeater::make($area)
->hiddenLabel()
->reorderable()
->reorderableWithDragAndDrop()
->addable(false)
->deletable(false)
->itemLabel(fn (array $state) => $state['label'] ?? $state['key'])
->schema([
Hidden::make('key'),
Hidden::make('label'),
Toggle::make('visible')->label('Anzeigen'),
]),
]))->values()->all()
);
}
public function save(Settings $settings): void
{
$layout = [];
foreach (array_keys(self::AREAS) as $area) {
foreach (array_values($this->data[$area] ?? []) as $index => $item) {
$layout[$item['key']] = ['sort' => $index * 10, 'visible' => (bool) ($item['visible'] ?? true)];
}
}
$settings->set('dashboard.layout', $layout);
Notification::make()->success()->title('Startseite gespeichert')->send();
}
protected function getHeaderActions(): array
{
return [
Action::make('tiles')->label('Eigene Kacheln')->icon(Heroicon::OutlinedRectangleGroup)->color('gray')
->url(fn () => DashboardTileResource::getUrl()),
Action::make('preview')->label('Startseite ansehen')->icon(Heroicon::OutlinedEye)->color('gray')
->url('/')->openUrlInNewTab(),
];
}
}

View file

@ -0,0 +1,104 @@
<?php
namespace App\Filament\Resources\DashboardTiles;
use App\Filament\Components\AudienceSection;
use App\Filament\Resources\DashboardTiles\Pages\ManageDashboardTiles;
use App\Models\DashboardTile;
use BackedEnum;
use Filament\Actions\DeleteAction;
use Filament\Actions\EditAction;
use Filament\Forms\Components\DateTimePicker;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Resources\Resource;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\ImageColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
use UnitEnum;
/**
* Eigene Kacheln der Startseite. Reihenfolge und Ein-/Ausblenden unter „Startseite“.
*/
class DashboardTileResource extends Resource
{
protected static ?string $model = DashboardTile::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleGroup;
protected static string|UnitEnum|null $navigationGroup = 'Portal';
protected static ?int $navigationSort = 11;
protected static ?string $modelLabel = 'Eigene Kachel';
protected static ?string $pluralModelLabel = 'Eigene Kacheln';
protected static ?string $slug = 'kacheln';
public static function canAccess(): bool
{
return auth()->user()?->can('appearance.manage') ?? false;
}
public static function form(Schema $schema): Schema
{
$type = fn (string ...$types) => fn (Get $get) => in_array($get('type'), $types, true);
return $schema->columns(2)->components([
TextInput::make('name')->label('Name (nur im Admin)')->required()->maxLength(100),
Select::make('type')->label('Art')->options(DashboardTile::TYPES)->default('image')->required()->live()->native(false),
Select::make('area')->label('Bereich')->options(DashboardTile::AREAS)->default('aside')->required()->native(false)
->helperText('Die Reihenfolge innerhalb des Bereichs legen Sie unter „Startseite“ fest.'),
TextInput::make('title')->label(fn (Get $get) => $get('type') === 'image' ? 'Bildunterschrift (optional)' : 'Überschrift')->maxLength(150),
FileUpload::make('image_path')->label('Bild')->image()->disk('uploads')->directory('dashboard')->visibility('public')
->maxSize(8 * 1024)->required($type('image'))->visible($type('image'))->columnSpanFull()
->helperText('Für die Seitenleiste z. B. 800 × 600 Pixel, für „ganz oben“ ein breites Banner (z. B. 2400 × 500).'),
TextInput::make('alt')->label('Alternativtext')->maxLength(200)->visible($type('image'))->helperText('Beschreibt das Bild für Screenreader.'),
RichEditor::make('body')->label('Text')->toolbarButtons([['bold', 'italic', 'link'], ['bulletList', 'orderedList'], ['undo', 'redo']])
->required($type('text', 'notice'))->visible($type('text', 'notice'))->columnSpanFull(),
Select::make('variant')->label('Farbe')->options(DashboardTile::VARIANTS)->default('brand')->visible($type('notice'))->native(false),
TextInput::make('url')->label('Link')->placeholder('https://… oder /seiten/…')->maxLength(2000),
Toggle::make('new_tab')->label('In neuem Tab öffnen')->inline(false),
Section::make('Anzeige')->columnSpanFull()->columns(3)->schema([
Toggle::make('is_active')->label('Aktiv')->default(true)->inline(false),
DateTimePicker::make('starts_at')->label('Ab')->native(false)->seconds(false)->displayFormat('d.m.Y H:i'),
DateTimePicker::make('ends_at')->label('Bis')->native(false)->seconds(false)->displayFormat('d.m.Y H:i')->after('starts_at'),
]),
AudienceSection::make('dashboard_tile', 'Wer die Kachel sieht. Leer lassen = alle.')->columnSpanFull(),
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
ImageColumn::make('image_path')->label('')->disk('uploads')->width(64)->height(40),
TextColumn::make('name')->label('Name')->weight('medium')->searchable(),
TextColumn::make('type')->label('Art')->formatStateUsing(fn (string $state) => DashboardTile::TYPES[$state] ?? $state),
TextColumn::make('area')->label('Bereich')->formatStateUsing(fn (string $state) => DashboardTile::AREAS[$state] ?? $state),
IconColumn::make('is_active')->label('Aktiv')->boolean(),
TextColumn::make('ends_at')->label('Bis')->dateTime('d.m.Y H:i')->placeholder('–'),
])
->recordActions([EditAction::make(), DeleteAction::make()])
->emptyStateHeading('Noch keine eigenen Kacheln')
->emptyStateDescription('Zum Beispiel ein verlinktes Bild in der Seitenleiste oder ein Hinweis ganz oben.');
}
public static function getPages(): array
{
return ['index' => ManageDashboardTiles::route('/')];
}
}

View file

@ -0,0 +1,24 @@
<?php
namespace App\Filament\Resources\DashboardTiles\Pages;
use App\Filament\Pages\DashboardSettings;
use App\Filament\Resources\DashboardTiles\DashboardTileResource;
use Filament\Actions\Action;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ManageRecords;
use Filament\Support\Icons\Heroicon;
class ManageDashboardTiles extends ManageRecords
{
protected static string $resource = DashboardTileResource::class;
protected function getHeaderActions(): array
{
return [
Action::make('layout')->label('Anordnung der Startseite')->icon(Heroicon::OutlinedSquares2x2)->color('gray')
->url(fn () => DashboardSettings::getUrl()),
CreateAction::make()->label('Kachel anlegen'),
];
}
}

View file

@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use App\Http\Requests\UpdateProfileRequest;
use App\Models\User;
use App\Profile\ProfileSections;
use App\Support\Avatars;
use App\Support\ProfileFields;
use Illuminate\Http\RedirectResponse;
@ -39,6 +40,7 @@ class ProfileController extends Controller
// Felder, die Microsoft Entra ID pflegt – im Portal nur lesbar.
'managed' => $managed,
'customFields' => $profileFields->formFor($user, $managed),
'sections' => app(ProfileSections::class)->resolve($user),
]);
}

View file

@ -0,0 +1,94 @@
<?php
namespace App\Models;
use App\Pagebuilder\Field;
use App\Support\Permissions\Audiences;
use App\Support\RichText;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
/**
* Eigene Kachel auf der Startseite („Administration → Portal → Startseite“).
*/
#[Fillable(['name', 'type', 'area', 'title', 'image_path', 'url', 'new_tab', 'alt', 'body', 'variant', 'is_active', 'starts_at', 'ends_at'])]
class DashboardTile extends Model
{
public const TYPES = [
'image' => 'Bild mit Link',
'text' => 'Text',
'notice' => 'Hinweis',
];
public const AREAS = [
'aside' => 'Seitenleiste (rechts)',
'main' => 'Hauptspalte (breit)',
'top' => 'Ganz oben (volle Breite)',
];
public const VARIANTS = [
'brand' => 'Markenfarbe',
'info' => 'Info (blau)',
'success' => 'Erfolg (grün)',
'warning' => 'Warnung (rot)',
'neutral' => 'Neutral (grau)',
];
protected static function booted(): void
{
static::saving(function (DashboardTile $tile) {
$tile->url = filled($tile->url) ? (Field::safeUrl($tile->url) ?: null) : null;
if ($tile->isDirty('body')) {
$tile->body_html = app(RichText::class)->toSafeHtml($tile->body);
}
});
static::deleted(fn (DashboardTile $tile) => $tile->image_path && Storage::disk('uploads')->delete($tile->image_path));
}
protected function casts(): array
{
return ['new_tab' => 'boolean', 'is_active' => 'boolean', 'starts_at' => 'datetime', 'ends_at' => 'datetime'];
}
public function widgetKey(): string
{
return 'tile.'.$this->id;
}
/**
* Aktiv, im Zeitraum und für die Person sichtbar.
*
* @param Builder<DashboardTile> $query
*/
public function scopeVisibleTo(Builder $query, User $user): void
{
$query->where('is_active', true)
->where(fn ($q) => $q->whereNull('starts_at')->orWhere('starts_at', '<=', now()))
->where(fn ($q) => $q->whereNull('ends_at')->orWhere('ends_at', '>', now()));
Audiences::constrain($query, 'dashboard_tile', 'dashboard_tiles.id', $user);
}
/**
* @return array<string, mixed>
*/
public function toWidgetProps(): array
{
return [
'tile' => [
'type' => $this->type,
'title' => $this->title,
'image_url' => $this->image_path ? Storage::disk('uploads')->url($this->image_path) : null,
'url' => $this->url,
'new_tab' => $this->new_tab,
'alt' => $this->alt ?: '',
'html' => $this->body_html,
'variant' => $this->variant ?: 'brand',
],
];
}
}

View file

@ -39,6 +39,7 @@ final class PluginManifest
public readonly bool $core,
public readonly array $requires,
public readonly ?string $updateUrl,
public readonly bool $enabledByDefault = true,
) {}
public static function fromDirectory(string $path, bool $core): self
@ -90,6 +91,7 @@ final class PluginManifest
core: $core,
requires: is_array($data['requires'] ?? null) ? $data['requires'] : [],
updateUrl: is_string($data['update_url'] ?? null) ? $data['update_url'] : null,
enabledByDefault: (bool) ($data['enabled_by_default'] ?? true),
);
}

View file

@ -7,10 +7,17 @@ use App\Support\Update\AtomicFile;
/**
* Aktivierungszustand der Plugins in storage/app/plugins.json – als Datei, damit
* das Laden der Plugins keine Datenbankabfrage kostet und auch ohne DB klappt.
* Mitgelieferte Plugins sind aktiv, solange nichts anderes vermerkt ist.
* Mitgelieferte Plugins sind aktiv, solange nichts anderes vermerkt ist – außer sie
* sind als optional markiert („enabled_by_default“: false in plugin.json).
*/
class PluginState
{
/**
* Test-Suite: optionale mitgelieferte Plugins ebenfalls laden, damit ihre
* Tabellen und Tests dabei sind (gesetzt in tests/TestCase.php).
*/
public static bool $enableOptionalCorePlugins = false;
/** @var array<string, array<string, mixed>>|null */
private ?array $data = null;
@ -20,7 +27,7 @@ class PluginState
{
$entry = $this->all()[$manifest->slug] ?? null;
return is_array($entry) ? (bool) ($entry['enabled'] ?? false) : $manifest->core;
return is_array($entry) ? (bool) ($entry['enabled'] ?? false) : $manifest->core && ($manifest->enabledByDefault || self::$enableOptionalCorePlugins);
}
public function setEnabled(string $slug, bool $enabled, ?string $reason = null): void

View file

@ -0,0 +1,52 @@
<?php
namespace App\Profile;
use App\Models\User;
use Closure;
use Illuminate\Support\Facades\Log;
use Throwable;
/**
* Zusätzliche Abschnitte in „Profil bearbeiten“, beigesteuert von Plugins
* (z. B. „Geburtstag“). Die Vue-Komponente liegt unter
* plugins-core/<plugin>/resources/js/profile/<Name>.vue („<plugin>::Name“)
* und speichert über eigene Routen des Plugins.
*/
class ProfileSections
{
/** @var array<string, array{component: string, sort: int, props: Closure}> */
private array $sections = [];
/**
* @param Closure(User): (array<string, mixed>|null) $props null = Abschnitt nicht zeigen
*/
public function add(string $key, string $component, int $sort, Closure $props): void
{
$this->sections[$key] = compact('component', 'sort', 'props');
}
/**
* @return list<array{key: string, component: string, props: array<string, mixed>}>
*/
public function resolve(User $user): array
{
$result = [];
foreach (collect($this->sections)->sortBy('sort') as $key => $section) {
try {
$props = ($section['props'])($user);
} catch (Throwable $e) {
Log::error("Profilabschnitt {$key} fehlgeschlagen: ".$e->getMessage());
continue;
}
if ($props !== null) {
$result[] = ['key' => $key, 'component' => $section['component'], 'props' => $props];
}
}
return $result;
}
}

View file

@ -4,6 +4,7 @@ namespace App\Providers\Filament;
use App\Filament\AvatarProviders\InitialsAvatarProvider;
use App\Filament\Pages\Feedback;
use App\Filament\Resources\DashboardTiles\DashboardTileResource;
use App\Filament\Resources\IdentityProviders\IdentityProviderResource;
use App\Filament\Resources\ProfileFields\ProfileFieldResource;
use App\Filament\Resources\Roles\RoleResource;
@ -65,6 +66,7 @@ class AdminPanelProvider extends PanelProvider
UserResource::class,
RoleResource::class,
ProfileFieldResource::class,
DashboardTileResource::class,
IdentityProviderResource::class,
])
->discoverPages(in: app_path('Filament/Pages'), for: 'App\Filament\Pages')

View file

@ -6,6 +6,7 @@ use App\Dashboard\Widgets;
use App\Plugins\Hooks;
use App\Plugins\PluginManager;
use App\Plugins\PluginState;
use App\Profile\ProfileSections;
use App\Support\Abilities;
use App\Support\Navigation;
use Illuminate\Support\ServiceProvider;
@ -24,6 +25,7 @@ class PluginServiceProvider extends ServiceProvider
$this->app->singleton(Navigation::class);
$this->app->singleton(Widgets::class);
$this->app->singleton(Abilities::class);
$this->app->singleton(ProfileSections::class);
$this->app->make(PluginManager::class)->registerAll();
}

View file

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Eigene Kacheln der Startseite: Bild mit Link, Text oder Hinweis.
*/
return new class extends Migration
{
public function up(): void
{
Schema::create('dashboard_tiles', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('type', 20);
$table->string('area', 20)->default('aside');
$table->string('title')->nullable();
$table->string('image_path')->nullable();
$table->string('url', 2000)->nullable();
$table->boolean('new_tab')->default(false);
$table->string('alt')->nullable();
$table->longText('body')->nullable();
$table->longText('body_html')->nullable();
$table->string('variant', 20)->nullable();
$table->boolean('is_active')->default(true);
$table->timestamp('starts_at')->nullable();
$table->timestamp('ends_at')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('dashboard_tiles');
}
};

View file

@ -482,7 +482,7 @@ Kantinenplan, Ideenbox, Urlaubsanträge.
| **2 – Plugin-System & Rechte** ✅ | Plugin-Loader, Hooks/Filter, Registries, Recovery-Modus, Import-Map-Frontend; Rollen, Grants, Zielgruppen, Rechte-Cache, Rechte-Prüfer |
| **3 – Entra ID** ✅ | OIDC-Login, JIT, Gruppen-/App-Rollen-Mapping (additiv), Graph-Profil- & Foto-Sync mit frei zuordenbaren Attributen (inkl. Erweiterungsattributen) und eigenen Profilfeldern, Delta-Sync |
| **4 – CMS** ✅ | Seitenbaum, Pagebuilder (Layout-, Inhalts-, Medien- und dynamische Blöcke, Sichtbarkeit je Block), Entwürfe, Versionen, Zeitsteuerung, Bearbeitungssperre, Freigaben; News-Freigabe-Workflow und Redaktion im Portal; Benachrichtigungen. Offen: Vorlagen und wiederverwendbare Blöcke |
| **4b – Formulare & Umstieg** ✅ | Formular-Plugin (visueller Baukasten im Portal, Bedingungen, Uploads, anonyme Formulare, Mail + Backend, Ergebnis-Rechte je Formular und Rolle, CSV, Löschfristen; eingebunden per Pagebuilder-Block und unter Beiträgen, kein eigener Menüpunkt); WordPress-Import (Beiträge, Kategorien, Bilder, Seiten); E-Mail-Versand im Admin |
| **4b – Formulare & Umstieg** ✅ | Formular-Plugin (visueller Baukasten im Portal, Bedingungen, Uploads, anonyme Formulare, Mail + Backend, Ergebnis-Rechte je Formular und Rolle, CSV, Löschfristen; eingebunden per Pagebuilder-Block und unter Beiträgen, kein eigener Menüpunkt); WordPress-Import (Beiträge, Kategorien, Bilder, Seiten); E-Mail-Versand im Admin; anpassbare Startseite mit eigenen Kacheln; Geburtstage (optionales Plugin) |
| **5 – Branding & Theming** | Vollständige Seite „Erscheinungsbild“: Logo-Varianten, Farben inkl. Farbtreue & Kontrastprüfung, Schriften, Form, Login-Seite, E-Mails, Live-Vorschau, Entwurf/Veröffentlichen, Export/Import |
| **6 – Weitere Plugins & IdPs** | Verzeichnis/Organigramm, Dokumente, Events …; OIDC generisch, LDAP, SAML; Lasttests 5.000 User |
| **7 – Plugin-SDK öffentlich** | Doku, Generator, Beispiel-Plugins (kein Plugin-Verzeichnis) |

View file

@ -116,6 +116,14 @@ $this->app->make(Blocks::class)->add(BlockType::make('mein-plugin.liste', 'Meine
- Die Vue-Komponente erhält `block` (`data`, `items`, `props`) – Kinder werden mit
`inject('pagebuilder:list')` gerendert. `inject('pagebuilder:editing')` ist im Editor wahr.
## Startseite und Profil
- Kacheln: `app(App\Dashboard\Widgets::class)->add($key, 'mein-plugin::Kachel', 'aside', sort: 20, props: fn (User $user) => [...], label: 'Name im Admin')`.
Bereiche: `top`, `hero`, `feed`, `main`, `aside`. Admins sortieren und blenden Kacheln unter „Startseite“ aus.
- Abschnitt in „Profil bearbeiten“: `app(App\Profile\ProfileSections::class)->add($key, 'mein-plugin::Abschnitt', $sort, fn (User $user) => [...])`
(Komponente unter `resources/js/profile/`, speichert über eigene Routen).
- Optionale mitgelieferte Plugins: `"enabled_by_default": false` in `plugin.json`.
## Redaktion, Navigation und Benachrichtigungen
- Arbeitslisten im Bereich „Redaktion“: `app(App\Editorial\Editorial::class)->add($key, $label, 'mein-plugin::Liste', $sort, $sichtbar, $props)`.

View file

@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Freiwillige Geburtstagsliste: nur Tag und Monat – kein Geburtsjahr, kein Alter.
*/
return new class extends Migration
{
public function up(): void
{
Schema::create('birthdays', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->unique()->constrained('users')->cascadeOnDelete();
$table->unsignedTinyInteger('month');
$table->unsignedTinyInteger('day');
$table->timestamps();
$table->index(['month', 'day']);
});
}
public function down(): void
{
Schema::dropIfExists('birthdays');
}
};

View file

@ -0,0 +1,14 @@
{
"slug": "birthdays",
"name": "Geburtstage",
"version": "1.0.0",
"description": "Geburtstagsliste zum Mitmachen: Wer möchte, trägt Tag und Monat im Profil ein. Mit Kachel auf der Startseite und Glückwunsch am eigenen Geburtstag.",
"author": "Inhaus",
"namespace": "Inhaus\\Plugins\\Birthdays\\",
"class": "Inhaus\\Plugins\\Birthdays\\BirthdaysPlugin",
"enabled_by_default": false,
"requires": {
"core": ">=0.6.0",
"php": ">=8.3"
}
}

View file

@ -0,0 +1,15 @@
<script setup>
import BirthdayItem from '../components/BirthdayItem.vue';
defineProps({ block: { type: Object, required: true } });
</script>
<template>
<section>
<h3 v-if="block.data.title" class="mb-3 text-lg font-semibold">{{ block.data.title }}</h3>
<div class="divide-y rounded-lg border bg-card px-4">
<BirthdayItem v-for="item in block.props?.birthdays ?? []" :key="`${item.person.id}-${item.date}`" :item="item" />
<p v-if="!(block.props?.birthdays ?? []).length" class="py-3 text-sm text-muted-foreground">Keine anstehenden Geburtstage.</p>
</div>
</section>
</template>

View file

@ -0,0 +1,28 @@
<script setup>
import { Link } from '@inertiajs/vue3';
import { Cake } from '@lucide/vue';
import PersonAvatar from '@/components/PersonAvatar.vue';
defineProps({
item: { type: Object, required: true },
});
const day = (iso) => new Intl.DateTimeFormat('de-DE', { day: 'numeric', month: 'long' }).format(new Date(`${iso}T12:00:00`));
const weekday = (iso) => new Intl.DateTimeFormat('de-DE', { weekday: 'short' }).format(new Date(`${iso}T12:00:00`));
</script>
<template>
<Link :href="`/personen/${item.person.id}`" class="group flex items-center gap-3 py-2.5">
<span class="relative shrink-0">
<PersonAvatar :person="item.person" class="size-10" />
<span v-if="item.today" class="absolute -right-1 -bottom-1 grid size-5 place-items-center rounded-full bg-brand text-brand-foreground ring-2 ring-card"><Cake class="size-3" /></span>
</span>
<span class="min-w-0 flex-1">
<span class="block truncate text-sm font-medium group-hover:underline">{{ item.person.name }}</span>
<span class="block truncate text-xs text-muted-foreground">{{ item.person.job_title || item.person.department }}</span>
</span>
<span class="shrink-0 text-right text-xs" :class="item.today ? 'font-semibold text-brand-text' : 'text-muted-foreground'">
{{ item.today ? 'Heute' : `${weekday(item.date)}, ${day(item.date)}` }}
</span>
</Link>
</template>

View file

@ -0,0 +1,52 @@
<script setup>
import { computed } from 'vue';
import { Link } from '@inertiajs/vue3';
import { Cake } from '@lucide/vue';
import EmptyState from '@/components/EmptyState.vue';
import AppLayout from '@/layouts/AppLayout.vue';
import BirthdayItem from '../components/BirthdayItem.vue';
const props = defineProps({
birthdays: { type: Array, required: true },
scope: { type: String, required: true },
registered: { type: Boolean, default: false },
});
// Nach Tagen gruppiert: „Heute“, dann die folgenden Tage
const groups = computed(() => {
const result = [];
for (const item of props.birthdays) {
const last = result.at(-1);
last && last.date === item.date ? last.items.push(item) : result.push({ date: item.date, today: item.today, items: [item] });
}
return result;
});
const label = (group) => group.today ? 'Heute' : new Intl.DateTimeFormat('de-DE', { weekday: 'long', day: 'numeric', month: 'long' }).format(new Date(`${group.date}T12:00:00`));
</script>
<template>
<AppLayout title="Geburtstage">
<div class="mx-auto max-w-3xl">
<h1 class="text-2xl font-semibold tracking-tight">Geburtstage</h1>
<p class="mt-1 text-sm text-muted-foreground">Die nächsten 30 Tage · {{ scope }}</p>
<p v-if="!registered" class="mt-5 rounded-lg border bg-card px-4 py-3 text-sm">
Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter
<Link href="/profil/bearbeiten" class="font-medium text-brand-text hover:underline">Profil bearbeiten</Link> ein.
</p>
<div v-if="groups.length" class="mt-6 grid gap-5">
<section v-for="group in groups" :key="group.date" class="rounded-lg border bg-card">
<h2 class="border-b px-5 py-3 text-sm font-semibold" :class="group.today ? 'text-brand-text' : ''">{{ label(group) }}</h2>
<div class="divide-y px-5">
<BirthdayItem v-for="item in group.items" :key="item.person.id" :item="item" />
</div>
</section>
</div>
<div v-else class="mt-6 rounded-lg border bg-card"><EmptyState :icon="Cake" title="Keine Geburtstage in den nächsten 30 Tagen" /></div>
</div>
</AppLayout>
</template>

View file

@ -0,0 +1,69 @@
<script setup>
import { computed } from 'vue';
import { router, useForm } from '@inertiajs/vue3';
import { Cake, LoaderCircle } from '@lucide/vue';
import { toast } from 'vue-sonner';
import { Button } from '@/components/ui/button';
import FormField from '@/components/FormField.vue';
import NativeSelect from '@/components/NativeSelect.vue';
import Panel from '@/components/Panel.vue';
const props = defineProps({
birthday: { type: Object, default: null },
months: { type: Array, required: true },
scope: { type: String, default: 'all' },
});
const form = useForm({ day: props.birthday?.day ?? null, month: props.birthday?.month ?? null });
const days = computed(() => Array.from({ length: 31 }, (_, i) => ({ value: i + 1, label: String(i + 1) })));
const audience = { all: 'allen Mitarbeitenden', department: 'Ihrer Abteilung', location: 'Ihrem Standort' };
function save() {
form.put('/profil/geburtstag', {
preserveScroll: true,
onSuccess: () => {
form.defaults();
toast.success('Geburtstag gespeichert');
},
});
}
function remove() {
router.delete('/profil/geburtstag', {
preserveScroll: true,
onSuccess: () => {
form.day = null;
form.month = null;
form.defaults();
toast.success('Aus der Geburtstagsliste entfernt');
},
});
}
</script>
<template>
<Panel title="Geburtstag">
<form class="grid gap-4" @submit.prevent="save">
<p class="flex gap-2 text-sm text-muted-foreground">
<Cake class="mt-0.5 size-4 shrink-0 text-brand-text" />
<span>Freiwillig: Wenn Sie Tag und Monat eintragen, erscheint Ihr Geburtstag in der Geburtstagsliste und ist {{ audience[scope] }} sichtbar. Das Geburtsjahr wird nicht erfasst. Austragen ist jederzeit möglich.</span>
</p>
<div class="grid grid-cols-2 gap-4 sm:max-w-sm">
<FormField id="birthday-day" label="Tag" :error="form.errors.day">
<NativeSelect id="birthday-day" v-model="form.day" :options="days" placeholder="–" />
</FormField>
<FormField id="birthday-month" label="Monat" :error="form.errors.month">
<NativeSelect id="birthday-month" v-model="form.month" :options="months" placeholder="–" />
</FormField>
</div>
<div class="flex justify-end gap-2 border-t pt-4">
<Button v-if="birthday" type="button" variant="ghost" class="text-destructive hover:text-destructive" @click="remove">Austragen</Button>
<Button type="submit" :disabled="form.processing || !form.day || !form.month || !form.isDirty">
<LoaderCircle v-if="form.processing" class="animate-spin" />
{{ birthday ? 'Speichern' : 'Eintragen' }}
</Button>
</div>
</form>
</Panel>
</template>

View file

@ -0,0 +1,55 @@
<script setup>
import { ref } from 'vue';
import { Cake, X } from '@lucide/vue';
/**
* Glückwunsch am eigenen Geburtstag – lässt sich für heute ausblenden.
*/
const props = defineProps({
name: { type: String, required: true },
});
const key = `inhaus.birthday-greeting.${new Date().toISOString().slice(0, 10)}`;
const hidden = ref(false);
try {
hidden.value = localStorage.getItem(key) === '1';
} catch {
// Speicher nicht verfügbar – dann eben immer zeigen.
}
function dismiss() {
hidden.value = true;
try {
localStorage.setItem(key, '1');
} catch {
// ignorieren
}
}
</script>
<template>
<section v-if="!hidden" class="relative overflow-hidden rounded-lg bg-brand text-brand-foreground" role="status">
<!-- dezente Konfetti-Punkte -->
<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 cx="15%" cy="75%" r="3" fill="currentColor" />
<rect x="24%" y="18%" width="7" height="7" transform="rotate(20)" fill="currentColor" />
<circle cx="62%" cy="20%" r="3" fill="currentColor" />
<circle cx="78%" cy="70%" r="5" fill="currentColor" />
<rect x="88%" y="30%" width="8" height="8" fill="currentColor" />
<circle cx="94%" cy="80%" r="3" fill="currentColor" />
</svg>
<div class="relative flex items-center gap-4 px-5 py-5 sm:px-8">
<span class="grid size-12 shrink-0 place-items-center rounded-full bg-white/15"><Cake class="size-6" /></span>
<div class="min-w-0 flex-1">
<p class="text-xl font-semibold tracking-tight">Alles Gute zum Geburtstag, {{ props.name }}!</p>
<p class="mt-0.5 text-sm opacity-90">Wir wünschen Ihnen einen schönen Tag.</p>
</div>
<button type="button" class="grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15" aria-label="Glückwunsch ausblenden" @click="dismiss">
<X class="size-5" />
</button>
</div>
</section>
</template>

View file

@ -0,0 +1,17 @@
<script setup>
import Panel from '@/components/Panel.vue';
import BirthdayItem from '../components/BirthdayItem.vue';
defineProps({
birthdays: { type: Array, required: true },
days: { type: Number, default: 7 },
});
</script>
<template>
<Panel title="Geburtstage" action-label="Alle" action-href="/geburtstage">
<div class="-my-2 divide-y">
<BirthdayItem v-for="item in birthdays" :key="`${item.person.id}-${item.date}`" :item="item" />
</div>
</Panel>
</template>

View file

@ -0,0 +1,10 @@
<?php
use Illuminate\Support\Facades\Route;
use Inhaus\Plugins\Birthdays\Http\Controllers\BirthdayController;
Route::middleware('auth')->group(function () {
Route::get('/geburtstage', [BirthdayController::class, 'index'])->name('birthdays.index');
Route::put('/profil/geburtstag', [BirthdayController::class, 'update'])->name('birthdays.update');
Route::delete('/profil/geburtstag', [BirthdayController::class, 'destroy'])->name('birthdays.destroy');
});

View file

@ -0,0 +1,95 @@
<?php
namespace Inhaus\Plugins\Birthdays;
use App\Http\Resources\PersonResource;
use App\Models\User;
use App\Support\Settings;
use Illuminate\Support\Carbon;
use Illuminate\Support\Collection;
use Inhaus\Plugins\Birthdays\Models\Birthday;
/**
* Anstehende Geburtstage für eine Person – je nach Einstellung aus dem ganzen
* Haus, der eigenen Abteilung oder dem eigenen Standort.
*/
class BirthdayList
{
public const SCOPES = [
'all' => 'Alle Mitarbeitenden',
'department' => 'Nur die eigene Abteilung',
'location' => 'Nur der eigene Standort',
];
public function __construct(private readonly Settings $settings) {}
public function scope(): string
{
return array_key_exists($s = (string) $this->settings->get('birthdays.scope', 'all'), self::SCOPES) ? $s : 'all';
}
public function daysAhead(): int
{
return max(0, min(60, (int) $this->settings->get('birthdays.days', 7)));
}
public function greetingEnabled(): bool
{
return (bool) $this->settings->get('birthdays.greeting', true);
}
/**
* @return list<array{date: string, today: bool, person: array<string, mixed>}>
*/
public function upcoming(User $viewer, ?int $days = null, ?string $scope = null, int $limit = 200): array
{
$days ??= $this->daysAhead();
$scope ??= $this->scope();
$today = Carbon::today();
$end = $today->copy()->addDays($days);
// Nur die betroffenen Monate laden (höchstens drei), dann genau filtern.
$months = collect(range(0, (int) $today->copy()->startOfMonth()->diffInMonths($end->copy()->startOfMonth())))
->map(fn ($i) => $today->copy()->startOfMonth()->addMonths($i)->month)->unique()->values()->all();
$birthdays = Birthday::query()
->whereIn('month', $months)
->whereHas('user', function ($q) use ($viewer, $scope) {
$q->where('is_active', true);
if ($scope === 'department') {
$viewer->department ? $q->where('department', $viewer->department) : $q->whereKey($viewer->id);
} elseif ($scope === 'location') {
$viewer->location ? $q->where('location', $viewer->location) : $q->whereKey($viewer->id);
}
})
->with('user')
->get();
return $birthdays
->map(fn (Birthday $b) => ['birthday' => $b, 'date' => $b->nextOccurrence($today)])
->filter(fn ($row) => $row['date']->lte($end))
->sortBy(fn ($row) => $row['date']->format('Ymd').mb_strtolower($row['birthday']->user->last_name.' '.$row['birthday']->user->first_name))
->take($limit)
->map(fn ($row) => [
'date' => $row['date']->toDateString(),
'today' => $row['date']->isSameDay($today),
'person' => (new PersonResource($row['birthday']->user))->resolve(),
])
->values()
->all();
}
public function isBirthdayToday(User $user): bool
{
return (bool) Birthday::query()->where('user_id', $user->id)->first()?->isOn(Carbon::today());
}
/**
* @return Collection<int, string>
*/
public static function months(): Collection
{
return collect(range(1, 12))->mapWithKeys(fn ($m) => [$m => Carbon::create(2000, $m, 1)->locale('de')->translatedFormat('F')]);
}
}

View file

@ -0,0 +1,60 @@
<?php
namespace Inhaus\Plugins\Birthdays;
use App\Dashboard\Widgets;
use App\Models\User;
use App\Pagebuilder\Blocks;
use App\Pagebuilder\BlockType;
use App\Pagebuilder\Field;
use App\Plugins\Plugin;
use App\Profile\ProfileSections;
use Inhaus\Plugins\Birthdays\Models\Birthday;
/**
* Freiwillige Geburtstagsliste. Standardmäßig aus – im Admin unter „Plugins“ aktivierbar.
*/
class BirthdaysPlugin extends Plugin
{
public function register(): void
{
$this->app->singleton(BirthdayList::class);
$this->app->make(ProfileSections::class)->add('birthday', 'birthdays::ProfileBirthday', 10, function (User $user) {
$birthday = Birthday::query()->where('user_id', $user->id)->first();
return [
'birthday' => $birthday ? ['day' => $birthday->day, 'month' => $birthday->month] : null,
'months' => BirthdayList::months()->map(fn ($label, $value) => ['value' => $value, 'label' => $label])->values(),
'scope' => app(BirthdayList::class)->scope(),
];
});
$widgets = $this->app->make(Widgets::class);
// Glückwunsch oben auf der Startseite – nur am eigenen Geburtstag.
$widgets->add('birthdays.greeting', 'birthdays::Greeting', 'top', sort: 0, props: function (User $user) {
$list = app(BirthdayList::class);
return $list->greetingEnabled() && $list->isBirthdayToday($user) ? ['name' => $user->first_name ?: $user->name] : null;
}, label: 'Geburtstagsgruß (am eigenen Geburtstag)', mobileSort: -100);
$widgets->add('birthdays.upcoming', 'birthdays::Upcoming', 'aside', sort: 30, props: function (User $user) {
$list = app(BirthdayList::class);
$upcoming = $list->upcoming($user, limit: 8);
return $upcoming === [] ? null : ['birthdays' => $upcoming, 'days' => $list->daysAhead()];
}, label: 'Geburtstage', mobileSort: 35);
$this->app->make(Blocks::class)->add(BlockType::make('birthdays.list', 'Geburtstage', 'cake', 'dynamic', 'birthdays::BirthdaysBlock')
->description('Anstehende Geburtstage – z. B. auf der Seite einer Abteilung.')
->fields([
Field::text('title', 'Überschrift', 150, 'Geburtstage'),
Field::select('scope', 'Wessen Geburtstage', ['' => 'Wie in den Einstellungen'] + BirthdayList::SCOPES, ''),
Field::number('days', 'Tage im Voraus', 0, 60, 14),
])
->resolveUsing(fn (array $data, ?User $user) => $user ? [
'birthdays' => app(BirthdayList::class)->upcoming($user, $data['days'], $data['scope'] ?: null, 30),
] : null));
}
}

View file

@ -0,0 +1,69 @@
<?php
namespace Inhaus\Plugins\Birthdays\Filament\Pages;
use App\Support\Settings;
use BackedEnum;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Notifications\Notification;
use Filament\Pages\Page;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Inhaus\Plugins\Birthdays\BirthdayList;
use Inhaus\Plugins\Birthdays\Models\Birthday;
use UnitEnum;
class BirthdaySettings extends Page
{
protected string $view = 'filament.pages.settings-form';
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedCake;
protected static string|UnitEnum|null $navigationGroup = 'Portal';
protected static ?int $navigationSort = 30;
protected static ?string $navigationLabel = 'Geburtstage';
protected static ?string $title = 'Geburtstage';
protected static ?string $slug = 'geburtstage';
/** @var array<string, mixed>|null */
public ?array $data = [];
public static function canAccess(): bool
{
return auth()->user()?->can('appearance.manage') ?? false;
}
public function mount(BirthdayList $list): void
{
$this->form->fill(['scope' => $list->scope(), 'days' => $list->daysAhead(), 'greeting' => $list->greetingEnabled()]);
}
public function form(Schema $schema): Schema
{
return $schema->statePath('data')->components([
Section::make('Geburtstagsliste')
->description(fn () => 'Mitarbeitende tragen sich freiwillig im Profil ein (nur Tag und Monat). Derzeit eingetragen: '.Birthday::query()->count().'.')
->columns(2)
->schema([
Select::make('scope')->label('Wer sieht wessen Geburtstag')->options(BirthdayList::SCOPES)->required()->native(false),
TextInput::make('days')->label('Tage im Voraus auf der Startseite')->numeric()->minValue(0)->maxValue(60)->required(),
Toggle::make('greeting')->label('Am eigenen Geburtstag auf der Startseite gratulieren')->columnSpanFull(),
]),
]);
}
public function save(Settings $settings): void
{
$state = $this->form->getState();
$settings->setMany(['birthdays.scope' => $state['scope'], 'birthdays.days' => (int) $state['days'], 'birthdays.greeting' => (bool) $state['greeting']]);
Notification::make()->success()->title('Gespeichert')->send();
}
}

View file

@ -0,0 +1,48 @@
<?php
namespace Inhaus\Plugins\Birthdays\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;
use Inertia\Inertia;
use Inertia\Response;
use Inhaus\Plugins\Birthdays\BirthdayList;
use Inhaus\Plugins\Birthdays\Models\Birthday;
class BirthdayController extends Controller
{
public function index(Request $request, BirthdayList $list): Response
{
return Inertia::render('birthdays::Index', [
'birthdays' => $list->upcoming($request->user(), 30),
'scope' => BirthdayList::SCOPES[$list->scope()],
'registered' => Birthday::query()->where('user_id', $request->user()->id)->exists(),
]);
}
public function update(Request $request): RedirectResponse
{
$data = $request->validate([
'day' => ['required', 'integer', 'between:1,31'],
'month' => ['required', 'integer', 'between:1,12'],
], [], ['day' => 'Tag', 'month' => 'Monat']);
// Gültiger Tag im Monat (29. Februar erlaubt).
if (! checkdate($data['month'], $data['day'], 2000)) {
throw ValidationException::withMessages(['day' => 'Diesen Tag gibt es im gewählten Monat nicht.']);
}
Birthday::query()->updateOrCreate(['user_id' => $request->user()->id], $data);
return back()->with('status', 'birthday-saved');
}
public function destroy(Request $request): RedirectResponse
{
Birthday::query()->where('user_id', $request->user()->id)->delete();
return back()->with('status', 'birthday-removed');
}
}

View file

@ -0,0 +1,46 @@
<?php
namespace Inhaus\Plugins\Birthdays\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Carbon;
#[Fillable(['user_id', 'month', 'day'])]
class Birthday extends Model
{
/**
* @return BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
/**
* Nächster Geburtstag ab $from (heute eingeschlossen). Der 29. Februar
* wird in Nicht-Schaltjahren am 28. Februar gefeiert.
*/
public function nextOccurrence(Carbon $from): Carbon
{
$date = self::inYear($from->year, $this->month, $this->day);
return $date->lt($from->copy()->startOfDay()) ? self::inYear($from->year + 1, $this->month, $this->day) : $date;
}
public function isOn(Carbon $date): bool
{
return self::inYear($date->year, $this->month, $this->day)->isSameDay($date);
}
private static function inYear(int $year, int $month, int $day): Carbon
{
if ($month === 2 && $day === 29 && ! Carbon::create($year)->isLeapYear()) {
$day = 28;
}
return Carbon::create($year, $month, $day)->startOfDay();
}
}

View file

@ -25,7 +25,7 @@ class EventsPlugin extends Plugin
$this->app->make(Widgets::class)->add('events.upcoming', 'events::Upcoming', 'aside', sort: 20, props: fn (User $user) => [
'events' => EventResource::collection(Event::query()->upcoming()->visibleTo($user)->limit(4)->get())->resolve(),
], mobileSort: 30);
], label: 'Termine', mobileSort: 30);
$this->app->make(Blocks::class)->add(BlockType::make('events.upcoming', 'Termine', 'calendar-days', 'dynamic', 'events::UpcomingEvents')
->description('Die nächsten Termine.')

View file

@ -1,7 +1,7 @@
<script setup>
import { computed } from 'vue';
import { useForm, usePage } from '@inertiajs/vue3';
import { CircleCheck, EyeOff, LoaderCircle, Paperclip, Send, X } from '@lucide/vue';
import { CircleCheck, EyeOff, LoaderCircle, Lock, Paperclip, Send, X } from '@lucide/vue';
import { toast } from 'vue-sonner';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@ -176,6 +176,12 @@ const fieldId = (field) => `f${props.form.id}-${field.key}`;
</label>
</div>
<div v-else-if="field.locked" class="flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm" :aria-describedby="`${fieldId(field)}-locked`">
<Lock class="size-3.5 shrink-0 text-muted-foreground" />
<span v-if="data.answers[field.key]" :id="fieldId(field)" class="truncate">{{ data.answers[field.key] }}</span>
<span v-else class="text-muted-foreground italic">{{ preview ? 'wird aus dem Profil übernommen' : 'nicht im Profil hinterlegt' }}</span>
</div>
<Input
v-else
:id="fieldId(field)"
@ -189,7 +195,11 @@ const fieldId = (field) => `f${props.form.id}-${field.key}`;
/>
</template>
<p v-if="error(field)" class="text-[13px] text-destructive">{{ error(field) }}</p>
<p v-if="error(field)" class="text-[13px] text-destructive">
{{ error(field) }}
<a v-if="field.locked" href="/profil/bearbeiten" class="font-medium underline">Profil öffnen</a>
</p>
<p v-else-if="field.locked" :id="`${fieldId(field)}-locked`" class="text-[13px] text-muted-foreground">Aus Ihrem Profil – nicht änderbar.</p>
<p v-else-if="field.help" class="text-[13px] text-muted-foreground">
{{ field.help }}<template v-if="field.type === 'file' && field.max_size"> (höchstens {{ field.max_size }} MB)</template>
</p>

View file

@ -1,6 +1,6 @@
<script setup>
import { computed, inject } from 'vue';
import { Asterisk, Calendar, ChevronDown, Copy, GitBranch, GripVertical, Paperclip, Plus, Trash2, X } from '@lucide/vue';
import { Asterisk, Calendar, ChevronDown, Copy, GitBranch, GripVertical, Lock, Paperclip, Plus, Trash2, X } from '@lucide/vue';
import { fieldTypes, layoutTypes, operators, optionTypes } from '../../lib/fields';
/**
@ -95,6 +95,9 @@ const fake = 'flex h-9 w-full items-center rounded-md border border-input bg-car
<button type="button" class="grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10" title="Entfernen" @click="builder.remove(field._id)"><Trash2 class="size-3.5" /></button>
</div>
<p v-if="d.prefill && !d.locked && !isLayout" class="mb-1.5 mr-1 inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground">
Vorbelegt: {{ builder.prefillOptions.find((o) => o.value === d.prefill)?.label ?? d.prefill }}
</p>
<p v-if="conditionText" class="mb-1.5 inline-flex items-center gap-1 rounded bg-amber-100 px-1.5 py-0.5 text-[11px] text-amber-800 dark:bg-amber-900/50 dark:text-amber-200">
<GitBranch class="size-3" /> Nur wenn {{ conditionText }}
</p>
@ -156,6 +159,10 @@ const fake = 'flex h-9 w-full items-center rounded-md border border-input bg-car
<div v-else-if="field.type === 'date'" :class="[fake, 'justify-between']">TT.MM.JJJJ <Calendar class="size-4" /></div>
<div v-else-if="d.locked && d.prefill" class="flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm text-muted-foreground">
<Lock class="size-3.5" /> Aus dem Profil: {{ builder.prefillOptions.find((o) => o.value === d.prefill)?.label ?? d.prefill }} – nicht änderbar
</div>
<div v-else class="rounded-md border border-input bg-card shadow-xs">
<input v-model="d.placeholder" class="h-9 w-full bg-transparent px-3 text-sm outline-none placeholder:text-muted-foreground/50" :placeholder="field.type === 'text' ? 'Platzhalter (optional)' : ''" :disabled="field.type !== 'text'" aria-label="Platzhalter" />
</div>

View file

@ -121,9 +121,20 @@ const maxSize = computed(number('max_size'));
<label v-if="['text', 'email', 'phone'].includes(field.type)" class="grid gap-1.5">
<span class="text-[13px] font-medium">Vorbelegen mit</span>
<NativeSelect :model-value="d.prefill ?? null" :options="builder.prefillOptions" placeholder="– nicht vorbelegen –" @update:model-value="(v) => (v ? (d.prefill = v) : delete d.prefill)" />
<span class="text-xs text-muted-foreground">Aus dem Profil der ausfüllenden Person; änderbar.</span>
<NativeSelect :model-value="d.prefill ?? null" :options="builder.prefillOptions" placeholder="– nicht vorbelegen –" @update:model-value="(v) => (v ? (d.prefill = v) : (delete d.prefill, delete d.locked))" />
</label>
<div v-if="['text', 'email', 'phone'].includes(field.type) && d.prefill" class="grid gap-1.5 rounded-md border p-3">
<label class="flex items-center justify-between gap-3 text-[13px] font-medium">
Nicht änderbar
<Switch :model-value="!!d.locked" @update:model-value="(v) => (v ? (d.locked = true) : delete d.locked)" />
</label>
<span class="text-xs text-muted-foreground">
{{ d.locked
? 'Das Feld zeigt den Wert aus dem Profil und kann nicht geändert werden. Beim Absenden wird immer der Profilwert gespeichert.'
: 'Das Feld ist mit dem Profilwert vorausgefüllt, kann aber geändert werden.' }}
</span>
<span v-if="d.locked && builder.anonymous" class="text-xs text-amber-700 dark:text-amber-300">Achtung: Das Formular ist anonym – diese Profilangabe wird trotzdem mit der Einsendung gespeichert.</span>
</div>
<div v-if="['text', 'textarea', 'number', 'checkboxes'].includes(field.type)" class="grid grid-cols-2 gap-3">
<label v-if="['number', 'checkboxes'].includes(field.type)" class="grid gap-1.5">

View file

@ -97,6 +97,7 @@ export function toFrontend(fields) {
multiple: !!data.multiple,
accept: accept[data.accept ?? 'any'] || undefined,
max_size: data.max_size,
locked: !!(data.locked && data.prefill && ['text', 'email', 'phone'].includes(type)),
condition: data.condition_field ? { field: data.condition_field, operator: data.condition_operator ?? 'equals', value: String(data.condition_value ?? '') } : null,
}));
}

View file

@ -87,6 +87,7 @@ provide('forms:builder', {
},
types: props.types,
prefillOptions: props.prefillOptions,
anonymous: props.form.anonymous,
selectedId,
errorIndex,
select,

View file

@ -116,6 +116,7 @@ class FormFields
'multiple' => (bool) ($d['multiple'] ?? false),
'accept' => isset($d['accept']) ? implode(',', array_map(fn ($ext) => '.'.$ext, self::FILE_TYPES[$d['accept']] ?? self::FILE_TYPES['any'])) : null,
'max_size' => $d['max_size'] ?? null,
'locked' => self::isLocked($field),
'condition' => filled($d['condition_field'] ?? null) ? [
'field' => $d['condition_field'],
'operator' => $d['condition_operator'] ?? 'equals',
@ -149,6 +150,38 @@ class FormFields
return $values;
}
/**
* Feld fest aus dem Profil: nicht änderbar, beim Absenden setzt der Server den Profilwert ein.
*
* @param array{type: string, data: array<string, mixed>} $field
*/
public static function isLocked(array $field): bool
{
return in_array($field['type'], ['text', 'email', 'phone'], true)
&& filled($field['data']['prefill'] ?? null)
&& (bool) ($field['data']['locked'] ?? false);
}
/**
* Eingaben für feste Profilfelder durch die Werte aus dem Profil ersetzen –
* unabhängig davon, was der Browser schickt.
*
* @param array<string, mixed> $answers
* @return array<string, mixed>
*/
public static function applyLocked(Form $form, User $user, array $answers): array
{
$profile = self::prefill($form, $user);
foreach ($form->fields ?? [] as $field) {
if (self::isLocked($field)) {
$answers[$field['data']['key']] = $profile[$field['data']['key']] ?? '';
}
}
return $answers;
}
/**
* @return array<string, string>
*/
@ -231,6 +264,12 @@ class FormFields
$messages[$name.'.accepted'] = 'Bitte bestätigen.';
}
if (self::isLocked($field)) {
$messages[$name.'.required'] = 'Diese Angabe fehlt in Ihrem Profil. Bitte ergänzen Sie sie dort (Profil bearbeiten) oder wenden Sie sich an die Personalverwaltung.';
// Profilwerte werden nicht wie Eingaben geprüft (z. B. Telefonformat).
$rules[$name] = [$required ? 'required' : 'nullable', 'string', 'max:500'];
}
if ($field['type'] === 'checkboxes') {
$rules[$name.'.*'] = ['string', Rule::in($options)];
}

View file

@ -33,6 +33,7 @@ class FormBuilderController extends Controller
'fields' => $form->fields ?? [],
'url' => $form->url(),
'submissions' => $form->submissions()->count(),
'anonymous' => $form->isAnonymous(),
],
'types' => FormFields::TYPES,
'prefillOptions' => collect(FormFields::prefillOptions())->map(fn ($label, $value) => ['value' => $value, 'label' => $label])->values(),
@ -92,9 +93,9 @@ class FormBuilderController extends Controller
{
$allowed = ['label', 'key', 'required', 'help', 'width', 'condition_field', 'condition_operator', 'condition_value'];
$allowed = [...$allowed, ...match ($type) {
'text' => ['placeholder', 'max', 'prefill'],
'text' => ['placeholder', 'max', 'prefill', 'locked'],
'textarea' => ['rows', 'max'],
'email', 'phone' => ['prefill'],
'email', 'phone' => ['prefill', 'locked'],
'number' => ['min', 'max'],
'select', 'radio' => ['options'],
'checkboxes' => ['options', 'min', 'max'],
@ -109,7 +110,7 @@ class FormBuilderController extends Controller
$clean['options'] = array_values(array_unique(array_filter(array_map(fn ($o) => trim((string) $o), $clean['options']), 'strlen')));
}
foreach (['required', 'multiple'] as $flag) {
foreach (['required', 'multiple', 'locked'] as $flag) {
if (isset($clean[$flag])) {
$clean[$flag] = (bool) $clean[$flag];
}
@ -133,6 +134,10 @@ class FormBuilderController extends Controller
unset($clean['prefill']);
}
if (empty($clean['prefill']) || empty($clean['locked'])) {
unset($clean['locked']);
}
if (isset($clean['condition_operator']) && ! in_array($clean['condition_operator'], ['equals', 'not_equals', 'contains', 'filled', 'empty'], true)) {
$clean['condition_operator'] = 'equals';
}

View file

@ -62,6 +62,8 @@ class FormController extends Controller
$answers[$key] = is_array($files) ? $files : [$files];
}
$answers = FormFields::applyLocked($form, $user, $answers);
[$rules, $attributes, $messages] = FormFields::rules($form, $answers);
$validated = Validator::make(['answers' => $answers], $rules, $messages, $attributes)->validate();

View file

@ -73,7 +73,7 @@ class NewsPlugin extends Plugin
$featured = $this->featured($user);
return $featured->isEmpty() ? null : ['posts' => NewsPostResource::collection($featured)->resolve()];
}, mobileSort: 10);
}, label: 'Slider mit hervorgehobenen Beiträgen', mobileSort: 10);
$widgets->add('news.latest', 'news::Latest', 'feed', sort: 10, props: function (User $user, Request $request) {
$posts = NewsPost::query()->published()->visibleTo($user)->with('category')
@ -84,7 +84,7 @@ class NewsPlugin extends Plugin
'posts' => NewsPostResource::collection($posts)->resolve(),
'canWrite' => $user->can('news.manage'),
];
}, mobileSort: 20);
}, label: 'Neuigkeiten', mobileSort: 20);
$widgets->add('news.areas', 'news::Areas', 'main', sort: 20, props: function (User $user) {
$posts = NewsPost::query()->published()->visibleTo($user)->with('category')
@ -92,7 +92,7 @@ class NewsPlugin extends Plugin
->latest('published_at')->skip(4)->limit(4)->get();
return $posts->isEmpty() ? null : ['posts' => NewsPostResource::collection($posts)->resolve()];
}, mobileSort: 50);
}, label: 'Aktuelles aus den Bereichen', mobileSort: 50);
}
/**

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

View file

@ -1 +1 @@
import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./Panel-BS2636BW.js";import{t as c}from"./NewsCard-BjDSMRNQ.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{t as s}from"./Panel-C7tqQA-x.js";import{t as c}from"./NewsCard-C4vJU52d.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};

View file

@ -0,0 +1 @@
import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-fPqdDpbG.js";import{t as d}from"./cake-DYVAYX9m.js";import{_ as f}from"./format-2iB7L6ww.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(f,{person:v.item.person,class:`size-10`},null,8,[`person`]),v.item.today?(a(),i(`span`,m,[e(t(d),{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};

View file

@ -0,0 +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-oSdlplYX.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};

View file

@ -1 +0,0 @@
import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{j as u}from"./utils-DfNUDixG.js";import{b as d,v as f,y as p}from"./http-CgzjkOa1.js";import{t as m}from"./lightbulb-Crmh5htw.js";var h=u({name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]}),g=u({name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]}),_=[`role`],v={class:`min-w-0 flex-1`},y={key:0,class:`mb-2 font-semibold`},b={__name:`Box`,props:{block:{type:Object,required:!0}},setup(u){let b=e(`pagebuilder:list`),x={info:{icon:p,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,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:f,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:h,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:g,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,d)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[u.block.data.variant]?.class]),role:u.block.data.variant===`warning`?`alert`:`note`},[u.block.data.show_icon?(a(),s(c(x[u.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[u.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,v,[u.block.data.title?(a(),i(`p`,y,o(u.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:u.block.items[0]},null,8,[`item`]))])],10,_))}};export{b as default};

View file

@ -0,0 +1 @@
import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{j as u}from"./dist-CleIz2GP.js";import{b as d,v as f,y as p}from"./http-C4J46rTq.js";import{t as m}from"./circle-alert-qymEjja5.js";import{t as h}from"./lightbulb-BXPWdUy9.js";var g=u({name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]}),_=[`role`],v={class:`min-w-0 flex-1`},y={key:0,class:`mb-2 font-semibold`},b={__name:`Box`,props:{block:{type:Object,required:!0}},setup(u){let b=e(`pagebuilder:list`),x={info:{icon:p,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,iconClass:`text-sky-600 dark:text-sky-400`},note:{icon:h,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:f,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:m,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:g,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,d)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[u.block.data.variant]?.class]),role:u.block.data.variant===`warning`?`alert`:`note`},[u.block.data.show_icon?(a(),s(c(x[u.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[u.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,v,[u.block.data.title?(a(),i(`p`,y,o(u.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:u.block.items[0]},null,8,[`item`]))])],10,_))}};export{b as default};

View file

@ -1 +1 @@
import{Zn as e,_ as t,b as n,g as r,mt as i,o as a,tr as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as s}from"./app-BEmka_ei.js";var c={class:`flex items-center gap-3`},l=[`src`,`alt`],u={class:`text-[17px] font-semibold tracking-tight`},d={__name:`BrandLogo`,props:{inverted:{type:Boolean,default:!1}},setup(d){let f=r(()=>s().props.branding),p=r(()=>f.value.portal_name.trim().charAt(0).toUpperCase());return(r,s)=>(i(),n(`span`,c,[f.value.logo_url?(i(),n(`img`,{key:0,src:f.value.logo_url,alt:f.value.portal_name,class:`h-8 w-auto`},null,8,l)):(i(),n(a,{key:1},[t(`span`,{class:e([`grid size-8 place-items-center rounded-md text-base font-bold`,d.inverted?`bg-white/15 text-white`:`bg-brand text-brand-foreground`])},o(p.value),3),t(`span`,u,o(f.value.portal_name),1)],64))]))}};export{d as t};
import{Zn as e,_ as t,b as n,g as r,mt as i,o as a,tr as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as s}from"./app-fPqdDpbG.js";var c={class:`flex items-center gap-3`},l=[`src`,`alt`],u={class:`text-[17px] font-semibold tracking-tight`},d={__name:`BrandLogo`,props:{inverted:{type:Boolean,default:!1}},setup(d){let f=r(()=>s().props.branding),p=r(()=>f.value.portal_name.trim().charAt(0).toUpperCase());return(r,s)=>(i(),n(`span`,c,[f.value.logo_url?(i(),n(`img`,{key:0,src:f.value.logo_url,alt:f.value.portal_name,class:`h-8 w-auto`},null,8,l)):(i(),n(a,{key:1},[t(`span`,{class:e([`grid size-8 place-items-center rounded-md text-base font-bold`,d.inverted?`bg-white/15 text-white`:`bg-brand text-brand-foreground`])},o(p.value),3),t(`span`,u,o(f.value.portal_name),1)],64))]))}};export{d as t};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{E 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{j as f}from"./utils-DfNUDixG.js";import{t as p}from"./button-BVLATeqq.js";var m=f({name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]}),h=[`href`,`target`,`rel`],g={key:0,class:`text-sm text-muted-foreground`},_={__name:`Buttons`,props:{block:{type:Object,required:!0}},setup(f){let _={primary:`default`,outline:`outline`,link:`link`};return(v,y)=>(o(),i(`div`,{class:n([`flex flex-wrap gap-3`,{"justify-center":f.block.data.align===`center`}])},[(o(!0),i(s,null,a(f.block.data.buttons,(n,i)=>(o(),u(t(p),{key:i,variant:_[n.variant]??`default`,"as-child":``},{default:c(()=>[r(`a`,{href:n.url||`#`,target:n.new_tab?`_blank`:void 0,rel:n.new_tab?`noopener`:void 0},[e(l(n.label||`Schaltfläche`)+` `,1),n.new_tab?(o(),u(t(m),{key:0})):d(``,!0)],8,h)]),_:2},1032,[`variant`]))),128)),f.block.data.buttons.length?d(``,!0):(o(),i(`p`,g,`Noch keine Schaltflächen.`))],2))}};export{_ as default};

View file

@ -0,0 +1 @@
import{E 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{j as f}from"./dist-CleIz2GP.js";import{t as p}from"./button-SRYY3-ko.js";var m=f({name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]}),h=[`href`,`target`,`rel`],g={key:0,class:`text-sm text-muted-foreground`},_={__name:`Buttons`,props:{block:{type:Object,required:!0}},setup(f){let _={primary:`default`,outline:`outline`,link:`link`};return(v,y)=>(o(),i(`div`,{class:n([`flex flex-wrap gap-3`,{"justify-center":f.block.data.align===`center`}])},[(o(!0),i(s,null,a(f.block.data.buttons,(n,i)=>(o(),u(t(p),{key:i,variant:_[n.variant]??`default`,"as-child":``},{default:c(()=>[r(`a`,{href:n.url||`#`,target:n.new_tab?`_blank`:void 0,rel:n.new_tab?`noopener`:void 0},[e(l(n.label||`Schaltfläche`)+` `,1),n.new_tab?(o(),u(t(m),{key:0})):d(``,!0)],8,h)]),_:2},1032,[`variant`]))),128)),f.block.data.buttons.length?d(``,!0):(o(),i(`p`,g,`Noch keine Schaltflächen.`))],2))}};export{_ as default};

View file

@ -1 +0,0 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-BEmka_ei.js";import{t as p}from"./mail-BO1XFIRu.js";import{t as m}from"./PersonAvatar-BA7DC_UD.js";import{t as h}from"./phone-q79Rw2te.js";var g={key:0,class:`mb-3 text-lg font-semibold`},_={class:`min-w-0`},v={key:0,class:`truncate text-[13px] text-muted-foreground`},y={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},b=[`href`],x=[`href`],S={class:`truncate`},C={key:0,class:`text-sm text-muted-foreground`},w={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(w){return(T,E)=>(s(),a(`section`,null,[w.block.data.title?(s(),a(`h3`,g,u(w.block.data.title),1)):d(``,!0),i(`div`,{class:r(w.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(s(!0),a(c,null,o(w.block.props?.people??[],o=>(s(),a(`div`,{key:o.id,class:r([`flex gap-3`,w.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(m,{person:o,class:`size-12 shrink-0`},null,8,[`person`]),i(`div`,_,[e(n(f),{href:`/personen/${o.id}`,class:`block truncate font-semibold hover:underline`},{default:l(()=>[t(u(o.name),1)]),_:2},1032,[`href`]),o.job_title?(s(),a(`p`,v,u(o.job_title),1)):d(``,!0),i(`div`,y,[o.phone?(s(),a(`a`,{key:0,href:`tel:${o.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(n(h),{class:`size-3.5`}),t(` `+u(o.phone),1)],8,b)):d(``,!0),i(`a`,{href:`mailto:${o.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(n(p),{class:`size-3.5 shrink-0`}),E[0]||=t(),i(`span`,S,u(o.email),1)],8,x)])])],2))),128)),(w.block.props?.people??[]).length?d(``,!0):(s(),a(`p`,C,`Noch keine Personen ausgewählt.`))],2)]))}};export{w as default};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-fPqdDpbG.js";import{t as p}from"./mail-BdcYMJ5_.js";import{_ as m}from"./format-2iB7L6ww.js";import{t as h}from"./phone-B-aOouYp.js";var g={key:0,class:`mb-3 text-lg font-semibold`},_={class:`min-w-0`},v={key:0,class:`truncate text-[13px] text-muted-foreground`},y={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},b=[`href`],x=[`href`],S={class:`truncate`},C={key:0,class:`text-sm text-muted-foreground`},w={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(w){return(T,E)=>(s(),a(`section`,null,[w.block.data.title?(s(),a(`h3`,g,u(w.block.data.title),1)):d(``,!0),i(`div`,{class:r(w.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(s(!0),a(c,null,o(w.block.props?.people??[],o=>(s(),a(`div`,{key:o.id,class:r([`flex gap-3`,w.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(m,{person:o,class:`size-12 shrink-0`},null,8,[`person`]),i(`div`,_,[e(n(f),{href:`/personen/${o.id}`,class:`block truncate font-semibold hover:underline`},{default:l(()=>[t(u(o.name),1)]),_:2},1032,[`href`]),o.job_title?(s(),a(`p`,v,u(o.job_title),1)):d(``,!0),i(`div`,y,[o.phone?(s(),a(`a`,{key:0,href:`tel:${o.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(n(h),{class:`size-3.5`}),t(` `+u(o.phone),1)],8,b)):d(``,!0),i(`a`,{href:`mailto:${o.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(n(p),{class:`size-3.5 shrink-0`}),E[0]||=t(),i(`span`,S,u(o.email),1)],8,x)])])],2))),128)),(w.block.props?.people??[]).length?d(``,!0):(s(),a(`p`,C,`Noch keine Personen ausgewählt.`))],2)]))}};export{w as default};

View file

@ -0,0 +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{b as u,v as d,y as f}from"./http-C4J46rTq.js";import{t as p}from"./circle-alert-qymEjja5.js";import{t as m}from"./megaphone-DL1vN9P4.js";import{t as h}from"./Panel-C7tqQA-x.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:u,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:d,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:p,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};

View file

@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Greeting-iJtQcFUW.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/app-BEmka_ei.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-Bi8FukPL.css","assets/AppLayout-CZxIxdci.js","assets/usePrimitiveElement-WzTT8b8E.js","assets/utils-DfNUDixG.js","assets/http-CgzjkOa1.js","assets/PersonAvatar-BA7DC_UD.js","assets/RovingFocusGroup-DePKKD9K.js","assets/BrandLogo-i-onuz_c.js","assets/NewColleagues-BLkoKLv-.js","assets/Panel-BS2636BW.js","assets/chevron-right-2hoRrfAe.js","assets/PeopleSearch-IJ-6cMVt.js","assets/arrow-right-CSfG3qiq.js","assets/ProfileIncomplete-zk8iMOuu.js","assets/QuickLinks-B4ymyHju.js","assets/icons-C_--K_bz.js","assets/building-complex-Drk3TBKp.js","assets/calendar-days-Cq3ZXY-S.js","assets/clock-IVbPqglU.js","assets/file-text-Dmdo-Zwf.js","assets/lightbulb-Crmh5htw.js","assets/link-BE7bRFjZ.js","assets/mail-BO1XFIRu.js","assets/phone-q79Rw2te.js","assets/chevron-left-D2Or6edo.js","assets/dist-FqXf5I3H.js","assets/Upcoming-BhZoEKQy.js","assets/EventListItem-BKnd12L-.js","assets/EventDateBlock-CbYS92pI.js","assets/EmptyState-Ceq4v8mE.js","assets/Areas-Cg7wbdp3.js","assets/NewsCard-BjDSMRNQ.js","assets/NewsImage-COF0XihT.js","assets/Hero-C40rFCdS.js","assets/play-BqfGHciU.js","assets/Latest-C4KZrsgS.js","assets/NewsListItem-D51ogFq1.js"])))=>i.map(i=>d[i]);
import{O as e,On as t,_ as n,b as r,bt as i,et as a,g as o,mt as s,o as c,qt as l,v as u,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as p}from"./app-BEmka_ei.js";import{t as m}from"./AppLayout-CZxIxdci.js";import{n as h}from"./dist-FqXf5I3H.js";var g=Object.assign({"../widgets/Greeting.vue":()=>p(()=>import(`./Greeting-iJtQcFUW.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),"../widgets/NewColleagues.vue":()=>p(()=>import(`./NewColleagues-BLkoKLv-.js`),__vite__mapDeps([12,1,2,3,4,9,6,7,8,10,13,14])),"../widgets/PeopleSearch.vue":()=>p(()=>import(`./PeopleSearch-IJ-6cMVt.js`),__vite__mapDeps([15,1,2,3,4,16,7,9,6,8,10,13,14])),"../widgets/ProfileIncomplete.vue":()=>p(()=>import(`./ProfileIncomplete-zk8iMOuu.js`),__vite__mapDeps([17,1,2,3,4,5,6,7,8,9,10,11])),"../widgets/QuickLinks.vue":()=>p(()=>import(`./QuickLinks-B4ymyHju.js`),__vite__mapDeps([18,1,2,3,4,19,7,20,21,22,23,24,25,26,9,6,8,10,27,28,14,29]))}),_=Object.assign({"../../../plugins-core/events/resources/js/widgets/Upcoming.vue":()=>p(()=>import(`./Upcoming-BhZoEKQy.js`),__vite__mapDeps([30,1,21,7,31,2,3,4,9,6,8,10,32,33,13,14])),"../../../plugins-core/news/resources/js/widgets/Areas.vue":()=>p(()=>import(`./Areas-Cg7wbdp3.js`),__vite__mapDeps([34,1,13,2,3,4,14,7,35,9,6,8,10,36])),"../../../plugins-core/news/resources/js/widgets/Hero.vue":()=>p(()=>import(`./Hero-C40rFCdS.js`),__vite__mapDeps([37,1,3,2,4,7,16,28,14,38])),"../../../plugins-core/news/resources/js/widgets/Latest.vue":()=>p(()=>import(`./Latest-C4KZrsgS.js`),__vite__mapDeps([39,1,9,6,3,7,8,10,33,13,2,4,14,40,36]))}),v={};for(let[t,n]of Object.entries(g))v[`core::${t.split(`/`).pop().replace(`.vue`,``)}`]=e(n);for(let[t,n]of Object.entries(_)){let[,r]=t.match(/plugins-core\/([^/]+)\//);v[`${r}::${t.split(`/`).pop().replace(`.vue`,``)}`]=e(n)}function y(e){return v[e]??null}var b={key:0,class:`grid grid-cols-12 gap-6`},x={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},S={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},C={key:1,class:`grid min-w-0 grid-cols-1 gap-6`},w={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(e){let p=e,g=h(`(min-width: 1024px)`),_=o(()=>p.widgets.filter(e=>y(e.component))),v=e=>_.value.filter(t=>t.area===e),w=o(()=>v(`hero`)[0]??null),T=o(()=>[..._.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(e,o)=>(s(),u(m,{title:`Startseite`},{default:l(()=>[t(g)?(s(),r(`div`,b,[n(`div`,x,[w.value?(s(),u(d(t(y)(w.value.component)),a({key:0},w.value.props,{class:`xl:col-span-2`}),null,16)):f(``,!0),(s(!0),r(c,null,i(v(`feed`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props,{wide:!w.value,class:w.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(s(!0),r(c,null,i(v(`main`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props,{class:`xl:col-span-3`}),null,16))),128))]),n(`aside`,S,[(s(!0),r(c,null,i(v(`aside`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])])):(s(),r(`div`,C,[(s(!0),r(c,null,i(T.value,e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))]))]),_:1}))}};export{w as default};

View file

@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CustomTile-YMT7Y_NZ.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/http-C4J46rTq.js","assets/usePrimitiveElement-BOk1PFhF.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-CleIz2GP.js","assets/circle-alert-qymEjja5.js","assets/megaphone-DL1vN9P4.js","assets/Panel-C7tqQA-x.js","assets/app-fPqdDpbG.js","assets/app-DzcKQJWN.css","assets/chevron-right-DR4LjgDm.js","assets/Greeting-DFM7rgPu.js","assets/AppLayout-NB83tH03.js","assets/format-2iB7L6ww.js","assets/RovingFocusGroup-rJCF33aj.js","assets/BrandLogo-7kuRvCgc.js","assets/NewColleagues-CKBPIOhS.js","assets/PeopleSearch-BWBsEzdi.js","assets/arrow-right-CdMsByuI.js","assets/ProfileIncomplete-CC2t5tNh.js","assets/QuickLinks-Diz_fOqt.js","assets/icons-DL3m7OIP.js","assets/building-complex-CrN0pJ2v.js","assets/calendar-days-s3GhWVmT.js","assets/clock-CH5MxcFu.js","assets/file-text-4udxc_PB.js","assets/lightbulb-BXPWdUy9.js","assets/link-mbI8ikd_.js","assets/mail-BdcYMJ5_.js","assets/phone-B-aOouYp.js","assets/chevron-left-CfNljcKt.js","assets/dist-BRRmd-wM.js","assets/Greeting-BN7uh037.js","assets/cake-DYVAYX9m.js","assets/Upcoming-CCVnM2pS.js","assets/BirthdayItem-oSdlplYX.js","assets/Upcoming-BQRmTxzO.js","assets/EmptyState-Ceq4v8mE.js","assets/EventListItem-Cu3bbXXb.js","assets/EventDateBlock-CaP0fN12.js","assets/Areas-CRQE6xfz.js","assets/NewsCard-C4vJU52d.js","assets/NewsImage-B0PMifSg.js","assets/Hero-d7w1bQ8B.js","assets/play-_hM1KTvn.js","assets/Latest-CyRay08_.js","assets/NewsListItem-xPdLHCFu.js"])))=>i.map(i=>d[i]);
import{O as e,On as t,_ as n,b as r,bt as i,et as a,g as o,mt as s,o as c,qt as l,v as u,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as p}from"./app-fPqdDpbG.js";import{t as m}from"./AppLayout-NB83tH03.js";import{n as h}from"./dist-BRRmd-wM.js";var g=Object.assign({"../widgets/CustomTile.vue":()=>p(()=>import(`./CustomTile-YMT7Y_NZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),"../widgets/Greeting.vue":()=>p(()=>import(`./Greeting-DFM7rgPu.js`),__vite__mapDeps([12,1,9,4,10,13,3,5,2,14,15,16])),"../widgets/NewColleagues.vue":()=>p(()=>import(`./NewColleagues-CKBPIOhS.js`),__vite__mapDeps([17,1,9,4,10,14,3,5,2,15,8,11])),"../widgets/PeopleSearch.vue":()=>p(()=>import(`./PeopleSearch-BWBsEzdi.js`),__vite__mapDeps([18,1,9,4,10,19,5,14,3,2,15,8,11])),"../widgets/ProfileIncomplete.vue":()=>p(()=>import(`./ProfileIncomplete-CC2t5tNh.js`),__vite__mapDeps([20,1,9,4,10,13,3,5,2,14,15,16])),"../widgets/QuickLinks.vue":()=>p(()=>import(`./QuickLinks-Diz_fOqt.js`),__vite__mapDeps([21,1,9,4,10,22,5,23,24,25,26,27,28,29,7,14,3,2,15,30,31,11,32]))}),_=Object.assign({"../../../plugins-core/birthdays/resources/js/widgets/Greeting.vue":()=>p(()=>import(`./Greeting-BN7uh037.js`),__vite__mapDeps([33,1,34,5,2,3,4])),"../../../plugins-core/birthdays/resources/js/widgets/Upcoming.vue":()=>p(()=>import(`./Upcoming-CCVnM2pS.js`),__vite__mapDeps([35,1,36,9,4,10,34,5,14,3,2,15,8,11])),"../../../plugins-core/events/resources/js/widgets/Upcoming.vue":()=>p(()=>import(`./Upcoming-BQRmTxzO.js`),__vite__mapDeps([37,1,24,5,38,8,9,4,10,11,39,14,3,2,15,40])),"../../../plugins-core/news/resources/js/widgets/Areas.vue":()=>p(()=>import(`./Areas-CRQE6xfz.js`),__vite__mapDeps([41,1,8,9,4,10,11,5,42,14,3,2,15,43])),"../../../plugins-core/news/resources/js/widgets/Hero.vue":()=>p(()=>import(`./Hero-d7w1bQ8B.js`),__vite__mapDeps([44,1,4,9,10,5,19,31,11,45])),"../../../plugins-core/news/resources/js/widgets/Latest.vue":()=>p(()=>import(`./Latest-CyRay08_.js`),__vite__mapDeps([46,1,14,3,4,5,2,15,38,8,9,10,11,47,43]))}),v={};for(let[t,n]of Object.entries(g))v[`core::${t.split(`/`).pop().replace(`.vue`,``)}`]=e(n);for(let[t,n]of Object.entries(_)){let[,r]=t.match(/plugins-core\/([^/]+)\//);v[`${r}::${t.split(`/`).pop().replace(`.vue`,``)}`]=e(n)}function y(e){return v[e]??null}var b={key:0,class:`mb-6 grid gap-6`},x={key:1,class:`grid grid-cols-12 gap-6`},S={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},C={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},w={key:2,class:`grid min-w-0 grid-cols-1 gap-6`},T={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(e){let p=e,g=h(`(min-width: 1024px)`),_=o(()=>p.widgets.filter(e=>y(e.component))),v=e=>_.value.filter(t=>t.area===e),T=o(()=>v(`hero`)[0]??null),E=o(()=>[..._.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(e,o)=>(s(),u(m,{title:`Startseite`},{default:l(()=>[t(g)&&v(`top`).length?(s(),r(`div`,b,[(s(!0),r(c,null,i(v(`top`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])):f(``,!0),t(g)?(s(),r(`div`,x,[n(`div`,S,[T.value?(s(),u(d(t(y)(T.value.component)),a({key:0},T.value.props,{class:`xl:col-span-2`}),null,16)):f(``,!0),(s(!0),r(c,null,i(v(`feed`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props,{wide:!T.value,class:T.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(s(!0),r(c,null,i(v(`main`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props,{class:`xl:col-span-3`}),null,16))),128))]),n(`aside`,C,[(s(!0),r(c,null,i(v(`aside`),e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])])):(s(),r(`div`,w,[(s(!0),r(c,null,i(E.value,e=>(s(),u(d(t(y)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))]))]),_:1}))}};export{T as default};

View file

@ -1 +0,0 @@
import{a as e}from"./usePrimitiveElement-WzTT8b8E.js";import{On as t,Zn as n,b as r,et as i,k as a,mt as o,qt as s,v as c,xt as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{c as u,h as d,p as f,t as p}from"./utils-DfNUDixG.js";import{b as m}from"./PersonAvatar-BA7DC_UD.js";var h=a({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let n=e;d();let r=m();return(e,a)=>(o(),c(t(f),i(n,{id:t(r).descriptionId}),{default:s(()=>[l(e.$slots,`default`)]),_:3},16,[`id`]))}}),g=a({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n,a=u(r,`class`),d=e(a);return(e,n)=>(o(),c(t(h),i({"data-slot":`dialog-description`},t(d),{class:t(p)(`text-muted-foreground text-sm`,r.class)}),{default:s(()=>[l(e.$slots,`default`)]),_:3},16,[`class`]))}}),_=a({__name:`DialogHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let i=e;return(e,a)=>(o(),r(`div`,{"data-slot":`dialog-header`,class:n(t(p)(`flex flex-col gap-2 text-center sm:text-left`,i.class))},[l(e.$slots,`default`)],2))}});export{g as n,_ as t};

View file

@ -0,0 +1 @@
import{a as e}from"./usePrimitiveElement-BOk1PFhF.js";import{On as t,Zn as n,b as r,et as i,k as a,mt as o,qt as s,v as c,xt as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{d as u,h as d,o as f,p}from"./dist-CleIz2GP.js";import{D as m}from"./format-2iB7L6ww.js";var h=a({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let n=e;d();let r=m();return(e,a)=>(o(),c(t(p),i(n,{id:t(r).descriptionId}),{default:s(()=>[l(e.$slots,`default`)]),_:3},16,[`id`]))}}),g=a({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(n){let r=n,a=f(r,`class`),d=e(a);return(e,n)=>(o(),c(t(h),i({"data-slot":`dialog-description`},t(d),{class:t(u)(`text-muted-foreground text-sm`,r.class)}),{default:s(()=>[l(e.$slots,`default`)]),_:3},16,[`class`]))}}),_=a({__name:`DialogHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let i=e;return(e,a)=>(o(),r(`div`,{"data-slot":`dialog-header`,class:n(t(u)(`flex flex-col gap-2 text-center sm:text-left`,i.class))},[l(e.$slots,`default`)],2))}});export{g as n,_ as t};

View file

@ -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-DlQuIU5u.js";import{t as u}from"./file-text-Dmdo-Zwf.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-cH_7CRKx.js";import{t as u}from"./file-text-4udxc_PB.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

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-BEmka_ei.js";import{t as p}from"./download-DlQuIU5u.js";import{t as m}from"./pencil-line-BmOFaoN0.js";import{t as h}from"./plus-CGTHU-CI.js";import{t as g}from"./table-properties-CEIj_sW5.js";import{t as _}from"./button-BVLATeqq.js";import{t as v}from"./Panel-BS2636BW.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{n as f}from"./app-fPqdDpbG.js";import{t as p}from"./download-cH_7CRKx.js";import{t as m}from"./pencil-line-Cp-EHBoW.js";import{t as h}from"./plus-cKZvz4wH.js";import{t as g}from"./table-properties-B82lvC7D.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Panel-C7tqQA-x.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};

View file

@ -1 +0,0 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-BEmka_ei.js";import{t as m}from"./message-square-warning-CzxLG9ol.js";import{E as h}from"./PersonAvatar-BA7DC_UD.js";import{t as g}from"./plus-CGTHU-CI.js";import{t as _}from"./button-BVLATeqq.js";import{t as v}from"./Panel-BS2636BW.js";var y={class:`grid gap-5`},b={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},x={key:0,class:`ml-1 rounded-full bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},S={key:0,class:`-mx-5 divide-y border-y`},C={class:`min-w-0 flex-1`},w={class:`truncate text-xs text-muted-foreground`},T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=e=>({pending:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`,published:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`,draft:`bg-muted text-muted-foreground`})[e.status];return(O,k)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[E.canCreate?(s(),d(n(_),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(g)),k[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,y,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:E.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:E.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:E.scheduled,empty:null}].filter(e=>e.items.length||e.empty),g=>(s(),a(`section`,{key:g.key},[i(`h3`,b,[t(u(g.title)+` `,1),g.key===`review`?(s(),a(`span`,x,u(g.items.length),1)):f(``,!0)]),g.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(g.items,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,C,[e(n(p),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,w,[t(u(o.category??`Ohne Kategorie`),1),g.key!==`mine`&&o.author?(s(),a(c,{key:0},[t(` · `+u(o.author),1)],64)):f(``,!0),o.date?(s(),a(c,{key:1},[t(` · `+u(n(h)(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(g.empty),1))]))),128))])]),_:1}))}};export{E as default};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-fPqdDpbG.js";import{t as m}from"./message-square-warning-CUD7Iy66.js";import{a as h}from"./format-2iB7L6ww.js";import{t as g}from"./plus-cKZvz4wH.js";import{t as _}from"./button-SRYY3-ko.js";import{t as v}from"./Panel-C7tqQA-x.js";var y={class:`grid gap-5`},b={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},x={key:0,class:`ml-1 rounded-full bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},S={key:0,class:`-mx-5 divide-y border-y`},C={class:`min-w-0 flex-1`},w={class:`truncate text-xs text-muted-foreground`},T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=e=>({pending:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`,published:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`,draft:`bg-muted text-muted-foreground`})[e.status];return(O,k)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[E.canCreate?(s(),d(n(_),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(g)),k[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,y,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:E.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:E.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:E.scheduled,empty:null}].filter(e=>e.items.length||e.empty),g=>(s(),a(`section`,{key:g.key},[i(`h3`,b,[t(u(g.title)+` `,1),g.key===`review`?(s(),a(`span`,x,u(g.items.length),1)):f(``,!0)]),g.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(g.items,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,C,[e(n(p),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,w,[t(u(o.category??`Ohne Kategorie`),1),g.key!==`mine`&&o.author?(s(),a(c,{key:0},[t(` · `+u(o.author),1)],64)):f(``,!0),o.date?(s(),a(c,{key:1},[t(` · `+u(n(h)(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(g.empty),1))]))),128))])]),_:1}))}};export{E as default};

View file

@ -1 +0,0 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-BEmka_ei.js";import{t as g}from"./lock-DtEIVsTL.js";import{E as _}from"./PersonAvatar-BA7DC_UD.js";import{t as v}from"./plus-CGTHU-CI.js";import{t as y}from"./button-BVLATeqq.js";import{t as b}from"./Panel-BS2636BW.js";import{t as x}from"./NewPageDialog-b5toQ-4w.js";var S={key:0,class:`-mx-5 divide-y border-t`},C={class:`text-xs text-muted-foreground`},w=[`title`],T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialPages`,props:{pages:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=p(!1),O={published:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`},draft:{label:`Entwurf`,class:`bg-brand-soft text-brand-soft-foreground`},scheduled:{label:`Geplant`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},new:{label:`Neu`,class:`bg-muted text-muted-foreground`}};return(p,k)=>(c(),f(b,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(y),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(v)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(_)(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};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-fPqdDpbG.js";import{t as g}from"./lock-4X8Kfof0.js";import{a as _}from"./format-2iB7L6ww.js";import{t as v}from"./plus-cKZvz4wH.js";import{t as y}from"./button-SRYY3-ko.js";import{t as b}from"./Panel-C7tqQA-x.js";import{t as x}from"./NewPageDialog-DyWdsqyH.js";var S={key:0,class:`-mx-5 divide-y border-t`},C={class:`text-xs text-muted-foreground`},w=[`title`],T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialPages`,props:{pages:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=p(!1),O={published:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`},draft:{label:`Entwurf`,class:`bg-brand-soft text-brand-soft-foreground`},scheduled:{label:`Geplant`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},new:{label:`Neu`,class:`bg-muted text-muted-foreground`}};return(p,k)=>(c(),f(b,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(y),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(v)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(_)(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};

View file

@ -0,0 +1 @@
import{_ as e,b as t,g as n,mt as r,tr as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as a}from"./format-2iB7L6ww.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-muted-foreground`},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};

View file

@ -1 +0,0 @@
import{_ as e,b as t,g as n,mt as r,tr as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{S as a}from"./PersonAvatar-BA7DC_UD.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-muted-foreground`},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};

View file

@ -1 +0,0 @@
import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-BEmka_ei.js";import{w as u}from"./PersonAvatar-BA7DC_UD.js";import{t as d}from"./EventDateBlock-CbYS92pI.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};

View file

@ -0,0 +1 @@
import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-fPqdDpbG.js";import{r as u}from"./format-2iB7L6ww.js";import{t as d}from"./EventDateBlock-CaP0fN12.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};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as d,r as f}from"./app-fPqdDpbG.js";import{A as p}from"./dist-CleIz2GP.js";import{t as m}from"./arrow-left-nZZEveo4.js";import{t as h}from"./FormField-BcJMyuzX.js";import{t as g}from"./button-SRYY3-ko.js";import{t as _}from"./Input-CgjHXzkf.js";import{t as v}from"./GuestLayout-DEOqZpDz.js";var y={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},b={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(b){let x=f({email:``});return(f,S)=>(a(),c(v,{title:`Passwort vergessen`,description:`Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können.`},{default:o(()=>[b.status?(a(),i(`div`,y,s(b.status),1)):l(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:S[1]||=u(e=>n(x).post(`/forgot-password`),[`prevent`])},[e(h,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(_),{id:`email`,modelValue:n(x).email,"onUpdate:modelValue":S[0]||=e=>n(x).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(n(g),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(x).processing},{default:o(()=>[n(x).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(m),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default};

View file

@ -1 +0,0 @@
import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as d,r as f}from"./app-BEmka_ei.js";import{A as p}from"./utils-DfNUDixG.js";import{t as m}from"./arrow-left-CeYKHQbE.js";import{t as h}from"./FormField-D33HIO77.js";import{t as g}from"./button-BVLATeqq.js";import{t as _}from"./Input-DE5SwW-e.js";import{t as v}from"./GuestLayout-k_8zfPw7.js";var y={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},b={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(b){let x=f({email:``});return(f,S)=>(a(),c(v,{title:`Passwort vergessen`,description:`Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können.`},{default:o(()=>[b.status?(a(),i(`div`,y,s(b.status),1)):l(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:S[1]||=u(e=>n(x).post(`/forgot-password`),[`prevent`])},[e(h,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(_),{id:`email`,modelValue:n(x).email,"onUpdate:modelValue":S[0]||=e=>n(x).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(n(g),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(x).processing},{default:o(()=>[n(x).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(m),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default};

View file

@ -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-vzhXmnNK.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-D9Ou7ynT.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};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,b as r,et as i,k as a,mt as o,qt as s,tr as c,v as l,xt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{d as f,h as p,o as m,p as h}from"./dist-CleIz2GP.js";var g=a({__name:`Label`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`label`}},setup(e){let t=e;return p(),(e,r)=>(o(),l(n(h),i(t,{onMousedown:r[0]||=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()}}),{default:s(()=>[u(e.$slots,`default`)]),_:3},16))}}),_=a({__name:`Label`,props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,r=m(t,`class`);return(e,a)=>(o(),l(n(g),i({"data-slot":`label`},n(r),{class:n(f)(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,t.class)}),{default:s(()=>[u(e.$slots,`default`)]),_:3},16,[`class`]))}}),v={class:`grid content-start gap-1.5`},y={key:0,class:`text-[13px] text-destructive`},b={key:1,class:`text-[13px] text-muted-foreground`},x={__name:`FormField`,props:{id:{type:String,required:!0},label:{type:String,required:!0},error:{type:String,default:``},hint:{type:String,default:``}},setup(i){return(a,l)=>(o(),r(`div`,v,[e(n(_),{for:i.id,class:`text-[13px] font-medium`},{default:s(()=>[t(c(i.label),1)]),_:1},8,[`for`]),u(a.$slots,`default`),i.error?(o(),r(`p`,y,c(i.error),1)):i.hint?(o(),r(`p`,b,c(i.hint),1)):d(``,!0)]))}};export{_ as n,x as t};

View file

@ -1 +0,0 @@
import{D as e,E as t,On as n,b as r,et as i,k as a,mt as o,qt as s,tr as c,v as l,xt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{c as f,h as p,p as m,t as h}from"./utils-DfNUDixG.js";var g=a({__name:`Label`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`label`}},setup(e){let t=e;return p(),(e,r)=>(o(),l(n(m),i(t,{onMousedown:r[0]||=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()}}),{default:s(()=>[u(e.$slots,`default`)]),_:3},16))}}),_=a({__name:`Label`,props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,r=f(t,`class`);return(e,a)=>(o(),l(n(g),i({"data-slot":`label`},n(r),{class:n(h)(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,t.class)}),{default:s(()=>[u(e.$slots,`default`)]),_:3},16,[`class`]))}}),v={class:`grid content-start gap-1.5`},y={key:0,class:`text-[13px] text-destructive`},b={key:1,class:`text-[13px] text-muted-foreground`},x={__name:`FormField`,props:{id:{type:String,required:!0},label:{type:String,required:!0},error:{type:String,default:``},hint:{type:String,default:``}},setup(i){return(a,l)=>(o(),r(`div`,v,[e(n(_),{for:i.id,class:`text-[13px] font-medium`},{default:s(()=>[t(c(i.label),1)]),_:1},8,[`for`]),u(a.$slots,`default`),i.error?(o(),r(`p`,y,c(i.error),1)):i.hint?(o(),r(`p`,b,c(i.hint),1)):d(``,!0)]))}};export{_ as n,x as t};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as m}from"./image-B2vtsdro.js";import{i as h,r as g,t as _}from"./dialog-Cs_lmohf.js";var v=[`onClick`],y=[`src`,`alt`],b={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},x={key:2,class:`mt-1.5 text-xs text-muted-foreground`},S={key:0,class:`col-span-full text-sm text-muted-foreground`},C=[`src`,`alt`],w={key:1,class:`px-2 pb-1 text-sm text-muted-foreground`},T={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(T){let E=T,D={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},O=s(()=>E.block.data.images.map((e,t)=>({...e,url:E.block.props?.urls?.[t]??null}))),k=f(null);return(s,f)=>(c(),a(l,null,[i(`div`,{class:r([`grid grid-cols-2 gap-3`,D[T.block.data.columns]])},[(c(!0),a(l,null,o(O.value,(t,r)=>(c(),a(`figure`,{key:r},[t.url?(c(),a(`button`,{key:0,type:`button`,class:`block w-full overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,onClick:e=>k.value=t},[i(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform hover:scale-[1.02]`},null,8,y)],8,v)):(c(),a(`div`,b,[e(n(m),{class:`size-6`})])),t.caption?(c(),a(`figcaption`,x,d(t.caption),1)):p(``,!0)]))),128)),O.value.length?p(``,!0):(c(),a(`p`,S,`Noch keine Bilder.`))],2),e(n(h),{open:!!k.value,"onUpdate:open":f[0]||=e=>!e&&(k.value=null)},{default:u(()=>[e(n(g),{class:`max-w-5xl p-2 sm:max-w-5xl`},{default:u(()=>[e(n(_),{class:`sr-only`},{default:u(()=>[t(d(k.value?.alt||`Bild`),1)]),_:1}),k.value?(c(),a(`img`,{key:0,src:k.value.url,alt:k.value.alt,class:`max-h-[80vh] w-full rounded-md object-contain`},null,8,C)):p(``,!0),k.value?.caption?(c(),a(`p`,w,d(k.value.caption),1)):p(``,!0)]),_:1})]),_:1},8,[`open`])],64))}};export{T as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as m}from"./image-DWzRulZ0.js";import{i as h,r as g,t as _}from"./dialog-Bnq2xLhE.js";var v=[`onClick`],y=[`src`,`alt`],b={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},x={key:2,class:`mt-1.5 text-xs text-muted-foreground`},S={key:0,class:`col-span-full text-sm text-muted-foreground`},C=[`src`,`alt`],w={key:1,class:`px-2 pb-1 text-sm text-muted-foreground`},T={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(T){let E=T,D={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},O=s(()=>E.block.data.images.map((e,t)=>({...e,url:E.block.props?.urls?.[t]??null}))),k=f(null);return(s,f)=>(c(),a(l,null,[i(`div`,{class:r([`grid grid-cols-2 gap-3`,D[T.block.data.columns]])},[(c(!0),a(l,null,o(O.value,(t,r)=>(c(),a(`figure`,{key:r},[t.url?(c(),a(`button`,{key:0,type:`button`,class:`block w-full overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,onClick:e=>k.value=t},[i(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform hover:scale-[1.02]`},null,8,y)],8,v)):(c(),a(`div`,b,[e(n(m),{class:`size-6`})])),t.caption?(c(),a(`figcaption`,x,d(t.caption),1)):p(``,!0)]))),128)),O.value.length?p(``,!0):(c(),a(`p`,S,`Noch keine Bilder.`))],2),e(n(h),{open:!!k.value,"onUpdate:open":f[0]||=e=>!e&&(k.value=null)},{default:u(()=>[e(n(g),{class:`max-w-5xl p-2 sm:max-w-5xl`},{default:u(()=>[e(n(_),{class:`sr-only`},{default:u(()=>[t(d(k.value?.alt||`Bild`),1)]),_:1}),k.value?(c(),a(`img`,{key:0,src:k.value.url,alt:k.value.alt,class:`max-h-[80vh] w-full rounded-md object-contain`},null,8,C)):p(``,!0),k.value?.caption?(c(),a(`p`,w,d(k.value.caption),1)):p(``,!0)]),_:1})]),_:1},8,[`open`])],64))}};export{T as default};

View file

@ -0,0 +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"./cake-DYVAYX9m.js";import{_ as u}from"./http-C4J46rTq.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(l),{class:`size-6`})]),r(`div`,m,[r(`p`,h,`Alles Gute zum Geburtstag, `+o(_.name)+`!`,1),g[0]||=r(`p`,{class:`mt-0.5 text-sm opacity-90`},`Wir wünschen Ihnen einen schönen Tag.`,-1)]),r(`button`,{type:`button`,class:`grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15`,"aria-label":`Glückwunsch ausblenden`,onClick:b},[e(t(u),{class:`size-5`})])])]))}};export{g as default};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,_ as r,b as i,g as a,mt as o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u,n as d}from"./app-fPqdDpbG.js";import{a as f,i as p,n as m,r as h}from"./AppLayout-NB83tH03.js";import{_ as g}from"./format-2iB7L6ww.js";var _={class:`overflow-hidden rounded-lg border bg-card`},v={class:`flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground`},y={class:`min-w-0`},b={class:`text-sm opacity-85`},x={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},S={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},C={class:`grid grid-cols-3 divide-x`,"aria-label":`Mein Bereich`},w={key:0,href:`/admin`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},T={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(a){return(u,T)=>(o(),i(`section`,_,[r(`div`,v,[r(`div`,y,[r(`div`,b,c(a.greeting)+`,`,1),r(`div`,x,c(a.user.name),1),r(`div`,S,c(a.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(g,{person:a.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),r(`nav`,C,[e(n(d),{href:`/personen/${a.user.id}`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(m),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(d),{href:`/profil/bearbeiten`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(h),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[1]||=t(` Profil bearbeiten `,-1)]),_:1}),a.user.can_admin?(o(),i(`a`,w,[e(n(p),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[2]||=t(` Administration `,-1)])):(o(),l(n(d),{key:1,href:`/logout`,method:`post`,as:`button`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(f),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[3]||=t(` Abmelden `,-1)]),_:1}))])]))}},E={__name:`Greeting`,props:{profile:{type:Object,required:!0}},setup(e){let t=e,n=u(),r=a(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(o(),l(T,{user:r.value,profile:e.profile,greeting:i.value},null,8,[`user`,`profile`,`greeting`]))}};export{E as default};

View file

@ -1 +0,0 @@
import{D as e,E as t,On as n,_ as r,b as i,g as a,mt as o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u,n as d}from"./app-BEmka_ei.js";import{a as f,i as p,n as m,r as h}from"./AppLayout-CZxIxdci.js";import{t as g}from"./PersonAvatar-BA7DC_UD.js";var _={class:`overflow-hidden rounded-lg border bg-card`},v={class:`flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground`},y={class:`min-w-0`},b={class:`text-sm opacity-85`},x={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},S={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},C={class:`grid grid-cols-3 divide-x`,"aria-label":`Mein Bereich`},w={key:0,href:`/admin`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},T={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(a){return(u,T)=>(o(),i(`section`,_,[r(`div`,v,[r(`div`,y,[r(`div`,b,c(a.greeting)+`,`,1),r(`div`,x,c(a.user.name),1),r(`div`,S,c(a.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(g,{person:a.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),r(`nav`,C,[e(n(d),{href:`/personen/${a.user.id}`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(m),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(d),{href:`/profil/bearbeiten`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(h),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[1]||=t(` Profil bearbeiten `,-1)]),_:1}),a.user.can_admin?(o(),i(`a`,w,[e(n(p),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[2]||=t(` Administration `,-1)])):(o(),l(n(d),{key:1,href:`/logout`,method:`post`,as:`button`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(f),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[3]||=t(` Abmelden `,-1)]),_:1}))])]))}},E={__name:`Greeting`,props:{profile:{type:Object,required:!0}},setup(e){let t=e,n=u(),r=a(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(o(),l(T,{user:r.value,profile:e.profile,greeting:i.value},null,8,[`user`,`profile`,`greeting`]))}};export{E as default};

View file

@ -1 +1 @@
import{D as e,On as t,_ as n,b as r,g as i,mt as a,o,tr as s,xt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u,t as d}from"./app-BEmka_ei.js";import{t as f}from"./BrandLogo-i-onuz_c.js";var p={class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},m={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},h={class:`relative max-w-md`},g={class:`mt-4 text-[15px] opacity-80`},_={class:`relative text-xs opacity-60`},v={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},y={class:`w-full max-w-[400px]`},b={class:`mb-10 lg:hidden`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(w){let T=w,E=i(()=>u().props.branding);return(i,u)=>(a(),r(o,null,[e(t(d),{title:T.title},null,8,[`title`]),n(`div`,p,[n(`aside`,m,[u[1]||=n(`div`,{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%)`}},null,-1),e(f,{inverted:``,class:`relative`}),n(`div`,h,[u[0]||=n(`p`,{class:`text-3xl leading-tight font-semibold tracking-tight`},`Alles Wichtige für Ihren Arbeitsalltag – an einem Ort.`,-1),n(`p`,g,`Neuigkeiten, Ansprechpartner und Anwendungen von `+s(E.value.portal_name)+`.`,1)]),n(`p`,_,`© `+s(new Date().getFullYear())+` `+s(E.value.portal_name),1)]),n(`main`,v,[n(`div`,y,[n(`div`,b,[e(f)]),n(`h1`,x,s(T.title),1),T.description?(a(),r(`p`,S,s(T.description),1)):l(``,!0),n(`div`,C,[c(i.$slots,`default`)])])])])],64))}};export{w as t};
import{D as e,On as t,_ as n,b as r,g as i,mt as a,o,tr as s,xt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u,t as d}from"./app-fPqdDpbG.js";import{t as f}from"./BrandLogo-7kuRvCgc.js";var p={class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},m={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},h={class:`relative max-w-md`},g={class:`mt-4 text-[15px] opacity-80`},_={class:`relative text-xs opacity-60`},v={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},y={class:`w-full max-w-[400px]`},b={class:`mb-10 lg:hidden`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(w){let T=w,E=i(()=>u().props.branding);return(i,u)=>(a(),r(o,null,[e(t(d),{title:T.title},null,8,[`title`]),n(`div`,p,[n(`aside`,m,[u[1]||=n(`div`,{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%)`}},null,-1),e(f,{inverted:``,class:`relative`}),n(`div`,h,[u[0]||=n(`p`,{class:`text-3xl leading-tight font-semibold tracking-tight`},`Alles Wichtige für Ihren Arbeitsalltag – an einem Ort.`,-1),n(`p`,g,`Neuigkeiten, Ansprechpartner und Anwendungen von `+s(E.value.portal_name)+`.`,1)]),n(`p`,_,`© `+s(new Date().getFullYear())+` `+s(E.value.portal_name),1)]),n(`main`,v,[n(`div`,y,[n(`div`,b,[e(f)]),n(`h1`,x,s(T.title),1),T.description?(a(),r(`p`,S,s(T.description),1)):l(``,!0),n(`div`,C,[c(i.$slots,`default`)])])])])],64))}};export{w as t};

View file

@ -1 +0,0 @@
import{D as e,E as t,On as n,Yt as r,Zn as i,_ as a,b as o,bt as s,ct as c,g as l,it as u,mt as d,o as f,qt as p,tr as m,v as h,vn as g,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{S as v,n as y}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as b}from"./app-BEmka_ei.js";import{j as x}from"./utils-DfNUDixG.js";import{t as S}from"./arrow-right-CSfG3qiq.js";import{t as C}from"./chevron-left-D2Or6edo.js";import{t as w}from"./chevron-right-2hoRrfAe.js";import{t as T}from"./play-BqfGHciU.js";var E=x({name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]}),D=[`src`],O={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},k={key:0,class:`mb-3 w-fit rounded-sm bg-brand px-2 py-0.5 text-[11px] font-semibold tracking-wide text-brand-foreground uppercase`},A={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},j={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},M={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},N={class:`flex items-center gap-1.5 px-1`},P=[`aria-label`,`aria-current`,`onClick`],F=[`aria-label`],I={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(x){let I=x,L=g(0),R=g(!1),z=l(()=>I.posts[L.value]),B=null;function V(e){L.value=(e+I.posts.length)%I.posts.length}function H(){U(),I.posts.length>1&&!R.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(B=setInterval(()=>V(L.value+1),7e3))}function U(){clearInterval(B)}function W(){R.value=!R.value,H()}return c(H),u(U),(c,l)=>(d(),o(`section`,{class:`relative isolate aspect-[16/10] overflow-hidden rounded-lg bg-brand-950 text-white sm:aspect-[16/9] lg:aspect-auto lg:h-full lg:min-h-[400px]`,"aria-roledescription":`Karussell`,"aria-label":`Hervorgehobene Neuigkeiten`,onMouseenter:U,onMouseleave:H,onFocusin:U,onFocusout:H},[e(y,{"enter-active-class":`transition-opacity duration-700`,"leave-active-class":`transition-opacity duration-700 absolute inset-0`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:p(()=>[(d(!0),o(f,null,s(x.posts,(e,t)=>r((d(),o(`img`,{key:e.id,src:e.cover_url,alt:``,class:`absolute inset-0 -z-10 size-full object-cover`},null,8,D)),[[v,t===L.value]])),128))]),_:1}),l[3]||=a(`div`,{class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/35 to-black/5 sm:bg-gradient-to-r sm:from-black/75 sm:via-black/40 sm:to-transparent`},null,-1),a(`div`,O,[z.value.category?(d(),o(`span`,k,m(z.value.category.name),1)):_(``,!0),a(`h2`,A,m(z.value.title),1),z.value.teaser?(d(),o(`p`,j,m(z.value.teaser),1)):_(``,!0),e(n(b),{href:`/neuigkeiten/${z.value.slug}`,class:`mt-5 inline-flex w-fit items-center gap-2 rounded-md bg-brand px-4 py-2.5 text-sm font-medium text-brand-foreground transition-colors hover:bg-brand-700`},{default:p(()=>[l[2]||=t(` Mehr erfahren `,-1),e(n(S),{class:`size-4`})]),_:1},8,[`href`])]),x.posts.length>1?(d(),o(`div`,M,[a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:l[0]||=e=>V(L.value-1)},[e(n(C),{class:`size-5`})]),a(`div`,N,[(d(!0),o(f,null,s(x.posts,(e,t)=>(d(),o(`button`,{key:e.id,type:`button`,class:i([`h-1.5 rounded-full transition-all`,t===L.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${x.posts.length}`,"aria-current":t===L.value,onClick:e=>V(t)},null,10,P))),128))]),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Nächster Beitrag`,onClick:l[1]||=e=>V(L.value+1)},[e(n(w),{class:`size-5`})]),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":R.value?`Automatisch weiterblättern`:`Anhalten`,onClick:W},[R.value?(d(),h(n(T),{key:0,class:`size-4`})):(d(),h(n(E),{key:1,class:`size-4`}))],8,F)])):_(``,!0)],32))}},L={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(d(),h(I,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{L as default};

View file

@ -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{t as l}from"./button-BVLATeqq.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{t as l}from"./button-SRYY3-ko.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};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,Yt as r,Zn as i,_ as a,b as o,bt as s,ct as c,g as l,it as u,mt as d,o as f,qt as p,tr as m,v as h,vn as g,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{S as v,n as y}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as b}from"./app-fPqdDpbG.js";import{j as x}from"./dist-CleIz2GP.js";import{t as S}from"./arrow-right-CdMsByuI.js";import{t as C}from"./chevron-left-CfNljcKt.js";import{t as w}from"./chevron-right-DR4LjgDm.js";import{t as T}from"./play-_hM1KTvn.js";var E=x({name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]}),D=[`src`],O={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},k={key:0,class:`mb-3 w-fit rounded-sm bg-brand px-2 py-0.5 text-[11px] font-semibold tracking-wide text-brand-foreground uppercase`},A={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},j={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},M={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},N={class:`flex items-center gap-1.5 px-1`},P=[`aria-label`,`aria-current`,`onClick`],F=[`aria-label`],I={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(x){let I=x,L=g(0),R=g(!1),z=l(()=>I.posts[L.value]),B=null;function V(e){L.value=(e+I.posts.length)%I.posts.length}function H(){U(),I.posts.length>1&&!R.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(B=setInterval(()=>V(L.value+1),7e3))}function U(){clearInterval(B)}function W(){R.value=!R.value,H()}return c(H),u(U),(c,l)=>(d(),o(`section`,{class:`relative isolate aspect-[16/10] overflow-hidden rounded-lg bg-brand-950 text-white sm:aspect-[16/9] lg:aspect-auto lg:h-full lg:min-h-[400px]`,"aria-roledescription":`Karussell`,"aria-label":`Hervorgehobene Neuigkeiten`,onMouseenter:U,onMouseleave:H,onFocusin:U,onFocusout:H},[e(y,{"enter-active-class":`transition-opacity duration-700`,"leave-active-class":`transition-opacity duration-700 absolute inset-0`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:p(()=>[(d(!0),o(f,null,s(x.posts,(e,t)=>r((d(),o(`img`,{key:e.id,src:e.cover_url,alt:``,class:`absolute inset-0 -z-10 size-full object-cover`},null,8,D)),[[v,t===L.value]])),128))]),_:1}),l[3]||=a(`div`,{class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/35 to-black/5 sm:bg-gradient-to-r sm:from-black/75 sm:via-black/40 sm:to-transparent`},null,-1),a(`div`,O,[z.value.category?(d(),o(`span`,k,m(z.value.category.name),1)):_(``,!0),a(`h2`,A,m(z.value.title),1),z.value.teaser?(d(),o(`p`,j,m(z.value.teaser),1)):_(``,!0),e(n(b),{href:`/neuigkeiten/${z.value.slug}`,class:`mt-5 inline-flex w-fit items-center gap-2 rounded-md bg-brand px-4 py-2.5 text-sm font-medium text-brand-foreground transition-colors hover:bg-brand-700`},{default:p(()=>[l[2]||=t(` Mehr erfahren `,-1),e(n(S),{class:`size-4`})]),_:1},8,[`href`])]),x.posts.length>1?(d(),o(`div`,M,[a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:l[0]||=e=>V(L.value-1)},[e(n(C),{class:`size-5`})]),a(`div`,N,[(d(!0),o(f,null,s(x.posts,(e,t)=>(d(),o(`button`,{key:e.id,type:`button`,class:i([`h-1.5 rounded-full transition-all`,t===L.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${x.posts.length}`,"aria-current":t===L.value,onClick:e=>V(t)},null,10,P))),128))]),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Nächster Beitrag`,onClick:l[1]||=e=>V(L.value+1)},[e(n(w),{class:`size-5`})]),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":R.value?`Automatisch weiterblättern`:`Anhalten`,onClick:W},[R.value?(d(),h(n(T),{key:0,class:`size-4`})):(d(),h(n(E),{key:1,class:`size-4`}))],8,F)])):_(``,!0)],32))}},L={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(d(),h(I,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{L as default};

View file

@ -1 +1 @@
import{On as e,Zn as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./icons-C_--K_bz.js";import{t as p}from"./link-BE7bRFjZ.js";var m={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},h={class:`min-w-0`},g={key:0,class:`mt-0.5 block text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},_={__name:`IconList`,props:{block:{type:Object,required:!0}},setup(_){return(v,y)=>(a(),r(`ul`,{class:t(_.block.data.layout===`grid`?`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`:`grid gap-4`)},[(a(!0),r(o,null,i(_.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`,[_.block.data.layout===`grid`?`h-full rounded-lg border bg-card p-4`:``,i.url?`group`:``]])},{default:s(()=>[n(`span`,m,[(a(),l(u(e(f)[i.icon]??e(p)),{class:`size-5`}))]),n(`span`,h,[n(`span`,{class:t([`block font-medium`,{"group-hover:underline":i.url}])},c(i.title),3),i.text?(a(),r(`span`,g,c(i.text),1)):d(``,!0)])]),_:2},1032,[`href`,`class`]))]))),128))],2))}};export{_ as default};
import{On as e,Zn as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./icons-DL3m7OIP.js";import{t as p}from"./link-mbI8ikd_.js";var m={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},h={class:`min-w-0`},g={key:0,class:`mt-0.5 block text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},_={__name:`IconList`,props:{block:{type:Object,required:!0}},setup(_){return(v,y)=>(a(),r(`ul`,{class:t(_.block.data.layout===`grid`?`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`:`grid gap-4`)},[(a(!0),r(o,null,i(_.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`,[_.block.data.layout===`grid`?`h-full rounded-lg border bg-card p-4`:``,i.url?`group`:``]])},{default:s(()=>[n(`span`,m,[(a(),l(u(e(f)[i.icon]??e(p)),{class:`size-5`}))]),n(`span`,h,[n(`span`,{class:t([`block font-medium`,{"group-hover:underline":i.url}])},c(i.title),3),i.text?(a(),r(`span`,g,c(i.text),1)):d(``,!0)])]),_:2},1032,[`href`,`class`]))]))),128))],2))}};export{_ as default};

View file

@ -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{t as d}from"./image-B2vtsdro.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{t as d}from"./image-DWzRulZ0.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};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,_ as r,b as i,bt as a,g as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-fPqdDpbG.js";import{t as m}from"./AppLayout-NB83tH03.js";import{t as h}from"./calendar-days-s3GhWVmT.js";import{t as g}from"./map-pin-B9eZ2Wq-.js";import{i as _,r as v}from"./format-2iB7L6ww.js";import{t as y}from"./video-PqOW0ULZ.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./EventDateBlock-CaP0fN12.js";var S={key:0,class:`grid max-w-4xl gap-8`},C={class:`mb-3 text-sm font-semibold text-muted-foreground`},w={class:`divide-y rounded-lg border bg-card`},T={class:`min-w-0 flex-1`},E={class:`text-[15px] font-semibold group-hover:underline`},D={class:`mt-0.5 text-[13px] text-muted-foreground`},O={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},k=[`src`],A={key:1,class:`max-w-4xl rounded-lg border border-dashed bg-card`},j={__name:`Index`,props:{events:{type:Object,required:!0}},setup(j){let M=j,N=o(()=>{let e=[];for(let t of M.events.data){let n=new Date(t.starts_at),r=_((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(o,_)=>(s(),d(m,{title:`Termine`},{default:l(()=>[_[0]||=r(`div`,{class:`mb-6`},[r(`h1`,{class:`text-2xl font-semibold tracking-tight`},`Termine`),r(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Veranstaltungen, Fortbildungen und Treffen.`)],-1),N.value.length?(s(),i(`div`,S,[(s(!0),i(c,null,a(N.value,o=>(s(),i(`section`,{key:o.label},[r(`h2`,C,u(o.label),1),r(`ul`,w,[(s(!0),i(c,null,a(o.events,a=>(s(),i(`li`,{key:a.id},[e(n(p),{href:`/termine/${a.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:l(()=>[e(x,{date:a.starts_at,class:`w-14`},null,8,[`date`]),r(`div`,T,[r(`h3`,E,u(a.title),1),r(`p`,D,u(n(v)(a)),1),a.location||a.online_url?(s(),i(`p`,O,[a.location?(s(),d(n(g),{key:0,class:`size-3.5`})):(s(),d(n(y),{key:1,class:`size-3.5`})),t(` `+u(a.location||`Online`),1)])):f(``,!0)]),a.thumb_url?(s(),i(`img`,{key:0,src:a.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,k)):f(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(s(),i(`div`,A,[e(b,{icon:n(h),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))]),_:1}))}};export{j as default};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-fPqdDpbG.js";import{j as m}from"./dist-CleIz2GP.js";import{t as h}from"./AppLayout-NB83tH03.js";import{t as g}from"./chevron-right-DR4LjgDm.js";import{t as _}from"./file-text-4udxc_PB.js";import{t as v}from"./plus-cKZvz4wH.js";import{t as y}from"./EmptyState-Ceq4v8mE.js";import{t as b}from"./button-SRYY3-ko.js";import{t as x}from"./NewPageDialog-DyWdsqyH.js";var S=m({name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]}),C={class:`mb-6 flex flex-wrap items-end justify-between gap-4`},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 M=d(!1);return(d,N)=>(o(),u(h,{title:`Seiten`},{default:c(()=>[r(`div`,C,[N[3]||=r(`div`,null,[r(`h1`,{class:`text-2xl font-semibold tracking-tight`},`Seiten`),r(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Informationen der Bereiche, Abteilungen und Gremien.`)],-1),m.canCreate?(o(),u(n(b),{key:0,onClick:N[0]||=e=>M.value=!0},{default:c(()=>[e(n(v)),N[2]||=t(` Neue Seite`,-1)]),_:1})):f(``,!0)]),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(p),{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(S),{key:0,class:`size-5`})):(o(),u(n(_),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(g),{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(p),{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)):f(``,!0)]),_:2},1032,[`href`])]))),128)),d.children.length>8?(o(),i(`li`,A,[e(n(p),{href:d.url,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(`Alle `+l(d.children.length)+` Seiten`,1)]),_:2},1032,[`href`])])):f(``,!0)])):f(``,!0)]))),128))])):(o(),i(`div`,j,[e(y,{icon:n(_),title:`Noch keine Seiten`,text:`Hier erscheinen Seiten, sobald sie veröffentlicht sind.`},null,8,[`icon`])])),e(x,{open:M.value,"onUpdate:open":N[1]||=e=>M.value=e},null,8,[`open`])]),_:1}))}};export{M as default};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-fPqdDpbG.js";import{t as h}from"./AppLayout-NB83tH03.js";import{t as g}from"./cake-DYVAYX9m.js";import{t as _}from"./BirthdayItem-oSdlplYX.js";import{t as v}from"./EmptyState-Ceq4v8mE.js";var y={class:`mx-auto max-w-3xl`},b={class:`mt-1 text-sm text-muted-foreground`},x={key:0,class:`mt-5 rounded-lg border bg-card px-4 py-3 text-sm`},S={key:1,class:`mt-6 grid gap-5`},C={class:`divide-y px-5`},w={key:2,class:`mt-6 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(h,{title:`Geburtstage`},{default:u(()=>[i(`div`,y,[E[3]||=i(`h1`,{class:`text-2xl font-semibold tracking-tight`},`Geburtstage`,-1),i(`p`,b,`Die nächsten 30 Tage · `+d(T.scope),1),T.registered?p(``,!0):(c(),a(`p`,x,[E[1]||=t(` Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter `,-1),e(n(m),{href:`/profil/bearbeiten`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...E[0]||=[t(`Profil bearbeiten`,-1)]]),_:1}),E[2]||=t(` ein. `,-1)])),D.value.length?(c(),a(`div`,S,[(c(!0),a(l,null,o(D.value,e=>(c(),a(`section`,{key:e.date,class:`rounded-lg border bg-card`},[i(`h2`,{class:r([`border-b px-5 py-3 text-sm font-semibold`,e.today?`text-brand-text`:``])},d(O(e)),3),i(`div`,C,[(c(!0),a(l,null,o(e.items,e=>(c(),f(_,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(v,{icon:n(g),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default};

View file

@ -1 +0,0 @@
import{D as e,E as t,On as n,_ as r,b as i,bt as a,g as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-BEmka_ei.js";import{t as m}from"./AppLayout-CZxIxdci.js";import{t as h}from"./calendar-days-Cq3ZXY-S.js";import{t as g}from"./map-pin-DhZUjkWx.js";import{T as _,w as v}from"./PersonAvatar-BA7DC_UD.js";import{t as y}from"./video-BV0GQFAO.js";import{t as b}from"./EventDateBlock-CbYS92pI.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";var S={key:0,class:`grid max-w-4xl gap-8`},C={class:`mb-3 text-sm font-semibold text-muted-foreground`},w={class:`divide-y rounded-lg border bg-card`},T={class:`min-w-0 flex-1`},E={class:`text-[15px] font-semibold group-hover:underline`},D={class:`mt-0.5 text-[13px] text-muted-foreground`},O={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},k=[`src`],A={key:1,class:`max-w-4xl rounded-lg border border-dashed bg-card`},j={__name:`Index`,props:{events:{type:Object,required:!0}},setup(j){let M=j,N=o(()=>{let e=[];for(let t of M.events.data){let n=new Date(t.starts_at),r=_((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(o,_)=>(s(),d(m,{title:`Termine`},{default:l(()=>[_[0]||=r(`div`,{class:`mb-6`},[r(`h1`,{class:`text-2xl font-semibold tracking-tight`},`Termine`),r(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Veranstaltungen, Fortbildungen und Treffen.`)],-1),N.value.length?(s(),i(`div`,S,[(s(!0),i(c,null,a(N.value,o=>(s(),i(`section`,{key:o.label},[r(`h2`,C,u(o.label),1),r(`ul`,w,[(s(!0),i(c,null,a(o.events,a=>(s(),i(`li`,{key:a.id},[e(n(p),{href:`/termine/${a.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:l(()=>[e(b,{date:a.starts_at,class:`w-14`},null,8,[`date`]),r(`div`,T,[r(`h3`,E,u(a.title),1),r(`p`,D,u(n(v)(a)),1),a.location||a.online_url?(s(),i(`p`,O,[a.location?(s(),d(n(g),{key:0,class:`size-3.5`})):(s(),d(n(y),{key:1,class:`size-3.5`})),t(` `+u(a.location||`Online`),1)])):f(``,!0)]),a.thumb_url?(s(),i(`img`,{key:0,src:a.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,k)):f(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(s(),i(`div`,A,[e(x,{icon:n(h),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))]),_:1}))}};export{j as default};

View file

@ -0,0 +1 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as p,n as m}from"./app-fPqdDpbG.js";import{t as h}from"./AppLayout-NB83tH03.js";import{t as g}from"./chevron-left-CfNljcKt.js";import{t as _}from"./chevron-right-DR4LjgDm.js";import{j as v}from"./format-2iB7L6ww.js";import{t as y}from"./pen-line-AST4G_M5.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./button-SRYY3-ko.js";import{t as S}from"./NewsCard-C4vJU52d.js";var C={class:`mb-6 flex flex-wrap items-end justify-between gap-4`},w={key:0,class:`mb-6 flex flex-wrap gap-2`,"aria-label":`Kategorien`},T={key:1,class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},E={key:2,class:`rounded-lg border border-dashed bg-card`},D={key:3,class:`mt-8 flex items-center justify-between`,"aria-label":`Seiten`},O={class:`text-sm text-muted-foreground`},k={class:`flex gap-2`},A={__name:`Index`,props:{posts:{type:Object,required:!0},categories:{type:Array,required:!0},activeCategory:{type:String,default:null},canWrite:{type:Boolean,default:!1}},setup(A){return(j,M)=>(s(),d(h,{title:`Neuigkeiten`},{default:l(()=>[i(`div`,C,[M[3]||=i(`div`,null,[i(`h1`,{class:`text-2xl font-semibold tracking-tight`},`Neuigkeiten`),i(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Aktuelles aus dem Unternehmen und den Bereichen.`)],-1),A.canWrite?(s(),d(n(x),{key:0,"as-child":``},{default:l(()=>[e(n(m),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(y)),M[2]||=t(` Beitrag schreiben`,-1)]),_:1})]),_:1})):f(``,!0)]),A.categories.length?(s(),a(`nav`,w,[e(n(m),{href:`/neuigkeiten`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,A.activeCategory?`bg-card hover:bg-accent`:`border-brand bg-brand text-brand-foreground`]),"preserve-scroll":``},{default:l(()=>[...M[4]||=[t(` Alle `,-1)]]),_:1},8,[`class`]),(s(!0),a(c,null,o(A.categories,e=>(s(),d(n(m),{key:e.slug,href:`/neuigkeiten?kategorie=${e.slug}`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,A.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))])):f(``,!0),A.posts.data.length?(s(),a(`div`,T,[(s(!0),a(c,null,o(A.posts.data,e=>(s(),d(S,{key:e.id,post:e},null,8,[`post`]))),128))])):(s(),a(`div`,E,[e(b,{icon:n(v),title:`Keine Beiträge`,text:`In dieser Kategorie ist noch nichts veröffentlicht.`},null,8,[`icon`])])),A.posts.meta.last_page>1?(s(),a(`nav`,D,[i(`p`,O,`Seite `+u(A.posts.meta.current_page)+` von `+u(A.posts.meta.last_page),1),i(`div`,k,[e(n(x),{variant:`outline`,size:`sm`,disabled:!A.posts.links.prev,onClick:M[0]||=e=>n(p).get(A.posts.links.prev)},{default:l(()=>[e(n(g)),M[5]||=t(` Neuere`,-1)]),_:1},8,[`disabled`]),e(n(x),{variant:`outline`,size:`sm`,disabled:!A.posts.links.next,onClick:M[1]||=e=>n(p).get(A.posts.links.next)},{default:l(()=>[M[6]||=t(`Ältere `,-1),e(n(_))]),_:1},8,[`disabled`])])])):f(``,!0)]),_:1}))}};export{A as default};

Some files were not shown because too many files have changed in this diff Show more