@wisemen/vue-core-design-system 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +22 -22
- package/dist/index.js +1086 -1040
- package/dist/ui/sidebar/components/MainSidebarNavigationLinkCollapsible.d.ts +2 -5
- package/dist/ui/sidebar/components/MainSidebarNavigationLinkPopover.d.ts +2 -5
- package/dist/ui/sidebar/components/MainSidebarNavigationSubItem.d.ts +8 -0
- package/dist/ui/sidebar/components/MainSidebarNavigationSubItemCount.d.ts +6 -0
- package/dist/ui/sidebar/index.d.ts +1 -0
- package/dist/ui/sidebar/types/mainSidebar.type.d.ts +20 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -549,8 +549,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
549
549
|
Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutocomplete ... /></ConfigProvider>`);let o=a.value,s=(0,f.ref)(!1),c=(0,f.ref)([]),l=(0,f.ref)(null),u=(0,f.computed)(()=>i.value===null?null:Os(i.value)),d=(0,f.computed)(()=>l.value??u.value),p=(0,f.computed)(()=>i.value===null?l.value===null?null:{placeId:l.value.placeId,bus:``,city:``,coordinates:{lat:null,lng:null},country:``,postalCode:l.value.secondaryText,street:l.value.mainText,streetNumber:``}:i.value),m=(0,f.computed)(()=>wb(c.value));async function h(e){s.value=!0;try{c.value=await o.searchAddresses(e)}catch(e){r(`error`,e)}finally{s.value=!1}}async function g(e){if(e===null){i.value=null;return}try{l.value=e,i.value=await o.getAddressByPlaceId(e.placeId)}catch(e){r(`error`,e)}finally{l.value=null}}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Cb,{class:`max-w-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{mode:`wait`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:p.value===null?`autocomplete`:`card`,class:(0,f.normalizeClass)([n.class,`max-w-full`]),initial:{filter:`blur(4px)`,opacity:0},animate:{filter:`blur(0px)`,opacity:1},exit:{filter:`blur(4px)`,opacity:0},transition:{duration:.2}},{default:(0,f.withCtx)(()=>[p.value===null?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Pb),(0,f.mergeProps)({key:1},n,{"model-value":d.value,items:m.value,"is-loading":s.value,"display-fn":e=>(0,f.unref)(ks)(e),"search-mode":`remote`,onBlur:t[3]||=e=>r(`blur`),"onUpdate:search":h,"onUpdate:modelValue":g}),{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),left:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`left`)]),_:3},16,[`model-value`,`items`,`is-loading`,`display-fn`])):((0,f.openBlock)(),(0,f.createBlock)(Sb,{key:0,address:p.value,"is-disabled":n.isDisabled,"is-loading":l.value!==null,"is-readonly":n.isReadonly,"onUpdate:modelValue":t[0]||=e=>i.value=e,onClear:t[1]||=e=>i.value=null,onError:t[2]||=e=>r(`error`,e)},null,8,[`address`,`is-disabled`,`is-loading`,`is-readonly`]))]),_:3},8,[`class`]))]),_:3})]),_:3}))}}),Ib={},Lb={class:`rounded-lg border border-secondary`};function Rb(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`,Lb,[(0,f.renderSlot)(e.$slots,`default`)])}var zb=H(Ib,[[`render`,Rb]]),Bb={};function Vb(e,t){return(0,f.openBlock)(),(0,f.createBlock)(f.Transition,{mode:`out-in`,"enter-active-class":`transition-opacity duration-150 ease-in`,"enter-from-class":`opacity-0`,"enter-to-class":`opacity-100`,"leave-active-class":`transition-opacity duration-100 ease-out`,"leave-from-class":`opacity-100`,"leave-to-class":`opacity-0`,"appear-active-class":`transition-opacity duration-150 ease-in`,"appear-from-class":`opacity-0`,"appear-to-class":`opacity-100`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})}var Hb=H(Bb,[[`render`,Vb]]),Ub=`14rem`,Wb=`3rem`,Gb=`0.5625rem`,Kb=`1rem`,qb=`1.875rem`,Jb=`1.875rem`,Yb=`0.1875rem`,Xb=`0.1875rem`,Zb=`1.875rem`,Qb=(0,f.ref)(!1),$b=(0,f.ref)(Ub),ex=(0,f.ref)(`hidden`);function Q(){let e=(0,m.useBreakpoints)({xl:960}),t=(0,m.useLocalStorage)(`dashboard-sidebar-is-open`,!0),n=e.smaller(`xl`),r=(0,f.computed)({get:()=>n.value?Qb.value:t.value,set:e=>{n.value?Qb.value=e:(ex.value===`minified`&&($b.value=e?Ub:Wb),t.value=e)}}),i=Gb,a=Kb,o=qb,s=Jb,c=Yb,l=Xb,u=Zb;function d(){n.value&&(Qb.value=!1)}function p(e){if(ex.value=e,e===`minified`){$b.value=r.value?Ub:Wb;return}$b.value=Ub}return{isFloatingSidebar:n,isSidebarOpen:r,closeIfFloatingSidebar:d,collapsedVariant:ex,minifiedSidebarWidth:Wb,setCollapsedVariant:p,sidebarAvatarPadding:l,sidebarContainerPadding:i,sidebarIconCellSize:o,sidebarIconSize:a,sidebarLinkHeight:s,sidebarLogoHeight:u,sidebarLogoPadding:c,sidebarWidth:$b}}var tx={class:`flex h-12 items-center justify-center`,type:`button`},nx={class:`flex w-full flex-col overflow-hidden`},rx=(0,f.defineComponent)({__name:`MainSidebarFooterAccountCard`,props:{name:{},actions:{},avatarUrl:{},email:{}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r,sidebarIconCellSize:i}=Q(),a=`${i} 1fr`;return(e,i)=>((0,f.openBlock)(),(0,f.createBlock)(xs,{actions:t.actions,"is-current-context-only":!0,"popover-side":`right`,"popover-align":`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,tx,[(0,f.createVNode)((0,f.unref)(zb),{class:(0,f.normalizeClass)([(0,f.unref)(r)===`minified`&&!(0,f.unref)(n)?`border-transparent`:`
|
|
550
550
|
border-fg-primary/10 bg-fg-primary/3 p-md py-sm pl-xs
|
|
551
551
|
hover:bg-fg-primary/4
|
|
552
|
-
`,`grid w-full gap-xs overflow-hidden text-left duration-100`]),style:(0,f.normalizeStyle)({gridTemplateColumns:a})},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{align:`center`,justify:`center`,class:`h-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(_o,{name:t.name??t.email,src:t.avatarUrl,"is-static-color":!0,size:`xs`},null,8,[`name`,`src`])]),_:1}),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(r)!==`minified`||(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,justify:`between`,align:`center`,gap:`xxs`,class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,nx,[(0,f.createVNode)((0,f.unref)(U),{text:t.name??`-`,"is-tooltip-disabled":!0,class:`w-full text-xs font-semibold text-primary`},null,8,[`text`]),(0,f.createVNode)((0,f.unref)(U),{text:t.email,"is-tooltip-disabled":!0,class:`w-full text-xs text-tertiary`},null,8,[`text`])]),(0,f.createVNode)(G,{align:`start`,class:`h-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(an),{class:`mt-xxs size-4 shrink-0 text-quaternary`})]),_:1})]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`class`,`style`])])]),_:1})]),_:1},8,[`actions`]))}}),ix={};function ax(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`)}var ox=H(ix,[[`render`,ax]]),sx=(0,f.defineComponent)({__name:`MainSidebarGlobalSearch`,emits:[`click`],setup(e,{emit:t}){let n=t,r=(0,g.useI18n)();function i(){n(`click`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(X),{icon:(0,f.unref)(hr),label:(0,f.unref)(r).t(`components.sidebar.global_search.label`),variant:`tertiary`,onClick:i},null,8,[`icon`,`label`]))}}),cx=(0,f.defineComponent)({__name:`MainSidebarHeaderContainer`,setup(e){let{sidebarLogoHeight:t}=Q();return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{style:(0,f.normalizeStyle)({height:(0,f.unref)(t)})},[(0,f.renderSlot)(e.$slots,`default`)],4))}}),lx=[`src`,`alt`],ux=(0,f.defineComponent)({__name:`Logo`,props:{alt:{},size:{},src:{}},setup(e){let t=e,n=(0,f.ref)(!1);return(e,r)=>n.value?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,class:(0,f.normalizeClass)([{"size-12 rounded-2xl":t.size===`lg`,"size-10 rounded-xl":t.size===`md`,"size-8 rounded-lg":t.size===`sm`,"size-6 rounded-md":t.size===`xs`,"size-5 rounded-sm":t.size===`xxs`,"size-3.5 rounded-xs":t.size===`3xs`},`shrink-0 bg-quaternary`])},null,2)):((0,f.openBlock)(),(0,f.createElementBlock)(`img`,{key:1,src:t.src,alt:t.alt,class:(0,f.normalizeClass)([{"size-12 rounded-2xl":t.size===`lg`,"size-10 rounded-xl":t.size===`md`,"size-8 rounded-lg":t.size===`sm`,"size-6 rounded-md":t.size===`xs`,"size-5 rounded-sm":t.size===`xxs`,"size-3.5 rounded-xs":t.size===`3xs`},`shrink-0 overflow-hidden from-black/20 to-white/10 object-contain dark:bg-primary-solid dark:bg-linear-to-b`]),onError:r[0]||=e=>n.value=!0},null,42,lx))}}),dx={key:0,class:`text-sm font-semibold text-secondary`},fx={key:0},px=(0,f.defineComponent)({__name:`MainSidebarHeaderLogoWithText`,props:{name:{},url:{}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r,sidebarLogoPadding:i}=Q();return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)(cx,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`between`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({padding:(0,f.unref)(i)})},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(ux,{src:t.url,alt:`Logo`,size:`xs`},null,8,[`src`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(r)!==`minified`||(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,dx,(0,f.toDisplayString)(t.name),1)):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(r)!==`minified`||(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,fx,[(0,f.renderSlot)(e.$slots,`right`)])):(0,f.createCommentVNode)(``,!0)]),_:3})]),_:3})]),_:3}))}}),mx={class:`truncate text-xs text-secondary`},hx=(0,f.defineComponent)({__name:`MainSidebarHeaderReturnToApp`,props:{to:{}},setup(e){let t=e,n=(0,g.useI18n)(),{isSidebarOpen:r,closeIfFloatingSidebar:i,collapsedVariant:a,sidebarIconCellSize:o,sidebarIconSize:s}=Q(),c=`${o} 1fr`;return(e,l)=>((0,f.openBlock)(),(0,f.createBlock)(cx,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{class:`w-fit`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(W,{"keyboard-shortcut":{key:`Backspace`,mod:!0},label:(0,f.unref)(n).t(`components.sidebar.return_to_app`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:t.to,style:(0,f.normalizeStyle)({height:(0,f.unref)(o),gridTemplateColumns:c}),"aria-label":(0,f.unref)(n).t(`components.sidebar.return_to_app`),class:`grid w-full rounded-md duration-100 hover:bg-secondary-hover`,onClick:l[0]||=e=>(0,f.unref)(i)()},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({width:(0,f.unref)(o),height:(0,f.unref)(o)}),align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(ln),{style:(0,f.normalizeStyle)({width:(0,f.unref)(s),height:(0,f.unref)(s)}),class:`shrink-0 text-secondary`},null,8,[`style`])]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(a)!==`minified`||(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(I,{key:0,align:`center`,class:`overflow-hidden pr-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,mx,(0,f.toDisplayString)((0,f.unref)(n).t(`components.sidebar.return_to_app`)),1)]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`to`,`style`,`aria-label`])]),_:1})]),_:1},8,[`label`])]),_:1})]),_:1}))}}),gx={class:`w-full`},_x=(0,f.defineComponent)({__name:`MainSidebarNavigationGroup`,props:{label:{default:null}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r}=Q();return(e,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,gx,[t.label===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{key:0,class:(0,f.normalizeClass)([{"opacity-0":(0,f.unref)(r)===`minified`&&!(0,f.unref)(n)},`block px-sm pb-sm text-xs font-medium whitespace-nowrap text-quaternary transition-opacity duration-150 ease-in-out`])},(0,f.toDisplayString)(t.label),3)),(0,f.createVNode)((0,f.unref)(G),{align:`start`,gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]))}}),vx=(0,f.defineComponent)({__name:`MainSidebarNavigationGroups`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{gap:`2xl`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),[yx,bx]=F(`MainSidebarNavigationLinkContextKey`),xx=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkProvider`,props:{isActive:{type:Boolean}},setup(e){let t=e;return yx({isActive:(0,f.computed)(()=>t.isActive)}),(e,t)=>(0,f.renderSlot)(e.$slots,`default`)}}),Sx=[`data-active`],Cx={class:`truncate text-xs font-medium whitespace-nowrap text-secondary duration-100 group-hover:text-primary group-data-active:text-brand-secondary`},wx=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkButton`,props:{isActive:{type:Function,default:()=>!1},isTooltipDisabled:{type:Boolean},icon:{},keyboardShortcut:{default:null},label:{},to:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=(0,y.useRoute)(),{isSidebarOpen:a,collapsedVariant:o,sidebarIconCellSize:s,sidebarIconSize:c,sidebarLinkHeight:l}=Q(),u=`${s} 1fr`;function d(){r(`click`)}return(t,r)=>((0,f.openBlock)(),(0,f.createBlock)(W,{"is-disabled":e.isTooltipDisabled,"keyboard-shortcut":n.keyboardShortcut,label:n.label,"popover-side":`right`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:n.to,class:`w-full`,onClick:d},{default:(0,f.withCtx)(({isActive:e})=>[(0,f.createVNode)(xx,{"is-active":e},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{"data-active":e||n.isActive((0,f.unref)(i))||void 0,style:(0,f.normalizeStyle)({height:(0,f.unref)(l),gridTemplateColumns:u}),class:`group grid rounded-md duration-100 hover:bg-fg-primary/4 data-active:bg-fg-primary/4`},[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({width:(0,f.unref)(s),height:(0,f.unref)(s)}),align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n.icon),{style:(0,f.normalizeStyle)({width:(0,f.unref)(c),height:(0,f.unref)(c)}),class:`shrink-0 text-fg-quaternary duration-100 group-data-active:text-fg-brand-primary dark:group-data-active:text-fg-primary`},null,8,[`style`]))]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(o)!==`minified`||(0,f.unref)(a)?((0,f.openBlock)(),(0,f.createBlock)(I,{key:0,align:`center`,justify:`between`,gap:`md`,class:`overflow-hidden pr-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,Cx,(0,f.toDisplayString)(n.label),1),(0,f.createVNode)(I,{gap:`lg`,align:`center`,class:`shrink-0`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`right`)]),_:3})]),_:3})):(0,f.createCommentVNode)(``,!0)]),_:3})],12,Sx)]),_:2},1032,[`is-active`])]),_:3},8,[`to`])]),_:3})]),_:3},8,[`is-disabled`,`keyboard-shortcut`,`label`]))}}),Tx=[`data-active`],Ex={class:`truncate text-xs whitespace-nowrap text-tertiary duration-100 group-hover:text-primary group-data-active:text-brand-secondary`},Dx=`1px`,Ox=`0.25rem`,kx=(0,f.defineComponent)({__name:`MainSidebarNavigationSubItem`,props:{isIndented:{type:Boolean,default:!0},label:{},noIndent:{type:Boolean},to:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.computed)(()=>n.noIndent===!0?!1:n.isIndented),{closeIfFloatingSidebar:a,sidebarIconCellSize:o}=Q(),s=`calc(${o} / 2 - ${Ox} - ${Dx})`;function c(){a(),r(`click`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:n.to,class:`w-full`,onClick:c},{default:(0,f.withCtx)(({isActive:e})=>[(0,f.createElementVNode)(`div`,{"data-active":e||void 0,style:(0,f.normalizeStyle)({paddingLeft:i.value?s:void 0,height:`1.5rem`}),class:(0,f.normalizeClass)([i.value?`pr-md`:`px-sm`,`group flex items-center rounded-md duration-100 hover:bg-fg-primary/4 data-active:bg-fg-primary/4`])},[(0,f.createElementVNode)(`span`,Ex,(0,f.toDisplayString)(n.label),1)],14,Tx)]),_:1},8,[`to`])]),_:1}))}}),Ax={class:`truncate text-xs font-medium whitespace-nowrap text-secondary duration-100 group-hover:text-primary`},jx=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkCollapsible`,props:{isSubItemsActive:{type:Boolean},isTooltipDisabled:{type:Boolean},icon:{},keyboardShortcut:{},label:{},subItems:{}},setup(e){let t=e,n=(0,f.ref)(!0),{isSidebarOpen:r,collapsedVariant:i,sidebarIconCellSize:a,sidebarIconSize:o,sidebarLinkHeight:s}=Q();(0,f.watch)(()=>t.isSubItemsActive,e=>{e&&(n.value=!0)});let c=`${a} 1fr`;return(l,u)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.CollapsibleRoot),{open:n.value,"onUpdate:open":u[1]||=e=>n.value=e,class:`w-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(W,{"is-disabled":e.isTooltipDisabled,"keyboard-shortcut":t.keyboardShortcut,label:t.label,"popover-side":`right`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(xx,{"is-active":e.isSubItemsActive},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{style:(0,f.normalizeStyle)({height:(0,f.unref)(s),gridTemplateColumns:c}),type:`button`,class:`group grid w-full rounded-md duration-100 hover:bg-fg-primary/4`,onClick:u[0]||=e=>n.value=!n.value},[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({width:(0,f.unref)(a),height:(0,f.unref)(a)}),align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{style:(0,f.normalizeStyle)({width:(0,f.unref)(o),height:(0,f.unref)(o)}),class:`shrink-0 text-fg-quaternary duration-100`},null,8,[`style`]))]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(i)!==`minified`||(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(I,{key:0,align:`center`,justify:`between`,gap:`md`,class:`overflow-hidden pr-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,Ax,(0,f.toDisplayString)(t.label),1),(0,f.createVNode)((0,f.unref)(an),{class:(0,f.normalizeClass)([{"rotate-180":n.value},`size-3.5 shrink-0 text-fg-quaternary duration-150`])},null,8,[`class`])]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})],4)]),_:1},8,[`is-active`])]),_:1})]),_:1},8,[`is-disabled`,`keyboard-shortcut`,`label`]),(0,f.createVNode)((0,f.unref)(h.CollapsibleContent),{class:`overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({marginLeft:`calc(${(0,f.unref)(a)} / 2)`}),class:`mt-xs flex flex-col gap-xs border-l border-secondary pl-xs`},[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.subItems,e=>((0,f.openBlock)(),(0,f.createBlock)(kx,{key:e.label,label:e.label,to:e.to},null,8,[`label`,`to`]))),128))],4)]),_:1})]),_:1},8,[`open`]))}}),Mx=[`data-active`],Nx={class:`truncate text-xs font-medium whitespace-nowrap text-secondary duration-100 group-hover:text-primary group-data-active:text-brand-secondary`},Px={class:`relative overflow-hidden rounded-md border border-secondary bg-primary shadow-lg`},Fx={class:`flex min-w-36 flex-col gap-xs p-xs`},Ix=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkPopover`,props:(0,f.mergeModels)({isSubItemsActive:{type:Boolean},icon:{},label:{},subItems:{}},{isPopoverOpen:{type:Boolean,default:!1},isPopoverOpenModifiers:{}}),emits:[`update:isPopoverOpen`],setup(e){let t=e,n=(0,f.useModel)(e,`isPopoverOpen`),{isSidebarOpen:r,collapsedVariant:i,sidebarIconCellSize:a,sidebarIconSize:o,sidebarLinkHeight:s}=Q(),c=`${a} 1fr`;function l(){n.value=!n.value}return(u,d)=>((0,f.openBlock)(),(0,f.createBlock)(xx,{"is-active":e.isSubItemsActive},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.HoverCardRoot),{open:n.value,"onUpdate:open":d[4]||=e=>n.value=e,"open-delay":150,"close-delay":150},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.HoverCardTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{"data-active":e.isSubItemsActive||void 0,style:(0,f.normalizeStyle)({height:(0,f.unref)(s),gridTemplateColumns:c}),type:`button`,class:`group grid w-full rounded-md duration-100 hover:bg-fg-primary/4 data-active:bg-fg-primary/4`,onClick:d[0]||=e=>l(),onKeydown:[d[1]||=(0,f.withKeys)((0,f.withModifiers)(e=>l(),[`prevent`]),[`enter`]),d[2]||=(0,f.withKeys)((0,f.withModifiers)(e=>l(),[`prevent`]),[`space`])]},[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({width:(0,f.unref)(a),height:(0,f.unref)(a)}),align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{style:(0,f.normalizeStyle)({width:(0,f.unref)(o),height:(0,f.unref)(o)}),class:`shrink-0 text-fg-quaternary duration-100 group-data-active:text-fg-brand-primary dark:group-data-active:text-fg-primary`},null,8,[`style`]))]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(i)!==`minified`||(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(I,{key:0,align:`center`,justify:`between`,gap:`md`,class:`overflow-hidden pr-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,Nx,(0,f.toDisplayString)(t.label),1)]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})],44,Mx)]),_:1})]),_:1}),(0,f.createVNode)((0,f.unref)(h.HoverCardPortal),{to:`body`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(ei,{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.HoverCardContent),{"side-offset":4,align:`start`,"data-animation":`sidebar-hover-card`,side:`right`,"position-strategy":`absolute`,sticky:`always`,class:`z-50 origin-(--reka-hover-card-content-transform-origin) will-change-[transform,opacity]`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,Px,[(0,f.createElementVNode)(`div`,Fx,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.subItems,e=>((0,f.openBlock)(),(0,f.createBlock)(kx,{key:e.label,label:e.label,to:e.to,"is-indented":!1,onClick:d[3]||=e=>n.value=!1},null,8,[`label`,`to`]))),128))])])]),_:1})]),_:1})]),_:1})]),_:1},8,[`open`])]),_:1},8,[`is-active`]))}}),Lx=(0,f.defineComponent)({__name:`MainSidebarNavigationLink`,props:(0,f.mergeModels)({to:{},type:{default:`link`},isActive:{type:Function,default:()=>!1},icon:{},label:{},onClick:{},keyboardShortcut:{default:null},subItems:{}},{isPopoverOpen:{type:Boolean,default:!1},isPopoverOpenModifiers:{}}),emits:(0,f.mergeModels)([`click`],[`update:isPopoverOpen`]),setup(e,{emit:t}){let n=e,r=t,{isSidebarOpen:i,closeIfFloatingSidebar:a,collapsedVariant:o}=Q(),s=(0,y.useRoute)(),c=(0,y.useRouter)(),l=(0,f.computed)(()=>n.type===`sub-items`),u=(0,f.computed)(()=>v(n)?n:null),d=(0,f.computed)(()=>v(n)?null:n),p=(0,f.computed)(()=>l.value&&!i.value),m=(0,f.computed)(()=>n.isActive?.(s)?!0:u.value?.subItems.some(e=>{let t=c.resolve(e.to);return t.name!=null&&t.name===s.name?!0:t.path!==`/`&&s.path.startsWith(t.path)})??!1),h=(0,f.useModel)(e,`isPopoverOpen`),g=(0,f.computed)(()=>!!(p.value||o.value===`hidden`&&n.keyboardShortcut===null||o.value===`minified`&&i.value&&n.keyboardShortcut===null));function _(){a(),r(`click`)}function v(e){return e.type===`sub-items`}return(0,f.onMounted)(()=>{!v(n)&&`subItems`in n&&n.subItems!=null&&console.warn("[MainSidebarNavigationLink] Received `subItems` but `type` is missing or set to 'link'. Set `type: 'sub-items'` to render this item as an expandable group.")}),(e,t)=>p.value&&u.value!==null?((0,f.openBlock)(),(0,f.createBlock)(Ix,{key:0,"is-popover-open":h.value,"onUpdate:isPopoverOpen":t[0]||=e=>h.value=e,icon:n.icon,"is-sub-items-active":m.value,label:n.label,"sub-items":u.value.subItems},null,8,[`is-popover-open`,`icon`,`is-sub-items-active`,`label`,`sub-items`])):l.value&&u.value!==null?((0,f.openBlock)(),(0,f.createBlock)(jx,{key:1,icon:n.icon,"is-sub-items-active":m.value,"is-tooltip-disabled":g.value,"keyboard-shortcut":n.keyboardShortcut,label:n.label,"sub-items":u.value.subItems},null,8,[`icon`,`is-sub-items-active`,`is-tooltip-disabled`,`keyboard-shortcut`,`label`,`sub-items`])):d.value===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(wx,{key:2,icon:n.icon,"is-active":n.isActive,"is-tooltip-disabled":g.value,"keyboard-shortcut":n.keyboardShortcut,label:n.label,to:d.value.to,onClick:_},{right:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`right`)]),_:3},8,[`icon`,`is-active`,`is-tooltip-disabled`,`keyboard-shortcut`,`label`,`to`]))}}),Rx=(0,f.defineComponent)({__name:`BadgeSeparator`,setup(e){let{variants:t}=ly();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)($o),{class:(0,f.normalizeClass)((0,f.unref)(t).separator()),orientation:`vertical`},null,8,[`class`]))}}),zx=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkBadge`,props:{label:{}},setup(e){let t=e,{isActive:n}=bx();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_y),{label:t.label,color:(0,f.unref)(n)?`brand`:`gray`,size:`sm`},null,8,[`label`,`color`]))}}),Bx={},Vx={class:`size-2 rounded-full bg-success-500`};function Hx(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`,Vx)}var Ux=H(Bx,[[`render`,Hx]]),[Wx,Gx]=F(`mainLayoutContext`);function Kx(){return Gx(null)??{isBrandedActive:(0,f.computed)(()=>!1),variant:(0,f.computed)(()=>`default`)}}var qx={class:`flex h-full flex-col justify-between overflow-hidden text-primary`},Jx=(0,f.defineComponent)({__name:`MainSidebarContent`,setup(e){let{sidebarContainerPadding:t}=Q();return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,qx,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({paddingLeft:(0,f.unref)(t),paddingRight:(0,f.unref)(t),paddingBottom:(0,f.unref)(t)})},[(0,f.renderSlot)(e.$slots,`header`)],4),(0,f.createElementVNode)(`nav`,{style:(0,f.normalizeStyle)({padding:(0,f.unref)(t)}),class:`flex h-full flex-col justify-between gap-2xl overflow-x-hidden overflow-y-auto`},[(0,f.renderSlot)(e.$slots,`navigation`),(0,f.renderSlot)(e.$slots,`bottom-navigation`)],4),(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({padding:(0,f.unref)(t)}),class:`flex flex-col gap-sm`},[(0,f.renderSlot)(e.$slots,`footer`)],4)]))}}),Yx=(0,f.defineComponent)({__name:`MainSidebarTransition`,setup(e){let t=np();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{transform:`translateX(-100%)`},animate:{transform:`translateX(0%)`},exit:{transform:`translateX(-100%)`},transition:{duration:(0,f.unref)(t)?0:.3,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`transition`]))}}),Xx=(0,f.defineComponent)({__name:`MainSidebar`,props:{collapsedVariant:{default:`hidden`}},setup(e){let t=e,{isFloatingSidebar:n,isSidebarOpen:r,setCollapsedVariant:i,sidebarWidth:a}=Q(),o=(0,g.useI18n)(),s=np(),{isBrandedActive:c}=Kx(),l=(0,f.computed)(()=>c.value?[`default`,`branded`]:null);return i(t.collapsedVariant),(t,i)=>(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DialogRoot),{key:0,open:(0,f.unref)(r),"onUpdate:open":i[0]||=e=>(0,f.isRef)(r)?r.value=e:null},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DialogContent),{key:0,"as-child":!0,"force-mount":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Yx,{class:`absolute z-6 h-full w-64 p-md outline-none`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([l.value,`size-full rounded-xl border border-secondary bg-secondary py-md shadow-lg/5`])},[(0,f.createVNode)((0,f.unref)(h.DialogTitle),{as:`h1`,class:`sr-only`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(o).t(`components.sidebar.title`)),1)]),_:1}),(0,f.createVNode)((0,f.unref)(h.DialogDescription),{class:`sr-only`,as:`p`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(o).t(`components.sidebar.description`)),1)]),_:1}),(0,f.createVNode)(Jx,null,{header:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`header`)]),navigation:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`footer`)]),_:3})],2)]),_:3})]),_:3})):(0,f.createCommentVNode)(``,!0),(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DialogOverlay),{key:1,"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.Motion),{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:(0,f.unref)(s)?0:.3},class:`absolute inset-0 z-5 bg-black/10`},null,8,[`transition`])]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:3})]),_:3},8,[`open`])):e.collapsedVariant===`hidden`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{key:1,initial:!1},{default:(0,f.withCtx)(()=>[(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(Yx,{key:0,style:(0,f.normalizeStyle)({width:(0,f.unref)(a)}),class:`absolute h-full pt-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([l.value,`size-full`])},[(0,f.createVNode)(Jx,null,{header:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`header`)]),navigation:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`footer`)]),_:3})],2)]),_:3},8,[`style`])):(0,f.createCommentVNode)(``,!0)]),_:3})):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:2,initial:!1,animate:{width:(0,f.unref)(a)},transition:{duration:(0,f.unref)(s)?0:.3,type:`spring`,bounce:0},style:(0,f.normalizeStyle)({width:(0,f.unref)(a)}),class:`absolute z-1 h-full overflow-hidden pt-[0.475rem]`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([l.value,`size-full`])},[(0,f.createVNode)(Jx,null,{header:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`header`)]),navigation:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`footer`)]),_:3})],2)]),_:3},8,[`animate`,`transition`,`style`]))}}),Zx=(0,f.defineComponent)({__name:`TextShimmer`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,class:`animate-shimmer bg-[linear-gradient(110deg,var(--text-disabled)_40%,var(--text-primary)_50%,var(--text-disabled)_60%)] bg-size-[300%_100%] bg-clip-text! text-transparent dark:bg-[linear-gradient(110deg,var(--text-disabled)_40%,var(--text-primary)_50%,var(--text-disabled)_60%)]`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),Qx={class:`size-full p-md pl-none`},$x={class:`size-full rounded-2xl border border-secondary bg-primary shadow-sm/5`},eS={class:`text-sm font-medium`},tS=(0,f.defineComponent)({__name:`ApplicationLoadingView`,props:{isFetchingAuthUser:{type:Boolean}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,y.useRouter)(),{isFloatingSidebar:i,isSidebarOpen:a,sidebarWidth:o}=Q(),s=(0,f.ref)(!0),c=(0,f.ref)(!1),l=np();r.isReady().then(()=>{s.value=!1});let u=(0,f.computed)(()=>t.isFetchingAuthUser||s.value);return setTimeout(()=>{c.value=!0},500),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[u.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,exit:{opacity:0},transition:{duration:(0,f.unref)(l)?0:.2},style:(0,f.normalizeStyle)({paddingLeft:(0,f.unref)(a)&&!(0,f.unref)(i)?(0,f.unref)(o):`0.5rem`}),class:`absolute inset-0 z-99 size-full bg-secondary`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,Qx,[(0,f.createElementVNode)(`div`,$x,[c.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{key:0,class:`size-full`,align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Zx),null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`h1`,eS,(0,f.toDisplayString)((0,f.unref)(n).t(`component.dashboard_page_loading_state.loading`)),1)]),_:1})]),_:1})):(0,f.createCommentVNode)(``,!0)])])]),_:1},8,[`transition`,`style`])):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),nS={class:`rounded-2xl border border-secondary bg-secondary px-lg py-sm shadow-lg duration-200 ease-in-out group-hover:translate-y-0.5 group-hover:scale-102`},rS={class:`grid grid-cols-[auto_auto] items-center gap-x-md gap-y-none`},iS={class:`flex`},aS=(0,f.defineComponent)({__name:`ApplicationOfflineWarning`,setup(e){let t=(0,g.useI18n)(),{isOnline:n}=(0,m.useNetwork)(),r=(0,f.ref)(!1),i=(0,f.computed)(()=>!n.value);function a(){r.value=!0}(0,f.watch)(i,e=>{e&&(r.value=!1)});let o=np();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[i.value&&!r.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-40},"as-child":!0,transition:{type:`spring`,bounce:0,duration:(0,f.unref)(o)?0:.3},"while-hover":`hovered`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{class:`group absolute top-4 left-1/2 z-10 -translate-x-1/2`,onClick:a},[(0,f.createElementVNode)(`div`,nS,[(0,f.createElementVNode)(`div`,rS,[(0,f.createVNode)((0,f.unref)(Fr),{class:`size-3 text-tertiary`}),(0,f.createVNode)((0,f.unref)(U),{text:(0,f.unref)(t).t(`component.offline_warning.title`),class:`text-xs text-primary`},null,8,[`text`]),n[0]||=(0,f.createElementVNode)(`span`,null,null,-1),(0,f.createVNode)((0,f.unref)(_.Motion),{variants:{hovered:{height:`auto`,opacity:1,y:0}},initial:{height:`0px`,y:-8,opacity:0},transition:{type:`spring`,bounce:0,duration:.3},class:`will-change-transform`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,iS,[(0,f.createVNode)((0,f.unref)(U),{text:(0,f.unref)(t).t(`component.offline_warning.dismiss`),class:`text-xs text-disabled`},null,8,[`text`])])]),_:1})])])])]),_:1})]),_:1},8,[`transition`])):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),oS={href:`#main-content`,class:`absolute top-2 left-2 z-99 rounded-sm bg-primary p-xs text-sm text-primary not-focus-visible:sr-only`},sS=(0,f.defineComponent)({__name:`ApplicationSkipToMainContent`,setup(e){let t=(0,g.useI18n)();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`a`,oS,(0,f.toDisplayString)((0,f.unref)(t).t(`component.skip_to_main_content_link.label`)),1)]),_:1}))}}),cS={class:`flex items-center gap-x-xs`},lS={key:0,class:`flex items-center gap-x-xs text-disabled`},uS={class:`text-secondary`},dS={key:2,class:`text-disabled`},fS=(0,f.defineComponent)({__name:`CommandMenuActionItem`,props:{action:{},ctx:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.computed)(()=>(0,p.resolveActionBreadcrumbs)(n.action,n.ctx)),a=(0,f.computed)(()=>i.value.length===0?null:n.action.icon===void 0?i.value[0]?.icon??null:n.action.icon(n.ctx));return(t,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.ListboxItem),{value:e.action.id,"data-id":e.action.id,class:`flex cursor-default items-center justify-between rounded-md px-lg py-md text-xs`,"data-item":``,onSelect:n[0]||=e=>r(`select`)},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,cS,[i.value.length>0?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,lS,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(i.value,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:t,gap:`xs`},{default:(0,f.withCtx)(()=>[a.value!==null&&t===0?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(a.value),{key:0,class:`size-3.5 text-tertiary`})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`span`,null,(0,f.toDisplayString)(e.label),1),(0,f.createVNode)((0,f.unref)(pn),{class:`size-3 text-tertiary`})]),_:2},1024))),128))])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(I),{gap:`sm`},{default:(0,f.withCtx)(()=>[(0,f.unref)(p.resolveActionAvatar)(e.action,e.ctx)===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_o),(0,f.mergeProps)({key:0},(0,f.unref)(p.resolveActionAvatar)(e.action,e.ctx),{size:`xxs`}),null,16)),e.action.icon!==void 0&&i.value.length===0?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.action.icon(e.ctx)),{key:1,class:`size-3.5 text-secondary`})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`span`,uS,(0,f.toDisplayString)((0,f.unref)(p.resolveActionName)(e.action,e.ctx)),1),(0,f.unref)(p.resolveActionHint)(e.action,e.ctx)?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,dS,(0,f.toDisplayString)((0,f.unref)(p.resolveActionHint)(e.action,e.ctx)),1)):(0,f.createCommentVNode)(``,!0)]),_:1})]),(0,f.unref)(p.resolveActionSelected)(e.action,e.ctx)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(en),{key:0,class:`size-3 text-primary`})):(0,f.createCommentVNode)(``,!0),e.action.keyboardShortcut===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(di),{key:1,"keyboard-shortcut":e.action.keyboardShortcut},null,8,[`keyboard-shortcut`]))]),_:1},8,[`value`,`data-id`]))}}),pS={class:`p-lg`,role:`status`,"aria-live":`polite`},mS={class:`sr-only`},hS=(0,f.defineComponent)({__name:`CommandMenuLoadingSkeleton`,setup(e){let t=(0,g.useI18n)();return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,pS,[(0,f.createElementVNode)(`span`,mS,(0,f.toDisplayString)((0,f.unref)(t).t(`component.command_menu.loading_actions`)),1),(0,f.createVNode)((0,f.unref)(G),{gap:`4xl`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(2,e=>(0,f.createElementVNode)(`div`,{key:e},[(0,f.createVNode)((0,f.unref)(K),{class:`h-2 w-20`}),(0,f.createVNode)((0,f.unref)(G),{class:`mt-xl`,gap:`lg`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(K),{class:`h-3 w-40`}),(0,f.createVNode)((0,f.unref)(K),{class:`h-3 w-24`}),(0,f.createVNode)((0,f.unref)(K),{class:`h-3 w-48`}),(0,f.createVNode)((0,f.unref)(K),{class:`h-3 w-40`})]),_:1})])),64))]),_:1})]))}}),gS={class:`relative flex items-center border-b border-secondary`},_S={class:`text-xxs text-tertiary`},vS={class:`text-xxs text-disabled`},yS={key:0,class:`h-full border-l border-secondary p-xl`},bS=H((0,f.defineComponent)({__name:`CommandMenu`,props:(0,f.mergeModels)({action:{}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,f.mergeModels)([`afterLeave`,`close`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,f.useModel)(e,`isOpen`),a=(0,p.useActionManagerStore)(),o=(0,p.useActionRegistryStore)().allActions(),s=a.focusedModels,c=(0,g.useI18n)(),l=(0,f.useTemplateRef)(`listboxRoot`),u=(0,f.useTemplateRef)(`listboxContent`),d=vt(`Shift`),m=(0,f.ref)([]),_=(0,f.ref)(``),{isLoadingActions:v,buildContext:y,refreshActions:b,resolvedActions:x,subActionsMetaMap:S}=(0,p.useCommandMenuActions)({actionsSnapshot:o,focusedModelsSnapshot:s,listboxContentRef:u,listboxRootRef:l,manager:a,navStack:m,searchInput:_}),{highlightedActionId:C,activateAction:w,breadcrumbs:T,currentParent:E,placeholder:ee,preview:D,onKeyDown:te}=(0,p.useCommandMenuNavigation)({isShiftKeyHeld:d,buildContext:y,emit:r,listboxRootRef:l,manager:a,navStack:m,refreshActions:b,resolvedActions:x,scrollToTopOfGroup:re,searchInput:_,subActionsMetaMap:S}),{hasNavigated:O,isBouncing:ne}=(0,p.useCommandMenuAnimation)(i,()=>m.value.length),k=(0,f.computed)(()=>(0,p.buildCommandMenuGroups)(x.value,y()));n.action!==void 0&&w(n.action),b();function re(){let e=l.value?.highlightedElement?.getAttribute(`data-id`)??null;if(e===null)return;let t=u.value?.$el;if(t===void 0)return;let n=t.querySelector(`[data-id="${CSS.escape(e)}"]`);if(n===null)return;let r=t.getBoundingClientRect(),i=n.closest(`[role="group"]`);if(i===null||i.querySelector(`[data-id]`)!==n)return;let a=i.getBoundingClientRect().top-r.top+t.scrollTop;a<t.scrollTop&&t.scrollTo({behavior:`instant`,top:a})}function A(e){e||r(`close`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DialogRoot),{open:i.value,"onUpdate:open":[t[3]||=e=>i.value=e,A]},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DialogContent),{class:(0,f.normalizeClass)([{bouncing:(0,f.unref)(ne),navigated:(0,f.unref)(O)},`absolute top-28 left-1/2 z-99 w-full max-w-180 -translate-x-1/2 rounded-xl border border-transparent bg-primary shadow-lg duration-200 outline-none dark:border-secondary`]),"data-command-menu":``,onAfterLeave:t[2]||=e=>r(`afterLeave`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DialogTitle),{class:`sr-only`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(c).t(`component.command_menu.title`)),1)]),_:1}),(0,f.createVNode)((0,f.unref)(h.DialogDescription),{class:`sr-only`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(c).t(`component.command_menu.title`)),1)]),_:1}),(0,f.createVNode)((0,f.unref)(h.ListboxRoot),{ref:`listboxRoot`,"highlight-on-hover":!0,class:`flex flex-col overflow-hidden`,onHighlight:t[1]||=e=>C.value=e?.value??null},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,gS,[(0,f.unref)(T).length>0&&(0,f.unref)(E)?.forceAsRootMenu!==!0?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,as:`ul`,gap:`xs`,class:`-mr-sm pl-lg`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)((0,f.unref)(T),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:t},[(0,f.createVNode)((0,f.unref)(_y),{label:e,size:`sm`},null,8,[`label`]),t===(0,f.unref)(T).length-1?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(pn),{key:0,class:`size-3 text-tertiary`}))],64))),128))]),_:1})):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(h.ListboxFilter),{modelValue:_.value,"onUpdate:modelValue":t[0]||=e=>_.value=e,placeholder:(0,f.unref)(ee),class:`block w-full p-lg text-xs text-secondary outline-none`,onKeydown:(0,f.unref)(te)},null,8,[`modelValue`,`placeholder`,`onKeydown`])]),(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([{"grid-cols-2":(0,f.unref)(D)!==null},`grid`])},[((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.ListboxContent),{key:(0,f.unref)(x).map(e=>e.id).join(``),ref:`listboxContent`,class:`max-h-96 scroll-p-1 overflow-y-auto outline-none select-none`,"data-content":``},{default:(0,f.withCtx)(()=>[(0,f.unref)(x).length>0?((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,{key:0},(0,f.renderList)(k.value,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.ListboxGroup),{key:e.key,class:`p-xs`},{default:(0,f.withCtx)(()=>[e.label!==null&&(e.showIfOnlyGroup||(0,f.unref)(E)===null||k.value.length>1)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.ListboxGroupLabel),{key:0,class:`px-md py-xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{gap:`xs`},{default:(0,f.withCtx)(()=>[e.icon===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.icon),{key:0,class:`size-3 text-disabled`})),e.category===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[(0,f.createElementVNode)(`span`,_S,(0,f.toDisplayString)(e.category),1),t[4]||=(0,f.createElementVNode)(`span`,{class:`text-xxs text-tertiary`},`•`,-1)],64)),(0,f.createElementVNode)(`span`,vS,(0,f.toDisplayString)(e.label),1)]),_:2},1024)]),_:2},1024)):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.items,e=>((0,f.openBlock)(),(0,f.createBlock)(fS,{key:e.id,action:e,ctx:(0,f.unref)(y)(),onSelect:t=>(0,f.unref)(w)(e)},null,8,[`action`,`ctx`,`onSelect`]))),128))]),_:2},1024))),128)):(0,f.unref)(v)?((0,f.openBlock)(),(0,f.createBlock)(hS,{key:1})):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:2,text:(0,f.unref)(c).t(`component.command_menu.no_results`,{query:_.value}),class:`flex p-lg text-xs text-tertiary`},null,8,[`text`]))]),_:1})),(0,f.unref)(D)===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,yS,[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)((0,f.unref)(D))))]))],2)]),_:1},512)]),_:1},8,[`class`]),(0,f.createVNode)((0,f.unref)(h.DialogOverlay),{class:`absolute inset-0 z-39 bg-black/5 dark:bg-black/20`,"data-overlay":``})]),_:1},8,[`open`]))}}),[[`__scopeId`,`data-v-d2f841e7`]]);function xS(){let e=(0,g.useI18n)(),t=Cv(),n=t.create(bS);return(0,p.createAction)({id:`command-menu`,isApplicable:e=>e.menuType===void 0,name:()=>e.t(`action.global.open_command_menu.name`),availableWhenUnauthenticated:!0,execute:()=>{t.isOpen(n.id)?n.close():n.open()},keyboardShortcut:{key:`K`,mod:!0,runWithInputFocus:!0}})}var SS=(0,f.defineComponent)({__name:`DialogBody`,setup(e){let{bodyRef:t,style:n}=_v();function r(e){t.value=e??null}return(0,f.onBeforeUnmount)(()=>{t.value=null}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{ref:r,class:(0,f.normalizeClass)((0,f.unref)(n).body()),"data-dialog-body":``},[(0,f.renderSlot)(e.$slots,`default`)],2))}});function CS(){let e=(0,f.shallowRef)(null);function t(t){e.value=t}function n(){e.value=null}return{chin:e,close:n,open:t}}var wS=(0,f.defineComponent)({__name:`DialogContainer`,setup(e){let{close:t,overlays:n,unmount:r}=Cv();function i(e,n){t(e,n)}function a(e){r(e)}return(e,t)=>((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)((0,f.unref)(n),e=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:e.id},[e.isMounted?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.component),(0,f.mergeProps)({key:0,ref_for:!0},e.props,{"is-open":e.isOpen,"onUpdate:isOpen":t=>e.isOpen=t,onClose:t=>i(e.id,t),onAfterLeave:t=>a(e.id)}),null,16,[`is-open`,`onUpdate:isOpen`,`onClose`,`onAfterLeave`])):(0,f.createCommentVNode)(``,!0)],64))),128))}}),TS=(0,f.defineComponent)({__name:`DialogFooterSecondary`,props:{isAutoFocusDisabled:{type:Boolean},isDestructive:{type:Boolean},disableAutoFocus:{type:Boolean},disabledReason:{default:null},form:{default:null},iconLeft:{default:null},iconRight:{default:null},isDisabled:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},label:{},type:{default:`button`}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t;return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Y,(0,f.mergeProps)(n,{variant:`secondary`,onClick:t[0]||=e=>r(`click`)}),null,16))}}),ES=(0,f.defineComponent)({__name:`DialogFooterSubmit`,props:{isDestructive:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},label:{}},setup(e){let t=e,{form:n}=hv();return ut(`Mod+Enter`,()=>{n.submit()}),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Y),{label:t.label,"is-loading":(0,f.unref)(n).isSubmitting.value,"is-disabled":t.isDisabled,"keyboard-shortcut":{key:`Enter`,mod:!0},variant:t.isDestructive?`destructive-primary`:`primary`,onClick:(0,f.unref)(n).submit},null,8,[`label`,`is-loading`,`is-disabled`,`variant`,`onClick`]))}});function DS(e){let t=Cv();return{triggerProps:(0,f.computed)(()=>{let n=t.overlays.find(t=>t.id===e)?.isOpen??!1;return{"aria-expanded":n,"aria-haspopup":`dialog`,"data-state":n?`open`:`closed`}})}}var[OS,kS]=F(`formDialogContext`),AS=(0,f.defineComponent)({__name:`FormDialog`,props:(0,f.mergeModels)({hasOwnFormComponent:{type:Boolean,default:!1},isUnsavedChangesPromptEnabled:{type:Boolean,default:!0},form:{},promptOnUnsavedChanges:{type:Boolean,default:!0},renderOwnFormComponent:{type:Boolean,default:!1},unsavedChangesText:{default:null},hasCloseButton:{type:Boolean,default:!0},isClickOutsideDisabled:{type:Boolean,default:!1},isEscDisabled:{type:Boolean,default:!1},chin:{},preventClickOutside:{type:Boolean},preventEsc:{type:Boolean},showCloseButton:{type:Boolean},size:{default:`md`}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,f.mergeModels)([`close`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,g.useI18n)(),a=(0,f.useModel)(e,`isOpen`),o=(0,f.useId)(),s=CS(),c=0;OS({formId:o,form:n.form});let l=(0,f.computed)(()=>s.chin.value??n.chin??null),u=(0,f.computed)(()=>n.promptOnUnsavedChanges===!0?n.isUnsavedChangesPromptEnabled:!1),d=(0,f.computed)(()=>n.hasOwnFormComponent||n.renderOwnFormComponent),p=(0,f.computed)({get:()=>a.value,set:e=>{if(e){a.value=!0;return}if(u.value&&n.form.isDirty.value){v();return}m(),a.value=!1,r(`close`)}});function m(){s.close()}function h(){return c+=1,c}function _(e){return{icon:Et,primaryAction:{action:()=>{m(),a.value=!1,r(`close`)},label:i.t(`component.unsaved_changes_dialog.confirm`),type:`button`,variant:`destructive`},pulseKey:e,secondaryAction:{action:m,label:i.t(`component.unsaved_changes_dialog.cancel`),type:`button`,variant:`default`},text:n.unsavedChangesText??i.t(`component.form_dialog.unsaved_changes`),variant:`error`}}function v(){if(s.chin.value!==null){s.open(_(h()));return}s.open(_())}function y(e){if(!(n.isEscDisabled||!u.value||!n.form.isDirty.value)){if(e.preventDefault(),s.chin.value!==null){m(),a.value=!1,r(`close`);return}v()}}return(0,f.watch)(()=>n.form.state.value,()=>{s.chin.value!==null&&m()},{deep:!0}),(0,f.watch)(()=>a.value,e=>{e||m()}),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Tv,{"is-open":p.value,"onUpdate:isOpen":t[0]||=e=>p.value=e,chin:l.value,"has-close-button":n.hasCloseButton,size:n.size,"is-click-outside-disabled":n.isClickOutsideDisabled,"is-esc-disabled":n.isEscDisabled,onEscapeKeyDown:y},{default:(0,f.withCtx)(()=>[d.value?(0,f.renderSlot)(e.$slots,`default`,{key:0,formId:(0,f.unref)(o)}):((0,f.openBlock)(),(0,f.createBlock)(Pv,{key:1,form:n.form,"is-unsaved-changes-prompt-enabled":!1,class:`flex size-full flex-col overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`,{formId:(0,f.unref)(o)})]),_:3},8,[`form`]))]),_:3},8,[`is-open`,`chin`,`has-close-button`,`size`,`is-click-outside-disabled`,`is-esc-disabled`]))}}),jS=(0,f.defineComponent)({__name:`FormDialogForm`,setup(e){let t=kS();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Pv),{id:(0,f.unref)(t).formId,form:(0,f.unref)(t).form,"is-unsaved-changes-prompt-enabled":!1},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`,{formId:(0,f.unref)(t).formId})]),_:3},8,[`id`,`form`]))}}),MS={withStackTrace:!1},NS=(e,t,n=MS)=>({data:t.isOk()?{type:`Ok`,value:t.value}:{type:`Err`,value:t.error},message:e,stack:n.withStackTrace?Error().stack:void 0});function PS(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function FS(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function IS(e){return this instanceof IS?(this.v=e,this):new IS(e)}function LS(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof IS?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function RS(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:IS(e[r](t)),done:!1}:i?i(t):t}:i}}function zS(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof FS==`function`?FS(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var BS=class e{constructor(e){this._promise=e}static fromSafePromise(t){return new e(t.then(e=>new YS(e)))}static fromPromise(t,n){return new e(t.then(e=>new YS(e)).catch(e=>new XS(n(e))))}static fromThrowable(t,n){return(...r)=>new e(PS(this,void 0,void 0,function*(){try{return new YS(yield t(...r))}catch(e){return new XS(n?n(e):e)}}))}static combine(e){return US(e)}static combineWithAllErrors(e){return GS(e)}map(t){return new e(this._promise.then(e=>PS(this,void 0,void 0,function*(){return e.isErr()?new XS(e.error):new YS(yield t(e.value))})))}andThrough(t){return new e(this._promise.then(e=>PS(this,void 0,void 0,function*(){if(e.isErr())return new XS(e.error);let n=yield t(e.value);return n.isErr()?new XS(n.error):new YS(e.value)})))}andTee(t){return new e(this._promise.then(e=>PS(this,void 0,void 0,function*(){if(e.isErr())return new XS(e.error);try{yield t(e.value)}catch{}return new YS(e.value)})))}orTee(t){return new e(this._promise.then(e=>PS(this,void 0,void 0,function*(){if(e.isOk())return new YS(e.value);try{yield t(e.error)}catch{}return new XS(e.error)})))}mapErr(t){return new e(this._promise.then(e=>PS(this,void 0,void 0,function*(){return e.isOk()?new YS(e.value):new XS(yield t(e.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new XS(n.error);let r=t(n.value);return r instanceof e?r._promise:r}))}orElse(t){return new e(this._promise.then(e=>PS(this,void 0,void 0,function*(){return e.isErr()?t(e.error):new YS(e.value)})))}match(e,t){return this._promise.then(n=>n.match(e,t))}unwrapOr(e){return this._promise.then(t=>t.unwrapOr(e))}safeUnwrap(){return LS(this,arguments,function*(){return yield IS(yield IS(yield*RS(zS(yield IS(this._promise.then(e=>e.safeUnwrap()))))))})}then(e,t){return this._promise.then(e,t)}[Symbol.asyncIterator](){return LS(this,arguments,function*(){let e=yield IS(this._promise);return e.isErr()&&(yield yield IS(VS(e.error))),yield IS(e.value)})}};function VS(e){return new BS(Promise.resolve(new XS(e)))}BS.fromPromise,BS.fromSafePromise,BS.fromThrowable;var HS=e=>{let t=qS([]);for(let n of e)if(n.isErr()){t=JS(n.error);break}else t.map(e=>e.push(n.value));return t},US=e=>BS.fromSafePromise(Promise.all(e)).andThen(HS),WS=e=>{let t=qS([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=JS([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},GS=e=>BS.fromSafePromise(Promise.all(e)).andThen(WS),KS;(function(e){function t(e,t){return(...n)=>{try{return qS(e(...n))}catch(e){return JS(t?t(e):e)}}}e.fromThrowable=t;function n(e){return HS(e)}e.combine=n;function r(e){return WS(e)}e.combineWithAllErrors=r})(KS||={});function qS(e){return new YS(e)}function JS(e){return new XS(e)}var YS=class{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return qS(e(this.value))}mapErr(e){return qS(this.value)}andThen(e){return e(this.value)}andThrough(e){return e(this.value).map(e=>this.value)}andTee(e){try{e(this.value)}catch{}return qS(this.value)}orTee(e){return qS(this.value)}orElse(e){return qS(this.value)}asyncAndThen(e){return e(this.value)}asyncAndThrough(e){return e(this.value).map(()=>this.value)}asyncMap(e){return BS.fromSafePromise(e(this.value))}unwrapOr(e){return this.value}match(e,t){return e(this.value)}safeUnwrap(){let e=this.value;return(function*(){return e})()}_unsafeUnwrap(e){return this.value}_unsafeUnwrapErr(e){throw NS("Called `_unsafeUnwrapErr` on an Ok",this,e)}*[Symbol.iterator](){return this.value}},XS=class{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return JS(this.error)}mapErr(e){return JS(e(this.error))}andThrough(e){return JS(this.error)}andTee(e){return JS(this.error)}orTee(e){try{e(this.error)}catch{}return JS(this.error)}andThen(e){return JS(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return VS(this.error)}asyncAndThrough(e){return VS(this.error)}asyncMap(e){return VS(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return(function*(){throw yield JS(e),Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(e){throw NS("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}*[Symbol.iterator](){let e=this;return yield e,e}};KS.fromThrowable;var ZS={prefetchStaleTime:60,limit:20};ZS.limit,ZS.limit;var QS=class e{static getApiErrorCode(e){return e.errors?.[0]?.code??null}static getApiErrorMessage(e){return e.errors?.[0]?.detail??null}static getMessage(e){return e.errors?.[0]?.detail??null}static handleApiError({error:t,message:n}){return e.isExpectedApiError(t)||(console.error(`Unexpected API error: ${t}`),t instanceof Error)?t:Error(n??`An unknown error occurred`)}static isExpectedApiError(e){return e?.errors!==void 0}static isZodError(e){return e instanceof d.default.ZodError}},$S=1,eC=new class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{let{message:t,...n}=e,r=typeof e.id==`number`||e.id&&e.id?.length>0?e.id:$S++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e,type:`default`});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],(0,f.isVNode)(e))i=!1,this.create({id:n,type:`default`,message:e});else if(nC(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!(0,f.isVNode)(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!(0,f.isVNode)(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!(0,f.isVNode)(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!(0,f.isVNode)(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})};custom=(e,t)=>{let n=t?.id||$S++,r=this.toasts.find(e=>e.id===n),i=t?.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),r?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,component:e,dismissible:i,id:n,...t}),{...r,component:e,dismissible:i,id:n,...t}):r):this.addToast({component:e,dismissible:i,id:n,...t}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};function tC(e,t){let n=t?.id||$S++;return eC.create({message:e,id:n,type:`default`,...t}),n}var nC=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,rC=Object.assign(tC,{success:eC.success,info:eC.info,warning:eC.warning,error:eC.error,custom:eC.custom,message:eC.message,promise:eC.promise,dismiss:eC.dismiss,loading:eC.loading},{getHistory:()=>eC.toasts,getToasts:()=>eC.getActiveToasts()});function iC(e){return e.label!==void 0}var aC=3,oC=`24px`,sC=`16px`,cC=4e3,lC=356,uC=14,dC=45,fC=200;function pC(){let e=(0,f.ref)(!1);return(0,f.watchEffect)(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function mC(...e){return e.filter(Boolean).join(` `)}function hC(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function gC(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?sC:oC;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var _C=[`data-rich-colors`,`data-styled`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-invert`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],vC=[`aria-label`,`data-disabled`,`data-close-button-position`],yC=(0,f.defineComponent)({__name:`Toast`,props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},closeButtonPosition:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:[`update:heights`,`update:height`,`removeToast`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.ref)(null),a=(0,f.ref)(null),o=(0,f.ref)(!1),s=(0,f.ref)(!1),c=(0,f.ref)(!1),l=(0,f.ref)(!1),u=(0,f.ref)(!1),d=(0,f.ref)(0),p=(0,f.ref)(0),m=(0,f.ref)(n.toast.duration||n.duration||cC),h=(0,f.ref)(null),g=(0,f.ref)(null),_=(0,f.computed)(()=>n.index===0),v=(0,f.computed)(()=>n.index+1<=n.visibleToasts),y=(0,f.computed)(()=>n.toast.type),b=(0,f.computed)(()=>n.toast.dismissible!==!1),x=(0,f.computed)(()=>n.toast.class||``),S=(0,f.computed)(()=>n.descriptionClass||``),C=(0,f.computed)(()=>{let e=n.toast.position||n.position,t=n.heights.filter(t=>t.position===e).findIndex(e=>e.toastId===n.toast.id);return t>=0?t:0}),w=(0,f.computed)(()=>{let e=n.toast.position||n.position;return n.heights.filter(t=>t.position===e).reduce((e,t,n)=>n>=C.value?e:e+t.height,0)}),T=(0,f.computed)(()=>C.value*n.gap+w.value||0),E=(0,f.computed)(()=>n.toast.closeButton??n.closeButton),ee=(0,f.computed)(()=>n.toast.duration||n.duration||cC),D=(0,f.ref)(0),te=(0,f.ref)(0),O=(0,f.ref)(null),ne=(0,f.computed)(()=>n.position.split(`-`)),k=(0,f.computed)(()=>ne.value[0]),re=(0,f.computed)(()=>ne.value[1]),A=(0,f.computed)(()=>typeof n.toast.title!=`string`),ie=(0,f.computed)(()=>typeof n.toast.description!=`string`),{isDocumentHidden:ae}=pC(),oe=(0,f.computed)(()=>y.value&&y.value===`loading`);(0,f.onMounted)(()=>{o.value=!0,m.value=ee.value}),(0,f.watchEffect)(async()=>{if(!o.value||!g.value)return;await(0,f.nextTick)();let e=g.value,t=e.style.height;e.style.height=`auto`;let i=e.getBoundingClientRect().height;e.style.height=t,p.value=i,r(`update:height`,{toastId:n.toast.id,height:i,position:n.toast.position||n.position})});function se(){s.value=!0,d.value=T.value,setTimeout(()=>{r(`removeToast`,n.toast)},fC)}function j(){if(oe.value||!b.value)return{};se(),n.toast.onDismiss?.(n.toast)}function ce(e){e.button!==2&&(oe.value||!b.value||(h.value=new Date,d.value=T.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(c.value=!0,O.value={x:e.clientX,y:e.clientY})))}function le(){if(l.value||!b.value)return;O.value=null;let e=Number(g.value?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(g.value?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-(h.value?.getTime()||0),o=i.value===`x`?e:t,s=Math.abs(o)/r;if(Math.abs(o)>=dC||s>.11){d.value=T.value,n.toast.onDismiss?.(n.toast),i.value===`x`?a.value=e>0?`right`:`left`:a.value=t>0?`down`:`up`,se(),l.value=!0;return}else g.value?.style.setProperty(`--swipe-amount-x`,`0px`),g.value?.style.setProperty(`--swipe-amount-y`,`0px`);u.value=!1,c.value=!1,i.value=null}function ue(e){if(!O.value||!b.value||(window?.getSelection()?.toString()?.length??!1))return;let t=e.clientY-O.value.y,r=e.clientX-O.value.x,a=n.swipeDirections??hC(n.position);!i.value&&(Math.abs(r)>1||Math.abs(t)>1)&&(i.value=Math.abs(r)>Math.abs(t)?`x`:`y`);let o={x:0,y:0},s=e=>1/(1.5+Math.abs(e)/20);if(i.value===`y`){if(a.includes(`top`)||a.includes(`bottom`))if(a.includes(`top`)&&t<0||a.includes(`bottom`)&&t>0)o.y=t;else{let e=t*s(t);o.y=Math.abs(e)<Math.abs(t)?e:t}}else if(i.value===`x`&&(a.includes(`left`)||a.includes(`right`)))if(a.includes(`left`)&&r<0||a.includes(`right`)&&r>0)o.x=r;else{let e=r*s(r);o.x=Math.abs(e)<Math.abs(r)?e:r}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&(u.value=!0),g.value?.style.setProperty(`--swipe-amount-x`,`${o.x}px`),g.value?.style.setProperty(`--swipe-amount-y`,`${o.y}px`)}(0,f.onMounted)(()=>{if(o.value=!0,!g.value)return;let e=g.value.getBoundingClientRect().height;p.value=e,r(`update:heights`,[{toastId:n.toast.id,height:e,position:n.toast.position},...n.heights])}),(0,f.onBeforeUnmount)(()=>{g.value&&r(`removeToast`,n.toast)}),(0,f.watchEffect)(e=>{if(n.toast.promise&&y.value===`loading`||n.toast.duration===1/0||n.toast.type===`loading`)return;let t;n.expanded||n.interacting||ae.value?(()=>{if(te.value<D.value){let e=new Date().getTime()-D.value;m.value-=e}te.value=new Date().getTime()})():m.value!==1/0&&(D.value=new Date().getTime(),t=setTimeout(()=>{n.toast.onAutoClose?.(n.toast),se()},m.value)),e(()=>{clearTimeout(t)})}),(0,f.watch)(()=>n.toast.delete,e=>{e!==void 0&&e&&(se(),n.toast.onDismiss?.(n.toast))},{deep:!0});function M(){c.value=!1,i.value=null,O.value=null}return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:g,class:(0,f.normalizeClass)((0,f.unref)(mC)(n.class,x.value,e.classes?.toast,e.toast.classes?.toast,e.classes?.[y.value],e.toast?.classes?.[y.value])),"data-sonner-toast":``,"data-rich-colors":e.toast.richColors??e.defaultRichColors,"data-styled":!(e.toast.component||e.toast?.unstyled||e.unstyled),"data-mounted":o.value,"data-promise":!!e.toast.promise,"data-swiped":u.value,"data-removed":s.value,"data-visible":v.value,"data-y-position":k.value,"data-x-position":re.value,"data-index":e.index,"data-front":_.value,"data-swiping":c.value,"data-dismissible":b.value,"data-type":y.value,"data-invert":e.toast.invert||e.invert,"data-swipe-out":l.value,"data-swipe-direction":a.value,"data-expanded":!!(e.expanded||e.expandByDefault&&o.value),"data-testid":e.toast.testId,style:(0,f.normalizeStyle)({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${s.value?d.value:T.value}px`,"--initial-height":e.expandByDefault?`auto`:`${p.value}px`,...e.style,...n.toast.style}),onDragend:M,onPointerdown:ce,onPointerup:le,onPointermove:ue},[E.value&&!e.toast.component&&y.value!==`loading`?((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":oe.value,"data-close-button":`true`,"data-close-button-position":e.closeButtonPosition,class:(0,f.normalizeClass)((0,f.unref)(mC)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:j},[e.icons?.close?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.icons?.close),{key:0})):(0,f.renderSlot)(e.$slots,`close-icon`,{key:1})],10,vC)):(0,f.createCommentVNode)(`v-if`,!0),e.toast.component?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.toast.component),(0,f.mergeProps)({key:1},e.toast.componentProps,{onCloseToast:j,isPaused:e.$props.expanded||e.$props.interacting||(0,f.unref)(ae)}),null,16,[`isPaused`])):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:2},[y.value!=="default"||e.toast.icon||e.toast.promise?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,"data-icon":``,class:(0,f.normalizeClass)((0,f.unref)(mC)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.toast.icon),{key:0})):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[y.value===`loading`?(0,f.renderSlot)(e.$slots,`loading-icon`,{key:0}):y.value===`success`?(0,f.renderSlot)(e.$slots,`success-icon`,{key:1}):y.value===`error`?(0,f.renderSlot)(e.$slots,`error-icon`,{key:2}):y.value===`warning`?(0,f.renderSlot)(e.$slots,`warning-icon`,{key:3}):y.value===`info`?(0,f.renderSlot)(e.$slots,`info-icon`,{key:4}):(0,f.createCommentVNode)(`v-if`,!0)],64))],2)):(0,f.createCommentVNode)(`v-if`,!0),(0,f.createElementVNode)(`div`,{"data-content":``,class:(0,f.normalizeClass)((0,f.unref)(mC)(e.classes?.content,e.toast?.classes?.content))},[(0,f.createElementVNode)(`div`,{"data-title":``,class:(0,f.normalizeClass)((0,f.unref)(mC)(e.classes?.title,e.toast.classes?.title))},[A.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.toast.title),(0,f.normalizeProps)((0,f.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[(0,f.createTextVNode)((0,f.toDisplayString)(e.toast.title),1)],64))],2),e.toast.description?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,"data-description":``,class:(0,f.normalizeClass)((0,f.unref)(mC)(e.descriptionClass,S.value,e.classes?.description,e.toast.classes?.description))},[ie.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.toast.description),(0,f.normalizeProps)((0,f.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[(0,f.createTextVNode)((0,f.toDisplayString)(e.toast.description),1)],64))],2)):(0,f.createCommentVNode)(`v-if`,!0)],2),e.toast.cancel?((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:1,style:(0,f.normalizeStyle)(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:(0,f.normalizeClass)((0,f.unref)(mC)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:t[0]||=t=>{(0,f.unref)(iC)(e.toast.cancel)&&b.value&&(e.toast.cancel.onClick?.(t),se())}},(0,f.toDisplayString)((0,f.unref)(iC)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):(0,f.createCommentVNode)(`v-if`,!0),e.toast.action?((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:2,style:(0,f.normalizeStyle)(e.toast.actionButtonStyle||e.actionButtonStyle),class:(0,f.normalizeClass)((0,f.unref)(mC)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:t[1]||=t=>{(0,f.unref)(iC)(e.toast.action)&&(e.toast.action.onClick?.(t),!t.defaultPrevented&&se())}},(0,f.toDisplayString)((0,f.unref)(iC)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):(0,f.createCommentVNode)(`v-if`,!0)],64))],46,_C))}}),bC=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},xC={},SC={xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stoke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`};function CC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,SC,t[0]||=[(0,f.createElementVNode)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),(0,f.createElementVNode)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var wC=bC(xC,[[`render`,CC]]),TC=[`data-visible`],EC={class:`sonner-spinner`},DC=(0,f.defineComponent)({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let t=Array(12).fill(0);return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[(0,f.createElementVNode)(`div`,EC,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)((0,f.unref)(t),e=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,TC))}}),OC={},kC={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function AC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,kC,t[0]||=[(0,f.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,"clip-rule":`evenodd`},null,-1)])}var jC=bC(OC,[[`render`,AC]]),MC={},NC={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function PC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,NC,t[0]||=[(0,f.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,"clip-rule":`evenodd`},null,-1)])}var FC=bC(MC,[[`render`,PC]]),IC={},LC={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function RC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,LC,t[0]||=[(0,f.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,"clip-rule":`evenodd`},null,-1)])}var zC=bC(IC,[[`render`,RC]]),BC={},VC={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function HC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,VC,t[0]||=[(0,f.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,"clip-rule":`evenodd`},null,-1)])}var UC=bC(BC,[[`render`,HC]]),WC=[`aria-label`],GC=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],KC=typeof window<`u`&&typeof document<`u`;function qC(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}var JC=(0,f.defineComponent)({name:`Toaster`,inheritAttrs:!1,__name:`Toaster`,props:{id:{},invert:{type:Boolean,default:!1},theme:{default:`light`},position:{default:`bottom-right`},closeButtonPosition:{default:`top-left`},hotkey:{default:()=>[`altKey`,`KeyT`]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:uC},visibleToasts:{default:aC},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:oC},mobileOffset:{default:sC},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let t=e,n=(0,f.useAttrs)(),r=(0,f.ref)([]),i=(0,f.computed)(()=>t.id?r.value.filter(e=>e.toasterId===t.id):r.value.filter(e=>!e.toasterId));function a(e,t){return i.value.filter(n=>!n.position&&t===0||n.position===e)}let o=(0,f.computed)(()=>{let e=i.value.filter(e=>e.position).map(e=>e.position);return e.length>0?Array.from(new Set([t.position].concat(e))):[t.position]}),s=(0,f.computed)(()=>{let e={};return o.value.forEach(t=>{e[t]=r.value.filter(e=>e.position===t)}),e}),c=(0,f.ref)([]),l=(0,f.ref)({}),u=(0,f.ref)(!1);(0,f.watchEffect)(()=>{o.value.forEach(e=>{e in l.value||(l.value[e]=!1)})});let d=(0,f.ref)(t.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t.theme),p=(0,f.ref)(null),m=(0,f.ref)(null),h=(0,f.ref)(!1),g=t.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function _(e){r.value.find(t=>t.id===e.id)?.delete||eC.dismiss(e.id),r.value=r.value.filter(({id:t})=>t!==e.id),setTimeout(()=>{r.value.find(t=>t.id===e.id)||(c.value=c.value.filter(t=>t.toastId!==e.id))},250)}function v(e){h.value&&!e.currentTarget?.contains?.(e.relatedTarget)&&(h.value=!1,m.value&&=(m.value.focus({preventScroll:!0}),null))}function y(e){e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||h.value||(h.value=!0,m.value=e.relatedTarget)}function b(e){e.target&&e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||(u.value=!0)}(0,f.watchEffect)(e=>{e(eC.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{r.value=r.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}(0,f.nextTick)(()=>{let t=r.value.findIndex(t=>t.id===e.id);t===-1?r.value=[e,...r.value]:r.value=[...r.value.slice(0,t),{...r.value[t],...e},...r.value.slice(t+1)]})}))}),(0,f.watchEffect)(e=>{if(typeof window>`u`)return;if(t.theme!==`system`){d.value=t.theme;return}let n=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{d.value=e?`dark`:`light`};r(n.matches);let i=e=>{r(e.matches)};try{n.addEventListener(`change`,i)}catch{n.addListener(i)}e(()=>{try{n.removeEventListener(`change`,i)}catch{n.removeListener(i)}})}),(0,f.watchEffect)(()=>{p.value&&m.value&&(m.value.focus({preventScroll:!0}),m.value=null,h.value=!1)}),(0,f.watchEffect)(()=>{r.value.length<=1&&Object.keys(l.value).forEach(e=>{l.value[e]=!1})}),(0,f.watchEffect)(e=>{function n(e){let n=t.hotkey.every(t=>e[t]||e.code===t),r=Array.isArray(p.value)?p.value[0]:p.value;n&&(o.value.forEach(e=>{l.value[e]=!0}),r?.focus());let i=document.activeElement===p.value||r?.contains(document.activeElement);e.code===`Escape`&&i&&o.value.forEach(e=>{l.value[e]=!1})}KC&&(document.addEventListener(`keydown`,n),e(()=>{document.removeEventListener(`keydown`,n)}))});function x(e){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!0}function S(e){if(!u.value){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!1}}function C(){Object.keys(l.value).forEach(e=>{l.value[e]=!1})}function w(){u.value=!1}function T(e){c.value=e}function E(e){let t=c.value.findIndex(t=>t.toastId===e.toastId);if(t!==-1)c.value[t]=e;else{let t=c.value.findIndex(t=>t.position===e.position);t===-1?c.value.unshift(e):c.value.splice(t,0,e)}}return(e,r)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,[(0,f.createCommentVNode)(` Remove item from normal navigation flow, only available via hotkey `),(0,f.createElementVNode)(`section`,{"aria-label":`${e.containerAriaLabel} ${(0,f.unref)(g)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(o.value,(r,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(`ol`,(0,f.mergeProps)({key:r,ref_for:!0,ref_key:`listRef`,ref:p,"data-sonner-toaster":``,"data-sonner-theme":d.value,class:t.class,dir:e.dir===`auto`?qC():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":r.split(`-`)[0],"data-x-position":r.split(`-`)[1],style:{"--front-toast-height":`${c.value[0]?.height||0}px`,"--width":`${(0,f.unref)(lC)}px`,"--gap":`${e.gap}px`,...e.style,...(0,f.unref)(n).style,...(0,f.unref)(gC)(e.offset,e.mobileOffset)}},{ref_for:!0},e.$attrs,{onBlur:v,onFocus:y,onMouseenter:x,onMousemove:x,onMouseleave:S,onDragend:C,onPointerdown:b,onPointerup:w}),[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(a(r,i),(n,i)=>((0,f.openBlock)(),(0,f.createBlock)(yC,{key:n.id,heights:c.value,icons:e.icons,index:i,toast:n,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:(0,f.normalizeClass)(e.toastOptions?.class??``),descriptionClass:e.toastOptions?.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:e.toastOptions?.closeButton??e.closeButton,interacting:u.value,position:r,closeButtonPosition:e.toastOptions?.closeButtonPosition??e.closeButtonPosition,style:(0,f.normalizeStyle)(e.toastOptions?.style),unstyled:e.toastOptions?.unstyled,classes:e.toastOptions?.classes,cancelButtonStyle:e.toastOptions?.cancelButtonStyle,actionButtonStyle:e.toastOptions?.actionButtonStyle,"close-button-aria-label":e.toastOptions?.closeButtonAriaLabel,toasts:s.value[r],expandByDefault:e.expand,gap:e.gap,expanded:l.value[r]||!1,swipeDirections:t.swipeDirections,"onUpdate:heights":T,"onUpdate:height":E,onRemoveToast:_},{"close-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`close-icon`,{},()=>[(0,f.createVNode)(wC)])]),"loading-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`loading-icon`,{},()=>[(0,f.createVNode)(DC,{visible:n.type===`loading`},null,8,[`visible`])])]),"success-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`success-icon`,{},()=>[(0,f.createVNode)(jC)])]),"error-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`error-icon`,{},()=>[(0,f.createVNode)(UC)])]),"warning-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`warning-icon`,{},()=>[(0,f.createVNode)(zC)])]),"info-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`info-icon`,{},()=>[(0,f.createVNode)(FC)])]),_:2},1032,[`heights`,`icons`,`index`,`toast`,`defaultRichColors`,`duration`,`class`,`descriptionClass`,`invert`,`visibleToasts`,`closeButton`,`interacting`,`position`,`closeButtonPosition`,`style`,`unstyled`,`classes`,`cancelButtonStyle`,`actionButtonStyle`,`close-button-aria-label`,`toasts`,`expandByDefault`,`gap`,`expanded`,`swipeDirections`]))),128))],16,GC))),128))],8,WC)],2112))}}),YC=V({slots:{title:`mb-xs text-sm font-medium`},variants:{variant:{error:{title:`text-error-primary`},info:{title:`text-primary`},warning:{title:`text-warning-primary`}}}}),XC=(0,f.defineComponent)({__name:`ToastActions`,props:{button:{},link:{}},emits:[`close`],setup(e,{emit:t}){let n=t;function r(e){e.onClick(),n(`close`)}function i(){n(`close`)}return(t,n)=>e.button!==void 0||e.link!==void 0?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0},{default:(0,f.withCtx)(()=>[e.button===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Y),(0,f.mergeProps)({key:0,variant:`secondary`},e.button,{onClick:n[0]||=t=>r(e.button)}),null,16)),e.link===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(tv),(0,f.mergeProps)({key:1,variant:`secondary`},e.link,{onClick:n[1]||=e=>i()}),null,16))]),_:1})):(0,f.createCommentVNode)(``,!0)}}),ZC={class:`absolute top-0 right-0 mt-md mr-sm flex h-text-sm items-center justify-center`},QC=(0,f.defineComponent)({__name:`ToastCloseButton`,emits:[`close`],setup(e,{emit:t}){let n=t,r=(0,g.useI18n)();return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,ZC,[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(zr),"is-tooltip-disabled":!0,label:(0,f.unref)(r).t(`component.toast.close.label`),size:`sm`,variant:`tertiary`,onClick:t[0]||=e=>n(`close`)},null,8,[`icon`,`label`])]))}}),$C={class:`flex h-text-sm items-center`},ew=(0,f.defineComponent)({__name:`ToastIcon`,props:{icon:{},variant:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,$C,[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{class:(0,f.normalizeClass)([{"text-error-primary":t.variant===`error`,"text-warning-primary":t.variant===`warning`,"text-tertiary":t.variant===`info`||t.variant===`loading`||t.variant===void 0},`size-4`])},null,8,[`class`]))]))}}),tw={},nw={class:`pointer-events-auto relative w-full rounded-xl border border-secondary bg-primary p-md pl-lg shadow-lg/5`};function rw(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`,nw,[(0,f.renderSlot)(e.$slots,`default`)])}var iw=H(tw,[[`render`,rw]]),aw={class:`flex h-text-sm items-center`},ow=(0,f.defineComponent)({__name:`ToastLoader`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,aw,[(0,f.createVNode)((0,f.unref)(To),{class:`size-3.5 text-tertiary`})]))}}),sw=[`src`,`alt`],cw={class:`font-medium text-primary`},lw=(0,f.defineComponent)({__name:`ToastInteractablePart`,props:{icon:{},imageSrc:{},label:{},to:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t;function i(){n.to!==null&&r(`click`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n.to===null?`span`:(0,f.unref)(y.RouterLink)),{to:n.to,class:(0,f.normalizeClass)({"hover:underline":n.to!==null}),onClick:i},{default:(0,f.withCtx)(()=>[n.imageSrc===null?n.icon===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n.icon),{key:1,class:`mr-xs inline size-3.5 -translate-y-px align-sub text-secondary`})):((0,f.openBlock)(),(0,f.createElementBlock)(`img`,{key:0,src:n.imageSrc,alt:n.label,class:`mr-xs inline size-3.5 -translate-y-px rounded-xs align-middle`},null,8,sw)),(0,f.createElementVNode)(`span`,cw,(0,f.toDisplayString)(n.label),1)]),_:1},8,[`to`,`class`]))}}),uw={class:`text-sm text-secondary`},dw=(0,f.defineComponent)({__name:`ToastMessage`,props:{message:{},models:{}},emits:[`closeToast`],setup(e,{emit:t}){let n=e,r=t,i=/(\{.*?\})/g,a=/^\{(.*?)\}$/,o=(0,f.computed)(()=>n.message.split(i).map(e=>{let t=e.match(a);if(t===null)return{label:e,type:`text`};let r=t[1],i=n.models[r]??null;return i===null?(console.warn(`No model found for key "${r}" in toast message "${n.message}"`),{label:e,type:`text`}):{icon:i.icon??null,imageSrc:i.imageSrc??null,key:r,label:i.label,to:i.to,type:`interactable`}}));return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`span`,uw,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(o.value,(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:n},[e.type===`text`?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[(0,f.createTextVNode)((0,f.toDisplayString)(e.label),1)],64)):e.type===`interactable`?((0,f.openBlock)(),(0,f.createBlock)(lw,{key:1,icon:e.icon,"image-src":e.imageSrc,label:e.label,to:e.to??null,onClick:t[0]||=e=>r(`closeToast`)},null,8,[`icon`,`image-src`,`label`,`to`])):(0,f.createCommentVNode)(``,!0)],64))),128))]))}}),fw=H((0,f.defineComponent)({__name:`Toast`,props:{toast:{}},emits:[`closeToast`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.computed)(()=>n.toast.variant===`error`?`error`:n.toast.variant===`warning`?`warning`:`info`),a=(0,f.computed)(()=>YC({variant:i.value}));return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(iw,{"data-toast-id":n.toast.id},{default:(0,f.withCtx)(()=>[(n.toast.isDismissible??!0)&&n.toast.variant!==`loading`?((0,f.openBlock)(),(0,f.createBlock)(QC,{key:0,onClose:t[0]||=e=>r(`closeToast`)})):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(I),{align:`start`,class:`pr-3xl`},{default:(0,f.withCtx)(()=>[n.toast.variant===`loading`?((0,f.openBlock)(),(0,f.createBlock)(ow,{key:0})):n.toast.icon===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(ew,{key:1,icon:n.toast.icon,variant:n.toast.variant},null,8,[`icon`,`variant`])),(0,f.createVNode)((0,f.unref)(G),{gap:`none`},{default:(0,f.withCtx)(()=>[n.toast.title===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:0,text:n.toast.title,class:(0,f.normalizeClass)([a.value.title(),`mb-xs text-sm font-medium`])},null,8,[`text`,`class`])),(0,f.createVNode)(dw,{models:n.toast.interactableModels??{},message:n.toast.message,onCloseToast:t[1]||=e=>r(`closeToast`)},null,8,[`models`,`message`]),(0,f.createVNode)(XC,{button:n.toast.button,link:n.toast.link,class:`mt-lg`,onClose:t[2]||=e=>r(`closeToast`)},null,8,[`button`,`link`])]),_:1})]),_:1})]),_:1},8,[`data-toast-id`]))}}),[[`__scopeId`,`data-v-0289243a`]]),pw=600,mw=`animate-toast-highlight`,hw=new Map;function gw(e){let t=document.querySelector(`[data-toast-id="${e}"]`);if(!t)return;let n=hw.get(e);n&&clearTimeout(n),t.classList.remove(mw),t.scrollTop,t.classList.add(mw);let r=setTimeout(()=>{t.classList.remove(mw),hw.delete(e)},pw);hw.set(e,r)}var _w=1/0,vw=5e3,yw=7e3;function bw(e,t){switch(e){case`always`:return t===`error`?yw:vw;case`all-except-errors`:return t===`error`?_w:vw;case`never`:return _w}}function xw(e){rC.dismiss(e)}function Sw(){let e=(0,g.useI18n)(),t=J();function n(e){(e.id===void 0?null:rC.getToasts().find(t=>t.id===e.id)??null)!==null&&gw(e.id),rC.custom((0,f.markRaw)((0,f.defineComponent)({render:()=>(0,f.h)(fw,{toast:e})})),{id:e.id??crypto.randomUUID(),class:`w-full sm:w-96`,dismissible:e.isDismissible??e.dismissible,duration:e.duration??bw(t.autoCloseToast.value,e.variant===`error`?`error`:`info`),position:e.position??`bottom-right`,onAutoClose:e.onAutoClose,onDismiss:e.onDismiss})}function r(e){let r=e.id??crypto.randomUUID();n({id:r,isDismissible:!1,duration:_w,icon:e.icon,interactableModels:e.interactableModels,message:e.loading,variant:`loading`,onAutoClose:e.onAutoClose,onDismiss:e.onDismiss});function i(n,i){let a=rC.custom((0,f.markRaw)((0,f.defineComponent)({render:()=>(0,f.h)(fw,{toast:{id:r,icon:e.icon,interactableModels:e.interactableModels,message:n,variant:i}})})),{id:r,class:`w-full sm:w-96`,dismissible:!0,position:e.position??`bottom-right`,onAutoClose:e.onAutoClose,onDismiss:e.onDismiss});setTimeout(()=>{rC.dismiss(a)},e.duration??bw(t.autoCloseToast.value,i===`error`?`error`:`info`))}e.promise.then(()=>i(e.success,`info`)).catch(()=>i(e.error,`error`))}function i(){n({id:`unable-to-save`,icon:St,message:e.t(`component.toast.unable_to_save_changes.message`),variant:`error`})}function a(t){if(!QS.isExpectedApiError(t)){n({icon:St,message:e.t(`component.toast.unexpected_error.message`),variant:`error`}),console.error(`Unknown error occurred:`,t);return}let[r]=t.errors;r!==void 0&&n({icon:St,message:r.detail,variant:`error`})}return{apiError:a,dismiss:xw,promise:r,show:n,unableToSave:i}}var Cw=(0,f.defineComponent)({__name:`ToastContainer`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(JC),{style:{zIndex:75},expand:!1}))}}),ww=(0,f.defineComponent)({__name:`TooltipProvider`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TooltipProvider),null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),Tw=(0,f.defineComponent)({__name:`ApplicationProvider`,props:{isFetchingAuthUser:{type:Boolean}},setup(e){let t=e;return(0,p.useActionRegistryStore)().registerActions(xS()),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(ww,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(sS)),(0,f.createVNode)((0,f.unref)(aS)),(0,f.createVNode)((0,f.unref)(tS),{"is-fetching-auth-user":t.isFetchingAuthUser},null,8,[`is-fetching-auth-user`]),(0,f.createVNode)((0,f.unref)(Cw)),(0,f.createVNode)((0,f.unref)(wS)),(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),Ew=function(e){return e.CONFIRM_UPLOAD_FAILED=`CONFIRM_UPLOAD_FAILED`,e.GET_FILE_INFO_FAILED=`GET_FILE_INFO_FAILED`,e.INVALID_MIME_TYPE=`INVALID_MIME_TYPE`,e.PREPROCESSING_FAILED=`PREPROCESSING_FAILED`,e.UPLOAD_FAILED=`UPLOAD_FAILED`,e}({}),$=function(e){return e.ERROR=`ERROR`,e.PENDING=`PENDING`,e.SUCCESS=`SUCCESS`,e.UPLOADING=`UPLOADING`,e}({}),[Dw,Ow]=F(`baseFileUploadContext`),kw=/[/\\]/;function Aw(e,t,n=$.PENDING){return{uuid:``,isSyncedWithModelValue:!1,name:e.name,file:e,key:crypto.randomUUID(),mimeType:e.type,order:t,status:n,url:URL.createObjectURL(e)}}function jw(e,t){return{...e,isSyncedWithModelValue:!0,status:t}}function Mw(e,t){return t.some(t=>{if(t===`*/*`)return!0;if(t.endsWith(`/*`)){let[n]=t.split(`/`);return e.type.startsWith(`${n}/`)}return e.type===t})}function Nw(e){return e.split(`/`)[1]??`bin`}async function Pw(e){let t=await e.arrayBuffer(),n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}async function Fw(e,t){if(e.types.includes(`text/plain`))try{let t=(await(await e.getType(`text/plain`)).text()).trim().split(kw).pop();if(t!==void 0&&t.includes(`.`))return t}catch{}return`clipboard.${Nw(t)}`}var[Iw,Lw]=F(`baseFileUploadClipboardContext`),Rw=`file-upload-clipboard-ignored-fingerprints`,zw=(0,f.defineComponent)({__name:`BaseFileUploadClipboard`,setup(e){let{isDisabled:t,isValidFile:n,accept:r,onFilesSelected:i}=Ow(),a=(0,f.ref)([]);function o(){let e=sessionStorage.getItem(Rw);return e===null?new Set:new Set(JSON.parse(e))}function s(e){sessionStorage.setItem(Rw,JSON.stringify([...e]))}function c(e){let t=o();t.add(e),s(t)}function l(){for(let e of a.value)c(e.fingerprint);a.value=[]}function u(){i(a.value.map(e=>e.file)),l()}async function d(){if(t.value||!navigator.clipboard?.read)return;let e;try{e=await navigator.clipboard.read()}catch{return}let i=[];for(let t of e)for(let e of t.types){if(!e.startsWith(`image/`)||!Mw({type:e},r.value))continue;let n=await t.getType(e),a=await Pw(n);i.push({blob:n,clipboardItem:t,fingerprint:a,mimeType:e})}let c=o(),l=i.some(e=>!c.has(e.fingerprint));l&&s(new Set);let u=l?new Set:c,d=[];for(let{blob:e,clipboardItem:t,fingerprint:r,mimeType:a}of i){if(u.has(r))continue;let i=await Fw(t,a),o=new File([e],i,{type:a});n.value!==null&&n.value(o)!==!0||d.push({file:o,fingerprint:r})}a.value=d}let p=(0,f.computed)(()=>a.value.map(e=>e.file));Iw({clear:l,files:p,upload:u});async function h(e){if(t.value)return;let i=e.clipboardData?.files;if(!i||i.length===0)return;let o=[];for(let e of Array.from(i)){if(!Mw({type:e.type},r.value)||n.value!==null&&n.value(e)!==!0)continue;let t=await Pw(e);o.push({file:e,fingerprint:t})}o.length>0&&(a.value=o)}return(0,m.useEventListener)(window,`focus`,d),(0,m.useEventListener)(window,`paste`,h),d(),(e,t)=>(0,f.renderSlot)(e.$slots,`default`,{files:p.value})}}),Bw=(0,f.defineComponent)({__name:`BaseFileUploadClipboardRemove`,setup(e){let{clear:t}=Lw();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,onClick:(0,f.unref)(t)},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`onClick`]))}}),Vw=(0,f.defineComponent)({__name:`BaseFileUploadClipboardUpload`,setup(e){let{upload:t}=Lw();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,onClick:(0,f.unref)(t)},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`onClick`]))}}),Hw=(0,f.defineComponent)({__name:`BaseFileUploadDropzone`,setup(e){let t=(0,f.ref)(!1),{isDisabled:n,isMultiple:r,onFilesSelected:i}=Ow(),a=(0,f.ref)(null),{isOverDropZone:o}=(0,m.useDropZone)((0,f.computed)(()=>a.value?.$el??null),{multiple:r.value,onDrop:e=>{n.value||e!==null&&e.length>0&&i(e)}}),s=0;function c(e,r){if(n.value){s=0,t.value=!1;return}switch(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`),r){case`enter`:s+=1,t.value=!0;break;case`leave`:--s,s===0&&(t.value=!1);break;case`drop`:s=0,t.value=!1;break}}return(0,m.useEventListener)(document.body,`dragenter`,e=>c(e,`enter`)),(0,m.useEventListener)(document.body,`dragover`,e=>c(e,`over`)),(0,m.useEventListener)(document.body,`dragleave`,e=>c(e,`leave`)),(0,m.useEventListener)(document.body,`drop`,e=>c(e,`drop`)),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{ref_key:`dropzoneRef`,ref:a,"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`,{isHoveringOverDropzone:(0,f.unref)(n)?!1:(0,f.unref)(o),isHoveringOverPage:t.value})]),_:3},512))}}),[Uw,Ww]=F(`baseFileUploadItemContext`),Gw=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~`.split(``),Kw=e=>{let t=0;for(let n=0;n<e.length;n++){let r=e[n],i=Gw.indexOf(r);t=t*83+i}return t},qw=(e,t)=>{var n=``;for(let r=1;r<=t;r++){let i=Math.floor(e)/83**(t-r)%83;n+=Gw[Math.floor(i)]}return n},Jw=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},Yw=e=>{let t=Math.max(0,Math.min(1,e));return Math.trunc(t<=.0031308?t*12.92*255+.5:(1.055*t**.4166666666666667-.055)*255+.5)},Xw=e=>e<0?-1:1,Zw=(e,t)=>Xw(e)*Math.abs(e)**+t,Qw=class extends Error{constructor(e){super(e),this.name=`ValidationError`,this.message=e}},$w=e=>{if(!e||e.length<6)throw new Qw(`The blurhash string must be at least 6 characters`);let t=Kw(e[0]),n=Math.floor(t/9)+1,r=t%9+1;if(e.length!==4+2*r*n)throw new Qw(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*r*n}`)},eT=e=>{let t=e>>16,n=e>>8&255,r=e&255;return[Jw(t),Jw(n),Jw(r)]},tT=(e,t)=>{let n=Math.floor(e/361),r=Math.floor(e/19)%19,i=e%19;return[Zw((n-9)/9,2)*t,Zw((r-9)/9,2)*t,Zw((i-9)/9,2)*t]},nT=(e,t,n,r)=>{$w(e),r|=1;let i=Kw(e[0]),a=Math.floor(i/9)+1,o=i%9+1,s=(Kw(e[1])+1)/166,c=Array(o*a);for(let t=0;t<c.length;t++)t===0?c[t]=eT(Kw(e.substring(2,6))):c[t]=tT(Kw(e.substring(4+t*2,6+t*2)),s*r);let l=t*4,u=new Uint8ClampedArray(l*n);for(let e=0;e<n;e++)for(let r=0;r<t;r++){let i=0,s=0,d=0;for(let l=0;l<a;l++)for(let a=0;a<o;a++){let u=Math.cos(Math.PI*r*a/t)*Math.cos(Math.PI*e*l/n),f=c[a+l*o];i+=f[0]*u,s+=f[1]*u,d+=f[2]*u}let f=Yw(i),p=Yw(s),m=Yw(d);u[4*r+0+e*l]=f,u[4*r+1+e*l]=p,u[4*r+2+e*l]=m,u[4*r+3+e*l]=255}return u},rT=4,iT=(e,t,n,r)=>{let i=0,a=0,o=0,s=t*rT;for(let c=0;c<t;c++){let t=rT*c;for(let l=0;l<n;l++){let n=t+l*s,u=r(c,l);i+=u*Jw(e[n]),a+=u*Jw(e[n+1]),o+=u*Jw(e[n+2])}}let c=1/(t*n);return[i*c,a*c,o*c]},aT=e=>{let t=Yw(e[0]),n=Yw(e[1]),r=Yw(e[2]);return(t<<16)+(n<<8)+r},oT=(e,t)=>{let n=Math.floor(Math.max(0,Math.min(18,Math.floor(Zw(e[0]/t,.5)*9+9.5)))),r=Math.floor(Math.max(0,Math.min(18,Math.floor(Zw(e[1]/t,.5)*9+9.5)))),i=Math.floor(Math.max(0,Math.min(18,Math.floor(Zw(e[2]/t,.5)*9+9.5))));return n*19*19+r*19+i},sT=(e,t,n,r,i)=>{if(r<1||r>9||i<1||i>9)throw new Qw(`BlurHash must have between 1 and 9 components`);if(t*n*4!==e.length)throw new Qw(`Width and height must match the pixels array`);let a=[];for(let o=0;o<i;o++)for(let i=0;i<r;i++){let r=i==0&&o==0?1:2,s=iT(e,t,n,(e,a)=>r*Math.cos(Math.PI*i*e/t)*Math.cos(Math.PI*o*a/n));a.push(s)}let o=a[0],s=a.slice(1),c=``,l=r-1+(i-1)*9;c+=qw(l,1);let u;if(s.length>0){let e=Math.max(...s.map(e=>Math.max(...e))),t=Math.floor(Math.max(0,Math.min(82,Math.floor(e*166-.5))));u=(t+1)/166,c+=qw(t,1)}else u=1,c+=qw(0,1);return c+=qw(aT(o),4),s.forEach(e=>{c+=qw(oT(e,u),2)}),c},cT=class{static async encode(e){if(!e.type.startsWith(`image/`))return null;let t=URL.createObjectURL(e),n;try{n=await this.loadImage(t)}catch{return URL.revokeObjectURL(t),null}URL.revokeObjectURL(t);let r=this.getClampedSize(n.width,n.height,32),i=this.getImageData(n,r.width,r.height);try{return sT(i.data,i.width,i.height,4,4)}catch{return null}}static getClampedSize(e,t,n){return e>=t&&e>n?{height:Math.round(t/e*n),width:n}:t>e&&t>n?{height:n,width:Math.round(e/t*n)}:{height:t,width:e}}static getImageData(e,t,n){let r=document.createElement(`canvas`);r.width=t,r.height=n;let i=r.getContext(`2d`);return i.drawImage(e,0,0,t,n),i.getImageData(0,0,t,n)}static loadImage(e){return new Promise((t,n)=>{let r=new Image;r.addEventListener(`load`,()=>t(r)),r.addEventListener(`error`,(...e)=>n(e)),r.src=e})}},lT=(0,f.defineComponent)({__name:`BaseFileUploadItem`,props:{item:{}},setup(e){let t=e,{isPublic:n,preprocess:r,onError:i,onRemoveFileUploadItem:a,onReplaceFileUploadItem:o,onStartUpload:s,onSuccess:c,onUpdateProgress:l}=Ow(),{fileUploadAdapter:u}=J();if(u.value===null)throw Error(`[BaseFileUpload] No adapter provided. Add an adapter to the ConfigProvider.
|
|
553
|
-
Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoot ... /></UIConfigProvider>`);let d=u.value;async function p(){let{name:e,mimeType:n}=t.item;try{return await d.getFileInfo(e,n)}catch{i(t.item,
|
|
552
|
+
`,`grid w-full gap-xs overflow-hidden text-left duration-100`]),style:(0,f.normalizeStyle)({gridTemplateColumns:a})},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{align:`center`,justify:`center`,class:`h-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(_o,{name:t.name??t.email,src:t.avatarUrl,"is-static-color":!0,size:`xs`},null,8,[`name`,`src`])]),_:1}),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(r)!==`minified`||(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,justify:`between`,align:`center`,gap:`xxs`,class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,nx,[(0,f.createVNode)((0,f.unref)(U),{text:t.name??`-`,"is-tooltip-disabled":!0,class:`w-full text-xs font-semibold text-primary`},null,8,[`text`]),(0,f.createVNode)((0,f.unref)(U),{text:t.email,"is-tooltip-disabled":!0,class:`w-full text-xs text-tertiary`},null,8,[`text`])]),(0,f.createVNode)(G,{align:`start`,class:`h-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(an),{class:`mt-xxs size-4 shrink-0 text-quaternary`})]),_:1})]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`class`,`style`])])]),_:1})]),_:1},8,[`actions`]))}}),ix={};function ax(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`)}var ox=H(ix,[[`render`,ax]]),sx=(0,f.defineComponent)({__name:`MainSidebarGlobalSearch`,emits:[`click`],setup(e,{emit:t}){let n=t,r=(0,g.useI18n)();function i(){n(`click`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(X),{icon:(0,f.unref)(hr),label:(0,f.unref)(r).t(`components.sidebar.global_search.label`),variant:`tertiary`,onClick:i},null,8,[`icon`,`label`]))}}),cx=(0,f.defineComponent)({__name:`MainSidebarHeaderContainer`,setup(e){let{sidebarLogoHeight:t}=Q();return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{style:(0,f.normalizeStyle)({height:(0,f.unref)(t)})},[(0,f.renderSlot)(e.$slots,`default`)],4))}}),lx=[`src`,`alt`],ux=(0,f.defineComponent)({__name:`Logo`,props:{alt:{},size:{},src:{}},setup(e){let t=e,n=(0,f.ref)(!1);return(e,r)=>n.value?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,class:(0,f.normalizeClass)([{"size-12 rounded-2xl":t.size===`lg`,"size-10 rounded-xl":t.size===`md`,"size-8 rounded-lg":t.size===`sm`,"size-6 rounded-md":t.size===`xs`,"size-5 rounded-sm":t.size===`xxs`,"size-3.5 rounded-xs":t.size===`3xs`},`shrink-0 bg-quaternary`])},null,2)):((0,f.openBlock)(),(0,f.createElementBlock)(`img`,{key:1,src:t.src,alt:t.alt,class:(0,f.normalizeClass)([{"size-12 rounded-2xl":t.size===`lg`,"size-10 rounded-xl":t.size===`md`,"size-8 rounded-lg":t.size===`sm`,"size-6 rounded-md":t.size===`xs`,"size-5 rounded-sm":t.size===`xxs`,"size-3.5 rounded-xs":t.size===`3xs`},`shrink-0 overflow-hidden from-black/20 to-white/10 object-contain dark:bg-primary-solid dark:bg-linear-to-b`]),onError:r[0]||=e=>n.value=!0},null,42,lx))}}),dx={key:0,class:`text-sm font-semibold text-secondary`},fx={key:0},px=(0,f.defineComponent)({__name:`MainSidebarHeaderLogoWithText`,props:{name:{},url:{}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r,sidebarLogoPadding:i}=Q();return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)(cx,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`between`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({padding:(0,f.unref)(i)})},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(ux,{src:t.url,alt:`Logo`,size:`xs`},null,8,[`src`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(r)!==`minified`||(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,dx,(0,f.toDisplayString)(t.name),1)):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(r)!==`minified`||(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,fx,[(0,f.renderSlot)(e.$slots,`right`)])):(0,f.createCommentVNode)(``,!0)]),_:3})]),_:3})]),_:3}))}}),mx={class:`truncate text-xs text-secondary`},hx=(0,f.defineComponent)({__name:`MainSidebarHeaderReturnToApp`,props:{to:{}},setup(e){let t=e,n=(0,g.useI18n)(),{isSidebarOpen:r,closeIfFloatingSidebar:i,collapsedVariant:a,sidebarIconCellSize:o,sidebarIconSize:s}=Q(),c=`${o} 1fr`;return(e,l)=>((0,f.openBlock)(),(0,f.createBlock)(cx,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{class:`w-fit`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(W,{"keyboard-shortcut":{key:`Backspace`,mod:!0},label:(0,f.unref)(n).t(`components.sidebar.return_to_app`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:t.to,style:(0,f.normalizeStyle)({height:(0,f.unref)(o),gridTemplateColumns:c}),"aria-label":(0,f.unref)(n).t(`components.sidebar.return_to_app`),class:`grid w-full rounded-md duration-100 hover:bg-secondary-hover`,onClick:l[0]||=e=>(0,f.unref)(i)()},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({width:(0,f.unref)(o),height:(0,f.unref)(o)}),align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(ln),{style:(0,f.normalizeStyle)({width:(0,f.unref)(s),height:(0,f.unref)(s)}),class:`shrink-0 text-secondary`},null,8,[`style`])]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(a)!==`minified`||(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(I,{key:0,align:`center`,class:`overflow-hidden pr-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,mx,(0,f.toDisplayString)((0,f.unref)(n).t(`components.sidebar.return_to_app`)),1)]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`to`,`style`,`aria-label`])]),_:1})]),_:1},8,[`label`])]),_:1})]),_:1}))}}),gx={class:`w-full`},_x=(0,f.defineComponent)({__name:`MainSidebarNavigationGroup`,props:{label:{default:null}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r}=Q();return(e,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,gx,[t.label===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{key:0,class:(0,f.normalizeClass)([{"opacity-0":(0,f.unref)(r)===`minified`&&!(0,f.unref)(n)},`block px-sm pb-sm text-xs font-medium whitespace-nowrap text-quaternary transition-opacity duration-150 ease-in-out`])},(0,f.toDisplayString)(t.label),3)),(0,f.createVNode)((0,f.unref)(G),{align:`start`,gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]))}}),vx=(0,f.defineComponent)({__name:`MainSidebarNavigationGroups`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{gap:`2xl`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),yx=(0,f.defineComponent)({__name:`BadgeSeparator`,setup(e){let{variants:t}=ly();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)($o),{class:(0,f.normalizeClass)((0,f.unref)(t).separator()),orientation:`vertical`},null,8,[`class`]))}}),[bx,xx]=F(`MainSidebarNavigationLinkContextKey`),Sx=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkBadge`,props:{label:{}},setup(e){let t=e,{isActive:n}=xx();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_y),{label:t.label,color:(0,f.unref)(n)?`brand`:`gray`,size:`sm`},null,8,[`label`,`color`]))}}),Cx=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkProvider`,props:{isActive:{type:Boolean}},setup(e){let t=e;return bx({isActive:(0,f.computed)(()=>t.isActive)}),(e,t)=>(0,f.renderSlot)(e.$slots,`default`)}}),wx=[`data-active`],Tx={class:`truncate text-xs font-medium whitespace-nowrap text-secondary duration-100 group-hover:text-primary group-data-active:text-brand-secondary`},Ex=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkButton`,props:{isActive:{type:Function,default:()=>!1},isTooltipDisabled:{type:Boolean},icon:{},keyboardShortcut:{default:null},label:{},to:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=(0,y.useRoute)(),{isSidebarOpen:a,collapsedVariant:o,sidebarIconCellSize:s,sidebarIconSize:c,sidebarLinkHeight:l}=Q(),u=`${s} 1fr`;function d(){r(`click`)}return(t,r)=>((0,f.openBlock)(),(0,f.createBlock)(W,{"is-disabled":e.isTooltipDisabled,"keyboard-shortcut":n.keyboardShortcut,label:n.label,"popover-side":`right`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:n.to,class:`w-full`,onClick:d},{default:(0,f.withCtx)(({isActive:e})=>[(0,f.createVNode)(Cx,{"is-active":e},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{"data-active":e||n.isActive((0,f.unref)(i))||void 0,style:(0,f.normalizeStyle)({height:(0,f.unref)(l),gridTemplateColumns:u}),class:`group grid rounded-md duration-100 hover:bg-fg-primary/4 data-active:bg-fg-primary/4`},[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({width:(0,f.unref)(s),height:(0,f.unref)(s)}),align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n.icon),{style:(0,f.normalizeStyle)({width:(0,f.unref)(c),height:(0,f.unref)(c)}),class:`shrink-0 text-fg-quaternary duration-100 group-data-active:text-fg-brand-primary dark:group-data-active:text-fg-primary`},null,8,[`style`]))]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(o)!==`minified`||(0,f.unref)(a)?((0,f.openBlock)(),(0,f.createBlock)(I,{key:0,align:`center`,justify:`between`,gap:`md`,class:`overflow-hidden pr-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,Tx,(0,f.toDisplayString)(n.label),1),(0,f.createVNode)(I,{gap:`lg`,align:`center`,class:`shrink-0`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`right`)]),_:3})]),_:3})):(0,f.createCommentVNode)(``,!0)]),_:3})],12,wx)]),_:2},1032,[`is-active`])]),_:3},8,[`to`])]),_:3})]),_:3},8,[`is-disabled`,`keyboard-shortcut`,`label`]))}}),Dx={},Ox={class:`size-2 rounded-full bg-success-500`};function kx(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`,Ox)}var Ax=H(Dx,[[`render`,kx]]),jx=(0,f.defineComponent)({__name:`MainSidebarNavigationSubItemCount`,props:{isActive:{type:Boolean},label:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{class:(0,f.normalizeClass)([t.isActive?`text-brand-secondary`:`text-tertiary`,`text-xxs leading-none tabular-nums`])},(0,f.toDisplayString)(t.label),3))}}),Mx=[`data-active`],Nx={class:`truncate text-xs whitespace-nowrap text-tertiary duration-100 group-hover:text-primary group-data-active:text-brand-secondary`},Px=`1px`,Fx=`0.25rem`,Ix=(0,f.defineComponent)({__name:`MainSidebarNavigationSubItem`,props:{hasStatusDot:{type:Boolean,default:!1},isIndented:{type:Boolean,default:!0},badge:{default:null},label:{},noIndent:{type:Boolean},to:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.computed)(()=>n.noIndent===!0?!1:n.isIndented),{closeIfFloatingSidebar:a,sidebarIconCellSize:o}=Q(),s=`calc(${o} / 2 - ${Fx} - ${Px})`;function c(){a(),r(`click`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:n.to,class:`w-full`,onClick:c},{default:(0,f.withCtx)(({isActive:e})=>[(0,f.createElementVNode)(`div`,{"data-active":e||void 0,style:(0,f.normalizeStyle)({paddingLeft:i.value?s:void 0,height:`1.5rem`}),class:(0,f.normalizeClass)([i.value?`pr-md`:`px-sm`,`group flex items-center justify-between gap-md rounded-md duration-100 hover:bg-fg-primary/4 data-active:bg-fg-primary/4`])},[(0,f.createElementVNode)(`span`,Nx,(0,f.toDisplayString)(n.label),1),n.badge!=null||n.hasStatusDot?((0,f.openBlock)(),(0,f.createBlock)(I,{key:0,gap:`lg`,align:`center`,class:`shrink-0`},{default:(0,f.withCtx)(()=>[n.badge==null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(jx,{key:0,"is-active":e,label:n.badge.label},null,8,[`is-active`,`label`])),n.hasStatusDot?((0,f.openBlock)(),(0,f.createBlock)(Ax,{key:1})):(0,f.createCommentVNode)(``,!0)]),_:2},1024)):(0,f.createCommentVNode)(``,!0)],14,Mx)]),_:1},8,[`to`])]),_:1}))}}),Lx={class:`truncate text-xs font-medium whitespace-nowrap text-secondary duration-100 group-hover:text-primary`},Rx=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkCollapsible`,props:{isSubItemsActive:{type:Boolean},isTooltipDisabled:{type:Boolean},icon:{},keyboardShortcut:{},label:{},subItems:{}},setup(e){let t=e,n=(0,f.ref)(!0),{isSidebarOpen:r,collapsedVariant:i,sidebarIconCellSize:a,sidebarIconSize:o,sidebarLinkHeight:s}=Q();(0,f.watch)(()=>t.isSubItemsActive,e=>{e&&(n.value=!0)});let c=`${a} 1fr`;return(l,u)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.CollapsibleRoot),{open:n.value,"onUpdate:open":u[1]||=e=>n.value=e,class:`w-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(W,{"is-disabled":e.isTooltipDisabled,"keyboard-shortcut":t.keyboardShortcut,label:t.label,"popover-side":`right`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Cx,{"is-active":e.isSubItemsActive},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{style:(0,f.normalizeStyle)({height:(0,f.unref)(s),gridTemplateColumns:c}),type:`button`,class:`group grid w-full rounded-md duration-100 hover:bg-fg-primary/4`,onClick:u[0]||=e=>n.value=!n.value},[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({width:(0,f.unref)(a),height:(0,f.unref)(a)}),align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{style:(0,f.normalizeStyle)({width:(0,f.unref)(o),height:(0,f.unref)(o)}),class:`shrink-0 text-fg-quaternary duration-100`},null,8,[`style`]))]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(i)!==`minified`||(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(I,{key:0,align:`center`,justify:`between`,gap:`md`,class:`overflow-hidden pr-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,Lx,(0,f.toDisplayString)(t.label),1),(0,f.createVNode)((0,f.unref)(an),{class:(0,f.normalizeClass)([{"rotate-180":n.value},`size-3.5 shrink-0 text-fg-quaternary duration-150`])},null,8,[`class`])]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})],4)]),_:1},8,[`is-active`])]),_:1})]),_:1},8,[`is-disabled`,`keyboard-shortcut`,`label`]),(0,f.createVNode)((0,f.unref)(h.CollapsibleContent),{class:`overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({marginLeft:`calc(${(0,f.unref)(a)} / 2)`}),class:`mt-xs flex flex-col gap-xs border-l border-secondary pl-xs`},[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.subItems,e=>((0,f.openBlock)(),(0,f.createBlock)(Ix,{key:e.label,badge:e.badge,"has-status-dot":e.hasStatusDot,label:e.label,to:e.to},null,8,[`badge`,`has-status-dot`,`label`,`to`]))),128))],4)]),_:1})]),_:1},8,[`open`]))}}),zx=[`data-active`],Bx={class:`truncate text-xs font-medium whitespace-nowrap text-secondary duration-100 group-hover:text-primary group-data-active:text-brand-secondary`},Vx={class:`relative overflow-hidden rounded-md border border-secondary bg-primary shadow-lg`},Hx={class:`flex min-w-36 flex-col gap-xs p-xs`},Ux=(0,f.defineComponent)({__name:`MainSidebarNavigationLinkPopover`,props:(0,f.mergeModels)({isSubItemsActive:{type:Boolean},icon:{},label:{},subItems:{}},{isPopoverOpen:{type:Boolean,default:!1},isPopoverOpenModifiers:{}}),emits:[`update:isPopoverOpen`],setup(e){let t=e,n=(0,f.useModel)(e,`isPopoverOpen`),{isSidebarOpen:r,collapsedVariant:i,sidebarIconCellSize:a,sidebarIconSize:o,sidebarLinkHeight:s}=Q(),c=`${a} 1fr`;function l(){n.value=!n.value}return(u,d)=>((0,f.openBlock)(),(0,f.createBlock)(Cx,{"is-active":e.isSubItemsActive},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.HoverCardRoot),{open:n.value,"onUpdate:open":d[4]||=e=>n.value=e,"open-delay":150,"close-delay":150},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.HoverCardTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{"data-active":e.isSubItemsActive||void 0,style:(0,f.normalizeStyle)({height:(0,f.unref)(s),gridTemplateColumns:c}),type:`button`,class:`group grid w-full rounded-md duration-100 hover:bg-fg-primary/4 data-active:bg-fg-primary/4`,onClick:d[0]||=e=>l(),onKeydown:[d[1]||=(0,f.withKeys)((0,f.withModifiers)(e=>l(),[`prevent`]),[`enter`]),d[2]||=(0,f.withKeys)((0,f.withModifiers)(e=>l(),[`prevent`]),[`space`])]},[(0,f.createVNode)(I,{style:(0,f.normalizeStyle)({width:(0,f.unref)(a),height:(0,f.unref)(a)}),align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{style:(0,f.normalizeStyle)({width:(0,f.unref)(o),height:(0,f.unref)(o)}),class:`shrink-0 text-fg-quaternary duration-100 group-data-active:text-fg-brand-primary dark:group-data-active:text-fg-primary`},null,8,[`style`]))]),_:1},8,[`style`]),(0,f.createVNode)(Hb,null,{default:(0,f.withCtx)(()=>[(0,f.unref)(i)!==`minified`||(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(I,{key:0,align:`center`,justify:`between`,gap:`md`,class:`overflow-hidden pr-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,Bx,(0,f.toDisplayString)(t.label),1)]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})],44,zx)]),_:1})]),_:1}),(0,f.createVNode)((0,f.unref)(h.HoverCardPortal),{to:`body`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(ei,{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.HoverCardContent),{"side-offset":4,align:`start`,"data-animation":`sidebar-hover-card`,side:`right`,"position-strategy":`absolute`,sticky:`always`,class:`z-50 origin-(--reka-hover-card-content-transform-origin) will-change-[transform,opacity]`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,Vx,[(0,f.createElementVNode)(`div`,Hx,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.subItems,e=>((0,f.openBlock)(),(0,f.createBlock)(Ix,{key:e.label,badge:e.badge,"has-status-dot":e.hasStatusDot,label:e.label,to:e.to,"is-indented":!1,onClick:d[3]||=e=>n.value=!1},null,8,[`badge`,`has-status-dot`,`label`,`to`]))),128))])])]),_:1})]),_:1})]),_:1})]),_:1},8,[`open`])]),_:1},8,[`is-active`]))}}),Wx=(0,f.defineComponent)({__name:`MainSidebarNavigationLink`,props:(0,f.mergeModels)({to:{},type:{default:`link`},hasStatusDot:{type:Boolean},isActive:{type:Function,default:()=>!1},badge:{},icon:{},label:{},onClick:{},keyboardShortcut:{default:null},subItems:{}},{isPopoverOpen:{type:Boolean,default:!1},isPopoverOpenModifiers:{}}),emits:(0,f.mergeModels)([`click`],[`update:isPopoverOpen`]),setup(e,{emit:t}){let n=e,r=t,{isSidebarOpen:i,closeIfFloatingSidebar:a,collapsedVariant:o}=Q(),s=(0,y.useRoute)(),c=(0,y.useRouter)(),l=(0,f.computed)(()=>n.type===`sub-items`),u=(0,f.computed)(()=>v(n)?n:null),d=(0,f.computed)(()=>v(n)?null:n),p=(0,f.computed)(()=>l.value&&!i.value),m=(0,f.computed)(()=>n.isActive?.(s)?!0:u.value?.subItems.some(e=>{let t=c.resolve(e.to);return t.name!=null&&t.name===s.name?!0:t.path!==`/`&&s.path.startsWith(t.path)})??!1),h=(0,f.useModel)(e,`isPopoverOpen`),g=(0,f.computed)(()=>!!(p.value||o.value===`hidden`&&n.keyboardShortcut===null||o.value===`minified`&&i.value&&n.keyboardShortcut===null));function _(){a(),r(`click`)}function v(e){return e.type===`sub-items`}return(0,f.onMounted)(()=>{!v(n)&&`subItems`in n&&n.subItems!=null&&console.warn("[MainSidebarNavigationLink] Received `subItems` but `type` is missing or set to 'link'. Set `type: 'sub-items'` to render this item as an expandable group.")}),(e,t)=>p.value&&u.value!==null?((0,f.openBlock)(),(0,f.createBlock)(Ux,{key:0,"is-popover-open":h.value,"onUpdate:isPopoverOpen":t[0]||=e=>h.value=e,icon:n.icon,"is-sub-items-active":m.value,label:n.label,"sub-items":u.value.subItems},null,8,[`is-popover-open`,`icon`,`is-sub-items-active`,`label`,`sub-items`])):l.value&&u.value!==null?((0,f.openBlock)(),(0,f.createBlock)(Rx,{key:1,icon:n.icon,"is-sub-items-active":m.value,"is-tooltip-disabled":g.value,"keyboard-shortcut":n.keyboardShortcut,label:n.label,"sub-items":u.value.subItems},null,8,[`icon`,`is-sub-items-active`,`is-tooltip-disabled`,`keyboard-shortcut`,`label`,`sub-items`])):d.value===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(Ex,{key:2,icon:n.icon,"is-active":n.isActive,"is-tooltip-disabled":g.value,"keyboard-shortcut":n.keyboardShortcut,label:n.label,to:d.value.to,onClick:_},{right:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`right`,{},()=>[n.badge==null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(Sx,{key:0,label:n.badge.label},null,8,[`label`])),n.hasStatusDot?((0,f.openBlock)(),(0,f.createBlock)(Ax,{key:1})):(0,f.createCommentVNode)(``,!0)])]),_:3},8,[`icon`,`is-active`,`is-tooltip-disabled`,`keyboard-shortcut`,`label`,`to`]))}}),[Gx,Kx]=F(`mainLayoutContext`);function qx(){return Kx(null)??{isBrandedActive:(0,f.computed)(()=>!1),variant:(0,f.computed)(()=>`default`)}}var Jx={class:`flex h-full flex-col justify-between overflow-hidden text-primary`},Yx=(0,f.defineComponent)({__name:`MainSidebarContent`,setup(e){let{sidebarContainerPadding:t}=Q();return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,Jx,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({paddingLeft:(0,f.unref)(t),paddingRight:(0,f.unref)(t),paddingBottom:(0,f.unref)(t)})},[(0,f.renderSlot)(e.$slots,`header`)],4),(0,f.createElementVNode)(`nav`,{style:(0,f.normalizeStyle)({padding:(0,f.unref)(t)}),class:`flex h-full flex-col justify-between gap-2xl overflow-x-hidden overflow-y-auto`},[(0,f.renderSlot)(e.$slots,`navigation`),(0,f.renderSlot)(e.$slots,`bottom-navigation`)],4),(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({padding:(0,f.unref)(t)}),class:`flex flex-col gap-sm`},[(0,f.renderSlot)(e.$slots,`footer`)],4)]))}}),Xx=(0,f.defineComponent)({__name:`MainSidebarTransition`,setup(e){let t=np();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{transform:`translateX(-100%)`},animate:{transform:`translateX(0%)`},exit:{transform:`translateX(-100%)`},transition:{duration:(0,f.unref)(t)?0:.3,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`transition`]))}}),Zx=(0,f.defineComponent)({__name:`MainSidebar`,props:{collapsedVariant:{default:`hidden`}},setup(e){let t=e,{isFloatingSidebar:n,isSidebarOpen:r,setCollapsedVariant:i,sidebarWidth:a}=Q(),o=(0,g.useI18n)(),s=np(),{isBrandedActive:c}=qx(),l=(0,f.computed)(()=>c.value?[`default`,`branded`]:null);return i(t.collapsedVariant),(t,i)=>(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DialogRoot),{key:0,open:(0,f.unref)(r),"onUpdate:open":i[0]||=e=>(0,f.isRef)(r)?r.value=e:null},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DialogContent),{key:0,"as-child":!0,"force-mount":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Xx,{class:`absolute z-6 h-full w-64 p-md outline-none`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([l.value,`size-full rounded-xl border border-secondary bg-secondary py-md shadow-lg/5`])},[(0,f.createVNode)((0,f.unref)(h.DialogTitle),{as:`h1`,class:`sr-only`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(o).t(`components.sidebar.title`)),1)]),_:1}),(0,f.createVNode)((0,f.unref)(h.DialogDescription),{class:`sr-only`,as:`p`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(o).t(`components.sidebar.description`)),1)]),_:1}),(0,f.createVNode)(Yx,null,{header:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`header`)]),navigation:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`footer`)]),_:3})],2)]),_:3})]),_:3})):(0,f.createCommentVNode)(``,!0),(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DialogOverlay),{key:1,"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.Motion),{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:(0,f.unref)(s)?0:.3},class:`absolute inset-0 z-5 bg-black/10`},null,8,[`transition`])]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:3})]),_:3},8,[`open`])):e.collapsedVariant===`hidden`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{key:1,initial:!1},{default:(0,f.withCtx)(()=>[(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(Xx,{key:0,style:(0,f.normalizeStyle)({width:(0,f.unref)(a)}),class:`absolute h-full pt-md`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([l.value,`size-full`])},[(0,f.createVNode)(Yx,null,{header:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`header`)]),navigation:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`footer`)]),_:3})],2)]),_:3},8,[`style`])):(0,f.createCommentVNode)(``,!0)]),_:3})):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:2,initial:!1,animate:{width:(0,f.unref)(a)},transition:{duration:(0,f.unref)(s)?0:.3,type:`spring`,bounce:0},style:(0,f.normalizeStyle)({width:(0,f.unref)(a)}),class:`absolute z-1 h-full overflow-hidden pt-[0.475rem]`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([l.value,`size-full`])},[(0,f.createVNode)(Yx,null,{header:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`header`)]),navigation:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`footer`)]),_:3})],2)]),_:3},8,[`animate`,`transition`,`style`]))}}),Qx=(0,f.defineComponent)({__name:`TextShimmer`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,class:`animate-shimmer bg-[linear-gradient(110deg,var(--text-disabled)_40%,var(--text-primary)_50%,var(--text-disabled)_60%)] bg-size-[300%_100%] bg-clip-text! text-transparent dark:bg-[linear-gradient(110deg,var(--text-disabled)_40%,var(--text-primary)_50%,var(--text-disabled)_60%)]`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),$x={class:`size-full p-md pl-none`},eS={class:`size-full rounded-2xl border border-secondary bg-primary shadow-sm/5`},tS={class:`text-sm font-medium`},nS=(0,f.defineComponent)({__name:`ApplicationLoadingView`,props:{isFetchingAuthUser:{type:Boolean}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,y.useRouter)(),{isFloatingSidebar:i,isSidebarOpen:a,sidebarWidth:o}=Q(),s=(0,f.ref)(!0),c=(0,f.ref)(!1),l=np();r.isReady().then(()=>{s.value=!1});let u=(0,f.computed)(()=>t.isFetchingAuthUser||s.value);return setTimeout(()=>{c.value=!0},500),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[u.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,exit:{opacity:0},transition:{duration:(0,f.unref)(l)?0:.2},style:(0,f.normalizeStyle)({paddingLeft:(0,f.unref)(a)&&!(0,f.unref)(i)?(0,f.unref)(o):`0.5rem`}),class:`absolute inset-0 z-99 size-full bg-secondary`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,$x,[(0,f.createElementVNode)(`div`,eS,[c.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{key:0,class:`size-full`,align:`center`,justify:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Qx),null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`h1`,tS,(0,f.toDisplayString)((0,f.unref)(n).t(`component.dashboard_page_loading_state.loading`)),1)]),_:1})]),_:1})):(0,f.createCommentVNode)(``,!0)])])]),_:1},8,[`transition`,`style`])):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),rS={class:`rounded-2xl border border-secondary bg-secondary px-lg py-sm shadow-lg duration-200 ease-in-out group-hover:translate-y-0.5 group-hover:scale-102`},iS={class:`grid grid-cols-[auto_auto] items-center gap-x-md gap-y-none`},aS={class:`flex`},oS=(0,f.defineComponent)({__name:`ApplicationOfflineWarning`,setup(e){let t=(0,g.useI18n)(),{isOnline:n}=(0,m.useNetwork)(),r=(0,f.ref)(!1),i=(0,f.computed)(()=>!n.value);function a(){r.value=!0}(0,f.watch)(i,e=>{e&&(r.value=!1)});let o=np();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[i.value&&!r.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-40},"as-child":!0,transition:{type:`spring`,bounce:0,duration:(0,f.unref)(o)?0:.3},"while-hover":`hovered`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{class:`group absolute top-4 left-1/2 z-10 -translate-x-1/2`,onClick:a},[(0,f.createElementVNode)(`div`,rS,[(0,f.createElementVNode)(`div`,iS,[(0,f.createVNode)((0,f.unref)(Fr),{class:`size-3 text-tertiary`}),(0,f.createVNode)((0,f.unref)(U),{text:(0,f.unref)(t).t(`component.offline_warning.title`),class:`text-xs text-primary`},null,8,[`text`]),n[0]||=(0,f.createElementVNode)(`span`,null,null,-1),(0,f.createVNode)((0,f.unref)(_.Motion),{variants:{hovered:{height:`auto`,opacity:1,y:0}},initial:{height:`0px`,y:-8,opacity:0},transition:{type:`spring`,bounce:0,duration:.3},class:`will-change-transform`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,aS,[(0,f.createVNode)((0,f.unref)(U),{text:(0,f.unref)(t).t(`component.offline_warning.dismiss`),class:`text-xs text-disabled`},null,8,[`text`])])]),_:1})])])])]),_:1})]),_:1},8,[`transition`])):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),sS={href:`#main-content`,class:`absolute top-2 left-2 z-99 rounded-sm bg-primary p-xs text-sm text-primary not-focus-visible:sr-only`},cS=(0,f.defineComponent)({__name:`ApplicationSkipToMainContent`,setup(e){let t=(0,g.useI18n)();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`a`,sS,(0,f.toDisplayString)((0,f.unref)(t).t(`component.skip_to_main_content_link.label`)),1)]),_:1}))}}),lS={class:`flex items-center gap-x-xs`},uS={key:0,class:`flex items-center gap-x-xs text-disabled`},dS={class:`text-secondary`},fS={key:2,class:`text-disabled`},pS=(0,f.defineComponent)({__name:`CommandMenuActionItem`,props:{action:{},ctx:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.computed)(()=>(0,p.resolveActionBreadcrumbs)(n.action,n.ctx)),a=(0,f.computed)(()=>i.value.length===0?null:n.action.icon===void 0?i.value[0]?.icon??null:n.action.icon(n.ctx));return(t,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.ListboxItem),{value:e.action.id,"data-id":e.action.id,class:`flex cursor-default items-center justify-between rounded-md px-lg py-md text-xs`,"data-item":``,onSelect:n[0]||=e=>r(`select`)},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,lS,[i.value.length>0?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,uS,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(i.value,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:t,gap:`xs`},{default:(0,f.withCtx)(()=>[a.value!==null&&t===0?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(a.value),{key:0,class:`size-3.5 text-tertiary`})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`span`,null,(0,f.toDisplayString)(e.label),1),(0,f.createVNode)((0,f.unref)(pn),{class:`size-3 text-tertiary`})]),_:2},1024))),128))])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(I),{gap:`sm`},{default:(0,f.withCtx)(()=>[(0,f.unref)(p.resolveActionAvatar)(e.action,e.ctx)===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_o),(0,f.mergeProps)({key:0},(0,f.unref)(p.resolveActionAvatar)(e.action,e.ctx),{size:`xxs`}),null,16)),e.action.icon!==void 0&&i.value.length===0?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.action.icon(e.ctx)),{key:1,class:`size-3.5 text-secondary`})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`span`,dS,(0,f.toDisplayString)((0,f.unref)(p.resolveActionName)(e.action,e.ctx)),1),(0,f.unref)(p.resolveActionHint)(e.action,e.ctx)?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,fS,(0,f.toDisplayString)((0,f.unref)(p.resolveActionHint)(e.action,e.ctx)),1)):(0,f.createCommentVNode)(``,!0)]),_:1})]),(0,f.unref)(p.resolveActionSelected)(e.action,e.ctx)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(en),{key:0,class:`size-3 text-primary`})):(0,f.createCommentVNode)(``,!0),e.action.keyboardShortcut===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(di),{key:1,"keyboard-shortcut":e.action.keyboardShortcut},null,8,[`keyboard-shortcut`]))]),_:1},8,[`value`,`data-id`]))}}),mS={class:`p-lg`,role:`status`,"aria-live":`polite`},hS={class:`sr-only`},gS=(0,f.defineComponent)({__name:`CommandMenuLoadingSkeleton`,setup(e){let t=(0,g.useI18n)();return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,mS,[(0,f.createElementVNode)(`span`,hS,(0,f.toDisplayString)((0,f.unref)(t).t(`component.command_menu.loading_actions`)),1),(0,f.createVNode)((0,f.unref)(G),{gap:`4xl`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(2,e=>(0,f.createElementVNode)(`div`,{key:e},[(0,f.createVNode)((0,f.unref)(K),{class:`h-2 w-20`}),(0,f.createVNode)((0,f.unref)(G),{class:`mt-xl`,gap:`lg`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(K),{class:`h-3 w-40`}),(0,f.createVNode)((0,f.unref)(K),{class:`h-3 w-24`}),(0,f.createVNode)((0,f.unref)(K),{class:`h-3 w-48`}),(0,f.createVNode)((0,f.unref)(K),{class:`h-3 w-40`})]),_:1})])),64))]),_:1})]))}}),_S={class:`relative flex items-center border-b border-secondary`},vS={class:`text-xxs text-tertiary`},yS={class:`text-xxs text-disabled`},bS={key:0,class:`h-full border-l border-secondary p-xl`},xS=H((0,f.defineComponent)({__name:`CommandMenu`,props:(0,f.mergeModels)({action:{}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,f.mergeModels)([`afterLeave`,`close`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,f.useModel)(e,`isOpen`),a=(0,p.useActionManagerStore)(),o=(0,p.useActionRegistryStore)().allActions(),s=a.focusedModels,c=(0,g.useI18n)(),l=(0,f.useTemplateRef)(`listboxRoot`),u=(0,f.useTemplateRef)(`listboxContent`),d=vt(`Shift`),m=(0,f.ref)([]),_=(0,f.ref)(``),{isLoadingActions:v,buildContext:y,refreshActions:b,resolvedActions:x,subActionsMetaMap:S}=(0,p.useCommandMenuActions)({actionsSnapshot:o,focusedModelsSnapshot:s,listboxContentRef:u,listboxRootRef:l,manager:a,navStack:m,searchInput:_}),{highlightedActionId:C,activateAction:w,breadcrumbs:T,currentParent:E,placeholder:ee,preview:D,onKeyDown:te}=(0,p.useCommandMenuNavigation)({isShiftKeyHeld:d,buildContext:y,emit:r,listboxRootRef:l,manager:a,navStack:m,refreshActions:b,resolvedActions:x,scrollToTopOfGroup:re,searchInput:_,subActionsMetaMap:S}),{hasNavigated:O,isBouncing:ne}=(0,p.useCommandMenuAnimation)(i,()=>m.value.length),k=(0,f.computed)(()=>(0,p.buildCommandMenuGroups)(x.value,y()));n.action!==void 0&&w(n.action),b();function re(){let e=l.value?.highlightedElement?.getAttribute(`data-id`)??null;if(e===null)return;let t=u.value?.$el;if(t===void 0)return;let n=t.querySelector(`[data-id="${CSS.escape(e)}"]`);if(n===null)return;let r=t.getBoundingClientRect(),i=n.closest(`[role="group"]`);if(i===null||i.querySelector(`[data-id]`)!==n)return;let a=i.getBoundingClientRect().top-r.top+t.scrollTop;a<t.scrollTop&&t.scrollTo({behavior:`instant`,top:a})}function A(e){e||r(`close`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DialogRoot),{open:i.value,"onUpdate:open":[t[3]||=e=>i.value=e,A]},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DialogContent),{class:(0,f.normalizeClass)([{bouncing:(0,f.unref)(ne),navigated:(0,f.unref)(O)},`absolute top-28 left-1/2 z-99 w-full max-w-180 -translate-x-1/2 rounded-xl border border-transparent bg-primary shadow-lg duration-200 outline-none dark:border-secondary`]),"data-command-menu":``,onAfterLeave:t[2]||=e=>r(`afterLeave`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DialogTitle),{class:`sr-only`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(c).t(`component.command_menu.title`)),1)]),_:1}),(0,f.createVNode)((0,f.unref)(h.DialogDescription),{class:`sr-only`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(c).t(`component.command_menu.title`)),1)]),_:1}),(0,f.createVNode)((0,f.unref)(h.ListboxRoot),{ref:`listboxRoot`,"highlight-on-hover":!0,class:`flex flex-col overflow-hidden`,onHighlight:t[1]||=e=>C.value=e?.value??null},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,_S,[(0,f.unref)(T).length>0&&(0,f.unref)(E)?.forceAsRootMenu!==!0?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,as:`ul`,gap:`xs`,class:`-mr-sm pl-lg`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)((0,f.unref)(T),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:t},[(0,f.createVNode)((0,f.unref)(_y),{label:e,size:`sm`},null,8,[`label`]),t===(0,f.unref)(T).length-1?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(pn),{key:0,class:`size-3 text-tertiary`}))],64))),128))]),_:1})):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(h.ListboxFilter),{modelValue:_.value,"onUpdate:modelValue":t[0]||=e=>_.value=e,placeholder:(0,f.unref)(ee),class:`block w-full p-lg text-xs text-secondary outline-none`,onKeydown:(0,f.unref)(te)},null,8,[`modelValue`,`placeholder`,`onKeydown`])]),(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([{"grid-cols-2":(0,f.unref)(D)!==null},`grid`])},[((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.ListboxContent),{key:(0,f.unref)(x).map(e=>e.id).join(``),ref:`listboxContent`,class:`max-h-96 scroll-p-1 overflow-y-auto outline-none select-none`,"data-content":``},{default:(0,f.withCtx)(()=>[(0,f.unref)(x).length>0?((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,{key:0},(0,f.renderList)(k.value,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.ListboxGroup),{key:e.key,class:`p-xs`},{default:(0,f.withCtx)(()=>[e.label!==null&&(e.showIfOnlyGroup||(0,f.unref)(E)===null||k.value.length>1)?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.ListboxGroupLabel),{key:0,class:`px-md py-xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{gap:`xs`},{default:(0,f.withCtx)(()=>[e.icon===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.icon),{key:0,class:`size-3 text-disabled`})),e.category===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[(0,f.createElementVNode)(`span`,vS,(0,f.toDisplayString)(e.category),1),t[4]||=(0,f.createElementVNode)(`span`,{class:`text-xxs text-tertiary`},`•`,-1)],64)),(0,f.createElementVNode)(`span`,yS,(0,f.toDisplayString)(e.label),1)]),_:2},1024)]),_:2},1024)):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.items,e=>((0,f.openBlock)(),(0,f.createBlock)(pS,{key:e.id,action:e,ctx:(0,f.unref)(y)(),onSelect:t=>(0,f.unref)(w)(e)},null,8,[`action`,`ctx`,`onSelect`]))),128))]),_:2},1024))),128)):(0,f.unref)(v)?((0,f.openBlock)(),(0,f.createBlock)(gS,{key:1})):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:2,text:(0,f.unref)(c).t(`component.command_menu.no_results`,{query:_.value}),class:`flex p-lg text-xs text-tertiary`},null,8,[`text`]))]),_:1})),(0,f.unref)(D)===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,bS,[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)((0,f.unref)(D))))]))],2)]),_:1},512)]),_:1},8,[`class`]),(0,f.createVNode)((0,f.unref)(h.DialogOverlay),{class:`absolute inset-0 z-39 bg-black/5 dark:bg-black/20`,"data-overlay":``})]),_:1},8,[`open`]))}}),[[`__scopeId`,`data-v-d2f841e7`]]);function SS(){let e=(0,g.useI18n)(),t=Cv(),n=t.create(xS);return(0,p.createAction)({id:`command-menu`,isApplicable:e=>e.menuType===void 0,name:()=>e.t(`action.global.open_command_menu.name`),availableWhenUnauthenticated:!0,execute:()=>{t.isOpen(n.id)?n.close():n.open()},keyboardShortcut:{key:`K`,mod:!0,runWithInputFocus:!0}})}var CS=(0,f.defineComponent)({__name:`DialogBody`,setup(e){let{bodyRef:t,style:n}=_v();function r(e){t.value=e??null}return(0,f.onBeforeUnmount)(()=>{t.value=null}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{ref:r,class:(0,f.normalizeClass)((0,f.unref)(n).body()),"data-dialog-body":``},[(0,f.renderSlot)(e.$slots,`default`)],2))}});function wS(){let e=(0,f.shallowRef)(null);function t(t){e.value=t}function n(){e.value=null}return{chin:e,close:n,open:t}}var TS=(0,f.defineComponent)({__name:`DialogContainer`,setup(e){let{close:t,overlays:n,unmount:r}=Cv();function i(e,n){t(e,n)}function a(e){r(e)}return(e,t)=>((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)((0,f.unref)(n),e=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:e.id},[e.isMounted?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.component),(0,f.mergeProps)({key:0,ref_for:!0},e.props,{"is-open":e.isOpen,"onUpdate:isOpen":t=>e.isOpen=t,onClose:t=>i(e.id,t),onAfterLeave:t=>a(e.id)}),null,16,[`is-open`,`onUpdate:isOpen`,`onClose`,`onAfterLeave`])):(0,f.createCommentVNode)(``,!0)],64))),128))}}),ES=(0,f.defineComponent)({__name:`DialogFooterSecondary`,props:{isAutoFocusDisabled:{type:Boolean},isDestructive:{type:Boolean},disableAutoFocus:{type:Boolean},disabledReason:{default:null},form:{default:null},iconLeft:{default:null},iconRight:{default:null},isDisabled:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},label:{},type:{default:`button`}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t;return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Y,(0,f.mergeProps)(n,{variant:`secondary`,onClick:t[0]||=e=>r(`click`)}),null,16))}}),DS=(0,f.defineComponent)({__name:`DialogFooterSubmit`,props:{isDestructive:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},label:{}},setup(e){let t=e,{form:n}=hv();return ut(`Mod+Enter`,()=>{n.submit()}),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Y),{label:t.label,"is-loading":(0,f.unref)(n).isSubmitting.value,"is-disabled":t.isDisabled,"keyboard-shortcut":{key:`Enter`,mod:!0},variant:t.isDestructive?`destructive-primary`:`primary`,onClick:(0,f.unref)(n).submit},null,8,[`label`,`is-loading`,`is-disabled`,`variant`,`onClick`]))}});function OS(e){let t=Cv();return{triggerProps:(0,f.computed)(()=>{let n=t.overlays.find(t=>t.id===e)?.isOpen??!1;return{"aria-expanded":n,"aria-haspopup":`dialog`,"data-state":n?`open`:`closed`}})}}var[kS,AS]=F(`formDialogContext`),jS=(0,f.defineComponent)({__name:`FormDialog`,props:(0,f.mergeModels)({hasOwnFormComponent:{type:Boolean,default:!1},isUnsavedChangesPromptEnabled:{type:Boolean,default:!0},form:{},promptOnUnsavedChanges:{type:Boolean,default:!0},renderOwnFormComponent:{type:Boolean,default:!1},unsavedChangesText:{default:null},hasCloseButton:{type:Boolean,default:!0},isClickOutsideDisabled:{type:Boolean,default:!1},isEscDisabled:{type:Boolean,default:!1},chin:{},preventClickOutside:{type:Boolean},preventEsc:{type:Boolean},showCloseButton:{type:Boolean},size:{default:`md`}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,f.mergeModels)([`close`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,g.useI18n)(),a=(0,f.useModel)(e,`isOpen`),o=(0,f.useId)(),s=wS(),c=0;kS({formId:o,form:n.form});let l=(0,f.computed)(()=>s.chin.value??n.chin??null),u=(0,f.computed)(()=>n.promptOnUnsavedChanges===!0?n.isUnsavedChangesPromptEnabled:!1),d=(0,f.computed)(()=>n.hasOwnFormComponent||n.renderOwnFormComponent),p=(0,f.computed)({get:()=>a.value,set:e=>{if(e){a.value=!0;return}if(u.value&&n.form.isDirty.value){v();return}m(),a.value=!1,r(`close`)}});function m(){s.close()}function h(){return c+=1,c}function _(e){return{icon:Et,primaryAction:{action:()=>{m(),a.value=!1,r(`close`)},label:i.t(`component.unsaved_changes_dialog.confirm`),type:`button`,variant:`destructive`},pulseKey:e,secondaryAction:{action:m,label:i.t(`component.unsaved_changes_dialog.cancel`),type:`button`,variant:`default`},text:n.unsavedChangesText??i.t(`component.form_dialog.unsaved_changes`),variant:`error`}}function v(){if(s.chin.value!==null){s.open(_(h()));return}s.open(_())}function y(e){if(!(n.isEscDisabled||!u.value||!n.form.isDirty.value)){if(e.preventDefault(),s.chin.value!==null){m(),a.value=!1,r(`close`);return}v()}}return(0,f.watch)(()=>n.form.state.value,()=>{s.chin.value!==null&&m()},{deep:!0}),(0,f.watch)(()=>a.value,e=>{e||m()}),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Tv,{"is-open":p.value,"onUpdate:isOpen":t[0]||=e=>p.value=e,chin:l.value,"has-close-button":n.hasCloseButton,size:n.size,"is-click-outside-disabled":n.isClickOutsideDisabled,"is-esc-disabled":n.isEscDisabled,onEscapeKeyDown:y},{default:(0,f.withCtx)(()=>[d.value?(0,f.renderSlot)(e.$slots,`default`,{key:0,formId:(0,f.unref)(o)}):((0,f.openBlock)(),(0,f.createBlock)(Pv,{key:1,form:n.form,"is-unsaved-changes-prompt-enabled":!1,class:`flex size-full flex-col overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`,{formId:(0,f.unref)(o)})]),_:3},8,[`form`]))]),_:3},8,[`is-open`,`chin`,`has-close-button`,`size`,`is-click-outside-disabled`,`is-esc-disabled`]))}}),MS=(0,f.defineComponent)({__name:`FormDialogForm`,setup(e){let t=AS();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Pv),{id:(0,f.unref)(t).formId,form:(0,f.unref)(t).form,"is-unsaved-changes-prompt-enabled":!1},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`,{formId:(0,f.unref)(t).formId})]),_:3},8,[`id`,`form`]))}}),NS={withStackTrace:!1},PS=(e,t,n=NS)=>({data:t.isOk()?{type:`Ok`,value:t.value}:{type:`Err`,value:t.error},message:e,stack:n.withStackTrace?Error().stack:void 0});function FS(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function IS(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function LS(e){return this instanceof LS?(this.v=e,this):new LS(e)}function RS(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof LS?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function zS(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:LS(e[r](t)),done:!1}:i?i(t):t}:i}}function BS(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof IS==`function`?IS(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var VS=class e{constructor(e){this._promise=e}static fromSafePromise(t){return new e(t.then(e=>new XS(e)))}static fromPromise(t,n){return new e(t.then(e=>new XS(e)).catch(e=>new ZS(n(e))))}static fromThrowable(t,n){return(...r)=>new e(FS(this,void 0,void 0,function*(){try{return new XS(yield t(...r))}catch(e){return new ZS(n?n(e):e)}}))}static combine(e){return WS(e)}static combineWithAllErrors(e){return KS(e)}map(t){return new e(this._promise.then(e=>FS(this,void 0,void 0,function*(){return e.isErr()?new ZS(e.error):new XS(yield t(e.value))})))}andThrough(t){return new e(this._promise.then(e=>FS(this,void 0,void 0,function*(){if(e.isErr())return new ZS(e.error);let n=yield t(e.value);return n.isErr()?new ZS(n.error):new XS(e.value)})))}andTee(t){return new e(this._promise.then(e=>FS(this,void 0,void 0,function*(){if(e.isErr())return new ZS(e.error);try{yield t(e.value)}catch{}return new XS(e.value)})))}orTee(t){return new e(this._promise.then(e=>FS(this,void 0,void 0,function*(){if(e.isOk())return new XS(e.value);try{yield t(e.error)}catch{}return new ZS(e.error)})))}mapErr(t){return new e(this._promise.then(e=>FS(this,void 0,void 0,function*(){return e.isOk()?new XS(e.value):new ZS(yield t(e.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new ZS(n.error);let r=t(n.value);return r instanceof e?r._promise:r}))}orElse(t){return new e(this._promise.then(e=>FS(this,void 0,void 0,function*(){return e.isErr()?t(e.error):new XS(e.value)})))}match(e,t){return this._promise.then(n=>n.match(e,t))}unwrapOr(e){return this._promise.then(t=>t.unwrapOr(e))}safeUnwrap(){return RS(this,arguments,function*(){return yield LS(yield LS(yield*zS(BS(yield LS(this._promise.then(e=>e.safeUnwrap()))))))})}then(e,t){return this._promise.then(e,t)}[Symbol.asyncIterator](){return RS(this,arguments,function*(){let e=yield LS(this._promise);return e.isErr()&&(yield yield LS(HS(e.error))),yield LS(e.value)})}};function HS(e){return new VS(Promise.resolve(new ZS(e)))}VS.fromPromise,VS.fromSafePromise,VS.fromThrowable;var US=e=>{let t=JS([]);for(let n of e)if(n.isErr()){t=YS(n.error);break}else t.map(e=>e.push(n.value));return t},WS=e=>VS.fromSafePromise(Promise.all(e)).andThen(US),GS=e=>{let t=JS([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=YS([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},KS=e=>VS.fromSafePromise(Promise.all(e)).andThen(GS),qS;(function(e){function t(e,t){return(...n)=>{try{return JS(e(...n))}catch(e){return YS(t?t(e):e)}}}e.fromThrowable=t;function n(e){return US(e)}e.combine=n;function r(e){return GS(e)}e.combineWithAllErrors=r})(qS||={});function JS(e){return new XS(e)}function YS(e){return new ZS(e)}var XS=class{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return JS(e(this.value))}mapErr(e){return JS(this.value)}andThen(e){return e(this.value)}andThrough(e){return e(this.value).map(e=>this.value)}andTee(e){try{e(this.value)}catch{}return JS(this.value)}orTee(e){return JS(this.value)}orElse(e){return JS(this.value)}asyncAndThen(e){return e(this.value)}asyncAndThrough(e){return e(this.value).map(()=>this.value)}asyncMap(e){return VS.fromSafePromise(e(this.value))}unwrapOr(e){return this.value}match(e,t){return e(this.value)}safeUnwrap(){let e=this.value;return(function*(){return e})()}_unsafeUnwrap(e){return this.value}_unsafeUnwrapErr(e){throw PS("Called `_unsafeUnwrapErr` on an Ok",this,e)}*[Symbol.iterator](){return this.value}},ZS=class{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return YS(this.error)}mapErr(e){return YS(e(this.error))}andThrough(e){return YS(this.error)}andTee(e){return YS(this.error)}orTee(e){try{e(this.error)}catch{}return YS(this.error)}andThen(e){return YS(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return HS(this.error)}asyncAndThrough(e){return HS(this.error)}asyncMap(e){return HS(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return(function*(){throw yield YS(e),Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(e){throw PS("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}*[Symbol.iterator](){let e=this;return yield e,e}};qS.fromThrowable;var QS={prefetchStaleTime:60,limit:20};QS.limit,QS.limit;var $S=class e{static getApiErrorCode(e){return e.errors?.[0]?.code??null}static getApiErrorMessage(e){return e.errors?.[0]?.detail??null}static getMessage(e){return e.errors?.[0]?.detail??null}static handleApiError({error:t,message:n}){return e.isExpectedApiError(t)||(console.error(`Unexpected API error: ${t}`),t instanceof Error)?t:Error(n??`An unknown error occurred`)}static isExpectedApiError(e){return e?.errors!==void 0}static isZodError(e){return e instanceof d.default.ZodError}},eC=1,tC=new class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{let{message:t,...n}=e,r=typeof e.id==`number`||e.id&&e.id?.length>0?e.id:eC++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e,type:`default`});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],(0,f.isVNode)(e))i=!1,this.create({id:n,type:`default`,message:e});else if(rC(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!(0,f.isVNode)(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!(0,f.isVNode)(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!(0,f.isVNode)(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!(0,f.isVNode)(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})};custom=(e,t)=>{let n=t?.id||eC++,r=this.toasts.find(e=>e.id===n),i=t?.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),r?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,component:e,dismissible:i,id:n,...t}),{...r,component:e,dismissible:i,id:n,...t}):r):this.addToast({component:e,dismissible:i,id:n,...t}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};function nC(e,t){let n=t?.id||eC++;return tC.create({message:e,id:n,type:`default`,...t}),n}var rC=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,iC=Object.assign(nC,{success:tC.success,info:tC.info,warning:tC.warning,error:tC.error,custom:tC.custom,message:tC.message,promise:tC.promise,dismiss:tC.dismiss,loading:tC.loading},{getHistory:()=>tC.toasts,getToasts:()=>tC.getActiveToasts()});function aC(e){return e.label!==void 0}var oC=3,sC=`24px`,cC=`16px`,lC=4e3,uC=356,dC=14,fC=45,pC=200;function mC(){let e=(0,f.ref)(!1);return(0,f.watchEffect)(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function hC(...e){return e.filter(Boolean).join(` `)}function gC(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function _C(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?cC:sC;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var vC=[`data-rich-colors`,`data-styled`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-invert`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],yC=[`aria-label`,`data-disabled`,`data-close-button-position`],bC=(0,f.defineComponent)({__name:`Toast`,props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},closeButtonPosition:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:[`update:heights`,`update:height`,`removeToast`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.ref)(null),a=(0,f.ref)(null),o=(0,f.ref)(!1),s=(0,f.ref)(!1),c=(0,f.ref)(!1),l=(0,f.ref)(!1),u=(0,f.ref)(!1),d=(0,f.ref)(0),p=(0,f.ref)(0),m=(0,f.ref)(n.toast.duration||n.duration||lC),h=(0,f.ref)(null),g=(0,f.ref)(null),_=(0,f.computed)(()=>n.index===0),v=(0,f.computed)(()=>n.index+1<=n.visibleToasts),y=(0,f.computed)(()=>n.toast.type),b=(0,f.computed)(()=>n.toast.dismissible!==!1),x=(0,f.computed)(()=>n.toast.class||``),S=(0,f.computed)(()=>n.descriptionClass||``),C=(0,f.computed)(()=>{let e=n.toast.position||n.position,t=n.heights.filter(t=>t.position===e).findIndex(e=>e.toastId===n.toast.id);return t>=0?t:0}),w=(0,f.computed)(()=>{let e=n.toast.position||n.position;return n.heights.filter(t=>t.position===e).reduce((e,t,n)=>n>=C.value?e:e+t.height,0)}),T=(0,f.computed)(()=>C.value*n.gap+w.value||0),E=(0,f.computed)(()=>n.toast.closeButton??n.closeButton),ee=(0,f.computed)(()=>n.toast.duration||n.duration||lC),D=(0,f.ref)(0),te=(0,f.ref)(0),O=(0,f.ref)(null),ne=(0,f.computed)(()=>n.position.split(`-`)),k=(0,f.computed)(()=>ne.value[0]),re=(0,f.computed)(()=>ne.value[1]),A=(0,f.computed)(()=>typeof n.toast.title!=`string`),ie=(0,f.computed)(()=>typeof n.toast.description!=`string`),{isDocumentHidden:ae}=mC(),oe=(0,f.computed)(()=>y.value&&y.value===`loading`);(0,f.onMounted)(()=>{o.value=!0,m.value=ee.value}),(0,f.watchEffect)(async()=>{if(!o.value||!g.value)return;await(0,f.nextTick)();let e=g.value,t=e.style.height;e.style.height=`auto`;let i=e.getBoundingClientRect().height;e.style.height=t,p.value=i,r(`update:height`,{toastId:n.toast.id,height:i,position:n.toast.position||n.position})});function se(){s.value=!0,d.value=T.value,setTimeout(()=>{r(`removeToast`,n.toast)},pC)}function j(){if(oe.value||!b.value)return{};se(),n.toast.onDismiss?.(n.toast)}function ce(e){e.button!==2&&(oe.value||!b.value||(h.value=new Date,d.value=T.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(c.value=!0,O.value={x:e.clientX,y:e.clientY})))}function le(){if(l.value||!b.value)return;O.value=null;let e=Number(g.value?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(g.value?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-(h.value?.getTime()||0),o=i.value===`x`?e:t,s=Math.abs(o)/r;if(Math.abs(o)>=fC||s>.11){d.value=T.value,n.toast.onDismiss?.(n.toast),i.value===`x`?a.value=e>0?`right`:`left`:a.value=t>0?`down`:`up`,se(),l.value=!0;return}else g.value?.style.setProperty(`--swipe-amount-x`,`0px`),g.value?.style.setProperty(`--swipe-amount-y`,`0px`);u.value=!1,c.value=!1,i.value=null}function ue(e){if(!O.value||!b.value||(window?.getSelection()?.toString()?.length??!1))return;let t=e.clientY-O.value.y,r=e.clientX-O.value.x,a=n.swipeDirections??gC(n.position);!i.value&&(Math.abs(r)>1||Math.abs(t)>1)&&(i.value=Math.abs(r)>Math.abs(t)?`x`:`y`);let o={x:0,y:0},s=e=>1/(1.5+Math.abs(e)/20);if(i.value===`y`){if(a.includes(`top`)||a.includes(`bottom`))if(a.includes(`top`)&&t<0||a.includes(`bottom`)&&t>0)o.y=t;else{let e=t*s(t);o.y=Math.abs(e)<Math.abs(t)?e:t}}else if(i.value===`x`&&(a.includes(`left`)||a.includes(`right`)))if(a.includes(`left`)&&r<0||a.includes(`right`)&&r>0)o.x=r;else{let e=r*s(r);o.x=Math.abs(e)<Math.abs(r)?e:r}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&(u.value=!0),g.value?.style.setProperty(`--swipe-amount-x`,`${o.x}px`),g.value?.style.setProperty(`--swipe-amount-y`,`${o.y}px`)}(0,f.onMounted)(()=>{if(o.value=!0,!g.value)return;let e=g.value.getBoundingClientRect().height;p.value=e,r(`update:heights`,[{toastId:n.toast.id,height:e,position:n.toast.position},...n.heights])}),(0,f.onBeforeUnmount)(()=>{g.value&&r(`removeToast`,n.toast)}),(0,f.watchEffect)(e=>{if(n.toast.promise&&y.value===`loading`||n.toast.duration===1/0||n.toast.type===`loading`)return;let t;n.expanded||n.interacting||ae.value?(()=>{if(te.value<D.value){let e=new Date().getTime()-D.value;m.value-=e}te.value=new Date().getTime()})():m.value!==1/0&&(D.value=new Date().getTime(),t=setTimeout(()=>{n.toast.onAutoClose?.(n.toast),se()},m.value)),e(()=>{clearTimeout(t)})}),(0,f.watch)(()=>n.toast.delete,e=>{e!==void 0&&e&&(se(),n.toast.onDismiss?.(n.toast))},{deep:!0});function M(){c.value=!1,i.value=null,O.value=null}return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:g,class:(0,f.normalizeClass)((0,f.unref)(hC)(n.class,x.value,e.classes?.toast,e.toast.classes?.toast,e.classes?.[y.value],e.toast?.classes?.[y.value])),"data-sonner-toast":``,"data-rich-colors":e.toast.richColors??e.defaultRichColors,"data-styled":!(e.toast.component||e.toast?.unstyled||e.unstyled),"data-mounted":o.value,"data-promise":!!e.toast.promise,"data-swiped":u.value,"data-removed":s.value,"data-visible":v.value,"data-y-position":k.value,"data-x-position":re.value,"data-index":e.index,"data-front":_.value,"data-swiping":c.value,"data-dismissible":b.value,"data-type":y.value,"data-invert":e.toast.invert||e.invert,"data-swipe-out":l.value,"data-swipe-direction":a.value,"data-expanded":!!(e.expanded||e.expandByDefault&&o.value),"data-testid":e.toast.testId,style:(0,f.normalizeStyle)({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${s.value?d.value:T.value}px`,"--initial-height":e.expandByDefault?`auto`:`${p.value}px`,...e.style,...n.toast.style}),onDragend:M,onPointerdown:ce,onPointerup:le,onPointermove:ue},[E.value&&!e.toast.component&&y.value!==`loading`?((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":oe.value,"data-close-button":`true`,"data-close-button-position":e.closeButtonPosition,class:(0,f.normalizeClass)((0,f.unref)(hC)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:j},[e.icons?.close?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.icons?.close),{key:0})):(0,f.renderSlot)(e.$slots,`close-icon`,{key:1})],10,yC)):(0,f.createCommentVNode)(`v-if`,!0),e.toast.component?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.toast.component),(0,f.mergeProps)({key:1},e.toast.componentProps,{onCloseToast:j,isPaused:e.$props.expanded||e.$props.interacting||(0,f.unref)(ae)}),null,16,[`isPaused`])):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:2},[y.value!=="default"||e.toast.icon||e.toast.promise?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,"data-icon":``,class:(0,f.normalizeClass)((0,f.unref)(hC)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.toast.icon),{key:0})):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[y.value===`loading`?(0,f.renderSlot)(e.$slots,`loading-icon`,{key:0}):y.value===`success`?(0,f.renderSlot)(e.$slots,`success-icon`,{key:1}):y.value===`error`?(0,f.renderSlot)(e.$slots,`error-icon`,{key:2}):y.value===`warning`?(0,f.renderSlot)(e.$slots,`warning-icon`,{key:3}):y.value===`info`?(0,f.renderSlot)(e.$slots,`info-icon`,{key:4}):(0,f.createCommentVNode)(`v-if`,!0)],64))],2)):(0,f.createCommentVNode)(`v-if`,!0),(0,f.createElementVNode)(`div`,{"data-content":``,class:(0,f.normalizeClass)((0,f.unref)(hC)(e.classes?.content,e.toast?.classes?.content))},[(0,f.createElementVNode)(`div`,{"data-title":``,class:(0,f.normalizeClass)((0,f.unref)(hC)(e.classes?.title,e.toast.classes?.title))},[A.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.toast.title),(0,f.normalizeProps)((0,f.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[(0,f.createTextVNode)((0,f.toDisplayString)(e.toast.title),1)],64))],2),e.toast.description?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,"data-description":``,class:(0,f.normalizeClass)((0,f.unref)(hC)(e.descriptionClass,S.value,e.classes?.description,e.toast.classes?.description))},[ie.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e.toast.description),(0,f.normalizeProps)((0,f.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[(0,f.createTextVNode)((0,f.toDisplayString)(e.toast.description),1)],64))],2)):(0,f.createCommentVNode)(`v-if`,!0)],2),e.toast.cancel?((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:1,style:(0,f.normalizeStyle)(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:(0,f.normalizeClass)((0,f.unref)(hC)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:t[0]||=t=>{(0,f.unref)(aC)(e.toast.cancel)&&b.value&&(e.toast.cancel.onClick?.(t),se())}},(0,f.toDisplayString)((0,f.unref)(aC)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):(0,f.createCommentVNode)(`v-if`,!0),e.toast.action?((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:2,style:(0,f.normalizeStyle)(e.toast.actionButtonStyle||e.actionButtonStyle),class:(0,f.normalizeClass)((0,f.unref)(hC)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:t[1]||=t=>{(0,f.unref)(aC)(e.toast.action)&&(e.toast.action.onClick?.(t),!t.defaultPrevented&&se())}},(0,f.toDisplayString)((0,f.unref)(aC)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):(0,f.createCommentVNode)(`v-if`,!0)],64))],46,vC))}}),xC=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},SC={},CC={xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stoke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`};function wC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,CC,t[0]||=[(0,f.createElementVNode)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),(0,f.createElementVNode)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var TC=xC(SC,[[`render`,wC]]),EC=[`data-visible`],DC={class:`sonner-spinner`},OC=(0,f.defineComponent)({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let t=Array(12).fill(0);return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[(0,f.createElementVNode)(`div`,DC,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)((0,f.unref)(t),e=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,EC))}}),kC={},AC={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function jC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,AC,t[0]||=[(0,f.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,"clip-rule":`evenodd`},null,-1)])}var MC=xC(kC,[[`render`,jC]]),NC={},PC={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function FC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,PC,t[0]||=[(0,f.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,"clip-rule":`evenodd`},null,-1)])}var IC=xC(NC,[[`render`,FC]]),LC={},RC={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function zC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,RC,t[0]||=[(0,f.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,"clip-rule":`evenodd`},null,-1)])}var BC=xC(LC,[[`render`,zC]]),VC={},HC={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function UC(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,HC,t[0]||=[(0,f.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,"clip-rule":`evenodd`},null,-1)])}var WC=xC(VC,[[`render`,UC]]),GC=[`aria-label`],KC=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],qC=typeof window<`u`&&typeof document<`u`;function JC(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}var YC=(0,f.defineComponent)({name:`Toaster`,inheritAttrs:!1,__name:`Toaster`,props:{id:{},invert:{type:Boolean,default:!1},theme:{default:`light`},position:{default:`bottom-right`},closeButtonPosition:{default:`top-left`},hotkey:{default:()=>[`altKey`,`KeyT`]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:dC},visibleToasts:{default:oC},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:sC},mobileOffset:{default:cC},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let t=e,n=(0,f.useAttrs)(),r=(0,f.ref)([]),i=(0,f.computed)(()=>t.id?r.value.filter(e=>e.toasterId===t.id):r.value.filter(e=>!e.toasterId));function a(e,t){return i.value.filter(n=>!n.position&&t===0||n.position===e)}let o=(0,f.computed)(()=>{let e=i.value.filter(e=>e.position).map(e=>e.position);return e.length>0?Array.from(new Set([t.position].concat(e))):[t.position]}),s=(0,f.computed)(()=>{let e={};return o.value.forEach(t=>{e[t]=r.value.filter(e=>e.position===t)}),e}),c=(0,f.ref)([]),l=(0,f.ref)({}),u=(0,f.ref)(!1);(0,f.watchEffect)(()=>{o.value.forEach(e=>{e in l.value||(l.value[e]=!1)})});let d=(0,f.ref)(t.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t.theme),p=(0,f.ref)(null),m=(0,f.ref)(null),h=(0,f.ref)(!1),g=t.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function _(e){r.value.find(t=>t.id===e.id)?.delete||tC.dismiss(e.id),r.value=r.value.filter(({id:t})=>t!==e.id),setTimeout(()=>{r.value.find(t=>t.id===e.id)||(c.value=c.value.filter(t=>t.toastId!==e.id))},250)}function v(e){h.value&&!e.currentTarget?.contains?.(e.relatedTarget)&&(h.value=!1,m.value&&=(m.value.focus({preventScroll:!0}),null))}function y(e){e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||h.value||(h.value=!0,m.value=e.relatedTarget)}function b(e){e.target&&e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||(u.value=!0)}(0,f.watchEffect)(e=>{e(tC.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{r.value=r.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}(0,f.nextTick)(()=>{let t=r.value.findIndex(t=>t.id===e.id);t===-1?r.value=[e,...r.value]:r.value=[...r.value.slice(0,t),{...r.value[t],...e},...r.value.slice(t+1)]})}))}),(0,f.watchEffect)(e=>{if(typeof window>`u`)return;if(t.theme!==`system`){d.value=t.theme;return}let n=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{d.value=e?`dark`:`light`};r(n.matches);let i=e=>{r(e.matches)};try{n.addEventListener(`change`,i)}catch{n.addListener(i)}e(()=>{try{n.removeEventListener(`change`,i)}catch{n.removeListener(i)}})}),(0,f.watchEffect)(()=>{p.value&&m.value&&(m.value.focus({preventScroll:!0}),m.value=null,h.value=!1)}),(0,f.watchEffect)(()=>{r.value.length<=1&&Object.keys(l.value).forEach(e=>{l.value[e]=!1})}),(0,f.watchEffect)(e=>{function n(e){let n=t.hotkey.every(t=>e[t]||e.code===t),r=Array.isArray(p.value)?p.value[0]:p.value;n&&(o.value.forEach(e=>{l.value[e]=!0}),r?.focus());let i=document.activeElement===p.value||r?.contains(document.activeElement);e.code===`Escape`&&i&&o.value.forEach(e=>{l.value[e]=!1})}qC&&(document.addEventListener(`keydown`,n),e(()=>{document.removeEventListener(`keydown`,n)}))});function x(e){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!0}function S(e){if(!u.value){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!1}}function C(){Object.keys(l.value).forEach(e=>{l.value[e]=!1})}function w(){u.value=!1}function T(e){c.value=e}function E(e){let t=c.value.findIndex(t=>t.toastId===e.toastId);if(t!==-1)c.value[t]=e;else{let t=c.value.findIndex(t=>t.position===e.position);t===-1?c.value.unshift(e):c.value.splice(t,0,e)}}return(e,r)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,[(0,f.createCommentVNode)(` Remove item from normal navigation flow, only available via hotkey `),(0,f.createElementVNode)(`section`,{"aria-label":`${e.containerAriaLabel} ${(0,f.unref)(g)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(o.value,(r,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(`ol`,(0,f.mergeProps)({key:r,ref_for:!0,ref_key:`listRef`,ref:p,"data-sonner-toaster":``,"data-sonner-theme":d.value,class:t.class,dir:e.dir===`auto`?JC():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":r.split(`-`)[0],"data-x-position":r.split(`-`)[1],style:{"--front-toast-height":`${c.value[0]?.height||0}px`,"--width":`${(0,f.unref)(uC)}px`,"--gap":`${e.gap}px`,...e.style,...(0,f.unref)(n).style,...(0,f.unref)(_C)(e.offset,e.mobileOffset)}},{ref_for:!0},e.$attrs,{onBlur:v,onFocus:y,onMouseenter:x,onMousemove:x,onMouseleave:S,onDragend:C,onPointerdown:b,onPointerup:w}),[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(a(r,i),(n,i)=>((0,f.openBlock)(),(0,f.createBlock)(bC,{key:n.id,heights:c.value,icons:e.icons,index:i,toast:n,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:(0,f.normalizeClass)(e.toastOptions?.class??``),descriptionClass:e.toastOptions?.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:e.toastOptions?.closeButton??e.closeButton,interacting:u.value,position:r,closeButtonPosition:e.toastOptions?.closeButtonPosition??e.closeButtonPosition,style:(0,f.normalizeStyle)(e.toastOptions?.style),unstyled:e.toastOptions?.unstyled,classes:e.toastOptions?.classes,cancelButtonStyle:e.toastOptions?.cancelButtonStyle,actionButtonStyle:e.toastOptions?.actionButtonStyle,"close-button-aria-label":e.toastOptions?.closeButtonAriaLabel,toasts:s.value[r],expandByDefault:e.expand,gap:e.gap,expanded:l.value[r]||!1,swipeDirections:t.swipeDirections,"onUpdate:heights":T,"onUpdate:height":E,onRemoveToast:_},{"close-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`close-icon`,{},()=>[(0,f.createVNode)(TC)])]),"loading-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`loading-icon`,{},()=>[(0,f.createVNode)(OC,{visible:n.type===`loading`},null,8,[`visible`])])]),"success-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`success-icon`,{},()=>[(0,f.createVNode)(MC)])]),"error-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`error-icon`,{},()=>[(0,f.createVNode)(WC)])]),"warning-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`warning-icon`,{},()=>[(0,f.createVNode)(BC)])]),"info-icon":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`info-icon`,{},()=>[(0,f.createVNode)(IC)])]),_:2},1032,[`heights`,`icons`,`index`,`toast`,`defaultRichColors`,`duration`,`class`,`descriptionClass`,`invert`,`visibleToasts`,`closeButton`,`interacting`,`position`,`closeButtonPosition`,`style`,`unstyled`,`classes`,`cancelButtonStyle`,`actionButtonStyle`,`close-button-aria-label`,`toasts`,`expandByDefault`,`gap`,`expanded`,`swipeDirections`]))),128))],16,KC))),128))],8,GC)],2112))}}),XC=V({slots:{title:`mb-xs text-sm font-medium`},variants:{variant:{error:{title:`text-error-primary`},info:{title:`text-primary`},warning:{title:`text-warning-primary`}}}}),ZC=(0,f.defineComponent)({__name:`ToastActions`,props:{button:{},link:{}},emits:[`close`],setup(e,{emit:t}){let n=t;function r(e){e.onClick(),n(`close`)}function i(){n(`close`)}return(t,n)=>e.button!==void 0||e.link!==void 0?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0},{default:(0,f.withCtx)(()=>[e.button===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Y),(0,f.mergeProps)({key:0,variant:`secondary`},e.button,{onClick:n[0]||=t=>r(e.button)}),null,16)),e.link===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(tv),(0,f.mergeProps)({key:1,variant:`secondary`},e.link,{onClick:n[1]||=e=>i()}),null,16))]),_:1})):(0,f.createCommentVNode)(``,!0)}}),QC={class:`absolute top-0 right-0 mt-md mr-sm flex h-text-sm items-center justify-center`},$C=(0,f.defineComponent)({__name:`ToastCloseButton`,emits:[`close`],setup(e,{emit:t}){let n=t,r=(0,g.useI18n)();return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,QC,[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(zr),"is-tooltip-disabled":!0,label:(0,f.unref)(r).t(`component.toast.close.label`),size:`sm`,variant:`tertiary`,onClick:t[0]||=e=>n(`close`)},null,8,[`icon`,`label`])]))}}),ew={class:`flex h-text-sm items-center`},tw=(0,f.defineComponent)({__name:`ToastIcon`,props:{icon:{},variant:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,ew,[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{class:(0,f.normalizeClass)([{"text-error-primary":t.variant===`error`,"text-warning-primary":t.variant===`warning`,"text-tertiary":t.variant===`info`||t.variant===`loading`||t.variant===void 0},`size-4`])},null,8,[`class`]))]))}}),nw={},rw={class:`pointer-events-auto relative w-full rounded-xl border border-secondary bg-primary p-md pl-lg shadow-lg/5`};function iw(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`,rw,[(0,f.renderSlot)(e.$slots,`default`)])}var aw=H(nw,[[`render`,iw]]),ow={class:`flex h-text-sm items-center`},sw=(0,f.defineComponent)({__name:`ToastLoader`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,ow,[(0,f.createVNode)((0,f.unref)(To),{class:`size-3.5 text-tertiary`})]))}}),cw=[`src`,`alt`],lw={class:`font-medium text-primary`},uw=(0,f.defineComponent)({__name:`ToastInteractablePart`,props:{icon:{},imageSrc:{},label:{},to:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t;function i(){n.to!==null&&r(`click`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n.to===null?`span`:(0,f.unref)(y.RouterLink)),{to:n.to,class:(0,f.normalizeClass)({"hover:underline":n.to!==null}),onClick:i},{default:(0,f.withCtx)(()=>[n.imageSrc===null?n.icon===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n.icon),{key:1,class:`mr-xs inline size-3.5 -translate-y-px align-sub text-secondary`})):((0,f.openBlock)(),(0,f.createElementBlock)(`img`,{key:0,src:n.imageSrc,alt:n.label,class:`mr-xs inline size-3.5 -translate-y-px rounded-xs align-middle`},null,8,cw)),(0,f.createElementVNode)(`span`,lw,(0,f.toDisplayString)(n.label),1)]),_:1},8,[`to`,`class`]))}}),dw={class:`text-sm text-secondary`},fw=(0,f.defineComponent)({__name:`ToastMessage`,props:{message:{},models:{}},emits:[`closeToast`],setup(e,{emit:t}){let n=e,r=t,i=/(\{.*?\})/g,a=/^\{(.*?)\}$/,o=(0,f.computed)(()=>n.message.split(i).map(e=>{let t=e.match(a);if(t===null)return{label:e,type:`text`};let r=t[1],i=n.models[r]??null;return i===null?(console.warn(`No model found for key "${r}" in toast message "${n.message}"`),{label:e,type:`text`}):{icon:i.icon??null,imageSrc:i.imageSrc??null,key:r,label:i.label,to:i.to,type:`interactable`}}));return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`span`,dw,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(o.value,(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:n},[e.type===`text`?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[(0,f.createTextVNode)((0,f.toDisplayString)(e.label),1)],64)):e.type===`interactable`?((0,f.openBlock)(),(0,f.createBlock)(uw,{key:1,icon:e.icon,"image-src":e.imageSrc,label:e.label,to:e.to??null,onClick:t[0]||=e=>r(`closeToast`)},null,8,[`icon`,`image-src`,`label`,`to`])):(0,f.createCommentVNode)(``,!0)],64))),128))]))}}),pw=H((0,f.defineComponent)({__name:`Toast`,props:{toast:{}},emits:[`closeToast`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.computed)(()=>n.toast.variant===`error`?`error`:n.toast.variant===`warning`?`warning`:`info`),a=(0,f.computed)(()=>XC({variant:i.value}));return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(aw,{"data-toast-id":n.toast.id},{default:(0,f.withCtx)(()=>[(n.toast.isDismissible??!0)&&n.toast.variant!==`loading`?((0,f.openBlock)(),(0,f.createBlock)($C,{key:0,onClose:t[0]||=e=>r(`closeToast`)})):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(I),{align:`start`,class:`pr-3xl`},{default:(0,f.withCtx)(()=>[n.toast.variant===`loading`?((0,f.openBlock)(),(0,f.createBlock)(sw,{key:0})):n.toast.icon===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(tw,{key:1,icon:n.toast.icon,variant:n.toast.variant},null,8,[`icon`,`variant`])),(0,f.createVNode)((0,f.unref)(G),{gap:`none`},{default:(0,f.withCtx)(()=>[n.toast.title===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:0,text:n.toast.title,class:(0,f.normalizeClass)([a.value.title(),`mb-xs text-sm font-medium`])},null,8,[`text`,`class`])),(0,f.createVNode)(fw,{models:n.toast.interactableModels??{},message:n.toast.message,onCloseToast:t[1]||=e=>r(`closeToast`)},null,8,[`models`,`message`]),(0,f.createVNode)(ZC,{button:n.toast.button,link:n.toast.link,class:`mt-lg`,onClose:t[2]||=e=>r(`closeToast`)},null,8,[`button`,`link`])]),_:1})]),_:1})]),_:1},8,[`data-toast-id`]))}}),[[`__scopeId`,`data-v-0289243a`]]),mw=600,hw=`animate-toast-highlight`,gw=new Map;function _w(e){let t=document.querySelector(`[data-toast-id="${e}"]`);if(!t)return;let n=gw.get(e);n&&clearTimeout(n),t.classList.remove(hw),t.scrollTop,t.classList.add(hw);let r=setTimeout(()=>{t.classList.remove(hw),gw.delete(e)},mw);gw.set(e,r)}var vw=1/0,yw=5e3,bw=7e3;function xw(e,t){switch(e){case`always`:return t===`error`?bw:yw;case`all-except-errors`:return t===`error`?vw:yw;case`never`:return vw}}function Sw(e){iC.dismiss(e)}function Cw(){let e=(0,g.useI18n)(),t=J();function n(e){(e.id===void 0?null:iC.getToasts().find(t=>t.id===e.id)??null)!==null&&_w(e.id),iC.custom((0,f.markRaw)((0,f.defineComponent)({render:()=>(0,f.h)(pw,{toast:e})})),{id:e.id??crypto.randomUUID(),class:`w-full sm:w-96`,dismissible:e.isDismissible??e.dismissible,duration:e.duration??xw(t.autoCloseToast.value,e.variant===`error`?`error`:`info`),position:e.position??`bottom-right`,onAutoClose:e.onAutoClose,onDismiss:e.onDismiss})}function r(e){let r=e.id??crypto.randomUUID();n({id:r,isDismissible:!1,duration:vw,icon:e.icon,interactableModels:e.interactableModels,message:e.loading,variant:`loading`,onAutoClose:e.onAutoClose,onDismiss:e.onDismiss});function i(n,i){let a=iC.custom((0,f.markRaw)((0,f.defineComponent)({render:()=>(0,f.h)(pw,{toast:{id:r,icon:e.icon,interactableModels:e.interactableModels,message:n,variant:i}})})),{id:r,class:`w-full sm:w-96`,dismissible:!0,position:e.position??`bottom-right`,onAutoClose:e.onAutoClose,onDismiss:e.onDismiss});setTimeout(()=>{iC.dismiss(a)},e.duration??xw(t.autoCloseToast.value,i===`error`?`error`:`info`))}e.promise.then(()=>i(e.success,`info`)).catch(()=>i(e.error,`error`))}function i(){n({id:`unable-to-save`,icon:St,message:e.t(`component.toast.unable_to_save_changes.message`),variant:`error`})}function a(t){if(!$S.isExpectedApiError(t)){n({icon:St,message:e.t(`component.toast.unexpected_error.message`),variant:`error`}),console.error(`Unknown error occurred:`,t);return}let[r]=t.errors;r!==void 0&&n({icon:St,message:r.detail,variant:`error`})}return{apiError:a,dismiss:Sw,promise:r,show:n,unableToSave:i}}var ww=(0,f.defineComponent)({__name:`ToastContainer`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(YC),{style:{zIndex:75},expand:!1}))}}),Tw=(0,f.defineComponent)({__name:`TooltipProvider`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TooltipProvider),null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),Ew=(0,f.defineComponent)({__name:`ApplicationProvider`,props:{isFetchingAuthUser:{type:Boolean}},setup(e){let t=e;return(0,p.useActionRegistryStore)().registerActions(SS()),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(Tw,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(cS)),(0,f.createVNode)((0,f.unref)(oS)),(0,f.createVNode)((0,f.unref)(nS),{"is-fetching-auth-user":t.isFetchingAuthUser},null,8,[`is-fetching-auth-user`]),(0,f.createVNode)((0,f.unref)(ww)),(0,f.createVNode)((0,f.unref)(TS)),(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),Dw=function(e){return e.CONFIRM_UPLOAD_FAILED=`CONFIRM_UPLOAD_FAILED`,e.GET_FILE_INFO_FAILED=`GET_FILE_INFO_FAILED`,e.INVALID_MIME_TYPE=`INVALID_MIME_TYPE`,e.PREPROCESSING_FAILED=`PREPROCESSING_FAILED`,e.UPLOAD_FAILED=`UPLOAD_FAILED`,e}({}),$=function(e){return e.ERROR=`ERROR`,e.PENDING=`PENDING`,e.SUCCESS=`SUCCESS`,e.UPLOADING=`UPLOADING`,e}({}),[Ow,kw]=F(`baseFileUploadContext`),Aw=/[/\\]/;function jw(e,t,n=$.PENDING){return{uuid:``,isSyncedWithModelValue:!1,name:e.name,file:e,key:crypto.randomUUID(),mimeType:e.type,order:t,status:n,url:URL.createObjectURL(e)}}function Mw(e,t){return{...e,isSyncedWithModelValue:!0,status:t}}function Nw(e,t){return t.some(t=>{if(t===`*/*`)return!0;if(t.endsWith(`/*`)){let[n]=t.split(`/`);return e.type.startsWith(`${n}/`)}return e.type===t})}function Pw(e){return e.split(`/`)[1]??`bin`}async function Fw(e){let t=await e.arrayBuffer(),n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}async function Iw(e,t){if(e.types.includes(`text/plain`))try{let t=(await(await e.getType(`text/plain`)).text()).trim().split(Aw).pop();if(t!==void 0&&t.includes(`.`))return t}catch{}return`clipboard.${Pw(t)}`}var[Lw,Rw]=F(`baseFileUploadClipboardContext`),zw=`file-upload-clipboard-ignored-fingerprints`,Bw=(0,f.defineComponent)({__name:`BaseFileUploadClipboard`,setup(e){let{isDisabled:t,isValidFile:n,accept:r,onFilesSelected:i}=kw(),a=(0,f.ref)([]);function o(){let e=sessionStorage.getItem(zw);return e===null?new Set:new Set(JSON.parse(e))}function s(e){sessionStorage.setItem(zw,JSON.stringify([...e]))}function c(e){let t=o();t.add(e),s(t)}function l(){for(let e of a.value)c(e.fingerprint);a.value=[]}function u(){i(a.value.map(e=>e.file)),l()}async function d(){if(t.value||!navigator.clipboard?.read)return;let e;try{e=await navigator.clipboard.read()}catch{return}let i=[];for(let t of e)for(let e of t.types){if(!e.startsWith(`image/`)||!Nw({type:e},r.value))continue;let n=await t.getType(e),a=await Fw(n);i.push({blob:n,clipboardItem:t,fingerprint:a,mimeType:e})}let c=o(),l=i.some(e=>!c.has(e.fingerprint));l&&s(new Set);let u=l?new Set:c,d=[];for(let{blob:e,clipboardItem:t,fingerprint:r,mimeType:a}of i){if(u.has(r))continue;let i=await Iw(t,a),o=new File([e],i,{type:a});n.value!==null&&n.value(o)!==!0||d.push({file:o,fingerprint:r})}a.value=d}let p=(0,f.computed)(()=>a.value.map(e=>e.file));Lw({clear:l,files:p,upload:u});async function h(e){if(t.value)return;let i=e.clipboardData?.files;if(!i||i.length===0)return;let o=[];for(let e of Array.from(i)){if(!Nw({type:e.type},r.value)||n.value!==null&&n.value(e)!==!0)continue;let t=await Fw(e);o.push({file:e,fingerprint:t})}o.length>0&&(a.value=o)}return(0,m.useEventListener)(window,`focus`,d),(0,m.useEventListener)(window,`paste`,h),d(),(e,t)=>(0,f.renderSlot)(e.$slots,`default`,{files:p.value})}}),Vw=(0,f.defineComponent)({__name:`BaseFileUploadClipboardRemove`,setup(e){let{clear:t}=Rw();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,onClick:(0,f.unref)(t)},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`onClick`]))}}),Hw=(0,f.defineComponent)({__name:`BaseFileUploadClipboardUpload`,setup(e){let{upload:t}=Rw();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,onClick:(0,f.unref)(t)},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`onClick`]))}}),Uw=(0,f.defineComponent)({__name:`BaseFileUploadDropzone`,setup(e){let t=(0,f.ref)(!1),{isDisabled:n,isMultiple:r,onFilesSelected:i}=kw(),a=(0,f.ref)(null),{isOverDropZone:o}=(0,m.useDropZone)((0,f.computed)(()=>a.value?.$el??null),{multiple:r.value,onDrop:e=>{n.value||e!==null&&e.length>0&&i(e)}}),s=0;function c(e,r){if(n.value){s=0,t.value=!1;return}switch(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`),r){case`enter`:s+=1,t.value=!0;break;case`leave`:--s,s===0&&(t.value=!1);break;case`drop`:s=0,t.value=!1;break}}return(0,m.useEventListener)(document.body,`dragenter`,e=>c(e,`enter`)),(0,m.useEventListener)(document.body,`dragover`,e=>c(e,`over`)),(0,m.useEventListener)(document.body,`dragleave`,e=>c(e,`leave`)),(0,m.useEventListener)(document.body,`drop`,e=>c(e,`drop`)),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{ref_key:`dropzoneRef`,ref:a,"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`,{isHoveringOverDropzone:(0,f.unref)(n)?!1:(0,f.unref)(o),isHoveringOverPage:t.value})]),_:3},512))}}),[Ww,Gw]=F(`baseFileUploadItemContext`),Kw=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~`.split(``),qw=e=>{let t=0;for(let n=0;n<e.length;n++){let r=e[n],i=Kw.indexOf(r);t=t*83+i}return t},Jw=(e,t)=>{var n=``;for(let r=1;r<=t;r++){let i=Math.floor(e)/83**(t-r)%83;n+=Kw[Math.floor(i)]}return n},Yw=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},Xw=e=>{let t=Math.max(0,Math.min(1,e));return Math.trunc(t<=.0031308?t*12.92*255+.5:(1.055*t**.4166666666666667-.055)*255+.5)},Zw=e=>e<0?-1:1,Qw=(e,t)=>Zw(e)*Math.abs(e)**+t,$w=class extends Error{constructor(e){super(e),this.name=`ValidationError`,this.message=e}},eT=e=>{if(!e||e.length<6)throw new $w(`The blurhash string must be at least 6 characters`);let t=qw(e[0]),n=Math.floor(t/9)+1,r=t%9+1;if(e.length!==4+2*r*n)throw new $w(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*r*n}`)},tT=e=>{let t=e>>16,n=e>>8&255,r=e&255;return[Yw(t),Yw(n),Yw(r)]},nT=(e,t)=>{let n=Math.floor(e/361),r=Math.floor(e/19)%19,i=e%19;return[Qw((n-9)/9,2)*t,Qw((r-9)/9,2)*t,Qw((i-9)/9,2)*t]},rT=(e,t,n,r)=>{eT(e),r|=1;let i=qw(e[0]),a=Math.floor(i/9)+1,o=i%9+1,s=(qw(e[1])+1)/166,c=Array(o*a);for(let t=0;t<c.length;t++)t===0?c[t]=tT(qw(e.substring(2,6))):c[t]=nT(qw(e.substring(4+t*2,6+t*2)),s*r);let l=t*4,u=new Uint8ClampedArray(l*n);for(let e=0;e<n;e++)for(let r=0;r<t;r++){let i=0,s=0,d=0;for(let l=0;l<a;l++)for(let a=0;a<o;a++){let u=Math.cos(Math.PI*r*a/t)*Math.cos(Math.PI*e*l/n),f=c[a+l*o];i+=f[0]*u,s+=f[1]*u,d+=f[2]*u}let f=Xw(i),p=Xw(s),m=Xw(d);u[4*r+0+e*l]=f,u[4*r+1+e*l]=p,u[4*r+2+e*l]=m,u[4*r+3+e*l]=255}return u},iT=4,aT=(e,t,n,r)=>{let i=0,a=0,o=0,s=t*iT;for(let c=0;c<t;c++){let t=iT*c;for(let l=0;l<n;l++){let n=t+l*s,u=r(c,l);i+=u*Yw(e[n]),a+=u*Yw(e[n+1]),o+=u*Yw(e[n+2])}}let c=1/(t*n);return[i*c,a*c,o*c]},oT=e=>{let t=Xw(e[0]),n=Xw(e[1]),r=Xw(e[2]);return(t<<16)+(n<<8)+r},sT=(e,t)=>{let n=Math.floor(Math.max(0,Math.min(18,Math.floor(Qw(e[0]/t,.5)*9+9.5)))),r=Math.floor(Math.max(0,Math.min(18,Math.floor(Qw(e[1]/t,.5)*9+9.5)))),i=Math.floor(Math.max(0,Math.min(18,Math.floor(Qw(e[2]/t,.5)*9+9.5))));return n*19*19+r*19+i},cT=(e,t,n,r,i)=>{if(r<1||r>9||i<1||i>9)throw new $w(`BlurHash must have between 1 and 9 components`);if(t*n*4!==e.length)throw new $w(`Width and height must match the pixels array`);let a=[];for(let o=0;o<i;o++)for(let i=0;i<r;i++){let r=i==0&&o==0?1:2,s=aT(e,t,n,(e,a)=>r*Math.cos(Math.PI*i*e/t)*Math.cos(Math.PI*o*a/n));a.push(s)}let o=a[0],s=a.slice(1),c=``,l=r-1+(i-1)*9;c+=Jw(l,1);let u;if(s.length>0){let e=Math.max(...s.map(e=>Math.max(...e))),t=Math.floor(Math.max(0,Math.min(82,Math.floor(e*166-.5))));u=(t+1)/166,c+=Jw(t,1)}else u=1,c+=Jw(0,1);return c+=Jw(oT(o),4),s.forEach(e=>{c+=Jw(sT(e,u),2)}),c},lT=class{static async encode(e){if(!e.type.startsWith(`image/`))return null;let t=URL.createObjectURL(e),n;try{n=await this.loadImage(t)}catch{return URL.revokeObjectURL(t),null}URL.revokeObjectURL(t);let r=this.getClampedSize(n.width,n.height,32),i=this.getImageData(n,r.width,r.height);try{return cT(i.data,i.width,i.height,4,4)}catch{return null}}static getClampedSize(e,t,n){return e>=t&&e>n?{height:Math.round(t/e*n),width:n}:t>e&&t>n?{height:n,width:Math.round(e/t*n)}:{height:t,width:e}}static getImageData(e,t,n){let r=document.createElement(`canvas`);r.width=t,r.height=n;let i=r.getContext(`2d`);return i.drawImage(e,0,0,t,n),i.getImageData(0,0,t,n)}static loadImage(e){return new Promise((t,n)=>{let r=new Image;r.addEventListener(`load`,()=>t(r)),r.addEventListener(`error`,(...e)=>n(e)),r.src=e})}},uT=(0,f.defineComponent)({__name:`BaseFileUploadItem`,props:{item:{}},setup(e){let t=e,{isPublic:n,preprocess:r,onError:i,onRemoveFileUploadItem:a,onReplaceFileUploadItem:o,onStartUpload:s,onSuccess:c,onUpdateProgress:l}=kw(),{fileUploadAdapter:u}=J();if(u.value===null)throw Error(`[BaseFileUpload] No adapter provided. Add an adapter to the ConfigProvider.
|
|
553
|
+
Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoot ... /></UIConfigProvider>`);let d=u.value;async function p(){let{name:e,mimeType:n}=t.item;try{return await d.getFileInfo(e,n)}catch{i(t.item,Dw.GET_FILE_INFO_FAILED)}return null}let m=null;function h(e,r){return new Promise((i,a)=>{let o=new XMLHttpRequest;m=o;let s=new Blob([r]);o.upload.addEventListener(`progress`,e=>{if(e.lengthComputable){let n=Math.round(e.loaded/e.total*100);l(t.item,n)}}),o.onload=()=>{o.status>=200&&o.status<300?i():a(Error(`Upload failed with status ${o.status}`))},o.onerror=()=>{a(Error(`Upload failed due to a network error`))},o.open(`PUT`,e,!0),o.setRequestHeader(`Content-Type`,r.type),n.value?o.setRequestHeader(`x-amz-acl`,`public-read`):o.setRequestHeader(`x-amz-acl`,`private`),o.setRequestHeader(`x-ms-blob-type`,`BlockBlob`),o.send(s)})}async function g(e,r,i){let a={isPublic:n.value,onProgress:e=>l(t.item,e)};if(s(t.item,e),d.uploadFile!==void 0){await d.uploadFile(r,i,a);return}await h(r,i)}async function _(){let e=await p();if(e===null)return;let{uuid:n,uploadUrl:a}=e,{file:o}=t.item,s=o;if(r!==null)try{s=await r(o)}catch(e){let n=e instanceof Error&&e.message?e.message:Dw.PREPROCESSING_FAILED;i(t.item,n);return}let l=await lT.encode(s);try{await g(n,a,s)}catch{i(t.item,Dw.UPLOAD_FAILED);return}try{await d.confirmUpload(n,l),c(t.item)}catch{i(t.item,Dw.CONFIRM_UPLOAD_FAILED)}}function v(){m?.abort(),m=null,a(t.item)}return t.item.status===$.PENDING&&_(),Ww({item:(0,f.computed)(()=>t.item),onCancel:v,onRemove:()=>a(t.item),onReplace:e=>o(t.item,e)}),(e,n)=>(0,f.renderSlot)(e.$slots,`default`,{onRemove:()=>(0,f.unref)(a)(t.item),onReplace:e=>(0,f.unref)(o)(t.item,e)})}}),dT=(0,f.defineComponent)({__name:`BaseFileUploadItemCancel`,setup(e){let{isDisabled:t}=kw(),{onCancel:n}=Gw();function r(){t.value||n()}return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,disabled:(0,f.unref)(t),onClick:r},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`disabled`]))}}),fT=(0,f.defineComponent)({__name:`BaseFileUploadItemRemove`,setup(e){let{isDisabled:t}=kw(),{onRemove:n}=Gw();function r(){t.value||n()}return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,disabled:(0,f.unref)(t),onClick:r},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`disabled`]))}}),pT=(0,f.defineComponent)({__name:`BaseFileUploadItemReplace`,setup(e){let{isDisabled:t,accept:n}=kw(),{onReplace:r}=Gw(),i=(0,m.useFileDialog)();i.onChange(e=>{if(e===null)return;let[t]=Array.from(e);t!==void 0&&r(t)});function a(){t.value||i.open({accept:n.value.join(`, `),multiple:!1})}return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,disabled:(0,f.unref)(t),onClick:a},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`disabled`]))}}),mT=(0,f.defineComponent)({__name:`BaseFileUploadRoot`,props:(0,f.mergeModels)({isPublic:{type:Boolean,default:!1},isValidFile:{type:[Function,null],default:null},accept:{},preprocess:{type:[Function,null],default:null},isDisabled:{type:Boolean,default:!1},disabledReason:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,f.mergeModels)([`filesRejected`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,f.useModel)(e,`modelValue`),a=(0,f.computed)(()=>Array.isArray(i.value)),o=(0,f.computed)({get:()=>Array.isArray(i.value)?i.value.map(e=>Mw(e,$.SUCCESS)):i.value===null?[]:[Mw(i.value,$.SUCCESS)],set:e=>{if(a.value)i.value=e.map(e=>({uuid:e.uuid,name:e.name,blurHash:e.blurHash,mimeType:e.mimeType,order:e.order,url:e.url}));else{let t=e[0]??null;if(t===null){i.value=null;return}i.value={uuid:t.uuid,name:t.name,blurHash:t.blurHash,mimeType:t.mimeType,order:t.order,url:t.url}}}}),s=(0,f.ref)([]),c=(0,f.computed)(()=>[...o.value.filter(e=>s.value.some(t=>t.uuid===e.uuid)?!e.isSyncedWithModelValue:!0),...s.value].toSorted((e,t)=>e.order-t.order).slice(a.value?void 0:-1));function l(e){let t=[],i=[];for(let r of e){if(!Nw(r,n.accept)){t.push({error:Dw.INVALID_MIME_TYPE,file:r});continue}if(n.isValidFile!==null){let e=n.isValidFile(r);if(e!==!0){t.push({error:e,file:r});continue}}i.push(r)}if(t.length>0&&r(`filesRejected`,t),a.value)s.value.push(...i.map((e,t)=>jw(e,t+o.value.length)));else{let[e]=i;if(e===void 0)return;s.value=[jw(e,0)]}}function u(e,t){s.value=s.value.map(n=>n.key===e?{...n,...t}:n)}function d(e,t){u(e.key,{uuid:t,progress:0,status:$.UPLOADING})}function p(e,t){u(e.key,{progress:t,status:$.UPLOADING})}function m(e){let t={...e,isSyncedWithModelValue:!0,blurHash:null,status:$.SUCCESS};u(e.key,t),a.value?o.value=[...o.value.filter(t=>t.uuid!==e.uuid),t]:o.value=[t]}function h(e,t){u(e.key,{error:t,status:$.ERROR})}function g(e){e?.startsWith(`blob:`)&&URL.revokeObjectURL(e)}function _(e){g(e.url),s.value=s.value.filter(t=>t.key!==e.key),o.value=o.value.filter(t=>t.uuid!==e.uuid)}function v(e,t){o.value=o.value.filter(t=>t.uuid!==e.uuid),s.value.some(t=>t.key===e.key)?(g(e.url),u(e.key,jw(t,e.order))):s.value=[...s.value,jw(t,e.order)]}return Ow({...Xr(n),isMultiple:a,preprocess:n.preprocess,onError:h,onFilesSelected:l,onRemoveFileUploadItem:_,onReplaceFileUploadItem:v,onStartUpload:d,onSuccess:m,onUpdateProgress:p}),(e,t)=>(0,f.renderSlot)(e.$slots,`default`,{items:c.value})}}),hT=(0,f.defineComponent)({__name:`BaseFileUploadTrigger`,setup(e){let{isDisabled:t,isMultiple:n,accept:r,onFilesSelected:i}=kw(),a=(0,m.useFileDialog)();a.onChange(e=>{e!==null&&i(Array.from(e))});function o(){t.value||a.open({accept:r.value.join(`, `),multiple:n.value})}return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,disabled:(0,f.unref)(t),onClick:o},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`,{isDisabled:(0,f.unref)(t)})]),_:3},8,[`disabled`]))}}),gT=(0,f.defineComponent)({__name:`BreadcrumbItem`,props:{isLabelHidden:{type:Boolean},icon:{},label:{},to:{}},setup(e){let t=e,n=(0,f.computed)(()=>t.isLabelHidden?`sr-only`:``),r=(0,f.computed)(()=>t.to===void 0?``:`group-hover:text-primary group-hover:underline`);return(e,i)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.to===void 0?`span`:Z),{class:`min-w-0 overflow-hidden`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.to===void 0?`span`:(0,f.unref)(y.RouterLink)),{to:t.to,class:`group min-w-0`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{class:`min-w-0`,gap:`sm`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(W,{"is-disabled":!t.isLabelHidden,label:t.label},{default:(0,f.withCtx)(()=>[t.icon?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{key:0,class:(0,f.normalizeClass)([{"group-hover:text-primary":t.to!==void 0},`size-4 shrink-0 text-tertiary`])},null,8,[`class`])):(0,f.createCommentVNode)(``,!0)]),_:1},8,[`is-disabled`,`label`]),t.label?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:0,text:t.label,class:(0,f.normalizeClass)((0,f.unref)(Ey)(`text-xs text-tertiary`,n.value,r.value))},null,8,[`text`,`class`])):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`to`]))]),_:1}))}}),_T={class:`min-w-0`},vT=(0,f.defineComponent)({__name:`BreadcrumbItems`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`nav`,_T,[(0,f.createVNode)(I,{align:`center`,gap:`sm`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]))}}),yT=(0,f.defineComponent)({__name:`BreadcrumbSeparator`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(pn),{class:`size-3.5 shrink-0 text-disabled`}))}}),[bT,xT]=F(`checkboxContext`),ST=V({slots:{control:`
|
|
554
554
|
relative flex size-4 items-center justify-center overflow-hidden
|
|
555
555
|
rounded-xs border border-solid border-secondary bg-primary outline-2
|
|
556
556
|
outline-offset-1 outline-transparent duration-300
|
|
@@ -573,7 +573,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
573
573
|
`,root:`
|
|
574
574
|
group/checkbox flex items-center justify-start outline-none
|
|
575
575
|
disabled:cursor-not-allowed
|
|
576
|
-
`}}),
|
|
576
|
+
`}}),CT={key:0,width:`100%`,height:`100%`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},wT={key:1,width:`100%`,height:`100%`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},TT=(0,f.defineComponent)({__name:`CheckboxIndicator`,setup(e){let t={hidden:{opacity:0,pathLength:0},visible:{opacity:1,pathLength:1,transition:{opacity:{duration:.01},pathLength:{bounce:0,duration:.5,type:`spring`}}}},{isIndeterminate:n,checkboxStyle:r}=xT();return(e,i)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.CheckboxIndicator),{class:(0,f.normalizeClass)((0,f.unref)(r).indicator()),"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`,{},()=>[(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,CT,[(0,f.createVNode)((0,f.unref)(_.motion).path,{variants:t,tabindex:`-1`,initial:`hidden`,d:`M2.5 6H9.5`,stroke:`currentColor`,"stroke-width":`1.66666`,"stroke-linecap":`round`,"stroke-linejoin":`round`,animate:`visible`,exit:`hidden`})])):((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,wT,[(0,f.createVNode)((0,f.unref)(_.motion).path,{variants:t,tabindex:`-1`,initial:`hidden`,d:`M2 6L4.5 8.5L10 3`,stroke:`currentColor`,"stroke-width":`1.6666`,"stroke-linecap":`round`,"stroke-linejoin":`round`,animate:`visible`,exit:`hidden`})]))])]),_:3},8,[`class`])]),_:3}))}}),ET=(0,f.defineComponent)({__name:`BaseCheckbox`,props:(0,f.mergeModels)({isIndeterminate:{type:Boolean,default:!1},value:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean,default:!1},hint:{},label:{},autocomplete:{}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:(0,f.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,f.useModel)(e,`modelValue`),a=n.id??(0,f.useId)(),o=(0,f.computed)(()=>ST()),s=(0,f.computed)({get(){return i.value===null?null:i.value?!0:n.isIndeterminate?`indeterminate`:!1},set(e){e!==null&&(i.value=e===`indeterminate`?!1:e)}});return bT({isIndeterminate:(0,f.computed)(()=>n.isIndeterminate),checkboxStyle:o}),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,label:n.label,"is-horizontal":!0,class:(0,f.normalizeClass)(n.class),style:(0,f.normalizeStyle)(n.style),for:(0,f.unref)(a),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage,"is-error-message-hidden":n.isErrorMessageHidden,"is-label-hidden":n.isLabelHidden},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.CheckboxRoot),{id:(0,f.unref)(a),modelValue:s.value,"onUpdate:modelValue":t[0]||=e=>s.value=e,disabled:n.isDisabled,class:(0,f.normalizeClass)(o.value.root()),value:n.value,onBlur:t[1]||=e=>r(`blur`)},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(o.value.control())},[(0,f.createVNode)(TT)],2)]),_:1},8,[`id`,`modelValue`,`disabled`,`class`,`value`])]),_:1},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`,`is-label-hidden`]))}}),DT=(0,f.defineComponent)({__name:`Checkbox`,props:(0,f.mergeModels)({value:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},autocomplete:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,f.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,f.useModel)(e,`modelValue`);return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(ET,(0,f.mergeProps)(n,{modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,onBlur:t[1]||=e=>r(`blur`)}),null,16,[`modelValue`]))}}),[OT,kT]=F(`checkboxGroupContext`),AT=(0,f.defineComponent)({__name:`CheckboxGroupCheckbox`,props:{isLabelHidden:{type:Boolean},label:{},value:{},isDisabled:{type:Boolean},disabledReason:{}},setup(e){let t=e,n=(0,f.useId)(),{registerCheckbox:r,unRegisterCheckbox:i}=kT();return(0,f.onMounted)(()=>{r(n,t.value)}),(0,f.onBeforeUnmount)(()=>{i(n)}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(ET,{value:t.value,label:t.label,"is-label-hidden":t.isLabelHidden,"is-disabled":t.isDisabled,"disabled-reason":t.disabledReason},null,8,[`value`,`label`,`is-label-hidden`,`is-disabled`,`disabled-reason`]))}}),jT=(0,f.defineComponent)({__name:`CheckboxGroupIndeterminateCheckbox`,props:{label:{default:null}},setup(e){let t=e,{isDisabled:n,isIndeterminate:r,modelValue:i,toggleAll:a}=kT(),o=(0,f.computed)(()=>i.value.length>0),s=(0,f.computed)({get:()=>o.value?[`indeterminate`]:[],set:a});return(e,i)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.CheckboxGroupRoot),{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(ET,{"is-disabled":(0,f.unref)(n),"is-indeterminate":(0,f.unref)(r),label:t.label,value:`indeterminate`,"onUpdate:modelValue":(0,f.unref)(a)},null,8,[`is-disabled`,`is-indeterminate`,`label`,`onUpdate:modelValue`])]),_:1},8,[`modelValue`]))}}),MT=(0,f.defineComponent)({__name:`CheckboxGroupRoot`,props:(0,f.mergeModels)({orientation:{default:`vertical`},isDisabled:{type:Boolean,default:!1},disabledReason:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),r=(0,f.ref)(new Map),i=(0,f.computed)(()=>n.value.length===r.value.size),a=(0,f.computed)(()=>{let e=n.value.length,t=r.value.size;return e>0&&e<t});function o(){if(i.value){n.value=[];return}n.value=[...r.value.values()]}function s(e,t){r.value.set(e,t)}function c(e){r.value.delete(e)}return OT({isDisabled:(0,f.computed)(()=>t.isDisabled),isIndeterminate:a,modelValue:n,orientation:(0,f.computed)(()=>t.orientation),registerCheckbox:s,toggleAll:o,unRegisterCheckbox:c}),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)(W,{"is-disabled":!t.isDisabled||t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.CheckboxGroupRoot),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`])]),_:3},8,[`is-disabled`,`label`]))}}),NT={class:`h-full overflow-hidden`},PT=(0,f.defineComponent)({__name:`DashboardPageCenteredContent`,props:{hasVerticalPadding:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,NT,[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([{"max-w-3xl":!t.isFullWidth,"py-4xl":t.hasVerticalPadding},`relative mx-auto flex size-full flex-col px-2xl`])},[(0,f.renderSlot)(e.$slots,`default`)],2)]))}}),FT=V({compoundVariants:[{class:{base:`
|
|
577
577
|
border-brand-200 bg-brand-25
|
|
578
578
|
dark:border-brand-800 dark:bg-brand-950
|
|
579
579
|
`,icon:`
|
|
@@ -669,7 +669,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
669
669
|
`,icon:`
|
|
670
670
|
text-warning-700
|
|
671
671
|
dark:text-warning-200
|
|
672
|
-
`},color:`warning`,variant:`translucent`}],slots:{base:`inline-flex shrink-0 items-center justify-center border`,icon:``},variants:{color:{blue:{},brand:{},error:{},gray:{},pink:{},purple:{},success:{},warning:{}},size:{"2xl":{base:`size-16.25 rounded-2xl`,icon:`size-8`},lg:{base:`size-10 rounded-xl`,icon:`size-5`},md:{base:`size-7.5 rounded-lg`,icon:`size-4`},sm:{base:`size-6 rounded-lg`,icon:`size-4`},xl:{base:`size-12 rounded-xl`,icon:`size-6`}},variant:{outline:{},translucent:{}}}}),
|
|
672
|
+
`},color:`warning`,variant:`translucent`}],slots:{base:`inline-flex shrink-0 items-center justify-center border`,icon:``},variants:{color:{blue:{},brand:{},error:{},gray:{},pink:{},purple:{},success:{},warning:{}},size:{"2xl":{base:`size-16.25 rounded-2xl`,icon:`size-8`},lg:{base:`size-10 rounded-xl`,icon:`size-5`},md:{base:`size-7.5 rounded-lg`,icon:`size-4`},sm:{base:`size-6 rounded-lg`,icon:`size-4`},xl:{base:`size-12 rounded-xl`,icon:`size-6`}},variant:{outline:{},translucent:{}}}}),IT=(0,f.defineComponent)({__name:`FeaturedIcon`,props:{color:{default:`gray`},icon:{},size:{default:`md`},variant:{default:`translucent`}},setup(e){let t=e,n=(0,f.computed)(()=>FT({color:t.color,size:t.size,variant:t.variant}));return(e,r)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)(n.value.base())},[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{class:(0,f.normalizeClass)(n.value.icon())},null,8,[`class`]))],2))}}),LT=(0,f.defineComponent)({__name:`LogoWithText`,props:{name:{},size:{},src:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(I,{gap:`md`},{default:(0,f.withCtx)(()=>[t.src===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(ux,{key:0,src:t.src,alt:t.name,size:t.size},null,8,[`src`,`alt`,`size`])),(0,f.createElementVNode)(`span`,{class:(0,f.normalizeClass)([{"text-xl":t.size===`sm`,"text-sm":t.size===`xs`,"text-xs":t.size===`xxs`},`font-semibold text-secondary`])},(0,f.toDisplayString)(t.name),3)]),_:1}))}}),RT=(0,f.defineComponent)({__name:`BaseHeader`,props:{title:{},left:{default:null}},setup(e){let t=e,n=(0,f.useSlots)(),r=(0,f.computed)(()=>n.subtitle!==void 0);return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{gap:r.value?`xl`:`lg`,align:`center`},{default:(0,f.withCtx)(()=>[t.left===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[t.left.type===`icon`?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.left.icon),{key:0,class:(0,f.normalizeClass)([{"size-6":r.value,"size-4":!r.value},`shrink-0 text-tertiary`])},null,8,[`class`])):t.left.type===`featured-icon`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(IT),{key:1,icon:t.left.icon,size:r.value?`lg`:`md`,color:t.left.color??`gray`,variant:`outline`},null,8,[`icon`,`size`,`color`])):t.left.type===`avatar`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_o),{key:2,name:t.left.name,src:t.left.src??null,"logo-alt":t.left.imageAlt??null,size:r.value?`md`:`sm`,class:`shrink-0`},null,8,[`name`,`src`,`logo-alt`,`size`])):t.left.type===`dot`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Po),{key:3,color:t.left.color??`gray`,class:`shrink-0`},null,8,[`color`])):t.left.type===`logo`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ux),{key:4,src:t.left.src,alt:t.left.alt,size:r.value?`md`:`sm`,class:`shrink-0`},null,8,[`src`,`alt`,`size`])):(0,f.createCommentVNode)(``,!0)],64)),(0,f.createVNode)((0,f.unref)(G),{gap:`none`,class:`min-w-0 flex-1 overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{align:`center`,gap:`sm`,class:`min-w-0`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:t.title,as:`h1`,class:`text-md font-semibold text-primary`},null,8,[`text`]),(0,f.renderSlot)(e.$slots,`title-end`)]),_:3}),(0,f.renderSlot)(e.$slots,`subtitle`)]),_:3}),e.$slots.actions?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:1,gap:`sm`,class:`shrink-0`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`actions`)]),_:3})):(0,f.createCommentVNode)(``,!0)]),_:3},8,[`gap`]))}}),zT={},BT={"aria-hidden":`true`,class:`pointer-events-none absolute inset-0`};function VT(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`,BT,[...t[0]||=[(0,f.createStaticVNode)(`<div class="absolute inset-0 bg-linear-to-b from-primary to-transparent"></div><div class="absolute inset-0 mask-[linear-gradient(to_bottom,black_0%,transparent_100%)] backdrop-blur-xs"></div><div class="absolute inset-0 mask-[linear-gradient(to_bottom,black_0%,transparent_75%)] backdrop-blur-xs"></div><div class="absolute inset-0 mask-[linear-gradient(to_bottom,black_0%,transparent_50%)] backdrop-blur-sm"></div><div class="absolute inset-0 mask-[linear-gradient(to_bottom,black_0%,transparent_25%)] backdrop-blur-md"></div>`,5)]])}var HT=H(zT,[[`render`,VT]]),UT={class:`sticky top-0 z-1 py-4xl`},WT=(0,f.defineComponent)({__name:`DashboardPageCenteredContentHeader`,props:{title:{},actions:{default:()=>[]},headerLeftConfig:{default:null}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,f.useSlots)();return(e,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(`header`,UT,[(0,f.createVNode)(HT),(0,f.createVNode)((0,f.unref)(RT),{title:t.title,left:t.headerLeftConfig,class:`relative`},(0,f.createSlots)({actions:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`actions`),t.actions.length>0?((0,f.openBlock)(),(0,f.createBlock)(xs,{key:0,actions:t.actions,"is-current-context-only":!1,"popover-side":`bottom`,"popover-align":`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{label:(0,f.unref)(n).t(`component.dashboard_page_header.options`),icon:(0,f.unref)(kn),"is-tooltip-disabled":!0,variant:`tertiary`},null,8,[`label`,`icon`])]),_:1},8,[`actions`])):(0,f.createCommentVNode)(``,!0)]),_:2},[(0,f.unref)(r)[`title-end`]?{name:`title-end`,fn:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`title-end`)]),key:`0`}:void 0,(0,f.unref)(r).subtitle===void 0?void 0:{name:`subtitle`,fn:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`subtitle`)]),key:`1`}]),1032,[`title`,`left`])]))}}),GT={class:`overflow-y-auto pb-4xl`},KT=(0,f.defineComponent)({__name:`DashboardPageCenteredContentScrollable`,props:{hasVerticalPadding:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,GT,[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([{"max-w-3xl":!t.isFullWidth,"py-4xl":t.hasVerticalPadding},`relative mx-auto flex w-full flex-col px-2xl`])},[(0,f.renderSlot)(e.$slots,`default`)],2)]))}}),qT=(0,f.defineComponent)({__name:`DashboardPageContainer`,props:{class:{default:null}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(Ey)(`mx-auto flex w-full flex-col px-2xl`,t.class))},[(0,f.renderSlot)(e.$slots,`default`)],2))}}),JT=(0,f.defineComponent)({__name:`DashboardPageActions`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(qT,{class:`flex h-11 shrink-0 justify-center border-b border-secondary`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`,{},()=>[(0,f.createVNode)(I,{class:`size-full`,justify:`between`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`left`,{},()=>[t[0]||=(0,f.createElementVNode)(`span`,null,null,-1)]),(0,f.renderSlot)(e.$slots,`right`,{},()=>[t[1]||=(0,f.createElementVNode)(`span`,null,null,-1)])]),_:3})])]),_:3}))}}),YT=(0,f.defineComponent)({__name:`DashboardPageContent`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(qT,{class:`h-full overflow-auto py-2xl`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),[XT,ZT]=F(`DetailPaneContext`),QT=10;function $T(){let e=ZT(null),t=np(),n=(0,f.computed)(()=>e===null||e.isFloatingDetailPane.value?`0px`:e.isOpen.value&&e.variant===`bordered-inline`?`calc(${e.sidebarWidth.value} + ${QT}px)`:e.isOpen.value?e.sidebarWidth.value:`0px`),r=(0,f.computed)(()=>e?.isResizing.value??!1);return{contentPaddingRight:n,transitionDuration:(0,f.computed)(()=>r.value||t.value?0:.3)}}var eE=(0,f.defineComponent)({__name:`DashboardPageDetailPanePadding`,setup(e){let{contentPaddingRight:t,transitionDuration:n}=$T();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{marginRight:(0,f.unref)(t)},animate:{marginRight:(0,f.unref)(t)},transition:{duration:(0,f.unref)(n),type:`spring`,bounce:0},class:`flex size-full flex-col overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`animate`,`transition`]))}}),tE=V({slots:{body:`flex-1 overflow-y-auto`,content:`flex h-full flex-col overflow-hidden`,pane:`absolute z-4 max-w-full bg-primary`,resizeHandle:`
|
|
673
673
|
group absolute -left-2 z-10 flex w-4 cursor-col-resize items-center
|
|
674
674
|
justify-center
|
|
675
675
|
`,resizeHandleBar:`
|
|
@@ -692,7 +692,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
692
692
|
`,resizeHandle:`inset-y-0`},"full-height-overlay":{pane:`
|
|
693
693
|
inset-y-0 right-0 h-full border-l border-secondary
|
|
694
694
|
max-md:w-full!
|
|
695
|
-
`,resizeHandle:`inset-y-0`}}}}),[tE,nE]=F(`DetailPaneScrollContext`),rE=[`aria-label`],iE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTransition`,setup(e){let{isResizable:t,isResizing:n,sidebarWidth:r,variant:i,onResizeKeyDown:a,onResizeStart:o}=XT();tE({hasTabs:(0,f.ref)(!1)});let s=np(),c=(0,f.computed)(()=>n.value||s.value?0:.3),{t:l}=(0,g.useI18n)(),u=(0,f.computed)(()=>eE({variant:i}));return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{translateX:`105%`},animate:{translateX:`0%`},exit:{translateX:`105%`},transition:{duration:c.value,type:`spring`,bounce:0},style:(0,f.normalizeStyle)({width:(0,f.unref)(r)}),class:(0,f.normalizeClass)(u.value.pane())},{default:(0,f.withCtx)(()=>[(0,f.unref)(t)?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,class:(0,f.normalizeClass)([u.value.resizeHandle(),`focus-visible:outline-none`]),"aria-label":(0,f.unref)(l)(`component.dashboard_page_detail_pane_transition.resize`),role:`separator`,"aria-orientation":`vertical`,tabindex:`0`,onPointerdown:n[0]||=(...e)=>(0,f.unref)(o)&&(0,f.unref)(o)(...e),onKeydown:n[1]||=(...e)=>(0,f.unref)(a)&&(0,f.unref)(a)(...e)},[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(u.value.resizeHandleBar())},null,2)],42,rE)):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(u.value.content())},[(0,f.renderSlot)(e.$slots,`default`)],2)]),_:3},8,[`transition`,`style`,`class`]))}}),aE=(0,f.defineComponent)({__name:`DashboardPageDetailPane`,setup(e){let{isOpen:t}=XT();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[(0,f.unref)(t)?((0,f.openBlock)(),(0,f.createBlock)(iE,{key:0},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})):(0,f.createCommentVNode)(``,!0)]),_:3}))}}),oE=`20rem`,sE=`16rem`,cE=`25rem`;function lE(e){return Number.parseFloat(e)*(typeof document<`u`?Number.parseFloat(getComputedStyle(document.documentElement).fontSize):16)}function uE(e){let t=e.isResizable??!0,n=e.storage,r=e.variant,i=e.defaultWidth??oE,a=e.minWidth??sE,o=e.maxWidth??cE,s=(0,m.useBreakpoints)({xl:960}),c=(0,f.computed)(()=>r===`full-height-overlay`||r===`bordered-overlay`?!0:s.smaller(`xl`).value),l=(0,f.ref)(!1),u=(0,f.ref)(!1),d=n==null?(0,f.ref)(i):(0,m.useLocalStorage)(`${n.key}-width`,i);function p(){if(n==null)return e.isOpen;if(n.strategy===`localStorage`)return(0,m.useLocalStorage)(n.key,e.isOpen.value);if(n.strategy===`routeQuery`){let t=(0,b.useRouteQuery)(n.key,String(e.isOpen.value));return(0,f.computed)({get:()=>t.value===`true`,set:e=>{t.value=String(e)}})}return e.isOpen}let h=p(),g=(0,f.computed)({get:()=>c.value?l.value:h.value,set:e=>{c.value?l.value=e:h.value=e}});function _(){g.value=!g.value}function v(e){e.preventDefault(),u.value=!0;let t=e.target.closest(`.relative`);if(t===null)return;let n=t.getBoundingClientRect(),r=lE(a),i=lE(o);function s(e){let t=n.right-e.clientX;d.value=`${Math.min(Math.max(t,r),i)}px`}function c(){u.value=!1,document.removeEventListener(`pointermove`,s),document.removeEventListener(`pointerup`,c)}document.addEventListener(`pointermove`,s),document.addEventListener(`pointerup`,c)}function y(e){let t=lE(a),n=lE(o),r=0;if(e.key===`ArrowLeft`?r=16:e.key===`ArrowRight`&&(r=-16),r===0)return;e.preventDefault();let s=Number.parseFloat(d.value)||lE(i);d.value=`${Math.min(Math.max(s+r,t),n)}px`}return{isFloatingDetailPane:c,isOpen:g,isResizable:t,isResizing:u,sidebarWidth:d,toggleIsOpen:_,variant:r,onResizeKeyDown:y,onResizeStart:v}}var dE={id:`main-content`},fE=(0,f.defineComponent)({__name:`Page`,props:{title:{}},setup(e){let t=e,n=J(),r=(0,m.useTitle)();return(0,f.watch)([()=>t.title,n.projectName],([e,t])=>{r.value=`${e} — ${t}`},{immediate:!0}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`main`,dE,[(0,f.renderSlot)(e.$slots,`default`)]))}}),[pE,mE]=F(`MainContentDetailPaneContext`),hE=(0,f.ref)(null),gE=(0,f.ref)([]);function _E(){function e(e,t){hE.value=e,gE.value=t}function t(){hE.value=null,gE.value=[]}return{title:hE,breadcrumbs:gE,clearNavigation:t,setNavigation:e}}var vE={class:`relative flex size-full overflow-hidden`},yE=H((0,f.defineComponent)({__name:`DashboardPage`,props:(0,f.mergeModels)({title:{},isTitleHidden:{type:Boolean,default:!1},actions:{default:()=>[]},breadcrumbs:{default:()=>[]},detailPane:{default:null}},{isDetailPaneOpen:{type:Boolean,default:!0,required:!1},isDetailPaneOpenModifiers:{}}),emits:[`update:isDetailPaneOpen`],setup(e){let t=e,n=mE(null),r=(0,f.useSlots)(),{setNavigation:i}=_E();(0,f.watch)([()=>t.title,()=>t.breadcrumbs],([e,t])=>{i(e,t)},{immediate:!0});let a=(0,f.useModel)(e,`isDetailPaneOpen`),o=(0,f.computed)(()=>t.detailPane!==null&&r[`detail-pane`]!==void 0),{isFloatingDetailPane:s,isOpen:c,isResizable:l,isResizing:u,sidebarWidth:d,toggleIsOpen:p,variant:m,onResizeKeyDown:h,onResizeStart:g}=uE({isOpen:a,isResizable:t.detailPane?.isResizable??!0,defaultWidth:t.detailPane?.defaultWidth,maxWidth:t.detailPane?.maxWidth,minWidth:t.detailPane?.minWidth,storage:t.detailPane?.storage??null,variant:t.detailPane?.variant??`full-height-inline`});o.value&&(YT({isFloatingDetailPane:(0,f.computed)(()=>s.value),isOpen:c,isResizable:l,isResizing:u,sidebarWidth:d,toggleIsOpen:p,variant:m,onResizeKeyDown:h,onResizeStart:g}),n!=null&&(n.registerDetailPane(c,p,t.detailPane?.isToggleHidden),(0,f.onUnmounted)(()=>n.unregisterDetailPane())));let _=(0,f.computed)(()=>r[`page-actions-left`]!==void 0||r[`page-actions-right`]!==void 0);return(t,n)=>((0,f.openBlock)(),(0,f.createBlock)(fE,{title:e.title,class:`custom-content-shadow z-1 flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl border border-secondary bg-primary dark:shadow-none`},{default:(0,f.withCtx)(()=>[_.value?((0,f.openBlock)(),(0,f.createBlock)(qT,{key:0},{left:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`page-actions-left`,{},void 0,!0)]),right:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`page-actions-right`,{},void 0,!0)]),_:3})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,vE,[(0,f.createVNode)($T,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`default`,{},void 0,!0)]),_:3}),o.value?((0,f.openBlock)(),(0,f.createBlock)(aE,{key:0},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`detail-pane`,{},void 0,!0)]),_:3})):(0,f.createCommentVNode)(``,!0)])]),_:3},8,[`title`]))}}),[[`__scopeId`,`data-v-3cfb82f3`]]),bE={class:`sr-only`},xE=(0,f.defineComponent)({__name:`DashboardPageLoadingState`,props:{breadcrumbs:{}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)(yE,{breadcrumbs:t.breadcrumbs,title:``},{title:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`h1`,bE,(0,f.toDisplayString)((0,f.unref)(n).t(`component.dashboard_page_loading_state.loading`)),1),(0,f.createVNode)(K,{class:`h-4 w-24`})]),_:1},8,[`breadcrumbs`]))}}),SE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneBody`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Iy),{class:`flex-1`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),CE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneCloseButton`,setup(e){let t=(0,g.useI18n)(),{toggle:n}=mE();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(X),{label:(0,f.unref)(t).t(`component.dashboard_page_detail_pane_toggle.collapse`),icon:(0,f.unref)(zr),variant:`tertiary`,onClick:r[0]||=e=>(0,f.unref)(n)()},null,8,[`label`,`icon`]))}}),wE={class:`sticky bottom-0 bg-primary`},TE={class:`p-lg`},EE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneFooter`,props:{hasSeparator:{type:Boolean,default:!0},showSeparator:{type:Boolean}},setup(e){let t=e,n=(0,f.computed)(()=>t.showSeparator===void 0?t.hasSeparator:t.showSeparator);return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,wE,[n.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)($o),{key:0})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,TE,[(0,f.renderSlot)(e.$slots,`default`)])]))}}),DE={class:`sticky top-0 z-10 bg-primary`},OE={class:`p-lg`},kE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneHeader`,props:{title:{},hasSeparator:{type:Boolean,default:!0},left:{default:null},showSeparator:{type:Boolean}},setup(e){let t=e,n=(0,f.computed)(()=>t.showSeparator===void 0?t.hasSeparator:t.showSeparator),r=nE(null);return(e,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,DE,[(0,f.createElementVNode)(`div`,OE,[(0,f.createVNode)((0,f.unref)(LT),{title:t.title,left:t.left},(0,f.createSlots)({_:2},[e.$slots[`title-end`]?{name:`title-end`,fn:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`title-end`)]),key:`0`}:void 0,e.$slots.subtitle?{name:`subtitle`,fn:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`subtitle`)]),key:`1`}:void 0,e.$slots.actions?{name:`actions`,fn:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`actions`)]),key:`2`}:void 0]),1032,[`title`,`left`])]),n.value&&!(0,f.unref)(r)?.hasTabs.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)($o),{key:0})):(0,f.createCommentVNode)(``,!0)]))}});function AE(e){let t=(0,f.ref)(null),n=(0,f.ref)(!1),r=(0,f.ref)(!1),i=(0,f.ref)(!1);function a(e){t.value=e}function o(){let e=t.value;e!==null&&(n.value=e.scrollLeft>0,r.value=e.scrollLeft+e.clientWidth>=e.scrollWidth-1,i.value=e.scrollWidth>e.clientWidth)}function s(){t.value!==null&&t.value.scrollTo({behavior:`smooth`,left:t.value.scrollLeft-200})}function c(){t.value!==null&&t.value.scrollTo({behavior:`smooth`,left:t.value.scrollLeft+200})}function l(){if(t.value===null)return;let e=t.value.querySelector(`[role="tab"][data-state="active"]`)??null;if(e===null)return;let n=t.value,r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),a=r.left-i.left+n.scrollLeft,o=a+r.width;a<n.scrollLeft+48?n.scrollTo({behavior:`smooth`,left:a-48}):o>n.scrollLeft+n.clientWidth-48&&n.scrollTo({behavior:`smooth`,left:o+48-n.clientWidth})}let u=null;return(0,f.watch)(e.activeValue,()=>{(0,f.nextTick)(()=>{l()})}),(0,f.onMounted)(()=>{t.value!==null&&(o(),t.value.addEventListener(`scroll`,o),u=new ResizeObserver(o),u.observe(t.value))}),(0,f.onBeforeUnmount)(()=>{t.value!==null&&t.value.removeEventListener(`scroll`,o),u?.disconnect()}),{hasHorizontalOverflow:(0,f.computed)(()=>i.value),hasReachedHorizontalEnd:(0,f.computed)(()=>r.value),isScrolledHorizontally:(0,f.computed)(()=>n.value),scrollToActiveTab:l,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:a}}var[jE,ME]=F(`tabsContext`),NE=eo({compoundVariants:[{isFullWidth:!0,class:{list:`w-auto`},variant:`button-border`}],slots:{base:`relative isolate overflow-hidden`,content:`outline-none`,indicator:`
|
|
695
|
+
`,resizeHandle:`inset-y-0`}}}}),[nE,rE]=F(`DetailPaneScrollContext`),iE=[`aria-label`],aE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTransition`,setup(e){let{isResizable:t,isResizing:n,sidebarWidth:r,variant:i,onResizeKeyDown:a,onResizeStart:o}=ZT();nE({hasTabs:(0,f.ref)(!1)});let s=np(),c=(0,f.computed)(()=>n.value||s.value?0:.3),{t:l}=(0,g.useI18n)(),u=(0,f.computed)(()=>tE({variant:i}));return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{translateX:`105%`},animate:{translateX:`0%`},exit:{translateX:`105%`},transition:{duration:c.value,type:`spring`,bounce:0},style:(0,f.normalizeStyle)({width:(0,f.unref)(r)}),class:(0,f.normalizeClass)(u.value.pane())},{default:(0,f.withCtx)(()=>[(0,f.unref)(t)?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,class:(0,f.normalizeClass)([u.value.resizeHandle(),`focus-visible:outline-none`]),"aria-label":(0,f.unref)(l)(`component.dashboard_page_detail_pane_transition.resize`),role:`separator`,"aria-orientation":`vertical`,tabindex:`0`,onPointerdown:n[0]||=(...e)=>(0,f.unref)(o)&&(0,f.unref)(o)(...e),onKeydown:n[1]||=(...e)=>(0,f.unref)(a)&&(0,f.unref)(a)(...e)},[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(u.value.resizeHandleBar())},null,2)],42,iE)):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(u.value.content())},[(0,f.renderSlot)(e.$slots,`default`)],2)]),_:3},8,[`transition`,`style`,`class`]))}}),oE=(0,f.defineComponent)({__name:`DashboardPageDetailPane`,setup(e){let{isOpen:t}=ZT();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[(0,f.unref)(t)?((0,f.openBlock)(),(0,f.createBlock)(aE,{key:0},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})):(0,f.createCommentVNode)(``,!0)]),_:3}))}}),sE=`20rem`,cE=`16rem`,lE=`25rem`;function uE(e){return Number.parseFloat(e)*(typeof document<`u`?Number.parseFloat(getComputedStyle(document.documentElement).fontSize):16)}function dE(e){let t=e.isResizable??!0,n=e.storage,r=e.variant,i=e.defaultWidth??sE,a=e.minWidth??cE,o=e.maxWidth??lE,s=(0,m.useBreakpoints)({xl:960}),c=(0,f.computed)(()=>r===`full-height-overlay`||r===`bordered-overlay`?!0:s.smaller(`xl`).value),l=(0,f.ref)(!1),u=(0,f.ref)(!1),d=n==null?(0,f.ref)(i):(0,m.useLocalStorage)(`${n.key}-width`,i);function p(){if(n==null)return e.isOpen;if(n.strategy===`localStorage`)return(0,m.useLocalStorage)(n.key,e.isOpen.value);if(n.strategy===`routeQuery`){let t=(0,b.useRouteQuery)(n.key,String(e.isOpen.value));return(0,f.computed)({get:()=>t.value===`true`,set:e=>{t.value=String(e)}})}return e.isOpen}let h=p(),g=(0,f.computed)({get:()=>c.value?l.value:h.value,set:e=>{c.value?l.value=e:h.value=e}});function _(){g.value=!g.value}function v(e){e.preventDefault(),u.value=!0;let t=e.target.closest(`.relative`);if(t===null)return;let n=t.getBoundingClientRect(),r=uE(a),i=uE(o);function s(e){let t=n.right-e.clientX;d.value=`${Math.min(Math.max(t,r),i)}px`}function c(){u.value=!1,document.removeEventListener(`pointermove`,s),document.removeEventListener(`pointerup`,c)}document.addEventListener(`pointermove`,s),document.addEventListener(`pointerup`,c)}function y(e){let t=uE(a),n=uE(o),r=0;if(e.key===`ArrowLeft`?r=16:e.key===`ArrowRight`&&(r=-16),r===0)return;e.preventDefault();let s=Number.parseFloat(d.value)||uE(i);d.value=`${Math.min(Math.max(s+r,t),n)}px`}return{isFloatingDetailPane:c,isOpen:g,isResizable:t,isResizing:u,sidebarWidth:d,toggleIsOpen:_,variant:r,onResizeKeyDown:y,onResizeStart:v}}var fE={id:`main-content`},pE=(0,f.defineComponent)({__name:`Page`,props:{title:{}},setup(e){let t=e,n=J(),r=(0,m.useTitle)();return(0,f.watch)([()=>t.title,n.projectName],([e,t])=>{r.value=`${e} — ${t}`},{immediate:!0}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`main`,fE,[(0,f.renderSlot)(e.$slots,`default`)]))}}),[mE,hE]=F(`MainContentDetailPaneContext`),gE=(0,f.ref)(null),_E=(0,f.ref)([]);function vE(){function e(e,t){gE.value=e,_E.value=t}function t(){gE.value=null,_E.value=[]}return{title:gE,breadcrumbs:_E,clearNavigation:t,setNavigation:e}}var yE={class:`relative flex size-full overflow-hidden`},bE=H((0,f.defineComponent)({__name:`DashboardPage`,props:(0,f.mergeModels)({title:{},isTitleHidden:{type:Boolean,default:!1},actions:{default:()=>[]},breadcrumbs:{default:()=>[]},detailPane:{default:null}},{isDetailPaneOpen:{type:Boolean,default:!0,required:!1},isDetailPaneOpenModifiers:{}}),emits:[`update:isDetailPaneOpen`],setup(e){let t=e,n=hE(null),r=(0,f.useSlots)(),{setNavigation:i}=vE();(0,f.watch)([()=>t.title,()=>t.breadcrumbs],([e,t])=>{i(e,t)},{immediate:!0});let a=(0,f.useModel)(e,`isDetailPaneOpen`),o=(0,f.computed)(()=>t.detailPane!==null&&r[`detail-pane`]!==void 0),{isFloatingDetailPane:s,isOpen:c,isResizable:l,isResizing:u,sidebarWidth:d,toggleIsOpen:p,variant:m,onResizeKeyDown:h,onResizeStart:g}=dE({isOpen:a,isResizable:t.detailPane?.isResizable??!0,defaultWidth:t.detailPane?.defaultWidth,maxWidth:t.detailPane?.maxWidth,minWidth:t.detailPane?.minWidth,storage:t.detailPane?.storage??null,variant:t.detailPane?.variant??`full-height-inline`});o.value&&(XT({isFloatingDetailPane:(0,f.computed)(()=>s.value),isOpen:c,isResizable:l,isResizing:u,sidebarWidth:d,toggleIsOpen:p,variant:m,onResizeKeyDown:h,onResizeStart:g}),n!=null&&(n.registerDetailPane(c,p,t.detailPane?.isToggleHidden),(0,f.onUnmounted)(()=>n.unregisterDetailPane())));let _=(0,f.computed)(()=>r[`page-actions-left`]!==void 0||r[`page-actions-right`]!==void 0);return(t,n)=>((0,f.openBlock)(),(0,f.createBlock)(pE,{title:e.title,class:`custom-content-shadow z-1 flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl border border-secondary bg-primary dark:shadow-none`},{default:(0,f.withCtx)(()=>[_.value?((0,f.openBlock)(),(0,f.createBlock)(JT,{key:0},{left:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`page-actions-left`,{},void 0,!0)]),right:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`page-actions-right`,{},void 0,!0)]),_:3})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,yE,[(0,f.createVNode)(eE,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`default`,{},void 0,!0)]),_:3}),o.value?((0,f.openBlock)(),(0,f.createBlock)(oE,{key:0},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(t.$slots,`detail-pane`,{},void 0,!0)]),_:3})):(0,f.createCommentVNode)(``,!0)])]),_:3},8,[`title`]))}}),[[`__scopeId`,`data-v-3cfb82f3`]]),xE={class:`sr-only`},SE=(0,f.defineComponent)({__name:`DashboardPageLoadingState`,props:{breadcrumbs:{}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)(bE,{breadcrumbs:t.breadcrumbs,title:``},{title:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`h1`,xE,(0,f.toDisplayString)((0,f.unref)(n).t(`component.dashboard_page_loading_state.loading`)),1),(0,f.createVNode)(K,{class:`h-4 w-24`})]),_:1},8,[`breadcrumbs`]))}}),CE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneBody`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Iy),{class:`flex-1`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),wE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneCloseButton`,setup(e){let t=(0,g.useI18n)(),{toggle:n}=hE();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(X),{label:(0,f.unref)(t).t(`component.dashboard_page_detail_pane_toggle.collapse`),icon:(0,f.unref)(zr),variant:`tertiary`,onClick:r[0]||=e=>(0,f.unref)(n)()},null,8,[`label`,`icon`]))}}),TE={class:`sticky bottom-0 bg-primary`},EE={class:`p-lg`},DE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneFooter`,props:{hasSeparator:{type:Boolean,default:!0},showSeparator:{type:Boolean}},setup(e){let t=e,n=(0,f.computed)(()=>t.showSeparator===void 0?t.hasSeparator:t.showSeparator);return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,TE,[n.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)($o),{key:0})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,EE,[(0,f.renderSlot)(e.$slots,`default`)])]))}}),OE={class:`sticky top-0 z-10 bg-primary`},kE={class:`p-lg`},AE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneHeader`,props:{title:{},hasSeparator:{type:Boolean,default:!0},left:{default:null},showSeparator:{type:Boolean}},setup(e){let t=e,n=(0,f.computed)(()=>t.showSeparator===void 0?t.hasSeparator:t.showSeparator),r=rE(null);return(e,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,OE,[(0,f.createElementVNode)(`div`,kE,[(0,f.createVNode)((0,f.unref)(RT),{title:t.title,left:t.left},(0,f.createSlots)({_:2},[e.$slots[`title-end`]?{name:`title-end`,fn:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`title-end`)]),key:`0`}:void 0,e.$slots.subtitle?{name:`subtitle`,fn:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`subtitle`)]),key:`1`}:void 0,e.$slots.actions?{name:`actions`,fn:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`actions`)]),key:`2`}:void 0]),1032,[`title`,`left`])]),n.value&&!(0,f.unref)(r)?.hasTabs.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)($o),{key:0})):(0,f.createCommentVNode)(``,!0)]))}});function jE(e){let t=(0,f.ref)(null),n=(0,f.ref)(!1),r=(0,f.ref)(!1),i=(0,f.ref)(!1);function a(e){t.value=e}function o(){let e=t.value;e!==null&&(n.value=e.scrollLeft>0,r.value=e.scrollLeft+e.clientWidth>=e.scrollWidth-1,i.value=e.scrollWidth>e.clientWidth)}function s(){t.value!==null&&t.value.scrollTo({behavior:`smooth`,left:t.value.scrollLeft-200})}function c(){t.value!==null&&t.value.scrollTo({behavior:`smooth`,left:t.value.scrollLeft+200})}function l(){if(t.value===null)return;let e=t.value.querySelector(`[role="tab"][data-state="active"]`)??null;if(e===null)return;let n=t.value,r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),a=r.left-i.left+n.scrollLeft,o=a+r.width;a<n.scrollLeft+48?n.scrollTo({behavior:`smooth`,left:a-48}):o>n.scrollLeft+n.clientWidth-48&&n.scrollTo({behavior:`smooth`,left:o+48-n.clientWidth})}let u=null;return(0,f.watch)(e.activeValue,()=>{(0,f.nextTick)(()=>{l()})}),(0,f.onMounted)(()=>{t.value!==null&&(o(),t.value.addEventListener(`scroll`,o),u=new ResizeObserver(o),u.observe(t.value))}),(0,f.onBeforeUnmount)(()=>{t.value!==null&&t.value.removeEventListener(`scroll`,o),u?.disconnect()}),{hasHorizontalOverflow:(0,f.computed)(()=>i.value),hasReachedHorizontalEnd:(0,f.computed)(()=>r.value),isScrolledHorizontally:(0,f.computed)(()=>n.value),scrollToActiveTab:l,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:a}}var[ME,NE]=F(`tabsContext`),PE=eo({compoundVariants:[{isFullWidth:!0,class:{list:`w-auto`},variant:`button-border`}],slots:{base:`relative isolate overflow-hidden`,content:`outline-none`,indicator:`
|
|
696
696
|
absolute duration-200
|
|
697
697
|
group-data-[orientation=horizontal]:bottom-0
|
|
698
698
|
group-data-[orientation=horizontal]:w-(--reka-tabs-indicator-size)
|
|
@@ -760,7 +760,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
760
760
|
border-secondary
|
|
761
761
|
data-[orientation=horizontal]:border-b
|
|
762
762
|
data-[orientation=vertical]:border-l
|
|
763
|
-
`}}}}),
|
|
763
|
+
`}}}}),FE=(0,f.defineComponent)({__name:`Tabs`,props:(0,f.mergeModels)({isFullWidth:{type:Boolean,default:!1},orientation:{default:`horizontal`},underlineTabsHorizontalListPadding:{default:`none`},variant:{default:`underline`}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e;t.underlineTabsHorizontalListPadding!==`none`&&t.variant!==`underline`&&console.warn("[Tabs] `underlineTabsHorizontalListPadding` only applies to the `underline` variant.");let n=(0,f.useModel)(e,`modelValue`),r=(0,f.computed)(()=>n.value),{hasHorizontalOverflow:i,hasReachedHorizontalEnd:a,isScrolledHorizontally:o,scrollToActiveTab:s,scrollToLeft:c,scrollToRight:l,setScrollContainerRef:u}=jE({activeValue:r}),d=(0,f.computed)(()=>PE({isFullWidth:t.isFullWidth,underlineTabsHorizontalListPadding:t.underlineTabsHorizontalListPadding,variant:t.variant}));return(0,f.onMounted)(()=>{s()}),ME({activeValue:r,...Xr(t),hasHorizontalOverflow:i,hasReachedHorizontalEnd:a,isScrolledHorizontally:o,scrollToLeft:c,scrollToRight:l,setScrollContainerRef:u,variants:d}),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsRoot),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,orientation:t.orientation},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`orientation`]))}}),IE=(0,f.defineComponent)({__name:`TabsContent`,props:{asChild:{type:Boolean,default:!1},value:{}},setup(e){let t=e,{variants:n}=NE();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsContent),{"as-child":t.asChild,value:t.value,class:(0,f.normalizeClass)((0,f.unref)(n).content())},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`as-child`,`value`,`class`]))}}),LE=eo({compoundVariants:[{class:{base:`
|
|
764
764
|
border-brand-400
|
|
765
765
|
dark:border-brand-600
|
|
766
766
|
`,label:`
|
|
@@ -858,14 +858,14 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
858
858
|
dark:text-warning-200
|
|
859
859
|
`},color:`warning`,variant:`translucent`}],slots:{base:`
|
|
860
860
|
inline-flex min-w-fit items-center justify-center rounded-full border
|
|
861
|
-
`,label:`font-medium`},variants:{size:{lg:{base:`h-5 min-w-5 px-xxs`,label:`text-xs`},md:{base:`h-4 min-w-4 px-xxs`,label:`text-[0.625rem]`}},color:{blue:{},brand:{},error:{},gray:{},pink:{},purple:{},success:{},warning:{}},variant:{outline:{base:`bg-transparent`},solid:{},translucent:{}}}}),LE=[`aria-label`],RE=(0,f.defineComponent)({__name:`NumberBadge`,props:{ariaLabel:{default:null},color:{default:`gray`},size:{default:`md`},value:{},variant:{default:`translucent`}},setup(e){let t=e,n=(0,f.computed)(()=>IE({color:t.color,size:t.size,variant:t.variant}));return(e,r)=>((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{class:(0,f.normalizeClass)(n.value.base()),"aria-label":t.ariaLabel??void 0,role:`status`},[(0,f.createVNode)((0,f.unref)(U),{text:t.value,class:(0,f.normalizeClass)(n.value.label())},null,8,[`text`,`class`])],10,LE))}}),zE=(0,f.defineComponent)({__name:`TabsItemContent`,props:{isLabelHidden:{type:Boolean,default:!1},count:{default:null},icon:{default:void 0},label:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,[t.icon==null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:(0,f.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),t.count==null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(RE),{key:1,value:t.count.toString(),size:`md`},null,8,[`value`]))],64))}}),BE=(0,f.defineComponent)({__name:`TabsItem`,props:{isLabelHidden:{type:Boolean},count:{default:null},disabledReason:{default:null},icon:{default:void 0},label:{},value:{},isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=ME();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(W),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TabsTrigger),{value:t.value,disabled:t.isDisabled,class:(0,f.normalizeClass)((0,f.unref)(n).variants.value.item())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(zE,{count:t.count,icon:t.icon,"is-label-hidden":t.isLabelHidden,label:t.label},null,8,[`count`,`icon`,`is-label-hidden`,`label`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`is-disabled`,`label`]))}}),VE=(0,f.defineComponent)({__name:`TabsIndicator`,setup(e){let{variants:t}=ME();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsIndicator),{class:(0,f.normalizeClass)((0,f.unref)(t).indicator())},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(t).indicatorInner())},null,2)]),_:1},8,[`class`]))}}),HE=[`aria-label`],UE=[`data-orientation`],WE=[`aria-label`],GE=(0,f.defineComponent)({__name:`TabsList`,setup(e){let t=(0,g.useI18n)(),n=(0,f.ref)(null),{hasHorizontalOverflow:r,hasReachedHorizontalEnd:i,isScrolledHorizontally:a,orientation:o,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:l,variants:u}=ME();return(0,f.onMounted)(()=>{if(n.value===null)throw Error(`scrollContainerRef is null`);l(n.value)}),(e,l)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(u).base())},[(0,f.unref)(a)&&(0,f.unref)(r)&&(0,f.unref)(o)===`horizontal`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,class:(0,f.normalizeClass)([(0,f.unref)(u).scrollEdge(),`left-0 justify-start bg-linear-to-r from-50%`])},[(0,f.createElementVNode)(`button`,{"aria-label":(0,f.unref)(t).t(`component.tabs.scroll_left`),class:(0,f.normalizeClass)((0,f.unref)(u).scrollButton()),tabindex:`-1`,type:`button`,onClick:l[0]||=(...e)=>(0,f.unref)(s)&&(0,f.unref)(s)(...e)},[(0,f.createVNode)((0,f.unref)(ln),{class:`size-3`})],10,HE)],2)):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,{ref_key:`scrollContainerRef`,ref:n,class:(0,f.normalizeClass)((0,f.unref)(u).scrollContainer()),"data-orientation":(0,f.unref)(o)},[(0,f.createVNode)((0,f.unref)(h.TabsList),{class:(0,f.normalizeClass)((0,f.unref)(u).list())},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`),(0,f.createVNode)(VE)]),_:3},8,[`class`])],10,UE),!(0,f.unref)(i)&&(0,f.unref)(r)&&(0,f.unref)(o)===`horizontal`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:1,class:(0,f.normalizeClass)([(0,f.unref)(u).scrollEdge(),`right-0 justify-end bg-linear-to-l from-50%`])},[(0,f.createElementVNode)(`button`,{"aria-label":(0,f.unref)(t).t(`component.tabs.scroll_right`),class:(0,f.normalizeClass)((0,f.unref)(u).scrollButton()),tabindex:`-1`,type:`button`,onClick:l[1]||=(...e)=>(0,f.unref)(c)&&(0,f.unref)(c)(...e)},[(0,f.createVNode)((0,f.unref)(pn),{class:`size-3`})],10,WE)],2)):(0,f.createCommentVNode)(``,!0)],2))}}),KE=(0,f.defineComponent)({__name:`TabsRouterLink`,props:{isFullWidth:{type:Boolean,default:!1},orientation:{default:`horizontal`},underlineTabsHorizontalListPadding:{default:`none`},variant:{default:`underline`}},setup(e){let t=e;t.underlineTabsHorizontalListPadding!==`none`&&t.variant!==`underline`&&console.warn("[TabsRouterLink] `underlineTabsHorizontalListPadding` only applies to the `underline` variant.");let n=(0,y.useRoute)(),r=(0,y.useRouter)(),i=(0,f.computed)(()=>n.name);function a(e){e!==i.value&&r.replace({name:e})}let{hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToActiveTab:l,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:p}=AE({activeValue:i}),m=(0,f.computed)(()=>NE({isFullWidth:t.isFullWidth,underlineTabsHorizontalListPadding:t.underlineTabsHorizontalListPadding,variant:t.variant}));return(0,f.onMounted)(()=>{l()}),jE({activeValue:i,...Xr(t),hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:p,variants:m}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsRoot),{"model-value":i.value,orientation:t.orientation,"onUpdate:modelValue":a},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(GE,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`model-value`,`orientation`]))}}),qE=(0,f.defineComponent)({__name:`TabsRouterLinkContent`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,role:`tabpanel`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterView))]),_:1}))}}),JE=(0,f.defineComponent)({__name:`TabsRouterLinkItem`,props:{isLabelHidden:{type:Boolean},count:{default:null},disabledReason:{default:null},icon:{default:void 0},label:{},to:{},isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=ME().variants,r=(0,y.useRouter)(),i=(0,f.computed)(()=>r.resolve(t.to).name);return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(W),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,null,[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TabsTrigger),{value:i.value,disabled:t.isDisabled,"as-child":!0,class:(0,f.normalizeClass)((0,f.unref)(n).item())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:t.to,replace:!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(zE,{count:t.count,icon:t.icon,"is-label-hidden":t.isLabelHidden,label:t.label},null,8,[`count`,`icon`,`is-label-hidden`,`label`])]),_:1},8,[`to`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})])]),_:1},8,[`is-disabled`,`label`]))}}),YE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabs`,props:{modelValue:{required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=(0,f.useModel)(e,`modelValue`);return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(PE),{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,"is-full-width":!0,variant:`underline`,"underline-tabs-horizontal-list-padding":`lg`,class:`flex flex-1 flex-col overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`]))}}),XE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabsContent`,props:{asChild:{type:Boolean,default:!0},value:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(FE),{"as-child":t.asChild,value:t.value,tabindex:t.asChild?void 0:-1},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Iy),{tabindex:`0`,class:`flex flex-1 flex-col`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`as-child`,`value`,`tabindex`]))}}),ZE={class:`sticky top-0 z-10 bg-primary`},QE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabsList`,setup(e){let{hasTabs:t}=nE();return(0,f.onMounted)(()=>{t.value=!0}),(0,f.onBeforeUnmount)(()=>{t.value=!1}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,ZE,[(0,f.createVNode)((0,f.unref)(GE),null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]))}}),$E=(0,f.defineComponent)({__name:`DashboardPageDetailPaneToggle`,setup(e){let{isOpen:t,toggle:n}=mE(),r=(0,g.useI18n)(),i=(0,p.createAction)({id:`toggle-detail-pane`,name:()=>r.t(`action.global.toggle_detail_pane.name`),execute:()=>{n()},group:(0,p.useActionGroup)().navigation,icon:()=>t.value?$n:Vn,keyboardShortcut:{key:`I`,mod:!0},keywords:r.t(`action.global.toggle_detail_pane.keywords`).split(` `)}),a=(0,f.computed)(()=>t.value?r.t(`component.dashboard_page_detail_pane_toggle.collapse`):r.t(`component.dashboard_page_detail_pane_toggle.expand`));return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(W,{label:a.value,"keyboard-shortcut":(0,f.unref)(i).keyboardShortcut},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Cs,{"is-current-context-only":!1,action:(0,f.unref)(i),"group-priority":(0,f.unref)(p.GroupPriority).NAVIGATION},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.Toggle),{"model-value":(0,f.unref)(t),"data-state":(0,f.unref)(t)?`open`:`closed`,"aria-label":a.value,class:`group/toggle -mr-xxs flex size-6 items-center justify-center rounded-sm duration-150 hover:bg-secondary-hover`},{default:(0,f.withCtx)(()=>[...n[0]||=[(0,f.createElementVNode)(`div`,{class:`flex h-3 w-3.5 justify-end rounded-[0.1875rem] border border-fg-tertiary p-[0.09375rem] duration-150 group-data-[state=open]/toggle:border-fg-tertiary dark:group-data-[state=open]/toggle:border-fg-secondary`},[(0,f.createElementVNode)(`div`,{class:`h-full w-0.5 rounded-[1px] bg-fg-tertiary duration-150 group-data-[state=open]/toggle:w-1 group-data-[state=open]/toggle:bg-fg-tertiary dark:group-data-[state=open]/toggle:bg-fg-secondary`})],-1)]]),_:1},8,[`model-value`,`data-state`,`aria-label`])]),_:1})]),_:1},8,[`action`,`group-priority`])]),_:1},8,[`label`,`keyboard-shortcut`]))}}),eD=(0,f.defineComponent)({__name:`DashboardPageHeaderActions`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),tD={class:`border-b border-secondary`},nD={class:`flex h-11 items-center`},rD={key:0,class:`flex h-11 items-center border-t border-secondary`},iD=(0,f.defineComponent)({__name:`DashboardPageHeader`,setup(e){let t=(0,f.useSlots)(),n=(0,m.useBreakpoints)({lg:1024}).smaller(`lg`),r=(0,f.computed)(()=>!!t[`action-right`]);return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`header`,tD,[(0,f.createElementVNode)(`div`,nD,[(0,f.createVNode)(KT,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`between`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`action-left`)]),_:3}),(0,f.renderSlot)(e.$slots,`action-center`),(0,f.createVNode)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.unref)(n)?(0,f.createCommentVNode)(``,!0):(0,f.renderSlot)(e.$slots,`action-right`,{key:0}),(0,f.createVNode)(eD,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`master-actions`)]),_:3})]),_:3})]),_:3})]),_:3})]),(0,f.unref)(n)&&r.value?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,rD,[(0,f.createVNode)(KT,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`action-right`)]),_:3})]),_:3})]),_:3})])):(0,f.createCommentVNode)(``,!0)]))}}),aD=(0,f.defineComponent)({__name:`DashboardPageHeaderMasterActionButton`,props:{icon:{},label:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(X,{icon:t.icon,label:t.label,variant:`tertiary`},null,8,[`icon`,`label`]))}});function oD({maxDate:e,minDate:t,modelValue:n}){let r=J(),i=(0,f.computed)(()=>r.dateLocale.value??navigator.language),a=S.Temporal.Now.plainDateISO(),o=(0,f.shallowRef)(new x.CalendarDate(a.year,a.month,a.day));function s(e){o.value=e}function c(e){return new x.CalendarDate(e.year,e.month,e.day)}function l(e){return S.Temporal.PlainDate.from({day:e.day,month:e.month,year:e.year})}let u=(0,f.computed)({get:()=>{if(n.value!==null)return c(n.value)},set:e=>{e==null?n.value=null:n.value=l(e)}}),d=(0,f.computed)(()=>{if(t.value!=null)return c(t.value)});return{plainDateToCalendarDate:c,calendarPlaceholder:o,calendarValue:u,locale:i,maxDateValue:(0,f.computed)(()=>{if(e.value!=null)return c(e.value)}),minDateValue:d,setPlaceholder:s}}var sD=V({slots:{field:`flex h-full flex-1 items-center px-sm`,literal:`text-placeholder select-none`,segment:`
|
|
861
|
+
`,label:`font-medium`},variants:{size:{lg:{base:`h-5 min-w-5 px-xxs`,label:`text-xs`},md:{base:`h-4 min-w-4 px-xxs`,label:`text-[0.625rem]`}},color:{blue:{},brand:{},error:{},gray:{},pink:{},purple:{},success:{},warning:{}},variant:{outline:{base:`bg-transparent`},solid:{},translucent:{}}}}),RE=[`aria-label`],zE=(0,f.defineComponent)({__name:`NumberBadge`,props:{ariaLabel:{default:null},color:{default:`gray`},size:{default:`md`},value:{},variant:{default:`translucent`}},setup(e){let t=e,n=(0,f.computed)(()=>LE({color:t.color,size:t.size,variant:t.variant}));return(e,r)=>((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{class:(0,f.normalizeClass)(n.value.base()),"aria-label":t.ariaLabel??void 0,role:`status`},[(0,f.createVNode)((0,f.unref)(U),{text:t.value,class:(0,f.normalizeClass)(n.value.label())},null,8,[`text`,`class`])],10,RE))}}),BE=(0,f.defineComponent)({__name:`TabsItemContent`,props:{isLabelHidden:{type:Boolean,default:!1},count:{default:null},icon:{default:void 0},label:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,[t.icon==null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:(0,f.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),t.count==null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(zE),{key:1,value:t.count.toString(),size:`md`},null,8,[`value`]))],64))}}),VE=(0,f.defineComponent)({__name:`TabsItem`,props:{isLabelHidden:{type:Boolean},count:{default:null},disabledReason:{default:null},icon:{default:void 0},label:{},value:{},isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=NE();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(W),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TabsTrigger),{value:t.value,disabled:t.isDisabled,class:(0,f.normalizeClass)((0,f.unref)(n).variants.value.item())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(BE,{count:t.count,icon:t.icon,"is-label-hidden":t.isLabelHidden,label:t.label},null,8,[`count`,`icon`,`is-label-hidden`,`label`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`is-disabled`,`label`]))}}),HE=(0,f.defineComponent)({__name:`TabsIndicator`,setup(e){let{variants:t}=NE();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsIndicator),{class:(0,f.normalizeClass)((0,f.unref)(t).indicator())},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(t).indicatorInner())},null,2)]),_:1},8,[`class`]))}}),UE=[`aria-label`],WE=[`data-orientation`],GE=[`aria-label`],KE=(0,f.defineComponent)({__name:`TabsList`,setup(e){let t=(0,g.useI18n)(),n=(0,f.ref)(null),{hasHorizontalOverflow:r,hasReachedHorizontalEnd:i,isScrolledHorizontally:a,orientation:o,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:l,variants:u}=NE();return(0,f.onMounted)(()=>{if(n.value===null)throw Error(`scrollContainerRef is null`);l(n.value)}),(e,l)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(u).base())},[(0,f.unref)(a)&&(0,f.unref)(r)&&(0,f.unref)(o)===`horizontal`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,class:(0,f.normalizeClass)([(0,f.unref)(u).scrollEdge(),`left-0 justify-start bg-linear-to-r from-50%`])},[(0,f.createElementVNode)(`button`,{"aria-label":(0,f.unref)(t).t(`component.tabs.scroll_left`),class:(0,f.normalizeClass)((0,f.unref)(u).scrollButton()),tabindex:`-1`,type:`button`,onClick:l[0]||=(...e)=>(0,f.unref)(s)&&(0,f.unref)(s)(...e)},[(0,f.createVNode)((0,f.unref)(ln),{class:`size-3`})],10,UE)],2)):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,{ref_key:`scrollContainerRef`,ref:n,class:(0,f.normalizeClass)((0,f.unref)(u).scrollContainer()),"data-orientation":(0,f.unref)(o)},[(0,f.createVNode)((0,f.unref)(h.TabsList),{class:(0,f.normalizeClass)((0,f.unref)(u).list())},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`),(0,f.createVNode)(HE)]),_:3},8,[`class`])],10,WE),!(0,f.unref)(i)&&(0,f.unref)(r)&&(0,f.unref)(o)===`horizontal`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:1,class:(0,f.normalizeClass)([(0,f.unref)(u).scrollEdge(),`right-0 justify-end bg-linear-to-l from-50%`])},[(0,f.createElementVNode)(`button`,{"aria-label":(0,f.unref)(t).t(`component.tabs.scroll_right`),class:(0,f.normalizeClass)((0,f.unref)(u).scrollButton()),tabindex:`-1`,type:`button`,onClick:l[1]||=(...e)=>(0,f.unref)(c)&&(0,f.unref)(c)(...e)},[(0,f.createVNode)((0,f.unref)(pn),{class:`size-3`})],10,GE)],2)):(0,f.createCommentVNode)(``,!0)],2))}}),qE=(0,f.defineComponent)({__name:`TabsRouterLink`,props:{isFullWidth:{type:Boolean,default:!1},orientation:{default:`horizontal`},underlineTabsHorizontalListPadding:{default:`none`},variant:{default:`underline`}},setup(e){let t=e;t.underlineTabsHorizontalListPadding!==`none`&&t.variant!==`underline`&&console.warn("[TabsRouterLink] `underlineTabsHorizontalListPadding` only applies to the `underline` variant.");let n=(0,y.useRoute)(),r=(0,y.useRouter)(),i=(0,f.computed)(()=>n.name);function a(e){e!==i.value&&r.replace({name:e})}let{hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToActiveTab:l,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:p}=jE({activeValue:i}),m=(0,f.computed)(()=>PE({isFullWidth:t.isFullWidth,underlineTabsHorizontalListPadding:t.underlineTabsHorizontalListPadding,variant:t.variant}));return(0,f.onMounted)(()=>{l()}),ME({activeValue:i,...Xr(t),hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:p,variants:m}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TabsRoot),{"model-value":i.value,orientation:t.orientation,"onUpdate:modelValue":a},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(KE,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`model-value`,`orientation`]))}}),JE=(0,f.defineComponent)({__name:`TabsRouterLinkContent`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,role:`tabpanel`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterView))]),_:1}))}}),YE=(0,f.defineComponent)({__name:`TabsRouterLinkItem`,props:{isLabelHidden:{type:Boolean},count:{default:null},disabledReason:{default:null},icon:{default:void 0},label:{},to:{},isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=NE().variants,r=(0,y.useRouter)(),i=(0,f.computed)(()=>r.resolve(t.to).name);return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(W),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,null,[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TabsTrigger),{value:i.value,disabled:t.isDisabled,"as-child":!0,class:(0,f.normalizeClass)((0,f.unref)(n).item())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(y.RouterLink),{to:t.to,replace:!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(BE,{count:t.count,icon:t.icon,"is-label-hidden":t.isLabelHidden,label:t.label},null,8,[`count`,`icon`,`is-label-hidden`,`label`])]),_:1},8,[`to`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})])]),_:1},8,[`is-disabled`,`label`]))}}),XE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabs`,props:{modelValue:{required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=(0,f.useModel)(e,`modelValue`);return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(FE),{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,"is-full-width":!0,variant:`underline`,"underline-tabs-horizontal-list-padding":`lg`,class:`flex flex-1 flex-col overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`]))}}),ZE=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabsContent`,props:{asChild:{type:Boolean,default:!0},value:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(IE),{"as-child":t.asChild,value:t.value,tabindex:t.asChild?void 0:-1},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Iy),{tabindex:`0`,class:`flex flex-1 flex-col`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`as-child`,`value`,`tabindex`]))}}),QE={class:`sticky top-0 z-10 bg-primary`},$E=(0,f.defineComponent)({__name:`DashboardPageDetailPaneTabsList`,setup(e){let{hasTabs:t}=rE();return(0,f.onMounted)(()=>{t.value=!0}),(0,f.onBeforeUnmount)(()=>{t.value=!1}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,QE,[(0,f.createVNode)((0,f.unref)(KE),null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]))}}),eD=(0,f.defineComponent)({__name:`DashboardPageDetailPaneToggle`,setup(e){let{isOpen:t,toggle:n}=hE(),r=(0,g.useI18n)(),i=(0,p.createAction)({id:`toggle-detail-pane`,name:()=>r.t(`action.global.toggle_detail_pane.name`),execute:()=>{n()},group:(0,p.useActionGroup)().navigation,icon:()=>t.value?$n:Vn,keyboardShortcut:{key:`I`,mod:!0},keywords:r.t(`action.global.toggle_detail_pane.keywords`).split(` `)}),a=(0,f.computed)(()=>t.value?r.t(`component.dashboard_page_detail_pane_toggle.collapse`):r.t(`component.dashboard_page_detail_pane_toggle.expand`));return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(W,{label:a.value,"keyboard-shortcut":(0,f.unref)(i).keyboardShortcut},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Cs,{"is-current-context-only":!1,action:(0,f.unref)(i),"group-priority":(0,f.unref)(p.GroupPriority).NAVIGATION},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.Toggle),{"model-value":(0,f.unref)(t),"data-state":(0,f.unref)(t)?`open`:`closed`,"aria-label":a.value,class:`group/toggle -mr-xxs flex size-6 items-center justify-center rounded-sm duration-150 hover:bg-secondary-hover`},{default:(0,f.withCtx)(()=>[...n[0]||=[(0,f.createElementVNode)(`div`,{class:`flex h-3 w-3.5 justify-end rounded-[0.1875rem] border border-fg-tertiary p-[0.09375rem] duration-150 group-data-[state=open]/toggle:border-fg-tertiary dark:group-data-[state=open]/toggle:border-fg-secondary`},[(0,f.createElementVNode)(`div`,{class:`h-full w-0.5 rounded-[1px] bg-fg-tertiary duration-150 group-data-[state=open]/toggle:w-1 group-data-[state=open]/toggle:bg-fg-tertiary dark:group-data-[state=open]/toggle:bg-fg-secondary`})],-1)]]),_:1},8,[`model-value`,`data-state`,`aria-label`])]),_:1})]),_:1},8,[`action`,`group-priority`])]),_:1},8,[`label`,`keyboard-shortcut`]))}}),tD=(0,f.defineComponent)({__name:`DashboardPageHeaderActions`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),nD={class:`border-b border-secondary`},rD={class:`flex h-11 items-center`},iD={key:0,class:`flex h-11 items-center border-t border-secondary`},aD=(0,f.defineComponent)({__name:`DashboardPageHeader`,setup(e){let t=(0,f.useSlots)(),n=(0,m.useBreakpoints)({lg:1024}).smaller(`lg`),r=(0,f.computed)(()=>!!t[`action-right`]);return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`header`,nD,[(0,f.createElementVNode)(`div`,rD,[(0,f.createVNode)(qT,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`between`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`action-left`)]),_:3}),(0,f.renderSlot)(e.$slots,`action-center`),(0,f.createVNode)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.unref)(n)?(0,f.createCommentVNode)(``,!0):(0,f.renderSlot)(e.$slots,`action-right`,{key:0}),(0,f.createVNode)(tD,null,{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`master-actions`)]),_:3})]),_:3})]),_:3})]),_:3})]),(0,f.unref)(n)&&r.value?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,iD,[(0,f.createVNode)(qT,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{justify:`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`action-right`)]),_:3})]),_:3})]),_:3})])):(0,f.createCommentVNode)(``,!0)]))}}),oD=(0,f.defineComponent)({__name:`DashboardPageHeaderMasterActionButton`,props:{icon:{},label:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(X,{icon:t.icon,label:t.label,variant:`tertiary`},null,8,[`icon`,`label`]))}});function sD({maxDate:e,minDate:t,modelValue:n}){let r=J(),i=(0,f.computed)(()=>r.dateLocale.value??navigator.language),a=S.Temporal.Now.plainDateISO(),o=(0,f.shallowRef)(new x.CalendarDate(a.year,a.month,a.day));function s(e){o.value=e}function c(e){return new x.CalendarDate(e.year,e.month,e.day)}function l(e){return S.Temporal.PlainDate.from({day:e.day,month:e.month,year:e.year})}let u=(0,f.computed)({get:()=>{if(n.value!==null)return c(n.value)},set:e=>{e==null?n.value=null:n.value=l(e)}}),d=(0,f.computed)(()=>{if(t.value!=null)return c(t.value)});return{plainDateToCalendarDate:c,calendarPlaceholder:o,calendarValue:u,locale:i,maxDateValue:(0,f.computed)(()=>{if(e.value!=null)return c(e.value)}),minDateValue:d,setPlaceholder:s}}var cD=V({slots:{field:`flex h-full flex-1 items-center px-sm`,literal:`text-placeholder select-none`,segment:`
|
|
862
862
|
rounded-xs px-xxs text-primary tabular-nums caret-transparent outline-none
|
|
863
863
|
group-data-disabled/field-wrapper:pointer-events-none
|
|
864
864
|
hover:bg-secondary-hover hover:text-primary
|
|
865
865
|
focus:bg-secondary-hover focus:text-primary
|
|
866
866
|
data-placeholder:text-placeholder
|
|
867
867
|
data-placeholder:focus:text-primary
|
|
868
|
-
`},variants:{size:{md:{field:`text-xs`},sm:{field:`text-xs`}}}});function
|
|
868
|
+
`},variants:{size:{md:{field:`text-xs`},sm:{field:`text-xs`}}}});function lD(e,t){if(t==null)return null;let n=t(S.Temporal.PlainDate.from({day:e.day,month:e.month,year:e.year}));return n?.type===`dot`?No({color:n.color}):null}var[uD,dD]=F(`DatePickerContext`),fD={key:0,class:`absolute bottom-1 left-1/2 size-1 -translate-x-1/2 rounded-full bg-brand-solid group-data-selected/cell:bg-white`},pD=(0,f.defineComponent)({__name:`DatePickerCalendarGrid`,props:{getDayConfig:{type:Function},month:{},weekDays:{}},setup(e){let t=e,{onClose:n}=dD();function r(e){return lD(e,t.getDayConfig)}return(e,i)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerGrid),{class:`w-full border-collapse select-none`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerGridHead),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerGridRow),{class:`flex`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.weekDays,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerHeadCell),{key:e,class:`flex-1 py-xs text-center text-xs font-medium text-tertiary`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(e),1)]),_:2},1024))),128))]),_:1})]),_:1}),(0,f.createVNode)((0,f.unref)(h.DatePickerGridBody),null,{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.month.rows,(e,a)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerGridRow),{key:a,class:`flex py-xxs`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerCell),{key:e.toString(),date:e,class:`relative flex-1 p-0 text-center text-xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerCellTrigger),{day:e,month:t.month.value,class:`group/cell inline-flex size-9 shrink-0 items-center justify-center rounded-full text-xs font-regular text-secondary transition-colors outline-none not-data-disabled:hover:bg-secondary-hover focus-visible:ring-2 focus-visible:ring-fg-brand-primary data-disabled:pointer-events-none data-disabled:text-disabled data-disabled:opacity-50 data-outside-view:pointer-events-none data-outside-view:invisible data-selected:bg-brand-solid data-selected:text-primary-on-brand data-selected:hover:bg-brand-solid-hover data-selected:focus-visible:ring-0 data-today:font-semibold data-unavailable:pointer-events-none data-unavailable:text-disabled data-unavailable:line-through`,onClick:i[0]||=e=>(0,f.unref)(n)?.()},{default:(0,f.withCtx)(({today:t})=>[(0,f.createTextVNode)((0,f.toDisplayString)(e.day)+` `,1),t?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,fD)):r(e)?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{key:1,class:(0,f.normalizeClass)([r(e),`absolute bottom-1 left-1/2 size-1 -translate-x-1/2 group-data-selected/cell:bg-white`])},null,2)):(0,f.createCommentVNode)(``,!0)]),_:2},1032,[`day`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1024))),128))]),_:1})]),_:1}))}}),mD=V({slots:{headingTrigger:`
|
|
869
869
|
rounded-sm px-xxs text-sm font-semibold text-primary transition-colors
|
|
870
870
|
outline-none
|
|
871
871
|
hover:bg-secondary-hover
|
|
@@ -885,7 +885,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
885
885
|
z-50 w-72 origin-(--reka-popover-content-transform-origin) rounded-2xl
|
|
886
886
|
border border-secondary bg-primary p-xl shadow-lg
|
|
887
887
|
will-change-[transform,opacity]
|
|
888
|
-
`}})(),
|
|
888
|
+
`}})(),hD=(0,f.defineComponent)({__name:`DatePickerMonthPopover`,props:{placeholder:{}},emits:[`update:placeholder`],setup(e,{emit:t}){let n=e,r=t,i=J(),a=(0,f.ref)(!1),o=(0,f.computed)(()=>new Intl.DateTimeFormat(i.locale.value,{month:`long`}).format(new Date(n.placeholder.year,n.placeholder.month-1,1)));function s(e){e==null||Array.isArray(e)||(r(`update:placeholder`,new x.CalendarDate(e.year,e.month,1)),a.value=!1)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.PopoverRoot),{open:a.value,"onUpdate:open":t[0]||=e=>a.value=e},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.PopoverTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Y),{label:o.value,size:`xs`,variant:`tertiary`,class:`font-semibold`},null,8,[`label`])]),_:1}),(0,f.createVNode)((0,f.unref)(h.PopoverPortal),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(ei,{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.PopoverContent),{class:(0,f.normalizeClass)((0,f.unref)(mD).pickerPopover()),"side-offset":8,"collision-padding":10,align:`center`,"data-animation":`popover-default`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.MonthPickerRoot),{locale:(0,f.unref)(i).locale.value,"model-value":n.placeholder,"onUpdate:modelValue":s},{default:(0,f.withCtx)(({grid:e})=>[(0,f.createVNode)((0,f.unref)(h.MonthPickerGrid),{class:(0,f.normalizeClass)((0,f.unref)(mD).pickerGrid())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.MonthPickerGridBody),{class:(0,f.normalizeClass)((0,f.unref)(mD).pickerGridBody())},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.rows,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.MonthPickerGridRow),{key:t,class:(0,f.normalizeClass)((0,f.unref)(mD).pickerGridRow())},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.MonthPickerCell),{key:e.toString(),class:(0,f.normalizeClass)((0,f.unref)(mD).pickerCell()),date:e},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.MonthPickerCellTrigger),{month:e,class:(0,f.normalizeClass)((0,f.unref)(mD).pickerCellTrigger())},{default:(0,f.withCtx)(({monthValue:e})=>[(0,f.createTextVNode)((0,f.toDisplayString)(e),1)]),_:1},8,[`month`,`class`])]),_:2},1032,[`class`,`date`]))),128))]),_:2},1032,[`class`]))),128))]),_:2},1032,[`class`])]),_:2},1032,[`class`])]),_:1},8,[`locale`,`model-value`])]),_:1},8,[`class`])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),gD=V({slots:{header:`flex w-full items-center justify-between`,heading:`text-sm font-semibold text-primary`,headingTrigger:`
|
|
889
889
|
rounded-sm px-xxs text-sm font-semibold text-primary transition-colors
|
|
890
890
|
outline-none
|
|
891
891
|
hover:bg-secondary-hover
|
|
@@ -905,7 +905,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
905
905
|
z-50 w-72 origin-(--reka-popover-content-transform-origin) rounded-2xl
|
|
906
906
|
border border-secondary bg-primary p-xl shadow-lg
|
|
907
907
|
will-change-[transform,opacity]
|
|
908
|
-
`}})(),
|
|
908
|
+
`}})(),_D=(0,f.defineComponent)({__name:`DatePickerYearPopover`,props:{placeholder:{}},emits:[`update:placeholder`],setup(e,{emit:t}){let n=e,r=t,i=(0,g.useI18n)(),{locale:a}=J(),o=(0,f.ref)(!1),s=(0,f.computed)(()=>String(n.placeholder.year));function c(e){e==null||Array.isArray(e)||(r(`update:placeholder`,new x.CalendarDate(e.year,n.placeholder.month,1)),o.value=!1)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.PopoverRoot),{open:o.value,"onUpdate:open":t[0]||=e=>o.value=e},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.PopoverTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Y),{label:s.value,size:`xs`,variant:`tertiary`,class:`font-semibold`},null,8,[`label`])]),_:1}),(0,f.createVNode)((0,f.unref)(h.PopoverPortal),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(ei,{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.PopoverContent),{class:(0,f.normalizeClass)((0,f.unref)(gD).pickerPopover()),"side-offset":8,"collision-padding":10,align:`center`,"data-animation":`popover-default`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.YearPickerRoot),{locale:(0,f.unref)(a),"model-value":n.placeholder,"onUpdate:modelValue":c},{default:(0,f.withCtx)(({grid:e})=>[(0,f.createVNode)(G,null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(gD).header())},[(0,f.createVNode)((0,f.unref)(h.YearPickerPrev),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(X,{icon:(0,f.unref)(ln),label:(0,f.unref)(i).t(`component.date_picker.previous_year_page`),size:`md`,variant:`tertiary`},null,8,[`icon`,`label`])]),_:1}),(0,f.createVNode)((0,f.unref)(h.YearPickerHeading),{class:(0,f.normalizeClass)((0,f.unref)(gD).heading())},null,8,[`class`]),(0,f.createVNode)((0,f.unref)(h.YearPickerNext),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(X,{icon:(0,f.unref)(pn),label:(0,f.unref)(i).t(`component.date_picker.next_year_page`),size:`md`,variant:`tertiary`},null,8,[`icon`,`label`])]),_:1})],2),(0,f.createVNode)((0,f.unref)(h.YearPickerGrid),{class:(0,f.normalizeClass)((0,f.unref)(gD).pickerGrid())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.YearPickerGridBody),{class:(0,f.normalizeClass)((0,f.unref)(gD).pickerGridBody())},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.rows,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.YearPickerGridRow),{key:t,class:(0,f.normalizeClass)((0,f.unref)(gD).pickerGridRow())},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.YearPickerCell),{key:e.toString(),class:(0,f.normalizeClass)((0,f.unref)(gD).pickerCell()),date:e},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.YearPickerCellTrigger),{year:e,class:(0,f.normalizeClass)((0,f.unref)(gD).pickerCellTrigger())},{default:(0,f.withCtx)(({yearValue:e})=>[(0,f.createTextVNode)((0,f.toDisplayString)(e),1)]),_:1},8,[`year`,`class`])]),_:2},1032,[`class`,`date`]))),128))]),_:2},1032,[`class`]))),128))]),_:2},1032,[`class`])]),_:2},1032,[`class`])]),_:2},1024)]),_:1},8,[`locale`,`model-value`])]),_:1},8,[`class`])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),vD={class:`flex items-center gap-none`},yD=(0,f.defineComponent)({__name:`DatePickerCalendarHeader`,setup(e){let t=(0,g.useI18n)(),{placeholder:n,setPlaceholder:r}=dD();return(e,i)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerHeader),{class:`flex items-center justify-between`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerPrev),{"as-child":!0},{default:(0,f.withCtx)(({disabled:e})=>[(0,f.createVNode)(X,{"is-disabled":e,icon:(0,f.unref)(ln),label:(0,f.unref)(t).t(`component.date_picker.previous_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1}),(0,f.createElementVNode)(`div`,vD,[(0,f.createVNode)(hD,{placeholder:(0,f.unref)(n),"onUpdate:placeholder":(0,f.unref)(r)},null,8,[`placeholder`,`onUpdate:placeholder`]),(0,f.createVNode)(_D,{placeholder:(0,f.unref)(n),"onUpdate:placeholder":(0,f.unref)(r)},null,8,[`placeholder`,`onUpdate:placeholder`])]),(0,f.createVNode)((0,f.unref)(h.DatePickerNext),{"as-child":!0},{default:(0,f.withCtx)(({disabled:e})=>[(0,f.createVNode)(X,{"is-disabled":e,icon:(0,f.unref)(pn),label:(0,f.unref)(t).t(`component.date_picker.next_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})]),_:1}))}}),bD=V({slots:{cell:`relative flex-1 p-0 text-center text-xs`,cellTrigger:`
|
|
909
909
|
inline-flex h-9 w-full items-center justify-center rounded-full text-xs
|
|
910
910
|
font-regular text-secondary outline-none
|
|
911
911
|
not-data-disabled:hover:bg-secondary-hover
|
|
@@ -945,7 +945,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
945
945
|
outline-none
|
|
946
946
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
947
947
|
data-placeholder:text-placeholder
|
|
948
|
-
`},variants:{size:{md:{trigger:`gap-sm px-md`},sm:{trigger:`gap-xxs px-sm`}}}}),
|
|
948
|
+
`},variants:{size:{md:{trigger:`gap-sm px-md`},sm:{trigger:`gap-xxs px-sm`}}}}),xD=1;function SD(e){try{if(typeof Intl>`u`||Intl.Locale===void 0)return xD;let t=new Intl.Locale(e);if(typeof t.getWeekInfo!=`function`)return xD;let{firstDay:n}=t.getWeekInfo();return n<1||n>7?xD:n===7?0:n}catch{return xD}}var CD=(0,f.defineComponent)({inheritAttrs:!1,__name:`DateField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({maxDate:{},minDate:{},isPickerHidden:{type:Boolean},getDayConfig:{type:Function},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...ry,...iy,...ay,maxDate:null,minDate:null,isPickerHidden:!1,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),r=(0,g.useI18n)(),i=t.id??(0,f.useId)(),a=(0,f.useAttrs)(),{isError:o,ariaDescribedBy:s,ariaInvalid:c}=ty(i,t),l=(0,f.ref)(!1),{calendarPlaceholder:u,calendarValue:d,locale:p,maxDateValue:m,minDateValue:_,setPlaceholder:v}=sD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:n}),y=(0,f.computed)(()=>cD({size:t.size}));return uD({datePickerStyle:(0,f.computed)(()=>bD({size:t.size})),placeholder:u,setPlaceholder:v,onClose:()=>{l.value=!1}}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,f.normalizeClass)(t.class),style:(0,f.normalizeStyle)(t.style),for:(0,f.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-error-message-hidden":t.isErrorMessageHidden,"is-label-hidden":t.isLabelHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerRoot),{id:(0,f.unref)(i),modelValue:(0,f.unref)(d),"onUpdate:modelValue":n[0]||=e=>(0,f.isRef)(d)?d.value=e:null,open:l.value,"onUpdate:open":n[1]||=e=>l.value=e,placeholder:(0,f.unref)(u),"onUpdate:placeholder":n[2]||=e=>(0,f.isRef)(u)?u.value=e:null,"week-starts-on":(0,f.unref)(SD)((0,f.unref)(p)),disabled:t.isDisabled,"max-value":(0,f.unref)(m),"min-value":(0,f.unref)(_),readonly:t.isReadonly,required:t.isRequired,locale:(0,f.unref)(p)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sy,{"is-disabled":t.isDisabled,"is-error":(0,f.unref)(o),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},(0,f.createSlots)({default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerField),(0,f.mergeProps)({id:(0,f.unref)(i)},(0,f.unref)(a),{"aria-describedby":(0,f.unref)(s),"aria-invalid":(0,f.unref)(c),"aria-required":t.isRequired||void 0,class:y.value.field()}),{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:e},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerInput),{key:1,part:e,class:(0,f.normalizeClass)(y.value.literal())},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DatePickerInput),{key:0,part:e,class:(0,f.normalizeClass)(y.value.segment()),"data-field-wrapper":``},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`]))],64))),128))]),_:1},16,[`id`,`aria-describedby`,`aria-invalid`,`aria-required`,`class`])]),_:2},[t.isPickerHidden?void 0:{name:`right`,fn:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{"is-disabled":t.isDisabled||t.isReadonly,"is-tooltip-disabled":!0,icon:(0,f.unref)(Xt),label:(0,f.unref)(r).t(`component.date_picker.open`),class:(0,f.normalizeClass)({"mr-xs":t.size===`md`,"mr-xxs":t.size===`sm`}),size:`xs`,type:`button`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`,`class`])]),_:1})]),key:`0`}]),1032,[`is-disabled`,`is-error`,`is-loading`,`is-readonly`,`size`]),(0,f.createVNode)(ei,{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerContent),{"side-offset":8,"collision-padding":10,"data-animation":`popover-default`,class:`z-50 origin-(--reka-popover-content-transform-origin) will-change-[transform,opacity]`,align:`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerCalendar),{class:`flex flex-col gap-lg overflow-hidden rounded-2xl border border-secondary bg-primary px-xl py-lg shadow-lg`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:n})=>[(0,f.createVNode)(yD),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n,n=>((0,f.openBlock)(),(0,f.createBlock)(pD,{key:n.value.toString(),"get-day-config":t.getDayConfig,month:n,"week-days":e},null,8,[`get-day-config`,`month`,`week-days`]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,[`id`,`modelValue`,`open`,`placeholder`,`week-starts-on`,`disabled`,`max-value`,`min-value`,`readonly`,`required`,`locale`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`,`is-label-hidden`]))}}),wD=(0,f.defineComponent)({inheritAttrs:!1,__name:`DatePicker`,props:(0,f.mergeModels)({maxDate:{default:null},minDate:{default:null},hasFixedWeeks:{type:Boolean,default:!1},fixedWeeks:{type:Boolean},getDayConfig:{},size:{default:`md`}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useAttrs)(),r=(0,f.useModel)(e,`modelValue`),{calendarPlaceholder:i,calendarValue:a,locale:o,maxDateValue:s,minDateValue:c,setPlaceholder:l}=sD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:r}),u=(0,f.computed)(()=>t.hasFixedWeeks||t.fixedWeeks===!0);return uD({datePickerStyle:(0,f.computed)(()=>bD({size:t.size})),placeholder:i,setPlaceholder:l}),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)(ei,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerRoot),(0,f.mergeProps)((0,f.unref)(n),{modelValue:(0,f.unref)(a),"onUpdate:modelValue":r[0]||=e=>(0,f.isRef)(a)?a.value=e:null,placeholder:(0,f.unref)(i),"onUpdate:placeholder":r[1]||=e=>(0,f.isRef)(i)?i.value=e:null,"week-starts-on":(0,f.unref)(SD)((0,f.unref)(o)),"max-value":(0,f.unref)(s),"min-value":(0,f.unref)(c),locale:(0,f.unref)(o),"fixed-weeks":u.value}),{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DatePickerCalendar),{"fixed-weeks":!1,class:`flex flex-col gap-lg overflow-hidden bg-primary p-2xl px-3xl`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:n})=>[(0,f.createVNode)(yD),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n,n=>((0,f.openBlock)(),(0,f.createBlock)(pD,{key:n.value.toString(),"get-day-config":t.getDayConfig,month:n,"week-days":e},null,8,[`get-day-config`,`month`,`week-days`]))),128))]),_:1})]),_:1},16,[`modelValue`,`placeholder`,`week-starts-on`,`max-value`,`min-value`,`locale`,`fixed-weeks`])]),_:1}))}});function TD({maxDate:e,minDate:t,modelValue:n}){let r=J(),i=(0,f.computed)(()=>r.dateLocale.value??navigator.language),a=(0,f.ref)(!1),o=(0,m.useBreakpoints)({md:768}).smaller(`md`),s=S.Temporal.Now.plainDateISO(),c=n.value.from??s,l=(0,f.shallowRef)(new x.CalendarDate(c.year,c.month,1)),u=(0,f.shallowRef)({end:n.value?.until==null?void 0:h(n.value.until),start:n.value?.from==null?void 0:h(n.value.from)});function d(e){if(e.start!=null&&e.end!=null&&e.start.compare(e.end)>0){a.value=!0;return}a.value=!1,u.value=e}function p(e){l.value=e}function h(e){return new x.CalendarDate(e.year,e.month,e.day)}function g(e){return S.Temporal.PlainDate.from({day:e.day,month:e.month,year:e.year})}(0,f.watch)(u,e=>{e.start!=null&&e.end!=null?n.value={from:g(e.start),until:g(e.end)}:e.start==null&&e.end==null&&(n.value={from:null,until:null})},{deep:!0});function _(e){e===null?u.value={end:void 0,start:void 0}:u.value={end:h(e.until),start:h(e.from)}}function v(){let e=n.value?.from==null?void 0:h(n.value.from),t=n.value?.until==null?void 0:h(n.value.until),r=e==null?u.value.start!=null:u.value.start==null||e.compare(u.value.start)!==0,i=t==null?u.value.end!=null:u.value.end==null||t.compare(u.value.end)!==0;!r&&!i||(u.value={end:t,start:e})}(0,f.watch)(n,v);let y=(0,f.computed)(()=>{if(t.value!=null)return h(t.value)});return{isInvalidRange:a,isSingleMonth:o,calendarPlaceholder:l,draftValue:u,locale:i,maxDateValue:(0,f.computed)(()=>{if(e.value!=null)return h(e.value)}),minDateValue:y,setPlaceholder:p,setPreset:_,syncDraftFromModel:v,onDraftValueUpdate:d}}var[ED,DD]=F(`dateRangeFieldContext`),OD=V({slots:{field:`ml-sm flex h-full min-w-0 flex-1 items-center`,literal:`text-placeholder select-none`,segment:`
|
|
949
949
|
rounded-sm text-primary tabular-nums caret-transparent outline-none
|
|
950
950
|
group-data-disabled/field-wrapper:pointer-events-none
|
|
951
951
|
hover:bg-secondary-hover hover:text-primary
|
|
@@ -960,20 +960,20 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
960
960
|
bg-transparent p-sm
|
|
961
961
|
focus-visible:outline-fg-brand-primary
|
|
962
962
|
disabled:cursor-not-allowed
|
|
963
|
-
`},variants:{isPickerHidden:{false:{field:`pl-xxs`},true:{field:`pl-md`}},size:{md:{field:`gap-xxs text-xs`,separator:`mx-xs`,trigger:`pr-md pl-xs`},sm:{field:`gap-xxs text-xs`,separator:`mx-xxs`,trigger:`pr-sm pl-xxs`}}}}),OD={class:`relative flex size-9 shrink-0 items-center justify-center rounded-full text-xs font-regular text-secondary group-focus-visible/celtrig:ring-2 group-focus-visible/celtrig:ring-fg-brand-primary group-data-disabled/celtrig:text-disabled group-data-disabled/celtrig:opacity-50 group-data-highlighted-end/celtrig:bg-brand-solid group-data-highlighted-end/celtrig:text-primary-on-brand group-data-highlighted-end/celtrig:group-focus-visible/celtrig:ring-0 group-data-highlighted-start/celtrig:bg-brand-solid group-data-highlighted-start/celtrig:text-primary-on-brand group-data-highlighted-start/celtrig:group-focus-visible/celtrig:ring-0 group-data-outside-view/celtrig:text-disabled group-data-selection-end/celtrig:bg-brand-solid group-data-selection-end/celtrig:text-primary-on-brand group-data-selection-end/celtrig:group-focus-visible/celtrig:ring-0 group-data-selection-start/celtrig:bg-brand-solid group-data-selection-start/celtrig:text-primary-on-brand group-data-selection-start/celtrig:group-focus-visible/celtrig:ring-0 group-data-today/celtrig:font-semibold group-data-unavailable/celtrig:text-disabled group-data-unavailable/celtrig:line-through group-not-data-disabled/celtrig:group-not-data-highlighted/celtrig:group-not-data-selected/celtrig:hover:bg-secondary-hover`},kD={key:0,class:`absolute bottom-1 left-1/2 size-1 -translate-x-1/2 rounded-full bg-brand-solid group-data-highlighted-end/celtrig:bg-white group-data-highlighted-start/celtrig:bg-white group-data-selection-end/celtrig:bg-white group-data-selection-start/celtrig:bg-white`},AD=(0,f.defineComponent)({__name:`DateRangeFieldCalendarGrid`,props:{getDayConfig:{type:Function},month:{},weekDays:{}},setup(e){let t=e;function n(e){return e.day===1}function r(e){return e.day===(0,x.endOfMonth)(e).day}function i(e){return cD(e,t.getDayConfig)}return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerGrid),{class:`w-full border-collapse select-none`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerGridHead),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerGridRow),{class:`flex py-xxs`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.weekDays,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerHeadCell),{key:e,class:`flex-1 py-xs text-center text-xs font-medium text-tertiary`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(e),1)]),_:2},1024))),128))]),_:1})]),_:1}),(0,f.createVNode)((0,f.unref)(h.DateRangePickerGridBody),null,{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.month.rows,(e,a)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerGridRow),{key:a,class:`flex py-xxs`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerCell),{key:e.toString(),date:e,class:`group/cell relative flex-1 p-0 text-center text-xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerCellTrigger),{class:(0,f.normalizeClass)([{"rounded-r-full":r(e),"rounded-l-full":n(e)},`group/celtrig inline-flex h-9 w-full items-center justify-center text-xs outline-none group-first/cell:rounded-l-full group-last/cell:rounded-r-full data-disabled:pointer-events-none data-highlighted:bg-brand-secondary data-highlighted-end:rounded-r-full data-highlighted-end:bg-brand-secondary data-highlighted-start:rounded-l-full data-highlighted-start:bg-brand-secondary data-outside-view:pointer-events-none data-outside-view:invisible data-selected:bg-brand-secondary data-selection-end:rounded-r-full data-selection-end:bg-brand-secondary data-selection-start:rounded-l-full data-selection-start:bg-brand-secondary data-unavailable:pointer-events-none dark:data-highlighted:bg-brand-secondary/20 dark:data-highlighted-end:bg-brand-secondary/20 dark:data-highlighted-start:bg-brand-secondary/20 dark:data-selected:bg-brand-secondary/20 dark:data-selection-end:bg-brand-secondary/20 dark:data-selection-start:bg-brand-secondary/20 [&[data-selection-end][data-highlighted-start]:not([data-highlighted-end])]:rounded-r-none [&[data-selection-start][data-highlighted-end]:not([data-highlighted-start])]:rounded-l-none`]),day:e,month:t.month.value},{default:(0,f.withCtx)(({today:t})=>[(0,f.createElementVNode)(`div`,OD,[(0,f.createTextVNode)((0,f.toDisplayString)(e.day)+` `,1),t?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,kD)):i(e)?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{key:1,class:(0,f.normalizeClass)([i(e),`absolute bottom-1 left-1/2 size-1 -translate-x-1/2 group-data-highlighted-end/celtrig:bg-white group-data-highlighted-start/celtrig:bg-white group-data-selection-end/celtrig:bg-white group-data-selection-start/celtrig:bg-white`])},null,2)):(0,f.createCommentVNode)(``,!0)])]),_:2},1032,[`class`,`day`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1024))),128))]),_:1})]),_:1}))}}),jD={class:`flex items-center p-xl pb-0`},MD={key:1,class:`size-9 shrink-0`},ND={class:`flex flex-1 items-center justify-center gap-xs`},PD={key:3,class:`size-9 shrink-0`},FD=(0,f.defineComponent)({__name:`DateRangeFieldCalendarHeader`,props:{hasNext:{type:Boolean},showNext:{type:Boolean,default:void 0},side:{}},setup(e){let t=e,n=(0,g.useI18n)(),{placeholder:r,setPlaceholder:i}=ED(),a=(0,f.computed)(()=>t.side===`left`?r.value:r.value.add({months:1}));function o(e){i(t.side===`left`?e:e.subtract({months:1}))}return(e,r)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,jD,[t.side===`left`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerPrev),{key:0,"as-child":!0},{default:(0,f.withCtx)(({disabled:e})=>[(0,f.createVNode)(X,{"is-disabled":e,icon:(0,f.unref)(ln),label:(0,f.unref)(n).t(`component.date_range_picker.previous_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,MD)),(0,f.createElementVNode)(`div`,ND,[(0,f.createVNode)(mD,{placeholder:a.value,"onUpdate:placeholder":o},null,8,[`placeholder`]),(0,f.createVNode)(gD,{placeholder:a.value,"onUpdate:placeholder":o},null,8,[`placeholder`])]),t.side===`right`||t.hasNext||t.showNext?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerNext),{key:2,"as-child":!0},{default:(0,f.withCtx)(({disabled:e})=>[(0,f.createVNode)(X,{"is-disabled":e,icon:(0,f.unref)(pn),label:(0,f.unref)(n).t(`component.date_range_picker.next_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,PD))]))}}),ID={class:`flex items-center`},LD=(0,f.defineComponent)({__name:`DateRangeFieldInvalidIndicator`,props:{isVisible:{type:Boolean}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[t.isVisible?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,filter:`blur(4px)`},animate:{opacity:1,filter:`blur(0)`},exit:{opacity:0,filter:`blur(4px)`},transition:{duration:.3,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(W,{label:(0,f.unref)(n).t(`component.date_range_picker.invalid_range`)},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,ID,[(0,f.createVNode)((0,f.unref)(Et),{class:`size-4 text-error-primary`})])]),_:1},8,[`label`])]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),RD={class:`flex flex-col gap-md border-t border-secondary p-xl md:flex-row md:items-center md:justify-between`},zD=(0,f.defineComponent)({__name:`DateRangeFieldInputRow`,setup(e){let t=(0,g.useI18n)(),{isInvalidRange:n,onCancel:r}=ED();return(e,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,RD,[(0,f.createVNode)((0,f.unref)(I),{class:`min-w-0 items-center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerField),{class:`flex h-7 min-w-0 flex-1 items-center gap-xxs rounded-sm border border-secondary bg-primary px-sm text-xs text-primary md:max-w-30 md:min-w-30 md:flex-none [&:has(:focus)]:border-fg-brand-primary [&:has(:focus)]:outline [&:has(:focus)]:outline-fg-brand-primary`},{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.start,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:`start-${e}`},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:1,part:e,class:`text-placeholder select-none`,type:`start`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:0,part:e,class:`rounded-sm px-xxs text-xs text-primary tabular-nums caret-transparent outline-none hover:bg-secondary-hover focus:bg-secondary-hover focus:text-primary data-placeholder:text-placeholder data-placeholder:focus:text-primary`,type:`start`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`]))],64))),128))]),_:1}),(0,f.createVNode)((0,f.unref)(pn),{class:`size-4 text-placeholder`}),(0,f.createVNode)((0,f.unref)(h.DateRangePickerField),{class:`flex h-7 min-w-0 flex-1 items-center gap-xxs rounded-sm border border-secondary bg-primary px-sm text-xs text-primary md:max-w-30 md:min-w-30 md:flex-none [&:has(:focus)]:border-fg-brand-primary [&:has(:focus)]:outline [&:has(:focus)]:outline-fg-brand-primary`},{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.end,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:`end-${e}`},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:1,part:e,class:`text-placeholder select-none`,type:`end`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:0,part:e,class:`rounded-sm px-xxs text-xs text-primary tabular-nums caret-transparent outline-none hover:bg-secondary-hover focus:bg-secondary-hover focus:text-primary data-placeholder:text-placeholder data-placeholder:focus:text-primary`,type:`end`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`]))],64))),128))]),_:1}),(0,f.createVNode)(LD,{"is-visible":(0,f.unref)(n)},null,8,[`is-visible`])]),_:1}),(0,f.createVNode)((0,f.unref)(I),{class:`self-end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Y),{label:(0,f.unref)(t).t(`component.date_range_picker.close`),size:`md`,variant:`secondary`,onClick:(0,f.unref)(r)},null,8,[`label`,`onClick`])]),_:1})]))}}),BD={class:`flex w-32 shrink-0 flex-col gap-xs border-r border-secondary p-lg`},VD=[`data-active`,`onClick`],HD=(0,f.defineComponent)({__name:`DateRangeFieldPresets`,setup(e){let t=(0,g.useI18n)(),{draftValue:n,setPreset:r}=ED(),i=(0,f.computed)(()=>{let e=S.Temporal.Now.plainDateISO(),n=e.dayOfWeek,r=e.subtract({days:n-1}),i=r.add({days:6}),a=r.subtract({days:7}),o=r.subtract({days:1}),s=e.with({day:1}),c=e.with({day:e.daysInMonth}),l=s.subtract({months:1}),u=s.subtract({days:1}),d=e.with({day:1,month:1}),f=e.with({day:31,month:12}),p=d.subtract({years:1}),m=d.subtract({days:1}),h=e.subtract({days:1}),g=e.add({days:1});return[{key:`today`,label:t.t(`component.date_range_picker.preset.today`),range:{from:e,until:e}},{key:`yesterday`,label:t.t(`component.date_range_picker.preset.yesterday`),range:{from:h,until:h}},{key:`tomorrow`,label:t.t(`component.date_range_picker.preset.tomorrow`),range:{from:g,until:g}},{key:`this_week`,label:t.t(`component.date_range_picker.preset.this_week`),range:{from:r,until:i}},{key:`last_week`,label:t.t(`component.date_range_picker.preset.last_week`),range:{from:a,until:o}},{key:`this_month`,label:t.t(`component.date_range_picker.preset.this_month`),range:{from:s,until:c}},{key:`last_month`,label:t.t(`component.date_range_picker.preset.last_month`),range:{from:l,until:u}},{key:`this_year`,label:t.t(`component.date_range_picker.preset.this_year`),range:{from:d,until:f}},{key:`last_year`,label:t.t(`component.date_range_picker.preset.last_year`),range:{from:p,until:m}},{key:`all_time`,label:t.t(`component.date_range_picker.preset.all_time`),range:null}]});function a(e){if(e.range===null)return n.value.start==null&&n.value.end==null;if(n.value.start==null||n.value.end==null)return!1;let t=n.value.start,r=n.value.end;return t.year===e.range.from.year&&t.month===e.range.from.month&&t.day===e.range.from.day&&r.year===e.range.until.year&&r.month===e.range.until.month&&r.day===e.range.until.day}return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,BD,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(i.value,e=>((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:e.key,"data-active":a(e),class:`flex w-full items-center rounded-sm px-lg py-xs text-left text-xs font-medium text-secondary transition-colors duration-100 outline-none hover:bg-secondary-hover focus-visible:ring-2 focus-visible:ring-fg-brand-primary data-[active=true]:bg-brand-secondary data-[active=true]:text-brand-secondary`,type:`button`,onClick:t=>(0,f.unref)(r)(e.range)},(0,f.toDisplayString)(e.label),9,VD))),128))]))}}),UD={class:`flex h-full`},WD={class:`flex min-w-0 flex-1 flex-col`},GD={class:`flex`},KD={class:`flex flex-1 flex-col`},qD={class:`p-xl pt-0`},JD={class:`flex flex-1 flex-col`},YD={class:`p-xl pt-0`},XD=(0,f.defineComponent)({inheritAttrs:!1,__name:`DateRangeField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({maxDate:{},minDate:{},isPickerHidden:{type:Boolean},getDayConfig:{type:Function},placeholder:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{}},{...ry,...iy,...ay,maxDate:null,minDate:null,isPickerHidden:!1,placeholder:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),r=(0,g.useI18n)(),i=t.id??(0,f.useId)(),a=(0,f.useAttrs)(),{isError:o,ariaDescribedBy:s,ariaInvalid:c}=ty(i,t),l=(0,f.ref)(!1),u=(0,f.computed)(()=>DD({isPickerHidden:t.isPickerHidden,size:t.size})),{isInvalidRange:d,isSingleMonth:p,calendarPlaceholder:m,draftValue:_,locale:v,maxDateValue:y,minDateValue:b,setPlaceholder:x,setPreset:S,syncDraftFromModel:C,onDraftValueUpdate:w}=wD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:n});(0,f.watch)(l,e=>{e&&C()});function T(){l.value=!1}return TD({isInvalidRange:d,draftValue:_,placeholder:m,setPlaceholder:x,setPreset:S,onCancel:T}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,f.normalizeClass)(t.class),style:(0,f.normalizeStyle)(t.style),for:(0,f.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-error-message-hidden":t.isErrorMessageHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerRoot),{id:(0,f.unref)(i),open:l.value,"onUpdate:open":n[0]||=e=>l.value=e,placeholder:(0,f.unref)(m),"onUpdate:placeholder":n[1]||=e=>(0,f.isRef)(m)?m.value=e:null,"model-value":(0,f.unref)(_),"week-starts-on":(0,f.unref)(xD)((0,f.unref)(v)),disabled:t.isDisabled,"max-value":(0,f.unref)(y),"min-value":(0,f.unref)(b),readonly:t.isReadonly,required:t.isRequired,locale:(0,f.unref)(v),"number-of-months":(0,f.unref)(p)?1:2,"close-on-select":!1,"onUpdate:modelValue":(0,f.unref)(w)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sy,{"is-disabled":t.isDisabled,"is-error":(0,f.unref)(o),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},(0,f.createSlots)({default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerField),(0,f.mergeProps)({id:(0,f.unref)(i)},(0,f.unref)(a),{"aria-describedby":(0,f.unref)(s),"aria-invalid":(0,f.unref)(c),"aria-required":t.isRequired||void 0,class:u.value.field()}),{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.start,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:`start-${e}`},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:1,part:e,class:(0,f.normalizeClass)(u.value.literal()),type:`start`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:0,part:e,class:(0,f.normalizeClass)(u.value.segment()),type:`start`,"data-field-wrapper":``},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`]))],64))),128)),(0,f.createVNode)((0,f.unref)(Rt),{class:(0,f.normalizeClass)(u.value.separator())},null,8,[`class`]),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.end,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:`end-${e}`},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:1,part:e,class:(0,f.normalizeClass)(u.value.literal()),type:`end`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:0,part:e,class:(0,f.normalizeClass)(u.value.segment()),type:`end`,"data-field-wrapper":``},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`]))],64))),128))]),_:1},16,[`id`,`aria-describedby`,`aria-invalid`,`aria-required`,`class`])]),_:2},[t.isPickerHidden?void 0:{name:`right`,fn:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{"is-disabled":t.isDisabled||t.isReadonly,"is-tooltip-disabled":!0,icon:(0,f.unref)(Xt),label:(0,f.unref)(r).t(`component.date_range_picker.open`),size:`xs`,type:`button`,variant:`tertiary`,class:`mr-xs`,"data-field-wrapper":``},null,8,[`is-disabled`,`icon`,`label`])]),_:1})]),key:`0`}]),1032,[`is-disabled`,`is-error`,`is-loading`,`is-readonly`,`size`]),(0,f.createVNode)(ei,{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerContent),{"side-offset":8,"collision-padding":10,"data-animation":`popover-default`,class:`z-50 origin-(--reka-popover-content-transform-origin) will-change-[transform,opacity]`,align:`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerCalendar),{"fixed-weeks":!0,class:`flex flex-col gap-lg overflow-hidden rounded-2xl border border-secondary bg-primary shadow-lg`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:r})=>[(0,f.createElementVNode)(`div`,UD,[(0,f.createVNode)(HD),(0,f.createElementVNode)(`div`,WD,[(0,f.createElementVNode)(`div`,GD,[(0,f.createElementVNode)(`div`,KD,[(0,f.createVNode)(FD,{"has-next":(0,f.unref)(p),side:`left`},null,8,[`has-next`]),(0,f.createElementVNode)(`div`,qD,[(0,f.createVNode)(AD,{"get-day-config":t.getDayConfig,month:r[0],"week-days":e},null,8,[`get-day-config`,`month`,`week-days`])])]),(0,f.unref)(p)?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[n[2]||=(0,f.createElementVNode)(`div`,{class:`border-l border-secondary`},null,-1),(0,f.createElementVNode)(`div`,JD,[(0,f.createVNode)(FD,{side:`right`}),(0,f.createElementVNode)(`div`,YD,[(0,f.createVNode)(AD,{"get-day-config":t.getDayConfig,month:r[1],"week-days":e},null,8,[`get-day-config`,`month`,`week-days`])])])],64))]),(0,f.createVNode)(zD)])])]),_:1})]),_:1})]),_:1})]),_:1},8,[`id`,`open`,`placeholder`,`model-value`,`week-starts-on`,`disabled`,`max-value`,`min-value`,`readonly`,`required`,`locale`,`number-of-months`,`onUpdate:modelValue`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`]))}}),ZD={class:`flex h-full`},QD={class:`flex min-w-0 flex-1 flex-col`},$D={class:`flex`},eO={class:`flex flex-1 flex-col`},tO={class:`p-xl pt-0`},nO={class:`flex flex-1 flex-col`},rO={class:`p-xl pt-0`},iO=(0,f.defineComponent)({inheritAttrs:!1,__name:`DateRangePicker`,props:(0,f.mergeModels)({maxDate:{default:null},minDate:{default:null},hasPresets:{type:Boolean,default:!0},getDayConfig:{},showPresets:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),{isInvalidRange:r,isSingleMonth:i,calendarPlaceholder:a,draftValue:o,locale:s,maxDateValue:c,minDateValue:l,setPlaceholder:u,setPreset:d,onDraftValueUpdate:p}=wD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:n}),m=(0,f.computed)(()=>t.hasPresets||t.showPresets===!0);return TD({isInvalidRange:r,draftValue:o,placeholder:a,setPlaceholder:u,setPreset:d,onCancel:()=>{}}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(ei,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerRoot),{modelValue:(0,f.unref)(o),"onUpdate:modelValue":[n[0]||=e=>(0,f.isRef)(o)?o.value=e:null,(0,f.unref)(p)],placeholder:(0,f.unref)(a),"onUpdate:placeholder":n[1]||=e=>(0,f.isRef)(a)?a.value=e:null,"week-starts-on":(0,f.unref)(xD)((0,f.unref)(s)),"max-value":(0,f.unref)(c),"min-value":(0,f.unref)(l),locale:(0,f.unref)(s),"number-of-months":(0,f.unref)(i)?1:2,"close-on-select":!1},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerCalendar),{"fixed-weeks":!0,class:`flex flex-col gap-lg overflow-hidden bg-primary`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:r})=>[(0,f.createElementVNode)(`div`,ZD,[m.value?((0,f.openBlock)(),(0,f.createBlock)(HD,{key:0})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,QD,[(0,f.createElementVNode)(`div`,$D,[(0,f.createElementVNode)(`div`,eO,[(0,f.createVNode)(FD,{"has-next":(0,f.unref)(i),side:`left`},null,8,[`has-next`]),(0,f.createElementVNode)(`div`,tO,[(0,f.createVNode)(AD,{"get-day-config":t.getDayConfig,month:r[0],"week-days":e},null,8,[`get-day-config`,`month`,`week-days`])])]),(0,f.unref)(i)?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[n[2]||=(0,f.createElementVNode)(`div`,{class:`border-l border-secondary`},null,-1),(0,f.createElementVNode)(`div`,nO,[(0,f.createVNode)(FD,{side:`right`}),(0,f.createElementVNode)(`div`,rO,[(0,f.createVNode)(AD,{"get-day-config":t.getDayConfig,month:r[1],"week-days":e},null,8,[`get-day-config`,`month`,`week-days`])])])],64))])])])]),_:1})]),_:1},8,[`modelValue`,`placeholder`,`week-starts-on`,`max-value`,`min-value`,`locale`,`number-of-months`,`onUpdate:modelValue`])]),_:1}))}}),aO=[`datetime`],oO=(0,f.defineComponent)({__name:`DateTime`,props:{value:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`time`,{datetime:t.value},[(0,f.renderSlot)(e.$slots,`default`)],8,aO))}}),sO=(0,f.defineComponent)({__name:`DetailList`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{gap:`2xl`,class:`w-full`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),cO={},lO={"aria-hidden":`true`,width:`100%`,height:`100%`,viewBox:`0 0 16 16`,fill:`currentColor`,role:`img`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`};function uO(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,lO,[...t[0]||=[(0,f.createElementVNode)(`path`,{d:`M7.00194 10.6239C6.66861 10.8183 6.25 10.5779 6.25 10.192V5.80802C6.25 5.42212 6.66861 5.18169 7.00194 5.37613L10.7596 7.56811C11.0904 7.76105 11.0904 8.23895 10.7596 8.43189L7.00194 10.6239Z`},null,-1)]])}var dO=H(cO,[[`render`,uO]]),fO=(0,f.defineComponent)({__name:`DetailListGroupHeaderCollapseInfo`,props:{isVisible:{type:Boolean},badge:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[t.isVisible&&t.badge!==null?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,width:0,marginLeft:`0rem`},animate:{opacity:1,width:`auto`,marginLeft:`0.4rem`},exit:{opacity:0,width:0,marginLeft:`0rem`},transition:{duration:.15},class:`flex`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_y),(0,f.mergeProps)(t.badge,{size:`sm`,variant:`outline`,class:`shrink-0`}),null,16)]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),pO={class:`opacity-0 duration-100 group-hover/detail-list-group:opacity-100 focus-visible:opacity-100 has-focus-visible:opacity-100 pointer-coarse:opacity-100`},mO=(0,f.defineComponent)({__name:`DetailListGroupHeader`,props:{isOpen:{type:Boolean},collapseOptions:{},label:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{justify:`between`,class:`w-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.CollapsibleTrigger),{disabled:!t.collapseOptions.isCollapsible,class:`group/trigger -ml-sm flex h-6.5 max-w-full items-center overflow-hidden px-sm py-xs duration-100 not-disabled:hover:bg-tertiary disabled:cursor-default!`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{gap:`none`,class:`w-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:`text-xs font-medium text-primary`},null,8,[`text`]),t.collapseOptions.isCollapsible&&t.collapseOptions.badge!=null?((0,f.openBlock)(),(0,f.createBlock)(fO,{key:0,badge:t.collapseOptions.badge,"is-visible":!t.isOpen},null,8,[`badge`,`is-visible`])):(0,f.createCommentVNode)(``,!0)]),_:1}),t.collapseOptions.isCollapsible?((0,f.openBlock)(),(0,f.createBlock)(dO,{key:0,class:`size-4 shrink-0 text-disabled opacity-0 duration-200 group-hover/detail-list-group:text-secondary group-hover/detail-list-group:opacity-100 group-has-focus-visible/detail-list-group:opacity-100 group-data-[state=closed]/trigger:opacity-100 group-data-[state=open]/trigger:rotate-90 pointer-coarse:opacity-100`})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`disabled`])]),_:1}),(0,f.createElementVNode)(`div`,pO,[(0,f.renderSlot)(e.$slots,`actions`)])]),_:3}))}}),hO=(0,f.defineComponent)({__name:`DetailListGroup`,props:(0,f.mergeModels)({collapseOptions:{},label:{default:null}},{modelValue:{type:Boolean,default:void 0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n={isCollapsible:!1,isOpenByDefault:!1},r=(0,f.useModel)(e,`modelValue`),i=(0,f.computed)(()=>({...n,...t.collapseOptions}));r.value===void 0&&(r.value=i.value.isOpenByDefault);let a=(0,f.computed)({get:()=>i.value.isCollapsible?r.value:!0,set:e=>{i.value.isCollapsible&&(r.value=e)}});return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.CollapsibleRoot),{open:a.value,"onUpdate:open":n[0]||=e=>a.value=e,"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(G),{gap:`none`,class:`group/detail-list-group @container/detail-list w-full`},{default:(0,f.withCtx)(()=>[t.label===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(mO,{key:0,label:t.label,"is-open":a.value,"collapse-options":i.value},{actions:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`actions`)]),_:3},8,[`label`,`is-open`,`collapse-options`])),(0,f.createVNode)((0,f.unref)(h.CollapsibleContent),{class:`w-full origin-top-left overflow-hidden data-[state=closed]:animate-[collapsible-up_150ms] data-[state=open]:animate-[collapsible-down_150ms]`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(G),{class:(0,f.normalizeClass)({"pt-xl":t.label!==null}),gap:`lg`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])]),_:3})]),_:3})]),_:3},8,[`open`]))}}),gO=(0,f.defineComponent)({__name:`DetailListGroupItem`,props:{orientation:{default:`horizontal`}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)([{"flex-col items-start @[15rem]:flex-row":t.orientation===`horizontal`,"flex-col":t.orientation===`vertical`},`flex gap-xs`])},[(0,f.renderSlot)(e.$slots,`default`)],2))}}),_O={key:0,class:`flex aspect-square h-text-xs items-center`},vO=(0,f.defineComponent)({__name:`DetailListGroupItemLabel`,props:{avatar:{default:null},icon:{default:null},label:{},variant:{default:`default`}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{gap:`xxs`,class:`w-28 shrink-0`},{default:(0,f.withCtx)(()=>[t.icon!==null||t.avatar!==null?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,_O,[t.avatar===null?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{key:1,class:(0,f.normalizeClass)([{"text-disabled":t.variant==="default","text-warning-primary":t.variant===`warning`,"text-error-primary":t.variant===`error`},`size-3.5`])},null,8,[`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_o),{key:0,name:t.avatar.name,src:t.avatar.src,"is-static-color":t.avatar.isStaticColor,size:`xxs`},null,8,[`name`,`src`,`is-static-color`]))])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:(0,f.normalizeClass)([{"text-tertiary":t.variant==="default","text-warning-primary":t.variant===`warning`,"text-error-primary":t.variant===`error`},`text-xs`])},null,8,[`text`,`class`])]),_:1}))}}),yO=(0,f.defineComponent)({__name:`DetailListGroupItemValueBadge`,props:{isDisabled:{type:Boolean},actions:{},ariaLabel:{},avatar:{},color:{},dot:{},icon:{},iconColor:{},label:{},left:{},metadata:{},models:{},rounded:{},variant:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_y),(0,f.mergeProps)(t,{size:`sm`}),null,16))}}),bO={key:0,class:`flex aspect-square h-text-xs items-center`},xO=(0,f.defineComponent)({__name:`DetailListGroupItemValueText`,props:{avatar:{default:null},icon:{default:null},text:{},variant:{default:`default`}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{gap:`xxs`,align:`start`},{default:(0,f.withCtx)(()=>[t.icon!==null||t.avatar!==null?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,bO,[t.avatar===null?t.icon===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{key:1,class:(0,f.normalizeClass)([{"text-disabled":t.variant==="default","text-warning-primary":t.variant===`warning`,"text-error-primary":t.variant===`error`},`size-3.5`])},null,8,[`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_o),(0,f.mergeProps)({key:0},t.avatar,{size:`xxs`}),null,16))])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(U),{truncate:!1,text:t.text,class:(0,f.normalizeClass)([{"text-primary":t.variant==="default","text-warning-primary":t.variant===`warning`,"text-error-primary":t.variant===`error`},`text-xs`])},null,8,[`text`,`class`])]),_:1}))}}),SO=(0,f.defineComponent)({__name:`DetailListGroupSeparator`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)($o)))}}),CO={key:2},wO=(0,f.defineComponent)({__name:`EmptyStateAction`,props:{action:{},variant:{default:`primary`}},setup(e){let t=e;return(e,n)=>t.action.type===`button`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Y),(0,f.mergeProps)({key:0},t.action,{variant:t.variant,onClick:t.action.onClick}),null,16,[`variant`,`onClick`])):t.action.type===`link`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(tv),(0,f.mergeProps)({key:1},t.action,{variant:t.variant}),null,16,[`variant`])):t.action.type===`Action`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,CO)):(0,f.createCommentVNode)(``,!0)}}),TO={width:`152`,height:`133`,viewBox:`0 0 152 133`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},EO=[`filter`],DO=[`fill`],OO={x:`48`,y:`68.0915`,width:`56`,height:`56`},kO=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationBox`,setup(e){let t=(0,f.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-c`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,TO,[t[8]||=(0,f.createStaticVNode)(`<circle cx="76" cy="59.0915" r="52" fill="#EEF2F6"></circle><circle cx="21" cy="26.0915" r="5" fill="#EEF2F6"></circle><circle cx="18" cy="110.091" r="7" fill="#EEF2F6"></circle><circle cx="145" cy="42.0915" r="7" fill="#EEF2F6"></circle><circle cx="134" cy="15.0915" r="4" fill="#EEF2F6"></circle>`,5),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[t[0]||=(0,f.createElementVNode)(`path`,{d:`M76.0006 91.2813L118 72.6227V19.4665L76.3298 1.09149L34 19.4665V72.6227L76.0006 91.2813Z`,fill:`#F8FAFC`},null,-1),t[1]||=(0,f.createElementVNode)(`path`,{d:`M118.5 72.9479L118.203 73.0798L76.2031 91.738L76.001 91.8288L75.7979 91.738L33.7969 73.0798L33.5 72.9479V19.1384L33.8008 19.0075L76.1309 0.632507L76.3311 0.545593L76.5312 0.63446L118.202 19.0095L118.5 19.1403V72.9479Z`,stroke:`black`,"stroke-opacity":`0.08`},null,-1),t[2]||=(0,f.createElementVNode)(`path`,{d:`M76 37.1544V91.3259L34 72.6227V19.4665L76 37.1544Z`,fill:`#E3E8EF`},null,-1),(0,f.createElementVNode)(`path`,{fill:`url(#${r})`,d:`M76.0008 37.1852V91.3259L118 72.6227V19.4665L76.0008 37.1852Z`},null,8,DO),t[3]||=(0,f.createElementVNode)(`path`,{d:`M76 37.1852L118 19.4665L76.3298 1.09149L34 19.4665L76 37.1852Z`,fill:`#F8FAFC`},null,-1),t[4]||=(0,f.createElementVNode)(`path`,{d:`M50.0781 12.4858L91.6722 30.5901L92.0523 43.8613L103.759 39.031L103.405 25.6761L60.4847 7.97345L50.0781 12.4858Z`,fill:`#E3E8EF`},null,-1)],8,EO),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,OO,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${i});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),t[9]||=(0,f.createElementVNode)(`g`,null,[(0,f.createElementVNode)(`path`,{d:`M56 96.0915C56 85.0458 64.9543 76.0915 76 76.0915C87.0457 76.0915 96 85.0458 96 96.0915C96 107.137 87.0457 116.091 76 116.091C64.9543 116.091 56 107.137 56 96.0915Z`,fill:`black`,"fill-opacity":`0.2`}),(0,f.createElementVNode)(`path`,{d:`M72.6667 99.4248L76 96.0915M76 96.0915L79.3333 99.4248M76 96.0915V103.591M82.6667 100.044C83.6846 99.2032 84.3333 97.9314 84.3333 96.5082C84.3333 93.9769 82.2813 91.9248 79.75 91.9248C79.5679 91.9248 79.3976 91.8298 79.3051 91.6729C78.2184 89.8289 76.212 88.5915 73.9167 88.5915C70.4649 88.5915 67.6667 91.3897 67.6667 94.8415C67.6667 96.5632 68.3629 98.1224 69.4891 99.2528`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`13`,y:`0`,width:`126`,height:`132.376`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[5]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:i,transform:`translate(-48 -68.0915)`},[...t[6]||=[(0,f.createElementVNode)(`path`,{d:`M56 96.0915C56 85.0458 64.9543 76.0915 76 76.0915C87.0457 76.0915 96 85.0458 96 96.0915C96 107.137 87.0457 116.091 76 116.091C64.9543 116.091 56 107.137 56 96.0915Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:r,x1:`97`,y1:`19.4665`,x2:`128.011`,y2:`74.0281`,gradientUnits:`userSpaceOnUse`},[...t[7]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#E3E8EF`},null,-1)]])])]))}}),AO={width:`154`,height:`121`,viewBox:`0 0 154 121`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},jO=[`filter`],MO=[`fill`],NO=[`fill`],PO=[`fill`],FO={x:`49`,y:`58`,width:`56`,height:`56`},IO=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationCloudSearch`,setup(e){let t=(0,f.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-p1`,a=`${t}-p2`,o=`${t}-c`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,AO,[t[7]||=(0,f.createElementVNode)(`circle`,{cx:`77`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[t[0]||=(0,f.createElementVNode)(`path`,{d:`M78.6 16C67.8273 16 58.2978 21.3233 52.4987 29.4829C50.605 29.0363 48.6301 28.8 46.6 28.8C32.4615 28.8 21 40.2615 21 54.4C21 68.5385 32.4615 80 46.6 80L110.6 80C122.971 80 133 69.9712 133 57.6C133 45.2288 122.971 35.2 110.6 35.2C109.721 35.2 108.854 35.2506 108.002 35.349C103.098 23.9677 91.7797 16 78.6 16Z`,fill:`#F8FAFC`},null,-1),t[1]||=(0,f.createElementVNode)(`path`,{d:`M78.5996 15.5C91.8552 15.5 103.255 23.4366 108.312 34.8145C109.064 34.7397 109.827 34.7002 110.6 34.7002C123.247 34.7002 133.5 44.9525 133.5 57.5996C133.5 70.0492 123.565 80.1785 111.191 80.4922L110.6 80.5H46.5996C32.1853 80.4998 20.5002 68.8147 20.5 54.4004C20.5 39.9859 32.1852 28.3 46.5996 28.2998C48.5525 28.2998 50.4558 28.5168 52.2871 28.9238C58.1932 20.7911 67.7778 15.5001 78.5996 15.5Z`,stroke:`black`,"stroke-opacity":`0.08`},null,-1),(0,f.createElementVNode)(`ellipse`,{fill:`url(#${r})`,cx:`46.6`,cy:`54.4`,rx:`25.6`,ry:`25.6`},null,8,MO),(0,f.createElementVNode)(`circle`,{fill:`url(#${i})`,cx:`78.6`,cy:`48`,r:`32`},null,8,NO),(0,f.createElementVNode)(`ellipse`,{fill:`url(#${a})`,cx:`110.6`,cy:`57.6`,rx:`22.4`,ry:`22.4`},null,8,PO)],8,jO),t[8]||=(0,f.createElementVNode)(`circle`,{cx:`22`,cy:`19`,r:`5`,fill:`#EEF2F6`},null,-1),t[9]||=(0,f.createElementVNode)(`circle`,{cx:`19`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[10]||=(0,f.createElementVNode)(`circle`,{cx:`146`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[11]||=(0,f.createElementVNode)(`circle`,{cx:`135`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,FO,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${o});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),t[12]||=(0,f.createElementVNode)(`g`,null,[(0,f.createElementVNode)(`path`,{d:`M57 86C57 74.9543 65.9543 66 77 66C88.0457 66 97 74.9543 97 86C97 97.0457 88.0457 106 77 106C65.9543 106 57 97.0457 57 86Z`,fill:`black`,"fill-opacity":`0.2`}),(0,f.createElementVNode)(`path`,{d:`M84.5 93.5L81.5834 90.5833M83.6667 85.5833C83.6667 89.4954 80.4954 92.6667 76.5833 92.6667C72.6713 92.6667 69.5 89.4954 69.5 85.5833C69.5 81.6713 72.6713 78.5 76.5833 78.5C80.4954 78.5 83.6667 81.6713 83.6667 85.5833Z`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`0`,y:`15`,width:`154`,height:`106`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[2]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1182_1994"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1182_1994"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow_1182_1994"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow_1182_1994" result="effect2_dropShadow_1182_1994"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow_1182_1994"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow_1182_1994" result="effect3_dropShadow_1182_1994"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow_1182_1994" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:o,transform:`translate(-49 -58)`},[...t[3]||=[(0,f.createElementVNode)(`path`,{d:`M57 86C57 74.9543 65.9543 66 77 66C88.0457 66 97 74.9543 97 86C97 97.0457 88.0457 106 77 106C65.9543 106 57 97.0457 57 86Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:r,x1:`26.9429`,y1:`37.4857`,x2:`72.2`,y2:`79.9999`,gradientUnits:`userSpaceOnUse`},[...t[4]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:i,x1:`54.0286`,y1:`26.8571`,x2:`110.6`,y2:`80`,gradientUnits:`userSpaceOnUse`},[...t[5]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:a,x1:`93.4`,y1:`42.8`,x2:`133`,y2:`80`,gradientUnits:`userSpaceOnUse`},[...t[6]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]])])]))}}),LO={width:`156`,height:`125`,viewBox:`0 0 156 125`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},RO=[`filter`],zO=[`fill`],BO={x:`50.5`,y:`62`,width:`56`,height:`56`},VO=[`clip-path`],HO=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationCreditCard`,setup(e){let t=(0,f.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-c`,a=`${t}-c1`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,LO,[t[7]||=(0,f.createElementVNode)(`circle`,{cx:`78.5`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${r})`,d:`M20.5 18C20.5 14.6863 23.1863 12 26.5 12H129.5C132.814 12 135.5 14.6863 135.5 18V78C135.5 81.3137 132.814 84 129.5 84H26.5C23.1863 84 20.5 81.3137 20.5 78V18Z`},null,8,zO),t[0]||=(0,f.createStaticVNode)(`<path d="M129.5 11.75C132.952 11.75 135.75 14.5482 135.75 18V78C135.75 81.4518 132.952 84.25 129.5 84.25H26.5C23.0482 84.25 20.25 81.4518 20.25 78V18C20.25 14.5482 23.0482 11.75 26.5 11.75H129.5Z" stroke="black" stroke-opacity="0.08" stroke-width="0.5"></path><path d="M30.5 28C30.5 26.8954 31.3954 26 32.5 26H48.5C49.6046 26 50.5 26.8954 50.5 28V39C50.5 40.1046 49.6046 41 48.5 41H32.5C31.3954 41 30.5 40.1046 30.5 39V28Z" fill="#E3E8EF"></path><circle cx="117.167" cy="32.3335" r="8.33333" fill="#CDD5DF"></circle><circle cx="107.167" cy="32.3333" r="8.33333" fill="#E3E8EF"></circle><path d="M30.5 73.6667C30.5 72.7462 31.2462 72 32.1667 72H48.8333C49.7538 72 50.5 72.7462 50.5 73.6667C50.5 74.5871 49.7538 75.3333 48.8333 75.3333H32.1667C31.2462 75.3333 30.5 74.5871 30.5 73.6667Z" fill="#CDD5DF"></path><path d="M55.5 73.6667C55.5 72.7462 56.2462 72 57.1667 72H73.8333C74.7538 72 75.5 72.7462 75.5 73.6667C75.5 74.5871 74.7538 75.3333 73.8333 75.3333H57.1667C56.2462 75.3333 55.5 74.5871 55.5 73.6667Z" fill="#CDD5DF"></path><path d="M80.5 73.6667C80.5 72.7462 81.2462 72 82.1667 72H98.8333C99.7538 72 100.5 72.7462 100.5 73.6667C100.5 74.5871 99.7538 75.3333 98.8333 75.3333H82.1667C81.2462 75.3333 80.5 74.5871 80.5 73.6667Z" fill="#CDD5DF"></path><path d="M105.5 73.6667C105.5 72.7462 106.246 72 107.167 72H123.833C124.754 72 125.5 72.7462 125.5 73.6667C125.5 74.5871 124.754 75.3333 123.833 75.3333H107.167C106.246 75.3333 105.5 74.5871 105.5 73.6667Z" fill="#CDD5DF"></path>`,8)],8,RO),t[8]||=(0,f.createElementVNode)(`circle`,{cx:`23.5`,cy:`5`,r:`5`,fill:`#EEF2F6`},null,-1),t[9]||=(0,f.createElementVNode)(`circle`,{cx:`20.5`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[10]||=(0,f.createElementVNode)(`circle`,{cx:`147.5`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[11]||=(0,f.createElementVNode)(`circle`,{cx:`136.5`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,BO,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${i});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),(0,f.createElementVNode)(`g`,null,[t[2]||=(0,f.createElementVNode)(`path`,{d:`M58.5 90C58.5 78.9543 67.4543 70 78.5 70C89.5457 70 98.5 78.9543 98.5 90C98.5 101.046 89.5457 110 78.5 110C67.4543 110 58.5 101.046 58.5 90Z`,fill:`black`,"fill-opacity":`0.2`},null,-1),(0,f.createElementVNode)(`g`,{"clip-path":`url(#${a})`},[...t[1]||=[(0,f.createElementVNode)(`path`,{d:`M78.5 86.6666V90M78.5 93.3333H78.5083M86.8333 90C86.8333 94.6023 83.1024 98.3333 78.5 98.3333C73.8976 98.3333 70.1667 94.6023 70.1667 90C70.1667 85.3976 73.8976 81.6666 78.5 81.6666C83.1024 81.6666 86.8333 85.3976 86.8333 90Z`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]],8,VO)]),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`0`,y:`11.5`,width:`156`,height:`113`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[3]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:i,transform:`translate(-50.5 -62)`},[...t[4]||=[(0,f.createElementVNode)(`path`,{d:`M58.5 90C58.5 78.9543 67.4543 70 78.5 70C89.5457 70 98.5 78.9543 98.5 90C98.5 101.046 89.5457 110 78.5 110C67.4543 110 58.5 101.046 58.5 90Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:r,x1:`24.5049`,y1:`83.1477`,x2:`22.4135`,y2:`17.2505`,gradientUnits:`userSpaceOnUse`},[...t[5]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`clipPath`,{id:a},[...t[6]||=[(0,f.createElementVNode)(`rect`,{width:`20`,height:`20`,fill:`white`,transform:`translate(68.5 80)`},null,-1)]])])]))}}),UO={width:`161`,height:`120`,viewBox:`0 0 161 120`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},WO=[`filter`],GO=[`fill`],KO=[`filter`],qO=[`fill`],JO=[`filter`],YO=[`fill`],XO={x:`53.9647`,y:`62`,width:`56`,height:`56`},ZO=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationDocuments`,setup(e){let t=(0,f.useId)(),n=`${t}-f0`,r=`${t}-f1`,i=`${t}-f2`,a=`${t}-p0`,o=`${t}-p1`,s=`${t}-p2`,c=`${t}-c`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,UO,[t[13]||=(0,f.createElementVNode)(`circle`,{cx:`81.9647`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${a})`,d:`M47.6914 79.1102L80.9299 63.6108C82.5987 62.8326 83.3207 60.8489 82.5425 59.1801L62.9132 17.0849L49.6211 12.2469L22.4259 24.9282C20.7571 25.7064 20.0351 27.6901 20.8133 29.359L43.2607 77.4975C44.0389 79.1663 46.0225 79.8883 47.6914 79.1102Z`},null,8,GO),t[0]||=(0,f.createElementVNode)(`path`,{d:`M82.7692 59.0745C83.6056 60.8685 82.8295 63.0009 81.0357 63.8374L47.797 79.3368C46.0031 80.1733 43.8707 79.3971 43.0342 77.6033L20.5867 29.4646L20.5131 29.2952C19.7999 27.5384 20.5824 25.5121 22.3202 24.7017L49.6095 11.9765L63.096 16.8852L82.7692 59.0745Z`,stroke:`black`,"stroke-opacity":`0.08`,"stroke-width":`0.5`},null,-1),t[1]||=(0,f.createElementVNode)(`path`,{d:`M49.6216 12.2471L62.9137 17.085L53.8487 21.3121L49.6216 12.2471Z`,fill:`#E3E8EF`},null,-1)],8,WO),(0,f.createElementVNode)(`g`,{filter:`url(#${r})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${o})`,d:`M63.5809 67.7831H100.256C102.097 67.7831 103.59 66.2904 103.59 64.4491V18.0022L93.5874 8H63.5809C61.7395 8 60.2468 9.49271 60.2468 11.3341V64.4491C60.2468 66.2904 61.7395 67.7831 63.5809 67.7831Z`},null,8,qO),t[2]||=(0,f.createElementVNode)(`path`,{d:`M103.84 64.4492C103.839 66.4285 102.235 68.0332 100.256 68.0332H63.5808C61.6015 68.0332 59.9969 66.4285 59.9968 64.4492V11.334L60.0017 11.1494C60.0978 9.25583 61.6633 7.75004 63.5808 7.75H93.6911L103.84 17.8984V64.4492Z`,stroke:`black`,"stroke-opacity":`0.08`,"stroke-width":`0.5`},null,-1),t[3]||=(0,f.createElementVNode)(`path`,{d:`M93.5873 8L103.589 18.0022H93.5873V8Z`,fill:`#E3E8EF`},null,-1)],8,KO),(0,f.createElementVNode)(`g`,{filter:`url(#${i})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${s})`,d:`M82.4392 63.5909L115.678 79.0903C117.347 79.8685 119.33 79.1465 120.108 77.4777L139.738 35.3825L134.9 22.0903L107.705 9.40903C106.036 8.63085 104.052 9.35286 103.274 11.0217L80.8266 59.1602C80.0484 60.8291 80.7704 62.8128 82.4392 63.5909Z`},null,8,YO),t[4]||=(0,f.createElementVNode)(`path`,{d:`M120.335 77.5835C119.498 79.3773 117.366 80.1535 115.572 79.317L82.3335 63.8176C80.5396 62.981 79.7635 60.8486 80.6 59.0547L103.047 10.916L103.13 10.7507C104.017 9.0752 106.072 8.37211 107.81 9.18243L135.1 21.9076L140.008 35.3941L120.335 77.5835Z`,stroke:`black`,"stroke-opacity":`0.08`,"stroke-width":`0.5`},null,-1),t[5]||=(0,f.createElementVNode)(`path`,{d:`M134.9 22.0903L139.738 35.3825L130.673 31.1554L134.9 22.0903Z`,fill:`#E3E8EF`},null,-1)],8,JO),t[14]||=(0,f.createElementVNode)(`circle`,{cx:`26.9647`,cy:`11`,r:`5`,fill:`#EEF2F6`},null,-1),t[15]||=(0,f.createElementVNode)(`circle`,{cx:`23.9647`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[16]||=(0,f.createElementVNode)(`circle`,{cx:`150.965`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[17]||=(0,f.createElementVNode)(`circle`,{cx:`139.965`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,XO,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${c});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),t[18]||=(0,f.createElementVNode)(`g`,null,[(0,f.createElementVNode)(`path`,{d:`M61.9647 90C61.9647 78.9543 70.919 70 81.9647 70C93.0104 70 101.965 78.9543 101.965 90C101.965 101.046 93.0104 110 81.9647 110C70.919 110 61.9647 101.046 61.9647 90Z`,fill:`black`,"fill-opacity":`0.2`}),(0,f.createElementVNode)(`path`,{d:`M78.6314 93.3333L81.9647 90M81.9647 90L85.298 93.3333M81.9647 90V97.5M88.6314 93.9524C89.6493 93.1117 90.298 91.8399 90.298 90.4167C90.298 87.8854 88.246 85.8333 85.7147 85.8333C85.5326 85.8333 85.3623 85.7383 85.2698 85.5814C84.1831 83.7374 82.1767 82.5 79.8814 82.5C76.4296 82.5 73.6314 85.2982 73.6314 88.75C73.6314 90.4718 74.3276 92.0309 75.4538 93.1613`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`-0.595741`,y:`8.0199`,width:`104.547`,height:`112.499`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[6]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`filter`,{id:r,x:`39.7468`,y:`7.5`,width:`84.3428`,height:`100.783`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[7]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`filter`,{id:i,x:`59.4176`,y:`8`,width:`104.547`,height:`112.499`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[8]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:c,transform:`translate(-53.9647 -62)`},[...t[9]||=[(0,f.createElementVNode)(`path`,{d:`M61.9647 90C61.9647 78.9543 70.919 70 81.9647 70C93.0104 70 101.965 78.9543 101.965 90C101.965 101.046 93.0104 110 81.9647 110C70.919 110 61.9647 101.046 61.9647 90Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:a,x1:`45.7386`,y1:`79.2399`,x2:`19.2501`,y2:`31.4527`,gradientUnits:`userSpaceOnUse`},[...t[10]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:o,x1:`61.7562`,y1:`67.0755`,x2:`57.9453`,y2:`12.571`,gradientUnits:`userSpaceOnUse`},[...t[11]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:s,x1:`81.0846`,y1:`62.1785`,x2:`100.665`,y2:`11.17`,gradientUnits:`userSpaceOnUse`},[...t[12]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]])])]))}}),QO={width:`156`,height:`125`,viewBox:`0 0 156 125`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},$O=[`filter`],ek=[`fill`],tk=[`fill`],nk={x:`50.3462`,y:`62`,width:`56`,height:`56`},rk=[`clip-path`],ik=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationRouteCard`,setup(e){let t=(0,f.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-p1`,a=`${t}-c`,o=`${t}-c1`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,QO,[t[9]||=(0,f.createElementVNode)(`circle`,{cx:`78.3462`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${r})`,d:`M20.3462 16.1538C20.3462 13.8597 22.2059 12 24.5 12H131.115C133.409 12 135.269 13.8597 135.269 16.1538V79.8462C135.269 82.1403 133.409 84 131.115 84H24.5C22.2059 84 20.3462 82.1403 20.3462 79.8462V16.1538Z`},null,8,ek),t[0]||=(0,f.createElementVNode)(`path`,{d:`M131.116 11.8271C133.505 11.8273 135.442 13.7647 135.442 16.1543V79.8457C135.442 82.2353 133.505 84.1727 131.116 84.1729H24.5005C22.1108 84.1729 20.1733 82.2354 20.1733 79.8457V16.1543C20.1733 13.7646 22.1108 11.8271 24.5005 11.8271H131.116Z`,stroke:`black`,"stroke-opacity":`0.08`,"stroke-width":`0.346154`},null,-1),(0,f.createElementVNode)(`path`,{fill:`url(#${i})`,d:`M20.3462 16.1538C20.3462 13.8597 22.2059 12 24.5 12H131.115C133.409 12 135.269 13.8597 135.269 16.1538V28.6154H20.3462V16.1538Z`},null,8,tk),t[1]||=(0,f.createStaticVNode)(`<path d="M30.0385 34.8462C30.0385 34.0815 30.6584 33.4615 31.4231 33.4615H36.9615C37.7262 33.4615 38.3461 34.0815 38.3461 34.8462V40.3846C38.3461 41.1493 37.7262 41.7692 36.9615 41.7692H31.4231C30.6584 41.7692 30.0385 41.1493 30.0385 40.3846V34.8462Z" fill="#E3E8EF"></path><path d="M54.2692 47.3077C54.2692 46.543 54.8891 45.9231 55.6538 45.9231H61.1923C61.957 45.9231 62.5769 46.543 62.5769 47.3077V52.8462C62.5769 53.6109 61.957 54.2308 61.1923 54.2308H55.6538C54.8891 54.2308 54.2692 53.6109 54.2692 52.8462V47.3077Z" fill="#E3E8EF"></path><path d="M58.4231 57V62.1923" stroke="#E3E8EF" stroke-width="1.38462" stroke-linecap="round"></path><path d="M54.2692 66.6924C54.2692 65.9277 54.8891 65.3077 55.6538 65.3077H61.1923C61.957 65.3077 62.5769 65.9277 62.5769 66.6924V72.2308C62.5769 72.9955 61.957 73.6154 61.1923 73.6154H55.6538C54.8891 73.6154 54.2692 72.9955 54.2692 72.2308V66.6924Z" fill="#E3E8EF"></path><path d="M42.5 37.9051C42.5 36.9804 43.2497 36.2307 44.1744 36.2307L76.8346 36.2307C77.7593 36.2307 78.509 36.9804 78.509 37.9051C78.509 38.8299 77.7593 39.5796 76.8346 39.5796H44.1744C43.2497 39.5796 42.5 38.8299 42.5 37.9051Z" fill="#E3E8EF"></path><path d="M69.5 50.3667C69.5 49.4419 70.2497 48.6923 71.1744 48.6923L120.45 48.6923C121.375 48.6923 122.124 49.4419 122.124 50.3667C122.124 51.2914 121.375 52.0411 120.45 52.0411H71.1744C70.2497 52.0411 69.5 51.2914 69.5 50.3667Z" fill="#E3E8EF"></path><path d="M30.0948 50.3666C30.0948 49.4418 30.8445 48.6921 31.7692 48.6921L46.0179 48.6922C46.9426 48.6922 47.6923 49.4419 47.6923 50.3666C47.6923 51.2914 46.9426 52.0411 46.0179 52.0411L31.7692 52.041C30.8445 52.041 30.0948 51.2913 30.0948 50.3666Z" fill="#E3E8EF"></path><path d="M69.5 69.7513C69.5 68.8266 70.2497 68.0769 71.1744 68.0769L120.45 68.0769C121.375 68.0769 122.124 68.8266 122.124 69.7513C122.124 70.6761 121.375 71.4257 120.45 71.4257H71.1744C70.2497 71.4257 69.5 70.6761 69.5 69.7513Z" fill="#E3E8EF"></path><path d="M30.0868 21.2898C30.0868 20.365 30.8365 19.6154 31.7612 19.6154L64.4214 19.6154C65.3461 19.6154 66.0958 20.365 66.0958 21.2898C66.0958 22.2145 65.3461 22.9642 64.4214 22.9642H31.7612C30.8365 22.9642 30.0868 22.2145 30.0868 21.2898Z" fill="#CDD5DF"></path><path d="M104.518 21.2898C104.518 20.365 105.268 19.6154 106.192 19.6154L123.912 19.6154C124.836 19.6154 125.586 20.365 125.586 21.2898C125.586 22.2145 124.836 22.9642 123.912 22.9642H106.192C105.268 22.9642 104.518 22.2145 104.518 21.2898Z" fill="#CDD5DF"></path>`,10)],8,$O),t[10]||=(0,f.createElementVNode)(`circle`,{cx:`23.3462`,cy:`5`,r:`5`,fill:`#EEF2F6`},null,-1),t[11]||=(0,f.createElementVNode)(`circle`,{cx:`20.3462`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[12]||=(0,f.createElementVNode)(`circle`,{cx:`147.346`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[13]||=(0,f.createElementVNode)(`circle`,{cx:`136.346`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,nk,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${a});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),(0,f.createElementVNode)(`g`,null,[t[3]||=(0,f.createElementVNode)(`path`,{d:`M58.3462 90C58.3462 78.9543 67.3005 70 78.3462 70C89.3918 70 98.3462 78.9543 98.3462 90C98.3462 101.046 89.3918 110 78.3462 110C67.3005 110 58.3462 101.046 58.3462 90Z`,fill:`black`,"fill-opacity":`0.2`},null,-1),(0,f.createElementVNode)(`g`,{"clip-path":`url(#${o})`},[...t[2]||=[(0,f.createElementVNode)(`path`,{d:`M78.3462 86.6666V90M78.3462 93.3333H78.3545M86.6795 90C86.6795 94.6023 82.9485 98.3333 78.3462 98.3333C73.7438 98.3333 70.0128 94.6023 70.0128 90C70.0128 85.3976 73.7438 81.6666 78.3462 81.6666C82.9485 81.6666 86.6795 85.3976 86.6795 90Z`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]],8,rk)]),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`0`,y:`11.6538`,width:`155.615`,height:`112.692`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[4]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:a,transform:`translate(-50.3462 -62)`},[...t[5]||=[(0,f.createElementVNode)(`path`,{d:`M58.3462 90C58.3462 78.9543 67.3005 70 78.3462 70C89.3918 70 98.3462 78.9543 98.3462 90C98.3462 101.046 89.3918 110 78.3462 110C67.3005 110 58.3462 101.046 58.3462 90Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:r,x1:`24.3483`,y1:`83.1477`,x2:`22.2555`,y2:`17.2506`,gradientUnits:`userSpaceOnUse`},[...t[6]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:i,x1:`24.3483`,y1:`28.4187`,x2:`24.2368`,y2:`13.1972`,gradientUnits:`userSpaceOnUse`},[...t[7]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`clipPath`,{id:o},[...t[8]||=[(0,f.createElementVNode)(`rect`,{width:`20`,height:`20`,fill:`white`,transform:`translate(68.3462 80)`},null,-1)]])])]))}}),ak={key:1,class:`flex size-10 shrink-0 items-center justify-center rounded-lg border border-secondary`},ok=(0,f.defineComponent)({__name:`EmptyState`,props:{title:{},description:{default:null},icon:{default:null},illustration:{default:null},primaryAction:{default:null},secondaryAction:{default:null}},setup(e){let t=e,n={box:kO,"cloud-search":IO,"credit-card":HO,documents:ZO,"route-card":ik};return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{align:`center`,justify:`center`,gap:`2xl`},{default:(0,f.withCtx)(()=>[t.illustration===null?t.icon===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,ak,[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{class:`size-5 text-primary`}))])):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n[t.illustration]),{key:0})),(0,f.createVNode)((0,f.unref)(G),{gap:`xs`,align:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:t.title,class:`text-sm font-semibold text-secondary`},null,8,[`text`]),t.description===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:0,truncate:!1,text:t.description,class:`text-center text-xs text-tertiary`},null,8,[`text`]))]),_:1}),(0,f.createVNode)((0,f.unref)(I),null,{default:(0,f.withCtx)(()=>[t.secondaryAction===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(wO,{key:0,action:t.secondaryAction,variant:`secondary`},null,8,[`action`])),t.primaryAction===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(wO,{key:1,action:t.primaryAction},null,8,[`action`]))]),_:1})]),_:1}))}});function sk(e,t){switch(e){case`CONFIRM_UPLOAD_FAILED`:case`GET_FILE_INFO_FAILED`:case`UPLOAD_FAILED`:return t.uploadFailed;case`INVALID_MIME_TYPE`:return t.invalidType;case`PREPROCESSING_FAILED`:return t.preprocessingFailed;default:return e}}function ck(e){return e.startsWith(`image/`)}function lk(e){return Object.fromEntries(Object.entries(e).filter(([e])=>e===`name`||e===`onBlur`||e===`onFocus`||e.startsWith(`data-`)))}var uk={class:`text-sm font-medium text-brand-secondary`},dk=(0,f.defineComponent)({__name:`FormFileUploadDropzoneOverlay`,props:{isHoveringOverDropzone:{type:Boolean},isHoveringOverPage:{type:Boolean}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[t.isHoveringOverPage?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,class:(0,f.normalizeClass)([{"animate-pulse":!t.isHoveringOverDropzone},`pointer-events-none absolute inset-0 z-10 overflow-hidden rounded-xl border-[1.5px] border-dashed border-brand-500/50`]),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[t.isHoveringOverDropzone?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,scale:1.01},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.01},class:`absolute inset-0 flex items-center justify-center bg-brand-primary/90`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`p`,uk,(0,f.toDisplayString)((0,f.unref)(n).t(`component.form_file_upload.dropzone_overlay.title`)),1)]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`class`])):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),fk={class:`text-sm text-primary`},pk={class:`mt-xs text-xs text-tertiary`},mk=(0,f.defineComponent)({__name:`FormFileUploadEmptyState`,props:{id:{default:null},isHoveringOverDropzone:{type:Boolean},isMultiple:{type:Boolean},description:{},triggerAttrs:{default:void 0}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{opacity:0,scale:.98,filter:`blur(4px)`},animate:{opacity:1,scale:t.isHoveringOverDropzone?.995:1,filter:`blur(0px)`},exit:{opacity:0,scale:.98,filter:`blur(4px)`},class:`rounded-xl bg-secondary px-2xl py-xl`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`p`,fk,(0,f.toDisplayString)((0,f.unref)(n).t(`component.form_file_upload.empty_state.title`)),1),(0,f.createElementVNode)(`p`,pk,(0,f.toDisplayString)(t.description),1),(0,f.createVNode)((0,f.unref)(mT),null,{default:(0,f.withCtx)(({isDisabled:e})=>[(0,f.createVNode)((0,f.unref)(Y),(0,f.mergeProps)(t.triggerAttrs,{id:t.isMultiple?void 0:t.id??void 0,"icon-left":(0,f.unref)(jr),"is-disabled":e,label:(0,f.unref)(n).t(`component.form_file_upload.action.upload`),class:`mt-lg`,variant:`secondary`}),null,16,[`id`,`icon-left`,`is-disabled`,`label`])]),_:1})]),_:1},8,[`animate`]))}}),hk=(0,f.defineComponent)({__name:`FormFileUploadBlurhash`,props:{blurhash:{}},setup(e){let t=e,n=(0,f.ref)(null);function r(e,t){let{height:n,width:r}=t,i=nT(e,r,n),a=t.getContext(`2d`);if(a===null)return;let o=a.createImageData(r,n);o.data.set(i),a.putImageData(o,0,0)}function i(){n.value!==null&&r(t.blurhash,n.value)}return(0,f.onMounted)(()=>{i()}),(0,f.watch)(()=>t.blurhash,()=>{i()}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`canvas`,{ref_key:`canvasRef`,ref:n,width:`32`,height:`32`,class:`size-full`},null,512))}}),gk=[`src`,`alt`],_k=(0,f.defineComponent)({__name:`FormFileUploadImageDialog`,props:{isOpen:{type:Boolean,default:!1},fit:{},imageAlt:{},imageUrl:{}},emits:[`afterLeave`,`close`],setup(e){let t=e,n=(0,g.useI18n)();return(r,i)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Tv),{"is-open":e.isOpen,size:`lg`,"onUpdate:isOpen":i[0]||=e=>!e&&r.$emit(`close`),onAfterLeave:i[1]||=e=>r.$emit(`afterLeave`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Av),{description:t.imageAlt,"is-description-hidden":t.imageAlt.length===0,title:(0,f.unref)(n).t(`component.form_file_upload.preview.dialog_title`)},null,8,[`description`,`is-description-hidden`,`title`]),(0,f.createVNode)((0,f.unref)(SS),null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`img`,{src:t.imageUrl,alt:t.imageAlt,class:(0,f.normalizeClass)([{"object-contain":t.fit===`contain`,"object-cover":t.fit===`cover`},`mx-auto max-h-180 w-full rounded-lg`])},null,10,gk)]),_:1})]),_:1},8,[`is-open`]))}}),vk=[`id`],yk=[`aria-label`,`disabled`],bk=[`src`,`alt`],xk=(0,f.defineComponent)({__name:`FormFileUploadImage`,props:{isZoomEnabled:{type:Boolean,default:!1},alt:{},blurhash:{default:null},fit:{},src:{}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,f.useId)(),i=Cv().create(_k),a=(0,f.ref)(!0),o=(0,f.computed)(()=>n.t(`component.form_file_upload.preview.open_image`));function s(){a.value=!1}function c(){t.isZoomEnabled&&i.open({fit:t.fit,imageAlt:t.alt,imageUrl:t.src})}return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{id:(0,f.unref)(r),class:`relative isolate overflow-hidden`},[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[a.value&&t.blurhash!==null?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,exit:{opacity:0},transition:{duration:.2},class:`absolute inset-0 z-1`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(hk,{blurhash:t.blurhash},null,8,[`blurhash`])]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1}),(0,f.createElementVNode)(`button`,{class:(0,f.normalizeClass)([{"pointer-events-none cursor-default":!t.isZoomEnabled},`block size-full cursor-pointer outline-none`]),"aria-label":o.value,disabled:!t.isZoomEnabled,type:`button`,onClick:c},[(0,f.createElementVNode)(`img`,{src:t.src,alt:t.alt,class:(0,f.normalizeClass)([{"object-contain":t.fit===`contain`,"object-cover":t.fit===`cover`},`size-full`]),onLoad:s},null,42,bk)],10,yk)],8,vk))}}),Sk=(0,f.defineComponent)({__name:`FormFileUploadListItemActions`,setup(e){let t=(0,g.useI18n)(),{isDisabled:n}=Ow();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{class:`absolute right-0 h-full bg-linear-to-l from-secondary via-secondary via-80% px-lg opacity-0 duration-100 group-hover/form-file-upload-list-item:opacity-100 group-has-focus-visible/form-file-upload-list-item:opacity-100 pointer-coarse:opacity-100`,gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(fT),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(dr),"is-disabled":(0,f.unref)(n),label:(0,f.unref)(t).t(`component.form_file_upload.action.replace`),variant:`tertiary`,size:`sm`},null,8,[`icon`,`is-disabled`,`label`])]),_:1}),(0,f.createVNode)((0,f.unref)(dT),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(Dr),"is-disabled":(0,f.unref)(n),label:(0,f.unref)(t).t(`component.form_file_upload.action.delete`),variant:`tertiary`,size:`sm`},null,8,[`icon`,`is-disabled`,`label`])]),_:1})]),_:1}))}}),Ck={key:0,class:`flex h-4.5 items-start`},wk={class:`mt-sm h-1 w-40 overflow-hidden rounded-full bg-tertiary`},Tk=(0,f.defineComponent)({__name:`FormFileUploadListItemMetadata`,props:{item:{}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,f.computed)(()=>({invalidType:n.t(`component.form_file_upload.error.invalid_type`),preprocessingFailed:n.t(`component.form_file_upload.error.preprocessing_failed`),uploadFailed:n.t(`component.form_file_upload.error.upload_failed`)})),i=(0,f.computed)(()=>t.item.status===$.ERROR?sk(t.item.error,r.value):null);return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{gap:`none`,class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:t.item.name,class:`text-sm text-primary`},null,8,[`text`]),t.item.status===(0,f.unref)($).UPLOADING||t.item.status===(0,f.unref)($).PENDING?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,Ck,[(0,f.createElementVNode)(`div`,wk,[t.item.status===(0,f.unref)($).UPLOADING?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,style:(0,f.normalizeStyle)({width:`${t.item.progress}%`}),class:`h-full bg-quaternary duration-100`},null,4)):(0,f.createCommentVNode)(``,!0)])])):t.item.status===(0,f.unref)($).SUCCESS?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:1,text:t.item.mimeType,class:`text-xs text-tertiary`},null,8,[`text`])):t.item.status===(0,f.unref)($).ERROR?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:2,text:i.value??``,class:`text-xs text-error-primary`},null,8,[`text`])):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),Ek={key:0,class:`flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md`},Dk=(0,f.defineComponent)({__name:`FormFileUploadListItemPreview`,props:{item:{}},setup(e){let t=e,n=(0,f.computed)(()=>ck(t.item.mimeType)),r=(0,f.computed)(()=>t.item.status===$.SUCCESS?t.item.blurHash:null);return(e,i)=>t.item.url===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,Ek,[n.value?((0,f.openBlock)(),(0,f.createBlock)(xk,{key:0,src:t.item.url,"is-zoom-enabled":!0,blurhash:r.value,alt:t.item.name,fit:`cover`,class:`size-full`},null,8,[`src`,`blurhash`,`alt`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Kt),{key:1,class:`size-4.5 text-disabled`}))]))}}),Ok={class:`absolute right-0 flex h-full items-center bg-linear-to-l from-secondary via-secondary via-80% px-lg`},kk=(0,f.defineComponent)({__name:`FormFileUploadListItemSpinner`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,Ok,[(0,f.createVNode)((0,f.unref)(To),{class:`size-3.5 text-tertiary`})]))}}),Ak=(0,f.defineComponent)({__name:`FormFileUploadListItem`,props:{item:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(lT),{item:t.item},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{gap:`lg`,class:`group group/form-file-upload-list-item relative max-w-full overflow-hidden rounded-xl bg-secondary px-lg py-md`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Dk,{item:t.item},null,8,[`item`]),(0,f.createVNode)(Tk,{item:t.item},null,8,[`item`]),t.item.status===(0,f.unref)($).PENDING||t.item.status===(0,f.unref)($).UPLOADING?((0,f.openBlock)(),(0,f.createBlock)(kk,{key:0})):t.item.status===(0,f.unref)($).SUCCESS||t.item.status===(0,f.unref)($).ERROR?((0,f.openBlock)(),(0,f.createBlock)(Sk,{key:1})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`item`]))}}),jk=(0,f.defineComponent)({__name:`FormFileUploadList`,props:{items:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{opacity:0,transform:`scale(0.98)`},animate:{opacity:1,transform:`scale(1)`},exit:{opacity:0,transform:`scale(0.98)`},as:`ul`,class:`flex w-full flex-col gap-sm`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{initial:!1,mode:`popLayout`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.items,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:e.key,initial:{opacity:+(t===0),transform:t===0?`scale(1) translateY(0)`:`scale(0.99) translateY(-0.5rem)`},animate:{opacity:1,transform:`scale(1) translateY(0)`},exit:{opacity:0,transform:`scale(0.99) translateY(-0.5rem)`},layout:!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Ak,{item:e},null,8,[`item`])]),_:2},1032,[`initial`]))),128))]),_:1})]),_:1}))}}),Mk={class:`relative ml-auto size-4`},Nk={class:`relative`},Pk={class:`text-xs font-medium text-primary`},Fk={class:`max-w-full truncate text-xxs/4 text-tertiary`},Ik=(0,f.defineComponent)({inheritAttrs:!1,__name:`FormFileUpload`,props:(0,f.mergeModels)((0,f.mergeDefaults)({description:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},accept:{},isPublic:{type:Boolean},isValidFile:{type:[Function,null]},preprocess:{type:[Function,null]}},{...ry,...iy,isPublic:!1,isValidFile:null,preprocess:null}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),r=(0,f.useAttrs)(),i=(0,g.useI18n)(),a=t.id??(0,f.useId)(),o=Sw(),s=(0,f.computed)(()=>Array.isArray(n.value)),c=(0,f.computed)(()=>lk(r)),l=(0,f.computed)(()=>({invalidType:i.t(`component.form_file_upload.error.invalid_type`),preprocessingFailed:i.t(`component.form_file_upload.error.preprocessing_failed`),uploadFailed:i.t(`component.form_file_upload.error.upload_failed`)}));function u(e){for(let t of e)o.show({title:t.file.name,message:sk(t.error,l.value)})}function d(e){return URL.createObjectURL(e)}return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.MotionConfig),{transition:{duration:.3,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(pT),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,accept:t.accept,"disabled-reason":t.disabledReason,"is-disabled":t.isDisabled,"is-public":t.isPublic,"is-valid-file":t.isValidFile,preprocess:t.preprocess,onFilesRejected:u},{default:(0,f.withCtx)(({items:n})=>[(0,f.createVNode)((0,f.unref)(Ay),{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,f.normalizeClass)(t.class),style:(0,f.normalizeStyle)(t.style),for:(0,f.unref)(a),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-error-message-hidden":t.isErrorMessageHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,Mk,[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[n.length>0&&s.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},class:`absolute top-1/2 right-0 -translate-y-1/2`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(mT),null,{default:(0,f.withCtx)(({isDisabled:e})=>[(0,f.createVNode)((0,f.unref)(X),(0,f.mergeProps)(c.value,{id:(0,f.unref)(a),icon:(0,f.unref)(sr),"is-disabled":e,label:(0,f.unref)(i).t(`component.form_file_upload.action.add_files`),size:`xs`,variant:`tertiary`}),null,16,[`id`,`icon`,`is-disabled`,`label`])]),_:1})]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:2},1024)])]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Hw),null,{default:(0,f.withCtx)(({isHoveringOverPage:e,isHoveringOverDropzone:r})=>[(0,f.createElementVNode)(`div`,Nk,[(0,f.createVNode)(dk,{"is-hovering-over-page":e,"is-hovering-over-dropzone":r},null,8,[`is-hovering-over-page`,`is-hovering-over-dropzone`]),(0,f.createVNode)((0,f.unref)(Cb),null,{default:(0,f.withCtx)(()=>[n.length>0?((0,f.openBlock)(),(0,f.createBlock)(jk,{key:0,items:n},null,8,[`items`])):((0,f.openBlock)(),(0,f.createBlock)(mk,{key:1,id:(0,f.unref)(a),"is-hovering-over-dropzone":r,"is-multiple":s.value,description:t.description,"trigger-attrs":c.value},null,8,[`id`,`is-hovering-over-dropzone`,`is-multiple`,`description`,`trigger-attrs`]))]),_:2},1024),(0,f.createVNode)((0,f.unref)(zw),null,{default:(0,f.withCtx)(({files:e})=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[e[0]===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.3,type:`spring`,bounce:0},class:`absolute bottom-3 left-1/2 w-[95%] -translate-x-1/2 translate-y-full overflow-hidden rounded-xl border border-tertiary bg-primary p-sm pr-md shadow-lg/5`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{justify:`between`,class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(xk,{src:d(e[0]),"is-zoom-enabled":!0,alt:e[0].name,fit:`cover`,class:`size-8 shrink-0 rounded-md`},null,8,[`src`,`alt`]),(0,f.createVNode)((0,f.unref)(G),{gap:`none`,class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,Pk,(0,f.toDisplayString)((0,f.unref)(i).t(`component.form_file_upload.clipboard.title`)),1),(0,f.createElementVNode)(`span`,Fk,(0,f.toDisplayString)(e[0].name),1)]),_:2},1024)]),_:2},1024),(0,f.createVNode)((0,f.unref)(I),{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Vw),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Y),{label:(0,f.unref)(i).t(`component.form_file_upload.action.upload`),size:`sm`,variant:`secondary`},null,8,[`label`])]),_:1}),(0,f.createVNode)((0,f.unref)(Bw),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(zr),label:(0,f.unref)(i).t(`component.form_file_upload.action.hide_clipboard_suggestion`),variant:`tertiary`,size:`sm`},null,8,[`icon`,`label`])]),_:1})]),_:1})]),_:2},1024)]),_:2},1024))]),_:2},1024)]),_:1})])]),_:2},1024)]),_:2},1032,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`])]),_:3},8,[`modelValue`,`accept`,`disabled-reason`,`is-disabled`,`is-public`,`is-valid-file`,`preprocess`])]),_:3}))}}),Lk=(0,f.defineComponent)({__name:`Interactable`,props:{class:{default:null}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,class:(0,f.normalizeClass)((0,f.unref)(Ey)(`
|
|
963
|
+
`},variants:{isPickerHidden:{false:{field:`pl-xxs`},true:{field:`pl-md`}},size:{md:{field:`gap-xxs text-xs`,separator:`mx-xs`,trigger:`pr-md pl-xs`},sm:{field:`gap-xxs text-xs`,separator:`mx-xxs`,trigger:`pr-sm pl-xxs`}}}}),kD={class:`relative flex size-9 shrink-0 items-center justify-center rounded-full text-xs font-regular text-secondary group-focus-visible/celtrig:ring-2 group-focus-visible/celtrig:ring-fg-brand-primary group-data-disabled/celtrig:text-disabled group-data-disabled/celtrig:opacity-50 group-data-highlighted-end/celtrig:bg-brand-solid group-data-highlighted-end/celtrig:text-primary-on-brand group-data-highlighted-end/celtrig:group-focus-visible/celtrig:ring-0 group-data-highlighted-start/celtrig:bg-brand-solid group-data-highlighted-start/celtrig:text-primary-on-brand group-data-highlighted-start/celtrig:group-focus-visible/celtrig:ring-0 group-data-outside-view/celtrig:text-disabled group-data-selection-end/celtrig:bg-brand-solid group-data-selection-end/celtrig:text-primary-on-brand group-data-selection-end/celtrig:group-focus-visible/celtrig:ring-0 group-data-selection-start/celtrig:bg-brand-solid group-data-selection-start/celtrig:text-primary-on-brand group-data-selection-start/celtrig:group-focus-visible/celtrig:ring-0 group-data-today/celtrig:font-semibold group-data-unavailable/celtrig:text-disabled group-data-unavailable/celtrig:line-through group-not-data-disabled/celtrig:group-not-data-highlighted/celtrig:group-not-data-selected/celtrig:hover:bg-secondary-hover`},AD={key:0,class:`absolute bottom-1 left-1/2 size-1 -translate-x-1/2 rounded-full bg-brand-solid group-data-highlighted-end/celtrig:bg-white group-data-highlighted-start/celtrig:bg-white group-data-selection-end/celtrig:bg-white group-data-selection-start/celtrig:bg-white`},jD=(0,f.defineComponent)({__name:`DateRangeFieldCalendarGrid`,props:{getDayConfig:{type:Function},month:{},weekDays:{}},setup(e){let t=e;function n(e){return e.day===1}function r(e){return e.day===(0,x.endOfMonth)(e).day}function i(e){return lD(e,t.getDayConfig)}return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerGrid),{class:`w-full border-collapse select-none`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerGridHead),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerGridRow),{class:`flex py-xxs`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.weekDays,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerHeadCell),{key:e,class:`flex-1 py-xs text-center text-xs font-medium text-tertiary`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(e),1)]),_:2},1024))),128))]),_:1})]),_:1}),(0,f.createVNode)((0,f.unref)(h.DateRangePickerGridBody),null,{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.month.rows,(e,a)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerGridRow),{key:a,class:`flex py-xxs`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e,e=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerCell),{key:e.toString(),date:e,class:`group/cell relative flex-1 p-0 text-center text-xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerCellTrigger),{class:(0,f.normalizeClass)([{"rounded-r-full":r(e),"rounded-l-full":n(e)},`group/celtrig inline-flex h-9 w-full items-center justify-center text-xs outline-none group-first/cell:rounded-l-full group-last/cell:rounded-r-full data-disabled:pointer-events-none data-highlighted:bg-brand-secondary data-highlighted-end:rounded-r-full data-highlighted-end:bg-brand-secondary data-highlighted-start:rounded-l-full data-highlighted-start:bg-brand-secondary data-outside-view:pointer-events-none data-outside-view:invisible data-selected:bg-brand-secondary data-selection-end:rounded-r-full data-selection-end:bg-brand-secondary data-selection-start:rounded-l-full data-selection-start:bg-brand-secondary data-unavailable:pointer-events-none dark:data-highlighted:bg-brand-secondary/20 dark:data-highlighted-end:bg-brand-secondary/20 dark:data-highlighted-start:bg-brand-secondary/20 dark:data-selected:bg-brand-secondary/20 dark:data-selection-end:bg-brand-secondary/20 dark:data-selection-start:bg-brand-secondary/20 [&[data-selection-end][data-highlighted-start]:not([data-highlighted-end])]:rounded-r-none [&[data-selection-start][data-highlighted-end]:not([data-highlighted-start])]:rounded-l-none`]),day:e,month:t.month.value},{default:(0,f.withCtx)(({today:t})=>[(0,f.createElementVNode)(`div`,kD,[(0,f.createTextVNode)((0,f.toDisplayString)(e.day)+` `,1),t?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,AD)):i(e)?((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{key:1,class:(0,f.normalizeClass)([i(e),`absolute bottom-1 left-1/2 size-1 -translate-x-1/2 group-data-highlighted-end/celtrig:bg-white group-data-highlighted-start/celtrig:bg-white group-data-selection-end/celtrig:bg-white group-data-selection-start/celtrig:bg-white`])},null,2)):(0,f.createCommentVNode)(``,!0)])]),_:2},1032,[`class`,`day`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1024))),128))]),_:1})]),_:1}))}}),MD={class:`flex items-center p-xl pb-0`},ND={key:1,class:`size-9 shrink-0`},PD={class:`flex flex-1 items-center justify-center gap-xs`},FD={key:3,class:`size-9 shrink-0`},ID=(0,f.defineComponent)({__name:`DateRangeFieldCalendarHeader`,props:{hasNext:{type:Boolean},showNext:{type:Boolean,default:void 0},side:{}},setup(e){let t=e,n=(0,g.useI18n)(),{placeholder:r,setPlaceholder:i}=DD(),a=(0,f.computed)(()=>t.side===`left`?r.value:r.value.add({months:1}));function o(e){i(t.side===`left`?e:e.subtract({months:1}))}return(e,r)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,MD,[t.side===`left`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerPrev),{key:0,"as-child":!0},{default:(0,f.withCtx)(({disabled:e})=>[(0,f.createVNode)(X,{"is-disabled":e,icon:(0,f.unref)(ln),label:(0,f.unref)(n).t(`component.date_range_picker.previous_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,ND)),(0,f.createElementVNode)(`div`,PD,[(0,f.createVNode)(hD,{placeholder:a.value,"onUpdate:placeholder":o},null,8,[`placeholder`]),(0,f.createVNode)(_D,{placeholder:a.value,"onUpdate:placeholder":o},null,8,[`placeholder`])]),t.side===`right`||t.hasNext||t.showNext?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerNext),{key:2,"as-child":!0},{default:(0,f.withCtx)(({disabled:e})=>[(0,f.createVNode)(X,{"is-disabled":e,icon:(0,f.unref)(pn),label:(0,f.unref)(n).t(`component.date_range_picker.next_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,FD))]))}}),LD={class:`flex items-center`},RD=(0,f.defineComponent)({__name:`DateRangeFieldInvalidIndicator`,props:{isVisible:{type:Boolean}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[t.isVisible?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,filter:`blur(4px)`},animate:{opacity:1,filter:`blur(0)`},exit:{opacity:0,filter:`blur(4px)`},transition:{duration:.3,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(W,{label:(0,f.unref)(n).t(`component.date_range_picker.invalid_range`)},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,LD,[(0,f.createVNode)((0,f.unref)(Et),{class:`size-4 text-error-primary`})])]),_:1},8,[`label`])]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),zD={class:`flex flex-col gap-md border-t border-secondary p-xl md:flex-row md:items-center md:justify-between`},BD=(0,f.defineComponent)({__name:`DateRangeFieldInputRow`,setup(e){let t=(0,g.useI18n)(),{isInvalidRange:n,onCancel:r}=DD();return(e,i)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,zD,[(0,f.createVNode)((0,f.unref)(I),{class:`min-w-0 items-center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerField),{class:`flex h-7 min-w-0 flex-1 items-center gap-xxs rounded-sm border border-secondary bg-primary px-sm text-xs text-primary md:max-w-30 md:min-w-30 md:flex-none [&:has(:focus)]:border-fg-brand-primary [&:has(:focus)]:outline [&:has(:focus)]:outline-fg-brand-primary`},{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.start,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:`start-${e}`},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:1,part:e,class:`text-placeholder select-none`,type:`start`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:0,part:e,class:`rounded-sm px-xxs text-xs text-primary tabular-nums caret-transparent outline-none hover:bg-secondary-hover focus:bg-secondary-hover focus:text-primary data-placeholder:text-placeholder data-placeholder:focus:text-primary`,type:`start`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`]))],64))),128))]),_:1}),(0,f.createVNode)((0,f.unref)(pn),{class:`size-4 text-placeholder`}),(0,f.createVNode)((0,f.unref)(h.DateRangePickerField),{class:`flex h-7 min-w-0 flex-1 items-center gap-xxs rounded-sm border border-secondary bg-primary px-sm text-xs text-primary md:max-w-30 md:min-w-30 md:flex-none [&:has(:focus)]:border-fg-brand-primary [&:has(:focus)]:outline [&:has(:focus)]:outline-fg-brand-primary`},{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.end,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:`end-${e}`},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:1,part:e,class:`text-placeholder select-none`,type:`end`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:0,part:e,class:`rounded-sm px-xxs text-xs text-primary tabular-nums caret-transparent outline-none hover:bg-secondary-hover focus:bg-secondary-hover focus:text-primary data-placeholder:text-placeholder data-placeholder:focus:text-primary`,type:`end`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`]))],64))),128))]),_:1}),(0,f.createVNode)(RD,{"is-visible":(0,f.unref)(n)},null,8,[`is-visible`])]),_:1}),(0,f.createVNode)((0,f.unref)(I),{class:`self-end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Y),{label:(0,f.unref)(t).t(`component.date_range_picker.close`),size:`md`,variant:`secondary`,onClick:(0,f.unref)(r)},null,8,[`label`,`onClick`])]),_:1})]))}}),VD={class:`flex w-32 shrink-0 flex-col gap-xs border-r border-secondary p-lg`},HD=[`data-active`,`onClick`],UD=(0,f.defineComponent)({__name:`DateRangeFieldPresets`,setup(e){let t=(0,g.useI18n)(),{draftValue:n,setPreset:r}=DD(),i=(0,f.computed)(()=>{let e=S.Temporal.Now.plainDateISO(),n=e.dayOfWeek,r=e.subtract({days:n-1}),i=r.add({days:6}),a=r.subtract({days:7}),o=r.subtract({days:1}),s=e.with({day:1}),c=e.with({day:e.daysInMonth}),l=s.subtract({months:1}),u=s.subtract({days:1}),d=e.with({day:1,month:1}),f=e.with({day:31,month:12}),p=d.subtract({years:1}),m=d.subtract({days:1}),h=e.subtract({days:1}),g=e.add({days:1});return[{key:`today`,label:t.t(`component.date_range_picker.preset.today`),range:{from:e,until:e}},{key:`yesterday`,label:t.t(`component.date_range_picker.preset.yesterday`),range:{from:h,until:h}},{key:`tomorrow`,label:t.t(`component.date_range_picker.preset.tomorrow`),range:{from:g,until:g}},{key:`this_week`,label:t.t(`component.date_range_picker.preset.this_week`),range:{from:r,until:i}},{key:`last_week`,label:t.t(`component.date_range_picker.preset.last_week`),range:{from:a,until:o}},{key:`this_month`,label:t.t(`component.date_range_picker.preset.this_month`),range:{from:s,until:c}},{key:`last_month`,label:t.t(`component.date_range_picker.preset.last_month`),range:{from:l,until:u}},{key:`this_year`,label:t.t(`component.date_range_picker.preset.this_year`),range:{from:d,until:f}},{key:`last_year`,label:t.t(`component.date_range_picker.preset.last_year`),range:{from:p,until:m}},{key:`all_time`,label:t.t(`component.date_range_picker.preset.all_time`),range:null}]});function a(e){if(e.range===null)return n.value.start==null&&n.value.end==null;if(n.value.start==null||n.value.end==null)return!1;let t=n.value.start,r=n.value.end;return t.year===e.range.from.year&&t.month===e.range.from.month&&t.day===e.range.from.day&&r.year===e.range.until.year&&r.month===e.range.until.month&&r.day===e.range.until.day}return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,VD,[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(i.value,e=>((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:e.key,"data-active":a(e),class:`flex w-full items-center rounded-sm px-lg py-xs text-left text-xs font-medium text-secondary transition-colors duration-100 outline-none hover:bg-secondary-hover focus-visible:ring-2 focus-visible:ring-fg-brand-primary data-[active=true]:bg-brand-secondary data-[active=true]:text-brand-secondary`,type:`button`,onClick:t=>(0,f.unref)(r)(e.range)},(0,f.toDisplayString)(e.label),9,HD))),128))]))}}),WD={class:`flex h-full`},GD={class:`flex min-w-0 flex-1 flex-col`},KD={class:`flex`},qD={class:`flex flex-1 flex-col`},JD={class:`p-xl pt-0`},YD={class:`flex flex-1 flex-col`},XD={class:`p-xl pt-0`},ZD=(0,f.defineComponent)({inheritAttrs:!1,__name:`DateRangeField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({maxDate:{},minDate:{},isPickerHidden:{type:Boolean},getDayConfig:{type:Function},placeholder:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{}},{...ry,...iy,...ay,maxDate:null,minDate:null,isPickerHidden:!1,placeholder:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),r=(0,g.useI18n)(),i=t.id??(0,f.useId)(),a=(0,f.useAttrs)(),{isError:o,ariaDescribedBy:s,ariaInvalid:c}=ty(i,t),l=(0,f.ref)(!1),u=(0,f.computed)(()=>OD({isPickerHidden:t.isPickerHidden,size:t.size})),{isInvalidRange:d,isSingleMonth:p,calendarPlaceholder:m,draftValue:_,locale:v,maxDateValue:y,minDateValue:b,setPlaceholder:x,setPreset:S,syncDraftFromModel:C,onDraftValueUpdate:w}=TD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:n});(0,f.watch)(l,e=>{e&&C()});function T(){l.value=!1}return ED({isInvalidRange:d,draftValue:_,placeholder:m,setPlaceholder:x,setPreset:S,onCancel:T}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,f.normalizeClass)(t.class),style:(0,f.normalizeStyle)(t.style),for:(0,f.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-error-message-hidden":t.isErrorMessageHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerRoot),{id:(0,f.unref)(i),open:l.value,"onUpdate:open":n[0]||=e=>l.value=e,placeholder:(0,f.unref)(m),"onUpdate:placeholder":n[1]||=e=>(0,f.isRef)(m)?m.value=e:null,"model-value":(0,f.unref)(_),"week-starts-on":(0,f.unref)(SD)((0,f.unref)(v)),disabled:t.isDisabled,"max-value":(0,f.unref)(y),"min-value":(0,f.unref)(b),readonly:t.isReadonly,required:t.isRequired,locale:(0,f.unref)(v),"number-of-months":(0,f.unref)(p)?1:2,"close-on-select":!1,"onUpdate:modelValue":(0,f.unref)(w)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sy,{"is-disabled":t.isDisabled,"is-error":(0,f.unref)(o),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},(0,f.createSlots)({default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerField),(0,f.mergeProps)({id:(0,f.unref)(i)},(0,f.unref)(a),{"aria-describedby":(0,f.unref)(s),"aria-invalid":(0,f.unref)(c),"aria-required":t.isRequired||void 0,class:u.value.field()}),{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.start,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:`start-${e}`},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:1,part:e,class:(0,f.normalizeClass)(u.value.literal()),type:`start`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:0,part:e,class:(0,f.normalizeClass)(u.value.segment()),type:`start`,"data-field-wrapper":``},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`]))],64))),128)),(0,f.createVNode)((0,f.unref)(Rt),{class:(0,f.normalizeClass)(u.value.separator())},null,8,[`class`]),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.end,({part:e,value:t})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:`end-${e}`},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:1,part:e,class:(0,f.normalizeClass)(u.value.literal()),type:`end`},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.DateRangePickerInput),{key:0,part:e,class:(0,f.normalizeClass)(u.value.segment()),type:`end`,"data-field-wrapper":``},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`]))],64))),128))]),_:1},16,[`id`,`aria-describedby`,`aria-invalid`,`aria-required`,`class`])]),_:2},[t.isPickerHidden?void 0:{name:`right`,fn:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{"is-disabled":t.isDisabled||t.isReadonly,"is-tooltip-disabled":!0,icon:(0,f.unref)(Xt),label:(0,f.unref)(r).t(`component.date_range_picker.open`),size:`xs`,type:`button`,variant:`tertiary`,class:`mr-xs`,"data-field-wrapper":``},null,8,[`is-disabled`,`icon`,`label`])]),_:1})]),key:`0`}]),1032,[`is-disabled`,`is-error`,`is-loading`,`is-readonly`,`size`]),(0,f.createVNode)(ei,{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerContent),{"side-offset":8,"collision-padding":10,"data-animation":`popover-default`,class:`z-50 origin-(--reka-popover-content-transform-origin) will-change-[transform,opacity]`,align:`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerCalendar),{"fixed-weeks":!0,class:`flex flex-col gap-lg overflow-hidden rounded-2xl border border-secondary bg-primary shadow-lg`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:r})=>[(0,f.createElementVNode)(`div`,WD,[(0,f.createVNode)(UD),(0,f.createElementVNode)(`div`,GD,[(0,f.createElementVNode)(`div`,KD,[(0,f.createElementVNode)(`div`,qD,[(0,f.createVNode)(ID,{"has-next":(0,f.unref)(p),side:`left`},null,8,[`has-next`]),(0,f.createElementVNode)(`div`,JD,[(0,f.createVNode)(jD,{"get-day-config":t.getDayConfig,month:r[0],"week-days":e},null,8,[`get-day-config`,`month`,`week-days`])])]),(0,f.unref)(p)?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[n[2]||=(0,f.createElementVNode)(`div`,{class:`border-l border-secondary`},null,-1),(0,f.createElementVNode)(`div`,YD,[(0,f.createVNode)(ID,{side:`right`}),(0,f.createElementVNode)(`div`,XD,[(0,f.createVNode)(jD,{"get-day-config":t.getDayConfig,month:r[1],"week-days":e},null,8,[`get-day-config`,`month`,`week-days`])])])],64))]),(0,f.createVNode)(BD)])])]),_:1})]),_:1})]),_:1})]),_:1},8,[`id`,`open`,`placeholder`,`model-value`,`week-starts-on`,`disabled`,`max-value`,`min-value`,`readonly`,`required`,`locale`,`number-of-months`,`onUpdate:modelValue`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`]))}}),QD={class:`flex h-full`},$D={class:`flex min-w-0 flex-1 flex-col`},eO={class:`flex`},tO={class:`flex flex-1 flex-col`},nO={class:`p-xl pt-0`},rO={class:`flex flex-1 flex-col`},iO={class:`p-xl pt-0`},aO=(0,f.defineComponent)({inheritAttrs:!1,__name:`DateRangePicker`,props:(0,f.mergeModels)({maxDate:{default:null},minDate:{default:null},hasPresets:{type:Boolean,default:!0},getDayConfig:{},showPresets:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),{isInvalidRange:r,isSingleMonth:i,calendarPlaceholder:a,draftValue:o,locale:s,maxDateValue:c,minDateValue:l,setPlaceholder:u,setPreset:d,onDraftValueUpdate:p}=TD({maxDate:(0,f.toRef)(t,`maxDate`),minDate:(0,f.toRef)(t,`minDate`),modelValue:n}),m=(0,f.computed)(()=>t.hasPresets||t.showPresets===!0);return ED({isInvalidRange:r,draftValue:o,placeholder:a,setPlaceholder:u,setPreset:d,onCancel:()=>{}}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(ei,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerRoot),{modelValue:(0,f.unref)(o),"onUpdate:modelValue":[n[0]||=e=>(0,f.isRef)(o)?o.value=e:null,(0,f.unref)(p)],placeholder:(0,f.unref)(a),"onUpdate:placeholder":n[1]||=e=>(0,f.isRef)(a)?a.value=e:null,"week-starts-on":(0,f.unref)(SD)((0,f.unref)(s)),"max-value":(0,f.unref)(c),"min-value":(0,f.unref)(l),locale:(0,f.unref)(s),"number-of-months":(0,f.unref)(i)?1:2,"close-on-select":!1},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.DateRangePickerCalendar),{"fixed-weeks":!0,class:`flex flex-col gap-lg overflow-hidden bg-primary`,"weekday-format":`short`},{default:(0,f.withCtx)(({weekDays:e,grid:r})=>[(0,f.createElementVNode)(`div`,QD,[m.value?((0,f.openBlock)(),(0,f.createBlock)(UD,{key:0})):(0,f.createCommentVNode)(``,!0),(0,f.createElementVNode)(`div`,$D,[(0,f.createElementVNode)(`div`,eO,[(0,f.createElementVNode)(`div`,tO,[(0,f.createVNode)(ID,{"has-next":(0,f.unref)(i),side:`left`},null,8,[`has-next`]),(0,f.createElementVNode)(`div`,nO,[(0,f.createVNode)(jD,{"get-day-config":t.getDayConfig,month:r[0],"week-days":e},null,8,[`get-day-config`,`month`,`week-days`])])]),(0,f.unref)(i)?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[n[2]||=(0,f.createElementVNode)(`div`,{class:`border-l border-secondary`},null,-1),(0,f.createElementVNode)(`div`,rO,[(0,f.createVNode)(ID,{side:`right`}),(0,f.createElementVNode)(`div`,iO,[(0,f.createVNode)(jD,{"get-day-config":t.getDayConfig,month:r[1],"week-days":e},null,8,[`get-day-config`,`month`,`week-days`])])])],64))])])])]),_:1})]),_:1},8,[`modelValue`,`placeholder`,`week-starts-on`,`max-value`,`min-value`,`locale`,`number-of-months`,`onUpdate:modelValue`])]),_:1}))}}),oO=[`datetime`],sO=(0,f.defineComponent)({__name:`DateTime`,props:{value:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`time`,{datetime:t.value},[(0,f.renderSlot)(e.$slots,`default`)],8,oO))}}),cO=(0,f.defineComponent)({__name:`DetailList`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{gap:`2xl`,class:`w-full`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),lO={},uO={"aria-hidden":`true`,width:`100%`,height:`100%`,viewBox:`0 0 16 16`,fill:`currentColor`,role:`img`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`};function dO(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,uO,[...t[0]||=[(0,f.createElementVNode)(`path`,{d:`M7.00194 10.6239C6.66861 10.8183 6.25 10.5779 6.25 10.192V5.80802C6.25 5.42212 6.66861 5.18169 7.00194 5.37613L10.7596 7.56811C11.0904 7.76105 11.0904 8.23895 10.7596 8.43189L7.00194 10.6239Z`},null,-1)]])}var fO=H(lO,[[`render`,dO]]),pO=(0,f.defineComponent)({__name:`DetailListGroupHeaderCollapseInfo`,props:{isVisible:{type:Boolean},badge:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[t.isVisible&&t.badge!==null?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,width:0,marginLeft:`0rem`},animate:{opacity:1,width:`auto`,marginLeft:`0.4rem`},exit:{opacity:0,width:0,marginLeft:`0rem`},transition:{duration:.15},class:`flex`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_y),(0,f.mergeProps)(t.badge,{size:`sm`,variant:`outline`,class:`shrink-0`}),null,16)]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),mO={class:`opacity-0 duration-100 group-hover/detail-list-group:opacity-100 focus-visible:opacity-100 has-focus-visible:opacity-100 pointer-coarse:opacity-100`},hO=(0,f.defineComponent)({__name:`DetailListGroupHeader`,props:{isOpen:{type:Boolean},collapseOptions:{},label:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{justify:`between`,class:`w-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.CollapsibleTrigger),{disabled:!t.collapseOptions.isCollapsible,class:`group/trigger -ml-sm flex h-6.5 max-w-full items-center overflow-hidden px-sm py-xs duration-100 not-disabled:hover:bg-tertiary disabled:cursor-default!`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{gap:`none`,class:`w-full`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:`text-xs font-medium text-primary`},null,8,[`text`]),t.collapseOptions.isCollapsible&&t.collapseOptions.badge!=null?((0,f.openBlock)(),(0,f.createBlock)(pO,{key:0,badge:t.collapseOptions.badge,"is-visible":!t.isOpen},null,8,[`badge`,`is-visible`])):(0,f.createCommentVNode)(``,!0)]),_:1}),t.collapseOptions.isCollapsible?((0,f.openBlock)(),(0,f.createBlock)(fO,{key:0,class:`size-4 shrink-0 text-disabled opacity-0 duration-200 group-hover/detail-list-group:text-secondary group-hover/detail-list-group:opacity-100 group-has-focus-visible/detail-list-group:opacity-100 group-data-[state=closed]/trigger:opacity-100 group-data-[state=open]/trigger:rotate-90 pointer-coarse:opacity-100`})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`disabled`])]),_:1}),(0,f.createElementVNode)(`div`,mO,[(0,f.renderSlot)(e.$slots,`actions`)])]),_:3}))}}),gO=(0,f.defineComponent)({__name:`DetailListGroup`,props:(0,f.mergeModels)({collapseOptions:{},label:{default:null}},{modelValue:{type:Boolean,default:void 0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n={isCollapsible:!1,isOpenByDefault:!1},r=(0,f.useModel)(e,`modelValue`),i=(0,f.computed)(()=>({...n,...t.collapseOptions}));r.value===void 0&&(r.value=i.value.isOpenByDefault);let a=(0,f.computed)({get:()=>i.value.isCollapsible?r.value:!0,set:e=>{i.value.isCollapsible&&(r.value=e)}});return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.CollapsibleRoot),{open:a.value,"onUpdate:open":n[0]||=e=>a.value=e,"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(G),{gap:`none`,class:`group/detail-list-group @container/detail-list w-full`},{default:(0,f.withCtx)(()=>[t.label===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(hO,{key:0,label:t.label,"is-open":a.value,"collapse-options":i.value},{actions:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`actions`)]),_:3},8,[`label`,`is-open`,`collapse-options`])),(0,f.createVNode)((0,f.unref)(h.CollapsibleContent),{class:`w-full origin-top-left overflow-hidden data-[state=closed]:animate-[collapsible-up_150ms] data-[state=open]:animate-[collapsible-down_150ms]`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(G),{class:(0,f.normalizeClass)({"pt-xl":t.label!==null}),gap:`lg`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])]),_:3})]),_:3})]),_:3},8,[`open`]))}}),_O=(0,f.defineComponent)({__name:`DetailListGroupItem`,props:{orientation:{default:`horizontal`}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)([{"flex-col items-start @[15rem]:flex-row":t.orientation===`horizontal`,"flex-col":t.orientation===`vertical`},`flex gap-xs`])},[(0,f.renderSlot)(e.$slots,`default`)],2))}}),vO={key:0,class:`flex aspect-square h-text-xs items-center`},yO=(0,f.defineComponent)({__name:`DetailListGroupItemLabel`,props:{avatar:{default:null},icon:{default:null},label:{},variant:{default:`default`}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{gap:`xxs`,class:`w-28 shrink-0`},{default:(0,f.withCtx)(()=>[t.icon!==null||t.avatar!==null?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,vO,[t.avatar===null?((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{key:1,class:(0,f.normalizeClass)([{"text-disabled":t.variant==="default","text-warning-primary":t.variant===`warning`,"text-error-primary":t.variant===`error`},`size-3.5`])},null,8,[`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_o),{key:0,name:t.avatar.name,src:t.avatar.src,"is-static-color":t.avatar.isStaticColor,size:`xxs`},null,8,[`name`,`src`,`is-static-color`]))])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:(0,f.normalizeClass)([{"text-tertiary":t.variant==="default","text-warning-primary":t.variant===`warning`,"text-error-primary":t.variant===`error`},`text-xs`])},null,8,[`text`,`class`])]),_:1}))}}),bO=(0,f.defineComponent)({__name:`DetailListGroupItemValueBadge`,props:{isDisabled:{type:Boolean},actions:{},ariaLabel:{},avatar:{},color:{},dot:{},icon:{},iconColor:{},label:{},left:{},metadata:{},models:{},rounded:{},variant:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_y),(0,f.mergeProps)(t,{size:`sm`}),null,16))}}),xO={key:0,class:`flex aspect-square h-text-xs items-center`},SO=(0,f.defineComponent)({__name:`DetailListGroupItemValueText`,props:{avatar:{default:null},icon:{default:null},text:{},variant:{default:`default`}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{gap:`xxs`,align:`start`},{default:(0,f.withCtx)(()=>[t.icon!==null||t.avatar!==null?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,xO,[t.avatar===null?t.icon===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{key:1,class:(0,f.normalizeClass)([{"text-disabled":t.variant==="default","text-warning-primary":t.variant===`warning`,"text-error-primary":t.variant===`error`},`size-3.5`])},null,8,[`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_o),(0,f.mergeProps)({key:0},t.avatar,{size:`xxs`}),null,16))])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(U),{truncate:!1,text:t.text,class:(0,f.normalizeClass)([{"text-primary":t.variant==="default","text-warning-primary":t.variant===`warning`,"text-error-primary":t.variant===`error`},`text-xs`])},null,8,[`text`,`class`])]),_:1}))}}),CO=(0,f.defineComponent)({__name:`DetailListGroupSeparator`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)($o)))}}),wO={key:2},TO=(0,f.defineComponent)({__name:`EmptyStateAction`,props:{action:{},variant:{default:`primary`}},setup(e){let t=e;return(e,n)=>t.action.type===`button`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Y),(0,f.mergeProps)({key:0},t.action,{variant:t.variant,onClick:t.action.onClick}),null,16,[`variant`,`onClick`])):t.action.type===`link`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(tv),(0,f.mergeProps)({key:1},t.action,{variant:t.variant}),null,16,[`variant`])):t.action.type===`Action`?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,wO)):(0,f.createCommentVNode)(``,!0)}}),EO={width:`152`,height:`133`,viewBox:`0 0 152 133`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},DO=[`filter`],OO=[`fill`],kO={x:`48`,y:`68.0915`,width:`56`,height:`56`},AO=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationBox`,setup(e){let t=(0,f.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-c`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,EO,[t[8]||=(0,f.createStaticVNode)(`<circle cx="76" cy="59.0915" r="52" fill="#EEF2F6"></circle><circle cx="21" cy="26.0915" r="5" fill="#EEF2F6"></circle><circle cx="18" cy="110.091" r="7" fill="#EEF2F6"></circle><circle cx="145" cy="42.0915" r="7" fill="#EEF2F6"></circle><circle cx="134" cy="15.0915" r="4" fill="#EEF2F6"></circle>`,5),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[t[0]||=(0,f.createElementVNode)(`path`,{d:`M76.0006 91.2813L118 72.6227V19.4665L76.3298 1.09149L34 19.4665V72.6227L76.0006 91.2813Z`,fill:`#F8FAFC`},null,-1),t[1]||=(0,f.createElementVNode)(`path`,{d:`M118.5 72.9479L118.203 73.0798L76.2031 91.738L76.001 91.8288L75.7979 91.738L33.7969 73.0798L33.5 72.9479V19.1384L33.8008 19.0075L76.1309 0.632507L76.3311 0.545593L76.5312 0.63446L118.202 19.0095L118.5 19.1403V72.9479Z`,stroke:`black`,"stroke-opacity":`0.08`},null,-1),t[2]||=(0,f.createElementVNode)(`path`,{d:`M76 37.1544V91.3259L34 72.6227V19.4665L76 37.1544Z`,fill:`#E3E8EF`},null,-1),(0,f.createElementVNode)(`path`,{fill:`url(#${r})`,d:`M76.0008 37.1852V91.3259L118 72.6227V19.4665L76.0008 37.1852Z`},null,8,OO),t[3]||=(0,f.createElementVNode)(`path`,{d:`M76 37.1852L118 19.4665L76.3298 1.09149L34 19.4665L76 37.1852Z`,fill:`#F8FAFC`},null,-1),t[4]||=(0,f.createElementVNode)(`path`,{d:`M50.0781 12.4858L91.6722 30.5901L92.0523 43.8613L103.759 39.031L103.405 25.6761L60.4847 7.97345L50.0781 12.4858Z`,fill:`#E3E8EF`},null,-1)],8,DO),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,kO,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${i});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),t[9]||=(0,f.createElementVNode)(`g`,null,[(0,f.createElementVNode)(`path`,{d:`M56 96.0915C56 85.0458 64.9543 76.0915 76 76.0915C87.0457 76.0915 96 85.0458 96 96.0915C96 107.137 87.0457 116.091 76 116.091C64.9543 116.091 56 107.137 56 96.0915Z`,fill:`black`,"fill-opacity":`0.2`}),(0,f.createElementVNode)(`path`,{d:`M72.6667 99.4248L76 96.0915M76 96.0915L79.3333 99.4248M76 96.0915V103.591M82.6667 100.044C83.6846 99.2032 84.3333 97.9314 84.3333 96.5082C84.3333 93.9769 82.2813 91.9248 79.75 91.9248C79.5679 91.9248 79.3976 91.8298 79.3051 91.6729C78.2184 89.8289 76.212 88.5915 73.9167 88.5915C70.4649 88.5915 67.6667 91.3897 67.6667 94.8415C67.6667 96.5632 68.3629 98.1224 69.4891 99.2528`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`13`,y:`0`,width:`126`,height:`132.376`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[5]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:i,transform:`translate(-48 -68.0915)`},[...t[6]||=[(0,f.createElementVNode)(`path`,{d:`M56 96.0915C56 85.0458 64.9543 76.0915 76 76.0915C87.0457 76.0915 96 85.0458 96 96.0915C96 107.137 87.0457 116.091 76 116.091C64.9543 116.091 56 107.137 56 96.0915Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:r,x1:`97`,y1:`19.4665`,x2:`128.011`,y2:`74.0281`,gradientUnits:`userSpaceOnUse`},[...t[7]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#E3E8EF`},null,-1)]])])]))}}),jO={width:`154`,height:`121`,viewBox:`0 0 154 121`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},MO=[`filter`],NO=[`fill`],PO=[`fill`],FO=[`fill`],IO={x:`49`,y:`58`,width:`56`,height:`56`},LO=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationCloudSearch`,setup(e){let t=(0,f.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-p1`,a=`${t}-p2`,o=`${t}-c`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,jO,[t[7]||=(0,f.createElementVNode)(`circle`,{cx:`77`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[t[0]||=(0,f.createElementVNode)(`path`,{d:`M78.6 16C67.8273 16 58.2978 21.3233 52.4987 29.4829C50.605 29.0363 48.6301 28.8 46.6 28.8C32.4615 28.8 21 40.2615 21 54.4C21 68.5385 32.4615 80 46.6 80L110.6 80C122.971 80 133 69.9712 133 57.6C133 45.2288 122.971 35.2 110.6 35.2C109.721 35.2 108.854 35.2506 108.002 35.349C103.098 23.9677 91.7797 16 78.6 16Z`,fill:`#F8FAFC`},null,-1),t[1]||=(0,f.createElementVNode)(`path`,{d:`M78.5996 15.5C91.8552 15.5 103.255 23.4366 108.312 34.8145C109.064 34.7397 109.827 34.7002 110.6 34.7002C123.247 34.7002 133.5 44.9525 133.5 57.5996C133.5 70.0492 123.565 80.1785 111.191 80.4922L110.6 80.5H46.5996C32.1853 80.4998 20.5002 68.8147 20.5 54.4004C20.5 39.9859 32.1852 28.3 46.5996 28.2998C48.5525 28.2998 50.4558 28.5168 52.2871 28.9238C58.1932 20.7911 67.7778 15.5001 78.5996 15.5Z`,stroke:`black`,"stroke-opacity":`0.08`},null,-1),(0,f.createElementVNode)(`ellipse`,{fill:`url(#${r})`,cx:`46.6`,cy:`54.4`,rx:`25.6`,ry:`25.6`},null,8,NO),(0,f.createElementVNode)(`circle`,{fill:`url(#${i})`,cx:`78.6`,cy:`48`,r:`32`},null,8,PO),(0,f.createElementVNode)(`ellipse`,{fill:`url(#${a})`,cx:`110.6`,cy:`57.6`,rx:`22.4`,ry:`22.4`},null,8,FO)],8,MO),t[8]||=(0,f.createElementVNode)(`circle`,{cx:`22`,cy:`19`,r:`5`,fill:`#EEF2F6`},null,-1),t[9]||=(0,f.createElementVNode)(`circle`,{cx:`19`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[10]||=(0,f.createElementVNode)(`circle`,{cx:`146`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[11]||=(0,f.createElementVNode)(`circle`,{cx:`135`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,IO,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${o});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),t[12]||=(0,f.createElementVNode)(`g`,null,[(0,f.createElementVNode)(`path`,{d:`M57 86C57 74.9543 65.9543 66 77 66C88.0457 66 97 74.9543 97 86C97 97.0457 88.0457 106 77 106C65.9543 106 57 97.0457 57 86Z`,fill:`black`,"fill-opacity":`0.2`}),(0,f.createElementVNode)(`path`,{d:`M84.5 93.5L81.5834 90.5833M83.6667 85.5833C83.6667 89.4954 80.4954 92.6667 76.5833 92.6667C72.6713 92.6667 69.5 89.4954 69.5 85.5833C69.5 81.6713 72.6713 78.5 76.5833 78.5C80.4954 78.5 83.6667 81.6713 83.6667 85.5833Z`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`0`,y:`15`,width:`154`,height:`106`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[2]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1182_1994"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1182_1994"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow_1182_1994"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow_1182_1994" result="effect2_dropShadow_1182_1994"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow_1182_1994"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow_1182_1994" result="effect3_dropShadow_1182_1994"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow_1182_1994" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:o,transform:`translate(-49 -58)`},[...t[3]||=[(0,f.createElementVNode)(`path`,{d:`M57 86C57 74.9543 65.9543 66 77 66C88.0457 66 97 74.9543 97 86C97 97.0457 88.0457 106 77 106C65.9543 106 57 97.0457 57 86Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:r,x1:`26.9429`,y1:`37.4857`,x2:`72.2`,y2:`79.9999`,gradientUnits:`userSpaceOnUse`},[...t[4]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:i,x1:`54.0286`,y1:`26.8571`,x2:`110.6`,y2:`80`,gradientUnits:`userSpaceOnUse`},[...t[5]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:a,x1:`93.4`,y1:`42.8`,x2:`133`,y2:`80`,gradientUnits:`userSpaceOnUse`},[...t[6]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]])])]))}}),RO={width:`156`,height:`125`,viewBox:`0 0 156 125`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},zO=[`filter`],BO=[`fill`],VO={x:`50.5`,y:`62`,width:`56`,height:`56`},HO=[`clip-path`],UO=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationCreditCard`,setup(e){let t=(0,f.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-c`,a=`${t}-c1`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,RO,[t[7]||=(0,f.createElementVNode)(`circle`,{cx:`78.5`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${r})`,d:`M20.5 18C20.5 14.6863 23.1863 12 26.5 12H129.5C132.814 12 135.5 14.6863 135.5 18V78C135.5 81.3137 132.814 84 129.5 84H26.5C23.1863 84 20.5 81.3137 20.5 78V18Z`},null,8,BO),t[0]||=(0,f.createStaticVNode)(`<path d="M129.5 11.75C132.952 11.75 135.75 14.5482 135.75 18V78C135.75 81.4518 132.952 84.25 129.5 84.25H26.5C23.0482 84.25 20.25 81.4518 20.25 78V18C20.25 14.5482 23.0482 11.75 26.5 11.75H129.5Z" stroke="black" stroke-opacity="0.08" stroke-width="0.5"></path><path d="M30.5 28C30.5 26.8954 31.3954 26 32.5 26H48.5C49.6046 26 50.5 26.8954 50.5 28V39C50.5 40.1046 49.6046 41 48.5 41H32.5C31.3954 41 30.5 40.1046 30.5 39V28Z" fill="#E3E8EF"></path><circle cx="117.167" cy="32.3335" r="8.33333" fill="#CDD5DF"></circle><circle cx="107.167" cy="32.3333" r="8.33333" fill="#E3E8EF"></circle><path d="M30.5 73.6667C30.5 72.7462 31.2462 72 32.1667 72H48.8333C49.7538 72 50.5 72.7462 50.5 73.6667C50.5 74.5871 49.7538 75.3333 48.8333 75.3333H32.1667C31.2462 75.3333 30.5 74.5871 30.5 73.6667Z" fill="#CDD5DF"></path><path d="M55.5 73.6667C55.5 72.7462 56.2462 72 57.1667 72H73.8333C74.7538 72 75.5 72.7462 75.5 73.6667C75.5 74.5871 74.7538 75.3333 73.8333 75.3333H57.1667C56.2462 75.3333 55.5 74.5871 55.5 73.6667Z" fill="#CDD5DF"></path><path d="M80.5 73.6667C80.5 72.7462 81.2462 72 82.1667 72H98.8333C99.7538 72 100.5 72.7462 100.5 73.6667C100.5 74.5871 99.7538 75.3333 98.8333 75.3333H82.1667C81.2462 75.3333 80.5 74.5871 80.5 73.6667Z" fill="#CDD5DF"></path><path d="M105.5 73.6667C105.5 72.7462 106.246 72 107.167 72H123.833C124.754 72 125.5 72.7462 125.5 73.6667C125.5 74.5871 124.754 75.3333 123.833 75.3333H107.167C106.246 75.3333 105.5 74.5871 105.5 73.6667Z" fill="#CDD5DF"></path>`,8)],8,zO),t[8]||=(0,f.createElementVNode)(`circle`,{cx:`23.5`,cy:`5`,r:`5`,fill:`#EEF2F6`},null,-1),t[9]||=(0,f.createElementVNode)(`circle`,{cx:`20.5`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[10]||=(0,f.createElementVNode)(`circle`,{cx:`147.5`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[11]||=(0,f.createElementVNode)(`circle`,{cx:`136.5`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,VO,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${i});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),(0,f.createElementVNode)(`g`,null,[t[2]||=(0,f.createElementVNode)(`path`,{d:`M58.5 90C58.5 78.9543 67.4543 70 78.5 70C89.5457 70 98.5 78.9543 98.5 90C98.5 101.046 89.5457 110 78.5 110C67.4543 110 58.5 101.046 58.5 90Z`,fill:`black`,"fill-opacity":`0.2`},null,-1),(0,f.createElementVNode)(`g`,{"clip-path":`url(#${a})`},[...t[1]||=[(0,f.createElementVNode)(`path`,{d:`M78.5 86.6666V90M78.5 93.3333H78.5083M86.8333 90C86.8333 94.6023 83.1024 98.3333 78.5 98.3333C73.8976 98.3333 70.1667 94.6023 70.1667 90C70.1667 85.3976 73.8976 81.6666 78.5 81.6666C83.1024 81.6666 86.8333 85.3976 86.8333 90Z`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]],8,HO)]),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`0`,y:`11.5`,width:`156`,height:`113`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[3]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:i,transform:`translate(-50.5 -62)`},[...t[4]||=[(0,f.createElementVNode)(`path`,{d:`M58.5 90C58.5 78.9543 67.4543 70 78.5 70C89.5457 70 98.5 78.9543 98.5 90C98.5 101.046 89.5457 110 78.5 110C67.4543 110 58.5 101.046 58.5 90Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:r,x1:`24.5049`,y1:`83.1477`,x2:`22.4135`,y2:`17.2505`,gradientUnits:`userSpaceOnUse`},[...t[5]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`clipPath`,{id:a},[...t[6]||=[(0,f.createElementVNode)(`rect`,{width:`20`,height:`20`,fill:`white`,transform:`translate(68.5 80)`},null,-1)]])])]))}}),WO={width:`161`,height:`120`,viewBox:`0 0 161 120`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},GO=[`filter`],KO=[`fill`],qO=[`filter`],JO=[`fill`],YO=[`filter`],XO=[`fill`],ZO={x:`53.9647`,y:`62`,width:`56`,height:`56`},QO=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationDocuments`,setup(e){let t=(0,f.useId)(),n=`${t}-f0`,r=`${t}-f1`,i=`${t}-f2`,a=`${t}-p0`,o=`${t}-p1`,s=`${t}-p2`,c=`${t}-c`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,WO,[t[13]||=(0,f.createElementVNode)(`circle`,{cx:`81.9647`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${a})`,d:`M47.6914 79.1102L80.9299 63.6108C82.5987 62.8326 83.3207 60.8489 82.5425 59.1801L62.9132 17.0849L49.6211 12.2469L22.4259 24.9282C20.7571 25.7064 20.0351 27.6901 20.8133 29.359L43.2607 77.4975C44.0389 79.1663 46.0225 79.8883 47.6914 79.1102Z`},null,8,KO),t[0]||=(0,f.createElementVNode)(`path`,{d:`M82.7692 59.0745C83.6056 60.8685 82.8295 63.0009 81.0357 63.8374L47.797 79.3368C46.0031 80.1733 43.8707 79.3971 43.0342 77.6033L20.5867 29.4646L20.5131 29.2952C19.7999 27.5384 20.5824 25.5121 22.3202 24.7017L49.6095 11.9765L63.096 16.8852L82.7692 59.0745Z`,stroke:`black`,"stroke-opacity":`0.08`,"stroke-width":`0.5`},null,-1),t[1]||=(0,f.createElementVNode)(`path`,{d:`M49.6216 12.2471L62.9137 17.085L53.8487 21.3121L49.6216 12.2471Z`,fill:`#E3E8EF`},null,-1)],8,GO),(0,f.createElementVNode)(`g`,{filter:`url(#${r})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${o})`,d:`M63.5809 67.7831H100.256C102.097 67.7831 103.59 66.2904 103.59 64.4491V18.0022L93.5874 8H63.5809C61.7395 8 60.2468 9.49271 60.2468 11.3341V64.4491C60.2468 66.2904 61.7395 67.7831 63.5809 67.7831Z`},null,8,JO),t[2]||=(0,f.createElementVNode)(`path`,{d:`M103.84 64.4492C103.839 66.4285 102.235 68.0332 100.256 68.0332H63.5808C61.6015 68.0332 59.9969 66.4285 59.9968 64.4492V11.334L60.0017 11.1494C60.0978 9.25583 61.6633 7.75004 63.5808 7.75H93.6911L103.84 17.8984V64.4492Z`,stroke:`black`,"stroke-opacity":`0.08`,"stroke-width":`0.5`},null,-1),t[3]||=(0,f.createElementVNode)(`path`,{d:`M93.5873 8L103.589 18.0022H93.5873V8Z`,fill:`#E3E8EF`},null,-1)],8,qO),(0,f.createElementVNode)(`g`,{filter:`url(#${i})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${s})`,d:`M82.4392 63.5909L115.678 79.0903C117.347 79.8685 119.33 79.1465 120.108 77.4777L139.738 35.3825L134.9 22.0903L107.705 9.40903C106.036 8.63085 104.052 9.35286 103.274 11.0217L80.8266 59.1602C80.0484 60.8291 80.7704 62.8128 82.4392 63.5909Z`},null,8,XO),t[4]||=(0,f.createElementVNode)(`path`,{d:`M120.335 77.5835C119.498 79.3773 117.366 80.1535 115.572 79.317L82.3335 63.8176C80.5396 62.981 79.7635 60.8486 80.6 59.0547L103.047 10.916L103.13 10.7507C104.017 9.0752 106.072 8.37211 107.81 9.18243L135.1 21.9076L140.008 35.3941L120.335 77.5835Z`,stroke:`black`,"stroke-opacity":`0.08`,"stroke-width":`0.5`},null,-1),t[5]||=(0,f.createElementVNode)(`path`,{d:`M134.9 22.0903L139.738 35.3825L130.673 31.1554L134.9 22.0903Z`,fill:`#E3E8EF`},null,-1)],8,YO),t[14]||=(0,f.createElementVNode)(`circle`,{cx:`26.9647`,cy:`11`,r:`5`,fill:`#EEF2F6`},null,-1),t[15]||=(0,f.createElementVNode)(`circle`,{cx:`23.9647`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[16]||=(0,f.createElementVNode)(`circle`,{cx:`150.965`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[17]||=(0,f.createElementVNode)(`circle`,{cx:`139.965`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,ZO,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${c});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),t[18]||=(0,f.createElementVNode)(`g`,null,[(0,f.createElementVNode)(`path`,{d:`M61.9647 90C61.9647 78.9543 70.919 70 81.9647 70C93.0104 70 101.965 78.9543 101.965 90C101.965 101.046 93.0104 110 81.9647 110C70.919 110 61.9647 101.046 61.9647 90Z`,fill:`black`,"fill-opacity":`0.2`}),(0,f.createElementVNode)(`path`,{d:`M78.6314 93.3333L81.9647 90M81.9647 90L85.298 93.3333M81.9647 90V97.5M88.6314 93.9524C89.6493 93.1117 90.298 91.8399 90.298 90.4167C90.298 87.8854 88.246 85.8333 85.7147 85.8333C85.5326 85.8333 85.3623 85.7383 85.2698 85.5814C84.1831 83.7374 82.1767 82.5 79.8814 82.5C76.4296 82.5 73.6314 85.2982 73.6314 88.75C73.6314 90.4718 74.3276 92.0309 75.4538 93.1613`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`-0.595741`,y:`8.0199`,width:`104.547`,height:`112.499`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[6]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`filter`,{id:r,x:`39.7468`,y:`7.5`,width:`84.3428`,height:`100.783`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[7]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`filter`,{id:i,x:`59.4176`,y:`8`,width:`104.547`,height:`112.499`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[8]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:c,transform:`translate(-53.9647 -62)`},[...t[9]||=[(0,f.createElementVNode)(`path`,{d:`M61.9647 90C61.9647 78.9543 70.919 70 81.9647 70C93.0104 70 101.965 78.9543 101.965 90C101.965 101.046 93.0104 110 81.9647 110C70.919 110 61.9647 101.046 61.9647 90Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:a,x1:`45.7386`,y1:`79.2399`,x2:`19.2501`,y2:`31.4527`,gradientUnits:`userSpaceOnUse`},[...t[10]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:o,x1:`61.7562`,y1:`67.0755`,x2:`57.9453`,y2:`12.571`,gradientUnits:`userSpaceOnUse`},[...t[11]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:s,x1:`81.0846`,y1:`62.1785`,x2:`100.665`,y2:`11.17`,gradientUnits:`userSpaceOnUse`},[...t[12]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]])])]))}}),$O={width:`156`,height:`125`,viewBox:`0 0 156 125`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},ek=[`filter`],tk=[`fill`],nk=[`fill`],rk={x:`50.3462`,y:`62`,width:`56`,height:`56`},ik=[`clip-path`],ak=(0,f.defineComponent)({__name:`UIEmptyStateIllustrationRouteCard`,setup(e){let t=(0,f.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-p1`,a=`${t}-c`,o=`${t}-c1`;return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`svg`,$O,[t[9]||=(0,f.createElementVNode)(`circle`,{cx:`78.3462`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,f.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,f.createElementVNode)(`path`,{fill:`url(#${r})`,d:`M20.3462 16.1538C20.3462 13.8597 22.2059 12 24.5 12H131.115C133.409 12 135.269 13.8597 135.269 16.1538V79.8462C135.269 82.1403 133.409 84 131.115 84H24.5C22.2059 84 20.3462 82.1403 20.3462 79.8462V16.1538Z`},null,8,tk),t[0]||=(0,f.createElementVNode)(`path`,{d:`M131.116 11.8271C133.505 11.8273 135.442 13.7647 135.442 16.1543V79.8457C135.442 82.2353 133.505 84.1727 131.116 84.1729H24.5005C22.1108 84.1729 20.1733 82.2354 20.1733 79.8457V16.1543C20.1733 13.7646 22.1108 11.8271 24.5005 11.8271H131.116Z`,stroke:`black`,"stroke-opacity":`0.08`,"stroke-width":`0.346154`},null,-1),(0,f.createElementVNode)(`path`,{fill:`url(#${i})`,d:`M20.3462 16.1538C20.3462 13.8597 22.2059 12 24.5 12H131.115C133.409 12 135.269 13.8597 135.269 16.1538V28.6154H20.3462V16.1538Z`},null,8,nk),t[1]||=(0,f.createStaticVNode)(`<path d="M30.0385 34.8462C30.0385 34.0815 30.6584 33.4615 31.4231 33.4615H36.9615C37.7262 33.4615 38.3461 34.0815 38.3461 34.8462V40.3846C38.3461 41.1493 37.7262 41.7692 36.9615 41.7692H31.4231C30.6584 41.7692 30.0385 41.1493 30.0385 40.3846V34.8462Z" fill="#E3E8EF"></path><path d="M54.2692 47.3077C54.2692 46.543 54.8891 45.9231 55.6538 45.9231H61.1923C61.957 45.9231 62.5769 46.543 62.5769 47.3077V52.8462C62.5769 53.6109 61.957 54.2308 61.1923 54.2308H55.6538C54.8891 54.2308 54.2692 53.6109 54.2692 52.8462V47.3077Z" fill="#E3E8EF"></path><path d="M58.4231 57V62.1923" stroke="#E3E8EF" stroke-width="1.38462" stroke-linecap="round"></path><path d="M54.2692 66.6924C54.2692 65.9277 54.8891 65.3077 55.6538 65.3077H61.1923C61.957 65.3077 62.5769 65.9277 62.5769 66.6924V72.2308C62.5769 72.9955 61.957 73.6154 61.1923 73.6154H55.6538C54.8891 73.6154 54.2692 72.9955 54.2692 72.2308V66.6924Z" fill="#E3E8EF"></path><path d="M42.5 37.9051C42.5 36.9804 43.2497 36.2307 44.1744 36.2307L76.8346 36.2307C77.7593 36.2307 78.509 36.9804 78.509 37.9051C78.509 38.8299 77.7593 39.5796 76.8346 39.5796H44.1744C43.2497 39.5796 42.5 38.8299 42.5 37.9051Z" fill="#E3E8EF"></path><path d="M69.5 50.3667C69.5 49.4419 70.2497 48.6923 71.1744 48.6923L120.45 48.6923C121.375 48.6923 122.124 49.4419 122.124 50.3667C122.124 51.2914 121.375 52.0411 120.45 52.0411H71.1744C70.2497 52.0411 69.5 51.2914 69.5 50.3667Z" fill="#E3E8EF"></path><path d="M30.0948 50.3666C30.0948 49.4418 30.8445 48.6921 31.7692 48.6921L46.0179 48.6922C46.9426 48.6922 47.6923 49.4419 47.6923 50.3666C47.6923 51.2914 46.9426 52.0411 46.0179 52.0411L31.7692 52.041C30.8445 52.041 30.0948 51.2913 30.0948 50.3666Z" fill="#E3E8EF"></path><path d="M69.5 69.7513C69.5 68.8266 70.2497 68.0769 71.1744 68.0769L120.45 68.0769C121.375 68.0769 122.124 68.8266 122.124 69.7513C122.124 70.6761 121.375 71.4257 120.45 71.4257H71.1744C70.2497 71.4257 69.5 70.6761 69.5 69.7513Z" fill="#E3E8EF"></path><path d="M30.0868 21.2898C30.0868 20.365 30.8365 19.6154 31.7612 19.6154L64.4214 19.6154C65.3461 19.6154 66.0958 20.365 66.0958 21.2898C66.0958 22.2145 65.3461 22.9642 64.4214 22.9642H31.7612C30.8365 22.9642 30.0868 22.2145 30.0868 21.2898Z" fill="#CDD5DF"></path><path d="M104.518 21.2898C104.518 20.365 105.268 19.6154 106.192 19.6154L123.912 19.6154C124.836 19.6154 125.586 20.365 125.586 21.2898C125.586 22.2145 124.836 22.9642 123.912 22.9642H106.192C105.268 22.9642 104.518 22.2145 104.518 21.2898Z" fill="#CDD5DF"></path>`,10)],8,ek),t[10]||=(0,f.createElementVNode)(`circle`,{cx:`23.3462`,cy:`5`,r:`5`,fill:`#EEF2F6`},null,-1),t[11]||=(0,f.createElementVNode)(`circle`,{cx:`20.3462`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[12]||=(0,f.createElementVNode)(`circle`,{cx:`147.346`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[13]||=(0,f.createElementVNode)(`circle`,{cx:`136.346`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,f.openBlock)(),(0,f.createElementBlock)(`foreignObject`,rk,[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${a});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),(0,f.createElementVNode)(`g`,null,[t[3]||=(0,f.createElementVNode)(`path`,{d:`M58.3462 90C58.3462 78.9543 67.3005 70 78.3462 70C89.3918 70 98.3462 78.9543 98.3462 90C98.3462 101.046 89.3918 110 78.3462 110C67.3005 110 58.3462 101.046 58.3462 90Z`,fill:`black`,"fill-opacity":`0.2`},null,-1),(0,f.createElementVNode)(`g`,{"clip-path":`url(#${o})`},[...t[2]||=[(0,f.createElementVNode)(`path`,{d:`M78.3462 86.6666V90M78.3462 93.3333H78.3545M86.6795 90C86.6795 94.6023 82.9485 98.3333 78.3462 98.3333C73.7438 98.3333 70.0128 94.6023 70.0128 90C70.0128 85.3976 73.7438 81.6666 78.3462 81.6666C82.9485 81.6666 86.6795 85.3976 86.6795 90Z`,stroke:`white`,"stroke-width":`1.66667`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]],8,ik)]),(0,f.createElementVNode)(`defs`,null,[(0,f.createElementVNode)(`filter`,{id:n,x:`0`,y:`11.6538`,width:`155.615`,height:`112.692`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[4]||=[(0,f.createStaticVNode)(`<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="1.5" operator="erode" in="SourceAlpha" result="effect1_dropShadow"></feMorphology><feOffset dy="3"></feOffset><feGaussianBlur stdDeviation="1.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow"></feMorphology><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="4"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect3_dropShadow"></feMorphology><feOffset dy="20"></feOffset><feGaussianBlur stdDeviation="12"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.211765 0 0 0 0 0.254902 0 0 0 0 0.321569 0 0 0 0.08 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow" result="effect3_dropShadow"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow" result="shape"></feBlend>`,20)]]),(0,f.createElementVNode)(`clipPath`,{id:a,transform:`translate(-50.3462 -62)`},[...t[5]||=[(0,f.createElementVNode)(`path`,{d:`M58.3462 90C58.3462 78.9543 67.3005 70 78.3462 70C89.3918 70 98.3462 78.9543 98.3462 90C98.3462 101.046 89.3918 110 78.3462 110C67.3005 110 58.3462 101.046 58.3462 90Z`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:r,x1:`24.3483`,y1:`83.1477`,x2:`22.2555`,y2:`17.2506`,gradientUnits:`userSpaceOnUse`},[...t[6]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`linearGradient`,{id:i,x1:`24.3483`,y1:`28.4187`,x2:`24.2368`,y2:`13.1972`,gradientUnits:`userSpaceOnUse`},[...t[7]||=[(0,f.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,f.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,f.createElementVNode)(`clipPath`,{id:o},[...t[8]||=[(0,f.createElementVNode)(`rect`,{width:`20`,height:`20`,fill:`white`,transform:`translate(68.3462 80)`},null,-1)]])])]))}}),ok={key:1,class:`flex size-10 shrink-0 items-center justify-center rounded-lg border border-secondary`},sk=(0,f.defineComponent)({__name:`EmptyState`,props:{title:{},description:{default:null},icon:{default:null},illustration:{default:null},primaryAction:{default:null},secondaryAction:{default:null}},setup(e){let t=e,n={box:AO,"cloud-search":LO,"credit-card":UO,documents:QO,"route-card":ak};return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{align:`center`,justify:`center`,gap:`2xl`},{default:(0,f.withCtx)(()=>[t.illustration===null?t.icon===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,ok,[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{class:`size-5 text-primary`}))])):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(n[t.illustration]),{key:0})),(0,f.createVNode)((0,f.unref)(G),{gap:`xs`,align:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:t.title,class:`text-sm font-semibold text-secondary`},null,8,[`text`]),t.description===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:0,truncate:!1,text:t.description,class:`text-center text-xs text-tertiary`},null,8,[`text`]))]),_:1}),(0,f.createVNode)((0,f.unref)(I),null,{default:(0,f.withCtx)(()=>[t.secondaryAction===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(TO,{key:0,action:t.secondaryAction,variant:`secondary`},null,8,[`action`])),t.primaryAction===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(TO,{key:1,action:t.primaryAction},null,8,[`action`]))]),_:1})]),_:1}))}});function ck(e,t){switch(e){case`CONFIRM_UPLOAD_FAILED`:case`GET_FILE_INFO_FAILED`:case`UPLOAD_FAILED`:return t.uploadFailed;case`INVALID_MIME_TYPE`:return t.invalidType;case`PREPROCESSING_FAILED`:return t.preprocessingFailed;default:return e}}function lk(e){return e.startsWith(`image/`)}function uk(e){return Object.fromEntries(Object.entries(e).filter(([e])=>e===`name`||e===`onBlur`||e===`onFocus`||e.startsWith(`data-`)))}var dk={class:`text-sm font-medium text-brand-secondary`},fk=(0,f.defineComponent)({__name:`FormFileUploadDropzoneOverlay`,props:{isHoveringOverDropzone:{type:Boolean},isHoveringOverPage:{type:Boolean}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[t.isHoveringOverPage?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,class:(0,f.normalizeClass)([{"animate-pulse":!t.isHoveringOverDropzone},`pointer-events-none absolute inset-0 z-10 overflow-hidden rounded-xl border-[1.5px] border-dashed border-brand-500/50`]),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[t.isHoveringOverDropzone?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,scale:1.01},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.01},class:`absolute inset-0 flex items-center justify-center bg-brand-primary/90`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`p`,dk,(0,f.toDisplayString)((0,f.unref)(n).t(`component.form_file_upload.dropzone_overlay.title`)),1)]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`class`])):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),pk={class:`text-sm text-primary`},mk={class:`mt-xs text-xs text-tertiary`},hk=(0,f.defineComponent)({__name:`FormFileUploadEmptyState`,props:{id:{default:null},isHoveringOverDropzone:{type:Boolean},isMultiple:{type:Boolean},description:{},triggerAttrs:{default:void 0}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{opacity:0,scale:.98,filter:`blur(4px)`},animate:{opacity:1,scale:t.isHoveringOverDropzone?.995:1,filter:`blur(0px)`},exit:{opacity:0,scale:.98,filter:`blur(4px)`},class:`rounded-xl bg-secondary px-2xl py-xl`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`p`,pk,(0,f.toDisplayString)((0,f.unref)(n).t(`component.form_file_upload.empty_state.title`)),1),(0,f.createElementVNode)(`p`,mk,(0,f.toDisplayString)(t.description),1),(0,f.createVNode)((0,f.unref)(hT),null,{default:(0,f.withCtx)(({isDisabled:e})=>[(0,f.createVNode)((0,f.unref)(Y),(0,f.mergeProps)(t.triggerAttrs,{id:t.isMultiple?void 0:t.id??void 0,"icon-left":(0,f.unref)(jr),"is-disabled":e,label:(0,f.unref)(n).t(`component.form_file_upload.action.upload`),class:`mt-lg`,variant:`secondary`}),null,16,[`id`,`icon-left`,`is-disabled`,`label`])]),_:1})]),_:1},8,[`animate`]))}}),gk=(0,f.defineComponent)({__name:`FormFileUploadBlurhash`,props:{blurhash:{}},setup(e){let t=e,n=(0,f.ref)(null);function r(e,t){let{height:n,width:r}=t,i=rT(e,r,n),a=t.getContext(`2d`);if(a===null)return;let o=a.createImageData(r,n);o.data.set(i),a.putImageData(o,0,0)}function i(){n.value!==null&&r(t.blurhash,n.value)}return(0,f.onMounted)(()=>{i()}),(0,f.watch)(()=>t.blurhash,()=>{i()}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`canvas`,{ref_key:`canvasRef`,ref:n,width:`32`,height:`32`,class:`size-full`},null,512))}}),_k=[`src`,`alt`],vk=(0,f.defineComponent)({__name:`FormFileUploadImageDialog`,props:{isOpen:{type:Boolean,default:!1},fit:{},imageAlt:{},imageUrl:{}},emits:[`afterLeave`,`close`],setup(e){let t=e,n=(0,g.useI18n)();return(r,i)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Tv),{"is-open":e.isOpen,size:`lg`,"onUpdate:isOpen":i[0]||=e=>!e&&r.$emit(`close`),onAfterLeave:i[1]||=e=>r.$emit(`afterLeave`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Av),{description:t.imageAlt,"is-description-hidden":t.imageAlt.length===0,title:(0,f.unref)(n).t(`component.form_file_upload.preview.dialog_title`)},null,8,[`description`,`is-description-hidden`,`title`]),(0,f.createVNode)((0,f.unref)(CS),null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`img`,{src:t.imageUrl,alt:t.imageAlt,class:(0,f.normalizeClass)([{"object-contain":t.fit===`contain`,"object-cover":t.fit===`cover`},`mx-auto max-h-180 w-full rounded-lg`])},null,10,_k)]),_:1})]),_:1},8,[`is-open`]))}}),yk=[`id`],bk=[`aria-label`,`disabled`],xk=[`src`,`alt`],Sk=(0,f.defineComponent)({__name:`FormFileUploadImage`,props:{isZoomEnabled:{type:Boolean,default:!1},alt:{},blurhash:{default:null},fit:{},src:{}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,f.useId)(),i=Cv().create(vk),a=(0,f.ref)(!0),o=(0,f.computed)(()=>n.t(`component.form_file_upload.preview.open_image`));function s(){a.value=!1}function c(){t.isZoomEnabled&&i.open({fit:t.fit,imageAlt:t.alt,imageUrl:t.src})}return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{id:(0,f.unref)(r),class:`relative isolate overflow-hidden`},[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[a.value&&t.blurhash!==null?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,exit:{opacity:0},transition:{duration:.2},class:`absolute inset-0 z-1`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(gk,{blurhash:t.blurhash},null,8,[`blurhash`])]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1}),(0,f.createElementVNode)(`button`,{class:(0,f.normalizeClass)([{"pointer-events-none cursor-default":!t.isZoomEnabled},`block size-full cursor-pointer outline-none`]),"aria-label":o.value,disabled:!t.isZoomEnabled,type:`button`,onClick:c},[(0,f.createElementVNode)(`img`,{src:t.src,alt:t.alt,class:(0,f.normalizeClass)([{"object-contain":t.fit===`contain`,"object-cover":t.fit===`cover`},`size-full`]),onLoad:s},null,42,xk)],10,bk)],8,yk))}}),Ck=(0,f.defineComponent)({__name:`FormFileUploadListItemActions`,setup(e){let t=(0,g.useI18n)(),{isDisabled:n}=kw();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{class:`absolute right-0 h-full bg-linear-to-l from-secondary via-secondary via-80% px-lg opacity-0 duration-100 group-hover/form-file-upload-list-item:opacity-100 group-has-focus-visible/form-file-upload-list-item:opacity-100 pointer-coarse:opacity-100`,gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(pT),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(dr),"is-disabled":(0,f.unref)(n),label:(0,f.unref)(t).t(`component.form_file_upload.action.replace`),variant:`tertiary`,size:`sm`},null,8,[`icon`,`is-disabled`,`label`])]),_:1}),(0,f.createVNode)((0,f.unref)(fT),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(Dr),"is-disabled":(0,f.unref)(n),label:(0,f.unref)(t).t(`component.form_file_upload.action.delete`),variant:`tertiary`,size:`sm`},null,8,[`icon`,`is-disabled`,`label`])]),_:1})]),_:1}))}}),wk={key:0,class:`flex h-4.5 items-start`},Tk={class:`mt-sm h-1 w-40 overflow-hidden rounded-full bg-tertiary`},Ek=(0,f.defineComponent)({__name:`FormFileUploadListItemMetadata`,props:{item:{}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,f.computed)(()=>({invalidType:n.t(`component.form_file_upload.error.invalid_type`),preprocessingFailed:n.t(`component.form_file_upload.error.preprocessing_failed`),uploadFailed:n.t(`component.form_file_upload.error.upload_failed`)})),i=(0,f.computed)(()=>t.item.status===$.ERROR?ck(t.item.error,r.value):null);return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(G),{gap:`none`,class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:t.item.name,class:`text-sm text-primary`},null,8,[`text`]),t.item.status===(0,f.unref)($).UPLOADING||t.item.status===(0,f.unref)($).PENDING?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,wk,[(0,f.createElementVNode)(`div`,Tk,[t.item.status===(0,f.unref)($).UPLOADING?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,style:(0,f.normalizeStyle)({width:`${t.item.progress}%`}),class:`h-full bg-quaternary duration-100`},null,4)):(0,f.createCommentVNode)(``,!0)])])):t.item.status===(0,f.unref)($).SUCCESS?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:1,text:t.item.mimeType,class:`text-xs text-tertiary`},null,8,[`text`])):t.item.status===(0,f.unref)($).ERROR?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:2,text:i.value??``,class:`text-xs text-error-primary`},null,8,[`text`])):(0,f.createCommentVNode)(``,!0)]),_:1}))}}),Dk={key:0,class:`flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md`},Ok=(0,f.defineComponent)({__name:`FormFileUploadListItemPreview`,props:{item:{}},setup(e){let t=e,n=(0,f.computed)(()=>lk(t.item.mimeType)),r=(0,f.computed)(()=>t.item.status===$.SUCCESS?t.item.blurHash:null);return(e,i)=>t.item.url===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`div`,Dk,[n.value?((0,f.openBlock)(),(0,f.createBlock)(Sk,{key:0,src:t.item.url,"is-zoom-enabled":!0,blurhash:r.value,alt:t.item.name,fit:`cover`,class:`size-full`},null,8,[`src`,`blurhash`,`alt`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Kt),{key:1,class:`size-4.5 text-disabled`}))]))}}),kk={class:`absolute right-0 flex h-full items-center bg-linear-to-l from-secondary via-secondary via-80% px-lg`},Ak=(0,f.defineComponent)({__name:`FormFileUploadListItemSpinner`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,kk,[(0,f.createVNode)((0,f.unref)(To),{class:`size-3.5 text-tertiary`})]))}}),jk=(0,f.defineComponent)({__name:`FormFileUploadListItem`,props:{item:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(uT),{item:t.item},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{gap:`lg`,class:`group group/form-file-upload-list-item relative max-w-full overflow-hidden rounded-xl bg-secondary px-lg py-md`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Ok,{item:t.item},null,8,[`item`]),(0,f.createVNode)(Ek,{item:t.item},null,8,[`item`]),t.item.status===(0,f.unref)($).PENDING||t.item.status===(0,f.unref)($).UPLOADING?((0,f.openBlock)(),(0,f.createBlock)(Ak,{key:0})):t.item.status===(0,f.unref)($).SUCCESS||t.item.status===(0,f.unref)($).ERROR?((0,f.openBlock)(),(0,f.createBlock)(Ck,{key:1})):(0,f.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`item`]))}}),Mk=(0,f.defineComponent)({__name:`FormFileUploadList`,props:{items:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{opacity:0,transform:`scale(0.98)`},animate:{opacity:1,transform:`scale(1)`},exit:{opacity:0,transform:`scale(0.98)`},as:`ul`,class:`flex w-full flex-col gap-sm`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{initial:!1,mode:`popLayout`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.items,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:e.key,initial:{opacity:+(t===0),transform:t===0?`scale(1) translateY(0)`:`scale(0.99) translateY(-0.5rem)`},animate:{opacity:1,transform:`scale(1) translateY(0)`},exit:{opacity:0,transform:`scale(0.99) translateY(-0.5rem)`},layout:!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(jk,{item:e},null,8,[`item`])]),_:2},1032,[`initial`]))),128))]),_:1})]),_:1}))}}),Nk={class:`relative ml-auto size-4`},Pk={class:`relative`},Fk={class:`text-xs font-medium text-primary`},Ik={class:`max-w-full truncate text-xxs/4 text-tertiary`},Lk=(0,f.defineComponent)({inheritAttrs:!1,__name:`FormFileUpload`,props:(0,f.mergeModels)((0,f.mergeDefaults)({description:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},accept:{},isPublic:{type:Boolean},isValidFile:{type:[Function,null]},preprocess:{type:[Function,null]}},{...ry,...iy,isPublic:!1,isValidFile:null,preprocess:null}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),r=(0,f.useAttrs)(),i=(0,g.useI18n)(),a=t.id??(0,f.useId)(),o=Cw(),s=(0,f.computed)(()=>Array.isArray(n.value)),c=(0,f.computed)(()=>uk(r)),l=(0,f.computed)(()=>({invalidType:i.t(`component.form_file_upload.error.invalid_type`),preprocessingFailed:i.t(`component.form_file_upload.error.preprocessing_failed`),uploadFailed:i.t(`component.form_file_upload.error.upload_failed`)}));function u(e){for(let t of e)o.show({title:t.file.name,message:ck(t.error,l.value)})}function d(e){return URL.createObjectURL(e)}return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.MotionConfig),{transition:{duration:.3,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(mT),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,accept:t.accept,"disabled-reason":t.disabledReason,"is-disabled":t.isDisabled,"is-public":t.isPublic,"is-valid-file":t.isValidFile,preprocess:t.preprocess,onFilesRejected:u},{default:(0,f.withCtx)(({items:n})=>[(0,f.createVNode)((0,f.unref)(Ay),{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,f.normalizeClass)(t.class),style:(0,f.normalizeStyle)(t.style),for:(0,f.unref)(a),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-error-message-hidden":t.isErrorMessageHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,Nk,[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[n.length>0&&s.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},class:`absolute top-1/2 right-0 -translate-y-1/2`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(hT),null,{default:(0,f.withCtx)(({isDisabled:e})=>[(0,f.createVNode)((0,f.unref)(X),(0,f.mergeProps)(c.value,{id:(0,f.unref)(a),icon:(0,f.unref)(sr),"is-disabled":e,label:(0,f.unref)(i).t(`component.form_file_upload.action.add_files`),size:`xs`,variant:`tertiary`}),null,16,[`id`,`icon`,`is-disabled`,`label`])]),_:1})]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:2},1024)])]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Uw),null,{default:(0,f.withCtx)(({isHoveringOverPage:e,isHoveringOverDropzone:r})=>[(0,f.createElementVNode)(`div`,Pk,[(0,f.createVNode)(fk,{"is-hovering-over-page":e,"is-hovering-over-dropzone":r},null,8,[`is-hovering-over-page`,`is-hovering-over-dropzone`]),(0,f.createVNode)((0,f.unref)(Cb),null,{default:(0,f.withCtx)(()=>[n.length>0?((0,f.openBlock)(),(0,f.createBlock)(Mk,{key:0,items:n},null,8,[`items`])):((0,f.openBlock)(),(0,f.createBlock)(hk,{key:1,id:(0,f.unref)(a),"is-hovering-over-dropzone":r,"is-multiple":s.value,description:t.description,"trigger-attrs":c.value},null,8,[`id`,`is-hovering-over-dropzone`,`is-multiple`,`description`,`trigger-attrs`]))]),_:2},1024),(0,f.createVNode)((0,f.unref)(Bw),null,{default:(0,f.withCtx)(({files:e})=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[e[0]===void 0?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.3,type:`spring`,bounce:0},class:`absolute bottom-3 left-1/2 w-[95%] -translate-x-1/2 translate-y-full overflow-hidden rounded-xl border border-tertiary bg-primary p-sm pr-md shadow-lg/5`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{justify:`between`,class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(I),{class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sk,{src:d(e[0]),"is-zoom-enabled":!0,alt:e[0].name,fit:`cover`,class:`size-8 shrink-0 rounded-md`},null,8,[`src`,`alt`]),(0,f.createVNode)((0,f.unref)(G),{gap:`none`,class:`overflow-hidden`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,Fk,(0,f.toDisplayString)((0,f.unref)(i).t(`component.form_file_upload.clipboard.title`)),1),(0,f.createElementVNode)(`span`,Ik,(0,f.toDisplayString)(e[0].name),1)]),_:2},1024)]),_:2},1024),(0,f.createVNode)((0,f.unref)(I),{gap:`xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Hw),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Y),{label:(0,f.unref)(i).t(`component.form_file_upload.action.upload`),size:`sm`,variant:`secondary`},null,8,[`label`])]),_:1}),(0,f.createVNode)((0,f.unref)(Vw),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(zr),label:(0,f.unref)(i).t(`component.form_file_upload.action.hide_clipboard_suggestion`),variant:`tertiary`,size:`sm`},null,8,[`icon`,`label`])]),_:1})]),_:1})]),_:2},1024)]),_:2},1024))]),_:2},1024)]),_:1})])]),_:2},1024)]),_:2},1032,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`])]),_:3},8,[`modelValue`,`accept`,`disabled-reason`,`is-disabled`,`is-public`,`is-valid-file`,`preprocess`])]),_:3}))}}),Rk=(0,f.defineComponent)({__name:`Interactable`,props:{class:{default:null}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,class:(0,f.normalizeClass)((0,f.unref)(Ey)(`
|
|
964
964
|
rounded-sm outline-fg-brand-primary
|
|
965
965
|
focus-visible:outline-2
|
|
966
966
|
disabled:cursor-not-allowed
|
|
967
|
-
`,t.class))},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}});function
|
|
967
|
+
`,t.class))},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}});function zk(){let e=(0,f.ref)(!1),t=(0,f.shallowRef)(null),n=(0,f.computed)(()=>t.value?.isOpen.value??!1);function r(){t.value?.toggle()}function i(n,r,i){t.value={isOpen:n,isToggleHidden:i,toggle:r},e.value=!0}function a(){t.value=null,e.value=!1}mE({hasDetailPane:e,isOpen:n,isToggleHidden:(0,f.computed)(()=>t.value?.isToggleHidden??!1),registerDetailPane:i,toggle:r,unregisterDetailPane:a})}var Bk=(0,f.defineComponent)({__name:`DashboardPageHeaderBreadcrumbs`,props:{breadcrumbs:{}},setup(e){let t=e;return(e,n)=>t.breadcrumbs.length>0?((0,f.openBlock)(),(0,f.createBlock)(vT,{key:0},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.breadcrumbs,(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:`${e.label}-${n}`},[(0,f.createVNode)(gT,{icon:e.icon,to:e.to,label:e.label},null,8,[`icon`,`to`,`label`]),n<t.breadcrumbs.length-1?((0,f.openBlock)(),(0,f.createBlock)(yT,{key:0})):(0,f.createCommentVNode)(``,!0)],64))),128))]),_:1})):(0,f.createCommentVNode)(``,!0)}}),Vk=(0,f.defineComponent)({__name:`DashboardPageHeaderSidebarToggle`,setup(e){let{isSidebarOpen:t}=Q(),n=(0,g.useI18n)(),r=(0,p.createAction)({id:`toggle-main-sidebar`,name:()=>n.t(`action.global.toggle_main_sidebar.name`),execute:()=>{a()},group:(0,p.useActionGroup)().navigation,icon:()=>t.value?Yn:Ln,keyboardShortcut:{key:`B`,mod:!0},keywords:n.t(`action.global.toggle_main_sidebar.keywords`).split(` `)}),i=(0,f.computed)(()=>t.value?n.t(`component.dashboard_page_header_sidebar_toggle.collapse`):n.t(`component.dashboard_page_header_sidebar_toggle.expand`));function a(){t.value=!t.value}return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(W,{label:i.value,"keyboard-shortcut":{key:`B`,mod:!0}},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Cs,{action:(0,f.unref)(r),"is-current-context-only":!1},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Z),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.Toggle),{"model-value":(0,f.unref)(t),"data-state":(0,f.unref)(t)?`open`:`closed`,class:`group/toggle -ml-xxs flex size-6 items-center justify-center rounded-sm duration-150 hover:bg-secondary-hover`},{default:(0,f.withCtx)(()=>[...n[0]||=[(0,f.createElementVNode)(`div`,{class:`flex h-3 w-3.5 justify-start rounded-[0.1875rem] border border-fg-tertiary p-[0.09375rem] duration-150 group-data-[state=open]/toggle:border-fg-tertiary dark:group-data-[state=open]/toggle:border-fg-secondary`},[(0,f.createElementVNode)(`div`,{class:`h-full w-0.5 rounded-[1px] bg-fg-tertiary duration-150 group-data-[state=open]/toggle:w-1 group-data-[state=open]/toggle:bg-fg-tertiary dark:group-data-[state=open]/toggle:bg-fg-secondary`})],-1)]]),_:1},8,[`model-value`,`data-state`])]),_:1})]),_:1},8,[`action`])]),_:1},8,[`label`]))}}),Hk={type:`button`,class:`flex h-7 w-full max-w-60 items-center gap-sm rounded-md! bg-fg-primary/4 pr-sm pl-md duration-100 hover:bg-fg-primary/7 hover:brightness-98 dark:bg-primary/90 dark:hover:bg-primary/90 dark:hover:brightness-110`},Uk={class:`flex-1 truncate text-left text-xxs text-placeholder`},Wk=(0,f.defineComponent)({__name:`TopBarCommandMenuSearch`,setup(e){let t=(0,g.useI18n)(),n=SS();return(e,r)=>((0,f.openBlock)(),(0,f.createBlock)(Cs,{action:(0,f.unref)(n),"is-current-context-only":!0},{default:(0,f.withCtx)(({keyboardShortcut:e})=>[(0,f.createVNode)(Z,null,{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,Hk,[(0,f.createVNode)((0,f.unref)(hr),{class:`size-3.5 shrink-0 text-quaternary`}),(0,f.createElementVNode)(`span`,Uk,(0,f.toDisplayString)((0,f.unref)(t).t(`component.top_bar.search`)),1),e===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(di,{key:0,"keyboard-shortcut":e,"is-key-hold-visualization-enabled":!0},null,8,[`keyboard-shortcut`]))])]),_:2},1024)]),_:1},8,[`action`]))}});function Gk(){let e=(0,y.useRouter)(),t=(0,f.ref)(e.options.history.state),n=(0,f.computed)(()=>t.value.back!==null),r=(0,f.computed)(()=>t.value.forward!==null);e.afterEach(()=>{t.value=e.options.history.state});function i(){n.value&&e.back()}function a(){r.value&&e.forward()}return{canGoBack:n,canGoForward:r,goBack:i,goForward:a}}var Kk=(0,f.defineComponent)({__name:`TopBarNavigationArrows`,setup(e){let t=(0,g.useI18n)(),{canGoBack:n,canGoForward:r,goBack:i,goForward:a}=Gk();return(e,o)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{gap:`xxs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(Pt),"is-disabled":!(0,f.unref)(n),label:(0,f.unref)(t).t(`component.top_bar.navigation.back`),"keyboard-shortcut":{key:`ArrowLeft`,mod:!0},variant:`tertiary`,size:`sm`,onClick:(0,f.unref)(i)},null,8,[`icon`,`is-disabled`,`label`,`onClick`]),(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(Rt),"is-disabled":!(0,f.unref)(r),label:(0,f.unref)(t).t(`component.top_bar.navigation.forward`),"keyboard-shortcut":{key:`ArrowRight`,mod:!0},variant:`tertiary`,size:`sm`,onClick:(0,f.unref)(a)},null,8,[`icon`,`is-disabled`,`label`,`onClick`])]),_:1}))}}),qk={class:`flex shrink-0 items-center px-xl pb-md`},Jk={class:`flex flex-1 items-center`},Yk={class:`sr-only`},Xk={key:3,class:`ml-lg text-xs text-primary`},Zk={class:`flex flex-1 items-center justify-center`},Qk={class:`flex h-full flex-1 items-center justify-end`},$k=(0,f.defineComponent)({__name:`TopBar`,setup(e){let{showNavigationArrowsInTopBar:t}=J(),{title:n,breadcrumbs:r}=vE(),{hasDetailPane:i,isToggleHidden:a}=hE();return(e,o)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,qk,[(0,f.createElementVNode)(`div`,Jk,[(0,f.createVNode)(Vk),(0,f.unref)(r).length>0||(0,f.unref)(n)!==null?((0,f.openBlock)(),(0,f.createBlock)($o,{key:0,class:`ml-sm h-4`,orientation:`vertical`})):(0,f.createCommentVNode)(``,!0),(0,f.unref)(t)?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[(0,f.createVNode)(Kk,{class:`ml-sm`}),(0,f.unref)(r).length>0||(0,f.unref)(n)!==null?((0,f.openBlock)(),(0,f.createBlock)($o,{key:0,class:`ml-sm h-4`,orientation:`vertical`})):(0,f.createCommentVNode)(``,!0)],64)):(0,f.createCommentVNode)(``,!0),(0,f.unref)(r).length>0?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:2},[(0,f.createElementVNode)(`h1`,Yk,(0,f.toDisplayString)((0,f.unref)(n)),1),(0,f.createVNode)(Bk,{breadcrumbs:(0,f.unref)(r),class:`ml-lg`},null,8,[`breadcrumbs`])],64)):(0,f.unref)(n)===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`h1`,Xk,(0,f.toDisplayString)((0,f.unref)(n)),1))]),(0,f.createElementVNode)(`div`,Zk,[(0,f.createVNode)(Wk)]),(0,f.createElementVNode)(`div`,Qk,[(0,f.renderSlot)(e.$slots,`actions`),(0,f.unref)(i)&&!(0,f.unref)(a)?((0,f.openBlock)(),(0,f.createBlock)(eD,{key:0})):(0,f.createCommentVNode)(``,!0)])]))}}),eA=(0,f.defineComponent)({__name:`MainContent`,setup(e){let{isFloatingSidebar:t,isSidebarOpen:n,collapsedVariant:r,sidebarWidth:i}=Q(),a=np();zk();let{isBrandedActive:o}=qx(),s=(0,f.computed)(()=>t.value?`0.5rem`:r.value===`minified`||n.value?i.value:`0.5rem`);return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{initial:{paddingLeft:s.value},animate:{paddingLeft:s.value},transition:{duration:(0,f.unref)(a)?0:.3,type:`spring`,bounce:0},class:(0,f.normalizeClass)([(0,f.unref)(o)?null:`bg-secondary`,`flex size-full flex-col overflow-hidden p-md`])},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)((0,f.unref)(o)?[`default`,`branded`]:null)},[(0,f.createVNode)($k,null,{actions:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`top-bar-actions`)]),_:3})],2),(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`animate`,`transition`,`class`]))}}),tA={},nA={width:`360`,height:`585`,viewBox:`0 0 360 585`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:`pointer-events-none absolute bottom-0 left-0`};function rA(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`svg`,nA,[...t[0]||=[(0,f.createStaticVNode)(`<g opacity="0.4" filter="url(#filter0_f_5410_8853)"><path d="M-39 642L13.5 84L74.5 525L276 577.5L-39 642Z" class="fill-corner-highlight"></path></g><defs><filter id="filter0_f_5410_8853" x="-123" y="0" width="483" height="726" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="42" result="effect1_foregroundBlur_5410_8853"></feGaussianBlur></filter></defs>`,2)]])}var iA=H(tA,[[`render`,rA]]),aA=(0,f.defineComponent)({__name:`MainLayout`,props:{variant:{default:`default`}},setup(e){let t=e,n=(0,f.computed)(()=>t.variant===`branded`);return Gx({isBrandedActive:n,variant:(0,f.computed)(()=>t.variant)}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)([n.value?`
|
|
968
968
|
dark:bg-primary
|
|
969
969
|
light:bg-linear-to-tr light:from-brand-950 light:to-brand-800
|
|
970
|
-
`:null,`relative flex h-dvh w-full overflow-hidden`])},[(0,f.renderSlot)(e.$slots,`default`),(0,f.createVNode)(
|
|
970
|
+
`:null,`relative flex h-dvh w-full overflow-hidden`])},[(0,f.renderSlot)(e.$slots,`default`),(0,f.createVNode)(iA,{class:(0,f.normalizeClass)(n.value?`light:hidden`:null)},null,8,[`class`])],2))}}),oA=V({slots:{input:`
|
|
971
971
|
size-full truncate bg-transparent px-md text-xs text-primary outline-none
|
|
972
972
|
placeholder:text-placeholder
|
|
973
973
|
read-only:cursor-default
|
|
974
974
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
975
975
|
disabled:placeholder:text-fg-disabled-subtle
|
|
976
|
-
`,leftControl:`pl-xs`,rightControl:`pr-xs`},variants:{hasControls:{true:{input:`text-center`}}}}),
|
|
976
|
+
`,leftControl:`pl-xs`,rightControl:`pr-xs`},variants:{hasControls:{true:{input:`text-center`}}}}),sA=(0,f.defineComponent)({inheritAttrs:!1,__name:`NumberField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({hasControls:{type:Boolean},formatOptions:{},max:{},min:{},showControls:{type:Boolean},step:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...ry,...iy,...ay,...oy,hasControls:!1,formatOptions:null,max:null,min:null,step:1}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,f.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=/[\s.,`]/g,a=/[\s.,`](?=\d+$)/,o=/[.,]/g,s=/\D/g,c=(0,f.useModel)(e,`modelValue`),l=(0,f.computed)(()=>n.hasControls||n.showControls===!0),u=(0,f.computed)(()=>oA({hasControls:l.value})),d=(0,f.ref)(c.value),p=(0,f.ref)(!1);(0,f.watch)(()=>c.value,e=>{p.value||(d.value=e)});let m=(0,f.useAttrs)(),_=(0,g.useI18n)(),v=n.id??(0,f.useId)(),{isError:y,ariaBusy:b,ariaDescribedBy:x,ariaInvalid:S}=ty(v,n),C=J(),w=(0,f.computed)(()=>ne(C.numberFormat.value));function T(e,t){let n=new Intl.NumberFormat(t).format(12345.6),r=n.match(i)?.[0],o=n.match(a)?.[0],s=e;return r&&(s=s.replaceAll(r,``)),o&&(s=s.replace(o,`.`)),Number(s)}function E(e){p.value=!0;let t=e.target.value;if(t===``){c.value=null;return}let n=D(t);Number.isNaN(n)||(c.value=n)}function ee(){d.value=c.value,p.value=!1}function D(e){o.lastIndex=0;let t=[...e.matchAll(o)];if(t.length===0)return Number(e);let n=t.map(e=>e[0]),r=[...new Set(n)];if(r.length===2){let t=n.at(-1),i=r.find(e=>e!==t);return Number(e.replaceAll(i,``).replace(t,`.`))}let i=r[0];if(t.length>1)return Number(e.replaceAll(i,``));if(e.startsWith(`0${i}`))return Number(e.replace(i,`.`));let a=e.slice(e.lastIndexOf(i)+1).replace(s,``);return a.length<=2?Number(e.replace(i,`.`)):a.length>=4?Number(e.replaceAll(i,``)):T(e,w.value)}function te(e){d.value=c.value,p.value=!1,r(`blur`,e)}return(0,f.watch)(d,()=>{c.value=d.value??null}),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,label:n.label,class:(0,f.normalizeClass)(n.class),style:(0,f.normalizeStyle)(n.style),for:(0,f.unref)(v),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage,"is-error-message-hidden":n.isErrorMessageHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.NumberFieldRoot),(0,f.mergeProps)((0,f.unref)(m),{id:(0,f.unref)(v),modelValue:d.value,"onUpdate:modelValue":t[1]||=e=>d.value=e,readonly:n.isReadonly,required:n.isRequired,"disable-wheel-change":!0,disabled:n.isDisabled||n.isReadonly,"format-options":n.formatOptions??void 0,step:n.step,"step-snapping":!0,"as-child":!1,locale:w.value,name:n.name??void 0,max:n.max??void 0,min:n.min??void 0}),{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sy,{"icon-left":n.iconLeft,"icon-right":n.iconRight,"is-loading":n.isLoading,"is-error":(0,f.unref)(y),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly},{left:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`left`,{},()=>[l.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,class:(0,f.normalizeClass)(u.value.leftControl()),align:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.NumberFieldDecrement),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(X,{"is-tooltip-disabled":!0,"is-disabled":n.isDisabled||n.isReadonly||n.min===d.value,icon:(0,f.unref)(rr),label:(0,f.unref)(_).t(`component.number_field.decrement`),variant:`tertiary`,size:`xs`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})]),_:1},8,[`class`])):(0,f.createCommentVNode)(``,!0)])]),right:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`right`,{},()=>[l.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,class:(0,f.normalizeClass)(u.value.rightControl()),align:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.NumberFieldIncrement),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(X,{"is-tooltip-disabled":!0,"is-disabled":n.isDisabled||n.isReadonly||n.max===d.value,icon:(0,f.unref)(sr),label:(0,f.unref)(_).t(`component.number_field.increment`),variant:`tertiary`,size:`xs`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})]),_:1},8,[`class`])):(0,f.createCommentVNode)(``,!0)])]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.NumberFieldInput),{"aria-describedby":(0,f.unref)(x),"aria-required":n.isRequired,autocomplete:n.autocomplete??void 0,"aria-busy":(0,f.unref)(b),"aria-invalid":(0,f.unref)(S),placeholder:n.placeholder??void 0,class:(0,f.normalizeClass)(u.value.input()),"data-field-wrapper":``,onInput:E,onKeydown:(0,f.withKeys)(ee,[`enter`]),onFocus:t[0]||=(0,f.withModifiers)(()=>{},[`prevent`]),onBlur:te},null,8,[`aria-describedby`,`aria-required`,`autocomplete`,`aria-busy`,`aria-invalid`,`placeholder`,`class`])]),_:3},8,[`icon-left`,`icon-right`,`is-loading`,`is-error`,`is-disabled`,`is-readonly`])]),_:3},16,[`id`,`modelValue`,`readonly`,`required`,`disabled`,`format-options`,`step`,`locale`,`name`,`max`,`min`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`]))}}),cA={AC:`40123`,AD:`312345`,AE:`501234567`,AF:`701234567`,AG:`2684641234`,AI:`2642351234`,AL:`672123456`,AM:`77123456`,AO:`923123456`,AR:`91123456789`,AS:`6847331234`,AT:`664123456`,AU:`412345678`,AW:`5601234`,AX:`412345678`,AZ:`401234567`,BA:`61123456`,BB:`2462501234`,BD:`1812345678`,BE:`450001234`,BF:`70123456`,BG:`43012345`,BH:`36001234`,BI:`79561234`,BJ:`0195123456`,BL:`690001234`,BM:`4413701234`,BN:`7123456`,BO:`71234567`,BQ:`3181234`,BR:`11961234567`,BS:`2423591234`,BT:`17123456`,BW:`71123456`,BY:`294911911`,BZ:`6221234`,CA:`5062345678`,CC:`412345678`,CD:`991234567`,CF:`70012345`,CG:`061234567`,CH:`781234567`,CI:`0123456789`,CK:`71234`,CL:`221234567`,CM:`671234567`,CN:`13123456789`,CO:`3211234567`,CR:`83123456`,CU:`51234567`,CV:`9911234`,CW:`95181234`,CX:`412345678`,CY:`96123456`,CZ:`601123456`,DE:`15123456789`,DJ:`77831001`,DK:`34412345`,DM:`7672251234`,DO:`8092345678`,DZ:`551234567`,EC:`991234567`,EE:`51234567`,EG:`1001234567`,EH:`650123456`,ER:`7123456`,ES:`612345678`,ET:`911234567`,FI:`412345678`,FJ:`7012345`,FK:`51234`,FM:`3501234`,FO:`211234`,FR:`612345678`,GA:`06031234`,GB:`7400123456`,GD:`4734031234`,GE:`555123456`,GF:`694201234`,GG:`7781123456`,GH:`231234567`,GI:`57123456`,GL:`221234`,GM:`3012345`,GN:`601123456`,GP:`690001234`,GQ:`222123456`,GR:`6912345678`,GT:`51234567`,GU:`6713001234`,GW:`955012345`,GY:`6091234`,HK:`51234567`,HN:`91234567`,HR:`921234567`,HT:`34101234`,HU:`201234567`,ID:`812345678`,IE:`850123456`,IL:`502345678`,IM:`7924123456`,IN:`8123456789`,IO:`3801234`,IQ:`7912345678`,IR:`9123456789`,IS:`6111234`,IT:`3123456789`,JE:`7797712345`,JM:`8762101234`,JO:`790123456`,JP:`9012345678`,KE:`712123456`,KG:`700123456`,KH:`91234567`,KI:`72001234`,KM:`3212345`,KN:`8697652917`,KP:`1921234567`,KR:`1020000000`,KW:`50012345`,KY:`3453231234`,KZ:`7710009998`,LA:`2023123456`,LB:`71123456`,LC:`7582845678`,LI:`660234567`,LK:`712345678`,LR:`770123456`,LS:`50123456`,LT:`61234567`,LU:`628123456`,LV:`21234567`,LY:`912345678`,MA:`650123456`,MC:`612345678`,MD:`62112345`,ME:`60123456`,MF:`690001234`,MG:`321234567`,MH:`2351234`,MK:`72345678`,ML:`65012345`,MM:`92123456`,MN:`88123456`,MO:`66123456`,MP:`6702345678`,MQ:`696201234`,MR:`22123456`,MS:`6644923456`,MT:`96961234`,MU:`52512345`,MV:`7712345`,MW:`991234567`,MX:`2221234567`,MY:`123456789`,MZ:`821234567`,NA:`811234567`,NC:`751234`,NE:`93123456`,NF:`381234`,NG:`8021234567`,NI:`81234567`,NL:`612345678`,NO:`40612345`,NP:`9841234567`,NR:`5551234`,NU:`8884012`,NZ:`211234567`,OM:`92123456`,PA:`61234567`,PE:`912345678`,PF:`87123456`,PG:`70123456`,PH:`9051234567`,PK:`3012345678`,PL:`512345678`,PM:`551234`,PR:`7872345678`,PS:`599123456`,PT:`912345678`,PW:`6201234`,PY:`961456789`,QA:`33123456`,RE:`692123456`,RO:`712034567`,RS:`601234567`,RU:`9123456789`,RW:`720123456`,SA:`512345678`,SB:`7421234`,SC:`2510123`,SD:`911231234`,SE:`701234567`,SG:`81234567`,SH:`51234`,SI:`31234567`,SJ:`41234567`,SK:`912123456`,SL:`25123456`,SM:`66661212`,SN:`701234567`,SO:`71123456`,SR:`7412345`,SS:`977123456`,ST:`9812345`,SV:`70123456`,SX:`7215205678`,SY:`944567890`,SZ:`76123456`,TA:`8999`,TC:`6492311234`,TD:`63012345`,TG:`90112345`,TH:`812345678`,TJ:`917123456`,TK:`7290`,TL:`77212345`,TM:`66123456`,TN:`20123456`,TO:`7715123`,TR:`5012345678`,TT:`8682911234`,TV:`901234`,TW:`912345678`,TZ:`621234567`,UA:`501234567`,UG:`712345678`,US:`2015550123`,UY:`94231234`,UZ:`912345678`,VA:`3123456789`,VC:`7844301234`,VE:`4121234567`,VG:`2843001234`,VI:`3406421234`,VN:`912345678`,VU:`5912345`,WF:`821234`,WS:`7212345`,XK:`43201234`,YE:`712345678`,YT:`639012345`,ZA:`711234567`,ZM:`955123456`,ZW:`712345678`},lA=V({slots:{countryFlag:`
|
|
977
977
|
block h-3.5 w-5 shrink-0 overflow-hidden rounded-xxs
|
|
978
978
|
[&>svg]:size-full [&>svg]:object-cover
|
|
979
979
|
`,countryTrigger:`
|
|
@@ -988,7 +988,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
988
988
|
read-only:cursor-default
|
|
989
989
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
990
990
|
disabled:placeholder:text-fg-disabled-subtle
|
|
991
|
-
`},variants:{size:{md:{countryTrigger:`ml-xxs h-6.5`,input:`px-md`},sm:{countryTrigger:`ml-xxs h-5.5`,input:`px-sm`}}}}),
|
|
991
|
+
`},variants:{size:{md:{countryTrigger:`ml-xxs h-6.5`,input:`px-md`},sm:{countryTrigger:`ml-xxs h-5.5`,input:`px-sm`}}}}),uA=[`disabled`,`aria-expanded`,`aria-label`],dA=[`src`],fA=[`id`,`value`,`disabled`,`readonly`,`aria-describedby`,`aria-busy`,`aria-invalid`,`aria-required`,`placeholder`,`name`],pA=(0,f.defineComponent)({inheritAttrs:!1,__name:`PhoneNumberField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({defaultCountryCode:{},preferredCountryCodes:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...ry,...iy,...sy(ay,`placeholder`),...oy,defaultCountryCode:`BE`,preferredCountryCodes:()=>[],size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e,{expose:t}){let n=e,r=/\d/g,i=(0,f.useModel)(e,`modelValue`),a=J(),o=(0,f.useAttrs)(),s=n.id??(0,f.useId)(),c=(0,f.useTemplateRef)(`input`),l=(0,f.useTemplateRef)(`fieldWrapper`),u=(0,f.computed)(()=>l.value?.$el??null),{isError:d,ariaBusy:p,ariaDescribedBy:m,ariaInvalid:g,ariaRequired:_}=ty(s,n),{contains:v}=(0,h.useFilter)(),y=(0,f.computed)(()=>lA({size:n.size})),b=(0,f.computed)(()=>a?.locale.value??navigator.language),x=(0,f.ref)(k()),S=(0,f.ref)(``),C=(0,f.computed)(()=>U_(x.value)),w=(0,f.computed)(()=>`+${Qf(x.value)}`),T=(0,f.computed)(()=>W_(x.value,b.value)??x.value),E=(0,f.computed)(()=>new Xf(x.value));function ee(e){let t=Qf(x.value).toString();return ep(e,x.value).replace(`+${t}`,``).trim()}let D=(0,f.computed)(()=>{let e=$f(x.value,cA);return e===void 0?`000 00 00 00`:ee(e.number).replace(r,`0`)}),te=(0,f.computed)({get:()=>i.value===null?null:ee(i.value),set:e=>{if(e===null||e===``){i.value=null;return}if(Yf(e,x.value)===`TOO_LONG`){let e=structuredClone(i.value);i.value=``,(0,f.nextTick)(()=>{i.value=e});return}let t=`+${Qf(x.value)} ${e}`;if(E.value.reset(),E.value.input(t),E.value.isValid()){i.value=E.value.getNumber()?.formatInternational()??t;return}i.value=t}});function O(e){return{type:`option`,value:e}}let ne=(0,f.computed)(()=>{let e=n.preferredCountryCodes??[],t=S.value.trim(),r=Zf(),i=t?r.filter(e=>re(e,t)):r,a={type:`separator`};if(e.length===0||t)return i.map(O);let o=e.filter(e=>i.includes(e)),s=i.filter(t=>!e.includes(t)),c=o.length>0&&s.length>0;return[...o.map(O),...c?[a]:[],...s.map(O)]});function k(){if(i.value===null)return n.defaultCountryCode??`BE`;let e=Jf(i.value)??null;return e===null||e.country===void 0?n.defaultCountryCode??`BE`:e.country}function re(e,t){let n=W_(e,b.value)??``,r=t.toLowerCase();return v(Qf(e).toLowerCase(),r.toLowerCase())||v(e.toLowerCase(),r.toLowerCase())||v(n.toLowerCase(),r.toLowerCase())}function A(e){let t=U_(e);return{description:{layout:`inline`,value:`+${Qf(e)}`},left:t===null?null:{aspect:`rectangle`,src:t,type:`image`}}}function ie(e){if(i.value===null){x.value=e;return}i.value=ep(i.value.replace(`+${Qf(x.value)}`,`+${Qf(e)}`),e),x.value=e}function ae(e){S.value=e}function oe(e){te.value=e.target.value||null}return t({input:c}),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,label:n.label,class:(0,f.normalizeClass)(n.class),style:(0,f.normalizeStyle)(n.style),for:(0,f.unref)(s),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage,"is-error-message-hidden":n.isErrorMessageHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sy,{ref:`fieldWrapper`,"icon-left":n.iconLeft,"icon-right":n.iconRight,"is-loading":n.isLoading,"is-error":(0,f.unref)(d),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly,size:n.size},{left:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Jy),{"model-value":x.value,items:ne.value,"display-fn":e=>(0,f.unref)(W_)(e,b.value)??e,"get-item-config":A,"is-disabled":n.isDisabled,"popover-anchor-reference-element":u.value,"has-virtual-scroll":!0,search:`remote`,"popover-align":`start`,"popover-width":`anchor-width`,"onUpdate:modelValue":ie,"onUpdate:search":ae},{trigger:(0,f.withCtx)(({isOpen:e})=>[(0,f.createElementVNode)(`button`,{class:(0,f.normalizeClass)(y.value.countryTrigger({size:n.size})),disabled:n.isDisabled,"aria-expanded":e,"aria-label":T.value,type:`button`},[C.value===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`img`,{key:0,src:C.value,class:(0,f.normalizeClass)(y.value.countryFlag()),alt:``},null,10,dA)),(0,f.createVNode)((0,f.unref)(an),{class:`size-3 shrink-0 text-tertiary`})],10,uA)]),_:1},8,[`model-value`,`items`,`display-fn`,`is-disabled`,`popover-anchor-reference-element`]),(0,f.createElementVNode)(`span`,{class:(0,f.normalizeClass)(y.value.dialCode())},(0,f.toDisplayString)(w.value),3)]),default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`input`,(0,f.mergeProps)((0,f.unref)(o),{id:(0,f.unref)(s),ref:`input`,value:te.value,disabled:n.isDisabled,readonly:n.isReadonly,"aria-describedby":(0,f.unref)(m),"aria-busy":(0,f.unref)(p),"aria-invalid":(0,f.unref)(g),"aria-required":(0,f.unref)(_),placeholder:D.value,name:n.name??void 0,class:y.value.input({size:n.size}),type:`tel`,autocomplete:`tel`,"data-field-wrapper":``,onInput:oe}),null,16,fA)]),_:1},8,[`icon-left`,`icon-right`,`is-loading`,`is-error`,`is-disabled`,`is-readonly`,`size`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`]))}}),mA={id:null,isLabelHidden:!1,description:null},[hA,gA]=F(`radioGroupItemContext`),_A=V({slots:{cardRoot:`
|
|
992
992
|
group/radio-group-item flex items-center justify-start rounded-md border
|
|
993
993
|
border-secondary p-lg outline-none
|
|
994
994
|
disabled:cursor-not-allowed
|
|
@@ -1015,7 +1015,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
1015
1015
|
group/radio-group-item flex items-center justify-start gap-x-sm
|
|
1016
1016
|
outline-none
|
|
1017
1017
|
disabled:cursor-not-allowed
|
|
1018
|
-
`}}),
|
|
1018
|
+
`}}),vA=(0,f.defineComponent)({__name:`RadioGroupIndicator`,setup(e){let{radioGroupStyle:t}=gA();return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.RadioGroupIndicator),{class:(0,f.normalizeClass)((0,f.unref)(t).indicator()),"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.Motion),{initial:{opacity:0,scale:1.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.5},transition:{duration:.3,type:`spring`,bounce:0}})]),_:1},8,[`class`])]),_:1}))}}),yA=(0,f.defineComponent)({__name:`BaseRadioGroup`,props:{id:{},isLabelHidden:{type:Boolean,default:!1},description:{default:null},label:{},value:{},isDisabled:{type:Boolean,default:!1},disabledReason:{default:null}},emits:[`blur`,`focus`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.computed)(()=>_A());return hA({radioGroupStyle:i}),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(W,{"is-disabled":!n.isDisabled||n.disabledReason==null,label:n.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.RadioGroupItem),{id:n.id??void 0,disabled:n.isDisabled,value:n.value,class:(0,f.normalizeClass)(i.value.root()),onBlur:t[0]||=e=>r(`blur`),onFocus:t[1]||=e=>r(`focus`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{align:`start`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(i.value.control())},[(0,f.createVNode)(vA)],2),(0,f.createVNode)(G,{class:(0,f.normalizeClass)(n.isLabelHidden&&`sr-only`),gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:n.label,class:(0,f.normalizeClass)(i.value.label())},null,8,[`text`,`class`]),n.description?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(U),{key:0,text:n.description,class:(0,f.normalizeClass)(i.value.description())},null,8,[`text`,`class`])):(0,f.createCommentVNode)(``,!0)]),_:1},8,[`class`])]),_:1})]),_:1},8,[`id`,`disabled`,`value`,`class`])]),_:1},8,[`is-disabled`,`label`]))}}),bA=(0,f.defineComponent)({__name:`RadioGroupItem`,props:(0,f.mergeDefaults)({id:{},isLabelHidden:{type:Boolean},description:{},label:{},value:{},isDisabled:{type:Boolean},disabledReason:{}},{...mA}),setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(yA,(0,f.normalizeProps)((0,f.guardReactiveProps)(t)),null,16))}}),[xA,SA]=F(`radioGroupContext`),CA=(0,f.defineComponent)({__name:`RadioGroupRoot`,props:(0,f.mergeModels)({orientation:{default:`vertical`},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean,default:!1},disabledReason:{default:null},isErrorMessageHidden:{type:Boolean,default:!1},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean,default:!1},hint:{},label:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`);return xA({isDisabled:(0,f.computed)(()=>t.isDisabled),modelValue:n,orientation:(0,f.computed)(()=>t.orientation)}),(e,r)=>((0,f.openBlock)(),(0,f.createBlock)(W,{"is-disabled":!t.isDisabled||t.disabledReason==null,label:t.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.RadioGroupRoot),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,orientation:t.orientation,disabled:t.isDisabled},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`orientation`,`disabled`])]),_:3},8,[`is-disabled`,`label`]))}}),wA=/Mobi|Android/i;function TA(){return wA.test(navigator.userAgent)}var EA=(0,f.defineComponent)({__name:`RelativeDateTime`,props:{dateTime:{},leadingText:{default:null}},setup(e){let t=e,n=(0,f.useAttrs)(),r=S.Temporal.Now.instant(),i=(0,C.useDateTimeFormat)(),a=(0,f.ref)(!0);function o(){TA()&&(a.value=!a.value)}return(e,s)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(W),{label:(0,f.unref)(i).toDateTime(t.dateTime,!0)},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`span`,(0,f.normalizeProps)((0,f.guardReactiveProps)((0,f.unref)(n))),[(0,f.createTextVNode)((0,f.toDisplayString)(t.leadingText)+` `,1),(0,f.createVNode)(sO,{value:(0,f.unref)(i).toDateTime(t.dateTime,!0),class:`whitespace-nowrap`,onClick:o},{default:(0,f.withCtx)(()=>[a.value?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(i).toRelativeTime(t.dateTime,(0,f.unref)(r))),1)],64)):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[(0,f.createTextVNode)((0,f.toDisplayString)((0,f.unref)(i).toDateTime(t.dateTime,!0)),1)],64))]),_:1},8,[`value`])],16)]),_:1},8,[`label`]))}});function DA(){return process.env.ENVIRONMENT!==`production`}new class{prefix;constructor(e={}){this.prefix=e.prefix??``}buildArgs(e,t){return typeof e==`string`?[`${this.prefix.length>0?`${this.prefix} `:``}${e}`,...t]:this.prefix.length>0?[this.prefix,e,...t]:[e,...t]}log(e,t,...n){let r=this.buildArgs(t,n);switch(e){case`debug`:console.debug(...r);break;case`info`:console.info(...r);break;case`warn`:console.warn(...r);break;case`error`:console.error(...r);break}}debug(e,...t){DA()&&this.log(`debug`,e,...t)}error(e,...t){this.log(`error`,e,...t)}info(e,...t){DA()&&this.log(`info`,e,...t)}warn(e,...t){this.log(`warn`,e,...t)}};var OA=/([a-z])([A-Z])/g,kA=/([A-Z]+)([A-Z][a-z])/g,AA=/[\u0300-\u036F]/g,jA=/[^\w\s-]/g,MA=/[\s_]+/g,NA=/^-+|-+$/g,PA=/<[^>]*>/g,FA=class{static camelToKebab(e){return e.replace(OA,`$1-$2`).replace(kA,`$1-$2`).toLowerCase()}static capitalize(e){return e.length===0?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}static isEmpty(e){return e==null||e.trim().length===0}static slugify(e){return e.toLowerCase().trim().normalize(`NFD`).replace(AA,``).replace(jA,``).replace(MA,`-`).replace(NA,``)}static stripHtml(e){return e.replace(PA,``)}static trimOrNull(e){return e?.trim()||null}static trimOrUndefined(e){return e?.trim()||void 0}static truncate(e,t){return e.length<=t?e:`${e.slice(0,t)}...`}},IA=(0,f.defineComponent)({__name:`SearchField`,props:{search:{}},setup(e){let t=e,n=(0,f.useTemplateRef)(`textField`),r=(0,f.useId)(),i=(0,g.useI18n)();return ut(`Mod+F`,()=>{n.value?.input?.focus()},{preventDefault:!0}),(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(vb),{id:(0,f.unref)(r),ref:`textField`,"model-value":t.search.search.value,placeholder:(0,f.unref)(i).t(`component.search_input.placeholder`),"icon-left":(0,f.unref)(hr),"aria-label":(0,f.unref)(i).t(`component.search_input.placeholder`),size:`sm`,class:`w-44`,"onUpdate:modelValue":n[1]||=e=>t.search.updateSearch(e??``)},{right:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{initial:!1},{default:(0,f.withCtx)(()=>[(0,f.unref)(FA).isEmpty(t.search.search.value)?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:0,transition:{duration:.2,type:`spring`,bounce:0},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},class:`mr-xxs flex items-center justify-center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{label:(0,f.unref)(i).t(`component.search_input.clear`),icon:(0,f.unref)(zr),variant:`tertiary`,size:`xs`,onClick:n[0]||=e=>t.search.clear()},null,8,[`label`,`icon`])]),_:1}))]),_:1})]),_:1},8,[`id`,`model-value`,`placeholder`,`icon-left`,`aria-label`]))}}),LA=50,RA=`search`;function zA(e){let t=e?.persistInUrl===!1?!1:e?.persistInUrl??RA,n=t===!0||typeof t==`string`?(0,b.useRouteQuery)(`search`,``,{mode:`replace`}):(0,f.ref)(``),r=(0,f.ref)(n.value),i=(0,f.ref)(!1),a=(0,f.computed)(()=>!FA.isEmpty(r.value)),o=null;function s(){n.value=``,r.value=``,i.value=!1,o&&clearTimeout(o)}(0,f.watch)(n,t=>{o&&clearTimeout(o),i.value=!0,o=setTimeout(()=>{r.value=t,i.value=!1},e?.debounceMs??LA)},{immediate:!0});function c(e,t=!1){n.value=e,t&&(o&&clearTimeout(o),r.value=e,i.value=!1)}return{isActive:a,isDebouncing:i,clear:s,debouncedSearch:r,search:n,updateSearch:c}}var[BA,VA]=F(`switchContext`),HA=V({slots:{root:`
|
|
1019
1019
|
group/switch relative isolate h-5 w-8 overflow-hidden rounded-full border
|
|
1020
1020
|
border-solid border-gray-200 bg-quaternary px-xxs outline-offset-3
|
|
1021
1021
|
outline-brand-600 duration-200
|
|
@@ -1036,13 +1036,13 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
1036
1036
|
`,thumbIcon:`
|
|
1037
1037
|
size-2.5 text-gray-800
|
|
1038
1038
|
group-data-[state=checked]/switch:text-brand-600
|
|
1039
|
-
`}}),HA=(0,f.defineComponent)({__name:`SwitchThumbIcon`,setup(e){let{isChecked:t,iconChecked:n,iconUnchecked:r,switchStyle:i}=BA(),a=(0,f.computed)(()=>t.value?n.value:r.value);return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{initial:!1,mode:`popLayout`},{default:(0,f.withCtx)(()=>[a.value===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:a.value?.name??String((0,f.unref)(t)),initial:{opacity:0,x:(0,f.unref)(t)?-8:8,filter:`blur(2px)`},animate:{opacity:1,scale:1,x:0,filter:`blur(0px)`},exit:{opacity:0,x:(0,f.unref)(t)?-8:8,filter:`blur(2px)`},transition:{duration:.25,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(a.value),{class:(0,f.normalizeClass)((0,f.unref)(i).thumbIcon())},null,8,[`class`]))]),_:1},8,[`initial`,`exit`]))]),_:1}))}}),UA=(0,f.defineComponent)({__name:`Switch`,props:(0,f.mergeModels)((0,f.mergeDefaults)({iconChecked:{},iconUnchecked:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{}},{...ry,...iy,iconChecked:null,iconUnchecked:null}),{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,f.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,f.useModel)(e,`modelValue`),a=n.id??(0,f.useId)(),o=(0,f.computed)(()=>VA()),s=(0,f.computed)(()=>n.isErrorMessageHidden||n.hideErrorMessage);return zA({isChecked:(0,f.computed)(()=>i.value),iconChecked:(0,f.computed)(()=>n.iconChecked??null),iconUnchecked:(0,f.computed)(()=>n.iconUnchecked??null),switchStyle:o}),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(W,{"is-disabled":!n.isDisabled||n.disabledReason==null,label:n.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{align:`start`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.SwitchRoot),{id:(0,f.unref)(a),modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,disabled:n.isDisabled,"data-invalid":n.errorMessage!==null&&n.errorMessage!==void 0||void 0,class:(0,f.normalizeClass)(o.value.root()),onBlur:t[1]||=e=>r(`blur`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.SwitchThumb),{class:(0,f.normalizeClass)(o.value.thumb())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(HA)]),_:1},8,[`class`])]),_:1},8,[`id`,`modelValue`,`disabled`,`data-invalid`,`class`]),(0,f.createElementVNode)(`div`,null,[n.label===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,class:(0,f.normalizeClass)([n.isLabelHidden&&`sr-only`]),gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`left`),(0,f.createVNode)((0,f.unref)(U),{for:n.for??(0,f.unref)(a),text:n.label,class:(0,f.normalizeClass)((0,f.unref)(Xa)(`text-xs/5 font-medium text-secondary`,n.isRequired?`after:pl-xxs after:text-error-primary`:``)),"data-label-required":n.isRequired?``:null,as:`label`},null,8,[`for`,`text`,`class`,`data-label-required`]),(0,f.renderSlot)(e.$slots,`right`)]),_:3},8,[`class`])),(0,f.createVNode)(Ty,{hint:n.hint,for:n.for},null,8,[`hint`,`for`]),s.value?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(wy,{key:1,"error-message":n.errorMessage,for:n.for},null,8,[`error-message`,`for`]))])]),_:3})]),_:3},8,[`is-disabled`,`label`]))}}),WA=(0,f.defineComponent)({__name:`ApiErrorState`,props:{error:{}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,f.computed)(()=>{let[e]=t.error.errors??[];return e??null});return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ok),{title:r.value?.status??(0,f.unref)(n).t(`component.api_error_state.error_title`),description:r.value?.detail??(0,f.unref)(n).t(`component.api_error_state.error_description`)},null,8,[`title`,`description`]))}}),GA=(0,f.defineComponent)({__name:`ZodErrorState`,props:{error:{}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,m.useClipboard)(),i=(0,f.computed)(()=>r.copied.value?n.t(`component.zod_error_state.copied_label`):n.t(`component.zod_error_state.copy_details_label`));function a(){r.copy(JSON.stringify(d.z.treeifyError(t.error),null,2))}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ok),{"secondary-action":{label:i.value,onClick:a,type:`button`},description:(0,f.unref)(n).t(`component.zod_error_state.description`),title:(0,f.unref)(n).t(`component.zod_error_state.title`)},null,8,[`secondary-action`,`description`,`title`]))}}),KA=(0,f.defineComponent)({__name:`ErrorState`,props:{error:{}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>(0,f.unref)(QS).isExpectedApiError(t.error)?((0,f.openBlock)(),(0,f.createBlock)(WA,{key:0,error:t.error},null,8,[`error`])):(0,f.unref)(QS).isZodError(t.error)?((0,f.openBlock)(),(0,f.createBlock)(GA,{key:1,error:t.error},null,8,[`error`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ok),{key:2,title:(0,f.unref)(n).t(`component.api_error_state.error_title`),description:(0,f.unref)(n).t(`component.api_error_state.error_description`)},null,8,[`title`,`description`]))}}),qA=(0,f.defineComponent)({__name:`TableSubgrid`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{class:`col-span-full grid grid-cols-subgrid`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),[JA,YA]=F(`tableContext`),XA=(0,f.defineComponent)({__name:`TableBody`,setup(e){let{isScrollableVertically:t,variant:n}=YA(),r=(0,f.computed)(()=>t.value||n.value===`contained`);return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(qA,{class:(0,f.normalizeClass)([{"[&>*:last-child]:border-b-0":r.value},`group/body`])},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),ZA={GROUP:3,HEADER:4,SUBGROUP:2},[QA,$A]=F(`tableGroupContext`),[ej,tj]=F(`tableSelectionContext`),nj={class:`sticky z-1 flex items-center gap-xs bg-primary px-2xl group-hover/group:bg-secondary group-has-focus-visible/group:bg-tertiary group-data-[state=open]/collapsible:bg-secondary`},rj={class:`w-5`},ij=(0,f.defineComponent)({__name:`TableBodyGroup`,props:{isOpenByDefault:{type:Boolean,default:!0},defaultOpen:{type:Boolean},headerCells:{},items:{default:()=>[]},label:{}},setup(e){let t=e,{isScrolledFromLeft:n,isSelectable:r,registerGroup:i,unregisterGroup:a}=YA(),{isGroupAllSelected:o,isGroupIndeterminate:s,toggleGroup:c}=tj(),l=(0,g.useI18n)();return QA({isGroup:!0}),i(),(0,f.onBeforeUnmount)(()=>{a()}),(e,i)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.CollapsibleRoot),{as:qA,"default-open":t.defaultOpen===void 0?t.isOpenByDefault:t.defaultOpen,class:`group/collapsible`},{default:(0,f.withCtx)(({open:a})=>[(0,f.createVNode)(qA,{style:(0,f.normalizeStyle)({zIndex:(0,f.unref)(ZA).GROUP}),class:`group/group sticky top-10 flex h-8 items-center group-data-[state=open]/collapsible:bg-secondary hover:bg-secondary has-focus-visible:bg-tertiary`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,nj,[(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(TT,{key:0,"model-value":(0,f.unref)(o)(t.items)||(0,f.unref)(s)(t.items),"is-indeterminate":(0,f.unref)(s)(t.items)&&!(0,f.unref)(o)(t.items),"is-label-hidden":!0,label:(0,f.unref)(l).t(`component.table.group.toggle_selection_label`),class:`mr-sm`,"onUpdate:modelValue":i[0]||=()=>(0,f.unref)(c)(t.items)},null,8,[`model-value`,`is-indeterminate`,`label`])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(h.CollapsibleTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{class:(0,f.normalizeClass)([{"border-r border-secondary":(0,f.unref)(n),"left-0":!(0,f.unref)(r),"left-10":(0,f.unref)(r)},`h-full flex-1 outline-none`])},[(0,f.createVNode)((0,f.unref)(I),{gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,rj,[(0,f.createVNode)((0,f.unref)(an),{class:(0,f.normalizeClass)([{"-rotate-90":!a},`size-3.5 text-disabled duration-150 group-hover/group:text-secondary`])},null,8,[`class`])]),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:`text-xs text-tertiary duration-150 group-hover/group:text-secondary`},null,8,[`text`])]),_:2},1024)],2)]),_:2},1024)]),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.headerCells,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e),{key:t}))),128))]),_:2},1032,[`style`]),(0,f.createVNode)((0,f.unref)(h.CollapsibleContent),{as:qA,class:`origin-top-left overflow-clip data-[state=closed]:animate-[table-collapsible-up_150ms] data-[state=open]:animate-[table-collapsible-down_150ms]`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`default-open`]))}}),[aj,oj]=F(`tableBodyRowContext`),[sj,cj]=F(`tableSubGroupContext`),lj={class:`pointer-events-none relative z-1 flex size-full items-center`},uj=(0,f.defineComponent)({__name:`TableBodyRowCell`,setup(e){let{isScrolledFromLeft:t,isSelectable:n,variant:r}=YA(),{link:i,onClick:a}=oj({link:(0,f.computed)(()=>null),onClick:(0,f.computed)(()=>null)}),{isGroup:o}=$A({isGroup:!1}),{isSubGroup:s}=cj({isSubGroup:!1}),c=(0,f.computed)(()=>s?(n.value,`first-of-type:pl-15`):o?(n.value,`first-of-type:pl-10`):`first-of-type:pl-2xl`);return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)([[{"first-of-type:border-r first-of-type:border-secondary":(0,f.unref)(t),"h-10":(0,f.unref)(r)===`full-page`,"h-9":(0,f.unref)(r)===`contained`},c.value],`relative flex items-center overflow-hidden bg-primary px-xl not-group-has-[[data-row-actions]_[data-state=open]]/row:group-hover/row:bg-secondary group-has-focus-visible/row:bg-tertiary first-of-type:sticky first-of-type:left-0 first-of-type:z-2 last-of-type:pr-2xl`])},[(0,f.unref)(i)===null?(0,f.unref)(a)===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:1,tabindex:`-1`,class:`absolute inset-0 z-0`,type:`button`,onClick:n[0]||=(...e)=>(0,f.unref)(a)&&(0,f.unref)(a)(...e)})):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(y.RouterLink),{key:0,to:(0,f.unref)(i),tabindex:`-1`,class:`absolute inset-0 z-0`},null,8,[`to`])),(0,f.createElementVNode)(`div`,lj,[(0,f.renderSlot)(e.$slots,`default`)])],2))}}),dj=(0,f.defineComponent)({__name:`TableBodyRowActionsCell`,props:{actionModel:{}},setup(e){let t=e,n=(0,g.useI18n)(),{actions:r}=YA();return(e,i)=>((0,f.openBlock)(),(0,f.createBlock)(uj,{class:`sticky right-0 z-1 flex items-center justify-end`,"data-row-actions":``},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(xs),{actions:(0,f.unref)(r),models:t.actionModel===null?[]:[t.actionModel],"is-current-context-only":!0,"popover-side":`bottom`,"popover-align":`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{"is-tooltip-disabled":!0,icon:(0,f.unref)(kn),label:(0,f.unref)(n).t(`component.table.actions_cell.label`),size:`sm`,variant:`tertiary`,class:`pointer-events-auto opacity-0 group-hover/row:opacity-100 group-has-focus-visible/row:opacity-100 group-has-[[data-row-actions]_[data-state=open]]/row:opacity-100 pointer-coarse:opacity-100`},null,8,[`icon`,`label`])]),_:1},8,[`actions`,`models`])]),_:1}))}}),fj=[`aria-label`],pj=(0,f.defineComponent)({__name:`TableBodyRow`,props:{actionModel:{default:null},ariaLabel:{default:null},itemKey:{default:null},link:{default:null},onRowClick:{type:[Function,null],default:null}},setup(e){let t=e,n=(0,g.useI18n)(),{isGroupingEnabled:r,actions:i}=YA(),{isSelectable:a,toggleItem:o}=tj(),s=(0,p.createAction)({id:`table-row-toggle-selection`,isApplicable:e=>a.value&&t.itemKey!==null&&e.menuType===void 0,name:()=>n.t(`component.table.row.toggle_selection_action.name`),execute:()=>{t.itemKey!=null&&o(t.itemKey)},keyboardShortcut:{key:`X`}});return aj({link:(0,f.computed)(()=>t.link),onClick:(0,f.computed)(()=>t.onRowClick)}),(a,o)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ps),{actions:(0,f.unref)(i),"is-current-context-only":!0,models:t.actionModel===null?[]:[t.actionModel]},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Ss),{actions:[...(0,f.unref)(i),(0,f.unref)(s)],models:t.actionModel===null?[]:[t.actionModel]},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(qA,{class:(0,f.normalizeClass)([{"border-b border-secondary has-[[data-row-actions]_[data-state=open]]:border-secondary/25 data-[state=open]:border-secondary/25":!(0,f.unref)(r)},`group/row relative isolate transition-[filter,opacity] duration-150 group-has-[[data-context-menu-trigger][data-state=open]]/body:opacity-25 group-has-[[data-row-actions]_[data-state=open]]/body:opacity-25 not-has-[[data-row-actions]_[data-state=open]]:hover:bg-secondary has-focus-visible:bg-tertiary has-[[data-row-actions]_[data-state=open]]:opacity-100 data-[state=open]:opacity-100!`])},{default:(0,f.withCtx)(()=>[e.link===null?e.onRowClick===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:1,"aria-label":e.ariaLabel??(0,f.unref)(n).t(`component.table.row.view_details_label`),class:`pointer-events-none absolute inset-0 z-0 outline-none`,type:`button`,onClick:o[0]||=(...t)=>e.onRowClick&&e.onRowClick(...t)},null,8,fj)):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(y.RouterLink),{key:0,to:e.link,"aria-label":e.ariaLabel??(0,f.unref)(n).t(`component.table.row.view_details_label`),class:`pointer-events-none absolute inset-0 z-0 outline-none`},null,8,[`to`,`aria-label`])),(0,f.renderSlot)(a.$slots,`default`),(0,f.unref)(i).length>0?((0,f.openBlock)(),(0,f.createBlock)(dj,{key:2,"action-model":t.actionModel},null,8,[`action-model`])):(0,f.createCommentVNode)(``,!0)]),_:3},8,[`class`])]),_:3},8,[`actions`,`models`])]),_:3},8,[`actions`,`models`]))}}),mj=(0,f.defineComponent)({__name:`TableBodyRowCellInteractiveElement`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,class:`pointer-events-auto`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),hj=(0,f.defineComponent)({__name:`TableBodyRowCheckboxCell`,props:{itemKey:{}},setup(e){let t=e,n=(0,g.useI18n)(),{isItemSelected:r,toggleItem:i}=tj();return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)(uj,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(W),{"keyboard-shortcut":{key:`X`},label:(0,f.unref)(n).t(`component.table.row.toggle_selection_action.name`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(mj,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(TT,{"model-value":(0,f.unref)(r)(t.itemKey),label:(0,f.unref)(n).t(`component.table.row.toggle_selection_action.name`),"is-label-hidden":``,"onUpdate:modelValue":a[0]||=e=>(0,f.unref)(i)(t.itemKey)},null,8,[`model-value`,`label`])]),_:1})]),_:1},8,[`label`])]),_:1}))}}),gj={key:0,class:`flex h-full w-10 shrink-0 items-center justify-center`},_j={class:`h-full flex-1 px-5xl outline-none focus-visible:bg-tertiary`},vj={class:`w-5`},yj=(0,f.defineComponent)({__name:`TableBodySubGroup`,props:{isOpenByDefault:{type:Boolean,default:!0},defaultOpen:{type:Boolean},items:{default:()=>[]},label:{}},setup(e){let t=e,{isSelectable:n}=YA(),{isGroupAllSelected:r,isGroupIndeterminate:i,toggleGroup:a}=tj();return sj({isSubGroup:!0}),(e,o)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.CollapsibleRoot),{as:qA,"default-open":t.defaultOpen===void 0?t.isOpenByDefault:t.defaultOpen},{default:(0,f.withCtx)(({open:s})=>[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({zIndex:(0,f.unref)(ZA).SUBGROUP}),class:`group/sub-group sticky top-18 col-span-full flex h-8 items-center bg-primary`},[(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,gj,[(0,f.createVNode)(TT,{"model-value":(0,f.unref)(r)(t.items)||(0,f.unref)(i)(t.items),"is-indeterminate":(0,f.unref)(i)(t.items)&&!(0,f.unref)(r)(t.items),label:``,"is-label-hidden":``,"onUpdate:modelValue":o[0]||=()=>(0,f.unref)(a)(t.items)},null,8,[`model-value`,`is-indeterminate`])])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(h.CollapsibleTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,_j,[(0,f.createVNode)((0,f.unref)(I),{gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,vj,[(0,f.createVNode)((0,f.unref)(an),{class:(0,f.normalizeClass)([{"-rotate-90":!s},`size-3.5 text-disabled duration-150 group-hover/sub-group:text-secondary`])},null,8,[`class`])]),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:`text-xs text-tertiary duration-150 group-hover/sub-group:text-secondary`},null,8,[`text`])]),_:2},1024)])]),_:2},1024)],4),(0,f.createVNode)((0,f.unref)(h.CollapsibleContent),{as:qA,class:`origin-top-left overflow-clip data-[state=closed]:animate-[table-collapsible-up_150ms] data-[state=open]:animate-[table-collapsible-down_150ms]`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`default-open`]))}}),bj=[`aria-describedby`],xj=[`id`],Sj=[`disabled`],Cj=(0,f.defineComponent)({__name:`TableHeaderCell`,props:{isCentered:{type:Boolean,default:!1},isResizable:{type:Boolean,default:!0},actionConfig:{default:null},centerContent:{type:Boolean},columnIndex:{},columnKey:{},description:{default:null},label:{}},setup(e){let t=e,n=(0,f.computed)(()=>t.isCentered||t.centerContent===!0),r=(0,g.useI18n)(),{isColumnResizeDisabled:i,isGroupingEnabled:a,isResizingColumn:o,isScrolledFromLeft:s,isSelectable:c,sort:l,onColumnResizeFitToContent:u,onColumnResizeStart:d}=YA(),p=(0,f.useTemplateRef)(`cellEl`),m=(0,f.useId)(),h=(0,f.computed)(()=>l!==null&&l.existsSort(t.columnKey)),v=(0,f.computed)(()=>{if(!h.value)return null;let e=l?.getSort(t.columnKey)??null;return e===null?null:e.direction}),y=(0,f.computed)(()=>{if(!h.value)return null;switch(v.value){case`asc`:return Ht;case`desc`:return At;default:return Cr}});return(e,g)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ro),{"is-disabled":t.description===null,"popover-side-offset":4,"popover-side":`bottom`},{trigger:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{ref_key:`cellEl`,ref:p,"aria-describedby":t.description===null?void 0:(0,f.unref)(m),class:(0,f.normalizeClass)([{"first-of-type:border-r first-of-type:border-secondary":(0,f.unref)(s),"justify-center":n.value,"bg-secondary":!(0,f.unref)(a),"first-of-type:left-10":(0,f.unref)(c),"first-of-type:left-0":!(0,f.unref)(c)},`group relative flex h-10 items-center overflow-hidden bg-primary px-xl first-of-type:sticky first-of-type:z-2 first-of-type:pl-2xl last-of-type:pr-2xl`])},[t.description===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{key:0,id:(0,f.unref)(m),class:`sr-only`},(0,f.toDisplayString)(t.description),9,xj)),(0,f.createVNode)((0,f.unref)(I),{gap:`xs`},{default:(0,f.withCtx)(()=>[t.label===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Z),{key:0},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{disabled:!h.value,type:`button`,class:`-ml-sm flex items-center gap-xs rounded-sm px-sm py-xxs duration-100 not-disabled:hover:bg-secondary-hover disabled:cursor-default!`,onClick:g[0]||=e=>(0,f.unref)(l)?.toggleSort(t.columnKey)},[(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:`text-xs font-medium text-primary`},null,8,[`text`]),(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{mode:`popLayout`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:v.value??`none`,initial:{opacity:0,filter:`blur(2px)`,scale:.5},animate:{opacity:1,filter:`blur(0px)`,scale:1},exit:{opacity:0,filter:`blur(2px)`,scale:.5},transition:{duration:.15,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[y.value===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(y.value),{key:0,class:(0,f.normalizeClass)([[v.value===null?`text-disabled`:`text-primary`],`size-3 duration-150`])},null,8,[`class`]))]),_:1}))]),_:1})],8,Sj)]),_:1})),(0,f.createVNode)((0,f.unref)(xs),{actions:t.actionConfig?.actions??[],metadata:t.actionConfig?.metadata,"is-current-context-only":t.actionConfig?.currentContextOnly??!0,"popover-side":`bottom`,"popover-align":`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(kn),"is-tooltip-disabled":t.actionConfig?.label===void 0,label:t.actionConfig?.label??(0,f.unref)(r).t(`component.table.header_cell.options_label`),size:`sm`,variant:`tertiary`},null,8,[`icon`,`is-tooltip-disabled`,`label`])]),_:1},8,[`actions`,`metadata`,`is-current-context-only`])]),_:1}),t.isResizable&&!(0,f.unref)(i)?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:1,class:`group/handle absolute top-0 right-0 z-10 flex h-full w-4 cursor-col-resize items-center justify-center select-none`,onMousedown:g[1]||=(0,f.withModifiers)(e=>(0,f.unref)(d)(t.columnIndex,e.clientX,p.value),[`prevent`]),onDblclick:g[2]||=(0,f.withModifiers)(e=>(0,f.unref)(u)(t.columnIndex,p.value),[`prevent`])},[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([{"scale-92":(0,f.unref)(o)},`h-5 w-1 rounded-full bg-fg-disabled opacity-0 duration-150 group-hover/handle:opacity-100`])},null,2)],32)):(0,f.createCommentVNode)(``,!0)],10,bj)]),content:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(so),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(uo),{text:t.description},null,8,[`text`])]),_:1})]),_:1},8,[`is-disabled`]))}}),wj=(0,f.defineComponent)({__name:`TableHeader`,setup(e){let t=(0,g.useI18n)(),{isGroupingEnabled:n,actions:r,headerActions:i}=YA();return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)(qA,{style:(0,f.normalizeStyle)({zIndex:(0,f.unref)(ZA).HEADER}),class:(0,f.normalizeClass)([{"border-b border-secondary":!(0,f.unref)(n)},`sticky top-0`])},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`),(0,f.unref)(r).length>0||(0,f.unref)(i).length>0?((0,f.openBlock)(),(0,f.createBlock)(Cj,{key:0,"column-index":0,"is-resizable":!1,label:null,"action-config":{actions:(0,f.unref)(i)??[],label:(0,f.unref)(t).t(`component.table.settings_label`),currentContextOnly:!1},"column-key":``,class:`sticky right-0 z-1 h-full`},null,8,[`action-config`])):(0,f.createCommentVNode)(``,!0)]),_:3},8,[`style`,`class`]))}}),Tj=(0,f.defineComponent)({__name:`TableHeaderCellBase`,props:{isCentered:{type:Boolean,default:!1},centerContent:{type:Boolean}},setup(e){let t=e,n=(0,f.computed)(()=>t.isCentered||t.centerContent===!0),{isGroupingEnabled:r,isScrolledFromLeft:i}=YA();return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)([{"first-of-type:border-r first-of-type:border-secondary":(0,f.unref)(i),"justify-center":n.value,"bg-secondary":!(0,f.unref)(r)},`group relative flex h-10 items-center overflow-hidden bg-primary px-xl first-of-type:sticky first-of-type:z-2 first-of-type:pl-2xl last-of-type:pr-2xl`])},[(0,f.renderSlot)(e.$slots,`default`)],2))}}),Ej=(0,f.defineComponent)({__name:`TableHeaderCheckboxCell`,setup(e){let t=(0,g.useI18n)(),{isAllSelected:n,isIndeterminate:r,toggleAll:i}=tj();return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)(Tj,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(TT,{"model-value":(0,f.unref)(n)||(0,f.unref)(r),"is-indeterminate":(0,f.unref)(r)&&!(0,f.unref)(n),"is-label-hidden":!0,label:(0,f.unref)(t).t(`component.table.header.select_all_label`),"onUpdate:modelValue":(0,f.unref)(i)},null,8,[`model-value`,`is-indeterminate`,`label`,`onUpdate:modelValue`])]),_:1}))}}),Dj=(0,f.defineComponent)({__name:`TableHiddenResultsWarning`,setup(e){let t=(0,g.useI18n)(),{activeFilterCountIncludingSearch:n,onClearFiltersAndSearch:r}=YA();return(e,i)=>(0,f.unref)(n)>0?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,class:`p-xl`,justify:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:(0,f.unref)(t).t(`component.table.hidden_results_warning.message`,{count:(0,f.unref)(n)}),class:`text-xs text-tertiary`},null,8,[`text`]),(0,f.createVNode)((0,f.unref)(Y),{label:(0,f.unref)(t).t(`component.table.empty_state.no_results.clear_filters_label`),size:`sm`,variant:`secondary`,onClick:(0,f.unref)(r)},null,8,[`label`,`onClick`])]),_:1})):(0,f.createCommentVNode)(``,!0)}}),Oj=H((0,f.defineComponent)({__name:`TableLoading`,setup(e){let{gridTemplateColumns:t}=YA(),n=[`60%`,`70%`,`65%`,`75%`,`60%`,`70%`];function r(e,t){return n[(e*3+t)%n.length]}return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(qA,{style:(0,f.normalizeStyle)({gridTemplateColumns:(0,f.unref)(t)}),class:`z-10 grid w-full mask-b-to-transparent px-2xl`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(10,e=>(0,f.createVNode)(qA,{key:e,style:(0,f.normalizeStyle)({"--row-index":e-1}),class:`custom-skeleton-row py-lg`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(3,t=>(0,f.createVNode)((0,f.unref)(K),{key:t,style:(0,f.normalizeStyle)({maxWidth:r(e-1,t-1)}),class:`h-4`},null,8,[`style`])),64))]),_:2},1032,[`style`])),64))]),_:1},8,[`style`]))}}),[[`__scopeId`,`data-v-0577cb9a`]]),kj={max:`auto`,min:`min-content`};function Aj({max:e,min:t}){return e===`auto`?`minmax(${t}, auto)`:t===e?t:t===`min-content`?`fit-content(${e})`:`minmax(${t}, ${e})`}var jj=`2.5rem`,Mj=class{static columnSizesToGridTemplateColumns(e,t,n=!1){let r=[...e.slice(0,-1),kj].map(Aj).join(` `),i=t?`${r} min-content`:r;return n?`${jj} ${i}`:i}};function Nj(e,t){return e===`min-content`||e===`auto`?t===`min`?0:1/0:e.endsWith(`rem`)?Number.parseFloat(e)*Number.parseFloat(getComputedStyle(document.documentElement).fontSize):t===`min`?0:1/0}function Pj(e,t,n){let r=`${e.map((e,n)=>n===t?`max-content`:`${e}px`).join(` `)} minmax(min-content, auto) min-content`;return n?`${jj} ${r}`:r}function Fj(e,t,n,r,i,a,o,s){let c=(0,f.ref)(null),l=(0,f.ref)(null),u=(0,f.ref)(null),d=(0,f.ref)(null),h=(0,f.ref)(0),_=(0,f.ref)(0),v=(0,f.computed)(()=>d.value!==null),y=(0,f.computed)(()=>l.value===null?c.value??b():Pj(l.value,u.value,a.value));function b(){return Mj.columnSizesToGridTemplateColumns(e.value,!0,a.value)}(0,f.watch)([t,n,e],([e,r])=>{if(e===null||!r)return;let i=k();if(i.length>0){let e=i.length+2;c.value=Array.from({length:e}).fill(`max-content`).join(` `)}setTimeout(()=>{n.value&&t.value!==null&&O(k())},0)},{flush:`post`}),(0,f.watch)([o,s],()=>{l.value=null,c.value=null});let x=0,S=(0,m.useDebounceFn)(e=>{C(e)},25);(0,m.useResizeObserver)(t,e=>{let n=e[0]?.borderBoxSize[0]?.inlineSize;n===void 0||n===x||(x=n,l.value===null&&t.value!==null&&S(t.value))},{box:`border-box`});async function C(e){c.value=null,await(0,f.nextTick)(),c.value=getComputedStyle(e).gridTemplateColumns}(0,f.watch)(()=>e.value.length,()=>{l.value=null,u.value=null,d.value=null});function w(t,n){let r=e.value[t];if(r===void 0)return n;let i=Nj(r.min,`min`),a=Nj(r.max,`max`);return Math.min(a,Math.max(i,n))}function T(t){let n=Array.from(t.parentElement?.children??[]),r=+!!a.value;return n.slice(r,r+e.value.length-1).map(e=>e.getBoundingClientRect().width)}function E(e,t,n){let r=T(n);l.value=r,d.value=e,h.value=t,_.value=r[e]}function ee(e){if(d.value===null||l.value===null)return;let t=e.clientX-h.value,n=w(d.value,_.value+t),r=[...l.value];r[d.value]=n,l.value=r}function D(){d.value=null}async function te(e,t){l.value===null&&(l.value=T(t)),u.value=e,await(0,f.nextTick)();let n=t.getBoundingClientRect().width,r=[...l.value];r[e]=w(e,n),l.value=r,u.value=null}function O(e){let n=t.value;if(e.length===0||n===null)return;let r=e.length+2;n.style.gridTemplateColumns=Array.from({length:r}).fill(`max-content`).join(` `);let i=e.map((e,t)=>w(t,e.getBoundingClientRect().width));n.style.gridTemplateColumns=Pj(i,null,a.value),l.value=i}document.addEventListener(`mousemove`,ee),document.addEventListener(`mouseup`,D),(0,f.onBeforeUnmount)(()=>{document.removeEventListener(`mousemove`,ee),document.removeEventListener(`mouseup`,D)});let ne=(0,g.useI18n)();function k(){let n=t.value?.children[0];if(n===void 0)return[];let r=+!!a.value;return Array.from(n.children).slice(r,r+e.value.length-1)}let re=(0,p.createAction)({id:`table-auto-fit-columns`,isApplicable:()=>!i.value,name:()=>ne.t(`component.table.auto_fit_columns_action.name`),execute:()=>O(k()),group:r.value??void 0,icon:()=>yr,keyboardShortcut:{key:`A`,shift:!0}});return(0,p.useTemporaryActions)(re),{isResizing:v,autoFitColumnsAction:re,fitColumnToContent:te,gridTemplateColumns:y,startColumnResize:E}}function Ij(){let e=(0,f.ref)(!1),t=(0,f.ref)(!0),n=(0,f.ref)(!1);function r(r){e.value=r.scrollLeft>0,t.value=r.scrollLeft+r.clientWidth>=r.scrollWidth-1,n.value=r.scrollHeight>r.clientHeight}function i(e){r(e),e.addEventListener(`scroll`,()=>r(e),{passive:!0});let t=new ResizeObserver(()=>r(e));t.observe(e);let n=e.children[0];n!==void 0&&t.observe(n)}return{isScrollableVertically:n,isScrolledFromLeft:e,isScrolledToEnd:t,setScrollContainer:i}}var Lj=(0,f.defineComponent)({__name:`TableRoot`,props:{hasActiveSearch:{type:Boolean,default:!1},isColumnResizeDisabled:{type:Boolean},isInitialized:{type:Boolean},isSelectable:{type:Boolean,default:!1},actionGroup:{default:null},actions:{default:()=>[]},activeFilterCount:{default:0},columnSizes:{},disableColumnResize:{type:Boolean},headerActions:{default:()=>[]},sort:{default:null},variant:{default:`full-page`},onNextPage:{}},emits:[`clearFiltersAndSearch`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.ref)(null),{isScrollableVertically:a,isScrolledFromLeft:o,isScrolledToEnd:s,setScrollContainer:c}=Ij(),l=(0,f.ref)(0),u=(0,f.computed)(()=>l.value>0),d=(0,f.computed)(()=>i.value?.children[0]??null),p=(0,f.computed)(()=>n.isColumnResizeDisabled===!0||n.disableColumnResize===!0),{isResizing:h,autoFitColumnsAction:g,fitColumnToContent:_,gridTemplateColumns:v,startColumnResize:y}=Fj((0,f.computed)(()=>n.columnSizes),d,(0,f.computed)(()=>n.isInitialized),(0,f.computed)(()=>n.actionGroup),p,(0,f.computed)(()=>n.isSelectable),(0,f.computed)(()=>n.hasActiveSearch??!1),(0,f.computed)(()=>n.activeFilterCount??0)),b=(0,f.computed)(()=>(n.activeFilterCount??0)+ +!!n.hasActiveSearch);function x(){l.value+=1}function S(){--l.value}function C(){r(`clearFiltersAndSearch`)}return(0,m.useInfiniteScroll)(i,()=>{n.onNextPage?.()},{offset:{bottom:400}}),(0,f.watch)(a,e=>{!e&&n.isInitialized&&n.onNextPage?.()},{immediate:!0}),JA({isColumnResizeDisabled:(0,f.computed)(()=>n.isColumnResizeDisabled),isGroupingEnabled:(0,f.computed)(()=>u.value),isResizingColumn:h,isScrollableVertically:(0,f.computed)(()=>a.value),isScrolledFromLeft:(0,f.computed)(()=>o.value),isScrolledToEnd:(0,f.computed)(()=>s.value),isSelectable:(0,f.computed)(()=>n.isSelectable),actions:(0,f.computed)(()=>n.actions),activeFilterCountIncludingSearch:b,gridTemplateColumns:v,headerActions:(0,f.computed)(()=>[...n.headerActions,g]),registerGroup:x,setScrollContainer:e=>{i.value=e,c(e)},sort:n.sort,unregisterGroup:S,variant:(0,f.computed)(()=>n.variant),onClearFiltersAndSearch:C,onColumnResizeFitToContent:_,onColumnResizeStart:y}),(e,t)=>(0,f.renderSlot)(e.$slots,`default`)}}),[Rj,zj]=F(`tableScrollContainerContext`),Bj=(0,f.defineComponent)({__name:`TableScrollContainer`,props:{isScrollDisabled:{type:Boolean,default:!1},disableScroll:{type:Boolean}},setup(e){let t=e,n=(0,f.computed)(()=>t.isScrollDisabled||t.disableScroll===!0),{gridTemplateColumns:r,setScrollContainer:i,variant:a}=YA(),o=zj(null),s=(0,f.useTemplateRef)(`containerEl`);return(0,f.onMounted)(()=>{s.value!==null&&(i(s.value),o!==null&&(o.value=s.value))}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{ref_key:`containerEl`,ref:s,class:(0,f.normalizeClass)([{"rounded-xl border border-secondary":(0,f.unref)(a)===`contained`&&!n.value,"overflow-auto":!n.value},`max-h-full w-full contain-layout contain-paint outline-none`])},[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({gridTemplateColumns:(0,f.unref)(r)}),class:`grid`},[(0,f.renderSlot)(e.$slots,`default`)],4),(0,f.renderSlot)(e.$slots,`outside-grid`)],2))}});function Vj(e,t,n){let r=(0,f.ref)(`includes`),i=(0,f.ref)(new Set),a=(0,f.computed)(()=>r.value===`excludes`&&i.value.size===0),o=(0,f.computed)(()=>(r.value,i.value.size>0));function s(e){return r.value===`includes`?i.value.has(e):!i.value.has(e)}function c(e){let t=new Set(i.value);t.has(e)?t.delete(e):t.add(e),i.value=t}function l(){a.value?(r.value=`includes`,i.value=new Set):(r.value=`excludes`,i.value=new Set)}function u(e){return e.length>0&&e.every(e=>s(t(e)))}function d(e){let n=e.filter(e=>s(t(e))).length;return n>0&&n<e.length}function p(e){if(u(e)){let n=new Set(i.value);if(r.value===`includes`)for(let r of e)n.delete(t(r));else for(let r of e)n.add(t(r));i.value=n}else{let n=new Set(i.value);if(r.value===`includes`)for(let r of e)n.add(t(r));else for(let r of e)n.delete(t(r));i.value=n}}return(0,f.watch)([r,i],()=>{let a=i.value,o=r.value;n({items:e.value.filter(e=>a.has(t(e))),type:o})},{deep:!0}),{isAllSelected:a,isGroupAllSelected:u,isGroupIndeterminate:d,isIndeterminate:o,isItemSelected:s,toggleAll:l,toggleGroup:p,toggleItem:c}}function Hj(e,t){let n=(0,w.useVirtualizer)((0,f.computed)(()=>({count:e.value,estimateSize:()=>40,getScrollElement:()=>t.value,overscan:5}))),r=(0,f.computed)(()=>n.value.getVirtualItems()),i=(0,f.computed)(()=>n.value.getTotalSize()),a=(0,f.computed)(()=>r.value.at(0)?.start??0);return{paddingAfterPx:(0,f.computed)(()=>{let e=r.value.at(-1);return e==null?0:i.value-e.end}),paddingBeforePx:a,virtualItems:r}}var Uj=(0,f.defineComponent)({__name:`Table`,props:{isFetchingNextPage:{type:Boolean},isLoading:{type:Boolean},isSelectable:{type:Boolean,default:!1},columns:{},data:{},error:{},getActionModel:{},getKey:{},getLink:{type:[Function,null],default:null},groupHeaderCells:{},onRowClick:{type:[Function,null],default:null},hasActiveSearch:{type:Boolean},isColumnResizeDisabled:{type:Boolean},actionGroup:{},actions:{},activeFilterCount:{default:0},disableColumnResize:{type:Boolean},headerActions:{},sort:{},variant:{},onNextPage:{}},emits:[`clearFilters`,`clearSearch`,`select`],setup(e,{emit:t}){let n=e,r=t;n.getLink!==null&&n.onRowClick!==null&&console.warn("[Table] `getLink` and `onRowClick` are mutually exclusive — a row supports only one interaction mode. `onRowClick` will be ignored for rows where `getLink` returns a value.");let i=(0,g.useI18n)(),a=(0,f.shallowRef)(null);Rj(a);let o=(0,f.computed)(()=>{if(n.data.length===0)return`flat`;let e=n.data[0];return`subGroups`in e?`with-sub-groups`:`items`in e?`grouped`:`flat`}),s=(0,f.computed)(()=>n.data),c=(0,f.computed)(()=>n.data),l=(0,f.computed)(()=>n.data),u=(0,f.computed)(()=>o.value===`flat`?s.value:o.value===`grouped`?c.value.flatMap(e=>e.items):l.value.flatMap(e=>e.subGroups.flatMap(e=>e.items))),d=(0,f.computed)(()=>n.columns.map(e=>e.size??{max:`20rem`,min:`min-content`})),{paddingAfterPx:p,paddingBeforePx:m,virtualItems:h}=Hj((0,f.computed)(()=>o.value===`flat`?s.value.length:0),a),{isAllSelected:_,isGroupAllSelected:v,isGroupIndeterminate:y,isIndeterminate:b,isItemSelected:x,toggleAll:S,toggleGroup:C,toggleItem:w}=Vj(u,e=>n.getKey(e),e=>r(`select`,e));ej({isAllSelected:_,isGroupAllSelected:e=>v(e),isGroupIndeterminate:e=>y(e),isIndeterminate:b,isItemSelected:x,isSelectable:(0,f.computed)(()=>n.isSelectable),toggleAll:S,toggleGroup:e=>C(e),toggleItem:w}),(0,f.watch)(()=>n.data.length,(e,t)=>{e<t&&a.value?.scrollTo({top:0})});function T(){r(`clearFilters`),r(`clearSearch`)}return(t,r)=>((0,f.openBlock)(),(0,f.createBlock)(Lj,{"column-sizes":d.value,actions:n.actions,"active-filter-count":n.activeFilterCount,"has-active-search":n.hasActiveSearch,"on-next-page":n.onNextPage,"is-initialized":n.data.length>0,"is-selectable":n.isSelectable,"header-actions":n.headerActions,"action-group":n.actionGroup,"is-column-resize-disabled":n.isColumnResizeDisabled,variant:n.variant,sort:n.sort,onClearFiltersAndSearch:T},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Bj,{"is-scroll-disabled":n.data.length===0},{"outside-grid":(0,f.withCtx)(()=>[n.isLoading||n.isFetchingNextPage?((0,f.openBlock)(),(0,f.createBlock)(Oj,{key:0})):(0,f.createCommentVNode)(``,!0),e.data.length>0?((0,f.openBlock)(),(0,f.createBlock)(Dj,{key:1})):(0,f.createCommentVNode)(``,!0)]),default:(0,f.withCtx)(()=>[e.data.length>0||n.isLoading?((0,f.openBlock)(),(0,f.createBlock)(wj,{key:0},{default:(0,f.withCtx)(()=>[n.isSelectable?((0,f.openBlock)(),(0,f.createBlock)(Ej,{key:0})):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n.columns,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Cj,{key:e.key,"column-index":t,"is-resizable":t<n.columns.length-1,label:e.headerLabel,description:e.headerDescription??null,"is-centered":e.isCenteredHeaderContent??e.centerHeaderContent??!1,"action-config":e.actionConfig,"column-key":e.key},null,8,[`column-index`,`is-resizable`,`label`,`description`,`is-centered`,`action-config`,`column-key`]))),128))]),_:1})):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)(XA,null,{default:(0,f.withCtx)(()=>[o.value===`flat`?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[(0,f.unref)(m)>0?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,style:(0,f.normalizeStyle)({height:`${(0,f.unref)(m)}px`}),class:`col-span-full`},null,4)):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)((0,f.unref)(h),e=>((0,f.openBlock)(),(0,f.createBlock)(pj,{key:n.getKey(s.value[e.index]),"action-model":n.getActionModel?.(s.value[e.index]),"item-key":n.getKey(s.value[e.index]),link:n.getLink?.(s.value[e.index])??null,"on-row-click":n.onRowClick===null?null:()=>n.onRowClick?.(s.value[e.index])},{default:(0,f.withCtx)(()=>[n.isSelectable?((0,f.openBlock)(),(0,f.createBlock)(hj,{key:0,"item-key":n.getKey(s.value[e.index])},null,8,[`item-key`])):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n.columns,t=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.component(s.value[e.index])),{key:t.key}))),128))]),_:2},1032,[`action-model`,`item-key`,`link`,`on-row-click`]))),128)),(0,f.unref)(p)>0?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:1,style:(0,f.normalizeStyle)({height:`${(0,f.unref)(p)}px`}),class:`col-span-full`},null,4)):(0,f.createCommentVNode)(``,!0)],64)):o.value===`with-sub-groups`?((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,{key:1},(0,f.renderList)(l.value,e=>((0,f.openBlock)(),(0,f.createBlock)(ij,{key:e.key,"is-open-by-default":e.isOpenByDefault??e.defaultOpen,label:e.label},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.subGroups,e=>((0,f.openBlock)(),(0,f.createBlock)(yj,{key:e.key,"is-open-by-default":e.isOpenByDefault??e.defaultOpen,items:n.isSelectable?e.items:[],label:e.label},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.items,e=>((0,f.openBlock)(),(0,f.createBlock)(pj,{key:n.getKey(e),"action-model":n.getActionModel?.(e),"item-key":n.getKey(e),link:n.getLink?.(e)??null,"on-row-click":n.onRowClick===null?null:()=>n.onRowClick?.(e)},{default:(0,f.withCtx)(()=>[n.isSelectable?((0,f.openBlock)(),(0,f.createBlock)(hj,{key:0,"item-key":n.getKey(e)},null,8,[`item-key`])):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n.columns,t=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.component(e)),{key:t.key}))),128))]),_:2},1032,[`action-model`,`item-key`,`link`,`on-row-click`]))),128))]),_:2},1032,[`is-open-by-default`,`items`,`label`]))),128))]),_:2},1032,[`is-open-by-default`,`label`]))),128)):((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,{key:2},(0,f.renderList)(c.value,e=>((0,f.openBlock)(),(0,f.createBlock)(ij,{key:e.key,"is-open-by-default":e.isOpenByDefault??e.defaultOpen,items:n.isSelectable?e.items:[],label:e.label,"header-cells":n.groupHeaderCells?.(e)},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.items,e=>((0,f.openBlock)(),(0,f.createBlock)(pj,{key:n.getKey(e),"action-model":n.getActionModel?.(e),"item-key":n.getKey(e),link:n.getLink?.(e)??null,"on-row-click":n.onRowClick===null?null:()=>n.onRowClick?.(e)},{default:(0,f.withCtx)(()=>[n.isSelectable?((0,f.openBlock)(),(0,f.createBlock)(hj,{key:0,"item-key":n.getKey(e)},null,8,[`item-key`])):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n.columns,t=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.component(e)),{key:t.key}))),128))]),_:2},1032,[`action-model`,`item-key`,`link`,`on-row-click`]))),128))]),_:2},1032,[`is-open-by-default`,`items`,`label`,`header-cells`]))),128))]),_:1})]),_:1},8,[`is-scroll-disabled`]),n.error===null?n.data.length===0&&!n.isLoading?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[n.activeFilterCount>0||n.hasActiveSearch?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ok),{key:0,"secondary-action":{type:`button`,label:(0,f.unref)(i).t(`component.table.empty_state.no_results.clear_filters_label`),onClick:T},title:(0,f.unref)(i).t(`component.table.empty_state.no_results.title`),description:(0,f.unref)(i).t(`component.table.empty_state.no_results.description`),illustration:n.variant===`contained`?null:`cloud-search`,class:`mx-auto h-full max-w-96 py-xl`},null,8,[`secondary-action`,`title`,`description`,`illustration`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ok),{key:1,title:(0,f.unref)(i).t(`component.table.empty_state.no_data.title`),description:(0,f.unref)(i).t(`component.table.empty_state.no_data.description`),illustration:n.variant===`contained`?null:`cloud-search`,class:`mx-auto h-full max-w-96 py-xl`},null,8,[`title`,`description`,`illustration`]))],64)):(0,f.createCommentVNode)(``,!0):(0,f.renderSlot)(t.$slots,`error`,{key:0,error:n.error},()=>[(0,f.createVNode)((0,f.unref)(KA),{error:n.error},null,8,[`error`])])]),_:3},8,[`column-sizes`,`actions`,`active-filter-count`,`has-active-search`,`on-next-page`,`is-initialized`,`is-selectable`,`header-actions`,`action-group`,`is-column-resize-disabled`,`variant`,`sort`]))}}),Wj=(0,f.defineComponent)({__name:`TableBodyRowCellText`,props:{isPrimaryCell:{type:Boolean,default:!1},text:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{class:(0,f.normalizeClass)([{"font-medium":t.isPrimaryCell},`truncate text-xs text-secondary`])},(0,f.toDisplayString)(t.text),3))}}),Gj={},Kj={class:`last-of-type:pr-2xl last-of-type:pl-xl`};function qj(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`,Kj,[(0,f.renderSlot)(e.$slots,`default`)])}var Jj=H(Gj,[[`render`,qj]]);function Yj(){let e=(0,f.ref)(null),t=(0,f.ref)(null),n=(0,f.ref)(null),r=(0,f.ref)(0),i=(0,f.ref)(0),a=(0,f.computed)(()=>n.value!==null);function o(t,a,o){e.value=o,n.value=t,r.value=a,i.value=o[t]}async function s(n,r,i){if(e.value===null){if(i===void 0)return;e.value=i}t.value=n,await(0,f.nextTick)();let a=r.getBoundingClientRect().width,o=[...e.value];o[n]=a,e.value=o,t.value=null}function c(t){if(t.length===0)return;let n=t[0].parentElement,r=n?.parentElement;if(r==null||n==null)return;let i=n.children.length;r.style.gridTemplateColumns=Array.from({length:i}).fill(`max-content`).join(` `);let a=t.map(e=>e.getBoundingClientRect().width),o=i>t.length+1,s=a.map(e=>`${e}px`).join(` `);r.style.gridTemplateColumns=o?`${s} minmax(min-content, auto) min-content`:`${s} minmax(min-content, auto)`,e.value=a}function l(){e.value=null,n.value=null,t.value=null}function u(t){if(n.value===null||e.value===null)return;let a=t.clientX-r.value,o=Math.max(50,i.value+a),s=[...e.value];s[n.value]=o,e.value=s}function d(){n.value!==null&&(n.value=null)}return document.addEventListener(`mousemove`,u),document.addEventListener(`mouseup`,d),(0,f.onBeforeUnmount)(()=>{document.removeEventListener(`mousemove`,u),document.removeEventListener(`mouseup`,d)}),{isResizingColumn:a,contentFitColumnIndex:t,fitAllColumnsToContent:c,fitColumnToContent:s,fixedWidths:e,resetWidths:l,startResize:o}}function Xj(e,t,n){let r=(0,f.ref)(null);(0,f.watch)([n,t,e],([e,t])=>{e===null||!t||i(e)});async function i(e){r.value=null,await(0,f.nextTick)(),r.value=getComputedStyle(e).gridTemplateColumns}let a=0;return(0,m.useResizeObserver)(n,e=>{let t=e[0]?.borderBoxSize[0]?.inlineSize;t!==void 0&&t!==a&&(a=t,i(n.value))},{box:`border-box`}),{frozenColumns:r}}function Zj(){return e=>e}var Qj=(0,f.defineComponent)({__name:`TableCustomizationDialog`,props:{columnStates:{}},emits:[`close`,`columnStatesChange`],setup(e,{emit:t}){let n=e,r=t,i=(0,g.useI18n)(),a=(0,f.ref)(n.columnStates),o=(0,f.computed)(()=>a.value.filter(e=>e.isVisible).length);function s(e){e.isVisible=!e.isVisible,r(`columnStatesChange`,a.value)}function c(){r(`columnStatesChange`,a.value)}function l(){r(`close`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Tv),{size:`xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Av),{title:(0,f.unref)(i).t(`component.table_customization.dialog.title`),description:(0,f.unref)(i).t(`component.table_customization.dialog.description`)},null,8,[`title`,`description`]),(0,f.createVNode)((0,f.unref)(SS),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(T.VueDraggable),{modelValue:a.value,"onUpdate:modelValue":t[0]||=e=>a.value=e,animation:150,handle:`[data-drag-handle]`,class:`flex flex-col gap-y-md`,onEnd:c},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(a.value,e=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:e.column.key,class:`flex cursor-default items-center gap-x-md py-xs`},[(0,f.createVNode)((0,f.unref)(Tn),{class:`size-4 shrink-0 cursor-grab text-fg-disabled duration-150 active:scale-90`,"data-drag-handle":``}),(0,f.createVNode)((0,f.unref)(U),{text:e.column.headerLabel,class:(0,f.normalizeClass)([{"text-secondary":e.isVisible,"text-fg-disabled":!e.isVisible},`text-xs font-medium duration-150`])},null,8,[`text`,`class`]),(0,f.createVNode)((0,f.unref)(ET),{"model-value":e.isVisible,"is-disabled":e.isVisible&&o.value===1,label:e.column.headerLabel,"is-label-hidden":!0,class:`ml-auto`,"onUpdate:modelValue":t=>s(e)},null,8,[`model-value`,`is-disabled`,`label`,`onUpdate:modelValue`])]))),128))]),_:1},8,[`modelValue`])]),_:1}),(0,f.createVNode)((0,f.unref)(Ev),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(kv),{label:(0,f.unref)(i).t(`component.table_customization.dialog.done`),onClick:l},null,8,[`label`])]),_:1})]),_:1}))}});function $j(e){let t=(0,g.useI18n)(),n=Cv().create(Qj),r=(0,f.ref)(e.availableColumns.value.map(t=>({isVisible:e.initialState===void 0||e.initialState.length===0||e.initialState.includes(t.key),column:t})).sort((t,n)=>{if(e.initialState===void 0||e.initialState.length===0)return 0;let r=e.initialState.indexOf(t.column.key),i=e.initialState.indexOf(n.column.key);return r!==-1&&i!==-1?r-i:r===-1?i===-1?0:1:-1})),i=(0,f.computed)(()=>r.value.filter(e=>e.isVisible).map(e=>e.column)),a=(0,p.createAction)({id:`table-customization-dialog`,name:()=>t.t(`component.table_customization.action.name`),execute:()=>{n.open({columnStates:r.value,onColumnStatesChange:e=>{r.value=e}})},group:e.actionGroup,hint:()=>e.availableColumns.value.length-i.value.length===0?null:`${e.availableColumns.value.length-i.value.length} hidden`,icon:()=>_n,keyboardShortcut:{key:`C`,shift:!0}});function o(t){r.value=e.availableColumns.value.map(e=>({isVisible:t.length===0||t.includes(e.key),column:e})).sort((e,n)=>{if(t.length===0)return 0;let r=t.indexOf(e.column.key),i=t.indexOf(n.column.key);return r!==-1&&i!==-1?r-i:r===-1?i===-1?0:1:-1})}return{customizedColumns:i,customizeTableAction:a,setState:o}}var eM=V({slots:{input:`
|
|
1039
|
+
`}}),UA=(0,f.defineComponent)({__name:`SwitchThumbIcon`,setup(e){let{isChecked:t,iconChecked:n,iconUnchecked:r,switchStyle:i}=VA(),a=(0,f.computed)(()=>t.value?n.value:r.value);return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.AnimatePresence),{initial:!1,mode:`popLayout`},{default:(0,f.withCtx)(()=>[a.value===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:a.value?.name??String((0,f.unref)(t)),initial:{opacity:0,x:(0,f.unref)(t)?-8:8,filter:`blur(2px)`},animate:{opacity:1,scale:1,x:0,filter:`blur(0px)`},exit:{opacity:0,x:(0,f.unref)(t)?-8:8,filter:`blur(2px)`},transition:{duration:.25,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(a.value),{class:(0,f.normalizeClass)((0,f.unref)(i).thumbIcon())},null,8,[`class`]))]),_:1},8,[`initial`,`exit`]))]),_:1}))}}),WA=(0,f.defineComponent)({__name:`Switch`,props:(0,f.mergeModels)((0,f.mergeDefaults)({iconChecked:{},iconUnchecked:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{}},{...ry,...iy,iconChecked:null,iconUnchecked:null}),{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,f.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,f.useModel)(e,`modelValue`),a=n.id??(0,f.useId)(),o=(0,f.computed)(()=>HA()),s=(0,f.computed)(()=>n.isErrorMessageHidden||n.hideErrorMessage);return BA({isChecked:(0,f.computed)(()=>i.value),iconChecked:(0,f.computed)(()=>n.iconChecked??null),iconUnchecked:(0,f.computed)(()=>n.iconUnchecked??null),switchStyle:o}),(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(W,{"is-disabled":!n.isDisabled||n.disabledReason==null,label:n.disabledReason},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(I,{align:`start`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.SwitchRoot),{id:(0,f.unref)(a),modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,disabled:n.isDisabled,"data-invalid":n.errorMessage!==null&&n.errorMessage!==void 0||void 0,class:(0,f.normalizeClass)(o.value.root()),onBlur:t[1]||=e=>r(`blur`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.SwitchThumb),{class:(0,f.normalizeClass)(o.value.thumb())},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(UA)]),_:1},8,[`class`])]),_:1},8,[`id`,`modelValue`,`disabled`,`data-invalid`,`class`]),(0,f.createElementVNode)(`div`,null,[n.label===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,class:(0,f.normalizeClass)([n.isLabelHidden&&`sr-only`]),gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`left`),(0,f.createVNode)((0,f.unref)(U),{for:n.for??(0,f.unref)(a),text:n.label,class:(0,f.normalizeClass)((0,f.unref)(Xa)(`text-xs/5 font-medium text-secondary`,n.isRequired?`after:pl-xxs after:text-error-primary`:``)),"data-label-required":n.isRequired?``:null,as:`label`},null,8,[`for`,`text`,`class`,`data-label-required`]),(0,f.renderSlot)(e.$slots,`right`)]),_:3},8,[`class`])),(0,f.createVNode)(Ty,{hint:n.hint,for:n.for},null,8,[`hint`,`for`]),s.value?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)(wy,{key:1,"error-message":n.errorMessage,for:n.for},null,8,[`error-message`,`for`]))])]),_:3})]),_:3},8,[`is-disabled`,`label`]))}}),GA=(0,f.defineComponent)({__name:`ApiErrorState`,props:{error:{}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,f.computed)(()=>{let[e]=t.error.errors??[];return e??null});return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(sk),{title:r.value?.status??(0,f.unref)(n).t(`component.api_error_state.error_title`),description:r.value?.detail??(0,f.unref)(n).t(`component.api_error_state.error_description`)},null,8,[`title`,`description`]))}}),KA=(0,f.defineComponent)({__name:`ZodErrorState`,props:{error:{}},setup(e){let t=e,n=(0,g.useI18n)(),r=(0,m.useClipboard)(),i=(0,f.computed)(()=>r.copied.value?n.t(`component.zod_error_state.copied_label`):n.t(`component.zod_error_state.copy_details_label`));function a(){r.copy(JSON.stringify(d.z.treeifyError(t.error),null,2))}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(sk),{"secondary-action":{label:i.value,onClick:a,type:`button`},description:(0,f.unref)(n).t(`component.zod_error_state.description`),title:(0,f.unref)(n).t(`component.zod_error_state.title`)},null,8,[`secondary-action`,`description`,`title`]))}}),qA=(0,f.defineComponent)({__name:`ErrorState`,props:{error:{}},setup(e){let t=e,n=(0,g.useI18n)();return(e,r)=>(0,f.unref)($S).isExpectedApiError(t.error)?((0,f.openBlock)(),(0,f.createBlock)(GA,{key:0,error:t.error},null,8,[`error`])):(0,f.unref)($S).isZodError(t.error)?((0,f.openBlock)(),(0,f.createBlock)(KA,{key:1,error:t.error},null,8,[`error`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(sk),{key:2,title:(0,f.unref)(n).t(`component.api_error_state.error_title`),description:(0,f.unref)(n).t(`component.api_error_state.error_description`)},null,8,[`title`,`description`]))}}),JA=(0,f.defineComponent)({__name:`TableSubgrid`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{class:`col-span-full grid grid-cols-subgrid`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),[YA,XA]=F(`tableContext`),ZA=(0,f.defineComponent)({__name:`TableBody`,setup(e){let{isScrollableVertically:t,variant:n}=XA(),r=(0,f.computed)(()=>t.value||n.value===`contained`);return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(JA,{class:(0,f.normalizeClass)([{"[&>*:last-child]:border-b-0":r.value},`group/body`])},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),QA={GROUP:3,HEADER:4,SUBGROUP:2},[$A,ej]=F(`tableGroupContext`),[tj,nj]=F(`tableSelectionContext`),rj={class:`sticky z-1 flex items-center gap-xs bg-primary px-2xl group-hover/group:bg-secondary group-has-focus-visible/group:bg-tertiary group-data-[state=open]/collapsible:bg-secondary`},ij={class:`w-5`},aj=(0,f.defineComponent)({__name:`TableBodyGroup`,props:{isOpenByDefault:{type:Boolean,default:!0},defaultOpen:{type:Boolean},headerCells:{},items:{default:()=>[]},label:{}},setup(e){let t=e,{isScrolledFromLeft:n,isSelectable:r,registerGroup:i,unregisterGroup:a}=XA(),{isGroupAllSelected:o,isGroupIndeterminate:s,toggleGroup:c}=nj(),l=(0,g.useI18n)();return $A({isGroup:!0}),i(),(0,f.onBeforeUnmount)(()=>{a()}),(e,i)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.CollapsibleRoot),{as:JA,"default-open":t.defaultOpen===void 0?t.isOpenByDefault:t.defaultOpen,class:`group/collapsible`},{default:(0,f.withCtx)(({open:a})=>[(0,f.createVNode)(JA,{style:(0,f.normalizeStyle)({zIndex:(0,f.unref)(QA).GROUP}),class:`group/group sticky top-10 flex h-8 items-center group-data-[state=open]/collapsible:bg-secondary hover:bg-secondary has-focus-visible:bg-tertiary`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,rj,[(0,f.unref)(r)?((0,f.openBlock)(),(0,f.createBlock)(ET,{key:0,"model-value":(0,f.unref)(o)(t.items)||(0,f.unref)(s)(t.items),"is-indeterminate":(0,f.unref)(s)(t.items)&&!(0,f.unref)(o)(t.items),"is-label-hidden":!0,label:(0,f.unref)(l).t(`component.table.group.toggle_selection_label`),class:`mr-sm`,"onUpdate:modelValue":i[0]||=()=>(0,f.unref)(c)(t.items)},null,8,[`model-value`,`is-indeterminate`,`label`])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(h.CollapsibleTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{class:(0,f.normalizeClass)([{"border-r border-secondary":(0,f.unref)(n),"left-0":!(0,f.unref)(r),"left-10":(0,f.unref)(r)},`h-full flex-1 outline-none`])},[(0,f.createVNode)((0,f.unref)(I),{gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,ij,[(0,f.createVNode)((0,f.unref)(an),{class:(0,f.normalizeClass)([{"-rotate-90":!a},`size-3.5 text-disabled duration-150 group-hover/group:text-secondary`])},null,8,[`class`])]),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:`text-xs text-tertiary duration-150 group-hover/group:text-secondary`},null,8,[`text`])]),_:2},1024)],2)]),_:2},1024)]),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.headerCells,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(e),{key:t}))),128))]),_:2},1032,[`style`]),(0,f.createVNode)((0,f.unref)(h.CollapsibleContent),{as:JA,class:`origin-top-left overflow-clip data-[state=closed]:animate-[table-collapsible-up_150ms] data-[state=open]:animate-[table-collapsible-down_150ms]`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`default-open`]))}}),[oj,sj]=F(`tableBodyRowContext`),[cj,lj]=F(`tableSubGroupContext`),uj={class:`pointer-events-none relative z-1 flex size-full items-center`},dj=(0,f.defineComponent)({__name:`TableBodyRowCell`,setup(e){let{isScrolledFromLeft:t,isSelectable:n,variant:r}=XA(),{link:i,onClick:a}=sj({link:(0,f.computed)(()=>null),onClick:(0,f.computed)(()=>null)}),{isGroup:o}=ej({isGroup:!1}),{isSubGroup:s}=lj({isSubGroup:!1}),c=(0,f.computed)(()=>s?(n.value,`first-of-type:pl-15`):o?(n.value,`first-of-type:pl-10`):`first-of-type:pl-2xl`);return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)([[{"first-of-type:border-r first-of-type:border-secondary":(0,f.unref)(t),"h-10":(0,f.unref)(r)===`full-page`,"h-9":(0,f.unref)(r)===`contained`},c.value],`relative flex items-center overflow-hidden bg-primary px-xl not-group-has-[[data-row-actions]_[data-state=open]]/row:group-hover/row:bg-secondary group-has-focus-visible/row:bg-tertiary first-of-type:sticky first-of-type:left-0 first-of-type:z-2 last-of-type:pr-2xl`])},[(0,f.unref)(i)===null?(0,f.unref)(a)===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:1,tabindex:`-1`,class:`absolute inset-0 z-0`,type:`button`,onClick:n[0]||=(...e)=>(0,f.unref)(a)&&(0,f.unref)(a)(...e)})):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(y.RouterLink),{key:0,to:(0,f.unref)(i),tabindex:`-1`,class:`absolute inset-0 z-0`},null,8,[`to`])),(0,f.createElementVNode)(`div`,uj,[(0,f.renderSlot)(e.$slots,`default`)])],2))}}),fj=(0,f.defineComponent)({__name:`TableBodyRowActionsCell`,props:{actionModel:{}},setup(e){let t=e,n=(0,g.useI18n)(),{actions:r}=XA();return(e,i)=>((0,f.openBlock)(),(0,f.createBlock)(dj,{class:`sticky right-0 z-1 flex items-center justify-end`,"data-row-actions":``},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(xs),{actions:(0,f.unref)(r),models:t.actionModel===null?[]:[t.actionModel],"is-current-context-only":!0,"popover-side":`bottom`,"popover-align":`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{"is-tooltip-disabled":!0,icon:(0,f.unref)(kn),label:(0,f.unref)(n).t(`component.table.actions_cell.label`),size:`sm`,variant:`tertiary`,class:`pointer-events-auto opacity-0 group-hover/row:opacity-100 group-has-focus-visible/row:opacity-100 group-has-[[data-row-actions]_[data-state=open]]/row:opacity-100 pointer-coarse:opacity-100`},null,8,[`icon`,`label`])]),_:1},8,[`actions`,`models`])]),_:1}))}}),pj=[`aria-label`],mj=(0,f.defineComponent)({__name:`TableBodyRow`,props:{actionModel:{default:null},ariaLabel:{default:null},itemKey:{default:null},link:{default:null},onRowClick:{type:[Function,null],default:null}},setup(e){let t=e,n=(0,g.useI18n)(),{isGroupingEnabled:r,actions:i}=XA(),{isSelectable:a,toggleItem:o}=nj(),s=(0,p.createAction)({id:`table-row-toggle-selection`,isApplicable:e=>a.value&&t.itemKey!==null&&e.menuType===void 0,name:()=>n.t(`component.table.row.toggle_selection_action.name`),execute:()=>{t.itemKey!=null&&o(t.itemKey)},keyboardShortcut:{key:`X`}});return oj({link:(0,f.computed)(()=>t.link),onClick:(0,f.computed)(()=>t.onRowClick)}),(a,o)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ps),{actions:(0,f.unref)(i),"is-current-context-only":!0,models:t.actionModel===null?[]:[t.actionModel]},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Ss),{actions:[...(0,f.unref)(i),(0,f.unref)(s)],models:t.actionModel===null?[]:[t.actionModel]},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(JA,{class:(0,f.normalizeClass)([{"border-b border-secondary has-[[data-row-actions]_[data-state=open]]:border-secondary/25 data-[state=open]:border-secondary/25":!(0,f.unref)(r)},`group/row relative isolate transition-[filter,opacity] duration-150 group-has-[[data-context-menu-trigger][data-state=open]]/body:opacity-25 group-has-[[data-row-actions]_[data-state=open]]/body:opacity-25 not-has-[[data-row-actions]_[data-state=open]]:hover:bg-secondary has-focus-visible:bg-tertiary has-[[data-row-actions]_[data-state=open]]:opacity-100 data-[state=open]:opacity-100!`])},{default:(0,f.withCtx)(()=>[e.link===null?e.onRowClick===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`button`,{key:1,"aria-label":e.ariaLabel??(0,f.unref)(n).t(`component.table.row.view_details_label`),class:`pointer-events-none absolute inset-0 z-0 outline-none`,type:`button`,onClick:o[0]||=(...t)=>e.onRowClick&&e.onRowClick(...t)},null,8,pj)):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(y.RouterLink),{key:0,to:e.link,"aria-label":e.ariaLabel??(0,f.unref)(n).t(`component.table.row.view_details_label`),class:`pointer-events-none absolute inset-0 z-0 outline-none`},null,8,[`to`,`aria-label`])),(0,f.renderSlot)(a.$slots,`default`),(0,f.unref)(i).length>0?((0,f.openBlock)(),(0,f.createBlock)(fj,{key:2,"action-model":t.actionModel},null,8,[`action-model`])):(0,f.createCommentVNode)(``,!0)]),_:3},8,[`class`])]),_:3},8,[`actions`,`models`])]),_:3},8,[`actions`,`models`]))}}),hj=(0,f.defineComponent)({__name:`TableBodyRowCellInteractiveElement`,setup(e){return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.Primitive),{"as-child":!0,class:`pointer-events-auto`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3}))}}),gj=(0,f.defineComponent)({__name:`TableBodyRowCheckboxCell`,props:{itemKey:{}},setup(e){let t=e,n=(0,g.useI18n)(),{isItemSelected:r,toggleItem:i}=nj();return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)(dj,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(W),{"keyboard-shortcut":{key:`X`},label:(0,f.unref)(n).t(`component.table.row.toggle_selection_action.name`)},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(hj,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(ET,{"model-value":(0,f.unref)(r)(t.itemKey),label:(0,f.unref)(n).t(`component.table.row.toggle_selection_action.name`),"is-label-hidden":``,"onUpdate:modelValue":a[0]||=e=>(0,f.unref)(i)(t.itemKey)},null,8,[`model-value`,`label`])]),_:1})]),_:1},8,[`label`])]),_:1}))}}),_j={key:0,class:`flex h-full w-10 shrink-0 items-center justify-center`},vj={class:`h-full flex-1 px-5xl outline-none focus-visible:bg-tertiary`},yj={class:`w-5`},bj=(0,f.defineComponent)({__name:`TableBodySubGroup`,props:{isOpenByDefault:{type:Boolean,default:!0},defaultOpen:{type:Boolean},items:{default:()=>[]},label:{}},setup(e){let t=e,{isSelectable:n}=XA(),{isGroupAllSelected:r,isGroupIndeterminate:i,toggleGroup:a}=nj();return cj({isSubGroup:!0}),(e,o)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.CollapsibleRoot),{as:JA,"default-open":t.defaultOpen===void 0?t.isOpenByDefault:t.defaultOpen},{default:(0,f.withCtx)(({open:s})=>[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({zIndex:(0,f.unref)(QA).SUBGROUP}),class:`group/sub-group sticky top-18 col-span-full flex h-8 items-center bg-primary`},[(0,f.unref)(n)?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,_j,[(0,f.createVNode)(ET,{"model-value":(0,f.unref)(r)(t.items)||(0,f.unref)(i)(t.items),"is-indeterminate":(0,f.unref)(i)(t.items)&&!(0,f.unref)(r)(t.items),label:``,"is-label-hidden":``,"onUpdate:modelValue":o[0]||=()=>(0,f.unref)(a)(t.items)},null,8,[`model-value`,`is-indeterminate`])])):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)((0,f.unref)(h.CollapsibleTrigger),{"as-child":!0},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,vj,[(0,f.createVNode)((0,f.unref)(I),{gap:`none`},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,yj,[(0,f.createVNode)((0,f.unref)(an),{class:(0,f.normalizeClass)([{"-rotate-90":!s},`size-3.5 text-disabled duration-150 group-hover/sub-group:text-secondary`])},null,8,[`class`])]),(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:`text-xs text-tertiary duration-150 group-hover/sub-group:text-secondary`},null,8,[`text`])]),_:2},1024)])]),_:2},1024)],4),(0,f.createVNode)((0,f.unref)(h.CollapsibleContent),{as:JA,class:`origin-top-left overflow-clip data-[state=closed]:animate-[table-collapsible-up_150ms] data-[state=open]:animate-[table-collapsible-down_150ms]`},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`default-open`]))}}),xj=[`aria-describedby`],Sj=[`id`],Cj=[`disabled`],wj=(0,f.defineComponent)({__name:`TableHeaderCell`,props:{isCentered:{type:Boolean,default:!1},isResizable:{type:Boolean,default:!0},actionConfig:{default:null},centerContent:{type:Boolean},columnIndex:{},columnKey:{},description:{default:null},label:{}},setup(e){let t=e,n=(0,f.computed)(()=>t.isCentered||t.centerContent===!0),r=(0,g.useI18n)(),{isColumnResizeDisabled:i,isGroupingEnabled:a,isResizingColumn:o,isScrolledFromLeft:s,isSelectable:c,sort:l,onColumnResizeFitToContent:u,onColumnResizeStart:d}=XA(),p=(0,f.useTemplateRef)(`cellEl`),m=(0,f.useId)(),h=(0,f.computed)(()=>l!==null&&l.existsSort(t.columnKey)),v=(0,f.computed)(()=>{if(!h.value)return null;let e=l?.getSort(t.columnKey)??null;return e===null?null:e.direction}),y=(0,f.computed)(()=>{if(!h.value)return null;switch(v.value){case`asc`:return Ht;case`desc`:return At;default:return Cr}});return(e,g)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(ro),{"is-disabled":t.description===null,"popover-side-offset":4,"popover-side":`bottom`},{trigger:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{ref_key:`cellEl`,ref:p,"aria-describedby":t.description===null?void 0:(0,f.unref)(m),class:(0,f.normalizeClass)([{"first-of-type:border-r first-of-type:border-secondary":(0,f.unref)(s),"justify-center":n.value,"bg-secondary":!(0,f.unref)(a),"first-of-type:left-10":(0,f.unref)(c),"first-of-type:left-0":!(0,f.unref)(c)},`group relative flex h-10 items-center overflow-hidden bg-primary px-xl first-of-type:sticky first-of-type:z-2 first-of-type:pl-2xl last-of-type:pr-2xl`])},[t.description===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{key:0,id:(0,f.unref)(m),class:`sr-only`},(0,f.toDisplayString)(t.description),9,Sj)),(0,f.createVNode)((0,f.unref)(I),{gap:`xs`},{default:(0,f.withCtx)(()=>[t.label===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Z),{key:0},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`button`,{disabled:!h.value,type:`button`,class:`-ml-sm flex items-center gap-xs rounded-sm px-sm py-xxs duration-100 not-disabled:hover:bg-secondary-hover disabled:cursor-default!`,onClick:g[0]||=e=>(0,f.unref)(l)?.toggleSort(t.columnKey)},[(0,f.createVNode)((0,f.unref)(U),{text:t.label,class:`text-xs font-medium text-primary`},null,8,[`text`]),(0,f.createVNode)((0,f.unref)(_.AnimatePresence),{mode:`popLayout`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(_.Motion),{key:v.value??`none`,initial:{opacity:0,filter:`blur(2px)`,scale:.5},animate:{opacity:1,filter:`blur(0px)`,scale:1},exit:{opacity:0,filter:`blur(2px)`,scale:.5},transition:{duration:.15,type:`spring`,bounce:0}},{default:(0,f.withCtx)(()=>[y.value===null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(y.value),{key:0,class:(0,f.normalizeClass)([[v.value===null?`text-disabled`:`text-primary`],`size-3 duration-150`])},null,8,[`class`]))]),_:1}))]),_:1})],8,Cj)]),_:1})),(0,f.createVNode)((0,f.unref)(xs),{actions:t.actionConfig?.actions??[],metadata:t.actionConfig?.metadata,"is-current-context-only":t.actionConfig?.currentContextOnly??!0,"popover-side":`bottom`,"popover-align":`end`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(X),{icon:(0,f.unref)(kn),"is-tooltip-disabled":t.actionConfig?.label===void 0,label:t.actionConfig?.label??(0,f.unref)(r).t(`component.table.header_cell.options_label`),size:`sm`,variant:`tertiary`},null,8,[`icon`,`is-tooltip-disabled`,`label`])]),_:1},8,[`actions`,`metadata`,`is-current-context-only`])]),_:1}),t.isResizable&&!(0,f.unref)(i)?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:1,class:`group/handle absolute top-0 right-0 z-10 flex h-full w-4 cursor-col-resize items-center justify-center select-none`,onMousedown:g[1]||=(0,f.withModifiers)(e=>(0,f.unref)(d)(t.columnIndex,e.clientX,p.value),[`prevent`]),onDblclick:g[2]||=(0,f.withModifiers)(e=>(0,f.unref)(u)(t.columnIndex,p.value),[`prevent`])},[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)([{"scale-92":(0,f.unref)(o)},`h-5 w-1 rounded-full bg-fg-disabled opacity-0 duration-150 group-hover/handle:opacity-100`])},null,2)],32)):(0,f.createCommentVNode)(``,!0)],10,xj)]),content:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(so),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(uo),{text:t.description},null,8,[`text`])]),_:1})]),_:1},8,[`is-disabled`]))}}),Tj=(0,f.defineComponent)({__name:`TableHeader`,setup(e){let t=(0,g.useI18n)(),{isGroupingEnabled:n,actions:r,headerActions:i}=XA();return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)(JA,{style:(0,f.normalizeStyle)({zIndex:(0,f.unref)(QA).HEADER}),class:(0,f.normalizeClass)([{"border-b border-secondary":!(0,f.unref)(n)},`sticky top-0`])},{default:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`default`),(0,f.unref)(r).length>0||(0,f.unref)(i).length>0?((0,f.openBlock)(),(0,f.createBlock)(wj,{key:0,"column-index":0,"is-resizable":!1,label:null,"action-config":{actions:(0,f.unref)(i)??[],label:(0,f.unref)(t).t(`component.table.settings_label`),currentContextOnly:!1},"column-key":``,class:`sticky right-0 z-1 h-full`},null,8,[`action-config`])):(0,f.createCommentVNode)(``,!0)]),_:3},8,[`style`,`class`]))}}),Ej=(0,f.defineComponent)({__name:`TableHeaderCellBase`,props:{isCentered:{type:Boolean,default:!1},centerContent:{type:Boolean}},setup(e){let t=e,n=(0,f.computed)(()=>t.isCentered||t.centerContent===!0),{isGroupingEnabled:r,isScrolledFromLeft:i}=XA();return(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)([{"first-of-type:border-r first-of-type:border-secondary":(0,f.unref)(i),"justify-center":n.value,"bg-secondary":!(0,f.unref)(r)},`group relative flex h-10 items-center overflow-hidden bg-primary px-xl first-of-type:sticky first-of-type:z-2 first-of-type:pl-2xl last-of-type:pr-2xl`])},[(0,f.renderSlot)(e.$slots,`default`)],2))}}),Dj=(0,f.defineComponent)({__name:`TableHeaderCheckboxCell`,setup(e){let t=(0,g.useI18n)(),{isAllSelected:n,isIndeterminate:r,toggleAll:i}=nj();return(e,a)=>((0,f.openBlock)(),(0,f.createBlock)(Ej,null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)(ET,{"model-value":(0,f.unref)(n)||(0,f.unref)(r),"is-indeterminate":(0,f.unref)(r)&&!(0,f.unref)(n),"is-label-hidden":!0,label:(0,f.unref)(t).t(`component.table.header.select_all_label`),"onUpdate:modelValue":(0,f.unref)(i)},null,8,[`model-value`,`is-indeterminate`,`label`,`onUpdate:modelValue`])]),_:1}))}}),Oj=(0,f.defineComponent)({__name:`TableHiddenResultsWarning`,setup(e){let t=(0,g.useI18n)(),{activeFilterCountIncludingSearch:n,onClearFiltersAndSearch:r}=XA();return(e,i)=>(0,f.unref)(n)>0?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(I),{key:0,class:`p-xl`,justify:`center`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(U),{text:(0,f.unref)(t).t(`component.table.hidden_results_warning.message`,{count:(0,f.unref)(n)}),class:`text-xs text-tertiary`},null,8,[`text`]),(0,f.createVNode)((0,f.unref)(Y),{label:(0,f.unref)(t).t(`component.table.empty_state.no_results.clear_filters_label`),size:`sm`,variant:`secondary`,onClick:(0,f.unref)(r)},null,8,[`label`,`onClick`])]),_:1})):(0,f.createCommentVNode)(``,!0)}}),kj=H((0,f.defineComponent)({__name:`TableLoading`,setup(e){let{gridTemplateColumns:t}=XA(),n=[`60%`,`70%`,`65%`,`75%`,`60%`,`70%`];function r(e,t){return n[(e*3+t)%n.length]}return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(JA,{style:(0,f.normalizeStyle)({gridTemplateColumns:(0,f.unref)(t)}),class:`z-10 grid w-full mask-b-to-transparent px-2xl`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(10,e=>(0,f.createVNode)(JA,{key:e,style:(0,f.normalizeStyle)({"--row-index":e-1}),class:`custom-skeleton-row py-lg`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(3,t=>(0,f.createVNode)((0,f.unref)(K),{key:t,style:(0,f.normalizeStyle)({maxWidth:r(e-1,t-1)}),class:`h-4`},null,8,[`style`])),64))]),_:2},1032,[`style`])),64))]),_:1},8,[`style`]))}}),[[`__scopeId`,`data-v-0577cb9a`]]),Aj={max:`auto`,min:`min-content`};function jj({max:e,min:t}){return e===`auto`?`minmax(${t}, auto)`:t===e?t:t===`min-content`?`fit-content(${e})`:`minmax(${t}, ${e})`}var Mj=`2.5rem`,Nj=class{static columnSizesToGridTemplateColumns(e,t,n=!1){let r=[...e.slice(0,-1),Aj].map(jj).join(` `),i=t?`${r} min-content`:r;return n?`${Mj} ${i}`:i}};function Pj(e,t){return e===`min-content`||e===`auto`?t===`min`?0:1/0:e.endsWith(`rem`)?Number.parseFloat(e)*Number.parseFloat(getComputedStyle(document.documentElement).fontSize):t===`min`?0:1/0}function Fj(e,t,n){let r=`${e.map((e,n)=>n===t?`max-content`:`${e}px`).join(` `)} minmax(min-content, auto) min-content`;return n?`${Mj} ${r}`:r}function Ij(e,t,n,r,i,a,o,s){let c=(0,f.ref)(null),l=(0,f.ref)(null),u=(0,f.ref)(null),d=(0,f.ref)(null),h=(0,f.ref)(0),_=(0,f.ref)(0),v=(0,f.computed)(()=>d.value!==null),y=(0,f.computed)(()=>l.value===null?c.value??b():Fj(l.value,u.value,a.value));function b(){return Nj.columnSizesToGridTemplateColumns(e.value,!0,a.value)}(0,f.watch)([t,n,e],([e,r])=>{if(e===null||!r)return;let i=k();if(i.length>0){let e=i.length+2;c.value=Array.from({length:e}).fill(`max-content`).join(` `)}setTimeout(()=>{n.value&&t.value!==null&&O(k())},0)},{flush:`post`}),(0,f.watch)([o,s],()=>{l.value=null,c.value=null});let x=0,S=(0,m.useDebounceFn)(e=>{C(e)},25);(0,m.useResizeObserver)(t,e=>{let n=e[0]?.borderBoxSize[0]?.inlineSize;n===void 0||n===x||(x=n,l.value===null&&t.value!==null&&S(t.value))},{box:`border-box`});async function C(e){c.value=null,await(0,f.nextTick)(),c.value=getComputedStyle(e).gridTemplateColumns}(0,f.watch)(()=>e.value.length,()=>{l.value=null,u.value=null,d.value=null});function w(t,n){let r=e.value[t];if(r===void 0)return n;let i=Pj(r.min,`min`),a=Pj(r.max,`max`);return Math.min(a,Math.max(i,n))}function T(t){let n=Array.from(t.parentElement?.children??[]),r=+!!a.value;return n.slice(r,r+e.value.length-1).map(e=>e.getBoundingClientRect().width)}function E(e,t,n){let r=T(n);l.value=r,d.value=e,h.value=t,_.value=r[e]}function ee(e){if(d.value===null||l.value===null)return;let t=e.clientX-h.value,n=w(d.value,_.value+t),r=[...l.value];r[d.value]=n,l.value=r}function D(){d.value=null}async function te(e,t){l.value===null&&(l.value=T(t)),u.value=e,await(0,f.nextTick)();let n=t.getBoundingClientRect().width,r=[...l.value];r[e]=w(e,n),l.value=r,u.value=null}function O(e){let n=t.value;if(e.length===0||n===null)return;let r=e.length+2;n.style.gridTemplateColumns=Array.from({length:r}).fill(`max-content`).join(` `);let i=e.map((e,t)=>w(t,e.getBoundingClientRect().width));n.style.gridTemplateColumns=Fj(i,null,a.value),l.value=i}document.addEventListener(`mousemove`,ee),document.addEventListener(`mouseup`,D),(0,f.onBeforeUnmount)(()=>{document.removeEventListener(`mousemove`,ee),document.removeEventListener(`mouseup`,D)});let ne=(0,g.useI18n)();function k(){let n=t.value?.children[0];if(n===void 0)return[];let r=+!!a.value;return Array.from(n.children).slice(r,r+e.value.length-1)}let re=(0,p.createAction)({id:`table-auto-fit-columns`,isApplicable:()=>!i.value,name:()=>ne.t(`component.table.auto_fit_columns_action.name`),execute:()=>O(k()),group:r.value??void 0,icon:()=>yr,keyboardShortcut:{key:`A`,shift:!0}});return(0,p.useTemporaryActions)(re),{isResizing:v,autoFitColumnsAction:re,fitColumnToContent:te,gridTemplateColumns:y,startColumnResize:E}}function Lj(){let e=(0,f.ref)(!1),t=(0,f.ref)(!0),n=(0,f.ref)(!1);function r(r){e.value=r.scrollLeft>0,t.value=r.scrollLeft+r.clientWidth>=r.scrollWidth-1,n.value=r.scrollHeight>r.clientHeight}function i(e){r(e),e.addEventListener(`scroll`,()=>r(e),{passive:!0});let t=new ResizeObserver(()=>r(e));t.observe(e);let n=e.children[0];n!==void 0&&t.observe(n)}return{isScrollableVertically:n,isScrolledFromLeft:e,isScrolledToEnd:t,setScrollContainer:i}}var Rj=(0,f.defineComponent)({__name:`TableRoot`,props:{hasActiveSearch:{type:Boolean,default:!1},isColumnResizeDisabled:{type:Boolean},isInitialized:{type:Boolean},isSelectable:{type:Boolean,default:!1},actionGroup:{default:null},actions:{default:()=>[]},activeFilterCount:{default:0},columnSizes:{},disableColumnResize:{type:Boolean},headerActions:{default:()=>[]},sort:{default:null},variant:{default:`full-page`},onNextPage:{}},emits:[`clearFiltersAndSearch`],setup(e,{emit:t}){let n=e,r=t,i=(0,f.ref)(null),{isScrollableVertically:a,isScrolledFromLeft:o,isScrolledToEnd:s,setScrollContainer:c}=Lj(),l=(0,f.ref)(0),u=(0,f.computed)(()=>l.value>0),d=(0,f.computed)(()=>i.value?.children[0]??null),p=(0,f.computed)(()=>n.isColumnResizeDisabled===!0||n.disableColumnResize===!0),{isResizing:h,autoFitColumnsAction:g,fitColumnToContent:_,gridTemplateColumns:v,startColumnResize:y}=Ij((0,f.computed)(()=>n.columnSizes),d,(0,f.computed)(()=>n.isInitialized),(0,f.computed)(()=>n.actionGroup),p,(0,f.computed)(()=>n.isSelectable),(0,f.computed)(()=>n.hasActiveSearch??!1),(0,f.computed)(()=>n.activeFilterCount??0)),b=(0,f.computed)(()=>(n.activeFilterCount??0)+ +!!n.hasActiveSearch);function x(){l.value+=1}function S(){--l.value}function C(){r(`clearFiltersAndSearch`)}return(0,m.useInfiniteScroll)(i,()=>{n.onNextPage?.()},{offset:{bottom:400}}),(0,f.watch)(a,e=>{!e&&n.isInitialized&&n.onNextPage?.()},{immediate:!0}),YA({isColumnResizeDisabled:(0,f.computed)(()=>n.isColumnResizeDisabled),isGroupingEnabled:(0,f.computed)(()=>u.value),isResizingColumn:h,isScrollableVertically:(0,f.computed)(()=>a.value),isScrolledFromLeft:(0,f.computed)(()=>o.value),isScrolledToEnd:(0,f.computed)(()=>s.value),isSelectable:(0,f.computed)(()=>n.isSelectable),actions:(0,f.computed)(()=>n.actions),activeFilterCountIncludingSearch:b,gridTemplateColumns:v,headerActions:(0,f.computed)(()=>[...n.headerActions,g]),registerGroup:x,setScrollContainer:e=>{i.value=e,c(e)},sort:n.sort,unregisterGroup:S,variant:(0,f.computed)(()=>n.variant),onClearFiltersAndSearch:C,onColumnResizeFitToContent:_,onColumnResizeStart:y}),(e,t)=>(0,f.renderSlot)(e.$slots,`default`)}}),[zj,Bj]=F(`tableScrollContainerContext`),Vj=(0,f.defineComponent)({__name:`TableScrollContainer`,props:{isScrollDisabled:{type:Boolean,default:!1},disableScroll:{type:Boolean}},setup(e){let t=e,n=(0,f.computed)(()=>t.isScrollDisabled||t.disableScroll===!0),{gridTemplateColumns:r,setScrollContainer:i,variant:a}=XA(),o=Bj(null),s=(0,f.useTemplateRef)(`containerEl`);return(0,f.onMounted)(()=>{s.value!==null&&(i(s.value),o!==null&&(o.value=s.value))}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{ref_key:`containerEl`,ref:s,class:(0,f.normalizeClass)([{"rounded-xl border border-secondary":(0,f.unref)(a)===`contained`&&!n.value,"overflow-auto":!n.value},`max-h-full w-full contain-layout contain-paint outline-none`])},[(0,f.createElementVNode)(`div`,{style:(0,f.normalizeStyle)({gridTemplateColumns:(0,f.unref)(r)}),class:`grid`},[(0,f.renderSlot)(e.$slots,`default`)],4),(0,f.renderSlot)(e.$slots,`outside-grid`)],2))}});function Hj(e,t,n){let r=(0,f.ref)(`includes`),i=(0,f.ref)(new Set),a=(0,f.computed)(()=>r.value===`excludes`&&i.value.size===0),o=(0,f.computed)(()=>(r.value,i.value.size>0));function s(e){return r.value===`includes`?i.value.has(e):!i.value.has(e)}function c(e){let t=new Set(i.value);t.has(e)?t.delete(e):t.add(e),i.value=t}function l(){a.value?(r.value=`includes`,i.value=new Set):(r.value=`excludes`,i.value=new Set)}function u(e){return e.length>0&&e.every(e=>s(t(e)))}function d(e){let n=e.filter(e=>s(t(e))).length;return n>0&&n<e.length}function p(e){if(u(e)){let n=new Set(i.value);if(r.value===`includes`)for(let r of e)n.delete(t(r));else for(let r of e)n.add(t(r));i.value=n}else{let n=new Set(i.value);if(r.value===`includes`)for(let r of e)n.add(t(r));else for(let r of e)n.delete(t(r));i.value=n}}return(0,f.watch)([r,i],()=>{let a=i.value,o=r.value;n({items:e.value.filter(e=>a.has(t(e))),type:o})},{deep:!0}),{isAllSelected:a,isGroupAllSelected:u,isGroupIndeterminate:d,isIndeterminate:o,isItemSelected:s,toggleAll:l,toggleGroup:p,toggleItem:c}}function Uj(e,t){let n=(0,w.useVirtualizer)((0,f.computed)(()=>({count:e.value,estimateSize:()=>40,getScrollElement:()=>t.value,overscan:5}))),r=(0,f.computed)(()=>n.value.getVirtualItems()),i=(0,f.computed)(()=>n.value.getTotalSize()),a=(0,f.computed)(()=>r.value.at(0)?.start??0);return{paddingAfterPx:(0,f.computed)(()=>{let e=r.value.at(-1);return e==null?0:i.value-e.end}),paddingBeforePx:a,virtualItems:r}}var Wj=(0,f.defineComponent)({__name:`Table`,props:{isFetchingNextPage:{type:Boolean},isLoading:{type:Boolean},isSelectable:{type:Boolean,default:!1},columns:{},data:{},error:{},getActionModel:{},getKey:{},getLink:{type:[Function,null],default:null},groupHeaderCells:{},onRowClick:{type:[Function,null],default:null},hasActiveSearch:{type:Boolean},isColumnResizeDisabled:{type:Boolean},actionGroup:{},actions:{},activeFilterCount:{default:0},disableColumnResize:{type:Boolean},headerActions:{},sort:{},variant:{},onNextPage:{}},emits:[`clearFilters`,`clearSearch`,`select`],setup(e,{emit:t}){let n=e,r=t;n.getLink!==null&&n.onRowClick!==null&&console.warn("[Table] `getLink` and `onRowClick` are mutually exclusive — a row supports only one interaction mode. `onRowClick` will be ignored for rows where `getLink` returns a value.");let i=(0,g.useI18n)(),a=(0,f.shallowRef)(null);zj(a);let o=(0,f.computed)(()=>{if(n.data.length===0)return`flat`;let e=n.data[0];return`subGroups`in e?`with-sub-groups`:`items`in e?`grouped`:`flat`}),s=(0,f.computed)(()=>n.data),c=(0,f.computed)(()=>n.data),l=(0,f.computed)(()=>n.data),u=(0,f.computed)(()=>o.value===`flat`?s.value:o.value===`grouped`?c.value.flatMap(e=>e.items):l.value.flatMap(e=>e.subGroups.flatMap(e=>e.items))),d=(0,f.computed)(()=>n.columns.map(e=>e.size??{max:`20rem`,min:`min-content`})),{paddingAfterPx:p,paddingBeforePx:m,virtualItems:h}=Uj((0,f.computed)(()=>o.value===`flat`?s.value.length:0),a),{isAllSelected:_,isGroupAllSelected:v,isGroupIndeterminate:y,isIndeterminate:b,isItemSelected:x,toggleAll:S,toggleGroup:C,toggleItem:w}=Hj(u,e=>n.getKey(e),e=>r(`select`,e));tj({isAllSelected:_,isGroupAllSelected:e=>v(e),isGroupIndeterminate:e=>y(e),isIndeterminate:b,isItemSelected:x,isSelectable:(0,f.computed)(()=>n.isSelectable),toggleAll:S,toggleGroup:e=>C(e),toggleItem:w}),(0,f.watch)(()=>n.data.length,(e,t)=>{e<t&&a.value?.scrollTo({top:0})});function T(){r(`clearFilters`),r(`clearSearch`)}return(t,r)=>((0,f.openBlock)(),(0,f.createBlock)(Rj,{"column-sizes":d.value,actions:n.actions,"active-filter-count":n.activeFilterCount,"has-active-search":n.hasActiveSearch,"on-next-page":n.onNextPage,"is-initialized":n.data.length>0,"is-selectable":n.isSelectable,"header-actions":n.headerActions,"action-group":n.actionGroup,"is-column-resize-disabled":n.isColumnResizeDisabled,variant:n.variant,sort:n.sort,onClearFiltersAndSearch:T},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(Vj,{"is-scroll-disabled":n.data.length===0},{"outside-grid":(0,f.withCtx)(()=>[n.isLoading||n.isFetchingNextPage?((0,f.openBlock)(),(0,f.createBlock)(kj,{key:0})):(0,f.createCommentVNode)(``,!0),e.data.length>0?((0,f.openBlock)(),(0,f.createBlock)(Oj,{key:1})):(0,f.createCommentVNode)(``,!0)]),default:(0,f.withCtx)(()=>[e.data.length>0||n.isLoading?((0,f.openBlock)(),(0,f.createBlock)(Tj,{key:0},{default:(0,f.withCtx)(()=>[n.isSelectable?((0,f.openBlock)(),(0,f.createBlock)(Dj,{key:0})):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n.columns,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(wj,{key:e.key,"column-index":t,"is-resizable":t<n.columns.length-1,label:e.headerLabel,description:e.headerDescription??null,"is-centered":e.isCenteredHeaderContent??e.centerHeaderContent??!1,"action-config":e.actionConfig,"column-key":e.key},null,8,[`column-index`,`is-resizable`,`label`,`description`,`is-centered`,`action-config`,`column-key`]))),128))]),_:1})):(0,f.createCommentVNode)(``,!0),(0,f.createVNode)(ZA,null,{default:(0,f.withCtx)(()=>[o.value===`flat`?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[(0,f.unref)(m)>0?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:0,style:(0,f.normalizeStyle)({height:`${(0,f.unref)(m)}px`}),class:`col-span-full`},null,4)):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)((0,f.unref)(h),e=>((0,f.openBlock)(),(0,f.createBlock)(mj,{key:n.getKey(s.value[e.index]),"action-model":n.getActionModel?.(s.value[e.index]),"item-key":n.getKey(s.value[e.index]),link:n.getLink?.(s.value[e.index])??null,"on-row-click":n.onRowClick===null?null:()=>n.onRowClick?.(s.value[e.index])},{default:(0,f.withCtx)(()=>[n.isSelectable?((0,f.openBlock)(),(0,f.createBlock)(gj,{key:0,"item-key":n.getKey(s.value[e.index])},null,8,[`item-key`])):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n.columns,t=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.component(s.value[e.index])),{key:t.key}))),128))]),_:2},1032,[`action-model`,`item-key`,`link`,`on-row-click`]))),128)),(0,f.unref)(p)>0?((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:1,style:(0,f.normalizeStyle)({height:`${(0,f.unref)(p)}px`}),class:`col-span-full`},null,4)):(0,f.createCommentVNode)(``,!0)],64)):o.value===`with-sub-groups`?((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,{key:1},(0,f.renderList)(l.value,e=>((0,f.openBlock)(),(0,f.createBlock)(aj,{key:e.key,"is-open-by-default":e.isOpenByDefault??e.defaultOpen,label:e.label},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.subGroups,e=>((0,f.openBlock)(),(0,f.createBlock)(bj,{key:e.key,"is-open-by-default":e.isOpenByDefault??e.defaultOpen,items:n.isSelectable?e.items:[],label:e.label},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.items,e=>((0,f.openBlock)(),(0,f.createBlock)(mj,{key:n.getKey(e),"action-model":n.getActionModel?.(e),"item-key":n.getKey(e),link:n.getLink?.(e)??null,"on-row-click":n.onRowClick===null?null:()=>n.onRowClick?.(e)},{default:(0,f.withCtx)(()=>[n.isSelectable?((0,f.openBlock)(),(0,f.createBlock)(gj,{key:0,"item-key":n.getKey(e)},null,8,[`item-key`])):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n.columns,t=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.component(e)),{key:t.key}))),128))]),_:2},1032,[`action-model`,`item-key`,`link`,`on-row-click`]))),128))]),_:2},1032,[`is-open-by-default`,`items`,`label`]))),128))]),_:2},1032,[`is-open-by-default`,`label`]))),128)):((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,{key:2},(0,f.renderList)(c.value,e=>((0,f.openBlock)(),(0,f.createBlock)(aj,{key:e.key,"is-open-by-default":e.isOpenByDefault??e.defaultOpen,items:n.isSelectable?e.items:[],label:e.label,"header-cells":n.groupHeaderCells?.(e)},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e.items,e=>((0,f.openBlock)(),(0,f.createBlock)(mj,{key:n.getKey(e),"action-model":n.getActionModel?.(e),"item-key":n.getKey(e),link:n.getLink?.(e)??null,"on-row-click":n.onRowClick===null?null:()=>n.onRowClick?.(e)},{default:(0,f.withCtx)(()=>[n.isSelectable?((0,f.openBlock)(),(0,f.createBlock)(gj,{key:0,"item-key":n.getKey(e)},null,8,[`item-key`])):(0,f.createCommentVNode)(``,!0),((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(n.columns,t=>((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.component(e)),{key:t.key}))),128))]),_:2},1032,[`action-model`,`item-key`,`link`,`on-row-click`]))),128))]),_:2},1032,[`is-open-by-default`,`items`,`label`,`header-cells`]))),128))]),_:1})]),_:1},8,[`is-scroll-disabled`]),n.error===null?n.data.length===0&&!n.isLoading?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:1},[n.activeFilterCount>0||n.hasActiveSearch?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(sk),{key:0,"secondary-action":{type:`button`,label:(0,f.unref)(i).t(`component.table.empty_state.no_results.clear_filters_label`),onClick:T},title:(0,f.unref)(i).t(`component.table.empty_state.no_results.title`),description:(0,f.unref)(i).t(`component.table.empty_state.no_results.description`),illustration:n.variant===`contained`?null:`cloud-search`,class:`mx-auto h-full max-w-96 py-xl`},null,8,[`secondary-action`,`title`,`description`,`illustration`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(sk),{key:1,title:(0,f.unref)(i).t(`component.table.empty_state.no_data.title`),description:(0,f.unref)(i).t(`component.table.empty_state.no_data.description`),illustration:n.variant===`contained`?null:`cloud-search`,class:`mx-auto h-full max-w-96 py-xl`},null,8,[`title`,`description`,`illustration`]))],64)):(0,f.createCommentVNode)(``,!0):(0,f.renderSlot)(t.$slots,`error`,{key:0,error:n.error},()=>[(0,f.createVNode)((0,f.unref)(qA),{error:n.error},null,8,[`error`])])]),_:3},8,[`column-sizes`,`actions`,`active-filter-count`,`has-active-search`,`on-next-page`,`is-initialized`,`is-selectable`,`header-actions`,`action-group`,`is-column-resize-disabled`,`variant`,`sort`]))}}),Gj=(0,f.defineComponent)({__name:`TableBodyRowCellText`,props:{isPrimaryCell:{type:Boolean,default:!1},text:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`span`,{class:(0,f.normalizeClass)([{"font-medium":t.isPrimaryCell},`truncate text-xs text-secondary`])},(0,f.toDisplayString)(t.text),3))}}),Kj={},qj={class:`last-of-type:pr-2xl last-of-type:pl-xl`};function Jj(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)(`div`,qj,[(0,f.renderSlot)(e.$slots,`default`)])}var Yj=H(Kj,[[`render`,Jj]]);function Xj(){let e=(0,f.ref)(null),t=(0,f.ref)(null),n=(0,f.ref)(null),r=(0,f.ref)(0),i=(0,f.ref)(0),a=(0,f.computed)(()=>n.value!==null);function o(t,a,o){e.value=o,n.value=t,r.value=a,i.value=o[t]}async function s(n,r,i){if(e.value===null){if(i===void 0)return;e.value=i}t.value=n,await(0,f.nextTick)();let a=r.getBoundingClientRect().width,o=[...e.value];o[n]=a,e.value=o,t.value=null}function c(t){if(t.length===0)return;let n=t[0].parentElement,r=n?.parentElement;if(r==null||n==null)return;let i=n.children.length;r.style.gridTemplateColumns=Array.from({length:i}).fill(`max-content`).join(` `);let a=t.map(e=>e.getBoundingClientRect().width),o=i>t.length+1,s=a.map(e=>`${e}px`).join(` `);r.style.gridTemplateColumns=o?`${s} minmax(min-content, auto) min-content`:`${s} minmax(min-content, auto)`,e.value=a}function l(){e.value=null,n.value=null,t.value=null}function u(t){if(n.value===null||e.value===null)return;let a=t.clientX-r.value,o=Math.max(50,i.value+a),s=[...e.value];s[n.value]=o,e.value=s}function d(){n.value!==null&&(n.value=null)}return document.addEventListener(`mousemove`,u),document.addEventListener(`mouseup`,d),(0,f.onBeforeUnmount)(()=>{document.removeEventListener(`mousemove`,u),document.removeEventListener(`mouseup`,d)}),{isResizingColumn:a,contentFitColumnIndex:t,fitAllColumnsToContent:c,fitColumnToContent:s,fixedWidths:e,resetWidths:l,startResize:o}}function Zj(e,t,n){let r=(0,f.ref)(null);(0,f.watch)([n,t,e],([e,t])=>{e===null||!t||i(e)});async function i(e){r.value=null,await(0,f.nextTick)(),r.value=getComputedStyle(e).gridTemplateColumns}let a=0;return(0,m.useResizeObserver)(n,e=>{let t=e[0]?.borderBoxSize[0]?.inlineSize;t!==void 0&&t!==a&&(a=t,i(n.value))},{box:`border-box`}),{frozenColumns:r}}function Qj(){return e=>e}var $j=(0,f.defineComponent)({__name:`TableCustomizationDialog`,props:{columnStates:{}},emits:[`close`,`columnStatesChange`],setup(e,{emit:t}){let n=e,r=t,i=(0,g.useI18n)(),a=(0,f.ref)(n.columnStates),o=(0,f.computed)(()=>a.value.filter(e=>e.isVisible).length);function s(e){e.isVisible=!e.isVisible,r(`columnStatesChange`,a.value)}function c(){r(`columnStatesChange`,a.value)}function l(){r(`close`)}return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(Tv),{size:`xs`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(Av),{title:(0,f.unref)(i).t(`component.table_customization.dialog.title`),description:(0,f.unref)(i).t(`component.table_customization.dialog.description`)},null,8,[`title`,`description`]),(0,f.createVNode)((0,f.unref)(CS),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(T.VueDraggable),{modelValue:a.value,"onUpdate:modelValue":t[0]||=e=>a.value=e,animation:150,handle:`[data-drag-handle]`,class:`flex flex-col gap-y-md`,onEnd:c},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(a.value,e=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{key:e.column.key,class:`flex cursor-default items-center gap-x-md py-xs`},[(0,f.createVNode)((0,f.unref)(Tn),{class:`size-4 shrink-0 cursor-grab text-fg-disabled duration-150 active:scale-90`,"data-drag-handle":``}),(0,f.createVNode)((0,f.unref)(U),{text:e.column.headerLabel,class:(0,f.normalizeClass)([{"text-secondary":e.isVisible,"text-fg-disabled":!e.isVisible},`text-xs font-medium duration-150`])},null,8,[`text`,`class`]),(0,f.createVNode)((0,f.unref)(DT),{"model-value":e.isVisible,"is-disabled":e.isVisible&&o.value===1,label:e.column.headerLabel,"is-label-hidden":!0,class:`ml-auto`,"onUpdate:modelValue":t=>s(e)},null,8,[`model-value`,`is-disabled`,`label`,`onUpdate:modelValue`])]))),128))]),_:1},8,[`modelValue`])]),_:1}),(0,f.createVNode)((0,f.unref)(Ev),null,{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(kv),{label:(0,f.unref)(i).t(`component.table_customization.dialog.done`),onClick:l},null,8,[`label`])]),_:1})]),_:1}))}});function eM(e){let t=(0,g.useI18n)(),n=Cv().create($j),r=(0,f.ref)(e.availableColumns.value.map(t=>({isVisible:e.initialState===void 0||e.initialState.length===0||e.initialState.includes(t.key),column:t})).sort((t,n)=>{if(e.initialState===void 0||e.initialState.length===0)return 0;let r=e.initialState.indexOf(t.column.key),i=e.initialState.indexOf(n.column.key);return r!==-1&&i!==-1?r-i:r===-1?i===-1?0:1:-1})),i=(0,f.computed)(()=>r.value.filter(e=>e.isVisible).map(e=>e.column)),a=(0,p.createAction)({id:`table-customization-dialog`,name:()=>t.t(`component.table_customization.action.name`),execute:()=>{n.open({columnStates:r.value,onColumnStatesChange:e=>{r.value=e}})},group:e.actionGroup,hint:()=>e.availableColumns.value.length-i.value.length===0?null:`${e.availableColumns.value.length-i.value.length} hidden`,icon:()=>_n,keyboardShortcut:{key:`C`,shift:!0}});function o(t){r.value=e.availableColumns.value.map(e=>({isVisible:t.length===0||t.includes(e.key),column:e})).sort((e,n)=>{if(t.length===0)return 0;let r=t.indexOf(e.column.key),i=t.indexOf(n.column.key);return r!==-1&&i!==-1?r-i:r===-1?i===-1?0:1:-1})}return{customizedColumns:i,customizeTableAction:a,setState:o}}var tM=V({slots:{input:`
|
|
1040
1040
|
h-5 min-w-20 flex-1 bg-transparent text-xs text-primary outline-none
|
|
1041
1041
|
placeholder:text-placeholder
|
|
1042
1042
|
read-only:cursor-default
|
|
1043
1043
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
1044
1044
|
disabled:placeholder:text-fg-disabled-subtle
|
|
1045
|
-
`},variants:{size:{md:{input:`px-xs`},sm:{input:`px-xs`}}}}),
|
|
1045
|
+
`},variants:{size:{md:{input:`px-xs`},sm:{input:`px-xs`}}}}),nM=(0,f.defineComponent)({__name:`TagsFieldTag`,props:{isDisabled:{type:Boolean},isReadonly:{type:Boolean},value:{}},setup(e){let t=e;return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TagsInputItem),{value:t.value,class:`inline-flex h-5 shrink-0 items-center gap-sm rounded-sm border border-gray-200 bg-gray-25 px-xs aria-current:bg-tertiary/80 dark:border-gray-800 dark:bg-gray-950`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TagsInputItemText),{class:`max-w-xs truncate text-xxs font-medium text-gray-700 dark:text-gray-300`}),!t.isDisabled&&!t.isReadonly?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TagsInputItemDelete),{key:0,"aria-label":`Remove tag`,class:`flex items-center text-gray-500 outline-none hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200`},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(zr),{class:`size-3`})]),_:1})):(0,f.createCommentVNode)(``,!0)]),_:1},8,[`value`]))}}),rM=(0,f.defineComponent)({inheritAttrs:!1,__name:`TagsField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({isAddedOnBlur:{type:Boolean},isAddedOnPaste:{type:Boolean},isAddedOnTab:{type:Boolean},isDuplicateAllowed:{type:Boolean},addOnBlur:{type:Boolean},addOnPaste:{type:Boolean},addOnTab:{type:Boolean},allowDuplicate:{type:Boolean},delimiter:{},max:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...ry,...iy,...sy(ay,`iconRight`),isAddedOnBlur:!1,isAddedOnPaste:!0,isAddedOnTab:!1,isDuplicateAllowed:!1,addOnBlur:!1,addOnPaste:!0,addOnTab:!1,allowDuplicate:!1,delimiter:`,`,max:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,f.mergeModels)([`blur`,`focus`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,f.useModel)(e,`modelValue`),a=n.id??(0,f.useId)(),o=(0,f.useAttrs)(),s=(0,f.computed)(()=>tM({size:n.size})),c=(0,f.computed)(()=>n.isAddedOnBlur||n.addOnBlur),l=(0,f.computed)(()=>n.addOnPaste===!0?n.isAddedOnPaste:!1),u=(0,f.computed)(()=>n.isAddedOnTab||n.addOnTab),d=(0,f.computed)(()=>n.isDuplicateAllowed||n.allowDuplicate),{isError:p,ariaBusy:m,ariaDescribedBy:g,ariaInvalid:_,ariaRequired:v}=ty(a,n);return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,label:n.label,class:(0,f.normalizeClass)(n.class),style:(0,f.normalizeStyle)(n.style),for:(0,f.unref)(a),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage,"is-error-message-hidden":n.isErrorMessageHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sy,{"is-error":(0,f.unref)(p),"is-disabled":n.isDisabled,"is-loading":n.isLoading,"is-readonly":n.isReadonly,"icon-left":n.iconLeft,wrap:!0,size:n.size,gap:`xs`},{left:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`left`)]),right:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TagsInputRoot),{modelValue:i.value,"onUpdate:modelValue":t[2]||=e=>i.value=e,disabled:n.isDisabled,"read-only":n.isReadonly,max:n.max??void 0,"add-on-blur":c.value,"add-on-paste":l.value,"add-on-tab":u.value,delimiter:n.delimiter,"allow-duplicate":d.value,class:`contents`},{default:(0,f.withCtx)(()=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(i.value,(e,t)=>((0,f.openBlock)(),(0,f.createBlock)(nM,{key:t,value:e,"is-disabled":n.isDisabled,"is-readonly":n.isReadonly},null,8,[`value`,`is-disabled`,`is-readonly`]))),128)),(0,f.createVNode)((0,f.unref)(h.TagsInputInput),(0,f.mergeProps)((0,f.unref)(o),{id:(0,f.unref)(a),disabled:n.isDisabled,readonly:n.isReadonly,placeholder:i.value.length===0?n.placeholder??void 0:void 0,"aria-describedby":(0,f.unref)(g),"aria-required":(0,f.unref)(v),"aria-busy":(0,f.unref)(m),"aria-invalid":(0,f.unref)(_),class:s.value.input(),"data-field-wrapper":``,onBlur:t[0]||=e=>r(`blur`,e),onFocus:t[1]||=e=>r(`focus`,e)}),null,16,[`id`,`disabled`,`readonly`,`placeholder`,`aria-describedby`,`aria-required`,`aria-busy`,`aria-invalid`,`class`])]),_:1},8,[`modelValue`,`disabled`,`read-only`,`max`,`add-on-blur`,`add-on-paste`,`add-on-tab`,`delimiter`,`allow-duplicate`])]),_:3},8,[`is-error`,`is-disabled`,`is-loading`,`is-readonly`,`icon-left`,`size`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`]))}}),iM=V({slots:{root:`
|
|
1046
1046
|
group/textarea-field inline-flex w-full flex-col overflow-hidden
|
|
1047
1047
|
rounded-md border border-secondary bg-primary outline outline-transparent
|
|
1048
1048
|
duration-100
|
|
@@ -1059,7 +1059,7 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
1059
1059
|
read-only:cursor-default
|
|
1060
1060
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
1061
1061
|
disabled:placeholder:text-fg-disabled-subtle
|
|
1062
|
-
`},variants:{resize:{"auto-vertical":{textarea:`resize-none`},none:{textarea:`resize-none`},vertical:{textarea:`resize-y`}}}}),
|
|
1062
|
+
`},variants:{resize:{"auto-vertical":{textarea:`resize-none`},none:{textarea:`resize-none`},vertical:{textarea:`resize-y`}}}}),aM=[`data-error`,`data-disabled`,`data-interactive`],oM=[`id`,`value`,`aria-describedby`,`autocomplete`,`name`,`aria-required`,`readonly`,`aria-invalid`,`disabled`,`maxlength`,`placeholder`,`spellcheck`],sM=(0,f.defineComponent)({inheritAttrs:!1,__name:`TextareaField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({isSpellCheckEnabled:{type:Boolean},maxHeight:{},maxLength:{},minHeight:{},placeholder:{},resize:{},isDisabled:{type:Boolean},disabledReason:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},autocomplete:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{}},{...ry,...iy,...oy,isSpellCheckEnabled:!1,maxHeight:null,maxLength:null,minHeight:null,placeholder:null,resize:`none`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),r=(0,f.computed)(()=>iM({resize:t.resize})),i=(0,f.useTemplateRef)(`textarea`),a=(0,f.useAttrs)(),o=t.id??(0,f.useId)(),s=(0,f.computed)(()=>t.maxLength==null?null:`${n.value?.length??0}/${t.maxLength}`),c=(0,f.computed)(()=>s.value??t.hint),{isError:l,ariaDescribedBy:u,ariaInvalid:d,ariaRequired:p}=ty(o,t),m=(0,f.computed)(()=>({maxHeight:t.maxHeight??void 0,minHeight:t.minHeight??void 0}));function h(){let e=i.value;e==null||t.resize!==`auto-vertical`||(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)}return(0,f.watch)(()=>n.value,async()=>{await(0,f.nextTick)(),h()},{immediate:!0}),(0,f.onMounted)(()=>{h()}),(0,f.onMounted)(()=>{h()}),(e,i)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:c.value,label:t.label,class:(0,f.normalizeClass)(t.class),style:(0,f.normalizeStyle)(t.style),for:(0,f.unref)(o),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-error-message-hidden":t.isErrorMessageHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createElementVNode)(`div`,{"data-error":(0,f.unref)(l)||void 0,"data-disabled":t.isDisabled||void 0,"data-interactive":!t.isDisabled&&!t.isReadonly||void 0,class:(0,f.normalizeClass)(r.value.root())},[(0,f.renderSlot)(e.$slots,`top`),(0,f.createElementVNode)(`textarea`,(0,f.mergeProps)((0,f.unref)(a),{id:(0,f.unref)(o),ref:`textarea`,value:n.value,"aria-describedby":(0,f.unref)(u),autocomplete:t.autocomplete??void 0,name:t.name??void 0,"aria-required":(0,f.unref)(p),readonly:t.isReadonly,"aria-invalid":(0,f.unref)(d),disabled:t.isDisabled,maxlength:t.maxLength??void 0,placeholder:t.placeholder??void 0,spellcheck:t.isSpellCheckEnabled,style:m.value,class:[r.value.textarea(),`min-h-20 px-md py-sm`],onInput:i[0]||=e=>n.value=e.target.value}),null,16,oM),(0,f.renderSlot)(e.$slots,`bottom`)],10,aM)]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`]))}}),cM=V({slots:{field:`flex h-full flex-1 items-center`,literal:`text-placeholder select-none`,segment:`
|
|
1063
1063
|
rounded-xs px-xxs text-primary tabular-nums caret-transparent duration-100
|
|
1064
1064
|
outline-none
|
|
1065
1065
|
group-data-disabled/field-wrapper:pointer-events-none
|
|
@@ -1071,6 +1071,6 @@ Example: <UIConfigProvider :file-upload-adapter="myAdapter"><UIBaseFileUploadRoo
|
|
|
1071
1071
|
focus:data-placeholder:text-primary
|
|
1072
1072
|
disabled:data-placeholder:text-fg-disabled-subtle
|
|
1073
1073
|
data-readonly:cursor-default
|
|
1074
|
-
`},variants:{size:{md:{field:`px-md text-xs`},sm:{field:`px-sm text-xs`}}}}),
|
|
1074
|
+
`},variants:{size:{md:{field:`px-md text-xs`},sm:{field:`px-sm text-xs`}}}}),lM=(0,f.defineComponent)({inheritAttrs:!1,__name:`TimeField`,props:(0,f.mergeModels)((0,f.mergeDefaults)({hasStepSnapping:{type:Boolean},granularity:{},size:{},step:{},stepSnapping:{type:Boolean},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isErrorMessageHidden:{type:Boolean},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...ry,...iy,...sy(ay,`placeholder`),hasStepSnapping:!1,granularity:`minute`,size:`md`,step:null}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,f.useModel)(e,`modelValue`),{hourCycle:r}=J(),i=t.id??(0,f.useId)(),a=C.LocaleUtil.getCurrentLocale(),o=(0,f.useAttrs)(),{isError:s,ariaDescribedBy:c,ariaInvalid:l}=ty(i,t),u=(0,f.computed)(()=>t.hasStepSnapping||t.stepSnapping===!0),d=(0,f.computed)(()=>cM({size:t.size})),p=(0,f.computed)(()=>{if(!(r.value===`locale-default`||r.value===null))return r.value===`12-hour`?12:24}),m=(0,f.computed)({get:()=>{if(n.value!==null)return new x.Time(n.value.hour,n.value.minute,n.value.second)},set:e=>{if(e===void 0){n.value=null;return}n.value=S.Temporal.PlainTime.from({hour:e.hour,minute:e.minute,second:e.second})}});return(e,n)=>((0,f.openBlock)(),(0,f.createBlock)(Ay,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,f.normalizeClass)(t.class),style:(0,f.normalizeStyle)(t.style),for:(0,f.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-error-message-hidden":t.isErrorMessageHidden,"is-label-hidden":t.isLabelHidden},{"label-left":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`label-right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)(Sy,{"is-disabled":t.isDisabled,"is-error":(0,f.unref)(s),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},{right:(0,f.withCtx)(()=>[(0,f.renderSlot)(e.$slots,`right`)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,f.unref)(h.TimeFieldRoot),(0,f.mergeProps)({id:(0,f.unref)(i),modelValue:m.value,"onUpdate:modelValue":n[0]||=e=>m.value=e},(0,f.unref)(o),{"aria-describedby":(0,f.unref)(c),"aria-invalid":(0,f.unref)(l),"aria-required":t.isRequired||void 0,class:d.value.field(),disabled:t.isDisabled,"hour-cycle":p.value,"is-invalid":(0,f.unref)(s),locale:(0,f.unref)(a),readonly:t.isReadonly,required:t.isRequired,"step-snapping":u.value,step:t.step??void 0,granularity:t.granularity}),{default:(0,f.withCtx)(({segments:e})=>[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(e,({part:e,value:n})=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:e},[e===`literal`?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TimeFieldInput),{key:1,part:e,class:(0,f.normalizeClass)(d.value.literal())},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(n),1)]),_:2},1032,[`part`,`class`])):((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(h.TimeFieldInput),{key:0,part:e,class:(0,f.normalizeClass)(d.value.segment()),"data-readonly":t.isReadonly||void 0,"data-field-wrapper":``},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,f.toDisplayString)(n),1)]),_:2},1032,[`part`,`class`,`data-readonly`]))],64))),128))]),_:1},16,[`id`,`modelValue`,`aria-describedby`,`aria-invalid`,`aria-required`,`class`,`disabled`,`hour-cycle`,`is-invalid`,`locale`,`readonly`,`required`,`step-snapping`,`step`,`granularity`])]),_:3},8,[`is-disabled`,`is-error`,`is-loading`,`is-readonly`,`size`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`,`is-error-message-hidden`,`is-label-hidden`]))}}),[uM,dM]=F(`timelineContext`),fM=eo({slots:{connector:`flex-1 bg-quaternary`,content:`flex min-w-0 flex-1 flex-col`,icon:``,indicator:`
|
|
1075
1075
|
relative z-10 flex shrink-0 items-center justify-center rounded-full
|
|
1076
|
-
`,item:`relative flex`,itemTrack:`flex shrink-0 flex-col items-center`,root:`flex flex-col`},variants:{size:{md:{connector:`mt-md mb-md w-px`,content:`pb-3xl`,icon:`size-4`,indicator:`size-8`,item:`gap-lg`},sm:{connector:`mt-xs mb-xs w-px`,content:`pb-md`,icon:`size-3`,indicator:`size-6`,item:`gap-sm`}},variant:{outline:{indicator:`border border-secondary bg-primary`},solid:{indicator:`bg-brand-primary-alt text-fg-brand-primary-alt`},subtle:{indicator:`bg-tertiary text-secondary`}},isLast:{true:{connector:`invisible`,content:`pb-0`}}}}),fM=(0,f.defineComponent)({__name:`Timeline`,props:{size:{default:`md`},variant:{default:`solid`}},setup(e){let t=e,n=(0,f.computed)(()=>dM({size:t.size,variant:t.variant}));return lM({...Xr(t),variants:n}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)(n.value.root())},[(0,f.renderSlot)(e.$slots,`default`)],2))}}),pM=(0,f.defineComponent)({__name:`TimelineItem`,props:{isLast:{type:Boolean,default:!1},icon:{default:void 0}},setup(e){let t=e,{size:n,variant:r}=uM(),i=(0,f.computed)(()=>dM({isLast:t.isLast,size:n.value,variant:r.value}));return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)(i.value.item())},[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(i.value.itemTrack())},[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(i.value.indicator())},[(0,f.renderSlot)(e.$slots,`indicator`,{},()=>[t.icon==null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{key:0,class:(0,f.normalizeClass)(i.value.icon())},null,8,[`class`]))])],2),(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(i.value.connector())},null,2)],2),(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(i.value.content())},[(0,f.renderSlot)(e.$slots,`default`)],2)],2))}});function mM(e,t){return(0,f.h)(e,t)}function hM(e,t,n=0){return new Intl.NumberFormat(t,{maximumFractionDigits:n}).format(e)}function gM(){let e=J(),t=(0,f.computed)(()=>{let t=e.numberFormat?.value;return ne(t)});return{format(e,n){return hM(e,t.value,n)},locale:t}}function _M(e){let t=(0,f.shallowRef)(e?.initialValues??[]);function n(n){let r=t.value.findIndex(e=>e.key===n);if(r!==-1){let i=t.value[r]??null;if(i===null)return;i.direction===`asc`?t.value=e.enableMultiSort?t.value.map((e,t)=>t===r?{...e,direction:`desc`}:e):[{direction:`desc`,key:n}]:t.value=t.value.filter((e,t)=>t!==r)}else t.value=e.enableMultiSort?[{direction:`asc`,key:n},...t.value]:[{direction:`asc`,key:n}]}function r(t){return e.keys.includes(t)}function i(e){return t.value.find(t=>t.key===e)??null}function a(){t.value=[]}return{existsSort:r,getSort:i,resetSort:a,toggleSort:n,values:(0,f.computed)(()=>t.value)}}exports.BaseFileUploadError=Ew,exports.BaseFileUploadStatus=$,exports.FileReferenceTransformer=ee,exports.INPUT_DEFAULTS=ry,exports.INPUT_FIELD_DEFAULTS=ay,exports.INPUT_META_DEFAULTS=iy,exports.MimeType=E,exports.PresignedFileReferenceTransformer=D,exports.TableUtil=Mj,exports.UIActionContextMenu=ps,exports.UIActionDropdownMenu=xs,exports.UIActionFocus=Ss,exports.UIActionTooltip=W,exports.UIActionTrigger=Cs,exports.UIAdaptiveContent=Es,exports.UIAdaptiveContentBlock=Ds,exports.UIAddressAutocomplete=Fb,exports.UIAnimateHeight=Cb,exports.UIApplicationLoadingView=tS,exports.UIApplicationOfflineWarning=aS,exports.UIApplicationProvider=Tw,exports.UIApplicationSkipToMainContent=sS,exports.UIAutoFocus=Ov,exports.UIAutocomplete=Pb,exports.UIAutocompleteContent=Nb,exports.UIAutocompleteOption=kb,exports.UIAvatar=_o,exports.UIAvatarGroup=bo,exports.UIAvatarGroupAddButton=Do,exports.UIAvatarLabel=Ao,exports.UIBadge=_y,exports.UIBadgeDot=py,exports.UIBadgeGroup=vy,exports.UIBadgeGroupTruncate=yy,exports.UIBadgeIcon=my,exports.UIBadgeLabel=hy,exports.UIBadgeSeparator=Rx,exports.UIBaseCheckbox=TT,exports.UIBaseFileUploadClipboard=zw,exports.UIBaseFileUploadClipboardRemove=Bw,exports.UIBaseFileUploadClipboardUpload=Vw,exports.UIBaseFileUploadDropzone=Hw,exports.UIBaseFileUploadItem=lT,exports.UIBaseFileUploadItemCancel=uT,exports.UIBaseFileUploadItemRemove=dT,exports.UIBaseFileUploadItemReplace=fT,exports.UIBaseFileUploadRoot=pT,exports.UIBaseFileUploadTrigger=mT,exports.UIBreadcrumbItem=hT,exports.UIBreadcrumbItems=_T,exports.UIBreadcrumbSeparator=vT,exports.UIButton=Y,exports.UICheckbox=ET,exports.UICheckboxGroup=jT,exports.UICheckboxGroupCheckbox=kT,exports.UICheckboxGroupIndeterminateCheckbox=AT,exports.UIClickableElement=Z,exports.UIColumnLayout=G,exports.UICommandMenu=bS,exports.UIConfigProvider=rp,exports.UIConfirmDialog=jv,exports.UIContextMenu=ti,exports.UIContextMenuCheckboxItem=Wo,exports.UIDropdownMenuCheckboxItem=Wo,exports.UIContextMenuGroup=Go,exports.UIDropdownMenuGroup=Go,exports.UIContextMenuHeader=Jo,exports.UIDropdownMenuHeader=Jo,exports.UIContextMenuItem=Yo,exports.UIDropdownMenuItem=Yo,exports.UIContextMenuRadioGroup=Xo,exports.UIDropdownMenuRadioGroup=Xo,exports.UIContextMenuRadioItem=Zo,exports.UIDropdownMenuRadioItem=Zo,exports.UIContextMenuSeparator=es,exports.UIDropdownMenuSeparator=es,exports.UIContextMenuSub=ts,exports.UIDropdownMenuSub=ts,exports.UIContextMenuSubContent=ri,exports.UIContextMenuSubTrigger=is,exports.UIDropdownMenuSubTrigger=is,exports.UIDashboardPage=yE,exports.UIDashboardPageActions=qT,exports.UIDashboardPageCenteredContent=NT,exports.UIDashboardPageCenteredContentHeader=UT,exports.UIDashboardPageCenteredContentScrollable=GT,exports.UIDashboardPageContainer=KT,exports.UIDashboardPageContent=JT,exports.UIDashboardPageDetailPaneBody=SE,exports.UIDashboardPageDetailPaneCloseButton=CE,exports.UIDashboardPageDetailPaneFooter=EE,exports.UIDashboardPageDetailPaneHeader=kE,exports.UIDashboardPageDetailPaneTabs=YE,exports.UIDashboardPageDetailPaneTabsContent=XE,exports.UIDashboardPageDetailPaneTabsList=QE,exports.UIDashboardPageDetailPaneToggle=$E,exports.UIDashboardPageHeader=iD,exports.UIDashboardPageHeaderMasterActionButton=aD,exports.UIDashboardPageLoadingState=xE,exports.UIDateField=SD,exports.UIDatePicker=CD,exports.UIDateRangeField=XD,exports.UIDateRangePicker=iO,exports.UIDateTime=oO,exports.UIDetailList=sO,exports.UIDetailListGroup=hO,exports.UIDetailListGroupHeader=mO,exports.UIDetailListGroupHeaderCollapseArrowIcon=dO,exports.UIDetailListGroupHeaderCollapseInfo=fO,exports.UIDetailListGroupItem=gO,exports.UIDetailListGroupItemLabel=vO,exports.UIDetailListGroupItemValueBadge=yO,exports.UIDetailListGroupItemValueText=xO,exports.UIDetailListGroupSeparator=SO,exports.UIDialog=Tv,exports.UIDialogBody=SS,exports.UIDialogContainer=wS,exports.UIDialogFooter=Ev,exports.UIDialogFooterCancel=Dv,exports.UIDialogFooterPrimary=kv,exports.UIDialogFooterSecondary=TS,exports.UIDialogFooterSubmit=ES,exports.UIDialogHeader=Av,exports.UIDot=Po,exports.UIDropdownMenu=si,exports.UIDropdownMenuSubContent=rs,exports.UIEmptyState=ok,exports.UIFeaturedIcon=FT,exports.UIForm=Pv,exports.UIFormDialog=AS,exports.UIFormDialogForm=jS,exports.UIFormFieldGrid=sv,exports.UIFormFieldGroup=cv,exports.UIFormFieldSeperator=lv,exports.UIFormFieldSet=fv,exports.UIFormFileUpload=Ik,exports.UIFormLayout=pv,exports.UIFormSubmitButton=Xv,exports.UIIconButton=X,exports.UIInputWrapper=Ay,exports.UIInteractable=Lk,exports.UIKeyboardShortcut=di,exports.UILink=tv,exports.UILoader=To,exports.UILogo=ux,exports.UILogoWithText=IT,exports.UIMainContent=$k,exports.UIMainLayout=iA,exports.UIMainSidebar=Xx,exports.UIMainSidebarFooterAccountCard=rx,exports.UIMainSidebarFooterFeaturedCard=ox,exports.UIMainSidebarGlobalSearch=sx,exports.UIMainSidebarHeaderContainer=cx,exports.UIMainSidebarHeaderLogoWithText=px,exports.UIMainSidebarHeaderReturnToApp=hx,exports.UIMainSidebarNavigationGroup=_x,exports.UIMainSidebarNavigationGroups=vx,exports.UIMainSidebarNavigationLink=Lx,exports.UIMainSidebarNavigationLinkBadge=zx,exports.UIMainSidebarNavigationLinkStatusDot=Ux,exports.UIMenuItem=Uo,exports.UINumberBadge=RE,exports.UINumberField=oA,exports.UIPage=fE,exports.UIPhoneNumberField=fA,exports.UIPopover=$v,exports.UIRadioGroup=SA,exports.UIRadioGroupItem=yA,exports.UIRelativeDateTime=TA,exports.UIRowLayout=I,exports.UIScrollable=Iy,exports.UISearchField=FA,exports.UISelect=Zy,exports.UISelectContent=qy,exports.UISelectDropdown=Jy,exports.UISelectOption=Wy,exports.UISeparator=$o,exports.UISkeletonItem=K,exports.UISwitch=UA,exports.UITable=Uj,exports.UITableBody=XA,exports.UITableBodyGroup=ij,exports.UITableBodyRow=pj,exports.UITableBodyRowActionsCell=dj,exports.UITableBodyRowCell=uj,exports.UITableCell=uj,exports.UITableBodyRowCellInteractiveElement=mj,exports.UITableCellInteractiveElement=mj,exports.UITableBodyRowCellText=Wj,exports.UITableCellText=Wj,exports.UITableBodyRowGroupCell=Jj,exports.UITableBodySubGroup=yj,exports.UITableHeader=wj,exports.UITableHeaderCell=Cj,exports.UITableHiddenResultsWarning=Dj,exports.UITableLoading=Oj,exports.UITableRoot=Lj,exports.UITableScrollContainer=Bj,exports.UITableSubgrid=qA,exports.UITabs=PE,exports.UITabsContent=FE,exports.UITabsItem=BE,exports.UITabsList=GE,exports.UITabsRouterLink=KE,exports.UITabsRouterLinkContent=qE,exports.UITabsRouterLinkItem=JE,exports.UITagsField=nM,exports.UITagsFieldTag=tM,exports.UIText=U,exports.UITextField=vb,exports.UITextShimmer=Zx,exports.UITextareaField=oM,exports.UIThemeProvider=ei,exports.UITimeField=cM,exports.UITimeline=fM,exports.UITimelineItem=pM,exports.UIToastContainer=Cw,exports.UITooltip=ro,exports.UITooltipContent=so,exports.UITooltipProvider=ww,exports.UITooltipText=uo,exports.UITopBar=Qk,exports.addressToFormattedAddress=Os,exports.createAutocompleteOptions=wb,exports.createComponent=mM,exports.createSelectOptions=ey,exports.defineTableColumns=Zj,exports.fileReferenceFormSchema=te,exports.formattedAddressToString=ks,exports.getLocaleFromNumberFormat=ne,exports.toFormField=yb,exports.tv=V,exports.uiLocales=u.t,exports.useDialogChin=CS,exports.useDialogTriggerProps=DS,exports.useInjectConfigContext=J,exports.useInjectDetailPaneContext=XT,exports.useInjectFormContext=hv,exports.useInjectTableBodyRowContext=oj,exports.useInjectTableContext=YA,exports.useInjectTableGroupContext=$A,exports.useInjectTableScrollContainerContext=zj,exports.useInjectTableSubGroupContext=cj,exports.useInput=ty,exports.useIsReducedMotion=np,exports.useIsTruncated=lo,exports.useMainSidebar=Q,exports.useNumberFormat=gM,exports.useOverlay=Cv,exports.useProvideDetailPaneContext=YT,exports.useProvideTableBodyRowContext=aj,exports.useProvideTableContext=JA,exports.useProvideTableGroupContext=QA,exports.useProvideTableScrollContainerContext=Rj,exports.useProvideTableSubGroupContext=sj,exports.useSearch=RA,exports.useSort=_M,exports.useTableColumnResize=Yj,exports.useTableColumnWidths=Fj,exports.useTableCustomizeColumns=$j,exports.useTableFrozenColumns=Xj,exports.useTableScrollState=Ij,exports.useTableVirtualScroller=Hj,exports.useToast=Sw,exports.useTopBarNavigation=_E;
|
|
1076
|
+
`,item:`relative flex`,itemTrack:`flex shrink-0 flex-col items-center`,root:`flex flex-col`},variants:{size:{md:{connector:`mt-md mb-md w-px`,content:`pb-3xl`,icon:`size-4`,indicator:`size-8`,item:`gap-lg`},sm:{connector:`mt-xs mb-xs w-px`,content:`pb-md`,icon:`size-3`,indicator:`size-6`,item:`gap-sm`}},variant:{outline:{indicator:`border border-secondary bg-primary`},solid:{indicator:`bg-brand-primary-alt text-fg-brand-primary-alt`},subtle:{indicator:`bg-tertiary text-secondary`}},isLast:{true:{connector:`invisible`,content:`pb-0`}}}}),pM=(0,f.defineComponent)({__name:`Timeline`,props:{size:{default:`md`},variant:{default:`solid`}},setup(e){let t=e,n=(0,f.computed)(()=>fM({size:t.size,variant:t.variant}));return uM({...Xr(t),variants:n}),(e,t)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)(n.value.root())},[(0,f.renderSlot)(e.$slots,`default`)],2))}}),mM=(0,f.defineComponent)({__name:`TimelineItem`,props:{isLast:{type:Boolean,default:!1},icon:{default:void 0}},setup(e){let t=e,{size:n,variant:r}=dM(),i=(0,f.computed)(()=>fM({isLast:t.isLast,size:n.value,variant:r.value}));return(e,n)=>((0,f.openBlock)(),(0,f.createElementBlock)(`div`,{class:(0,f.normalizeClass)(i.value.item())},[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(i.value.itemTrack())},[(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(i.value.indicator())},[(0,f.renderSlot)(e.$slots,`indicator`,{},()=>[t.icon==null?(0,f.createCommentVNode)(``,!0):((0,f.openBlock)(),(0,f.createBlock)((0,f.resolveDynamicComponent)(t.icon),{key:0,class:(0,f.normalizeClass)(i.value.icon())},null,8,[`class`]))])],2),(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(i.value.connector())},null,2)],2),(0,f.createElementVNode)(`div`,{class:(0,f.normalizeClass)(i.value.content())},[(0,f.renderSlot)(e.$slots,`default`)],2)],2))}});function hM(e,t){return(0,f.h)(e,t)}function gM(e,t,n=0){return new Intl.NumberFormat(t,{maximumFractionDigits:n}).format(e)}function _M(){let e=J(),t=(0,f.computed)(()=>{let t=e.numberFormat?.value;return ne(t)});return{format(e,n){return gM(e,t.value,n)},locale:t}}function vM(e){let t=(0,f.shallowRef)(e?.initialValues??[]);function n(n){let r=t.value.findIndex(e=>e.key===n);if(r!==-1){let i=t.value[r]??null;if(i===null)return;i.direction===`asc`?t.value=e.enableMultiSort?t.value.map((e,t)=>t===r?{...e,direction:`desc`}:e):[{direction:`desc`,key:n}]:t.value=t.value.filter((e,t)=>t!==r)}else t.value=e.enableMultiSort?[{direction:`asc`,key:n},...t.value]:[{direction:`asc`,key:n}]}function r(t){return e.keys.includes(t)}function i(e){return t.value.find(t=>t.key===e)??null}function a(){t.value=[]}return{existsSort:r,getSort:i,resetSort:a,toggleSort:n,values:(0,f.computed)(()=>t.value)}}exports.BaseFileUploadError=Dw,exports.BaseFileUploadStatus=$,exports.FileReferenceTransformer=ee,exports.INPUT_DEFAULTS=ry,exports.INPUT_FIELD_DEFAULTS=ay,exports.INPUT_META_DEFAULTS=iy,exports.MimeType=E,exports.PresignedFileReferenceTransformer=D,exports.TableUtil=Nj,exports.UIActionContextMenu=ps,exports.UIActionDropdownMenu=xs,exports.UIActionFocus=Ss,exports.UIActionTooltip=W,exports.UIActionTrigger=Cs,exports.UIAdaptiveContent=Es,exports.UIAdaptiveContentBlock=Ds,exports.UIAddressAutocomplete=Fb,exports.UIAnimateHeight=Cb,exports.UIApplicationLoadingView=nS,exports.UIApplicationOfflineWarning=oS,exports.UIApplicationProvider=Ew,exports.UIApplicationSkipToMainContent=cS,exports.UIAutoFocus=Ov,exports.UIAutocomplete=Pb,exports.UIAutocompleteContent=Nb,exports.UIAutocompleteOption=kb,exports.UIAvatar=_o,exports.UIAvatarGroup=bo,exports.UIAvatarGroupAddButton=Do,exports.UIAvatarLabel=Ao,exports.UIBadge=_y,exports.UIBadgeDot=py,exports.UIBadgeGroup=vy,exports.UIBadgeGroupTruncate=yy,exports.UIBadgeIcon=my,exports.UIBadgeLabel=hy,exports.UIBadgeSeparator=yx,exports.UIBaseCheckbox=ET,exports.UIBaseFileUploadClipboard=Bw,exports.UIBaseFileUploadClipboardRemove=Vw,exports.UIBaseFileUploadClipboardUpload=Hw,exports.UIBaseFileUploadDropzone=Uw,exports.UIBaseFileUploadItem=uT,exports.UIBaseFileUploadItemCancel=dT,exports.UIBaseFileUploadItemRemove=fT,exports.UIBaseFileUploadItemReplace=pT,exports.UIBaseFileUploadRoot=mT,exports.UIBaseFileUploadTrigger=hT,exports.UIBreadcrumbItem=gT,exports.UIBreadcrumbItems=vT,exports.UIBreadcrumbSeparator=yT,exports.UIButton=Y,exports.UICheckbox=DT,exports.UICheckboxGroup=MT,exports.UICheckboxGroupCheckbox=AT,exports.UICheckboxGroupIndeterminateCheckbox=jT,exports.UIClickableElement=Z,exports.UIColumnLayout=G,exports.UICommandMenu=xS,exports.UIConfigProvider=rp,exports.UIConfirmDialog=jv,exports.UIContextMenu=ti,exports.UIContextMenuCheckboxItem=Wo,exports.UIDropdownMenuCheckboxItem=Wo,exports.UIContextMenuGroup=Go,exports.UIDropdownMenuGroup=Go,exports.UIContextMenuHeader=Jo,exports.UIDropdownMenuHeader=Jo,exports.UIContextMenuItem=Yo,exports.UIDropdownMenuItem=Yo,exports.UIContextMenuRadioGroup=Xo,exports.UIDropdownMenuRadioGroup=Xo,exports.UIContextMenuRadioItem=Zo,exports.UIDropdownMenuRadioItem=Zo,exports.UIContextMenuSeparator=es,exports.UIDropdownMenuSeparator=es,exports.UIContextMenuSub=ts,exports.UIDropdownMenuSub=ts,exports.UIContextMenuSubContent=ri,exports.UIContextMenuSubTrigger=is,exports.UIDropdownMenuSubTrigger=is,exports.UIDashboardPage=bE,exports.UIDashboardPageActions=JT,exports.UIDashboardPageCenteredContent=PT,exports.UIDashboardPageCenteredContentHeader=WT,exports.UIDashboardPageCenteredContentScrollable=KT,exports.UIDashboardPageContainer=qT,exports.UIDashboardPageContent=YT,exports.UIDashboardPageDetailPaneBody=CE,exports.UIDashboardPageDetailPaneCloseButton=wE,exports.UIDashboardPageDetailPaneFooter=DE,exports.UIDashboardPageDetailPaneHeader=AE,exports.UIDashboardPageDetailPaneTabs=XE,exports.UIDashboardPageDetailPaneTabsContent=ZE,exports.UIDashboardPageDetailPaneTabsList=$E,exports.UIDashboardPageDetailPaneToggle=eD,exports.UIDashboardPageHeader=aD,exports.UIDashboardPageHeaderMasterActionButton=oD,exports.UIDashboardPageLoadingState=SE,exports.UIDateField=CD,exports.UIDatePicker=wD,exports.UIDateRangeField=ZD,exports.UIDateRangePicker=aO,exports.UIDateTime=sO,exports.UIDetailList=cO,exports.UIDetailListGroup=gO,exports.UIDetailListGroupHeader=hO,exports.UIDetailListGroupHeaderCollapseArrowIcon=fO,exports.UIDetailListGroupHeaderCollapseInfo=pO,exports.UIDetailListGroupItem=_O,exports.UIDetailListGroupItemLabel=yO,exports.UIDetailListGroupItemValueBadge=bO,exports.UIDetailListGroupItemValueText=SO,exports.UIDetailListGroupSeparator=CO,exports.UIDialog=Tv,exports.UIDialogBody=CS,exports.UIDialogContainer=TS,exports.UIDialogFooter=Ev,exports.UIDialogFooterCancel=Dv,exports.UIDialogFooterPrimary=kv,exports.UIDialogFooterSecondary=ES,exports.UIDialogFooterSubmit=DS,exports.UIDialogHeader=Av,exports.UIDot=Po,exports.UIDropdownMenu=si,exports.UIDropdownMenuSubContent=rs,exports.UIEmptyState=sk,exports.UIFeaturedIcon=IT,exports.UIForm=Pv,exports.UIFormDialog=jS,exports.UIFormDialogForm=MS,exports.UIFormFieldGrid=sv,exports.UIFormFieldGroup=cv,exports.UIFormFieldSeperator=lv,exports.UIFormFieldSet=fv,exports.UIFormFileUpload=Lk,exports.UIFormLayout=pv,exports.UIFormSubmitButton=Xv,exports.UIIconButton=X,exports.UIInputWrapper=Ay,exports.UIInteractable=Rk,exports.UIKeyboardShortcut=di,exports.UILink=tv,exports.UILoader=To,exports.UILogo=ux,exports.UILogoWithText=LT,exports.UIMainContent=eA,exports.UIMainLayout=aA,exports.UIMainSidebar=Zx,exports.UIMainSidebarFooterAccountCard=rx,exports.UIMainSidebarFooterFeaturedCard=ox,exports.UIMainSidebarGlobalSearch=sx,exports.UIMainSidebarHeaderContainer=cx,exports.UIMainSidebarHeaderLogoWithText=px,exports.UIMainSidebarHeaderReturnToApp=hx,exports.UIMainSidebarNavigationGroup=_x,exports.UIMainSidebarNavigationGroups=vx,exports.UIMainSidebarNavigationLink=Wx,exports.UIMainSidebarNavigationLinkBadge=Sx,exports.UIMainSidebarNavigationLinkStatusDot=Ax,exports.UIMainSidebarNavigationSubItemCount=jx,exports.UIMenuItem=Uo,exports.UINumberBadge=zE,exports.UINumberField=sA,exports.UIPage=pE,exports.UIPhoneNumberField=pA,exports.UIPopover=$v,exports.UIRadioGroup=CA,exports.UIRadioGroupItem=bA,exports.UIRelativeDateTime=EA,exports.UIRowLayout=I,exports.UIScrollable=Iy,exports.UISearchField=IA,exports.UISelect=Zy,exports.UISelectContent=qy,exports.UISelectDropdown=Jy,exports.UISelectOption=Wy,exports.UISeparator=$o,exports.UISkeletonItem=K,exports.UISwitch=WA,exports.UITable=Wj,exports.UITableBody=ZA,exports.UITableBodyGroup=aj,exports.UITableBodyRow=mj,exports.UITableBodyRowActionsCell=fj,exports.UITableBodyRowCell=dj,exports.UITableCell=dj,exports.UITableBodyRowCellInteractiveElement=hj,exports.UITableCellInteractiveElement=hj,exports.UITableBodyRowCellText=Gj,exports.UITableCellText=Gj,exports.UITableBodyRowGroupCell=Yj,exports.UITableBodySubGroup=bj,exports.UITableHeader=Tj,exports.UITableHeaderCell=wj,exports.UITableHiddenResultsWarning=Oj,exports.UITableLoading=kj,exports.UITableRoot=Rj,exports.UITableScrollContainer=Vj,exports.UITableSubgrid=JA,exports.UITabs=FE,exports.UITabsContent=IE,exports.UITabsItem=VE,exports.UITabsList=KE,exports.UITabsRouterLink=qE,exports.UITabsRouterLinkContent=JE,exports.UITabsRouterLinkItem=YE,exports.UITagsField=rM,exports.UITagsFieldTag=nM,exports.UIText=U,exports.UITextField=vb,exports.UITextShimmer=Qx,exports.UITextareaField=sM,exports.UIThemeProvider=ei,exports.UITimeField=lM,exports.UITimeline=pM,exports.UITimelineItem=mM,exports.UIToastContainer=ww,exports.UITooltip=ro,exports.UITooltipContent=so,exports.UITooltipProvider=Tw,exports.UITooltipText=uo,exports.UITopBar=$k,exports.addressToFormattedAddress=Os,exports.createAutocompleteOptions=wb,exports.createComponent=hM,exports.createSelectOptions=ey,exports.defineTableColumns=Qj,exports.fileReferenceFormSchema=te,exports.formattedAddressToString=ks,exports.getLocaleFromNumberFormat=ne,exports.toFormField=yb,exports.tv=V,exports.uiLocales=u.t,exports.useDialogChin=wS,exports.useDialogTriggerProps=OS,exports.useInjectConfigContext=J,exports.useInjectDetailPaneContext=ZT,exports.useInjectFormContext=hv,exports.useInjectTableBodyRowContext=sj,exports.useInjectTableContext=XA,exports.useInjectTableGroupContext=ej,exports.useInjectTableScrollContainerContext=Bj,exports.useInjectTableSubGroupContext=lj,exports.useInput=ty,exports.useIsReducedMotion=np,exports.useIsTruncated=lo,exports.useMainSidebar=Q,exports.useNumberFormat=_M,exports.useOverlay=Cv,exports.useProvideDetailPaneContext=XT,exports.useProvideTableBodyRowContext=oj,exports.useProvideTableContext=YA,exports.useProvideTableGroupContext=$A,exports.useProvideTableScrollContainerContext=zj,exports.useProvideTableSubGroupContext=cj,exports.useSearch=zA,exports.useSort=vM,exports.useTableColumnResize=Xj,exports.useTableColumnWidths=Ij,exports.useTableCustomizeColumns=eM,exports.useTableFrozenColumns=Zj,exports.useTableScrollState=Lj,exports.useTableVirtualScroller=Uj,exports.useToast=Cw,exports.useTopBarNavigation=vE;
|