Umfragen-Plugin (0.32.0) #53

Merged
friloo merged 1 commit from feature/umfragen into main 2026-09-27 12:54:32 +00:00
153 changed files with 2075 additions and 329 deletions

View file

@ -4,6 +4,13 @@ Neueste Version oben. Jeder Abschnitt beginnt mit `## MAJOR.MINOR.PATCH` und
enthält kurze Stichpunkte für Anwenderinnen und Anwender – keine Commit-Texte.
Der Self-Updater zeigt diese Abschnitte bei neuen Versionen an.
## 0.32.0
- Neues Plugin „Umfragen“ (unter Plugins einschalten): Fragen mit einer oder mehreren Antworten, Skala von 1 bis 5 bzw. 10 und Freitext; Zielgruppen, Beginn und Ende, auf Wunsch anonym
- Ergebnisse je Umfrage sichtbar nach der eigenen Abstimmung, erst nach dem Ende oder nur für die Redaktion. Freitexte sieht nur die Redaktion; Export als CSV
- Umfragen lassen sich als Baustein in Seiten und Beiträge einbinden; Startseiten-Kachel „Ihre Meinung ist gefragt“ und auf Wunsch eine Benachrichtigung zum Start
- Neues Recht „Umfragen anlegen und auswerten“ – ohne Zugang zum Backend
## 0.31.0
- Termine mit Anmeldung: Plätze begrenzen, Warteliste mit automatischem Nachrücken (inkl. Benachrichtigung), Anmeldeschluss und optionale Anmerkung (z. B. „vegetarisch“)

View file

@ -9,5 +9,5 @@ namespace App;
*/
final class Version
{
public const VERSION = '0.31.0';
public const VERSION = '0.32.0';
}

View file

@ -57,12 +57,15 @@ Tokens deaktivierter Konten gelten sofort nicht mehr.
| GET | `/events` | anstehende Termine, je mit eigenem Anmeldestand (`registration`) |
| GET | `/events/{id}` | Termin mit Beschreibung (HTML), Kalenderdatei (`ics_url`) und `registration` |
| POST/DELETE | `/events/{id}/registration` | an- bzw. abmelden (`{ "note": "…" }` optional) → `{ message, data: registration }` |
| GET | `/polls` | Umfragen: `{ data: { open: […], closed: […] } }` |
| GET | `/polls/{id}` | Umfrage mit Fragen, eigenem Stand (`voted`, `can_vote`) und – falls freigegeben – `results` |
| POST | `/polls/{id}/vote` | abstimmen: `{ "answers": { "<frage-id>": "<antwort-id>" \| ["…"] \| 3 \| "Text" } }` |
`registration` ist `null` ohne Anmeldung, sonst
`{ enabled, open, capacity, confirmed, free, waitlist, waiting, status, position, note, deadline }` –
`status` ist `null`, `"confirmed"` oder `"waitlist"`, `position` der Platz auf der Warteliste.
Neuigkeiten und Termine kommen aus den gleichnamigen Plugins – ist ein Plugin deaktiviert,
Neuigkeiten, Termine und Umfragen kommen aus den gleichnamigen Plugins – ist ein Plugin deaktiviert,
fehlen seine Endpunkte (`404`).
Fehler: `401` ohne gültiges Token, `403` bei fehlendem Recht oder ausgeschlossenem Modul,

View file

@ -0,0 +1,48 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('polls', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->text('description')->nullable();
$table->json('questions');
$table->boolean('anonymous')->default(false);
// after_vote | after_end | editors
$table->string('results_visibility', 20)->default('after_vote');
$table->timestamp('published_at')->nullable();
$table->timestamp('closes_at')->nullable();
$table->timestamp('announced_at')->nullable();
$table->boolean('announce')->default(false);
$table->foreignId('author_id')->nullable()->constrained('users')->nullOnDelete();
$table->timestamps();
$table->index(['published_at', 'closes_at']);
});
// Anonyme Umfragen: keine Person, nur ein nicht umkehrbarer Schlüssel gegen doppelte Stimmen
// und nur das Datum (keine Uhrzeit, die sich mit Protokollen abgleichen ließe).
Schema::create('poll_responses', function (Blueprint $table) {
$table->id();
$table->foreignId('poll_id')->constrained('polls')->cascadeOnDelete();
$table->foreignId('user_id')->nullable()->constrained()->nullOnDelete();
$table->char('voter', 64);
$table->json('answers');
$table->date('submitted_on');
$table->unique(['poll_id', 'voter']);
});
}
public function down(): void
{
Schema::dropIfExists('poll_responses');
Schema::dropIfExists('polls');
}
};

View file

@ -0,0 +1,14 @@
{
"slug": "umfragen",
"name": "Umfragen",
"version": "1.0.0",
"description": "Umfragen und Abstimmungen mit Einfach- und Mehrfachauswahl, Skala und Freitext – für Zielgruppen, auf Wunsch anonym. Ergebnisse je Umfrage nach der Abstimmung, nach dem Ende oder nur für die Redaktion sichtbar.",
"author": "Inhaus",
"namespace": "Inhaus\\Plugins\\Umfragen\\",
"class": "Inhaus\\Plugins\\Umfragen\\UmfragenPlugin",
"enabled_by_default": false,
"requires": {
"core": ">=0.31.0",
"php": ">=8.3"
}
}

View file

@ -0,0 +1,19 @@
<script setup>
import { inject } from 'vue';
import { Vote } from '@lucide/vue';
import PollForm from '../components/PollForm.vue';
defineProps({ block: { type: Object, required: true } });
const editing = inject('pagebuilder:editing', false);
</script>
<template>
<section v-if="block.props" class="rounded-lg border bg-card p-5 @3xl:p-8">
<p class="mb-1 flex items-center gap-1.5 text-xs font-semibold tracking-wider text-brand-text uppercase"><Vote class="size-3.5" /> Umfrage</p>
<h3 class="text-xl font-semibold tracking-tight">{{ block.props.title }}</h3>
<p v-if="block.props.description" class="mt-2 text-sm leading-relaxed whitespace-pre-line text-muted-foreground">{{ block.props.description }}</p>
<PollForm :key="block.props.id" :poll="block.props" :disabled="editing" compact class="mt-6" />
</section>
<p v-else-if="editing" class="rounded-lg border border-dashed p-4 text-sm text-muted-foreground">Bitte rechts eine Umfrage auswählen.</p>
</template>

View file

@ -0,0 +1,116 @@
<script setup>
import { computed } from 'vue';
import { useForm } from '@inertiajs/vue3';
import { CircleCheck, LoaderCircle, Lock } from '@lucide/vue';
import { Button } from '@/components/ui/button';
import { Textarea } from '@/components/ui/textarea';
import PollResults from './PollResults.vue';
/**
* Umfrage beantworten – oder, nach der Abstimmung, die Ergebnisse bzw. einen Hinweis.
*/
const props = defineProps({
poll: { type: Object, required: true },
compact: { type: Boolean, default: false },
disabled: { type: Boolean, default: false },
});
const form = useForm({
answers: Object.fromEntries(props.poll.questions.map((q) => [q.id, q.type === 'multiple' ? [] : null])),
});
function toggle(question, optionId) {
const list = form.answers[question.id];
const index = list.indexOf(optionId);
if (index >= 0) list.splice(index, 1);
else if (!question.max || list.length < question.max) list.push(optionId);
}
const complete = computed(() => props.poll.questions.every((q) => {
const value = form.answers[q.id];
return !q.required || (Array.isArray(value) ? value.length : value !== null && value !== '');
}));
function submit() {
form.post(`/umfragen/${props.poll.id}/abstimmen`, { preserveScroll: true });
}
const firstError = computed(() => form.errors.answers ?? null);
</script>
<template>
<div>
<form v-if="poll.can_vote" class="grid gap-6" @submit.prevent="submit">
<fieldset v-for="(question, index) in poll.questions" :key="question.id" class="grid gap-2.5" :disabled="disabled">
<legend class="mb-2.5 text-sm font-semibold">
<span v-if="poll.questions.length > 1" class="text-muted-foreground">{{ index + 1 }}. </span>{{ question.label }}
<span v-if="!question.required" class="font-normal text-muted-foreground"> (optional)</span>
<span v-if="question.type === 'multiple'" class="block text-xs font-normal text-muted-foreground">{{ question.max ? `Bis zu ${question.max} Antworten` : 'Mehrere Antworten möglich' }}</span>
</legend>
<template v-if="question.type === 'single' || question.type === 'multiple'">
<label
v-for="option in question.options"
:key="option.id"
class="flex cursor-pointer items-center gap-3 rounded-md border px-3.5 py-2.5 text-sm transition-colors hover:bg-accent/50 has-[:checked]:border-brand has-[:checked]:bg-brand-soft"
>
<input
v-if="question.type === 'single'"
v-model="form.answers[question.id]"
type="radio"
:name="`q-${poll.id}-${question.id}`"
:value="option.id"
class="size-4 accent-[var(--color-brand)]"
/>
<input
v-else
type="checkbox"
:checked="form.answers[question.id].includes(option.id)"
class="size-4 accent-[var(--color-brand)]"
@change="toggle(question, option.id)"
/>
{{ option.label }}
</label>
</template>
<div v-else-if="question.type === 'scale'" class="grid gap-1.5">
<div class="flex flex-wrap gap-1.5">
<label
v-for="n in question.scale"
:key="n"
class="grid size-10 cursor-pointer place-items-center rounded-md border text-sm font-medium tabular-nums transition-colors hover:bg-accent/50 has-[:checked]:border-brand has-[:checked]:bg-brand has-[:checked]:text-brand-foreground"
>
<input v-model="form.answers[question.id]" type="radio" :name="`q-${poll.id}-${question.id}`" :value="n" class="sr-only" />
{{ n }}
</label>
</div>
<div v-if="question.min_label || question.max_label" class="flex justify-between gap-3 text-xs text-muted-foreground" :style="{ maxWidth: `${question.scale * 2.5 + (question.scale - 1) * 0.375}rem` }">
<span>1 = {{ question.min_label }}</span><span>{{ question.scale }} = {{ question.max_label }}</span>
</div>
</div>
<Textarea v-else v-model="form.answers[question.id]" rows="3" maxlength="2000" />
<p v-if="form.errors[`answers.${question.id}`]" class="text-[13px] text-destructive">{{ form.errors[`answers.${question.id}`] }}</p>
</fieldset>
<p v-if="firstError" class="text-[13px] text-destructive">{{ firstError }}</p>
<div class="flex flex-wrap items-center gap-3">
<Button type="submit" :disabled="form.processing || !complete || disabled">
<LoaderCircle v-if="form.processing" class="animate-spin" />
Abstimmen
</Button>
<span v-if="poll.anonymous" class="inline-flex items-center gap-1.5 text-xs text-muted-foreground"><Lock class="size-3.5" /> Anonym – Ihre Antworten werden ohne Namen gespeichert.</span>
</div>
</form>
<template v-else>
<p v-if="poll.voted" class="mb-5 flex items-center gap-2 text-sm font-medium text-brand-text"><CircleCheck class="size-4" /> Sie haben teilgenommen – danke!</p>
<p v-else-if="!poll.open" class="mb-5 text-sm text-muted-foreground">Diese Umfrage ist beendet.</p>
<PollResults v-if="poll.results" :results="poll.results" :compact="compact" />
<p v-else-if="poll.results_note" class="text-sm text-muted-foreground">{{ poll.results_note }}</p>
</template>
</div>
</template>

View file

@ -0,0 +1,50 @@
<script setup>
/**
* Ergebnisse einer Umfrage: Balken je Antwort, Skalen mit Durchschnitt, Freitexte (nur Redaktion).
*/
defineProps({
results: { type: Object, required: true },
compact: { type: Boolean, default: false },
});
</script>
<template>
<div class="grid gap-6">
<p class="text-sm text-muted-foreground">{{ results.total }} {{ results.total === 1 ? 'Teilnahme' : 'Teilnahmen' }}</p>
<section v-for="(question, index) in results.questions" :key="question.id" class="grid gap-3">
<h3 class="text-sm font-semibold"><span v-if="results.questions.length > 1" class="text-muted-foreground">{{ index + 1 }}. </span>{{ question.label }}</h3>
<ul v-if="question.options" class="grid gap-2.5">
<li v-for="option in question.options" :key="option.id" class="grid gap-1">
<div class="flex items-baseline justify-between gap-3 text-sm">
<span class="min-w-0">{{ option.label }}</span>
<span class="shrink-0 text-muted-foreground tabular-nums">{{ option.percent }} %<span v-if="!compact" class="text-xs"> · {{ option.votes }}</span></span>
</div>
<div class="h-2 overflow-hidden rounded-full bg-muted">
<div class="h-full rounded-full bg-brand transition-[width] duration-500" :style="{ width: `${option.percent}%` }" />
</div>
</li>
</ul>
<div v-else-if="question.type === 'scale'" class="grid gap-2">
<p class="text-sm">Durchschnitt: <span class="font-semibold tabular-nums">{{ question.average === null ? '–' : question.average.toLocaleString('de-DE') }}</span> <span class="text-muted-foreground">von {{ question.scale }}</span></p>
<div class="flex h-20 items-end gap-1" role="img" :aria-label="`Verteilung der Antworten von 1 bis ${question.scale}`">
<div v-for="bar in question.distribution" :key="bar.value" class="flex flex-1 flex-col items-center gap-1">
<div class="w-full rounded-t-sm bg-brand/75" :style="{ height: `${question.answered ? Math.max(3, (bar.votes / Math.max(...question.distribution.map((d) => d.votes), 1)) * 56) : 3}px` }" :title="`${bar.value}: ${bar.votes}`" />
<span class="text-[11px] text-muted-foreground tabular-nums">{{ bar.value }}</span>
</div>
</div>
<div v-if="question.min_label || question.max_label" class="flex justify-between text-[11px] text-muted-foreground">
<span>{{ question.min_label }}</span><span>{{ question.max_label }}</span>
</div>
</div>
<template v-else-if="question.type === 'text'">
<p class="text-sm text-muted-foreground">{{ question.answered }} {{ question.answered === 1 ? 'Antwort' : 'Antworten' }}</p>
<ul v-if="question.texts?.length" class="grid max-h-80 gap-2 overflow-y-auto">
<li v-for="(text, i) in question.texts" :key="i" class="rounded-md bg-muted/60 px-3 py-2 text-sm whitespace-pre-line">{{ text }}</li>
</ul>
</template>
</section>
</div>
</template>

View file

@ -0,0 +1,37 @@
<script setup>
import { Link } from '@inertiajs/vue3';
import { Plus, Users } from '@lucide/vue';
import { Button } from '@/components/ui/button';
import Panel from '@/components/Panel.vue';
import { formatShortDate } from '@/lib/format';
defineProps({
polls: { type: Array, required: true },
});
const statuses = {
open: ['Läuft', 'bg-brand-soft text-brand-text'],
draft: ['Entwurf', 'bg-muted text-muted-foreground'],
scheduled: ['Geplant', 'bg-accent text-accent-foreground'],
closed: ['Beendet', 'bg-muted text-muted-foreground'],
};
</script>
<template>
<Panel title="Umfragen">
<template #actions>
<Button size="sm" variant="outline" as-child><Link href="/redaktion/umfragen/neu"><Plus /> Neue Umfrage</Link></Button>
</template>
<ul v-if="polls.length" class="-mx-5 divide-y border-t">
<li v-for="poll in polls" :key="poll.id" class="flex items-center gap-3 px-5 py-2.5">
<div class="min-w-0 flex-1">
<Link :href="poll.edit_url" class="block truncate text-sm font-medium hover:underline">{{ poll.title }}</Link>
<p class="truncate text-xs text-muted-foreground">{{ poll.questions_count }} {{ poll.questions_count === 1 ? 'Frage' : 'Fragen' }}<template v-if="poll.closes_at"> · bis {{ formatShortDate(poll.closes_at) }}</template></p>
</div>
<Link :href="poll.url" class="inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground hover:text-foreground" :title="`${poll.responses} Teilnahmen – Ergebnisse ansehen`"><Users class="size-3.5" /> {{ poll.responses }}</Link>
<span class="shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium" :class="statuses[poll.status][1]">{{ statuses[poll.status][0] }}</span>
</li>
</ul>
<p v-else class="text-sm text-muted-foreground">Noch keine Umfragen.</p>
</Panel>
</template>

View file

@ -0,0 +1,212 @@
<script setup>
import { computed, watch } from 'vue';
import { Link, router, useForm, usePage } from '@inertiajs/vue3';
import { ArrowDown, ArrowUp, CircleDot, ListChecks, LoaderCircle, Plus, Save, SlidersHorizontal, Trash2, TriangleAlert, Type, Users, X } from '@lucide/vue';
import { toast } from 'vue-sonner';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Switch } from '@/components/ui/switch';
import { Textarea } from '@/components/ui/textarea';
import AudienceEditor from '@/components/AudienceEditor.vue';
import FormField from '@/components/FormField.vue';
import PageHeader from '@/components/PageHeader.vue';
import Panel from '@/components/Panel.vue';
import AppLayout from '@/layouts/AppLayout.vue';
/**
* Umfrage anlegen oder bearbeiten (Redaktion im Portal).
*/
const props = defineProps({
poll: { type: Object, default: null },
visibilityOptions: { type: Object, required: true },
audienceOptions: { type: Object, required: true },
});
const page = usePage();
watch(() => page.props.flash.status, (status) => status && toast.success(status), { immediate: true });
const uid = () => Math.random().toString(36).slice(2, 10);
const types = {
single: { label: 'Eine Antwort', icon: CircleDot },
multiple: { label: 'Mehrere Antworten', icon: ListChecks },
scale: { label: 'Skala', icon: SlidersHorizontal },
text: { label: 'Freitext', icon: Type },
};
const p = props.poll;
const form = useForm({
title: p?.title ?? '',
description: p?.description ?? '',
questions: p?.questions?.map((q) => ({ ...q, options: q.options?.map((o) => ({ ...o })) })) ?? [
{ id: uid(), type: 'single', label: '', required: true, options: [{ id: uid(), label: '' }, { id: uid(), label: '' }] },
],
anonymous: p?.anonymous ?? false,
results_visibility: p?.results_visibility ?? 'after_vote',
published: p?.published ?? false,
published_at: p?.published_at ?? '',
closes_at: p?.closes_at ?? '',
announce: p?.announce ?? false,
audience: p?.audience ?? {},
});
function addQuestion(type) {
const question = { id: uid(), type, label: '', required: true };
if (type === 'single' || type === 'multiple') question.options = [{ id: uid(), label: '' }, { id: uid(), label: '' }];
if (type === 'multiple') question.max = null;
if (type === 'scale') Object.assign(question, { scale: 5, min_label: 'gar nicht', max_label: 'sehr' });
if (type === 'text') question.required = false;
form.questions.push(question);
}
function move(index, delta) {
const list = form.questions;
const [item] = list.splice(index, 1);
list.splice(index + delta, 0, item);
}
const restricted = computed(() => Object.values(form.audience ?? {}).some((values) => values?.length));
const hasVotes = computed(() => (p?.responses ?? 0) > 0);
function submit() {
const options = { preserveScroll: true };
p ? form.put(`/redaktion/umfragen/${p.id}`, options) : form.post('/redaktion/umfragen', options);
}
function remove() {
if (window.confirm(`Umfrage „${p.title}“ samt ${p.responses} Teilnahmen löschen?`)) {
router.delete(`/redaktion/umfragen/${p.id}`);
}
}
</script>
<template>
<AppLayout :title="p ? `Bearbeiten: ${p.title}` : 'Neue Umfrage'">
<PageHeader :title="p ? 'Umfrage bearbeiten' : 'Neue Umfrage'" :breadcrumbs="[{ label: 'Umfragen', href: '/umfragen' }]">
<template #actions>
<Button v-if="p" variant="ghost" class="text-destructive hover:text-destructive" @click="remove"><Trash2 /> Löschen</Button>
<Button v-if="p" variant="outline" as-child><Link :href="p.url">{{ p.published ? 'Ansehen & Ergebnisse' : 'Vorschau' }}</Link></Button>
<Button :disabled="form.processing" @click="submit"><LoaderCircle v-if="form.processing" class="animate-spin" /><Save v-else /> Speichern</Button>
</template>
</PageHeader>
<form class="grid grid-cols-1 items-start gap-6 lg:grid-cols-[minmax(0,1fr)_20rem]" @submit.prevent="submit">
<div class="grid min-w-0 gap-6">
<Panel>
<div class="grid gap-5">
<FormField id="poll-title" label="Titel bzw. Frage" :error="form.errors.title">
<Input id="poll-title" v-model="form.title" maxlength="200" placeholder="z. B. Wie gefällt Ihnen das neue Kantinenangebot?" class="text-base" />
</FormField>
<FormField id="poll-description" label="Einleitung (optional)" :error="form.errors.description">
<Textarea id="poll-description" v-model="form.description" rows="3" maxlength="5000" />
</FormField>
</div>
</Panel>
<p v-if="hasVotes" class="flex items-start gap-2 rounded-md border border-destructive/30 bg-destructive/5 p-3 text-[13px]">
<TriangleAlert class="mt-0.5 size-4 shrink-0 text-destructive" />
Es gibt bereits {{ p.responses }} {{ p.responses === 1 ? 'Teilnahme' : 'Teilnahmen' }}. Tippfehler lassen sich korrigieren – neue oder entfernte Antworten verfälschen aber die Ergebnisse.
</p>
<p v-if="form.errors.questions" class="text-[13px] text-destructive">{{ form.errors.questions }}</p>
<Panel v-for="(question, index) in form.questions" :key="question.id">
<div class="grid gap-4">
<div class="flex items-center gap-2">
<span class="inline-flex items-center gap-1.5 rounded bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground">
<component :is="types[question.type].icon" class="size-3.5" /> Frage {{ index + 1 }} · {{ types[question.type].label }}
</span>
<span class="flex-1" />
<Button type="button" variant="ghost" size="icon" class="size-8" :disabled="index === 0" aria-label="Nach oben" @click="move(index, -1)"><ArrowUp /></Button>
<Button type="button" variant="ghost" size="icon" class="size-8" :disabled="index === form.questions.length - 1" aria-label="Nach unten" @click="move(index, 1)"><ArrowDown /></Button>
<Button type="button" variant="ghost" size="icon" class="size-8 text-muted-foreground hover:text-destructive" :disabled="form.questions.length === 1" aria-label="Frage entfernen" @click="form.questions.splice(index, 1)"><Trash2 /></Button>
</div>
<Input v-model="question.label" maxlength="300" :placeholder="form.questions.length === 1 ? 'Frage (z. B. wie der Titel)' : 'Frage'" :aria-label="`Frage ${index + 1}`" />
<div v-if="question.options" class="grid gap-2">
<div v-for="(option, oi) in question.options" :key="option.id" class="flex items-center gap-2">
<span class="w-5 text-right text-xs text-muted-foreground tabular-nums">{{ oi + 1 }}.</span>
<Input v-model="option.label" maxlength="200" :placeholder="`Antwort ${oi + 1}`" class="h-9" :aria-label="`Antwort ${oi + 1}`" />
<Button type="button" variant="ghost" size="icon" class="size-8 shrink-0 text-muted-foreground" :disabled="question.options.length <= 2" aria-label="Antwort entfernen" @click="question.options.splice(oi, 1)"><X /></Button>
</div>
<Button v-if="question.options.length < 20" type="button" variant="ghost" size="sm" class="justify-self-start" @click="question.options.push({ id: uid(), label: '' })"><Plus /> Antwort hinzufügen</Button>
</div>
<div v-if="question.type === 'scale'" class="grid gap-3 sm:grid-cols-3">
<FormField :id="`scale-${question.id}`" label="Stufen">
<select :id="`scale-${question.id}`" v-model.number="question.scale" class="h-9 rounded-md border bg-background px-2 text-sm">
<option :value="5">1 bis 5</option>
<option :value="10">1 bis 10</option>
</select>
</FormField>
<FormField :id="`min-${question.id}`" label="1 bedeutet"><Input :id="`min-${question.id}`" v-model="question.min_label" maxlength="60" class="h-9" /></FormField>
<FormField :id="`max-${question.id}`" :label="`${question.scale} bedeutet`"><Input :id="`max-${question.id}`" v-model="question.max_label" maxlength="60" class="h-9" /></FormField>
</div>
<div class="flex flex-wrap items-center gap-x-6 gap-y-3 border-t pt-3 text-sm">
<label class="flex items-center gap-2"><Switch v-model="question.required" /> Pflichtfrage</label>
<label v-if="question.type === 'multiple'" class="flex items-center gap-2">
Höchstens
<Input v-model.number="question.max" type="number" min="1" :max="question.options.length - 1" placeholder="alle" class="h-8 w-20" />
Antworten
</label>
</div>
</div>
</Panel>
<div class="flex flex-wrap gap-2">
<span class="mr-1 self-center text-sm text-muted-foreground">Frage hinzufügen:</span>
<Button v-for="(type, key) in types" :key="key" type="button" variant="outline" size="sm" :disabled="form.questions.length >= 30" @click="addQuestion(key)">
<component :is="type.icon" /> {{ type.label }}
</Button>
</div>
</div>
<div class="grid gap-6">
<Panel title="Veröffentlichung">
<div class="grid gap-4">
<label class="flex items-center justify-between gap-3 text-sm">
<span><span class="font-medium">Veröffentlicht</span><span class="block text-xs text-muted-foreground">Sonst nur für die Redaktion sichtbar.</span></span>
<Switch v-model="form.published" />
</label>
<FormField v-if="form.published" id="poll-start" label="Beginn (optional)" hint="Leer = sofort." :error="form.errors.published_at">
<Input id="poll-start" v-model="form.published_at" type="datetime-local" />
</FormField>
<FormField id="poll-end" label="Ende (optional)" hint="Leer = läuft, bis Sie sie beenden." :error="form.errors.closes_at">
<Input id="poll-end" v-model="form.closes_at" type="datetime-local" />
</FormField>
<label class="flex items-center justify-between gap-3 text-sm">
<span><span class="font-medium">Benachrichtigen</span><span class="block text-xs text-muted-foreground">{{ p?.announced ? 'Bereits angekündigt.' : 'Die Zielgruppe bekommt zum Start einen Hinweis.' }}</span></span>
<Switch v-model="form.announce" :disabled="p?.announced" />
</label>
</div>
</Panel>
<Panel title="Ergebnisse & Datenschutz">
<div class="grid gap-4">
<FormField id="poll-visibility" label="Ergebnisse sichtbar" :error="form.errors.results_visibility">
<select id="poll-visibility" v-model="form.results_visibility" class="h-9 w-full rounded-md border bg-background px-2 text-sm">
<option v-for="(label, key) in visibilityOptions" :key="key" :value="key">{{ label }}</option>
</select>
</FormField>
<label class="flex items-center justify-between gap-3 text-sm">
<span><span class="font-medium">Anonym</span><span class="block text-xs text-muted-foreground">Ohne Namen gespeichert – auch die Redaktion sieht nicht, wer wie abgestimmt hat.</span></span>
<Switch v-model="form.anonymous" :disabled="hasVotes" />
</label>
<p v-if="form.errors.anonymous" class="text-[13px] text-destructive">{{ form.errors.anonymous }}</p>
<p class="text-xs text-muted-foreground">Freitext-Antworten sieht nur die Redaktion.</p>
</div>
</Panel>
<Panel title="Wer darf teilnehmen?">
<p class="-mt-1 mb-3 flex items-start gap-2 text-[13px] text-muted-foreground">
<Users class="mt-0.5 size-4 shrink-0" />
{{ restricted ? 'Nur Personen, die mindestens eine Angabe erfüllen.' : 'Alle – oder unten eingrenzen.' }}
</p>
<AudienceEditor v-model="form.audience" :options="audienceOptions" exclude-hint="Sehen die Umfrage nie – auch wenn oben etwas passt." />
</Panel>
</div>
</form>
</AppLayout>
</template>

View file

@ -0,0 +1,66 @@
<script setup>
import { watch } from 'vue';
import { Link, usePage } from '@inertiajs/vue3';
import { CircleCheck, Plus, Vote } from '@lucide/vue';
import { toast } from 'vue-sonner';
import { Button } from '@/components/ui/button';
import EmptyState from '@/components/EmptyState.vue';
import PageHeader from '@/components/PageHeader.vue';
import Panel from '@/components/Panel.vue';
import AppLayout from '@/layouts/AppLayout.vue';
import { formatShortDate } from '@/lib/format';
defineProps({
open: { type: Array, required: true },
closed: { type: Array, required: true },
canManage: { type: Boolean, default: false },
});
const page = usePage();
watch(() => page.props.flash.status, (status) => status && toast.success(status), { immediate: true });
</script>
<template>
<AppLayout title="Umfragen">
<PageHeader title="Umfragen" description="Ihre Meinung ist gefragt – Abstimmungen und Umfragen im Haus.">
<template v-if="canManage" #actions>
<Button as-child><Link href="/redaktion/umfragen/neu"><Plus /> Neue Umfrage</Link></Button>
</template>
</PageHeader>
<div class="grid gap-6 lg:grid-cols-3">
<Panel title="Laufende Umfragen" class="lg:col-span-2">
<ul v-if="open.length" class="-mx-5 -mb-5 divide-y border-t">
<li v-for="poll in open" :key="poll.id">
<Link :href="poll.url" class="flex items-center gap-4 px-5 py-4 hover:bg-accent/40">
<span class="grid size-10 shrink-0 place-items-center rounded-md" :class="poll.voted ? 'bg-muted text-muted-foreground' : 'bg-brand-soft text-brand-text'">
<CircleCheck v-if="poll.voted" class="size-5" /><Vote v-else class="size-5" />
</span>
<span class="min-w-0 flex-1">
<span class="block font-medium">{{ poll.title }}</span>
<span class="block text-xs text-muted-foreground">
{{ poll.questions_count }} {{ poll.questions_count === 1 ? 'Frage' : 'Fragen' }}<template v-if="poll.closes_at"> · bis {{ formatShortDate(poll.closes_at) }}</template>
</span>
</span>
<span v-if="poll.voted" class="shrink-0 text-xs text-muted-foreground">Teilgenommen</span>
<span v-else class="shrink-0 rounded-md bg-brand px-2.5 py-1 text-xs font-medium text-brand-foreground">Mitmachen</span>
</Link>
</li>
</ul>
<EmptyState v-else :icon="Vote" title="Gerade läuft keine Umfrage" class="py-8" />
</Panel>
<Panel title="Beendet" class="content-start">
<ul v-if="closed.length" class="-mx-5 -mb-5 divide-y border-t">
<li v-for="poll in closed" :key="poll.id">
<Link :href="poll.url" class="block px-5 py-3 hover:bg-accent/40">
<span class="block text-sm font-medium">{{ poll.title }}</span>
<span class="block text-xs text-muted-foreground">beendet am {{ formatShortDate(poll.closes_at) }}</span>
</Link>
</li>
</ul>
<p v-else class="text-sm text-muted-foreground">Noch keine beendeten Umfragen.</p>
</Panel>
</div>
</AppLayout>
</template>

View file

@ -0,0 +1,43 @@
<script setup>
import { watch } from 'vue';
import { Link, usePage } from '@inertiajs/vue3';
import { Download, PencilLine } from '@lucide/vue';
import { toast } from 'vue-sonner';
import { Button } from '@/components/ui/button';
import PageHeader from '@/components/PageHeader.vue';
import Panel from '@/components/Panel.vue';
import AppLayout from '@/layouts/AppLayout.vue';
import { formatDate, formatTime } from '@/lib/format';
import PollForm from '../components/PollForm.vue';
defineProps({
poll: { type: Object, required: true },
});
const page = usePage();
watch(() => page.props.flash.status, (status) => status && toast.success(status), { immediate: true });
</script>
<template>
<AppLayout :title="poll.title">
<div class="mx-auto max-w-3xl">
<PageHeader :title="poll.title" :breadcrumbs="[{ label: 'Umfragen', href: '/umfragen' }]">
<template #description>
<template v-if="poll.status === 'draft'">Entwurf – nur für die Redaktion sichtbar.</template>
<template v-else-if="poll.open && poll.closes_at">Läuft bis {{ formatDate(poll.closes_at) }}, {{ formatTime(poll.closes_at) }} Uhr</template>
<template v-else-if="poll.open">Läuft</template>
<template v-else-if="poll.closes_at">Beendet am {{ formatDate(poll.closes_at) }}</template>
</template>
<template v-if="poll.edit_url" #actions>
<Button variant="outline" size="sm" as-child><a :href="poll.export_url"><Download /> Ergebnisse (CSV)</a></Button>
<Button variant="outline" size="sm" as-child><Link :href="poll.edit_url"><PencilLine /> Bearbeiten</Link></Button>
</template>
</PageHeader>
<Panel>
<p v-if="poll.description" class="mb-6 text-[15px] leading-relaxed whitespace-pre-line">{{ poll.description }}</p>
<PollForm :poll="poll" />
</Panel>
</div>
</AppLayout>
</template>

View file

@ -0,0 +1,26 @@
<script setup>
import { Link } from '@inertiajs/vue3';
import { Vote } from '@lucide/vue';
import Panel from '@/components/Panel.vue';
import { formatShortDate } from '@/lib/format';
defineProps({
polls: { type: Array, required: true },
});
</script>
<template>
<Panel title="Ihre Meinung ist gefragt" action-label="Alle Umfragen" action-href="/umfragen">
<ul class="-my-1 grid gap-1">
<li v-for="poll in polls" :key="poll.id">
<Link :href="poll.url" class="group -mx-2 flex items-center gap-3 rounded-md p-2 hover:bg-accent/50">
<span class="grid size-9 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text"><Vote class="size-4.5" /></span>
<span class="min-w-0">
<span class="line-clamp-2 text-sm leading-snug font-medium group-hover:underline">{{ poll.title }}</span>
<span v-if="poll.closes_at" class="block text-xs text-muted-foreground">bis {{ formatShortDate(poll.closes_at) }}</span>
</span>
</Link>
</li>
</ul>
</Panel>
</template>

View file

@ -0,0 +1,9 @@
<?php
use Illuminate\Support\Facades\Route;
use Inhaus\Plugins\Umfragen\Http\Controllers\PollController;
// /api/v1/polls … (Token nötig, siehe docs/API.md)
Route::get('/polls', [PollController::class, 'apiIndex']);
Route::get('/polls/{poll}', [PollController::class, 'apiShow'])->whereNumber('poll');
Route::post('/polls/{poll}/vote', [PollController::class, 'vote'])->whereNumber('poll')->middleware('throttle:30,1');

View file

@ -0,0 +1,21 @@
<?php
use Illuminate\Support\Facades\Route;
use Inhaus\Plugins\Umfragen\Http\Controllers\PollController;
use Inhaus\Plugins\Umfragen\Http\Controllers\PollEditorController;
Route::middleware('auth')->group(function () {
Route::get('/umfragen', [PollController::class, 'index'])->name('polls.index');
Route::prefix('redaktion/umfragen')->name('polls.')->controller(PollEditorController::class)->group(function () {
Route::get('/neu', 'create')->name('create');
Route::post('/', 'store')->name('store');
Route::get('/{poll}', 'edit')->name('edit');
Route::put('/{poll}', 'update')->name('update');
Route::delete('/{poll}', 'destroy')->name('destroy');
Route::get('/{poll}/ergebnisse.csv', 'export')->name('export');
});
Route::get('/umfragen/{poll}', [PollController::class, 'show'])->name('polls.show');
Route::post('/umfragen/{poll}/abstimmen', [PollController::class, 'vote'])->middleware('throttle:30,1')->name('polls.vote');
});

View file

@ -0,0 +1,38 @@
<?php
namespace Inhaus\Plugins\Umfragen;
use App\Models\User;
use App\Notifications\PortalNotification;
use App\Plugins\PluginAccess;
use App\Support\Permissions\Audiences;
use Illuminate\Support\Facades\Notification;
use Inhaus\Plugins\Umfragen\Models\Poll;
/**
* Auf Wunsch der Redaktion: neue Umfrage einmal ankündigen – an ihre Zielgruppe.
*/
class Announcer
{
public function announceIfDue(Poll $poll): void
{
if (! $poll->announce || $poll->announced_at !== null || ! $poll->isOpen()) {
return;
}
$poll->forceFill(['announced_at' => now()])->save();
$rules = Audiences::get('poll', $poll->id);
$excluded = app(PluginAccess::class)->excludedRoles('umfragen');
$notification = new PortalNotification('Neue Umfrage: '.$poll->title, 'Ihre Meinung ist gefragt.', route('polls.show', $poll, false), 'vote');
User::query()->active()->whereKeyNot($poll->author_id ?? 0)
->when($excluded !== [], fn ($q) => $q->whereDoesntHave('roles', fn ($r) => $r->whereIn('roles.id', $excluded)))
->with('roles')
->chunkById(500, fn ($users) => Notification::send($users->filter(fn (User $u) => Audiences::matches($rules ?: null, $u)), $notification));
}
public function announceDue(): void
{
Poll::query()->open()->where('announce', true)->whereNull('announced_at')->get()->each(fn (Poll $poll) => $this->announceIfDue($poll));
}
}

View file

@ -0,0 +1,96 @@
<?php
namespace Inhaus\Plugins\Umfragen\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Database\QueryException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;
use Inertia\Inertia;
use Inertia\Response;
use Inhaus\Plugins\Umfragen\Models\Poll;
use Inhaus\Plugins\Umfragen\Models\PollResponse;
use Inhaus\Plugins\Umfragen\Presenter;
use Inhaus\Plugins\Umfragen\Questions;
class PollController extends Controller
{
public function index(Request $request): Response
{
return Inertia::render('umfragen::Index', [
...$this->lists($request),
'canManage' => $request->user()->can('polls.manage'),
]);
}
public function show(Request $request, Poll $poll): Response
{
$this->ensureVisible($request, $poll);
return Inertia::render('umfragen::Show', ['poll' => Presenter::present($poll, $request->user())]);
}
public function vote(Request $request, Poll $poll): RedirectResponse|JsonResponse
{
$this->ensureVisible($request, $poll);
$user = $request->user();
if (! $poll->isOpen()) {
throw ValidationException::withMessages(['answers' => 'Diese Umfrage ist beendet.']);
}
$answers = Questions::validate($poll->questions, $request->input('answers'));
try {
PollResponse::query()->create([
'poll_id' => $poll->id,
'user_id' => $poll->anonymous ? null : $user->id,
'voter' => $poll->voterKey($user),
'answers' => $answers,
'submitted_on' => today(),
]);
} catch (QueryException) {
throw ValidationException::withMessages(['answers' => 'Sie haben bereits teilgenommen.']);
}
if ($request->expectsJson() && ! $request->header('X-Inertia')) {
return response()->json(['message' => 'Danke für Ihre Teilnahme!', 'data' => Presenter::present($poll, $user)]);
}
return back()->with('status', 'Danke für Ihre Teilnahme!');
}
public function apiIndex(Request $request): JsonResponse
{
return response()->json(['data' => $this->lists($request)]);
}
public function apiShow(Request $request, Poll $poll): JsonResponse
{
$this->ensureVisible($request, $poll);
return response()->json(['data' => Presenter::present($poll, $request->user())]);
}
/**
* @return array{open: list<array<string, mixed>>, closed: list<array<string, mixed>>}
*/
private function lists(Request $request): array
{
$user = $request->user();
$voted = fn (Poll $poll) => [...Presenter::card($poll), 'voted' => $poll->hasVoted($user)];
return [
'open' => Poll::query()->open()->visibleTo($user)->orderByRaw('closes_at IS NULL')->orderBy('closes_at')->latest('published_at')->limit(50)->get()->map($voted)->all(),
'closed' => Poll::query()->published()->whereNotNull('closes_at')->where('closes_at', '<=', now())->visibleTo($user)->latest('closes_at')->limit(30)->get()->map($voted)->all(),
];
}
private function ensureVisible(Request $request, Poll $poll): void
{
$user = $request->user();
abort_unless(($poll->isPublished() || $user->can('polls.manage')) && $poll->isVisibleTo($user), 404);
}
}

View file

@ -0,0 +1,181 @@
<?php
namespace Inhaus\Plugins\Umfragen\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Support\Audit;
use App\Support\Csv;
use App\Support\Permissions\Audiences;
use Carbon\Carbon;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Gate;
use Illuminate\Validation\Rule;
use Illuminate\Validation\ValidationException;
use Inertia\Inertia;
use Inertia\Response;
use Inhaus\Plugins\Umfragen\Announcer;
use Inhaus\Plugins\Umfragen\Models\Poll;
use Inhaus\Plugins\Umfragen\Questions;
use Symfony\Component\HttpFoundation\StreamedResponse;
/**
* Umfragen im Portal anlegen und auswerten (Recht „polls.manage“).
*/
class PollEditorController extends Controller
{
public function create(): Response
{
Gate::authorize('polls.manage');
return $this->editor(null);
}
public function edit(Poll $poll): Response
{
Gate::authorize('polls.manage');
return $this->editor($poll);
}
public function store(Request $request): RedirectResponse
{
Gate::authorize('polls.manage');
[$attributes, $audience] = $this->validated($request, null);
$poll = Poll::query()->create([...$attributes, 'author_id' => $request->user()->id]);
Audiences::sync('poll', $poll->id, $audience);
Audit::log('poll.created', ['poll' => $poll->id, 'title' => $poll->title]);
app(Announcer::class)->announceIfDue($poll);
return to_route($poll->published_at ? 'polls.show' : 'polls.edit', $poll)->with('status', 'Umfrage gespeichert.');
}
public function update(Request $request, Poll $poll): RedirectResponse
{
Gate::authorize('polls.manage');
[$attributes, $audience] = $this->validated($request, $poll);
$poll->update($attributes);
Audiences::sync('poll', $poll->id, $audience);
Audit::log('poll.updated', ['poll' => $poll->id, 'title' => $poll->title]);
app(Announcer::class)->announceIfDue($poll);
return back()->with('status', 'Umfrage gespeichert.');
}
public function destroy(Poll $poll): RedirectResponse
{
Gate::authorize('polls.manage');
$poll->delete();
Audiences::sync('poll', $poll->id, []);
Audit::log('poll.deleted', ['poll' => $poll->id, 'title' => $poll->title]);
return to_route('polls.index')->with('status', 'Umfrage „'.$poll->title.'“ gelöscht.');
}
public function export(Poll $poll): StreamedResponse
{
Gate::authorize('polls.manage');
$questions = $poll->questions;
$labels = fn (array $question, mixed $value) => match ($question['type']) {
'single', 'multiple' => collect($question['options'])->whereIn('id', (array) $value)->pluck('label')->implode(', '),
default => (string) $value,
};
return response()->streamDownload(function () use ($poll, $questions, $labels) {
$out = fopen('php://output', 'w');
fwrite($out, "\xEF\xBB\xBF");
fputcsv($out, [...($poll->anonymous ? [] : ['Name']), 'Datum', ...array_column($questions, 'label')], ';');
$poll->responses()->with('user')->orderBy('id')->chunk(500, function ($responses) use ($out, $poll, $questions, $labels) {
foreach ($responses as $response) {
fputcsv($out, array_map(Csv::cell(...), [
...($poll->anonymous ? [] : [$response->user?->name ?? '(gelöscht)']),
$response->submitted_on?->format('d.m.Y'),
...array_map(fn ($q) => isset($response->answers[$q['id']]) ? $labels($q, $response->answers[$q['id']]) : '', $questions),
]), ';');
}
});
fclose($out);
}, 'umfrage-'.$poll->id.'.csv', ['Content-Type' => 'text/csv; charset=utf-8']);
}
private function editor(?Poll $poll): Response
{
return Inertia::render('umfragen::Editor', [
'poll' => $poll ? [
'id' => $poll->id,
'title' => $poll->title,
'description' => $poll->description,
'questions' => $poll->questions,
'anonymous' => $poll->anonymous,
'results_visibility' => $poll->results_visibility,
'published' => $poll->published_at !== null,
'published_at' => $poll->published_at?->format('Y-m-d\TH:i'),
'closes_at' => $poll->closes_at?->format('Y-m-d\TH:i'),
'announce' => $poll->announce,
'announced' => $poll->announced_at !== null,
'responses' => $poll->responses()->count(),
'audience' => Audiences::get('poll', $poll->id),
'url' => route('polls.show', $poll),
] : null,
'visibilityOptions' => Poll::VISIBILITY,
'audienceOptions' => Audiences::options(),
]);
}
/**
* @return array{0: array<string, mixed>, 1: array<string, list<string>>}
*/
private function validated(Request $request, ?Poll $poll): array
{
$data = $request->validate([
'title' => ['required', 'string', 'max:200'],
'description' => ['nullable', 'string', 'max:5000'],
'questions' => ['required', 'array', 'max:'.Questions::MAX_QUESTIONS],
'anonymous' => ['boolean'],
'results_visibility' => ['required', Rule::in(array_keys(Poll::VISIBILITY))],
'published' => ['boolean'],
'published_at' => ['nullable', 'date'],
'closes_at' => ['nullable', 'date'],
'announce' => ['boolean'],
'audience' => ['nullable', 'array'],
'audience.*' => ['array'],
'audience.*.*' => ['string', 'max:150'],
], [], ['title' => 'Titel', 'closes_at' => 'Ende', 'published_at' => 'Beginn']);
$questions = Questions::sanitize($data['questions']);
if ($questions === []) {
throw ValidationException::withMessages(['questions' => 'Bitte mindestens eine vollständige Frage anlegen (Auswahlfragen mit mindestens zwei Antworten).']);
}
$published = (bool) ($data['published'] ?? false);
$publishedAt = $published ? (filled($data['published_at'] ?? null) ? Carbon::parse($data['published_at']) : ($poll?->published_at ?? now())) : null;
$closesAt = filled($data['closes_at'] ?? null) ? Carbon::parse($data['closes_at']) : null;
if ($closesAt && $publishedAt && $closesAt->lte($publishedAt)) {
throw ValidationException::withMessages(['closes_at' => 'Das Ende muss nach dem Beginn liegen.']);
}
// Anonym lässt sich nach den ersten Stimmen nicht mehr ändern – sonst wären Namen nachträglich weg oder zu Unrecht versprochen
$anonymous = (bool) ($data['anonymous'] ?? false);
if ($poll && $poll->anonymous !== $anonymous && $poll->responses()->exists()) {
throw ValidationException::withMessages(['anonymous' => 'Nach den ersten Stimmen lässt sich „Anonym“ nicht mehr ändern.']);
}
return [[
'title' => trim($data['title']),
'description' => filled($data['description'] ?? null) ? trim($data['description']) : null,
'questions' => $questions,
'anonymous' => $anonymous,
'results_visibility' => $data['results_visibility'],
'published_at' => $publishedAt,
'closes_at' => $closesAt,
'announce' => (bool) ($data['announce'] ?? false),
], array_intersect_key((array) ($data['audience'] ?? []), array_flip(['role', 'department', 'location', 'exclude_role']))];
}
}

View file

@ -0,0 +1,127 @@
<?php
namespace Inhaus\Plugins\Umfragen\Models;
use App\Models\User;
use App\Support\Permissions\Audiences;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
#[Fillable([
'title', 'description', 'questions', 'anonymous', 'results_visibility',
'published_at', 'closes_at', 'announce', 'author_id',
])]
class Poll extends Model
{
public const AFTER_VOTE = 'after_vote';
public const AFTER_END = 'after_end';
public const EDITORS = 'editors';
public const VISIBILITY = [
self::AFTER_VOTE => 'Nach der eigenen Abstimmung',
self::AFTER_END => 'Erst nach dem Ende der Umfrage',
self::EDITORS => 'Nur für die Redaktion',
];
protected function casts(): array
{
return [
'questions' => 'array',
'anonymous' => 'boolean',
'announce' => 'boolean',
'published_at' => 'datetime',
'closes_at' => 'datetime',
'announced_at' => 'datetime',
];
}
/**
* @return HasMany<PollResponse, $this>
*/
public function responses(): HasMany
{
return $this->hasMany(PollResponse::class);
}
/**
* @return BelongsTo<User, $this>
*/
public function author(): BelongsTo
{
return $this->belongsTo(User::class);
}
public function isPublished(): bool
{
return $this->published_at !== null && $this->published_at->lte(now());
}
public function isClosed(): bool
{
return $this->closes_at !== null && $this->closes_at->lte(now());
}
public function isOpen(): bool
{
return $this->isPublished() && ! $this->isClosed();
}
public function status(): string
{
return match (true) {
$this->published_at === null => 'draft',
! $this->isPublished() => 'scheduled',
$this->isClosed() => 'closed',
default => 'open',
};
}
/**
* @param Builder<Poll> $query
*/
public function scopePublished(Builder $query): void
{
$query->whereNotNull('published_at')->where('published_at', '<=', now());
}
/**
* @param Builder<Poll> $query
*/
public function scopeOpen(Builder $query): void
{
$query->published()->where(fn (Builder $q) => $q->whereNull('closes_at')->orWhere('closes_at', '>', now()));
}
/**
* @param Builder<Poll> $query
*/
public function scopeVisibleTo(Builder $query, ?User $user): void
{
if ($user?->can('polls.manage')) {
return;
}
Audiences::constrain($query, 'poll', 'polls.id', $user);
}
public function isVisibleTo(?User $user): bool
{
return (bool) $user?->can('polls.manage') || Audiences::allows('poll', $this->id, $user);
}
/** Schlüssel je Person und Umfrage – verhindert doppelte Stimmen, verrät die Person nicht */
public function voterKey(User $user): string
{
return hash_hmac('sha256', 'poll:'.$this->id.':'.$user->id, (string) config('app.key'));
}
public function hasVoted(User $user): bool
{
return $this->responses()->where('voter', $this->voterKey($user))->exists();
}
}

View file

@ -0,0 +1,27 @@
<?php
namespace Inhaus\Plugins\Umfragen\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
#[Fillable(['poll_id', 'user_id', 'voter', 'answers', 'submitted_on'])]
class PollResponse extends Model
{
public $timestamps = false;
protected function casts(): array
{
return ['answers' => 'array', 'submitted_on' => 'date'];
}
/**
* @return BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}

View file

@ -0,0 +1,60 @@
<?php
namespace Inhaus\Plugins\Umfragen;
use App\Models\User;
use Inhaus\Plugins\Umfragen\Models\Poll;
/**
* Umfrage für die Anzeige (Seite, Baustein, App) – mit dem Stand für diese Person.
*/
class Presenter
{
/**
* @return array<string, mixed>
*/
public static function present(Poll $poll, User $user): array
{
$editor = $user->can('polls.manage');
$voted = $poll->hasVoted($user);
$visible = $editor || match ($poll->results_visibility) {
Poll::EDITORS => false,
Poll::AFTER_END => $poll->isClosed(),
default => $voted || $poll->isClosed(),
};
return [
...self::card($poll),
'description' => $poll->description,
'questions' => $poll->questions,
'anonymous' => $poll->anonymous,
'voted' => $voted,
'can_vote' => $poll->isOpen() && ! $voted,
'results' => $visible ? app(Results::class)->for($poll, $editor) : null,
'results_note' => $visible ? null : match ($poll->results_visibility) {
Poll::EDITORS => 'Die Ergebnisse wertet die Redaktion aus.',
Poll::AFTER_END => $poll->closes_at ? 'Die Ergebnisse erscheinen nach dem Ende der Umfrage am '.$poll->closes_at->timezone(config('app.timezone'))->format('d.m.Y, H:i').' Uhr.' : 'Die Ergebnisse erscheinen nach dem Ende der Umfrage.',
default => 'Die Ergebnisse sehen Sie nach Ihrer Abstimmung.',
},
'edit_url' => $editor ? route('polls.edit', $poll) : null,
'export_url' => $editor ? route('polls.export', $poll) : null,
];
}
/**
* @return array<string, mixed>
*/
public static function card(Poll $poll): array
{
return [
'id' => $poll->id,
'title' => $poll->title,
'status' => $poll->status(),
'open' => $poll->isOpen(),
'closes_at' => $poll->closes_at?->toIso8601String(),
'published_at' => $poll->published_at?->toIso8601String(),
'questions_count' => count($poll->questions ?? []),
'url' => route('polls.show', $poll),
];
}
}

View file

@ -0,0 +1,135 @@
<?php
namespace Inhaus\Plugins\Umfragen;
use Illuminate\Support\Str;
use Illuminate\Validation\ValidationException;
/**
* Fragen einer Umfrage: bereinigen (Editor) und Antworten prüfen (Abstimmung).
*
* [{"id": "q1ab", "type": "single|multiple|scale|text", "label": "…", "required": true,
* "options": [{"id": "o1", "label": "…"}], "max": 2, "scale": 5, "min_label": "…", "max_label": "…"}]
*/
class Questions
{
public const TYPES = ['single', 'multiple', 'scale', 'text'];
public const MAX_QUESTIONS = 30;
/**
* @return list<array<string, mixed>>
*/
public static function sanitize(mixed $questions): array
{
$result = [];
foreach (array_slice(array_values(is_array($questions) ? $questions : []), 0, self::MAX_QUESTIONS) as $question) {
if (! is_array($question) || ! in_array($question['type'] ?? null, self::TYPES, true)) {
continue;
}
$label = mb_substr(trim((string) ($question['label'] ?? '')), 0, 300);
if ($label === '') {
continue;
}
$clean = [
'id' => self::id($question['id'] ?? null),
'type' => $question['type'],
'label' => $label,
'required' => (bool) ($question['required'] ?? true),
];
if (in_array($clean['type'], ['single', 'multiple'], true)) {
$options = [];
foreach (array_slice(array_values((array) ($question['options'] ?? [])), 0, 20) as $option) {
$text = mb_substr(trim((string) (is_array($option) ? ($option['label'] ?? '') : $option)), 0, 200);
if ($text !== '') {
$options[] = ['id' => self::id(is_array($option) ? ($option['id'] ?? null) : null), 'label' => $text];
}
}
if (count($options) < 2) {
continue;
}
$clean['options'] = $options;
if ($clean['type'] === 'multiple') {
$max = (int) ($question['max'] ?? 0);
$clean['max'] = $max >= 1 && $max < count($options) ? $max : null;
}
}
if ($clean['type'] === 'scale') {
$clean['scale'] = in_array((int) ($question['scale'] ?? 5), [5, 10], true) ? (int) $question['scale'] : 5;
$clean['min_label'] = mb_substr(trim((string) ($question['min_label'] ?? '')), 0, 60) ?: null;
$clean['max_label'] = mb_substr(trim((string) ($question['max_label'] ?? '')), 0, 60) ?: null;
}
$result[] = $clean;
}
return $result;
}
/**
* Antworten gegen die Fragen prüfen.
*
* @param list<array<string, mixed>> $questions
* @return array<string, mixed>
*/
public static function validate(array $questions, mixed $answers): array
{
$answers = is_array($answers) ? $answers : [];
$clean = [];
$errors = [];
foreach ($questions as $question) {
$value = $answers[$question['id']] ?? null;
$key = 'answers.'.$question['id'];
$value = match ($question['type']) {
'single' => in_array($value, array_column($question['options'], 'id'), true) ? $value : null,
'multiple' => array_values(array_intersect(array_column($question['options'], 'id'), array_filter((array) $value, 'is_string'))) ?: null,
'scale' => is_numeric($value) && (int) $value >= 1 && (int) $value <= $question['scale'] ? (int) $value : null,
'text' => is_string($value) && trim($value) !== '' ? mb_substr(trim($value), 0, 2000) : null,
};
if ($value === null) {
if ($question['required']) {
$errors[$key] = 'Bitte beantworten Sie diese Frage.';
}
continue;
}
if ($question['type'] === 'multiple' && ($question['max'] ?? null) && count($value) > $question['max']) {
$errors[$key] = "Bitte höchstens {$question['max']} auswählen.";
continue;
}
$clean[$question['id']] = $value;
}
if ($errors !== []) {
throw ValidationException::withMessages($errors);
}
if ($clean === []) {
throw ValidationException::withMessages(['answers' => 'Bitte beantworten Sie mindestens eine Frage.']);
}
return $clean;
}
private static function id(mixed $id): string
{
return is_string($id) && preg_match('/^[A-Za-z0-9_-]{2,20}$/', $id) ? $id : Str::lower(Str::random(8));
}
}

View file

@ -0,0 +1,55 @@
<?php
namespace Inhaus\Plugins\Umfragen;
use Inhaus\Plugins\Umfragen\Models\Poll;
/**
* Auswertung einer Umfrage je Frage.
*/
class Results
{
/**
* @return array{total: int, questions: list<array<string, mixed>>}
*/
public function for(Poll $poll, bool $withTexts): array
{
$answers = $poll->responses()->pluck('answers')->map(fn ($a) => is_array($a) ? $a : (json_decode((string) $a, true) ?: []));
$total = $answers->count();
return [
'total' => $total,
'questions' => collect($poll->questions)->map(function (array $question) use ($answers, $withTexts) {
$given = $answers->map(fn ($a) => $a[$question['id']] ?? null)->filter(fn ($v) => $v !== null && $v !== []);
$count = $given->count();
$result = ['id' => $question['id'], 'type' => $question['type'], 'label' => $question['label'], 'answered' => $count];
if (in_array($question['type'], ['single', 'multiple'], true)) {
$tally = $given->flatMap(fn ($v) => (array) $v)->countBy();
$result['options'] = collect($question['options'])->map(fn ($o) => [
'id' => $o['id'],
'label' => $o['label'],
'votes' => (int) ($tally[$o['id']] ?? 0),
'percent' => $count ? (int) round(($tally[$o['id']] ?? 0) / $count * 100) : 0,
])->all();
}
if ($question['type'] === 'scale') {
$tally = $given->countBy();
$result['scale'] = $question['scale'];
$result['min_label'] = $question['min_label'] ?? null;
$result['max_label'] = $question['max_label'] ?? null;
$result['average'] = $count ? round($given->avg(), 1) : null;
$result['distribution'] = collect(range(1, $question['scale']))->map(fn ($n) => ['value' => $n, 'votes' => (int) ($tally[$n] ?? 0)])->all();
}
if ($question['type'] === 'text') {
// Freitexte nur für die Redaktion – sie können Rückschlüsse auf Personen erlauben
$result['texts'] = $withTexts ? $given->values()->shuffle()->take(500)->values()->all() : null;
}
return $result;
})->all(),
];
}
}

View file

@ -0,0 +1,57 @@
<?php
namespace Inhaus\Plugins\Umfragen;
use App\Dashboard\Widgets;
use App\Editorial\Editorial;
use App\Models\User;
use App\Pagebuilder\Blocks;
use App\Pagebuilder\BlockType;
use App\Pagebuilder\Field;
use App\Plugins\Plugin;
use App\Support\Abilities;
use App\Support\Navigation;
use Illuminate\Support\Facades\Schedule;
use Inhaus\Plugins\Umfragen\Models\Poll;
class UmfragenPlugin extends Plugin
{
public function register(): void
{
$this->app->make(Navigation::class)->add('umfragen', 'Umfragen', '/umfragen', active: 'polls.*', sort: 74);
$this->app->make(Abilities::class)->define('polls.manage', 'Umfragen anlegen und auswerten', 'Umfragen', portal: true);
$this->app->make(Editorial::class)->add('umfragen', 'Umfragen', 'umfragen::EditorialPolls', 32,
fn (User $user) => $user->can('polls.manage'),
fn (User $user) => [
'polls' => Poll::query()->withCount('responses')->orderByRaw('published_at IS NULL DESC')->latest('published_at')->latest('id')->limit(50)->get()
->map(fn (Poll $poll) => [...Presenter::card($poll), 'responses' => $poll->responses_count, 'edit_url' => route('polls.edit', $poll)])->all(),
]);
// Startseite: offene Umfragen, an denen die Person noch nicht teilgenommen hat
$this->app->make(Widgets::class)->add('umfragen.open', 'umfragen::Open', 'aside', sort: 25, props: function (User $user) {
$polls = Poll::query()->open()->visibleTo($user)->latest('published_at')->limit(10)->get()
->reject(fn (Poll $poll) => $poll->hasVoted($user))->take(3);
return $polls->isEmpty() ? null : ['polls' => $polls->map(fn (Poll $poll) => Presenter::card($poll))->values()->all()];
}, label: 'Offene Umfragen', mobileSort: 35);
// Baustein: Umfrage direkt in Seite oder Beitrag
$this->app->make(Blocks::class)->add(BlockType::make('umfragen.poll', 'Umfrage', 'vote', 'dynamic', 'umfragen::PollBlock')
->description('Eine Umfrage direkt auf der Seite beantworten lassen.')
->fields([
Field::select('poll', 'Umfrage', fn () => Poll::query()->latest('id')->limit(200)->pluck('title', 'id')->mapWithKeys(fn ($t, $id) => [(string) $id => $t])->all()),
])
->resolveUsing(function (array $data, ?User $user) {
$poll = $data['poll'] ? Poll::query()->find($data['poll']) : null;
return $poll && $user && ($poll->isPublished() || $user->can('polls.manage')) && $poll->isVisibleTo($user) ? Presenter::present($poll, $user) : null;
}));
}
public function boot(): void
{
// Geplante Umfragen ankündigen, sobald sie beginnen
Schedule::call(fn () => $this->app->make(Announcer::class)->announceDue())->everyTenMinutes()->name('umfragen-announce')->withoutOverlapping(10);
}
}

View file

@ -1 +1 @@
import{D as e,E as t,J as n,On as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{Zt as m,at as h,ct as g,lt as _,ot as v,st as y}from"./app-Ua4gL4AX.js";var b={class:`px-5 pt-1 pb-5`},x={__name:`Accordion`,props:{block:{type:Object,required:!0}},setup(x){let S=x,C=n(`pagebuilder:list`),w=n(`pagebuilder:editing`,!1),T=s(()=>{let e=S.block.items[0]?.id;return S.block.data.multiple?S.block.data.first_open&&e?[e]:[]:S.block.data.first_open?e:void 0});return(n,s)=>(c(),f(r(_),{key:`${x.block.data.multiple}-${r(w)}`,type:x.block.data.multiple?`multiple`:`single`,"default-value":T.value,collapsible:``,class:`divide-y rounded-lg border bg-card`},{default:u(()=>[(c(!0),a(l,null,o(x.block.items,(n,a)=>(c(),f(r(g),{key:n.id,value:n.id},{default:u(()=>[e(r(v),{as:`h3`},{default:u(()=>[e(r(h),{class:`group flex w-full items-center justify-between gap-4 px-5 py-4 text-left text-[15px] font-medium hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`},{default:u(()=>[t(d(n.title||`Abschnitt ${a+1}`)+` `,1),e(r(m),{class:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180`})]),_:2},1024)]),_:2},1024),e(r(y),{class:`overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`},{default:u(()=>[i(`div`,b,[(c(),f(p(r(C)),{item:n},null,8,[`item`]))])]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1},8,[`type`,`default-value`]))}};export{x as default};
import{D as e,E as t,J as n,On as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{Zt as m,at as h,ct as g,lt as _,ot as v,st as y}from"./app-BmJeQFgp.js";var b={class:`px-5 pt-1 pb-5`},x={__name:`Accordion`,props:{block:{type:Object,required:!0}},setup(x){let S=x,C=n(`pagebuilder:list`),w=n(`pagebuilder:editing`,!1),T=s(()=>{let e=S.block.items[0]?.id;return S.block.data.multiple?S.block.data.first_open&&e?[e]:[]:S.block.data.first_open?e:void 0});return(n,s)=>(c(),f(r(_),{key:`${x.block.data.multiple}-${r(w)}`,type:x.block.data.multiple?`multiple`:`single`,"default-value":T.value,collapsible:``,class:`divide-y rounded-lg border bg-card`},{default:u(()=>[(c(!0),a(l,null,o(x.block.items,(n,a)=>(c(),f(r(g),{key:n.id,value:n.id},{default:u(()=>[e(r(v),{as:`h3`},{default:u(()=>[e(r(h),{class:`group flex w-full items-center justify-between gap-4 px-5 py-4 text-left text-[15px] font-medium hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`},{default:u(()=>[t(d(n.title||`Abschnitt ${a+1}`)+` `,1),e(r(m),{class:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180`})]),_:2},1024)]),_:2},1024),e(r(y),{class:`overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`},{default:u(()=>[i(`div`,b,[(c(),f(p(r(C)),{item:n},null,8,[`item`]))])]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1},8,[`type`,`default-value`]))}};export{x as default};

View file

@ -1 +1 @@
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u}from"./dist--2OKCVzt.js";import{t as d}from"./file-check-corner-J0TYMSsH.js";import{C as f}from"./app-Ua4gL4AX.js";var p={class:`-mt-1 mb-3 text-[13px] text-muted-foreground`},m={class:`grid gap-1`},h={class:`min-w-0 truncate`},g={__name:`Acknowledgements`,props:{entries:{type:Array,required:!0},total:{type:Number,required:!0},url:{type:String,required:!0}},setup(g){return(_,v)=>(a(),l(f,{title:`Bitte lesen und bestätigen`,"action-label":g.total>g.entries.length?`Alle ${g.total}`:`QM`,"action-href":g.url},{default:s(()=>[n(`p`,p,c(g.total===1?`Ein QM-Dokument wartet`:`${g.total} QM-Dokumente warten`)+` auf Ihre Lesebestätigung. `,1),n(`ul`,m,[(a(!0),r(o,null,i(g.entries,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:i.url,class:`flex items-center gap-2.5 rounded-md px-2 py-1.5 text-sm hover:bg-accent`},{default:s(()=>[e(t(d),{class:`size-4 shrink-0 text-amber-600 dark:text-amber-400`}),n(`span`,h,c(i.title),1)]),_:2},1032,[`href`])]))),128))])]),_:1},8,[`action-label`,`action-href`]))}};export{g as default};
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u}from"./dist--2OKCVzt.js";import{t as d}from"./file-check-corner-J0TYMSsH.js";import{C as f}from"./app-BmJeQFgp.js";var p={class:`-mt-1 mb-3 text-[13px] text-muted-foreground`},m={class:`grid gap-1`},h={class:`min-w-0 truncate`},g={__name:`Acknowledgements`,props:{entries:{type:Array,required:!0},total:{type:Number,required:!0},url:{type:String,required:!0}},setup(g){return(_,v)=>(a(),l(f,{title:`Bitte lesen und bestätigen`,"action-label":g.total>g.entries.length?`Alle ${g.total}`:`QM`,"action-href":g.url},{default:s(()=>[n(`p`,p,c(g.total===1?`Ein QM-Dokument wartet`:`${g.total} QM-Dokumente warten`)+` auf Ihre Lesebestätigung. `,1),n(`ul`,m,[(a(!0),r(o,null,i(g.entries,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:i.url,class:`flex items-center gap-2.5 rounded-md px-2 py-1.5 text-sm hover:bg-accent`},{default:s(()=>[e(t(d),{class:`size-4 shrink-0 text-amber-600 dark:text-amber-400`}),n(`span`,h,c(i.title),1)]),_:2},1032,[`href`])]))),128))])]),_:1},8,[`action-label`,`action-href`]))}};export{g as default};

View file

@ -1 +1 @@
import{D as e,E as t,On as n,_ as r,b as i,g as a,mt as o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as d,o as f,s as p}from"./dist--2OKCVzt.js";import{t as m}from"./loader-circle-Wr6tQn-J.js";import{t as h}from"./smartphone-DpYdBNLx.js";import{p as g}from"./app-Ua4gL4AX.js";import{t as _}from"./GuestLayout-Bjw1wrL4.js";var v={class:`grid gap-5`},y={class:`flex items-center gap-3 rounded-lg border bg-muted/40 p-4`},b={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},x={class:`min-w-0 text-sm`},S={class:`font-semibold`},C={key:0,class:`text-muted-foreground`},w={__name:`AppConnect`,props:{deviceName:{type:String,required:!0},query:{type:Object,required:!0}},setup(w){let T=w,E=a(()=>f().props.auth?.user),D=d({...T.query});function O(){D.post(`/app/verbinden`)}function k(){p.post(`/logout`)}return(a,d)=>(o(),l(_,{title:`App verbinden`,description:`Die Inhaus-App möchte sich mit Ihrem Konto anmelden.`},{default:s(()=>[r(`div`,v,[r(`div`,y,[r(`span`,b,[e(n(h),{class:`size-5`})]),r(`div`,x,[r(`p`,S,c(w.deviceName),1),E.value?(o(),i(`p`,C,`Angemeldet als `+c(E.value.name),1)):u(``,!0)])]),d[1]||=r(`p`,{class:`text-sm text-muted-foreground`},` Die App kann danach Neuigkeiten, Termine und Benachrichtigungen in Ihrem Namen abrufen. Den Zugang können Sie jederzeit unter „Profil bearbeiten → Benachrichtigungen & Apps“ wieder entziehen. `,-1),e(n(g),{class:`h-10`,disabled:n(D).processing,onClick:O},{default:s(()=>[n(D).processing?(o(),l(n(m),{key:0,class:`animate-spin`})):u(``,!0),d[0]||=t(` Verbinden und zurück zur App `,-1)]),_:1},8,[`disabled`]),r(`button`,{type:`button`,class:`text-sm text-muted-foreground hover:text-foreground hover:underline`,onClick:k},`Nicht Sie? Abmelden`)])]),_:1}))}};export{w as default};
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,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as d,o as f,s as p}from"./dist--2OKCVzt.js";import{t as m}from"./loader-circle-Wr6tQn-J.js";import{t as h}from"./smartphone-DpYdBNLx.js";import{p as g}from"./app-BmJeQFgp.js";import{t as _}from"./GuestLayout-B6JV21dP.js";var v={class:`grid gap-5`},y={class:`flex items-center gap-3 rounded-lg border bg-muted/40 p-4`},b={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},x={class:`min-w-0 text-sm`},S={class:`font-semibold`},C={key:0,class:`text-muted-foreground`},w={__name:`AppConnect`,props:{deviceName:{type:String,required:!0},query:{type:Object,required:!0}},setup(w){let T=w,E=a(()=>f().props.auth?.user),D=d({...T.query});function O(){D.post(`/app/verbinden`)}function k(){p.post(`/logout`)}return(a,d)=>(o(),l(_,{title:`App verbinden`,description:`Die Inhaus-App möchte sich mit Ihrem Konto anmelden.`},{default:s(()=>[r(`div`,v,[r(`div`,y,[r(`span`,b,[e(n(h),{class:`size-5`})]),r(`div`,x,[r(`p`,S,c(w.deviceName),1),E.value?(o(),i(`p`,C,`Angemeldet als `+c(E.value.name),1)):u(``,!0)])]),d[1]||=r(`p`,{class:`text-sm text-muted-foreground`},` Die App kann danach Neuigkeiten, Termine und Benachrichtigungen in Ihrem Namen abrufen. Den Zugang können Sie jederzeit unter „Profil bearbeiten → Benachrichtigungen & Apps“ wieder entziehen. `,-1),e(n(g),{class:`h-10`,disabled:n(D).processing,onClick:O},{default:s(()=>[n(D).processing?(o(),l(n(m),{key:0,class:`animate-spin`})):u(``,!0),d[0]||=t(` Verbinden und zurück zur App `,-1)]),_:1},8,[`disabled`]),r(`button`,{type:`button`,class:`text-sm text-muted-foreground hover:text-foreground hover:underline`,onClick:k},`Nicht Sie? Abmelden`)])]),_:1}))}};export{w as default};

View file

@ -1 +1 @@
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,gn as c,mt as l,o as u,qt as d,tr as f,v as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as h,x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as _,o as v,s as y}from"./dist--2OKCVzt.js";import{t as b}from"./download-K4OGj5k2.js";import{n as x}from"./lib-Be7KNAML.js";import{F as S,O as C,S as w,T,dt as E,kt as D,p as O,w as k,y as A}from"./app-Ua4gL4AX.js";var j={key:0,class:`grid gap-4`},M={class:`flex flex-wrap items-start gap-4`},N={class:`min-w-0 flex-1`},P={class:`text-[13px] text-muted-foreground`},F={class:`text-xs text-muted-foreground`},I={class:`flex flex-wrap gap-2`},L=[`href`],R=[`href`],z={key:0,class:`mt-4 rounded-md bg-muted/60 px-4 py-3 text-sm leading-relaxed break-words whitespace-pre-line`},B=[`onSubmit`],V={class:`grid gap-1 text-[13px] font-medium`},H={class:`grid gap-1 text-[13px] font-medium`},U=[`onUpdate:modelValue`],W={key:1,class:`rounded-lg border border-dashed bg-card`},G={__name:`Applications`,props:{posting:{type:Object,required:!0},applications:{type:Array,required:!0},statuses:{type:Array,required:!0}},setup(G){let K=G,q=v();n(()=>q.props.flash.status,e=>e&&x.success(e));let J=c(Object.fromEntries(K.applications.map(e=>[e.id,{status:e.status,note:e.note??``}])));function Y(e){y.put(`/redaktion/stellen/bewerbungen/${e.id}`,J[e.id],{preserveScroll:!0})}return(n,c)=>(l(),p(T,{title:`Bewerbungen: ${G.posting.title}`},{default:d(()=>[e(k,{title:`Bewerbungen (${G.applications.length})`,description:G.posting.title,breadcrumbs:[{label:`Stellen`,href:`/stellen`},{label:G.posting.title,href:G.posting.url}]},null,8,[`title`,`description`,`breadcrumbs`]),G.applications.length?(l(),o(`ul`,j,[(l(!0),o(u,null,s(G.applications,n=>(l(),o(`li`,{key:n.id,class:`rounded-lg border bg-card p-5`},[a(`div`,M,[e(C,{person:n.person,class:`size-11`},null,8,[`person`]),a(`div`,N,[e(r(_),{href:`/personen/${n.person.id}`,class:`font-semibold hover:underline`},{default:d(()=>[t(f(n.person.name),1)]),_:2},1032,[`href`]),a(`p`,P,f([n.person.job_title,n.person.department].filter(Boolean).join(` · `)||`–`),1),a(`p`,F,`Eingegangen am `+f(r(S)(n.created_at)),1)]),a(`div`,I,[n.file?(l(),p(r(O),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:d(()=>[a(`a`,{href:n.file.url},[e(r(b)),t(` `+f(n.file.name),1)],8,L)]),_:2},1024)):m(``,!0),e(r(O),{variant:`outline`,size:`sm`,"as-child":``},{default:d(()=>[a(`a`,{href:`mailto:${n.person.email}`},[e(r(D)),c[0]||=t(` E-Mail`,-1)],8,R)]),_:2},1024)])]),n.message?(l(),o(`p`,z,f(n.message),1)):m(``,!0),a(`form`,{class:`mt-4 grid gap-3 border-t pt-4 sm:grid-cols-[12rem_minmax(0,1fr)_auto] sm:items-end`,onSubmit:h(e=>Y(n),[`prevent`])},[a(`label`,V,[c[1]||=t(`Stand `,-1),e(A,{modelValue:J[n.id].status,"onUpdate:modelValue":e=>J[n.id].status=e,options:G.statuses},null,8,[`modelValue`,`onUpdate:modelValue`,`options`])]),a(`label`,H,[c[2]||=t(`Interne Notiz `,-1),i(a(`input`,{"onUpdate:modelValue":e=>J[n.id].note=e,maxlength:`5000`,placeholder:`nur für die Bearbeitung sichtbar`,class:`h-9 rounded-md border border-input bg-card px-3 text-sm font-normal focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`},null,8,U),[[g,J[n.id].note]])]),e(r(O),{type:`submit`,size:`sm`,class:`h-9`},{default:d(()=>[...c[3]||=[t(`Speichern`,-1)]]),_:1})],40,B)]))),128))])):(l(),o(`div`,W,[e(w,{icon:r(E),title:`Noch keine Bewerbungen`},null,8,[`icon`])]))]),_:1},8,[`title`]))}};export{G as default};
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,gn as c,mt as l,o as u,qt as d,tr as f,v as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as h,x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as _,o as v,s as y}from"./dist--2OKCVzt.js";import{t as b}from"./download-K4OGj5k2.js";import{n as x}from"./lib-Be7KNAML.js";import{F as S,O as C,S as w,T,dt as E,kt as D,p as O,w as k,y as A}from"./app-BmJeQFgp.js";var j={key:0,class:`grid gap-4`},M={class:`flex flex-wrap items-start gap-4`},N={class:`min-w-0 flex-1`},P={class:`text-[13px] text-muted-foreground`},F={class:`text-xs text-muted-foreground`},I={class:`flex flex-wrap gap-2`},L=[`href`],R=[`href`],z={key:0,class:`mt-4 rounded-md bg-muted/60 px-4 py-3 text-sm leading-relaxed break-words whitespace-pre-line`},B=[`onSubmit`],V={class:`grid gap-1 text-[13px] font-medium`},H={class:`grid gap-1 text-[13px] font-medium`},U=[`onUpdate:modelValue`],W={key:1,class:`rounded-lg border border-dashed bg-card`},G={__name:`Applications`,props:{posting:{type:Object,required:!0},applications:{type:Array,required:!0},statuses:{type:Array,required:!0}},setup(G){let K=G,q=v();n(()=>q.props.flash.status,e=>e&&x.success(e));let J=c(Object.fromEntries(K.applications.map(e=>[e.id,{status:e.status,note:e.note??``}])));function Y(e){y.put(`/redaktion/stellen/bewerbungen/${e.id}`,J[e.id],{preserveScroll:!0})}return(n,c)=>(l(),p(T,{title:`Bewerbungen: ${G.posting.title}`},{default:d(()=>[e(k,{title:`Bewerbungen (${G.applications.length})`,description:G.posting.title,breadcrumbs:[{label:`Stellen`,href:`/stellen`},{label:G.posting.title,href:G.posting.url}]},null,8,[`title`,`description`,`breadcrumbs`]),G.applications.length?(l(),o(`ul`,j,[(l(!0),o(u,null,s(G.applications,n=>(l(),o(`li`,{key:n.id,class:`rounded-lg border bg-card p-5`},[a(`div`,M,[e(C,{person:n.person,class:`size-11`},null,8,[`person`]),a(`div`,N,[e(r(_),{href:`/personen/${n.person.id}`,class:`font-semibold hover:underline`},{default:d(()=>[t(f(n.person.name),1)]),_:2},1032,[`href`]),a(`p`,P,f([n.person.job_title,n.person.department].filter(Boolean).join(` · `)||`–`),1),a(`p`,F,`Eingegangen am `+f(r(S)(n.created_at)),1)]),a(`div`,I,[n.file?(l(),p(r(O),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:d(()=>[a(`a`,{href:n.file.url},[e(r(b)),t(` `+f(n.file.name),1)],8,L)]),_:2},1024)):m(``,!0),e(r(O),{variant:`outline`,size:`sm`,"as-child":``},{default:d(()=>[a(`a`,{href:`mailto:${n.person.email}`},[e(r(D)),c[0]||=t(` E-Mail`,-1)],8,R)]),_:2},1024)])]),n.message?(l(),o(`p`,z,f(n.message),1)):m(``,!0),a(`form`,{class:`mt-4 grid gap-3 border-t pt-4 sm:grid-cols-[12rem_minmax(0,1fr)_auto] sm:items-end`,onSubmit:h(e=>Y(n),[`prevent`])},[a(`label`,V,[c[1]||=t(`Stand `,-1),e(A,{modelValue:J[n.id].status,"onUpdate:modelValue":e=>J[n.id].status=e,options:G.statuses},null,8,[`modelValue`,`onUpdate:modelValue`,`options`])]),a(`label`,H,[c[2]||=t(`Interne Notiz `,-1),i(a(`input`,{"onUpdate:modelValue":e=>J[n.id].note=e,maxlength:`5000`,placeholder:`nur für die Bearbeitung sichtbar`,class:`h-9 rounded-md border border-input bg-card px-3 text-sm font-normal focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`},null,8,U),[[g,J[n.id].note]])]),e(r(O),{type:`submit`,size:`sm`,class:`h-9`},{default:d(()=>[...c[3]||=[t(`Speichern`,-1)]]),_:1})],40,B)]))),128))])):(l(),o(`div`,W,[e(w,{icon:r(E),title:`Noch keine Bewerbungen`},null,8,[`icon`])]))]),_:1},8,[`title`]))}};export{G as default};

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{C as s}from"./app-Ua4gL4AX.js";import{t as c}from"./NewsCard-CKsK8E8E.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{C as s}from"./app-BmJeQFgp.js";import{t as c}from"./NewsCard-DCf1bpMr.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

@ -1 +1 @@
import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u}from"./dist--2OKCVzt.js";import{O as d,en as f}from"./app-Ua4gL4AX.js";var p={class:`relative shrink-0`},m={key:0,class:`absolute -right-1 -bottom-1 grid size-5 place-items-center rounded-full bg-brand text-brand-foreground ring-2 ring-card`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block truncate text-xs text-muted-foreground`},v={__name:`BirthdayItem`,props:{item:{type:Object,required:!0}},setup(v){let y=e=>new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}).format(new Date(`${e}T12:00:00`)),b=e=>new Intl.DateTimeFormat(`de-DE`,{weekday:`short`}).format(new Date(`${e}T12:00:00`));return(x,S)=>(a(),c(t(u),{href:`/personen/${v.item.person.id}`,class:`group flex items-center gap-3 py-2.5`},{default:o(()=>[r(`span`,p,[e(d,{person:v.item.person,class:`size-10`},null,8,[`person`]),v.item.today?(a(),i(`span`,m,[e(t(f),{class:`size-3`})])):l(``,!0)]),r(`span`,h,[r(`span`,g,s(v.item.person.name),1),r(`span`,_,s(v.item.person.job_title||v.item.person.department),1)]),r(`span`,{class:n([`shrink-0 text-right text-xs`,v.item.today?`font-semibold text-brand-text`:`text-muted-foreground`])},s(v.item.today?`Heute`:`${b(v.item.date)}, ${y(v.item.date)}`),3)]),_:1},8,[`href`]))}};export{v as t};
import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u}from"./dist--2OKCVzt.js";import{O as d,en as f}from"./app-BmJeQFgp.js";var p={class:`relative shrink-0`},m={key:0,class:`absolute -right-1 -bottom-1 grid size-5 place-items-center rounded-full bg-brand text-brand-foreground ring-2 ring-card`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block truncate text-xs text-muted-foreground`},v={__name:`BirthdayItem`,props:{item:{type:Object,required:!0}},setup(v){let y=e=>new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}).format(new Date(`${e}T12:00:00`)),b=e=>new Intl.DateTimeFormat(`de-DE`,{weekday:`short`}).format(new Date(`${e}T12:00:00`));return(x,S)=>(a(),c(t(u),{href:`/personen/${v.item.person.id}`,class:`group flex items-center gap-3 py-2.5`},{default:o(()=>[r(`span`,p,[e(d,{person:v.item.person,class:`size-10`},null,8,[`person`]),v.item.today?(a(),i(`span`,m,[e(t(f),{class:`size-3`})])):l(``,!0)]),r(`span`,h,[r(`span`,g,s(v.item.person.name),1),r(`span`,_,s(v.item.person.job_title||v.item.person.department),1)]),r(`span`,{class:n([`shrink-0 text-right text-xs`,v.item.today?`font-semibold text-brand-text`:`text-muted-foreground`])},s(v.item.today?`Heute`:`${b(v.item.date)}, ${y(v.item.date)}`),3)]),_:1},8,[`href`]))}};export{v as t};

View file

@ -1 +1 @@
import{_ as e,b as t,bt as n,mt as r,o as i,tr as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as c}from"./BirthdayItem-BHLLsqc3.js";var l={key:0,class:`mb-3 text-lg font-semibold`},u={class:`divide-y rounded-lg border bg-card px-4`},d={key:0,class:`py-3 text-sm text-muted-foreground`},f={__name:`BirthdaysBlock`,props:{block:{type:Object,required:!0}},setup(f){return(p,m)=>(r(),t(`section`,null,[f.block.data.title?(r(),t(`h3`,l,a(f.block.data.title),1)):s(``,!0),e(`div`,u,[(r(!0),t(i,null,n(f.block.props?.birthdays??[],e=>(r(),o(c,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128)),(f.block.props?.birthdays??[]).length?s(``,!0):(r(),t(`p`,d,`Keine anstehenden Geburtstage.`))])]))}};export{f as default};
import{_ as e,b as t,bt as n,mt as r,o as i,tr as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as c}from"./BirthdayItem-CiUW_rj7.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 +1 @@
import{J as e,On as t,b as n,bt as r,mt as i,o as a,v as o,wt as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as l}from"./registry-DQw0FHN2.js";var u={class:`grid gap-6`},d={__name:`BlockList`,props:{item:{type:Object,required:!0}},setup(d){let f=e(`pagebuilder:types`,{});return(e,p)=>(i(),n(`div`,u,[(i(!0),n(a,null,r(d.item.blocks,e=>(i(),n(a,{key:e.id},[t(l)(t(f)[e.type]?.component??e.component??``)?(i(),o(s(t(l)(t(f)[e.type]?.component??e.component??``)),{key:0,block:e},null,8,[`block`])):c(``,!0)],64))),128))]))}};export{d as t};
import{J as e,On as t,b as n,bt as r,mt as i,o as a,v as o,wt as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as l}from"./registry-DqmXbRQ2.js";var u={class:`grid gap-6`},d={__name:`BlockList`,props:{item:{type:Object,required:!0}},setup(d){let f=e(`pagebuilder:types`,{});return(e,p)=>(i(),n(`div`,u,[(i(!0),n(a,null,r(d.item.blocks,e=>(i(),n(a,{key:e.id},[t(l)(t(f)[e.type]?.component??e.component??``)?(i(),o(s(t(l)(t(f)[e.type]?.component??e.component??``)),{key:0,block:e},null,8,[`block`])):c(``,!0)],64))),128))]))}};export{d as t};

View file

@ -1 +1 @@
import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./circle-alert-AqOvEy07.js";import{t as d}from"./circle-check-K9QH5jex.js";import{t as f}from"./info-ByKJSon9.js";import{t as p}from"./triangle-alert-DyO_Fk2w.js";import{Nt as m,ht as h}from"./app-Ua4gL4AX.js";var g=[`role`],_={class:`min-w-0 flex-1`},v={key:0,class:`mb-2 font-semibold`},y={__name:`Box`,props:{block:{type:Object,required:!0}},setup(y){let b=e(`pagebuilder:list`),x={info:{icon:f,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,iconClass:`text-sky-600 dark:text-sky-400`},note:{icon:m,class:`border-amber-200 bg-amber-50 text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`,iconClass:`text-amber-600 dark:text-amber-400`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`,iconClass:`text-red-600 dark:text-red-400`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,iconClass:`text-emerald-600 dark:text-emerald-400`},neutral:{icon:u,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:h,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,u)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[y.block.data.variant]?.class]),role:y.block.data.variant===`warning`?`alert`:`note`},[y.block.data.show_icon?(a(),s(c(x[y.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[y.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,_,[y.block.data.title?(a(),i(`p`,v,o(y.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:y.block.items[0]},null,8,[`item`]))])],10,g))}};export{y as default};
import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./circle-alert-AqOvEy07.js";import{t as d}from"./circle-check-K9QH5jex.js";import{t as f}from"./info-ByKJSon9.js";import{t as p}from"./triangle-alert-DyO_Fk2w.js";import{Nt as m,ht as h}from"./app-BmJeQFgp.js";var g=[`role`],_={class:`min-w-0 flex-1`},v={key:0,class:`mb-2 font-semibold`},y={__name:`Box`,props:{block:{type:Object,required:!0}},setup(y){let b=e(`pagebuilder:list`),x={info:{icon:f,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,iconClass:`text-sky-600 dark:text-sky-400`},note:{icon:m,class:`border-amber-200 bg-amber-50 text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`,iconClass:`text-amber-600 dark:text-amber-400`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`,iconClass:`text-red-600 dark:text-red-400`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,iconClass:`text-emerald-600 dark:text-emerald-400`},neutral:{icon:u,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:h,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,u)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[y.block.data.variant]?.class]),role:y.block.data.variant===`warning`?`alert`:`note`},[y.block.data.show_icon?(a(),s(c(x[y.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[y.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,_,[y.block.data.title?(a(),i(`p`,v,o(y.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:y.block.items[0]},null,8,[`item`]))])],10,g))}};export{y as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{E as e,J as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as p}from"./createLucideIcon-VlaMqNX_.js";import{p as m}from"./app-Ua4gL4AX.js";var h=p({name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]}),g=[`href`,`target`,`rel`],_={key:0,class:`text-sm text-muted-foreground`},v={__name:`Buttons`,props:{block:{type:Object,required:!0}},setup(p){let v={primary:`default`,outline:`outline`,link:`link`},y=t(`pagebuilder:editing`,!1);return(t,b)=>(s(),a(`div`,{class:r([`flex flex-wrap gap-3`,{"justify-center":p.block.data.align===`center`}])},[(s(!0),a(c,null,o(p.block.data.buttons,(t,r)=>(s(),d(n(m),{key:r,variant:v[t.variant]??`default`,"as-child":``},{default:l(()=>[i(`a`,{href:t.url||`#`,target:t.new_tab?`_blank`:void 0,rel:t.new_tab?`noopener`:void 0},[e(u(t.label||`Schaltfläche`)+` `,1),t.new_tab?(s(),d(n(h),{key:0})):f(``,!0)],8,g)]),_:2},1032,[`variant`]))),128)),n(y)&&!p.block.data.buttons.length?(s(),a(`p`,_,`Noch keine Schaltflächen.`)):f(``,!0)],2))}};export{v as default};
import{E as e,J as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as p}from"./createLucideIcon-VlaMqNX_.js";import{p as m}from"./app-BmJeQFgp.js";var h=p({name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]}),g=[`href`,`target`,`rel`],_={key:0,class:`text-sm text-muted-foreground`},v={__name:`Buttons`,props:{block:{type:Object,required:!0}},setup(p){let v={primary:`default`,outline:`outline`,link:`link`},y=t(`pagebuilder:editing`,!1);return(t,b)=>(s(),a(`div`,{class:r([`flex flex-wrap gap-3`,{"justify-center":p.block.data.align===`center`}])},[(s(!0),a(c,null,o(p.block.data.buttons,(t,r)=>(s(),d(n(m),{key:r,variant:v[t.variant]??`default`,"as-child":``},{default:l(()=>[i(`a`,{href:t.url||`#`,target:t.new_tab?`_blank`:void 0,rel:t.new_tab?`noopener`:void 0},[e(u(t.label||`Schaltfläche`)+` `,1),t.new_tab?(s(),d(n(h),{key:0})):f(``,!0)],8,g)]),_:2},1032,[`variant`]))),128)),n(y)&&!p.block.data.buttons.length?(s(),a(`p`,_,`Noch keine Schaltflächen.`)):f(``,!0)],2))}};export{v as default};

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,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{n as m,t as h}from"./message-circle-C0OAlJBT.js";import{C as g}from"./app-Ua4gL4AX.js";var _={class:`-my-1 divide-y`},v={class:`flex items-center gap-1.5 text-xs text-muted-foreground`},y={class:`mt-1 text-sm leading-relaxed break-words text-foreground/80`},b={key:0,class:`mt-2 border-t pt-3 text-xs text-muted-foreground`},x={__name:`Comments`,props:{total:{type:Number,required:!0},comments:{type:Array,required:!0}},setup(x){let S=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`,year:`numeric`});return(C,w)=>(o(),u(g,{title:`Kommentare (${x.total})`},{default:c(()=>[r(`ol`,_,[(o(!0),i(s,null,a(x.comments,a=>(o(),i(`li`,{key:a.id,class:`py-3`},[r(`p`,v,[(o(),u(d(a.is_reply?n(m):n(h)),{class:`size-3.5 shrink-0`})),r(`span`,null,l(a.is_reply?`Antwort`:`Kommentar`)+` am `+l(n(S).format(new Date(a.created_at)))+` zu`,1)]),e(n(p),{href:a.post.url,class:`mt-0.5 block text-sm font-medium text-brand-text hover:underline`},{default:c(()=>[t(l(a.post.title),1)]),_:2},1032,[`href`]),r(`p`,y,`„`+l(a.excerpt)+`“`,1)]))),128))]),x.total>x.comments.length?(o(),i(`p`,b,`Die neuesten `+l(x.comments.length)+` von `+l(x.total)+` Kommentaren.`,1)):f(``,!0)]),_:1},8,[`title`]))}};export{x as default};
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,wt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{n as m,t as h}from"./message-circle-C0OAlJBT.js";import{C as g}from"./app-BmJeQFgp.js";var _={class:`-my-1 divide-y`},v={class:`flex items-center gap-1.5 text-xs text-muted-foreground`},y={class:`mt-1 text-sm leading-relaxed break-words text-foreground/80`},b={key:0,class:`mt-2 border-t pt-3 text-xs text-muted-foreground`},x={__name:`Comments`,props:{total:{type:Number,required:!0},comments:{type:Array,required:!0}},setup(x){let S=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`,year:`numeric`});return(C,w)=>(o(),u(g,{title:`Kommentare (${x.total})`},{default:c(()=>[r(`ol`,_,[(o(!0),i(s,null,a(x.comments,a=>(o(),i(`li`,{key:a.id,class:`py-3`},[r(`p`,v,[(o(),u(d(a.is_reply?n(m):n(h)),{class:`size-3.5 shrink-0`})),r(`span`,null,l(a.is_reply?`Antwort`:`Kommentar`)+` am `+l(n(S).format(new Date(a.created_at)))+` zu`,1)]),e(n(p),{href:a.post.url,class:`mt-0.5 block text-sm font-medium text-brand-text hover:underline`},{default:c(()=>[t(l(a.post.title),1)]),_:2},1032,[`href`]),r(`p`,y,`„`+l(a.excerpt)+`“`,1)]))),128))]),x.total>x.comments.length?(o(),i(`p`,b,`Die neuesten `+l(x.comments.length)+` von `+l(x.total)+` Kommentaren.`,1)):f(``,!0)]),_:1},8,[`title`]))}};export{x as default};

View file

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

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,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./circle-alert-AqOvEy07.js";import{t as d}from"./circle-check-K9QH5jex.js";import{t as f}from"./info-ByKJSon9.js";import{t as p}from"./triangle-alert-DyO_Fk2w.js";import{C as m,Dt as h}from"./app-Ua4gL4AX.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:h,class:`border-brand bg-brand text-brand-foreground`},info:{icon:f,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`},neutral:{icon:u,class:`border-border bg-card text-foreground`}};return(u,d)=>w.tile.type===`image`&&w.tile.image_url?(i(),s(c(w.tile.url?`a`:`figure`),{key:0,href:w.tile.url||void 0,target:w.tile.url&&w.tile.new_tab?`_blank`:void 0,rel:w.tile.url&&w.tile.new_tab?`noopener`:void 0,class:`group block overflow-hidden rounded-lg border bg-card`},{default:a(()=>[n(`img`,{src:w.tile.image_url,alt:w.tile.alt||w.tile.title||``,loading:`lazy`,class:`w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]`},null,8,g),w.tile.title?(i(),r(`span`,_,o(w.tile.title),1)):l(``,!0)]),_:1},8,[`href`,`target`,`rel`])):w.tile.type===`notice`?(i(),r(`section`,{key:1,class:t([`pb-box flex gap-3 rounded-lg border p-4 sm:p-5`,T[w.tile.variant]?.class??T.brand.class])},[(i(),s(c(T[w.tile.variant]?.icon??e(h)),{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(m,{key:2,title:w.tile.title||``},{default:a(()=>[n(`div`,{class:`prose prose-sm prose-neutral max-w-none prose-img:rounded-md`,innerHTML:w.tile.html},null,8,S),w.tile.url?(i(),r(`a`,{key:0,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-3 inline-block text-[13px] font-medium text-brand-text hover:underline`},`Mehr erfahren`,8,C)):l(``,!0)]),_:1},8,[`title`]))}};export{w as default};
import{On as e,Zn as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./circle-alert-AqOvEy07.js";import{t as d}from"./circle-check-K9QH5jex.js";import{t as f}from"./info-ByKJSon9.js";import{t as p}from"./triangle-alert-DyO_Fk2w.js";import{C as m,Dt as h}from"./app-BmJeQFgp.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:h,class:`border-brand bg-brand text-brand-foreground`},info:{icon:f,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`},neutral:{icon:u,class:`border-border bg-card text-foreground`}};return(u,d)=>w.tile.type===`image`&&w.tile.image_url?(i(),s(c(w.tile.url?`a`:`figure`),{key:0,href:w.tile.url||void 0,target:w.tile.url&&w.tile.new_tab?`_blank`:void 0,rel:w.tile.url&&w.tile.new_tab?`noopener`:void 0,class:`group block overflow-hidden rounded-lg border bg-card`},{default:a(()=>[n(`img`,{src:w.tile.image_url,alt:w.tile.alt||w.tile.title||``,loading:`lazy`,class:`w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]`},null,8,g),w.tile.title?(i(),r(`span`,_,o(w.tile.title),1)):l(``,!0)]),_:1},8,[`href`,`target`,`rel`])):w.tile.type===`notice`?(i(),r(`section`,{key:1,class:t([`pb-box flex gap-3 rounded-lg border p-4 sm:p-5`,T[w.tile.variant]?.class??T.brand.class])},[(i(),s(c(T[w.tile.variant]?.icon??e(h)),{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(m,{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 +1 @@
import{D 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{t as p}from"./eye-Cklkscvg.js";import{r as m}from"./dist-DtZOZ5EL.js";import{T as h}from"./app-Ua4gL4AX.js";import{t as g}from"./widgets-D7y2hz8K.js";import{t as _}from"./PageContent-CfzK08Rj.js";var v={key:0,class:`mb-6 flex flex-wrap items-center gap-x-4 gap-y-2 rounded-lg border border-amber-300 bg-amber-50 px-4 py-2.5 text-sm text-amber-900 dark:border-amber-800 dark:bg-amber-950/50 dark:text-amber-100`},y={key:0,class:`mb-6 grid gap-6`},b={key:1,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:2,class:`grid min-w-0 grid-cols-1 gap-6`},w={__name:`Dashboard`,props:{widgets:{type:Array,default:()=>[]},content:{type:Object,default:null},preview:{type:Boolean,default:!1}},setup(w){let T=w,E=m(`(min-width: 1024px)`),D=o(()=>T.widgets.filter(e=>g(e.component))),O=e=>D.value.filter(t=>t.area===e),k=o(()=>O(`hero`)[0]??null),A=o(()=>[...D.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(o,m)=>(s(),u(h,{title:`Startseite`},{default:l(()=>[w.content?(s(),r(c,{key:0},[w.preview?(s(),r(`div`,v,[e(t(p),{class:`size-4 shrink-0`}),m[0]||=n(`span`,{class:`flex-1`},`Vorschau des Entwurfs – so sieht die Startseite nach dem Veröffentlichen aus (mit Ihren Rechten).`,-1),m[1]||=n(`a`,{href:`/startseite/gestalten`,class:`font-medium underline`},`Zurück zum Editor`,-1)])):f(``,!0),e(_,{content:w.content},null,8,[`content`])],64)):(s(),r(c,{key:1},[t(E)&&O(`top`).length?(s(),r(`div`,y,[(s(!0),r(c,null,i(O(`top`),e=>(s(),u(d(t(g)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])):f(``,!0),t(E)?(s(),r(`div`,b,[n(`div`,x,[k.value?(s(),u(d(t(g)(k.value.component)),a({key:0},k.value.props,{class:`xl:col-span-2`}),null,16)):f(``,!0),(s(!0),r(c,null,i(O(`feed`),e=>(s(),u(d(t(g)(e.component)),a({key:e.key},{ref_for:!0},e.props,{wide:!k.value,class:k.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(s(!0),r(c,null,i(O(`main`),e=>(s(),u(d(t(g)(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(O(`aside`),e=>(s(),u(d(t(g)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])])):(s(),r(`div`,C,[(s(!0),r(c,null,i(A.value,e=>(s(),u(d(t(g)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))]))],64))]),_:1}))}};export{w as default};
import{D 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{t as p}from"./eye-Cklkscvg.js";import{r as m}from"./dist-DtZOZ5EL.js";import{T as h}from"./app-BmJeQFgp.js";import{t as g}from"./widgets-DL8nkVm1.js";import{t as _}from"./PageContent-B-XfyoEI.js";var v={key:0,class:`mb-6 flex flex-wrap items-center gap-x-4 gap-y-2 rounded-lg border border-amber-300 bg-amber-50 px-4 py-2.5 text-sm text-amber-900 dark:border-amber-800 dark:bg-amber-950/50 dark:text-amber-100`},y={key:0,class:`mb-6 grid gap-6`},b={key:1,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:2,class:`grid min-w-0 grid-cols-1 gap-6`},w={__name:`Dashboard`,props:{widgets:{type:Array,default:()=>[]},content:{type:Object,default:null},preview:{type:Boolean,default:!1}},setup(w){let T=w,E=m(`(min-width: 1024px)`),D=o(()=>T.widgets.filter(e=>g(e.component))),O=e=>D.value.filter(t=>t.area===e),k=o(()=>O(`hero`)[0]??null),A=o(()=>[...D.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(o,m)=>(s(),u(h,{title:`Startseite`},{default:l(()=>[w.content?(s(),r(c,{key:0},[w.preview?(s(),r(`div`,v,[e(t(p),{class:`size-4 shrink-0`}),m[0]||=n(`span`,{class:`flex-1`},`Vorschau des Entwurfs – so sieht die Startseite nach dem Veröffentlichen aus (mit Ihren Rechten).`,-1),m[1]||=n(`a`,{href:`/startseite/gestalten`,class:`font-medium underline`},`Zurück zum Editor`,-1)])):f(``,!0),e(_,{content:w.content},null,8,[`content`])],64)):(s(),r(c,{key:1},[t(E)&&O(`top`).length?(s(),r(`div`,y,[(s(!0),r(c,null,i(O(`top`),e=>(s(),u(d(t(g)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])):f(``,!0),t(E)?(s(),r(`div`,b,[n(`div`,x,[k.value?(s(),u(d(t(g)(k.value.component)),a({key:0},k.value.props,{class:`xl:col-span-2`}),null,16)):f(``,!0),(s(!0),r(c,null,i(O(`feed`),e=>(s(),u(d(t(g)(e.component)),a({key:e.key},{ref_for:!0},e.props,{wide:!k.value,class:k.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(s(!0),r(c,null,i(O(`main`),e=>(s(),u(d(t(g)(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(O(`aside`),e=>(s(),u(d(t(g)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])])):(s(),r(`div`,C,[(s(!0),r(c,null,i(A.value,e=>(s(),u(d(t(g)(e.component)),a({key:e.key},{ref_for:!0},e.props),null,16))),128))]))],64))]),_:1}))}};export{w as default};

View file

@ -1 +1 @@
import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as l}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as u,i as d}from"./dist--2OKCVzt.js";import{t as f}from"./arrow-left-DROE4wuA.js";import{t as p}from"./eye-off-CneL5LCR.js";import{t as m}from"./eye-Cklkscvg.js";import{t as h}from"./loader-circle-Wr6tQn-J.js";import{b as g,d as _,p as v}from"./app-Ua4gL4AX.js";import{t as y}from"./GuestLayout-Bjw1wrL4.js";var b={class:`relative`},x=[`aria-label`],S={__name:`DirectoryLogin`,props:{provider:{type:Object,required:!0}},setup(S){let C=S,w=s(!1),T=u({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,u)=>(i(),o(y,{title:S.provider.label,description:`Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:l(E,[`prevent`])},[e(g,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(_),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":u[0]||=e=>n(T).username=e,autocomplete:`username`,autocapitalize:`none`,spellcheck:`false`,autofocus:``,class:`h-10`,"aria-invalid":!!n(T).errors.username},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`label`,`error`]),e(g,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(_),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":u[1]||=e=>n(T).password=e,type:w.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(T).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":w.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:u[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(p),{key:0,class:`size-4`})):(i(),o(n(m),{key:1,class:`size-4`}))],8,x)])]),_:1},8,[`error`]),e(n(v),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(T).processing},{default:a(()=>[n(T).processing?(i(),o(n(h),{key:0,class:`animate-spin`})):c(``,!0),u[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(f),{class:`size-4`}),u[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default};
import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as l}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as u,i as d}from"./dist--2OKCVzt.js";import{t as f}from"./arrow-left-DROE4wuA.js";import{t as p}from"./eye-off-CneL5LCR.js";import{t as m}from"./eye-Cklkscvg.js";import{t as h}from"./loader-circle-Wr6tQn-J.js";import{b as g,d as _,p as v}from"./app-BmJeQFgp.js";import{t as y}from"./GuestLayout-B6JV21dP.js";var b={class:`relative`},x=[`aria-label`],S={__name:`DirectoryLogin`,props:{provider:{type:Object,required:!0}},setup(S){let C=S,w=s(!1),T=u({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,u)=>(i(),o(y,{title:S.provider.label,description:`Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:l(E,[`prevent`])},[e(g,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(_),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":u[0]||=e=>n(T).username=e,autocomplete:`username`,autocapitalize:`none`,spellcheck:`false`,autofocus:``,class:`h-10`,"aria-invalid":!!n(T).errors.username},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`label`,`error`]),e(g,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(_),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":u[1]||=e=>n(T).password=e,type:w.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(T).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":w.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:u[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(p),{key:0,class:`size-4`})):(i(),o(n(m),{key:1,class:`size-4`}))],8,x)])]),_:1},8,[`error`]),e(n(v),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(T).processing},{default:a(()=>[n(T).processing?(i(),o(n(h),{key:0,class:`animate-spin`})):c(``,!0),u[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(f),{class:`size-4`}),u[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default};

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-K4OGj5k2.js";import{Wt as u}from"./app-Ua4gL4AX.js";var d={key:0,class:`mb-3 text-lg font-semibold`},f={class:`divide-y rounded-lg border bg-card`},p=[`href`],m={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block text-xs text-muted-foreground`},v={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},y={__name:`Downloads`,props:{block:{type:Object,required:!0}},setup(y){let b=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(x,S)=>(a(),r(`section`,null,[y.block.data.title?(a(),r(`h3`,d,s(y.block.data.title),1)):c(``,!0),n(`ul`,f,[(a(!0),r(o,null,i(y.block.props?.files??[],i=>(a(),r(`li`,{key:i.id},[n(`a`,{href:i.url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[n(`span`,m,[e(t(u),{class:`size-5`})]),n(`span`,h,[n(`span`,g,s(i.name),1),n(`span`,_,s(i.extension||`Datei`)+` · `+s(b(i.size)),1)]),e(t(l),{class:`size-4 shrink-0 text-muted-foreground`})],8,p)]))),128)),(y.block.props?.files??[]).length?c(``,!0):(a(),r(`li`,v,`Noch keine Dateien.`))])]))}};export{y as default};
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,tr as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as l}from"./download-K4OGj5k2.js";import{Wt as u}from"./app-BmJeQFgp.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,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./plus-CQwC4vy-.js";import{C as _,p as v}from"./app-Ua4gL4AX.js";import{t as y}from"./EventDateBlock-DbumSunf.js";var b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`truncate text-xs text-muted-foreground`},C={key:0,class:`shrink-0 rounded bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground`},w={key:1,class:`text-sm text-muted-foreground`},T={__name:`EditorialEvents`,props:{events:{type:Array,required:!0}},setup(T){let E=T,D=p(!1),O=s(()=>E.events.filter(e=>D.value||!e.is_past)),k=s(()=>E.events.filter(e=>e.is_past).length),A=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,hour:`2-digit`,minute:`2-digit`}),j=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,year:`numeric`});return(s,p)=>(c(),f(_,{title:`Termine`},{actions:u(()=>[e(n(v),{size:`sm`,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/redaktion/termine/neu`},{default:u(()=>[e(n(g)),p[1]||=t(` Neuer Termin`,-1)]),_:1})]),_:1})]),default:u(()=>[O.value.length?(c(),a(`ul`,b,[(c(!0),a(l,null,o(O.value,o=>(c(),a(`li`,{key:o.id,class:r([`flex items-center gap-3 px-5 py-2.5`,{"opacity-60":o.is_past}])},[e(y,{date:o.starts_at,class:`w-11 shrink-0 py-1 text-xs`},null,8,[`date`]),i(`div`,x,[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,S,[t(d(o.all_day?`${n(j).format(new Date(o.starts_at))} · ganztägig`:`${n(A).format(new Date(o.starts_at))} Uhr`),1),o.location?(c(),a(l,{key:0},[t(` · `+d(o.location),1)],64)):m(``,!0)])]),o.is_published?m(``,!0):(c(),a(`span`,C,`Entwurf`))],2))),128))])):(c(),a(`p`,w,`Keine anstehenden Termine.`)),k.value?(c(),a(`button`,{key:2,type:`button`,class:`mt-3 text-[13px] text-muted-foreground hover:text-foreground hover:underline`,onClick:p[0]||=e=>D.value=!D.value},d(D.value?`Vergangene ausblenden`:`Vergangene der letzten 30 Tage zeigen (${k.value})`),1)):m(``,!0)]),_:1}))}};export{T as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./plus-CQwC4vy-.js";import{C as _,p as v}from"./app-BmJeQFgp.js";import{t as y}from"./EventDateBlock-D5ZKEnSS.js";var b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`truncate text-xs text-muted-foreground`},C={key:0,class:`shrink-0 rounded bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground`},w={key:1,class:`text-sm text-muted-foreground`},T={__name:`EditorialEvents`,props:{events:{type:Array,required:!0}},setup(T){let E=T,D=p(!1),O=s(()=>E.events.filter(e=>D.value||!e.is_past)),k=s(()=>E.events.filter(e=>e.is_past).length),A=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,hour:`2-digit`,minute:`2-digit`}),j=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,year:`numeric`});return(s,p)=>(c(),f(_,{title:`Termine`},{actions:u(()=>[e(n(v),{size:`sm`,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/redaktion/termine/neu`},{default:u(()=>[e(n(g)),p[1]||=t(` Neuer Termin`,-1)]),_:1})]),_:1})]),default:u(()=>[O.value.length?(c(),a(`ul`,b,[(c(!0),a(l,null,o(O.value,o=>(c(),a(`li`,{key:o.id,class:r([`flex items-center gap-3 px-5 py-2.5`,{"opacity-60":o.is_past}])},[e(y,{date:o.starts_at,class:`w-11 shrink-0 py-1 text-xs`},null,8,[`date`]),i(`div`,x,[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,S,[t(d(o.all_day?`${n(j).format(new Date(o.starts_at))} · ganztägig`:`${n(A).format(new Date(o.starts_at))} Uhr`),1),o.location?(c(),a(l,{key:0},[t(` · `+d(o.location),1)],64)):m(``,!0)])]),o.is_published?m(``,!0):(c(),a(`span`,C,`Entwurf`))],2))),128))])):(c(),a(`p`,w,`Keine anstehenden Termine.`)),k.value?(c(),a(`button`,{key:2,type:`button`,class:`mt-3 text-[13px] text-muted-foreground hover:text-foreground hover:underline`,onClick:p[0]||=e=>D.value=!D.value},d(D.value?`Vergangene ausblenden`:`Vergangene der letzten 30 Tage zeigen (${k.value})`),1)):m(``,!0)]),_:1}))}};export{T as default};

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{i as f}from"./dist--2OKCVzt.js";import{t as p}from"./download-K4OGj5k2.js";import{t as m}from"./pencil-line-5xb0u6Cg.js";import{t as h}from"./plus-CQwC4vy-.js";import{t as g}from"./table-properties-DOd7BPqt.js";import{C as _,p as v}from"./app-Ua4gL4AX.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(_,{title:`Formulare`},{actions:c(()=>[D.createUrl?(o(),u(n(v),{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(v),{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(v),{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(v),{key:2,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse als CSV herunterladen`},{default:c(()=>[r(`a`,{href:a.csv_url},[e(n(p))],8,T)]),_:2},1024)):d(``,!0)]))),128))])):(o(),i(`p`,E,`Noch keine Formulare.`))]),_:1}))}};export{D as default};
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as f}from"./dist--2OKCVzt.js";import{t as p}from"./download-K4OGj5k2.js";import{t as m}from"./pencil-line-5xb0u6Cg.js";import{t as h}from"./plus-CQwC4vy-.js";import{t as g}from"./table-properties-DOd7BPqt.js";import{C as _,p as v}from"./app-BmJeQFgp.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(_,{title:`Formulare`},{actions:c(()=>[D.createUrl?(o(),u(n(v),{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(v),{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(v),{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(v),{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 +1 @@
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{t as m}from"./plus-CQwC4vy-.js";import{C as h,F as g,dt as _,p as v}from"./app-Ua4gL4AX.js";var y={key:0,class:`-mx-5 divide-y border-t`},b={class:`min-w-0 flex-1`},x={class:`truncate text-xs text-muted-foreground`},S={key:1,class:`text-sm text-muted-foreground`},C={__name:`EditorialJobs`,props:{postings:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(C){let w={open:[`Offen`,`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`],draft:[`Entwurf`,`bg-muted text-muted-foreground`],scheduled:[`Geplant`,`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`],expired:[`Frist abgelaufen`,`bg-muted text-muted-foreground`]};return(T,E)=>(s(),d(h,{title:`Stellen`},{actions:l(()=>[C.canCreate?(s(),d(n(v),{key:0,size:`sm`,variant:`outline`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/stellen/neu`},{default:l(()=>[e(n(m)),E[0]||=t(` Stelle ausschreiben`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[C.postings.length?(s(),a(`ul`,y,[(s(!0),a(c,null,o(C.postings,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,b,[e(n(p),{href:C.canCreate?o.edit_url:o.url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,x,u([o.department,o.location,o.deadline?`Frist ${n(g)(o.deadline)}`:null].filter(Boolean).join(` · `)),1)]),e(n(p),{href:o.applications_url,class:`inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground hover:text-foreground`,title:`${o.applications} Bewerbungen`},{default:l(()=>[e(n(_),{class:`size-3.5`}),t(` `+u(o.applications),1)]),_:2},1032,[`href`,`title`]),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,w[o.status][1]])},u(w[o.status][0]),3)]))),128))])):(s(),a(`p`,S,`Noch keine Stellen ausgeschrieben.`))]),_:1}))}};export{C as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{t as m}from"./plus-CQwC4vy-.js";import{C as h,F as g,dt as _,p as v}from"./app-BmJeQFgp.js";var y={key:0,class:`-mx-5 divide-y border-t`},b={class:`min-w-0 flex-1`},x={class:`truncate text-xs text-muted-foreground`},S={key:1,class:`text-sm text-muted-foreground`},C={__name:`EditorialJobs`,props:{postings:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(C){let w={open:[`Offen`,`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`],draft:[`Entwurf`,`bg-muted text-muted-foreground`],scheduled:[`Geplant`,`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`],expired:[`Frist abgelaufen`,`bg-muted text-muted-foreground`]};return(T,E)=>(s(),d(h,{title:`Stellen`},{actions:l(()=>[C.canCreate?(s(),d(n(v),{key:0,size:`sm`,variant:`outline`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/stellen/neu`},{default:l(()=>[e(n(m)),E[0]||=t(` Stelle ausschreiben`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[C.postings.length?(s(),a(`ul`,y,[(s(!0),a(c,null,o(C.postings,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,b,[e(n(p),{href:C.canCreate?o.edit_url:o.url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,x,u([o.department,o.location,o.deadline?`Frist ${n(g)(o.deadline)}`:null].filter(Boolean).join(` · `)),1)]),e(n(p),{href:o.applications_url,class:`inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground hover:text-foreground`,title:`${o.applications} Bewerbungen`},{default:l(()=>[e(n(_),{class:`size-3.5`}),t(` `+u(o.applications),1)]),_:2},1032,[`href`,`title`]),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,w[o.status][1]])},u(w[o.status][0]),3)]))),128))])):(s(),a(`p`,S,`Noch keine Stellen ausgeschrieben.`))]),_:1}))}};export{C as default};

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{i as f}from"./dist--2OKCVzt.js";import{t as p}from"./image-off-BO5qjHGQ.js";import{C as m,Lt as h}from"./app-Ua4gL4AX.js";var g={class:`-mt-1 mb-3 text-[13px] text-muted-foreground`},_={key:0,class:`grid grid-cols-4 gap-2`},v=[`src`,`alt`],y={key:1,class:`grid aspect-[4/3] place-items-center text-muted-foreground`},b={key:1,class:`grid place-items-center rounded-md border border-dashed py-8 text-center text-[13px] text-muted-foreground`},x={__name:`EditorialMedia`,props:{total:{type:Number,default:0},unused:{type:Number,default:null},recent:{type:Array,default:()=>[]}},setup(x){return(S,C)=>(o(),u(m,{title:`Mediathek`,"action-label":`Mediathek öffnen`,"action-href":`/redaktion/mediathek`},{default:c(()=>[r(`p`,g,[t(l(x.total.toLocaleString(`de-DE`))+` `+l(x.total===1?`Bild`:`Bilder`)+` `,1),x.unused?(o(),i(s,{key:0},[C[0]||=t(` · `,-1),e(n(f),{href:`/redaktion/mediathek?status=unbenutzt`,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(l(x.unused)+` nicht verwendet`,1)]),_:1})],64)):d(``,!0)]),x.recent.length?(o(),i(`ul`,_,[(o(!0),i(s,null,a(x.recent,t=>(o(),i(`li`,{key:t.id},[e(n(f),{href:`/redaktion/mediathek?q=${encodeURIComponent(t.name)}`,class:`block overflow-hidden rounded-md border bg-muted hover:border-brand-300`,title:t.alt||t.name},{default:c(()=>[t.thumb_url?(o(),i(`img`,{key:0,src:t.thumb_url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover`},null,8,v)):(o(),i(`span`,y,[e(n(p),{class:`size-5`,"stroke-width":1.5})]))]),_:2},1032,[`href`,`title`])]))),128))])):(o(),i(`div`,b,[e(n(h),{class:`mb-2 size-6`,"stroke-width":1.5}),C[1]||=t(` Noch keine Bilder hochgeladen. `,-1)]))]),_:1}))}};export{x as default};
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as f}from"./dist--2OKCVzt.js";import{t as p}from"./image-off-BO5qjHGQ.js";import{C as m,Lt as h}from"./app-BmJeQFgp.js";var g={class:`-mt-1 mb-3 text-[13px] text-muted-foreground`},_={key:0,class:`grid grid-cols-4 gap-2`},v=[`src`,`alt`],y={key:1,class:`grid aspect-[4/3] place-items-center text-muted-foreground`},b={key:1,class:`grid place-items-center rounded-md border border-dashed py-8 text-center text-[13px] text-muted-foreground`},x={__name:`EditorialMedia`,props:{total:{type:Number,default:0},unused:{type:Number,default:null},recent:{type:Array,default:()=>[]}},setup(x){return(S,C)=>(o(),u(m,{title:`Mediathek`,"action-label":`Mediathek öffnen`,"action-href":`/redaktion/mediathek`},{default:c(()=>[r(`p`,g,[t(l(x.total.toLocaleString(`de-DE`))+` `+l(x.total===1?`Bild`:`Bilder`)+` `,1),x.unused?(o(),i(s,{key:0},[C[0]||=t(` · `,-1),e(n(f),{href:`/redaktion/mediathek?status=unbenutzt`,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(l(x.unused)+` nicht verwendet`,1)]),_:1})],64)):d(``,!0)]),x.recent.length?(o(),i(`ul`,_,[(o(!0),i(s,null,a(x.recent,t=>(o(),i(`li`,{key:t.id},[e(n(f),{href:`/redaktion/mediathek?q=${encodeURIComponent(t.name)}`,class:`block overflow-hidden rounded-md border bg-muted hover:border-brand-300`,title:t.alt||t.name},{default:c(()=>[t.thumb_url?(o(),i(`img`,{key:0,src:t.thumb_url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover`},null,8,v)):(o(),i(`span`,y,[e(n(p),{class:`size-5`,"stroke-width":1.5})]))]),_:2},1032,[`href`,`title`])]))),128))])):(o(),i(`div`,b,[e(n(h),{class:`mb-2 size-6`,"stroke-width":1.5}),C[1]||=t(` Noch keine Bilder hochgeladen. `,-1)]))]),_:1}))}};export{x as default};

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,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{t as m}from"./eye-Cklkscvg.js";import{t as h}from"./message-square-warning-Bf7QtZts.js";import{t as g}from"./plus-CQwC4vy-.js";import{Bt as _,C as v,P as y,p as b}from"./app-Ua4gL4AX.js";var x={class:`grid gap-5`},S={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},C={key:0,class:`ml-1 rounded-pill bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},w={key:0,class:`-mx-5 divide-y border-y`},T={class:`min-w-0 flex-1`},E={class:`truncate text-xs text-muted-foreground`},D={key:0,class:`flex shrink-0 items-center gap-2.5 text-xs text-muted-foreground tabular-nums`},O={class:`inline-flex items-center gap-1`,title:`Gelesen (anonym gezählt)`},k={class:`inline-flex items-center gap-1`,title:`Herzen`},A={key:1,class:`text-sm text-muted-foreground`},j={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},published:{type:Array,default:()=>[]},canCreate:{type:Boolean,default:!1}},setup(j){let M=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(N,P)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[j.canCreate?(s(),d(n(b),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(g)),P[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,x,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:j.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:j.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:j.scheduled,empty:null},{key:`published`,title:`Zuletzt veröffentlicht`,items:j.published,empty:null}].filter(e=>e.items.length||e.empty),g=>(s(),a(`section`,{key:g.key},[i(`h3`,S,[t(u(g.title)+` `,1),g.key===`review`?(s(),a(`span`,C,u(g.items.length),1)):f(``,!0)]),g.items.length?(s(),a(`ul`,w,[(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`,T,[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`,E,[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(y)(o.date)),1)],64)):f(``,!0)])]),o.readers===void 0?f(``,!0):(s(),a(`span`,D,[i(`span`,O,[e(n(m),{class:`size-3.5`}),t(` `+u(o.readers),1)]),i(`span`,k,[e(n(_),{class:`size-3.5`}),t(` `+u(o.likes),1)])])),o.review_note?(s(),d(n(h),{key:1,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`,M(o)])},u(o.status_label),3)]))),128))])):(s(),a(`p`,A,u(g.empty),1))]))),128))])]),_:1}))}};export{j as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{t as m}from"./eye-Cklkscvg.js";import{t as h}from"./message-square-warning-Bf7QtZts.js";import{t as g}from"./plus-CQwC4vy-.js";import{Bt as _,C as v,P as y,p as b}from"./app-BmJeQFgp.js";var x={class:`grid gap-5`},S={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},C={key:0,class:`ml-1 rounded-pill bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},w={key:0,class:`-mx-5 divide-y border-y`},T={class:`min-w-0 flex-1`},E={class:`truncate text-xs text-muted-foreground`},D={key:0,class:`flex shrink-0 items-center gap-2.5 text-xs text-muted-foreground tabular-nums`},O={class:`inline-flex items-center gap-1`,title:`Gelesen (anonym gezählt)`},k={class:`inline-flex items-center gap-1`,title:`Herzen`},A={key:1,class:`text-sm text-muted-foreground`},j={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},published:{type:Array,default:()=>[]},canCreate:{type:Boolean,default:!1}},setup(j){let M=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(N,P)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[j.canCreate?(s(),d(n(b),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(g)),P[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,x,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:j.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:j.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:j.scheduled,empty:null},{key:`published`,title:`Zuletzt veröffentlicht`,items:j.published,empty:null}].filter(e=>e.items.length||e.empty),g=>(s(),a(`section`,{key:g.key},[i(`h3`,S,[t(u(g.title)+` `,1),g.key===`review`?(s(),a(`span`,C,u(g.items.length),1)):f(``,!0)]),g.items.length?(s(),a(`ul`,w,[(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`,T,[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`,E,[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(y)(o.date)),1)],64)):f(``,!0)])]),o.readers===void 0?f(``,!0):(s(),a(`span`,D,[i(`span`,O,[e(n(m),{class:`size-3.5`}),t(` `+u(o.readers),1)]),i(`span`,k,[e(n(_),{class:`size-3.5`}),t(` `+u(o.likes),1)])])),o.review_note?(s(),d(n(h),{key:1,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`,M(o)])},u(o.status_label),3)]))),128))])):(s(),a(`p`,A,u(g.empty),1))]))),128))])]),_:1}))}};export{j as default};

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,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./lock-yku43otw.js";import{t as _}from"./plus-CQwC4vy-.js";import{C as v,P as y,p as b}from"./app-Ua4gL4AX.js";import{t as x}from"./NewPageDialog-BL_tjX9d.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(v,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(b),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(_)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(y)(o.changed_at)),1)],64)):m(``,!0)])],2),o.locked_by?(c(),a(`span`,{key:0,class:`inline-flex items-center gap-1 text-xs text-muted-foreground`,title:`${o.locked_by} bearbeitet gerade`},[e(n(g),{class:`size-3.5`}),t(` `+d(o.locked_by),1)],8,w)):m(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,O[o.status].class])},d(O[o.status].label),3)],4))),128))])):(c(),a(`p`,T,`Sie dürfen noch keine Seiten bearbeiten.`)),e(x,{open:D.value,"onUpdate:open":k[1]||=e=>D.value=e},null,8,[`open`])]),_:1}))}};export{E as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./lock-yku43otw.js";import{t as _}from"./plus-CQwC4vy-.js";import{C as v,P as y,p as b}from"./app-BmJeQFgp.js";import{t as x}from"./NewPageDialog-Cslae3AX.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(v,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(b),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(_)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(y)(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,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p}from"./dist--2OKCVzt.js";import{t as m}from"./plus-CQwC4vy-.js";import{C as h,F as g,dt as _,p as v}from"./app-BmJeQFgp.js";var y={key:0,class:`-mx-5 divide-y border-t`},b={class:`min-w-0 flex-1`},x={class:`truncate text-xs text-muted-foreground`},S={key:1,class:`text-sm text-muted-foreground`},C={__name:`EditorialPolls`,props:{polls:{type:Array,required:!0}},setup(C){let w={open:[`Läuft`,`bg-brand-soft text-brand-text`],draft:[`Entwurf`,`bg-muted text-muted-foreground`],scheduled:[`Geplant`,`bg-accent text-accent-foreground`],closed:[`Beendet`,`bg-muted text-muted-foreground`]};return(T,E)=>(s(),d(h,{title:`Umfragen`},{actions:l(()=>[e(n(v),{size:`sm`,variant:`outline`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/umfragen/neu`},{default:l(()=>[e(n(m)),E[0]||=t(` Neue Umfrage`,-1)]),_:1})]),_:1})]),default:l(()=>[C.polls.length?(s(),a(`ul`,y,[(s(!0),a(c,null,o(C.polls,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,b,[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`,x,[t(u(o.questions_count)+` `+u(o.questions_count===1?`Frage`:`Fragen`),1),o.closes_at?(s(),a(c,{key:0},[t(` · bis `+u(n(g)(o.closes_at)),1)],64)):f(``,!0)])]),e(n(p),{href:o.url,class:`inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground hover:text-foreground`,title:`${o.responses} Teilnahmen – Ergebnisse ansehen`},{default:l(()=>[e(n(_),{class:`size-3.5`}),t(` `+u(o.responses),1)]),_:2},1032,[`href`,`title`]),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,w[o.status][1]])},u(w[o.status][0]),3)]))),128))])):(s(),a(`p`,S,`Noch keine Umfragen.`))]),_:1}))}};export{C as default};

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,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as h}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as g,s as _}from"./dist--2OKCVzt.js";import{t as v}from"./component-5v7AiJbe.js";import{t as y}from"./file-stack-CDegUTxJ.js";import{t as b}from"./plus-CQwC4vy-.js";import{t as x}from"./trash-CONUPzoz.js";import{n as S}from"./lib-Be7KNAML.js";import{C,P as w,a as T,d as E,i as D,n as O,o as k,p as A,r as j,s as M,z as N}from"./app-Ua4gL4AX.js";var P={class:`-mt-1 mb-3 inline-flex rounded-md border p-0.5 text-[13px]`,role:`tablist`},F=[`aria-selected`],I=[`aria-selected`],L={class:`mb-3 text-[13px] text-muted-foreground`},R={key:0,class:`-mx-5 divide-y border-t`},z={class:`min-w-0 flex-1`},B={class:`truncate text-xs text-muted-foreground`},V={key:1,class:`text-sm text-muted-foreground`},H={__name:`EditorialSnippets`,props:{snippets:{type:Array,required:!0}},setup(H){let U=H,W=p(`block`),G=s(()=>U.snippets.filter(e=>e.kind===W.value)),K=p(!1),q=p(``),J=p(!1);async function Y(){J.value=!0;try{let e=await N.post(`/redaktion/bausteine`,{kind:W.value,name:q.value,content:{blocks:[]}});_.visit(e.edit_url)}catch(e){S.error(e.data?.errors?.name?.[0]??e.message),J.value=!1}}function X(e){let t=e.usages.length?`\n\nAchtung: Der Baustein ist auf ${e.usages.length} Seite(n) eingebunden und verschwindet dort.`:``;window.confirm(`„${e.name}“ löschen?${t}`)&&_.delete(`/redaktion/bausteine/${e.id}`,{preserveScroll:!0,onSuccess:()=>S.success(`Gelöscht`)})}return(s,p)=>(c(),f(C,{title:`Bausteine & Vorlagen`},{actions:u(()=>[e(n(A),{size:`sm`,variant:`outline`,onClick:p[0]||=e=>(q.value=``,K.value=!0)},{default:u(()=>[e(n(b)),t(` `+d(W.value===`block`?`Neuer Baustein`:`Neue Vorlage`),1)]),_:1})]),default:u(()=>[i(`div`,P,[i(`button`,{type:`button`,role:`tab`,"aria-selected":W.value===`block`,class:r([`inline-flex items-center gap-1.5 rounded-sm px-3 py-1`,W.value===`block`?`bg-muted font-medium`:`text-muted-foreground`]),onClick:p[1]||=e=>W.value=`block`},[e(n(v),{class:`size-3.5`}),p[6]||=t(` Bausteine`,-1)],10,F),i(`button`,{type:`button`,role:`tab`,"aria-selected":W.value===`template`,class:r([`inline-flex items-center gap-1.5 rounded-sm px-3 py-1`,W.value===`template`?`bg-muted font-medium`:`text-muted-foreground`]),onClick:p[2]||=e=>W.value=`template`},[e(n(y),{class:`size-3.5`}),p[7]||=t(` Seitenvorlagen`,-1)],10,I)]),i(`p`,L,[W.value===`block`?(c(),a(l,{key:0},[t(`Bausteine erscheinen auf vielen Seiten gleich, z. B. ein Kontaktkasten oder Öffnungszeiten. Eine Änderung wirkt überall.`)],64)):(c(),a(l,{key:1},[t(`Vorlagen sind Ausgangspunkt für neue Seiten – beim Anlegen wird der Inhalt kopiert.`)],64))]),G.value.length?(c(),a(`ul`,R,[(c(!0),a(l,null,o(G.value,r=>(c(),a(`li`,{key:r.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,z,[e(n(g),{href:r.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(r.name),1)]),_:2},1032,[`href`]),i(`p`,B,[r.description?(c(),a(l,{key:0},[t(d(r.description)+` · `,1)],64)):m(``,!0),t(` `+d(r.blocks)+` `+d(r.blocks===1?`Block`:`Blöcke`)+` `,1),r.kind===`block`?(c(),a(l,{key:1},[t(` · `+d(r.usages.length?`auf ${r.usages.length} ${r.usages.length===1?`Seite`:`Seiten`}`:`noch nicht eingebunden`),1)],64)):m(``,!0),r.updated_at?(c(),a(l,{key:2},[t(` · `+d(n(w)(r.updated_at))+d(r.editor?` von ${r.editor}`:``),1)],64)):m(``,!0)])]),e(n(A),{size:`icon`,variant:`ghost`,class:`size-8 text-muted-foreground hover:text-destructive`,"aria-label":`${r.name} löschen`,onClick:e=>X(r)},{default:u(()=>[e(n(x))]),_:1},8,[`aria-label`,`onClick`])]))),128))])):(c(),a(`p`,V,d(W.value===`block`?`Noch keine Bausteine. Tipp: Im Seiteneditor lässt sich jeder Block „Als Baustein speichern“.`:`Noch keine Vorlagen. Tipp: Im Seiteneditor unter ⋮ „Als Vorlage speichern“.`),1)),e(n(M),{open:K.value,"onUpdate:open":p[5]||=e=>K.value=e},{default:u(()=>[e(n(k),{class:`sm:max-w-md`},{default:u(()=>[e(n(j),null,{default:u(()=>[e(n(O),null,{default:u(()=>[t(d(W.value===`block`?`Neuer Baustein`:`Neue Seitenvorlage`),1)]),_:1}),e(n(T),null,{default:u(()=>[...p[8]||=[t(`Danach öffnet sich der Editor.`,-1)]]),_:1})]),_:1}),i(`form`,{class:`grid gap-4`,onSubmit:h(Y,[`prevent`])},[e(n(E),{modelValue:q.value,"onUpdate:modelValue":p[3]||=e=>q.value=e,maxlength:`120`,autofocus:``,placeholder:`Name, z. B. „Kontakt Personalabteilung“`,"aria-label":`Name`},null,8,[`modelValue`]),e(n(D),null,{default:u(()=>[e(n(A),{type:`button`,variant:`outline`,onClick:p[4]||=e=>K.value=!1},{default:u(()=>[...p[9]||=[t(`Abbrechen`,-1)]]),_:1}),e(n(A),{type:`submit`,disabled:J.value||!q.value.trim()},{default:u(()=>[...p[10]||=[t(`Anlegen`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1}))}};export{H as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as h}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as g,s as _}from"./dist--2OKCVzt.js";import{t as v}from"./component-5v7AiJbe.js";import{t as y}from"./file-stack-CDegUTxJ.js";import{t as b}from"./plus-CQwC4vy-.js";import{t as x}from"./trash-CONUPzoz.js";import{n as S}from"./lib-Be7KNAML.js";import{C,P as w,a as T,d as E,i as D,n as O,o as k,p as A,r as j,s as M,z as N}from"./app-BmJeQFgp.js";var P={class:`-mt-1 mb-3 inline-flex rounded-md border p-0.5 text-[13px]`,role:`tablist`},F=[`aria-selected`],I=[`aria-selected`],L={class:`mb-3 text-[13px] text-muted-foreground`},R={key:0,class:`-mx-5 divide-y border-t`},z={class:`min-w-0 flex-1`},B={class:`truncate text-xs text-muted-foreground`},V={key:1,class:`text-sm text-muted-foreground`},H={__name:`EditorialSnippets`,props:{snippets:{type:Array,required:!0}},setup(H){let U=H,W=p(`block`),G=s(()=>U.snippets.filter(e=>e.kind===W.value)),K=p(!1),q=p(``),J=p(!1);async function Y(){J.value=!0;try{let e=await N.post(`/redaktion/bausteine`,{kind:W.value,name:q.value,content:{blocks:[]}});_.visit(e.edit_url)}catch(e){S.error(e.data?.errors?.name?.[0]??e.message),J.value=!1}}function X(e){let t=e.usages.length?`\n\nAchtung: Der Baustein ist auf ${e.usages.length} Seite(n) eingebunden und verschwindet dort.`:``;window.confirm(`„${e.name}“ löschen?${t}`)&&_.delete(`/redaktion/bausteine/${e.id}`,{preserveScroll:!0,onSuccess:()=>S.success(`Gelöscht`)})}return(s,p)=>(c(),f(C,{title:`Bausteine & Vorlagen`},{actions:u(()=>[e(n(A),{size:`sm`,variant:`outline`,onClick:p[0]||=e=>(q.value=``,K.value=!0)},{default:u(()=>[e(n(b)),t(` `+d(W.value===`block`?`Neuer Baustein`:`Neue Vorlage`),1)]),_:1})]),default:u(()=>[i(`div`,P,[i(`button`,{type:`button`,role:`tab`,"aria-selected":W.value===`block`,class:r([`inline-flex items-center gap-1.5 rounded-sm px-3 py-1`,W.value===`block`?`bg-muted font-medium`:`text-muted-foreground`]),onClick:p[1]||=e=>W.value=`block`},[e(n(v),{class:`size-3.5`}),p[6]||=t(` Bausteine`,-1)],10,F),i(`button`,{type:`button`,role:`tab`,"aria-selected":W.value===`template`,class:r([`inline-flex items-center gap-1.5 rounded-sm px-3 py-1`,W.value===`template`?`bg-muted font-medium`:`text-muted-foreground`]),onClick:p[2]||=e=>W.value=`template`},[e(n(y),{class:`size-3.5`}),p[7]||=t(` Seitenvorlagen`,-1)],10,I)]),i(`p`,L,[W.value===`block`?(c(),a(l,{key:0},[t(`Bausteine erscheinen auf vielen Seiten gleich, z. B. ein Kontaktkasten oder Öffnungszeiten. Eine Änderung wirkt überall.`)],64)):(c(),a(l,{key:1},[t(`Vorlagen sind Ausgangspunkt für neue Seiten – beim Anlegen wird der Inhalt kopiert.`)],64))]),G.value.length?(c(),a(`ul`,R,[(c(!0),a(l,null,o(G.value,r=>(c(),a(`li`,{key:r.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,z,[e(n(g),{href:r.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(r.name),1)]),_:2},1032,[`href`]),i(`p`,B,[r.description?(c(),a(l,{key:0},[t(d(r.description)+` · `,1)],64)):m(``,!0),t(` `+d(r.blocks)+` `+d(r.blocks===1?`Block`:`Blöcke`)+` `,1),r.kind===`block`?(c(),a(l,{key:1},[t(` · `+d(r.usages.length?`auf ${r.usages.length} ${r.usages.length===1?`Seite`:`Seiten`}`:`noch nicht eingebunden`),1)],64)):m(``,!0),r.updated_at?(c(),a(l,{key:2},[t(` · `+d(n(w)(r.updated_at))+d(r.editor?` von ${r.editor}`:``),1)],64)):m(``,!0)])]),e(n(A),{size:`icon`,variant:`ghost`,class:`size-8 text-muted-foreground hover:text-destructive`,"aria-label":`${r.name} löschen`,onClick:e=>X(r)},{default:u(()=>[e(n(x))]),_:1},8,[`aria-label`,`onClick`])]))),128))])):(c(),a(`p`,V,d(W.value===`block`?`Noch keine Bausteine. Tipp: Im Seiteneditor lässt sich jeder Block „Als Baustein speichern“.`:`Noch keine Vorlagen. Tipp: Im Seiteneditor unter ⋮ „Als Vorlage speichern“.`),1)),e(n(M),{open:K.value,"onUpdate:open":p[5]||=e=>K.value=e},{default:u(()=>[e(n(k),{class:`sm:max-w-md`},{default:u(()=>[e(n(j),null,{default:u(()=>[e(n(O),null,{default:u(()=>[t(d(W.value===`block`?`Neuer Baustein`:`Neue Seitenvorlage`),1)]),_:1}),e(n(T),null,{default:u(()=>[...p[8]||=[t(`Danach öffnet sich der Editor.`,-1)]]),_:1})]),_:1}),i(`form`,{class:`grid gap-4`,onSubmit:h(Y,[`prevent`])},[e(n(E),{modelValue:q.value,"onUpdate:modelValue":p[3]||=e=>q.value=e,maxlength:`120`,autofocus:``,placeholder:`Name, z. B. „Kontakt Personalabteilung“`,"aria-label":`Name`},null,8,[`modelValue`]),e(n(D),null,{default:u(()=>[e(n(A),{type:`button`,variant:`outline`,onClick:p[4]||=e=>K.value=!1},{default:u(()=>[...p[9]||=[t(`Abbrechen`,-1)]]),_:1}),e(n(A),{type:`submit`,disabled:J.value||!q.value.trim()},{default:u(()=>[...p[10]||=[t(`Anlegen`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1}))}};export{H as default};

View file

@ -1 +1 @@
import{_ as e,b as t,g as n,mt as r,tr as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as a}from"./app-Ua4gL4AX.js";var o={class:`grid w-12 shrink-0 place-items-center rounded-md bg-muted py-1.5 leading-none`},s={class:`text-xl font-semibold`},c={class:`mt-1 text-[10px] font-semibold tracking-wide text-accent2-text`},l={__name:`EventDateBlock`,props:{date:{type:String,required:!0}},setup(l){let u=l,d=n(()=>a(u.date));return(n,a)=>(r(),t(`div`,o,[e(`span`,s,i(d.value.day),1),e(`span`,c,i(d.value.month),1)]))}};export{l as t};
import{_ as e,b as t,g as n,mt as r,tr as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as a}from"./app-BmJeQFgp.js";var o={class:`grid w-12 shrink-0 place-items-center rounded-md bg-muted py-1.5 leading-none`},s={class:`text-xl font-semibold`},c={class:`mt-1 text-[10px] font-semibold tracking-wide text-accent2-text`},l={__name:`EventDateBlock`,props:{date:{type:String,required:!0}},setup(l){let u=l,d=n(()=>a(u.date));return(n,a)=>(r(),t(`div`,o,[e(`span`,s,i(d.value.day),1),e(`span`,c,i(d.value.month),1)]))}};export{l as t};

View file

@ -1 +1 @@
import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as l}from"./dist--2OKCVzt.js";import{M as u}from"./app-Ua4gL4AX.js";import{t as d}from"./EventDateBlock-DbumSunf.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={key:1,class:`mt-1 inline-block rounded bg-brand-soft px-1.5 py-0.5 text-[11px] font-medium text-brand-text`},_={__name:`EventListItem`,props:{event:{type:Object,required:!0}},setup(_){return(v,y)=>(i(),s(t(l),{href:`/termine/${_.event.id}`,class:`group flex items-start gap-3.5 py-3`},{default:a(()=>[e(d,{date:_.event.starts_at},null,8,[`date`]),n(`div`,f,[n(`h3`,p,o(_.event.title),1),n(`p`,m,o(t(u)(_.event)),1),_.event.location?(i(),r(`p`,h,o(_.event.location),1)):c(``,!0),_.event.registration_enabled?(i(),r(`span`,g,`Mit Anmeldung`)):c(``,!0)])]),_:1},8,[`href`]))}};export{_ as t};
import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as l}from"./dist--2OKCVzt.js";import{M as u}from"./app-BmJeQFgp.js";import{t as d}from"./EventDateBlock-D5ZKEnSS.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={key:1,class:`mt-1 inline-block rounded bg-brand-soft px-1.5 py-0.5 text-[11px] font-medium text-brand-text`},_={__name:`EventListItem`,props:{event:{type:Object,required:!0}},setup(_){return(v,y)=>(i(),s(t(l),{href:`/termine/${_.event.id}`,class:`group flex items-start gap-3.5 py-3`},{default:a(()=>[e(d,{date:_.event.starts_at},null,8,[`date`]),n(`div`,f,[n(`h3`,p,o(_.event.title),1),n(`p`,m,o(t(u)(_.event)),1),_.event.location?(i(),r(`p`,h,o(_.event.location),1)):c(``,!0),_.event.registration_enabled?(i(),r(`span`,g,`Mit Anmeldung`)):c(``,!0)])]),_:1},8,[`href`]))}};export{_ as t};

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,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d}from"./dist--2OKCVzt.js";import{t as f}from"./download-K4OGj5k2.js";import{D as p,Xt as m}from"./app-Ua4gL4AX.js";var h={key:0},g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={class:`divide-y rounded-lg border bg-card`},y=[`href`],b={class:`min-w-0 flex-1`},x={class:`block truncate text-sm font-medium group-hover:underline`},S={key:0,class:`block truncate text-[13px] text-muted-foreground`},C={class:`block text-xs text-muted-foreground`},w={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},T={__name:`FolderBlock`,props:{block:{type:Object,required:!0}},setup(T){let E=e=>e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(D,O)=>T.block.props?(o(),i(`section`,h,[T.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(T.block.data.title),1),e(n(d),{href:T.block.props.folder_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[O[0]||=t(`Zum Ordner `,-1),e(n(m),{class:`size-3.5`})]),_:1},8,[`href`])])):u(``,!0),r(`ul`,v,[(o(!0),i(s,null,a(T.block.props.downloads,t=>(o(),i(`li`,{key:t.id},[r(`a`,{href:t.download_url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[e(p,{extension:t.extension},null,8,[`extension`]),r(`span`,b,[r(`span`,x,l(t.title),1),T.block.data.show_description&&t.description?(o(),i(`span`,S,l(t.description),1)):u(``,!0),r(`span`,C,l(t.extension)+` · `+l(E(t.size)),1)]),e(n(f),{class:`size-4 shrink-0 text-muted-foreground`})],8,y)]))),128)),T.block.props.downloads.length?u(``,!0):(o(),i(`li`,w,`Keine Dateien in diesem Ordner.`))])])):u(``,!0)}};export{T as default};
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d}from"./dist--2OKCVzt.js";import{t as f}from"./download-K4OGj5k2.js";import{D as p,Xt as m}from"./app-BmJeQFgp.js";var h={key:0},g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={class:`divide-y rounded-lg border bg-card`},y=[`href`],b={class:`min-w-0 flex-1`},x={class:`block truncate text-sm font-medium group-hover:underline`},S={key:0,class:`block truncate text-[13px] text-muted-foreground`},C={class:`block text-xs text-muted-foreground`},w={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},T={__name:`FolderBlock`,props:{block:{type:Object,required:!0}},setup(T){let E=e=>e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(D,O)=>T.block.props?(o(),i(`section`,h,[T.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(T.block.data.title),1),e(n(d),{href:T.block.props.folder_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[O[0]||=t(`Zum Ordner `,-1),e(n(m),{class:`size-3.5`})]),_:1},8,[`href`])])):u(``,!0),r(`ul`,v,[(o(!0),i(s,null,a(T.block.props.downloads,t=>(o(),i(`li`,{key:t.id},[r(`a`,{href:t.download_url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[e(p,{extension:t.extension},null,8,[`extension`]),r(`span`,b,[r(`span`,x,l(t.title),1),T.block.data.show_description&&t.description?(o(),i(`span`,S,l(t.description),1)):u(``,!0),r(`span`,C,l(t.extension)+` · `+l(E(t.size)),1)]),e(n(f),{class:`size-4 shrink-0 text-muted-foreground`})],8,y)]))),128)),T.block.props.downloads.length?u(``,!0):(o(),i(`li`,w,`Keine Dateien in diesem Ordner.`))])])):u(``,!0)}};export{T as default};

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,er as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./createLucideIcon-VlaMqNX_.js";import{t as _}from"./smartphone-DpYdBNLx.js";import{B as v,Ct as y,O as b,kt as x}from"./app-Ua4gL4AX.js";import{t as S}from"./colors-RDOJqd57.js";var C=g({name:`folder-cog`,size:24,node:[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]],aliases:[`folder-cog-2`]}),w={class:`flex gap-3`},T={class:`min-w-0 pt-0.5`},E={class:`mt-1 grid gap-0.5 text-[13px]`},D=[`href`],O={key:2,class:`truncate text-muted-foreground`},k={__name:`ContactCard`,props:{contact:{type:Object,required:!0}},setup(r){let s=e=>e.type===`phone`?`tel:${e.value}`:e.type===`email`?`mailto:${e.value}`:null,g=e=>e.key===`mobile`?_:e.type===`phone`?y:e.type===`email`?x:null;return(_,v)=>(c(),a(`div`,w,[e(n(h),{href:`/personen/${r.contact.id}`,class:`shrink-0`},{default:u(()=>[e(b,{person:r.contact,class:`size-14 text-base`},null,8,[`person`])]),_:1},8,[`href`]),i(`div`,T,[e(n(h),{href:`/personen/${r.contact.id}`,class:`block truncate text-sm font-semibold hover:underline`},{default:u(()=>[t(d(r.contact.name),1)]),_:1},8,[`href`]),i(`ul`,E,[(c(!0),a(l,null,o(r.contact.fields,e=>(c(),a(`li`,{key:e.key,class:`flex min-w-0 items-center gap-1.5`},[g(e)?(c(),f(p(g(e)),{key:0,class:`size-3.5 shrink-0 text-muted-foreground`})):m(``,!0),s(e)?(c(),a(`a`,{key:1,href:s(e),class:`truncate text-brand-text hover:underline`},d(e.value),9,D)):(c(),a(`span`,O,d(e.value),1))]))),128))])])]))}},A=[`src`],j={__name:`QmIcon`,props:{icon:{type:Object,default:()=>({name:`folder`})},strokeWidth:{type:[Number,String],default:1.75}},setup(e){return(t,n)=>e.icon?.name?(c(),f(v,{key:0,name:e.icon.name,"stroke-width":e.strokeWidth},null,8,[`name`,`stroke-width`])):e.icon?.url&&e.icon.mono?(c(),a(`span`,{key:1,class:`inline-block bg-current`,style:s({maskImage:`url('${e.icon.url}')`,WebkitMaskImage:`url('${e.icon.url}')`,maskSize:`contain`,WebkitMaskSize:`contain`,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`}),"aria-hidden":`true`},null,4)):e.icon?.url?(c(),a(`img`,{key:2,src:e.icon.url,alt:``,class:`object-contain`},null,8,A)):(c(),f(v,{key:3,name:`folder`,"stroke-width":e.strokeWidth},null,8,[`stroke-width`]))}},M={class:`pointer-events-none absolute -right-4 -bottom-5 opacity-15 transition-transform group-hover:scale-105`,"aria-hidden":`true`},N={class:`relative mt-3`},P={class:`mt-0.5 block text-xs text-white/80`},F={__name:`FolderTile`,props:{folder:{type:Object,required:!0},small:{type:Boolean,default:!1}},setup(t){let a=t,o=()=>{let e=[];return a.folder.folders&&e.push(`${a.folder.folders} ${a.folder.folders,`Ordner`}`),a.folder.entries&&e.push(`${a.folder.entries} ${a.folder.entries===1?`Dokument`:`Dokumente`}`),e.join(` · `)||`Noch leer`};return(a,s)=>(c(),f(n(h),{href:t.folder.url,class:r([`group relative flex flex-col justify-between overflow-hidden rounded-lg text-white shadow-xs transition hover:shadow-md hover:brightness-110 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none`,[n(S)(t.folder.color).tile,t.small?`min-h-24 p-3.5`:`min-h-32 p-4`]])},{default:u(()=>[i(`span`,M,[e(j,{icon:t.folder.icon,class:r(t.small?`size-20`:`size-24`)},null,8,[`icon`,`class`])]),i(`span`,{class:r([`grid place-items-center rounded-md bg-white/15`,t.small?`size-9`:`size-11`])},[e(j,{icon:t.folder.icon,class:r(t.small?`size-5`:`size-6`)},null,8,[`icon`,`class`])],2),i(`span`,N,[i(`span`,{class:r([`block leading-tight font-semibold`,t.small?`text-sm`:`text-[15px]`])},d(t.folder.name),3),i(`span`,P,d(o()),1)])]),_:1},8,[`href`,`class`]))}};export{C as i,j as n,k as r,F as t};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h}from"./dist--2OKCVzt.js";import{t as g}from"./createLucideIcon-VlaMqNX_.js";import{t as _}from"./smartphone-DpYdBNLx.js";import{B as v,Ct as y,O as b,kt as x}from"./app-BmJeQFgp.js";import{t as S}from"./colors-RDOJqd57.js";var C=g({name:`folder-cog`,size:24,node:[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]],aliases:[`folder-cog-2`]}),w={class:`flex gap-3`},T={class:`min-w-0 pt-0.5`},E={class:`mt-1 grid gap-0.5 text-[13px]`},D=[`href`],O={key:2,class:`truncate text-muted-foreground`},k={__name:`ContactCard`,props:{contact:{type:Object,required:!0}},setup(r){let s=e=>e.type===`phone`?`tel:${e.value}`:e.type===`email`?`mailto:${e.value}`:null,g=e=>e.key===`mobile`?_:e.type===`phone`?y:e.type===`email`?x:null;return(_,v)=>(c(),a(`div`,w,[e(n(h),{href:`/personen/${r.contact.id}`,class:`shrink-0`},{default:u(()=>[e(b,{person:r.contact,class:`size-14 text-base`},null,8,[`person`])]),_:1},8,[`href`]),i(`div`,T,[e(n(h),{href:`/personen/${r.contact.id}`,class:`block truncate text-sm font-semibold hover:underline`},{default:u(()=>[t(d(r.contact.name),1)]),_:1},8,[`href`]),i(`ul`,E,[(c(!0),a(l,null,o(r.contact.fields,e=>(c(),a(`li`,{key:e.key,class:`flex min-w-0 items-center gap-1.5`},[g(e)?(c(),f(p(g(e)),{key:0,class:`size-3.5 shrink-0 text-muted-foreground`})):m(``,!0),s(e)?(c(),a(`a`,{key:1,href:s(e),class:`truncate text-brand-text hover:underline`},d(e.value),9,D)):(c(),a(`span`,O,d(e.value),1))]))),128))])])]))}},A=[`src`],j={__name:`QmIcon`,props:{icon:{type:Object,default:()=>({name:`folder`})},strokeWidth:{type:[Number,String],default:1.75}},setup(e){return(t,n)=>e.icon?.name?(c(),f(v,{key:0,name:e.icon.name,"stroke-width":e.strokeWidth},null,8,[`name`,`stroke-width`])):e.icon?.url&&e.icon.mono?(c(),a(`span`,{key:1,class:`inline-block bg-current`,style:s({maskImage:`url('${e.icon.url}')`,WebkitMaskImage:`url('${e.icon.url}')`,maskSize:`contain`,WebkitMaskSize:`contain`,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`}),"aria-hidden":`true`},null,4)):e.icon?.url?(c(),a(`img`,{key:2,src:e.icon.url,alt:``,class:`object-contain`},null,8,A)):(c(),f(v,{key:3,name:`folder`,"stroke-width":e.strokeWidth},null,8,[`stroke-width`]))}},M={class:`pointer-events-none absolute -right-4 -bottom-5 opacity-15 transition-transform group-hover:scale-105`,"aria-hidden":`true`},N={class:`relative mt-3`},P={class:`mt-0.5 block text-xs text-white/80`},F={__name:`FolderTile`,props:{folder:{type:Object,required:!0},small:{type:Boolean,default:!1}},setup(t){let a=t,o=()=>{let e=[];return a.folder.folders&&e.push(`${a.folder.folders} ${a.folder.folders,`Ordner`}`),a.folder.entries&&e.push(`${a.folder.entries} ${a.folder.entries===1?`Dokument`:`Dokumente`}`),e.join(` · `)||`Noch leer`};return(a,s)=>(c(),f(n(h),{href:t.folder.url,class:r([`group relative flex flex-col justify-between overflow-hidden rounded-lg text-white shadow-xs transition hover:shadow-md hover:brightness-110 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none`,[n(S)(t.folder.color).tile,t.small?`min-h-24 p-3.5`:`min-h-32 p-4`]])},{default:u(()=>[i(`span`,M,[e(j,{icon:t.folder.icon,class:r(t.small?`size-20`:`size-24`)},null,8,[`icon`,`class`])]),i(`span`,{class:r([`grid place-items-center rounded-md bg-white/15`,t.small?`size-9`:`size-11`])},[e(j,{icon:t.folder.icon,class:r(t.small?`size-5`:`size-6`)},null,8,[`icon`,`class`])],2),i(`span`,N,[i(`span`,{class:r([`block leading-tight font-semibold`,t.small?`text-sm`:`text-[15px]`])},d(t.folder.name),3),i(`span`,P,d(o()),1)])]),_:1},8,[`href`,`class`]))}};export{C as i,j as n,k as r,F as t};

View file

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

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-LCUQJ2ax.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-BDrP7mmq.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

@ -1 +1 @@
import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as h}from"./chevron-left-DSEhAEgi.js";import{Rt as g,Xt as _,n as v,o as y,s as b}from"./app-Ua4gL4AX.js";var x=[`aria-label`,`onClick`],S=[`src`,`alt`],C={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},w={key:2,class:`mt-1.5 text-xs text-muted-foreground`},T={key:0,class:`col-span-full text-sm text-muted-foreground`},E=[`src`,`alt`],D={class:`flex items-center justify-between gap-4 px-4 pt-1 pb-3 text-sm`},O={class:`text-white/80`},k={key:0,class:`shrink-0 text-white/60 tabular-nums`},A={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(A){let j=A,M=n(`pagebuilder:editing`,!1),N={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},P=c(()=>j.block.data.images.map((e,t)=>({...e,url:j.block.props?.urls?.[t]??null}))),F=c(()=>P.value.filter(e=>e.url)),I=p(null),L=c(()=>I.value===null?null:F.value[I.value]);function R(e){I.value=F.value.indexOf(e)}function z(e){I.value===null||F.value.length<2||(I.value=(I.value+e+F.value.length)%F.value.length)}function B(e){e.key===`ArrowRight`&&z(1),e.key===`ArrowLeft`&&z(-1)}let V=null,H=e=>V=e.touches[0].clientX;function U(e){if(V===null)return;let t=e.changedTouches[0].clientX-V;Math.abs(t)>50&&z(t<0?1:-1),V=null}return(n,c)=>(l(),o(u,null,[a(`div`,{class:i([`grid grid-cols-2 gap-3`,N[A.block.data.columns]])},[(l(!0),o(u,null,s(P.value,(t,n)=>(l(),o(`figure`,{key:n},[t.url?(l(),o(`button`,{key:0,type:`button`,class:`block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`${t.alt||`Bild`} vergrößern`,onClick:e=>R(t)},[a(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform duration-300 hover:scale-[1.03]`},null,8,S)],8,x)):(l(),o(`div`,C,[e(r(g),{class:`size-6`})])),t.caption?(l(),o(`figcaption`,w,f(t.caption),1)):m(``,!0)]))),128)),r(M)&&!P.value.length?(l(),o(`p`,T,`Noch keine Bilder.`)):m(``,!0)],2),e(r(b),{open:L.value!==null,"onUpdate:open":c[2]||=e=>!e&&(I.value=null)},{default:d(()=>[e(r(y),{class:`max-w-6xl border-0 bg-black/95 p-0 text-white sm:max-w-6xl`,onKeydown:B},{default:d(()=>[e(r(v),{class:`sr-only`},{default:d(()=>[t(f(L.value?.alt||`Bild`),1)]),_:1}),a(`div`,{class:`relative`,onTouchstartPassive:H,onTouchend:U},[L.value?(l(),o(`img`,{key:L.value.url,src:L.value.url,alt:L.value.alt,class:`max-h-[82vh] w-full object-contain`},null,8,E)):m(``,!0),F.value.length>1?(l(),o(u,{key:1},[a(`button`,{type:`button`,class:`absolute top-1/2 left-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Vorheriges Bild`,onClick:c[0]||=e=>z(-1)},[e(r(h),{class:`size-6`})]),a(`button`,{type:`button`,class:`absolute top-1/2 right-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Nächstes Bild`,onClick:c[1]||=e=>z(1)},[e(r(_),{class:`size-6`})])],64)):m(``,!0)],32),a(`div`,D,[a(`p`,O,f(L.value?.caption),1),F.value.length>1?(l(),o(`span`,k,f(I.value+1)+` / `+f(F.value.length),1)):m(``,!0)])]),_:1})]),_:1},8,[`open`])],64))}};export{A as default};
import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as h}from"./chevron-left-DSEhAEgi.js";import{Rt as g,Xt as _,n as v,o as y,s as b}from"./app-BmJeQFgp.js";var x=[`aria-label`,`onClick`],S=[`src`,`alt`],C={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},w={key:2,class:`mt-1.5 text-xs text-muted-foreground`},T={key:0,class:`col-span-full text-sm text-muted-foreground`},E=[`src`,`alt`],D={class:`flex items-center justify-between gap-4 px-4 pt-1 pb-3 text-sm`},O={class:`text-white/80`},k={key:0,class:`shrink-0 text-white/60 tabular-nums`},A={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(A){let j=A,M=n(`pagebuilder:editing`,!1),N={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},P=c(()=>j.block.data.images.map((e,t)=>({...e,url:j.block.props?.urls?.[t]??null}))),F=c(()=>P.value.filter(e=>e.url)),I=p(null),L=c(()=>I.value===null?null:F.value[I.value]);function R(e){I.value=F.value.indexOf(e)}function z(e){I.value===null||F.value.length<2||(I.value=(I.value+e+F.value.length)%F.value.length)}function B(e){e.key===`ArrowRight`&&z(1),e.key===`ArrowLeft`&&z(-1)}let V=null,H=e=>V=e.touches[0].clientX;function U(e){if(V===null)return;let t=e.changedTouches[0].clientX-V;Math.abs(t)>50&&z(t<0?1:-1),V=null}return(n,c)=>(l(),o(u,null,[a(`div`,{class:i([`grid grid-cols-2 gap-3`,N[A.block.data.columns]])},[(l(!0),o(u,null,s(P.value,(t,n)=>(l(),o(`figure`,{key:n},[t.url?(l(),o(`button`,{key:0,type:`button`,class:`block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`${t.alt||`Bild`} vergrößern`,onClick:e=>R(t)},[a(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform duration-300 hover:scale-[1.03]`},null,8,S)],8,x)):(l(),o(`div`,C,[e(r(g),{class:`size-6`})])),t.caption?(l(),o(`figcaption`,w,f(t.caption),1)):m(``,!0)]))),128)),r(M)&&!P.value.length?(l(),o(`p`,T,`Noch keine Bilder.`)):m(``,!0)],2),e(r(b),{open:L.value!==null,"onUpdate:open":c[2]||=e=>!e&&(I.value=null)},{default:d(()=>[e(r(y),{class:`max-w-6xl border-0 bg-black/95 p-0 text-white sm:max-w-6xl`,onKeydown:B},{default:d(()=>[e(r(v),{class:`sr-only`},{default:d(()=>[t(f(L.value?.alt||`Bild`),1)]),_:1}),a(`div`,{class:`relative`,onTouchstartPassive:H,onTouchend:U},[L.value?(l(),o(`img`,{key:L.value.url,src:L.value.url,alt:L.value.alt,class:`max-h-[82vh] w-full object-contain`},null,8,E)):m(``,!0),F.value.length>1?(l(),o(u,{key:1},[a(`button`,{type:`button`,class:`absolute top-1/2 left-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Vorheriges Bild`,onClick:c[0]||=e=>z(-1)},[e(r(h),{class:`size-6`})]),a(`button`,{type:`button`,class:`absolute top-1/2 right-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Nächstes Bild`,onClick:c[1]||=e=>z(1)},[e(r(_),{class:`size-6`})])],64)):m(``,!0)],32),a(`div`,D,[a(`p`,O,f(L.value?.caption),1),F.value.length>1?(l(),o(`span`,k,f(I.value+1)+` / `+f(F.value.length),1)):m(``,!0)])]),_:1})]),_:1},8,[`open`])],64))}};export{A as default};

View file

@ -1 +1 @@
import{D as e,On as t,T as n,_ as r,b as i,mt as a,tr as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as l}from"./x-DU8daajy.js";import{en as u}from"./app-Ua4gL4AX.js";var d={key:0,class:`relative overflow-hidden rounded-lg bg-brand text-brand-foreground`,role:`status`},f={class:`relative flex items-center gap-4 px-5 py-5 sm:px-8`},p={class:`grid size-12 shrink-0 place-items-center rounded-full bg-white/15`},m={class:`min-w-0 flex-1`},h={class:`text-xl font-semibold tracking-tight`},g={__name:`Greeting`,props:{name:{type:String,required:!0}},setup(g){let _=g,v=`inhaus.birthday-greeting.${new Date().toISOString().slice(0,10)}`,y=s(!1);try{y.value=localStorage.getItem(v)===`1`}catch{}function b(){y.value=!0;try{localStorage.setItem(v,`1`)}catch{}}return(s,g)=>y.value?c(``,!0):(a(),i(`section`,d,[g[1]||=n(`<svg class="pointer-events-none absolute inset-0 size-full opacity-25" aria-hidden="true"><circle cx="8%" cy="30%" r="4" fill="currentColor"></circle><circle cx="15%" cy="75%" r="3" fill="currentColor"></circle><rect x="24%" y="18%" width="7" height="7" transform="rotate(20)" fill="currentColor"></rect><circle cx="62%" cy="20%" r="3" fill="currentColor"></circle><circle cx="78%" cy="70%" r="5" fill="currentColor"></circle><rect x="88%" y="30%" width="8" height="8" fill="currentColor"></rect><circle cx="94%" cy="80%" r="3" fill="currentColor"></circle></svg>`,1),r(`div`,f,[r(`span`,p,[e(t(u),{class:`size-6`})]),r(`div`,m,[r(`p`,h,`Alles Gute zum Geburtstag, `+o(_.name)+`!`,1),g[0]||=r(`p`,{class:`mt-0.5 text-sm opacity-90`},`Wir wünschen Ihnen einen schönen Tag.`,-1)]),r(`button`,{type:`button`,class:`grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15`,"aria-label":`Glückwunsch ausblenden`,onClick:b},[e(t(l),{class:`size-5`})])])]))}};export{g as default};
import{D as e,On as t,T as n,_ as r,b as i,mt as a,tr as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as l}from"./x-DU8daajy.js";import{en as u}from"./app-BmJeQFgp.js";var d={key:0,class:`relative overflow-hidden rounded-lg bg-brand text-brand-foreground`,role:`status`},f={class:`relative flex items-center gap-4 px-5 py-5 sm:px-8`},p={class:`grid size-12 shrink-0 place-items-center rounded-full bg-white/15`},m={class:`min-w-0 flex-1`},h={class:`text-xl font-semibold tracking-tight`},g={__name:`Greeting`,props:{name:{type:String,required:!0}},setup(g){let _=g,v=`inhaus.birthday-greeting.${new Date().toISOString().slice(0,10)}`,y=s(!1);try{y.value=localStorage.getItem(v)===`1`}catch{}function b(){y.value=!0;try{localStorage.setItem(v,`1`)}catch{}}return(s,g)=>y.value?c(``,!0):(a(),i(`section`,d,[g[1]||=n(`<svg class="pointer-events-none absolute inset-0 size-full opacity-25" aria-hidden="true"><circle cx="8%" cy="30%" r="4" fill="currentColor"></circle><circle cx="15%" cy="75%" r="3" fill="currentColor"></circle><rect x="24%" y="18%" width="7" height="7" transform="rotate(20)" fill="currentColor"></rect><circle cx="62%" cy="20%" r="3" fill="currentColor"></circle><circle cx="78%" cy="70%" r="5" fill="currentColor"></circle><rect x="88%" y="30%" width="8" height="8" fill="currentColor"></rect><circle cx="94%" cy="80%" r="3" fill="currentColor"></circle></svg>`,1),r(`div`,f,[r(`span`,p,[e(t(u),{class:`size-6`})]),r(`div`,m,[r(`p`,h,`Alles Gute zum Geburtstag, `+o(_.name)+`!`,1),g[0]||=r(`p`,{class:`mt-0.5 text-sm opacity-90`},`Wir wünschen Ihnen einen schönen Tag.`,-1)]),r(`button`,{type:`button`,class:`grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15`,"aria-label":`Glückwunsch ausblenden`,onClick:b},[e(t(l),{class:`size-5`})])])]))}};export{g as default};

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

View file

@ -1 +1 @@
import{D as e,On as t,Zn as n,_ as r,b as i,g as a,mt as o,o as s,tr as c,xt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as d,r as f}from"./dist--2OKCVzt.js";import{U as p}from"./app-Ua4gL4AX.js";var m={key:0,class:`bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},h={key:1,class:`relative grid min-h-screen place-items-center bg-brand px-4 py-12`},g=[`src`],_={key:1,class:`absolute inset-0 bg-black/35`},v={class:`relative w-full max-w-[440px]`},y={class:`rounded-xl border bg-card p-8 text-card-foreground shadow-xl sm:p-10`},b={class:`mb-8`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={key:0,class:`mt-6 text-center text-sm text-white/90 [text-shadow:0_1px_2px_rgb(0_0_0/0.4)]`},T={key:2,class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},E={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},D=[`src`],O={key:1,class:`pointer-events-none absolute inset-0 opacity-[0.12]`,style:{"background-image":`radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)`}},k={key:0,class:`text-3xl leading-tight font-semibold tracking-tight`},A={class:`mt-4 text-[15px] opacity-85`},j={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},M={class:`w-full max-w-[400px]`},N={class:`mb-10 lg:hidden`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`mt-2 text-sm text-muted-foreground`},I={class:`mt-8`},L={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(L){let R=L,z=a(()=>d().props.branding),B=a(()=>z.value.login??{layout:`split`});return(a,d)=>(o(),i(s,null,[e(t(f),{title:R.title},null,8,[`title`]),z.value.preview?(o(),i(`div`,m,`Vorschau des Entwurfs`)):u(``,!0),B.value.layout===`centered`?(o(),i(`div`,h,[B.value.image_url?(o(),i(`img`,{key:0,src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,g)):u(``,!0),B.value.image_url?(o(),i(`div`,_)):u(``,!0),r(`div`,v,[r(`div`,y,[r(`div`,b,[e(p)]),r(`h1`,x,c(R.title),1),R.description?(o(),i(`p`,S,c(R.description),1)):u(``,!0),r(`div`,C,[l(a.$slots,`default`)])]),B.value.title?(o(),i(`p`,w,c(B.value.title),1)):u(``,!0)])])):(o(),i(`div`,T,[r(`aside`,E,[B.value.image_url?(o(),i(s,{key:0},[r(`img`,{src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,D),d[0]||=r(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10`},null,-1)],64)):(o(),i(`div`,O)),e(p,{inverted:``,class:n([`relative`,B.value.image_url?`text-white`:``])},null,8,[`class`]),r(`div`,{class:n([`relative max-w-md`,B.value.image_url?`text-white`:``])},[B.value.title?(o(),i(`p`,k,c(B.value.title),1)):u(``,!0),r(`p`,A,c(B.value.text||`Neuigkeiten, Ansprechpartner und Anwendungen von ${z.value.portal_name}.`),1)],2),r(`p`,{class:n([`relative text-xs opacity-70`,B.value.image_url?`text-white`:``])},`© `+c(new Date().getFullYear())+` `+c(z.value.portal_name),3)]),r(`main`,j,[r(`div`,M,[r(`div`,N,[e(p)]),r(`h1`,P,c(R.title),1),R.description?(o(),i(`p`,F,c(R.description),1)):u(``,!0),r(`div`,I,[l(a.$slots,`default`)])])])]))],64))}};export{L as t};
import{D as e,On as t,Zn as n,_ as r,b as i,g as a,mt as o,o as s,tr as c,xt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as d,r as f}from"./dist--2OKCVzt.js";import{U as p}from"./app-BmJeQFgp.js";var m={key:0,class:`bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},h={key:1,class:`relative grid min-h-screen place-items-center bg-brand px-4 py-12`},g=[`src`],_={key:1,class:`absolute inset-0 bg-black/35`},v={class:`relative w-full max-w-[440px]`},y={class:`rounded-xl border bg-card p-8 text-card-foreground shadow-xl sm:p-10`},b={class:`mb-8`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={key:0,class:`mt-6 text-center text-sm text-white/90 [text-shadow:0_1px_2px_rgb(0_0_0/0.4)]`},T={key:2,class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},E={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},D=[`src`],O={key:1,class:`pointer-events-none absolute inset-0 opacity-[0.12]`,style:{"background-image":`radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)`}},k={key:0,class:`text-3xl leading-tight font-semibold tracking-tight`},A={class:`mt-4 text-[15px] opacity-85`},j={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},M={class:`w-full max-w-[400px]`},N={class:`mb-10 lg:hidden`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`mt-2 text-sm text-muted-foreground`},I={class:`mt-8`},L={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(L){let R=L,z=a(()=>d().props.branding),B=a(()=>z.value.login??{layout:`split`});return(a,d)=>(o(),i(s,null,[e(t(f),{title:R.title},null,8,[`title`]),z.value.preview?(o(),i(`div`,m,`Vorschau des Entwurfs`)):u(``,!0),B.value.layout===`centered`?(o(),i(`div`,h,[B.value.image_url?(o(),i(`img`,{key:0,src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,g)):u(``,!0),B.value.image_url?(o(),i(`div`,_)):u(``,!0),r(`div`,v,[r(`div`,y,[r(`div`,b,[e(p)]),r(`h1`,x,c(R.title),1),R.description?(o(),i(`p`,S,c(R.description),1)):u(``,!0),r(`div`,C,[l(a.$slots,`default`)])]),B.value.title?(o(),i(`p`,w,c(B.value.title),1)):u(``,!0)])])):(o(),i(`div`,T,[r(`aside`,E,[B.value.image_url?(o(),i(s,{key:0},[r(`img`,{src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,D),d[0]||=r(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10`},null,-1)],64)):(o(),i(`div`,O)),e(p,{inverted:``,class:n([`relative`,B.value.image_url?`text-white`:``])},null,8,[`class`]),r(`div`,{class:n([`relative max-w-md`,B.value.image_url?`text-white`:``])},[B.value.title?(o(),i(`p`,k,c(B.value.title),1)):u(``,!0),r(`p`,A,c(B.value.text||`Neuigkeiten, Ansprechpartner und Anwendungen von ${z.value.portal_name}.`),1)],2),r(`p`,{class:n([`relative text-xs opacity-70`,B.value.image_url?`text-white`:``])},`© `+c(new Date().getFullYear())+` `+c(z.value.portal_name),3)]),r(`main`,j,[r(`div`,M,[r(`div`,N,[e(p)]),r(`h1`,P,c(R.title),1),R.description?(o(),i(`p`,F,c(R.description),1)):u(``,!0),r(`div`,I,[l(a.$slots,`default`)])])])]))],64))}};export{L as t};

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{p as l}from"./app-Ua4gL4AX.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{p as l}from"./app-BmJeQFgp.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

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

View file

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

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{Rt as d}from"./app-Ua4gL4AX.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{Rt as d}from"./app-BmJeQFgp.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

@ -1 +1 @@
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{b as h,x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as _,s as v}from"./dist--2OKCVzt.js";import{t as y}from"./chevron-left-DSEhAEgi.js";import{t as b}from"./search-x-Bfzq4V3S.js";import{p as x}from"./dist-CZxP9TJf.js";import{Ct as S,O as C,T as w,Xt as T,kt as E,p as D,w as O,yt as k}from"./app-Ua4gL4AX.js";var A={class:`flex w-full flex-col gap-3 sm:w-auto sm:flex-row`},j={class:`relative block sm:w-80`},M=[`value`],N={key:0,class:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},P={class:`min-w-0`},F={class:`truncate text-[15px] font-semibold hover:underline`},I={class:`truncate text-[13px] text-muted-foreground`},L={class:`px-4 pb-3 text-[13px] text-muted-foreground`},R={key:0,class:`font-medium text-brand-text`},z={key:1},B={key:2},V={class:`mt-auto flex border-t text-[13px]`},H=[`href`],U=[`href`],W={key:1,class:`grid place-items-center rounded-lg border border-dashed bg-card px-6 py-16 text-center`},G={key:2,class:`mt-6 flex items-center justify-between`,"aria-label":`Seiten`},K={class:`text-sm text-muted-foreground`},q={class:`flex gap-2`},J={__name:`Index`,props:{people:{type:Object,required:!0},filters:{type:Object,required:!0},departments:{type:Array,required:!0}},setup(J){let Y=J,X=p(Y.filters.q??``),Z=p(Y.filters.abteilung??``);function Q(){let e={};X.value&&(e.q=X.value),Z.value&&(e.abteilung=Z.value),v.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return n(X,x(Q,300)),n(Z,Q),(n,p)=>(c(),f(w,{title:`Personen`},{default:u(()=>[e(O,{title:`Personen`},{description:u(()=>[t(d(J.people.meta.total.toLocaleString(`de-DE`))+` `+d(J.people.meta.total===1?`Person`:`Personen`)+d(J.filters.q||J.filters.abteilung?` gefunden`:` im Verzeichnis`)+` · `,1),e(r(_),{href:`/personen/organigramm`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...p[4]||=[t(`Organigramm`,-1)]]),_:1})]),actions:u(()=>[a(`div`,A,[a(`label`,j,[p[5]||=a(`span`,{class:`sr-only`},`Suchen`,-1),e(r(k),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":p[0]||=e=>X.value=e,type:`search`,placeholder:`Name, Funktion, Standort …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[g,X.value]])]),i(a(`select`,{"onUpdate:modelValue":p[1]||=e=>Z.value=e,class:`h-10 rounded-md border border-input bg-card px-3 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none sm:w-56`,"aria-label":`Abteilung`},[p[6]||=a(`option`,{value:``},`Alle Abteilungen`,-1),(c(!0),o(l,null,s(J.departments,e=>(c(),o(`option`,{key:e,value:e},d(e),9,M))),128))],512),[[h,Z.value]])])]),_:1}),J.people.data.length?(c(),o(`ul`,N,[(c(!0),o(l,null,s(J.people.data,n=>(c(),o(`li`,{key:n.id,class:`flex flex-col rounded-lg border bg-card`},[e(r(_),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:u(()=>[e(C,{person:n,class:`size-12`},null,8,[`person`]),a(`div`,P,[a(`div`,F,d(n.name),1),a(`div`,I,d(n.job_title||`–`),1)])]),_:2},1032,[`href`]),a(`div`,L,[n.department?(c(),o(`span`,R,d(n.department),1)):m(``,!0),n.department&&n.location?(c(),o(`span`,z,` · `)):m(``,!0),n.location?(c(),o(`span`,B,d(n.location),1)):m(``,!0)]),a(`div`,V,[a(`a`,{href:`mailto:${n.email}`,class:`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(E),{class:`size-4`}),p[7]||=t(` E-Mail `,-1)],8,H),n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`flex flex-1 items-center justify-center gap-1.5 border-l py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(S),{class:`size-4`}),p[8]||=t(` Anrufen `,-1)],8,U)):m(``,!0)])]))),128))])):(c(),o(`div`,W,[e(r(b),{class:`size-8 text-muted-foreground`}),p[9]||=a(`p`,{class:`mt-3 font-medium`},`Niemand gefunden`,-1),p[10]||=a(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Versuchen Sie einen anderen Suchbegriff oder eine andere Abteilung.`,-1)])),J.people.meta.last_page>1?(c(),o(`nav`,G,[a(`p`,K,`Seite `+d(J.people.meta.current_page)+` von `+d(J.people.meta.last_page),1),a(`div`,q,[e(r(D),{variant:`outline`,size:`sm`,disabled:!J.people.links.prev,onClick:p[2]||=e=>r(v).get(J.people.links.prev,{},{preserveScroll:!1})},{default:u(()=>[e(r(y)),p[11]||=t(` Zurück `,-1)]),_:1},8,[`disabled`]),e(r(D),{variant:`outline`,size:`sm`,disabled:!J.people.links.next,onClick:p[3]||=e=>r(v).get(J.people.links.next,{},{preserveScroll:!1})},{default:u(()=>[p[12]||=t(` Weiter `,-1),e(r(T))]),_:1},8,[`disabled`])])])):m(``,!0)]),_:1}))}};export{J as default};
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{b as h,x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as _,s as v}from"./dist--2OKCVzt.js";import{t as y}from"./chevron-left-DSEhAEgi.js";import{t as b}from"./search-x-Bfzq4V3S.js";import{p as x}from"./dist-CZxP9TJf.js";import{Ct as S,O as C,T as w,Xt as T,kt as E,p as D,w as O,yt as k}from"./app-BmJeQFgp.js";var A={class:`flex w-full flex-col gap-3 sm:w-auto sm:flex-row`},j={class:`relative block sm:w-80`},M=[`value`],N={key:0,class:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},P={class:`min-w-0`},F={class:`truncate text-[15px] font-semibold hover:underline`},I={class:`truncate text-[13px] text-muted-foreground`},L={class:`px-4 pb-3 text-[13px] text-muted-foreground`},R={key:0,class:`font-medium text-brand-text`},z={key:1},B={key:2},V={class:`mt-auto flex border-t text-[13px]`},H=[`href`],U=[`href`],W={key:1,class:`grid place-items-center rounded-lg border border-dashed bg-card px-6 py-16 text-center`},G={key:2,class:`mt-6 flex items-center justify-between`,"aria-label":`Seiten`},K={class:`text-sm text-muted-foreground`},q={class:`flex gap-2`},J={__name:`Index`,props:{people:{type:Object,required:!0},filters:{type:Object,required:!0},departments:{type:Array,required:!0}},setup(J){let Y=J,X=p(Y.filters.q??``),Z=p(Y.filters.abteilung??``);function Q(){let e={};X.value&&(e.q=X.value),Z.value&&(e.abteilung=Z.value),v.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return n(X,x(Q,300)),n(Z,Q),(n,p)=>(c(),f(w,{title:`Personen`},{default:u(()=>[e(O,{title:`Personen`},{description:u(()=>[t(d(J.people.meta.total.toLocaleString(`de-DE`))+` `+d(J.people.meta.total===1?`Person`:`Personen`)+d(J.filters.q||J.filters.abteilung?` gefunden`:` im Verzeichnis`)+` · `,1),e(r(_),{href:`/personen/organigramm`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...p[4]||=[t(`Organigramm`,-1)]]),_:1})]),actions:u(()=>[a(`div`,A,[a(`label`,j,[p[5]||=a(`span`,{class:`sr-only`},`Suchen`,-1),e(r(k),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":p[0]||=e=>X.value=e,type:`search`,placeholder:`Name, Funktion, Standort …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[g,X.value]])]),i(a(`select`,{"onUpdate:modelValue":p[1]||=e=>Z.value=e,class:`h-10 rounded-md border border-input bg-card px-3 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none sm:w-56`,"aria-label":`Abteilung`},[p[6]||=a(`option`,{value:``},`Alle Abteilungen`,-1),(c(!0),o(l,null,s(J.departments,e=>(c(),o(`option`,{key:e,value:e},d(e),9,M))),128))],512),[[h,Z.value]])])]),_:1}),J.people.data.length?(c(),o(`ul`,N,[(c(!0),o(l,null,s(J.people.data,n=>(c(),o(`li`,{key:n.id,class:`flex flex-col rounded-lg border bg-card`},[e(r(_),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:u(()=>[e(C,{person:n,class:`size-12`},null,8,[`person`]),a(`div`,P,[a(`div`,F,d(n.name),1),a(`div`,I,d(n.job_title||`–`),1)])]),_:2},1032,[`href`]),a(`div`,L,[n.department?(c(),o(`span`,R,d(n.department),1)):m(``,!0),n.department&&n.location?(c(),o(`span`,z,` · `)):m(``,!0),n.location?(c(),o(`span`,B,d(n.location),1)):m(``,!0)]),a(`div`,V,[a(`a`,{href:`mailto:${n.email}`,class:`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(E),{class:`size-4`}),p[7]||=t(` E-Mail `,-1)],8,H),n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`flex flex-1 items-center justify-center gap-1.5 border-l py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(S),{class:`size-4`}),p[8]||=t(` Anrufen `,-1)],8,U)):m(``,!0)])]))),128))])):(c(),o(`div`,W,[e(r(b),{class:`size-8 text-muted-foreground`}),p[9]||=a(`p`,{class:`mt-3 font-medium`},`Niemand gefunden`,-1),p[10]||=a(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Versuchen Sie einen anderen Suchbegriff oder eine andere Abteilung.`,-1)])),J.people.meta.last_page>1?(c(),o(`nav`,G,[a(`p`,K,`Seite `+d(J.people.meta.current_page)+` von `+d(J.people.meta.last_page),1),a(`div`,q,[e(r(D),{variant:`outline`,size:`sm`,disabled:!J.people.links.prev,onClick:p[2]||=e=>r(v).get(J.people.links.prev,{},{preserveScroll:!1})},{default:u(()=>[e(r(y)),p[11]||=t(` Zurück `,-1)]),_:1},8,[`disabled`]),e(r(D),{variant:`outline`,size:`sm`,disabled:!J.people.links.next,onClick:p[3]||=e=>r(v).get(J.people.links.next,{},{preserveScroll:!1})},{default:u(()=>[p[12]||=t(` Weiter `,-1),e(r(T))]),_:1},8,[`disabled`])])])):m(``,!0)]),_:1}))}};export{J as default};

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,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{S as h,T as g,en as _,w as v}from"./app-Ua4gL4AX.js";import{t as y}from"./BirthdayItem-BHLLsqc3.js";var b={class:`mx-auto max-w-3xl`},x={key:0,class:`mb-6 rounded-lg border bg-card px-4 py-3 text-sm`},S={key:1,class:`grid gap-5`},C={class:`divide-y px-5`},w={key:2,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{birthdays:{type:Array,required:!0},scope:{type:String,required:!0},registered:{type:Boolean,default:!1}},setup(T){let E=T,D=s(()=>{let e=[];for(let t of E.birthdays){let n=e.at(-1);n&&n.date===t.date?n.items.push(t):e.push({date:t.date,today:t.today,items:[t]})}return e}),O=e=>e.today?`Heute`:new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`}).format(new Date(`${e.date}T12:00:00`));return(s,E)=>(c(),f(g,{title:`Geburtstage`},{default:u(()=>[i(`div`,b,[e(v,{title:`Geburtstage`,description:`Die nächsten 30 Tage · ${T.scope}`},null,8,[`description`]),T.registered?p(``,!0):(c(),a(`p`,x,[E[1]||=t(` Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter `,-1),e(n(m),{href:`/profil/bearbeiten`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...E[0]||=[t(`Profil bearbeiten`,-1)]]),_:1}),E[2]||=t(` ein. `,-1)])),D.value.length?(c(),a(`div`,S,[(c(!0),a(l,null,o(D.value,e=>(c(),a(`section`,{key:e.date,class:`rounded-lg border bg-card`},[i(`h2`,{class:r([`border-b px-5 py-3 text-sm font-semibold`,e.today?`text-brand-text`:``])},d(O(e)),3),i(`div`,C,[(c(!0),a(l,null,o(e.items,e=>(c(),f(y,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(h,{icon:n(_),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{S as h,T as g,en as _,w as v}from"./app-BmJeQFgp.js";import{t as y}from"./BirthdayItem-CiUW_rj7.js";var b={class:`mx-auto max-w-3xl`},x={key:0,class:`mb-6 rounded-lg border bg-card px-4 py-3 text-sm`},S={key:1,class:`grid gap-5`},C={class:`divide-y px-5`},w={key:2,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{birthdays:{type:Array,required:!0},scope:{type:String,required:!0},registered:{type:Boolean,default:!1}},setup(T){let E=T,D=s(()=>{let e=[];for(let t of E.birthdays){let n=e.at(-1);n&&n.date===t.date?n.items.push(t):e.push({date:t.date,today:t.today,items:[t]})}return e}),O=e=>e.today?`Heute`:new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`}).format(new Date(`${e.date}T12:00:00`));return(s,E)=>(c(),f(g,{title:`Geburtstage`},{default:u(()=>[i(`div`,b,[e(v,{title:`Geburtstage`,description:`Die nächsten 30 Tage · ${T.scope}`},null,8,[`description`]),T.registered?p(``,!0):(c(),a(`p`,x,[E[1]||=t(` Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter `,-1),e(n(m),{href:`/profil/bearbeiten`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...E[0]||=[t(`Profil bearbeiten`,-1)]]),_:1}),E[2]||=t(` ein. `,-1)])),D.value.length?(c(),a(`div`,S,[(c(!0),a(l,null,o(D.value,e=>(c(),a(`section`,{key:e.date,class:`rounded-lg border bg-card`},[i(`h2`,{class:r([`border-b px-5 py-3 text-sm font-semibold`,e.today?`text-brand-text`:``])},d(O(e)),3),i(`div`,C,[(c(!0),a(l,null,o(e.items,e=>(c(),f(y,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(h,{icon:n(_),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d}from"./dist--2OKCVzt.js";import{S as f,T as p,Xt as m,j as h,qt as g,w as _}from"./app-Ua4gL4AX.js";var v={key:0,class:`grid gap-4 md:grid-cols-2 xl:grid-cols-3`},y={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},b={class:`min-w-0 flex-1`},x={class:`block font-semibold group-hover:underline`},S={key:0,class:`mt-1 line-clamp-2 block text-sm text-muted-foreground`},C={key:1,class:`mt-2 block text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{forms:{type:Array,required:!0}},setup(T){return(E,D)=>(a(),l(p,{title:`Formulare`},{default:s(()=>[e(_,{title:`Formulare`,description:`Anträge, Anmeldungen und Meldungen – direkt online ausfüllen.`}),T.forms.length?(a(),r(`div`,v,[(a(!0),r(o,null,i(T.forms,i=>(a(),l(t(d),{key:i.id,href:i.url,class:`group flex gap-4 rounded-lg border bg-card p-5 hover:border-brand-300`},{default:s(()=>[n(`span`,y,[e(t(g),{class:`size-5`})]),n(`span`,b,[n(`span`,x,c(i.title),1),i.description?(a(),r(`span`,S,c(i.description),1)):u(``,!0),i.closes_at?(a(),r(`span`,C,`Bis `+c(t(h)(i.closes_at)),1)):u(``,!0)]),e(t(m),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(f,{icon:t(g),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default};
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d}from"./dist--2OKCVzt.js";import{S as f,T as p,Xt as m,j as h,qt as g,w as _}from"./app-BmJeQFgp.js";var v={key:0,class:`grid gap-4 md:grid-cols-2 xl:grid-cols-3`},y={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},b={class:`min-w-0 flex-1`},x={class:`block font-semibold group-hover:underline`},S={key:0,class:`mt-1 line-clamp-2 block text-sm text-muted-foreground`},C={key:1,class:`mt-2 block text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{forms:{type:Array,required:!0}},setup(T){return(E,D)=>(a(),l(p,{title:`Formulare`},{default:s(()=>[e(_,{title:`Formulare`,description:`Anträge, Anmeldungen und Meldungen – direkt online ausfüllen.`}),T.forms.length?(a(),r(`div`,v,[(a(!0),r(o,null,i(T.forms,i=>(a(),l(t(d),{key:i.id,href:i.url,class:`group flex gap-4 rounded-lg border bg-card p-5 hover:border-brand-300`},{default:s(()=>[n(`span`,y,[e(t(g),{class:`size-5`})]),n(`span`,b,[n(`span`,x,c(i.title),1),i.description?(a(),r(`span`,S,c(i.description),1)):u(``,!0),i.closes_at?(a(),r(`span`,C,`Bis `+c(t(h)(i.closes_at)),1)):u(``,!0)]),e(t(m),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(f,{icon:t(g),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default};

View file

@ -1 +1 @@
import{D as e,E as t,Ht as n,On as r,Zn as i,_ as a,b as o,bt as s,et as c,g as l,mt as u,o as d,qt as f,tr as p,v as m,w as h,wt as g,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as v,o as y}from"./dist--2OKCVzt.js";import{t as b}from"./plus-CQwC4vy-.js";import{n as x}from"./lib-Be7KNAML.js";import{$t as S,M as C,N as w,Ot as T,S as E,T as D,p as O,ut as k,w as A}from"./app-Ua4gL4AX.js";import{t as j}from"./EventDateBlock-DbumSunf.js";import{t as M}from"./widgets-D7y2hz8K.js";var N={class:`grid min-w-0 grid-cols-1 content-start gap-6`},P={__name:`DashboardSidebar`,props:{widgets:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),o(`aside`,N,[(u(!0),o(d,null,s(e.widgets,e=>(u(),o(d,{key:e.key},[r(M)(e.component)?(u(),m(g(r(M)(e.component)),c({key:0,ref_for:!0},e.props),null,16)):_(``,!0)],64))),128))]))}},F={class:`grid gap-6 lg:grid-cols-12`},I={key:0,class:`grid gap-8`},L={class:`mb-3 text-sm font-semibold text-muted-foreground`},R={class:`divide-y rounded-lg border bg-card`},z={class:`min-w-0 flex-1`},B={class:`text-[15px] font-semibold group-hover:underline`},V={class:`mt-0.5 text-[13px] text-muted-foreground`},H={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},U=[`src`],W={key:1,class:`rounded-lg border border-dashed bg-card`},G={__name:`Index`,props:{events:{type:Object,required:!0},sidebar:{type:Array,default:()=>[]},canManage:{type:Boolean,default:!1}},setup(c){let g=c,M=y();n(()=>M.props.flash.status,e=>e&&x.success(e),{immediate:!0});let N=l(()=>{let e=[];for(let t of g.events.data){let n=new Date(t.starts_at),r=w((n<new Date?new Date:n).toISOString()),i=e[e.length-1];i?.label===r?i.events.push(t):e.push({label:r,events:[t]})}return e});return(n,l)=>(u(),m(D,{title:`Termine`},{default:f(()=>[e(A,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`},h({_:2},[c.canManage?{name:`actions`,fn:f(()=>[e(r(O),{"as-child":``},{default:f(()=>[e(r(v),{href:`/redaktion/termine/neu`},{default:f(()=>[e(r(b)),l[0]||=t(` Neuer Termin`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),a(`div`,F,[a(`div`,{class:i([`min-w-0`,c.sidebar.length?`lg:col-span-8 xl:col-span-9`:`lg:col-span-12`])},[N.value.length?(u(),o(`div`,I,[(u(!0),o(d,null,s(N.value,n=>(u(),o(`section`,{key:n.label},[a(`h2`,L,p(n.label),1),a(`ul`,R,[(u(!0),o(d,null,s(n.events,n=>(u(),o(`li`,{key:n.id},[e(r(v),{href:`/termine/${n.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:f(()=>[e(j,{date:n.starts_at,class:`w-14`},null,8,[`date`]),a(`div`,z,[a(`h3`,B,p(n.title),1),a(`p`,V,p(r(C)(n)),1),n.location||n.online_url?(u(),o(`p`,H,[n.location?(u(),m(r(T),{key:0,class:`size-3.5`})):(u(),m(r(k),{key:1,class:`size-3.5`})),t(` `+p(n.location||`Online`),1)])):_(``,!0)]),n.thumb_url?(u(),o(`img`,{key:0,src:n.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,U)):_(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(u(),o(`div`,W,[e(E,{icon:r(S),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))],2),c.sidebar.length?(u(),m(P,{key:0,widgets:c.sidebar,class:`lg:col-span-4 xl:col-span-3`},null,8,[`widgets`])):_(``,!0)])]),_:1}))}};export{G as default};
import{D as e,E as t,Ht as n,On as r,Zn as i,_ as a,b as o,bt as s,et as c,g as l,mt as u,o as d,qt as f,tr as p,v as m,w as h,wt as g,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as v,o as y}from"./dist--2OKCVzt.js";import{t as b}from"./plus-CQwC4vy-.js";import{n as x}from"./lib-Be7KNAML.js";import{$t as S,M as C,N as w,Ot as T,S as E,T as D,p as O,ut as k,w as A}from"./app-BmJeQFgp.js";import{t as j}from"./EventDateBlock-D5ZKEnSS.js";import{t as M}from"./widgets-DL8nkVm1.js";var N={class:`grid min-w-0 grid-cols-1 content-start gap-6`},P={__name:`DashboardSidebar`,props:{widgets:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),o(`aside`,N,[(u(!0),o(d,null,s(e.widgets,e=>(u(),o(d,{key:e.key},[r(M)(e.component)?(u(),m(g(r(M)(e.component)),c({key:0,ref_for:!0},e.props),null,16)):_(``,!0)],64))),128))]))}},F={class:`grid gap-6 lg:grid-cols-12`},I={key:0,class:`grid gap-8`},L={class:`mb-3 text-sm font-semibold text-muted-foreground`},R={class:`divide-y rounded-lg border bg-card`},z={class:`min-w-0 flex-1`},B={class:`text-[15px] font-semibold group-hover:underline`},V={class:`mt-0.5 text-[13px] text-muted-foreground`},H={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},U=[`src`],W={key:1,class:`rounded-lg border border-dashed bg-card`},G={__name:`Index`,props:{events:{type:Object,required:!0},sidebar:{type:Array,default:()=>[]},canManage:{type:Boolean,default:!1}},setup(c){let g=c,M=y();n(()=>M.props.flash.status,e=>e&&x.success(e),{immediate:!0});let N=l(()=>{let e=[];for(let t of g.events.data){let n=new Date(t.starts_at),r=w((n<new Date?new Date:n).toISOString()),i=e[e.length-1];i?.label===r?i.events.push(t):e.push({label:r,events:[t]})}return e});return(n,l)=>(u(),m(D,{title:`Termine`},{default:f(()=>[e(A,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`},h({_:2},[c.canManage?{name:`actions`,fn:f(()=>[e(r(O),{"as-child":``},{default:f(()=>[e(r(v),{href:`/redaktion/termine/neu`},{default:f(()=>[e(r(b)),l[0]||=t(` Neuer Termin`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),a(`div`,F,[a(`div`,{class:i([`min-w-0`,c.sidebar.length?`lg:col-span-8 xl:col-span-9`:`lg:col-span-12`])},[N.value.length?(u(),o(`div`,I,[(u(!0),o(d,null,s(N.value,n=>(u(),o(`section`,{key:n.label},[a(`h2`,L,p(n.label),1),a(`ul`,R,[(u(!0),o(d,null,s(n.events,n=>(u(),o(`li`,{key:n.id},[e(r(v),{href:`/termine/${n.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:f(()=>[e(j,{date:n.starts_at,class:`w-14`},null,8,[`date`]),a(`div`,z,[a(`h3`,B,p(n.title),1),a(`p`,V,p(r(C)(n)),1),n.location||n.online_url?(u(),o(`p`,H,[n.location?(u(),m(r(T),{key:0,class:`size-3.5`})):(u(),m(r(k),{key:1,class:`size-3.5`})),t(` `+p(n.location||`Online`),1)])):_(``,!0)]),n.thumb_url?(u(),o(`img`,{key:0,src:n.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,U)):_(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(u(),o(`div`,W,[e(E,{icon:r(S),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))],2),c.sidebar.length?(u(),m(P,{key:0,widgets:c.sidebar,class:`lg:col-span-4 xl:col-span-3`},null,8,[`widgets`])):_(``,!0)])]),_:1}))}};export{G as default};

View file

@ -1 +1 @@
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as v,s as y}from"./dist--2OKCVzt.js";import{t as b}from"./search-x-Bfzq4V3S.js";import{p as x}from"./dist-CZxP9TJf.js";import{B as S,D as C,E as w,S as T,T as E,w as D,yt as O}from"./app-Ua4gL4AX.js";var k={class:`grid gap-6 lg:grid-cols-12`},A={class:`grid content-start gap-6 lg:col-span-9`},j={class:`relative block`},M=[`id`],N={class:`flex items-center gap-2.5 border-b px-5 py-3`},P={class:`grid size-8 place-items-center rounded-md bg-brand-soft text-brand-text`},F={class:`text-base font-semibold`},I={class:`ml-auto text-xs text-muted-foreground`},L={class:`divide-y`},R=[`src`],z={class:`min-w-0 flex-1`},B=[`innerHTML`],V={key:0,class:`mt-0.5 text-xs text-muted-foreground`},H=[`innerHTML`],U={key:0,class:`rounded-lg border bg-card`},W={key:0,class:`hidden lg:col-span-3 lg:block`},G={class:`sticky top-20 rounded-lg border bg-card p-4`},K={class:`grid gap-0.5 text-sm`},q=[`href`],J={class:`ml-auto text-xs text-muted-foreground tabular-nums`},Y={__name:`Index`,props:{query:{type:String,default:``},groups:{type:Array,required:!0},minLength:{type:Number,default:2}},setup(Y){let X=Y,Z=m(X.query),Q=c(()=>X.groups.reduce((e,t)=>e+t.items.length,0));return n(Z,x(e=>y.get(`/suche`,e.trim()?{q:e.trim()}:{},{preserveState:!0,preserveScroll:!0,replace:!0}),300)),(n,c)=>(l(),p(E,{title:`Suche`},{default:d(()=>[e(D,{title:`Suche`},{description:d(()=>[Y.query.length>=Y.minLength?(l(),o(u,{key:0},[t(f(Q.value?`${Q.value} Treffer für „${Y.query}“`:`Keine Treffer für „${Y.query}“`),1)],64)):(l(),o(u,{key:1},[t(`Neuigkeiten, Termine, Seiten, Downloads und Dokumente durchsuchen`)],64))]),_:1}),a(`div`,k,[a(`div`,A,[a(`label`,j,[c[1]||=a(`span`,{class:`sr-only`},`Suchbegriff`,-1),e(r(O),{class:`pointer-events-none absolute top-1/2 left-4 size-5 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>Z.value=e,type:`search`,autofocus:``,placeholder:`Wonach suchen Sie?`,class:`h-12 w-full rounded-lg border border-input bg-card pr-4 pl-12 text-base shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[_,Z.value]])]),(l(!0),o(u,null,s(Y.groups,t=>(l(),o(`section`,{id:`treffer-${t.key}`,key:t.key,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,N,[a(`span`,P,[e(S,{name:t.icon,class:`size-4`},null,8,[`name`])]),a(`h2`,F,f(t.label),1),a(`span`,I,f(t.items.length===20?`20+`:t.items.length)+` Treffer`,1)]),a(`ul`,L,[(l(!0),o(u,null,s(t.items,e=>(l(),o(`li`,{key:e.url},[(l(),p(h(e.external?`a`:r(v)),{href:e.url,class:`group flex items-start gap-4 px-5 py-3.5 transition-colors hover:bg-accent/50`},{default:d(()=>[e.image?(l(),o(`img`,{key:0,src:e.image,alt:``,loading:`lazy`,class:`hidden h-14 w-20 shrink-0 rounded-md object-cover sm:block`},null,8,R)):e.file?(l(),p(C,{key:1,extension:e.file,class:`shrink-0`},null,8,[`extension`])):g(``,!0),a(`div`,z,[a(`h3`,{class:`text-[15px] font-semibold group-hover:underline`,innerHTML:r(w)(e.title,Y.query)},null,8,B),e.meta?(l(),o(`p`,V,f(e.meta),1)):g(``,!0),e.excerpt?(l(),o(`p`,{key:1,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`,innerHTML:r(w)(e.excerpt,Y.query)},null,8,H)):g(``,!0)])]),_:2},1032,[`href`]))]))),128))])],8,M))),128)),Y.query.length>=Y.minLength&&!Y.groups.length?(l(),o(`div`,U,[e(T,{icon:r(b),title:`Nichts gefunden`,text:`Andere Schreibweise oder weniger Begriffe versuchen. Personen finden Sie im Personenverzeichnis.`},null,8,[`icon`])])):g(``,!0)]),Y.groups.length>1?(l(),o(`aside`,W,[a(`nav`,G,[c[2]||=a(`h2`,{class:`mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Bereiche`,-1),a(`ul`,K,[(l(!0),o(u,null,s(Y.groups,n=>(l(),o(`li`,{key:n.key},[a(`a`,{href:`#treffer-${n.key}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-accent`},[e(S,{name:n.icon,class:`size-4 text-muted-foreground`},null,8,[`name`]),t(` `+f(n.label)+` `,1),a(`span`,J,f(n.items.length),1)],8,q)]))),128))]),e(r(v),{href:Y.query?`/personen?q=${encodeURIComponent(Y.query)}`:`/personen`,class:`mt-3 block border-t pt-3 text-[13px] text-brand-text hover:underline`},{default:d(()=>[t(`„`+f(Y.query)+`“ im Personenverzeichnis suchen`,1)]),_:1},8,[`href`])])])):g(``,!0)])]),_:1}))}};export{Y as default};
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as v,s as y}from"./dist--2OKCVzt.js";import{t as b}from"./search-x-Bfzq4V3S.js";import{p as x}from"./dist-CZxP9TJf.js";import{B as S,D as C,E as w,S as T,T as E,w as D,yt as O}from"./app-BmJeQFgp.js";var k={class:`grid gap-6 lg:grid-cols-12`},A={class:`grid content-start gap-6 lg:col-span-9`},j={class:`relative block`},M=[`id`],N={class:`flex items-center gap-2.5 border-b px-5 py-3`},P={class:`grid size-8 place-items-center rounded-md bg-brand-soft text-brand-text`},F={class:`text-base font-semibold`},I={class:`ml-auto text-xs text-muted-foreground`},L={class:`divide-y`},R=[`src`],z={class:`min-w-0 flex-1`},B=[`innerHTML`],V={key:0,class:`mt-0.5 text-xs text-muted-foreground`},H=[`innerHTML`],U={key:0,class:`rounded-lg border bg-card`},W={key:0,class:`hidden lg:col-span-3 lg:block`},G={class:`sticky top-20 rounded-lg border bg-card p-4`},K={class:`grid gap-0.5 text-sm`},q=[`href`],J={class:`ml-auto text-xs text-muted-foreground tabular-nums`},Y={__name:`Index`,props:{query:{type:String,default:``},groups:{type:Array,required:!0},minLength:{type:Number,default:2}},setup(Y){let X=Y,Z=m(X.query),Q=c(()=>X.groups.reduce((e,t)=>e+t.items.length,0));return n(Z,x(e=>y.get(`/suche`,e.trim()?{q:e.trim()}:{},{preserveState:!0,preserveScroll:!0,replace:!0}),300)),(n,c)=>(l(),p(E,{title:`Suche`},{default:d(()=>[e(D,{title:`Suche`},{description:d(()=>[Y.query.length>=Y.minLength?(l(),o(u,{key:0},[t(f(Q.value?`${Q.value} Treffer für „${Y.query}“`:`Keine Treffer für „${Y.query}“`),1)],64)):(l(),o(u,{key:1},[t(`Neuigkeiten, Termine, Seiten, Downloads und Dokumente durchsuchen`)],64))]),_:1}),a(`div`,k,[a(`div`,A,[a(`label`,j,[c[1]||=a(`span`,{class:`sr-only`},`Suchbegriff`,-1),e(r(O),{class:`pointer-events-none absolute top-1/2 left-4 size-5 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>Z.value=e,type:`search`,autofocus:``,placeholder:`Wonach suchen Sie?`,class:`h-12 w-full rounded-lg border border-input bg-card pr-4 pl-12 text-base shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[_,Z.value]])]),(l(!0),o(u,null,s(Y.groups,t=>(l(),o(`section`,{id:`treffer-${t.key}`,key:t.key,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,N,[a(`span`,P,[e(S,{name:t.icon,class:`size-4`},null,8,[`name`])]),a(`h2`,F,f(t.label),1),a(`span`,I,f(t.items.length===20?`20+`:t.items.length)+` Treffer`,1)]),a(`ul`,L,[(l(!0),o(u,null,s(t.items,e=>(l(),o(`li`,{key:e.url},[(l(),p(h(e.external?`a`:r(v)),{href:e.url,class:`group flex items-start gap-4 px-5 py-3.5 transition-colors hover:bg-accent/50`},{default:d(()=>[e.image?(l(),o(`img`,{key:0,src:e.image,alt:``,loading:`lazy`,class:`hidden h-14 w-20 shrink-0 rounded-md object-cover sm:block`},null,8,R)):e.file?(l(),p(C,{key:1,extension:e.file,class:`shrink-0`},null,8,[`extension`])):g(``,!0),a(`div`,z,[a(`h3`,{class:`text-[15px] font-semibold group-hover:underline`,innerHTML:r(w)(e.title,Y.query)},null,8,B),e.meta?(l(),o(`p`,V,f(e.meta),1)):g(``,!0),e.excerpt?(l(),o(`p`,{key:1,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`,innerHTML:r(w)(e.excerpt,Y.query)},null,8,H)):g(``,!0)])]),_:2},1032,[`href`]))]))),128))])],8,M))),128)),Y.query.length>=Y.minLength&&!Y.groups.length?(l(),o(`div`,U,[e(T,{icon:r(b),title:`Nichts gefunden`,text:`Andere Schreibweise oder weniger Begriffe versuchen. Personen finden Sie im Personenverzeichnis.`},null,8,[`icon`])])):g(``,!0)]),Y.groups.length>1?(l(),o(`aside`,W,[a(`nav`,G,[c[2]||=a(`h2`,{class:`mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Bereiche`,-1),a(`ul`,K,[(l(!0),o(u,null,s(Y.groups,n=>(l(),o(`li`,{key:n.key},[a(`a`,{href:`#treffer-${n.key}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-accent`},[e(S,{name:n.icon,class:`size-4 text-muted-foreground`},null,8,[`name`]),t(` `+f(n.label)+` `,1),a(`span`,J,f(n.items.length),1)],8,q)]))),128))]),e(r(v),{href:Y.query?`/personen?q=${encodeURIComponent(Y.query)}`:`/personen`,class:`mt-3 block border-t pt-3 text-[13px] text-brand-text hover:underline`},{default:d(()=>[t(`„`+f(Y.query)+`“ im Personenverzeichnis suchen`,1)]),_:1},8,[`href`])])])):g(``,!0)])]),_:1}))}};export{Y as default};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
import{D as e,E as t,Ht as n,On as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,w as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as h,o as g}from"./dist--2OKCVzt.js";import{t as _}from"./circle-check-K9QH5jex.js";import{t as v}from"./plus-CQwC4vy-.js";import{t as y}from"./vote-5bSt6sCW.js";import{n as b}from"./lib-Be7KNAML.js";import{C as x,F as S,S as C,T as w,p as T,w as E}from"./app-BmJeQFgp.js";var D={class:`grid gap-6 lg:grid-cols-3`},O={key:0,class:`-mx-5 -mb-5 divide-y border-t`},k={class:`min-w-0 flex-1`},A={class:`block font-medium`},j={class:`block text-xs text-muted-foreground`},M={key:0,class:`shrink-0 text-xs text-muted-foreground`},N={key:1,class:`shrink-0 rounded-md bg-brand px-2.5 py-1 text-xs font-medium text-brand-foreground`},P={key:0,class:`-mx-5 -mb-5 divide-y border-t`},F={class:`block text-sm font-medium`},I={class:`block text-xs text-muted-foreground`},L={key:1,class:`text-sm text-muted-foreground`},R={__name:`Index`,props:{open:{type:Array,required:!0},closed:{type:Array,required:!0},canManage:{type:Boolean,default:!1}},setup(R){let z=g();return n(()=>z.props.flash.status,e=>e&&b.success(e),{immediate:!0}),(n,g)=>(c(),f(w,{title:`Umfragen`},{default:u(()=>[e(E,{title:`Umfragen`,description:`Ihre Meinung ist gefragt – Abstimmungen und Umfragen im Haus.`},p({_:2},[R.canManage?{name:`actions`,fn:u(()=>[e(r(T),{"as-child":``},{default:u(()=>[e(r(h),{href:`/redaktion/umfragen/neu`},{default:u(()=>[e(r(v)),g[0]||=t(` Neue Umfrage`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),a(`div`,D,[e(x,{title:`Laufende Umfragen`,class:`lg:col-span-2`},{default:u(()=>[R.open.length?(c(),o(`ul`,O,[(c(!0),o(l,null,s(R.open,n=>(c(),o(`li`,{key:n.id},[e(r(h),{href:n.url,class:`flex items-center gap-4 px-5 py-4 hover:bg-accent/40`},{default:u(()=>[a(`span`,{class:i([`grid size-10 shrink-0 place-items-center rounded-md`,n.voted?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-text`])},[n.voted?(c(),f(r(_),{key:0,class:`size-5`})):(c(),f(r(y),{key:1,class:`size-5`}))],2),a(`span`,k,[a(`span`,A,d(n.title),1),a(`span`,j,[t(d(n.questions_count)+` `+d(n.questions_count===1?`Frage`:`Fragen`),1),n.closes_at?(c(),o(l,{key:0},[t(` · bis `+d(r(S)(n.closes_at)),1)],64)):m(``,!0)])]),n.voted?(c(),o(`span`,M,`Teilgenommen`)):(c(),o(`span`,N,`Mitmachen`))]),_:2},1032,[`href`])]))),128))])):(c(),f(C,{key:1,icon:r(y),title:`Gerade läuft keine Umfrage`,class:`py-8`},null,8,[`icon`]))]),_:1}),e(x,{title:`Beendet`,class:`content-start`},{default:u(()=>[R.closed.length?(c(),o(`ul`,P,[(c(!0),o(l,null,s(R.closed,t=>(c(),o(`li`,{key:t.id},[e(r(h),{href:t.url,class:`block px-5 py-3 hover:bg-accent/40`},{default:u(()=>[a(`span`,F,d(t.title),1),a(`span`,I,`beendet am `+d(r(S)(t.closes_at)),1)]),_:2},1032,[`href`])]))),128))])):(c(),o(`p`,L,`Noch keine beendeten Umfragen.`))]),_:1})])]),_:1}))}};export{R as default};

View file

@ -1 +1 @@
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as _,o as v}from"./dist--2OKCVzt.js";import{t as y}from"./circle-check-K9QH5jex.js";import{t as b}from"./file-user-hX13EGTA.js";import{t as x}from"./plus-CQwC4vy-.js";import{n as S}from"./lib-Be7KNAML.js";import{S as C,T as w,nn as T,p as E,w as D,y as O,yt as k}from"./app-Ua4gL4AX.js";import{t as A}from"./JobFacts-D3UhVb53.js";var j={key:0,class:`mb-6 grid gap-3 rounded-lg border bg-card p-3 sm:grid-cols-2 lg:grid-cols-[minmax(0,1.5fr)_repeat(3,minmax(0,1fr))]`},M={class:`relative`},N={key:1,class:`grid gap-3`},P={class:`hidden size-11 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text sm:grid`},F={class:`min-w-0 flex-1`},I={class:`flex flex-wrap items-center gap-2`},L={class:`text-base font-semibold break-words group-hover:underline`},R={key:0,class:`rounded-pill bg-brand px-2 py-0.5 text-[11px] font-semibold text-brand-foreground`},z={key:1,class:`inline-flex items-center gap-1 rounded-pill bg-emerald-100 px-2 py-0.5 text-[11px] font-semibold text-emerald-800 dark:bg-emerald-950 dark:text-emerald-300`},B={key:2,class:`rounded-lg border border-dashed bg-card`},V={__name:`Index`,props:{postings:{type:Array,required:!0},filters:{type:Object,required:!0},canManage:{type:Boolean,default:!1},myApplications:{type:Number,default:0}},setup(V){let H=V,U=v();n(()=>U.props.flash.status,e=>e&&S.success(e),{immediate:!0});let W=m(``),G=m(null),K=m(null),q=m(null),J=e=>String(e??``).toLocaleLowerCase(`de-DE`).normalize(`NFD`).replace(/[̀-ͯ]/g,``),Y=c(()=>H.postings.filter(e=>(!G.value||e.department===G.value)&&(!K.value||e.location===K.value)&&(!q.value||e.employment===q.value)&&(!W.value.trim()||J(`${e.title} ${e.department??``} ${e.location??``}`).includes(J(W.value.trim()))))),X=c(()=>W.value||G.value||K.value||q.value),Z=e=>Date.now()-new Date(e.published_at)<6048e5;function Q(){W.value=``,G.value=K.value=q.value=null}return(n,c)=>(l(),p(w,{title:`Stellen`},{default:d(()=>[e(D,{title:`Interne Stellen`,description:`Offene Stellen im Unternehmen – für Ihren nächsten Schritt.`},{actions:d(()=>[V.myApplications?(l(),p(r(E),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:d(()=>[e(r(_),{href:`/stellen/meine-bewerbungen`},{default:d(()=>[e(r(b)),t(` Meine Bewerbungen (`+f(V.myApplications)+`)`,1)]),_:1})]),_:1})):h(``,!0),V.canManage?(l(),p(r(E),{key:1,class:`h-10`,"as-child":``},{default:d(()=>[e(r(_),{href:`/redaktion/stellen/neu`},{default:d(()=>[e(r(x)),c[4]||=t(` Stelle ausschreiben`,-1)]),_:1})]),_:1})):h(``,!0)]),_:1}),V.postings.length?(l(),o(`div`,j,[a(`div`,M,[e(r(k),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>W.value=e,type:`search`,placeholder:`Stelle suchen …`,"aria-label":`Stellen durchsuchen`,class:`h-9 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm shadow-xs focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[g,W.value]])]),e(O,{modelValue:G.value,"onUpdate:modelValue":c[1]||=e=>G.value=e,options:V.filters.departments.map(e=>({value:e,label:e})),placeholder:`Alle Bereiche`,"aria-label":`Bereich`},null,8,[`modelValue`,`options`]),e(O,{modelValue:K.value,"onUpdate:modelValue":c[2]||=e=>K.value=e,options:V.filters.locations.map(e=>({value:e,label:e})),placeholder:`Alle Standorte`,"aria-label":`Standort`},null,8,[`modelValue`,`options`]),e(O,{modelValue:q.value,"onUpdate:modelValue":c[3]||=e=>q.value=e,options:V.filters.employments,placeholder:`Jeder Umfang`,"aria-label":`Umfang`},null,8,[`modelValue`,`options`])])):h(``,!0),Y.value.length?(l(),o(`ul`,N,[(l(!0),o(u,null,s(Y.value,n=>(l(),o(`li`,{key:n.id},[e(r(_),{href:n.url,class:`group flex items-start gap-4 rounded-lg border bg-card p-4 transition-shadow hover:shadow-md sm:p-5`},{default:d(()=>[a(`span`,P,[e(r(T),{class:`size-5`})]),a(`div`,F,[a(`div`,I,[a(`h2`,L,f(n.title),1),Z(n)?(l(),o(`span`,R,`Neu`)):h(``,!0),n.applied?(l(),o(`span`,z,[e(r(y),{class:`size-3`}),c[5]||=t(` Beworben`,-1)])):h(``,!0)]),e(A,{posting:n,class:`mt-1.5`},null,8,[`posting`])])]),_:2},1032,[`href`])]))),128))])):(l(),o(`div`,B,[e(C,{icon:r(T),title:X.value?`Keine passende Stelle`:`Derzeit keine offenen Stellen`,text:X.value?`Mit anderen Filtern gibt es vielleicht Treffer.`:`Neue Stellen erscheinen hier – Sie werden benachrichtigt.`},{default:d(()=>[X.value?(l(),p(r(E),{key:0,variant:`outline`,class:`mt-4`,onClick:Q},{default:d(()=>[...c[6]||=[t(`Filter zurücksetzen`,-1)]]),_:1})):h(``,!0)]),_:1},8,[`icon`,`title`,`text`])]))]),_:1}))}};export{V as default};
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as _,o as v}from"./dist--2OKCVzt.js";import{t as y}from"./circle-check-K9QH5jex.js";import{t as b}from"./file-user-hX13EGTA.js";import{t as x}from"./plus-CQwC4vy-.js";import{n as S}from"./lib-Be7KNAML.js";import{S as C,T as w,nn as T,p as E,w as D,y as O,yt as k}from"./app-BmJeQFgp.js";import{t as A}from"./JobFacts-CgNhDTtl.js";var j={key:0,class:`mb-6 grid gap-3 rounded-lg border bg-card p-3 sm:grid-cols-2 lg:grid-cols-[minmax(0,1.5fr)_repeat(3,minmax(0,1fr))]`},M={class:`relative`},N={key:1,class:`grid gap-3`},P={class:`hidden size-11 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text sm:grid`},F={class:`min-w-0 flex-1`},I={class:`flex flex-wrap items-center gap-2`},L={class:`text-base font-semibold break-words group-hover:underline`},R={key:0,class:`rounded-pill bg-brand px-2 py-0.5 text-[11px] font-semibold text-brand-foreground`},z={key:1,class:`inline-flex items-center gap-1 rounded-pill bg-emerald-100 px-2 py-0.5 text-[11px] font-semibold text-emerald-800 dark:bg-emerald-950 dark:text-emerald-300`},B={key:2,class:`rounded-lg border border-dashed bg-card`},V={__name:`Index`,props:{postings:{type:Array,required:!0},filters:{type:Object,required:!0},canManage:{type:Boolean,default:!1},myApplications:{type:Number,default:0}},setup(V){let H=V,U=v();n(()=>U.props.flash.status,e=>e&&S.success(e),{immediate:!0});let W=m(``),G=m(null),K=m(null),q=m(null),J=e=>String(e??``).toLocaleLowerCase(`de-DE`).normalize(`NFD`).replace(/[̀-ͯ]/g,``),Y=c(()=>H.postings.filter(e=>(!G.value||e.department===G.value)&&(!K.value||e.location===K.value)&&(!q.value||e.employment===q.value)&&(!W.value.trim()||J(`${e.title} ${e.department??``} ${e.location??``}`).includes(J(W.value.trim()))))),X=c(()=>W.value||G.value||K.value||q.value),Z=e=>Date.now()-new Date(e.published_at)<6048e5;function Q(){W.value=``,G.value=K.value=q.value=null}return(n,c)=>(l(),p(w,{title:`Stellen`},{default:d(()=>[e(D,{title:`Interne Stellen`,description:`Offene Stellen im Unternehmen – für Ihren nächsten Schritt.`},{actions:d(()=>[V.myApplications?(l(),p(r(E),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:d(()=>[e(r(_),{href:`/stellen/meine-bewerbungen`},{default:d(()=>[e(r(b)),t(` Meine Bewerbungen (`+f(V.myApplications)+`)`,1)]),_:1})]),_:1})):h(``,!0),V.canManage?(l(),p(r(E),{key:1,class:`h-10`,"as-child":``},{default:d(()=>[e(r(_),{href:`/redaktion/stellen/neu`},{default:d(()=>[e(r(x)),c[4]||=t(` Stelle ausschreiben`,-1)]),_:1})]),_:1})):h(``,!0)]),_:1}),V.postings.length?(l(),o(`div`,j,[a(`div`,M,[e(r(k),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>W.value=e,type:`search`,placeholder:`Stelle suchen …`,"aria-label":`Stellen durchsuchen`,class:`h-9 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm shadow-xs focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[g,W.value]])]),e(O,{modelValue:G.value,"onUpdate:modelValue":c[1]||=e=>G.value=e,options:V.filters.departments.map(e=>({value:e,label:e})),placeholder:`Alle Bereiche`,"aria-label":`Bereich`},null,8,[`modelValue`,`options`]),e(O,{modelValue:K.value,"onUpdate:modelValue":c[2]||=e=>K.value=e,options:V.filters.locations.map(e=>({value:e,label:e})),placeholder:`Alle Standorte`,"aria-label":`Standort`},null,8,[`modelValue`,`options`]),e(O,{modelValue:q.value,"onUpdate:modelValue":c[3]||=e=>q.value=e,options:V.filters.employments,placeholder:`Jeder Umfang`,"aria-label":`Umfang`},null,8,[`modelValue`,`options`])])):h(``,!0),Y.value.length?(l(),o(`ul`,N,[(l(!0),o(u,null,s(Y.value,n=>(l(),o(`li`,{key:n.id},[e(r(_),{href:n.url,class:`group flex items-start gap-4 rounded-lg border bg-card p-4 transition-shadow hover:shadow-md sm:p-5`},{default:d(()=>[a(`span`,P,[e(r(T),{class:`size-5`})]),a(`div`,F,[a(`div`,I,[a(`h2`,L,f(n.title),1),Z(n)?(l(),o(`span`,R,`Neu`)):h(``,!0),n.applied?(l(),o(`span`,z,[e(r(y),{class:`size-3`}),c[5]||=t(` Beworben`,-1)])):h(``,!0)]),e(A,{posting:n,class:`mt-1.5`},null,8,[`posting`])])]),_:2},1032,[`href`])]))),128))])):(l(),o(`div`,B,[e(C,{icon:r(T),title:X.value?`Keine passende Stelle`:`Derzeit keine offenen Stellen`,text:X.value?`Mit anderen Filtern gibt es vielleicht Treffer.`:`Neue Stellen erscheinen hier – Sie werden benachrichtigt.`},{default:d(()=>[X.value?(l(),p(r(E),{key:0,variant:`outline`,class:`mt-4`,onClick:Q},{default:d(()=>[...c[6]||=[t(`Filter zurücksetzen`,-1)]]),_:1})):h(``,!0)]),_:1},8,[`icon`,`title`,`text`])]))]),_:1}))}};export{V as default};

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,vn as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./plus-CQwC4vy-.js";import{S as g,T as _,Ut as v,Wt as y,Xt as b,p as x,w as S}from"./app-Ua4gL4AX.js";import{t as C}from"./NewPageDialog-BL_tjX9d.js";var w={key:0,class:`grid gap-5 md:grid-cols-2 xl:grid-cols-3`},T={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},E={class:`min-w-0 flex-1 truncate font-semibold`},D={key:0,class:`grid p-2`},O={class:`truncate`},k={key:0,class:`text-xs text-muted-foreground`},A={key:0,class:`px-3 py-1.5 text-[13px]`},j={key:1,class:`rounded-lg border bg-card`},M={__name:`Index`,props:{tree:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(M){let N=d(!1);return(d,P)=>(o(),u(_,{title:`Seiten`},{default:c(()=>[e(S,{title:`Seiten`,description:`Informationen der Bereiche, Abteilungen und Gremien.`},f({_:2},[M.canCreate?{name:`actions`,fn:c(()=>[e(n(x),{onClick:P[0]||=e=>N.value=!0},{default:c(()=>[e(n(h)),P[2]||=t(` Neue Seite`,-1)]),_:1})]),key:`0`}:void 0]),1024),M.tree.length?(o(),i(`div`,w,[(o(!0),i(s,null,a(M.tree,d=>(o(),i(`section`,{key:d.id,class:`rounded-lg border bg-card`},[e(n(m),{href:d.url,class:`flex items-center gap-3 border-b px-5 py-4 hover:bg-accent/50`},{default:c(()=>[r(`span`,T,[d.children.length?(o(),u(n(v),{key:0,class:`size-5`})):(o(),u(n(y),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(b),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`]),d.children.length?(o(),i(`ul`,D,[(o(!0),i(s,null,a(d.children.slice(0,8),t=>(o(),i(`li`,{key:t.id},[e(n(m),{href:t.url,class:`flex items-center justify-between rounded-md px-3 py-2 text-sm hover:bg-accent`},{default:c(()=>[r(`span`,O,l(t.title),1),t.children.length?(o(),i(`span`,k,l(t.children.length),1)):p(``,!0)]),_:2},1032,[`href`])]))),128)),d.children.length>8?(o(),i(`li`,A,[e(n(m),{href:d.url,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(`Alle `+l(d.children.length)+` Seiten`,1)]),_:2},1032,[`href`])])):p(``,!0)])):p(``,!0)]))),128))])):(o(),i(`div`,j,[e(g,{icon:n(y),title:`Noch keine Seiten`,text:`Hier erscheinen Seiten, sobald sie veröffentlicht sind.`},null,8,[`icon`])])),e(C,{open:N.value,"onUpdate:open":P[1]||=e=>N.value=e},null,8,[`open`])]),_:1}))}};export{M as default};
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./plus-CQwC4vy-.js";import{S as g,T as _,Ut as v,Wt as y,Xt as b,p as x,w as S}from"./app-BmJeQFgp.js";import{t as C}from"./NewPageDialog-Cslae3AX.js";var w={key:0,class:`grid gap-5 md:grid-cols-2 xl:grid-cols-3`},T={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},E={class:`min-w-0 flex-1 truncate font-semibold`},D={key:0,class:`grid p-2`},O={class:`truncate`},k={key:0,class:`text-xs text-muted-foreground`},A={key:0,class:`px-3 py-1.5 text-[13px]`},j={key:1,class:`rounded-lg border bg-card`},M={__name:`Index`,props:{tree:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(M){let N=d(!1);return(d,P)=>(o(),u(_,{title:`Seiten`},{default:c(()=>[e(S,{title:`Seiten`,description:`Informationen der Bereiche, Abteilungen und Gremien.`},f({_:2},[M.canCreate?{name:`actions`,fn:c(()=>[e(n(x),{onClick:P[0]||=e=>N.value=!0},{default:c(()=>[e(n(h)),P[2]||=t(` Neue Seite`,-1)]),_:1})]),key:`0`}:void 0]),1024),M.tree.length?(o(),i(`div`,w,[(o(!0),i(s,null,a(M.tree,d=>(o(),i(`section`,{key:d.id,class:`rounded-lg border bg-card`},[e(n(m),{href:d.url,class:`flex items-center gap-3 border-b px-5 py-4 hover:bg-accent/50`},{default:c(()=>[r(`span`,T,[d.children.length?(o(),u(n(v),{key:0,class:`size-5`})):(o(),u(n(y),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(b),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`]),d.children.length?(o(),i(`ul`,D,[(o(!0),i(s,null,a(d.children.slice(0,8),t=>(o(),i(`li`,{key:t.id},[e(n(m),{href:t.url,class:`flex items-center justify-between rounded-md px-3 py-2 text-sm hover:bg-accent`},{default:c(()=>[r(`span`,O,l(t.title),1),t.children.length?(o(),i(`span`,k,l(t.children.length),1)):p(``,!0)]),_:2},1032,[`href`])]))),128)),d.children.length>8?(o(),i(`li`,A,[e(n(m),{href:d.url,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(`Alle `+l(d.children.length)+` Seiten`,1)]),_:2},1032,[`href`])])):p(``,!0)])):p(``,!0)]))),128))])):(o(),i(`div`,j,[e(g,{icon:n(y),title:`Noch keine Seiten`,text:`Hier erscheinen Seiten, sobald sie veröffentlicht sind.`},null,8,[`icon`])])),e(C,{open:N.value,"onUpdate:open":P[1]||=e=>N.value=e},null,8,[`open`])]),_:1}))}};export{M as default};

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

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,2 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialEvents--ICGhwnQ.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/dist--2OKCVzt.js","assets/Presence-DEjNbTl8.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/createContext-CgVTZeqH.js","assets/useForwardExpose-CxX7fZdu.js","assets/Primitive-Bc3V858a.js","assets/plus-CQwC4vy-.js","assets/createLucideIcon-VlaMqNX_.js","assets/app-Ua4gL4AX.js","assets/preload-helper-CwIXHf_L.js","assets/info-ByKJSon9.js","assets/loader-circle-Wr6tQn-J.js","assets/PopoverTrigger-Cah311ye.js","assets/circle-check-K9QH5jex.js","assets/triangle-alert-DyO_Fk2w.js","assets/x-DU8daajy.js","assets/Teleport-gLFWhBwt.js","assets/getActiveElement-DWEoD8ZB.js","assets/nullish-DHihWhf5.js","assets/useDirection-DA6i3jxU.js","assets/useForwardPropsEmits-CXqK2gMN.js","assets/VisuallyHiddenInput-D_qpygwA.js","assets/usePrimitiveElement-CquXUboG.js","assets/dist-CZxP9TJf.js","assets/utils-DOQQTBMN.js","assets/lib-Be7KNAML.js","assets/DialogTitle-CJ4_uV5l.js","assets/RovingFocusGroup-Cc2A9ECP.js","assets/dist-DtZOZ5EL.js","assets/app-CrwRPFXP.css","assets/EventDateBlock-DbumSunf.js","assets/EditorialForms-CXIlo6wK.js","assets/download-K4OGj5k2.js","assets/pencil-line-5xb0u6Cg.js","assets/table-properties-DOd7BPqt.js","assets/EditorialNews-DRCzfYcx.js","assets/eye-Cklkscvg.js","assets/message-square-warning-Bf7QtZts.js","assets/EditorialPages-DDbrURBF.js","assets/lock-yku43otw.js","assets/NewPageDialog-BL_tjX9d.js","assets/EditorialSnippets-ChkScLFN.js","assets/component-5v7AiJbe.js","assets/file-stack-CDegUTxJ.js","assets/trash-CONUPzoz.js","assets/EditorialJobs-DuvPoqxZ.js","assets/EditorialMedia-oUyr0PWe.js","assets/image-off-BO5qjHGQ.js"])))=>i.map(i=>d[i]);
import{D as e,O as t,On as n,_ as r,b as i,bt as a,et as o,mt as s,o as c,qt as l,v as u,wt as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./preload-helper-CwIXHf_L.js";import{T as p,t as m,w as h}from"./app-Ua4gL4AX.js";var g={class:`grid grid-cols-1 items-start gap-6 xl:grid-cols-2`},_={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(_){let v=Object.assign({"../../../../plugins-core/events/resources/js/editorial/EditorialEvents.vue":()=>f(()=>import(`./EditorialEvents--ICGhwnQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32])),"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>f(()=>import(`./EditorialForms-CXIlo6wK.js`),__vite__mapDeps([33,1,2,3,4,5,6,7,34,9,35,8,36,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>f(()=>import(`./EditorialNews-DRCzfYcx.js`),__vite__mapDeps([37,1,2,3,4,5,6,7,38,9,39,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>f(()=>import(`./EditorialPages-DDbrURBF.js`),__vite__mapDeps([40,1,2,3,4,5,6,7,41,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,42])),"../../../../plugins-core/pages/resources/js/editorial/EditorialSnippets.vue":()=>f(()=>import(`./EditorialSnippets-ChkScLFN.js`),__vite__mapDeps([43,1,4,2,3,5,6,7,44,9,45,8,46,27,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31])),"../../../../plugins-core/stellen/resources/js/editorial/EditorialJobs.vue":()=>f(()=>import(`./EditorialJobs-DuvPoqxZ.js`),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))}),y={};for(let[e,n]of Object.entries(v)){let[,r]=e.match(/plugins-core\/([^/]+)\//);y[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}for(let[e,n]of Object.entries(Object.assign({"../../components/editorial/EditorialMedia.vue":()=>f(()=>import(`./EditorialMedia-oUyr0PWe.js`),__vite__mapDeps([48,1,2,3,4,5,6,7,49,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))})))y[`core::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n);return(t,f)=>(s(),u(p,{title:`Redaktion`},{default:l(()=>[e(h,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),r(`div`,g,[(s(!0),i(c,null,a(_.sections,e=>(s(),u(d(y[e.component]??n(m)(e.component,`editorial`)),o({key:e.key},{ref_for:!0},e.props,{class:`min-w-0`}),null,16))),128))])]),_:1}))}};export{_ as default};
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialEvents-ChGp8g73.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/dist--2OKCVzt.js","assets/Presence-DEjNbTl8.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/createContext-CgVTZeqH.js","assets/useForwardExpose-CxX7fZdu.js","assets/Primitive-Bc3V858a.js","assets/plus-CQwC4vy-.js","assets/createLucideIcon-VlaMqNX_.js","assets/app-BmJeQFgp.js","assets/preload-helper-CwIXHf_L.js","assets/info-ByKJSon9.js","assets/loader-circle-Wr6tQn-J.js","assets/PopoverTrigger-Cah311ye.js","assets/circle-check-K9QH5jex.js","assets/triangle-alert-DyO_Fk2w.js","assets/x-DU8daajy.js","assets/Teleport-gLFWhBwt.js","assets/getActiveElement-DWEoD8ZB.js","assets/nullish-DHihWhf5.js","assets/useDirection-DA6i3jxU.js","assets/useForwardPropsEmits-CXqK2gMN.js","assets/VisuallyHiddenInput-D_qpygwA.js","assets/usePrimitiveElement-CquXUboG.js","assets/dist-CZxP9TJf.js","assets/utils-DOQQTBMN.js","assets/lib-Be7KNAML.js","assets/DialogTitle-CJ4_uV5l.js","assets/RovingFocusGroup-Cc2A9ECP.js","assets/dist-DtZOZ5EL.js","assets/app-Uz5Lw6rG.css","assets/EventDateBlock-D5ZKEnSS.js","assets/EditorialForms-BYx7QcyG.js","assets/download-K4OGj5k2.js","assets/pencil-line-5xb0u6Cg.js","assets/table-properties-DOd7BPqt.js","assets/EditorialNews-BAM3QsfH.js","assets/eye-Cklkscvg.js","assets/message-square-warning-Bf7QtZts.js","assets/EditorialPages-DntKA8Up.js","assets/lock-yku43otw.js","assets/NewPageDialog-Cslae3AX.js","assets/EditorialSnippets-B74Ls32r.js","assets/component-5v7AiJbe.js","assets/file-stack-CDegUTxJ.js","assets/trash-CONUPzoz.js","assets/EditorialJobs-BtpNsSMV.js","assets/EditorialPolls-CmJitzkv.js","assets/EditorialMedia-sNqPnN8t.js","assets/image-off-BO5qjHGQ.js"])))=>i.map(i=>d[i]);
import{D as e,O as t,On as n,_ as r,b as i,bt as a,et as o,mt as s,o as c,qt as l,v as u,wt as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./preload-helper-CwIXHf_L.js";import{T as p,t as m,w as h}from"./app-BmJeQFgp.js";var g={class:`grid grid-cols-1 items-start gap-6 xl:grid-cols-2`},_={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(_){let v=Object.assign({"../../../../plugins-core/events/resources/js/editorial/EditorialEvents.vue":()=>f(()=>import(`./EditorialEvents-ChGp8g73.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32])),"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>f(()=>import(`./EditorialForms-BYx7QcyG.js`),__vite__mapDeps([33,1,2,3,4,5,6,7,34,9,35,8,36,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>f(()=>import(`./EditorialNews-BAM3QsfH.js`),__vite__mapDeps([37,1,2,3,4,5,6,7,38,9,39,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>f(()=>import(`./EditorialPages-DntKA8Up.js`),__vite__mapDeps([40,1,2,3,4,5,6,7,41,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,42])),"../../../../plugins-core/pages/resources/js/editorial/EditorialSnippets.vue":()=>f(()=>import(`./EditorialSnippets-B74Ls32r.js`),__vite__mapDeps([43,1,4,2,3,5,6,7,44,9,45,8,46,27,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31])),"../../../../plugins-core/stellen/resources/js/editorial/EditorialJobs.vue":()=>f(()=>import(`./EditorialJobs-BtpNsSMV.js`),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),"../../../../plugins-core/umfragen/resources/js/editorial/EditorialPolls.vue":()=>f(()=>import(`./EditorialPolls-CmJitzkv.js`),__vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))}),y={};for(let[e,n]of Object.entries(v)){let[,r]=e.match(/plugins-core\/([^/]+)\//);y[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}for(let[e,n]of Object.entries(Object.assign({"../../components/editorial/EditorialMedia.vue":()=>f(()=>import(`./EditorialMedia-sNqPnN8t.js`),__vite__mapDeps([49,1,2,3,4,5,6,7,50,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))})))y[`core::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n);return(t,f)=>(s(),u(p,{title:`Redaktion`},{default:l(()=>[e(h,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),r(`div`,g,[(s(!0),i(c,null,a(_.sections,e=>(s(),u(d(y[e.component]??n(m)(e.component,`editorial`)),o({key:e.key},{ref_for:!0},e.props,{class:`min-w-0`}),null,16))),128))])]),_:1}))}};export{_ as default};

View file

@ -1 +1 @@
import{D as e,E as t,On as n,b as r,mt as i,tr as a,y as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./calendar-clock-DpH3ndNA.js";import{F as c,Kt as l,Ot as u,tn as d}from"./app-Ua4gL4AX.js";var f={class:`flex flex-wrap items-center gap-x-4 gap-y-1 text-[13px] text-muted-foreground`},p={key:0,class:`inline-flex items-center gap-1.5`},m={key:1,class:`inline-flex items-center gap-1.5`},h={key:2,class:`inline-flex items-center gap-1.5`},g={key:3,class:`inline-flex items-center gap-1.5`},_={__name:`JobFacts`,props:{posting:{type:Object,required:!0}},setup(_){return(v,y)=>(i(),r(`p`,f,[_.posting.department?(i(),r(`span`,p,[e(n(d),{class:`size-3.5`}),t(` `+a(_.posting.department),1)])):o(``,!0),_.posting.location?(i(),r(`span`,m,[e(n(u),{class:`size-3.5`}),t(` `+a(_.posting.location),1)])):o(``,!0),_.posting.summary?(i(),r(`span`,h,[e(n(l),{class:`size-3.5`}),t(` `+a(_.posting.summary),1)])):o(``,!0),_.posting.deadline?(i(),r(`span`,g,[e(n(s),{class:`size-3.5`}),t(` Bewerbung bis `+a(n(c)(_.posting.deadline)),1)])):o(``,!0)]))}};export{_ as t};
import{D as e,E as t,On as n,b as r,mt as i,tr as a,y as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./calendar-clock-DpH3ndNA.js";import{F as c,Kt as l,Ot as u,tn as d}from"./app-BmJeQFgp.js";var f={class:`flex flex-wrap items-center gap-x-4 gap-y-1 text-[13px] text-muted-foreground`},p={key:0,class:`inline-flex items-center gap-1.5`},m={key:1,class:`inline-flex items-center gap-1.5`},h={key:2,class:`inline-flex items-center gap-1.5`},g={key:3,class:`inline-flex items-center gap-1.5`},_={__name:`JobFacts`,props:{posting:{type:Object,required:!0}},setup(_){return(v,y)=>(i(),r(`p`,f,[_.posting.department?(i(),r(`span`,p,[e(n(d),{class:`size-3.5`}),t(` `+a(_.posting.department),1)])):o(``,!0),_.posting.location?(i(),r(`span`,m,[e(n(u),{class:`size-3.5`}),t(` `+a(_.posting.location),1)])):o(``,!0),_.posting.summary?(i(),r(`span`,h,[e(n(l),{class:`size-3.5`}),t(` `+a(_.posting.summary),1)])):o(``,!0),_.posting.deadline?(i(),r(`span`,g,[e(n(s),{class:`size-3.5`}),t(` Bewerbung bis `+a(n(c)(_.posting.deadline)),1)])):o(``,!0)]))}};export{_ as t};

View file

@ -1 +1 @@
import{On as e,Zn as t,b as n,bt as r,mt as i,o as a,qt as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as l,S as u,wt as d}from"./app-Ua4gL4AX.js";import{t as f}from"./NewsListItem-C2-NjDeq.js";var p={key:0,href:`/redaktion/neuigkeiten/neu`,class:`mt-4 text-sm font-medium text-brand-text hover:underline`},m={__name:`Latest`,props:{posts:{type:Array,required:!0},canWrite:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},setup(m){return(h,g)=>(i(),s(l,{title:`Neuigkeiten`,"action-label":`Alle anzeigen`,"action-href":`/neuigkeiten`},{default:o(()=>[m.posts.length?(i(),n(`div`,{key:0,class:t([`-my-3 divide-y`,{"sm:grid sm:grid-cols-2 sm:gap-x-6 sm:divide-y-0":m.wide}])},[(i(!0),n(a,null,r(m.posts,e=>(i(),s(f,{key:e.id,post:e},null,8,[`post`]))),128))],2)):(i(),s(u,{key:1,icon:e(d),title:`Noch keine Neuigkeiten`,text:`Sobald Beiträge veröffentlicht sind, erscheinen sie hier.`},{default:o(()=>[m.canWrite?(i(),n(`a`,p,`Ersten Beitrag schreiben`)):c(``,!0)]),_:1},8,[`icon`]))]),_:1}))}};export{m as default};
import{On as e,Zn as t,b as n,bt as r,mt as i,o as a,qt as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as l,S as u,wt as d}from"./app-BmJeQFgp.js";import{t as f}from"./NewsListItem-4D8xu_ZV.js";var p={key:0,href:`/redaktion/neuigkeiten/neu`,class:`mt-4 text-sm font-medium text-brand-text hover:underline`},m={__name:`Latest`,props:{posts:{type:Array,required:!0},canWrite:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},setup(m){return(h,g)=>(i(),s(l,{title:`Neuigkeiten`,"action-label":`Alle anzeigen`,"action-href":`/neuigkeiten`},{default:o(()=>[m.posts.length?(i(),n(`div`,{key:0,class:t([`-my-3 divide-y`,{"sm:grid sm:grid-cols-2 sm:gap-x-6 sm:divide-y-0":m.wide}])},[(i(!0),n(a,null,r(m.posts,e=>(i(),s(f,{key:e.id,post:e},null,8,[`post`]))),128))],2)):(i(),s(u,{key:1,icon:e(d),title:`Noch keine Neuigkeiten`,text:`Sobald Beiträge veröffentlicht sind, erscheinen sie hier.`},{default:o(()=>[m.canWrite?(i(),n(`a`,p,`Ersten Beitrag schreiben`)):c(``,!0)]),_:1},8,[`icon`]))]),_:1}))}};export{m as default};

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,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{F as h,Xt as g,an as _}from"./app-Ua4gL4AX.js";import{n as v,t as y}from"./NewsImage-YDdR7GrT.js";import{t as b}from"./NewsCard-CKsK8E8E.js";import{t as x}from"./NewsListItem-C2-NjDeq.js";var S={key:0,class:`mb-4 flex items-center justify-between gap-4`},C={key:0,class:`text-lg font-semibold`},w={key:1,class:`grid gap-6 @3xl:grid-cols-3`},T={class:`min-w-0`},E={class:`mt-1 line-clamp-2 text-base leading-snug font-semibold group-hover:underline`},D={key:0,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`},O={class:`mt-1.5 text-xs text-muted-foreground`},k={key:2,class:`grid gap-4`},A={class:`mt-1 line-clamp-2 text-lg leading-snug font-semibold group-hover:underline`},j={key:0,class:`mt-1 line-clamp-3 text-sm text-muted-foreground`},M={key:1,class:`divide-y border-t`},N={key:3,class:`divide-y rounded-lg border bg-card px-4`},P={key:4,class:`grid gap-5 @xl:grid-cols-2 @4xl:grid-cols-3`},F={key:5,class:`text-sm text-muted-foreground`},I={__name:`LatestNews`,props:{block:{type:Object,required:!0}},setup(I){let L=I,R=s(()=>L.block.props?.posts??[]),z=s(()=>L.block.data.layout??`cards`),B=s(()=>[`large`,`featured`].includes(z.value)),V=s(()=>L.block.data.more_label??`Alle anzeigen`);return(s,L)=>(c(),a(`section`,{class:r(B.value?`@container rounded-lg border bg-card p-5`:``)},[I.block.data.title||!B.value&&V.value?(c(),a(`div`,S,[I.block.data.title?(c(),a(`h3`,C,d(I.block.data.title),1)):p(``,!0),!B.value&&V.value&&I.block.props?.more_url?(c(),f(n(m),{key:1,href:I.block.props.more_url,class:`inline-flex shrink-0 items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:u(()=>[t(d(V.value)+` `,1),e(n(g),{class:`size-3.5`})]),_:1},8,[`href`])):p(``,!0)])):p(``,!0),z.value===`large`?(c(),a(`div`,w,[(c(!0),a(l,null,o(R.value,t=>(c(),f(n(m),{key:t.id,href:`/neuigkeiten/${t.slug}`,class:`group grid content-start gap-3`},{default:u(()=>[e(y,{src:t.cover_url??t.thumb_url,alt:t.title,class:`rounded-md`},null,8,[`src`,`alt`]),i(`div`,T,[e(v,{category:t.category},null,8,[`category`]),i(`h4`,E,d(t.title),1),t.teaser?(c(),a(`p`,D,d(t.teaser),1)):p(``,!0),i(`p`,O,d(n(h)(t.published_at)),1)])]),_:2},1032,[`href`]))),128))])):z.value===`featured`?(c(),a(`div`,k,[R.value[0]?(c(),f(n(m),{key:0,href:`/neuigkeiten/${R.value[0].slug}`,class:`group grid content-start gap-3`},{default:u(()=>[e(y,{src:R.value[0].cover_url??R.value[0].thumb_url,alt:R.value[0].title,class:`rounded-md`},null,8,[`src`,`alt`]),i(`div`,null,[e(v,{category:R.value[0].category},null,8,[`category`]),i(`h4`,A,d(R.value[0].title),1),R.value[0].teaser?(c(),a(`p`,j,d(R.value[0].teaser),1)):p(``,!0)])]),_:1},8,[`href`])):p(``,!0),R.value.length>1?(c(),a(`div`,M,[(c(!0),a(l,null,o(R.value.slice(1),e=>(c(),f(x,{key:e.id,post:e},null,8,[`post`]))),128))])):p(``,!0)])):z.value===`list`?(c(),a(`div`,N,[(c(!0),a(l,null,o(R.value,e=>(c(),f(x,{key:e.id,post:e},null,8,[`post`]))),128))])):(c(),a(`div`,P,[(c(!0),a(l,null,o(R.value,e=>(c(),f(b,{key:e.id,post:e},null,8,[`post`]))),128))])),R.value.length?p(``,!0):(c(),a(`p`,F,`Keine Beiträge.`)),B.value&&V.value&&I.block.props?.more_url?(c(),f(n(m),{key:6,href:I.block.props.more_url,class:`mt-5 inline-flex items-center gap-1.5 text-sm font-medium text-brand-text hover:underline`},{default:u(()=>[t(d(V.value)+` `,1),e(n(_),{class:`size-4`})]),_:1},8,[`href`])):p(``,!0)],2))}};export{I as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{F as h,Xt as g,an as _}from"./app-BmJeQFgp.js";import{n as v,t as y}from"./NewsImage-Ck68SAnP.js";import{t as b}from"./NewsCard-DCf1bpMr.js";import{t as x}from"./NewsListItem-4D8xu_ZV.js";var S={key:0,class:`mb-4 flex items-center justify-between gap-4`},C={key:0,class:`text-lg font-semibold`},w={key:1,class:`grid gap-6 @3xl:grid-cols-3`},T={class:`min-w-0`},E={class:`mt-1 line-clamp-2 text-base leading-snug font-semibold group-hover:underline`},D={key:0,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`},O={class:`mt-1.5 text-xs text-muted-foreground`},k={key:2,class:`grid gap-4`},A={class:`mt-1 line-clamp-2 text-lg leading-snug font-semibold group-hover:underline`},j={key:0,class:`mt-1 line-clamp-3 text-sm text-muted-foreground`},M={key:1,class:`divide-y border-t`},N={key:3,class:`divide-y rounded-lg border bg-card px-4`},P={key:4,class:`grid gap-5 @xl:grid-cols-2 @4xl:grid-cols-3`},F={key:5,class:`text-sm text-muted-foreground`},I={__name:`LatestNews`,props:{block:{type:Object,required:!0}},setup(I){let L=I,R=s(()=>L.block.props?.posts??[]),z=s(()=>L.block.data.layout??`cards`),B=s(()=>[`large`,`featured`].includes(z.value)),V=s(()=>L.block.data.more_label??`Alle anzeigen`);return(s,L)=>(c(),a(`section`,{class:r(B.value?`@container rounded-lg border bg-card p-5`:``)},[I.block.data.title||!B.value&&V.value?(c(),a(`div`,S,[I.block.data.title?(c(),a(`h3`,C,d(I.block.data.title),1)):p(``,!0),!B.value&&V.value&&I.block.props?.more_url?(c(),f(n(m),{key:1,href:I.block.props.more_url,class:`inline-flex shrink-0 items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:u(()=>[t(d(V.value)+` `,1),e(n(g),{class:`size-3.5`})]),_:1},8,[`href`])):p(``,!0)])):p(``,!0),z.value===`large`?(c(),a(`div`,w,[(c(!0),a(l,null,o(R.value,t=>(c(),f(n(m),{key:t.id,href:`/neuigkeiten/${t.slug}`,class:`group grid content-start gap-3`},{default:u(()=>[e(y,{src:t.cover_url??t.thumb_url,alt:t.title,class:`rounded-md`},null,8,[`src`,`alt`]),i(`div`,T,[e(v,{category:t.category},null,8,[`category`]),i(`h4`,E,d(t.title),1),t.teaser?(c(),a(`p`,D,d(t.teaser),1)):p(``,!0),i(`p`,O,d(n(h)(t.published_at)),1)])]),_:2},1032,[`href`]))),128))])):z.value===`featured`?(c(),a(`div`,k,[R.value[0]?(c(),f(n(m),{key:0,href:`/neuigkeiten/${R.value[0].slug}`,class:`group grid content-start gap-3`},{default:u(()=>[e(y,{src:R.value[0].cover_url??R.value[0].thumb_url,alt:R.value[0].title,class:`rounded-md`},null,8,[`src`,`alt`]),i(`div`,null,[e(v,{category:R.value[0].category},null,8,[`category`]),i(`h4`,A,d(R.value[0].title),1),R.value[0].teaser?(c(),a(`p`,j,d(R.value[0].teaser),1)):p(``,!0)])]),_:1},8,[`href`])):p(``,!0),R.value.length>1?(c(),a(`div`,M,[(c(!0),a(l,null,o(R.value.slice(1),e=>(c(),f(x,{key:e.id,post:e},null,8,[`post`]))),128))])):p(``,!0)])):z.value===`list`?(c(),a(`div`,N,[(c(!0),a(l,null,o(R.value,e=>(c(),f(x,{key:e.id,post:e},null,8,[`post`]))),128))])):(c(),a(`div`,P,[(c(!0),a(l,null,o(R.value,e=>(c(),f(b,{key:e.id,post:e},null,8,[`post`]))),128))])),R.value.length?p(``,!0):(c(),a(`p`,F,`Keine Beiträge.`)),B.value&&V.value&&I.block.props?.more_url?(c(),f(n(m),{key:6,href:I.block.props.more_url,class:`mt-5 inline-flex items-center gap-1.5 text-sm font-medium text-brand-text hover:underline`},{default:u(()=>[t(d(V.value)+` `,1),e(n(_),{class:`size-4`})]),_:1},8,[`href`])):p(``,!0)],2))}};export{I as default};

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,vn as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as m,i as h}from"./dist--2OKCVzt.js";import{t as g}from"./eye-off-CneL5LCR.js";import{t as _}from"./eye-Cklkscvg.js";import{t as v}from"./loader-circle-Wr6tQn-J.js";import{It as y,_t as b,b as x,d as S,l as C,p as w,tn as T,x as E}from"./app-Ua4gL4AX.js";import{t as D}from"./GuestLayout-Bjw1wrL4.js";var O={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},k={key:1,class:`mb-6 rounded-md border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm text-destructive`,role:`alert`},A={key:2,class:`mb-6 grid gap-3`},j=[`href`],M={key:0,class:`size-[18px]`,viewBox:`0 0 21 21`,"aria-hidden":`true`},N={class:`relative`},P=[`aria-label`],F={class:`flex items-center justify-between`},I={__name:`Login`,props:{canResetPassword:{type:Boolean,default:!1},status:{type:String,default:null},providers:{type:Array,default:()=>[]},identityError:{type:String,default:null},preview:{type:Boolean,default:!1}},setup(I){let L=I,R=d(!1),z=m({email:``,password:``,remember:!1});function B(){L.preview||z.post(`/login`,{onFinish:()=>z.reset(`password`)})}return(d,m)=>(o(),u(D,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:c(()=>[I.status?(o(),i(`div`,O,l(I.status),1)):f(``,!0),I.identityError?(o(),i(`div`,k,l(I.identityError),1)):f(``,!0),I.providers.length?(o(),i(`div`,A,[(o(!0),i(s,null,a(I.providers,e=>(o(),i(`a`,{key:e.slug,href:`/auth/${e.slug}/redirect`,class:`inline-flex h-11 items-center justify-center gap-3 rounded-md border border-input bg-card px-4 text-sm font-medium shadow-xs transition-colors hover:bg-accent`},[e.type===`entra`?(o(),i(`svg`,M,[...m[4]||=[r(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),r(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),r(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),r(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(o(),u(n(T),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(o(),u(n(b),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(o(),u(n(y),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),t(` `+l(e.label),1)],8,j))),128)),m[5]||=r(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[r(`span`,{class:`h-px flex-1 bg-border`}),t(` oder mit E-Mail und Passwort `),r(`span`,{class:`h-px flex-1 bg-border`})],-1)])):f(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:p(B,[`prevent`])},[e(x,{id:`email`,label:`E-Mail-Adresse`,error:n(z).errors.email},{default:c(()=>[e(n(S),{id:`email`,modelValue:n(z).email,"onUpdate:modelValue":m[0]||=e=>n(z).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!n(z).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),e(x,{id:`password`,label:`Passwort`,error:n(z).errors.password},{default:c(()=>[r(`div`,N,[e(n(S),{id:`password`,modelValue:n(z).password,"onUpdate:modelValue":m[1]||=e=>n(z).password=e,type:R.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(z).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":R.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:m[2]||=e=>R.value=!R.value},[R.value?(o(),u(n(g),{key:0,class:`size-4`})):(o(),u(n(_),{key:1,class:`size-4`}))],8,P)])]),_:1},8,[`error`]),r(`div`,F,[e(n(E),{class:`flex items-center gap-2 text-sm font-normal`},{default:c(()=>[e(n(C),{modelValue:n(z).remember,"onUpdate:modelValue":m[3]||=e=>n(z).remember=e},null,8,[`modelValue`]),m[6]||=t(` Angemeldet bleiben `,-1)]),_:1}),I.canResetPassword?(o(),u(n(h),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:c(()=>[...m[7]||=[t(` Passwort vergessen? `,-1)]]),_:1})):f(``,!0)]),e(n(w),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(z).processing},{default:c(()=>[n(z).processing?(o(),u(n(v),{key:0,class:`animate-spin`})):f(``,!0),m[8]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{I as default};
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as m,i as h}from"./dist--2OKCVzt.js";import{t as g}from"./eye-off-CneL5LCR.js";import{t as _}from"./eye-Cklkscvg.js";import{t as v}from"./loader-circle-Wr6tQn-J.js";import{It as y,_t as b,b as x,d as S,l as C,p as w,tn as T,x as E}from"./app-BmJeQFgp.js";import{t as D}from"./GuestLayout-B6JV21dP.js";var O={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},k={key:1,class:`mb-6 rounded-md border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm text-destructive`,role:`alert`},A={key:2,class:`mb-6 grid gap-3`},j=[`href`],M={key:0,class:`size-[18px]`,viewBox:`0 0 21 21`,"aria-hidden":`true`},N={class:`relative`},P=[`aria-label`],F={class:`flex items-center justify-between`},I={__name:`Login`,props:{canResetPassword:{type:Boolean,default:!1},status:{type:String,default:null},providers:{type:Array,default:()=>[]},identityError:{type:String,default:null},preview:{type:Boolean,default:!1}},setup(I){let L=I,R=d(!1),z=m({email:``,password:``,remember:!1});function B(){L.preview||z.post(`/login`,{onFinish:()=>z.reset(`password`)})}return(d,m)=>(o(),u(D,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:c(()=>[I.status?(o(),i(`div`,O,l(I.status),1)):f(``,!0),I.identityError?(o(),i(`div`,k,l(I.identityError),1)):f(``,!0),I.providers.length?(o(),i(`div`,A,[(o(!0),i(s,null,a(I.providers,e=>(o(),i(`a`,{key:e.slug,href:`/auth/${e.slug}/redirect`,class:`inline-flex h-11 items-center justify-center gap-3 rounded-md border border-input bg-card px-4 text-sm font-medium shadow-xs transition-colors hover:bg-accent`},[e.type===`entra`?(o(),i(`svg`,M,[...m[4]||=[r(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),r(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),r(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),r(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(o(),u(n(T),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(o(),u(n(b),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(o(),u(n(y),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),t(` `+l(e.label),1)],8,j))),128)),m[5]||=r(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[r(`span`,{class:`h-px flex-1 bg-border`}),t(` oder mit E-Mail und Passwort `),r(`span`,{class:`h-px flex-1 bg-border`})],-1)])):f(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:p(B,[`prevent`])},[e(x,{id:`email`,label:`E-Mail-Adresse`,error:n(z).errors.email},{default:c(()=>[e(n(S),{id:`email`,modelValue:n(z).email,"onUpdate:modelValue":m[0]||=e=>n(z).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!n(z).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),e(x,{id:`password`,label:`Passwort`,error:n(z).errors.password},{default:c(()=>[r(`div`,N,[e(n(S),{id:`password`,modelValue:n(z).password,"onUpdate:modelValue":m[1]||=e=>n(z).password=e,type:R.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(z).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":R.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:m[2]||=e=>R.value=!R.value},[R.value?(o(),u(n(g),{key:0,class:`size-4`})):(o(),u(n(_),{key:1,class:`size-4`}))],8,P)])]),_:1},8,[`error`]),r(`div`,F,[e(n(E),{class:`flex items-center gap-2 text-sm font-normal`},{default:c(()=>[e(n(C),{modelValue:n(z).remember,"onUpdate:modelValue":m[3]||=e=>n(z).remember=e},null,8,[`modelValue`]),m[6]||=t(` Angemeldet bleiben `,-1)]),_:1}),I.canResetPassword?(o(),u(n(h),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:c(()=>[...m[7]||=[t(` Passwort vergessen? `,-1)]]),_:1})):f(``,!0)]),e(n(w),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(z).processing},{default:c(()=>[n(z).processing?(o(),u(n(v),{key:0,class:`animate-spin`})):f(``,!0),m[8]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{I as default};

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,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p,s as m}from"./dist--2OKCVzt.js";import{t as h}from"./file-user-hX13EGTA.js";import{F as g,S as _,T as v,p as y,w as b}from"./app-Ua4gL4AX.js";var x={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},S={class:`min-w-0 flex-1`},C={class:`text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border border-dashed bg-card`},T={__name:`Mine`,props:{applications:{type:Array,required:!0}},setup(T){let E={received:`bg-muted text-muted-foreground`,review:`bg-brand-soft text-brand-soft-foreground`,interview:`bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-300`,closed:`bg-muted text-muted-foreground`};function D(e){window.confirm(`Bewerbung zurückziehen? Nachricht und Unterlagen werden gelöscht.`)&&m.delete(`/stellen/bewerbungen/${e.id}`,{preserveScroll:!0})}return(m,O)=>(s(),d(v,{title:`Meine Bewerbungen`},{default:l(()=>[e(b,{title:`Meine Bewerbungen`,description:`Nur Sie und die zuständigen Personen sehen diese Bewerbungen.`,breadcrumbs:[{label:`Stellen`,href:`/stellen`}]}),T.applications.length?(s(),a(`ul`,x,[(s(!0),a(c,null,o(T.applications,o=>(s(),a(`li`,{key:o.id,class:`flex flex-wrap items-center gap-x-4 gap-y-2 px-5 py-4`},[i(`div`,S,[e(n(p),{href:o.posting.url,class:`font-medium hover:underline`},{default:l(()=>[t(u(o.posting.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(`Beworben am `+u(n(g)(o.created_at)),1),o.file?(s(),a(c,{key:0},[t(` · `+u(o.file.name),1)],64)):f(``,!0)])]),i(`span`,{class:r([`rounded-pill px-2.5 py-0.5 text-xs font-medium`,E[o.status]])},u(o.status_label),3),o.status===`received`?(s(),d(n(y),{key:0,size:`sm`,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:e=>D(o)},{default:l(()=>[...O[0]||=[t(`Zurückziehen`,-1)]]),_:1},8,[`onClick`])):f(``,!0)]))),128))])):(s(),a(`div`,w,[e(_,{icon:n(h),title:`Noch keine Bewerbungen`,text:`Offene Stellen finden Sie unter „Stellen“.`},null,8,[`icon`])]))]),_:1}))}};export{T as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p,s as m}from"./dist--2OKCVzt.js";import{t as h}from"./file-user-hX13EGTA.js";import{F as g,S as _,T as v,p as y,w as b}from"./app-BmJeQFgp.js";var x={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},S={class:`min-w-0 flex-1`},C={class:`text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border border-dashed bg-card`},T={__name:`Mine`,props:{applications:{type:Array,required:!0}},setup(T){let E={received:`bg-muted text-muted-foreground`,review:`bg-brand-soft text-brand-soft-foreground`,interview:`bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-300`,closed:`bg-muted text-muted-foreground`};function D(e){window.confirm(`Bewerbung zurückziehen? Nachricht und Unterlagen werden gelöscht.`)&&m.delete(`/stellen/bewerbungen/${e.id}`,{preserveScroll:!0})}return(m,O)=>(s(),d(v,{title:`Meine Bewerbungen`},{default:l(()=>[e(b,{title:`Meine Bewerbungen`,description:`Nur Sie und die zuständigen Personen sehen diese Bewerbungen.`,breadcrumbs:[{label:`Stellen`,href:`/stellen`}]}),T.applications.length?(s(),a(`ul`,x,[(s(!0),a(c,null,o(T.applications,o=>(s(),a(`li`,{key:o.id,class:`flex flex-wrap items-center gap-x-4 gap-y-2 px-5 py-4`},[i(`div`,S,[e(n(p),{href:o.posting.url,class:`font-medium hover:underline`},{default:l(()=>[t(u(o.posting.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(`Beworben am `+u(n(g)(o.created_at)),1),o.file?(s(),a(c,{key:0},[t(` · `+u(o.file.name),1)],64)):f(``,!0)])]),i(`span`,{class:r([`rounded-pill px-2.5 py-0.5 text-xs font-medium`,E[o.status]])},u(o.status_label),3),o.status===`received`?(s(),d(n(y),{key:0,size:`sm`,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:e=>D(o)},{default:l(()=>[...O[0]||=[t(`Zurückziehen`,-1)]]),_:1},8,[`onClick`])):f(``,!0)]))),128))])):(s(),a(`div`,w,[e(_,{icon:n(h),title:`Noch keine Bewerbungen`,text:`Offene Stellen finden Sie unter „Stellen“.`},null,8,[`icon`])]))]),_:1}))}};export{T as default};

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,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{C as p,D as m,ht as h}from"./app-Ua4gL4AX.js";var g={key:0,class:`-my-1.5 grid gap-0.5`},_=[`href`],v={class:`min-w-0 flex-1 truncate text-sm`},y={__name:`MyDownloads`,props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]}},setup(y){let b=y,x=b.favorites.length?b.favorites:b.popular;return(b,S)=>(s(),d(p,{title:y.favorites.length?`Meine Downloads`:`Häufig genutzt`,"action-label":`Alle Downloads`,"action-href":`/downloads`},{default:l(()=>[n(x).length?(s(),a(`ul`,g,[(s(!0),a(c,null,o(n(x),t=>(s(),a(`li`,{key:t.id},[i(`a`,{href:t.download_url,class:`-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(m,{extension:t.extension,size:`sm`},null,8,[`extension`]),i(`span`,v,u(t.title),1)],8,_)]))),128))])):f(``,!0),y.favorites.length?f(``,!0):(s(),a(`p`,{key:1,class:r([`text-[13px] text-muted-foreground`,{"mt-3 border-t pt-3":n(x).length}])},[e(n(h),{class:`-mt-0.5 mr-1 inline size-3.5`}),S[0]||=t(`Mit dem Stern unter „Downloads“ merken Sie sich Dateien für diese Kachel. `,-1)],2))]),_:1},8,[`title`]))}};export{y as default};
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as p,D as m,ht as h}from"./app-BmJeQFgp.js";var g={key:0,class:`-my-1.5 grid gap-0.5`},_=[`href`],v={class:`min-w-0 flex-1 truncate text-sm`},y={__name:`MyDownloads`,props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]}},setup(y){let b=y,x=b.favorites.length?b.favorites:b.popular;return(b,S)=>(s(),d(p,{title:y.favorites.length?`Meine Downloads`:`Häufig genutzt`,"action-label":`Alle Downloads`,"action-href":`/downloads`},{default:l(()=>[n(x).length?(s(),a(`ul`,g,[(s(!0),a(c,null,o(n(x),t=>(s(),a(`li`,{key:t.id},[i(`a`,{href:t.download_url,class:`-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(m,{extension:t.extension,size:`sm`},null,8,[`extension`]),i(`span`,v,u(t.title),1)],8,_)]))),128))])):f(``,!0),y.favorites.length?f(``,!0):(s(),a(`p`,{key:1,class:r([`text-[13px] text-muted-foreground`,{"mt-3 border-t pt-3":n(x).length}])},[e(n(h),{class:`-mt-0.5 mr-1 inline size-3.5`}),S[0]||=t(`Mit dem Stern unter „Downloads“ merken Sie sich Dateien für diese Kachel. `,-1)],2))]),_:1},8,[`title`]))}};export{y as default};

View file

@ -1 +1 @@
import{D as e,E as t,On as n,_ as r,b as i,bt as a,ct as o,mt as s,o as c,qt as l,tr as u,v as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./calendar-clock-DpH3ndNA.js";import{n as g,t as _}from"./message-square-plus-3BKsmzEu.js";import{C as v,c as y,z as b}from"./app-Ua4gL4AX.js";var x={key:0,class:`grid grid-cols-2 gap-2`},S={class:`grid grid-cols-2 gap-2`},C={class:`block text-xl font-semibold tabular-nums`},w={class:`flex items-center gap-1 text-xs text-muted-foreground`},T={class:`block text-xl font-semibold tabular-nums`},E={class:`flex items-center gap-1 text-xs text-muted-foreground`},D={key:0,class:`mt-3 grid min-w-0 grid-cols-1 gap-0.5`},O={class:`min-w-0 truncate`},k={class:`max-w-[45%] shrink-0 truncate text-[11px] text-muted-foreground`},A={key:2,class:`text-[13px] text-muted-foreground`},j={__name:`MyIt`,setup(j){let M=f(null),N=f(!1);return o(async()=>{try{M.value=await b.get(`/it-service/uebersicht`)}catch{N.value=!0}}),(o,f)=>(s(),d(v,{title:`Meine IT`,"action-label":`Öffnen`,"action-href":`/it-service`},{default:l(()=>[!M.value&&!N.value?(s(),i(`div`,x,[e(n(y),{class:`h-16`}),e(n(y),{class:`h-16`})])):M.value?(s(),i(c,{key:1},[r(`div`,S,[e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,C,u(M.value.open_tickets),1),r(`span`,w,[e(n(g),{class:`size-3.5`}),f[0]||=t(` offene Tickets`,-1)])]),_:1}),e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,T,u(M.value.loans),1),r(`span`,E,[e(n(h),{class:`size-3.5`}),f[1]||=t(` Ausleihen`,-1)])]),_:1})]),M.value.latest.length?(s(),i(`ul`,D,[(s(!0),i(c,null,a(M.value.latest,t=>(s(),i(`li`,{key:t.id},[e(n(m),{href:`/it-service/tickets/${t.id}`,class:`flex min-w-0 items-center justify-between gap-2 rounded px-1 py-1 text-[13px] hover:bg-accent`,title:t.subject},{default:l(()=>[r(`span`,O,u(t.subject),1),r(`span`,k,u(t.status_label),1)]),_:2},1032,[`href`,`title`])]))),128))])):p(``,!0)],64)):(s(),i(`p`,A,`Der IT-Service ist gerade nicht erreichbar.`)),e(n(m),{href:`/it-service/tickets/neu`,class:`mt-3 flex items-center gap-1.5 border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:l(()=>[e(n(_),{class:`size-4`}),f[2]||=t(` IT-Problem melden `,-1)]),_:1})]),_:1}))}};export{j as default};
import{D as e,E as t,On as n,_ as r,b as i,bt as a,ct as o,mt as s,o as c,qt as l,tr as u,v as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as m}from"./dist--2OKCVzt.js";import{t as h}from"./calendar-clock-DpH3ndNA.js";import{n as g,t as _}from"./message-square-plus-3BKsmzEu.js";import{C as v,c as y,z as b}from"./app-BmJeQFgp.js";var x={key:0,class:`grid grid-cols-2 gap-2`},S={class:`grid grid-cols-2 gap-2`},C={class:`block text-xl font-semibold tabular-nums`},w={class:`flex items-center gap-1 text-xs text-muted-foreground`},T={class:`block text-xl font-semibold tabular-nums`},E={class:`flex items-center gap-1 text-xs text-muted-foreground`},D={key:0,class:`mt-3 grid min-w-0 grid-cols-1 gap-0.5`},O={class:`min-w-0 truncate`},k={class:`max-w-[45%] shrink-0 truncate text-[11px] text-muted-foreground`},A={key:2,class:`text-[13px] text-muted-foreground`},j={__name:`MyIt`,setup(j){let M=f(null),N=f(!1);return o(async()=>{try{M.value=await b.get(`/it-service/uebersicht`)}catch{N.value=!0}}),(o,f)=>(s(),d(v,{title:`Meine IT`,"action-label":`Öffnen`,"action-href":`/it-service`},{default:l(()=>[!M.value&&!N.value?(s(),i(`div`,x,[e(n(y),{class:`h-16`}),e(n(y),{class:`h-16`})])):M.value?(s(),i(c,{key:1},[r(`div`,S,[e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,C,u(M.value.open_tickets),1),r(`span`,w,[e(n(g),{class:`size-3.5`}),f[0]||=t(` offene Tickets`,-1)])]),_:1}),e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,T,u(M.value.loans),1),r(`span`,E,[e(n(h),{class:`size-3.5`}),f[1]||=t(` Ausleihen`,-1)])]),_:1})]),M.value.latest.length?(s(),i(`ul`,D,[(s(!0),i(c,null,a(M.value.latest,t=>(s(),i(`li`,{key:t.id},[e(n(m),{href:`/it-service/tickets/${t.id}`,class:`flex min-w-0 items-center justify-between gap-2 rounded px-1 py-1 text-[13px] hover:bg-accent`,title:t.subject},{default:l(()=>[r(`span`,O,u(t.subject),1),r(`span`,k,u(t.status_label),1)]),_:2},1032,[`href`,`title`])]))),128))])):p(``,!0)],64)):(s(),i(`p`,A,`Der IT-Service ist gerade nicht erreichbar.`)),e(n(m),{href:`/it-service/tickets/neu`,class:`mt-3 flex items-center gap-1.5 border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:l(()=>[e(n(_),{class:`size-4`}),f[2]||=t(` IT-Problem melden `,-1)]),_:1})]),_:1}))}};export{j as default};

View file

@ -1 +1 @@
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u}from"./dist--2OKCVzt.js";import{C as d,O as f}from"./app-Ua4gL4AX.js";var p={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},m={class:`min-w-0`},h={class:`truncate text-sm font-semibold`},g={class:`truncate text-[13px] text-muted-foreground`},_={__name:`NewColleagues`,props:{people:{type:Array,required:!0}},setup(_){return(v,y)=>(a(),l(d,{title:`Neu im Team`,"action-label":`Alle Personen`,"action-href":`/personen`},{default:s(()=>[n(`ul`,p,[(a(!0),r(o,null,i(_.people,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:`/personen/${i.id}`,class:`flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent`},{default:s(()=>[e(f,{person:i,class:`size-11`},null,8,[`person`]),n(`div`,m,[n(`div`,h,c(i.name),1),n(`div`,g,c(i.job_title||i.department),1)])]),_:2},1032,[`href`])]))),128))])]),_:1}))}};export{_ as default};
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u}from"./dist--2OKCVzt.js";import{C as d,O as f}from"./app-BmJeQFgp.js";var p={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},m={class:`min-w-0`},h={class:`truncate text-sm font-semibold`},g={class:`truncate text-[13px] text-muted-foreground`},_={__name:`NewColleagues`,props:{people:{type:Array,required:!0}},setup(_){return(v,y)=>(a(),l(d,{title:`Neu im Team`,"action-label":`Alle Personen`,"action-href":`/personen`},{default:s(()=>[n(`ul`,p,[(a(!0),r(o,null,i(_.people,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:`/personen/${i.id}`,class:`flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent`},{default:s(()=>[e(f,{person:i,class:`size-11`},null,8,[`person`]),n(`div`,m,[n(`div`,h,c(i.name),1),n(`div`,g,c(i.job_title||i.department),1)])]),_:2},1032,[`href`])]))),128))])]),_:1}))}};export{_ as default};

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