diff --git a/CHANGELOG.md b/CHANGELOG.md index 386a0479..24d2e6b5 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.15.1 + +- Texte in Beiträgen und Seiten: sehr lange Wörter oder Zeichenketten ohne Leerzeichen brechen jetzt um, statt über den Rand zu laufen; breite Tabellen lassen sich waagerecht scrollen + ## 0.15.0 - **Beiträge mit dem Baukasten:** Neuigkeiten schreibt man jetzt mit demselben Editor wie Seiten – Text, Bilder, Galerien, Spalten, Tabs, Zitate, Buttons und alle weiteren Blöcke. Titelbild, Titel und Kurztext stehen direkt auf der Arbeitsfläche, Kategorie, Datum, „hervorheben“ und Formular im Reiter „Beitrag“. „Bearbeiten“ in der Administration öffnet ebenfalls diesen Editor. Bestehende Beiträge werden beim Öffnen automatisch zum Textblock diff --git a/app/Version.php b/app/Version.php index bae85abb..1e06a4ea 100644 --- a/app/Version.php +++ b/app/Version.php @@ -9,5 +9,5 @@ namespace App; */ final class Version { - public const VERSION = '0.15.0'; + public const VERSION = '0.15.1'; } diff --git a/public/build/assets/Accordion-V_jbtQWC.js b/public/build/assets/Accordion-Dr72PK-a.js similarity index 99% rename from public/build/assets/Accordion-V_jbtQWC.js rename to public/build/assets/Accordion-Dr72PK-a.js index fc35f451..95ad16c9 100644 --- a/public/build/assets/Accordion-V_jbtQWC.js +++ b/public/build/assets/Accordion-Dr72PK-a.js @@ -1 +1 @@ -import{d as e,n as t,r as n,s as r}from"./usePrimitiveElement-DC7UloPZ.js";import{D as i,E as a,Ht as o,J as s,On as c,Tn as l,_ as u,b as d,bt as f,ct as p,et as m,g as h,k as g,mt as _,o as v,qt as y,tr as b,tt as x,v as S,vn as C,wt as w,xt as T,y as E}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as D}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{b as O,d as k,p as A,v as j}from"./dist-DtGNiYlK.js";import{T as M}from"./AppIcon-D91Q4hzR.js";import{C as N}from"./http-DmyDwIce.js";import{n as P,t as F}from"./isValueEqualOrExist-BmxVVt-T.js";var[I,L]=e(`CollapsibleRoot`),R=g({__name:`CollapsibleRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=O(r,`open`,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=l(r);return L({contentId:``,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),A(),(e,t)=>(_(),S(c(k),{as:e.as,"as-child":r.asChild,"data-state":c(i)?`open`:`closed`,"data-disabled":c(a)?``:void 0},{default:y(()=>[T(e.$slots,`default`,{open:c(i)})]),_:3},8,[`as`,`as-child`,`data-state`,`data-disabled`]))}}),z=g({inheritAttrs:!1,__name:`CollapsibleContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`contentFound`],setup(e,{emit:r}){let a=e,s=r,l=I();l.contentId||=n(void 0,`reka-collapsible-content`);let u=C(),{forwardRef:d,currentElement:f}=A(),g=C(0),v=C(0),b=h(()=>l.open.value),w=C(b.value),D=C();o(()=>[b.value,u.value?.present],async()=>{await x();let e=f.value;if(!e)return;D.value=D.value||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();v.value=t.height,g.value=t.width,w.value||(e.style.transitionDuration=D.value.transitionDuration,e.style.animationName=D.value.animationName)},{immediate:!0});let O=h(()=>w.value&&l.open.value);return p(()=>{requestAnimationFrame(()=>{w.value=!1})}),j(f,`beforematch`,e=>{requestAnimationFrame(()=>{l.onOpenToggle(),s(`contentFound`)})}),(e,n)=>(_(),S(c(t),{ref_key:`presentRef`,ref:u,present:e.forceMount||c(l).open.value,"force-mount":!0},{default:y(({present:t})=>[i(c(k),m(e.$attrs,{id:c(l).contentId,ref:c(d),"as-child":a.asChild,as:e.as,hidden:t?void 0:c(l).unmountOnHide.value?``:`until-found`,"data-state":O.value?void 0:c(l).open.value?`open`:`closed`,"data-disabled":c(l).disabled?.value?``:void 0,style:{"--reka-collapsible-content-height":`${v.value}px`,"--reka-collapsible-content-width":`${g.value}px`}}),{default:y(()=>[!c(l).unmountOnHide.value||t?T(e.$slots,`default`,{key:0}):E(`v-if`,!0)]),_:2},1040,[`id`,`as-child`,`as`,`hidden`,`data-state`,`data-disabled`,`style`])]),_:3},8,[`present`]))}}),B=g({__name:`CollapsibleTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;A();let n=I();return(e,r)=>(_(),S(c(k),{type:e.as===`button`?`button`:void 0,as:e.as,"as-child":t.asChild,"aria-controls":c(n).contentId,"aria-expanded":c(n).open.value,"data-state":c(n).open.value?`open`:`closed`,"data-disabled":c(n).disabled?.value?``:void 0,disabled:c(n).disabled?.value,onClick:c(n).onOpenToggle},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`type`,`as`,`as-child`,`aria-controls`,`aria-expanded`,`data-state`,`data-disabled`,`disabled`,`onClick`]))}});function V({type:e,defaultValue:t,modelValue:n}){let r=n||t;return n!==void 0||t!==void 0?Array.isArray(r)?`multiple`:`single`:e??`single`}function H({type:e,defaultValue:t,modelValue:n}){return e||V({type:e,defaultValue:t,modelValue:n})}function U({type:e,defaultValue:t}){return t===void 0?e===`single`?void 0:[]:t}function W(e,t){let n=h(()=>H(e)),r=O(e,`modelValue`,t,{defaultValue:U(e),passive:e.modelValue===void 0,deep:!0});function i(e){if(n.value===`single`)r.value=P(e,r.value)?void 0:e;else{let t=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(F(t,e)){let n=t.findIndex(t=>P(t,e));t.splice(n,1)}else t.push(e);r.value=t}}return{modelValue:r,changeModelValue:i,isSingle:h(()=>n.value===`single`)}}var[G,K]=e(`AccordionRoot`),q=g({__name:`AccordionRoot`,props:{collapsible:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:`vertical`},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,i=t,{dir:a,disabled:o,unmountOnHide:s}=l(n),u=r(a),{modelValue:d,changeModelValue:f,isSingle:p}=W(n,i),{forwardRef:m,currentElement:h}=A();return K({disabled:o,direction:u,orientation:n.orientation,parentElement:h,isSingle:p,collapsible:n.collapsible,modelValue:d,changeModelValue:f,unmountOnHide:s}),(e,t)=>(_(),S(c(k),{ref:c(m),"as-child":e.asChild,as:e.as},{default:y(()=>[T(e.$slots,`default`,{modelValue:c(d)})]),_:3},8,[`as-child`,`as`]))}}),J=function(e){return e.Open=`open`,e.Closed=`closed`,e}(J||{}),[Y,X]=e(`AccordionItem`),Z=g({__name:`AccordionItem`,props:{disabled:{type:Boolean,required:!1},value:{type:String,required:!0},unmountOnHide:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){let n=e,r=G(),i=h(()=>r.isSingle.value?n.value===r.modelValue.value:Array.isArray(r.modelValue.value)&&r.modelValue.value.includes(n.value)),a=h(()=>r.disabled.value||n.disabled),o=h(()=>a.value?``:void 0),s=h(()=>i.value?J.Open:J.Closed);t({open:i,dataDisabled:o});let{currentRef:l,currentElement:u}=A();X({open:i,dataState:s,disabled:a,dataDisabled:o,triggerId:``,currentRef:l,currentElement:u,value:h(()=>n.value)});function d(e){let t=e.target;if(Array.from(r.parentElement.value?.querySelectorAll(`[data-reka-collection-item]`)??[]).findIndex(e=>e===t)===-1)return null;M(e,t,r.parentElement.value,{arrowKeyOptions:r.orientation,dir:r.direction.value,focus:!0})}return(e,t)=>(_(),S(c(R),{"data-orientation":c(r).orientation,"data-disabled":o.value,"data-state":s.value,disabled:a.value,open:i.value,as:n.as,"as-child":n.asChild,"unmount-on-hide":n.unmountOnHide??c(r).unmountOnHide.value,onKeydown:D(d,[`up`,`down`,`left`,`right`,`home`,`end`])},{default:y(()=>[T(e.$slots,`default`,{open:i.value})]),_:3},8,[`data-orientation`,`data-disabled`,`data-state`,`disabled`,`open`,`as`,`as-child`,`unmount-on-hide`]))}}),Q=g({__name:`AccordionContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=G(),r=Y();return A(),(e,i)=>(_(),S(c(z),{role:`region`,"as-child":t.asChild,as:e.as,"force-mount":t.forceMount,"aria-labelledby":c(r).triggerId,"data-state":c(r).dataState.value,"data-disabled":c(r).dataDisabled.value,"data-orientation":c(n).orientation,style:{"--reka-accordion-content-width":`var(--reka-collapsible-content-width)`,"--reka-accordion-content-height":`var(--reka-collapsible-content-height)`},onContentFound:i[0]||=e=>c(n).changeModelValue(c(r).value.value)},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`force-mount`,`aria-labelledby`,`data-state`,`data-disabled`,`data-orientation`]))}}),$=g({__name:`AccordionHeader`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h3`}},setup(e){let t=e,n=G(),r=Y();return A(),(e,i)=>(_(),S(c(k),{as:t.as,"as-child":t.asChild,"data-orientation":c(n).orientation,"data-state":c(r).dataState.value,"data-disabled":c(r).dataDisabled.value},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-orientation`,`data-state`,`data-disabled`]))}}),ee=g({__name:`AccordionTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,r=G(),i=Y();i.triggerId||=n(void 0,`reka-accordion-trigger`);function a(){let e=r.isSingle.value&&i.open.value&&!r.collapsible;i.disabled.value||e||r.changeModelValue(i.value.value)}return(e,n)=>(_(),S(c(B),{id:c(i).triggerId,ref:c(i).currentRef,"data-reka-collection-item":``,as:t.as,"as-child":t.asChild,"aria-disabled":c(i).disabled.value||void 0,"aria-expanded":c(i).open.value||!1,"data-disabled":c(i).dataDisabled.value,"data-orientation":c(r).orientation,"data-state":c(i).dataState.value,disabled:c(i).disabled.value,onClick:a},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`id`,`as`,`as-child`,`aria-disabled`,`aria-expanded`,`data-disabled`,`data-orientation`,`data-state`,`disabled`]))}}),te={class:`px-5 pt-1 pb-5`},ne={__name:`Accordion`,props:{block:{type:Object,required:!0}},setup(e){let t=e,n=s(`pagebuilder:list`),r=s(`pagebuilder:editing`,!1),o=h(()=>{let e=t.block.items[0]?.id;return t.block.data.multiple?t.block.data.first_open&&e?[e]:[]:t.block.data.first_open?e:void 0});return(t,s)=>(_(),S(c(q),{key:`${e.block.data.multiple}-${c(r)}`,type:e.block.data.multiple?`multiple`:`single`,"default-value":o.value,collapsible:``,class:`divide-y rounded-lg border bg-card`},{default:y(()=>[(_(!0),d(v,null,f(e.block.items,(e,t)=>(_(),S(c(Z),{key:e.id,value:e.id},{default:y(()=>[i(c($),{as:`h3`},{default:y(()=>[i(c(ee),{class:`group flex w-full items-center justify-between gap-4 px-5 py-4 text-left text-[15px] font-medium hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`},{default:y(()=>[a(b(e.title||`Abschnitt ${t+1}`)+` `,1),i(c(N),{class:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180`})]),_:2},1024)]),_:2},1024),i(c(Q),{class:`overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`},{default:y(()=>[u(`div`,te,[(_(),S(w(c(n)),{item:e},null,8,[`item`]))])]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1},8,[`type`,`default-value`]))}};export{ne as default}; \ No newline at end of file +import{d as e,n as t,r as n,s as r}from"./usePrimitiveElement-DC7UloPZ.js";import{D as i,E as a,Ht as o,J as s,On as c,Tn as l,_ as u,b as d,bt as f,ct as p,et as m,g as h,k as g,mt as _,o as v,qt as y,tr as b,tt as x,v as S,vn as C,wt as w,xt as T,y as E}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as D}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{b as O,d as k,p as A,v as j}from"./dist-DtGNiYlK.js";import{T as M}from"./AppIcon-BiVN_tuL.js";import{C as N}from"./http-DmyDwIce.js";import{n as P,t as F}from"./isValueEqualOrExist-BmxVVt-T.js";var[I,L]=e(`CollapsibleRoot`),R=g({__name:`CollapsibleRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=O(r,`open`,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=l(r);return L({contentId:``,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),A(),(e,t)=>(_(),S(c(k),{as:e.as,"as-child":r.asChild,"data-state":c(i)?`open`:`closed`,"data-disabled":c(a)?``:void 0},{default:y(()=>[T(e.$slots,`default`,{open:c(i)})]),_:3},8,[`as`,`as-child`,`data-state`,`data-disabled`]))}}),z=g({inheritAttrs:!1,__name:`CollapsibleContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`contentFound`],setup(e,{emit:r}){let a=e,s=r,l=I();l.contentId||=n(void 0,`reka-collapsible-content`);let u=C(),{forwardRef:d,currentElement:f}=A(),g=C(0),v=C(0),b=h(()=>l.open.value),w=C(b.value),D=C();o(()=>[b.value,u.value?.present],async()=>{await x();let e=f.value;if(!e)return;D.value=D.value||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();v.value=t.height,g.value=t.width,w.value||(e.style.transitionDuration=D.value.transitionDuration,e.style.animationName=D.value.animationName)},{immediate:!0});let O=h(()=>w.value&&l.open.value);return p(()=>{requestAnimationFrame(()=>{w.value=!1})}),j(f,`beforematch`,e=>{requestAnimationFrame(()=>{l.onOpenToggle(),s(`contentFound`)})}),(e,n)=>(_(),S(c(t),{ref_key:`presentRef`,ref:u,present:e.forceMount||c(l).open.value,"force-mount":!0},{default:y(({present:t})=>[i(c(k),m(e.$attrs,{id:c(l).contentId,ref:c(d),"as-child":a.asChild,as:e.as,hidden:t?void 0:c(l).unmountOnHide.value?``:`until-found`,"data-state":O.value?void 0:c(l).open.value?`open`:`closed`,"data-disabled":c(l).disabled?.value?``:void 0,style:{"--reka-collapsible-content-height":`${v.value}px`,"--reka-collapsible-content-width":`${g.value}px`}}),{default:y(()=>[!c(l).unmountOnHide.value||t?T(e.$slots,`default`,{key:0}):E(`v-if`,!0)]),_:2},1040,[`id`,`as-child`,`as`,`hidden`,`data-state`,`data-disabled`,`style`])]),_:3},8,[`present`]))}}),B=g({__name:`CollapsibleTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;A();let n=I();return(e,r)=>(_(),S(c(k),{type:e.as===`button`?`button`:void 0,as:e.as,"as-child":t.asChild,"aria-controls":c(n).contentId,"aria-expanded":c(n).open.value,"data-state":c(n).open.value?`open`:`closed`,"data-disabled":c(n).disabled?.value?``:void 0,disabled:c(n).disabled?.value,onClick:c(n).onOpenToggle},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`type`,`as`,`as-child`,`aria-controls`,`aria-expanded`,`data-state`,`data-disabled`,`disabled`,`onClick`]))}});function V({type:e,defaultValue:t,modelValue:n}){let r=n||t;return n!==void 0||t!==void 0?Array.isArray(r)?`multiple`:`single`:e??`single`}function H({type:e,defaultValue:t,modelValue:n}){return e||V({type:e,defaultValue:t,modelValue:n})}function U({type:e,defaultValue:t}){return t===void 0?e===`single`?void 0:[]:t}function W(e,t){let n=h(()=>H(e)),r=O(e,`modelValue`,t,{defaultValue:U(e),passive:e.modelValue===void 0,deep:!0});function i(e){if(n.value===`single`)r.value=P(e,r.value)?void 0:e;else{let t=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(F(t,e)){let n=t.findIndex(t=>P(t,e));t.splice(n,1)}else t.push(e);r.value=t}}return{modelValue:r,changeModelValue:i,isSingle:h(()=>n.value===`single`)}}var[G,K]=e(`AccordionRoot`),q=g({__name:`AccordionRoot`,props:{collapsible:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:`vertical`},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,i=t,{dir:a,disabled:o,unmountOnHide:s}=l(n),u=r(a),{modelValue:d,changeModelValue:f,isSingle:p}=W(n,i),{forwardRef:m,currentElement:h}=A();return K({disabled:o,direction:u,orientation:n.orientation,parentElement:h,isSingle:p,collapsible:n.collapsible,modelValue:d,changeModelValue:f,unmountOnHide:s}),(e,t)=>(_(),S(c(k),{ref:c(m),"as-child":e.asChild,as:e.as},{default:y(()=>[T(e.$slots,`default`,{modelValue:c(d)})]),_:3},8,[`as-child`,`as`]))}}),J=function(e){return e.Open=`open`,e.Closed=`closed`,e}(J||{}),[Y,X]=e(`AccordionItem`),Z=g({__name:`AccordionItem`,props:{disabled:{type:Boolean,required:!1},value:{type:String,required:!0},unmountOnHide:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){let n=e,r=G(),i=h(()=>r.isSingle.value?n.value===r.modelValue.value:Array.isArray(r.modelValue.value)&&r.modelValue.value.includes(n.value)),a=h(()=>r.disabled.value||n.disabled),o=h(()=>a.value?``:void 0),s=h(()=>i.value?J.Open:J.Closed);t({open:i,dataDisabled:o});let{currentRef:l,currentElement:u}=A();X({open:i,dataState:s,disabled:a,dataDisabled:o,triggerId:``,currentRef:l,currentElement:u,value:h(()=>n.value)});function d(e){let t=e.target;if(Array.from(r.parentElement.value?.querySelectorAll(`[data-reka-collection-item]`)??[]).findIndex(e=>e===t)===-1)return null;M(e,t,r.parentElement.value,{arrowKeyOptions:r.orientation,dir:r.direction.value,focus:!0})}return(e,t)=>(_(),S(c(R),{"data-orientation":c(r).orientation,"data-disabled":o.value,"data-state":s.value,disabled:a.value,open:i.value,as:n.as,"as-child":n.asChild,"unmount-on-hide":n.unmountOnHide??c(r).unmountOnHide.value,onKeydown:D(d,[`up`,`down`,`left`,`right`,`home`,`end`])},{default:y(()=>[T(e.$slots,`default`,{open:i.value})]),_:3},8,[`data-orientation`,`data-disabled`,`data-state`,`disabled`,`open`,`as`,`as-child`,`unmount-on-hide`]))}}),Q=g({__name:`AccordionContent`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=G(),r=Y();return A(),(e,i)=>(_(),S(c(z),{role:`region`,"as-child":t.asChild,as:e.as,"force-mount":t.forceMount,"aria-labelledby":c(r).triggerId,"data-state":c(r).dataState.value,"data-disabled":c(r).dataDisabled.value,"data-orientation":c(n).orientation,style:{"--reka-accordion-content-width":`var(--reka-collapsible-content-width)`,"--reka-accordion-content-height":`var(--reka-collapsible-content-height)`},onContentFound:i[0]||=e=>c(n).changeModelValue(c(r).value.value)},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`force-mount`,`aria-labelledby`,`data-state`,`data-disabled`,`data-orientation`]))}}),$=g({__name:`AccordionHeader`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h3`}},setup(e){let t=e,n=G(),r=Y();return A(),(e,i)=>(_(),S(c(k),{as:t.as,"as-child":t.asChild,"data-orientation":c(n).orientation,"data-state":c(r).dataState.value,"data-disabled":c(r).dataDisabled.value},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-orientation`,`data-state`,`data-disabled`]))}}),ee=g({__name:`AccordionTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,r=G(),i=Y();i.triggerId||=n(void 0,`reka-accordion-trigger`);function a(){let e=r.isSingle.value&&i.open.value&&!r.collapsible;i.disabled.value||e||r.changeModelValue(i.value.value)}return(e,n)=>(_(),S(c(B),{id:c(i).triggerId,ref:c(i).currentRef,"data-reka-collection-item":``,as:t.as,"as-child":t.asChild,"aria-disabled":c(i).disabled.value||void 0,"aria-expanded":c(i).open.value||!1,"data-disabled":c(i).dataDisabled.value,"data-orientation":c(r).orientation,"data-state":c(i).dataState.value,disabled:c(i).disabled.value,onClick:a},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`id`,`as`,`as-child`,`aria-disabled`,`aria-expanded`,`data-disabled`,`data-orientation`,`data-state`,`disabled`]))}}),te={class:`px-5 pt-1 pb-5`},ne={__name:`Accordion`,props:{block:{type:Object,required:!0}},setup(e){let t=e,n=s(`pagebuilder:list`),r=s(`pagebuilder:editing`,!1),o=h(()=>{let e=t.block.items[0]?.id;return t.block.data.multiple?t.block.data.first_open&&e?[e]:[]:t.block.data.first_open?e:void 0});return(t,s)=>(_(),S(c(q),{key:`${e.block.data.multiple}-${c(r)}`,type:e.block.data.multiple?`multiple`:`single`,"default-value":o.value,collapsible:``,class:`divide-y rounded-lg border bg-card`},{default:y(()=>[(_(!0),d(v,null,f(e.block.items,(e,t)=>(_(),S(c(Z),{key:e.id,value:e.id},{default:y(()=>[i(c($),{as:`h3`},{default:y(()=>[i(c(ee),{class:`group flex w-full items-center justify-between gap-4 px-5 py-4 text-left text-[15px] font-medium hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`},{default:y(()=>[a(b(e.title||`Abschnitt ${t+1}`)+` `,1),i(c(N),{class:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180`})]),_:2},1024)]),_:2},1024),i(c(Q),{class:`overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`},{default:y(()=>[u(`div`,te,[(_(),S(w(c(n)),{item:e},null,8,[`item`]))])]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1},8,[`type`,`default-value`]))}};export{ne as default}; \ No newline at end of file diff --git a/public/build/assets/AppIcon-D91Q4hzR.js b/public/build/assets/AppIcon-BiVN_tuL.js similarity index 99% rename from public/build/assets/AppIcon-D91Q4hzR.js rename to public/build/assets/AppIcon-BiVN_tuL.js index dca1c253..7c465a6b 100644 --- a/public/build/assets/AppIcon-D91Q4hzR.js +++ b/public/build/assets/AppIcon-BiVN_tuL.js @@ -1 +1 @@ -import{a as e,d as t,i as n,n as r,o as i,r as a,s as o,u as s}from"./usePrimitiveElement-DC7UloPZ.js";import{$n as c,D as l,E as u,Ht as d,On as f,Q as p,Tn as m,Ut as h,Yt as g,Zn as _,_ as v,b as y,ct as b,et as x,ft as ee,g as S,k as C,mt as w,qt as T,tr as te,tt as E,un as ne,v as D,vn as O,wt as re,xn as k,xt as A,y as j,z as M}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as ie,S as N,w as P}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o as ae}from"./app-CNhdlRDG.js";import{C as F,E as oe,S as se,b as I,d as L,k as R,l as z,p as B,s as V,v as ce}from"./dist-DtGNiYlK.js";import{c as le,l as ue,o as de,s as fe,t as pe}from"./RovingFocusGroup-D88K7krN.js";import{_ as me,b as he,c as ge,d as H,f as U,g as W,h as _e,l as ve,m as ye,p as be,s as xe,u as Se,x as Ce,y as we}from"./http-DmyDwIce.js";var Te=R({name:`accessibility`,size:24,node:[[`circle`,{cx:`16`,cy:`4`,r:`1`,key:`1grugj`}],[`path`,{d:`m18 19 1-7-6 1`,key:`r0i19z`}],[`path`,{d:`m5 8 3-3 5.5 3-2.36 3.5`,key:`9ptxx2`}],[`path`,{d:`M4.24 14.5a5 5 0 0 0 6.88 6`,key:`10kmtu`}],[`path`,{d:`M13.76 17.5a5 5 0 0 0-6.88-6`,key:`2qq6rc`}]]}),Ee=R({name:`baby`,size:24,node:[[`path`,{d:`M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5`,key:`1u7htd`}],[`path`,{d:`M15 12h.01`,key:`1k8ypt`}],[`path`,{d:`M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1`,key:`11xh7x`}],[`path`,{d:`M9 12h.01`,key:`157uk2`}]]}),De=R({name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]}),Oe=R({name:`bike`,size:24,node:[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]}),ke=R({name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]}),Ae=R({name:`briefcase`,size:24,node:[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]}),je=R({name:`bus`,size:24,node:[[`path`,{d:`M8 6v6`,key:`18i7km`}],[`path`,{d:`M15 6v6`,key:`1sg6z9`}],[`path`,{d:`M2 12h19.6`,key:`de5uta`}],[`path`,{d:`M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3`,key:`1wwztk`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}]]}),Me=R({name:`cake`,size:24,node:[[`path`,{d:`M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8`,key:`1w3rig`}],[`path`,{d:`M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1`,key:`n2jgmb`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M7 8v3`,key:`1qtyvj`}],[`path`,{d:`M12 8v3`,key:`hwp4zt`}],[`path`,{d:`M17 8v3`,key:`1i6e5u`}],[`path`,{d:`M7 4h.01`,key:`1bh4kh`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M17 4h.01`,key:`1upcoc`}]]}),Ne=R({name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]}),Pe=R({name:`car`,size:24,node:[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]}),Fe=R({name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]}),Ie=R({name:`church`,size:24,node:[[`path`,{d:`M10 9h4`,key:`u4k05v`}],[`path`,{d:`M12 7v5`,key:`ma6bk`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`m18 9 3.52 2.147a1 1 0 0 1 .48.854V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.999a1 1 0 0 1 .48-.854L6 9`,key:`flvdwo`}],[`path`,{d:`M6 21V7a1 1 0 0 1 .376-.782l5-3.999a1 1 0 0 1 1.249.001l5 4A1 1 0 0 1 18 7v14`,key:`a5i0n2`}]]}),Le=R({name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]}),Re=R({name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]}),ze=R({name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]}),Be=R({name:`coffee`,size:24,node:[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]}),Ve=R({name:`euro`,size:24,node:[[`path`,{d:`M4 10h12`,key:`1y6xl8`}],[`path`,{d:`M4 14h9`,key:`1loblj`}],[`path`,{d:`M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2`,key:`1j6lzo`}]]}),He=R({name:`file-down`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]}),Ue=R({name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]}),We=R({name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]}),Ge=R({name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),Ke=R({name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]}),qe=R({name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]}),Je=R({name:`hammer`,size:24,node:[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]}),Ye=R({name:`handshake`,size:24,node:[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]}),Xe=R({name:`headset`,size:24,node:[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]}),Ze=R({name:`heart-handshake`,size:24,node:[[`path`,{d:`M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762`,key:`17lmqv`}]]}),Qe=R({name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]}),$e=R({name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]}),et=R({name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]}),tt=R({name:`landmark`,size:24,node:[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z`,key:`yxxwt6`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]}),nt=R({name:`laptop`,size:24,node:[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]}),rt=R({name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]}),it=R({name:`leaf`,size:24,node:[[`path`,{d:`M11 20a10 10 0 0010-10 25.9 25.9 0 00-1.04-7.281 1 1 0 00-1.755-.325C15.833 5.5 13 5.5 9.8 6.1A7 7 0 0011 20`,key:`1wjnjv`}],[`path`,{d:`M2 21a5 5 0 012.911-4.544C7.613 15.212 8.351 15.24 11 13`,key:`c1ejpn`}]]}),at=R({name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]}),ot=R({name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]}),st=R({name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]}),ct=R({name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]}),G=R({name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]}),lt=R({name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]}),ut=R({name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]}),dt=R({name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]}),ft=R({name:`newspaper`,size:24,node:[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]}),pt=R({name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]}),mt=R({name:`printer`,size:24,node:[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]]}),ht=R({name:`receipt`,size:24,node:[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]}),gt=R({name:`scale`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]}),_t=R({name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]}),vt=R({name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]}),yt=R({name:`shopping-cart`,size:24,node:[[`path`,{d:`m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18`,key:`uebgi3`}],[`path`,{d:`M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25`,key:`1j7c9p`}],[`circle`,{cx:`18`,cy:`20`,r:`2`,key:`t9985n`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),bt=R({name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]}),xt=R({name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]}),St=R({name:`stethoscope`,size:24,node:[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]}),Ct=R({name:`trophy`,size:24,node:[[`path`,{d:`M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2`,key:`pwuv1l`}],[`path`,{d:`M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2`,key:`1y54w1`}],[`path`,{d:`M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3`,key:`e30mpu`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3`,key:`i0yafy`}]]}),wt=R({name:`truck`,size:24,node:[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]}),Tt=R({name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]}),Et=R({name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]}),Dt=R({name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]}),Ot=R({name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]}),kt=R({name:`utensils`,size:24,node:[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]],aliases:[`fork-knife`]}),At=R({name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]}),jt=R({name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]}),Mt=[`INPUT`,`TEXTAREA`];function K(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Mt.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;return v||_?b=Nt(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function Nt(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;let i=e.indexOf(t),a;if(a=i===-1?n.goForward?0:e.length-1:n.goForward?i+1:i-1,!n.loop&&(a<0||a>=e.length))return null;let o=e[(a+e.length)%e.length];return o?o.hasAttribute(`disabled`)&&o.getAttribute(`disabled`)!==`false`?Nt(e,o,n,r):o:null}function Pt(e){let t=oe(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e)e(n);else{let e=s(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=It(n.map(e=>e.textValue),t.value,i?.textValue),o=n.find(e=>e.textValue===a);return o&&o.ref.focus(),o?.ref}},resetTypeahead:()=>{t.value=``}}}function Ft(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function It(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ft(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}var[q,Lt]=t(`DialogRoot`),Rt=C({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=I(n,`open`,t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=O(),a=O(),{modal:o,unmountOnHide:s}=m(n);return Lt({open:r,modal:o,unmountOnHide:s,openModal:()=>{r.value=!0},onOpenChange:e=>{r.value=e},onOpenToggle:()=>{r.value=!r.value},contentId:``,titleId:``,descriptionId:``,triggerElement:i,contentElement:a}),(e,t)=>A(e.$slots,`default`,{open:f(r),close:()=>r.value=!1})}}),zt=C({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;B();let n=q();return(e,r)=>(w(),D(f(L),x(t,{type:e.as===`button`?`button`:void 0,onClick:r[0]||=e=>f(n).onOpenChange(!1)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`type`]))}}),Bt=`menu.itemSelect`,J=[`Enter`,` `],Vt=[`ArrowDown`,`PageUp`,`Home`],Ht=[`ArrowUp`,`PageDown`,`End`],Ut=[...Vt,...Ht];[...J],[...J];function Wt(e){return e?`open`:`closed`}function Gt(e){return e===`indeterminate`}function Kt(e){return Gt(e)?`indeterminate`:e?`checked`:`unchecked`}function qt(e){let t=s();for(let n of e)if(n===t||(n.focus(),s()!==t))return}function Jt(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Yt(e,t){return t?Jt({x:e.clientX,y:e.clientY},t):!1}function Y(e){return e.pointerType===`mouse`}var Xt=C({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=q(),{forwardRef:o,currentElement:c}=B();return i.titleId||=a(void 0,`reka-dialog-title`),i.descriptionId||=a(void 0,`reka-dialog-description`),b(()=>{i.contentElement=c,s()!==document.body&&(i.triggerElement.value=s())}),(e,t)=>(w(),D(f(U),{"as-child":``,loop:``,trapped:n.trapFocus,present:n.present,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:T(()=>[l(f(be),x({id:f(i).contentId,ref:f(o),as:e.as,"as-child":e.asChild,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":f(i).descriptionId,"aria-labelledby":f(i).titleId,"data-state":f(Wt)(f(i).open.value)},e.$attrs,{onDismiss:t[0]||=e=>f(i).onOpenChange(!1),onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[2]||=e=>r(`focusOutside`,e),onInteractOutside:t[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:t[4]||=e=>r(`pointerDownOutside`,e)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`present`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`,`present`]))}}),Zt=C({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,a=q(),o=i(r),{forwardRef:s,currentElement:c}=B(),l=S(()=>n.present?c.value:void 0);ye(l);let u=S(()=>{let{present:e,...t}=n;return t});return d(()=>n.present,(e,t)=>{!e&&t&&a.triggerElement.value?.focus()}),(e,t)=>(w(),D(Xt,x({...u.value,...f(o)},{ref:f(s),present:e.present,"trap-focus":f(a).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(e.preventDefault(),f(a).triggerElement.value?.focus())},onPointerDownOutside:t[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()},onFocusOutside:t[2]||=e=>{e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`present`,`trap-focus`,`disable-outside-pointer-events`]))}}),Qt=C({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=i(t);B();let a=q(),o=O(!1),s=O(!1),c=S(()=>{let{present:e,...t}=n;return t});return d(()=>n.present,(e,t)=>{!e&&t&&(o.value||a.triggerElement.value?.focus(),o.value=!1,s.value=!1)}),(e,t)=>(w(),D(Xt,x({...c.value,...f(r)},{present:e.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(o.value||f(a).triggerElement.value?.focus(),e.preventDefault()),o.value=!1,s.value=!1},onInteractOutside:t[1]||=e=>{e.defaultPrevented||(o.value=!0,e.detail.originalEvent.type===`pointerdown`&&(s.value=!0));let t=e.target;f(a).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&s.value&&e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`present`]))}}),$t=C({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,a=t,o=q(),s=i(a),{forwardRef:c}=B(),l=S(()=>n.forceMount||!o.unmountOnHide.value);return(e,t)=>(w(),D(f(r),{present:f(o).open.value,"force-mount":l.value},{default:T(({present:t})=>[f(o).modal.value?g((w(),D(Zt,x({key:0,ref:f(c),present:!l.value||t},{...n,...f(s),...e.$attrs}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`present`])),[[N,e.forceMount||f(o).unmountOnHide.value||t]]):g((w(),D(Qt,x({key:1,ref:f(c),present:!l.value||t},{...n,...f(s),...e.$attrs}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`present`])),[[N,e.forceMount||f(o).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`]))}}),en=C({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){let t=e,n=q(),r=W(t.present);return d(()=>t.present,e=>r.value=e),B(),(e,t)=>(w(),D(f(L),{as:e.as,"as-child":e.asChild,"data-state":f(n).open.value?`open`:`closed`,style:{"pointer-events":`auto`},onPointerdown:t[0]||=P(()=>{},[`left`,`self`,`prevent`])},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),tn=C({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=q(),{forwardRef:i}=B(),a=S(()=>t.forceMount||!n.unmountOnHide.value);return(e,t)=>f(n)?.modal.value?(w(),D(f(r),{key:0,present:f(n).open.value,"force-mount":a.value},{default:T(({present:t})=>[g(l(en,x(e.$attrs,{ref:f(i),as:e.as,"as-child":e.asChild,present:!a.value||t}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`as`,`as-child`,`present`]),[[N,e.forceMount||f(n).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`])):j(`v-if`,!0)}}),nn=C({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(H),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),rn=C({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=q();return B(),(e,r)=>(w(),D(f(L),x(t,{id:f(n).titleId}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`]))}}),[an,on]=t(`AvatarRoot`),sn=C({__name:`AvatarRoot`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return B(),on({imageLoadingStatus:O(`idle`)}),(e,t)=>(w(),D(f(L),{"as-child":e.asChild,as:e.as},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),cn=C({__name:`AvatarFallback`,props:{delayMs:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=an();B();let r=O(t.delayMs===void 0);return h(e=>{if(t.delayMs&&F){let n=window.setTimeout(()=>{r.value=!0},t.delayMs);e(()=>{window.clearTimeout(n)})}}),(e,t)=>r.value&&f(n).imageLoadingStatus.value!==`loaded`?(w(),D(f(L),{key:0,"as-child":e.asChild,as:e.as},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`])):j(`v-if`,!0)}});function ln(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function un(e,{referrerPolicy:t,crossOrigin:n}={}){let r=O(!1),i=O(null),a=S(()=>r.value?(!i.value&&F&&(i.value=new window.Image),i.value):null),o=O(ln(a.value,e.value)),s=e=>()=>{r.value&&(o.value=e)};return b(()=>{r.value=!0,h(r=>{let i=a.value;if(!i)return;o.value=ln(i,e.value);let c=s(`loaded`),l=s(`error`);i.addEventListener(`load`,c),i.addEventListener(`error`,l),t?.value&&(i.referrerPolicy=t.value),typeof n?.value==`string`&&(i.crossOrigin=n.value),r(()=>{i.removeEventListener(`load`,c),i.removeEventListener(`error`,l)})})}),ee(()=>{r.value=!1}),o}var dn=C({__name:`AvatarImage`,props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`img`}},emits:[`loadingStatusChange`],setup(e,{emit:t}){let n=e,r=t,{src:i,referrerPolicy:a,crossOrigin:o}=m(n);B();let s=an(),c=un(i,{referrerPolicy:a,crossOrigin:o});return d(c,e=>{r(`loadingStatusChange`,e),e!==`idle`&&(s.imageLoadingStatus.value=e)},{immediate:!0}),(e,t)=>g((w(),D(f(L),{role:`img`,"as-child":e.asChild,as:e.as,src:f(i),referrerpolicy:f(a),crossorigin:f(o)},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`src`,`referrerpolicy`,`crossorigin`])),[[N,f(c)===`loaded`]])}}),fn=C({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(ve),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}});function pn(){let e=O(!1);return b(()=>{ce(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),ce([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}var mn=se(pn),[X,hn]=t([`MenuRoot`,`MenuSub`],`MenuContext`),[Z,gn]=t(`MenuRoot`),_n=C({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=m(n),s=o(a),c=I(n,`open`,r),l=O(),u=mn();return hn({open:c,onOpenChange:e=>{c.value=e},content:l,onContentChange:e=>{l.value=e}}),gn({onClose:()=>{c.value=!1},isUsingKeyboardRef:u,dir:s,modal:i}),(e,t)=>(w(),D(f(Se),null,{default:T(()=>[A(e.$slots,`default`)]),_:3}))}}),[vn,yn]=t(`MenuContent`),bn=C({__name:`MenuContentImpl`,props:p({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...xe}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=X(),a=Z(),{trapFocus:o,disableOutsidePointerEvents:c,loop:u}=m(n);_e(),W(c.value);let p=O(``),h=O(0),g=O(0),_=O(null),v=O(`right`),y=O(0),b=O(null),x=O(),{forwardRef:S,currentElement:C}=B(),{handleTypeaheadSearch:te}=Pt(),E=O();function ne(e){let t=K(e,E.value||s(),C.value,{loop:u.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!1,attributeName:`[data-reka-collection-item]:not([data-disabled])`});t&&(E.value=t,t.scrollIntoView({block:`nearest`}))}function re(){E.value&&E.value.click()}let k=O(),j=O();d(E,e=>{if(j.value&&(e===void 0||e!==j.value.trigger.value)){if(e===void 0)return;j.value.onOpenChange(!1),j.value=void 0}}),d(C,e=>{i.onContentChange(e)}),ee(()=>{window.clearTimeout(h.value)});function M(e){return v.value===_.value?.side&&Yt(e,_.value?.area)}async function ie(e){r(`openAutoFocus`,e),!e.defaultPrevented&&(e.preventDefault(),C.value?.focus({preventScroll:!0}))}function N(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=[`input`,`textarea`].includes(t.tagName.toLowerCase()),i=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1,c=K(e,s(),C.value,{loop:u.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(c)return c?.focus();if(e.code===`Space`)return;let l=x.value?.getItems()??[];if(n&&(e.key===`Tab`&&a.modal.value&&e.preventDefault(),!i&&o&&!r&&te(e.key,l)),e.target!==C.value||!Ut.includes(e.key))return;e.preventDefault();let d=[...l.map(e=>e.ref)];Ht.includes(e.key)&&d.reverse(),qt(d)}function P(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(h.value),p.value=``)}function ae(e){if(!Y(e))return;let t=e.target,n=y.value!==e.clientX;if((e?.currentTarget)?.contains(t)&&n){let t=e.clientX>y.value?`right`:`left`;v.value=t,y.value=e.clientX}}function F(e){Y(e)&&k.value&&k.value.focus()}return yn({onItemEnter:e=>!!M(e),onItemLeave:e=>M(e)?!0:([`INPUT`,`TEXTAREA`].includes(s()?.tagName||``)||C.value?.focus(),b.value=null,!1),onTriggerLeave:e=>!!M(e),searchRef:p,highlightedElement:E,onKeydownNavigation:ne,onKeydownEnter:re,filterElement:k,onFilterElementChange:e=>{k.value=e},activeSubmenuContext:j,pointerGraceTimerRef:g,onPointerGraceIntentChange:e=>{_.value=e}}),(e,t)=>(w(),D(f(U),{"as-child":``,trapped:f(o),onMountAutoFocus:ie,onUnmountAutoFocus:t[7]||=e=>r(`closeAutoFocus`,e)},{default:T(()=>[l(f(be),{"as-child":``,"disable-outside-pointer-events":f(c),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[4]||=e=>r(`focusOutside`,e),onInteractOutside:t[5]||=e=>r(`interactOutside`,e),onDismiss:t[6]||=e=>r(`dismiss`)},{default:T(()=>[l(f(pe),{ref_key:`rovingFocusGroupRef`,ref:x,"current-tab-stop-id":b.value,"onUpdate:currentTabStopId":t[0]||=e=>b.value=e,"as-child":``,orientation:`vertical`,dir:f(a).dir.value,loop:f(u),onEntryFocus:t[1]||=e=>{r(`entryFocus`,e),f(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:T(()=>[l(f(ge),{ref:f(S),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":f(Wt)(f(i).open.value),dir:f(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:N,onBlur:P,onPointermove:ae,onPointerenter:F},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),xn=C({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=vn(),{forwardRef:r,currentElement:i}=B(),{CollectionItem:a}=de(),o=O(!1),c=S(()=>o.value||i.value!=null&&n.highlightedElement.value===i.value);async function u(e){if(!e.defaultPrevented&&Y(e)){if(t.disabled)n.onItemLeave(e);else if(!n.onItemEnter(e)){let t=e.currentTarget;n.highlightedElement.value=t,[`INPUT`,`TEXTAREA`].includes(s()?.tagName||``)||t.focus({preventScroll:!0})}}}async function d(e){await E(),!e.defaultPrevented&&Y(e)&&n.highlightedElement.value===i.value&&!n.onItemLeave(e)&&n.highlightedElement.value===i.value&&(n.highlightedElement.value=void 0)}return(e,t)=>(w(),D(f(a),{value:{textValue:e.textValue}},{default:T(()=>[l(f(L),x({ref:f(r),role:`menuitem`,tabindex:`-1`},e.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":c.value?``:void 0,onPointermove:u,onPointerleave:d,onFocus:t[0]||=async t=>{let r=t.currentTarget;await E(),!(t.defaultPrevented||e.disabled)&&(o.value=!0,f(n).highlightedElement.value=r)},onBlur:t[1]||=async e=>{await E(),!e.defaultPrevented&&(o.value=!1)}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),Sn=C({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=B(),o=Z(),s=vn(),c=O(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(Bt,{bubbles:!0,cancelable:!0});r(`select`,e),await E(),e.defaultPrevented?c.value=!1:o.onClose()}}return(e,t)=>(w(),D(xn,x(n,{ref:f(i),onClick:l,onPointerdown:t[0]||=()=>{c.value=!0},onPointerup:t[1]||=async e=>{await E(),!e.defaultPrevented&&(c.value||e.currentTarget?.click())},onKeydown:t[2]||=async t=>{let n=f(s).searchRef.value!==``;e.disabled||n&&t.key===` `||f(J).includes(t.key)&&(t.currentTarget?.click(),t.preventDefault())}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Cn=C({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=n(r,i),o=X(),{forwardRef:s,currentElement:c}=B();return ye(c),(e,t)=>(w(),D(bn,x(f(a),{ref:f(s),"trap-focus":f(o).open.value,"disable-outside-pointer-events":f(o).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>f(o).onOpenChange(!1),onFocusOutside:t[1]||=P(e=>i(`focusOutside`,e),[`prevent`])}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),wn=C({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=n(e,t),i=X();return(e,t)=>(w(),D(bn,x(f(r),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>f(i).onOpenChange(!1)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Tn=C({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let i=n(e,t),a=X(),o=Z();return(e,t)=>(w(),D(f(r),{present:e.forceMount||f(a).open.value},{default:T(()=>[f(o).modal.value?(w(),D(Cn,c(x({key:0},{...e.$attrs,...f(i)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16)):(w(),D(wn,c(x({key:1},{...e.$attrs,...f(i)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),En=C({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(H),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Dn=C({__name:`MenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(L),x(t,{role:`separator`,"aria-orientation":`horizontal`}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),[On,kn]=t(`DropdownMenuRoot`),An=C({__name:`DropdownMenuRoot`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;B();let i=I(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=O(),{modal:s,dir:c}=m(n),l=o(c);return kn({open:i,onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},triggerId:``,triggerElement:a,contentId:``,modal:s,dir:l}),(e,t)=>(w(),D(f(_n),{open:f(i),"onUpdate:open":t[0]||=e=>ne(i)?i.value=e:null,dir:f(l),modal:f(s)},{default:T(()=>[A(e.$slots,`default`,{open:f(i)})]),_:3},8,[`open`,`dir`,`modal`]))}}),jn=C({__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let r=n(e,t);B();let i=On(),o=O(!1);function s(e){e.defaultPrevented||(o.value||setTimeout(()=>{i.triggerElement.value?.focus()},0),o.value=!1,e.preventDefault())}return i.contentId||=a(void 0,`reka-dropdown-menu-content`),(e,t)=>(w(),D(f(Tn),x(f(r),{id:f(i).contentId,"aria-labelledby":f(i)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`},onCloseAutoFocus:s,onInteractOutside:t[0]||=e=>{if(e.defaultPrevented)return;let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!f(i).modal.value||r)&&(o.value=!0),f(i).triggerElement.value?.contains(e.target)&&e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`]))}}),Mn=C({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=i(t);return B(),(e,t)=>(w(),D(f(Sn),c(M({...n,...f(r)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Nn=C({__name:`DropdownMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(En),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Pn=C({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return B(),(e,n)=>(w(),D(f(Dn),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Fn=C({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=On(),{forwardRef:r,currentElement:i}=B();return b(()=>{n.triggerElement=i}),n.triggerId||=a(void 0,`reka-dropdown-menu-trigger`),(e,i)=>(w(),D(f(fn),{"as-child":``},{default:T(()=>[l(f(L),{id:f(n).triggerId,ref:f(r),type:e.as===`button`?`button`:void 0,"as-child":t.asChild,as:e.as,"aria-haspopup":`menu`,"aria-expanded":f(n).open.value,"aria-controls":f(n).open.value?f(n).contentId:void 0,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,"data-state":f(n).open.value?`open`:`closed`,onClick:i[0]||=async t=>{!e.disabled&&t.button===0&&t.ctrlKey===!1&&(f(n)?.onOpenToggle(),await E(),f(n).open.value&&t.preventDefault())},onKeydown:i[1]||=ie(t=>{e.disabled||([`Enter`,` `].includes(t.key)&&f(n).onOpenToggle(),t.key===`ArrowDown`&&f(n).onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(t.key)&&t.preventDefault())},[`enter`,`space`,`arrow-down`])},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as-child`,`as`,`aria-expanded`,`aria-controls`,`data-disabled`,`disabled`,`data-state`])]),_:3}))}}),In=C({__name:`Avatar`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(w(),D(f(sn),{"data-slot":`avatar`,class:_(f(z)(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,t.class))},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`class`]))}}),Ln=C({__name:`AvatarFallback`,props:{delayMs:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=V(t,`class`);return(e,r)=>(w(),D(f(cn),x({"data-slot":`avatar-fallback`},f(n),{class:f(z)(`bg-muted flex size-full items-center justify-center rounded-full`,t.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Rn=C({__name:`AvatarImage`,props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(w(),D(f(dn),x({"data-slot":`avatar-image`},t,{class:`aspect-square size-full`}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),zn=[{soft:`bg-sky-100 text-sky-800 dark:bg-sky-950 dark:text-sky-200`,bar:`bg-sky-500`,text:`text-sky-700 dark:text-sky-300`},{soft:`bg-emerald-100 text-emerald-800 dark:bg-emerald-950 dark:text-emerald-200`,bar:`bg-emerald-500`,text:`text-emerald-700 dark:text-emerald-300`},{soft:`bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-200`,bar:`bg-amber-500`,text:`text-amber-700 dark:text-amber-300`},{soft:`bg-rose-100 text-rose-800 dark:bg-rose-950 dark:text-rose-200`,bar:`bg-rose-500`,text:`text-rose-700 dark:text-rose-300`},{soft:`bg-violet-100 text-violet-800 dark:bg-violet-950 dark:text-violet-200`,bar:`bg-violet-500`,text:`text-violet-700 dark:text-violet-300`},{soft:`bg-teal-100 text-teal-800 dark:bg-teal-950 dark:text-teal-200`,bar:`bg-teal-500`,text:`text-teal-700 dark:text-teal-300`},{soft:`bg-orange-100 text-orange-800 dark:bg-orange-950 dark:text-orange-200`,bar:`bg-orange-500`,text:`text-orange-700 dark:text-orange-300`},{soft:`bg-indigo-100 text-indigo-800 dark:bg-indigo-950 dark:text-indigo-200`,bar:`bg-indigo-500`,text:`text-indigo-700 dark:text-indigo-300`}],Bn={soft:`bg-muted text-muted-foreground`,bar:`bg-border`,text:`text-muted-foreground`};function Vn(e){let t=0;for(let n of String(e))t=t*31+n.codePointAt(0)>>>0;return t}function Hn(e){return e==null||e===``?Bn:zn[Vn(typeof e==`string`?e.trim().toLowerCase():e)%zn.length]}var Un={__name:`PersonAvatar`,props:{person:{type:Object,required:!0},class:{type:[String,Array,Object],default:``}},setup(e){let t=e,n=S(()=>Hn(t.person.id??t.person.name));return(t,r)=>(w(),D(f(In),{class:_(f(z)(`size-10`,t.$props.class))},{default:T(()=>[e.person.avatar_url?(w(),D(f(Rn),{key:0,src:e.person.avatar_url,alt:e.person.name},null,8,[`src`,`alt`])):j(``,!0),l(f(Ln),{class:_([`font-semibold`,n.value.soft])},{default:T(()=>[u(te(e.person.initials),1)]),_:1},8,[`class`])]),_:1},8,[`class`]))}},Wn=C({__name:`Sheet`,props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(w(),D(f(Rt),x({"data-slot":`sheet`},f(r)),{default:T(t=>[A(e.$slots,`default`,c(M(t)))]),_:3},16))}}),Gn=C({__name:`SheetOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=V(t,`class`);return(e,r)=>(w(),D(f(tn),x({"data-slot":`sheet-overlay`,class:f(z)(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,t.class)},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Kn=C({inheritAttrs:!1,__name:`SheetContent`,props:{class:{type:[Boolean,null,String,Object,Array]},side:{default:`right`},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=V(r,`class`,`side`),o=n(a,i);return(t,n)=>(w(),D(f(nn),null,{default:T(()=>[l(Gn),l(f($t),x({"data-slot":`sheet-content`,class:f(z)(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,e.side===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,e.side===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,e.side===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,e.side===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,r.class)},{...t.$attrs,...f(o)}),{default:T(()=>[A(t.$slots,`default`),l(f(zt),{class:`ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none`},{default:T(()=>[l(f(me),{class:`size-4`}),n[0]||=v(`span`,{class:`sr-only`},`Schließen`,-1)]),_:1})]),_:3},16,[`class`])]),_:3}))}}),qn=C({__name:`SheetHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(w(),y(`div`,{"data-slot":`sheet-header`,class:_(f(z)(`flex flex-col gap-1.5 p-4`,t.class))},[A(e.$slots,`default`)],2))}}),Jn=C({__name:`SheetTitle`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=V(t,`class`);return(e,r)=>(w(),D(f(rn),x({"data-slot":`sheet-title`,class:f(z)(`text-foreground font-semibold`,t.class)},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Yn=C({__name:`DropdownMenu`,props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(w(),D(f(An),x({"data-slot":`dropdown-menu`},f(r)),{default:T(t=>[A(e.$slots,`default`,c(M(t)))]),_:3},16))}}),Xn=C({inheritAttrs:!1,__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean},loop:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=V(r,`class`),o=n(a,i);return(e,t)=>(w(),D(f(Nn),null,{default:T(()=>[l(f(jn),x({"data-slot":`dropdown-menu-content`},{...e.$attrs,...f(o)},{class:f(z)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,r.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`])]),_:3}))}}),Zn=C({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean},variant:{default:`default`}},setup(t){let n=t,r=V(n,`inset`,`variant`,`class`),i=e(r);return(e,r)=>(w(),D(f(Mn),x({"data-slot":`dropdown-menu-item`,"data-inset":t.inset?``:void 0,"data-variant":t.variant},f(i),{class:f(z)(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`,n.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`data-inset`,`data-variant`,`class`]))}}),Qn=C({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=V(t,`class`);return(e,r)=>(w(),D(f(Pn),x({"data-slot":`dropdown-menu-separator`},f(n),{class:f(z)(`bg-border -mx-1 my-1 h-px`,t.class)}),null,16,[`class`]))}}),$n=C({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){let n=e(t);return(e,t)=>(w(),D(f(Fn),x({"data-slot":`dropdown-menu-trigger`},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),er={house:$e,newspaper:ft,"calendar-days":Ne,folder:Ge,"folder-open":We,"file-text":Ue,"file-down":He,"clipboard-list":Re,users:Ot,network:dt,"user-round":Dt,"user-plus":Et,cake:Me,"layout-grid":rt,info:Ce,"circle-help":Le,settings:vt,star:xt,bell:De,megaphone:G,clock:ze,plane:pt,receipt:ht,"graduation-cap":qe,briefcase:Ae,"list-checks":he,"book-open":ke,scale:gt,euro:Ve,"chart-column":Fe,landmark:tt,"building-2":ue,"map-pin":ct,"key-round":le,"shopping-cart":yt,truck:wt,monitor:ut,laptop:nt,headset:Xe,printer:mt,globe:Ke,mail:st,phone:we,"message-square":lt,link:ot,image:et,video:At,"heart-handshake":Ze,handshake:Ye,heart:Qe,stethoscope:St,baby:Ee,church:Ie,accessibility:Te,"shield-check":fe,lightbulb:at,sparkles:bt,trophy:Ct,leaf:it,utensils:kt,coffee:Be,car:Pe,bus:je,bike:Oe,wrench:jt,hammer:Je},Q=k(null),tr=null;function $(){return tr??=ae(()=>import(`./icon-set-B_oGzY3h.js`).then(e=>(Q.value={icons:e.default,aliases:e.aliases},Q.value)),[]),tr}function nr(e){let t=Q.value;return!t||!e?null:t.icons[e]??t.icons[t.aliases[e]]??null}var rr=[`stroke-width`,`innerHTML`],ir={__name:`AppIcon`,props:{name:{type:String,default:null},strokeWidth:{type:[Number,String],default:2}},setup(e){let t=e,n=S(()=>t.name?er[t.name]:null),r=S(()=>n.value?null:nr(t.name));return h(()=>{t.name&&!n.value&&$()}),(t,i)=>n.value?(w(),D(re(n.value),{key:0,"stroke-width":e.strokeWidth,"aria-hidden":`true`},null,8,[`stroke-width`])):e.name?(w(),y(`svg`,{key:1,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":e.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`,innerHTML:r.value??``},null,8,rr)):j(``,!0)}};export{Me as $,xt as A,ct as B,Rt as C,Ot as D,At as E,ft as F,et as G,ot as H,dt as I,Ue as J,Ge as K,ut as L,vt as M,_t as N,Dt as O,mt as P,Ne as Q,lt as R,zt as S,K as T,at as U,st as V,rt as W,ze as X,He as Y,Re as Z,nn as _,Qn as a,Kt as b,Yn as c,Kn as d,De as et,Wn as f,rn as g,Sn as h,$n as i,bt as j,Tt as k,Jn as l,Hn as m,Q as n,Zn as o,Un as p,We as q,$ as r,Xn as s,ir as t,qn as u,tn as v,q as w,Gt as x,$t as y,G as z}; \ No newline at end of file +import{a as e,d as t,i as n,n as r,o as i,r as a,s as o,u as s}from"./usePrimitiveElement-DC7UloPZ.js";import{$n as c,D as l,E as u,Ht as d,On as f,Q as p,Tn as m,Ut as h,Yt as g,Zn as _,_ as v,b as y,ct as b,et as x,ft as ee,g as S,k as C,mt as w,qt as T,tr as te,tt as E,un as ne,v as D,vn as O,wt as re,xn as k,xt as A,y as j,z as M}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as ie,S as N,w as P}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o as ae}from"./app-Cw5f57va.js";import{C as F,E as oe,S as se,b as I,d as L,k as R,l as z,p as B,s as V,v as ce}from"./dist-DtGNiYlK.js";import{c as le,l as ue,o as de,s as fe,t as pe}from"./RovingFocusGroup-D88K7krN.js";import{_ as me,b as he,c as ge,d as H,f as U,g as W,h as _e,l as ve,m as ye,p as be,s as xe,u as Se,x as Ce,y as we}from"./http-DmyDwIce.js";var Te=R({name:`accessibility`,size:24,node:[[`circle`,{cx:`16`,cy:`4`,r:`1`,key:`1grugj`}],[`path`,{d:`m18 19 1-7-6 1`,key:`r0i19z`}],[`path`,{d:`m5 8 3-3 5.5 3-2.36 3.5`,key:`9ptxx2`}],[`path`,{d:`M4.24 14.5a5 5 0 0 0 6.88 6`,key:`10kmtu`}],[`path`,{d:`M13.76 17.5a5 5 0 0 0-6.88-6`,key:`2qq6rc`}]]}),Ee=R({name:`baby`,size:24,node:[[`path`,{d:`M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5`,key:`1u7htd`}],[`path`,{d:`M15 12h.01`,key:`1k8ypt`}],[`path`,{d:`M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1`,key:`11xh7x`}],[`path`,{d:`M9 12h.01`,key:`157uk2`}]]}),De=R({name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]}),Oe=R({name:`bike`,size:24,node:[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]}),ke=R({name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]}),Ae=R({name:`briefcase`,size:24,node:[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]}),je=R({name:`bus`,size:24,node:[[`path`,{d:`M8 6v6`,key:`18i7km`}],[`path`,{d:`M15 6v6`,key:`1sg6z9`}],[`path`,{d:`M2 12h19.6`,key:`de5uta`}],[`path`,{d:`M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3`,key:`1wwztk`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}]]}),Me=R({name:`cake`,size:24,node:[[`path`,{d:`M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8`,key:`1w3rig`}],[`path`,{d:`M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1`,key:`n2jgmb`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M7 8v3`,key:`1qtyvj`}],[`path`,{d:`M12 8v3`,key:`hwp4zt`}],[`path`,{d:`M17 8v3`,key:`1i6e5u`}],[`path`,{d:`M7 4h.01`,key:`1bh4kh`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M17 4h.01`,key:`1upcoc`}]]}),Ne=R({name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]}),Pe=R({name:`car`,size:24,node:[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]}),Fe=R({name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]}),Ie=R({name:`church`,size:24,node:[[`path`,{d:`M10 9h4`,key:`u4k05v`}],[`path`,{d:`M12 7v5`,key:`ma6bk`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`m18 9 3.52 2.147a1 1 0 0 1 .48.854V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.999a1 1 0 0 1 .48-.854L6 9`,key:`flvdwo`}],[`path`,{d:`M6 21V7a1 1 0 0 1 .376-.782l5-3.999a1 1 0 0 1 1.249.001l5 4A1 1 0 0 1 18 7v14`,key:`a5i0n2`}]]}),Le=R({name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]}),Re=R({name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]}),ze=R({name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]}),Be=R({name:`coffee`,size:24,node:[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]}),Ve=R({name:`euro`,size:24,node:[[`path`,{d:`M4 10h12`,key:`1y6xl8`}],[`path`,{d:`M4 14h9`,key:`1loblj`}],[`path`,{d:`M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2`,key:`1j6lzo`}]]}),He=R({name:`file-down`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]}),Ue=R({name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]}),We=R({name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]}),Ge=R({name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),Ke=R({name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]}),qe=R({name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]}),Je=R({name:`hammer`,size:24,node:[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]}),Ye=R({name:`handshake`,size:24,node:[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]}),Xe=R({name:`headset`,size:24,node:[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]}),Ze=R({name:`heart-handshake`,size:24,node:[[`path`,{d:`M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762`,key:`17lmqv`}]]}),Qe=R({name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]}),$e=R({name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]}),et=R({name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]}),tt=R({name:`landmark`,size:24,node:[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z`,key:`yxxwt6`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]}),nt=R({name:`laptop`,size:24,node:[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]}),rt=R({name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]}),it=R({name:`leaf`,size:24,node:[[`path`,{d:`M11 20a10 10 0 0010-10 25.9 25.9 0 00-1.04-7.281 1 1 0 00-1.755-.325C15.833 5.5 13 5.5 9.8 6.1A7 7 0 0011 20`,key:`1wjnjv`}],[`path`,{d:`M2 21a5 5 0 012.911-4.544C7.613 15.212 8.351 15.24 11 13`,key:`c1ejpn`}]]}),at=R({name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]}),ot=R({name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]}),st=R({name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]}),ct=R({name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]}),G=R({name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]}),lt=R({name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]}),ut=R({name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]}),dt=R({name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]}),ft=R({name:`newspaper`,size:24,node:[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]}),pt=R({name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]}),mt=R({name:`printer`,size:24,node:[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]]}),ht=R({name:`receipt`,size:24,node:[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]}),gt=R({name:`scale`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]}),_t=R({name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]}),vt=R({name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]}),yt=R({name:`shopping-cart`,size:24,node:[[`path`,{d:`m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18`,key:`uebgi3`}],[`path`,{d:`M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25`,key:`1j7c9p`}],[`circle`,{cx:`18`,cy:`20`,r:`2`,key:`t9985n`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),bt=R({name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]}),xt=R({name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]}),St=R({name:`stethoscope`,size:24,node:[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]}),Ct=R({name:`trophy`,size:24,node:[[`path`,{d:`M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2`,key:`pwuv1l`}],[`path`,{d:`M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2`,key:`1y54w1`}],[`path`,{d:`M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3`,key:`e30mpu`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3`,key:`i0yafy`}]]}),wt=R({name:`truck`,size:24,node:[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]}),Tt=R({name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]}),Et=R({name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]}),Dt=R({name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]}),Ot=R({name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]}),kt=R({name:`utensils`,size:24,node:[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]],aliases:[`fork-knife`]}),At=R({name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]}),jt=R({name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]}),Mt=[`INPUT`,`TEXTAREA`];function K(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Mt.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;return v||_?b=Nt(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function Nt(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;let i=e.indexOf(t),a;if(a=i===-1?n.goForward?0:e.length-1:n.goForward?i+1:i-1,!n.loop&&(a<0||a>=e.length))return null;let o=e[(a+e.length)%e.length];return o?o.hasAttribute(`disabled`)&&o.getAttribute(`disabled`)!==`false`?Nt(e,o,n,r):o:null}function Pt(e){let t=oe(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e)e(n);else{let e=s(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=It(n.map(e=>e.textValue),t.value,i?.textValue),o=n.find(e=>e.textValue===a);return o&&o.ref.focus(),o?.ref}},resetTypeahead:()=>{t.value=``}}}function Ft(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function It(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ft(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}var[q,Lt]=t(`DialogRoot`),Rt=C({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=I(n,`open`,t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=O(),a=O(),{modal:o,unmountOnHide:s}=m(n);return Lt({open:r,modal:o,unmountOnHide:s,openModal:()=>{r.value=!0},onOpenChange:e=>{r.value=e},onOpenToggle:()=>{r.value=!r.value},contentId:``,titleId:``,descriptionId:``,triggerElement:i,contentElement:a}),(e,t)=>A(e.$slots,`default`,{open:f(r),close:()=>r.value=!1})}}),zt=C({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;B();let n=q();return(e,r)=>(w(),D(f(L),x(t,{type:e.as===`button`?`button`:void 0,onClick:r[0]||=e=>f(n).onOpenChange(!1)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`type`]))}}),Bt=`menu.itemSelect`,J=[`Enter`,` `],Vt=[`ArrowDown`,`PageUp`,`Home`],Ht=[`ArrowUp`,`PageDown`,`End`],Ut=[...Vt,...Ht];[...J],[...J];function Wt(e){return e?`open`:`closed`}function Gt(e){return e===`indeterminate`}function Kt(e){return Gt(e)?`indeterminate`:e?`checked`:`unchecked`}function qt(e){let t=s();for(let n of e)if(n===t||(n.focus(),s()!==t))return}function Jt(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Yt(e,t){return t?Jt({x:e.clientX,y:e.clientY},t):!1}function Y(e){return e.pointerType===`mouse`}var Xt=C({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=q(),{forwardRef:o,currentElement:c}=B();return i.titleId||=a(void 0,`reka-dialog-title`),i.descriptionId||=a(void 0,`reka-dialog-description`),b(()=>{i.contentElement=c,s()!==document.body&&(i.triggerElement.value=s())}),(e,t)=>(w(),D(f(U),{"as-child":``,loop:``,trapped:n.trapFocus,present:n.present,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:T(()=>[l(f(be),x({id:f(i).contentId,ref:f(o),as:e.as,"as-child":e.asChild,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":f(i).descriptionId,"aria-labelledby":f(i).titleId,"data-state":f(Wt)(f(i).open.value)},e.$attrs,{onDismiss:t[0]||=e=>f(i).onOpenChange(!1),onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[2]||=e=>r(`focusOutside`,e),onInteractOutside:t[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:t[4]||=e=>r(`pointerDownOutside`,e)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`present`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`,`present`]))}}),Zt=C({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,a=q(),o=i(r),{forwardRef:s,currentElement:c}=B(),l=S(()=>n.present?c.value:void 0);ye(l);let u=S(()=>{let{present:e,...t}=n;return t});return d(()=>n.present,(e,t)=>{!e&&t&&a.triggerElement.value?.focus()}),(e,t)=>(w(),D(Xt,x({...u.value,...f(o)},{ref:f(s),present:e.present,"trap-focus":f(a).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(e.preventDefault(),f(a).triggerElement.value?.focus())},onPointerDownOutside:t[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()},onFocusOutside:t[2]||=e=>{e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`present`,`trap-focus`,`disable-outside-pointer-events`]))}}),Qt=C({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=i(t);B();let a=q(),o=O(!1),s=O(!1),c=S(()=>{let{present:e,...t}=n;return t});return d(()=>n.present,(e,t)=>{!e&&t&&(o.value||a.triggerElement.value?.focus(),o.value=!1,s.value=!1)}),(e,t)=>(w(),D(Xt,x({...c.value,...f(r)},{present:e.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(o.value||f(a).triggerElement.value?.focus(),e.preventDefault()),o.value=!1,s.value=!1},onInteractOutside:t[1]||=e=>{e.defaultPrevented||(o.value=!0,e.detail.originalEvent.type===`pointerdown`&&(s.value=!0));let t=e.target;f(a).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&s.value&&e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`present`]))}}),$t=C({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,a=t,o=q(),s=i(a),{forwardRef:c}=B(),l=S(()=>n.forceMount||!o.unmountOnHide.value);return(e,t)=>(w(),D(f(r),{present:f(o).open.value,"force-mount":l.value},{default:T(({present:t})=>[f(o).modal.value?g((w(),D(Zt,x({key:0,ref:f(c),present:!l.value||t},{...n,...f(s),...e.$attrs}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`present`])),[[N,e.forceMount||f(o).unmountOnHide.value||t]]):g((w(),D(Qt,x({key:1,ref:f(c),present:!l.value||t},{...n,...f(s),...e.$attrs}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`present`])),[[N,e.forceMount||f(o).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`]))}}),en=C({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){let t=e,n=q(),r=W(t.present);return d(()=>t.present,e=>r.value=e),B(),(e,t)=>(w(),D(f(L),{as:e.as,"as-child":e.asChild,"data-state":f(n).open.value?`open`:`closed`,style:{"pointer-events":`auto`},onPointerdown:t[0]||=P(()=>{},[`left`,`self`,`prevent`])},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),tn=C({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=q(),{forwardRef:i}=B(),a=S(()=>t.forceMount||!n.unmountOnHide.value);return(e,t)=>f(n)?.modal.value?(w(),D(f(r),{key:0,present:f(n).open.value,"force-mount":a.value},{default:T(({present:t})=>[g(l(en,x(e.$attrs,{ref:f(i),as:e.as,"as-child":e.asChild,present:!a.value||t}),{default:T(()=>[A(e.$slots,`default`)]),_:2},1040,[`as`,`as-child`,`present`]),[[N,e.forceMount||f(n).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`])):j(`v-if`,!0)}}),nn=C({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(H),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),rn=C({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=q();return B(),(e,r)=>(w(),D(f(L),x(t,{id:f(n).titleId}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`]))}}),[an,on]=t(`AvatarRoot`),sn=C({__name:`AvatarRoot`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return B(),on({imageLoadingStatus:O(`idle`)}),(e,t)=>(w(),D(f(L),{"as-child":e.asChild,as:e.as},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),cn=C({__name:`AvatarFallback`,props:{delayMs:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=an();B();let r=O(t.delayMs===void 0);return h(e=>{if(t.delayMs&&F){let n=window.setTimeout(()=>{r.value=!0},t.delayMs);e(()=>{window.clearTimeout(n)})}}),(e,t)=>r.value&&f(n).imageLoadingStatus.value!==`loaded`?(w(),D(f(L),{key:0,"as-child":e.asChild,as:e.as},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`])):j(`v-if`,!0)}});function ln(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function un(e,{referrerPolicy:t,crossOrigin:n}={}){let r=O(!1),i=O(null),a=S(()=>r.value?(!i.value&&F&&(i.value=new window.Image),i.value):null),o=O(ln(a.value,e.value)),s=e=>()=>{r.value&&(o.value=e)};return b(()=>{r.value=!0,h(r=>{let i=a.value;if(!i)return;o.value=ln(i,e.value);let c=s(`loaded`),l=s(`error`);i.addEventListener(`load`,c),i.addEventListener(`error`,l),t?.value&&(i.referrerPolicy=t.value),typeof n?.value==`string`&&(i.crossOrigin=n.value),r(()=>{i.removeEventListener(`load`,c),i.removeEventListener(`error`,l)})})}),ee(()=>{r.value=!1}),o}var dn=C({__name:`AvatarImage`,props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`img`}},emits:[`loadingStatusChange`],setup(e,{emit:t}){let n=e,r=t,{src:i,referrerPolicy:a,crossOrigin:o}=m(n);B();let s=an(),c=un(i,{referrerPolicy:a,crossOrigin:o});return d(c,e=>{r(`loadingStatusChange`,e),e!==`idle`&&(s.imageLoadingStatus.value=e)},{immediate:!0}),(e,t)=>g((w(),D(f(L),{role:`img`,"as-child":e.asChild,as:e.as,src:f(i),referrerpolicy:f(a),crossorigin:f(o)},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`src`,`referrerpolicy`,`crossorigin`])),[[N,f(c)===`loaded`]])}}),fn=C({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(ve),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}});function pn(){let e=O(!1);return b(()=>{ce(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),ce([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}var mn=se(pn),[X,hn]=t([`MenuRoot`,`MenuSub`],`MenuContext`),[Z,gn]=t(`MenuRoot`),_n=C({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=m(n),s=o(a),c=I(n,`open`,r),l=O(),u=mn();return hn({open:c,onOpenChange:e=>{c.value=e},content:l,onContentChange:e=>{l.value=e}}),gn({onClose:()=>{c.value=!1},isUsingKeyboardRef:u,dir:s,modal:i}),(e,t)=>(w(),D(f(Se),null,{default:T(()=>[A(e.$slots,`default`)]),_:3}))}}),[vn,yn]=t(`MenuContent`),bn=C({__name:`MenuContentImpl`,props:p({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...xe}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=X(),a=Z(),{trapFocus:o,disableOutsidePointerEvents:c,loop:u}=m(n);_e(),W(c.value);let p=O(``),h=O(0),g=O(0),_=O(null),v=O(`right`),y=O(0),b=O(null),x=O(),{forwardRef:S,currentElement:C}=B(),{handleTypeaheadSearch:te}=Pt(),E=O();function ne(e){let t=K(e,E.value||s(),C.value,{loop:u.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!1,attributeName:`[data-reka-collection-item]:not([data-disabled])`});t&&(E.value=t,t.scrollIntoView({block:`nearest`}))}function re(){E.value&&E.value.click()}let k=O(),j=O();d(E,e=>{if(j.value&&(e===void 0||e!==j.value.trigger.value)){if(e===void 0)return;j.value.onOpenChange(!1),j.value=void 0}}),d(C,e=>{i.onContentChange(e)}),ee(()=>{window.clearTimeout(h.value)});function M(e){return v.value===_.value?.side&&Yt(e,_.value?.area)}async function ie(e){r(`openAutoFocus`,e),!e.defaultPrevented&&(e.preventDefault(),C.value?.focus({preventScroll:!0}))}function N(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=[`input`,`textarea`].includes(t.tagName.toLowerCase()),i=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1,c=K(e,s(),C.value,{loop:u.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(c)return c?.focus();if(e.code===`Space`)return;let l=x.value?.getItems()??[];if(n&&(e.key===`Tab`&&a.modal.value&&e.preventDefault(),!i&&o&&!r&&te(e.key,l)),e.target!==C.value||!Ut.includes(e.key))return;e.preventDefault();let d=[...l.map(e=>e.ref)];Ht.includes(e.key)&&d.reverse(),qt(d)}function P(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(h.value),p.value=``)}function ae(e){if(!Y(e))return;let t=e.target,n=y.value!==e.clientX;if((e?.currentTarget)?.contains(t)&&n){let t=e.clientX>y.value?`right`:`left`;v.value=t,y.value=e.clientX}}function F(e){Y(e)&&k.value&&k.value.focus()}return yn({onItemEnter:e=>!!M(e),onItemLeave:e=>M(e)?!0:([`INPUT`,`TEXTAREA`].includes(s()?.tagName||``)||C.value?.focus(),b.value=null,!1),onTriggerLeave:e=>!!M(e),searchRef:p,highlightedElement:E,onKeydownNavigation:ne,onKeydownEnter:re,filterElement:k,onFilterElementChange:e=>{k.value=e},activeSubmenuContext:j,pointerGraceTimerRef:g,onPointerGraceIntentChange:e=>{_.value=e}}),(e,t)=>(w(),D(f(U),{"as-child":``,trapped:f(o),onMountAutoFocus:ie,onUnmountAutoFocus:t[7]||=e=>r(`closeAutoFocus`,e)},{default:T(()=>[l(f(be),{"as-child":``,"disable-outside-pointer-events":f(c),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[4]||=e=>r(`focusOutside`,e),onInteractOutside:t[5]||=e=>r(`interactOutside`,e),onDismiss:t[6]||=e=>r(`dismiss`)},{default:T(()=>[l(f(pe),{ref_key:`rovingFocusGroupRef`,ref:x,"current-tab-stop-id":b.value,"onUpdate:currentTabStopId":t[0]||=e=>b.value=e,"as-child":``,orientation:`vertical`,dir:f(a).dir.value,loop:f(u),onEntryFocus:t[1]||=e=>{r(`entryFocus`,e),f(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:T(()=>[l(f(ge),{ref:f(S),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":f(Wt)(f(i).open.value),dir:f(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:N,onBlur:P,onPointermove:ae,onPointerenter:F},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),xn=C({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=vn(),{forwardRef:r,currentElement:i}=B(),{CollectionItem:a}=de(),o=O(!1),c=S(()=>o.value||i.value!=null&&n.highlightedElement.value===i.value);async function u(e){if(!e.defaultPrevented&&Y(e)){if(t.disabled)n.onItemLeave(e);else if(!n.onItemEnter(e)){let t=e.currentTarget;n.highlightedElement.value=t,[`INPUT`,`TEXTAREA`].includes(s()?.tagName||``)||t.focus({preventScroll:!0})}}}async function d(e){await E(),!e.defaultPrevented&&Y(e)&&n.highlightedElement.value===i.value&&!n.onItemLeave(e)&&n.highlightedElement.value===i.value&&(n.highlightedElement.value=void 0)}return(e,t)=>(w(),D(f(a),{value:{textValue:e.textValue}},{default:T(()=>[l(f(L),x({ref:f(r),role:`menuitem`,tabindex:`-1`},e.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":c.value?``:void 0,onPointermove:u,onPointerleave:d,onFocus:t[0]||=async t=>{let r=t.currentTarget;await E(),!(t.defaultPrevented||e.disabled)&&(o.value=!0,f(n).highlightedElement.value=r)},onBlur:t[1]||=async e=>{await E(),!e.defaultPrevented&&(o.value=!1)}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),Sn=C({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=B(),o=Z(),s=vn(),c=O(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(Bt,{bubbles:!0,cancelable:!0});r(`select`,e),await E(),e.defaultPrevented?c.value=!1:o.onClose()}}return(e,t)=>(w(),D(xn,x(n,{ref:f(i),onClick:l,onPointerdown:t[0]||=()=>{c.value=!0},onPointerup:t[1]||=async e=>{await E(),!e.defaultPrevented&&(c.value||e.currentTarget?.click())},onKeydown:t[2]||=async t=>{let n=f(s).searchRef.value!==``;e.disabled||n&&t.key===` `||f(J).includes(t.key)&&(t.currentTarget?.click(),t.preventDefault())}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Cn=C({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=n(r,i),o=X(),{forwardRef:s,currentElement:c}=B();return ye(c),(e,t)=>(w(),D(bn,x(f(a),{ref:f(s),"trap-focus":f(o).open.value,"disable-outside-pointer-events":f(o).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>f(o).onOpenChange(!1),onFocusOutside:t[1]||=P(e=>i(`focusOutside`,e),[`prevent`])}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),wn=C({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=n(e,t),i=X();return(e,t)=>(w(),D(bn,x(f(r),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>f(i).onOpenChange(!1)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Tn=C({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let i=n(e,t),a=X(),o=Z();return(e,t)=>(w(),D(f(r),{present:e.forceMount||f(a).open.value},{default:T(()=>[f(o).modal.value?(w(),D(Cn,c(x({key:0},{...e.$attrs,...f(i)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16)):(w(),D(wn,c(x({key:1},{...e.$attrs,...f(i)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),En=C({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(H),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Dn=C({__name:`MenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(L),x(t,{role:`separator`,"aria-orientation":`horizontal`}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),[On,kn]=t(`DropdownMenuRoot`),An=C({__name:`DropdownMenuRoot`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;B();let i=I(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=O(),{modal:s,dir:c}=m(n),l=o(c);return kn({open:i,onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},triggerId:``,triggerElement:a,contentId:``,modal:s,dir:l}),(e,t)=>(w(),D(f(_n),{open:f(i),"onUpdate:open":t[0]||=e=>ne(i)?i.value=e:null,dir:f(l),modal:f(s)},{default:T(()=>[A(e.$slots,`default`,{open:f(i)})]),_:3},8,[`open`,`dir`,`modal`]))}}),jn=C({__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let r=n(e,t);B();let i=On(),o=O(!1);function s(e){e.defaultPrevented||(o.value||setTimeout(()=>{i.triggerElement.value?.focus()},0),o.value=!1,e.preventDefault())}return i.contentId||=a(void 0,`reka-dropdown-menu-content`),(e,t)=>(w(),D(f(Tn),x(f(r),{id:f(i).contentId,"aria-labelledby":f(i)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`},onCloseAutoFocus:s,onInteractOutside:t[0]||=e=>{if(e.defaultPrevented)return;let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!f(i).modal.value||r)&&(o.value=!0),f(i).triggerElement.value?.contains(e.target)&&e.preventDefault()}}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`]))}}),Mn=C({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=i(t);return B(),(e,t)=>(w(),D(f(Sn),c(M({...n,...f(r)})),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Nn=C({__name:`DropdownMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(w(),D(f(En),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Pn=C({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return B(),(e,n)=>(w(),D(f(Dn),c(M(t)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),Fn=C({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=On(),{forwardRef:r,currentElement:i}=B();return b(()=>{n.triggerElement=i}),n.triggerId||=a(void 0,`reka-dropdown-menu-trigger`),(e,i)=>(w(),D(f(fn),{"as-child":``},{default:T(()=>[l(f(L),{id:f(n).triggerId,ref:f(r),type:e.as===`button`?`button`:void 0,"as-child":t.asChild,as:e.as,"aria-haspopup":`menu`,"aria-expanded":f(n).open.value,"aria-controls":f(n).open.value?f(n).contentId:void 0,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,"data-state":f(n).open.value?`open`:`closed`,onClick:i[0]||=async t=>{!e.disabled&&t.button===0&&t.ctrlKey===!1&&(f(n)?.onOpenToggle(),await E(),f(n).open.value&&t.preventDefault())},onKeydown:i[1]||=ie(t=>{e.disabled||([`Enter`,` `].includes(t.key)&&f(n).onOpenToggle(),t.key===`ArrowDown`&&f(n).onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(t.key)&&t.preventDefault())},[`enter`,`space`,`arrow-down`])},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as-child`,`as`,`aria-expanded`,`aria-controls`,`data-disabled`,`disabled`,`data-state`])]),_:3}))}}),In=C({__name:`Avatar`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(w(),D(f(sn),{"data-slot":`avatar`,class:_(f(z)(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,t.class))},{default:T(()=>[A(e.$slots,`default`)]),_:3},8,[`class`]))}}),Ln=C({__name:`AvatarFallback`,props:{delayMs:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=V(t,`class`);return(e,r)=>(w(),D(f(cn),x({"data-slot":`avatar-fallback`},f(n),{class:f(z)(`bg-muted flex size-full items-center justify-center rounded-full`,t.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Rn=C({__name:`AvatarImage`,props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(w(),D(f(dn),x({"data-slot":`avatar-image`},t,{class:`aspect-square size-full`}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),zn=[{soft:`bg-sky-100 text-sky-800 dark:bg-sky-950 dark:text-sky-200`,bar:`bg-sky-500`,text:`text-sky-700 dark:text-sky-300`},{soft:`bg-emerald-100 text-emerald-800 dark:bg-emerald-950 dark:text-emerald-200`,bar:`bg-emerald-500`,text:`text-emerald-700 dark:text-emerald-300`},{soft:`bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-200`,bar:`bg-amber-500`,text:`text-amber-700 dark:text-amber-300`},{soft:`bg-rose-100 text-rose-800 dark:bg-rose-950 dark:text-rose-200`,bar:`bg-rose-500`,text:`text-rose-700 dark:text-rose-300`},{soft:`bg-violet-100 text-violet-800 dark:bg-violet-950 dark:text-violet-200`,bar:`bg-violet-500`,text:`text-violet-700 dark:text-violet-300`},{soft:`bg-teal-100 text-teal-800 dark:bg-teal-950 dark:text-teal-200`,bar:`bg-teal-500`,text:`text-teal-700 dark:text-teal-300`},{soft:`bg-orange-100 text-orange-800 dark:bg-orange-950 dark:text-orange-200`,bar:`bg-orange-500`,text:`text-orange-700 dark:text-orange-300`},{soft:`bg-indigo-100 text-indigo-800 dark:bg-indigo-950 dark:text-indigo-200`,bar:`bg-indigo-500`,text:`text-indigo-700 dark:text-indigo-300`}],Bn={soft:`bg-muted text-muted-foreground`,bar:`bg-border`,text:`text-muted-foreground`};function Vn(e){let t=0;for(let n of String(e))t=t*31+n.codePointAt(0)>>>0;return t}function Hn(e){return e==null||e===``?Bn:zn[Vn(typeof e==`string`?e.trim().toLowerCase():e)%zn.length]}var Un={__name:`PersonAvatar`,props:{person:{type:Object,required:!0},class:{type:[String,Array,Object],default:``}},setup(e){let t=e,n=S(()=>Hn(t.person.id??t.person.name));return(t,r)=>(w(),D(f(In),{class:_(f(z)(`size-10`,t.$props.class))},{default:T(()=>[e.person.avatar_url?(w(),D(f(Rn),{key:0,src:e.person.avatar_url,alt:e.person.name},null,8,[`src`,`alt`])):j(``,!0),l(f(Ln),{class:_([`font-semibold`,n.value.soft])},{default:T(()=>[u(te(e.person.initials),1)]),_:1},8,[`class`])]),_:1},8,[`class`]))}},Wn=C({__name:`Sheet`,props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(w(),D(f(Rt),x({"data-slot":`sheet`},f(r)),{default:T(t=>[A(e.$slots,`default`,c(M(t)))]),_:3},16))}}),Gn=C({__name:`SheetOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=V(t,`class`);return(e,r)=>(w(),D(f(tn),x({"data-slot":`sheet-overlay`,class:f(z)(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,t.class)},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Kn=C({inheritAttrs:!1,__name:`SheetContent`,props:{class:{type:[Boolean,null,String,Object,Array]},side:{default:`right`},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=V(r,`class`,`side`),o=n(a,i);return(t,n)=>(w(),D(f(nn),null,{default:T(()=>[l(Gn),l(f($t),x({"data-slot":`sheet-content`,class:f(z)(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,e.side===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,e.side===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,e.side===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,e.side===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,r.class)},{...t.$attrs,...f(o)}),{default:T(()=>[A(t.$slots,`default`),l(f(zt),{class:`ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none`},{default:T(()=>[l(f(me),{class:`size-4`}),n[0]||=v(`span`,{class:`sr-only`},`Schließen`,-1)]),_:1})]),_:3},16,[`class`])]),_:3}))}}),qn=C({__name:`SheetHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(w(),y(`div`,{"data-slot":`sheet-header`,class:_(f(z)(`flex flex-col gap-1.5 p-4`,t.class))},[A(e.$slots,`default`)],2))}}),Jn=C({__name:`SheetTitle`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=V(t,`class`);return(e,r)=>(w(),D(f(rn),x({"data-slot":`sheet-title`,class:f(z)(`text-foreground font-semibold`,t.class)},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`]))}}),Yn=C({__name:`DropdownMenu`,props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(w(),D(f(An),x({"data-slot":`dropdown-menu`},f(r)),{default:T(t=>[A(e.$slots,`default`,c(M(t)))]),_:3},16))}}),Xn=C({inheritAttrs:!1,__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean},loop:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let r=e,i=t,a=V(r,`class`),o=n(a,i);return(e,t)=>(w(),D(f(Nn),null,{default:T(()=>[l(f(jn),x({"data-slot":`dropdown-menu-content`},{...e.$attrs,...f(o)},{class:f(z)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,r.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`class`])]),_:3}))}}),Zn=C({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean},variant:{default:`default`}},setup(t){let n=t,r=V(n,`inset`,`variant`,`class`),i=e(r);return(e,r)=>(w(),D(f(Mn),x({"data-slot":`dropdown-menu-item`,"data-inset":t.inset?``:void 0,"data-variant":t.variant},f(i),{class:f(z)(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`,n.class)}),{default:T(()=>[A(e.$slots,`default`)]),_:3},16,[`data-inset`,`data-variant`,`class`]))}}),Qn=C({__name:`DropdownMenuSeparator`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=V(t,`class`);return(e,r)=>(w(),D(f(Pn),x({"data-slot":`dropdown-menu-separator`},f(n),{class:f(z)(`bg-border -mx-1 my-1 h-px`,t.class)}),null,16,[`class`]))}}),$n=C({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){let n=e(t);return(e,t)=>(w(),D(f(Fn),x({"data-slot":`dropdown-menu-trigger`},f(n)),{default:T(()=>[A(e.$slots,`default`)]),_:3},16))}}),er={house:$e,newspaper:ft,"calendar-days":Ne,folder:Ge,"folder-open":We,"file-text":Ue,"file-down":He,"clipboard-list":Re,users:Ot,network:dt,"user-round":Dt,"user-plus":Et,cake:Me,"layout-grid":rt,info:Ce,"circle-help":Le,settings:vt,star:xt,bell:De,megaphone:G,clock:ze,plane:pt,receipt:ht,"graduation-cap":qe,briefcase:Ae,"list-checks":he,"book-open":ke,scale:gt,euro:Ve,"chart-column":Fe,landmark:tt,"building-2":ue,"map-pin":ct,"key-round":le,"shopping-cart":yt,truck:wt,monitor:ut,laptop:nt,headset:Xe,printer:mt,globe:Ke,mail:st,phone:we,"message-square":lt,link:ot,image:et,video:At,"heart-handshake":Ze,handshake:Ye,heart:Qe,stethoscope:St,baby:Ee,church:Ie,accessibility:Te,"shield-check":fe,lightbulb:at,sparkles:bt,trophy:Ct,leaf:it,utensils:kt,coffee:Be,car:Pe,bus:je,bike:Oe,wrench:jt,hammer:Je},Q=k(null),tr=null;function $(){return tr??=ae(()=>import(`./icon-set-B_oGzY3h.js`).then(e=>(Q.value={icons:e.default,aliases:e.aliases},Q.value)),[]),tr}function nr(e){let t=Q.value;return!t||!e?null:t.icons[e]??t.icons[t.aliases[e]]??null}var rr=[`stroke-width`,`innerHTML`],ir={__name:`AppIcon`,props:{name:{type:String,default:null},strokeWidth:{type:[Number,String],default:2}},setup(e){let t=e,n=S(()=>t.name?er[t.name]:null),r=S(()=>n.value?null:nr(t.name));return h(()=>{t.name&&!n.value&&$()}),(t,i)=>n.value?(w(),D(re(n.value),{key:0,"stroke-width":e.strokeWidth,"aria-hidden":`true`},null,8,[`stroke-width`])):e.name?(w(),y(`svg`,{key:1,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":e.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`,innerHTML:r.value??``},null,8,rr)):j(``,!0)}};export{Me as $,xt as A,ct as B,Rt as C,Ot as D,At as E,ft as F,et as G,ot as H,dt as I,Ue as J,Ge as K,ut as L,vt as M,_t as N,Dt as O,mt as P,Ne as Q,lt as R,zt as S,K as T,at as U,st as V,rt as W,ze as X,He as Y,Re as Z,nn as _,Qn as a,Kt as b,Yn as c,Kn as d,De as et,Wn as f,rn as g,Sn as h,$n as i,bt as j,Tt as k,Jn as l,Hn as m,Q as n,Zn as o,Un as p,We as q,$ as r,Xn as s,ir as t,qn as u,tn as v,q as w,Gt as x,$t as y,G as z}; \ No newline at end of file diff --git a/public/build/assets/AppLayout-B1gBMLPE.js b/public/build/assets/AppLayout-9kc4awMB.js similarity index 99% rename from public/build/assets/AppLayout-B1gBMLPE.js rename to public/build/assets/AppLayout-9kc4awMB.js index 5ae8d5ec..e110984b 100644 --- a/public/build/assets/AppLayout-B1gBMLPE.js +++ b/public/build/assets/AppLayout-9kc4awMB.js @@ -1 +1 @@ -import{a as e,d as t,i as n,n as r,o as i,r as a}from"./usePrimitiveElement-DC7UloPZ.js";import{$n as o,D as s,E as c,Ht as l,On as u,Tn as d,Yt as f,Zn as p,_ as m,b as h,bt as g,ct as _,et as v,g as y,it as b,k as x,mt as S,o as C,qt as w,tr as T,tt as E,v as D,vn as O,wt as k,xt as A,y as j,z as M}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as N,w as P,x as ee}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as F,i as I,n as L,t as R}from"./app-CNhdlRDG.js";import{O as z,T as te,b as ne,c as re,d as B,k as V,l as ie,p as H,s as ae,t as oe}from"./dist-DtGNiYlK.js";import{F as se,L as ce,M as le,N as ue,O as de,R as fe,a as U,b as pe,c as W,d as me,et as he,f as ge,h as _e,i as G,k as ve,l as ye,o as K,p as be,s as q,t as J,u as xe,w as Se,x as Ce}from"./AppIcon-D91Q4hzR.js";import{C as Y,a as we,i as Te,n as Ee,r as De,t as X}from"./http-DmyDwIce.js";import{t as Oe}from"./FileIcon-BLwyvOt_.js";import{t as ke}from"./BrandLogo-7ynQExZl.js";import{a as Ae}from"./format-BsuBtvUs.js";var je=V({name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]}),Me=V({name:`check-check`,size:24,node:[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]}),Ne=V({name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]}),Pe=V({name:`file-check`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]}),Fe=V({name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]}),Ie=V({name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]}),Le=V({name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]}),Re=V({name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]}),ze=V({name:`user-round-pen`,size:24,node:[[`path`,{d:`M2 21a8 8 0 0 1 10.821-7.487`,key:`1c8h7z`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}]]}),Be=x({__name:`DialogTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Se(),{forwardRef:r,currentElement:i}=H();return n.contentId||=a(void 0,`reka-dialog-content`),_(()=>{n.triggerElement.value=i.value}),(e,i)=>(S(),D(u(B),v(t,{ref:u(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":u(n).open.value||!1,"aria-controls":u(n).open.value?u(n).contentId:void 0,"data-state":u(n).open.value?`open`:`closed`,onClick:u(n).onOpenToggle}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`onClick`]))}}),[Ve,He]=t([`MenuCheckboxItem`,`MenuRadioItem`],`MenuItemIndicatorContext`),Ue=x({__name:`MenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=Ve({modelValue:O(!1)});return(e,n)=>(S(),D(u(r),{present:e.forceMount||u(Ce)(u(t).modelValue.value)||u(t).modelValue.value===!0},{default:w(()=>[s(u(B),{as:e.as,"as-child":e.asChild,"data-state":u(pe)(u(t).modelValue.value)},{default:w(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`])]),_:3},8,[`present`]))}}),[We,Ge]=t(`MenuGroup`),Ke=x({__name:`MenuGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=a(void 0,`reka-menu-group`);return Ge({id:n}),(e,r)=>(S(),D(u(B),v({role:`group`},t,{"aria-labelledby":u(n)}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),qe=x({__name:`MenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e,n=We({id:``});return(e,r)=>(S(),D(u(B),v(t,{id:u(n).id||void 0}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`id`]))}}),[Je,Ye]=t(`MenuRadioGroup`),Xe=x({__name:`MenuRadioGroup`,props:{modelValue:{type:null,required:!1,default:``},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=te(r,[`modelValue`]),s=e(a),c=ne(r,`modelValue`,i);return Ye({modelValue:c,onValueChange:e=>{c.value=e}}),(e,t)=>(S(),D(Ke,o(M(u(s))),{default:w(()=>[A(e.$slots,`default`,{modelValue:u(c)})]),_:3},16))}}),Ze=x({__name:`MenuRadioItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(t,{emit:n}){let r=t,i=n,a=te(r,[`value`]),o=e(a),{value:s}=d(r),c=Je(),l=y(()=>c.modelValue.value===s?.value);return He({modelValue:l}),(e,t)=>(S(),D(_e,v({role:`menuitemradio`},u(o),{"aria-checked":l.value,"data-state":u(pe)(l.value),onSelect:t[0]||=async e=>{i(`select`,e),u(c).onValueChange(u(s))}}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`aria-checked`,`data-state`]))}}),Qe=x({__name:`DropdownMenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return H(),(e,n)=>(S(),D(u(Ue),o(M(t)),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),$e=x({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return H(),(e,n)=>(S(),D(u(qe),o(M(t)),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),et=x({__name:`DropdownMenuRadioGroup`,props:{modelValue:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=i(t);return H(),(e,t)=>(S(),D(u(Xe),o(M({...n,...u(r)})),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),tt=x({__name:`DropdownMenuRadioItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let r=n(e,t);return H(),(e,t)=>(S(),D(u(Ze),o(M(u(r))),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),nt=x({__name:`SheetTrigger`,props:{asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(S(),D(u(Be),v({"data-slot":`sheet-trigger`},t),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),Z=x({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},setup(t){let n=t,r=ae(n,`class`,`inset`),i=e(r);return(e,r)=>(S(),D(u($e),v({"data-slot":`dropdown-menu-label`,"data-inset":t.inset?``:void 0},u(i),{class:u(ie)(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n.class)}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`data-inset`,`class`]))}}),rt=x({__name:`DropdownMenuRadioGroup`,props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(S(),D(u(et),v({"data-slot":`dropdown-menu-radio-group`},u(r)),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),it={class:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`},at=x({__name:`DropdownMenuRadioItem`,props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`select`],setup(e,{emit:t}){let r=e,i=t,a=ae(r,`class`),o=n(a,i);return(e,t)=>(S(),D(u(tt),v({"data-slot":`dropdown-menu-radio-item`},u(o),{class:u(ie)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r.class)}),{default:w(()=>[m(`span`,it,[s(u(Qe),null,{default:w(()=>[A(e.$slots,`indicator-icon`,{},()=>[s(u(Ne),{class:`size-2 fill-current`})])]),_:3})]),A(e.$slots,`default`)]),_:3},16,[`class`]))}}),ot={key:0,class:`absolute top-1.5 right-1.5 grid h-4 min-w-4 place-items-center rounded-full bg-brand px-1 text-[10px] leading-none font-semibold text-brand-foreground`},st={class:`flex items-center justify-between border-b px-4 py-3`},ct={class:`max-h-[60vh] overflow-y-auto`},lt={key:0,class:`grid place-items-center py-8`},ut={key:1,class:`px-4 py-8 text-center text-sm text-muted-foreground`},dt={key:2,class:`divide-y`},ft=[`onClick`],pt={class:`min-w-0 flex-1`},mt={key:0,class:`mt-0.5 line-clamp-2 block text-[13px] text-muted-foreground`},ht={class:`mt-1 block text-xs text-muted-foreground`},gt={key:0,class:`mt-2 size-2 shrink-0 rounded-full bg-brand`,"aria-label":`ungelesen`},_t={__name:`NotificationBell`,setup(e){let t=I(),n=y(()=>t.props.notifications?.unread??0),r=O(null),i=O(null),a=y(()=>i.value??n.value),o={"file-check":Pe,newspaper:se,undo:ve,message:fe};async function l(e){if(!e)return;r.value=null;let t=await X.get(`/benachrichtigungen`);r.value=t.notifications,i.value=t.unread}async function d(){await X.post(`/benachrichtigungen/gelesen`),r.value=r.value.map(e=>({...e,read:!0})),i.value=0}function f(e){i.value=null,F.visit(`/benachrichtigungen/${e.id}`)}return(e,t)=>(S(),D(u(Te),{"onUpdate:open":l},{default:w(()=>[s(u(Ee),{class:`relative grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground`,"aria-label":a.value?`Benachrichtigungen, ${a.value} ungelesen`:`Benachrichtigungen`},{default:w(()=>[s(u(he),{class:`size-5`}),a.value?(S(),h(`span`,ot,T(a.value>9?`9+`:a.value),1)):j(``,!0)]),_:1},8,[`aria-label`]),s(u(De),{align:`end`,class:`w-[22rem] p-0`},{default:w(()=>[m(`div`,st,[t[1]||=m(`h2`,{class:`text-sm font-semibold`},`Benachrichtigungen`,-1),a.value?(S(),h(`button`,{key:0,type:`button`,class:`inline-flex items-center gap-1 text-xs font-medium text-brand-text hover:underline`,onClick:d},[s(u(Me),{class:`size-3.5`}),t[0]||=c(` Alle gelesen `,-1)])):j(``,!0)]),m(`div`,ct,[r.value===null?(S(),h(`div`,lt,[s(u(z),{class:`size-5 animate-spin text-muted-foreground`})])):r.value.length?(S(),h(`ul`,dt,[(S(!0),h(C,null,g(r.value,e=>(S(),h(`li`,{key:e.id},[m(`button`,{type:`button`,class:`flex w-full gap-3 px-4 py-3 text-left hover:bg-accent/60`,onClick:t=>f(e)},[m(`span`,{class:p([`mt-0.5 grid size-8 shrink-0 place-items-center rounded-full`,e.read?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-text`])},[(S(),D(k(o[e.icon]??u(he)),{class:`size-4`}))],2),m(`span`,pt,[m(`span`,{class:p([`block text-sm`,e.read?`text-foreground/80`:`font-semibold`])},T(e.title),3),e.body?(S(),h(`span`,mt,T(e.body),1)):j(``,!0),m(`span`,ht,T(u(Ae)(e.created_at)),1)]),e.read?j(``,!0):(S(),h(`span`,gt))],8,ft)]))),128))])):(S(),h(`p`,ut,`Keine Benachrichtigungen.`))])]),_:1})]),_:1}))}},vt=[`href`,`target`,`rel`],Q={__name:`NavLink`,props:{item:{type:Object,required:!0}},setup(e){return(t,n)=>e.item.new_tab||!e.item.href.startsWith(`/`)?(S(),h(`a`,{key:0,href:e.item.href,target:e.item.new_tab?`_blank`:void 0,rel:e.item.new_tab?`noopener`:void 0},[A(t.$slots,`default`)],8,vt)):(S(),D(u(L),{key:1,href:e.item.href},{default:w(()=>[A(t.$slots,`default`)]),_:3},8,[`href`]))}},yt=e=>String(e??``).replace(/[&<>"']/g,e=>({"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`})[e]);function $(e,t){let n=yt(e),r=String(t??``).trim().split(/\s+/).filter(e=>e.length>=2).map(e=>yt(e).replace(/[.*+?^${}()|[\]\\]/g,`\\$&`));return r.length?n.replace(RegExp(`(${r.join(`|`)})`,`gi`),`$1`):n}var bt={class:`relative block`},xt=[`aria-expanded`],St={key:0,id:`global-search-results`,class:`absolute top-full right-0 z-50 mt-2 max-h-[min(70vh,560px)] w-[min(92vw,30rem)] overflow-y-auto rounded-lg border bg-popover text-popover-foreground shadow-lg`},Ct={class:`flex items-center gap-2 px-4 pt-3 pb-1 text-[11px] font-semibold tracking-wider text-muted-foreground uppercase`},wt={class:`pb-2`},Tt=[`src`],Et={class:`min-w-0 flex-1`},Dt=[`innerHTML`],Ot={key:0,class:`block truncate text-xs text-muted-foreground`},kt=[`innerHTML`],At={key:1,class:`px-4 py-6 text-center text-sm text-muted-foreground`},jt={key:2,class:`px-4 py-6 text-center text-sm text-muted-foreground`},Mt={__name:`GlobalSearchBox`,props:{initial:{type:String,default:``}},setup(e){let t=e,n=O(null),r=O(null),i=O(t.initial),a=O([]),o=O(!1),d=O(!1),_=O(-1),v=0,b=y(()=>a.value.flatMap(e=>e.items)),x=(e,t)=>b.value.indexOf(t),E=re(async e=>{let t=++v;try{let n=await X.get(`/suche/live?q=${encodeURIComponent(e)}`);t===v&&(a.value=n.groups,_.value=-1)}catch{t===v&&(a.value=[])}finally{t===v&&(o.value=!1)}},220);l(i,e=>{if(e.trim().length<2){v++,a.value=[],o.value=!1;return}o.value=!0,d.value=!0,E(e.trim())}),oe(n,()=>d.value=!1);function A(e){b.value.length&&(d.value=!0,_.value=(_.value+e+b.value.length)%b.value.length)}function M(e){d.value=!1,e.external?window.location.href=e.url:F.visit(e.url)}function I(){let e=b.value[_.value];if(e)return M(e);i.value.trim().length<2||(d.value=!1,F.get(`/suche`,{q:i.value.trim()}))}let R=y(()=>d.value&&i.value.trim().length>=2);return(e,t)=>(S(),h(`div`,{ref_key:`root`,ref:n,class:`relative`},[m(`form`,{role:`search`,onSubmit:P(I,[`prevent`])},[m(`label`,bt,[t[7]||=m(`span`,{class:`sr-only`},`Portal durchsuchen`,-1),s(u(ue),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),f(m(`input`,{ref_key:`input`,ref:r,"onUpdate:modelValue":t[0]||=e=>i.value=e,type:`search`,placeholder:`Portal durchsuchen …`,autocomplete:`off`,role:`combobox`,"aria-expanded":R.value,"aria-controls":`global-search-results`,class:`h-10 w-full rounded-md border border-input bg-card pr-9 pl-9 text-sm shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`,onFocus:t[1]||=e=>d.value=!0,onKeydown:[t[2]||=N(P(e=>A(1),[`prevent`]),[`down`]),t[3]||=N(P(e=>A(-1),[`prevent`]),[`up`]),t[4]||=N(e=>d.value=!1,[`esc`])]},null,40,xt),[[ee,i.value]]),o.value?(S(),D(u(z),{key:0,class:`absolute top-1/2 right-3 size-4 -translate-y-1/2 animate-spin text-muted-foreground`})):j(``,!0)])],32),R.value?(S(),h(`div`,St,[a.value.length?(S(!0),h(C,{key:0},g(a.value,e=>(S(),h(`section`,{key:e.key,class:`border-b last:border-b-0`},[m(`h3`,Ct,[s(J,{name:e.icon,class:`size-3.5`},null,8,[`name`]),c(` `+T(e.label),1)]),m(`ul`,wt,[(S(!0),h(C,null,g(e.items,n=>(S(),h(`li`,{key:n.url},[(S(),D(k(n.external?`a`:u(L)),{href:n.url,class:p([`flex items-start gap-3 px-4 py-2 transition-colors`,x(e,n)===_.value?`bg-accent`:`hover:bg-accent/60`]),onClick:t[5]||=e=>d.value=!1,onMouseenter:t=>_.value=x(e,n)},{default:w(()=>[n.image?(S(),h(`img`,{key:0,src:n.image,alt:``,class:`mt-0.5 size-10 shrink-0 rounded-md object-cover`},null,8,Tt)):n.file?(S(),D(Oe,{key:1,extension:n.file,size:`sm`,class:`mt-0.5`},null,8,[`extension`])):j(``,!0),m(`span`,Et,[m(`span`,{class:`block truncate text-sm font-medium`,innerHTML:u($)(n.title,i.value)},null,8,Dt),n.meta?(S(),h(`span`,Ot,T(n.meta),1)):j(``,!0),n.excerpt?(S(),h(`span`,{key:1,class:`mt-0.5 line-clamp-1 text-xs text-muted-foreground`,innerHTML:u($)(n.excerpt,i.value)},null,8,kt)):j(``,!0)])]),_:2},1064,[`href`,`class`,`onMouseenter`]))]))),128))])]))),128)):o.value?(S(),h(`p`,jt,`Suche läuft …`)):(S(),h(`p`,At,`Keine Treffer für „`+T(i.value.trim())+`“.`,1)),s(u(L),{href:`/suche?q=${encodeURIComponent(i.value.trim())}`,class:`sticky bottom-0 flex items-center justify-between gap-2 border-t bg-muted/60 px-4 py-2.5 text-sm font-medium text-brand-text backdrop-blur hover:bg-muted`,onClick:t[6]||=e=>d.value=!1},{default:w(()=>[c(` Alle Ergebnisse für „`+T(i.value.trim())+`“ `,1),s(u(je),{class:`size-4`})]),_:1},8,[`href`])])):j(``,!0)],512))}},Nt=typeof window<`u`?window.matchMedia(`(prefers-color-scheme: dark)`):null;function Pt(e){let t=e===`dark`||e===`system`&&Nt?.matches;document.documentElement.classList.toggle(`dark`,t),document.documentElement.dataset.theme=e}Nt?.addEventListener(`change`,()=>Pt(document.documentElement.dataset.theme??`system`));function Ft(){let e=I(),t=y(()=>e.props.auth.user?.theme??`system`);function n(e){Pt(e),F.put(`/profil/darstellung`,{theme:e},{preserveScroll:!0,preserveState:!0})}return{preference:t,setPreference:n}}var It={class:`flex min-h-screen flex-col`},Lt={key:0,class:`flex flex-wrap items-center justify-center gap-x-3 gap-y-1 bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},Rt=[`data-header`],zt={class:`mx-auto flex h-16 max-w-[1440px] items-center gap-2 px-4 lg:gap-6 lg:px-6`},Bt={class:`grid gap-1 overflow-y-auto p-3`,"aria-label":`Hauptnavigation`},Vt={key:1,class:`px-3 pt-3 pb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},Ht={key:2,class:`mb-1 ml-3 grid gap-0.5 border-l pl-2`},Ut={class:`pointer-events-none invisible absolute inset-0 overflow-hidden`,"aria-hidden":`true`},Wt={class:`flex h-full items-stretch gap-1`},Gt={key:1,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Kt={key:1,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},qt={key:0,class:`flex`},Jt={key:0,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Yt={class:`ml-auto flex shrink-0 items-center gap-1`},Xt={key:0,href:`/admin`,class:`grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground`,"aria-label":`Administration`,title:`Administration`},Zt={class:`min-w-0`},Qt={class:`truncate text-sm font-semibold`},$t={class:`truncate text-xs text-muted-foreground`},en={href:`/admin`},tn={class:`mx-auto w-full max-w-[1440px] flex-1 px-4 py-6 lg:px-6 lg:py-7`},nn={key:1,class:`border-t`},rn={class:`mx-auto flex max-w-[1440px] flex-wrap items-center justify-between gap-x-6 gap-y-2 px-4 py-5 text-[13px] text-muted-foreground lg:px-6`},an={key:0},on={key:1,class:`flex flex-wrap gap-x-5 gap-y-1`,"aria-label":`Fußzeile`},sn=[`href`],cn=84,ln={__name:`AppLayout`,props:{title:{type:String,default:``}},setup(e){let t=I(),n=y(()=>t.props.auth.user),r=y(()=>t.props.branding),i=y(()=>r.value.header_style??`light`),a=y(()=>t.props.navigation),o=O(null),d=O(null),f=O(a.value.length);function v(){let e=o.value,t=d.value?[...d.value.children]:[];if(!e||!t.length)return;let n=t.map(e=>e.getBoundingClientRect().width+4),r=e.clientWidth;if(n.reduce((e,t)=>e+t,0)<=r){f.value=n.length;return}let i=cn,a=0;for(let e of n){if(i+e>r)break;i+=e,a++}f.value=Math.max(1,a)}let x;_(()=>{x=new ResizeObserver(v),o.value&&x.observe(o.value),E(v),document.fonts?.ready.then(v)}),b(()=>x?.disconnect()),l(a,()=>E(v));let M=y(()=>a.value.slice(0,f.value)),N=y(()=>a.value.slice(f.value)),{preference:P,setPreference:ee}=Ft(),F=O(!1),z=t.url.startsWith(`/suche?`)?new URLSearchParams(t.url.split(`?`)[1]).get(`q`)??``:``,te=[{value:`system`,label:`Wie im System`,icon:ce},{value:`light`,label:`Hell`,icon:Re},{value:`dark`,label:`Dunkel`,icon:Le}];return(t,l)=>(S(),h(C,null,[e.title?(S(),D(u(R),{key:0,title:e.title},null,8,[`title`])):j(``,!0),m(`div`,It,[r.value.preview?(S(),h(`div`,Lt,[...l[3]||=[c(` Vorschau des Entwurfs – so sieht das Portal nach dem Veröffentlichen aus. `,-1),m(`a`,{href:`?vorschau=aus`,class:`underline`},`Vorschau beenden`,-1)]])):j(``,!0),m(`header`,{class:p([`sticky top-0 z-40 border-b`,i.value===`light`?`bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/85`:``]),"data-header":i.value},[m(`div`,zt,[s(u(ge),{open:F.value,"onUpdate:open":l[2]||=e=>F.value=e},{default:w(()=>[s(u(nt),{class:`-ml-2 grid size-10 place-items-center rounded-md text-foreground/80 hover:bg-accent lg:hidden`,"aria-label":`Menü öffnen`},{default:w(()=>[s(u(Ie),{class:`size-5`})]),_:1}),s(u(me),{side:`left`,class:`w-72 p-0`},{default:w(()=>[s(u(xe),{class:`border-b px-5 py-4`},{default:w(()=>[s(u(ye),{class:`text-left`},{default:w(()=>[s(ke)]),_:1})]),_:1}),m(`nav`,Bt,[(S(!0),h(C,null,g(a.value,e=>(S(),h(C,{key:e.key},[e.href?(S(),D(Q,{key:0,item:e,class:p([`flex items-center gap-2.5 rounded-md px-3 py-2.5 text-[15px] font-medium`,e.active&&!e.children.some(e=>e.active)?`bg-brand-soft text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent`]),onClick:l[0]||=e=>F.value=!1},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-[18px] opacity-80`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`])):(S(),h(`p`,Vt,T(e.label),1)),e.children.length?(S(),h(`div`,Ht,[(S(!0),h(C,null,g(e.children,e=>(S(),D(Q,{key:e.key,item:e,class:p([`flex items-center gap-2 rounded-md px-3 py-2 text-sm`,e.active?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/75 hover:bg-accent`]),onClick:l[1]||=e=>F.value=!1},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 opacity-70`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`]))),128))])):j(``,!0)],64))),128))])]),_:1})]),_:1},8,[`open`]),s(u(L),{href:`/`,class:`shrink-0 text-foreground`,"aria-label":`Startseite`},{default:w(()=>[s(ke,{inverted:i.value!==`light`,compact:``},null,8,[`inverted`])]),_:1}),m(`nav`,{ref_key:`navBox`,ref:o,class:`relative hidden h-full min-w-0 flex-1 lg:block`,"aria-label":`Hauptnavigation`},[m(`div`,Ut,[m(`ul`,{ref_key:`navMeasure`,ref:d,class:`flex w-max gap-1`},[(S(!0),h(C,null,g(a.value,e=>(S(),h(`li`,{key:e.key,class:`flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap`},[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4`},null,8,[`name`])):j(``,!0),c(T(e.label),1),e.children.length?(S(),D(u(Y),{key:1,class:`size-4`})):j(``,!0)]))),128))],512)]),m(`ul`,Wt,[(S(!0),h(C,null,g(M.value,e=>(S(),h(`li`,{key:e.key,class:`flex`},[e.children.length?(S(),D(u(W),{key:0},{default:w(()=>[s(u(G),{class:p([`relative flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap transition-colors outline-none`,e.active?`text-foreground`:`text-foreground/70 hover:text-foreground`])},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 opacity-80`},null,8,[`name`])):j(``,!0),c(T(e.label)+` `,1),s(u(Y),{class:`size-4 opacity-70`}),e.active?(S(),h(`span`,Gt)):j(``,!0)]),_:2},1032,[`class`]),s(u(q),{align:`start`,class:`min-w-56`},{default:w(()=>[e.href?(S(),h(C,{key:0},[s(u(K),{"as-child":``},{default:w(()=>[s(Q,{item:e,class:p(e.active&&!e.children.some(e=>e.active)?`font-semibold text-brand-text`:`font-medium`)},{default:w(()=>[c(T(e.label)+` – Übersicht`,1)]),_:2},1032,[`item`,`class`])]),_:2},1024),s(u(U))],64)):j(``,!0),(S(!0),h(C,null,g(e.children,e=>(S(),D(u(K),{key:e.key,"as-child":``},{default:w(()=>[s(Q,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024)):(S(),D(Q,{key:1,item:e,class:p([`relative flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap transition-colors`,e.active?`text-foreground`:`text-foreground/70 hover:text-foreground`]),"aria-current":e.active?`page`:void 0},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 opacity-80`},null,8,[`name`])):j(``,!0),c(T(e.label)+` `,1),e.active?(S(),h(`span`,Kt)):j(``,!0)]),_:2},1032,[`item`,`class`,`aria-current`]))]))),128)),N.value.length?(S(),h(`li`,qt,[s(u(W),null,{default:w(()=>[s(u(G),{class:p([`relative flex items-center gap-1 px-3 text-sm font-medium whitespace-nowrap transition-colors outline-none`,N.value.some(e=>e.active)?`text-foreground`:`text-foreground/70 hover:text-foreground`])},{default:w(()=>[l[4]||=c(` Mehr `,-1),s(u(Y),{class:`size-4`}),N.value.some(e=>e.active)?(S(),h(`span`,Jt)):j(``,!0)]),_:1},8,[`class`]),s(u(q),{align:`start`,class:`min-w-48`},{default:w(()=>[(S(!0),h(C,null,g(N.value,(e,t)=>(S(),h(C,{key:e.key},[e.children.length?(S(),h(C,{key:0},[t?(S(),D(u(U),{key:0})):j(``,!0),s(u(Z),{class:`text-xs text-muted-foreground`},{default:w(()=>[c(T(e.label),1)]),_:2},1024),e.href?(S(),D(u(K),{key:1,"as-child":``},{default:w(()=>[s(Q,{item:e},{default:w(()=>[...l[5]||=[c(`Übersicht`,-1)]]),_:1},8,[`item`])]),_:2},1024)):j(``,!0),(S(!0),h(C,null,g(e.children,e=>(S(),D(u(K),{key:e.key,"as-child":``},{default:w(()=>[s(Q,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))),128))],64)):(S(),D(u(K),{key:1,"as-child":``},{default:w(()=>[s(Q,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))],64))),128))]),_:1})]),_:1})])):j(``,!0)])],512),m(`div`,Yt,[s(Mt,{initial:u(z),class:`mr-2 hidden w-64 md:block xl:w-80`},null,8,[`initial`]),s(u(L),{href:`/suche`,class:`grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground md:hidden`,"aria-label":`Portal durchsuchen`},{default:w(()=>[s(u(ue),{class:`size-5`})]),_:1}),s(_t),n.value.can_admin?(S(),h(`a`,Xt,[s(u(le),{class:`size-5`})])):j(``,!0),s(u(W),null,{default:w(()=>[s(u(G),{class:`ml-1 flex items-center gap-1.5 rounded-full py-1 pr-1.5 pl-1 hover:bg-accent focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`Menü für ${n.value.name}`},{default:w(()=>[s(be,{person:n.value,class:`size-9`},null,8,[`person`]),s(u(Y),{class:`size-4 text-muted-foreground`})]),_:1},8,[`aria-label`]),s(u(q),{align:`end`,class:`w-72`},{default:w(()=>[s(u(Z),{class:`flex items-center gap-3 py-2 font-normal`},{default:w(()=>[s(be,{person:n.value,class:`size-10`},null,8,[`person`]),m(`div`,Zt,[m(`div`,Qt,T(n.value.name),1),m(`div`,$t,T(n.value.email),1)])]),_:1}),s(u(U)),s(u(K),{"as-child":``},{default:w(()=>[s(u(L),{href:`/personen/${n.value.id}`},{default:w(()=>[s(u(de)),l[6]||=c(` Mein Profil`,-1)]),_:1},8,[`href`])]),_:1}),s(u(K),{"as-child":``},{default:w(()=>[s(u(L),{href:`/profil/bearbeiten`},{default:w(()=>[s(u(ze)),l[7]||=c(` Profil bearbeiten`,-1)]),_:1})]),_:1}),n.value.can_admin?(S(),D(u(K),{key:0,"as-child":``},{default:w(()=>[m(`a`,en,[s(u(le)),l[8]||=c(` Administration`,-1)])]),_:1})):j(``,!0),r.value.color_mode?j(``,!0):(S(),h(C,{key:1},[s(u(U)),s(u(Z),{class:`text-xs font-medium text-muted-foreground`},{default:w(()=>[...l[9]||=[c(`Darstellung`,-1)]]),_:1}),s(u(rt),{"model-value":u(P),"onUpdate:modelValue":u(ee)},{default:w(()=>[(S(),h(C,null,g(te,e=>s(u(at),{key:e.value,value:e.value},{default:w(()=>[(S(),D(k(e.icon),{class:`size-4 text-muted-foreground`})),c(` `+T(e.label),1)]),_:2},1032,[`value`])),64))]),_:1},8,[`model-value`,`onUpdate:modelValue`])],64)),s(u(U)),s(u(K),{"as-child":``},{default:w(()=>[s(u(L),{href:`/logout`,method:`post`,as:`button`,class:`w-full`},{default:w(()=>[s(u(Fe)),l[10]||=c(` Abmelden`,-1)]),_:1})]),_:1})]),_:1})]),_:1})])])],10,Rt),m(`main`,tn,[A(t.$slots,`default`)]),r.value.footer.text||r.value.footer.links.length?(S(),h(`footer`,nn,[m(`div`,rn,[r.value.footer.text?(S(),h(`p`,an,T(r.value.footer.text),1)):j(``,!0),r.value.footer.links.length?(S(),h(`nav`,on,[(S(!0),h(C,null,g(r.value.footer.links,e=>(S(),h(`a`,{key:e.url,href:e.url,class:`hover:text-foreground hover:underline`},T(e.label),9,sn))),128))])):j(``,!0)])])):j(``,!0)]),s(u(we),{position:`bottom-right`})],64))}};export{je as a,Fe as i,$ as n,ze as r,ln as t}; \ No newline at end of file +import{a as e,d as t,i as n,n as r,o as i,r as a}from"./usePrimitiveElement-DC7UloPZ.js";import{$n as o,D as s,E as c,Ht as l,On as u,Tn as d,Yt as f,Zn as p,_ as m,b as h,bt as g,ct as _,et as v,g as y,it as b,k as x,mt as S,o as C,qt as w,tr as T,tt as E,v as D,vn as O,wt as k,xt as A,y as j,z as M}from"./runtime-core.esm-bundler-B8D2lM98.js";import{C as N,w as P,x as ee}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as F,i as I,n as L,t as R}from"./app-Cw5f57va.js";import{O as z,T as te,b as ne,c as re,d as B,k as V,l as ie,p as H,s as ae,t as oe}from"./dist-DtGNiYlK.js";import{F as se,L as ce,M as le,N as ue,O as de,R as fe,a as U,b as pe,c as W,d as me,et as he,f as ge,h as _e,i as G,k as ve,l as ye,o as K,p as be,s as q,t as J,u as xe,w as Se,x as Ce}from"./AppIcon-BiVN_tuL.js";import{C as Y,a as we,i as Te,n as Ee,r as De,t as X}from"./http-DmyDwIce.js";import{t as Oe}from"./FileIcon-CV058fj7.js";import{t as ke}from"./BrandLogo-CJygQm3u.js";import{a as Ae}from"./format-BsuBtvUs.js";var je=V({name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]}),Me=V({name:`check-check`,size:24,node:[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]}),Ne=V({name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]}),Pe=V({name:`file-check`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]}),Fe=V({name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]}),Ie=V({name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]}),Le=V({name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]}),Re=V({name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]}),ze=V({name:`user-round-pen`,size:24,node:[[`path`,{d:`M2 21a8 8 0 0 1 10.821-7.487`,key:`1c8h7z`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}]]}),Be=x({__name:`DialogTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Se(),{forwardRef:r,currentElement:i}=H();return n.contentId||=a(void 0,`reka-dialog-content`),_(()=>{n.triggerElement.value=i.value}),(e,i)=>(S(),D(u(B),v(t,{ref:u(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":u(n).open.value||!1,"aria-controls":u(n).open.value?u(n).contentId:void 0,"data-state":u(n).open.value?`open`:`closed`,onClick:u(n).onOpenToggle}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`onClick`]))}}),[Ve,He]=t([`MenuCheckboxItem`,`MenuRadioItem`],`MenuItemIndicatorContext`),Ue=x({__name:`MenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=Ve({modelValue:O(!1)});return(e,n)=>(S(),D(u(r),{present:e.forceMount||u(Ce)(u(t).modelValue.value)||u(t).modelValue.value===!0},{default:w(()=>[s(u(B),{as:e.as,"as-child":e.asChild,"data-state":u(pe)(u(t).modelValue.value)},{default:w(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`])]),_:3},8,[`present`]))}}),[We,Ge]=t(`MenuGroup`),Ke=x({__name:`MenuGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=a(void 0,`reka-menu-group`);return Ge({id:n}),(e,r)=>(S(),D(u(B),v({role:`group`},t,{"aria-labelledby":u(n)}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),qe=x({__name:`MenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e,n=We({id:``});return(e,r)=>(S(),D(u(B),v(t,{id:u(n).id||void 0}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`id`]))}}),[Je,Ye]=t(`MenuRadioGroup`),Xe=x({__name:`MenuRadioGroup`,props:{modelValue:{type:null,required:!1,default:``},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=te(r,[`modelValue`]),s=e(a),c=ne(r,`modelValue`,i);return Ye({modelValue:c,onValueChange:e=>{c.value=e}}),(e,t)=>(S(),D(Ke,o(M(u(s))),{default:w(()=>[A(e.$slots,`default`,{modelValue:u(c)})]),_:3},16))}}),Ze=x({__name:`MenuRadioItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(t,{emit:n}){let r=t,i=n,a=te(r,[`value`]),o=e(a),{value:s}=d(r),c=Je(),l=y(()=>c.modelValue.value===s?.value);return He({modelValue:l}),(e,t)=>(S(),D(_e,v({role:`menuitemradio`},u(o),{"aria-checked":l.value,"data-state":u(pe)(l.value),onSelect:t[0]||=async e=>{i(`select`,e),u(c).onValueChange(u(s))}}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`aria-checked`,`data-state`]))}}),Qe=x({__name:`DropdownMenuItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return H(),(e,n)=>(S(),D(u(Ue),o(M(t)),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),$e=x({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return H(),(e,n)=>(S(),D(u(qe),o(M(t)),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),et=x({__name:`DropdownMenuRadioGroup`,props:{modelValue:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=i(t);return H(),(e,t)=>(S(),D(u(Xe),o(M({...n,...u(r)})),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),tt=x({__name:`DropdownMenuRadioItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let r=n(e,t);return H(),(e,t)=>(S(),D(u(Ze),o(M(u(r))),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),nt=x({__name:`SheetTrigger`,props:{asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(S(),D(u(Be),v({"data-slot":`sheet-trigger`},t),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),Z=x({__name:`DropdownMenuLabel`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},setup(t){let n=t,r=ae(n,`class`,`inset`),i=e(r);return(e,r)=>(S(),D(u($e),v({"data-slot":`dropdown-menu-label`,"data-inset":t.inset?``:void 0},u(i),{class:u(ie)(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n.class)}),{default:w(()=>[A(e.$slots,`default`)]),_:3},16,[`data-inset`,`class`]))}}),rt=x({__name:`DropdownMenuRadioGroup`,props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=n(e,t);return(e,t)=>(S(),D(u(et),v({"data-slot":`dropdown-menu-radio-group`},u(r)),{default:w(()=>[A(e.$slots,`default`)]),_:3},16))}}),it={class:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`},at=x({__name:`DropdownMenuRadioItem`,props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`select`],setup(e,{emit:t}){let r=e,i=t,a=ae(r,`class`),o=n(a,i);return(e,t)=>(S(),D(u(tt),v({"data-slot":`dropdown-menu-radio-item`},u(o),{class:u(ie)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r.class)}),{default:w(()=>[m(`span`,it,[s(u(Qe),null,{default:w(()=>[A(e.$slots,`indicator-icon`,{},()=>[s(u(Ne),{class:`size-2 fill-current`})])]),_:3})]),A(e.$slots,`default`)]),_:3},16,[`class`]))}}),ot={key:0,class:`absolute top-1.5 right-1.5 grid h-4 min-w-4 place-items-center rounded-full bg-brand px-1 text-[10px] leading-none font-semibold text-brand-foreground`},st={class:`flex items-center justify-between border-b px-4 py-3`},ct={class:`max-h-[60vh] overflow-y-auto`},lt={key:0,class:`grid place-items-center py-8`},ut={key:1,class:`px-4 py-8 text-center text-sm text-muted-foreground`},dt={key:2,class:`divide-y`},ft=[`onClick`],pt={class:`min-w-0 flex-1`},mt={key:0,class:`mt-0.5 line-clamp-2 block text-[13px] text-muted-foreground`},ht={class:`mt-1 block text-xs text-muted-foreground`},gt={key:0,class:`mt-2 size-2 shrink-0 rounded-full bg-brand`,"aria-label":`ungelesen`},_t={__name:`NotificationBell`,setup(e){let t=I(),n=y(()=>t.props.notifications?.unread??0),r=O(null),i=O(null),a=y(()=>i.value??n.value),o={"file-check":Pe,newspaper:se,undo:ve,message:fe};async function l(e){if(!e)return;r.value=null;let t=await X.get(`/benachrichtigungen`);r.value=t.notifications,i.value=t.unread}async function d(){await X.post(`/benachrichtigungen/gelesen`),r.value=r.value.map(e=>({...e,read:!0})),i.value=0}function f(e){i.value=null,F.visit(`/benachrichtigungen/${e.id}`)}return(e,t)=>(S(),D(u(Te),{"onUpdate:open":l},{default:w(()=>[s(u(Ee),{class:`relative grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground`,"aria-label":a.value?`Benachrichtigungen, ${a.value} ungelesen`:`Benachrichtigungen`},{default:w(()=>[s(u(he),{class:`size-5`}),a.value?(S(),h(`span`,ot,T(a.value>9?`9+`:a.value),1)):j(``,!0)]),_:1},8,[`aria-label`]),s(u(De),{align:`end`,class:`w-[22rem] p-0`},{default:w(()=>[m(`div`,st,[t[1]||=m(`h2`,{class:`text-sm font-semibold`},`Benachrichtigungen`,-1),a.value?(S(),h(`button`,{key:0,type:`button`,class:`inline-flex items-center gap-1 text-xs font-medium text-brand-text hover:underline`,onClick:d},[s(u(Me),{class:`size-3.5`}),t[0]||=c(` Alle gelesen `,-1)])):j(``,!0)]),m(`div`,ct,[r.value===null?(S(),h(`div`,lt,[s(u(z),{class:`size-5 animate-spin text-muted-foreground`})])):r.value.length?(S(),h(`ul`,dt,[(S(!0),h(C,null,g(r.value,e=>(S(),h(`li`,{key:e.id},[m(`button`,{type:`button`,class:`flex w-full gap-3 px-4 py-3 text-left hover:bg-accent/60`,onClick:t=>f(e)},[m(`span`,{class:p([`mt-0.5 grid size-8 shrink-0 place-items-center rounded-full`,e.read?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-text`])},[(S(),D(k(o[e.icon]??u(he)),{class:`size-4`}))],2),m(`span`,pt,[m(`span`,{class:p([`block text-sm`,e.read?`text-foreground/80`:`font-semibold`])},T(e.title),3),e.body?(S(),h(`span`,mt,T(e.body),1)):j(``,!0),m(`span`,ht,T(u(Ae)(e.created_at)),1)]),e.read?j(``,!0):(S(),h(`span`,gt))],8,ft)]))),128))])):(S(),h(`p`,ut,`Keine Benachrichtigungen.`))])]),_:1})]),_:1}))}},vt=[`href`,`target`,`rel`],Q={__name:`NavLink`,props:{item:{type:Object,required:!0}},setup(e){return(t,n)=>e.item.new_tab||!e.item.href.startsWith(`/`)?(S(),h(`a`,{key:0,href:e.item.href,target:e.item.new_tab?`_blank`:void 0,rel:e.item.new_tab?`noopener`:void 0},[A(t.$slots,`default`)],8,vt)):(S(),D(u(L),{key:1,href:e.item.href},{default:w(()=>[A(t.$slots,`default`)]),_:3},8,[`href`]))}},yt=e=>String(e??``).replace(/[&<>"']/g,e=>({"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`})[e]);function $(e,t){let n=yt(e),r=String(t??``).trim().split(/\s+/).filter(e=>e.length>=2).map(e=>yt(e).replace(/[.*+?^${}()|[\]\\]/g,`\\$&`));return r.length?n.replace(RegExp(`(${r.join(`|`)})`,`gi`),`$1`):n}var bt={class:`relative block`},xt=[`aria-expanded`],St={key:0,id:`global-search-results`,class:`absolute top-full right-0 z-50 mt-2 max-h-[min(70vh,560px)] w-[min(92vw,30rem)] overflow-y-auto rounded-lg border bg-popover text-popover-foreground shadow-lg`},Ct={class:`flex items-center gap-2 px-4 pt-3 pb-1 text-[11px] font-semibold tracking-wider text-muted-foreground uppercase`},wt={class:`pb-2`},Tt=[`src`],Et={class:`min-w-0 flex-1`},Dt=[`innerHTML`],Ot={key:0,class:`block truncate text-xs text-muted-foreground`},kt=[`innerHTML`],At={key:1,class:`px-4 py-6 text-center text-sm text-muted-foreground`},jt={key:2,class:`px-4 py-6 text-center text-sm text-muted-foreground`},Mt={__name:`GlobalSearchBox`,props:{initial:{type:String,default:``}},setup(e){let t=e,n=O(null),r=O(null),i=O(t.initial),a=O([]),o=O(!1),d=O(!1),_=O(-1),v=0,b=y(()=>a.value.flatMap(e=>e.items)),x=(e,t)=>b.value.indexOf(t),E=re(async e=>{let t=++v;try{let n=await X.get(`/suche/live?q=${encodeURIComponent(e)}`);t===v&&(a.value=n.groups,_.value=-1)}catch{t===v&&(a.value=[])}finally{t===v&&(o.value=!1)}},220);l(i,e=>{if(e.trim().length<2){v++,a.value=[],o.value=!1;return}o.value=!0,d.value=!0,E(e.trim())}),oe(n,()=>d.value=!1);function A(e){b.value.length&&(d.value=!0,_.value=(_.value+e+b.value.length)%b.value.length)}function M(e){d.value=!1,e.external?window.location.href=e.url:F.visit(e.url)}function I(){let e=b.value[_.value];if(e)return M(e);i.value.trim().length<2||(d.value=!1,F.get(`/suche`,{q:i.value.trim()}))}let R=y(()=>d.value&&i.value.trim().length>=2);return(e,t)=>(S(),h(`div`,{ref_key:`root`,ref:n,class:`relative`},[m(`form`,{role:`search`,onSubmit:P(I,[`prevent`])},[m(`label`,bt,[t[7]||=m(`span`,{class:`sr-only`},`Portal durchsuchen`,-1),s(u(ue),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),f(m(`input`,{ref_key:`input`,ref:r,"onUpdate:modelValue":t[0]||=e=>i.value=e,type:`search`,placeholder:`Portal durchsuchen …`,autocomplete:`off`,role:`combobox`,"aria-expanded":R.value,"aria-controls":`global-search-results`,class:`h-10 w-full rounded-md border border-input bg-card pr-9 pl-9 text-sm shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`,onFocus:t[1]||=e=>d.value=!0,onKeydown:[t[2]||=N(P(e=>A(1),[`prevent`]),[`down`]),t[3]||=N(P(e=>A(-1),[`prevent`]),[`up`]),t[4]||=N(e=>d.value=!1,[`esc`])]},null,40,xt),[[ee,i.value]]),o.value?(S(),D(u(z),{key:0,class:`absolute top-1/2 right-3 size-4 -translate-y-1/2 animate-spin text-muted-foreground`})):j(``,!0)])],32),R.value?(S(),h(`div`,St,[a.value.length?(S(!0),h(C,{key:0},g(a.value,e=>(S(),h(`section`,{key:e.key,class:`border-b last:border-b-0`},[m(`h3`,Ct,[s(J,{name:e.icon,class:`size-3.5`},null,8,[`name`]),c(` `+T(e.label),1)]),m(`ul`,wt,[(S(!0),h(C,null,g(e.items,n=>(S(),h(`li`,{key:n.url},[(S(),D(k(n.external?`a`:u(L)),{href:n.url,class:p([`flex items-start gap-3 px-4 py-2 transition-colors`,x(e,n)===_.value?`bg-accent`:`hover:bg-accent/60`]),onClick:t[5]||=e=>d.value=!1,onMouseenter:t=>_.value=x(e,n)},{default:w(()=>[n.image?(S(),h(`img`,{key:0,src:n.image,alt:``,class:`mt-0.5 size-10 shrink-0 rounded-md object-cover`},null,8,Tt)):n.file?(S(),D(Oe,{key:1,extension:n.file,size:`sm`,class:`mt-0.5`},null,8,[`extension`])):j(``,!0),m(`span`,Et,[m(`span`,{class:`block truncate text-sm font-medium`,innerHTML:u($)(n.title,i.value)},null,8,Dt),n.meta?(S(),h(`span`,Ot,T(n.meta),1)):j(``,!0),n.excerpt?(S(),h(`span`,{key:1,class:`mt-0.5 line-clamp-1 text-xs text-muted-foreground`,innerHTML:u($)(n.excerpt,i.value)},null,8,kt)):j(``,!0)])]),_:2},1064,[`href`,`class`,`onMouseenter`]))]))),128))])]))),128)):o.value?(S(),h(`p`,jt,`Suche läuft …`)):(S(),h(`p`,At,`Keine Treffer für „`+T(i.value.trim())+`“.`,1)),s(u(L),{href:`/suche?q=${encodeURIComponent(i.value.trim())}`,class:`sticky bottom-0 flex items-center justify-between gap-2 border-t bg-muted/60 px-4 py-2.5 text-sm font-medium text-brand-text backdrop-blur hover:bg-muted`,onClick:t[6]||=e=>d.value=!1},{default:w(()=>[c(` Alle Ergebnisse für „`+T(i.value.trim())+`“ `,1),s(u(je),{class:`size-4`})]),_:1},8,[`href`])])):j(``,!0)],512))}},Nt=typeof window<`u`?window.matchMedia(`(prefers-color-scheme: dark)`):null;function Pt(e){let t=e===`dark`||e===`system`&&Nt?.matches;document.documentElement.classList.toggle(`dark`,t),document.documentElement.dataset.theme=e}Nt?.addEventListener(`change`,()=>Pt(document.documentElement.dataset.theme??`system`));function Ft(){let e=I(),t=y(()=>e.props.auth.user?.theme??`system`);function n(e){Pt(e),F.put(`/profil/darstellung`,{theme:e},{preserveScroll:!0,preserveState:!0})}return{preference:t,setPreference:n}}var It={class:`flex min-h-screen flex-col`},Lt={key:0,class:`flex flex-wrap items-center justify-center gap-x-3 gap-y-1 bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},Rt=[`data-header`],zt={class:`mx-auto flex h-16 max-w-[1440px] items-center gap-2 px-4 lg:gap-6 lg:px-6`},Bt={class:`grid gap-1 overflow-y-auto p-3`,"aria-label":`Hauptnavigation`},Vt={key:1,class:`px-3 pt-3 pb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},Ht={key:2,class:`mb-1 ml-3 grid gap-0.5 border-l pl-2`},Ut={class:`pointer-events-none invisible absolute inset-0 overflow-hidden`,"aria-hidden":`true`},Wt={class:`flex h-full items-stretch gap-1`},Gt={key:1,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Kt={key:1,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},qt={key:0,class:`flex`},Jt={key:0,class:`nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand`},Yt={class:`ml-auto flex shrink-0 items-center gap-1`},Xt={key:0,href:`/admin`,class:`grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground`,"aria-label":`Administration`,title:`Administration`},Zt={class:`min-w-0`},Qt={class:`truncate text-sm font-semibold`},$t={class:`truncate text-xs text-muted-foreground`},en={href:`/admin`},tn={class:`mx-auto w-full max-w-[1440px] flex-1 px-4 py-6 lg:px-6 lg:py-7`},nn={key:1,class:`border-t`},rn={class:`mx-auto flex max-w-[1440px] flex-wrap items-center justify-between gap-x-6 gap-y-2 px-4 py-5 text-[13px] text-muted-foreground lg:px-6`},an={key:0},on={key:1,class:`flex flex-wrap gap-x-5 gap-y-1`,"aria-label":`Fußzeile`},sn=[`href`],cn=84,ln={__name:`AppLayout`,props:{title:{type:String,default:``}},setup(e){let t=I(),n=y(()=>t.props.auth.user),r=y(()=>t.props.branding),i=y(()=>r.value.header_style??`light`),a=y(()=>t.props.navigation),o=O(null),d=O(null),f=O(a.value.length);function v(){let e=o.value,t=d.value?[...d.value.children]:[];if(!e||!t.length)return;let n=t.map(e=>e.getBoundingClientRect().width+4),r=e.clientWidth;if(n.reduce((e,t)=>e+t,0)<=r){f.value=n.length;return}let i=cn,a=0;for(let e of n){if(i+e>r)break;i+=e,a++}f.value=Math.max(1,a)}let x;_(()=>{x=new ResizeObserver(v),o.value&&x.observe(o.value),E(v),document.fonts?.ready.then(v)}),b(()=>x?.disconnect()),l(a,()=>E(v));let M=y(()=>a.value.slice(0,f.value)),N=y(()=>a.value.slice(f.value)),{preference:P,setPreference:ee}=Ft(),F=O(!1),z=t.url.startsWith(`/suche?`)?new URLSearchParams(t.url.split(`?`)[1]).get(`q`)??``:``,te=[{value:`system`,label:`Wie im System`,icon:ce},{value:`light`,label:`Hell`,icon:Re},{value:`dark`,label:`Dunkel`,icon:Le}];return(t,l)=>(S(),h(C,null,[e.title?(S(),D(u(R),{key:0,title:e.title},null,8,[`title`])):j(``,!0),m(`div`,It,[r.value.preview?(S(),h(`div`,Lt,[...l[3]||=[c(` Vorschau des Entwurfs – so sieht das Portal nach dem Veröffentlichen aus. `,-1),m(`a`,{href:`?vorschau=aus`,class:`underline`},`Vorschau beenden`,-1)]])):j(``,!0),m(`header`,{class:p([`sticky top-0 z-40 border-b`,i.value===`light`?`bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/85`:``]),"data-header":i.value},[m(`div`,zt,[s(u(ge),{open:F.value,"onUpdate:open":l[2]||=e=>F.value=e},{default:w(()=>[s(u(nt),{class:`-ml-2 grid size-10 place-items-center rounded-md text-foreground/80 hover:bg-accent lg:hidden`,"aria-label":`Menü öffnen`},{default:w(()=>[s(u(Ie),{class:`size-5`})]),_:1}),s(u(me),{side:`left`,class:`w-72 p-0`},{default:w(()=>[s(u(xe),{class:`border-b px-5 py-4`},{default:w(()=>[s(u(ye),{class:`text-left`},{default:w(()=>[s(ke)]),_:1})]),_:1}),m(`nav`,Bt,[(S(!0),h(C,null,g(a.value,e=>(S(),h(C,{key:e.key},[e.href?(S(),D(Q,{key:0,item:e,class:p([`flex items-center gap-2.5 rounded-md px-3 py-2.5 text-[15px] font-medium`,e.active&&!e.children.some(e=>e.active)?`bg-brand-soft text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent`]),onClick:l[0]||=e=>F.value=!1},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-[18px] opacity-80`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`])):(S(),h(`p`,Vt,T(e.label),1)),e.children.length?(S(),h(`div`,Ht,[(S(!0),h(C,null,g(e.children,e=>(S(),D(Q,{key:e.key,item:e,class:p([`flex items-center gap-2 rounded-md px-3 py-2 text-sm`,e.active?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/75 hover:bg-accent`]),onClick:l[1]||=e=>F.value=!1},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 opacity-70`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`]))),128))])):j(``,!0)],64))),128))])]),_:1})]),_:1},8,[`open`]),s(u(L),{href:`/`,class:`shrink-0 text-foreground`,"aria-label":`Startseite`},{default:w(()=>[s(ke,{inverted:i.value!==`light`,compact:``},null,8,[`inverted`])]),_:1}),m(`nav`,{ref_key:`navBox`,ref:o,class:`relative hidden h-full min-w-0 flex-1 lg:block`,"aria-label":`Hauptnavigation`},[m(`div`,Ut,[m(`ul`,{ref_key:`navMeasure`,ref:d,class:`flex w-max gap-1`},[(S(!0),h(C,null,g(a.value,e=>(S(),h(`li`,{key:e.key,class:`flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap`},[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4`},null,8,[`name`])):j(``,!0),c(T(e.label),1),e.children.length?(S(),D(u(Y),{key:1,class:`size-4`})):j(``,!0)]))),128))],512)]),m(`ul`,Wt,[(S(!0),h(C,null,g(M.value,e=>(S(),h(`li`,{key:e.key,class:`flex`},[e.children.length?(S(),D(u(W),{key:0},{default:w(()=>[s(u(G),{class:p([`relative flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap transition-colors outline-none`,e.active?`text-foreground`:`text-foreground/70 hover:text-foreground`])},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 opacity-80`},null,8,[`name`])):j(``,!0),c(T(e.label)+` `,1),s(u(Y),{class:`size-4 opacity-70`}),e.active?(S(),h(`span`,Gt)):j(``,!0)]),_:2},1032,[`class`]),s(u(q),{align:`start`,class:`min-w-56`},{default:w(()=>[e.href?(S(),h(C,{key:0},[s(u(K),{"as-child":``},{default:w(()=>[s(Q,{item:e,class:p(e.active&&!e.children.some(e=>e.active)?`font-semibold text-brand-text`:`font-medium`)},{default:w(()=>[c(T(e.label)+` – Übersicht`,1)]),_:2},1032,[`item`,`class`])]),_:2},1024),s(u(U))],64)):j(``,!0),(S(!0),h(C,null,g(e.children,e=>(S(),D(u(K),{key:e.key,"as-child":``},{default:w(()=>[s(Q,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024)):(S(),D(Q,{key:1,item:e,class:p([`relative flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap transition-colors`,e.active?`text-foreground`:`text-foreground/70 hover:text-foreground`]),"aria-current":e.active?`page`:void 0},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 opacity-80`},null,8,[`name`])):j(``,!0),c(T(e.label)+` `,1),e.active?(S(),h(`span`,Kt)):j(``,!0)]),_:2},1032,[`item`,`class`,`aria-current`]))]))),128)),N.value.length?(S(),h(`li`,qt,[s(u(W),null,{default:w(()=>[s(u(G),{class:p([`relative flex items-center gap-1 px-3 text-sm font-medium whitespace-nowrap transition-colors outline-none`,N.value.some(e=>e.active)?`text-foreground`:`text-foreground/70 hover:text-foreground`])},{default:w(()=>[l[4]||=c(` Mehr `,-1),s(u(Y),{class:`size-4`}),N.value.some(e=>e.active)?(S(),h(`span`,Jt)):j(``,!0)]),_:1},8,[`class`]),s(u(q),{align:`start`,class:`min-w-48`},{default:w(()=>[(S(!0),h(C,null,g(N.value,(e,t)=>(S(),h(C,{key:e.key},[e.children.length?(S(),h(C,{key:0},[t?(S(),D(u(U),{key:0})):j(``,!0),s(u(Z),{class:`text-xs text-muted-foreground`},{default:w(()=>[c(T(e.label),1)]),_:2},1024),e.href?(S(),D(u(K),{key:1,"as-child":``},{default:w(()=>[s(Q,{item:e},{default:w(()=>[...l[5]||=[c(`Übersicht`,-1)]]),_:1},8,[`item`])]),_:2},1024)):j(``,!0),(S(!0),h(C,null,g(e.children,e=>(S(),D(u(K),{key:e.key,"as-child":``},{default:w(()=>[s(Q,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))),128))],64)):(S(),D(u(K),{key:1,"as-child":``},{default:w(()=>[s(Q,{item:e,class:p(e.active?`font-semibold text-brand-text`:``)},{default:w(()=>[e.icon?(S(),D(J,{key:0,name:e.icon,class:`size-4 text-muted-foreground`},null,8,[`name`])):j(``,!0),c(T(e.label),1)]),_:2},1032,[`item`,`class`])]),_:2},1024))],64))),128))]),_:1})]),_:1})])):j(``,!0)])],512),m(`div`,Yt,[s(Mt,{initial:u(z),class:`mr-2 hidden w-64 md:block xl:w-80`},null,8,[`initial`]),s(u(L),{href:`/suche`,class:`grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground md:hidden`,"aria-label":`Portal durchsuchen`},{default:w(()=>[s(u(ue),{class:`size-5`})]),_:1}),s(_t),n.value.can_admin?(S(),h(`a`,Xt,[s(u(le),{class:`size-5`})])):j(``,!0),s(u(W),null,{default:w(()=>[s(u(G),{class:`ml-1 flex items-center gap-1.5 rounded-full py-1 pr-1.5 pl-1 hover:bg-accent focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`Menü für ${n.value.name}`},{default:w(()=>[s(be,{person:n.value,class:`size-9`},null,8,[`person`]),s(u(Y),{class:`size-4 text-muted-foreground`})]),_:1},8,[`aria-label`]),s(u(q),{align:`end`,class:`w-72`},{default:w(()=>[s(u(Z),{class:`flex items-center gap-3 py-2 font-normal`},{default:w(()=>[s(be,{person:n.value,class:`size-10`},null,8,[`person`]),m(`div`,Zt,[m(`div`,Qt,T(n.value.name),1),m(`div`,$t,T(n.value.email),1)])]),_:1}),s(u(U)),s(u(K),{"as-child":``},{default:w(()=>[s(u(L),{href:`/personen/${n.value.id}`},{default:w(()=>[s(u(de)),l[6]||=c(` Mein Profil`,-1)]),_:1},8,[`href`])]),_:1}),s(u(K),{"as-child":``},{default:w(()=>[s(u(L),{href:`/profil/bearbeiten`},{default:w(()=>[s(u(ze)),l[7]||=c(` Profil bearbeiten`,-1)]),_:1})]),_:1}),n.value.can_admin?(S(),D(u(K),{key:0,"as-child":``},{default:w(()=>[m(`a`,en,[s(u(le)),l[8]||=c(` Administration`,-1)])]),_:1})):j(``,!0),r.value.color_mode?j(``,!0):(S(),h(C,{key:1},[s(u(U)),s(u(Z),{class:`text-xs font-medium text-muted-foreground`},{default:w(()=>[...l[9]||=[c(`Darstellung`,-1)]]),_:1}),s(u(rt),{"model-value":u(P),"onUpdate:modelValue":u(ee)},{default:w(()=>[(S(),h(C,null,g(te,e=>s(u(at),{key:e.value,value:e.value},{default:w(()=>[(S(),D(k(e.icon),{class:`size-4 text-muted-foreground`})),c(` `+T(e.label),1)]),_:2},1032,[`value`])),64))]),_:1},8,[`model-value`,`onUpdate:modelValue`])],64)),s(u(U)),s(u(K),{"as-child":``},{default:w(()=>[s(u(L),{href:`/logout`,method:`post`,as:`button`,class:`w-full`},{default:w(()=>[s(u(Fe)),l[10]||=c(` Abmelden`,-1)]),_:1})]),_:1})]),_:1})]),_:1})])])],10,Rt),m(`main`,tn,[A(t.$slots,`default`)]),r.value.footer.text||r.value.footer.links.length?(S(),h(`footer`,nn,[m(`div`,rn,[r.value.footer.text?(S(),h(`p`,an,T(r.value.footer.text),1)):j(``,!0),r.value.footer.links.length?(S(),h(`nav`,on,[(S(!0),h(C,null,g(r.value.footer.links,e=>(S(),h(`a`,{key:e.url,href:e.url,class:`hover:text-foreground hover:underline`},T(e.label),9,sn))),128))])):j(``,!0)])])):j(``,!0)]),s(u(we),{position:`bottom-right`})],64))}};export{je as a,Fe as i,$ as n,ze as r,ln as t}; \ No newline at end of file diff --git a/public/build/assets/Areas-BheXiWqc.js b/public/build/assets/Areas-BJx3mBuE.js similarity index 91% rename from public/build/assets/Areas-BheXiWqc.js rename to public/build/assets/Areas-BJx3mBuE.js index 060e8020..3e7d6bdb 100644 --- a/public/build/assets/Areas-BheXiWqc.js +++ b/public/build/assets/Areas-BJx3mBuE.js @@ -1 +1 @@ -import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./Panel-DpvMQ4up.js";import{t as c}from"./NewsCard-CPICQVsu.js";var l={class:`-mx-5 flex snap-x scroll-px-5 gap-4 overflow-x-auto px-5 pb-1 [scrollbar-width:none] sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 sm:pb-0 xl:grid-cols-4 [&::-webkit-scrollbar]:hidden`},u={__name:`Areas`,props:{posts:{type:Array,required:!0}},setup(u){return(d,f)=>(r(),o(s,{title:`Aktuelles aus den Bereichen`,"action-label":`Alle`,"action-href":`/neuigkeiten`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.posts,e=>(r(),o(c,{key:e.id,post:e,class:`w-[78%] shrink-0 snap-start sm:w-auto`},null,8,[`post`]))),128))])]),_:1}))}};export{u as default}; \ No newline at end of file +import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./Panel-DZcEmK5R.js";import{t as c}from"./NewsCard-I-pDKDv_.js";var l={class:`-mx-5 flex snap-x scroll-px-5 gap-4 overflow-x-auto px-5 pb-1 [scrollbar-width:none] sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 sm:pb-0 xl:grid-cols-4 [&::-webkit-scrollbar]:hidden`},u={__name:`Areas`,props:{posts:{type:Array,required:!0}},setup(u){return(d,f)=>(r(),o(s,{title:`Aktuelles aus den Bereichen`,"action-label":`Alle`,"action-href":`/neuigkeiten`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.posts,e=>(r(),o(c,{key:e.id,post:e,class:`w-[78%] shrink-0 snap-start sm:w-auto`},null,8,[`post`]))),128))])]),_:1}))}};export{u as default}; \ No newline at end of file diff --git a/public/build/assets/BirthdayItem-DKhXwto7.js b/public/build/assets/BirthdayItem-hn5mYumD.js similarity index 90% rename from public/build/assets/BirthdayItem-DKhXwto7.js rename to public/build/assets/BirthdayItem-hn5mYumD.js index 4281e37d..d3d0bd2e 100644 --- a/public/build/assets/BirthdayItem-DKhXwto7.js +++ b/public/build/assets/BirthdayItem-hn5mYumD.js @@ -1 +1 @@ -import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-CNhdlRDG.js";import{$ as d,p as f}from"./AppIcon-D91Q4hzR.js";var p={class:`relative shrink-0`},m={key:0,class:`absolute -right-1 -bottom-1 grid size-5 place-items-center rounded-full bg-brand text-brand-foreground ring-2 ring-card`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block truncate text-xs text-muted-foreground`},v={__name:`BirthdayItem`,props:{item:{type:Object,required:!0}},setup(v){let y=e=>new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}).format(new Date(`${e}T12:00:00`)),b=e=>new Intl.DateTimeFormat(`de-DE`,{weekday:`short`}).format(new Date(`${e}T12:00:00`));return(x,S)=>(a(),c(t(u),{href:`/personen/${v.item.person.id}`,class:`group flex items-center gap-3 py-2.5`},{default:o(()=>[r(`span`,p,[e(f,{person:v.item.person,class:`size-10`},null,8,[`person`]),v.item.today?(a(),i(`span`,m,[e(t(d),{class:`size-3`})])):l(``,!0)]),r(`span`,h,[r(`span`,g,s(v.item.person.name),1),r(`span`,_,s(v.item.person.job_title||v.item.person.department),1)]),r(`span`,{class:n([`shrink-0 text-right text-xs`,v.item.today?`font-semibold text-brand-text`:`text-muted-foreground`])},s(v.item.today?`Heute`:`${b(v.item.date)}, ${y(v.item.date)}`),3)]),_:1},8,[`href`]))}};export{v as t}; \ No newline at end of file +import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-Cw5f57va.js";import{$ as d,p as f}from"./AppIcon-BiVN_tuL.js";var p={class:`relative shrink-0`},m={key:0,class:`absolute -right-1 -bottom-1 grid size-5 place-items-center rounded-full bg-brand text-brand-foreground ring-2 ring-card`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block truncate text-xs text-muted-foreground`},v={__name:`BirthdayItem`,props:{item:{type:Object,required:!0}},setup(v){let y=e=>new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}).format(new Date(`${e}T12:00:00`)),b=e=>new Intl.DateTimeFormat(`de-DE`,{weekday:`short`}).format(new Date(`${e}T12:00:00`));return(x,S)=>(a(),c(t(u),{href:`/personen/${v.item.person.id}`,class:`group flex items-center gap-3 py-2.5`},{default:o(()=>[r(`span`,p,[e(f,{person:v.item.person,class:`size-10`},null,8,[`person`]),v.item.today?(a(),i(`span`,m,[e(t(d),{class:`size-3`})])):l(``,!0)]),r(`span`,h,[r(`span`,g,s(v.item.person.name),1),r(`span`,_,s(v.item.person.job_title||v.item.person.department),1)]),r(`span`,{class:n([`shrink-0 text-right text-xs`,v.item.today?`font-semibold text-brand-text`:`text-muted-foreground`])},s(v.item.today?`Heute`:`${b(v.item.date)}, ${y(v.item.date)}`),3)]),_:1},8,[`href`]))}};export{v as t}; \ No newline at end of file diff --git a/public/build/assets/BirthdaysBlock-Ci58IxoR.js b/public/build/assets/BirthdaysBlock-EzillKMd.js similarity index 91% rename from public/build/assets/BirthdaysBlock-Ci58IxoR.js rename to public/build/assets/BirthdaysBlock-EzillKMd.js index 92681f5f..3f81cc0e 100644 --- a/public/build/assets/BirthdaysBlock-Ci58IxoR.js +++ b/public/build/assets/BirthdaysBlock-EzillKMd.js @@ -1 +1 @@ -import{_ as e,b as t,bt as n,mt as r,o as i,tr as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as c}from"./BirthdayItem-DKhXwto7.js";var l={key:0,class:`mb-3 text-lg font-semibold`},u={class:`divide-y rounded-lg border bg-card px-4`},d={key:0,class:`py-3 text-sm text-muted-foreground`},f={__name:`BirthdaysBlock`,props:{block:{type:Object,required:!0}},setup(f){return(p,m)=>(r(),t(`section`,null,[f.block.data.title?(r(),t(`h3`,l,a(f.block.data.title),1)):s(``,!0),e(`div`,u,[(r(!0),t(i,null,n(f.block.props?.birthdays??[],e=>(r(),o(c,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128)),(f.block.props?.birthdays??[]).length?s(``,!0):(r(),t(`p`,d,`Keine anstehenden Geburtstage.`))])]))}};export{f as default}; \ No newline at end of file +import{_ as e,b as t,bt as n,mt as r,o as i,tr as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as c}from"./BirthdayItem-hn5mYumD.js";var l={key:0,class:`mb-3 text-lg font-semibold`},u={class:`divide-y rounded-lg border bg-card px-4`},d={key:0,class:`py-3 text-sm text-muted-foreground`},f={__name:`BirthdaysBlock`,props:{block:{type:Object,required:!0}},setup(f){return(p,m)=>(r(),t(`section`,null,[f.block.data.title?(r(),t(`h3`,l,a(f.block.data.title),1)):s(``,!0),e(`div`,u,[(r(!0),t(i,null,n(f.block.props?.birthdays??[],e=>(r(),o(c,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128)),(f.block.props?.birthdays??[]).length?s(``,!0):(r(),t(`p`,d,`Keine anstehenden Geburtstage.`))])]))}};export{f as default}; \ No newline at end of file diff --git a/public/build/assets/Box-DahO3cH0.js b/public/build/assets/Box--HeQg7fH.js similarity index 96% rename from public/build/assets/Box-DahO3cH0.js rename to public/build/assets/Box--HeQg7fH.js index a8f2ac3f..99f9de28 100644 --- a/public/build/assets/Box-DahO3cH0.js +++ b/public/build/assets/Box--HeQg7fH.js @@ -1 +1 @@ -import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as u,U as d}from"./AppIcon-D91Q4hzR.js";import{S as f,v as p,x as m}from"./http-DmyDwIce.js";import{t as h}from"./circle-alert-D8SqHL0j.js";var g=[`role`],_={class:`min-w-0 flex-1`},v={key:0,class:`mb-2 font-semibold`},y={__name:`Box`,props:{block:{type:Object,required:!0}},setup(y){let b=e(`pagebuilder:list`),x={info:{icon:m,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,iconClass:`text-sky-600 dark:text-sky-400`},note:{icon:d,class:`border-amber-200 bg-amber-50 text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`,iconClass:`text-amber-600 dark:text-amber-400`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`,iconClass:`text-red-600 dark:text-red-400`},success:{icon:f,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,iconClass:`text-emerald-600 dark:text-emerald-400`},neutral:{icon:h,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:u,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,u)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[y.block.data.variant]?.class]),role:y.block.data.variant===`warning`?`alert`:`note`},[y.block.data.show_icon?(a(),s(c(x[y.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[y.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,_,[y.block.data.title?(a(),i(`p`,v,o(y.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:y.block.items[0]},null,8,[`item`]))])],10,g))}};export{y as default}; \ No newline at end of file +import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as u,U as d}from"./AppIcon-BiVN_tuL.js";import{S as f,v as p,x as m}from"./http-DmyDwIce.js";import{t as h}from"./circle-alert-D8SqHL0j.js";var g=[`role`],_={class:`min-w-0 flex-1`},v={key:0,class:`mb-2 font-semibold`},y={__name:`Box`,props:{block:{type:Object,required:!0}},setup(y){let b=e(`pagebuilder:list`),x={info:{icon:m,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,iconClass:`text-sky-600 dark:text-sky-400`},note:{icon:d,class:`border-amber-200 bg-amber-50 text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`,iconClass:`text-amber-600 dark:text-amber-400`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`,iconClass:`text-red-600 dark:text-red-400`},success:{icon:f,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,iconClass:`text-emerald-600 dark:text-emerald-400`},neutral:{icon:h,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:u,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,u)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[y.block.data.variant]?.class]),role:y.block.data.variant===`warning`?`alert`:`note`},[y.block.data.show_icon?(a(),s(c(x[y.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[y.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,_,[y.block.data.title?(a(),i(`p`,v,o(y.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:y.block.items[0]},null,8,[`item`]))])],10,g))}};export{y as default}; \ No newline at end of file diff --git a/public/build/assets/BrandLogo-7ynQExZl.js b/public/build/assets/BrandLogo-CJygQm3u.js similarity index 95% rename from public/build/assets/BrandLogo-7ynQExZl.js rename to public/build/assets/BrandLogo-CJygQm3u.js index bc3f3ab9..f1c8dfb1 100644 --- a/public/build/assets/BrandLogo-7ynQExZl.js +++ b/public/build/assets/BrandLogo-CJygQm3u.js @@ -1 +1 @@ -import{Zn as e,_ as t,b as n,g as r,mt as i,o as a,tr as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as c}from"./app-CNhdlRDG.js";var l={class:`flex items-center gap-3`},u=[`src`,`alt`],d=[`src`,`alt`],f=[`src`,`alt`],p=[`src`,`alt`],m=[`src`],h={class:`text-[17px] font-semibold tracking-tight`},g={__name:`BrandLogo`,props:{inverted:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},setup(g){let _=g,v=r(()=>c().props.branding),y=r(()=>v.value.portal_name.trim().charAt(0).toUpperCase()),b=r(()=>v.value.logo_dark_url??v.value.logo_url);return(r,c)=>(i(),n(`span`,l,[v.value.logo_url?(i(),n(a,{key:0},[g.compact&&v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:v.value.portal_name,class:`size-8 sm:hidden`},null,8,u)):s(``,!0),t(`span`,{class:e(g.compact&&v.value.logo_mark_url?`hidden sm:contents`:`contents`)},[_.inverted?(i(),n(`img`,{key:0,src:b.value,alt:v.value.portal_name,class:`h-8 w-auto`},null,8,d)):(i(),n(a,{key:1},[t(`img`,{src:v.value.logo_url,alt:v.value.portal_name,class:`h-8 w-auto dark:hidden`},null,8,f),t(`img`,{src:b.value,alt:v.value.portal_name,class:`hidden h-8 w-auto dark:block`},null,8,p)],64))],2)],64)):(i(),n(a,{key:1},[v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:``,class:`size-8`},null,8,m)):(i(),n(`span`,{key:1,class:e([`grid size-8 place-items-center rounded-md text-base font-bold`,_.inverted?`bg-white/15 text-current`:`bg-brand text-brand-foreground`])},o(y.value),3)),t(`span`,h,o(v.value.portal_name),1)],64))]))}};export{g as t}; \ No newline at end of file +import{Zn as e,_ as t,b as n,g as r,mt as i,o as a,tr as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as c}from"./app-Cw5f57va.js";var l={class:`flex items-center gap-3`},u=[`src`,`alt`],d=[`src`,`alt`],f=[`src`,`alt`],p=[`src`,`alt`],m=[`src`],h={class:`text-[17px] font-semibold tracking-tight`},g={__name:`BrandLogo`,props:{inverted:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},setup(g){let _=g,v=r(()=>c().props.branding),y=r(()=>v.value.portal_name.trim().charAt(0).toUpperCase()),b=r(()=>v.value.logo_dark_url??v.value.logo_url);return(r,c)=>(i(),n(`span`,l,[v.value.logo_url?(i(),n(a,{key:0},[g.compact&&v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:v.value.portal_name,class:`size-8 sm:hidden`},null,8,u)):s(``,!0),t(`span`,{class:e(g.compact&&v.value.logo_mark_url?`hidden sm:contents`:`contents`)},[_.inverted?(i(),n(`img`,{key:0,src:b.value,alt:v.value.portal_name,class:`h-8 w-auto`},null,8,d)):(i(),n(a,{key:1},[t(`img`,{src:v.value.logo_url,alt:v.value.portal_name,class:`h-8 w-auto dark:hidden`},null,8,f),t(`img`,{src:b.value,alt:v.value.portal_name,class:`hidden h-8 w-auto dark:block`},null,8,p)],64))],2)],64)):(i(),n(a,{key:1},[v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:``,class:`size-8`},null,8,m)):(i(),n(`span`,{key:1,class:e([`grid size-8 place-items-center rounded-md text-base font-bold`,_.inverted?`bg-white/15 text-current`:`bg-brand text-brand-foreground`])},o(y.value),3)),t(`span`,h,o(v.value.portal_name),1)],64))]))}};export{g as t}; \ No newline at end of file diff --git a/public/build/assets/Builder-BkOrpA9N.js b/public/build/assets/Builder-C33eAhEm.js similarity index 99% rename from public/build/assets/Builder-BkOrpA9N.js rename to public/build/assets/Builder-C33eAhEm.js index bd184399..79df0b37 100644 --- a/public/build/assets/Builder-BkOrpA9N.js +++ b/public/build/assets/Builder-C33eAhEm.js @@ -1 +1 @@ -import{D as e,E as t,Ht as n,J as r,On as i,Yt as a,Zn as o,_ as s,b as c,bt as l,ct as u,er as d,g as f,gn as p,gt as m,it as h,mt as g,o as _,qt as v,tr as y,v as b,vn as x,wt as S,y as C}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w,x as T}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as E,n as D,t as O}from"./app-CNhdlRDG.js";import{O as k,k as A}from"./dist-DtGNiYlK.js";import{n as j,t as M}from"./arrow-up-Djq_2Npz.js";import{t as ee}from"./arrow-left-BMImfTf2.js";import{C as N,S as te,_ as P,a as ne,b as F,i as re,n as ie,o as I,r as ae,t as oe,x as L,y as R}from"./http-DmyDwIce.js";import{a as z,i as B,n as se,o as ce,r as le,t as V}from"./Switch-CWN1_5O7.js";import{t as ue}from"./eye-CFNQcvaV.js";import{t as H}from"./lock-H7FAhSBr.js";import{t as U}from"./paperclip-DmVAQ5Y5.js";import{t as de}from"./pencil-line-CmAbFj4f.js";import{t as W}from"./plus-B_ij2ng2.js";import{t as fe}from"./save-aFVYiCIj.js";import{t as pe}from"./settings-2-L4P6usDq.js";import{t as me}from"./table-properties-BPjlj2dD.js";import{t as G}from"./trash-DUqnVIgb.js";import{t as K}from"./button-ZHC5mKey.js";import{t as q}from"./NativeSelect-BGasRaNs.js";import{t as J}from"./Input-FGSb2-yK.js";import{t as he}from"./Textarea-DEFXqC2w.js";import{t as ge}from"./FormRenderer-Cl4_xLIv.js";var _e=A({name:`asterisk`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m18.065 8.496-12.125 7`,key:`1h26g9`}],[`path`,{d:`m5.94 8.504 12.125 7`,key:`k77sdm`}]]}),ve=A({name:`at-sign`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]}),ye=A({name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]}),be=A({name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]}),xe=A({name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]}),Se=A({name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]}),Ce=A({name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]}),we=A({name:`square-check-big`,size:24,node:[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-square`]}),Y={text:{icon:A({name:`text-cursor-input`,size:24,node:[[`path`,{d:`M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6`,key:`1528k5`}],[`path`,{d:`M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7`,key:`13ksps`}],[`path`,{d:`M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1`,key:`1n9rhb`}],[`path`,{d:`M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1`,key:`1mj8rg`}],[`path`,{d:`M9 6v12`,key:`velyjx`}]]}),group:`Eingabe`,defaults:{label:`Textzeile`,width:`full`}},textarea:{icon:le,group:`Eingabe`,defaults:{label:`Mehrzeiliger Text`,rows:4,width:`full`}},email:{icon:ve,group:`Eingabe`,defaults:{label:`E-Mail-Adresse`,width:`half`}},phone:{icon:R,group:`Eingabe`,defaults:{label:`Telefonnummer`,width:`half`}},number:{icon:Ce,group:`Eingabe`,defaults:{label:`Zahl`,width:`half`}},date:{icon:ye,group:`Eingabe`,defaults:{label:`Datum`,width:`half`}},select:{icon:be,group:`Auswahl`,defaults:{label:`Auswahlliste`,options:[`Option 1`,`Option 2`],width:`full`}},radio:{icon:xe,group:`Auswahl`,defaults:{label:`Einfachauswahl`,options:[`Ja`,`Nein`],width:`full`}},checkboxes:{icon:F,group:`Auswahl`,defaults:{label:`Mehrfachauswahl`,options:[`Option 1`,`Option 2`,`Option 3`],width:`full`}},checkbox:{icon:we,group:`Auswahl`,defaults:{label:`Ich stimme zu.`,width:`full`}},file:{icon:U,group:`Sonstiges`,defaults:{label:`Datei`,accept:`any`,max_size:10,width:`full`}},heading:{icon:B,group:`Gestaltung`,defaults:{text:`Zwischenüberschrift`}},paragraph:{icon:L,group:`Gestaltung`,defaults:{text:`Hinweistext`}}},X=[`heading`,`paragraph`],Z=[`select`,`radio`,`checkboxes`];function Te(e){return String(e??``).toLowerCase().replace(/ä/g,`ae`).replace(/ö/g,`oe`).replace(/ü/g,`ue`).replace(/ß/g,`ss`).normalize(`NFKD`).replace(/[̀-ͯ]/g,``).replace(/@/g,`_at_`).replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``).slice(0,60)}function Q(){return Math.random().toString(36).slice(2,10)}function Ee(e){let t=new Set(e.filter(e=>!e._new&&e.data.key).map(e=>e.data.key));for(let n of e){if(!n._new)continue;let e=Te(n.data.label||n.data.text||n.type)||n.type,r=e;for(let n=2;t.has(r);n++)r=`${e}_${n}`;n.data.key=r,t.add(r)}}function De(e){return{_id:Q(),_new:!0,type:e,data:structuredClone(Y[e].defaults)}}function Oe(e){let t={documents:`.pdf,.doc,.docx,.xls,.xlsx,.odt,.ods,.ppt,.pptx,.txt,.csv,.rtf`,images:`.jpg,.jpeg,.png,.webp,.gif,.heic`,any:``};return e.map(({type:e,data:n})=>({type:e,key:n.key,label:n.label,text:n.text,help:n.help,placeholder:n.placeholder,required:!!n.required,options:(n.options??[]).filter(e=>e!==``),width:n.width??`full`,min:n.min,max:n.max,rows:n.rows,multiple:!!n.multiple,accept:t[n.accept??`any`]||void 0,max_size:n.max_size,locked:!!(n.locked&&n.prefill&&[`text`,`email`,`phone`].includes(e)),condition:n.condition_field?{field:n.condition_field,operator:n.condition_operator??`equals`,value:String(n.condition_value??``)}:null}))}var ke={equals:`ist gleich`,not_equals:`ist nicht`,contains:`enthält`,filled:`ist ausgefüllt`,empty:`ist leer`},Ae=[`data-field-id`],je={class:`fb-handle flex cursor-grab items-center gap-1 px-1 py-0.5 font-medium text-muted-foreground active:cursor-grabbing`,title:`Ziehen zum Verschieben`},Me=[`aria-pressed`],Ne=[`title`],Pe={key:0,class:`mb-1.5 mr-1 inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground`},Fe={key:1,class:`mb-1.5 inline-flex items-center gap-1 rounded bg-amber-100 px-1.5 py-0.5 text-[11px] text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},Ie={key:4,class:`flex items-start gap-2.5`},Le={key:0,class:`text-destructive`},Re={key:5,class:`grid gap-1.5`},ze={class:`flex items-center gap-0.5 text-[13px] font-medium`},Be={key:0,class:`text-destructive`},Ve={key:1,class:`grid gap-1.5`},He={key:0,class:`grid gap-1 rounded-md border border-dashed p-2`},Ue={class:`w-5 text-right text-xs text-muted-foreground`},We=[`onUpdate:modelValue`,`data-option`,`onKeydown`],Ge=[`onClick`],Ke={key:2,class:`grid gap-1.5`},qe=[`onUpdate:modelValue`,`data-option`,`onKeydown`],Je=[`onClick`],Ye={key:3,class:`flex h-10 items-center justify-center gap-2 rounded-md border border-dashed text-sm text-muted-foreground`},Xe={key:5,class:`flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm text-muted-foreground`},Ze={key:6,class:`rounded-md border border-input bg-card shadow-xs`},Qe=[`placeholder`,`disabled`],$=`w-full min-w-0 rounded-sm bg-transparent outline-none placeholder:text-muted-foreground/60 focus:bg-brand-soft/40`,$e=`field-sizing-content min-w-6 max-w-full rounded-sm bg-transparent outline-none placeholder:text-muted-foreground/60 focus:bg-brand-soft/40`,et=`flex h-9 w-full items-center rounded-md border border-input bg-card px-3 text-sm text-muted-foreground shadow-xs`,tt={__name:`BuilderField`,props:{field:{type:Object,required:!0},index:{type:Number,required:!0}},setup(n){let u=n,p=r(`forms:builder`),m=f(()=>p.selectedId.value===u.field._id),h=f(()=>p.errorIndex.value===u.index),v=f(()=>X.includes(u.field.type)),x=f(()=>u.field.data),E=f(()=>{if(!x.value.condition_field)return null;let e=p.fields.find(e=>e.data.key===x.value.condition_field)?.data.label??x.value.condition_field,t=ke[x.value.condition_operator??`equals`];return[`filled`,`empty`].includes(x.value.condition_operator)?`${e} ${t}`:`${e} ${t} „${x.value.condition_value??``}“`});function D(){x.value.options=[...x.value.options??[],`Option ${(x.value.options?.length??0)+1}`],requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${x.value.options.length-1}"]`)?.select())}function O(e){x.value.options=x.value.options.filter((t,n)=>n!==e)}function k(e,t){e.key===`Enter`?(e.preventDefault(),x.value.options.splice(t+1,0,``),requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${t+1}"]`)?.focus())):e.key===`Backspace`&&x.value.options[t]===``&&x.value.options.length>1&&(e.preventDefault(),O(t),requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${Math.max(0,t-1)}"]`)?.focus()))}return(r,u)=>(g(),c(`div`,{class:o([`group relative rounded-md p-3 outline-offset-2 transition-[outline-color]`,[n.field.data.width===`half`&&!v.value?``:`@xl:col-span-2`,m.value?`bg-brand-soft/30 outline-2 outline-brand-500`:h.value?`outline-2 outline-destructive`:`outline-1 outline-transparent hover:outline-brand-300`]]),"data-field-id":n.field._id,onClick:u[13]||=w(e=>i(p).select(n.field._id),[`stop`])},[s(`div`,{class:o([`absolute -top-3.5 right-2 z-10 items-center gap-0.5 rounded-md border bg-card px-1 py-0.5 text-xs shadow-sm`,m.value?`flex`:`hidden group-hover:flex`]),onClick:u[4]||=w(()=>{},[`stop`])},[s(`span`,je,[e(i(z),{class:`size-3.5`}),(g(),b(S(i(Y)[n.field.type].icon),{class:`size-3.5`})),t(` `+y(i(p).types[n.field.type]),1)]),v.value?C(``,!0):(g(),c(_,{key:0},[u[15]||=s(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),s(`button`,{type:`button`,class:o([`flex h-6 items-center gap-1 rounded px-1.5`,x.value.required?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),"aria-pressed":!!x.value.required,title:`Pflichtfeld`,onClick:u[0]||=e=>x.value.required=!x.value.required},[e(i(_e),{class:`size-3.5`}),u[14]||=t(` Pflicht `,-1)],10,Me),s(`button`,{type:`button`,class:`h-6 rounded px-1.5 text-muted-foreground hover:bg-accent`,title:x.value.width===`half`?`Volle Breite`:`Halbe Breite`,onClick:u[1]||=e=>x.value.width=x.value.width===`half`?`full`:`half`},y(x.value.width===`half`?`½`:`1/1`),9,Ne)],64)),u[16]||=s(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Duplizieren`,onClick:u[2]||=e=>i(p).duplicate(n.field._id)},[e(i(ce),{class:`size-3.5`})]),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:u[3]||=e=>i(p).remove(n.field._id)},[e(i(G),{class:`size-3.5`})])],2),x.value.prefill&&!x.value.locked&&!v.value?(g(),c(`p`,Pe,` Vorbelegt: `+y(i(p).prefillOptions.find(e=>e.value===x.value.prefill)?.label??x.value.prefill),1)):C(``,!0),E.value?(g(),c(`p`,Fe,[e(i(Se),{class:`size-3`}),t(` Nur wenn `+y(E.value),1)])):C(``,!0),n.field.type===`heading`?a((g(),c(`input`,{key:2,"onUpdate:modelValue":u[5]||=e=>x.value.text=e,class:o([$,`text-lg font-semibold`]),placeholder:`Zwischenüberschrift`,"aria-label":`Zwischenüberschrift`},null,2)),[[T,x.value.text]]):n.field.type===`paragraph`?a((g(),c(`textarea`,{key:3,"onUpdate:modelValue":u[6]||=e=>x.value.text=e,class:o([$,`field-sizing-content resize-none text-sm leading-relaxed text-muted-foreground`]),rows:`1`,placeholder:`Hinweistext`,"aria-label":`Hinweistext`},null,2)),[[T,x.value.text]]):n.field.type===`checkbox`?(g(),c(`div`,Ie,[u[17]||=s(`span`,{class:`mt-0.5 size-4 shrink-0 rounded-[4px] border border-input bg-card`},null,-1),a(s(`input`,{"onUpdate:modelValue":u[7]||=e=>x.value.label=e,class:o([$e,`text-sm`]),placeholder:`Text neben dem Kästchen`,"aria-label":`Bezeichnung`},null,2),[[T,x.value.label]]),x.value.required?(g(),c(`span`,Le,`*`)):C(``,!0)])):(g(),c(`div`,Re,[s(`div`,ze,[a(s(`input`,{"onUpdate:modelValue":u[8]||=e=>x.value.label=e,class:o($e),placeholder:`Bezeichnung`,"aria-label":`Bezeichnung`},null,512),[[T,x.value.label]]),x.value.required?(g(),c(`span`,Be,`*`)):C(``,!0)]),n.field.type===`textarea`?(g(),c(`div`,{key:0,class:`rounded-md border border-input bg-card shadow-xs`,style:d({height:`${(x.value.rows??4)*1.5+1}rem`})},[a(s(`input`,{"onUpdate:modelValue":u[9]||=e=>x.value.placeholder=e,class:`w-full bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground/50`,placeholder:`Platzhalter (optional)`,"aria-label":`Platzhalter`},null,512),[[T,x.value.placeholder]])],4)):n.field.type===`select`?(g(),c(`div`,Ve,[s(`div`,{class:o([et,`justify-between`])},[u[18]||=t(`Bitte wählen … `,-1),e(i(N),{class:`size-4`})],2),m.value?(g(),c(`div`,He,[u[20]||=s(`p`,{class:`text-xs text-muted-foreground`},`Auswahlmöglichkeiten`,-1),(g(!0),c(_,null,l(x.value.options,(t,r)=>(g(),c(`div`,{key:r,class:`flex items-center gap-2`},[s(`span`,Ue,y(r+1)+`.`,1),a(s(`input`,{"onUpdate:modelValue":e=>x.value.options[r]=e,"data-option":`${n.field._id}-${r}`,class:o([$,`text-sm`]),placeholder:`Auswahlmöglichkeit`,onKeydown:e=>k(e,r)},null,42,We),[[T,x.value.options[r]]]),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-muted-foreground hover:bg-accent`,title:`Entfernen`,onClick:w(e=>O(r),[`stop`])},[e(i(P),{class:`size-3.5`})],8,Ge)]))),128)),s(`button`,{type:`button`,class:`inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:w(D,[`stop`])},[e(i(W),{class:`size-3.5`}),u[19]||=t(` Auswahlmöglichkeit`,-1)])])):C(``,!0)])):i(Z).includes(n.field.type)?(g(),c(`div`,Ke,[(g(!0),c(_,null,l(x.value.options,(t,r)=>(g(),c(`div`,{key:r,class:`flex items-center gap-2.5`},[s(`span`,{class:o([`size-4 shrink-0 border border-input bg-card`,n.field.type===`radio`?`rounded-full`:`rounded-[4px]`])},null,2),a(s(`input`,{"onUpdate:modelValue":e=>x.value.options[r]=e,"data-option":`${n.field._id}-${r}`,class:o([$,`text-sm`]),placeholder:`Auswahlmöglichkeit`,onKeydown:e=>k(e,r),onFocus:u[10]||=e=>i(p).select(n.field._id)},null,42,qe),[[T,x.value.options[r]]]),m.value?(g(),c(`button`,{key:0,type:`button`,class:`grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent`,title:`Entfernen`,onClick:w(e=>O(r),[`stop`])},[e(i(P),{class:`size-3.5`})],8,Je)):C(``,!0)]))),128)),m.value?(g(),c(`button`,{key:0,type:`button`,class:`ml-6.5 inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:w(D,[`stop`])},[e(i(W),{class:`size-3.5`}),u[21]||=t(` Auswahlmöglichkeit`,-1)])):C(``,!0)])):n.field.type===`file`?(g(),c(`div`,Ye,[e(i(U),{class:`size-4`}),t(` `+y(x.value.multiple?`Dateien auswählen`:`Datei auswählen`),1)])):n.field.type===`date`?(g(),c(`div`,{key:4,class:o([et,`justify-between`])},[u[22]||=t(`TT.MM.JJJJ `,-1),e(i(ye),{class:`size-4`})],2)):x.value.locked&&x.value.prefill?(g(),c(`div`,Xe,[e(i(H),{class:`size-3.5`}),t(` Aus dem Profil: `+y(i(p).prefillOptions.find(e=>e.value===x.value.prefill)?.label??x.value.prefill)+` – nicht änderbar `,1)])):(g(),c(`div`,Ze,[a(s(`input`,{"onUpdate:modelValue":u[11]||=e=>x.value.placeholder=e,class:`h-9 w-full bg-transparent px-3 text-sm outline-none placeholder:text-muted-foreground/50`,placeholder:n.field.type===`text`?`Platzhalter (optional)`:``,disabled:n.field.type!==`text`,"aria-label":`Platzhalter`},null,8,Qe),[[T,x.value.placeholder]])])),m.value||x.value.help?a((g(),c(`input`,{key:7,"onUpdate:modelValue":u[12]||=e=>x.value.help=e,class:o([$,`text-[13px] text-muted-foreground`]),placeholder:`Hinweis unter dem Feld hinzufügen …`,"aria-label":`Hinweis`},null,2)),[[T,x.value.help]]):C(``,!0)]))],10,Ae))}},nt={class:`grid gap-5`},rt={class:`flex items-center gap-3`},it={class:`grid size-9 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},at={class:`min-w-0`},ot={class:`font-semibold`},st={key:0,class:`grid gap-1.5`},ct={class:`grid gap-1.5`},lt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},ut={class:`grid gap-1.5`},dt={class:`grid grid-cols-2 rounded-md border p-0.5 text-[13px]`,role:`group`},ft=[`aria-pressed`,`onClick`],pt={class:`grid gap-1.5`},mt={key:0,class:`grid gap-1.5`},ht={key:1,class:`grid gap-1.5 rounded-md border p-3`},gt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},_t={class:`text-xs text-muted-foreground`},vt={key:0,class:`text-xs text-amber-700 dark:text-amber-300`},yt={key:2,class:`grid grid-cols-2 gap-3`},bt={key:0,class:`grid gap-1.5`},xt={class:`text-[13px] font-medium`},St={class:`grid gap-1.5`},Ct={class:`text-[13px] font-medium`},wt={key:1,class:`grid gap-1.5`},Tt={class:`grid gap-1.5`},Et={class:`grid gap-1.5`},Dt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Ot={key:4,class:`grid gap-1.5`},kt=[`onClick`],At=[`onClick`],jt=[`onClick`],Mt=[`open`],Nt={class:`grid gap-3 border-t px-3 py-3`},Pt={key:0,class:`text-xs text-muted-foreground`},Ft={key:2,class:`grid gap-1.5`},It={__name:`FieldSettings`,props:{field:{type:Object,required:!0}},setup(n){let a=n,u=r(`forms:builder`),d=f(()=>a.field.data),p=f(()=>X.includes(a.field.type)),m=f(()=>{let e=u.fields.findIndex(e=>e._id===a.field._id);return u.fields.slice(0,e).filter(e=>!X.includes(e.type)).map(e=>({value:e.data.key,label:e.data.label||e.data.key}))}),h=f(()=>u.fields.find(e=>e.data.key===d.value.condition_field)),v=f(()=>{let e=h.value;return e?e.type===`checkbox`?[{value:`1`,label:`angehakt`}]:Z.includes(e.type)?(e.data.options??[]).filter(Boolean).map(e=>({value:e,label:e})):null:null});function x(e){if(!e){delete d.value.condition_field,delete d.value.condition_operator,delete d.value.condition_value;return}d.value.condition_field=e,d.value.condition_operator??=`equals`}function w(e,t){let n=[...d.value.options],r=e+t;r<0||r>=n.length||([n[e],n[r]]=[n[r],n[e]],d.value.options=n)}let T=e=>({get:()=>d.value[e]??``,set:t=>t===``||t===null?delete d.value[e]:d.value[e]=Number(t)}),E=f(T(`min`)),D=f(T(`max`)),O=f(T(`rows`)),k=f(T(`max_size`));return(r,a)=>(g(),c(`div`,nt,[s(`header`,rt,[s(`span`,it,[(g(),b(S(i(Y)[n.field.type].icon),{class:`size-4.5`}))]),s(`div`,at,[s(`h2`,ot,y(i(u).types[n.field.type]),1),a[17]||=s(`p`,{class:`text-xs text-muted-foreground`},`Bezeichnung und Auswahlmöglichkeiten bearbeiten Sie direkt im Formular.`,-1)])]),p.value?(g(),c(`label`,st,[a[18]||=s(`span`,{class:`text-[13px] font-medium`},`Text`,-1),n.field.type===`paragraph`?(g(),b(i(he),{key:0,modelValue:d.value.text,"onUpdate:modelValue":a[0]||=e=>d.value.text=e,rows:`4`,maxlength:`3000`},null,8,[`modelValue`])):(g(),b(i(J),{key:1,modelValue:d.value.text,"onUpdate:modelValue":a[1]||=e=>d.value.text=e,maxlength:`200`},null,8,[`modelValue`]))])):(g(),c(_,{key:1},[s(`label`,ct,[a[19]||=s(`span`,{class:`text-[13px] font-medium`},`Bezeichnung`,-1),e(i(J),{modelValue:d.value.label,"onUpdate:modelValue":a[2]||=e=>d.value.label=e,maxlength:`200`},null,8,[`modelValue`])]),s(`label`,lt,[a[20]||=t(` Pflichtfeld `,-1),e(i(V),{"model-value":!!d.value.required,"onUpdate:modelValue":a[3]||=e=>d.value.required=e},null,8,[`model-value`])]),s(`div`,ut,[a[21]||=s(`span`,{class:`text-[13px] font-medium`},`Breite`,-1),s(`div`,dt,[(g(),c(_,null,l([{value:`full`,label:`Volle Breite`},{value:`half`,label:`Halbe Breite`}],e=>s(`button`,{key:e.value,type:`button`,class:o([`rounded py-1.5`,(d.value.width??`full`)===e.value?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),"aria-pressed":(d.value.width??`full`)===e.value,onClick:t=>d.value.width=e.value},y(e.label),11,ft)),64))])]),s(`label`,pt,[a[22]||=s(`span`,{class:`text-[13px] font-medium`},`Hinweis unter dem Feld`,-1),e(i(J),{modelValue:d.value.help,"onUpdate:modelValue":a[4]||=e=>d.value.help=e,maxlength:`300`},null,8,[`modelValue`])]),[`text`,`email`,`phone`].includes(n.field.type)?(g(),c(`label`,mt,[a[23]||=s(`span`,{class:`text-[13px] font-medium`},`Vorbelegen mit`,-1),e(q,{"model-value":d.value.prefill??null,options:i(u).prefillOptions,placeholder:`– nicht vorbelegen –`,"onUpdate:modelValue":a[5]||=e=>e?d.value.prefill=e:(delete d.value.prefill,delete d.value.locked)},null,8,[`model-value`,`options`])])):C(``,!0),[`text`,`email`,`phone`].includes(n.field.type)&&d.value.prefill?(g(),c(`div`,ht,[s(`label`,gt,[a[24]||=t(` Nicht änderbar `,-1),e(i(V),{"model-value":!!d.value.locked,"onUpdate:modelValue":a[6]||=e=>e?d.value.locked=!0:delete d.value.locked},null,8,[`model-value`])]),s(`span`,_t,y(d.value.locked?`Das Feld zeigt den Wert aus dem Profil und kann nicht geändert werden. Beim Absenden wird immer der Profilwert gespeichert.`:`Das Feld ist mit dem Profilwert vorausgefüllt, kann aber geändert werden.`),1),d.value.locked&&i(u).anonymous?(g(),c(`span`,vt,`Achtung: Das Formular ist anonym – diese Profilangabe wird trotzdem mit der Einsendung gespeichert.`)):C(``,!0)])):C(``,!0),[`text`,`textarea`,`number`,`checkboxes`].includes(n.field.type)?(g(),c(`div`,yt,[[`number`,`checkboxes`].includes(n.field.type)?(g(),c(`label`,bt,[s(`span`,xt,y(n.field.type===`checkboxes`?`Mindestens wählen`:`Mindestens`),1),e(i(J),{modelValue:E.value,"onUpdate:modelValue":a[7]||=e=>E.value=e,type:`number`},null,8,[`modelValue`])])):C(``,!0),s(`label`,St,[s(`span`,Ct,y({text:`Höchstlänge`,textarea:`Höchstlänge`,number:`Höchstens`,checkboxes:`Höchstens wählen`}[n.field.type]),1),e(i(J),{modelValue:D.value,"onUpdate:modelValue":a[8]||=e=>D.value=e,type:`number`,min:`1`},null,8,[`modelValue`])]),n.field.type===`textarea`?(g(),c(`label`,wt,[a[25]||=s(`span`,{class:`text-[13px] font-medium`},`Zeilen`,-1),e(i(J),{modelValue:O.value,"onUpdate:modelValue":a[9]||=e=>O.value=e,type:`number`,min:`2`,max:`20`},null,8,[`modelValue`])])):C(``,!0)])):C(``,!0),n.field.type===`file`?(g(),c(_,{key:3},[s(`label`,Tt,[a[26]||=s(`span`,{class:`text-[13px] font-medium`},`Erlaubte Dateien`,-1),e(q,{modelValue:d.value.accept,"onUpdate:modelValue":a[10]||=e=>d.value.accept=e,options:[{value:`documents`,label:`Dokumente (PDF, Office …)`},{value:`images`,label:`Bilder`},{value:`any`,label:`Dokumente und Bilder`}]},null,8,[`modelValue`])]),s(`label`,Et,[a[27]||=s(`span`,{class:`text-[13px] font-medium`},`Höchstgröße in MB`,-1),e(i(J),{modelValue:k.value,"onUpdate:modelValue":a[11]||=e=>k.value=e,type:`number`,min:`1`,max:`50`},null,8,[`modelValue`])]),s(`label`,Dt,[a[28]||=t(` Mehrere Dateien (bis 10) `,-1),e(i(V),{"model-value":!!d.value.multiple,"onUpdate:modelValue":a[12]||=e=>d.value.multiple=e},null,8,[`model-value`])])],64)):C(``,!0),i(Z).includes(n.field.type)?(g(),c(`div`,Ot,[a[30]||=s(`span`,{class:`text-[13px] font-medium`},`Auswahlmöglichkeiten`,-1),(g(!0),c(_,null,l(d.value.options,(t,n)=>(g(),c(`div`,{key:n,class:`flex items-center gap-1`},[e(i(J),{modelValue:d.value.options[n],"onUpdate:modelValue":e=>d.value.options[n]=e,class:`h-8`,maxlength:`200`},null,8,[`modelValue`,`onUpdate:modelValue`]),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>w(n,-1)},[e(i(M),{class:`size-3.5`})],8,kt),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:e=>w(n,1)},[e(i(j),{class:`size-3.5`})],8,At),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>d.value.options=d.value.options.filter((e,t)=>t!==n)},[e(i(P),{class:`size-3.5`})],8,jt)]))),128)),s(`button`,{type:`button`,class:`inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:a[13]||=e=>d.value.options=[...d.value.options??[],``]},[e(i(W),{class:`size-3.5`}),a[29]||=t(` Hinzufügen`,-1)])])):C(``,!0)],64)),s(`details`,{class:`rounded-md border`,open:!!d.value.condition_field},[a[31]||=s(`summary`,{class:`cursor-pointer px-3 py-2 text-[13px] font-medium`},`Nur anzeigen, wenn …`,-1),s(`div`,Nt,[m.value.length?(g(),c(_,{key:1},[e(q,{"model-value":d.value.condition_field??null,options:m.value,placeholder:`– immer anzeigen –`,"aria-label":`Feld`,"onUpdate:modelValue":x},null,8,[`model-value`,`options`]),d.value.condition_field?(g(),c(_,{key:0},[e(q,{modelValue:d.value.condition_operator,"onUpdate:modelValue":a[14]||=e=>d.value.condition_operator=e,options:Object.entries(i(ke)).map(([e,t])=>({value:e,label:t})),"aria-label":`Bedingung`},null,8,[`modelValue`,`options`]),[`filled`,`empty`].includes(d.value.condition_operator)?C(``,!0):(g(),c(_,{key:0},[v.value?(g(),b(q,{key:0,modelValue:d.value.condition_value,"onUpdate:modelValue":a[15]||=e=>d.value.condition_value=e,options:v.value,placeholder:`Wert wählen …`,"aria-label":`Wert`},null,8,[`modelValue`,`options`])):(g(),b(i(J),{key:1,modelValue:d.value.condition_value,"onUpdate:modelValue":a[16]||=e=>d.value.condition_value=e,placeholder:`Wert`,"aria-label":`Wert`},null,8,[`modelValue`]))],64))],64)):C(``,!0)],64)):(g(),c(`p`,Pt,`Bedingungen beziehen sich auf Felder weiter oben im Formular.`))])],8,Mt),p.value?C(``,!0):(g(),c(`label`,Ft,[a[32]||=s(`span`,{class:`text-[13px] font-medium`},`Technischer Schlüssel`,-1),e(i(J),{"model-value":d.value.key,disabled:``,class:`font-mono text-xs`},null,8,[`model-value`]),a[33]||=s(`span`,{class:`text-xs text-muted-foreground`},`Für Export und Bedingungen. Wird aus der Bezeichnung gebildet und bleibt danach gleich.`,-1)]))]))}},Lt={class:`flex h-dvh flex-col bg-background`},Rt={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},zt={class:`min-w-0 flex-1`},Bt={class:`truncate text-sm font-semibold`},Vt={class:`flex items-center gap-1 truncate text-xs text-muted-foreground`,"aria-live":`polite`},Ht={class:`flex rounded-md border p-0.5 text-sm`,role:`group`,"aria-label":`Ansicht`},Ut=[`href`],Wt=[`href`],Gt={class:`flex min-h-0 flex-1`},Kt={class:`mx-auto max-w-3xl px-4 py-8`},qt={key:0,class:`mb-4 rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-[13px] text-amber-900 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`},Jt={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},Yt={key:0,class:`rounded-md border border-dashed p-6 text-center text-sm text-muted-foreground`},Xt={class:`grid grid-cols-2 gap-2`},Zt=[`onClick`],Qt={class:`truncate`},$t={class:`text-3xl font-semibold tracking-tight`},en={key:0,class:`mt-3 leading-relaxed whitespace-pre-line text-muted-foreground`},tn={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},nn={key:0,class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},rn={class:`min-h-0 flex-1 overflow-y-auto p-4`},an={class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},on=[`onClick`],sn={class:`truncate`},cn={__name:`Builder`,props:{form:{type:Object,required:!0},types:{type:Object,required:!0},prefillOptions:{type:Array,required:!0},settingsUrl:{type:String,required:!0},resultsUrl:{type:String,default:null}},setup(r){let d=r,A=p({title:d.form.title,description:d.form.description??``,fields:d.form.fields.map(e=>({_id:Q(),type:e.type,data:{...e.data}}))}),j=x(null),M=x(null),N=x(`edit`),P=x(!1),F=x(JSON.stringify(A)),L=f(()=>JSON.stringify(A)!==F.value),R=f(()=>A.fields.find(e=>e._id===j.value)??null);n(()=>A.fields.map(e=>[e._new,e.data.label,e.data.text]),()=>Ee(A.fields),{deep:!0,immediate:!0});function z(e){j.value=e}function B(e,t=null){let n=De(e),r=A.fields.findIndex(e=>e._id===j.value),i=t??(r>=0?r+1:A.fields.length);A.fields.splice(i,0,n),z(n._id),requestAnimationFrame(()=>{let e=document.querySelector(`[data-field-id="${n._id}"]`);e?.scrollIntoView({behavior:`smooth`,block:`center`}),e?.querySelector(`input, textarea`)?.select()})}function ce(e){let t=A.fields.find(t=>t._id===e),n=A.fields.filter(e=>e.data.condition_field&&e.data.condition_field===t?.data.key);(!n.length||window.confirm(`${n.length} Feld(er) hängen von diesem Feld ab. Die Bedingung wird dort entfernt. Trotzdem löschen?`))&&(n.forEach(e=>{delete e.data.condition_field,delete e.data.condition_operator,delete e.data.condition_value}),A.fields=A.fields.filter(t=>t._id!==e),j.value===e&&z(null))}function le(e){let t=A.fields.findIndex(t=>t._id===e),n={_id:Q(),_new:!0,type:A.fields[t].type,data:structuredClone({...A.fields[t].data,key:void 0})};A.fields.splice(t+1,0,n),z(n._id)}m(`forms:builder`,{get fields(){return A.fields},types:d.types,prefillOptions:d.prefillOptions,anonymous:d.form.anonymous,selectedId:j,errorIndex:M,select:z,remove:ce,duplicate:le});async function V(){if(!P.value){P.value=!0,M.value=null;try{let e={title:A.title,description:A.description,fields:A.fields.map(({type:e,data:t})=>({type:e,data:t}))};(await oe.put(`/redaktion/formulare/${d.form.id}`,e)).fields.forEach((e,t)=>{A.fields[t]&&(A.fields[t].data.key=e.data.key,delete A.fields[t]._new)}),F.value=JSON.stringify(A),I.success(`Formular gespeichert`)}catch(e){let[t,n]=Object.entries(e.fieldErrors??{})[0]??[],r=t?.match(/^fields\.(\d+)/);r&&(M.value=Number(r[1]),z(A.fields[M.value]?._id),document.querySelector(`[data-field-id="${j.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`})),I.error(n??e.message)}finally{P.value=!1}}}function H(e){(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),V()):e.key===`Escape`&&z(null)}function U(e){L.value&&(e.preventDefault(),e.returnValue=``)}let G;u(()=>{window.addEventListener(`keydown`,H),window.addEventListener(`beforeunload`,U),G=E.on(`before`,e=>{if(L.value&&e.detail.visit.method===`get`&&!window.confirm(`Es gibt ungespeicherte Änderungen. Seite trotzdem verlassen?`))return!1})}),h(()=>{window.removeEventListener(`keydown`,H),window.removeEventListener(`beforeunload`,U),G?.()});let q=f(()=>({id:-1,title:A.title,description:A.description,url:`#`,fields:Oe(A.fields),prefill:{},submit_label:`Absenden`,confirmation:``,open:!0})),J=f(()=>{let e={};for(let[t,n]of Object.entries(Y))(e[n.group]??=[]).push({type:t,label:d.types[t],icon:n.icon});return Object.entries(e)});return(n,u)=>(g(),c(_,null,[e(i(O),{title:`Formular: ${A.title}`},null,8,[`title`]),s(`div`,Lt,[s(`header`,Rt,[e(i(D),{href:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zurück zur Redaktion`},{default:v(()=>[e(i(ee),{class:`size-5`})]),_:1}),s(`div`,zt,[s(`p`,Bt,y(A.title||`Ohne Titel`),1),s(`p`,Vt,[P.value?(g(),c(_,{key:0},[e(i(k),{class:`size-3 animate-spin`}),u[11]||=t(` Speichert …`,-1)],64)):L.value?(g(),c(_,{key:1},[t(`Ungespeicherte Änderungen`)],64)):(g(),c(_,{key:2},[e(i(te),{class:`size-3`}),t(` Gespeichert · `+y(r.form.submissions)+` Einsendungen`,1)],64))])]),s(`div`,Ht,[s(`button`,{type:`button`,class:o([`flex items-center gap-1.5 rounded px-2.5 py-1`,N.value===`edit`?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),onClick:u[0]||=e=>N.value=`edit`},[e(i(de),{class:`size-4`}),u[12]||=t(),u[13]||=s(`span`,{class:`hidden sm:inline`},`Bearbeiten`,-1)],2),s(`button`,{type:`button`,class:o([`flex items-center gap-1.5 rounded px-2.5 py-1`,N.value===`preview`?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),onClick:u[1]||=e=>{N.value=`preview`,z(null)}},[e(i(ue),{class:`size-4`}),u[14]||=t(),u[15]||=s(`span`,{class:`hidden sm:inline`},`Vorschau`,-1)],2)]),e(i(K),{variant:`ghost`,size:`icon`,"as-child":``,title:`Einstellungen, Benachrichtigung und Zugriff`},{default:v(()=>[s(`a`,{href:r.settingsUrl},[e(i(pe))],8,Ut)]),_:1}),r.resultsUrl?(g(),b(i(K),{key:0,variant:`ghost`,size:`icon`,"as-child":``,title:`Ergebnisse`},{default:v(()=>[s(`a`,{href:r.resultsUrl},[e(i(me))],8,Wt)]),_:1})):C(``,!0),e(i(K),{disabled:P.value||!L.value,onClick:V},{default:v(()=>[e(i(fe)),u[16]||=t(),u[17]||=s(`span`,{class:`hidden sm:inline`},`Speichern`,-1)]),_:1},8,[`disabled`])]),s(`div`,Gt,[s(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:u[10]||=e=>z(null)},[s(`div`,Kt,[r.form.submissions&&N.value===`edit`?(g(),c(`p`,qt,` Es gibt bereits `+y(r.form.submissions)+` Einsendungen. Umbenennen ist unproblematisch – gelöschte Felder fehlen nur in neuen Einsendungen. `,1)):C(``,!0),N.value===`edit`?(g(),c(_,{key:1},[a(s(`input`,{"onUpdate:modelValue":u[2]||=e=>A.title=e,class:`w-full rounded-sm bg-transparent text-3xl font-semibold tracking-tight outline-none focus:bg-brand-soft/40`,placeholder:`Titel des Formulars`,"aria-label":`Titel`,maxlength:`200`,onClick:u[3]||=w(()=>{},[`stop`])},null,512),[[T,A.title]]),a(s(`textarea`,{"onUpdate:modelValue":u[4]||=e=>A.description=e,class:`field-sizing-content mt-3 w-full resize-none rounded-sm bg-transparent leading-relaxed text-muted-foreground outline-none placeholder:text-muted-foreground/50 focus:bg-brand-soft/40`,placeholder:`Einleitung (optional) – z. B. wofür das Formular gedacht ist und wer es bearbeitet`,"aria-label":`Einleitung`,rows:`1`,maxlength:`2000`,onClick:u[5]||=w(()=>{},[`stop`])},null,512),[[T,A.description]]),s(`div`,Jt,[e(i(se),{modelValue:A.fields,"onUpdate:modelValue":u[6]||=e=>A.fields=e,group:{name:`form-fields`},handle:`.fb-handle`,animation:150,"ghost-class":`pb-ghost`,class:`grid min-h-24 gap-x-5 gap-y-3 @xl:grid-cols-2`,onAdd:u[7]||=e=>z(A.fields[e.newIndex]?._id)},{default:v(()=>[(g(!0),c(_,null,l(A.fields,(e,t)=>(g(),b(tt,{key:e._id,field:e,index:t},null,8,[`field`,`index`]))),128))]),_:1},8,[`modelValue`]),A.fields.length?C(``,!0):(g(),c(`p`,Yt,` Noch keine Felder. Felder aus der rechten Spalte hierher ziehen oder anklicken. `)),e(i(re),null,{default:v(()=>[e(i(ie),{class:`mt-4 flex h-9 w-full items-center justify-center gap-1.5 rounded-md border border-dashed text-sm font-medium text-muted-foreground hover:border-brand-300 hover:bg-brand-soft hover:text-brand-soft-foreground`,onClick:u[8]||=w(()=>{},[`stop`])},{default:v(()=>[e(i(W),{class:`size-4`}),u[18]||=t(` Feld hinzufügen `,-1)]),_:1}),e(i(ae),{class:`w-[22rem] p-3`,onClick:u[9]||=w(()=>{},[`stop`])},{default:v(()=>[s(`div`,Xt,[(g(!0),c(_,null,l(r.types,(e,n)=>(g(),c(`button`,{key:n,type:`button`,class:`flex items-center gap-2 rounded-md border px-2.5 py-2 text-left text-[13px] font-medium hover:border-brand-300 hover:bg-brand-soft/60`,onClick:e=>B(n,A.fields.length)},[(g(),b(S(i(Y)[n].icon),{class:`size-4 shrink-0 text-brand-text`})),u[19]||=t(),s(`span`,Qt,y(e),1)],8,Zt))),128))])]),_:1})]),_:1}),u[20]||=s(`div`,{class:`mt-5 flex items-center gap-4 border-t pt-5`},[s(`span`,{class:`inline-flex h-9 items-center rounded-md bg-brand px-4 text-sm font-medium text-brand-foreground opacity-80`},`Absenden`),s(`span`,{class:`text-xs text-muted-foreground`},`Beschriftung und Bestätigungstext unter „Einstellungen“`)],-1)])],64)):(g(),c(_,{key:2},[s(`h1`,$t,y(A.title),1),A.description?(g(),c(`p`,en,y(A.description),1)):C(``,!0),s(`div`,tn,[(g(),b(ge,{key:JSON.stringify(q.value.fields),form:q.value,preview:``},null,8,[`form`]))]),u[21]||=s(`p`,{class:`mt-3 text-center text-xs text-muted-foreground`},`Vorschau: Bedingungen und Pflichtfelder funktionieren wie im Portal, gesendet wird nichts.`,-1)],64))])]),N.value===`edit`?(g(),c(`aside`,nn,[s(`div`,rn,[R.value?(g(),b(It,{key:R.value._id,field:R.value},null,8,[`field`])):(g(),c(_,{key:1},[u[22]||=s(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt das Feld unter dem ausgewählten ein. Felder lassen sich auch an jede Stelle ziehen.`,-1),(g(!0),c(_,null,l(J.value,([t,n])=>(g(),c(`section`,{key:t,class:`mb-4`},[s(`h3`,an,y(t),1),e(i(se),{"model-value":n,group:{name:`form-fields`,pull:`clone`,put:!1},clone:e=>i(De)(e.type),sort:!1,class:`grid grid-cols-2 gap-2`},{default:v(()=>[(g(!0),c(_,null,l(n,e=>(g(),c(`button`,{key:e.type,type:`button`,class:`flex cursor-grab items-center gap-2 rounded-md border bg-card px-2.5 py-2 text-left text-[13px] font-medium hover:border-brand-300 hover:bg-brand-soft/60 active:cursor-grabbing`,onClick:t=>B(e.type)},[(g(),b(S(e.icon),{class:`size-4 shrink-0 text-brand-text`})),s(`span`,sn,y(e.label),1)],8,on))),128))]),_:2},1032,[`model-value`,`clone`])]))),128))],64))])])):C(``,!0)])]),e(i(ne),{position:`bottom-left`})],64))}};export{cn as default}; \ No newline at end of file +import{D as e,E as t,Ht as n,J as r,On as i,Yt as a,Zn as o,_ as s,b as c,bt as l,ct as u,er as d,g as f,gn as p,gt as m,it as h,mt as g,o as _,qt as v,tr as y,v as b,vn as x,wt as S,y as C}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w,x as T}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as E,n as D,t as O}from"./app-Cw5f57va.js";import{O as k,k as A}from"./dist-DtGNiYlK.js";import{n as j,t as M}from"./arrow-up-Djq_2Npz.js";import{t as ee}from"./arrow-left-BMImfTf2.js";import{C as N,S as te,_ as P,a as ne,b as F,i as re,n as ie,o as I,r as ae,t as oe,x as L,y as R}from"./http-DmyDwIce.js";import{a as z,i as B,n as se,o as ce,r as le,t as V}from"./Switch-CWN1_5O7.js";import{t as ue}from"./eye-CFNQcvaV.js";import{t as H}from"./lock-H7FAhSBr.js";import{t as U}from"./paperclip-DmVAQ5Y5.js";import{t as de}from"./pencil-line-CmAbFj4f.js";import{t as W}from"./plus-B_ij2ng2.js";import{t as fe}from"./save-aFVYiCIj.js";import{t as pe}from"./settings-2-L4P6usDq.js";import{t as me}from"./table-properties-BPjlj2dD.js";import{t as G}from"./trash-DUqnVIgb.js";import{t as K}from"./button-ZHC5mKey.js";import{t as q}from"./NativeSelect-BGasRaNs.js";import{t as J}from"./Input-FGSb2-yK.js";import{t as he}from"./Textarea-DEFXqC2w.js";import{t as ge}from"./FormRenderer-CbakfY2-.js";var _e=A({name:`asterisk`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m18.065 8.496-12.125 7`,key:`1h26g9`}],[`path`,{d:`m5.94 8.504 12.125 7`,key:`k77sdm`}]]}),ve=A({name:`at-sign`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]}),ye=A({name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]}),be=A({name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]}),xe=A({name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]}),Se=A({name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]}),Ce=A({name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]}),we=A({name:`square-check-big`,size:24,node:[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-square`]}),Y={text:{icon:A({name:`text-cursor-input`,size:24,node:[[`path`,{d:`M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6`,key:`1528k5`}],[`path`,{d:`M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7`,key:`13ksps`}],[`path`,{d:`M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1`,key:`1n9rhb`}],[`path`,{d:`M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1`,key:`1mj8rg`}],[`path`,{d:`M9 6v12`,key:`velyjx`}]]}),group:`Eingabe`,defaults:{label:`Textzeile`,width:`full`}},textarea:{icon:le,group:`Eingabe`,defaults:{label:`Mehrzeiliger Text`,rows:4,width:`full`}},email:{icon:ve,group:`Eingabe`,defaults:{label:`E-Mail-Adresse`,width:`half`}},phone:{icon:R,group:`Eingabe`,defaults:{label:`Telefonnummer`,width:`half`}},number:{icon:Ce,group:`Eingabe`,defaults:{label:`Zahl`,width:`half`}},date:{icon:ye,group:`Eingabe`,defaults:{label:`Datum`,width:`half`}},select:{icon:be,group:`Auswahl`,defaults:{label:`Auswahlliste`,options:[`Option 1`,`Option 2`],width:`full`}},radio:{icon:xe,group:`Auswahl`,defaults:{label:`Einfachauswahl`,options:[`Ja`,`Nein`],width:`full`}},checkboxes:{icon:F,group:`Auswahl`,defaults:{label:`Mehrfachauswahl`,options:[`Option 1`,`Option 2`,`Option 3`],width:`full`}},checkbox:{icon:we,group:`Auswahl`,defaults:{label:`Ich stimme zu.`,width:`full`}},file:{icon:U,group:`Sonstiges`,defaults:{label:`Datei`,accept:`any`,max_size:10,width:`full`}},heading:{icon:B,group:`Gestaltung`,defaults:{text:`Zwischenüberschrift`}},paragraph:{icon:L,group:`Gestaltung`,defaults:{text:`Hinweistext`}}},X=[`heading`,`paragraph`],Z=[`select`,`radio`,`checkboxes`];function Te(e){return String(e??``).toLowerCase().replace(/ä/g,`ae`).replace(/ö/g,`oe`).replace(/ü/g,`ue`).replace(/ß/g,`ss`).normalize(`NFKD`).replace(/[̀-ͯ]/g,``).replace(/@/g,`_at_`).replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``).slice(0,60)}function Q(){return Math.random().toString(36).slice(2,10)}function Ee(e){let t=new Set(e.filter(e=>!e._new&&e.data.key).map(e=>e.data.key));for(let n of e){if(!n._new)continue;let e=Te(n.data.label||n.data.text||n.type)||n.type,r=e;for(let n=2;t.has(r);n++)r=`${e}_${n}`;n.data.key=r,t.add(r)}}function De(e){return{_id:Q(),_new:!0,type:e,data:structuredClone(Y[e].defaults)}}function Oe(e){let t={documents:`.pdf,.doc,.docx,.xls,.xlsx,.odt,.ods,.ppt,.pptx,.txt,.csv,.rtf`,images:`.jpg,.jpeg,.png,.webp,.gif,.heic`,any:``};return e.map(({type:e,data:n})=>({type:e,key:n.key,label:n.label,text:n.text,help:n.help,placeholder:n.placeholder,required:!!n.required,options:(n.options??[]).filter(e=>e!==``),width:n.width??`full`,min:n.min,max:n.max,rows:n.rows,multiple:!!n.multiple,accept:t[n.accept??`any`]||void 0,max_size:n.max_size,locked:!!(n.locked&&n.prefill&&[`text`,`email`,`phone`].includes(e)),condition:n.condition_field?{field:n.condition_field,operator:n.condition_operator??`equals`,value:String(n.condition_value??``)}:null}))}var ke={equals:`ist gleich`,not_equals:`ist nicht`,contains:`enthält`,filled:`ist ausgefüllt`,empty:`ist leer`},Ae=[`data-field-id`],je={class:`fb-handle flex cursor-grab items-center gap-1 px-1 py-0.5 font-medium text-muted-foreground active:cursor-grabbing`,title:`Ziehen zum Verschieben`},Me=[`aria-pressed`],Ne=[`title`],Pe={key:0,class:`mb-1.5 mr-1 inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground`},Fe={key:1,class:`mb-1.5 inline-flex items-center gap-1 rounded bg-amber-100 px-1.5 py-0.5 text-[11px] text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},Ie={key:4,class:`flex items-start gap-2.5`},Le={key:0,class:`text-destructive`},Re={key:5,class:`grid gap-1.5`},ze={class:`flex items-center gap-0.5 text-[13px] font-medium`},Be={key:0,class:`text-destructive`},Ve={key:1,class:`grid gap-1.5`},He={key:0,class:`grid gap-1 rounded-md border border-dashed p-2`},Ue={class:`w-5 text-right text-xs text-muted-foreground`},We=[`onUpdate:modelValue`,`data-option`,`onKeydown`],Ge=[`onClick`],Ke={key:2,class:`grid gap-1.5`},qe=[`onUpdate:modelValue`,`data-option`,`onKeydown`],Je=[`onClick`],Ye={key:3,class:`flex h-10 items-center justify-center gap-2 rounded-md border border-dashed text-sm text-muted-foreground`},Xe={key:5,class:`flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm text-muted-foreground`},Ze={key:6,class:`rounded-md border border-input bg-card shadow-xs`},Qe=[`placeholder`,`disabled`],$=`w-full min-w-0 rounded-sm bg-transparent outline-none placeholder:text-muted-foreground/60 focus:bg-brand-soft/40`,$e=`field-sizing-content min-w-6 max-w-full rounded-sm bg-transparent outline-none placeholder:text-muted-foreground/60 focus:bg-brand-soft/40`,et=`flex h-9 w-full items-center rounded-md border border-input bg-card px-3 text-sm text-muted-foreground shadow-xs`,tt={__name:`BuilderField`,props:{field:{type:Object,required:!0},index:{type:Number,required:!0}},setup(n){let u=n,p=r(`forms:builder`),m=f(()=>p.selectedId.value===u.field._id),h=f(()=>p.errorIndex.value===u.index),v=f(()=>X.includes(u.field.type)),x=f(()=>u.field.data),E=f(()=>{if(!x.value.condition_field)return null;let e=p.fields.find(e=>e.data.key===x.value.condition_field)?.data.label??x.value.condition_field,t=ke[x.value.condition_operator??`equals`];return[`filled`,`empty`].includes(x.value.condition_operator)?`${e} ${t}`:`${e} ${t} „${x.value.condition_value??``}“`});function D(){x.value.options=[...x.value.options??[],`Option ${(x.value.options?.length??0)+1}`],requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${x.value.options.length-1}"]`)?.select())}function O(e){x.value.options=x.value.options.filter((t,n)=>n!==e)}function k(e,t){e.key===`Enter`?(e.preventDefault(),x.value.options.splice(t+1,0,``),requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${t+1}"]`)?.focus())):e.key===`Backspace`&&x.value.options[t]===``&&x.value.options.length>1&&(e.preventDefault(),O(t),requestAnimationFrame(()=>document.querySelector(`[data-option="${u.field._id}-${Math.max(0,t-1)}"]`)?.focus()))}return(r,u)=>(g(),c(`div`,{class:o([`group relative rounded-md p-3 outline-offset-2 transition-[outline-color]`,[n.field.data.width===`half`&&!v.value?``:`@xl:col-span-2`,m.value?`bg-brand-soft/30 outline-2 outline-brand-500`:h.value?`outline-2 outline-destructive`:`outline-1 outline-transparent hover:outline-brand-300`]]),"data-field-id":n.field._id,onClick:u[13]||=w(e=>i(p).select(n.field._id),[`stop`])},[s(`div`,{class:o([`absolute -top-3.5 right-2 z-10 items-center gap-0.5 rounded-md border bg-card px-1 py-0.5 text-xs shadow-sm`,m.value?`flex`:`hidden group-hover:flex`]),onClick:u[4]||=w(()=>{},[`stop`])},[s(`span`,je,[e(i(z),{class:`size-3.5`}),(g(),b(S(i(Y)[n.field.type].icon),{class:`size-3.5`})),t(` `+y(i(p).types[n.field.type]),1)]),v.value?C(``,!0):(g(),c(_,{key:0},[u[15]||=s(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),s(`button`,{type:`button`,class:o([`flex h-6 items-center gap-1 rounded px-1.5`,x.value.required?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),"aria-pressed":!!x.value.required,title:`Pflichtfeld`,onClick:u[0]||=e=>x.value.required=!x.value.required},[e(i(_e),{class:`size-3.5`}),u[14]||=t(` Pflicht `,-1)],10,Me),s(`button`,{type:`button`,class:`h-6 rounded px-1.5 text-muted-foreground hover:bg-accent`,title:x.value.width===`half`?`Volle Breite`:`Halbe Breite`,onClick:u[1]||=e=>x.value.width=x.value.width===`half`?`full`:`half`},y(x.value.width===`half`?`½`:`1/1`),9,Ne)],64)),u[16]||=s(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Duplizieren`,onClick:u[2]||=e=>i(p).duplicate(n.field._id)},[e(i(ce),{class:`size-3.5`})]),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:u[3]||=e=>i(p).remove(n.field._id)},[e(i(G),{class:`size-3.5`})])],2),x.value.prefill&&!x.value.locked&&!v.value?(g(),c(`p`,Pe,` Vorbelegt: `+y(i(p).prefillOptions.find(e=>e.value===x.value.prefill)?.label??x.value.prefill),1)):C(``,!0),E.value?(g(),c(`p`,Fe,[e(i(Se),{class:`size-3`}),t(` Nur wenn `+y(E.value),1)])):C(``,!0),n.field.type===`heading`?a((g(),c(`input`,{key:2,"onUpdate:modelValue":u[5]||=e=>x.value.text=e,class:o([$,`text-lg font-semibold`]),placeholder:`Zwischenüberschrift`,"aria-label":`Zwischenüberschrift`},null,2)),[[T,x.value.text]]):n.field.type===`paragraph`?a((g(),c(`textarea`,{key:3,"onUpdate:modelValue":u[6]||=e=>x.value.text=e,class:o([$,`field-sizing-content resize-none text-sm leading-relaxed text-muted-foreground`]),rows:`1`,placeholder:`Hinweistext`,"aria-label":`Hinweistext`},null,2)),[[T,x.value.text]]):n.field.type===`checkbox`?(g(),c(`div`,Ie,[u[17]||=s(`span`,{class:`mt-0.5 size-4 shrink-0 rounded-[4px] border border-input bg-card`},null,-1),a(s(`input`,{"onUpdate:modelValue":u[7]||=e=>x.value.label=e,class:o([$e,`text-sm`]),placeholder:`Text neben dem Kästchen`,"aria-label":`Bezeichnung`},null,2),[[T,x.value.label]]),x.value.required?(g(),c(`span`,Le,`*`)):C(``,!0)])):(g(),c(`div`,Re,[s(`div`,ze,[a(s(`input`,{"onUpdate:modelValue":u[8]||=e=>x.value.label=e,class:o($e),placeholder:`Bezeichnung`,"aria-label":`Bezeichnung`},null,512),[[T,x.value.label]]),x.value.required?(g(),c(`span`,Be,`*`)):C(``,!0)]),n.field.type===`textarea`?(g(),c(`div`,{key:0,class:`rounded-md border border-input bg-card shadow-xs`,style:d({height:`${(x.value.rows??4)*1.5+1}rem`})},[a(s(`input`,{"onUpdate:modelValue":u[9]||=e=>x.value.placeholder=e,class:`w-full bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground/50`,placeholder:`Platzhalter (optional)`,"aria-label":`Platzhalter`},null,512),[[T,x.value.placeholder]])],4)):n.field.type===`select`?(g(),c(`div`,Ve,[s(`div`,{class:o([et,`justify-between`])},[u[18]||=t(`Bitte wählen … `,-1),e(i(N),{class:`size-4`})],2),m.value?(g(),c(`div`,He,[u[20]||=s(`p`,{class:`text-xs text-muted-foreground`},`Auswahlmöglichkeiten`,-1),(g(!0),c(_,null,l(x.value.options,(t,r)=>(g(),c(`div`,{key:r,class:`flex items-center gap-2`},[s(`span`,Ue,y(r+1)+`.`,1),a(s(`input`,{"onUpdate:modelValue":e=>x.value.options[r]=e,"data-option":`${n.field._id}-${r}`,class:o([$,`text-sm`]),placeholder:`Auswahlmöglichkeit`,onKeydown:e=>k(e,r)},null,42,We),[[T,x.value.options[r]]]),s(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-muted-foreground hover:bg-accent`,title:`Entfernen`,onClick:w(e=>O(r),[`stop`])},[e(i(P),{class:`size-3.5`})],8,Ge)]))),128)),s(`button`,{type:`button`,class:`inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:w(D,[`stop`])},[e(i(W),{class:`size-3.5`}),u[19]||=t(` Auswahlmöglichkeit`,-1)])])):C(``,!0)])):i(Z).includes(n.field.type)?(g(),c(`div`,Ke,[(g(!0),c(_,null,l(x.value.options,(t,r)=>(g(),c(`div`,{key:r,class:`flex items-center gap-2.5`},[s(`span`,{class:o([`size-4 shrink-0 border border-input bg-card`,n.field.type===`radio`?`rounded-full`:`rounded-[4px]`])},null,2),a(s(`input`,{"onUpdate:modelValue":e=>x.value.options[r]=e,"data-option":`${n.field._id}-${r}`,class:o([$,`text-sm`]),placeholder:`Auswahlmöglichkeit`,onKeydown:e=>k(e,r),onFocus:u[10]||=e=>i(p).select(n.field._id)},null,42,qe),[[T,x.value.options[r]]]),m.value?(g(),c(`button`,{key:0,type:`button`,class:`grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent`,title:`Entfernen`,onClick:w(e=>O(r),[`stop`])},[e(i(P),{class:`size-3.5`})],8,Je)):C(``,!0)]))),128)),m.value?(g(),c(`button`,{key:0,type:`button`,class:`ml-6.5 inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:w(D,[`stop`])},[e(i(W),{class:`size-3.5`}),u[21]||=t(` Auswahlmöglichkeit`,-1)])):C(``,!0)])):n.field.type===`file`?(g(),c(`div`,Ye,[e(i(U),{class:`size-4`}),t(` `+y(x.value.multiple?`Dateien auswählen`:`Datei auswählen`),1)])):n.field.type===`date`?(g(),c(`div`,{key:4,class:o([et,`justify-between`])},[u[22]||=t(`TT.MM.JJJJ `,-1),e(i(ye),{class:`size-4`})],2)):x.value.locked&&x.value.prefill?(g(),c(`div`,Xe,[e(i(H),{class:`size-3.5`}),t(` Aus dem Profil: `+y(i(p).prefillOptions.find(e=>e.value===x.value.prefill)?.label??x.value.prefill)+` – nicht änderbar `,1)])):(g(),c(`div`,Ze,[a(s(`input`,{"onUpdate:modelValue":u[11]||=e=>x.value.placeholder=e,class:`h-9 w-full bg-transparent px-3 text-sm outline-none placeholder:text-muted-foreground/50`,placeholder:n.field.type===`text`?`Platzhalter (optional)`:``,disabled:n.field.type!==`text`,"aria-label":`Platzhalter`},null,8,Qe),[[T,x.value.placeholder]])])),m.value||x.value.help?a((g(),c(`input`,{key:7,"onUpdate:modelValue":u[12]||=e=>x.value.help=e,class:o([$,`text-[13px] text-muted-foreground`]),placeholder:`Hinweis unter dem Feld hinzufügen …`,"aria-label":`Hinweis`},null,2)),[[T,x.value.help]]):C(``,!0)]))],10,Ae))}},nt={class:`grid gap-5`},rt={class:`flex items-center gap-3`},it={class:`grid size-9 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},at={class:`min-w-0`},ot={class:`font-semibold`},st={key:0,class:`grid gap-1.5`},ct={class:`grid gap-1.5`},lt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},ut={class:`grid gap-1.5`},dt={class:`grid grid-cols-2 rounded-md border p-0.5 text-[13px]`,role:`group`},ft=[`aria-pressed`,`onClick`],pt={class:`grid gap-1.5`},mt={key:0,class:`grid gap-1.5`},ht={key:1,class:`grid gap-1.5 rounded-md border p-3`},gt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},_t={class:`text-xs text-muted-foreground`},vt={key:0,class:`text-xs text-amber-700 dark:text-amber-300`},yt={key:2,class:`grid grid-cols-2 gap-3`},bt={key:0,class:`grid gap-1.5`},xt={class:`text-[13px] font-medium`},St={class:`grid gap-1.5`},Ct={class:`text-[13px] font-medium`},wt={key:1,class:`grid gap-1.5`},Tt={class:`grid gap-1.5`},Et={class:`grid gap-1.5`},Dt={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Ot={key:4,class:`grid gap-1.5`},kt=[`onClick`],At=[`onClick`],jt=[`onClick`],Mt=[`open`],Nt={class:`grid gap-3 border-t px-3 py-3`},Pt={key:0,class:`text-xs text-muted-foreground`},Ft={key:2,class:`grid gap-1.5`},It={__name:`FieldSettings`,props:{field:{type:Object,required:!0}},setup(n){let a=n,u=r(`forms:builder`),d=f(()=>a.field.data),p=f(()=>X.includes(a.field.type)),m=f(()=>{let e=u.fields.findIndex(e=>e._id===a.field._id);return u.fields.slice(0,e).filter(e=>!X.includes(e.type)).map(e=>({value:e.data.key,label:e.data.label||e.data.key}))}),h=f(()=>u.fields.find(e=>e.data.key===d.value.condition_field)),v=f(()=>{let e=h.value;return e?e.type===`checkbox`?[{value:`1`,label:`angehakt`}]:Z.includes(e.type)?(e.data.options??[]).filter(Boolean).map(e=>({value:e,label:e})):null:null});function x(e){if(!e){delete d.value.condition_field,delete d.value.condition_operator,delete d.value.condition_value;return}d.value.condition_field=e,d.value.condition_operator??=`equals`}function w(e,t){let n=[...d.value.options],r=e+t;r<0||r>=n.length||([n[e],n[r]]=[n[r],n[e]],d.value.options=n)}let T=e=>({get:()=>d.value[e]??``,set:t=>t===``||t===null?delete d.value[e]:d.value[e]=Number(t)}),E=f(T(`min`)),D=f(T(`max`)),O=f(T(`rows`)),k=f(T(`max_size`));return(r,a)=>(g(),c(`div`,nt,[s(`header`,rt,[s(`span`,it,[(g(),b(S(i(Y)[n.field.type].icon),{class:`size-4.5`}))]),s(`div`,at,[s(`h2`,ot,y(i(u).types[n.field.type]),1),a[17]||=s(`p`,{class:`text-xs text-muted-foreground`},`Bezeichnung und Auswahlmöglichkeiten bearbeiten Sie direkt im Formular.`,-1)])]),p.value?(g(),c(`label`,st,[a[18]||=s(`span`,{class:`text-[13px] font-medium`},`Text`,-1),n.field.type===`paragraph`?(g(),b(i(he),{key:0,modelValue:d.value.text,"onUpdate:modelValue":a[0]||=e=>d.value.text=e,rows:`4`,maxlength:`3000`},null,8,[`modelValue`])):(g(),b(i(J),{key:1,modelValue:d.value.text,"onUpdate:modelValue":a[1]||=e=>d.value.text=e,maxlength:`200`},null,8,[`modelValue`]))])):(g(),c(_,{key:1},[s(`label`,ct,[a[19]||=s(`span`,{class:`text-[13px] font-medium`},`Bezeichnung`,-1),e(i(J),{modelValue:d.value.label,"onUpdate:modelValue":a[2]||=e=>d.value.label=e,maxlength:`200`},null,8,[`modelValue`])]),s(`label`,lt,[a[20]||=t(` Pflichtfeld `,-1),e(i(V),{"model-value":!!d.value.required,"onUpdate:modelValue":a[3]||=e=>d.value.required=e},null,8,[`model-value`])]),s(`div`,ut,[a[21]||=s(`span`,{class:`text-[13px] font-medium`},`Breite`,-1),s(`div`,dt,[(g(),c(_,null,l([{value:`full`,label:`Volle Breite`},{value:`half`,label:`Halbe Breite`}],e=>s(`button`,{key:e.value,type:`button`,class:o([`rounded py-1.5`,(d.value.width??`full`)===e.value?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),"aria-pressed":(d.value.width??`full`)===e.value,onClick:t=>d.value.width=e.value},y(e.label),11,ft)),64))])]),s(`label`,pt,[a[22]||=s(`span`,{class:`text-[13px] font-medium`},`Hinweis unter dem Feld`,-1),e(i(J),{modelValue:d.value.help,"onUpdate:modelValue":a[4]||=e=>d.value.help=e,maxlength:`300`},null,8,[`modelValue`])]),[`text`,`email`,`phone`].includes(n.field.type)?(g(),c(`label`,mt,[a[23]||=s(`span`,{class:`text-[13px] font-medium`},`Vorbelegen mit`,-1),e(q,{"model-value":d.value.prefill??null,options:i(u).prefillOptions,placeholder:`– nicht vorbelegen –`,"onUpdate:modelValue":a[5]||=e=>e?d.value.prefill=e:(delete d.value.prefill,delete d.value.locked)},null,8,[`model-value`,`options`])])):C(``,!0),[`text`,`email`,`phone`].includes(n.field.type)&&d.value.prefill?(g(),c(`div`,ht,[s(`label`,gt,[a[24]||=t(` Nicht änderbar `,-1),e(i(V),{"model-value":!!d.value.locked,"onUpdate:modelValue":a[6]||=e=>e?d.value.locked=!0:delete d.value.locked},null,8,[`model-value`])]),s(`span`,_t,y(d.value.locked?`Das Feld zeigt den Wert aus dem Profil und kann nicht geändert werden. Beim Absenden wird immer der Profilwert gespeichert.`:`Das Feld ist mit dem Profilwert vorausgefüllt, kann aber geändert werden.`),1),d.value.locked&&i(u).anonymous?(g(),c(`span`,vt,`Achtung: Das Formular ist anonym – diese Profilangabe wird trotzdem mit der Einsendung gespeichert.`)):C(``,!0)])):C(``,!0),[`text`,`textarea`,`number`,`checkboxes`].includes(n.field.type)?(g(),c(`div`,yt,[[`number`,`checkboxes`].includes(n.field.type)?(g(),c(`label`,bt,[s(`span`,xt,y(n.field.type===`checkboxes`?`Mindestens wählen`:`Mindestens`),1),e(i(J),{modelValue:E.value,"onUpdate:modelValue":a[7]||=e=>E.value=e,type:`number`},null,8,[`modelValue`])])):C(``,!0),s(`label`,St,[s(`span`,Ct,y({text:`Höchstlänge`,textarea:`Höchstlänge`,number:`Höchstens`,checkboxes:`Höchstens wählen`}[n.field.type]),1),e(i(J),{modelValue:D.value,"onUpdate:modelValue":a[8]||=e=>D.value=e,type:`number`,min:`1`},null,8,[`modelValue`])]),n.field.type===`textarea`?(g(),c(`label`,wt,[a[25]||=s(`span`,{class:`text-[13px] font-medium`},`Zeilen`,-1),e(i(J),{modelValue:O.value,"onUpdate:modelValue":a[9]||=e=>O.value=e,type:`number`,min:`2`,max:`20`},null,8,[`modelValue`])])):C(``,!0)])):C(``,!0),n.field.type===`file`?(g(),c(_,{key:3},[s(`label`,Tt,[a[26]||=s(`span`,{class:`text-[13px] font-medium`},`Erlaubte Dateien`,-1),e(q,{modelValue:d.value.accept,"onUpdate:modelValue":a[10]||=e=>d.value.accept=e,options:[{value:`documents`,label:`Dokumente (PDF, Office …)`},{value:`images`,label:`Bilder`},{value:`any`,label:`Dokumente und Bilder`}]},null,8,[`modelValue`])]),s(`label`,Et,[a[27]||=s(`span`,{class:`text-[13px] font-medium`},`Höchstgröße in MB`,-1),e(i(J),{modelValue:k.value,"onUpdate:modelValue":a[11]||=e=>k.value=e,type:`number`,min:`1`,max:`50`},null,8,[`modelValue`])]),s(`label`,Dt,[a[28]||=t(` Mehrere Dateien (bis 10) `,-1),e(i(V),{"model-value":!!d.value.multiple,"onUpdate:modelValue":a[12]||=e=>d.value.multiple=e},null,8,[`model-value`])])],64)):C(``,!0),i(Z).includes(n.field.type)?(g(),c(`div`,Ot,[a[30]||=s(`span`,{class:`text-[13px] font-medium`},`Auswahlmöglichkeiten`,-1),(g(!0),c(_,null,l(d.value.options,(t,n)=>(g(),c(`div`,{key:n,class:`flex items-center gap-1`},[e(i(J),{modelValue:d.value.options[n],"onUpdate:modelValue":e=>d.value.options[n]=e,class:`h-8`,maxlength:`200`},null,8,[`modelValue`,`onUpdate:modelValue`]),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>w(n,-1)},[e(i(M),{class:`size-3.5`})],8,kt),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:e=>w(n,1)},[e(i(j),{class:`size-3.5`})],8,At),s(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>d.value.options=d.value.options.filter((e,t)=>t!==n)},[e(i(P),{class:`size-3.5`})],8,jt)]))),128)),s(`button`,{type:`button`,class:`inline-flex items-center gap-1 justify-self-start text-[13px] font-medium text-brand-text hover:underline`,onClick:a[13]||=e=>d.value.options=[...d.value.options??[],``]},[e(i(W),{class:`size-3.5`}),a[29]||=t(` Hinzufügen`,-1)])])):C(``,!0)],64)),s(`details`,{class:`rounded-md border`,open:!!d.value.condition_field},[a[31]||=s(`summary`,{class:`cursor-pointer px-3 py-2 text-[13px] font-medium`},`Nur anzeigen, wenn …`,-1),s(`div`,Nt,[m.value.length?(g(),c(_,{key:1},[e(q,{"model-value":d.value.condition_field??null,options:m.value,placeholder:`– immer anzeigen –`,"aria-label":`Feld`,"onUpdate:modelValue":x},null,8,[`model-value`,`options`]),d.value.condition_field?(g(),c(_,{key:0},[e(q,{modelValue:d.value.condition_operator,"onUpdate:modelValue":a[14]||=e=>d.value.condition_operator=e,options:Object.entries(i(ke)).map(([e,t])=>({value:e,label:t})),"aria-label":`Bedingung`},null,8,[`modelValue`,`options`]),[`filled`,`empty`].includes(d.value.condition_operator)?C(``,!0):(g(),c(_,{key:0},[v.value?(g(),b(q,{key:0,modelValue:d.value.condition_value,"onUpdate:modelValue":a[15]||=e=>d.value.condition_value=e,options:v.value,placeholder:`Wert wählen …`,"aria-label":`Wert`},null,8,[`modelValue`,`options`])):(g(),b(i(J),{key:1,modelValue:d.value.condition_value,"onUpdate:modelValue":a[16]||=e=>d.value.condition_value=e,placeholder:`Wert`,"aria-label":`Wert`},null,8,[`modelValue`]))],64))],64)):C(``,!0)],64)):(g(),c(`p`,Pt,`Bedingungen beziehen sich auf Felder weiter oben im Formular.`))])],8,Mt),p.value?C(``,!0):(g(),c(`label`,Ft,[a[32]||=s(`span`,{class:`text-[13px] font-medium`},`Technischer Schlüssel`,-1),e(i(J),{"model-value":d.value.key,disabled:``,class:`font-mono text-xs`},null,8,[`model-value`]),a[33]||=s(`span`,{class:`text-xs text-muted-foreground`},`Für Export und Bedingungen. Wird aus der Bezeichnung gebildet und bleibt danach gleich.`,-1)]))]))}},Lt={class:`flex h-dvh flex-col bg-background`},Rt={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},zt={class:`min-w-0 flex-1`},Bt={class:`truncate text-sm font-semibold`},Vt={class:`flex items-center gap-1 truncate text-xs text-muted-foreground`,"aria-live":`polite`},Ht={class:`flex rounded-md border p-0.5 text-sm`,role:`group`,"aria-label":`Ansicht`},Ut=[`href`],Wt=[`href`],Gt={class:`flex min-h-0 flex-1`},Kt={class:`mx-auto max-w-3xl px-4 py-8`},qt={key:0,class:`mb-4 rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-[13px] text-amber-900 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`},Jt={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},Yt={key:0,class:`rounded-md border border-dashed p-6 text-center text-sm text-muted-foreground`},Xt={class:`grid grid-cols-2 gap-2`},Zt=[`onClick`],Qt={class:`truncate`},$t={class:`text-3xl font-semibold tracking-tight`},en={key:0,class:`mt-3 leading-relaxed whitespace-pre-line text-muted-foreground`},tn={class:`@container mt-8 rounded-lg border bg-card p-5 sm:p-8`},nn={key:0,class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},rn={class:`min-h-0 flex-1 overflow-y-auto p-4`},an={class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},on=[`onClick`],sn={class:`truncate`},cn={__name:`Builder`,props:{form:{type:Object,required:!0},types:{type:Object,required:!0},prefillOptions:{type:Array,required:!0},settingsUrl:{type:String,required:!0},resultsUrl:{type:String,default:null}},setup(r){let d=r,A=p({title:d.form.title,description:d.form.description??``,fields:d.form.fields.map(e=>({_id:Q(),type:e.type,data:{...e.data}}))}),j=x(null),M=x(null),N=x(`edit`),P=x(!1),F=x(JSON.stringify(A)),L=f(()=>JSON.stringify(A)!==F.value),R=f(()=>A.fields.find(e=>e._id===j.value)??null);n(()=>A.fields.map(e=>[e._new,e.data.label,e.data.text]),()=>Ee(A.fields),{deep:!0,immediate:!0});function z(e){j.value=e}function B(e,t=null){let n=De(e),r=A.fields.findIndex(e=>e._id===j.value),i=t??(r>=0?r+1:A.fields.length);A.fields.splice(i,0,n),z(n._id),requestAnimationFrame(()=>{let e=document.querySelector(`[data-field-id="${n._id}"]`);e?.scrollIntoView({behavior:`smooth`,block:`center`}),e?.querySelector(`input, textarea`)?.select()})}function ce(e){let t=A.fields.find(t=>t._id===e),n=A.fields.filter(e=>e.data.condition_field&&e.data.condition_field===t?.data.key);(!n.length||window.confirm(`${n.length} Feld(er) hängen von diesem Feld ab. Die Bedingung wird dort entfernt. Trotzdem löschen?`))&&(n.forEach(e=>{delete e.data.condition_field,delete e.data.condition_operator,delete e.data.condition_value}),A.fields=A.fields.filter(t=>t._id!==e),j.value===e&&z(null))}function le(e){let t=A.fields.findIndex(t=>t._id===e),n={_id:Q(),_new:!0,type:A.fields[t].type,data:structuredClone({...A.fields[t].data,key:void 0})};A.fields.splice(t+1,0,n),z(n._id)}m(`forms:builder`,{get fields(){return A.fields},types:d.types,prefillOptions:d.prefillOptions,anonymous:d.form.anonymous,selectedId:j,errorIndex:M,select:z,remove:ce,duplicate:le});async function V(){if(!P.value){P.value=!0,M.value=null;try{let e={title:A.title,description:A.description,fields:A.fields.map(({type:e,data:t})=>({type:e,data:t}))};(await oe.put(`/redaktion/formulare/${d.form.id}`,e)).fields.forEach((e,t)=>{A.fields[t]&&(A.fields[t].data.key=e.data.key,delete A.fields[t]._new)}),F.value=JSON.stringify(A),I.success(`Formular gespeichert`)}catch(e){let[t,n]=Object.entries(e.fieldErrors??{})[0]??[],r=t?.match(/^fields\.(\d+)/);r&&(M.value=Number(r[1]),z(A.fields[M.value]?._id),document.querySelector(`[data-field-id="${j.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`})),I.error(n??e.message)}finally{P.value=!1}}}function H(e){(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),V()):e.key===`Escape`&&z(null)}function U(e){L.value&&(e.preventDefault(),e.returnValue=``)}let G;u(()=>{window.addEventListener(`keydown`,H),window.addEventListener(`beforeunload`,U),G=E.on(`before`,e=>{if(L.value&&e.detail.visit.method===`get`&&!window.confirm(`Es gibt ungespeicherte Änderungen. Seite trotzdem verlassen?`))return!1})}),h(()=>{window.removeEventListener(`keydown`,H),window.removeEventListener(`beforeunload`,U),G?.()});let q=f(()=>({id:-1,title:A.title,description:A.description,url:`#`,fields:Oe(A.fields),prefill:{},submit_label:`Absenden`,confirmation:``,open:!0})),J=f(()=>{let e={};for(let[t,n]of Object.entries(Y))(e[n.group]??=[]).push({type:t,label:d.types[t],icon:n.icon});return Object.entries(e)});return(n,u)=>(g(),c(_,null,[e(i(O),{title:`Formular: ${A.title}`},null,8,[`title`]),s(`div`,Lt,[s(`header`,Rt,[e(i(D),{href:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zurück zur Redaktion`},{default:v(()=>[e(i(ee),{class:`size-5`})]),_:1}),s(`div`,zt,[s(`p`,Bt,y(A.title||`Ohne Titel`),1),s(`p`,Vt,[P.value?(g(),c(_,{key:0},[e(i(k),{class:`size-3 animate-spin`}),u[11]||=t(` Speichert …`,-1)],64)):L.value?(g(),c(_,{key:1},[t(`Ungespeicherte Änderungen`)],64)):(g(),c(_,{key:2},[e(i(te),{class:`size-3`}),t(` Gespeichert · `+y(r.form.submissions)+` Einsendungen`,1)],64))])]),s(`div`,Ht,[s(`button`,{type:`button`,class:o([`flex items-center gap-1.5 rounded px-2.5 py-1`,N.value===`edit`?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),onClick:u[0]||=e=>N.value=`edit`},[e(i(de),{class:`size-4`}),u[12]||=t(),u[13]||=s(`span`,{class:`hidden sm:inline`},`Bearbeiten`,-1)],2),s(`button`,{type:`button`,class:o([`flex items-center gap-1.5 rounded px-2.5 py-1`,N.value===`preview`?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),onClick:u[1]||=e=>{N.value=`preview`,z(null)}},[e(i(ue),{class:`size-4`}),u[14]||=t(),u[15]||=s(`span`,{class:`hidden sm:inline`},`Vorschau`,-1)],2)]),e(i(K),{variant:`ghost`,size:`icon`,"as-child":``,title:`Einstellungen, Benachrichtigung und Zugriff`},{default:v(()=>[s(`a`,{href:r.settingsUrl},[e(i(pe))],8,Ut)]),_:1}),r.resultsUrl?(g(),b(i(K),{key:0,variant:`ghost`,size:`icon`,"as-child":``,title:`Ergebnisse`},{default:v(()=>[s(`a`,{href:r.resultsUrl},[e(i(me))],8,Wt)]),_:1})):C(``,!0),e(i(K),{disabled:P.value||!L.value,onClick:V},{default:v(()=>[e(i(fe)),u[16]||=t(),u[17]||=s(`span`,{class:`hidden sm:inline`},`Speichern`,-1)]),_:1},8,[`disabled`])]),s(`div`,Gt,[s(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:u[10]||=e=>z(null)},[s(`div`,Kt,[r.form.submissions&&N.value===`edit`?(g(),c(`p`,qt,` Es gibt bereits `+y(r.form.submissions)+` Einsendungen. Umbenennen ist unproblematisch – gelöschte Felder fehlen nur in neuen Einsendungen. `,1)):C(``,!0),N.value===`edit`?(g(),c(_,{key:1},[a(s(`input`,{"onUpdate:modelValue":u[2]||=e=>A.title=e,class:`w-full rounded-sm bg-transparent text-3xl font-semibold tracking-tight outline-none focus:bg-brand-soft/40`,placeholder:`Titel des Formulars`,"aria-label":`Titel`,maxlength:`200`,onClick:u[3]||=w(()=>{},[`stop`])},null,512),[[T,A.title]]),a(s(`textarea`,{"onUpdate:modelValue":u[4]||=e=>A.description=e,class:`field-sizing-content mt-3 w-full resize-none rounded-sm bg-transparent leading-relaxed text-muted-foreground outline-none placeholder:text-muted-foreground/50 focus:bg-brand-soft/40`,placeholder:`Einleitung (optional) – z. B. wofür das Formular gedacht ist und wer es bearbeitet`,"aria-label":`Einleitung`,rows:`1`,maxlength:`2000`,onClick:u[5]||=w(()=>{},[`stop`])},null,512),[[T,A.description]]),s(`div`,Jt,[e(i(se),{modelValue:A.fields,"onUpdate:modelValue":u[6]||=e=>A.fields=e,group:{name:`form-fields`},handle:`.fb-handle`,animation:150,"ghost-class":`pb-ghost`,class:`grid min-h-24 gap-x-5 gap-y-3 @xl:grid-cols-2`,onAdd:u[7]||=e=>z(A.fields[e.newIndex]?._id)},{default:v(()=>[(g(!0),c(_,null,l(A.fields,(e,t)=>(g(),b(tt,{key:e._id,field:e,index:t},null,8,[`field`,`index`]))),128))]),_:1},8,[`modelValue`]),A.fields.length?C(``,!0):(g(),c(`p`,Yt,` Noch keine Felder. Felder aus der rechten Spalte hierher ziehen oder anklicken. `)),e(i(re),null,{default:v(()=>[e(i(ie),{class:`mt-4 flex h-9 w-full items-center justify-center gap-1.5 rounded-md border border-dashed text-sm font-medium text-muted-foreground hover:border-brand-300 hover:bg-brand-soft hover:text-brand-soft-foreground`,onClick:u[8]||=w(()=>{},[`stop`])},{default:v(()=>[e(i(W),{class:`size-4`}),u[18]||=t(` Feld hinzufügen `,-1)]),_:1}),e(i(ae),{class:`w-[22rem] p-3`,onClick:u[9]||=w(()=>{},[`stop`])},{default:v(()=>[s(`div`,Xt,[(g(!0),c(_,null,l(r.types,(e,n)=>(g(),c(`button`,{key:n,type:`button`,class:`flex items-center gap-2 rounded-md border px-2.5 py-2 text-left text-[13px] font-medium hover:border-brand-300 hover:bg-brand-soft/60`,onClick:e=>B(n,A.fields.length)},[(g(),b(S(i(Y)[n].icon),{class:`size-4 shrink-0 text-brand-text`})),u[19]||=t(),s(`span`,Qt,y(e),1)],8,Zt))),128))])]),_:1})]),_:1}),u[20]||=s(`div`,{class:`mt-5 flex items-center gap-4 border-t pt-5`},[s(`span`,{class:`inline-flex h-9 items-center rounded-md bg-brand px-4 text-sm font-medium text-brand-foreground opacity-80`},`Absenden`),s(`span`,{class:`text-xs text-muted-foreground`},`Beschriftung und Bestätigungstext unter „Einstellungen“`)],-1)])],64)):(g(),c(_,{key:2},[s(`h1`,$t,y(A.title),1),A.description?(g(),c(`p`,en,y(A.description),1)):C(``,!0),s(`div`,tn,[(g(),b(ge,{key:JSON.stringify(q.value.fields),form:q.value,preview:``},null,8,[`form`]))]),u[21]||=s(`p`,{class:`mt-3 text-center text-xs text-muted-foreground`},`Vorschau: Bedingungen und Pflichtfelder funktionieren wie im Portal, gesendet wird nichts.`,-1)],64))])]),N.value===`edit`?(g(),c(`aside`,nn,[s(`div`,rn,[R.value?(g(),b(It,{key:R.value._id,field:R.value},null,8,[`field`])):(g(),c(_,{key:1},[u[22]||=s(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt das Feld unter dem ausgewählten ein. Felder lassen sich auch an jede Stelle ziehen.`,-1),(g(!0),c(_,null,l(J.value,([t,n])=>(g(),c(`section`,{key:t,class:`mb-4`},[s(`h3`,an,y(t),1),e(i(se),{"model-value":n,group:{name:`form-fields`,pull:`clone`,put:!1},clone:e=>i(De)(e.type),sort:!1,class:`grid grid-cols-2 gap-2`},{default:v(()=>[(g(!0),c(_,null,l(n,e=>(g(),c(`button`,{key:e.type,type:`button`,class:`flex cursor-grab items-center gap-2 rounded-md border bg-card px-2.5 py-2 text-left text-[13px] font-medium hover:border-brand-300 hover:bg-brand-soft/60 active:cursor-grabbing`,onClick:t=>B(e.type)},[(g(),b(S(e.icon),{class:`size-4 shrink-0 text-brand-text`})),s(`span`,sn,y(e.label),1)],8,on))),128))]),_:2},1032,[`model-value`,`clone`])]))),128))],64))])])):C(``,!0)])]),e(i(ne),{position:`bottom-left`})],64))}};export{cn as default}; \ No newline at end of file diff --git a/public/build/assets/Contacts-Dh2GAHtE.js b/public/build/assets/Contacts-Dg320mPC.js similarity index 93% rename from public/build/assets/Contacts-Dh2GAHtE.js rename to public/build/assets/Contacts-Dg320mPC.js index b4d4c61a..1bd3398a 100644 --- a/public/build/assets/Contacts-Dh2GAHtE.js +++ b/public/build/assets/Contacts-Dg320mPC.js @@ -1 +1 @@ -import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-CNhdlRDG.js";import{V as m,p as h}from"./AppIcon-D91Q4hzR.js";import{y as g}from"./http-DmyDwIce.js";var _={key:0,class:`mb-3 text-lg font-semibold`},v={class:`min-w-0`},y={key:0,class:`truncate text-[13px] text-muted-foreground`},b={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},x=[`href`],S=[`href`],C={class:`truncate`},w={key:0,class:`text-sm text-muted-foreground`},T={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(T){let E=n(`pagebuilder:editing`,!1);return(n,D)=>(c(),o(`section`,null,[T.block.data.title?(c(),o(`h3`,_,d(T.block.data.title),1)):f(``,!0),a(`div`,{class:i(T.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(c(!0),o(l,null,s(T.block.props?.people??[],n=>(c(),o(`div`,{key:n.id,class:i([`flex gap-3`,T.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(h,{person:n,class:`size-12 shrink-0`},null,8,[`person`]),a(`div`,v,[e(r(p),{href:`/personen/${n.id}`,class:`block truncate font-semibold hover:underline`},{default:u(()=>[t(d(n.name),1)]),_:2},1032,[`href`]),n.job_title?(c(),o(`p`,y,d(n.job_title),1)):f(``,!0),a(`div`,b,[n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(r(g),{class:`size-3.5`}),t(` `+d(n.phone),1)],8,x)):f(``,!0),a(`a`,{href:`mailto:${n.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(r(m),{class:`size-3.5 shrink-0`}),D[0]||=t(),a(`span`,C,d(n.email),1)],8,S)])])],2))),128)),r(E)&&!(T.block.props?.people??[]).length?(c(),o(`p`,w,`Noch keine Personen ausgewählt.`)):f(``,!0)],2)]))}};export{T as default}; \ No newline at end of file +import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-Cw5f57va.js";import{V as m,p as h}from"./AppIcon-BiVN_tuL.js";import{y as g}from"./http-DmyDwIce.js";var _={key:0,class:`mb-3 text-lg font-semibold`},v={class:`min-w-0`},y={key:0,class:`truncate text-[13px] text-muted-foreground`},b={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},x=[`href`],S=[`href`],C={class:`truncate`},w={key:0,class:`text-sm text-muted-foreground`},T={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(T){let E=n(`pagebuilder:editing`,!1);return(n,D)=>(c(),o(`section`,null,[T.block.data.title?(c(),o(`h3`,_,d(T.block.data.title),1)):f(``,!0),a(`div`,{class:i(T.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(c(!0),o(l,null,s(T.block.props?.people??[],n=>(c(),o(`div`,{key:n.id,class:i([`flex gap-3`,T.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(h,{person:n,class:`size-12 shrink-0`},null,8,[`person`]),a(`div`,v,[e(r(p),{href:`/personen/${n.id}`,class:`block truncate font-semibold hover:underline`},{default:u(()=>[t(d(n.name),1)]),_:2},1032,[`href`]),n.job_title?(c(),o(`p`,y,d(n.job_title),1)):f(``,!0),a(`div`,b,[n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(r(g),{class:`size-3.5`}),t(` `+d(n.phone),1)],8,x)):f(``,!0),a(`a`,{href:`mailto:${n.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(r(m),{class:`size-3.5 shrink-0`}),D[0]||=t(),a(`span`,C,d(n.email),1)],8,S)])])],2))),128)),r(E)&&!(T.block.props?.people??[]).length?(c(),o(`p`,w,`Noch keine Personen ausgewählt.`)):f(``,!0)],2)]))}};export{T as default}; \ No newline at end of file diff --git a/public/build/assets/CustomTile-pTMm8cJn.js b/public/build/assets/CustomTile-Bqq6WIqz.js similarity index 95% rename from public/build/assets/CustomTile-pTMm8cJn.js rename to public/build/assets/CustomTile-Bqq6WIqz.js index 49e152d1..e19915c6 100644 --- a/public/build/assets/CustomTile-pTMm8cJn.js +++ b/public/build/assets/CustomTile-Bqq6WIqz.js @@ -1 +1 @@ -import{On as e,Zn as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{z as u}from"./AppIcon-D91Q4hzR.js";import{S as d,v as f,x as p}from"./http-DmyDwIce.js";import{t as m}from"./circle-alert-D8SqHL0j.js";import{t as h}from"./Panel-DpvMQ4up.js";var g=[`src`,`alt`],_={key:0,class:`block px-4 py-3 text-sm font-semibold group-hover:underline`},v={class:`min-w-0 flex-1`},y={key:0,class:`font-semibold`},b=[`innerHTML`],x=[`href`,`target`],S=[`innerHTML`],C=[`href`,`target`],w={__name:`CustomTile`,props:{tile:{type:Object,required:!0}},setup(w){let T={brand:{icon:u,class:`border-brand bg-brand text-brand-foreground`},info:{icon:p,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`},warning:{icon:f,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`},neutral:{icon:m,class:`border-border bg-card text-foreground`}};return(d,f)=>w.tile.type===`image`&&w.tile.image_url?(i(),s(c(w.tile.url?`a`:`figure`),{key:0,href:w.tile.url||void 0,target:w.tile.url&&w.tile.new_tab?`_blank`:void 0,rel:w.tile.url&&w.tile.new_tab?`noopener`:void 0,class:`group block overflow-hidden rounded-lg border bg-card`},{default:a(()=>[n(`img`,{src:w.tile.image_url,alt:w.tile.alt||w.tile.title||``,loading:`lazy`,class:`w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]`},null,8,g),w.tile.title?(i(),r(`span`,_,o(w.tile.title),1)):l(``,!0)]),_:1},8,[`href`,`target`,`rel`])):w.tile.type===`notice`?(i(),r(`section`,{key:1,class:t([`pb-box flex gap-3 rounded-lg border p-4 sm:p-5`,T[w.tile.variant]?.class??T.brand.class])},[(i(),s(c(T[w.tile.variant]?.icon??e(u)),{class:`mt-0.5 size-5 shrink-0`})),n(`div`,v,[w.tile.title?(i(),r(`p`,y,o(w.tile.title),1)):l(``,!0),w.tile.html?(i(),r(`div`,{key:1,class:t([`prose prose-sm max-w-none [&_a]:underline`,w.tile.title?`mt-1`:``]),innerHTML:w.tile.html},null,10,b)):l(``,!0),w.tile.url?(i(),r(`a`,{key:2,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-2 inline-block text-sm font-medium underline`},`Mehr erfahren`,8,x)):l(``,!0)])],2)):(i(),s(h,{key:2,title:w.tile.title||``},{default:a(()=>[n(`div`,{class:`prose prose-sm prose-neutral max-w-none prose-img:rounded-md`,innerHTML:w.tile.html},null,8,S),w.tile.url?(i(),r(`a`,{key:0,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-3 inline-block text-[13px] font-medium text-brand-text hover:underline`},`Mehr erfahren`,8,C)):l(``,!0)]),_:1},8,[`title`]))}};export{w as default}; \ No newline at end of file +import{On as e,Zn as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{z as u}from"./AppIcon-BiVN_tuL.js";import{S as d,v as f,x as p}from"./http-DmyDwIce.js";import{t as m}from"./circle-alert-D8SqHL0j.js";import{t as h}from"./Panel-DZcEmK5R.js";var g=[`src`,`alt`],_={key:0,class:`block px-4 py-3 text-sm font-semibold group-hover:underline`},v={class:`min-w-0 flex-1`},y={key:0,class:`font-semibold`},b=[`innerHTML`],x=[`href`,`target`],S=[`innerHTML`],C=[`href`,`target`],w={__name:`CustomTile`,props:{tile:{type:Object,required:!0}},setup(w){let T={brand:{icon:u,class:`border-brand bg-brand text-brand-foreground`},info:{icon:p,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`},warning:{icon:f,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`},neutral:{icon:m,class:`border-border bg-card text-foreground`}};return(d,f)=>w.tile.type===`image`&&w.tile.image_url?(i(),s(c(w.tile.url?`a`:`figure`),{key:0,href:w.tile.url||void 0,target:w.tile.url&&w.tile.new_tab?`_blank`:void 0,rel:w.tile.url&&w.tile.new_tab?`noopener`:void 0,class:`group block overflow-hidden rounded-lg border bg-card`},{default:a(()=>[n(`img`,{src:w.tile.image_url,alt:w.tile.alt||w.tile.title||``,loading:`lazy`,class:`w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]`},null,8,g),w.tile.title?(i(),r(`span`,_,o(w.tile.title),1)):l(``,!0)]),_:1},8,[`href`,`target`,`rel`])):w.tile.type===`notice`?(i(),r(`section`,{key:1,class:t([`pb-box flex gap-3 rounded-lg border p-4 sm:p-5`,T[w.tile.variant]?.class??T.brand.class])},[(i(),s(c(T[w.tile.variant]?.icon??e(u)),{class:`mt-0.5 size-5 shrink-0`})),n(`div`,v,[w.tile.title?(i(),r(`p`,y,o(w.tile.title),1)):l(``,!0),w.tile.html?(i(),r(`div`,{key:1,class:t([`prose prose-sm max-w-none [&_a]:underline`,w.tile.title?`mt-1`:``]),innerHTML:w.tile.html},null,10,b)):l(``,!0),w.tile.url?(i(),r(`a`,{key:2,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-2 inline-block text-sm font-medium underline`},`Mehr erfahren`,8,x)):l(``,!0)])],2)):(i(),s(h,{key:2,title:w.tile.title||``},{default:a(()=>[n(`div`,{class:`prose prose-sm prose-neutral max-w-none prose-img:rounded-md`,innerHTML:w.tile.html},null,8,S),w.tile.url?(i(),r(`a`,{key:0,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-3 inline-block text-[13px] font-medium text-brand-text hover:underline`},`Mehr erfahren`,8,C)):l(``,!0)]),_:1},8,[`title`]))}};export{w as default}; \ No newline at end of file diff --git a/public/build/assets/Dashboard-WlKHA3QS.js b/public/build/assets/Dashboard-HoMO9Cew.js similarity index 93% rename from public/build/assets/Dashboard-WlKHA3QS.js rename to public/build/assets/Dashboard-HoMO9Cew.js index 76e9506b..151313b3 100644 --- a/public/build/assets/Dashboard-WlKHA3QS.js +++ b/public/build/assets/Dashboard-HoMO9Cew.js @@ -1 +1 @@ -import{On as e,_ as t,b as n,bt as r,et as i,g as a,mt as o,o as s,qt as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./dist-DtGNiYlK.js";import{t as p}from"./AppLayout-B1gBMLPE.js";import{t as m}from"./widgets-CLxBZxrb.js";var h={key:0,class:`mb-6 grid gap-6`},g={key:1,class:`grid grid-cols-12 gap-6`},_={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},v={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},y={key:2,class:`grid min-w-0 grid-cols-1 gap-6`},b={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(b){let x=b,S=f(`(min-width: 1024px)`),C=a(()=>x.widgets.filter(e=>m(e.component))),w=e=>C.value.filter(t=>t.area===e),T=a(()=>w(`hero`)[0]??null),E=a(()=>[...C.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(a,f)=>(o(),l(p,{title:`Startseite`},{default:c(()=>[e(S)&&w(`top`).length?(o(),n(`div`,h,[(o(!0),n(s,null,r(w(`top`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])):d(``,!0),e(S)?(o(),n(`div`,g,[t(`div`,_,[T.value?(o(),l(u(e(m)(T.value.component)),i({key:0},T.value.props,{class:`xl:col-span-2`}),null,16)):d(``,!0),(o(!0),n(s,null,r(w(`feed`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{wide:!T.value,class:T.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(o(!0),n(s,null,r(w(`main`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{class:`xl:col-span-3`}),null,16))),128))]),t(`aside`,v,[(o(!0),n(s,null,r(w(`aside`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])])):(o(),n(`div`,y,[(o(!0),n(s,null,r(E.value,t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))]))]),_:1}))}};export{b as default}; \ No newline at end of file +import{On as e,_ as t,b as n,bt as r,et as i,g as a,mt as o,o as s,qt as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./dist-DtGNiYlK.js";import{t as p}from"./AppLayout-9kc4awMB.js";import{t as m}from"./widgets-D6uOBs7E.js";var h={key:0,class:`mb-6 grid gap-6`},g={key:1,class:`grid grid-cols-12 gap-6`},_={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},v={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},y={key:2,class:`grid min-w-0 grid-cols-1 gap-6`},b={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(b){let x=b,S=f(`(min-width: 1024px)`),C=a(()=>x.widgets.filter(e=>m(e.component))),w=e=>C.value.filter(t=>t.area===e),T=a(()=>w(`hero`)[0]??null),E=a(()=>[...C.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(a,f)=>(o(),l(p,{title:`Startseite`},{default:c(()=>[e(S)&&w(`top`).length?(o(),n(`div`,h,[(o(!0),n(s,null,r(w(`top`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])):d(``,!0),e(S)?(o(),n(`div`,g,[t(`div`,_,[T.value?(o(),l(u(e(m)(T.value.component)),i({key:0},T.value.props,{class:`xl:col-span-2`}),null,16)):d(``,!0),(o(!0),n(s,null,r(w(`feed`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{wide:!T.value,class:T.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(o(!0),n(s,null,r(w(`main`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{class:`xl:col-span-3`}),null,16))),128))]),t(`aside`,v,[(o(!0),n(s,null,r(w(`aside`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])])):(o(),n(`div`,y,[(o(!0),n(s,null,r(E.value,t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))]))]),_:1}))}};export{b as default}; \ No newline at end of file diff --git a/public/build/assets/DialogDescription-CCacFT45.js b/public/build/assets/DialogDescription-9G5-5WG4.js similarity index 92% rename from public/build/assets/DialogDescription-CCacFT45.js rename to public/build/assets/DialogDescription-9G5-5WG4.js index 254331e4..66b4ea52 100644 --- a/public/build/assets/DialogDescription-CCacFT45.js +++ b/public/build/assets/DialogDescription-9G5-5WG4.js @@ -1 +1 @@ -import{a as e}from"./usePrimitiveElement-DC7UloPZ.js";import{On as t,et as n,k as r,mt as i,qt as a,v as o,xt as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{d as c,l,p as u,s as d}from"./dist-DtGNiYlK.js";import{w as f}from"./AppIcon-D91Q4hzR.js";var p=r({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let r=e;u();let l=f();return(e,u)=>(i(),o(t(c),n(r,{id:t(l).descriptionId}),{default:a(()=>[s(e.$slots,`default`)]),_:3},16,[`id`]))}}),m=r({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(r){let c=r,u=d(c,`class`),f=e(u);return(e,r)=>(i(),o(t(p),n({"data-slot":`dialog-description`},t(f),{class:t(l)(`text-muted-foreground text-sm`,c.class)}),{default:a(()=>[s(e.$slots,`default`)]),_:3},16,[`class`]))}});export{m as t}; \ No newline at end of file +import{a as e}from"./usePrimitiveElement-DC7UloPZ.js";import{On as t,et as n,k as r,mt as i,qt as a,v as o,xt as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{d as c,l,p as u,s as d}from"./dist-DtGNiYlK.js";import{w as f}from"./AppIcon-BiVN_tuL.js";var p=r({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let r=e;u();let l=f();return(e,u)=>(i(),o(t(c),n(r,{id:t(l).descriptionId}),{default:a(()=>[s(e.$slots,`default`)]),_:3},16,[`id`]))}}),m=r({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(r){let c=r,u=d(c,`class`),f=e(u);return(e,r)=>(i(),o(t(p),n({"data-slot":`dialog-description`},t(f),{class:t(l)(`text-muted-foreground text-sm`,c.class)}),{default:a(()=>[s(e.$slots,`default`)]),_:3},16,[`class`]))}});export{m as t}; \ No newline at end of file diff --git a/public/build/assets/DirectoryLogin-DGpHRa93.js b/public/build/assets/DirectoryLogin-wtSKTDLH.js similarity index 95% rename from public/build/assets/DirectoryLogin-DGpHRa93.js rename to public/build/assets/DirectoryLogin-wtSKTDLH.js index eaaa6461..a39fb3e2 100644 --- a/public/build/assets/DirectoryLogin-DGpHRa93.js +++ b/public/build/assets/DirectoryLogin-wtSKTDLH.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as l}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as u,r as d}from"./app-CNhdlRDG.js";import{O as f}from"./dist-DtGNiYlK.js";import{t as p}from"./arrow-left-BMImfTf2.js";import{t as m}from"./eye-off-myis3scV.js";import{t as h}from"./eye-CFNQcvaV.js";import{t as g}from"./FormField-BoFAO4pm.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./Input-FGSb2-yK.js";import{t as y}from"./GuestLayout-Ces130Hf.js";var b={class:`relative`},x=[`aria-label`],S={__name:`DirectoryLogin`,props:{provider:{type:Object,required:!0}},setup(S){let C=S,w=s(!1),T=d({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,d)=>(i(),o(y,{title:S.provider.label,description:`Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:l(E,[`prevent`])},[e(g,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(v),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":d[0]||=e=>n(T).username=e,autocomplete:`username`,autocapitalize:`none`,spellcheck:`false`,autofocus:``,class:`h-10`,"aria-invalid":!!n(T).errors.username},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`label`,`error`]),e(g,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(v),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":d[1]||=e=>n(T).password=e,type:w.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(T).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":w.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:d[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(m),{key:0,class:`size-4`})):(i(),o(n(h),{key:1,class:`size-4`}))],8,x)])]),_:1},8,[`error`]),e(n(_),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(T).processing},{default:a(()=>[n(T).processing?(i(),o(n(f),{key:0,class:`animate-spin`})):c(``,!0),d[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(u),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(p),{class:`size-4`}),d[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as l}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as u,r as d}from"./app-Cw5f57va.js";import{O as f}from"./dist-DtGNiYlK.js";import{t as p}from"./arrow-left-BMImfTf2.js";import{t as m}from"./eye-off-myis3scV.js";import{t as h}from"./eye-CFNQcvaV.js";import{t as g}from"./FormField-BoFAO4pm.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./Input-FGSb2-yK.js";import{t as y}from"./GuestLayout-NI5YopFI.js";var b={class:`relative`},x=[`aria-label`],S={__name:`DirectoryLogin`,props:{provider:{type:Object,required:!0}},setup(S){let C=S,w=s(!1),T=d({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,d)=>(i(),o(y,{title:S.provider.label,description:`Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:l(E,[`prevent`])},[e(g,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(v),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":d[0]||=e=>n(T).username=e,autocomplete:`username`,autocapitalize:`none`,spellcheck:`false`,autofocus:``,class:`h-10`,"aria-invalid":!!n(T).errors.username},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`label`,`error`]),e(g,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(v),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":d[1]||=e=>n(T).password=e,type:w.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(T).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":w.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:d[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(m),{key:0,class:`size-4`})):(i(),o(n(h),{key:1,class:`size-4`}))],8,x)])]),_:1},8,[`error`]),e(n(_),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(T).processing},{default:a(()=>[n(T).processing?(i(),o(n(f),{key:0,class:`animate-spin`})):c(``,!0),d[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(u),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(p),{class:`size-4`}),d[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default}; \ No newline at end of file diff --git a/public/build/assets/Downloads-DgFFie8f.js b/public/build/assets/Downloads-CjblZ5N0.js similarity index 95% rename from public/build/assets/Downloads-DgFFie8f.js rename to public/build/assets/Downloads-CjblZ5N0.js index 7ab1e329..66fec6d9 100644 --- a/public/build/assets/Downloads-DgFFie8f.js +++ b/public/build/assets/Downloads-CjblZ5N0.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,tr as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{J as l}from"./AppIcon-D91Q4hzR.js";import{t as u}from"./download-UAAY3N2F.js";var d={key:0,class:`mb-3 text-lg font-semibold`},f={class:`divide-y rounded-lg border bg-card`},p=[`href`],m={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block text-xs text-muted-foreground`},v={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},y={__name:`Downloads`,props:{block:{type:Object,required:!0}},setup(y){let b=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(x,S)=>(a(),r(`section`,null,[y.block.data.title?(a(),r(`h3`,d,s(y.block.data.title),1)):c(``,!0),n(`ul`,f,[(a(!0),r(o,null,i(y.block.props?.files??[],i=>(a(),r(`li`,{key:i.id},[n(`a`,{href:i.url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[n(`span`,m,[e(t(l),{class:`size-5`})]),n(`span`,h,[n(`span`,g,s(i.name),1),n(`span`,_,s(i.extension||`Datei`)+` · `+s(b(i.size)),1)]),e(t(u),{class:`size-4 shrink-0 text-muted-foreground`})],8,p)]))),128)),(y.block.props?.files??[]).length?c(``,!0):(a(),r(`li`,v,`Noch keine Dateien.`))])]))}};export{y as default}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,tr as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{J as l}from"./AppIcon-BiVN_tuL.js";import{t as u}from"./download-UAAY3N2F.js";var d={key:0,class:`mb-3 text-lg font-semibold`},f={class:`divide-y rounded-lg border bg-card`},p=[`href`],m={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block text-xs text-muted-foreground`},v={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},y={__name:`Downloads`,props:{block:{type:Object,required:!0}},setup(y){let b=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(x,S)=>(a(),r(`section`,null,[y.block.data.title?(a(),r(`h3`,d,s(y.block.data.title),1)):c(``,!0),n(`ul`,f,[(a(!0),r(o,null,i(y.block.props?.files??[],i=>(a(),r(`li`,{key:i.id},[n(`a`,{href:i.url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[n(`span`,m,[e(t(l),{class:`size-5`})]),n(`span`,h,[n(`span`,g,s(i.name),1),n(`span`,_,s(i.extension||`Datei`)+` · `+s(b(i.size)),1)]),e(t(u),{class:`size-4 shrink-0 text-muted-foreground`})],8,p)]))),128)),(y.block.props?.files??[]).length?c(``,!0):(a(),r(`li`,v,`Noch keine Dateien.`))])]))}};export{y as default}; \ No newline at end of file diff --git a/public/build/assets/Edit-C56BLfqW.js b/public/build/assets/Edit-FPtTIlfR.js similarity index 93% rename from public/build/assets/Edit-C56BLfqW.js rename to public/build/assets/Edit-FPtTIlfR.js index cafdb6b1..f0e3e4c7 100644 --- a/public/build/assets/Edit-C56BLfqW.js +++ b/public/build/assets/Edit-FPtTIlfR.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProfileBirthday-DCFHtZdP.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-CNhdlRDG.js","assets/app--xQ6sxMx.css","assets/dist-DtGNiYlK.js","assets/AppIcon-D91Q4hzR.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-DmyDwIce.js","assets/FormField-BoFAO4pm.js","assets/button-ZHC5mKey.js","assets/NativeSelect-BGasRaNs.js","assets/Panel-DpvMQ4up.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 r,_ as i,b as a,bt as o,et as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,wt as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as _,o as v,r as y}from"./app-CNhdlRDG.js";import{O as b,k as x}from"./dist-DtGNiYlK.js";import{p as te}from"./AppIcon-D91Q4hzR.js";import{t as S}from"./AppLayout-B1gBMLPE.js";import{o as C}from"./http-DmyDwIce.js";import{t as w}from"./trash-DUqnVIgb.js";import{t as T}from"./FormField-BoFAO4pm.js";import{t as E}from"./button-ZHC5mKey.js";import{t as D}from"./Panel-DpvMQ4up.js";import{t as O}from"./Input-FGSb2-yK.js";import{t as k}from"./Textarea-DEFXqC2w.js";var A=x({name:`camera`,size:24,node:[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]}),j={class:`grid gap-6 lg:grid-cols-12`},M={class:`lg:col-span-4`},N={class:`flex flex-col items-center text-center`},P={class:`mt-5 flex flex-wrap justify-center gap-2`},F={key:0,class:`mt-3 text-[13px] text-destructive`},I={class:`grid content-start gap-6 lg:col-span-8`},L={class:`grid gap-5 sm:grid-cols-2`},R={key:0,class:`grid gap-5 border-t pt-5`},z={class:`grid gap-5 sm:grid-cols-2`},B={class:`flex justify-end border-t pt-5`},V={class:`grid gap-5 sm:grid-cols-2`},H={class:`flex justify-end border-t pt-5`},U={__name:`Edit`,props:{profile:{type:Object,required:!0},managed:{type:Array,default:()=>[]},customFields:{type:Array,default:()=>[]},sections:{type:Array,default:()=>[]}},setup(x){let U=x,W=Object.fromEntries(Object.entries(Object.assign({"../../../../plugins-core/birthdays/resources/js/profile/ProfileBirthday.vue":()=>v(()=>import(`./ProfileBirthday-DCFHtZdP.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))})).map(([e,t])=>[`${e.match(/plugins-core\/([^/]+)\//)[1]}::${e.split(`/`).pop().replace(`.vue`,``)}`,ee(t)])),G=e=>U.managed.includes(e),K=y({first_name:U.profile.first_name??``,last_name:U.profile.last_name??``,email:U.profile.email,job_title:U.profile.job_title??``,department:U.profile.department??``,location:U.profile.location??``,phone:U.profile.phone??``,mobile:U.profile.mobile??``,about:U.profile.about??``,custom_fields:Object.fromEntries(U.customFields.map(e=>[e.key,e.value??``]))}),q={email:`email`,phone:`tel`,url:`url`,date:`date`};function J(e){let t=[];return e.managed?t.push(`Wird aus Microsoft Entra ID übernommen.`):e.readonly&&t.push(`Wird von der Personalverwaltung gepflegt.`),e.restricted&&t.push(`Nur für Sie und die Personalverwaltung sichtbar.`),e.help&&t.push(e.help),t.join(` `)}function Y(){K.put(`/profil`,{preserveScroll:!0,onSuccess:()=>{K.defaults(),C.success(`Profil gespeichert`)}})}let X=[{key:`first_name`,label:`Vorname`,autocomplete:`given-name`},{key:`last_name`,label:`Nachname`,autocomplete:`family-name`},{key:`email`,label:`E-Mail-Adresse`,type:`email`,autocomplete:`email`,wide:!0},{key:`job_title`,label:`Funktion`,autocomplete:`organization-title`},{key:`department`,label:`Abteilung`},{key:`location`,label:`Standort`},{key:`phone`,label:`Telefon`,type:`tel`,autocomplete:`tel`},{key:`mobile`,label:`Mobil`,type:`tel`}],Z=p(null),Q=y({avatar:null});function ne(e){let t=e.target.files?.[0];t&&(Q.avatar=t,Q.post(`/profil/bild`,{preserveScroll:!0,forceFormData:!0,onSuccess:()=>C.success(`Profilbild aktualisiert`),onFinish:()=>{e.target.value=``}}))}function re(){_.delete(`/profil/bild`,{preserveScroll:!0,onSuccess:()=>C.success(`Profilbild entfernt`)})}let $=y({current_password:``,password:``,password_confirmation:``});function ie(){$.put(`/user/password`,{preserveScroll:!0,errorBag:`updatePassword`,onSuccess:()=>{$.reset(),C.success(`Passwort geändert`)}})}return(ee,p)=>(c(),f(S,{title:`Profil bearbeiten`},{default:u(()=>[p[10]||=i(`h1`,{class:`mb-6 text-2xl font-semibold tracking-tight`},`Profil bearbeiten`,-1),i(`div`,j,[i(`div`,M,[e(D,{title:`Profilbild`},{default:u(()=>[i(`div`,N,[e(te,{person:x.profile,class:`size-32 text-3xl`},null,8,[`person`]),i(`input`,{ref_key:`avatarInput`,ref:Z,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`hidden`,onChange:ne},null,544),i(`div`,P,[e(n(E),{variant:`outline`,disabled:n(Q).processing,onClick:p[0]||=e=>Z.value?.click()},{default:u(()=>[n(Q).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):(c(),f(n(A),{key:1})),t(` `+d(x.profile.avatar_url?`Bild ändern`:`Bild hochladen`),1)]),_:1},8,[`disabled`]),x.profile.avatar_url?(c(),f(n(E),{key:0,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:re},{default:u(()=>[e(n(w)),p[5]||=t(` Entfernen `,-1)]),_:1})):h(``,!0)]),n(Q).errors.avatar?(c(),a(`p`,F,d(n(Q).errors.avatar),1)):h(``,!0),p[6]||=i(`p`,{class:`mt-3 text-[13px] text-muted-foreground`},`JPG, PNG oder WebP, höchstens 8 MB. Das Bild wird quadratisch zugeschnitten.`,-1)])]),_:1})]),i(`div`,I,[e(D,{title:`Persönliche Angaben`},{default:u(()=>[i(`form`,{class:`grid gap-5`,onSubmit:g(Y,[`prevent`])},[i(`div`,L,[(c(),a(l,null,o(X,t=>e(T,{id:t.key,key:t.key,label:t.label,error:n(K).errors[t.key],hint:G(t.key)?`Wird aus Microsoft Entra ID übernommen.`:``,class:r({"sm:col-span-2":t.wide})},{default:u(()=>[e(n(O),{id:t.key,modelValue:n(K)[t.key],"onUpdate:modelValue":e=>n(K)[t.key]=e,type:t.type??`text`,autocomplete:t.autocomplete,disabled:G(t.key),"aria-invalid":!!n(K).errors[t.key]},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`autocomplete`,`disabled`,`aria-invalid`])]),_:2},1032,[`id`,`label`,`error`,`hint`,`class`])),64)),e(T,{id:`about`,label:`Über mich`,error:n(K).errors.about,hint:`Aufgaben, Themen, bei denen man Sie ansprechen kann.`,class:`sm:col-span-2`},{default:u(()=>[e(n(k),{id:`about`,modelValue:n(K).about,"onUpdate:modelValue":p[1]||=e=>n(K).about=e,rows:`4`,maxlength:`2000`},null,8,[`modelValue`])]),_:1},8,[`error`])]),x.customFields.length?(c(),a(`div`,R,[p[7]||=i(`h3`,{class:`text-sm font-semibold`},`Weitere Angaben`,-1),i(`div`,z,[(c(!0),a(l,null,o(x.customFields,e=>(c(),f(T,{id:`custom-${e.key}`,key:e.key,label:e.label,error:n(K).errors[`custom_fields.${e.key}`],hint:J(e),class:r({"sm:col-span-2":e.type===`textarea`})},{default:u(()=>[e.type===`textarea`?(c(),f(n(k),{key:0,id:`custom-${e.key}`,modelValue:n(K).custom_fields[e.key],"onUpdate:modelValue":t=>n(K).custom_fields[e.key]=t,rows:`3`,disabled:e.readonly},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`disabled`])):(c(),f(n(O),{key:1,id:`custom-${e.key}`,modelValue:n(K).custom_fields[e.key],"onUpdate:modelValue":t=>n(K).custom_fields[e.key]=t,type:q[e.type]??`text`,disabled:e.readonly,"aria-invalid":!!n(K).errors[`custom_fields.${e.key}`]},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`disabled`,`aria-invalid`]))]),_:2},1032,[`id`,`label`,`error`,`hint`,`class`]))),128))])])):h(``,!0),i(`div`,B,[e(n(E),{type:`submit`,disabled:n(K).processing||!n(K).isDirty},{default:u(()=>[n(K).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):h(``,!0),p[8]||=t(` Speichern `,-1)]),_:1},8,[`disabled`])])],32)]),_:1}),(c(!0),a(l,null,o(x.sections,e=>(c(),f(m(n(W)[e.component]),s({key:e.key},{ref_for:!0},e.props),null,16))),128)),x.profile.has_password?(c(),f(D,{key:0,title:`Passwort ändern`},{default:u(()=>[i(`form`,{class:`grid gap-5`,onSubmit:g(ie,[`prevent`])},[e(T,{id:`current_password`,label:`Aktuelles Passwort`,error:n($).errors.current_password,class:`sm:max-w-sm`},{default:u(()=>[e(n(O),{id:`current_password`,modelValue:n($).current_password,"onUpdate:modelValue":p[2]||=e=>n($).current_password=e,type:`password`,autocomplete:`current-password`},null,8,[`modelValue`])]),_:1},8,[`error`]),i(`div`,V,[e(T,{id:`password`,label:`Neues Passwort`,error:n($).errors.password,hint:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:u(()=>[e(n(O),{id:`password`,modelValue:n($).password,"onUpdate:modelValue":p[3]||=e=>n($).password=e,type:`password`,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(T,{id:`password_confirmation`,label:`Neues Passwort wiederholen`},{default:u(()=>[e(n(O),{id:`password_confirmation`,modelValue:n($).password_confirmation,"onUpdate:modelValue":p[4]||=e=>n($).password_confirmation=e,type:`password`,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1})]),i(`div`,H,[e(n(E),{type:`submit`,disabled:n($).processing},{default:u(()=>[n($).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):h(``,!0),p[9]||=t(` Passwort ändern `,-1)]),_:1},8,[`disabled`])])],32)]),_:1})):h(``,!0)])])]),_:1}))}};export{U as default}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProfileBirthday-B4W0H6p6.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-Cw5f57va.js","assets/app-DHwJQed6.css","assets/dist-DtGNiYlK.js","assets/AppIcon-BiVN_tuL.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-DmyDwIce.js","assets/FormField-BoFAO4pm.js","assets/button-ZHC5mKey.js","assets/NativeSelect-BGasRaNs.js","assets/Panel-DZcEmK5R.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 r,_ as i,b as a,bt as o,et as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,wt as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as _,o as v,r as y}from"./app-Cw5f57va.js";import{O as b,k as x}from"./dist-DtGNiYlK.js";import{p as te}from"./AppIcon-BiVN_tuL.js";import{t as S}from"./AppLayout-9kc4awMB.js";import{o as C}from"./http-DmyDwIce.js";import{t as w}from"./trash-DUqnVIgb.js";import{t as T}from"./FormField-BoFAO4pm.js";import{t as E}from"./button-ZHC5mKey.js";import{t as D}from"./Panel-DZcEmK5R.js";import{t as O}from"./Input-FGSb2-yK.js";import{t as k}from"./Textarea-DEFXqC2w.js";var A=x({name:`camera`,size:24,node:[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]}),j={class:`grid gap-6 lg:grid-cols-12`},M={class:`lg:col-span-4`},N={class:`flex flex-col items-center text-center`},P={class:`mt-5 flex flex-wrap justify-center gap-2`},F={key:0,class:`mt-3 text-[13px] text-destructive`},I={class:`grid content-start gap-6 lg:col-span-8`},L={class:`grid gap-5 sm:grid-cols-2`},R={key:0,class:`grid gap-5 border-t pt-5`},z={class:`grid gap-5 sm:grid-cols-2`},B={class:`flex justify-end border-t pt-5`},V={class:`grid gap-5 sm:grid-cols-2`},H={class:`flex justify-end border-t pt-5`},U={__name:`Edit`,props:{profile:{type:Object,required:!0},managed:{type:Array,default:()=>[]},customFields:{type:Array,default:()=>[]},sections:{type:Array,default:()=>[]}},setup(x){let U=x,W=Object.fromEntries(Object.entries(Object.assign({"../../../../plugins-core/birthdays/resources/js/profile/ProfileBirthday.vue":()=>v(()=>import(`./ProfileBirthday-B4W0H6p6.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))})).map(([e,t])=>[`${e.match(/plugins-core\/([^/]+)\//)[1]}::${e.split(`/`).pop().replace(`.vue`,``)}`,ee(t)])),G=e=>U.managed.includes(e),K=y({first_name:U.profile.first_name??``,last_name:U.profile.last_name??``,email:U.profile.email,job_title:U.profile.job_title??``,department:U.profile.department??``,location:U.profile.location??``,phone:U.profile.phone??``,mobile:U.profile.mobile??``,about:U.profile.about??``,custom_fields:Object.fromEntries(U.customFields.map(e=>[e.key,e.value??``]))}),q={email:`email`,phone:`tel`,url:`url`,date:`date`};function J(e){let t=[];return e.managed?t.push(`Wird aus Microsoft Entra ID übernommen.`):e.readonly&&t.push(`Wird von der Personalverwaltung gepflegt.`),e.restricted&&t.push(`Nur für Sie und die Personalverwaltung sichtbar.`),e.help&&t.push(e.help),t.join(` `)}function Y(){K.put(`/profil`,{preserveScroll:!0,onSuccess:()=>{K.defaults(),C.success(`Profil gespeichert`)}})}let X=[{key:`first_name`,label:`Vorname`,autocomplete:`given-name`},{key:`last_name`,label:`Nachname`,autocomplete:`family-name`},{key:`email`,label:`E-Mail-Adresse`,type:`email`,autocomplete:`email`,wide:!0},{key:`job_title`,label:`Funktion`,autocomplete:`organization-title`},{key:`department`,label:`Abteilung`},{key:`location`,label:`Standort`},{key:`phone`,label:`Telefon`,type:`tel`,autocomplete:`tel`},{key:`mobile`,label:`Mobil`,type:`tel`}],Z=p(null),Q=y({avatar:null});function ne(e){let t=e.target.files?.[0];t&&(Q.avatar=t,Q.post(`/profil/bild`,{preserveScroll:!0,forceFormData:!0,onSuccess:()=>C.success(`Profilbild aktualisiert`),onFinish:()=>{e.target.value=``}}))}function re(){_.delete(`/profil/bild`,{preserveScroll:!0,onSuccess:()=>C.success(`Profilbild entfernt`)})}let $=y({current_password:``,password:``,password_confirmation:``});function ie(){$.put(`/user/password`,{preserveScroll:!0,errorBag:`updatePassword`,onSuccess:()=>{$.reset(),C.success(`Passwort geändert`)}})}return(ee,p)=>(c(),f(S,{title:`Profil bearbeiten`},{default:u(()=>[p[10]||=i(`h1`,{class:`mb-6 text-2xl font-semibold tracking-tight`},`Profil bearbeiten`,-1),i(`div`,j,[i(`div`,M,[e(D,{title:`Profilbild`},{default:u(()=>[i(`div`,N,[e(te,{person:x.profile,class:`size-32 text-3xl`},null,8,[`person`]),i(`input`,{ref_key:`avatarInput`,ref:Z,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`hidden`,onChange:ne},null,544),i(`div`,P,[e(n(E),{variant:`outline`,disabled:n(Q).processing,onClick:p[0]||=e=>Z.value?.click()},{default:u(()=>[n(Q).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):(c(),f(n(A),{key:1})),t(` `+d(x.profile.avatar_url?`Bild ändern`:`Bild hochladen`),1)]),_:1},8,[`disabled`]),x.profile.avatar_url?(c(),f(n(E),{key:0,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:re},{default:u(()=>[e(n(w)),p[5]||=t(` Entfernen `,-1)]),_:1})):h(``,!0)]),n(Q).errors.avatar?(c(),a(`p`,F,d(n(Q).errors.avatar),1)):h(``,!0),p[6]||=i(`p`,{class:`mt-3 text-[13px] text-muted-foreground`},`JPG, PNG oder WebP, höchstens 8 MB. Das Bild wird quadratisch zugeschnitten.`,-1)])]),_:1})]),i(`div`,I,[e(D,{title:`Persönliche Angaben`},{default:u(()=>[i(`form`,{class:`grid gap-5`,onSubmit:g(Y,[`prevent`])},[i(`div`,L,[(c(),a(l,null,o(X,t=>e(T,{id:t.key,key:t.key,label:t.label,error:n(K).errors[t.key],hint:G(t.key)?`Wird aus Microsoft Entra ID übernommen.`:``,class:r({"sm:col-span-2":t.wide})},{default:u(()=>[e(n(O),{id:t.key,modelValue:n(K)[t.key],"onUpdate:modelValue":e=>n(K)[t.key]=e,type:t.type??`text`,autocomplete:t.autocomplete,disabled:G(t.key),"aria-invalid":!!n(K).errors[t.key]},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`autocomplete`,`disabled`,`aria-invalid`])]),_:2},1032,[`id`,`label`,`error`,`hint`,`class`])),64)),e(T,{id:`about`,label:`Über mich`,error:n(K).errors.about,hint:`Aufgaben, Themen, bei denen man Sie ansprechen kann.`,class:`sm:col-span-2`},{default:u(()=>[e(n(k),{id:`about`,modelValue:n(K).about,"onUpdate:modelValue":p[1]||=e=>n(K).about=e,rows:`4`,maxlength:`2000`},null,8,[`modelValue`])]),_:1},8,[`error`])]),x.customFields.length?(c(),a(`div`,R,[p[7]||=i(`h3`,{class:`text-sm font-semibold`},`Weitere Angaben`,-1),i(`div`,z,[(c(!0),a(l,null,o(x.customFields,e=>(c(),f(T,{id:`custom-${e.key}`,key:e.key,label:e.label,error:n(K).errors[`custom_fields.${e.key}`],hint:J(e),class:r({"sm:col-span-2":e.type===`textarea`})},{default:u(()=>[e.type===`textarea`?(c(),f(n(k),{key:0,id:`custom-${e.key}`,modelValue:n(K).custom_fields[e.key],"onUpdate:modelValue":t=>n(K).custom_fields[e.key]=t,rows:`3`,disabled:e.readonly},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`disabled`])):(c(),f(n(O),{key:1,id:`custom-${e.key}`,modelValue:n(K).custom_fields[e.key],"onUpdate:modelValue":t=>n(K).custom_fields[e.key]=t,type:q[e.type]??`text`,disabled:e.readonly,"aria-invalid":!!n(K).errors[`custom_fields.${e.key}`]},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`disabled`,`aria-invalid`]))]),_:2},1032,[`id`,`label`,`error`,`hint`,`class`]))),128))])])):h(``,!0),i(`div`,B,[e(n(E),{type:`submit`,disabled:n(K).processing||!n(K).isDirty},{default:u(()=>[n(K).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):h(``,!0),p[8]||=t(` Speichern `,-1)]),_:1},8,[`disabled`])])],32)]),_:1}),(c(!0),a(l,null,o(x.sections,e=>(c(),f(m(n(W)[e.component]),s({key:e.key},{ref_for:!0},e.props),null,16))),128)),x.profile.has_password?(c(),f(D,{key:0,title:`Passwort ändern`},{default:u(()=>[i(`form`,{class:`grid gap-5`,onSubmit:g(ie,[`prevent`])},[e(T,{id:`current_password`,label:`Aktuelles Passwort`,error:n($).errors.current_password,class:`sm:max-w-sm`},{default:u(()=>[e(n(O),{id:`current_password`,modelValue:n($).current_password,"onUpdate:modelValue":p[2]||=e=>n($).current_password=e,type:`password`,autocomplete:`current-password`},null,8,[`modelValue`])]),_:1},8,[`error`]),i(`div`,V,[e(T,{id:`password`,label:`Neues Passwort`,error:n($).errors.password,hint:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:u(()=>[e(n(O),{id:`password`,modelValue:n($).password,"onUpdate:modelValue":p[3]||=e=>n($).password=e,type:`password`,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(T,{id:`password_confirmation`,label:`Neues Passwort wiederholen`},{default:u(()=>[e(n(O),{id:`password_confirmation`,modelValue:n($).password_confirmation,"onUpdate:modelValue":p[4]||=e=>n($).password_confirmation=e,type:`password`,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1})]),i(`div`,H,[e(n(E),{type:`submit`,disabled:n($).processing},{default:u(()=>[n($).processing?(c(),f(n(b),{key:0,class:`animate-spin`})):h(``,!0),p[9]||=t(` Passwort ändern `,-1)]),_:1},8,[`disabled`])])],32)]),_:1})):h(``,!0)])])]),_:1}))}};export{U as default}; \ No newline at end of file diff --git a/public/build/assets/Editor-CLguWFjM.js b/public/build/assets/Editor-BN7TNPUp.js similarity index 98% rename from public/build/assets/Editor-CLguWFjM.js rename to public/build/assets/Editor-BN7TNPUp.js index 337f453b..4a9e9604 100644 --- a/public/build/assets/Editor-CLguWFjM.js +++ b/public/build/assets/Editor-BN7TNPUp.js @@ -1 +1 @@ -import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,Yt as o,Zn as s,_ as c,b as l,bt as u,ct as d,g as f,gn as p,gt as m,it as h,mt as g,o as _,qt as v,tr as y,v as b,vn as x,wt as S,y as C}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w,x as ee,y as T}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as te,n as ne,t as re}from"./app-CNhdlRDG.js";import{O as ie,k as E}from"./dist-DtGNiYlK.js";import{L as ae,a as oe,c as se,d as ce,f as le,i as ue,k as de,l as fe,o as D,s as pe,u as me}from"./AppIcon-D91Q4hzR.js";import{t as he}from"./arrow-left-BMImfTf2.js";import{r as ge}from"./RichTextEditor-CMfIpwZS.js";import{a as _e,c as ve,i as ye,l as be,n as xe,o as Se,r as Ce,s as O,t as we}from"./EditorBlockList-eovq9s83.js";import{t as Te}from"./calendar-clock-8H2IkjP5.js";import{S as Ee,a as De,o as k,t as A}from"./http-DmyDwIce.js";import{t as j}from"./Switch-CWN1_5O7.js";import{t as Oe}from"./ellipsis-vertical-B9wuHo-w.js";import{t as ke}from"./eye-CFNQcvaV.js";import{t as Ae}from"./file-plus-corner-Z8xo1q-K.js";import{t as je}from"./lock-H7FAhSBr.js";import{t as Me}from"./rotate-ccw-clock-DRYS-TO2.js";import{t as Ne}from"./send-6fmdiUe6.js";import{t as Pe}from"./settings-2-L4P6usDq.js";import{t as Fe}from"./smartphone-BE2l7T-2.js";import{t as Ie}from"./trash-DUqnVIgb.js";import{t as M}from"./DialogDescription-CCacFT45.js";import{a as N,s as Le}from"./format-BsuBtvUs.js";import{t as P}from"./button-ZHC5mKey.js";import{t as F}from"./Input-FGSb2-yK.js";import{t as I}from"./Textarea-DEFXqC2w.js";import{i as L,n as R,r as z,t as B}from"./dialog-37na293D.js";import{t as V}from"./DialogHeader-DuqiL3ry.js";import{t as H}from"./PageContent-CZctLlC9.js";import{t as Re}from"./NewPageDialog-BoAZlkoa.js";var ze=E({name:`cloud-alert`,size:24,node:[[`path`,{d:`M12 12v4`,key:`tww15h`}],[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.128 16.949A7 7 0 1 1 15.71 8h1.79a1 1 0 0 1 0 9h-1.642`,key:`1namsd`}]]}),U={key:0,class:`rounded-md bg-amber-50 px-3 py-2 text-sm text-amber-900 dark:bg-amber-950/50 dark:text-amber-100`},W={class:`grid gap-2`},Be={class:`flex cursor-pointer items-start gap-3 rounded-md border p-3 has-checked:border-brand-400 has-checked:bg-brand-soft/60`},Ve={class:`flex cursor-pointer items-start gap-3 rounded-md border p-3 has-checked:border-brand-400 has-checked:bg-brand-soft/60`},He={class:`grid flex-1 gap-2`},Ue={__name:`PublishDialog`,props:e({scheduledAt:{type:String,default:null}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`publish`],[`update:open`]),setup(e,{emit:s}){let u=e,d=r(e,`open`),f=s,p=x(`now`),m=x(``),h=x(!1);function _(e){let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}`}i(d,e=>{if(e){p.value=`now`;let e=new Date(Date.now()+864e5);e.setHours(7,0,0,0),m.value=_(e),h.value=!1}});async function S(){h.value=!0,f(`publish`,p.value===`later`?new Date(m.value).toISOString():null),setTimeout(()=>h.value=!1,800)}return(e,r)=>(g(),b(a(L),{open:d.value,"onUpdate:open":r[4]||=e=>d.value=e},{default:v(()=>[t(a(z),{class:`sm:max-w-md`},{default:v(()=>[t(a(V),null,{default:v(()=>[t(a(B),null,{default:v(()=>[...r[5]||=[n(`Seite veröffentlichen`,-1)]]),_:1}),t(a(M),null,{default:v(()=>[...r[6]||=[n(`Der aktuelle Stand wird für alle sichtbar, die die Seite sehen dürfen. Frühere Stände bleiben unter „Versionen“ erhalten.`,-1)]]),_:1})]),_:1}),u.scheduledAt?(g(),l(`p`,U,` Es ist bereits eine Veröffentlichung geplant. Sie wird durch diese ersetzt. `)):C(``,!0),c(`fieldset`,W,[r[9]||=c(`legend`,{class:`sr-only`},`Zeitpunkt`,-1),c(`label`,Be,[o(c(`input`,{"onUpdate:modelValue":r[0]||=e=>p.value=e,type:`radio`,value:`now`,class:`mt-1 accent-[var(--brand)]`},null,512),[[T,p.value]]),r[7]||=c(`span`,null,[c(`span`,{class:`block text-sm font-medium`},`Jetzt veröffentlichen`),c(`span`,{class:`block text-xs text-muted-foreground`},`Sofort sichtbar.`)],-1)]),c(`label`,Ve,[o(c(`input`,{"onUpdate:modelValue":r[1]||=e=>p.value=e,type:`radio`,value:`later`,class:`mt-1 accent-[var(--brand)]`},null,512),[[T,p.value]]),c(`span`,He,[r[8]||=c(`span`,null,[c(`span`,{class:`block text-sm font-medium`},`Zeitgesteuert`),c(`span`,{class:`block text-xs text-muted-foreground`},`Der aktuelle Stand geht zum gewählten Zeitpunkt online.`)],-1),p.value===`later`?(g(),b(a(F),{key:0,modelValue:m.value,"onUpdate:modelValue":r[2]||=e=>m.value=e,type:`datetime-local`,min:_(new Date),"aria-label":`Zeitpunkt der Veröffentlichung`},null,8,[`modelValue`,`min`])):C(``,!0)])])]),t(a(R),null,{default:v(()=>[t(a(P),{variant:`outline`,onClick:r[3]||=e=>d.value=!1},{default:v(()=>[...r[10]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(P),{disabled:h.value||p.value===`later`&&!m.value,onClick:S},{default:v(()=>[p.value===`later`?(g(),b(a(Te),{key:0})):(g(),b(a(Ne),{key:1})),n(` `+y(p.value===`later`?`Planen`:`Veröffentlichen`),1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},We={class:`flex min-h-0 flex-1`},Ge={class:`w-64 shrink-0 overflow-y-auto border-r p-2`},Ke={key:0,class:`grid place-items-center py-10`},qe={key:1,class:`px-3 py-6 text-center text-sm text-muted-foreground`},Je=[`onClick`],Ye={class:`block text-sm font-medium`},G={class:`block truncate text-xs text-muted-foreground`},Xe={class:`flex min-w-0 flex-1 flex-col`},Ze={class:`min-h-0 flex-1 overflow-y-auto bg-background p-6`},K={key:0,class:`grid place-items-center py-16`},Qe={class:`mb-6 text-2xl font-semibold tracking-tight`},q={key:0,class:`flex items-center justify-between gap-3 border-t px-5 py-3`},J={class:`text-xs text-muted-foreground`},$e={__name:`RevisionsDialog`,props:e({base:{type:String,required:!0},readOnly:{type:Boolean,default:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`restored`],[`update:open`]),setup(e,{emit:o}){let d=e,f=r(e,`open`),p=o,m=x(null),h=x(null),S=x(null),w=x(!1);i(f,async e=>{e&&(m.value=null,S.value=null,h.value=null,m.value=(await A.get(`${d.base}/versionen`)).revisions,m.value.length&&ee(m.value[0]))});async function ee(e){h.value=e,w.value=!0;try{S.value=await A.get(`${d.base}/versionen/${e.id}`)}finally{w.value=!1}}async function T(){try{p(`restored`,await A.post(`${d.base}/versionen/${h.value.id}/wiederherstellen`))}catch(e){k.error(e.message)}}return(r,i)=>(g(),b(a(L),{open:f.value,"onUpdate:open":i[0]||=e=>f.value=e},{default:v(()=>[t(a(z),{class:`flex h-[85vh] max-w-5xl flex-col gap-0 p-0 sm:max-w-5xl`},{default:v(()=>[t(a(V),{class:`border-b px-5 py-4`},{default:v(()=>[t(a(B),null,{default:v(()=>[...i[1]||=[n(`Versionen`,-1)]]),_:1}),t(a(M),null,{default:v(()=>[...i[2]||=[n(`Jede Veröffentlichung wird gespeichert. Eine ältere Version lässt sich als Entwurf zurückholen.`,-1)]]),_:1})]),_:1}),c(`div`,We,[c(`ul`,Ge,[m.value===null?(g(),l(`li`,Ke,[t(a(ie),{class:`size-5 animate-spin text-muted-foreground`})])):m.value.length?C(``,!0):(g(),l(`li`,qe,`Noch keine veröffentlichten Versionen.`)),(g(!0),l(_,null,u(m.value??[],e=>(g(),l(`li`,{key:e.id},[c(`button`,{type:`button`,class:s([`w-full rounded-md px-3 py-2 text-left`,h.value?.id===e.id?`bg-brand-soft text-brand-soft-foreground`:`hover:bg-accent`]),onClick:t=>ee(e)},[c(`span`,Ye,y(a(N)(e.created_at)),1),c(`span`,G,[n(y(e.action),1),e.user?(g(),l(_,{key:0},[n(` · `+y(e.user),1)],64)):C(``,!0)])],10,Je)]))),128))]),c(`div`,Xe,[c(`div`,Ze,[w.value?(g(),l(`div`,K,[t(a(ie),{class:`size-6 animate-spin text-muted-foreground`})])):S.value?(g(),l(_,{key:1},[c(`h1`,Qe,y(S.value.title),1),t(H,{content:S.value.content},null,8,[`content`])],64)):C(``,!0)]),h.value?(g(),l(`div`,q,[c(`span`,J,y(new Date(h.value.created_at).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`})),1),t(a(P),{disabled:e.readOnly,onClick:T},{default:v(()=>[t(a(Me)),i[3]||=n(` Als Entwurf wiederherstellen`,-1)]),_:1},8,[`disabled`])])):C(``,!0)])])]),_:1})]),_:1},8,[`open`]))}},et={class:`grid gap-1.5`},Y={key:0,class:`text-[13px] text-destructive`},tt={key:1,class:`text-xs text-muted-foreground`},nt={key:0,class:`flex items-center justify-between gap-3 text-[13px] font-medium`},rt={__name:`PageSettingsDialog`,props:e({page:{type:Object,required:!0},base:{type:String,required:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`saved`],[`update:open`]),setup(e,{emit:o}){let s=e,u=r(e,`open`),d=o,f=x({slug:``,in_navigation:!1}),p=x({}),m=x(!1);i(u,e=>{e&&(f.value={slug:s.page.slug,in_navigation:s.page.in_navigation},p.value={})});async function h(){m.value=!0;try{d(`saved`,await A.put(`${s.base}/einstellungen`,f.value)),u.value=!1}catch(e){p.value=e.fieldErrors??{}}finally{m.value=!1}}return(r,i)=>(g(),b(a(L),{open:u.value,"onUpdate:open":i[3]||=e=>u.value=e},{default:v(()=>[t(a(z),{class:`sm:max-w-md`},{default:v(()=>[t(a(V),null,{default:v(()=>[t(a(B),null,{default:v(()=>[...i[4]||=[n(`Seiteneinstellungen`,-1)]]),_:1}),t(a(M),null,{default:v(()=>[...i[5]||=[n(`Sichtbarkeit und Rechte pflegen Sie in der Administration unter „Seiten“.`,-1)]]),_:1})]),_:1}),c(`form`,{class:`grid gap-4`,onSubmit:w(h,[`prevent`])},[c(`label`,et,[i[6]||=c(`span`,{class:`text-[13px] font-medium`},`Kürzel in der Adresse`,-1),t(a(F),{modelValue:f.value.slug,"onUpdate:modelValue":i[0]||=e=>f.value.slug=e,maxlength:`120`,"aria-invalid":!!p.value.slug},null,8,[`modelValue`,`aria-invalid`]),p.value.slug?(g(),l(`span`,Y,y(p.value.slug),1)):(g(),l(`span`,tt,`Ändert auch die Adressen aller Unterseiten. Alte Links funktionieren dann nicht mehr.`))]),e.page.can.navigation?(g(),l(`label`,nt,[i[7]||=n(` In der Hauptnavigation anzeigen `,-1),t(a(j),{modelValue:f.value.in_navigation,"onUpdate:modelValue":i[1]||=e=>f.value.in_navigation=e},null,8,[`modelValue`])])):C(``,!0),t(a(R),null,{default:v(()=>[t(a(P),{type:`button`,variant:`outline`,onClick:i[2]||=e=>u.value=!1},{default:v(()=>[...i[8]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(P),{type:`submit`,disabled:m.value},{default:v(()=>[...i[9]||=[n(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}},X={class:`grid gap-1.5`},it={__name:`ReviewDialog`,props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:e([`submit`],[`update:open`]),setup(e,{emit:o}){let s=r(e,`open`),l=o,u=x(``),d=x(!1);i(s,e=>e&&(u.value=``,d.value=!1));function f(){d.value=!0,l(`submit`,u.value),setTimeout(()=>d.value=!1,1500)}return(e,r)=>(g(),b(a(L),{open:s.value,"onUpdate:open":r[2]||=e=>s.value=e},{default:v(()=>[t(a(z),{class:`sm:max-w-md`},{default:v(()=>[t(a(V),null,{default:v(()=>[t(a(B),null,{default:v(()=>[...r[3]||=[n(`Freigabe anfordern`,-1)]]),_:1}),t(a(M),null,{default:v(()=>[...r[4]||=[n(`Ihre Änderungen sind als Entwurf gespeichert. Die Personen, die diese Seite veröffentlichen dürfen, werden benachrichtigt.`,-1)]]),_:1})]),_:1}),c(`label`,X,[r[5]||=c(`span`,{class:`text-[13px] font-medium`},`Nachricht (freiwillig)`,-1),t(a(I),{modelValue:u.value,"onUpdate:modelValue":r[0]||=e=>u.value=e,rows:`3`,maxlength:`1000`,placeholder:`z. B. Bitte bis Freitag veröffentlichen.`},null,8,[`modelValue`])]),t(a(R),null,{default:v(()=>[t(a(P),{variant:`outline`,onClick:r[1]||=e=>s.value=!1},{default:v(()=>[...r[6]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(P),{disabled:d.value,onClick:f},{default:v(()=>[t(a(Ne)),r[7]||=n(` Anfordern`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},at={class:`flex h-dvh flex-col bg-background`},ot={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},st={class:`min-w-0 flex-1`},ct={class:`flex items-center gap-2`},lt={class:`truncate text-sm font-semibold`},ut={class:`flex items-center gap-1 truncate text-xs text-muted-foreground`,"aria-live":`polite`},dt={class:`hidden items-center gap-0.5 md:flex`},ft=[`disabled`],pt=[`disabled`],mt={class:`flex rounded-md border p-0.5`,role:`group`,"aria-label":`Vorschau`},ht=[`title`,`aria-pressed`,`onClick`],gt=[`href`],_t={key:0,class:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-amber-200 bg-amber-50 px-4 py-2.5 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950/50 dark:text-amber-100`},vt={class:`flex-1`},yt={class:`flex min-h-0 flex-1`},bt={key:0,class:`mb-2 flex flex-wrap gap-1 text-xs text-muted-foreground`,"aria-label":`Brotkrumen`},xt=[`readonly`],St={class:`@container`},Ct={class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},wt={class:`flex shrink-0 border-b px-2`,role:`tablist`},Tt=[`aria-selected`,`disabled`,`onClick`],Et={key:0,class:`absolute inset-x-2 bottom-0 h-[3px] rounded-t-full bg-brand`},Dt={class:`min-h-0 flex-1 overflow-y-auto p-4`},Ot={class:`fixed right-4 bottom-4 z-30 flex gap-2 lg:hidden`},Z={__name:`Editor`,props:{page:{type:Object,required:!0},working:{type:Object,required:!0},lockedBy:{type:Object,default:null},blockTypes:{type:Array,required:!0},blockGroups:{type:Object,required:!0},files:{type:Array,default:()=>[]},audienceOptions:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},uploadsUrl:{type:String,required:!0}},setup(e){let r=e,T=`/redaktion/seiten/${r.page.id}`,E=Object.fromEntries(r.blockTypes.map(e=>[e.key,e])),j=x(r.page),M=p(ye(r.working)),N=x(null),F=x(null),I=p({}),L=x(r.files),R=x(!!r.lockedBy),z=x(r.lockedBy),B=x(`desktop`),V=x(!1),H=x(`blocks`),U=f(()=>N.value?O(M.content.blocks,N.value)?.block??null:null);i(N,e=>{H.value=e?`block`:`blocks`});function W(e){N.value=e??null}function Be(e,t,n){if(R.value)return;let r=_e(n);e.splice(t,0,r),W(r.id)}function Ve(e){let t=U.value?O(M.content.blocks,U.value.id):null;t?Be(t.list,t.index+1,e):Be(M.content.blocks,M.content.blocks.length,e),V.value=!1,requestAnimationFrame(()=>document.querySelector(`[data-block-id="${N.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`}))}function He(e){let t=O(M.content.blocks,e);t&&(t.list.splice(t.index,1),N.value===e&&W(null))}function We(e,t){let n=O(M.content.blocks,e),r=n?n.index+t:-1;n&&r>=0&&rt.items?.includes(e)||O(e.blocks,t.id))}async function qe(e){let t=new FormData;return t.append(`image`,e),A.post(`${T}/bilder`,t)}async function Je(e){let t=new FormData;t.append(`file`,e);let n=await A.post(`${T}/dateien`,t);return L.value=[n.file,...L.value],n.file}let Ye=p({});m(`pagebuilder:editor`,{types:E,groups:r.blockGroups,selectedId:N,hoveredId:F,previews:I,readOnly:R,files:L,peopleCache:Ye,audienceOptions:r.audienceOptions,select:W,insert:Be,remove:He,move:We,duplicate:Ge,containsActive:Ke,uploadImage:qe,uploadFile:Je,imageUrl:e=>`${r.uploadsUrl}/${e}`}),m(`pagebuilder:list`,we),m(`pagebuilder:types`,E),m(`pagebuilder:editing`,f(()=>!R.value));let G={},Xe;function Ze(){let e=[];ve(M.content.blocks,t=>{if(!E[t.type]?.dynamic)return;let n=JSON.stringify(t.data);G[t.id]!==n&&(G[t.id]=n,e.push({id:t.id,type:t.type,data:t.data}))}),e.length&&A.post(`${T}/vorschau`,{blocks:e.slice(0,100)}).then(e=>Object.assign(I,e.props)).catch(()=>{})}let K=x(`saved`),Qe=x(j.value.draft_updated_at),q,J=JSON.stringify(M);function et(){return{title:M.title,content:M.content}}async function Y(){if(clearTimeout(q),R.value)return;let e=JSON.stringify(M);if(e===J){K.value=`saved`;return}K.value=`saving`;try{let t=await A.put(`${T}/entwurf`,et());J=e,j.value=t.page,Qe.value=new Date().toISOString(),K.value=JSON.stringify(M)===J?`saved`:`dirty`,K.value===`dirty`&&tt()}catch(e){nt(e),K.value=`error`}}function tt(e=1200){clearTimeout(q),q=setTimeout(Y,e)}function nt(e){e.status===423?(R.value=!0,z.value=e.data.lockedBy,k.error(e.message)):e.status===422&&e.data?.errors?.title?k.error(e.data.errors.title[0]):k.error(e.message||`Speichern fehlgeschlagen. Bitte die Verbindung prüfen.`)}let X=x([]),Z=x([]),kt=JSON.stringify(M),At=!1,jt;function Mt(){let e=JSON.stringify(M);e!==kt&&(X.value=[...X.value.slice(-49),kt],Z.value=[],kt=e)}function Nt(e){At=!0;let t=JSON.parse(e);M.title=t.title,M.content=t.content,kt=e,N.value&&!O(M.content.blocks,N.value)&&W(null),setTimeout(()=>At=!1)}function Pt(){Mt(),X.value.length&&(Z.value=[...Z.value,JSON.stringify(M)],Nt(X.value.at(-1)),X.value=X.value.slice(0,-1))}function Ft(){Z.value.length&&(X.value=[...X.value,JSON.stringify(M)],Nt(Z.value.at(-1)),Z.value=Z.value.slice(0,-1))}i(M,()=>{R.value||(K.value=`dirty`,tt(),clearTimeout(Xe),Xe=setTimeout(Ze,500),At||(clearTimeout(jt),jt=setTimeout(Mt,700)))},{deep:!0});function It(e){let t=e.target.closest?.(`input, textarea, select, [contenteditable="true"]`);(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),Y()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`z`?(e.preventDefault(),e.shiftKey?Ft():Pt()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`y`?(e.preventDefault(),Ft()):e.key===`Escape`&&!t&&W(null)}let Lt;async function Rt(e=!1){try{await A.post(`${T}/sperre`,{takeover:e}),e&&(R.value=!1,z.value=null,k.success(`Sie bearbeiten die Seite jetzt.`))}catch(e){e.status===423&&(R.value=!0,z.value=e.data.lockedBy)}}async function zt(){await Rt(!0),te.reload({only:[`working`,`page`],onSuccess:()=>Object.assign(M,ye(r.working))})}function Bt(){R.value||(JSON.stringify(M)!==J&&fetch(`${T}/entwurf`,{method:`PUT`,keepalive:!0,credentials:`same-origin`,headers:{"Content-Type":`application/json`,Accept:`application/json`,"X-XSRF-TOKEN":decodeURIComponent(document.cookie.match(/XSRF-TOKEN=([^;]*)/)?.[1]??``)},body:JSON.stringify(et())}),A.post(`${T}/sperre/freigeben`,{},{keepalive:!0}).catch(()=>{}))}d(()=>{Ze(),window.addEventListener(`keydown`,It),window.addEventListener(`pagehide`,Bt),Lt=setInterval(()=>!R.value&&Rt(),45e3)}),h(()=>{window.removeEventListener(`keydown`,It),window.removeEventListener(`pagehide`,Bt),clearInterval(Lt),clearTimeout(q),Bt()});let Q=p({publish:!1,review:!1,revisions:!1,settings:!1,newPage:!1});async function Vt(e){clearTimeout(q);try{let t=await A.post(`${T}/veroeffentlichen`,{...et(),scheduled_at:e||null});j.value=t.page,J=JSON.stringify(M),K.value=`saved`,Q.publish=!1,k.success(e?`Veröffentlichung geplant für ${new Date(e).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`})}`:`Seite veröffentlicht`,{action:e?void 0:{label:`Ansehen`,onClick:()=>te.visit(j.value.url)}})}catch(e){nt(e)}}async function Ht(e){await Y();try{let t=await A.post(`${T}/freigabe`,{message:e});Q.review=!1,k.success(`Freigabe angefordert – ${t.recipients} ${t.recipients===1?`Person wurde`:`Personen wurden`} benachrichtigt.`)}catch(e){k.error(e.message)}}async function $(e,t,n,r){if(!n||window.confirm(n))try{let n=await A[e](t);if(n.page&&(j.value=n.page),n.working&&(Nt(JSON.stringify(n.working)),J=JSON.stringify(M)),n.redirect){te.visit(n.redirect);return}k.success(r)}catch(e){k.error(e.message)}}function Ut(e){j.value=e.page,Nt(JSON.stringify(e.working)),J=JSON.stringify(M),Object.keys(G).forEach(e=>delete G[e]),Ze(),Q.revisions=!1,k.success(`Version als Entwurf wiederhergestellt`)}let Wt=f(()=>j.value.scheduled_at?{label:`Geplant: ${new Date(j.value.scheduled_at).toLocaleString(`de-DE`,{dateStyle:`short`,timeStyle:`short`})}`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`}:j.value.is_published?j.value.has_draft?{label:`Entwurf mit Änderungen`,class:`bg-brand-soft text-brand-soft-foreground`}:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`}:{label:`Nicht veröffentlicht`,class:`bg-muted text-muted-foreground`}),Gt=[{key:`desktop`,label:`Desktop`,icon:ae,width:`max-w-[1100px]`},{key:`tablet`,label:`Tablet`,icon:be,width:`max-w-[768px]`},{key:`mobile`,label:`Smartphone`,icon:Fe,width:`max-w-[390px]`}],Kt=f(()=>Gt.find(e=>e.key===B.value).width);return(r,i)=>(g(),l(_,null,[t(a(re),{title:`Bearbeiten: ${M.title}`},null,8,[`title`]),c(`div`,at,[c(`header`,ot,[t(a(ne),{href:j.value.is_published?j.value.url:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zurück`},{default:v(()=>[t(a(he),{class:`size-5`})]),_:1},8,[`href`]),c(`div`,st,[c(`div`,ct,[c(`span`,lt,y(M.title||`Ohne Titel`),1),c(`span`,{class:s([`hidden shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium sm:inline`,Wt.value.class])},y(Wt.value.label),3)]),c(`p`,ut,[R.value?(g(),l(_,{key:0},[t(a(je),{class:`size-3`}),i[21]||=n(` Nur lesen`,-1)],64)):K.value===`saving`?(g(),l(_,{key:1},[t(a(ie),{class:`size-3 animate-spin`}),i[22]||=n(` Speichert …`,-1)],64)):K.value===`error`?(g(),l(_,{key:2},[t(a(ze),{class:`size-3 text-destructive`}),i[23]||=n(` Nicht gespeichert`,-1)],64)):K.value===`dirty`?(g(),l(_,{key:3},[n(`Ungespeicherte Änderungen`)],64)):Qe.value?(g(),l(_,{key:4},[t(a(Ee),{class:`size-3`}),n(` Entwurf gespeichert `+y(a(Le)(Qe.value)),1)],64)):(g(),l(_,{key:5},[n(y(j.value.url),1)],64))])]),c(`div`,dt,[c(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Rückgängig (Strg+Z)`,disabled:!X.value.length||R.value,onClick:Pt},[t(a(de),{class:`size-4`})],8,ft),c(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Wiederholen (Strg+Y)`,disabled:!Z.value.length||R.value,onClick:Ft},[t(a(ge),{class:`size-4`})],8,pt),i[24]||=c(`span`,{class:`mx-1 h-6 w-px bg-border`},null,-1),c(`div`,mt,[(g(),l(_,null,u(Gt,e=>c(`button`,{key:e.key,type:`button`,class:s([`grid size-8 place-items-center rounded`,B.value===e.key?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":B.value===e.key,onClick:t=>B.value=e.key},[(g(),b(S(e.icon),{class:`size-4`}))],10,ht)),64))])]),t(a(se),null,{default:v(()=>[t(a(ue),{class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent`,"aria-label":`Weitere Aktionen`},{default:v(()=>[t(a(Oe),{class:`size-5`})]),_:1}),t(a(pe),{align:`end`,class:`w-64`},{default:v(()=>[j.value.is_published?(g(),b(a(D),{key:0,"as-child":``},{default:v(()=>[c(`a`,{href:j.value.url,target:`_blank`},[t(a(ke)),i[25]||=n(` Veröffentlichte Seite ansehen`,-1)],8,gt)]),_:1})):C(``,!0),t(a(D),{onSelect:i[0]||=e=>Q.revisions=!0},{default:v(()=>[t(a(Me)),i[26]||=n(` Versionen`,-1)]),_:1}),j.value.can.configure?(g(),b(a(D),{key:1,onSelect:i[1]||=e=>Q.settings=!0},{default:v(()=>[t(a(Pe)),i[27]||=n(` Seiteneinstellungen`,-1)]),_:1})):C(``,!0),j.value.can.create_child?(g(),b(a(D),{key:2,onSelect:i[2]||=e=>Q.newPage=!0},{default:v(()=>[t(a(Ae)),i[28]||=n(` Unterseite anlegen`,-1)]),_:1})):C(``,!0),t(a(oe)),j.value.has_draft&&j.value.is_published&&!R.value?(g(),b(a(D),{key:3,onSelect:i[3]||=e=>$(`delete`,`${T}/entwurf`,`Alle Änderungen seit der letzten Veröffentlichung verwerfen?`,`Entwurf verworfen`)},{default:v(()=>[t(a(de)),i[29]||=n(` Entwurf verwerfen `,-1)]),_:1})):C(``,!0),j.value.scheduled_at&&j.value.can.publish?(g(),b(a(D),{key:4,onSelect:i[4]||=e=>$(`delete`,`${T}/planung`,null,`Planung aufgehoben – der Stand ist wieder ein Entwurf`)},{default:v(()=>[t(a(Te)),i[30]||=n(` Geplante Veröffentlichung aufheben `,-1)]),_:1})):C(``,!0),j.value.is_published&&j.value.can.publish?(g(),b(a(D),{key:5,onSelect:i[5]||=e=>$(`post`,`${T}/zurueckziehen`,`Seite offline nehmen? Der Inhalt bleibt als Entwurf erhalten.`,`Seite ist offline`)},{default:v(()=>[t(a(je)),i[31]||=n(` Veröffentlichung zurückziehen `,-1)]),_:1})):C(``,!0),j.value.can.delete?(g(),b(a(D),{key:6,class:`text-destructive`,onSelect:i[6]||=e=>$(`delete`,T,`Seite endgültig löschen? Versionen und Dateien werden entfernt.`,`Seite gelöscht`)},{default:v(()=>[t(a(Ie)),i[32]||=n(` Seite löschen `,-1)]),_:1})):C(``,!0)]),_:1})]),_:1}),j.value.can.publish?(g(),b(a(P),{key:0,disabled:R.value,onClick:i[7]||=e=>Q.publish=!0},{default:v(()=>[t(a(Ne)),i[33]||=n(),i[34]||=c(`span`,{class:`hidden sm:inline`},`Veröffentlichen`,-1)]),_:1},8,[`disabled`])):(g(),b(a(P),{key:1,disabled:R.value,onClick:i[8]||=e=>Q.review=!0},{default:v(()=>[t(a(Ne)),i[35]||=n(),i[36]||=c(`span`,{class:`hidden sm:inline`},`Freigabe anfordern`,-1)]),_:1},8,[`disabled`]))]),R.value?(g(),l(`div`,_t,[t(a(je),{class:`size-4 shrink-0`}),c(`span`,vt,y(z.value?.name??`Jemand anderes`)+` bearbeitet diese Seite gerade. Sie sehen den zuletzt gespeicherten Stand.`,1),t(a(P),{size:`sm`,variant:`outline`,class:`bg-card`,onClick:zt},{default:v(()=>[...i[37]||=[n(`Bearbeitung übernehmen`,-1)]]),_:1})])):C(``,!0),c(`div`,yt,[c(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:i[11]||=e=>W(null)},[c(`div`,{class:s([`mx-auto px-4 py-8 transition-[max-width] duration-300 sm:px-8`,Kt.value])},[e.breadcrumbs.length?(g(),l(`nav`,bt,[(g(!0),l(_,null,u(e.breadcrumbs,e=>(g(),l(`span`,{key:e.url},y(e.title)+` /`,1))),128))])):C(``,!0),o(c(`input`,{"onUpdate:modelValue":i[9]||=e=>M.title=e,class:`mb-6 w-full bg-transparent text-3xl font-semibold tracking-tight outline-none placeholder:text-muted-foreground/60`,placeholder:`Titel der Seite`,maxlength:`200`,"aria-label":`Titel der Seite`,readonly:R.value,onClick:i[10]||=w(()=>{},[`stop`])},null,8,xt),[[ee,M.title]]),c(`div`,St,[t(we,{item:M.content,root:``},null,8,[`item`])])],2)]),c(`aside`,Ct,[c(`div`,wt,[(g(),l(_,null,u([{key:`blocks`,label:`Blöcke`},{key:`block`,label:`Ausgewählter Block`}],e=>c(`button`,{key:e.key,type:`button`,role:`tab`,class:s([`relative px-3 py-3 text-sm font-medium disabled:opacity-40`,H.value===e.key?`text-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-selected":H.value===e.key,disabled:e.key===`block`&&!U.value,onClick:t=>H.value=e.key},[n(y(e.label)+` `,1),H.value===e.key?(g(),l(`span`,Et)):C(``,!0)],10,Tt)),64))]),c(`div`,Dt,[H.value===`block`&&U.value?(g(),b(xe,{key:U.value.id,block:U.value},null,8,[`block`])):(g(),l(_,{key:1},[i[38]||=c(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt den Block unter dem ausgewählten ein. Blöcke lassen sich auch an jede Stelle ziehen.`,-1),t(Ce,{onPick:Ve})],64))])])]),c(`div`,Ot,[t(a(P),{variant:`outline`,class:`bg-card shadow-md`,disabled:R.value,onClick:i[12]||=e=>{H.value=`blocks`,V.value=!0}},{default:v(()=>[...i[39]||=[n(`Block hinzufügen`,-1)]]),_:1},8,[`disabled`]),U.value?(g(),b(a(P),{key:0,class:`shadow-md`,onClick:i[13]||=e=>{H.value=`block`,V.value=!0}},{default:v(()=>[...i[40]||=[n(`Einstellungen`,-1)]]),_:1})):C(``,!0)]),t(a(le),{open:V.value,"onUpdate:open":i[14]||=e=>V.value=e},{default:v(()=>[t(a(ce),{side:`right`,class:`w-[340px] overflow-y-auto p-4 sm:max-w-[340px]`},{default:v(()=>[t(a(me),{class:`p-0`},{default:v(()=>[t(a(fe),null,{default:v(()=>[n(y(H.value===`block`?`Block`:`Blöcke`),1)]),_:1})]),_:1}),H.value===`block`&&U.value?(g(),b(xe,{key:U.value.id,block:U.value},null,8,[`block`])):(g(),b(Ce,{key:1,onPick:Ve}))]),_:1})]),_:1},8,[`open`]),t(Ue,{open:Q.publish,"onUpdate:open":i[15]||=e=>Q.publish=e,"scheduled-at":j.value.scheduled_at,onPublish:Vt},null,8,[`open`,`scheduled-at`]),t(it,{open:Q.review,"onUpdate:open":i[16]||=e=>Q.review=e,onSubmit:Ht},null,8,[`open`]),t($e,{open:Q.revisions,"onUpdate:open":i[17]||=e=>Q.revisions=e,base:T,"read-only":R.value,onRestored:Ut},null,8,[`open`,`read-only`]),t(rt,{open:Q.settings,"onUpdate:open":i[18]||=e=>Q.settings=e,page:j.value,base:T,onSaved:i[19]||=e=>j.value=e.page},null,8,[`open`,`page`]),t(Re,{open:Q.newPage,"onUpdate:open":i[20]||=e=>Q.newPage=e,"parent-id":j.value.id,"parent-title":j.value.title,onBeforeCreate:Y},null,8,[`open`,`parent-id`,`parent-title`])]),t(a(De),{position:`bottom-left`})],64))}};export{Z as default}; \ No newline at end of file +import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,Yt as o,Zn as s,_ as c,b as l,bt as u,ct as d,g as f,gn as p,gt as m,it as h,mt as g,o as _,qt as v,tr as y,v as b,vn as x,wt as S,y as C}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w,x as ee,y as T}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as te,n as ne,t as re}from"./app-Cw5f57va.js";import{O as ie,k as E}from"./dist-DtGNiYlK.js";import{L as ae,a as oe,c as se,d as ce,f as le,i as ue,k as de,l as fe,o as D,s as pe,u as me}from"./AppIcon-BiVN_tuL.js";import{t as he}from"./arrow-left-BMImfTf2.js";import{r as ge}from"./RichTextEditor-CA2m8pIz.js";import{a as _e,c as ve,i as ye,l as be,n as xe,o as Se,r as Ce,s as O,t as we}from"./EditorBlockList-DvVDy56W.js";import{t as Te}from"./calendar-clock-8H2IkjP5.js";import{S as Ee,a as De,o as k,t as A}from"./http-DmyDwIce.js";import{t as j}from"./Switch-CWN1_5O7.js";import{t as Oe}from"./ellipsis-vertical-B9wuHo-w.js";import{t as ke}from"./eye-CFNQcvaV.js";import{t as Ae}from"./file-plus-corner-Z8xo1q-K.js";import{t as je}from"./lock-H7FAhSBr.js";import{t as Me}from"./rotate-ccw-clock-DRYS-TO2.js";import{t as Ne}from"./send-6fmdiUe6.js";import{t as Pe}from"./settings-2-L4P6usDq.js";import{t as Fe}from"./smartphone-BE2l7T-2.js";import{t as Ie}from"./trash-DUqnVIgb.js";import{t as M}from"./DialogDescription-9G5-5WG4.js";import{a as N,s as Le}from"./format-BsuBtvUs.js";import{t as P}from"./button-ZHC5mKey.js";import{t as F}from"./Input-FGSb2-yK.js";import{t as I}from"./Textarea-DEFXqC2w.js";import{i as L,n as R,r as z,t as B}from"./dialog-DiN2bNwR.js";import{t as V}from"./DialogHeader-DuqiL3ry.js";import{t as H}from"./PageContent-_C7Zf061.js";import{t as Re}from"./NewPageDialog-DbJDgD-q.js";var ze=E({name:`cloud-alert`,size:24,node:[[`path`,{d:`M12 12v4`,key:`tww15h`}],[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.128 16.949A7 7 0 1 1 15.71 8h1.79a1 1 0 0 1 0 9h-1.642`,key:`1namsd`}]]}),U={key:0,class:`rounded-md bg-amber-50 px-3 py-2 text-sm text-amber-900 dark:bg-amber-950/50 dark:text-amber-100`},W={class:`grid gap-2`},Be={class:`flex cursor-pointer items-start gap-3 rounded-md border p-3 has-checked:border-brand-400 has-checked:bg-brand-soft/60`},Ve={class:`flex cursor-pointer items-start gap-3 rounded-md border p-3 has-checked:border-brand-400 has-checked:bg-brand-soft/60`},He={class:`grid flex-1 gap-2`},Ue={__name:`PublishDialog`,props:e({scheduledAt:{type:String,default:null}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`publish`],[`update:open`]),setup(e,{emit:s}){let u=e,d=r(e,`open`),f=s,p=x(`now`),m=x(``),h=x(!1);function _(e){let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}`}i(d,e=>{if(e){p.value=`now`;let e=new Date(Date.now()+864e5);e.setHours(7,0,0,0),m.value=_(e),h.value=!1}});async function S(){h.value=!0,f(`publish`,p.value===`later`?new Date(m.value).toISOString():null),setTimeout(()=>h.value=!1,800)}return(e,r)=>(g(),b(a(L),{open:d.value,"onUpdate:open":r[4]||=e=>d.value=e},{default:v(()=>[t(a(z),{class:`sm:max-w-md`},{default:v(()=>[t(a(V),null,{default:v(()=>[t(a(B),null,{default:v(()=>[...r[5]||=[n(`Seite veröffentlichen`,-1)]]),_:1}),t(a(M),null,{default:v(()=>[...r[6]||=[n(`Der aktuelle Stand wird für alle sichtbar, die die Seite sehen dürfen. Frühere Stände bleiben unter „Versionen“ erhalten.`,-1)]]),_:1})]),_:1}),u.scheduledAt?(g(),l(`p`,U,` Es ist bereits eine Veröffentlichung geplant. Sie wird durch diese ersetzt. `)):C(``,!0),c(`fieldset`,W,[r[9]||=c(`legend`,{class:`sr-only`},`Zeitpunkt`,-1),c(`label`,Be,[o(c(`input`,{"onUpdate:modelValue":r[0]||=e=>p.value=e,type:`radio`,value:`now`,class:`mt-1 accent-[var(--brand)]`},null,512),[[T,p.value]]),r[7]||=c(`span`,null,[c(`span`,{class:`block text-sm font-medium`},`Jetzt veröffentlichen`),c(`span`,{class:`block text-xs text-muted-foreground`},`Sofort sichtbar.`)],-1)]),c(`label`,Ve,[o(c(`input`,{"onUpdate:modelValue":r[1]||=e=>p.value=e,type:`radio`,value:`later`,class:`mt-1 accent-[var(--brand)]`},null,512),[[T,p.value]]),c(`span`,He,[r[8]||=c(`span`,null,[c(`span`,{class:`block text-sm font-medium`},`Zeitgesteuert`),c(`span`,{class:`block text-xs text-muted-foreground`},`Der aktuelle Stand geht zum gewählten Zeitpunkt online.`)],-1),p.value===`later`?(g(),b(a(F),{key:0,modelValue:m.value,"onUpdate:modelValue":r[2]||=e=>m.value=e,type:`datetime-local`,min:_(new Date),"aria-label":`Zeitpunkt der Veröffentlichung`},null,8,[`modelValue`,`min`])):C(``,!0)])])]),t(a(R),null,{default:v(()=>[t(a(P),{variant:`outline`,onClick:r[3]||=e=>d.value=!1},{default:v(()=>[...r[10]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(P),{disabled:h.value||p.value===`later`&&!m.value,onClick:S},{default:v(()=>[p.value===`later`?(g(),b(a(Te),{key:0})):(g(),b(a(Ne),{key:1})),n(` `+y(p.value===`later`?`Planen`:`Veröffentlichen`),1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},We={class:`flex min-h-0 flex-1`},Ge={class:`w-64 shrink-0 overflow-y-auto border-r p-2`},Ke={key:0,class:`grid place-items-center py-10`},qe={key:1,class:`px-3 py-6 text-center text-sm text-muted-foreground`},Je=[`onClick`],Ye={class:`block text-sm font-medium`},G={class:`block truncate text-xs text-muted-foreground`},Xe={class:`flex min-w-0 flex-1 flex-col`},Ze={class:`min-h-0 flex-1 overflow-y-auto bg-background p-6`},K={key:0,class:`grid place-items-center py-16`},Qe={class:`mb-6 text-2xl font-semibold tracking-tight`},q={key:0,class:`flex items-center justify-between gap-3 border-t px-5 py-3`},J={class:`text-xs text-muted-foreground`},$e={__name:`RevisionsDialog`,props:e({base:{type:String,required:!0},readOnly:{type:Boolean,default:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`restored`],[`update:open`]),setup(e,{emit:o}){let d=e,f=r(e,`open`),p=o,m=x(null),h=x(null),S=x(null),w=x(!1);i(f,async e=>{e&&(m.value=null,S.value=null,h.value=null,m.value=(await A.get(`${d.base}/versionen`)).revisions,m.value.length&&ee(m.value[0]))});async function ee(e){h.value=e,w.value=!0;try{S.value=await A.get(`${d.base}/versionen/${e.id}`)}finally{w.value=!1}}async function T(){try{p(`restored`,await A.post(`${d.base}/versionen/${h.value.id}/wiederherstellen`))}catch(e){k.error(e.message)}}return(r,i)=>(g(),b(a(L),{open:f.value,"onUpdate:open":i[0]||=e=>f.value=e},{default:v(()=>[t(a(z),{class:`flex h-[85vh] max-w-5xl flex-col gap-0 p-0 sm:max-w-5xl`},{default:v(()=>[t(a(V),{class:`border-b px-5 py-4`},{default:v(()=>[t(a(B),null,{default:v(()=>[...i[1]||=[n(`Versionen`,-1)]]),_:1}),t(a(M),null,{default:v(()=>[...i[2]||=[n(`Jede Veröffentlichung wird gespeichert. Eine ältere Version lässt sich als Entwurf zurückholen.`,-1)]]),_:1})]),_:1}),c(`div`,We,[c(`ul`,Ge,[m.value===null?(g(),l(`li`,Ke,[t(a(ie),{class:`size-5 animate-spin text-muted-foreground`})])):m.value.length?C(``,!0):(g(),l(`li`,qe,`Noch keine veröffentlichten Versionen.`)),(g(!0),l(_,null,u(m.value??[],e=>(g(),l(`li`,{key:e.id},[c(`button`,{type:`button`,class:s([`w-full rounded-md px-3 py-2 text-left`,h.value?.id===e.id?`bg-brand-soft text-brand-soft-foreground`:`hover:bg-accent`]),onClick:t=>ee(e)},[c(`span`,Ye,y(a(N)(e.created_at)),1),c(`span`,G,[n(y(e.action),1),e.user?(g(),l(_,{key:0},[n(` · `+y(e.user),1)],64)):C(``,!0)])],10,Je)]))),128))]),c(`div`,Xe,[c(`div`,Ze,[w.value?(g(),l(`div`,K,[t(a(ie),{class:`size-6 animate-spin text-muted-foreground`})])):S.value?(g(),l(_,{key:1},[c(`h1`,Qe,y(S.value.title),1),t(H,{content:S.value.content},null,8,[`content`])],64)):C(``,!0)]),h.value?(g(),l(`div`,q,[c(`span`,J,y(new Date(h.value.created_at).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`})),1),t(a(P),{disabled:e.readOnly,onClick:T},{default:v(()=>[t(a(Me)),i[3]||=n(` Als Entwurf wiederherstellen`,-1)]),_:1},8,[`disabled`])])):C(``,!0)])])]),_:1})]),_:1},8,[`open`]))}},et={class:`grid gap-1.5`},Y={key:0,class:`text-[13px] text-destructive`},tt={key:1,class:`text-xs text-muted-foreground`},nt={key:0,class:`flex items-center justify-between gap-3 text-[13px] font-medium`},rt={__name:`PageSettingsDialog`,props:e({page:{type:Object,required:!0},base:{type:String,required:!0}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:e([`saved`],[`update:open`]),setup(e,{emit:o}){let s=e,u=r(e,`open`),d=o,f=x({slug:``,in_navigation:!1}),p=x({}),m=x(!1);i(u,e=>{e&&(f.value={slug:s.page.slug,in_navigation:s.page.in_navigation},p.value={})});async function h(){m.value=!0;try{d(`saved`,await A.put(`${s.base}/einstellungen`,f.value)),u.value=!1}catch(e){p.value=e.fieldErrors??{}}finally{m.value=!1}}return(r,i)=>(g(),b(a(L),{open:u.value,"onUpdate:open":i[3]||=e=>u.value=e},{default:v(()=>[t(a(z),{class:`sm:max-w-md`},{default:v(()=>[t(a(V),null,{default:v(()=>[t(a(B),null,{default:v(()=>[...i[4]||=[n(`Seiteneinstellungen`,-1)]]),_:1}),t(a(M),null,{default:v(()=>[...i[5]||=[n(`Sichtbarkeit und Rechte pflegen Sie in der Administration unter „Seiten“.`,-1)]]),_:1})]),_:1}),c(`form`,{class:`grid gap-4`,onSubmit:w(h,[`prevent`])},[c(`label`,et,[i[6]||=c(`span`,{class:`text-[13px] font-medium`},`Kürzel in der Adresse`,-1),t(a(F),{modelValue:f.value.slug,"onUpdate:modelValue":i[0]||=e=>f.value.slug=e,maxlength:`120`,"aria-invalid":!!p.value.slug},null,8,[`modelValue`,`aria-invalid`]),p.value.slug?(g(),l(`span`,Y,y(p.value.slug),1)):(g(),l(`span`,tt,`Ändert auch die Adressen aller Unterseiten. Alte Links funktionieren dann nicht mehr.`))]),e.page.can.navigation?(g(),l(`label`,nt,[i[7]||=n(` In der Hauptnavigation anzeigen `,-1),t(a(j),{modelValue:f.value.in_navigation,"onUpdate:modelValue":i[1]||=e=>f.value.in_navigation=e},null,8,[`modelValue`])])):C(``,!0),t(a(R),null,{default:v(()=>[t(a(P),{type:`button`,variant:`outline`,onClick:i[2]||=e=>u.value=!1},{default:v(()=>[...i[8]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(P),{type:`submit`,disabled:m.value},{default:v(()=>[...i[9]||=[n(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}},X={class:`grid gap-1.5`},it={__name:`ReviewDialog`,props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:e([`submit`],[`update:open`]),setup(e,{emit:o}){let s=r(e,`open`),l=o,u=x(``),d=x(!1);i(s,e=>e&&(u.value=``,d.value=!1));function f(){d.value=!0,l(`submit`,u.value),setTimeout(()=>d.value=!1,1500)}return(e,r)=>(g(),b(a(L),{open:s.value,"onUpdate:open":r[2]||=e=>s.value=e},{default:v(()=>[t(a(z),{class:`sm:max-w-md`},{default:v(()=>[t(a(V),null,{default:v(()=>[t(a(B),null,{default:v(()=>[...r[3]||=[n(`Freigabe anfordern`,-1)]]),_:1}),t(a(M),null,{default:v(()=>[...r[4]||=[n(`Ihre Änderungen sind als Entwurf gespeichert. Die Personen, die diese Seite veröffentlichen dürfen, werden benachrichtigt.`,-1)]]),_:1})]),_:1}),c(`label`,X,[r[5]||=c(`span`,{class:`text-[13px] font-medium`},`Nachricht (freiwillig)`,-1),t(a(I),{modelValue:u.value,"onUpdate:modelValue":r[0]||=e=>u.value=e,rows:`3`,maxlength:`1000`,placeholder:`z. B. Bitte bis Freitag veröffentlichen.`},null,8,[`modelValue`])]),t(a(R),null,{default:v(()=>[t(a(P),{variant:`outline`,onClick:r[1]||=e=>s.value=!1},{default:v(()=>[...r[6]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(P),{disabled:d.value,onClick:f},{default:v(()=>[t(a(Ne)),r[7]||=n(` Anfordern`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`]))}},at={class:`flex h-dvh flex-col bg-background`},ot={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},st={class:`min-w-0 flex-1`},ct={class:`flex items-center gap-2`},lt={class:`truncate text-sm font-semibold`},ut={class:`flex items-center gap-1 truncate text-xs text-muted-foreground`,"aria-live":`polite`},dt={class:`hidden items-center gap-0.5 md:flex`},ft=[`disabled`],pt=[`disabled`],mt={class:`flex rounded-md border p-0.5`,role:`group`,"aria-label":`Vorschau`},ht=[`title`,`aria-pressed`,`onClick`],gt=[`href`],_t={key:0,class:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-amber-200 bg-amber-50 px-4 py-2.5 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950/50 dark:text-amber-100`},vt={class:`flex-1`},yt={class:`flex min-h-0 flex-1`},bt={key:0,class:`mb-2 flex flex-wrap gap-1 text-xs text-muted-foreground`,"aria-label":`Brotkrumen`},xt=[`readonly`],St={class:`@container`},Ct={class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},wt={class:`flex shrink-0 border-b px-2`,role:`tablist`},Tt=[`aria-selected`,`disabled`,`onClick`],Et={key:0,class:`absolute inset-x-2 bottom-0 h-[3px] rounded-t-full bg-brand`},Dt={class:`min-h-0 flex-1 overflow-y-auto p-4`},Ot={class:`fixed right-4 bottom-4 z-30 flex gap-2 lg:hidden`},Z={__name:`Editor`,props:{page:{type:Object,required:!0},working:{type:Object,required:!0},lockedBy:{type:Object,default:null},blockTypes:{type:Array,required:!0},blockGroups:{type:Object,required:!0},files:{type:Array,default:()=>[]},audienceOptions:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},uploadsUrl:{type:String,required:!0}},setup(e){let r=e,T=`/redaktion/seiten/${r.page.id}`,E=Object.fromEntries(r.blockTypes.map(e=>[e.key,e])),j=x(r.page),M=p(ye(r.working)),N=x(null),F=x(null),I=p({}),L=x(r.files),R=x(!!r.lockedBy),z=x(r.lockedBy),B=x(`desktop`),V=x(!1),H=x(`blocks`),U=f(()=>N.value?O(M.content.blocks,N.value)?.block??null:null);i(N,e=>{H.value=e?`block`:`blocks`});function W(e){N.value=e??null}function Be(e,t,n){if(R.value)return;let r=_e(n);e.splice(t,0,r),W(r.id)}function Ve(e){let t=U.value?O(M.content.blocks,U.value.id):null;t?Be(t.list,t.index+1,e):Be(M.content.blocks,M.content.blocks.length,e),V.value=!1,requestAnimationFrame(()=>document.querySelector(`[data-block-id="${N.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`}))}function He(e){let t=O(M.content.blocks,e);t&&(t.list.splice(t.index,1),N.value===e&&W(null))}function We(e,t){let n=O(M.content.blocks,e),r=n?n.index+t:-1;n&&r>=0&&rt.items?.includes(e)||O(e.blocks,t.id))}async function qe(e){let t=new FormData;return t.append(`image`,e),A.post(`${T}/bilder`,t)}async function Je(e){let t=new FormData;t.append(`file`,e);let n=await A.post(`${T}/dateien`,t);return L.value=[n.file,...L.value],n.file}let Ye=p({});m(`pagebuilder:editor`,{types:E,groups:r.blockGroups,selectedId:N,hoveredId:F,previews:I,readOnly:R,files:L,peopleCache:Ye,audienceOptions:r.audienceOptions,select:W,insert:Be,remove:He,move:We,duplicate:Ge,containsActive:Ke,uploadImage:qe,uploadFile:Je,imageUrl:e=>`${r.uploadsUrl}/${e}`}),m(`pagebuilder:list`,we),m(`pagebuilder:types`,E),m(`pagebuilder:editing`,f(()=>!R.value));let G={},Xe;function Ze(){let e=[];ve(M.content.blocks,t=>{if(!E[t.type]?.dynamic)return;let n=JSON.stringify(t.data);G[t.id]!==n&&(G[t.id]=n,e.push({id:t.id,type:t.type,data:t.data}))}),e.length&&A.post(`${T}/vorschau`,{blocks:e.slice(0,100)}).then(e=>Object.assign(I,e.props)).catch(()=>{})}let K=x(`saved`),Qe=x(j.value.draft_updated_at),q,J=JSON.stringify(M);function et(){return{title:M.title,content:M.content}}async function Y(){if(clearTimeout(q),R.value)return;let e=JSON.stringify(M);if(e===J){K.value=`saved`;return}K.value=`saving`;try{let t=await A.put(`${T}/entwurf`,et());J=e,j.value=t.page,Qe.value=new Date().toISOString(),K.value=JSON.stringify(M)===J?`saved`:`dirty`,K.value===`dirty`&&tt()}catch(e){nt(e),K.value=`error`}}function tt(e=1200){clearTimeout(q),q=setTimeout(Y,e)}function nt(e){e.status===423?(R.value=!0,z.value=e.data.lockedBy,k.error(e.message)):e.status===422&&e.data?.errors?.title?k.error(e.data.errors.title[0]):k.error(e.message||`Speichern fehlgeschlagen. Bitte die Verbindung prüfen.`)}let X=x([]),Z=x([]),kt=JSON.stringify(M),At=!1,jt;function Mt(){let e=JSON.stringify(M);e!==kt&&(X.value=[...X.value.slice(-49),kt],Z.value=[],kt=e)}function Nt(e){At=!0;let t=JSON.parse(e);M.title=t.title,M.content=t.content,kt=e,N.value&&!O(M.content.blocks,N.value)&&W(null),setTimeout(()=>At=!1)}function Pt(){Mt(),X.value.length&&(Z.value=[...Z.value,JSON.stringify(M)],Nt(X.value.at(-1)),X.value=X.value.slice(0,-1))}function Ft(){Z.value.length&&(X.value=[...X.value,JSON.stringify(M)],Nt(Z.value.at(-1)),Z.value=Z.value.slice(0,-1))}i(M,()=>{R.value||(K.value=`dirty`,tt(),clearTimeout(Xe),Xe=setTimeout(Ze,500),At||(clearTimeout(jt),jt=setTimeout(Mt,700)))},{deep:!0});function It(e){let t=e.target.closest?.(`input, textarea, select, [contenteditable="true"]`);(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),Y()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`z`?(e.preventDefault(),e.shiftKey?Ft():Pt()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`y`?(e.preventDefault(),Ft()):e.key===`Escape`&&!t&&W(null)}let Lt;async function Rt(e=!1){try{await A.post(`${T}/sperre`,{takeover:e}),e&&(R.value=!1,z.value=null,k.success(`Sie bearbeiten die Seite jetzt.`))}catch(e){e.status===423&&(R.value=!0,z.value=e.data.lockedBy)}}async function zt(){await Rt(!0),te.reload({only:[`working`,`page`],onSuccess:()=>Object.assign(M,ye(r.working))})}function Bt(){R.value||(JSON.stringify(M)!==J&&fetch(`${T}/entwurf`,{method:`PUT`,keepalive:!0,credentials:`same-origin`,headers:{"Content-Type":`application/json`,Accept:`application/json`,"X-XSRF-TOKEN":decodeURIComponent(document.cookie.match(/XSRF-TOKEN=([^;]*)/)?.[1]??``)},body:JSON.stringify(et())}),A.post(`${T}/sperre/freigeben`,{},{keepalive:!0}).catch(()=>{}))}d(()=>{Ze(),window.addEventListener(`keydown`,It),window.addEventListener(`pagehide`,Bt),Lt=setInterval(()=>!R.value&&Rt(),45e3)}),h(()=>{window.removeEventListener(`keydown`,It),window.removeEventListener(`pagehide`,Bt),clearInterval(Lt),clearTimeout(q),Bt()});let Q=p({publish:!1,review:!1,revisions:!1,settings:!1,newPage:!1});async function Vt(e){clearTimeout(q);try{let t=await A.post(`${T}/veroeffentlichen`,{...et(),scheduled_at:e||null});j.value=t.page,J=JSON.stringify(M),K.value=`saved`,Q.publish=!1,k.success(e?`Veröffentlichung geplant für ${new Date(e).toLocaleString(`de-DE`,{dateStyle:`medium`,timeStyle:`short`})}`:`Seite veröffentlicht`,{action:e?void 0:{label:`Ansehen`,onClick:()=>te.visit(j.value.url)}})}catch(e){nt(e)}}async function Ht(e){await Y();try{let t=await A.post(`${T}/freigabe`,{message:e});Q.review=!1,k.success(`Freigabe angefordert – ${t.recipients} ${t.recipients===1?`Person wurde`:`Personen wurden`} benachrichtigt.`)}catch(e){k.error(e.message)}}async function $(e,t,n,r){if(!n||window.confirm(n))try{let n=await A[e](t);if(n.page&&(j.value=n.page),n.working&&(Nt(JSON.stringify(n.working)),J=JSON.stringify(M)),n.redirect){te.visit(n.redirect);return}k.success(r)}catch(e){k.error(e.message)}}function Ut(e){j.value=e.page,Nt(JSON.stringify(e.working)),J=JSON.stringify(M),Object.keys(G).forEach(e=>delete G[e]),Ze(),Q.revisions=!1,k.success(`Version als Entwurf wiederhergestellt`)}let Wt=f(()=>j.value.scheduled_at?{label:`Geplant: ${new Date(j.value.scheduled_at).toLocaleString(`de-DE`,{dateStyle:`short`,timeStyle:`short`})}`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`}:j.value.is_published?j.value.has_draft?{label:`Entwurf mit Änderungen`,class:`bg-brand-soft text-brand-soft-foreground`}:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`}:{label:`Nicht veröffentlicht`,class:`bg-muted text-muted-foreground`}),Gt=[{key:`desktop`,label:`Desktop`,icon:ae,width:`max-w-[1100px]`},{key:`tablet`,label:`Tablet`,icon:be,width:`max-w-[768px]`},{key:`mobile`,label:`Smartphone`,icon:Fe,width:`max-w-[390px]`}],Kt=f(()=>Gt.find(e=>e.key===B.value).width);return(r,i)=>(g(),l(_,null,[t(a(re),{title:`Bearbeiten: ${M.title}`},null,8,[`title`]),c(`div`,at,[c(`header`,ot,[t(a(ne),{href:j.value.is_published?j.value.url:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zurück`},{default:v(()=>[t(a(he),{class:`size-5`})]),_:1},8,[`href`]),c(`div`,st,[c(`div`,ct,[c(`span`,lt,y(M.title||`Ohne Titel`),1),c(`span`,{class:s([`hidden shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium sm:inline`,Wt.value.class])},y(Wt.value.label),3)]),c(`p`,ut,[R.value?(g(),l(_,{key:0},[t(a(je),{class:`size-3`}),i[21]||=n(` Nur lesen`,-1)],64)):K.value===`saving`?(g(),l(_,{key:1},[t(a(ie),{class:`size-3 animate-spin`}),i[22]||=n(` Speichert …`,-1)],64)):K.value===`error`?(g(),l(_,{key:2},[t(a(ze),{class:`size-3 text-destructive`}),i[23]||=n(` Nicht gespeichert`,-1)],64)):K.value===`dirty`?(g(),l(_,{key:3},[n(`Ungespeicherte Änderungen`)],64)):Qe.value?(g(),l(_,{key:4},[t(a(Ee),{class:`size-3`}),n(` Entwurf gespeichert `+y(a(Le)(Qe.value)),1)],64)):(g(),l(_,{key:5},[n(y(j.value.url),1)],64))])]),c(`div`,dt,[c(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Rückgängig (Strg+Z)`,disabled:!X.value.length||R.value,onClick:Pt},[t(a(de),{class:`size-4`})],8,ft),c(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Wiederholen (Strg+Y)`,disabled:!Z.value.length||R.value,onClick:Ft},[t(a(ge),{class:`size-4`})],8,pt),i[24]||=c(`span`,{class:`mx-1 h-6 w-px bg-border`},null,-1),c(`div`,mt,[(g(),l(_,null,u(Gt,e=>c(`button`,{key:e.key,type:`button`,class:s([`grid size-8 place-items-center rounded`,B.value===e.key?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":B.value===e.key,onClick:t=>B.value=e.key},[(g(),b(S(e.icon),{class:`size-4`}))],10,ht)),64))])]),t(a(se),null,{default:v(()=>[t(a(ue),{class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent`,"aria-label":`Weitere Aktionen`},{default:v(()=>[t(a(Oe),{class:`size-5`})]),_:1}),t(a(pe),{align:`end`,class:`w-64`},{default:v(()=>[j.value.is_published?(g(),b(a(D),{key:0,"as-child":``},{default:v(()=>[c(`a`,{href:j.value.url,target:`_blank`},[t(a(ke)),i[25]||=n(` Veröffentlichte Seite ansehen`,-1)],8,gt)]),_:1})):C(``,!0),t(a(D),{onSelect:i[0]||=e=>Q.revisions=!0},{default:v(()=>[t(a(Me)),i[26]||=n(` Versionen`,-1)]),_:1}),j.value.can.configure?(g(),b(a(D),{key:1,onSelect:i[1]||=e=>Q.settings=!0},{default:v(()=>[t(a(Pe)),i[27]||=n(` Seiteneinstellungen`,-1)]),_:1})):C(``,!0),j.value.can.create_child?(g(),b(a(D),{key:2,onSelect:i[2]||=e=>Q.newPage=!0},{default:v(()=>[t(a(Ae)),i[28]||=n(` Unterseite anlegen`,-1)]),_:1})):C(``,!0),t(a(oe)),j.value.has_draft&&j.value.is_published&&!R.value?(g(),b(a(D),{key:3,onSelect:i[3]||=e=>$(`delete`,`${T}/entwurf`,`Alle Änderungen seit der letzten Veröffentlichung verwerfen?`,`Entwurf verworfen`)},{default:v(()=>[t(a(de)),i[29]||=n(` Entwurf verwerfen `,-1)]),_:1})):C(``,!0),j.value.scheduled_at&&j.value.can.publish?(g(),b(a(D),{key:4,onSelect:i[4]||=e=>$(`delete`,`${T}/planung`,null,`Planung aufgehoben – der Stand ist wieder ein Entwurf`)},{default:v(()=>[t(a(Te)),i[30]||=n(` Geplante Veröffentlichung aufheben `,-1)]),_:1})):C(``,!0),j.value.is_published&&j.value.can.publish?(g(),b(a(D),{key:5,onSelect:i[5]||=e=>$(`post`,`${T}/zurueckziehen`,`Seite offline nehmen? Der Inhalt bleibt als Entwurf erhalten.`,`Seite ist offline`)},{default:v(()=>[t(a(je)),i[31]||=n(` Veröffentlichung zurückziehen `,-1)]),_:1})):C(``,!0),j.value.can.delete?(g(),b(a(D),{key:6,class:`text-destructive`,onSelect:i[6]||=e=>$(`delete`,T,`Seite endgültig löschen? Versionen und Dateien werden entfernt.`,`Seite gelöscht`)},{default:v(()=>[t(a(Ie)),i[32]||=n(` Seite löschen `,-1)]),_:1})):C(``,!0)]),_:1})]),_:1}),j.value.can.publish?(g(),b(a(P),{key:0,disabled:R.value,onClick:i[7]||=e=>Q.publish=!0},{default:v(()=>[t(a(Ne)),i[33]||=n(),i[34]||=c(`span`,{class:`hidden sm:inline`},`Veröffentlichen`,-1)]),_:1},8,[`disabled`])):(g(),b(a(P),{key:1,disabled:R.value,onClick:i[8]||=e=>Q.review=!0},{default:v(()=>[t(a(Ne)),i[35]||=n(),i[36]||=c(`span`,{class:`hidden sm:inline`},`Freigabe anfordern`,-1)]),_:1},8,[`disabled`]))]),R.value?(g(),l(`div`,_t,[t(a(je),{class:`size-4 shrink-0`}),c(`span`,vt,y(z.value?.name??`Jemand anderes`)+` bearbeitet diese Seite gerade. Sie sehen den zuletzt gespeicherten Stand.`,1),t(a(P),{size:`sm`,variant:`outline`,class:`bg-card`,onClick:zt},{default:v(()=>[...i[37]||=[n(`Bearbeitung übernehmen`,-1)]]),_:1})])):C(``,!0),c(`div`,yt,[c(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:i[11]||=e=>W(null)},[c(`div`,{class:s([`mx-auto px-4 py-8 transition-[max-width] duration-300 sm:px-8`,Kt.value])},[e.breadcrumbs.length?(g(),l(`nav`,bt,[(g(!0),l(_,null,u(e.breadcrumbs,e=>(g(),l(`span`,{key:e.url},y(e.title)+` /`,1))),128))])):C(``,!0),o(c(`input`,{"onUpdate:modelValue":i[9]||=e=>M.title=e,class:`mb-6 w-full bg-transparent text-3xl font-semibold tracking-tight outline-none placeholder:text-muted-foreground/60`,placeholder:`Titel der Seite`,maxlength:`200`,"aria-label":`Titel der Seite`,readonly:R.value,onClick:i[10]||=w(()=>{},[`stop`])},null,8,xt),[[ee,M.title]]),c(`div`,St,[t(we,{item:M.content,root:``},null,8,[`item`])])],2)]),c(`aside`,Ct,[c(`div`,wt,[(g(),l(_,null,u([{key:`blocks`,label:`Blöcke`},{key:`block`,label:`Ausgewählter Block`}],e=>c(`button`,{key:e.key,type:`button`,role:`tab`,class:s([`relative px-3 py-3 text-sm font-medium disabled:opacity-40`,H.value===e.key?`text-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-selected":H.value===e.key,disabled:e.key===`block`&&!U.value,onClick:t=>H.value=e.key},[n(y(e.label)+` `,1),H.value===e.key?(g(),l(`span`,Et)):C(``,!0)],10,Tt)),64))]),c(`div`,Dt,[H.value===`block`&&U.value?(g(),b(xe,{key:U.value.id,block:U.value},null,8,[`block`])):(g(),l(_,{key:1},[i[38]||=c(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt den Block unter dem ausgewählten ein. Blöcke lassen sich auch an jede Stelle ziehen.`,-1),t(Ce,{onPick:Ve})],64))])])]),c(`div`,Ot,[t(a(P),{variant:`outline`,class:`bg-card shadow-md`,disabled:R.value,onClick:i[12]||=e=>{H.value=`blocks`,V.value=!0}},{default:v(()=>[...i[39]||=[n(`Block hinzufügen`,-1)]]),_:1},8,[`disabled`]),U.value?(g(),b(a(P),{key:0,class:`shadow-md`,onClick:i[13]||=e=>{H.value=`block`,V.value=!0}},{default:v(()=>[...i[40]||=[n(`Einstellungen`,-1)]]),_:1})):C(``,!0)]),t(a(le),{open:V.value,"onUpdate:open":i[14]||=e=>V.value=e},{default:v(()=>[t(a(ce),{side:`right`,class:`w-[340px] overflow-y-auto p-4 sm:max-w-[340px]`},{default:v(()=>[t(a(me),{class:`p-0`},{default:v(()=>[t(a(fe),null,{default:v(()=>[n(y(H.value===`block`?`Block`:`Blöcke`),1)]),_:1})]),_:1}),H.value===`block`&&U.value?(g(),b(xe,{key:U.value.id,block:U.value},null,8,[`block`])):(g(),b(Ce,{key:1,onPick:Ve}))]),_:1})]),_:1},8,[`open`]),t(Ue,{open:Q.publish,"onUpdate:open":i[15]||=e=>Q.publish=e,"scheduled-at":j.value.scheduled_at,onPublish:Vt},null,8,[`open`,`scheduled-at`]),t(it,{open:Q.review,"onUpdate:open":i[16]||=e=>Q.review=e,onSubmit:Ht},null,8,[`open`]),t($e,{open:Q.revisions,"onUpdate:open":i[17]||=e=>Q.revisions=e,base:T,"read-only":R.value,onRestored:Ut},null,8,[`open`,`read-only`]),t(rt,{open:Q.settings,"onUpdate:open":i[18]||=e=>Q.settings=e,page:j.value,base:T,onSaved:i[19]||=e=>j.value=e.page},null,8,[`open`,`page`]),t(Re,{open:Q.newPage,"onUpdate:open":i[20]||=e=>Q.newPage=e,"parent-id":j.value.id,"parent-title":j.value.title,onBeforeCreate:Y},null,8,[`open`,`parent-id`,`parent-title`])]),t(a(De),{position:`bottom-left`})],64))}};export{Z as default}; \ No newline at end of file diff --git a/public/build/assets/Editor-DeUtUJ9p.js b/public/build/assets/Editor-C9-IyeYr.js similarity index 97% rename from public/build/assets/Editor-DeUtUJ9p.js rename to public/build/assets/Editor-C9-IyeYr.js index f5c7ad9f..f2ae3947 100644 --- a/public/build/assets/Editor-DeUtUJ9p.js +++ b/public/build/assets/Editor-C9-IyeYr.js @@ -1 +1 @@ -import{D as e,E as t,Ht as n,On as r,Yt as ee,Zn as i,_ as a,b as o,bt as te,ct as s,g as c,gn as l,gt as u,it as ne,mt as d,o as f,qt as p,tr as m,v as h,vn as g,wt as re,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as v,x as ie}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as y,i as ae,n as oe,r as se,t as ce}from"./app-CNhdlRDG.js";import{O as le}from"./dist-DtGNiYlK.js";import{L as ue,a as de,c as fe,d as pe,f as me,i as he,k as b,l as ge,o as _e,s as ve,u as ye}from"./AppIcon-D91Q4hzR.js";import{t as be}from"./arrow-left-BMImfTf2.js";import{i as xe,r as Se}from"./RichTextEditor-CMfIpwZS.js";import{a as Ce,c as we,i as Te,l as Ee,n as De,o as Oe,r as ke,s as x,t as Ae}from"./EditorBlockList-eovq9s83.js";import{t as je}from"./calendar-clock-8H2IkjP5.js";import{_ as Me,a as Ne,o as S,t as Pe}from"./http-DmyDwIce.js";import{t as Fe}from"./Switch-CWN1_5O7.js";import{t as Ie}from"./ellipsis-vertical-B9wuHo-w.js";import{t as Le}from"./eye-CFNQcvaV.js";import{t as Re}from"./message-square-warning-BFfa_vqd.js";import{t as ze}from"./save-aFVYiCIj.js";import{t as C}from"./send-6fmdiUe6.js";import{t as Be}from"./smartphone-BE2l7T-2.js";import{t as Ve}from"./trash-DUqnVIgb.js";import{t as He}from"./DialogDescription-CCacFT45.js";import{t as w}from"./FormField-BoFAO4pm.js";import{t as T}from"./button-ZHC5mKey.js";import{t as E}from"./NativeSelect-BGasRaNs.js";import{t as Ue}from"./Input-FGSb2-yK.js";import{t as We}from"./Textarea-DEFXqC2w.js";import{i as Ge,n as Ke,r as qe,t as Je}from"./dialog-37na293D.js";import{t as Ye}from"./DialogHeader-DuqiL3ry.js";var Xe={class:`flex h-dvh flex-col bg-background`},Ze={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},Qe={class:`min-w-0 flex-1`},$e={class:`flex items-center gap-2`},et={class:`truncate text-sm font-semibold`},tt={class:`truncate text-xs text-muted-foreground`,"aria-live":`polite`},nt={class:`hidden items-center gap-0.5 md:flex`},rt=[`disabled`],it=[`disabled`],at={class:`flex rounded-md border p-0.5`,role:`group`,"aria-label":`Vorschau`},ot=[`title`,`aria-pressed`,`onClick`],st=[`href`],ct={class:`hidden sm:inline`},lt={class:`hidden sm:inline`},ut={key:0,class:`flex gap-3 border-b border-amber-200 bg-amber-50 px-4 py-2.5 text-sm text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`},dt={class:`whitespace-pre-line`},ft={key:1,class:`flex flex-wrap items-center gap-3 border-b bg-brand-soft px-4 py-2.5 text-sm`},pt={class:`flex-1`},mt={class:`flex min-h-0 flex-1`},ht=[`src`],gt={class:`absolute top-3 right-3 flex gap-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100`},_t={key:2,class:`-mt-4 mb-4 text-[13px] text-destructive`},vt={class:`@container`},yt={key:3,class:`mt-4 text-center text-sm text-muted-foreground`},bt={class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},xt={class:`flex shrink-0 border-b px-2`,role:`tablist`},St=[`aria-selected`,`disabled`,`onClick`],Ct={key:0,class:`absolute inset-x-2 bottom-0 h-[3px] rounded-t-full bg-brand`},wt={class:`min-h-0 flex-1 overflow-y-auto p-4`},Tt={key:2,class:`grid gap-4`},Et={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Dt={key:1,class:`rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground`},Ot={class:`grid gap-2 border-t pt-4`},kt={class:`flex gap-2`},At={class:`fixed right-4 bottom-4 z-30 flex gap-2 lg:hidden`},jt={key:2,class:`grid gap-4`},Mt={key:1,class:`flex items-center justify-between gap-3 text-[13px] font-medium`},D={__name:`Editor`,props:{post:{type:Object,default:null},content:{type:Object,default:()=>({blocks:[]})},categories:{type:Array,required:!0},canPublishWithoutCategory:{type:Boolean,default:!1},canDelete:{type:Boolean,default:!1},forms:{type:Array,default:()=>[]},blockTypes:{type:Array,required:!0},blockGroups:{type:Object,required:!0},audienceOptions:{type:Object,required:!0},uploadsUrl:{type:String,required:!0}},setup(D){let O=D,Nt=ae(),k=Object.fromEntries(O.blockTypes.map(e=>[e.key,e]));function Pt(e){if(!e)return``;let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}let A=se({title:O.post?.title??``,teaser:O.post?.teaser??``,category_id:O.post?.category_id??(O.categories.length===1?O.categories[0].id:null),cover:null,remove_cover:!1,is_featured:O.post?.is_featured??!1,published_at:Pt(O.post?.published_at),form_id:O.post?.form_id??null,action:`draft`}),j=l({content:Te(O.content??{blocks:[]})}),Ft=c(()=>O.categories.find(e=>e.id===Number(A.category_id))),M=c(()=>Ft.value?Ft.value.can_publish:O.canPublishWithoutCategory),N=c(()=>O.post?.status===`pending`),P=c(()=>O.post?.status===`published`),It=c(()=>O.categories.map(e=>({value:e.id,label:e.name}))),F=c(()=>A.published_at&&new Date(A.published_at)>new Date),I=g(null),L=g(null),R=l({}),Lt=g(!1),z=g(`post`),B=g(!1),V=g(`desktop`),H=c(()=>I.value?x(j.content.blocks,I.value)?.block??null:null);n(I,e=>{z.value=e?`block`:z.value===`block`?`blocks`:z.value});function U(e){I.value=e??null}function W(e,t,n){let r=Ce(n);e.splice(t,0,r),U(r.id)}function Rt(e){let t=H.value?x(j.content.blocks,H.value.id):null;t?W(t.list,t.index+1,e):W(j.content.blocks,j.content.blocks.length,e),B.value=!1,requestAnimationFrame(()=>document.querySelector(`[data-block-id="${I.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`}))}function zt(e){let t=x(j.content.blocks,e);t&&(t.list.splice(t.index,1),I.value===e&&U(null))}function Bt(e,t){let n=x(j.content.blocks,e),r=n?n.index+t:-1;n&&r>=0&&rt.items?.includes(e)||x(e.blocks,t.id))}async function Ut(e){let t=new FormData;t.append(`image`,e);try{return await Pe.post(`/redaktion/neuigkeiten/bilder`,t)}catch(e){throw S.error(e.fieldErrors?.image??e.message),e}}async function Wt(){throw S.error(`Dateien zum Herunterladen gehören in den Bereich „Downloads“ – dort hochladen und hier mit dem Downloads-Block verlinken.`),Error(`not supported`)}u(`pagebuilder:editor`,{types:k,groups:O.blockGroups,selectedId:I,hoveredId:L,previews:R,readOnly:Lt,files:g([]),peopleCache:l({}),audienceOptions:O.audienceOptions,select:U,insert:W,remove:zt,move:Bt,duplicate:Vt,containsActive:Ht,uploadImage:Ut,uploadFile:Wt,imageUrl:e=>`${O.uploadsUrl}/${e}`}),u(`pagebuilder:list`,Ae),u(`pagebuilder:types`,k),u(`pagebuilder:editing`,c(()=>!0));let Gt={},Kt;function qt(){let e=[];we(j.content.blocks,t=>{if(!k[t.type]?.dynamic)return;let n=JSON.stringify(t.data);Gt[t.id]!==n&&(Gt[t.id]=n,e.push({id:t.id,type:t.type,data:t.data}))}),e.length&&Pe.post(`/redaktion/neuigkeiten/vorschau`,{blocks:e.slice(0,100)}).then(e=>Object.assign(R,e.props)).catch(()=>{})}let G=g([]),K=g([]),q=JSON.stringify(j.content),Jt=!1,Yt;function Xt(){let e=JSON.stringify(j.content);e!==q&&(G.value=[...G.value.slice(-49),q],K.value=[],q=e)}function Zt(e){Jt=!0,j.content=JSON.parse(e),q=e,I.value&&!x(j.content.blocks,I.value)&&U(null),setTimeout(()=>Jt=!1)}function Qt(){Xt(),G.value.length&&(K.value=[...K.value,JSON.stringify(j.content)],Zt(G.value.at(-1)),G.value=G.value.slice(0,-1))}function $t(){K.value.length&&(G.value=[...G.value,JSON.stringify(j.content)],Zt(K.value.at(-1)),K.value=K.value.slice(0,-1))}let en=JSON.stringify(j.content),J=g(!1),tn=c(()=>J.value||A.isDirty);n(()=>j.content,()=>{J.value=JSON.stringify(j.content)!==en,clearTimeout(Kt),Kt=setTimeout(qt,500),Jt||(clearTimeout(Yt),Yt=setTimeout(Xt,700))},{deep:!0});function nn(e){tn.value&&!A.processing&&(e.preventDefault(),e.returnValue=``)}let rn=y.on(`before`,e=>{tn.value&&!A.processing&&e.detail.visit.method===`get`&&!window.confirm(`Ungespeicherte Änderungen verwerfen?`)&&e.preventDefault()});function an(e){let t=e.target.closest?.(`input, textarea, select, [contenteditable="true"]`);(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),Z(P.value&&M.value?`publish`:P.value?`submit`:`draft`)):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`z`?(e.preventDefault(),e.shiftKey?$t():Qt()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`y`?(e.preventDefault(),$t()):e.key===`Escape`&&!t&&U(null)}s(()=>{qt(),window.addEventListener(`keydown`,an),window.addEventListener(`beforeunload`,nn)}),ne(()=>{window.removeEventListener(`keydown`,an),window.removeEventListener(`beforeunload`,nn),rn()});let Y=g(O.post?.cover_url??null),X=g(null);function on(e){let t=e.target.files?.[0];e.target.value=``,t&&(A.cover=t,A.remove_cover=!1,Y.value=URL.createObjectURL(t))}function sn(){A.cover=null,A.remove_cover=!0,Y.value=null}function Z(e){if(!A.title.trim()){S.error(`Bitte zuerst einen Titel eingeben.`);return}A.action=e,A.transform(e=>({...e,content:JSON.stringify(j.content),published_at:e.published_at?new Date(e.published_at).toISOString():null,category_id:e.category_id?Number(e.category_id):null,form_id:e.form_id?Number(e.form_id):``,...O.post?{_method:`put`}:{}})).post(O.post?`/redaktion/neuigkeiten/${O.post.id}`:`/redaktion/neuigkeiten`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{en=JSON.stringify(j.content),J.value=!1,A.cover=null,A.defaults()},onError:e=>S.error(e.action??e.title??e.category_id??e.content??Object.values(e)[0]??`Speichern fehlgeschlagen.`)})}n(()=>Nt.props.flash.status,e=>e&&S.success(e),{immediate:!0});let Q=g(!1),$=se({note:``});function cn(){y.post(`/redaktion/neuigkeiten/${O.post.id}/freigeben`,{published_at:A.published_at?new Date(A.published_at).toISOString():null})}function ln(){$.post(`/redaktion/neuigkeiten/${O.post.id}/zurueckgeben`,{onSuccess:()=>Q.value=!1})}function un(){window.confirm(`Beitrag endgültig löschen?`)&&(J.value=!1,A.defaults(),y.delete(`/redaktion/neuigkeiten/${O.post.id}`))}let dn=c(()=>O.post?O.post.status===`pending`||O.post.status_label===`Geplant`?{label:O.post.status_label,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`}:O.post.status_label===`Veröffentlicht`?{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`}:{label:O.post.status_label??`Entwurf`,class:`bg-muted text-muted-foreground`}:{label:`Neu`,class:`bg-muted text-muted-foreground`}),fn=[{key:`desktop`,label:`Desktop`,icon:ue,width:`max-w-[900px]`},{key:`tablet`,label:`Tablet`,icon:Ee,width:`max-w-[768px]`},{key:`mobile`,label:`Smartphone`,icon:Be,width:`max-w-[390px]`}],pn=c(()=>fn.find(e=>e.key===V.value).width),mn=c(()=>[{key:`post`,label:`Beitrag`},{key:`blocks`,label:`Blöcke`},{key:`block`,label:`Block`,disabled:!H.value}]);function hn(e){e.target.style.height=`auto`,e.target.style.height=`${e.target.scrollHeight}px`}return(n,s)=>(d(),o(f,null,[e(r(ce),{title:D.post?`Bearbeiten: ${r(A).title||D.post.title}`:`Neuer Beitrag`},null,8,[`title`]),a(`div`,Xe,[a(`header`,Ze,[e(r(oe),{href:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zur Redaktion`},{default:p(()=>[e(r(be),{class:`size-5`})]),_:1}),a(`div`,Qe,[a(`div`,$e,[a(`span`,et,m(r(A).title||`Neuer Beitrag`),1),a(`span`,{class:i([`hidden shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium sm:inline`,dn.value.class])},m(dn.value.label),3)]),a(`p`,tt,[r(A).processing?(d(),o(f,{key:0},[e(r(le),{class:`inline size-3 animate-spin`}),s[28]||=t(` Speichert …`,-1)],64)):tn.value?(d(),o(f,{key:1},[t(`Ungespeicherte Änderungen`)],64)):D.post?(d(),o(f,{key:2},[t(`Alle Änderungen gespeichert`)],64)):(d(),o(f,{key:3},[t(`Noch nicht gespeichert`)],64))])]),a(`div`,nt,[a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Rückgängig (Strg+Z)`,disabled:!G.value.length,onClick:Qt},[e(r(b),{class:`size-4`})],8,rt),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Wiederholen (Strg+Y)`,disabled:!K.value.length,onClick:$t},[e(r(Se),{class:`size-4`})],8,it),s[29]||=a(`span`,{class:`mx-1 h-6 w-px bg-border`},null,-1),a(`div`,at,[(d(),o(f,null,te(fn,e=>a(`button`,{key:e.key,type:`button`,class:i([`grid size-8 place-items-center rounded`,V.value===e.key?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":V.value===e.key,onClick:t=>V.value=e.key},[(d(),h(re(e.icon),{class:`size-4`}))],10,ot)),64))])]),e(r(fe),null,{default:p(()=>[e(r(he),{class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent`,"aria-label":`Weitere Aktionen`},{default:p(()=>[e(r(Ie),{class:`size-5`})]),_:1}),e(r(ve),{align:`end`,class:`w-60`},{default:p(()=>[D.post?.url?(d(),h(r(_e),{key:0,"as-child":``},{default:p(()=>[a(`a`,{href:D.post.url,target:`_blank`},[e(r(Le)),s[30]||=t(` Veröffentlichten Beitrag ansehen`,-1)],8,st)]),_:1})):_(``,!0),!P.value||M.value?(d(),h(r(_e),{key:1,disabled:r(A).processing,onSelect:s[0]||=e=>Z(`draft`)},{default:p(()=>[e(r(ze)),t(` `+m(P.value?`Offline nehmen (Entwurf)`:`Als Entwurf speichern`),1)]),_:1},8,[`disabled`])):_(``,!0),D.canDelete?(d(),o(f,{key:2},[e(r(de)),e(r(_e),{class:`text-destructive`,onSelect:un},{default:p(()=>[e(r(Ve)),s[31]||=t(` Beitrag löschen`,-1)]),_:1})],64)):_(``,!0)]),_:1})]),_:1}),P.value?_(``,!0):(d(),h(r(T),{key:0,variant:`outline`,class:`hidden sm:inline-flex`,disabled:r(A).processing,onClick:s[1]||=e=>Z(`draft`)},{default:p(()=>[e(r(ze)),s[32]||=t(` Entwurf speichern `,-1)]),_:1},8,[`disabled`])),M.value?(d(),h(r(T),{key:1,disabled:r(A).processing,onClick:s[2]||=e=>Z(`publish`)},{default:p(()=>[r(A).processing&&r(A).action===`publish`?(d(),h(r(le),{key:0,class:`animate-spin`})):F.value?(d(),h(r(je),{key:1})):(d(),h(r(C),{key:2})),a(`span`,ct,m(F.value?`Planen`:P.value?`Aktualisieren`:`Veröffentlichen`),1)]),_:1},8,[`disabled`])):(d(),h(r(T),{key:2,disabled:r(A).processing||N.value,onClick:s[3]||=e=>Z(`submit`)},{default:p(()=>[e(r(C)),s[33]||=t(),a(`span`,lt,m(N.value?`Liegt zur Freigabe vor`:`Zur Freigabe einreichen`),1)]),_:1},8,[`disabled`]))]),D.post?.review_note?(d(),o(`div`,ut,[e(r(Re),{class:`mt-0.5 size-4 shrink-0`}),a(`p`,null,[s[34]||=a(`span`,{class:`font-medium`},`Zurückgegeben mit Anmerkung:`,-1),s[35]||=t(),a(`span`,dt,m(D.post.review_note),1)])])):_(``,!0),N.value&&M.value?(d(),o(`div`,ft,[a(`p`,pt,m(D.post.author)+` hat diesen Beitrag zur Freigabe eingereicht.`,1),e(r(T),{size:`sm`,variant:`outline`,class:`bg-card`,onClick:s[4]||=e=>Q.value=!0},{default:p(()=>[e(r(b)),s[36]||=t(` Zurückgeben`,-1)]),_:1}),e(r(T),{size:`sm`,onClick:cn},{default:p(()=>[e(r(C)),t(` `+m(F.value?`Freigeben und planen`:`Freigeben`),1)]),_:1})])):_(``,!0),a(`div`,mt,[a(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:s[12]||=e=>U(null)},[a(`div`,{class:i([`mx-auto px-4 py-8 transition-[max-width] duration-300 sm:px-8`,pn.value])},[Y.value?(d(),o(`div`,{key:0,class:`group relative mb-6 overflow-hidden rounded-xl border`,onClick:s[6]||=v(()=>{},[`stop`])},[a(`img`,{src:Y.value,alt:``,class:`aspect-video w-full object-cover`},null,8,ht),a(`div`,gt,[e(r(T),{size:`sm`,variant:`outline`,class:`bg-card/95`,onClick:s[5]||=e=>X.value?.click()},{default:p(()=>[e(r(xe)),s[37]||=t(` Ändern`,-1)]),_:1}),e(r(T),{size:`icon`,variant:`outline`,class:`size-8 bg-card/95`,title:`Titelbild entfernen`,onClick:sn},{default:p(()=>[e(r(Me))]),_:1})])])):(d(),o(`button`,{key:1,type:`button`,class:`mb-6 flex aspect-[21/9] w-full flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed text-sm text-muted-foreground transition-colors hover:border-brand-300 hover:bg-brand-soft/40 hover:text-foreground`,onClick:s[7]||=v(e=>X.value?.click(),[`stop`])},[e(r(xe),{class:`size-7`}),s[38]||=a(`span`,{class:`font-medium`},`Titelbild hinzufügen`,-1),s[39]||=a(`span`,{class:`text-xs`},`Querformat, am besten 1600 × 900 Pixel`,-1)])),a(`input`,{ref_key:`coverInput`,ref:X,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`hidden`,onChange:on},null,544),r(A).errors.cover?(d(),o(`p`,_t,m(r(A).errors.cover),1)):_(``,!0),ee(a(`input`,{"onUpdate:modelValue":s[8]||=e=>r(A).title=e,class:`w-full bg-transparent text-3xl leading-tight font-semibold tracking-tight outline-none placeholder:text-muted-foreground/60 sm:text-4xl`,placeholder:`Titel des Beitrags`,maxlength:`160`,"aria-label":`Titel`,onClick:s[9]||=v(()=>{},[`stop`])},null,512),[[ie,r(A).title]]),ee(a(`textarea`,{"onUpdate:modelValue":s[10]||=e=>r(A).teaser=e,rows:`1`,maxlength:`300`,placeholder:`Kurztext – erscheint in Listen und auf der Startseite (1–2 Sätze)`,"aria-label":`Kurztext`,class:`mt-3 mb-8 w-full resize-none overflow-hidden bg-transparent text-lg leading-relaxed text-muted-foreground outline-none placeholder:text-muted-foreground/50`,onInput:hn,onFocus:hn,onClick:s[11]||=v(()=>{},[`stop`])},null,544),[[ie,r(A).teaser]]),a(`div`,vt,[e(Ae,{item:j.content,root:``},null,8,[`item`])]),j.content.blocks.length?_(``,!0):(d(),o(`p`,yt,` Rechts unter „Blöcke“ Text, Bilder, Galerien und mehr hinzufügen. `))],2)]),a(`aside`,bt,[a(`div`,xt,[(d(!0),o(f,null,te(mn.value,e=>(d(),o(`button`,{key:e.key,type:`button`,role:`tab`,class:i([`relative px-3 py-3 text-sm font-medium disabled:opacity-40`,z.value===e.key?`text-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-selected":z.value===e.key,disabled:e.disabled,onClick:t=>z.value=e.key},[t(m(e.label)+` `,1),z.value===e.key?(d(),o(`span`,Ct)):_(``,!0)],10,St))),128))]),a(`div`,wt,[z.value===`block`&&H.value?(d(),h(De,{key:H.value.id,block:H.value},null,8,[`block`])):z.value===`blocks`?(d(),o(f,{key:1},[s[40]||=a(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt den Block unter dem ausgewählten ein. Blöcke lassen sich auch an jede Stelle ziehen.`,-1),e(ke,{onPick:Rt})],64)):(d(),o(`div`,Tt,[e(w,{id:`category`,label:`Kategorie`,error:r(A).errors.category_id},{default:p(()=>[e(E,{id:`category`,modelValue:r(A).category_id,"onUpdate:modelValue":s[13]||=e=>r(A).category_id=e,options:It.value,placeholder:D.canPublishWithoutCategory?`Ohne Kategorie`:`Kategorie wählen …`},null,8,[`modelValue`,`options`,`placeholder`])]),_:1},8,[`error`]),M.value?(d(),o(f,{key:0},[e(w,{id:`published_at`,label:`Veröffentlichen am`,error:r(A).errors.published_at,hint:`Leer = sofort. Ein Datum in der Zukunft plant den Beitrag.`},{default:p(()=>[e(r(Ue),{id:`published_at`,modelValue:r(A).published_at,"onUpdate:modelValue":s[14]||=e=>r(A).published_at=e,type:`datetime-local`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(`label`,Et,[s[41]||=t(` Auf der Startseite hervorheben `,-1),e(r(Fe),{modelValue:r(A).is_featured,"onUpdate:modelValue":s[15]||=e=>r(A).is_featured=e},null,8,[`modelValue`])]),s[42]||=a(`p`,{class:`-mt-2 text-xs text-muted-foreground`},`Hervorgehobene Beiträge mit Titelbild erscheinen groß im Slider.`,-1)],64)):(d(),o(`p`,Dt,` In dieser Kategorie veröffentlicht die Redaktion. Reichen Sie den Beitrag zur Freigabe ein, wenn er fertig ist. `)),D.forms.length?(d(),h(w,{key:2,id:`form_id`,label:`Formular unter dem Beitrag`,error:r(A).errors.form_id,hint:`Z. B. Anmeldung oder Rückmeldung zum Beitrag.`},{default:p(()=>[e(E,{id:`form_id`,modelValue:r(A).form_id,"onUpdate:modelValue":s[16]||=e=>r(A).form_id=e,options:D.forms,placeholder:`– kein Formular –`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])):_(``,!0),a(`div`,Ot,[s[44]||=a(`span`,{class:`text-[13px] font-medium`},`Titelbild`,-1),a(`div`,kt,[e(r(T),{variant:`outline`,size:`sm`,onClick:s[17]||=e=>X.value?.click()},{default:p(()=>[e(r(xe)),t(` `+m(Y.value?`Anderes Bild`:`Bild hochladen`),1)]),_:1}),Y.value?(d(),h(r(T),{key:0,variant:`ghost`,size:`sm`,onClick:sn},{default:p(()=>[e(r(Me)),s[43]||=t(` Entfernen`,-1)]),_:1})):_(``,!0)]),s[45]||=a(`p`,{class:`text-xs text-muted-foreground`},`Wird auf 16:9 zugeschnitten.`,-1)])]))])])]),a(`div`,At,[e(r(T),{variant:`outline`,class:`bg-card shadow-md`,onClick:s[18]||=e=>{z.value=`post`,B.value=!0}},{default:p(()=>[...s[46]||=[t(`Beitrag`,-1)]]),_:1}),e(r(T),{variant:`outline`,class:`bg-card shadow-md`,onClick:s[19]||=e=>{z.value=`blocks`,B.value=!0}},{default:p(()=>[...s[47]||=[t(`Block hinzufügen`,-1)]]),_:1}),H.value?(d(),h(r(T),{key:0,class:`shadow-md`,onClick:s[20]||=e=>{z.value=`block`,B.value=!0}},{default:p(()=>[...s[48]||=[t(`Einstellungen`,-1)]]),_:1})):_(``,!0)]),e(r(me),{open:B.value,"onUpdate:open":s[24]||=e=>B.value=e},{default:p(()=>[e(r(pe),{side:`right`,class:`w-[340px] overflow-y-auto p-4 sm:max-w-[340px]`},{default:p(()=>[e(r(ye),{class:`p-0`},{default:p(()=>[e(r(ge),null,{default:p(()=>[t(m(z.value===`block`?`Block`:z.value===`blocks`?`Blöcke`:`Beitrag`),1)]),_:1})]),_:1}),z.value===`block`&&H.value?(d(),h(De,{key:H.value.id,block:H.value},null,8,[`block`])):z.value===`blocks`?(d(),h(ke,{key:1,onPick:Rt})):(d(),o(`div`,jt,[e(w,{id:`category-m`,label:`Kategorie`},{default:p(()=>[e(E,{id:`category-m`,modelValue:r(A).category_id,"onUpdate:modelValue":s[21]||=e=>r(A).category_id=e,options:It.value,placeholder:D.canPublishWithoutCategory?`Ohne Kategorie`:`Kategorie wählen …`},null,8,[`modelValue`,`options`,`placeholder`])]),_:1}),M.value?(d(),h(w,{key:0,id:`published_at-m`,label:`Veröffentlichen am`},{default:p(()=>[e(r(Ue),{id:`published_at-m`,modelValue:r(A).published_at,"onUpdate:modelValue":s[22]||=e=>r(A).published_at=e,type:`datetime-local`},null,8,[`modelValue`])]),_:1})):_(``,!0),M.value?(d(),o(`label`,Mt,[s[49]||=t(`Auf der Startseite hervorheben `,-1),e(r(Fe),{modelValue:r(A).is_featured,"onUpdate:modelValue":s[23]||=e=>r(A).is_featured=e},null,8,[`modelValue`])])):_(``,!0)]))]),_:1})]),_:1},8,[`open`]),e(r(Ge),{open:Q.value,"onUpdate:open":s[27]||=e=>Q.value=e},{default:p(()=>[e(r(qe),{class:`sm:max-w-md`},{default:p(()=>[e(r(Ye),null,{default:p(()=>[e(r(Je),null,{default:p(()=>[...s[50]||=[t(`Beitrag zurückgeben`,-1)]]),_:1}),e(r(He),null,{default:p(()=>[t(m(D.post?.author)+` wird benachrichtigt und sieht Ihre Anmerkung.`,1)]),_:1})]),_:1}),e(w,{id:`note`,label:`Was soll geändert werden?`,error:r($).errors.note},{default:p(()=>[e(r(We),{id:`note`,modelValue:r($).note,"onUpdate:modelValue":s[25]||=e=>r($).note=e,rows:`4`,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Ke),null,{default:p(()=>[e(r(T),{variant:`outline`,onClick:s[26]||=e=>Q.value=!1},{default:p(()=>[...s[51]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(T),{disabled:r($).processing||!r($).note.trim(),onClick:ln},{default:p(()=>[e(r(b)),s[52]||=t(` Zurückgeben`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`])]),e(r(Ne),{position:`bottom-left`})],64))}};export{D as default}; \ No newline at end of file +import{D as e,E as t,Ht as n,On as r,Yt as ee,Zn as i,_ as a,b as o,bt as te,ct as s,g as c,gn as l,gt as u,it as ne,mt as d,o as f,qt as p,tr as m,v as h,vn as g,wt as re,y as _}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as v,x as ie}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as y,i as ae,n as oe,r as se,t as ce}from"./app-Cw5f57va.js";import{O as le}from"./dist-DtGNiYlK.js";import{L as ue,a as de,c as fe,d as pe,f as me,i as he,k as b,l as ge,o as _e,s as ve,u as ye}from"./AppIcon-BiVN_tuL.js";import{t as be}from"./arrow-left-BMImfTf2.js";import{i as xe,r as Se}from"./RichTextEditor-CA2m8pIz.js";import{a as Ce,c as we,i as Te,l as Ee,n as De,o as Oe,r as ke,s as x,t as Ae}from"./EditorBlockList-DvVDy56W.js";import{t as je}from"./calendar-clock-8H2IkjP5.js";import{_ as Me,a as Ne,o as S,t as Pe}from"./http-DmyDwIce.js";import{t as Fe}from"./Switch-CWN1_5O7.js";import{t as Ie}from"./ellipsis-vertical-B9wuHo-w.js";import{t as Le}from"./eye-CFNQcvaV.js";import{t as Re}from"./message-square-warning-BFfa_vqd.js";import{t as ze}from"./save-aFVYiCIj.js";import{t as C}from"./send-6fmdiUe6.js";import{t as Be}from"./smartphone-BE2l7T-2.js";import{t as Ve}from"./trash-DUqnVIgb.js";import{t as He}from"./DialogDescription-9G5-5WG4.js";import{t as w}from"./FormField-BoFAO4pm.js";import{t as T}from"./button-ZHC5mKey.js";import{t as E}from"./NativeSelect-BGasRaNs.js";import{t as Ue}from"./Input-FGSb2-yK.js";import{t as We}from"./Textarea-DEFXqC2w.js";import{i as Ge,n as Ke,r as qe,t as Je}from"./dialog-DiN2bNwR.js";import{t as Ye}from"./DialogHeader-DuqiL3ry.js";var Xe={class:`flex h-dvh flex-col bg-background`},Ze={class:`z-30 flex h-14 shrink-0 items-center gap-2 border-b bg-card px-2 sm:px-3`},Qe={class:`min-w-0 flex-1`},$e={class:`flex items-center gap-2`},et={class:`truncate text-sm font-semibold`},tt={class:`truncate text-xs text-muted-foreground`,"aria-live":`polite`},nt={class:`hidden items-center gap-0.5 md:flex`},rt=[`disabled`],it=[`disabled`],at={class:`flex rounded-md border p-0.5`,role:`group`,"aria-label":`Vorschau`},ot=[`title`,`aria-pressed`,`onClick`],st=[`href`],ct={class:`hidden sm:inline`},lt={class:`hidden sm:inline`},ut={key:0,class:`flex gap-3 border-b border-amber-200 bg-amber-50 px-4 py-2.5 text-sm text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`},dt={class:`whitespace-pre-line`},ft={key:1,class:`flex flex-wrap items-center gap-3 border-b bg-brand-soft px-4 py-2.5 text-sm`},pt={class:`flex-1`},mt={class:`flex min-h-0 flex-1`},ht=[`src`],gt={class:`absolute top-3 right-3 flex gap-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100`},_t={key:2,class:`-mt-4 mb-4 text-[13px] text-destructive`},vt={class:`@container`},yt={key:3,class:`mt-4 text-center text-sm text-muted-foreground`},bt={class:`hidden w-[340px] shrink-0 flex-col border-l bg-card lg:flex`},xt={class:`flex shrink-0 border-b px-2`,role:`tablist`},St=[`aria-selected`,`disabled`,`onClick`],Ct={key:0,class:`absolute inset-x-2 bottom-0 h-[3px] rounded-t-full bg-brand`},wt={class:`min-h-0 flex-1 overflow-y-auto p-4`},Tt={key:2,class:`grid gap-4`},Et={class:`flex items-center justify-between gap-3 text-[13px] font-medium`},Dt={key:1,class:`rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground`},Ot={class:`grid gap-2 border-t pt-4`},kt={class:`flex gap-2`},At={class:`fixed right-4 bottom-4 z-30 flex gap-2 lg:hidden`},jt={key:2,class:`grid gap-4`},Mt={key:1,class:`flex items-center justify-between gap-3 text-[13px] font-medium`},D={__name:`Editor`,props:{post:{type:Object,default:null},content:{type:Object,default:()=>({blocks:[]})},categories:{type:Array,required:!0},canPublishWithoutCategory:{type:Boolean,default:!1},canDelete:{type:Boolean,default:!1},forms:{type:Array,default:()=>[]},blockTypes:{type:Array,required:!0},blockGroups:{type:Object,required:!0},audienceOptions:{type:Object,required:!0},uploadsUrl:{type:String,required:!0}},setup(D){let O=D,Nt=ae(),k=Object.fromEntries(O.blockTypes.map(e=>[e.key,e]));function Pt(e){if(!e)return``;let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}let A=se({title:O.post?.title??``,teaser:O.post?.teaser??``,category_id:O.post?.category_id??(O.categories.length===1?O.categories[0].id:null),cover:null,remove_cover:!1,is_featured:O.post?.is_featured??!1,published_at:Pt(O.post?.published_at),form_id:O.post?.form_id??null,action:`draft`}),j=l({content:Te(O.content??{blocks:[]})}),Ft=c(()=>O.categories.find(e=>e.id===Number(A.category_id))),M=c(()=>Ft.value?Ft.value.can_publish:O.canPublishWithoutCategory),N=c(()=>O.post?.status===`pending`),P=c(()=>O.post?.status===`published`),It=c(()=>O.categories.map(e=>({value:e.id,label:e.name}))),F=c(()=>A.published_at&&new Date(A.published_at)>new Date),I=g(null),L=g(null),R=l({}),Lt=g(!1),z=g(`post`),B=g(!1),V=g(`desktop`),H=c(()=>I.value?x(j.content.blocks,I.value)?.block??null:null);n(I,e=>{z.value=e?`block`:z.value===`block`?`blocks`:z.value});function U(e){I.value=e??null}function W(e,t,n){let r=Ce(n);e.splice(t,0,r),U(r.id)}function Rt(e){let t=H.value?x(j.content.blocks,H.value.id):null;t?W(t.list,t.index+1,e):W(j.content.blocks,j.content.blocks.length,e),B.value=!1,requestAnimationFrame(()=>document.querySelector(`[data-block-id="${I.value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`}))}function zt(e){let t=x(j.content.blocks,e);t&&(t.list.splice(t.index,1),I.value===e&&U(null))}function Bt(e,t){let n=x(j.content.blocks,e),r=n?n.index+t:-1;n&&r>=0&&rt.items?.includes(e)||x(e.blocks,t.id))}async function Ut(e){let t=new FormData;t.append(`image`,e);try{return await Pe.post(`/redaktion/neuigkeiten/bilder`,t)}catch(e){throw S.error(e.fieldErrors?.image??e.message),e}}async function Wt(){throw S.error(`Dateien zum Herunterladen gehören in den Bereich „Downloads“ – dort hochladen und hier mit dem Downloads-Block verlinken.`),Error(`not supported`)}u(`pagebuilder:editor`,{types:k,groups:O.blockGroups,selectedId:I,hoveredId:L,previews:R,readOnly:Lt,files:g([]),peopleCache:l({}),audienceOptions:O.audienceOptions,select:U,insert:W,remove:zt,move:Bt,duplicate:Vt,containsActive:Ht,uploadImage:Ut,uploadFile:Wt,imageUrl:e=>`${O.uploadsUrl}/${e}`}),u(`pagebuilder:list`,Ae),u(`pagebuilder:types`,k),u(`pagebuilder:editing`,c(()=>!0));let Gt={},Kt;function qt(){let e=[];we(j.content.blocks,t=>{if(!k[t.type]?.dynamic)return;let n=JSON.stringify(t.data);Gt[t.id]!==n&&(Gt[t.id]=n,e.push({id:t.id,type:t.type,data:t.data}))}),e.length&&Pe.post(`/redaktion/neuigkeiten/vorschau`,{blocks:e.slice(0,100)}).then(e=>Object.assign(R,e.props)).catch(()=>{})}let G=g([]),K=g([]),q=JSON.stringify(j.content),Jt=!1,Yt;function Xt(){let e=JSON.stringify(j.content);e!==q&&(G.value=[...G.value.slice(-49),q],K.value=[],q=e)}function Zt(e){Jt=!0,j.content=JSON.parse(e),q=e,I.value&&!x(j.content.blocks,I.value)&&U(null),setTimeout(()=>Jt=!1)}function Qt(){Xt(),G.value.length&&(K.value=[...K.value,JSON.stringify(j.content)],Zt(G.value.at(-1)),G.value=G.value.slice(0,-1))}function $t(){K.value.length&&(G.value=[...G.value,JSON.stringify(j.content)],Zt(K.value.at(-1)),K.value=K.value.slice(0,-1))}let en=JSON.stringify(j.content),J=g(!1),tn=c(()=>J.value||A.isDirty);n(()=>j.content,()=>{J.value=JSON.stringify(j.content)!==en,clearTimeout(Kt),Kt=setTimeout(qt,500),Jt||(clearTimeout(Yt),Yt=setTimeout(Xt,700))},{deep:!0});function nn(e){tn.value&&!A.processing&&(e.preventDefault(),e.returnValue=``)}let rn=y.on(`before`,e=>{tn.value&&!A.processing&&e.detail.visit.method===`get`&&!window.confirm(`Ungespeicherte Änderungen verwerfen?`)&&e.preventDefault()});function an(e){let t=e.target.closest?.(`input, textarea, select, [contenteditable="true"]`);(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`?(e.preventDefault(),Z(P.value&&M.value?`publish`:P.value?`submit`:`draft`)):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`z`?(e.preventDefault(),e.shiftKey?$t():Qt()):!t&&(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`y`?(e.preventDefault(),$t()):e.key===`Escape`&&!t&&U(null)}s(()=>{qt(),window.addEventListener(`keydown`,an),window.addEventListener(`beforeunload`,nn)}),ne(()=>{window.removeEventListener(`keydown`,an),window.removeEventListener(`beforeunload`,nn),rn()});let Y=g(O.post?.cover_url??null),X=g(null);function on(e){let t=e.target.files?.[0];e.target.value=``,t&&(A.cover=t,A.remove_cover=!1,Y.value=URL.createObjectURL(t))}function sn(){A.cover=null,A.remove_cover=!0,Y.value=null}function Z(e){if(!A.title.trim()){S.error(`Bitte zuerst einen Titel eingeben.`);return}A.action=e,A.transform(e=>({...e,content:JSON.stringify(j.content),published_at:e.published_at?new Date(e.published_at).toISOString():null,category_id:e.category_id?Number(e.category_id):null,form_id:e.form_id?Number(e.form_id):``,...O.post?{_method:`put`}:{}})).post(O.post?`/redaktion/neuigkeiten/${O.post.id}`:`/redaktion/neuigkeiten`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{en=JSON.stringify(j.content),J.value=!1,A.cover=null,A.defaults()},onError:e=>S.error(e.action??e.title??e.category_id??e.content??Object.values(e)[0]??`Speichern fehlgeschlagen.`)})}n(()=>Nt.props.flash.status,e=>e&&S.success(e),{immediate:!0});let Q=g(!1),$=se({note:``});function cn(){y.post(`/redaktion/neuigkeiten/${O.post.id}/freigeben`,{published_at:A.published_at?new Date(A.published_at).toISOString():null})}function ln(){$.post(`/redaktion/neuigkeiten/${O.post.id}/zurueckgeben`,{onSuccess:()=>Q.value=!1})}function un(){window.confirm(`Beitrag endgültig löschen?`)&&(J.value=!1,A.defaults(),y.delete(`/redaktion/neuigkeiten/${O.post.id}`))}let dn=c(()=>O.post?O.post.status===`pending`||O.post.status_label===`Geplant`?{label:O.post.status_label,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`}:O.post.status_label===`Veröffentlicht`?{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`}:{label:O.post.status_label??`Entwurf`,class:`bg-muted text-muted-foreground`}:{label:`Neu`,class:`bg-muted text-muted-foreground`}),fn=[{key:`desktop`,label:`Desktop`,icon:ue,width:`max-w-[900px]`},{key:`tablet`,label:`Tablet`,icon:Ee,width:`max-w-[768px]`},{key:`mobile`,label:`Smartphone`,icon:Be,width:`max-w-[390px]`}],pn=c(()=>fn.find(e=>e.key===V.value).width),mn=c(()=>[{key:`post`,label:`Beitrag`},{key:`blocks`,label:`Blöcke`},{key:`block`,label:`Block`,disabled:!H.value}]);function hn(e){e.target.style.height=`auto`,e.target.style.height=`${e.target.scrollHeight}px`}return(n,s)=>(d(),o(f,null,[e(r(ce),{title:D.post?`Bearbeiten: ${r(A).title||D.post.title}`:`Neuer Beitrag`},null,8,[`title`]),a(`div`,Xe,[a(`header`,Ze,[e(r(oe),{href:`/redaktion`,class:`grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground`,title:`Zur Redaktion`},{default:p(()=>[e(r(be),{class:`size-5`})]),_:1}),a(`div`,Qe,[a(`div`,$e,[a(`span`,et,m(r(A).title||`Neuer Beitrag`),1),a(`span`,{class:i([`hidden shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium sm:inline`,dn.value.class])},m(dn.value.label),3)]),a(`p`,tt,[r(A).processing?(d(),o(f,{key:0},[e(r(le),{class:`inline size-3 animate-spin`}),s[28]||=t(` Speichert …`,-1)],64)):tn.value?(d(),o(f,{key:1},[t(`Ungespeicherte Änderungen`)],64)):D.post?(d(),o(f,{key:2},[t(`Alle Änderungen gespeichert`)],64)):(d(),o(f,{key:3},[t(`Noch nicht gespeichert`)],64))])]),a(`div`,nt,[a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Rückgängig (Strg+Z)`,disabled:!G.value.length,onClick:Qt},[e(r(b),{class:`size-4`})],8,rt),a(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent disabled:opacity-40`,title:`Wiederholen (Strg+Y)`,disabled:!K.value.length,onClick:$t},[e(r(Se),{class:`size-4`})],8,it),s[29]||=a(`span`,{class:`mx-1 h-6 w-px bg-border`},null,-1),a(`div`,at,[(d(),o(f,null,te(fn,e=>a(`button`,{key:e.key,type:`button`,class:i([`grid size-8 place-items-center rounded`,V.value===e.key?`bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":V.value===e.key,onClick:t=>V.value=e.key},[(d(),h(re(e.icon),{class:`size-4`}))],10,ot)),64))])]),e(r(fe),null,{default:p(()=>[e(r(he),{class:`grid size-9 place-items-center rounded-md text-muted-foreground hover:bg-accent`,"aria-label":`Weitere Aktionen`},{default:p(()=>[e(r(Ie),{class:`size-5`})]),_:1}),e(r(ve),{align:`end`,class:`w-60`},{default:p(()=>[D.post?.url?(d(),h(r(_e),{key:0,"as-child":``},{default:p(()=>[a(`a`,{href:D.post.url,target:`_blank`},[e(r(Le)),s[30]||=t(` Veröffentlichten Beitrag ansehen`,-1)],8,st)]),_:1})):_(``,!0),!P.value||M.value?(d(),h(r(_e),{key:1,disabled:r(A).processing,onSelect:s[0]||=e=>Z(`draft`)},{default:p(()=>[e(r(ze)),t(` `+m(P.value?`Offline nehmen (Entwurf)`:`Als Entwurf speichern`),1)]),_:1},8,[`disabled`])):_(``,!0),D.canDelete?(d(),o(f,{key:2},[e(r(de)),e(r(_e),{class:`text-destructive`,onSelect:un},{default:p(()=>[e(r(Ve)),s[31]||=t(` Beitrag löschen`,-1)]),_:1})],64)):_(``,!0)]),_:1})]),_:1}),P.value?_(``,!0):(d(),h(r(T),{key:0,variant:`outline`,class:`hidden sm:inline-flex`,disabled:r(A).processing,onClick:s[1]||=e=>Z(`draft`)},{default:p(()=>[e(r(ze)),s[32]||=t(` Entwurf speichern `,-1)]),_:1},8,[`disabled`])),M.value?(d(),h(r(T),{key:1,disabled:r(A).processing,onClick:s[2]||=e=>Z(`publish`)},{default:p(()=>[r(A).processing&&r(A).action===`publish`?(d(),h(r(le),{key:0,class:`animate-spin`})):F.value?(d(),h(r(je),{key:1})):(d(),h(r(C),{key:2})),a(`span`,ct,m(F.value?`Planen`:P.value?`Aktualisieren`:`Veröffentlichen`),1)]),_:1},8,[`disabled`])):(d(),h(r(T),{key:2,disabled:r(A).processing||N.value,onClick:s[3]||=e=>Z(`submit`)},{default:p(()=>[e(r(C)),s[33]||=t(),a(`span`,lt,m(N.value?`Liegt zur Freigabe vor`:`Zur Freigabe einreichen`),1)]),_:1},8,[`disabled`]))]),D.post?.review_note?(d(),o(`div`,ut,[e(r(Re),{class:`mt-0.5 size-4 shrink-0`}),a(`p`,null,[s[34]||=a(`span`,{class:`font-medium`},`Zurückgegeben mit Anmerkung:`,-1),s[35]||=t(),a(`span`,dt,m(D.post.review_note),1)])])):_(``,!0),N.value&&M.value?(d(),o(`div`,ft,[a(`p`,pt,m(D.post.author)+` hat diesen Beitrag zur Freigabe eingereicht.`,1),e(r(T),{size:`sm`,variant:`outline`,class:`bg-card`,onClick:s[4]||=e=>Q.value=!0},{default:p(()=>[e(r(b)),s[36]||=t(` Zurückgeben`,-1)]),_:1}),e(r(T),{size:`sm`,onClick:cn},{default:p(()=>[e(r(C)),t(` `+m(F.value?`Freigeben und planen`:`Freigeben`),1)]),_:1})])):_(``,!0),a(`div`,mt,[a(`main`,{class:`min-w-0 flex-1 overflow-y-auto`,onClick:s[12]||=e=>U(null)},[a(`div`,{class:i([`mx-auto px-4 py-8 transition-[max-width] duration-300 sm:px-8`,pn.value])},[Y.value?(d(),o(`div`,{key:0,class:`group relative mb-6 overflow-hidden rounded-xl border`,onClick:s[6]||=v(()=>{},[`stop`])},[a(`img`,{src:Y.value,alt:``,class:`aspect-video w-full object-cover`},null,8,ht),a(`div`,gt,[e(r(T),{size:`sm`,variant:`outline`,class:`bg-card/95`,onClick:s[5]||=e=>X.value?.click()},{default:p(()=>[e(r(xe)),s[37]||=t(` Ändern`,-1)]),_:1}),e(r(T),{size:`icon`,variant:`outline`,class:`size-8 bg-card/95`,title:`Titelbild entfernen`,onClick:sn},{default:p(()=>[e(r(Me))]),_:1})])])):(d(),o(`button`,{key:1,type:`button`,class:`mb-6 flex aspect-[21/9] w-full flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed text-sm text-muted-foreground transition-colors hover:border-brand-300 hover:bg-brand-soft/40 hover:text-foreground`,onClick:s[7]||=v(e=>X.value?.click(),[`stop`])},[e(r(xe),{class:`size-7`}),s[38]||=a(`span`,{class:`font-medium`},`Titelbild hinzufügen`,-1),s[39]||=a(`span`,{class:`text-xs`},`Querformat, am besten 1600 × 900 Pixel`,-1)])),a(`input`,{ref_key:`coverInput`,ref:X,type:`file`,accept:`image/jpeg,image/png,image/webp`,class:`hidden`,onChange:on},null,544),r(A).errors.cover?(d(),o(`p`,_t,m(r(A).errors.cover),1)):_(``,!0),ee(a(`input`,{"onUpdate:modelValue":s[8]||=e=>r(A).title=e,class:`w-full bg-transparent text-3xl leading-tight font-semibold tracking-tight outline-none placeholder:text-muted-foreground/60 sm:text-4xl`,placeholder:`Titel des Beitrags`,maxlength:`160`,"aria-label":`Titel`,onClick:s[9]||=v(()=>{},[`stop`])},null,512),[[ie,r(A).title]]),ee(a(`textarea`,{"onUpdate:modelValue":s[10]||=e=>r(A).teaser=e,rows:`1`,maxlength:`300`,placeholder:`Kurztext – erscheint in Listen und auf der Startseite (1–2 Sätze)`,"aria-label":`Kurztext`,class:`mt-3 mb-8 w-full resize-none overflow-hidden bg-transparent text-lg leading-relaxed text-muted-foreground outline-none placeholder:text-muted-foreground/50`,onInput:hn,onFocus:hn,onClick:s[11]||=v(()=>{},[`stop`])},null,544),[[ie,r(A).teaser]]),a(`div`,vt,[e(Ae,{item:j.content,root:``},null,8,[`item`])]),j.content.blocks.length?_(``,!0):(d(),o(`p`,yt,` Rechts unter „Blöcke“ Text, Bilder, Galerien und mehr hinzufügen. `))],2)]),a(`aside`,bt,[a(`div`,xt,[(d(!0),o(f,null,te(mn.value,e=>(d(),o(`button`,{key:e.key,type:`button`,role:`tab`,class:i([`relative px-3 py-3 text-sm font-medium disabled:opacity-40`,z.value===e.key?`text-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-selected":z.value===e.key,disabled:e.disabled,onClick:t=>z.value=e.key},[t(m(e.label)+` `,1),z.value===e.key?(d(),o(`span`,Ct)):_(``,!0)],10,St))),128))]),a(`div`,wt,[z.value===`block`&&H.value?(d(),h(De,{key:H.value.id,block:H.value},null,8,[`block`])):z.value===`blocks`?(d(),o(f,{key:1},[s[40]||=a(`p`,{class:`mb-4 text-xs text-muted-foreground`},`Klicken fügt den Block unter dem ausgewählten ein. Blöcke lassen sich auch an jede Stelle ziehen.`,-1),e(ke,{onPick:Rt})],64)):(d(),o(`div`,Tt,[e(w,{id:`category`,label:`Kategorie`,error:r(A).errors.category_id},{default:p(()=>[e(E,{id:`category`,modelValue:r(A).category_id,"onUpdate:modelValue":s[13]||=e=>r(A).category_id=e,options:It.value,placeholder:D.canPublishWithoutCategory?`Ohne Kategorie`:`Kategorie wählen …`},null,8,[`modelValue`,`options`,`placeholder`])]),_:1},8,[`error`]),M.value?(d(),o(f,{key:0},[e(w,{id:`published_at`,label:`Veröffentlichen am`,error:r(A).errors.published_at,hint:`Leer = sofort. Ein Datum in der Zukunft plant den Beitrag.`},{default:p(()=>[e(r(Ue),{id:`published_at`,modelValue:r(A).published_at,"onUpdate:modelValue":s[14]||=e=>r(A).published_at=e,type:`datetime-local`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(`label`,Et,[s[41]||=t(` Auf der Startseite hervorheben `,-1),e(r(Fe),{modelValue:r(A).is_featured,"onUpdate:modelValue":s[15]||=e=>r(A).is_featured=e},null,8,[`modelValue`])]),s[42]||=a(`p`,{class:`-mt-2 text-xs text-muted-foreground`},`Hervorgehobene Beiträge mit Titelbild erscheinen groß im Slider.`,-1)],64)):(d(),o(`p`,Dt,` In dieser Kategorie veröffentlicht die Redaktion. Reichen Sie den Beitrag zur Freigabe ein, wenn er fertig ist. `)),D.forms.length?(d(),h(w,{key:2,id:`form_id`,label:`Formular unter dem Beitrag`,error:r(A).errors.form_id,hint:`Z. B. Anmeldung oder Rückmeldung zum Beitrag.`},{default:p(()=>[e(E,{id:`form_id`,modelValue:r(A).form_id,"onUpdate:modelValue":s[16]||=e=>r(A).form_id=e,options:D.forms,placeholder:`– kein Formular –`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])):_(``,!0),a(`div`,Ot,[s[44]||=a(`span`,{class:`text-[13px] font-medium`},`Titelbild`,-1),a(`div`,kt,[e(r(T),{variant:`outline`,size:`sm`,onClick:s[17]||=e=>X.value?.click()},{default:p(()=>[e(r(xe)),t(` `+m(Y.value?`Anderes Bild`:`Bild hochladen`),1)]),_:1}),Y.value?(d(),h(r(T),{key:0,variant:`ghost`,size:`sm`,onClick:sn},{default:p(()=>[e(r(Me)),s[43]||=t(` Entfernen`,-1)]),_:1})):_(``,!0)]),s[45]||=a(`p`,{class:`text-xs text-muted-foreground`},`Wird auf 16:9 zugeschnitten.`,-1)])]))])])]),a(`div`,At,[e(r(T),{variant:`outline`,class:`bg-card shadow-md`,onClick:s[18]||=e=>{z.value=`post`,B.value=!0}},{default:p(()=>[...s[46]||=[t(`Beitrag`,-1)]]),_:1}),e(r(T),{variant:`outline`,class:`bg-card shadow-md`,onClick:s[19]||=e=>{z.value=`blocks`,B.value=!0}},{default:p(()=>[...s[47]||=[t(`Block hinzufügen`,-1)]]),_:1}),H.value?(d(),h(r(T),{key:0,class:`shadow-md`,onClick:s[20]||=e=>{z.value=`block`,B.value=!0}},{default:p(()=>[...s[48]||=[t(`Einstellungen`,-1)]]),_:1})):_(``,!0)]),e(r(me),{open:B.value,"onUpdate:open":s[24]||=e=>B.value=e},{default:p(()=>[e(r(pe),{side:`right`,class:`w-[340px] overflow-y-auto p-4 sm:max-w-[340px]`},{default:p(()=>[e(r(ye),{class:`p-0`},{default:p(()=>[e(r(ge),null,{default:p(()=>[t(m(z.value===`block`?`Block`:z.value===`blocks`?`Blöcke`:`Beitrag`),1)]),_:1})]),_:1}),z.value===`block`&&H.value?(d(),h(De,{key:H.value.id,block:H.value},null,8,[`block`])):z.value===`blocks`?(d(),h(ke,{key:1,onPick:Rt})):(d(),o(`div`,jt,[e(w,{id:`category-m`,label:`Kategorie`},{default:p(()=>[e(E,{id:`category-m`,modelValue:r(A).category_id,"onUpdate:modelValue":s[21]||=e=>r(A).category_id=e,options:It.value,placeholder:D.canPublishWithoutCategory?`Ohne Kategorie`:`Kategorie wählen …`},null,8,[`modelValue`,`options`,`placeholder`])]),_:1}),M.value?(d(),h(w,{key:0,id:`published_at-m`,label:`Veröffentlichen am`},{default:p(()=>[e(r(Ue),{id:`published_at-m`,modelValue:r(A).published_at,"onUpdate:modelValue":s[22]||=e=>r(A).published_at=e,type:`datetime-local`},null,8,[`modelValue`])]),_:1})):_(``,!0),M.value?(d(),o(`label`,Mt,[s[49]||=t(`Auf der Startseite hervorheben `,-1),e(r(Fe),{modelValue:r(A).is_featured,"onUpdate:modelValue":s[23]||=e=>r(A).is_featured=e},null,8,[`modelValue`])])):_(``,!0)]))]),_:1})]),_:1},8,[`open`]),e(r(Ge),{open:Q.value,"onUpdate:open":s[27]||=e=>Q.value=e},{default:p(()=>[e(r(qe),{class:`sm:max-w-md`},{default:p(()=>[e(r(Ye),null,{default:p(()=>[e(r(Je),null,{default:p(()=>[...s[50]||=[t(`Beitrag zurückgeben`,-1)]]),_:1}),e(r(He),null,{default:p(()=>[t(m(D.post?.author)+` wird benachrichtigt und sieht Ihre Anmerkung.`,1)]),_:1})]),_:1}),e(w,{id:`note`,label:`Was soll geändert werden?`,error:r($).errors.note},{default:p(()=>[e(r(We),{id:`note`,modelValue:r($).note,"onUpdate:modelValue":s[25]||=e=>r($).note=e,rows:`4`,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Ke),null,{default:p(()=>[e(r(T),{variant:`outline`,onClick:s[26]||=e=>Q.value=!1},{default:p(()=>[...s[51]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(T),{disabled:r($).processing||!r($).note.trim(),onClick:ln},{default:p(()=>[e(r(b)),s[52]||=t(` Zurückgeben`,-1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`open`])]),e(r(Ne),{position:`bottom-left`})],64))}};export{D as default}; \ No newline at end of file diff --git a/public/build/assets/EditorBlockList-eovq9s83.js b/public/build/assets/EditorBlockList-DvVDy56W.js similarity index 99% rename from public/build/assets/EditorBlockList-eovq9s83.js rename to public/build/assets/EditorBlockList-DvVDy56W.js index a64ce10f..6b726917 100644 --- a/public/build/assets/EditorBlockList-eovq9s83.js +++ b/public/build/assets/EditorBlockList-DvVDy56W.js @@ -1 +1 @@ -import{$ as e,D as t,E as n,Ft as r,Ht as i,J as a,On as o,St as s,Zn as c,_ as l,b as u,bt as d,g as f,mt as p,o as m,qt as h,tr as g,v as _,vn as v,wt as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as x}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{O as S,k as C}from"./dist-DtGNiYlK.js";import{$ as w,F as T,G as E,N as ee,Q as D,Y as te,Z as O,n as k,p as ne,r as re,t as ie}from"./AppIcon-D91Q4hzR.js";import{n as A,t as j}from"./arrow-up-Djq_2Npz.js";import{i as ae,n as oe}from"./RichTextEditor-CMfIpwZS.js";import{C as M,_ as N,b as P,i as F,n as I,o as se,r as ce,t as L}from"./http-DmyDwIce.js";import{t as R}from"./chevron-up-DJvyZPom.js";import{a as z,i as le,n as B,o as ue,r as de,t as fe}from"./Switch-CWN1_5O7.js";import{t as V}from"./eye-off-myis3scV.js";import{t as pe}from"./folder-tree-ZY-sbGXb.js";import{t as me}from"./message-square-warning-BFfa_vqd.js";import{t as H}from"./minus-CmsbcqBG.js";import{t as U}from"./play-GbhjcPFH.js";import{t as W}from"./plus-B_ij2ng2.js";import{t as G}from"./quote-CAgJDpoy.js";import{t as K}from"./trash-DUqnVIgb.js";import{t as he}from"./upload-M7dd6qr8.js";import{t as ge}from"./NativeSelect-BGasRaNs.js";import{t as q}from"./Input-FGSb2-yK.js";import{t as _e}from"./Textarea-DEFXqC2w.js";import{t as J}from"./registry-Cu4RDWrB.js";var ve=C({name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]}),Y=C({name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]}),X=C({name:`contact`,size:24,node:[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2`,key:`k82dct`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]}),ye=C({name:`gallery-horizontal-end`,size:24,node:[[`path`,{d:`M2 7v10`,key:`a2pl2d`}],[`path`,{d:`M6 5v14`,key:`1kq3d7`}],[`rect`,{width:`12`,height:`18`,x:`10`,y:`3`,rx:`2`,key:`13i7bc`}]]}),be=C({name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]}),xe=C({name:`list-collapse`,size:24,node:[[`path`,{d:`M10 5h11`,key:`1hkqpe`}],[`path`,{d:`M10 12h11`,key:`6m4ad9`}],[`path`,{d:`M10 19h11`,key:`14g2nv`}],[`path`,{d:`m3 10 3-3-3-3`,key:`i7pm08`}],[`path`,{d:`m3 20 3-3-3-3`,key:`20gx1n`}]]}),Se=C({name:`mouse-pointer-click`,size:24,node:[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]}),Ce=C({name:`move-vertical`,size:24,node:[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m8 18 4 4 4-4`,key:`bh5tu3`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}]]}),we=C({name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]}),Te=C({name:`square-dashed`,size:24,node:[[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M21 14v1`,key:`169vum`}]],aliases:[`box-select`]}),Ee=C({name:`table`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]}),De=C({name:`tablet`,size:24,node:[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`,key:`76otgf`}],[`line`,{x1:`12`,x2:`12.01`,y1:`18`,y2:`18`,key:`1dp563`}]]}),Oe={"square-dashed":Te,"columns-3":Y,"panel-top":we,"list-collapse":xe,"message-square-warning":me,heading:le,text:de,quote:G,"mouse-pointer-click":Se,"list-checks":P,table:Ee,minus:H,"move-vertical":Ce,image:E,images:be,play:U,panorama:ye,contact:X,"file-down":te,"folder-tree":pe,newspaper:T,"calendar-days":D,"clipboard-list":O,cake:w};function Z(e){return Oe[e]??ve}function Q(){return Math.random().toString(36).slice(2,8)+Date.now().toString(36).slice(-6)}function $(e){return JSON.parse(JSON.stringify(e))}function ke(e,t){return e.container?e.key===`columns`?(t.layout??`1-1`).split(`-`).length:e.key===`tabs`?2:e.key===`accordion`?3:e.container.min:0}function Ae(e){let t=$(e.defaults??{}),n={id:Q(),type:e.key,data:t};return e.container&&(n.items=Array.from({length:ke(e,t)},(t,n)=>({id:Q(),title:e.container.titled?`${e.container.label} ${n+1}`:void 0,blocks:[]}))),n}function je(e){let t=$(e),n=e=>{e.id=Q(),(e.items??[]).forEach(e=>{e.id=Q(),e.blocks.forEach(n)})};return n(t),t}function Me(e,t,n=null){for(let r=0;rNe(e.blocks,t))}function Pe(e){let t=(e.data.layout??`1-1`).split(`-`).length;for(;e.items.lengtht){let n=e.items.splice(t).flatMap(e=>e.blocks);e.items[t-1].blocks.push(...n)}}var Fe={class:`grid gap-4`},Ie={class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},Le=[`title`,`disabled`,`onClick`],Re={class:`truncate`},ze={__name:`BlockPalette`,props:{compact:{type:Boolean,default:!1}},emits:[`pick`],setup(e,{emit:n}){let r=n,i=a(`pagebuilder:editor`),s=f(()=>Object.entries(i.groups).map(([e,t])=>({key:e,label:t,types:Object.values(i.types).filter(t=>t.group===e)})).filter(e=>e.types.length));return(n,a)=>(p(),u(`div`,Fe,[(p(!0),u(m,null,d(s.value,n=>(p(),u(`section`,{key:n.key},[l(`h3`,Ie,g(n.label),1),t(o(B),{"model-value":n.types,group:{name:`pagebuilder`,pull:`clone`,put:!1},clone:e=>o(Ae)(e),sort:!1,disabled:e.compact||o(i).readOnly.value,class:`grid grid-cols-2 gap-2`},{default:h(()=>[(p(!0),u(m,null,d(n.types,t=>(p(),u(`button`,{key:t.key,type:`button`,class:c([`flex items-center gap-2 rounded-md border bg-card px-2.5 py-2 text-left text-[13px] font-medium transition-colors hover:border-brand-300 hover:bg-brand-soft/60`,e.compact?``:`cursor-grab active:cursor-grabbing`]),title:t.description||t.label,disabled:o(i).readOnly.value,onClick:e=>r(`pick`,t)},[(p(),_(y(o(Z)(t.icon)),{class:`size-4 shrink-0 text-brand-text`})),l(`span`,Re,g(t.label),1)],10,Le))),128))]),_:2},1032,[`model-value`,`clone`,`disabled`])]))),128))]))}},Be={class:`grid gap-1.5`},Ve=[`for`],He=[`for`],Ue={key:8,class:`grid gap-2`},We={class:`grid max-h-56 grid-cols-6 gap-1.5 overflow-y-auto`},Ge=[`title`,`aria-pressed`,`onClick`],Ke={key:0,class:`col-span-6 py-2 text-center text-xs text-muted-foreground`},qe={key:9,class:`grid gap-2`},Je={key:0,class:`relative overflow-hidden rounded-md border bg-muted`},Ye=[`src`],Xe=[`disabled`],Ze={key:10,class:`grid gap-2`},Qe={key:0,class:`grid gap-1`},$e={class:`min-w-0 flex-1 truncate text-[13px]`},et=[`onClick`],tt=[`onClick`],nt={class:`relative`},rt={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-60 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},it=[`onClick`],at={class:`min-w-0`},ot={class:`block truncate font-medium`},st={class:`block truncate text-xs text-muted-foreground`},ct={key:11,class:`grid gap-2`},lt={class:`overflow-x-auto rounded-md border`},ut={class:`w-full text-[13px]`},dt=[`value`,`aria-label`,`onInput`],ft={class:`w-7 p-0 text-center`},pt=[`onClick`],mt=[`onClick`],ht={class:`flex gap-2`},gt={key:12,class:`grid gap-2`},_t=[`open`],vt={class:`flex cursor-pointer list-none items-center gap-2 px-3 py-2 text-[13px] font-medium`},yt={class:`min-w-0 flex-1 truncate`},bt=[`onClick`],xt=[`onClick`],St=[`onClick`],Ct={class:`grid gap-3 border-t px-3 py-3`},wt={key:13,class:`grid gap-2`},Tt={key:0,class:`grid gap-1`},Et={class:`min-w-0 flex-1 truncate`},Dt={key:0,class:`shrink-0 text-xs text-muted-foreground`},Ot=[`onClick`],kt=[`onClick`],At=[`disabled`],jt={key:14,class:`text-xs text-muted-foreground`},Mt={__name:`FieldInput`,props:e({field:{type:Object,required:!0},id:{type:String,required:!0}},{modelValue:{default:null},modelModifiers:{}}),emits:e([`image-uploaded`],[`update:modelValue`]),setup(e,{emit:h}){let y=e,C=r(e,`modelValue`),w=a(`pagebuilder:editor`),T=h,E=v(!1),D=v(null);async function O(e){let t=e.target.files?.[0];if(e.target.value=``,t){E.value=!0;try{let e=await w.uploadImage(t);C.value=e.path,T(`image-uploaded`,e)}catch(e){se.error(e.fieldErrors?.image??e.message)}finally{E.value=!1}}}let M=v(``),P=v([]),F=w.peopleCache,I;if(i(M,e=>{if(clearTimeout(I),e.trim().length<2){P.value=[];return}I=setTimeout(async()=>{let t=await L.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`);t.people.forEach(e=>F[e.id]=e),P.value=t.people.filter(e=>!(C.value??[]).includes(e.id))},250)}),y.field.type===`people`&&(C.value??[]).some(e=>!F[e])){let e=C.value.filter(e=>!F[e]);L.get(`/personen/suche?${e.map(e=>`ids[]=${e}`).join(`&`)}`).then(e=>e.people.forEach(e=>F[e.id]=e))}function ce(e){C.value=[...C.value??[],e.id],M.value=``,P.value=[]}function R(e,t,n){let r=t+n;if(r<0||r>=e.length)return;let i=[...e];[i[t],i[r]]=[i[r],i[t]],C.value=i}function z(e){C.value=C.value.filter((t,n)=>n!==e)}function le(){let e=Object.fromEntries(y.field.fields.map(e=>[e.name,structuredClone(e.default??(e.type===`toggle`?!1:e.type===`repeater`?[]:``))]));C.value=[...C.value??[],e]}let B=f(()=>C.value??[[``]]);function ue(e,t,n){let r=B.value.map(e=>[...e]);r[e][t]=n,C.value=r}function de(){C.value=[...B.value,Array(B.value[0]?.length??1).fill(``)]}function V(){C.value=B.value.map(e=>[...e,``])}function pe(e){B.value.length>1&&(C.value=B.value.filter((t,n)=>n!==e))}function me(e){(B.value[0]?.length??1)>1&&(C.value=B.value.map(t=>t.filter((t,n)=>n!==e)))}let H=v(null),U=f(()=>Object.fromEntries(w.files.value.map(e=>[e.id,e])));async function G(e){let t=[...e.target.files??[]];e.target.value=``,E.value=!0;try{for(let e of t){let t=await w.uploadFile(e);C.value=[...C.value??[],t.id]}}catch(e){se.error(e.fieldErrors?.file??e.message)}finally{E.value=!1}}let J=f(()=>w.files.value.filter(e=>!(C.value??[]).includes(e.id))),ve=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,Y=v(``),X=f(()=>{let e=Y.value.trim().toLowerCase(),t=(y.field.choices??[]).map(e=>({value:e.value,label:e.label}));if(!e)return C.value&&!t.some(e=>e.value===C.value)?[{value:C.value,label:C.value},...t]:t;let n=t.filter(t=>t.label.toLowerCase().includes(e)||t.value.includes(e)),r=k.value?Object.keys(k.value.icons).filter(t=>t.includes(e)&&!n.some(e=>e.value===t)):[];return[...n,...r.map(e=>({value:e,label:e}))].slice(0,60)});return i(Y,e=>e.trim()&&re()),(r,i)=>{let a=s(`FieldInput`,!0);return p(),u(`div`,Be,[e.field.type===`toggle`?b(``,!0):(p(),u(`label`,{key:0,for:e.id,class:`text-[13px] font-medium`},g(e.field.label),9,Ve)),e.field.type===`text`?(p(),_(o(q),{key:1,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[0]||=e=>C.value=e,maxlength:e.field.max,placeholder:e.field.placeholder??``},null,8,[`id`,`modelValue`,`maxlength`,`placeholder`])):e.field.type===`url`?(p(),_(o(q),{key:2,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[1]||=e=>C.value=e,type:`text`,inputmode:`url`,placeholder:`https://… oder /seiten/…`},null,8,[`id`,`modelValue`])):e.field.type===`textarea`?(p(),_(o(_e),{key:3,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[2]||=e=>C.value=e,maxlength:e.field.max,rows:`3`},null,8,[`id`,`modelValue`,`maxlength`])):e.field.type===`html`?(p(),_(oe,{key:4,modelValue:C.value,"onUpdate:modelValue":i[3]||=e=>C.value=e,bordered:``,"min-height":`[&_.tiptap]:min-h-24`},null,8,[`modelValue`])):e.field.type===`number`?(p(),_(o(q),{key:5,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[4]||=e=>C.value=e,modelModifiers:{number:!0},type:`number`,min:e.field.min,max:e.field.max},null,8,[`id`,`modelValue`,`min`,`max`])):e.field.type===`select`?(p(),_(ge,{key:6,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[5]||=e=>C.value=e,options:e.field.choices},null,8,[`id`,`modelValue`,`options`])):e.field.type===`toggle`?(p(),u(`label`,{key:7,for:e.id,class:`flex items-center justify-between gap-3 py-0.5 text-[13px] font-medium`},[n(g(e.field.label)+` `,1),t(o(fe),{id:e.id,modelValue:C.value,"onUpdate:modelValue":i[6]||=e=>C.value=e},null,8,[`id`,`modelValue`])],8,He)):e.field.type===`icon`?(p(),u(`div`,Ue,[t(o(q),{modelValue:Y.value,"onUpdate:modelValue":i[7]||=e=>Y.value=e,type:`search`,placeholder:`Alle Symbole durchsuchen (englisch, z. B. calendar)`,class:`h-8 text-[13px]`},null,8,[`modelValue`]),l(`div`,We,[(p(!0),u(m,null,d(X.value,e=>(p(),u(`button`,{key:e.value,type:`button`,class:c([`grid aspect-square place-items-center rounded-md border transition-colors`,C.value===e.value?`border-brand-400 bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":C.value===e.value,onClick:t=>C.value=e.value},[t(ie,{name:e.value,class:`size-4`},null,8,[`name`])],10,Ge))),128)),Y.value&&!X.value.length?(p(),u(`p`,Ke,`Kein Symbol gefunden.`)):b(``,!0)])])):e.field.type===`image`?(p(),u(`div`,qe,[C.value?(p(),u(`div`,Je,[l(`img`,{src:o(w).imageUrl(C.value),alt:``,class:`aspect-video w-full object-cover`},null,8,Ye),l(`button`,{type:`button`,class:`absolute top-1.5 right-1.5 grid size-7 place-items-center rounded-md bg-card/90 shadow-sm hover:bg-card`,title:`Bild entfernen`,onClick:i[8]||=e=>C.value=null},[t(o(N),{class:`size-4`})])])):b(``,!0),l(`button`,{type:`button`,class:`flex h-9 items-center justify-center gap-2 rounded-md border border-dashed text-[13px] font-medium text-muted-foreground hover:border-brand-300 hover:text-foreground`,disabled:E.value,onClick:i[9]||=e=>D.value?.click()},[E.value?(p(),_(o(S),{key:0,class:`size-4 animate-spin`})):(p(),_(o(ae),{key:1,class:`size-4`})),n(` `+g(C.value?`Anderes Bild wählen`:`Bild hochladen`),1)],8,Xe),l(`input`,{ref_key:`imageInput`,ref:D,type:`file`,accept:`image/jpeg,image/png,image/webp,image/gif`,class:`hidden`,onChange:O},null,544)])):e.field.type===`people`?(p(),u(`div`,Ze,[(C.value??[]).length?(p(),u(`ul`,Qe,[(p(!0),u(m,null,d(C.value,(e,n)=>(p(),u(`li`,{key:e,class:`flex items-center gap-2 rounded-md border bg-card px-2 py-1.5`},[o(F)[e]?(p(),_(ne,{key:0,person:o(F)[e],class:`size-7 text-[10px]`},null,8,[`person`])):b(``,!0),l(`span`,$e,g(o(F)[e]?.name??`…`),1),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>R(C.value,n,-1)},[t(o(j),{class:`size-3.5`})],8,et),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>z(n)},[t(o(N),{class:`size-3.5`})],8,tt)]))),128))])):b(``,!0),l(`div`,nt,[t(o(ee),{class:`pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground`}),t(o(q),{id:e.id,modelValue:M.value,"onUpdate:modelValue":i[10]||=e=>M.value=e,class:`pl-8`,placeholder:`Person suchen …`,autocomplete:`off`},null,8,[`id`,`modelValue`]),P.value.length?(p(),u(`ul`,rt,[(p(!0),u(m,null,d(P.value,e=>(p(),u(`li`,{key:e.id},[l(`button`,{type:`button`,class:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-[13px] hover:bg-accent`,onClick:t=>ce(e)},[t(ne,{person:e,class:`size-7 text-[10px]`},null,8,[`person`]),l(`span`,at,[l(`span`,ot,g(e.name),1),l(`span`,st,g(e.job_title),1)])],8,it)]))),128))])):b(``,!0)])])):e.field.type===`table`?(p(),u(`div`,ct,[l(`div`,lt,[l(`table`,ut,[l(`tbody`,null,[(p(!0),u(m,null,d(B.value,(e,n)=>(p(),u(`tr`,{key:n,class:`border-b last:border-0`},[(p(!0),u(m,null,d(e,(e,t)=>(p(),u(`td`,{key:t,class:`border-r p-0 last:border-r-0`},[l(`input`,{value:e,class:`h-8 w-full min-w-20 bg-transparent px-2 focus:bg-brand-soft/50 focus:outline-none`,"aria-label":`Zeile ${n+1}, Spalte ${t+1}`,onInput:e=>ue(n,t,e.target.value)},null,40,dt)]))),128)),l(`td`,ft,[l(`button`,{type:`button`,class:`grid size-7 place-items-center text-muted-foreground hover:text-destructive`,title:`Zeile entfernen`,onClick:e=>pe(n)},[t(o(N),{class:`size-3.5`})],8,pt)])]))),128)),l(`tr`,null,[(p(!0),u(m,null,d(B.value[0],(e,n)=>(p(),u(`td`,{key:n,class:`p-0 text-center`},[l(`button`,{type:`button`,class:`mx-auto grid size-7 place-items-center text-muted-foreground hover:text-destructive`,title:`Spalte entfernen`,onClick:e=>me(n)},[t(o(N),{class:`size-3.5`})],8,mt)]))),128)),i[13]||=l(`td`,null,null,-1)])])])]),l(`div`,ht,[l(`button`,{type:`button`,class:`inline-flex items-center gap-1 text-[13px] font-medium text-brand-text hover:underline`,onClick:de},[t(o(W),{class:`size-3.5`}),i[14]||=n(` Zeile`,-1)]),l(`button`,{type:`button`,class:`inline-flex items-center gap-1 text-[13px] font-medium text-brand-text hover:underline`,onClick:V},[t(o(W),{class:`size-3.5`}),i[15]||=n(` Spalte`,-1)])])])):e.field.type===`repeater`?(p(),u(`div`,gt,[(p(!0),u(m,null,d(C.value??[],(n,r)=>(p(),u(`details`,{key:r,class:`group rounded-md border bg-card`,open:r===(C.value??[]).length-1},[l(`summary`,vt,[l(`span`,yt,g(n.label||n.title||n.alt||`${e.field.itemLabel} ${r+1}`),1),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:x(e=>R(C.value,r,-1),[`prevent`])},[t(o(j),{class:`size-3.5`})],8,bt),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:x(e=>R(C.value,r,1),[`prevent`])},[t(o(A),{class:`size-3.5`})],8,xt),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:x(e=>z(r),[`prevent`])},[t(o(K),{class:`size-3.5`})],8,St)]),l(`div`,Ct,[(p(!0),u(m,null,d(e.field.fields,t=>(p(),_(a,{id:`${e.id}-${r}-${t.name}`,key:t.name,modelValue:n[t.name],"onUpdate:modelValue":e=>n[t.name]=e,field:t},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`field`]))),128))])],8,_t))),128)),(C.value??[]).length(p(),u(`li`,{key:e,class:`flex items-center gap-2 rounded-md border bg-card px-2 py-1.5 text-[13px]`},[t(o(te),{class:`size-4 shrink-0 text-muted-foreground`}),l(`span`,Et,g(U.value[e]?.name??`Datei nicht mehr vorhanden`),1),U.value[e]?(p(),u(`span`,Dt,g(ve(U.value[e].size)),1)):b(``,!0),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>R(C.value,n,-1)},[t(o(j),{class:`size-3.5`})],8,Ot),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>z(n)},[t(o(N),{class:`size-3.5`})],8,kt)]))),128))])):b(``,!0),l(`button`,{type:`button`,class:`flex h-9 items-center justify-center gap-2 rounded-md border border-dashed text-[13px] font-medium text-muted-foreground hover:border-brand-300 hover:text-foreground`,disabled:E.value,onClick:i[11]||=e=>H.value?.click()},[E.value?(p(),_(o(S),{key:0,class:`size-4 animate-spin`})):(p(),_(o(he),{key:1,class:`size-4`})),i[16]||=n(` Dateien hochladen `,-1)],8,At),l(`input`,{ref_key:`fileInput`,ref:H,type:`file`,multiple:``,class:`hidden`,onChange:G},null,544),J.value.length?(p(),_(ge,{key:1,"model-value":null,options:J.value.map(e=>({value:e.id,label:e.name})),placeholder:`Bereits hochgeladene Datei wählen …`,"onUpdate:modelValue":i[12]||=e=>e&&(C.value=[...C.value??[],e])},null,8,[`options`])):b(``,!0)])):b(``,!0),e.field.help?(p(),u(`p`,jt,g(e.field.help),1)):b(``,!0)])}}},Nt={key:0,class:`grid gap-5`},Pt={class:`flex items-start gap-3`},Ft={class:`grid size-9 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},It={class:`min-w-0`},Lt={class:`font-semibold`},Rt={key:0,class:`text-xs text-muted-foreground`},zt={key:0,class:`rounded-md bg-muted px-3 py-2 text-xs text-muted-foreground`},Bt={key:1,class:`grid gap-2`},Vt={class:`text-[13px] font-medium`},Ht={key:1,class:`flex-1 text-[13px]`},Ut=[`onClick`],Wt=[`onClick`],Gt=[`disabled`,`onClick`],Kt=[`open`],qt={class:`flex cursor-pointer items-center gap-2 px-3 py-2 text-[13px] font-medium`},Jt={key:0,class:`ml-auto rounded bg-amber-100 px-1.5 py-0.5 text-[11px] text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},Yt={class:`grid gap-3 border-t px-3 py-3`},Xt={class:`mb-1 text-xs font-semibold text-muted-foreground`},Zt={key:0,class:`-mt-1 mb-1 text-[11px] text-muted-foreground`},Qt={class:`grid max-h-36 gap-0.5 overflow-y-auto`},$t=[`checked`,`onChange`],en={__name:`BlockSettings`,props:{block:{type:Object,required:!0}},setup(e){let r=e,s=a(`pagebuilder:editor`),c=f(()=>s.types[r.block.type]),h=f(()=>(c.value?.fields??[]).filter(e=>e.type!==`html`));i(()=>r.block.data.layout,()=>{r.block.type===`columns`&&Pe(r.block)});function v(){r.block.items.push({id:Q(),title:`${c.value.container.label} ${r.block.items.length+1}`,blocks:[]})}function x(e,t){let n=r.block.items,i=e+t;i>=0&&ir.block.visibility??{}),w=f(()=>Object.values(C.value).some(e=>e?.length));function T(e,t){let n=new Set(C.value[e]??[]);n.has(t)?n.delete(t):n.add(t),r.block.visibility={...C.value,[e]:[...n]}}let E=f(()=>[{key:`role`,label:`Rollen`,options:s.audienceOptions.role},{key:`department`,label:`Abteilungen`,options:s.audienceOptions.department.map(e=>({value:e,label:e}))},{key:`location`,label:`Standorte`,options:s.audienceOptions.location.map(e=>({value:e,label:e}))},{key:`exclude_role`,label:`Ausgeschlossene Rollen`,hint:`Sehen den Block nie – auch wenn oben etwas passt.`,options:s.audienceOptions.role}].filter(e=>e.options.length));return(r,i)=>c.value?(p(),u(`div`,Nt,[l(`header`,Pt,[l(`span`,Ft,[(p(),_(y(o(Z)(c.value.icon)),{class:`size-4.5`}))]),l(`div`,It,[l(`h2`,Lt,g(c.value.label),1),c.value.description?(p(),u(`p`,Rt,g(c.value.description),1)):b(``,!0)])]),c.value.fields.some(e=>e.type===`html`)?(p(),u(`p`,zt,` Den Text bearbeiten Sie direkt im Block. Markieren Sie Text für Fettdruck, Links und Listen. `)):b(``,!0),(p(!0),u(m,null,d(h.value,t=>(p(),_(Mt,{id:`field-${e.block.id}-${t.name}`,key:`${e.block.id}-${t.name}`,modelValue:e.block.data[t.name],"onUpdate:modelValue":n=>e.block.data[t.name]=n,field:t},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`field`]))),128)),c.value.container&&c.value.container.max>1&&c.value.key!==`columns`?(p(),u(`section`,Bt,[l(`h3`,Vt,g(c.value.container.label)+`s`,1),(p(!0),u(m,null,d(e.block.items,(n,r)=>(p(),u(`div`,{key:n.id,class:`flex items-center gap-1`},[c.value.container.titled?(p(),_(o(q),{key:0,modelValue:n.title,"onUpdate:modelValue":e=>n.title=e,class:`h-8`,"aria-label":`Titel ${r+1}`,maxlength:`120`},null,8,[`modelValue`,`onUpdate:modelValue`,`aria-label`])):(p(),u(`span`,Ht,g(c.value.container.label)+` `+g(r+1),1)),l(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>x(r,-1)},[t(o(j),{class:`size-3.5`})],8,Ut),l(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:e=>x(r,1)},[t(o(A),{class:`size-3.5`})],8,Wt),l(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded text-destructive hover:bg-destructive/10 disabled:opacity-30`,title:`Entfernen`,disabled:e.block.items.length<=c.value.container.min,onClick:e=>S(r)},[t(o(K),{class:`size-3.5`})],8,Gt)]))),128)),e.block.items.length(p(),u(`fieldset`,{key:e.key,class:`grid gap-1`},[l(`legend`,Xt,g(e.label),1),e.hint?(p(),u(`p`,Zt,g(e.hint),1)):b(``,!0),l(`div`,Qt,[(p(!0),u(m,null,d(e.options,t=>(p(),u(`label`,{key:t.value,class:`flex items-center gap-2 rounded px-1 py-0.5 text-[13px] hover:bg-accent`},[l(`input`,{type:`checkbox`,class:`size-4 accent-[var(--brand)]`,checked:(C.value[e.key]??[]).includes(t.value),onChange:n=>T(e.key,t.value)},null,40,$t),n(` `+g(t.label),1)]))),128))])]))),128))])],8,Kt)):b(``,!0)])):b(``,!0)}},tn=[`data-block-id`],nn={class:`pb-handle flex cursor-grab items-center gap-1 rounded px-1 py-0.5 font-medium text-muted-foreground active:cursor-grabbing`,title:`Ziehen zum Verschieben`},rn={key:2,class:`rounded-md border border-dashed p-4 text-sm text-muted-foreground`},an={__name:`EditorBlock`,props:{block:{type:Object,required:!0}},setup(e){let r=e,i=a(`pagebuilder:editor`),s=f(()=>i.types[r.block.type]),d=f(()=>i.selectedId.value===r.block.id),m=f(()=>i.hoveredId.value===r.block.id),h=f(()=>Object.values(r.block.visibility??{}).some(e=>e?.length)),v=f(()=>({...r.block,props:i.previews[r.block.id]??r.block.props}));return(r,a)=>(p(),u(`div`,{class:c([`relative rounded-md outline-offset-4 transition-[outline-color]`,[d.value?`outline-2 outline-brand-500`:m.value?`outline-1 outline-brand-300`:`outline-1 outline-transparent`,s.value?``:`opacity-60`]]),"data-block-id":e.block.id,onClick:a[5]||=x(t=>o(i).select(e.block.id),[`stop`]),onMouseover:a[6]||=x(t=>o(i).hoveredId.value=e.block.id,[`stop`]),onMouseleave:a[7]||=t=>o(i).hoveredId.value===e.block.id&&(o(i).hoveredId.value=null)},[(d.value||m.value)&&!o(i).readOnly.value?(p(),u(`div`,{key:0,class:`absolute -top-3.5 right-2 z-20 flex items-center gap-0.5 rounded-md border bg-card px-1 py-0.5 text-xs shadow-sm`,onClick:a[4]||=x(()=>{},[`stop`])},[l(`span`,nn,[t(o(z),{class:`size-3.5`}),(p(),_(y(o(Z)(s.value?.icon)),{class:`size-3.5`})),n(` `+g(s.value?.label??e.block.type),1)]),h.value?(p(),_(o(V),{key:0,class:`mx-1 size-3.5 text-amber-600`,title:`Nur für bestimmte Personen sichtbar`})):b(``,!0),a[8]||=l(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:a[0]||=t=>o(i).move(e.block.id,-1)},[t(o(R),{class:`size-3.5`})]),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:a[1]||=t=>o(i).move(e.block.id,1)},[t(o(M),{class:`size-3.5`})]),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Duplizieren`,onClick:a[2]||=t=>o(i).duplicate(e.block.id)},[t(o(ue),{class:`size-3.5`})]),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:a[3]||=t=>o(i).remove(e.block.id)},[t(o(K),{class:`size-3.5`})])])):b(``,!0),s.value&&o(J)(s.value.component)?(p(),_(y(o(J)(s.value.component)),{key:1,block:v.value},null,8,[`block`])):(p(),u(`div`,rn,` Dieser Block (`+g(e.block.type)+`) ist nicht verfügbar – vermutlich ist das zugehörige Plugin deaktiviert. Er wird nicht angezeigt. `,1))],42,tn))}},on={key:0,class:`pointer-events-none text-center text-xs text-muted-foreground`},sn={__name:`EditorBlockList`,props:{item:{type:Object,required:!0},root:{type:Boolean,default:!1}},setup(e){let r=e,i=a(`pagebuilder:editor`),s=f(()=>r.root||i.containsActive(r.item));return(r,a)=>(p(),u(`div`,{class:c([`grid`,e.root?`gap-6`:`gap-4`])},[t(o(B),{modelValue:e.item.blocks,"onUpdate:modelValue":a[0]||=t=>e.item.blocks=t,group:{name:`pagebuilder`},handle:`.pb-handle`,animation:150,disabled:o(i).readOnly.value,"ghost-class":`pb-ghost`,class:c([`grid min-h-6`,[e.root?`gap-6`:`gap-4`,e.item.blocks.length?``:`rounded-md border border-dashed border-border bg-muted/40 p-3`]]),onAdd:a[1]||=t=>o(i).select(e.item.blocks[t.newIndex]?.id)},{default:h(()=>[(p(!0),u(m,null,d(e.item.blocks,e=>(p(),_(an,{key:e.id,block:e},null,8,[`block`]))),128)),e.item.blocks.length?b(``,!0):(p(),u(`p`,on,g(e.root?`Noch keine Inhalte. Blöcke aus der rechten Spalte hierher ziehen oder hinzufügen.`:`Blöcke hierher ziehen`),1))]),_:1},8,[`modelValue`,`disabled`,`class`]),!o(i).readOnly.value&&(s.value||!e.item.blocks.length)?(p(),_(o(F),{key:0},{default:h(()=>[t(o(I),{class:`flex h-8 items-center justify-center gap-1.5 rounded-md border border-dashed text-xs font-medium text-muted-foreground transition-colors hover:border-brand-300 hover:bg-brand-soft hover:text-brand-soft-foreground`,onClick:a[2]||=x(()=>{},[`stop`])},{default:h(()=>[t(o(W),{class:`size-3.5`}),a[5]||=n(` Block hinzufügen `,-1)]),_:1}),t(o(ce),{class:`max-h-[70vh] w-[22rem] overflow-y-auto p-3`,align:`center`,onClick:a[4]||=x(()=>{},[`stop`])},{default:h(()=>[t(ze,{compact:``,onPick:a[3]||=t=>o(i).insert(e.item.blocks,e.item.blocks.length,t)})]),_:1})]),_:1})):b(``,!0)],2))}};export{Ae as a,Ne as c,$ as i,De as l,en as n,je as o,ze as r,Me as s,sn as t}; \ No newline at end of file +import{$ as e,D as t,E as n,Ft as r,Ht as i,J as a,On as o,St as s,Zn as c,_ as l,b as u,bt as d,g as f,mt as p,o as m,qt as h,tr as g,v as _,vn as v,wt as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as x}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{O as S,k as C}from"./dist-DtGNiYlK.js";import{$ as w,F as T,G as E,N as ee,Q as D,Y as te,Z as O,n as k,p as ne,r as re,t as ie}from"./AppIcon-BiVN_tuL.js";import{n as A,t as j}from"./arrow-up-Djq_2Npz.js";import{i as ae,n as oe}from"./RichTextEditor-CA2m8pIz.js";import{C as M,_ as N,b as P,i as F,n as I,o as se,r as ce,t as L}from"./http-DmyDwIce.js";import{t as R}from"./chevron-up-DJvyZPom.js";import{a as z,i as le,n as B,o as ue,r as de,t as fe}from"./Switch-CWN1_5O7.js";import{t as V}from"./eye-off-myis3scV.js";import{t as pe}from"./folder-tree-ZY-sbGXb.js";import{t as me}from"./message-square-warning-BFfa_vqd.js";import{t as H}from"./minus-CmsbcqBG.js";import{t as U}from"./play-GbhjcPFH.js";import{t as W}from"./plus-B_ij2ng2.js";import{t as G}from"./quote-CAgJDpoy.js";import{t as K}from"./trash-DUqnVIgb.js";import{t as he}from"./upload-M7dd6qr8.js";import{t as ge}from"./NativeSelect-BGasRaNs.js";import{t as q}from"./Input-FGSb2-yK.js";import{t as _e}from"./Textarea-DEFXqC2w.js";import{t as J}from"./registry-BogTHx6D.js";var ve=C({name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]}),Y=C({name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]}),X=C({name:`contact`,size:24,node:[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2`,key:`k82dct`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]}),ye=C({name:`gallery-horizontal-end`,size:24,node:[[`path`,{d:`M2 7v10`,key:`a2pl2d`}],[`path`,{d:`M6 5v14`,key:`1kq3d7`}],[`rect`,{width:`12`,height:`18`,x:`10`,y:`3`,rx:`2`,key:`13i7bc`}]]}),be=C({name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]}),xe=C({name:`list-collapse`,size:24,node:[[`path`,{d:`M10 5h11`,key:`1hkqpe`}],[`path`,{d:`M10 12h11`,key:`6m4ad9`}],[`path`,{d:`M10 19h11`,key:`14g2nv`}],[`path`,{d:`m3 10 3-3-3-3`,key:`i7pm08`}],[`path`,{d:`m3 20 3-3-3-3`,key:`20gx1n`}]]}),Se=C({name:`mouse-pointer-click`,size:24,node:[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]}),Ce=C({name:`move-vertical`,size:24,node:[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m8 18 4 4 4-4`,key:`bh5tu3`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}]]}),we=C({name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]}),Te=C({name:`square-dashed`,size:24,node:[[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M21 14v1`,key:`169vum`}]],aliases:[`box-select`]}),Ee=C({name:`table`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]}),De=C({name:`tablet`,size:24,node:[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`,key:`76otgf`}],[`line`,{x1:`12`,x2:`12.01`,y1:`18`,y2:`18`,key:`1dp563`}]]}),Oe={"square-dashed":Te,"columns-3":Y,"panel-top":we,"list-collapse":xe,"message-square-warning":me,heading:le,text:de,quote:G,"mouse-pointer-click":Se,"list-checks":P,table:Ee,minus:H,"move-vertical":Ce,image:E,images:be,play:U,panorama:ye,contact:X,"file-down":te,"folder-tree":pe,newspaper:T,"calendar-days":D,"clipboard-list":O,cake:w};function Z(e){return Oe[e]??ve}function Q(){return Math.random().toString(36).slice(2,8)+Date.now().toString(36).slice(-6)}function $(e){return JSON.parse(JSON.stringify(e))}function ke(e,t){return e.container?e.key===`columns`?(t.layout??`1-1`).split(`-`).length:e.key===`tabs`?2:e.key===`accordion`?3:e.container.min:0}function Ae(e){let t=$(e.defaults??{}),n={id:Q(),type:e.key,data:t};return e.container&&(n.items=Array.from({length:ke(e,t)},(t,n)=>({id:Q(),title:e.container.titled?`${e.container.label} ${n+1}`:void 0,blocks:[]}))),n}function je(e){let t=$(e),n=e=>{e.id=Q(),(e.items??[]).forEach(e=>{e.id=Q(),e.blocks.forEach(n)})};return n(t),t}function Me(e,t,n=null){for(let r=0;rNe(e.blocks,t))}function Pe(e){let t=(e.data.layout??`1-1`).split(`-`).length;for(;e.items.lengtht){let n=e.items.splice(t).flatMap(e=>e.blocks);e.items[t-1].blocks.push(...n)}}var Fe={class:`grid gap-4`},Ie={class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},Le=[`title`,`disabled`,`onClick`],Re={class:`truncate`},ze={__name:`BlockPalette`,props:{compact:{type:Boolean,default:!1}},emits:[`pick`],setup(e,{emit:n}){let r=n,i=a(`pagebuilder:editor`),s=f(()=>Object.entries(i.groups).map(([e,t])=>({key:e,label:t,types:Object.values(i.types).filter(t=>t.group===e)})).filter(e=>e.types.length));return(n,a)=>(p(),u(`div`,Fe,[(p(!0),u(m,null,d(s.value,n=>(p(),u(`section`,{key:n.key},[l(`h3`,Ie,g(n.label),1),t(o(B),{"model-value":n.types,group:{name:`pagebuilder`,pull:`clone`,put:!1},clone:e=>o(Ae)(e),sort:!1,disabled:e.compact||o(i).readOnly.value,class:`grid grid-cols-2 gap-2`},{default:h(()=>[(p(!0),u(m,null,d(n.types,t=>(p(),u(`button`,{key:t.key,type:`button`,class:c([`flex items-center gap-2 rounded-md border bg-card px-2.5 py-2 text-left text-[13px] font-medium transition-colors hover:border-brand-300 hover:bg-brand-soft/60`,e.compact?``:`cursor-grab active:cursor-grabbing`]),title:t.description||t.label,disabled:o(i).readOnly.value,onClick:e=>r(`pick`,t)},[(p(),_(y(o(Z)(t.icon)),{class:`size-4 shrink-0 text-brand-text`})),l(`span`,Re,g(t.label),1)],10,Le))),128))]),_:2},1032,[`model-value`,`clone`,`disabled`])]))),128))]))}},Be={class:`grid gap-1.5`},Ve=[`for`],He=[`for`],Ue={key:8,class:`grid gap-2`},We={class:`grid max-h-56 grid-cols-6 gap-1.5 overflow-y-auto`},Ge=[`title`,`aria-pressed`,`onClick`],Ke={key:0,class:`col-span-6 py-2 text-center text-xs text-muted-foreground`},qe={key:9,class:`grid gap-2`},Je={key:0,class:`relative overflow-hidden rounded-md border bg-muted`},Ye=[`src`],Xe=[`disabled`],Ze={key:10,class:`grid gap-2`},Qe={key:0,class:`grid gap-1`},$e={class:`min-w-0 flex-1 truncate text-[13px]`},et=[`onClick`],tt=[`onClick`],nt={class:`relative`},rt={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-60 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},it=[`onClick`],at={class:`min-w-0`},ot={class:`block truncate font-medium`},st={class:`block truncate text-xs text-muted-foreground`},ct={key:11,class:`grid gap-2`},lt={class:`overflow-x-auto rounded-md border`},ut={class:`w-full text-[13px]`},dt=[`value`,`aria-label`,`onInput`],ft={class:`w-7 p-0 text-center`},pt=[`onClick`],mt=[`onClick`],ht={class:`flex gap-2`},gt={key:12,class:`grid gap-2`},_t=[`open`],vt={class:`flex cursor-pointer list-none items-center gap-2 px-3 py-2 text-[13px] font-medium`},yt={class:`min-w-0 flex-1 truncate`},bt=[`onClick`],xt=[`onClick`],St=[`onClick`],Ct={class:`grid gap-3 border-t px-3 py-3`},wt={key:13,class:`grid gap-2`},Tt={key:0,class:`grid gap-1`},Et={class:`min-w-0 flex-1 truncate`},Dt={key:0,class:`shrink-0 text-xs text-muted-foreground`},Ot=[`onClick`],kt=[`onClick`],At=[`disabled`],jt={key:14,class:`text-xs text-muted-foreground`},Mt={__name:`FieldInput`,props:e({field:{type:Object,required:!0},id:{type:String,required:!0}},{modelValue:{default:null},modelModifiers:{}}),emits:e([`image-uploaded`],[`update:modelValue`]),setup(e,{emit:h}){let y=e,C=r(e,`modelValue`),w=a(`pagebuilder:editor`),T=h,E=v(!1),D=v(null);async function O(e){let t=e.target.files?.[0];if(e.target.value=``,t){E.value=!0;try{let e=await w.uploadImage(t);C.value=e.path,T(`image-uploaded`,e)}catch(e){se.error(e.fieldErrors?.image??e.message)}finally{E.value=!1}}}let M=v(``),P=v([]),F=w.peopleCache,I;if(i(M,e=>{if(clearTimeout(I),e.trim().length<2){P.value=[];return}I=setTimeout(async()=>{let t=await L.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`);t.people.forEach(e=>F[e.id]=e),P.value=t.people.filter(e=>!(C.value??[]).includes(e.id))},250)}),y.field.type===`people`&&(C.value??[]).some(e=>!F[e])){let e=C.value.filter(e=>!F[e]);L.get(`/personen/suche?${e.map(e=>`ids[]=${e}`).join(`&`)}`).then(e=>e.people.forEach(e=>F[e.id]=e))}function ce(e){C.value=[...C.value??[],e.id],M.value=``,P.value=[]}function R(e,t,n){let r=t+n;if(r<0||r>=e.length)return;let i=[...e];[i[t],i[r]]=[i[r],i[t]],C.value=i}function z(e){C.value=C.value.filter((t,n)=>n!==e)}function le(){let e=Object.fromEntries(y.field.fields.map(e=>[e.name,structuredClone(e.default??(e.type===`toggle`?!1:e.type===`repeater`?[]:``))]));C.value=[...C.value??[],e]}let B=f(()=>C.value??[[``]]);function ue(e,t,n){let r=B.value.map(e=>[...e]);r[e][t]=n,C.value=r}function de(){C.value=[...B.value,Array(B.value[0]?.length??1).fill(``)]}function V(){C.value=B.value.map(e=>[...e,``])}function pe(e){B.value.length>1&&(C.value=B.value.filter((t,n)=>n!==e))}function me(e){(B.value[0]?.length??1)>1&&(C.value=B.value.map(t=>t.filter((t,n)=>n!==e)))}let H=v(null),U=f(()=>Object.fromEntries(w.files.value.map(e=>[e.id,e])));async function G(e){let t=[...e.target.files??[]];e.target.value=``,E.value=!0;try{for(let e of t){let t=await w.uploadFile(e);C.value=[...C.value??[],t.id]}}catch(e){se.error(e.fieldErrors?.file??e.message)}finally{E.value=!1}}let J=f(()=>w.files.value.filter(e=>!(C.value??[]).includes(e.id))),ve=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,Y=v(``),X=f(()=>{let e=Y.value.trim().toLowerCase(),t=(y.field.choices??[]).map(e=>({value:e.value,label:e.label}));if(!e)return C.value&&!t.some(e=>e.value===C.value)?[{value:C.value,label:C.value},...t]:t;let n=t.filter(t=>t.label.toLowerCase().includes(e)||t.value.includes(e)),r=k.value?Object.keys(k.value.icons).filter(t=>t.includes(e)&&!n.some(e=>e.value===t)):[];return[...n,...r.map(e=>({value:e,label:e}))].slice(0,60)});return i(Y,e=>e.trim()&&re()),(r,i)=>{let a=s(`FieldInput`,!0);return p(),u(`div`,Be,[e.field.type===`toggle`?b(``,!0):(p(),u(`label`,{key:0,for:e.id,class:`text-[13px] font-medium`},g(e.field.label),9,Ve)),e.field.type===`text`?(p(),_(o(q),{key:1,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[0]||=e=>C.value=e,maxlength:e.field.max,placeholder:e.field.placeholder??``},null,8,[`id`,`modelValue`,`maxlength`,`placeholder`])):e.field.type===`url`?(p(),_(o(q),{key:2,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[1]||=e=>C.value=e,type:`text`,inputmode:`url`,placeholder:`https://… oder /seiten/…`},null,8,[`id`,`modelValue`])):e.field.type===`textarea`?(p(),_(o(_e),{key:3,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[2]||=e=>C.value=e,maxlength:e.field.max,rows:`3`},null,8,[`id`,`modelValue`,`maxlength`])):e.field.type===`html`?(p(),_(oe,{key:4,modelValue:C.value,"onUpdate:modelValue":i[3]||=e=>C.value=e,bordered:``,"min-height":`[&_.tiptap]:min-h-24`},null,8,[`modelValue`])):e.field.type===`number`?(p(),_(o(q),{key:5,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[4]||=e=>C.value=e,modelModifiers:{number:!0},type:`number`,min:e.field.min,max:e.field.max},null,8,[`id`,`modelValue`,`min`,`max`])):e.field.type===`select`?(p(),_(ge,{key:6,id:e.id,modelValue:C.value,"onUpdate:modelValue":i[5]||=e=>C.value=e,options:e.field.choices},null,8,[`id`,`modelValue`,`options`])):e.field.type===`toggle`?(p(),u(`label`,{key:7,for:e.id,class:`flex items-center justify-between gap-3 py-0.5 text-[13px] font-medium`},[n(g(e.field.label)+` `,1),t(o(fe),{id:e.id,modelValue:C.value,"onUpdate:modelValue":i[6]||=e=>C.value=e},null,8,[`id`,`modelValue`])],8,He)):e.field.type===`icon`?(p(),u(`div`,Ue,[t(o(q),{modelValue:Y.value,"onUpdate:modelValue":i[7]||=e=>Y.value=e,type:`search`,placeholder:`Alle Symbole durchsuchen (englisch, z. B. calendar)`,class:`h-8 text-[13px]`},null,8,[`modelValue`]),l(`div`,We,[(p(!0),u(m,null,d(X.value,e=>(p(),u(`button`,{key:e.value,type:`button`,class:c([`grid aspect-square place-items-center rounded-md border transition-colors`,C.value===e.value?`border-brand-400 bg-brand-soft text-brand-soft-foreground`:`text-muted-foreground hover:bg-accent`]),title:e.label,"aria-pressed":C.value===e.value,onClick:t=>C.value=e.value},[t(ie,{name:e.value,class:`size-4`},null,8,[`name`])],10,Ge))),128)),Y.value&&!X.value.length?(p(),u(`p`,Ke,`Kein Symbol gefunden.`)):b(``,!0)])])):e.field.type===`image`?(p(),u(`div`,qe,[C.value?(p(),u(`div`,Je,[l(`img`,{src:o(w).imageUrl(C.value),alt:``,class:`aspect-video w-full object-cover`},null,8,Ye),l(`button`,{type:`button`,class:`absolute top-1.5 right-1.5 grid size-7 place-items-center rounded-md bg-card/90 shadow-sm hover:bg-card`,title:`Bild entfernen`,onClick:i[8]||=e=>C.value=null},[t(o(N),{class:`size-4`})])])):b(``,!0),l(`button`,{type:`button`,class:`flex h-9 items-center justify-center gap-2 rounded-md border border-dashed text-[13px] font-medium text-muted-foreground hover:border-brand-300 hover:text-foreground`,disabled:E.value,onClick:i[9]||=e=>D.value?.click()},[E.value?(p(),_(o(S),{key:0,class:`size-4 animate-spin`})):(p(),_(o(ae),{key:1,class:`size-4`})),n(` `+g(C.value?`Anderes Bild wählen`:`Bild hochladen`),1)],8,Xe),l(`input`,{ref_key:`imageInput`,ref:D,type:`file`,accept:`image/jpeg,image/png,image/webp,image/gif`,class:`hidden`,onChange:O},null,544)])):e.field.type===`people`?(p(),u(`div`,Ze,[(C.value??[]).length?(p(),u(`ul`,Qe,[(p(!0),u(m,null,d(C.value,(e,n)=>(p(),u(`li`,{key:e,class:`flex items-center gap-2 rounded-md border bg-card px-2 py-1.5`},[o(F)[e]?(p(),_(ne,{key:0,person:o(F)[e],class:`size-7 text-[10px]`},null,8,[`person`])):b(``,!0),l(`span`,$e,g(o(F)[e]?.name??`…`),1),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>R(C.value,n,-1)},[t(o(j),{class:`size-3.5`})],8,et),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>z(n)},[t(o(N),{class:`size-3.5`})],8,tt)]))),128))])):b(``,!0),l(`div`,nt,[t(o(ee),{class:`pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground`}),t(o(q),{id:e.id,modelValue:M.value,"onUpdate:modelValue":i[10]||=e=>M.value=e,class:`pl-8`,placeholder:`Person suchen …`,autocomplete:`off`},null,8,[`id`,`modelValue`]),P.value.length?(p(),u(`ul`,rt,[(p(!0),u(m,null,d(P.value,e=>(p(),u(`li`,{key:e.id},[l(`button`,{type:`button`,class:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-[13px] hover:bg-accent`,onClick:t=>ce(e)},[t(ne,{person:e,class:`size-7 text-[10px]`},null,8,[`person`]),l(`span`,at,[l(`span`,ot,g(e.name),1),l(`span`,st,g(e.job_title),1)])],8,it)]))),128))])):b(``,!0)])])):e.field.type===`table`?(p(),u(`div`,ct,[l(`div`,lt,[l(`table`,ut,[l(`tbody`,null,[(p(!0),u(m,null,d(B.value,(e,n)=>(p(),u(`tr`,{key:n,class:`border-b last:border-0`},[(p(!0),u(m,null,d(e,(e,t)=>(p(),u(`td`,{key:t,class:`border-r p-0 last:border-r-0`},[l(`input`,{value:e,class:`h-8 w-full min-w-20 bg-transparent px-2 focus:bg-brand-soft/50 focus:outline-none`,"aria-label":`Zeile ${n+1}, Spalte ${t+1}`,onInput:e=>ue(n,t,e.target.value)},null,40,dt)]))),128)),l(`td`,ft,[l(`button`,{type:`button`,class:`grid size-7 place-items-center text-muted-foreground hover:text-destructive`,title:`Zeile entfernen`,onClick:e=>pe(n)},[t(o(N),{class:`size-3.5`})],8,pt)])]))),128)),l(`tr`,null,[(p(!0),u(m,null,d(B.value[0],(e,n)=>(p(),u(`td`,{key:n,class:`p-0 text-center`},[l(`button`,{type:`button`,class:`mx-auto grid size-7 place-items-center text-muted-foreground hover:text-destructive`,title:`Spalte entfernen`,onClick:e=>me(n)},[t(o(N),{class:`size-3.5`})],8,mt)]))),128)),i[13]||=l(`td`,null,null,-1)])])])]),l(`div`,ht,[l(`button`,{type:`button`,class:`inline-flex items-center gap-1 text-[13px] font-medium text-brand-text hover:underline`,onClick:de},[t(o(W),{class:`size-3.5`}),i[14]||=n(` Zeile`,-1)]),l(`button`,{type:`button`,class:`inline-flex items-center gap-1 text-[13px] font-medium text-brand-text hover:underline`,onClick:V},[t(o(W),{class:`size-3.5`}),i[15]||=n(` Spalte`,-1)])])])):e.field.type===`repeater`?(p(),u(`div`,gt,[(p(!0),u(m,null,d(C.value??[],(n,r)=>(p(),u(`details`,{key:r,class:`group rounded-md border bg-card`,open:r===(C.value??[]).length-1},[l(`summary`,vt,[l(`span`,yt,g(n.label||n.title||n.alt||`${e.field.itemLabel} ${r+1}`),1),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:x(e=>R(C.value,r,-1),[`prevent`])},[t(o(j),{class:`size-3.5`})],8,bt),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:x(e=>R(C.value,r,1),[`prevent`])},[t(o(A),{class:`size-3.5`})],8,xt),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:x(e=>z(r),[`prevent`])},[t(o(K),{class:`size-3.5`})],8,St)]),l(`div`,Ct,[(p(!0),u(m,null,d(e.field.fields,t=>(p(),_(a,{id:`${e.id}-${r}-${t.name}`,key:t.name,modelValue:n[t.name],"onUpdate:modelValue":e=>n[t.name]=e,field:t},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`field`]))),128))])],8,_t))),128)),(C.value??[]).length(p(),u(`li`,{key:e,class:`flex items-center gap-2 rounded-md border bg-card px-2 py-1.5 text-[13px]`},[t(o(te),{class:`size-4 shrink-0 text-muted-foreground`}),l(`span`,Et,g(U.value[e]?.name??`Datei nicht mehr vorhanden`),1),U.value[e]?(p(),u(`span`,Dt,g(ve(U.value[e].size)),1)):b(``,!0),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>R(C.value,n,-1)},[t(o(j),{class:`size-3.5`})],8,Ot),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Entfernen`,onClick:e=>z(n)},[t(o(N),{class:`size-3.5`})],8,kt)]))),128))])):b(``,!0),l(`button`,{type:`button`,class:`flex h-9 items-center justify-center gap-2 rounded-md border border-dashed text-[13px] font-medium text-muted-foreground hover:border-brand-300 hover:text-foreground`,disabled:E.value,onClick:i[11]||=e=>H.value?.click()},[E.value?(p(),_(o(S),{key:0,class:`size-4 animate-spin`})):(p(),_(o(he),{key:1,class:`size-4`})),i[16]||=n(` Dateien hochladen `,-1)],8,At),l(`input`,{ref_key:`fileInput`,ref:H,type:`file`,multiple:``,class:`hidden`,onChange:G},null,544),J.value.length?(p(),_(ge,{key:1,"model-value":null,options:J.value.map(e=>({value:e.id,label:e.name})),placeholder:`Bereits hochgeladene Datei wählen …`,"onUpdate:modelValue":i[12]||=e=>e&&(C.value=[...C.value??[],e])},null,8,[`options`])):b(``,!0)])):b(``,!0),e.field.help?(p(),u(`p`,jt,g(e.field.help),1)):b(``,!0)])}}},Nt={key:0,class:`grid gap-5`},Pt={class:`flex items-start gap-3`},Ft={class:`grid size-9 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},It={class:`min-w-0`},Lt={class:`font-semibold`},Rt={key:0,class:`text-xs text-muted-foreground`},zt={key:0,class:`rounded-md bg-muted px-3 py-2 text-xs text-muted-foreground`},Bt={key:1,class:`grid gap-2`},Vt={class:`text-[13px] font-medium`},Ht={key:1,class:`flex-1 text-[13px]`},Ut=[`onClick`],Wt=[`onClick`],Gt=[`disabled`,`onClick`],Kt=[`open`],qt={class:`flex cursor-pointer items-center gap-2 px-3 py-2 text-[13px] font-medium`},Jt={key:0,class:`ml-auto rounded bg-amber-100 px-1.5 py-0.5 text-[11px] text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},Yt={class:`grid gap-3 border-t px-3 py-3`},Xt={class:`mb-1 text-xs font-semibold text-muted-foreground`},Zt={key:0,class:`-mt-1 mb-1 text-[11px] text-muted-foreground`},Qt={class:`grid max-h-36 gap-0.5 overflow-y-auto`},$t=[`checked`,`onChange`],en={__name:`BlockSettings`,props:{block:{type:Object,required:!0}},setup(e){let r=e,s=a(`pagebuilder:editor`),c=f(()=>s.types[r.block.type]),h=f(()=>(c.value?.fields??[]).filter(e=>e.type!==`html`));i(()=>r.block.data.layout,()=>{r.block.type===`columns`&&Pe(r.block)});function v(){r.block.items.push({id:Q(),title:`${c.value.container.label} ${r.block.items.length+1}`,blocks:[]})}function x(e,t){let n=r.block.items,i=e+t;i>=0&&ir.block.visibility??{}),w=f(()=>Object.values(C.value).some(e=>e?.length));function T(e,t){let n=new Set(C.value[e]??[]);n.has(t)?n.delete(t):n.add(t),r.block.visibility={...C.value,[e]:[...n]}}let E=f(()=>[{key:`role`,label:`Rollen`,options:s.audienceOptions.role},{key:`department`,label:`Abteilungen`,options:s.audienceOptions.department.map(e=>({value:e,label:e}))},{key:`location`,label:`Standorte`,options:s.audienceOptions.location.map(e=>({value:e,label:e}))},{key:`exclude_role`,label:`Ausgeschlossene Rollen`,hint:`Sehen den Block nie – auch wenn oben etwas passt.`,options:s.audienceOptions.role}].filter(e=>e.options.length));return(r,i)=>c.value?(p(),u(`div`,Nt,[l(`header`,Pt,[l(`span`,Ft,[(p(),_(y(o(Z)(c.value.icon)),{class:`size-4.5`}))]),l(`div`,It,[l(`h2`,Lt,g(c.value.label),1),c.value.description?(p(),u(`p`,Rt,g(c.value.description),1)):b(``,!0)])]),c.value.fields.some(e=>e.type===`html`)?(p(),u(`p`,zt,` Den Text bearbeiten Sie direkt im Block. Markieren Sie Text für Fettdruck, Links und Listen. `)):b(``,!0),(p(!0),u(m,null,d(h.value,t=>(p(),_(Mt,{id:`field-${e.block.id}-${t.name}`,key:`${e.block.id}-${t.name}`,modelValue:e.block.data[t.name],"onUpdate:modelValue":n=>e.block.data[t.name]=n,field:t},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`field`]))),128)),c.value.container&&c.value.container.max>1&&c.value.key!==`columns`?(p(),u(`section`,Bt,[l(`h3`,Vt,g(c.value.container.label)+`s`,1),(p(!0),u(m,null,d(e.block.items,(n,r)=>(p(),u(`div`,{key:n.id,class:`flex items-center gap-1`},[c.value.container.titled?(p(),_(o(q),{key:0,modelValue:n.title,"onUpdate:modelValue":e=>n.title=e,class:`h-8`,"aria-label":`Titel ${r+1}`,maxlength:`120`},null,8,[`modelValue`,`onUpdate:modelValue`,`aria-label`])):(p(),u(`span`,Ht,g(c.value.container.label)+` `+g(r+1),1)),l(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:e=>x(r,-1)},[t(o(j),{class:`size-3.5`})],8,Ut),l(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:e=>x(r,1)},[t(o(A),{class:`size-3.5`})],8,Wt),l(`button`,{type:`button`,class:`grid size-7 shrink-0 place-items-center rounded text-destructive hover:bg-destructive/10 disabled:opacity-30`,title:`Entfernen`,disabled:e.block.items.length<=c.value.container.min,onClick:e=>S(r)},[t(o(K),{class:`size-3.5`})],8,Gt)]))),128)),e.block.items.length(p(),u(`fieldset`,{key:e.key,class:`grid gap-1`},[l(`legend`,Xt,g(e.label),1),e.hint?(p(),u(`p`,Zt,g(e.hint),1)):b(``,!0),l(`div`,Qt,[(p(!0),u(m,null,d(e.options,t=>(p(),u(`label`,{key:t.value,class:`flex items-center gap-2 rounded px-1 py-0.5 text-[13px] hover:bg-accent`},[l(`input`,{type:`checkbox`,class:`size-4 accent-[var(--brand)]`,checked:(C.value[e.key]??[]).includes(t.value),onChange:n=>T(e.key,t.value)},null,40,$t),n(` `+g(t.label),1)]))),128))])]))),128))])],8,Kt)):b(``,!0)])):b(``,!0)}},tn=[`data-block-id`],nn={class:`pb-handle flex cursor-grab items-center gap-1 rounded px-1 py-0.5 font-medium text-muted-foreground active:cursor-grabbing`,title:`Ziehen zum Verschieben`},rn={key:2,class:`rounded-md border border-dashed p-4 text-sm text-muted-foreground`},an={__name:`EditorBlock`,props:{block:{type:Object,required:!0}},setup(e){let r=e,i=a(`pagebuilder:editor`),s=f(()=>i.types[r.block.type]),d=f(()=>i.selectedId.value===r.block.id),m=f(()=>i.hoveredId.value===r.block.id),h=f(()=>Object.values(r.block.visibility??{}).some(e=>e?.length)),v=f(()=>({...r.block,props:i.previews[r.block.id]??r.block.props}));return(r,a)=>(p(),u(`div`,{class:c([`relative rounded-md outline-offset-4 transition-[outline-color]`,[d.value?`outline-2 outline-brand-500`:m.value?`outline-1 outline-brand-300`:`outline-1 outline-transparent`,s.value?``:`opacity-60`]]),"data-block-id":e.block.id,onClick:a[5]||=x(t=>o(i).select(e.block.id),[`stop`]),onMouseover:a[6]||=x(t=>o(i).hoveredId.value=e.block.id,[`stop`]),onMouseleave:a[7]||=t=>o(i).hoveredId.value===e.block.id&&(o(i).hoveredId.value=null)},[(d.value||m.value)&&!o(i).readOnly.value?(p(),u(`div`,{key:0,class:`absolute -top-3.5 right-2 z-20 flex items-center gap-0.5 rounded-md border bg-card px-1 py-0.5 text-xs shadow-sm`,onClick:a[4]||=x(()=>{},[`stop`])},[l(`span`,nn,[t(o(z),{class:`size-3.5`}),(p(),_(y(o(Z)(s.value?.icon)),{class:`size-3.5`})),n(` `+g(s.value?.label??e.block.type),1)]),h.value?(p(),_(o(V),{key:0,class:`mx-1 size-3.5 text-amber-600`,title:`Nur für bestimmte Personen sichtbar`})):b(``,!0),a[8]||=l(`span`,{class:`mx-0.5 h-4 w-px bg-border`},null,-1),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach oben`,onClick:a[0]||=t=>o(i).move(e.block.id,-1)},[t(o(R),{class:`size-3.5`})]),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Nach unten`,onClick:a[1]||=t=>o(i).move(e.block.id,1)},[t(o(M),{class:`size-3.5`})]),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,title:`Duplizieren`,onClick:a[2]||=t=>o(i).duplicate(e.block.id)},[t(o(ue),{class:`size-3.5`})]),l(`button`,{type:`button`,class:`grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10`,title:`Entfernen`,onClick:a[3]||=t=>o(i).remove(e.block.id)},[t(o(K),{class:`size-3.5`})])])):b(``,!0),s.value&&o(J)(s.value.component)?(p(),_(y(o(J)(s.value.component)),{key:1,block:v.value},null,8,[`block`])):(p(),u(`div`,rn,` Dieser Block (`+g(e.block.type)+`) ist nicht verfügbar – vermutlich ist das zugehörige Plugin deaktiviert. Er wird nicht angezeigt. `,1))],42,tn))}},on={key:0,class:`pointer-events-none text-center text-xs text-muted-foreground`},sn={__name:`EditorBlockList`,props:{item:{type:Object,required:!0},root:{type:Boolean,default:!1}},setup(e){let r=e,i=a(`pagebuilder:editor`),s=f(()=>r.root||i.containsActive(r.item));return(r,a)=>(p(),u(`div`,{class:c([`grid`,e.root?`gap-6`:`gap-4`])},[t(o(B),{modelValue:e.item.blocks,"onUpdate:modelValue":a[0]||=t=>e.item.blocks=t,group:{name:`pagebuilder`},handle:`.pb-handle`,animation:150,disabled:o(i).readOnly.value,"ghost-class":`pb-ghost`,class:c([`grid min-h-6`,[e.root?`gap-6`:`gap-4`,e.item.blocks.length?``:`rounded-md border border-dashed border-border bg-muted/40 p-3`]]),onAdd:a[1]||=t=>o(i).select(e.item.blocks[t.newIndex]?.id)},{default:h(()=>[(p(!0),u(m,null,d(e.item.blocks,e=>(p(),_(an,{key:e.id,block:e},null,8,[`block`]))),128)),e.item.blocks.length?b(``,!0):(p(),u(`p`,on,g(e.root?`Noch keine Inhalte. Blöcke aus der rechten Spalte hierher ziehen oder hinzufügen.`:`Blöcke hierher ziehen`),1))]),_:1},8,[`modelValue`,`disabled`,`class`]),!o(i).readOnly.value&&(s.value||!e.item.blocks.length)?(p(),_(o(F),{key:0},{default:h(()=>[t(o(I),{class:`flex h-8 items-center justify-center gap-1.5 rounded-md border border-dashed text-xs font-medium text-muted-foreground transition-colors hover:border-brand-300 hover:bg-brand-soft hover:text-brand-soft-foreground`,onClick:a[2]||=x(()=>{},[`stop`])},{default:h(()=>[t(o(W),{class:`size-3.5`}),a[5]||=n(` Block hinzufügen `,-1)]),_:1}),t(o(ce),{class:`max-h-[70vh] w-[22rem] overflow-y-auto p-3`,align:`center`,onClick:a[4]||=x(()=>{},[`stop`])},{default:h(()=>[t(ze,{compact:``,onPick:a[3]||=t=>o(i).insert(e.item.blocks,e.item.blocks.length,t)})]),_:1})]),_:1})):b(``,!0)],2))}};export{Ae as a,Ne as c,$ as i,De as l,en as n,je as o,ze as r,Me as s,sn as t}; \ No newline at end of file diff --git a/public/build/assets/EditorialForms-DUnl3fzc.js b/public/build/assets/EditorialForms-DZfmKBqR.js similarity index 94% rename from public/build/assets/EditorialForms-DUnl3fzc.js rename to public/build/assets/EditorialForms-DZfmKBqR.js index 1fc02c0f..18c3cf86 100644 --- a/public/build/assets/EditorialForms-DUnl3fzc.js +++ b/public/build/assets/EditorialForms-DZfmKBqR.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CNhdlRDG.js";import{t as p}from"./download-UAAY3N2F.js";import{t as m}from"./pencil-line-CmAbFj4f.js";import{t as h}from"./plus-B_ij2ng2.js";import{t as g}from"./table-properties-BPjlj2dD.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./Panel-DpvMQ4up.js";var y=[`href`],b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`text-xs text-muted-foreground`},C={class:`font-medium text-brand-text`},w=[`href`],T=[`href`],E={key:1,class:`text-sm text-muted-foreground`},D={__name:`EditorialForms`,props:{forms:{type:Array,required:!0},createUrl:{type:String,default:null}},setup(D){return(O,k)=>(o(),u(v,{title:`Formulare`},{actions:c(()=>[D.createUrl?(o(),u(n(_),{key:0,size:`sm`,variant:`outline`,"as-child":``},{default:c(()=>[r(`a`,{href:D.createUrl},[e(n(h)),k[0]||=t(` Neues Formular`,-1)],8,y)]),_:1})):d(``,!0)]),default:c(()=>[D.forms.length?(o(),i(`ul`,b,[(o(!0),i(s,null,a(D.forms,a=>(o(),i(`li`,{key:a.id,class:`flex items-center gap-3 px-5 py-2.5`},[r(`div`,x,[e(n(f),{href:a.url,class:`block truncate text-sm font-medium hover:underline`},{default:c(()=>[t(l(a.title),1)]),_:2},1032,[`href`]),r(`p`,S,[t(l(a.open?`offen`:`geschlossen`)+` · `+l(a.submissions)+` Einsendungen`,1),a.unread?(o(),i(s,{key:0},[k[1]||=t(`, `,-1),r(`span`,C,l(a.unread)+` neu`,1)],64)):d(``,!0)])]),a.builder_url?(o(),u(n(_),{key:0,size:`icon`,variant:`ghost`,"as-child":``,title:`Felder bearbeiten`},{default:c(()=>[e(n(f),{href:a.builder_url},{default:c(()=>[e(n(m))]),_:1},8,[`href`])]),_:2},1024)):d(``,!0),a.results_url?(o(),u(n(_),{key:1,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse`},{default:c(()=>[r(`a`,{href:a.results_url},[e(n(g))],8,w)]),_:2},1024)):d(``,!0),a.csv_url?(o(),u(n(_),{key:2,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse als CSV herunterladen`},{default:c(()=>[r(`a`,{href:a.csv_url},[e(n(p))],8,T)]),_:2},1024)):d(``,!0)]))),128))])):(o(),i(`p`,E,`Noch keine Formulare.`))]),_:1}))}};export{D as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Cw5f57va.js";import{t as p}from"./download-UAAY3N2F.js";import{t as m}from"./pencil-line-CmAbFj4f.js";import{t as h}from"./plus-B_ij2ng2.js";import{t as g}from"./table-properties-BPjlj2dD.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./Panel-DZcEmK5R.js";var y=[`href`],b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`text-xs text-muted-foreground`},C={class:`font-medium text-brand-text`},w=[`href`],T=[`href`],E={key:1,class:`text-sm text-muted-foreground`},D={__name:`EditorialForms`,props:{forms:{type:Array,required:!0},createUrl:{type:String,default:null}},setup(D){return(O,k)=>(o(),u(v,{title:`Formulare`},{actions:c(()=>[D.createUrl?(o(),u(n(_),{key:0,size:`sm`,variant:`outline`,"as-child":``},{default:c(()=>[r(`a`,{href:D.createUrl},[e(n(h)),k[0]||=t(` Neues Formular`,-1)],8,y)]),_:1})):d(``,!0)]),default:c(()=>[D.forms.length?(o(),i(`ul`,b,[(o(!0),i(s,null,a(D.forms,a=>(o(),i(`li`,{key:a.id,class:`flex items-center gap-3 px-5 py-2.5`},[r(`div`,x,[e(n(f),{href:a.url,class:`block truncate text-sm font-medium hover:underline`},{default:c(()=>[t(l(a.title),1)]),_:2},1032,[`href`]),r(`p`,S,[t(l(a.open?`offen`:`geschlossen`)+` · `+l(a.submissions)+` Einsendungen`,1),a.unread?(o(),i(s,{key:0},[k[1]||=t(`, `,-1),r(`span`,C,l(a.unread)+` neu`,1)],64)):d(``,!0)])]),a.builder_url?(o(),u(n(_),{key:0,size:`icon`,variant:`ghost`,"as-child":``,title:`Felder bearbeiten`},{default:c(()=>[e(n(f),{href:a.builder_url},{default:c(()=>[e(n(m))]),_:1},8,[`href`])]),_:2},1024)):d(``,!0),a.results_url?(o(),u(n(_),{key:1,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse`},{default:c(()=>[r(`a`,{href:a.results_url},[e(n(g))],8,w)]),_:2},1024)):d(``,!0),a.csv_url?(o(),u(n(_),{key:2,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse als CSV herunterladen`},{default:c(()=>[r(`a`,{href:a.csv_url},[e(n(p))],8,T)]),_:2},1024)):d(``,!0)]))),128))])):(o(),i(`p`,E,`Noch keine Formulare.`))]),_:1}))}};export{D as default}; \ No newline at end of file diff --git a/public/build/assets/EditorialNews-DzlekVih.js b/public/build/assets/EditorialNews-CxqDTEpi.js similarity index 95% rename from public/build/assets/EditorialNews-DzlekVih.js rename to public/build/assets/EditorialNews-CxqDTEpi.js index 9e5ca969..e768f96c 100644 --- a/public/build/assets/EditorialNews-DzlekVih.js +++ b/public/build/assets/EditorialNews-CxqDTEpi.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-CNhdlRDG.js";import{t as m}from"./message-square-warning-BFfa_vqd.js";import{t as h}from"./plus-B_ij2ng2.js";import{a as g}from"./format-BsuBtvUs.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./Panel-DpvMQ4up.js";var y={class:`grid gap-5`},b={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},x={key:0,class:`ml-1 rounded-full bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},S={key:0,class:`-mx-5 divide-y border-y`},C={class:`min-w-0 flex-1`},w={class:`truncate text-xs text-muted-foreground`},T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=e=>({pending:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`,published:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`,draft:`bg-muted text-muted-foreground`})[e.status];return(O,k)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[E.canCreate?(s(),d(n(_),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(h)),k[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,y,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:E.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:E.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:E.scheduled,empty:null}].filter(e=>e.items.length||e.empty),h=>(s(),a(`section`,{key:h.key},[i(`h3`,b,[t(u(h.title)+` `,1),h.key===`review`?(s(),a(`span`,x,u(h.items.length),1)):f(``,!0)]),h.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(h.items,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,C,[e(n(p),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,w,[t(u(o.category??`Ohne Kategorie`),1),h.key!==`mine`&&o.author?(s(),a(c,{key:0},[t(` · `+u(o.author),1)],64)):f(``,!0),o.date?(s(),a(c,{key:1},[t(` · `+u(n(g)(o.date)),1)],64)):f(``,!0)])]),o.review_note?(s(),d(n(m),{key:0,class:`size-4 shrink-0 text-amber-600`,title:`Mit Anmerkung zurückgegeben`})):f(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,D(o)])},u(o.status_label),3)]))),128))])):(s(),a(`p`,T,u(h.empty),1))]))),128))])]),_:1}))}};export{E as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-Cw5f57va.js";import{t as m}from"./message-square-warning-BFfa_vqd.js";import{t as h}from"./plus-B_ij2ng2.js";import{a as g}from"./format-BsuBtvUs.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./Panel-DZcEmK5R.js";var y={class:`grid gap-5`},b={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},x={key:0,class:`ml-1 rounded-full bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},S={key:0,class:`-mx-5 divide-y border-y`},C={class:`min-w-0 flex-1`},w={class:`truncate text-xs text-muted-foreground`},T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=e=>({pending:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`,published:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`,draft:`bg-muted text-muted-foreground`})[e.status];return(O,k)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[E.canCreate?(s(),d(n(_),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(h)),k[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,y,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:E.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:E.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:E.scheduled,empty:null}].filter(e=>e.items.length||e.empty),h=>(s(),a(`section`,{key:h.key},[i(`h3`,b,[t(u(h.title)+` `,1),h.key===`review`?(s(),a(`span`,x,u(h.items.length),1)):f(``,!0)]),h.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(h.items,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,C,[e(n(p),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,w,[t(u(o.category??`Ohne Kategorie`),1),h.key!==`mine`&&o.author?(s(),a(c,{key:0},[t(` · `+u(o.author),1)],64)):f(``,!0),o.date?(s(),a(c,{key:1},[t(` · `+u(n(g)(o.date)),1)],64)):f(``,!0)])]),o.review_note?(s(),d(n(m),{key:0,class:`size-4 shrink-0 text-amber-600`,title:`Mit Anmerkung zurückgegeben`})):f(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,D(o)])},u(o.status_label),3)]))),128))])):(s(),a(`p`,T,u(h.empty),1))]))),128))])]),_:1}))}};export{E as default}; \ No newline at end of file diff --git a/public/build/assets/EditorialPages-BCujsTim.js b/public/build/assets/EditorialPages-C93PTBuX.js similarity index 91% rename from public/build/assets/EditorialPages-BCujsTim.js rename to public/build/assets/EditorialPages-C93PTBuX.js index 760ff6c5..a9d79883 100644 --- a/public/build/assets/EditorialPages-BCujsTim.js +++ b/public/build/assets/EditorialPages-C93PTBuX.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-CNhdlRDG.js";import{t as g}from"./lock-H7FAhSBr.js";import{t as _}from"./plus-B_ij2ng2.js";import{a as v}from"./format-BsuBtvUs.js";import{t as y}from"./button-ZHC5mKey.js";import{t as b}from"./Panel-DpvMQ4up.js";import{t as x}from"./NewPageDialog-BoAZlkoa.js";var S={key:0,class:`-mx-5 divide-y border-t`},C={class:`text-xs text-muted-foreground`},w=[`title`],T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialPages`,props:{pages:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=p(!1),O={published:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`},draft:{label:`Entwurf`,class:`bg-brand-soft text-brand-soft-foreground`},scheduled:{label:`Geplant`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},new:{label:`Neu`,class:`bg-muted text-muted-foreground`}};return(p,k)=>(c(),f(b,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(y),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(_)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(v)(o.changed_at)),1)],64)):m(``,!0)])],2),o.locked_by?(c(),a(`span`,{key:0,class:`inline-flex items-center gap-1 text-xs text-muted-foreground`,title:`${o.locked_by} bearbeitet gerade`},[e(n(g),{class:`size-3.5`}),t(` `+d(o.locked_by),1)],8,w)):m(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,O[o.status].class])},d(O[o.status].label),3)],4))),128))])):(c(),a(`p`,T,`Sie dürfen noch keine Seiten bearbeiten.`)),e(x,{open:D.value,"onUpdate:open":k[1]||=e=>D.value=e},null,8,[`open`])]),_:1}))}};export{E as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-Cw5f57va.js";import{t as g}from"./lock-H7FAhSBr.js";import{t as _}from"./plus-B_ij2ng2.js";import{a as v}from"./format-BsuBtvUs.js";import{t as y}from"./button-ZHC5mKey.js";import{t as b}from"./Panel-DZcEmK5R.js";import{t as x}from"./NewPageDialog-DbJDgD-q.js";var S={key:0,class:`-mx-5 divide-y border-t`},C={class:`text-xs text-muted-foreground`},w=[`title`],T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialPages`,props:{pages:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=p(!1),O={published:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`},draft:{label:`Entwurf`,class:`bg-brand-soft text-brand-soft-foreground`},scheduled:{label:`Geplant`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},new:{label:`Neu`,class:`bg-muted text-muted-foreground`}};return(p,k)=>(c(),f(b,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(y),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(_)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(v)(o.changed_at)),1)],64)):m(``,!0)])],2),o.locked_by?(c(),a(`span`,{key:0,class:`inline-flex items-center gap-1 text-xs text-muted-foreground`,title:`${o.locked_by} bearbeitet gerade`},[e(n(g),{class:`size-3.5`}),t(` `+d(o.locked_by),1)],8,w)):m(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,O[o.status].class])},d(O[o.status].label),3)],4))),128))])):(c(),a(`p`,T,`Sie dürfen noch keine Seiten bearbeiten.`)),e(x,{open:D.value,"onUpdate:open":k[1]||=e=>D.value=e},null,8,[`open`])]),_:1}))}};export{E as default}; \ No newline at end of file diff --git a/public/build/assets/EventListItem-CVHgNRZ4.js b/public/build/assets/EventListItem-CAVNWRwl.js similarity index 92% rename from public/build/assets/EventListItem-CVHgNRZ4.js rename to public/build/assets/EventListItem-CAVNWRwl.js index 84170aab..eccaee3b 100644 --- a/public/build/assets/EventListItem-CVHgNRZ4.js +++ b/public/build/assets/EventListItem-CAVNWRwl.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-CNhdlRDG.js";import{r as u}from"./format-BsuBtvUs.js";import{t as d}from"./EventDateBlock-_E5XlLto.js";var f={class:`min-w-0 pt-0.5`},p={class:`line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},m={class:`mt-0.5 text-xs text-muted-foreground`},h={key:0,class:`truncate text-xs text-muted-foreground`},g={__name:`EventListItem`,props:{event:{type:Object,required:!0}},setup(g){return(_,v)=>(i(),s(t(l),{href:`/termine/${g.event.id}`,class:`group flex items-start gap-3.5 py-3`},{default:a(()=>[e(d,{date:g.event.starts_at},null,8,[`date`]),n(`div`,f,[n(`h3`,p,o(g.event.title),1),n(`p`,m,o(t(u)(g.event)),1),g.event.location?(i(),r(`p`,h,o(g.event.location),1)):c(``,!0)])]),_:1},8,[`href`]))}};export{g as t}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-Cw5f57va.js";import{r as u}from"./format-BsuBtvUs.js";import{t as d}from"./EventDateBlock-_E5XlLto.js";var f={class:`min-w-0 pt-0.5`},p={class:`line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},m={class:`mt-0.5 text-xs text-muted-foreground`},h={key:0,class:`truncate text-xs text-muted-foreground`},g={__name:`EventListItem`,props:{event:{type:Object,required:!0}},setup(g){return(_,v)=>(i(),s(t(l),{href:`/termine/${g.event.id}`,class:`group flex items-start gap-3.5 py-3`},{default:a(()=>[e(d,{date:g.event.starts_at},null,8,[`date`]),n(`div`,f,[n(`h3`,p,o(g.event.title),1),n(`p`,m,o(t(u)(g.event)),1),g.event.location?(i(),r(`p`,h,o(g.event.location),1)):c(``,!0)])]),_:1},8,[`href`]))}};export{g as t}; \ No newline at end of file diff --git a/public/build/assets/FileIcon-BLwyvOt_.js b/public/build/assets/FileIcon-CV058fj7.js similarity index 98% rename from public/build/assets/FileIcon-BLwyvOt_.js rename to public/build/assets/FileIcon-CV058fj7.js index 9a096a42..e59c0a39 100644 --- a/public/build/assets/FileIcon-BLwyvOt_.js +++ b/public/build/assets/FileIcon-CV058fj7.js @@ -1 +1 @@ -import{Zn as e,b as t,g as n,mt as r,tr as i,v as a,wt as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{k as c}from"./dist-DtGNiYlK.js";import{J as l}from"./AppIcon-D91Q4hzR.js";var u=c({name:`file-archive`,size:24,node:[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),d=c({name:`file-image`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]}),f=c({name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]}),p=c({name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]}),m=c({name:`presentation`,size:24,node:[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]}),h=[`title`],g={key:0,class:`absolute -bottom-1.5 rounded-[3px] bg-card px-1 text-[9px] leading-tight font-bold tracking-wide text-current ring-1 ring-border`},_={__name:`FileIcon`,props:{extension:{type:String,default:``},size:{type:String,default:`md`}},setup(c){let _=c,v={icon:l},y={icon:f},b={PDF:{...v,class:`bg-red-50 text-red-700 dark:bg-red-950/50 dark:text-red-300`},DOC:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},DOCX:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},ODT:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},RTF:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},TXT:{...v,class:`bg-muted text-muted-foreground`},XLS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},XLSX:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},CSV:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},ODS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},PPT:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},PPTX:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},JPG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},JPEG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},PNG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},ZIP:{icon:u,class:`bg-amber-50 text-amber-700 dark:bg-amber-950/50 dark:text-amber-300`}},x=n(()=>b[_.extension?.toUpperCase()]??{icon:p,class:`bg-muted text-muted-foreground`}),S=n(()=>({sm:`size-8 rounded-md`,md:`size-10 rounded-md`,lg:`size-14 rounded-lg`})[_.size]),C=n(()=>({sm:`size-4`,md:`size-5`,lg:`size-7`})[_.size]);return(n,l)=>(r(),t(`span`,{class:e([`relative grid shrink-0 place-items-center`,[S.value,x.value.class]]),title:c.extension||void 0},[(r(),a(o(x.value.icon),{class:e(C.value),"stroke-width":1.75},null,8,[`class`])),c.extension&&c.size!==`sm`?(r(),t(`span`,g,i(c.extension),1)):s(``,!0)],10,h))}};export{_ as t}; \ No newline at end of file +import{Zn as e,b as t,g as n,mt as r,tr as i,v as a,wt as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{k as c}from"./dist-DtGNiYlK.js";import{J as l}from"./AppIcon-BiVN_tuL.js";var u=c({name:`file-archive`,size:24,node:[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),d=c({name:`file-image`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]}),f=c({name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]}),p=c({name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]}),m=c({name:`presentation`,size:24,node:[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]}),h=[`title`],g={key:0,class:`absolute -bottom-1.5 rounded-[3px] bg-card px-1 text-[9px] leading-tight font-bold tracking-wide text-current ring-1 ring-border`},_={__name:`FileIcon`,props:{extension:{type:String,default:``},size:{type:String,default:`md`}},setup(c){let _=c,v={icon:l},y={icon:f},b={PDF:{...v,class:`bg-red-50 text-red-700 dark:bg-red-950/50 dark:text-red-300`},DOC:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},DOCX:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},ODT:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},RTF:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},TXT:{...v,class:`bg-muted text-muted-foreground`},XLS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},XLSX:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},CSV:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},ODS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},PPT:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},PPTX:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},JPG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},JPEG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},PNG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},ZIP:{icon:u,class:`bg-amber-50 text-amber-700 dark:bg-amber-950/50 dark:text-amber-300`}},x=n(()=>b[_.extension?.toUpperCase()]??{icon:p,class:`bg-muted text-muted-foreground`}),S=n(()=>({sm:`size-8 rounded-md`,md:`size-10 rounded-md`,lg:`size-14 rounded-lg`})[_.size]),C=n(()=>({sm:`size-4`,md:`size-5`,lg:`size-7`})[_.size]);return(n,l)=>(r(),t(`span`,{class:e([`relative grid shrink-0 place-items-center`,[S.value,x.value.class]]),title:c.extension||void 0},[(r(),a(o(x.value.icon),{class:e(C.value),"stroke-width":1.75},null,8,[`class`])),c.extension&&c.size!==`sm`?(r(),t(`span`,g,i(c.extension),1)):s(``,!0)],10,h))}};export{_ as t}; \ No newline at end of file diff --git a/public/build/assets/Folder-CUnxEWYw.js b/public/build/assets/Folder-D98mLoeR.js similarity index 97% rename from public/build/assets/Folder-CUnxEWYw.js rename to public/build/assets/Folder-D98mLoeR.js index b05eae44..7c62c310 100644 --- a/public/build/assets/Folder-CUnxEWYw.js +++ b/public/build/assets/Folder-D98mLoeR.js @@ -1 +1 @@ -import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,Yt as o,Zn as s,_ as c,b as l,bt as u,er as d,g as f,mt as p,o as m,qt as h,tr as g,v as _,vn as v,wt as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{_ as x,w as S}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as C,i as w,n as T,r as E}from"./app-CNhdlRDG.js";import{O as D,k as O}from"./dist-DtGNiYlK.js";import{D as k,J as ee,Z as A,a as j,c as te,i as ne,o as M,s as re}from"./AppIcon-D91Q4hzR.js";import{t as ie}from"./AppLayout-B1gBMLPE.js";import{_ as ae,o as oe,t as se}from"./http-DmyDwIce.js";import{t as N}from"./download-UAAY3N2F.js";import{t as ce}from"./ellipsis-vertical-B9wuHo-w.js";import{n as P,r as F,t as I}from"./format-uZU1H-69.js";import{t as le}from"./FileIcon-BLwyvOt_.js";import{t as ue}from"./file-plus-corner-Z8xo1q-K.js";import{i as L,n as R,r as z,t as B}from"./FolderTile-DPEGhvOX.js";import{t as V}from"./link-2-DbrWevIe.js";import{t as H}from"./paperclip-DmVAQ5Y5.js";import{t as U}from"./pencil-line-CmAbFj4f.js";import{t as de}from"./trash-DUqnVIgb.js";import{t as W}from"./DialogDescription-CCacFT45.js";import{t as G}from"./FormField-BoFAO4pm.js";import{t as fe}from"./EmptyState-Ceq4v8mE.js";import{t as pe}from"./PageHeader-vFc2LbBj.js";import{t as K}from"./button-ZHC5mKey.js";import{t as me}from"./NativeSelect-BGasRaNs.js";import{t as q}from"./Input-FGSb2-yK.js";import{t as he}from"./Skeleton-fJgmuUSB.js";import{i as J,n as ge,r as Y,t as X}from"./dialog-37na293D.js";import{t as Z}from"./DialogHeader-DuqiL3ry.js";import{t as _e}from"./colors-RDOJqd57.js";import{t as ve}from"./QmSearchBox-D0RtqPjX.js";var ye=O({name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]}),be=O({name:`file-up`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]}),xe=O({name:`files`,size:24,node:[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]}),Se=O({name:`scan-text`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 8h8`,key:`1jbsf9`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h6`,key:`1vyc9m`}]]}),Ce={key:0,class:`grid gap-2`,"aria-busy":`true`},we={key:1,class:`-mx-2 divide-y`},Te={class:`min-w-0 flex-1`},Ee={class:`truncate text-sm`},De={key:0,class:`ml-1 text-[11px] text-muted-foreground`},Oe={class:`text-xs text-muted-foreground`},ke=[`href`],Ae={__name:`ArchiveDialog`,props:{open:{type:Boolean,default:!1},entry:{type:Object,default:null}},emits:[`update:open`],setup(e){let r=e,o=v(null);return i(()=>r.open,async e=>{e&&r.entry&&(o.value=null,o.value=(await se.get(`/qm/eintraege/${r.entry.id}/archiv`)).files)}),(r,i)=>(p(),_(a(J),{open:e.open,"onUpdate:open":i[0]||=e=>r.$emit(`update:open`,e)},{default:h(()=>[t(a(Y),{class:`sm:max-w-2xl`},{default:h(()=>[t(a(Z),null,{default:h(()=>[t(a(X),null,{default:h(()=>[...i[1]||=[n(`Fassungen`,-1)]]),_:1}),t(a(W),null,{default:h(()=>[n(g(e.entry?.title)+` – frühere Fassungen sieht nur das QM-Team.`,1)]),_:1})]),_:1}),o.value?(p(),l(`ul`,we,[(p(!0),l(m,null,u(o.value,e=>(p(),l(`li`,{key:e.id,class:`flex items-center gap-3 px-2 py-2.5`},[c(`div`,Te,[c(`p`,Ee,[n(g(e.name)+` `,1),c(`span`,{class:s([`ml-1 rounded px-1.5 py-0.5 text-[11px]`,e.archived?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-soft-foreground`])},g(e.archived?`Archiv`:`aktuell`),3),e.kind===`editable`?(p(),l(`span`,De,`Vorlage`)):b(``,!0)]),c(`p`,Oe,[n(` Version `+g(e.version||`–`)+` · Stand `+g(a(P)(e.valid_from))+` · `+g(a(I)(e.size)),1),e.uploader?(p(),l(m,{key:0},[n(` · `+g(e.uploader),1)],64)):b(``,!0)])]),t(a(K),{variant:`ghost`,size:`icon`,"as-child":``,title:`${e.name} herunterladen`},{default:h(()=>[c(`a`,{href:e.url},[t(a(N))],8,ke)]),_:2},1032,[`title`])]))),128))])):(p(),l(`div`,Ce,[(p(),l(m,null,u(3,e=>t(a(he),{key:e,class:`h-10`})),64))]))]),_:1})]),_:1},8,[`open`]))}},je={class:`flex min-w-0 items-center gap-2`},Me=[`id`,`accept`],Ne={key:0,class:`flex min-w-0 items-center gap-1 text-[13px]`},Pe={class:`truncate`},Fe={key:1,class:`text-[13px] text-muted-foreground`},Q={__name:`FilePick`,props:e({id:{type:String,required:!0},accept:{type:String,default:``}},{modelValue:{type:[Object,null],default:null},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let i=r(e,`modelValue`),o=v(null);function s(e){i.value=e.target.files[0]??null}function u(){i.value=null,o.value&&(o.value.value=``)}return(r,d)=>(p(),l(`div`,je,[c(`input`,{id:e.id,ref_key:`input`,ref:o,type:`file`,class:`sr-only`,accept:e.accept,onChange:s},null,40,Me),t(a(K),{type:`button`,variant:`outline`,size:`sm`,onClick:d[0]||=e=>o.value?.click()},{default:h(()=>[t(a(H)),d[1]||=n(` Datei auswählen`,-1)]),_:1}),i.value?(p(),l(`span`,Ne,[c(`span`,Pe,g(i.value.name),1),c(`button`,{type:`button`,class:`grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent`,"aria-label":`Auswahl entfernen`,onClick:u},[t(a(ae),{class:`size-3.5`})])])):(p(),l(`span`,Fe,`Keine Datei ausgewählt`))]))}},Ie={key:0,class:`grid grid-cols-3 gap-2`,role:`radiogroup`,"aria-label":`Art des Eintrags`},Le=[`aria-checked`,`onClick`],Re={class:`grid gap-4 sm:grid-cols-2`},ze={key:0,class:`flex items-center gap-2 text-[13px]`},Be={class:`text-xs text-muted-foreground`},Ve={key:4,class:`h-1 overflow-hidden rounded-full bg-muted`},He={__name:`EntryDialog`,props:{open:{type:Boolean,default:!1},mode:{type:String,default:`create`},entry:{type:Object,default:null},folderId:{type:Number,required:!0},forms:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20}},emits:[`update:open`],setup(e,{emit:r}){let v=e,C=r,w=()=>new Date().toISOString().slice(0,10),T=E({type:`file`,title:``,description:``,version:``,valid_from:w(),url:``,form_id:null,reading:null,editable:null,remove_editable:!1});i(()=>v.open,e=>{if(!e)return;T.clearErrors();let t=v.entry;T.defaults({type:t?.type??`file`,title:t?.title??``,description:t?.description??``,version:t?.version??``,valid_from:v.mode===`version`?w():t?.valid_from??w(),url:t?.url??``,form_id:t?.form_id??null,reading:null,editable:null,remove_editable:!1}),T.reset()});let O=[{value:`file`,label:`Datei`,icon:ee},{value:`link`,label:`Link`,icon:V},{value:`form`,label:`Online-Formular`,icon:A}],k=f(()=>({create:`Eintrag hinzufügen`,edit:`Eintrag bearbeiten`,version:`Neue Fassung hochladen`})[v.mode]);function j(){let e=v.mode===`create`?`/qm/ordner/${v.folderId}/eintraege`:`/qm/eintraege/${v.entry.id}`;T.post(e,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>C(`update:open`,!1)})}return(r,i)=>(p(),_(a(J),{open:e.open,"onUpdate:open":i[10]||=e=>C(`update:open`,e)},{default:h(()=>[t(a(Y),{class:`sm:max-w-xl`},{default:h(()=>[t(a(Z),null,{default:h(()=>[t(a(X),null,{default:h(()=>[n(g(k.value),1)]),_:1}),e.mode===`version`?(p(),_(a(W),{key:0},{default:h(()=>[n(`„`+g(e.entry?.title)+`“ – die bisherige Fassung kommt ins Archiv und bleibt für das QM-Team abrufbar.`,1)]),_:1})):b(``,!0)]),_:1}),c(`form`,{class:`grid gap-4`,onSubmit:S(j,[`prevent`])},[e.mode===`create`?(p(),l(`div`,Ie,[(p(),l(m,null,u(O,e=>c(`button`,{key:e.value,type:`button`,role:`radio`,"aria-checked":a(T).type===e.value,class:s([`flex items-center justify-center gap-2 rounded-md border px-3 py-2 text-sm`,a(T).type===e.value?`border-brand-400 bg-brand-soft font-medium text-brand-soft-foreground`:`hover:bg-accent`]),onClick:t=>a(T).type=e.value},[(p(),_(y(e.icon),{class:`size-4`})),n(` `+g(e.label),1)],10,Le)),64))])):b(``,!0),t(G,{id:`qm-title`,label:`Titel`,error:a(T).errors.title},{default:h(()=>[t(a(q),{id:`qm-title`,modelValue:a(T).title,"onUpdate:modelValue":i[0]||=e=>a(T).title=e,maxlength:`250`,placeholder:`z. B. Urlaubsantrag`},null,8,[`modelValue`])]),_:1},8,[`error`]),c(`div`,Re,[t(G,{id:`qm-version`,label:`Version`,error:a(T).errors.version},{default:h(()=>[t(a(q),{id:`qm-version`,modelValue:a(T).version,"onUpdate:modelValue":i[1]||=e=>a(T).version=e,maxlength:`30`,placeholder:`z. B. 2.1`},null,8,[`modelValue`])]),_:1},8,[`error`]),t(G,{id:`qm-valid`,label:`Stand (gültig ab)`,error:a(T).errors.valid_from},{default:h(()=>[t(a(q),{id:`qm-valid`,modelValue:a(T).valid_from,"onUpdate:modelValue":i[2]||=e=>a(T).valid_from=e,type:`date`},null,8,[`modelValue`])]),_:1},8,[`error`])]),t(G,{id:`qm-description`,label:`Beschreibung (optional)`,error:a(T).errors.description},{default:h(()=>[t(a(q),{id:`qm-description`,modelValue:a(T).description,"onUpdate:modelValue":i[3]||=e=>a(T).description=e,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(T).type===`file`?(p(),l(m,{key:1},[t(G,{id:`qm-reading`,label:e.mode===`edit`?`Datei ersetzen (optional – neue Fassung)`:`Datei (PDF empfohlen – öffnet sich direkt zum Lesen)`,error:a(T).errors.reading},{default:h(()=>[t(Q,{id:`qm-reading`,modelValue:a(T).reading,"onUpdate:modelValue":i[4]||=e=>a(T).reading=e,accept:`.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp,.rtf,.txt,.csv,.png,.jpg,.jpeg,.gif,.webp,.zip`},null,8,[`modelValue`])]),_:1},8,[`label`,`error`]),t(G,{id:`qm-editable`,label:`Bearbeitbare Vorlage (optional, z. B. Word oder Excel zum Ausfüllen)`,error:a(T).errors.editable},{default:h(()=>[t(Q,{id:`qm-editable`,modelValue:a(T).editable,"onUpdate:modelValue":i[5]||=e=>a(T).editable=e,accept:`.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp,.rtf,.txt,.csv,.pdf,.zip`},null,8,[`modelValue`])]),_:1},8,[`error`]),e.mode!==`create`&&e.entry?.editable&&!a(T).editable?(p(),l(`label`,ze,[o(c(`input`,{"onUpdate:modelValue":i[6]||=e=>a(T).remove_editable=e,type:`checkbox`},null,512),[[x,a(T).remove_editable]]),n(` Bisherige Vorlage „`+g(e.entry.editable.name)+`“ entfernen `,1)])):b(``,!0),c(`p`,Be,`Bis `+g(e.maxUploadMb)+` MB je Datei. Der Inhalt wird für die Suche erfasst.`,1)],64)):b(``,!0),a(T).type===`link`?(p(),_(G,{key:2,id:`qm-url`,label:`Adresse`,error:a(T).errors.url},{default:h(()=>[t(a(q),{id:`qm-url`,modelValue:a(T).url,"onUpdate:modelValue":i[7]||=e=>a(T).url=e,placeholder:`https://… oder /seiten/…`},null,8,[`modelValue`])]),_:1},8,[`error`])):b(``,!0),a(T).type===`form`?(p(),_(G,{key:3,id:`qm-form`,label:`Formular`,error:a(T).errors.form_id},{default:h(()=>[t(me,{id:`qm-form`,modelValue:a(T).form_id,"onUpdate:modelValue":i[8]||=e=>a(T).form_id=e,options:[{value:null,label:`Bitte wählen …`},...e.forms]},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])):b(``,!0),t(a(ge),null,{default:h(()=>[t(a(K),{type:`button`,variant:`outline`,onClick:i[9]||=e=>C(`update:open`,!1)},{default:h(()=>[...i[11]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(K),{type:`submit`,disabled:a(T).processing||e.mode===`version`&&!a(T).reading&&!a(T).editable},{default:h(()=>[a(T).processing?(p(),_(a(D),{key:0,class:`animate-spin`})):b(``,!0),i[12]||=n(` Speichern `,-1)]),_:1},8,[`disabled`])]),_:1}),a(T).progress?(p(),l(`div`,Ve,[c(`div`,{class:`h-full bg-brand`,style:d({width:`${a(T).progress.percentage}%`})},null,4)])):b(``,!0)],32)]),_:1})]),_:1},8,[`open`]))}},Ue={class:`overflow-hidden rounded-lg border bg-card`},We={class:`divide-y`},Ge={class:`flex min-w-0 items-center gap-3`},Ke={key:1,class:`grid size-8 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},qe={class:`min-w-0`},Je={key:1,class:`block truncate text-sm font-medium`},Ye={key:2,class:`truncate text-xs text-muted-foreground`},Xe={class:`flex flex-wrap items-center gap-x-2 text-xs text-muted-foreground`},Ze={class:`md:hidden`},Qe=[`href`,`title`],$e={key:1,class:`inline-flex items-center gap-1 text-amber-700 dark:text-amber-400`,title:`Eingescanntes PDF – Inhalt erst nach Texterkennung durchsuchbar`},et={class:`hidden text-[13px] md:block`},tt={class:`hidden text-[13px] tabular-nums md:block`},nt={class:`hidden text-right text-[13px] text-muted-foreground tabular-nums md:block`},rt={class:`flex items-center justify-end gap-1`},it=[`href`,`aria-label`],at={key:2,class:`hidden size-8 md:block`,"aria-hidden":`true`},ot={__name:`EntryTable`,props:{entries:{type:Array,required:!0},canManage:{type:Boolean,default:!1}},emits:[`edit`,`new-version`,`archive`,`remove`],setup(e){let r={view:`Lesen`,download:`Herunterladen`,link:`Öffnen`,form:`Ausfüllen`},i=e=>e.open_kind===`link`||e.open_kind===`download`;return(o,d)=>(p(),l(`div`,Ue,[c(`div`,{class:s([`hidden grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_9.5rem] items-center gap-4 border-b bg-muted/40 px-4 py-2 text-xs font-medium text-muted-foreground md:grid`,{"md:grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_11.5rem]":e.canManage}])},[...d[0]||=[c(`span`,null,`Dokument`,-1),c(`span`,null,`Version`,-1),c(`span`,null,`Stand`,-1),c(`span`,{class:`text-right`},`Größe`,-1),c(`span`,{class:`sr-only`},`Aktion`,-1)]],2),c(`ul`,We,[(p(!0),l(m,null,u(e.entries,u=>(p(),l(`li`,{key:u.id,class:s([`grid items-center gap-x-4 gap-y-1 px-4 py-2.5 hover:bg-accent/50 md:grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_9.5rem]`,{"md:grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_11.5rem]":e.canManage}])},[c(`div`,Ge,[u.type===`file`?(p(),_(le,{key:0,extension:u.extension,size:`sm`},null,8,[`extension`])):(p(),l(`span`,Ke,[u.type===`form`?(p(),_(a(A),{key:0,class:`size-4`})):(p(),_(a(F),{key:1,class:`size-4`}))])),c(`div`,qe,[u.open_url?(p(),_(y(i(u)?`a`:a(T)),{key:0,href:u.open_url,target:u.open_kind===`link`?`_blank`:void 0,rel:u.open_kind===`link`?`noopener`:void 0,class:`block truncate text-sm font-medium hover:underline`},{default:h(()=>[n(g(u.title),1)]),_:2},1032,[`href`,`target`,`rel`])):(p(),l(`span`,Je,g(u.title),1)),u.description?(p(),l(`p`,Ye,g(u.description),1)):b(``,!0),c(`p`,Xe,[c(`span`,Ze,g(u.version?`Version ${u.version} · `:``)+`Stand `+g(a(P)(u.valid_from)),1),u.editable?(p(),l(`a`,{key:0,href:u.editable.url,class:`inline-flex items-center gap-1 text-brand-text hover:underline`,title:u.editable.name},[t(a(N),{class:`size-3`}),n(` Vorlage (`+g(u.editable.extension)+`) `,1)],8,Qe)):b(``,!0),e.canManage&&u.text_status===`needs_ocr`?(p(),l(`span`,$e,[t(a(Se),{class:`size-3`}),d[1]||=n(` Scan, Inhalt nicht durchsuchbar `,-1)])):b(``,!0)])])]),c(`span`,et,g(u.version||`–`),1),c(`span`,tt,g(a(P)(u.valid_from)),1),c(`span`,nt,g(u.type===`file`?a(I)(u.size):`–`),1),c(`div`,rt,[u.open_url?(p(),_(a(K),{key:0,size:`sm`,variant:`outline`,class:`h-8 min-w-28`,"as-child":``},{default:h(()=>[(p(),_(y(i(u)?`a`:a(T)),{href:u.open_url,target:u.open_kind===`link`?`_blank`:void 0,rel:u.open_kind===`link`?`noopener`:void 0},{default:h(()=>[u.open_kind===`link`?(p(),_(a(F),{key:0})):u.open_kind===`form`?(p(),_(a(A),{key:1})):u.open_kind===`download`?(p(),_(a(N),{key:2})):b(``,!0),n(` `+g(r[u.open_kind]),1)]),_:2},1032,[`href`,`target`,`rel`]))]),_:2},1024)):b(``,!0),u.open_kind===`view`&&u.download_url?(p(),_(a(K),{key:1,size:`icon`,variant:`ghost`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${u.title} herunterladen`},{default:h(()=>[c(`a`,{href:u.download_url,"aria-label":`${u.title} herunterladen`},[t(a(N))],8,it)]),_:2},1032,[`title`])):(p(),l(`span`,at)),e.canManage?(p(),_(a(te),{key:3},{default:h(()=>[t(a(ne),{"as-child":``},{default:h(()=>[t(a(K),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${u.title}`},{default:h(()=>[t(a(ce))]),_:1},8,[`aria-label`])]),_:2},1024),t(a(re),{align:`end`,class:`w-56`},{default:h(()=>[t(a(M),{onSelect:e=>o.$emit(`edit`,u)},{default:h(()=>[t(a(U)),d[2]||=n(` Bearbeiten`,-1)]),_:1},8,[`onSelect`]),u.type===`file`?(p(),_(a(M),{key:0,onSelect:e=>o.$emit(`new-version`,u)},{default:h(()=>[t(a(be)),d[3]||=n(` Neue Fassung hochladen`,-1)]),_:1},8,[`onSelect`])):b(``,!0),u.type===`file`?(p(),_(a(M),{key:1,onSelect:e=>o.$emit(`archive`,u)},{default:h(()=>[t(a(ye)),d[4]||=n(` Archiv (frühere Fassungen)`,-1)]),_:1},8,[`onSelect`])):b(``,!0),t(a(j)),t(a(M),{class:`text-destructive`,onSelect:e=>o.$emit(`remove`,u)},{default:h(()=>[t(a(de)),d[5]||=n(` Löschen`,-1)]),_:1},8,[`onSelect`])]),_:2},1024)]),_:2},1024)):b(``,!0)])],2))),128))])]))}},st=[`href`],ct={class:`grid min-w-0 gap-6`},lt={key:0,class:`relative overflow-hidden rounded-lg border bg-card p-5 pl-6`},ut=[`innerHTML`],dt={key:1},ft={class:`grid grid-cols-[repeat(auto-fill,minmax(11.5rem,1fr))] gap-3`},$={class:`mb-3 flex items-center justify-between gap-3`},pt={class:`text-sm font-semibold text-muted-foreground`},mt={key:0,class:`font-normal`},ht={key:1,class:`rounded-lg border border-dashed bg-card`},gt={key:0,class:`rounded-lg border bg-card`},_t={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},vt={class:`grid gap-4 p-4`},yt={__name:`Folder`,props:{folder:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},children:{type:Array,default:()=>[]},entries:{type:Array,default:()=>[]},canManage:{type:Boolean,default:!1},forms:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20},adminUrl:{type:String,default:null}},setup(e){let r=e,o=w();i(()=>o.props.flash.status,e=>e&&oe.success(e),{immediate:!0});let d=f(()=>_e(r.folder.color)),y=f(()=>[{label:`Qualitätsmanagement`,href:`/qm`},...r.breadcrumbs.map(e=>({label:e.name,href:`/qm/ordner/${e.id}`}))]),x=f(()=>r.folder.contacts.length>0),S=v({open:!1,mode:`create`,entry:null}),T=v({open:!1,entry:null}),E=(e,t=null)=>S.value={open:!0,mode:e,entry:t};function D(e){window.confirm(`„${e.title}“ mit allen Fassungen löschen?`)&&C.delete(`/qm/eintraege/${e.id}`,{preserveScroll:!0})}return(r,i)=>(p(),_(ie,{title:e.folder.name},{default:h(()=>[t(pe,{title:e.folder.name,breadcrumbs:y.value},{leading:h(()=>[c(`span`,{class:s([`grid size-12 shrink-0 place-items-center rounded-lg text-white shadow-xs`,d.value.tile])},[t(R,{icon:e.folder.icon,class:`size-6`},null,8,[`icon`])],2)]),actions:h(()=>[e.adminUrl?(p(),_(a(K),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:h(()=>[c(`a`,{href:e.adminUrl},[t(a(L)),i[6]||=n(` Ordner bearbeiten`,-1)],8,st)]),_:1})):b(``,!0),t(ve)]),_:1},8,[`title`,`breadcrumbs`]),c(`div`,{class:s([`grid items-start gap-6`,{"lg:grid-cols-[minmax(0,1fr)_20rem]":x.value}])},[c(`div`,ct,[e.folder.intro?(p(),l(`section`,lt,[c(`span`,{class:s([`absolute inset-y-0 left-0 w-1.5`,d.value.tile]),"aria-hidden":`true`},null,2),c(`div`,{class:`prose prose-sm max-w-none dark:prose-invert`,innerHTML:e.folder.intro},null,8,ut)])):b(``,!0),e.children.length?(p(),l(`section`,dt,[i[7]||=c(`h2`,{class:`mb-3 text-sm font-semibold text-muted-foreground`},`Unterordner`,-1),c(`div`,ft,[(p(!0),l(m,null,u(e.children,e=>(p(),_(B,{key:e.id,folder:e,small:``},null,8,[`folder`]))),128))])])):b(``,!0),c(`section`,null,[c(`div`,$,[c(`h2`,pt,[i[8]||=n(`Dokumente `,-1),e.entries.length?(p(),l(`span`,mt,`(`+g(e.entries.length)+`)`,1)):b(``,!0)]),e.canManage?(p(),_(a(K),{key:0,size:`sm`,onClick:i[0]||=e=>E(`create`)},{default:h(()=>[t(a(ue)),i[9]||=n(` Eintrag hinzufügen`,-1)]),_:1})):b(``,!0)]),e.entries.length?(p(),_(ot,{key:0,entries:e.entries,"can-manage":e.canManage,onEdit:i[1]||=e=>E(`edit`,e),onNewVersion:i[2]||=e=>E(`version`,e),onArchive:i[3]||=e=>T.value={open:!0,entry:e},onRemove:D},null,8,[`entries`,`can-manage`])):(p(),l(`div`,ht,[t(fe,{icon:a(xe),title:`Noch keine Dokumente`,text:e.canManage?`Mit „Eintrag hinzufügen“ Dateien, Links oder Formulare ergänzen.`:``},null,8,[`icon`,`text`])]))])]),x.value?(p(),l(`aside`,gt,[c(`h2`,_t,[t(a(k),{class:s([`size-4`,d.value.text])},null,8,[`class`]),n(` `+g(e.folder.contacts.length===1?`Ansprechpartner*in`:`Ansprechpartner*innen`),1)]),c(`div`,vt,[(p(!0),l(m,null,u(e.folder.contacts,e=>(p(),_(z,{key:e.id,contact:e},null,8,[`contact`]))),128))])])):b(``,!0)],2),e.canManage?(p(),_(He,{key:0,open:S.value.open,"onUpdate:open":i[4]||=e=>S.value.open=e,mode:S.value.mode,entry:S.value.entry,"folder-id":e.folder.id,forms:e.forms,"max-upload-mb":e.maxUploadMb},null,8,[`open`,`mode`,`entry`,`folder-id`,`forms`,`max-upload-mb`])):b(``,!0),e.canManage?(p(),_(Ae,{key:1,open:T.value.open,"onUpdate:open":i[5]||=e=>T.value.open=e,entry:T.value.entry},null,8,[`open`,`entry`])):b(``,!0)]),_:1},8,[`title`]))}};export{yt as default}; \ No newline at end of file +import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,Yt as o,Zn as s,_ as c,b as l,bt as u,er as d,g as f,mt as p,o as m,qt as h,tr as g,v as _,vn as v,wt as y,y as b}from"./runtime-core.esm-bundler-B8D2lM98.js";import{_ as x,w as S}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as C,i as w,n as T,r as E}from"./app-Cw5f57va.js";import{O as D,k as O}from"./dist-DtGNiYlK.js";import{D as k,J as ee,Z as A,a as j,c as te,i as ne,o as M,s as re}from"./AppIcon-BiVN_tuL.js";import{t as ie}from"./AppLayout-9kc4awMB.js";import{_ as ae,o as oe,t as se}from"./http-DmyDwIce.js";import{t as N}from"./download-UAAY3N2F.js";import{t as ce}from"./ellipsis-vertical-B9wuHo-w.js";import{n as P,r as F,t as I}from"./format-uZU1H-69.js";import{t as le}from"./FileIcon-CV058fj7.js";import{t as ue}from"./file-plus-corner-Z8xo1q-K.js";import{i as L,n as R,r as z,t as B}from"./FolderTile-DexaOIc1.js";import{t as V}from"./link-2-DbrWevIe.js";import{t as H}from"./paperclip-DmVAQ5Y5.js";import{t as U}from"./pencil-line-CmAbFj4f.js";import{t as de}from"./trash-DUqnVIgb.js";import{t as W}from"./DialogDescription-9G5-5WG4.js";import{t as G}from"./FormField-BoFAO4pm.js";import{t as fe}from"./EmptyState-Ceq4v8mE.js";import{t as pe}from"./PageHeader-r1Deze0_.js";import{t as K}from"./button-ZHC5mKey.js";import{t as me}from"./NativeSelect-BGasRaNs.js";import{t as q}from"./Input-FGSb2-yK.js";import{t as he}from"./Skeleton-fJgmuUSB.js";import{i as J,n as ge,r as Y,t as X}from"./dialog-DiN2bNwR.js";import{t as Z}from"./DialogHeader-DuqiL3ry.js";import{t as _e}from"./colors-RDOJqd57.js";import{t as ve}from"./QmSearchBox-zTKdUUQq.js";var ye=O({name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]}),be=O({name:`file-up`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]}),xe=O({name:`files`,size:24,node:[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]}),Se=O({name:`scan-text`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 8h8`,key:`1jbsf9`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h6`,key:`1vyc9m`}]]}),Ce={key:0,class:`grid gap-2`,"aria-busy":`true`},we={key:1,class:`-mx-2 divide-y`},Te={class:`min-w-0 flex-1`},Ee={class:`truncate text-sm`},De={key:0,class:`ml-1 text-[11px] text-muted-foreground`},Oe={class:`text-xs text-muted-foreground`},ke=[`href`],Ae={__name:`ArchiveDialog`,props:{open:{type:Boolean,default:!1},entry:{type:Object,default:null}},emits:[`update:open`],setup(e){let r=e,o=v(null);return i(()=>r.open,async e=>{e&&r.entry&&(o.value=null,o.value=(await se.get(`/qm/eintraege/${r.entry.id}/archiv`)).files)}),(r,i)=>(p(),_(a(J),{open:e.open,"onUpdate:open":i[0]||=e=>r.$emit(`update:open`,e)},{default:h(()=>[t(a(Y),{class:`sm:max-w-2xl`},{default:h(()=>[t(a(Z),null,{default:h(()=>[t(a(X),null,{default:h(()=>[...i[1]||=[n(`Fassungen`,-1)]]),_:1}),t(a(W),null,{default:h(()=>[n(g(e.entry?.title)+` – frühere Fassungen sieht nur das QM-Team.`,1)]),_:1})]),_:1}),o.value?(p(),l(`ul`,we,[(p(!0),l(m,null,u(o.value,e=>(p(),l(`li`,{key:e.id,class:`flex items-center gap-3 px-2 py-2.5`},[c(`div`,Te,[c(`p`,Ee,[n(g(e.name)+` `,1),c(`span`,{class:s([`ml-1 rounded px-1.5 py-0.5 text-[11px]`,e.archived?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-soft-foreground`])},g(e.archived?`Archiv`:`aktuell`),3),e.kind===`editable`?(p(),l(`span`,De,`Vorlage`)):b(``,!0)]),c(`p`,Oe,[n(` Version `+g(e.version||`–`)+` · Stand `+g(a(P)(e.valid_from))+` · `+g(a(I)(e.size)),1),e.uploader?(p(),l(m,{key:0},[n(` · `+g(e.uploader),1)],64)):b(``,!0)])]),t(a(K),{variant:`ghost`,size:`icon`,"as-child":``,title:`${e.name} herunterladen`},{default:h(()=>[c(`a`,{href:e.url},[t(a(N))],8,ke)]),_:2},1032,[`title`])]))),128))])):(p(),l(`div`,Ce,[(p(),l(m,null,u(3,e=>t(a(he),{key:e,class:`h-10`})),64))]))]),_:1})]),_:1},8,[`open`]))}},je={class:`flex min-w-0 items-center gap-2`},Me=[`id`,`accept`],Ne={key:0,class:`flex min-w-0 items-center gap-1 text-[13px]`},Pe={class:`truncate`},Fe={key:1,class:`text-[13px] text-muted-foreground`},Q={__name:`FilePick`,props:e({id:{type:String,required:!0},accept:{type:String,default:``}},{modelValue:{type:[Object,null],default:null},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let i=r(e,`modelValue`),o=v(null);function s(e){i.value=e.target.files[0]??null}function u(){i.value=null,o.value&&(o.value.value=``)}return(r,d)=>(p(),l(`div`,je,[c(`input`,{id:e.id,ref_key:`input`,ref:o,type:`file`,class:`sr-only`,accept:e.accept,onChange:s},null,40,Me),t(a(K),{type:`button`,variant:`outline`,size:`sm`,onClick:d[0]||=e=>o.value?.click()},{default:h(()=>[t(a(H)),d[1]||=n(` Datei auswählen`,-1)]),_:1}),i.value?(p(),l(`span`,Ne,[c(`span`,Pe,g(i.value.name),1),c(`button`,{type:`button`,class:`grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent`,"aria-label":`Auswahl entfernen`,onClick:u},[t(a(ae),{class:`size-3.5`})])])):(p(),l(`span`,Fe,`Keine Datei ausgewählt`))]))}},Ie={key:0,class:`grid grid-cols-3 gap-2`,role:`radiogroup`,"aria-label":`Art des Eintrags`},Le=[`aria-checked`,`onClick`],Re={class:`grid gap-4 sm:grid-cols-2`},ze={key:0,class:`flex items-center gap-2 text-[13px]`},Be={class:`text-xs text-muted-foreground`},Ve={key:4,class:`h-1 overflow-hidden rounded-full bg-muted`},He={__name:`EntryDialog`,props:{open:{type:Boolean,default:!1},mode:{type:String,default:`create`},entry:{type:Object,default:null},folderId:{type:Number,required:!0},forms:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20}},emits:[`update:open`],setup(e,{emit:r}){let v=e,C=r,w=()=>new Date().toISOString().slice(0,10),T=E({type:`file`,title:``,description:``,version:``,valid_from:w(),url:``,form_id:null,reading:null,editable:null,remove_editable:!1});i(()=>v.open,e=>{if(!e)return;T.clearErrors();let t=v.entry;T.defaults({type:t?.type??`file`,title:t?.title??``,description:t?.description??``,version:t?.version??``,valid_from:v.mode===`version`?w():t?.valid_from??w(),url:t?.url??``,form_id:t?.form_id??null,reading:null,editable:null,remove_editable:!1}),T.reset()});let O=[{value:`file`,label:`Datei`,icon:ee},{value:`link`,label:`Link`,icon:V},{value:`form`,label:`Online-Formular`,icon:A}],k=f(()=>({create:`Eintrag hinzufügen`,edit:`Eintrag bearbeiten`,version:`Neue Fassung hochladen`})[v.mode]);function j(){let e=v.mode===`create`?`/qm/ordner/${v.folderId}/eintraege`:`/qm/eintraege/${v.entry.id}`;T.post(e,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>C(`update:open`,!1)})}return(r,i)=>(p(),_(a(J),{open:e.open,"onUpdate:open":i[10]||=e=>C(`update:open`,e)},{default:h(()=>[t(a(Y),{class:`sm:max-w-xl`},{default:h(()=>[t(a(Z),null,{default:h(()=>[t(a(X),null,{default:h(()=>[n(g(k.value),1)]),_:1}),e.mode===`version`?(p(),_(a(W),{key:0},{default:h(()=>[n(`„`+g(e.entry?.title)+`“ – die bisherige Fassung kommt ins Archiv und bleibt für das QM-Team abrufbar.`,1)]),_:1})):b(``,!0)]),_:1}),c(`form`,{class:`grid gap-4`,onSubmit:S(j,[`prevent`])},[e.mode===`create`?(p(),l(`div`,Ie,[(p(),l(m,null,u(O,e=>c(`button`,{key:e.value,type:`button`,role:`radio`,"aria-checked":a(T).type===e.value,class:s([`flex items-center justify-center gap-2 rounded-md border px-3 py-2 text-sm`,a(T).type===e.value?`border-brand-400 bg-brand-soft font-medium text-brand-soft-foreground`:`hover:bg-accent`]),onClick:t=>a(T).type=e.value},[(p(),_(y(e.icon),{class:`size-4`})),n(` `+g(e.label),1)],10,Le)),64))])):b(``,!0),t(G,{id:`qm-title`,label:`Titel`,error:a(T).errors.title},{default:h(()=>[t(a(q),{id:`qm-title`,modelValue:a(T).title,"onUpdate:modelValue":i[0]||=e=>a(T).title=e,maxlength:`250`,placeholder:`z. B. Urlaubsantrag`},null,8,[`modelValue`])]),_:1},8,[`error`]),c(`div`,Re,[t(G,{id:`qm-version`,label:`Version`,error:a(T).errors.version},{default:h(()=>[t(a(q),{id:`qm-version`,modelValue:a(T).version,"onUpdate:modelValue":i[1]||=e=>a(T).version=e,maxlength:`30`,placeholder:`z. B. 2.1`},null,8,[`modelValue`])]),_:1},8,[`error`]),t(G,{id:`qm-valid`,label:`Stand (gültig ab)`,error:a(T).errors.valid_from},{default:h(()=>[t(a(q),{id:`qm-valid`,modelValue:a(T).valid_from,"onUpdate:modelValue":i[2]||=e=>a(T).valid_from=e,type:`date`},null,8,[`modelValue`])]),_:1},8,[`error`])]),t(G,{id:`qm-description`,label:`Beschreibung (optional)`,error:a(T).errors.description},{default:h(()=>[t(a(q),{id:`qm-description`,modelValue:a(T).description,"onUpdate:modelValue":i[3]||=e=>a(T).description=e,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(T).type===`file`?(p(),l(m,{key:1},[t(G,{id:`qm-reading`,label:e.mode===`edit`?`Datei ersetzen (optional – neue Fassung)`:`Datei (PDF empfohlen – öffnet sich direkt zum Lesen)`,error:a(T).errors.reading},{default:h(()=>[t(Q,{id:`qm-reading`,modelValue:a(T).reading,"onUpdate:modelValue":i[4]||=e=>a(T).reading=e,accept:`.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp,.rtf,.txt,.csv,.png,.jpg,.jpeg,.gif,.webp,.zip`},null,8,[`modelValue`])]),_:1},8,[`label`,`error`]),t(G,{id:`qm-editable`,label:`Bearbeitbare Vorlage (optional, z. B. Word oder Excel zum Ausfüllen)`,error:a(T).errors.editable},{default:h(()=>[t(Q,{id:`qm-editable`,modelValue:a(T).editable,"onUpdate:modelValue":i[5]||=e=>a(T).editable=e,accept:`.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp,.rtf,.txt,.csv,.pdf,.zip`},null,8,[`modelValue`])]),_:1},8,[`error`]),e.mode!==`create`&&e.entry?.editable&&!a(T).editable?(p(),l(`label`,ze,[o(c(`input`,{"onUpdate:modelValue":i[6]||=e=>a(T).remove_editable=e,type:`checkbox`},null,512),[[x,a(T).remove_editable]]),n(` Bisherige Vorlage „`+g(e.entry.editable.name)+`“ entfernen `,1)])):b(``,!0),c(`p`,Be,`Bis `+g(e.maxUploadMb)+` MB je Datei. Der Inhalt wird für die Suche erfasst.`,1)],64)):b(``,!0),a(T).type===`link`?(p(),_(G,{key:2,id:`qm-url`,label:`Adresse`,error:a(T).errors.url},{default:h(()=>[t(a(q),{id:`qm-url`,modelValue:a(T).url,"onUpdate:modelValue":i[7]||=e=>a(T).url=e,placeholder:`https://… oder /seiten/…`},null,8,[`modelValue`])]),_:1},8,[`error`])):b(``,!0),a(T).type===`form`?(p(),_(G,{key:3,id:`qm-form`,label:`Formular`,error:a(T).errors.form_id},{default:h(()=>[t(me,{id:`qm-form`,modelValue:a(T).form_id,"onUpdate:modelValue":i[8]||=e=>a(T).form_id=e,options:[{value:null,label:`Bitte wählen …`},...e.forms]},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])):b(``,!0),t(a(ge),null,{default:h(()=>[t(a(K),{type:`button`,variant:`outline`,onClick:i[9]||=e=>C(`update:open`,!1)},{default:h(()=>[...i[11]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(K),{type:`submit`,disabled:a(T).processing||e.mode===`version`&&!a(T).reading&&!a(T).editable},{default:h(()=>[a(T).processing?(p(),_(a(D),{key:0,class:`animate-spin`})):b(``,!0),i[12]||=n(` Speichern `,-1)]),_:1},8,[`disabled`])]),_:1}),a(T).progress?(p(),l(`div`,Ve,[c(`div`,{class:`h-full bg-brand`,style:d({width:`${a(T).progress.percentage}%`})},null,4)])):b(``,!0)],32)]),_:1})]),_:1},8,[`open`]))}},Ue={class:`overflow-hidden rounded-lg border bg-card`},We={class:`divide-y`},Ge={class:`flex min-w-0 items-center gap-3`},Ke={key:1,class:`grid size-8 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},qe={class:`min-w-0`},Je={key:1,class:`block truncate text-sm font-medium`},Ye={key:2,class:`truncate text-xs text-muted-foreground`},Xe={class:`flex flex-wrap items-center gap-x-2 text-xs text-muted-foreground`},Ze={class:`md:hidden`},Qe=[`href`,`title`],$e={key:1,class:`inline-flex items-center gap-1 text-amber-700 dark:text-amber-400`,title:`Eingescanntes PDF – Inhalt erst nach Texterkennung durchsuchbar`},et={class:`hidden text-[13px] md:block`},tt={class:`hidden text-[13px] tabular-nums md:block`},nt={class:`hidden text-right text-[13px] text-muted-foreground tabular-nums md:block`},rt={class:`flex items-center justify-end gap-1`},it=[`href`,`aria-label`],at={key:2,class:`hidden size-8 md:block`,"aria-hidden":`true`},ot={__name:`EntryTable`,props:{entries:{type:Array,required:!0},canManage:{type:Boolean,default:!1}},emits:[`edit`,`new-version`,`archive`,`remove`],setup(e){let r={view:`Lesen`,download:`Herunterladen`,link:`Öffnen`,form:`Ausfüllen`},i=e=>e.open_kind===`link`||e.open_kind===`download`;return(o,d)=>(p(),l(`div`,Ue,[c(`div`,{class:s([`hidden grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_9.5rem] items-center gap-4 border-b bg-muted/40 px-4 py-2 text-xs font-medium text-muted-foreground md:grid`,{"md:grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_11.5rem]":e.canManage}])},[...d[0]||=[c(`span`,null,`Dokument`,-1),c(`span`,null,`Version`,-1),c(`span`,null,`Stand`,-1),c(`span`,{class:`text-right`},`Größe`,-1),c(`span`,{class:`sr-only`},`Aktion`,-1)]],2),c(`ul`,We,[(p(!0),l(m,null,u(e.entries,u=>(p(),l(`li`,{key:u.id,class:s([`grid items-center gap-x-4 gap-y-1 px-4 py-2.5 hover:bg-accent/50 md:grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_9.5rem]`,{"md:grid-cols-[minmax(0,1fr)_6rem_7rem_6rem_11.5rem]":e.canManage}])},[c(`div`,Ge,[u.type===`file`?(p(),_(le,{key:0,extension:u.extension,size:`sm`},null,8,[`extension`])):(p(),l(`span`,Ke,[u.type===`form`?(p(),_(a(A),{key:0,class:`size-4`})):(p(),_(a(F),{key:1,class:`size-4`}))])),c(`div`,qe,[u.open_url?(p(),_(y(i(u)?`a`:a(T)),{key:0,href:u.open_url,target:u.open_kind===`link`?`_blank`:void 0,rel:u.open_kind===`link`?`noopener`:void 0,class:`block truncate text-sm font-medium hover:underline`},{default:h(()=>[n(g(u.title),1)]),_:2},1032,[`href`,`target`,`rel`])):(p(),l(`span`,Je,g(u.title),1)),u.description?(p(),l(`p`,Ye,g(u.description),1)):b(``,!0),c(`p`,Xe,[c(`span`,Ze,g(u.version?`Version ${u.version} · `:``)+`Stand `+g(a(P)(u.valid_from)),1),u.editable?(p(),l(`a`,{key:0,href:u.editable.url,class:`inline-flex items-center gap-1 text-brand-text hover:underline`,title:u.editable.name},[t(a(N),{class:`size-3`}),n(` Vorlage (`+g(u.editable.extension)+`) `,1)],8,Qe)):b(``,!0),e.canManage&&u.text_status===`needs_ocr`?(p(),l(`span`,$e,[t(a(Se),{class:`size-3`}),d[1]||=n(` Scan, Inhalt nicht durchsuchbar `,-1)])):b(``,!0)])])]),c(`span`,et,g(u.version||`–`),1),c(`span`,tt,g(a(P)(u.valid_from)),1),c(`span`,nt,g(u.type===`file`?a(I)(u.size):`–`),1),c(`div`,rt,[u.open_url?(p(),_(a(K),{key:0,size:`sm`,variant:`outline`,class:`h-8 min-w-28`,"as-child":``},{default:h(()=>[(p(),_(y(i(u)?`a`:a(T)),{href:u.open_url,target:u.open_kind===`link`?`_blank`:void 0,rel:u.open_kind===`link`?`noopener`:void 0},{default:h(()=>[u.open_kind===`link`?(p(),_(a(F),{key:0})):u.open_kind===`form`?(p(),_(a(A),{key:1})):u.open_kind===`download`?(p(),_(a(N),{key:2})):b(``,!0),n(` `+g(r[u.open_kind]),1)]),_:2},1032,[`href`,`target`,`rel`]))]),_:2},1024)):b(``,!0),u.open_kind===`view`&&u.download_url?(p(),_(a(K),{key:1,size:`icon`,variant:`ghost`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${u.title} herunterladen`},{default:h(()=>[c(`a`,{href:u.download_url,"aria-label":`${u.title} herunterladen`},[t(a(N))],8,it)]),_:2},1032,[`title`])):(p(),l(`span`,at)),e.canManage?(p(),_(a(te),{key:3},{default:h(()=>[t(a(ne),{"as-child":``},{default:h(()=>[t(a(K),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${u.title}`},{default:h(()=>[t(a(ce))]),_:1},8,[`aria-label`])]),_:2},1024),t(a(re),{align:`end`,class:`w-56`},{default:h(()=>[t(a(M),{onSelect:e=>o.$emit(`edit`,u)},{default:h(()=>[t(a(U)),d[2]||=n(` Bearbeiten`,-1)]),_:1},8,[`onSelect`]),u.type===`file`?(p(),_(a(M),{key:0,onSelect:e=>o.$emit(`new-version`,u)},{default:h(()=>[t(a(be)),d[3]||=n(` Neue Fassung hochladen`,-1)]),_:1},8,[`onSelect`])):b(``,!0),u.type===`file`?(p(),_(a(M),{key:1,onSelect:e=>o.$emit(`archive`,u)},{default:h(()=>[t(a(ye)),d[4]||=n(` Archiv (frühere Fassungen)`,-1)]),_:1},8,[`onSelect`])):b(``,!0),t(a(j)),t(a(M),{class:`text-destructive`,onSelect:e=>o.$emit(`remove`,u)},{default:h(()=>[t(a(de)),d[5]||=n(` Löschen`,-1)]),_:1},8,[`onSelect`])]),_:2},1024)]),_:2},1024)):b(``,!0)])],2))),128))])]))}},st=[`href`],ct={class:`grid min-w-0 gap-6`},lt={key:0,class:`relative overflow-hidden rounded-lg border bg-card p-5 pl-6`},ut=[`innerHTML`],dt={key:1},ft={class:`grid grid-cols-[repeat(auto-fill,minmax(11.5rem,1fr))] gap-3`},$={class:`mb-3 flex items-center justify-between gap-3`},pt={class:`text-sm font-semibold text-muted-foreground`},mt={key:0,class:`font-normal`},ht={key:1,class:`rounded-lg border border-dashed bg-card`},gt={key:0,class:`rounded-lg border bg-card`},_t={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},vt={class:`grid gap-4 p-4`},yt={__name:`Folder`,props:{folder:{type:Object,required:!0},breadcrumbs:{type:Array,default:()=>[]},children:{type:Array,default:()=>[]},entries:{type:Array,default:()=>[]},canManage:{type:Boolean,default:!1},forms:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20},adminUrl:{type:String,default:null}},setup(e){let r=e,o=w();i(()=>o.props.flash.status,e=>e&&oe.success(e),{immediate:!0});let d=f(()=>_e(r.folder.color)),y=f(()=>[{label:`Qualitätsmanagement`,href:`/qm`},...r.breadcrumbs.map(e=>({label:e.name,href:`/qm/ordner/${e.id}`}))]),x=f(()=>r.folder.contacts.length>0),S=v({open:!1,mode:`create`,entry:null}),T=v({open:!1,entry:null}),E=(e,t=null)=>S.value={open:!0,mode:e,entry:t};function D(e){window.confirm(`„${e.title}“ mit allen Fassungen löschen?`)&&C.delete(`/qm/eintraege/${e.id}`,{preserveScroll:!0})}return(r,i)=>(p(),_(ie,{title:e.folder.name},{default:h(()=>[t(pe,{title:e.folder.name,breadcrumbs:y.value},{leading:h(()=>[c(`span`,{class:s([`grid size-12 shrink-0 place-items-center rounded-lg text-white shadow-xs`,d.value.tile])},[t(R,{icon:e.folder.icon,class:`size-6`},null,8,[`icon`])],2)]),actions:h(()=>[e.adminUrl?(p(),_(a(K),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:h(()=>[c(`a`,{href:e.adminUrl},[t(a(L)),i[6]||=n(` Ordner bearbeiten`,-1)],8,st)]),_:1})):b(``,!0),t(ve)]),_:1},8,[`title`,`breadcrumbs`]),c(`div`,{class:s([`grid items-start gap-6`,{"lg:grid-cols-[minmax(0,1fr)_20rem]":x.value}])},[c(`div`,ct,[e.folder.intro?(p(),l(`section`,lt,[c(`span`,{class:s([`absolute inset-y-0 left-0 w-1.5`,d.value.tile]),"aria-hidden":`true`},null,2),c(`div`,{class:`prose prose-sm max-w-none dark:prose-invert`,innerHTML:e.folder.intro},null,8,ut)])):b(``,!0),e.children.length?(p(),l(`section`,dt,[i[7]||=c(`h2`,{class:`mb-3 text-sm font-semibold text-muted-foreground`},`Unterordner`,-1),c(`div`,ft,[(p(!0),l(m,null,u(e.children,e=>(p(),_(B,{key:e.id,folder:e,small:``},null,8,[`folder`]))),128))])])):b(``,!0),c(`section`,null,[c(`div`,$,[c(`h2`,pt,[i[8]||=n(`Dokumente `,-1),e.entries.length?(p(),l(`span`,mt,`(`+g(e.entries.length)+`)`,1)):b(``,!0)]),e.canManage?(p(),_(a(K),{key:0,size:`sm`,onClick:i[0]||=e=>E(`create`)},{default:h(()=>[t(a(ue)),i[9]||=n(` Eintrag hinzufügen`,-1)]),_:1})):b(``,!0)]),e.entries.length?(p(),_(ot,{key:0,entries:e.entries,"can-manage":e.canManage,onEdit:i[1]||=e=>E(`edit`,e),onNewVersion:i[2]||=e=>E(`version`,e),onArchive:i[3]||=e=>T.value={open:!0,entry:e},onRemove:D},null,8,[`entries`,`can-manage`])):(p(),l(`div`,ht,[t(fe,{icon:a(xe),title:`Noch keine Dokumente`,text:e.canManage?`Mit „Eintrag hinzufügen“ Dateien, Links oder Formulare ergänzen.`:``},null,8,[`icon`,`text`])]))])]),x.value?(p(),l(`aside`,gt,[c(`h2`,_t,[t(a(k),{class:s([`size-4`,d.value.text])},null,8,[`class`]),n(` `+g(e.folder.contacts.length===1?`Ansprechpartner*in`:`Ansprechpartner*innen`),1)]),c(`div`,vt,[(p(!0),l(m,null,u(e.folder.contacts,e=>(p(),_(z,{key:e.id,contact:e},null,8,[`contact`]))),128))])])):b(``,!0)],2),e.canManage?(p(),_(He,{key:0,open:S.value.open,"onUpdate:open":i[4]||=e=>S.value.open=e,mode:S.value.mode,entry:S.value.entry,"folder-id":e.folder.id,forms:e.forms,"max-upload-mb":e.maxUploadMb},null,8,[`open`,`mode`,`entry`,`folder-id`,`forms`,`max-upload-mb`])):b(``,!0),e.canManage?(p(),_(Ae,{key:1,open:T.value.open,"onUpdate:open":i[5]||=e=>T.value.open=e,entry:T.value.entry},null,8,[`open`,`entry`])):b(``,!0)]),_:1},8,[`title`]))}};export{yt as default}; \ No newline at end of file diff --git a/public/build/assets/FolderBlock-CQcDFWfT.js b/public/build/assets/FolderBlock-DFa2ZUGp.js similarity index 93% rename from public/build/assets/FolderBlock-CQcDFWfT.js rename to public/build/assets/FolderBlock-DFa2ZUGp.js index 20deb354..90696dab 100644 --- a/public/build/assets/FolderBlock-CQcDFWfT.js +++ b/public/build/assets/FolderBlock-DFa2ZUGp.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as d}from"./app-CNhdlRDG.js";import{t as f}from"./chevron-right-C9w5cb2q.js";import{t as p}from"./download-UAAY3N2F.js";import{t as m}from"./FileIcon-BLwyvOt_.js";var h={key:0},g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={class:`divide-y rounded-lg border bg-card`},y=[`href`],b={class:`min-w-0 flex-1`},x={class:`block truncate text-sm font-medium group-hover:underline`},S={key:0,class:`block truncate text-[13px] text-muted-foreground`},C={class:`block text-xs text-muted-foreground`},w={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},T={__name:`FolderBlock`,props:{block:{type:Object,required:!0}},setup(T){let E=e=>e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(D,O)=>T.block.props?(o(),i(`section`,h,[T.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(T.block.data.title),1),e(n(d),{href:T.block.props.folder_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[O[0]||=t(`Zum Ordner `,-1),e(n(f),{class:`size-3.5`})]),_:1},8,[`href`])])):u(``,!0),r(`ul`,v,[(o(!0),i(s,null,a(T.block.props.downloads,t=>(o(),i(`li`,{key:t.id},[r(`a`,{href:t.download_url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[e(m,{extension:t.extension},null,8,[`extension`]),r(`span`,b,[r(`span`,x,l(t.title),1),T.block.data.show_description&&t.description?(o(),i(`span`,S,l(t.description),1)):u(``,!0),r(`span`,C,l(t.extension)+` · `+l(E(t.size)),1)]),e(n(p),{class:`size-4 shrink-0 text-muted-foreground`})],8,y)]))),128)),T.block.props.downloads.length?u(``,!0):(o(),i(`li`,w,`Keine Dateien in diesem Ordner.`))])])):u(``,!0)}};export{T as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as d}from"./app-Cw5f57va.js";import{t as f}from"./chevron-right-C9w5cb2q.js";import{t as p}from"./download-UAAY3N2F.js";import{t as m}from"./FileIcon-CV058fj7.js";var h={key:0},g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={class:`divide-y rounded-lg border bg-card`},y=[`href`],b={class:`min-w-0 flex-1`},x={class:`block truncate text-sm font-medium group-hover:underline`},S={key:0,class:`block truncate text-[13px] text-muted-foreground`},C={class:`block text-xs text-muted-foreground`},w={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},T={__name:`FolderBlock`,props:{block:{type:Object,required:!0}},setup(T){let E=e=>e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(D,O)=>T.block.props?(o(),i(`section`,h,[T.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(T.block.data.title),1),e(n(d),{href:T.block.props.folder_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[O[0]||=t(`Zum Ordner `,-1),e(n(f),{class:`size-3.5`})]),_:1},8,[`href`])])):u(``,!0),r(`ul`,v,[(o(!0),i(s,null,a(T.block.props.downloads,t=>(o(),i(`li`,{key:t.id},[r(`a`,{href:t.download_url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[e(m,{extension:t.extension},null,8,[`extension`]),r(`span`,b,[r(`span`,x,l(t.title),1),T.block.data.show_description&&t.description?(o(),i(`span`,S,l(t.description),1)):u(``,!0),r(`span`,C,l(t.extension)+` · `+l(E(t.size)),1)]),e(n(p),{class:`size-4 shrink-0 text-muted-foreground`})],8,y)]))),128)),T.block.props.downloads.length?u(``,!0):(o(),i(`li`,w,`Keine Dateien in diesem Ordner.`))])])):u(``,!0)}};export{T as default}; \ No newline at end of file diff --git a/public/build/assets/FolderTile-DPEGhvOX.js b/public/build/assets/FolderTile-DexaOIc1.js similarity index 95% rename from public/build/assets/FolderTile-DPEGhvOX.js rename to public/build/assets/FolderTile-DexaOIc1.js index 3e51800d..1ca6c708 100644 --- a/public/build/assets/FolderTile-DPEGhvOX.js +++ b/public/build/assets/FolderTile-DexaOIc1.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-CNhdlRDG.js";import{k as g}from"./dist-DtGNiYlK.js";import{V as _,p as v,t as y}from"./AppIcon-D91Q4hzR.js";import{y as b}from"./http-DmyDwIce.js";import{t as x}from"./smartphone-BE2l7T-2.js";import{t as S}from"./colors-RDOJqd57.js";var C=g({name:`folder-cog`,size:24,node:[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]],aliases:[`folder-cog-2`]}),w={class:`flex gap-3`},T={class:`min-w-0 pt-0.5`},E={class:`mt-1 grid gap-0.5 text-[13px]`},D=[`href`],O={key:2,class:`truncate text-muted-foreground`},k={__name:`ContactCard`,props:{contact:{type:Object,required:!0}},setup(r){let s=e=>e.type===`phone`?`tel:${e.value}`:e.type===`email`?`mailto:${e.value}`:null,g=e=>e.key===`mobile`?x:e.type===`phone`?b:e.type===`email`?_:null;return(_,y)=>(c(),a(`div`,w,[e(n(h),{href:`/personen/${r.contact.id}`,class:`shrink-0`},{default:u(()=>[e(v,{person:r.contact,class:`size-14 text-base`},null,8,[`person`])]),_:1},8,[`href`]),i(`div`,T,[e(n(h),{href:`/personen/${r.contact.id}`,class:`block truncate text-sm font-semibold hover:underline`},{default:u(()=>[t(d(r.contact.name),1)]),_:1},8,[`href`]),i(`ul`,E,[(c(!0),a(l,null,o(r.contact.fields,e=>(c(),a(`li`,{key:e.key,class:`flex min-w-0 items-center gap-1.5`},[g(e)?(c(),f(p(g(e)),{key:0,class:`size-3.5 shrink-0 text-muted-foreground`})):m(``,!0),s(e)?(c(),a(`a`,{key:1,href:s(e),class:`truncate text-brand-text hover:underline`},d(e.value),9,D)):(c(),a(`span`,O,d(e.value),1))]))),128))])])]))}},A=[`src`],j={__name:`QmIcon`,props:{icon:{type:Object,default:()=>({name:`folder`})},strokeWidth:{type:[Number,String],default:1.75}},setup(e){return(t,n)=>e.icon?.name?(c(),f(y,{key:0,name:e.icon.name,"stroke-width":e.strokeWidth},null,8,[`name`,`stroke-width`])):e.icon?.url&&e.icon.mono?(c(),a(`span`,{key:1,class:`inline-block bg-current`,style:s({maskImage:`url('${e.icon.url}')`,WebkitMaskImage:`url('${e.icon.url}')`,maskSize:`contain`,WebkitMaskSize:`contain`,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`}),"aria-hidden":`true`},null,4)):e.icon?.url?(c(),a(`img`,{key:2,src:e.icon.url,alt:``,class:`object-contain`},null,8,A)):(c(),f(y,{key:3,name:`folder`,"stroke-width":e.strokeWidth},null,8,[`stroke-width`]))}},M={class:`pointer-events-none absolute -right-4 -bottom-5 opacity-15 transition-transform group-hover:scale-105`,"aria-hidden":`true`},N={class:`relative mt-3`},P={class:`mt-0.5 block text-xs text-white/80`},F={__name:`FolderTile`,props:{folder:{type:Object,required:!0},small:{type:Boolean,default:!1}},setup(t){let a=t,o=()=>{let e=[];return a.folder.folders&&e.push(`${a.folder.folders} ${a.folder.folders,`Ordner`}`),a.folder.entries&&e.push(`${a.folder.entries} ${a.folder.entries===1?`Dokument`:`Dokumente`}`),e.join(` · `)||`Noch leer`};return(a,s)=>(c(),f(n(h),{href:t.folder.url,class:r([`group relative flex flex-col justify-between overflow-hidden rounded-lg text-white shadow-xs transition hover:shadow-md hover:brightness-110 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none`,[n(S)(t.folder.color).tile,t.small?`min-h-24 p-3.5`:`min-h-32 p-4`]])},{default:u(()=>[i(`span`,M,[e(j,{icon:t.folder.icon,class:r(t.small?`size-20`:`size-24`)},null,8,[`icon`,`class`])]),i(`span`,{class:r([`grid place-items-center rounded-md bg-white/15`,t.small?`size-9`:`size-11`])},[e(j,{icon:t.folder.icon,class:r(t.small?`size-5`:`size-6`)},null,8,[`icon`,`class`])],2),i(`span`,N,[i(`span`,{class:r([`block leading-tight font-semibold`,t.small?`text-sm`:`text-[15px]`])},d(t.folder.name),3),i(`span`,P,d(o()),1)])]),_:1},8,[`href`,`class`]))}};export{C as i,j as n,k as r,F as t}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-Cw5f57va.js";import{k as g}from"./dist-DtGNiYlK.js";import{V as _,p as v,t as y}from"./AppIcon-BiVN_tuL.js";import{y as b}from"./http-DmyDwIce.js";import{t as x}from"./smartphone-BE2l7T-2.js";import{t as S}from"./colors-RDOJqd57.js";var C=g({name:`folder-cog`,size:24,node:[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]],aliases:[`folder-cog-2`]}),w={class:`flex gap-3`},T={class:`min-w-0 pt-0.5`},E={class:`mt-1 grid gap-0.5 text-[13px]`},D=[`href`],O={key:2,class:`truncate text-muted-foreground`},k={__name:`ContactCard`,props:{contact:{type:Object,required:!0}},setup(r){let s=e=>e.type===`phone`?`tel:${e.value}`:e.type===`email`?`mailto:${e.value}`:null,g=e=>e.key===`mobile`?x:e.type===`phone`?b:e.type===`email`?_:null;return(_,y)=>(c(),a(`div`,w,[e(n(h),{href:`/personen/${r.contact.id}`,class:`shrink-0`},{default:u(()=>[e(v,{person:r.contact,class:`size-14 text-base`},null,8,[`person`])]),_:1},8,[`href`]),i(`div`,T,[e(n(h),{href:`/personen/${r.contact.id}`,class:`block truncate text-sm font-semibold hover:underline`},{default:u(()=>[t(d(r.contact.name),1)]),_:1},8,[`href`]),i(`ul`,E,[(c(!0),a(l,null,o(r.contact.fields,e=>(c(),a(`li`,{key:e.key,class:`flex min-w-0 items-center gap-1.5`},[g(e)?(c(),f(p(g(e)),{key:0,class:`size-3.5 shrink-0 text-muted-foreground`})):m(``,!0),s(e)?(c(),a(`a`,{key:1,href:s(e),class:`truncate text-brand-text hover:underline`},d(e.value),9,D)):(c(),a(`span`,O,d(e.value),1))]))),128))])])]))}},A=[`src`],j={__name:`QmIcon`,props:{icon:{type:Object,default:()=>({name:`folder`})},strokeWidth:{type:[Number,String],default:1.75}},setup(e){return(t,n)=>e.icon?.name?(c(),f(y,{key:0,name:e.icon.name,"stroke-width":e.strokeWidth},null,8,[`name`,`stroke-width`])):e.icon?.url&&e.icon.mono?(c(),a(`span`,{key:1,class:`inline-block bg-current`,style:s({maskImage:`url('${e.icon.url}')`,WebkitMaskImage:`url('${e.icon.url}')`,maskSize:`contain`,WebkitMaskSize:`contain`,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`}),"aria-hidden":`true`},null,4)):e.icon?.url?(c(),a(`img`,{key:2,src:e.icon.url,alt:``,class:`object-contain`},null,8,A)):(c(),f(y,{key:3,name:`folder`,"stroke-width":e.strokeWidth},null,8,[`stroke-width`]))}},M={class:`pointer-events-none absolute -right-4 -bottom-5 opacity-15 transition-transform group-hover:scale-105`,"aria-hidden":`true`},N={class:`relative mt-3`},P={class:`mt-0.5 block text-xs text-white/80`},F={__name:`FolderTile`,props:{folder:{type:Object,required:!0},small:{type:Boolean,default:!1}},setup(t){let a=t,o=()=>{let e=[];return a.folder.folders&&e.push(`${a.folder.folders} ${a.folder.folders,`Ordner`}`),a.folder.entries&&e.push(`${a.folder.entries} ${a.folder.entries===1?`Dokument`:`Dokumente`}`),e.join(` · `)||`Noch leer`};return(a,s)=>(c(),f(n(h),{href:t.folder.url,class:r([`group relative flex flex-col justify-between overflow-hidden rounded-lg text-white shadow-xs transition hover:shadow-md hover:brightness-110 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none`,[n(S)(t.folder.color).tile,t.small?`min-h-24 p-3.5`:`min-h-32 p-4`]])},{default:u(()=>[i(`span`,M,[e(j,{icon:t.folder.icon,class:r(t.small?`size-20`:`size-24`)},null,8,[`icon`,`class`])]),i(`span`,{class:r([`grid place-items-center rounded-md bg-white/15`,t.small?`size-9`:`size-11`])},[e(j,{icon:t.folder.icon,class:r(t.small?`size-5`:`size-6`)},null,8,[`icon`,`class`])],2),i(`span`,N,[i(`span`,{class:r([`block leading-tight font-semibold`,t.small?`text-sm`:`text-[15px]`])},d(t.folder.name),3),i(`span`,P,d(o()),1)])]),_:1},8,[`href`,`class`]))}};export{C as i,j as n,k as r,F as t}; \ No newline at end of file diff --git a/public/build/assets/ForgotPassword-ClPQSL2B.js b/public/build/assets/ForgotPassword-DxTP0yUy.js similarity index 92% rename from public/build/assets/ForgotPassword-ClPQSL2B.js rename to public/build/assets/ForgotPassword-DxTP0yUy.js index d81fe03d..e9f514b3 100644 --- a/public/build/assets/ForgotPassword-ClPQSL2B.js +++ b/public/build/assets/ForgotPassword-DxTP0yUy.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as d,r as f}from"./app-CNhdlRDG.js";import{O as p}from"./dist-DtGNiYlK.js";import{t as m}from"./arrow-left-BMImfTf2.js";import{t as h}from"./FormField-BoFAO4pm.js";import{t as g}from"./button-ZHC5mKey.js";import{t as _}from"./Input-FGSb2-yK.js";import{t as v}from"./GuestLayout-Ces130Hf.js";var y={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},b={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(b){let x=f({email:``});return(f,S)=>(a(),c(v,{title:`Passwort vergessen`,description:`Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können.`},{default:o(()=>[b.status?(a(),i(`div`,y,s(b.status),1)):l(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:S[1]||=u(e=>n(x).post(`/forgot-password`),[`prevent`])},[e(h,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(_),{id:`email`,modelValue:n(x).email,"onUpdate:modelValue":S[0]||=e=>n(x).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(n(g),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(x).processing},{default:o(()=>[n(x).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(m),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{n as d,r as f}from"./app-Cw5f57va.js";import{O as p}from"./dist-DtGNiYlK.js";import{t as m}from"./arrow-left-BMImfTf2.js";import{t as h}from"./FormField-BoFAO4pm.js";import{t as g}from"./button-ZHC5mKey.js";import{t as _}from"./Input-FGSb2-yK.js";import{t as v}from"./GuestLayout-NI5YopFI.js";var y={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},b={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(b){let x=f({email:``});return(f,S)=>(a(),c(v,{title:`Passwort vergessen`,description:`Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können.`},{default:o(()=>[b.status?(a(),i(`div`,y,s(b.status),1)):l(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:S[1]||=u(e=>n(x).post(`/forgot-password`),[`prevent`])},[e(h,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(_),{id:`email`,modelValue:n(x).email,"onUpdate:modelValue":S[0]||=e=>n(x).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(n(g),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(x).processing},{default:o(()=>[n(x).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(m),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default}; \ No newline at end of file diff --git a/public/build/assets/FormBlock-BDBj4kUu.js b/public/build/assets/FormBlock-Dv3SdJMP.js similarity index 93% rename from public/build/assets/FormBlock-BDBj4kUu.js rename to public/build/assets/FormBlock-Dv3SdJMP.js index 9e18eed2..c2ef1197 100644 --- a/public/build/assets/FormBlock-BDBj4kUu.js +++ b/public/build/assets/FormBlock-Dv3SdJMP.js @@ -1 +1 @@ -import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./FormRenderer-Cl4_xLIv.js";var d={key:0,class:`rounded-lg border bg-card p-5 @3xl:p-8`},f={class:`text-xl font-semibold tracking-tight`},p={key:0,class:`mt-2 mb-6 text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},m={key:1,class:`rounded-lg border border-dashed p-4 text-sm text-muted-foreground`},h={__name:`FormBlock`,props:{block:{type:Object,required:!0}},setup(h){let g=e(`pagebuilder:editing`,!1);return(e,_)=>h.block.props?(a(),i(`section`,d,[h.block.data.show_title?(a(),i(o,{key:0},[r(`h3`,f,s(h.block.props.title),1),h.block.props.description?(a(),i(`p`,p,s(h.block.props.description),1)):l(``,!0)],64)):l(``,!0),r(`div`,{class:n({"pointer-events-none opacity-80":t(g)})},[(a(),c(u,{key:h.block.props.id,form:h.block.props},null,8,[`form`]))],2)])):t(g)?(a(),i(`p`,m,`Bitte rechts ein Formular auswählen.`)):l(``,!0)}};export{h as default}; \ No newline at end of file +import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./FormRenderer-CbakfY2-.js";var d={key:0,class:`rounded-lg border bg-card p-5 @3xl:p-8`},f={class:`text-xl font-semibold tracking-tight`},p={key:0,class:`mt-2 mb-6 text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},m={key:1,class:`rounded-lg border border-dashed p-4 text-sm text-muted-foreground`},h={__name:`FormBlock`,props:{block:{type:Object,required:!0}},setup(h){let g=e(`pagebuilder:editing`,!1);return(e,_)=>h.block.props?(a(),i(`section`,d,[h.block.data.show_title?(a(),i(o,{key:0},[r(`h3`,f,s(h.block.props.title),1),h.block.props.description?(a(),i(`p`,p,s(h.block.props.description),1)):l(``,!0)],64)):l(``,!0),r(`div`,{class:n({"pointer-events-none opacity-80":t(g)})},[(a(),c(u,{key:h.block.props.id,form:h.block.props},null,8,[`form`]))],2)])):t(g)?(a(),i(`p`,m,`Bitte rechts ein Formular auswählen.`)):l(``,!0)}};export{h as default}; \ No newline at end of file diff --git a/public/build/assets/FormRenderer-Cl4_xLIv.js b/public/build/assets/FormRenderer-CbakfY2-.js similarity index 99% rename from public/build/assets/FormRenderer-Cl4_xLIv.js rename to public/build/assets/FormRenderer-CbakfY2-.js index c77ec09b..3eb37c0a 100644 --- a/public/build/assets/FormRenderer-Cl4_xLIv.js +++ b/public/build/assets/FormRenderer-CbakfY2-.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,wt as ee,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{_ as h,w as te,y as ne}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as g,r as re}from"./app-CNhdlRDG.js";import{O as ie}from"./dist-DtGNiYlK.js";import{S as ae,_ as oe,o as se}from"./http-DmyDwIce.js";import{t as ce}from"./eye-off-myis3scV.js";import{t as _}from"./lock-H7FAhSBr.js";import{t as v}from"./paperclip-DmVAQ5Y5.js";import{t as y}from"./send-6fmdiUe6.js";import{t as b}from"./button-ZHC5mKey.js";import{t as x}from"./NativeSelect-BGasRaNs.js";import{t as S}from"./Input-FGSb2-yK.js";import{t as C}from"./Textarea-DEFXqC2w.js";var w={key:0,class:`flex gap-3 rounded-lg border border-emerald-200 bg-emerald-50 p-5 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,role:`status`},T={class:`font-medium whitespace-pre-line`},E={key:0,class:`mt-1 text-sm opacity-80`},D={key:1,class:`rounded-lg border bg-muted px-5 py-4 text-sm`},O={key:2,class:`rounded-lg border bg-muted px-5 py-4 text-sm`},k={key:0,class:`flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground @xl:col-span-2`},A={key:1,class:`rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive @xl:col-span-2`},j={key:0,class:`pt-2 text-lg font-semibold @xl:col-span-2`},M={key:1,class:`text-sm leading-relaxed whitespace-pre-line text-muted-foreground @xl:col-span-2`},N=[`for`],P=[`id`,`onUpdate:modelValue`,`aria-invalid`],F={key:0,class:`text-destructive`},I={key:0,class:`text-destructive`},L=[`aria-labelledby`],R=[`onUpdate:modelValue`,`name`,`value`],z=[`checked`,`onChange`],B={key:3,class:`grid gap-2`},le={key:0,class:`grid gap-1`},V={class:`min-w-0 flex-1 truncate`},H={class:`text-xs text-muted-foreground`},U=[`aria-label`,`onClick`],W={key:1,class:`flex h-10 cursor-pointer items-center justify-center gap-2 rounded-md border border-dashed text-sm text-muted-foreground hover:border-brand-300 hover:text-foreground`},ue=[`id`,`accept`,`multiple`,`onChange`],de=[`aria-describedby`],fe=[`id`],pe={key:1,class:`text-muted-foreground italic`},me={key:2,class:`text-[13px] text-destructive`},he={key:0,href:`/profil/bearbeiten`,class:`font-medium underline`},ge=[`id`],_e={key:4,class:`text-[13px] text-muted-foreground`},ve={class:`flex items-center gap-4 border-t pt-5 @xl:col-span-2`},G={__name:`FormRenderer`,props:{form:{type:Object,required:!0},compact:{type:Boolean,default:!1},preview:{type:Boolean,default:!1}},setup(G){let K=G,q=g(),ye=[`text`,`textarea`,`email`,`phone`,`number`,`date`,`select`,`radio`,`checkboxes`,`checkbox`,`file`];function be(e){let t=K.form.prefill?.[e.key];return e.type===`checkboxes`||e.type===`file`?[]:e.type===`checkbox`?!1:t??``}let J=re({answers:Object.fromEntries(K.form.fields.filter(e=>ye.includes(e.type)).map(e=>[e.key,be(e)]))}),xe=c(()=>q.props.flash?.form_submitted===K.form.id);function Y(e,t=0){if(!e.condition||t>10)return!0;let n=K.form.fields.find(t=>t.key===e.condition.field);if(!n||!Y(n,t+1))return!1;let r=J.answers[e.condition.field],i=(Array.isArray(r)?r:r===!0?[`1`]:r===!1||r===``||r==null?[]:[String(r)]).map(String),a=e.condition.value??``;switch(e.condition.operator){case`not_equals`:return!i.includes(a);case`filled`:return i.length>0;case`empty`:return i.length===0;default:return i.includes(a)}}let X=c(()=>K.form.fields.filter(e=>Y(e)));function Z(e){return J.errors[`answers.${e.key}`]??Object.entries(J.errors).find(([t])=>t.startsWith(`answers.${e.key}.`))?.[1]}function Q(e,t){let n=new Set(J.answers[e.key]);n.has(t)?n.delete(t):n.add(t),J.answers[e.key]=[...n]}function Se(e,t){let n=[...t.target.files??[]];J.answers[e.key]=e.multiple?[...J.answers[e.key],...n].slice(0,10):n.slice(0,1),t.target.value=``}function Ce(e,t){J.answers[e.key]=J.answers[e.key].filter((e,n)=>n!==t)}function we(){if(K.preview){se.info(`Vorschau – es wird nichts gesendet.`);return}let e=new Set(X.value.map(e=>e.key));J.transform(t=>({answers:Object.fromEntries(Object.entries(t.answers).filter(([t])=>e.has(t)))})).post(K.form.url,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{q.props.flash?.form_submitted===K.form.id&&J.reset()}})}let Te=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,$=e=>`f${K.form.id}-${e.key}`;return(c,g)=>xe.value?(l(),o(`div`,w,[e(n(ae),{class:`mt-0.5 size-5 shrink-0 text-emerald-600`}),a(`div`,null,[a(`p`,T,f(G.form.confirmation),1),G.form.send_copy?(l(),o(`p`,E,`Eine Kopie Ihrer Angaben ist per E-Mail unterwegs.`)):m(``,!0)])])):G.form.already_submitted?(l(),o(`p`,D,`Sie haben dieses Formular bereits ausgefüllt. Vielen Dank!`)):G.form.open?(l(),o(`form`,{key:3,class:`grid gap-5 @xl:grid-cols-2`,novalidate:``,onSubmit:te(we,[`prevent`])},[G.form.anonymous?(l(),o(`p`,k,[e(n(ce),{class:`mt-0.5 size-4 shrink-0`}),g[0]||=t(` Anonym: Ihr Name und Ihre E-Mail-Adresse werden nicht gespeichert. `,-1)])):m(``,!0),n(J).errors.form?(l(),o(`p`,A,f(n(J).errors.form),1)):m(``,!0),(l(!0),o(u,null,s(X.value,c=>(l(),o(u,{key:c.key},[c.type===`heading`?(l(),o(`h3`,j,f(c.text),1)):c.type===`paragraph`?(l(),o(`p`,M,f(c.text),1)):(l(),o(`div`,{key:2,class:i([`grid content-start gap-1.5`,c.width===`half`?``:`@xl:col-span-2`])},[c.type===`checkbox`?(l(),o(`label`,{key:0,for:$(c),class:`flex items-start gap-2.5 text-sm`},[r(a(`input`,{id:$(c),"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:`checkbox`,class:`mt-0.5 size-4 shrink-0 accent-[var(--brand)]`,"aria-invalid":!!Z(c)},null,8,P),[[h,n(J).answers[c.key]]]),a(`span`,null,[t(f(c.label),1),c.required?(l(),o(`span`,F,` *`)):m(``,!0)])],8,N)):(l(),o(u,{key:1},[(l(),p(ee([`radio`,`checkboxes`].includes(c.type)?`span`:`label`),{for:$(c),class:`text-[13px] font-medium`,id:`${$(c)}-label`},{default:d(()=>[t(f(c.label),1),c.required?(l(),o(`span`,I,` *`)):m(``,!0)]),_:2},1032,[`for`,`id`])),c.type===`textarea`?(l(),p(n(C),{key:0,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,rows:c.rows??4,maxlength:c.max,"aria-invalid":!!Z(c)},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`rows`,`maxlength`,`aria-invalid`])):c.type===`select`?(l(),p(x,{key:1,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,options:c.options.map(e=>({value:e,label:e})),placeholder:`Bitte wählen …`},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`options`])):c.type===`radio`||c.type===`checkboxes`?(l(),o(`div`,{key:2,class:`grid gap-1.5`,role:`group`,"aria-labelledby":`${$(c)}-label`},[(l(!0),o(u,null,s(c.options,e=>(l(),o(`label`,{key:e,class:`flex items-center gap-2.5 text-sm`},[c.type===`radio`?r((l(),o(`input`,{key:0,"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:`radio`,name:$(c),value:e,class:`size-4 accent-[var(--brand)]`},null,8,R)),[[ne,n(J).answers[c.key]]]):(l(),o(`input`,{key:1,type:`checkbox`,checked:n(J).answers[c.key].includes(e),class:`size-4 accent-[var(--brand)]`,onChange:t=>Q(c,e)},null,40,z)),t(` `+f(e),1)]))),128))],8,L)):c.type===`file`?(l(),o(`div`,B,[n(J).answers[c.key].length?(l(),o(`ul`,le,[(l(!0),o(u,null,s(n(J).answers[c.key],(t,r)=>(l(),o(`li`,{key:r,class:`flex items-center gap-2 rounded-md border bg-card px-3 py-1.5 text-sm`},[e(n(v),{class:`size-4 shrink-0 text-muted-foreground`}),a(`span`,V,f(t.name),1),a(`span`,H,f(Te(t.size)),1),a(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,"aria-label":`${t.name} entfernen`,onClick:e=>Ce(c,r)},[e(n(oe),{class:`size-3.5`})],8,U)]))),128))])):m(``,!0),c.multiple||!n(J).answers[c.key].length?(l(),o(`label`,W,[e(n(v),{class:`size-4`}),t(` `+f(c.multiple?`Dateien auswählen`:`Datei auswählen`)+` `,1),a(`input`,{id:$(c),type:`file`,class:`sr-only`,accept:c.accept,multiple:c.multiple,onChange:e=>Se(c,e)},null,40,ue)])):m(``,!0)])):c.locked?(l(),o(`div`,{key:4,class:`flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm`,"aria-describedby":`${$(c)}-locked`},[e(n(_),{class:`size-3.5 shrink-0 text-muted-foreground`}),n(J).answers[c.key]?(l(),o(`span`,{key:0,id:$(c),class:`truncate`},f(n(J).answers[c.key]),9,fe)):(l(),o(`span`,pe,f(G.preview?`wird aus dem Profil übernommen`:`nicht im Profil hinterlegt`),1))],8,de)):(l(),p(n(S),{key:5,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:{email:`email`,phone:`tel`,number:`number`,date:`date`}[c.type]??`text`,placeholder:c.placeholder,maxlength:c.type===`text`?c.max:void 0,min:c.type===`number`?c.min:void 0,max:c.type===`number`?c.max:void 0,"aria-invalid":!!Z(c)},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`placeholder`,`maxlength`,`min`,`max`,`aria-invalid`]))],64)),Z(c)?(l(),o(`p`,me,[t(f(Z(c))+` `,1),c.locked?(l(),o(`a`,he,`Profil öffnen`)):m(``,!0)])):c.locked?(l(),o(`p`,{key:3,id:`${$(c)}-locked`,class:`text-[13px] text-muted-foreground`},`Aus Ihrem Profil – nicht änderbar.`,8,ge)):c.help?(l(),o(`p`,_e,[t(f(c.help),1),c.type===`file`&&c.max_size?(l(),o(u,{key:0},[t(` (höchstens `+f(c.max_size)+` MB)`,1)],64)):m(``,!0)])):m(``,!0)],2))],64))),128)),a(`div`,ve,[e(n(b),{type:`submit`,disabled:n(J).processing},{default:d(()=>[n(J).processing?(l(),p(n(ie),{key:0,class:`animate-spin`})):(l(),p(n(y),{key:1})),t(` `+f(G.form.submit_label),1)]),_:1},8,[`disabled`]),g[1]||=a(`span`,{class:`text-xs text-muted-foreground`},`* Pflichtfeld`,-1)])],32)):(l(),o(`p`,O,`Dieses Formular nimmt keine Einsendungen mehr an.`))}};export{G as t}; \ No newline at end of file +import{D as e,E as t,On as n,Yt as r,Zn as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,wt as ee,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{_ as h,w as te,y as ne}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as g,r as re}from"./app-Cw5f57va.js";import{O as ie}from"./dist-DtGNiYlK.js";import{S as ae,_ as oe,o as se}from"./http-DmyDwIce.js";import{t as ce}from"./eye-off-myis3scV.js";import{t as _}from"./lock-H7FAhSBr.js";import{t as v}from"./paperclip-DmVAQ5Y5.js";import{t as y}from"./send-6fmdiUe6.js";import{t as b}from"./button-ZHC5mKey.js";import{t as x}from"./NativeSelect-BGasRaNs.js";import{t as S}from"./Input-FGSb2-yK.js";import{t as C}from"./Textarea-DEFXqC2w.js";var w={key:0,class:`flex gap-3 rounded-lg border border-emerald-200 bg-emerald-50 p-5 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,role:`status`},T={class:`font-medium whitespace-pre-line`},E={key:0,class:`mt-1 text-sm opacity-80`},D={key:1,class:`rounded-lg border bg-muted px-5 py-4 text-sm`},O={key:2,class:`rounded-lg border bg-muted px-5 py-4 text-sm`},k={key:0,class:`flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground @xl:col-span-2`},A={key:1,class:`rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive @xl:col-span-2`},j={key:0,class:`pt-2 text-lg font-semibold @xl:col-span-2`},M={key:1,class:`text-sm leading-relaxed whitespace-pre-line text-muted-foreground @xl:col-span-2`},N=[`for`],P=[`id`,`onUpdate:modelValue`,`aria-invalid`],F={key:0,class:`text-destructive`},I={key:0,class:`text-destructive`},L=[`aria-labelledby`],R=[`onUpdate:modelValue`,`name`,`value`],z=[`checked`,`onChange`],B={key:3,class:`grid gap-2`},le={key:0,class:`grid gap-1`},V={class:`min-w-0 flex-1 truncate`},H={class:`text-xs text-muted-foreground`},U=[`aria-label`,`onClick`],W={key:1,class:`flex h-10 cursor-pointer items-center justify-center gap-2 rounded-md border border-dashed text-sm text-muted-foreground hover:border-brand-300 hover:text-foreground`},ue=[`id`,`accept`,`multiple`,`onChange`],de=[`aria-describedby`],fe=[`id`],pe={key:1,class:`text-muted-foreground italic`},me={key:2,class:`text-[13px] text-destructive`},he={key:0,href:`/profil/bearbeiten`,class:`font-medium underline`},ge=[`id`],_e={key:4,class:`text-[13px] text-muted-foreground`},ve={class:`flex items-center gap-4 border-t pt-5 @xl:col-span-2`},G={__name:`FormRenderer`,props:{form:{type:Object,required:!0},compact:{type:Boolean,default:!1},preview:{type:Boolean,default:!1}},setup(G){let K=G,q=g(),ye=[`text`,`textarea`,`email`,`phone`,`number`,`date`,`select`,`radio`,`checkboxes`,`checkbox`,`file`];function be(e){let t=K.form.prefill?.[e.key];return e.type===`checkboxes`||e.type===`file`?[]:e.type===`checkbox`?!1:t??``}let J=re({answers:Object.fromEntries(K.form.fields.filter(e=>ye.includes(e.type)).map(e=>[e.key,be(e)]))}),xe=c(()=>q.props.flash?.form_submitted===K.form.id);function Y(e,t=0){if(!e.condition||t>10)return!0;let n=K.form.fields.find(t=>t.key===e.condition.field);if(!n||!Y(n,t+1))return!1;let r=J.answers[e.condition.field],i=(Array.isArray(r)?r:r===!0?[`1`]:r===!1||r===``||r==null?[]:[String(r)]).map(String),a=e.condition.value??``;switch(e.condition.operator){case`not_equals`:return!i.includes(a);case`filled`:return i.length>0;case`empty`:return i.length===0;default:return i.includes(a)}}let X=c(()=>K.form.fields.filter(e=>Y(e)));function Z(e){return J.errors[`answers.${e.key}`]??Object.entries(J.errors).find(([t])=>t.startsWith(`answers.${e.key}.`))?.[1]}function Q(e,t){let n=new Set(J.answers[e.key]);n.has(t)?n.delete(t):n.add(t),J.answers[e.key]=[...n]}function Se(e,t){let n=[...t.target.files??[]];J.answers[e.key]=e.multiple?[...J.answers[e.key],...n].slice(0,10):n.slice(0,1),t.target.value=``}function Ce(e,t){J.answers[e.key]=J.answers[e.key].filter((e,n)=>n!==t)}function we(){if(K.preview){se.info(`Vorschau – es wird nichts gesendet.`);return}let e=new Set(X.value.map(e=>e.key));J.transform(t=>({answers:Object.fromEntries(Object.entries(t.answers).filter(([t])=>e.has(t)))})).post(K.form.url,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{q.props.flash?.form_submitted===K.form.id&&J.reset()}})}let Te=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,$=e=>`f${K.form.id}-${e.key}`;return(c,g)=>xe.value?(l(),o(`div`,w,[e(n(ae),{class:`mt-0.5 size-5 shrink-0 text-emerald-600`}),a(`div`,null,[a(`p`,T,f(G.form.confirmation),1),G.form.send_copy?(l(),o(`p`,E,`Eine Kopie Ihrer Angaben ist per E-Mail unterwegs.`)):m(``,!0)])])):G.form.already_submitted?(l(),o(`p`,D,`Sie haben dieses Formular bereits ausgefüllt. Vielen Dank!`)):G.form.open?(l(),o(`form`,{key:3,class:`grid gap-5 @xl:grid-cols-2`,novalidate:``,onSubmit:te(we,[`prevent`])},[G.form.anonymous?(l(),o(`p`,k,[e(n(ce),{class:`mt-0.5 size-4 shrink-0`}),g[0]||=t(` Anonym: Ihr Name und Ihre E-Mail-Adresse werden nicht gespeichert. `,-1)])):m(``,!0),n(J).errors.form?(l(),o(`p`,A,f(n(J).errors.form),1)):m(``,!0),(l(!0),o(u,null,s(X.value,c=>(l(),o(u,{key:c.key},[c.type===`heading`?(l(),o(`h3`,j,f(c.text),1)):c.type===`paragraph`?(l(),o(`p`,M,f(c.text),1)):(l(),o(`div`,{key:2,class:i([`grid content-start gap-1.5`,c.width===`half`?``:`@xl:col-span-2`])},[c.type===`checkbox`?(l(),o(`label`,{key:0,for:$(c),class:`flex items-start gap-2.5 text-sm`},[r(a(`input`,{id:$(c),"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:`checkbox`,class:`mt-0.5 size-4 shrink-0 accent-[var(--brand)]`,"aria-invalid":!!Z(c)},null,8,P),[[h,n(J).answers[c.key]]]),a(`span`,null,[t(f(c.label),1),c.required?(l(),o(`span`,F,` *`)):m(``,!0)])],8,N)):(l(),o(u,{key:1},[(l(),p(ee([`radio`,`checkboxes`].includes(c.type)?`span`:`label`),{for:$(c),class:`text-[13px] font-medium`,id:`${$(c)}-label`},{default:d(()=>[t(f(c.label),1),c.required?(l(),o(`span`,I,` *`)):m(``,!0)]),_:2},1032,[`for`,`id`])),c.type===`textarea`?(l(),p(n(C),{key:0,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,rows:c.rows??4,maxlength:c.max,"aria-invalid":!!Z(c)},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`rows`,`maxlength`,`aria-invalid`])):c.type===`select`?(l(),p(x,{key:1,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,options:c.options.map(e=>({value:e,label:e})),placeholder:`Bitte wählen …`},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`options`])):c.type===`radio`||c.type===`checkboxes`?(l(),o(`div`,{key:2,class:`grid gap-1.5`,role:`group`,"aria-labelledby":`${$(c)}-label`},[(l(!0),o(u,null,s(c.options,e=>(l(),o(`label`,{key:e,class:`flex items-center gap-2.5 text-sm`},[c.type===`radio`?r((l(),o(`input`,{key:0,"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:`radio`,name:$(c),value:e,class:`size-4 accent-[var(--brand)]`},null,8,R)),[[ne,n(J).answers[c.key]]]):(l(),o(`input`,{key:1,type:`checkbox`,checked:n(J).answers[c.key].includes(e),class:`size-4 accent-[var(--brand)]`,onChange:t=>Q(c,e)},null,40,z)),t(` `+f(e),1)]))),128))],8,L)):c.type===`file`?(l(),o(`div`,B,[n(J).answers[c.key].length?(l(),o(`ul`,le,[(l(!0),o(u,null,s(n(J).answers[c.key],(t,r)=>(l(),o(`li`,{key:r,class:`flex items-center gap-2 rounded-md border bg-card px-3 py-1.5 text-sm`},[e(n(v),{class:`size-4 shrink-0 text-muted-foreground`}),a(`span`,V,f(t.name),1),a(`span`,H,f(Te(t.size)),1),a(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,"aria-label":`${t.name} entfernen`,onClick:e=>Ce(c,r)},[e(n(oe),{class:`size-3.5`})],8,U)]))),128))])):m(``,!0),c.multiple||!n(J).answers[c.key].length?(l(),o(`label`,W,[e(n(v),{class:`size-4`}),t(` `+f(c.multiple?`Dateien auswählen`:`Datei auswählen`)+` `,1),a(`input`,{id:$(c),type:`file`,class:`sr-only`,accept:c.accept,multiple:c.multiple,onChange:e=>Se(c,e)},null,40,ue)])):m(``,!0)])):c.locked?(l(),o(`div`,{key:4,class:`flex h-9 items-center gap-2 rounded-md border border-input bg-muted/60 px-3 text-sm`,"aria-describedby":`${$(c)}-locked`},[e(n(_),{class:`size-3.5 shrink-0 text-muted-foreground`}),n(J).answers[c.key]?(l(),o(`span`,{key:0,id:$(c),class:`truncate`},f(n(J).answers[c.key]),9,fe)):(l(),o(`span`,pe,f(G.preview?`wird aus dem Profil übernommen`:`nicht im Profil hinterlegt`),1))],8,de)):(l(),p(n(S),{key:5,id:$(c),modelValue:n(J).answers[c.key],"onUpdate:modelValue":e=>n(J).answers[c.key]=e,type:{email:`email`,phone:`tel`,number:`number`,date:`date`}[c.type]??`text`,placeholder:c.placeholder,maxlength:c.type===`text`?c.max:void 0,min:c.type===`number`?c.min:void 0,max:c.type===`number`?c.max:void 0,"aria-invalid":!!Z(c)},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`type`,`placeholder`,`maxlength`,`min`,`max`,`aria-invalid`]))],64)),Z(c)?(l(),o(`p`,me,[t(f(Z(c))+` `,1),c.locked?(l(),o(`a`,he,`Profil öffnen`)):m(``,!0)])):c.locked?(l(),o(`p`,{key:3,id:`${$(c)}-locked`,class:`text-[13px] text-muted-foreground`},`Aus Ihrem Profil – nicht änderbar.`,8,ge)):c.help?(l(),o(`p`,_e,[t(f(c.help),1),c.type===`file`&&c.max_size?(l(),o(u,{key:0},[t(` (höchstens `+f(c.max_size)+` MB)`,1)],64)):m(``,!0)])):m(``,!0)],2))],64))),128)),a(`div`,ve,[e(n(b),{type:`submit`,disabled:n(J).processing},{default:d(()=>[n(J).processing?(l(),p(n(ie),{key:0,class:`animate-spin`})):(l(),p(n(y),{key:1})),t(` `+f(G.form.submit_label),1)]),_:1},8,[`disabled`]),g[1]||=a(`span`,{class:`text-xs text-muted-foreground`},`* Pflichtfeld`,-1)])],32)):(l(),o(`p`,O,`Dieses Formular nimmt keine Einsendungen mehr an.`))}};export{G as t}; \ No newline at end of file diff --git a/public/build/assets/Gallery-MU4K0mmQ.js b/public/build/assets/Gallery-CyHhJhRV.js similarity index 96% rename from public/build/assets/Gallery-MU4K0mmQ.js rename to public/build/assets/Gallery-CyHhJhRV.js index a9dbd8f2..55f8994f 100644 --- a/public/build/assets/Gallery-MU4K0mmQ.js +++ b/public/build/assets/Gallery-CyHhJhRV.js @@ -1 +1 @@ -import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{G as h}from"./AppIcon-D91Q4hzR.js";import{t as g}from"./chevron-left-8GGLVOvJ.js";import{t as _}from"./chevron-right-C9w5cb2q.js";import{i as v,r as y,t as b}from"./dialog-37na293D.js";var x=[`aria-label`,`onClick`],S=[`src`,`alt`],C={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},w={key:2,class:`mt-1.5 text-xs text-muted-foreground`},T={key:0,class:`col-span-full text-sm text-muted-foreground`},E=[`src`,`alt`],D={class:`flex items-center justify-between gap-4 px-4 pt-1 pb-3 text-sm`},O={class:`text-white/80`},k={key:0,class:`shrink-0 text-white/60 tabular-nums`},A={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(A){let j=A,M=n(`pagebuilder:editing`,!1),N={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},P=c(()=>j.block.data.images.map((e,t)=>({...e,url:j.block.props?.urls?.[t]??null}))),F=c(()=>P.value.filter(e=>e.url)),I=p(null),L=c(()=>I.value===null?null:F.value[I.value]);function R(e){I.value=F.value.indexOf(e)}function z(e){I.value===null||F.value.length<2||(I.value=(I.value+e+F.value.length)%F.value.length)}function B(e){e.key===`ArrowRight`&&z(1),e.key===`ArrowLeft`&&z(-1)}let V=null,H=e=>V=e.touches[0].clientX;function U(e){if(V===null)return;let t=e.changedTouches[0].clientX-V;Math.abs(t)>50&&z(t<0?1:-1),V=null}return(n,c)=>(l(),o(u,null,[a(`div`,{class:i([`grid grid-cols-2 gap-3`,N[A.block.data.columns]])},[(l(!0),o(u,null,s(P.value,(t,n)=>(l(),o(`figure`,{key:n},[t.url?(l(),o(`button`,{key:0,type:`button`,class:`block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`${t.alt||`Bild`} vergrößern`,onClick:e=>R(t)},[a(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform duration-300 hover:scale-[1.03]`},null,8,S)],8,x)):(l(),o(`div`,C,[e(r(h),{class:`size-6`})])),t.caption?(l(),o(`figcaption`,w,f(t.caption),1)):m(``,!0)]))),128)),r(M)&&!P.value.length?(l(),o(`p`,T,`Noch keine Bilder.`)):m(``,!0)],2),e(r(v),{open:L.value!==null,"onUpdate:open":c[2]||=e=>!e&&(I.value=null)},{default:d(()=>[e(r(y),{class:`max-w-6xl border-0 bg-black/95 p-0 text-white sm:max-w-6xl`,onKeydown:B},{default:d(()=>[e(r(b),{class:`sr-only`},{default:d(()=>[t(f(L.value?.alt||`Bild`),1)]),_:1}),a(`div`,{class:`relative`,onTouchstartPassive:H,onTouchend:U},[L.value?(l(),o(`img`,{key:L.value.url,src:L.value.url,alt:L.value.alt,class:`max-h-[82vh] w-full object-contain`},null,8,E)):m(``,!0),F.value.length>1?(l(),o(u,{key:1},[a(`button`,{type:`button`,class:`absolute top-1/2 left-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Vorheriges Bild`,onClick:c[0]||=e=>z(-1)},[e(r(g),{class:`size-6`})]),a(`button`,{type:`button`,class:`absolute top-1/2 right-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Nächstes Bild`,onClick:c[1]||=e=>z(1)},[e(r(_),{class:`size-6`})])],64)):m(``,!0)],32),a(`div`,D,[a(`p`,O,f(L.value?.caption),1),F.value.length>1?(l(),o(`span`,k,f(I.value+1)+` / `+f(F.value.length),1)):m(``,!0)])]),_:1})]),_:1},8,[`open`])],64))}};export{A as default}; \ No newline at end of file +import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{G as h}from"./AppIcon-BiVN_tuL.js";import{t as g}from"./chevron-left-8GGLVOvJ.js";import{t as _}from"./chevron-right-C9w5cb2q.js";import{i as v,r as y,t as b}from"./dialog-DiN2bNwR.js";var x=[`aria-label`,`onClick`],S=[`src`,`alt`],C={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},w={key:2,class:`mt-1.5 text-xs text-muted-foreground`},T={key:0,class:`col-span-full text-sm text-muted-foreground`},E=[`src`,`alt`],D={class:`flex items-center justify-between gap-4 px-4 pt-1 pb-3 text-sm`},O={class:`text-white/80`},k={key:0,class:`shrink-0 text-white/60 tabular-nums`},A={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(A){let j=A,M=n(`pagebuilder:editing`,!1),N={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},P=c(()=>j.block.data.images.map((e,t)=>({...e,url:j.block.props?.urls?.[t]??null}))),F=c(()=>P.value.filter(e=>e.url)),I=p(null),L=c(()=>I.value===null?null:F.value[I.value]);function R(e){I.value=F.value.indexOf(e)}function z(e){I.value===null||F.value.length<2||(I.value=(I.value+e+F.value.length)%F.value.length)}function B(e){e.key===`ArrowRight`&&z(1),e.key===`ArrowLeft`&&z(-1)}let V=null,H=e=>V=e.touches[0].clientX;function U(e){if(V===null)return;let t=e.changedTouches[0].clientX-V;Math.abs(t)>50&&z(t<0?1:-1),V=null}return(n,c)=>(l(),o(u,null,[a(`div`,{class:i([`grid grid-cols-2 gap-3`,N[A.block.data.columns]])},[(l(!0),o(u,null,s(P.value,(t,n)=>(l(),o(`figure`,{key:n},[t.url?(l(),o(`button`,{key:0,type:`button`,class:`block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`${t.alt||`Bild`} vergrößern`,onClick:e=>R(t)},[a(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform duration-300 hover:scale-[1.03]`},null,8,S)],8,x)):(l(),o(`div`,C,[e(r(h),{class:`size-6`})])),t.caption?(l(),o(`figcaption`,w,f(t.caption),1)):m(``,!0)]))),128)),r(M)&&!P.value.length?(l(),o(`p`,T,`Noch keine Bilder.`)):m(``,!0)],2),e(r(v),{open:L.value!==null,"onUpdate:open":c[2]||=e=>!e&&(I.value=null)},{default:d(()=>[e(r(y),{class:`max-w-6xl border-0 bg-black/95 p-0 text-white sm:max-w-6xl`,onKeydown:B},{default:d(()=>[e(r(b),{class:`sr-only`},{default:d(()=>[t(f(L.value?.alt||`Bild`),1)]),_:1}),a(`div`,{class:`relative`,onTouchstartPassive:H,onTouchend:U},[L.value?(l(),o(`img`,{key:L.value.url,src:L.value.url,alt:L.value.alt,class:`max-h-[82vh] w-full object-contain`},null,8,E)):m(``,!0),F.value.length>1?(l(),o(u,{key:1},[a(`button`,{type:`button`,class:`absolute top-1/2 left-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Vorheriges Bild`,onClick:c[0]||=e=>z(-1)},[e(r(g),{class:`size-6`})]),a(`button`,{type:`button`,class:`absolute top-1/2 right-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Nächstes Bild`,onClick:c[1]||=e=>z(1)},[e(r(_),{class:`size-6`})])],64)):m(``,!0)],32),a(`div`,D,[a(`p`,O,f(L.value?.caption),1),F.value.length>1?(l(),o(`span`,k,f(I.value+1)+` / `+f(F.value.length),1)):m(``,!0)])]),_:1})]),_:1},8,[`open`])],64))}};export{A as default}; \ No newline at end of file diff --git a/public/build/assets/Greeting-CpWVmWsI.js b/public/build/assets/Greeting-BF_vKvKU.js similarity index 96% rename from public/build/assets/Greeting-CpWVmWsI.js rename to public/build/assets/Greeting-BF_vKvKU.js index 97caee0f..22c545cb 100644 --- a/public/build/assets/Greeting-CpWVmWsI.js +++ b/public/build/assets/Greeting-BF_vKvKU.js @@ -1 +1 @@ -import{D as e,On as t,T as n,_ as r,b as i,mt as a,tr as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{$ as l}from"./AppIcon-D91Q4hzR.js";import{_ as u}from"./http-DmyDwIce.js";var d={key:0,class:`relative overflow-hidden rounded-lg bg-brand text-brand-foreground`,role:`status`},f={class:`relative flex items-center gap-4 px-5 py-5 sm:px-8`},p={class:`grid size-12 shrink-0 place-items-center rounded-full bg-white/15`},m={class:`min-w-0 flex-1`},h={class:`text-xl font-semibold tracking-tight`},g={__name:`Greeting`,props:{name:{type:String,required:!0}},setup(g){let _=g,v=`inhaus.birthday-greeting.${new Date().toISOString().slice(0,10)}`,y=s(!1);try{y.value=localStorage.getItem(v)===`1`}catch{}function b(){y.value=!0;try{localStorage.setItem(v,`1`)}catch{}}return(s,g)=>y.value?c(``,!0):(a(),i(`section`,d,[g[1]||=n(``,1),r(`div`,f,[r(`span`,p,[e(t(l),{class:`size-6`})]),r(`div`,m,[r(`p`,h,`Alles Gute zum Geburtstag, `+o(_.name)+`!`,1),g[0]||=r(`p`,{class:`mt-0.5 text-sm opacity-90`},`Wir wünschen Ihnen einen schönen Tag.`,-1)]),r(`button`,{type:`button`,class:`grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15`,"aria-label":`Glückwunsch ausblenden`,onClick:b},[e(t(u),{class:`size-5`})])])]))}};export{g as default}; \ No newline at end of file +import{D as e,On as t,T as n,_ as r,b as i,mt as a,tr as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{$ as l}from"./AppIcon-BiVN_tuL.js";import{_ as u}from"./http-DmyDwIce.js";var d={key:0,class:`relative overflow-hidden rounded-lg bg-brand text-brand-foreground`,role:`status`},f={class:`relative flex items-center gap-4 px-5 py-5 sm:px-8`},p={class:`grid size-12 shrink-0 place-items-center rounded-full bg-white/15`},m={class:`min-w-0 flex-1`},h={class:`text-xl font-semibold tracking-tight`},g={__name:`Greeting`,props:{name:{type:String,required:!0}},setup(g){let _=g,v=`inhaus.birthday-greeting.${new Date().toISOString().slice(0,10)}`,y=s(!1);try{y.value=localStorage.getItem(v)===`1`}catch{}function b(){y.value=!0;try{localStorage.setItem(v,`1`)}catch{}}return(s,g)=>y.value?c(``,!0):(a(),i(`section`,d,[g[1]||=n(``,1),r(`div`,f,[r(`span`,p,[e(t(l),{class:`size-6`})]),r(`div`,m,[r(`p`,h,`Alles Gute zum Geburtstag, `+o(_.name)+`!`,1),g[0]||=r(`p`,{class:`mt-0.5 text-sm opacity-90`},`Wir wünschen Ihnen einen schönen Tag.`,-1)]),r(`button`,{type:`button`,class:`grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15`,"aria-label":`Glückwunsch ausblenden`,onClick:b},[e(t(u),{class:`size-5`})])])]))}};export{g as default}; \ No newline at end of file diff --git a/public/build/assets/Greeting-esDyr9ym.js b/public/build/assets/Greeting-Dk9GaWRP.js similarity index 92% rename from public/build/assets/Greeting-esDyr9ym.js rename to public/build/assets/Greeting-Dk9GaWRP.js index 2fcd83e0..6e045c69 100644 --- a/public/build/assets/Greeting-esDyr9ym.js +++ b/public/build/assets/Greeting-Dk9GaWRP.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,g as a,mt as o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u,n as d}from"./app-CNhdlRDG.js";import{M as f,O as p,p as m}from"./AppIcon-D91Q4hzR.js";import{i as h,r as g}from"./AppLayout-B1gBMLPE.js";var _={class:`overflow-hidden rounded-lg border bg-card`},v={class:`flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground`},y={class:`min-w-0`},b={class:`text-sm opacity-85`},x={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},S={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},C={class:`grid grid-cols-3 divide-x`,"aria-label":`Mein Bereich`},w={key:0,href:`/admin`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},T={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(a){return(u,T)=>(o(),i(`section`,_,[r(`div`,v,[r(`div`,y,[r(`div`,b,c(a.greeting)+`,`,1),r(`div`,x,c(a.user.name),1),r(`div`,S,c(a.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(m,{person:a.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),r(`nav`,C,[e(n(d),{href:`/personen/${a.user.id}`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(p),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(d),{href:`/profil/bearbeiten`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(g),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[1]||=t(` Profil bearbeiten `,-1)]),_:1}),a.user.can_admin?(o(),i(`a`,w,[e(n(f),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[2]||=t(` Administration `,-1)])):(o(),l(n(d),{key:1,href:`/logout`,method:`post`,as:`button`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(h),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[3]||=t(` Abmelden `,-1)]),_:1}))])]))}},E={__name:`Greeting`,props:{profile:{type:Object,required:!0}},setup(e){let t=e,n=u(),r=a(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(o(),l(T,{user:r.value,profile:e.profile,greeting:i.value},null,8,[`user`,`profile`,`greeting`]))}};export{E as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,g as a,mt as o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as u,n as d}from"./app-Cw5f57va.js";import{M as f,O as p,p as m}from"./AppIcon-BiVN_tuL.js";import{i as h,r as g}from"./AppLayout-9kc4awMB.js";var _={class:`overflow-hidden rounded-lg border bg-card`},v={class:`flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground`},y={class:`min-w-0`},b={class:`text-sm opacity-85`},x={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},S={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},C={class:`grid grid-cols-3 divide-x`,"aria-label":`Mein Bereich`},w={key:0,href:`/admin`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},T={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(a){return(u,T)=>(o(),i(`section`,_,[r(`div`,v,[r(`div`,y,[r(`div`,b,c(a.greeting)+`,`,1),r(`div`,x,c(a.user.name),1),r(`div`,S,c(a.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(m,{person:a.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),r(`nav`,C,[e(n(d),{href:`/personen/${a.user.id}`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(p),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(d),{href:`/profil/bearbeiten`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(g),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[1]||=t(` Profil bearbeiten `,-1)]),_:1}),a.user.can_admin?(o(),i(`a`,w,[e(n(f),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[2]||=t(` Administration `,-1)])):(o(),l(n(d),{key:1,href:`/logout`,method:`post`,as:`button`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(h),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[3]||=t(` Abmelden `,-1)]),_:1}))])]))}},E={__name:`Greeting`,props:{profile:{type:Object,required:!0}},setup(e){let t=e,n=u(),r=a(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(o(),l(T,{user:r.value,profile:e.profile,greeting:i.value},null,8,[`user`,`profile`,`greeting`]))}};export{E as default}; \ No newline at end of file diff --git a/public/build/assets/GuestLayout-Ces130Hf.js b/public/build/assets/GuestLayout-NI5YopFI.js similarity index 96% rename from public/build/assets/GuestLayout-Ces130Hf.js rename to public/build/assets/GuestLayout-NI5YopFI.js index b5e670ef..c502104b 100644 --- a/public/build/assets/GuestLayout-Ces130Hf.js +++ b/public/build/assets/GuestLayout-NI5YopFI.js @@ -1 +1 @@ -import{D as e,On as t,Zn as n,_ as r,b as i,g as a,mt as o,o as s,tr as c,xt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d,t as f}from"./app-CNhdlRDG.js";import{t as p}from"./BrandLogo-7ynQExZl.js";var m={key:0,class:`bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},h={key:1,class:`relative grid min-h-screen place-items-center bg-brand px-4 py-12`},g=[`src`],_={key:1,class:`absolute inset-0 bg-black/35`},v={class:`relative w-full max-w-[440px]`},y={class:`rounded-xl border bg-card p-8 text-card-foreground shadow-xl sm:p-10`},b={class:`mb-8`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={key:0,class:`mt-6 text-center text-sm text-white/90 [text-shadow:0_1px_2px_rgb(0_0_0/0.4)]`},T={key:2,class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},E={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},D=[`src`],O={key:1,class:`pointer-events-none absolute inset-0 opacity-[0.12]`,style:{"background-image":`radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)`}},k={key:0,class:`text-3xl leading-tight font-semibold tracking-tight`},A={class:`mt-4 text-[15px] opacity-85`},j={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},M={class:`w-full max-w-[400px]`},N={class:`mb-10 lg:hidden`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`mt-2 text-sm text-muted-foreground`},I={class:`mt-8`},L={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(L){let R=L,z=a(()=>d().props.branding),B=a(()=>z.value.login??{layout:`split`});return(a,d)=>(o(),i(s,null,[e(t(f),{title:R.title},null,8,[`title`]),z.value.preview?(o(),i(`div`,m,`Vorschau des Entwurfs`)):u(``,!0),B.value.layout===`centered`?(o(),i(`div`,h,[B.value.image_url?(o(),i(`img`,{key:0,src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,g)):u(``,!0),B.value.image_url?(o(),i(`div`,_)):u(``,!0),r(`div`,v,[r(`div`,y,[r(`div`,b,[e(p)]),r(`h1`,x,c(R.title),1),R.description?(o(),i(`p`,S,c(R.description),1)):u(``,!0),r(`div`,C,[l(a.$slots,`default`)])]),B.value.title?(o(),i(`p`,w,c(B.value.title),1)):u(``,!0)])])):(o(),i(`div`,T,[r(`aside`,E,[B.value.image_url?(o(),i(s,{key:0},[r(`img`,{src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,D),d[0]||=r(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10`},null,-1)],64)):(o(),i(`div`,O)),e(p,{inverted:``,class:n([`relative`,B.value.image_url?`text-white`:``])},null,8,[`class`]),r(`div`,{class:n([`relative max-w-md`,B.value.image_url?`text-white`:``])},[B.value.title?(o(),i(`p`,k,c(B.value.title),1)):u(``,!0),r(`p`,A,c(B.value.text||`Neuigkeiten, Ansprechpartner und Anwendungen von ${z.value.portal_name}.`),1)],2),r(`p`,{class:n([`relative text-xs opacity-70`,B.value.image_url?`text-white`:``])},`© `+c(new Date().getFullYear())+` `+c(z.value.portal_name),3)]),r(`main`,j,[r(`div`,M,[r(`div`,N,[e(p)]),r(`h1`,P,c(R.title),1),R.description?(o(),i(`p`,F,c(R.description),1)):u(``,!0),r(`div`,I,[l(a.$slots,`default`)])])])]))],64))}};export{L as t}; \ No newline at end of file +import{D as e,On as t,Zn as n,_ as r,b as i,g as a,mt as o,o as s,tr as c,xt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as d,t as f}from"./app-Cw5f57va.js";import{t as p}from"./BrandLogo-CJygQm3u.js";var m={key:0,class:`bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},h={key:1,class:`relative grid min-h-screen place-items-center bg-brand px-4 py-12`},g=[`src`],_={key:1,class:`absolute inset-0 bg-black/35`},v={class:`relative w-full max-w-[440px]`},y={class:`rounded-xl border bg-card p-8 text-card-foreground shadow-xl sm:p-10`},b={class:`mb-8`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={key:0,class:`mt-6 text-center text-sm text-white/90 [text-shadow:0_1px_2px_rgb(0_0_0/0.4)]`},T={key:2,class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},E={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},D=[`src`],O={key:1,class:`pointer-events-none absolute inset-0 opacity-[0.12]`,style:{"background-image":`radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)`}},k={key:0,class:`text-3xl leading-tight font-semibold tracking-tight`},A={class:`mt-4 text-[15px] opacity-85`},j={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},M={class:`w-full max-w-[400px]`},N={class:`mb-10 lg:hidden`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`mt-2 text-sm text-muted-foreground`},I={class:`mt-8`},L={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(L){let R=L,z=a(()=>d().props.branding),B=a(()=>z.value.login??{layout:`split`});return(a,d)=>(o(),i(s,null,[e(t(f),{title:R.title},null,8,[`title`]),z.value.preview?(o(),i(`div`,m,`Vorschau des Entwurfs`)):u(``,!0),B.value.layout===`centered`?(o(),i(`div`,h,[B.value.image_url?(o(),i(`img`,{key:0,src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,g)):u(``,!0),B.value.image_url?(o(),i(`div`,_)):u(``,!0),r(`div`,v,[r(`div`,y,[r(`div`,b,[e(p)]),r(`h1`,x,c(R.title),1),R.description?(o(),i(`p`,S,c(R.description),1)):u(``,!0),r(`div`,C,[l(a.$slots,`default`)])]),B.value.title?(o(),i(`p`,w,c(B.value.title),1)):u(``,!0)])])):(o(),i(`div`,T,[r(`aside`,E,[B.value.image_url?(o(),i(s,{key:0},[r(`img`,{src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,D),d[0]||=r(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10`},null,-1)],64)):(o(),i(`div`,O)),e(p,{inverted:``,class:n([`relative`,B.value.image_url?`text-white`:``])},null,8,[`class`]),r(`div`,{class:n([`relative max-w-md`,B.value.image_url?`text-white`:``])},[B.value.title?(o(),i(`p`,k,c(B.value.title),1)):u(``,!0),r(`p`,A,c(B.value.text||`Neuigkeiten, Ansprechpartner und Anwendungen von ${z.value.portal_name}.`),1)],2),r(`p`,{class:n([`relative text-xs opacity-70`,B.value.image_url?`text-white`:``])},`© `+c(new Date().getFullYear())+` `+c(z.value.portal_name),3)]),r(`main`,j,[r(`div`,M,[r(`div`,N,[e(p)]),r(`h1`,P,c(R.title),1),R.description?(o(),i(`p`,F,c(R.description),1)):u(``,!0),r(`div`,I,[l(a.$slots,`default`)])])])]))],64))}};export{L as t}; \ No newline at end of file diff --git a/public/build/assets/Hero-B4uYTaNk.js b/public/build/assets/Hero-BULpySK9.js similarity index 96% rename from public/build/assets/Hero-B4uYTaNk.js rename to public/build/assets/Hero-BULpySK9.js index ed318df9..61d94c12 100644 --- a/public/build/assets/Hero-B4uYTaNk.js +++ b/public/build/assets/Hero-BULpySK9.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,g as c,it as l,mt as u,o as d,qt as f,tr as p,v as m,vn as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as _}from"./app-CNhdlRDG.js";import{k as v}from"./dist-DtGNiYlK.js";import{a as y}from"./AppLayout-B1gBMLPE.js";import{t as b}from"./chevron-left-8GGLVOvJ.js";import{t as x}from"./chevron-right-C9w5cb2q.js";import{t as S}from"./play-GbhjcPFH.js";var C=v({name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]}),w=[`src`,`aria-hidden`,`loading`],T={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},E={key:0,class:`mb-3 w-fit rounded-sm bg-brand px-2 py-0.5 text-[11px] font-semibold tracking-wide text-brand-foreground uppercase`},D={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},O={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},k={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},A={class:`flex items-center gap-1.5 px-1`},j=[`aria-label`,`aria-current`,`onClick`],M=[`aria-label`],N={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(v){let N=v,P=h(0),F=h(!1),I=c(()=>N.posts[P.value]),L=null;function R(e){P.value=(e+N.posts.length)%N.posts.length}function z(){B(),N.posts.length>1&&!F.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(L=setInterval(()=>R(P.value+1),7e3))}function B(){clearInterval(L)}function V(){F.value=!F.value,z()}return s(z),l(B),(s,c)=>(u(),a(`section`,{class:`relative isolate aspect-[16/10] overflow-hidden rounded-lg bg-brand-950 text-white sm:aspect-[16/9] lg:aspect-auto lg:h-full lg:min-h-[400px]`,"aria-roledescription":`Karussell`,"aria-label":`Hervorgehobene Neuigkeiten`,onMouseenter:B,onMouseleave:z,onFocusin:B,onFocusout:z},[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`img`,{key:e.id,src:e.cover_url,alt:``,"aria-hidden":t!==P.value,loading:t===0?`eager`:`lazy`,class:r([`absolute inset-0 -z-10 size-full object-cover transition-opacity duration-700`,t===P.value?`opacity-100`:`opacity-0`])},null,10,w))),128)),c[3]||=i(`div`,{class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/35 to-black/5 sm:bg-gradient-to-r sm:from-black/75 sm:via-black/40 sm:to-transparent`},null,-1),i(`div`,T,[I.value.category?(u(),a(`span`,E,p(I.value.category.name),1)):g(``,!0),i(`h2`,D,p(I.value.title),1),I.value.teaser?(u(),a(`p`,O,p(I.value.teaser),1)):g(``,!0),e(n(_),{href:`/neuigkeiten/${I.value.slug}`,class:`mt-5 inline-flex w-fit items-center gap-2 rounded-md bg-brand px-4 py-2.5 text-sm font-medium text-brand-foreground transition-colors hover:bg-brand-700`},{default:f(()=>[c[2]||=t(` Mehr erfahren `,-1),e(n(y),{class:`size-4`})]),_:1},8,[`href`])]),v.posts.length>1?(u(),a(`div`,k,[i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:c[0]||=e=>R(P.value-1)},[e(n(b),{class:`size-5`})]),i(`div`,A,[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`button`,{key:e.id,type:`button`,class:r([`h-1.5 rounded-full transition-all`,t===P.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${v.posts.length}`,"aria-current":t===P.value,onClick:e=>R(t)},null,10,j))),128))]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Nächster Beitrag`,onClick:c[1]||=e=>R(P.value+1)},[e(n(x),{class:`size-5`})]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":F.value?`Automatisch weiterblättern`:`Anhalten`,onClick:V},[F.value?(u(),m(n(S),{key:0,class:`size-4`})):(u(),m(n(C),{key:1,class:`size-4`}))],8,M)])):g(``,!0)],32))}},P={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),m(N,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{P as default}; \ 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,ct as s,g as c,it as l,mt as u,o as d,qt as f,tr as p,v as m,vn as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as _}from"./app-Cw5f57va.js";import{k as v}from"./dist-DtGNiYlK.js";import{a as y}from"./AppLayout-9kc4awMB.js";import{t as b}from"./chevron-left-8GGLVOvJ.js";import{t as x}from"./chevron-right-C9w5cb2q.js";import{t as S}from"./play-GbhjcPFH.js";var C=v({name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]}),w=[`src`,`aria-hidden`,`loading`],T={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},E={key:0,class:`mb-3 w-fit rounded-sm bg-brand px-2 py-0.5 text-[11px] font-semibold tracking-wide text-brand-foreground uppercase`},D={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},O={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},k={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},A={class:`flex items-center gap-1.5 px-1`},j=[`aria-label`,`aria-current`,`onClick`],M=[`aria-label`],N={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(v){let N=v,P=h(0),F=h(!1),I=c(()=>N.posts[P.value]),L=null;function R(e){P.value=(e+N.posts.length)%N.posts.length}function z(){B(),N.posts.length>1&&!F.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(L=setInterval(()=>R(P.value+1),7e3))}function B(){clearInterval(L)}function V(){F.value=!F.value,z()}return s(z),l(B),(s,c)=>(u(),a(`section`,{class:`relative isolate aspect-[16/10] overflow-hidden rounded-lg bg-brand-950 text-white sm:aspect-[16/9] lg:aspect-auto lg:h-full lg:min-h-[400px]`,"aria-roledescription":`Karussell`,"aria-label":`Hervorgehobene Neuigkeiten`,onMouseenter:B,onMouseleave:z,onFocusin:B,onFocusout:z},[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`img`,{key:e.id,src:e.cover_url,alt:``,"aria-hidden":t!==P.value,loading:t===0?`eager`:`lazy`,class:r([`absolute inset-0 -z-10 size-full object-cover transition-opacity duration-700`,t===P.value?`opacity-100`:`opacity-0`])},null,10,w))),128)),c[3]||=i(`div`,{class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/35 to-black/5 sm:bg-gradient-to-r sm:from-black/75 sm:via-black/40 sm:to-transparent`},null,-1),i(`div`,T,[I.value.category?(u(),a(`span`,E,p(I.value.category.name),1)):g(``,!0),i(`h2`,D,p(I.value.title),1),I.value.teaser?(u(),a(`p`,O,p(I.value.teaser),1)):g(``,!0),e(n(_),{href:`/neuigkeiten/${I.value.slug}`,class:`mt-5 inline-flex w-fit items-center gap-2 rounded-md bg-brand px-4 py-2.5 text-sm font-medium text-brand-foreground transition-colors hover:bg-brand-700`},{default:f(()=>[c[2]||=t(` Mehr erfahren `,-1),e(n(y),{class:`size-4`})]),_:1},8,[`href`])]),v.posts.length>1?(u(),a(`div`,k,[i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:c[0]||=e=>R(P.value-1)},[e(n(b),{class:`size-5`})]),i(`div`,A,[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`button`,{key:e.id,type:`button`,class:r([`h-1.5 rounded-full transition-all`,t===P.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${v.posts.length}`,"aria-current":t===P.value,onClick:e=>R(t)},null,10,j))),128))]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Nächster Beitrag`,onClick:c[1]||=e=>R(P.value+1)},[e(n(x),{class:`size-5`})]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":F.value?`Automatisch weiterblättern`:`Anhalten`,onClick:V},[F.value?(u(),m(n(S),{key:0,class:`size-4`})):(u(),m(n(C),{key:1,class:`size-4`}))],8,M)])):g(``,!0)],32))}},P={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),m(N,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{P as default}; \ No newline at end of file diff --git a/public/build/assets/IconList-Duk5OOnc.js b/public/build/assets/IconList-DnOSpW0P.js similarity index 94% rename from public/build/assets/IconList-Duk5OOnc.js rename to public/build/assets/IconList-DnOSpW0P.js index 43158a9e..f0155760 100644 --- a/public/build/assets/IconList-Duk5OOnc.js +++ b/public/build/assets/IconList-DnOSpW0P.js @@ -1 +1 @@ -import{D as e,Zn as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./AppIcon-D91Q4hzR.js";var p={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},m={class:`min-w-0`},h={key:0,class:`mt-0.5 block text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},g={__name:`IconList`,props:{block:{type:Object,required:!0}},setup(g){return(_,v)=>(a(),r(`ul`,{class:t(g.block.data.layout===`grid`?`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`:`grid gap-4`)},[(a(!0),r(o,null,i(g.block.data.items,(i,o)=>(a(),r(`li`,{key:o},[(a(),l(u(i.url?`a`:`div`),{href:i.url||void 0,class:t([`flex gap-4`,[g.block.data.layout===`grid`?`h-full rounded-lg border bg-card p-4`:``,i.url?`group`:``]])},{default:s(()=>[n(`span`,p,[e(f,{name:i.icon||`link`,class:`size-5`},null,8,[`name`])]),n(`span`,m,[n(`span`,{class:t([`block font-medium`,{"group-hover:underline":i.url}])},c(i.title),3),i.text?(a(),r(`span`,h,c(i.text),1)):d(``,!0)])]),_:2},1032,[`href`,`class`]))]))),128))],2))}};export{g as default}; \ No newline at end of file +import{D as e,Zn as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./AppIcon-BiVN_tuL.js";var p={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},m={class:`min-w-0`},h={key:0,class:`mt-0.5 block text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},g={__name:`IconList`,props:{block:{type:Object,required:!0}},setup(g){return(_,v)=>(a(),r(`ul`,{class:t(g.block.data.layout===`grid`?`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`:`grid gap-4`)},[(a(!0),r(o,null,i(g.block.data.items,(i,o)=>(a(),r(`li`,{key:o},[(a(),l(u(i.url?`a`:`div`),{href:i.url||void 0,class:t([`flex gap-4`,[g.block.data.layout===`grid`?`h-full rounded-lg border bg-card p-4`:``,i.url?`group`:``]])},{default:s(()=>[n(`span`,p,[e(f,{name:i.icon||`link`,class:`size-5`},null,8,[`name`])]),n(`span`,m,[n(`span`,{class:t([`block font-medium`,{"group-hover:underline":i.url}])},c(i.title),3),i.text?(a(),r(`span`,h,c(i.text),1)):d(``,!0)])]),_:2},1032,[`href`,`class`]))]))),128))],2))}};export{g as default}; \ No newline at end of file diff --git a/public/build/assets/Image-Dg8KGnwR.js b/public/build/assets/Image-BwahHCN1.js similarity index 93% rename from public/build/assets/Image-Dg8KGnwR.js rename to public/build/assets/Image-BwahHCN1.js index 328a1453..5f60ebfc 100644 --- a/public/build/assets/Image-Dg8KGnwR.js +++ b/public/build/assets/Image-BwahHCN1.js @@ -1 +1 @@ -import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,wt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{G as d}from"./AppIcon-D91Q4hzR.js";var f=[`src`,`alt`],p={key:1,class:`grid aspect-video place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},m={key:2,class:`mt-2 text-sm text-muted-foreground`},h={__name:`Image`,props:{block:{type:Object,required:!0}},setup(h){let g={full:`w-full`,medium:`mx-auto w-full @3xl:w-2/3`,small:`mx-auto w-full @xl:w-1/2 @3xl:w-1/3`};return(_,v)=>(a(),i(`figure`,{class:n(g[h.block.data.size])},[h.block.props?.url?(a(),c(l(h.block.data.url?`a`:`div`),{key:0,href:h.block.data.url||void 0},{default:o(()=>[r(`img`,{src:h.block.props.url,alt:h.block.data.alt,loading:`lazy`,class:`w-full rounded-lg`},null,8,f)]),_:1},8,[`href`])):(a(),i(`div`,p,[e(t(d),{class:`size-8`})])),h.block.data.caption?(a(),i(`figcaption`,m,s(h.block.data.caption),1)):u(``,!0)],2))}};export{h as default}; \ No newline at end of file +import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,wt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{G as d}from"./AppIcon-BiVN_tuL.js";var f=[`src`,`alt`],p={key:1,class:`grid aspect-video place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},m={key:2,class:`mt-2 text-sm text-muted-foreground`},h={__name:`Image`,props:{block:{type:Object,required:!0}},setup(h){let g={full:`w-full`,medium:`mx-auto w-full @3xl:w-2/3`,small:`mx-auto w-full @xl:w-1/2 @3xl:w-1/3`};return(_,v)=>(a(),i(`figure`,{class:n(g[h.block.data.size])},[h.block.props?.url?(a(),c(l(h.block.data.url?`a`:`div`),{key:0,href:h.block.data.url||void 0},{default:o(()=>[r(`img`,{src:h.block.props.url,alt:h.block.data.alt,loading:`lazy`,class:`w-full rounded-lg`},null,8,f)]),_:1},8,[`href`])):(a(),i(`div`,p,[e(t(d),{class:`size-8`})])),h.block.data.caption?(a(),i(`figcaption`,m,s(h.block.data.caption),1)):u(``,!0)],2))}};export{h as default}; \ No newline at end of file diff --git a/public/build/assets/Index-C73c_QQH.js b/public/build/assets/Index-BA_ObJLI.js similarity index 91% rename from public/build/assets/Index-C73c_QQH.js rename to public/build/assets/Index-BA_ObJLI.js index 74a38c68..cb041fc4 100644 --- a/public/build/assets/Index-C73c_QQH.js +++ b/public/build/assets/Index-BA_ObJLI.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,et as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,wt as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as g}from"./app-CNhdlRDG.js";import{B as _,E as v,Q as y}from"./AppIcon-D91Q4hzR.js";import{t as b}from"./AppLayout-B1gBMLPE.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-vFc2LbBj.js";import{i as C,r as w}from"./format-BsuBtvUs.js";import{t as T}from"./EventDateBlock-_E5XlLto.js";import{t as E}from"./widgets-CLxBZxrb.js";var D={class:`grid min-w-0 grid-cols-1 content-start gap-6`},O={__name:`DashboardSidebar`,props:{widgets:{type:Array,required:!0}},setup(e){return(t,r)=>(l(),a(`aside`,D,[(l(!0),a(u,null,o(e.widgets,e=>(l(),a(u,{key:e.key},[n(E)(e.component)?(l(),p(m(n(E)(e.component)),s({key:0,ref_for:!0},e.props),null,16)):h(``,!0)],64))),128))]))}},k={class:`grid gap-6 lg:grid-cols-12`},A={key:0,class:`grid gap-8`},j={class:`mb-3 text-sm font-semibold text-muted-foreground`},M={class:`divide-y rounded-lg border bg-card`},N={class:`min-w-0 flex-1`},P={class:`text-[15px] font-semibold group-hover:underline`},F={class:`mt-0.5 text-[13px] text-muted-foreground`},I={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},L=[`src`],R={key:1,class:`rounded-lg border border-dashed bg-card`},z={__name:`Index`,props:{events:{type:Object,required:!0},sidebar:{type:Array,default:()=>[]}},setup(s){let m=s,E=c(()=>{let e=[];for(let t of m.events.data){let n=new Date(t.starts_at),r=C((n(l(),p(b,{title:`Termine`},{default:d(()=>[e(S,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`}),i(`div`,k,[i(`div`,{class:r([`min-w-0`,s.sidebar.length?`lg:col-span-8 xl:col-span-9`:`lg:col-span-12`])},[E.value.length?(l(),a(`div`,A,[(l(!0),a(u,null,o(E.value,r=>(l(),a(`section`,{key:r.label},[i(`h2`,j,f(r.label),1),i(`ul`,M,[(l(!0),a(u,null,o(r.events,r=>(l(),a(`li`,{key:r.id},[e(n(g),{href:`/termine/${r.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:d(()=>[e(T,{date:r.starts_at,class:`w-14`},null,8,[`date`]),i(`div`,N,[i(`h3`,P,f(r.title),1),i(`p`,F,f(n(w)(r)),1),r.location||r.online_url?(l(),a(`p`,I,[r.location?(l(),p(n(_),{key:0,class:`size-3.5`})):(l(),p(n(v),{key:1,class:`size-3.5`})),t(` `+f(r.location||`Online`),1)])):h(``,!0)]),r.thumb_url?(l(),a(`img`,{key:0,src:r.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,L)):h(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(l(),a(`div`,R,[e(x,{icon:n(y),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))],2),s.sidebar.length?(l(),p(O,{key:0,widgets:s.sidebar,class:`lg:col-span-4 xl:col-span-3`},null,8,[`widgets`])):h(``,!0)])]),_:1}))}};export{z 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,et as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,wt as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as g}from"./app-Cw5f57va.js";import{B as _,E as v,Q as y}from"./AppIcon-BiVN_tuL.js";import{t as b}from"./AppLayout-9kc4awMB.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-r1Deze0_.js";import{i as C,r as w}from"./format-BsuBtvUs.js";import{t as T}from"./EventDateBlock-_E5XlLto.js";import{t as E}from"./widgets-D6uOBs7E.js";var D={class:`grid min-w-0 grid-cols-1 content-start gap-6`},O={__name:`DashboardSidebar`,props:{widgets:{type:Array,required:!0}},setup(e){return(t,r)=>(l(),a(`aside`,D,[(l(!0),a(u,null,o(e.widgets,e=>(l(),a(u,{key:e.key},[n(E)(e.component)?(l(),p(m(n(E)(e.component)),s({key:0,ref_for:!0},e.props),null,16)):h(``,!0)],64))),128))]))}},k={class:`grid gap-6 lg:grid-cols-12`},A={key:0,class:`grid gap-8`},j={class:`mb-3 text-sm font-semibold text-muted-foreground`},M={class:`divide-y rounded-lg border bg-card`},N={class:`min-w-0 flex-1`},P={class:`text-[15px] font-semibold group-hover:underline`},F={class:`mt-0.5 text-[13px] text-muted-foreground`},I={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},L=[`src`],R={key:1,class:`rounded-lg border border-dashed bg-card`},z={__name:`Index`,props:{events:{type:Object,required:!0},sidebar:{type:Array,default:()=>[]}},setup(s){let m=s,E=c(()=>{let e=[];for(let t of m.events.data){let n=new Date(t.starts_at),r=C((n(l(),p(b,{title:`Termine`},{default:d(()=>[e(S,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`}),i(`div`,k,[i(`div`,{class:r([`min-w-0`,s.sidebar.length?`lg:col-span-8 xl:col-span-9`:`lg:col-span-12`])},[E.value.length?(l(),a(`div`,A,[(l(!0),a(u,null,o(E.value,r=>(l(),a(`section`,{key:r.label},[i(`h2`,j,f(r.label),1),i(`ul`,M,[(l(!0),a(u,null,o(r.events,r=>(l(),a(`li`,{key:r.id},[e(n(g),{href:`/termine/${r.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:d(()=>[e(T,{date:r.starts_at,class:`w-14`},null,8,[`date`]),i(`div`,N,[i(`h3`,P,f(r.title),1),i(`p`,F,f(n(w)(r)),1),r.location||r.online_url?(l(),a(`p`,I,[r.location?(l(),p(n(_),{key:0,class:`size-3.5`})):(l(),p(n(v),{key:1,class:`size-3.5`})),t(` `+f(r.location||`Online`),1)])):h(``,!0)]),r.thumb_url?(l(),a(`img`,{key:0,src:r.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,L)):h(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(l(),a(`div`,R,[e(x,{icon:n(y),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))],2),s.sidebar.length?(l(),p(O,{key:0,widgets:s.sidebar,class:`lg:col-span-4 xl:col-span-3`},null,8,[`widgets`])):h(``,!0)])]),_:1}))}};export{z as default}; \ No newline at end of file diff --git a/public/build/assets/Index-D24U7IpG.js b/public/build/assets/Index-BHqjCKIj.js similarity index 97% rename from public/build/assets/Index-D24U7IpG.js rename to public/build/assets/Index-BHqjCKIj.js index 363b44c0..3b3ded8a 100644 --- a/public/build/assets/Index-D24U7IpG.js +++ b/public/build/assets/Index-BHqjCKIj.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,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as v,i as y,n as b,r as x}from"./app-CNhdlRDG.js";import{O as S,k as C}from"./dist-DtGNiYlK.js";import{$ as w,c as T,i as E,j as D,o as O,p as k,s as A}from"./AppIcon-D91Q4hzR.js";import{t as j}from"./AppLayout-B1gBMLPE.js";import{_ as M,o as N,t as P}from"./http-DmyDwIce.js";import{t as F}from"./chevron-left-8GGLVOvJ.js";import{t as I}from"./chevron-right-C9w5cb2q.js";import{t as ee}from"./ellipsis-vertical-B9wuHo-w.js";import{t as L}from"./pencil-line-CmAbFj4f.js";import{t as R}from"./plus-B_ij2ng2.js";import{t as te}from"./trash-DUqnVIgb.js";import{t as z}from"./FormField-BoFAO4pm.js";import{t as B}from"./EmptyState-Ceq4v8mE.js";import{t as V}from"./PageHeader-vFc2LbBj.js";import{t as H}from"./button-ZHC5mKey.js";import{t as U}from"./Input-FGSb2-yK.js";import{t as W}from"./Textarea-DEFXqC2w.js";import{i as G,n as K,r as q,t as J}from"./dialog-37na293D.js";import{t as Y}from"./DialogHeader-DuqiL3ry.js";var X=C({name:`arrow-right-left`,size:24,node:[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]}),Z=C({name:`award`,size:24,node:[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]}),Q=C({name:`flower-2`,size:24,node:[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]}),ne=C({name:`hand`,size:24,node:[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]}),re={key:0},ie={key:0,class:`flex items-center gap-2 rounded-md border px-2 py-1.5`},ae={class:`min-w-0 flex-1 truncate text-sm`},oe={key:1,class:`relative`},se={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-60 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},ce=[`onClick`],le={class:`truncate`},ue={class:`grid gap-4 sm:grid-cols-2`},de={key:0,class:`-mt-2 text-xs text-muted-foreground`},fe={__name:`EntryDialog`,props:{open:{type:Boolean,default:!1},section:{type:Object,default:null},entry:{type:Object,default:null},month:{type:String,required:!0}},emits:[`update:open`],setup(i,{emit:h}){let v=i,y=h,b={welcome:{date:`Eintritt am`,fields:[`department`,`location`,`text`]},transfer:{date:`Wechsel ab`,fields:[`from`,`to`,`text`]},jubilee:{date:`Jubiläum am`,fields:[`label`,`department`,`text`],label:`Jubiläum`,labelPlaceholder:`z. B. 25 Jahre`},farewell:{date:`Letzter Arbeitstag`,fields:[`department`,`label`,`text`],label:`Anlass (optional)`,labelPlaceholder:`z. B. Ruhestand`},memoriam:{date:`Verstorben am`,fields:[`born_on`,`department`,`text`]}},C=c(()=>b[v.section?.key]??b.welcome),w=e=>C.value.fields.includes(e),T=x({section:``,user_id:null,name:``,date:``,born_on:``,department:``,location:``,from:``,to:``,label:``,text:``}),E=m(null),D=m(!1),O=m(``),A=m([]);n(()=>v.open,e=>{if(!e)return;let t=v.entry;T.clearErrors(),T.defaults({section:v.section.key,user_id:t?.user_id??null,name:t?.free_name??``,date:t?.date??`${v.month}-01`,born_on:t?.born_on??``,department:t?.raw?.department??``,location:t?.raw?.location??``,from:t?.from??``,to:t?.to??``,label:t?.label??``,text:t?.text??``}),T.reset(),E.value=t?.person??null,D.value=!!t&&!t.user_id,O.value=``,A.value=[]});let j;n(O,e=>{if(clearTimeout(j),e.trim().length<2)return A.value=[];j=setTimeout(async()=>A.value=(await P.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`)).people,250)});function N(e){E.value=e,T.user_id=e.id,O.value=``,A.value=[]}function F(){E.value=null,T.user_id=null}function I(){D.value&&(T.user_id=null);let e={preserveScroll:!0,onSuccess:()=>y(`update:open`,!1)};v.entry?T.put(`/gemeinsam/eintraege/${v.entry.id}`,e):T.post(`/gemeinsam/eintraege`,e)}return(n,c)=>(l(),p(r(G),{open:i.open,"onUpdate:open":c[12]||=e=>y(`update:open`,e)},{default:d(()=>[e(r(q),{class:`sm:max-w-lg`},{default:d(()=>[e(r(Y),null,{default:d(()=>[e(r(J),null,{default:d(()=>[t(f(i.section?.title),1)]),_:1})]),_:1}),a(`form`,{class:`grid gap-4`,onSubmit:_(I,[`prevent`])},[e(z,{id:`g-person`,label:`Person`,error:r(T).errors.name||r(T).errors.user_id},{default:d(()=>[D.value?(l(),p(r(U),{key:1,id:`g-person`,modelValue:r(T).name,"onUpdate:modelValue":c[1]||=e=>r(T).name=e,maxlength:`150`,placeholder:`Vor- und Nachname`},null,8,[`modelValue`])):(l(),o(`div`,re,[E.value?(l(),o(`div`,ie,[e(k,{person:E.value,class:`size-7 text-[10px]`},null,8,[`person`]),a(`span`,ae,f(E.value.name),1),a(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,"aria-label":`Auswahl entfernen`,onClick:F},[e(r(M),{class:`size-3.5`})])])):(l(),o(`div`,oe,[e(r(U),{id:`g-person`,modelValue:O.value,"onUpdate:modelValue":c[0]||=e=>O.value=e,placeholder:`Name im Portal suchen …`,autocomplete:`off`},null,8,[`modelValue`]),A.value.length?(l(),o(`ul`,se,[(l(!0),o(u,null,s(A.value,n=>(l(),o(`li`,{key:n.id},[a(`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=>N(n)},[e(k,{person:n,class:`size-7 text-[10px]`},null,8,[`person`]),c[13]||=t(),a(`span`,le,f(n.name),1)],8,ce)]))),128))])):g(``,!0)]))])),a(`button`,{type:`button`,class:`mt-1 justify-self-start text-xs text-brand-text hover:underline`,onClick:c[2]||=e=>D.value=!D.value},f(D.value?`Stattdessen Person aus dem Portal wählen`:`Nicht im Portal? Namen frei eintragen`),1)]),_:1},8,[`error`]),a(`div`,ue,[e(z,{id:`g-date`,label:C.value.date,error:r(T).errors.date},{default:d(()=>[e(r(U),{id:`g-date`,modelValue:r(T).date,"onUpdate:modelValue":c[3]||=e=>r(T).date=e,type:`date`},null,8,[`modelValue`])]),_:1},8,[`label`,`error`]),w(`born_on`)?(l(),p(z,{key:0,id:`g-born`,label:`Geboren am (optional)`,error:r(T).errors.born_on},{default:d(()=>[e(r(U),{id:`g-born`,modelValue:r(T).born_on,"onUpdate:modelValue":c[4]||=e=>r(T).born_on=e,type:`date`},null,8,[`modelValue`])]),_:1},8,[`error`])):g(``,!0),w(`label`)?(l(),p(z,{key:1,id:`g-label`,label:C.value.label,error:r(T).errors.label},{default:d(()=>[e(r(U),{id:`g-label`,modelValue:r(T).label,"onUpdate:modelValue":c[5]||=e=>r(T).label=e,maxlength:`150`,placeholder:C.value.labelPlaceholder},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`,`error`])):g(``,!0),w(`from`)?(l(),p(z,{key:2,id:`g-from`,label:`Bisher`,error:r(T).errors.from},{default:d(()=>[e(r(U),{id:`g-from`,modelValue:r(T).from,"onUpdate:modelValue":c[6]||=e=>r(T).from=e,maxlength:`150`,placeholder:`z. B. Werkstatt Nord`},null,8,[`modelValue`])]),_:1},8,[`error`])):g(``,!0),w(`to`)?(l(),p(z,{key:3,id:`g-to`,label:`Künftig`,error:r(T).errors.to},{default:d(()=>[e(r(U),{id:`g-to`,modelValue:r(T).to,"onUpdate:modelValue":c[7]||=e=>r(T).to=e,maxlength:`150`,placeholder:`z. B. Verwaltung`},null,8,[`modelValue`])]),_:1},8,[`error`])):g(``,!0),w(`department`)?(l(),p(z,{key:4,id:`g-dep`,label:`Bereich`,error:r(T).errors.department},{default:d(()=>[e(r(U),{id:`g-dep`,modelValue:r(T).department,"onUpdate:modelValue":c[8]||=e=>r(T).department=e,maxlength:`150`,placeholder:E.value?.department||``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`error`])):g(``,!0),w(`location`)?(l(),p(z,{key:5,id:`g-loc`,label:`Standort`,error:r(T).errors.location},{default:d(()=>[e(r(U),{id:`g-loc`,modelValue:r(T).location,"onUpdate:modelValue":c[9]||=e=>r(T).location=e,maxlength:`150`,placeholder:E.value?.location||``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`error`])):g(``,!0)]),E.value&&(w(`department`)||w(`location`))?(l(),o(`p`,de,`Leer gelassen, gilt die Angabe aus dem Profil.`)):g(``,!0),w(`text`)?(l(),p(z,{key:1,id:`g-text`,label:`Text (optional)`,error:r(T).errors.text},{default:d(()=>[e(r(W),{id:`g-text`,modelValue:r(T).text,"onUpdate:modelValue":c[10]||=e=>r(T).text=e,rows:`2`,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`])):g(``,!0),e(r(K),null,{default:d(()=>[e(r(H),{type:`button`,variant:`outline`,onClick:c[11]||=e=>y(`update:open`,!1)},{default:d(()=>[...c[14]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(H),{type:`submit`,disabled:r(T).processing},{default:d(()=>[r(T).processing?(l(),p(r(S),{key:0,class:`animate-spin`})):g(``,!0),c[15]||=t(` Speichern`,-1)]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}},pe={class:`flex min-w-0 items-center gap-3`},me={class:`min-w-0`},he={key:1,class:`block truncate text-sm font-medium`},ge={key:2,class:`block truncate text-xs text-muted-foreground`},_e={__name:`PersonCell`,props:{entry:{type:Object,required:!0},muted:{type:Boolean,default:!1}},setup(n){let s=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]).join(``).toUpperCase();return(c,u)=>(l(),o(`div`,pe,[e(k,{person:n.entry.person??{id:n.entry.name,name:n.entry.name,initials:s(n.entry.name)},class:i([`size-9 shrink-0`,{grayscale:n.muted}])},null,8,[`person`,`class`]),a(`div`,me,[n.entry.person?.url?(l(),p(r(b),{key:0,href:n.entry.person.url,class:`block truncate text-sm font-medium hover:underline`},{default:d(()=>[t(f(n.entry.name),1)]),_:1},8,[`href`])):(l(),o(`span`,he,f(n.entry.name),1)),n.entry.person?.job_title?(l(),o(`span`,ge,f(n.entry.person.job_title),1)):g(``,!0)])]))}},ve={class:`flex items-center gap-1 rounded-md border bg-card p-0.5`},ye={class:`min-w-32 text-center text-sm font-medium`},be={key:0,class:`grid gap-6`},xe={class:`flex items-center justify-between gap-3 border-b px-5 py-3`},Se={key:1,class:`text-xs text-muted-foreground`},Ce={key:0,class:`overflow-x-auto`},we={class:`w-full text-sm`},Te={class:`bg-muted/40 text-left text-xs text-muted-foreground`},Ee={key:0,class:`w-12`},De={class:`divide-y`},Oe={class:`px-5 py-2.5`},ke={key:0,class:`pr-3 text-right`},$={key:0},Ae=[`colspan`],je={key:1,class:`px-5 py-4 text-[13px] text-muted-foreground`},Me={key:1,class:`rounded-lg border bg-card`},Ne={__name:`Index`,props:{month:{type:String,required:!0},monthLabel:{type:String,required:!0},previous:{type:String,required:!0},next:{type:String,required:!0},isCurrent:{type:Boolean,default:!0},sections:{type:Array,required:!0},canManage:{type:Boolean,default:!1}},setup(_){let x=_,S=y();n(()=>S.props.flash.status,e=>e&&N.success(e),{immediate:!0});let C={welcome:D,transfer:X,birthdays:w,jubilee:Z,farewell:ne,memoriam:Q},k={welcome:[[`department`,`Bereich`],[`location`,`Standort`],[`date`,`Eintritt`]],transfer:[[`from`,`Bisher`],[`to`,`Künftig`],[`date`,`Ab`]],birthdays:[[`department`,`Bereich`],[`location`,`Standort`],[`date`,`Geburtstag`]],jubilee:[[`label`,`Jubiläum`],[`department`,`Bereich`],[`date`,`Datum`]],farewell:[[`department`,`Bereich`],[`label`,`Anlass`],[`date`,`Letzter Arbeitstag`]],memoriam:[[`lifespan`,`Lebensdaten`],[`department`,`Bereich`]]},M=new Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,year:`numeric`}),P=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}),z=(e,t)=>e?(t===`birthdays`?P:M).format(new Date(`${e}T12:00:00`)):`–`;function U(e,t,n){return t===`date`?z(e.date,n):t===`lifespan`?[e.born_on&&`* ${z(e.born_on)}`,`† ${z(e.date)}`].filter(Boolean).join(` `):e[t]||`–`}let W=c(()=>x.sections.filter(e=>e.entries.length||x.canManage&&!e.automatic)),G=c(()=>x.sections.every(e=>!e.entries.length)),K=m({open:!1,section:null,entry:null}),q=e=>K.value={open:!0,section:e,entry:null},J=(e,t)=>K.value={open:!0,section:e,entry:t};function Y(e){window.confirm(`Eintrag „${e.name}“ entfernen?`)&&v.delete(`/gemeinsam/eintraege/${e.id}`,{preserveScroll:!0})}return(n,c)=>(l(),p(j,{title:`Gemeinsam feiern, erinnern und willkommen heißen`},{default:d(()=>[e(V,{title:`Gemeinsam feiern, erinnern und willkommen heißen`,description:_.monthLabel},{actions:d(()=>[a(`div`,ve,[e(r(H),{variant:`ghost`,size:`icon`,class:`size-8`,"as-child":``},{default:d(()=>[e(r(b),{href:`/gemeinsam?monat=${_.previous}`,"aria-label":`Vorheriger Monat`,"preserve-scroll":``},{default:d(()=>[e(r(F))]),_:1},8,[`href`])]),_:1}),a(`span`,ye,f(_.monthLabel),1),e(r(H),{variant:`ghost`,size:`icon`,class:`size-8`,"as-child":``},{default:d(()=>[e(r(b),{href:`/gemeinsam?monat=${_.next}`,"aria-label":`Nächster Monat`,"preserve-scroll":``},{default:d(()=>[e(r(I))]),_:1},8,[`href`])]),_:1})]),_.isCurrent?g(``,!0):(l(),p(r(H),{key:0,variant:`outline`,"as-child":``},{default:d(()=>[e(r(b),{href:`/gemeinsam`},{default:d(()=>[...c[1]||=[t(`Aktueller Monat`,-1)]]),_:1})]),_:1}))]),_:1},8,[`description`]),W.value.length&&(!G.value||_.canManage)?(l(),o(`div`,be,[(l(!0),o(u,null,s(W.value,n=>(l(),o(`section`,{key:n.key,class:i([`overflow-hidden rounded-lg border bg-card`,n.key===`memoriam`?`border-t-4 border-t-foreground/70`:`border-t-4 border-t-brand`])},[a(`header`,xe,[a(`h2`,{class:i([`flex items-center gap-2.5 text-base font-semibold`,{"text-foreground/85":n.key===`memoriam`}])},[(l(),p(h(C[n.key]),{class:i([`size-5`,n.key===`memoriam`?`text-muted-foreground`:`text-brand-text`])},null,8,[`class`])),t(` `+f(n.title),1)],2),_.canManage&&!n.automatic?(l(),p(r(H),{key:0,size:`sm`,variant:`outline`,onClick:e=>q(n)},{default:d(()=>[e(r(R)),c[2]||=t(` Hinzufügen`,-1)]),_:1},8,[`onClick`])):n.automatic&&_.canManage?(l(),o(`span`,Se,`aus dem Geburtstagskalender`)):g(``,!0)]),n.entries.length?(l(),o(`div`,Ce,[a(`table`,we,[a(`thead`,Te,[a(`tr`,null,[c[4]||=a(`th`,{class:`px-5 py-2 font-medium`},`Name`,-1),(l(!0),o(u,null,s(k[n.key],([e,t])=>(l(),o(`th`,{key:e,class:`px-3 py-2 font-medium whitespace-nowrap`},f(t),1))),128)),_.canManage&&!n.automatic?(l(),o(`th`,Ee,[...c[3]||=[a(`span`,{class:`sr-only`},`Aktionen`,-1)]])):g(``,!0)])]),a(`tbody`,De,[(l(!0),o(u,null,s(n.entries,p=>(l(),o(u,{key:p.id},[a(`tr`,null,[a(`td`,Oe,[e(_e,{entry:p,muted:n.key===`memoriam`},null,8,[`entry`,`muted`])]),(l(!0),o(u,null,s(k[n.key],([e])=>(l(),o(`td`,{key:e,class:i([`px-3 py-2.5 whitespace-nowrap`,{"tabular-nums":e===`date`||e===`lifespan`}])},f(U(p,e,n.key)),3))),128)),_.canManage&&!n.automatic?(l(),o(`td`,ke,[e(r(T),null,{default:d(()=>[e(r(E),{"as-child":``},{default:d(()=>[e(r(H),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${p.name}`},{default:d(()=>[e(r(ee))]),_:1},8,[`aria-label`])]),_:2},1024),e(r(A),{align:`end`},{default:d(()=>[e(r(O),{onSelect:e=>J(n,p)},{default:d(()=>[e(r(L)),c[5]||=t(` Bearbeiten`,-1)]),_:1},8,[`onSelect`]),e(r(O),{class:`text-destructive`,onSelect:e=>Y(p)},{default:d(()=>[e(r(te)),c[6]||=t(` Entfernen`,-1)]),_:1},8,[`onSelect`])]),_:2},1024)]),_:2},1024)])):g(``,!0)]),p.text?(l(),o(`tr`,$,[a(`td`,{colspan:k[n.key].length+2,class:i([`-mt-1 px-5 pb-3 text-[13px] text-muted-foreground`,{italic:n.key===`memoriam`}])},f(p.text),11,Ae)])):g(``,!0)],64))),128))])])])):(l(),o(`p`,je,`Noch keine Einträge in diesem Monat.`))],2))),128))])):(l(),o(`div`,Me,[e(B,{icon:r(D),title:`Keine Einträge in diesem Monat`,text:`Hier stehen neue Kolleginnen und Kollegen, Wechsel, Geburtstage, Jubiläen, Verabschiedungen und Gedenken.`},null,8,[`icon`])])),_.canManage?(l(),p(fe,{key:2,open:K.value.open,"onUpdate:open":c[0]||=e=>K.value.open=e,section:K.value.section,entry:K.value.entry,month:_.month},null,8,[`open`,`section`,`entry`,`month`])):g(``,!0)]),_:1}))}};export{Ne 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,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as v,i as y,n as b,r as x}from"./app-Cw5f57va.js";import{O as S,k as C}from"./dist-DtGNiYlK.js";import{$ as w,c as T,i as E,j as D,o as O,p as k,s as A}from"./AppIcon-BiVN_tuL.js";import{t as j}from"./AppLayout-9kc4awMB.js";import{_ as M,o as N,t as P}from"./http-DmyDwIce.js";import{t as F}from"./chevron-left-8GGLVOvJ.js";import{t as I}from"./chevron-right-C9w5cb2q.js";import{t as ee}from"./ellipsis-vertical-B9wuHo-w.js";import{t as L}from"./pencil-line-CmAbFj4f.js";import{t as R}from"./plus-B_ij2ng2.js";import{t as te}from"./trash-DUqnVIgb.js";import{t as z}from"./FormField-BoFAO4pm.js";import{t as B}from"./EmptyState-Ceq4v8mE.js";import{t as V}from"./PageHeader-r1Deze0_.js";import{t as H}from"./button-ZHC5mKey.js";import{t as U}from"./Input-FGSb2-yK.js";import{t as W}from"./Textarea-DEFXqC2w.js";import{i as G,n as K,r as q,t as J}from"./dialog-DiN2bNwR.js";import{t as Y}from"./DialogHeader-DuqiL3ry.js";var X=C({name:`arrow-right-left`,size:24,node:[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]}),Z=C({name:`award`,size:24,node:[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]}),Q=C({name:`flower-2`,size:24,node:[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]}),ne=C({name:`hand`,size:24,node:[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]}),re={key:0},ie={key:0,class:`flex items-center gap-2 rounded-md border px-2 py-1.5`},ae={class:`min-w-0 flex-1 truncate text-sm`},oe={key:1,class:`relative`},se={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-60 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},ce=[`onClick`],le={class:`truncate`},ue={class:`grid gap-4 sm:grid-cols-2`},de={key:0,class:`-mt-2 text-xs text-muted-foreground`},fe={__name:`EntryDialog`,props:{open:{type:Boolean,default:!1},section:{type:Object,default:null},entry:{type:Object,default:null},month:{type:String,required:!0}},emits:[`update:open`],setup(i,{emit:h}){let v=i,y=h,b={welcome:{date:`Eintritt am`,fields:[`department`,`location`,`text`]},transfer:{date:`Wechsel ab`,fields:[`from`,`to`,`text`]},jubilee:{date:`Jubiläum am`,fields:[`label`,`department`,`text`],label:`Jubiläum`,labelPlaceholder:`z. B. 25 Jahre`},farewell:{date:`Letzter Arbeitstag`,fields:[`department`,`label`,`text`],label:`Anlass (optional)`,labelPlaceholder:`z. B. Ruhestand`},memoriam:{date:`Verstorben am`,fields:[`born_on`,`department`,`text`]}},C=c(()=>b[v.section?.key]??b.welcome),w=e=>C.value.fields.includes(e),T=x({section:``,user_id:null,name:``,date:``,born_on:``,department:``,location:``,from:``,to:``,label:``,text:``}),E=m(null),D=m(!1),O=m(``),A=m([]);n(()=>v.open,e=>{if(!e)return;let t=v.entry;T.clearErrors(),T.defaults({section:v.section.key,user_id:t?.user_id??null,name:t?.free_name??``,date:t?.date??`${v.month}-01`,born_on:t?.born_on??``,department:t?.raw?.department??``,location:t?.raw?.location??``,from:t?.from??``,to:t?.to??``,label:t?.label??``,text:t?.text??``}),T.reset(),E.value=t?.person??null,D.value=!!t&&!t.user_id,O.value=``,A.value=[]});let j;n(O,e=>{if(clearTimeout(j),e.trim().length<2)return A.value=[];j=setTimeout(async()=>A.value=(await P.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`)).people,250)});function N(e){E.value=e,T.user_id=e.id,O.value=``,A.value=[]}function F(){E.value=null,T.user_id=null}function I(){D.value&&(T.user_id=null);let e={preserveScroll:!0,onSuccess:()=>y(`update:open`,!1)};v.entry?T.put(`/gemeinsam/eintraege/${v.entry.id}`,e):T.post(`/gemeinsam/eintraege`,e)}return(n,c)=>(l(),p(r(G),{open:i.open,"onUpdate:open":c[12]||=e=>y(`update:open`,e)},{default:d(()=>[e(r(q),{class:`sm:max-w-lg`},{default:d(()=>[e(r(Y),null,{default:d(()=>[e(r(J),null,{default:d(()=>[t(f(i.section?.title),1)]),_:1})]),_:1}),a(`form`,{class:`grid gap-4`,onSubmit:_(I,[`prevent`])},[e(z,{id:`g-person`,label:`Person`,error:r(T).errors.name||r(T).errors.user_id},{default:d(()=>[D.value?(l(),p(r(U),{key:1,id:`g-person`,modelValue:r(T).name,"onUpdate:modelValue":c[1]||=e=>r(T).name=e,maxlength:`150`,placeholder:`Vor- und Nachname`},null,8,[`modelValue`])):(l(),o(`div`,re,[E.value?(l(),o(`div`,ie,[e(k,{person:E.value,class:`size-7 text-[10px]`},null,8,[`person`]),a(`span`,ae,f(E.value.name),1),a(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,"aria-label":`Auswahl entfernen`,onClick:F},[e(r(M),{class:`size-3.5`})])])):(l(),o(`div`,oe,[e(r(U),{id:`g-person`,modelValue:O.value,"onUpdate:modelValue":c[0]||=e=>O.value=e,placeholder:`Name im Portal suchen …`,autocomplete:`off`},null,8,[`modelValue`]),A.value.length?(l(),o(`ul`,se,[(l(!0),o(u,null,s(A.value,n=>(l(),o(`li`,{key:n.id},[a(`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=>N(n)},[e(k,{person:n,class:`size-7 text-[10px]`},null,8,[`person`]),c[13]||=t(),a(`span`,le,f(n.name),1)],8,ce)]))),128))])):g(``,!0)]))])),a(`button`,{type:`button`,class:`mt-1 justify-self-start text-xs text-brand-text hover:underline`,onClick:c[2]||=e=>D.value=!D.value},f(D.value?`Stattdessen Person aus dem Portal wählen`:`Nicht im Portal? Namen frei eintragen`),1)]),_:1},8,[`error`]),a(`div`,ue,[e(z,{id:`g-date`,label:C.value.date,error:r(T).errors.date},{default:d(()=>[e(r(U),{id:`g-date`,modelValue:r(T).date,"onUpdate:modelValue":c[3]||=e=>r(T).date=e,type:`date`},null,8,[`modelValue`])]),_:1},8,[`label`,`error`]),w(`born_on`)?(l(),p(z,{key:0,id:`g-born`,label:`Geboren am (optional)`,error:r(T).errors.born_on},{default:d(()=>[e(r(U),{id:`g-born`,modelValue:r(T).born_on,"onUpdate:modelValue":c[4]||=e=>r(T).born_on=e,type:`date`},null,8,[`modelValue`])]),_:1},8,[`error`])):g(``,!0),w(`label`)?(l(),p(z,{key:1,id:`g-label`,label:C.value.label,error:r(T).errors.label},{default:d(()=>[e(r(U),{id:`g-label`,modelValue:r(T).label,"onUpdate:modelValue":c[5]||=e=>r(T).label=e,maxlength:`150`,placeholder:C.value.labelPlaceholder},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`,`error`])):g(``,!0),w(`from`)?(l(),p(z,{key:2,id:`g-from`,label:`Bisher`,error:r(T).errors.from},{default:d(()=>[e(r(U),{id:`g-from`,modelValue:r(T).from,"onUpdate:modelValue":c[6]||=e=>r(T).from=e,maxlength:`150`,placeholder:`z. B. Werkstatt Nord`},null,8,[`modelValue`])]),_:1},8,[`error`])):g(``,!0),w(`to`)?(l(),p(z,{key:3,id:`g-to`,label:`Künftig`,error:r(T).errors.to},{default:d(()=>[e(r(U),{id:`g-to`,modelValue:r(T).to,"onUpdate:modelValue":c[7]||=e=>r(T).to=e,maxlength:`150`,placeholder:`z. B. Verwaltung`},null,8,[`modelValue`])]),_:1},8,[`error`])):g(``,!0),w(`department`)?(l(),p(z,{key:4,id:`g-dep`,label:`Bereich`,error:r(T).errors.department},{default:d(()=>[e(r(U),{id:`g-dep`,modelValue:r(T).department,"onUpdate:modelValue":c[8]||=e=>r(T).department=e,maxlength:`150`,placeholder:E.value?.department||``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`error`])):g(``,!0),w(`location`)?(l(),p(z,{key:5,id:`g-loc`,label:`Standort`,error:r(T).errors.location},{default:d(()=>[e(r(U),{id:`g-loc`,modelValue:r(T).location,"onUpdate:modelValue":c[9]||=e=>r(T).location=e,maxlength:`150`,placeholder:E.value?.location||``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`error`])):g(``,!0)]),E.value&&(w(`department`)||w(`location`))?(l(),o(`p`,de,`Leer gelassen, gilt die Angabe aus dem Profil.`)):g(``,!0),w(`text`)?(l(),p(z,{key:1,id:`g-text`,label:`Text (optional)`,error:r(T).errors.text},{default:d(()=>[e(r(W),{id:`g-text`,modelValue:r(T).text,"onUpdate:modelValue":c[10]||=e=>r(T).text=e,rows:`2`,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`])):g(``,!0),e(r(K),null,{default:d(()=>[e(r(H),{type:`button`,variant:`outline`,onClick:c[11]||=e=>y(`update:open`,!1)},{default:d(()=>[...c[14]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(H),{type:`submit`,disabled:r(T).processing},{default:d(()=>[r(T).processing?(l(),p(r(S),{key:0,class:`animate-spin`})):g(``,!0),c[15]||=t(` Speichern`,-1)]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}},pe={class:`flex min-w-0 items-center gap-3`},me={class:`min-w-0`},he={key:1,class:`block truncate text-sm font-medium`},ge={key:2,class:`block truncate text-xs text-muted-foreground`},_e={__name:`PersonCell`,props:{entry:{type:Object,required:!0},muted:{type:Boolean,default:!1}},setup(n){let s=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]).join(``).toUpperCase();return(c,u)=>(l(),o(`div`,pe,[e(k,{person:n.entry.person??{id:n.entry.name,name:n.entry.name,initials:s(n.entry.name)},class:i([`size-9 shrink-0`,{grayscale:n.muted}])},null,8,[`person`,`class`]),a(`div`,me,[n.entry.person?.url?(l(),p(r(b),{key:0,href:n.entry.person.url,class:`block truncate text-sm font-medium hover:underline`},{default:d(()=>[t(f(n.entry.name),1)]),_:1},8,[`href`])):(l(),o(`span`,he,f(n.entry.name),1)),n.entry.person?.job_title?(l(),o(`span`,ge,f(n.entry.person.job_title),1)):g(``,!0)])]))}},ve={class:`flex items-center gap-1 rounded-md border bg-card p-0.5`},ye={class:`min-w-32 text-center text-sm font-medium`},be={key:0,class:`grid gap-6`},xe={class:`flex items-center justify-between gap-3 border-b px-5 py-3`},Se={key:1,class:`text-xs text-muted-foreground`},Ce={key:0,class:`overflow-x-auto`},we={class:`w-full text-sm`},Te={class:`bg-muted/40 text-left text-xs text-muted-foreground`},Ee={key:0,class:`w-12`},De={class:`divide-y`},Oe={class:`px-5 py-2.5`},ke={key:0,class:`pr-3 text-right`},$={key:0},Ae=[`colspan`],je={key:1,class:`px-5 py-4 text-[13px] text-muted-foreground`},Me={key:1,class:`rounded-lg border bg-card`},Ne={__name:`Index`,props:{month:{type:String,required:!0},monthLabel:{type:String,required:!0},previous:{type:String,required:!0},next:{type:String,required:!0},isCurrent:{type:Boolean,default:!0},sections:{type:Array,required:!0},canManage:{type:Boolean,default:!1}},setup(_){let x=_,S=y();n(()=>S.props.flash.status,e=>e&&N.success(e),{immediate:!0});let C={welcome:D,transfer:X,birthdays:w,jubilee:Z,farewell:ne,memoriam:Q},k={welcome:[[`department`,`Bereich`],[`location`,`Standort`],[`date`,`Eintritt`]],transfer:[[`from`,`Bisher`],[`to`,`Künftig`],[`date`,`Ab`]],birthdays:[[`department`,`Bereich`],[`location`,`Standort`],[`date`,`Geburtstag`]],jubilee:[[`label`,`Jubiläum`],[`department`,`Bereich`],[`date`,`Datum`]],farewell:[[`department`,`Bereich`],[`label`,`Anlass`],[`date`,`Letzter Arbeitstag`]],memoriam:[[`lifespan`,`Lebensdaten`],[`department`,`Bereich`]]},M=new Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,year:`numeric`}),P=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}),z=(e,t)=>e?(t===`birthdays`?P:M).format(new Date(`${e}T12:00:00`)):`–`;function U(e,t,n){return t===`date`?z(e.date,n):t===`lifespan`?[e.born_on&&`* ${z(e.born_on)}`,`† ${z(e.date)}`].filter(Boolean).join(` `):e[t]||`–`}let W=c(()=>x.sections.filter(e=>e.entries.length||x.canManage&&!e.automatic)),G=c(()=>x.sections.every(e=>!e.entries.length)),K=m({open:!1,section:null,entry:null}),q=e=>K.value={open:!0,section:e,entry:null},J=(e,t)=>K.value={open:!0,section:e,entry:t};function Y(e){window.confirm(`Eintrag „${e.name}“ entfernen?`)&&v.delete(`/gemeinsam/eintraege/${e.id}`,{preserveScroll:!0})}return(n,c)=>(l(),p(j,{title:`Gemeinsam feiern, erinnern und willkommen heißen`},{default:d(()=>[e(V,{title:`Gemeinsam feiern, erinnern und willkommen heißen`,description:_.monthLabel},{actions:d(()=>[a(`div`,ve,[e(r(H),{variant:`ghost`,size:`icon`,class:`size-8`,"as-child":``},{default:d(()=>[e(r(b),{href:`/gemeinsam?monat=${_.previous}`,"aria-label":`Vorheriger Monat`,"preserve-scroll":``},{default:d(()=>[e(r(F))]),_:1},8,[`href`])]),_:1}),a(`span`,ye,f(_.monthLabel),1),e(r(H),{variant:`ghost`,size:`icon`,class:`size-8`,"as-child":``},{default:d(()=>[e(r(b),{href:`/gemeinsam?monat=${_.next}`,"aria-label":`Nächster Monat`,"preserve-scroll":``},{default:d(()=>[e(r(I))]),_:1},8,[`href`])]),_:1})]),_.isCurrent?g(``,!0):(l(),p(r(H),{key:0,variant:`outline`,"as-child":``},{default:d(()=>[e(r(b),{href:`/gemeinsam`},{default:d(()=>[...c[1]||=[t(`Aktueller Monat`,-1)]]),_:1})]),_:1}))]),_:1},8,[`description`]),W.value.length&&(!G.value||_.canManage)?(l(),o(`div`,be,[(l(!0),o(u,null,s(W.value,n=>(l(),o(`section`,{key:n.key,class:i([`overflow-hidden rounded-lg border bg-card`,n.key===`memoriam`?`border-t-4 border-t-foreground/70`:`border-t-4 border-t-brand`])},[a(`header`,xe,[a(`h2`,{class:i([`flex items-center gap-2.5 text-base font-semibold`,{"text-foreground/85":n.key===`memoriam`}])},[(l(),p(h(C[n.key]),{class:i([`size-5`,n.key===`memoriam`?`text-muted-foreground`:`text-brand-text`])},null,8,[`class`])),t(` `+f(n.title),1)],2),_.canManage&&!n.automatic?(l(),p(r(H),{key:0,size:`sm`,variant:`outline`,onClick:e=>q(n)},{default:d(()=>[e(r(R)),c[2]||=t(` Hinzufügen`,-1)]),_:1},8,[`onClick`])):n.automatic&&_.canManage?(l(),o(`span`,Se,`aus dem Geburtstagskalender`)):g(``,!0)]),n.entries.length?(l(),o(`div`,Ce,[a(`table`,we,[a(`thead`,Te,[a(`tr`,null,[c[4]||=a(`th`,{class:`px-5 py-2 font-medium`},`Name`,-1),(l(!0),o(u,null,s(k[n.key],([e,t])=>(l(),o(`th`,{key:e,class:`px-3 py-2 font-medium whitespace-nowrap`},f(t),1))),128)),_.canManage&&!n.automatic?(l(),o(`th`,Ee,[...c[3]||=[a(`span`,{class:`sr-only`},`Aktionen`,-1)]])):g(``,!0)])]),a(`tbody`,De,[(l(!0),o(u,null,s(n.entries,p=>(l(),o(u,{key:p.id},[a(`tr`,null,[a(`td`,Oe,[e(_e,{entry:p,muted:n.key===`memoriam`},null,8,[`entry`,`muted`])]),(l(!0),o(u,null,s(k[n.key],([e])=>(l(),o(`td`,{key:e,class:i([`px-3 py-2.5 whitespace-nowrap`,{"tabular-nums":e===`date`||e===`lifespan`}])},f(U(p,e,n.key)),3))),128)),_.canManage&&!n.automatic?(l(),o(`td`,ke,[e(r(T),null,{default:d(()=>[e(r(E),{"as-child":``},{default:d(()=>[e(r(H),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${p.name}`},{default:d(()=>[e(r(ee))]),_:1},8,[`aria-label`])]),_:2},1024),e(r(A),{align:`end`},{default:d(()=>[e(r(O),{onSelect:e=>J(n,p)},{default:d(()=>[e(r(L)),c[5]||=t(` Bearbeiten`,-1)]),_:1},8,[`onSelect`]),e(r(O),{class:`text-destructive`,onSelect:e=>Y(p)},{default:d(()=>[e(r(te)),c[6]||=t(` Entfernen`,-1)]),_:1},8,[`onSelect`])]),_:2},1024)]),_:2},1024)])):g(``,!0)]),p.text?(l(),o(`tr`,$,[a(`td`,{colspan:k[n.key].length+2,class:i([`-mt-1 px-5 pb-3 text-[13px] text-muted-foreground`,{italic:n.key===`memoriam`}])},f(p.text),11,Ae)])):g(``,!0)],64))),128))])])])):(l(),o(`p`,je,`Noch keine Einträge in diesem Monat.`))],2))),128))])):(l(),o(`div`,Me,[e(B,{icon:r(D),title:`Keine Einträge in diesem Monat`,text:`Hier stehen neue Kolleginnen und Kollegen, Wechsel, Geburtstage, Jubiläen, Verabschiedungen und Gedenken.`},null,8,[`icon`])])),_.canManage?(l(),p(fe,{key:2,open:K.value.open,"onUpdate:open":c[0]||=e=>K.value.open=e,section:K.value.section,entry:K.value.entry,month:_.month},null,8,[`open`,`section`,`entry`,`month`])):g(``,!0)]),_:1}))}};export{Ne as default}; \ No newline at end of file diff --git a/public/build/assets/Index-Dd9efbn1.js b/public/build/assets/Index-BpsstluO.js similarity index 95% rename from public/build/assets/Index-Dd9efbn1.js rename to public/build/assets/Index-BpsstluO.js index 60bb8d67..bbe00b90 100644 --- a/public/build/assets/Index-Dd9efbn1.js +++ b/public/build/assets/Index-BpsstluO.js @@ -1 +1 @@ -import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{b as h,x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as _,n as v}from"./app-CNhdlRDG.js";import{c as y}from"./dist-DtGNiYlK.js";import{N as b,V as x,p as S}from"./AppIcon-D91Q4hzR.js";import{t as C}from"./AppLayout-B1gBMLPE.js";import{y as w}from"./http-DmyDwIce.js";import{t as T}from"./chevron-left-8GGLVOvJ.js";import{t as E}from"./chevron-right-C9w5cb2q.js";import{t as D}from"./search-x-BVofHEe_.js";import{t as O}from"./PageHeader-vFc2LbBj.js";import{t as k}from"./button-ZHC5mKey.js";var A={class:`flex w-full flex-col gap-3 sm:w-auto sm:flex-row`},j={class:`relative block sm:w-80`},M=[`value`],N={key:0,class:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},P={class:`min-w-0`},F={class:`truncate text-[15px] font-semibold hover:underline`},I={class:`truncate text-[13px] text-muted-foreground`},L={class:`px-4 pb-3 text-[13px] text-muted-foreground`},R={key:0,class:`font-medium text-brand-text`},z={key:1},B={key:2},V={class:`mt-auto flex border-t text-[13px]`},H=[`href`],U=[`href`],W={key:1,class:`grid place-items-center rounded-lg border border-dashed bg-card px-6 py-16 text-center`},G={key:2,class:`mt-6 flex items-center justify-between`,"aria-label":`Seiten`},K={class:`text-sm text-muted-foreground`},q={class:`flex gap-2`},J={__name:`Index`,props:{people:{type:Object,required:!0},filters:{type:Object,required:!0},departments:{type:Array,required:!0}},setup(J){let Y=J,X=p(Y.filters.q??``),Z=p(Y.filters.abteilung??``);function Q(){let e={};X.value&&(e.q=X.value),Z.value&&(e.abteilung=Z.value),_.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return n(X,y(Q,300)),n(Z,Q),(n,p)=>(c(),f(C,{title:`Personen`},{default:u(()=>[e(O,{title:`Personen`},{description:u(()=>[t(d(J.people.meta.total.toLocaleString(`de-DE`))+` `+d(J.people.meta.total===1?`Person`:`Personen`)+d(J.filters.q||J.filters.abteilung?` gefunden`:` im Verzeichnis`)+` · `,1),e(r(v),{href:`/personen/organigramm`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...p[4]||=[t(`Organigramm`,-1)]]),_:1})]),actions:u(()=>[a(`div`,A,[a(`label`,j,[p[5]||=a(`span`,{class:`sr-only`},`Suchen`,-1),e(r(b),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":p[0]||=e=>X.value=e,type:`search`,placeholder:`Name, Funktion, Standort …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[g,X.value]])]),i(a(`select`,{"onUpdate:modelValue":p[1]||=e=>Z.value=e,class:`h-10 rounded-md border border-input bg-card px-3 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none sm:w-56`,"aria-label":`Abteilung`},[p[6]||=a(`option`,{value:``},`Alle Abteilungen`,-1),(c(!0),o(l,null,s(J.departments,e=>(c(),o(`option`,{key:e,value:e},d(e),9,M))),128))],512),[[h,Z.value]])])]),_:1}),J.people.data.length?(c(),o(`ul`,N,[(c(!0),o(l,null,s(J.people.data,n=>(c(),o(`li`,{key:n.id,class:`flex flex-col rounded-lg border bg-card`},[e(r(v),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:u(()=>[e(S,{person:n,class:`size-12`},null,8,[`person`]),a(`div`,P,[a(`div`,F,d(n.name),1),a(`div`,I,d(n.job_title||`–`),1)])]),_:2},1032,[`href`]),a(`div`,L,[n.department?(c(),o(`span`,R,d(n.department),1)):m(``,!0),n.department&&n.location?(c(),o(`span`,z,` · `)):m(``,!0),n.location?(c(),o(`span`,B,d(n.location),1)):m(``,!0)]),a(`div`,V,[a(`a`,{href:`mailto:${n.email}`,class:`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(x),{class:`size-4`}),p[7]||=t(` E-Mail `,-1)],8,H),n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`flex flex-1 items-center justify-center gap-1.5 border-l py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(w),{class:`size-4`}),p[8]||=t(` Anrufen `,-1)],8,U)):m(``,!0)])]))),128))])):(c(),o(`div`,W,[e(r(D),{class:`size-8 text-muted-foreground`}),p[9]||=a(`p`,{class:`mt-3 font-medium`},`Niemand gefunden`,-1),p[10]||=a(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Versuchen Sie einen anderen Suchbegriff oder eine andere Abteilung.`,-1)])),J.people.meta.last_page>1?(c(),o(`nav`,G,[a(`p`,K,`Seite `+d(J.people.meta.current_page)+` von `+d(J.people.meta.last_page),1),a(`div`,q,[e(r(k),{variant:`outline`,size:`sm`,disabled:!J.people.links.prev,onClick:p[2]||=e=>r(_).get(J.people.links.prev,{},{preserveScroll:!1})},{default:u(()=>[e(r(T)),p[11]||=t(` Zurück `,-1)]),_:1},8,[`disabled`]),e(r(k),{variant:`outline`,size:`sm`,disabled:!J.people.links.next,onClick:p[3]||=e=>r(_).get(J.people.links.next,{},{preserveScroll:!1})},{default:u(()=>[p[12]||=t(` Weiter `,-1),e(r(E))]),_:1},8,[`disabled`])])])):m(``,!0)]),_:1}))}};export{J as default}; \ No newline at end of file +import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{b as h,x as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as _,n as v}from"./app-Cw5f57va.js";import{c as y}from"./dist-DtGNiYlK.js";import{N as b,V as x,p as S}from"./AppIcon-BiVN_tuL.js";import{t as C}from"./AppLayout-9kc4awMB.js";import{y as w}from"./http-DmyDwIce.js";import{t as T}from"./chevron-left-8GGLVOvJ.js";import{t as E}from"./chevron-right-C9w5cb2q.js";import{t as D}from"./search-x-BVofHEe_.js";import{t as O}from"./PageHeader-r1Deze0_.js";import{t as k}from"./button-ZHC5mKey.js";var A={class:`flex w-full flex-col gap-3 sm:w-auto sm:flex-row`},j={class:`relative block sm:w-80`},M=[`value`],N={key:0,class:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},P={class:`min-w-0`},F={class:`truncate text-[15px] font-semibold hover:underline`},I={class:`truncate text-[13px] text-muted-foreground`},L={class:`px-4 pb-3 text-[13px] text-muted-foreground`},R={key:0,class:`font-medium text-brand-text`},z={key:1},B={key:2},V={class:`mt-auto flex border-t text-[13px]`},H=[`href`],U=[`href`],W={key:1,class:`grid place-items-center rounded-lg border border-dashed bg-card px-6 py-16 text-center`},G={key:2,class:`mt-6 flex items-center justify-between`,"aria-label":`Seiten`},K={class:`text-sm text-muted-foreground`},q={class:`flex gap-2`},J={__name:`Index`,props:{people:{type:Object,required:!0},filters:{type:Object,required:!0},departments:{type:Array,required:!0}},setup(J){let Y=J,X=p(Y.filters.q??``),Z=p(Y.filters.abteilung??``);function Q(){let e={};X.value&&(e.q=X.value),Z.value&&(e.abteilung=Z.value),_.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return n(X,y(Q,300)),n(Z,Q),(n,p)=>(c(),f(C,{title:`Personen`},{default:u(()=>[e(O,{title:`Personen`},{description:u(()=>[t(d(J.people.meta.total.toLocaleString(`de-DE`))+` `+d(J.people.meta.total===1?`Person`:`Personen`)+d(J.filters.q||J.filters.abteilung?` gefunden`:` im Verzeichnis`)+` · `,1),e(r(v),{href:`/personen/organigramm`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...p[4]||=[t(`Organigramm`,-1)]]),_:1})]),actions:u(()=>[a(`div`,A,[a(`label`,j,[p[5]||=a(`span`,{class:`sr-only`},`Suchen`,-1),e(r(b),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":p[0]||=e=>X.value=e,type:`search`,placeholder:`Name, Funktion, Standort …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[g,X.value]])]),i(a(`select`,{"onUpdate:modelValue":p[1]||=e=>Z.value=e,class:`h-10 rounded-md border border-input bg-card px-3 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none sm:w-56`,"aria-label":`Abteilung`},[p[6]||=a(`option`,{value:``},`Alle Abteilungen`,-1),(c(!0),o(l,null,s(J.departments,e=>(c(),o(`option`,{key:e,value:e},d(e),9,M))),128))],512),[[h,Z.value]])])]),_:1}),J.people.data.length?(c(),o(`ul`,N,[(c(!0),o(l,null,s(J.people.data,n=>(c(),o(`li`,{key:n.id,class:`flex flex-col rounded-lg border bg-card`},[e(r(v),{href:`/personen/${n.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:u(()=>[e(S,{person:n,class:`size-12`},null,8,[`person`]),a(`div`,P,[a(`div`,F,d(n.name),1),a(`div`,I,d(n.job_title||`–`),1)])]),_:2},1032,[`href`]),a(`div`,L,[n.department?(c(),o(`span`,R,d(n.department),1)):m(``,!0),n.department&&n.location?(c(),o(`span`,z,` · `)):m(``,!0),n.location?(c(),o(`span`,B,d(n.location),1)):m(``,!0)]),a(`div`,V,[a(`a`,{href:`mailto:${n.email}`,class:`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(x),{class:`size-4`}),p[7]||=t(` E-Mail `,-1)],8,H),n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`flex flex-1 items-center justify-center gap-1.5 border-l py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[e(r(w),{class:`size-4`}),p[8]||=t(` Anrufen `,-1)],8,U)):m(``,!0)])]))),128))])):(c(),o(`div`,W,[e(r(D),{class:`size-8 text-muted-foreground`}),p[9]||=a(`p`,{class:`mt-3 font-medium`},`Niemand gefunden`,-1),p[10]||=a(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Versuchen Sie einen anderen Suchbegriff oder eine andere Abteilung.`,-1)])),J.people.meta.last_page>1?(c(),o(`nav`,G,[a(`p`,K,`Seite `+d(J.people.meta.current_page)+` von `+d(J.people.meta.last_page),1),a(`div`,q,[e(r(k),{variant:`outline`,size:`sm`,disabled:!J.people.links.prev,onClick:p[2]||=e=>r(_).get(J.people.links.prev,{},{preserveScroll:!1})},{default:u(()=>[e(r(T)),p[11]||=t(` Zurück `,-1)]),_:1},8,[`disabled`]),e(r(k),{variant:`outline`,size:`sm`,disabled:!J.people.links.next,onClick:p[3]||=e=>r(_).get(J.people.links.next,{},{preserveScroll:!1})},{default:u(()=>[p[12]||=t(` Weiter `,-1),e(r(E))]),_:1},8,[`disabled`])])])):m(``,!0)]),_:1}))}};export{J as default}; \ No newline at end of file diff --git a/public/build/assets/Index-DAiC0RRe.js b/public/build/assets/Index-BrnjcSis.js similarity index 85% rename from public/build/assets/Index-DAiC0RRe.js rename to public/build/assets/Index-BrnjcSis.js index 46643d5e..fc7e3d39 100644 --- a/public/build/assets/Index-DAiC0RRe.js +++ b/public/build/assets/Index-BrnjcSis.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as d}from"./app-CNhdlRDG.js";import{Z as f}from"./AppIcon-D91Q4hzR.js";import{t as p}from"./AppLayout-B1gBMLPE.js";import{t as m}from"./chevron-right-C9w5cb2q.js";import{t as h}from"./EmptyState-Ceq4v8mE.js";import{t as g}from"./PageHeader-vFc2LbBj.js";import{n as _}from"./format-BsuBtvUs.js";var v={key:0,class:`grid gap-4 md:grid-cols-2 xl:grid-cols-3`},y={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},b={class:`min-w-0 flex-1`},x={class:`block font-semibold group-hover:underline`},S={key:0,class:`mt-1 line-clamp-2 block text-sm text-muted-foreground`},C={key:1,class:`mt-2 block text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{forms:{type:Array,required:!0}},setup(T){return(E,D)=>(a(),l(p,{title:`Formulare`},{default:s(()=>[e(g,{title:`Formulare`,description:`Anträge, Anmeldungen und Meldungen – direkt online ausfüllen.`}),T.forms.length?(a(),r(`div`,v,[(a(!0),r(o,null,i(T.forms,i=>(a(),l(t(d),{key:i.id,href:i.url,class:`group flex gap-4 rounded-lg border bg-card p-5 hover:border-brand-300`},{default:s(()=>[n(`span`,y,[e(t(f),{class:`size-5`})]),n(`span`,b,[n(`span`,x,c(i.title),1),i.description?(a(),r(`span`,S,c(i.description),1)):u(``,!0),i.closes_at?(a(),r(`span`,C,`Bis `+c(t(_)(i.closes_at)),1)):u(``,!0)]),e(t(m),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(h,{icon:t(f),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as d}from"./app-Cw5f57va.js";import{Z as f}from"./AppIcon-BiVN_tuL.js";import{t as p}from"./AppLayout-9kc4awMB.js";import{t as m}from"./chevron-right-C9w5cb2q.js";import{t as h}from"./EmptyState-Ceq4v8mE.js";import{t as g}from"./PageHeader-r1Deze0_.js";import{n as _}from"./format-BsuBtvUs.js";var v={key:0,class:`grid gap-4 md:grid-cols-2 xl:grid-cols-3`},y={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},b={class:`min-w-0 flex-1`},x={class:`block font-semibold group-hover:underline`},S={key:0,class:`mt-1 line-clamp-2 block text-sm text-muted-foreground`},C={key:1,class:`mt-2 block text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{forms:{type:Array,required:!0}},setup(T){return(E,D)=>(a(),l(p,{title:`Formulare`},{default:s(()=>[e(g,{title:`Formulare`,description:`Anträge, Anmeldungen und Meldungen – direkt online ausfüllen.`}),T.forms.length?(a(),r(`div`,v,[(a(!0),r(o,null,i(T.forms,i=>(a(),l(t(d),{key:i.id,href:i.url,class:`group flex gap-4 rounded-lg border bg-card p-5 hover:border-brand-300`},{default:s(()=>[n(`span`,y,[e(t(f),{class:`size-5`})]),n(`span`,b,[n(`span`,x,c(i.title),1),i.description?(a(),r(`span`,S,c(i.description),1)):u(``,!0),i.closes_at?(a(),r(`span`,C,`Bis `+c(t(_)(i.closes_at)),1)):u(``,!0)]),e(t(m),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(h,{icon:t(f),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default}; \ No newline at end of file diff --git a/public/build/assets/Index-Dz6vk6kU.js b/public/build/assets/Index-CMOl6SkN.js similarity index 87% rename from public/build/assets/Index-Dz6vk6kU.js rename to public/build/assets/Index-CMOl6SkN.js index 6bb6e610..163ab0a6 100644 --- a/public/build/assets/Index-Dz6vk6kU.js +++ b/public/build/assets/Index-CMOl6SkN.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-CNhdlRDG.js";import{J as h,q as g}from"./AppIcon-D91Q4hzR.js";import{t as _}from"./AppLayout-B1gBMLPE.js";import{t as v}from"./chevron-right-C9w5cb2q.js";import{t as y}from"./plus-B_ij2ng2.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-vFc2LbBj.js";import{t as S}from"./button-ZHC5mKey.js";import{t as C}from"./NewPageDialog-BoAZlkoa.js";var w={key:0,class:`grid gap-5 md:grid-cols-2 xl:grid-cols-3`},T={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},E={class:`min-w-0 flex-1 truncate font-semibold`},D={key:0,class:`grid p-2`},O={class:`truncate`},k={key:0,class:`text-xs text-muted-foreground`},A={key:0,class:`px-3 py-1.5 text-[13px]`},j={key:1,class:`rounded-lg border bg-card`},M={__name:`Index`,props:{tree:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(M){let N=d(!1);return(d,P)=>(o(),u(_,{title:`Seiten`},{default:c(()=>[e(x,{title:`Seiten`,description:`Informationen der Bereiche, Abteilungen und Gremien.`},f({_:2},[M.canCreate?{name:`actions`,fn:c(()=>[e(n(S),{onClick:P[0]||=e=>N.value=!0},{default:c(()=>[e(n(y)),P[2]||=t(` Neue Seite`,-1)]),_:1})]),key:`0`}:void 0]),1024),M.tree.length?(o(),i(`div`,w,[(o(!0),i(s,null,a(M.tree,d=>(o(),i(`section`,{key:d.id,class:`rounded-lg border bg-card`},[e(n(m),{href:d.url,class:`flex items-center gap-3 border-b px-5 py-4 hover:bg-accent/50`},{default:c(()=>[r(`span`,T,[d.children.length?(o(),u(n(g),{key:0,class:`size-5`})):(o(),u(n(h),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(v),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`]),d.children.length?(o(),i(`ul`,D,[(o(!0),i(s,null,a(d.children.slice(0,8),t=>(o(),i(`li`,{key:t.id},[e(n(m),{href:t.url,class:`flex items-center justify-between rounded-md px-3 py-2 text-sm hover:bg-accent`},{default:c(()=>[r(`span`,O,l(t.title),1),t.children.length?(o(),i(`span`,k,l(t.children.length),1)):p(``,!0)]),_:2},1032,[`href`])]))),128)),d.children.length>8?(o(),i(`li`,A,[e(n(m),{href:d.url,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(`Alle `+l(d.children.length)+` Seiten`,1)]),_:2},1032,[`href`])])):p(``,!0)])):p(``,!0)]))),128))])):(o(),i(`div`,j,[e(b,{icon:n(h),title:`Noch keine Seiten`,text:`Hier erscheinen Seiten, sobald sie veröffentlicht sind.`},null,8,[`icon`])])),e(C,{open:N.value,"onUpdate:open":P[1]||=e=>N.value=e},null,8,[`open`])]),_:1}))}};export{M as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-Cw5f57va.js";import{J as h,q as g}from"./AppIcon-BiVN_tuL.js";import{t as _}from"./AppLayout-9kc4awMB.js";import{t as v}from"./chevron-right-C9w5cb2q.js";import{t as y}from"./plus-B_ij2ng2.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-r1Deze0_.js";import{t as S}from"./button-ZHC5mKey.js";import{t as C}from"./NewPageDialog-DbJDgD-q.js";var w={key:0,class:`grid gap-5 md:grid-cols-2 xl:grid-cols-3`},T={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},E={class:`min-w-0 flex-1 truncate font-semibold`},D={key:0,class:`grid p-2`},O={class:`truncate`},k={key:0,class:`text-xs text-muted-foreground`},A={key:0,class:`px-3 py-1.5 text-[13px]`},j={key:1,class:`rounded-lg border bg-card`},M={__name:`Index`,props:{tree:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(M){let N=d(!1);return(d,P)=>(o(),u(_,{title:`Seiten`},{default:c(()=>[e(x,{title:`Seiten`,description:`Informationen der Bereiche, Abteilungen und Gremien.`},f({_:2},[M.canCreate?{name:`actions`,fn:c(()=>[e(n(S),{onClick:P[0]||=e=>N.value=!0},{default:c(()=>[e(n(y)),P[2]||=t(` Neue Seite`,-1)]),_:1})]),key:`0`}:void 0]),1024),M.tree.length?(o(),i(`div`,w,[(o(!0),i(s,null,a(M.tree,d=>(o(),i(`section`,{key:d.id,class:`rounded-lg border bg-card`},[e(n(m),{href:d.url,class:`flex items-center gap-3 border-b px-5 py-4 hover:bg-accent/50`},{default:c(()=>[r(`span`,T,[d.children.length?(o(),u(n(g),{key:0,class:`size-5`})):(o(),u(n(h),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(v),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`]),d.children.length?(o(),i(`ul`,D,[(o(!0),i(s,null,a(d.children.slice(0,8),t=>(o(),i(`li`,{key:t.id},[e(n(m),{href:t.url,class:`flex items-center justify-between rounded-md px-3 py-2 text-sm hover:bg-accent`},{default:c(()=>[r(`span`,O,l(t.title),1),t.children.length?(o(),i(`span`,k,l(t.children.length),1)):p(``,!0)]),_:2},1032,[`href`])]))),128)),d.children.length>8?(o(),i(`li`,A,[e(n(m),{href:d.url,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(`Alle `+l(d.children.length)+` Seiten`,1)]),_:2},1032,[`href`])])):p(``,!0)])):p(``,!0)]))),128))])):(o(),i(`div`,j,[e(b,{icon:n(h),title:`Noch keine Seiten`,text:`Hier erscheinen Seiten, sobald sie veröffentlicht sind.`},null,8,[`icon`])])),e(C,{open:N.value,"onUpdate:open":P[1]||=e=>N.value=e},null,8,[`open`])]),_:1}))}};export{M as default}; \ No newline at end of file diff --git a/public/build/assets/Index-KGMlxVdL.js b/public/build/assets/Index-CNS0hDPa.js similarity index 93% rename from public/build/assets/Index-KGMlxVdL.js rename to public/build/assets/Index-CNS0hDPa.js index 645871de..0422c859 100644 --- a/public/build/assets/Index-KGMlxVdL.js +++ b/public/build/assets/Index-CNS0hDPa.js @@ -1 +1 @@ -import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as v,n as y}from"./app-CNhdlRDG.js";import{c as b}from"./dist-DtGNiYlK.js";import{N as x,t as S}from"./AppIcon-D91Q4hzR.js";import{n as C,t as w}from"./AppLayout-B1gBMLPE.js";import{t as T}from"./FileIcon-BLwyvOt_.js";import{t as E}from"./search-x-BVofHEe_.js";import{t as D}from"./EmptyState-Ceq4v8mE.js";import{t as O}from"./PageHeader-vFc2LbBj.js";var k={class:`grid gap-6 lg:grid-cols-12`},A={class:`grid content-start gap-6 lg:col-span-9`},j={class:`relative block`},M=[`id`],N={class:`flex items-center gap-2.5 border-b px-5 py-3`},P={class:`grid size-8 place-items-center rounded-md bg-brand-soft text-brand-text`},F={class:`text-base font-semibold`},I={class:`ml-auto text-xs text-muted-foreground`},L={class:`divide-y`},R=[`src`],z={class:`min-w-0 flex-1`},B=[`innerHTML`],V={key:0,class:`mt-0.5 text-xs text-muted-foreground`},H=[`innerHTML`],U={key:0,class:`rounded-lg border bg-card`},W={key:0,class:`hidden lg:col-span-3 lg:block`},G={class:`sticky top-20 rounded-lg border bg-card p-4`},K={class:`grid gap-0.5 text-sm`},q=[`href`],J={class:`ml-auto text-xs text-muted-foreground tabular-nums`},Y={__name:`Index`,props:{query:{type:String,default:``},groups:{type:Array,required:!0},minLength:{type:Number,default:2}},setup(Y){let X=Y,Z=m(X.query),Q=c(()=>X.groups.reduce((e,t)=>e+t.items.length,0));return n(Z,b(e=>v.get(`/suche`,e.trim()?{q:e.trim()}:{},{preserveState:!0,preserveScroll:!0,replace:!0}),300)),(n,c)=>(l(),p(w,{title:`Suche`},{default:d(()=>[e(O,{title:`Suche`},{description:d(()=>[Y.query.length>=Y.minLength?(l(),o(u,{key:0},[t(f(Q.value?`${Q.value} Treffer für „${Y.query}“`:`Keine Treffer für „${Y.query}“`),1)],64)):(l(),o(u,{key:1},[t(`Neuigkeiten, Termine, Seiten, Downloads und Dokumente durchsuchen`)],64))]),_:1}),a(`div`,k,[a(`div`,A,[a(`label`,j,[c[1]||=a(`span`,{class:`sr-only`},`Suchbegriff`,-1),e(r(x),{class:`pointer-events-none absolute top-1/2 left-4 size-5 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>Z.value=e,type:`search`,autofocus:``,placeholder:`Wonach suchen Sie?`,class:`h-12 w-full rounded-lg border border-input bg-card pr-4 pl-12 text-base shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[_,Z.value]])]),(l(!0),o(u,null,s(Y.groups,t=>(l(),o(`section`,{id:`treffer-${t.key}`,key:t.key,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,N,[a(`span`,P,[e(S,{name:t.icon,class:`size-4`},null,8,[`name`])]),a(`h2`,F,f(t.label),1),a(`span`,I,f(t.items.length===20?`20+`:t.items.length)+` Treffer`,1)]),a(`ul`,L,[(l(!0),o(u,null,s(t.items,e=>(l(),o(`li`,{key:e.url},[(l(),p(h(e.external?`a`:r(y)),{href:e.url,class:`group flex items-start gap-4 px-5 py-3.5 transition-colors hover:bg-accent/50`},{default:d(()=>[e.image?(l(),o(`img`,{key:0,src:e.image,alt:``,loading:`lazy`,class:`hidden h-14 w-20 shrink-0 rounded-md object-cover sm:block`},null,8,R)):e.file?(l(),p(T,{key:1,extension:e.file,class:`shrink-0`},null,8,[`extension`])):g(``,!0),a(`div`,z,[a(`h3`,{class:`text-[15px] font-semibold group-hover:underline`,innerHTML:r(C)(e.title,Y.query)},null,8,B),e.meta?(l(),o(`p`,V,f(e.meta),1)):g(``,!0),e.excerpt?(l(),o(`p`,{key:1,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`,innerHTML:r(C)(e.excerpt,Y.query)},null,8,H)):g(``,!0)])]),_:2},1032,[`href`]))]))),128))])],8,M))),128)),Y.query.length>=Y.minLength&&!Y.groups.length?(l(),o(`div`,U,[e(D,{icon:r(E),title:`Nichts gefunden`,text:`Andere Schreibweise oder weniger Begriffe versuchen. Personen finden Sie im Personenverzeichnis.`},null,8,[`icon`])])):g(``,!0)]),Y.groups.length>1?(l(),o(`aside`,W,[a(`nav`,G,[c[2]||=a(`h2`,{class:`mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Bereiche`,-1),a(`ul`,K,[(l(!0),o(u,null,s(Y.groups,n=>(l(),o(`li`,{key:n.key},[a(`a`,{href:`#treffer-${n.key}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-accent`},[e(S,{name:n.icon,class:`size-4 text-muted-foreground`},null,8,[`name`]),t(` `+f(n.label)+` `,1),a(`span`,J,f(n.items.length),1)],8,q)]))),128))]),e(r(y),{href:Y.query?`/personen?q=${encodeURIComponent(Y.query)}`:`/personen`,class:`mt-3 block border-t pt-3 text-[13px] text-brand-text hover:underline`},{default:d(()=>[t(`„`+f(Y.query)+`“ im Personenverzeichnis suchen`,1)]),_:1},8,[`href`])])])):g(``,!0)])]),_:1}))}};export{Y as default}; \ No newline at end of file +import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as v,n as y}from"./app-Cw5f57va.js";import{c as b}from"./dist-DtGNiYlK.js";import{N as x,t as S}from"./AppIcon-BiVN_tuL.js";import{n as C,t as w}from"./AppLayout-9kc4awMB.js";import{t as T}from"./FileIcon-CV058fj7.js";import{t as E}from"./search-x-BVofHEe_.js";import{t as D}from"./EmptyState-Ceq4v8mE.js";import{t as O}from"./PageHeader-r1Deze0_.js";var k={class:`grid gap-6 lg:grid-cols-12`},A={class:`grid content-start gap-6 lg:col-span-9`},j={class:`relative block`},M=[`id`],N={class:`flex items-center gap-2.5 border-b px-5 py-3`},P={class:`grid size-8 place-items-center rounded-md bg-brand-soft text-brand-text`},F={class:`text-base font-semibold`},I={class:`ml-auto text-xs text-muted-foreground`},L={class:`divide-y`},R=[`src`],z={class:`min-w-0 flex-1`},B=[`innerHTML`],V={key:0,class:`mt-0.5 text-xs text-muted-foreground`},H=[`innerHTML`],U={key:0,class:`rounded-lg border bg-card`},W={key:0,class:`hidden lg:col-span-3 lg:block`},G={class:`sticky top-20 rounded-lg border bg-card p-4`},K={class:`grid gap-0.5 text-sm`},q=[`href`],J={class:`ml-auto text-xs text-muted-foreground tabular-nums`},Y={__name:`Index`,props:{query:{type:String,default:``},groups:{type:Array,required:!0},minLength:{type:Number,default:2}},setup(Y){let X=Y,Z=m(X.query),Q=c(()=>X.groups.reduce((e,t)=>e+t.items.length,0));return n(Z,b(e=>v.get(`/suche`,e.trim()?{q:e.trim()}:{},{preserveState:!0,preserveScroll:!0,replace:!0}),300)),(n,c)=>(l(),p(w,{title:`Suche`},{default:d(()=>[e(O,{title:`Suche`},{description:d(()=>[Y.query.length>=Y.minLength?(l(),o(u,{key:0},[t(f(Q.value?`${Q.value} Treffer für „${Y.query}“`:`Keine Treffer für „${Y.query}“`),1)],64)):(l(),o(u,{key:1},[t(`Neuigkeiten, Termine, Seiten, Downloads und Dokumente durchsuchen`)],64))]),_:1}),a(`div`,k,[a(`div`,A,[a(`label`,j,[c[1]||=a(`span`,{class:`sr-only`},`Suchbegriff`,-1),e(r(x),{class:`pointer-events-none absolute top-1/2 left-4 size-5 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>Z.value=e,type:`search`,autofocus:``,placeholder:`Wonach suchen Sie?`,class:`h-12 w-full rounded-lg border border-input bg-card pr-4 pl-12 text-base shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[_,Z.value]])]),(l(!0),o(u,null,s(Y.groups,t=>(l(),o(`section`,{id:`treffer-${t.key}`,key:t.key,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,N,[a(`span`,P,[e(S,{name:t.icon,class:`size-4`},null,8,[`name`])]),a(`h2`,F,f(t.label),1),a(`span`,I,f(t.items.length===20?`20+`:t.items.length)+` Treffer`,1)]),a(`ul`,L,[(l(!0),o(u,null,s(t.items,e=>(l(),o(`li`,{key:e.url},[(l(),p(h(e.external?`a`:r(y)),{href:e.url,class:`group flex items-start gap-4 px-5 py-3.5 transition-colors hover:bg-accent/50`},{default:d(()=>[e.image?(l(),o(`img`,{key:0,src:e.image,alt:``,loading:`lazy`,class:`hidden h-14 w-20 shrink-0 rounded-md object-cover sm:block`},null,8,R)):e.file?(l(),p(T,{key:1,extension:e.file,class:`shrink-0`},null,8,[`extension`])):g(``,!0),a(`div`,z,[a(`h3`,{class:`text-[15px] font-semibold group-hover:underline`,innerHTML:r(C)(e.title,Y.query)},null,8,B),e.meta?(l(),o(`p`,V,f(e.meta),1)):g(``,!0),e.excerpt?(l(),o(`p`,{key:1,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`,innerHTML:r(C)(e.excerpt,Y.query)},null,8,H)):g(``,!0)])]),_:2},1032,[`href`]))]))),128))])],8,M))),128)),Y.query.length>=Y.minLength&&!Y.groups.length?(l(),o(`div`,U,[e(D,{icon:r(E),title:`Nichts gefunden`,text:`Andere Schreibweise oder weniger Begriffe versuchen. Personen finden Sie im Personenverzeichnis.`},null,8,[`icon`])])):g(``,!0)]),Y.groups.length>1?(l(),o(`aside`,W,[a(`nav`,G,[c[2]||=a(`h2`,{class:`mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Bereiche`,-1),a(`ul`,K,[(l(!0),o(u,null,s(Y.groups,n=>(l(),o(`li`,{key:n.key},[a(`a`,{href:`#treffer-${n.key}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-accent`},[e(S,{name:n.icon,class:`size-4 text-muted-foreground`},null,8,[`name`]),t(` `+f(n.label)+` `,1),a(`span`,J,f(n.items.length),1)],8,q)]))),128))]),e(r(y),{href:Y.query?`/personen?q=${encodeURIComponent(Y.query)}`:`/personen`,class:`mt-3 block border-t pt-3 text-[13px] text-brand-text hover:underline`},{default:d(()=>[t(`„`+f(Y.query)+`“ im Personenverzeichnis suchen`,1)]),_:1},8,[`href`])])])):g(``,!0)])]),_:1}))}};export{Y as default}; \ No newline at end of file diff --git a/public/build/assets/Index-CvR--XxY.js b/public/build/assets/Index-CpDZzAj3.js similarity index 89% rename from public/build/assets/Index-CvR--XxY.js rename to public/build/assets/Index-CpDZzAj3.js index cd3b1f7f..592207f3 100644 --- a/public/build/assets/Index-CvR--XxY.js +++ b/public/build/assets/Index-CpDZzAj3.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as m,n as h}from"./app-CNhdlRDG.js";import{F as g}from"./AppIcon-D91Q4hzR.js";import{t as _}from"./AppLayout-B1gBMLPE.js";import{t as v}from"./chevron-left-8GGLVOvJ.js";import{t as y}from"./chevron-right-C9w5cb2q.js";import{t as b}from"./pen-line-22hyV1yp.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-vFc2LbBj.js";import{t as C}from"./button-ZHC5mKey.js";import{t as w}from"./NewsCard-CPICQVsu.js";var T={key:0,class:`mb-6 flex flex-wrap gap-2`,"aria-label":`Kategorien`},E={key:1,class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},D={key:2,class:`rounded-lg border border-dashed bg-card`},O={key:3,class:`mt-8 flex items-center justify-between`,"aria-label":`Seiten`},k={class:`text-sm text-muted-foreground`},A={class:`flex gap-2`},j={__name:`Index`,props:{posts:{type:Object,required:!0},categories:{type:Array,required:!0},activeCategory:{type:String,default:null},canWrite:{type:Boolean,default:!1}},setup(j){return(M,N)=>(s(),d(_,{title:`Neuigkeiten`},{default:l(()=>[e(S,{title:`Neuigkeiten`,description:`Aktuelles aus dem Unternehmen und den Bereichen.`},f({_:2},[j.canWrite?{name:`actions`,fn:l(()=>[e(n(C),{"as-child":``},{default:l(()=>[e(n(h),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(b)),N[2]||=t(` Beitrag schreiben`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),j.categories.length?(s(),a(`nav`,T,[e(n(h),{href:`/neuigkeiten`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory?`bg-card hover:bg-accent`:`border-brand bg-brand text-brand-foreground`]),"preserve-scroll":``},{default:l(()=>[...N[3]||=[t(` Alle `,-1)]]),_:1},8,[`class`]),(s(!0),a(c,null,o(j.categories,e=>(s(),d(n(h),{key:e.slug,href:`/neuigkeiten?kategorie=${e.slug}`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory===e.slug?`border-brand bg-brand text-brand-foreground`:`bg-card hover:bg-accent`]),"preserve-scroll":``},{default:l(()=>[t(u(e.name),1)]),_:2},1032,[`href`,`class`]))),128))])):p(``,!0),j.posts.data.length?(s(),a(`div`,E,[(s(!0),a(c,null,o(j.posts.data,e=>(s(),d(w,{key:e.id,post:e},null,8,[`post`]))),128))])):(s(),a(`div`,D,[e(x,{icon:n(g),title:`Keine Beiträge`,text:`In dieser Kategorie ist noch nichts veröffentlicht.`},null,8,[`icon`])])),j.posts.meta.last_page>1?(s(),a(`nav`,O,[i(`p`,k,`Seite `+u(j.posts.meta.current_page)+` von `+u(j.posts.meta.last_page),1),i(`div`,A,[e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.prev,onClick:N[0]||=e=>n(m).get(j.posts.links.prev)},{default:l(()=>[e(n(v)),N[4]||=t(` Neuere`,-1)]),_:1},8,[`disabled`]),e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.next,onClick:N[1]||=e=>n(m).get(j.posts.links.next)},{default:l(()=>[N[5]||=t(`Ältere `,-1),e(n(y))]),_:1},8,[`disabled`])])])):p(``,!0)]),_:1}))}};export{j as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as m,n as h}from"./app-Cw5f57va.js";import{F as g}from"./AppIcon-BiVN_tuL.js";import{t as _}from"./AppLayout-9kc4awMB.js";import{t as v}from"./chevron-left-8GGLVOvJ.js";import{t as y}from"./chevron-right-C9w5cb2q.js";import{t as b}from"./pen-line-22hyV1yp.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-r1Deze0_.js";import{t as C}from"./button-ZHC5mKey.js";import{t as w}from"./NewsCard-I-pDKDv_.js";var T={key:0,class:`mb-6 flex flex-wrap gap-2`,"aria-label":`Kategorien`},E={key:1,class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},D={key:2,class:`rounded-lg border border-dashed bg-card`},O={key:3,class:`mt-8 flex items-center justify-between`,"aria-label":`Seiten`},k={class:`text-sm text-muted-foreground`},A={class:`flex gap-2`},j={__name:`Index`,props:{posts:{type:Object,required:!0},categories:{type:Array,required:!0},activeCategory:{type:String,default:null},canWrite:{type:Boolean,default:!1}},setup(j){return(M,N)=>(s(),d(_,{title:`Neuigkeiten`},{default:l(()=>[e(S,{title:`Neuigkeiten`,description:`Aktuelles aus dem Unternehmen und den Bereichen.`},f({_:2},[j.canWrite?{name:`actions`,fn:l(()=>[e(n(C),{"as-child":``},{default:l(()=>[e(n(h),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(b)),N[2]||=t(` Beitrag schreiben`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),j.categories.length?(s(),a(`nav`,T,[e(n(h),{href:`/neuigkeiten`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory?`bg-card hover:bg-accent`:`border-brand bg-brand text-brand-foreground`]),"preserve-scroll":``},{default:l(()=>[...N[3]||=[t(` Alle `,-1)]]),_:1},8,[`class`]),(s(!0),a(c,null,o(j.categories,e=>(s(),d(n(h),{key:e.slug,href:`/neuigkeiten?kategorie=${e.slug}`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory===e.slug?`border-brand bg-brand text-brand-foreground`:`bg-card hover:bg-accent`]),"preserve-scroll":``},{default:l(()=>[t(u(e.name),1)]),_:2},1032,[`href`,`class`]))),128))])):p(``,!0),j.posts.data.length?(s(),a(`div`,E,[(s(!0),a(c,null,o(j.posts.data,e=>(s(),d(w,{key:e.id,post:e},null,8,[`post`]))),128))])):(s(),a(`div`,D,[e(x,{icon:n(g),title:`Keine Beiträge`,text:`In dieser Kategorie ist noch nichts veröffentlicht.`},null,8,[`icon`])])),j.posts.meta.last_page>1?(s(),a(`nav`,O,[i(`p`,k,`Seite `+u(j.posts.meta.current_page)+` von `+u(j.posts.meta.last_page),1),i(`div`,A,[e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.prev,onClick:N[0]||=e=>n(m).get(j.posts.links.prev)},{default:l(()=>[e(n(v)),N[4]||=t(` Neuere`,-1)]),_:1},8,[`disabled`]),e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.next,onClick:N[1]||=e=>n(m).get(j.posts.links.next)},{default:l(()=>[N[5]||=t(`Ältere `,-1),e(n(y))]),_:1},8,[`disabled`])])])):p(``,!0)]),_:1}))}};export{j as default}; \ No newline at end of file diff --git a/public/build/assets/Index-rIH7w3Pd.js b/public/build/assets/Index-DLnkmDBS.js similarity index 91% rename from public/build/assets/Index-rIH7w3Pd.js rename to public/build/assets/Index-DLnkmDBS.js index e2ce5437..7747a34f 100644 --- a/public/build/assets/Index-rIH7w3Pd.js +++ b/public/build/assets/Index-DLnkmDBS.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-CNhdlRDG.js";import{D as m}from"./AppIcon-D91Q4hzR.js";import{t as h}from"./AppLayout-B1gBMLPE.js";import{s as g}from"./RovingFocusGroup-D88K7krN.js";import{i as _,r as v,t as y}from"./FolderTile-DPEGhvOX.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-vFc2LbBj.js";import{t as S}from"./button-ZHC5mKey.js";import{t as C}from"./colors-RDOJqd57.js";import{t as w}from"./QmSearchBox-D0RtqPjX.js";var T=[`href`],E={key:0,class:`relative overflow-hidden rounded-lg border bg-card p-5 pl-6`},D=[`innerHTML`],O={key:1,class:`rounded-lg border bg-card`},k={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},A={key:1,class:`grid gap-8`},j={class:`mb-3 flex items-center gap-3`},M={class:`text-sm font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase`},N={class:`grid grid-cols-[repeat(auto-fill,minmax(13rem,1fr))] gap-4`},P={key:2,class:`mt-10`},F={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},I={class:`mb-3 flex flex-wrap items-center gap-2`},L={key:0,class:`rounded bg-brand-soft px-2 py-0.5 text-xs font-medium text-brand-soft-foreground`},R={key:3,class:`rounded-lg border bg-card`},z=[`href`],B={__name:`Index`,props:{intro:{type:String,default:``},contacts:{type:Array,default:()=>[]},officers:{type:Array,default:()=>[]},categories:{type:Array,required:!0},canManage:{type:Boolean,default:!1},adminUrl:{type:String,default:null}},setup(B){return(V,H)=>(s(),d(h,{title:`Qualitätsmanagement`},{default:l(()=>[e(x,{title:`Qualitätsmanagement`,description:`Verfahrensanweisungen, Standards und Formulare – immer in der gültigen Fassung.`},{actions:l(()=>[B.adminUrl?(s(),d(n(S),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:l(()=>[i(`a`,{href:B.adminUrl},[e(n(_)),H[0]||=t(` Ordner verwalten`,-1)],8,T)]),_:1})):f(``,!0),e(w)]),_:1}),B.intro||B.contacts.length?(s(),a(`div`,{key:0,class:r([`mb-8 grid items-start gap-6`,{"lg:grid-cols-[minmax(0,1fr)_20rem]":B.intro&&B.contacts.length}])},[B.intro?(s(),a(`section`,E,[H[1]||=i(`span`,{class:`absolute inset-y-0 left-0 w-1.5 bg-brand`,"aria-hidden":`true`},null,-1),i(`div`,{class:`prose prose-sm max-w-none dark:prose-invert`,innerHTML:B.intro},null,8,D)])):f(``,!0),B.contacts.length?(s(),a(`aside`,O,[i(`h2`,k,[e(n(m),{class:`size-4 text-brand-text`}),t(` `+u(B.contacts.length===1?`Ansprechpartner*in QM`:`Ansprechpartner*innen QM`),1)]),i(`div`,{class:r([`grid gap-4 p-4`,{"sm:grid-cols-2 lg:grid-cols-1":!B.intro}])},[(s(!0),a(c,null,o(B.contacts,e=>(s(),d(v,{key:e.id,contact:e},null,8,[`contact`]))),128))],2)])):f(``,!0)],2)):f(``,!0),B.categories.length?(s(),a(`div`,A,[(s(!0),a(c,null,o(B.categories,e=>(s(),a(`section`,{key:e.id??`rest`},[i(`div`,j,[i(`h2`,M,u(e.name),1),H[2]||=i(`span`,{class:`h-px flex-1 bg-border`,"aria-hidden":`true`},null,-1)]),i(`div`,N,[(s(!0),a(c,null,o(e.folders,e=>(s(),d(y,{key:e.id,folder:e},null,8,[`folder`]))),128))])]))),128))])):f(``,!0),B.officers.length?(s(),a(`section`,P,[H[3]||=i(`div`,{class:`mb-3 flex items-center gap-3`},[i(`h2`,{class:`text-sm font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase`},`QM-Beauftragte`),i(`span`,{class:`h-px flex-1 bg-border`,"aria-hidden":`true`})],-1),i(`ul`,F,[(s(!0),a(c,null,o(B.officers,(o,c)=>(s(),a(`li`,{key:`${o.id}-${c}`,class:`rounded-lg border bg-card p-4`},[i(`div`,I,[o.area?(s(),a(`span`,L,u(o.area),1)):f(``,!0),o.folder?(s(),d(n(p),{key:1,href:o.folder.url,class:`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`])):f(``,!0)]),e(v,{contact:o},null,8,[`contact`])]))),128))])])):f(``,!0),B.categories.length?f(``,!0):(s(),a(`div`,R,[e(b,{icon:n(g),title:`Noch keine Ordner`,text:B.canManage?`Legen Sie Kategorien und Ordner im Admin-Bereich unter „Qualitätsmanagement“ an.`:`Hier erscheinen bald die QM-Dokumente.`},{default:l(()=>[B.adminUrl?(s(),d(n(S),{key:0,class:`mt-4`,"as-child":``},{default:l(()=>[i(`a`,{href:B.adminUrl},`Ordner anlegen`,8,z)]),_:1})):f(``,!0)]),_:1},8,[`icon`,`text`])]))]),_:1}))}};export{B as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as p}from"./app-Cw5f57va.js";import{D as m}from"./AppIcon-BiVN_tuL.js";import{t as h}from"./AppLayout-9kc4awMB.js";import{s as g}from"./RovingFocusGroup-D88K7krN.js";import{i as _,r as v,t as y}from"./FolderTile-DexaOIc1.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-r1Deze0_.js";import{t as S}from"./button-ZHC5mKey.js";import{t as C}from"./colors-RDOJqd57.js";import{t as w}from"./QmSearchBox-zTKdUUQq.js";var T=[`href`],E={key:0,class:`relative overflow-hidden rounded-lg border bg-card p-5 pl-6`},D=[`innerHTML`],O={key:1,class:`rounded-lg border bg-card`},k={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},A={key:1,class:`grid gap-8`},j={class:`mb-3 flex items-center gap-3`},M={class:`text-sm font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase`},N={class:`grid grid-cols-[repeat(auto-fill,minmax(13rem,1fr))] gap-4`},P={key:2,class:`mt-10`},F={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},I={class:`mb-3 flex flex-wrap items-center gap-2`},L={key:0,class:`rounded bg-brand-soft px-2 py-0.5 text-xs font-medium text-brand-soft-foreground`},R={key:3,class:`rounded-lg border bg-card`},z=[`href`],B={__name:`Index`,props:{intro:{type:String,default:``},contacts:{type:Array,default:()=>[]},officers:{type:Array,default:()=>[]},categories:{type:Array,required:!0},canManage:{type:Boolean,default:!1},adminUrl:{type:String,default:null}},setup(B){return(V,H)=>(s(),d(h,{title:`Qualitätsmanagement`},{default:l(()=>[e(x,{title:`Qualitätsmanagement`,description:`Verfahrensanweisungen, Standards und Formulare – immer in der gültigen Fassung.`},{actions:l(()=>[B.adminUrl?(s(),d(n(S),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:l(()=>[i(`a`,{href:B.adminUrl},[e(n(_)),H[0]||=t(` Ordner verwalten`,-1)],8,T)]),_:1})):f(``,!0),e(w)]),_:1}),B.intro||B.contacts.length?(s(),a(`div`,{key:0,class:r([`mb-8 grid items-start gap-6`,{"lg:grid-cols-[minmax(0,1fr)_20rem]":B.intro&&B.contacts.length}])},[B.intro?(s(),a(`section`,E,[H[1]||=i(`span`,{class:`absolute inset-y-0 left-0 w-1.5 bg-brand`,"aria-hidden":`true`},null,-1),i(`div`,{class:`prose prose-sm max-w-none dark:prose-invert`,innerHTML:B.intro},null,8,D)])):f(``,!0),B.contacts.length?(s(),a(`aside`,O,[i(`h2`,k,[e(n(m),{class:`size-4 text-brand-text`}),t(` `+u(B.contacts.length===1?`Ansprechpartner*in QM`:`Ansprechpartner*innen QM`),1)]),i(`div`,{class:r([`grid gap-4 p-4`,{"sm:grid-cols-2 lg:grid-cols-1":!B.intro}])},[(s(!0),a(c,null,o(B.contacts,e=>(s(),d(v,{key:e.id,contact:e},null,8,[`contact`]))),128))],2)])):f(``,!0)],2)):f(``,!0),B.categories.length?(s(),a(`div`,A,[(s(!0),a(c,null,o(B.categories,e=>(s(),a(`section`,{key:e.id??`rest`},[i(`div`,j,[i(`h2`,M,u(e.name),1),H[2]||=i(`span`,{class:`h-px flex-1 bg-border`,"aria-hidden":`true`},null,-1)]),i(`div`,N,[(s(!0),a(c,null,o(e.folders,e=>(s(),d(y,{key:e.id,folder:e},null,8,[`folder`]))),128))])]))),128))])):f(``,!0),B.officers.length?(s(),a(`section`,P,[H[3]||=i(`div`,{class:`mb-3 flex items-center gap-3`},[i(`h2`,{class:`text-sm font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase`},`QM-Beauftragte`),i(`span`,{class:`h-px flex-1 bg-border`,"aria-hidden":`true`})],-1),i(`ul`,F,[(s(!0),a(c,null,o(B.officers,(o,c)=>(s(),a(`li`,{key:`${o.id}-${c}`,class:`rounded-lg border bg-card p-4`},[i(`div`,I,[o.area?(s(),a(`span`,L,u(o.area),1)):f(``,!0),o.folder?(s(),d(n(p),{key:1,href:o.folder.url,class:`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`])):f(``,!0)]),e(v,{contact:o},null,8,[`contact`])]))),128))])])):f(``,!0),B.categories.length?f(``,!0):(s(),a(`div`,R,[e(b,{icon:n(g),title:`Noch keine Ordner`,text:B.canManage?`Legen Sie Kategorien und Ordner im Admin-Bereich unter „Qualitätsmanagement“ an.`:`Hier erscheinen bald die QM-Dokumente.`},{default:l(()=>[B.adminUrl?(s(),d(n(S),{key:0,class:`mt-4`,"as-child":``},{default:l(()=>[i(`a`,{href:B.adminUrl},`Ordner anlegen`,8,z)]),_:1})):f(``,!0)]),_:1},8,[`icon`,`text`])]))]),_:1}))}};export{B as default}; \ No newline at end of file diff --git a/public/build/assets/Index-BnCrq50t.js b/public/build/assets/Index-DTa0oNZw.js similarity index 98% rename from public/build/assets/Index-BnCrq50t.js rename to public/build/assets/Index-DTa0oNZw.js index 554ecf1a..e763e535 100644 --- a/public/build/assets/Index-BnCrq50t.js +++ b/public/build/assets/Index-DTa0oNZw.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdfThumbnail-Bov_BmHM.js","assets/app-CNhdlRDG.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app--xQ6sxMx.css"])))=>i.map(i=>d[i]); -import{D as e,E as t,Ht as n,On as r,St as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,et as d,g as f,it as p,jt as ee,mt as m,o as h,qt as g,tr as _,v,vn as y,wt as b,xt as te,y as x}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as S}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as C,i as ne,n as w,o as T,r as re}from"./app-CNhdlRDG.js";import{O as ie,k as E}from"./dist-DtGNiYlK.js";import{A as ae,K as D,N as oe,W as se,X as ce,a as le,c as ue,i as de,o as O,q as fe,s as pe}from"./AppIcon-D91Q4hzR.js";import{n as me,t as k}from"./arrow-up-Djq_2Npz.js";import{t as he}from"./AppLayout-B1gBMLPE.js";import{o as ge,t as _e,x as ve}from"./http-DmyDwIce.js";import{t as ye}from"./download-UAAY3N2F.js";import{t as be}from"./ellipsis-vertical-B9wuHo-w.js";import{t as A}from"./FileIcon-BLwyvOt_.js";import{t as xe}from"./file-plus-corner-Z8xo1q-K.js";import{t as Se}from"./folder-tree-ZY-sbGXb.js";import{t as Ce}from"./list-DHYGZ2vt.js";import{t as we}from"./pencil-line-CmAbFj4f.js";import{t as j}from"./rotate-ccw-clock-DRYS-TO2.js";import{t as Te}from"./trash-DUqnVIgb.js";import{t as Ee}from"./upload-M7dd6qr8.js";import{t as De}from"./DialogDescription-CCacFT45.js";import{t as M}from"./FormField-BoFAO4pm.js";import{t as Oe}from"./EmptyState-Ceq4v8mE.js";import{t as ke}from"./PageHeader-vFc2LbBj.js";import{a as N,o as Ae}from"./format-BsuBtvUs.js";import{t as P}from"./button-ZHC5mKey.js";import{t as je}from"./NativeSelect-BGasRaNs.js";import{t as F}from"./Input-FGSb2-yK.js";import{t as Me}from"./Skeleton-fJgmuUSB.js";import{t as Ne}from"./Textarea-DEFXqC2w.js";import{i as I,n as Pe,r as L,t as R}from"./dialog-37na293D.js";import{t as z}from"./DialogHeader-DuqiL3ry.js";import{t as Fe}from"./useStoredChoice-BAacDiWy.js";var Ie=E({name:`folder-plus`,size:24,node:[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),Le=E({name:`library-big`,size:24,node:[[`rect`,{width:`8`,height:`18`,x:`3`,y:`3`,rx:`1`,key:`oynpb5`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z`,key:`1qboyk`}]]}),Re=E({name:`trending-up`,size:24,node:[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]}),B=e=>e?e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`:`–`,V=(e,t,n)=>`${e.toLocaleString(`de-DE`)} ${e===1?t:n}`;function ze(e){let t=[];return e.folders&&t.push(V(e.folders,`Ordner`,`Ordner`)),e.downloads&&t.push(V(e.downloads,`Datei`,`Dateien`)),t.join(` · `)||`Noch leer`}var H={__name:`DownloadMenu`,props:{download:{type:Object,required:!0},canEdit:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`],setup(n){return(i,a)=>(m(),v(r(ue),null,{default:g(()=>[e(r(de),{"as-child":``},{default:g(()=>[e(r(P),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${n.download.title}`},{default:g(()=>[e(r(be))]),_:1},8,[`aria-label`])]),_:1}),e(r(pe),{align:`end`,class:`w-60`},{default:g(()=>[e(r(O),{onSelect:a[0]||=e=>i.$emit(`versions`,n.download)},{default:g(()=>[e(r(j)),a[4]||=t(` Fassungen anzeigen`,-1)]),_:1}),n.canEdit?(m(),s(h,{key:0},[e(r(O),{onSelect:a[1]||=e=>i.$emit(`new-version`,n.download)},{default:g(()=>[e(r(xe)),a[5]||=t(` Neue Fassung hochladen`,-1)]),_:1}),e(r(O),{onSelect:a[2]||=e=>i.$emit(`edit`,n.download)},{default:g(()=>[e(r(we)),a[6]||=t(` Bearbeiten oder verschieben`,-1)]),_:1}),e(r(le)),e(r(O),{class:`text-destructive`,onSelect:a[3]||=e=>i.$emit(`remove`,n.download)},{default:g(()=>[e(r(Te)),a[7]||=t(` Löschen`,-1)]),_:1})],64)):x(``,!0)]),_:1})]),_:1}))}},Be=[`aria-pressed`,`title`,`aria-label`],U={__name:`FavoriteButton`,props:{download:{type:Object,required:!0}},emits:[`toggle`],setup(t){return(n,i)=>(m(),s(`button`,{type:`button`,class:a([`grid size-8 place-items-center rounded-md hover:bg-accent`,t.download.favorite?`text-amber-500`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":t.download.favorite,title:t.download.favorite?`Aus „Meine Downloads“ entfernen`:`In „Meine Downloads“ merken`,"aria-label":t.download.favorite?`${t.download.title} nicht mehr merken`:`${t.download.title} merken`,onClick:i[0]||=e=>n.$emit(`toggle`,t.download)},[e(r(ae),{class:a([`size-4`,{"fill-current":t.download.favorite}])},null,8,[`class`])],10,Be))}},W=[`src`],Ve={key:1,class:`grid size-full place-items-center`},He={__name:`DownloadThumb`,props:{download:{type:Object,required:!0}},setup(t){let n=t,r=y(null),i=y(null),a=y(!1),o;async function c(){if(n.download.preview_kind===`image`){i.value=n.download.preview_url;return}try{let{pdfThumbnail:e}=await T(async()=>{let{pdfThumbnail:e}=await import(`./pdfThumbnail-Bov_BmHM.js`);return{pdfThumbnail:e}},__vite__mapDeps([0,1,2,3,4]));i.value=await e(n.download.preview_url)}catch{a.value=!0}}return l(()=>{n.download.preview_url&&typeof IntersectionObserver<`u`&&(o=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(o.disconnect(),c())},{rootMargin:`200px`}),o.observe(r.value))}),p(()=>o?.disconnect()),(n,o)=>(m(),s(`div`,{ref_key:`root`,ref:r,class:`relative h-32 overflow-hidden rounded-t-lg border-b bg-muted/40`},[i.value&&!a.value?(m(),s(`img`,{key:0,src:i.value,alt:``,class:`size-full object-cover object-top`,loading:`lazy`,onError:o[0]||=e=>a.value=!0},null,40,W)):(m(),s(`div`,Ve,[e(A,{extension:t.download.extension,size:`lg`},null,8,[`extension`])])),te(n.$slots,`default`)],512))}},Ue={class:`grid gap-6`},G={key:0,class:`grid grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))] gap-3`},K={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},We={class:`min-w-0`},q={class:`block truncate text-xs text-muted-foreground`},J={key:1,class:`grid grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))] gap-3`},Ge={key:0,class:`absolute bottom-2 left-2 rounded bg-card px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground ring-1 ring-border`},Ke={key:1,class:`absolute right-2 bottom-2 rounded bg-card px-1.5 py-0.5 text-[10px] font-bold tracking-wide text-muted-foreground uppercase ring-1 ring-border`},qe={class:`flex min-h-0 flex-1 flex-col p-3`},Y=[`href`,`title`],X={key:1,class:`line-clamp-2 text-sm leading-snug font-medium`},Je={class:`mt-auto pt-2 text-xs text-muted-foreground`},Z={key:0,class:`absolute top-2 left-2 z-10 text-amber-500`},Q={class:`absolute top-1.5 right-1.5 z-10 flex gap-0.5 rounded-md bg-card/90 opacity-0 shadow-xs ring-1 ring-border transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 max-md:opacity-100`},$=[`href`,`aria-label`],Ye={__name:`DownloadGrid`,props:{folders:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`,`favorite`],setup(n){return(i,a)=>(m(),s(`div`,Ue,[n.folders.length?(m(),s(`ul`,G,[(m(!0),s(h,null,c(n.folders,n=>(m(),s(`li`,{key:n.id,class:`group relative flex items-center gap-3 rounded-lg border bg-card p-3 hover:border-brand-300 hover:shadow-xs`},[o(`span`,K,[e(r(D),{class:`size-5`,"stroke-width":1.75})]),o(`span`,We,[e(r(w),{href:`/downloads/ordner/${n.id}`,class:`block truncate text-sm font-medium after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`]),o(`span`,q,_(r(ze)(n)),1)])]))),128))])):x(``,!0),n.downloads.length?(m(),s(`ul`,J,[(m(!0),s(h,null,c(n.downloads,t=>(m(),s(`li`,{key:t.id,class:`group relative flex flex-col rounded-lg border bg-card hover:border-brand-300 hover:shadow-xs`},[e(He,{download:t},{default:g(()=>[t.version>1?(m(),s(`span`,Ge,`Fassung `+_(t.version),1)):x(``,!0),t.preview_url?(m(),s(`span`,Ke,_(t.extension),1)):x(``,!0)]),_:2},1032,[`download`]),o(`div`,qe,[t.download_url?(m(),s(`a`,{key:0,href:t.download_url,class:`line-clamp-2 text-sm leading-snug font-medium after:absolute after:inset-0 hover:underline`,title:t.name},_(t.title),9,Y)):(m(),s(`span`,X,_(t.title),1)),o(`p`,Je,_(r(Ae)(t.updated_at))+` · `+_(r(B)(t.size)),1)]),t.favorite?(m(),s(`div`,Z,[e(r(ae),{class:`size-4 fill-current`})])):x(``,!0),o(`div`,Q,[e(U,{download:t,onToggle:a[0]||=e=>i.$emit(`favorite`,e)},null,8,[`download`]),t.download_url?(m(),v(r(P),{key:0,variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${t.title} herunterladen`},{default:g(()=>[o(`a`,{href:t.download_url,"aria-label":`${t.title} herunterladen`},[e(r(ye))],8,$)]),_:2},1032,[`title`])):x(``,!0),e(H,{download:t,"can-edit":n.canEdit,onVersions:a[1]||=e=>i.$emit(`versions`,e),onNewVersion:a[2]||=e=>i.$emit(`new-version`,e),onEdit:a[3]||=e=>i.$emit(`edit`,e),onRemove:a[4]||=e=>i.$emit(`remove`,e)},null,8,[`download`,`can-edit`])])]))),128))])):x(``,!0)]))}},Xe={class:`rounded-lg border bg-card`},Ze={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Qe={key:0,class:`p-2`},$e=[`href`],et={class:`min-w-0 flex-1`},tt={class:`block truncate text-[13px] font-medium`},nt={class:`block truncate text-xs text-muted-foreground`},rt={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},it={__name:`DownloadMiniList`,props:{title:{type:String,required:!0},icon:{type:[Object,Function],required:!0},downloads:{type:Array,required:!0},empty:{type:String,default:``},showDownloads:{type:Boolean,default:!1}},setup(n){return(r,i)=>(m(),s(`section`,Xe,[o(`h2`,Ze,[(m(),v(b(n.icon),{class:`size-4 text-brand-text`})),t(` `+_(n.title),1)]),n.downloads.length?(m(),s(`ul`,Qe,[(m(!0),s(h,null,c(n.downloads,r=>(m(),s(`li`,{key:r.id},[o(`a`,{href:r.download_url,class:`flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(A,{extension:r.extension,size:`sm`},null,8,[`extension`]),o(`span`,et,[o(`span`,tt,_(r.title),1),o(`span`,nt,[t(_(r.folder_name),1),n.showDownloads?(m(),s(h,{key:0},[t(` · `+_(r.download_count.toLocaleString(`de-DE`))+`× geladen`,1)],64)):x(``,!0)])])],8,$e)]))),128))])):(m(),s(`p`,rt,_(n.empty),1))]))}},at={class:`overflow-hidden rounded-lg border bg-card`},ot={key:1},st={key:2},ct={key:4},lt={key:1,class:`text-right`},ut={class:`divide-y`},dt={class:`flex min-w-0 items-center gap-3`},ft={class:`grid size-8 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},pt={class:`min-w-0`},mt={class:`truncate text-xs text-muted-foreground`},ht={key:0,class:`hidden md:block`},gt={key:1,class:`hidden md:block`},_t={class:`flex min-w-0 items-center gap-3`},vt={class:`min-w-0`},yt={class:`flex min-w-0 items-baseline gap-2`},bt=[`href`,`title`],xt={key:1,class:`truncate text-sm font-medium`},St={class:`hidden shrink-0 text-[11px] font-medium text-muted-foreground uppercase sm:inline`},Ct={key:0,class:`truncate text-xs text-muted-foreground`},wt={class:`truncate text-xs text-muted-foreground md:hidden`},Tt={class:`hidden min-w-0 text-[13px] md:block`},Et={class:`truncate leading-tight`},Dt={class:`truncate text-xs leading-tight text-muted-foreground`},Ot={key:1,class:`hidden text-right text-[13px] text-muted-foreground tabular-nums md:block`},kt={class:`absolute top-1/2 right-2 flex -translate-y-1/2 items-center justify-end gap-0.5 md:static md:translate-y-0`},At=[`href`,`aria-label`],jt={__name:`DownloadTable`,props:{folders:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!1},showFolder:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},compact:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`,`favorite`],setup(n){let i=n,l=y({key:`title`,dir:1});function u(e){l.value=l.value.key===e?{key:e,dir:-l.value.dir}:{key:e,dir:e===`title`?1:-1}}let d=f(()=>{if(!i.sortable)return i.downloads;let{key:e,dir:t}=l.value,n=t=>e===`title`?t.title.toLocaleLowerCase(`de`):e===`size`?t.size:t.updated_at??``;return[...i.downloads].sort((e,r)=>n(e)>n(r)?t:n(e)i.compact?i.showFolder?`md:grid-cols-[minmax(0,1fr)_8rem_9.5rem_6.5rem]`:`md:grid-cols-[minmax(0,1fr)_9.5rem_6.5rem]`:i.showFolder?`md:grid-cols-[minmax(0,1fr)_12rem_11rem_5.5rem_6.5rem]`:`md:grid-cols-[minmax(0,1fr)_11rem_5.5rem_6.5rem]`);return(i,f)=>(m(),s(`div`,at,[o(`div`,{class:a([`hidden border-b bg-muted/40 px-4 py-2 text-xs font-medium text-muted-foreground md:grid md:items-center md:gap-4`,p.value]),role:`row`},[n.sortable?(m(),s(`button`,{key:0,type:`button`,class:`inline-flex items-center gap-1 text-left hover:text-foreground`,onClick:f[0]||=e=>u(`title`)},[f[8]||=t(` Name `,-1),l.value.key===`title`?(m(),v(b(l.value.dir>0?r(k):r(me)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,ot,`Name`)),n.showFolder?(m(),s(`span`,st,`Ordner`)):x(``,!0),n.sortable?(m(),s(`button`,{key:3,type:`button`,class:`inline-flex items-center gap-1 text-left hover:text-foreground`,onClick:f[1]||=e=>u(`updated_at`)},[f[9]||=t(` Geändert `,-1),l.value.key===`updated_at`?(m(),v(b(l.value.dir>0?r(k):r(me)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,ct,`Geändert`)),n.compact?x(``,!0):(m(),s(h,{key:5},[n.sortable?(m(),s(`button`,{key:0,type:`button`,class:`inline-flex items-center justify-end gap-1 hover:text-foreground`,onClick:f[2]||=e=>u(`size`)},[f[10]||=t(` Größe `,-1),l.value.key===`size`?(m(),v(b(l.value.dir>0?r(k):r(me)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,lt,`Größe`))],64)),f[11]||=o(`span`,{class:`sr-only`},`Aktionen`,-1)],2),o(`ul`,ut,[(m(!0),s(h,null,c(n.folders,i=>(m(),s(`li`,{key:`f${i.id}`,class:a([`group relative grid items-center gap-x-4 px-4 py-2 hover:bg-accent/60`,p.value])},[o(`div`,dt,[o(`span`,ft,[e(r(D),{class:`size-4`,"stroke-width":1.75})]),o(`div`,pt,[e(r(w),{href:`/downloads/ordner/${i.id}`,class:`block truncate text-sm font-medium after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(i.name),1)]),_:2},1032,[`href`]),o(`p`,mt,_(r(ze)(i)),1)])]),n.showFolder?(m(),s(`span`,ht)):x(``,!0),f[12]||=o(`span`,{class:`hidden text-[13px] text-muted-foreground md:block`},`–`,-1),n.compact?x(``,!0):(m(),s(`span`,gt)),f[13]||=o(`span`,{class:`hidden md:block`},null,-1)],2))),128)),(m(!0),s(h,null,c(d.value,c=>(m(),s(`li`,{key:c.id,class:a([`group relative grid items-center gap-x-4 py-2 pr-32 pl-4 hover:bg-accent/60 md:pr-4`,p.value])},[o(`div`,_t,[e(A,{extension:c.extension,size:`sm`},null,8,[`extension`]),o(`div`,vt,[o(`div`,yt,[c.download_url?(m(),s(`a`,{key:0,href:c.download_url,class:`truncate text-sm font-medium hover:underline`,title:c.name},_(c.title),9,bt)):(m(),s(`span`,xt,_(c.title),1)),o(`span`,St,_(c.extension),1)]),c.description?(m(),s(`p`,Ct,_(c.description),1)):x(``,!0),o(`p`,wt,[t(_(r(N)(c.updated_at))+` · `+_(r(B)(c.size)),1),n.showFolder&&c.folder_name?(m(),s(h,{key:0},[t(` · `+_(c.folder_name),1)],64)):x(``,!0)])])]),n.showFolder?(m(),v(r(w),{key:0,href:`/downloads/ordner/${c.folder_id}`,class:`hidden truncate text-[13px] text-muted-foreground hover:text-foreground hover:underline md:block`},{default:g(()=>[t(_(c.folder_name),1)]),_:2},1032,[`href`])):x(``,!0),o(`div`,Tt,[o(`div`,Et,_(r(N)(c.updated_at)),1),o(`div`,Dt,[c.updated_by?(m(),s(h,{key:0},[t(_(c.updated_by),1)],64)):x(``,!0),c.version>1?(m(),s(h,{key:1},[t(_(c.updated_by?` · `:``)+`Fassung `+_(c.version),1)],64)):x(``,!0)])]),n.compact?x(``,!0):(m(),s(`span`,Ot,_(r(B)(c.size)),1)),o(`div`,kt,[e(U,{download:c,onToggle:f[3]||=e=>i.$emit(`favorite`,e)},null,8,[`download`]),c.download_url?(m(),v(r(P),{key:0,variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${c.title} herunterladen`},{default:g(()=>[o(`a`,{href:c.download_url,"aria-label":`${c.title} herunterladen`},[e(r(ye))],8,At)]),_:2},1032,[`title`])):x(``,!0),e(H,{download:c,"can-edit":n.canEdit,onVersions:f[4]||=e=>i.$emit(`versions`,e),onNewVersion:f[5]||=e=>i.$emit(`new-version`,e),onEdit:f[6]||=e=>i.$emit(`edit`,e),onRemove:f[7]||=e=>i.$emit(`remove`,e)},null,8,[`download`,`can-edit`])])],2))),128))])]))}},Mt={class:`truncate`},Nt={__name:`FolderTreeNav`,props:{items:{type:Array,required:!0},currentId:{type:Number,default:null},openIds:{type:Array,default:()=>[]},depth:{type:Number,default:0}},setup(t){return(n,l)=>{let u=i(`FolderTreeNav`,!0);return m(),s(`ul`,{class:a([`grid gap-0.5`,t.depth?`ml-3 border-l pl-2`:``])},[(m(!0),s(h,null,c(t.items,n=>(m(),s(`li`,{key:n.id},[e(r(w),{href:`/downloads/ordner/${n.id}`,class:a([`flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm`,n.id===t.currentId?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`]),"preserve-scroll":``},{default:g(()=>[n.id===t.currentId||t.openIds.includes(n.id)?(m(),v(r(fe),{key:0,class:`size-4 shrink-0`})):(m(),v(r(D),{key:1,class:`size-4 shrink-0`})),o(`span`,Mt,_(n.name),1)]),_:2},1032,[`href`,`class`]),n.children.length&&(n.id===t.currentId||t.openIds.includes(n.id))?(m(),v(u,{key:0,items:n.children,"current-id":t.currentId,"open-ids":t.openIds,depth:t.depth+1},null,8,[`items`,`current-id`,`open-ids`,`depth`])):x(``,!0)]))),128))],2)}}},Pt={class:`grid gap-6 lg:grid-cols-[240px_minmax(0,1fr)]`},Ft={class:`hidden lg:block`},It={class:`sticky top-20 rounded-lg border bg-card`,"aria-label":`Ordner`},Lt={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Rt={class:`max-h-[calc(100vh-12rem)] overflow-y-auto p-2`},zt={key:0,class:`px-2.5 py-2 text-[13px] text-muted-foreground`},Bt={key:0,class:`mb-7 grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-4`},Vt={class:`flex items-start gap-3 p-4`},Ht={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand text-white`},Ut={class:`min-w-0`},Wt={key:0,class:`mt-0.5 line-clamp-2 text-[13px] leading-snug text-muted-foreground`},Gt={key:1,class:`relative z-10 mt-1 truncate text-xs text-muted-foreground`},Kt={key:0},qt={class:`mt-auto border-t bg-muted/30 px-4 py-2 text-xs font-medium text-brand-text`},Jt={key:1,class:`mb-5 rounded-lg border bg-card`},Yt={class:`grid items-start gap-5 xl:grid-cols-[minmax(0,1fr)_18rem]`},Xt={key:0,class:`min-w-0`},Zt={class:`mb-3 flex items-center gap-2 text-sm font-semibold`},Qt={class:`grid gap-5 xl:pt-8`},$t={class:`mb-4 flex flex-wrap items-center justify-between gap-3`},en={class:`text-[13px] text-muted-foreground`},tn={class:`flex items-center gap-2`},nn={class:`inline-flex rounded-md border bg-card p-0.5`,role:`group`,"aria-label":`Ansicht`},rn=[`aria-pressed`,`onClick`],an={class:`hidden sm:inline`},on=[`aria-valuenow`],sn={class:`min-w-0`},cn={key:1,class:`rounded-lg border bg-card`},ln={class:`mt-1 text-[13px] text-muted-foreground`},un={key:3,class:`rounded-lg border bg-card`},dn={key:0,class:`hidden overflow-hidden rounded-lg border bg-card text-[13px] xl:block`},fn={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},pn={class:`grid gap-3 p-4`},mn={class:`grid grid-cols-2 gap-2`},hn={class:`rounded-md bg-muted/50 px-3 py-2`},gn={class:`text-lg font-semibold tabular-nums`},_n={class:`rounded-md bg-muted/50 px-3 py-2`},vn={class:`text-lg font-semibold tabular-nums`},yn={key:0},bn={key:0,class:`mt-1 flex flex-wrap gap-1`},xn={key:1},Sn={key:1,class:`rounded-md border border-dashed px-3 py-2 text-xs text-muted-foreground`},Cn={class:`mt-2 text-sm font-semibold text-brand-soft-foreground`},wn={key:0,class:`-mx-2 divide-y`,"aria-busy":`true`},Tn={class:`grid flex-1 gap-1.5`},En={key:1,class:`-mx-2 divide-y`},Dn={class:`grid size-8 place-items-center rounded-md bg-muted text-xs font-semibold`},On={class:`min-w-0 flex-1`},kn={class:`truncate text-sm`},An={key:0,class:`ml-1 rounded bg-brand-soft px-1.5 py-0.5 text-[11px] text-brand-soft-foreground`},jn={class:`text-xs text-muted-foreground`},Mn={key:0,class:`text-xs`},Nn=[`href`],Pn={__name:`Index`,props:{tree:{type:Array,required:!0},folder:{type:Object,default:null},breadcrumbs:{type:Array,default:()=>[]},children:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},recent:{type:Array,default:()=>[]},favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]},search:{type:String,default:``},canCreateRoot:{type:Boolean,default:!1},folderOptions:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20}},setup(i){let l=i,p=ne();n(()=>p.props.flash.status,e=>e&&ge.success(e),{immediate:!0});let te=f(()=>l.breadcrumbs.map(e=>e.id)),T=f(()=>!!l.folder?.can_edit),E=f(()=>l.search?`Suche: ${l.search}`:l.folder?.name??`Downloads`),fe=f(()=>l.downloads.map(e=>e.updated_at).filter(Boolean).sort().at(-1)??null),me=f(()=>k.value?[]:[{label:`Downloads`,href:`/downloads`},...l.breadcrumbs.map(e=>({label:e.name,href:`/downloads/ordner/${e.id}`}))]),k=f(()=>!l.folder&&!l.search),A=Fe(`downloads.view`,`list`,[`list`,`grid`]),xe=f(()=>{let e=[];return l.children.length&&!l.search&&e.push(V(l.children.length,`Ordner`,`Ordner`)),e.push(V(l.downloads.length,l.search?`Treffer`:`Datei`,l.search?`Treffer`:`Dateien`)),e.join(` · `)}),j={versions:e=>Je(e),"new-version":e=>{G.value=e,K.reset()},edit:e=>Ge(e),remove:e=>qe(e),favorite:e=>Ae(e)};function Ae(e){let t=`/downloads/${e.id}/favorit`,n={preserveScroll:!0,preserveState:!0};e.favorite?C.delete(t,n):C.post(t,{},n)}let H=y(l.search);function Be(){C.get(l.folder?`/downloads/ordner/${l.folder.id}`:`/downloads`,H.value.trim()?{q:H.value.trim()}:{},{preserveState:!0})}let U=re({files:[]}),W=y(!1),Ve=y(null);function He(e){if(!T.value||!e.length)return;let t=e.find(e=>e.size>l.maxUploadMb*1024*1024);if(t){ge.error(`„${t.name}“ ist größer als ${l.maxUploadMb} MB.`);return}U.files=e,U.post(`/downloads/ordner/${l.folder.id}/dateien`,{forceFormData:!0,preserveScroll:!0,onError:e=>ge.error(Object.values(e)[0]),onFinish:()=>U.reset()})}function Ue(e){W.value=!1,He([...e.dataTransfer?.files??[]])}let G=y(null),K=re({file:null,note:``});function We(){K.post(`/downloads/${G.value.id}/versionen`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{G.value=null,K.reset()}})}let q=y(null),J=re({title:``,description:``,folder_id:null});function Ge(e){q.value=e,J.defaults({title:e.title,description:e.description??``,folder_id:e.folder_id}),J.reset(),J.clearErrors()}function Ke(){J.put(`/downloads/${q.value.id}`,{preserveScroll:!0,onSuccess:()=>q.value=null})}function qe(e){window.confirm(`„${e.title}“ mit allen Fassungen löschen?`)&&C.delete(`/downloads/${e.id}`,{preserveScroll:!0})}let Y=y(null),X=y([]);async function Je(e){Y.value=e,X.value=[],X.value=(await _e.get(`/downloads/${e.id}/versionen`)).versions}let Z=y(null),Q=re({name:``,parent_id:null});function $(e){Z.value=e,Q.clearErrors(),Q.name=e===`rename`?l.folder.name:``,Q.parent_id=e===`new`?l.folder?.id??null:null}function Xe(){Z.value===`rename`?Q.transform(e=>({name:e.name,description:l.folder.description})).put(`/downloads/ordner/${l.folder.id}`,{onSuccess:()=>Z.value=null}):Q.transform(e=>e).post(`/downloads/ordner`,{onSuccess:()=>Z.value=null})}function Ze(){window.confirm(`Ordner „${l.folder.name}“ löschen?`)&&C.delete(`/downloads/ordner/${l.folder.id}`,{onError:e=>ge.error(Object.values(e)[0])})}return(n,l)=>(m(),v(he,{title:E.value},{default:g(()=>[o(`div`,Pt,[o(`aside`,Ft,[o(`nav`,It,[o(`div`,Lt,[e(r(Se),{class:`size-4 text-brand-text`}),l[22]||=t(` Ablage`,-1)]),o(`div`,Rt,[e(r(w),{href:`/downloads`,class:a([`mb-0.5 flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm`,k.value?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`])},{default:g(()=>[e(r(Le),{class:`size-4 shrink-0`}),l[23]||=t(` Übersicht `,-1)]),_:1},8,[`class`]),e(Nt,{items:i.tree,"current-id":i.folder?.id??null,"open-ids":te.value},null,8,[`items`,`current-id`,`open-ids`]),i.tree.length?x(``,!0):(m(),s(`p`,zt,`Noch keine Ordner.`))])])]),o(`section`,{class:`relative min-w-0`,onDragover:l[8]||=S(e=>T.value&&(W.value=!0),[`prevent`]),onDrop:S(Ue,[`prevent`])},[e(ke,{title:E.value,breadcrumbs:me.value,description:k.value?`Vorlagen, Anträge und Infomaterial – immer in der aktuellen Fassung.`:i.search?``:i.folder?.description??``},{actions:g(()=>[k.value&&i.canCreateRoot?(m(),v(r(P),{key:0,variant:`outline`,class:`h-10`,onClick:l[0]||=e=>$(`new`)},{default:g(()=>[e(r(Ie)),l[24]||=t(` Ordner anlegen`,-1)]),_:1})):x(``,!0),o(`form`,{class:`relative w-full sm:w-72`,role:`search`,onSubmit:S(Be,[`prevent`])},[e(r(oe),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(r(F),{modelValue:H.value,"onUpdate:modelValue":l[1]||=e=>H.value=e,type:`search`,class:`h-10 bg-card pl-9`,placeholder:`Downloads durchsuchen …`,"aria-label":`Downloads durchsuchen`},null,8,[`modelValue`])],32)]),_:1},8,[`title`,`breadcrumbs`,`description`]),k.value?(m(),s(h,{key:0},[i.children.length?(m(),s(`ul`,Bt,[(m(!0),s(h,null,c(i.children,n=>(m(),s(`li`,{key:n.id,class:`group relative flex flex-col rounded-lg border bg-card hover:border-brand-300`},[o(`div`,Vt,[o(`span`,Ht,[e(r(D),{class:`size-5`,"stroke-width":1.75})]),o(`div`,Ut,[e(r(w),{href:`/downloads/ordner/${n.id}`,class:`text-[15px] leading-tight font-semibold after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`]),n.description?(m(),s(`p`,Wt,_(n.description),1)):x(``,!0),n.subfolders.length?(m(),s(`p`,Gt,[(m(!0),s(h,null,c(n.subfolders,(n,i)=>(m(),s(h,{key:n.id},[i?(m(),s(`span`,Kt,` · `)):x(``,!0),e(r(w),{href:`/downloads/ordner/${n.id}`,class:`hover:text-foreground hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`])],64))),128))])):x(``,!0)])]),o(`div`,qt,_(r(ze)(n)),1)]))),128))])):(m(),s(`div`,Jt,[e(Oe,{icon:r(D),title:`Noch keine Downloads`,text:`Sobald Ordner angelegt sind, erscheinen sie hier.`},null,8,[`icon`])])),o(`div`,Yt,[i.recent.length?(m(),s(`div`,Xt,[o(`h2`,Zt,[e(r(ce),{class:`size-4 text-brand-text`}),l[25]||=t(` Zuletzt aktualisiert`,-1)]),e(jt,d({downloads:i.recent,"show-folder":``,compact:``,sortable:!1},ee(j)),null,16,[`downloads`])])):x(``,!0),o(`aside`,Qt,[e(it,{title:`Meine Downloads`,icon:r(ae),downloads:i.favorites,empty:`Mit dem Stern merken Sie sich Dateien – sie erscheinen hier und auf der Startseite.`},null,8,[`icon`,`downloads`]),i.popular.length?(m(),v(it,{key:0,title:`Häufig genutzt`,icon:r(Re),downloads:i.popular,"show-downloads":``},null,8,[`icon`,`downloads`])):x(``,!0)])])],64)):(m(),s(h,{key:1},[o(`div`,$t,[o(`p`,en,_(xe.value),1),o(`div`,tn,[o(`div`,nn,[(m(!0),s(h,null,c([{key:`list`,icon:r(Ce),label:`Liste`},{key:`grid`,icon:r(se),label:`Kacheln`}],e=>(m(),s(`button`,{key:e.key,type:`button`,class:a([`inline-flex h-8 items-center gap-1.5 rounded px-2.5 text-[13px]`,r(A)===e.key?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":r(A)===e.key,onClick:t=>A.value=e.key},[(m(),v(b(e.icon),{class:`size-4`})),l[26]||=t(),o(`span`,an,_(e.label),1)],10,rn))),128))]),T.value?(m(),v(r(P),{key:0,disabled:r(U).processing,onClick:l[2]||=e=>Ve.value?.click()},{default:g(()=>[r(U).processing?(m(),v(r(ie),{key:0,class:`animate-spin`})):(m(),v(r(Ee),{key:1})),l[27]||=t(` Hochladen `,-1)]),_:1},8,[`disabled`])):x(``,!0),o(`input`,{ref_key:`fileInput`,ref:Ve,type:`file`,multiple:``,class:`hidden`,onChange:l[3]||=e=>{He([...e.target.files]),e.target.value=``}},null,544),T.value?(m(),v(r(ue),{key:1},{default:g(()=>[e(r(de),{"as-child":``},{default:g(()=>[e(r(P),{variant:`outline`,size:`icon`,"aria-label":`Ordner-Aktionen`},{default:g(()=>[e(r(be))]),_:1})]),_:1}),e(r(pe),{align:`end`},{default:g(()=>[e(r(O),{onSelect:l[4]||=e=>$(`new`)},{default:g(()=>[e(r(Ie)),l[28]||=t(` Unterordner anlegen`,-1)]),_:1}),e(r(O),{onSelect:l[5]||=e=>$(`rename`)},{default:g(()=>[e(r(we)),l[29]||=t(` Ordner umbenennen`,-1)]),_:1}),i.folder.can_delete?(m(),v(r(le),{key:0})):x(``,!0),i.folder.can_delete?(m(),v(r(O),{key:1,class:`text-destructive`,onSelect:Ze},{default:g(()=>[e(r(Te)),l[30]||=t(` Ordner löschen`,-1)]),_:1})):x(``,!0)]),_:1})]),_:1})):x(``,!0)])]),r(U).processing&&r(U).progress?(m(),s(`div`,{key:0,class:`mb-3 h-1.5 overflow-hidden rounded-full bg-muted`,role:`progressbar`,"aria-valuenow":r(U).progress.percentage},[o(`div`,{class:`h-full bg-brand transition-all`,style:u({width:`${r(U).progress.percentage}%`})},null,4)],8,on)):x(``,!0),o(`div`,{class:a([`grid items-start gap-5`,{"xl:grid-cols-[minmax(0,1fr)_16rem]":i.folder&&!i.search}])},[o(`div`,sn,[i.children.length&&!i.search||i.downloads.length?(m(),s(h,{key:0},[r(A)===`list`?(m(),v(jt,d({key:0,folders:i.search?[]:i.children,downloads:i.downloads,"can-edit":T.value,"show-folder":!!i.search},ee(j)),null,16,[`folders`,`downloads`,`can-edit`,`show-folder`])):(m(),v(Ye,d({key:1,folders:i.search?[]:i.children,downloads:i.downloads,"can-edit":T.value},ee(j)),null,16,[`folders`,`downloads`,`can-edit`]))],64)):i.search?(m(),s(`div`,cn,[e(Oe,{icon:r(oe),title:`Keine Treffer`,text:`Nichts gefunden zu „${i.search}“. Gesucht wird in Titeln, Beschreibungen und Dateinamen.`},null,8,[`icon`,`text`])])):T.value?(m(),s(`button`,{key:2,type:`button`,class:`grid w-full place-items-center rounded-lg border-2 border-dashed bg-card px-6 py-14 text-center hover:border-brand-300`,onClick:l[6]||=e=>Ve.value?.click()},[e(r(Ee),{class:`size-8 text-muted-foreground`,"stroke-width":1.5}),l[31]||=o(`span`,{class:`mt-3 text-sm font-medium`},`Dieser Ordner ist leer`,-1),o(`span`,ln,`Dateien hierher ziehen oder klicken, um sie auszuwählen – bis `+_(i.maxUploadMb)+` MB je Datei.`,1)])):(m(),s(`div`,un,[e(Oe,{icon:r(D),title:`Dieser Ordner ist leer`},null,8,[`icon`])]))]),i.folder&&!i.search?(m(),s(`aside`,dn,[o(`h2`,fn,[e(r(ve),{class:`size-4 text-brand-text`}),l[32]||=t(` Über diesen Ordner`,-1)]),o(`dl`,pn,[o(`div`,mn,[o(`div`,hn,[l[33]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Dateien`,-1),o(`dd`,gn,_(i.downloads.length),1)]),o(`div`,_n,[l[34]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Ordner`,-1),o(`dd`,vn,_(i.children.length),1)])]),fe.value?(m(),s(`div`,yn,[l[35]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Zuletzt geändert`,-1),o(`dd`,null,_(r(N)(fe.value)),1)])):x(``,!0),o(`div`,null,[l[36]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Gepflegt von`,-1),i.folder.editors.length?(m(),s(`dd`,bn,[(m(!0),s(h,null,c(i.folder.editors,e=>(m(),s(`span`,{key:e,class:`rounded bg-brand-soft px-1.5 py-0.5 text-xs text-brand-soft-foreground`},_(e),1))),128))])):(m(),s(`dd`,xn,`Administration`))]),T.value?(m(),s(`div`,Sn,` Dateien einfach in die Liste ziehen. Bis `+_(i.maxUploadMb)+` MB je Datei, ältere Fassungen bleiben erhalten. `,1)):x(``,!0)])])):x(``,!0)],2)],64)),W.value&&T.value?(m(),s(`div`,{key:2,class:`absolute inset-0 z-20 grid place-items-center rounded-lg border-2 border-dashed border-brand-400 bg-brand-soft/90 text-center backdrop-blur-[1px]`,onDragleave:l[7]||=S(e=>W.value=!1,[`self`])},[o(`div`,null,[e(r(Ee),{class:`mx-auto size-8 text-brand-text`}),o(`p`,Cn,`Loslassen, um in „`+_(i.folder.name)+`“ hochzuladen`,1)])],32)):x(``,!0)],32)]),e(r(I),{open:!!G.value,"onUpdate:open":l[12]||=e=>!e&&(G.value=null)},{default:g(()=>[e(r(L),{class:`sm:max-w-md`},{default:g(()=>[e(r(z),null,{default:g(()=>[e(r(R),null,{default:g(()=>[...l[37]||=[t(`Neue Fassung`,-1)]]),_:1}),e(r(De),null,{default:g(()=>[t(`„`+_(G.value?.title)+`“ – die bisherige Fassung bleibt unter „Fassungen“ abrufbar.`,1)]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(We,[`prevent`])},[e(M,{id:`version-file`,label:`Datei`,error:r(K).errors.file},{default:g(()=>[o(`input`,{id:`version-file`,type:`file`,class:`text-sm`,onChange:l[9]||=e=>r(K).file=e.target.files[0]},null,32)]),_:1},8,[`error`]),e(M,{id:`version-note`,label:`Was hat sich geändert? (optional)`,error:r(K).errors.note},{default:g(()=>[e(r(F),{id:`version-note`,modelValue:r(K).note,"onUpdate:modelValue":l[10]||=e=>r(K).note=e,maxlength:`500`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(P),{type:`button`,variant:`outline`,onClick:l[11]||=e=>G.value=null},{default:g(()=>[...l[38]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(P),{type:`submit`,disabled:!r(K).file||r(K).processing},{default:g(()=>[...l[39]||=[t(`Hochladen`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]),e(r(I),{open:!!q.value,"onUpdate:open":l[17]||=e=>!e&&(q.value=null)},{default:g(()=>[e(r(L),{class:`sm:max-w-lg`},{default:g(()=>[e(r(z),null,{default:g(()=>[e(r(R),null,{default:g(()=>[...l[40]||=[t(`Datei bearbeiten`,-1)]]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(Ke,[`prevent`])},[e(M,{id:`doc-title`,label:`Titel`,error:r(J).errors.title},{default:g(()=>[e(r(F),{id:`doc-title`,modelValue:r(J).title,"onUpdate:modelValue":l[13]||=e=>r(J).title=e,maxlength:`250`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(M,{id:`doc-description`,label:`Beschreibung`,error:r(J).errors.description},{default:g(()=>[e(r(Ne),{id:`doc-description`,modelValue:r(J).description,"onUpdate:modelValue":l[14]||=e=>r(J).description=e,rows:`3`,maxlength:`2000`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(M,{id:`doc-folder`,label:`Ordner`,error:r(J).errors.folder_id},{default:g(()=>[e(je,{id:`doc-folder`,modelValue:r(J).folder_id,"onUpdate:modelValue":l[15]||=e=>r(J).folder_id=e,options:i.folderOptions},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(P),{type:`button`,variant:`outline`,onClick:l[16]||=e=>q.value=null},{default:g(()=>[...l[41]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(P),{type:`submit`,disabled:r(J).processing},{default:g(()=>[...l[42]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]),e(r(I),{open:!!Y.value,"onUpdate:open":l[18]||=e=>!e&&(Y.value=null)},{default:g(()=>[e(r(L),{class:`sm:max-w-lg`},{default:g(()=>[e(r(z),null,{default:g(()=>[e(r(R),null,{default:g(()=>[...l[43]||=[t(`Fassungen`,-1)]]),_:1}),e(r(De),null,{default:g(()=>[t(_(Y.value?.title),1)]),_:1})]),_:1}),X.value.length?(m(),s(`ul`,En,[(m(!0),s(h,null,c(X.value,n=>(m(),s(`li`,{key:n.version,class:`flex items-center gap-3 px-2 py-2.5`},[o(`span`,Dn,_(n.version),1),o(`div`,On,[o(`p`,kn,[t(_(n.name)+` `,1),n.current?(m(),s(`span`,An,`aktuell`)):x(``,!0)]),o(`p`,jn,[t(_(r(N)(n.created_at)),1),n.uploader?(m(),s(h,{key:0},[t(` · `+_(n.uploader),1)],64)):x(``,!0),t(` · `+_(r(B)(n.size)),1)]),n.note?(m(),s(`p`,Mn,_(n.note),1)):x(``,!0)]),e(r(P),{variant:`ghost`,size:`icon`,"as-child":``,title:`Fassung ${n.version} herunterladen`},{default:g(()=>[o(`a`,{href:n.download_url},[e(r(ye))],8,Nn)]),_:2},1032,[`title`])]))),128))])):(m(),s(`ul`,wn,[(m(),s(h,null,c(3,t=>o(`li`,{key:t,class:`flex items-center gap-3 px-2 py-2.5`},[e(r(Me),{class:`size-8`}),o(`div`,Tn,[e(r(Me),{class:`h-3.5 w-2/3`}),e(r(Me),{class:`h-3 w-1/3`})])])),64))]))]),_:1})]),_:1},8,[`open`]),e(r(I),{open:!!Z.value,"onUpdate:open":l[21]||=e=>!e&&(Z.value=null)},{default:g(()=>[e(r(L),{class:`sm:max-w-md`},{default:g(()=>[e(r(z),null,{default:g(()=>[e(r(R),null,{default:g(()=>[t(_(Z.value===`rename`?`Ordner umbenennen`:i.folder?`Unterordner in „${i.folder.name}“`:`Neuer Ordner`),1)]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(Xe,[`prevent`])},[e(M,{id:`folder-name`,label:`Name`,error:r(Q).errors.name},{default:g(()=>[e(r(F),{id:`folder-name`,modelValue:r(Q).name,"onUpdate:modelValue":l[19]||=e=>r(Q).name=e,maxlength:`120`,autofocus:``},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(P),{type:`button`,variant:`outline`,onClick:l[20]||=e=>Z.value=null},{default:g(()=>[...l[44]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(P),{type:`submit`,disabled:r(Q).processing||!r(Q).name.trim()},{default:g(()=>[...l[45]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{Pn as default}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdfThumbnail-CXd-r87q.js","assets/app-Cw5f57va.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-DHwJQed6.css"])))=>i.map(i=>d[i]); +import{D as e,E as t,Ht as n,On as r,St as i,Zn as a,_ as o,b as s,bt as c,ct as l,er as u,et as d,g as f,it as p,jt as ee,mt as m,o as h,qt as g,tr as _,v,vn as y,wt as b,xt as te,y as x}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as S}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as C,i as ne,n as w,o as T,r as re}from"./app-Cw5f57va.js";import{O as ie,k as E}from"./dist-DtGNiYlK.js";import{A as ae,K as D,N as oe,W as se,X as ce,a as le,c as ue,i as de,o as O,q as fe,s as pe}from"./AppIcon-BiVN_tuL.js";import{n as me,t as k}from"./arrow-up-Djq_2Npz.js";import{t as he}from"./AppLayout-9kc4awMB.js";import{o as ge,t as _e,x as ve}from"./http-DmyDwIce.js";import{t as ye}from"./download-UAAY3N2F.js";import{t as be}from"./ellipsis-vertical-B9wuHo-w.js";import{t as A}from"./FileIcon-CV058fj7.js";import{t as xe}from"./file-plus-corner-Z8xo1q-K.js";import{t as Se}from"./folder-tree-ZY-sbGXb.js";import{t as Ce}from"./list-DHYGZ2vt.js";import{t as we}from"./pencil-line-CmAbFj4f.js";import{t as j}from"./rotate-ccw-clock-DRYS-TO2.js";import{t as Te}from"./trash-DUqnVIgb.js";import{t as Ee}from"./upload-M7dd6qr8.js";import{t as De}from"./DialogDescription-9G5-5WG4.js";import{t as M}from"./FormField-BoFAO4pm.js";import{t as Oe}from"./EmptyState-Ceq4v8mE.js";import{t as ke}from"./PageHeader-r1Deze0_.js";import{a as N,o as Ae}from"./format-BsuBtvUs.js";import{t as P}from"./button-ZHC5mKey.js";import{t as je}from"./NativeSelect-BGasRaNs.js";import{t as F}from"./Input-FGSb2-yK.js";import{t as Me}from"./Skeleton-fJgmuUSB.js";import{t as Ne}from"./Textarea-DEFXqC2w.js";import{i as I,n as Pe,r as L,t as R}from"./dialog-DiN2bNwR.js";import{t as z}from"./DialogHeader-DuqiL3ry.js";import{t as Fe}from"./useStoredChoice-BAacDiWy.js";var Ie=E({name:`folder-plus`,size:24,node:[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),Le=E({name:`library-big`,size:24,node:[[`rect`,{width:`8`,height:`18`,x:`3`,y:`3`,rx:`1`,key:`oynpb5`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z`,key:`1qboyk`}]]}),Re=E({name:`trending-up`,size:24,node:[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]}),B=e=>e?e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`:`–`,V=(e,t,n)=>`${e.toLocaleString(`de-DE`)} ${e===1?t:n}`;function ze(e){let t=[];return e.folders&&t.push(V(e.folders,`Ordner`,`Ordner`)),e.downloads&&t.push(V(e.downloads,`Datei`,`Dateien`)),t.join(` · `)||`Noch leer`}var H={__name:`DownloadMenu`,props:{download:{type:Object,required:!0},canEdit:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`],setup(n){return(i,a)=>(m(),v(r(ue),null,{default:g(()=>[e(r(de),{"as-child":``},{default:g(()=>[e(r(P),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${n.download.title}`},{default:g(()=>[e(r(be))]),_:1},8,[`aria-label`])]),_:1}),e(r(pe),{align:`end`,class:`w-60`},{default:g(()=>[e(r(O),{onSelect:a[0]||=e=>i.$emit(`versions`,n.download)},{default:g(()=>[e(r(j)),a[4]||=t(` Fassungen anzeigen`,-1)]),_:1}),n.canEdit?(m(),s(h,{key:0},[e(r(O),{onSelect:a[1]||=e=>i.$emit(`new-version`,n.download)},{default:g(()=>[e(r(xe)),a[5]||=t(` Neue Fassung hochladen`,-1)]),_:1}),e(r(O),{onSelect:a[2]||=e=>i.$emit(`edit`,n.download)},{default:g(()=>[e(r(we)),a[6]||=t(` Bearbeiten oder verschieben`,-1)]),_:1}),e(r(le)),e(r(O),{class:`text-destructive`,onSelect:a[3]||=e=>i.$emit(`remove`,n.download)},{default:g(()=>[e(r(Te)),a[7]||=t(` Löschen`,-1)]),_:1})],64)):x(``,!0)]),_:1})]),_:1}))}},Be=[`aria-pressed`,`title`,`aria-label`],U={__name:`FavoriteButton`,props:{download:{type:Object,required:!0}},emits:[`toggle`],setup(t){return(n,i)=>(m(),s(`button`,{type:`button`,class:a([`grid size-8 place-items-center rounded-md hover:bg-accent`,t.download.favorite?`text-amber-500`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":t.download.favorite,title:t.download.favorite?`Aus „Meine Downloads“ entfernen`:`In „Meine Downloads“ merken`,"aria-label":t.download.favorite?`${t.download.title} nicht mehr merken`:`${t.download.title} merken`,onClick:i[0]||=e=>n.$emit(`toggle`,t.download)},[e(r(ae),{class:a([`size-4`,{"fill-current":t.download.favorite}])},null,8,[`class`])],10,Be))}},W=[`src`],Ve={key:1,class:`grid size-full place-items-center`},He={__name:`DownloadThumb`,props:{download:{type:Object,required:!0}},setup(t){let n=t,r=y(null),i=y(null),a=y(!1),o;async function c(){if(n.download.preview_kind===`image`){i.value=n.download.preview_url;return}try{let{pdfThumbnail:e}=await T(async()=>{let{pdfThumbnail:e}=await import(`./pdfThumbnail-CXd-r87q.js`);return{pdfThumbnail:e}},__vite__mapDeps([0,1,2,3,4]));i.value=await e(n.download.preview_url)}catch{a.value=!0}}return l(()=>{n.download.preview_url&&typeof IntersectionObserver<`u`&&(o=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(o.disconnect(),c())},{rootMargin:`200px`}),o.observe(r.value))}),p(()=>o?.disconnect()),(n,o)=>(m(),s(`div`,{ref_key:`root`,ref:r,class:`relative h-32 overflow-hidden rounded-t-lg border-b bg-muted/40`},[i.value&&!a.value?(m(),s(`img`,{key:0,src:i.value,alt:``,class:`size-full object-cover object-top`,loading:`lazy`,onError:o[0]||=e=>a.value=!0},null,40,W)):(m(),s(`div`,Ve,[e(A,{extension:t.download.extension,size:`lg`},null,8,[`extension`])])),te(n.$slots,`default`)],512))}},Ue={class:`grid gap-6`},G={key:0,class:`grid grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))] gap-3`},K={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},We={class:`min-w-0`},q={class:`block truncate text-xs text-muted-foreground`},J={key:1,class:`grid grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))] gap-3`},Ge={key:0,class:`absolute bottom-2 left-2 rounded bg-card px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground ring-1 ring-border`},Ke={key:1,class:`absolute right-2 bottom-2 rounded bg-card px-1.5 py-0.5 text-[10px] font-bold tracking-wide text-muted-foreground uppercase ring-1 ring-border`},qe={class:`flex min-h-0 flex-1 flex-col p-3`},Y=[`href`,`title`],X={key:1,class:`line-clamp-2 text-sm leading-snug font-medium`},Je={class:`mt-auto pt-2 text-xs text-muted-foreground`},Z={key:0,class:`absolute top-2 left-2 z-10 text-amber-500`},Q={class:`absolute top-1.5 right-1.5 z-10 flex gap-0.5 rounded-md bg-card/90 opacity-0 shadow-xs ring-1 ring-border transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 max-md:opacity-100`},$=[`href`,`aria-label`],Ye={__name:`DownloadGrid`,props:{folders:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`,`favorite`],setup(n){return(i,a)=>(m(),s(`div`,Ue,[n.folders.length?(m(),s(`ul`,G,[(m(!0),s(h,null,c(n.folders,n=>(m(),s(`li`,{key:n.id,class:`group relative flex items-center gap-3 rounded-lg border bg-card p-3 hover:border-brand-300 hover:shadow-xs`},[o(`span`,K,[e(r(D),{class:`size-5`,"stroke-width":1.75})]),o(`span`,We,[e(r(w),{href:`/downloads/ordner/${n.id}`,class:`block truncate text-sm font-medium after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`]),o(`span`,q,_(r(ze)(n)),1)])]))),128))])):x(``,!0),n.downloads.length?(m(),s(`ul`,J,[(m(!0),s(h,null,c(n.downloads,t=>(m(),s(`li`,{key:t.id,class:`group relative flex flex-col rounded-lg border bg-card hover:border-brand-300 hover:shadow-xs`},[e(He,{download:t},{default:g(()=>[t.version>1?(m(),s(`span`,Ge,`Fassung `+_(t.version),1)):x(``,!0),t.preview_url?(m(),s(`span`,Ke,_(t.extension),1)):x(``,!0)]),_:2},1032,[`download`]),o(`div`,qe,[t.download_url?(m(),s(`a`,{key:0,href:t.download_url,class:`line-clamp-2 text-sm leading-snug font-medium after:absolute after:inset-0 hover:underline`,title:t.name},_(t.title),9,Y)):(m(),s(`span`,X,_(t.title),1)),o(`p`,Je,_(r(Ae)(t.updated_at))+` · `+_(r(B)(t.size)),1)]),t.favorite?(m(),s(`div`,Z,[e(r(ae),{class:`size-4 fill-current`})])):x(``,!0),o(`div`,Q,[e(U,{download:t,onToggle:a[0]||=e=>i.$emit(`favorite`,e)},null,8,[`download`]),t.download_url?(m(),v(r(P),{key:0,variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${t.title} herunterladen`},{default:g(()=>[o(`a`,{href:t.download_url,"aria-label":`${t.title} herunterladen`},[e(r(ye))],8,$)]),_:2},1032,[`title`])):x(``,!0),e(H,{download:t,"can-edit":n.canEdit,onVersions:a[1]||=e=>i.$emit(`versions`,e),onNewVersion:a[2]||=e=>i.$emit(`new-version`,e),onEdit:a[3]||=e=>i.$emit(`edit`,e),onRemove:a[4]||=e=>i.$emit(`remove`,e)},null,8,[`download`,`can-edit`])])]))),128))])):x(``,!0)]))}},Xe={class:`rounded-lg border bg-card`},Ze={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Qe={key:0,class:`p-2`},$e=[`href`],et={class:`min-w-0 flex-1`},tt={class:`block truncate text-[13px] font-medium`},nt={class:`block truncate text-xs text-muted-foreground`},rt={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},it={__name:`DownloadMiniList`,props:{title:{type:String,required:!0},icon:{type:[Object,Function],required:!0},downloads:{type:Array,required:!0},empty:{type:String,default:``},showDownloads:{type:Boolean,default:!1}},setup(n){return(r,i)=>(m(),s(`section`,Xe,[o(`h2`,Ze,[(m(),v(b(n.icon),{class:`size-4 text-brand-text`})),t(` `+_(n.title),1)]),n.downloads.length?(m(),s(`ul`,Qe,[(m(!0),s(h,null,c(n.downloads,r=>(m(),s(`li`,{key:r.id},[o(`a`,{href:r.download_url,class:`flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(A,{extension:r.extension,size:`sm`},null,8,[`extension`]),o(`span`,et,[o(`span`,tt,_(r.title),1),o(`span`,nt,[t(_(r.folder_name),1),n.showDownloads?(m(),s(h,{key:0},[t(` · `+_(r.download_count.toLocaleString(`de-DE`))+`× geladen`,1)],64)):x(``,!0)])])],8,$e)]))),128))])):(m(),s(`p`,rt,_(n.empty),1))]))}},at={class:`overflow-hidden rounded-lg border bg-card`},ot={key:1},st={key:2},ct={key:4},lt={key:1,class:`text-right`},ut={class:`divide-y`},dt={class:`flex min-w-0 items-center gap-3`},ft={class:`grid size-8 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},pt={class:`min-w-0`},mt={class:`truncate text-xs text-muted-foreground`},ht={key:0,class:`hidden md:block`},gt={key:1,class:`hidden md:block`},_t={class:`flex min-w-0 items-center gap-3`},vt={class:`min-w-0`},yt={class:`flex min-w-0 items-baseline gap-2`},bt=[`href`,`title`],xt={key:1,class:`truncate text-sm font-medium`},St={class:`hidden shrink-0 text-[11px] font-medium text-muted-foreground uppercase sm:inline`},Ct={key:0,class:`truncate text-xs text-muted-foreground`},wt={class:`truncate text-xs text-muted-foreground md:hidden`},Tt={class:`hidden min-w-0 text-[13px] md:block`},Et={class:`truncate leading-tight`},Dt={class:`truncate text-xs leading-tight text-muted-foreground`},Ot={key:1,class:`hidden text-right text-[13px] text-muted-foreground tabular-nums md:block`},kt={class:`absolute top-1/2 right-2 flex -translate-y-1/2 items-center justify-end gap-0.5 md:static md:translate-y-0`},At=[`href`,`aria-label`],jt={__name:`DownloadTable`,props:{folders:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!1},showFolder:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},compact:{type:Boolean,default:!1}},emits:[`versions`,`new-version`,`edit`,`remove`,`favorite`],setup(n){let i=n,l=y({key:`title`,dir:1});function u(e){l.value=l.value.key===e?{key:e,dir:-l.value.dir}:{key:e,dir:e===`title`?1:-1}}let d=f(()=>{if(!i.sortable)return i.downloads;let{key:e,dir:t}=l.value,n=t=>e===`title`?t.title.toLocaleLowerCase(`de`):e===`size`?t.size:t.updated_at??``;return[...i.downloads].sort((e,r)=>n(e)>n(r)?t:n(e)i.compact?i.showFolder?`md:grid-cols-[minmax(0,1fr)_8rem_9.5rem_6.5rem]`:`md:grid-cols-[minmax(0,1fr)_9.5rem_6.5rem]`:i.showFolder?`md:grid-cols-[minmax(0,1fr)_12rem_11rem_5.5rem_6.5rem]`:`md:grid-cols-[minmax(0,1fr)_11rem_5.5rem_6.5rem]`);return(i,f)=>(m(),s(`div`,at,[o(`div`,{class:a([`hidden border-b bg-muted/40 px-4 py-2 text-xs font-medium text-muted-foreground md:grid md:items-center md:gap-4`,p.value]),role:`row`},[n.sortable?(m(),s(`button`,{key:0,type:`button`,class:`inline-flex items-center gap-1 text-left hover:text-foreground`,onClick:f[0]||=e=>u(`title`)},[f[8]||=t(` Name `,-1),l.value.key===`title`?(m(),v(b(l.value.dir>0?r(k):r(me)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,ot,`Name`)),n.showFolder?(m(),s(`span`,st,`Ordner`)):x(``,!0),n.sortable?(m(),s(`button`,{key:3,type:`button`,class:`inline-flex items-center gap-1 text-left hover:text-foreground`,onClick:f[1]||=e=>u(`updated_at`)},[f[9]||=t(` Geändert `,-1),l.value.key===`updated_at`?(m(),v(b(l.value.dir>0?r(k):r(me)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,ct,`Geändert`)),n.compact?x(``,!0):(m(),s(h,{key:5},[n.sortable?(m(),s(`button`,{key:0,type:`button`,class:`inline-flex items-center justify-end gap-1 hover:text-foreground`,onClick:f[2]||=e=>u(`size`)},[f[10]||=t(` Größe `,-1),l.value.key===`size`?(m(),v(b(l.value.dir>0?r(k):r(me)),{key:0,class:`size-3.5`})):x(``,!0)])):(m(),s(`span`,lt,`Größe`))],64)),f[11]||=o(`span`,{class:`sr-only`},`Aktionen`,-1)],2),o(`ul`,ut,[(m(!0),s(h,null,c(n.folders,i=>(m(),s(`li`,{key:`f${i.id}`,class:a([`group relative grid items-center gap-x-4 px-4 py-2 hover:bg-accent/60`,p.value])},[o(`div`,dt,[o(`span`,ft,[e(r(D),{class:`size-4`,"stroke-width":1.75})]),o(`div`,pt,[e(r(w),{href:`/downloads/ordner/${i.id}`,class:`block truncate text-sm font-medium after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(i.name),1)]),_:2},1032,[`href`]),o(`p`,mt,_(r(ze)(i)),1)])]),n.showFolder?(m(),s(`span`,ht)):x(``,!0),f[12]||=o(`span`,{class:`hidden text-[13px] text-muted-foreground md:block`},`–`,-1),n.compact?x(``,!0):(m(),s(`span`,gt)),f[13]||=o(`span`,{class:`hidden md:block`},null,-1)],2))),128)),(m(!0),s(h,null,c(d.value,c=>(m(),s(`li`,{key:c.id,class:a([`group relative grid items-center gap-x-4 py-2 pr-32 pl-4 hover:bg-accent/60 md:pr-4`,p.value])},[o(`div`,_t,[e(A,{extension:c.extension,size:`sm`},null,8,[`extension`]),o(`div`,vt,[o(`div`,yt,[c.download_url?(m(),s(`a`,{key:0,href:c.download_url,class:`truncate text-sm font-medium hover:underline`,title:c.name},_(c.title),9,bt)):(m(),s(`span`,xt,_(c.title),1)),o(`span`,St,_(c.extension),1)]),c.description?(m(),s(`p`,Ct,_(c.description),1)):x(``,!0),o(`p`,wt,[t(_(r(N)(c.updated_at))+` · `+_(r(B)(c.size)),1),n.showFolder&&c.folder_name?(m(),s(h,{key:0},[t(` · `+_(c.folder_name),1)],64)):x(``,!0)])])]),n.showFolder?(m(),v(r(w),{key:0,href:`/downloads/ordner/${c.folder_id}`,class:`hidden truncate text-[13px] text-muted-foreground hover:text-foreground hover:underline md:block`},{default:g(()=>[t(_(c.folder_name),1)]),_:2},1032,[`href`])):x(``,!0),o(`div`,Tt,[o(`div`,Et,_(r(N)(c.updated_at)),1),o(`div`,Dt,[c.updated_by?(m(),s(h,{key:0},[t(_(c.updated_by),1)],64)):x(``,!0),c.version>1?(m(),s(h,{key:1},[t(_(c.updated_by?` · `:``)+`Fassung `+_(c.version),1)],64)):x(``,!0)])]),n.compact?x(``,!0):(m(),s(`span`,Ot,_(r(B)(c.size)),1)),o(`div`,kt,[e(U,{download:c,onToggle:f[3]||=e=>i.$emit(`favorite`,e)},null,8,[`download`]),c.download_url?(m(),v(r(P),{key:0,variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"as-child":``,title:`${c.title} herunterladen`},{default:g(()=>[o(`a`,{href:c.download_url,"aria-label":`${c.title} herunterladen`},[e(r(ye))],8,At)]),_:2},1032,[`title`])):x(``,!0),e(H,{download:c,"can-edit":n.canEdit,onVersions:f[4]||=e=>i.$emit(`versions`,e),onNewVersion:f[5]||=e=>i.$emit(`new-version`,e),onEdit:f[6]||=e=>i.$emit(`edit`,e),onRemove:f[7]||=e=>i.$emit(`remove`,e)},null,8,[`download`,`can-edit`])])],2))),128))])]))}},Mt={class:`truncate`},Nt={__name:`FolderTreeNav`,props:{items:{type:Array,required:!0},currentId:{type:Number,default:null},openIds:{type:Array,default:()=>[]},depth:{type:Number,default:0}},setup(t){return(n,l)=>{let u=i(`FolderTreeNav`,!0);return m(),s(`ul`,{class:a([`grid gap-0.5`,t.depth?`ml-3 border-l pl-2`:``])},[(m(!0),s(h,null,c(t.items,n=>(m(),s(`li`,{key:n.id},[e(r(w),{href:`/downloads/ordner/${n.id}`,class:a([`flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm`,n.id===t.currentId?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`]),"preserve-scroll":``},{default:g(()=>[n.id===t.currentId||t.openIds.includes(n.id)?(m(),v(r(fe),{key:0,class:`size-4 shrink-0`})):(m(),v(r(D),{key:1,class:`size-4 shrink-0`})),o(`span`,Mt,_(n.name),1)]),_:2},1032,[`href`,`class`]),n.children.length&&(n.id===t.currentId||t.openIds.includes(n.id))?(m(),v(u,{key:0,items:n.children,"current-id":t.currentId,"open-ids":t.openIds,depth:t.depth+1},null,8,[`items`,`current-id`,`open-ids`,`depth`])):x(``,!0)]))),128))],2)}}},Pt={class:`grid gap-6 lg:grid-cols-[240px_minmax(0,1fr)]`},Ft={class:`hidden lg:block`},It={class:`sticky top-20 rounded-lg border bg-card`,"aria-label":`Ordner`},Lt={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Rt={class:`max-h-[calc(100vh-12rem)] overflow-y-auto p-2`},zt={key:0,class:`px-2.5 py-2 text-[13px] text-muted-foreground`},Bt={key:0,class:`mb-7 grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-4`},Vt={class:`flex items-start gap-3 p-4`},Ht={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand text-white`},Ut={class:`min-w-0`},Wt={key:0,class:`mt-0.5 line-clamp-2 text-[13px] leading-snug text-muted-foreground`},Gt={key:1,class:`relative z-10 mt-1 truncate text-xs text-muted-foreground`},Kt={key:0},qt={class:`mt-auto border-t bg-muted/30 px-4 py-2 text-xs font-medium text-brand-text`},Jt={key:1,class:`mb-5 rounded-lg border bg-card`},Yt={class:`grid items-start gap-5 xl:grid-cols-[minmax(0,1fr)_18rem]`},Xt={key:0,class:`min-w-0`},Zt={class:`mb-3 flex items-center gap-2 text-sm font-semibold`},Qt={class:`grid gap-5 xl:pt-8`},$t={class:`mb-4 flex flex-wrap items-center justify-between gap-3`},en={class:`text-[13px] text-muted-foreground`},tn={class:`flex items-center gap-2`},nn={class:`inline-flex rounded-md border bg-card p-0.5`,role:`group`,"aria-label":`Ansicht`},rn=[`aria-pressed`,`onClick`],an={class:`hidden sm:inline`},on=[`aria-valuenow`],sn={class:`min-w-0`},cn={key:1,class:`rounded-lg border bg-card`},ln={class:`mt-1 text-[13px] text-muted-foreground`},un={key:3,class:`rounded-lg border bg-card`},dn={key:0,class:`hidden overflow-hidden rounded-lg border bg-card text-[13px] xl:block`},fn={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},pn={class:`grid gap-3 p-4`},mn={class:`grid grid-cols-2 gap-2`},hn={class:`rounded-md bg-muted/50 px-3 py-2`},gn={class:`text-lg font-semibold tabular-nums`},_n={class:`rounded-md bg-muted/50 px-3 py-2`},vn={class:`text-lg font-semibold tabular-nums`},yn={key:0},bn={key:0,class:`mt-1 flex flex-wrap gap-1`},xn={key:1},Sn={key:1,class:`rounded-md border border-dashed px-3 py-2 text-xs text-muted-foreground`},Cn={class:`mt-2 text-sm font-semibold text-brand-soft-foreground`},wn={key:0,class:`-mx-2 divide-y`,"aria-busy":`true`},Tn={class:`grid flex-1 gap-1.5`},En={key:1,class:`-mx-2 divide-y`},Dn={class:`grid size-8 place-items-center rounded-md bg-muted text-xs font-semibold`},On={class:`min-w-0 flex-1`},kn={class:`truncate text-sm`},An={key:0,class:`ml-1 rounded bg-brand-soft px-1.5 py-0.5 text-[11px] text-brand-soft-foreground`},jn={class:`text-xs text-muted-foreground`},Mn={key:0,class:`text-xs`},Nn=[`href`],Pn={__name:`Index`,props:{tree:{type:Array,required:!0},folder:{type:Object,default:null},breadcrumbs:{type:Array,default:()=>[]},children:{type:Array,default:()=>[]},downloads:{type:Array,default:()=>[]},recent:{type:Array,default:()=>[]},favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]},search:{type:String,default:``},canCreateRoot:{type:Boolean,default:!1},folderOptions:{type:Array,default:()=>[]},maxUploadMb:{type:Number,default:20}},setup(i){let l=i,p=ne();n(()=>p.props.flash.status,e=>e&&ge.success(e),{immediate:!0});let te=f(()=>l.breadcrumbs.map(e=>e.id)),T=f(()=>!!l.folder?.can_edit),E=f(()=>l.search?`Suche: ${l.search}`:l.folder?.name??`Downloads`),fe=f(()=>l.downloads.map(e=>e.updated_at).filter(Boolean).sort().at(-1)??null),me=f(()=>k.value?[]:[{label:`Downloads`,href:`/downloads`},...l.breadcrumbs.map(e=>({label:e.name,href:`/downloads/ordner/${e.id}`}))]),k=f(()=>!l.folder&&!l.search),A=Fe(`downloads.view`,`list`,[`list`,`grid`]),xe=f(()=>{let e=[];return l.children.length&&!l.search&&e.push(V(l.children.length,`Ordner`,`Ordner`)),e.push(V(l.downloads.length,l.search?`Treffer`:`Datei`,l.search?`Treffer`:`Dateien`)),e.join(` · `)}),j={versions:e=>Je(e),"new-version":e=>{G.value=e,K.reset()},edit:e=>Ge(e),remove:e=>qe(e),favorite:e=>Ae(e)};function Ae(e){let t=`/downloads/${e.id}/favorit`,n={preserveScroll:!0,preserveState:!0};e.favorite?C.delete(t,n):C.post(t,{},n)}let H=y(l.search);function Be(){C.get(l.folder?`/downloads/ordner/${l.folder.id}`:`/downloads`,H.value.trim()?{q:H.value.trim()}:{},{preserveState:!0})}let U=re({files:[]}),W=y(!1),Ve=y(null);function He(e){if(!T.value||!e.length)return;let t=e.find(e=>e.size>l.maxUploadMb*1024*1024);if(t){ge.error(`„${t.name}“ ist größer als ${l.maxUploadMb} MB.`);return}U.files=e,U.post(`/downloads/ordner/${l.folder.id}/dateien`,{forceFormData:!0,preserveScroll:!0,onError:e=>ge.error(Object.values(e)[0]),onFinish:()=>U.reset()})}function Ue(e){W.value=!1,He([...e.dataTransfer?.files??[]])}let G=y(null),K=re({file:null,note:``});function We(){K.post(`/downloads/${G.value.id}/versionen`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{G.value=null,K.reset()}})}let q=y(null),J=re({title:``,description:``,folder_id:null});function Ge(e){q.value=e,J.defaults({title:e.title,description:e.description??``,folder_id:e.folder_id}),J.reset(),J.clearErrors()}function Ke(){J.put(`/downloads/${q.value.id}`,{preserveScroll:!0,onSuccess:()=>q.value=null})}function qe(e){window.confirm(`„${e.title}“ mit allen Fassungen löschen?`)&&C.delete(`/downloads/${e.id}`,{preserveScroll:!0})}let Y=y(null),X=y([]);async function Je(e){Y.value=e,X.value=[],X.value=(await _e.get(`/downloads/${e.id}/versionen`)).versions}let Z=y(null),Q=re({name:``,parent_id:null});function $(e){Z.value=e,Q.clearErrors(),Q.name=e===`rename`?l.folder.name:``,Q.parent_id=e===`new`?l.folder?.id??null:null}function Xe(){Z.value===`rename`?Q.transform(e=>({name:e.name,description:l.folder.description})).put(`/downloads/ordner/${l.folder.id}`,{onSuccess:()=>Z.value=null}):Q.transform(e=>e).post(`/downloads/ordner`,{onSuccess:()=>Z.value=null})}function Ze(){window.confirm(`Ordner „${l.folder.name}“ löschen?`)&&C.delete(`/downloads/ordner/${l.folder.id}`,{onError:e=>ge.error(Object.values(e)[0])})}return(n,l)=>(m(),v(he,{title:E.value},{default:g(()=>[o(`div`,Pt,[o(`aside`,Ft,[o(`nav`,It,[o(`div`,Lt,[e(r(Se),{class:`size-4 text-brand-text`}),l[22]||=t(` Ablage`,-1)]),o(`div`,Rt,[e(r(w),{href:`/downloads`,class:a([`mb-0.5 flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm`,k.value?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-foreground/80 hover:bg-accent hover:text-foreground`])},{default:g(()=>[e(r(Le),{class:`size-4 shrink-0`}),l[23]||=t(` Übersicht `,-1)]),_:1},8,[`class`]),e(Nt,{items:i.tree,"current-id":i.folder?.id??null,"open-ids":te.value},null,8,[`items`,`current-id`,`open-ids`]),i.tree.length?x(``,!0):(m(),s(`p`,zt,`Noch keine Ordner.`))])])]),o(`section`,{class:`relative min-w-0`,onDragover:l[8]||=S(e=>T.value&&(W.value=!0),[`prevent`]),onDrop:S(Ue,[`prevent`])},[e(ke,{title:E.value,breadcrumbs:me.value,description:k.value?`Vorlagen, Anträge und Infomaterial – immer in der aktuellen Fassung.`:i.search?``:i.folder?.description??``},{actions:g(()=>[k.value&&i.canCreateRoot?(m(),v(r(P),{key:0,variant:`outline`,class:`h-10`,onClick:l[0]||=e=>$(`new`)},{default:g(()=>[e(r(Ie)),l[24]||=t(` Ordner anlegen`,-1)]),_:1})):x(``,!0),o(`form`,{class:`relative w-full sm:w-72`,role:`search`,onSubmit:S(Be,[`prevent`])},[e(r(oe),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),e(r(F),{modelValue:H.value,"onUpdate:modelValue":l[1]||=e=>H.value=e,type:`search`,class:`h-10 bg-card pl-9`,placeholder:`Downloads durchsuchen …`,"aria-label":`Downloads durchsuchen`},null,8,[`modelValue`])],32)]),_:1},8,[`title`,`breadcrumbs`,`description`]),k.value?(m(),s(h,{key:0},[i.children.length?(m(),s(`ul`,Bt,[(m(!0),s(h,null,c(i.children,n=>(m(),s(`li`,{key:n.id,class:`group relative flex flex-col rounded-lg border bg-card hover:border-brand-300`},[o(`div`,Vt,[o(`span`,Ht,[e(r(D),{class:`size-5`,"stroke-width":1.75})]),o(`div`,Ut,[e(r(w),{href:`/downloads/ordner/${n.id}`,class:`text-[15px] leading-tight font-semibold after:absolute after:inset-0 group-hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`]),n.description?(m(),s(`p`,Wt,_(n.description),1)):x(``,!0),n.subfolders.length?(m(),s(`p`,Gt,[(m(!0),s(h,null,c(n.subfolders,(n,i)=>(m(),s(h,{key:n.id},[i?(m(),s(`span`,Kt,` · `)):x(``,!0),e(r(w),{href:`/downloads/ordner/${n.id}`,class:`hover:text-foreground hover:underline`},{default:g(()=>[t(_(n.name),1)]),_:2},1032,[`href`])],64))),128))])):x(``,!0)])]),o(`div`,qt,_(r(ze)(n)),1)]))),128))])):(m(),s(`div`,Jt,[e(Oe,{icon:r(D),title:`Noch keine Downloads`,text:`Sobald Ordner angelegt sind, erscheinen sie hier.`},null,8,[`icon`])])),o(`div`,Yt,[i.recent.length?(m(),s(`div`,Xt,[o(`h2`,Zt,[e(r(ce),{class:`size-4 text-brand-text`}),l[25]||=t(` Zuletzt aktualisiert`,-1)]),e(jt,d({downloads:i.recent,"show-folder":``,compact:``,sortable:!1},ee(j)),null,16,[`downloads`])])):x(``,!0),o(`aside`,Qt,[e(it,{title:`Meine Downloads`,icon:r(ae),downloads:i.favorites,empty:`Mit dem Stern merken Sie sich Dateien – sie erscheinen hier und auf der Startseite.`},null,8,[`icon`,`downloads`]),i.popular.length?(m(),v(it,{key:0,title:`Häufig genutzt`,icon:r(Re),downloads:i.popular,"show-downloads":``},null,8,[`icon`,`downloads`])):x(``,!0)])])],64)):(m(),s(h,{key:1},[o(`div`,$t,[o(`p`,en,_(xe.value),1),o(`div`,tn,[o(`div`,nn,[(m(!0),s(h,null,c([{key:`list`,icon:r(Ce),label:`Liste`},{key:`grid`,icon:r(se),label:`Kacheln`}],e=>(m(),s(`button`,{key:e.key,type:`button`,class:a([`inline-flex h-8 items-center gap-1.5 rounded px-2.5 text-[13px]`,r(A)===e.key?`bg-brand-soft font-medium text-brand-soft-foreground`:`text-muted-foreground hover:text-foreground`]),"aria-pressed":r(A)===e.key,onClick:t=>A.value=e.key},[(m(),v(b(e.icon),{class:`size-4`})),l[26]||=t(),o(`span`,an,_(e.label),1)],10,rn))),128))]),T.value?(m(),v(r(P),{key:0,disabled:r(U).processing,onClick:l[2]||=e=>Ve.value?.click()},{default:g(()=>[r(U).processing?(m(),v(r(ie),{key:0,class:`animate-spin`})):(m(),v(r(Ee),{key:1})),l[27]||=t(` Hochladen `,-1)]),_:1},8,[`disabled`])):x(``,!0),o(`input`,{ref_key:`fileInput`,ref:Ve,type:`file`,multiple:``,class:`hidden`,onChange:l[3]||=e=>{He([...e.target.files]),e.target.value=``}},null,544),T.value?(m(),v(r(ue),{key:1},{default:g(()=>[e(r(de),{"as-child":``},{default:g(()=>[e(r(P),{variant:`outline`,size:`icon`,"aria-label":`Ordner-Aktionen`},{default:g(()=>[e(r(be))]),_:1})]),_:1}),e(r(pe),{align:`end`},{default:g(()=>[e(r(O),{onSelect:l[4]||=e=>$(`new`)},{default:g(()=>[e(r(Ie)),l[28]||=t(` Unterordner anlegen`,-1)]),_:1}),e(r(O),{onSelect:l[5]||=e=>$(`rename`)},{default:g(()=>[e(r(we)),l[29]||=t(` Ordner umbenennen`,-1)]),_:1}),i.folder.can_delete?(m(),v(r(le),{key:0})):x(``,!0),i.folder.can_delete?(m(),v(r(O),{key:1,class:`text-destructive`,onSelect:Ze},{default:g(()=>[e(r(Te)),l[30]||=t(` Ordner löschen`,-1)]),_:1})):x(``,!0)]),_:1})]),_:1})):x(``,!0)])]),r(U).processing&&r(U).progress?(m(),s(`div`,{key:0,class:`mb-3 h-1.5 overflow-hidden rounded-full bg-muted`,role:`progressbar`,"aria-valuenow":r(U).progress.percentage},[o(`div`,{class:`h-full bg-brand transition-all`,style:u({width:`${r(U).progress.percentage}%`})},null,4)],8,on)):x(``,!0),o(`div`,{class:a([`grid items-start gap-5`,{"xl:grid-cols-[minmax(0,1fr)_16rem]":i.folder&&!i.search}])},[o(`div`,sn,[i.children.length&&!i.search||i.downloads.length?(m(),s(h,{key:0},[r(A)===`list`?(m(),v(jt,d({key:0,folders:i.search?[]:i.children,downloads:i.downloads,"can-edit":T.value,"show-folder":!!i.search},ee(j)),null,16,[`folders`,`downloads`,`can-edit`,`show-folder`])):(m(),v(Ye,d({key:1,folders:i.search?[]:i.children,downloads:i.downloads,"can-edit":T.value},ee(j)),null,16,[`folders`,`downloads`,`can-edit`]))],64)):i.search?(m(),s(`div`,cn,[e(Oe,{icon:r(oe),title:`Keine Treffer`,text:`Nichts gefunden zu „${i.search}“. Gesucht wird in Titeln, Beschreibungen und Dateinamen.`},null,8,[`icon`,`text`])])):T.value?(m(),s(`button`,{key:2,type:`button`,class:`grid w-full place-items-center rounded-lg border-2 border-dashed bg-card px-6 py-14 text-center hover:border-brand-300`,onClick:l[6]||=e=>Ve.value?.click()},[e(r(Ee),{class:`size-8 text-muted-foreground`,"stroke-width":1.5}),l[31]||=o(`span`,{class:`mt-3 text-sm font-medium`},`Dieser Ordner ist leer`,-1),o(`span`,ln,`Dateien hierher ziehen oder klicken, um sie auszuwählen – bis `+_(i.maxUploadMb)+` MB je Datei.`,1)])):(m(),s(`div`,un,[e(Oe,{icon:r(D),title:`Dieser Ordner ist leer`},null,8,[`icon`])]))]),i.folder&&!i.search?(m(),s(`aside`,dn,[o(`h2`,fn,[e(r(ve),{class:`size-4 text-brand-text`}),l[32]||=t(` Über diesen Ordner`,-1)]),o(`dl`,pn,[o(`div`,mn,[o(`div`,hn,[l[33]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Dateien`,-1),o(`dd`,gn,_(i.downloads.length),1)]),o(`div`,_n,[l[34]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Ordner`,-1),o(`dd`,vn,_(i.children.length),1)])]),fe.value?(m(),s(`div`,yn,[l[35]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Zuletzt geändert`,-1),o(`dd`,null,_(r(N)(fe.value)),1)])):x(``,!0),o(`div`,null,[l[36]||=o(`dt`,{class:`text-xs text-muted-foreground`},`Gepflegt von`,-1),i.folder.editors.length?(m(),s(`dd`,bn,[(m(!0),s(h,null,c(i.folder.editors,e=>(m(),s(`span`,{key:e,class:`rounded bg-brand-soft px-1.5 py-0.5 text-xs text-brand-soft-foreground`},_(e),1))),128))])):(m(),s(`dd`,xn,`Administration`))]),T.value?(m(),s(`div`,Sn,` Dateien einfach in die Liste ziehen. Bis `+_(i.maxUploadMb)+` MB je Datei, ältere Fassungen bleiben erhalten. `,1)):x(``,!0)])])):x(``,!0)],2)],64)),W.value&&T.value?(m(),s(`div`,{key:2,class:`absolute inset-0 z-20 grid place-items-center rounded-lg border-2 border-dashed border-brand-400 bg-brand-soft/90 text-center backdrop-blur-[1px]`,onDragleave:l[7]||=S(e=>W.value=!1,[`self`])},[o(`div`,null,[e(r(Ee),{class:`mx-auto size-8 text-brand-text`}),o(`p`,Cn,`Loslassen, um in „`+_(i.folder.name)+`“ hochzuladen`,1)])],32)):x(``,!0)],32)]),e(r(I),{open:!!G.value,"onUpdate:open":l[12]||=e=>!e&&(G.value=null)},{default:g(()=>[e(r(L),{class:`sm:max-w-md`},{default:g(()=>[e(r(z),null,{default:g(()=>[e(r(R),null,{default:g(()=>[...l[37]||=[t(`Neue Fassung`,-1)]]),_:1}),e(r(De),null,{default:g(()=>[t(`„`+_(G.value?.title)+`“ – die bisherige Fassung bleibt unter „Fassungen“ abrufbar.`,1)]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(We,[`prevent`])},[e(M,{id:`version-file`,label:`Datei`,error:r(K).errors.file},{default:g(()=>[o(`input`,{id:`version-file`,type:`file`,class:`text-sm`,onChange:l[9]||=e=>r(K).file=e.target.files[0]},null,32)]),_:1},8,[`error`]),e(M,{id:`version-note`,label:`Was hat sich geändert? (optional)`,error:r(K).errors.note},{default:g(()=>[e(r(F),{id:`version-note`,modelValue:r(K).note,"onUpdate:modelValue":l[10]||=e=>r(K).note=e,maxlength:`500`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(P),{type:`button`,variant:`outline`,onClick:l[11]||=e=>G.value=null},{default:g(()=>[...l[38]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(P),{type:`submit`,disabled:!r(K).file||r(K).processing},{default:g(()=>[...l[39]||=[t(`Hochladen`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]),e(r(I),{open:!!q.value,"onUpdate:open":l[17]||=e=>!e&&(q.value=null)},{default:g(()=>[e(r(L),{class:`sm:max-w-lg`},{default:g(()=>[e(r(z),null,{default:g(()=>[e(r(R),null,{default:g(()=>[...l[40]||=[t(`Datei bearbeiten`,-1)]]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(Ke,[`prevent`])},[e(M,{id:`doc-title`,label:`Titel`,error:r(J).errors.title},{default:g(()=>[e(r(F),{id:`doc-title`,modelValue:r(J).title,"onUpdate:modelValue":l[13]||=e=>r(J).title=e,maxlength:`250`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(M,{id:`doc-description`,label:`Beschreibung`,error:r(J).errors.description},{default:g(()=>[e(r(Ne),{id:`doc-description`,modelValue:r(J).description,"onUpdate:modelValue":l[14]||=e=>r(J).description=e,rows:`3`,maxlength:`2000`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(M,{id:`doc-folder`,label:`Ordner`,error:r(J).errors.folder_id},{default:g(()=>[e(je,{id:`doc-folder`,modelValue:r(J).folder_id,"onUpdate:modelValue":l[15]||=e=>r(J).folder_id=e,options:i.folderOptions},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(P),{type:`button`,variant:`outline`,onClick:l[16]||=e=>q.value=null},{default:g(()=>[...l[41]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(P),{type:`submit`,disabled:r(J).processing},{default:g(()=>[...l[42]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]),e(r(I),{open:!!Y.value,"onUpdate:open":l[18]||=e=>!e&&(Y.value=null)},{default:g(()=>[e(r(L),{class:`sm:max-w-lg`},{default:g(()=>[e(r(z),null,{default:g(()=>[e(r(R),null,{default:g(()=>[...l[43]||=[t(`Fassungen`,-1)]]),_:1}),e(r(De),null,{default:g(()=>[t(_(Y.value?.title),1)]),_:1})]),_:1}),X.value.length?(m(),s(`ul`,En,[(m(!0),s(h,null,c(X.value,n=>(m(),s(`li`,{key:n.version,class:`flex items-center gap-3 px-2 py-2.5`},[o(`span`,Dn,_(n.version),1),o(`div`,On,[o(`p`,kn,[t(_(n.name)+` `,1),n.current?(m(),s(`span`,An,`aktuell`)):x(``,!0)]),o(`p`,jn,[t(_(r(N)(n.created_at)),1),n.uploader?(m(),s(h,{key:0},[t(` · `+_(n.uploader),1)],64)):x(``,!0),t(` · `+_(r(B)(n.size)),1)]),n.note?(m(),s(`p`,Mn,_(n.note),1)):x(``,!0)]),e(r(P),{variant:`ghost`,size:`icon`,"as-child":``,title:`Fassung ${n.version} herunterladen`},{default:g(()=>[o(`a`,{href:n.download_url},[e(r(ye))],8,Nn)]),_:2},1032,[`title`])]))),128))])):(m(),s(`ul`,wn,[(m(),s(h,null,c(3,t=>o(`li`,{key:t,class:`flex items-center gap-3 px-2 py-2.5`},[e(r(Me),{class:`size-8`}),o(`div`,Tn,[e(r(Me),{class:`h-3.5 w-2/3`}),e(r(Me),{class:`h-3 w-1/3`})])])),64))]))]),_:1})]),_:1},8,[`open`]),e(r(I),{open:!!Z.value,"onUpdate:open":l[21]||=e=>!e&&(Z.value=null)},{default:g(()=>[e(r(L),{class:`sm:max-w-md`},{default:g(()=>[e(r(z),null,{default:g(()=>[e(r(R),null,{default:g(()=>[t(_(Z.value===`rename`?`Ordner umbenennen`:i.folder?`Unterordner in „${i.folder.name}“`:`Neuer Ordner`),1)]),_:1})]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:S(Xe,[`prevent`])},[e(M,{id:`folder-name`,label:`Name`,error:r(Q).errors.name},{default:g(()=>[e(r(F),{id:`folder-name`,modelValue:r(Q).name,"onUpdate:modelValue":l[19]||=e=>r(Q).name=e,maxlength:`120`,autofocus:``},null,8,[`modelValue`])]),_:1},8,[`error`]),e(r(Pe),null,{default:g(()=>[e(r(P),{type:`button`,variant:`outline`,onClick:l[20]||=e=>Z.value=null},{default:g(()=>[...l[44]||=[t(`Abbrechen`,-1)]]),_:1}),e(r(P),{type:`submit`,disabled:r(Q).processing||!r(Q).name.trim()},{default:g(()=>[...l[45]||=[t(`Speichern`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{Pn as default}; \ No newline at end of file diff --git a/public/build/assets/Index-Byrm0yLr.js b/public/build/assets/Index-X1RcKtaB.js similarity index 94% rename from public/build/assets/Index-Byrm0yLr.js rename to public/build/assets/Index-X1RcKtaB.js index ad2d258b..51a8929f 100644 --- a/public/build/assets/Index-Byrm0yLr.js +++ b/public/build/assets/Index-X1RcKtaB.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-Bk5B47ch.js","assets/app-CNhdlRDG.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app--xQ6sxMx.css"])))=>i.map(i=>d[i]); -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,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as h}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as g,i as _,o as v,r as y}from"./app-CNhdlRDG.js";import{O as b,k as x}from"./dist-DtGNiYlK.js";import{J as S,P as C}from"./AppIcon-D91Q4hzR.js";import{t as w}from"./AppLayout-B1gBMLPE.js";import{o as T}from"./http-DmyDwIce.js";import{t as E}from"./trash-DUqnVIgb.js";import{t as D}from"./upload-M7dd6qr8.js";import{t as O}from"./FormField-BoFAO4pm.js";import{t as k}from"./PageHeader-vFc2LbBj.js";import{t as A}from"./button-ZHC5mKey.js";import{t as j}from"./NativeSelect-BGasRaNs.js";var M=x({name:`utensils-crossed`,size:24,node:[[`path`,{d:`m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8`,key:`n7qcjb`}],[`path`,{d:`M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7`,key:`d0u48b`}],[`path`,{d:`m2.1 21.8 6.4-6.3`,key:`yn04lh`}],[`path`,{d:`m19 5-7 7`,key:`194lzd`}]],aliases:[`fork-knife-crossed`]});async function N(e,t=1654){let[n,r]=await Promise.all([v(()=>import(`./pdf-Bk5B47ch.js`),__vite__mapDeps([0,1,2,3,4])),v(()=>import(`./pdf.worker.min-D00xlTFB.js`),[])]);n.GlobalWorkerOptions.workerSrc=r.default;let i=await n.getDocument({data:await e.arrayBuffer(),isEvalSupported:!1,enableXfa:!1}).promise;try{let n=await i.getPage(1),r=n.getViewport({scale:t/n.getViewport({scale:1}).width}),a=document.createElement(`canvas`);a.width=Math.round(r.width),a.height=Math.round(r.height);let o=a.getContext(`2d`);o.fillStyle=`#ffffff`,o.fillRect(0,0,a.width,a.height),await n.render({canvasContext:o,viewport:r}).promise;let s=await new Promise(e=>a.toBlob(e,`image/jpeg`,.9));return new File([s],e.name.replace(/\.pdf$/i,``)+`.jpg`,{type:`image/jpeg`})}finally{i.destroy()}}var P={class:`mt-10 rounded-lg border bg-card print:hidden`},F={class:`grid gap-6 p-5 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]`},I={class:`grid content-start gap-4`},L=[`disabled`],R={class:`mt-2 text-sm font-medium`},z={class:`flex flex-wrap items-center gap-3 rounded-md bg-muted/50 px-3 py-2.5 text-sm`},B={class:`min-w-0 flex-1 truncate`},V={key:0,class:`grid grid-cols-[repeat(auto-fill,minmax(7rem,1fr))] gap-3`},H=[`href`],U=[`src`,`alt`],W={class:`mt-1 text-xs font-medium`},G={class:`text-[11px] text-muted-foreground`},K=[`aria-label`,`onClick`],q={key:1,class:`text-sm text-muted-foreground`},J={class:`mt-3 text-xs text-muted-foreground`},Y={__name:`ManagePanel`,props:{manage:{type:Object,required:!0},allergens:{type:Object,default:null}},setup(n){let _=n,v=y({week:_.manage.suggested,image:null}),x=p(!1),C=p(!1),w=p(null),k=p(null);async function M(e){if(!e)return;let t=e;if(e.type===`application/pdf`||/\.pdf$/i.test(e.name)){x.value=!0;try{t=await N(e)}catch{T.error(`Das PDF ließ sich nicht umwandeln. Bitte als Bild hochladen.`);return}finally{x.value=!1}}v.image=t,v.post(`/speiseplan/wochen`,{forceFormData:!0,preserveScroll:!0,onError:e=>T.error(Object.values(e)[0]),onSuccess:()=>{v.image=null,v.week=_.manage.suggested}})}function Y(e){e&&g.post(`/speiseplan/allergene`,{file:e},{forceFormData:!0,preserveScroll:!0,onError:e=>T.error(Object.values(e)[0])})}function X(e){window.confirm(`Speiseplan ${e.label} entfernen?`)&&g.delete(`/speiseplan/wochen/${e.id}`,{preserveScroll:!0})}return(p,_)=>(c(),o(`section`,P,[_[11]||=a(`h2`,{class:`border-b px-5 py-3 text-base font-semibold`},`Speiseplan hochladen`,-1),a(`div`,F,[a(`div`,I,[e(O,{id:`sp-week`,label:`Woche`,error:r(v).errors.week},{default:u(()=>[e(j,{id:`sp-week`,modelValue:r(v).week,"onUpdate:modelValue":_[0]||=e=>r(v).week=e,options:n.manage.options},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),a(`button`,{type:`button`,class:i([`grid place-items-center rounded-lg border-2 border-dashed px-6 py-10 text-center transition-colors`,C.value?`border-brand-400 bg-brand-soft/60`:`hover:border-brand-300`]),disabled:r(v).processing||x.value,onClick:_[1]||=e=>w.value?.click(),onDragover:_[2]||=h(e=>C.value=!0,[`prevent`]),onDragleave:_[3]||=h(e=>C.value=!1,[`prevent`]),onDrop:_[4]||=h(e=>{C.value=!1,M(e.dataTransfer.files[0])},[`prevent`])},[r(v).processing||x.value?(c(),f(r(b),{key:0,class:`size-7 animate-spin text-muted-foreground`})):(c(),f(r(D),{key:1,class:`size-7 text-muted-foreground`})),a(`span`,R,d(x.value?`PDF wird umgewandelt …`:r(v).processing?`Wird hochgeladen …`:`PDF oder Bild hierher ziehen oder klicken`),1),_[9]||=a(`span`,{class:`mt-1 text-xs text-muted-foreground`},`Ein PDF wird automatisch zum Bild (erste Seite, A4). Ist für die Woche schon ein Plan da, wird er ersetzt.`,-1)],42,L),a(`input`,{ref_key:`fileInput`,ref:w,type:`file`,accept:`application/pdf,image/jpeg,image/png,image/webp`,class:`hidden`,onChange:_[5]||=e=>{M(e.target.files[0]),e.target.value=``}},null,544),a(`div`,z,[e(r(S),{class:`size-4 text-muted-foreground`}),a(`span`,B,d(n.allergens?n.allergens.name:`Noch keine Allergie-Informationen hinterlegt`),1),e(r(A),{size:`sm`,variant:`outline`,onClick:_[6]||=e=>k.value?.click()},{default:u(()=>[t(d(n.allergens?`Ersetzen`:`PDF hochladen`),1)]),_:1}),n.allergens?(c(),f(r(A),{key:0,size:`icon`,variant:`ghost`,class:`size-8`,"aria-label":`Allergie-Informationen entfernen`,onClick:_[7]||=e=>r(g).delete(`/speiseplan/allergene`,{preserveScroll:!0})},{default:u(()=>[e(r(E))]),_:1})):m(``,!0),a(`input`,{ref_key:`allergenInput`,ref:k,type:`file`,accept:`application/pdf`,class:`hidden`,onChange:_[8]||=e=>{Y(e.target.files[0]),e.target.value=``}},null,544)])]),a(`div`,null,[_[10]||=a(`p`,{class:`mb-2 text-sm font-medium`},`Hochgeladene Wochen`,-1),n.manage.uploaded.length?(c(),o(`ul`,V,[(c(!0),o(l,null,s(n.manage.uploaded,t=>(c(),o(`li`,{key:t.id,class:`group relative`},[a(`a`,{href:t.image_url,target:`_blank`,class:i([`block overflow-hidden rounded-md border bg-white`,{"opacity-60":t.past}])},[a(`img`,{src:t.image_url,alt:t.label,class:`aspect-[210/297] w-full object-cover object-top`,loading:`lazy`},null,8,U)],10,H),a(`p`,W,`KW `+d(t.week),1),a(`p`,G,d(t.past?`vergangen`:t.label.split(`· `)[1]),1),a(`button`,{type:`button`,class:`absolute top-1 right-1 grid size-7 place-items-center rounded-md bg-card/90 text-destructive opacity-0 shadow-xs ring-1 ring-border group-hover:opacity-100 focus-visible:opacity-100`,"aria-label":`KW ${t.week} entfernen`,onClick:e=>X(t)},[e(r(E),{class:`size-3.5`})],8,K)]))),128))])):(c(),o(`p`,q,`Noch keine Pläne hochgeladen.`)),a(`p`,J,`Vergangene Wochen werden nach `+d(n.manage.keepWeeks)+` Wochen automatisch gelöscht.`,1)])])]))}},X=[`href`],Z=[`href`],Q={class:`grid gap-6 lg:grid-cols-2`},$={class:`flex items-center justify-between gap-3 border-b px-4 py-2.5`},ee={class:`text-sm font-semibold`},te={class:`text-xs text-muted-foreground`},ne=[`href`],re=[`href`],ie=[`src`,`alt`],ae={key:1,class:`grid aspect-[210/297] max-h-[36rem] w-full place-items-center bg-muted/30 text-center`},oe={key:0,class:`mt-6 text-sm`},se=[`href`],ce={__name:`Index`,props:{weeks:{type:Array,required:!0},allergens:{type:Object,default:null},canManage:{type:Boolean,default:!1},manage:{type:Object,default:null}},setup(i){let p=i,h=_();n(()=>h.props.flash.status,e=>e&&T.success(e),{immediate:!0});let g=e=>`/speiseplan/druck${e.length?`?wochen=${e.join(`,`)}`:``}`,v=()=>p.weeks.filter(e=>e.plan).map(e=>e.plan.id);return(n,p)=>(c(),f(w,{title:`Speiseplan`},{default:u(()=>[e(k,{title:`Speiseplan`,description:`Unsere Kantine – diese und nächste Woche.`},{actions:u(()=>[i.allergens?(c(),f(r(A),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[a(`a`,{href:i.allergens.url,target:`_blank`,rel:`noopener`},[e(r(S)),p[0]||=t(` Allergie-Informationen`,-1)],8,X)]),_:1})):m(``,!0),v().length?(c(),f(r(A),{key:1,"as-child":``},{default:u(()=>[a(`a`,{href:g(v()),target:`_blank`,rel:`noopener`},[e(r(C)),p[1]||=t(` Drucken`,-1)],8,Z)]),_:1})):m(``,!0)]),_:1}),a(`div`,Q,[(c(!0),o(l,null,s(i.weeks,n=>(c(),o(`section`,{key:n.week_start,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,$,[a(`div`,null,[a(`h2`,ee,d(n.title),1),a(`p`,te,d(n.label),1)]),n.plan?(c(),f(r(A),{key:0,size:`sm`,variant:`ghost`,"as-child":``},{default:u(()=>[a(`a`,{href:g([n.plan.id]),target:`_blank`,rel:`noopener`},[e(r(C)),p[2]||=t(` Nur diese Woche`,-1)],8,ne)]),_:2},1024)):m(``,!0)]),n.plan?(c(),o(`a`,{key:0,href:n.plan.image_url,target:`_blank`,rel:`noopener`,class:`block bg-muted/40 p-3`,title:`In voller Größe öffnen`},[a(`img`,{src:n.plan.image_url,alt:`Speiseplan ${n.label}`,class:`mx-auto w-full max-w-2xl rounded shadow-sm`},null,8,ie)],8,re)):(c(),o(`div`,ae,[a(`div`,null,[e(r(M),{class:`mx-auto size-8 text-muted-foreground`,"stroke-width":1.5}),p[3]||=a(`p`,{class:`mt-2 text-sm text-muted-foreground`},`Für diese Woche liegt noch kein Speiseplan vor.`,-1)])]))]))),128))]),i.allergens?(c(),o(`p`,oe,[a(`a`,{href:i.allergens.url,target:`_blank`,rel:`noopener`,class:`inline-flex items-center gap-1.5 font-medium text-brand-text hover:underline`},[e(r(S),{class:`size-4`}),p[4]||=t(` Allergie-Informationen (PDF)`,-1)],8,se)])):m(``,!0),i.canManage&&i.manage?(c(),f(Y,{key:1,manage:i.manage,allergens:i.allergens},null,8,[`manage`,`allergens`])):m(``,!0)]),_:1}))}};export{ce as default}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-D6hJP0n2.js","assets/app-Cw5f57va.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-DHwJQed6.css"])))=>i.map(i=>d[i]); +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,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as h}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as g,i as _,o as v,r as y}from"./app-Cw5f57va.js";import{O as b,k as x}from"./dist-DtGNiYlK.js";import{J as S,P as C}from"./AppIcon-BiVN_tuL.js";import{t as w}from"./AppLayout-9kc4awMB.js";import{o as T}from"./http-DmyDwIce.js";import{t as E}from"./trash-DUqnVIgb.js";import{t as D}from"./upload-M7dd6qr8.js";import{t as O}from"./FormField-BoFAO4pm.js";import{t as k}from"./PageHeader-r1Deze0_.js";import{t as A}from"./button-ZHC5mKey.js";import{t as j}from"./NativeSelect-BGasRaNs.js";var M=x({name:`utensils-crossed`,size:24,node:[[`path`,{d:`m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8`,key:`n7qcjb`}],[`path`,{d:`M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7`,key:`d0u48b`}],[`path`,{d:`m2.1 21.8 6.4-6.3`,key:`yn04lh`}],[`path`,{d:`m19 5-7 7`,key:`194lzd`}]],aliases:[`fork-knife-crossed`]});async function N(e,t=1654){let[n,r]=await Promise.all([v(()=>import(`./pdf-D6hJP0n2.js`),__vite__mapDeps([0,1,2,3,4])),v(()=>import(`./pdf.worker.min-D00xlTFB.js`),[])]);n.GlobalWorkerOptions.workerSrc=r.default;let i=await n.getDocument({data:await e.arrayBuffer(),isEvalSupported:!1,enableXfa:!1}).promise;try{let n=await i.getPage(1),r=n.getViewport({scale:t/n.getViewport({scale:1}).width}),a=document.createElement(`canvas`);a.width=Math.round(r.width),a.height=Math.round(r.height);let o=a.getContext(`2d`);o.fillStyle=`#ffffff`,o.fillRect(0,0,a.width,a.height),await n.render({canvasContext:o,viewport:r}).promise;let s=await new Promise(e=>a.toBlob(e,`image/jpeg`,.9));return new File([s],e.name.replace(/\.pdf$/i,``)+`.jpg`,{type:`image/jpeg`})}finally{i.destroy()}}var P={class:`mt-10 rounded-lg border bg-card print:hidden`},F={class:`grid gap-6 p-5 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]`},I={class:`grid content-start gap-4`},L=[`disabled`],R={class:`mt-2 text-sm font-medium`},z={class:`flex flex-wrap items-center gap-3 rounded-md bg-muted/50 px-3 py-2.5 text-sm`},B={class:`min-w-0 flex-1 truncate`},V={key:0,class:`grid grid-cols-[repeat(auto-fill,minmax(7rem,1fr))] gap-3`},H=[`href`],U=[`src`,`alt`],W={class:`mt-1 text-xs font-medium`},G={class:`text-[11px] text-muted-foreground`},K=[`aria-label`,`onClick`],q={key:1,class:`text-sm text-muted-foreground`},J={class:`mt-3 text-xs text-muted-foreground`},Y={__name:`ManagePanel`,props:{manage:{type:Object,required:!0},allergens:{type:Object,default:null}},setup(n){let _=n,v=y({week:_.manage.suggested,image:null}),x=p(!1),C=p(!1),w=p(null),k=p(null);async function M(e){if(!e)return;let t=e;if(e.type===`application/pdf`||/\.pdf$/i.test(e.name)){x.value=!0;try{t=await N(e)}catch{T.error(`Das PDF ließ sich nicht umwandeln. Bitte als Bild hochladen.`);return}finally{x.value=!1}}v.image=t,v.post(`/speiseplan/wochen`,{forceFormData:!0,preserveScroll:!0,onError:e=>T.error(Object.values(e)[0]),onSuccess:()=>{v.image=null,v.week=_.manage.suggested}})}function Y(e){e&&g.post(`/speiseplan/allergene`,{file:e},{forceFormData:!0,preserveScroll:!0,onError:e=>T.error(Object.values(e)[0])})}function X(e){window.confirm(`Speiseplan ${e.label} entfernen?`)&&g.delete(`/speiseplan/wochen/${e.id}`,{preserveScroll:!0})}return(p,_)=>(c(),o(`section`,P,[_[11]||=a(`h2`,{class:`border-b px-5 py-3 text-base font-semibold`},`Speiseplan hochladen`,-1),a(`div`,F,[a(`div`,I,[e(O,{id:`sp-week`,label:`Woche`,error:r(v).errors.week},{default:u(()=>[e(j,{id:`sp-week`,modelValue:r(v).week,"onUpdate:modelValue":_[0]||=e=>r(v).week=e,options:n.manage.options},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),a(`button`,{type:`button`,class:i([`grid place-items-center rounded-lg border-2 border-dashed px-6 py-10 text-center transition-colors`,C.value?`border-brand-400 bg-brand-soft/60`:`hover:border-brand-300`]),disabled:r(v).processing||x.value,onClick:_[1]||=e=>w.value?.click(),onDragover:_[2]||=h(e=>C.value=!0,[`prevent`]),onDragleave:_[3]||=h(e=>C.value=!1,[`prevent`]),onDrop:_[4]||=h(e=>{C.value=!1,M(e.dataTransfer.files[0])},[`prevent`])},[r(v).processing||x.value?(c(),f(r(b),{key:0,class:`size-7 animate-spin text-muted-foreground`})):(c(),f(r(D),{key:1,class:`size-7 text-muted-foreground`})),a(`span`,R,d(x.value?`PDF wird umgewandelt …`:r(v).processing?`Wird hochgeladen …`:`PDF oder Bild hierher ziehen oder klicken`),1),_[9]||=a(`span`,{class:`mt-1 text-xs text-muted-foreground`},`Ein PDF wird automatisch zum Bild (erste Seite, A4). Ist für die Woche schon ein Plan da, wird er ersetzt.`,-1)],42,L),a(`input`,{ref_key:`fileInput`,ref:w,type:`file`,accept:`application/pdf,image/jpeg,image/png,image/webp`,class:`hidden`,onChange:_[5]||=e=>{M(e.target.files[0]),e.target.value=``}},null,544),a(`div`,z,[e(r(S),{class:`size-4 text-muted-foreground`}),a(`span`,B,d(n.allergens?n.allergens.name:`Noch keine Allergie-Informationen hinterlegt`),1),e(r(A),{size:`sm`,variant:`outline`,onClick:_[6]||=e=>k.value?.click()},{default:u(()=>[t(d(n.allergens?`Ersetzen`:`PDF hochladen`),1)]),_:1}),n.allergens?(c(),f(r(A),{key:0,size:`icon`,variant:`ghost`,class:`size-8`,"aria-label":`Allergie-Informationen entfernen`,onClick:_[7]||=e=>r(g).delete(`/speiseplan/allergene`,{preserveScroll:!0})},{default:u(()=>[e(r(E))]),_:1})):m(``,!0),a(`input`,{ref_key:`allergenInput`,ref:k,type:`file`,accept:`application/pdf`,class:`hidden`,onChange:_[8]||=e=>{Y(e.target.files[0]),e.target.value=``}},null,544)])]),a(`div`,null,[_[10]||=a(`p`,{class:`mb-2 text-sm font-medium`},`Hochgeladene Wochen`,-1),n.manage.uploaded.length?(c(),o(`ul`,V,[(c(!0),o(l,null,s(n.manage.uploaded,t=>(c(),o(`li`,{key:t.id,class:`group relative`},[a(`a`,{href:t.image_url,target:`_blank`,class:i([`block overflow-hidden rounded-md border bg-white`,{"opacity-60":t.past}])},[a(`img`,{src:t.image_url,alt:t.label,class:`aspect-[210/297] w-full object-cover object-top`,loading:`lazy`},null,8,U)],10,H),a(`p`,W,`KW `+d(t.week),1),a(`p`,G,d(t.past?`vergangen`:t.label.split(`· `)[1]),1),a(`button`,{type:`button`,class:`absolute top-1 right-1 grid size-7 place-items-center rounded-md bg-card/90 text-destructive opacity-0 shadow-xs ring-1 ring-border group-hover:opacity-100 focus-visible:opacity-100`,"aria-label":`KW ${t.week} entfernen`,onClick:e=>X(t)},[e(r(E),{class:`size-3.5`})],8,K)]))),128))])):(c(),o(`p`,q,`Noch keine Pläne hochgeladen.`)),a(`p`,J,`Vergangene Wochen werden nach `+d(n.manage.keepWeeks)+` Wochen automatisch gelöscht.`,1)])])]))}},X=[`href`],Z=[`href`],Q={class:`grid gap-6 lg:grid-cols-2`},$={class:`flex items-center justify-between gap-3 border-b px-4 py-2.5`},ee={class:`text-sm font-semibold`},te={class:`text-xs text-muted-foreground`},ne=[`href`],re=[`href`],ie=[`src`,`alt`],ae={key:1,class:`grid aspect-[210/297] max-h-[36rem] w-full place-items-center bg-muted/30 text-center`},oe={key:0,class:`mt-6 text-sm`},se=[`href`],ce={__name:`Index`,props:{weeks:{type:Array,required:!0},allergens:{type:Object,default:null},canManage:{type:Boolean,default:!1},manage:{type:Object,default:null}},setup(i){let p=i,h=_();n(()=>h.props.flash.status,e=>e&&T.success(e),{immediate:!0});let g=e=>`/speiseplan/druck${e.length?`?wochen=${e.join(`,`)}`:``}`,v=()=>p.weeks.filter(e=>e.plan).map(e=>e.plan.id);return(n,p)=>(c(),f(w,{title:`Speiseplan`},{default:u(()=>[e(k,{title:`Speiseplan`,description:`Unsere Kantine – diese und nächste Woche.`},{actions:u(()=>[i.allergens?(c(),f(r(A),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[a(`a`,{href:i.allergens.url,target:`_blank`,rel:`noopener`},[e(r(S)),p[0]||=t(` Allergie-Informationen`,-1)],8,X)]),_:1})):m(``,!0),v().length?(c(),f(r(A),{key:1,"as-child":``},{default:u(()=>[a(`a`,{href:g(v()),target:`_blank`,rel:`noopener`},[e(r(C)),p[1]||=t(` Drucken`,-1)],8,Z)]),_:1})):m(``,!0)]),_:1}),a(`div`,Q,[(c(!0),o(l,null,s(i.weeks,n=>(c(),o(`section`,{key:n.week_start,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,$,[a(`div`,null,[a(`h2`,ee,d(n.title),1),a(`p`,te,d(n.label),1)]),n.plan?(c(),f(r(A),{key:0,size:`sm`,variant:`ghost`,"as-child":``},{default:u(()=>[a(`a`,{href:g([n.plan.id]),target:`_blank`,rel:`noopener`},[e(r(C)),p[2]||=t(` Nur diese Woche`,-1)],8,ne)]),_:2},1024)):m(``,!0)]),n.plan?(c(),o(`a`,{key:0,href:n.plan.image_url,target:`_blank`,rel:`noopener`,class:`block bg-muted/40 p-3`,title:`In voller Größe öffnen`},[a(`img`,{src:n.plan.image_url,alt:`Speiseplan ${n.label}`,class:`mx-auto w-full max-w-2xl rounded shadow-sm`},null,8,ie)],8,re)):(c(),o(`div`,ae,[a(`div`,null,[e(r(M),{class:`mx-auto size-8 text-muted-foreground`,"stroke-width":1.5}),p[3]||=a(`p`,{class:`mt-2 text-sm text-muted-foreground`},`Für diese Woche liegt noch kein Speiseplan vor.`,-1)])]))]))),128))]),i.allergens?(c(),o(`p`,oe,[a(`a`,{href:i.allergens.url,target:`_blank`,rel:`noopener`,class:`inline-flex items-center gap-1.5 font-medium text-brand-text hover:underline`},[e(r(S),{class:`size-4`}),p[4]||=t(` Allergie-Informationen (PDF)`,-1)],8,se)])):m(``,!0),i.canManage&&i.manage?(c(),f(Y,{key:1,manage:i.manage,allergens:i.allergens},null,8,[`manage`,`allergens`])):m(``,!0)]),_:1}))}};export{ce as default}; \ No newline at end of file diff --git a/public/build/assets/Index-TCkhlwAl.js b/public/build/assets/Index-eDAg1Qhj.js similarity index 84% rename from public/build/assets/Index-TCkhlwAl.js rename to public/build/assets/Index-eDAg1Qhj.js index 0f6d73b4..596985cd 100644 --- a/public/build/assets/Index-TCkhlwAl.js +++ b/public/build/assets/Index-eDAg1Qhj.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-CNhdlRDG.js";import{$ as h}from"./AppIcon-D91Q4hzR.js";import{t as g}from"./AppLayout-B1gBMLPE.js";import{t as _}from"./BirthdayItem-DKhXwto7.js";import{t as v}from"./EmptyState-Ceq4v8mE.js";import{t as y}from"./PageHeader-vFc2LbBj.js";var b={class:`mx-auto max-w-3xl`},x={key:0,class:`mb-6 rounded-lg border bg-card px-4 py-3 text-sm`},S={key:1,class:`grid gap-5`},C={class:`divide-y px-5`},w={key:2,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{birthdays:{type:Array,required:!0},scope:{type:String,required:!0},registered:{type:Boolean,default:!1}},setup(T){let E=T,D=s(()=>{let e=[];for(let t of E.birthdays){let n=e.at(-1);n&&n.date===t.date?n.items.push(t):e.push({date:t.date,today:t.today,items:[t]})}return e}),O=e=>e.today?`Heute`:new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`}).format(new Date(`${e.date}T12:00:00`));return(s,E)=>(c(),f(g,{title:`Geburtstage`},{default:u(()=>[i(`div`,b,[e(y,{title:`Geburtstage`,description:`Die nächsten 30 Tage · ${T.scope}`},null,8,[`description`]),T.registered?p(``,!0):(c(),a(`p`,x,[E[1]||=t(` Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter `,-1),e(n(m),{href:`/profil/bearbeiten`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...E[0]||=[t(`Profil bearbeiten`,-1)]]),_:1}),E[2]||=t(` ein. `,-1)])),D.value.length?(c(),a(`div`,S,[(c(!0),a(l,null,o(D.value,e=>(c(),a(`section`,{key:e.date,class:`rounded-lg border bg-card`},[i(`h2`,{class:r([`border-b px-5 py-3 text-sm font-semibold`,e.today?`text-brand-text`:``])},d(O(e)),3),i(`div`,C,[(c(!0),a(l,null,o(e.items,e=>(c(),f(_,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(v,{icon:n(h),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-Cw5f57va.js";import{$ as h}from"./AppIcon-BiVN_tuL.js";import{t as g}from"./AppLayout-9kc4awMB.js";import{t as _}from"./BirthdayItem-hn5mYumD.js";import{t as v}from"./EmptyState-Ceq4v8mE.js";import{t as y}from"./PageHeader-r1Deze0_.js";var b={class:`mx-auto max-w-3xl`},x={key:0,class:`mb-6 rounded-lg border bg-card px-4 py-3 text-sm`},S={key:1,class:`grid gap-5`},C={class:`divide-y px-5`},w={key:2,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{birthdays:{type:Array,required:!0},scope:{type:String,required:!0},registered:{type:Boolean,default:!1}},setup(T){let E=T,D=s(()=>{let e=[];for(let t of E.birthdays){let n=e.at(-1);n&&n.date===t.date?n.items.push(t):e.push({date:t.date,today:t.today,items:[t]})}return e}),O=e=>e.today?`Heute`:new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`}).format(new Date(`${e.date}T12:00:00`));return(s,E)=>(c(),f(g,{title:`Geburtstage`},{default:u(()=>[i(`div`,b,[e(y,{title:`Geburtstage`,description:`Die nächsten 30 Tage · ${T.scope}`},null,8,[`description`]),T.registered?p(``,!0):(c(),a(`p`,x,[E[1]||=t(` Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter `,-1),e(n(m),{href:`/profil/bearbeiten`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...E[0]||=[t(`Profil bearbeiten`,-1)]]),_:1}),E[2]||=t(` ein. `,-1)])),D.value.length?(c(),a(`div`,S,[(c(!0),a(l,null,o(D.value,e=>(c(),a(`section`,{key:e.date,class:`rounded-lg border bg-card`},[i(`h2`,{class:r([`border-b px-5 py-3 text-sm font-semibold`,e.today?`text-brand-text`:``])},d(O(e)),3),i(`div`,C,[(c(!0),a(l,null,o(e.items,e=>(c(),f(_,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(v,{icon:n(h),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default}; \ No newline at end of file diff --git a/public/build/assets/Index-C_AsO8Qd.js b/public/build/assets/Index-vvrbpKuT.js similarity index 59% rename from public/build/assets/Index-C_AsO8Qd.js rename to public/build/assets/Index-vvrbpKuT.js index ce5a7efd..9d85ac2f 100644 --- a/public/build/assets/Index-C_AsO8Qd.js +++ b/public/build/assets/Index-vvrbpKuT.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialForms-DUnl3fzc.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/app-CNhdlRDG.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app--xQ6sxMx.css","assets/download-UAAY3N2F.js","assets/dist-DtGNiYlK.js","assets/pencil-line-CmAbFj4f.js","assets/plus-B_ij2ng2.js","assets/table-properties-BPjlj2dD.js","assets/button-ZHC5mKey.js","assets/Panel-DpvMQ4up.js","assets/chevron-right-C9w5cb2q.js","assets/EditorialNews-DzlekVih.js","assets/message-square-warning-BFfa_vqd.js","assets/format-BsuBtvUs.js","assets/EditorialPages-BCujsTim.js","assets/lock-H7FAhSBr.js","assets/NewPageDialog-BoAZlkoa.js","assets/DialogDescription-CCacFT45.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/AppIcon-D91Q4hzR.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-DmyDwIce.js","assets/Input-FGSb2-yK.js","assets/dialog-37na293D.js","assets/DialogHeader-DuqiL3ry.js"])))=>i.map(i=>d[i]); -import{D as e,O as t,_ as n,b as r,bt as i,et as a,mt as o,o as s,qt as c,v as l,wt as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as d}from"./app-CNhdlRDG.js";import{t as f}from"./AppLayout-B1gBMLPE.js";import{t as p}from"./PageHeader-vFc2LbBj.js";var m={class:`grid items-start gap-6 xl:grid-cols-2`},h={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(h){let g=Object.assign({"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>d(()=>import(`./EditorialForms-DUnl3fzc.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>d(()=>import(`./EditorialNews-DzlekVih.js`),__vite__mapDeps([13,1,2,3,4,14,6,8,15,10,11,12])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>d(()=>import(`./EditorialPages-BCujsTim.js`),__vite__mapDeps([16,1,2,3,4,17,6,8,15,10,11,12,18,19,20,21,22,23,24,25,26]))}),_={};for(let[e,n]of Object.entries(g)){let[,r]=e.match(/plugins-core\/([^/]+)\//);_[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}return(t,d)=>(o(),l(f,{title:`Redaktion`},{default:c(()=>[e(p,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),n(`div`,m,[(o(!0),r(s,null,i(h.sections,e=>(o(),l(u(_[e.component]),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])]),_:1}))}};export{h as default}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialForms-DZfmKBqR.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/app-Cw5f57va.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-DHwJQed6.css","assets/download-UAAY3N2F.js","assets/dist-DtGNiYlK.js","assets/pencil-line-CmAbFj4f.js","assets/plus-B_ij2ng2.js","assets/table-properties-BPjlj2dD.js","assets/button-ZHC5mKey.js","assets/Panel-DZcEmK5R.js","assets/chevron-right-C9w5cb2q.js","assets/EditorialNews-CxqDTEpi.js","assets/message-square-warning-BFfa_vqd.js","assets/format-BsuBtvUs.js","assets/EditorialPages-C93PTBuX.js","assets/lock-H7FAhSBr.js","assets/NewPageDialog-DbJDgD-q.js","assets/DialogDescription-9G5-5WG4.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/AppIcon-BiVN_tuL.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-DmyDwIce.js","assets/Input-FGSb2-yK.js","assets/dialog-DiN2bNwR.js","assets/DialogHeader-DuqiL3ry.js"])))=>i.map(i=>d[i]); +import{D as e,O as t,_ as n,b as r,bt as i,et as a,mt as o,o as s,qt as c,v as l,wt as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as d}from"./app-Cw5f57va.js";import{t as f}from"./AppLayout-9kc4awMB.js";import{t as p}from"./PageHeader-r1Deze0_.js";var m={class:`grid items-start gap-6 xl:grid-cols-2`},h={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(h){let g=Object.assign({"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>d(()=>import(`./EditorialForms-DZfmKBqR.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>d(()=>import(`./EditorialNews-CxqDTEpi.js`),__vite__mapDeps([13,1,2,3,4,14,6,8,15,10,11,12])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>d(()=>import(`./EditorialPages-C93PTBuX.js`),__vite__mapDeps([16,1,2,3,4,17,6,8,15,10,11,12,18,19,20,21,22,23,24,25,26]))}),_={};for(let[e,n]of Object.entries(g)){let[,r]=e.match(/plugins-core\/([^/]+)\//);_[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}return(t,d)=>(o(),l(f,{title:`Redaktion`},{default:c(()=>[e(p,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),n(`div`,m,[(o(!0),r(s,null,i(h.sections,e=>(o(),l(u(_[e.component]),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])]),_:1}))}};export{h as default}; \ No newline at end of file diff --git a/public/build/assets/Latest-DQDGem6H.js b/public/build/assets/Latest-BL64VtrJ.js similarity index 82% rename from public/build/assets/Latest-DQDGem6H.js rename to public/build/assets/Latest-BL64VtrJ.js index 17d007f5..15534e77 100644 --- a/public/build/assets/Latest-DQDGem6H.js +++ b/public/build/assets/Latest-BL64VtrJ.js @@ -1 +1 @@ -import{On as e,Zn as t,b as n,bt as r,mt as i,o as a,qt as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{F as l}from"./AppIcon-D91Q4hzR.js";import{t as u}from"./EmptyState-Ceq4v8mE.js";import{t as d}from"./Panel-DpvMQ4up.js";import{t as f}from"./NewsListItem-DS0x3gWo.js";var p={key:0,href:`/admin/neuigkeiten/neu`,class:`mt-4 text-sm font-medium text-brand-text hover:underline`},m={__name:`Latest`,props:{posts:{type:Array,required:!0},canWrite:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},setup(m){return(h,g)=>(i(),s(d,{title:`Neuigkeiten`,"action-label":`Alle anzeigen`,"action-href":`/neuigkeiten`},{default:o(()=>[m.posts.length?(i(),n(`div`,{key:0,class:t([`-my-3 divide-y`,{"sm:grid sm:grid-cols-2 sm:gap-x-6 sm:divide-y-0":m.wide}])},[(i(!0),n(a,null,r(m.posts,e=>(i(),s(f,{key:e.id,post:e},null,8,[`post`]))),128))],2)):(i(),s(u,{key:1,icon:e(l),title:`Noch keine Neuigkeiten`,text:`Sobald Beiträge veröffentlicht sind, erscheinen sie hier.`},{default:o(()=>[m.canWrite?(i(),n(`a`,p,`Ersten Beitrag schreiben`)):c(``,!0)]),_:1},8,[`icon`]))]),_:1}))}};export{m as default}; \ No newline at end of file +import{On as e,Zn as t,b as n,bt as r,mt as i,o as a,qt as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{F as l}from"./AppIcon-BiVN_tuL.js";import{t as u}from"./EmptyState-Ceq4v8mE.js";import{t as d}from"./Panel-DZcEmK5R.js";import{t as f}from"./NewsListItem-DMWr_1cQ.js";var p={key:0,href:`/admin/neuigkeiten/neu`,class:`mt-4 text-sm font-medium text-brand-text hover:underline`},m={__name:`Latest`,props:{posts:{type:Array,required:!0},canWrite:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},setup(m){return(h,g)=>(i(),s(d,{title:`Neuigkeiten`,"action-label":`Alle anzeigen`,"action-href":`/neuigkeiten`},{default:o(()=>[m.posts.length?(i(),n(`div`,{key:0,class:t([`-my-3 divide-y`,{"sm:grid sm:grid-cols-2 sm:gap-x-6 sm:divide-y-0":m.wide}])},[(i(!0),n(a,null,r(m.posts,e=>(i(),s(f,{key:e.id,post:e},null,8,[`post`]))),128))],2)):(i(),s(u,{key:1,icon:e(l),title:`Noch keine Neuigkeiten`,text:`Sobald Beiträge veröffentlicht sind, erscheinen sie hier.`},{default:o(()=>[m.canWrite?(i(),n(`a`,p,`Ersten Beitrag schreiben`)):c(``,!0)]),_:1},8,[`icon`]))]),_:1}))}};export{m as default}; \ No newline at end of file diff --git a/public/build/assets/LatestNews-BOqmUeh0.js b/public/build/assets/LatestNews-SZS0lQxT.js similarity index 90% rename from public/build/assets/LatestNews-BOqmUeh0.js rename to public/build/assets/LatestNews-SZS0lQxT.js index 7cc1fa6a..c8a006b8 100644 --- a/public/build/assets/LatestNews-BOqmUeh0.js +++ b/public/build/assets/LatestNews-SZS0lQxT.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CNhdlRDG.js";import{t as p}from"./chevron-right-C9w5cb2q.js";import{t as m}from"./NewsCard-CPICQVsu.js";import{t as h}from"./NewsListItem-DS0x3gWo.js";var g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={key:1,class:`divide-y rounded-lg border bg-card px-4`},y={key:2,class:`grid gap-5 @xl:grid-cols-2 @4xl:grid-cols-3`},b={key:3,class:`text-sm text-muted-foreground`},x={__name:`LatestNews`,props:{block:{type:Object,required:!0}},setup(x){return(S,C)=>(o(),i(`section`,null,[x.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(x.block.data.title),1),x.block.props?.more_url?(o(),u(n(f),{key:0,href:x.block.props.more_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[C[0]||=t(` Alle anzeigen `,-1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])):d(``,!0),x.block.data.layout===`list`?(o(),i(`div`,v,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(h,{key:e.id,post:e},null,8,[`post`]))),128))])):(o(),i(`div`,y,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(m,{key:e.id,post:e},null,8,[`post`]))),128))])),(x.block.props?.posts??[]).length?d(``,!0):(o(),i(`p`,b,`Keine Beiträge.`))]))}};export{x as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Cw5f57va.js";import{t as p}from"./chevron-right-C9w5cb2q.js";import{t as m}from"./NewsCard-I-pDKDv_.js";import{t as h}from"./NewsListItem-DMWr_1cQ.js";var g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={key:1,class:`divide-y rounded-lg border bg-card px-4`},y={key:2,class:`grid gap-5 @xl:grid-cols-2 @4xl:grid-cols-3`},b={key:3,class:`text-sm text-muted-foreground`},x={__name:`LatestNews`,props:{block:{type:Object,required:!0}},setup(x){return(S,C)=>(o(),i(`section`,null,[x.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(x.block.data.title),1),x.block.props?.more_url?(o(),u(n(f),{key:0,href:x.block.props.more_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[C[0]||=t(` Alle anzeigen `,-1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])):d(``,!0),x.block.data.layout===`list`?(o(),i(`div`,v,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(h,{key:e.id,post:e},null,8,[`post`]))),128))])):(o(),i(`div`,y,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(m,{key:e.id,post:e},null,8,[`post`]))),128))])),(x.block.props?.posts??[]).length?d(``,!0):(o(),i(`p`,b,`Keine Beiträge.`))]))}};export{x as default}; \ No newline at end of file diff --git a/public/build/assets/Login-C2kwLFlQ.js b/public/build/assets/Login-BtMrXBfG.js similarity index 97% rename from public/build/assets/Login-C2kwLFlQ.js rename to public/build/assets/Login-BtMrXBfG.js index 21e1372a..a409b848 100644 --- a/public/build/assets/Login-C2kwLFlQ.js +++ b/public/build/assets/Login-BtMrXBfG.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{n as D,r as O}from"./app-CNhdlRDG.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{t as q}from"./button-ZHC5mKey.js";import{t as J}from"./Input-FGSb2-yK.js";import{t as Y}from"./GuestLayout-Ces130Hf.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=O({email:``,password:``,remember:!1});function i(){t.preview||r.post(`/login`,{onFinish:()=>r.reset(`password`)})}return(t,s)=>(h(),y(Y,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:_(()=>[e.status?(h(),u(`div`,se,v(e.status),1)):C(``,!0),e.identityError?(h(),u(`div`,ce,v(e.identityError),1)):C(``,!0),e.providers.length?(h(),u(`div`,le,[(h(!0),u(g,null,d(e.providers,e=>(h(),u(`a`,{key:e.slug,href:`/auth/${e.slug}/redirect`,class:`inline-flex h-11 items-center justify-center gap-3 rounded-md border border-input bg-card px-4 text-sm font-medium shadow-xs transition-colors hover:bg-accent`},[e.type===`entra`?(h(),u(`svg`,de,[...s[4]||=[l(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),l(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),l(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),l(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(h(),y(c(ee),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(h(),y(c(te),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(h(),y(c(F),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),o(` `+v(e.label),1)],8,ue))),128)),s[5]||=l(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[l(`span`,{class:`h-px flex-1 bg-border`}),o(` oder mit E-Mail und Passwort `),l(`span`,{class:`h-px flex-1 bg-border`})],-1)])):C(``,!0),l(`form`,{class:`grid gap-5`,onSubmit:E(i,[`prevent`])},[a(K,{id:`email`,label:`E-Mail-Adresse`,error:c(r).errors.email},{default:_(()=>[a(c(J),{id:`email`,modelValue:c(r).email,"onUpdate:modelValue":s[0]||=e=>c(r).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!c(r).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),a(K,{id:`password`,label:`Passwort`,error:c(r).errors.password},{default:_(()=>[l(`div`,fe,[a(c(J),{id:`password`,modelValue:c(r).password,"onUpdate:modelValue":s[1]||=e=>c(r).password=e,type:n.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!c(r).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),l(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":n.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:s[2]||=e=>n.value=!n.value},[n.value?(h(),y(c(L),{key:0,class:`size-4`})):(h(),y(c(R),{key:1,class:`size-4`}))],8,pe)])]),_:1},8,[`error`]),l(`div`,me,[a(c(G),{class:`flex items-center gap-2 text-sm font-normal`},{default:_(()=>[a(c($),{modelValue:c(r).remember,"onUpdate:modelValue":s[3]||=e=>c(r).remember=e},null,8,[`modelValue`]),s[6]||=o(` Angemeldet bleiben `,-1)]),_:1}),e.canResetPassword?(h(),y(c(D),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:_(()=>[...s[7]||=[o(` Passwort vergessen? `,-1)]]),_:1})):C(``,!0)]),a(c(q),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:c(r).processing},{default:_(()=>[c(r).processing?(h(),y(c(k),{key:0,class:`animate-spin`})):C(``,!0),s[8]||=o(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{he as default}; \ No newline at end of file +import{d as e,i as t,l as n,n as r}from"./usePrimitiveElement-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{n as D,r as O}from"./app-Cw5f57va.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{t as q}from"./button-ZHC5mKey.js";import{t as J}from"./Input-FGSb2-yK.js";import{t as Y}from"./GuestLayout-NI5YopFI.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=O({email:``,password:``,remember:!1});function i(){t.preview||r.post(`/login`,{onFinish:()=>r.reset(`password`)})}return(t,s)=>(h(),y(Y,{title:`Anmelden`,description:`Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.`},{default:_(()=>[e.status?(h(),u(`div`,se,v(e.status),1)):C(``,!0),e.identityError?(h(),u(`div`,ce,v(e.identityError),1)):C(``,!0),e.providers.length?(h(),u(`div`,le,[(h(!0),u(g,null,d(e.providers,e=>(h(),u(`a`,{key:e.slug,href:`/auth/${e.slug}/redirect`,class:`inline-flex h-11 items-center justify-center gap-3 rounded-md border border-input bg-card px-4 text-sm font-medium shadow-xs transition-colors hover:bg-accent`},[e.type===`entra`?(h(),u(`svg`,de,[...s[4]||=[l(`rect`,{x:`1`,y:`1`,width:`9`,height:`9`,fill:`#f25022`},null,-1),l(`rect`,{x:`11`,y:`1`,width:`9`,height:`9`,fill:`#7fba00`},null,-1),l(`rect`,{x:`1`,y:`11`,width:`9`,height:`9`,fill:`#00a4ef`},null,-1),l(`rect`,{x:`11`,y:`11`,width:`9`,height:`9`,fill:`#ffb900`},null,-1)]])):e.type===`ldap`?(h(),y(c(ee),{key:1,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):e.type===`saml`?(h(),y(c(te),{key:2,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})):(h(),y(c(F),{key:3,class:`size-[18px] text-muted-foreground`,"aria-hidden":`true`})),o(` `+v(e.label),1)],8,ue))),128)),s[5]||=l(`div`,{class:`my-2 flex items-center gap-3 text-xs text-muted-foreground`},[l(`span`,{class:`h-px flex-1 bg-border`}),o(` oder mit E-Mail und Passwort `),l(`span`,{class:`h-px flex-1 bg-border`})],-1)])):C(``,!0),l(`form`,{class:`grid gap-5`,onSubmit:E(i,[`prevent`])},[a(K,{id:`email`,label:`E-Mail-Adresse`,error:c(r).errors.email},{default:_(()=>[a(c(J),{id:`email`,modelValue:c(r).email,"onUpdate:modelValue":s[0]||=e=>c(r).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`,"aria-invalid":!!c(r).errors.email},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`error`]),a(K,{id:`password`,label:`Passwort`,error:c(r).errors.password},{default:_(()=>[l(`div`,fe,[a(c(J),{id:`password`,modelValue:c(r).password,"onUpdate:modelValue":s[1]||=e=>c(r).password=e,type:n.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!c(r).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),l(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":n.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:s[2]||=e=>n.value=!n.value},[n.value?(h(),y(c(L),{key:0,class:`size-4`})):(h(),y(c(R),{key:1,class:`size-4`}))],8,pe)])]),_:1},8,[`error`]),l(`div`,me,[a(c(G),{class:`flex items-center gap-2 text-sm font-normal`},{default:_(()=>[a(c($),{modelValue:c(r).remember,"onUpdate:modelValue":s[3]||=e=>c(r).remember=e},null,8,[`modelValue`]),s[6]||=o(` Angemeldet bleiben `,-1)]),_:1}),e.canResetPassword?(h(),y(c(D),{key:0,href:`/forgot-password`,class:`text-sm font-medium text-brand-text hover:underline`},{default:_(()=>[...s[7]||=[o(` Passwort vergessen? `,-1)]]),_:1})):C(``,!0)]),a(c(q),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:c(r).processing},{default:_(()=>[c(r).processing?(h(),y(c(k),{key:0,class:`animate-spin`})):C(``,!0),s[8]||=o(` Anmelden `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{he as default}; \ No newline at end of file diff --git a/public/build/assets/MyDownloads-6JcDW-Ib.js b/public/build/assets/MyDownloads-CIJYZwQE.js similarity index 85% rename from public/build/assets/MyDownloads-6JcDW-Ib.js rename to public/build/assets/MyDownloads-CIJYZwQE.js index 46508220..7d3de004 100644 --- a/public/build/assets/MyDownloads-6JcDW-Ib.js +++ b/public/build/assets/MyDownloads-CIJYZwQE.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-D91Q4hzR.js";import{t as m}from"./FileIcon-BLwyvOt_.js";import{t as h}from"./Panel-DpvMQ4up.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-BiVN_tuL.js";import{t as m}from"./FileIcon-CV058fj7.js";import{t as h}from"./Panel-DZcEmK5R.js";var g={key:0,class:`-my-1.5 grid gap-0.5`},_=[`href`],v={class:`min-w-0 flex-1 truncate text-sm`},y={__name:`MyDownloads`,props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]}},setup(y){let b=y,x=b.favorites.length?b.favorites:b.popular;return(b,S)=>(s(),d(h,{title:y.favorites.length?`Meine Downloads`:`Häufig genutzt`,"action-label":`Alle Downloads`,"action-href":`/downloads`},{default:l(()=>[n(x).length?(s(),a(`ul`,g,[(s(!0),a(c,null,o(n(x),t=>(s(),a(`li`,{key:t.id},[i(`a`,{href:t.download_url,class:`-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(m,{extension:t.extension,size:`sm`},null,8,[`extension`]),i(`span`,v,u(t.title),1)],8,_)]))),128))])):f(``,!0),y.favorites.length?f(``,!0):(s(),a(`p`,{key:1,class:r([`text-[13px] text-muted-foreground`,{"mt-3 border-t pt-3":n(x).length}])},[e(n(p),{class:`-mt-0.5 mr-1 inline size-3.5`}),S[0]||=t(`Mit dem Stern unter „Downloads“ merken Sie sich Dateien für diese Kachel. `,-1)],2))]),_:1},8,[`title`]))}};export{y as default}; \ No newline at end of file diff --git a/public/build/assets/NewColleagues-CSHb8jAl.js b/public/build/assets/NewColleagues-Bpe13yGn.js similarity index 87% rename from public/build/assets/NewColleagues-CSHb8jAl.js rename to public/build/assets/NewColleagues-Bpe13yGn.js index 4ffdb746..aa0f9352 100644 --- a/public/build/assets/NewColleagues-CSHb8jAl.js +++ b/public/build/assets/NewColleagues-Bpe13yGn.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-CNhdlRDG.js";import{p as d}from"./AppIcon-D91Q4hzR.js";import{t as f}from"./Panel-DpvMQ4up.js";var p={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},m={class:`min-w-0`},h={class:`truncate text-sm font-semibold`},g={class:`truncate text-[13px] text-muted-foreground`},_={__name:`NewColleagues`,props:{people:{type:Array,required:!0}},setup(_){return(v,y)=>(a(),l(f,{title:`Neu im Team`,"action-label":`Alle Personen`,"action-href":`/personen`},{default:s(()=>[n(`ul`,p,[(a(!0),r(o,null,i(_.people,i=>(a(),r(`li`,{key:i.id},[e(t(u),{href:`/personen/${i.id}`,class:`flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent`},{default:s(()=>[e(d,{person:i,class:`size-11`},null,8,[`person`]),n(`div`,m,[n(`div`,h,c(i.name),1),n(`div`,g,c(i.job_title||i.department),1)])]),_:2},1032,[`href`])]))),128))])]),_:1}))}};export{_ as default}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-Cw5f57va.js";import{p as d}from"./AppIcon-BiVN_tuL.js";import{t as f}from"./Panel-DZcEmK5R.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-BoAZlkoa.js b/public/build/assets/NewPageDialog-DbJDgD-q.js similarity index 91% rename from public/build/assets/NewPageDialog-BoAZlkoa.js rename to public/build/assets/NewPageDialog-DbJDgD-q.js index f1bccfb2..d9594de6 100644 --- a/public/build/assets/NewPageDialog-BoAZlkoa.js +++ b/public/build/assets/NewPageDialog-DbJDgD-q.js @@ -1 +1 @@ -import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,_ as o,b as s,mt as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{r as m}from"./app-CNhdlRDG.js";import{t as h}from"./DialogDescription-CCacFT45.js";import{t as g}from"./button-ZHC5mKey.js";import{t as _}from"./Input-FGSb2-yK.js";import{i as v,n as y,r as b,t as x}from"./dialog-37na293D.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(v),{open:D.value,"onUpdate:open":i[2]||=e=>D.value=e},{default:l(()=>[t(a(b),{class:`sm:max-w-md`},{default:l(()=>[t(a(S),null,{default:l(()=>[t(a(x),null,{default:l(()=>[n(u(e.parentId?`Unterseite anlegen`:`Neue Seite`),1)]),_:1}),e.parentId?(c(),d(a(h),{key:0},{default:l(()=>[n(`Unter „`+u(e.parentTitle)+`“. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,1)]),_:1})):(c(),d(a(h),{key:1},{default:l(()=>[...i[3]||=[n(`Auf der obersten Ebene. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,-1)]]),_:1}))]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:p(A,[`prevent`])},[o(`label`,C,[i[4]||=o(`span`,{class:`text-[13px] font-medium`},`Titel`,-1),t(a(_),{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(y),null,{default:l(()=>[t(a(g),{type:`button`,variant:`outline`,onClick:i[1]||=e=>D.value=!1},{default:l(()=>[...i[5]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(g),{type:`submit`,disabled:a(k).processing||!a(k).title.trim()},{default:l(()=>[...i[6]||=[n(`Anlegen und bearbeiten`,-1)]]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}};export{T as t}; \ No newline at end of file +import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,_ as o,b as s,mt as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{r as m}from"./app-Cw5f57va.js";import{t as h}from"./DialogDescription-9G5-5WG4.js";import{t as g}from"./button-ZHC5mKey.js";import{t as _}from"./Input-FGSb2-yK.js";import{i as v,n as y,r as b,t as x}from"./dialog-DiN2bNwR.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(v),{open:D.value,"onUpdate:open":i[2]||=e=>D.value=e},{default:l(()=>[t(a(b),{class:`sm:max-w-md`},{default:l(()=>[t(a(S),null,{default:l(()=>[t(a(x),null,{default:l(()=>[n(u(e.parentId?`Unterseite anlegen`:`Neue Seite`),1)]),_:1}),e.parentId?(c(),d(a(h),{key:0},{default:l(()=>[n(`Unter „`+u(e.parentTitle)+`“. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,1)]),_:1})):(c(),d(a(h),{key:1},{default:l(()=>[...i[3]||=[n(`Auf der obersten Ebene. Die Seite ist erst nach dem Veröffentlichen sichtbar.`,-1)]]),_:1}))]),_:1}),o(`form`,{class:`grid gap-4`,onSubmit:p(A,[`prevent`])},[o(`label`,C,[i[4]||=o(`span`,{class:`text-[13px] font-medium`},`Titel`,-1),t(a(_),{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(y),null,{default:l(()=>[t(a(g),{type:`button`,variant:`outline`,onClick:i[1]||=e=>D.value=!1},{default:l(()=>[...i[5]||=[n(`Abbrechen`,-1)]]),_:1}),t(a(g),{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-CPICQVsu.js b/public/build/assets/NewsCard-I-pDKDv_.js similarity index 88% rename from public/build/assets/NewsCard-CPICQVsu.js rename to public/build/assets/NewsCard-I-pDKDv_.js index 94b5a763..fd74920c 100644 --- a/public/build/assets/NewsCard-CPICQVsu.js +++ b/public/build/assets/NewsCard-I-pDKDv_.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-CNhdlRDG.js";import{o as u}from"./format-BsuBtvUs.js";import{n as d,t as f}from"./NewsImage-0OQYtq7-.js";var p={class:`flex flex-1 flex-col p-4`},m={class:`mt-1 line-clamp-2 text-[15px] leading-snug font-semibold group-hover:underline`},h={key:0,class:`mt-1.5 line-clamp-2 text-[13px] text-muted-foreground`},g={class:`mt-auto pt-3 text-xs text-muted-foreground`},_={__name:`NewsCard`,props:{post:{type:Object,required:!0}},setup(_){return(v,y)=>(i(),s(t(l),{href:`/neuigkeiten/${_.post.slug}`,class:`group flex h-full flex-col overflow-hidden rounded-lg border bg-card transition-shadow hover:shadow-md`},{default:a(()=>[e(f,{src:_.post.thumb_url,alt:_.post.title},null,8,[`src`,`alt`]),n(`div`,p,[e(d,{category:_.post.category},null,8,[`category`]),n(`h3`,m,o(_.post.title),1),_.post.teaser?(i(),r(`p`,h,o(_.post.teaser),1)):c(``,!0),n(`p`,g,o(t(u)(_.post.published_at))+` · `+o(_.post.reading_minutes)+` Min.`,1)])]),_:1},8,[`href`]))}};export{_ as t}; \ No newline at end of file +import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./app-Cw5f57va.js";import{o as u}from"./format-BsuBtvUs.js";import{n as d,t as f}from"./NewsImage-Btt3aL1_.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-0OQYtq7-.js b/public/build/assets/NewsImage-Btt3aL1_.js similarity index 85% rename from public/build/assets/NewsImage-0OQYtq7-.js rename to public/build/assets/NewsImage-Btt3aL1_.js index e6123cca..60b7c511 100644 --- a/public/build/assets/NewsImage-0OQYtq7-.js +++ b/public/build/assets/NewsImage-Btt3aL1_.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-D91Q4hzR.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-BiVN_tuL.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-DS0x3gWo.js b/public/build/assets/NewsListItem-DMWr_1cQ.js similarity index 84% rename from public/build/assets/NewsListItem-DS0x3gWo.js rename to public/build/assets/NewsListItem-DMWr_1cQ.js index 93afe6a7..ee9060d9 100644 --- a/public/build/assets/NewsListItem-DS0x3gWo.js +++ b/public/build/assets/NewsListItem-DMWr_1cQ.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,mt as r,qt as i,tr as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as s}from"./app-CNhdlRDG.js";import{a as c}from"./format-BsuBtvUs.js";import{n as l,t as u}from"./NewsImage-0OQYtq7-.js";var d={class:`min-w-0`},f={class:`mt-0.5 line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},p={class:`mt-1 text-xs text-muted-foreground`},m={__name:`NewsListItem`,props:{post:{type:Object,required:!0}},setup(m){return(h,g)=>(r(),o(t(s),{href:`/neuigkeiten/${m.post.slug}`,class:`group flex gap-4 py-3`},{default:i(()=>[e(u,{src:m.post.thumb_url,alt:m.post.title,class:`w-28 shrink-0 rounded-md sm:w-32`},null,8,[`src`,`alt`]),n(`div`,d,[e(l,{category:m.post.category},null,8,[`category`]),n(`h3`,f,a(m.post.title),1),n(`p`,p,a(t(c)(m.post.published_at)),1)])]),_:1},8,[`href`]))}};export{m as t}; \ No newline at end of file +import{D as e,On as t,_ as n,mt as r,qt as i,tr as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as s}from"./app-Cw5f57va.js";import{a as c}from"./format-BsuBtvUs.js";import{n as l,t as u}from"./NewsImage-Btt3aL1_.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-CpMJMSw2.js b/public/build/assets/Organigram-WqC7X20P.js similarity index 98% rename from public/build/assets/Organigram-CpMJMSw2.js rename to public/build/assets/Organigram-WqC7X20P.js index 390df984..af6ea56c 100644 --- a/public/build/assets/Organigram-CpMJMSw2.js +++ b/public/build/assets/Organigram-WqC7X20P.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{a as x,n as S}from"./app-CNhdlRDG.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-D91Q4hzR.js";import{t as M}from"./AppLayout-B1gBMLPE.js";import{C as N,_ as P,t as F,y as I}from"./http-DmyDwIce.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-vFc2LbBj.js";import{t as V}from"./button-ZHC5mKey.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(N)),{key:1,class:`size-3.5`})),t(` `+h(n.person.reports)+` `+h(n.person.reports===1?`Person`:`Personen`)+` im Team `,1)],10,Z)):b(``,!0)],10,q))}},re={key:0,"aria-busy":`true`},ie={class:`org-members`},ae={class:`grid flex-1 gap-1.5`},oe={key:1},se={key:0},ce={__name:`OrgChartNode`,props:{person:{type:Object,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let l=t,u=()=>l.open.includes(l.person.id)&&l.teams[l.person.id]!==void 0,m=v(l.teams[l.person.id]??null),h=v(u()),g=v(!1);n(()=>l.teams,e=>{m.value=e[l.person.id]??m.value,h.value=u()});let y=d(()=>(m.value??[]).filter(e=>e.reports)),x=d(()=>(m.value??[]).filter(e=>!e.reports));async function S(){if(h.value=!h.value,h.value&&m.value===null){g.value=!0;try{m.value=(await F.get(`/personen/organigramm/${l.person.id}/team`)).team}catch{h.value=!1}finally{g.value=!1}}}return(n,l)=>{let u=i(`OrgChartNode`,!0);return f(),s(`li`,null,[e(Q,{person:t.person,highlighted:t.person.id===t.focus,open:h.value,loading:g.value,onToggle:S,onFocus:l[0]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`,`open`,`loading`]),h.value&&g.value?(f(),s(`ul`,re,[o(`li`,null,[o(`div`,ie,[(f(),s(p,null,c(3,t=>o(`div`,{key:t,class:`flex w-54 items-center gap-3 rounded-lg border bg-card px-3 py-2`},[e(r(U),{class:`size-7 rounded-full`}),o(`div`,ae,[e(r(U),{class:`h-3 w-3/4`}),e(r(U),{class:`h-2.5 w-1/2`})])])),64))])])])):h.value&&m.value?.length?(f(),s(`ul`,oe,[(f(!0),s(p,null,c(y.value,e=>(f(),_(u,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:l[1]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128)),x.value.length?(f(),s(`li`,se,[o(`div`,{class:a([`org-members`,{"org-members-wide":x.value.length>8}])},[(f(!0),s(p,null,c(x.value,e=>(f(),_(Q,{key:e.id,person:e,compact:``,highlighted:e.id===t.focus,onFocus:l[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`]))),128))],2)])):b(``,!0)])):b(``,!0)])}}},le={class:`relative overflow-hidden rounded-lg border bg-card`},ue={class:`absolute top-3 right-3 z-10 flex items-center rounded-md border bg-card shadow-xs`},de={class:`w-11 text-center text-xs text-muted-foreground tabular-nums`},fe={class:`org-tree`},pe={__name:`OrgChart`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let i=t,a=v(null),d=v(1),m=[.5,.67,.8,1,1.15];function y(e){let t=m.findIndex(e=>e>=d.value-.001);d.value=m[Math.min(m.length-1,Math.max(0,t+e))]}function b(){let e=a.value;if(!e)return;let t=e.scrollWidth/d.value;d.value=Math.max(.4,Math.min(1,(e.clientWidth-32)/t)),g(()=>e.scrollLeft=(e.scrollWidth-e.clientWidth)/2)}let x=null;function S(e){e.pointerType!==`mouse`||e.button!==0||e.target.closest(`a, button`)||(x={x:e.clientX,y:e.clientY,left:a.value.scrollLeft,top:a.value.scrollTop},a.value.setPointerCapture(e.pointerId))}function C(e){x&&(a.value.scrollLeft=x.left-(e.clientX-x.x),a.value.scrollTop=x.top-(e.clientY-x.y))}function w(){x=null}function T(){g(()=>{let e=a.value,t=i.focus&&document.getElementById(`person-${i.focus}`)||i.roots.length&&document.getElementById(`person-${i.roots[0].id}`);if(e&&t){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();e.scrollLeft+=n.left-r.left-(r.width-n.width)/2,i.focus&&(e.scrollTop+=n.top-r.top-Math.min(120,(r.height-n.height)/2))}})}return l(T),n(()=>i.focus,T),(n,i)=>(f(),s(`div`,le,[o(`div`,ue,[o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Verkleinern`,onClick:i[0]||=e=>y(-1)},[e(r(te),{class:`size-4`})]),o(`span`,de,h(Math.round(d.value*100))+` %`,1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Vergrößern`,onClick:i[1]||=e=>y(1)},[e(r(ne),{class:`size-4`})]),i[3]||=o(`span`,{class:`h-5 w-px bg-border`},null,-1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,title:`Einpassen`,"aria-label":`Einpassen`,onClick:b},[e(r(G),{class:`size-4`})])]),o(`div`,{ref_key:`canvas`,ref:a,class:`org-canvas max-h-[calc(100vh-12rem)] min-h-[18rem] cursor-grab overflow-auto active:cursor-grabbing`,onPointerdown:S,onPointermove:C,onPointerup:w,onPointercancel:w},[o(`div`,{class:`inline-block min-w-full px-8 pt-7 pb-8`,style:u({zoom:d.value})},[o(`ul`,fe,[(f(!0),s(p,null,c(t.roots,e=>(f(),_(ce,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:i[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128))])],4)],544)]))}},me={class:`grid gap-5`},he={class:`relative overflow-hidden rounded-lg border bg-card`},ge={class:`flex flex-col gap-5 p-5 sm:flex-row sm:items-center`},_e={class:`min-w-0 flex-1`},ve={class:`text-xl leading-tight font-semibold tracking-tight`},ye={key:1,class:`text-sm text-muted-foreground`},be={class:`mt-2 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},xe=[`href`],Se={key:1,class:`truncate text-muted-foreground`},Ce={class:`flex shrink-0 flex-wrap gap-2 sm:flex-col`},we={class:`rounded-lg border bg-card`},Te={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ee={class:`font-normal text-muted-foreground`},De={key:0,class:`overflow-hidden rounded-b-lg`},Oe={class:`-mr-px -mb-px grid sm:grid-cols-2 xl:grid-cols-3`},ke=[`onClick`],Ae={class:`min-w-0 flex-1`},je={class:`block truncate text-sm font-medium`},Me={class:`block truncate text-xs text-muted-foreground`},Ne=[`title`],Pe={key:0,class:`flex items-center gap-1 px-4 pb-2.5 pl-16`},Fe=[`title`,`onClick`],Ie={key:0,class:`ml-1 text-xs text-muted-foreground`},Le={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},Re={key:0,class:`grid gap-5`},ze={key:0,class:`rounded-lg border bg-card`},Be={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ve={class:`p-2`},He={key:0,class:`absolute top-9 bottom-0 left-[1.45rem] w-px bg-border`,"aria-hidden":`true`},Ue=[`onClick`],We={class:`min-w-0`},Ge={class:`block truncate text-sm font-medium`},Ke={class:`block truncate text-xs text-muted-foreground`},qe={key:1,class:`rounded-lg border bg-card`},Je={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ye={class:`font-normal text-muted-foreground`},Xe={class:`max-h-80 overflow-y-auto p-2`},Ze=[`onClick`],Qe={class:`min-w-0`},$e={class:`block truncate text-[13px] font-medium`},et={class:`block truncate text-xs text-muted-foreground`},tt={__name:`OrgFocus`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},path:{type:Array,default:()=>[]},details:{type:Object,required:!0}},emits:[`focus`,`show-in-tree`],setup(n){let i=n,l=d(()=>{let e=new Map;return[...i.roots,...Object.values(i.teams).flat()].forEach(t=>e.set(t.id,t)),e}),u=d(()=>i.path.slice(0,-1).map(e=>l.value.get(e)).filter(Boolean)),g=d(()=>u.value.at(-1)??null),v=d(()=>g.value?(i.teams[g.value.id]??[]).filter(e=>e.id!==i.details.id):[]),x=d(()=>i.teams[i.details.id]??[]),C=d(()=>[{icon:k,value:i.details.email,href:`mailto:${i.details.email}`},{icon:I,value:i.details.phone,href:i.details.phone&&`tel:${i.details.phone}`},{icon:R,value:i.details.mobile,href:i.details.mobile&&`tel:${i.details.mobile}`},{icon: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 F.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(P),{class:`size-3.5`}),l[4]||=t(` Zurücksetzen`,-1)]),_:1})])):b(``,!0),N.value.length>1?(f(),s(`ul`,ft,[(f(!0),s(p,null,c(N.value,e=>(f(),s(`li`,{key:e,class:`flex items-center gap-1.5`},[o(`span`,{class:a([`size-2.5 rounded-sm`,r(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{a as x,n as S}from"./app-Cw5f57va.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-BiVN_tuL.js";import{t as M}from"./AppLayout-9kc4awMB.js";import{C as N,_ as P,t as F,y as I}from"./http-DmyDwIce.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-r1Deze0_.js";import{t as V}from"./button-ZHC5mKey.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(N)),{key:1,class:`size-3.5`})),t(` `+h(n.person.reports)+` `+h(n.person.reports===1?`Person`:`Personen`)+` im Team `,1)],10,Z)):b(``,!0)],10,q))}},re={key:0,"aria-busy":`true`},ie={class:`org-members`},ae={class:`grid flex-1 gap-1.5`},oe={key:1},se={key:0},ce={__name:`OrgChartNode`,props:{person:{type:Object,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let l=t,u=()=>l.open.includes(l.person.id)&&l.teams[l.person.id]!==void 0,m=v(l.teams[l.person.id]??null),h=v(u()),g=v(!1);n(()=>l.teams,e=>{m.value=e[l.person.id]??m.value,h.value=u()});let y=d(()=>(m.value??[]).filter(e=>e.reports)),x=d(()=>(m.value??[]).filter(e=>!e.reports));async function S(){if(h.value=!h.value,h.value&&m.value===null){g.value=!0;try{m.value=(await F.get(`/personen/organigramm/${l.person.id}/team`)).team}catch{h.value=!1}finally{g.value=!1}}}return(n,l)=>{let u=i(`OrgChartNode`,!0);return f(),s(`li`,null,[e(Q,{person:t.person,highlighted:t.person.id===t.focus,open:h.value,loading:g.value,onToggle:S,onFocus:l[0]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`,`open`,`loading`]),h.value&&g.value?(f(),s(`ul`,re,[o(`li`,null,[o(`div`,ie,[(f(),s(p,null,c(3,t=>o(`div`,{key:t,class:`flex w-54 items-center gap-3 rounded-lg border bg-card px-3 py-2`},[e(r(U),{class:`size-7 rounded-full`}),o(`div`,ae,[e(r(U),{class:`h-3 w-3/4`}),e(r(U),{class:`h-2.5 w-1/2`})])])),64))])])])):h.value&&m.value?.length?(f(),s(`ul`,oe,[(f(!0),s(p,null,c(y.value,e=>(f(),_(u,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:l[1]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128)),x.value.length?(f(),s(`li`,se,[o(`div`,{class:a([`org-members`,{"org-members-wide":x.value.length>8}])},[(f(!0),s(p,null,c(x.value,e=>(f(),_(Q,{key:e.id,person:e,compact:``,highlighted:e.id===t.focus,onFocus:l[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`highlighted`]))),128))],2)])):b(``,!0)])):b(``,!0)])}}},le={class:`relative overflow-hidden rounded-lg border bg-card`},ue={class:`absolute top-3 right-3 z-10 flex items-center rounded-md border bg-card shadow-xs`},de={class:`w-11 text-center text-xs text-muted-foreground tabular-nums`},fe={class:`org-tree`},pe={__name:`OrgChart`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},open:{type:Array,default:()=>[]},focus:{type:Number,default:null}},emits:[`focus`],setup(t){let i=t,a=v(null),d=v(1),m=[.5,.67,.8,1,1.15];function y(e){let t=m.findIndex(e=>e>=d.value-.001);d.value=m[Math.min(m.length-1,Math.max(0,t+e))]}function b(){let e=a.value;if(!e)return;let t=e.scrollWidth/d.value;d.value=Math.max(.4,Math.min(1,(e.clientWidth-32)/t)),g(()=>e.scrollLeft=(e.scrollWidth-e.clientWidth)/2)}let x=null;function S(e){e.pointerType!==`mouse`||e.button!==0||e.target.closest(`a, button`)||(x={x:e.clientX,y:e.clientY,left:a.value.scrollLeft,top:a.value.scrollTop},a.value.setPointerCapture(e.pointerId))}function C(e){x&&(a.value.scrollLeft=x.left-(e.clientX-x.x),a.value.scrollTop=x.top-(e.clientY-x.y))}function w(){x=null}function T(){g(()=>{let e=a.value,t=i.focus&&document.getElementById(`person-${i.focus}`)||i.roots.length&&document.getElementById(`person-${i.roots[0].id}`);if(e&&t){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();e.scrollLeft+=n.left-r.left-(r.width-n.width)/2,i.focus&&(e.scrollTop+=n.top-r.top-Math.min(120,(r.height-n.height)/2))}})}return l(T),n(()=>i.focus,T),(n,i)=>(f(),s(`div`,le,[o(`div`,ue,[o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Verkleinern`,onClick:i[0]||=e=>y(-1)},[e(r(te),{class:`size-4`})]),o(`span`,de,h(Math.round(d.value*100))+` %`,1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":`Vergrößern`,onClick:i[1]||=e=>y(1)},[e(r(ne),{class:`size-4`})]),i[3]||=o(`span`,{class:`h-5 w-px bg-border`},null,-1),o(`button`,{type:`button`,class:`grid size-8 place-items-center text-muted-foreground hover:text-foreground`,title:`Einpassen`,"aria-label":`Einpassen`,onClick:b},[e(r(G),{class:`size-4`})])]),o(`div`,{ref_key:`canvas`,ref:a,class:`org-canvas max-h-[calc(100vh-12rem)] min-h-[18rem] cursor-grab overflow-auto active:cursor-grabbing`,onPointerdown:S,onPointermove:C,onPointerup:w,onPointercancel:w},[o(`div`,{class:`inline-block min-w-full px-8 pt-7 pb-8`,style:u({zoom:d.value})},[o(`ul`,fe,[(f(!0),s(p,null,c(t.roots,e=>(f(),_(ce,{key:e.id,person:e,teams:t.teams,open:t.open,focus:t.focus,onFocus:i[2]||=e=>n.$emit(`focus`,e)},null,8,[`person`,`teams`,`open`,`focus`]))),128))])],4)],544)]))}},me={class:`grid gap-5`},he={class:`relative overflow-hidden rounded-lg border bg-card`},ge={class:`flex flex-col gap-5 p-5 sm:flex-row sm:items-center`},_e={class:`min-w-0 flex-1`},ve={class:`text-xl leading-tight font-semibold tracking-tight`},ye={key:1,class:`text-sm text-muted-foreground`},be={class:`mt-2 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},xe=[`href`],Se={key:1,class:`truncate text-muted-foreground`},Ce={class:`flex shrink-0 flex-wrap gap-2 sm:flex-col`},we={class:`rounded-lg border bg-card`},Te={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ee={class:`font-normal text-muted-foreground`},De={key:0,class:`overflow-hidden rounded-b-lg`},Oe={class:`-mr-px -mb-px grid sm:grid-cols-2 xl:grid-cols-3`},ke=[`onClick`],Ae={class:`min-w-0 flex-1`},je={class:`block truncate text-sm font-medium`},Me={class:`block truncate text-xs text-muted-foreground`},Ne=[`title`],Pe={key:0,class:`flex items-center gap-1 px-4 pb-2.5 pl-16`},Fe=[`title`,`onClick`],Ie={key:0,class:`ml-1 text-xs text-muted-foreground`},Le={key:1,class:`px-4 py-3 text-[13px] text-muted-foreground`},Re={key:0,class:`grid gap-5`},ze={key:0,class:`rounded-lg border bg-card`},Be={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ve={class:`p-2`},He={key:0,class:`absolute top-9 bottom-0 left-[1.45rem] w-px bg-border`,"aria-hidden":`true`},Ue=[`onClick`],We={class:`min-w-0`},Ge={class:`block truncate text-sm font-medium`},Ke={class:`block truncate text-xs text-muted-foreground`},qe={key:1,class:`rounded-lg border bg-card`},Je={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},Ye={class:`font-normal text-muted-foreground`},Xe={class:`max-h-80 overflow-y-auto p-2`},Ze=[`onClick`],Qe={class:`min-w-0`},$e={class:`block truncate text-[13px] font-medium`},et={class:`block truncate text-xs text-muted-foreground`},tt={__name:`OrgFocus`,props:{roots:{type:Array,required:!0},teams:{type:Object,default:()=>({})},path:{type:Array,default:()=>[]},details:{type:Object,required:!0}},emits:[`focus`,`show-in-tree`],setup(n){let i=n,l=d(()=>{let e=new Map;return[...i.roots,...Object.values(i.teams).flat()].forEach(t=>e.set(t.id,t)),e}),u=d(()=>i.path.slice(0,-1).map(e=>l.value.get(e)).filter(Boolean)),g=d(()=>u.value.at(-1)??null),v=d(()=>g.value?(i.teams[g.value.id]??[]).filter(e=>e.id!==i.details.id):[]),x=d(()=>i.teams[i.details.id]??[]),C=d(()=>[{icon:k,value:i.details.email,href:`mailto:${i.details.email}`},{icon:I,value:i.details.phone,href:i.details.phone&&`tel:${i.details.phone}`},{icon:R,value:i.details.mobile,href:i.details.mobile&&`tel:${i.details.mobile}`},{icon: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 F.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(P),{class:`size-3.5`}),l[4]||=t(` Zurücksetzen`,-1)]),_:1})])):b(``,!0),N.value.length>1?(f(),s(`ul`,ft,[(f(!0),s(p,null,c(N.value,e=>(f(),s(`li`,{key:e,class:`flex items-center gap-1.5`},[o(`span`,{class:a([`size-2.5 rounded-sm`,r(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-CZctLlC9.js b/public/build/assets/PageContent-_C7Zf061.js similarity index 93% rename from public/build/assets/PageContent-CZctLlC9.js rename to public/build/assets/PageContent-_C7Zf061.js index 81055f97..5b11abce 100644 --- a/public/build/assets/PageContent-CZctLlC9.js +++ b/public/build/assets/PageContent-_C7Zf061.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-Cu4RDWrB.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-BogTHx6D.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-vFc2LbBj.js b/public/build/assets/PageHeader-r1Deze0_.js similarity index 95% rename from public/build/assets/PageHeader-vFc2LbBj.js rename to public/build/assets/PageHeader-r1Deze0_.js index fc131ddc..b7f100f6 100644 --- a/public/build/assets/PageHeader-vFc2LbBj.js +++ b/public/build/assets/PageHeader-r1Deze0_.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{n as p}from"./app-CNhdlRDG.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{n as p}from"./app-Cw5f57va.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-DpvMQ4up.js b/public/build/assets/Panel-DZcEmK5R.js similarity index 93% rename from public/build/assets/Panel-DpvMQ4up.js rename to public/build/assets/Panel-DZcEmK5R.js index 1aaacd15..c7bb07fa 100644 --- a/public/build/assets/Panel-DpvMQ4up.js +++ b/public/build/assets/Panel-DZcEmK5R.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,mt as o,qt as s,tr as c,v as l,xt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CNhdlRDG.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{n as f}from"./app-Cw5f57va.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-BItI7Tba.js b/public/build/assets/PeopleSearch-B2vVL_Be.js similarity index 93% rename from public/build/assets/PeopleSearch-BItI7Tba.js rename to public/build/assets/PeopleSearch-B2vVL_Be.js index 14292f86..8173b92d 100644 --- a/public/build/assets/PeopleSearch-BItI7Tba.js +++ b/public/build/assets/PeopleSearch-B2vVL_Be.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{a as v,n as y}from"./app-CNhdlRDG.js";import{O as b,c as x}from"./dist-DtGNiYlK.js";import{N as S,m as C}from"./AppIcon-D91Q4hzR.js";import{a as w}from"./AppLayout-B1gBMLPE.js";import{t as T}from"./http-DmyDwIce.js";import{t as E}from"./Panel-DpvMQ4up.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{a as v,n as y}from"./app-Cw5f57va.js";import{O as b,c as x}from"./dist-DtGNiYlK.js";import{N as S,m as C}from"./AppIcon-BiVN_tuL.js";import{a as w}from"./AppLayout-9kc4awMB.js";import{t as T}from"./http-DmyDwIce.js";import{t as E}from"./Panel-DZcEmK5R.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-D8ElRQZu.js b/public/build/assets/Print-IS0HlAei.js similarity index 94% rename from public/build/assets/Print-D8ElRQZu.js rename to public/build/assets/Print-IS0HlAei.js index 1a5d1705..1bc25222 100644 --- a/public/build/assets/Print-D8ElRQZu.js +++ b/public/build/assets/Print-IS0HlAei.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{t as u}from"./app-CNhdlRDG.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{t as u}from"./app-Cw5f57va.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-DCFHtZdP.js b/public/build/assets/ProfileBirthday-B4W0H6p6.js similarity index 90% rename from public/build/assets/ProfileBirthday-DCFHtZdP.js rename to public/build/assets/ProfileBirthday-B4W0H6p6.js index 50e1c71c..534fb839 100644 --- a/public/build/assets/ProfileBirthday-DCFHtZdP.js +++ b/public/build/assets/ProfileBirthday-B4W0H6p6.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,g as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as d,r as f}from"./app-CNhdlRDG.js";import{O as p}from"./dist-DtGNiYlK.js";import{$ as m}from"./AppIcon-D91Q4hzR.js";import{o as h}from"./http-DmyDwIce.js";import{t as g}from"./FormField-BoFAO4pm.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./NativeSelect-BGasRaNs.js";import{t as y}from"./Panel-DpvMQ4up.js";var b={class:`flex gap-2 text-sm text-muted-foreground`},x={class:`grid grid-cols-2 gap-4 sm:max-w-sm`},S={class:`flex justify-end gap-2 border-t pt-4`},C={__name:`ProfileBirthday`,props:{birthday:{type:Object,default:null},months:{type:Array,required:!0},scope:{type:String,default:`all`}},setup(C){let w=C,T=f({day:w.birthday?.day??null,month:w.birthday?.month??null}),E=i(()=>Array.from({length:31},(e,t)=>({value:t+1,label:String(t+1)}))),D={all:`allen Mitarbeitenden`,department:`Ihrer Abteilung`,location:`Ihrem Standort`};function O(){T.put(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.defaults(),h.success(`Geburtstag gespeichert`)}})}function k(){d.delete(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.day=null,T.month=null,T.defaults(),h.success(`Aus der Geburtstagsliste entfernt`)}})}return(i,d)=>(a(),c(y,{title:`Geburtstag`},{default:o(()=>[r(`form`,{class:`grid gap-4`,onSubmit:u(O,[`prevent`])},[r(`p`,b,[e(n(m),{class:`mt-0.5 size-4 shrink-0 text-brand-text`}),r(`span`,null,`Freiwillig: Wenn Sie Tag und Monat eintragen, erscheint Ihr Geburtstag in der Geburtstagsliste und ist `+s(D[C.scope])+` sichtbar. Das Geburtsjahr wird nicht erfasst. Austragen ist jederzeit möglich.`,1)]),r(`div`,x,[e(g,{id:`birthday-day`,label:`Tag`,error:n(T).errors.day},{default:o(()=>[e(v,{id:`birthday-day`,modelValue:n(T).day,"onUpdate:modelValue":d[0]||=e=>n(T).day=e,options:E.value,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(g,{id:`birthday-month`,label:`Monat`,error:n(T).errors.month},{default:o(()=>[e(v,{id:`birthday-month`,modelValue:n(T).month,"onUpdate:modelValue":d[1]||=e=>n(T).month=e,options:C.months,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])]),r(`div`,S,[C.birthday?(a(),c(n(_),{key:0,type:`button`,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:k},{default:o(()=>[...d[2]||=[t(`Austragen`,-1)]]),_:1})):l(``,!0),e(n(_),{type:`submit`,disabled:n(T).processing||!n(T).day||!n(T).month||!n(T).isDirty},{default:o(()=>[n(T).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),t(` `+s(C.birthday?`Speichern`:`Eintragen`),1)]),_:1},8,[`disabled`])])],32)]),_:1}))}};export{C as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,g as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as d,r as f}from"./app-Cw5f57va.js";import{O as p}from"./dist-DtGNiYlK.js";import{$ as m}from"./AppIcon-BiVN_tuL.js";import{o as h}from"./http-DmyDwIce.js";import{t as g}from"./FormField-BoFAO4pm.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./NativeSelect-BGasRaNs.js";import{t as y}from"./Panel-DZcEmK5R.js";var b={class:`flex gap-2 text-sm text-muted-foreground`},x={class:`grid grid-cols-2 gap-4 sm:max-w-sm`},S={class:`flex justify-end gap-2 border-t pt-4`},C={__name:`ProfileBirthday`,props:{birthday:{type:Object,default:null},months:{type:Array,required:!0},scope:{type:String,default:`all`}},setup(C){let w=C,T=f({day:w.birthday?.day??null,month:w.birthday?.month??null}),E=i(()=>Array.from({length:31},(e,t)=>({value:t+1,label:String(t+1)}))),D={all:`allen Mitarbeitenden`,department:`Ihrer Abteilung`,location:`Ihrem Standort`};function O(){T.put(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.defaults(),h.success(`Geburtstag gespeichert`)}})}function k(){d.delete(`/profil/geburtstag`,{preserveScroll:!0,onSuccess:()=>{T.day=null,T.month=null,T.defaults(),h.success(`Aus der Geburtstagsliste entfernt`)}})}return(i,d)=>(a(),c(y,{title:`Geburtstag`},{default:o(()=>[r(`form`,{class:`grid gap-4`,onSubmit:u(O,[`prevent`])},[r(`p`,b,[e(n(m),{class:`mt-0.5 size-4 shrink-0 text-brand-text`}),r(`span`,null,`Freiwillig: Wenn Sie Tag und Monat eintragen, erscheint Ihr Geburtstag in der Geburtstagsliste und ist `+s(D[C.scope])+` sichtbar. Das Geburtsjahr wird nicht erfasst. Austragen ist jederzeit möglich.`,1)]),r(`div`,x,[e(g,{id:`birthday-day`,label:`Tag`,error:n(T).errors.day},{default:o(()=>[e(v,{id:`birthday-day`,modelValue:n(T).day,"onUpdate:modelValue":d[0]||=e=>n(T).day=e,options:E.value,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`]),e(g,{id:`birthday-month`,label:`Monat`,error:n(T).errors.month},{default:o(()=>[e(v,{id:`birthday-month`,modelValue:n(T).month,"onUpdate:modelValue":d[1]||=e=>n(T).month=e,options:C.months,placeholder:`–`},null,8,[`modelValue`,`options`])]),_:1},8,[`error`])]),r(`div`,S,[C.birthday?(a(),c(n(_),{key:0,type:`button`,variant:`ghost`,class:`text-destructive hover:text-destructive`,onClick:k},{default:o(()=>[...d[2]||=[t(`Austragen`,-1)]]),_:1})):l(``,!0),e(n(_),{type:`submit`,disabled:n(T).processing||!n(T).day||!n(T).month||!n(T).isDirty},{default:o(()=>[n(T).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),t(` `+s(C.birthday?`Speichern`:`Eintragen`),1)]),_:1},8,[`disabled`])])],32)]),_:1}))}};export{C as default}; \ No newline at end of file diff --git a/public/build/assets/ProfileIncomplete-NP3idsCe.js b/public/build/assets/ProfileIncomplete-CI6iRmMQ.js similarity index 82% rename from public/build/assets/ProfileIncomplete-NP3idsCe.js rename to public/build/assets/ProfileIncomplete-CI6iRmMQ.js index 703dc155..27827933 100644 --- a/public/build/assets/ProfileIncomplete-NP3idsCe.js +++ b/public/build/assets/ProfileIncomplete-CI6iRmMQ.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,mt as r,qt as i,v as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as o}from"./app-CNhdlRDG.js";import{r as s}from"./AppLayout-B1gBMLPE.js";var c={__name:`ProfileIncomplete`,setup(c){return(c,l)=>(r(),a(t(o),{href:`/profil/bearbeiten`,class:`flex items-start gap-3 rounded-lg border border-dashed border-brand-300 bg-card p-4 transition-colors hover:bg-brand-soft`},{default:i(()=>[e(t(s),{class:`mt-0.5 size-5 shrink-0 text-brand-text`}),l[0]||=n(`div`,null,[n(`div`,{class:`text-sm font-semibold`},`Profil vervollständigen`),n(`p`,{class:`mt-0.5 text-[13px] text-muted-foreground`},`Mit Foto und Funktion finden Kolleginnen und Kollegen Sie schneller.`)],-1)]),_:1}))}};export{c as default}; \ No newline at end of file +import{D as e,On as t,_ as n,mt as r,qt as i,v as a}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as o}from"./app-Cw5f57va.js";import{r as s}from"./AppLayout-9kc4awMB.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-D0RtqPjX.js b/public/build/assets/QmSearchBox-zTKdUUQq.js similarity index 85% rename from public/build/assets/QmSearchBox-D0RtqPjX.js rename to public/build/assets/QmSearchBox-zTKdUUQq.js index 76c9f3e8..2a81b2b2 100644 --- a/public/build/assets/QmSearchBox-D0RtqPjX.js +++ b/public/build/assets/QmSearchBox-zTKdUUQq.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{a as o}from"./app-CNhdlRDG.js";import{N as s}from"./AppIcon-D91Q4hzR.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{a as o}from"./app-Cw5f57va.js";import{N as s}from"./AppIcon-BiVN_tuL.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-CrOyUsMJ.js b/public/build/assets/QuickLinks-By9zb2n5.js similarity index 95% rename from public/build/assets/QuickLinks-CrOyUsMJ.js rename to public/build/assets/QuickLinks-By9zb2n5.js index 314ea075..e983624d 100644 --- a/public/build/assets/QuickLinks-CrOyUsMJ.js +++ b/public/build/assets/QuickLinks-By9zb2n5.js @@ -1 +1 @@ -import{D as e,On as t,_ as n,b as r,bt as i,ct as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-CNhdlRDG.js";import{i as h,n as g}from"./dist-DtGNiYlK.js";import{t as _}from"./AppIcon-D91Q4hzR.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{n as m}from"./app-Cw5f57va.js";import{i as h,n as g}from"./dist-DtGNiYlK.js";import{t as _}from"./AppIcon-BiVN_tuL.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-DuP0jqCM.js b/public/build/assets/ResetPassword-BrYYK4qj.js similarity index 93% rename from public/build/assets/ResetPassword-DuP0jqCM.js rename to public/build/assets/ResetPassword-BrYYK4qj.js index 7fbb416b..82cfd7f9 100644 --- a/public/build/assets/ResetPassword-DuP0jqCM.js +++ b/public/build/assets/ResetPassword-BrYYK4qj.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as c}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{r as l}from"./app-CNhdlRDG.js";import{O as u}from"./dist-DtGNiYlK.js";import{t as d}from"./FormField-BoFAO4pm.js";import{t as f}from"./button-ZHC5mKey.js";import{t as p}from"./Input-FGSb2-yK.js";import{t as m}from"./GuestLayout-Ces130Hf.js";var h={__name:`ResetPassword`,props:{email:{type:String,default:``},token:{type:String,required:!0}},setup(h){let g=h,_=l({token:g.token,email:g.email,password:``,password_confirmation:``});function v(){_.post(`/reset-password`,{onFinish:()=>_.reset(`password`,`password_confirmation`)})}return(l,h)=>(i(),o(m,{title:`Neues Passwort festlegen`,description:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:c(v,[`prevent`])},[e(d,{id:`email`,label:`E-Mail-Adresse`,error:n(_).errors.email},{default:a(()=>[e(n(p),{id:`email`,modelValue:n(_).email,"onUpdate:modelValue":h[0]||=e=>n(_).email=e,type:`email`,autocomplete:`username`,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password`,label:`Neues Passwort`,error:n(_).errors.password},{default:a(()=>[e(n(p),{id:`password`,modelValue:n(_).password,"onUpdate:modelValue":h[1]||=e=>n(_).password=e,type:`password`,autocomplete:`new-password`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(d,{id:`password_confirmation`,label:`Passwort wiederholen`},{default:a(()=>[e(n(p),{id:`password_confirmation`,modelValue:n(_).password_confirmation,"onUpdate:modelValue":h[2]||=e=>n(_).password_confirmation=e,type:`password`,autocomplete:`new-password`,class:`h-10`},null,8,[`modelValue`])]),_:1}),e(n(f),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(_).processing},{default:a(()=>[n(_).processing?(i(),o(n(u),{key:0,class:`animate-spin`})):s(``,!0),h[3]||=t(` Passwort speichern `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{h as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as c}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{r as l}from"./app-Cw5f57va.js";import{O as u}from"./dist-DtGNiYlK.js";import{t as d}from"./FormField-BoFAO4pm.js";import{t as f}from"./button-ZHC5mKey.js";import{t as p}from"./Input-FGSb2-yK.js";import{t as m}from"./GuestLayout-NI5YopFI.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-CMfIpwZS.js b/public/build/assets/RichTextEditor-CA2m8pIz.js similarity index 99% rename from public/build/assets/RichTextEditor-CMfIpwZS.js rename to public/build/assets/RichTextEditor-CA2m8pIz.js index e4e3088e..6bafc4b4 100644 --- a/public/build/assets/RichTextEditor-CMfIpwZS.js +++ b/public/build/assets/RichTextEditor-CA2m8pIz.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,vn as y,xn as b,y as x}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as te,x as ne}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{O as re,k as S}from"./dist-DtGNiYlK.js";import{H as ie,k as ae}from"./AppIcon-D91Q4hzR.js";import{t as oe}from"./check-AfxJa8Ew.js";import{_ as se}from"./http-DmyDwIce.js";import{t as ce}from"./list-DHYGZ2vt.js";import{t as le}from"./quote-CAgJDpoy.js";var ue=S({name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]}),de=S({name:`heading-2`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]}),fe=S({name:`heading-3`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]}),pe=S({name:`image-plus`,size:24,node:[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]}),me=S({name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]}),he=S({name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]}),ge=S({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`}]]}),_e=S({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`}]]}),ve=S({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`}]]}),ye=Object.defineProperty,be=(e,t)=>{let n={};for(var r in e)ye(n,r,{get:e[r],enumerable:!0});return t||ye(n,Symbol.toStringTag,{value:`Module`}),n};function C(e){this.content=e}C.prototype={constructor:C,find:function(e){for(var t=0;t>1}},C.from=function(e){if(e instanceof C)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new C(t)};function xe(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i=56320&&e<57344}function we(e){return e>=55296&&e<56320}var w=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;te&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let e=0,a=0;at&&((an)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?Ee(t+1,i):Ee(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;ethis.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;te.type.rank-t.type.rank),n}};T.none=[];var Oe=class extends Error{},E=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Ae(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(ke(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(w.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};E.empty=new E(w.empty,0,0);function ke(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(ke(a.content,t-i-1,n-i-1)))}function Ae(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=Ae(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function je(e,t,n){if(n.openStart>e.depth)throw new Oe(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Oe(`Inconsistent open depths`);return Me(e,t,n,0)}function Me(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ie(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Fe(e.nodeAfter,r),a++));for(let e=a;ei&&Pe(e,t,i+1),o=r.depth>i&&Pe(n,r,i+1),s=[];return Ie(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Ne(a,o),Fe(Le(a,Re(e,t,n,r,i+1)),s)):(a&&Fe(Le(a,ze(e,t,i+1)),s),Ie(t,n,i,s),o&&Fe(Le(o,ze(n,r,i+1)),s)),Ie(r,null,i,s),new w(s)}function ze(e,t,n){let r=[];return Ie(null,e,n,r),e.depth>n&&Fe(Le(Pe(e,t,n+1),ze(e,t,n+1)),r),Ie(t,null,n,r),new w(r)}function Be(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(w.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Ve=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Ge(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=We.get(t);if(r)for(let e=0;ee&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Ye(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=w.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;ee.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=w.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};qe.prototype.text=void 0;var Je=class e extends qe{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ye(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Ye(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Xe(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var Ze=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Qe(t,n);if(r.next==null)return e.empty;let i=$e(r);r.next&&r.err(`Unexpected trailing text`);let a=lt(ot(i));return ut(a,r),a}matchType(e){for(let t=0;te.createAndFill()));for(let e=0;e=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n`+e.indexOf(t.next[n].next);return r}).join(` +import{f as e}from"./usePrimitiveElement-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,vn as y,xn as b,y as x}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as te,x as ne}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{O as re,k as S}from"./dist-DtGNiYlK.js";import{H as ie,k as ae}from"./AppIcon-BiVN_tuL.js";import{t as oe}from"./check-AfxJa8Ew.js";import{_ as se}from"./http-DmyDwIce.js";import{t as ce}from"./list-DHYGZ2vt.js";import{t as le}from"./quote-CAgJDpoy.js";var ue=S({name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]}),de=S({name:`heading-2`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]}),fe=S({name:`heading-3`,size:24,node:[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]}),pe=S({name:`image-plus`,size:24,node:[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]}),me=S({name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]}),he=S({name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]}),ge=S({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`}]]}),_e=S({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`}]]}),ve=S({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`}]]}),ye=Object.defineProperty,be=(e,t)=>{let n={};for(var r in e)ye(n,r,{get:e[r],enumerable:!0});return t||ye(n,Symbol.toStringTag,{value:`Module`}),n};function C(e){this.content=e}C.prototype={constructor:C,find:function(e){for(var t=0;t>1}},C.from=function(e){if(e instanceof C)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new C(t)};function xe(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i=56320&&e<57344}function we(e){return e>=55296&&e<56320}var w=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;te&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let e=0,a=0;at&&((an)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?Ee(t+1,i):Ee(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;ethis.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;te.type.rank-t.type.rank),n}};T.none=[];var Oe=class extends Error{},E=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Ae(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(ke(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(w.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};E.empty=new E(w.empty,0,0);function ke(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(ke(a.content,t-i-1,n-i-1)))}function Ae(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=Ae(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function je(e,t,n){if(n.openStart>e.depth)throw new Oe(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Oe(`Inconsistent open depths`);return Me(e,t,n,0)}function Me(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ie(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Fe(e.nodeAfter,r),a++));for(let e=a;ei&&Pe(e,t,i+1),o=r.depth>i&&Pe(n,r,i+1),s=[];return Ie(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Ne(a,o),Fe(Le(a,Re(e,t,n,r,i+1)),s)):(a&&Fe(Le(a,ze(e,t,i+1)),s),Ie(t,n,i,s),o&&Fe(Le(o,ze(n,r,i+1)),s)),Ie(r,null,i,s),new w(s)}function ze(e,t,n){let r=[];return Ie(null,e,n,r),e.depth>n&&Fe(Le(Pe(e,t,n+1),ze(e,t,n+1)),r),Ie(t,null,n,r),new w(r)}function Be(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(w.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Ve=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Ge(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=We.get(t);if(r)for(let e=0;ee&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Ye(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=w.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;ee.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=w.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};qe.prototype.text=void 0;var Je=class e extends qe{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ye(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Ye(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Xe(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var Ze=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Qe(t,n);if(r.next==null)return e.empty;let i=$e(r);r.next&&r.err(`Unexpected trailing text`);let a=lt(ot(i));return ut(a,r),a}matchType(e){for(let t=0;te.createAndFill()));for(let e=0;e=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n`+e.indexOf(t.next[n].next);return r}).join(` `)}};Ze.empty=new Ze(!0);var Qe=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function $e(e){let t=[];do t.push(et(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function et(e){let t=[];do t.push(tt(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function tt(e){let t=at(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=rt(e,t);else break;return t}function nt(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function rt(e,t){let n=nt(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:nt(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function it(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function at(e){if(e.eat(`(`)){let t=$e(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=it(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function ot(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ze(r.indexOf(e.length-1)>-1);for(let e=0;e-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ft(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new qe(this,this.computeAttrs(e),w.from(t),T.setFrom(n))}createChecked(e=null,t,n){return t=w.from(t),this.checkContent(t),new qe(this,this.computeAttrs(e),t,T.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=w.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(w.empty,!0);return i?new qe(this,e,t.append(i),T.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;tr[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function ht(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var gt=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ht(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},_t=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=pt(e,r.attrs),this.excluded=null;let i=dt(this.attrs);this.instance=i?new T(this,i):null}create(e=null){return!e&&this.instance?this.instance:new T(this,ft(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t-1}},vt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=C.from(e.nodes),t.marks=C.from(e.marks||{}),this.nodes=mt.compile(this.spec.nodes,this),this.marks=_t.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Ze.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?yt(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:yt(this,n.split(` `))}this.nodeFromJSON=e=>qe.fromJSON(this,e),this.markFromJSON=e=>T.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof mt))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Je(n,n.defaultAttrs,e,T.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function yt(e,t){let n=[];for(let r=0;r-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function bt(e){return e.tag!=null}function xt(e){return e.style!=null}var St=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(bt(e))this.tags.push(e);else if(xt(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new jt(this,t,!1);return n.addAll(e,T.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new jt(this,t,!0);return n.addAll(e,T.none,t.from,t.to),E.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;re.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r{n(e=Pt(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Pt(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},Ct={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},wt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Tt={ol:!0,ul:!0},Et=1,Dt=2,Ot=4;function kt(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?Et:0)|(t===`full`?Dt:0)}var At=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=T.none,this.match=i||(a&Ot?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(w.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Et)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=w.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(w.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Ct.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},jt=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=kt(null,t.preserveWhitespace,0)|(n?Ot:0);i=r?new At(r.type,r.attrs,T.none,!0,t.topMatch||r.type.contentMatch,a):n?new At(null,null,T.none,!0,null,a):new At(e.schema.topNodeType,null,T.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&Dt?`full`:this.localPreserveWS||(r.options&Et)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,` `);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node){if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e!(a.type?a.type.allowsMarkType(t.type):Ft(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new At(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=Et);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function Mt(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&Tt.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Nt(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Pt(e){let t={};for(let n in e)t[n]=e[n];return t}function Ft(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n{if(i.length||e.marks.length){let n=0,a=0;for(;n=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Ht(Rt(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Ht(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Lt(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Lt(e.marks)}};function Lt(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Rt(e){return e.document||window.document}var zt=new WeakMap;function Bt(e){let t=zt.get(e);return t===void 0&&zt.set(e,t=Vt(e)),t}function Vt(e){let t=null;function n(e){if(e&&typeof e==`object`){if(Array.isArray(e)){if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;iu)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=Ht(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Ut=65535,Wt=2**16;function Gt(e,t){return e+t*Wt}function Kt(e){return e&Ut}function qt(e){return(e-(e&Ut))/Wt}var Jt=1,Yt=2,Xt=4,Zt=8,Qt=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Zt)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Xt)>0}},$t=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Kt(e);if(!this.inverted)for(let e=0;ee)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Gt(o/3,e-s),f=0;return c&&(f|=e==s?Yt:e==u?Jt:Xt,(t<0?e!=s:e!=u)&&(f|=Zt)),new Qt(a,f,d)}r+=l-c}return n?e+r:new Qt(e+r,0,null)}touches(e,t){let n=0,r=Kt(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;te)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;nn&&t!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return O.fromReplace(e,this.from,this.to,i)}invert(){return new an(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};D.jsonID(`addMark`,rn);var an=class e extends D{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new E(nn(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return O.fromReplace(e,this.from,this.to,n)}invert(){return new rn(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};D.jsonID(`removeMark`,an);var on=class e extends D{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return O.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return O.fromReplace(e,this.pos,this.pos+1,new E(w.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;rr.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,E.fromJSON(t,n.slice),n.insert,!!n.structure)}};D.jsonID(`replaceAround`,ln);function un(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function dn(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;ee.step(t)),a.forEach(t=>e.step(t))}function fn(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof _t){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;ee.step(new an(t.from,t.to,t.style)))}function pn(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t=0;t--)e.step(o[t])}function mn(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function hn(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(nn;e--)t||r.index(e)>0?(t=!0,u=w.from(r.node(e).copy(u)),d++):c--;let f=w.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=w.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new ln(i,a,i,a,new E(r,0,0),n.length,!0))}function Sn(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&Tn(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&wn(e,t,n,a),pn(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new ln(c,l,c+1,l-1,new E(w.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&Cn(e,t,n,a),!1}})}function Cn(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function wn(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(` diff --git a/public/build/assets/Sample-DHynCAf7.js b/public/build/assets/Sample-DuEwRhyt.js similarity index 88% rename from public/build/assets/Sample-DHynCAf7.js rename to public/build/assets/Sample-DuEwRhyt.js index 57fd6e2d..16d6cd89 100644 --- a/public/build/assets/Sample-DHynCAf7.js +++ b/public/build/assets/Sample-DuEwRhyt.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{et as s}from"./AppIcon-D91Q4hzR.js";import{t as c}from"./AppLayout-B1gBMLPE.js";import{t as l}from"./button-ZHC5mKey.js";import{t as u}from"./Panel-DpvMQ4up.js";import{t as d}from"./Input-FGSb2-yK.js";import{t as f}from"./PageContent-CZctLlC9.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{et as s}from"./AppIcon-BiVN_tuL.js";import{t as c}from"./AppLayout-9kc4awMB.js";import{t as l}from"./button-ZHC5mKey.js";import{t as u}from"./Panel-DZcEmK5R.js";import{t as d}from"./Input-FGSb2-yK.js";import{t as f}from"./PageContent-_C7Zf061.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-DjEwUtYR.js b/public/build/assets/Search-DdiJRe5W.js similarity index 90% rename from public/build/assets/Search-DjEwUtYR.js rename to public/build/assets/Search-DdiJRe5W.js index d6f86d8e..c7bc9ebe 100644 --- a/public/build/assets/Search-DjEwUtYR.js +++ b/public/build/assets/Search-DdiJRe5W.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{n as m}from"./app-CNhdlRDG.js";import{k as h}from"./dist-DtGNiYlK.js";import{Z as g}from"./AppIcon-D91Q4hzR.js";import{t as _}from"./AppLayout-B1gBMLPE.js";import{n as v,r as y}from"./format-uZU1H-69.js";import{t as b}from"./FileIcon-BLwyvOt_.js";import{t as x}from"./search-x-BVofHEe_.js";import{t as S}from"./EmptyState-Ceq4v8mE.js";import{t as C}from"./PageHeader-vFc2LbBj.js";import{t as w}from"./colors-RDOJqd57.js";import{t as T}from"./QmSearchBox-D0RtqPjX.js";var E=h({name:`text-search`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]}),D={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},O={key:1,class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},k={class:`min-w-0 flex-1`},A={class:`flex flex-wrap items-baseline gap-x-2`},j={key:0,class:`text-xs text-muted-foreground`},M={class:`text-xs text-muted-foreground`},N=[`innerHTML`],P={key:1,class:`mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-brand-text`},F={key:1,class:`rounded-lg border bg-card`},I={__name:`Search`,props:{query:{type:String,default:``},results:{type:Array,default:()=>[]}},setup(h){let I=(e,t)=>e.open_kind===`view`?`${e.open_url}?suche=${encodeURIComponent(t)}`:e.open_url;return(L,R)=>(s(),d(_,{title:`Suche: ${h.query}`},{default:l(()=>[e(C,{title:h.query?`Suche: ${h.query}`:`Suche`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}],description:h.query?`${h.results.length} ${h.results.length,`Treffer`} im Qualitätsmanagement – in Titeln und im Text der Dokumente`:``},{actions:l(()=>[(s(),d(T,{key:h.query,initial:h.query},null,8,[`initial`]))]),_:1},8,[`title`,`description`]),h.results.length?(s(),a(`ul`,D,[(s(!0),a(c,null,o(h.results,o=>(s(),a(`li`,{key:o.id,class:`flex gap-3 px-4 py-3.5 hover:bg-accent/40`},[o.type===`file`?(s(),d(b,{key:0,extension:o.extension},null,8,[`extension`])):(s(),a(`span`,O,[o.type===`form`?(s(),d(n(g),{key:0,class:`size-5`})):(s(),d(n(y),{key:1,class:`size-5`}))])),i(`div`,k,[i(`div`,A,[(s(),d(f(o.open_kind===`view`?n(m):`a`),{href:I(o,h.query),target:o.open_kind===`link`?`_blank`:void 0,class:`text-[15px] font-semibold hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`,`target`])),o.version?(s(),a(`span`,j,`Version `+u(o.version),1)):p(``,!0),i(`span`,M,`Stand `+u(n(v)(o.valid_from)),1)]),e(n(m),{href:o.folder.url,class:`mt-0.5 inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:l(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(w)(o.folder.color).dot])},null,2),t(u(o.folder.path),1)]),_:2},1032,[`href`]),o.snippet?(s(),a(`p`,{key:0,class:`qm-snippet mt-1.5 text-[13px] leading-relaxed text-muted-foreground`,innerHTML:o.snippet},null,8,N)):p(``,!0),o.in_content?(s(),a(`p`,P,[e(n(E),{class:`size-3`}),R[0]||=t(` im Text gefunden`,-1)])):p(``,!0)])]))),128))])):h.query?(s(),a(`div`,F,[e(S,{icon:n(x),title:`Nichts gefunden`,text:`Gesucht wird in Titeln, Beschreibungen, Dateinamen und im Text der Dokumente. Eingescannte PDFs sind nur durchsuchbar, wenn die Texterkennung eingerichtet ist.`},null,8,[`icon`])])):p(``,!0)]),_:1},8,[`title`]))}};export{I as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-Cw5f57va.js";import{k as h}from"./dist-DtGNiYlK.js";import{Z as g}from"./AppIcon-BiVN_tuL.js";import{t as _}from"./AppLayout-9kc4awMB.js";import{n as v,r as y}from"./format-uZU1H-69.js";import{t as b}from"./FileIcon-CV058fj7.js";import{t as x}from"./search-x-BVofHEe_.js";import{t as S}from"./EmptyState-Ceq4v8mE.js";import{t as C}from"./PageHeader-r1Deze0_.js";import{t as w}from"./colors-RDOJqd57.js";import{t as T}from"./QmSearchBox-zTKdUUQq.js";var E=h({name:`text-search`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]}),D={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},O={key:1,class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},k={class:`min-w-0 flex-1`},A={class:`flex flex-wrap items-baseline gap-x-2`},j={key:0,class:`text-xs text-muted-foreground`},M={class:`text-xs text-muted-foreground`},N=[`innerHTML`],P={key:1,class:`mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-brand-text`},F={key:1,class:`rounded-lg border bg-card`},I={__name:`Search`,props:{query:{type:String,default:``},results:{type:Array,default:()=>[]}},setup(h){let I=(e,t)=>e.open_kind===`view`?`${e.open_url}?suche=${encodeURIComponent(t)}`:e.open_url;return(L,R)=>(s(),d(_,{title:`Suche: ${h.query}`},{default:l(()=>[e(C,{title:h.query?`Suche: ${h.query}`:`Suche`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}],description:h.query?`${h.results.length} ${h.results.length,`Treffer`} im Qualitätsmanagement – in Titeln und im Text der Dokumente`:``},{actions:l(()=>[(s(),d(T,{key:h.query,initial:h.query},null,8,[`initial`]))]),_:1},8,[`title`,`description`]),h.results.length?(s(),a(`ul`,D,[(s(!0),a(c,null,o(h.results,o=>(s(),a(`li`,{key:o.id,class:`flex gap-3 px-4 py-3.5 hover:bg-accent/40`},[o.type===`file`?(s(),d(b,{key:0,extension:o.extension},null,8,[`extension`])):(s(),a(`span`,O,[o.type===`form`?(s(),d(n(g),{key:0,class:`size-5`})):(s(),d(n(y),{key:1,class:`size-5`}))])),i(`div`,k,[i(`div`,A,[(s(),d(f(o.open_kind===`view`?n(m):`a`),{href:I(o,h.query),target:o.open_kind===`link`?`_blank`:void 0,class:`text-[15px] font-semibold hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`,`target`])),o.version?(s(),a(`span`,j,`Version `+u(o.version),1)):p(``,!0),i(`span`,M,`Stand `+u(n(v)(o.valid_from)),1)]),e(n(m),{href:o.folder.url,class:`mt-0.5 inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:l(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(w)(o.folder.color).dot])},null,2),t(u(o.folder.path),1)]),_:2},1032,[`href`]),o.snippet?(s(),a(`p`,{key:0,class:`qm-snippet mt-1.5 text-[13px] leading-relaxed text-muted-foreground`,innerHTML:o.snippet},null,8,N)):p(``,!0),o.in_content?(s(),a(`p`,P,[e(n(E),{class:`size-3`}),R[0]||=t(` im Text gefunden`,-1)])):p(``,!0)])]))),128))])):h.query?(s(),a(`div`,F,[e(S,{icon:n(x),title:`Nichts gefunden`,text:`Gesucht wird in Titeln, Beschreibungen, Dateinamen und im Text der Dokumente. Eingescannte PDFs sind nur durchsuchbar, wenn die Texterkennung eingerichtet ist.`},null,8,[`icon`])])):p(``,!0)]),_:1},8,[`title`]))}};export{I as default}; \ No newline at end of file diff --git a/public/build/assets/Show-DmhtgUb9.js b/public/build/assets/Show-C0Mic-KR.js similarity index 81% rename from public/build/assets/Show-DmhtgUb9.js rename to public/build/assets/Show-C0Mic-KR.js index 147b6869..d3014e7d 100644 --- a/public/build/assets/Show-DmhtgUb9.js +++ b/public/build/assets/Show-C0Mic-KR.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-CNhdlRDG.js";import{t as d}from"./arrow-left-BMImfTf2.js";import{t as f}from"./AppLayout-B1gBMLPE.js";import{t as p}from"./calendar-clock-8H2IkjP5.js";import{n as m}from"./format-BsuBtvUs.js";import{t as h}from"./FormRenderer-Cl4_xLIv.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{n as u}from"./app-Cw5f57va.js";import{t as d}from"./arrow-left-BMImfTf2.js";import{t as f}from"./AppLayout-9kc4awMB.js";import{t as p}from"./calendar-clock-8H2IkjP5.js";import{n as m}from"./format-BsuBtvUs.js";import{t as h}from"./FormRenderer-CbakfY2-.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-BiVdXDVT.js b/public/build/assets/Show-CBhHfB9k.js similarity index 96% rename from public/build/assets/Show-BiVdXDVT.js rename to public/build/assets/Show-CBhHfB9k.js index 7ec2c2b8..7df737bf 100644 --- a/public/build/assets/Show-BiVdXDVT.js +++ b/public/build/assets/Show-CBhHfB9k.js @@ -1 +1 @@ -import{D as e,E as t,Ht as n,On as r,_ as i,b as a,bt as o,er as ee,mt as s,o as c,qt as l,tr as u,v as d,vn as f,wt as te,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-CNhdlRDG.js";import{o as ne}from"./dist-DtGNiYlK.js";import{Q as h,V as re,X as ie,p as g}from"./AppIcon-D91Q4hzR.js";import{t as _}from"./arrow-left-BMImfTf2.js";import{t as v}from"./AppLayout-B1gBMLPE.js";import{t as y}from"./check-AfxJa8Ew.js";import{t as b}from"./link-2-DbrWevIe.js";import{t as x}from"./pen-line-22hyV1yp.js";import{n as S,o as C}from"./format-BsuBtvUs.js";import{t as w}from"./button-ZHC5mKey.js";import{t as T}from"./PageContent-CZctLlC9.js";var E={class:`fixed inset-x-0 top-0 z-50 h-1 bg-transparent`,"aria-hidden":`true`},D={class:`mb-4 flex items-center justify-between gap-4`},O={class:`relative isolate overflow-hidden rounded-xl bg-brand text-white shadow-sm`},k=[`src`,`alt`],A={key:1,class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/85 via-black/45 to-black/5`},j={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%)]`},M={class:`flex min-h-[260px] flex-col justify-end gap-3 p-6 sm:min-h-[360px] sm:p-10 lg:min-h-[420px]`},N={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`},P={class:`max-w-4xl text-3xl leading-tight font-semibold tracking-tight text-balance sm:text-4xl lg:text-[44px]`},F={key:1,class:`max-w-3xl text-base leading-relaxed text-white/85 sm:text-lg`},I={class:`mt-2 flex flex-wrap items-center gap-x-5 gap-y-2 text-sm text-white/80`},L={class:`inline-flex items-center gap-1.5`},R={class:`inline-flex items-center gap-1.5`},z={class:`mt-6 grid gap-6 lg:grid-cols-12`},B={key:0,class:`mb-8 flex items-center gap-3 border-b pb-6 lg:hidden`},ae={class:`min-w-0 text-sm`},V={key:0,class:`text-muted-foreground`},H=[`innerHTML`],U={class:`mt-10 flex flex-wrap items-center gap-2 border-t pt-6`},W=[`href`],G={class:`grid content-start gap-6 lg:col-span-4`},K={key:0,class:`rounded-xl border bg-card p-5 shadow-xs`},q={class:`min-w-0`},J={class:`block font-semibold`},oe={key:0,class:`block text-[13px] text-muted-foreground`},se={key:1,class:`rounded-xl border bg-card p-5 shadow-xs lg:sticky lg:top-20`},ce={class:`grid gap-1`},le=[`src`],ue={key:1,class:`grid h-16 w-20 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},de={class:`min-w-0`},fe={key:0,class:`block text-[10px] font-semibold tracking-wider text-accent2-text uppercase`},pe={class:`line-clamp-2 text-sm leading-snug font-medium group-hover:underline`},me={class:`block text-xs text-muted-foreground`},Y={__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}},setup(Y){let he=Y,X=f(null),Z=f(0),{y:ge}=ne();n(ge,()=>{let e=X.value;if(!e)return;let t=e.getBoundingClientRect(),n=t.height-window.innerHeight*.6;Z.value=Math.min(100,Math.max(0,-t.top/Math.max(n,1)*100))});let Q=f(!1);async function $(){try{await navigator.clipboard.writeText(window.location.href),Q.value=!0,setTimeout(()=>Q.value=!1,2e3)}catch{window.prompt(`Link zum Beitrag:`,window.location.href)}}let _e=()=>`mailto:?subject=${encodeURIComponent(he.post.title)}&body=${encodeURIComponent(window.location.href)}`;return(n,f)=>(s(),d(v,{title:Y.post.title},{default:l(()=>[i(`div`,E,[i(`div`,{class:`h-full bg-brand transition-[width] duration-150`,style:ee({width:`${Z.value}%`})},null,4)]),i(`div`,D,[e(r(m),{href:`/neuigkeiten`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:l(()=>[e(r(_),{class:`size-4`}),f[0]||=t(` Alle Neuigkeiten `,-1)]),_:1}),Y.editUrl?(s(),d(r(w),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[e(r(m),{href:Y.editUrl},{default:l(()=>[e(r(x)),f[1]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):p(``,!0)]),i(`header`,O,[Y.post.cover_url?(s(),a(`img`,{key:0,src:Y.post.cover_url,alt:Y.post.title,class:`absolute inset-0 -z-10 size-full object-cover`},null,8,k)):p(``,!0),Y.post.cover_url?(s(),a(`div`,A)):(s(),a(`div`,j)),i(`div`,M,[Y.post.category?(s(),a(`span`,N,u(Y.post.category.name),1)):p(``,!0),i(`h1`,P,u(Y.post.title),1),Y.post.teaser?(s(),a(`p`,F,u(Y.post.teaser),1)):p(``,!0),i(`div`,I,[i(`span`,L,[e(r(h),{class:`size-4`}),t(` `+u(r(S)(Y.post.published_at)),1)]),i(`span`,R,[e(r(ie),{class:`size-4`}),t(` `+u(Y.post.reading_minutes)+` Min. Lesezeit`,1)])])])]),i(`div`,z,[i(`article`,{ref_key:`article`,ref:X,class:`min-w-0 rounded-xl border bg-card p-6 shadow-xs sm:p-10 lg:col-span-8`},[Y.post.author?(s(),a(`div`,B,[e(g,{person:Y.post.author,class:`size-11`},null,8,[`person`]),i(`div`,ae,[e(r(m),{href:`/personen/${Y.post.author.id}`,class:`font-semibold hover:underline`},{default:l(()=>[t(u(Y.post.author.name),1)]),_:1},8,[`href`]),Y.post.author.job_title?(s(),a(`p`,V,u(Y.post.author.job_title),1)):p(``,!0)])])):p(``,!0),Y.content?(s(),d(T,{key:1,content:Y.content},null,8,[`content`])):(s(),a(`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:Y.post.body_html},null,8,H)),Y.form?(s(),d(T,{key:3,content:Y.form,class:`mt-10`},null,8,[`content`])):p(``,!0),i(`footer`,U,[f[3]||=i(`span`,{class:`mr-2 text-sm text-muted-foreground`},`Beitrag teilen:`,-1),e(r(w),{variant:`outline`,size:`sm`,onClick:$},{default:l(()=>[(s(),d(te(Q.value?r(y):r(b)))),t(` `+u(Q.value?`Link kopiert`:`Link kopieren`),1)]),_:1}),e(r(w),{variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[i(`a`,{href:_e()},[e(r(re)),f[2]||=t(` Per E-Mail`,-1)],8,W)]),_:1})])],512),i(`aside`,G,[Y.post.author?(s(),a(`section`,K,[f[4]||=i(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Geschrieben von`,-1),e(r(m),{href:`/personen/${Y.post.author.id}`,class:`flex items-center gap-3 rounded-lg p-1 hover:bg-accent/50`},{default:l(()=>[e(g,{person:Y.post.author,class:`size-14`},null,8,[`person`]),i(`span`,q,[i(`span`,J,u(Y.post.author.name),1),Y.post.author.job_title?(s(),a(`span`,oe,u(Y.post.author.job_title),1)):p(``,!0)])]),_:1},8,[`href`])])):p(``,!0),Y.related.data.length?(s(),a(`section`,se,[f[6]||=i(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Weitere Beiträge`,-1),i(`ul`,ce,[(s(!0),a(c,null,o(Y.related.data,t=>(s(),a(`li`,{key:t.id},[e(r(m),{href:`/neuigkeiten/${t.slug}`,class:`group flex gap-3 rounded-lg p-2 hover:bg-accent/50`},{default:l(()=>[t.thumb_url?(s(),a(`img`,{key:0,src:t.thumb_url,alt:``,loading:`lazy`,class:`h-16 w-20 shrink-0 rounded-md object-cover`},null,8,le)):(s(),a(`span`,ue,[e(r(h),{class:`size-5`})])),i(`span`,de,[t.category?(s(),a(`span`,fe,u(t.category.name),1)):p(``,!0),i(`span`,pe,u(t.title),1),i(`span`,me,u(r(C)(t.published_at)),1)])]),_:2},1032,[`href`])]))),128))]),e(r(m),{href:`/neuigkeiten`,class:`mt-3 block border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:l(()=>[...f[5]||=[t(`Alle Neuigkeiten`,-1)]]),_:1})])):p(``,!0)])])]),_:1},8,[`title`]))}};export{Y as default}; \ No newline at end of file +import{D as e,E as t,Ht as n,On as r,_ as i,b as a,bt as o,er as ee,mt as s,o as c,qt as l,tr as u,v as d,vn as f,wt as te,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-Cw5f57va.js";import{o as ne}from"./dist-DtGNiYlK.js";import{Q as h,V as re,X as ie,p as g}from"./AppIcon-BiVN_tuL.js";import{t as _}from"./arrow-left-BMImfTf2.js";import{t as v}from"./AppLayout-9kc4awMB.js";import{t as y}from"./check-AfxJa8Ew.js";import{t as b}from"./link-2-DbrWevIe.js";import{t as x}from"./pen-line-22hyV1yp.js";import{n as S,o as C}from"./format-BsuBtvUs.js";import{t as w}from"./button-ZHC5mKey.js";import{t as T}from"./PageContent-_C7Zf061.js";var E={class:`fixed inset-x-0 top-0 z-50 h-1 bg-transparent`,"aria-hidden":`true`},D={class:`mb-4 flex items-center justify-between gap-4`},O={class:`relative isolate overflow-hidden rounded-xl bg-brand text-white shadow-sm`},k=[`src`,`alt`],A={key:1,class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/85 via-black/45 to-black/5`},j={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%)]`},M={class:`flex min-h-[260px] flex-col justify-end gap-3 p-6 sm:min-h-[360px] sm:p-10 lg:min-h-[420px]`},N={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`},P={class:`max-w-4xl text-3xl leading-tight font-semibold tracking-tight text-balance sm:text-4xl lg:text-[44px]`},F={key:1,class:`max-w-3xl text-base leading-relaxed text-white/85 sm:text-lg`},I={class:`mt-2 flex flex-wrap items-center gap-x-5 gap-y-2 text-sm text-white/80`},L={class:`inline-flex items-center gap-1.5`},R={class:`inline-flex items-center gap-1.5`},z={class:`mt-6 grid gap-6 lg:grid-cols-12`},B={key:0,class:`mb-8 flex items-center gap-3 border-b pb-6 lg:hidden`},ae={class:`min-w-0 text-sm`},V={key:0,class:`text-muted-foreground`},H=[`innerHTML`],U={class:`mt-10 flex flex-wrap items-center gap-2 border-t pt-6`},W=[`href`],G={class:`grid content-start gap-6 lg:col-span-4`},K={key:0,class:`rounded-xl border bg-card p-5 shadow-xs`},q={class:`min-w-0`},J={class:`block font-semibold`},oe={key:0,class:`block text-[13px] text-muted-foreground`},se={key:1,class:`rounded-xl border bg-card p-5 shadow-xs lg:sticky lg:top-20`},ce={class:`grid gap-1`},le=[`src`],ue={key:1,class:`grid h-16 w-20 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},de={class:`min-w-0`},fe={key:0,class:`block text-[10px] font-semibold tracking-wider text-accent2-text uppercase`},pe={class:`line-clamp-2 text-sm leading-snug font-medium group-hover:underline`},me={class:`block text-xs text-muted-foreground`},Y={__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}},setup(Y){let he=Y,X=f(null),Z=f(0),{y:ge}=ne();n(ge,()=>{let e=X.value;if(!e)return;let t=e.getBoundingClientRect(),n=t.height-window.innerHeight*.6;Z.value=Math.min(100,Math.max(0,-t.top/Math.max(n,1)*100))});let Q=f(!1);async function $(){try{await navigator.clipboard.writeText(window.location.href),Q.value=!0,setTimeout(()=>Q.value=!1,2e3)}catch{window.prompt(`Link zum Beitrag:`,window.location.href)}}let _e=()=>`mailto:?subject=${encodeURIComponent(he.post.title)}&body=${encodeURIComponent(window.location.href)}`;return(n,f)=>(s(),d(v,{title:Y.post.title},{default:l(()=>[i(`div`,E,[i(`div`,{class:`h-full bg-brand transition-[width] duration-150`,style:ee({width:`${Z.value}%`})},null,4)]),i(`div`,D,[e(r(m),{href:`/neuigkeiten`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:l(()=>[e(r(_),{class:`size-4`}),f[0]||=t(` Alle Neuigkeiten `,-1)]),_:1}),Y.editUrl?(s(),d(r(w),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[e(r(m),{href:Y.editUrl},{default:l(()=>[e(r(x)),f[1]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):p(``,!0)]),i(`header`,O,[Y.post.cover_url?(s(),a(`img`,{key:0,src:Y.post.cover_url,alt:Y.post.title,class:`absolute inset-0 -z-10 size-full object-cover`},null,8,k)):p(``,!0),Y.post.cover_url?(s(),a(`div`,A)):(s(),a(`div`,j)),i(`div`,M,[Y.post.category?(s(),a(`span`,N,u(Y.post.category.name),1)):p(``,!0),i(`h1`,P,u(Y.post.title),1),Y.post.teaser?(s(),a(`p`,F,u(Y.post.teaser),1)):p(``,!0),i(`div`,I,[i(`span`,L,[e(r(h),{class:`size-4`}),t(` `+u(r(S)(Y.post.published_at)),1)]),i(`span`,R,[e(r(ie),{class:`size-4`}),t(` `+u(Y.post.reading_minutes)+` Min. Lesezeit`,1)])])])]),i(`div`,z,[i(`article`,{ref_key:`article`,ref:X,class:`min-w-0 rounded-xl border bg-card p-6 shadow-xs sm:p-10 lg:col-span-8`},[Y.post.author?(s(),a(`div`,B,[e(g,{person:Y.post.author,class:`size-11`},null,8,[`person`]),i(`div`,ae,[e(r(m),{href:`/personen/${Y.post.author.id}`,class:`font-semibold hover:underline`},{default:l(()=>[t(u(Y.post.author.name),1)]),_:1},8,[`href`]),Y.post.author.job_title?(s(),a(`p`,V,u(Y.post.author.job_title),1)):p(``,!0)])])):p(``,!0),Y.content?(s(),d(T,{key:1,content:Y.content},null,8,[`content`])):(s(),a(`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:Y.post.body_html},null,8,H)),Y.form?(s(),d(T,{key:3,content:Y.form,class:`mt-10`},null,8,[`content`])):p(``,!0),i(`footer`,U,[f[3]||=i(`span`,{class:`mr-2 text-sm text-muted-foreground`},`Beitrag teilen:`,-1),e(r(w),{variant:`outline`,size:`sm`,onClick:$},{default:l(()=>[(s(),d(te(Q.value?r(y):r(b)))),t(` `+u(Q.value?`Link kopiert`:`Link kopieren`),1)]),_:1}),e(r(w),{variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[i(`a`,{href:_e()},[e(r(re)),f[2]||=t(` Per E-Mail`,-1)],8,W)]),_:1})])],512),i(`aside`,G,[Y.post.author?(s(),a(`section`,K,[f[4]||=i(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Geschrieben von`,-1),e(r(m),{href:`/personen/${Y.post.author.id}`,class:`flex items-center gap-3 rounded-lg p-1 hover:bg-accent/50`},{default:l(()=>[e(g,{person:Y.post.author,class:`size-14`},null,8,[`person`]),i(`span`,q,[i(`span`,J,u(Y.post.author.name),1),Y.post.author.job_title?(s(),a(`span`,oe,u(Y.post.author.job_title),1)):p(``,!0)])]),_:1},8,[`href`])])):p(``,!0),Y.related.data.length?(s(),a(`section`,se,[f[6]||=i(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Weitere Beiträge`,-1),i(`ul`,ce,[(s(!0),a(c,null,o(Y.related.data,t=>(s(),a(`li`,{key:t.id},[e(r(m),{href:`/neuigkeiten/${t.slug}`,class:`group flex gap-3 rounded-lg p-2 hover:bg-accent/50`},{default:l(()=>[t.thumb_url?(s(),a(`img`,{key:0,src:t.thumb_url,alt:``,loading:`lazy`,class:`h-16 w-20 shrink-0 rounded-md object-cover`},null,8,le)):(s(),a(`span`,ue,[e(r(h),{class:`size-5`})])),i(`span`,de,[t.category?(s(),a(`span`,fe,u(t.category.name),1)):p(``,!0),i(`span`,pe,u(t.title),1),i(`span`,me,u(r(C)(t.published_at)),1)])]),_:2},1032,[`href`])]))),128))]),e(r(m),{href:`/neuigkeiten`,class:`mt-3 block border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:l(()=>[...f[5]||=[t(`Alle Neuigkeiten`,-1)]]),_:1})])):p(``,!0)])])]),_:1},8,[`title`]))}};export{Y as default}; \ No newline at end of file diff --git a/public/build/assets/Show-BSTILhYN.js b/public/build/assets/Show-CmHbTaOb.js similarity index 95% rename from public/build/assets/Show-BSTILhYN.js rename to public/build/assets/Show-CmHbTaOb.js index eb363b53..ae773244 100644 --- a/public/build/assets/Show-BSTILhYN.js +++ b/public/build/assets/Show-CmHbTaOb.js @@ -1 +1 @@ -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-CNhdlRDG.js";import{B as g,V as _,p as v}from"./AppIcon-D91Q4hzR.js";import{r as y,t as b}from"./AppLayout-B1gBMLPE.js";import{l as ee}from"./RovingFocusGroup-D88K7krN.js";import{y as x}from"./http-DmyDwIce.js";import{t as S}from"./smartphone-BE2l7T-2.js";import{t as C}from"./button-ZHC5mKey.js";import{t as w}from"./Panel-DpvMQ4up.js";var T={class:`overflow-hidden rounded-lg border bg-card`},E={class:`flex flex-col gap-4 px-6 pb-6 sm:flex-row sm:items-end sm:justify-between`},D={class:`flex flex-col gap-4 sm:flex-row sm:items-end`},O={class:`sm:pb-1`},k={class:`text-2xl font-semibold tracking-tight`},A={key:0,class:`mt-0.5 text-[15px] text-muted-foreground`},j={class:`flex gap-2 sm:pb-1`},M=[`href`],N={class:`mt-6 grid gap-6 lg:grid-cols-12`},P={class:`grid content-start gap-6 lg:col-span-5`},F={class:`grid gap-4`},I={class:`min-w-0`},te={class:`text-xs text-muted-foreground`},L={class:`truncate text-sm`},R=[`href`],z={class:`grid gap-4`},B={class:`text-xs text-muted-foreground`},V=[`href`,`target`],H={class:`grid content-start gap-6 lg:col-span-7`},U={key:0,class:`text-sm leading-relaxed whitespace-pre-line`},W={key:1,class:`text-sm text-muted-foreground`},G={key:0,class:`mb-4`},K={class:`block text-sm font-semibold`},q={class:`block text-[13px] text-muted-foreground`},J={key:1},Y={class:`flex flex-wrap gap-2`},X={__name:`Show`,props:{person:{type:Object,required:!0},isOwnProfile:{type:Boolean,default:!1}},setup(X){let Z=X,Q=s(()=>[{icon:_,label:`E-Mail`,value:Z.person.email,href:`mailto:${Z.person.email}`},{icon:x,label:`Telefon`,value:Z.person.phone,href:Z.person.phone&&`tel:${Z.person.phone}`},{icon:S,label:`Mobil`,value:Z.person.mobile,href:Z.person.mobile&&`tel:${Z.person.mobile}`},{icon:ee,label:`Abteilung`,value:Z.person.department},{icon:g,label:`Standort`,value:Z.person.location}].filter(e=>e.value));function $(e){return e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value}`:e.type===`url`&&/^https?:\/\//i.test(e.value)?e.value:null}return(s,g)=>(c(),f(b,{title:X.person.name},{default:u(()=>[i(`section`,T,[g[2]||=i(`div`,{class:`h-28 bg-brand sm:h-32`,style:{"background-image":`linear-gradient(120deg, transparent 40%, rgb(255 255 255 / 0.08))`}},null,-1),i(`div`,E,[i(`div`,D,[e(v,{person:X.person,class:`-mt-14 size-28 text-2xl ring-4 ring-card`},null,8,[`person`]),i(`div`,O,[i(`h1`,k,d(X.person.name),1),X.person.job_title?(c(),a(`p`,A,d(X.person.job_title),1)):m(``,!0)])]),i(`div`,j,[X.isOwnProfile?(c(),f(n(C),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/profil/bearbeiten`},{default:u(()=>[e(n(y)),g[0]||=t(` Profil bearbeiten`,-1)]),_:1})]),_:1})):(c(),f(n(C),{key:1,"as-child":``},{default:u(()=>[i(`a`,{href:`mailto:${X.person.email}`},[e(n(_)),g[1]||=t(` E-Mail schreiben`,-1)],8,M)]),_:1}))])])]),i(`div`,N,[i(`div`,P,[e(w,{title:`Kontakt`},{default:u(()=>[i(`dl`,F,[(c(!0),a(l,null,o(Q.value,e=>(c(),a(`div`,{key:e.label,class:`flex items-start gap-3`},[(c(),f(p(e.icon),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`})),i(`div`,I,[i(`dt`,te,d(e.label),1),i(`dd`,L,[e.href?(c(),a(`a`,{key:0,href:e.href,class:`text-brand-text hover:underline`},d(e.value),9,R)):(c(),a(l,{key:1},[t(d(e.value),1)],64))])])]))),128))])]),_:1}),X.person.fields?.length?(c(),f(w,{key:0,title:`Weitere Angaben`},{default:u(()=>[i(`dl`,z,[(c(!0),a(l,null,o(X.person.fields,e=>(c(),a(`div`,{key:e.key,class:`min-w-0`},[i(`dt`,B,d(e.label),1),i(`dd`,{class:r([`text-sm break-words`,{"whitespace-pre-line":e.type===`textarea`}])},[$(e)?(c(),a(`a`,{key:0,href:$(e),class:`text-brand-text hover:underline`,target:e.type===`url`?`_blank`:void 0,rel:`noopener`},d(e.value),9,V)):(c(),a(l,{key:1},[t(d(e.value),1)],64))],2)]))),128))])]),_:1})):m(``,!0)]),i(`div`,H,[e(w,{title:`Über mich`},{default:u(()=>[X.person.about?(c(),a(`p`,U,d(X.person.about),1)):(c(),a(`p`,W,`Noch keine Angaben.`))]),_:1}),X.person.manager||X.person.reports.length?(c(),f(w,{key:0,title:`Team`,"action-label":`Im Organigramm`,"action-href":`/personen/organigramm?person=${X.person.id}`},{default:u(()=>[X.person.manager?(c(),a(`div`,G,[g[3]||=i(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Vorgesetzte*r`,-1),e(n(h),{href:`/personen/${X.person.manager.id}`,class:`flex items-center gap-3 rounded-lg p-2 -m-2 hover:bg-accent`},{default:u(()=>[e(v,{person:X.person.manager,class:`size-10`},null,8,[`person`]),i(`span`,null,[i(`span`,K,d(X.person.manager.name),1),i(`span`,q,d(X.person.manager.job_title),1)])]),_:1},8,[`href`])])):m(``,!0),X.person.reports.length?(c(),a(`div`,J,[g[4]||=i(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Mitarbeitende`,-1),i(`div`,Y,[(c(!0),a(l,null,o(X.person.reports,t=>(c(),f(n(h),{key:t.id,href:`/personen/${t.id}`,title:t.name,class:`rounded-full hover:ring-2 hover:ring-brand-300`},{default:u(()=>[e(v,{person:t,class:`size-9`},null,8,[`person`])]),_:2},1032,[`href`,`title`]))),128))])])):m(``,!0)]),_:1},8,[`action-href`])):m(``,!0)])])]),_:1},8,[`title`]))}};export{X as default}; \ No newline at end of file +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as h}from"./app-Cw5f57va.js";import{B as g,V as _,p as v}from"./AppIcon-BiVN_tuL.js";import{r as y,t as b}from"./AppLayout-9kc4awMB.js";import{l as ee}from"./RovingFocusGroup-D88K7krN.js";import{y as x}from"./http-DmyDwIce.js";import{t as S}from"./smartphone-BE2l7T-2.js";import{t as C}from"./button-ZHC5mKey.js";import{t as w}from"./Panel-DZcEmK5R.js";var T={class:`overflow-hidden rounded-lg border bg-card`},E={class:`flex flex-col gap-4 px-6 pb-6 sm:flex-row sm:items-end sm:justify-between`},D={class:`flex flex-col gap-4 sm:flex-row sm:items-end`},O={class:`sm:pb-1`},k={class:`text-2xl font-semibold tracking-tight`},A={key:0,class:`mt-0.5 text-[15px] text-muted-foreground`},j={class:`flex gap-2 sm:pb-1`},M=[`href`],N={class:`mt-6 grid gap-6 lg:grid-cols-12`},P={class:`grid content-start gap-6 lg:col-span-5`},F={class:`grid gap-4`},I={class:`min-w-0`},te={class:`text-xs text-muted-foreground`},L={class:`truncate text-sm`},R=[`href`],z={class:`grid gap-4`},B={class:`text-xs text-muted-foreground`},V=[`href`,`target`],H={class:`grid content-start gap-6 lg:col-span-7`},U={key:0,class:`text-sm leading-relaxed whitespace-pre-line`},W={key:1,class:`text-sm text-muted-foreground`},G={key:0,class:`mb-4`},K={class:`block text-sm font-semibold`},q={class:`block text-[13px] text-muted-foreground`},J={key:1},Y={class:`flex flex-wrap gap-2`},X={__name:`Show`,props:{person:{type:Object,required:!0},isOwnProfile:{type:Boolean,default:!1}},setup(X){let Z=X,Q=s(()=>[{icon:_,label:`E-Mail`,value:Z.person.email,href:`mailto:${Z.person.email}`},{icon:x,label:`Telefon`,value:Z.person.phone,href:Z.person.phone&&`tel:${Z.person.phone}`},{icon:S,label:`Mobil`,value:Z.person.mobile,href:Z.person.mobile&&`tel:${Z.person.mobile}`},{icon:ee,label:`Abteilung`,value:Z.person.department},{icon:g,label:`Standort`,value:Z.person.location}].filter(e=>e.value));function $(e){return e.type===`email`?`mailto:${e.value}`:e.type===`phone`?`tel:${e.value}`:e.type===`url`&&/^https?:\/\//i.test(e.value)?e.value:null}return(s,g)=>(c(),f(b,{title:X.person.name},{default:u(()=>[i(`section`,T,[g[2]||=i(`div`,{class:`h-28 bg-brand sm:h-32`,style:{"background-image":`linear-gradient(120deg, transparent 40%, rgb(255 255 255 / 0.08))`}},null,-1),i(`div`,E,[i(`div`,D,[e(v,{person:X.person,class:`-mt-14 size-28 text-2xl ring-4 ring-card`},null,8,[`person`]),i(`div`,O,[i(`h1`,k,d(X.person.name),1),X.person.job_title?(c(),a(`p`,A,d(X.person.job_title),1)):m(``,!0)])]),i(`div`,j,[X.isOwnProfile?(c(),f(n(C),{key:0,variant:`outline`,"as-child":``},{default:u(()=>[e(n(h),{href:`/profil/bearbeiten`},{default:u(()=>[e(n(y)),g[0]||=t(` Profil bearbeiten`,-1)]),_:1})]),_:1})):(c(),f(n(C),{key:1,"as-child":``},{default:u(()=>[i(`a`,{href:`mailto:${X.person.email}`},[e(n(_)),g[1]||=t(` E-Mail schreiben`,-1)],8,M)]),_:1}))])])]),i(`div`,N,[i(`div`,P,[e(w,{title:`Kontakt`},{default:u(()=>[i(`dl`,F,[(c(!0),a(l,null,o(Q.value,e=>(c(),a(`div`,{key:e.label,class:`flex items-start gap-3`},[(c(),f(p(e.icon),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`})),i(`div`,I,[i(`dt`,te,d(e.label),1),i(`dd`,L,[e.href?(c(),a(`a`,{key:0,href:e.href,class:`text-brand-text hover:underline`},d(e.value),9,R)):(c(),a(l,{key:1},[t(d(e.value),1)],64))])])]))),128))])]),_:1}),X.person.fields?.length?(c(),f(w,{key:0,title:`Weitere Angaben`},{default:u(()=>[i(`dl`,z,[(c(!0),a(l,null,o(X.person.fields,e=>(c(),a(`div`,{key:e.key,class:`min-w-0`},[i(`dt`,B,d(e.label),1),i(`dd`,{class:r([`text-sm break-words`,{"whitespace-pre-line":e.type===`textarea`}])},[$(e)?(c(),a(`a`,{key:0,href:$(e),class:`text-brand-text hover:underline`,target:e.type===`url`?`_blank`:void 0,rel:`noopener`},d(e.value),9,V)):(c(),a(l,{key:1},[t(d(e.value),1)],64))],2)]))),128))])]),_:1})):m(``,!0)]),i(`div`,H,[e(w,{title:`Über mich`},{default:u(()=>[X.person.about?(c(),a(`p`,U,d(X.person.about),1)):(c(),a(`p`,W,`Noch keine Angaben.`))]),_:1}),X.person.manager||X.person.reports.length?(c(),f(w,{key:0,title:`Team`,"action-label":`Im Organigramm`,"action-href":`/personen/organigramm?person=${X.person.id}`},{default:u(()=>[X.person.manager?(c(),a(`div`,G,[g[3]||=i(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Vorgesetzte*r`,-1),e(n(h),{href:`/personen/${X.person.manager.id}`,class:`flex items-center gap-3 rounded-lg p-2 -m-2 hover:bg-accent`},{default:u(()=>[e(v,{person:X.person.manager,class:`size-10`},null,8,[`person`]),i(`span`,null,[i(`span`,K,d(X.person.manager.name),1),i(`span`,q,d(X.person.manager.job_title),1)])]),_:1},8,[`href`])])):m(``,!0),X.person.reports.length?(c(),a(`div`,J,[g[4]||=i(`div`,{class:`mb-2 text-xs text-muted-foreground`},`Mitarbeitende`,-1),i(`div`,Y,[(c(!0),a(l,null,o(X.person.reports,t=>(c(),f(n(h),{key:t.id,href:`/personen/${t.id}`,title:t.name,class:`rounded-full hover:ring-2 hover:ring-brand-300`},{default:u(()=>[e(v,{person:t,class:`size-9`},null,8,[`person`])]),_:2},1032,[`href`,`title`]))),128))])])):m(``,!0)]),_:1},8,[`action-href`])):m(``,!0)])])]),_:1},8,[`title`]))}};export{X as default}; \ No newline at end of file diff --git a/public/build/assets/Show-BDG8LCee.js b/public/build/assets/Show-DY-rwVR6.js similarity index 95% rename from public/build/assets/Show-BDG8LCee.js rename to public/build/assets/Show-DY-rwVR6.js index 0b8e520a..dd934e63 100644 --- a/public/build/assets/Show-BDG8LCee.js +++ b/public/build/assets/Show-DY-rwVR6.js @@ -1 +1 @@ -import{D as e,E as t,On as n,St as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-CNhdlRDG.js";import{t as h}from"./AppLayout-B1gBMLPE.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{t as b}from"./button-ZHC5mKey.js";import{t as x}from"./PageContent-CZctLlC9.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{n as m}from"./app-Cw5f57va.js";import{t as h}from"./AppLayout-9kc4awMB.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{t as b}from"./button-ZHC5mKey.js";import{t as x}from"./PageContent-_C7Zf061.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/Show-BEG9vqx9.js b/public/build/assets/Show-Q696w_gp.js similarity index 92% rename from public/build/assets/Show-BEG9vqx9.js rename to public/build/assets/Show-Q696w_gp.js index c8ff2ce0..4f8e0e17 100644 --- a/public/build/assets/Show-BEG9vqx9.js +++ b/public/build/assets/Show-Q696w_gp.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as u}from"./app-CNhdlRDG.js";import{k as d}from"./dist-DtGNiYlK.js";import{B as f,E as p,X as m}from"./AppIcon-D91Q4hzR.js";import{t as h}from"./arrow-left-BMImfTf2.js";import{t as g}from"./AppLayout-B1gBMLPE.js";import{r as _}from"./format-BsuBtvUs.js";import{t as v}from"./button-ZHC5mKey.js";import{t as y}from"./Panel-DpvMQ4up.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{n as u}from"./app-Cw5f57va.js";import{k as d}from"./dist-DtGNiYlK.js";import{B as f,E as p,X as m}from"./AppIcon-BiVN_tuL.js";import{t as h}from"./arrow-left-BMImfTf2.js";import{t as g}from"./AppLayout-9kc4awMB.js";import{r as _}from"./format-BsuBtvUs.js";import{t as v}from"./button-ZHC5mKey.js";import{t as y}from"./Panel-DZcEmK5R.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/Subpages-BR9n6Fgw.js b/public/build/assets/Subpages-6u013rz9.js similarity index 90% rename from public/build/assets/Subpages-BR9n6Fgw.js rename to public/build/assets/Subpages-6u013rz9.js index eef978a6..109a1a89 100644 --- a/public/build/assets/Subpages-BR9n6Fgw.js +++ b/public/build/assets/Subpages-6u013rz9.js @@ -1 +1 @@ -import{D as e,On as t,Zn as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CNhdlRDG.js";import{J as p}from"./AppIcon-D91Q4hzR.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{n as f}from"./app-Cw5f57va.js";import{J as p}from"./AppIcon-BiVN_tuL.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-B2QGxAg2.js b/public/build/assets/Text-CGtMxCm7.js similarity index 78% rename from public/build/assets/Text-B2QGxAg2.js rename to public/build/assets/Text-CGtMxCm7.js index 4aa46a62..24a73db2 100644 --- a/public/build/assets/Text-B2QGxAg2.js +++ b/public/build/assets/Text-CGtMxCm7.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RichTextEditor-CMfIpwZS.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-D91Q4hzR.js","assets/app-CNhdlRDG.js","assets/app--xQ6sxMx.css","assets/RovingFocusGroup-D88K7krN.js","assets/http-DmyDwIce.js","assets/check-AfxJa8Ew.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{o as s}from"./app-CNhdlRDG.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-CMfIpwZS.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),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-CA2m8pIz.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-BiVN_tuL.js","assets/app-Cw5f57va.js","assets/app-DHwJQed6.css","assets/RovingFocusGroup-D88K7krN.js","assets/http-DmyDwIce.js","assets/check-AfxJa8Ew.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{o as s}from"./app-Cw5f57va.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-CA2m8pIz.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),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/Upcoming-cxZQvnPW.js b/public/build/assets/Upcoming-BsnUDgJp.js similarity index 89% rename from public/build/assets/Upcoming-cxZQvnPW.js rename to public/build/assets/Upcoming-BsnUDgJp.js index 51c2ddec..60727db9 100644 --- a/public/build/assets/Upcoming-cxZQvnPW.js +++ b/public/build/assets/Upcoming-BsnUDgJp.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-DKhXwto7.js";import{t as c}from"./Panel-DpvMQ4up.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-hn5mYumD.js";import{t as c}from"./Panel-DZcEmK5R.js";var l={class:`-my-2 divide-y`},u={__name:`Upcoming`,props:{birthdays:{type:Array,required:!0},days:{type:Number,default:7}},setup(u){return(d,f)=>(r(),o(c,{title:`Geburtstage`,"action-label":`Alle`,"action-href":`/geburtstage`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.birthdays,e=>(r(),o(s,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128))])]),_:1}))}};export{u as default}; \ No newline at end of file diff --git a/public/build/assets/Upcoming-aFsc94OH.js b/public/build/assets/Upcoming-w3Yh4D5q.js similarity index 74% rename from public/build/assets/Upcoming-aFsc94OH.js rename to public/build/assets/Upcoming-w3Yh4D5q.js index 421444da..b6dba9e0 100644 --- a/public/build/assets/Upcoming-aFsc94OH.js +++ b/public/build/assets/Upcoming-w3Yh4D5q.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{Q as s}from"./AppIcon-D91Q4hzR.js";import{t as c}from"./EmptyState-Ceq4v8mE.js";import{t as l}from"./Panel-DpvMQ4up.js";import{t as u}from"./EventListItem-CVHgNRZ4.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{Q as s}from"./AppIcon-BiVN_tuL.js";import{t as c}from"./EmptyState-Ceq4v8mE.js";import{t as l}from"./Panel-DZcEmK5R.js";import{t as u}from"./EventListItem-CAVNWRwl.js";var d={key:0,class:`-my-3 divide-y`},f={__name:`Upcoming`,props:{events:{type:Array,required:!0}},setup(f){return(p,m)=>(r(),o(l,{title:`Termine`,"action-label":`Alle Termine`,"action-href":`/termine`},{default:a(()=>[f.events.length?(r(),t(`div`,d,[(r(!0),t(i,null,n(f.events,e=>(r(),o(u,{key:e.id,event:e},null,8,[`event`]))),128))])):(r(),o(c,{key:1,icon:e(s),title:`Keine anstehenden Termine`,class:`py-6`},null,8,[`icon`]))]),_:1}))}};export{f as default}; \ No newline at end of file diff --git a/public/build/assets/UpcomingEvents-B--yDfrz.js b/public/build/assets/UpcomingEvents-8VxSnGls.js similarity index 88% rename from public/build/assets/UpcomingEvents-B--yDfrz.js rename to public/build/assets/UpcomingEvents-8VxSnGls.js index 7316694d..9b5a76e3 100644 --- a/public/build/assets/UpcomingEvents-B--yDfrz.js +++ b/public/build/assets/UpcomingEvents-8VxSnGls.js @@ -1 +1 @@ -import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-CNhdlRDG.js";import{t as p}from"./chevron-right-C9w5cb2q.js";import{t as m}from"./EventListItem-CVHgNRZ4.js";var h={key:0,class:`mb-3 flex items-center justify-between gap-4`},g={class:`text-lg font-semibold`},_={class:`divide-y rounded-lg border bg-card px-4`},v={key:0,class:`py-3 text-sm text-muted-foreground`},y={__name:`UpcomingEvents`,props:{block:{type:Object,required:!0}},setup(y){return(b,x)=>(o(),i(`section`,null,[y.block.data.title?(o(),i(`div`,h,[r(`h3`,g,l(y.block.data.title),1),e(n(f),{href:`/termine`,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[x[0]||=t(`Alle Termine `,-1),e(n(p),{class:`size-3.5`})]),_:1})])):d(``,!0),r(`div`,_,[(o(!0),i(s,null,a(y.block.props?.events??[],e=>(o(),u(m,{key:e.id,event:e},null,8,[`event`]))),128)),(y.block.props?.events??[]).length?d(``,!0):(o(),i(`p`,v,`Keine anstehenden Termine.`))])]))}};export{y as default}; \ No newline at end of file +import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as f}from"./app-Cw5f57va.js";import{t as p}from"./chevron-right-C9w5cb2q.js";import{t as m}from"./EventListItem-CAVNWRwl.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-BuXggE0o.js b/public/build/assets/Video-HgmZYoTL.js similarity index 96% rename from public/build/assets/Video-BuXggE0o.js rename to public/build/assets/Video-HgmZYoTL.js index fe0b1e8d..d342d6ea 100644 --- a/public/build/assets/Video-BuXggE0o.js +++ b/public/build/assets/Video-HgmZYoTL.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-D91Q4hzR.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-BiVN_tuL.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-Dp_qMV-F.js b/public/build/assets/Viewer-D4L7c3gC.js similarity index 93% rename from public/build/assets/Viewer-Dp_qMV-F.js rename to public/build/assets/Viewer-D4L7c3gC.js index d8969178..b0097533 100644 --- a/public/build/assets/Viewer-Dp_qMV-F.js +++ b/public/build/assets/Viewer-D4L7c3gC.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-Bk5B47ch.js","assets/app-CNhdlRDG.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app--xQ6sxMx.css"])))=>i.map(i=>d[i]); -import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,er as c,it as l,mt as u,o as d,qt as f,tr as p,tt as m,v as h,vn as g,xn as _,y as v}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as y,o as b,t as x}from"./app-CNhdlRDG.js";import{O as S}from"./dist-DtGNiYlK.js";import{Y as C}from"./AppIcon-D91Q4hzR.js";import{t as w}from"./arrow-left-BMImfTf2.js";import{t as T}from"./AppLayout-B1gBMLPE.js";import{t as E}from"./download-UAAY3N2F.js";import{n as D,r as O,t as k}from"./format-uZU1H-69.js";import{t as A}from"./minus-CmsbcqBG.js";import{t as j}from"./plus-B_ij2ng2.js";import{t as M}from"./button-ZHC5mKey.js";import{t as N}from"./colors-RDOJqd57.js";var P={class:`relative flex h-full min-h-0 flex-col`},F={class:`flex items-center justify-between gap-3 border-b bg-card px-3 py-1.5 text-[13px] text-muted-foreground`},I={class:`tabular-nums`},L={class:`flex items-center rounded-md border`},R={class:`w-12 text-center tabular-nums`},z={key:0,class:`mx-auto max-w-md rounded-lg border bg-card p-6 text-center text-sm`},B={key:1,class:`grid h-full place-items-center`},V={key:2,class:`grid justify-center gap-4`},H=[`data-page`],U=[`aria-label`],W={__name:`PdfViewer`,props:{url:{type:String,required:!0}},setup(t){let r=t,f=g(null),h=_(null),v=g([]),y=g(1),x=g(1),C=g(!1),w=new Map,T;async function E(){try{let[e,t]=await Promise.all([b(()=>import(`./pdf-Bk5B47ch.js`),__vite__mapDeps([0,1,2,3,4])),b(()=>import(`./pdf.worker.min-D00xlTFB.js`),[])]);e.GlobalWorkerOptions.workerSrc=t.default,h.value=await e.getDocument({url:r.url,isEvalSupported:!1,enableXfa:!1}).promise;let n=(await h.value.getPage(1)).getViewport({scale:1}),i=Math.min(f.value.clientWidth-48,860);y.value=Math.max(.5,i/n.width),v.value=Array.from({length:h.value.numPages},(e,t)=>({number:t+1,width:n.width,height:n.height})),await m(),D()}catch(e){console.error(e),C.value=!0}}function D(){T?.disconnect(),w.clear(),T=new IntersectionObserver(e=>{for(let t of e){let e=Number(t.target.dataset.page);t.isIntersecting&&(x.value=e,O(e,t.target.querySelector(`canvas`)))}},{root:f.value,rootMargin:`400px 0px`}),f.value.querySelectorAll(`[data-page]`).forEach(e=>T.observe(e))}async function O(e,t){let n=`${e}@${y.value}`;if(!t||w.get(e)===n)return;w.set(e,n);let r=await h.value.getPage(e),i=r.getViewport({scale:y.value}),a=window.devicePixelRatio||1;t.width=Math.floor(i.width*a),t.height=Math.floor(i.height*a),t.style.width=`${Math.floor(i.width)}px`,t.style.height=`${Math.floor(i.height)}px`,await r.render({canvasContext:t.getContext(`2d`),viewport:i,transform:a===1?null:[a,0,0,a,0,0]}).promise}async function k(e){y.value=Math.min(3,Math.max(.4,Math.round((y.value+e)*10)/10)),await m(),D()}return s(E),l(()=>{T?.disconnect(),h.value?.destroy()}),(t,r)=>(u(),a(`div`,P,[i(`div`,F,[i(`span`,I,p(v.value.length?`Seite ${x.value} von ${v.value.length}`:``),1),i(`div`,L,[i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Verkleinern`,onClick:r[0]||=e=>k(-.2)},[e(n(A),{class:`size-4`})]),i(`span`,R,p(Math.round(y.value*100))+` %`,1),i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Vergrößern`,onClick:r[1]||=e=>k(.2)},[e(n(j),{class:`size-4`})])])]),i(`div`,{ref_key:`container`,ref:f,class:`min-h-0 flex-1 overflow-auto bg-muted/60 px-4 py-6`},[C.value?(u(),a(`div`,z,`Die Datei lässt sich hier nicht anzeigen. Bitte herunterladen.`)):v.value.length?(u(),a(`div`,V,[(u(!0),a(d,null,o(v.value,e=>(u(),a(`div`,{key:e.number,"data-page":e.number,class:`bg-white shadow-md`,style:c({width:`${Math.floor(e.width*y.value)}px`,height:`${Math.floor(e.height*y.value)}px`})},[i(`canvas`,{"aria-label":`Seite ${e.number}`},null,8,U)],12,H))),128))])):(u(),a(`div`,B,[e(n(S),{class:`size-6 animate-spin text-muted-foreground`})]))],512)]))}},G={class:`flex h-[calc(100vh-9.5rem)] min-h-[32rem] flex-col overflow-hidden rounded-lg border bg-card`},K={class:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b px-4 py-3`},q={class:`min-w-0 flex-1`},J={class:`truncate text-lg leading-tight font-semibold`},Y={class:`text-xs text-muted-foreground`},X={class:`flex flex-wrap items-center gap-2`},Z=[`href`],Q=[`href`],$=[`href`],ee={key:1,class:`grid min-h-0 flex-1 place-items-center overflow-auto bg-muted/60 p-6`},te=[`src`,`alt`],ne={__name:`Viewer`,props:{entry:{type:Object,required:!0},file:{type:Object,required:!0},query:{type:String,default:``}},setup(o){return(s,c)=>(u(),h(T,{title:o.entry.title},{default:f(()=>[e(n(x),{title:o.entry.title},null,8,[`title`]),i(`div`,G,[i(`header`,K,[e(n(y),{href:o.entry.folder.url,class:`grid size-9 place-items-center rounded-md hover:bg-accent`,"aria-label":`Zurück zu ${o.entry.folder.path}`},{default:f(()=>[e(n(w),{class:`size-5`})]),_:1},8,[`href`,`aria-label`]),i(`div`,q,[e(n(y),{href:o.entry.folder.url,class:`inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:underline`},{default:f(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(N)(o.entry.folder.color).dot])},null,2),t(p(o.entry.folder.path),1)]),_:1},8,[`href`]),i(`h1`,J,p(o.entry.title),1),i(`p`,Y,[o.entry.version?(u(),a(d,{key:0},[t(`Version `+p(o.entry.version)+` · `,1)],64)):v(``,!0),t(`Stand `+p(n(D)(o.entry.valid_from))+` · `+p(n(k)(o.entry.size)),1)])]),i(`div`,X,[o.entry.editable?(u(),h(n(M),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.editable.url},[e(n(C)),t(` Vorlage (`+p(o.entry.editable.extension)+`)`,1)],8,Z)]),_:1})):v(``,!0),e(n(M),{variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.file.url,target:`_blank`,rel:`noopener`},[e(n(O)),c[0]||=t(` In neuem Tab`,-1)],8,Q)]),_:1}),e(n(M),{size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.download_url},[e(n(E)),c[1]||=t(` Herunterladen`,-1)],8,$)]),_:1})])]),o.file.kind===`pdf`?(u(),h(W,{key:0,url:o.file.url,class:`min-h-0 flex-1`},null,8,[`url`])):(u(),a(`div`,ee,[i(`img`,{src:o.file.url,alt:o.entry.title,class:`max-h-full max-w-full rounded shadow-md`},null,8,te)]))])]),_:1},8,[`title`]))}};export{ne as default}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-D6hJP0n2.js","assets/app-Cw5f57va.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-DHwJQed6.css"])))=>i.map(i=>d[i]); +import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,er as c,it as l,mt as u,o as d,qt as f,tr as p,tt as m,v as h,vn as g,xn as _,y as v}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as y,o as b,t as x}from"./app-Cw5f57va.js";import{O as S}from"./dist-DtGNiYlK.js";import{Y as C}from"./AppIcon-BiVN_tuL.js";import{t as w}from"./arrow-left-BMImfTf2.js";import{t as T}from"./AppLayout-9kc4awMB.js";import{t as E}from"./download-UAAY3N2F.js";import{n as D,r as O,t as k}from"./format-uZU1H-69.js";import{t as A}from"./minus-CmsbcqBG.js";import{t as j}from"./plus-B_ij2ng2.js";import{t as M}from"./button-ZHC5mKey.js";import{t as N}from"./colors-RDOJqd57.js";var P={class:`relative flex h-full min-h-0 flex-col`},F={class:`flex items-center justify-between gap-3 border-b bg-card px-3 py-1.5 text-[13px] text-muted-foreground`},I={class:`tabular-nums`},L={class:`flex items-center rounded-md border`},R={class:`w-12 text-center tabular-nums`},z={key:0,class:`mx-auto max-w-md rounded-lg border bg-card p-6 text-center text-sm`},B={key:1,class:`grid h-full place-items-center`},V={key:2,class:`grid justify-center gap-4`},H=[`data-page`],U=[`aria-label`],W={__name:`PdfViewer`,props:{url:{type:String,required:!0}},setup(t){let r=t,f=g(null),h=_(null),v=g([]),y=g(1),x=g(1),C=g(!1),w=new Map,T;async function E(){try{let[e,t]=await Promise.all([b(()=>import(`./pdf-D6hJP0n2.js`),__vite__mapDeps([0,1,2,3,4])),b(()=>import(`./pdf.worker.min-D00xlTFB.js`),[])]);e.GlobalWorkerOptions.workerSrc=t.default,h.value=await e.getDocument({url:r.url,isEvalSupported:!1,enableXfa:!1}).promise;let n=(await h.value.getPage(1)).getViewport({scale:1}),i=Math.min(f.value.clientWidth-48,860);y.value=Math.max(.5,i/n.width),v.value=Array.from({length:h.value.numPages},(e,t)=>({number:t+1,width:n.width,height:n.height})),await m(),D()}catch(e){console.error(e),C.value=!0}}function D(){T?.disconnect(),w.clear(),T=new IntersectionObserver(e=>{for(let t of e){let e=Number(t.target.dataset.page);t.isIntersecting&&(x.value=e,O(e,t.target.querySelector(`canvas`)))}},{root:f.value,rootMargin:`400px 0px`}),f.value.querySelectorAll(`[data-page]`).forEach(e=>T.observe(e))}async function O(e,t){let n=`${e}@${y.value}`;if(!t||w.get(e)===n)return;w.set(e,n);let r=await h.value.getPage(e),i=r.getViewport({scale:y.value}),a=window.devicePixelRatio||1;t.width=Math.floor(i.width*a),t.height=Math.floor(i.height*a),t.style.width=`${Math.floor(i.width)}px`,t.style.height=`${Math.floor(i.height)}px`,await r.render({canvasContext:t.getContext(`2d`),viewport:i,transform:a===1?null:[a,0,0,a,0,0]}).promise}async function k(e){y.value=Math.min(3,Math.max(.4,Math.round((y.value+e)*10)/10)),await m(),D()}return s(E),l(()=>{T?.disconnect(),h.value?.destroy()}),(t,r)=>(u(),a(`div`,P,[i(`div`,F,[i(`span`,I,p(v.value.length?`Seite ${x.value} von ${v.value.length}`:``),1),i(`div`,L,[i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Verkleinern`,onClick:r[0]||=e=>k(-.2)},[e(n(A),{class:`size-4`})]),i(`span`,R,p(Math.round(y.value*100))+` %`,1),i(`button`,{type:`button`,class:`grid size-8 place-items-center hover:text-foreground`,"aria-label":`Vergrößern`,onClick:r[1]||=e=>k(.2)},[e(n(j),{class:`size-4`})])])]),i(`div`,{ref_key:`container`,ref:f,class:`min-h-0 flex-1 overflow-auto bg-muted/60 px-4 py-6`},[C.value?(u(),a(`div`,z,`Die Datei lässt sich hier nicht anzeigen. Bitte herunterladen.`)):v.value.length?(u(),a(`div`,V,[(u(!0),a(d,null,o(v.value,e=>(u(),a(`div`,{key:e.number,"data-page":e.number,class:`bg-white shadow-md`,style:c({width:`${Math.floor(e.width*y.value)}px`,height:`${Math.floor(e.height*y.value)}px`})},[i(`canvas`,{"aria-label":`Seite ${e.number}`},null,8,U)],12,H))),128))])):(u(),a(`div`,B,[e(n(S),{class:`size-6 animate-spin text-muted-foreground`})]))],512)]))}},G={class:`flex h-[calc(100vh-9.5rem)] min-h-[32rem] flex-col overflow-hidden rounded-lg border bg-card`},K={class:`flex flex-wrap items-center gap-x-4 gap-y-2 border-b px-4 py-3`},q={class:`min-w-0 flex-1`},J={class:`truncate text-lg leading-tight font-semibold`},Y={class:`text-xs text-muted-foreground`},X={class:`flex flex-wrap items-center gap-2`},Z=[`href`],Q=[`href`],$=[`href`],ee={key:1,class:`grid min-h-0 flex-1 place-items-center overflow-auto bg-muted/60 p-6`},te=[`src`,`alt`],ne={__name:`Viewer`,props:{entry:{type:Object,required:!0},file:{type:Object,required:!0},query:{type:String,default:``}},setup(o){return(s,c)=>(u(),h(T,{title:o.entry.title},{default:f(()=>[e(n(x),{title:o.entry.title},null,8,[`title`]),i(`div`,G,[i(`header`,K,[e(n(y),{href:o.entry.folder.url,class:`grid size-9 place-items-center rounded-md hover:bg-accent`,"aria-label":`Zurück zu ${o.entry.folder.path}`},{default:f(()=>[e(n(w),{class:`size-5`})]),_:1},8,[`href`,`aria-label`]),i(`div`,q,[e(n(y),{href:o.entry.folder.url,class:`inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:underline`},{default:f(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(N)(o.entry.folder.color).dot])},null,2),t(p(o.entry.folder.path),1)]),_:1},8,[`href`]),i(`h1`,J,p(o.entry.title),1),i(`p`,Y,[o.entry.version?(u(),a(d,{key:0},[t(`Version `+p(o.entry.version)+` · `,1)],64)):v(``,!0),t(`Stand `+p(n(D)(o.entry.valid_from))+` · `+p(n(k)(o.entry.size)),1)])]),i(`div`,X,[o.entry.editable?(u(),h(n(M),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.editable.url},[e(n(C)),t(` Vorlage (`+p(o.entry.editable.extension)+`)`,1)],8,Z)]),_:1})):v(``,!0),e(n(M),{variant:`outline`,size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.file.url,target:`_blank`,rel:`noopener`},[e(n(O)),c[0]||=t(` In neuem Tab`,-1)],8,Q)]),_:1}),e(n(M),{size:`sm`,"as-child":``},{default:f(()=>[i(`a`,{href:o.entry.download_url},[e(n(E)),c[1]||=t(` Herunterladen`,-1)],8,$)]),_:1})])]),o.file.kind===`pdf`?(u(),h(W,{key:0,url:o.file.url,class:`min-h-0 flex-1`},null,8,[`url`])):(u(),a(`div`,ee,[i(`img`,{src:o.file.url,alt:o.entry.title,class:`max-h-full max-w-full rounded shadow-md`},null,8,te)]))])]),_:1},8,[`title`]))}};export{ne as default}; \ No newline at end of file diff --git a/public/build/assets/app--xQ6sxMx.css b/public/build/assets/app--xQ6sxMx.css deleted file mode 100644 index e844e243..00000000 --- a/public/build/assets/app--xQ6sxMx.css +++ /dev/null @@ -1,2 +0,0 @@ -/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:var(--font-body);--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-700:oklch(55.3% .195 38.402);--color-orange-800:oklch(47% .157 37.304);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-50:oklch(98.2% .018 155.826);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-700:oklch(52.7% .154 150.069);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-50:oklch(98.4% .014 180.72);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-950:oklch(27.7% .046 192.524);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-950:oklch(25.7% .09 281.288);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-950:oklch(28.3% .141 291.089);--color-pink-500:oklch(65.6% .241 354.308);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-rose-950:oklch(27.1% .105 12.094);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:oklch(97% 0 none);--color-neutral-200:oklch(92.2% 0 none);--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:calc(var(--radius) + 4px);--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-md:12px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-body);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv11", "ss01"}h1,h2,h3,h4,.font-heading{font-family:var(--font-heading)}}@layer components;@layer utilities{.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-x-2{inset-inline:calc(var(--spacing) * 2)}.inset-x-3{inset-inline:calc(var(--spacing) * 3)}.inset-y-0{inset-block:0}.-top-1{top:calc(var(--spacing) * -1)}.-top-3\.5{top:calc(var(--spacing) * -3.5)}.top-0{top:0}.top-1{top:var(--spacing)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.top-9{top:calc(var(--spacing) * 9)}.top-20{top:calc(var(--spacing) * 20)}.top-24{top:calc(var(--spacing) * 24)}.top-\[-1px\]{top:-1px}.top-\[50\%\]{top:50%}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.-right-4{right:calc(var(--spacing) * -4)}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-1{bottom:calc(var(--spacing) * -1)}.-bottom-1\.5{bottom:calc(var(--spacing) * -1.5)}.-bottom-5{bottom:calc(var(--spacing) * -5)}.bottom-0{bottom:0}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-0{left:0}.left-2{left:calc(var(--spacing) * 2)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-4{left:calc(var(--spacing) * 4)}.left-\[1\.45rem\]{left:1.45rem}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.-z-10{z-index:calc(10 * -1)}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.col-span-8{grid-column:span 8/span 8}.col-span-full{grid-column:1/-1}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container\!{width:100%!important}@media (width>=40rem){.container\!{max-width:40rem!important}}@media (width>=48rem){.container\!{max-width:48rem!important}}@media (width>=64rem){.container\!{max-width:64rem!important}}@media (width>=80rem){.container\!{max-width:80rem!important}}@media (width>=96rem){.container\!{max-width:96rem!important}}.-m-2{margin:calc(var(--spacing) * -2)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-mx-5{margin-inline:calc(var(--spacing) * -5)}.mx-0\.5{margin-inline:calc(var(--spacing) * .5)}.mx-1{margin-inline:var(--spacing)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.-my-1\.5{margin-block:calc(var(--spacing) * -1.5)}.-my-2{margin-block:calc(var(--spacing) * -2)}.-my-3{margin-block:calc(var(--spacing) * -3)}.my-1{margin-block:var(--spacing)}.my-1\.5{margin-block:calc(var(--spacing) * 1.5)}.my-2{margin-block:calc(var(--spacing) * 2)}.my-8{margin-block:calc(var(--spacing) * 8)}.my-auto{margin-block:auto}.me-3{margin-inline-end:calc(var(--spacing) * 3)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-0\.5{margin-top:calc(var(--spacing) * -.5)}.-mt-1{margin-top:calc(var(--spacing) * -1)}.-mt-2{margin-top:calc(var(--spacing) * -2)}.-mt-3{margin-top:calc(var(--spacing) * -3)}.-mt-4{margin-top:calc(var(--spacing) * -4)}.-mt-5{margin-top:calc(var(--spacing) * -5)}.-mt-14{margin-top:calc(var(--spacing) * -14)}.-mt-px{margin-top:-1px}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-auto{margin-top:auto}.-mr-px{margin-right:-1px}.mr-1{margin-right:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-6{margin-right:calc(var(--spacing) * 6)}.mr-auto{margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-2{margin-left:calc(var(--spacing) * -2)}.-ml-px{margin-left:-1px}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-6\.5{margin-left:calc(var(--spacing) * 6.5)}.ml-12{margin-left:calc(var(--spacing) * 12)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\!hidden{display:none!important}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline\!{display:inline!important}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table\!{display:table!important}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[16\/10\]{aspect-ratio:16/10}.aspect-\[21\/9\]{aspect-ratio:21/9}.aspect-\[210\/297\]{aspect-ratio:210/297}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-1\/4{width:25%;height:25%}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-4\.5{width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-24{width:calc(var(--spacing) * 24);height:calc(var(--spacing) * 24)}.size-28{width:calc(var(--spacing) * 28);height:calc(var(--spacing) * 28)}.size-32{width:calc(var(--spacing) * 32);height:calc(var(--spacing) * 32)}.size-\[9px\]{width:9px;height:9px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-\(--reka-select-trigger-height\){height:var(--reka-select-trigger-height)}.h-0{height:0}.h-1{height:var(--spacing)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-28{height:calc(var(--spacing) * 28)}.h-32{height:calc(var(--spacing) * 32)}.h-\[1\.15rem\]{height:1.15rem}.h-\[3px\]{height:3px}.h-\[18px\]{height:18px}.h-\[23\.5px\]{height:23.5px}.h-\[56px\]{height:56px}.h-\[85vh\]{height:85vh}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-\[calc\(100vh-9\.5rem\)\]{height:calc(100vh - 9.5rem)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-\(--reka-dropdown-menu-content-available-height\){max-height:var(--reka-dropdown-menu-content-available-height)}.max-h-\(--reka-select-content-available-height\){max-height:var(--reka-select-content-available-height)}.max-h-10{max-height:calc(var(--spacing) * 10)}.max-h-36{max-height:calc(var(--spacing) * 36)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-60{max-height:calc(var(--spacing) * 60)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[36rem\]{max-height:36rem}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[82vh\]{max-height:82vh}.max-h-\[calc\(100vh-12rem\)\]{max-height:calc(100vh - 12rem)}.max-h-\[min\(70vh\,560px\)\]{max-height:min(70vh,560px)}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-32{min-height:calc(var(--spacing) * 32)}.min-h-48{min-height:calc(var(--spacing) * 48)}.min-h-72{min-height:calc(var(--spacing) * 72)}.min-h-96{min-height:calc(var(--spacing) * 96)}.min-h-\[18rem\]{min-height:18rem}.min-h-\[32rem\]{min-height:32rem}.min-h-\[260px\]{min-height:260px}.min-h-dvh{min-height:100dvh}.min-h-screen{min-height:100vh}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-28{width:calc(var(--spacing) * 28)}.w-54{width:calc(var(--spacing) * 54)}.w-56{width:calc(var(--spacing) * 56)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[18px\]{width:18px}.w-\[22rem\]{width:22rem}.w-\[78\%\]{width:78%}.w-\[116px\]{width:116px}.w-\[340px\]{width:340px}.w-\[min\(92vw\,30rem\)\]{width:min(92vw,30rem)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\(--reka-dropdown-menu-content-available-width\){max-width:var(--reka-dropdown-menu-content-available-width)}.max-w-\(--reka-popover-content-available-width\){max-width:var(--reka-popover-content-available-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-10{max-width:calc(var(--spacing) * 10)}.max-w-150{max-width:calc(var(--spacing) * 150)}.max-w-\[390px\]{max-width:390px}.max-w-\[400px\]{max-width:400px}.max-w-\[440px\]{max-width:440px}.max-w-\[768px\]{max-width:768px}.max-w-\[900px\]{max-width:900px}.max-w-\[1100px\]{max-width:1100px}.max-w-\[1440px\]{max-width:1440px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-\(--reka-select-trigger-width\){min-width:var(--reka-select-trigger-width)}.min-w-0{min-width:0}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-6{min-width:calc(var(--spacing) * 6)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-28{min-width:calc(var(--spacing) * 28)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-48{min-width:calc(var(--spacing) * 48)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[8rem\]{min-width:8rem}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--reka-dropdown-menu-content-transform-origin\){transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.origin-\(--reka-popover-content-transform-origin\){transform-origin:var(--reka-popover-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0\.5{--tw-translate-y:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-45{rotate:45deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform\!{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)!important}.zoom-100{zoom:100%}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-not-allowed\!{cursor:not-allowed!important}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-zoom-in{cursor:zoom-in}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize\!{resize:both!important}.resize-none{resize:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-start{scroll-snap-align:start}.scroll-my-1{scroll-margin-block:var(--spacing)}.scroll-px-5{scroll-padding-inline:calc(var(--spacing) * 5)}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{appearance:none}.columns-2{columns:2}.columns-3{columns:3}.columns-4{columns:4}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-\[minmax\(0\,1fr\)_6rem_7rem_6rem_9\.5rem\]{grid-template-columns:minmax(0,1fr) 6rem 7rem 6rem 9.5rem}.grid-cols-\[repeat\(auto-fill\,minmax\(7rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(7rem,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(11\.5rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(11.5rem,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(12\.5rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(12.5rem,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(13rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(13rem,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(17rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(17rem,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-items-center{justify-items:center}.gap-0{gap:0}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-12{gap:calc(var(--spacing) * 12)}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}.gap-y-1{row-gap:var(--spacing)}.gap-y-1\.5{row-gap:calc(var(--spacing) * 1.5)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}:where(.divide-neutral-200>:not(:last-child)){border-color:var(--color-neutral-200)}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.justify-self-start{justify-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[3px\]{border-radius:3px}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-full{border-top-left-radius:2147483647px;border-top-right-radius:2147483647px}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-4{border-top-style:var(--tw-border-style);border-top-width:4px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-amber-200{border-color:var(--color-amber-200)}.border-border{border-color:var(--border)}.border-brand{border-color:var(--brand)}.border-brand-200{border-color:var(--brand-200)}.border-brand-300{border-color:var(--brand-300)}.border-brand-400{border-color:var(--brand-400)}.border-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.border-destructive\/30{border-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-900{border-color:var(--color-emerald-900)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-input{border-color:var(--input)}.border-neutral-100{border-color:var(--color-neutral-100)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-red-200{border-color:var(--color-red-200)}.border-sky-200{border-color:var(--color-sky-200)}.border-transparent{border-color:#0000}.border-t-brand{border-top-color:var(--brand)}.border-t-foreground\/70{border-top-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.border-t-foreground\/70{border-top-color:color-mix(in oklab, var(--foreground) 70%, transparent)}}.border-l-brand{border-left-color:var(--brand)}.bg-accent{background-color:var(--accent)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-200{background-color:var(--color-amber-200)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-amber-700{background-color:var(--color-amber-700)}.bg-background{background-color:var(--background)}.bg-black\/8{background-color:#00000014}@supports (color:color-mix(in lab, red, red)){.bg-black\/8{background-color:color-mix(in oklab, var(--color-black) 8%, transparent)}}.bg-black\/10{background-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.bg-black\/10{background-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.bg-black\/35{background-color:#00000059}@supports (color:color-mix(in lab, red, red)){.bg-black\/35{background-color:color-mix(in oklab, var(--color-black) 35%, transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-black\/95{background-color:#000000f2}@supports (color:color-mix(in lab, red, red)){.bg-black\/95{background-color:color-mix(in oklab, var(--color-black) 95%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-700{background-color:var(--color-blue-700)}.bg-border{background-color:var(--border)}.bg-brand{background-color:var(--brand)}.bg-brand-950{background-color:var(--brand-950)}.bg-brand-soft,.bg-brand-soft\/30{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.bg-brand-soft\/30{background-color:color-mix(in oklab, var(--brand-soft) 30%, transparent)}}.bg-brand-soft\/60{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.bg-brand-soft\/60{background-color:color-mix(in oklab, var(--brand-soft) 60%, transparent)}}.bg-brand-soft\/90{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.bg-brand-soft\/90{background-color:color-mix(in oklab, var(--brand-soft) 90%, transparent)}}.bg-card,.bg-card\/90{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/90{background-color:color-mix(in oklab, var(--card) 90%, transparent)}}.bg-card\/95{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/95{background-color:color-mix(in oklab, var(--card) 95%, transparent)}}.bg-current{background-color:currentColor}.bg-destructive,.bg-destructive\/5{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/5{background-color:color-mix(in oklab, var(--destructive) 5%, transparent)}}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-200{background-color:var(--color-emerald-200)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-emerald-700{background-color:var(--color-emerald-700)}.bg-emerald-800{background-color:var(--color-emerald-800)}.bg-foreground{background-color:var(--foreground)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-300{background-color:var(--color-green-300)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-700{background-color:var(--color-green-700)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-muted,.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.bg-muted\/40{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/40{background-color:color-mix(in oklab, var(--muted) 40%, transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.bg-muted\/60{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/60{background-color:color-mix(in oklab, var(--muted) 60%, transparent)}}.bg-neutral-50{background-color:var(--color-neutral-50)}.bg-neutral-600{background-color:var(--color-neutral-600)}.bg-neutral-900{background-color:var(--color-neutral-900)}.bg-orange-50{background-color:var(--color-orange-50)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-700{background-color:var(--color-orange-700)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-600{background-color:var(--color-red-600)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-100{background-color:var(--color-rose-100)}.bg-rose-200{background-color:var(--color-rose-200)}.bg-rose-200\!{background-color:var(--color-rose-200)!important}.bg-rose-500{background-color:var(--color-rose-500)}.bg-rose-600{background-color:var(--color-rose-600)}.bg-secondary{background-color:var(--secondary)}.bg-sky-50{background-color:var(--color-sky-50)}.bg-sky-100{background-color:var(--color-sky-100)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-sky-700{background-color:var(--color-sky-700)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-teal-50{background-color:var(--color-teal-50)}.bg-teal-100{background-color:var(--color-teal-100)}.bg-teal-500{background-color:var(--color-teal-500)}.bg-teal-700{background-color:var(--color-teal-700)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-violet-50{background-color:var(--color-violet-50)}.bg-violet-100{background-color:var(--color-violet-100)}.bg-violet-500{background-color:var(--color-violet-500)}.bg-violet-600{background-color:var(--color-violet-600)}.bg-white{background-color:var(--color-white)}.bg-white\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.bg-white\/5{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.bg-white\/15{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.bg-white\/15{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.bg-white\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\/50{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.bg-white\/\[2\%\]{background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.bg-white\/\[2\%\]{background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.\[background-image\:radial-gradient\(circle_at_85\%_15\%\,white_0\,transparent_45\%\)\,radial-gradient\(circle_at_10\%_110\%\,white_0\,transparent_40\%\)\]{background-image:radial-gradient(circle at 85% 15%,#fff 0,#0000 45%),radial-gradient(circle at 10% 110%,#fff 0,#0000 40%)}.from-black\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\/70{--tw-gradient-from:color-mix(in oklab, var(--color-black) 70%, transparent)}}.from-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab, red, red)){.from-black\/80{--tw-gradient-from:color-mix(in oklab, var(--color-black) 80%, transparent)}}.from-black\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\/85{--tw-gradient-from:#000000d9}@supports (color:color-mix(in lab, red, red)){.from-black\/85{--tw-gradient-from:color-mix(in oklab, var(--color-black) 85%, transparent)}}.from-black\/85{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-gray-700\/50{--tw-gradient-from:#36415380}@supports (color:color-mix(in lab, red, red)){.from-gray-700\/50{--tw-gradient-from:color-mix(in oklab, var(--color-gray-700) 50%, transparent)}}.from-gray-700\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-black\/25{--tw-gradient-via:#00000040}@supports (color:color-mix(in lab, red, red)){.via-black\/25{--tw-gradient-via:color-mix(in oklab, var(--color-black) 25%, transparent)}}.via-black\/25{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\/30{--tw-gradient-via:#0000004d}@supports (color:color-mix(in lab, red, red)){.via-black\/30{--tw-gradient-via:color-mix(in oklab, var(--color-black) 30%, transparent)}}.via-black\/30{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\/35{--tw-gradient-via:#00000059}@supports (color:color-mix(in lab, red, red)){.via-black\/35{--tw-gradient-via:color-mix(in oklab, var(--color-black) 35%, transparent)}}.via-black\/35{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\/45{--tw-gradient-via:#00000073}@supports (color:color-mix(in lab, red, red)){.via-black\/45{--tw-gradient-via:color-mix(in oklab, var(--color-black) 45%, transparent)}}.via-black\/45{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-transparent{--tw-gradient-via:transparent;--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black\/5{--tw-gradient-to:#0000000d}@supports (color:color-mix(in lab, red, red)){.to-black\/5{--tw-gradient-to:color-mix(in oklab, var(--color-black) 5%, transparent)}}.to-black\/5{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\/10{--tw-gradient-to:#0000001a}@supports (color:color-mix(in lab, red, red)){.to-black\/10{--tw-gradient-to:color-mix(in oklab, var(--color-black) 10%, transparent)}}.to-black\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.fill-foreground{fill:var(--foreground)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-top{object-position:top}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-0\.75{padding:calc(var(--spacing) * .75)}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-\[6px\]{padding-inline:6px}.py-0{padding-block:0}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-14{padding-block:calc(var(--spacing) * 14)}.py-16{padding-block:calc(var(--spacing) * 16)}.ps-3{padding-inline-start:calc(var(--spacing) * 3)}.pt-0{padding-top:0}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-32{padding-right:calc(var(--spacing) * 32)}.pb-0{padding-bottom:0}.pb-1{padding-bottom:var(--spacing)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-12{padding-left:calc(var(--spacing) * 12)}.pl-16{padding-left:calc(var(--spacing) * 16)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-body)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/none{font-size:var(--text-xs);line-height:1}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[17px\]{font-size:17px}.text-\[22px\]{font-size:22px}.leading-3{--tw-leading:calc(var(--spacing) * 3);line-height:calc(var(--spacing) * 3)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.hyphens-auto{-webkit-hyphens:auto;hyphens:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-accent2-text{color:var(--accent2-text)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-amber-950{color:var(--color-amber-950)}.text-background{color:var(--background)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-700{color:var(--color-blue-700)}.text-blue-900{color:var(--color-blue-900)}.text-brand-foreground{color:var(--brand-foreground)}.text-brand-soft-foreground{color:var(--brand-soft-foreground)}.text-brand-text{color:var(--brand-text)}.text-brand\/10{color:var(--brand)}@supports (color:color-mix(in lab, red, red)){.text-brand\/10{color:color-mix(in oklab, var(--brand) 10%, transparent)}}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-emerald-900{color:var(--color-emerald-900)}.text-emerald-950{color:var(--color-emerald-950)}.text-foreground,.text-foreground\/70{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/70{color:color-mix(in oklab, var(--foreground) 70%, transparent)}}.text-foreground\/75{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/75{color:color-mix(in oklab, var(--foreground) 75%, transparent)}}.text-foreground\/80{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/80{color:color-mix(in oklab, var(--foreground) 80%, transparent)}}.text-foreground\/85{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/85{color:color-mix(in oklab, var(--foreground) 85%, transparent)}}.text-gray-200{color:var(--color-gray-200)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-700{color:var(--color-green-700)}.text-indigo-700{color:var(--color-indigo-700)}.text-indigo-800{color:var(--color-indigo-800)}.text-input{color:var(--input)}.text-muted{color:var(--muted)}.text-muted-foreground{color:var(--muted-foreground)}.text-neutral-100{color:var(--color-neutral-100)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-500\!{color:var(--color-neutral-500)!important}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-800{color:var(--color-neutral-800)}.text-neutral-900{color:var(--color-neutral-900)}.text-neutral-950{color:var(--color-neutral-950)}.text-orange-700{color:var(--color-orange-700)}.text-orange-800{color:var(--color-orange-800)}.text-pink-500{color:var(--color-pink-500)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-950{color:var(--color-red-950)}.text-rose-700{color:var(--color-rose-700)}.text-rose-800{color:var(--color-rose-800)}.text-rose-900{color:var(--color-rose-900)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sky-600{color:var(--color-sky-600)}.text-sky-700{color:var(--color-sky-700)}.text-sky-800{color:var(--color-sky-800)}.text-sky-950{color:var(--color-sky-950)}.text-slate-700{color:var(--color-slate-700)}.text-teal-700{color:var(--color-teal-700)}.text-teal-800{color:var(--color-teal-800)}.text-violet-700{color:var(--color-violet-700)}.text-violet-800{color:var(--color-violet-800)}.text-white{color:var(--color-white)}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-white\/85{color:#ffffffd9}@supports (color:color-mix(in lab, red, red)){.text-white\/85{color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\/90{color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.italic\!{font-style:italic!important}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline\!{text-decoration-line:underline!important}.decoration-neutral-400{-webkit-text-decoration-color:var(--color-neutral-400);-webkit-text-decoration-color:var(--color-neutral-400);-webkit-text-decoration-color:var(--color-neutral-400);text-decoration-color:var(--color-neutral-400)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.accent-\[var\(--brand\)\]{accent-color:var(--brand)}.scheme-light-dark{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){.scheme-light-dark{--lightningcss-light: ;--lightningcss-dark:initial}}.opacity-0{opacity:0}.opacity-15{opacity:.15}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-85{opacity:.85}.opacity-90{opacity:.9}.opacity-100{opacity:1}.opacity-\[0\.12\]{opacity:.12}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-3{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-gray-500\/20{--tw-shadow-color:#6a728233}@supports (color:color-mix(in lab, red, red)){.shadow-gray-500\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-gray-500) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-blue-300{--tw-ring-color:var(--color-blue-300)}.ring-border{--tw-ring-color:var(--border)}.ring-brand-300\/50{--tw-ring-color:var(--brand-300)}@supports (color:color-mix(in lab, red, red)){.ring-brand-300\/50{--tw-ring-color:color-mix(in oklab, var(--brand-300) 50%, transparent)}}.ring-brand-soft{--tw-ring-color:var(--brand-soft)}.ring-card{--tw-ring-color:var(--card)}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.ring-white\/25{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.ring-white\/25{--tw-ring-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.ring-white\/30{--tw-ring-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.ring-white\/30{--tw-ring-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline,.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-offset-2{outline-offset:2px}.outline-offset-4{outline-offset:4px}.outline-brand-300{outline-color:var(--brand-300)}.outline-brand-500{outline-color:var(--brand-500)}.outline-destructive{outline-color:var(--destructive)}.outline-transparent{outline-color:#0000}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert\!{--tw-invert:invert(100%)!important;filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.sepia{--tw-sepia:sepia(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-\[1px\]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[max-width\]{transition-property:max-width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[outline-color\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.prose-neutral{--tw-prose-body:oklch(37.1% 0 none);--tw-prose-headings:oklch(20.5% 0 none);--tw-prose-lead:oklch(43.9% 0 none);--tw-prose-links:oklch(20.5% 0 none);--tw-prose-bold:oklch(20.5% 0 none);--tw-prose-counters:oklch(55.6% 0 none);--tw-prose-bullets:oklch(87% 0 none);--tw-prose-hr:oklch(92.2% 0 none);--tw-prose-quotes:oklch(20.5% 0 none);--tw-prose-quote-borders:oklch(92.2% 0 none);--tw-prose-captions:oklch(55.6% 0 none);--tw-prose-kbd:oklch(20.5% 0 none);--tw-prose-kbd-shadows:oklab(20.5% 0 0/.1);--tw-prose-code:oklch(20.5% 0 none);--tw-prose-pre-code:oklch(92.2% 0 none);--tw-prose-pre-bg:oklch(26.9% 0 none);--tw-prose-th-borders:oklch(87% 0 none);--tw-prose-td-borders:oklch(92.2% 0 none);--tw-prose-invert-body:oklch(87% 0 none);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.8% 0 none);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.8% 0 none);--tw-prose-invert-bullets:oklch(43.9% 0 none);--tw-prose-invert-hr:oklch(37.1% 0 none);--tw-prose-invert-quotes:oklch(97% 0 none);--tw-prose-invert-quote-borders:oklch(37.1% 0 none);--tw-prose-invert-captions:oklch(70.8% 0 none);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87% 0 none);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(43.9% 0 none);--tw-prose-invert-td-borders:oklch(37.1% 0 none)}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.repeat-1{--tw-animation-iteration-count:1;animation-iteration-count:1}.repeat-2{--tw-animation-iteration-count:2;animation-iteration-count:2}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\[text-shadow\:0_1px_2px_rgb\(0_0_0\/0\.4\)\]{text-shadow:0 1px 2px #0006}.\[wire\:model\=\"\'\+i\+\'\"\]{wire:model="'+i+'"}.\[wire\:model\=\\\"\'\+expression\+\'\\\"\]{wire:model=\""+expression+"\"}.\[wire\:model\]{wire:model}.\[wire\:transition\]{wire:transition}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.fade-in{--tw-enter-opacity:0}.paused{animation-play-state:paused}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.group-focus-within\:opacity-100:is(:where(.group):focus-within *){opacity:1}.group-focus-within\/rte\:flex:is(:where(.group\/rte):focus-within *){display:flex}@media (hover:hover){.group-hover\:flex:is(:where(.group):hover *){display:flex}.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:scale-\[1\.02\]:is(:where(.group):hover *){scale:1.02}.group-hover\:text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)}.group-hover\:underline:is(:where(.group):hover *){text-decoration-line:underline}.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/card\:opacity-100:is(:where(.group\/card):hover *){opacity:1}.group-hover\/exception\:text-blue-500:is(:where(.group\/exception):hover *){color:var(--color-blue-500)}}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-\[\.status-down\]\:bg-red-600:is(:where(.group).status-down *){background-color:var(--color-red-600)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:bg-red-500 ::selection{background-color:var(--color-red-500)}.selection\:bg-red-500::selection{background-color:var(--color-red-500)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.selection\:text-white ::selection{color:var(--color-white)}.selection\:text-white::selection{color:var(--color-white)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder,.placeholder\:text-muted-foreground\/50::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.placeholder\:text-muted-foreground\/50::placeholder{color:color-mix(in oklab, var(--muted-foreground) 50%, transparent)}}.placeholder\:text-muted-foreground\/60::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.placeholder\:text-muted-foreground\/60::placeholder{color:color-mix(in oklab, var(--muted-foreground) 60%, transparent)}}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-0:after{content:var(--tw-content);inset:0}.first\:ml-0:first-child{margin-left:0}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.odd\:bg-white\/2:nth-child(odd){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.odd\:bg-white\/2:nth-child(odd){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.even\:bg-white:nth-child(2n){background-color:var(--color-white)}.focus-within\:border-brand-400:focus-within{border-color:var(--brand-400)}.focus-within\:ring-3:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:scale-\[1\.03\]:hover{scale:1.03}.hover\:border:hover{border-style:var(--tw-border-style);border-width:1px}.hover\:border-brand-300:hover{border-color:var(--brand-300)}.hover\:border-neutral-200:hover{border-color:var(--color-neutral-200)}.hover\:bg-accent:hover,.hover\:bg-accent\/40:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/40:hover{background-color:color-mix(in oklab, var(--accent) 40%, transparent)}}.hover\:bg-accent\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/50:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.hover\:bg-accent\/60:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/60:hover{background-color:color-mix(in oklab, var(--accent) 60%, transparent)}}.hover\:bg-black\/55:hover{background-color:#0000008c}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/55:hover{background-color:color-mix(in oklab, var(--color-black) 55%, transparent)}}.hover\:bg-black\/75:hover{background-color:#000000bf}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/75:hover{background-color:color-mix(in oklab, var(--color-black) 75%, transparent)}}.hover\:bg-brand-700:hover{background-color:var(--brand-700)}.hover\:bg-brand-soft:hover,.hover\:bg-brand-soft\/40:hover{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-brand-soft\/40:hover{background-color:color-mix(in oklab, var(--brand-soft) 40%, transparent)}}.hover\:bg-brand-soft\/60:hover{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-brand-soft\/60:hover{background-color:color-mix(in oklab, var(--brand-soft) 60%, transparent)}}.hover\:bg-card:hover{background-color:var(--card)}.hover\:bg-destructive\/10:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/10:hover{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.hover\:bg-secondary:hover,.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\:bg-white\/15:hover{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/15:hover{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.hover\:bg-white\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/25:hover{background-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.hover\:bg-white\/50:hover{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/50:hover{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.hover\:bg-white\/80:hover{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/80:hover{background-color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.hover\:bg-white\/90:hover{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/90:hover{background-color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-blue-500:hover{color:var(--color-blue-500)}.hover\:text-brand-soft-foreground:hover{color:var(--brand-soft-foreground)}.hover\:text-destructive:hover{color:var(--destructive)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-gray-400:hover{color:var(--color-gray-400)}.hover\:text-gray-500:hover{color:var(--color-gray-500)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-xs:hover{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:ring-2:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:ring-brand-300:hover{--tw-ring-color:var(--brand-300)}.hover\:outline-brand-300:hover{outline-color:var(--brand-300)}.hover\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{border-color:var(--color-blue-300)}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:bg-brand-soft\/40:focus{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.focus\:bg-brand-soft\/40:focus{background-color:color-mix(in oklab, var(--brand-soft) 40%, transparent)}}.focus\:bg-brand-soft\/50:focus{background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.focus\:bg-brand-soft\/50:focus{background-color:color-mix(in oklab, var(--brand-soft) 50%, transparent)}}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:ring:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.focus\:outline-2:focus{outline-style:var(--tw-outline-style);outline-width:2px}.focus\:outline-red-500:focus{outline-color:var(--color-red-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:border-brand-400:focus-visible{border-color:var(--brand-400)}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:ring-3:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 30%, transparent)}}.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 40%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:cursor-grabbing:active{cursor:grabbing}.active\:bg-gray-100:active{background-color:var(--color-gray-100)}.active\:text-gray-500:active{color:var(--color-gray-500)}.active\:text-gray-700:active{color:var(--color-gray-700)}.active\:text-gray-800:active{color:var(--color-gray-800)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.has-checked\:border-brand-400:has(:checked){border-color:var(--brand-400)}.has-checked\:bg-brand-soft\/60:has(:checked){background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.has-checked\:bg-brand-soft\/60:has(:checked){background-color:color-mix(in oklab, var(--brand-soft) 60%, transparent)}}.has-\[\>svg\]\:px-1\.5:has(>svg){padding-inline:calc(var(--spacing) * 1.5)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[state\=active\]\:after\:absolute[data-state=active]:after{content:var(--tw-content);position:absolute}.data-\[state\=active\]\:after\:inset-x-2[data-state=active]:after{content:var(--tw-content);inset-inline:calc(var(--spacing) * 2)}.data-\[state\=active\]\:after\:bottom-0[data-state=active]:after{content:var(--tw-content);bottom:0}.data-\[state\=active\]\:after\:h-\[3px\][data-state=active]:after{content:var(--tw-content);height:3px}.data-\[state\=active\]\:after\:rounded-t-full[data-state=active]:after{content:var(--tw-content);border-top-left-radius:2147483647px;border-top-right-radius:2147483647px}.data-\[state\=active\]\:after\:bg-brand[data-state=active]:after{content:var(--tw-content);background-color:var(--brand)}.data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state=checked]{--tw-translate-x:calc(100% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-\[backdrop-filter\]\:bg-card\/85{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.supports-\[backdrop-filter\]\:bg-card\/85{background-color:color-mix(in oklab, var(--card) 85%, transparent)}}}@media not all and (width>=48rem){.max-md\:opacity-100{opacity:1}}@media (width>=40rem){.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-6{bottom:calc(var(--spacing) * 6)}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:mx-0{margin-inline:0}.sm\:mt-0{margin-top:0}.sm\:mb-16{margin-bottom:calc(var(--spacing) * 16)}.sm\:block{display:block}.sm\:contents{display:contents}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:aspect-\[16\/9\]{aspect-ratio:16/9}.sm\:h-32{height:calc(var(--spacing) * 32)}.sm\:min-h-\[360px\]{min-height:360px}.sm\:w-3\/4{width:75%}.sm\:w-32{width:calc(var(--spacing) * 32)}.sm\:w-56{width:calc(var(--spacing) * 56)}.sm\:w-72{width:calc(var(--spacing) * 72)}.sm\:w-80{width:calc(var(--spacing) * 80)}.sm\:w-auto{width:auto}.sm\:max-w-2xl{max-width:var(--container-2xl)}.sm\:max-w-5xl{max-width:var(--container-5xl)}.sm\:max-w-6xl{max-width:var(--container-6xl)}.sm\:max-w-\[65\%\]{max-width:65%}.sm\:max-w-\[340px\]{max-width:340px}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:max-w-xl{max-width:var(--container-xl)}.sm\:flex-1{flex:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-col{flex-direction:column}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:justify-center{justify-content:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-start{justify-content:flex-start}.sm\:gap-2{gap:calc(var(--spacing) * 2)}.sm\:gap-x-6{column-gap:calc(var(--spacing) * 6)}:where(.sm\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}.sm\:overflow-visible{overflow:visible}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.sm\:from-black\/75{--tw-gradient-from:#000000bf}@supports (color:color-mix(in lab, red, red)){.sm\:from-black\/75{--tw-gradient-from:color-mix(in oklab, var(--color-black) 75%, transparent)}}.sm\:from-black\/75{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.sm\:via-black\/40{--tw-gradient-via:#0006}@supports (color:color-mix(in lab, red, red)){.sm\:via-black\/40{--tw-gradient-via:color-mix(in oklab, var(--color-black) 40%, transparent)}}.sm\:via-black\/40{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.sm\:to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:p-10{padding:calc(var(--spacing) * 10)}.sm\:p-14{padding:calc(var(--spacing) * 14)}.sm\:px-0{padding-inline:0}.sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-8{padding-inline:calc(var(--spacing) * 8)}.sm\:py-0{padding-block:0}.sm\:pt-0{padding-top:0}.sm\:pt-16{padding-top:calc(var(--spacing) * 16)}.sm\:pb-0{padding-bottom:0}.sm\:pb-1{padding-bottom:var(--spacing)}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-\[32px\]{font-size:32px}}@media (width>=48rem){.md\:static{position:static}.md\:block{display:block}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:w-full{width:100%}.md\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,1fr\)_6rem_7rem_6rem_9\.5rem\]{grid-template-columns:minmax(0,1fr) 6rem 7rem 6rem 9.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_6rem_7rem_6rem_11\.5rem\]{grid-template-columns:minmax(0,1fr) 6rem 7rem 6rem 11.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_8rem_9\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 8rem 9.5rem 6.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_9\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 9.5rem 6.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_11rem_5\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 11rem 5.5rem 6.5rem}.md\:grid-cols-\[minmax\(0\,1fr\)_12rem_11rem_5\.5rem_6\.5rem\]{grid-template-columns:minmax(0,1fr) 12rem 11rem 5.5rem 6.5rem}.md\:items-center{align-items:center}.md\:gap-4{gap:calc(var(--spacing) * 4)}.md\:pr-4{padding-right:calc(var(--spacing) * 4)}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (width>=64rem){.lg\:sticky{position:sticky}.lg\:top-20{top:calc(var(--spacing) * 20)}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-4{grid-column:span 4/span 4}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-8{grid-column:span 8/span 8}.lg\:col-span-9{grid-column:span 9/span 9}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:aspect-auto{aspect-ratio:auto}.lg\:h-full{height:100%}.lg\:min-h-\[400px\]{min-height:400px}.lg\:min-h-\[420px\]{min-height:420px}.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-\[240px_minmax\(0\,1fr\)\]{grid-template-columns:240px minmax(0,1fr)}.lg\:grid-cols-\[260px_minmax\(0\,1fr\)\]{grid-template-columns:260px minmax(0,1fr)}.lg\:grid-cols-\[minmax\(0\,1fr\)_19rem\]{grid-template-columns:minmax(0,1fr) 19rem}.lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\]{grid-template-columns:minmax(0,1fr) 20rem}.lg\:grid-cols-\[minmax\(0\,1fr\)_320px\]{grid-template-columns:minmax(0,1fr) 320px}.lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lg\:grid-cols-\[minmax\(0\,5fr\)_minmax\(0\,6fr\)\]{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}.lg\:flex-col{flex-direction:column}.lg\:justify-between{justify-content:space-between}.lg\:gap-6{gap:calc(var(--spacing) * 6)}.lg\:p-12{padding:calc(var(--spacing) * 12)}.lg\:px-6{padding-inline:calc(var(--spacing) * 6)}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}.lg\:py-7{padding-block:calc(var(--spacing) * 7)}.lg\:text-\[44px\]{font-size:44px}}@media (width>=80rem){.xl\:col-span-1{grid-column:span 1/span 1}.xl\:col-span-2{grid-column:span 2/span 2}.xl\:col-span-3{grid-column:span 3/span 3}.xl\:col-span-9{grid-column:span 9/span 9}.xl\:block{display:block}.xl\:size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.xl\:w-1\/2{width:50%}.xl\:w-80{width:calc(var(--spacing) * 80)}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-\[minmax\(0\,1fr\)_16rem\]{grid-template-columns:minmax(0,1fr) 16rem}.xl\:grid-cols-\[minmax\(0\,1fr\)_18rem\]{grid-template-columns:minmax(0,1fr) 18rem}.xl\:pt-8{padding-top:calc(var(--spacing) * 8)}.xl\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=96rem){.\32 xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container not (width>=28rem){.\@max-md\:grid{display:grid}.\@max-md\:w-auto{width:auto}.\@max-md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@max-md\:gap-2{gap:calc(var(--spacing) * 2)}.\@max-md\:overflow-visible{overflow:visible}.\@max-md\:px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.\@max-md\:px-4{padding-inline:calc(var(--spacing) * 4)}.\@max-md\:py-3{padding-block:calc(var(--spacing) * 3)}.\@max-md\:pb-4{padding-bottom:calc(var(--spacing) * 4)}}@container (width>=36rem){.\@xl\:col-span-2{grid-column:span 2/span 2}.\@xl\:w-1\/2{width:50%}.\@xl\:grid-cols-\(--cols\){grid-template-columns:var(--cols)}.\@xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\@xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@xl\:p-5{padding:calc(var(--spacing) * 5)}}@container (width>=48rem){.\@3xl\:w-1\/3{width:33.3333%}.\@3xl\:w-2\/3{width:66.6667%}.\@3xl\:grid-cols-\(--cols\){grid-template-columns:var(--cols)}.\@3xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@3xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\@3xl\:p-8{padding:calc(var(--spacing) * 8)}.\@3xl\:p-10{padding:calc(var(--spacing) * 10)}.\@3xl\:p-12{padding:calc(var(--spacing) * 12)}.\@3xl\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.\@3xl\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@container (width>=56rem){.\@4xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=64rem){.\@5xl\:grid-cols-\(--cols\){grid-template-columns:var(--cols)}}.rtl\:flex-row-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.dark\:block:is(.dark *){display:block}.dark\:hidden:is(.dark *){display:none}:where(.dark\:divide-white\/5:is(.dark *)>:not(:last-child)){border-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){:where(.dark\:divide-white\/5:is(.dark *)>:not(:last-child)){border-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}:where(.dark\:divide-white\/10:is(.dark *)>:not(:last-child)){border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){:where(.dark\:divide-white\/10:is(.dark *)>:not(:last-child)){border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:border:is(.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\:border-none:is(.dark *){--tw-border-style:none;border-style:none}.dark\:border-amber-500:is(.dark *){border-color:var(--color-amber-500)}.dark\:border-amber-800:is(.dark *){border-color:var(--color-amber-800)}.dark\:border-amber-900:is(.dark *){border-color:var(--color-amber-900)}.dark\:border-blue-600:is(.dark *){border-color:var(--color-blue-600)}.dark\:border-blue-800:is(.dark *){border-color:var(--color-blue-800)}.dark\:border-emerald-500:is(.dark *){border-color:var(--color-emerald-500)}.dark\:border-emerald-600:is(.dark *){border-color:var(--color-emerald-600)}.dark\:border-emerald-900:is(.dark *){border-color:var(--color-emerald-900)}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:border-neutral-500:is(.dark *){border-color:var(--color-neutral-500)}.dark\:border-neutral-700:is(.dark *){border-color:var(--color-neutral-700)}.dark\:border-neutral-800:is(.dark *){border-color:var(--color-neutral-800)}.dark\:border-red-900:is(.dark *){border-color:var(--color-red-900)}.dark\:border-rose-500:is(.dark *){border-color:var(--color-rose-500)}.dark\:border-rose-900:is(.dark *){border-color:var(--color-rose-900)}.dark\:border-sky-900:is(.dark *){border-color:var(--color-sky-900)}.dark\:border-transparent:is(.dark *){border-color:#0000}.dark\:border-white\/5:is(.dark *){border-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/5:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:border-white\/8:is(.dark *){border-color:#ffffff14}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/8:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 8%, transparent)}}.dark\:border-white\/10:is(.dark *){border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/10:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:border-white\/20:is(.dark *){border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/20:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.dark\:border-white\/\[9\%\]:is(.dark *){border-color:#ffffff17}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/\[9\%\]:is(.dark *){border-color:color-mix(in oklab, var(--color-white) 9%, transparent)}}.dark\:bg-\[\#1a1a1a\]:is(.dark *){background-color:#1a1a1a}.dark\:bg-amber-600:is(.dark *){background-color:var(--color-amber-600)}.dark\:bg-amber-900\/50:is(.dark *){background-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-900) 50%, transparent)}}.dark\:bg-amber-950:is(.dark *){background-color:var(--color-amber-950)}.dark\:bg-amber-950\/40:is(.dark *){background-color:#46190166}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-950) 40%, transparent)}}.dark\:bg-amber-950\/50:is(.dark *){background-color:#46190180}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-950) 50%, transparent)}}.dark\:bg-amber-950\/60:is(.dark *){background-color:#46190199}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-amber-950) 60%, transparent)}}.dark\:bg-blue-700:is(.dark *){background-color:var(--color-blue-700)}.dark\:bg-blue-950:is(.dark *){background-color:var(--color-blue-950)}.dark\:bg-blue-950\/60:is(.dark *){background-color:#16245699}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-blue-950) 60%, transparent)}}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.dark\:bg-emerald-600:is(.dark *){background-color:var(--color-emerald-600)}.dark\:bg-emerald-900\/50:is(.dark *){background-color:#004e3b80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-900) 50%, transparent)}}.dark\:bg-emerald-900\/70:is(.dark *){background-color:#004e3bb3}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/70:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-900) 70%, transparent)}}.dark\:bg-emerald-950:is(.dark *){background-color:var(--color-emerald-950)}.dark\:bg-emerald-950\/40:is(.dark *){background-color:#002c2266}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-950) 40%, transparent)}}.dark\:bg-emerald-950\/50:is(.dark *){background-color:#002c2280}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-950) 50%, transparent)}}.dark\:bg-emerald-950\/60:is(.dark *){background-color:#002c2299}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-emerald-950) 60%, transparent)}}.dark\:bg-gray-700:is(.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-green-950\/60:is(.dark *){background-color:#032e1599}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-green-950) 60%, transparent)}}.dark\:bg-indigo-950:is(.dark *){background-color:var(--color-indigo-950)}.dark\:bg-indigo-950\/60:is(.dark *){background-color:#1e1a4d99}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-indigo-950) 60%, transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:bg-neutral-400:is(.dark *){background-color:var(--color-neutral-400)}.dark\:bg-neutral-600:is(.dark *){background-color:var(--color-neutral-600)}.dark\:bg-neutral-700:is(.dark *){background-color:var(--color-neutral-700)}.dark\:bg-neutral-800:is(.dark *){background-color:var(--color-neutral-800)}.dark\:bg-neutral-900:is(.dark *){background-color:var(--color-neutral-900)}.dark\:bg-orange-950:is(.dark *){background-color:var(--color-orange-950)}.dark\:bg-orange-950\/50:is(.dark *){background-color:#44130680}@supports (color:color-mix(in lab, red, red)){.dark\:bg-orange-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-orange-950) 50%, transparent)}}.dark\:bg-orange-950\/60:is(.dark *){background-color:#44130699}@supports (color:color-mix(in lab, red, red)){.dark\:bg-orange-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-orange-950) 60%, transparent)}}.dark\:bg-red-950\/40:is(.dark *){background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.dark\:bg-red-950\/50:is(.dark *){background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-red-950) 50%, transparent)}}.dark\:bg-red-950\/60:is(.dark *){background-color:#46080999}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-red-950) 60%, transparent)}}.dark\:bg-rose-600:is(.dark *){background-color:var(--color-rose-600)}.dark\:bg-rose-900\!:is(.dark *){background-color:var(--color-rose-900)!important}.dark\:bg-rose-950:is(.dark *){background-color:var(--color-rose-950)}.dark\:bg-rose-950\/60:is(.dark *){background-color:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark\:bg-rose-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-rose-950) 60%, transparent)}}.dark\:bg-sky-950:is(.dark *){background-color:var(--color-sky-950)}.dark\:bg-sky-950\/40:is(.dark *){background-color:#052f4a66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-sky-950\/40:is(.dark *){background-color:color-mix(in oklab, var(--color-sky-950) 40%, transparent)}}.dark\:bg-sky-950\/50:is(.dark *){background-color:#052f4a80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-sky-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-sky-950) 50%, transparent)}}.dark\:bg-sky-950\/60:is(.dark *){background-color:#052f4a99}@supports (color:color-mix(in lab, red, red)){.dark\:bg-sky-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-sky-950) 60%, transparent)}}.dark\:bg-slate-900:is(.dark *){background-color:var(--color-slate-900)}.dark\:bg-teal-950:is(.dark *){background-color:var(--color-teal-950)}.dark\:bg-teal-950\/60:is(.dark *){background-color:#022f2e99}@supports (color:color-mix(in lab, red, red)){.dark\:bg-teal-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-teal-950) 60%, transparent)}}.dark\:bg-transparent:is(.dark *){background-color:#0000}.dark\:bg-violet-950:is(.dark *){background-color:var(--color-violet-950)}.dark\:bg-violet-950\/50:is(.dark *){background-color:#2f0d6880}@supports (color:color-mix(in lab, red, red)){.dark\:bg-violet-950\/50:is(.dark *){background-color:color-mix(in oklab, var(--color-violet-950) 50%, transparent)}}.dark\:bg-violet-950\/60:is(.dark *){background-color:#2f0d6899}@supports (color:color-mix(in lab, red, red)){.dark\:bg-violet-950\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-violet-950) 60%, transparent)}}.dark\:bg-white:is(.dark *){background-color:var(--color-white)}.dark\:bg-white\/1:is(.dark *){background-color:#ffffff03}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/1:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 1%, transparent)}}.dark\:bg-white\/2:is(.dark *){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/2:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.dark\:bg-white\/3:is(.dark *){background-color:#ffffff08}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/3:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 3%, transparent)}}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/5:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:bg-white\/10:is(.dark *){background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/10:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\:bg-white\/\[2\%\]:is(.dark *){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/\[2\%\]:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.dark\:bg-white\/\[3\%\]:is(.dark *){background-color:#ffffff08}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/\[3\%\]:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 3%, transparent)}}.dark\:text-amber-100:is(.dark *){color:var(--color-amber-100)}.dark\:text-amber-200:is(.dark *){color:var(--color-amber-200)}.dark\:text-amber-300:is(.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:is(.dark *){color:var(--color-amber-400)}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-emerald-100:is(.dark *){color:var(--color-emerald-100)}.dark\:text-emerald-200:is(.dark *){color:var(--color-emerald-200)}.dark\:text-emerald-300:is(.dark *){color:var(--color-emerald-300)}.dark\:text-emerald-400:is(.dark *){color:var(--color-emerald-400)}.dark\:text-emerald-500:is(.dark *){color:var(--color-emerald-500)}.dark\:text-gray-200:is(.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:is(.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-gray-600:is(.dark *){color:var(--color-gray-600)}.dark\:text-green-300:is(.dark *){color:var(--color-green-300)}.dark\:text-indigo-200:is(.dark *){color:var(--color-indigo-200)}.dark\:text-indigo-300:is(.dark *){color:var(--color-indigo-300)}.dark\:text-muted-foreground:is(.dark *){color:var(--muted-foreground)}.dark\:text-neutral-100:is(.dark *){color:var(--color-neutral-100)}.dark\:text-neutral-200:is(.dark *){color:var(--color-neutral-200)}.dark\:text-neutral-300:is(.dark *){color:var(--color-neutral-300)}.dark\:text-neutral-400:is(.dark *){color:var(--color-neutral-400)}.dark\:text-neutral-500:is(.dark *){color:var(--color-neutral-500)}.dark\:text-neutral-600:is(.dark *){color:var(--color-neutral-600)}.dark\:text-neutral-600\!:is(.dark *){color:var(--color-neutral-600)!important}.dark\:text-neutral-900:is(.dark *){color:var(--color-neutral-900)}.dark\:text-orange-200:is(.dark *){color:var(--color-orange-200)}.dark\:text-orange-300:is(.dark *){color:var(--color-orange-300)}.dark\:text-red-100:is(.dark *){color:var(--color-red-100)}.dark\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-rose-100:is(.dark *){color:var(--color-rose-100)}.dark\:text-rose-200:is(.dark *){color:var(--color-rose-200)}.dark\:text-rose-300:is(.dark *){color:var(--color-rose-300)}.dark\:text-sky-100:is(.dark *){color:var(--color-sky-100)}.dark\:text-sky-200:is(.dark *){color:var(--color-sky-200)}.dark\:text-sky-300:is(.dark *){color:var(--color-sky-300)}.dark\:text-sky-400:is(.dark *){color:var(--color-sky-400)}.dark\:text-slate-300:is(.dark *){color:var(--color-slate-300)}.dark\:text-teal-200:is(.dark *){color:var(--color-teal-200)}.dark\:text-teal-300:is(.dark *){color:var(--color-teal-300)}.dark\:text-violet-200:is(.dark *){color:var(--color-violet-200)}.dark\:text-violet-300:is(.dark *){color:var(--color-violet-300)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:text-white\!:is(.dark *){color:var(--color-white)!important}.dark\:prose-invert:is(.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}@media (hover:hover){.group-hover\:dark\:text-emerald-500:is(:where(.group):hover *):is(.dark *),.group-hover\/exception\:dark\:text-emerald-500:is(:where(.group\/exception):hover *):is(.dark *){color:var(--color-emerald-500)}}.odd\:dark\:bg-white\/4:nth-child(odd):is(.dark *){background-color:#ffffff0a}@supports (color:color-mix(in lab, red, red)){.odd\:dark\:bg-white\/4:nth-child(odd):is(.dark *){background-color:color-mix(in oklab, var(--color-white) 4%, transparent)}}.even\:dark\:bg-white\/2:nth-child(2n):is(.dark *){background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.even\:dark\:bg-white\/2:nth-child(2n):is(.dark *){background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}@media (hover:hover){.dark\:hover\:border-none:is(.dark *):hover{--tw-border-style:none;border-style:none}.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.dark\:hover\:bg-gray-900:is(.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-white\/2:is(.dark *):hover{background-color:#ffffff05}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/2:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-white) 2%, transparent)}}.dark\:hover\:bg-white\/5:is(.dark *):hover{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/5:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:hover\:bg-white\/10:is(.dark *):hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/10:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.hover\:dark\:bg-white\/5:hover:is(.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.hover\:dark\:bg-white\/5:hover:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:hover\:text-emerald-500:is(.dark *):hover{color:var(--color-emerald-500)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}.dark\:hover\:text-gray-300:is(.dark *):hover{color:var(--color-gray-300)}.hover\:dark\:text-white:hover:is(.dark *){color:var(--color-white)}}.dark\:focus\:border-blue-700:is(.dark *):focus{border-color:var(--color-blue-700)}.dark\:focus\:border-blue-800:is(.dark *):focus{border-color:var(--color-blue-800)}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:active\:bg-gray-700:is(.dark *):active{background-color:var(--color-gray-700)}.dark\:active\:text-gray-300:is(.dark *):active{color:var(--color-gray-300)}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[state\=active\]\:border-input:is(.dark *)[data-state=active]{border-color:var(--input)}.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state=active]{color:var(--foreground)}.dark\:data-\[state\=checked\]\:bg-primary-foreground:is(.dark *)[data-state=checked]{background-color:var(--primary-foreground)}.dark\:data-\[state\=unchecked\]\:bg-foreground:is(.dark *)[data-state=unchecked]{background-color:var(--foreground)}.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:color-mix(in oklab, var(--input) 80%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}@media print{.print\:hidden{display:none}}.prose-headings\:tracking-tight :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.prose-h2\:mt-10 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing) * 10)}.first-of-type\:prose-p\:text-lg:first-of-type :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.prose-a\:text-brand-text :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--brand-text)}.prose-blockquote\:border-l-brand :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-left-color:var(--brand)}.prose-blockquote\:bg-brand-soft\/50 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--brand-soft)}@supports (color:color-mix(in lab, red, red)){.prose-blockquote\:bg-brand-soft\/50 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:color-mix(in oklab, var(--brand-soft) 50%, transparent)}}.prose-blockquote\:py-1 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:var(--spacing)}.prose-blockquote\:not-italic :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-style:normal}.prose-img\:rounded-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:var(--radius)}.prose-img\:rounded-md :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:calc(var(--radius) - 2px)}.\[\&_\.prose\]\:text-brand-foreground .prose{color:var(--brand-foreground)}.\[\&_\.tiptap\]\:min-h-10 .tiptap{min-height:calc(var(--spacing) * 10)}.\[\&_\.tiptap\]\:min-h-24 .tiptap{min-height:calc(var(--spacing) * 24)}.\[\&_a\]\:text-brand-foreground a{color:var(--brand-foreground)}.\[\&_a\]\:underline a{text-decoration-line:underline}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-2\.5 svg{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\]\:\!text-white svg{color:var(--color-white)!important}@media (hover:hover){.hover\:\[\&_svg\]\:stroke-emerald-500:hover svg{stroke:var(--color-emerald-500)}}.dark\:\[\&_svg\]\:\!text-white:is(.dark *) svg{color:var(--color-white)!important}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive\![data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{rotate:180deg}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab, var(--secondary) 90%, transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-ext-wght-normal-C8iNium2.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-wght-normal-BqRLTx4X.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans Variable;font-style:normal;font-display:swap;font-weight:300 800;src:url(/build/assets/open-sans-latin-ext-wght-normal-DPNHYqvY.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans Variable;font-style:normal;font-display:swap;font-weight:300 800;src:url(/build/assets/open-sans-latin-wght-normal-CWNzRldh.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Nunito Sans Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-sans-latin-ext-wght-normal-DMEAsnHD.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nunito Sans Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-sans-latin-wght-normal-BWQ3gi2K.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-ext-wght-normal-DYIxWhlt.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-wght-normal-ccAYIvAh.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Figtree Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/figtree-latin-ext-wght-normal-DCwSJGxG.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Figtree Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/atkinson-hyperlegible-latin-ext-400-normal-DRk46D-x.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/atkinson-hyperlegible-latin-400-normal-BrHNak5F.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:700;src:url(/build/assets/atkinson-hyperlegible-latin-ext-700-normal-BoVPHkS0.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Atkinson Hyperlegible;font-style:normal;font-display:swap;font-weight:700;src:url(/build/assets/atkinson-hyperlegible-latin-700-normal-GZI4o3u0.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-serif-4-latin-ext-wght-normal-CxNHBx-q.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-serif-4-latin-wght-normal-D9elroTD.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-ext-wght-normal-BZx4mOJf.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-wght-normal-BovdrKvB.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lora Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/lora-latin-ext-wght-normal-C2Wlntb9.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lora Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/lora-latin-wght-normal-BiLcIKcI.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--radius:.5rem;--background:#f4f5f7;--foreground:#1a1d21;--card:#fff;--card-foreground:#1a1d21;--popover:#fff;--popover-foreground:#1a1d21;--muted:#f1f2f4;--muted-foreground:#5f6670;--accent:#f1f2f4;--accent-foreground:#1a1d21;--secondary:#eef0f2;--secondary-foreground:#1a1d21;--border:#e3e5e8;--input:#d5d8dd;--destructive:#c62828;--primary:var(--brand);--primary-foreground:var(--brand-foreground);--ring:var(--brand-400);--brand-text:var(--brand-600);--accent2:var(--brand);--accent2-foreground:var(--brand-foreground);--accent2-text:var(--brand-text);--font-body:"Inter Variable", ui-sans-serif, system-ui, sans-serif;--font-heading:var(--font-body);--brand-soft:var(--brand-50);--brand-soft-foreground:var(--brand-700)}.dark{--background:#0f1114;--foreground:#e8eaed;--card:#171a1e;--card-foreground:#e8eaed;--popover:#1c1f24;--popover-foreground:#e8eaed;--muted:#22262b;--muted-foreground:#9aa1ab;--accent:#22262b;--accent-foreground:#e8eaed;--secondary:#22262b;--secondary-foreground:#e8eaed;--border:#2a2e34;--input:#353a41;--destructive:#ef5350;--brand-text:var(--brand-300);--brand-soft:var(--brand)}@supports (color:color-mix(in lab, red, red)){.dark{--brand-soft:color-mix(in oklab, var(--brand) 22%, transparent)}}.dark{--brand-soft-foreground:var(--brand-200)}.prose{--tw-prose-body:var(--foreground);--tw-prose-headings:var(--foreground);--tw-prose-links:var(--brand-text);--tw-prose-bold:var(--foreground);--tw-prose-quotes:var(--foreground);--tw-prose-quote-borders:var(--brand-300);--tw-prose-bullets:var(--muted-foreground);--tw-prose-counters:var(--muted-foreground);--tw-prose-hr:var(--border);--tw-prose-th-borders:var(--border);--tw-prose-td-borders:var(--border)}.prose :where(blockquote p:first-of-type):before,.prose :where(blockquote p:last-of-type):after{content:none}.pb-box .prose{--tw-prose-body:currentColor;--tw-prose-bold:currentColor;--tw-prose-links:currentColor;--tw-prose-bullets:currentColor;--tw-prose-headings:currentColor}header[data-header=brand]{--foreground:var(--brand-foreground);--accent:var(--brand-foreground)}@supports (color:color-mix(in lab, red, red)){header[data-header=brand]{--accent:color-mix(in oklab, var(--brand-foreground) 14%, transparent)}}header[data-header=brand]{--muted-foreground:var(--brand-foreground)}@supports (color:color-mix(in lab, red, red)){header[data-header=brand]{--muted-foreground:color-mix(in oklab, var(--brand-foreground) 75%, transparent)}}header[data-header=brand]{background:var(--brand);color:var(--foreground);border-color:#0000}header[data-header=dark]{--foreground:#eef0f2;--accent:#ffffff1a;--muted-foreground:#a3aab3;color:var(--foreground);background:#16191d;border-color:#262a30}header[data-header=brand] input,header[data-header=dark] input{background:var(--foreground)}@supports (color:color-mix(in lab, red, red)){header[data-header=brand] input,header[data-header=dark] input{background:color-mix(in oklab, var(--foreground) 14%, transparent)}}header[data-header=brand] input,header[data-header=dark] input{color:var(--foreground);border-color:#0000}header[data-header=brand] input::placeholder,header[data-header=dark] input::placeholder{color:var(--muted-foreground)}header[data-header=brand] .nav-underline,header[data-header=dark] .nav-underline{background:currentColor}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto}[data-sonner-toaster]{width:var(--width);--gray1:#fcfcfc;--gray2:#f8f8f8;--gray3:#f3f3f3;--gray4:#ededed;--gray5:#e8e8e8;--gray6:#e2e2e2;--gray7:#dbdbdb;--gray8:#c7c7c7;--gray9:#8f8f8f;--gray10:#858585;--gray11:#6f6f6f;--gray12:#171717;--border-radius:8px;box-sizing:border-box;z-index:999999999;outline:none;margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;list-style:none;transition:transform .4s;position:fixed}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);opacity:0;transform:var(--y);touch-action:none;box-sizing:border-box;overflow-wrap:anywhere;outline:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;position:absolute}[data-sonner-toast][data-styled=true]{background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);width:var(--width);align-items:center;gap:6px;padding:16px;font-size:13px;display:flex;box-shadow:0 4px 12px #0000001a}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap));top:0}[data-sonner-toast][data-y-position=bottom]{--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap));bottom:0}[data-sonner-toast][data-styled=true] [data-description]{color:#3f3f3f;font-weight:400;line-height:1.4}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{color:inherit;font-weight:500;line-height:1.5}[data-sonner-toast][data-styled=true] [data-icon]{width:16px;height:16px;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end);flex-shrink:0;justify-content:flex-start;align-items:center;display:flex;position:relative}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform-origin:50%;animation:.3s forwards sonner-fade-in;transform:scale(.8)}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{flex-direction:column;gap:2px;display:flex}[data-sonner-toast][data-styled=true] [data-button]{height:24px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);cursor:pointer;border:none;border-radius:4px;outline:none;flex-shrink:0;align-items:center;padding-left:8px;padding-right:8px;font-size:12px;font-weight:500;transition:opacity .4s,box-shadow .2s;display:flex}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:#ffffff4d}[data-sonner-toaster] [data-close-button-position=top-left]{--toast-close-button-left:0;--toast-close-button-right:unset;--toast-close-button-top:0;--toast-close-button-bottom:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster] [data-close-button-position=top-right]{--toast-close-button-left:unset;--toast-close-button-right:0;--toast-close-button-top:0;--toast-close-button-bottom:unset;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster] [data-close-button-position=bottom-left]{--toast-close-button-left:0;--toast-close-button-right:unset;--toast-close-button-top:unset;--toast-close-button-bottom:0;--toast-close-button-transform:translate(-35%, 35%)}[data-sonner-toaster] [data-close-button-position=bottom-right]{--toast-close-button-left:unset;--toast-close-button-right:0;--toast-close-button-top:unset;--toast-close-button-bottom:0;--toast-close-button-transform:translate(35%, 35%)}[data-sonner-toast][data-styled=true] [data-close-button]{left:var(--toast-close-button-left);right:var(--toast-close-button-right);top:var(--toast-close-button-top);bottom:var(--toast-close-button-bottom);width:20px;height:20px;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);cursor:pointer;z-index:1;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:opacity .1s,background .2s,border-color .2s;display:flex;position:absolute}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";z-index:-1;height:100%;position:absolute;left:-100%;right:-100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3)translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3)translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]:after{content:"";height:calc(var(--gap) + 1px);width:100%;position:absolute;bottom:100%;left:0}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * .05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--toasts-before) * .05 + 1));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0px)) translateX(var(--swipe-amount-x,0px));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (width<=600px){[data-sonner-toaster]{right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%;position:fixed}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{width:calc(100% - var(--mobile-offset-left) * 2);left:0;right:0}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:calc(var(--mobile-offset-bottom) + max(env(safe-area-inset-bottom), 0px))}[data-sonner-toaster][data-y-position=top]{top:calc(var(--mobile-offset-top) + max(env(safe-area-inset-top), 0px))}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:#ecfdf3;--success-border:#bffcd9;--success-text:#008a2e;--info-bg:#f0f8ff;--info-border:#dde7fd;--info-text:#0973dc;--warning-bg:#fffcf0;--warning-border:#fbeeb1;--warning-text:#dc7609;--error-bg:#fff0f0;--error-border:#ffe0e1;--error-text:#e60000}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:#333;--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:#1f1f1f;--normal-border:#333;--normal-border-hover:#404040;--normal-text:var(--gray1);--success-bg:#001f0f;--success-border:#003d1c;--success-text:#59f3a6;--info-bg:#000d1f;--info-border:#19233e;--info-text:#5896f3;--warning-bg:#1d1f00;--warning-border:#2e2e00;--warning-text:#f3cf58;--error-bg:#2d0607;--error-border:#4d0408;--error-text:#ff9ea1}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);z-index:10;position:absolute;inset:0}.sonner-loading-wrapper[data-visible=false]{transform-origin:50%;animation:.2s forwards sonner-fade-out}.sonner-spinner{height:var(--size);width:var(--size);position:relative;top:50%;left:50%}.sonner-loading-bar{background:var(--gray11);border-radius:6px;width:24%;height:8%;animation:1.2s linear infinite sonner-spin;position:absolute;top:-3.9%;left:-10%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg)translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg)translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg)translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg)translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg)translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg)translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg)translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg)translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg)translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg)translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg)translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg)translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{transform-origin:50%;transition:opacity .2s,transform .2s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8)translate(-50%,-50%)} diff --git a/public/build/assets/app-CNhdlRDG.js b/public/build/assets/app-Cw5f57va.js similarity index 96% rename from public/build/assets/app-CNhdlRDG.js rename to public/build/assets/app-Cw5f57va.js index 6830af99..3b2932f1 100644 --- a/public/build/assets/app-CNhdlRDG.js +++ b/public/build/assets/app-Cw5f57va.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Sample-DHynCAf7.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/AppIcon-D91Q4hzR.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-DtGNiYlK.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-DmyDwIce.js","assets/AppLayout-B1gBMLPE.js","assets/FileIcon-BLwyvOt_.js","assets/BrandLogo-7ynQExZl.js","assets/format-BsuBtvUs.js","assets/button-ZHC5mKey.js","assets/Panel-DpvMQ4up.js","assets/chevron-right-C9w5cb2q.js","assets/Input-FGSb2-yK.js","assets/PageContent-CZctLlC9.js","assets/registry-Cu4RDWrB.js","assets/DirectoryLogin-DGpHRa93.js","assets/arrow-left-BMImfTf2.js","assets/eye-off-myis3scV.js","assets/eye-CFNQcvaV.js","assets/FormField-BoFAO4pm.js","assets/GuestLayout-Ces130Hf.js","assets/ForgotPassword-ClPQSL2B.js","assets/Login-C2kwLFlQ.js","assets/check-AfxJa8Ew.js","assets/isValueEqualOrExist-BmxVVt-T.js","assets/VisuallyHiddenInput-BMUp3blB.js","assets/RovingFocusItem-BqPEtysU.js","assets/ResetPassword-DuP0jqCM.js","assets/Dashboard-WlKHA3QS.js","assets/widgets-CLxBZxrb.js","assets/Index-C_AsO8Qd.js","assets/PageHeader-vFc2LbBj.js","assets/Index-Dd9efbn1.js","assets/chevron-left-8GGLVOvJ.js","assets/search-x-BVofHEe_.js","assets/Organigram-CpMJMSw2.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-C56BLfqW.js","assets/trash-DUqnVIgb.js","assets/Textarea-DEFXqC2w.js","assets/Show-BSTILhYN.js","assets/Index-KGMlxVdL.js","assets/Index-TCkhlwAl.js","assets/BirthdayItem-DKhXwto7.js","assets/Index-BnCrq50t.js","assets/arrow-up-Djq_2Npz.js","assets/download-UAAY3N2F.js","assets/ellipsis-vertical-B9wuHo-w.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/DialogDescription-CCacFT45.js","assets/NativeSelect-BGasRaNs.js","assets/dialog-37na293D.js","assets/DialogHeader-DuqiL3ry.js","assets/Index-C73c_QQH.js","assets/EventDateBlock-_E5XlLto.js","assets/Show-BEG9vqx9.js","assets/Builder-BkOrpA9N.js","assets/Switch-CWN1_5O7.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-Cl4_xLIv.js","assets/send-6fmdiUe6.js","assets/Index-DAiC0RRe.js","assets/Show-DmhtgUb9.js","assets/calendar-clock-8H2IkjP5.js","assets/Index-D24U7IpG.js","assets/Editor-DeUtUJ9p.js","assets/RichTextEditor-CMfIpwZS.js","assets/quote-CAgJDpoy.js","assets/RichTextEditor-Lf5W1_X5.css","assets/EditorBlockList-eovq9s83.js","assets/message-square-warning-BFfa_vqd.js","assets/play-GbhjcPFH.js","assets/EditorBlockList-D8CaLfE4.css","assets/Index-CvR--XxY.js","assets/pen-line-22hyV1yp.js","assets/NewsCard-CPICQVsu.js","assets/NewsImage-0OQYtq7-.js","assets/Show-BiVdXDVT.js","assets/link-2-DbrWevIe.js","assets/Editor-CLguWFjM.js","assets/NewPageDialog-BoAZlkoa.js","assets/Index-Dz6vk6kU.js","assets/Show-BDG8LCee.js","assets/Folder-CUnxEWYw.js","assets/format-uZU1H-69.js","assets/FolderTile-DPEGhvOX.js","assets/colors-RDOJqd57.js","assets/QmSearchBox-D0RtqPjX.js","assets/Index-rIH7w3Pd.js","assets/Search-DjEwUtYR.js","assets/Search-5WfA9Ai4.css","assets/Viewer-Dp_qMV-F.js","assets/Index-Byrm0yLr.js","assets/Print-D8ElRQZu.js","assets/Print-juRIblN_.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Sample-DuEwRhyt.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/AppIcon-BiVN_tuL.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/dist-DtGNiYlK.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-DmyDwIce.js","assets/AppLayout-9kc4awMB.js","assets/FileIcon-CV058fj7.js","assets/BrandLogo-CJygQm3u.js","assets/format-BsuBtvUs.js","assets/button-ZHC5mKey.js","assets/Panel-DZcEmK5R.js","assets/chevron-right-C9w5cb2q.js","assets/Input-FGSb2-yK.js","assets/PageContent-_C7Zf061.js","assets/registry-BogTHx6D.js","assets/DirectoryLogin-wtSKTDLH.js","assets/arrow-left-BMImfTf2.js","assets/eye-off-myis3scV.js","assets/eye-CFNQcvaV.js","assets/FormField-BoFAO4pm.js","assets/GuestLayout-NI5YopFI.js","assets/ForgotPassword-DxTP0yUy.js","assets/Login-BtMrXBfG.js","assets/check-AfxJa8Ew.js","assets/isValueEqualOrExist-BmxVVt-T.js","assets/VisuallyHiddenInput-BMUp3blB.js","assets/RovingFocusItem-BqPEtysU.js","assets/ResetPassword-BrYYK4qj.js","assets/Dashboard-HoMO9Cew.js","assets/widgets-D6uOBs7E.js","assets/Index-vvrbpKuT.js","assets/PageHeader-r1Deze0_.js","assets/Index-BpsstluO.js","assets/chevron-left-8GGLVOvJ.js","assets/search-x-BVofHEe_.js","assets/Organigram-WqC7X20P.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-FPtTIlfR.js","assets/trash-DUqnVIgb.js","assets/Textarea-DEFXqC2w.js","assets/Show-CmHbTaOb.js","assets/Index-CNS0hDPa.js","assets/Index-eDAg1Qhj.js","assets/BirthdayItem-hn5mYumD.js","assets/Index-DTa0oNZw.js","assets/arrow-up-Djq_2Npz.js","assets/download-UAAY3N2F.js","assets/ellipsis-vertical-B9wuHo-w.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/DialogDescription-9G5-5WG4.js","assets/NativeSelect-BGasRaNs.js","assets/dialog-DiN2bNwR.js","assets/DialogHeader-DuqiL3ry.js","assets/Index-BA_ObJLI.js","assets/EventDateBlock-_E5XlLto.js","assets/Show-Q696w_gp.js","assets/Builder-C33eAhEm.js","assets/Switch-CWN1_5O7.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-CbakfY2-.js","assets/send-6fmdiUe6.js","assets/Index-BrnjcSis.js","assets/Show-C0Mic-KR.js","assets/calendar-clock-8H2IkjP5.js","assets/Index-BHqjCKIj.js","assets/Editor-C9-IyeYr.js","assets/RichTextEditor-CA2m8pIz.js","assets/quote-CAgJDpoy.js","assets/RichTextEditor-Lf5W1_X5.css","assets/EditorBlockList-DvVDy56W.js","assets/message-square-warning-BFfa_vqd.js","assets/play-GbhjcPFH.js","assets/EditorBlockList-D8CaLfE4.css","assets/Index-CpDZzAj3.js","assets/pen-line-22hyV1yp.js","assets/NewsCard-I-pDKDv_.js","assets/NewsImage-Btt3aL1_.js","assets/Show-CBhHfB9k.js","assets/link-2-DbrWevIe.js","assets/Editor-BN7TNPUp.js","assets/NewPageDialog-DbJDgD-q.js","assets/Index-CMOl6SkN.js","assets/Show-DY-rwVR6.js","assets/Folder-D98mLoeR.js","assets/format-uZU1H-69.js","assets/FolderTile-DexaOIc1.js","assets/colors-RDOJqd57.js","assets/QmSearchBox-zTKdUUQq.js","assets/Index-DLnkmDBS.js","assets/Search-DdiJRe5W.js","assets/Search-5WfA9Ai4.css","assets/Viewer-D4L7c3gC.js","assets/Index-X1RcKtaB.js","assets/Print-IS0HlAei.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`