diff --git a/CHANGELOG.md b/CHANGELOG.md
index fe88192c..987594fc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@ 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.19.2
+
+- „Gemeinsam feiern, erinnern und willkommen heißen“ auf dem Handy: Einträge als übersichtliche Liste statt breiter Tabellen, die Seite läuft nicht mehr über den Rand
+
## 0.19.1
- Profilseite: Neuer Bereich „Kommentare“ zeigt, wann eine Person welche Beiträge kommentiert oder beantwortet hat – mit Link direkt zum Kommentar. Kommentare zu Beiträgen, die man selbst nicht sehen darf, bleiben verborgen
diff --git a/app/Version.php b/app/Version.php
index 3a6c93f5..b3727d2d 100644
--- a/app/Version.php
+++ b/app/Version.php
@@ -9,5 +9,5 @@ namespace App;
*/
final class Version
{
- public const VERSION = '0.19.1';
+ public const VERSION = '0.19.2';
}
diff --git a/plugins-core/gemeinsam/resources/js/pages/Index.vue b/plugins-core/gemeinsam/resources/js/pages/Index.vue
index 0a9be685..4c9378d7 100644
--- a/plugins-core/gemeinsam/resources/js/pages/Index.vue
+++ b/plugins-core/gemeinsam/resources/js/pages/Index.vue
@@ -47,6 +47,12 @@ function value(entry, key, section) {
return entry[key] || '–';
}
+// Handy-Liste: weitere Spalten als „Bezeichnung: Wert“ (Datum steht rechts oben)
+const details = (entry, section) => columns[section.key]
+ .filter(([key]) => key !== 'date')
+ .map(([key, label]) => [label, key === 'lifespan' ? value(entry, key, section.key) : entry[key]])
+ .filter(([, text]) => text && text !== '–');
+
const visible = computed(() => props.sections.filter((s) => s.entries.length || (props.canManage && !s.automatic)));
const empty = computed(() => props.sections.every((s) => !s.entries.length));
@@ -72,11 +78,11 @@ function remove(entry) {
-
+
@@ -88,7 +94,31 @@ function remove(entry) {
aus dem Geburtstagskalender
-
`,1)]))}},X={class:`mb-6 grid gap-3 rounded-lg border bg-card p-4 sm:grid-cols-3`},Z={key:0,class:`flex items-center gap-2 rounded-lg border bg-card p-4 text-sm text-destructive`},ne={key:1,class:`rounded-lg border bg-card`},re={key:2,class:`grid gap-4 sm:grid-cols-2 xl:grid-cols-3`},ie={class:`flex items-start gap-3`},ae={class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-foreground/70`},oe={class:`min-w-0 flex-1`},se={class:`font-medium leading-tight`},Q={key:0,class:`text-xs text-muted-foreground`},ce={key:0,class:`mt-3 line-clamp-3 text-[13px] text-muted-foreground`},le={key:0,class:`grid h-64 place-items-center text-sm text-muted-foreground`},ue={key:0,class:`text-xs text-muted-foreground`},de={class:`grid gap-3 sm:grid-cols-2`},fe={key:0,class:`mr-auto self-center text-[13px] text-muted-foreground`},$={__name:`Loans`,props:{filters:{type:Object,required:!0},types:{type:Object,required:!0},devices:{type:Object,required:!0}},setup(i){let S=i,D=h({typ:S.filters.type??``,von:S.filters.from??``,bis:S.filters.to??``}),O=l(()=>S.types.ok?S.types.data.map(e=>({value:e,label:e})):[]);n(D,e=>{let t=Object.fromEntries(Object.entries(e).filter(([,e])=>e));y.get(`/it-service/leihgeraete`,t,{preserveState:!0,preserveScroll:!0,replace:!0})},{deep:!0});let W=h(null),G=h([]),K=h(null),q=h(!1),J=v({device_id:null,planned_start:``,planned_end:``,purpose:``});async function $(e){W.value=e,J.reset(),J.clearErrors(),J.device_id=e.id,J.planned_start=S.filters.from??``,J.planned_end=S.filters.to??``,G.value=[],K.value=null,q.value=!0;try{G.value=(await E.get(`/it-service/leihgeraete/${e.id}/belegung`)).slots}catch(e){K.value=e.message}finally{q.value=!1}}function pe(){J.post(`/it-service/leihgeraete/anfragen`,{onSuccess:()=>W.value=null})}return(n,l)=>(u(),m(w,{title:`Leihgeräte`},{default:f(()=>[e(r(b),{href:`/it-service`,class:`mb-3 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:f(()=>[e(r(C),{class:`size-4`}),l[10]||=t(` Meine IT`,-1)]),_:1}),e(N,{title:`Leihgeräte`,description:`Laptops, Beamer, Kameras & Co. für einen bestimmten Zeitraum ausleihen.`}),o(`div`,X,[e(j,{id:`type`,label:`Gerätetyp`},{default:f(()=>[e(F,{id:`type`,modelValue:D.value.typ,"onUpdate:modelValue":l[0]||=e=>D.value.typ=e,options:O.value,placeholder:`Alle Typen`},null,8,[`modelValue`,`options`])]),_:1}),e(j,{id:`from`,label:`Benötigt ab`},{default:f(()=>[e(r(I),{id:`from`,modelValue:D.value.von,"onUpdate:modelValue":l[1]||=e=>D.value.von=e,type:`date`},null,8,[`modelValue`])]),_:1}),e(j,{id:`to`,label:`Benötigt bis`},{default:f(()=>[e(r(I),{id:`to`,modelValue:D.value.bis,"onUpdate:modelValue":l[2]||=e=>D.value.bis=e,type:`date`,min:D.value.von||void 0},null,8,[`modelValue`,`min`])]),_:1})]),i.devices.ok?i.devices.data.length?(u(),s(`div`,re,[(u(!0),s(d,null,c(i.devices.data,n=>(u(),s(`article`,{key:n.id,class:`flex flex-col rounded-lg border bg-card p-4`},[o(`div`,ie,[o(`span`,ae,[e(r(U),{class:`size-5`})]),o(`div`,oe,[o(`h2`,se,p(n.title),1),n.type?(u(),s(`p`,Q,p(n.type),1)):g(``,!0)]),o(`span`,{class:a([`rounded-full px-2 py-0.5 text-[11px] font-semibold`,n.available?`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`:`bg-muted text-muted-foreground`])},p(n.available?`verfügbar`:`belegt`),3)]),n.description?(u(),s(`p`,ce,p(n.description),1)):g(``,!0),e(r(P),{class:`mt-4`,variant:`outline`,onClick:e=>$(n)},{default:f(()=>[e(r(T)),l[11]||=t(` Zeitraum wählen`,-1)]),_:1},8,[`onClick`])]))),128))])):(u(),s(`div`,ne,[e(M,{icon:r(U),title:`Keine passenden Leihgeräte`,text:`Anderen Zeitraum oder Gerätetyp versuchen.`},null,8,[`icon`])])):(u(),s(`p`,Z,[e(r(k),{class:`size-4`}),t(` `+p(i.devices.error),1)])),e(r(R),{open:!!W.value,"onUpdate:open":l[9]||=e=>!e&&(W.value=null)},{default:f(()=>[e(r(te),{class:`sm:max-w-2xl`},{default:f(()=>[e(r(V),null,{default:f(()=>[e(r(z),null,{default:f(()=>[t(p(W.value?.title)+` ausleihen`,1)]),_:1}),e(r(B),null,{default:f(()=>[...l[12]||=[t(`Die IT bestätigt die Anfrage bzw. organisiert die Übergabe.`,-1)]]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:_(pe,[`prevent`])},[q.value?(u(),s(`div`,le,[e(r(x),{class:`size-5 animate-spin`})])):(u(),s(d,{key:1},[K.value?(u(),s(`p`,ue,`Belegung konnte nicht geladen werden – bitte Zeitraum trotzdem wählen.`)):g(``,!0),e(Y,{start:r(J).planned_start,"onUpdate:start":l[3]||=e=>r(J).planned_start=e,end:r(J).planned_end,"onUpdate:end":l[4]||=e=>r(J).planned_end=e,slots:G.value},null,8,[`start`,`end`,`slots`])],64)),o(`div`,de,[e(j,{id:`start`,label:`Von`,error:r(J).errors.planned_start},{default:f(()=>[e(r(I),{id:`start`,modelValue:r(J).planned_start,"onUpdate:modelValue":l[5]||=e=>r(J).planned_start=e,type:`date`,required:``},null,8,[`modelValue`])]),_:1},8,[`error`]),e(j,{id:`end`,label:`Bis`,error:r(J).errors.planned_end},{default:f(()=>[e(r(I),{id:`end`,modelValue:r(J).planned_end,"onUpdate:modelValue":l[6]||=e=>r(J).planned_end=e,type:`date`,min:r(J).planned_start||void 0,required:``},null,8,[`modelValue`,`min`])]),_:1},8,[`error`])]),e(j,{id:`purpose`,label:`Wofür? (optional)`,error:r(J).errors.purpose},{default:f(()=>[e(r(L),{id:`purpose`,modelValue:r(J).purpose,"onUpdate:modelValue":l[7]||=e=>r(J).purpose=e,rows:`2`,maxlength:`500`,placeholder:`z. B. Präsentation beim Fachtag`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(ee),null,{default:f(()=>[r(J).planned_start&&r(J).planned_end?(u(),s(`p`,fe,p(r(H)(r(J).planned_start))+` – `+p(r(H)(r(J).planned_end)),1)):g(``,!0),e(r(P),{type:`button`,variant:`outline`,onClick:l[8]||=e=>W.value=null},{default:f(()=>[...l[13]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(P),{type:`submit`,disabled:r(J).processing||!r(J).planned_start||!r(J).planned_end},{default:f(()=>[r(J).processing?(u(),m(r(x),{key:0,class:`animate-spin`})):(u(),m(r(A),{key:1})),l[14]||=t(` Anfragen `,-1)]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1}))}};export{$ as default};
\ No newline at end of file
+import{D as e,E as t,Ht as n,On as r,T as i,Zn as a,_ as o,b as s,bt as c,g 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{w as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as v,o as y,r as b}from"./app-0YzlX_sI.js";import{O as x,k as S}from"./dist-DtGNiYlK.js";import{t as C}from"./arrow-left-BMImfTf2.js";import{t as w}from"./AppLayout-BZsS7ZqB.js";import{t as T}from"./calendar-clock-8H2IkjP5.js";import{n as E}from"./http-CAG9BrJF.js";import{t as D}from"./chevron-left-8GGLVOvJ.js";import{t as O}from"./chevron-right-C9w5cb2q.js";import{t as k}from"./circle-alert-D8SqHL0j.js";import{t as A}from"./send-6fmdiUe6.js";import{t as j}from"./FormField-BoFAO4pm.js";import{t as M}from"./EmptyState-Ceq4v8mE.js";import{t as N}from"./PageHeader-BF5yxdNS.js";import{n as P}from"./button-CwUSbS9X.js";import{t as F}from"./NativeSelect-G3km7PmI.js";import{t as I}from"./Input-FGSb2-yK.js";import{t as L}from"./Textarea-DEFXqC2w.js";import{i as R,n as ee,r as te,t as z}from"./dialog-i3G0C6kJ.js";import{t as B}from"./DialogDescription-ClgsGa-Q.js";import{t as V}from"./DialogHeader-DuqiL3ry.js";import{t as H}from"./status-p0CPKwc2.js";var U=S({name:`monitor-smartphone`,size:24,node:[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]}),W={class:`mb-2 flex items-center justify-between`},G={class:`grid gap-4 sm:grid-cols-2`},K={class:`mb-1.5 text-center text-sm font-medium`},q={class:`grid grid-cols-7 gap-0.5 text-center text-xs`},J=[`disabled`,`title`,`onClick`],Y={__name:`RangeCalendar`,props:{slots:{type:Array,default:()=>[]},start:{type:String,default:``},end:{type:String,default:``},maxDays:{type:Number,default:180}},emits:[`update:start`,`update:end`],setup(t,{emit:n}){let f=t,m=n,g=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`,_=g(new Date),v=h(new Date(new Date().getFullYear(),new Date().getMonth(),1)),y=l(()=>{let e=new Set;for(let t of f.slots){let n=new Date(`${t.start}T12:00:00`),r=new Date(`${t.end||t.start}T12:00:00`);for(let t=0;n<=r&&t<400;t++)e.add(g(n)),n.setDate(n.getDate()+1)}return e}),b=new Intl.DateTimeFormat(`de-DE`,{month:`long`,year:`numeric`}),x=l(()=>[0,1].map(e=>{let t=new Date(v.value.getFullYear(),v.value.getMonth()+e,1),n=[],r=(t.getDay()+6)%7;for(let e=0;e=e&&n<=t)return!1;return!0}function C(e){!e||e<_||y.value.has(e)||(!f.start||f.end||ef.start&&e(u(),s(`div`,null,[o(`div`,W,[o(`button`,{type:`button`,class:`grid size-8 place-items-center rounded-md hover:bg-accent`,"aria-label":`Früher`,onClick:n[0]||=e=>E(-1)},[e(r(D),{class:`size-4`})]),n[2]||=o(`span`,{class:`text-xs text-muted-foreground`},`Beginn und Ende anklicken`,-1),o(`button`,{type:`button`,class:`grid size-8 place-items-center rounded-md hover:bg-accent`,"aria-label":`Später`,onClick:n[1]||=e=>E(1)},[e(r(O),{class:`size-4`})])]),o(`div`,G,[(u(!0),s(d,null,c(x.value,e=>(u(),s(`div`,{key:e.label},[o(`p`,K,p(e.label),1),o(`div`,q,[(u(),s(d,null,c([`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`,`So`],e=>o(`span`,{key:e,class:`py-1 text-muted-foreground`},p(e),1)),64)),(u(!0),s(d,null,c(e.days,(e,t)=>(u(),s(`button`,{key:e??`e${t}`,type:`button`,class:a([`aspect-square rounded-md tabular-nums transition-colors`,T[w(e)]]),disabled:!e||w(e)===`booked`||w(e)===`past`,title:w(e)===`booked`?`Belegt`:void 0,onClick:t=>C(e)},p(e?Number(e.slice(8)):``),11,J))),128))])]))),128))]),n[3]||=i(`
belegt Ihr Zeitraum
`,1)]))}},X={class:`mb-6 grid gap-3 rounded-lg border bg-card p-4 sm:grid-cols-3`},Z={key:0,class:`flex items-center gap-2 rounded-lg border bg-card p-4 text-sm text-destructive`},ne={key:1,class:`rounded-lg border bg-card`},re={key:2,class:`grid gap-4 sm:grid-cols-2 xl:grid-cols-3`},ie={class:`flex items-start gap-3`},ae={class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-foreground/70`},oe={class:`min-w-0 flex-1`},se={class:`font-medium leading-tight`},Q={key:0,class:`text-xs text-muted-foreground`},ce={key:0,class:`mt-3 line-clamp-3 text-[13px] text-muted-foreground`},le={key:0,class:`grid h-64 place-items-center text-sm text-muted-foreground`},ue={key:0,class:`text-xs text-muted-foreground`},de={class:`grid gap-3 sm:grid-cols-2`},fe={key:0,class:`mr-auto self-center text-[13px] text-muted-foreground`},$={__name:`Loans`,props:{filters:{type:Object,required:!0},types:{type:Object,required:!0},devices:{type:Object,required:!0}},setup(i){let S=i,D=h({typ:S.filters.type??``,von:S.filters.from??``,bis:S.filters.to??``}),O=l(()=>S.types.ok?S.types.data.map(e=>({value:e,label:e})):[]);n(D,e=>{let t=Object.fromEntries(Object.entries(e).filter(([,e])=>e));y.get(`/it-service/leihgeraete`,t,{preserveState:!0,preserveScroll:!0,replace:!0})},{deep:!0});let W=h(null),G=h([]),K=h(null),q=h(!1),J=v({device_id:null,planned_start:``,planned_end:``,purpose:``});async function $(e){W.value=e,J.reset(),J.clearErrors(),J.device_id=e.id,J.planned_start=S.filters.from??``,J.planned_end=S.filters.to??``,G.value=[],K.value=null,q.value=!0;try{G.value=(await E.get(`/it-service/leihgeraete/${e.id}/belegung`)).slots}catch(e){K.value=e.message}finally{q.value=!1}}function pe(){J.post(`/it-service/leihgeraete/anfragen`,{onSuccess:()=>W.value=null})}return(n,l)=>(u(),m(w,{title:`Leihgeräte`},{default:f(()=>[e(r(b),{href:`/it-service`,class:`mb-3 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:f(()=>[e(r(C),{class:`size-4`}),l[10]||=t(` Meine IT`,-1)]),_:1}),e(N,{title:`Leihgeräte`,description:`Laptops, Beamer, Kameras & Co. für einen bestimmten Zeitraum ausleihen.`}),o(`div`,X,[e(j,{id:`type`,label:`Gerätetyp`},{default:f(()=>[e(F,{id:`type`,modelValue:D.value.typ,"onUpdate:modelValue":l[0]||=e=>D.value.typ=e,options:O.value,placeholder:`Alle Typen`},null,8,[`modelValue`,`options`])]),_:1}),e(j,{id:`from`,label:`Benötigt ab`},{default:f(()=>[e(r(I),{id:`from`,modelValue:D.value.von,"onUpdate:modelValue":l[1]||=e=>D.value.von=e,type:`date`},null,8,[`modelValue`])]),_:1}),e(j,{id:`to`,label:`Benötigt bis`},{default:f(()=>[e(r(I),{id:`to`,modelValue:D.value.bis,"onUpdate:modelValue":l[2]||=e=>D.value.bis=e,type:`date`,min:D.value.von||void 0},null,8,[`modelValue`,`min`])]),_:1})]),i.devices.ok?i.devices.data.length?(u(),s(`div`,re,[(u(!0),s(d,null,c(i.devices.data,n=>(u(),s(`article`,{key:n.id,class:`flex flex-col rounded-lg border bg-card p-4`},[o(`div`,ie,[o(`span`,ae,[e(r(U),{class:`size-5`})]),o(`div`,oe,[o(`h2`,se,p(n.title),1),n.type?(u(),s(`p`,Q,p(n.type),1)):g(``,!0)]),o(`span`,{class:a([`rounded-full px-2 py-0.5 text-[11px] font-semibold`,n.available?`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`:`bg-muted text-muted-foreground`])},p(n.available?`verfügbar`:`belegt`),3)]),n.description?(u(),s(`p`,ce,p(n.description),1)):g(``,!0),e(r(P),{class:`mt-4`,variant:`outline`,onClick:e=>$(n)},{default:f(()=>[e(r(T)),l[11]||=t(` Zeitraum wählen`,-1)]),_:1},8,[`onClick`])]))),128))])):(u(),s(`div`,ne,[e(M,{icon:r(U),title:`Keine passenden Leihgeräte`,text:`Anderen Zeitraum oder Gerätetyp versuchen.`},null,8,[`icon`])])):(u(),s(`p`,Z,[e(r(k),{class:`size-4`}),t(` `+p(i.devices.error),1)])),e(r(R),{open:!!W.value,"onUpdate:open":l[9]||=e=>!e&&(W.value=null)},{default:f(()=>[e(r(te),{class:`sm:max-w-2xl`},{default:f(()=>[e(r(V),null,{default:f(()=>[e(r(z),null,{default:f(()=>[t(p(W.value?.title)+` ausleihen`,1)]),_:1}),e(r(B),null,{default:f(()=>[...l[12]||=[t(`Die IT bestätigt die Anfrage bzw. organisiert die Übergabe.`,-1)]]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:_(pe,[`prevent`])},[q.value?(u(),s(`div`,le,[e(r(x),{class:`size-5 animate-spin`})])):(u(),s(d,{key:1},[K.value?(u(),s(`p`,ue,`Belegung konnte nicht geladen werden – bitte Zeitraum trotzdem wählen.`)):g(``,!0),e(Y,{start:r(J).planned_start,"onUpdate:start":l[3]||=e=>r(J).planned_start=e,end:r(J).planned_end,"onUpdate:end":l[4]||=e=>r(J).planned_end=e,slots:G.value},null,8,[`start`,`end`,`slots`])],64)),o(`div`,de,[e(j,{id:`start`,label:`Von`,error:r(J).errors.planned_start},{default:f(()=>[e(r(I),{id:`start`,modelValue:r(J).planned_start,"onUpdate:modelValue":l[5]||=e=>r(J).planned_start=e,type:`date`,required:``},null,8,[`modelValue`])]),_:1},8,[`error`]),e(j,{id:`end`,label:`Bis`,error:r(J).errors.planned_end},{default:f(()=>[e(r(I),{id:`end`,modelValue:r(J).planned_end,"onUpdate:modelValue":l[6]||=e=>r(J).planned_end=e,type:`date`,min:r(J).planned_start||void 0,required:``},null,8,[`modelValue`,`min`])]),_:1},8,[`error`])]),e(j,{id:`purpose`,label:`Wofür? (optional)`,error:r(J).errors.purpose},{default:f(()=>[e(r(L),{id:`purpose`,modelValue:r(J).purpose,"onUpdate:modelValue":l[7]||=e=>r(J).purpose=e,rows:`2`,maxlength:`500`,placeholder:`z. B. Präsentation beim Fachtag`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(ee),null,{default:f(()=>[r(J).planned_start&&r(J).planned_end?(u(),s(`p`,fe,p(r(H)(r(J).planned_start))+` – `+p(r(H)(r(J).planned_end)),1)):g(``,!0),e(r(P),{type:`button`,variant:`outline`,onClick:l[8]||=e=>W.value=null},{default:f(()=>[...l[13]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(P),{type:`submit`,disabled:r(J).processing||!r(J).planned_start||!r(J).planned_end},{default:f(()=>[r(J).processing?(u(),m(r(x),{key:0,class:`animate-spin`})):(u(),m(r(A),{key:1})),l[14]||=t(` Anfragen `,-1)]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1}))}};export{$ as default};
\ No newline at end of file
diff --git a/public/build/assets/Login-BViz0zM_.js b/public/build/assets/Login-3zhJwldv.js
similarity index 97%
rename from public/build/assets/Login-BViz0zM_.js
rename to public/build/assets/Login-3zhJwldv.js
index 32231690..d10f3c15 100644
--- a/public/build/assets/Login-BViz0zM_.js
+++ b/public/build/assets/Login-3zhJwldv.js
@@ -1 +1 @@
-import{d as e,i as t,l as n,n as r}from"./usePrimitiveElement-DC7UloPZ.js";import{$n as i,D as a,E as o,Nt as s,On as c,_ as l,b as u,bt as d,et as f,g as p,k as m,mt as h,o as g,qt as _,tr as v,v as y,vn as b,wt as x,xt as S,y as C,z as w}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as T,w as E}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as D,r as O}from"./app-BIL1bnXp.js";import{O as k,b as A,d as j,l as M,p as N,s as P}from"./dist-DtGNiYlK.js";import{c as F,l as ee,s as te}from"./RovingFocusGroup-D88K7krN.js";import{t as I}from"./check-AfxJa8Ew.js";import{t as L}from"./eye-off-myis3scV.js";import{t as R}from"./eye-CFNQcvaV.js";import{n as z,t as B}from"./isValueEqualOrExist-BmxVVt-T.js";import{n as V,r as H,t as U}from"./VisuallyHiddenInput-BMUp3blB.js";import{t as W}from"./RovingFocusItem-BqPEtysU.js";import{n as G,t as K}from"./FormField-BoFAO4pm.js";import{n as q}from"./button-CwUSbS9X.js";import{t as J}from"./Input-FGSb2-yK.js";import{t as Y}from"./GuestLayout-Bk0PVv-C.js";var[X,ne]=e(`CheckboxGroupRoot`);function Z(e){return e===`indeterminate`}function Q(e){return Z(e)?`indeterminate`:e?`checked`:`unchecked`}var[re,ie]=e(`CheckboxRoot`),ae=m({inheritAttrs:!1,__name:`CheckboxRoot`,props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:`on`},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=e,i=t,{forwardRef:a,currentElement:o}=N(),l=X(null),d=A(r,`modelValue`,i,{defaultValue:r.defaultValue??r.falseValue,passive:r.modelValue===void 0}),m=p(()=>l?.disabled.value||r.disabled),v=p(()=>z(d.value,r.trueValue)),b=p(()=>n(l?.modelValue.value)?d.value===`indeterminate`?`indeterminate`:v.value:B(l.modelValue.value,r.value));function w(){if(n(l?.modelValue.value))d.value===`indeterminate`?d.value=r.trueValue:d.value=v.value?r.falseValue:r.trueValue;else{let e=[...l.modelValue.value||[]];if(B(e,r.value)){let t=e.findIndex(e=>z(e,r.value));e.splice(t,1)}else e.push(r.value);l.modelValue.value=e}}let D=H(o),O=V(),k=s(),M=p(()=>{if(!k[`aria-label`])return r.id&&o.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0});return ie({disabled:m,state:b}),(e,t)=>(h(),u(g,null,[(h(),y(x(c(l)?.rovingFocus.value?c(W):c(j)),f({...e.$attrs,...c(O)},{id:e.id,ref:c(a),role:`checkbox`,"as-child":e.asChild,as:e.as,type:e.as===`button`?`button`:void 0,"aria-checked":c(Z)(b.value)?`mixed`:b.value,"aria-required":e.required,"aria-label":e.$attrs[`aria-label`]||M.value,"data-state":c(Q)(b.value),"data-disabled":m.value?``:void 0,disabled:m.value,focusable:c(l)?.rovingFocus.value?!m.value:void 0,onKeydown:T(E(()=>{},[`prevent`]),[`enter`]),onClick:w}),{default:_(()=>[S(e.$slots,`default`,{modelValue:c(d),state:b.value})]),_:3},16,[`id`,`as-child`,`as`,`type`,`aria-checked`,`aria-required`,`aria-label`,`data-state`,`data-disabled`,`disabled`,`focusable`,`onKeydown`])),c(D)&&e.name&&!c(l)?(h(),y(c(U),f({key:0,type:`checkbox`,checked:!!b.value,name:e.name,value:e.value,disabled:m.value,required:e.required},c(O)),null,16,[`checked`,`name`,`value`,`disabled`,`required`])):C(`v-if`,!0)],64))}}),oe=m({__name:`CheckboxIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=N(),n=re();return(e,i)=>(h(),y(c(r),{present:e.forceMount||c(Z)(c(n).state.value)||c(n).state.value===!0},{default:_(()=>[a(c(j),f({ref:c(t),"data-state":c(Q)(c(n).state.value),"data-disabled":c(n).disabled.value?``:void 0,style:{pointerEvents:`none`},"as-child":e.asChild,as:e.as},e.$attrs),{default:_(()=>[S(e.$slots,`default`)]),_:3},16,[`data-state`,`data-disabled`,`as-child`,`as`])]),_:3},8,[`present`]))}}),$=m({__name:`Checkbox`,props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},value:{},id:{},trueValue:{},falseValue:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,o=n,s=P(r,`class`),l=t(s,o);return(e,t)=>(h(),y(c(ae),f({"data-slot":`checkbox`},c(l),{class:c(M)(`peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50`,r.class)}),{default:_(t=>[a(c(oe),{"data-slot":`checkbox-indicator`,class:`grid place-content-center text-current transition-none`},{default:_(()=>[S(e.$slots,`default`,i(w(t)),()=>[a(c(I),{class:`size-3.5`})])]),_:2},1024)]),_:3},16,[`class`]))}}),se={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},ce={key:1,class:`mb-6 rounded-md border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm text-destructive`,role:`alert`},le={key:2,class:`mb-6 grid gap-3`},ue=[`href`],de={key:0,class:`size-[18px]`,viewBox:`0 0 21 21`,"aria-hidden":`true`},fe={class:`relative`},pe=[`aria-label`],me={class:`flex items-center justify-between`},he={__name:`Login`,props:{canResetPassword:{type:Boolean,default:!1},status:{type:String,default:null},providers:{type:Array,default:()=>[]},identityError:{type:String,default:null},preview:{type:Boolean,default:!1}},setup(e){let t=e,n=b(!1),r=D({email:``,password:``,remember:!1});function i(){t.preview||r.post(`/login`,{onFinish:()=>r.reset(`password`)})}return(t,s)=>(h(),y(Y,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:_(()=>[e.status?(h(),u(`div`,se,v(e.status),1)):C(``,!0),e.identityError?(h(),u(`div`,ce,v(e.identityError),1)):C(``,!0),e.providers.length?(h(),u(`div`,le,[(h(!0),u(g,null,d(e.providers,e=>(h(),u(`a`,{key:e.slug,href:`/auth/${e.slug}/redirect`,class:`inline-flex h-11 items-center justify-center gap-3 rounded-md border border-input bg-card px-4 text-sm font-medium shadow-xs transition-colors hover:bg-accent`},[e.type===`entra`?(h(),u(`svg`,de,[...s[4]||=[l(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),l(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),l(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),l(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(h(),y(c(ee),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(h(),y(c(te),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(h(),y(c(F),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),o(` `+v(e.label),1)],8,ue))),128)),s[5]||=l(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[l(`span`,{class:`h-px flex-1 bg-border`}),o(` oder mit E-Mail und Passwort `),l(`span`,{class:`h-px flex-1 bg-border`})],-1)])):C(``,!0),l(`form`,{class:`grid gap-5`,onSubmit:E(i,[`prevent`])},[a(K,{id:`email`,label:`E-Mail-Adresse`,error:c(r).errors.email},{default:_(()=>[a(c(J),{id:`email`,modelValue:c(r).email,"onUpdate:modelValue":s[0]||=e=>c(r).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!c(r).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),a(K,{id:`password`,label:`Passwort`,error:c(r).errors.password},{default:_(()=>[l(`div`,fe,[a(c(J),{id:`password`,modelValue:c(r).password,"onUpdate:modelValue":s[1]||=e=>c(r).password=e,type:n.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!c(r).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),l(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":n.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:s[2]||=e=>n.value=!n.value},[n.value?(h(),y(c(L),{key:0,class:`size-4`})):(h(),y(c(R),{key:1,class:`size-4`}))],8,pe)])]),_:1},8,[`error`]),l(`div`,me,[a(c(G),{class:`flex items-center gap-2 text-sm font-normal`},{default:_(()=>[a(c($),{modelValue:c(r).remember,"onUpdate:modelValue":s[3]||=e=>c(r).remember=e},null,8,[`modelValue`]),s[6]||=o(` Angemeldet bleiben `,-1)]),_:1}),e.canResetPassword?(h(),y(c(O),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:_(()=>[...s[7]||=[o(` Passwort vergessen? `,-1)]]),_:1})):C(``,!0)]),a(c(q),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:c(r).processing},{default:_(()=>[c(r).processing?(h(),y(c(k),{key:0,class:`animate-spin`})):C(``,!0),s[8]||=o(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{he as default};
\ No newline at end of file
+import{d as e,i as t,l as n,n as r}from"./usePrimitiveElement-DC7UloPZ.js";import{$n as i,D as a,E as o,Nt as s,On as c,_ as l,b as u,bt as d,et as f,g as p,k as m,mt as h,o as g,qt as _,tr as v,v as y,vn as b,wt as x,xt as S,y as C,z as w}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as T,w as E}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as D,r as O}from"./app-0YzlX_sI.js";import{O as k,b as A,d as j,l as M,p as N,s as P}from"./dist-DtGNiYlK.js";import{c as F,l as ee,s as te}from"./RovingFocusGroup-D88K7krN.js";import{t as I}from"./check-AfxJa8Ew.js";import{t as L}from"./eye-off-myis3scV.js";import{t as R}from"./eye-CFNQcvaV.js";import{n as z,t as B}from"./isValueEqualOrExist-BmxVVt-T.js";import{n as V,r as H,t as U}from"./VisuallyHiddenInput-BMUp3blB.js";import{t as W}from"./RovingFocusItem-BqPEtysU.js";import{n as G,t as K}from"./FormField-BoFAO4pm.js";import{n as q}from"./button-CwUSbS9X.js";import{t as J}from"./Input-FGSb2-yK.js";import{t as Y}from"./GuestLayout-BlpQIyqX.js";var[X,ne]=e(`CheckboxGroupRoot`);function Z(e){return e===`indeterminate`}function Q(e){return Z(e)?`indeterminate`:e?`checked`:`unchecked`}var[re,ie]=e(`CheckboxRoot`),ae=m({inheritAttrs:!1,__name:`CheckboxRoot`,props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:`on`},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=e,i=t,{forwardRef:a,currentElement:o}=N(),l=X(null),d=A(r,`modelValue`,i,{defaultValue:r.defaultValue??r.falseValue,passive:r.modelValue===void 0}),m=p(()=>l?.disabled.value||r.disabled),v=p(()=>z(d.value,r.trueValue)),b=p(()=>n(l?.modelValue.value)?d.value===`indeterminate`?`indeterminate`:v.value:B(l.modelValue.value,r.value));function w(){if(n(l?.modelValue.value))d.value===`indeterminate`?d.value=r.trueValue:d.value=v.value?r.falseValue:r.trueValue;else{let e=[...l.modelValue.value||[]];if(B(e,r.value)){let t=e.findIndex(e=>z(e,r.value));e.splice(t,1)}else e.push(r.value);l.modelValue.value=e}}let D=H(o),O=V(),k=s(),M=p(()=>{if(!k[`aria-label`])return r.id&&o.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0});return ie({disabled:m,state:b}),(e,t)=>(h(),u(g,null,[(h(),y(x(c(l)?.rovingFocus.value?c(W):c(j)),f({...e.$attrs,...c(O)},{id:e.id,ref:c(a),role:`checkbox`,"as-child":e.asChild,as:e.as,type:e.as===`button`?`button`:void 0,"aria-checked":c(Z)(b.value)?`mixed`:b.value,"aria-required":e.required,"aria-label":e.$attrs[`aria-label`]||M.value,"data-state":c(Q)(b.value),"data-disabled":m.value?``:void 0,disabled:m.value,focusable:c(l)?.rovingFocus.value?!m.value:void 0,onKeydown:T(E(()=>{},[`prevent`]),[`enter`]),onClick:w}),{default:_(()=>[S(e.$slots,`default`,{modelValue:c(d),state:b.value})]),_:3},16,[`id`,`as-child`,`as`,`type`,`aria-checked`,`aria-required`,`aria-label`,`data-state`,`data-disabled`,`disabled`,`focusable`,`onKeydown`])),c(D)&&e.name&&!c(l)?(h(),y(c(U),f({key:0,type:`checkbox`,checked:!!b.value,name:e.name,value:e.value,disabled:m.value,required:e.required},c(O)),null,16,[`checked`,`name`,`value`,`disabled`,`required`])):C(`v-if`,!0)],64))}}),oe=m({__name:`CheckboxIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=N(),n=re();return(e,i)=>(h(),y(c(r),{present:e.forceMount||c(Z)(c(n).state.value)||c(n).state.value===!0},{default:_(()=>[a(c(j),f({ref:c(t),"data-state":c(Q)(c(n).state.value),"data-disabled":c(n).disabled.value?``:void 0,style:{pointerEvents:`none`},"as-child":e.asChild,as:e.as},e.$attrs),{default:_(()=>[S(e.$slots,`default`)]),_:3},16,[`data-state`,`data-disabled`,`as-child`,`as`])]),_:3},8,[`present`]))}}),$=m({__name:`Checkbox`,props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},value:{},id:{},trueValue:{},falseValue:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,o=n,s=P(r,`class`),l=t(s,o);return(e,t)=>(h(),y(c(ae),f({"data-slot":`checkbox`},c(l),{class:c(M)(`peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50`,r.class)}),{default:_(t=>[a(c(oe),{"data-slot":`checkbox-indicator`,class:`grid place-content-center text-current transition-none`},{default:_(()=>[S(e.$slots,`default`,i(w(t)),()=>[a(c(I),{class:`size-3.5`})])]),_:2},1024)]),_:3},16,[`class`]))}}),se={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},ce={key:1,class:`mb-6 rounded-md border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm text-destructive`,role:`alert`},le={key:2,class:`mb-6 grid gap-3`},ue=[`href`],de={key:0,class:`size-[18px]`,viewBox:`0 0 21 21`,"aria-hidden":`true`},fe={class:`relative`},pe=[`aria-label`],me={class:`flex items-center justify-between`},he={__name:`Login`,props:{canResetPassword:{type:Boolean,default:!1},status:{type:String,default:null},providers:{type:Array,default:()=>[]},identityError:{type:String,default:null},preview:{type:Boolean,default:!1}},setup(e){let t=e,n=b(!1),r=D({email:``,password:``,remember:!1});function i(){t.preview||r.post(`/login`,{onFinish:()=>r.reset(`password`)})}return(t,s)=>(h(),y(Y,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:_(()=>[e.status?(h(),u(`div`,se,v(e.status),1)):C(``,!0),e.identityError?(h(),u(`div`,ce,v(e.identityError),1)):C(``,!0),e.providers.length?(h(),u(`div`,le,[(h(!0),u(g,null,d(e.providers,e=>(h(),u(`a`,{key:e.slug,href:`/auth/${e.slug}/redirect`,class:`inline-flex h-11 items-center justify-center gap-3 rounded-md border border-input bg-card px-4 text-sm font-medium shadow-xs transition-colors hover:bg-accent`},[e.type===`entra`?(h(),u(`svg`,de,[...s[4]||=[l(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),l(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),l(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),l(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(h(),y(c(ee),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(h(),y(c(te),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(h(),y(c(F),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),o(` `+v(e.label),1)],8,ue))),128)),s[5]||=l(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[l(`span`,{class:`h-px flex-1 bg-border`}),o(` oder mit E-Mail und Passwort `),l(`span`,{class:`h-px flex-1 bg-border`})],-1)])):C(``,!0),l(`form`,{class:`grid gap-5`,onSubmit:E(i,[`prevent`])},[a(K,{id:`email`,label:`E-Mail-Adresse`,error:c(r).errors.email},{default:_(()=>[a(c(J),{id:`email`,modelValue:c(r).email,"onUpdate:modelValue":s[0]||=e=>c(r).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!c(r).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),a(K,{id:`password`,label:`Passwort`,error:c(r).errors.password},{default:_(()=>[l(`div`,fe,[a(c(J),{id:`password`,modelValue:c(r).password,"onUpdate:modelValue":s[1]||=e=>c(r).password=e,type:n.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!c(r).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),l(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":n.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:s[2]||=e=>n.value=!n.value},[n.value?(h(),y(c(L),{key:0,class:`size-4`})):(h(),y(c(R),{key:1,class:`size-4`}))],8,pe)])]),_:1},8,[`error`]),l(`div`,me,[a(c(G),{class:`flex items-center gap-2 text-sm font-normal`},{default:_(()=>[a(c($),{modelValue:c(r).remember,"onUpdate:modelValue":s[3]||=e=>c(r).remember=e},null,8,[`modelValue`]),s[6]||=o(` Angemeldet bleiben `,-1)]),_:1}),e.canResetPassword?(h(),y(c(O),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:_(()=>[...s[7]||=[o(` Passwort vergessen? `,-1)]]),_:1})):C(``,!0)]),a(c(q),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:c(r).processing},{default:_(()=>[c(r).processing?(h(),y(c(k),{key:0,class:`animate-spin`})):C(``,!0),s[8]||=o(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{he as default};
\ No newline at end of file
diff --git a/public/build/assets/MyDownloads-Byp76raK.js b/public/build/assets/MyDownloads-CZwTznO0.js
similarity index 85%
rename from public/build/assets/MyDownloads-Byp76raK.js
rename to public/build/assets/MyDownloads-CZwTznO0.js
index a4476c4b..dd1d603e 100644
--- a/public/build/assets/MyDownloads-Byp76raK.js
+++ b/public/build/assets/MyDownloads-CZwTznO0.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as p}from"./AppIcon-DZR1MN11.js";import{t as m}from"./FileIcon-D_jROFBU.js";import{t as h}from"./Panel-CyXtNQ_r.js";var g={key:0,class:`-my-1.5 grid gap-0.5`},_=[`href`],v={class:`min-w-0 flex-1 truncate text-sm`},y={__name:`MyDownloads`,props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]}},setup(y){let b=y,x=b.favorites.length?b.favorites:b.popular;return(b,S)=>(s(),d(h,{title:y.favorites.length?`Meine Downloads`:`Häufig genutzt`,"action-label":`Alle Downloads`,"action-href":`/downloads`},{default:l(()=>[n(x).length?(s(),a(`ul`,g,[(s(!0),a(c,null,o(n(x),t=>(s(),a(`li`,{key:t.id},[i(`a`,{href:t.download_url,class:`-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(m,{extension:t.extension,size:`sm`},null,8,[`extension`]),i(`span`,v,u(t.title),1)],8,_)]))),128))])):f(``,!0),y.favorites.length?f(``,!0):(s(),a(`p`,{key:1,class:r([`text-[13px] text-muted-foreground`,{"mt-3 border-t pt-3":n(x).length}])},[e(n(p),{class:`-mt-0.5 mr-1 inline size-3.5`}),S[0]||=t(`Mit dem Stern unter „Downloads“ merken Sie sich Dateien für diese Kachel. `,-1)],2))]),_:1},8,[`title`]))}};export{y as default};
\ No newline at end of file
+import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as p}from"./AppIcon-BAyAC-oO.js";import{t as m}from"./FileIcon-D0NBDDoM.js";import{t as h}from"./Panel-2UV8H5Yl.js";var g={key:0,class:`-my-1.5 grid gap-0.5`},_=[`href`],v={class:`min-w-0 flex-1 truncate text-sm`},y={__name:`MyDownloads`,props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]}},setup(y){let b=y,x=b.favorites.length?b.favorites:b.popular;return(b,S)=>(s(),d(h,{title:y.favorites.length?`Meine Downloads`:`Häufig genutzt`,"action-label":`Alle Downloads`,"action-href":`/downloads`},{default:l(()=>[n(x).length?(s(),a(`ul`,g,[(s(!0),a(c,null,o(n(x),t=>(s(),a(`li`,{key:t.id},[i(`a`,{href:t.download_url,class:`-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(m,{extension:t.extension,size:`sm`},null,8,[`extension`]),i(`span`,v,u(t.title),1)],8,_)]))),128))])):f(``,!0),y.favorites.length?f(``,!0):(s(),a(`p`,{key:1,class:r([`text-[13px] text-muted-foreground`,{"mt-3 border-t pt-3":n(x).length}])},[e(n(p),{class:`-mt-0.5 mr-1 inline size-3.5`}),S[0]||=t(`Mit dem Stern unter „Downloads“ merken Sie sich Dateien für diese Kachel. `,-1)],2))]),_:1},8,[`title`]))}};export{y as default};
\ No newline at end of file
diff --git a/public/build/assets/MyIt-BLGy2spx.js b/public/build/assets/MyIt-aCPHkoY_.js
similarity index 94%
rename from public/build/assets/MyIt-BLGy2spx.js
rename to public/build/assets/MyIt-aCPHkoY_.js
index ee55926b..d344705b 100644
--- a/public/build/assets/MyIt-BLGy2spx.js
+++ b/public/build/assets/MyIt-aCPHkoY_.js
@@ -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{r as m}from"./app-BIL1bnXp.js";import{t as h}from"./calendar-clock-8H2IkjP5.js";import{n as g}from"./http-CAG9BrJF.js";import{n as _,t as v}from"./message-square-plus-89qxGe_b.js";import{t as y}from"./Panel-CyXtNQ_r.js";import{t as b}from"./Skeleton-fJgmuUSB.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 g.get(`/it-service/uebersicht`)}catch{N.value=!0}}),(o,f)=>(s(),d(y,{title:`Meine IT`,"action-label":`Öffnen`,"action-href":`/it-service`},{default:l(()=>[!M.value&&!N.value?(s(),i(`div`,x,[e(n(b),{class:`h-16`}),e(n(b),{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(_),{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(v),{class:`size-4`}),f[2]||=t(` IT-Problem melden `,-1)]),_:1})]),_:1}))}};export{j as default};
\ No newline at end of file
+import{D as e,E as t,On as n,_ as r,b as i,bt as a,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{r as m}from"./app-0YzlX_sI.js";import{t as h}from"./calendar-clock-8H2IkjP5.js";import{n as g}from"./http-CAG9BrJF.js";import{n as _,t as v}from"./message-square-plus-89qxGe_b.js";import{t as y}from"./Panel-2UV8H5Yl.js";import{t as b}from"./Skeleton-fJgmuUSB.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 g.get(`/it-service/uebersicht`)}catch{N.value=!0}}),(o,f)=>(s(),d(y,{title:`Meine IT`,"action-label":`Öffnen`,"action-href":`/it-service`},{default:l(()=>[!M.value&&!N.value?(s(),i(`div`,x,[e(n(b),{class:`h-16`}),e(n(b),{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(_),{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(v),{class:`size-4`}),f[2]||=t(` IT-Problem melden `,-1)]),_:1})]),_:1}))}};export{j as default};
\ No newline at end of file
diff --git a/public/build/assets/NewColleagues-5dCKNGZx.js b/public/build/assets/NewColleagues-DPPaa3P2.js
similarity index 87%
rename from public/build/assets/NewColleagues-5dCKNGZx.js
rename to public/build/assets/NewColleagues-DPPaa3P2.js
index 4f4bbf84..9e12e476 100644
--- a/public/build/assets/NewColleagues-5dCKNGZx.js
+++ b/public/build/assets/NewColleagues-DPPaa3P2.js
@@ -1 +1 @@
-import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as u}from"./app-BIL1bnXp.js";import{p as d}from"./AppIcon-DZR1MN11.js";import{t as f}from"./Panel-CyXtNQ_r.js";var p={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},m={class:`min-w-0`},h={class:`truncate text-sm font-semibold`},g={class:`truncate text-[13px] text-muted-foreground`},_={__name:`NewColleagues`,props:{people:{type:Array,required:!0}},setup(_){return(v,y)=>(a(),l(f,{title:`Neu im Team`,"action-label":`Alle Personen`,"action-href":`/personen`},{default:s(()=>[n(`ul`,p,[(a(!0),r(o,null,i(_.people,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:`/personen/${i.id}`,class:`flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent`},{default:s(()=>[e(d,{person:i,class:`size-11`},null,8,[`person`]),n(`div`,m,[n(`div`,h,c(i.name),1),n(`div`,g,c(i.job_title||i.department),1)])]),_:2},1032,[`href`])]))),128))])]),_:1}))}};export{_ as default};
\ No newline at end of file
+import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as u}from"./app-0YzlX_sI.js";import{p as d}from"./AppIcon-BAyAC-oO.js";import{t as f}from"./Panel-2UV8H5Yl.js";var p={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},m={class:`min-w-0`},h={class:`truncate text-sm font-semibold`},g={class:`truncate text-[13px] text-muted-foreground`},_={__name:`NewColleagues`,props:{people:{type:Array,required:!0}},setup(_){return(v,y)=>(a(),l(f,{title:`Neu im Team`,"action-label":`Alle Personen`,"action-href":`/personen`},{default:s(()=>[n(`ul`,p,[(a(!0),r(o,null,i(_.people,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:`/personen/${i.id}`,class:`flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent`},{default:s(()=>[e(d,{person:i,class:`size-11`},null,8,[`person`]),n(`div`,m,[n(`div`,h,c(i.name),1),n(`div`,g,c(i.job_title||i.department),1)])]),_:2},1032,[`href`])]))),128))])]),_:1}))}};export{_ as default};
\ No newline at end of file
diff --git a/public/build/assets/NewPageDialog-tLgKOS-Q.js b/public/build/assets/NewPageDialog-BXb-jJpf.js
similarity index 91%
rename from public/build/assets/NewPageDialog-tLgKOS-Q.js
rename to public/build/assets/NewPageDialog-BXb-jJpf.js
index 423e2e95..85d2060e 100644
--- a/public/build/assets/NewPageDialog-tLgKOS-Q.js
+++ b/public/build/assets/NewPageDialog-BXb-jJpf.js
@@ -1 +1 @@
-import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,_ as o,b as s,mt as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as m}from"./app-BIL1bnXp.js";import{n as h}from"./button-CwUSbS9X.js";import{t as g}from"./Input-FGSb2-yK.js";import{i as _,n as v,r as y,t as b}from"./dialog-ys9a88BC.js";import{t as x}from"./DialogDescription-DWZeexBu.js";import{t as S}from"./DialogHeader-DuqiL3ry.js";var C={class:`grid gap-1.5`},w={key:0,class:`text-[13px] text-destructive`},T={__name:`NewPageDialog`,props:e({parentId:{type:Number,default:null},parentTitle:{type:String,default:``}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`before-create`],[`update:open`]),setup(e,{emit:T}){let E=e,D=r(e,`open`),O=T,k=m({title:``,parent_id:null});i(D,e=>e&&(k.reset(),k.clearErrors()));async function A(){O(`before-create`),k.parent_id=E.parentId,k.post(`/redaktion/seiten`)}return(r,i)=>(c(),d(a(_),{open:D.value,"onUpdate:open":i[2]||=e=>D.value=e},{default:l(()=>[t(a(y),{class:`sm:max-w-md`},{default:l(()=>[t(a(S),null,{default:l(()=>[t(a(b),null,{default:l(()=>[n(u(e.parentId?`Unterseite anlegen`:`Neue Seite`),1)]),_:1}),e.parentId?(c(),d(a(x),{key:0},{default:l(()=>[n(`Unter „`+u(e.parentTitle)+`“. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,1)]),_:1})):(c(),d(a(x),{key:1},{default:l(()=>[...i[3]||=[n(`Auf der obersten Ebene. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,-1)]]),_:1}))]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:p(A,[`prevent`])},[o(`label`,C,[i[4]||=o(`span`,{class:`text-[13px] font-medium`},`Titel`,-1),t(a(g),{modelValue:a(k).title,"onUpdate:modelValue":i[0]||=e=>a(k).title=e,maxlength:`200`,autofocus:``,"aria-invalid":!!a(k).errors.title},null,8,[`modelValue`,`aria-invalid`]),a(k).errors.title?(c(),s(`span`,w,u(a(k).errors.title),1)):f(``,!0)]),t(a(v),null,{default:l(()=>[t(a(h),{type:`button`,variant:`outline`,onClick:i[1]||=e=>D.value=!1},{default:l(()=>[...i[5]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(h),{type:`submit`,disabled:a(k).processing||!a(k).title.trim()},{default:l(()=>[...i[6]||=[n(`Anlegen und bearbeiten`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}};export{T as t};
\ No newline at end of file
+import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,_ as o,b as s,mt as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as m}from"./app-0YzlX_sI.js";import{n as h}from"./button-CwUSbS9X.js";import{t as g}from"./Input-FGSb2-yK.js";import{i as _,n as v,r as y,t as b}from"./dialog-i3G0C6kJ.js";import{t as x}from"./DialogDescription-ClgsGa-Q.js";import{t as S}from"./DialogHeader-DuqiL3ry.js";var C={class:`grid gap-1.5`},w={key:0,class:`text-[13px] text-destructive`},T={__name:`NewPageDialog`,props:e({parentId:{type:Number,default:null},parentTitle:{type:String,default:``}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`before-create`],[`update:open`]),setup(e,{emit:T}){let E=e,D=r(e,`open`),O=T,k=m({title:``,parent_id:null});i(D,e=>e&&(k.reset(),k.clearErrors()));async function A(){O(`before-create`),k.parent_id=E.parentId,k.post(`/redaktion/seiten`)}return(r,i)=>(c(),d(a(_),{open:D.value,"onUpdate:open":i[2]||=e=>D.value=e},{default:l(()=>[t(a(y),{class:`sm:max-w-md`},{default:l(()=>[t(a(S),null,{default:l(()=>[t(a(b),null,{default:l(()=>[n(u(e.parentId?`Unterseite anlegen`:`Neue Seite`),1)]),_:1}),e.parentId?(c(),d(a(x),{key:0},{default:l(()=>[n(`Unter „`+u(e.parentTitle)+`“. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,1)]),_:1})):(c(),d(a(x),{key:1},{default:l(()=>[...i[3]||=[n(`Auf der obersten Ebene. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,-1)]]),_:1}))]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:p(A,[`prevent`])},[o(`label`,C,[i[4]||=o(`span`,{class:`text-[13px] font-medium`},`Titel`,-1),t(a(g),{modelValue:a(k).title,"onUpdate:modelValue":i[0]||=e=>a(k).title=e,maxlength:`200`,autofocus:``,"aria-invalid":!!a(k).errors.title},null,8,[`modelValue`,`aria-invalid`]),a(k).errors.title?(c(),s(`span`,w,u(a(k).errors.title),1)):f(``,!0)]),t(a(v),null,{default:l(()=>[t(a(h),{type:`button`,variant:`outline`,onClick:i[1]||=e=>D.value=!1},{default:l(()=>[...i[5]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(h),{type:`submit`,disabled:a(k).processing||!a(k).title.trim()},{default:l(()=>[...i[6]||=[n(`Anlegen und bearbeiten`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}};export{T as t};
\ No newline at end of file
diff --git a/public/build/assets/NewsCard-DObi3Nd6.js b/public/build/assets/NewsCard-B5f-zlDb.js
similarity index 88%
rename from public/build/assets/NewsCard-DObi3Nd6.js
rename to public/build/assets/NewsCard-B5f-zlDb.js
index bdd3854e..cc9cfa2d 100644
--- a/public/build/assets/NewsCard-DObi3Nd6.js
+++ b/public/build/assets/NewsCard-B5f-zlDb.js
@@ -1 +1 @@
-import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as l}from"./app-BIL1bnXp.js";import{o as u}from"./format-BsuBtvUs.js";import{n as d,t as f}from"./NewsImage-BgNZkkUr.js";var p={class:`flex flex-1 flex-col p-4`},m={class:`mt-1 line-clamp-2 text-[15px] leading-snug font-semibold group-hover:underline`},h={key:0,class:`mt-1.5 line-clamp-2 text-[13px] text-muted-foreground`},g={class:`mt-auto pt-3 text-xs text-muted-foreground`},_={__name:`NewsCard`,props:{post:{type:Object,required:!0}},setup(_){return(v,y)=>(i(),s(t(l),{href:`/neuigkeiten/${_.post.slug}`,class:`group flex h-full flex-col overflow-hidden rounded-lg border bg-card transition-shadow hover:shadow-md`},{default:a(()=>[e(f,{src:_.post.thumb_url,alt:_.post.title},null,8,[`src`,`alt`]),n(`div`,p,[e(d,{category:_.post.category},null,8,[`category`]),n(`h3`,m,o(_.post.title),1),_.post.teaser?(i(),r(`p`,h,o(_.post.teaser),1)):c(``,!0),n(`p`,g,o(t(u)(_.post.published_at))+` · `+o(_.post.reading_minutes)+` Min.`,1)])]),_:1},8,[`href`]))}};export{_ as t};
\ No newline at end of file
+import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as l}from"./app-0YzlX_sI.js";import{o as u}from"./format-BsuBtvUs.js";import{n as d,t as f}from"./NewsImage-Dlma_LfF.js";var p={class:`flex flex-1 flex-col p-4`},m={class:`mt-1 line-clamp-2 text-[15px] leading-snug font-semibold group-hover:underline`},h={key:0,class:`mt-1.5 line-clamp-2 text-[13px] text-muted-foreground`},g={class:`mt-auto pt-3 text-xs text-muted-foreground`},_={__name:`NewsCard`,props:{post:{type:Object,required:!0}},setup(_){return(v,y)=>(i(),s(t(l),{href:`/neuigkeiten/${_.post.slug}`,class:`group flex h-full flex-col overflow-hidden rounded-lg border bg-card transition-shadow hover:shadow-md`},{default:a(()=>[e(f,{src:_.post.thumb_url,alt:_.post.title},null,8,[`src`,`alt`]),n(`div`,p,[e(d,{category:_.post.category},null,8,[`category`]),n(`h3`,m,o(_.post.title),1),_.post.teaser?(i(),r(`p`,h,o(_.post.teaser),1)):c(``,!0),n(`p`,g,o(t(u)(_.post.published_at))+` · `+o(_.post.reading_minutes)+` Min.`,1)])]),_:1},8,[`href`]))}};export{_ as t};
\ No newline at end of file
diff --git a/public/build/assets/NewsImage-BgNZkkUr.js b/public/build/assets/NewsImage-Dlma_LfF.js
similarity index 85%
rename from public/build/assets/NewsImage-BgNZkkUr.js
rename to public/build/assets/NewsImage-Dlma_LfF.js
index 390cc494..4f9eccf2 100644
--- a/public/build/assets/NewsImage-BgNZkkUr.js
+++ b/public/build/assets/NewsImage-Dlma_LfF.js
@@ -1 +1 @@
-import{D as e,On as t,b as n,mt as r,tr as i,y as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{F as o}from"./AppIcon-DZR1MN11.js";var s={key:0,class:`text-[11px] font-semibold tracking-wide text-accent2-text uppercase`},c={__name:`CategoryLabel`,props:{category:{type:Object,default:null}},setup(e){return(t,o)=>e.category?(r(),n(`span`,s,i(e.category.name),1)):a(``,!0)}},l={class:`relative aspect-video overflow-hidden bg-muted`},u=[`src`,`alt`],d={key:1,class:`grid size-full place-items-center bg-brand-soft`},f={__name:`NewsImage`,props:{src:{type:String,default:null},alt:{type:String,default:``}},setup(i){return(a,s)=>(r(),n(`div`,l,[i.src?(r(),n(`img`,{key:0,src:i.src,alt:i.alt,loading:`lazy`,class:`size-full object-cover`},null,8,u)):(r(),n(`div`,d,[e(t(o),{class:`size-1/4 max-h-10 max-w-10 text-brand-text opacity-60`,"stroke-width":1.5})]))]))}};export{c as n,f as t};
\ No newline at end of file
+import{D as e,On as t,b as n,mt as r,tr as i,y as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{F as o}from"./AppIcon-BAyAC-oO.js";var s={key:0,class:`text-[11px] font-semibold tracking-wide text-accent2-text uppercase`},c={__name:`CategoryLabel`,props:{category:{type:Object,default:null}},setup(e){return(t,o)=>e.category?(r(),n(`span`,s,i(e.category.name),1)):a(``,!0)}},l={class:`relative aspect-video overflow-hidden bg-muted`},u=[`src`,`alt`],d={key:1,class:`grid size-full place-items-center bg-brand-soft`},f={__name:`NewsImage`,props:{src:{type:String,default:null},alt:{type:String,default:``}},setup(i){return(a,s)=>(r(),n(`div`,l,[i.src?(r(),n(`img`,{key:0,src:i.src,alt:i.alt,loading:`lazy`,class:`size-full object-cover`},null,8,u)):(r(),n(`div`,d,[e(t(o),{class:`size-1/4 max-h-10 max-w-10 text-brand-text opacity-60`,"stroke-width":1.5})]))]))}};export{c as n,f as t};
\ No newline at end of file
diff --git a/public/build/assets/NewsListItem-C5pHNYm-.js b/public/build/assets/NewsListItem-D1DSgoak.js
similarity index 84%
rename from public/build/assets/NewsListItem-C5pHNYm-.js
rename to public/build/assets/NewsListItem-D1DSgoak.js
index 6eec3e13..30d2a6d8 100644
--- a/public/build/assets/NewsListItem-C5pHNYm-.js
+++ b/public/build/assets/NewsListItem-D1DSgoak.js
@@ -1 +1 @@
-import{D as e,On as t,_ as n,mt as r,qt as i,tr as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as s}from"./app-BIL1bnXp.js";import{a as c}from"./format-BsuBtvUs.js";import{n as l,t as u}from"./NewsImage-BgNZkkUr.js";var d={class:`min-w-0`},f={class:`mt-0.5 line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},p={class:`mt-1 text-xs text-muted-foreground`},m={__name:`NewsListItem`,props:{post:{type:Object,required:!0}},setup(m){return(h,g)=>(r(),o(t(s),{href:`/neuigkeiten/${m.post.slug}`,class:`group flex gap-4 py-3`},{default:i(()=>[e(u,{src:m.post.thumb_url,alt:m.post.title,class:`w-28 shrink-0 rounded-md sm:w-32`},null,8,[`src`,`alt`]),n(`div`,d,[e(l,{category:m.post.category},null,8,[`category`]),n(`h3`,f,a(m.post.title),1),n(`p`,p,a(t(c)(m.post.published_at)),1)])]),_:1},8,[`href`]))}};export{m as t};
\ No newline at end of file
+import{D as e,On as t,_ as n,mt as r,qt as i,tr as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as s}from"./app-0YzlX_sI.js";import{a as c}from"./format-BsuBtvUs.js";import{n as l,t as u}from"./NewsImage-Dlma_LfF.js";var d={class:`min-w-0`},f={class:`mt-0.5 line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},p={class:`mt-1 text-xs text-muted-foreground`},m={__name:`NewsListItem`,props:{post:{type:Object,required:!0}},setup(m){return(h,g)=>(r(),o(t(s),{href:`/neuigkeiten/${m.post.slug}`,class:`group flex gap-4 py-3`},{default:i(()=>[e(u,{src:m.post.thumb_url,alt:m.post.title,class:`w-28 shrink-0 rounded-md sm:w-32`},null,8,[`src`,`alt`]),n(`div`,d,[e(l,{category:m.post.category},null,8,[`category`]),n(`h3`,f,a(m.post.title),1),n(`p`,p,a(t(c)(m.post.published_at)),1)])]),_:1},8,[`href`]))}};export{m as t};
\ No newline at end of file
diff --git a/public/build/assets/Organigram-kJ1ChRkd.js b/public/build/assets/Organigram-B6AVQEZk.js
similarity index 98%
rename from public/build/assets/Organigram-kJ1ChRkd.js
rename to public/build/assets/Organigram-B6AVQEZk.js
index 41a8d227..9e9f1fb3 100644
--- a/public/build/assets/Organigram-kJ1ChRkd.js
+++ b/public/build/assets/Organigram-B6AVQEZk.js
@@ -1 +1 @@
-import{D as e,E as t,Ht as n,On as r,St as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,g as d,mt as f,o as p,qt as m,tr as h,tt as g,v as _,vn as v,wt as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as x,r as S}from"./app-BIL1bnXp.js";import{O as C,k as w}from"./dist-DtGNiYlK.js";import{B as T,D as E,I as D,N as ee,O,V as k,m as A,p as j}from"./AppIcon-DZR1MN11.js";import{t as M}from"./AppLayout-dYp4WcQT.js";import{b as N,n as P,v as F,w as I}from"./http-CAG9BrJF.js";import{t as L}from"./chevron-up-DJvyZPom.js";import{t as te}from"./minus-CmsbcqBG.js";import{t as ne}from"./plus-B_ij2ng2.js";import{t as R}from"./smartphone-BE2l7T-2.js";import{t as z}from"./EmptyState-Ceq4v8mE.js";import{t as B}from"./PageHeader-C1gQ5QQB.js";import{n as V}from"./button-CwUSbS9X.js";import{t as H}from"./Input-FGSb2-yK.js";import{t as U}from"./Skeleton-fJgmuUSB.js";import{t as W}from"./useStoredChoice-BAacDiWy.js";var G=w({name:`maximize`,size:24,node:[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]}),K=w({name:`scan-search`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]}),q=[`id`],J={class:`min-w-0 flex-1`},Y=[`title`],X=[`title`,`aria-label`],Z=[`aria-expanded`],Q={__name:`OrgCard`,props:{person:{type:Object,required:!0},compact:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},open:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:[`toggle`,`focus`],setup(n){let i=n,c=d(()=>A(i.person.department));return(i,l)=>(f(),s(`div`,{id:`person-${n.person.id}`,class:a([`group/card relative overflow-hidden rounded-lg border bg-card text-left shadow-xs transition-shadow hover:shadow-sm`,[n.compact?`w-54`:`w-56`,n.highlighted?`border-brand-400 ring-3 ring-brand-300/50`:``]])},[o(`span`,{class:a([`absolute inset-y-0 left-0 w-1 rounded-l-lg`,c.value.bar]),"aria-hidden":`true`},null,2),o(`div`,{class:a([`flex items-center gap-3`,n.compact?`px-3 py-2`:`px-3.5 pt-3 pb-2.5`])},[e(j,{person:n.person,class:a(n.compact?`size-7 text-[10px]`:`size-10`)},null,8,[`person`,`class`]),o(`div`,J,[n.person.department&&!n.compact?(f(),s(`p`,{key:0,class:a([`truncate text-[10.5px] font-semibold tracking-wide uppercase`,c.value.text])},h(n.person.department),3)):b(``,!0),e(r(S),{href:`/personen/${n.person.id}`,class:`block truncate text-sm leading-tight font-semibold hover:underline`},{default:m(()=>[t(h(n.person.name),1)]),_:1},8,[`href`]),o(`p`,{class:`truncate text-xs leading-tight text-muted-foreground`,title:n.person.job_title},h(n.person.job_title||`–`),9,Y)])],2),o(`button`,{type:`button`,class:`absolute top-1.5 right-1.5 grid size-7 place-items-center rounded-md text-muted-foreground opacity-0 transition-opacity group-hover/card:opacity-100 hover:bg-accent hover:text-foreground focus-visible:opacity-100`,title:`${n.person.name} in den Fokus`,"aria-label":`${n.person.name} in den Fokus`,onClick:l[0]||=e=>i.$emit(`focus`,n.person)},[e(r(K),{class:`size-4`})],8,X),!n.compact&&n.person.reports?(f(),s(`button`,{key:0,type:`button`,class:a([`flex w-full items-center justify-center gap-1.5 rounded-b-lg border-t py-1.5 text-xs font-medium hover:bg-accent`,n.open?`bg-brand-soft/60 text-brand-soft-foreground`:`text-muted-foreground`]),"aria-expanded":n.open,onClick:l[1]||=e=>i.$emit(`toggle`)},[n.loading?(f(),_(r(C),{key:0,class:`size-3.5 animate-spin`})):(f(),_(y(n.open?r(L):r(I)),{key:1,class:`size-3.5`})),t(` `+h(n.person.reports)+` `+h(n.person.reports===1?`Person`:`Personen`)+` im Team `,1)],10,Z)):b(``,!0)],10,q))}},re={key:0,"aria-busy":`true`},ie={class:`org-members`},ae={class:`grid flex-1 gap-1.5`},oe={key:1},se={key:0},ce={__name:`OrgChartNode`,props:{person:{type:Object,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let l=t,u=()=>l.open.includes(l.person.id)&&l.teams[l.person.id]!==void 0,m=v(l.teams[l.person.id]??null),h=v(u()),g=v(!1);n(()=>l.teams,e=>{m.value=e[l.person.id]??m.value,h.value=u()});let y=d(()=>(m.value??[]).filter(e=>e.reports)),x=d(()=>(m.value??[]).filter(e=>!e.reports));async function S(){if(h.value=!h.value,h.value&&m.value===null){g.value=!0;try{m.value=(await P.get(`/personen/organigramm/${l.person.id}/team`)).team}catch{h.value=!1}finally{g.value=!1}}}return(n,l)=>{let u=i(`OrgChartNode`,!0);return f(),s(`li`,null,[e(Q,{person:t.person,highlighted:t.person.id===t.focus,open:h.value,loading:g.value,onToggle:S,onFocus:l[0]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`,`open`,`loading`]),h.value&&g.value?(f(),s(`ul`,re,[o(`li`,null,[o(`div`,ie,[(f(),s(p,null,c(3,t=>o(`div`,{key:t,class:`flex w-54 items-center gap-3 rounded-lg border bg-card px-3 py-2`},[e(r(U),{class:`size-7 rounded-full`}),o(`div`,ae,[e(r(U),{class:`h-3 w-3/4`}),e(r(U),{class:`h-2.5 w-1/2`})])])),64))])])])):h.value&&m.value?.length?(f(),s(`ul`,oe,[(f(!0),s(p,null,c(y.value,e=>(f(),_(u,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:l[1]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128)),x.value.length?(f(),s(`li`,se,[o(`div`,{class:a([`org-members`,{"org-members-wide":x.value.length>8}])},[(f(!0),s(p,null,c(x.value,e=>(f(),_(Q,{key:e.id,person:e,compact:``,highlighted:e.id===t.focus,onFocus:l[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`]))),128))],2)])):b(``,!0)])):b(``,!0)])}}},le={class:`relative overflow-hidden rounded-lg border bg-card`},ue={class:`absolute top-3 right-3 z-10 flex items-center rounded-md border bg-card shadow-xs`},de={class:`w-11 text-center text-xs text-muted-foreground tabular-nums`},fe={class:`org-tree`},pe={__name:`OrgChart`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let i=t,a=v(null),d=v(1),m=[.5,.67,.8,1,1.15];function y(e){let t=m.findIndex(e=>e>=d.value-.001);d.value=m[Math.min(m.length-1,Math.max(0,t+e))]}function b(){let e=a.value;if(!e)return;let t=e.scrollWidth/d.value;d.value=Math.max(.4,Math.min(1,(e.clientWidth-32)/t)),g(()=>e.scrollLeft=(e.scrollWidth-e.clientWidth)/2)}let x=null;function S(e){e.pointerType!==`mouse`||e.button!==0||e.target.closest(`a, button`)||(x={x:e.clientX,y:e.clientY,left:a.value.scrollLeft,top:a.value.scrollTop},a.value.setPointerCapture(e.pointerId))}function C(e){x&&(a.value.scrollLeft=x.left-(e.clientX-x.x),a.value.scrollTop=x.top-(e.clientY-x.y))}function w(){x=null}function T(){g(()=>{let e=a.value,t=i.focus&&document.getElementById(`person-${i.focus}`)||i.roots.length&&document.getElementById(`person-${i.roots[0].id}`);if(e&&t){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();e.scrollLeft+=n.left-r.left-(r.width-n.width)/2,i.focus&&(e.scrollTop+=n.top-r.top-Math.min(120,(r.height-n.height)/2))}})}return l(T),n(()=>i.focus,T),(n,i)=>(f(),s(`div`,le,[o(`div`,ue,[o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Verkleinern`,onClick:i[0]||=e=>y(-1)},[e(r(te),{class:`size-4`})]),o(`span`,de,h(Math.round(d.value*100))+` %`,1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Vergrößern`,onClick:i[1]||=e=>y(1)},[e(r(ne),{class:`size-4`})]),i[3]||=o(`span`,{class:`h-5 w-px bg-border`},null,-1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,title:`Einpassen`,"aria-label":`Einpassen`,onClick:b},[e(r(G),{class:`size-4`})])]),o(`div`,{ref_key:`canvas`,ref:a,class:`org-canvas max-h-[calc(100vh-12rem)] min-h-[18rem] cursor-grab overflow-auto active:cursor-grabbing`,onPointerdown:S,onPointermove:C,onPointerup:w,onPointercancel:w},[o(`div`,{class:`inline-block min-w-full px-8 pt-7 pb-8`,style:u({zoom:d.value})},[o(`ul`,fe,[(f(!0),s(p,null,c(t.roots,e=>(f(),_(ce,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:i[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128))])],4)],544)]))}},me={class:`grid gap-5`},he={class:`relative overflow-hidden rounded-lg border bg-card`},ge={class:`flex flex-col gap-5 p-5 sm:flex-row sm:items-center`},_e={class:`min-w-0 flex-1`},ve={class:`text-xl leading-tight font-semibold tracking-tight`},ye={key:1,class:`text-sm text-muted-foreground`},be={class:`mt-2 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},xe=[`href`],Se={key:1,class:`truncate text-muted-foreground`},Ce={class:`flex shrink-0 flex-wrap gap-2 sm:flex-col`},we={class:`rounded-lg border bg-card`},Te={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ee={class:`font-normal text-muted-foreground`},De={key:0,class:`overflow-hidden rounded-b-lg`},Oe={class:`-mr-px -mb-px grid sm:grid-cols-2 xl:grid-cols-3`},ke=[`onClick`],Ae={class:`min-w-0 flex-1`},je={class:`block truncate text-sm font-medium`},Me={class:`block truncate text-xs text-muted-foreground`},Ne=[`title`],Pe={key:0,class:`flex items-center gap-1 px-4 pb-2.5 pl-16`},Fe=[`title`,`onClick`],Ie={key:0,class:`ml-1 text-xs text-muted-foreground`},Le={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},Re={key:0,class:`grid gap-5`},ze={key:0,class:`rounded-lg border bg-card`},Be={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ve={class:`p-2`},He={key:0,class:`absolute top-9 bottom-0 left-[1.45rem] w-px bg-border`,"aria-hidden":`true`},Ue=[`onClick`],We={class:`min-w-0`},Ge={class:`block truncate text-sm font-medium`},Ke={class:`block truncate text-xs text-muted-foreground`},qe={key:1,class:`rounded-lg border bg-card`},Je={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ye={class:`font-normal text-muted-foreground`},Xe={class:`max-h-80 overflow-y-auto p-2`},Ze=[`onClick`],Qe={class:`min-w-0`},$e={class:`block truncate text-[13px] font-medium`},et={class:`block truncate text-xs text-muted-foreground`},tt={__name:`OrgFocus`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},path:{type:Array,default:()=>[]},details:{type:Object,required:!0}},emits:[`focus`,`show-in-tree`],setup(n){let i=n,l=d(()=>{let e=new Map;return[...i.roots,...Object.values(i.teams).flat()].forEach(t=>e.set(t.id,t)),e}),u=d(()=>i.path.slice(0,-1).map(e=>l.value.get(e)).filter(Boolean)),g=d(()=>u.value.at(-1)??null),v=d(()=>g.value?(i.teams[g.value.id]??[]).filter(e=>e.id!==i.details.id):[]),x=d(()=>i.teams[i.details.id]??[]),C=d(()=>[{icon:k,value:i.details.email,href:`mailto:${i.details.email}`},{icon:N,value:i.details.phone,href:i.details.phone&&`tel:${i.details.phone}`},{icon:R,value:i.details.mobile,href:i.details.mobile&&`tel:${i.details.mobile}`},{icon:T,value:[i.details.department,i.details.location].filter(Boolean).join(` · `)}].filter(e=>e.value));return(i,l)=>(f(),s(`div`,{class:a([`grid items-start gap-5`,{"lg:grid-cols-[minmax(0,1fr)_19rem]":u.value.length||v.value.length}])},[o(`div`,me,[o(`section`,he,[o(`span`,{class:a([`absolute inset-y-0 left-0 w-1`,r(A)(n.details.department).bar]),"aria-hidden":`true`},null,2),o(`div`,ge,[e(j,{person:n.details,class:`size-20 text-xl ring-4 ring-brand-soft`},null,8,[`person`]),o(`div`,_e,[n.details.department?(f(),s(`p`,{key:0,class:a([`text-[11px] font-semibold tracking-wide uppercase`,r(A)(n.details.department).text])},h(n.details.department),3)):b(``,!0),o(`h2`,ve,h(n.details.name),1),n.details.job_title?(f(),s(`p`,ye,h(n.details.job_title),1)):b(``,!0),o(`ul`,be,[(f(!0),s(p,null,c(C.value,e=>(f(),s(`li`,{key:e.value,class:`flex min-w-0 items-center gap-1.5`},[(f(),_(y(e.icon),{class:`size-3.5 shrink-0 text-muted-foreground`})),e.href?(f(),s(`a`,{key:0,href:e.href,class:`truncate text-brand-text hover:underline`},h(e.value),9,xe)):(f(),s(`span`,Se,h(e.value),1))]))),128))])]),o(`div`,Ce,[e(r(V),{size:`sm`,"as-child":``},{default:m(()=>[e(r(S),{href:`/personen/${n.details.id}`},{default:m(()=>[e(r(O)),l[1]||=t(` Profil`,-1)]),_:1},8,[`href`])]),_:1}),e(r(V),{variant:`outline`,size:`sm`,onClick:l[0]||=e=>i.$emit(`show-in-tree`,n.details)},{default:m(()=>[e(r(D)),l[2]||=t(` Im Baum`,-1)]),_:1})])])]),o(`section`,we,[o(`h3`,Te,[e(r(E),{class:`size-4 text-brand-text`}),l[3]||=t(` Direkt unterstellt `,-1),o(`span`,Ee,h(x.value.length),1)]),x.value.length?(f(),s(`div`,De,[o(`ul`,Oe,[(f(!0),s(p,null,c(x.value,a=>(f(),s(`li`,{key:a.id,class:`border-r border-b hover:bg-accent/60`},[o(`button`,{type:`button`,class:`flex w-full items-center gap-3 px-4 py-3 text-left`,onClick:e=>i.$emit(`focus`,a)},[e(j,{person:a,class:`size-9`},null,8,[`person`]),o(`span`,Ae,[o(`span`,je,h(a.name),1),o(`span`,Me,h(a.job_title||`–`),1)]),a.reports?(f(),s(`span`,{key:0,class:`inline-flex shrink-0 items-center gap-1 rounded-full bg-brand-soft px-2 py-0.5 text-[11px] font-medium text-brand-soft-foreground`,title:`${a.reports} im Team`},[e(r(E),{class:`size-3`}),t(` `+h(a.reports),1)],8,Ne)):b(``,!0)],8,ke),n.teams[a.id]?.length?(f(),s(`div`,Pe,[(f(!0),s(p,null,c(n.teams[a.id].slice(0,7),t=>(f(),s(`button`,{key:t.id,type:`button`,class:`-ml-1 rounded-full ring-2 ring-card first:ml-0 hover:ring-brand-300`,title:`${t.name}${t.job_title?` – `+t.job_title:``}`,onClick:e=>i.$emit(`focus`,t)},[e(j,{person:t,class:`size-6 text-[9px]`},null,8,[`person`])],8,Fe))),128)),n.teams[a.id].length>7?(f(),s(`span`,Ie,`+`+h(n.teams[a.id].length-7),1)):b(``,!0)])):b(``,!0)]))),128))])])):(f(),s(`p`,Le,`Keine direkt unterstellten Personen.`))])]),u.value.length||v.value.length?(f(),s(`aside`,Re,[u.value.length?(f(),s(`section`,ze,[o(`h3`,Be,[e(r(L),{class:`size-4 text-brand-text`}),l[4]||=t(` Berichtet an`,-1)]),o(`ol`,Ve,[(f(!0),s(p,null,c([...u.value].reverse(),(t,n)=>(f(),s(`li`,{key:t.id,class:`relative`},[ni.$emit(`focus`,t)},[e(j,{person:t,class:`size-8 text-[11px]`},null,8,[`person`]),o(`span`,We,[o(`span`,Ge,h(t.name),1),o(`span`,Ke,h(t.job_title||t.department||`–`),1)])],8,Ue)]))),128))])])):b(``,!0),v.value.length?(f(),s(`section`,qe,[o(`h3`,Je,[e(r(E),{class:`size-4 text-brand-text`}),l[5]||=t(` Im selben Team `,-1),o(`span`,Ye,h(v.value.length),1)]),o(`ul`,Xe,[(f(!0),s(p,null,c(v.value,t=>(f(),s(`li`,{key:t.id},[o(`button`,{type:`button`,class:`flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left hover:bg-accent`,onClick:e=>i.$emit(`focus`,t)},[e(j,{person:t,class:`size-7 text-[10px]`},null,8,[`person`]),o(`span`,Qe,[o(`span`,$e,h(t.name),1),o(`span`,et,h(t.job_title||`–`),1)])],8,Ze)]))),128))])])):b(``,!0)])):b(``,!0)],2))}},$={class:`flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center`},nt={class:`inline-flex self-start rounded-md border bg-card p-0.5`,role:`group`,"aria-label":`Ansicht`},rt=[`aria-pressed`,`onClick`],it={class:`relative sm:w-80`},at={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-72 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},ot=[`onClick`],st={class:`min-w-0`},ct={class:`block truncate font-medium`},lt={class:`block truncate text-xs text-muted-foreground`},ut={key:0,class:`rounded-lg border bg-card`},dt={key:0,class:`mb-3 flex items-center gap-2 text-[13px]`},ft={key:1,class:`mb-3 flex flex-wrap gap-x-4 gap-y-1.5 text-xs text-muted-foreground`,"aria-label":`Abteilungen`},pt={key:3,class:`mt-4 text-[13px] text-muted-foreground`},mt={__name:`Organigram`,props:{roots:{type:Array,required:!0},path:{type:Array,default:()=>[]},open:{type:Array,default:()=>[]},teams:{type:Object,default:()=>({})},focus:{type:Number,default:null},details:{type:Object,default:null},view:{type:String,default:`baum`},stats:{type:Object,default:()=>({people:0,leaders:0})},unassigned:{type:Number,default:0}},setup(i){let u=i,g=W(`organigram.view`,`baum`,[`baum`,`fokus`]);l(()=>{!new URLSearchParams(window.location.search).has(`ansicht`)&&g.value!==u.view&&C(g.value,u.focus,!0)}),n(()=>u.view,e=>g.value=e);function C(e,t=u.focus,n=!1){let r={ansicht:e};t&&(r.person=t),x.get(`/personen/organigramm`,r,{preserveScroll:e===`fokus`,replace:n})}let w=v(``),T=v([]),E;n(w,e=>{if(clearTimeout(E),e.trim().length<2){T.value=[];return}E=setTimeout(async()=>{T.value=(await P.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`)).people},250)});function O(e){w.value=``,T.value=[],C(u.view,e.id)}let k=e=>e.toLocaleString(`de-DE`),N=d(()=>[...new Set([...u.roots,...Object.values(u.teams).flat()].map(e=>e.department).filter(Boolean))].sort((e,t)=>e.localeCompare(t,`de`)).slice(0,16));return(n,l)=>(f(),_(M,{title:`Organigramm`},{default:m(()=>[e(B,{title:`Organigramm`,breadcrumbs:[{label:`Personen`,href:`/personen`}],description:`${k(i.stats.people)} Personen · ${k(i.stats.leaders)} mit Personalverantwortung`},{actions:m(()=>[o(`div`,$,[o(`div`,nt,[(f(!0),s(p,null,c([{key:`baum`,icon:r(D),label:`Baum`},{key:`fokus`,icon:r(K),label:`Fokus`}],e=>(f(),s(`button`,{key:e.key,type:`button`,class:a([`inline-flex h-9 items-center gap-1.5 rounded px-3 text-[13px]`,i.view===e.key?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":i.view===e.key,onClick:t=>i.view!==e.key&&C(e.key)},[(f(),_(y(e.icon),{class:`size-4`})),t(` `+h(e.label),1)],10,rt))),128))]),o(`div`,it,[e(r(ee),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(r(H),{modelValue:w.value,"onUpdate:modelValue":l[0]||=e=>w.value=e,class:`h-10 bg-card pl-9`,placeholder:`Person finden …`,"aria-label":`Person im Organigramm finden`,autocomplete:`off`},null,8,[`modelValue`]),T.value.length?(f(),s(`ul`,at,[(f(!0),s(p,null,c(T.value,t=>(f(),s(`li`,{key:t.id},[o(`button`,{type:`button`,class:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm hover:bg-accent`,onClick:e=>O(t)},[e(j,{person:t,class:`size-7 text-[10px]`},null,8,[`person`]),o(`span`,st,[o(`span`,ct,h(t.name),1),o(`span`,lt,h(t.job_title),1)])],8,ot)]))),128))])):b(``,!0)])])]),_:1},8,[`description`]),i.roots.length?i.view===`fokus`&&i.details?(f(),_(tt,{key:1,roots:i.roots,teams:i.teams,path:i.path,details:i.details,onFocus:l[1]||=e=>C(`fokus`,e.id),onShowInTree:l[2]||=e=>C(`baum`,e.id)},null,8,[`roots`,`teams`,`path`,`details`])):(f(),s(p,{key:2},[i.focus?(f(),s(`div`,dt,[l[5]||=o(`span`,{class:`text-muted-foreground`},`Der Weg zur gesuchten Person ist aufgeklappt.`,-1),e(r(S),{href:`/personen/organigramm?ansicht=baum`,class:`inline-flex items-center gap-1 font-medium text-brand-text hover:underline`},{default:m(()=>[e(r(F),{class:`size-3.5`}),l[4]||=t(` Zurücksetzen`,-1)]),_:1})])):b(``,!0),N.value.length>1?(f(),s(`ul`,ft,[(f(!0),s(p,null,c(N.value,e=>(f(),s(`li`,{key:e,class:`flex items-center gap-1.5`},[o(`span`,{class:a([`size-2.5 rounded-sm`,r(A)(e).bar])},null,2),t(h(e),1)]))),128))])):b(``,!0),e(pe,{roots:i.roots,teams:i.teams,open:i.open,focus:i.focus,onFocus:l[3]||=e=>C(`fokus`,e.id)},null,8,[`roots`,`teams`,`open`,`focus`])],64)):(f(),s(`div`,ut,[e(z,{icon:r(D),title:`Noch kein Organigramm`,text:`Es sind noch keine Vorgesetzten hinterlegt. Sie kommen aus dem Anmeldedienst (z. B. Entra ID) oder werden im Admin-Bereich bei den Benutzern eingetragen.`},null,8,[`icon`])])),i.unassigned?(f(),s(`p`,pt,h(i.unassigned===1?`1 Person`:`${k(i.unassigned)} Personen`)+` ohne Vorgesetzte*n und ohne Team `+h(i.unassigned===1?`erscheint`:`erscheinen`)+` hier nicht. `,1)):b(``,!0)]),_:1}))}};export{mt as default};
\ No newline at end of file
+import{D as e,E as t,Ht as n,On as r,St as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,g as d,mt as f,o as p,qt as m,tr as h,tt as g,v as _,vn as v,wt as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as x,r as S}from"./app-0YzlX_sI.js";import{O as C,k as w}from"./dist-DtGNiYlK.js";import{B as T,D as E,I as D,N as ee,O,V as k,m as A,p as j}from"./AppIcon-BAyAC-oO.js";import{t as M}from"./AppLayout-BZsS7ZqB.js";import{b as N,n as P,v as F,w as I}from"./http-CAG9BrJF.js";import{t as L}from"./chevron-up-DJvyZPom.js";import{t as te}from"./minus-CmsbcqBG.js";import{t as ne}from"./plus-B_ij2ng2.js";import{t as R}from"./smartphone-BE2l7T-2.js";import{t as z}from"./EmptyState-Ceq4v8mE.js";import{t as B}from"./PageHeader-BF5yxdNS.js";import{n as V}from"./button-CwUSbS9X.js";import{t as H}from"./Input-FGSb2-yK.js";import{t as U}from"./Skeleton-fJgmuUSB.js";import{t as W}from"./useStoredChoice-BAacDiWy.js";var G=w({name:`maximize`,size:24,node:[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]}),K=w({name:`scan-search`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]}),q=[`id`],J={class:`min-w-0 flex-1`},Y=[`title`],X=[`title`,`aria-label`],Z=[`aria-expanded`],Q={__name:`OrgCard`,props:{person:{type:Object,required:!0},compact:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},open:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:[`toggle`,`focus`],setup(n){let i=n,c=d(()=>A(i.person.department));return(i,l)=>(f(),s(`div`,{id:`person-${n.person.id}`,class:a([`group/card relative overflow-hidden rounded-lg border bg-card text-left shadow-xs transition-shadow hover:shadow-sm`,[n.compact?`w-54`:`w-56`,n.highlighted?`border-brand-400 ring-3 ring-brand-300/50`:``]])},[o(`span`,{class:a([`absolute inset-y-0 left-0 w-1 rounded-l-lg`,c.value.bar]),"aria-hidden":`true`},null,2),o(`div`,{class:a([`flex items-center gap-3`,n.compact?`px-3 py-2`:`px-3.5 pt-3 pb-2.5`])},[e(j,{person:n.person,class:a(n.compact?`size-7 text-[10px]`:`size-10`)},null,8,[`person`,`class`]),o(`div`,J,[n.person.department&&!n.compact?(f(),s(`p`,{key:0,class:a([`truncate text-[10.5px] font-semibold tracking-wide uppercase`,c.value.text])},h(n.person.department),3)):b(``,!0),e(r(S),{href:`/personen/${n.person.id}`,class:`block truncate text-sm leading-tight font-semibold hover:underline`},{default:m(()=>[t(h(n.person.name),1)]),_:1},8,[`href`]),o(`p`,{class:`truncate text-xs leading-tight text-muted-foreground`,title:n.person.job_title},h(n.person.job_title||`–`),9,Y)])],2),o(`button`,{type:`button`,class:`absolute top-1.5 right-1.5 grid size-7 place-items-center rounded-md text-muted-foreground opacity-0 transition-opacity group-hover/card:opacity-100 hover:bg-accent hover:text-foreground focus-visible:opacity-100`,title:`${n.person.name} in den Fokus`,"aria-label":`${n.person.name} in den Fokus`,onClick:l[0]||=e=>i.$emit(`focus`,n.person)},[e(r(K),{class:`size-4`})],8,X),!n.compact&&n.person.reports?(f(),s(`button`,{key:0,type:`button`,class:a([`flex w-full items-center justify-center gap-1.5 rounded-b-lg border-t py-1.5 text-xs font-medium hover:bg-accent`,n.open?`bg-brand-soft/60 text-brand-soft-foreground`:`text-muted-foreground`]),"aria-expanded":n.open,onClick:l[1]||=e=>i.$emit(`toggle`)},[n.loading?(f(),_(r(C),{key:0,class:`size-3.5 animate-spin`})):(f(),_(y(n.open?r(L):r(I)),{key:1,class:`size-3.5`})),t(` `+h(n.person.reports)+` `+h(n.person.reports===1?`Person`:`Personen`)+` im Team `,1)],10,Z)):b(``,!0)],10,q))}},re={key:0,"aria-busy":`true`},ie={class:`org-members`},ae={class:`grid flex-1 gap-1.5`},oe={key:1},se={key:0},ce={__name:`OrgChartNode`,props:{person:{type:Object,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let l=t,u=()=>l.open.includes(l.person.id)&&l.teams[l.person.id]!==void 0,m=v(l.teams[l.person.id]??null),h=v(u()),g=v(!1);n(()=>l.teams,e=>{m.value=e[l.person.id]??m.value,h.value=u()});let y=d(()=>(m.value??[]).filter(e=>e.reports)),x=d(()=>(m.value??[]).filter(e=>!e.reports));async function S(){if(h.value=!h.value,h.value&&m.value===null){g.value=!0;try{m.value=(await P.get(`/personen/organigramm/${l.person.id}/team`)).team}catch{h.value=!1}finally{g.value=!1}}}return(n,l)=>{let u=i(`OrgChartNode`,!0);return f(),s(`li`,null,[e(Q,{person:t.person,highlighted:t.person.id===t.focus,open:h.value,loading:g.value,onToggle:S,onFocus:l[0]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`,`open`,`loading`]),h.value&&g.value?(f(),s(`ul`,re,[o(`li`,null,[o(`div`,ie,[(f(),s(p,null,c(3,t=>o(`div`,{key:t,class:`flex w-54 items-center gap-3 rounded-lg border bg-card px-3 py-2`},[e(r(U),{class:`size-7 rounded-full`}),o(`div`,ae,[e(r(U),{class:`h-3 w-3/4`}),e(r(U),{class:`h-2.5 w-1/2`})])])),64))])])])):h.value&&m.value?.length?(f(),s(`ul`,oe,[(f(!0),s(p,null,c(y.value,e=>(f(),_(u,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:l[1]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128)),x.value.length?(f(),s(`li`,se,[o(`div`,{class:a([`org-members`,{"org-members-wide":x.value.length>8}])},[(f(!0),s(p,null,c(x.value,e=>(f(),_(Q,{key:e.id,person:e,compact:``,highlighted:e.id===t.focus,onFocus:l[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`]))),128))],2)])):b(``,!0)])):b(``,!0)])}}},le={class:`relative overflow-hidden rounded-lg border bg-card`},ue={class:`absolute top-3 right-3 z-10 flex items-center rounded-md border bg-card shadow-xs`},de={class:`w-11 text-center text-xs text-muted-foreground tabular-nums`},fe={class:`org-tree`},pe={__name:`OrgChart`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let i=t,a=v(null),d=v(1),m=[.5,.67,.8,1,1.15];function y(e){let t=m.findIndex(e=>e>=d.value-.001);d.value=m[Math.min(m.length-1,Math.max(0,t+e))]}function b(){let e=a.value;if(!e)return;let t=e.scrollWidth/d.value;d.value=Math.max(.4,Math.min(1,(e.clientWidth-32)/t)),g(()=>e.scrollLeft=(e.scrollWidth-e.clientWidth)/2)}let x=null;function S(e){e.pointerType!==`mouse`||e.button!==0||e.target.closest(`a, button`)||(x={x:e.clientX,y:e.clientY,left:a.value.scrollLeft,top:a.value.scrollTop},a.value.setPointerCapture(e.pointerId))}function C(e){x&&(a.value.scrollLeft=x.left-(e.clientX-x.x),a.value.scrollTop=x.top-(e.clientY-x.y))}function w(){x=null}function T(){g(()=>{let e=a.value,t=i.focus&&document.getElementById(`person-${i.focus}`)||i.roots.length&&document.getElementById(`person-${i.roots[0].id}`);if(e&&t){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();e.scrollLeft+=n.left-r.left-(r.width-n.width)/2,i.focus&&(e.scrollTop+=n.top-r.top-Math.min(120,(r.height-n.height)/2))}})}return l(T),n(()=>i.focus,T),(n,i)=>(f(),s(`div`,le,[o(`div`,ue,[o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Verkleinern`,onClick:i[0]||=e=>y(-1)},[e(r(te),{class:`size-4`})]),o(`span`,de,h(Math.round(d.value*100))+` %`,1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Vergrößern`,onClick:i[1]||=e=>y(1)},[e(r(ne),{class:`size-4`})]),i[3]||=o(`span`,{class:`h-5 w-px bg-border`},null,-1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,title:`Einpassen`,"aria-label":`Einpassen`,onClick:b},[e(r(G),{class:`size-4`})])]),o(`div`,{ref_key:`canvas`,ref:a,class:`org-canvas max-h-[calc(100vh-12rem)] min-h-[18rem] cursor-grab overflow-auto active:cursor-grabbing`,onPointerdown:S,onPointermove:C,onPointerup:w,onPointercancel:w},[o(`div`,{class:`inline-block min-w-full px-8 pt-7 pb-8`,style:u({zoom:d.value})},[o(`ul`,fe,[(f(!0),s(p,null,c(t.roots,e=>(f(),_(ce,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:i[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128))])],4)],544)]))}},me={class:`grid gap-5`},he={class:`relative overflow-hidden rounded-lg border bg-card`},ge={class:`flex flex-col gap-5 p-5 sm:flex-row sm:items-center`},_e={class:`min-w-0 flex-1`},ve={class:`text-xl leading-tight font-semibold tracking-tight`},ye={key:1,class:`text-sm text-muted-foreground`},be={class:`mt-2 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},xe=[`href`],Se={key:1,class:`truncate text-muted-foreground`},Ce={class:`flex shrink-0 flex-wrap gap-2 sm:flex-col`},we={class:`rounded-lg border bg-card`},Te={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ee={class:`font-normal text-muted-foreground`},De={key:0,class:`overflow-hidden rounded-b-lg`},Oe={class:`-mr-px -mb-px grid sm:grid-cols-2 xl:grid-cols-3`},ke=[`onClick`],Ae={class:`min-w-0 flex-1`},je={class:`block truncate text-sm font-medium`},Me={class:`block truncate text-xs text-muted-foreground`},Ne=[`title`],Pe={key:0,class:`flex items-center gap-1 px-4 pb-2.5 pl-16`},Fe=[`title`,`onClick`],Ie={key:0,class:`ml-1 text-xs text-muted-foreground`},Le={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},Re={key:0,class:`grid gap-5`},ze={key:0,class:`rounded-lg border bg-card`},Be={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ve={class:`p-2`},He={key:0,class:`absolute top-9 bottom-0 left-[1.45rem] w-px bg-border`,"aria-hidden":`true`},Ue=[`onClick`],We={class:`min-w-0`},Ge={class:`block truncate text-sm font-medium`},Ke={class:`block truncate text-xs text-muted-foreground`},qe={key:1,class:`rounded-lg border bg-card`},Je={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ye={class:`font-normal text-muted-foreground`},Xe={class:`max-h-80 overflow-y-auto p-2`},Ze=[`onClick`],Qe={class:`min-w-0`},$e={class:`block truncate text-[13px] font-medium`},et={class:`block truncate text-xs text-muted-foreground`},tt={__name:`OrgFocus`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},path:{type:Array,default:()=>[]},details:{type:Object,required:!0}},emits:[`focus`,`show-in-tree`],setup(n){let i=n,l=d(()=>{let e=new Map;return[...i.roots,...Object.values(i.teams).flat()].forEach(t=>e.set(t.id,t)),e}),u=d(()=>i.path.slice(0,-1).map(e=>l.value.get(e)).filter(Boolean)),g=d(()=>u.value.at(-1)??null),v=d(()=>g.value?(i.teams[g.value.id]??[]).filter(e=>e.id!==i.details.id):[]),x=d(()=>i.teams[i.details.id]??[]),C=d(()=>[{icon:k,value:i.details.email,href:`mailto:${i.details.email}`},{icon:N,value:i.details.phone,href:i.details.phone&&`tel:${i.details.phone}`},{icon:R,value:i.details.mobile,href:i.details.mobile&&`tel:${i.details.mobile}`},{icon:T,value:[i.details.department,i.details.location].filter(Boolean).join(` · `)}].filter(e=>e.value));return(i,l)=>(f(),s(`div`,{class:a([`grid items-start gap-5`,{"lg:grid-cols-[minmax(0,1fr)_19rem]":u.value.length||v.value.length}])},[o(`div`,me,[o(`section`,he,[o(`span`,{class:a([`absolute inset-y-0 left-0 w-1`,r(A)(n.details.department).bar]),"aria-hidden":`true`},null,2),o(`div`,ge,[e(j,{person:n.details,class:`size-20 text-xl ring-4 ring-brand-soft`},null,8,[`person`]),o(`div`,_e,[n.details.department?(f(),s(`p`,{key:0,class:a([`text-[11px] font-semibold tracking-wide uppercase`,r(A)(n.details.department).text])},h(n.details.department),3)):b(``,!0),o(`h2`,ve,h(n.details.name),1),n.details.job_title?(f(),s(`p`,ye,h(n.details.job_title),1)):b(``,!0),o(`ul`,be,[(f(!0),s(p,null,c(C.value,e=>(f(),s(`li`,{key:e.value,class:`flex min-w-0 items-center gap-1.5`},[(f(),_(y(e.icon),{class:`size-3.5 shrink-0 text-muted-foreground`})),e.href?(f(),s(`a`,{key:0,href:e.href,class:`truncate text-brand-text hover:underline`},h(e.value),9,xe)):(f(),s(`span`,Se,h(e.value),1))]))),128))])]),o(`div`,Ce,[e(r(V),{size:`sm`,"as-child":``},{default:m(()=>[e(r(S),{href:`/personen/${n.details.id}`},{default:m(()=>[e(r(O)),l[1]||=t(` Profil`,-1)]),_:1},8,[`href`])]),_:1}),e(r(V),{variant:`outline`,size:`sm`,onClick:l[0]||=e=>i.$emit(`show-in-tree`,n.details)},{default:m(()=>[e(r(D)),l[2]||=t(` Im Baum`,-1)]),_:1})])])]),o(`section`,we,[o(`h3`,Te,[e(r(E),{class:`size-4 text-brand-text`}),l[3]||=t(` Direkt unterstellt `,-1),o(`span`,Ee,h(x.value.length),1)]),x.value.length?(f(),s(`div`,De,[o(`ul`,Oe,[(f(!0),s(p,null,c(x.value,a=>(f(),s(`li`,{key:a.id,class:`border-r border-b hover:bg-accent/60`},[o(`button`,{type:`button`,class:`flex w-full items-center gap-3 px-4 py-3 text-left`,onClick:e=>i.$emit(`focus`,a)},[e(j,{person:a,class:`size-9`},null,8,[`person`]),o(`span`,Ae,[o(`span`,je,h(a.name),1),o(`span`,Me,h(a.job_title||`–`),1)]),a.reports?(f(),s(`span`,{key:0,class:`inline-flex shrink-0 items-center gap-1 rounded-full bg-brand-soft px-2 py-0.5 text-[11px] font-medium text-brand-soft-foreground`,title:`${a.reports} im Team`},[e(r(E),{class:`size-3`}),t(` `+h(a.reports),1)],8,Ne)):b(``,!0)],8,ke),n.teams[a.id]?.length?(f(),s(`div`,Pe,[(f(!0),s(p,null,c(n.teams[a.id].slice(0,7),t=>(f(),s(`button`,{key:t.id,type:`button`,class:`-ml-1 rounded-full ring-2 ring-card first:ml-0 hover:ring-brand-300`,title:`${t.name}${t.job_title?` – `+t.job_title:``}`,onClick:e=>i.$emit(`focus`,t)},[e(j,{person:t,class:`size-6 text-[9px]`},null,8,[`person`])],8,Fe))),128)),n.teams[a.id].length>7?(f(),s(`span`,Ie,`+`+h(n.teams[a.id].length-7),1)):b(``,!0)])):b(``,!0)]))),128))])])):(f(),s(`p`,Le,`Keine direkt unterstellten Personen.`))])]),u.value.length||v.value.length?(f(),s(`aside`,Re,[u.value.length?(f(),s(`section`,ze,[o(`h3`,Be,[e(r(L),{class:`size-4 text-brand-text`}),l[4]||=t(` Berichtet an`,-1)]),o(`ol`,Ve,[(f(!0),s(p,null,c([...u.value].reverse(),(t,n)=>(f(),s(`li`,{key:t.id,class:`relative`},[ni.$emit(`focus`,t)},[e(j,{person:t,class:`size-8 text-[11px]`},null,8,[`person`]),o(`span`,We,[o(`span`,Ge,h(t.name),1),o(`span`,Ke,h(t.job_title||t.department||`–`),1)])],8,Ue)]))),128))])])):b(``,!0),v.value.length?(f(),s(`section`,qe,[o(`h3`,Je,[e(r(E),{class:`size-4 text-brand-text`}),l[5]||=t(` Im selben Team `,-1),o(`span`,Ye,h(v.value.length),1)]),o(`ul`,Xe,[(f(!0),s(p,null,c(v.value,t=>(f(),s(`li`,{key:t.id},[o(`button`,{type:`button`,class:`flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left hover:bg-accent`,onClick:e=>i.$emit(`focus`,t)},[e(j,{person:t,class:`size-7 text-[10px]`},null,8,[`person`]),o(`span`,Qe,[o(`span`,$e,h(t.name),1),o(`span`,et,h(t.job_title||`–`),1)])],8,Ze)]))),128))])])):b(``,!0)])):b(``,!0)],2))}},$={class:`flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center`},nt={class:`inline-flex self-start rounded-md border bg-card p-0.5`,role:`group`,"aria-label":`Ansicht`},rt=[`aria-pressed`,`onClick`],it={class:`relative sm:w-80`},at={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-72 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},ot=[`onClick`],st={class:`min-w-0`},ct={class:`block truncate font-medium`},lt={class:`block truncate text-xs text-muted-foreground`},ut={key:0,class:`rounded-lg border bg-card`},dt={key:0,class:`mb-3 flex items-center gap-2 text-[13px]`},ft={key:1,class:`mb-3 flex flex-wrap gap-x-4 gap-y-1.5 text-xs text-muted-foreground`,"aria-label":`Abteilungen`},pt={key:3,class:`mt-4 text-[13px] text-muted-foreground`},mt={__name:`Organigram`,props:{roots:{type:Array,required:!0},path:{type:Array,default:()=>[]},open:{type:Array,default:()=>[]},teams:{type:Object,default:()=>({})},focus:{type:Number,default:null},details:{type:Object,default:null},view:{type:String,default:`baum`},stats:{type:Object,default:()=>({people:0,leaders:0})},unassigned:{type:Number,default:0}},setup(i){let u=i,g=W(`organigram.view`,`baum`,[`baum`,`fokus`]);l(()=>{!new URLSearchParams(window.location.search).has(`ansicht`)&&g.value!==u.view&&C(g.value,u.focus,!0)}),n(()=>u.view,e=>g.value=e);function C(e,t=u.focus,n=!1){let r={ansicht:e};t&&(r.person=t),x.get(`/personen/organigramm`,r,{preserveScroll:e===`fokus`,replace:n})}let w=v(``),T=v([]),E;n(w,e=>{if(clearTimeout(E),e.trim().length<2){T.value=[];return}E=setTimeout(async()=>{T.value=(await P.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`)).people},250)});function O(e){w.value=``,T.value=[],C(u.view,e.id)}let k=e=>e.toLocaleString(`de-DE`),N=d(()=>[...new Set([...u.roots,...Object.values(u.teams).flat()].map(e=>e.department).filter(Boolean))].sort((e,t)=>e.localeCompare(t,`de`)).slice(0,16));return(n,l)=>(f(),_(M,{title:`Organigramm`},{default:m(()=>[e(B,{title:`Organigramm`,breadcrumbs:[{label:`Personen`,href:`/personen`}],description:`${k(i.stats.people)} Personen · ${k(i.stats.leaders)} mit Personalverantwortung`},{actions:m(()=>[o(`div`,$,[o(`div`,nt,[(f(!0),s(p,null,c([{key:`baum`,icon:r(D),label:`Baum`},{key:`fokus`,icon:r(K),label:`Fokus`}],e=>(f(),s(`button`,{key:e.key,type:`button`,class:a([`inline-flex h-9 items-center gap-1.5 rounded px-3 text-[13px]`,i.view===e.key?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":i.view===e.key,onClick:t=>i.view!==e.key&&C(e.key)},[(f(),_(y(e.icon),{class:`size-4`})),t(` `+h(e.label),1)],10,rt))),128))]),o(`div`,it,[e(r(ee),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(r(H),{modelValue:w.value,"onUpdate:modelValue":l[0]||=e=>w.value=e,class:`h-10 bg-card pl-9`,placeholder:`Person finden …`,"aria-label":`Person im Organigramm finden`,autocomplete:`off`},null,8,[`modelValue`]),T.value.length?(f(),s(`ul`,at,[(f(!0),s(p,null,c(T.value,t=>(f(),s(`li`,{key:t.id},[o(`button`,{type:`button`,class:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm hover:bg-accent`,onClick:e=>O(t)},[e(j,{person:t,class:`size-7 text-[10px]`},null,8,[`person`]),o(`span`,st,[o(`span`,ct,h(t.name),1),o(`span`,lt,h(t.job_title),1)])],8,ot)]))),128))])):b(``,!0)])])]),_:1},8,[`description`]),i.roots.length?i.view===`fokus`&&i.details?(f(),_(tt,{key:1,roots:i.roots,teams:i.teams,path:i.path,details:i.details,onFocus:l[1]||=e=>C(`fokus`,e.id),onShowInTree:l[2]||=e=>C(`baum`,e.id)},null,8,[`roots`,`teams`,`path`,`details`])):(f(),s(p,{key:2},[i.focus?(f(),s(`div`,dt,[l[5]||=o(`span`,{class:`text-muted-foreground`},`Der Weg zur gesuchten Person ist aufgeklappt.`,-1),e(r(S),{href:`/personen/organigramm?ansicht=baum`,class:`inline-flex items-center gap-1 font-medium text-brand-text hover:underline`},{default:m(()=>[e(r(F),{class:`size-3.5`}),l[4]||=t(` Zurücksetzen`,-1)]),_:1})])):b(``,!0),N.value.length>1?(f(),s(`ul`,ft,[(f(!0),s(p,null,c(N.value,e=>(f(),s(`li`,{key:e,class:`flex items-center gap-1.5`},[o(`span`,{class:a([`size-2.5 rounded-sm`,r(A)(e).bar])},null,2),t(h(e),1)]))),128))])):b(``,!0),e(pe,{roots:i.roots,teams:i.teams,open:i.open,focus:i.focus,onFocus:l[3]||=e=>C(`fokus`,e.id)},null,8,[`roots`,`teams`,`open`,`focus`])],64)):(f(),s(`div`,ut,[e(z,{icon:r(D),title:`Noch kein Organigramm`,text:`Es sind noch keine Vorgesetzten hinterlegt. Sie kommen aus dem Anmeldedienst (z. B. Entra ID) oder werden im Admin-Bereich bei den Benutzern eingetragen.`},null,8,[`icon`])])),i.unassigned?(f(),s(`p`,pt,h(i.unassigned===1?`1 Person`:`${k(i.unassigned)} Personen`)+` ohne Vorgesetzte*n und ohne Team `+h(i.unassigned===1?`erscheint`:`erscheinen`)+` hier nicht. `,1)):b(``,!0)]),_:1}))}};export{mt as default};
\ No newline at end of file
diff --git a/public/build/assets/PageContent-BvnlekSK.js b/public/build/assets/PageContent-MInmcEZA.js
similarity index 93%
rename from public/build/assets/PageContent-BvnlekSK.js
rename to public/build/assets/PageContent-MInmcEZA.js
index b6268574..8afbbea1 100644
--- a/public/build/assets/PageContent-BvnlekSK.js
+++ b/public/build/assets/PageContent-MInmcEZA.js
@@ -1 +1 @@
-import{D as e,J as t,On as n,b as r,bt as i,g as a,gt as o,mt as s,o as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./registry-BeyngY4f.js";var p={class:`grid gap-6`},m={__name:`BlockList`,props:{item:{type:Object,required:!0}},setup(e){let a=t(`pagebuilder:types`,{});return(t,o)=>(s(),r(`div`,p,[(s(!0),r(c,null,i(e.item.blocks,e=>(s(),r(c,{key:e.id},[n(f)(n(a)[e.type]?.component??e.component??``)?(s(),l(u(n(f)(n(a)[e.type]?.component??e.component??``)),{key:0,block:e},null,8,[`block`])):d(``,!0)],64))),128))]))}},h={class:`@container`},g={__name:`PageContent`,props:{content:{type:Object,required:!0},types:{type:Object,default:null}},setup(t){let n=t;o(`pagebuilder:list`,m),o(`pagebuilder:editing`,!1),o(`pagebuilder:types`,n.types??{});let i=a(()=>({blocks:n.content.blocks??[]}));return(t,n)=>(s(),r(`div`,h,[e(m,{item:i.value},null,8,[`item`])]))}};export{g as t};
\ No newline at end of file
+import{D as e,J as t,On as n,b as r,bt as i,g as a,gt as o,mt as s,o as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./registry-BYgDUCgI.js";var p={class:`grid gap-6`},m={__name:`BlockList`,props:{item:{type:Object,required:!0}},setup(e){let a=t(`pagebuilder:types`,{});return(t,o)=>(s(),r(`div`,p,[(s(!0),r(c,null,i(e.item.blocks,e=>(s(),r(c,{key:e.id},[n(f)(n(a)[e.type]?.component??e.component??``)?(s(),l(u(n(f)(n(a)[e.type]?.component??e.component??``)),{key:0,block:e},null,8,[`block`])):d(``,!0)],64))),128))]))}},h={class:`@container`},g={__name:`PageContent`,props:{content:{type:Object,required:!0},types:{type:Object,default:null}},setup(t){let n=t;o(`pagebuilder:list`,m),o(`pagebuilder:editing`,!1),o(`pagebuilder:types`,n.types??{});let i=a(()=>({blocks:n.content.blocks??[]}));return(t,n)=>(s(),r(`div`,h,[e(m,{item:i.value},null,8,[`item`])]))}};export{g as t};
\ No newline at end of file
diff --git a/public/build/assets/PageHeader-C1gQ5QQB.js b/public/build/assets/PageHeader-BF5yxdNS.js
similarity index 95%
rename from public/build/assets/PageHeader-C1gQ5QQB.js
rename to public/build/assets/PageHeader-BF5yxdNS.js
index c4817106..e80e7666 100644
--- a/public/build/assets/PageHeader-C1gQ5QQB.js
+++ b/public/build/assets/PageHeader-BF5yxdNS.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,xt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as p}from"./app-BIL1bnXp.js";import{t as m}from"./chevron-right-C9w5cb2q.js";var h={class:`mb-6 flex flex-wrap items-end justify-between gap-x-6 gap-y-4`},g={class:`flex min-w-0 items-end gap-3.5`},_={class:`min-w-0`},v={key:0,class:`mb-1 flex flex-wrap items-center gap-1 text-[13px] text-muted-foreground`,"aria-label":`Brotkrumen`},y={class:`text-2xl leading-tight font-semibold tracking-tight`},b={key:1,class:`mt-1 max-w-3xl text-sm text-muted-foreground`},x={key:0,class:`flex w-full flex-wrap items-center gap-2 sm:w-auto`},S={__name:`PageHeader`,props:{title:{type:String,required:!0},description:{type:String,default:``},breadcrumbs:{type:Array,default:()=>[]}},setup(S){return(C,w)=>(o(),i(`header`,h,[r(`div`,g,[d(C.$slots,`leading`),r(`div`,_,[S.breadcrumbs.length?(o(),i(`nav`,v,[(o(!0),i(s,null,a(S.breadcrumbs,(r,a)=>(o(),i(s,{key:r.href},[a?(o(),u(n(m),{key:0,class:`size-3.5`})):f(``,!0),e(n(p),{href:r.href,class:`hover:text-foreground hover:underline`},{default:c(()=>[t(l(r.label),1)]),_:2},1032,[`href`])],64))),128))])):f(``,!0),r(`h1`,y,l(S.title),1),S.description||C.$slots.description?(o(),i(`p`,b,[d(C.$slots,`description`,{},()=>[t(l(S.description),1)])])):f(``,!0)])]),C.$slots.actions?(o(),i(`div`,x,[d(C.$slots,`actions`)])):f(``,!0)]))}};export{S as t};
\ No newline at end of file
+import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,xt as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as p}from"./app-0YzlX_sI.js";import{t as m}from"./chevron-right-C9w5cb2q.js";var h={class:`mb-6 flex flex-wrap items-end justify-between gap-x-6 gap-y-4`},g={class:`flex min-w-0 items-end gap-3.5`},_={class:`min-w-0`},v={key:0,class:`mb-1 flex flex-wrap items-center gap-1 text-[13px] text-muted-foreground`,"aria-label":`Brotkrumen`},y={class:`text-2xl leading-tight font-semibold tracking-tight`},b={key:1,class:`mt-1 max-w-3xl text-sm text-muted-foreground`},x={key:0,class:`flex w-full flex-wrap items-center gap-2 sm:w-auto`},S={__name:`PageHeader`,props:{title:{type:String,required:!0},description:{type:String,default:``},breadcrumbs:{type:Array,default:()=>[]}},setup(S){return(C,w)=>(o(),i(`header`,h,[r(`div`,g,[d(C.$slots,`leading`),r(`div`,_,[S.breadcrumbs.length?(o(),i(`nav`,v,[(o(!0),i(s,null,a(S.breadcrumbs,(r,a)=>(o(),i(s,{key:r.href},[a?(o(),u(n(m),{key:0,class:`size-3.5`})):f(``,!0),e(n(p),{href:r.href,class:`hover:text-foreground hover:underline`},{default:c(()=>[t(l(r.label),1)]),_:2},1032,[`href`])],64))),128))])):f(``,!0),r(`h1`,y,l(S.title),1),S.description||C.$slots.description?(o(),i(`p`,b,[d(C.$slots,`description`,{},()=>[t(l(S.description),1)])])):f(``,!0)])]),C.$slots.actions?(o(),i(`div`,x,[d(C.$slots,`actions`)])):f(``,!0)]))}};export{S as t};
\ No newline at end of file
diff --git a/public/build/assets/Panel-CyXtNQ_r.js b/public/build/assets/Panel-2UV8H5Yl.js
similarity index 93%
rename from public/build/assets/Panel-CyXtNQ_r.js
rename to public/build/assets/Panel-2UV8H5Yl.js
index a673ea19..d700691e 100644
--- a/public/build/assets/Panel-CyXtNQ_r.js
+++ b/public/build/assets/Panel-2UV8H5Yl.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,Zn as r,_ as i,b as a,mt as o,qt as s,tr as c,v as l,xt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-BIL1bnXp.js";import{t as p}from"./chevron-right-C9w5cb2q.js";var m={class:`rounded-lg border bg-card text-card-foreground`},h={key:0,class:`flex items-center justify-between gap-4 px-5 pt-4 pb-3`},g={class:`text-base font-semibold`},_={__name:`Panel`,props:{title:{type:String,default:``},actionLabel:{type:String,default:``},actionHref:{type:String,default:``}},setup(_){return(v,y)=>(o(),a(`section`,m,[_.title||v.$slots.actions?(o(),a(`header`,h,[i(`h2`,g,c(_.title),1),u(v.$slots,`actions`,{},()=>[_.actionHref?(o(),l(n(f),{key:0,href:_.actionHref,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:s(()=>[t(c(_.actionLabel)+` `,1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])])):d(``,!0),i(`div`,{class:r([`px-5 pb-5`,{"pt-5":!_.title&&!v.$slots.actions}])},[u(v.$slots,`default`)],2)]))}};export{_ as t};
\ No newline at end of file
+import{D as e,E as t,On as n,Zn as r,_ as i,b as a,mt as o,qt as s,tr as c,v as l,xt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-0YzlX_sI.js";import{t as p}from"./chevron-right-C9w5cb2q.js";var m={class:`rounded-lg border bg-card text-card-foreground`},h={key:0,class:`flex items-center justify-between gap-4 px-5 pt-4 pb-3`},g={class:`text-base font-semibold`},_={__name:`Panel`,props:{title:{type:String,default:``},actionLabel:{type:String,default:``},actionHref:{type:String,default:``}},setup(_){return(v,y)=>(o(),a(`section`,m,[_.title||v.$slots.actions?(o(),a(`header`,h,[i(`h2`,g,c(_.title),1),u(v.$slots,`actions`,{},()=>[_.actionHref?(o(),l(n(f),{key:0,href:_.actionHref,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:s(()=>[t(c(_.actionLabel)+` `,1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])])):d(``,!0),i(`div`,{class:r([`px-5 pb-5`,{"pt-5":!_.title&&!v.$slots.actions}])},[u(v.$slots,`default`)],2)]))}};export{_ as t};
\ No newline at end of file
diff --git a/public/build/assets/PeopleSearch-i7wlannT.js b/public/build/assets/PeopleSearch-B6IJsUv5.js
similarity index 93%
rename from public/build/assets/PeopleSearch-i7wlannT.js
rename to public/build/assets/PeopleSearch-B6IJsUv5.js
index 23609381..e5f9f647 100644
--- a/public/build/assets/PeopleSearch-i7wlannT.js
+++ b/public/build/assets/PeopleSearch-B6IJsUv5.js
@@ -1 +1 @@
-import{D as e,E as t,Ht as n,On as r,Yt as i,Zn as a,_ as o,b as s,bt as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as g,x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o as v,r as y}from"./app-BIL1bnXp.js";import{O as b,c as x}from"./dist-DtGNiYlK.js";import{N as S,m as C}from"./AppIcon-DZR1MN11.js";import{a as w}from"./AppLayout-dYp4WcQT.js";import{n as T}from"./http-CAG9BrJF.js";import{t as E}from"./Panel-CyXtNQ_r.js";var D={key:0,class:`mt-4 grid gap-3`},O=[`src`,`alt`],k={class:`min-w-0`},A={class:`block font-semibold leading-tight`},j={key:0,class:`mt-0.5 block text-xs text-muted-foreground`},M={key:0,class:`divide-y border-t px-3 text-[13px]`},N={class:`text-[10px] font-semibold tracking-wider text-muted-foreground uppercase`},P={class:`mt-0.5 break-words`},F=[`href`],I={key:1,class:`mt-4 text-[13px] text-muted-foreground`},L={__name:`PeopleSearch`,props:{count:{type:Number,required:!0}},setup(L){let R=m(``),z=m([]),B=m(0),V=m(!1),H=0,U=x(async e=>{let t=++H;try{let n=await T.get(`/personen/karten?q=${encodeURIComponent(e)}`);t===H&&(z.value=n.people,B.value=n.total)}finally{t===H&&(V.value=!1)}},220);n(R,e=>{if(e.trim().length<2){H++,z.value=[],B.value=0,V.value=!1;return}V.value=!0,U(e.trim())});function W(){R.value.trim()&&v.visit(`/personen?q=${encodeURIComponent(R.value.trim())}`)}let G=e=>e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value.replace(/[^\d+]/g,``)}`:null;return(n,m)=>(l(),p(E,{title:`Kolleg:innen finden`},{default:d(()=>[o(`form`,{role:`search`,class:`relative`,onSubmit:g(W,[`prevent`])},[e(r(S),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(o(`input`,{"onUpdate:modelValue":m[0]||=e=>R.value=e,name:`q`,type:`search`,autocomplete:`off`,placeholder:`Name, Funktion, Abteilung …`,class:`h-10 w-full rounded-full border border-input bg-background pr-9 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[_,R.value]]),V.value?(l(),p(r(b),{key:0,class:`absolute top-1/2 right-3 size-4 -translate-y-1/2 animate-spin text-muted-foreground`})):h(``,!0)],32),z.value.length?(l(),s(`div`,D,[(l(!0),s(u,null,c(z.value,n=>(l(),s(`article`,{key:n.id,class:`overflow-hidden rounded-lg border border-l-4 border-l-brand bg-card shadow-xs`},[e(r(y),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-3 hover:bg-accent/40`},{default:d(()=>[n.avatar_url?(l(),s(`img`,{key:0,src:n.avatar_url,alt:n.name,class:`size-14 shrink-0 rounded-lg object-cover`},null,8,O)):(l(),s(`span`,{key:1,class:a([`grid size-14 shrink-0 place-items-center rounded-lg text-lg font-semibold`,r(C)(n.id).soft])},f(n.initials),3)),o(`span`,k,[o(`span`,A,f(n.name),1),n.subtitle?(l(),s(`span`,j,f(n.subtitle),1)):h(``,!0)])]),_:2},1032,[`href`]),n.fields.length?(l(),s(`dl`,M,[(l(!0),s(u,null,c(n.fields,e=>(l(),s(`div`,{key:e.key,class:`py-2`},[o(`dt`,N,f(e.label),1),o(`dd`,P,[G(e)?(l(),s(`a`,{key:0,href:G(e),class:`text-brand-text hover:underline`},f(e.value),9,F)):(l(),s(u,{key:1},[t(f(e.value),1)],64))])]))),128))])):h(``,!0)]))),128))])):R.value.trim().length>=2&&!V.value?(l(),s(`p`,I,`Niemand gefunden für „`+f(R.value.trim())+`“.`,1)):h(``,!0),e(r(y),{href:R.value.trim().length>=2?`/personen?q=${encodeURIComponent(R.value.trim())}`:`/personen`,class:`mt-4 flex items-center justify-between text-[13px] text-muted-foreground hover:text-foreground`},{default:d(()=>[R.value.trim().length>=2&&B.value>z.value.length?(l(),s(u,{key:0},[t(`Alle `+f(B.value.toLocaleString(`de-DE`))+` Treffer anzeigen`,1)],64)):(l(),s(u,{key:1},[t(f(L.count===1?`1 Person`:`${L.count.toLocaleString(`de-DE`)} Personen`)+` im Verzeichnis`,1)],64)),e(r(w),{class:`size-4`})]),_:1},8,[`href`])]),_:1}))}};export{L as default};
\ No newline at end of file
+import{D as e,E as t,Ht as n,On as r,Yt as i,Zn as a,_ as o,b as s,bt as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as g,x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o as v,r as y}from"./app-0YzlX_sI.js";import{O as b,c as x}from"./dist-DtGNiYlK.js";import{N as S,m as C}from"./AppIcon-BAyAC-oO.js";import{a as w}from"./AppLayout-BZsS7ZqB.js";import{n as T}from"./http-CAG9BrJF.js";import{t as E}from"./Panel-2UV8H5Yl.js";var D={key:0,class:`mt-4 grid gap-3`},O=[`src`,`alt`],k={class:`min-w-0`},A={class:`block font-semibold leading-tight`},j={key:0,class:`mt-0.5 block text-xs text-muted-foreground`},M={key:0,class:`divide-y border-t px-3 text-[13px]`},N={class:`text-[10px] font-semibold tracking-wider text-muted-foreground uppercase`},P={class:`mt-0.5 break-words`},F=[`href`],I={key:1,class:`mt-4 text-[13px] text-muted-foreground`},L={__name:`PeopleSearch`,props:{count:{type:Number,required:!0}},setup(L){let R=m(``),z=m([]),B=m(0),V=m(!1),H=0,U=x(async e=>{let t=++H;try{let n=await T.get(`/personen/karten?q=${encodeURIComponent(e)}`);t===H&&(z.value=n.people,B.value=n.total)}finally{t===H&&(V.value=!1)}},220);n(R,e=>{if(e.trim().length<2){H++,z.value=[],B.value=0,V.value=!1;return}V.value=!0,U(e.trim())});function W(){R.value.trim()&&v.visit(`/personen?q=${encodeURIComponent(R.value.trim())}`)}let G=e=>e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value.replace(/[^\d+]/g,``)}`:null;return(n,m)=>(l(),p(E,{title:`Kolleg:innen finden`},{default:d(()=>[o(`form`,{role:`search`,class:`relative`,onSubmit:g(W,[`prevent`])},[e(r(S),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(o(`input`,{"onUpdate:modelValue":m[0]||=e=>R.value=e,name:`q`,type:`search`,autocomplete:`off`,placeholder:`Name, Funktion, Abteilung …`,class:`h-10 w-full rounded-full border border-input bg-background pr-9 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[_,R.value]]),V.value?(l(),p(r(b),{key:0,class:`absolute top-1/2 right-3 size-4 -translate-y-1/2 animate-spin text-muted-foreground`})):h(``,!0)],32),z.value.length?(l(),s(`div`,D,[(l(!0),s(u,null,c(z.value,n=>(l(),s(`article`,{key:n.id,class:`overflow-hidden rounded-lg border border-l-4 border-l-brand bg-card shadow-xs`},[e(r(y),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-3 hover:bg-accent/40`},{default:d(()=>[n.avatar_url?(l(),s(`img`,{key:0,src:n.avatar_url,alt:n.name,class:`size-14 shrink-0 rounded-lg object-cover`},null,8,O)):(l(),s(`span`,{key:1,class:a([`grid size-14 shrink-0 place-items-center rounded-lg text-lg font-semibold`,r(C)(n.id).soft])},f(n.initials),3)),o(`span`,k,[o(`span`,A,f(n.name),1),n.subtitle?(l(),s(`span`,j,f(n.subtitle),1)):h(``,!0)])]),_:2},1032,[`href`]),n.fields.length?(l(),s(`dl`,M,[(l(!0),s(u,null,c(n.fields,e=>(l(),s(`div`,{key:e.key,class:`py-2`},[o(`dt`,N,f(e.label),1),o(`dd`,P,[G(e)?(l(),s(`a`,{key:0,href:G(e),class:`text-brand-text hover:underline`},f(e.value),9,F)):(l(),s(u,{key:1},[t(f(e.value),1)],64))])]))),128))])):h(``,!0)]))),128))])):R.value.trim().length>=2&&!V.value?(l(),s(`p`,I,`Niemand gefunden für „`+f(R.value.trim())+`“.`,1)):h(``,!0),e(r(y),{href:R.value.trim().length>=2?`/personen?q=${encodeURIComponent(R.value.trim())}`:`/personen`,class:`mt-4 flex items-center justify-between text-[13px] text-muted-foreground hover:text-foreground`},{default:d(()=>[R.value.trim().length>=2&&B.value>z.value.length?(l(),s(u,{key:0},[t(`Alle `+f(B.value.toLocaleString(`de-DE`))+` Treffer anzeigen`,1)],64)):(l(),s(u,{key:1},[t(f(L.count===1?`1 Person`:`${L.count.toLocaleString(`de-DE`)} Personen`)+` im Verzeichnis`,1)],64)),e(r(w),{class:`size-4`})]),_:1},8,[`href`])]),_:1}))}};export{L as default};
\ No newline at end of file
diff --git a/public/build/assets/Print-BTOggOmA.js b/public/build/assets/Print-DQgAAWDx.js
similarity index 94%
rename from public/build/assets/Print-BTOggOmA.js
rename to public/build/assets/Print-DQgAAWDx.js
index 2be55bdb..7be9706c 100644
--- a/public/build/assets/Print-BTOggOmA.js
+++ b/public/build/assets/Print-DQgAAWDx.js
@@ -1 +1 @@
-import{D as e,On as t,_ as n,b as r,bt as i,ct as a,mt as o,o as s,tr as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-BIL1bnXp.js";var d={class:`sp-toolbar`},f={key:0,class:`sp-empty`},p=[`src`,`alt`],m={__name:`Print`,props:{plans:{type:Array,required:!0}},setup(m){let h=m;function g(){window.print()}return a(async()=>{await Promise.all([...document.querySelectorAll(`.sp-page img`)].map(e=>e.complete?null:new Promise(t=>e.onload=e.onerror=t))),h.plans.length&&setTimeout(g,150)}),(a,h)=>(o(),r(s,null,[e(t(u),{title:`Speiseplan drucken`}),n(`div`,d,[h[0]||=n(`strong`,null,`Speiseplan drucken`,-1),n(`span`,null,c(m.plans.length)+` `+c(m.plans.length===1?`Seite`:`Seiten`)+` · A4, randlos. Falls Adresse oder Datum mitgedruckt werden: im Druckdialog „Kopf- und Fußzeilen“ abschalten.`,1),n(`button`,{type:`button`,onClick:g},`Drucken`)]),m.plans.length?l(``,!0):(o(),r(`p`,f,`Kein Speiseplan zum Drucken vorhanden.`)),(o(!0),r(s,null,i(m.plans,e=>(o(),r(`div`,{key:e.id,class:`sp-page`},[n(`img`,{src:e.image_url,alt:`Speiseplan ${e.label}`},null,8,p)]))),128))],64))}};export{m as default};
\ No newline at end of file
+import{D as e,On as t,_ as n,b as r,bt as i,ct as a,mt as o,o as s,tr as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-0YzlX_sI.js";var d={class:`sp-toolbar`},f={key:0,class:`sp-empty`},p=[`src`,`alt`],m={__name:`Print`,props:{plans:{type:Array,required:!0}},setup(m){let h=m;function g(){window.print()}return a(async()=>{await Promise.all([...document.querySelectorAll(`.sp-page img`)].map(e=>e.complete?null:new Promise(t=>e.onload=e.onerror=t))),h.plans.length&&setTimeout(g,150)}),(a,h)=>(o(),r(s,null,[e(t(u),{title:`Speiseplan drucken`}),n(`div`,d,[h[0]||=n(`strong`,null,`Speiseplan drucken`,-1),n(`span`,null,c(m.plans.length)+` `+c(m.plans.length===1?`Seite`:`Seiten`)+` · A4, randlos. Falls Adresse oder Datum mitgedruckt werden: im Druckdialog „Kopf- und Fußzeilen“ abschalten.`,1),n(`button`,{type:`button`,onClick:g},`Drucken`)]),m.plans.length?l(``,!0):(o(),r(`p`,f,`Kein Speiseplan zum Drucken vorhanden.`)),(o(!0),r(s,null,i(m.plans,e=>(o(),r(`div`,{key:e.id,class:`sp-page`},[n(`img`,{src:e.image_url,alt:`Speiseplan ${e.label}`},null,8,p)]))),128))],64))}};export{m as default};
\ No newline at end of file
diff --git a/public/build/assets/ProfileBirthday-CzlzgSU7.js b/public/build/assets/ProfileBirthday-Dn-ZQ02C.js
similarity index 90%
rename from public/build/assets/ProfileBirthday-CzlzgSU7.js
rename to public/build/assets/ProfileBirthday-Dn-ZQ02C.js
index cb268814..524824b5 100644
--- a/public/build/assets/ProfileBirthday-CzlzgSU7.js
+++ b/public/build/assets/ProfileBirthday-Dn-ZQ02C.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,_ as r,g as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as d,o as f}from"./app-BIL1bnXp.js";import{O as p}from"./dist-DtGNiYlK.js";import{nt as m}from"./AppIcon-DZR1MN11.js";import{s as h}from"./http-CAG9BrJF.js";import{t as g}from"./FormField-BoFAO4pm.js";import{n as _}from"./button-CwUSbS9X.js";import{t as v}from"./NativeSelect-G3km7PmI.js";import{t as y}from"./Panel-CyXtNQ_r.js";var b={class:`flex gap-2 text-sm text-muted-foreground`},x={class:`grid grid-cols-2 gap-4 sm:max-w-sm`},S={class:`flex justify-end gap-2 border-t pt-4`},C={__name:`ProfileBirthday`,props:{birthday:{type:Object,default:null},months:{type:Array,required:!0},scope:{type:String,default:`all`}},setup(C){let w=C,T=d({day:w.birthday?.day??null,month:w.birthday?.month??null}),E=i(()=>Array.from({length:31},(e,t)=>({value:t+1,label:String(t+1)}))),D={all:`allen Mitarbeitenden`,department:`Ihrer Abteilung`,location:`Ihrem Standort`};function O(){T.put(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.defaults(),h.success(`Geburtstag gespeichert`)}})}function k(){f.delete(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.day=null,T.month=null,T.defaults(),h.success(`Aus der Geburtstagsliste entfernt`)}})}return(i,d)=>(a(),c(y,{title:`Geburtstag`},{default:o(()=>[r(`form`,{class:`grid gap-4`,onSubmit:u(O,[`prevent`])},[r(`p`,b,[e(n(m),{class:`mt-0.5 size-4 shrink-0 text-brand-text`}),r(`span`,null,`Freiwillig: Wenn Sie Tag und Monat eintragen, erscheint Ihr Geburtstag in der Geburtstagsliste und ist `+s(D[C.scope])+` sichtbar. Das Geburtsjahr wird nicht erfasst. Austragen ist jederzeit möglich.`,1)]),r(`div`,x,[e(g,{id:`birthday-day`,label:`Tag`,error:n(T).errors.day},{default:o(()=>[e(v,{id:`birthday-day`,modelValue:n(T).day,"onUpdate:modelValue":d[0]||=e=>n(T).day=e,options:E.value,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(g,{id:`birthday-month`,label:`Monat`,error:n(T).errors.month},{default:o(()=>[e(v,{id:`birthday-month`,modelValue:n(T).month,"onUpdate:modelValue":d[1]||=e=>n(T).month=e,options:C.months,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])]),r(`div`,S,[C.birthday?(a(),c(n(_),{key:0,type:`button`,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:k},{default:o(()=>[...d[2]||=[t(`Austragen`,-1)]]),_:1})):l(``,!0),e(n(_),{type:`submit`,disabled:n(T).processing||!n(T).day||!n(T).month||!n(T).isDirty},{default:o(()=>[n(T).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),t(` `+s(C.birthday?`Speichern`:`Eintragen`),1)]),_:1},8,[`disabled`])])],32)]),_:1}))}};export{C as default};
\ No newline at end of file
+import{D as e,E as t,On as n,_ as r,g as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as d,o as f}from"./app-0YzlX_sI.js";import{O as p}from"./dist-DtGNiYlK.js";import{nt as m}from"./AppIcon-BAyAC-oO.js";import{s as h}from"./http-CAG9BrJF.js";import{t as g}from"./FormField-BoFAO4pm.js";import{n as _}from"./button-CwUSbS9X.js";import{t as v}from"./NativeSelect-G3km7PmI.js";import{t as y}from"./Panel-2UV8H5Yl.js";var b={class:`flex gap-2 text-sm text-muted-foreground`},x={class:`grid grid-cols-2 gap-4 sm:max-w-sm`},S={class:`flex justify-end gap-2 border-t pt-4`},C={__name:`ProfileBirthday`,props:{birthday:{type:Object,default:null},months:{type:Array,required:!0},scope:{type:String,default:`all`}},setup(C){let w=C,T=d({day:w.birthday?.day??null,month:w.birthday?.month??null}),E=i(()=>Array.from({length:31},(e,t)=>({value:t+1,label:String(t+1)}))),D={all:`allen Mitarbeitenden`,department:`Ihrer Abteilung`,location:`Ihrem Standort`};function O(){T.put(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.defaults(),h.success(`Geburtstag gespeichert`)}})}function k(){f.delete(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.day=null,T.month=null,T.defaults(),h.success(`Aus der Geburtstagsliste entfernt`)}})}return(i,d)=>(a(),c(y,{title:`Geburtstag`},{default:o(()=>[r(`form`,{class:`grid gap-4`,onSubmit:u(O,[`prevent`])},[r(`p`,b,[e(n(m),{class:`mt-0.5 size-4 shrink-0 text-brand-text`}),r(`span`,null,`Freiwillig: Wenn Sie Tag und Monat eintragen, erscheint Ihr Geburtstag in der Geburtstagsliste und ist `+s(D[C.scope])+` sichtbar. Das Geburtsjahr wird nicht erfasst. Austragen ist jederzeit möglich.`,1)]),r(`div`,x,[e(g,{id:`birthday-day`,label:`Tag`,error:n(T).errors.day},{default:o(()=>[e(v,{id:`birthday-day`,modelValue:n(T).day,"onUpdate:modelValue":d[0]||=e=>n(T).day=e,options:E.value,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(g,{id:`birthday-month`,label:`Monat`,error:n(T).errors.month},{default:o(()=>[e(v,{id:`birthday-month`,modelValue:n(T).month,"onUpdate:modelValue":d[1]||=e=>n(T).month=e,options:C.months,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])]),r(`div`,S,[C.birthday?(a(),c(n(_),{key:0,type:`button`,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:k},{default:o(()=>[...d[2]||=[t(`Austragen`,-1)]]),_:1})):l(``,!0),e(n(_),{type:`submit`,disabled:n(T).processing||!n(T).day||!n(T).month||!n(T).isDirty},{default:o(()=>[n(T).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),t(` `+s(C.birthday?`Speichern`:`Eintragen`),1)]),_:1},8,[`disabled`])])],32)]),_:1}))}};export{C as default};
\ No newline at end of file
diff --git a/public/build/assets/ProfileIncomplete-B5VfG5fT.js b/public/build/assets/ProfileIncomplete-Bm2cgYHR.js
similarity index 82%
rename from public/build/assets/ProfileIncomplete-B5VfG5fT.js
rename to public/build/assets/ProfileIncomplete-Bm2cgYHR.js
index 34bedb94..448f08c1 100644
--- a/public/build/assets/ProfileIncomplete-B5VfG5fT.js
+++ b/public/build/assets/ProfileIncomplete-Bm2cgYHR.js
@@ -1 +1 @@
-import{D as e,On as t,_ as n,mt as r,qt as i,v as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as o}from"./app-BIL1bnXp.js";import{r as s}from"./AppLayout-dYp4WcQT.js";var c={__name:`ProfileIncomplete`,setup(c){return(c,l)=>(r(),a(t(o),{href:`/profil/bearbeiten`,class:`flex items-start gap-3 rounded-lg border border-dashed border-brand-300 bg-card p-4 transition-colors hover:bg-brand-soft`},{default:i(()=>[e(t(s),{class:`mt-0.5 size-5 shrink-0 text-brand-text`}),l[0]||=n(`div`,null,[n(`div`,{class:`text-sm font-semibold`},`Profil vervollständigen`),n(`p`,{class:`mt-0.5 text-[13px] text-muted-foreground`},`Mit Foto und Funktion finden Kolleginnen und Kollegen Sie schneller.`)],-1)]),_:1}))}};export{c as default};
\ No newline at end of file
+import{D as e,On as t,_ as n,mt as r,qt as i,v as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as o}from"./app-0YzlX_sI.js";import{r as s}from"./AppLayout-BZsS7ZqB.js";var c={__name:`ProfileIncomplete`,setup(c){return(c,l)=>(r(),a(t(o),{href:`/profil/bearbeiten`,class:`flex items-start gap-3 rounded-lg border border-dashed border-brand-300 bg-card p-4 transition-colors hover:bg-brand-soft`},{default:i(()=>[e(t(s),{class:`mt-0.5 size-5 shrink-0 text-brand-text`}),l[0]||=n(`div`,null,[n(`div`,{class:`text-sm font-semibold`},`Profil vervollständigen`),n(`p`,{class:`mt-0.5 text-[13px] text-muted-foreground`},`Mit Foto und Funktion finden Kolleginnen und Kollegen Sie schneller.`)],-1)]),_:1}))}};export{c as default};
\ No newline at end of file
diff --git a/public/build/assets/QmSearchBox-BB5QWd3P.js b/public/build/assets/QmSearchBox-IhLSRduk.js
similarity index 85%
rename from public/build/assets/QmSearchBox-BB5QWd3P.js
rename to public/build/assets/QmSearchBox-IhLSRduk.js
index 935bc3bd..39612caf 100644
--- a/public/build/assets/QmSearchBox-BB5QWd3P.js
+++ b/public/build/assets/QmSearchBox-IhLSRduk.js
@@ -1 +1 @@
-import{D as e,On as t,b as n,mt as r,vn as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as a}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o}from"./app-BIL1bnXp.js";import{N as s}from"./AppIcon-DZR1MN11.js";import{t as c}from"./Input-FGSb2-yK.js";var l={__name:`QmSearchBox`,props:{initial:{type:String,default:``}},setup(l){let u=i(l.initial);function d(){u.value.trim()&&o.get(`/qm/suche`,{q:u.value.trim()})}return(i,o)=>(r(),n(`form`,{class:`relative w-full sm:w-80`,role:`search`,onSubmit:a(d,[`prevent`])},[e(t(s),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(t(c),{modelValue:u.value,"onUpdate:modelValue":o[0]||=e=>u.value=e,type:`search`,class:`h-10 bg-card pl-9`,placeholder:`QM durchsuchen – auch im Text …`,"aria-label":`Qualitätsmanagement durchsuchen`},null,8,[`modelValue`])],32))}};export{l as t};
\ No newline at end of file
+import{D as e,On as t,b as n,mt as r,vn as i}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as a}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o}from"./app-0YzlX_sI.js";import{N as s}from"./AppIcon-BAyAC-oO.js";import{t as c}from"./Input-FGSb2-yK.js";var l={__name:`QmSearchBox`,props:{initial:{type:String,default:``}},setup(l){let u=i(l.initial);function d(){u.value.trim()&&o.get(`/qm/suche`,{q:u.value.trim()})}return(i,o)=>(r(),n(`form`,{class:`relative w-full sm:w-80`,role:`search`,onSubmit:a(d,[`prevent`])},[e(t(s),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(t(c),{modelValue:u.value,"onUpdate:modelValue":o[0]||=e=>u.value=e,type:`search`,class:`h-10 bg-card pl-9`,placeholder:`QM durchsuchen – auch im Text …`,"aria-label":`Qualitätsmanagement durchsuchen`},null,8,[`modelValue`])],32))}};export{l as t};
\ No newline at end of file
diff --git a/public/build/assets/QuickLinks-FLg2EH4Y.js b/public/build/assets/QuickLinks-Do0EuDch.js
similarity index 95%
rename from public/build/assets/QuickLinks-FLg2EH4Y.js
rename to public/build/assets/QuickLinks-Do0EuDch.js
index 447aa874..b8f865f8 100644
--- a/public/build/assets/QuickLinks-FLg2EH4Y.js
+++ b/public/build/assets/QuickLinks-Do0EuDch.js
@@ -1 +1 @@
-import{D as e,On as t,_ as n,b as r,bt as i,ct as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-BIL1bnXp.js";import{i as h,n as g}from"./dist-DtGNiYlK.js";import{t as _}from"./AppIcon-DZR1MN11.js";import{t as v}from"./chevron-left-8GGLVOvJ.js";import{t as y}from"./chevron-right-C9w5cb2q.js";var b={class:`@container rounded-lg border bg-card`},x={class:`flex items-center justify-between px-5 pt-4 pb-3 @max-md:px-4`},S={key:0,class:`flex gap-1.5`},C=[`disabled`],w=[`disabled`],T={class:`text-xs leading-tight font-medium break-words hyphens-auto`},E={__name:`QuickLinksRow`,props:{links:{type:Array,required:!0}},setup(E){let D=d(null),O=d(!1),k=d(!1);function A(){let e=D.value;e&&(O.value=e.scrollLeft>4,k.value=e.scrollLeft+e.clientWidth(o(),r(`section`,b,[n(`header`,x,[d[2]||=n(`h2`,{class:`text-base font-semibold`},`Schnellzugriff`,-1),O.value||k.value?(o(),r(`div`,S,[n(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!O.value,"aria-label":`Zurück`,onClick:d[0]||=e=>j(-1)},[e(t(v),{class:`size-4`})],8,C),n(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!k.value,"aria-label":`Weiter`,onClick:d[1]||=e=>j(1)},[e(t(y),{class:`size-4`})],8,w)])):p(``,!0)]),n(`div`,{ref_key:`track`,ref:D,class:`flex snap-x scroll-px-5 gap-3 overflow-x-auto px-5 pb-5 [scrollbar-width:none] @max-md:grid @max-md:grid-cols-3 @max-md:gap-2 @max-md:overflow-visible @max-md:px-4 @max-md:pb-4 [&::-webkit-scrollbar]:hidden`},[(o(!0),r(s,null,i(E.links,r=>(o(),u(f(r.url.startsWith(`/`)&&!r.new_tab?t(m):`a`),{key:r.label+r.url,href:r.url,target:r.new_tab?`_blank`:void 0,rel:r.new_tab?`noopener`:void 0,class:`flex w-[116px] shrink-0 snap-start flex-col items-center gap-2.5 rounded-md bg-muted px-2 py-4 text-center transition-colors hover:bg-brand-soft @max-md:w-auto @max-md:gap-2 @max-md:px-1.5 @max-md:py-3`},{default:c(()=>[e(_,{name:r.icon||`link`,class:`size-6 text-brand-text`,"stroke-width":1.6},null,8,[`name`]),n(`span`,T,l(r.label),1)]),_:2},1032,[`href`,`target`,`rel`]))),128))],512)]))}},D={__name:`QuickLinks`,props:{links:{type:Array,required:!0}},setup(e){return(t,n)=>(o(),u(E,{links:e.links},null,8,[`links`]))}};export{D as default};
\ No newline at end of file
+import{D as e,On as t,_ as n,b as r,bt as i,ct as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-0YzlX_sI.js";import{i as h,n as g}from"./dist-DtGNiYlK.js";import{t as _}from"./AppIcon-BAyAC-oO.js";import{t as v}from"./chevron-left-8GGLVOvJ.js";import{t as y}from"./chevron-right-C9w5cb2q.js";var b={class:`@container rounded-lg border bg-card`},x={class:`flex items-center justify-between px-5 pt-4 pb-3 @max-md:px-4`},S={key:0,class:`flex gap-1.5`},C=[`disabled`],w=[`disabled`],T={class:`text-xs leading-tight font-medium break-words hyphens-auto`},E={__name:`QuickLinksRow`,props:{links:{type:Array,required:!0}},setup(E){let D=d(null),O=d(!1),k=d(!1);function A(){let e=D.value;e&&(O.value=e.scrollLeft>4,k.value=e.scrollLeft+e.clientWidth(o(),r(`section`,b,[n(`header`,x,[d[2]||=n(`h2`,{class:`text-base font-semibold`},`Schnellzugriff`,-1),O.value||k.value?(o(),r(`div`,S,[n(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!O.value,"aria-label":`Zurück`,onClick:d[0]||=e=>j(-1)},[e(t(v),{class:`size-4`})],8,C),n(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!k.value,"aria-label":`Weiter`,onClick:d[1]||=e=>j(1)},[e(t(y),{class:`size-4`})],8,w)])):p(``,!0)]),n(`div`,{ref_key:`track`,ref:D,class:`flex snap-x scroll-px-5 gap-3 overflow-x-auto px-5 pb-5 [scrollbar-width:none] @max-md:grid @max-md:grid-cols-3 @max-md:gap-2 @max-md:overflow-visible @max-md:px-4 @max-md:pb-4 [&::-webkit-scrollbar]:hidden`},[(o(!0),r(s,null,i(E.links,r=>(o(),u(f(r.url.startsWith(`/`)&&!r.new_tab?t(m):`a`),{key:r.label+r.url,href:r.url,target:r.new_tab?`_blank`:void 0,rel:r.new_tab?`noopener`:void 0,class:`flex w-[116px] shrink-0 snap-start flex-col items-center gap-2.5 rounded-md bg-muted px-2 py-4 text-center transition-colors hover:bg-brand-soft @max-md:w-auto @max-md:gap-2 @max-md:px-1.5 @max-md:py-3`},{default:c(()=>[e(_,{name:r.icon||`link`,class:`size-6 text-brand-text`,"stroke-width":1.6},null,8,[`name`]),n(`span`,T,l(r.label),1)]),_:2},1032,[`href`,`target`,`rel`]))),128))],512)]))}},D={__name:`QuickLinks`,props:{links:{type:Array,required:!0}},setup(e){return(t,n)=>(o(),u(E,{links:e.links},null,8,[`links`]))}};export{D as default};
\ No newline at end of file
diff --git a/public/build/assets/ResetPassword-D9va0DCr.js b/public/build/assets/ResetPassword-CfaRUcRj.js
similarity index 93%
rename from public/build/assets/ResetPassword-D9va0DCr.js
rename to public/build/assets/ResetPassword-CfaRUcRj.js
index 17769344..dcf8497e 100644
--- a/public/build/assets/ResetPassword-D9va0DCr.js
+++ b/public/build/assets/ResetPassword-CfaRUcRj.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as c}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as l}from"./app-BIL1bnXp.js";import{O as u}from"./dist-DtGNiYlK.js";import{t as d}from"./FormField-BoFAO4pm.js";import{n as f}from"./button-CwUSbS9X.js";import{t as p}from"./Input-FGSb2-yK.js";import{t as m}from"./GuestLayout-Bk0PVv-C.js";var h={__name:`ResetPassword`,props:{email:{type:String,default:``},token:{type:String,required:!0}},setup(h){let g=h,_=l({token:g.token,email:g.email,password:``,password_confirmation:``});function v(){_.post(`/reset-password`,{onFinish:()=>_.reset(`password`,`password_confirmation`)})}return(l,h)=>(i(),o(m,{title:`Neues Passwort festlegen`,description:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:c(v,[`prevent`])},[e(d,{id:`email`,label:`E-Mail-Adresse`,error:n(_).errors.email},{default:a(()=>[e(n(p),{id:`email`,modelValue:n(_).email,"onUpdate:modelValue":h[0]||=e=>n(_).email=e,type:`email`,autocomplete:`username`,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password`,label:`Neues Passwort`,error:n(_).errors.password},{default:a(()=>[e(n(p),{id:`password`,modelValue:n(_).password,"onUpdate:modelValue":h[1]||=e=>n(_).password=e,type:`password`,autocomplete:`new-password`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password_confirmation`,label:`Passwort wiederholen`},{default:a(()=>[e(n(p),{id:`password_confirmation`,modelValue:n(_).password_confirmation,"onUpdate:modelValue":h[2]||=e=>n(_).password_confirmation=e,type:`password`,autocomplete:`new-password`,class:`h-10`},null,8,[`modelValue`])]),_:1}),e(n(f),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(_).processing},{default:a(()=>[n(_).processing?(i(),o(n(u),{key:0,class:`animate-spin`})):s(``,!0),h[3]||=t(` Passwort speichern `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{h as default};
\ No newline at end of file
+import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as c}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as l}from"./app-0YzlX_sI.js";import{O as u}from"./dist-DtGNiYlK.js";import{t as d}from"./FormField-BoFAO4pm.js";import{n as f}from"./button-CwUSbS9X.js";import{t as p}from"./Input-FGSb2-yK.js";import{t as m}from"./GuestLayout-BlpQIyqX.js";var h={__name:`ResetPassword`,props:{email:{type:String,default:``},token:{type:String,required:!0}},setup(h){let g=h,_=l({token:g.token,email:g.email,password:``,password_confirmation:``});function v(){_.post(`/reset-password`,{onFinish:()=>_.reset(`password`,`password_confirmation`)})}return(l,h)=>(i(),o(m,{title:`Neues Passwort festlegen`,description:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:c(v,[`prevent`])},[e(d,{id:`email`,label:`E-Mail-Adresse`,error:n(_).errors.email},{default:a(()=>[e(n(p),{id:`email`,modelValue:n(_).email,"onUpdate:modelValue":h[0]||=e=>n(_).email=e,type:`email`,autocomplete:`username`,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password`,label:`Neues Passwort`,error:n(_).errors.password},{default:a(()=>[e(n(p),{id:`password`,modelValue:n(_).password,"onUpdate:modelValue":h[1]||=e=>n(_).password=e,type:`password`,autocomplete:`new-password`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password_confirmation`,label:`Passwort wiederholen`},{default:a(()=>[e(n(p),{id:`password_confirmation`,modelValue:n(_).password_confirmation,"onUpdate:modelValue":h[2]||=e=>n(_).password_confirmation=e,type:`password`,autocomplete:`new-password`,class:`h-10`},null,8,[`modelValue`])]),_:1}),e(n(f),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(_).processing},{default:a(()=>[n(_).processing?(i(),o(n(u),{key:0,class:`animate-spin`})):s(``,!0),h[3]||=t(` Passwort speichern `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{h as default};
\ No newline at end of file
diff --git a/public/build/assets/RichTextEditor-DZNDAV0m.js b/public/build/assets/RichTextEditor-Yxa2Bbjv.js
similarity index 99%
rename from public/build/assets/RichTextEditor-DZNDAV0m.js
rename to public/build/assets/RichTextEditor-Yxa2Bbjv.js
index 3fe86078..0fedeb1f 100644
--- a/public/build/assets/RichTextEditor-DZNDAV0m.js
+++ b/public/build/assets/RichTextEditor-Yxa2Bbjv.js
@@ -1,4 +1,4 @@
-import{f as e}from"./usePrimitiveElement-DC7UloPZ.js";import{B as t,D as n,Ht as r,L as i,On as a,Ut as o,Yt as s,Zn as c,_ as l,b as u,ct as d,fn as f,it as p,k as m,mt as h,nn as g,o as _,tt as ee,v as te,vn as v,xn as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as ne,x as re}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{O as ie,k as x}from"./dist-DtGNiYlK.js";import{H as ae,k as oe}from"./AppIcon-DZR1MN11.js";import{t as se}from"./check-AfxJa8Ew.js";import{v as ce}from"./http-CAG9BrJF.js";import{t as le}from"./image-plus-C1A_7CFG.js";import{t as ue}from"./images-47Nc0alu.js";import{t as de}from"./list-DHYGZ2vt.js";import{t as fe}from"./quote-CAgJDpoy.js";var pe=x({name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]}),me=x({name:`heading-2`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]}),he=x({name:`heading-3`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]}),ge=x({name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]}),_e=x({name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]}),ve=x({name:`redo-2`,size:24,node:[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]}),ye=x({name:`underline`,size:24,node:[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]}),be=x({name:`unlink`,size:24,node:[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]}),xe=Object.defineProperty,Se=(e,t)=>{let n={};for(var r in e)xe(n,r,{get:e[r],enumerable:!0});return t||xe(n,Symbol.toStringTag,{value:`Module`}),n};function S(e){this.content=e}S.prototype={constructor:S,find:function(e){for(var t=0;t>1}},S.from=function(e){if(e instanceof S)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new S(t)};function C(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i=56320&&e<57344}function Te(e){return e>=55296&&e<56320}var w=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;te&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let e=0,a=0;at&&((an)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?De(t+1,i):De(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;ethis.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;te.type.rank-t.type.rank),n}};T.none=[];var ke=class extends Error{},E=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=je(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(Ae(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(w.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};E.empty=new E(w.empty,0,0);function Ae(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(Ae(a.content,t-i-1,n-i-1)))}function je(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=je(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function Me(e,t,n){if(n.openStart>e.depth)throw new ke(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new ke(`Inconsistent open depths`);return Ne(e,t,n,0)}function Ne(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Le(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Ie(e.nodeAfter,r),a++));for(let e=a;ei&&Fe(e,t,i+1),o=r.depth>i&&Fe(n,r,i+1),s=[];return Le(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Pe(a,o),Ie(Re(a,ze(e,t,n,r,i+1)),s)):(a&&Ie(Re(a,Be(e,t,i+1)),s),Le(t,n,i,s),o&&Ie(Re(o,Be(n,r,i+1)),s)),Le(r,null,i,s),new w(s)}function Be(e,t,n){let r=[];return Le(null,e,n,r),e.depth>n&&Ie(Re(Fe(e,t,n+1),Be(e,t,n+1)),r),Le(t,null,n,r),new w(r)}function Ve(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(w.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var He=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Ke(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=Ge.get(t);if(r)for(let e=0;ee&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Xe(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=w.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;ee.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=w.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};Je.prototype.text=void 0;var Ye=class e extends Je{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Xe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Xe(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Ze(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var Qe=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new $e(t,n);if(r.next==null)return e.empty;let i=et(r);r.next&&r.err(`Unexpected trailing text`);let a=ut(st(i));return dt(a,r),a}matchType(e){for(let t=0;te.createAndFill()));for(let e=0;e=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n`+e.indexOf(t.next[n].next);return r}).join(`
+import{f as e}from"./usePrimitiveElement-DC7UloPZ.js";import{B as t,D as n,Ht as r,L as i,On as a,Ut as o,Yt as s,Zn as c,_ as l,b as u,ct as d,fn as f,it as p,k as m,mt as h,nn as g,o as _,tt as ee,v as te,vn as v,xn as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as ne,x as re}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{O as ie,k as x}from"./dist-DtGNiYlK.js";import{H as ae,k as oe}from"./AppIcon-BAyAC-oO.js";import{t as se}from"./check-AfxJa8Ew.js";import{v as ce}from"./http-CAG9BrJF.js";import{t as le}from"./image-plus-C1A_7CFG.js";import{t as ue}from"./images-47Nc0alu.js";import{t as de}from"./list-DHYGZ2vt.js";import{t as fe}from"./quote-CAgJDpoy.js";var pe=x({name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]}),me=x({name:`heading-2`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]}),he=x({name:`heading-3`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]}),ge=x({name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]}),_e=x({name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]}),ve=x({name:`redo-2`,size:24,node:[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]}),ye=x({name:`underline`,size:24,node:[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]}),be=x({name:`unlink`,size:24,node:[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]}),xe=Object.defineProperty,Se=(e,t)=>{let n={};for(var r in e)xe(n,r,{get:e[r],enumerable:!0});return t||xe(n,Symbol.toStringTag,{value:`Module`}),n};function S(e){this.content=e}S.prototype={constructor:S,find:function(e){for(var t=0;t>1}},S.from=function(e){if(e instanceof S)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new S(t)};function C(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i=56320&&e<57344}function Te(e){return e>=55296&&e<56320}var w=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;te&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let e=0,a=0;at&&((an)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?De(t+1,i):De(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;ethis.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;te.type.rank-t.type.rank),n}};T.none=[];var ke=class extends Error{},E=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=je(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(Ae(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(w.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};E.empty=new E(w.empty,0,0);function Ae(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(Ae(a.content,t-i-1,n-i-1)))}function je(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=je(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function Me(e,t,n){if(n.openStart>e.depth)throw new ke(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new ke(`Inconsistent open depths`);return Ne(e,t,n,0)}function Ne(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Le(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Ie(e.nodeAfter,r),a++));for(let e=a;ei&&Fe(e,t,i+1),o=r.depth>i&&Fe(n,r,i+1),s=[];return Le(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Pe(a,o),Ie(Re(a,ze(e,t,n,r,i+1)),s)):(a&&Ie(Re(a,Be(e,t,i+1)),s),Le(t,n,i,s),o&&Ie(Re(o,Be(n,r,i+1)),s)),Le(r,null,i,s),new w(s)}function Be(e,t,n){let r=[];return Le(null,e,n,r),e.depth>n&&Ie(Re(Fe(e,t,n+1),Be(e,t,n+1)),r),Le(t,null,n,r),new w(r)}function Ve(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(w.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var He=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Ke(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=Ge.get(t);if(r)for(let e=0;ee&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Xe(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=w.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;ee.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=w.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};Je.prototype.text=void 0;var Ye=class e extends Je{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Xe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Xe(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Ze(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var Qe=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new $e(t,n);if(r.next==null)return e.empty;let i=et(r);r.next&&r.err(`Unexpected trailing text`);let a=ut(st(i));return dt(a,r),a}matchType(e){for(let t=0;te.createAndFill()));for(let e=0;e=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n`+e.indexOf(t.next[n].next);return r}).join(`
`)}};Qe.empty=new Qe(!0);var $e=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function et(e){let t=[];do t.push(tt(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function tt(e){let t=[];do t.push(nt(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function nt(e){let t=ot(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=it(e,t);else break;return t}function rt(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function it(e,t){let n=rt(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:rt(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function at(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function ot(e){if(e.eat(`(`)){let t=et(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=at(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function st(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Qe(r.indexOf(e.length-1)>-1);for(let e=0;e-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:pt(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Je(this,this.computeAttrs(e),w.from(t),T.setFrom(n))}createChecked(e=null,t,n){return t=w.from(t),this.checkContent(t),new Je(this,this.computeAttrs(e),t,T.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=w.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(w.empty,!0);return i?new Je(this,e,t.append(i),T.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;tr[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function gt(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var _t=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?gt(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},vt=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=mt(e,r.attrs),this.excluded=null;let i=ft(this.attrs);this.instance=i?new T(this,i):null}create(e=null){return!e&&this.instance?this.instance:new T(this,pt(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t-1}},yt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=S.from(e.nodes),t.marks=S.from(e.marks||{}),this.nodes=ht.compile(this.spec.nodes,this),this.marks=vt.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Qe.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?bt(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:bt(this,n.split(` `))}this.nodeFromJSON=e=>Je.fromJSON(this,e),this.markFromJSON=e=>T.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof ht))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Ye(n,n.defaultAttrs,e,T.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function bt(e,t){let n=[];for(let r=0;r-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function xt(e){return e.tag!=null}function St(e){return e.style!=null}var Ct=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(xt(e))this.tags.push(e);else if(St(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new Mt(this,t,!1);return n.addAll(e,T.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Mt(this,t,!0);return n.addAll(e,T.none,t.from,t.to),E.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;re.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r{n(e=Ft(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Ft(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},wt={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Tt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Et={ol:!0,ul:!0},Dt=1,Ot=2,kt=4;function At(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?Dt:0)|(t===`full`?Ot:0)}var jt=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=T.none,this.match=i||(a&kt?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(w.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Dt)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=w.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(w.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!wt.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},Mt=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=At(null,t.preserveWhitespace,0)|(n?kt:0);i=r?new jt(r.type,r.attrs,T.none,!0,t.topMatch||r.type.contentMatch,a):n?new jt(null,null,T.none,!0,null,a):new jt(e.schema.topNodeType,null,T.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&Ot?`full`:this.localPreserveWS||(r.options&Dt)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node){if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e!(a.type?a.type.allowsMarkType(t.type):It(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new jt(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=Dt);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function Nt(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&Et.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Pt(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Ft(e){let t={};for(let n in e)t[n]=e[n];return t}function It(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n{if(i.length||e.marks.length){let n=0,a=0;for(;n=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Ut(zt(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Ut(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Rt(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Rt(e.marks)}};function Rt(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function zt(e){return e.document||window.document}var Bt=new WeakMap;function Vt(e){let t=Bt.get(e);return t===void 0&&Bt.set(e,t=Ht(e)),t}function Ht(e){let t=null;function n(e){if(e&&typeof e==`object`){if(Array.isArray(e)){if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;iu)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=Ut(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Wt=65535,Gt=2**16;function Kt(e,t){return e+t*Gt}function qt(e){return e&Wt}function Jt(e){return(e-(e&Wt))/Gt}var Yt=1,Xt=2,Zt=4,Qt=8,$t=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Qt)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Zt)>0}},en=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=qt(e);if(!this.inverted)for(let e=0;ee)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Kt(o/3,e-s),f=0;return c&&(f|=e==s?Xt:e==u?Yt:Zt,(t<0?e!=s:e!=u)&&(f|=Qt)),new $t(a,f,d)}r+=l-c}return n?e+r:new $t(e+r,0,null)}touches(e,t){let n=0,r=qt(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;te)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;nn&&t!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return O.fromReplace(e,this.from,this.to,i)}invert(){return new on(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};D.jsonID(`addMark`,an);var on=class e extends D{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new E(rn(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return O.fromReplace(e,this.from,this.to,n)}invert(){return new an(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};D.jsonID(`removeMark`,on);var sn=class e extends D{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return O.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return O.fromReplace(e,this.pos,this.pos+1,new E(w.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;rr.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,E.fromJSON(t,n.slice),n.insert,!!n.structure)}};D.jsonID(`replaceAround`,un);function dn(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function fn(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;ee.step(t)),a.forEach(t=>e.step(t))}function pn(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof vt){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;ee.step(new on(t.from,t.to,t.style)))}function mn(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t=0;t--)e.step(o[t])}function hn(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function gn(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(nn;e--)t||r.index(e)>0?(t=!0,u=w.from(r.node(e).copy(u)),d++):c--;let f=w.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=w.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new un(i,a,i,a,new E(r,0,0),n.length,!0))}function Cn(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&En(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&Tn(e,t,n,a),mn(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new un(c,l,c+1,l-1,new E(w.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&wn(e,t,n,a),!1}})}function wn(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function Tn(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
diff --git a/public/build/assets/Sample-Cmpr4B1i.js b/public/build/assets/Sample-B11CaVen.js
similarity index 88%
rename from public/build/assets/Sample-Cmpr4B1i.js
rename to public/build/assets/Sample-B11CaVen.js
index d1b7bdf2..9e7d6004 100644
--- a/public/build/assets/Sample-Cmpr4B1i.js
+++ b/public/build/assets/Sample-B11CaVen.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{rt as s}from"./AppIcon-DZR1MN11.js";import{t as c}from"./AppLayout-dYp4WcQT.js";import{n as l}from"./button-CwUSbS9X.js";import{t as u}from"./Panel-CyXtNQ_r.js";import{t as d}from"./Input-FGSb2-yK.js";import{t as f}from"./PageContent-BvnlekSK.js";var p={class:`grid gap-8 lg:grid-cols-[minmax(0,1fr)_320px]`},m={class:`min-w-0`},h={class:`grid content-start gap-6`},g={class:`grid gap-3`},_={class:`flex flex-wrap gap-2`},v={__name:`Sample`,props:{content:{type:Object,required:!0}},setup(v){return(y,b)=>(i(),o(c,{title:`Beispielseite`},{default:a(()=>[r(`div`,p,[r(`article`,m,[b[0]||=r(`p`,{class:`text-[11px] font-semibold tracking-wide text-accent2-text uppercase`},`Kategorie`,-1),b[1]||=r(`h1`,{class:`mt-1 mb-8 text-3xl font-semibold tracking-tight`},`Beispielseite`,-1),e(f,{content:v.content},null,8,[`content`])]),r(`aside`,h,[e(u,{title:`Bedienelemente`,"action-label":`Alle anzeigen`,"action-href":`#`},{default:a(()=>[r(`div`,g,[e(n(d),{placeholder:`Eingabefeld`}),r(`div`,_,[e(n(l),null,{default:a(()=>[...b[2]||=[t(`Primär`,-1)]]),_:1}),e(n(l),{variant:`outline`},{default:a(()=>[...b[3]||=[t(`Umrandet`,-1)]]),_:1}),e(n(l),{variant:`ghost`},{default:a(()=>[e(n(s)),b[4]||=t(` Symbol`,-1)]),_:1})])])]),_:1}),b[5]||=r(`section`,{class:`rounded-lg bg-brand p-5 text-brand-foreground`},[r(`p`,{class:`font-semibold`},`Fläche in der Markenfarbe`),r(`p`,{class:`mt-1 text-sm opacity-85`},`Zum Beispiel die Begrüßungskarte auf der Startseite.`)],-1)])])]),_:1}))}};export{v as default};
\ No newline at end of file
+import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{rt as s}from"./AppIcon-BAyAC-oO.js";import{t as c}from"./AppLayout-BZsS7ZqB.js";import{n as l}from"./button-CwUSbS9X.js";import{t as u}from"./Panel-2UV8H5Yl.js";import{t as d}from"./Input-FGSb2-yK.js";import{t as f}from"./PageContent-MInmcEZA.js";var p={class:`grid gap-8 lg:grid-cols-[minmax(0,1fr)_320px]`},m={class:`min-w-0`},h={class:`grid content-start gap-6`},g={class:`grid gap-3`},_={class:`flex flex-wrap gap-2`},v={__name:`Sample`,props:{content:{type:Object,required:!0}},setup(v){return(y,b)=>(i(),o(c,{title:`Beispielseite`},{default:a(()=>[r(`div`,p,[r(`article`,m,[b[0]||=r(`p`,{class:`text-[11px] font-semibold tracking-wide text-accent2-text uppercase`},`Kategorie`,-1),b[1]||=r(`h1`,{class:`mt-1 mb-8 text-3xl font-semibold tracking-tight`},`Beispielseite`,-1),e(f,{content:v.content},null,8,[`content`])]),r(`aside`,h,[e(u,{title:`Bedienelemente`,"action-label":`Alle anzeigen`,"action-href":`#`},{default:a(()=>[r(`div`,g,[e(n(d),{placeholder:`Eingabefeld`}),r(`div`,_,[e(n(l),null,{default:a(()=>[...b[2]||=[t(`Primär`,-1)]]),_:1}),e(n(l),{variant:`outline`},{default:a(()=>[...b[3]||=[t(`Umrandet`,-1)]]),_:1}),e(n(l),{variant:`ghost`},{default:a(()=>[e(n(s)),b[4]||=t(` Symbol`,-1)]),_:1})])])]),_:1}),b[5]||=r(`section`,{class:`rounded-lg bg-brand p-5 text-brand-foreground`},[r(`p`,{class:`font-semibold`},`Fläche in der Markenfarbe`),r(`p`,{class:`mt-1 text-sm opacity-85`},`Zum Beispiel die Begrüßungskarte auf der Startseite.`)],-1)])])]),_:1}))}};export{v as default};
\ No newline at end of file
diff --git a/public/build/assets/Search-DvnIZ9tZ.js b/public/build/assets/Search-BFkhnAPb.js
similarity index 90%
rename from public/build/assets/Search-DvnIZ9tZ.js
rename to public/build/assets/Search-BFkhnAPb.js
index affcb7ce..d34aaa31 100644
--- a/public/build/assets/Search-DvnIZ9tZ.js
+++ b/public/build/assets/Search-BFkhnAPb.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-BIL1bnXp.js";import{k as h}from"./dist-DtGNiYlK.js";import{$ as g}from"./AppIcon-DZR1MN11.js";import{t as _}from"./AppLayout-dYp4WcQT.js";import{t as v}from"./external-link-8-VtmLK9.js";import{t as y}from"./FileIcon-D_jROFBU.js";import{t as b}from"./search-x-BVofHEe_.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-C1gQ5QQB.js";import{t as C}from"./colors-RDOJqd57.js";import{n as w}from"./format-20VMi8w8.js";import{t as T}from"./QmSearchBox-BB5QWd3P.js";var E=h({name:`text-search`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]}),D={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},O={key:1,class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},k={class:`min-w-0 flex-1`},A={class:`flex flex-wrap items-baseline gap-x-2`},j={key:0,class:`text-xs text-muted-foreground`},M={class:`text-xs text-muted-foreground`},N=[`innerHTML`],P={key:1,class:`mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-brand-text`},F={key:1,class:`rounded-lg border bg-card`},I={__name:`Search`,props:{query:{type:String,default:``},results:{type:Array,default:()=>[]}},setup(h){let I=(e,t)=>e.open_kind===`view`?`${e.open_url}?suche=${encodeURIComponent(t)}`:e.open_url;return(L,R)=>(s(),d(_,{title:`Suche: ${h.query}`},{default:l(()=>[e(S,{title:h.query?`Suche: ${h.query}`:`Suche`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}],description:h.query?`${h.results.length} ${h.results.length,`Treffer`} im Qualitätsmanagement – in Titeln und im Text der Dokumente`:``},{actions:l(()=>[(s(),d(T,{key:h.query,initial:h.query},null,8,[`initial`]))]),_:1},8,[`title`,`description`]),h.results.length?(s(),a(`ul`,D,[(s(!0),a(c,null,o(h.results,o=>(s(),a(`li`,{key:o.id,class:`flex gap-3 px-4 py-3.5 hover:bg-accent/40`},[o.type===`file`?(s(),d(y,{key:0,extension:o.extension},null,8,[`extension`])):(s(),a(`span`,O,[o.type===`form`?(s(),d(n(g),{key:0,class:`size-5`})):(s(),d(n(v),{key:1,class:`size-5`}))])),i(`div`,k,[i(`div`,A,[(s(),d(f(o.open_kind===`view`?n(m):`a`),{href:I(o,h.query),target:o.open_kind===`link`?`_blank`:void 0,class:`text-[15px] font-semibold hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`,`target`])),o.version?(s(),a(`span`,j,`Version `+u(o.version),1)):p(``,!0),i(`span`,M,`Stand `+u(n(w)(o.valid_from)),1)]),e(n(m),{href:o.folder.url,class:`mt-0.5 inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:l(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(C)(o.folder.color).dot])},null,2),t(u(o.folder.path),1)]),_:2},1032,[`href`]),o.snippet?(s(),a(`p`,{key:0,class:`qm-snippet mt-1.5 text-[13px] leading-relaxed text-muted-foreground`,innerHTML:o.snippet},null,8,N)):p(``,!0),o.in_content?(s(),a(`p`,P,[e(n(E),{class:`size-3`}),R[0]||=t(` im Text gefunden`,-1)])):p(``,!0)])]))),128))])):h.query?(s(),a(`div`,F,[e(x,{icon:n(b),title:`Nichts gefunden`,text:`Gesucht wird in Titeln, Beschreibungen, Dateinamen und im Text der Dokumente. Eingescannte PDFs sind nur durchsuchbar, wenn die Texterkennung eingerichtet ist.`},null,8,[`icon`])])):p(``,!0)]),_:1},8,[`title`]))}};export{I as default};
\ No newline at end of file
+import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-0YzlX_sI.js";import{k as h}from"./dist-DtGNiYlK.js";import{$ as g}from"./AppIcon-BAyAC-oO.js";import{t as _}from"./AppLayout-BZsS7ZqB.js";import{t as v}from"./external-link-8-VtmLK9.js";import{t as y}from"./FileIcon-D0NBDDoM.js";import{t as b}from"./search-x-BVofHEe_.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-BF5yxdNS.js";import{t as C}from"./colors-RDOJqd57.js";import{n as w}from"./format-20VMi8w8.js";import{t as T}from"./QmSearchBox-IhLSRduk.js";var E=h({name:`text-search`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]}),D={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},O={key:1,class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},k={class:`min-w-0 flex-1`},A={class:`flex flex-wrap items-baseline gap-x-2`},j={key:0,class:`text-xs text-muted-foreground`},M={class:`text-xs text-muted-foreground`},N=[`innerHTML`],P={key:1,class:`mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-brand-text`},F={key:1,class:`rounded-lg border bg-card`},I={__name:`Search`,props:{query:{type:String,default:``},results:{type:Array,default:()=>[]}},setup(h){let I=(e,t)=>e.open_kind===`view`?`${e.open_url}?suche=${encodeURIComponent(t)}`:e.open_url;return(L,R)=>(s(),d(_,{title:`Suche: ${h.query}`},{default:l(()=>[e(S,{title:h.query?`Suche: ${h.query}`:`Suche`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}],description:h.query?`${h.results.length} ${h.results.length,`Treffer`} im Qualitätsmanagement – in Titeln und im Text der Dokumente`:``},{actions:l(()=>[(s(),d(T,{key:h.query,initial:h.query},null,8,[`initial`]))]),_:1},8,[`title`,`description`]),h.results.length?(s(),a(`ul`,D,[(s(!0),a(c,null,o(h.results,o=>(s(),a(`li`,{key:o.id,class:`flex gap-3 px-4 py-3.5 hover:bg-accent/40`},[o.type===`file`?(s(),d(y,{key:0,extension:o.extension},null,8,[`extension`])):(s(),a(`span`,O,[o.type===`form`?(s(),d(n(g),{key:0,class:`size-5`})):(s(),d(n(v),{key:1,class:`size-5`}))])),i(`div`,k,[i(`div`,A,[(s(),d(f(o.open_kind===`view`?n(m):`a`),{href:I(o,h.query),target:o.open_kind===`link`?`_blank`:void 0,class:`text-[15px] font-semibold hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`,`target`])),o.version?(s(),a(`span`,j,`Version `+u(o.version),1)):p(``,!0),i(`span`,M,`Stand `+u(n(w)(o.valid_from)),1)]),e(n(m),{href:o.folder.url,class:`mt-0.5 inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:l(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(C)(o.folder.color).dot])},null,2),t(u(o.folder.path),1)]),_:2},1032,[`href`]),o.snippet?(s(),a(`p`,{key:0,class:`qm-snippet mt-1.5 text-[13px] leading-relaxed text-muted-foreground`,innerHTML:o.snippet},null,8,N)):p(``,!0),o.in_content?(s(),a(`p`,P,[e(n(E),{class:`size-3`}),R[0]||=t(` im Text gefunden`,-1)])):p(``,!0)])]))),128))])):h.query?(s(),a(`div`,F,[e(x,{icon:n(b),title:`Nichts gefunden`,text:`Gesucht wird in Titeln, Beschreibungen, Dateinamen und im Text der Dokumente. Eingescannte PDFs sind nur durchsuchbar, wenn die Texterkennung eingerichtet ist.`},null,8,[`icon`])])):p(``,!0)]),_:1},8,[`title`]))}};export{I as default};
\ No newline at end of file
diff --git a/public/build/assets/Show-DgQiPQHT.js b/public/build/assets/Show-1-OzYECI.js
similarity index 89%
rename from public/build/assets/Show-DgQiPQHT.js
rename to public/build/assets/Show-1-OzYECI.js
index 32af3cb8..d281ca0f 100644
--- a/public/build/assets/Show-DgQiPQHT.js
+++ b/public/build/assets/Show-1-OzYECI.js
@@ -1,2 +1,2 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Comments-uTpBLi4a.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/app-BIL1bnXp.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-CktdeUXb.css","assets/message-circle-Dw_JoLc-.js","assets/dist-DtGNiYlK.js","assets/Panel-CyXtNQ_r.js","assets/chevron-right-C9w5cb2q.js"])))=>i.map(i=>d[i]);
-import{D as e,E as t,O as ee,On as n,Zn as te,_ as r,b as i,bt as a,et as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as h,s as g}from"./app-BIL1bnXp.js";import{B as _,V as v,p as y}from"./AppIcon-DZR1MN11.js";import{r as ne,t as re}from"./AppLayout-dYp4WcQT.js";import{l as b}from"./RovingFocusGroup-D88K7krN.js";import{b as x}from"./http-CAG9BrJF.js";import{t as S}from"./smartphone-BE2l7T-2.js";import{n as C}from"./button-CwUSbS9X.js";import{t as w}from"./Panel-CyXtNQ_r.js";var T={class:`overflow-hidden rounded-lg border bg-card`},E={class:`flex flex-col gap-4 px-6 pb-6 sm:flex-row sm:items-end sm:justify-between`},D={class:`flex flex-col gap-4 sm:flex-row sm:items-end`},O={class:`sm:pb-1`},k={class:`text-2xl font-semibold tracking-tight`},A={key:0,class:`mt-0.5 text-[15px] text-muted-foreground`},j={class:`flex gap-2 sm:pb-1`},M=[`href`],N={class:`mt-6 grid gap-6 lg:grid-cols-12`},P={class:`grid content-start gap-6 lg:col-span-5`},F={class:`grid gap-4`},ie={class:`min-w-0`},I={class:`text-xs text-muted-foreground`},L={class:`truncate text-sm`},R=[`href`],z={class:`grid gap-4`},B={class:`text-xs text-muted-foreground`},V=[`href`,`target`],H={class:`grid content-start gap-6 lg:col-span-7`},U={key:0,class:`text-sm leading-relaxed whitespace-pre-line`},W={key:1,class:`text-sm text-muted-foreground`},G={key:0,class:`mb-4`},K={class:`block text-sm font-semibold`},q={class:`block text-[13px] text-muted-foreground`},J={key:1},Y={class:`flex flex-wrap gap-2`},X={__name:`Show`,props:{person:{type:Object,required:!0},isOwnProfile:{type:Boolean,default:!1},panels:{type:Array,default:()=>[]}},setup(X){let Z=X,Q=Object.fromEntries(Object.entries(Object.assign({"../../../../plugins-core/news/resources/js/profile-panels/Comments.vue":()=>g(()=>import(`./Comments-uTpBLi4a.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))})).map(([e,t])=>[`${e.match(/plugins-core\/([^/]+)\//)[1]}::${e.split(`/`).pop().replace(`.vue`,``)}`,ee(t)])),ae=s(()=>[{icon:v,label:`E-Mail`,value:Z.person.email,href:`mailto:${Z.person.email}`},{icon:x,label:`Telefon`,value:Z.person.phone,href:Z.person.phone&&`tel:${Z.person.phone}`},{icon:S,label:`Mobil`,value:Z.person.mobile,href:Z.person.mobile&&`tel:${Z.person.mobile}`},{icon:b,label:`Abteilung`,value:Z.person.department},{icon:_,label:`Standort`,value:Z.person.location}].filter(e=>e.value));function $(e){return e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value}`:e.type===`url`&&/^https?:\/\//i.test(e.value)?e.value:null}return(ee,s)=>(c(),f(re,{title:X.person.name},{default:u(()=>[r(`section`,T,[s[2]||=r(`div`,{class:`h-28 bg-brand sm:h-32`,style:{"background-image":`linear-gradient(120deg, transparent 40%, rgb(255 255 255 / 0.08))`}},null,-1),r(`div`,E,[r(`div`,D,[e(y,{person:X.person,class:`-mt-14 size-28 text-2xl ring-4 ring-card`},null,8,[`person`]),r(`div`,O,[r(`h1`,k,d(X.person.name),1),X.person.job_title?(c(),i(`p`,A,d(X.person.job_title),1)):m(``,!0)])]),r(`div`,j,[X.isOwnProfile?(c(),f(n(C),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/profil/bearbeiten`},{default:u(()=>[e(n(ne)),s[0]||=t(` Profil bearbeiten`,-1)]),_:1})]),_:1})):(c(),f(n(C),{key:1,"as-child":``},{default:u(()=>[r(`a`,{href:`mailto:${X.person.email}`},[e(n(v)),s[1]||=t(` E-Mail schreiben`,-1)],8,M)]),_:1}))])])]),r(`div`,N,[r(`div`,P,[e(w,{title:`Kontakt`},{default:u(()=>[r(`dl`,F,[(c(!0),i(l,null,a(ae.value,e=>(c(),i(`div`,{key:e.label,class:`flex items-start gap-3`},[(c(),f(p(e.icon),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`})),r(`div`,ie,[r(`dt`,I,d(e.label),1),r(`dd`,L,[e.href?(c(),i(`a`,{key:0,href:e.href,class:`text-brand-text hover:underline`},d(e.value),9,R)):(c(),i(l,{key:1},[t(d(e.value),1)],64))])])]))),128))])]),_:1}),X.person.fields?.length?(c(),f(w,{key:0,title:`Weitere Angaben`},{default:u(()=>[r(`dl`,z,[(c(!0),i(l,null,a(X.person.fields,e=>(c(),i(`div`,{key:e.key,class:`min-w-0`},[r(`dt`,B,d(e.label),1),r(`dd`,{class:te([`text-sm break-words`,{"whitespace-pre-line":e.type===`textarea`}])},[$(e)?(c(),i(`a`,{key:0,href:$(e),class:`text-brand-text hover:underline`,target:e.type===`url`?`_blank`:void 0,rel:`noopener`},d(e.value),9,V)):(c(),i(l,{key:1},[t(d(e.value),1)],64))],2)]))),128))])]),_:1})):m(``,!0)]),r(`div`,H,[e(w,{title:`Über mich`},{default:u(()=>[X.person.about?(c(),i(`p`,U,d(X.person.about),1)):(c(),i(`p`,W,`Noch keine Angaben.`))]),_:1}),X.person.manager||X.person.reports.length?(c(),f(w,{key:0,title:`Team`,"action-label":`Im Organigramm`,"action-href":`/personen/organigramm?person=${X.person.id}`},{default:u(()=>[X.person.manager?(c(),i(`div`,G,[s[3]||=r(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Vorgesetzte*r`,-1),e(n(h),{href:`/personen/${X.person.manager.id}`,class:`flex items-center gap-3 rounded-lg p-2 -m-2 hover:bg-accent`},{default:u(()=>[e(y,{person:X.person.manager,class:`size-10`},null,8,[`person`]),r(`span`,null,[r(`span`,K,d(X.person.manager.name),1),r(`span`,q,d(X.person.manager.job_title),1)])]),_:1},8,[`href`])])):m(``,!0),X.person.reports.length?(c(),i(`div`,J,[s[4]||=r(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Mitarbeitende`,-1),r(`div`,Y,[(c(!0),i(l,null,a(X.person.reports,t=>(c(),f(n(h),{key:t.id,href:`/personen/${t.id}`,title:t.name,class:`rounded-full hover:ring-2 hover:ring-brand-300`},{default:u(()=>[e(y,{person:t,class:`size-9`},null,8,[`person`])]),_:2},1032,[`href`,`title`]))),128))])])):m(``,!0)]),_:1},8,[`action-href`])):m(``,!0),(c(!0),i(l,null,a(X.panels,e=>(c(),i(l,{key:e.key},[n(Q)[e.component]?(c(),f(p(n(Q)[e.component]),o({key:0,ref_for:!0},e.props),null,16)):m(``,!0)],64))),128))])])]),_:1},8,[`title`]))}};export{X as default};
\ No newline at end of file
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Comments-Dt0eM2DN.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/app-0YzlX_sI.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-BxfVigbi.css","assets/message-circle-Dw_JoLc-.js","assets/dist-DtGNiYlK.js","assets/Panel-2UV8H5Yl.js","assets/chevron-right-C9w5cb2q.js"])))=>i.map(i=>d[i]);
+import{D as e,E as t,O as ee,On as n,Zn as te,_ as r,b as i,bt as a,et as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as h,s as g}from"./app-0YzlX_sI.js";import{B as _,V as v,p as y}from"./AppIcon-BAyAC-oO.js";import{r as ne,t as re}from"./AppLayout-BZsS7ZqB.js";import{l as b}from"./RovingFocusGroup-D88K7krN.js";import{b as x}from"./http-CAG9BrJF.js";import{t as S}from"./smartphone-BE2l7T-2.js";import{n as C}from"./button-CwUSbS9X.js";import{t as w}from"./Panel-2UV8H5Yl.js";var T={class:`overflow-hidden rounded-lg border bg-card`},E={class:`flex flex-col gap-4 px-6 pb-6 sm:flex-row sm:items-end sm:justify-between`},D={class:`flex flex-col gap-4 sm:flex-row sm:items-end`},O={class:`sm:pb-1`},k={class:`text-2xl font-semibold tracking-tight`},A={key:0,class:`mt-0.5 text-[15px] text-muted-foreground`},j={class:`flex gap-2 sm:pb-1`},M=[`href`],N={class:`mt-6 grid gap-6 lg:grid-cols-12`},P={class:`grid content-start gap-6 lg:col-span-5`},F={class:`grid gap-4`},ie={class:`min-w-0`},I={class:`text-xs text-muted-foreground`},L={class:`truncate text-sm`},R=[`href`],z={class:`grid gap-4`},B={class:`text-xs text-muted-foreground`},V=[`href`,`target`],H={class:`grid content-start gap-6 lg:col-span-7`},U={key:0,class:`text-sm leading-relaxed whitespace-pre-line`},W={key:1,class:`text-sm text-muted-foreground`},G={key:0,class:`mb-4`},K={class:`block text-sm font-semibold`},q={class:`block text-[13px] text-muted-foreground`},J={key:1},Y={class:`flex flex-wrap gap-2`},X={__name:`Show`,props:{person:{type:Object,required:!0},isOwnProfile:{type:Boolean,default:!1},panels:{type:Array,default:()=>[]}},setup(X){let Z=X,Q=Object.fromEntries(Object.entries(Object.assign({"../../../../plugins-core/news/resources/js/profile-panels/Comments.vue":()=>g(()=>import(`./Comments-Dt0eM2DN.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))})).map(([e,t])=>[`${e.match(/plugins-core\/([^/]+)\//)[1]}::${e.split(`/`).pop().replace(`.vue`,``)}`,ee(t)])),ae=s(()=>[{icon:v,label:`E-Mail`,value:Z.person.email,href:`mailto:${Z.person.email}`},{icon:x,label:`Telefon`,value:Z.person.phone,href:Z.person.phone&&`tel:${Z.person.phone}`},{icon:S,label:`Mobil`,value:Z.person.mobile,href:Z.person.mobile&&`tel:${Z.person.mobile}`},{icon:b,label:`Abteilung`,value:Z.person.department},{icon:_,label:`Standort`,value:Z.person.location}].filter(e=>e.value));function $(e){return e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value}`:e.type===`url`&&/^https?:\/\//i.test(e.value)?e.value:null}return(ee,s)=>(c(),f(re,{title:X.person.name},{default:u(()=>[r(`section`,T,[s[2]||=r(`div`,{class:`h-28 bg-brand sm:h-32`,style:{"background-image":`linear-gradient(120deg, transparent 40%, rgb(255 255 255 / 0.08))`}},null,-1),r(`div`,E,[r(`div`,D,[e(y,{person:X.person,class:`-mt-14 size-28 text-2xl ring-4 ring-card`},null,8,[`person`]),r(`div`,O,[r(`h1`,k,d(X.person.name),1),X.person.job_title?(c(),i(`p`,A,d(X.person.job_title),1)):m(``,!0)])]),r(`div`,j,[X.isOwnProfile?(c(),f(n(C),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/profil/bearbeiten`},{default:u(()=>[e(n(ne)),s[0]||=t(` Profil bearbeiten`,-1)]),_:1})]),_:1})):(c(),f(n(C),{key:1,"as-child":``},{default:u(()=>[r(`a`,{href:`mailto:${X.person.email}`},[e(n(v)),s[1]||=t(` E-Mail schreiben`,-1)],8,M)]),_:1}))])])]),r(`div`,N,[r(`div`,P,[e(w,{title:`Kontakt`},{default:u(()=>[r(`dl`,F,[(c(!0),i(l,null,a(ae.value,e=>(c(),i(`div`,{key:e.label,class:`flex items-start gap-3`},[(c(),f(p(e.icon),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`})),r(`div`,ie,[r(`dt`,I,d(e.label),1),r(`dd`,L,[e.href?(c(),i(`a`,{key:0,href:e.href,class:`text-brand-text hover:underline`},d(e.value),9,R)):(c(),i(l,{key:1},[t(d(e.value),1)],64))])])]))),128))])]),_:1}),X.person.fields?.length?(c(),f(w,{key:0,title:`Weitere Angaben`},{default:u(()=>[r(`dl`,z,[(c(!0),i(l,null,a(X.person.fields,e=>(c(),i(`div`,{key:e.key,class:`min-w-0`},[r(`dt`,B,d(e.label),1),r(`dd`,{class:te([`text-sm break-words`,{"whitespace-pre-line":e.type===`textarea`}])},[$(e)?(c(),i(`a`,{key:0,href:$(e),class:`text-brand-text hover:underline`,target:e.type===`url`?`_blank`:void 0,rel:`noopener`},d(e.value),9,V)):(c(),i(l,{key:1},[t(d(e.value),1)],64))],2)]))),128))])]),_:1})):m(``,!0)]),r(`div`,H,[e(w,{title:`Über mich`},{default:u(()=>[X.person.about?(c(),i(`p`,U,d(X.person.about),1)):(c(),i(`p`,W,`Noch keine Angaben.`))]),_:1}),X.person.manager||X.person.reports.length?(c(),f(w,{key:0,title:`Team`,"action-label":`Im Organigramm`,"action-href":`/personen/organigramm?person=${X.person.id}`},{default:u(()=>[X.person.manager?(c(),i(`div`,G,[s[3]||=r(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Vorgesetzte*r`,-1),e(n(h),{href:`/personen/${X.person.manager.id}`,class:`flex items-center gap-3 rounded-lg p-2 -m-2 hover:bg-accent`},{default:u(()=>[e(y,{person:X.person.manager,class:`size-10`},null,8,[`person`]),r(`span`,null,[r(`span`,K,d(X.person.manager.name),1),r(`span`,q,d(X.person.manager.job_title),1)])]),_:1},8,[`href`])])):m(``,!0),X.person.reports.length?(c(),i(`div`,J,[s[4]||=r(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Mitarbeitende`,-1),r(`div`,Y,[(c(!0),i(l,null,a(X.person.reports,t=>(c(),f(n(h),{key:t.id,href:`/personen/${t.id}`,title:t.name,class:`rounded-full hover:ring-2 hover:ring-brand-300`},{default:u(()=>[e(y,{person:t,class:`size-9`},null,8,[`person`])]),_:2},1032,[`href`,`title`]))),128))])])):m(``,!0)]),_:1},8,[`action-href`])):m(``,!0),(c(!0),i(l,null,a(X.panels,e=>(c(),i(l,{key:e.key},[n(Q)[e.component]?(c(),f(p(n(Q)[e.component]),o({key:0,ref_for:!0},e.props),null,16)):m(``,!0)],64))),128))])])]),_:1},8,[`title`]))}};export{X as default};
\ No newline at end of file
diff --git a/public/build/assets/Show-DUPNY79M.js b/public/build/assets/Show-1rrKCJ46.js
similarity index 92%
rename from public/build/assets/Show-DUPNY79M.js
rename to public/build/assets/Show-1rrKCJ46.js
index b24e64fc..2aa7be95 100644
--- a/public/build/assets/Show-DUPNY79M.js
+++ b/public/build/assets/Show-1rrKCJ46.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as u}from"./app-BIL1bnXp.js";import{k as d}from"./dist-DtGNiYlK.js";import{B as f,E as p,Q as m}from"./AppIcon-DZR1MN11.js";import{t as h}from"./arrow-left-BMImfTf2.js";import{t as g}from"./AppLayout-dYp4WcQT.js";import{r as _}from"./format-BsuBtvUs.js";import{n as v}from"./button-CwUSbS9X.js";import{t as y}from"./Panel-CyXtNQ_r.js";import{t as b}from"./EventDateBlock-_E5XlLto.js";var x=d({name:`calendar-plus`,size:24,node:[[`path`,{d:`M16 18h6`,key:`987eiv`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M19 15v6`,key:`10aioa`}],[`path`,{d:`M21 11.5V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h8.3`,key:`jgwkxf`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}]]}),S={class:`mx-auto max-w-4xl`},C={class:`flex items-start gap-4`},w={class:`pt-1 text-2xl leading-tight font-semibold tracking-tight sm:text-3xl`},T=[`src`,`alt`],E={class:`mt-6 grid gap-6 lg:grid-cols-3`},D=[`innerHTML`],O={key:1,class:`text-sm text-muted-foreground`},k={class:`grid gap-4 text-sm`},A={class:`flex gap-3`},j={key:0,class:`flex gap-3`},M={key:1,class:`flex gap-3`},N={class:`min-w-0`},P={class:`truncate`},F=[`href`],I=[`href`],L={__name:`Show`,props:{event:{type:Object,required:!0}},setup(d){return(L,R)=>(a(),c(g,{title:d.event.title},{default:o(()=>[r(`div`,S,[e(n(u),{href:`/termine`,class:`mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(h),{class:`size-4`}),R[0]||=t(` Alle Termine `,-1)]),_:1}),r(`div`,C,[e(b,{date:d.event.starts_at,class:`w-16 py-2`},null,8,[`date`]),r(`h1`,w,s(d.event.title),1)]),d.event.image_url?(a(),i(`img`,{key:0,src:d.event.image_url,alt:d.event.title,class:`mt-6 aspect-video w-full rounded-lg object-cover`},null,8,T)):l(``,!0),r(`div`,E,[e(y,{title:`Beschreibung`,class:`lg:col-span-2`},{default:o(()=>[d.event.description_html?(a(),i(`div`,{key:0,class:`prose prose-neutral max-w-none text-[15px]`,innerHTML:d.event.description_html},null,8,D)):(a(),i(`p`,O,`Keine weiteren Informationen.`))]),_:1}),e(y,{title:`Details`,class:`content-start`},{default:o(()=>[r(`dl`,k,[r(`div`,A,[e(n(m),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,null,[R[1]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Wann`,-1),r(`dd`,null,s(n(_)(d.event)),1)])]),d.event.location?(a(),i(`div`,j,[e(n(f),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,null,[R[2]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Ort`,-1),r(`dd`,null,s(d.event.location),1)])])):l(``,!0),d.event.online_url?(a(),i(`div`,M,[e(n(p),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,N,[R[3]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Online`,-1),r(`dd`,P,[r(`a`,{href:d.event.online_url,target:`_blank`,rel:`noopener`,class:`text-brand-text hover:underline`},`Zur Teilnahme`,8,F)])])])):l(``,!0)]),e(n(v),{variant:`outline`,class:`mt-5 w-full`,"as-child":``},{default:o(()=>[r(`a`,{href:`/termine/${d.event.id}/kalender.ics`},[e(n(x)),R[4]||=t(` In meinen Kalender`,-1)],8,I)]),_:1})]),_:1})])])]),_:1},8,[`title`]))}};export{L as default};
\ No newline at end of file
+import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as u}from"./app-0YzlX_sI.js";import{k as d}from"./dist-DtGNiYlK.js";import{B as f,E as p,Q as m}from"./AppIcon-BAyAC-oO.js";import{t as h}from"./arrow-left-BMImfTf2.js";import{t as g}from"./AppLayout-BZsS7ZqB.js";import{r as _}from"./format-BsuBtvUs.js";import{n as v}from"./button-CwUSbS9X.js";import{t as y}from"./Panel-2UV8H5Yl.js";import{t as b}from"./EventDateBlock-_E5XlLto.js";var x=d({name:`calendar-plus`,size:24,node:[[`path`,{d:`M16 18h6`,key:`987eiv`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M19 15v6`,key:`10aioa`}],[`path`,{d:`M21 11.5V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h8.3`,key:`jgwkxf`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}]]}),S={class:`mx-auto max-w-4xl`},C={class:`flex items-start gap-4`},w={class:`pt-1 text-2xl leading-tight font-semibold tracking-tight sm:text-3xl`},T=[`src`,`alt`],E={class:`mt-6 grid gap-6 lg:grid-cols-3`},D=[`innerHTML`],O={key:1,class:`text-sm text-muted-foreground`},k={class:`grid gap-4 text-sm`},A={class:`flex gap-3`},j={key:0,class:`flex gap-3`},M={key:1,class:`flex gap-3`},N={class:`min-w-0`},P={class:`truncate`},F=[`href`],I=[`href`],L={__name:`Show`,props:{event:{type:Object,required:!0}},setup(d){return(L,R)=>(a(),c(g,{title:d.event.title},{default:o(()=>[r(`div`,S,[e(n(u),{href:`/termine`,class:`mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(h),{class:`size-4`}),R[0]||=t(` Alle Termine `,-1)]),_:1}),r(`div`,C,[e(b,{date:d.event.starts_at,class:`w-16 py-2`},null,8,[`date`]),r(`h1`,w,s(d.event.title),1)]),d.event.image_url?(a(),i(`img`,{key:0,src:d.event.image_url,alt:d.event.title,class:`mt-6 aspect-video w-full rounded-lg object-cover`},null,8,T)):l(``,!0),r(`div`,E,[e(y,{title:`Beschreibung`,class:`lg:col-span-2`},{default:o(()=>[d.event.description_html?(a(),i(`div`,{key:0,class:`prose prose-neutral max-w-none text-[15px]`,innerHTML:d.event.description_html},null,8,D)):(a(),i(`p`,O,`Keine weiteren Informationen.`))]),_:1}),e(y,{title:`Details`,class:`content-start`},{default:o(()=>[r(`dl`,k,[r(`div`,A,[e(n(m),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,null,[R[1]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Wann`,-1),r(`dd`,null,s(n(_)(d.event)),1)])]),d.event.location?(a(),i(`div`,j,[e(n(f),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,null,[R[2]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Ort`,-1),r(`dd`,null,s(d.event.location),1)])])):l(``,!0),d.event.online_url?(a(),i(`div`,M,[e(n(p),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),r(`div`,N,[R[3]||=r(`dt`,{class:`text-xs text-muted-foreground`},`Online`,-1),r(`dd`,P,[r(`a`,{href:d.event.online_url,target:`_blank`,rel:`noopener`,class:`text-brand-text hover:underline`},`Zur Teilnahme`,8,F)])])])):l(``,!0)]),e(n(v),{variant:`outline`,class:`mt-5 w-full`,"as-child":``},{default:o(()=>[r(`a`,{href:`/termine/${d.event.id}/kalender.ics`},[e(n(x)),R[4]||=t(` In meinen Kalender`,-1)],8,I)]),_:1})]),_:1})])])]),_:1},8,[`title`]))}};export{L as default};
\ No newline at end of file
diff --git a/public/build/assets/Show-DikPCP3x.js b/public/build/assets/Show-CBLrlSlh.js
similarity index 81%
rename from public/build/assets/Show-DikPCP3x.js
rename to public/build/assets/Show-CBLrlSlh.js
index da994eee..d8ee9e2b 100644
--- a/public/build/assets/Show-DikPCP3x.js
+++ b/public/build/assets/Show-CBLrlSlh.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as u}from"./app-BIL1bnXp.js";import{t as d}from"./arrow-left-BMImfTf2.js";import{t as f}from"./AppLayout-dYp4WcQT.js";import{t as p}from"./calendar-clock-8H2IkjP5.js";import{n as m}from"./format-BsuBtvUs.js";import{t as h}from"./FormRenderer-AzcLagK5.js";var g={class:`mx-auto max-w-3xl`},_={class:`text-3xl font-semibold tracking-tight`},v={key:0,class:`mt-3 leading-relaxed whitespace-pre-line text-muted-foreground`},y={key:1,class:`mt-3 inline-flex items-center gap-1.5 text-[13px] text-muted-foreground`},b={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},x={__name:`Show`,props:{form:{type:Object,required:!0}},setup(x){return(S,C)=>(a(),c(f,{title:x.form.title},{default:o(()=>[r(`div`,g,[e(n(u),{href:`/formulare`,class:`mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(d),{class:`size-4`}),C[0]||=t(` Alle Formulare `,-1)]),_:1}),r(`h1`,_,s(x.form.title),1),x.form.description?(a(),i(`p`,v,s(x.form.description),1)):l(``,!0),x.form.closes_at&&x.form.open?(a(),i(`p`,y,[e(n(p),{class:`size-4`}),t(` Einsendeschluss: `+s(n(m)(x.form.closes_at)),1)])):l(``,!0),r(`div`,b,[e(h,{form:x.form},null,8,[`form`])])])]),_:1},8,[`title`]))}};export{x as default};
\ No newline at end of file
+import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as u}from"./app-0YzlX_sI.js";import{t as d}from"./arrow-left-BMImfTf2.js";import{t as f}from"./AppLayout-BZsS7ZqB.js";import{t as p}from"./calendar-clock-8H2IkjP5.js";import{n as m}from"./format-BsuBtvUs.js";import{t as h}from"./FormRenderer-CwhsDe_A.js";var g={class:`mx-auto max-w-3xl`},_={class:`text-3xl font-semibold tracking-tight`},v={key:0,class:`mt-3 leading-relaxed whitespace-pre-line text-muted-foreground`},y={key:1,class:`mt-3 inline-flex items-center gap-1.5 text-[13px] text-muted-foreground`},b={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},x={__name:`Show`,props:{form:{type:Object,required:!0}},setup(x){return(S,C)=>(a(),c(f,{title:x.form.title},{default:o(()=>[r(`div`,g,[e(n(u),{href:`/formulare`,class:`mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(d),{class:`size-4`}),C[0]||=t(` Alle Formulare `,-1)]),_:1}),r(`h1`,_,s(x.form.title),1),x.form.description?(a(),i(`p`,v,s(x.form.description),1)):l(``,!0),x.form.closes_at&&x.form.open?(a(),i(`p`,y,[e(n(p),{class:`size-4`}),t(` Einsendeschluss: `+s(n(m)(x.form.closes_at)),1)])):l(``,!0),r(`div`,b,[e(h,{form:x.form},null,8,[`form`])])])]),_:1},8,[`title`]))}};export{x as default};
\ No newline at end of file
diff --git a/public/build/assets/Show-C_9YO2Rz.js b/public/build/assets/Show-Cx8sZUkn.js
similarity index 98%
rename from public/build/assets/Show-C_9YO2Rz.js
rename to public/build/assets/Show-Cx8sZUkn.js
index 0810a40c..b4c4b9b9 100644
--- a/public/build/assets/Show-C_9YO2Rz.js
+++ b/public/build/assets/Show-Cx8sZUkn.js
@@ -1 +1 @@
-import{D as e,E as t,Ht as n,On as r,Yt as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,mt as d,o as f,qt as p,tr as m,tt as h,v as g,vn as _,wt as v,y}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as b,w as x,x as S}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as C,o as w,r as T}from"./app-BIL1bnXp.js";import{O as ee,k as E,o as D}from"./dist-DtGNiYlK.js";import{Q as O,V as k,p as A,tt as j}from"./AppIcon-DZR1MN11.js";import{t as M}from"./arrow-left-BMImfTf2.js";import{t as N}from"./AppLayout-dYp4WcQT.js";import{t as P}from"./check-AfxJa8Ew.js";import{n as te,t as F}from"./message-circle-Dw_JoLc-.js";import{t as I}from"./link-2-DbrWevIe.js";import{t as L}from"./pen-line-22hyV1yp.js";import{t as R}from"./send-6fmdiUe6.js";import{t as ne}from"./trash-DUqnVIgb.js";import{n as z,o as B}from"./format-BsuBtvUs.js";import{n as V}from"./button-CwUSbS9X.js";import{t as H}from"./PageContent-BvnlekSK.js";var re=E({name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]}),ie=E({name:`reply`,size:24,node:[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]}),ae={id:`kommentare`,class:`rounded-xl border bg-card p-6 shadow-xs sm:p-8`,"aria-labelledby":`kommentare-titel`},oe={id:`kommentare-titel`,class:`flex items-center gap-2 text-lg font-semibold`},se={key:0,class:`rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground tabular-nums`},U={class:`min-w-0 flex-1`},W=[`maxlength`,`onKeydown`],G={key:0,class:`mt-1 text-[13px] text-destructive`},K={key:1,class:`mt-2 flex items-center justify-end gap-3`},ce={key:1,class:`mt-4 rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground`},le={key:2,class:`mt-6 text-sm text-muted-foreground`},ue={class:`mt-6 grid gap-6`},de=[`id`],fe={class:`min-w-0 flex-1`},pe={key:0,class:`py-1 text-sm text-muted-foreground italic`},me={class:`rounded-lg bg-muted/60 px-3.5 py-2.5`},he={class:`flex flex-wrap items-baseline gap-x-2 text-[13px]`},ge={class:`font-semibold`},_e={key:0,class:`text-muted-foreground`},ve={key:0,class:`mt-0.5 flex items-center gap-1 text-xs text-muted-foreground`},ye=[`onSubmit`],be=[`maxlength`],xe={class:`mt-2 flex justify-end gap-2`},Se={key:2,class:`mt-1 text-sm leading-relaxed break-words whitespace-pre-line`},Ce={class:`mt-1 flex flex-wrap items-center gap-x-3 px-1 text-xs text-muted-foreground`},we=[`datetime`,`title`],Te={key:0},Ee=[`onClick`],De=[`onClick`],Oe=[`onClick`],ke={class:`min-w-0 flex-1`},Ae={class:`mb-1 text-xs text-muted-foreground`},je=[`id`,`maxlength`,`onKeydown`],Me={key:0,class:`mt-1 text-[13px] text-destructive`},Ne={class:`mt-2 flex justify-end gap-2`},q={__name:`NewsComments`,props:{postSlug:{type:String,required:!0},comments:{type:Object,required:!0}},setup(n){let u=n,v=C(),T=v.props.auth?.user,E=_(``),D=_(!1),O=_({}),k=_(null),j=_(``),M=_(null),N=_(``),P=new Intl.RelativeTimeFormat(`de-DE`,{numeric:`auto`}),I=new Intl.DateTimeFormat(`de-DE`,{dateStyle:`medium`,timeStyle:`short`});function L(e){let t=(new Date(e)-new Date)/1e3,n=[[60,`second`],[60,`minute`],[24,`hour`],[7,`day`]],r=t;for(let[e,t]of n){if(Math.abs(r)O.value=e,onSuccess:()=>{O.value={},t();let e=v.props.flash?.comment;e&&h(()=>Z(e))},onFinish:()=>D.value=!1})}function B(){E.value.trim()&&z({body:E.value},()=>E.value=``)}function H(e){M.value=null,k.value=e,j.value=``,h(()=>document.getElementById(`antwort-${e.id}`)?.focus())}function q(){j.value.trim()&&z({body:j.value,parent_id:k.value.id},()=>{k.value=null,j.value=``})}function J(e){k.value=null,M.value=e.id,N.value=e.body}function Y(e){w.put(`/kommentare/${e.id}`,{body:N.value},{preserveScroll:!0,only:[`comments`,`flash`],onSuccess:()=>M.value=null})}function X(e){window.confirm(`Kommentar löschen?`)&&w.delete(`/kommentare/${e.id}`,{preserveScroll:!0,only:[`comments`,`flash`]})}function Z(e){let t=document.getElementById(`kommentar-${e}`);t&&(t.scrollIntoView({behavior:`smooth`,block:`center`}),t.classList.add(`ring-2`,`ring-brand/40`),setTimeout(()=>t.classList.remove(`ring-2`,`ring-brand/40`),2e3))}l(()=>{let e=window.location.hash.match(/^#kommentar-(\d+)$/);e&&setTimeout(()=>Z(e[1]),300)});let Q=e=>{e.target.style.height=`auto`,e.target.style.height=`${e.target.scrollHeight}px`};return(l,u)=>(d(),s(`section`,ae,[o(`h2`,oe,[e(r(F),{class:`size-5 text-brand-text`}),u[6]||=t(` Kommentare `,-1),n.comments.count?(d(),s(`span`,se,m(n.comments.count),1)):y(``,!0)]),n.comments.enabled?(d(),s(`form`,{key:0,class:`mt-5 flex gap-3`,onSubmit:x(B,[`prevent`])},[r(T)?(d(),g(A,{key:0,person:r(T),class:`size-9 shrink-0`},null,8,[`person`])):y(``,!0),o(`div`,U,[i(o(`textarea`,{"onUpdate:modelValue":u[0]||=e=>E.value=e,rows:`2`,maxlength:n.comments.max,placeholder:`Was meinen Sie dazu?`,"aria-label":`Kommentar schreiben`,class:`w-full resize-none rounded-lg border border-input bg-background px-3 py-2 text-sm leading-relaxed focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`,onInput:Q,onKeydown:[b(x(B,[`ctrl`]),[`enter`]),b(x(B,[`meta`]),[`enter`])]},null,40,W),[[S,E.value]]),O.value.body&&!k.value?(d(),s(`p`,G,m(O.value.body),1)):y(``,!0),E.value.trim()?(d(),s(`div`,K,[u[8]||=o(`span`,{class:`text-xs text-muted-foreground`},`Strg + Enter zum Senden`,-1),e(r(V),{type:`submit`,size:`sm`,disabled:D.value},{default:p(()=>[D.value?(d(),g(r(ee),{key:0,class:`animate-spin`})):(d(),g(r(R),{key:1})),u[7]||=t(` Kommentieren`,-1)]),_:1},8,[`disabled`])])):y(``,!0)])],32)):(d(),s(`p`,ce,`Die Kommentare zu diesem Beitrag sind geschlossen.`)),!n.comments.threads.length&&n.comments.enabled?(d(),s(`p`,le,`Noch keine Kommentare – schreiben Sie den ersten.`)):y(``,!0),o(`ol`,ue,[(d(!0),s(f,null,c(n.comments.threads,l=>(d(),s(`li`,{key:l.id},[(d(!0),s(f,null,c([l,...l.replies],(c,l)=>(d(),s(`article`,{key:c.id,id:`kommentar-${c.id}`,class:a([`flex gap-3 rounded-lg transition-shadow`,l>0?`mt-4 ml-6 sm:ml-12`:``])},[c.author?(d(),g(A,{key:0,person:c.author,class:a([l>0?`size-8`:`size-9`,`shrink-0`])},null,8,[`person`,`class`])):(d(),s(`span`,{key:1,class:a([`grid shrink-0 place-items-center rounded-full bg-muted text-muted-foreground`,l>0?`size-8`:`size-9`])},[e(r(F),{class:`size-4`})],2)),o(`div`,fe,[c.deleted?(d(),s(`p`,pe,`Dieser Kommentar wurde gelöscht.`)):(d(),s(f,{key:1},[o(`div`,me,[o(`p`,he,[o(`span`,ge,m(c.author?.name??`Ehemalige Person`),1),c.author?.department?(d(),s(`span`,_e,m(c.author.department),1)):y(``,!0)]),c.reply_to?(d(),s(`p`,ve,[e(r(te),{class:`size-3`}),t(` Antwort an `+m(c.reply_to),1)])):y(``,!0),M.value===c.id?(d(),s(`form`,{key:1,class:`mt-2`,onSubmit:x(e=>Y(c),[`prevent`])},[i(o(`textarea`,{"onUpdate:modelValue":u[1]||=e=>N.value=e,rows:`3`,maxlength:n.comments.max,class:`w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`,"aria-label":`Kommentar bearbeiten`},null,8,be),[[S,N.value]]),o(`div`,xe,[e(r(V),{type:`button`,size:`sm`,variant:`ghost`,onClick:u[2]||=e=>M.value=null},{default:p(()=>[...u[9]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(V),{type:`submit`,size:`sm`,disabled:!N.value.trim()},{default:p(()=>[...u[10]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])])],40,ye)):(d(),s(`p`,Se,m(c.body),1))]),o(`div`,Ce,[o(`time`,{datetime:c.created_at,title:r(I).format(new Date(c.created_at))},m(L(c.created_at)),9,we),c.edited?(d(),s(`span`,Te,`bearbeitet`)):y(``,!0),n.comments.enabled?(d(),s(`button`,{key:1,type:`button`,class:`inline-flex items-center gap-1 font-medium hover:text-foreground`,onClick:e=>H(c)},[e(r(ie),{class:`size-3.5`}),u[11]||=t(` Antworten`,-1)],8,Ee)):y(``,!0),c.can.edit?(d(),s(`button`,{key:2,type:`button`,class:`inline-flex items-center gap-1 hover:text-foreground`,onClick:e=>J(c)},[e(r(re),{class:`size-3`}),u[12]||=t(` Bearbeiten`,-1)],8,De)):y(``,!0),c.can.delete?(d(),s(`button`,{key:3,type:`button`,class:`inline-flex items-center gap-1 hover:text-destructive`,onClick:e=>X(c)},[e(r(ne),{class:`size-3`}),u[13]||=t(` Löschen`,-1)],8,Oe)):y(``,!0)])],64))])],10,de))),128)),k.value&&[l.id,...l.replies.map(e=>e.id)].includes(k.value.id)?(d(),s(`form`,{key:0,class:`mt-3 ml-6 flex gap-3 sm:ml-12`,onSubmit:x(q,[`prevent`])},[r(T)?(d(),g(A,{key:0,person:r(T),class:`size-8 shrink-0`},null,8,[`person`])):y(``,!0),o(`div`,ke,[o(`p`,Ae,`Antwort an `+m(k.value.author?.name),1),i(o(`textarea`,{id:`antwort-${k.value.id}`,"onUpdate:modelValue":u[3]||=e=>j.value=e,rows:`2`,maxlength:n.comments.max,class:`w-full resize-none rounded-lg border border-input bg-background px-3 py-2 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`,"aria-label":`Antwort schreiben`,onInput:Q,onKeydown:[b(x(q,[`ctrl`]),[`enter`]),b(x(q,[`meta`]),[`enter`]),u[4]||=b(e=>k.value=null,[`esc`])]},null,40,je),[[S,j.value]]),O.value.body?(d(),s(`p`,Me,m(O.value.body),1)):y(``,!0),o(`div`,Ne,[e(r(V),{type:`button`,size:`sm`,variant:`ghost`,onClick:u[5]||=e=>k.value=null},{default:p(()=>[...u[14]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(V),{type:`submit`,size:`sm`,disabled:D.value||!j.value.trim()},{default:p(()=>[e(r(R)),u[15]||=t(` Antworten`,-1)]),_:1},8,[`disabled`])])])],32)):y(``,!0)]))),128))])]))}},J={class:`fixed inset-x-0 top-0 z-50 h-1 bg-transparent`,"aria-hidden":`true`},Y={class:`mb-4 flex items-center justify-between gap-4`},X={class:`relative isolate overflow-hidden rounded-xl bg-brand text-white shadow-sm`},Z=[`src`,`alt`],Q={key:1,class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/85 via-black/45 to-black/5`},Pe={key:2,class:`absolute inset-0 -z-10 opacity-20 [background-image:radial-gradient(circle_at_85%_15%,white_0,transparent_45%),radial-gradient(circle_at_10%_110%,white_0,transparent_40%)]`},Fe={class:`flex min-h-[260px] flex-col justify-end gap-3 p-6 sm:min-h-[360px] sm:p-10 lg:min-h-[420px]`},Ie={key:0,class:`w-fit rounded-full bg-white/15 px-3 py-1 text-[11px] font-semibold tracking-wider uppercase ring-1 ring-white/30 backdrop-blur`},Le={class:`max-w-4xl text-3xl leading-tight font-semibold tracking-tight text-balance sm:text-4xl lg:text-[44px]`},Re={key:1,class:`max-w-3xl text-base leading-relaxed text-white/85 sm:text-lg`},ze={class:`mt-2 flex flex-wrap items-center gap-x-5 gap-y-2 text-sm text-white/80`},Be={class:`inline-flex items-center gap-1.5`},Ve={class:`inline-flex items-center gap-1.5`},He={key:0,href:`#kommentare`,class:`inline-flex items-center gap-1.5 hover:text-white`},Ue={class:`mt-6 grid gap-6 lg:grid-cols-12`},We={class:`grid min-w-0 grid-cols-1 content-start gap-6 lg:col-span-8`},Ge={key:0,class:`mb-8 flex items-center gap-3 border-b pb-6 lg:hidden`},Ke={class:`min-w-0 text-sm`},qe={key:0,class:`text-muted-foreground`},Je=[`innerHTML`],$={class:`mt-10 flex flex-wrap items-center gap-2 border-t pt-6`},Ye=[`href`],Xe={class:`grid content-start gap-6 lg:col-span-4`},Ze={key:0,class:`rounded-xl border bg-card p-5 shadow-xs`},Qe={class:`min-w-0`},$e={class:`block font-semibold`},et={key:0,class:`block text-[13px] text-muted-foreground`},tt={key:1,class:`rounded-xl border bg-card p-5 shadow-xs lg:sticky lg:top-20`},nt={class:`grid gap-1`},rt=[`src`],it={key:1,class:`grid h-16 w-20 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},at={class:`min-w-0`},ot={key:0,class:`block text-[10px] font-semibold tracking-wider text-accent2-text uppercase`},st={class:`line-clamp-2 text-sm leading-snug font-medium group-hover:underline`},ct={class:`block text-xs text-muted-foreground`},lt={__name:`Show`,props:{post:{type:Object,required:!0},related:{type:Object,required:!0},editUrl:{type:String,default:null},form:{type:Object,default:null},content:{type:Object,default:null},comments:{type:Object,default:null}},setup(i){let a=i,l=_(null),h=_(0),{y:b}=D();n(b,()=>{let e=l.value;if(!e)return;let t=e.getBoundingClientRect(),n=t.height-window.innerHeight*.6;h.value=Math.min(100,Math.max(0,-t.top/Math.max(n,1)*100))});let x=_(!1);async function S(){try{await navigator.clipboard.writeText(window.location.href),x.value=!0,setTimeout(()=>x.value=!1,2e3)}catch{window.prompt(`Link zum Beitrag:`,window.location.href)}}let C=e=>[e?.department,e?.job_title].filter(Boolean).join(` | `),w=()=>`mailto:?subject=${encodeURIComponent(a.post.title)}&body=${encodeURIComponent(window.location.href)}`;return(n,a)=>(d(),g(N,{title:i.post.title},{default:p(()=>[o(`div`,J,[o(`div`,{class:`h-full bg-brand transition-[width] duration-150`,style:u({width:`${h.value}%`})},null,4)]),o(`div`,Y,[e(r(T),{href:`/neuigkeiten`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:p(()=>[e(r(M),{class:`size-4`}),a[0]||=t(` Alle Neuigkeiten `,-1)]),_:1}),i.editUrl?(d(),g(r(V),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:p(()=>[e(r(T),{href:i.editUrl},{default:p(()=>[e(r(L)),a[1]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):y(``,!0)]),o(`header`,X,[i.post.cover_url?(d(),s(`img`,{key:0,src:i.post.cover_url,alt:i.post.title,class:`absolute inset-0 -z-10 size-full object-cover`},null,8,Z)):y(``,!0),i.post.cover_url?(d(),s(`div`,Q)):(d(),s(`div`,Pe)),o(`div`,Fe,[i.post.category?(d(),s(`span`,Ie,m(i.post.category.name),1)):y(``,!0),o(`h1`,Le,m(i.post.title),1),i.post.teaser?(d(),s(`p`,Re,m(i.post.teaser),1)):y(``,!0),o(`div`,ze,[o(`span`,Be,[e(r(j),{class:`size-4`}),t(` `+m(r(z)(i.post.published_at)),1)]),o(`span`,Ve,[e(r(O),{class:`size-4`}),t(` `+m(i.post.reading_minutes)+` Min. Lesezeit`,1)]),i.comments?.count?(d(),s(`a`,He,[e(r(F),{class:`size-4`}),t(` `+m(i.comments.count)+` `+m(i.comments.count===1?`Kommentar`:`Kommentare`),1)])):y(``,!0)])])]),o(`div`,Ue,[o(`div`,We,[o(`article`,{ref_key:`article`,ref:l,class:`min-w-0 rounded-xl border bg-card p-6 shadow-xs sm:p-10`},[i.post.author?(d(),s(`div`,Ge,[e(A,{person:i.post.author,class:`size-11`},null,8,[`person`]),o(`div`,Ke,[e(r(T),{href:`/personen/${i.post.author.id}`,class:`font-semibold hover:underline`},{default:p(()=>[t(m(i.post.author.name),1)]),_:1},8,[`href`]),C(i.post.author)?(d(),s(`p`,qe,m(C(i.post.author)),1)):y(``,!0)])])):y(``,!0),i.content?(d(),g(H,{key:1,content:i.content},null,8,[`content`])):(d(),s(`div`,{key:2,class:`prose prose-neutral max-w-none prose-headings:tracking-tight prose-h2:mt-10 prose-a:text-brand-text prose-blockquote:border-l-brand prose-blockquote:bg-brand-soft/50 prose-blockquote:py-1 prose-blockquote:not-italic prose-img:rounded-lg dark:prose-invert first-of-type:prose-p:text-lg`,innerHTML:i.post.body_html},null,8,Je)),i.form?(d(),g(H,{key:3,content:i.form,class:`mt-10`},null,8,[`content`])):y(``,!0),o(`footer`,$,[a[3]||=o(`span`,{class:`mr-2 text-sm text-muted-foreground`},`Beitrag teilen:`,-1),e(r(V),{variant:`outline`,size:`sm`,onClick:S},{default:p(()=>[(d(),g(v(x.value?r(P):r(I)))),t(` `+m(x.value?`Link kopiert`:`Link kopieren`),1)]),_:1}),e(r(V),{variant:`outline`,size:`sm`,"as-child":``},{default:p(()=>[o(`a`,{href:w()},[e(r(k)),a[2]||=t(` Per E-Mail`,-1)],8,Ye)]),_:1})])],512),i.comments?(d(),g(q,{key:0,"post-slug":i.post.slug,comments:i.comments},null,8,[`post-slug`,`comments`])):y(``,!0)]),o(`aside`,Xe,[i.post.author?(d(),s(`section`,Ze,[a[4]||=o(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Geschrieben von`,-1),e(r(T),{href:`/personen/${i.post.author.id}`,class:`flex items-center gap-3 rounded-lg p-1 hover:bg-accent/50`},{default:p(()=>[e(A,{person:i.post.author,class:`size-14`},null,8,[`person`]),o(`span`,Qe,[o(`span`,$e,m(i.post.author.name),1),C(i.post.author)?(d(),s(`span`,et,m(C(i.post.author)),1)):y(``,!0)])]),_:1},8,[`href`])])):y(``,!0),i.related.data.length?(d(),s(`section`,tt,[a[6]||=o(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Weitere Beiträge`,-1),o(`ul`,nt,[(d(!0),s(f,null,c(i.related.data,t=>(d(),s(`li`,{key:t.id},[e(r(T),{href:`/neuigkeiten/${t.slug}`,class:`group flex gap-3 rounded-lg p-2 hover:bg-accent/50`},{default:p(()=>[t.thumb_url?(d(),s(`img`,{key:0,src:t.thumb_url,alt:``,loading:`lazy`,class:`h-16 w-20 shrink-0 rounded-md object-cover`},null,8,rt)):(d(),s(`span`,it,[e(r(j),{class:`size-5`})])),o(`span`,at,[t.category?(d(),s(`span`,ot,m(t.category.name),1)):y(``,!0),o(`span`,st,m(t.title),1),o(`span`,ct,m(r(B)(t.published_at)),1)])]),_:2},1032,[`href`])]))),128))]),e(r(T),{href:`/neuigkeiten`,class:`mt-3 block border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:p(()=>[...a[5]||=[t(`Alle Neuigkeiten`,-1)]]),_:1})])):y(``,!0)])])]),_:1},8,[`title`]))}};export{lt as default};
\ No newline at end of file
+import{D as e,E as t,Ht as n,On as r,Yt as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,mt as d,o as f,qt as p,tr as m,tt as h,v as g,vn as _,wt as v,y}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as b,w as x,x as S}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as C,o as w,r as T}from"./app-0YzlX_sI.js";import{O as ee,k as E,o as D}from"./dist-DtGNiYlK.js";import{Q as O,V as k,p as A,tt as j}from"./AppIcon-BAyAC-oO.js";import{t as M}from"./arrow-left-BMImfTf2.js";import{t as N}from"./AppLayout-BZsS7ZqB.js";import{t as P}from"./check-AfxJa8Ew.js";import{n as te,t as F}from"./message-circle-Dw_JoLc-.js";import{t as I}from"./link-2-DbrWevIe.js";import{t as L}from"./pen-line-22hyV1yp.js";import{t as R}from"./send-6fmdiUe6.js";import{t as ne}from"./trash-DUqnVIgb.js";import{n as z,o as B}from"./format-BsuBtvUs.js";import{n as V}from"./button-CwUSbS9X.js";import{t as H}from"./PageContent-MInmcEZA.js";var re=E({name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]}),ie=E({name:`reply`,size:24,node:[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]}),ae={id:`kommentare`,class:`rounded-xl border bg-card p-6 shadow-xs sm:p-8`,"aria-labelledby":`kommentare-titel`},oe={id:`kommentare-titel`,class:`flex items-center gap-2 text-lg font-semibold`},se={key:0,class:`rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground tabular-nums`},U={class:`min-w-0 flex-1`},W=[`maxlength`,`onKeydown`],G={key:0,class:`mt-1 text-[13px] text-destructive`},K={key:1,class:`mt-2 flex items-center justify-end gap-3`},ce={key:1,class:`mt-4 rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground`},le={key:2,class:`mt-6 text-sm text-muted-foreground`},ue={class:`mt-6 grid gap-6`},de=[`id`],fe={class:`min-w-0 flex-1`},pe={key:0,class:`py-1 text-sm text-muted-foreground italic`},me={class:`rounded-lg bg-muted/60 px-3.5 py-2.5`},he={class:`flex flex-wrap items-baseline gap-x-2 text-[13px]`},ge={class:`font-semibold`},_e={key:0,class:`text-muted-foreground`},ve={key:0,class:`mt-0.5 flex items-center gap-1 text-xs text-muted-foreground`},ye=[`onSubmit`],be=[`maxlength`],xe={class:`mt-2 flex justify-end gap-2`},Se={key:2,class:`mt-1 text-sm leading-relaxed break-words whitespace-pre-line`},Ce={class:`mt-1 flex flex-wrap items-center gap-x-3 px-1 text-xs text-muted-foreground`},we=[`datetime`,`title`],Te={key:0},Ee=[`onClick`],De=[`onClick`],Oe=[`onClick`],ke={class:`min-w-0 flex-1`},Ae={class:`mb-1 text-xs text-muted-foreground`},je=[`id`,`maxlength`,`onKeydown`],Me={key:0,class:`mt-1 text-[13px] text-destructive`},Ne={class:`mt-2 flex justify-end gap-2`},q={__name:`NewsComments`,props:{postSlug:{type:String,required:!0},comments:{type:Object,required:!0}},setup(n){let u=n,v=C(),T=v.props.auth?.user,E=_(``),D=_(!1),O=_({}),k=_(null),j=_(``),M=_(null),N=_(``),P=new Intl.RelativeTimeFormat(`de-DE`,{numeric:`auto`}),I=new Intl.DateTimeFormat(`de-DE`,{dateStyle:`medium`,timeStyle:`short`});function L(e){let t=(new Date(e)-new Date)/1e3,n=[[60,`second`],[60,`minute`],[24,`hour`],[7,`day`]],r=t;for(let[e,t]of n){if(Math.abs(r)O.value=e,onSuccess:()=>{O.value={},t();let e=v.props.flash?.comment;e&&h(()=>Z(e))},onFinish:()=>D.value=!1})}function B(){E.value.trim()&&z({body:E.value},()=>E.value=``)}function H(e){M.value=null,k.value=e,j.value=``,h(()=>document.getElementById(`antwort-${e.id}`)?.focus())}function q(){j.value.trim()&&z({body:j.value,parent_id:k.value.id},()=>{k.value=null,j.value=``})}function J(e){k.value=null,M.value=e.id,N.value=e.body}function Y(e){w.put(`/kommentare/${e.id}`,{body:N.value},{preserveScroll:!0,only:[`comments`,`flash`],onSuccess:()=>M.value=null})}function X(e){window.confirm(`Kommentar löschen?`)&&w.delete(`/kommentare/${e.id}`,{preserveScroll:!0,only:[`comments`,`flash`]})}function Z(e){let t=document.getElementById(`kommentar-${e}`);t&&(t.scrollIntoView({behavior:`smooth`,block:`center`}),t.classList.add(`ring-2`,`ring-brand/40`),setTimeout(()=>t.classList.remove(`ring-2`,`ring-brand/40`),2e3))}l(()=>{let e=window.location.hash.match(/^#kommentar-(\d+)$/);e&&setTimeout(()=>Z(e[1]),300)});let Q=e=>{e.target.style.height=`auto`,e.target.style.height=`${e.target.scrollHeight}px`};return(l,u)=>(d(),s(`section`,ae,[o(`h2`,oe,[e(r(F),{class:`size-5 text-brand-text`}),u[6]||=t(` Kommentare `,-1),n.comments.count?(d(),s(`span`,se,m(n.comments.count),1)):y(``,!0)]),n.comments.enabled?(d(),s(`form`,{key:0,class:`mt-5 flex gap-3`,onSubmit:x(B,[`prevent`])},[r(T)?(d(),g(A,{key:0,person:r(T),class:`size-9 shrink-0`},null,8,[`person`])):y(``,!0),o(`div`,U,[i(o(`textarea`,{"onUpdate:modelValue":u[0]||=e=>E.value=e,rows:`2`,maxlength:n.comments.max,placeholder:`Was meinen Sie dazu?`,"aria-label":`Kommentar schreiben`,class:`w-full resize-none rounded-lg border border-input bg-background px-3 py-2 text-sm leading-relaxed focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`,onInput:Q,onKeydown:[b(x(B,[`ctrl`]),[`enter`]),b(x(B,[`meta`]),[`enter`])]},null,40,W),[[S,E.value]]),O.value.body&&!k.value?(d(),s(`p`,G,m(O.value.body),1)):y(``,!0),E.value.trim()?(d(),s(`div`,K,[u[8]||=o(`span`,{class:`text-xs text-muted-foreground`},`Strg + Enter zum Senden`,-1),e(r(V),{type:`submit`,size:`sm`,disabled:D.value},{default:p(()=>[D.value?(d(),g(r(ee),{key:0,class:`animate-spin`})):(d(),g(r(R),{key:1})),u[7]||=t(` Kommentieren`,-1)]),_:1},8,[`disabled`])])):y(``,!0)])],32)):(d(),s(`p`,ce,`Die Kommentare zu diesem Beitrag sind geschlossen.`)),!n.comments.threads.length&&n.comments.enabled?(d(),s(`p`,le,`Noch keine Kommentare – schreiben Sie den ersten.`)):y(``,!0),o(`ol`,ue,[(d(!0),s(f,null,c(n.comments.threads,l=>(d(),s(`li`,{key:l.id},[(d(!0),s(f,null,c([l,...l.replies],(c,l)=>(d(),s(`article`,{key:c.id,id:`kommentar-${c.id}`,class:a([`flex gap-3 rounded-lg transition-shadow`,l>0?`mt-4 ml-6 sm:ml-12`:``])},[c.author?(d(),g(A,{key:0,person:c.author,class:a([l>0?`size-8`:`size-9`,`shrink-0`])},null,8,[`person`,`class`])):(d(),s(`span`,{key:1,class:a([`grid shrink-0 place-items-center rounded-full bg-muted text-muted-foreground`,l>0?`size-8`:`size-9`])},[e(r(F),{class:`size-4`})],2)),o(`div`,fe,[c.deleted?(d(),s(`p`,pe,`Dieser Kommentar wurde gelöscht.`)):(d(),s(f,{key:1},[o(`div`,me,[o(`p`,he,[o(`span`,ge,m(c.author?.name??`Ehemalige Person`),1),c.author?.department?(d(),s(`span`,_e,m(c.author.department),1)):y(``,!0)]),c.reply_to?(d(),s(`p`,ve,[e(r(te),{class:`size-3`}),t(` Antwort an `+m(c.reply_to),1)])):y(``,!0),M.value===c.id?(d(),s(`form`,{key:1,class:`mt-2`,onSubmit:x(e=>Y(c),[`prevent`])},[i(o(`textarea`,{"onUpdate:modelValue":u[1]||=e=>N.value=e,rows:`3`,maxlength:n.comments.max,class:`w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`,"aria-label":`Kommentar bearbeiten`},null,8,be),[[S,N.value]]),o(`div`,xe,[e(r(V),{type:`button`,size:`sm`,variant:`ghost`,onClick:u[2]||=e=>M.value=null},{default:p(()=>[...u[9]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(V),{type:`submit`,size:`sm`,disabled:!N.value.trim()},{default:p(()=>[...u[10]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])])],40,ye)):(d(),s(`p`,Se,m(c.body),1))]),o(`div`,Ce,[o(`time`,{datetime:c.created_at,title:r(I).format(new Date(c.created_at))},m(L(c.created_at)),9,we),c.edited?(d(),s(`span`,Te,`bearbeitet`)):y(``,!0),n.comments.enabled?(d(),s(`button`,{key:1,type:`button`,class:`inline-flex items-center gap-1 font-medium hover:text-foreground`,onClick:e=>H(c)},[e(r(ie),{class:`size-3.5`}),u[11]||=t(` Antworten`,-1)],8,Ee)):y(``,!0),c.can.edit?(d(),s(`button`,{key:2,type:`button`,class:`inline-flex items-center gap-1 hover:text-foreground`,onClick:e=>J(c)},[e(r(re),{class:`size-3`}),u[12]||=t(` Bearbeiten`,-1)],8,De)):y(``,!0),c.can.delete?(d(),s(`button`,{key:3,type:`button`,class:`inline-flex items-center gap-1 hover:text-destructive`,onClick:e=>X(c)},[e(r(ne),{class:`size-3`}),u[13]||=t(` Löschen`,-1)],8,Oe)):y(``,!0)])],64))])],10,de))),128)),k.value&&[l.id,...l.replies.map(e=>e.id)].includes(k.value.id)?(d(),s(`form`,{key:0,class:`mt-3 ml-6 flex gap-3 sm:ml-12`,onSubmit:x(q,[`prevent`])},[r(T)?(d(),g(A,{key:0,person:r(T),class:`size-8 shrink-0`},null,8,[`person`])):y(``,!0),o(`div`,ke,[o(`p`,Ae,`Antwort an `+m(k.value.author?.name),1),i(o(`textarea`,{id:`antwort-${k.value.id}`,"onUpdate:modelValue":u[3]||=e=>j.value=e,rows:`2`,maxlength:n.comments.max,class:`w-full resize-none rounded-lg border border-input bg-background px-3 py-2 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`,"aria-label":`Antwort schreiben`,onInput:Q,onKeydown:[b(x(q,[`ctrl`]),[`enter`]),b(x(q,[`meta`]),[`enter`]),u[4]||=b(e=>k.value=null,[`esc`])]},null,40,je),[[S,j.value]]),O.value.body?(d(),s(`p`,Me,m(O.value.body),1)):y(``,!0),o(`div`,Ne,[e(r(V),{type:`button`,size:`sm`,variant:`ghost`,onClick:u[5]||=e=>k.value=null},{default:p(()=>[...u[14]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(V),{type:`submit`,size:`sm`,disabled:D.value||!j.value.trim()},{default:p(()=>[e(r(R)),u[15]||=t(` Antworten`,-1)]),_:1},8,[`disabled`])])])],32)):y(``,!0)]))),128))])]))}},J={class:`fixed inset-x-0 top-0 z-50 h-1 bg-transparent`,"aria-hidden":`true`},Y={class:`mb-4 flex items-center justify-between gap-4`},X={class:`relative isolate overflow-hidden rounded-xl bg-brand text-white shadow-sm`},Z=[`src`,`alt`],Q={key:1,class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/85 via-black/45 to-black/5`},Pe={key:2,class:`absolute inset-0 -z-10 opacity-20 [background-image:radial-gradient(circle_at_85%_15%,white_0,transparent_45%),radial-gradient(circle_at_10%_110%,white_0,transparent_40%)]`},Fe={class:`flex min-h-[260px] flex-col justify-end gap-3 p-6 sm:min-h-[360px] sm:p-10 lg:min-h-[420px]`},Ie={key:0,class:`w-fit rounded-full bg-white/15 px-3 py-1 text-[11px] font-semibold tracking-wider uppercase ring-1 ring-white/30 backdrop-blur`},Le={class:`max-w-4xl text-3xl leading-tight font-semibold tracking-tight text-balance sm:text-4xl lg:text-[44px]`},Re={key:1,class:`max-w-3xl text-base leading-relaxed text-white/85 sm:text-lg`},ze={class:`mt-2 flex flex-wrap items-center gap-x-5 gap-y-2 text-sm text-white/80`},Be={class:`inline-flex items-center gap-1.5`},Ve={class:`inline-flex items-center gap-1.5`},He={key:0,href:`#kommentare`,class:`inline-flex items-center gap-1.5 hover:text-white`},Ue={class:`mt-6 grid gap-6 lg:grid-cols-12`},We={class:`grid min-w-0 grid-cols-1 content-start gap-6 lg:col-span-8`},Ge={key:0,class:`mb-8 flex items-center gap-3 border-b pb-6 lg:hidden`},Ke={class:`min-w-0 text-sm`},qe={key:0,class:`text-muted-foreground`},Je=[`innerHTML`],$={class:`mt-10 flex flex-wrap items-center gap-2 border-t pt-6`},Ye=[`href`],Xe={class:`grid content-start gap-6 lg:col-span-4`},Ze={key:0,class:`rounded-xl border bg-card p-5 shadow-xs`},Qe={class:`min-w-0`},$e={class:`block font-semibold`},et={key:0,class:`block text-[13px] text-muted-foreground`},tt={key:1,class:`rounded-xl border bg-card p-5 shadow-xs lg:sticky lg:top-20`},nt={class:`grid gap-1`},rt=[`src`],it={key:1,class:`grid h-16 w-20 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},at={class:`min-w-0`},ot={key:0,class:`block text-[10px] font-semibold tracking-wider text-accent2-text uppercase`},st={class:`line-clamp-2 text-sm leading-snug font-medium group-hover:underline`},ct={class:`block text-xs text-muted-foreground`},lt={__name:`Show`,props:{post:{type:Object,required:!0},related:{type:Object,required:!0},editUrl:{type:String,default:null},form:{type:Object,default:null},content:{type:Object,default:null},comments:{type:Object,default:null}},setup(i){let a=i,l=_(null),h=_(0),{y:b}=D();n(b,()=>{let e=l.value;if(!e)return;let t=e.getBoundingClientRect(),n=t.height-window.innerHeight*.6;h.value=Math.min(100,Math.max(0,-t.top/Math.max(n,1)*100))});let x=_(!1);async function S(){try{await navigator.clipboard.writeText(window.location.href),x.value=!0,setTimeout(()=>x.value=!1,2e3)}catch{window.prompt(`Link zum Beitrag:`,window.location.href)}}let C=e=>[e?.department,e?.job_title].filter(Boolean).join(` | `),w=()=>`mailto:?subject=${encodeURIComponent(a.post.title)}&body=${encodeURIComponent(window.location.href)}`;return(n,a)=>(d(),g(N,{title:i.post.title},{default:p(()=>[o(`div`,J,[o(`div`,{class:`h-full bg-brand transition-[width] duration-150`,style:u({width:`${h.value}%`})},null,4)]),o(`div`,Y,[e(r(T),{href:`/neuigkeiten`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:p(()=>[e(r(M),{class:`size-4`}),a[0]||=t(` Alle Neuigkeiten `,-1)]),_:1}),i.editUrl?(d(),g(r(V),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:p(()=>[e(r(T),{href:i.editUrl},{default:p(()=>[e(r(L)),a[1]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):y(``,!0)]),o(`header`,X,[i.post.cover_url?(d(),s(`img`,{key:0,src:i.post.cover_url,alt:i.post.title,class:`absolute inset-0 -z-10 size-full object-cover`},null,8,Z)):y(``,!0),i.post.cover_url?(d(),s(`div`,Q)):(d(),s(`div`,Pe)),o(`div`,Fe,[i.post.category?(d(),s(`span`,Ie,m(i.post.category.name),1)):y(``,!0),o(`h1`,Le,m(i.post.title),1),i.post.teaser?(d(),s(`p`,Re,m(i.post.teaser),1)):y(``,!0),o(`div`,ze,[o(`span`,Be,[e(r(j),{class:`size-4`}),t(` `+m(r(z)(i.post.published_at)),1)]),o(`span`,Ve,[e(r(O),{class:`size-4`}),t(` `+m(i.post.reading_minutes)+` Min. Lesezeit`,1)]),i.comments?.count?(d(),s(`a`,He,[e(r(F),{class:`size-4`}),t(` `+m(i.comments.count)+` `+m(i.comments.count===1?`Kommentar`:`Kommentare`),1)])):y(``,!0)])])]),o(`div`,Ue,[o(`div`,We,[o(`article`,{ref_key:`article`,ref:l,class:`min-w-0 rounded-xl border bg-card p-6 shadow-xs sm:p-10`},[i.post.author?(d(),s(`div`,Ge,[e(A,{person:i.post.author,class:`size-11`},null,8,[`person`]),o(`div`,Ke,[e(r(T),{href:`/personen/${i.post.author.id}`,class:`font-semibold hover:underline`},{default:p(()=>[t(m(i.post.author.name),1)]),_:1},8,[`href`]),C(i.post.author)?(d(),s(`p`,qe,m(C(i.post.author)),1)):y(``,!0)])])):y(``,!0),i.content?(d(),g(H,{key:1,content:i.content},null,8,[`content`])):(d(),s(`div`,{key:2,class:`prose prose-neutral max-w-none prose-headings:tracking-tight prose-h2:mt-10 prose-a:text-brand-text prose-blockquote:border-l-brand prose-blockquote:bg-brand-soft/50 prose-blockquote:py-1 prose-blockquote:not-italic prose-img:rounded-lg dark:prose-invert first-of-type:prose-p:text-lg`,innerHTML:i.post.body_html},null,8,Je)),i.form?(d(),g(H,{key:3,content:i.form,class:`mt-10`},null,8,[`content`])):y(``,!0),o(`footer`,$,[a[3]||=o(`span`,{class:`mr-2 text-sm text-muted-foreground`},`Beitrag teilen:`,-1),e(r(V),{variant:`outline`,size:`sm`,onClick:S},{default:p(()=>[(d(),g(v(x.value?r(P):r(I)))),t(` `+m(x.value?`Link kopiert`:`Link kopieren`),1)]),_:1}),e(r(V),{variant:`outline`,size:`sm`,"as-child":``},{default:p(()=>[o(`a`,{href:w()},[e(r(k)),a[2]||=t(` Per E-Mail`,-1)],8,Ye)]),_:1})])],512),i.comments?(d(),g(q,{key:0,"post-slug":i.post.slug,comments:i.comments},null,8,[`post-slug`,`comments`])):y(``,!0)]),o(`aside`,Xe,[i.post.author?(d(),s(`section`,Ze,[a[4]||=o(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Geschrieben von`,-1),e(r(T),{href:`/personen/${i.post.author.id}`,class:`flex items-center gap-3 rounded-lg p-1 hover:bg-accent/50`},{default:p(()=>[e(A,{person:i.post.author,class:`size-14`},null,8,[`person`]),o(`span`,Qe,[o(`span`,$e,m(i.post.author.name),1),C(i.post.author)?(d(),s(`span`,et,m(C(i.post.author)),1)):y(``,!0)])]),_:1},8,[`href`])])):y(``,!0),i.related.data.length?(d(),s(`section`,tt,[a[6]||=o(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Weitere Beiträge`,-1),o(`ul`,nt,[(d(!0),s(f,null,c(i.related.data,t=>(d(),s(`li`,{key:t.id},[e(r(T),{href:`/neuigkeiten/${t.slug}`,class:`group flex gap-3 rounded-lg p-2 hover:bg-accent/50`},{default:p(()=>[t.thumb_url?(d(),s(`img`,{key:0,src:t.thumb_url,alt:``,loading:`lazy`,class:`h-16 w-20 shrink-0 rounded-md object-cover`},null,8,rt)):(d(),s(`span`,it,[e(r(j),{class:`size-5`})])),o(`span`,at,[t.category?(d(),s(`span`,ot,m(t.category.name),1)):y(``,!0),o(`span`,st,m(t.title),1),o(`span`,ct,m(r(B)(t.published_at)),1)])]),_:2},1032,[`href`])]))),128))]),e(r(T),{href:`/neuigkeiten`,class:`mt-3 block border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:p(()=>[...a[5]||=[t(`Alle Neuigkeiten`,-1)]]),_:1})])):y(``,!0)])])]),_:1},8,[`title`]))}};export{lt as default};
\ No newline at end of file
diff --git a/public/build/assets/Show-BkMP3SIW.js b/public/build/assets/Show-SgUmrnpj.js
similarity index 95%
rename from public/build/assets/Show-BkMP3SIW.js
rename to public/build/assets/Show-SgUmrnpj.js
index c66f2bb8..930330b3 100644
--- a/public/build/assets/Show-BkMP3SIW.js
+++ b/public/build/assets/Show-SgUmrnpj.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,St as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-BIL1bnXp.js";import{t as h}from"./AppLayout-dYp4WcQT.js";import{t as g}from"./calendar-clock-8H2IkjP5.js";import{t as _}from"./chevron-right-C9w5cb2q.js";import{t as v}from"./pencil-line-CmAbFj4f.js";import{n as y}from"./format-BsuBtvUs.js";import{n as b}from"./button-CwUSbS9X.js";import{t as x}from"./PageContent-BvnlekSK.js";var S={__name:`PageTreeNav`,props:{items:{type:Array,required:!0},current:{type:String,required:!0},depth:{type:Number,default:0}},setup(a){let h=(e,t)=>e.url===t||e.children.some(e=>h(e,t));return(g,_)=>{let v=r(`PageTreeNav`,!0);return c(),o(`ul`,{class:i([`grid gap-0.5`,a.depth?`mt-0.5 ml-3 border-l pl-2`:`mt-1`])},[(c(!0),o(l,null,s(a.items,r=>(c(),o(`li`,{key:r.id},[e(n(m),{href:r.url,class:i([`block rounded-md px-3 py-1.5 text-sm`,r.url===a.current?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`]),"aria-current":r.url===a.current?`page`:void 0},{default:u(()=>[t(d(r.title),1)]),_:2},1032,[`href`,`class`,`aria-current`]),r.children.length&&h(r,a.current)?(c(),f(v,{key:0,items:r.children,current:a.current,depth:a.depth+1},null,8,[`items`,`current`,`depth`])):p(``,!0)]))),128))],2)}}},C={key:0,class:`hidden lg:block`},w={class:`sticky top-24 rounded-lg border bg-card p-2`,"aria-label":`Seiten in diesem Bereich`},T={key:0,class:`mb-3 flex flex-wrap items-center gap-1 text-[13px] text-muted-foreground`,"aria-label":`Brotkrumen`},E={class:`text-foreground`},D={class:`mb-8 flex flex-wrap items-start justify-between gap-4`},O={class:`min-w-0`},k={class:`text-3xl leading-tight font-semibold tracking-tight`},A={key:0,class:`mt-1.5 text-[13px] text-muted-foreground`},j={key:1,class:`mb-6 flex items-start gap-3 rounded-lg border border-brand-200 bg-brand-soft px-4 py-3 text-sm`},M={key:2,class:`rounded-lg border border-dashed px-6 py-12 text-center text-sm text-muted-foreground`},N={__name:`Show`,props:{page:{type:Object,required:!0},content:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},section:{type:Object,required:!0},editor:{type:Object,default:null}},setup(r){let N=r.section.children.length>0;return(P,F)=>(c(),f(h,{title:r.page.title},{default:u(()=>[a(`div`,{class:i([`grid gap-8`,N?`lg:grid-cols-[260px_minmax(0,1fr)]`:``])},[N?(c(),o(`aside`,C,[a(`nav`,w,[e(n(m),{href:r.section.url,class:i([`block rounded-md px-3 py-2 text-sm font-semibold`,r.section.active?`bg-brand-soft text-brand-soft-foreground`:`hover:bg-accent`])},{default:u(()=>[t(d(r.section.title),1)]),_:1},8,[`href`,`class`]),e(S,{items:r.section.children,current:r.page.url},null,8,[`items`,`current`])])])):p(``,!0),a(`article`,{class:i([`min-w-0`,N?``:`mx-auto w-full max-w-5xl`])},[r.breadcrumbs.length?(c(),o(`nav`,T,[(c(!0),o(l,null,s(r.breadcrumbs,r=>(c(),o(l,{key:r.url},[e(n(m),{href:r.url,class:`hover:text-foreground hover:underline`},{default:u(()=>[t(d(r.title),1)]),_:2},1032,[`href`]),e(n(_),{class:`size-3.5`})],64))),128)),a(`span`,E,d(r.page.title),1)])):p(``,!0),a(`header`,D,[a(`div`,O,[a(`h1`,k,d(r.page.title),1),r.page.published_at?(c(),o(`p`,A,`Zuletzt aktualisiert am `+d(n(y)(r.page.published_at)),1)):p(``,!0)]),r.editor?(c(),f(n(b),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(m),{href:r.editor.url},{default:u(()=>[e(n(v)),F[0]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):p(``,!0)]),r.editor&&(!r.page.is_published||r.editor.has_draft||r.editor.scheduled_at)?(c(),o(`div`,j,[r.editor.scheduled_at?(c(),f(n(g),{key:0,class:`mt-0.5 size-4 shrink-0 text-brand-text`})):(c(),f(n(v),{key:1,class:`mt-0.5 size-4 shrink-0 text-brand-text`})),a(`p`,null,[r.page.is_published?r.editor.scheduled_at?(c(),o(l,{key:1},[t(`Eine neue Fassung wird am `+d(new Date(r.editor.scheduled_at).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`}))+` veröffentlicht.`,1)],64)):(c(),o(l,{key:2},[t(`Es gibt unveröffentlichte Änderungen an dieser Seite.`)],64)):(c(),o(l,{key:0},[t(`Diese Seite ist noch nicht veröffentlicht. Nur Redakteure sehen sie.`)],64)),e(n(m),{href:r.editor.url,class:`ml-1 font-medium text-brand-text hover:underline`},{default:u(()=>[...F[1]||=[t(`Im Editor öffnen`,-1)]]),_:1},8,[`href`])])])):p(``,!0),e(x,{content:r.content},null,8,[`content`]),r.content.blocks.length?p(``,!0):(c(),o(`p`,M,`Diese Seite hat noch keinen Inhalt.`))],2)],2)]),_:1},8,[`title`]))}};export{N as default};
\ No newline at end of file
+import{D as e,E as t,On as n,St as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-0YzlX_sI.js";import{t as h}from"./AppLayout-BZsS7ZqB.js";import{t as g}from"./calendar-clock-8H2IkjP5.js";import{t as _}from"./chevron-right-C9w5cb2q.js";import{t as v}from"./pencil-line-CmAbFj4f.js";import{n as y}from"./format-BsuBtvUs.js";import{n as b}from"./button-CwUSbS9X.js";import{t as x}from"./PageContent-MInmcEZA.js";var S={__name:`PageTreeNav`,props:{items:{type:Array,required:!0},current:{type:String,required:!0},depth:{type:Number,default:0}},setup(a){let h=(e,t)=>e.url===t||e.children.some(e=>h(e,t));return(g,_)=>{let v=r(`PageTreeNav`,!0);return c(),o(`ul`,{class:i([`grid gap-0.5`,a.depth?`mt-0.5 ml-3 border-l pl-2`:`mt-1`])},[(c(!0),o(l,null,s(a.items,r=>(c(),o(`li`,{key:r.id},[e(n(m),{href:r.url,class:i([`block rounded-md px-3 py-1.5 text-sm`,r.url===a.current?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`]),"aria-current":r.url===a.current?`page`:void 0},{default:u(()=>[t(d(r.title),1)]),_:2},1032,[`href`,`class`,`aria-current`]),r.children.length&&h(r,a.current)?(c(),f(v,{key:0,items:r.children,current:a.current,depth:a.depth+1},null,8,[`items`,`current`,`depth`])):p(``,!0)]))),128))],2)}}},C={key:0,class:`hidden lg:block`},w={class:`sticky top-24 rounded-lg border bg-card p-2`,"aria-label":`Seiten in diesem Bereich`},T={key:0,class:`mb-3 flex flex-wrap items-center gap-1 text-[13px] text-muted-foreground`,"aria-label":`Brotkrumen`},E={class:`text-foreground`},D={class:`mb-8 flex flex-wrap items-start justify-between gap-4`},O={class:`min-w-0`},k={class:`text-3xl leading-tight font-semibold tracking-tight`},A={key:0,class:`mt-1.5 text-[13px] text-muted-foreground`},j={key:1,class:`mb-6 flex items-start gap-3 rounded-lg border border-brand-200 bg-brand-soft px-4 py-3 text-sm`},M={key:2,class:`rounded-lg border border-dashed px-6 py-12 text-center text-sm text-muted-foreground`},N={__name:`Show`,props:{page:{type:Object,required:!0},content:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},section:{type:Object,required:!0},editor:{type:Object,default:null}},setup(r){let N=r.section.children.length>0;return(P,F)=>(c(),f(h,{title:r.page.title},{default:u(()=>[a(`div`,{class:i([`grid gap-8`,N?`lg:grid-cols-[260px_minmax(0,1fr)]`:``])},[N?(c(),o(`aside`,C,[a(`nav`,w,[e(n(m),{href:r.section.url,class:i([`block rounded-md px-3 py-2 text-sm font-semibold`,r.section.active?`bg-brand-soft text-brand-soft-foreground`:`hover:bg-accent`])},{default:u(()=>[t(d(r.section.title),1)]),_:1},8,[`href`,`class`]),e(S,{items:r.section.children,current:r.page.url},null,8,[`items`,`current`])])])):p(``,!0),a(`article`,{class:i([`min-w-0`,N?``:`mx-auto w-full max-w-5xl`])},[r.breadcrumbs.length?(c(),o(`nav`,T,[(c(!0),o(l,null,s(r.breadcrumbs,r=>(c(),o(l,{key:r.url},[e(n(m),{href:r.url,class:`hover:text-foreground hover:underline`},{default:u(()=>[t(d(r.title),1)]),_:2},1032,[`href`]),e(n(_),{class:`size-3.5`})],64))),128)),a(`span`,E,d(r.page.title),1)])):p(``,!0),a(`header`,D,[a(`div`,O,[a(`h1`,k,d(r.page.title),1),r.page.published_at?(c(),o(`p`,A,`Zuletzt aktualisiert am `+d(n(y)(r.page.published_at)),1)):p(``,!0)]),r.editor?(c(),f(n(b),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(m),{href:r.editor.url},{default:u(()=>[e(n(v)),F[0]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):p(``,!0)]),r.editor&&(!r.page.is_published||r.editor.has_draft||r.editor.scheduled_at)?(c(),o(`div`,j,[r.editor.scheduled_at?(c(),f(n(g),{key:0,class:`mt-0.5 size-4 shrink-0 text-brand-text`})):(c(),f(n(v),{key:1,class:`mt-0.5 size-4 shrink-0 text-brand-text`})),a(`p`,null,[r.page.is_published?r.editor.scheduled_at?(c(),o(l,{key:1},[t(`Eine neue Fassung wird am `+d(new Date(r.editor.scheduled_at).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`}))+` veröffentlicht.`,1)],64)):(c(),o(l,{key:2},[t(`Es gibt unveröffentlichte Änderungen an dieser Seite.`)],64)):(c(),o(l,{key:0},[t(`Diese Seite ist noch nicht veröffentlicht. Nur Redakteure sehen sie.`)],64)),e(n(m),{href:r.editor.url,class:`ml-1 font-medium text-brand-text hover:underline`},{default:u(()=>[...F[1]||=[t(`Im Editor öffnen`,-1)]]),_:1},8,[`href`])])])):p(``,!0),e(x,{content:r.content},null,8,[`content`]),r.content.blocks.length?p(``,!0):(c(),o(`p`,M,`Diese Seite hat noch keinen Inhalt.`))],2)],2)]),_:1},8,[`title`]))}};export{N as default};
\ No newline at end of file
diff --git a/public/build/assets/Subpages-BEts-CC-.js b/public/build/assets/Subpages-D9pwAJsi.js
similarity index 90%
rename from public/build/assets/Subpages-BEts-CC-.js
rename to public/build/assets/Subpages-D9pwAJsi.js
index ae64180e..cd1a9a35 100644
--- a/public/build/assets/Subpages-BEts-CC-.js
+++ b/public/build/assets/Subpages-D9pwAJsi.js
@@ -1 +1 @@
-import{D as e,On as t,Zn as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-BIL1bnXp.js";import{X as p}from"./AppIcon-DZR1MN11.js";import{t as m}from"./chevron-right-C9w5cb2q.js";var h={key:0,class:`mb-3 text-lg font-semibold`},g={class:`min-w-0 flex-1 truncate font-medium group-hover:underline`},_={__name:`Subpages`,props:{block:{type:Object,required:!0}},setup(_){return(v,y)=>(o(),i(`section`,null,[_.block.data.title?(o(),i(`h3`,h,l(_.block.data.title),1)):d(``,!0),r(`div`,{class:n(_.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-3 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(o(!0),i(s,null,a(_.block.props?.pages??[],i=>(o(),u(t(f),{key:i.id,href:i.url,class:n([`group flex items-center gap-3 hover:bg-accent/50`,_.block.data.layout===`list`?`px-4 py-3`:`rounded-lg border bg-card p-4`])},{default:c(()=>[e(t(p),{class:`size-5 shrink-0 text-brand-text`}),r(`span`,g,l(i.title),1),e(t(m),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`,`class`]))),128)),(_.block.props?.pages??[]).length?d(``,!0):(o(),i(`p`,{key:0,class:n([`text-sm text-muted-foreground`,_.block.data.layout===`list`?`px-4 py-3`:``])},`Keine veröffentlichten Unterseiten.`,2))],2)]))}};export{_ as default};
\ No newline at end of file
+import{D as e,On as t,Zn as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-0YzlX_sI.js";import{X as p}from"./AppIcon-BAyAC-oO.js";import{t as m}from"./chevron-right-C9w5cb2q.js";var h={key:0,class:`mb-3 text-lg font-semibold`},g={class:`min-w-0 flex-1 truncate font-medium group-hover:underline`},_={__name:`Subpages`,props:{block:{type:Object,required:!0}},setup(_){return(v,y)=>(o(),i(`section`,null,[_.block.data.title?(o(),i(`h3`,h,l(_.block.data.title),1)):d(``,!0),r(`div`,{class:n(_.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-3 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(o(!0),i(s,null,a(_.block.props?.pages??[],i=>(o(),u(t(f),{key:i.id,href:i.url,class:n([`group flex items-center gap-3 hover:bg-accent/50`,_.block.data.layout===`list`?`px-4 py-3`:`rounded-lg border bg-card p-4`])},{default:c(()=>[e(t(p),{class:`size-5 shrink-0 text-brand-text`}),r(`span`,g,l(i.title),1),e(t(m),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`,`class`]))),128)),(_.block.props?.pages??[]).length?d(``,!0):(o(),i(`p`,{key:0,class:n([`text-sm text-muted-foreground`,_.block.data.layout===`list`?`px-4 py-3`:``])},`Keine veröffentlichten Unterseiten.`,2))],2)]))}};export{_ as default};
\ No newline at end of file
diff --git a/public/build/assets/Text-BUQ01HCv.js b/public/build/assets/Text-B03AThwv.js
similarity index 74%
rename from public/build/assets/Text-BUQ01HCv.js
rename to public/build/assets/Text-B03AThwv.js
index bddc9f45..548b33d3 100644
--- a/public/build/assets/Text-BUQ01HCv.js
+++ b/public/build/assets/Text-B03AThwv.js
@@ -1,2 +1,2 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RichTextEditor-DZNDAV0m.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-DtGNiYlK.js","assets/AppIcon-DZR1MN11.js","assets/app-BIL1bnXp.js","assets/app-CktdeUXb.css","assets/RovingFocusGroup-D88K7krN.js","assets/http-CAG9BrJF.js","assets/check-AfxJa8Ew.js","assets/image-plus-C1A_7CFG.js","assets/images-47Nc0alu.js","assets/list-DHYGZ2vt.js","assets/quote-CAgJDpoy.js","assets/RichTextEditor-Lf5W1_X5.css"])))=>i.map(i=>d[i]);
-import{D as e,J as t,O as n,On as r,b as i,mt as a,vn as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{s}from"./app-BIL1bnXp.js";var c=[`innerHTML`],l={__name:`Text`,props:{block:{type:Object,required:!0}},setup(l){let u=t(`pagebuilder:editing`,!1),d=n(()=>s(()=>import(`./RichTextEditor-DZNDAV0m.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))),f=o(null);function p(e){e.target.closest(`.ProseMirror, [role="toolbar"]`)||f.value?.focus()}return(t,n)=>r(u)?(a(),i(`div`,{key:0,class:`min-h-16 cursor-text pt-3 [&_.tiptap]:min-h-10`,onClick:p},[e(r(d),{ref_key:`editorRef`,ref:f,modelValue:l.block.data.html,"onUpdate:modelValue":n[0]||=e=>l.block.data.html=e,placeholder:`Text eingeben …`},null,8,[`modelValue`])])):(a(),i(`div`,{key:1,class:`prose prose-neutral max-w-none prose-headings:tracking-tight prose-img:rounded-lg`,innerHTML:l.block.data.html},null,8,c))}};export{l as default};
\ No newline at end of file
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RichTextEditor-Yxa2Bbjv.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-DtGNiYlK.js","assets/AppIcon-BAyAC-oO.js","assets/app-0YzlX_sI.js","assets/app-BxfVigbi.css","assets/RovingFocusGroup-D88K7krN.js","assets/http-CAG9BrJF.js","assets/check-AfxJa8Ew.js","assets/image-plus-C1A_7CFG.js","assets/images-47Nc0alu.js","assets/list-DHYGZ2vt.js","assets/quote-CAgJDpoy.js","assets/RichTextEditor-Lf5W1_X5.css"])))=>i.map(i=>d[i]);
+import{D as e,J as t,O as n,On as r,b as i,mt as a,vn as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{s}from"./app-0YzlX_sI.js";var c=[`innerHTML`],l={__name:`Text`,props:{block:{type:Object,required:!0}},setup(l){let u=t(`pagebuilder:editing`,!1),d=n(()=>s(()=>import(`./RichTextEditor-Yxa2Bbjv.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))),f=o(null);function p(e){e.target.closest(`.ProseMirror, [role="toolbar"]`)||f.value?.focus()}return(t,n)=>r(u)?(a(),i(`div`,{key:0,class:`min-h-16 cursor-text pt-3 [&_.tiptap]:min-h-10`,onClick:p},[e(r(d),{ref_key:`editorRef`,ref:f,modelValue:l.block.data.html,"onUpdate:modelValue":n[0]||=e=>l.block.data.html=e,placeholder:`Text eingeben …`},null,8,[`modelValue`])])):(a(),i(`div`,{key:1,class:`prose prose-neutral max-w-none prose-headings:tracking-tight prose-img:rounded-lg`,innerHTML:l.block.data.html},null,8,c))}};export{l as default};
\ No newline at end of file
diff --git a/public/build/assets/Ticket-C3xM4X-g.js b/public/build/assets/Ticket-DxP5XcvM.js
similarity index 96%
rename from public/build/assets/Ticket-C3xM4X-g.js
rename to public/build/assets/Ticket-DxP5XcvM.js
index 284dbd3e..60c42049 100644
--- a/public/build/assets/Ticket-C3xM4X-g.js
+++ b/public/build/assets/Ticket-DxP5XcvM.js
@@ -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,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{w as m}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as h,i as ee,r as g}from"./app-BIL1bnXp.js";import{O as _,k as v}from"./dist-DtGNiYlK.js";import{B as te,G as ne,O as re,p as ie,q as y}from"./AppIcon-DZR1MN11.js";import{t as b}from"./arrow-left-BMImfTf2.js";import{t as x}from"./AppLayout-dYp4WcQT.js";import{s as S}from"./http-CAG9BrJF.js";import{t as C}from"./paperclip-DmVAQ5Y5.js";import{t as w}from"./send-6fmdiUe6.js";import{n as T}from"./button-CwUSbS9X.js";import{t as E}from"./Textarea-DEFXqC2w.js";import{t as D}from"./StatusBadge-udDF6Kfz.js";import{r as O,t as k}from"./status-p0CPKwc2.js";var A=v({name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]}),j={class:`grid grid-cols-1 items-start gap-6 lg:grid-cols-12`},M={class:`grid min-w-0 grid-cols-1 gap-6 lg:col-span-8`},N={class:`rounded-xl border bg-card p-6 shadow-xs`},P={class:`flex flex-wrap items-start justify-between gap-3`},F={class:`min-w-0`},I={class:`text-xs font-medium text-muted-foreground`},L={class:`mt-1 text-2xl font-semibold tracking-tight text-balance`},R=[`innerHTML`],ae={key:0,"aria-label":`Verlauf`,class:`grid gap-4`},z={key:0,class:`grid size-9 shrink-0 place-items-center rounded-full bg-brand text-brand-foreground`},B={key:2,class:`grid size-9 shrink-0 place-items-center rounded-full bg-muted`},V={class:`mb-1 text-xs text-muted-foreground`},H={class:`font-medium text-foreground`},U=[`innerHTML`],W={key:0,class:`mt-1 text-[13px] text-destructive`},G={class:`mt-3 flex justify-end`},K={key:2,class:`rounded-xl border bg-muted/50 p-4 text-sm text-muted-foreground`},q={class:`grid content-start gap-4 lg:col-span-4`},J={class:`rounded-xl border bg-card p-5 shadow-xs`},oe={class:`grid gap-2.5 text-sm`},se={key:0,class:`flex items-center gap-2`},ce={key:1,class:`flex items-center gap-2`},le={key:2,class:`flex items-center gap-2`},ue={class:`flex items-center gap-2`},Y={key:0,class:`rounded-xl border bg-card p-5 shadow-xs`},de={class:`grid gap-1`},fe=[`href`],pe={class:`min-w-0 flex-1 truncate`},me={class:`text-xs text-muted-foreground`},X={__name:`Ticket`,props:{ticket:{type:Object,required:!0}},setup(v){let X=v,Z=h(),Q=Z.props.auth?.user;n(()=>Z.props.flash.status,e=>e&&S.success(e),{immediate:!0});let $=ee({message:``});function he(){$.post(`/it-service/tickets/${X.ticket.id}/antworten`,{preserveScroll:!0,onSuccess:()=>$.reset()})}let ge=e=>e?e>1048576?`${(e/1048576).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`:``;return(n,h)=>(c(),f(x,{title:v.ticket.subject},{default:u(()=>[e(r(g),{href:`/it-service`,class:`mb-3 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:u(()=>[e(r(b),{class:`size-4`}),h[1]||=t(` Meine IT`,-1)]),_:1}),a(`div`,j,[a(`div`,M,[a(`article`,N,[a(`div`,P,[a(`div`,F,[a(`p`,I,[v.ticket.number?(c(),o(l,{key:0},[t(`Ticket #`+d(v.ticket.number)+` · `,1)],64)):p(``,!0),t(`erstellt `+d(r(k)(v.ticket.created_at,!0)),1)]),a(`h1`,L,d(v.ticket.subject),1)]),e(D,{label:v.ticket.status_label,tone:r(O)(v.ticket),class:`text-xs`},null,8,[`label`,`tone`])]),v.ticket.description?(c(),o(`div`,{key:0,class:`prose prose-sm mt-5 max-w-none text-[15px] leading-relaxed dark:prose-invert`,innerHTML:v.ticket.description},null,8,R)):p(``,!0)]),v.ticket.replies.length?(c(),o(`section`,ae,[(c(!0),o(l,null,s(v.ticket.replies,(n,s)=>(c(),o(`div`,{key:s,class:i([`flex gap-3`,n.from_staff?``:`flex-row-reverse`])},[n.from_staff?(c(),o(`span`,z,[e(r(y),{class:`size-4`})])):r(Q)?(c(),f(ie,{key:1,person:r(Q),class:`size-9`},null,8,[`person`])):(c(),o(`span`,B,[e(r(re),{class:`size-4`})])),a(`div`,{class:i([`max-w-[85%] rounded-xl border px-4 py-3`,n.from_staff?`bg-card`:`border-brand-200 bg-brand-soft/60`])},[a(`p`,V,[a(`span`,H,d(n.from_staff?n.author||`IT-Service`:`Sie`),1),n.created_at?(c(),o(l,{key:0},[t(` · `+d(r(k)(n.created_at,!0)),1)],64)):p(``,!0)]),a(`div`,{class:`prose prose-sm max-w-none text-sm leading-relaxed dark:prose-invert [&_p]:my-1`,innerHTML:n.message},null,8,U)],2)],2))),128))])):p(``,!0),v.ticket.open?(c(),o(`form`,{key:1,class:`rounded-xl border bg-card p-4 shadow-xs`,onSubmit:m(he,[`prevent`])},[h[3]||=a(`label`,{for:`message`,class:`text-sm font-medium`},`Antworten`,-1),e(r(E),{id:`message`,modelValue:r($).message,"onUpdate:modelValue":h[0]||=e=>r($).message=e,rows:`8`,maxlength:`20000`,class:`mt-2`,placeholder:`Ihre Nachricht an die IT …`},null,8,[`modelValue`]),r($).errors.message?(c(),o(`p`,W,d(r($).errors.message),1)):p(``,!0),a(`div`,G,[e(r(T),{type:`submit`,disabled:r($).processing||!r($).message.trim()},{default:u(()=>[r($).processing?(c(),f(r(_),{key:0,class:`animate-spin`})):(c(),f(r(w),{key:1})),h[2]||=t(` Senden `,-1)]),_:1},8,[`disabled`])])],32)):(c(),o(`div`,K,[h[5]||=t(` Dieses Ticket ist abgeschlossen. Besteht das Problem weiterhin, erstellen Sie bitte ein `,-1),e(r(g),{href:`/it-service/tickets/neu`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...h[4]||=[t(`neues Ticket`,-1)]]),_:1}),h[6]||=t(`. `,-1)]))]),a(`aside`,q,[a(`section`,J,[h[11]||=a(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Details`,-1),a(`dl`,oe,[v.ticket.asset?(c(),o(`div`,se,[e(r(ne),{class:`size-4 text-muted-foreground`}),h[7]||=a(`dt`,{class:`sr-only`},`Gerät`,-1),a(`dd`,null,d(v.ticket.asset),1)])):p(``,!0),v.ticket.category?(c(),o(`div`,ce,[e(r(A),{class:`size-4 text-muted-foreground`}),h[8]||=a(`dt`,{class:`sr-only`},`Kategorie`,-1),a(`dd`,null,d(v.ticket.category),1)])):p(``,!0),v.ticket.location?(c(),o(`div`,le,[e(r(te),{class:`size-4 text-muted-foreground`}),h[9]||=a(`dt`,{class:`sr-only`},`Standort`,-1),a(`dd`,null,d(v.ticket.location),1)])):p(``,!0),a(`div`,ue,[e(r(y),{class:`size-4 text-muted-foreground`}),h[10]||=a(`dt`,{class:`sr-only`},`Bearbeitet von`,-1),a(`dd`,null,d(v.ticket.assignees.length?v.ticket.assignees.join(`, `):`Noch nicht zugewiesen`),1)])])]),v.ticket.attachments.length?(c(),o(`section`,Y,[h[12]||=a(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Anhänge`,-1),a(`ul`,de,[(c(!0),o(l,null,s(v.ticket.attachments,t=>(c(),o(`li`,{key:t.id},[a(`a`,{href:`/it-service/anhaenge/${t.id}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-accent`},[e(r(C),{class:`size-4 text-muted-foreground`}),a(`span`,pe,d(t.name),1),a(`span`,me,d(ge(t.size)),1)],8,fe)]))),128))])])):p(``,!0)])])]),_:1},8,[`title`]))}};export{X as default};
\ No newline at end of file
+import{D as e,E as t,Ht as n,On as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as m}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as h,i as ee,r as g}from"./app-0YzlX_sI.js";import{O as _,k as v}from"./dist-DtGNiYlK.js";import{B as te,G as ne,O as re,p as ie,q as y}from"./AppIcon-BAyAC-oO.js";import{t as b}from"./arrow-left-BMImfTf2.js";import{t as x}from"./AppLayout-BZsS7ZqB.js";import{s as S}from"./http-CAG9BrJF.js";import{t as C}from"./paperclip-DmVAQ5Y5.js";import{t as w}from"./send-6fmdiUe6.js";import{n as T}from"./button-CwUSbS9X.js";import{t as E}from"./Textarea-DEFXqC2w.js";import{t as D}from"./StatusBadge-udDF6Kfz.js";import{r as O,t as k}from"./status-p0CPKwc2.js";var A=v({name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]}),j={class:`grid grid-cols-1 items-start gap-6 lg:grid-cols-12`},M={class:`grid min-w-0 grid-cols-1 gap-6 lg:col-span-8`},N={class:`rounded-xl border bg-card p-6 shadow-xs`},P={class:`flex flex-wrap items-start justify-between gap-3`},F={class:`min-w-0`},I={class:`text-xs font-medium text-muted-foreground`},L={class:`mt-1 text-2xl font-semibold tracking-tight text-balance`},R=[`innerHTML`],ae={key:0,"aria-label":`Verlauf`,class:`grid gap-4`},z={key:0,class:`grid size-9 shrink-0 place-items-center rounded-full bg-brand text-brand-foreground`},B={key:2,class:`grid size-9 shrink-0 place-items-center rounded-full bg-muted`},V={class:`mb-1 text-xs text-muted-foreground`},H={class:`font-medium text-foreground`},U=[`innerHTML`],W={key:0,class:`mt-1 text-[13px] text-destructive`},G={class:`mt-3 flex justify-end`},K={key:2,class:`rounded-xl border bg-muted/50 p-4 text-sm text-muted-foreground`},q={class:`grid content-start gap-4 lg:col-span-4`},J={class:`rounded-xl border bg-card p-5 shadow-xs`},oe={class:`grid gap-2.5 text-sm`},se={key:0,class:`flex items-center gap-2`},ce={key:1,class:`flex items-center gap-2`},le={key:2,class:`flex items-center gap-2`},ue={class:`flex items-center gap-2`},Y={key:0,class:`rounded-xl border bg-card p-5 shadow-xs`},de={class:`grid gap-1`},fe=[`href`],pe={class:`min-w-0 flex-1 truncate`},me={class:`text-xs text-muted-foreground`},X={__name:`Ticket`,props:{ticket:{type:Object,required:!0}},setup(v){let X=v,Z=h(),Q=Z.props.auth?.user;n(()=>Z.props.flash.status,e=>e&&S.success(e),{immediate:!0});let $=ee({message:``});function he(){$.post(`/it-service/tickets/${X.ticket.id}/antworten`,{preserveScroll:!0,onSuccess:()=>$.reset()})}let ge=e=>e?e>1048576?`${(e/1048576).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`:``;return(n,h)=>(c(),f(x,{title:v.ticket.subject},{default:u(()=>[e(r(g),{href:`/it-service`,class:`mb-3 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:u(()=>[e(r(b),{class:`size-4`}),h[1]||=t(` Meine IT`,-1)]),_:1}),a(`div`,j,[a(`div`,M,[a(`article`,N,[a(`div`,P,[a(`div`,F,[a(`p`,I,[v.ticket.number?(c(),o(l,{key:0},[t(`Ticket #`+d(v.ticket.number)+` · `,1)],64)):p(``,!0),t(`erstellt `+d(r(k)(v.ticket.created_at,!0)),1)]),a(`h1`,L,d(v.ticket.subject),1)]),e(D,{label:v.ticket.status_label,tone:r(O)(v.ticket),class:`text-xs`},null,8,[`label`,`tone`])]),v.ticket.description?(c(),o(`div`,{key:0,class:`prose prose-sm mt-5 max-w-none text-[15px] leading-relaxed dark:prose-invert`,innerHTML:v.ticket.description},null,8,R)):p(``,!0)]),v.ticket.replies.length?(c(),o(`section`,ae,[(c(!0),o(l,null,s(v.ticket.replies,(n,s)=>(c(),o(`div`,{key:s,class:i([`flex gap-3`,n.from_staff?``:`flex-row-reverse`])},[n.from_staff?(c(),o(`span`,z,[e(r(y),{class:`size-4`})])):r(Q)?(c(),f(ie,{key:1,person:r(Q),class:`size-9`},null,8,[`person`])):(c(),o(`span`,B,[e(r(re),{class:`size-4`})])),a(`div`,{class:i([`max-w-[85%] rounded-xl border px-4 py-3`,n.from_staff?`bg-card`:`border-brand-200 bg-brand-soft/60`])},[a(`p`,V,[a(`span`,H,d(n.from_staff?n.author||`IT-Service`:`Sie`),1),n.created_at?(c(),o(l,{key:0},[t(` · `+d(r(k)(n.created_at,!0)),1)],64)):p(``,!0)]),a(`div`,{class:`prose prose-sm max-w-none text-sm leading-relaxed dark:prose-invert [&_p]:my-1`,innerHTML:n.message},null,8,U)],2)],2))),128))])):p(``,!0),v.ticket.open?(c(),o(`form`,{key:1,class:`rounded-xl border bg-card p-4 shadow-xs`,onSubmit:m(he,[`prevent`])},[h[3]||=a(`label`,{for:`message`,class:`text-sm font-medium`},`Antworten`,-1),e(r(E),{id:`message`,modelValue:r($).message,"onUpdate:modelValue":h[0]||=e=>r($).message=e,rows:`8`,maxlength:`20000`,class:`mt-2`,placeholder:`Ihre Nachricht an die IT …`},null,8,[`modelValue`]),r($).errors.message?(c(),o(`p`,W,d(r($).errors.message),1)):p(``,!0),a(`div`,G,[e(r(T),{type:`submit`,disabled:r($).processing||!r($).message.trim()},{default:u(()=>[r($).processing?(c(),f(r(_),{key:0,class:`animate-spin`})):(c(),f(r(w),{key:1})),h[2]||=t(` Senden `,-1)]),_:1},8,[`disabled`])])],32)):(c(),o(`div`,K,[h[5]||=t(` Dieses Ticket ist abgeschlossen. Besteht das Problem weiterhin, erstellen Sie bitte ein `,-1),e(r(g),{href:`/it-service/tickets/neu`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...h[4]||=[t(`neues Ticket`,-1)]]),_:1}),h[6]||=t(`. `,-1)]))]),a(`aside`,q,[a(`section`,J,[h[11]||=a(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Details`,-1),a(`dl`,oe,[v.ticket.asset?(c(),o(`div`,se,[e(r(ne),{class:`size-4 text-muted-foreground`}),h[7]||=a(`dt`,{class:`sr-only`},`Gerät`,-1),a(`dd`,null,d(v.ticket.asset),1)])):p(``,!0),v.ticket.category?(c(),o(`div`,ce,[e(r(A),{class:`size-4 text-muted-foreground`}),h[8]||=a(`dt`,{class:`sr-only`},`Kategorie`,-1),a(`dd`,null,d(v.ticket.category),1)])):p(``,!0),v.ticket.location?(c(),o(`div`,le,[e(r(te),{class:`size-4 text-muted-foreground`}),h[9]||=a(`dt`,{class:`sr-only`},`Standort`,-1),a(`dd`,null,d(v.ticket.location),1)])):p(``,!0),a(`div`,ue,[e(r(y),{class:`size-4 text-muted-foreground`}),h[10]||=a(`dt`,{class:`sr-only`},`Bearbeitet von`,-1),a(`dd`,null,d(v.ticket.assignees.length?v.ticket.assignees.join(`, `):`Noch nicht zugewiesen`),1)])])]),v.ticket.attachments.length?(c(),o(`section`,Y,[h[12]||=a(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Anhänge`,-1),a(`ul`,de,[(c(!0),o(l,null,s(v.ticket.attachments,t=>(c(),o(`li`,{key:t.id},[a(`a`,{href:`/it-service/anhaenge/${t.id}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-accent`},[e(r(C),{class:`size-4 text-muted-foreground`}),a(`span`,pe,d(t.name),1),a(`span`,me,d(ge(t.size)),1)],8,fe)]))),128))])])):p(``,!0)])])]),_:1},8,[`title`]))}};export{X as default};
\ No newline at end of file
diff --git a/public/build/assets/TicketCreate-B787p5sp.js b/public/build/assets/TicketCreate-C8oeFhy1.js
similarity index 94%
rename from public/build/assets/TicketCreate-B787p5sp.js
rename to public/build/assets/TicketCreate-C8oeFhy1.js
index 5ee58972..bd17eb24 100644
--- a/public/build/assets/TicketCreate-B787p5sp.js
+++ b/public/build/assets/TicketCreate-C8oeFhy1.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,Yt as r,Zn as i,_ as a,b as o,bt as s,g 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,y as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as _,r as v}from"./app-BIL1bnXp.js";import{O as y}from"./dist-DtGNiYlK.js";import{G as b,et as x}from"./AppIcon-DZR1MN11.js";import{t as S}from"./arrow-left-BMImfTf2.js";import{t as C}from"./AppLayout-dYp4WcQT.js";import{t as w}from"./circle-alert-D8SqHL0j.js";import{t as T}from"./send-6fmdiUe6.js";import{t as E}from"./FormField-BoFAO4pm.js";import{t as D}from"./PageHeader-C1gQ5QQB.js";import{n as O}from"./button-CwUSbS9X.js";import{t as k}from"./NativeSelect-G3km7PmI.js";import{t as A}from"./Panel-CyXtNQ_r.js";import{t as j}from"./Input-FGSb2-yK.js";import{t as M}from"./Textarea-DEFXqC2w.js";var N={class:`grid gap-2`,role:`radiogroup`,"aria-label":`Gerät`},P=[`value`],F={class:`grid size-9 shrink-0 place-items-center rounded-md bg-muted text-foreground/70`},I={class:`min-w-0`},L={class:`block text-sm font-medium`},R={class:`block truncate text-xs text-muted-foreground`},z={class:`grid size-9 shrink-0 place-items-center rounded-md bg-muted text-foreground/70`},B={key:0,class:`flex items-center gap-2 text-xs text-muted-foreground`},V={class:`grid gap-4`},H={class:`grid gap-4 sm:grid-cols-2`},U={class:`flex justify-end border-t pt-4`},W={__name:`TicketCreate`,props:{assetId:{type:Number,default:null},assets:{type:Object,required:!0},options:{type:Object,required:!0},defaultLocation:{type:Number,default:null}},setup(W){let G=W,K=c(()=>G.assets.ok?G.assets.data:[]),q=c(()=>G.options.ok?G.options.data.categories:[]),J=c(()=>G.options.ok?G.options.data.locations:[]),Y=_({asset_id:K.value.some(e=>e.id===G.assetId)?G.assetId:null,subject:``,description:``,category_id:null,location_id:G.defaultLocation});function X(){Y.transform(e=>({...e,asset_id:e.asset_id||null,category_id:e.category_id?Number(e.category_id):null,location_id:e.location_id?Number(e.location_id):null})).post(`/it-service/tickets`)}return(c,_)=>(l(),p(C,{title:`Ticket erstellen`},{default:d(()=>[e(n(v),{href:`/it-service`,class:`mb-3 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:d(()=>[e(n(S),{class:`size-4`}),_[6]||=t(` Meine IT`,-1)]),_:1}),e(D,{title:`Ticket erstellen`,description:`Beschreiben Sie kurz, was nicht funktioniert – die IT meldet sich.`}),a(`form`,{class:`grid grid-cols-1 items-start gap-6 lg:grid-cols-12`,onSubmit:h(X,[`prevent`])},[e(A,{title:`Worum geht es?`,class:`lg:col-span-5 xl:col-span-4`},{default:d(()=>[a(`div`,N,[(l(!0),o(u,null,s(K.value,t=>(l(),o(`label`,{key:t.id,class:i([`flex cursor-pointer items-center gap-3 rounded-lg border p-3 transition-colors`,n(Y).asset_id===t.id?`border-brand bg-brand-soft/60 ring-1 ring-brand`:`hover:bg-accent/60`])},[r(a(`input`,{"onUpdate:modelValue":_[0]||=e=>n(Y).asset_id=e,type:`radio`,value:t.id,class:`sr-only`},null,8,P),[[g,n(Y).asset_id]]),a(`span`,F,[e(n(b),{class:`size-4`})]),a(`span`,I,[a(`span`,L,f(t.name),1),a(`span`,R,f([t.type,t.serial&&`SN ${t.serial}`].filter(Boolean).join(` · `)),1)])],2))),128)),a(`label`,{class:i([`flex cursor-pointer items-center gap-3 rounded-lg border p-3 transition-colors`,n(Y).asset_id?`hover:bg-accent/60`:`border-brand bg-brand-soft/60 ring-1 ring-brand`])},[r(a(`input`,{"onUpdate:modelValue":_[1]||=e=>n(Y).asset_id=e,type:`radio`,value:null,class:`sr-only`},null,512),[[g,n(Y).asset_id]]),a(`span`,z,[e(n(x),{class:`size-4`})]),_[7]||=a(`span`,null,[a(`span`,{class:`block text-sm font-medium`},`Allgemeines Anliegen`),a(`span`,{class:`block text-xs text-muted-foreground`},`ohne bestimmtes Gerät, z. B. Zugang, Software, Frage`)],-1)],2),W.assets.ok?m(``,!0):(l(),o(`p`,B,[e(n(w),{class:`size-3.5`}),_[8]||=t(` Ihre Geräte konnten nicht geladen werden.`,-1)]))])]),_:1}),e(A,{title:`Beschreibung`,class:`lg:col-span-7 xl:col-span-8`},{default:d(()=>[a(`div`,V,[a(`div`,H,[e(E,{id:`category`,label:`Kategorie`,error:n(Y).errors.category_id,hint:q.value.length?``:`Kategorien konnten nicht geladen werden.`},{default:d(()=>[e(k,{id:`category`,modelValue:n(Y).category_id,"onUpdate:modelValue":_[2]||=e=>n(Y).category_id=e,options:q.value,placeholder:`– bitte wählen –`,required:q.value.length>0,disabled:!q.value.length},null,8,[`modelValue`,`options`,`required`,`disabled`])]),_:1},8,[`error`,`hint`]),e(E,{id:`location`,label:`Standort`,error:n(Y).errors.location_id,hint:J.value.length?`Wo tritt das Problem auf?`:`Standorte konnten nicht geladen werden.`},{default:d(()=>[e(k,{id:`location`,modelValue:n(Y).location_id,"onUpdate:modelValue":_[3]||=e=>n(Y).location_id=e,options:J.value,placeholder:`– bitte wählen –`,required:J.value.length>0,disabled:!J.value.length},null,8,[`modelValue`,`options`,`required`,`disabled`])]),_:1},8,[`error`,`hint`])]),e(E,{id:`subject`,label:`Betreff`,error:n(Y).errors.subject},{default:d(()=>[e(n(j),{id:`subject`,modelValue:n(Y).subject,"onUpdate:modelValue":_[4]||=e=>n(Y).subject=e,maxlength:`200`,placeholder:`z. B. Drucker im 2. OG druckt nicht`,required:``},null,8,[`modelValue`])]),_:1},8,[`error`]),e(E,{id:`description`,label:`Nachricht`,error:n(Y).errors.description,hint:`Was ist passiert? Seit wann? Gibt es eine Fehlermeldung? Was haben Sie schon versucht?`},{default:d(()=>[e(n(M),{id:`description`,modelValue:n(Y).description,"onUpdate:modelValue":_[5]||=e=>n(Y).description=e,rows:`14`,maxlength:`20000`,class:`min-h-72`,required:``},null,8,[`modelValue`])]),_:1},8,[`error`]),a(`div`,U,[e(n(O),{type:`submit`,disabled:n(Y).processing},{default:d(()=>[n(Y).processing?(l(),p(n(y),{key:0,class:`animate-spin`})):(l(),p(n(T),{key:1})),_[9]||=t(` Ticket absenden `,-1)]),_:1},8,[`disabled`])])])]),_:1})],32)]),_:1}))}};export{W as default};
\ No newline at end of file
+import{D as e,E as t,On as n,Yt as r,Zn as i,_ as a,b as o,bt as s,g 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,y as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as _,r as v}from"./app-0YzlX_sI.js";import{O as y}from"./dist-DtGNiYlK.js";import{G as b,et as x}from"./AppIcon-BAyAC-oO.js";import{t as S}from"./arrow-left-BMImfTf2.js";import{t as C}from"./AppLayout-BZsS7ZqB.js";import{t as w}from"./circle-alert-D8SqHL0j.js";import{t as T}from"./send-6fmdiUe6.js";import{t as E}from"./FormField-BoFAO4pm.js";import{t as D}from"./PageHeader-BF5yxdNS.js";import{n as O}from"./button-CwUSbS9X.js";import{t as k}from"./NativeSelect-G3km7PmI.js";import{t as A}from"./Panel-2UV8H5Yl.js";import{t as j}from"./Input-FGSb2-yK.js";import{t as M}from"./Textarea-DEFXqC2w.js";var N={class:`grid gap-2`,role:`radiogroup`,"aria-label":`Gerät`},P=[`value`],F={class:`grid size-9 shrink-0 place-items-center rounded-md bg-muted text-foreground/70`},I={class:`min-w-0`},L={class:`block text-sm font-medium`},R={class:`block truncate text-xs text-muted-foreground`},z={class:`grid size-9 shrink-0 place-items-center rounded-md bg-muted text-foreground/70`},B={key:0,class:`flex items-center gap-2 text-xs text-muted-foreground`},V={class:`grid gap-4`},H={class:`grid gap-4 sm:grid-cols-2`},U={class:`flex justify-end border-t pt-4`},W={__name:`TicketCreate`,props:{assetId:{type:Number,default:null},assets:{type:Object,required:!0},options:{type:Object,required:!0},defaultLocation:{type:Number,default:null}},setup(W){let G=W,K=c(()=>G.assets.ok?G.assets.data:[]),q=c(()=>G.options.ok?G.options.data.categories:[]),J=c(()=>G.options.ok?G.options.data.locations:[]),Y=_({asset_id:K.value.some(e=>e.id===G.assetId)?G.assetId:null,subject:``,description:``,category_id:null,location_id:G.defaultLocation});function X(){Y.transform(e=>({...e,asset_id:e.asset_id||null,category_id:e.category_id?Number(e.category_id):null,location_id:e.location_id?Number(e.location_id):null})).post(`/it-service/tickets`)}return(c,_)=>(l(),p(C,{title:`Ticket erstellen`},{default:d(()=>[e(n(v),{href:`/it-service`,class:`mb-3 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:d(()=>[e(n(S),{class:`size-4`}),_[6]||=t(` Meine IT`,-1)]),_:1}),e(D,{title:`Ticket erstellen`,description:`Beschreiben Sie kurz, was nicht funktioniert – die IT meldet sich.`}),a(`form`,{class:`grid grid-cols-1 items-start gap-6 lg:grid-cols-12`,onSubmit:h(X,[`prevent`])},[e(A,{title:`Worum geht es?`,class:`lg:col-span-5 xl:col-span-4`},{default:d(()=>[a(`div`,N,[(l(!0),o(u,null,s(K.value,t=>(l(),o(`label`,{key:t.id,class:i([`flex cursor-pointer items-center gap-3 rounded-lg border p-3 transition-colors`,n(Y).asset_id===t.id?`border-brand bg-brand-soft/60 ring-1 ring-brand`:`hover:bg-accent/60`])},[r(a(`input`,{"onUpdate:modelValue":_[0]||=e=>n(Y).asset_id=e,type:`radio`,value:t.id,class:`sr-only`},null,8,P),[[g,n(Y).asset_id]]),a(`span`,F,[e(n(b),{class:`size-4`})]),a(`span`,I,[a(`span`,L,f(t.name),1),a(`span`,R,f([t.type,t.serial&&`SN ${t.serial}`].filter(Boolean).join(` · `)),1)])],2))),128)),a(`label`,{class:i([`flex cursor-pointer items-center gap-3 rounded-lg border p-3 transition-colors`,n(Y).asset_id?`hover:bg-accent/60`:`border-brand bg-brand-soft/60 ring-1 ring-brand`])},[r(a(`input`,{"onUpdate:modelValue":_[1]||=e=>n(Y).asset_id=e,type:`radio`,value:null,class:`sr-only`},null,512),[[g,n(Y).asset_id]]),a(`span`,z,[e(n(x),{class:`size-4`})]),_[7]||=a(`span`,null,[a(`span`,{class:`block text-sm font-medium`},`Allgemeines Anliegen`),a(`span`,{class:`block text-xs text-muted-foreground`},`ohne bestimmtes Gerät, z. B. Zugang, Software, Frage`)],-1)],2),W.assets.ok?m(``,!0):(l(),o(`p`,B,[e(n(w),{class:`size-3.5`}),_[8]||=t(` Ihre Geräte konnten nicht geladen werden.`,-1)]))])]),_:1}),e(A,{title:`Beschreibung`,class:`lg:col-span-7 xl:col-span-8`},{default:d(()=>[a(`div`,V,[a(`div`,H,[e(E,{id:`category`,label:`Kategorie`,error:n(Y).errors.category_id,hint:q.value.length?``:`Kategorien konnten nicht geladen werden.`},{default:d(()=>[e(k,{id:`category`,modelValue:n(Y).category_id,"onUpdate:modelValue":_[2]||=e=>n(Y).category_id=e,options:q.value,placeholder:`– bitte wählen –`,required:q.value.length>0,disabled:!q.value.length},null,8,[`modelValue`,`options`,`required`,`disabled`])]),_:1},8,[`error`,`hint`]),e(E,{id:`location`,label:`Standort`,error:n(Y).errors.location_id,hint:J.value.length?`Wo tritt das Problem auf?`:`Standorte konnten nicht geladen werden.`},{default:d(()=>[e(k,{id:`location`,modelValue:n(Y).location_id,"onUpdate:modelValue":_[3]||=e=>n(Y).location_id=e,options:J.value,placeholder:`– bitte wählen –`,required:J.value.length>0,disabled:!J.value.length},null,8,[`modelValue`,`options`,`required`,`disabled`])]),_:1},8,[`error`,`hint`])]),e(E,{id:`subject`,label:`Betreff`,error:n(Y).errors.subject},{default:d(()=>[e(n(j),{id:`subject`,modelValue:n(Y).subject,"onUpdate:modelValue":_[4]||=e=>n(Y).subject=e,maxlength:`200`,placeholder:`z. B. Drucker im 2. OG druckt nicht`,required:``},null,8,[`modelValue`])]),_:1},8,[`error`]),e(E,{id:`description`,label:`Nachricht`,error:n(Y).errors.description,hint:`Was ist passiert? Seit wann? Gibt es eine Fehlermeldung? Was haben Sie schon versucht?`},{default:d(()=>[e(n(M),{id:`description`,modelValue:n(Y).description,"onUpdate:modelValue":_[5]||=e=>n(Y).description=e,rows:`14`,maxlength:`20000`,class:`min-h-72`,required:``},null,8,[`modelValue`])]),_:1},8,[`error`]),a(`div`,U,[e(n(O),{type:`submit`,disabled:n(Y).processing},{default:d(()=>[n(Y).processing?(l(),p(n(y),{key:0,class:`animate-spin`})):(l(),p(n(T),{key:1})),_[9]||=t(` Ticket absenden `,-1)]),_:1},8,[`disabled`])])])]),_:1})],32)]),_:1}))}};export{W as default};
\ No newline at end of file
diff --git a/public/build/assets/Upcoming-4Sel7wW6.js b/public/build/assets/Upcoming-BwiPoqUU.js
similarity index 74%
rename from public/build/assets/Upcoming-4Sel7wW6.js
rename to public/build/assets/Upcoming-BwiPoqUU.js
index e3b15128..1359b8cd 100644
--- a/public/build/assets/Upcoming-4Sel7wW6.js
+++ b/public/build/assets/Upcoming-BwiPoqUU.js
@@ -1 +1 @@
-import{On as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{tt as s}from"./AppIcon-DZR1MN11.js";import{t as c}from"./EmptyState-Ceq4v8mE.js";import{t as l}from"./Panel-CyXtNQ_r.js";import{t as u}from"./EventListItem-CF53n-eG.js";var d={key:0,class:`-my-3 divide-y`},f={__name:`Upcoming`,props:{events:{type:Array,required:!0}},setup(f){return(p,m)=>(r(),o(l,{title:`Termine`,"action-label":`Alle Termine`,"action-href":`/termine`},{default:a(()=>[f.events.length?(r(),t(`div`,d,[(r(!0),t(i,null,n(f.events,e=>(r(),o(u,{key:e.id,event:e},null,8,[`event`]))),128))])):(r(),o(c,{key:1,icon:e(s),title:`Keine anstehenden Termine`,class:`py-6`},null,8,[`icon`]))]),_:1}))}};export{f as default};
\ No newline at end of file
+import{On as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{tt as s}from"./AppIcon-BAyAC-oO.js";import{t as c}from"./EmptyState-Ceq4v8mE.js";import{t as l}from"./Panel-2UV8H5Yl.js";import{t as u}from"./EventListItem-OiKBIolF.js";var d={key:0,class:`-my-3 divide-y`},f={__name:`Upcoming`,props:{events:{type:Array,required:!0}},setup(f){return(p,m)=>(r(),o(l,{title:`Termine`,"action-label":`Alle Termine`,"action-href":`/termine`},{default:a(()=>[f.events.length?(r(),t(`div`,d,[(r(!0),t(i,null,n(f.events,e=>(r(),o(u,{key:e.id,event:e},null,8,[`event`]))),128))])):(r(),o(c,{key:1,icon:e(s),title:`Keine anstehenden Termine`,class:`py-6`},null,8,[`icon`]))]),_:1}))}};export{f as default};
\ No newline at end of file
diff --git a/public/build/assets/Upcoming-vao6XeTO.js b/public/build/assets/Upcoming-cE0R-308.js
similarity index 89%
rename from public/build/assets/Upcoming-vao6XeTO.js
rename to public/build/assets/Upcoming-cE0R-308.js
index 47b6c7c4..043eb3ff 100644
--- a/public/build/assets/Upcoming-vao6XeTO.js
+++ b/public/build/assets/Upcoming-cE0R-308.js
@@ -1 +1 @@
-import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./BirthdayItem-XGlEsO_s.js";import{t as c}from"./Panel-CyXtNQ_r.js";var l={class:`-my-2 divide-y`},u={__name:`Upcoming`,props:{birthdays:{type:Array,required:!0},days:{type:Number,default:7}},setup(u){return(d,f)=>(r(),o(c,{title:`Geburtstage`,"action-label":`Alle`,"action-href":`/geburtstage`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.birthdays,e=>(r(),o(s,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128))])]),_:1}))}};export{u as default};
\ No newline at end of file
+import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./BirthdayItem-CFmKudWI.js";import{t as c}from"./Panel-2UV8H5Yl.js";var l={class:`-my-2 divide-y`},u={__name:`Upcoming`,props:{birthdays:{type:Array,required:!0},days:{type:Number,default:7}},setup(u){return(d,f)=>(r(),o(c,{title:`Geburtstage`,"action-label":`Alle`,"action-href":`/geburtstage`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.birthdays,e=>(r(),o(s,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128))])]),_:1}))}};export{u as default};
\ No newline at end of file
diff --git a/public/build/assets/UpcomingEvents-DKhZpLC8.js b/public/build/assets/UpcomingEvents-KdfseqbT.js
similarity index 88%
rename from public/build/assets/UpcomingEvents-DKhZpLC8.js
rename to public/build/assets/UpcomingEvents-KdfseqbT.js
index e380fdc5..6a33de23 100644
--- a/public/build/assets/UpcomingEvents-DKhZpLC8.js
+++ b/public/build/assets/UpcomingEvents-KdfseqbT.js
@@ -1 +1 @@
-import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-BIL1bnXp.js";import{t as p}from"./chevron-right-C9w5cb2q.js";import{t as m}from"./EventListItem-CF53n-eG.js";var h={key:0,class:`mb-3 flex items-center justify-between gap-4`},g={class:`text-lg font-semibold`},_={class:`divide-y rounded-lg border bg-card px-4`},v={key:0,class:`py-3 text-sm text-muted-foreground`},y={__name:`UpcomingEvents`,props:{block:{type:Object,required:!0}},setup(y){return(b,x)=>(o(),i(`section`,null,[y.block.data.title?(o(),i(`div`,h,[r(`h3`,g,l(y.block.data.title),1),e(n(f),{href:`/termine`,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[x[0]||=t(`Alle Termine `,-1),e(n(p),{class:`size-3.5`})]),_:1})])):d(``,!0),r(`div`,_,[(o(!0),i(s,null,a(y.block.props?.events??[],e=>(o(),u(m,{key:e.id,event:e},null,8,[`event`]))),128)),(y.block.props?.events??[]).length?d(``,!0):(o(),i(`p`,v,`Keine anstehenden Termine.`))])]))}};export{y as default};
\ No newline at end of file
+import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-0YzlX_sI.js";import{t as p}from"./chevron-right-C9w5cb2q.js";import{t as m}from"./EventListItem-OiKBIolF.js";var h={key:0,class:`mb-3 flex items-center justify-between gap-4`},g={class:`text-lg font-semibold`},_={class:`divide-y rounded-lg border bg-card px-4`},v={key:0,class:`py-3 text-sm text-muted-foreground`},y={__name:`UpcomingEvents`,props:{block:{type:Object,required:!0}},setup(y){return(b,x)=>(o(),i(`section`,null,[y.block.data.title?(o(),i(`div`,h,[r(`h3`,g,l(y.block.data.title),1),e(n(f),{href:`/termine`,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[x[0]||=t(`Alle Termine `,-1),e(n(p),{class:`size-3.5`})]),_:1})])):d(``,!0),r(`div`,_,[(o(!0),i(s,null,a(y.block.props?.events??[],e=>(o(),u(m,{key:e.id,event:e},null,8,[`event`]))),128)),(y.block.props?.events??[]).length?d(``,!0):(o(),i(`p`,v,`Keine anstehenden Termine.`))])]))}};export{y as default};
\ No newline at end of file
diff --git a/public/build/assets/Video-CN28KVBt.js b/public/build/assets/Video-DW_prj8F.js
similarity index 96%
rename from public/build/assets/Video-CN28KVBt.js
rename to public/build/assets/Video-DW_prj8F.js
index 9376a12e..e3a12f22 100644
--- a/public/build/assets/Video-CN28KVBt.js
+++ b/public/build/assets/Video-DW_prj8F.js
@@ -1 +1 @@
-import{D as e,On as t,_ as n,b as r,mt as i,o as a,tr as o,vn as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{E as c}from"./AppIcon-DZR1MN11.js";import{t as l}from"./play-GbhjcPFH.js";var u={class:`relative aspect-video overflow-hidden rounded-lg bg-neutral-900`},d=[`src`],f=[`src`,`title`],p={class:`grid justify-items-center gap-3 px-6 text-center`},m={class:`grid size-16 place-items-center rounded-full bg-white/15 transition-colors hover:bg-white/25`},h={class:`font-medium`},g={class:`max-w-md text-xs text-white/70`},_={key:1,class:`grid size-full place-items-center text-white/60`},v={__name:`Video`,props:{block:{type:Object,required:!0}},setup(v){let y=s(!1);return(s,b)=>(i(),r(`figure`,null,[n(`div`,u,[v.block.props?.embed?(i(),r(a,{key:0},[v.block.props.embed.provider===`file`?(i(),r(`video`,{key:0,src:v.block.props.embed.src,controls:``,preload:`metadata`,class:`size-full`},null,8,d)):y.value?(i(),r(`iframe`,{key:1,src:`${v.block.props.embed.src}&autoplay=1`,title:v.block.data.title||`Video`,class:`size-full`,allow:`autoplay; fullscreen; picture-in-picture`,allowfullscreen:``},null,8,f)):(i(),r(`button`,{key:2,type:`button`,class:`grid size-full place-items-center text-white`,onClick:b[0]||=e=>y.value=!0},[n(`span`,p,[n(`span`,m,[e(t(l),{class:`size-7 fill-current`})]),n(`span`,h,o(v.block.data.title||`Video abspielen`),1),n(`span`,g,`Beim Abspielen wird das Video von `+o(v.block.props.embed.provider)+` geladen. Dabei werden Daten an `+o(v.block.props.embed.provider)+` übertragen.`,1)])]))],64)):(i(),r(`div`,_,[e(t(c),{class:`size-8`})]))])]))}};export{v as default};
\ No newline at end of file
+import{D as e,On as t,_ as n,b as r,mt as i,o as a,tr as o,vn as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{E as c}from"./AppIcon-BAyAC-oO.js";import{t as l}from"./play-GbhjcPFH.js";var u={class:`relative aspect-video overflow-hidden rounded-lg bg-neutral-900`},d=[`src`],f=[`src`,`title`],p={class:`grid justify-items-center gap-3 px-6 text-center`},m={class:`grid size-16 place-items-center rounded-full bg-white/15 transition-colors hover:bg-white/25`},h={class:`font-medium`},g={class:`max-w-md text-xs text-white/70`},_={key:1,class:`grid size-full place-items-center text-white/60`},v={__name:`Video`,props:{block:{type:Object,required:!0}},setup(v){let y=s(!1);return(s,b)=>(i(),r(`figure`,null,[n(`div`,u,[v.block.props?.embed?(i(),r(a,{key:0},[v.block.props.embed.provider===`file`?(i(),r(`video`,{key:0,src:v.block.props.embed.src,controls:``,preload:`metadata`,class:`size-full`},null,8,d)):y.value?(i(),r(`iframe`,{key:1,src:`${v.block.props.embed.src}&autoplay=1`,title:v.block.data.title||`Video`,class:`size-full`,allow:`autoplay; fullscreen; picture-in-picture`,allowfullscreen:``},null,8,f)):(i(),r(`button`,{key:2,type:`button`,class:`grid size-full place-items-center text-white`,onClick:b[0]||=e=>y.value=!0},[n(`span`,p,[n(`span`,m,[e(t(l),{class:`size-7 fill-current`})]),n(`span`,h,o(v.block.data.title||`Video abspielen`),1),n(`span`,g,`Beim Abspielen wird das Video von `+o(v.block.props.embed.provider)+` geladen. Dabei werden Daten an `+o(v.block.props.embed.provider)+` übertragen.`,1)])]))],64)):(i(),r(`div`,_,[e(t(c),{class:`size-8`})]))])]))}};export{v as default};
\ No newline at end of file
diff --git a/public/build/assets/Viewer-Dh5pqAP4.js b/public/build/assets/Viewer-D-Z3dQuy.js
similarity index 93%
rename from public/build/assets/Viewer-Dh5pqAP4.js
rename to public/build/assets/Viewer-D-Z3dQuy.js
index b520c682..0bce4f1d 100644
--- a/public/build/assets/Viewer-Dh5pqAP4.js
+++ b/public/build/assets/Viewer-D-Z3dQuy.js
@@ -1,2 +1,2 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-DcwYlIRV.js","assets/app-BIL1bnXp.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-CktdeUXb.css"])))=>i.map(i=>d[i]);
-import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,er as c,it as l,mt as u,o as d,qt as f,tr as p,tt as m,v as h,vn as g,xn as _,y as v}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as y,r as b,s as x}from"./app-BIL1bnXp.js";import{O as S}from"./dist-DtGNiYlK.js";import{Z as C}from"./AppIcon-DZR1MN11.js";import{t as w}from"./arrow-left-BMImfTf2.js";import{t as T}from"./AppLayout-dYp4WcQT.js";import{t as E}from"./download-UAAY3N2F.js";import{t as D}from"./external-link-8-VtmLK9.js";import{t as O}from"./minus-CmsbcqBG.js";import{t as k}from"./plus-B_ij2ng2.js";import{n as A}from"./button-CwUSbS9X.js";import{t as j}from"./colors-RDOJqd57.js";import{n as M,t as N}from"./format-20VMi8w8.js";var P={class:`relative flex h-full min-h-0 flex-col`},F={class:`flex items-center justify-between gap-3 border-b bg-card px-3 py-1.5 text-[13px] text-muted-foreground`},I={class:`tabular-nums`},L={class:`flex items-center rounded-md border`},R={class:`w-12 text-center tabular-nums`},z={key:0,class:`mx-auto max-w-md rounded-lg border bg-card p-6 text-center text-sm`},B={key:1,class:`grid h-full place-items-center`},V={key:2,class:`grid justify-center gap-4`},H=[`data-page`],U=[`aria-label`],W={__name:`PdfViewer`,props:{url:{type:String,required:!0}},setup(t){let r=t,f=g(null),h=_(null),v=g([]),y=g(1),b=g(1),C=g(!1),w=new Map,T;async function E(){try{let[e,t]=await Promise.all([x(()=>import(`./pdf-DcwYlIRV.js`),__vite__mapDeps([0,1,2,3,4])),x(()=>import(`./pdf.worker.min-D00xlTFB.js`),[])]);e.GlobalWorkerOptions.workerSrc=t.default,h.value=await e.getDocument({url:r.url,isEvalSupported:!1,enableXfa:!1}).promise;let n=(await h.value.getPage(1)).getViewport({scale:1}),i=Math.min(f.value.clientWidth-48,860);y.value=Math.max(.5,i/n.width),v.value=Array.from({length:h.value.numPages},(e,t)=>({number:t+1,width:n.width,height:n.height})),await m(),D()}catch(e){console.error(e),C.value=!0}}function D(){T?.disconnect(),w.clear(),T=new IntersectionObserver(e=>{for(let t of e){let e=Number(t.target.dataset.page);t.isIntersecting&&(b.value=e,A(e,t.target.querySelector(`canvas`)))}},{root:f.value,rootMargin:`400px 0px`}),f.value.querySelectorAll(`[data-page]`).forEach(e=>T.observe(e))}async function A(e,t){let n=`${e}@${y.value}`;if(!t||w.get(e)===n)return;w.set(e,n);let r=await h.value.getPage(e),i=r.getViewport({scale:y.value}),a=window.devicePixelRatio||1;t.width=Math.floor(i.width*a),t.height=Math.floor(i.height*a),t.style.width=`${Math.floor(i.width)}px`,t.style.height=`${Math.floor(i.height)}px`,await r.render({canvasContext:t.getContext(`2d`),viewport:i,transform:a===1?null:[a,0,0,a,0,0]}).promise}async function j(e){y.value=Math.min(3,Math.max(.4,Math.round((y.value+e)*10)/10)),await m(),D()}return s(E),l(()=>{T?.disconnect(),h.value?.destroy()}),(t,r)=>(u(),a(`div`,P,[i(`div`,F,[i(`span`,I,p(v.value.length?`Seite ${b.value} von ${v.value.length}`:``),1),i(`div`,L,[i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Verkleinern`,onClick:r[0]||=e=>j(-.2)},[e(n(O),{class:`size-4`})]),i(`span`,R,p(Math.round(y.value*100))+` %`,1),i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Vergrößern`,onClick:r[1]||=e=>j(.2)},[e(n(k),{class:`size-4`})])])]),i(`div`,{ref_key:`container`,ref:f,class:`min-h-0 flex-1 overflow-auto bg-muted/60 px-4 py-6`},[C.value?(u(),a(`div`,z,`Die Datei lässt sich hier nicht anzeigen. Bitte herunterladen.`)):v.value.length?(u(),a(`div`,V,[(u(!0),a(d,null,o(v.value,e=>(u(),a(`div`,{key:e.number,"data-page":e.number,class:`bg-white shadow-md`,style:c({width:`${Math.floor(e.width*y.value)}px`,height:`${Math.floor(e.height*y.value)}px`})},[i(`canvas`,{"aria-label":`Seite ${e.number}`},null,8,U)],12,H))),128))])):(u(),a(`div`,B,[e(n(S),{class:`size-6 animate-spin text-muted-foreground`})]))],512)]))}},G={class:`flex h-[calc(100vh-9.5rem)] min-h-[32rem] flex-col overflow-hidden rounded-lg border bg-card`},K={class:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b px-4 py-3`},q={class:`min-w-0 flex-1`},J={class:`truncate text-lg leading-tight font-semibold`},Y={class:`text-xs text-muted-foreground`},X={class:`flex flex-wrap items-center gap-2`},Z=[`href`],Q=[`href`],$=[`href`],ee={key:1,class:`grid min-h-0 flex-1 place-items-center overflow-auto bg-muted/60 p-6`},te=[`src`,`alt`],ne={__name:`Viewer`,props:{entry:{type:Object,required:!0},file:{type:Object,required:!0},query:{type:String,default:``}},setup(o){return(s,c)=>(u(),h(T,{title:o.entry.title},{default:f(()=>[e(n(y),{title:o.entry.title},null,8,[`title`]),i(`div`,G,[i(`header`,K,[e(n(b),{href:o.entry.folder.url,class:`grid size-9 place-items-center rounded-md hover:bg-accent`,"aria-label":`Zurück zu ${o.entry.folder.path}`},{default:f(()=>[e(n(w),{class:`size-5`})]),_:1},8,[`href`,`aria-label`]),i(`div`,q,[e(n(b),{href:o.entry.folder.url,class:`inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:underline`},{default:f(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(j)(o.entry.folder.color).dot])},null,2),t(p(o.entry.folder.path),1)]),_:1},8,[`href`]),i(`h1`,J,p(o.entry.title),1),i(`p`,Y,[o.entry.version?(u(),a(d,{key:0},[t(`Version `+p(o.entry.version)+` · `,1)],64)):v(``,!0),t(`Stand `+p(n(M)(o.entry.valid_from))+` · `+p(n(N)(o.entry.size)),1)])]),i(`div`,X,[o.entry.editable?(u(),h(n(A),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.editable.url},[e(n(C)),t(` Vorlage (`+p(o.entry.editable.extension)+`)`,1)],8,Z)]),_:1})):v(``,!0),e(n(A),{variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.file.url,target:`_blank`,rel:`noopener`},[e(n(D)),c[0]||=t(` In neuem Tab`,-1)],8,Q)]),_:1}),e(n(A),{size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.download_url},[e(n(E)),c[1]||=t(` Herunterladen`,-1)],8,$)]),_:1})])]),o.file.kind===`pdf`?(u(),h(W,{key:0,url:o.file.url,class:`min-h-0 flex-1`},null,8,[`url`])):(u(),a(`div`,ee,[i(`img`,{src:o.file.url,alt:o.entry.title,class:`max-h-full max-w-full rounded shadow-md`},null,8,te)]))])]),_:1},8,[`title`]))}};export{ne as default};
\ No newline at end of file
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-D4XaEZM-.js","assets/app-0YzlX_sI.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-BxfVigbi.css"])))=>i.map(i=>d[i]);
+import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,er as c,it as l,mt as u,o as d,qt as f,tr as p,tt as m,v as h,vn as g,xn as _,y as v}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as y,r as b,s as x}from"./app-0YzlX_sI.js";import{O as S}from"./dist-DtGNiYlK.js";import{Z as C}from"./AppIcon-BAyAC-oO.js";import{t as w}from"./arrow-left-BMImfTf2.js";import{t as T}from"./AppLayout-BZsS7ZqB.js";import{t as E}from"./download-UAAY3N2F.js";import{t as D}from"./external-link-8-VtmLK9.js";import{t as O}from"./minus-CmsbcqBG.js";import{t as k}from"./plus-B_ij2ng2.js";import{n as A}from"./button-CwUSbS9X.js";import{t as j}from"./colors-RDOJqd57.js";import{n as M,t as N}from"./format-20VMi8w8.js";var P={class:`relative flex h-full min-h-0 flex-col`},F={class:`flex items-center justify-between gap-3 border-b bg-card px-3 py-1.5 text-[13px] text-muted-foreground`},I={class:`tabular-nums`},L={class:`flex items-center rounded-md border`},R={class:`w-12 text-center tabular-nums`},z={key:0,class:`mx-auto max-w-md rounded-lg border bg-card p-6 text-center text-sm`},B={key:1,class:`grid h-full place-items-center`},V={key:2,class:`grid justify-center gap-4`},H=[`data-page`],U=[`aria-label`],W={__name:`PdfViewer`,props:{url:{type:String,required:!0}},setup(t){let r=t,f=g(null),h=_(null),v=g([]),y=g(1),b=g(1),C=g(!1),w=new Map,T;async function E(){try{let[e,t]=await Promise.all([x(()=>import(`./pdf-D4XaEZM-.js`),__vite__mapDeps([0,1,2,3,4])),x(()=>import(`./pdf.worker.min-D00xlTFB.js`),[])]);e.GlobalWorkerOptions.workerSrc=t.default,h.value=await e.getDocument({url:r.url,isEvalSupported:!1,enableXfa:!1}).promise;let n=(await h.value.getPage(1)).getViewport({scale:1}),i=Math.min(f.value.clientWidth-48,860);y.value=Math.max(.5,i/n.width),v.value=Array.from({length:h.value.numPages},(e,t)=>({number:t+1,width:n.width,height:n.height})),await m(),D()}catch(e){console.error(e),C.value=!0}}function D(){T?.disconnect(),w.clear(),T=new IntersectionObserver(e=>{for(let t of e){let e=Number(t.target.dataset.page);t.isIntersecting&&(b.value=e,A(e,t.target.querySelector(`canvas`)))}},{root:f.value,rootMargin:`400px 0px`}),f.value.querySelectorAll(`[data-page]`).forEach(e=>T.observe(e))}async function A(e,t){let n=`${e}@${y.value}`;if(!t||w.get(e)===n)return;w.set(e,n);let r=await h.value.getPage(e),i=r.getViewport({scale:y.value}),a=window.devicePixelRatio||1;t.width=Math.floor(i.width*a),t.height=Math.floor(i.height*a),t.style.width=`${Math.floor(i.width)}px`,t.style.height=`${Math.floor(i.height)}px`,await r.render({canvasContext:t.getContext(`2d`),viewport:i,transform:a===1?null:[a,0,0,a,0,0]}).promise}async function j(e){y.value=Math.min(3,Math.max(.4,Math.round((y.value+e)*10)/10)),await m(),D()}return s(E),l(()=>{T?.disconnect(),h.value?.destroy()}),(t,r)=>(u(),a(`div`,P,[i(`div`,F,[i(`span`,I,p(v.value.length?`Seite ${b.value} von ${v.value.length}`:``),1),i(`div`,L,[i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Verkleinern`,onClick:r[0]||=e=>j(-.2)},[e(n(O),{class:`size-4`})]),i(`span`,R,p(Math.round(y.value*100))+` %`,1),i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Vergrößern`,onClick:r[1]||=e=>j(.2)},[e(n(k),{class:`size-4`})])])]),i(`div`,{ref_key:`container`,ref:f,class:`min-h-0 flex-1 overflow-auto bg-muted/60 px-4 py-6`},[C.value?(u(),a(`div`,z,`Die Datei lässt sich hier nicht anzeigen. Bitte herunterladen.`)):v.value.length?(u(),a(`div`,V,[(u(!0),a(d,null,o(v.value,e=>(u(),a(`div`,{key:e.number,"data-page":e.number,class:`bg-white shadow-md`,style:c({width:`${Math.floor(e.width*y.value)}px`,height:`${Math.floor(e.height*y.value)}px`})},[i(`canvas`,{"aria-label":`Seite ${e.number}`},null,8,U)],12,H))),128))])):(u(),a(`div`,B,[e(n(S),{class:`size-6 animate-spin text-muted-foreground`})]))],512)]))}},G={class:`flex h-[calc(100vh-9.5rem)] min-h-[32rem] flex-col overflow-hidden rounded-lg border bg-card`},K={class:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b px-4 py-3`},q={class:`min-w-0 flex-1`},J={class:`truncate text-lg leading-tight font-semibold`},Y={class:`text-xs text-muted-foreground`},X={class:`flex flex-wrap items-center gap-2`},Z=[`href`],Q=[`href`],$=[`href`],ee={key:1,class:`grid min-h-0 flex-1 place-items-center overflow-auto bg-muted/60 p-6`},te=[`src`,`alt`],ne={__name:`Viewer`,props:{entry:{type:Object,required:!0},file:{type:Object,required:!0},query:{type:String,default:``}},setup(o){return(s,c)=>(u(),h(T,{title:o.entry.title},{default:f(()=>[e(n(y),{title:o.entry.title},null,8,[`title`]),i(`div`,G,[i(`header`,K,[e(n(b),{href:o.entry.folder.url,class:`grid size-9 place-items-center rounded-md hover:bg-accent`,"aria-label":`Zurück zu ${o.entry.folder.path}`},{default:f(()=>[e(n(w),{class:`size-5`})]),_:1},8,[`href`,`aria-label`]),i(`div`,q,[e(n(b),{href:o.entry.folder.url,class:`inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:underline`},{default:f(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(j)(o.entry.folder.color).dot])},null,2),t(p(o.entry.folder.path),1)]),_:1},8,[`href`]),i(`h1`,J,p(o.entry.title),1),i(`p`,Y,[o.entry.version?(u(),a(d,{key:0},[t(`Version `+p(o.entry.version)+` · `,1)],64)):v(``,!0),t(`Stand `+p(n(M)(o.entry.valid_from))+` · `+p(n(N)(o.entry.size)),1)])]),i(`div`,X,[o.entry.editable?(u(),h(n(A),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.editable.url},[e(n(C)),t(` Vorlage (`+p(o.entry.editable.extension)+`)`,1)],8,Z)]),_:1})):v(``,!0),e(n(A),{variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.file.url,target:`_blank`,rel:`noopener`},[e(n(D)),c[0]||=t(` In neuem Tab`,-1)],8,Q)]),_:1}),e(n(A),{size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.download_url},[e(n(E)),c[1]||=t(` Herunterladen`,-1)],8,$)]),_:1})])]),o.file.kind===`pdf`?(u(),h(W,{key:0,url:o.file.url,class:`min-h-0 flex-1`},null,8,[`url`])):(u(),a(`div`,ee,[i(`img`,{src:o.file.url,alt:o.entry.title,class:`max-h-full max-w-full rounded shadow-md`},null,8,te)]))])]),_:1},8,[`title`]))}};export{ne as default};
\ No newline at end of file
diff --git a/public/build/assets/app-BIL1bnXp.js b/public/build/assets/app-0YzlX_sI.js
similarity index 96%
rename from public/build/assets/app-BIL1bnXp.js
rename to public/build/assets/app-0YzlX_sI.js
index ed33aa11..0fb024a8 100644
--- a/public/build/assets/app-BIL1bnXp.js
+++ b/public/build/assets/app-0YzlX_sI.js
@@ -1,4 +1,4 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Sample-Cmpr4B1i.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/AppIcon-DZR1MN11.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-DtGNiYlK.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-CAG9BrJF.js","assets/AppLayout-dYp4WcQT.js","assets/FileIcon-D_jROFBU.js","assets/BrandLogo-BVBBjkr1.js","assets/format-BsuBtvUs.js","assets/button-CwUSbS9X.js","assets/Panel-CyXtNQ_r.js","assets/chevron-right-C9w5cb2q.js","assets/Input-FGSb2-yK.js","assets/PageContent-BvnlekSK.js","assets/registry-BeyngY4f.js","assets/DirectoryLogin-DHZ8ApT9.js","assets/arrow-left-BMImfTf2.js","assets/eye-off-myis3scV.js","assets/eye-CFNQcvaV.js","assets/FormField-BoFAO4pm.js","assets/GuestLayout-Bk0PVv-C.js","assets/ForgotPassword-Cg72r3Ni.js","assets/Login-BViz0zM_.js","assets/check-AfxJa8Ew.js","assets/isValueEqualOrExist-BmxVVt-T.js","assets/VisuallyHiddenInput-BMUp3blB.js","assets/RovingFocusItem-BqPEtysU.js","assets/ResetPassword-D9va0DCr.js","assets/Dashboard-PUflDvXd.js","assets/widgets-B--t59T-.js","assets/Index-Dmcr5jKU.js","assets/PageHeader-C1gQ5QQB.js","assets/Index-CQLLw2QT.js","assets/useMediaList-Cpw6m1Nv.js","assets/circle-alert-D8SqHL0j.js","assets/external-link-8-VtmLK9.js","assets/image-off-IDPmIoA8.js","assets/link-2-DbrWevIe.js","assets/copy-DsLby0sm.js","assets/download-UAAY3N2F.js","assets/ellipsis-vertical-B9wuHo-w.js","assets/image-plus-C1A_7CFG.js","assets/images-47Nc0alu.js","assets/search-x-BVofHEe_.js","assets/trash-DUqnVIgb.js","assets/DialogDescription-CmDpJDcN.js","assets/Textarea-DEFXqC2w.js","assets/Index-DFyggyZP.js","assets/chevron-left-8GGLVOvJ.js","assets/Organigram-kJ1ChRkd.js","assets/chevron-up-DJvyZPom.js","assets/minus-CmsbcqBG.js","assets/plus-B_ij2ng2.js","assets/smartphone-BE2l7T-2.js","assets/EmptyState-Ceq4v8mE.js","assets/Skeleton-fJgmuUSB.js","assets/useStoredChoice-BAacDiWy.js","assets/Organigram-D2H6GNN8.css","assets/Edit-BilscVXC.js","assets/Show-DgQiPQHT.js","assets/Index-BQUp9Bw0.js","assets/Index-DnpTJALH.js","assets/BirthdayItem-XGlEsO_s.js","assets/Index-D5EkEgv_.js","assets/arrow-up-Djq_2Npz.js","assets/file-plus-corner-Z8xo1q-K.js","assets/folder-tree-ZY-sbGXb.js","assets/list-DHYGZ2vt.js","assets/pencil-line-CmAbFj4f.js","assets/rotate-ccw-clock-DRYS-TO2.js","assets/upload-M7dd6qr8.js","assets/NativeSelect-G3km7PmI.js","assets/dialog-ys9a88BC.js","assets/DialogDescription-DWZeexBu.js","assets/DialogHeader-DuqiL3ry.js","assets/Index-Dm9BlNFB.js","assets/EventDateBlock-_E5XlLto.js","assets/Show-DUPNY79M.js","assets/Builder-C_1ldmsL.js","assets/Switch-DtqyAsXz.js","assets/lock-H7FAhSBr.js","assets/paperclip-DmVAQ5Y5.js","assets/save-aFVYiCIj.js","assets/settings-2-L4P6usDq.js","assets/table-properties-BPjlj2dD.js","assets/FormRenderer-AzcLagK5.js","assets/send-6fmdiUe6.js","assets/Index-Cbkhdyz4.js","assets/Show-DikPCP3x.js","assets/calendar-clock-8H2IkjP5.js","assets/Index-ODGExvk6.js","assets/Index-TMTcrxn6.js","assets/message-square-plus-89qxGe_b.js","assets/StatusBadge-udDF6Kfz.js","assets/status-p0CPKwc2.js","assets/Loans-Bh-lE67q.js","assets/Ticket-C3xM4X-g.js","assets/TicketCreate-B787p5sp.js","assets/Editor-BlvcFenR.js","assets/RichTextEditor-DZNDAV0m.js","assets/quote-CAgJDpoy.js","assets/RichTextEditor-Lf5W1_X5.css","assets/useMediaPicker-M_NQvq7b.js","assets/message-square-warning-BFfa_vqd.js","assets/play-GbhjcPFH.js","assets/useMediaPicker-D8CaLfE4.css","assets/Index-CvGK2L6b.js","assets/pen-line-22hyV1yp.js","assets/NewsCard-DObi3Nd6.js","assets/NewsImage-BgNZkkUr.js","assets/Show-C_9YO2Rz.js","assets/message-circle-Dw_JoLc-.js","assets/Editor-0gdknA1_.js","assets/NewPageDialog-tLgKOS-Q.js","assets/Index-Bfhq1G_C.js","assets/Show-BkMP3SIW.js","assets/Folder-C6P7bsZK.js","assets/FolderTile-Cy0YS05Y.js","assets/colors-RDOJqd57.js","assets/format-20VMi8w8.js","assets/QmSearchBox-BB5QWd3P.js","assets/Index-zFgDIifr.js","assets/Search-DvnIZ9tZ.js","assets/Search-5WfA9Ai4.css","assets/Viewer-Dh5pqAP4.js","assets/Index-meaxK1DZ.js","assets/Print-BTOggOmA.js","assets/Print-juRIblN_.css"])))=>i.map(i=>d[i]);
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Sample-B11CaVen.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/AppIcon-BAyAC-oO.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-DtGNiYlK.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-CAG9BrJF.js","assets/AppLayout-BZsS7ZqB.js","assets/FileIcon-D0NBDDoM.js","assets/BrandLogo-CjSHdSq5.js","assets/format-BsuBtvUs.js","assets/button-CwUSbS9X.js","assets/Panel-2UV8H5Yl.js","assets/chevron-right-C9w5cb2q.js","assets/Input-FGSb2-yK.js","assets/PageContent-MInmcEZA.js","assets/registry-BYgDUCgI.js","assets/DirectoryLogin-CZ-rcBqn.js","assets/arrow-left-BMImfTf2.js","assets/eye-off-myis3scV.js","assets/eye-CFNQcvaV.js","assets/FormField-BoFAO4pm.js","assets/GuestLayout-BlpQIyqX.js","assets/ForgotPassword-DxqgIMpI.js","assets/Login-3zhJwldv.js","assets/check-AfxJa8Ew.js","assets/isValueEqualOrExist-BmxVVt-T.js","assets/VisuallyHiddenInput-BMUp3blB.js","assets/RovingFocusItem-BqPEtysU.js","assets/ResetPassword-CfaRUcRj.js","assets/Dashboard-BrrhVE8R.js","assets/widgets-DsR5Sq4L.js","assets/Index-CIqiCVF_.js","assets/PageHeader-BF5yxdNS.js","assets/Index-DlInXlaE.js","assets/useMediaList-Cpw6m1Nv.js","assets/circle-alert-D8SqHL0j.js","assets/external-link-8-VtmLK9.js","assets/image-off-IDPmIoA8.js","assets/link-2-DbrWevIe.js","assets/copy-DsLby0sm.js","assets/download-UAAY3N2F.js","assets/ellipsis-vertical-B9wuHo-w.js","assets/image-plus-C1A_7CFG.js","assets/images-47Nc0alu.js","assets/search-x-BVofHEe_.js","assets/trash-DUqnVIgb.js","assets/DialogDescription-B80N0IqX.js","assets/Textarea-DEFXqC2w.js","assets/Index-C-nQsS78.js","assets/chevron-left-8GGLVOvJ.js","assets/Organigram-B6AVQEZk.js","assets/chevron-up-DJvyZPom.js","assets/minus-CmsbcqBG.js","assets/plus-B_ij2ng2.js","assets/smartphone-BE2l7T-2.js","assets/EmptyState-Ceq4v8mE.js","assets/Skeleton-fJgmuUSB.js","assets/useStoredChoice-BAacDiWy.js","assets/Organigram-D2H6GNN8.css","assets/Edit-Dc6-wwfS.js","assets/Show-1-OzYECI.js","assets/Index-BtvMuJZ9.js","assets/Index-z8WuZrUr.js","assets/BirthdayItem-CFmKudWI.js","assets/Index-DUVLZaAH.js","assets/arrow-up-Djq_2Npz.js","assets/file-plus-corner-Z8xo1q-K.js","assets/folder-tree-ZY-sbGXb.js","assets/list-DHYGZ2vt.js","assets/pencil-line-CmAbFj4f.js","assets/rotate-ccw-clock-DRYS-TO2.js","assets/upload-M7dd6qr8.js","assets/NativeSelect-G3km7PmI.js","assets/dialog-i3G0C6kJ.js","assets/DialogDescription-ClgsGa-Q.js","assets/DialogHeader-DuqiL3ry.js","assets/Index-MCe9Cafi.js","assets/EventDateBlock-_E5XlLto.js","assets/Show-1rrKCJ46.js","assets/Builder-RWDH-tpc.js","assets/Switch-DtqyAsXz.js","assets/lock-H7FAhSBr.js","assets/paperclip-DmVAQ5Y5.js","assets/save-aFVYiCIj.js","assets/settings-2-L4P6usDq.js","assets/table-properties-BPjlj2dD.js","assets/FormRenderer-CwhsDe_A.js","assets/send-6fmdiUe6.js","assets/Index-DICWonRs.js","assets/Show-CBLrlSlh.js","assets/calendar-clock-8H2IkjP5.js","assets/Index-BiU4cMAG.js","assets/Index-DwlkDwbH.js","assets/message-square-plus-89qxGe_b.js","assets/StatusBadge-udDF6Kfz.js","assets/status-p0CPKwc2.js","assets/Loans-BAKQXWrb.js","assets/Ticket-DxP5XcvM.js","assets/TicketCreate-C8oeFhy1.js","assets/Editor-DNtRBL0D.js","assets/RichTextEditor-Yxa2Bbjv.js","assets/quote-CAgJDpoy.js","assets/RichTextEditor-Lf5W1_X5.css","assets/useMediaPicker-Byo3kVdZ.js","assets/message-square-warning-BFfa_vqd.js","assets/play-GbhjcPFH.js","assets/useMediaPicker-D8CaLfE4.css","assets/Index-C9H3rhhY.js","assets/pen-line-22hyV1yp.js","assets/NewsCard-B5f-zlDb.js","assets/NewsImage-Dlma_LfF.js","assets/Show-Cx8sZUkn.js","assets/message-circle-Dw_JoLc-.js","assets/Editor-CjJAN1aR.js","assets/NewPageDialog-BXb-jJpf.js","assets/Index-Cgcxzy4F.js","assets/Show-SgUmrnpj.js","assets/Folder-D1-3BUpc.js","assets/FolderTile-C0Y6YGkt.js","assets/colors-RDOJqd57.js","assets/format-20VMi8w8.js","assets/QmSearchBox-IhLSRduk.js","assets/Index-D5mTilEB.js","assets/Search-BFkhnAPb.js","assets/Search-5WfA9Ai4.css","assets/Viewer-D-Z3dQuy.js","assets/Index-B0YXQiaG.js","assets/Print-DQgAAWDx.js","assets/Print-juRIblN_.css"])))=>i.map(i=>d[i]);
import{B as e,Ht as t,ct as n,fn as r,ft as i,g as a,gn as o,gt as s,it as c,k as l,o as u,tt as d,vn as f,xn as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as m,i as h}from"./runtime-dom.esm-bundler-BEWGoe8n.js";var g=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function _(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function v(){}function y(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function b(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function x(e){if(y(e))return e;if(Array.isArray(e)||b(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function S(e){return g.Buffer!==void 0&&g.Buffer.isBuffer(e)}function C(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function w(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var T=`[object RegExp]`,E=`[object String]`,ee=`[object Number]`,te=`[object Boolean]`,ne=`[object Arguments]`,re=`[object Symbol]`,ie=`[object Date]`,ae=`[object Map]`,oe=`[object Set]`,se=`[object Array]`,ce=`[object Function]`,le=`[object ArrayBuffer]`,ue=`[object Object]`,de=`[object Error]`,fe=`[object DataView]`,pe=`[object Uint8Array]`,me=`[object Uint8ClampedArray]`,he=`[object Uint16Array]`,ge=`[object Uint32Array]`,_e=`[object BigUint64Array]`,ve=`[object Int8Array]`,ye=`[object Int16Array]`,be=`[object Int32Array]`,xe=`[object BigInt64Array]`,Se=`[object Float32Array]`,Ce=`[object Float64Array]`;function we(e,t){return Te(e,void 0,e,new Map,t)}function Te(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(y(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;aMe(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case se:case pe:case me:case he:case ge:case _e:case ve:case ye:case be:case xe:case Se:case Ce:if(S(e)!==S(t)||e.length!==t.length)return!1;for(let i=0;i=0}var Fe={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ie(e){return e.replace(/[&<>"']/g,e=>Fe[e])}function Le(e){return e!=null&&typeof e!=`function`&&Pe(e.length)}function Re(e){return typeof e==`symbol`||e instanceof Symbol}function ze(e){return e==null?``:Be(e)}function Be(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Be).join(`,`);if(Re(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function Ve(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function He(e){if(Array.isArray(e))return e.map(Ve);if(typeof e==`symbol`)return[e];e=ze(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(w(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),D(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case ee:case E:case te:{let t=new e.constructor(e?.valueOf());return D(t,e),t}case ne:{let t={};return D(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Je(e){return qe(e)}function Ye(e){return typeof e==`object`&&!!e&&w(e)===`[object Arguments]`}var Xe=/^(?:0|[1-9]\d*)$/;function Ze(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e{let r=e[t];(!(Object.hasOwn(e,t)&&Ae(r,n))||n===void 0&&!(t in e))&&(e[t]=n)};function ot(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function st(e,t,n,r){if(e==null&&!Ke(e))return e;let i;i=rt(t,e)?[t]:Array.isArray(t)?t:He(t);let a=n(A(e,i)),o=e;for(let t=0;tn,()=>void 0)}function ct(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=_(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?((r||i)&&(s=e.apply(this,t)),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function lt(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;etypeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0,mt=e=>e instanceof FormData||pt(e)||typeof e==`object`&&!!e&&Object.values(e).some(e=>mt(e)),ht=class extends Error{response;constructor(e){super(`HTTP error ${e.status}`),this.name=`HttpResponseError`,this.response=e}},gt=class extends Error{constructor(e=`Request was cancelled`){super(e),this.name=`HttpCancelledError`}},_t=class extends Error{constructor(e=`Network error`){super(e),this.name=`HttpNetworkError`}};function vt(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{n!=null&&(Array.isArray(n)?n.forEach(n=>t.append(`${e}[]`,String(n))):typeof n==`object`?t.append(e,JSON.stringify(n)):t.append(e,String(n)))}),t.toString()}function yt(e,t,n){if(t&&!e.startsWith(`http://`)&&!e.startsWith(`https://`)&&(e=t.replace(/\/$/,``)+`/`+e.replace(/^\//,``)),n&&Object.keys(n).length>0){let t=vt(n);t&&(e+=(e.includes(`?`)?`&`:`?`)+t)}return e}function bt(){return typeof window>`u`?null:window.axios?.defaults?.headers?.common?.[`X-Requested-With`]??null}function xt(e,t=new FormData,n=null){for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&St(t,n?`${n}[${r}]`:r,e[r]);return t}function St(e,t,n){if(Array.isArray(n))return n.forEach((n,r)=>St(e,`${t}[${r}]`,n));if(n instanceof Date)return e.append(t,n.toISOString());if(typeof File<`u`&&n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);xt(n,e,t)}function Ct(e,t){if(e!=null)return e instanceof FormData?e:typeof e==`object`&&mt(e)?xt(e):typeof e==`object`||t[`Content-Type`]?.includes(`application/json`)?JSON.stringify(e):String(e)}function wt(e){let t={};return e.forEach((e,n)=>{t[n.toLowerCase()]=e}),t}function Tt(e={}){let t=e.xsrfCookieName??`XSRF-TOKEN`,n=e.xsrfHeaderName??`X-XSRF-TOKEN`;function r(){if(typeof document>`u`)return null;let e=document.cookie.match(RegExp(`(^|;\\s*)`+t+`=([^;]*)`));return e?decodeURIComponent(e[2]):null}return{setXsrfCookieName(e){t=e},setXsrfHeaderName(e){n=e},async request(e){let t=yt(e.url,e.baseURL,e.params),i=e.method.toUpperCase(),a={},o=bt();o&&(a[`X-Requested-With`]=o),e.data!==void 0&&![`GET`,`DELETE`].includes(i)&&!(e.data instanceof FormData)&&!mt(e.data)&&(a[`Content-Type`]=`application/json`),e.headers&&Object.entries(e.headers).forEach(([e,t])=>{t!==void 0&&(a[e]=String(t))});let s=r();s&&![`GET`,`HEAD`,`OPTIONS`].includes(i)&&(a[n]=s);let c=e.signal,l,u=e.timeout??3e4;if(u>0&&!c){let e=new AbortController;c=e.signal,l=setTimeout(()=>e.abort(),u)}let d=[`GET`,`DELETE`].includes(i)?void 0:Ct(e.data,a);d instanceof FormData&&delete a[`Content-Type`];try{let n=await fetch(t,{method:i,headers:a,body:d,signal:c,credentials:e.credentials??`same-origin`});l&&clearTimeout(l);let r;r=n.headers.get(`content-type`)?.includes(`application/json`)?await n.json():await n.text();let o={status:n.status,data:r,headers:wt(n.headers)};if(!n.ok)throw new ht(o);return o}catch(e){throw l&&clearTimeout(l),e instanceof ht?e:e instanceof DOMException&&e.name===`AbortError`?new gt:e instanceof TypeError?new _t(e.message):e}}}}var Et=Tt(),Dt=Et,Ot=void 0,kt=void 0,At=`same-origin`,jt=e=>`${e.method}:${e.baseURL??Ot??``}${e.url}`,Mt=e=>e.status===204&&e.headers[`precognition-success`]===`true`,Nt={},M={get:(e,t={},n={})=>Ft(Pt(`get`,e,t,n)),post:(e,t={},n={})=>Ft(Pt(`post`,e,t,n)),patch:(e,t={},n={})=>Ft(Pt(`patch`,e,t,n)),put:(e,t={},n={})=>Ft(Pt(`put`,e,t,n)),delete:(e,t={},n={})=>Ft(Pt(`delete`,e,t,n)),useHttpClient(e){return Dt=e,M},withBaseURL(e){return Ot=e,M},withTimeout(e){return kt=e,M},withCredentials(e){return At=typeof e==`string`?e:e?`include`:`omit`,M},fingerprintRequestsUsing(e){return jt=e===null?()=>null:e,M},determineSuccessUsing(e){return Mt=e,M},withXsrfCookieName(e){return Et.setXsrfCookieName(e),M},withXsrfHeaderName(e){return Et.setXsrfHeaderName(e),M}},Pt=(e,t,n,r)=>({url:t,method:e,...r,...[`get`,`delete`].includes(e)?{params:dt({},n,r?.params)}:{data:dt({},n,r?.data)}}),Ft=(e={})=>{let t=[It,Rt,zt].reduce((e,t)=>t(e),e);return(t.onBefore??(()=>!0))()===!1?Promise.resolve(null):((t.onStart??(()=>null))(),Dt.request({method:t.method,url:t.url,baseURL:t.baseURL??Ot,data:t.data,params:t.params,headers:t.headers,signal:t.signal,timeout:t.timeout,credentials:At}).then(async e=>{t.precognitive&&Bt(e);let n=e.status,r=e;return t.precognitive&&t.onPrecognitionSuccess&&Mt(e)&&(r=await Promise.resolve(t.onPrecognitionSuccess(e)??r)),t.onSuccess&&Lt(n)&&(r=await Promise.resolve(t.onSuccess(r)??r)),(Ht(t,n)??(e=>e))(r)??r},e=>{if(Vt(e))return Promise.reject(e);let n=e;return t.precognitive&&Bt(n.response),(Ht(t,n.response.status)??((e,t)=>Promise.reject(t)))(n.response,n)}).finally(t.onFinish??(()=>null)))},It=e=>{let t=e.only??e.validate;return{...e,timeout:e.timeout??kt,precognitive:e.precognitive!==!1,fingerprint:e.fingerprint===void 0?jt(e,Dt):e.fingerprint,headers:{...e.headers,Accept:`application/json`,"Content-Type":Ut(e),...e.precognitive===!1?{}:{Precognition:!0},...t?{"Precognition-Validate-Only":Array.from(t).join()}:{}}}},Lt=e=>e>=200&&e<300,Rt=e=>typeof e.fingerprint==`string`?(Nt[e.fingerprint]?.abort(),delete Nt[e.fingerprint],e):e,zt=e=>typeof e.fingerprint!=`string`||e.signal||!e.precognitive?e:(Nt[e.fingerprint]=new AbortController,{...e,signal:Nt[e.fingerprint].signal}),Bt=e=>{if(e.headers?.precognition!==`true`)throw Error(`Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.`)},Vt=e=>!(e instanceof ht)||typeof e.response?.status!=`number`,Ht=(e,t)=>({401:e.onUnauthorized,403:e.onForbidden,404:e.onNotFound,409:e.onConflict,422:e.onValidationError,423:e.onLocked})[t],Ut=e=>e.headers?.[`Content-Type`]??e.headers?.[`Content-type`]??e.headers?.[`content-type`]??(mt(e.data)?`multipart/form-data`:`application/json`),Wt=(e,t)=>{if(!e.includes(`*`))return[e];let n=e.split(`.`),r=[``];for(let e of n)if(e===`*`){let e=[];for(let n of r){let r=n?A(t,n):t;if(Array.isArray(r))for(let t=0;tt?`${t}.${e}`:e);return r},Gt=(e,t)=>t.includes(`*`)?RegExp(`^`+t.replace(/\./g,`\\.`).replace(/\*/g,`[^.]+`)+`$`).test(e):e===t,Kt=(e,t)=>Object.fromEntries(Object.entries(e).filter(([e])=>!t.some(t=>Gt(e,t)))),qt=(e,t={})=>{let n={errorsChanged:[],touchedChanged:[],validatingChanged:[],validatedChanged:[]},r=!1,i=!1,a=e=>e===i?[]:(i=e,n.validatingChanged),o=[],s=e=>{let t=[...new Set(e)];return o.length!==t.length||!t.every(e=>o.includes(e))?(o=t,n.validatedChanged):[]},c=()=>o.filter(e=>d[e]===void 0),l=[],u=e=>{let t=[...new Set(e)];return l.length!==t.length||!t.every(e=>l.includes(e))?(l=t,n.touchedChanged):[]},d={},f=e=>{let t=Yt(e);return k(d,t)?[]:(d=t,n.errorsChanged)},p=e=>{let t={...d};return delete t[Xt(e)],f(t)},m=()=>Object.keys(d).length>0,h=1500,g=e=>{h=e,S.cancel(),S=x()},_=t,v=null,y=[],b=null,x=()=>ct(t=>{e({get:(e,n={},r={})=>M.get(e,T(n),C(r,t,n)),post:(e,n={},r={})=>M.post(e,T(n),C(r,t,n)),patch:(e,n={},r={})=>M.patch(e,T(n),C(r,t,n)),put:(e,n={},r={})=>M.put(e,T(n),C(r,t,n)),delete:(e,n={},r={})=>M.delete(e,T(n),C(r,t,n))}).catch(e=>e instanceof gt||e instanceof ht&&e.response?.status===422?null:Promise.reject(e))},h,{leading:!0,trailing:!0}),S=x(),C=(e,t,n={})=>{let r={...e,...t},i=Array.from(r.only??r.validate??l);return{...t,...dt({},e,t),only:i,timeout:r.timeout??5e3,onValidationError:(e,t)=>([...s([...o,...i]),...f(dt(Kt({...d},i),e.data.errors))].forEach(e=>e()),r.onValidationError?r.onValidationError(e,t):Promise.reject(t)),onSuccess:e=>(s([...o,...i]).forEach(e=>e()),r.onSuccess?r.onSuccess(e):e),onPrecognitionSuccess:e=>([...s([...o,...i]),...f(Kt({...d},i))].forEach(e=>e()),r.onPrecognitionSuccess?r.onPrecognitionSuccess(e):e),onBefore:()=>{let e=l.some(e=>e.includes(`*`)),t=e?[...new Set(l.flatMap(e=>Wt(e,n)))]:l;return r.onBeforeValidation&&r.onBeforeValidation({data:n,touched:t},{data:_,touched:y})===!1||(r.onBefore||(()=>!0))()===!1?!1:(e&&u(t).forEach(e=>e()),b=l,v=n,!0)},onStart:()=>{a(!0).forEach(e=>e()),(r.onStart??(()=>null))()},onFinish:()=>{a(!1).forEach(e=>e()),y=b,_=v,b=v=null,(r.onFinish??(()=>null))()}}},w=(e,t,n)=>{if(e===void 0){let e=Array.from(n?.only??n?.validate??[]);u([...l,...e]).forEach(e=>e()),S(n??{});return}if(pt(t)&&!r){console.warn(`Precognition file validation is not active. Call the "validateFiles" function on your form to enable it.`);return}e=Xt(e),(e.includes(`*`)||A(_,e)!==t)&&(u([e,...l]).forEach(e=>e()),S(n??{}))},T=e=>r===!1?Zt(e):e,E={touched:()=>l,validate(e,t,n){return typeof e==`object`&&!(`target`in e)&&(n=e,e=t=void 0),w(e,t,n),E},touch(e){let t=Array.isArray(e)?e:[Xt(e)];return u([...l,...t]).forEach(e=>e()),E},validating:()=>i,valid:c,errors:()=>d,hasErrors:m,setErrors(e){return f(e).forEach(e=>e()),E},forgetError(e){return p(e).forEach(e=>e()),E},defaults(e){return t=e,_=e,E},reset(...e){if(e.length===0)u([]).forEach(e=>e());else{let n=[...l];e.forEach(e=>{n.includes(e)&&n.splice(n.indexOf(e),1),j(_,e,A(t,e))}),u(n).forEach(e=>e())}return E},setTimeout(e){return g(e),E},on(e,t){return n[e].push(t),E},validateFiles(){return r=!0,E},withoutFileValidation(){return r=!1,E}};return E},Jt=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:Array.isArray(e[n])?e[n][0]:e[n]}),{}),Yt=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:typeof e[n]==`string`?[e[n]]:e[n]}),{}),Xt=e=>typeof e==`string`?e:e.target.name,Zt=e=>{let t={...e};return Object.keys(t).forEach(e=>{let n=t[e];if(n!==null){if(pt(n)){delete t[e];return}if(Array.isArray(n)){t[e]=Object.values(Zt({...n}));return}if(typeof n==`object`){t[e]=Zt(t[e]);return}}}),t},Qt=`modulepreload`,$t=function(e){return`/build/`+e},en={},N=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=$t(t,n),t=s(t),t in en)return;en[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Qt,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},tn=new class{config={};defaults;constructor(e){this.defaults=e}extend(e){return e&&(this.defaults={...this.defaults,...e}),this}replace(e){this.config=e}get(e){return Qe(this.config,e)?A(this.config,e):A(this.defaults,e)}set(e,t){typeof e==`string`?j(this.config,e,t):Object.entries(e).forEach(([e,t])=>{j(this.config,e,t)})}}({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0,withAllErrors:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function nn(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function P(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var rn=e=>P(`before`,{cancelable:!0,detail:{visit:e}}),an=(e,{page:t,visitId:n}={})=>P(`error`,{detail:{errors:e,page:t,visitId:n}}),on=e=>P(`networkError`,{cancelable:!0,detail:{error:e}}),sn=e=>P(`finish`,{detail:{visit:e}}),cn=e=>P(`httpException`,{cancelable:!0,detail:{response:e}}),ln=e=>P(`beforeUpdate`,{detail:{page:e}}),un=(e,{cached:t=!1,visitId:n}={})=>P(`navigate`,{detail:{page:e,cached:t,visitId:n}}),dn=(e,{replace:t,visitId:n})=>P(`clientVisit`,{detail:{page:e,replace:t,visitId:n}}),fn=e=>P(`progress`,{detail:{progress:e}}),pn=e=>P(`start`,{detail:{visit:e}}),mn=(e,{visitId:t}={})=>P(`success`,{detail:{page:e,visitId:t}}),hn=(e,t)=>P(`prefetched`,{detail:{fetchedAt:Date.now(),response:e,visit:t}}),gn=e=>P(`prefetching`,{detail:{visit:e}}),_n=e=>P(`flash`,{detail:{flash:e}}),vn=(e,t)=>P(`location`,{cancelable:!0,detail:{url:e,versionChange:t}}),F=class{static locationVisitKey=`inertiaLocationVisit`;static set(e,t){typeof window<`u`&&window.sessionStorage.setItem(e,JSON.stringify(t))}static get(e){if(typeof window<`u`)return JSON.parse(window.sessionStorage.getItem(e)||`null`)}static merge(e,t){let n=this.get(e);n===null?this.set(e,t):this.set(e,{...n,...t})}static remove(e){typeof window<`u`&&window.sessionStorage.removeItem(e)}static removeNested(e,t){let n=this.get(e);n!==null&&(delete n[t],this.set(e,n))}static exists(e){try{return this.get(e)!==null}catch{return!1}}static clear(){typeof window<`u`&&window.sessionStorage.clear()}},yn=async e=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);let t=wn(),n=await Dn(await On());if(!n)throw Error(`Unable to encrypt history`);return await Sn(t,n,e)},bn={key:`historyKey`,iv:`historyIv`},xn=async e=>{let t=wn(),n=await On();if(!n)throw Error(`Unable to decrypt history`);return await Cn(t,n,e)},Sn=async(e,t,n)=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=new TextEncoder,i=JSON.stringify(n),a=new Uint8Array(i.length*3),o=r.encodeInto(i,a);return window.crypto.subtle.encrypt({name:`AES-GCM`,iv:e},t,a.subarray(0,o.written))},Cn=async(e,t,n)=>{if(window.crypto.subtle===void 0)return console.warn(`Decryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=await window.crypto.subtle.decrypt({name:`AES-GCM`,iv:e},t,n);return JSON.parse(new TextDecoder().decode(r))},wn=()=>{let e=F.get(bn.iv);if(e)return new Uint8Array(e);let t=window.crypto.getRandomValues(new Uint8Array(12));return F.set(bn.iv,Array.from(t)),t},Tn=async()=>window.crypto.subtle===void 0?(console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(null)):window.crypto.subtle.generateKey({name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]),En=async e=>{if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve();let t=await window.crypto.subtle.exportKey(`raw`,e);F.set(bn.key,Array.from(new Uint8Array(t)))},Dn=async e=>{if(e)return e;let t=await Tn();return t?(await En(t),t):null},On=async()=>{let e=F.get(bn.key);return e?await window.crypto.subtle.importKey(`raw`,new Uint8Array(e),{name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]):null},kn=e=>{let t={};for(let n of Object.keys(e))e[n]!==void 0&&(t[n]=e[n]);return t},An=(e,t,n)=>{if(e===t)return!0;for(let r in e)if(!n.includes(r)&&e[r]!==t[r]&&!jn(e[r],t[r]))return!1;for(let r in t)if(!n.includes(r)&&!(r in e))return!1;return!0},jn=(e,t)=>{switch(typeof e){case`object`:return An(e,t,[]);case`function`:return e.toString()===t.toString();default:return e===t}},Mn=(e,t,n)=>{let r=He(t);if(r.length===0)return e;let i=(e,t)=>{if(t===r.length)return n;let a=r[t],o=Array.isArray(e)?[...e]:e&&typeof e==`object`?{...e}:/^(?:0|[1-9]\d*)$/.test(a)?[]:{};return o[a]=i(e?.[a],t+1),o};return i(e,0)},Nn={ms:1,s:1e3,m:6e4,h:36e5,d:864e5},Pn=e=>{if(typeof e==`number`)return e;for(let[t,n]of Object.entries(Nn))if(e.endsWith(t))return parseFloat(e)*n;return parseInt(e)},I=new class{cached=[];inFlightRequests=[];removalTimers=[];currentUseId=null;add(e,t,{cacheFor:n,cacheTags:r}){if(this.findInFlight(e))return Promise.resolve();let i=this.findCached(e);if(!e.fresh&&i&&i.staleTimestamp>Date.now())return Promise.resolve();let[a,o]=this.extractStaleValues(n),s=new Promise((n,r)=>{t({...e,onCancel:()=>{this.remove(e),e.onCancel(),r()},onError:t=>{this.remove(e),e.onError(t),r()},onPrefetching(t){e.onPrefetching(t)},onPrefetched(t,n){e.onPrefetched(t,n)},onPrefetchResponse(e){n(e)},onPrefetchError(t){I.removeFromInFlight(e),r(t)}})}).then(t=>{this.remove(e);let n=t.getPageResponse();B.mergeOncePropsIntoResponse(n),this.cached.push({params:{...e},staleTimestamp:Date.now()+a,expiresAt:Date.now()+o,response:s,singleUse:o===0,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(r)?r:[r]});let i=this.getShortestOncePropTtl(n);return this.scheduleForRemoval(e,i?Math.min(o,i):o),this.removeFromInFlight(e),t.handlePrefetch(),t});return this.inFlightRequests.push({params:{...e},response:s,staleTimestamp:null,inFlight:!0}),s}removeAll(){this.cached=[],this.removalTimers.forEach(e=>{clearTimeout(e.timer)}),this.removalTimers=[]}removeByTags(e){this.cached=this.cached.filter(t=>!t.tags.some(t=>e.includes(t)))}remove(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)),this.clearTimer(e)}removeFromInFlight(e){this.inFlightRequests=this.inFlightRequests.filter(t=>!this.paramsAreEqual(t.params,e))}extractStaleValues(e){let[t,n]=this.cacheForToStaleAndExpires(e);return[Pn(t),Pn(n)]}cacheForToStaleAndExpires(e){if(!Array.isArray(e))return[e,e];switch(e.length){case 0:return[0,0];case 1:return[e[0],e[0]];default:return[e[0],e[1]]}}clearTimer(e){let t=this.removalTimers.find(t=>this.paramsAreEqual(t.params,e));t&&(clearTimeout(t.timer),this.removalTimers=this.removalTimers.filter(e=>e!==t))}scheduleForRemoval(e,t){if(typeof window<`u`&&(this.clearTimer(e),t>0)){let n=window.setTimeout(()=>this.remove(e),t);this.removalTimers.push({params:e,timer:n})}}get(e){return this.findCached(e)||this.findInFlight(e)}use(e,t){let n=`${t.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;this.currentUseId=n;let r={...t,cached:!0};return e.response.then(e=>{if(this.currentUseId===n)return e.mergeParams({...r,onPrefetched:()=>{}}),this.removeSingleUseItems(t),e.handle()})}removeSingleUseItems(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)||!t.singleUse)}findCached(e){return this.cached.find(t=>this.paramsAreEqual(t.params,e))||null}findInFlight(e){return this.inFlightRequests.find(t=>this.paramsAreEqual(t.params,e))||null}withoutPurposePrefetchHeader(e){let t=O(e);return t.headers.Purpose===`prefetch`&&delete t.headers.Purpose,t}paramsAreEqual(e,t){return An(this.withoutPurposePrefetchHeader(e),this.withoutPurposePrefetchHeader(t),[`id`,`showProgress`,`replace`,`prefetch`,`preserveScroll`,`preserveState`,`onBefore`,`onBeforeUpdate`,`onStart`,`onProgress`,`onFinish`,`onCancel`,`onSuccess`,`onError`,`onFlash`,`onPrefetched`,`onCancelToken`,`onPrefetching`,`async`,`viewTransition`,`optimistic`,`component`,`pageProps`,`cached`])}updateCachedOncePropsFromCurrentPage(){this.cached.forEach(e=>{e.response.then(t=>{let n=t.getPageResponse();B.mergeOncePropsIntoResponse(n,{force:!0});for(let[e,t]of Object.entries(n.deferredProps??{})){let r=t.filter(e=>A(n.props,e)===void 0);r.length>0?n.deferredProps[e]=r:delete n.deferredProps[e]}let r=this.getShortestOncePropTtl(n);if(r===null)return;let i=e.expiresAt-Date.now(),a=Math.min(i,r);a>0?this.scheduleForRemoval(e.params,a):this.remove(e.params)})})}getShortestOncePropTtl(e){let t=Object.values(e.onceProps??{}).map(e=>e.expiresAt).filter(e=>!!e);return t.length===0?null:Math.min(...t)-Date.now()}},Fn=e=>{if(e.offsetParent===null)return!1;let t=e.getBoundingClientRect(),n=t.top=0,r=t.left=0;return n&&r},In=e=>{let t=e=>{let t=window.getComputedStyle(e);return t.overflowY===`scroll`?!0:t.overflowY===`auto`?[`visible`,`clip`].includes(t.overflowX)?!0:r(t.maxHeight,e.style.height)||i(e,`height`):!1},n=e=>{let t=window.getComputedStyle(e);return t.overflowX===`scroll`?!0:t.overflowX===`auto`?[`visible`,`clip`].includes(t.overflowY)?!0:r(t.maxWidth,e.style.width)||i(e,`width`):!1},r=(e,t)=>!!(e&&e!==`none`&&e!==`0px`||t&&t!==`auto`&&t!==`0`),i=(e,t)=>{let n=e.parentElement;if(!n)return!1;let r=window.getComputedStyle(n);if([`flex`,`inline-flex`].includes(r.display)){let e=[`column`,`column-reverse`].includes(r.flexDirection);return t===`height`?e:!e}return[`grid`,`inline-grid`].includes(r.display)},a=e?.parentElement;for(;a;){let e=t(a)||n(a);if(window.getComputedStyle(a).display!==`contents`&&e)return a;a=a.parentElement}return null},Ln=(e,t)=>{if(!t)return e.filter(e=>Fn(e));let n=e.indexOf(t),r=[],i=[];for(let t=n;t>=0;t--){let n=e[t];if(Fn(n))r.push(n);else break}for(let t=n+1;t{window.requestAnimationFrame(()=>{t>1?Rn(e,t-1):e()})},zn=e=>{if(typeof window>`u`)return null;let t=document.querySelector(`script[data-page="${e}"][type="application/json"]`);return t?.textContent?JSON.parse(t.textContent):null},Bn=typeof window>`u`,Vn=!Bn&&/Firefox/i.test(window.navigator.userAgent),L=class{static save(){V.saveScrollPositions(this.getScrollRegions())}static getScrollRegions(){return Array.from(this.regions()).map(e=>({top:e.scrollTop,left:e.scrollLeft}))}static regions(){return document.querySelectorAll(`[scroll-region]`)}static scrollToTop(){if(Vn&&getComputedStyle(document.documentElement).scrollBehavior===`smooth`)return Rn(()=>window.scrollTo(0,0),2);window.scrollTo(0,0)}static reset(){(Bn||!window.location.hash)&&this.scrollToTop(),this.regions().forEach(e=>{typeof e.scrollTo==`function`?e.scrollTo(0,0):(e.scrollTop=0,e.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){let e=Bn?null:window.location.hash;e&&setTimeout(()=>{let t=document.getElementById(e.slice(1));t?t.scrollIntoView():this.scrollToTop()})}static restore(e){Bn||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(e)})}static restoreScrollRegions(e){Bn||this.regions().forEach((t,n)=>{let r=e[n];r&&(typeof t.scrollTo==`function`?t.scrollTo(r.left,r.top):(t.scrollTop=r.top,t.scrollLeft=r.left))})}static restoreDocument(){let e=V.getDocumentScrollPosition();window.scrollTo(e.left,e.top)}static onScroll(e){let t=e.target;typeof t.hasAttribute==`function`&&t.hasAttribute(`scroll-region`)&&this.save()}static onWindowScroll(){V.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}},Hn=e=>typeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0;function Un(e){return Hn(e)||e instanceof FormData&&Array.from(e.values()).some(e=>Un(e))||typeof e==`object`&&!!e&&Object.values(e).some(e=>Un(e))}var Wn=e=>e instanceof FormData;function Gn(e,t=new FormData,n=null,r=`brackets`){e||={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&qn(t,Kn(n,i,`indices`),e[i],r);return t}function Kn(e,t,n){return e?n===`brackets`?`${e}[]`:`${e}[${t}]`:t}function qn(e,t,n,r){if(Array.isArray(n))return Array.from(n.keys()).forEach(i=>qn(e,Kn(t,i.toString(),r),n[i],r));if(n instanceof Date)return e.append(t,n.toISOString());if(n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);Gn(n,e,t,r)}function Jn(e){return/\[\d+\]/.test(decodeURIComponent(e.search))}function Yn(e){if(!e||e===`?`)return{};let t={};return e.replace(/^\?/,``).split(`&`).filter(Boolean).forEach(e=>{let[n,r]=Zn(e);$n(t,Qn(n),Qn(r))}),t}function Xn(e,t){let n=[];return tr(e,``,n,t),n.length?`?`+n.join(`&`):``}function Zn(e){let t=e.indexOf(`=`);return t===-1?[e,``]:[e.substring(0,t),e.substring(t+1)]}function Qn(e){return decodeURIComponent(e.replace(/\+/g,` `))}function $n(e,t,n){let r=er(t);if(r.some(e=>e===`__proto__`))return;let i=e;for(;r.length>1;){let e=r.shift(),t=r[0]===``;(typeof i[e]!=`object`||i[e]===null)&&(i[e]=t?[]:{}),i=i[e]}let a=r.shift();a===``&&Array.isArray(i)?i.push(n):i[a]=n}function er(e){let t=[],n=e.split(`[`)[0];n&&t.push(n);let r,i=/\[([^\]]*)\]/g;for(;(r=i.exec(e))!==null;)t.push(r[1]);return t}function tr(e,t,n,r){if(e!==void 0){if(e===null){n.push(`${t}=`);return}if(Array.isArray(e)){e.forEach((e,i)=>{tr(e,r===`indices`?`${t}[${i}]`:`${t}[]`,n,r)});return}if(typeof e==`object`){Object.keys(e).forEach(i=>{tr(e[i],t?`${t}[${i}]`:i,n,r)});return}n.push(`${t}=${encodeURIComponent(String(e))}`)}}function R(e){return new URL(e.toString(),typeof window>`u`?void 0:window.location.toString())}var nr=(e,t,n,r,i)=>{let a=typeof e==`string`?R(e):e;if((Un(t)||r)&&!Wn(t)&&(tn.get(`form.forceIndicesArrayFormatInFormData`)&&(i=`indices`),t=Gn(t,new FormData,null,i)),Wn(t))return[a,t];let[o,s]=rr(n,a,t,i);return[R(o),s]};function rr(e,t,n,r=`brackets`){let i=e===`get`&&!Wn(n)&&Object.keys(n).length>0,a=lr(t.toString()),o=a||t.toString().startsWith(`/`)||t.toString()===``,s=!o&&!t.toString().startsWith(`#`)&&!t.toString().startsWith(`?`),c=/^[.]{1,2}([/]|$)/.test(t.toString()),l=t.toString().includes(`?`)||i,u=t.toString().includes(`#`),d=new URL(t.toString(),typeof window>`u`?`http://localhost`:window.location.toString());if(i){let e=Jn(d)?`indices`:r;d.search=Xn({...Yn(d.search),...n},e)}return[[a?`${d.protocol}//${d.host}`:``,o?d.pathname:``,s?d.pathname.substring(+!c):``,l?d.search:``,u?d.hash:``].join(``),i?{}:n]}function ir(e){return e=new URL(e.href),e.hash=``,e}var ar=(e,t)=>{e.hash&&!t.hash&&ir(e).href===t.href&&(t.hash=e.hash)},or=(e,t)=>ir(e).href===ir(t).href,sr=(e,t)=>e.origin===t.origin&&e.pathname===t.pathname;function z(e){return typeof e==`object`&&!!e&&e!==void 0&&`url`in e&&`method`in e}function cr(e){return e.component?typeof e.component==`string`?e.component:(console.error(`The "component" property on the URL method pair received multiple components (${Object.keys(e.component).join(`, `)}), but only a single component string is supported for instant visits. Use the withComponent() method to specify which component to use.`),null):null}function lr(e){return/^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(e)}function ur(e,t){let n=typeof e==`string`?R(e):e;return t?`${n.protocol}//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`}var B=new class{page;swapComponent;resolveComponent;onFlashCallback;componentId={};listeners=[];isFirstPageLoad=!0;cleared=!1;pendingDeferredProps=null;historyQuotaExceeded=!1;optimisticBaseline={};pendingOptimistics=[];optimisticCounter=0;init({initialPage:e,swapComponent:t,resolveComponent:n,onFlash:r}){return this.page={...e,flash:e.flash??{},rescuedProps:e.rescuedProps??[]},this.swapComponent=t,this.resolveComponent=n,this.onFlashCallback=r,H.on(`historyQuotaExceeded`,()=>{this.historyQuotaExceeded=!0}),this}set(e,{replace:t=!1,preserveScroll:n=!1,preserveState:r=!1,viewTransition:i=!1,cached:a=!1,initialRender:o=!1,visitId:s}={}){Object.keys(e.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:e.deferredProps,component:e.component,url:e.url},e.initialDeferredProps===void 0&&(e.initialDeferredProps=e.deferredProps)),this.componentId={};let c=this.componentId;return e.clearHistory&&V.clear(),this.resolve(e.component,e).then(l=>{if(c!==this.componentId)return;e.rememberedState??={};let u=typeof window>`u`,d=u?new URL(e.url):window.location,f=!u&&n?L.getScrollRegions():[];t||=or(R(e.url),d);let p={...e,flash:{}};return new Promise(e=>t?V.replaceState(p,e):V.pushState(p,e)).then(()=>{let c=!this.isTheSame(e);if(!c&&Object.keys(e.props.errors||{}).length>0&&(i=!1),this.page=e,this.cleared=!1,this.hasOnceProps()&&I.updateCachedOncePropsFromCurrentPage(),c&&this.fireEventsFor(`newComponent`),this.isFirstPageLoad&&this.fireEventsFor(`firstLoad`),this.isFirstPageLoad=!1,this.historyQuotaExceeded){this.historyQuotaExceeded=!1;return}return this.swap({component:l,page:e,preserveState:r,viewTransition:i,initialRender:o}).then(()=>{n?window.requestAnimationFrame(()=>L.restoreScrollRegions(f)):L.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===e.component&&this.pendingDeferredProps.url===e.url&&H.fireInternalEvent(`loadDeferredProps`,this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,t||un(e,{cached:a,visitId:s})})})})}setQuietly(e,{preserveState:t=!1}={}){return this.resolve(e.component,e).then(n=>(this.page=e,this.cleared=!1,V.setCurrent(e),this.swap({component:n,page:e,preserveState:t,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}getWithoutFlashData(){return{...this.page,flash:{}}}hasOnceProps(){return Object.keys(this.page.onceProps??{}).length>0}merge(e){this.page={...this.page,...e}}setPropsQuietly(e){return this.page={...this.page,props:e},this.resolve(this.page.component,this.page).then(e=>this.swap({component:e,page:this.page,preserveState:!0,viewTransition:!1}))}setFlash(e){this.page={...this.page,flash:e},this.onFlashCallback?.(e)}setUrlHash(e){this.page.url.includes(e)||(this.page.url+=e)}remember(e){this.page.rememberedState=e}swap({component:e,page:t,preserveState:n,viewTransition:r,initialRender:i=!1}){let a=()=>this.swapComponent({component:e,page:t,preserveState:n,initialRender:i});if(!r||!document?.startViewTransition||document.visibilityState===`hidden`)return a();let o=typeof r==`boolean`?()=>null:r,s=e=>{e.catch(e=>{if(!(e instanceof DOMException))throw e})};return new Promise(e=>{let t=document.startViewTransition(()=>a().then(e));s(t.ready),s(t.finished),s(t.updateCallbackDone),o(t)})}resolve(e,t){return Promise.resolve(this.resolveComponent(e,t))}nextOptimisticId(){return++this.optimisticCounter}setBaseline(e,t){e in this.optimisticBaseline||(this.optimisticBaseline[e]=t)}updateBaseline(e,t){e in this.optimisticBaseline&&(this.optimisticBaseline[e]=t)}hasBaseline(e){return e in this.optimisticBaseline}registerOptimistic(e,t){this.pendingOptimistics.push({id:e,callback:t})}unregisterOptimistic(e){this.pendingOptimistics=this.pendingOptimistics.filter(t=>t.id!==e)}replayOptimistics(){let e=Object.keys(this.optimisticBaseline);if(e.length===0)return{};let t=O(this.page.props);for(let n of e)t[n]=O(this.optimisticBaseline[n]);for(let{callback:e}of this.pendingOptimistics){let n=e(O(t));n&&Object.assign(t,n)}let n={};for(let r of e)n[r]=t[r];return n}pendingOptimisticCount(){return this.pendingOptimistics.length}clearOptimisticState(){this.optimisticBaseline={},this.pendingOptimistics=[]}isTheSame(e){return this.page.component===e.component}on(e,t){return this.listeners.push({event:e,callback:t}),()=>{this.listeners=this.listeners.filter(n=>n.event!==e&&n.callback!==t)}}fireEventsFor(e){this.listeners.filter(t=>t.event===e).forEach(e=>e.callback())}mergeOncePropsIntoResponse(e,{force:t=!1}={}){Object.entries(e.onceProps??{}).forEach(([n,r])=>{let i=this.page.onceProps?.[n];i!==void 0&&(t||A(e.props,r.prop)===void 0)&&(j(e.props,r.prop,A(this.page.props,i.prop)),e.onceProps[n].expiresAt=i.expiresAt)})}},dr=class{items=[];processingPromise=null;add(e){return this.items.push(e),this.process()}process(){return this.processingPromise??=this.processNext().finally(()=>{this.processingPromise=null}),this.processingPromise}processNext(){let e=this.items.shift();return e?Promise.resolve(e()).then(()=>this.processNext()):Promise.resolve()}},fr=typeof window>`u`,pr=new dr,mr=!fr&&/CriOS/.test(window.navigator.userAgent),hr=class{rememberedState=`rememberedState`;scrollRegions=`scrollRegions`;preserveUrl=!1;current={};initialState=null;remember(e,t){this.replaceState({...B.getWithoutFlashData(),rememberedState:{...B.get()?.rememberedState??{},[t]:e}})}restore(e){if(!fr)return this.current[this.rememberedState]?.[e]===void 0?this.initialState?.[this.rememberedState]?.[e]:this.current[this.rememberedState]?.[e]}pushState(e,t=null){if(!fr){if(this.preserveUrl){t&&t();return}this.current=e,pr.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doPushState({page:n},e.url).then(()=>t?.());return mr?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}clonePageProps(e){try{return structuredClone(e.props),e}catch{return{...e,props:O(e.props)}}}getPageData(e){let t=this.clonePageProps(e);return new Promise(n=>e.encryptHistory?yn(t).then(n):n(t))}processQueue(){return pr.process()}decrypt(e=null){if(fr)return Promise.resolve(e??B.get());let t=e??window.history.state?.page;return this.decryptPageData(t).then(e=>{if(!e)throw Error(`Unable to decrypt history`);return this.initialState===null?this.initialState=e??void 0:this.current=e??{},e})}decryptPageData(e){return e instanceof ArrayBuffer?xn(e):Promise.resolve(e)}saveScrollPositions(e){pr.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!k(this.getScrollRegions(),e))return this.doReplaceState({page:window.history.state.page,scrollRegions:e})}))}saveDocumentScrollPosition(e){pr.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!k(this.getDocumentScrollPosition(),e))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:e})}))}getScrollRegions(){return window.history.state?.scrollRegions||[]}getDocumentScrollPosition(){return window.history.state?.documentScrollPosition||{top:0,left:0}}replaceState(e,t=null){if(k(this.current,e)){t&&t();return}let{flash:n,...r}=e;if(B.merge(r),!fr){if(this.preserveUrl){t&&t();return}this.current=e,pr.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doReplaceState({page:n},e.url).then(()=>t?.());return mr?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}isHistoryThrottleError(e){return e instanceof Error&&e.name===`SecurityError`&&(e.message.includes(`history.pushState`)||e.message.includes(`history.replaceState`))}isQuotaExceededError(e){return e instanceof Error&&e.name===`QuotaExceededError`}withThrottleProtection(e){return Promise.resolve().then(()=>{try{return e()}catch(e){if(!this.isHistoryThrottleError(e))throw e;console.error(e.message)}})}doReplaceState(e,t){return this.withThrottleProtection(()=>{window.history.replaceState({...e,scrollRegions:e.scrollRegions??window.history.state?.scrollRegions,documentScrollPosition:e.documentScrollPosition??window.history.state?.documentScrollPosition},``,t)})}doPushState(e,t){return this.withThrottleProtection(()=>{try{window.history.pushState(e,``,t)}catch(e){if(!this.isQuotaExceededError(e))throw e;H.fireInternalEvent(`historyQuotaExceeded`,t)}})}getState(e,t){return this.current?.[e]??t}deleteState(e){this.current[e]!==void 0&&(delete this.current[e],this.replaceState(this.current))}clearInitialState(e){this.initialState&&this.initialState[e]!==void 0&&delete this.initialState[e]}browserHasHistoryEntry(){return!fr&&!!window.history.state?.page}clear(){F.remove(bn.key),F.remove(bn.iv)}setCurrent(e){this.current=e}isValidState(e){return!!e.page}getAllState(){return this.current}};typeof window<`u`&&window.history.scrollRestoration&&(window.history.scrollRestoration=`manual`);var V=new hr,H=new class{internalListeners=[];init(){typeof window<`u`&&(window.addEventListener(`popstate`,this.handlePopstateEvent.bind(this)),window.addEventListener(`pageshow`,this.handlePageshowEvent.bind(this)),window.addEventListener(`scroll`,nn(L.onWindowScroll.bind(L),100),!0)),typeof document<`u`&&document.addEventListener(`scroll`,nn(L.onScroll.bind(L),100),!0)}onGlobalEvent(e,t){return this.registerListener(`inertia:${e}`,(e=>{let n=t(e);e.cancelable&&!e.defaultPrevented&&n===!1&&e.preventDefault()}))}on(e,t){return this.internalListeners.push({event:e,listener:t}),()=>{this.internalListeners=this.internalListeners.filter(e=>e.listener!==t)}}onMissingHistoryItem(){B.clear(),this.fireInternalEvent(`missingHistoryItem`)}fireInternalEvent(e,...t){this.internalListeners.filter(t=>t.event===e).forEach(e=>e.listener(...t))}registerListener(e,t){return document.addEventListener(e,t),()=>document.removeEventListener(e,t)}handlePageshowEvent(e){e.persisted&&V.decrypt().catch(()=>this.onMissingHistoryItem())}handlePopstateEvent(e){let t=e.state||null;if(t===null){let e=R(B.get().url);e.hash=window.location.hash,V.replaceState({...B.getWithoutFlashData(),url:e.href}),L.reset();return}if(!V.isValidState(t))return this.onMissingHistoryItem();V.decrypt(t.page).then(e=>{if(B.get().version!==e.version){this.onMissingHistoryItem();return}X.cancelAll({prefetch:!1}),B.setQuietly(e,{preserveState:!1}).then(()=>{L.restore(V.getScrollRegions()),un(B.get());let t={},n=B.get().props;for(let[r,i]of Object.entries(e.initialDeferredProps??e.deferredProps??{})){let e=i.filter(e=>A(n,e)===void 0);e.length>0&&(t[r]=e)}Object.keys(t).length>0&&this.fireInternalEvent(`loadDeferredProps`,t)})}).catch(()=>{this.onMissingHistoryItem()})}},gr=new class{type;constructor(){this.type=this.resolveType()}resolveType(){return typeof window>`u`?`navigate`:window.performance?.getEntriesByType(`navigation`)[0]?.type??`navigate`}get(){return this.type}isBackForward(){return this.type===`back_forward`}isReload(){return this.type===`reload`}};function _r(){let e=typeof window<`u`?window.crypto:void 0;if(e?.randomUUID)return e.randomUUID();let t=()=>e?.getRandomValues?e.getRandomValues(new Uint8Array(1))[0]:Math.floor(Math.random()*256);return`10000000-1000-4000-8000-100000000000`.replace(/[018]/g,e=>(+e^t()&15>>e/4).toString(16))}var vr=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(e=>e.bind(this)())}static clearRememberedStateOnReload(){gr.isReload()&&(V.deleteState(V.rememberedState),V.clearInitialState(V.rememberedState))}static handleBackForward(){if(!gr.isBackForward()||!V.browserHasHistoryEntry())return!1;let e=V.getScrollRegions();return V.decrypt().then(t=>{let n=_r();B.set(t,{preserveScroll:!0,preserveState:!0,visitId:n}).then(()=>{L.restore(e),un(B.get(),{visitId:n})})}).catch(()=>{H.onMissingHistoryItem()}),!0}static handleLocation(){if(!F.exists(F.locationVisitKey))return!1;let e=F.get(F.locationVisitKey)||{};return F.remove(F.locationVisitKey),typeof window<`u`&&B.setUrlHash(window.location.hash),V.decrypt(B.get()).then(()=>{let t=_r(),n=V.getState(V.rememberedState,{}),r=V.getScrollRegions();B.remember(n),B.set(B.get(),{preserveScroll:e.preserveScroll,preserveState:!0,initialRender:!0,visitId:t}).then(()=>{e.preserveScroll&&L.restore(r),this.fireInitialEvents(t)})}).catch(()=>{H.onMissingHistoryItem()}),!0}static handleDefault(){typeof window<`u`&&B.setUrlHash(window.location.hash);let e=_r();B.set(B.get(),{preserveScroll:!0,preserveState:!0,initialRender:!0,visitId:e}).then(()=>{gr.isReload()?L.restore(V.getScrollRegions()):L.scrollToAnchor(),this.fireInitialEvents(e)})}static fireInitialEvents(e){let t=B.get();un(t,{visitId:e}),Object.keys(t.flash).length>0&&queueMicrotask(()=>_n(t.flash))}},yr=class{intervalId=null;timeoutId=null;throttle=!1;keepAlive=!1;cb;interval;cbCount=0;mode;inFlight=!1;currentCancel=null;stopped=!0;instanceId=0;constructor(e,t,n){this.keepAlive=n.keepAlive??!1,this.mode=n.mode??`overlap`,this.cb=t,this.interval=e,(n.autoStart??!0)&&this.start()}stop(){this.stopped=!0,this.instanceId++,this.inFlight=!1,this.currentCancel=null,this.intervalId&&=(clearInterval(this.intervalId),null),this.timeoutId&&=(clearTimeout(this.timeoutId),null)}start(){if(typeof window<`u`){if(this.stop(),this.stopped=!1,this.mode===`rest`){this.scheduleNext();return}this.intervalId=window.setInterval(()=>this.tick(),this.interval)}}isInBackground(e){this.throttle=!this.keepAlive&&e,this.throttle&&(this.cbCount=0)}scheduleNext(){this.stopped||(this.timeoutId=window.setTimeout(()=>{this.timeoutId=null,this.tick()},this.interval))}tick(){!this.throttle||this.cbCount%10==0?this.fire():this.mode===`rest`&&this.scheduleNext(),this.throttle&&this.cbCount++}fire(){this.inFlight&&this.mode===`cancel`&&this.currentCancel?.();let e=this.instanceId;this.cb({onStart:t=>{e===this.instanceId&&(this.inFlight=!0,this.currentCancel=t)},onFinish:()=>{e===this.instanceId&&(this.inFlight=!1,this.currentCancel=null,this.mode===`rest`&&this.scheduleNext())}})}},br=new class{polls=[];constructor(){this.setupVisibilityListener()}get count(){return this.polls.length}add(e,t,n){let r=new yr(e,t,n);return this.polls.push(r),{stop:()=>r.stop(),start:()=>r.start(),destroy:()=>{r.stop(),this.polls=this.polls.filter(e=>e!==r)}}}clear(){this.polls.forEach(e=>e.stop()),this.polls=[]}setupVisibilityListener(){typeof document<`u`&&document.addEventListener(`visibilitychange`,()=>{this.polls.forEach(e=>e.isInBackground(document.hidden))},!1)}},U=new class{requestHandlers=[];responseHandlers=[];errorHandlers=[];onRequest(e){return this.requestHandlers.push(e),()=>{this.requestHandlers=this.requestHandlers.filter(t=>t!==e)}}onResponse(e){return this.responseHandlers.push(e),()=>{this.responseHandlers=this.responseHandlers.filter(t=>t!==e)}}onError(e){return this.errorHandlers.push(e),()=>{this.errorHandlers=this.errorHandlers.filter(t=>t!==e)}}async processRequest(e){let t=e;for(let e of this.requestHandlers)t=await e(t);return t}async processResponse(e){let t=e;for(let e of this.responseHandlers)t=await e(t);return t}async processError(e){for(let t of this.errorHandlers)await t(e)}},xr=class extends Error{code;url;constructor(e,t,n){super(n?`${e} (${n})`:e),this.name=`HttpError`,this.code=t,this.url=n}},Sr=class extends xr{response;constructor(e,t,n){super(e,`ERR_HTTP_RESPONSE`,n),this.name=`HttpResponseError`,this.response=t}},Cr=class extends xr{constructor(e=`Request was cancelled`,t){super(e,`ERR_CANCELLED`,t),this.name=`HttpCancelledError`}},wr=class extends xr{cause;constructor(e,t,n){super(e,`ERR_NETWORK`,t),this.name=`HttpNetworkError`,this.cause=n}};function Tr(e){let t=document.cookie.match(RegExp(`(^|;\\s*)(`+e+`)=([^;]*)`));return t?decodeURIComponent(t[3]):null}function Er(e){let t={};return e.getAllResponseHeaders().split(`\r
`).forEach(e=>{let n=e.indexOf(`:`);n>0&&(t[e.slice(0,n).toLowerCase().trim()]=e.slice(n+1).trim())}),t}function Dr(e){return typeof FormData<`u`&&e instanceof FormData}function Or(e){return typeof e==`string`||Dr(e)||typeof Blob<`u`&&e instanceof Blob||typeof ArrayBuffer<`u`&&e instanceof ArrayBuffer||typeof ArrayBuffer<`u`&&ArrayBuffer.isView(e)||typeof URLSearchParams<`u`&&e instanceof URLSearchParams}function kr(e,t){if(!t.headers)return;let n=Dr(t.data);Object.entries(t.headers).forEach(([t,r])=>{(t.toLowerCase()!==`content-type`||!n)&&e.setRequestHeader(t,String(r))})}function Ar(e,t){if(!t||Object.keys(t).length===0)return e;let[n]=rr(`get`,e,t);return n}var jr=class{xsrfCookieName;xsrfHeaderName;constructor(e={}){this.xsrfCookieName=e.xsrfCookieName??`XSRF-TOKEN`,this.xsrfHeaderName=e.xsrfHeaderName??`X-XSRF-TOKEN`}async request(e){let t=await U.processRequest(e);try{let e=await this.doRequest(t);return await U.processResponse(e)}catch(e){throw(e instanceof Sr||e instanceof wr||e instanceof Cr)&&await U.processError(e),e}}doRequest(e){return new Promise((t,n)=>{let r=new XMLHttpRequest,i=Ar(e.url,e.params);r.open(e.method.toUpperCase(),i,!0);let a=Tr(this.xsrfCookieName);a&&r.setRequestHeader(this.xsrfHeaderName,a),Object.keys(e.headers??{}).some(e=>e.toLowerCase()===`x-requested-with`)||r.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`);let o=null;e.data!==null&&e.data!==void 0&&(Or(e.data)?o=e.data:typeof e.data==`object`?(o=JSON.stringify(e.data),!e.headers?.[`Content-Type`]&&!e.headers?.[`content-type`]&&r.setRequestHeader(`Content-Type`,`application/json`)):o=String(e.data)),kr(r,e),e.onUploadProgress&&(r.upload.onprogress=t=>{let n=t.lengthComputable?t.loaded/t.total:void 0;e.onUploadProgress({progress:n,percentage:n?Math.round(n*100):0,loaded:t.loaded,total:t.lengthComputable?t.total:void 0})}),e.signal&&e.signal.addEventListener(`abort`,()=>r.abort()),r.onabort=()=>n(new Cr(`Request was cancelled`,e.url)),r.onerror=()=>n(new wr(`Network error`,e.url)),r.onload=()=>{let i={status:r.status,data:r.responseText,headers:Er(r)};r.status>=400?n(new Sr(`Request failed with status ${r.status}`,i,e.url)):t(i)},r.send(o)})}},Mr=new jr;function Nr(e){return!(`request`in e)}var Pr={getClient(){return Mr},setClient(e){if(!Nr(e)){Mr=e;return}Mr=new jr(e),e.xsrfCookieName&&M.withXsrfCookieName(e.xsrfCookieName),e.xsrfHeaderName&&M.withXsrfHeaderName(e.xsrfHeaderName)},onRequest:U.onRequest.bind(U),onResponse:U.onResponse.bind(U),onError:U.onError.bind(U),processRequest:U.processRequest.bind(U),processResponse:U.processResponse.bind(U),processError:U.processError.bind(U)},Fr=new class{requestHandlers=[];responseHandlers=[];onVisitRequest(e){return this.requestHandlers.push(e),()=>{this.requestHandlers=this.requestHandlers.filter(t=>t!==e)}}onVisitResponse(e){return this.responseHandlers.push(e),()=>{this.responseHandlers=this.responseHandlers.filter(t=>t!==e)}}async processRequest(e,t){let n=t;for(let t of this.requestHandlers)n=await t(e,n);return n}async processResponse(e,t){let n=t;for(let t of this.responseHandlers)n=await t(e,n);return n}};function Ir(){typeof window<`u`&&(window.__inertia_interceptors__=Fr)}var Lr=class e{callbacks=[];params;constructor(e){if(!e.prefetch)this.params=e;else{let t={onBefore:this.wrapCallback(e,`onBefore`),onBeforeUpdate:this.wrapCallback(e,`onBeforeUpdate`),onStart:this.wrapCallback(e,`onStart`),onProgress:this.wrapCallback(e,`onProgress`),onFinish:this.wrapCallback(e,`onFinish`),onCancel:this.wrapCallback(e,`onCancel`),onSuccess:this.wrapCallback(e,`onSuccess`),onError:this.wrapCallback(e,`onError`),onHttpException:this.wrapCallback(e,`onHttpException`),onNetworkError:this.wrapCallback(e,`onNetworkError`),onFlash:this.wrapCallback(e,`onFlash`),onCancelToken:this.wrapCallback(e,`onCancelToken`),onPrefetched:this.wrapCallback(e,`onPrefetched`),onPrefetching:this.wrapCallback(e,`onPrefetching`)};this.params={...e,...t,onPrefetchResponse:e.onPrefetchResponse||(()=>{}),onPrefetchError:e.onPrefetchError||(()=>{})}}}static create(t){return new e(t)}data(){return this.params.method===`get`?null:this.params.data}queryParams(){return this.params.method===`get`?this.params.data:{}}isPartial(){return this.params.only.length>0||this.params.except.length>0||this.params.reset.length>0}isPrefetch(){return this.params.prefetch===!0}isDeferredPropsRequest(){return this.params.deferredProps===!0}isPollRequest(){return this.params.poll===!0}onCancelToken(e){this.params.onCancelToken({cancel:e})}markAsFinished(){this.params.completed=!0,this.params.cancelled=!1,this.params.interrupted=!1}markAsCancelled({cancelled:e=!0,interrupted:t=!1}){this.params.onCancel(),this.params.completed=!1,this.params.cancelled=e,this.params.interrupted=t}wasCancelledAtAll(){return this.params.cancelled||this.params.interrupted}onFinish(){this.params.onFinish(this.params)}onStart(){this.params.onStart(this.params)}onPrefetching(){this.params.onPrefetching(this.params)}onPrefetchResponse(e){this.params.onPrefetchResponse&&this.params.onPrefetchResponse(e)}onPrefetchError(e){this.params.onPrefetchError&&this.params.onPrefetchError(e)}all(){return this.params}headers(){let e={...this.params.headers};this.isPartial()&&(e[`X-Inertia-Partial-Component`]=B.get().component);let t=this.params.only.concat(this.params.reset);return t.length>0&&(e[`X-Inertia-Partial-Data`]=t.join(`,`)),this.params.except.length>0&&(e[`X-Inertia-Partial-Except`]=this.params.except.join(`,`)),this.params.reset.length>0&&(e[`X-Inertia-Reset`]=this.params.reset.join(`,`)),this.params.errorBag&&this.params.errorBag.length>0&&(e[`X-Inertia-Error-Bag`]=this.params.errorBag),e}setPreserveOptions(t){this.params.preserveScroll=e.resolvePreserveOption(this.params.preserveScroll,t),this.params.preserveState=e.resolvePreserveOption(this.params.preserveState,t)}runCallbacks(){this.callbacks.forEach(({name:e,args:t})=>{this.params[e](...t)})}merge(e){this.params={...this.params,...e}}wrapCallback(e,t){return(...n)=>{this.recordCallback(t,n),e[t](...n)}}recordCallback(e,t){this.callbacks.push({name:e,args:t})}static resolvePreserveOption(e,t){return typeof e==`function`?e(t):e===`errors`?Object.keys(t.props.errors||{}).length>0:e}},Rr={createIframeAndPage(e){typeof e==`object`&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.${JSON.stringify(e)}`);let t=document.createElement(`html`);t.innerHTML=e,t.querySelectorAll(`a`).forEach(e=>e.setAttribute(`target`,`_top`));let n=document.createElement(`iframe`);return n.style.backgroundColor=`white`,n.style.borderRadius=`5px`,n.style.width=`100%`,n.style.height=`100%`,n.setAttribute(`sandbox`,`allow-scripts`),{iframe:n,page:t}},show(e){let{iframe:t,page:n}=this.createIframeAndPage(e);t.style.boxSizing=`border-box`,t.style.display=`block`;let r=document.createElement(`dialog`);r.id=`inertia-error-dialog`,Object.assign(r.style,{width:`calc(100vw - 100px)`,height:`calc(100vh - 100px)`,padding:`0`,margin:`auto`,border:`none`,backgroundColor:`transparent`});let i=document.createElement(`style`);i.textContent=`
dialog#inertia-error-dialog::backdrop {
@@ -87,4 +87,4 @@ import{B as e,Ht as t,ct as n,fn as r,ft as i,g as a,gn as o,gt as s,it as c,k a
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
- `,document.head.appendChild(t)},J={configure:Fi,isStarted:Li,done:zi,set:Ii,remove:Ui,start:Ri,status:Ni,show:()=>{if(Pi=!1,K?.isConnected){if(Mi)try{K.showPopover()}catch{}else K.style.display=``}},hide:()=>{if(Pi=!0,K?.isConnected){if(Mi)try{K.hidePopover()}catch{}else K.style.display=`none`}}},Y=new class{hideCount=0;start(){J.start()}reveal(e=!1){this.hideCount=Math.max(0,this.hideCount-1),(e||this.hideCount===0)&&J.show()}hide(){this.hideCount++,J.hide()}set(e){J.set(Math.max(0,Math.min(1,e)))}finish(){J.done()}reset(){J.set(0)}remove(){J.done(),J.remove()}isStarted(){return J.isStarted()}getStatus(){return J.status}};function Yi(e){document.addEventListener(`inertia:start`,t=>Xi(t,e)),document.addEventListener(`inertia:progress`,Zi)}function Xi(e,t){e.detail.visit.showProgress||Y.hide();let n=setTimeout(()=>Y.start(),t);document.addEventListener(`inertia:finish`,e=>Qi(e,n),{once:!0})}function Zi(e){Y.isStarted()&&e.detail.progress?.percentage&&Y.set(Math.max(Y.getStatus(),e.detail.progress.percentage/100*.9))}function Qi(e,t){clearTimeout(t),Y.isStarted()&&(e.detail.visit.completed?Y.finish():e.detail.visit.interrupted?Y.reset():e.detail.visit.cancelled&&Y.remove())}function $i({delay:e=250,color:t=`#29d`,includeCSS:n=!0,showSpinner:r=!1,popover:i=null}={}){Yi(e),J.configure({showSpinner:r,includeCSS:n,color:t,popover:i})}var ea=Symbol(`FormComponentReset`);function ta(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement}function na(e,t){let n=e.value,r=e.checked;switch(e.type.toLowerCase()){case`checkbox`:e.checked=t.includes(e.value);break;case`radio`:e.checked=t[0]===e.value;break;case`file`:e.value=``;break;case`button`:case`submit`:case`reset`:case`image`:break;default:e.value=t[0]!==null&&t[0]!==void 0?String(t[0]):``}return e.value!==n||e.checked!==r}function ra(e,t){let n=e.value,r=Array.from(e.selectedOptions).map(e=>e.value);if(e.multiple){let n=t.map(e=>String(e));Array.from(e.options).forEach(e=>{e.selected=n.includes(e.value)})}else e.value=t[0]===void 0?``:String(t[0]);let i=Array.from(e.selectedOptions).map(e=>e.value);return e.multiple?JSON.stringify(r.sort())!==JSON.stringify(i.sort()):e.value!==n}function ia(e,t){if(e.disabled){if(e instanceof HTMLInputElement){let t=e.value,n=e.checked;switch(e.type.toLowerCase()){case`checkbox`:case`radio`:return e.checked=e.defaultChecked,e.checked!==n;case`file`:return e.value=``,t!==``;case`button`:case`submit`:case`reset`:case`image`:return!1;default:return e.value=e.defaultValue,e.value!==t}}else if(e instanceof HTMLSelectElement){let t=Array.from(e.selectedOptions).map(e=>e.value);Array.from(e.options).forEach(e=>{e.selected=e.defaultSelected});let n=Array.from(e.selectedOptions).map(e=>e.value);return JSON.stringify(t.sort())!==JSON.stringify(n.sort())}else if(e instanceof HTMLTextAreaElement){let t=e.value;return e.value=e.defaultValue,e.value!==t}return!1}if(e instanceof HTMLInputElement)return na(e,t);if(e instanceof HTMLSelectElement)return ra(e,t);if(e instanceof HTMLTextAreaElement){let n=e.value;return e.value=t[0]===void 0?``:String(t[0]),e.value!==n}return!1}function aa(e,t){let n=!1;return e instanceof RadioNodeList||e instanceof HTMLCollection?Array.from(e).forEach((e,r)=>{e instanceof Element&&ta(e)&&(e instanceof HTMLInputElement&&[`checkbox`,`radio`].includes(e.type.toLowerCase())?ia(e,t)&&(n=!0):ia(e,t[r]===void 0?[t[0]??null].filter(Boolean):[t[r]])&&(n=!0))}):ta(e)&&(n=ia(e,t)),n}function oa(e,t,n){if(!e)return;let r=!n||n.length===0;if(r){let r=new FormData(e),i=Array.from(e.elements).map(e=>ta(e)?e.name:``).filter(Boolean);n=[...new Set([...t.keys(),...r.keys(),...i])]}let i=!1;n.forEach(n=>{let r=e.elements.namedItem(n);r&&aa(r,t.getAll(n))&&(i=!0)}),i&&r&&e.dispatchEvent(new CustomEvent(`reset`,{bubbles:!0,cancelable:!0,detail:{[ea]:!0}}))}function sa(e,t,n){return`