@wisemen/vue-core-design-system 1.4.2 → 1.5.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 +29 -41
- package/dist/index.js +1162 -1100
- package/dist/ui/address-autocomplete/stories/addressAutocomplete.story.d.ts +3 -0
- package/dist/ui/autocomplete/stories/autocomplete.story.d.ts +3 -0
- package/dist/ui/avatar/avatar/stories/AvatarFallbackPlayground.d.ts +7 -1
- package/dist/ui/avatar/avatar/stories/AvatarLogoPlayground.d.ts +7 -1
- package/dist/ui/avatar/avatar/stories/AvatarPlayground.d.ts +8 -0
- package/dist/ui/avatar/avatar/stories/AvatarStatusPlayground.d.ts +7 -1
- package/dist/ui/avatar/avatar/stories/avatar.story.d.ts +15 -1
- package/dist/ui/badge/Badge.d.ts +3 -0
- package/dist/ui/badge/badge.props.d.ts +15 -0
- package/dist/ui/badge/badge.style.d.ts +24 -0
- package/dist/ui/badge/stories/BadgeAllVariantsPlayground.d.ts +13 -0
- package/dist/ui/badge/stories/badge.story.d.ts +8 -3
- package/dist/ui/base-header/stories/BaseHeaderAllVariantsPlayground.d.ts +2 -0
- package/dist/ui/base-header/stories/BaseHeaderPlayground.d.ts +16 -0
- package/dist/ui/base-header/stories/baseHeader.story.d.ts +60 -0
- package/dist/ui/checkbox-group/CheckboxGroupPlayground.d.ts +8 -2
- package/dist/ui/checkbox-group/stories/checkboxGroup.story.d.ts +45 -0
- package/dist/ui/dashboard-page/centered-content/DashboardPageCenteredContentHeader.d.ts +1 -0
- package/dist/ui/date-field/stories/dateField.story.d.ts +3 -0
- package/dist/ui/date-range-field/stories/dateRangeField.story.d.ts +3 -0
- package/dist/ui/{badge/stories/BadgeVariantPlayground.d.ts → featured-icon/stories/FeaturedIconAllVariantsPlayground.d.ts} +3 -4
- package/dist/ui/featured-icon/stories/featuredIcon.story.d.ts +4 -2
- package/dist/ui/loader/stories/LoaderPlayground.d.ts +6 -1
- package/dist/ui/loader/stories/LoaderSizesPlayground.d.ts +2 -0
- package/dist/ui/loader/stories/loader.story.d.ts +15 -1
- package/dist/ui/number-badge/stories/numberBadge.story.d.ts +5 -1
- package/dist/ui/number-field/stories/numberfield.story.d.ts +3 -0
- package/dist/ui/phone-number-field/stories/phoneNumberField.story.d.ts +3 -0
- package/dist/ui/radio-group/stories/radioGroup.story.d.ts +2 -0
- package/dist/ui/select/stories/select.story.d.ts +3 -0
- package/dist/ui/tabs/stories/tabs.story.d.ts +4 -0
- package/dist/ui/tags-field/TagsField.d.ts +2 -0
- package/dist/ui/tags-field/stories/tagsField.story.d.ts +3 -0
- package/dist/ui/tags-field/tagsField.props.d.ts +10 -0
- package/dist/ui/text-field/stories/textField.story.d.ts +3 -0
- package/dist/ui/textarea-field/stories/textareaField.story.d.ts +3 -0
- package/dist/ui/time-field/stories/timeField.story.d.ts +3 -0
- package/dist/ui/timeline/stories/TimelineAllVariantsPlayground.d.ts +2 -0
- package/dist/ui/timeline/stories/timeline.story.d.ts +4 -4
- package/dist/ui/tooltip/stories/tooltip.story.d.ts +62 -3
- package/package.json +3 -3
- package/skills/components/avatar/SKILL.md +1 -0
- package/skills/components/badge/SKILL.md +1 -0
- package/skills/components/tooltip/SKILL.md +1 -0
- package/skills/storybook/SKILL.md +191 -0
- package/dist/ui/checkbox-group/checkboxGroup.story.d.ts +0 -57
- /package/dist/ui/avatar/avatar/stories/{AvatarImagePlayground.d.ts → AvatarSizesPlayground.d.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -292,7 +292,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
292
292
|
`},variants:{size:{"full-screen":{content:`
|
|
293
293
|
h-[90vh]
|
|
294
294
|
sm:max-h-[90vh] sm:rounded-[calc(1rem+5px)] sm:border-[5px]
|
|
295
|
-
`,contentWrapper:`sm:max-w-[90vw]`},lg:{contentWrapper:`sm:max-w-160`},md:{contentWrapper:`sm:max-w-140`},sm:{contentWrapper:`sm:max-w-120`},xl:{contentWrapper:`sm:max-w-180`},xs:{contentWrapper:`sm:max-w-100`},xxs:{contentWrapper:`sm:max-w-90`}}}}),z_={ref:`chinContent`,class:`w-full`},B_=(0,d.defineComponent)({__name:`DialogChin`,props:{chin:{}},setup(e){let t=e,n=(0,d.computed)(()=>t.chin!==null),r=(0,d.useTemplateRef)(`chinContent`),i=(0,d.ref)(38);(0,d.watch)(r,(e,t,n)=>{if(e==null)return;let r=new ResizeObserver(([e])=>{i.value=e?.contentRect.height??0});r.observe(e),n(()=>{r.disconnect()})},{immediate:!0});let a={default:`from-white/60 dark:from-black/10`,error:`from-error-secondary`},o=(0,d.computed)(()=>t.chin?.variant==null?`from-white/60 dark:from-black/10`:a[t.chin.variant]),s={brand:`minimal-color`,default:`tertiary`,destructive:`destructive-tertiary`},c={brand:`primary`,default:`tertiary`,destructive:`destructive-tertiary`},l=(0,d.computed)(()=>t.chin?.variant===`error`?`text-error-500`:`text-primary`),{style:u}=L_(),f=xf();return(r,a)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{animate:{height:n.value?`calc(100% + ${i.value+14}px)`:`100%`},initial:!1,transition:{duration:(0,d.unref)(f)?0:.3,type:`spring`,bounce:0},class:(0,d.normalizeClass)([(0,d.unref)(u).chin(),`bg-white/20 dark:bg-black/40`]),as:`div`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.AnimatePresence),null,{default:(0,d.withCtx)(()=>[n.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,type:`spring`,bounce:0},class:(0,d.normalizeClass)([o.value,`h-full rounded-t-[calc(1rem+5px)] rounded-b-none bg-linear-to-b to-transparent sm:rounded-[calc(1rem+5px)] sm:bg-linear-to-t`]),as:`div`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(q,{class:`h-full justify-start p-lg px-xl sm:justify-end`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,z_,[(0,d.createVNode)(R,{align:`center`,justify:`between`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,null,{default:(0,d.withCtx)(()=>[e.chin?.icon?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.chin?.icon),{key:0,class:(0,d.normalizeClass)([l.value,`size-4 shrink-0`])},null,8,[`class`])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(G),{text:t.chin?.text??``,truncate:2,class:`text-xs font-medium`},null,8,[`text`])]),_:1}),(0,d.createVNode)(R,{items:`center`,gap:`none`},{default:(0,d.withCtx)(()=>[t.chin?.secondaryAction?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[t.chin.secondaryAction.type===`button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),{key:0,label:t.chin.secondaryAction.label,"is-loading":t.chin.secondaryAction.isLoading,"is-disabled":t.chin.secondaryAction.isDisabled,"disabled-reason":t.chin.secondaryAction.disabledReason,variant:s[t.chin.secondaryAction.variant??`default`],onClick:t.chin.secondaryAction.action},null,8,[`label`,`is-loading`,`is-disabled`,`disabled-reason`,`variant`,`onClick`])):t.chin.secondaryAction.type===`link`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(x_),{key:1,label:t.chin.secondaryAction.label,to:t.chin.secondaryAction.to,link:t.chin.secondaryAction.link,variant:c[t.chin.secondaryAction.variant??`default`]},null,8,[`label`,`to`,`link`,`variant`])):t.chin.secondaryAction.type===`icon-button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Q),{key:2,icon:t.chin.secondaryAction.icon,label:t.chin.secondaryAction.label,"is-loading":t.chin.secondaryAction.isLoading,"is-disabled":t.chin.secondaryAction.isDisabled,"disabled-reason":t.chin.secondaryAction.disabledReason,variant:c[t.chin.secondaryAction.variant??`default`],onClick:t.chin.secondaryAction.action},null,8,[`icon`,`label`,`is-loading`,`is-disabled`,`disabled-reason`,`variant`,`onClick`])):(0,d.createCommentVNode)(``,!0)],64)):(0,d.createCommentVNode)(``,!0),t.chin?.primaryAction?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[t.chin.primaryAction.type===`button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),{key:0,label:t.chin.primaryAction.label,"is-loading":t.chin.primaryAction.isLoading,"is-disabled":t.chin.primaryAction.isDisabled,"disabled-reason":t.chin.primaryAction.disabledReason,variant:s[t.chin.primaryAction.variant??`brand`],onClick:t.chin.primaryAction.action},null,8,[`label`,`is-loading`,`is-disabled`,`disabled-reason`,`variant`,`onClick`])):t.chin.primaryAction.type===`link`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(x_),{key:1,label:t.chin.primaryAction.label,to:t.chin.primaryAction.to,link:t.chin.primaryAction.link,variant:c[t.chin.primaryAction.variant??`brand`]},null,8,[`label`,`to`,`link`,`variant`])):t.chin.primaryAction.type===`icon-button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Q),{key:2,icon:t.chin.primaryAction.icon,label:t.chin.primaryAction.label,"is-loading":t.chin.primaryAction.isLoading,"is-disabled":t.chin.primaryAction.isDisabled,"disabled-reason":t.chin.primaryAction.disabledReason,variant:c[t.chin.primaryAction.variant??`brand`],onClick:t.chin.primaryAction.action},null,8,[`icon`,`label`,`is-loading`,`is-disabled`,`disabled-reason`,`variant`,`onClick`])):(0,d.createCommentVNode)(``,!0)],64)):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1})],512)]),_:1})]),_:1},8,[`class`])):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`animate`,`transition`,`class`]))}}),V_=(0,d.defineComponent)({__name:`DialogCloseButton`,setup(e){let t=(0,h.useI18n)();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogClose),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(_r),label:(0,d.unref)(t).t(`component.dialog.close`),"keyboard-shortcut":{key:`Escape`},class:`absolute top-0 right-0 z-10 m-lg`,variant:`tertiary`},null,8,[`icon`,`label`])]),_:1}))}});function H_(){let e=(0,d.shallowReactive)([]),t=(t,i)=>{let{defaultOpen:a,destroyOnClose:s,props:c}=i||{},l=(0,d.reactive)({id:Symbol(`useOverlay`),isMounted:!!a,isOpen:!!a,destroyOnClose:!!s,originalProps:c||{},props:{...c},component:(0,d.markRaw)(t)});return e.push(l),{...l,close:e=>r(l.id,e),open:e=>n(l.id,e),patch:e=>o(l.id,e)}},n=(e,t)=>{let n=s(e);t?n.props={...n.originalProps,...t}:n.props={...n.originalProps},n.isOpen=!0,n.isMounted=!0;let r=new Promise(e=>n.resolvePromise=e);return Object.assign(r,{id:e,isMounted:n.isMounted,isOpen:n.isOpen,result:r})},r=(e,t)=>{let n=s(e);n.isOpen=!1,n.resolvePromise&&=(n.resolvePromise(t),void 0)},i=()=>{for(let t of e)r(t.id)},a=t=>{let n=s(t);if(n.isMounted=!1,n.destroyOnClose){let n=e.findIndex(e=>e.id===t);e.splice(n,1)}},o=(e,t)=>{let n=s(e);n.props={...n.props,...t}},s=t=>{let n=e.find(e=>e.id===t);if(!n)throw Error(`Overlay not found`);return n};return{isOpen:e=>s(e).isOpen,close:r,closeAll:i,create:t,open:n,overlays:e,patch:o,unmount:a}}var U_=(0,p.createSharedComposable)(H_);function W_(){let e=(0,d.ref)(null),t=(0,d.ref)(!0),n=(0,d.ref)(!0);function r(){let r=e.value;r!==null&&(t.value=r.scrollTop<=1,n.value=r.scrollTop+r.clientHeight>=r.scrollHeight-1)}let i=null;return(0,d.watch)(e,(e,t,n)=>{e!==null&&(e.addEventListener(`scroll`,r,{passive:!0}),i=new ResizeObserver(r),i.observe(e),r(),n(()=>{e.removeEventListener(`scroll`,r),i?.disconnect(),i=null}))},{immediate:!0}),{isScrolledToBottom:n,isScrolledToTop:t,bodyRef:e}}var G_=(0,d.defineComponent)({__name:`Dialog`,props:(0,d.mergeModels)({chin:{default:null},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},size:{default:`md`}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,d.mergeModels)([`afterLeave`,`close`,`update:isOpen`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`isOpen`),a=(0,d.computed)(()=>R_({size:n.size})),{isScrolledToBottom:o,isScrolledToTop:s,bodyRef:c}=W_();I_({isScrolledToBottom:o,isScrolledToTop:s,bodyRef:c,style:a});function l(e){n.preventEsc&&e.preventDefault()}function u(e){n.preventClickOutside&&e.preventDefault()}function f(e){e||r(`close`)}function p(e){e.target instanceof Element&&(e.target.hasAttribute(`data-dialog-overlay`)||e.preventDefault())}let h=`${40+U_().overlays.filter(e=>e.isMounted).length}`;return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogRoot),{open:i.value,"onUpdate:open":[t[1]||=e=>i.value=e,f],modal:!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DialogOverlay),{class:(0,d.normalizeClass)(a.value.overlay()),style:(0,d.normalizeStyle)({zIndex:h}),"data-animation":`dialog`,"data-dialog-overlay":``},null,8,[`class`,`style`]),(0,d.createVNode)((0,d.unref)(m.DialogContent),{class:(0,d.normalizeClass)(a.value.contentWrapper()),style:(0,d.normalizeStyle)({zIndex:h}),"data-animation":`dialog`,onEscapeKeyDown:l,onPointerDownOutside:u,onAfterLeave:t[0]||=e=>r(`afterLeave`),onInteractOutside:p},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(a.value.content())},[(0,d.renderSlot)(e.$slots,`default`),n.showCloseButton?((0,d.openBlock)(),(0,d.createBlock)(V_,{key:0})):(0,d.createCommentVNode)(``,!0)],2),(0,d.createVNode)(B_,{chin:n.chin},null,8,[`chin`])]),_:3},8,[`class`,`style`])]),_:3},8,[`open`]))}}),K_=(0,d.defineComponent)({__name:`DialogFooter`,props:{showSeparator:{type:Boolean,default:!0}},setup(e){let t=e,n=L_(null);return(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)((0,d.unref)(n)?.style.value.footer()),"data-dialog-footer":``},[t.showSeparator?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:0,class:(0,d.normalizeClass)([(0,d.unref)(n)!==null&&(0,d.unref)(n).isScrolledToBottom.value?`opacity-0`:`opacity-100`,`transition-opacity duration-150`])},null,8,[`class`])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)(R,{align:`center`,justify:`between`,gap:`lg`,class:`p-xl`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,null,[(0,d.renderSlot)(e.$slots,`left`)]),(0,d.createVNode)(R,{align:`center`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`),(0,d.renderSlot)(e.$slots,`default`)]),_:3})]),_:3})],2))}}),q_=(0,d.defineComponent)({__name:`DialogFooterCancel`,props:{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},type:{default:`button`},label:{default:null}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)();return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogClose),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(g_,(0,d.mergeProps)(n,{label:n.label??(0,d.unref)(i).t(`component.dialog.cancel`),variant:`secondary`,onClick:t[0]||=e=>r(`click`)}),null,16,[`label`])]),_:1}))}}),J_=(0,d.defineComponent)({__name:`AutoFocus`,props:{isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=(0,d.ref)(null);function r(e){let t=e.querySelectorAll(`a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])`),[n]=Array.from(t);return n??null}return(0,d.onMounted)(()=>{if(t.isDisabled)return;let e=n.value?.$el;if(e===null)return;let i=r(e);i!==null&&setTimeout(()=>{i.focus()})}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),{ref_key:`primitiveRef`,ref:n},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},512))}}),Y_=(0,d.defineComponent)({__name:`DialogFooterPrimary`,props:{isDestructive:{type:Boolean,default:!1},disableAutoFocus:{type:Boolean,default:!1},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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(J_),{"is-disabled":n.disableAutoFocus},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(g_,(0,d.mergeProps)(n,{variant:n.isDestructive?`destructive-primary`:`primary`,onClick:t[0]||=e=>r(`click`)}),null,16,[`variant`])]),_:1},8,[`is-disabled`]))}}),X_={class:`flex min-w-0 flex-1 flex-col gap-md`},Z_=(0,d.defineComponent)({__name:`DialogHeader`,props:{title:{},description:{},hideDescription:{type:Boolean},icon:{default:null},iconVariant:{default:`brand`},showSeparator:{type:Boolean,default:!0}},setup(e){let t=e,n=U({slots:{bg:``,text:``},variants:{variant:{brand:{bg:`bg-brand-secondary`,text:`text-brand-primary`},error:{bg:`bg-error-secondary`,text:`text-error-primary`},success:{bg:`bg-success-secondary`,text:`text-success-primary`},warning:{bg:`bg-warning-secondary`,text:`text-warning-primary`}}}}),r=(0,d.computed)(()=>n({variant:t.iconVariant})),i=L_(null);return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(q,{class:(0,d.normalizeClass)((0,d.unref)(i)?.style.value.header()),gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{align:`start`,gap:`xl`,class:`p-xl pb-0 group-has-data-dialog-body/dialog:pb-xl`},{default:(0,d.withCtx)(()=>[t.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,class:(0,d.normalizeClass)([r.value.bg(),`flex size-10 shrink-0 items-center justify-center rounded-full`])},[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{class:(0,d.normalizeClass)([r.value.text(),`size-5`])},null,8,[`class`]))],2)),(0,d.createElementVNode)(`div`,X_,[(0,d.createVNode)((0,d.unref)(m.DialogTitle),{as:`h2`,class:`text-sm font-semibold text-primary`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t.title),1)]),_:1}),(0,d.createVNode)((0,d.unref)(m.DialogDescription),{class:(0,d.normalizeClass)([{"sr-only":t.hideDescription},`text-xs text-tertiary`]),as:`p`,innerHTML:t.description},null,8,[`class`,`innerHTML`])])]),_:1}),t.showSeparator?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:0,class:(0,d.normalizeClass)([(0,d.unref)(i)!==null&&(0,d.unref)(i).isScrolledToTop.value?`opacity-0`:`opacity-100`,`transition-opacity duration-150`])},null,8,[`class`])):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`class`]))}}),Q_=(0,d.defineComponent)({__name:`ConfirmDialog`,props:{title:{},isDestructive:{type:Boolean,default:!1},cancelLabel:{default:null},confirmLabel:{default:null},description:{},icon:{default:null},onConfirm:{},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),a=(0,d.ref)(!1);async function o(){a.value=!0;try{await n.onConfirm()}finally{a.value=!1}}function s(){r(`close`)}function c(){r(`close`)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(G_,{"has-close-button":!1,"prevent-click-outside":n.preventClickOutside,"prevent-esc":n.preventEsc,size:`xxs`,onClose:c},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Z_,{title:n.title,description:n.description,icon:n.icon,"icon-variant":n.isDestructive?`error`:`brand`,"has-close-button":!1},null,8,[`title`,`description`,`icon`,`icon-variant`]),(0,d.createVNode)(K_,null,{right:(0,d.withCtx)(()=>[(0,d.createVNode)(q_,{label:n.cancelLabel,"is-disabled":a.value,onClick:s},null,8,[`label`,`is-disabled`]),(0,d.createVNode)(Y_,{label:n.confirmLabel??(0,d.unref)(i).t(`component.unsaved_changes_dialog.confirm`),"is-loading":a.value,"is-destructive":n.isDestructive,onClick:o},null,8,[`label`,`is-loading`,`is-destructive`])]),_:1})]),_:1},8,[`prevent-click-outside`,`prevent-esc`]))}});function $_(e){let t=(0,h.useI18n)(),n=U_().create(Q_);function r(){return new Promise(e=>{n.open({title:t.t(`component.unsaved_changes_dialog.title`),isDestructive:!0,cancelLabel:t.t(`component.unsaved_changes_dialog.cancel`),confirmLabel:t.t(`component.unsaved_changes_dialog.confirm`),description:t.t(`component.unsaved_changes_dialog.description`),onClose:()=>{e(!1)},onConfirm:()=>{n.close(),e(!0)}})})}(0,y.onBeforeRouteLeave)(async()=>{if(e.value)return await r()}),window.addEventListener(`beforeunload`,()=>{if(e.value)return t.t(`component.unsaved_changes_dialog.description`)})}var ev=[`id`],tv=(0,d.defineComponent)({__name:`Form`,props:{id:{default:null},form:{},promptOnUnsavedChanges:{type:Boolean}},setup(e){let t=e,n=(0,d.useId)();return t.promptOnUnsavedChanges&&$_(t.form.isDirty),P_({formId:t.id??n,form:t.form}),(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`form`,{id:t.id??(0,d.unref)(n),novalidate:!0,onSubmit:r[0]||=(0,d.withModifiers)(e=>t.form.submit(),[`prevent`])},[(0,d.renderSlot)(e.$slots,`default`)],40,ev))}}),nv={alt:``,arrowdown:`↓`,arrowleft:`←`,arrowright:`→`,arrowup:`↑`,backspace:`⌫`,capslock:`⇪`,command:`⌘`,control:`⌃`,ctrl:``,delete:`⌦`,end:`↘`,enter:`↵`,escape:`Esc`,home:`↖`,option:`⌥`,pagedown:`⇟`,pageup:`⇞`,shift:`⇧`,tab:`⇥`,win:`⊞`,meta:``},rv=/Macintosh;/,iv=av();function av(){return typeof navigator>`u`||typeof navigator.userAgent!=`string`?!1:rv.test(navigator.userAgent)}var ov=(0,p.createSharedComposable)(()=>{let e=(0,d.reactive)({alt:` `,ctrl:` `,meta:` `});(0,d.onMounted)(()=>{e.meta=iv?nv.command:`Ctrl`,e.ctrl=iv?nv.control:`Ctrl`,e.alt=iv?nv.option:`Alt`});function t(t){return[`meta`,`alt`,`ctrl`].includes(t)?e[t]:nv[t]||t}return{getKbdKey:t,IS_MACOS:iv}}),sv=/^[^-]+.*-.*[^-]+$/,cv=/^[^_]+.*_.*[^_]+$/,lv=/^[a-z]$/i,uv=/^\d$/,dv=/^f\d+$/i,fv=/^Key[A-Z]$/i,pv=/^[a-z]{1}$/i,mv=[`arrowleft`,`arrowright`,`arrowup`,`arrowright`,`tab`,`escape`,`enter`,`backspace`];function hv(e){return lv.test(e)?`Key${e.toUpperCase()}`:uv.test(e)?`Digit${e}`:dv.test(e)?e.toUpperCase():{arrowdown:`ArrowDown`,arrowleft:`ArrowLeft`,arrowright:`ArrowRight`,arrowup:`ArrowUp`,backspace:`Backspace`,delete:`Delete`,enter:`Enter`,escape:`Escape`,space:`Space`,tab:`Tab`}[e.toLowerCase()]||e}function gv(e,t={}){let n=(0,d.ref)([]);function r(){n.value.splice(0,n.value.length)}let i=(0,p.useDebounceFn)(r,t.chainDelay??800),{IS_MACOS:a}=ov(),o=(0,p.useActiveElement)(),s=t.layoutIndependent??!1,c=new Set(mv.map(e=>hv(e))),l=(0,d.computed)(()=>{let e=o.value?.tagName,t=o.value?.contentEditable;return e===`INPUT`||e===`TEXTAREA`||t===`true`||t===`plaintext-only`}),u=(0,d.computed)(()=>Object.entries((0,d.toValue)(e)).map(([e,t])=>{if(!t)return null;let n;e.includes(`-`)&&e!==`-`&&!e.includes(`_`)&&!e.match(sv)?.length&&console.warn(`[Shortcut] Invalid key: "${e}"`),e.includes(`_`)&&e!==`_`&&!e.match(cv)?.length&&console.warn(`[Shortcut] Invalid key: "${e}"`);let r=e.includes(`-`)&&e!==`-`&&!e.includes(`_`);if(r)n=s?{altKey:!1,ctrlKey:!1,key:e.split(`-`).map(e=>hv(e)).join(`-`),metaKey:!1,shiftKey:!1}:{altKey:!1,ctrlKey:!1,key:e.toLowerCase(),metaKey:!1,shiftKey:!1};else{let t=e.toLowerCase().split(`_`).map(e=>e),r=t.filter(e=>![`meta`,`command`,`ctrl`,`shift`,`alt`,`option`].includes(e)).join(`_`);s&&(r=hv(r)),n={altKey:t.includes(`alt`)||t.includes(`option`),ctrlKey:t.includes(`ctrl`),key:r,metaKey:t.includes(`meta`)||t.includes(`command`),shiftKey:t.includes(`shift`)}}if(n.chained=r,!a&&n.metaKey&&!n.ctrlKey&&(n.metaKey=!1,n.ctrlKey=!0),typeof t==`function`?n.handler=t:typeof t==`object`&&(n={...n,handler:t.handler}),!n.handler)return console.warn(`[Shortcut] Invalid value`),null;let i=!0,o=e.split(r?`-`:`_`)[0];return o===`meta`||o===`command`||(t.usingInput?typeof t.usingInput==`string`&&(i=l.value===t.usingInput):i=!l.value),n.enabled=i,n}).filter(Boolean));function f(e){if(!e.key)return;let t=s?fv.test(e.code):pv.test(e.key),a=s?c.has(e.code):mv.includes(e.key.toLowerCase()),o;if(n.value.push(s?e.code:e.key),n.value.length>=2){o=n.value.slice(-2).join(`-`);for(let t of u.value.filter(e=>e.chained))if(t.key===o){t.enabled&&t.handler(e),r();return}}for(let n of u.value.filter(e=>!e.chained)){if(s){if(e.code!==n.key)continue}else if(e.key.toLowerCase()!==n.key)continue;if(e.metaKey===n.metaKey&&e.ctrlKey===n.ctrlKey&&!((t||a)&&e.shiftKey!==n.shiftKey)){n.enabled&&n.handler(e),r();return}}i()}return(0,p.useEventListener)(`keydown`,f)}var _v=(0,d.defineComponent)({__name:`FormSubmitButton`,props:{disableKeyboardShortcut:{type:Boolean,default:!1},label:{},variant:{default:`primary`}},setup(e){let t=e,n={submit:{keys:[`meta`,`enter`],shortcutKey:`meta_enter`}},{formId:r,form:i}=F_();return gv({[n.submit.shortcutKey]:()=>{t.disableKeyboardShortcut||i.submit()}}),(e,a)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),(0,d.mergeProps)({"as-child":!0},t,{"is-loading":(0,d.unref)(i).isSubmitting.value,form:(0,d.unref)(r),type:`submit`}),{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`,{},()=>[(0,d.createVNode)((0,d.unref)(g_),{label:t.label,form:(0,d.unref)(r),variant:t.variant,"keyboard-shortcut-keys":t.disableKeyboardShortcut?null:n.submit.keys},null,8,[`label`,`form`,`variant`,`keyboard-shortcut-keys`])])]),_:3},16,[`is-loading`,`form`]))}}),vv=(0,d.defineComponent)({__name:`PopoverArrow`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.PopoverArrow),{class:`relative -mb-4 h-4 w-10 -translate-y-px overflow-hidden`,as:`div`},{default:(0,d.withCtx)(()=>[...t[0]||=[(0,d.createElementVNode)(`div`,{class:`absolute left-1/2 size-4 -translate-x-1/2 -translate-y-3 rotate-45 rounded-xxs border border-secondary bg-primary shadow-lg`},null,-1)]]),_:1}))}}),yv={class:`relative size-full overflow-hidden rounded-md border border-secondary bg-primary shadow-lg`},bv=(0,d.defineComponent)({__name:`Popover`,props:(0,d.mergeModels)((0,d.mergeDefaults)({disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{...Dr,disableSideFlip:!1,disableUpdateOnLayoutShift:!1,prioritizePosition:!1}),{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,d.mergeModels)([`autoFocusOnClose`,`escapeKeyDown`,`focusOutside`,`interactOutside`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`isOpen`);function a(e){r(`escapeKeyDown`,e)}function o(e){r(`focusOutside`,e)}function s(e){r(`interactOutside`,e)}function c(e){r(`autoFocusOnClose`,e)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.PopoverRoot),{open:i.value,"onUpdate:open":t[0]||=e=>i.value=e},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverAnchor),{"as-child":!0,reference:n.popoverAnchorReferenceElement??void 0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverTrigger),(0,d.mergeProps)({"as-child":!0},(0,d.toHandlers)(e.$attrs)),{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`trigger`)]),_:3},16)]),_:3},8,[`reference`]),(0,d.createVNode)((0,d.unref)(m.PopoverPortal),{to:`body`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Sr,{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverContent),{align:n.popoverAlign,"align-offset":n.popoverAlignOffset,"collision-padding":n.popoverCollisionPadding,"collision-boundary":n.popoverContainerElement,side:n.popoverSide,"side-offset":n.popoverSideOffset,class:(0,d.normalizeClass)([{"w-(--reka-popover-trigger-width)":n.popoverWidth===`anchor-width`,"w-(--reka-popover-content-available-width)":n.popoverWidth===`available-width`},`z-50 origin-(--reka-popover-content-transform-origin) will-change-[transform,opacity]`]),"prioritize-position":n.prioritizePosition,"data-animation":n.popoverAnimationName??`popover-default`,"disable-update-on-layout-shift":n.disableUpdateOnLayoutShift,"side-flip":!n.disableSideFlip,"position-strategy":`absolute`,sticky:`always`,onCloseAutoFocus:c,onEscapeKeyDown:a,onFocusOutside:o,onInteractOutside:s},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,yv,[(0,d.renderSlot)(e.$slots,`content`)]),n.isPopoverArrowVisible?((0,d.openBlock)(),(0,d.createBlock)(vv,{key:0})):(0,d.createCommentVNode)(``,!0)]),_:3},8,[`align`,`align-offset`,`collision-padding`,`collision-boundary`,`side`,`side-offset`,`class`,`prioritize-position`,`data-animation`,`disable-update-on-layout-shift`,`side-flip`])]),_:3})]),_:3})]),_:3},8,[`open`]))}});function xv(e){return e.map(e=>({type:`option`,value:e}))}function Sv(e,t){let n=(0,d.computed)(()=>{if(t.errorMessage===null&&t.hint===null)return;let n=[];return t.errorMessage!==null&&n.push(`${e}-error-message`),t.hint!==null&&n.push(`${e}-hint`),n.join(` `)}),r=(0,d.computed)(()=>t.errorMessage?`true`:void 0),i=(0,d.computed)(()=>t.isRequired?`true`:void 0),a=(0,d.computed)(()=>t.isLoading?`true`:void 0);return{isError:(0,d.computed)(()=>t.errorMessage!==void 0&&t.errorMessage!==null),ariaBusy:a,ariaDescribedBy:n,ariaInvalid:r,ariaRequired:i}}var Cv={isDisabled:!1,disabledReason:null},wv={...Cv,id:null,isReadonly:!1,isRequired:!1,name:null,class:null,style:null},Tv={...Cv,isHorizontal:!1,isLabelHidden:!1,isRequired:!1,errorMessage:null,for:null,helpText:null,hideErrorMessage:!1,hint:null,label:null},Ev={isDisabled:!1,isLoading:!1,isReadonly:!1,iconLeft:null,iconRight:null,placeholder:null},Dv={autocomplete:`off`};function Ov(e,...t){let n={...e};for(let e of t)delete n[e];return n}var[kv,Av]=L(`badgeContext`),jv=U({compoundVariants:[{class:{base:`
|
|
295
|
+
`,contentWrapper:`sm:max-w-[90vw]`},lg:{contentWrapper:`sm:max-w-160`},md:{contentWrapper:`sm:max-w-140`},sm:{contentWrapper:`sm:max-w-120`},xl:{contentWrapper:`sm:max-w-180`},xs:{contentWrapper:`sm:max-w-100`},xxs:{contentWrapper:`sm:max-w-90`}}}}),z_={ref:`chinContent`,class:`w-full`},B_=(0,d.defineComponent)({__name:`DialogChin`,props:{chin:{}},setup(e){let t=e,n=(0,d.computed)(()=>t.chin!==null),r=(0,d.useTemplateRef)(`chinContent`),i=(0,d.ref)(38);(0,d.watch)(r,(e,t,n)=>{if(e==null)return;let r=new ResizeObserver(([e])=>{i.value=e?.contentRect.height??0});r.observe(e),n(()=>{r.disconnect()})},{immediate:!0});let a={default:`from-white/60 dark:from-white/15`,error:`from-error-secondary dark:from-error-secondary/20`},o=(0,d.computed)(()=>a[t.chin?.variant??`default`]),s={brand:`minimal-color`,default:`tertiary`,destructive:`destructive-tertiary`},c={brand:`primary`,default:`tertiary`,destructive:`destructive-tertiary`},l=(0,d.computed)(()=>t.chin?.variant===`error`?`text-error-500`:`text-primary`),{style:u}=L_(),f=xf();return(r,a)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{animate:{height:n.value?`calc(100% + ${i.value+14}px)`:`100%`},initial:!1,transition:{duration:(0,d.unref)(f)?0:.3,type:`spring`,bounce:0},class:(0,d.normalizeClass)([(0,d.unref)(u).chin(),`bg-white/20 dark:bg-white/10`]),as:`div`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.AnimatePresence),null,{default:(0,d.withCtx)(()=>[n.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,type:`spring`,bounce:0},class:(0,d.normalizeClass)([o.value,`h-full rounded-t-[calc(1rem+5px)] rounded-b-none bg-linear-to-b to-transparent sm:rounded-[calc(1rem+5px)] sm:bg-linear-to-t`]),as:`div`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(q,{class:`h-full justify-start p-lg px-xl sm:justify-end`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,z_,[(0,d.createVNode)(R,{align:`center`,justify:`between`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,null,{default:(0,d.withCtx)(()=>[e.chin?.icon?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.chin?.icon),{key:0,class:(0,d.normalizeClass)([l.value,`size-4 shrink-0`])},null,8,[`class`])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(G),{text:t.chin?.text??``,truncate:2,class:`text-xs font-medium text-secondary`},null,8,[`text`])]),_:1}),(0,d.createVNode)(R,{items:`center`,gap:`none`},{default:(0,d.withCtx)(()=>[t.chin?.secondaryAction?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[t.chin.secondaryAction.type===`button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),{key:0,label:t.chin.secondaryAction.label,"is-loading":t.chin.secondaryAction.isLoading,"is-disabled":t.chin.secondaryAction.isDisabled,"disabled-reason":t.chin.secondaryAction.disabledReason,variant:s[t.chin.secondaryAction.variant??`default`],onClick:t.chin.secondaryAction.action},null,8,[`label`,`is-loading`,`is-disabled`,`disabled-reason`,`variant`,`onClick`])):t.chin.secondaryAction.type===`link`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(x_),{key:1,label:t.chin.secondaryAction.label,to:t.chin.secondaryAction.to,link:t.chin.secondaryAction.link,variant:c[t.chin.secondaryAction.variant??`default`]},null,8,[`label`,`to`,`link`,`variant`])):t.chin.secondaryAction.type===`icon-button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Q),{key:2,icon:t.chin.secondaryAction.icon,label:t.chin.secondaryAction.label,"is-loading":t.chin.secondaryAction.isLoading,"is-disabled":t.chin.secondaryAction.isDisabled,"disabled-reason":t.chin.secondaryAction.disabledReason,variant:c[t.chin.secondaryAction.variant??`default`],onClick:t.chin.secondaryAction.action},null,8,[`icon`,`label`,`is-loading`,`is-disabled`,`disabled-reason`,`variant`,`onClick`])):(0,d.createCommentVNode)(``,!0)],64)):(0,d.createCommentVNode)(``,!0),t.chin?.primaryAction?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[t.chin.primaryAction.type===`button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),{key:0,label:t.chin.primaryAction.label,"is-loading":t.chin.primaryAction.isLoading,"is-disabled":t.chin.primaryAction.isDisabled,"disabled-reason":t.chin.primaryAction.disabledReason,variant:s[t.chin.primaryAction.variant??`brand`],onClick:t.chin.primaryAction.action},null,8,[`label`,`is-loading`,`is-disabled`,`disabled-reason`,`variant`,`onClick`])):t.chin.primaryAction.type===`link`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(x_),{key:1,label:t.chin.primaryAction.label,to:t.chin.primaryAction.to,link:t.chin.primaryAction.link,variant:c[t.chin.primaryAction.variant??`brand`]},null,8,[`label`,`to`,`link`,`variant`])):t.chin.primaryAction.type===`icon-button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Q),{key:2,icon:t.chin.primaryAction.icon,label:t.chin.primaryAction.label,"is-loading":t.chin.primaryAction.isLoading,"is-disabled":t.chin.primaryAction.isDisabled,"disabled-reason":t.chin.primaryAction.disabledReason,variant:c[t.chin.primaryAction.variant??`brand`],onClick:t.chin.primaryAction.action},null,8,[`icon`,`label`,`is-loading`,`is-disabled`,`disabled-reason`,`variant`,`onClick`])):(0,d.createCommentVNode)(``,!0)],64)):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1})],512)]),_:1})]),_:1},8,[`class`])):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`animate`,`transition`,`class`]))}}),V_=(0,d.defineComponent)({__name:`DialogCloseButton`,setup(e){let t=(0,h.useI18n)();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogClose),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(_r),label:(0,d.unref)(t).t(`component.dialog.close`),"keyboard-shortcut":{key:`Escape`},class:`absolute top-0 right-0 z-10 m-lg`,variant:`tertiary`},null,8,[`icon`,`label`])]),_:1}))}});function H_(){let e=(0,d.shallowReactive)([]),t=(t,i)=>{let{defaultOpen:a,destroyOnClose:s,props:c}=i||{},l=(0,d.reactive)({id:Symbol(`useOverlay`),isMounted:!!a,isOpen:!!a,destroyOnClose:!!s,originalProps:c||{},props:{...c},component:(0,d.markRaw)(t)});return e.push(l),{...l,close:e=>r(l.id,e),open:e=>n(l.id,e),patch:e=>o(l.id,e)}},n=(e,t)=>{let n=s(e);t?n.props={...n.originalProps,...t}:n.props={...n.originalProps},n.isOpen=!0,n.isMounted=!0;let r=new Promise(e=>n.resolvePromise=e);return Object.assign(r,{id:e,isMounted:n.isMounted,isOpen:n.isOpen,result:r})},r=(e,t)=>{let n=s(e);n.isOpen=!1,n.resolvePromise&&=(n.resolvePromise(t),void 0)},i=()=>{for(let t of e)r(t.id)},a=t=>{let n=s(t);if(n.isMounted=!1,n.destroyOnClose){let n=e.findIndex(e=>e.id===t);e.splice(n,1)}},o=(e,t)=>{let n=s(e);n.props={...n.props,...t}},s=t=>{let n=e.find(e=>e.id===t);if(!n)throw Error(`Overlay not found`);return n};return{isOpen:e=>s(e).isOpen,close:r,closeAll:i,create:t,open:n,overlays:e,patch:o,unmount:a}}var U_=(0,p.createSharedComposable)(H_);function W_(){let e=(0,d.ref)(null),t=(0,d.ref)(!0),n=(0,d.ref)(!0);function r(){let r=e.value;r!==null&&(t.value=r.scrollTop<=1,n.value=r.scrollTop+r.clientHeight>=r.scrollHeight-1)}let i=null;return(0,d.watch)(e,(e,t,n)=>{e!==null&&(e.addEventListener(`scroll`,r,{passive:!0}),i=new ResizeObserver(r),i.observe(e),r(),n(()=>{e.removeEventListener(`scroll`,r),i?.disconnect(),i=null}))},{immediate:!0}),{isScrolledToBottom:n,isScrolledToTop:t,bodyRef:e}}var G_=(0,d.defineComponent)({__name:`Dialog`,props:(0,d.mergeModels)({chin:{default:null},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},size:{default:`md`}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,d.mergeModels)([`afterLeave`,`close`,`update:isOpen`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`isOpen`),a=(0,d.computed)(()=>R_({size:n.size})),{isScrolledToBottom:o,isScrolledToTop:s,bodyRef:c}=W_();I_({isScrolledToBottom:o,isScrolledToTop:s,bodyRef:c,style:a});function l(e){n.preventEsc&&e.preventDefault()}function u(e){n.preventClickOutside&&e.preventDefault()}function f(e){e||r(`close`)}function p(e){e.target instanceof Element&&(e.target.hasAttribute(`data-dialog-overlay`)||e.preventDefault())}let h=`${40+U_().overlays.filter(e=>e.isMounted).length}`;return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogRoot),{open:i.value,"onUpdate:open":[t[1]||=e=>i.value=e,f],modal:!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DialogOverlay),{class:(0,d.normalizeClass)(a.value.overlay()),style:(0,d.normalizeStyle)({zIndex:h}),"data-animation":`dialog`,"data-dialog-overlay":``},null,8,[`class`,`style`]),(0,d.createVNode)((0,d.unref)(m.DialogContent),{class:(0,d.normalizeClass)(a.value.contentWrapper()),style:(0,d.normalizeStyle)({zIndex:h}),"data-animation":`dialog`,onEscapeKeyDown:l,onPointerDownOutside:u,onAfterLeave:t[0]||=e=>r(`afterLeave`),onInteractOutside:p},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(a.value.content())},[(0,d.renderSlot)(e.$slots,`default`),n.showCloseButton?((0,d.openBlock)(),(0,d.createBlock)(V_,{key:0})):(0,d.createCommentVNode)(``,!0)],2),(0,d.createVNode)(B_,{chin:n.chin},null,8,[`chin`])]),_:3},8,[`class`,`style`])]),_:3},8,[`open`]))}}),K_=(0,d.defineComponent)({__name:`DialogFooter`,props:{showSeparator:{type:Boolean,default:!0}},setup(e){let t=e,n=L_(null);return(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)((0,d.unref)(n)?.style.value.footer()),"data-dialog-footer":``},[t.showSeparator?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:0,class:(0,d.normalizeClass)([(0,d.unref)(n)!==null&&(0,d.unref)(n).isScrolledToBottom.value?`opacity-0`:`opacity-100`,`transition-opacity duration-150`])},null,8,[`class`])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)(R,{align:`center`,justify:`between`,gap:`lg`,class:`p-xl`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,null,[(0,d.renderSlot)(e.$slots,`left`)]),(0,d.createVNode)(R,{align:`center`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`),(0,d.renderSlot)(e.$slots,`default`)]),_:3})]),_:3})],2))}}),q_=(0,d.defineComponent)({__name:`DialogFooterCancel`,props:{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},type:{default:`button`},label:{default:null}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)();return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogClose),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(g_,(0,d.mergeProps)(n,{label:n.label??(0,d.unref)(i).t(`component.dialog.cancel`),variant:`secondary`,onClick:t[0]||=e=>r(`click`)}),null,16,[`label`])]),_:1}))}}),J_=(0,d.defineComponent)({__name:`AutoFocus`,props:{isDisabled:{type:Boolean,default:!1}},setup(e){let t=e,n=(0,d.ref)(null);function r(e){let t=e.querySelectorAll(`a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])`),[n]=Array.from(t);return n??null}return(0,d.onMounted)(()=>{if(t.isDisabled)return;let e=n.value?.$el;if(e===null)return;let i=r(e);i!==null&&setTimeout(()=>{i.focus()})}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),{ref_key:`primitiveRef`,ref:n},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},512))}}),Y_=(0,d.defineComponent)({__name:`DialogFooterPrimary`,props:{isDestructive:{type:Boolean,default:!1},disableAutoFocus:{type:Boolean,default:!1},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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(J_),{"is-disabled":n.disableAutoFocus},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(g_,(0,d.mergeProps)(n,{variant:n.isDestructive?`destructive-primary`:`primary`,onClick:t[0]||=e=>r(`click`)}),null,16,[`variant`])]),_:1},8,[`is-disabled`]))}}),X_={class:`flex min-w-0 flex-1 flex-col gap-md`},Z_=(0,d.defineComponent)({__name:`DialogHeader`,props:{title:{},description:{},hideDescription:{type:Boolean},icon:{default:null},iconVariant:{default:`brand`},showSeparator:{type:Boolean,default:!0}},setup(e){let t=e,n=U({slots:{bg:``,text:``},variants:{variant:{brand:{bg:`bg-brand-secondary`,text:`text-brand-primary`},error:{bg:`bg-error-secondary`,text:`text-error-primary`},success:{bg:`bg-success-secondary`,text:`text-success-primary`},warning:{bg:`bg-warning-secondary`,text:`text-warning-primary`}}}}),r=(0,d.computed)(()=>n({variant:t.iconVariant})),i=L_(null);return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(q,{class:(0,d.normalizeClass)((0,d.unref)(i)?.style.value.header()),gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{align:`start`,gap:`xl`,class:`p-xl pb-0 group-has-data-dialog-body/dialog:pb-xl`},{default:(0,d.withCtx)(()=>[t.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,class:(0,d.normalizeClass)([r.value.bg(),`flex size-10 shrink-0 items-center justify-center rounded-full`])},[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{class:(0,d.normalizeClass)([r.value.text(),`size-5`])},null,8,[`class`]))],2)),(0,d.createElementVNode)(`div`,X_,[(0,d.createVNode)((0,d.unref)(m.DialogTitle),{as:`h2`,class:`text-sm font-semibold text-primary`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t.title),1)]),_:1}),(0,d.createVNode)((0,d.unref)(m.DialogDescription),{class:(0,d.normalizeClass)([{"sr-only":t.hideDescription},`text-xs text-tertiary`]),as:`p`,innerHTML:t.description},null,8,[`class`,`innerHTML`])])]),_:1}),t.showSeparator?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:0,class:(0,d.normalizeClass)([(0,d.unref)(i)!==null&&(0,d.unref)(i).isScrolledToTop.value?`opacity-0`:`opacity-100`,`transition-opacity duration-150`])},null,8,[`class`])):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`class`]))}}),Q_=(0,d.defineComponent)({__name:`ConfirmDialog`,props:{title:{},isDestructive:{type:Boolean,default:!1},cancelLabel:{default:null},confirmLabel:{default:null},description:{},icon:{default:null},onConfirm:{},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),a=(0,d.ref)(!1);async function o(){a.value=!0;try{await n.onConfirm()}finally{a.value=!1}}function s(){r(`close`)}function c(){r(`close`)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(G_,{"has-close-button":!1,"prevent-click-outside":n.preventClickOutside,"prevent-esc":n.preventEsc,size:`xxs`,onClose:c},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Z_,{title:n.title,description:n.description,icon:n.icon,"icon-variant":n.isDestructive?`error`:`brand`,"has-close-button":!1},null,8,[`title`,`description`,`icon`,`icon-variant`]),(0,d.createVNode)(K_,null,{right:(0,d.withCtx)(()=>[(0,d.createVNode)(q_,{label:n.cancelLabel,"is-disabled":a.value,onClick:s},null,8,[`label`,`is-disabled`]),(0,d.createVNode)(Y_,{label:n.confirmLabel??(0,d.unref)(i).t(`component.unsaved_changes_dialog.confirm`),"is-loading":a.value,"is-destructive":n.isDestructive,onClick:o},null,8,[`label`,`is-loading`,`is-destructive`])]),_:1})]),_:1},8,[`prevent-click-outside`,`prevent-esc`]))}});function $_(e){let t=(0,h.useI18n)(),n=U_().create(Q_);function r(){return new Promise(e=>{n.open({title:t.t(`component.unsaved_changes_dialog.title`),isDestructive:!0,cancelLabel:t.t(`component.unsaved_changes_dialog.cancel`),confirmLabel:t.t(`component.unsaved_changes_dialog.confirm`),description:t.t(`component.unsaved_changes_dialog.description`),onClose:()=>{e(!1)},onConfirm:()=>{n.close(),e(!0)}})})}(0,y.onBeforeRouteLeave)(async()=>{if(e.value)return await r()}),window.addEventListener(`beforeunload`,()=>{if(e.value)return t.t(`component.unsaved_changes_dialog.description`)})}var ev=[`id`],tv=(0,d.defineComponent)({__name:`Form`,props:{id:{default:null},form:{},promptOnUnsavedChanges:{type:Boolean}},setup(e){let t=e,n=(0,d.useId)();return t.promptOnUnsavedChanges&&$_(t.form.isDirty),P_({formId:t.id??n,form:t.form}),(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`form`,{id:t.id??(0,d.unref)(n),novalidate:!0,onSubmit:r[0]||=(0,d.withModifiers)(e=>t.form.submit(),[`prevent`])},[(0,d.renderSlot)(e.$slots,`default`)],40,ev))}}),nv={alt:``,arrowdown:`↓`,arrowleft:`←`,arrowright:`→`,arrowup:`↑`,backspace:`⌫`,capslock:`⇪`,command:`⌘`,control:`⌃`,ctrl:``,delete:`⌦`,end:`↘`,enter:`↵`,escape:`Esc`,home:`↖`,option:`⌥`,pagedown:`⇟`,pageup:`⇞`,shift:`⇧`,tab:`⇥`,win:`⊞`,meta:``},rv=/Macintosh;/,iv=av();function av(){return typeof navigator>`u`||typeof navigator.userAgent!=`string`?!1:rv.test(navigator.userAgent)}var ov=(0,p.createSharedComposable)(()=>{let e=(0,d.reactive)({alt:` `,ctrl:` `,meta:` `});(0,d.onMounted)(()=>{e.meta=iv?nv.command:`Ctrl`,e.ctrl=iv?nv.control:`Ctrl`,e.alt=iv?nv.option:`Alt`});function t(t){return[`meta`,`alt`,`ctrl`].includes(t)?e[t]:nv[t]||t}return{getKbdKey:t,IS_MACOS:iv}}),sv=/^[^-]+.*-.*[^-]+$/,cv=/^[^_]+.*_.*[^_]+$/,lv=/^[a-z]$/i,uv=/^\d$/,dv=/^f\d+$/i,fv=/^Key[A-Z]$/i,pv=/^[a-z]{1}$/i,mv=[`arrowleft`,`arrowright`,`arrowup`,`arrowright`,`tab`,`escape`,`enter`,`backspace`];function hv(e){return lv.test(e)?`Key${e.toUpperCase()}`:uv.test(e)?`Digit${e}`:dv.test(e)?e.toUpperCase():{arrowdown:`ArrowDown`,arrowleft:`ArrowLeft`,arrowright:`ArrowRight`,arrowup:`ArrowUp`,backspace:`Backspace`,delete:`Delete`,enter:`Enter`,escape:`Escape`,space:`Space`,tab:`Tab`}[e.toLowerCase()]||e}function gv(e,t={}){let n=(0,d.ref)([]);function r(){n.value.splice(0,n.value.length)}let i=(0,p.useDebounceFn)(r,t.chainDelay??800),{IS_MACOS:a}=ov(),o=(0,p.useActiveElement)(),s=t.layoutIndependent??!1,c=new Set(mv.map(e=>hv(e))),l=(0,d.computed)(()=>{let e=o.value?.tagName,t=o.value?.contentEditable;return e===`INPUT`||e===`TEXTAREA`||t===`true`||t===`plaintext-only`}),u=(0,d.computed)(()=>Object.entries((0,d.toValue)(e)).map(([e,t])=>{if(!t)return null;let n;e.includes(`-`)&&e!==`-`&&!e.includes(`_`)&&!e.match(sv)?.length&&console.warn(`[Shortcut] Invalid key: "${e}"`),e.includes(`_`)&&e!==`_`&&!e.match(cv)?.length&&console.warn(`[Shortcut] Invalid key: "${e}"`);let r=e.includes(`-`)&&e!==`-`&&!e.includes(`_`);if(r)n=s?{altKey:!1,ctrlKey:!1,key:e.split(`-`).map(e=>hv(e)).join(`-`),metaKey:!1,shiftKey:!1}:{altKey:!1,ctrlKey:!1,key:e.toLowerCase(),metaKey:!1,shiftKey:!1};else{let t=e.toLowerCase().split(`_`).map(e=>e),r=t.filter(e=>![`meta`,`command`,`ctrl`,`shift`,`alt`,`option`].includes(e)).join(`_`);s&&(r=hv(r)),n={altKey:t.includes(`alt`)||t.includes(`option`),ctrlKey:t.includes(`ctrl`),key:r,metaKey:t.includes(`meta`)||t.includes(`command`),shiftKey:t.includes(`shift`)}}if(n.chained=r,!a&&n.metaKey&&!n.ctrlKey&&(n.metaKey=!1,n.ctrlKey=!0),typeof t==`function`?n.handler=t:typeof t==`object`&&(n={...n,handler:t.handler}),!n.handler)return console.warn(`[Shortcut] Invalid value`),null;let i=!0,o=e.split(r?`-`:`_`)[0];return o===`meta`||o===`command`||(t.usingInput?typeof t.usingInput==`string`&&(i=l.value===t.usingInput):i=!l.value),n.enabled=i,n}).filter(Boolean));function f(e){if(!e.key)return;let t=s?fv.test(e.code):pv.test(e.key),a=s?c.has(e.code):mv.includes(e.key.toLowerCase()),o;if(n.value.push(s?e.code:e.key),n.value.length>=2){o=n.value.slice(-2).join(`-`);for(let t of u.value.filter(e=>e.chained))if(t.key===o){t.enabled&&t.handler(e),r();return}}for(let n of u.value.filter(e=>!e.chained)){if(s){if(e.code!==n.key)continue}else if(e.key.toLowerCase()!==n.key)continue;if(e.metaKey===n.metaKey&&e.ctrlKey===n.ctrlKey&&!((t||a)&&e.shiftKey!==n.shiftKey)){n.enabled&&n.handler(e),r();return}}i()}return(0,p.useEventListener)(`keydown`,f)}var _v=(0,d.defineComponent)({__name:`FormSubmitButton`,props:{disableKeyboardShortcut:{type:Boolean,default:!1},label:{},variant:{default:`primary`}},setup(e){let t=e,n={submit:{keys:[`meta`,`enter`],shortcutKey:`meta_enter`}},{formId:r,form:i}=F_();return gv({[n.submit.shortcutKey]:()=>{t.disableKeyboardShortcut||i.submit()}}),(e,a)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),(0,d.mergeProps)({"as-child":!0},t,{"is-loading":(0,d.unref)(i).isSubmitting.value,form:(0,d.unref)(r),type:`submit`}),{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`,{},()=>[(0,d.createVNode)((0,d.unref)(g_),{label:t.label,form:(0,d.unref)(r),variant:t.variant,"keyboard-shortcut-keys":t.disableKeyboardShortcut?null:n.submit.keys},null,8,[`label`,`form`,`variant`,`keyboard-shortcut-keys`])])]),_:3},16,[`is-loading`,`form`]))}}),vv=(0,d.defineComponent)({__name:`PopoverArrow`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.PopoverArrow),{class:`relative -mb-4 h-4 w-10 -translate-y-px overflow-hidden`,as:`div`},{default:(0,d.withCtx)(()=>[...t[0]||=[(0,d.createElementVNode)(`div`,{class:`absolute left-1/2 size-4 -translate-x-1/2 -translate-y-3 rotate-45 rounded-xxs border border-secondary bg-primary shadow-lg`},null,-1)]]),_:1}))}}),yv={class:`relative size-full overflow-hidden rounded-md border border-secondary bg-primary shadow-lg`},bv=(0,d.defineComponent)({__name:`Popover`,props:(0,d.mergeModels)((0,d.mergeDefaults)({disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{...Dr,disableSideFlip:!1,disableUpdateOnLayoutShift:!1,prioritizePosition:!1}),{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,d.mergeModels)([`autoFocusOnClose`,`escapeKeyDown`,`focusOutside`,`interactOutside`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`isOpen`);function a(e){r(`escapeKeyDown`,e)}function o(e){r(`focusOutside`,e)}function s(e){r(`interactOutside`,e)}function c(e){r(`autoFocusOnClose`,e)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.PopoverRoot),{open:i.value,"onUpdate:open":t[0]||=e=>i.value=e},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverAnchor),{"as-child":!0,reference:n.popoverAnchorReferenceElement??void 0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverTrigger),(0,d.mergeProps)({"as-child":!0},(0,d.toHandlers)(e.$attrs)),{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`trigger`)]),_:3},16)]),_:3},8,[`reference`]),(0,d.createVNode)((0,d.unref)(m.PopoverPortal),{to:`body`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Sr,{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverContent),{align:n.popoverAlign,"align-offset":n.popoverAlignOffset,"collision-padding":n.popoverCollisionPadding,"collision-boundary":n.popoverContainerElement,side:n.popoverSide,"side-offset":n.popoverSideOffset,class:(0,d.normalizeClass)([{"w-(--reka-popover-trigger-width)":n.popoverWidth===`anchor-width`,"w-(--reka-popover-content-available-width)":n.popoverWidth===`available-width`},`z-50 origin-(--reka-popover-content-transform-origin) will-change-[transform,opacity]`]),"prioritize-position":n.prioritizePosition,"data-animation":n.popoverAnimationName??`popover-default`,"disable-update-on-layout-shift":n.disableUpdateOnLayoutShift,"side-flip":!n.disableSideFlip,"position-strategy":`absolute`,sticky:`always`,onCloseAutoFocus:c,onEscapeKeyDown:a,onFocusOutside:o,onInteractOutside:s},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,yv,[(0,d.renderSlot)(e.$slots,`content`)]),n.isPopoverArrowVisible?((0,d.openBlock)(),(0,d.createBlock)(vv,{key:0})):(0,d.createCommentVNode)(``,!0)]),_:3},8,[`align`,`align-offset`,`collision-padding`,`collision-boundary`,`side`,`side-offset`,`class`,`prioritize-position`,`data-animation`,`disable-update-on-layout-shift`,`side-flip`])]),_:3})]),_:3})]),_:3},8,[`open`]))}});function xv(e){return e.map(e=>({type:`option`,value:e}))}function Sv(e,t){let n=(0,d.computed)(()=>{if(t.errorMessage===null&&t.hint===null)return;let n=[];return t.errorMessage!==null&&n.push(`${e}-error-message`),t.hint!==null&&n.push(`${e}-hint`),n.join(` `)}),r=(0,d.computed)(()=>t.errorMessage?`true`:void 0),i=(0,d.computed)(()=>t.isRequired?`true`:void 0),a=(0,d.computed)(()=>t.isLoading?`true`:void 0);return{isError:(0,d.computed)(()=>t.errorMessage!==void 0&&t.errorMessage!==null),ariaBusy:a,ariaDescribedBy:n,ariaInvalid:r,ariaRequired:i}}var Cv={isDisabled:!1,disabledReason:null},wv={...Cv,id:null,isReadonly:!1,isRequired:!1,name:null,class:null,style:null},Tv={...Cv,isHorizontal:!1,isLabelHidden:!1,isRequired:!1,errorMessage:null,for:null,helpText:null,hideErrorMessage:!1,hint:null,label:null},Ev={isDisabled:!1,isLoading:!1,isReadonly:!1,iconLeft:null,iconRight:null,placeholder:null},Dv={autocomplete:`off`};function Ov(e,...t){let n={...e};for(let e of t)delete n[e];return n}var[kv,Av]=L(`badgeContext`),jv=U({compoundVariants:[{class:{base:`
|
|
296
296
|
border-brand-400
|
|
297
297
|
dark:border-brand-600
|
|
298
298
|
`,dot:`bg-brand-500`,icon:`
|
|
@@ -352,19 +352,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
352
352
|
`,separator:`
|
|
353
353
|
bg-gray-400
|
|
354
354
|
dark:bg-gray-600
|
|
355
|
-
`},color:`gray`,variant:`outline`},{class:{base:`border-gray-500 bg-gray-500`,dot:`bg-white`,icon:`text-white`,label:`text-white`,separator:`bg-gray-500`},color:`gray`,variant:`solid`},{class:{base:`
|
|
356
|
-
border-gray-200 bg-gray-25
|
|
357
|
-
dark:border-gray-800 dark:bg-gray-950
|
|
358
|
-
`,dot:`bg-gray-500`,icon:`
|
|
359
|
-
text-gray-500
|
|
360
|
-
dark:text-gray-400
|
|
361
|
-
`,label:`
|
|
362
|
-
text-gray-700
|
|
363
|
-
dark:text-gray-300
|
|
364
|
-
`,separator:`
|
|
365
|
-
bg-gray-200
|
|
366
|
-
dark:bg-gray-800
|
|
367
|
-
`},color:`gray`,variant:`translucent`},{class:{base:`
|
|
355
|
+
`},color:`gray`,variant:`outline`},{class:{base:`border-gray-500 bg-gray-500`,dot:`bg-white`,icon:`text-white`,label:`text-white`,separator:`bg-gray-500`},color:`gray`,variant:`solid`},{class:{base:`border-fg-primary/5 bg-fg-primary/5`,dot:`bg-fg-primary/85`,icon:`text-fg-primary/85`,label:`text-fg-primary/85`,separator:`bg-fg-primary/85`},color:`gray`,variant:`translucent`},{class:{base:`
|
|
368
356
|
border-success-400
|
|
369
357
|
dark:border-success-600
|
|
370
358
|
`,dot:`bg-success-500`,icon:`
|
|
@@ -508,27 +496,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
508
496
|
`,separator:`
|
|
509
497
|
bg-warning-200
|
|
510
498
|
dark:bg-warning-800
|
|
511
|
-
`},color:`warning`,variant:`translucent`}],slots:{base:`inline-flex items-center gap-sm border`,dot:`rounded-full`,icon:``,label:`font-medium`,separator:`mx-xs`},variants:{size:{lg:{base:`h-7 px-sm`,dot:`size-1.5`,icon:`size-4`,label:`text-xs`},md:{base:`h-6 px-sm`,dot:`size-1.5`,icon:`size-3`,label:`text-xxs`},sm:{base:`h-5 px-xs`,dot:`size-1`,icon:`size-3`,label:`text-xxs`}},color:{blue:{},brand:{},error:{},gray:{},moss:{},pink:{},purple:{},success:{},warning:{}},variant:{outline:{base:`bg-transparent`},solid:{},translucent:{}},rounded:{default:{base:`rounded-sm`},full:{base:`rounded-full`}}}}),Mv=(0,d.defineComponent)({__name:`BadgeAvatar`,props:{name:{},src:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),{name:t.name,src:t.src??null,size:`xxs`},null,8,[`name`,`src`]))}}),Nv=(0,d.defineComponent)({__name:`BadgeDot`,setup(e){let{effectiveDotColor:t,size:n}=Av(),r=(0,d.computed)(()=>t.value),i=(0,d.computed)(()=>n.value===`sm`?`sm`:`md`);return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(no),{color:r.value,size:i.value},null,8,[`color`,`size`]))}}),Pv=(0,d.defineComponent)({__name:`BadgeIcon`,props:{icon:{}},setup(e){let t=e,{variants:n}=Av(),r=(0,d.useAttrs)();return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{class:(0,d.normalizeClass)([(0,d.unref)(n).icon({class:(0,d.unref)(r).class})])},null,8,[`class`]))}}),Fv=(0,d.defineComponent)({__name:`BadgeLabel`,props:{label:{}},setup(e){let t=e,{variants:n}=Av();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{text:t.label,class:(0,d.normalizeClass)((0,d.unref)(n).label())},null,8,[`text`,`class`]))}})
|
|
499
|
+
`},color:`warning`,variant:`translucent`}],slots:{actionsButton:``,actionsIcon:``,base:`group inline-flex items-center gap-sm overflow-hidden border`,dot:`rounded-full`,icon:``,label:`font-medium`,separator:`mx-xs`},variants:{size:{lg:{actionsButton:`mr-xs p-xxs`,actionsIcon:`size-3.5`,base:`h-7 px-sm`,dot:`size-1.5`,icon:`size-4`,label:`text-xs`},md:{actionsButton:`mr-xs p-xxs`,actionsIcon:`size-3`,base:`h-6 px-sm`,dot:`size-1.5`,icon:`size-3`,label:`text-xxs`},sm:{actionsButton:`mr-xxs p-xxs`,actionsIcon:`size-2.5`,base:`h-5 px-xs`,dot:`size-1`,icon:`size-3`,label:`text-xxs`}},color:{blue:{},brand:{},error:{},gray:{},moss:{},pink:{},purple:{},success:{},warning:{}},variant:{outline:{base:`bg-transparent`},solid:{},translucent:{}},rounded:{default:{base:`rounded-sm`},full:{base:`rounded-full`}}}}),Mv=(0,d.defineComponent)({__name:`BadgeAvatar`,props:{name:{},src:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),{name:t.name,src:t.src??null,size:`xxs`},null,8,[`name`,`src`]))}}),Nv=(0,d.defineComponent)({__name:`BadgeDot`,setup(e){let{effectiveDotColor:t,size:n}=Av(),r=(0,d.computed)(()=>t.value),i=(0,d.computed)(()=>n.value===`sm`?`sm`:`md`);return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(no),{color:r.value,size:i.value},null,8,[`color`,`size`]))}}),Pv=(0,d.defineComponent)({__name:`BadgeIcon`,props:{icon:{}},setup(e){let t=e,{variants:n}=Av(),r=(0,d.useAttrs)();return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{class:(0,d.normalizeClass)([(0,d.unref)(n).icon({class:(0,d.unref)(r).class})])},null,8,[`class`]))}}),Fv=(0,d.defineComponent)({__name:`BadgeLabel`,props:{label:{}},setup(e){let t=e,{variants:n}=Av();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{text:t.label,class:(0,d.normalizeClass)((0,d.unref)(n).label())},null,8,[`text`,`class`]))}}),$=(0,d.defineComponent)({__name:`ClickableElement`,props:{isDefaultCursor:{type:Boolean,default:!1},class:{default:``}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),{"as-child":!0,class:(0,d.normalizeClass)((0,d.unref)(ya)(`
|
|
512
500
|
rounded-sm outline-2 outline-transparent
|
|
513
501
|
focus-visible:outline-fg-brand-primary
|
|
514
502
|
disabled:cursor-not-allowed
|
|
515
|
-
`,t.class))},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),Gv=va({extend:{theme:{spacing:[`none`,`xxs`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`,`10xl`,`11xl`]}}}),Kv={tabindex:`0`,"aria-label":`Help`,class:`ml-xs inline-flex items-center`},qv=W((0,d.defineComponent)({__name:`InputWrapperLabel`,props:{isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},isRequired:{type:Boolean},for:{},helpText:{},label:{}},setup(e){let t=e;return(e,n)=>t.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,class:(0,d.normalizeClass)([{"pb-xs":!t.isHorizontal},t.isLabelHidden&&`sr-only`]),gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`,{},void 0,!0),(0,d.createVNode)((0,d.unref)(G),{for:t.for??void 0,text:t.label,class:(0,d.normalizeClass)((0,d.unref)(Gv)(`text-xs font-medium text-secondary`,t.isRequired?`after:pl-xxs after:text-error-primary`:``)),"data-label-required":t.isRequired?``:null,as:`label`},null,8,[`for`,`text`,`class`,`data-label-required`]),t.helpText!==void 0&&t.helpText!==null?((0,d.openBlock)(),(0,d.createBlock)(K,{key:0,label:t.helpText},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,{"is-default-cursor":!0},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,Kv,[(0,d.createVNode)((0,d.unref)(Fn),{class:`size-3.5 shrink-0 text-fg-quaternary`})])]),_:1})]),_:1},8,[`label`])):(0,d.createCommentVNode)(``,!0),(0,d.renderSlot)(e.$slots,`right`,{},void 0,!0)]),_:3},8,[`class`]))}}),[[`__scopeId`,`data-v-aa6c5faa`]]),Jv={key:0},Yv=(0,d.defineComponent)({inheritAttrs:!1,__name:`InputWrapper`,props:(0,d.mergeDefaults)({isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},isRequired:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isDisabled:{type:Boolean},disabledReason:{}},{...Tv}),setup(e){let t=e,n=(0,d.useAttrs)();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)(K,{"is-disabled":!t.isDisabled||t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[t.isHorizontal?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,(0,d.normalizeProps)((0,d.mergeProps)({key:0},(0,d.unref)(n))),[(0,d.createVNode)(R,{align:`start`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{class:`h-4.5`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}),(0,d.createVNode)((0,d.unref)(q),{gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(qv,{label:t.label,for:t.for,"is-required":t.isRequired,"is-horizontal":t.isHorizontal,"is-label-hidden":t.isLabelHidden,"help-text":t.helpText},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),_:3},8,[`label`,`for`,`is-required`,`is-horizontal`,`is-label-hidden`,`help-text`]),t.hint!==null||t.errorMessage!==null&&!t.hideErrorMessage?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Jv,[(0,d.createVNode)(Wv,{hint:t.hint,for:t.for},null,8,[`hint`,`for`]),t.hideErrorMessage?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Uv,{key:0,"error-message":t.errorMessage,for:t.for},null,8,[`error-message`,`for`]))])):(0,d.createCommentVNode)(``,!0)]),_:3})]),_:3})],16)):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,(0,d.normalizeProps)((0,d.mergeProps)({key:1},(0,d.unref)(n))),[(0,d.createVNode)(qv,{label:t.label,for:t.for,"is-required":t.isRequired,"is-label-hidden":t.isLabelHidden,"help-text":t.helpText},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),_:3},8,[`label`,`for`,`is-required`,`is-label-hidden`,`help-text`]),(0,d.renderSlot)(e.$slots,`default`),(0,d.createVNode)(Wv,{hint:t.hint,for:t.for},null,8,[`hint`,`for`]),t.hideErrorMessage?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Uv,{key:0,"error-message":t.errorMessage,for:t.for},null,8,[`error-message`,`for`]))],16))]),_:3},8,[`is-disabled`,`label`]))}});function Xv(e,t){function n(e){return Array.isArray(e)}return{isMultiple:n,selectedOptions:(0,d.computed)(()=>n(e.value)?e.value.map(e=>({type:`option`,value:e})):e.value===null?[]:[{type:`option`,value:e.value}]),valueLabel:(0,d.computed)(()=>e.value===null?null:n(e.value)?e.value.length===1?t(e.value[0]):`${e.value.length} selected`:t(e.value))}}function Zv(){let e=(0,d.ref)(!1);function t(){e.value=!0}function n(){e.value=!1}function r(n){(n.key===`ArrowUp`||n.key===`ArrowDown`)&&!e.value&&t(),n.key.length===1&&n.key!==` `&&!e.value&&t()}return{isDropdownVisible:e,closeDropdown:n,openDropdown:t,onTriggerKeyDown:r}}var Qv={class:`relative flex size-full flex-col overflow-hidden`},$v={key:0,class:`pointer-events-none absolute top-0 z-1 h-8 w-full bg-linear-to-b from-primary to-transparent`},ey={key:1,class:`pointer-events-none absolute bottom-0 z-1 h-8 w-full bg-linear-to-t from-primary to-transparent`},ty=(0,d.defineComponent)({inheritAttrs:!1,__name:`Scrollable`,props:{as:{default:`div`},distance:{default:250},onNext:{}},setup(e){let t=e,n=(0,d.useAttrs)(),r=(0,d.useTemplateRef)(`scrollable`),i=(0,d.ref)(!1),a=(0,d.ref)(!1);(0,p.useInfiniteScroll)((0,d.computed)(()=>r.value?.$el??null),async()=>{await t.onNext?.()},{distance:t.distance}),(0,p.useMutationObserver)((0,d.computed)(()=>r.value?.$el??null),o,{childList:!0,subtree:!0});function o(){let e=r.value?.$el??null;if(e===null){i.value=!1,a.value=!1;return}i.value=e.scrollTop>0,a.value=e.scrollHeight-e.clientHeight-e.scrollTop>0}(0,d.watch)(()=>r.value?.$el??null,e=>{e!==null&&requestAnimationFrame(o)},{immediate:!0});function s(){o()}return(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Qv,[i.value?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,$v)):(0,d.createCommentVNode)(``,!0),a.value?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,ey)):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(m.Primitive),(0,d.mergeProps)({ref:`scrollable`},(0,d.unref)(n),{as:t.as,class:`overflow-auto`,onScroll:s}),{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},16,[`as`])]))}});function ny(){return Math.random().toString(36).substring(2,15)}function ry(e,t,n,r){let i=(0,d.ref)([]),a=(0,d.computed)(()=>e.value.map(e=>({...e,key:ny()})).sort((e,t)=>{let n=r(e.value),i=r(t.value);return n.localeCompare(i)}));function o(t){return t.filter(t=>t.type===`option`?!e.value.some(e=>JSON.stringify(e.value)===JSON.stringify(t.value)):!0).map(e=>(e.type,{...e,key:ny()}))}function s(){return{key:ny(),type:`separator`}}function c(t){return t.sort((t,n)=>{if(t.type!==`option`||n.type!==`option`)return 0;let r=e.value.some(e=>JSON.stringify(e.value)===JSON.stringify(t.value)),i=e.value.some(e=>JSON.stringify(e.value)===JSON.stringify(n.value));return r&&!i?-1:!r&&i?1:0})}function l(r){let l=t.value?r:r.filter(e=>e.type!==`separator`),u=o(l);if(t.value&&n&&a.value.length>0&&u.length>0){i.value=[...a.value,s(),...u];return}let d=[];d=t.value&&n&&e.value.length>0?e.value:l;let f=d.map(e=>(e.type,{...e,key:ny()}));if(n){i.value=c(f);return}i.value=f}return{createDisplayItemList:l,displayItems:i}}function iy(){let e=(0,d.ref)(``),t=(0,d.ref)(e.value),n=(0,d.computed)(()=>t.value.trim()===``);return(0,p.watchDebounced)(e,e=>{t.value=e},{debounce:100}),{isSearchEmpty:n,debouncedSearch:t,search:e}}var[ay,oy]=L(`selectContext`),sy=class{static format(e,t=0){return new Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e)}static randomBetween(e,t){return Math.floor(Math.random()*(t-e+1))+e}},cy=(0,d.defineComponent)({__name:`SelectLoading`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{gap:`xs`,class:`py-xs`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(3,e=>(0,d.createElementVNode)(`div`,{key:e,class:`h-6 w-full p-sm`},[((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(J),{key:e,style:(0,d.normalizeStyle)({width:`${(0,d.unref)(sy).randomBetween(40,80)}%`}),animate:!0,class:`h-3`},null,8,[`style`]))])),64))]),_:1}))}});function ly(e,t){let n=(0,d.ref)(``),{contains:r}=(0,m.useFilter)({sensitivity:`base`});function i(e){n.value=e}return{locallyFilteredItems:(0,d.computed)(()=>e.value.filter(e=>n.value.trim().length===0||e.type!==`option`?!0:r(t(e.value),n.value))),localSearch:n,onSearchLocally:i}}var uy=(0,d.defineComponent)({__name:`SelectOption`,props:{label:{},value:{}},setup(e){let t=e,{getItemConfig:n,size:r,onSelectOption:i}=oy();return(e,a)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxItem),{value:t.value,class:`group/listbox-item relative z-2 flex w-full cursor-default items-center rounded-sm outline-none hover:bg-secondary-hover data-highlighted:bg-secondary-hover`,onSelect:(0,d.unref)(i)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(fo),{config:(0,d.unref)(n)?.(t.value)??null,label:t.label,size:(0,d.unref)(r)},{right:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ListboxItemIndicator),null,{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)((0,d.unref)(Wt)),{class:`size-3.5 text-tertiary`}))]),_:1})]),_:1},8,[`config`,`label`,`size`])]),_:1},8,[`value`,`onSelect`]))}}),dy={key:0,class:`p-xs pb-none`},fy=9,py=(0,d.defineComponent)({__name:`SelectContent`,props:(0,d.mergeModels)({displayFn:{},hasVirtualScroll:{type:[Boolean,null],default:!1},isLoading:{type:Boolean,default:!1},items:{},limit:{default:null},search:{default:null},contentWidthClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`nextPage`,`update:search`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),{getItemConfig:a,size:o}=oy(),s=(0,d.useModel)(e,`modelValue`),{isMultiple:c,selectedOptions:l}=Xv(s,n.displayFn),{locallyFilteredItems:u,localSearch:f,onSearchLocally:p}=ly((0,d.computed)(()=>n.items),n.displayFn),{debouncedSearch:g,search:_}=iy(),{createDisplayItemList:v,displayItems:y}=ry(l,(0,d.computed)(()=>n.search===`local`?f.value===``:_.value===``),c(s.value),n.displayFn),b=(0,d.computed)(()=>n.search===`local`?f.value:_.value);function x(e){let t=y.value[e]??null;if(t===null)throw Error(`item does not exist`);if(t.type===`separator`)return fy;let n=a?.(t.value)??null;return n===null?o.value===`sm`?28:32:n.description?.layout===`block`?50:32}function S(e){n.search===`local`?p(e):_.value=e}return n.search===`remote`?(0,d.watch)(()=>n.items,e=>{v(e)},{immediate:!0}):(0,d.watch)(u,e=>{v(e)},{immediate:!0}),(0,d.watch)(g,e=>{r(`update:search`,e)}),(0,d.onBeforeUnmount)(()=>{r(`update:search`,``)}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxRoot),{modelValue:s.value,"onUpdate:modelValue":t[1]||=e=>s.value=e,"highlight-on-hover":!0,multiple:(0,d.unref)(c)(s.value),"selection-behavior":(0,d.unref)(c)(s.value)?`toggle`:`replace`,class:(0,d.normalizeClass)([n.contentWidthClass,`flex max-h-[min(var(--reka-popover-content-available-height),32rem)] flex-col overflow-hidden`])},{default:(0,d.withCtx)(()=>[n.search===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,dy,[(0,d.createVNode)((0,d.unref)(m.ListboxFilter),{"model-value":b.value,placeholder:(0,d.unref)(i).t(`component.autocomplete.search_placeholder`),class:`h-7 w-full rounded-sm bg-secondary px-md text-xs text-primary outline-none`,"onUpdate:modelValue":S},null,8,[`model-value`,`placeholder`])])),(0,d.createVNode)(ty,{as:(0,d.unref)(m.ListboxContent),style:(0,d.normalizeStyle)(n.hasVirtualScroll?`max-height: min(var(--reka-popover-content-available-height, 32rem), 32rem)`:void 0),class:`p-xs`,onNext:t[0]||=e=>r(`nextPage`)},{default:(0,d.withCtx)(()=>[n.hasVirtualScroll?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxVirtualizer),{key:0,options:(0,d.unref)(y),overscan:5,"estimate-size":x,"text-content":e=>e.type===`option`?n.displayFn(e.value):``},{default:(0,d.withCtx)(({option:e})=>[e.type===`option`?((0,d.openBlock)(),(0,d.createBlock)(uy,{key:0,label:n.displayFn(e.value),value:e.value},null,8,[`label`,`value`])):e.type===`separator`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:1,class:`my-xs`})):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`options`,`text-content`])):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(y),e=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:e.key},[e.type===`option`?((0,d.openBlock)(),(0,d.createBlock)(uy,{key:0,label:n.displayFn(e.value),value:e.value},null,8,[`label`,`value`])):e.type===`separator`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:1,class:`my-xs`})):(0,d.createCommentVNode)(``,!0)],64))),128)),n.isLoading&&(0,d.unref)(y).length===0?((0,d.openBlock)(),(0,d.createBlock)(cy,{key:0})):(0,d.createCommentVNode)(``,!0),n.items.length===n.limit?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:1,text:(0,d.unref)(i).t(`component.autocomplete.more_results_available`),truncate:!1,class:`block px-md pt-xs pb-sm text-xxs text-disabled`},null,8,[`text`])):(0,d.createCommentVNode)(``,!0)],64)),(0,d.unref)(y).length===0?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:2,text:(0,d.unref)(i).t(`component.autocomplete.no_results_found`),class:`block px-md pt-xs pb-sm text-xs text-disabled`},null,8,[`text`])):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`as`,`style`])]),_:1},8,[`modelValue`,`multiple`,`selection-behavior`,`class`]))}}),my=(0,d.defineComponent)({__name:`SelectDropdown`,props:(0,d.mergeModels)((0,d.mergeDefaults)({hasVirtualScroll:{type:[Boolean,null]},contentWidthClass:{},displayFn:{type:Function},getItemConfig:{type:[Function,null]},items:{},keepDropdownOpenOnSelect:{type:[Boolean,null]},limit:{},search:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},placeholder:{},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{...wv,...Tv,...Ov(Ev,`iconRight`),...Dv,disableSideFlip:!0,keepDropdownOpenOnSelect:null,limit:null,popoverAlign:`center`,popoverCollisionPadding:8,popoverSide:`bottom`,popoverSideOffset:4,popoverWidth:`anchor-width`,prioritizePosition:!0,search:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`,`nextPage`,`update:search`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),{isMultiple:a}=Xv(i,n.displayFn),{isDropdownVisible:o,onTriggerKeyDown:s}=Zv();function c(){if(n.keepDropdownOpenOnSelect!==!0){if(n.keepDropdownOpenOnSelect===!1){o.value=!1;return}a(i.value)||(o.value=!1)}}function l(){r(`blur`)}function u(e){e||l()}return(0,d.watch)(o,u),ay({getItemConfig:n.getItemConfig??null,size:(0,d.computed)(()=>n.size),onSelectOption:c}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(bv,{"is-open":(0,d.unref)(o),"onUpdate:isOpen":t[3]||=e=>(0,d.isRef)(o)?o.value=e:null,"popover-side-offset":4,"popover-animation-name":n.popoverAnimationName,"popover-align":n.popoverAlign,"popover-align-offset":n.popoverAlignOffset,"popover-anchor-reference-element":n.popoverAnchorReferenceElement,"popover-collision-padding":n.popoverCollisionPadding,"popover-container-element":n.popoverContainerElement,"popover-side":n.popoverSide,"popover-width":n.popoverWidth,"is-popover-arrow-visible":n.isPopoverArrowVisible,"disable-update-on-layout-shift":n.disableUpdateOnLayoutShift,"prioritize-position":n.prioritizePosition,"disable-side-flip":n.disableSideFlip,onKeydown:(0,d.unref)(s)},{trigger:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`trigger`,{isOpen:(0,d.unref)(o)})]),content:(0,d.withCtx)(()=>[(0,d.createVNode)(py,(0,d.mergeProps)(e.$attrs,{modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,"is-loading":n.isLoading,search:n.search,"display-fn":n.displayFn,items:n.items,limit:n.limit,"has-virtual-scroll":n.hasVirtualScroll,"content-width-class":n.contentWidthClass,onNextPage:t[1]||=e=>r(`nextPage`),"onUpdate:search":t[2]||=e=>r(`update:search`,e)}),null,16,[`modelValue`,`is-loading`,`search`,`display-fn`,`items`,`limit`,`has-virtual-scroll`,`content-width-class`])]),_:3},8,[`is-open`,`popover-animation-name`,`popover-align`,`popover-align-offset`,`popover-anchor-reference-element`,`popover-collision-padding`,`popover-container-element`,`popover-side`,`popover-width`,`is-popover-arrow-visible`,`disable-update-on-layout-shift`,`prioritize-position`,`disable-side-flip`,`onKeydown`]))}}),hy=[`id`,`disabled`,`aria-expanded`,`aria-busy`,`aria-describedby`,`aria-invalid`,`aria-required`,`aria-controls`],gy={class:`sr-only`},_y=(0,d.defineComponent)({inheritAttrs:!1,__name:`Select`,props:(0,d.mergeModels)((0,d.mergeDefaults)({hasVirtualScroll:{type:[Boolean,null]},contentWidthClass:{},displayFn:{type:Function},getItemConfig:{type:[Function,null]},items:{},keepDropdownOpenOnSelect:{type:[Boolean,null]},limit:{},search:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},placeholder:{},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{...wv,...Tv,...Ov(Ev,`iconRight`),...Dv,disableSideFlip:!0,keepDropdownOpenOnSelect:null,limit:null,popoverAlign:`center`,popoverCollisionPadding:8,popoverSide:`bottom`,popoverSideOffset:4,popoverWidth:`anchor-width`,prioritizePosition:!0,search:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`,`nextPage`,`update:search`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),a=n.id??(0,d.useId)(),o=(0,d.useAttrs)(),{isMultiple:s,valueLabel:c}=Xv(i,n.displayFn),{isError:l,ariaBusy:u,ariaDescribedBy:f,ariaInvalid:p,ariaRequired:m}=Sv(a,n),h=(0,d.computed)(()=>s(i.value)?i.value.map(e=>{let t=n.getItemConfig?.(e)??null;return{avatar:t?.left?.type===`avatar`?{name:t.left.name,src:t.left.src??null}:null,dot:t?.left?.type===`dot`?{color:t.left.color??`gray`}:null,icon:t?.left?.type===`icon`?t.left.icon:null,label:n.displayFn(e)}}):[]),g=(0,d.computed)(()=>s(i.value)||i.value===null?null:n.getItemConfig?.(i.value)??null);return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Yv,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,"help-text":n.helpText,label:n.label,class:(0,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),"is-label-hidden":n.isLabelHidden,for:(0,d.unref)(a),"hide-error-message":n.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)(Vv,{"icon-left":n.iconLeft,"icon-right":(0,d.unref)(Jt),"is-loading":n.isLoading,"is-error":(0,d.unref)(l),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly,size:n.size},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{class:(0,d.normalizeClass)([{"px-md":n.size===`md`,"px-sm":n.size===`sm`},`size-full overflow-hidden text-left`])},{default:(0,d.withCtx)(()=>[((0,d.unref)(s)(i.value)?i.value.length>0:i.value!==null)?(0,d.renderSlot)(e.$slots,`value`,{key:0},()=>[(0,d.unref)(s)(i.value)?((0,d.openBlock)(),(0,d.createBlock)(Rv,{key:0,badges:h.value,class:`-ml-[0.3rem] w-full`,size:`sm`,color:`gray`,variant:`translucent`},null,8,[`badges`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:1,align:`center`},{default:(0,d.withCtx)(()=>[g.value?.left?.type===`avatar`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),{key:0,name:g.value.left.name,src:g.value.left.src,"image-alt":g.value.left.imageAlt,size:`xxs`},null,8,[`name`,`src`,`image-alt`])):g.value?.left?.type===`icon`?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(g.value.left.icon),{key:1,class:`size-3.5 shrink-0 text-tertiary`})):g.value?.left?.type===`dot`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(no),{key:2,color:g.value.left.color},null,8,[`color`])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(G),{text:(0,d.unref)(c),class:(0,d.normalizeClass)([{"text-disabled":n.isDisabled,"text-primary":!n.isDisabled},`text-xs font-medium`])},null,8,[`text`,`class`])]),_:1}))]):n.placeholder===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:1,text:n.placeholder,class:`text-xs text-disabled`},null,8,[`text`]))]),_:3},8,[`class`]),(0,d.createVNode)(my,(0,d.mergeProps)({modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e},n,{"content-width-class":n.contentWidthClass,onBlur:t[1]||=e=>r(`blur`),onNextPage:t[2]||=e=>r(`nextPage`),"onUpdate:search":t[3]||=e=>r(`update:search`,e)}),{trigger:(0,d.withCtx)(({isOpen:e})=>[(0,d.createElementVNode)(`button`,(0,d.mergeProps)((0,d.unref)(o),{id:(0,d.unref)(a),disabled:n.isDisabled,"aria-expanded":e,"aria-busy":(0,d.unref)(u),"aria-describedby":(0,d.unref)(f),"aria-invalid":(0,d.unref)(p),"aria-required":(0,d.unref)(m),"aria-controls":`${(0,d.unref)(a)}-listbox`,role:`combobox`,class:`absolute inset-0 size-full outline-none disabled:cursor-not-allowed`,"data-field-wrapper":``}),[(0,d.createElementVNode)(`span`,gy,(0,d.toDisplayString)((0,d.unref)(c)),1)],16,hy)]),_:1},16,[`modelValue`,`content-width-class`])]),_:3},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`,`help-text`,`label`,`class`,`style`,`is-label-hidden`,`for`,`hide-error-message`]))}}),vy=Object.defineProperty,yy=(e,t,n)=>t in e?vy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,by=(e,t,n)=>yy(e,typeof t==`symbol`?t:t+``,n),xy={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Sy=(e,t,n)=>e.replaceAll(t,``).replace(n,`.`).replace(`..`,`.`).replace(/[^.\d]/g,``),Cy=(e,t,n)=>new Intl.NumberFormat(n.number?.locale??`en`,{minimumFractionDigits:e,maximumFractionDigits:t,roundingMode:`trunc`}),wy=(e,t=!0,n)=>{let r=n.number?.unsigned!==!0&&e.startsWith(`-`)?`-`:``,i=n.number?.fraction??0,a=Cy(0,i,n),o=a.formatToParts(1000.12),s=o.find(e=>e.type===`group`)?.value??` `,c=o.find(e=>e.type===`decimal`)?.value??`.`,l=Sy(e,s,c);if(Number.isNaN(parseFloat(l)))return r;let u=l.split(`.`);u[1]!=null&&u[1].length>=1&&(a=Cy(u[1].length<=i?u[1].length:i,i,n));let d=a.format(parseFloat(l));return t?i>0&&l.endsWith(`.`)&&!l.slice(0,-1).includes(`.`)&&(d+=c):d=Sy(d,s,c),r+d},Ty=e=>JSON.parse(e.replaceAll(`'`,`"`)),Ey=(e,t={})=>{let n={...t};e.dataset.maska!=null&&e.dataset.maska!==``&&(n.mask=Oy(e.dataset.maska)),e.dataset.maskaEager!=null&&(n.eager=Dy(e.dataset.maskaEager)),e.dataset.maskaReversed!=null&&(n.reversed=Dy(e.dataset.maskaReversed)),e.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Dy(e.dataset.maskaTokensReplace)),e.dataset.maskaTokens!=null&&(n.tokens=ky(e.dataset.maskaTokens));let r={};return e.dataset.maskaNumberLocale!=null&&(r.locale=e.dataset.maskaNumberLocale),e.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(e.dataset.maskaNumberFraction)),e.dataset.maskaNumberUnsigned!=null&&(r.unsigned=Dy(e.dataset.maskaNumberUnsigned)),(e.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},Dy=e=>e===``?!0:!!JSON.parse(e),Oy=e=>e.startsWith(`[`)&&e.endsWith(`]`)?Ty(e):e,ky=e=>{if(e.startsWith(`{`)&&e.endsWith(`}`))return Ty(e);let t={};return e.split(`|`).forEach(e=>{let n=e.split(`:`);t[n[0]]={pattern:Ay()?new RegExp(n[1],`u`):new RegExp(n[1]),optional:n[2]===`optional`,multiple:n[2]===`multiple`,repeated:n[2]===`repeated`}}),t},Ay=()=>{try{return!0}catch{return!1}},jy=class{constructor(e={}){by(this,`opts`,{}),by(this,`memo`,new Map);let t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...xy,...t.tokens};for(let e of Object.values(t.tokens))typeof e.pattern==`string`&&(e.pattern=Ay()?new RegExp(e.pattern,`u`):new RegExp(e.pattern))}else t.tokens=xy;Array.isArray(t.mask)&&(t.mask.length>1?t.mask=[...t.mask].sort((e,t)=>e.length-t.length):t.mask=t.mask[0]??``),t.mask===``&&(t.mask=null),this.opts=t}masked(e){return this.process(String(e),this.findMask(String(e)))}unmasked(e){return this.process(String(e),this.findMask(String(e)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){let t=this.findMask(String(e));if(this.opts.mask==null||t==null)return!1;let n=this.process(String(e),t).length;return typeof this.opts.mask==`string`?n>=this.opts.mask.length:n>=t.length}findMask(e){let t=this.opts.mask;if(t==null)return null;if(typeof t==`string`)return t;if(typeof t==`function`)return t(e);let n=this.process(e,t.slice(-1).pop()??``,!1);return t.find(t=>this.process(e,t,!1).length>=n.length)??``}escapeMask(e){let t=[],n=[];return e.split(``).forEach((r,i)=>{r===`!`&&e[i-1]!==`!`?n.push(i-n.length):t.push(r)}),{mask:t.join(``),escaped:n}}process(e,t,n=!0){if(this.opts.number!=null)return wy(e,n,this.opts);if(t==null)return e;let r=`v=${e},mr=${t},m=${+!!n}`;if(this.memo.has(r))return this.memo.get(r);let{mask:i,escaped:a}=this.escapeMask(t),o=[],s=this.opts.tokens==null?{}:this.opts.tokens,c=this.isReversed()?-1:1,l=this.isReversed()?`unshift`:`push`,u=this.isReversed()?0:i.length-1,d=this.isReversed()?()=>h>-1&&g>-1:()=>h<i.length&&g<e.length,f=e=>!this.isReversed()&&e<=u||this.isReversed()&&e>=u,p,m=-1,h=this.isReversed()?i.length-1:0,g=this.isReversed()?e.length-1:0,_=!1;for(;d();){let t=i.charAt(h),r=s[t],d=r?.transform==null?e.charAt(g):r.transform(e.charAt(g));if(!a.includes(h)&&r!=null?(d.match(r.pattern)==null?r.multiple?_&&=(h+=c,g-=c,!1):d===p?p=void 0:r.optional&&(h+=c,g-=c):(o[l](d),r.repeated?(m===-1?m=h:h===u&&h!==m&&(h=m-c),u===m&&(h-=c)):r.multiple&&(_=!0,h-=c),h+=c),g+=c):(n&&!this.isEager()&&o[l](t),d===t&&!this.isEager()?g+=c:p=t,this.isEager()||(h+=c)),this.isEager())for(;f(h)&&(s[i.charAt(h)]==null||a.includes(h));){if(n){if(o[l](i.charAt(h)),e.charAt(g)===i.charAt(h)){h+=c,g+=c;continue}}else i.charAt(h)===e.charAt(g)&&(g+=c);h+=c}}return this.memo.set(r,o.join(``)),this.memo.get(r)}},My=class{constructor(e,t={}){by(this,`items`,new Map),by(this,`eventAbortController`),by(this,`onInput`,e=>{if(e instanceof CustomEvent&&e.type===`input`&&!e.isTrusted&&!e.bubbles)return;let t=e.target,n=this.items.get(t);if(n===void 0)return;let r=`inputType`in e&&e.inputType.startsWith(`delete`),i=n.isEager(),a=r&&i&&n.unmasked(t.value)===``?``:t.value;this.fixCursor(t,r,()=>this.setValue(t,a))}),this.options=t,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){e.value!==``&&e.value!==this.processInput(e)?.masked&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){let t=this.getOptions(this.options);for(let n of e){if(!this.items.has(n)){let{signal:e}=this.eventAbortController;n.addEventListener(`input`,this.onInput,{capture:!0,signal:e})}let e=new jy(Ey(n,t));this.items.set(n,e),queueMicrotask(()=>this.updateValue(n)),n.selectionStart===null&&e.isEager()&&console.warn("Maska: input of `%s` type is not supported",n.type)}}getInputs(e){return typeof e==`string`?Array.from(document.querySelectorAll(e)):`length`in e?Array.from(e):[e]}getOptions(e){let{onMaska:t,preProcess:n,postProcess:r,...i}=e;return i}fixCursor(e,t,n){let r=e.selectionStart,i=e.value;if(n(),r===null||r===i.length&&!t)return;let a=e.value,o=i.slice(0,r),s=a.slice(0,r),c=this.processInput(e,o)?.unmasked,l=this.processInput(e,s)?.unmasked;if(c===void 0||l===void 0)return;let u=r;o!==s&&(u+=t?a.length-i.length:c.length-l.length),e.setSelectionRange(u,u)}setValue(e,t){let n=this.processInput(e,t);n!==void 0&&(e.value=n.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(e=>e(n)):this.options.onMaska(n)),e.dispatchEvent(new CustomEvent(`maska`,{detail:n})),e.dispatchEvent(new CustomEvent(`input`,{detail:n.masked})))}processInput(e,t){let n=this.items.get(e);if(n===void 0)return;let r=t??e.value;this.options.preProcess!=null&&(r=this.options.preProcess(r));let i=n.masked(r);return this.options.postProcess!=null&&(i=this.options.postProcess(i)),{masked:i,unmasked:n.unmasked(r),completed:n.completed(r)}}},Ny=new WeakMap,Py=(e,t)=>{if(e.arg==null||e.instance==null)return;let n=`setup`in e.instance.$.type;e.arg in e.instance?e.instance[e.arg]=t:n&&console.warn("Maska: please expose `%s` using defineExpose",e.arg)},Fy=(e,t)=>{var n;let r=e instanceof HTMLInputElement?e:e.querySelector(`input`);if(r==null||r?.type===`file`)return;let i={};if(t.value!=null&&(i=typeof t.value==`string`?{mask:t.value}:{...t.value}),t.arg!=null){let e=e=>{Py(t,t.modifiers.unmasked?e.unmasked:t.modifiers.completed?e.completed:e.masked)};i.onMaska=i.onMaska==null?e:Array.isArray(i.onMaska)?[...i.onMaska,e]:[i.onMaska,e]}Ny.has(r)?(n=Ny.get(r))==null||n.update(i):Ny.set(r,new My(r,i))},Iy=U({slots:{input:`
|
|
503
|
+
`,t.class))},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),Iv={key:1,class:`absolute inset-0 flex items-center justify-end bg-linear-to-l from-primary via-primary via-30% opacity-0 transition-opacity duration-100 group-focus-within:opacity-100 group-hover:opacity-100 pointer-coarse:opacity-100`},Lv=(0,d.defineComponent)({__name:`Badge`,props:{actions:{default:null},ariaLabel:{default:null},avatar:{default:null},color:{default:`gray`},dot:{default:null},icon:{default:null},label:{default:null},metadata:{default:null},models:{default:null},rounded:{default:`default`},size:{default:`md`},variant:{default:`translucent`}},setup(e){let t=e,n=(0,d.computed)(()=>t.dot?.color??t.color),r=(0,d.computed)(()=>jv({color:t.color,rounded:t.rounded,size:t.size,variant:t.variant}));return kv({...vr(t),effectiveDotColor:n,variants:r}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{class:(0,d.normalizeClass)([r.value.base(),t.actions!=null&&`group relative`]),"aria-label":t.ariaLabel,gap:`xs`,role:`status`},{default:(0,d.withCtx)(()=>[t.dot==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Nv,{key:0})),(0,d.renderSlot)(e.$slots,`default`,{},()=>[t.avatar==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Mv,{key:0,name:t.avatar.name,src:t.avatar.src},null,8,[`name`,`src`])),t.icon?((0,d.openBlock)(),(0,d.createBlock)(Pv,{key:1,icon:t.icon},null,8,[`icon`])):(0,d.createCommentVNode)(``,!0),t.label?((0,d.openBlock)(),(0,d.createBlock)(Fv,{key:2,label:t.label},null,8,[`label`])):(0,d.createCommentVNode)(``,!0)]),t.actions==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Iv,[(0,d.createVNode)((0,d.unref)(Wo),{actions:t.actions,models:t.models??[],metadata:t.metadata,"current-context-only":!0,"popover-side":`bottom`,"popover-align":`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,{class:(0,d.normalizeClass)(r.value.actionsButton())},[(0,d.createVNode)((0,d.unref)(yn),{class:(0,d.normalizeClass)(r.value.actionsIcon())},null,8,[`class`])],2)]),_:1})]),_:1},8,[`actions`,`models`,`metadata`])]))]),_:3},8,[`class`,`aria-label`]))}}),Rv=(0,d.defineComponent)({__name:`BadgeGroup`,props:{noWrap:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{class:(0,d.normalizeClass)({"flex-wrap":!t.noWrap}),gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),zv=(0,d.defineComponent)({__name:`BadgeGroupTruncate`,props:{badges:{},maxVisibleCount:{default:null}},setup(e){let t=e,n=(0,d.computed)(()=>t.maxVisibleCount===null?t.badges:t.badges.slice(0,t.maxVisibleCount)),r=(0,d.computed)(()=>t.maxVisibleCount===null?0:Math.max(0,t.badges.length-t.maxVisibleCount));function i(e){return e===t.badges.length}function a(e){return i(e)?`${e} selected`:`+${e}`}function o(e){return t.badges.slice(-e).map(e=>e.label).join(`, `)}return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)(Yo,null,{default:(0,d.withCtx)(({hiddenBlockCount:e})=>[(0,d.createVNode)(Rv,{"no-wrap":!0},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.value,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Xo,{key:t,priority:t},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Lv,(0,d.mergeProps)({ref_for:!0},e),null,16)]),_:2},1032,[`priority`]))),128)),e+r.value>0?((0,d.openBlock)(),(0,d.createBlock)(K,{key:0,label:o(e+r.value)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Lv,{label:a(e+r.value),size:t.badges[0]?.size,class:`pointer-events-auto cursor-default`},null,8,[`label`,`size`])]),_:2},1032,[`label`])):(0,d.createCommentVNode)(``,!0)]),_:2},1024)]),_:1}))}}),Bv=(0,d.defineComponent)({__name:`FieldWrapperIcon`,props:{icon:{}},setup(e){let t=e;return(e,n)=>t.icon?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:`size-3.5 shrink-0 text-fg-quaternary group-data-disabled/field-wrapper:text-fg-disabled-subtle`})):(0,d.createCommentVNode)(``,!0)}}),Vv=(0,d.defineComponent)({__name:`FieldWrapperLoader`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(qa,{class:`mr-md size-3.5 shrink-0 text-quaternary`}))}}),Hv=(0,d.defineComponent)({__name:`FieldWrapper`,props:(0,d.mergeDefaults)({isError:{type:Boolean},gap:{},size:{},wrap:{type:Boolean},isDisabled:{type:Boolean},isLoading:{type:Boolean},isReadonly:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...Ev,isError:!1,gap:`none`,size:`md`,wrap:!1}),setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{"data-error":t.isError||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadonly||void 0,"data-interactive":!t.isDisabled&&!t.isReadonly||void 0,class:(0,d.normalizeClass)([{"h-8":!t.wrap&&t.size===`md`,"h-7":!t.wrap&&t.size===`sm`,"min-h-8 flex-wrap px-xs py-1.25":t.wrap&&t.size===`md`,"min-h-7 flex-wrap px-xs py-0.75":t.wrap&&t.size===`sm`},`group/field-wrapper relative rounded-md border border-secondary bg-primary outline outline-transparent duration-100 data-disabled:cursor-not-allowed data-disabled:border-disabled-subtle data-disabled:bg-disabled-subtle data-disabled:text-disabled data-error:border-error not-data-error:data-interactive:hover:border-primary [&:has([data-field-wrapper]:focus-visible)]:data-interactive:border-fg-brand-primary [&:has([data-field-wrapper]:focus-visible)]:data-interactive:outline-fg-brand-primary [&:has([data-field-wrapper]:focus-visible)]:data-interactive:data-error:border-error [&:has([data-field-wrapper]:focus-visible)]:data-interactive:data-error:outline-fg-error-primary`]),gap:t.gap},{default:(0,d.withCtx)(()=>[t.iconLeft?((0,d.openBlock)(),(0,d.createBlock)(Bv,{key:0,icon:t.iconLeft,"input-field-size":t.size,class:(0,d.normalizeClass)([{"ml-md":t.size===`md`,"ml-sm":t.size===`sm`},`text-error-500`])},null,8,[`icon`,`input-field-size`,`class`])):(0,d.createCommentVNode)(``,!0),(0,d.renderSlot)(e.$slots,`left`),(0,d.renderSlot)(e.$slots,`default`),(0,d.renderSlot)(e.$slots,`right`),(0,d.createVNode)((0,d.unref)(g.MotionConfig),{transition:{duration:.2}},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.AnimatePresence),{mode:`popLayout`},{default:(0,d.withCtx)(()=>[t.isLoading?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:0,initial:{opacity:0,scale:.9,filter:`blur(2px)`},animate:{opacity:1,scale:1,filter:`blur(0px)`},exit:{opacity:0,scale:.9,filter:`blur(2px)`}},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Vv)]),_:1})):t.iconRight?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:1,initial:{opacity:0,scale:.9,filter:`blur(2px)`},animate:{opacity:1,scale:1,filter:`blur(0px)`},exit:{opacity:0,scale:.9,filter:`blur(2px)`}},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Bv,{icon:t.iconRight,"input-field-size":t.size,class:(0,d.normalizeClass)({"mr-md":t.size===`md`,"mr-sm":t.size===`sm`})},null,8,[`icon`,`input-field-size`,`class`])]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1})]),_:3},8,[`data-error`,`data-disabled`,`data-readonly`,`data-interactive`,`class`,`gap`]))}}),Uv={class:`flex h-lh items-center`},Wv=(0,d.defineComponent)({__name:`InputWrapperErrorMessage`,props:{errorMessage:{},for:{}},setup(e){let t=e,n=xf();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[t.errorMessage===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:0,initial:{height:0,opacity:0,filter:`blur(4px)`},animate:{height:`auto`,opacity:1,filter:`blur(0)`},exit:{height:0,opacity:0,filter:`blur(4px)`},transition:{duration:(0,d.unref)(n)?0:.3,type:`spring`,bounce:0}},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{class:`pt-xs text-xs`,align:`start`,gap:`sm`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,Uv,[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)((0,d.unref)(bt)),{class:`size-3.5 shrink-0 text-error-primary`}))]),(0,d.createVNode)((0,d.unref)(G),{id:`${t.for}-error-message`,text:t.errorMessage,truncate:!1,role:`alert`,"aria-live":`assertive`,class:`block text-error-primary`},null,8,[`id`,`text`])]),_:1})]),_:1},8,[`transition`]))]),_:1}))}}),Gv=(0,d.defineComponent)({__name:`InputWrapperHint`,props:{for:{},hint:{}},setup(e){let t=e;return(e,n)=>t.hint===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:0,id:`${t.for}-hint`,text:t.hint,truncate:!1,role:`alert`,class:`block pt-xs text-xs text-tertiary`},null,8,[`id`,`text`]))}}),Kv=va({extend:{theme:{spacing:[`none`,`xxs`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`,`10xl`,`11xl`]}}}),qv={tabindex:`0`,"aria-label":`Help`,class:`ml-xs inline-flex items-center`},Jv=W((0,d.defineComponent)({__name:`InputWrapperLabel`,props:{isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},isRequired:{type:Boolean},for:{},helpText:{},label:{}},setup(e){let t=e;return(e,n)=>t.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,class:(0,d.normalizeClass)([{"pb-xs":!t.isHorizontal},t.isLabelHidden&&`sr-only`]),gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`,{},void 0,!0),(0,d.createVNode)((0,d.unref)(G),{for:t.for??void 0,text:t.label,class:(0,d.normalizeClass)((0,d.unref)(Kv)(`text-xs font-medium text-secondary`,t.isRequired?`after:pl-xxs after:text-error-primary`:``)),"data-label-required":t.isRequired?``:null,as:`label`},null,8,[`for`,`text`,`class`,`data-label-required`]),t.helpText!==void 0&&t.helpText!==null?((0,d.openBlock)(),(0,d.createBlock)(K,{key:0,label:t.helpText},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,{"is-default-cursor":!0},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,qv,[(0,d.createVNode)((0,d.unref)(Fn),{class:`size-3.5 shrink-0 text-fg-quaternary`})])]),_:1})]),_:1},8,[`label`])):(0,d.createCommentVNode)(``,!0),(0,d.renderSlot)(e.$slots,`right`,{},void 0,!0)]),_:3},8,[`class`]))}}),[[`__scopeId`,`data-v-aa6c5faa`]]),Yv={key:0},Xv=(0,d.defineComponent)({inheritAttrs:!1,__name:`InputWrapper`,props:(0,d.mergeDefaults)({isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},isRequired:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isDisabled:{type:Boolean},disabledReason:{}},{...Tv}),setup(e){let t=e,n=(0,d.useAttrs)();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)(K,{"is-disabled":!t.isDisabled||t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[t.isHorizontal?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,(0,d.normalizeProps)((0,d.mergeProps)({key:0},(0,d.unref)(n))),[(0,d.createVNode)(R,{align:`start`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{class:`h-4.5`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}),(0,d.createVNode)((0,d.unref)(q),{gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Jv,{label:t.label,for:t.for,"is-required":t.isRequired,"is-horizontal":t.isHorizontal,"is-label-hidden":t.isLabelHidden,"help-text":t.helpText},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),_:3},8,[`label`,`for`,`is-required`,`is-horizontal`,`is-label-hidden`,`help-text`]),t.hint!==null||t.errorMessage!==null&&!t.hideErrorMessage?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Yv,[(0,d.createVNode)(Gv,{hint:t.hint,for:t.for},null,8,[`hint`,`for`]),t.hideErrorMessage?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Wv,{key:0,"error-message":t.errorMessage,for:t.for},null,8,[`error-message`,`for`]))])):(0,d.createCommentVNode)(``,!0)]),_:3})]),_:3})],16)):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,(0,d.normalizeProps)((0,d.mergeProps)({key:1},(0,d.unref)(n))),[(0,d.createVNode)(Jv,{label:t.label,for:t.for,"is-required":t.isRequired,"is-label-hidden":t.isLabelHidden,"help-text":t.helpText},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),_:3},8,[`label`,`for`,`is-required`,`is-label-hidden`,`help-text`]),(0,d.renderSlot)(e.$slots,`default`),(0,d.createVNode)(Gv,{hint:t.hint,for:t.for},null,8,[`hint`,`for`]),t.hideErrorMessage?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Wv,{key:0,"error-message":t.errorMessage,for:t.for},null,8,[`error-message`,`for`]))],16))]),_:3},8,[`is-disabled`,`label`]))}});function Zv(e,t){function n(e){return Array.isArray(e)}return{isMultiple:n,selectedOptions:(0,d.computed)(()=>n(e.value)?e.value.map(e=>({type:`option`,value:e})):e.value===null?[]:[{type:`option`,value:e.value}]),valueLabel:(0,d.computed)(()=>e.value===null?null:n(e.value)?e.value.length===1?t(e.value[0]):`${e.value.length} selected`:t(e.value))}}function Qv(){let e=(0,d.ref)(!1);function t(){e.value=!0}function n(){e.value=!1}function r(n){(n.key===`ArrowUp`||n.key===`ArrowDown`)&&!e.value&&t(),n.key.length===1&&n.key!==` `&&!e.value&&t()}return{isDropdownVisible:e,closeDropdown:n,openDropdown:t,onTriggerKeyDown:r}}var $v={class:`relative flex size-full flex-col overflow-hidden`},ey={key:0,class:`pointer-events-none absolute top-0 z-1 h-8 w-full bg-linear-to-b from-primary to-transparent`},ty={key:1,class:`pointer-events-none absolute bottom-0 z-1 h-8 w-full bg-linear-to-t from-primary to-transparent`},ny=(0,d.defineComponent)({inheritAttrs:!1,__name:`Scrollable`,props:{as:{default:`div`},distance:{default:250},onNext:{}},setup(e){let t=e,n=(0,d.useAttrs)(),r=(0,d.useTemplateRef)(`scrollable`),i=(0,d.ref)(!1),a=(0,d.ref)(!1);(0,p.useInfiniteScroll)((0,d.computed)(()=>r.value?.$el??null),async()=>{await t.onNext?.()},{distance:t.distance}),(0,p.useMutationObserver)((0,d.computed)(()=>r.value?.$el??null),o,{childList:!0,subtree:!0});function o(){let e=r.value?.$el??null;if(e===null){i.value=!1,a.value=!1;return}i.value=e.scrollTop>0,a.value=e.scrollHeight-e.clientHeight-e.scrollTop>0}(0,d.watch)(()=>r.value?.$el??null,e=>{e!==null&&requestAnimationFrame(o)},{immediate:!0});function s(){o()}return(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,$v,[i.value?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,ey)):(0,d.createCommentVNode)(``,!0),a.value?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,ty)):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(m.Primitive),(0,d.mergeProps)({ref:`scrollable`},(0,d.unref)(n),{as:t.as,class:`overflow-auto`,onScroll:s}),{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},16,[`as`])]))}});function ry(){return Math.random().toString(36).substring(2,15)}function iy(e,t,n,r){let i=(0,d.ref)([]),a=(0,d.computed)(()=>e.value.map(e=>({...e,key:ry()})).sort((e,t)=>{let n=r(e.value),i=r(t.value);return n.localeCompare(i)}));function o(t){return t.filter(t=>t.type===`option`?!e.value.some(e=>JSON.stringify(e.value)===JSON.stringify(t.value)):!0).map(e=>(e.type,{...e,key:ry()}))}function s(){return{key:ry(),type:`separator`}}function c(t){return t.sort((t,n)=>{if(t.type!==`option`||n.type!==`option`)return 0;let r=e.value.some(e=>JSON.stringify(e.value)===JSON.stringify(t.value)),i=e.value.some(e=>JSON.stringify(e.value)===JSON.stringify(n.value));return r&&!i?-1:!r&&i?1:0})}function l(r){let l=t.value?r:r.filter(e=>e.type!==`separator`),u=o(l);if(t.value&&n&&a.value.length>0&&u.length>0){i.value=[...a.value,s(),...u];return}let d=[];d=t.value&&n&&e.value.length>0?e.value:l;let f=d.map(e=>(e.type,{...e,key:ry()}));if(n){i.value=c(f);return}i.value=f}return{createDisplayItemList:l,displayItems:i}}function ay(){let e=(0,d.ref)(``),t=(0,d.ref)(e.value),n=(0,d.computed)(()=>t.value.trim()===``);return(0,p.watchDebounced)(e,e=>{t.value=e},{debounce:100}),{isSearchEmpty:n,debouncedSearch:t,search:e}}var[oy,sy]=L(`selectContext`),cy=class{static format(e,t=0){return new Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e)}static randomBetween(e,t){return Math.floor(Math.random()*(t-e+1))+e}},ly=(0,d.defineComponent)({__name:`SelectLoading`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{gap:`xs`,class:`py-xs`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(3,e=>(0,d.createElementVNode)(`div`,{key:e,class:`h-6 w-full p-sm`},[((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(J),{key:e,style:(0,d.normalizeStyle)({width:`${(0,d.unref)(cy).randomBetween(40,80)}%`}),animate:!0,class:`h-3`},null,8,[`style`]))])),64))]),_:1}))}});function uy(e,t){let n=(0,d.ref)(``),{contains:r}=(0,m.useFilter)({sensitivity:`base`});function i(e){n.value=e}return{locallyFilteredItems:(0,d.computed)(()=>e.value.filter(e=>n.value.trim().length===0||e.type!==`option`?!0:r(t(e.value),n.value))),localSearch:n,onSearchLocally:i}}var dy=(0,d.defineComponent)({__name:`SelectOption`,props:{label:{},value:{}},setup(e){let t=e,{getItemConfig:n,size:r,onSelectOption:i}=sy();return(e,a)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxItem),{value:t.value,class:`group/listbox-item relative z-2 flex w-full cursor-default items-center rounded-sm outline-none hover:bg-secondary-hover data-highlighted:bg-secondary-hover`,onSelect:(0,d.unref)(i)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(fo),{config:(0,d.unref)(n)?.(t.value)??null,label:t.label,size:(0,d.unref)(r)},{right:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ListboxItemIndicator),null,{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)((0,d.unref)(Wt)),{class:`size-3.5 text-tertiary`}))]),_:1})]),_:1},8,[`config`,`label`,`size`])]),_:1},8,[`value`,`onSelect`]))}}),fy={key:0,class:`p-xs pb-none`},py=9,my=(0,d.defineComponent)({__name:`SelectContent`,props:(0,d.mergeModels)({displayFn:{},hasVirtualScroll:{type:[Boolean,null],default:!1},isLoading:{type:Boolean,default:!1},items:{},limit:{default:null},search:{default:null},contentWidthClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`nextPage`,`update:search`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),{getItemConfig:a,size:o}=sy(),s=(0,d.useModel)(e,`modelValue`),{isMultiple:c,selectedOptions:l}=Zv(s,n.displayFn),{locallyFilteredItems:u,localSearch:f,onSearchLocally:p}=uy((0,d.computed)(()=>n.items),n.displayFn),{debouncedSearch:g,search:_}=ay(),{createDisplayItemList:v,displayItems:y}=iy(l,(0,d.computed)(()=>n.search===`local`?f.value===``:_.value===``),c(s.value),n.displayFn),b=(0,d.computed)(()=>n.search===`local`?f.value:_.value);function x(e){let t=y.value[e]??null;if(t===null)throw Error(`item does not exist`);if(t.type===`separator`)return py;let n=a?.(t.value)??null;return n===null?o.value===`sm`?28:32:n.description?.layout===`block`?50:32}function S(e){n.search===`local`?p(e):_.value=e}return n.search===`remote`?(0,d.watch)(()=>n.items,e=>{v(e)},{immediate:!0}):(0,d.watch)(u,e=>{v(e)},{immediate:!0}),(0,d.watch)(g,e=>{r(`update:search`,e)}),(0,d.onBeforeUnmount)(()=>{r(`update:search`,``)}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxRoot),{modelValue:s.value,"onUpdate:modelValue":t[1]||=e=>s.value=e,"highlight-on-hover":!0,multiple:(0,d.unref)(c)(s.value),"selection-behavior":(0,d.unref)(c)(s.value)?`toggle`:`replace`,class:(0,d.normalizeClass)([n.contentWidthClass,`flex max-h-[min(var(--reka-popover-content-available-height),32rem)] flex-col overflow-hidden`])},{default:(0,d.withCtx)(()=>[n.search===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,fy,[(0,d.createVNode)((0,d.unref)(m.ListboxFilter),{"model-value":b.value,placeholder:(0,d.unref)(i).t(`component.autocomplete.search_placeholder`),class:`h-7 w-full rounded-sm bg-secondary px-md text-xs text-primary outline-none`,"onUpdate:modelValue":S},null,8,[`model-value`,`placeholder`])])),(0,d.createVNode)(ny,{as:(0,d.unref)(m.ListboxContent),style:(0,d.normalizeStyle)(n.hasVirtualScroll?`max-height: min(var(--reka-popover-content-available-height, 32rem), 32rem)`:void 0),class:`p-xs`,onNext:t[0]||=e=>r(`nextPage`)},{default:(0,d.withCtx)(()=>[n.hasVirtualScroll?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxVirtualizer),{key:0,options:(0,d.unref)(y),overscan:5,"estimate-size":x,"text-content":e=>e.type===`option`?n.displayFn(e.value):``},{default:(0,d.withCtx)(({option:e})=>[e.type===`option`?((0,d.openBlock)(),(0,d.createBlock)(dy,{key:0,label:n.displayFn(e.value),value:e.value},null,8,[`label`,`value`])):e.type===`separator`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:1,class:`my-xs`})):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`options`,`text-content`])):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(y),e=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:e.key},[e.type===`option`?((0,d.openBlock)(),(0,d.createBlock)(dy,{key:0,label:n.displayFn(e.value),value:e.value},null,8,[`label`,`value`])):e.type===`separator`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:1,class:`my-xs`})):(0,d.createCommentVNode)(``,!0)],64))),128)),n.isLoading&&(0,d.unref)(y).length===0?((0,d.openBlock)(),(0,d.createBlock)(ly,{key:0})):(0,d.createCommentVNode)(``,!0),n.items.length===n.limit?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:1,text:(0,d.unref)(i).t(`component.autocomplete.more_results_available`),truncate:!1,class:`block px-md pt-xs pb-sm text-xxs text-disabled`},null,8,[`text`])):(0,d.createCommentVNode)(``,!0)],64)),(0,d.unref)(y).length===0?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:2,text:(0,d.unref)(i).t(`component.autocomplete.no_results_found`),class:`block px-md pt-xs pb-sm text-xs text-disabled`},null,8,[`text`])):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`as`,`style`])]),_:1},8,[`modelValue`,`multiple`,`selection-behavior`,`class`]))}}),hy=(0,d.defineComponent)({__name:`SelectDropdown`,props:(0,d.mergeModels)((0,d.mergeDefaults)({hasVirtualScroll:{type:[Boolean,null]},contentWidthClass:{},displayFn:{type:Function},getItemConfig:{type:[Function,null]},items:{},keepDropdownOpenOnSelect:{type:[Boolean,null]},limit:{},search:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},placeholder:{},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{...wv,...Tv,...Ov(Ev,`iconRight`),...Dv,disableSideFlip:!0,keepDropdownOpenOnSelect:null,limit:null,popoverAlign:`center`,popoverCollisionPadding:8,popoverSide:`bottom`,popoverSideOffset:4,popoverWidth:`anchor-width`,prioritizePosition:!0,search:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`,`nextPage`,`update:search`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),{isMultiple:a}=Zv(i,n.displayFn),{isDropdownVisible:o,onTriggerKeyDown:s}=Qv();function c(){if(n.keepDropdownOpenOnSelect!==!0){if(n.keepDropdownOpenOnSelect===!1){o.value=!1;return}a(i.value)||(o.value=!1)}}function l(){r(`blur`)}function u(e){e||l()}return(0,d.watch)(o,u),oy({getItemConfig:n.getItemConfig??null,size:(0,d.computed)(()=>n.size),onSelectOption:c}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(bv,{"is-open":(0,d.unref)(o),"onUpdate:isOpen":t[3]||=e=>(0,d.isRef)(o)?o.value=e:null,"popover-side-offset":4,"popover-animation-name":n.popoverAnimationName,"popover-align":n.popoverAlign,"popover-align-offset":n.popoverAlignOffset,"popover-anchor-reference-element":n.popoverAnchorReferenceElement,"popover-collision-padding":n.popoverCollisionPadding,"popover-container-element":n.popoverContainerElement,"popover-side":n.popoverSide,"popover-width":n.popoverWidth,"is-popover-arrow-visible":n.isPopoverArrowVisible,"disable-update-on-layout-shift":n.disableUpdateOnLayoutShift,"prioritize-position":n.prioritizePosition,"disable-side-flip":n.disableSideFlip,onKeydown:(0,d.unref)(s)},{trigger:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`trigger`,{isOpen:(0,d.unref)(o)})]),content:(0,d.withCtx)(()=>[(0,d.createVNode)(my,(0,d.mergeProps)(e.$attrs,{modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,"is-loading":n.isLoading,search:n.search,"display-fn":n.displayFn,items:n.items,limit:n.limit,"has-virtual-scroll":n.hasVirtualScroll,"content-width-class":n.contentWidthClass,onNextPage:t[1]||=e=>r(`nextPage`),"onUpdate:search":t[2]||=e=>r(`update:search`,e)}),null,16,[`modelValue`,`is-loading`,`search`,`display-fn`,`items`,`limit`,`has-virtual-scroll`,`content-width-class`])]),_:3},8,[`is-open`,`popover-animation-name`,`popover-align`,`popover-align-offset`,`popover-anchor-reference-element`,`popover-collision-padding`,`popover-container-element`,`popover-side`,`popover-width`,`is-popover-arrow-visible`,`disable-update-on-layout-shift`,`prioritize-position`,`disable-side-flip`,`onKeydown`]))}}),gy=[`id`,`disabled`,`aria-expanded`,`aria-busy`,`aria-describedby`,`aria-invalid`,`aria-required`,`aria-controls`],_y={class:`sr-only`},vy=(0,d.defineComponent)({inheritAttrs:!1,__name:`Select`,props:(0,d.mergeModels)((0,d.mergeDefaults)({hasVirtualScroll:{type:[Boolean,null]},contentWidthClass:{},displayFn:{type:Function},getItemConfig:{type:[Function,null]},items:{},keepDropdownOpenOnSelect:{type:[Boolean,null]},limit:{},search:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},placeholder:{},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{...wv,...Tv,...Ov(Ev,`iconRight`),...Dv,disableSideFlip:!0,keepDropdownOpenOnSelect:null,limit:null,popoverAlign:`center`,popoverCollisionPadding:8,popoverSide:`bottom`,popoverSideOffset:4,popoverWidth:`anchor-width`,prioritizePosition:!0,search:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`,`nextPage`,`update:search`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),a=n.id??(0,d.useId)(),o=(0,d.useAttrs)(),{isMultiple:s,valueLabel:c}=Zv(i,n.displayFn),{isError:l,ariaBusy:u,ariaDescribedBy:f,ariaInvalid:p,ariaRequired:m}=Sv(a,n),h=(0,d.computed)(()=>s(i.value)?i.value.map(e=>{let t=n.getItemConfig?.(e)??null;return{avatar:t?.left?.type===`avatar`?{name:t.left.name,src:t.left.src??null}:null,dot:t?.left?.type===`dot`?{color:t.left.color??`gray`}:null,icon:t?.left?.type===`icon`?t.left.icon:null,label:n.displayFn(e)}}):[]),g=(0,d.computed)(()=>s(i.value)||i.value===null?null:n.getItemConfig?.(i.value)??null);return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,"help-text":n.helpText,label:n.label,class:(0,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),"is-label-hidden":n.isLabelHidden,for:(0,d.unref)(a),"hide-error-message":n.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)(Hv,{"icon-left":n.iconLeft,"icon-right":(0,d.unref)(Jt),"is-loading":n.isLoading,"is-error":(0,d.unref)(l),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly,size:n.size},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{class:(0,d.normalizeClass)([{"px-md":n.size===`md`,"px-sm":n.size===`sm`},`size-full overflow-hidden text-left`])},{default:(0,d.withCtx)(()=>[((0,d.unref)(s)(i.value)?i.value.length>0:i.value!==null)?(0,d.renderSlot)(e.$slots,`value`,{key:0},()=>[(0,d.unref)(s)(i.value)?((0,d.openBlock)(),(0,d.createBlock)(zv,{key:0,badges:h.value,class:`-ml-[0.3rem] w-full`,size:`sm`,color:`gray`,variant:`translucent`},null,8,[`badges`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:1,align:`center`},{default:(0,d.withCtx)(()=>[g.value?.left?.type===`avatar`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),{key:0,name:g.value.left.name,src:g.value.left.src,"image-alt":g.value.left.imageAlt,size:`xxs`},null,8,[`name`,`src`,`image-alt`])):g.value?.left?.type===`icon`?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(g.value.left.icon),{key:1,class:`size-3.5 shrink-0 text-tertiary`})):g.value?.left?.type===`dot`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(no),{key:2,color:g.value.left.color},null,8,[`color`])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(G),{text:(0,d.unref)(c),class:(0,d.normalizeClass)([{"text-disabled":n.isDisabled,"text-primary":!n.isDisabled},`text-xs font-medium`])},null,8,[`text`,`class`])]),_:1}))]):n.placeholder===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:1,text:n.placeholder,class:`text-xs text-disabled`},null,8,[`text`]))]),_:3},8,[`class`]),(0,d.createVNode)(hy,(0,d.mergeProps)({modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e},n,{"content-width-class":n.contentWidthClass,onBlur:t[1]||=e=>r(`blur`),onNextPage:t[2]||=e=>r(`nextPage`),"onUpdate:search":t[3]||=e=>r(`update:search`,e)}),{trigger:(0,d.withCtx)(({isOpen:e})=>[(0,d.createElementVNode)(`button`,(0,d.mergeProps)((0,d.unref)(o),{id:(0,d.unref)(a),disabled:n.isDisabled,"aria-expanded":e,"aria-busy":(0,d.unref)(u),"aria-describedby":(0,d.unref)(f),"aria-invalid":(0,d.unref)(p),"aria-required":(0,d.unref)(m),"aria-controls":`${(0,d.unref)(a)}-listbox`,role:`combobox`,class:`absolute inset-0 size-full outline-none disabled:cursor-not-allowed`,"data-field-wrapper":``}),[(0,d.createElementVNode)(`span`,_y,(0,d.toDisplayString)((0,d.unref)(c)),1)],16,gy)]),_:1},16,[`modelValue`,`content-width-class`])]),_:3},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`,`help-text`,`label`,`class`,`style`,`is-label-hidden`,`for`,`hide-error-message`]))}}),yy=Object.defineProperty,by=(e,t,n)=>t in e?yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xy=(e,t,n)=>by(e,typeof t==`symbol`?t:t+``,n),Sy={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Cy=(e,t,n)=>e.replaceAll(t,``).replace(n,`.`).replace(`..`,`.`).replace(/[^.\d]/g,``),wy=(e,t,n)=>new Intl.NumberFormat(n.number?.locale??`en`,{minimumFractionDigits:e,maximumFractionDigits:t,roundingMode:`trunc`}),Ty=(e,t=!0,n)=>{let r=n.number?.unsigned!==!0&&e.startsWith(`-`)?`-`:``,i=n.number?.fraction??0,a=wy(0,i,n),o=a.formatToParts(1000.12),s=o.find(e=>e.type===`group`)?.value??` `,c=o.find(e=>e.type===`decimal`)?.value??`.`,l=Cy(e,s,c);if(Number.isNaN(parseFloat(l)))return r;let u=l.split(`.`);u[1]!=null&&u[1].length>=1&&(a=wy(u[1].length<=i?u[1].length:i,i,n));let d=a.format(parseFloat(l));return t?i>0&&l.endsWith(`.`)&&!l.slice(0,-1).includes(`.`)&&(d+=c):d=Cy(d,s,c),r+d},Ey=e=>JSON.parse(e.replaceAll(`'`,`"`)),Dy=(e,t={})=>{let n={...t};e.dataset.maska!=null&&e.dataset.maska!==``&&(n.mask=ky(e.dataset.maska)),e.dataset.maskaEager!=null&&(n.eager=Oy(e.dataset.maskaEager)),e.dataset.maskaReversed!=null&&(n.reversed=Oy(e.dataset.maskaReversed)),e.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Oy(e.dataset.maskaTokensReplace)),e.dataset.maskaTokens!=null&&(n.tokens=Ay(e.dataset.maskaTokens));let r={};return e.dataset.maskaNumberLocale!=null&&(r.locale=e.dataset.maskaNumberLocale),e.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(e.dataset.maskaNumberFraction)),e.dataset.maskaNumberUnsigned!=null&&(r.unsigned=Oy(e.dataset.maskaNumberUnsigned)),(e.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},Oy=e=>e===``?!0:!!JSON.parse(e),ky=e=>e.startsWith(`[`)&&e.endsWith(`]`)?Ey(e):e,Ay=e=>{if(e.startsWith(`{`)&&e.endsWith(`}`))return Ey(e);let t={};return e.split(`|`).forEach(e=>{let n=e.split(`:`);t[n[0]]={pattern:jy()?new RegExp(n[1],`u`):new RegExp(n[1]),optional:n[2]===`optional`,multiple:n[2]===`multiple`,repeated:n[2]===`repeated`}}),t},jy=()=>{try{return!0}catch{return!1}},My=class{constructor(e={}){xy(this,`opts`,{}),xy(this,`memo`,new Map);let t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...Sy,...t.tokens};for(let e of Object.values(t.tokens))typeof e.pattern==`string`&&(e.pattern=jy()?new RegExp(e.pattern,`u`):new RegExp(e.pattern))}else t.tokens=Sy;Array.isArray(t.mask)&&(t.mask.length>1?t.mask=[...t.mask].sort((e,t)=>e.length-t.length):t.mask=t.mask[0]??``),t.mask===``&&(t.mask=null),this.opts=t}masked(e){return this.process(String(e),this.findMask(String(e)))}unmasked(e){return this.process(String(e),this.findMask(String(e)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){let t=this.findMask(String(e));if(this.opts.mask==null||t==null)return!1;let n=this.process(String(e),t).length;return typeof this.opts.mask==`string`?n>=this.opts.mask.length:n>=t.length}findMask(e){let t=this.opts.mask;if(t==null)return null;if(typeof t==`string`)return t;if(typeof t==`function`)return t(e);let n=this.process(e,t.slice(-1).pop()??``,!1);return t.find(t=>this.process(e,t,!1).length>=n.length)??``}escapeMask(e){let t=[],n=[];return e.split(``).forEach((r,i)=>{r===`!`&&e[i-1]!==`!`?n.push(i-n.length):t.push(r)}),{mask:t.join(``),escaped:n}}process(e,t,n=!0){if(this.opts.number!=null)return Ty(e,n,this.opts);if(t==null)return e;let r=`v=${e},mr=${t},m=${+!!n}`;if(this.memo.has(r))return this.memo.get(r);let{mask:i,escaped:a}=this.escapeMask(t),o=[],s=this.opts.tokens==null?{}:this.opts.tokens,c=this.isReversed()?-1:1,l=this.isReversed()?`unshift`:`push`,u=this.isReversed()?0:i.length-1,d=this.isReversed()?()=>h>-1&&g>-1:()=>h<i.length&&g<e.length,f=e=>!this.isReversed()&&e<=u||this.isReversed()&&e>=u,p,m=-1,h=this.isReversed()?i.length-1:0,g=this.isReversed()?e.length-1:0,_=!1;for(;d();){let t=i.charAt(h),r=s[t],d=r?.transform==null?e.charAt(g):r.transform(e.charAt(g));if(!a.includes(h)&&r!=null?(d.match(r.pattern)==null?r.multiple?_&&=(h+=c,g-=c,!1):d===p?p=void 0:r.optional&&(h+=c,g-=c):(o[l](d),r.repeated?(m===-1?m=h:h===u&&h!==m&&(h=m-c),u===m&&(h-=c)):r.multiple&&(_=!0,h-=c),h+=c),g+=c):(n&&!this.isEager()&&o[l](t),d===t&&!this.isEager()?g+=c:p=t,this.isEager()||(h+=c)),this.isEager())for(;f(h)&&(s[i.charAt(h)]==null||a.includes(h));){if(n){if(o[l](i.charAt(h)),e.charAt(g)===i.charAt(h)){h+=c,g+=c;continue}}else i.charAt(h)===e.charAt(g)&&(g+=c);h+=c}}return this.memo.set(r,o.join(``)),this.memo.get(r)}},Ny=class{constructor(e,t={}){xy(this,`items`,new Map),xy(this,`eventAbortController`),xy(this,`onInput`,e=>{if(e instanceof CustomEvent&&e.type===`input`&&!e.isTrusted&&!e.bubbles)return;let t=e.target,n=this.items.get(t);if(n===void 0)return;let r=`inputType`in e&&e.inputType.startsWith(`delete`),i=n.isEager(),a=r&&i&&n.unmasked(t.value)===``?``:t.value;this.fixCursor(t,r,()=>this.setValue(t,a))}),this.options=t,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){e.value!==``&&e.value!==this.processInput(e)?.masked&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){let t=this.getOptions(this.options);for(let n of e){if(!this.items.has(n)){let{signal:e}=this.eventAbortController;n.addEventListener(`input`,this.onInput,{capture:!0,signal:e})}let e=new My(Dy(n,t));this.items.set(n,e),queueMicrotask(()=>this.updateValue(n)),n.selectionStart===null&&e.isEager()&&console.warn("Maska: input of `%s` type is not supported",n.type)}}getInputs(e){return typeof e==`string`?Array.from(document.querySelectorAll(e)):`length`in e?Array.from(e):[e]}getOptions(e){let{onMaska:t,preProcess:n,postProcess:r,...i}=e;return i}fixCursor(e,t,n){let r=e.selectionStart,i=e.value;if(n(),r===null||r===i.length&&!t)return;let a=e.value,o=i.slice(0,r),s=a.slice(0,r),c=this.processInput(e,o)?.unmasked,l=this.processInput(e,s)?.unmasked;if(c===void 0||l===void 0)return;let u=r;o!==s&&(u+=t?a.length-i.length:c.length-l.length),e.setSelectionRange(u,u)}setValue(e,t){let n=this.processInput(e,t);n!==void 0&&(e.value=n.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(e=>e(n)):this.options.onMaska(n)),e.dispatchEvent(new CustomEvent(`maska`,{detail:n})),e.dispatchEvent(new CustomEvent(`input`,{detail:n.masked})))}processInput(e,t){let n=this.items.get(e);if(n===void 0)return;let r=t??e.value;this.options.preProcess!=null&&(r=this.options.preProcess(r));let i=n.masked(r);return this.options.postProcess!=null&&(i=this.options.postProcess(i)),{masked:i,unmasked:n.unmasked(r),completed:n.completed(r)}}},Py=new WeakMap,Fy=(e,t)=>{if(e.arg==null||e.instance==null)return;let n=`setup`in e.instance.$.type;e.arg in e.instance?e.instance[e.arg]=t:n&&console.warn("Maska: please expose `%s` using defineExpose",e.arg)},Iy=(e,t)=>{var n;let r=e instanceof HTMLInputElement?e:e.querySelector(`input`);if(r==null||r?.type===`file`)return;let i={};if(t.value!=null&&(i=typeof t.value==`string`?{mask:t.value}:{...t.value}),t.arg!=null){let e=e=>{Fy(t,t.modifiers.unmasked?e.unmasked:t.modifiers.completed?e.completed:e.masked)};i.onMaska=i.onMaska==null?e:Array.isArray(i.onMaska)?[...i.onMaska,e]:[i.onMaska,e]}Py.has(r)?(n=Py.get(r))==null||n.update(i):Py.set(r,new Ny(r,i))},Ly=U({slots:{input:`
|
|
516
504
|
size-full truncate bg-transparent text-xs text-primary outline-none
|
|
517
505
|
placeholder:text-placeholder
|
|
518
506
|
read-only:cursor-default
|
|
519
507
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
520
508
|
disabled:placeholder:text-fg-disabled-subtle
|
|
521
|
-
`},variants:{size:{md:{input:`px-md`},sm:{input:`px-sm`}}}}),Ly=[`id`,`value`,`aria-describedby`,`autocomplete`,`name`,`type`,`aria-required`,`readonly`,`aria-busy`,`aria-invalid`,`disabled`,`placeholder`],Ry=(0,d.defineComponent)({inheritAttrs:!1,__name:`TextField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({mask:{},size:{},type:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...wv,...Tv,...Ev,...Dv,size:`md`,type:`text`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e,{expose:t}){let n=e,r=(0,d.useModel)(e,`modelValue`),i=(0,d.computed)(()=>Iy({size:n.size})),a=(0,d.useTemplateRef)(`input`),o=(0,d.useAttrs)(),s=n.id??(0,d.useId)(),{isError:c,ariaBusy:l,ariaDescribedBy:u,ariaInvalid:f,ariaRequired:p}=Sv(s,n);return t({input:a}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Yv,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,label:n.label,class:(0,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),for:(0,d.unref)(s),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)(Vv,{"icon-left":n.iconLeft,"icon-right":n.iconRight,"is-loading":n.isLoading,"is-error":(0,d.unref)(c),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly,size:n.size},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`)]),default:(0,d.withCtx)(()=>[(0,d.withDirectives)((0,d.createElementVNode)(`input`,(0,d.mergeProps)((0,d.unref)(o),{id:(0,d.unref)(s),ref:`input`,value:r.value,"aria-describedby":(0,d.unref)(u),autocomplete:n.autocomplete??void 0,name:n.name??void 0,type:n.type,"aria-required":(0,d.unref)(p),readonly:n.isReadonly,"aria-busy":(0,d.unref)(l),"aria-invalid":(0,d.unref)(f),disabled:n.isDisabled,placeholder:n.placeholder??void 0,class:i.value.input(),"data-field-wrapper":``,onInput:t[0]||=e=>r.value=e.target.value}),null,16,Ly),[[(0,d.unref)(Fy),n.mask]])]),_:3},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`]))}});function zy(e){return{isTouched:e.isTouched.value,errorMessage:e.isTouched.value?e.errors.value?.[0]?.message??null:null,modelValue:e.modelValue.value,onBlur:e.onBlur,"onUpdate:modelValue":e[`onUpdate:modelValue`]}}var By={class:`flex max-w-full flex-col gap-none overflow-hidden`},Vy={class:`w-96 p-xl`},Hy=(0,d.defineComponent)({__name:`AddressAutocompleteSelectedCard`,props:{isDisabled:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},address:{},class:{default:null}},emits:[`clear`,`error`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{t:i}=(0,h.useI18n)(),a=Z(),o=(0,_.useForm)({initialState:{bus:n.address.bus,city:n.address.city,country:n.address.country,postalCode:n.address.postalCode,street:n.address.street,streetNumber:n.address.streetNumber},schema:v.z.object({bus:v.z.string().nullable(),city:v.z.string(),country:v.z.string(),postalCode:v.z.string(),street:v.z.string(),streetNumber:v.z.string()}),onSubmit:async()=>{await E()}}),s=o.register(`bus`),c=o.register(`city`),l=o.register(`country`),u=o.register(`postalCode`),f=o.register(`street`),p=o.register(`streetNumber`),m=a.addressAutocompleteAdapter.value,{countryItems:g,currentCountryCode:y,displayCountry:b,getCountryItemConfig:x,onCountrySearch:S,onCountrySelect:C}=u_(l),w=(0,d.ref)(!1);(0,d.watch)(()=>n.address,e=>{s.setValue(e.bus),c.setValue(e.city),l.setValue(e.country),u.setValue(e.postalCode),f.setValue(e.street),p.setValue(e.streetNumber)}),(0,d.watch)(w,e=>{e&&(s.setValue(n.address.bus),c.setValue(n.address.city),l.setValue(n.address.country),u.setValue(n.address.postalCode),f.setValue(n.address.street),p.setValue(n.address.streetNumber))});let T=(0,d.computed)(()=>[n.address.street,n.address.streetNumber,n.address.bus].filter(Boolean).join(` `)),ee=(0,d.computed)(()=>[[n.address.postalCode,n.address.city].filter(Boolean).join(` `),n.address.country].filter(Boolean).join(`, `)),te=(0,d.computed)(()=>n.isDisabled||n.isReadonly||n.isLoading);async function E(){try{let e=[`${f.modelValue.value} ${p.modelValue.value}`,`${u.modelValue.value} ${c.modelValue.value}`,l.modelValue.value].map(e=>e?.trim()).filter(Boolean).join(`, `),t=await m.searchAddresses(e);t.length>0?r(`update:modelValue`,await m.getAddressByPlaceId(t[0].placeId)):r(`update:modelValue`,{placeId:null,bus:s.modelValue.value??``,city:c.modelValue.value??``,coordinates:{lat:null,lng:null},country:l.modelValue.value??``,postalCode:u.modelValue.value??``,street:f.modelValue.value??``,streetNumber:p.modelValue.value??``}),w.value=!1}catch(e){r(`error`,e)}}function ne(){w.value=!1}return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)([n.class,`flex max-w-full items-center justify-between gap-md rounded-lg border border-secondary bg-secondary px-lg py-md`])},[(0,d.createElementVNode)(`div`,By,[(0,d.createVNode)((0,d.unref)(G),{text:T.value,class:`text-sm text-primary`},null,8,[`text`]),(0,d.createVNode)((0,d.unref)(G),{text:ee.value,class:`text-xs text-tertiary`},null,8,[`text`])]),(0,d.createVNode)((0,d.unref)(R),{gap:`xxs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(bv),{"is-open":w.value,"onUpdate:isOpen":t[0]||=e=>w.value=e,"popover-side-offset":8,"popover-side":`bottom`,"popover-align":`end`},{trigger:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(Cn),"is-disabled":te.value,"is-loading":n.isLoading,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.edit_address`),size:`sm`,variant:`tertiary`},null,8,[`icon`,`is-disabled`,`is-loading`,`label`])]),content:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,Vy,[(0,d.createVNode)((0,d.unref)(tv),{"prompt-on-unsaved-changes":!1,form:(0,d.unref)(o)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(q),{gap:`3xl`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(M_),{title:(0,d.unref)(i)(`component.address_autocomplete_selected_card.edit_manually`)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(O_),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(D_),{lg:3,md:3,sm:3},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Ry),(0,d.mergeProps)({"is-required":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.street.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.street.placeholder`),class:`col-span-2`},(0,d.unref)(zy)((0,d.unref)(f))),null,16,[`label`,`placeholder`]),(0,d.createVNode)((0,d.unref)(Ry),(0,d.mergeProps)({"is-required":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.number.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.number.placeholder`)},(0,d.unref)(zy)((0,d.unref)(p))),null,16,[`label`,`placeholder`])]),_:1}),(0,d.createVNode)((0,d.unref)(D_),{lg:2,md:2,sm:2},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Ry),(0,d.mergeProps)({label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.bus.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.bus.placeholder`)},(0,d.unref)(zy)((0,d.unref)(s))),null,16,[`label`,`placeholder`]),(0,d.createVNode)((0,d.unref)(Ry),(0,d.mergeProps)({"is-required":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.postal_code.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.postal_code.placeholder`)},(0,d.unref)(zy)((0,d.unref)(u))),null,16,[`label`,`placeholder`])]),_:1}),(0,d.createVNode)((0,d.unref)(D_),{lg:2,md:2,sm:2},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Ry),(0,d.mergeProps)({"is-required":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.city.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.city.placeholder`)},(0,d.unref)(zy)((0,d.unref)(c))),null,16,[`label`,`placeholder`]),(0,d.createVNode)((0,d.unref)(_y),{"is-required":!0,"model-value":(0,d.unref)(y),items:(0,d.unref)(g),"display-fn":(0,d.unref)(b),"get-item-config":(0,d.unref)(x),"error-message":(0,d.unref)(l).isTouched.value?(0,d.unref)(l).errors.value?.[0]?.message??null:null,"has-virtual-scroll":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.country.label`),"prioritize-position":!1,"popover-align":`end`,"content-width-class":`w-[20rem]`,search:`remote`,"popover-width":`content-width`,"onUpdate:modelValue":(0,d.unref)(C),"onUpdate:search":(0,d.unref)(S),onBlur:(0,d.unref)(l).onBlur},null,8,[`model-value`,`items`,`display-fn`,`get-item-config`,`error-message`,`label`,`onUpdate:modelValue`,`onUpdate:search`,`onBlur`])]),_:1})]),_:1})]),_:1},8,[`title`]),(0,d.createVNode)(R,{class:`w-full`,justify:`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g_),{label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.cancel`),variant:`secondary`,onClick:ne},null,8,[`label`]),(0,d.createVNode)((0,d.unref)(_v),{label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.save`)},null,8,[`label`])]),_:1})]),_:1})]),_:1},8,[`form`])])]),_:1},8,[`is-open`]),(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(dn),"is-disabled":te.value,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.clear_address`),variant:`tertiary`,onClick:t[1]||=e=>r(`clear`)},null,8,[`icon`,`is-disabled`,`label`])]),_:1})],2))}}),Uy=(0,d.defineComponent)({__name:`AnimateHeight`,props:{duration:{default:.3}},setup(e){let t=e,n=(0,d.ref)(null),{height:r}=(0,p.useElementSize)(n),i=(0,d.ref)(!1),a=xf(),o=(0,d.computed)(()=>i.value&&!a.value?t.duration:0);return(0,d.onMounted)(()=>{setTimeout(()=>{i.value=!0},50)}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{animate:{height:(0,d.unref)(r)},transition:{bounce:0,duration:o.value,type:`spring`},tabindex:`-1`,class:`relative flex flex-col`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref_key:`el`,ref:n},[(0,d.renderSlot)(e.$slots,`default`)],512)]),_:3},8,[`animate`,`transition`]))}});function Wy(e){return e.map(e=>({type:`option`,value:e}))}var[Gy,Ky]=L(`autocompleteContext`),qy=U({slots:{input:`
|
|
509
|
+
`},variants:{size:{md:{input:`px-md`},sm:{input:`px-sm`}}}}),Ry=[`id`,`value`,`aria-describedby`,`autocomplete`,`name`,`type`,`aria-required`,`readonly`,`aria-busy`,`aria-invalid`,`disabled`,`placeholder`],zy=(0,d.defineComponent)({inheritAttrs:!1,__name:`TextField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({mask:{},size:{},type:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...wv,...Tv,...Ev,...Dv,size:`md`,type:`text`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e,{expose:t}){let n=e,r=(0,d.useModel)(e,`modelValue`),i=(0,d.computed)(()=>Ly({size:n.size})),a=(0,d.useTemplateRef)(`input`),o=(0,d.useAttrs)(),s=n.id??(0,d.useId)(),{isError:c,ariaBusy:l,ariaDescribedBy:u,ariaInvalid:f,ariaRequired:p}=Sv(s,n);return t({input:a}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,label:n.label,class:(0,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),for:(0,d.unref)(s),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)(Hv,{"icon-left":n.iconLeft,"icon-right":n.iconRight,"is-loading":n.isLoading,"is-error":(0,d.unref)(c),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly,size:n.size},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`)]),default:(0,d.withCtx)(()=>[(0,d.withDirectives)((0,d.createElementVNode)(`input`,(0,d.mergeProps)((0,d.unref)(o),{id:(0,d.unref)(s),ref:`input`,value:r.value,"aria-describedby":(0,d.unref)(u),autocomplete:n.autocomplete??void 0,name:n.name??void 0,type:n.type,"aria-required":(0,d.unref)(p),readonly:n.isReadonly,"aria-busy":(0,d.unref)(l),"aria-invalid":(0,d.unref)(f),disabled:n.isDisabled,placeholder:n.placeholder??void 0,class:i.value.input(),"data-field-wrapper":``,onInput:t[0]||=e=>r.value=e.target.value}),null,16,Ry),[[(0,d.unref)(Iy),n.mask]])]),_:3},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`]))}});function By(e){return{isTouched:e.isTouched.value,errorMessage:e.isTouched.value?e.errors.value?.[0]?.message??null:null,modelValue:e.modelValue.value,onBlur:e.onBlur,"onUpdate:modelValue":e[`onUpdate:modelValue`]}}var Vy={class:`flex max-w-full flex-col gap-none overflow-hidden`},Hy={class:`w-96 p-xl`},Uy=(0,d.defineComponent)({__name:`AddressAutocompleteSelectedCard`,props:{isDisabled:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},address:{},class:{default:null}},emits:[`clear`,`error`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{t:i}=(0,h.useI18n)(),a=Z(),o=(0,_.useForm)({initialState:{bus:n.address.bus,city:n.address.city,country:n.address.country,postalCode:n.address.postalCode,street:n.address.street,streetNumber:n.address.streetNumber},schema:v.z.object({bus:v.z.string().nullable(),city:v.z.string(),country:v.z.string(),postalCode:v.z.string(),street:v.z.string(),streetNumber:v.z.string()}),onSubmit:async()=>{await E()}}),s=o.register(`bus`),c=o.register(`city`),l=o.register(`country`),u=o.register(`postalCode`),f=o.register(`street`),p=o.register(`streetNumber`),m=a.addressAutocompleteAdapter.value,{countryItems:g,currentCountryCode:y,displayCountry:b,getCountryItemConfig:x,onCountrySearch:S,onCountrySelect:C}=u_(l),w=(0,d.ref)(!1);(0,d.watch)(()=>n.address,e=>{s.setValue(e.bus),c.setValue(e.city),l.setValue(e.country),u.setValue(e.postalCode),f.setValue(e.street),p.setValue(e.streetNumber)}),(0,d.watch)(w,e=>{e&&(s.setValue(n.address.bus),c.setValue(n.address.city),l.setValue(n.address.country),u.setValue(n.address.postalCode),f.setValue(n.address.street),p.setValue(n.address.streetNumber))});let T=(0,d.computed)(()=>[n.address.street,n.address.streetNumber,n.address.bus].filter(Boolean).join(` `)),ee=(0,d.computed)(()=>[[n.address.postalCode,n.address.city].filter(Boolean).join(` `),n.address.country].filter(Boolean).join(`, `)),te=(0,d.computed)(()=>n.isDisabled||n.isReadonly||n.isLoading);async function E(){try{let e=[`${f.modelValue.value} ${p.modelValue.value}`,`${u.modelValue.value} ${c.modelValue.value}`,l.modelValue.value].map(e=>e?.trim()).filter(Boolean).join(`, `),t=await m.searchAddresses(e),n={placeId:null,bus:s.modelValue.value??``,city:c.modelValue.value??``,coordinates:{lat:null,lng:null},country:l.modelValue.value??``,postalCode:u.modelValue.value??``,street:f.modelValue.value??``,streetNumber:p.modelValue.value??``};if(t.length>0){let e=await m.getAddressByPlaceId(t[0].placeId);r(`update:modelValue`,{...n,placeId:e.placeId,coordinates:e.coordinates})}else r(`update:modelValue`,n);w.value=!1}catch(e){r(`error`,e)}}function ne(){w.value=!1}return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)([n.class,`flex max-w-full items-center justify-between gap-md rounded-lg border border-secondary bg-secondary px-lg py-md`])},[(0,d.createElementVNode)(`div`,Vy,[(0,d.createVNode)((0,d.unref)(G),{text:T.value,class:`text-sm text-primary`},null,8,[`text`]),(0,d.createVNode)((0,d.unref)(G),{text:ee.value,class:`text-xs text-tertiary`},null,8,[`text`])]),(0,d.createVNode)((0,d.unref)(R),{gap:`xxs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(bv),{"is-open":w.value,"onUpdate:isOpen":t[0]||=e=>w.value=e,"popover-side-offset":8,"popover-side":`bottom`,"popover-align":`end`},{trigger:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(Cn),"is-disabled":te.value,"is-loading":n.isLoading,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.edit_address`),size:`sm`,variant:`tertiary`},null,8,[`icon`,`is-disabled`,`is-loading`,`label`])]),content:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,Hy,[(0,d.createVNode)((0,d.unref)(tv),{"prompt-on-unsaved-changes":!1,form:(0,d.unref)(o)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(q),{gap:`3xl`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(M_),{title:(0,d.unref)(i)(`component.address_autocomplete_selected_card.edit_manually`)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(O_),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(D_),{lg:3,md:3,sm:3},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(zy),(0,d.mergeProps)({"is-required":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.street.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.street.placeholder`),class:`col-span-2`},(0,d.unref)(By)((0,d.unref)(f))),null,16,[`label`,`placeholder`]),(0,d.createVNode)((0,d.unref)(zy),(0,d.mergeProps)({"is-required":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.number.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.number.placeholder`)},(0,d.unref)(By)((0,d.unref)(p))),null,16,[`label`,`placeholder`])]),_:1}),(0,d.createVNode)((0,d.unref)(D_),{lg:2,md:2,sm:2},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(zy),(0,d.mergeProps)({label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.bus.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.bus.placeholder`)},(0,d.unref)(By)((0,d.unref)(s))),null,16,[`label`,`placeholder`]),(0,d.createVNode)((0,d.unref)(zy),(0,d.mergeProps)({"is-required":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.postal_code.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.postal_code.placeholder`)},(0,d.unref)(By)((0,d.unref)(u))),null,16,[`label`,`placeholder`])]),_:1}),(0,d.createVNode)((0,d.unref)(D_),{lg:2,md:2,sm:2},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(zy),(0,d.mergeProps)({"is-required":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.city.label`),placeholder:(0,d.unref)(i)(`component.address_autocomplete_selected_card.city.placeholder`)},(0,d.unref)(By)((0,d.unref)(c))),null,16,[`label`,`placeholder`]),(0,d.createVNode)((0,d.unref)(vy),{"is-required":!0,"model-value":(0,d.unref)(y),items:(0,d.unref)(g),"display-fn":(0,d.unref)(b),"get-item-config":(0,d.unref)(x),"error-message":(0,d.unref)(l).isTouched.value?(0,d.unref)(l).errors.value?.[0]?.message??null:null,"has-virtual-scroll":!0,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.country.label`),"prioritize-position":!1,"popover-align":`end`,"content-width-class":`w-[20rem]`,search:`remote`,"popover-width":`content-width`,"onUpdate:modelValue":(0,d.unref)(C),"onUpdate:search":(0,d.unref)(S),onBlur:(0,d.unref)(l).onBlur},null,8,[`model-value`,`items`,`display-fn`,`get-item-config`,`error-message`,`label`,`onUpdate:modelValue`,`onUpdate:search`,`onBlur`])]),_:1})]),_:1})]),_:1},8,[`title`]),(0,d.createVNode)(R,{class:`w-full`,justify:`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g_),{label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.cancel`),variant:`secondary`,onClick:ne},null,8,[`label`]),(0,d.createVNode)((0,d.unref)(_v),{label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.save`)},null,8,[`label`])]),_:1})]),_:1})]),_:1},8,[`form`])])]),_:1},8,[`is-open`]),(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(dn),"is-disabled":te.value,label:(0,d.unref)(i)(`component.address_autocomplete_selected_card.clear_address`),variant:`tertiary`,onClick:t[1]||=e=>r(`clear`)},null,8,[`icon`,`is-disabled`,`label`])]),_:1})],2))}}),Wy=(0,d.defineComponent)({__name:`AnimateHeight`,props:{duration:{default:.3}},setup(e){let t=e,n=(0,d.ref)(null),{height:r}=(0,p.useElementSize)(n),i=(0,d.ref)(!1),a=xf(),o=(0,d.computed)(()=>i.value&&!a.value?t.duration:0);return(0,d.onMounted)(()=>{setTimeout(()=>{i.value=!0},50)}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{animate:{height:(0,d.unref)(r)},transition:{bounce:0,duration:o.value,type:`spring`},tabindex:`-1`,class:`relative flex flex-col`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref_key:`el`,ref:n},[(0,d.renderSlot)(e.$slots,`default`)],512)]),_:3},8,[`animate`,`transition`]))}});function Gy(e){return e.map(e=>({type:`option`,value:e}))}var[Ky,qy]=L(`autocompleteContext`),Jy=U({slots:{input:`
|
|
522
510
|
size-full truncate bg-transparent text-xs text-primary outline-none
|
|
523
511
|
placeholder:text-placeholder
|
|
524
512
|
read-only:cursor-default
|
|
525
513
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
526
514
|
disabled:placeholder:text-fg-disabled-subtle
|
|
527
|
-
`},variants:{size:{md:{input:`px-md`},sm:{input:`px-sm`}}}}),Jy=(0,d.defineComponent)({__name:`AutocompleteLoading`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{gap:`xs`,class:`py-xs`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(3,e=>(0,d.createElementVNode)(`div`,{key:e,class:`h-6 w-full p-sm`},[((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(J),{key:e,style:(0,d.normalizeStyle)({width:`${(0,d.unref)(sy).randomBetween(40,80)}%`}),animate:!0,class:`h-3`},null,8,[`style`]))])),64))]),_:1}))}}),Yy=(0,d.defineComponent)({__name:`AutocompleteOption`,props:{label:{},value:{}},setup(e){let t=e,{getItemConfig:n,size:r}=Ky();return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ComboboxItem),{value:t.value,class:`group/combobox-item relative z-2 flex w-full cursor-default items-center rounded-sm outline-none hover:bg-secondary-hover data-highlighted:bg-secondary-hover`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(fo),{config:(0,d.unref)(n)?.(t.value)??null,label:t.label,size:(0,d.unref)(r)},{right:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxItemIndicator),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Wt),{class:`size-3.5 text-tertiary`})]),_:1})]),_:1},8,[`config`,`label`,`size`])]),_:1},8,[`value`]))}});function Xy(e,t,n,r){let{contains:i}=(0,m.useFilter)({sensitivity:`base`}),a=(0,d.ref)(t.value);(0,p.watchDebounced)(t,e=>{a.value=e},{debounce:100});let o=(0,d.computed)(()=>t.value.trim().length===0);return{isSearchEmpty:o,debouncedSearch:a,filteredItems:(0,d.computed)(()=>r===`remote`||o.value?e.value:e.value.filter(e=>e.type===`option`?i(n(e.value),t.value):!0))}}var Zy={class:`relative size-full overflow-hidden rounded-md border border-secondary bg-primary shadow-lg`},Qy={key:1,class:`block px-md pt-xs pb-sm text-xs text-disabled`},$y=(0,d.defineComponent)({__name:`AutocompleteContent`,props:{displayFn:{},isLoading:{type:Boolean,default:!1},items:{},searchMode:{default:`local`},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{default:`center`},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{default:8},popoverContainerElement:{},popoverSide:{default:`bottom`},popoverSideOffset:{default:4},popoverWidth:{}},emits:[`nextPage`,`update:search`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),{filterSearch:a}=(0,m.injectComboboxRootContext)(),{debouncedSearch:o,filteredItems:s}=Xy((0,d.computed)(()=>n.items),a,n.displayFn,n.searchMode??`local`);return(0,d.watch)(o,e=>{n.searchMode===`remote`&&r(`update:search`,e)}),(0,d.onBeforeUnmount)(()=>{n.searchMode===`remote`&&r(`update:search`,``)}),(t,a)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ComboboxPortal),{to:`body`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Sr,{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxContent),{side:n.popoverSide,align:n.popoverAlign,"align-offset":n.popoverAlignOffset,"hide-when-empty":!0,"side-offset":4,"collision-padding":8,position:`popper`,sticky:`always`,"data-animation":`popover-default`,class:`z-50 w-(--reka-combobox-trigger-width) origin-(--reka-combobox-content-transform-origin) will-change-[transform,opacity]`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,Zy,[(0,d.createVNode)(ty,{class:`max-h-[min(var(--reka-combobox-content-available-height),32rem)] p-xs`,onNext:a[0]||=e=>r(`nextPage`)},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(s),(t,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:t.type===`option`?`option-${e.displayFn(t.value)}`:`sep-${r}`},[t.type===`option`?((0,d.openBlock)(),(0,d.createBlock)(Yy,{key:0,label:n.displayFn(t.value),value:t.value},null,8,[`label`,`value`])):t.type===`separator`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:1,class:`my-xs`})):(0,d.createCommentVNode)(``,!0)],64))),128)),n.isLoading&&(0,d.unref)(s).length===0?((0,d.openBlock)(),(0,d.createBlock)(Jy,{key:0})):!n.isLoading&&(0,d.unref)(s).length===0?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,Qy,(0,d.toDisplayString)((0,d.unref)(i).t(`component.autocomplete.no_results_found`)),1)):(0,d.createCommentVNode)(``,!0)]),_:1})])]),_:1},8,[`side`,`align`,`align-offset`])]),_:1})]),_:1}))}}),eb=(0,d.defineComponent)({inheritAttrs:!1,__name:`Autocomplete`,props:(0,d.mergeModels)((0,d.mergeDefaults)({displayFn:{type:Function},getItemConfig:{type:[Function,null]},items:{},searchMode:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},placeholder:{},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{...wv,...Tv,...Ov(Ev,`iconRight`),...Dv,disableSideFlip:!0,getItemConfig:null,popoverAlign:`center`,popoverCollisionPadding:8,popoverSide:`bottom`,popoverSideOffset:4,popoverWidth:`anchor-width`,prioritizePosition:!0,searchMode:`remote`,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`,`nextPage`,`update:search`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),a=n.id??(0,d.useId)(),o=(0,d.useAttrs)(),{isError:s,ariaBusy:c,ariaDescribedBy:l,ariaInvalid:u,ariaRequired:f}=Sv(a,n),p=(0,d.computed)(()=>qy({size:n.size}));function h(e){return e==null?``:n.displayFn(e)}function g(e){e||r(`blur`)}return Gy({getItemConfig:n.getItemConfig??null,size:(0,d.computed)(()=>n.size)}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Yv,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,"help-text":n.helpText,label:n.label,class:(0,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),for:(0,d.unref)(a),"hide-error-message":n.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxRoot),{modelValue:i.value,"onUpdate:modelValue":t[2]||=e=>i.value=e,"display-value":h,"ignore-filter":!0,"open-on-click":n.items.length>1,disabled:n.isDisabled,class:`block w-full`,"onUpdate:open":g},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxAnchor),{class:`block w-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Vv,{"icon-left":n.iconLeft,"icon-right":(0,d.unref)(Jt),"is-loading":n.isLoading,"is-error":(0,d.unref)(s),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly,size:n.size},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`)]),right:(0,d.withCtx)(()=>[n.isDisabled?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ComboboxTrigger),{key:0,class:`absolute top-0 right-0 z-1 size-8 -translate-y-px`}))]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxInput),(0,d.mergeProps)((0,d.unref)(o),{id:(0,d.unref)(a),"display-value":h,name:n.name??void 0,autocomplete:n.autocomplete??void 0,placeholder:n.placeholder??void 0,readonly:n.isReadonly,disabled:n.isDisabled,"aria-describedby":(0,d.unref)(l),"aria-required":(0,d.unref)(f),"aria-busy":(0,d.unref)(c),"aria-invalid":(0,d.unref)(u),class:p.value.input(),"data-field-wrapper":``}),null,16,[`id`,`name`,`autocomplete`,`placeholder`,`readonly`,`disabled`,`aria-describedby`,`aria-required`,`aria-busy`,`aria-invalid`,`class`])]),_:3},8,[`icon-left`,`icon-right`,`is-loading`,`is-error`,`is-disabled`,`is-readonly`,`size`])]),_:3}),(0,d.createVNode)($y,{"display-fn":n.displayFn,"is-loading":n.isLoading,items:n.items,"popover-align":n.popoverAlign,"popover-align-offset":n.popoverAlignOffset,"popover-collision-padding":n.popoverCollisionPadding,"popover-side":n.popoverSide,"popover-side-offset":n.popoverSideOffset,"search-mode":n.searchMode,onNextPage:t[0]||=e=>r(`nextPage`),"onUpdate:search":t[1]||=e=>r(`update:search`,e)},null,8,[`display-fn`,`is-loading`,`items`,`popover-align`,`popover-align-offset`,`popover-collision-padding`,`popover-side`,`popover-side-offset`,`search-mode`])]),_:3},8,[`modelValue`,`open-on-click`,`disabled`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`help-text`,`label`,`class`,`style`,`for`,`hide-error-message`]))}}),tb=(0,d.defineComponent)({__name:`AddressAutocomplete`,props:(0,d.mergeModels)({size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},iconLeft:{},placeholder:{},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`,`error`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),{addressAutocompleteAdapter:a}=Z();if(a.value===null)throw Error(`[AddressAutocomplete] No adapter provided. Add an adapter to the ConfigProvider.
|
|
528
|
-
Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutocomplete ... /></ConfigProvider>`);let o=a.value,s=(0,d.ref)(!1),c=(0,d.ref)([]),l=(0,d.ref)(null),u=(0,d.computed)(()=>i.value===null?null:Zo(i.value)),f=(0,d.computed)(()=>l.value??u.value),p=(0,d.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,d.computed)(()=>
|
|
515
|
+
`},variants:{size:{md:{input:`px-md`},sm:{input:`px-sm`}}}}),Yy=(0,d.defineComponent)({__name:`AutocompleteLoading`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{gap:`xs`,class:`py-xs`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(3,e=>(0,d.createElementVNode)(`div`,{key:e,class:`h-6 w-full p-sm`},[((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(J),{key:e,style:(0,d.normalizeStyle)({width:`${(0,d.unref)(cy).randomBetween(40,80)}%`}),animate:!0,class:`h-3`},null,8,[`style`]))])),64))]),_:1}))}}),Xy=(0,d.defineComponent)({__name:`AutocompleteOption`,props:{label:{},value:{}},setup(e){let t=e,{getItemConfig:n,size:r}=qy();return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ComboboxItem),{value:t.value,class:`group/combobox-item relative z-2 flex w-full cursor-default items-center rounded-sm outline-none hover:bg-secondary-hover data-highlighted:bg-secondary-hover`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(fo),{config:(0,d.unref)(n)?.(t.value)??null,label:t.label,size:(0,d.unref)(r)},{right:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxItemIndicator),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Wt),{class:`size-3.5 text-tertiary`})]),_:1})]),_:1},8,[`config`,`label`,`size`])]),_:1},8,[`value`]))}});function Zy(e,t,n,r){let{contains:i}=(0,m.useFilter)({sensitivity:`base`}),a=(0,d.ref)(t.value);(0,p.watchDebounced)(t,e=>{a.value=e},{debounce:100});let o=(0,d.computed)(()=>t.value.trim().length===0);return{isSearchEmpty:o,debouncedSearch:a,filteredItems:(0,d.computed)(()=>r===`remote`||o.value?e.value:e.value.filter(e=>e.type===`option`?i(n(e.value),t.value):!0))}}var Qy={class:`relative size-full overflow-hidden rounded-md border border-secondary bg-primary shadow-lg`},$y={key:1,class:`block px-md pt-xs pb-sm text-xs text-disabled`},eb=(0,d.defineComponent)({__name:`AutocompleteContent`,props:{displayFn:{},isLoading:{type:Boolean,default:!1},items:{},searchMode:{default:`local`},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{default:`center`},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{default:8},popoverContainerElement:{},popoverSide:{default:`bottom`},popoverSideOffset:{default:4},popoverWidth:{}},emits:[`nextPage`,`update:search`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),{filterSearch:a}=(0,m.injectComboboxRootContext)(),{debouncedSearch:o,filteredItems:s}=Zy((0,d.computed)(()=>n.items),a,n.displayFn,n.searchMode??`local`);return(0,d.watch)(o,e=>{n.searchMode===`remote`&&r(`update:search`,e)}),(0,d.onBeforeUnmount)(()=>{n.searchMode===`remote`&&r(`update:search`,``)}),(t,a)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ComboboxPortal),{to:`body`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Sr,{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxContent),{side:n.popoverSide,align:n.popoverAlign,"align-offset":n.popoverAlignOffset,"hide-when-empty":!0,"side-offset":4,"collision-padding":8,position:`popper`,sticky:`always`,"data-animation":`popover-default`,class:`z-50 w-(--reka-combobox-trigger-width) origin-(--reka-combobox-content-transform-origin) will-change-[transform,opacity]`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,Qy,[(0,d.createVNode)(ny,{class:`max-h-[min(var(--reka-combobox-content-available-height),32rem)] p-xs`,onNext:a[0]||=e=>r(`nextPage`)},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(s),(t,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:t.type===`option`?`option-${e.displayFn(t.value)}`:`sep-${r}`},[t.type===`option`?((0,d.openBlock)(),(0,d.createBlock)(Xy,{key:0,label:n.displayFn(t.value),value:t.value},null,8,[`label`,`value`])):t.type===`separator`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{key:1,class:`my-xs`})):(0,d.createCommentVNode)(``,!0)],64))),128)),n.isLoading&&(0,d.unref)(s).length===0?((0,d.openBlock)(),(0,d.createBlock)(Yy,{key:0})):!n.isLoading&&(0,d.unref)(s).length===0?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,$y,(0,d.toDisplayString)((0,d.unref)(i).t(`component.autocomplete.no_results_found`)),1)):(0,d.createCommentVNode)(``,!0)]),_:1})])]),_:1},8,[`side`,`align`,`align-offset`])]),_:1})]),_:1}))}}),tb=(0,d.defineComponent)({inheritAttrs:!1,__name:`Autocomplete`,props:(0,d.mergeModels)((0,d.mergeDefaults)({displayFn:{type:Function},getItemConfig:{type:[Function,null]},items:{},searchMode:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},placeholder:{},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{...wv,...Tv,...Ov(Ev,`iconRight`),...Dv,disableSideFlip:!0,getItemConfig:null,popoverAlign:`center`,popoverCollisionPadding:8,popoverSide:`bottom`,popoverSideOffset:4,popoverWidth:`anchor-width`,prioritizePosition:!0,searchMode:`remote`,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`,`nextPage`,`update:search`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),a=n.id??(0,d.useId)(),o=(0,d.useAttrs)(),{isError:s,ariaBusy:c,ariaDescribedBy:l,ariaInvalid:u,ariaRequired:f}=Sv(a,n),p=(0,d.computed)(()=>Jy({size:n.size}));function h(e){return e==null?``:n.displayFn(e)}function g(e){e||r(`blur`)}return Ky({getItemConfig:n.getItemConfig??null,size:(0,d.computed)(()=>n.size)}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,"help-text":n.helpText,label:n.label,class:(0,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),for:(0,d.unref)(a),"hide-error-message":n.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxRoot),{modelValue:i.value,"onUpdate:modelValue":t[2]||=e=>i.value=e,"display-value":h,"ignore-filter":!0,"open-on-click":n.items.length>1,disabled:n.isDisabled,class:`block w-full`,"onUpdate:open":g},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxAnchor),{class:`block w-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Hv,{"icon-left":n.iconLeft,"icon-right":(0,d.unref)(Jt),"is-loading":n.isLoading,"is-error":(0,d.unref)(s),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly,size:n.size},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`)]),right:(0,d.withCtx)(()=>[n.isDisabled?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ComboboxTrigger),{key:0,class:`absolute top-0 right-0 z-1 size-8 -translate-y-px`}))]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.ComboboxInput),(0,d.mergeProps)((0,d.unref)(o),{id:(0,d.unref)(a),"display-value":h,name:n.name??void 0,autocomplete:n.autocomplete??void 0,placeholder:n.placeholder??void 0,readonly:n.isReadonly,disabled:n.isDisabled,"aria-describedby":(0,d.unref)(l),"aria-required":(0,d.unref)(f),"aria-busy":(0,d.unref)(c),"aria-invalid":(0,d.unref)(u),class:p.value.input(),"data-field-wrapper":``}),null,16,[`id`,`name`,`autocomplete`,`placeholder`,`readonly`,`disabled`,`aria-describedby`,`aria-required`,`aria-busy`,`aria-invalid`,`class`])]),_:3},8,[`icon-left`,`icon-right`,`is-loading`,`is-error`,`is-disabled`,`is-readonly`,`size`])]),_:3}),(0,d.createVNode)(eb,{"display-fn":n.displayFn,"is-loading":n.isLoading,items:n.items,"popover-align":n.popoverAlign,"popover-align-offset":n.popoverAlignOffset,"popover-collision-padding":n.popoverCollisionPadding,"popover-side":n.popoverSide,"popover-side-offset":n.popoverSideOffset,"search-mode":n.searchMode,onNextPage:t[0]||=e=>r(`nextPage`),"onUpdate:search":t[1]||=e=>r(`update:search`,e)},null,8,[`display-fn`,`is-loading`,`items`,`popover-align`,`popover-align-offset`,`popover-collision-padding`,`popover-side`,`popover-side-offset`,`search-mode`])]),_:3},8,[`modelValue`,`open-on-click`,`disabled`])]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`help-text`,`label`,`class`,`style`,`for`,`hide-error-message`]))}}),nb=(0,d.defineComponent)({__name:`AddressAutocomplete`,props:(0,d.mergeModels)({size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},iconLeft:{},placeholder:{},disableSideFlip:{type:Boolean},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverAnimationName:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`,`error`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),{addressAutocompleteAdapter:a}=Z();if(a.value===null)throw Error(`[AddressAutocomplete] No adapter provided. Add an adapter to the ConfigProvider.
|
|
516
|
+
Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutocomplete ... /></ConfigProvider>`);let o=a.value,s=(0,d.ref)(!1),c=(0,d.ref)([]),l=(0,d.ref)(null),u=(0,d.computed)(()=>i.value===null?null:Zo(i.value)),f=(0,d.computed)(()=>l.value??u.value),p=(0,d.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,d.computed)(()=>Gy(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 _(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,d.openBlock)(),(0,d.createBlock)(Wy,{class:`max-w-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.AnimatePresence),{mode:`wait`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:p.value===null?`autocomplete`:`card`,class:(0,d.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,d.withCtx)(()=>[p.value===null?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(tb),(0,d.mergeProps)({key:1},n,{"model-value":f.value,items:m.value,"is-loading":s.value,"display-fn":e=>(0,d.unref)(Qo)(e),"search-mode":`remote`,onBlur:t[3]||=e=>r(`blur`),"onUpdate:search":h,"onUpdate:modelValue":_}),{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`)]),_:3},16,[`model-value`,`items`,`is-loading`,`display-fn`])):((0,d.openBlock)(),(0,d.createBlock)(Uy,{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}))}}),rb={},ib={class:`rounded-lg border border-secondary`};function ab(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`,ib,[(0,d.renderSlot)(e.$slots,`default`)])}var ob=W(rb,[[`render`,ab]]),sb={};function cb(e,t){return(0,d.openBlock)(),(0,d.createBlock)(d.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,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})}var lb=W(sb,[[`render`,cb]]),ub=`14rem`,db=`3rem`,fb=`0.5625rem`,pb=`1rem`,mb=`1.875rem`,hb=`1.875rem`,gb=`0.1875rem`,_b=`0.1875rem`,vb=`1.875rem`,yb=(0,d.ref)(!1),bb=(0,d.ref)(ub),xb=(0,d.ref)(`hidden`);function Sb(){let e=(0,p.useBreakpoints)({xl:960}),t=(0,p.useLocalStorage)(`dashboard-sidebar-is-open`,!0),n=e.smaller(`xl`),r=(0,d.computed)({get:()=>n.value?yb.value:t.value,set:e=>{n.value?yb.value=e:(xb.value===`minified`&&(bb.value=e?ub:db),t.value=e)}}),i=fb,a=pb,o=mb,s=hb,c=gb,l=_b,u=vb;function f(){n.value&&(yb.value=!1)}function m(e){if(xb.value=e,e===`minified`){bb.value=r.value?ub:db;return}bb.value=ub}return{isFloatingSidebar:n,isSidebarOpen:r,closeIfFloatingSidebar:f,collapsedVariant:xb,minifiedSidebarWidth:db,setCollapsedVariant:m,sidebarAvatarPadding:l,sidebarContainerPadding:i,sidebarIconCellSize:o,sidebarIconSize:a,sidebarLinkHeight:s,sidebarLogoHeight:u,sidebarLogoPadding:c,sidebarWidth:bb}}var Cb={class:`flex h-12 items-center justify-center`,type:`button`},wb={class:`flex w-full flex-col overflow-hidden`},Tb=(0,d.defineComponent)({__name:`MainSidebarFooterAccountCard`,props:{name:{},actions:{},avatarUrl:{},email:{}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r,sidebarIconCellSize:i}=Sb(),a=`${i} 1fr`;return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)(Wo,{actions:t.actions,"current-context-only":!0,"popover-side":`right`,"popover-align":`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,Cb,[(0,d.createVNode)((0,d.unref)(ob),{class:(0,d.normalizeClass)([(0,d.unref)(r)===`minified`&&!(0,d.unref)(n)?`border-transparent`:`
|
|
529
517
|
border-fg-primary/10 bg-fg-primary/3 p-md py-sm pl-xs
|
|
530
518
|
hover:bg-fg-primary/4
|
|
531
|
-
`,`grid w-full gap-xs overflow-hidden text-left duration-100`]),style:(0,d.normalizeStyle)({gridTemplateColumns:a})},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{align:`center`,justify:`center`,class:`h-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(za,{name:t.name??t.email,src:t.avatarUrl,"is-static-color":!0,size:`xs`},null,8,[`name`,`src`])]),_:1}),(0,d.createVNode)(cb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(r)!==`minified`||(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,justify:`between`,align:`center`,gap:`xxs`,class:`overflow-hidden`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,Cb,[(0,d.createVNode)((0,d.unref)(G),{text:t.name??`-`,"disable-tooltip":!0,class:`w-full text-xs font-semibold text-primary`},null,8,[`text`]),(0,d.createVNode)((0,d.unref)(G),{text:t.email,"disable-tooltip":!0,class:`w-full text-xs text-tertiary`},null,8,[`text`])]),(0,d.createVNode)(q,{align:`start`,class:`h-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Jt),{class:`mt-xxs size-4 shrink-0 text-quaternary`})]),_:1})]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`class`,`style`])])]),_:1})]),_:1},8,[`actions`]))}}),Tb={};function Eb(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`)}var Db=W(Tb,[[`render`,Eb]]),Ob=(0,d.defineComponent)({__name:`MainSidebarGlobalSearch`,emits:[`click`],setup(e,{emit:t}){let n=t,r=(0,h.useI18n)();function i(){n(`click`)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Q),{icon:(0,d.unref)(tr),label:(0,d.unref)(r).t(`components.sidebar.global_search.label`),variant:`tertiary`,onClick:i},null,8,[`icon`,`label`]))}}),kb=(0,d.defineComponent)({__name:`MainSidebarHeaderContainer`,setup(e){let{sidebarLogoHeight:t}=xb();return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{style:(0,d.normalizeStyle)({height:(0,d.unref)(t)})},[(0,d.renderSlot)(e.$slots,`default`)],4))}}),Ab=[`src`,`alt`],jb=(0,d.defineComponent)({__name:`Logo`,props:{alt:{},size:{},src:{}},setup(e){let t=e,n=(0,d.ref)(!1);return(e,r)=>n.value?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,class:(0,d.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,d.openBlock)(),(0,d.createElementBlock)(`img`,{key:1,src:t.src,alt:t.alt,class:(0,d.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,Ab))}}),Mb={key:0,class:`text-sm font-semibold text-secondary`},Nb={key:0},Pb=(0,d.defineComponent)({__name:`MainSidebarHeaderLogoWithText`,props:{name:{},url:{}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r,sidebarLogoPadding:i}=xb();return(e,a)=>((0,d.openBlock)(),(0,d.createBlock)(kb,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{justify:`between`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{style:(0,d.normalizeStyle)({padding:(0,d.unref)(i)})},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(jb,{src:t.url,alt:`Logo`,size:`xs`},null,8,[`src`]),(0,d.createVNode)(cb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(r)!==`minified`||(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,Mb,(0,d.toDisplayString)(t.name),1)):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`style`]),(0,d.createVNode)(cb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(r)!==`minified`||(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Nb,[(0,d.renderSlot)(e.$slots,`right`)])):(0,d.createCommentVNode)(``,!0)]),_:3})]),_:3})]),_:3}))}}),Fb={class:`truncate text-xs text-secondary`},Ib=(0,d.defineComponent)({__name:`MainSidebarHeaderReturnToApp`,props:{to:{}},setup(e){let t=e,n=(0,h.useI18n)(),{isSidebarOpen:r,closeIfFloatingSidebar:i,collapsedVariant:a,sidebarIconCellSize:o,sidebarIconSize:s}=xb(),c=`${o} 1fr`;return(e,l)=>((0,d.openBlock)(),(0,d.createBlock)(kb,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{class:`w-fit`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(K,{"keyboard-shortcut":{key:`Backspace`,mod:!0},label:(0,d.unref)(n).t(`components.sidebar.return_to_app`)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(y.RouterLink),{to:t.to,style:(0,d.normalizeStyle)({height:(0,d.unref)(o),gridTemplateColumns:c}),"aria-label":(0,d.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,d.unref)(i)()},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{style:(0,d.normalizeStyle)({width:(0,d.unref)(o),height:(0,d.unref)(o)}),align:`center`,justify:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Qt),{style:(0,d.normalizeStyle)({width:(0,d.unref)(s),height:(0,d.unref)(s)}),class:`shrink-0 text-secondary`},null,8,[`style`])]),_:1},8,[`style`]),(0,d.createVNode)(cb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(a)!==`minified`||(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createBlock)(R,{key:0,align:`center`,class:`overflow-hidden pr-md`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`span`,Fb,(0,d.toDisplayString)((0,d.unref)(n).t(`components.sidebar.return_to_app`)),1)]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`to`,`style`,`aria-label`])]),_:1})]),_:1},8,[`label`])]),_:1})]),_:1}))}}),Lb={class:`w-full`},Rb=(0,d.defineComponent)({__name:`MainSidebarNavigationGroup`,props:{label:{default:null}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r}=xb();return(e,i)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Lb,[t.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`span`,{key:0,class:(0,d.normalizeClass)([{"opacity-0":(0,d.unref)(r)===`minified`&&!(0,d.unref)(n)},`block px-sm pb-sm text-xs font-medium whitespace-nowrap text-quaternary transition-opacity duration-150 ease-in-out`])},(0,d.toDisplayString)(t.label),3)),(0,d.createVNode)((0,d.unref)(q),{align:`start`,gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]))}}),zb=(0,d.defineComponent)({__name:`MainSidebarNavigationGroups`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{gap:`2xl`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),[Bb,Vb]=L(`MainSidebarNavigationLinkContextKey`),Hb=(0,d.defineComponent)({__name:`MainSidebarNavigationLinkProvider`,props:{isActive:{type:Boolean}},setup(e){let t=e;return Bb({isActive:(0,d.computed)(()=>t.isActive)}),(e,t)=>(0,d.renderSlot)(e.$slots,`default`)}}),Ub=[`data-active`],Wb={class:`truncate text-xs font-medium whitespace-nowrap text-secondary duration-100 group-hover:text-primary group-data-active:text-brand-secondary`},Gb=(0,d.defineComponent)({__name:`MainSidebarNavigationLink`,props:{isActive:{type:Function,default:()=>!1},icon:{},keyboardShortcut:{default:null},label:{},to:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,{isSidebarOpen:i,closeIfFloatingSidebar:a,collapsedVariant:o,sidebarIconCellSize:s,sidebarIconSize:c,sidebarLinkHeight:l}=xb(),u=(0,y.useRoute)();function f(){a(),r(`click`)}let p=`${s} 1fr`,m=(0,d.computed)(()=>!!(o.value===`hidden`&&n.keyboardShortcut===null||o.value===`minified`&&i.value&&n.keyboardShortcut===null));return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(K,{"is-disabled":m.value,"keyboard-shortcut":n.keyboardShortcut,label:n.label,"popover-side":`right`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(y.RouterLink),{to:n.to,class:`w-full`,onClick:f},{default:(0,d.withCtx)(({isActive:t})=>[(0,d.createVNode)(Hb,{"is-active":t},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{"data-active":t||n.isActive((0,d.unref)(u))||void 0,style:(0,d.normalizeStyle)({height:(0,d.unref)(l),gridTemplateColumns:p}),class:`group grid rounded-md duration-100 hover:bg-fg-primary/4 data-active:bg-fg-primary/4`},[(0,d.createVNode)(R,{style:(0,d.normalizeStyle)({width:(0,d.unref)(s),height:(0,d.unref)(s)}),align:`center`,justify:`center`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(n.icon),{style:(0,d.normalizeStyle)({width:(0,d.unref)(c),height:(0,d.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,d.createVNode)(cb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(o)!==`minified`||(0,d.unref)(i)?((0,d.openBlock)(),(0,d.createBlock)(R,{key:0,align:`center`,justify:`between`,gap:`md`,class:`overflow-hidden pr-md`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`span`,Wb,(0,d.toDisplayString)(n.label),1),(0,d.createVNode)(R,{gap:`lg`,align:`center`,class:`shrink-0`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`)]),_:3})]),_:3})):(0,d.createCommentVNode)(``,!0)]),_:3})],12,Ub)]),_:2},1032,[`is-active`])]),_:3},8,[`to`])]),_:3})]),_:3},8,[`is-disabled`,`keyboard-shortcut`,`label`]))}}),Kb=(0,d.defineComponent)({__name:`BadgeSeparator`,setup(e){let{variants:t}=Av();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{class:(0,d.normalizeClass)((0,d.unref)(t).separator()),orientation:`vertical`},null,8,[`class`]))}}),qb=(0,d.defineComponent)({__name:`MainSidebarNavigationLinkBadge`,props:{label:{}},setup(e){let t=e,{isActive:n}=Vb();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Iv),{label:t.label,color:(0,d.unref)(n)?`brand`:`gray`,size:`sm`},null,8,[`label`,`color`]))}}),Jb={},Yb={class:`size-2 rounded-full bg-success-500`};function Xb(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`,Yb)}var Zb=W(Jb,[[`render`,Xb]]),Qb={class:`flex h-full flex-col justify-between overflow-hidden text-primary`},$b=(0,d.defineComponent)({__name:`MainSidebarContent`,setup(e){let{sidebarContainerPadding:t}=xb();return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Qb,[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)({paddingLeft:(0,d.unref)(t),paddingRight:(0,d.unref)(t),paddingBottom:(0,d.unref)(t)})},[(0,d.renderSlot)(e.$slots,`header`)],4),(0,d.createElementVNode)(`nav`,{style:(0,d.normalizeStyle)({padding:(0,d.unref)(t)}),class:`flex h-full flex-col justify-between gap-2xl overflow-y-auto`},[(0,d.renderSlot)(e.$slots,`navigation`),(0,d.renderSlot)(e.$slots,`bottom-navigation`)],4),(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)({padding:(0,d.unref)(t)}),class:`flex flex-col gap-sm`},[(0,d.renderSlot)(e.$slots,`footer`)],4)]))}}),ex=(0,d.defineComponent)({__name:`MainSidebarTransition`,setup(e){let t=xf();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{initial:{transform:`translateX(-100%)`},animate:{transform:`translateX(0%)`},exit:{transform:`translateX(-100%)`},transition:{duration:(0,d.unref)(t)?0:.3,type:`spring`,bounce:0}},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`transition`]))}}),tx={class:`size-full rounded-xl border border-secondary bg-secondary py-md shadow-lg/5`},nx=(0,d.defineComponent)({__name:`MainSidebar`,props:{collapsedVariant:{default:`hidden`}},setup(e){let t=e,{isFloatingSidebar:n,isSidebarOpen:r,setCollapsedVariant:i,sidebarWidth:a}=xb(),o=(0,h.useI18n)(),s=xf();return i(t.collapsedVariant),(t,i)=>(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogRoot),{key:0,open:(0,d.unref)(r),"onUpdate:open":i[0]||=e=>(0,d.isRef)(r)?r.value=e:null},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogContent),{key:0,"as-child":!0,"force-mount":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(ex,{class:`absolute z-6 h-full w-64 p-md outline-none`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,tx,[(0,d.createVNode)((0,d.unref)(m.DialogTitle),{as:`h1`,class:`sr-only`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(o).t(`components.sidebar.title`)),1)]),_:1}),(0,d.createVNode)((0,d.unref)(m.DialogDescription),{class:`sr-only`,as:`p`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(o).t(`components.sidebar.description`)),1)]),_:1}),(0,d.createVNode)($b,null,{header:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`header`)]),navigation:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`footer`)]),_:3})])]),_:3})]),_:3})):(0,d.createCommentVNode)(``,!0),(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogOverlay),{key:1,"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.Motion),{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:(0,d.unref)(s)?0:.3},class:`absolute inset-0 z-5 bg-black/10`},null,8,[`transition`])]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:3})]),_:3},8,[`open`])):e.collapsedVariant===`hidden`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{key:1,initial:!1},{default:(0,d.withCtx)(()=>[(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createBlock)(ex,{key:0,style:(0,d.normalizeStyle)({width:(0,d.unref)(a)}),class:`absolute h-full pt-md`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($b,null,{header:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`header`)]),navigation:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`footer`)]),_:3})]),_:3},8,[`style`])):(0,d.createCommentVNode)(``,!0)]),_:3})):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:2,initial:!1,animate:{width:(0,d.unref)(a)},transition:{duration:(0,d.unref)(s)?0:.3,type:`spring`,bounce:0},style:(0,d.normalizeStyle)({width:(0,d.unref)(a)}),class:`absolute z-1 h-full overflow-hidden pt-[0.475rem]`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($b,null,{header:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`header`)]),navigation:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`footer`)]),_:3})]),_:3},8,[`animate`,`transition`,`style`]))}}),rx=(0,d.defineComponent)({__name:`TextShimmer`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),ix={class:`size-full p-md pl-none`},ax={class:`size-full rounded-2xl border border-secondary bg-primary shadow-sm/5`},ox={class:`text-sm font-medium`},sx=(0,d.defineComponent)({__name:`ApplicationLoadingView`,props:{isFetchingAuthUser:{type:Boolean}},setup(e){let t=e,n=(0,h.useI18n)(),r=(0,y.useRouter)(),{isFloatingSidebar:i,isSidebarOpen:a,sidebarWidth:o}=xb(),s=(0,d.ref)(!0),c=(0,d.ref)(!1),l=xf();r.isReady().then(()=>{s.value=!1});let u=(0,d.computed)(()=>t.isFetchingAuthUser||s.value);return setTimeout(()=>{c.value=!0},500),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),null,{default:(0,d.withCtx)(()=>[u.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:0,exit:{opacity:0},transition:{duration:(0,d.unref)(l)?0:.2},style:(0,d.normalizeStyle)({paddingLeft:(0,d.unref)(a)&&!(0,d.unref)(i)?(0,d.unref)(o):`0.5rem`}),class:`absolute inset-0 z-99 size-full bg-secondary`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,ix,[(0,d.createElementVNode)(`div`,ax,[c.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{key:0,class:`size-full`,align:`center`,justify:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(rx),null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`h1`,ox,(0,d.toDisplayString)((0,d.unref)(n).t(`component.dashboard_page_loading_state.loading`)),1)]),_:1})]),_:1})):(0,d.createCommentVNode)(``,!0)])])]),_:1},8,[`transition`,`style`])):(0,d.createCommentVNode)(``,!0)]),_:1}))}}),cx={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`},lx={class:`grid grid-cols-[auto_auto] items-center gap-x-md gap-y-none`},ux={class:`flex`},dx=(0,d.defineComponent)({__name:`ApplicationOfflineWarning`,setup(e){let t=(0,h.useI18n)(),{isOnline:n}=(0,p.useNetwork)(),r=(0,d.ref)(!1),i=(0,d.computed)(()=>!n.value);function a(){r.value=!0}(0,d.watch)(i,e=>{e&&(r.value=!1)});let o=xf();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),null,{default:(0,d.withCtx)(()=>[i.value&&!r.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.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,d.unref)(o)?0:.3},"while-hover":`hovered`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,{class:`group absolute top-4 left-1/2 z-10 -translate-x-1/2`,onClick:a},[(0,d.createElementVNode)(`div`,cx,[(0,d.createElementVNode)(`div`,lx,[(0,d.createVNode)((0,d.unref)(pr),{class:`size-3 text-tertiary`}),(0,d.createVNode)((0,d.unref)(G),{text:(0,d.unref)(t).t(`component.offline_warning.title`),class:`text-xs text-primary`},null,8,[`text`]),n[0]||=(0,d.createElementVNode)(`span`,null,null,-1),(0,d.createVNode)((0,d.unref)(g.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,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,ux,[(0,d.createVNode)((0,d.unref)(G),{text:(0,d.unref)(t).t(`component.offline_warning.dismiss`),class:`text-xs text-disabled`},null,8,[`text`])])]),_:1})])])])]),_:1})]),_:1},8,[`transition`])):(0,d.createCommentVNode)(``,!0)]),_:1}))}}),fx={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`},px=(0,d.defineComponent)({__name:`ApplicationSkipToMainContent`,setup(e){let t=(0,h.useI18n)();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`a`,fx,(0,d.toDisplayString)((0,d.unref)(t).t(`component.skip_to_main_content_link.label`)),1)]),_:1}))}}),mx={class:`flex items-center gap-x-xs`},hx={key:0,class:`flex items-center gap-x-xs text-disabled`},gx={class:`text-secondary`},_x={key:2,class:`text-disabled`},vx=(0,d.defineComponent)({__name:`CommandMenuActionItem`,props:{action:{},ctx:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=(0,d.computed)(()=>(0,f.resolveActionBreadcrumbs)(n.action,n.ctx)),a=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,mx,[i.value.length>0?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,hx,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(i.value,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:t,gap:`xs`},{default:(0,d.withCtx)(()=>[a.value!==null&&t===0?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(a.value),{key:0,class:`size-3.5 text-tertiary`})):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`span`,null,(0,d.toDisplayString)(e.label),1),(0,d.createVNode)((0,d.unref)(nn),{class:`size-3 text-tertiary`})]),_:2},1024))),128))])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(R),{gap:`sm`},{default:(0,d.withCtx)(()=>[(0,d.unref)(f.resolveActionAvatar)(e.action,e.ctx)===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),(0,d.mergeProps)({key:0},(0,d.unref)(f.resolveActionAvatar)(e.action,e.ctx),{size:`xxs`}),null,16)),e.action.icon!==void 0&&i.value.length===0?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.action.icon(e.ctx)),{key:1,class:`size-3.5 text-secondary`})):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`span`,gx,(0,d.toDisplayString)((0,d.unref)(f.resolveActionName)(e.action,e.ctx)),1),(0,d.unref)(f.resolveActionHint)(e.action,e.ctx)?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,_x,(0,d.toDisplayString)((0,d.unref)(f.resolveActionHint)(e.action,e.ctx)),1)):(0,d.createCommentVNode)(``,!0)]),_:1})]),(0,d.unref)(f.resolveActionSelected)(e.action,e.ctx)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Wt),{key:0,class:`size-3 text-primary`})):(0,d.createCommentVNode)(``,!0),e.action.keyboardShortcut===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Pr),{key:1,"keyboard-shortcut":e.action.keyboardShortcut},null,8,[`keyboard-shortcut`]))]),_:1},8,[`value`,`data-id`]))}}),yx={class:`p-lg`,role:`status`,"aria-live":`polite`},bx={class:`sr-only`},xx=(0,d.defineComponent)({__name:`CommandMenuLoadingSkeleton`,setup(e){let t=(0,h.useI18n)();return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,yx,[(0,d.createElementVNode)(`span`,bx,(0,d.toDisplayString)((0,d.unref)(t).t(`component.command_menu.loading_actions`)),1),(0,d.createVNode)((0,d.unref)(q),{gap:`4xl`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(2,e=>(0,d.createElementVNode)(`div`,{key:e},[(0,d.createVNode)((0,d.unref)(J),{class:`h-2 w-20`}),(0,d.createVNode)((0,d.unref)(q),{class:`mt-xl`,gap:`lg`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(J),{class:`h-3 w-40`}),(0,d.createVNode)((0,d.unref)(J),{class:`h-3 w-24`}),(0,d.createVNode)((0,d.unref)(J),{class:`h-3 w-48`}),(0,d.createVNode)((0,d.unref)(J),{class:`h-3 w-40`})]),_:1})])),64))]),_:1})]))}}),Sx={class:`relative flex items-center border-b border-secondary`},Cx={class:`text-xxs text-tertiary`},wx={class:`text-xxs text-disabled`},Tx={key:0,class:`h-full border-l border-secondary p-xl`},Ex=W((0,d.defineComponent)({__name:`CommandMenu`,props:(0,d.mergeModels)({action:{}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,d.mergeModels)([`afterLeave`,`close`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`isOpen`),a=(0,f.useActionManagerStore)(),o=(0,f.useActionRegistryStore)().allActions(),s=a.focusedModels,c=(0,h.useI18n)(),l=(0,d.useTemplateRef)(`listboxRoot`),u=(0,d.useTemplateRef)(`listboxContent`),p=ft(`Shift`),g=(0,d.ref)([]),_=(0,d.ref)(``),{isLoadingActions:v,buildContext:y,refreshActions:b,resolvedActions:x,subActionsMetaMap:S}=(0,f.useCommandMenuActions)({actionsSnapshot:o,focusedModelsSnapshot:s,listboxContentRef:u,listboxRootRef:l,manager:a,navStack:g,searchInput:_}),{highlightedActionId:C,activateAction:w,breadcrumbs:T,currentParent:ee,placeholder:te,preview:E,onKeyDown:ne}=(0,f.useCommandMenuNavigation)({isShiftKeyHeld:p,buildContext:y,emit:r,listboxRootRef:l,manager:a,navStack:g,refreshActions:b,resolvedActions:x,scrollToTopOfGroup:A,searchInput:_,subActionsMetaMap:S}),{hasNavigated:D,isBouncing:O}=(0,f.useCommandMenuAnimation)(i,()=>g.value.length),k=(0,d.computed)(()=>(0,f.buildCommandMenuGroups)(x.value,y()));n.action!==void 0&&w(n.action),b();function A(){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 j(e){e||r(`close`)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogRoot),{open:i.value,"onUpdate:open":[t[3]||=e=>i.value=e,j]},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DialogContent),{class:(0,d.normalizeClass)([{bouncing:(0,d.unref)(O),navigated:(0,d.unref)(D)},`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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DialogTitle),{class:`sr-only`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(c).t(`component.command_menu.title`)),1)]),_:1}),(0,d.createVNode)((0,d.unref)(m.DialogDescription),{class:`sr-only`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(c).t(`component.command_menu.title`)),1)]),_:1}),(0,d.createVNode)((0,d.unref)(m.ListboxRoot),{ref:`listboxRoot`,"highlight-on-hover":!0,class:`flex flex-col overflow-hidden`,onHighlight:t[1]||=e=>C.value=e?.value??null},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,Sx,[(0,d.unref)(T).length>0&&(0,d.unref)(ee)?.forceAsRootMenu!==!0?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,as:`ul`,gap:`xs`,class:`-mr-sm pl-lg`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(T),(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:t},[(0,d.createVNode)((0,d.unref)(Iv),{label:e,size:`sm`},null,8,[`label`]),t===(0,d.unref)(T).length-1?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(nn),{key:0,class:`size-3 text-tertiary`}))],64))),128))]),_:1})):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(m.ListboxFilter),{modelValue:_.value,"onUpdate:modelValue":t[0]||=e=>_.value=e,placeholder:(0,d.unref)(te),class:`block w-full p-lg text-xs text-secondary outline-none`,onKeydown:(0,d.unref)(ne)},null,8,[`modelValue`,`placeholder`,`onKeydown`])]),(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)([{"grid-cols-2":(0,d.unref)(E)!==null},`grid`])},[((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxContent),{key:(0,d.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,d.withCtx)(()=>[(0,d.unref)(x).length>0?((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,{key:0},(0,d.renderList)(k.value,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxGroup),{key:e.key,class:`p-xs`},{default:(0,d.withCtx)(()=>[e.label!==null&&(e.showIfOnlyGroup||(0,d.unref)(ee)===null||k.value.length>1)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxGroupLabel),{key:0,class:`px-md py-xs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{gap:`xs`},{default:(0,d.withCtx)(()=>[e.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.icon),{key:0,class:`size-3 text-disabled`})),e.category===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[(0,d.createElementVNode)(`span`,Cx,(0,d.toDisplayString)(e.category),1),t[4]||=(0,d.createElementVNode)(`span`,{class:`text-xxs text-tertiary`},`•`,-1)],64)),(0,d.createElementVNode)(`span`,wx,(0,d.toDisplayString)(e.label),1)]),_:2},1024)]),_:2},1024)):(0,d.createCommentVNode)(``,!0),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.items,e=>((0,d.openBlock)(),(0,d.createBlock)(vx,{key:e.id,action:e,ctx:(0,d.unref)(y)(),onSelect:t=>(0,d.unref)(w)(e)},null,8,[`action`,`ctx`,`onSelect`]))),128))]),_:2},1024))),128)):(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createBlock)(xx,{key:1})):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:2,text:(0,d.unref)(c).t(`component.command_menu.no_results`,{query:_.value}),class:`flex p-lg text-xs text-tertiary`},null,8,[`text`]))]),_:1})),(0,d.unref)(E)===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Tx,[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)((0,d.unref)(E))))]))],2)]),_:1},512)]),_:1},8,[`class`]),(0,d.createVNode)((0,d.unref)(m.DialogOverlay),{class:`absolute inset-0 z-39 bg-black/5 dark:bg-black/20`,"data-overlay":``})]),_:1},8,[`open`]))}}),[[`__scopeId`,`data-v-d2f841e7`]]);function Dx(){let e=(0,h.useI18n)(),t=U_(),n=t.create(Ex);return(0,f.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 Ox=(0,d.defineComponent)({__name:`DialogBody`,setup(e){let{bodyRef:t,style:n}=L_();function r(e){t.value=e??null}return(0,d.onBeforeUnmount)(()=>{t.value=null}),(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{ref:r,class:(0,d.normalizeClass)((0,d.unref)(n).body()),"data-dialog-body":``},[(0,d.renderSlot)(e.$slots,`default`)],2))}}),kx=(0,d.defineComponent)({__name:`DialogContainer`,setup(e){let{close:t,overlays:n,unmount:r}=U_();function i(e,n){t(e,n)}function a(e){r(e)}return(e,t)=>((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(n),e=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:e.id},[e.isMounted?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.component),(0,d.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,d.createCommentVNode)(``,!0)],64))),128))}}),Ax=(0,d.defineComponent)({__name:`DialogFooterSecondary`,props:{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,d.openBlock)(),(0,d.createBlock)(g_,(0,d.mergeProps)(n,{variant:`secondary`,onClick:t[0]||=e=>r(`click`)}),null,16))}}),jx=(0,d.defineComponent)({__name:`DialogFooterSubmit`,props:{isDestructive:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},label:{}},setup(e){let t=e,{form:n}=F_();return it(`Mod+Enter`,()=>{n.submit()}),(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),{label:t.label,"is-loading":(0,d.unref)(n).isSubmitting.value,"is-disabled":t.isDisabled,"keyboard-shortcut":{key:`Enter`,mod:!0},variant:t.isDestructive?`destructive-primary`:`primary`,onClick:(0,d.unref)(n).submit},null,8,[`label`,`is-loading`,`is-disabled`,`variant`,`onClick`]))}});function Mx(e){let t=U_();return{triggerProps:(0,d.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[Nx,Px]=L(`formDialogContext`),Fx=(0,d.defineComponent)({__name:`FormDialog`,props:{form:{},promptOnUnsavedChanges:{type:Boolean,default:!1},renderOwnFormComponent:{type:Boolean},chin:{},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},size:{default:`md`}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=(0,d.useId)();Nx({formId:i,form:n.form,promptOnUnsavedChanges:(0,d.computed)(()=>n.promptOnUnsavedChanges??!1)});function a(){r(`close`)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(G_,{"show-close-button":n.showCloseButton,size:n.size,"prevent-click-outside":n.preventClickOutside,"prevent-esc":n.preventEsc,onClose:a},{default:(0,d.withCtx)(()=>[n.renderOwnFormComponent?(0,d.renderSlot)(e.$slots,`default`,{key:0,formId:(0,d.unref)(i)}):((0,d.openBlock)(),(0,d.createBlock)(tv,{key:1,form:n.form,"prompt-on-unsaved-changes":!1,class:`flex size-full flex-col overflow-hidden`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`,{formId:(0,d.unref)(i)})]),_:3},8,[`form`]))]),_:3},8,[`show-close-button`,`size`,`prevent-click-outside`,`prevent-esc`]))}}),Ix=(0,d.defineComponent)({__name:`FormDialogForm`,setup(e){let{formId:t,form:n,promptOnUnsavedChanges:r}=Px();return(e,i)=>{let a=(0,d.resolveDirective)(`ele`);return(0,d.withDirectives)(((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(tv),{id:(0,d.unref)(t),form:(0,d.unref)(n),"prompt-on-unsaved-changes":(0,d.unref)(r)},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`,{formId:(0,d.unref)(t)})]),_:3},8,[`id`,`form`,`prompt-on-unsaved-changes`])),[[a]])}}}),Lx={withStackTrace:!1},Rx=(e,t,n=Lx)=>({data:t.isOk()?{type:`Ok`,value:t.value}:{type:`Err`,value:t.error},message:e,stack:n.withStackTrace?Error().stack:void 0});function zx(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 Bx(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 Vx(e){return this instanceof Vx?(this.v=e,this):new Vx(e)}function Hx(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 Vx?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 Ux(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:Vx(e[r](t)),done:!1}:i?i(t):t}:i}}function Wx(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Bx==`function`?Bx(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 Gx=class e{constructor(e){this._promise=e}static fromSafePromise(t){return new e(t.then(e=>new eS(e)))}static fromPromise(t,n){return new e(t.then(e=>new eS(e)).catch(e=>new tS(n(e))))}static fromThrowable(t,n){return(...r)=>new e(zx(this,void 0,void 0,function*(){try{return new eS(yield t(...r))}catch(e){return new tS(n?n(e):e)}}))}static combine(e){return Jx(e)}static combineWithAllErrors(e){return Xx(e)}map(t){return new e(this._promise.then(e=>zx(this,void 0,void 0,function*(){return e.isErr()?new tS(e.error):new eS(yield t(e.value))})))}andThrough(t){return new e(this._promise.then(e=>zx(this,void 0,void 0,function*(){if(e.isErr())return new tS(e.error);let n=yield t(e.value);return n.isErr()?new tS(n.error):new eS(e.value)})))}andTee(t){return new e(this._promise.then(e=>zx(this,void 0,void 0,function*(){if(e.isErr())return new tS(e.error);try{yield t(e.value)}catch{}return new eS(e.value)})))}orTee(t){return new e(this._promise.then(e=>zx(this,void 0,void 0,function*(){if(e.isOk())return new eS(e.value);try{yield t(e.error)}catch{}return new tS(e.error)})))}mapErr(t){return new e(this._promise.then(e=>zx(this,void 0,void 0,function*(){return e.isOk()?new eS(e.value):new tS(yield t(e.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new tS(n.error);let r=t(n.value);return r instanceof e?r._promise:r}))}orElse(t){return new e(this._promise.then(e=>zx(this,void 0,void 0,function*(){return e.isErr()?t(e.error):new eS(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 Hx(this,arguments,function*(){return yield Vx(yield Vx(yield*Ux(Wx(yield Vx(this._promise.then(e=>e.safeUnwrap()))))))})}then(e,t){return this._promise.then(e,t)}[Symbol.asyncIterator](){return Hx(this,arguments,function*(){let e=yield Vx(this._promise);return e.isErr()&&(yield yield Vx(Kx(e.error))),yield Vx(e.value)})}};function Kx(e){return new Gx(Promise.resolve(new tS(e)))}Gx.fromPromise,Gx.fromSafePromise,Gx.fromThrowable;var qx=e=>{let t=Qx([]);for(let n of e)if(n.isErr()){t=$x(n.error);break}else t.map(e=>e.push(n.value));return t},Jx=e=>Gx.fromSafePromise(Promise.all(e)).andThen(qx),Yx=e=>{let t=Qx([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=$x([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},Xx=e=>Gx.fromSafePromise(Promise.all(e)).andThen(Yx),Zx;(function(e){function t(e,t){return(...n)=>{try{return Qx(e(...n))}catch(e){return $x(t?t(e):e)}}}e.fromThrowable=t;function n(e){return qx(e)}e.combine=n;function r(e){return Yx(e)}e.combineWithAllErrors=r})(Zx||={});function Qx(e){return new eS(e)}function $x(e){return new tS(e)}var eS=class{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return Qx(e(this.value))}mapErr(e){return Qx(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 Qx(this.value)}orTee(e){return Qx(this.value)}orElse(e){return Qx(this.value)}asyncAndThen(e){return e(this.value)}asyncAndThrough(e){return e(this.value).map(()=>this.value)}asyncMap(e){return Gx.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 Rx("Called `_unsafeUnwrapErr` on an Ok",this,e)}*[Symbol.iterator](){return this.value}},tS=class{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return $x(this.error)}mapErr(e){return $x(e(this.error))}andThrough(e){return $x(this.error)}andTee(e){return $x(this.error)}orTee(e){try{e(this.error)}catch{}return $x(this.error)}andThen(e){return $x(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return Kx(this.error)}asyncAndThrough(e){return Kx(this.error)}asyncMap(e){return Kx(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return(function*(){throw yield $x(e),Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(e){throw Rx("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}*[Symbol.iterator](){let e=this;return yield e,e}};Zx.fromThrowable;var nS={prefetchStaleTime:60,limit:20};nS.limit,nS.limit;var rS=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 v.default.ZodError}},iS=1,aS=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:iS++,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,d.isVNode)(e))i=!1,this.create({id:n,type:`default`,message:e});else if(sS(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,d.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,d.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,d.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,d.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||iS++,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 oS(e,t){let n=t?.id||iS++;return aS.create({message:e,id:n,type:`default`,...t}),n}var sS=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,cS=Object.assign(oS,{success:aS.success,info:aS.info,warning:aS.warning,error:aS.error,custom:aS.custom,message:aS.message,promise:aS.promise,dismiss:aS.dismiss,loading:aS.loading},{getHistory:()=>aS.toasts,getToasts:()=>aS.getActiveToasts()});function lS(e){return e.label!==void 0}var uS=3,dS=`24px`,fS=`16px`,pS=4e3,mS=356,hS=14,gS=45,_S=200;function vS(){let e=(0,d.ref)(!1);return(0,d.watchEffect)(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function yS(...e){return e.filter(Boolean).join(` `)}function bS(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function xS(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?fS:dS;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 SS=[`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`],CS=[`aria-label`,`data-disabled`,`data-close-button-position`],wS=(0,d.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,d.ref)(null),a=(0,d.ref)(null),o=(0,d.ref)(!1),s=(0,d.ref)(!1),c=(0,d.ref)(!1),l=(0,d.ref)(!1),u=(0,d.ref)(!1),f=(0,d.ref)(0),p=(0,d.ref)(0),m=(0,d.ref)(n.toast.duration||n.duration||pS),h=(0,d.ref)(null),g=(0,d.ref)(null),_=(0,d.computed)(()=>n.index===0),v=(0,d.computed)(()=>n.index+1<=n.visibleToasts),y=(0,d.computed)(()=>n.toast.type),b=(0,d.computed)(()=>n.toast.dismissible!==!1),x=(0,d.computed)(()=>n.toast.class||``),S=(0,d.computed)(()=>n.descriptionClass||``),C=(0,d.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,d.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,d.computed)(()=>C.value*n.gap+w.value||0),ee=(0,d.computed)(()=>n.toast.closeButton??n.closeButton),te=(0,d.computed)(()=>n.toast.duration||n.duration||pS),E=(0,d.ref)(0),ne=(0,d.ref)(0),D=(0,d.ref)(null),O=(0,d.computed)(()=>n.position.split(`-`)),k=(0,d.computed)(()=>O.value[0]),A=(0,d.computed)(()=>O.value[1]),j=(0,d.computed)(()=>typeof n.toast.title!=`string`),re=(0,d.computed)(()=>typeof n.toast.description!=`string`),{isDocumentHidden:ie}=vS(),ae=(0,d.computed)(()=>y.value&&y.value===`loading`);(0,d.onMounted)(()=>{o.value=!0,m.value=te.value}),(0,d.watchEffect)(async()=>{if(!o.value||!g.value)return;await(0,d.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 oe(){s.value=!0,f.value=T.value,setTimeout(()=>{r(`removeToast`,n.toast)},_S)}function M(){if(ae.value||!b.value)return{};oe(),n.toast.onDismiss?.(n.toast)}function N(e){e.button!==2&&(ae.value||!b.value||(h.value=new Date,f.value=T.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(c.value=!0,D.value={x:e.clientX,y:e.clientY})))}function se(){if(l.value||!b.value)return;D.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)>=gS||s>.11){f.value=T.value,n.toast.onDismiss?.(n.toast),i.value===`x`?a.value=e>0?`right`:`left`:a.value=t>0?`down`:`up`,oe(),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 ce(e){if(!D.value||!b.value||(window?.getSelection()?.toString()?.length??!1))return;let t=e.clientY-D.value.y,r=e.clientX-D.value.x,a=n.swipeDirections??bS(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,d.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,d.onBeforeUnmount)(()=>{g.value&&r(`removeToast`,n.toast)}),(0,d.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||ie.value?(()=>{if(ne.value<E.value){let e=new Date().getTime()-E.value;m.value-=e}ne.value=new Date().getTime()})():m.value!==1/0&&(E.value=new Date().getTime(),t=setTimeout(()=>{n.toast.onAutoClose?.(n.toast),oe()},m.value)),e(()=>{clearTimeout(t)})}),(0,d.watch)(()=>n.toast.delete,e=>{e!==void 0&&e&&(oe(),n.toast.onDismiss?.(n.toast))},{deep:!0});function P(){c.value=!1,i.value=null,D.value=null}return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:g,class:(0,d.normalizeClass)((0,d.unref)(yS)(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":A.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,d.normalizeStyle)({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${s.value?f.value:T.value}px`,"--initial-height":e.expandByDefault?`auto`:`${p.value}px`,...e.style,...n.toast.style}),onDragend:P,onPointerdown:N,onPointerup:se,onPointermove:ce},[ee.value&&!e.toast.component&&y.value!==`loading`?((0,d.openBlock)(),(0,d.createElementBlock)(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":ae.value,"data-close-button":`true`,"data-close-button-position":e.closeButtonPosition,class:(0,d.normalizeClass)((0,d.unref)(yS)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:M},[e.icons?.close?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.icons?.close),{key:0})):(0,d.renderSlot)(e.$slots,`close-icon`,{key:1})],10,CS)):(0,d.createCommentVNode)(`v-if`,!0),e.toast.component?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.toast.component),(0,d.mergeProps)({key:1},e.toast.componentProps,{onCloseToast:M,isPaused:e.$props.expanded||e.$props.interacting||(0,d.unref)(ie)}),null,16,[`isPaused`])):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:2},[y.value!==`default`||e.toast.icon||e.toast.promise?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,"data-icon":``,class:(0,d.normalizeClass)((0,d.unref)(yS)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.toast.icon),{key:0})):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[y.value===`loading`?(0,d.renderSlot)(e.$slots,`loading-icon`,{key:0}):y.value===`success`?(0,d.renderSlot)(e.$slots,`success-icon`,{key:1}):y.value===`error`?(0,d.renderSlot)(e.$slots,`error-icon`,{key:2}):y.value===`warning`?(0,d.renderSlot)(e.$slots,`warning-icon`,{key:3}):y.value===`info`?(0,d.renderSlot)(e.$slots,`info-icon`,{key:4}):(0,d.createCommentVNode)(`v-if`,!0)],64))],2)):(0,d.createCommentVNode)(`v-if`,!0),(0,d.createElementVNode)(`div`,{"data-content":``,class:(0,d.normalizeClass)((0,d.unref)(yS)(e.classes?.content,e.toast?.classes?.content))},[(0,d.createElementVNode)(`div`,{"data-title":``,class:(0,d.normalizeClass)((0,d.unref)(yS)(e.classes?.title,e.toast.classes?.title))},[j.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.toast.title),(0,d.normalizeProps)((0,d.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[(0,d.createTextVNode)((0,d.toDisplayString)(e.toast.title),1)],64))],2),e.toast.description?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,"data-description":``,class:(0,d.normalizeClass)((0,d.unref)(yS)(e.descriptionClass,S.value,e.classes?.description,e.toast.classes?.description))},[re.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.toast.description),(0,d.normalizeProps)((0,d.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[(0,d.createTextVNode)((0,d.toDisplayString)(e.toast.description),1)],64))],2)):(0,d.createCommentVNode)(`v-if`,!0)],2),e.toast.cancel?((0,d.openBlock)(),(0,d.createElementBlock)(`button`,{key:1,style:(0,d.normalizeStyle)(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:(0,d.normalizeClass)((0,d.unref)(yS)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:t[0]||=t=>{(0,d.unref)(lS)(e.toast.cancel)&&b.value&&(e.toast.cancel.onClick?.(t),oe())}},(0,d.toDisplayString)((0,d.unref)(lS)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):(0,d.createCommentVNode)(`v-if`,!0),e.toast.action?((0,d.openBlock)(),(0,d.createElementBlock)(`button`,{key:2,style:(0,d.normalizeStyle)(e.toast.actionButtonStyle||e.actionButtonStyle),class:(0,d.normalizeClass)((0,d.unref)(yS)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:t[1]||=t=>{(0,d.unref)(lS)(e.toast.action)&&(e.toast.action.onClick?.(t),!t.defaultPrevented&&oe())}},(0,d.toDisplayString)((0,d.unref)(lS)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):(0,d.createCommentVNode)(`v-if`,!0)],64))],46,SS))}}),TS=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},ES={},DS={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 OS(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,DS,t[0]||=[(0,d.createElementVNode)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),(0,d.createElementVNode)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var kS=TS(ES,[[`render`,OS]]),AS=[`data-visible`],jS={class:`sonner-spinner`},MS=(0,d.defineComponent)({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let t=Array(12).fill(0);return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[(0,d.createElementVNode)(`div`,jS,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(t),e=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,AS))}}),NS={},PS={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function FS(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,PS,t[0]||=[(0,d.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 IS=TS(NS,[[`render`,FS]]),LS={},RS={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function zS(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,RS,t[0]||=[(0,d.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 BS=TS(LS,[[`render`,zS]]),VS={},HS={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function US(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,HS,t[0]||=[(0,d.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 WS=TS(VS,[[`render`,US]]),GS={},KS={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function qS(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,KS,t[0]||=[(0,d.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 JS=TS(GS,[[`render`,qS]]),YS=[`aria-label`],XS=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],ZS=typeof window<`u`&&typeof document<`u`;function QS(){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 $S=(0,d.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:hS},visibleToasts:{default:uS},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:dS},mobileOffset:{default:fS},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let t=e,n=(0,d.useAttrs)(),r=(0,d.ref)([]),i=(0,d.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,d.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,d.computed)(()=>{let e={};return o.value.forEach(t=>{e[t]=r.value.filter(e=>e.position===t)}),e}),c=(0,d.ref)([]),l=(0,d.ref)({}),u=(0,d.ref)(!1);(0,d.watchEffect)(()=>{o.value.forEach(e=>{e in l.value||(l.value[e]=!1)})});let f=(0,d.ref)(t.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t.theme),p=(0,d.ref)(null),m=(0,d.ref)(null),h=(0,d.ref)(!1),g=t.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function _(e){r.value.find(t=>t.id===e.id)?.delete||aS.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,d.watchEffect)(e=>{e(aS.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{r.value=r.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}(0,d.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,d.watchEffect)(e=>{if(typeof window>`u`)return;if(t.theme!==`system`){f.value=t.theme;return}let n=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{f.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,d.watchEffect)(()=>{p.value&&m.value&&(m.value.focus({preventScroll:!0}),m.value=null,h.value=!1)}),(0,d.watchEffect)(()=>{r.value.length<=1&&Object.keys(l.value).forEach(e=>{l.value[e]=!1})}),(0,d.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})}ZS&&(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 ee(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,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,[(0,d.createCommentVNode)(` Remove item from normal navigation flow, only available via hotkey `),(0,d.createElementVNode)(`section`,{"aria-label":`${e.containerAriaLabel} ${(0,d.unref)(g)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(o.value,(r,i)=>((0,d.openBlock)(),(0,d.createElementBlock)(`ol`,(0,d.mergeProps)({key:r,ref_for:!0,ref_key:`listRef`,ref:p,"data-sonner-toaster":``,"data-sonner-theme":f.value,class:t.class,dir:e.dir===`auto`?QS():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,d.unref)(mS)}px`,"--gap":`${e.gap}px`,...e.style,...(0,d.unref)(n).style,...(0,d.unref)(xS)(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,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(a(r,i),(n,i)=>((0,d.openBlock)(),(0,d.createBlock)(wS,{key:n.id,heights:c.value,icons:e.icons,index:i,toast:n,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:(0,d.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,d.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":ee,onRemoveToast:_},{"close-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`close-icon`,{},()=>[(0,d.createVNode)(kS)])]),"loading-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`loading-icon`,{},()=>[(0,d.createVNode)(MS,{visible:n.type===`loading`},null,8,[`visible`])])]),"success-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`success-icon`,{},()=>[(0,d.createVNode)(IS)])]),"error-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`error-icon`,{},()=>[(0,d.createVNode)(JS)])]),"warning-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`warning-icon`,{},()=>[(0,d.createVNode)(WS)])]),"info-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`info-icon`,{},()=>[(0,d.createVNode)(BS)])]),_: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,XS))),128))],8,YS)],2112))}}),eC=U({slots:{title:`mb-xs text-sm font-medium`},variants:{variant:{error:{title:`text-error-primary`},info:{title:`text-primary`},warning:{title:`text-warning-primary`}}}}),tC=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0},{default:(0,d.withCtx)(()=>[e.button===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),(0,d.mergeProps)({key:0,variant:`secondary`},e.button,{onClick:n[0]||=t=>r(e.button)}),null,16)),e.link===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(x_),(0,d.mergeProps)({key:1,variant:`secondary`},e.link,{onClick:n[1]||=e=>i()}),null,16))]),_:1})):(0,d.createCommentVNode)(``,!0)}}),nC={class:`absolute top-0 right-0 mt-md mr-sm flex h-text-sm items-center justify-center`},rC=(0,d.defineComponent)({__name:`ToastCloseButton`,emits:[`close`],setup(e,{emit:t}){let n=t,r=(0,h.useI18n)();return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,nC,[(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(_r),"is-tooltip-disabled":!0,label:(0,d.unref)(r).t(`component.toast.close.label`),size:`sm`,variant:`tertiary`,onClick:t[0]||=e=>n(`close`)},null,8,[`icon`,`label`])]))}}),iC={class:`flex h-text-sm items-center`},aC=(0,d.defineComponent)({__name:`ToastIcon`,props:{icon:{},variant:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,iC,[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{class:(0,d.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`]))]))}}),oC={},sC={class:`pointer-events-auto relative w-full rounded-xl border border-secondary bg-primary p-md pl-lg shadow-lg/5`};function cC(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`,sC,[(0,d.renderSlot)(e.$slots,`default`)])}var lC=W(oC,[[`render`,cC]]),uC={class:`flex h-text-sm items-center`},dC=(0,d.defineComponent)({__name:`ToastLoader`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,uC,[(0,d.createVNode)((0,d.unref)(qa),{class:`size-3.5 text-tertiary`})]))}}),fC=[`src`,`alt`],pC={class:`font-medium text-primary`},mC=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(n.to===null?`span`:(0,d.unref)(y.RouterLink)),{to:n.to,class:(0,d.normalizeClass)({"hover:underline":n.to!==null}),onClick:i},{default:(0,d.withCtx)(()=>[n.imageSrc===null?n.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(n.icon),{key:1,class:`mr-xs inline size-3.5 -translate-y-px align-sub text-secondary`})):((0,d.openBlock)(),(0,d.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,fC)),(0,d.createElementVNode)(`span`,pC,(0,d.toDisplayString)(n.label),1)]),_:1},8,[`to`,`class`]))}}),hC={class:`text-sm text-secondary`},gC=(0,d.defineComponent)({__name:`ToastMessage`,props:{message:{},models:{}},emits:[`closeToast`],setup(e,{emit:t}){let n=e,r=t,i=/(\{.*?\})/g,a=/^\{(.*?)\}$/,o=(0,d.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,d.openBlock)(),(0,d.createElementBlock)(`span`,hC,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(o.value,(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:n},[e.type===`text`?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[(0,d.createTextVNode)((0,d.toDisplayString)(e.label),1)],64)):e.type===`interactable`?((0,d.openBlock)(),(0,d.createBlock)(mC,{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,d.createCommentVNode)(``,!0)],64))),128))]))}}),_C=W((0,d.defineComponent)({__name:`Toast`,props:{toast:{}},emits:[`closeToast`],setup(e,{emit:t}){let n=e,r=t,i=(0,d.computed)(()=>n.toast.variant===`error`?`error`:n.toast.variant===`warning`?`warning`:`info`),a=(0,d.computed)(()=>eC({variant:i.value}));return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(lC,{"data-toast-id":n.toast.id},{default:(0,d.withCtx)(()=>[(n.toast.dismissible??!0)&&n.toast.variant!==`loading`?((0,d.openBlock)(),(0,d.createBlock)(rC,{key:0,onClose:t[0]||=e=>r(`closeToast`)})):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(R),{align:`start`,class:`pr-3xl`},{default:(0,d.withCtx)(()=>[n.toast.variant===`loading`?((0,d.openBlock)(),(0,d.createBlock)(dC,{key:0})):n.toast.icon===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(aC,{key:1,icon:n.toast.icon,variant:n.toast.variant},null,8,[`icon`,`variant`])),(0,d.createVNode)((0,d.unref)(q),{gap:`none`},{default:(0,d.withCtx)(()=>[n.toast.title===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:0,text:n.toast.title,class:(0,d.normalizeClass)([a.value.title(),`mb-xs text-sm font-medium`])},null,8,[`text`,`class`])),(0,d.createVNode)(gC,{models:n.toast.interactableModels??{},message:n.toast.message,onCloseToast:t[1]||=e=>r(`closeToast`)},null,8,[`models`,`message`]),(0,d.createVNode)(tC,{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-201a0d0f`]]),vC=600,yC=`animate-toast-highlight`,bC=new Map;function xC(e){let t=document.querySelector(`[data-toast-id="${e}"]`);if(!t)return;let n=bC.get(e);n&&clearTimeout(n),t.classList.remove(yC),t.scrollTop,t.classList.add(yC);let r=setTimeout(()=>{t.classList.remove(yC),bC.delete(e)},vC);bC.set(e,r)}var SC=1/0,CC=5e3,wC=7e3;function TC(e,t){switch(e){case`always`:return t===`error`?wC:CC;case`all-except-errors`:return t===`error`?SC:CC;case`never`:return SC}}function EC(e){cS.dismiss(e)}function DC(){let e=(0,h.useI18n)(),t=Z();function n(e){(e.id===void 0?null:cS.getToasts().find(t=>t.id===e.id)??null)!==null&&xC(e.id),cS.custom((0,d.markRaw)((0,d.defineComponent)({render:()=>(0,d.h)(_C,{toast:e})})),{id:e.id??crypto.randomUUID(),class:`w-full sm:w-96`,dismissible:e.dismissible,duration:e.duration??TC(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,dismissible:!1,duration:SC,icon:e.icon,interactableModels:e.interactableModels,message:e.loading,variant:`loading`,onAutoClose:e.onAutoClose,onDismiss:e.onDismiss});function i(n,i){let a=cS.custom((0,d.markRaw)((0,d.defineComponent)({render:()=>(0,d.h)(_C,{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(()=>{cS.dismiss(a)},e.duration??TC(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:gt,message:e.t(`component.toast.unable_to_save_changes.message`),variant:`error`})}function a(t){if(!rS.isExpectedApiError(t)){n({icon:gt,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:gt,message:r.detail,variant:`error`})}return{apiError:a,dismiss:EC,promise:r,show:n,unableToSave:i}}var OC=(0,d.defineComponent)({__name:`ToastContainer`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)($S),{style:{zIndex:75},expand:!1}))}}),kC=(0,d.defineComponent)({__name:`TooltipProvider`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TooltipProvider),null,{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),AC=(0,d.defineComponent)({__name:`ApplicationProvider`,props:{isFetchingAuthUser:{type:Boolean}},setup(e){let t=e;return(0,f.useActionRegistryStore)().registerActions(Dx()),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(kC,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(px)),(0,d.createVNode)((0,d.unref)(dx)),(0,d.createVNode)((0,d.unref)(sx),{"is-fetching-auth-user":t.isFetchingAuthUser},null,8,[`is-fetching-auth-user`]),(0,d.createVNode)((0,d.unref)(OC)),(0,d.createVNode)((0,d.unref)(kx)),(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),jC=(0,d.defineComponent)({__name:`BreadcrumbItem`,props:{isLabelHidden:{type:Boolean},icon:{},label:{},to:{}},setup(e){let t=e,n=(0,d.computed)(()=>t.isLabelHidden?`sr-only`:``),r=(0,d.computed)(()=>t.to===void 0?``:`group-hover:text-primary group-hover:underline`);return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.to===void 0?`span`:$),{class:`min-w-0 overflow-hidden`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.to===void 0?`span`:(0,d.unref)(y.RouterLink)),{to:t.to,class:`group min-w-0`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{class:`min-w-0`,gap:`sm`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(K,{"is-disabled":!t.isLabelHidden,label:t.label},{default:(0,d.withCtx)(()=>[t.icon?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:(0,d.normalizeClass)([{"group-hover:text-primary":t.to!==void 0},`size-4 shrink-0 text-tertiary`])},null,8,[`class`])):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`is-disabled`,`label`]),t.label?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:0,text:t.label,class:(0,d.normalizeClass)((0,d.unref)(Gv)(`text-xs text-tertiary`,n.value,r.value))},null,8,[`text`,`class`])):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`to`]))]),_:1}))}}),MC={class:`min-w-0`},NC=(0,d.defineComponent)({__name:`BreadcrumbItems`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`nav`,MC,[(0,d.createVNode)(R,{align:`center`,gap:`sm`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]))}}),PC=(0,d.defineComponent)({__name:`BreadcrumbSeparator`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(nn),{class:`size-3.5 shrink-0 text-disabled`}))}}),[FC,IC]=L(`checkboxContext`),LC=U({slots:{control:`
|
|
519
|
+
`,`grid w-full gap-xs overflow-hidden text-left duration-100`]),style:(0,d.normalizeStyle)({gridTemplateColumns:a})},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{align:`center`,justify:`center`,class:`h-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(za,{name:t.name??t.email,src:t.avatarUrl,"is-static-color":!0,size:`xs`},null,8,[`name`,`src`])]),_:1}),(0,d.createVNode)(lb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(r)!==`minified`||(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,justify:`between`,align:`center`,gap:`xxs`,class:`overflow-hidden`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,wb,[(0,d.createVNode)((0,d.unref)(G),{text:t.name??`-`,"disable-tooltip":!0,class:`w-full text-xs font-semibold text-primary`},null,8,[`text`]),(0,d.createVNode)((0,d.unref)(G),{text:t.email,"disable-tooltip":!0,class:`w-full text-xs text-tertiary`},null,8,[`text`])]),(0,d.createVNode)(q,{align:`start`,class:`h-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Jt),{class:`mt-xxs size-4 shrink-0 text-quaternary`})]),_:1})]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`class`,`style`])])]),_:1})]),_:1},8,[`actions`]))}}),Eb={};function Db(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`)}var Ob=W(Eb,[[`render`,Db]]),kb=(0,d.defineComponent)({__name:`MainSidebarGlobalSearch`,emits:[`click`],setup(e,{emit:t}){let n=t,r=(0,h.useI18n)();function i(){n(`click`)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Q),{icon:(0,d.unref)(tr),label:(0,d.unref)(r).t(`components.sidebar.global_search.label`),variant:`tertiary`,onClick:i},null,8,[`icon`,`label`]))}}),Ab=(0,d.defineComponent)({__name:`MainSidebarHeaderContainer`,setup(e){let{sidebarLogoHeight:t}=Sb();return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{style:(0,d.normalizeStyle)({height:(0,d.unref)(t)})},[(0,d.renderSlot)(e.$slots,`default`)],4))}}),jb=[`src`,`alt`],Mb=(0,d.defineComponent)({__name:`Logo`,props:{alt:{},size:{},src:{}},setup(e){let t=e,n=(0,d.ref)(!1);return(e,r)=>n.value?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,class:(0,d.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,d.openBlock)(),(0,d.createElementBlock)(`img`,{key:1,src:t.src,alt:t.alt,class:(0,d.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,jb))}}),Nb={key:0,class:`text-sm font-semibold text-secondary`},Pb={key:0},Fb=(0,d.defineComponent)({__name:`MainSidebarHeaderLogoWithText`,props:{name:{},url:{}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r,sidebarLogoPadding:i}=Sb();return(e,a)=>((0,d.openBlock)(),(0,d.createBlock)(Ab,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{justify:`between`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{style:(0,d.normalizeStyle)({padding:(0,d.unref)(i)})},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Mb,{src:t.url,alt:`Logo`,size:`xs`},null,8,[`src`]),(0,d.createVNode)(lb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(r)!==`minified`||(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,Nb,(0,d.toDisplayString)(t.name),1)):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`style`]),(0,d.createVNode)(lb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(r)!==`minified`||(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Pb,[(0,d.renderSlot)(e.$slots,`right`)])):(0,d.createCommentVNode)(``,!0)]),_:3})]),_:3})]),_:3}))}}),Ib={class:`truncate text-xs text-secondary`},Lb=(0,d.defineComponent)({__name:`MainSidebarHeaderReturnToApp`,props:{to:{}},setup(e){let t=e,n=(0,h.useI18n)(),{isSidebarOpen:r,closeIfFloatingSidebar:i,collapsedVariant:a,sidebarIconCellSize:o,sidebarIconSize:s}=Sb(),c=`${o} 1fr`;return(e,l)=>((0,d.openBlock)(),(0,d.createBlock)(Ab,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{class:`w-fit`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(K,{"keyboard-shortcut":{key:`Backspace`,mod:!0},label:(0,d.unref)(n).t(`components.sidebar.return_to_app`)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(y.RouterLink),{to:t.to,style:(0,d.normalizeStyle)({height:(0,d.unref)(o),gridTemplateColumns:c}),"aria-label":(0,d.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,d.unref)(i)()},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{style:(0,d.normalizeStyle)({width:(0,d.unref)(o),height:(0,d.unref)(o)}),align:`center`,justify:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Qt),{style:(0,d.normalizeStyle)({width:(0,d.unref)(s),height:(0,d.unref)(s)}),class:`shrink-0 text-secondary`},null,8,[`style`])]),_:1},8,[`style`]),(0,d.createVNode)(lb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(a)!==`minified`||(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createBlock)(R,{key:0,align:`center`,class:`overflow-hidden pr-md`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`span`,Ib,(0,d.toDisplayString)((0,d.unref)(n).t(`components.sidebar.return_to_app`)),1)]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`to`,`style`,`aria-label`])]),_:1})]),_:1},8,[`label`])]),_:1})]),_:1}))}}),Rb={class:`w-full`},zb=(0,d.defineComponent)({__name:`MainSidebarNavigationGroup`,props:{label:{default:null}},setup(e){let t=e,{isSidebarOpen:n,collapsedVariant:r}=Sb();return(e,i)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Rb,[t.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`span`,{key:0,class:(0,d.normalizeClass)([{"opacity-0":(0,d.unref)(r)===`minified`&&!(0,d.unref)(n)},`block px-sm pb-sm text-xs font-medium whitespace-nowrap text-quaternary transition-opacity duration-150 ease-in-out`])},(0,d.toDisplayString)(t.label),3)),(0,d.createVNode)((0,d.unref)(q),{align:`start`,gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]))}}),Bb=(0,d.defineComponent)({__name:`MainSidebarNavigationGroups`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{gap:`2xl`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),[Vb,Hb]=L(`MainSidebarNavigationLinkContextKey`),Ub=(0,d.defineComponent)({__name:`MainSidebarNavigationLinkProvider`,props:{isActive:{type:Boolean}},setup(e){let t=e;return Vb({isActive:(0,d.computed)(()=>t.isActive)}),(e,t)=>(0,d.renderSlot)(e.$slots,`default`)}}),Wb=[`data-active`],Gb={class:`truncate text-xs font-medium whitespace-nowrap text-secondary duration-100 group-hover:text-primary group-data-active:text-brand-secondary`},Kb=(0,d.defineComponent)({__name:`MainSidebarNavigationLink`,props:{isActive:{type:Function,default:()=>!1},icon:{},keyboardShortcut:{default:null},label:{},to:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,{isSidebarOpen:i,closeIfFloatingSidebar:a,collapsedVariant:o,sidebarIconCellSize:s,sidebarIconSize:c,sidebarLinkHeight:l}=Sb(),u=(0,y.useRoute)();function f(){a(),r(`click`)}let p=`${s} 1fr`,m=(0,d.computed)(()=>!!(o.value===`hidden`&&n.keyboardShortcut===null||o.value===`minified`&&i.value&&n.keyboardShortcut===null));return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(K,{"is-disabled":m.value,"keyboard-shortcut":n.keyboardShortcut,label:n.label,"popover-side":`right`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(y.RouterLink),{to:n.to,class:`w-full`,onClick:f},{default:(0,d.withCtx)(({isActive:t})=>[(0,d.createVNode)(Ub,{"is-active":t},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{"data-active":t||n.isActive((0,d.unref)(u))||void 0,style:(0,d.normalizeStyle)({height:(0,d.unref)(l),gridTemplateColumns:p}),class:`group grid rounded-md duration-100 hover:bg-fg-primary/4 data-active:bg-fg-primary/4`},[(0,d.createVNode)(R,{style:(0,d.normalizeStyle)({width:(0,d.unref)(s),height:(0,d.unref)(s)}),align:`center`,justify:`center`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(n.icon),{style:(0,d.normalizeStyle)({width:(0,d.unref)(c),height:(0,d.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,d.createVNode)(lb,null,{default:(0,d.withCtx)(()=>[(0,d.unref)(o)!==`minified`||(0,d.unref)(i)?((0,d.openBlock)(),(0,d.createBlock)(R,{key:0,align:`center`,justify:`between`,gap:`md`,class:`overflow-hidden pr-md`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`span`,Gb,(0,d.toDisplayString)(n.label),1),(0,d.createVNode)(R,{gap:`lg`,align:`center`,class:`shrink-0`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`)]),_:3})]),_:3})):(0,d.createCommentVNode)(``,!0)]),_:3})],12,Wb)]),_:2},1032,[`is-active`])]),_:3},8,[`to`])]),_:3})]),_:3},8,[`is-disabled`,`keyboard-shortcut`,`label`]))}}),qb=(0,d.defineComponent)({__name:`BadgeSeparator`,setup(e){let{variants:t}=Av();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So),{class:(0,d.normalizeClass)((0,d.unref)(t).separator()),orientation:`vertical`},null,8,[`class`]))}}),Jb=(0,d.defineComponent)({__name:`MainSidebarNavigationLinkBadge`,props:{label:{}},setup(e){let t=e,{isActive:n}=Hb();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Lv),{label:t.label,color:(0,d.unref)(n)?`brand`:`gray`,size:`sm`},null,8,[`label`,`color`]))}}),Yb={},Xb={class:`size-2 rounded-full bg-success-500`};function Zb(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`,Xb)}var Qb=W(Yb,[[`render`,Zb]]),$b={class:`flex h-full flex-col justify-between overflow-hidden text-primary`},ex=(0,d.defineComponent)({__name:`MainSidebarContent`,setup(e){let{sidebarContainerPadding:t}=Sb();return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,$b,[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)({paddingLeft:(0,d.unref)(t),paddingRight:(0,d.unref)(t),paddingBottom:(0,d.unref)(t)})},[(0,d.renderSlot)(e.$slots,`header`)],4),(0,d.createElementVNode)(`nav`,{style:(0,d.normalizeStyle)({padding:(0,d.unref)(t)}),class:`flex h-full flex-col justify-between gap-2xl overflow-y-auto`},[(0,d.renderSlot)(e.$slots,`navigation`),(0,d.renderSlot)(e.$slots,`bottom-navigation`)],4),(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)({padding:(0,d.unref)(t)}),class:`flex flex-col gap-sm`},[(0,d.renderSlot)(e.$slots,`footer`)],4)]))}}),tx=(0,d.defineComponent)({__name:`MainSidebarTransition`,setup(e){let t=xf();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{initial:{transform:`translateX(-100%)`},animate:{transform:`translateX(0%)`},exit:{transform:`translateX(-100%)`},transition:{duration:(0,d.unref)(t)?0:.3,type:`spring`,bounce:0}},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`transition`]))}}),nx={class:`size-full rounded-xl border border-secondary bg-secondary py-md shadow-lg/5`},rx=(0,d.defineComponent)({__name:`MainSidebar`,props:{collapsedVariant:{default:`hidden`}},setup(e){let t=e,{isFloatingSidebar:n,isSidebarOpen:r,setCollapsedVariant:i,sidebarWidth:a}=Sb(),o=(0,h.useI18n)(),s=xf();return i(t.collapsedVariant),(t,i)=>(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogRoot),{key:0,open:(0,d.unref)(r),"onUpdate:open":i[0]||=e=>(0,d.isRef)(r)?r.value=e:null},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogContent),{key:0,"as-child":!0,"force-mount":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(tx,{class:`absolute z-6 h-full w-64 p-md outline-none`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,nx,[(0,d.createVNode)((0,d.unref)(m.DialogTitle),{as:`h1`,class:`sr-only`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(o).t(`components.sidebar.title`)),1)]),_:1}),(0,d.createVNode)((0,d.unref)(m.DialogDescription),{class:`sr-only`,as:`p`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(o).t(`components.sidebar.description`)),1)]),_:1}),(0,d.createVNode)(ex,null,{header:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`header`)]),navigation:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`footer`)]),_:3})])]),_:3})]),_:3})):(0,d.createCommentVNode)(``,!0),(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogOverlay),{key:1,"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.Motion),{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:(0,d.unref)(s)?0:.3},class:`absolute inset-0 z-5 bg-black/10`},null,8,[`transition`])]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:3})]),_:3},8,[`open`])):e.collapsedVariant===`hidden`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{key:1,initial:!1},{default:(0,d.withCtx)(()=>[(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createBlock)(tx,{key:0,style:(0,d.normalizeStyle)({width:(0,d.unref)(a)}),class:`absolute h-full pt-md`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(ex,null,{header:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`header`)]),navigation:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`footer`)]),_:3})]),_:3},8,[`style`])):(0,d.createCommentVNode)(``,!0)]),_:3})):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:2,initial:!1,animate:{width:(0,d.unref)(a)},transition:{duration:(0,d.unref)(s)?0:.3,type:`spring`,bounce:0},style:(0,d.normalizeStyle)({width:(0,d.unref)(a)}),class:`absolute z-1 h-full overflow-hidden pt-[0.475rem]`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(ex,null,{header:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`header`)]),navigation:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`navigation`)]),"bottom-navigation":(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`bottom-navigation`)]),footer:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`footer`)]),_:3})]),_:3},8,[`animate`,`transition`,`style`]))}}),ix=(0,d.defineComponent)({__name:`TextShimmer`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),ax={class:`size-full p-md pl-none`},ox={class:`size-full rounded-2xl border border-secondary bg-primary shadow-sm/5`},sx={class:`text-sm font-medium`},cx=(0,d.defineComponent)({__name:`ApplicationLoadingView`,props:{isFetchingAuthUser:{type:Boolean}},setup(e){let t=e,n=(0,h.useI18n)(),r=(0,y.useRouter)(),{isFloatingSidebar:i,isSidebarOpen:a,sidebarWidth:o}=Sb(),s=(0,d.ref)(!0),c=(0,d.ref)(!1),l=xf();r.isReady().then(()=>{s.value=!1});let u=(0,d.computed)(()=>t.isFetchingAuthUser||s.value);return setTimeout(()=>{c.value=!0},500),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),null,{default:(0,d.withCtx)(()=>[u.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:0,exit:{opacity:0},transition:{duration:(0,d.unref)(l)?0:.2},style:(0,d.normalizeStyle)({paddingLeft:(0,d.unref)(a)&&!(0,d.unref)(i)?(0,d.unref)(o):`0.5rem`}),class:`absolute inset-0 z-99 size-full bg-secondary`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,ax,[(0,d.createElementVNode)(`div`,ox,[c.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{key:0,class:`size-full`,align:`center`,justify:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(ix),null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`h1`,sx,(0,d.toDisplayString)((0,d.unref)(n).t(`component.dashboard_page_loading_state.loading`)),1)]),_:1})]),_:1})):(0,d.createCommentVNode)(``,!0)])])]),_:1},8,[`transition`,`style`])):(0,d.createCommentVNode)(``,!0)]),_:1}))}}),lx={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`},ux={class:`grid grid-cols-[auto_auto] items-center gap-x-md gap-y-none`},dx={class:`flex`},fx=(0,d.defineComponent)({__name:`ApplicationOfflineWarning`,setup(e){let t=(0,h.useI18n)(),{isOnline:n}=(0,p.useNetwork)(),r=(0,d.ref)(!1),i=(0,d.computed)(()=>!n.value);function a(){r.value=!0}(0,d.watch)(i,e=>{e&&(r.value=!1)});let o=xf();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),null,{default:(0,d.withCtx)(()=>[i.value&&!r.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.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,d.unref)(o)?0:.3},"while-hover":`hovered`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,{class:`group absolute top-4 left-1/2 z-10 -translate-x-1/2`,onClick:a},[(0,d.createElementVNode)(`div`,lx,[(0,d.createElementVNode)(`div`,ux,[(0,d.createVNode)((0,d.unref)(pr),{class:`size-3 text-tertiary`}),(0,d.createVNode)((0,d.unref)(G),{text:(0,d.unref)(t).t(`component.offline_warning.title`),class:`text-xs text-primary`},null,8,[`text`]),n[0]||=(0,d.createElementVNode)(`span`,null,null,-1),(0,d.createVNode)((0,d.unref)(g.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,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,dx,[(0,d.createVNode)((0,d.unref)(G),{text:(0,d.unref)(t).t(`component.offline_warning.dismiss`),class:`text-xs text-disabled`},null,8,[`text`])])]),_:1})])])])]),_:1})]),_:1},8,[`transition`])):(0,d.createCommentVNode)(``,!0)]),_:1}))}}),px={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`},mx=(0,d.defineComponent)({__name:`ApplicationSkipToMainContent`,setup(e){let t=(0,h.useI18n)();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`a`,px,(0,d.toDisplayString)((0,d.unref)(t).t(`component.skip_to_main_content_link.label`)),1)]),_:1}))}}),hx={class:`flex items-center gap-x-xs`},gx={key:0,class:`flex items-center gap-x-xs text-disabled`},_x={class:`text-secondary`},vx={key:2,class:`text-disabled`},yx=(0,d.defineComponent)({__name:`CommandMenuActionItem`,props:{action:{},ctx:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=(0,d.computed)(()=>(0,f.resolveActionBreadcrumbs)(n.action,n.ctx)),a=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,hx,[i.value.length>0?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,gx,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(i.value,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:t,gap:`xs`},{default:(0,d.withCtx)(()=>[a.value!==null&&t===0?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(a.value),{key:0,class:`size-3.5 text-tertiary`})):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`span`,null,(0,d.toDisplayString)(e.label),1),(0,d.createVNode)((0,d.unref)(nn),{class:`size-3 text-tertiary`})]),_:2},1024))),128))])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(R),{gap:`sm`},{default:(0,d.withCtx)(()=>[(0,d.unref)(f.resolveActionAvatar)(e.action,e.ctx)===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),(0,d.mergeProps)({key:0},(0,d.unref)(f.resolveActionAvatar)(e.action,e.ctx),{size:`xxs`}),null,16)),e.action.icon!==void 0&&i.value.length===0?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.action.icon(e.ctx)),{key:1,class:`size-3.5 text-secondary`})):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`span`,_x,(0,d.toDisplayString)((0,d.unref)(f.resolveActionName)(e.action,e.ctx)),1),(0,d.unref)(f.resolveActionHint)(e.action,e.ctx)?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,vx,(0,d.toDisplayString)((0,d.unref)(f.resolveActionHint)(e.action,e.ctx)),1)):(0,d.createCommentVNode)(``,!0)]),_:1})]),(0,d.unref)(f.resolveActionSelected)(e.action,e.ctx)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Wt),{key:0,class:`size-3 text-primary`})):(0,d.createCommentVNode)(``,!0),e.action.keyboardShortcut===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Pr),{key:1,"keyboard-shortcut":e.action.keyboardShortcut},null,8,[`keyboard-shortcut`]))]),_:1},8,[`value`,`data-id`]))}}),bx={class:`p-lg`,role:`status`,"aria-live":`polite`},xx={class:`sr-only`},Sx=(0,d.defineComponent)({__name:`CommandMenuLoadingSkeleton`,setup(e){let t=(0,h.useI18n)();return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,bx,[(0,d.createElementVNode)(`span`,xx,(0,d.toDisplayString)((0,d.unref)(t).t(`component.command_menu.loading_actions`)),1),(0,d.createVNode)((0,d.unref)(q),{gap:`4xl`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(2,e=>(0,d.createElementVNode)(`div`,{key:e},[(0,d.createVNode)((0,d.unref)(J),{class:`h-2 w-20`}),(0,d.createVNode)((0,d.unref)(q),{class:`mt-xl`,gap:`lg`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(J),{class:`h-3 w-40`}),(0,d.createVNode)((0,d.unref)(J),{class:`h-3 w-24`}),(0,d.createVNode)((0,d.unref)(J),{class:`h-3 w-48`}),(0,d.createVNode)((0,d.unref)(J),{class:`h-3 w-40`})]),_:1})])),64))]),_:1})]))}}),Cx={class:`relative flex items-center border-b border-secondary`},wx={class:`text-xxs text-tertiary`},Tx={class:`text-xxs text-disabled`},Ex={key:0,class:`h-full border-l border-secondary p-xl`},Dx=W((0,d.defineComponent)({__name:`CommandMenu`,props:(0,d.mergeModels)({action:{}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,d.mergeModels)([`afterLeave`,`close`],[`update:isOpen`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`isOpen`),a=(0,f.useActionManagerStore)(),o=(0,f.useActionRegistryStore)().allActions(),s=a.focusedModels,c=(0,h.useI18n)(),l=(0,d.useTemplateRef)(`listboxRoot`),u=(0,d.useTemplateRef)(`listboxContent`),p=ft(`Shift`),g=(0,d.ref)([]),_=(0,d.ref)(``),{isLoadingActions:v,buildContext:y,refreshActions:b,resolvedActions:x,subActionsMetaMap:S}=(0,f.useCommandMenuActions)({actionsSnapshot:o,focusedModelsSnapshot:s,listboxContentRef:u,listboxRootRef:l,manager:a,navStack:g,searchInput:_}),{highlightedActionId:C,activateAction:w,breadcrumbs:T,currentParent:ee,placeholder:te,preview:E,onKeyDown:ne}=(0,f.useCommandMenuNavigation)({isShiftKeyHeld:p,buildContext:y,emit:r,listboxRootRef:l,manager:a,navStack:g,refreshActions:b,resolvedActions:x,scrollToTopOfGroup:A,searchInput:_,subActionsMetaMap:S}),{hasNavigated:D,isBouncing:O}=(0,f.useCommandMenuAnimation)(i,()=>g.value.length),k=(0,d.computed)(()=>(0,f.buildCommandMenuGroups)(x.value,y()));n.action!==void 0&&w(n.action),b();function A(){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 j(e){e||r(`close`)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DialogRoot),{open:i.value,"onUpdate:open":[t[3]||=e=>i.value=e,j]},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DialogContent),{class:(0,d.normalizeClass)([{bouncing:(0,d.unref)(O),navigated:(0,d.unref)(D)},`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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DialogTitle),{class:`sr-only`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(c).t(`component.command_menu.title`)),1)]),_:1}),(0,d.createVNode)((0,d.unref)(m.DialogDescription),{class:`sr-only`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(c).t(`component.command_menu.title`)),1)]),_:1}),(0,d.createVNode)((0,d.unref)(m.ListboxRoot),{ref:`listboxRoot`,"highlight-on-hover":!0,class:`flex flex-col overflow-hidden`,onHighlight:t[1]||=e=>C.value=e?.value??null},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,Cx,[(0,d.unref)(T).length>0&&(0,d.unref)(ee)?.forceAsRootMenu!==!0?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,as:`ul`,gap:`xs`,class:`-mr-sm pl-lg`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(T),(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:t},[(0,d.createVNode)((0,d.unref)(Lv),{label:e,size:`sm`},null,8,[`label`]),t===(0,d.unref)(T).length-1?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(nn),{key:0,class:`size-3 text-tertiary`}))],64))),128))]),_:1})):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(m.ListboxFilter),{modelValue:_.value,"onUpdate:modelValue":t[0]||=e=>_.value=e,placeholder:(0,d.unref)(te),class:`block w-full p-lg text-xs text-secondary outline-none`,onKeydown:(0,d.unref)(ne)},null,8,[`modelValue`,`placeholder`,`onKeydown`])]),(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)([{"grid-cols-2":(0,d.unref)(E)!==null},`grid`])},[((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxContent),{key:(0,d.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,d.withCtx)(()=>[(0,d.unref)(x).length>0?((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,{key:0},(0,d.renderList)(k.value,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxGroup),{key:e.key,class:`p-xs`},{default:(0,d.withCtx)(()=>[e.label!==null&&(e.showIfOnlyGroup||(0,d.unref)(ee)===null||k.value.length>1)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.ListboxGroupLabel),{key:0,class:`px-md py-xs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{gap:`xs`},{default:(0,d.withCtx)(()=>[e.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.icon),{key:0,class:`size-3 text-disabled`})),e.category===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[(0,d.createElementVNode)(`span`,wx,(0,d.toDisplayString)(e.category),1),t[4]||=(0,d.createElementVNode)(`span`,{class:`text-xxs text-tertiary`},`•`,-1)],64)),(0,d.createElementVNode)(`span`,Tx,(0,d.toDisplayString)(e.label),1)]),_:2},1024)]),_:2},1024)):(0,d.createCommentVNode)(``,!0),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.items,e=>((0,d.openBlock)(),(0,d.createBlock)(yx,{key:e.id,action:e,ctx:(0,d.unref)(y)(),onSelect:t=>(0,d.unref)(w)(e)},null,8,[`action`,`ctx`,`onSelect`]))),128))]),_:2},1024))),128)):(0,d.unref)(v)?((0,d.openBlock)(),(0,d.createBlock)(Sx,{key:1})):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:2,text:(0,d.unref)(c).t(`component.command_menu.no_results`,{query:_.value}),class:`flex p-lg text-xs text-tertiary`},null,8,[`text`]))]),_:1})),(0,d.unref)(E)===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Ex,[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)((0,d.unref)(E))))]))],2)]),_:1},512)]),_:1},8,[`class`]),(0,d.createVNode)((0,d.unref)(m.DialogOverlay),{class:`absolute inset-0 z-39 bg-black/5 dark:bg-black/20`,"data-overlay":``})]),_:1},8,[`open`]))}}),[[`__scopeId`,`data-v-d2f841e7`]]);function Ox(){let e=(0,h.useI18n)(),t=U_(),n=t.create(Dx);return(0,f.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 kx=(0,d.defineComponent)({__name:`DialogBody`,setup(e){let{bodyRef:t,style:n}=L_();function r(e){t.value=e??null}return(0,d.onBeforeUnmount)(()=>{t.value=null}),(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{ref:r,class:(0,d.normalizeClass)((0,d.unref)(n).body()),"data-dialog-body":``},[(0,d.renderSlot)(e.$slots,`default`)],2))}}),Ax=(0,d.defineComponent)({__name:`DialogContainer`,setup(e){let{close:t,overlays:n,unmount:r}=U_();function i(e,n){t(e,n)}function a(e){r(e)}return(e,t)=>((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(n),e=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:e.id},[e.isMounted?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.component),(0,d.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,d.createCommentVNode)(``,!0)],64))),128))}}),jx=(0,d.defineComponent)({__name:`DialogFooterSecondary`,props:{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,d.openBlock)(),(0,d.createBlock)(g_,(0,d.mergeProps)(n,{variant:`secondary`,onClick:t[0]||=e=>r(`click`)}),null,16))}}),Mx=(0,d.defineComponent)({__name:`DialogFooterSubmit`,props:{isDestructive:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},label:{}},setup(e){let t=e,{form:n}=F_();return it(`Mod+Enter`,()=>{n.submit()}),(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),{label:t.label,"is-loading":(0,d.unref)(n).isSubmitting.value,"is-disabled":t.isDisabled,"keyboard-shortcut":{key:`Enter`,mod:!0},variant:t.isDestructive?`destructive-primary`:`primary`,onClick:(0,d.unref)(n).submit},null,8,[`label`,`is-loading`,`is-disabled`,`variant`,`onClick`]))}});function Nx(e){let t=U_();return{triggerProps:(0,d.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[Px,Fx]=L(`formDialogContext`),Ix=(0,d.defineComponent)({__name:`FormDialog`,props:{form:{},promptOnUnsavedChanges:{type:Boolean,default:!1},renderOwnFormComponent:{type:Boolean},chin:{},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},size:{default:`md`}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=(0,d.useId)();Px({formId:i,form:n.form,promptOnUnsavedChanges:(0,d.computed)(()=>n.promptOnUnsavedChanges??!1)});function a(){r(`close`)}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(G_,{"show-close-button":n.showCloseButton,size:n.size,"prevent-click-outside":n.preventClickOutside,"prevent-esc":n.preventEsc,onClose:a},{default:(0,d.withCtx)(()=>[n.renderOwnFormComponent?(0,d.renderSlot)(e.$slots,`default`,{key:0,formId:(0,d.unref)(i)}):((0,d.openBlock)(),(0,d.createBlock)(tv,{key:1,form:n.form,"prompt-on-unsaved-changes":!1,class:`flex size-full flex-col overflow-hidden`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`,{formId:(0,d.unref)(i)})]),_:3},8,[`form`]))]),_:3},8,[`show-close-button`,`size`,`prevent-click-outside`,`prevent-esc`]))}}),Lx=(0,d.defineComponent)({__name:`FormDialogForm`,setup(e){let{formId:t,form:n,promptOnUnsavedChanges:r}=Fx();return(e,i)=>{let a=(0,d.resolveDirective)(`ele`);return(0,d.withDirectives)(((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(tv),{id:(0,d.unref)(t),form:(0,d.unref)(n),"prompt-on-unsaved-changes":(0,d.unref)(r)},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`,{formId:(0,d.unref)(t)})]),_:3},8,[`id`,`form`,`prompt-on-unsaved-changes`])),[[a]])}}}),Rx={withStackTrace:!1},zx=(e,t,n=Rx)=>({data:t.isOk()?{type:`Ok`,value:t.value}:{type:`Err`,value:t.error},message:e,stack:n.withStackTrace?Error().stack:void 0});function Bx(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 Vx(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 Hx(e){return this instanceof Hx?(this.v=e,this):new Hx(e)}function Ux(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 Hx?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 Wx(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:Hx(e[r](t)),done:!1}:i?i(t):t}:i}}function Gx(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Vx==`function`?Vx(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 Kx=class e{constructor(e){this._promise=e}static fromSafePromise(t){return new e(t.then(e=>new tS(e)))}static fromPromise(t,n){return new e(t.then(e=>new tS(e)).catch(e=>new nS(n(e))))}static fromThrowable(t,n){return(...r)=>new e(Bx(this,void 0,void 0,function*(){try{return new tS(yield t(...r))}catch(e){return new nS(n?n(e):e)}}))}static combine(e){return Yx(e)}static combineWithAllErrors(e){return Zx(e)}map(t){return new e(this._promise.then(e=>Bx(this,void 0,void 0,function*(){return e.isErr()?new nS(e.error):new tS(yield t(e.value))})))}andThrough(t){return new e(this._promise.then(e=>Bx(this,void 0,void 0,function*(){if(e.isErr())return new nS(e.error);let n=yield t(e.value);return n.isErr()?new nS(n.error):new tS(e.value)})))}andTee(t){return new e(this._promise.then(e=>Bx(this,void 0,void 0,function*(){if(e.isErr())return new nS(e.error);try{yield t(e.value)}catch{}return new tS(e.value)})))}orTee(t){return new e(this._promise.then(e=>Bx(this,void 0,void 0,function*(){if(e.isOk())return new tS(e.value);try{yield t(e.error)}catch{}return new nS(e.error)})))}mapErr(t){return new e(this._promise.then(e=>Bx(this,void 0,void 0,function*(){return e.isOk()?new tS(e.value):new nS(yield t(e.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new nS(n.error);let r=t(n.value);return r instanceof e?r._promise:r}))}orElse(t){return new e(this._promise.then(e=>Bx(this,void 0,void 0,function*(){return e.isErr()?t(e.error):new tS(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 Ux(this,arguments,function*(){return yield Hx(yield Hx(yield*Wx(Gx(yield Hx(this._promise.then(e=>e.safeUnwrap()))))))})}then(e,t){return this._promise.then(e,t)}[Symbol.asyncIterator](){return Ux(this,arguments,function*(){let e=yield Hx(this._promise);return e.isErr()&&(yield yield Hx(qx(e.error))),yield Hx(e.value)})}};function qx(e){return new Kx(Promise.resolve(new nS(e)))}Kx.fromPromise,Kx.fromSafePromise,Kx.fromThrowable;var Jx=e=>{let t=$x([]);for(let n of e)if(n.isErr()){t=eS(n.error);break}else t.map(e=>e.push(n.value));return t},Yx=e=>Kx.fromSafePromise(Promise.all(e)).andThen(Jx),Xx=e=>{let t=$x([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=eS([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},Zx=e=>Kx.fromSafePromise(Promise.all(e)).andThen(Xx),Qx;(function(e){function t(e,t){return(...n)=>{try{return $x(e(...n))}catch(e){return eS(t?t(e):e)}}}e.fromThrowable=t;function n(e){return Jx(e)}e.combine=n;function r(e){return Xx(e)}e.combineWithAllErrors=r})(Qx||={});function $x(e){return new tS(e)}function eS(e){return new nS(e)}var tS=class{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return $x(e(this.value))}mapErr(e){return $x(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 $x(this.value)}orTee(e){return $x(this.value)}orElse(e){return $x(this.value)}asyncAndThen(e){return e(this.value)}asyncAndThrough(e){return e(this.value).map(()=>this.value)}asyncMap(e){return Kx.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 zx("Called `_unsafeUnwrapErr` on an Ok",this,e)}*[Symbol.iterator](){return this.value}},nS=class{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return eS(this.error)}mapErr(e){return eS(e(this.error))}andThrough(e){return eS(this.error)}andTee(e){return eS(this.error)}orTee(e){try{e(this.error)}catch{}return eS(this.error)}andThen(e){return eS(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return qx(this.error)}asyncAndThrough(e){return qx(this.error)}asyncMap(e){return qx(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return(function*(){throw yield eS(e),Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(e){throw zx("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}*[Symbol.iterator](){let e=this;return yield e,e}};Qx.fromThrowable;var rS={prefetchStaleTime:60,limit:20};rS.limit,rS.limit;var iS=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 v.default.ZodError}},aS=1,oS=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:aS++,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,d.isVNode)(e))i=!1,this.create({id:n,type:`default`,message:e});else if(cS(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,d.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,d.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,d.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,d.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||aS++,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 sS(e,t){let n=t?.id||aS++;return oS.create({message:e,id:n,type:`default`,...t}),n}var cS=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,lS=Object.assign(sS,{success:oS.success,info:oS.info,warning:oS.warning,error:oS.error,custom:oS.custom,message:oS.message,promise:oS.promise,dismiss:oS.dismiss,loading:oS.loading},{getHistory:()=>oS.toasts,getToasts:()=>oS.getActiveToasts()});function uS(e){return e.label!==void 0}var dS=3,fS=`24px`,pS=`16px`,mS=4e3,hS=356,gS=14,_S=45,vS=200;function yS(){let e=(0,d.ref)(!1);return(0,d.watchEffect)(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function bS(...e){return e.filter(Boolean).join(` `)}function xS(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function SS(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?pS:fS;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 CS=[`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`],wS=[`aria-label`,`data-disabled`,`data-close-button-position`],TS=(0,d.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,d.ref)(null),a=(0,d.ref)(null),o=(0,d.ref)(!1),s=(0,d.ref)(!1),c=(0,d.ref)(!1),l=(0,d.ref)(!1),u=(0,d.ref)(!1),f=(0,d.ref)(0),p=(0,d.ref)(0),m=(0,d.ref)(n.toast.duration||n.duration||mS),h=(0,d.ref)(null),g=(0,d.ref)(null),_=(0,d.computed)(()=>n.index===0),v=(0,d.computed)(()=>n.index+1<=n.visibleToasts),y=(0,d.computed)(()=>n.toast.type),b=(0,d.computed)(()=>n.toast.dismissible!==!1),x=(0,d.computed)(()=>n.toast.class||``),S=(0,d.computed)(()=>n.descriptionClass||``),C=(0,d.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,d.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,d.computed)(()=>C.value*n.gap+w.value||0),ee=(0,d.computed)(()=>n.toast.closeButton??n.closeButton),te=(0,d.computed)(()=>n.toast.duration||n.duration||mS),E=(0,d.ref)(0),ne=(0,d.ref)(0),D=(0,d.ref)(null),O=(0,d.computed)(()=>n.position.split(`-`)),k=(0,d.computed)(()=>O.value[0]),A=(0,d.computed)(()=>O.value[1]),j=(0,d.computed)(()=>typeof n.toast.title!=`string`),re=(0,d.computed)(()=>typeof n.toast.description!=`string`),{isDocumentHidden:ie}=yS(),ae=(0,d.computed)(()=>y.value&&y.value===`loading`);(0,d.onMounted)(()=>{o.value=!0,m.value=te.value}),(0,d.watchEffect)(async()=>{if(!o.value||!g.value)return;await(0,d.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 oe(){s.value=!0,f.value=T.value,setTimeout(()=>{r(`removeToast`,n.toast)},vS)}function M(){if(ae.value||!b.value)return{};oe(),n.toast.onDismiss?.(n.toast)}function N(e){e.button!==2&&(ae.value||!b.value||(h.value=new Date,f.value=T.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(c.value=!0,D.value={x:e.clientX,y:e.clientY})))}function se(){if(l.value||!b.value)return;D.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)>=_S||s>.11){f.value=T.value,n.toast.onDismiss?.(n.toast),i.value===`x`?a.value=e>0?`right`:`left`:a.value=t>0?`down`:`up`,oe(),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 ce(e){if(!D.value||!b.value||(window?.getSelection()?.toString()?.length??!1))return;let t=e.clientY-D.value.y,r=e.clientX-D.value.x,a=n.swipeDirections??xS(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,d.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,d.onBeforeUnmount)(()=>{g.value&&r(`removeToast`,n.toast)}),(0,d.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||ie.value?(()=>{if(ne.value<E.value){let e=new Date().getTime()-E.value;m.value-=e}ne.value=new Date().getTime()})():m.value!==1/0&&(E.value=new Date().getTime(),t=setTimeout(()=>{n.toast.onAutoClose?.(n.toast),oe()},m.value)),e(()=>{clearTimeout(t)})}),(0,d.watch)(()=>n.toast.delete,e=>{e!==void 0&&e&&(oe(),n.toast.onDismiss?.(n.toast))},{deep:!0});function P(){c.value=!1,i.value=null,D.value=null}return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:g,class:(0,d.normalizeClass)((0,d.unref)(bS)(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":A.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,d.normalizeStyle)({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${s.value?f.value:T.value}px`,"--initial-height":e.expandByDefault?`auto`:`${p.value}px`,...e.style,...n.toast.style}),onDragend:P,onPointerdown:N,onPointerup:se,onPointermove:ce},[ee.value&&!e.toast.component&&y.value!==`loading`?((0,d.openBlock)(),(0,d.createElementBlock)(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":ae.value,"data-close-button":`true`,"data-close-button-position":e.closeButtonPosition,class:(0,d.normalizeClass)((0,d.unref)(bS)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:M},[e.icons?.close?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.icons?.close),{key:0})):(0,d.renderSlot)(e.$slots,`close-icon`,{key:1})],10,wS)):(0,d.createCommentVNode)(`v-if`,!0),e.toast.component?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.toast.component),(0,d.mergeProps)({key:1},e.toast.componentProps,{onCloseToast:M,isPaused:e.$props.expanded||e.$props.interacting||(0,d.unref)(ie)}),null,16,[`isPaused`])):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:2},[y.value!==`default`||e.toast.icon||e.toast.promise?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,"data-icon":``,class:(0,d.normalizeClass)((0,d.unref)(bS)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.toast.icon),{key:0})):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[y.value===`loading`?(0,d.renderSlot)(e.$slots,`loading-icon`,{key:0}):y.value===`success`?(0,d.renderSlot)(e.$slots,`success-icon`,{key:1}):y.value===`error`?(0,d.renderSlot)(e.$slots,`error-icon`,{key:2}):y.value===`warning`?(0,d.renderSlot)(e.$slots,`warning-icon`,{key:3}):y.value===`info`?(0,d.renderSlot)(e.$slots,`info-icon`,{key:4}):(0,d.createCommentVNode)(`v-if`,!0)],64))],2)):(0,d.createCommentVNode)(`v-if`,!0),(0,d.createElementVNode)(`div`,{"data-content":``,class:(0,d.normalizeClass)((0,d.unref)(bS)(e.classes?.content,e.toast?.classes?.content))},[(0,d.createElementVNode)(`div`,{"data-title":``,class:(0,d.normalizeClass)((0,d.unref)(bS)(e.classes?.title,e.toast.classes?.title))},[j.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.toast.title),(0,d.normalizeProps)((0,d.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[(0,d.createTextVNode)((0,d.toDisplayString)(e.toast.title),1)],64))],2),e.toast.description?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,"data-description":``,class:(0,d.normalizeClass)((0,d.unref)(bS)(e.descriptionClass,S.value,e.classes?.description,e.toast.classes?.description))},[re.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.toast.description),(0,d.normalizeProps)((0,d.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[(0,d.createTextVNode)((0,d.toDisplayString)(e.toast.description),1)],64))],2)):(0,d.createCommentVNode)(`v-if`,!0)],2),e.toast.cancel?((0,d.openBlock)(),(0,d.createElementBlock)(`button`,{key:1,style:(0,d.normalizeStyle)(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:(0,d.normalizeClass)((0,d.unref)(bS)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:t[0]||=t=>{(0,d.unref)(uS)(e.toast.cancel)&&b.value&&(e.toast.cancel.onClick?.(t),oe())}},(0,d.toDisplayString)((0,d.unref)(uS)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):(0,d.createCommentVNode)(`v-if`,!0),e.toast.action?((0,d.openBlock)(),(0,d.createElementBlock)(`button`,{key:2,style:(0,d.normalizeStyle)(e.toast.actionButtonStyle||e.actionButtonStyle),class:(0,d.normalizeClass)((0,d.unref)(bS)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:t[1]||=t=>{(0,d.unref)(uS)(e.toast.action)&&(e.toast.action.onClick?.(t),!t.defaultPrevented&&oe())}},(0,d.toDisplayString)((0,d.unref)(uS)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):(0,d.createCommentVNode)(`v-if`,!0)],64))],46,CS))}}),ES=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},DS={},OS={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 kS(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,OS,t[0]||=[(0,d.createElementVNode)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),(0,d.createElementVNode)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var AS=ES(DS,[[`render`,kS]]),jS=[`data-visible`],MS={class:`sonner-spinner`},NS=(0,d.defineComponent)({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let t=Array(12).fill(0);return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[(0,d.createElementVNode)(`div`,MS,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(t),e=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,jS))}}),PS={},FS={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function IS(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,FS,t[0]||=[(0,d.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 LS=ES(PS,[[`render`,IS]]),RS={},zS={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function BS(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,zS,t[0]||=[(0,d.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 VS=ES(RS,[[`render`,BS]]),HS={},US={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function WS(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,US,t[0]||=[(0,d.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 GS=ES(HS,[[`render`,WS]]),KS={},qS={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function JS(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,qS,t[0]||=[(0,d.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 YS=ES(KS,[[`render`,JS]]),XS=[`aria-label`],ZS=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],QS=typeof window<`u`&&typeof document<`u`;function $S(){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 eC=(0,d.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:gS},visibleToasts:{default:dS},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:fS},mobileOffset:{default:pS},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let t=e,n=(0,d.useAttrs)(),r=(0,d.ref)([]),i=(0,d.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,d.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,d.computed)(()=>{let e={};return o.value.forEach(t=>{e[t]=r.value.filter(e=>e.position===t)}),e}),c=(0,d.ref)([]),l=(0,d.ref)({}),u=(0,d.ref)(!1);(0,d.watchEffect)(()=>{o.value.forEach(e=>{e in l.value||(l.value[e]=!1)})});let f=(0,d.ref)(t.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t.theme),p=(0,d.ref)(null),m=(0,d.ref)(null),h=(0,d.ref)(!1),g=t.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function _(e){r.value.find(t=>t.id===e.id)?.delete||oS.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,d.watchEffect)(e=>{e(oS.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{r.value=r.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}(0,d.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,d.watchEffect)(e=>{if(typeof window>`u`)return;if(t.theme!==`system`){f.value=t.theme;return}let n=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{f.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,d.watchEffect)(()=>{p.value&&m.value&&(m.value.focus({preventScroll:!0}),m.value=null,h.value=!1)}),(0,d.watchEffect)(()=>{r.value.length<=1&&Object.keys(l.value).forEach(e=>{l.value[e]=!1})}),(0,d.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})}QS&&(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 ee(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,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,[(0,d.createCommentVNode)(` Remove item from normal navigation flow, only available via hotkey `),(0,d.createElementVNode)(`section`,{"aria-label":`${e.containerAriaLabel} ${(0,d.unref)(g)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(o.value,(r,i)=>((0,d.openBlock)(),(0,d.createElementBlock)(`ol`,(0,d.mergeProps)({key:r,ref_for:!0,ref_key:`listRef`,ref:p,"data-sonner-toaster":``,"data-sonner-theme":f.value,class:t.class,dir:e.dir===`auto`?$S():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,d.unref)(hS)}px`,"--gap":`${e.gap}px`,...e.style,...(0,d.unref)(n).style,...(0,d.unref)(SS)(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,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(a(r,i),(n,i)=>((0,d.openBlock)(),(0,d.createBlock)(TS,{key:n.id,heights:c.value,icons:e.icons,index:i,toast:n,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:(0,d.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,d.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":ee,onRemoveToast:_},{"close-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`close-icon`,{},()=>[(0,d.createVNode)(AS)])]),"loading-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`loading-icon`,{},()=>[(0,d.createVNode)(NS,{visible:n.type===`loading`},null,8,[`visible`])])]),"success-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`success-icon`,{},()=>[(0,d.createVNode)(LS)])]),"error-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`error-icon`,{},()=>[(0,d.createVNode)(YS)])]),"warning-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`warning-icon`,{},()=>[(0,d.createVNode)(GS)])]),"info-icon":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`info-icon`,{},()=>[(0,d.createVNode)(VS)])]),_: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,ZS))),128))],8,XS)],2112))}}),tC=U({slots:{title:`mb-xs text-sm font-medium`},variants:{variant:{error:{title:`text-error-primary`},info:{title:`text-primary`},warning:{title:`text-warning-primary`}}}}),nC=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0},{default:(0,d.withCtx)(()=>[e.button===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),(0,d.mergeProps)({key:0,variant:`secondary`},e.button,{onClick:n[0]||=t=>r(e.button)}),null,16)),e.link===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(x_),(0,d.mergeProps)({key:1,variant:`secondary`},e.link,{onClick:n[1]||=e=>i()}),null,16))]),_:1})):(0,d.createCommentVNode)(``,!0)}}),rC={class:`absolute top-0 right-0 mt-md mr-sm flex h-text-sm items-center justify-center`},iC=(0,d.defineComponent)({__name:`ToastCloseButton`,emits:[`close`],setup(e,{emit:t}){let n=t,r=(0,h.useI18n)();return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,rC,[(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(_r),"is-tooltip-disabled":!0,label:(0,d.unref)(r).t(`component.toast.close.label`),size:`sm`,variant:`tertiary`,onClick:t[0]||=e=>n(`close`)},null,8,[`icon`,`label`])]))}}),aC={class:`flex h-text-sm items-center`},oC=(0,d.defineComponent)({__name:`ToastIcon`,props:{icon:{},variant:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,aC,[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{class:(0,d.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`]))]))}}),sC={},cC={class:`pointer-events-auto relative w-full rounded-xl border border-secondary bg-primary p-md pl-lg shadow-lg/5`};function lC(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`,cC,[(0,d.renderSlot)(e.$slots,`default`)])}var uC=W(sC,[[`render`,lC]]),dC={class:`flex h-text-sm items-center`},fC=(0,d.defineComponent)({__name:`ToastLoader`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,dC,[(0,d.createVNode)((0,d.unref)(qa),{class:`size-3.5 text-tertiary`})]))}}),pC=[`src`,`alt`],mC={class:`font-medium text-primary`},hC=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(n.to===null?`span`:(0,d.unref)(y.RouterLink)),{to:n.to,class:(0,d.normalizeClass)({"hover:underline":n.to!==null}),onClick:i},{default:(0,d.withCtx)(()=>[n.imageSrc===null?n.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(n.icon),{key:1,class:`mr-xs inline size-3.5 -translate-y-px align-sub text-secondary`})):((0,d.openBlock)(),(0,d.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,pC)),(0,d.createElementVNode)(`span`,mC,(0,d.toDisplayString)(n.label),1)]),_:1},8,[`to`,`class`]))}}),gC={class:`text-sm text-secondary`},_C=(0,d.defineComponent)({__name:`ToastMessage`,props:{message:{},models:{}},emits:[`closeToast`],setup(e,{emit:t}){let n=e,r=t,i=/(\{.*?\})/g,a=/^\{(.*?)\}$/,o=(0,d.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,d.openBlock)(),(0,d.createElementBlock)(`span`,gC,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(o.value,(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:n},[e.type===`text`?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[(0,d.createTextVNode)((0,d.toDisplayString)(e.label),1)],64)):e.type===`interactable`?((0,d.openBlock)(),(0,d.createBlock)(hC,{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,d.createCommentVNode)(``,!0)],64))),128))]))}}),vC=W((0,d.defineComponent)({__name:`Toast`,props:{toast:{}},emits:[`closeToast`],setup(e,{emit:t}){let n=e,r=t,i=(0,d.computed)(()=>n.toast.variant===`error`?`error`:n.toast.variant===`warning`?`warning`:`info`),a=(0,d.computed)(()=>tC({variant:i.value}));return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(uC,{"data-toast-id":n.toast.id},{default:(0,d.withCtx)(()=>[(n.toast.dismissible??!0)&&n.toast.variant!==`loading`?((0,d.openBlock)(),(0,d.createBlock)(iC,{key:0,onClose:t[0]||=e=>r(`closeToast`)})):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(R),{align:`start`,class:`pr-3xl`},{default:(0,d.withCtx)(()=>[n.toast.variant===`loading`?((0,d.openBlock)(),(0,d.createBlock)(fC,{key:0})):n.toast.icon===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(oC,{key:1,icon:n.toast.icon,variant:n.toast.variant},null,8,[`icon`,`variant`])),(0,d.createVNode)((0,d.unref)(q),{gap:`none`},{default:(0,d.withCtx)(()=>[n.toast.title===void 0?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:0,text:n.toast.title,class:(0,d.normalizeClass)([a.value.title(),`mb-xs text-sm font-medium`])},null,8,[`text`,`class`])),(0,d.createVNode)(_C,{models:n.toast.interactableModels??{},message:n.toast.message,onCloseToast:t[1]||=e=>r(`closeToast`)},null,8,[`models`,`message`]),(0,d.createVNode)(nC,{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-201a0d0f`]]),yC=600,bC=`animate-toast-highlight`,xC=new Map;function SC(e){let t=document.querySelector(`[data-toast-id="${e}"]`);if(!t)return;let n=xC.get(e);n&&clearTimeout(n),t.classList.remove(bC),t.scrollTop,t.classList.add(bC);let r=setTimeout(()=>{t.classList.remove(bC),xC.delete(e)},yC);xC.set(e,r)}var CC=1/0,wC=5e3,TC=7e3;function EC(e,t){switch(e){case`always`:return t===`error`?TC:wC;case`all-except-errors`:return t===`error`?CC:wC;case`never`:return CC}}function DC(e){lS.dismiss(e)}function OC(){let e=(0,h.useI18n)(),t=Z();function n(e){(e.id===void 0?null:lS.getToasts().find(t=>t.id===e.id)??null)!==null&&SC(e.id),lS.custom((0,d.markRaw)((0,d.defineComponent)({render:()=>(0,d.h)(vC,{toast:e})})),{id:e.id??crypto.randomUUID(),class:`w-full sm:w-96`,dismissible:e.dismissible,duration:e.duration??EC(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,dismissible:!1,duration:CC,icon:e.icon,interactableModels:e.interactableModels,message:e.loading,variant:`loading`,onAutoClose:e.onAutoClose,onDismiss:e.onDismiss});function i(n,i){let a=lS.custom((0,d.markRaw)((0,d.defineComponent)({render:()=>(0,d.h)(vC,{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(()=>{lS.dismiss(a)},e.duration??EC(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:gt,message:e.t(`component.toast.unable_to_save_changes.message`),variant:`error`})}function a(t){if(!iS.isExpectedApiError(t)){n({icon:gt,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:gt,message:r.detail,variant:`error`})}return{apiError:a,dismiss:DC,promise:r,show:n,unableToSave:i}}var kC=(0,d.defineComponent)({__name:`ToastContainer`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(eC),{style:{zIndex:75},expand:!1}))}}),AC=(0,d.defineComponent)({__name:`TooltipProvider`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TooltipProvider),null,{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),jC=(0,d.defineComponent)({__name:`ApplicationProvider`,props:{isFetchingAuthUser:{type:Boolean}},setup(e){let t=e;return(0,f.useActionRegistryStore)().registerActions(Ox()),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(AC,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(mx)),(0,d.createVNode)((0,d.unref)(fx)),(0,d.createVNode)((0,d.unref)(cx),{"is-fetching-auth-user":t.isFetchingAuthUser},null,8,[`is-fetching-auth-user`]),(0,d.createVNode)((0,d.unref)(kC)),(0,d.createVNode)((0,d.unref)(Ax)),(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),MC=(0,d.defineComponent)({__name:`BreadcrumbItem`,props:{isLabelHidden:{type:Boolean},icon:{},label:{},to:{}},setup(e){let t=e,n=(0,d.computed)(()=>t.isLabelHidden?`sr-only`:``),r=(0,d.computed)(()=>t.to===void 0?``:`group-hover:text-primary group-hover:underline`);return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.to===void 0?`span`:$),{class:`min-w-0 overflow-hidden`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.to===void 0?`span`:(0,d.unref)(y.RouterLink)),{to:t.to,class:`group min-w-0`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{class:`min-w-0`,gap:`sm`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(K,{"is-disabled":!t.isLabelHidden,label:t.label},{default:(0,d.withCtx)(()=>[t.icon?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:(0,d.normalizeClass)([{"group-hover:text-primary":t.to!==void 0},`size-4 shrink-0 text-tertiary`])},null,8,[`class`])):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`is-disabled`,`label`]),t.label?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:0,text:t.label,class:(0,d.normalizeClass)((0,d.unref)(Kv)(`text-xs text-tertiary`,n.value,r.value))},null,8,[`text`,`class`])):(0,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`to`]))]),_:1}))}}),NC={class:`min-w-0`},PC=(0,d.defineComponent)({__name:`BreadcrumbItems`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`nav`,NC,[(0,d.createVNode)(R,{align:`center`,gap:`sm`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]))}}),FC=(0,d.defineComponent)({__name:`BreadcrumbSeparator`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(nn),{class:`size-3.5 shrink-0 text-disabled`}))}}),[IC,LC]=L(`checkboxContext`),RC=U({slots:{control:`
|
|
532
520
|
relative flex size-4 items-center justify-center overflow-hidden
|
|
533
521
|
rounded-xs border border-solid border-secondary bg-primary outline-2
|
|
534
522
|
outline-offset-1 outline-transparent duration-300
|
|
@@ -551,7 +539,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
551
539
|
`,root:`
|
|
552
540
|
group/checkbox flex items-center justify-start outline-none
|
|
553
541
|
disabled:cursor-not-allowed
|
|
554
|
-
`}}),
|
|
542
|
+
`}}),zC={key:0,width:`100%`,height:`100%`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},BC={key:1,width:`100%`,height:`100%`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},VC=(0,d.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}=LC();return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.CheckboxIndicator),{class:(0,d.normalizeClass)((0,d.unref)(r).indicator()),"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`,{},()=>[(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createElementBlock)(`svg`,zC,[(0,d.createVNode)((0,d.unref)(g.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,d.openBlock)(),(0,d.createElementBlock)(`svg`,BC,[(0,d.createVNode)((0,d.unref)(g.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}))}}),HC=(0,d.defineComponent)({__name:`BaseCheckbox`,props:(0,d.mergeModels)({isIndeterminate:{type:Boolean,default:!1},value:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},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,d.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),a=n.id??(0,d.useId)(),o=(0,d.computed)(()=>RC()),s=(0,d.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 IC({isIndeterminate:(0,d.computed)(()=>n.isIndeterminate),checkboxStyle:o}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"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,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),for:(0,d.unref)(a),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage,"is-label-hidden":n.isLabelHidden},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.CheckboxRoot),{id:(0,d.unref)(a),modelValue:s.value,"onUpdate:modelValue":t[0]||=e=>s.value=e,disabled:n.isDisabled,class:(0,d.normalizeClass)(o.value.root()),value:n.value,onBlur:t[1]||=e=>r(`blur`)},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(o.value.control())},[(0,d.createVNode)(VC)],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-label-hidden`]))}}),UC=(0,d.defineComponent)({__name:`Checkbox`,props:(0,d.mergeModels)({value:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},autocomplete:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`);return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(HC,(0,d.mergeProps)(n,{modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,onBlur:t[1]||=e=>r(`blur`)}),null,16,[`modelValue`]))}}),[WC,GC]=L(`checkboxGroupContext`),KC=(0,d.defineComponent)({__name:`CheckboxGroupCheckbox`,props:{isLabelHidden:{type:Boolean},label:{},value:{},isDisabled:{type:Boolean},disabledReason:{}},setup(e){let t=e,n=(0,d.useId)(),{registerCheckbox:r,unRegisterCheckbox:i}=GC();return(0,d.onMounted)(()=>{r(n,t.value)}),(0,d.onBeforeUnmount)(()=>{i(n)}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(HC,{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`]))}}),qC=(0,d.defineComponent)({__name:`CheckboxGroupIndeterminateCheckbox`,props:{label:{default:null}},setup(e){let t=e,{isDisabled:n,isIndeterminate:r,modelValue:i,toggleAll:a}=GC(),o=(0,d.computed)(()=>i.value.length>0),s=(0,d.computed)({get:()=>o.value?[`indeterminate`]:[],set:a});return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.CheckboxGroupRoot),{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(HC,{"is-disabled":(0,d.unref)(n),"is-indeterminate":(0,d.unref)(r),label:t.label,value:`indeterminate`,"onUpdate:modelValue":(0,d.unref)(a)},null,8,[`is-disabled`,`is-indeterminate`,`label`,`onUpdate:modelValue`])]),_:1},8,[`modelValue`]))}}),JC=(0,d.defineComponent)({__name:`CheckboxGroupRoot`,props:(0,d.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,d.useModel)(e,`modelValue`),r=(0,d.ref)(new Map),i=(0,d.computed)(()=>n.value.length===r.value.size),a=(0,d.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 WC({isDisabled:(0,d.computed)(()=>t.isDisabled),isIndeterminate:a,modelValue:n,orientation:(0,d.computed)(()=>t.orientation),registerCheckbox:s,toggleAll:o,unRegisterCheckbox:c}),(e,r)=>((0,d.openBlock)(),(0,d.createBlock)(K,{"is-disabled":!t.isDisabled||t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.CheckboxGroupRoot),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`])]),_:3},8,[`is-disabled`,`label`]))}}),YC={class:`h-full overflow-hidden`},XC=(0,d.defineComponent)({__name:`DashboardPageCenteredContent`,props:{hasVerticalPadding:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,YC,[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)([{"max-w-3xl":!t.isFullWidth,"py-4xl":t.hasVerticalPadding},`relative mx-auto flex size-full flex-col px-2xl`])},[(0,d.renderSlot)(e.$slots,`default`)],2)]))}}),ZC=U({compoundVariants:[{class:{base:`
|
|
555
543
|
border-brand-200 bg-brand-25
|
|
556
544
|
dark:border-brand-800 dark:bg-brand-950
|
|
557
545
|
`,icon:`
|
|
@@ -647,7 +635,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
647
635
|
`,icon:`
|
|
648
636
|
text-warning-700
|
|
649
637
|
dark:text-warning-200
|
|
650
|
-
`},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:{}}}}),
|
|
638
|
+
`},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:{}}}}),QC=(0,d.defineComponent)({__name:`FeaturedIcon`,props:{color:{default:`gray`},icon:{},size:{default:`md`},variant:{default:`translucent`}},setup(e){let t=e,n=(0,d.computed)(()=>ZC({color:t.color,size:t.size,variant:t.variant}));return(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)(n.value.base())},[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{class:(0,d.normalizeClass)(n.value.icon())},null,8,[`class`]))],2))}}),$C=(0,d.defineComponent)({__name:`LogoWithText`,props:{name:{},size:{},src:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(R,{gap:`md`},{default:(0,d.withCtx)(()=>[t.src===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Mb,{key:0,src:t.src,alt:t.name,size:t.size},null,8,[`src`,`alt`,`size`])),(0,d.createElementVNode)(`span`,{class:(0,d.normalizeClass)([{"text-xl":t.size===`sm`,"text-sm":t.size===`xs`,"text-xs":t.size===`xxs`},`font-semibold text-secondary`])},(0,d.toDisplayString)(t.name),3)]),_:1}))}}),ew=(0,d.defineComponent)({__name:`BaseHeader`,props:{title:{},left:{default:null}},setup(e){let t=e,n=(0,d.useSlots)(),r=(0,d.computed)(()=>n.subtitle!==void 0);return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{gap:r.value?`xl`:`lg`,align:`center`},{default:(0,d.withCtx)(()=>[t.left===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[t.left.type===`icon`?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.left.icon),{key:0,class:(0,d.normalizeClass)([{"size-6":r.value,"size-4":!r.value},`shrink-0 text-tertiary`])},null,8,[`class`])):t.left.type===`featured-icon`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(QC),{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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),{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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(no),{key:3,color:t.left.color??`gray`,class:`shrink-0`},null,8,[`color`])):t.left.type===`logo`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Mb),{key:4,src:t.left.src,alt:t.left.alt,size:r.value?`md`:`sm`,class:`shrink-0`},null,8,[`src`,`alt`,`size`])):(0,d.createCommentVNode)(``,!0)],64)),(0,d.createVNode)((0,d.unref)(q),{gap:`none`,class:`min-w-0 flex-1 overflow-hidden`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{align:`center`,gap:`sm`,class:`min-w-0`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(G),{text:t.title,as:`h1`,class:`text-md font-semibold text-primary`},null,8,[`text`]),(0,d.renderSlot)(e.$slots,`title-end`)]),_:3}),(0,d.renderSlot)(e.$slots,`subtitle`)]),_:3}),e.$slots.actions?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:1,gap:`sm`,class:`shrink-0`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`actions`)]),_:3})):(0,d.createCommentVNode)(``,!0)]),_:3},8,[`gap`]))}}),tw={},nw={"aria-hidden":`true`,class:`pointer-events-none absolute inset-0`};function rw(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`,nw,[...t[0]||=[(0,d.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 iw=W(tw,[[`render`,rw]]),aw={class:`sticky top-0 z-1 py-4xl`},ow=(0,d.defineComponent)({__name:`DashboardPageCenteredContentHeader`,props:{title:{},actions:{default:()=>[]},headerLeftConfig:{default:null}},setup(e){let t=e,n=(0,h.useI18n)(),r=(0,d.useSlots)();return(e,i)=>((0,d.openBlock)(),(0,d.createElementBlock)(`header`,aw,[(0,d.createVNode)(iw),(0,d.createVNode)((0,d.unref)(ew),{title:t.title,left:t.headerLeftConfig,class:`relative`},(0,d.createSlots)({actions:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`actions`),t.actions.length>0?((0,d.openBlock)(),(0,d.createBlock)(Wo,{key:0,actions:t.actions,"current-context-only":!1,"popover-side":`bottom`,"popover-align":`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{label:(0,d.unref)(n).t(`component.dashboard_page_header.options`),icon:(0,d.unref)(yn),"is-tooltip-disabled":!0,variant:`tertiary`},null,8,[`label`,`icon`])]),_:1},8,[`actions`])):(0,d.createCommentVNode)(``,!0)]),_:2},[(0,d.unref)(r)[`title-end`]?{name:`title-end`,fn:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`title-end`)]),key:`0`}:void 0,(0,d.unref)(r).subtitle===void 0?void 0:{name:`subtitle`,fn:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`subtitle`)]),key:`1`}]),1032,[`title`,`left`])]))}}),sw={class:`overflow-y-auto pb-4xl`},cw=(0,d.defineComponent)({__name:`DashboardPageCenteredContentScrollable`,props:{hasVerticalPadding:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,sw,[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)([{"max-w-3xl":!t.isFullWidth,"py-4xl":t.hasVerticalPadding},`relative mx-auto flex w-full flex-col px-2xl`])},[(0,d.renderSlot)(e.$slots,`default`)],2)]))}}),lw=(0,d.defineComponent)({__name:`DashboardPageContainer`,props:{class:{default:null}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)((0,d.unref)(Kv)(`mx-auto flex w-full flex-col px-2xl`,t.class))},[(0,d.renderSlot)(e.$slots,`default`)],2))}}),uw=(0,d.defineComponent)({__name:`DashboardPageActions`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(lw,{class:`flex h-11 shrink-0 justify-center border-b border-secondary`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`,{},()=>[(0,d.createVNode)(R,{class:`size-full`,justify:`between`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`,{},()=>[t[0]||=(0,d.createElementVNode)(`span`,null,null,-1)]),(0,d.renderSlot)(e.$slots,`right`,{},()=>[t[1]||=(0,d.createElementVNode)(`span`,null,null,-1)])]),_:3})])]),_:3}))}}),dw=(0,d.defineComponent)({__name:`DashboardPageContent`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(lw,{class:`h-full overflow-auto py-2xl`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),[fw,pw]=L(`DetailPaneContext`),mw=10;function hw(){let e=pw(null),t=xf(),n=(0,d.computed)(()=>e===null||e.isFloatingDetailPane.value?`0px`:e.isOpen.value&&e.variant===`bordered-inline`?`calc(${e.sidebarWidth.value} + ${mw}px)`:e.isOpen.value?e.sidebarWidth.value:`0px`),r=(0,d.computed)(()=>e?.isResizing.value??!1);return{contentPaddingRight:n,transitionDuration:(0,d.computed)(()=>r.value||t.value?0:.3)}}var gw=(0,d.defineComponent)({__name:`DashboardPageDetailPanePadding`,setup(e){let{contentPaddingRight:t,transitionDuration:n}=hw();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{initial:{marginRight:(0,d.unref)(t)},animate:{marginRight:(0,d.unref)(t)},transition:{duration:(0,d.unref)(n),type:`spring`,bounce:0},class:`flex size-full flex-col overflow-hidden`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`animate`,`transition`]))}}),_w=U({slots:{pane:`absolute z-4 max-w-full bg-primary`,resizeHandle:`
|
|
651
639
|
group absolute -left-2 z-10 flex w-4 cursor-col-resize items-center
|
|
652
640
|
justify-center
|
|
653
641
|
`,resizeHandleBar:`
|
|
@@ -670,14 +658,14 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
670
658
|
`,resizeHandle:`inset-y-0`},"full-height-overlay":{pane:`
|
|
671
659
|
inset-y-0 right-0 h-full border-l border-secondary
|
|
672
660
|
max-md:w-full!
|
|
673
|
-
`,resizeHandle:`inset-y-0`}}}}),_w=[`aria-label`],vw=(0,d.defineComponent)({__name:`DashboardPageDetailPaneTransition`,setup(e){let{isResizable:t,isResizing:n,sidebarWidth:r,variant:i,onResizeKeyDown:a,onResizeStart:o}=fw(),s=xf(),c=(0,d.computed)(()=>n.value||s.value?0:.3),{t:l}=(0,h.useI18n)(),u=(0,d.computed)(()=>gw({variant:i}));return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{initial:{translateX:`105%`},animate:{translateX:`0%`},exit:{translateX:`105%`},transition:{duration:c.value,type:`spring`,bounce:0},style:(0,d.normalizeStyle)({width:(0,d.unref)(r)}),class:(0,d.normalizeClass)(u.value.pane())},{default:(0,d.withCtx)(()=>[(0,d.unref)(t)?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,class:(0,d.normalizeClass)([u.value.resizeHandle(),`focus-visible:outline-none`]),"aria-label":(0,d.unref)(l)(`component.dashboard_page_detail_pane_transition.resize`),role:`separator`,"aria-orientation":`vertical`,tabindex:`0`,onPointerdown:n[0]||=(...e)=>(0,d.unref)(o)&&(0,d.unref)(o)(...e),onKeydown:n[1]||=(...e)=>(0,d.unref)(a)&&(0,d.unref)(a)(...e)},[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(u.value.resizeHandleBar())},null,2)],42,_w)):(0,d.createCommentVNode)(``,!0),(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`transition`,`style`,`class`]))}}),yw=(0,d.defineComponent)({__name:`DashboardPageDetailPane`,setup(e){let{isOpen:t}=fw();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[(0,d.unref)(t)?((0,d.openBlock)(),(0,d.createBlock)(vw,{key:0},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})):(0,d.createCommentVNode)(``,!0)]),_:3}))}}),bw=`20rem`,xw=`16rem`,Sw=`25rem`;function Cw(e){return Number.parseFloat(e)*(typeof document<`u`?Number.parseFloat(getComputedStyle(document.documentElement).fontSize):16)}function ww(e){let t=e.isResizable??!0,n=e.storage,r=e.variant,i=e.defaultWidth??bw,a=e.minWidth??xw,o=e.maxWidth??Sw,s=(0,p.useBreakpoints)({xl:960}),c=(0,d.computed)(()=>r===`full-height-overlay`||r===`bordered-overlay`?!0:s.smaller(`xl`).value),l=(0,d.ref)(!1),u=(0,d.ref)(!1),f=n==null?(0,d.ref)(i):(0,p.useLocalStorage)(`${n.key}-width`,i);function m(){if(n==null)return e.isOpen;if(n.strategy===`localStorage`)return(0,p.useLocalStorage)(n.key,e.isOpen.value);if(n.strategy===`routeQuery`){let t=(0,b.useRouteQuery)(n.key,String(e.isOpen.value));return(0,d.computed)({get:()=>t.value===`true`,set:e=>{t.value=String(e)}})}return e.isOpen}let h=m(),g=(0,d.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=Cw(a),i=Cw(o);function s(e){let t=n.right-e.clientX;f.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=Cw(a),n=Cw(o),r=0;if(e.key===`ArrowLeft`?r=16:e.key===`ArrowRight`&&(r=-16),r===0)return;e.preventDefault();let s=Number.parseFloat(f.value)||Cw(i);f.value=`${Math.min(Math.max(s+r,t),n)}px`}return{isFloatingDetailPane:c,isOpen:g,isResizable:t,isResizing:u,sidebarWidth:f,toggleIsOpen:_,variant:r,onResizeKeyDown:y,onResizeStart:v}}var Tw={id:`main-content`},Ew=(0,d.defineComponent)({__name:`Page`,props:{title:{}},setup(e){let t=e,n=Z(),r=(0,p.useTitle)();return(0,d.watch)([()=>t.title,n.projectName],([e,t])=>{r.value=`${e} — ${t}`},{immediate:!0}),(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`main`,Tw,[(0,d.renderSlot)(e.$slots,`default`)]))}}),[Dw,Ow]=L(`MainContentDetailPaneContext`),kw=(0,d.ref)(null),Aw=(0,d.ref)([]);function jw(){function e(e,t){kw.value=e,Aw.value=t}function t(){kw.value=null,Aw.value=[]}return{title:kw,breadcrumbs:Aw,clearNavigation:t,setNavigation:e}}var Mw={class:`relative flex size-full overflow-hidden`},Nw=W((0,d.defineComponent)({__name:`DashboardPage`,props:(0,d.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=Ow(null),r=(0,d.useSlots)(),{setNavigation:i}=jw();(0,d.watch)([()=>t.title,()=>t.breadcrumbs],([e,t])=>{i(e,t)},{immediate:!0});let a=(0,d.useModel)(e,`isDetailPaneOpen`),o=(0,d.computed)(()=>t.detailPane!==null&&r[`detail-pane`]!==void 0),{isFloatingDetailPane:s,isOpen:c,isResizable:l,isResizing:u,sidebarWidth:f,toggleIsOpen:p,variant:m,onResizeKeyDown:h,onResizeStart:g}=ww({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&&(dw({isFloatingDetailPane:(0,d.computed)(()=>s.value),isOpen:c,isResizable:l,isResizing:u,sidebarWidth:f,toggleIsOpen:p,variant:m,onResizeKeyDown:h,onResizeStart:g}),n!=null&&(n.registerDetailPane(c,p,t.detailPane?.isToggleHidden),(0,d.onUnmounted)(()=>n.unregisterDetailPane())));let _=(0,d.computed)(()=>r[`page-actions-left`]!==void 0||r[`page-actions-right`]!==void 0);return(t,n)=>((0,d.openBlock)(),(0,d.createBlock)(Ew,{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,d.withCtx)(()=>[_.value?((0,d.openBlock)(),(0,d.createBlock)(lw,{key:0},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`page-actions-left`,{},void 0,!0)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`page-actions-right`,{},void 0,!0)]),_:3})):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,Mw,[(0,d.createVNode)(hw,null,{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`default`,{},void 0,!0)]),_:3}),o.value?((0,d.openBlock)(),(0,d.createBlock)(yw,{key:0},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`detail-pane`,{},void 0,!0)]),_:3})):(0,d.createCommentVNode)(``,!0)])]),_:3},8,[`title`]))}}),[[`__scopeId`,`data-v-3cfb82f3`]]),Pw={class:`sr-only`},Fw=(0,d.defineComponent)({__name:`DashboardPageLoadingState`,props:{breadcrumbs:{}},setup(e){let t=e,n=(0,h.useI18n)();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)(Nw,{breadcrumbs:t.breadcrumbs,title:``},{title:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`h1`,Pw,(0,d.toDisplayString)((0,d.unref)(n).t(`component.dashboard_page_loading_state.loading`)),1),(0,d.createVNode)(J,{class:`h-4 w-24`})]),_:1},8,[`breadcrumbs`]))}}),Iw=(0,d.defineComponent)({__name:`DashboardPageDetailPaneCloseButton`,setup(e){let t=(0,h.useI18n)(),{toggle:n}=Ow();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Q),{label:(0,d.unref)(t).t(`component.dashboard_page_detail_pane_toggle.collapse`),icon:(0,d.unref)(_r),variant:`tertiary`,onClick:r[0]||=e=>(0,d.unref)(n)()},null,8,[`label`,`icon`]))}}),Lw=(0,d.defineComponent)({__name:`DashboardPageDetailPaneToggle`,setup(e){let{isOpen:t,toggle:n}=Ow(),r=(0,h.useI18n)(),i=(0,f.createAction)({id:`toggle-detail-pane`,name:()=>r.t(`action.global.toggle_detail_pane.name`),execute:()=>{n()},group:(0,f.useActionGroup)().navigation,icon:()=>t.value?Un:jn,keyboardShortcut:{key:`I`,mod:!0},keywords:r.t(`action.global.toggle_detail_pane.keywords`).split(` `)}),a=(0,d.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,d.openBlock)(),(0,d.createBlock)(K,{label:a.value,"keyboard-shortcut":(0,d.unref)(i).keyboardShortcut},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Ko,{"current-context-only":!1,action:(0,d.unref)(i),"group-priority":(0,d.unref)(f.GroupPriority).NAVIGATION},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.Toggle),{"model-value":(0,d.unref)(t),"data-state":(0,d.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,d.withCtx)(()=>[...n[0]||=[(0,d.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,d.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`]))}}),Rw=(0,d.defineComponent)({__name:`DashboardPageHeaderActions`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(R,{gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),zw={class:`border-b border-secondary`},Bw={class:`flex h-11 items-center`},Vw={key:0,class:`flex h-11 items-center border-t border-secondary`},Hw=(0,d.defineComponent)({__name:`DashboardPageHeader`,setup(e){let t=(0,d.useSlots)(),n=(0,p.useBreakpoints)({lg:1024}).smaller(`lg`),r=(0,d.computed)(()=>!!t[`action-right`]);return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`header`,zw,[(0,d.createElementVNode)(`div`,Bw,[(0,d.createVNode)(cw,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{justify:`between`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`action-left`)]),_:3}),(0,d.renderSlot)(e.$slots,`action-center`),(0,d.createVNode)(R,{gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.unref)(n)?(0,d.createCommentVNode)(``,!0):(0,d.renderSlot)(e.$slots,`action-right`,{key:0}),(0,d.createVNode)(Rw,null,{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`master-actions`)]),_:3})]),_:3})]),_:3})]),_:3})]),(0,d.unref)(n)&&r.value?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Vw,[(0,d.createVNode)(cw,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{justify:`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`action-right`)]),_:3})]),_:3})]),_:3})])):(0,d.createCommentVNode)(``,!0)]))}}),Uw=(0,d.defineComponent)({__name:`DashboardPageHeaderMasterActionButton`,props:{icon:{},label:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(Q,{icon:t.icon,label:t.label,variant:`tertiary`},null,8,[`icon`,`label`]))}});function Ww({maxDate:e,minDate:t,modelValue:n}){let r=Z(),i=(0,d.computed)(()=>r.dateLocale.value??navigator.language),a=S.Temporal.Now.plainDateISO(),o=(0,d.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,d.computed)({get:()=>{if(n.value!==null)return c(n.value)},set:e=>{e==null?n.value=null:n.value=l(e)}}),f=(0,d.computed)(()=>{if(t.value!=null)return c(t.value)});return{plainDateToCalendarDate:c,calendarPlaceholder:o,calendarValue:u,locale:i,maxDateValue:(0,d.computed)(()=>{if(e.value!=null)return c(e.value)}),minDateValue:f,setPlaceholder:s}}var Gw=U({slots:{field:`flex h-full flex-1 items-center px-sm`,literal:`text-placeholder select-none`,segment:`
|
|
661
|
+
`,resizeHandle:`inset-y-0`}}}}),vw=[`aria-label`],yw=(0,d.defineComponent)({__name:`DashboardPageDetailPaneTransition`,setup(e){let{isResizable:t,isResizing:n,sidebarWidth:r,variant:i,onResizeKeyDown:a,onResizeStart:o}=pw(),s=xf(),c=(0,d.computed)(()=>n.value||s.value?0:.3),{t:l}=(0,h.useI18n)(),u=(0,d.computed)(()=>_w({variant:i}));return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{initial:{translateX:`105%`},animate:{translateX:`0%`},exit:{translateX:`105%`},transition:{duration:c.value,type:`spring`,bounce:0},style:(0,d.normalizeStyle)({width:(0,d.unref)(r)}),class:(0,d.normalizeClass)(u.value.pane())},{default:(0,d.withCtx)(()=>[(0,d.unref)(t)?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,class:(0,d.normalizeClass)([u.value.resizeHandle(),`focus-visible:outline-none`]),"aria-label":(0,d.unref)(l)(`component.dashboard_page_detail_pane_transition.resize`),role:`separator`,"aria-orientation":`vertical`,tabindex:`0`,onPointerdown:n[0]||=(...e)=>(0,d.unref)(o)&&(0,d.unref)(o)(...e),onKeydown:n[1]||=(...e)=>(0,d.unref)(a)&&(0,d.unref)(a)(...e)},[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(u.value.resizeHandleBar())},null,2)],42,vw)):(0,d.createCommentVNode)(``,!0),(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`transition`,`style`,`class`]))}}),bw=(0,d.defineComponent)({__name:`DashboardPageDetailPane`,setup(e){let{isOpen:t}=pw();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[(0,d.unref)(t)?((0,d.openBlock)(),(0,d.createBlock)(yw,{key:0},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})):(0,d.createCommentVNode)(``,!0)]),_:3}))}}),xw=`20rem`,Sw=`16rem`,Cw=`25rem`;function ww(e){return Number.parseFloat(e)*(typeof document<`u`?Number.parseFloat(getComputedStyle(document.documentElement).fontSize):16)}function Tw(e){let t=e.isResizable??!0,n=e.storage,r=e.variant,i=e.defaultWidth??xw,a=e.minWidth??Sw,o=e.maxWidth??Cw,s=(0,p.useBreakpoints)({xl:960}),c=(0,d.computed)(()=>r===`full-height-overlay`||r===`bordered-overlay`?!0:s.smaller(`xl`).value),l=(0,d.ref)(!1),u=(0,d.ref)(!1),f=n==null?(0,d.ref)(i):(0,p.useLocalStorage)(`${n.key}-width`,i);function m(){if(n==null)return e.isOpen;if(n.strategy===`localStorage`)return(0,p.useLocalStorage)(n.key,e.isOpen.value);if(n.strategy===`routeQuery`){let t=(0,b.useRouteQuery)(n.key,String(e.isOpen.value));return(0,d.computed)({get:()=>t.value===`true`,set:e=>{t.value=String(e)}})}return e.isOpen}let h=m(),g=(0,d.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=ww(a),i=ww(o);function s(e){let t=n.right-e.clientX;f.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=ww(a),n=ww(o),r=0;if(e.key===`ArrowLeft`?r=16:e.key===`ArrowRight`&&(r=-16),r===0)return;e.preventDefault();let s=Number.parseFloat(f.value)||ww(i);f.value=`${Math.min(Math.max(s+r,t),n)}px`}return{isFloatingDetailPane:c,isOpen:g,isResizable:t,isResizing:u,sidebarWidth:f,toggleIsOpen:_,variant:r,onResizeKeyDown:y,onResizeStart:v}}var Ew={id:`main-content`},Dw=(0,d.defineComponent)({__name:`Page`,props:{title:{}},setup(e){let t=e,n=Z(),r=(0,p.useTitle)();return(0,d.watch)([()=>t.title,n.projectName],([e,t])=>{r.value=`${e} — ${t}`},{immediate:!0}),(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`main`,Ew,[(0,d.renderSlot)(e.$slots,`default`)]))}}),[Ow,kw]=L(`MainContentDetailPaneContext`),Aw=(0,d.ref)(null),jw=(0,d.ref)([]);function Mw(){function e(e,t){Aw.value=e,jw.value=t}function t(){Aw.value=null,jw.value=[]}return{title:Aw,breadcrumbs:jw,clearNavigation:t,setNavigation:e}}var Nw={class:`relative flex size-full overflow-hidden`},Pw=W((0,d.defineComponent)({__name:`DashboardPage`,props:(0,d.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=kw(null),r=(0,d.useSlots)(),{setNavigation:i}=Mw();(0,d.watch)([()=>t.title,()=>t.breadcrumbs],([e,t])=>{i(e,t)},{immediate:!0});let a=(0,d.useModel)(e,`isDetailPaneOpen`),o=(0,d.computed)(()=>t.detailPane!==null&&r[`detail-pane`]!==void 0),{isFloatingDetailPane:s,isOpen:c,isResizable:l,isResizing:u,sidebarWidth:f,toggleIsOpen:p,variant:m,onResizeKeyDown:h,onResizeStart:g}=Tw({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&&(fw({isFloatingDetailPane:(0,d.computed)(()=>s.value),isOpen:c,isResizable:l,isResizing:u,sidebarWidth:f,toggleIsOpen:p,variant:m,onResizeKeyDown:h,onResizeStart:g}),n!=null&&(n.registerDetailPane(c,p,t.detailPane?.isToggleHidden),(0,d.onUnmounted)(()=>n.unregisterDetailPane())));let _=(0,d.computed)(()=>r[`page-actions-left`]!==void 0||r[`page-actions-right`]!==void 0);return(t,n)=>((0,d.openBlock)(),(0,d.createBlock)(Dw,{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,d.withCtx)(()=>[_.value?((0,d.openBlock)(),(0,d.createBlock)(uw,{key:0},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`page-actions-left`,{},void 0,!0)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`page-actions-right`,{},void 0,!0)]),_:3})):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,Nw,[(0,d.createVNode)(gw,null,{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`default`,{},void 0,!0)]),_:3}),o.value?((0,d.openBlock)(),(0,d.createBlock)(bw,{key:0},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(t.$slots,`detail-pane`,{},void 0,!0)]),_:3})):(0,d.createCommentVNode)(``,!0)])]),_:3},8,[`title`]))}}),[[`__scopeId`,`data-v-3cfb82f3`]]),Fw={class:`sr-only`},Iw=(0,d.defineComponent)({__name:`DashboardPageLoadingState`,props:{breadcrumbs:{}},setup(e){let t=e,n=(0,h.useI18n)();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)(Pw,{breadcrumbs:t.breadcrumbs,title:``},{title:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`h1`,Fw,(0,d.toDisplayString)((0,d.unref)(n).t(`component.dashboard_page_loading_state.loading`)),1),(0,d.createVNode)(J,{class:`h-4 w-24`})]),_:1},8,[`breadcrumbs`]))}}),Lw=(0,d.defineComponent)({__name:`DashboardPageDetailPaneCloseButton`,setup(e){let t=(0,h.useI18n)(),{toggle:n}=kw();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Q),{label:(0,d.unref)(t).t(`component.dashboard_page_detail_pane_toggle.collapse`),icon:(0,d.unref)(_r),variant:`tertiary`,onClick:r[0]||=e=>(0,d.unref)(n)()},null,8,[`label`,`icon`]))}}),Rw=(0,d.defineComponent)({__name:`DashboardPageDetailPaneToggle`,setup(e){let{isOpen:t,toggle:n}=kw(),r=(0,h.useI18n)(),i=(0,f.createAction)({id:`toggle-detail-pane`,name:()=>r.t(`action.global.toggle_detail_pane.name`),execute:()=>{n()},group:(0,f.useActionGroup)().navigation,icon:()=>t.value?Un:jn,keyboardShortcut:{key:`I`,mod:!0},keywords:r.t(`action.global.toggle_detail_pane.keywords`).split(` `)}),a=(0,d.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,d.openBlock)(),(0,d.createBlock)(K,{label:a.value,"keyboard-shortcut":(0,d.unref)(i).keyboardShortcut},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Ko,{"current-context-only":!1,action:(0,d.unref)(i),"group-priority":(0,d.unref)(f.GroupPriority).NAVIGATION},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.Toggle),{"model-value":(0,d.unref)(t),"data-state":(0,d.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,d.withCtx)(()=>[...n[0]||=[(0,d.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,d.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`]))}}),zw=(0,d.defineComponent)({__name:`DashboardPageHeaderActions`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(R,{gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),Bw={class:`border-b border-secondary`},Vw={class:`flex h-11 items-center`},Hw={key:0,class:`flex h-11 items-center border-t border-secondary`},Uw=(0,d.defineComponent)({__name:`DashboardPageHeader`,setup(e){let t=(0,d.useSlots)(),n=(0,p.useBreakpoints)({lg:1024}).smaller(`lg`),r=(0,d.computed)(()=>!!t[`action-right`]);return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`header`,Bw,[(0,d.createElementVNode)(`div`,Vw,[(0,d.createVNode)(lw,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{justify:`between`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`action-left`)]),_:3}),(0,d.renderSlot)(e.$slots,`action-center`),(0,d.createVNode)(R,{gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.unref)(n)?(0,d.createCommentVNode)(``,!0):(0,d.renderSlot)(e.$slots,`action-right`,{key:0}),(0,d.createVNode)(zw,null,{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`master-actions`)]),_:3})]),_:3})]),_:3})]),_:3})]),(0,d.unref)(n)&&r.value?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,Hw,[(0,d.createVNode)(lw,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{justify:`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`action-right`)]),_:3})]),_:3})]),_:3})])):(0,d.createCommentVNode)(``,!0)]))}}),Ww=(0,d.defineComponent)({__name:`DashboardPageHeaderMasterActionButton`,props:{icon:{},label:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(Q,{icon:t.icon,label:t.label,variant:`tertiary`},null,8,[`icon`,`label`]))}});function Gw({maxDate:e,minDate:t,modelValue:n}){let r=Z(),i=(0,d.computed)(()=>r.dateLocale.value??navigator.language),a=S.Temporal.Now.plainDateISO(),o=(0,d.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,d.computed)({get:()=>{if(n.value!==null)return c(n.value)},set:e=>{e==null?n.value=null:n.value=l(e)}}),f=(0,d.computed)(()=>{if(t.value!=null)return c(t.value)});return{plainDateToCalendarDate:c,calendarPlaceholder:o,calendarValue:u,locale:i,maxDateValue:(0,d.computed)(()=>{if(e.value!=null)return c(e.value)}),minDateValue:f,setPlaceholder:s}}var Kw=U({slots:{field:`flex h-full flex-1 items-center px-sm`,literal:`text-placeholder select-none`,segment:`
|
|
674
662
|
rounded-xs px-xxs text-primary tabular-nums caret-transparent outline-none
|
|
675
663
|
group-data-disabled/field-wrapper:pointer-events-none
|
|
676
664
|
hover:bg-secondary-hover hover:text-primary
|
|
677
665
|
focus:bg-secondary-hover focus:text-primary
|
|
678
666
|
data-placeholder:text-placeholder
|
|
679
667
|
data-placeholder:focus:text-primary
|
|
680
|
-
`},variants:{size:{md:{field:`text-xs`},sm:{field:`text-xs`}}}}),[
|
|
668
|
+
`},variants:{size:{md:{field:`text-xs`},sm:{field:`text-xs`}}}}),[qw,Jw]=L(`DatePickerContext`),Yw={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`},Xw=(0,d.defineComponent)({__name:`DatePickerCalendarGrid`,props:{month:{},weekDays:{}},setup(e){let t=e,{onClose:n}=Jw();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DatePickerGrid),{class:`w-full border-collapse select-none`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DatePickerGridHead),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DatePickerGridRow),{class:`flex`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t.weekDays,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DatePickerHeadCell),{key:e,class:`flex-1 py-xs text-center text-xs font-medium text-tertiary`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(e),1)]),_:2},1024))),128))]),_:1})]),_:1}),(0,d.createVNode)((0,d.unref)(m.DatePickerGridBody),null,{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t.month.rows,(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DatePickerGridRow),{key:i,class:`flex py-xxs`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DatePickerCell),{key:e.toString(),date:e,class:`relative flex-1 p-0 text-center text-xs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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-unavailable:pointer-events-none data-unavailable:text-disabled data-unavailable:line-through`,onClick:r[0]||=e=>(0,d.unref)(n)?.()},{default:(0,d.withCtx)(({today:t})=>[(0,d.createTextVNode)((0,d.toDisplayString)(e.day)+` `,1),t?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,Yw)):(0,d.createCommentVNode)(``,!0)]),_:2},1032,[`day`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1024))),128))]),_:1})]),_:1}))}}),Zw=U({slots:{headingTrigger:`
|
|
681
669
|
rounded-sm px-xxs text-sm font-semibold text-primary transition-colors
|
|
682
670
|
outline-none
|
|
683
671
|
hover:bg-secondary-hover
|
|
@@ -697,7 +685,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
697
685
|
z-50 w-72 origin-(--reka-popover-content-transform-origin) rounded-2xl
|
|
698
686
|
border border-secondary bg-primary p-xl shadow-lg
|
|
699
687
|
will-change-[transform,opacity]
|
|
700
|
-
`}})(),
|
|
688
|
+
`}})(),Qw=(0,d.defineComponent)({__name:`DatePickerMonthPopover`,props:{placeholder:{}},emits:[`update:placeholder`],setup(e,{emit:t}){let n=e,r=t,i=Z(),a=(0,d.ref)(!1),o=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.PopoverRoot),{open:a.value,"onUpdate:open":t[0]||=e=>a.value=e},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverTrigger),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g_),{label:o.value,size:`xs`,variant:`tertiary`,class:`font-semibold`},null,8,[`label`])]),_:1}),(0,d.createVNode)((0,d.unref)(m.PopoverPortal),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Sr,{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverContent),{class:(0,d.normalizeClass)((0,d.unref)(Zw).pickerPopover()),"side-offset":8,"collision-padding":10,align:`center`,"data-animation":`popover-default`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.MonthPickerRoot),{locale:(0,d.unref)(i).locale.value,"model-value":n.placeholder,"onUpdate:modelValue":s},{default:(0,d.withCtx)(({grid:e})=>[(0,d.createVNode)((0,d.unref)(m.MonthPickerGrid),{class:(0,d.normalizeClass)((0,d.unref)(Zw).pickerGrid())},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.MonthPickerGridBody),{class:(0,d.normalizeClass)((0,d.unref)(Zw).pickerGridBody())},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.rows,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.MonthPickerGridRow),{key:t,class:(0,d.normalizeClass)((0,d.unref)(Zw).pickerGridRow())},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.MonthPickerCell),{key:e.toString(),class:(0,d.normalizeClass)((0,d.unref)(Zw).pickerCell()),date:e},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.MonthPickerCellTrigger),{month:e,class:(0,d.normalizeClass)((0,d.unref)(Zw).pickerCellTrigger())},{default:(0,d.withCtx)(({monthValue:e})=>[(0,d.createTextVNode)((0,d.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`]))}}),$w=U({slots:{header:`flex w-full items-center justify-between`,heading:`text-sm font-semibold text-primary`,headingTrigger:`
|
|
701
689
|
rounded-sm px-xxs text-sm font-semibold text-primary transition-colors
|
|
702
690
|
outline-none
|
|
703
691
|
hover:bg-secondary-hover
|
|
@@ -717,7 +705,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
717
705
|
z-50 w-72 origin-(--reka-popover-content-transform-origin) rounded-2xl
|
|
718
706
|
border border-secondary bg-primary p-xl shadow-lg
|
|
719
707
|
will-change-[transform,opacity]
|
|
720
|
-
`}})()
|
|
708
|
+
`}})(),eT=(0,d.defineComponent)({__name:`DatePickerYearPopover`,props:{placeholder:{}},emits:[`update:placeholder`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),{locale:a}=Z(),o=(0,d.ref)(!1),s=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.PopoverRoot),{open:o.value,"onUpdate:open":t[0]||=e=>o.value=e},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverTrigger),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g_),{label:s.value,size:`xs`,variant:`tertiary`,class:`font-semibold`},null,8,[`label`])]),_:1}),(0,d.createVNode)((0,d.unref)(m.PopoverPortal),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Sr,{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.PopoverContent),{class:(0,d.normalizeClass)((0,d.unref)($w).pickerPopover()),"side-offset":8,"collision-padding":10,align:`center`,"data-animation":`popover-default`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.YearPickerRoot),{locale:(0,d.unref)(a),"model-value":n.placeholder,"onUpdate:modelValue":c},{default:(0,d.withCtx)(({grid:e})=>[(0,d.createVNode)(q,null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)((0,d.unref)($w).header())},[(0,d.createVNode)((0,d.unref)(m.YearPickerPrev),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Q,{icon:(0,d.unref)(Qt),label:(0,d.unref)(i).t(`component.date_picker.previous_year_page`),size:`md`,variant:`tertiary`},null,8,[`icon`,`label`])]),_:1}),(0,d.createVNode)((0,d.unref)(m.YearPickerHeading),{class:(0,d.normalizeClass)((0,d.unref)($w).heading())},null,8,[`class`]),(0,d.createVNode)((0,d.unref)(m.YearPickerNext),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Q,{icon:(0,d.unref)(nn),label:(0,d.unref)(i).t(`component.date_picker.next_year_page`),size:`md`,variant:`tertiary`},null,8,[`icon`,`label`])]),_:1})],2),(0,d.createVNode)((0,d.unref)(m.YearPickerGrid),{class:(0,d.normalizeClass)((0,d.unref)($w).pickerGrid())},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.YearPickerGridBody),{class:(0,d.normalizeClass)((0,d.unref)($w).pickerGridBody())},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.rows,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.YearPickerGridRow),{key:t,class:(0,d.normalizeClass)((0,d.unref)($w).pickerGridRow())},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.YearPickerCell),{key:e.toString(),class:(0,d.normalizeClass)((0,d.unref)($w).pickerCell()),date:e},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.YearPickerCellTrigger),{year:e,class:(0,d.normalizeClass)((0,d.unref)($w).pickerCellTrigger())},{default:(0,d.withCtx)(({yearValue:e})=>[(0,d.createTextVNode)((0,d.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`]))}}),tT={class:`flex items-center gap-none`},nT=(0,d.defineComponent)({__name:`DatePickerCalendarHeader`,setup(e){let t=(0,h.useI18n)(),{placeholder:n,setPlaceholder:r}=Jw();return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DatePickerHeader),{class:`flex items-center justify-between`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DatePickerPrev),{"as-child":!0},{default:(0,d.withCtx)(({disabled:e})=>[(0,d.createVNode)(Q,{"is-disabled":e,icon:(0,d.unref)(Qt),label:(0,d.unref)(t).t(`component.date_picker.previous_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1}),(0,d.createElementVNode)(`div`,tT,[(0,d.createVNode)(Qw,{placeholder:(0,d.unref)(n),"onUpdate:placeholder":(0,d.unref)(r)},null,8,[`placeholder`,`onUpdate:placeholder`]),(0,d.createVNode)(eT,{placeholder:(0,d.unref)(n),"onUpdate:placeholder":(0,d.unref)(r)},null,8,[`placeholder`,`onUpdate:placeholder`])]),(0,d.createVNode)((0,d.unref)(m.DatePickerNext),{"as-child":!0},{default:(0,d.withCtx)(({disabled:e})=>[(0,d.createVNode)(Q,{"is-disabled":e,icon:(0,d.unref)(nn),label:(0,d.unref)(t).t(`component.date_picker.next_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})]),_:1}))}}),rT=U({slots:{cell:`relative flex-1 p-0 text-center text-xs`,cellTrigger:`
|
|
721
709
|
inline-flex h-9 w-full items-center justify-center rounded-full text-xs
|
|
722
710
|
font-regular text-secondary outline-none
|
|
723
711
|
not-data-disabled:hover:bg-secondary-hover
|
|
@@ -757,7 +745,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
757
745
|
outline-none
|
|
758
746
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
759
747
|
data-placeholder:text-placeholder
|
|
760
|
-
`},variants:{size:{md:{trigger:`gap-sm px-md`},sm:{trigger:`gap-xxs px-sm`}}}}),
|
|
748
|
+
`},variants:{size:{md:{trigger:`gap-sm px-md`},sm:{trigger:`gap-xxs px-sm`}}}}),iT=1;function aT(e){try{if(typeof Intl>`u`||Intl.Locale===void 0)return iT;let t=new Intl.Locale(e);if(typeof t.getWeekInfo!=`function`)return iT;let{firstDay:n}=t.getWeekInfo();return n<1||n>7?iT:n===7?0:n}catch{return iT}}var oT=(0,d.defineComponent)({inheritAttrs:!1,__name:`DateField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({maxDate:{},minDate:{},isPickerHidden:{type:Boolean},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...wv,...Tv,...Ev,maxDate:null,minDate:null,isPickerHidden:!1,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,d.useModel)(e,`modelValue`),r=(0,h.useI18n)(),i=t.id??(0,d.useId)(),a=(0,d.useAttrs)(),{isError:o,ariaDescribedBy:s,ariaInvalid:c}=Sv(i,t),l=(0,d.ref)(!1),{calendarPlaceholder:u,calendarValue:f,locale:p,maxDateValue:g,minDateValue:_,setPlaceholder:v}=Gw({maxDate:(0,d.toRef)(t,`maxDate`),minDate:(0,d.toRef)(t,`minDate`),modelValue:n}),y=(0,d.computed)(()=>Kw({size:t.size}));return qw({datePickerStyle:(0,d.computed)(()=>rT({size:t.size})),placeholder:u,setPlaceholder:v,onClose:()=>{l.value=!1}}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,d.normalizeClass)(t.class),style:(0,d.normalizeStyle)(t.style),for:(0,d.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-label-hidden":t.isLabelHidden},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DatePickerRoot),{id:(0,d.unref)(i),modelValue:(0,d.unref)(f),"onUpdate:modelValue":n[0]||=e=>(0,d.isRef)(f)?f.value=e:null,open:l.value,"onUpdate:open":n[1]||=e=>l.value=e,placeholder:(0,d.unref)(u),"onUpdate:placeholder":n[2]||=e=>(0,d.isRef)(u)?u.value=e:null,"week-starts-on":(0,d.unref)(aT)((0,d.unref)(p)),disabled:t.isDisabled,"max-value":(0,d.unref)(g),"min-value":(0,d.unref)(_),readonly:t.isReadonly,required:t.isRequired,locale:(0,d.unref)(p)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Hv,{"is-disabled":t.isDisabled,"is-error":(0,d.unref)(o),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},(0,d.createSlots)({default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DatePickerField),(0,d.mergeProps)({id:(0,d.unref)(i)},(0,d.unref)(a),{"aria-describedby":(0,d.unref)(s),"aria-invalid":(0,d.unref)(c),"aria-required":t.isRequired||void 0,class:y.value.field()}),{default:(0,d.withCtx)(({segments:e})=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e,({part:e,value:t})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:e},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DatePickerInput),{key:1,part:e,class:(0,d.normalizeClass)(y.value.literal())},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DatePickerInput),{key:0,part:e,class:(0,d.normalizeClass)(y.value.segment()),"data-field-wrapper":``},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DatePickerTrigger),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{"is-disabled":t.isDisabled||t.isReadonly,"is-tooltip-disabled":!0,icon:(0,d.unref)(Bt),label:(0,d.unref)(r).t(`component.date_picker.open`),class:(0,d.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,d.createVNode)(Sr,{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(({weekDays:e,grid:t})=>[(0,d.createVNode)(nT),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t,t=>((0,d.openBlock)(),(0,d.createBlock)(Xw,{key:t.value.toString(),month:t,"week-days":e},null,8,[`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-label-hidden`]))}}),sT=(0,d.defineComponent)({inheritAttrs:!1,__name:`DatePicker`,props:(0,d.mergeModels)({maxDate:{default:null},minDate:{default:null},fixedWeeks:{type:Boolean,default:!1},size:{default:`md`}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,d.useAttrs)(),r=(0,d.useModel)(e,`modelValue`),{calendarPlaceholder:i,calendarValue:a,locale:o,maxDateValue:s,minDateValue:c,setPlaceholder:l}=Gw({maxDate:(0,d.toRef)(t,`maxDate`),minDate:(0,d.toRef)(t,`minDate`),modelValue:r});return qw({datePickerStyle:(0,d.computed)(()=>rT({size:t.size})),placeholder:i,setPlaceholder:l}),(e,r)=>((0,d.openBlock)(),(0,d.createBlock)(Sr,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DatePickerRoot),(0,d.mergeProps)((0,d.unref)(n),{modelValue:(0,d.unref)(a),"onUpdate:modelValue":r[0]||=e=>(0,d.isRef)(a)?a.value=e:null,placeholder:(0,d.unref)(i),"onUpdate:placeholder":r[1]||=e=>(0,d.isRef)(i)?i.value=e:null,"week-starts-on":(0,d.unref)(aT)((0,d.unref)(o)),"max-value":(0,d.unref)(s),"min-value":(0,d.unref)(c),locale:(0,d.unref)(o),"fixed-weeks":t.fixedWeeks}),{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DatePickerCalendar),{"fixed-weeks":!1,class:`flex flex-col gap-lg overflow-hidden bg-primary p-2xl px-3xl`,"weekday-format":`short`},{default:(0,d.withCtx)(({weekDays:e,grid:t})=>[(0,d.createVNode)(nT),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t,t=>((0,d.openBlock)(),(0,d.createBlock)(Xw,{key:t.value.toString(),month:t,"week-days":e},null,8,[`month`,`week-days`]))),128))]),_:1})]),_:1},16,[`modelValue`,`placeholder`,`week-starts-on`,`max-value`,`min-value`,`locale`,`fixed-weeks`])]),_:1}))}});function cT({maxDate:e,minDate:t,modelValue:n}){let r=Z(),i=(0,d.computed)(()=>r.dateLocale.value??navigator.language),a=(0,d.ref)(!1),o=(0,p.useBreakpoints)({md:768}).smaller(`md`),s=S.Temporal.Now.plainDateISO(),c=n.value.from??s,l=(0,d.shallowRef)(new x.CalendarDate(c.year,c.month,1)),u=(0,d.shallowRef)({end:n.value?.until==null?void 0:h(n.value.until),start:n.value?.from==null?void 0:h(n.value.from)});function f(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 m(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,d.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,d.watch)(n,v);let y=(0,d.computed)(()=>{if(t.value!=null)return h(t.value)});return{isInvalidRange:a,isSingleMonth:o,calendarPlaceholder:l,draftValue:u,locale:i,maxDateValue:(0,d.computed)(()=>{if(e.value!=null)return h(e.value)}),minDateValue:y,setPlaceholder:m,setPreset:_,syncDraftFromModel:v,onDraftValueUpdate:f}}var[lT,uT]=L(`dateRangeFieldContext`),dT=U({slots:{field:`ml-sm flex h-full min-w-0 flex-1 items-center`,literal:`text-placeholder select-none`,segment:`
|
|
761
749
|
rounded-sm text-primary tabular-nums caret-transparent outline-none
|
|
762
750
|
group-data-disabled/field-wrapper:pointer-events-none
|
|
763
751
|
hover:bg-secondary-hover hover:text-primary
|
|
@@ -772,11 +760,11 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
772
760
|
bg-transparent p-sm
|
|
773
761
|
focus-visible:outline-fg-brand-primary
|
|
774
762
|
disabled:cursor-not-allowed
|
|
775
|
-
`},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`}}}}),dT={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-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`},fT={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`},pT=(0,d.defineComponent)({__name:`DateRangeFieldCalendarGrid`,props:{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}return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerGrid),{class:`w-full border-collapse select-none`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerGridHead),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerGridRow),{class:`flex py-xxs`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t.weekDays,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerHeadCell),{key:e,class:`flex-1 py-xs text-center text-xs font-medium text-tertiary`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(e),1)]),_:2},1024))),128))]),_:1})]),_:1}),(0,d.createVNode)((0,d.unref)(m.DateRangePickerGridBody),null,{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t.month.rows,(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerGridRow),{key:i,class:`flex py-xxs`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerCell),{key:e.toString(),date:e,class:`group/cell relative flex-1 p-0 text-center text-xs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerCellTrigger),{class:(0,d.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 [&[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,d.withCtx)(({today:t})=>[(0,d.createElementVNode)(`div`,dT,[(0,d.createTextVNode)((0,d.toDisplayString)(e.day)+` `,1),t?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,fT)):(0,d.createCommentVNode)(``,!0)])]),_:2},1032,[`class`,`day`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1024))),128))]),_:1})]),_:1}))}}),mT={class:`flex items-center p-xl pb-0`},hT={key:1,class:`size-9 shrink-0`},gT={class:`flex flex-1 items-center justify-center gap-xs`},_T={key:3,class:`size-9 shrink-0`},vT=(0,d.defineComponent)({__name:`DateRangeFieldCalendarHeader`,props:{showNext:{type:Boolean},side:{}},setup(e){let t=e,n=(0,h.useI18n)(),{placeholder:r,setPlaceholder:i}=lT(),a=(0,d.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,d.openBlock)(),(0,d.createElementBlock)(`div`,mT,[t.side===`left`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerPrev),{key:0,"as-child":!0},{default:(0,d.withCtx)(({disabled:e})=>[(0,d.createVNode)(Q,{"is-disabled":e,icon:(0,d.unref)(Qt),label:(0,d.unref)(n).t(`component.date_range_picker.previous_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,hT)),(0,d.createElementVNode)(`div`,gT,[(0,d.createVNode)(Zw,{placeholder:a.value,"onUpdate:placeholder":o},null,8,[`placeholder`]),(0,d.createVNode)($w,{placeholder:a.value,"onUpdate:placeholder":o},null,8,[`placeholder`])]),t.side===`right`||t.showNext?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerNext),{key:2,"as-child":!0},{default:(0,d.withCtx)(({disabled:e})=>[(0,d.createVNode)(Q,{"is-disabled":e,icon:(0,d.unref)(nn),label:(0,d.unref)(n).t(`component.date_range_picker.next_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,_T))]))}}),yT={class:`flex items-center`},bT=(0,d.defineComponent)({__name:`DateRangeFieldInvalidIndicator`,props:{isVisible:{type:Boolean}},setup(e){let t=e,n=(0,h.useI18n)();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[t.isVisible?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.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,d.withCtx)(()=>[(0,d.createVNode)(K,{label:(0,d.unref)(n).t(`component.date_range_picker.invalid_range`)},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`span`,yT,[(0,d.createVNode)((0,d.unref)(bt),{class:`size-4 text-error-primary`})])]),_:1},8,[`label`])]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1}))}}),xT={class:`flex flex-col gap-md border-t border-secondary p-xl md:flex-row md:items-center md:justify-between`},ST=(0,d.defineComponent)({__name:`DateRangeFieldInputRow`,setup(e){let t=(0,h.useI18n)(),{isInvalidRange:n,onCancel:r}=lT();return(e,i)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,xT,[(0,d.createVNode)((0,d.unref)(R),{class:`min-w-0 items-center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(({segments:e})=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.start,({part:e,value:t})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:`start-${e}`},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:1,part:e,class:`text-placeholder select-none`,type:`start`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`]))],64))),128))]),_:1}),(0,d.createVNode)((0,d.unref)(nn),{class:`size-4 text-placeholder`}),(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(({segments:e})=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.end,({part:e,value:t})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:`end-${e}`},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:1,part:e,class:`text-placeholder select-none`,type:`end`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`]))],64))),128))]),_:1}),(0,d.createVNode)(bT,{"is-visible":(0,d.unref)(n)},null,8,[`is-visible`])]),_:1}),(0,d.createVNode)((0,d.unref)(R),{class:`self-end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g_),{label:(0,d.unref)(t).t(`component.date_range_picker.close`),size:`md`,variant:`secondary`,onClick:(0,d.unref)(r)},null,8,[`label`,`onClick`])]),_:1})]))}}),CT={class:`flex w-32 shrink-0 flex-col gap-xs border-r border-secondary p-lg`},wT=[`data-active`,`onClick`],TT=(0,d.defineComponent)({__name:`DateRangeFieldPresets`,setup(e){let t=(0,h.useI18n)(),{draftValue:n,setPreset:r}=lT(),i=(0,d.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});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:`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,d.openBlock)(),(0,d.createElementBlock)(`div`,CT,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(i.value,e=>((0,d.openBlock)(),(0,d.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,d.unref)(r)(e.range)},(0,d.toDisplayString)(e.label),9,wT))),128))]))}}),ET={class:`flex h-full`},DT={class:`flex min-w-0 flex-1 flex-col`},OT={class:`flex`},kT={class:`flex flex-1 flex-col`},AT={class:`p-xl pt-0`},jT={class:`flex flex-1 flex-col`},MT={class:`p-xl pt-0`},NT=(0,d.defineComponent)({inheritAttrs:!1,__name:`DateRangeField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({maxDate:{},minDate:{},isPickerHidden:{type:Boolean},placeholder:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{}},{...wv,...Tv,...Ev,maxDate:null,minDate:null,isPickerHidden:!1,placeholder:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,d.useModel)(e,`modelValue`),r=(0,h.useI18n)(),i=t.id??(0,d.useId)(),a=(0,d.useAttrs)(),{isError:o,ariaDescribedBy:s,ariaInvalid:c}=Sv(i,t),l=(0,d.ref)(!1),u=(0,d.computed)(()=>uT({isPickerHidden:t.isPickerHidden,size:t.size})),{isInvalidRange:f,isSingleMonth:p,calendarPlaceholder:g,draftValue:_,locale:v,maxDateValue:y,minDateValue:b,setPlaceholder:x,setPreset:S,syncDraftFromModel:C,onDraftValueUpdate:w}=sT({maxDate:(0,d.toRef)(t,`maxDate`),minDate:(0,d.toRef)(t,`minDate`),modelValue:n});(0,d.watch)(l,e=>{e&&C()});function T(){l.value=!1}return cT({isInvalidRange:f,draftValue:_,placeholder:g,setPlaceholder:x,setPreset:S,onCancel:T}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(Yv,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,d.normalizeClass)(t.class),style:(0,d.normalizeStyle)(t.style),for:(0,d.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerRoot),{id:(0,d.unref)(i),open:l.value,"onUpdate:open":n[0]||=e=>l.value=e,placeholder:(0,d.unref)(g),"onUpdate:placeholder":n[1]||=e=>(0,d.isRef)(g)?g.value=e:null,"model-value":(0,d.unref)(_),"week-starts-on":(0,d.unref)(iT)((0,d.unref)(v)),disabled:t.isDisabled,"max-value":(0,d.unref)(y),"min-value":(0,d.unref)(b),readonly:t.isReadonly,required:t.isRequired,locale:(0,d.unref)(v),"number-of-months":(0,d.unref)(p)?1:2,"close-on-select":!1,"onUpdate:modelValue":(0,d.unref)(w)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Vv,{"is-disabled":t.isDisabled,"is-error":(0,d.unref)(o),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},(0,d.createSlots)({default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerField),(0,d.mergeProps)({id:(0,d.unref)(i)},(0,d.unref)(a),{"aria-describedby":(0,d.unref)(s),"aria-invalid":(0,d.unref)(c),"aria-required":t.isRequired||void 0,class:u.value.field()}),{default:(0,d.withCtx)(({segments:e})=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.start,({part:e,value:t})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:`start-${e}`},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:1,part:e,class:(0,d.normalizeClass)(u.value.literal()),type:`start`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:0,part:e,class:(0,d.normalizeClass)(u.value.segment()),type:`start`,"data-field-wrapper":``},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`]))],64))),128)),(0,d.createVNode)((0,d.unref)(Mt),{class:(0,d.normalizeClass)(u.value.separator())},null,8,[`class`]),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.end,({part:e,value:t})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:`end-${e}`},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:1,part:e,class:(0,d.normalizeClass)(u.value.literal()),type:`end`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:0,part:e,class:(0,d.normalizeClass)(u.value.segment()),type:`end`,"data-field-wrapper":``},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerTrigger),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{"is-disabled":t.isDisabled||t.isReadonly,"is-tooltip-disabled":!0,icon:(0,d.unref)(Bt),label:(0,d.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,d.createVNode)(Sr,{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(({weekDays:e,grid:t})=>[(0,d.createElementVNode)(`div`,ET,[(0,d.createVNode)(TT),(0,d.createElementVNode)(`div`,DT,[(0,d.createElementVNode)(`div`,OT,[(0,d.createElementVNode)(`div`,kT,[(0,d.createVNode)(vT,{"show-next":(0,d.unref)(p),side:`left`},null,8,[`show-next`]),(0,d.createElementVNode)(`div`,AT,[(0,d.createVNode)(pT,{month:t[0],"week-days":e},null,8,[`month`,`week-days`])])]),(0,d.unref)(p)?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[n[2]||=(0,d.createElementVNode)(`div`,{class:`border-l border-secondary`},null,-1),(0,d.createElementVNode)(`div`,jT,[(0,d.createVNode)(vT,{side:`right`}),(0,d.createElementVNode)(`div`,MT,[(0,d.createVNode)(pT,{month:t[1],"week-days":e},null,8,[`month`,`week-days`])])])],64))]),(0,d.createVNode)(ST)])])]),_: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`]))}}),PT={class:`flex h-full`},FT={class:`flex min-w-0 flex-1 flex-col`},IT={class:`flex`},LT={class:`flex flex-1 flex-col`},RT={class:`p-xl pt-0`},zT={class:`flex flex-1 flex-col`},BT={class:`p-xl pt-0`},VT=(0,d.defineComponent)({inheritAttrs:!1,__name:`DateRangePicker`,props:(0,d.mergeModels)({maxDate:{default:null},minDate:{default:null},showPresets:{type:Boolean,default:!0}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,d.useModel)(e,`modelValue`),{isInvalidRange:r,isSingleMonth:i,calendarPlaceholder:a,draftValue:o,locale:s,maxDateValue:c,minDateValue:l,setPlaceholder:u,setPreset:f,onDraftValueUpdate:p}=sT({maxDate:(0,d.toRef)(t,`maxDate`),minDate:(0,d.toRef)(t,`minDate`),modelValue:n});return cT({isInvalidRange:r,draftValue:o,placeholder:a,setPlaceholder:u,setPreset:f,onCancel:()=>{}}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(Sr,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerRoot),{modelValue:(0,d.unref)(o),"onUpdate:modelValue":[n[0]||=e=>(0,d.isRef)(o)?o.value=e:null,(0,d.unref)(p)],placeholder:(0,d.unref)(a),"onUpdate:placeholder":n[1]||=e=>(0,d.isRef)(a)?a.value=e:null,"week-starts-on":(0,d.unref)(iT)((0,d.unref)(s)),"max-value":(0,d.unref)(c),"min-value":(0,d.unref)(l),locale:(0,d.unref)(s),"number-of-months":(0,d.unref)(i)?1:2,"close-on-select":!1},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerCalendar),{"fixed-weeks":!0,class:`flex flex-col gap-lg overflow-hidden bg-primary`,"weekday-format":`short`},{default:(0,d.withCtx)(({weekDays:e,grid:r})=>[(0,d.createElementVNode)(`div`,PT,[t.showPresets?((0,d.openBlock)(),(0,d.createBlock)(TT,{key:0})):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,FT,[(0,d.createElementVNode)(`div`,IT,[(0,d.createElementVNode)(`div`,LT,[(0,d.createVNode)(vT,{"show-next":(0,d.unref)(i),side:`left`},null,8,[`show-next`]),(0,d.createElementVNode)(`div`,RT,[(0,d.createVNode)(pT,{month:r[0],"week-days":e},null,8,[`month`,`week-days`])])]),(0,d.unref)(i)?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[n[2]||=(0,d.createElementVNode)(`div`,{class:`border-l border-secondary`},null,-1),(0,d.createElementVNode)(`div`,zT,[(0,d.createVNode)(vT,{side:`right`}),(0,d.createElementVNode)(`div`,BT,[(0,d.createVNode)(pT,{month:r[1],"week-days":e},null,8,[`month`,`week-days`])])])],64))])])])]),_:1})]),_:1},8,[`modelValue`,`placeholder`,`week-starts-on`,`max-value`,`min-value`,`locale`,`number-of-months`,`onUpdate:modelValue`])]),_:1}))}}),HT=[`datetime`],UT=(0,d.defineComponent)({__name:`DateTime`,props:{value:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`time`,{datetime:t.value},[(0,d.renderSlot)(e.$slots,`default`)],8,HT))}}),WT=(0,d.defineComponent)({__name:`DetailList`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{gap:`2xl`,class:`w-full`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),GT={},KT={"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 qT(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,KT,[...t[0]||=[(0,d.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 JT=W(GT,[[`render`,qT]]),YT=(0,d.defineComponent)({__name:`DetailListGroupHeaderCollapseInfo`,props:{isVisible:{type:Boolean},badge:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[t.isVisible&&t.badge!==null?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Iv),(0,d.mergeProps)(t.badge,{size:`sm`}),null,16)]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1}))}}),XT={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`},ZT=(0,d.defineComponent)({__name:`DetailListGroupHeader`,props:{isOpen:{type:Boolean},collapseOptions:{},label:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{justify:`between`,class:`w-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{gap:`none`,class:`w-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:`text-xs font-medium text-primary`},null,8,[`text`]),t.collapseOptions.isCollapsible&&t.collapseOptions.badge!=null?((0,d.openBlock)(),(0,d.createBlock)(YT,{key:0,badge:t.collapseOptions.badge,"is-visible":!t.isOpen},null,8,[`badge`,`is-visible`])):(0,d.createCommentVNode)(``,!0)]),_:1}),t.collapseOptions.isCollapsible?((0,d.openBlock)(),(0,d.createBlock)(JT,{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,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`disabled`])]),_:1}),(0,d.createElementVNode)(`div`,XT,[(0,d.renderSlot)(e.$slots,`actions`)])]),_:3}))}}),QT=(0,d.defineComponent)({__name:`DetailListGroup`,props:(0,d.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,d.useModel)(e,`modelValue`),i=(0,d.computed)(()=>({...n,...t.collapseOptions}));r.value===void 0&&(r.value=i.value.isOpenByDefault);let a=(0,d.computed)({get:()=>i.value.isCollapsible?r.value:!0,set:e=>{i.value.isCollapsible&&(r.value=e)}});return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.CollapsibleRoot),{open:a.value,"onUpdate:open":n[0]||=e=>a.value=e,"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(q),{gap:`none`,class:`group/detail-list-group @container/detail-list w-full`},{default:(0,d.withCtx)(()=>[t.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(ZT,{key:0,label:t.label,"is-open":a.value,"collapse-options":i.value},{actions:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`actions`)]),_:3},8,[`label`,`is-open`,`collapse-options`])),(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(q),{class:(0,d.normalizeClass)({"pt-xl":t.label!==null}),gap:`lg`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])]),_:3})]),_:3})]),_:3},8,[`open`]))}}),$T=(0,d.defineComponent)({__name:`DetailListGroupItem`,props:{orientation:{default:`horizontal`}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)([{"flex-col items-start @[15rem]:flex-row":t.orientation===`horizontal`,"flex-col":t.orientation===`vertical`},`flex gap-xs`])},[(0,d.renderSlot)(e.$slots,`default`)],2))}}),eE={key:0,class:`flex aspect-square h-text-xs items-center`},tE=(0,d.defineComponent)({__name:`DetailListGroupItemLabel`,props:{avatar:{default:null},icon:{default:null},label:{},variant:{default:`default`}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{gap:`xxs`,class:`w-28 shrink-0`},{default:(0,d.withCtx)(()=>[t.icon!==null||t.avatar!==null?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,eE,[t.avatar===null?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:1,class:(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),{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,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:(0,d.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}))}}),nE=(0,d.defineComponent)({__name:`DetailListGroupItemValueBadge`,props:{ariaLabel:{},avatar:{},color:{},dot:{},icon:{},label:{},rounded:{},variant:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Iv),(0,d.mergeProps)(t,{size:`sm`}),null,16))}}),rE={key:0,class:`flex aspect-square h-text-xs items-center`},iE=(0,d.defineComponent)({__name:`DetailListGroupItemValueText`,props:{avatar:{default:null},icon:{default:null},text:{},variant:{default:`default`}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{gap:`xxs`,align:`start`},{default:(0,d.withCtx)(()=>[t.icon!==null||t.avatar!==null?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,rE,[t.avatar===null?t.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:1,class:(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),(0,d.mergeProps)({key:0},t.avatar,{size:`xxs`}),null,16))])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(G),{truncate:!1,text:t.text,class:(0,d.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}))}}),aE=(0,d.defineComponent)({__name:`DetailListGroupSeparator`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So)))}}),oE={key:2},sE=(0,d.defineComponent)({__name:`EmptyStateAction`,props:{action:{},variant:{default:`primary`}},setup(e){let t=e;return(e,n)=>t.action.type===`button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),(0,d.mergeProps)({key:0},t.action,{variant:t.variant,onClick:t.action.onClick}),null,16,[`variant`,`onClick`])):t.action.type===`link`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(x_),(0,d.mergeProps)({key:1},t.action,{variant:t.variant}),null,16,[`variant`])):t.action.type===`Action`?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,oE)):(0,d.createCommentVNode)(``,!0)}}),cE={width:`152`,height:`133`,viewBox:`0 0 152 133`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},lE=[`filter`],uE=[`fill`],dE={x:`48`,y:`68.0915`,width:`56`,height:`56`},fE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationBox`,setup(e){let t=(0,d.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-c`;return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`svg`,cE,[t[8]||=(0,d.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,d.createElementVNode)(`g`,{filter:`url(#${n})`},[t[0]||=(0,d.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,d.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,d.createElementVNode)(`path`,{d:`M76 37.1544V91.3259L34 72.6227V19.4665L76 37.1544Z`,fill:`#E3E8EF`},null,-1),(0,d.createElementVNode)(`path`,{fill:`url(#${r})`,d:`M76.0008 37.1852V91.3259L118 72.6227V19.4665L76.0008 37.1852Z`},null,8,uE),t[3]||=(0,d.createElementVNode)(`path`,{d:`M76 37.1852L118 19.4665L76.3298 1.09149L34 19.4665L76 37.1852Z`,fill:`#F8FAFC`},null,-1),t[4]||=(0,d.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,lE),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,dE,[(0,d.createElementVNode)(`div`,{style:(0,d.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,d.createElementVNode)(`g`,null,[(0,d.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,d.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,d.createElementVNode)(`defs`,null,[(0,d.createElementVNode)(`filter`,{id:n,x:`13`,y:`0`,width:`126`,height:`132.376`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[5]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:i,transform:`translate(-48 -68.0915)`},[...t[6]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:r,x1:`97`,y1:`19.4665`,x2:`128.011`,y2:`74.0281`,gradientUnits:`userSpaceOnUse`},[...t[7]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#E3E8EF`},null,-1)]])])]))}}),pE={width:`154`,height:`121`,viewBox:`0 0 154 121`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},mE=[`filter`],hE=[`fill`],gE=[`fill`],_E=[`fill`],vE={x:`49`,y:`58`,width:`56`,height:`56`},yE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationCloudSearch`,setup(e){let t=(0,d.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-p1`,a=`${t}-p2`,o=`${t}-c`;return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`svg`,pE,[t[7]||=(0,d.createElementVNode)(`circle`,{cx:`77`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,d.createElementVNode)(`g`,{filter:`url(#${n})`},[t[0]||=(0,d.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,d.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,d.createElementVNode)(`ellipse`,{fill:`url(#${r})`,cx:`46.6`,cy:`54.4`,rx:`25.6`,ry:`25.6`},null,8,hE),(0,d.createElementVNode)(`circle`,{fill:`url(#${i})`,cx:`78.6`,cy:`48`,r:`32`},null,8,gE),(0,d.createElementVNode)(`ellipse`,{fill:`url(#${a})`,cx:`110.6`,cy:`57.6`,rx:`22.4`,ry:`22.4`},null,8,_E)],8,mE),t[8]||=(0,d.createElementVNode)(`circle`,{cx:`22`,cy:`19`,r:`5`,fill:`#EEF2F6`},null,-1),t[9]||=(0,d.createElementVNode)(`circle`,{cx:`19`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[10]||=(0,d.createElementVNode)(`circle`,{cx:`146`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[11]||=(0,d.createElementVNode)(`circle`,{cx:`135`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,vE,[(0,d.createElementVNode)(`div`,{style:(0,d.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,d.createElementVNode)(`g`,null,[(0,d.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,d.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,d.createElementVNode)(`defs`,null,[(0,d.createElementVNode)(`filter`,{id:n,x:`0`,y:`15`,width:`154`,height:`106`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[2]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:o,transform:`translate(-49 -58)`},[...t[3]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:r,x1:`26.9429`,y1:`37.4857`,x2:`72.2`,y2:`79.9999`,gradientUnits:`userSpaceOnUse`},[...t[4]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:i,x1:`54.0286`,y1:`26.8571`,x2:`110.6`,y2:`80`,gradientUnits:`userSpaceOnUse`},[...t[5]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:a,x1:`93.4`,y1:`42.8`,x2:`133`,y2:`80`,gradientUnits:`userSpaceOnUse`},[...t[6]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]])])]))}}),bE={width:`156`,height:`125`,viewBox:`0 0 156 125`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},xE=[`filter`],SE=[`fill`],CE={x:`50.5`,y:`62`,width:`56`,height:`56`},wE=[`clip-path`],TE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationCreditCard`,setup(e){let t=(0,d.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-c`,a=`${t}-c1`;return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`svg`,bE,[t[7]||=(0,d.createElementVNode)(`circle`,{cx:`78.5`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,d.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,d.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,SE),t[0]||=(0,d.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,xE),t[8]||=(0,d.createElementVNode)(`circle`,{cx:`23.5`,cy:`5`,r:`5`,fill:`#EEF2F6`},null,-1),t[9]||=(0,d.createElementVNode)(`circle`,{cx:`20.5`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[10]||=(0,d.createElementVNode)(`circle`,{cx:`147.5`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[11]||=(0,d.createElementVNode)(`circle`,{cx:`136.5`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,CE,[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${i});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),(0,d.createElementVNode)(`g`,null,[t[2]||=(0,d.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,d.createElementVNode)(`g`,{"clip-path":`url(#${a})`},[...t[1]||=[(0,d.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,wE)]),(0,d.createElementVNode)(`defs`,null,[(0,d.createElementVNode)(`filter`,{id:n,x:`0`,y:`11.5`,width:`156`,height:`113`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[3]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:i,transform:`translate(-50.5 -62)`},[...t[4]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:r,x1:`24.5049`,y1:`83.1477`,x2:`22.4135`,y2:`17.2505`,gradientUnits:`userSpaceOnUse`},[...t[5]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`clipPath`,{id:a},[...t[6]||=[(0,d.createElementVNode)(`rect`,{width:`20`,height:`20`,fill:`white`,transform:`translate(68.5 80)`},null,-1)]])])]))}}),EE={width:`161`,height:`120`,viewBox:`0 0 161 120`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},DE=[`filter`],OE=[`fill`],kE=[`filter`],AE=[`fill`],jE=[`filter`],ME=[`fill`],NE={x:`53.9647`,y:`62`,width:`56`,height:`56`},PE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationDocuments`,setup(e){let t=(0,d.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,d.openBlock)(),(0,d.createElementBlock)(`svg`,EE,[t[13]||=(0,d.createElementVNode)(`circle`,{cx:`81.9647`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,d.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,d.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,OE),t[0]||=(0,d.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,d.createElementVNode)(`path`,{d:`M49.6216 12.2471L62.9137 17.085L53.8487 21.3121L49.6216 12.2471Z`,fill:`#E3E8EF`},null,-1)],8,DE),(0,d.createElementVNode)(`g`,{filter:`url(#${r})`},[(0,d.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,AE),t[2]||=(0,d.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,d.createElementVNode)(`path`,{d:`M93.5873 8L103.589 18.0022H93.5873V8Z`,fill:`#E3E8EF`},null,-1)],8,kE),(0,d.createElementVNode)(`g`,{filter:`url(#${i})`},[(0,d.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,ME),t[4]||=(0,d.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,d.createElementVNode)(`path`,{d:`M134.9 22.0903L139.738 35.3825L130.673 31.1554L134.9 22.0903Z`,fill:`#E3E8EF`},null,-1)],8,jE),t[14]||=(0,d.createElementVNode)(`circle`,{cx:`26.9647`,cy:`11`,r:`5`,fill:`#EEF2F6`},null,-1),t[15]||=(0,d.createElementVNode)(`circle`,{cx:`23.9647`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[16]||=(0,d.createElementVNode)(`circle`,{cx:`150.965`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[17]||=(0,d.createElementVNode)(`circle`,{cx:`139.965`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,NE,[(0,d.createElementVNode)(`div`,{style:(0,d.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,d.createElementVNode)(`g`,null,[(0,d.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,d.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,d.createElementVNode)(`defs`,null,[(0,d.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,d.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,d.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,d.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,d.createElementVNode)(`filter`,{id:i,x:`59.4176`,y:`8`,width:`104.547`,height:`112.499`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[8]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:c,transform:`translate(-53.9647 -62)`},[...t[9]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:a,x1:`45.7386`,y1:`79.2399`,x2:`19.2501`,y2:`31.4527`,gradientUnits:`userSpaceOnUse`},[...t[10]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:o,x1:`61.7562`,y1:`67.0755`,x2:`57.9453`,y2:`12.571`,gradientUnits:`userSpaceOnUse`},[...t[11]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:s,x1:`81.0846`,y1:`62.1785`,x2:`100.665`,y2:`11.17`,gradientUnits:`userSpaceOnUse`},[...t[12]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]])])]))}}),FE={width:`156`,height:`125`,viewBox:`0 0 156 125`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},IE=[`filter`],LE=[`fill`],RE=[`fill`],zE={x:`50.3462`,y:`62`,width:`56`,height:`56`},BE=[`clip-path`],VE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationRouteCard`,setup(e){let t=(0,d.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-p1`,a=`${t}-c`,o=`${t}-c1`;return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`svg`,FE,[t[9]||=(0,d.createElementVNode)(`circle`,{cx:`78.3462`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,d.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,d.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,LE),t[0]||=(0,d.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,d.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,RE),t[1]||=(0,d.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,IE),t[10]||=(0,d.createElementVNode)(`circle`,{cx:`23.3462`,cy:`5`,r:`5`,fill:`#EEF2F6`},null,-1),t[11]||=(0,d.createElementVNode)(`circle`,{cx:`20.3462`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[12]||=(0,d.createElementVNode)(`circle`,{cx:`147.346`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[13]||=(0,d.createElementVNode)(`circle`,{cx:`136.346`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,zE,[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${a});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),(0,d.createElementVNode)(`g`,null,[t[3]||=(0,d.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,d.createElementVNode)(`g`,{"clip-path":`url(#${o})`},[...t[2]||=[(0,d.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,BE)]),(0,d.createElementVNode)(`defs`,null,[(0,d.createElementVNode)(`filter`,{id:n,x:`0`,y:`11.6538`,width:`155.615`,height:`112.692`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[4]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:a,transform:`translate(-50.3462 -62)`},[...t[5]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:r,x1:`24.3483`,y1:`83.1477`,x2:`22.2555`,y2:`17.2506`,gradientUnits:`userSpaceOnUse`},[...t[6]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:i,x1:`24.3483`,y1:`28.4187`,x2:`24.2368`,y2:`13.1972`,gradientUnits:`userSpaceOnUse`},[...t[7]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`clipPath`,{id:o},[...t[8]||=[(0,d.createElementVNode)(`rect`,{width:`20`,height:`20`,fill:`white`,transform:`translate(68.3462 80)`},null,-1)]])])]))}}),HE={key:1,class:`flex size-10 shrink-0 items-center justify-center rounded-lg border border-secondary`},UE=(0,d.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:fE,"cloud-search":yE,"credit-card":TE,documents:PE,"route-card":VE};return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{align:`center`,justify:`center`,gap:`2xl`},{default:(0,d.withCtx)(()=>[t.illustration===null?t.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,HE,[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{class:`size-5 text-primary`}))])):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(n[t.illustration]),{key:0})),(0,d.createVNode)((0,d.unref)(q),{gap:`xs`,align:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(G),{text:t.title,class:`text-sm font-semibold text-secondary`},null,8,[`text`]),t.description===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:0,truncate:!1,text:t.description,class:`text-center text-xs text-tertiary`},null,8,[`text`]))]),_:1}),(0,d.createVNode)((0,d.unref)(R),null,{default:(0,d.withCtx)(()=>[t.secondaryAction===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(sE,{key:0,action:t.secondaryAction,variant:`secondary`},null,8,[`action`])),t.primaryAction===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(sE,{key:1,action:t.primaryAction},null,8,[`action`]))]),_:1})]),_:1}))}}),WE=(0,d.defineComponent)({__name:`Interactable`,props:{class:{default:null}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),{"as-child":!0,class:(0,d.normalizeClass)((0,d.unref)(Gv)(`
|
|
763
|
+
`},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`}}}}),fT={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-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`},pT={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`},mT=(0,d.defineComponent)({__name:`DateRangeFieldCalendarGrid`,props:{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}return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerGrid),{class:`w-full border-collapse select-none`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerGridHead),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerGridRow),{class:`flex py-xxs`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t.weekDays,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerHeadCell),{key:e,class:`flex-1 py-xs text-center text-xs font-medium text-tertiary`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(e),1)]),_:2},1024))),128))]),_:1})]),_:1}),(0,d.createVNode)((0,d.unref)(m.DateRangePickerGridBody),null,{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t.month.rows,(e,i)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerGridRow),{key:i,class:`flex py-xxs`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerCell),{key:e.toString(),date:e,class:`group/cell relative flex-1 p-0 text-center text-xs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerCellTrigger),{class:(0,d.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,d.withCtx)(({today:t})=>[(0,d.createElementVNode)(`div`,fT,[(0,d.createTextVNode)((0,d.toDisplayString)(e.day)+` `,1),t?((0,d.openBlock)(),(0,d.createElementBlock)(`span`,pT)):(0,d.createCommentVNode)(``,!0)])]),_:2},1032,[`class`,`day`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1024))),128))]),_:1})]),_:1}))}}),hT={class:`flex items-center p-xl pb-0`},gT={key:1,class:`size-9 shrink-0`},_T={class:`flex flex-1 items-center justify-center gap-xs`},vT={key:3,class:`size-9 shrink-0`},yT=(0,d.defineComponent)({__name:`DateRangeFieldCalendarHeader`,props:{showNext:{type:Boolean},side:{}},setup(e){let t=e,n=(0,h.useI18n)(),{placeholder:r,setPlaceholder:i}=uT(),a=(0,d.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,d.openBlock)(),(0,d.createElementBlock)(`div`,hT,[t.side===`left`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerPrev),{key:0,"as-child":!0},{default:(0,d.withCtx)(({disabled:e})=>[(0,d.createVNode)(Q,{"is-disabled":e,icon:(0,d.unref)(Qt),label:(0,d.unref)(n).t(`component.date_range_picker.previous_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,gT)),(0,d.createElementVNode)(`div`,_T,[(0,d.createVNode)(Qw,{placeholder:a.value,"onUpdate:placeholder":o},null,8,[`placeholder`]),(0,d.createVNode)(eT,{placeholder:a.value,"onUpdate:placeholder":o},null,8,[`placeholder`])]),t.side===`right`||t.showNext?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerNext),{key:2,"as-child":!0},{default:(0,d.withCtx)(({disabled:e})=>[(0,d.createVNode)(Q,{"is-disabled":e,icon:(0,d.unref)(nn),label:(0,d.unref)(n).t(`component.date_range_picker.next_month`),size:`md`,variant:`tertiary`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,vT))]))}}),bT={class:`flex items-center`},xT=(0,d.defineComponent)({__name:`DateRangeFieldInvalidIndicator`,props:{isVisible:{type:Boolean}},setup(e){let t=e,n=(0,h.useI18n)();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[t.isVisible?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.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,d.withCtx)(()=>[(0,d.createVNode)(K,{label:(0,d.unref)(n).t(`component.date_range_picker.invalid_range`)},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`span`,bT,[(0,d.createVNode)((0,d.unref)(bt),{class:`size-4 text-error-primary`})])]),_:1},8,[`label`])]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1}))}}),ST={class:`flex flex-col gap-md border-t border-secondary p-xl md:flex-row md:items-center md:justify-between`},CT=(0,d.defineComponent)({__name:`DateRangeFieldInputRow`,setup(e){let t=(0,h.useI18n)(),{isInvalidRange:n,onCancel:r}=uT();return(e,i)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,ST,[(0,d.createVNode)((0,d.unref)(R),{class:`min-w-0 items-center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(({segments:e})=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.start,({part:e,value:t})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:`start-${e}`},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:1,part:e,class:`text-placeholder select-none`,type:`start`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`]))],64))),128))]),_:1}),(0,d.createVNode)((0,d.unref)(nn),{class:`size-4 text-placeholder`}),(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(({segments:e})=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.end,({part:e,value:t})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:`end-${e}`},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:1,part:e,class:`text-placeholder select-none`,type:`end`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`]))],64))),128))]),_:1}),(0,d.createVNode)(xT,{"is-visible":(0,d.unref)(n)},null,8,[`is-visible`])]),_:1}),(0,d.createVNode)((0,d.unref)(R),{class:`self-end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g_),{label:(0,d.unref)(t).t(`component.date_range_picker.close`),size:`md`,variant:`secondary`,onClick:(0,d.unref)(r)},null,8,[`label`,`onClick`])]),_:1})]))}}),wT={class:`flex w-32 shrink-0 flex-col gap-xs border-r border-secondary p-lg`},TT=[`data-active`,`onClick`],ET=(0,d.defineComponent)({__name:`DateRangeFieldPresets`,setup(e){let t=(0,h.useI18n)(),{draftValue:n,setPreset:r}=uT(),i=(0,d.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});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:`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,d.openBlock)(),(0,d.createElementBlock)(`div`,wT,[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(i.value,e=>((0,d.openBlock)(),(0,d.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,d.unref)(r)(e.range)},(0,d.toDisplayString)(e.label),9,TT))),128))]))}}),DT={class:`flex h-full`},OT={class:`flex min-w-0 flex-1 flex-col`},kT={class:`flex`},AT={class:`flex flex-1 flex-col`},jT={class:`p-xl pt-0`},MT={class:`flex flex-1 flex-col`},NT={class:`p-xl pt-0`},PT=(0,d.defineComponent)({inheritAttrs:!1,__name:`DateRangeField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({maxDate:{},minDate:{},isPickerHidden:{type:Boolean},placeholder:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{}},{...wv,...Tv,...Ev,maxDate:null,minDate:null,isPickerHidden:!1,placeholder:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,d.useModel)(e,`modelValue`),r=(0,h.useI18n)(),i=t.id??(0,d.useId)(),a=(0,d.useAttrs)(),{isError:o,ariaDescribedBy:s,ariaInvalid:c}=Sv(i,t),l=(0,d.ref)(!1),u=(0,d.computed)(()=>dT({isPickerHidden:t.isPickerHidden,size:t.size})),{isInvalidRange:f,isSingleMonth:p,calendarPlaceholder:g,draftValue:_,locale:v,maxDateValue:y,minDateValue:b,setPlaceholder:x,setPreset:S,syncDraftFromModel:C,onDraftValueUpdate:w}=cT({maxDate:(0,d.toRef)(t,`maxDate`),minDate:(0,d.toRef)(t,`minDate`),modelValue:n});(0,d.watch)(l,e=>{e&&C()});function T(){l.value=!1}return lT({isInvalidRange:f,draftValue:_,placeholder:g,setPlaceholder:x,setPreset:S,onCancel:T}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,d.normalizeClass)(t.class),style:(0,d.normalizeStyle)(t.style),for:(0,d.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerRoot),{id:(0,d.unref)(i),open:l.value,"onUpdate:open":n[0]||=e=>l.value=e,placeholder:(0,d.unref)(g),"onUpdate:placeholder":n[1]||=e=>(0,d.isRef)(g)?g.value=e:null,"model-value":(0,d.unref)(_),"week-starts-on":(0,d.unref)(aT)((0,d.unref)(v)),disabled:t.isDisabled,"max-value":(0,d.unref)(y),"min-value":(0,d.unref)(b),readonly:t.isReadonly,required:t.isRequired,locale:(0,d.unref)(v),"number-of-months":(0,d.unref)(p)?1:2,"close-on-select":!1,"onUpdate:modelValue":(0,d.unref)(w)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Hv,{"is-disabled":t.isDisabled,"is-error":(0,d.unref)(o),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},(0,d.createSlots)({default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerField),(0,d.mergeProps)({id:(0,d.unref)(i)},(0,d.unref)(a),{"aria-describedby":(0,d.unref)(s),"aria-invalid":(0,d.unref)(c),"aria-required":t.isRequired||void 0,class:u.value.field()}),{default:(0,d.withCtx)(({segments:e})=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.start,({part:e,value:t})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:`start-${e}`},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:1,part:e,class:(0,d.normalizeClass)(u.value.literal()),type:`start`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:0,part:e,class:(0,d.normalizeClass)(u.value.segment()),type:`start`,"data-field-wrapper":``},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`]))],64))),128)),(0,d.createVNode)((0,d.unref)(Mt),{class:(0,d.normalizeClass)(u.value.separator())},null,8,[`class`]),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.end,({part:e,value:t})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:`end-${e}`},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:1,part:e,class:(0,d.normalizeClass)(u.value.literal()),type:`end`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(t),1)]),_:2},1032,[`part`,`class`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DateRangePickerInput),{key:0,part:e,class:(0,d.normalizeClass)(u.value.segment()),type:`end`,"data-field-wrapper":``},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerTrigger),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{"is-disabled":t.isDisabled||t.isReadonly,"is-tooltip-disabled":!0,icon:(0,d.unref)(Bt),label:(0,d.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,d.createVNode)(Sr,{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(({weekDays:e,grid:t})=>[(0,d.createElementVNode)(`div`,DT,[(0,d.createVNode)(ET),(0,d.createElementVNode)(`div`,OT,[(0,d.createElementVNode)(`div`,kT,[(0,d.createElementVNode)(`div`,AT,[(0,d.createVNode)(yT,{"show-next":(0,d.unref)(p),side:`left`},null,8,[`show-next`]),(0,d.createElementVNode)(`div`,jT,[(0,d.createVNode)(mT,{month:t[0],"week-days":e},null,8,[`month`,`week-days`])])]),(0,d.unref)(p)?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[n[2]||=(0,d.createElementVNode)(`div`,{class:`border-l border-secondary`},null,-1),(0,d.createElementVNode)(`div`,MT,[(0,d.createVNode)(yT,{side:`right`}),(0,d.createElementVNode)(`div`,NT,[(0,d.createVNode)(mT,{month:t[1],"week-days":e},null,8,[`month`,`week-days`])])])],64))]),(0,d.createVNode)(CT)])])]),_: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`]))}}),FT={class:`flex h-full`},IT={class:`flex min-w-0 flex-1 flex-col`},LT={class:`flex`},RT={class:`flex flex-1 flex-col`},zT={class:`p-xl pt-0`},BT={class:`flex flex-1 flex-col`},VT={class:`p-xl pt-0`},HT=(0,d.defineComponent)({inheritAttrs:!1,__name:`DateRangePicker`,props:(0,d.mergeModels)({maxDate:{default:null},minDate:{default:null},showPresets:{type:Boolean,default:!0}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,d.useModel)(e,`modelValue`),{isInvalidRange:r,isSingleMonth:i,calendarPlaceholder:a,draftValue:o,locale:s,maxDateValue:c,minDateValue:l,setPlaceholder:u,setPreset:f,onDraftValueUpdate:p}=cT({maxDate:(0,d.toRef)(t,`maxDate`),minDate:(0,d.toRef)(t,`minDate`),modelValue:n});return lT({isInvalidRange:r,draftValue:o,placeholder:a,setPlaceholder:u,setPreset:f,onCancel:()=>{}}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(Sr,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerRoot),{modelValue:(0,d.unref)(o),"onUpdate:modelValue":[n[0]||=e=>(0,d.isRef)(o)?o.value=e:null,(0,d.unref)(p)],placeholder:(0,d.unref)(a),"onUpdate:placeholder":n[1]||=e=>(0,d.isRef)(a)?a.value=e:null,"week-starts-on":(0,d.unref)(aT)((0,d.unref)(s)),"max-value":(0,d.unref)(c),"min-value":(0,d.unref)(l),locale:(0,d.unref)(s),"number-of-months":(0,d.unref)(i)?1:2,"close-on-select":!1},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.DateRangePickerCalendar),{"fixed-weeks":!0,class:`flex flex-col gap-lg overflow-hidden bg-primary`,"weekday-format":`short`},{default:(0,d.withCtx)(({weekDays:e,grid:r})=>[(0,d.createElementVNode)(`div`,FT,[t.showPresets?((0,d.openBlock)(),(0,d.createBlock)(ET,{key:0})):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,IT,[(0,d.createElementVNode)(`div`,LT,[(0,d.createElementVNode)(`div`,RT,[(0,d.createVNode)(yT,{"show-next":(0,d.unref)(i),side:`left`},null,8,[`show-next`]),(0,d.createElementVNode)(`div`,zT,[(0,d.createVNode)(mT,{month:r[0],"week-days":e},null,8,[`month`,`week-days`])])]),(0,d.unref)(i)?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[n[2]||=(0,d.createElementVNode)(`div`,{class:`border-l border-secondary`},null,-1),(0,d.createElementVNode)(`div`,BT,[(0,d.createVNode)(yT,{side:`right`}),(0,d.createElementVNode)(`div`,VT,[(0,d.createVNode)(mT,{month:r[1],"week-days":e},null,8,[`month`,`week-days`])])])],64))])])])]),_:1})]),_:1},8,[`modelValue`,`placeholder`,`week-starts-on`,`max-value`,`min-value`,`locale`,`number-of-months`,`onUpdate:modelValue`])]),_:1}))}}),UT=[`datetime`],WT=(0,d.defineComponent)({__name:`DateTime`,props:{value:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`time`,{datetime:t.value},[(0,d.renderSlot)(e.$slots,`default`)],8,UT))}}),GT=(0,d.defineComponent)({__name:`DetailList`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{gap:`2xl`,class:`w-full`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),KT={},qT={"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 JT(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,qT,[...t[0]||=[(0,d.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 YT=W(KT,[[`render`,JT]]),XT=(0,d.defineComponent)({__name:`DetailListGroupHeaderCollapseInfo`,props:{isVisible:{type:Boolean},badge:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[t.isVisible&&t.badge!==null?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Lv),(0,d.mergeProps)(t.badge,{size:`sm`}),null,16)]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1}))}}),ZT={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`},QT=(0,d.defineComponent)({__name:`DetailListGroupHeader`,props:{isOpen:{type:Boolean},collapseOptions:{},label:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{justify:`between`,class:`w-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{gap:`xs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(R),{gap:`none`,class:`w-full`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:`text-xs font-medium text-primary`},null,8,[`text`]),t.collapseOptions.isCollapsible&&t.collapseOptions.badge!=null?((0,d.openBlock)(),(0,d.createBlock)(XT,{key:0,badge:t.collapseOptions.badge,"is-visible":!t.isOpen},null,8,[`badge`,`is-visible`])):(0,d.createCommentVNode)(``,!0)]),_:1}),t.collapseOptions.isCollapsible?((0,d.openBlock)(),(0,d.createBlock)(YT,{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,d.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`disabled`])]),_:1}),(0,d.createElementVNode)(`div`,ZT,[(0,d.renderSlot)(e.$slots,`actions`)])]),_:3}))}}),$T=(0,d.defineComponent)({__name:`DetailListGroup`,props:(0,d.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,d.useModel)(e,`modelValue`),i=(0,d.computed)(()=>({...n,...t.collapseOptions}));r.value===void 0&&(r.value=i.value.isOpenByDefault);let a=(0,d.computed)({get:()=>i.value.isCollapsible?r.value:!0,set:e=>{i.value.isCollapsible&&(r.value=e)}});return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.CollapsibleRoot),{open:a.value,"onUpdate:open":n[0]||=e=>a.value=e,"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(q),{gap:`none`,class:`group/detail-list-group @container/detail-list w-full`},{default:(0,d.withCtx)(()=>[t.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(QT,{key:0,label:t.label,"is-open":a.value,"collapse-options":i.value},{actions:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`actions`)]),_:3},8,[`label`,`is-open`,`collapse-options`])),(0,d.createVNode)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(q),{class:(0,d.normalizeClass)({"pt-xl":t.label!==null}),gap:`lg`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])]),_:3})]),_:3})]),_:3},8,[`open`]))}}),eE=(0,d.defineComponent)({__name:`DetailListGroupItem`,props:{orientation:{default:`horizontal`}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)([{"flex-col items-start @[15rem]:flex-row":t.orientation===`horizontal`,"flex-col":t.orientation===`vertical`},`flex gap-xs`])},[(0,d.renderSlot)(e.$slots,`default`)],2))}}),tE={key:0,class:`flex aspect-square h-text-xs items-center`},nE=(0,d.defineComponent)({__name:`DetailListGroupItemLabel`,props:{avatar:{default:null},icon:{default:null},label:{},variant:{default:`default`}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{gap:`xxs`,class:`w-28 shrink-0`},{default:(0,d.withCtx)(()=>[t.icon!==null||t.avatar!==null?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,tE,[t.avatar===null?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:1,class:(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),{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,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:(0,d.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}))}}),rE=(0,d.defineComponent)({__name:`DetailListGroupItemValueBadge`,props:{actions:{},ariaLabel:{},avatar:{},color:{},dot:{},icon:{},label:{},metadata:{},models:{},rounded:{},variant:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Lv),(0,d.mergeProps)(t,{size:`sm`}),null,16))}}),iE={key:0,class:`flex aspect-square h-text-xs items-center`},aE=(0,d.defineComponent)({__name:`DetailListGroupItemValueText`,props:{avatar:{default:null},icon:{default:null},text:{},variant:{default:`default`}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{gap:`xxs`,align:`start`},{default:(0,d.withCtx)(()=>[t.icon!==null||t.avatar!==null?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,iE,[t.avatar===null?t.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:1,class:(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(za),(0,d.mergeProps)({key:0},t.avatar,{size:`xxs`}),null,16))])):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)((0,d.unref)(G),{truncate:!1,text:t.text,class:(0,d.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}))}}),oE=(0,d.defineComponent)({__name:`DetailListGroupSeparator`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(So)))}}),sE={key:2},cE=(0,d.defineComponent)({__name:`EmptyStateAction`,props:{action:{},variant:{default:`primary`}},setup(e){let t=e;return(e,n)=>t.action.type===`button`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g_),(0,d.mergeProps)({key:0},t.action,{variant:t.variant,onClick:t.action.onClick}),null,16,[`variant`,`onClick`])):t.action.type===`link`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(x_),(0,d.mergeProps)({key:1},t.action,{variant:t.variant}),null,16,[`variant`])):t.action.type===`Action`?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,sE)):(0,d.createCommentVNode)(``,!0)}}),lE={width:`152`,height:`133`,viewBox:`0 0 152 133`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},uE=[`filter`],dE=[`fill`],fE={x:`48`,y:`68.0915`,width:`56`,height:`56`},pE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationBox`,setup(e){let t=(0,d.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-c`;return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`svg`,lE,[t[8]||=(0,d.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,d.createElementVNode)(`g`,{filter:`url(#${n})`},[t[0]||=(0,d.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,d.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,d.createElementVNode)(`path`,{d:`M76 37.1544V91.3259L34 72.6227V19.4665L76 37.1544Z`,fill:`#E3E8EF`},null,-1),(0,d.createElementVNode)(`path`,{fill:`url(#${r})`,d:`M76.0008 37.1852V91.3259L118 72.6227V19.4665L76.0008 37.1852Z`},null,8,dE),t[3]||=(0,d.createElementVNode)(`path`,{d:`M76 37.1852L118 19.4665L76.3298 1.09149L34 19.4665L76 37.1852Z`,fill:`#F8FAFC`},null,-1),t[4]||=(0,d.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,uE),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,fE,[(0,d.createElementVNode)(`div`,{style:(0,d.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,d.createElementVNode)(`g`,null,[(0,d.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,d.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,d.createElementVNode)(`defs`,null,[(0,d.createElementVNode)(`filter`,{id:n,x:`13`,y:`0`,width:`126`,height:`132.376`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[5]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:i,transform:`translate(-48 -68.0915)`},[...t[6]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:r,x1:`97`,y1:`19.4665`,x2:`128.011`,y2:`74.0281`,gradientUnits:`userSpaceOnUse`},[...t[7]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#E3E8EF`},null,-1)]])])]))}}),mE={width:`154`,height:`121`,viewBox:`0 0 154 121`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},hE=[`filter`],gE=[`fill`],_E=[`fill`],vE=[`fill`],yE={x:`49`,y:`58`,width:`56`,height:`56`},bE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationCloudSearch`,setup(e){let t=(0,d.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-p1`,a=`${t}-p2`,o=`${t}-c`;return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`svg`,mE,[t[7]||=(0,d.createElementVNode)(`circle`,{cx:`77`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,d.createElementVNode)(`g`,{filter:`url(#${n})`},[t[0]||=(0,d.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,d.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,d.createElementVNode)(`ellipse`,{fill:`url(#${r})`,cx:`46.6`,cy:`54.4`,rx:`25.6`,ry:`25.6`},null,8,gE),(0,d.createElementVNode)(`circle`,{fill:`url(#${i})`,cx:`78.6`,cy:`48`,r:`32`},null,8,_E),(0,d.createElementVNode)(`ellipse`,{fill:`url(#${a})`,cx:`110.6`,cy:`57.6`,rx:`22.4`,ry:`22.4`},null,8,vE)],8,hE),t[8]||=(0,d.createElementVNode)(`circle`,{cx:`22`,cy:`19`,r:`5`,fill:`#EEF2F6`},null,-1),t[9]||=(0,d.createElementVNode)(`circle`,{cx:`19`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[10]||=(0,d.createElementVNode)(`circle`,{cx:`146`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[11]||=(0,d.createElementVNode)(`circle`,{cx:`135`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,yE,[(0,d.createElementVNode)(`div`,{style:(0,d.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,d.createElementVNode)(`g`,null,[(0,d.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,d.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,d.createElementVNode)(`defs`,null,[(0,d.createElementVNode)(`filter`,{id:n,x:`0`,y:`15`,width:`154`,height:`106`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[2]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:o,transform:`translate(-49 -58)`},[...t[3]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:r,x1:`26.9429`,y1:`37.4857`,x2:`72.2`,y2:`79.9999`,gradientUnits:`userSpaceOnUse`},[...t[4]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:i,x1:`54.0286`,y1:`26.8571`,x2:`110.6`,y2:`80`,gradientUnits:`userSpaceOnUse`},[...t[5]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:a,x1:`93.4`,y1:`42.8`,x2:`133`,y2:`80`,gradientUnits:`userSpaceOnUse`},[...t[6]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#E3E8EF`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`0.350715`,"stop-color":`#F8FAFC`},null,-1)]])])]))}}),xE={width:`156`,height:`125`,viewBox:`0 0 156 125`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},SE=[`filter`],CE=[`fill`],wE={x:`50.5`,y:`62`,width:`56`,height:`56`},TE=[`clip-path`],EE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationCreditCard`,setup(e){let t=(0,d.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-c`,a=`${t}-c1`;return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`svg`,xE,[t[7]||=(0,d.createElementVNode)(`circle`,{cx:`78.5`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,d.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,d.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,CE),t[0]||=(0,d.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,SE),t[8]||=(0,d.createElementVNode)(`circle`,{cx:`23.5`,cy:`5`,r:`5`,fill:`#EEF2F6`},null,-1),t[9]||=(0,d.createElementVNode)(`circle`,{cx:`20.5`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[10]||=(0,d.createElementVNode)(`circle`,{cx:`147.5`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[11]||=(0,d.createElementVNode)(`circle`,{cx:`136.5`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,wE,[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${i});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),(0,d.createElementVNode)(`g`,null,[t[2]||=(0,d.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,d.createElementVNode)(`g`,{"clip-path":`url(#${a})`},[...t[1]||=[(0,d.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,TE)]),(0,d.createElementVNode)(`defs`,null,[(0,d.createElementVNode)(`filter`,{id:n,x:`0`,y:`11.5`,width:`156`,height:`113`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[3]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:i,transform:`translate(-50.5 -62)`},[...t[4]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:r,x1:`24.5049`,y1:`83.1477`,x2:`22.4135`,y2:`17.2505`,gradientUnits:`userSpaceOnUse`},[...t[5]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`clipPath`,{id:a},[...t[6]||=[(0,d.createElementVNode)(`rect`,{width:`20`,height:`20`,fill:`white`,transform:`translate(68.5 80)`},null,-1)]])])]))}}),DE={width:`161`,height:`120`,viewBox:`0 0 161 120`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},OE=[`filter`],kE=[`fill`],AE=[`filter`],jE=[`fill`],ME=[`filter`],NE=[`fill`],PE={x:`53.9647`,y:`62`,width:`56`,height:`56`},FE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationDocuments`,setup(e){let t=(0,d.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,d.openBlock)(),(0,d.createElementBlock)(`svg`,DE,[t[13]||=(0,d.createElementVNode)(`circle`,{cx:`81.9647`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,d.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,d.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,kE),t[0]||=(0,d.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,d.createElementVNode)(`path`,{d:`M49.6216 12.2471L62.9137 17.085L53.8487 21.3121L49.6216 12.2471Z`,fill:`#E3E8EF`},null,-1)],8,OE),(0,d.createElementVNode)(`g`,{filter:`url(#${r})`},[(0,d.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,jE),t[2]||=(0,d.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,d.createElementVNode)(`path`,{d:`M93.5873 8L103.589 18.0022H93.5873V8Z`,fill:`#E3E8EF`},null,-1)],8,AE),(0,d.createElementVNode)(`g`,{filter:`url(#${i})`},[(0,d.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,NE),t[4]||=(0,d.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,d.createElementVNode)(`path`,{d:`M134.9 22.0903L139.738 35.3825L130.673 31.1554L134.9 22.0903Z`,fill:`#E3E8EF`},null,-1)],8,ME),t[14]||=(0,d.createElementVNode)(`circle`,{cx:`26.9647`,cy:`11`,r:`5`,fill:`#EEF2F6`},null,-1),t[15]||=(0,d.createElementVNode)(`circle`,{cx:`23.9647`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[16]||=(0,d.createElementVNode)(`circle`,{cx:`150.965`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[17]||=(0,d.createElementVNode)(`circle`,{cx:`139.965`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,PE,[(0,d.createElementVNode)(`div`,{style:(0,d.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,d.createElementVNode)(`g`,null,[(0,d.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,d.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,d.createElementVNode)(`defs`,null,[(0,d.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,d.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,d.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,d.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,d.createElementVNode)(`filter`,{id:i,x:`59.4176`,y:`8`,width:`104.547`,height:`112.499`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[8]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:c,transform:`translate(-53.9647 -62)`},[...t[9]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:a,x1:`45.7386`,y1:`79.2399`,x2:`19.2501`,y2:`31.4527`,gradientUnits:`userSpaceOnUse`},[...t[10]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:o,x1:`61.7562`,y1:`67.0755`,x2:`57.9453`,y2:`12.571`,gradientUnits:`userSpaceOnUse`},[...t[11]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:s,x1:`81.0846`,y1:`62.1785`,x2:`100.665`,y2:`11.17`,gradientUnits:`userSpaceOnUse`},[...t[12]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]])])]))}}),IE={width:`156`,height:`125`,viewBox:`0 0 156 125`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`},LE=[`filter`],RE=[`fill`],zE=[`fill`],BE={x:`50.3462`,y:`62`,width:`56`,height:`56`},VE=[`clip-path`],HE=(0,d.defineComponent)({__name:`UIEmptyStateIllustrationRouteCard`,setup(e){let t=(0,d.useId)(),n=`${t}-f`,r=`${t}-p0`,i=`${t}-p1`,a=`${t}-c`,o=`${t}-c1`;return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`svg`,IE,[t[9]||=(0,d.createElementVNode)(`circle`,{cx:`78.3462`,cy:`52`,r:`52`,fill:`#EEF2F6`},null,-1),(0,d.createElementVNode)(`g`,{filter:`url(#${n})`},[(0,d.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,RE),t[0]||=(0,d.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,d.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,zE),t[1]||=(0,d.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,LE),t[10]||=(0,d.createElementVNode)(`circle`,{cx:`23.3462`,cy:`5`,r:`5`,fill:`#EEF2F6`},null,-1),t[11]||=(0,d.createElementVNode)(`circle`,{cx:`20.3462`,cy:`109`,r:`7`,fill:`#EEF2F6`},null,-1),t[12]||=(0,d.createElementVNode)(`circle`,{cx:`147.346`,cy:`35`,r:`7`,fill:`#EEF2F6`},null,-1),t[13]||=(0,d.createElementVNode)(`circle`,{cx:`136.346`,cy:`8`,r:`4`,fill:`#EEF2F6`},null,-1),((0,d.openBlock)(),(0,d.createElementBlock)(`foreignObject`,BE,[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)(`backdrop-filter:blur(4px);clip-path:url(#${a});height:100%;width:100%`),xmlns:`http://www.w3.org/1999/xhtml`},null,4)])),(0,d.createElementVNode)(`g`,null,[t[3]||=(0,d.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,d.createElementVNode)(`g`,{"clip-path":`url(#${o})`},[...t[2]||=[(0,d.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,VE)]),(0,d.createElementVNode)(`defs`,null,[(0,d.createElementVNode)(`filter`,{id:n,x:`0`,y:`11.6538`,width:`155.615`,height:`112.692`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},[...t[4]||=[(0,d.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,d.createElementVNode)(`clipPath`,{id:a,transform:`translate(-50.3462 -62)`},[...t[5]||=[(0,d.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,d.createElementVNode)(`linearGradient`,{id:r,x1:`24.3483`,y1:`83.1477`,x2:`22.2555`,y2:`17.2506`,gradientUnits:`userSpaceOnUse`},[...t[6]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`linearGradient`,{id:i,x1:`24.3483`,y1:`28.4187`,x2:`24.2368`,y2:`13.1972`,gradientUnits:`userSpaceOnUse`},[...t[7]||=[(0,d.createElementVNode)(`stop`,{"stop-color":`#EEF2F6`},null,-1),(0,d.createElementVNode)(`stop`,{offset:`1`,"stop-color":`#F8FAFC`},null,-1)]]),(0,d.createElementVNode)(`clipPath`,{id:o},[...t[8]||=[(0,d.createElementVNode)(`rect`,{width:`20`,height:`20`,fill:`white`,transform:`translate(68.3462 80)`},null,-1)]])])]))}}),UE={key:1,class:`flex size-10 shrink-0 items-center justify-center rounded-lg border border-secondary`},WE=(0,d.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:pE,"cloud-search":bE,"credit-card":EE,documents:FE,"route-card":HE};return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(q),{align:`center`,justify:`center`,gap:`2xl`},{default:(0,d.withCtx)(()=>[t.illustration===null?t.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`div`,UE,[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{class:`size-5 text-primary`}))])):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(n[t.illustration]),{key:0})),(0,d.createVNode)((0,d.unref)(q),{gap:`xs`,align:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(G),{text:t.title,class:`text-sm font-semibold text-secondary`},null,8,[`text`]),t.description===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:0,truncate:!1,text:t.description,class:`text-center text-xs text-tertiary`},null,8,[`text`]))]),_:1}),(0,d.createVNode)((0,d.unref)(R),null,{default:(0,d.withCtx)(()=>[t.secondaryAction===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(cE,{key:0,action:t.secondaryAction,variant:`secondary`},null,8,[`action`])),t.primaryAction===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(cE,{key:1,action:t.primaryAction},null,8,[`action`]))]),_:1})]),_:1}))}}),GE=(0,d.defineComponent)({__name:`Interactable`,props:{class:{default:null}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),{"as-child":!0,class:(0,d.normalizeClass)((0,d.unref)(Kv)(`
|
|
776
764
|
rounded-sm outline-fg-brand-primary
|
|
777
765
|
focus-visible:outline-2
|
|
778
766
|
disabled:cursor-not-allowed
|
|
779
|
-
`,t.class))},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}});function
|
|
767
|
+
`,t.class))},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}});function KE(){let e=(0,d.ref)(!1),t=(0,d.shallowRef)(null),n=(0,d.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}Ow({hasDetailPane:e,isOpen:n,isToggleHidden:(0,d.computed)(()=>t.value?.isToggleHidden??!1),registerDetailPane:i,toggle:r,unregisterDetailPane:a})}var qE=(0,d.defineComponent)({__name:`DashboardPageHeaderBreadcrumbs`,props:{breadcrumbs:{}},setup(e){let t=e;return(e,n)=>t.breadcrumbs.length>0?((0,d.openBlock)(),(0,d.createBlock)(PC,{key:0},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t.breadcrumbs,(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:`${e.label}-${n}`},[(0,d.createVNode)(MC,{icon:e.icon,to:e.to,label:e.label},null,8,[`icon`,`to`,`label`]),n<t.breadcrumbs.length-1?((0,d.openBlock)(),(0,d.createBlock)(FC,{key:0})):(0,d.createCommentVNode)(``,!0)],64))),128))]),_:1})):(0,d.createCommentVNode)(``,!0)}}),JE=(0,d.defineComponent)({__name:`DashboardPageHeaderSidebarToggle`,setup(e){let{isSidebarOpen:t}=Sb(),n=(0,h.useI18n)(),r=(0,f.createAction)({id:`toggle-main-sidebar`,name:()=>n.t(`action.global.toggle_main_sidebar.name`),execute:()=>{a()},group:(0,f.useActionGroup)().navigation,icon:()=>t.value?zn:Dn,keyboardShortcut:{key:`B`,mod:!0},keywords:n.t(`action.global.toggle_main_sidebar.keywords`).split(` `)}),i=(0,d.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,d.openBlock)(),(0,d.createBlock)(K,{label:i.value,"keyboard-shortcut":{key:`B`,mod:!0}},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Ko,{action:(0,d.unref)(r),"current-context-only":!1},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)($),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.Toggle),{"model-value":(0,d.unref)(t),"data-state":(0,d.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,d.withCtx)(()=>[...n[0]||=[(0,d.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,d.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`]))}}),YE={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`},XE={class:`flex-1 truncate text-left text-xxs text-placeholder`},ZE=(0,d.defineComponent)({__name:`TopBarCommandMenuSearch`,setup(e){let t=(0,h.useI18n)(),n=Ox();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)(Ko,{action:(0,d.unref)(n),"current-context-only":!0},{default:(0,d.withCtx)(({keyboardShortcut:e})=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,YE,[(0,d.createVNode)((0,d.unref)(tr),{class:`size-3.5 shrink-0 text-quaternary`}),(0,d.createElementVNode)(`span`,XE,(0,d.toDisplayString)((0,d.unref)(t).t(`component.top_bar.search`)),1),e===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Pr,{key:0,"keyboard-shortcut":e,"enable-key-hold-visualization":!0},null,8,[`keyboard-shortcut`]))])]),_:2},1024)]),_:1},8,[`action`]))}});function QE(){let e=(0,y.useRouter)(),t=(0,d.ref)(e.options.history.state),n=(0,d.computed)(()=>t.value.back!==null),r=(0,d.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 $E=(0,d.defineComponent)({__name:`TopBarNavigationArrows`,setup(e){let t=(0,h.useI18n)(),{canGoBack:n,canGoForward:r,goBack:i,goForward:a}=QE();return(e,o)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{gap:`xxs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(Ot),"is-disabled":!(0,d.unref)(n),label:(0,d.unref)(t).t(`component.top_bar.navigation.back`),"keyboard-shortcut":{key:`ArrowLeft`,mod:!0},variant:`tertiary`,size:`sm`,onClick:(0,d.unref)(i)},null,8,[`icon`,`is-disabled`,`label`,`onClick`]),(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(Mt),"is-disabled":!(0,d.unref)(r),label:(0,d.unref)(t).t(`component.top_bar.navigation.forward`),"keyboard-shortcut":{key:`ArrowRight`,mod:!0},variant:`tertiary`,size:`sm`,onClick:(0,d.unref)(a)},null,8,[`icon`,`is-disabled`,`label`,`onClick`])]),_:1}))}}),eD={class:`flex shrink-0 items-center px-xl pb-md`},tD={class:`flex flex-1 items-center`},nD={class:`sr-only`},rD={key:3,class:`ml-lg text-xs text-primary`},iD={class:`flex flex-1 items-center justify-center`},aD={class:`flex h-full flex-1 items-center justify-end`},oD=(0,d.defineComponent)({__name:`TopBar`,setup(e){let{showNavigationArrowsInTopBar:t}=Z(),{title:n,breadcrumbs:r}=Mw(),{hasDetailPane:i,isToggleHidden:a}=kw();return(e,o)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,eD,[(0,d.createElementVNode)(`div`,tD,[(0,d.createVNode)(JE),(0,d.unref)(r).length>0||(0,d.unref)(n)!==null?((0,d.openBlock)(),(0,d.createBlock)(So,{key:0,class:`ml-sm h-4`,orientation:`vertical`})):(0,d.createCommentVNode)(``,!0),(0,d.unref)(t)?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[(0,d.createVNode)($E,{class:`ml-sm`}),(0,d.unref)(r).length>0||(0,d.unref)(n)!==null?((0,d.openBlock)(),(0,d.createBlock)(So,{key:0,class:`ml-sm h-4`,orientation:`vertical`})):(0,d.createCommentVNode)(``,!0)],64)):(0,d.createCommentVNode)(``,!0),(0,d.unref)(r).length>0?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:2},[(0,d.createElementVNode)(`h1`,nD,(0,d.toDisplayString)((0,d.unref)(n)),1),(0,d.createVNode)(qE,{breadcrumbs:(0,d.unref)(r),class:`ml-lg`},null,8,[`breadcrumbs`])],64)):(0,d.unref)(n)===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`h1`,rD,(0,d.toDisplayString)((0,d.unref)(n)),1))]),(0,d.createElementVNode)(`div`,iD,[(0,d.createVNode)(ZE)]),(0,d.createElementVNode)(`div`,aD,[(0,d.renderSlot)(e.$slots,`actions`),(0,d.unref)(i)&&!(0,d.unref)(a)?((0,d.openBlock)(),(0,d.createBlock)(Rw,{key:0})):(0,d.createCommentVNode)(``,!0)])]))}}),sD=(0,d.defineComponent)({__name:`MainContent`,setup(e){let{isFloatingSidebar:t,isSidebarOpen:n,collapsedVariant:r,sidebarWidth:i}=Sb(),a=xf();KE();let o=(0,d.computed)(()=>t.value?`0.5rem`:r.value===`minified`||n.value?i.value:`0.5rem`);return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{initial:{paddingLeft:o.value},animate:{paddingLeft:o.value},transition:{duration:(0,d.unref)(a)?0:.3,type:`spring`,bounce:0},class:`flex size-full flex-col overflow-hidden bg-secondary p-md`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(oD,null,{actions:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`top-bar-actions`)]),_:3}),(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`animate`,`transition`]))}}),cD={},lD={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 uD(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`svg`,lD,[...t[0]||=[(0,d.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 dD=W(cD,[[`render`,uD]]),fD={class:`relative flex h-dvh w-full overflow-hidden`},pD=(0,d.defineComponent)({__name:`MainLayout`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,fD,[(0,d.renderSlot)(e.$slots,`default`),(0,d.createVNode)(dD)]))}}),mD=Ca({compoundVariants:[{class:{base:`
|
|
780
768
|
border-brand-400
|
|
781
769
|
dark:border-brand-600
|
|
782
770
|
`,label:`
|
|
@@ -874,13 +862,13 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
874
862
|
dark:text-warning-200
|
|
875
863
|
`},color:`warning`,variant:`translucent`}],slots:{base:`
|
|
876
864
|
inline-flex min-w-fit items-center justify-center rounded-full border
|
|
877
|
-
`,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:{}}}}),
|
|
865
|
+
`,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:{}}}}),hD=[`aria-label`],gD=(0,d.defineComponent)({__name:`NumberBadge`,props:{ariaLabel:{default:null},color:{default:`gray`},size:{default:`md`},value:{},variant:{default:`translucent`}},setup(e){let t=e,n=(0,d.computed)(()=>mD({color:t.color,size:t.size,variant:t.variant}));return(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`span`,{class:(0,d.normalizeClass)(n.value.base()),"aria-label":t.ariaLabel??void 0,role:`status`},[(0,d.createVNode)((0,d.unref)(G),{text:t.value,class:(0,d.normalizeClass)(n.value.label())},null,8,[`text`,`class`])],10,hD))}}),_D=U({slots:{input:`
|
|
878
866
|
size-full truncate bg-transparent px-md text-xs text-primary outline-none
|
|
879
867
|
placeholder:text-placeholder
|
|
880
868
|
read-only:cursor-default
|
|
881
869
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
882
870
|
disabled:placeholder:text-fg-disabled-subtle
|
|
883
|
-
`,leftControl:`pl-xs`,rightControl:`pr-xs`},variants:{showControls:{true:{input:`text-center`}}}}),
|
|
871
|
+
`,leftControl:`pl-xs`,rightControl:`pr-xs`},variants:{showControls:{true:{input:`text-center`}}}}),vD=(0,d.defineComponent)({inheritAttrs:!1,__name:`NumberField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({formatOptions:{},max:{},min:{},showControls:{type:Boolean},step:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...wv,...Tv,...Ev,...Dv,formatOptions:null,max:null,min:null,showControls:!1,step:1}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.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,d.useModel)(e,`modelValue`),l=(0,d.computed)(()=>_D({showControls:n.showControls})),u=(0,d.ref)(c.value),f=(0,d.ref)(!1);(0,d.watch)(()=>c.value,e=>{f.value||(u.value=e)});let p=(0,d.useAttrs)(),g=(0,h.useI18n)(),_=n.id??(0,d.useId)(),{isError:v,ariaBusy:y,ariaDescribedBy:b,ariaInvalid:x}=Sv(_,n),S=Z(),C=(0,d.computed)(()=>te(S.numberFormat.value));function w(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 T(e){f.value=!0;let t=e.target.value;if(t===``){c.value=null;return}let n=E(t);Number.isNaN(n)||(c.value=n)}function ee(){u.value=c.value,f.value=!1}function E(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,``));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,``)):w(e,C.value)}function ne(e){u.value=c.value,f.value=!1,r(`blur`,e)}return(0,d.watch)(u,()=>{c.value=u.value??null}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,label:n.label,class:(0,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),for:(0,d.unref)(_),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.NumberFieldRoot),(0,d.mergeProps)((0,d.unref)(p),{id:(0,d.unref)(_),modelValue:u.value,"onUpdate:modelValue":t[1]||=e=>u.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:C.value,name:n.name??void 0,max:n.max??void 0,min:n.min??void 0}),{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Hv,{"icon-left":n.iconLeft,"icon-right":n.iconRight,"is-loading":n.isLoading,"is-error":(0,d.unref)(v),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly},{left:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`,{},()=>[n.showControls?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,class:(0,d.normalizeClass)(l.value.leftControl()),align:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.NumberFieldDecrement),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Q,{"is-tooltip-disabled":!0,"is-disabled":n.isDisabled||n.isReadonly||n.min===u.value,icon:(0,d.unref)(qn),label:(0,d.unref)(g).t(`component.number_field.decrement`),variant:`tertiary`,size:`xs`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})]),_:1},8,[`class`])):(0,d.createCommentVNode)(``,!0)])]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`,{},()=>[n.showControls?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,class:(0,d.normalizeClass)(l.value.rightControl()),align:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.NumberFieldIncrement),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(Q,{"is-tooltip-disabled":!0,"is-disabled":n.isDisabled||n.isReadonly||n.max===u.value,icon:(0,d.unref)(Zn),label:(0,d.unref)(g).t(`component.number_field.increment`),variant:`tertiary`,size:`xs`},null,8,[`is-disabled`,`icon`,`label`])]),_:1})]),_:1},8,[`class`])):(0,d.createCommentVNode)(``,!0)])]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.NumberFieldInput),{"aria-describedby":(0,d.unref)(b),"aria-required":n.isRequired,autocomplete:n.autocomplete??void 0,"aria-busy":(0,d.unref)(y),"aria-invalid":(0,d.unref)(x),placeholder:n.placeholder??void 0,class:(0,d.normalizeClass)(l.value.input()),"data-field-wrapper":``,onInput:T,onKeydown:(0,d.withKeys)(ee,[`enter`]),onFocus:t[0]||=(0,d.withModifiers)(()=>{},[`prevent`]),onBlur:ne},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`]))}}),yD={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:`470123456`,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`},bD=U({slots:{countryFlag:`
|
|
884
872
|
block h-3.5 w-5 shrink-0 overflow-hidden rounded-xxs
|
|
885
873
|
[&>svg]:size-full [&>svg]:object-cover
|
|
886
874
|
`,countryTrigger:`
|
|
@@ -895,7 +883,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
895
883
|
read-only:cursor-default
|
|
896
884
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
897
885
|
disabled:placeholder:text-fg-disabled-subtle
|
|
898
|
-
`},variants:{size:{md:{countryTrigger:`ml-xxs h-6.5`,input:`px-md`},sm:{countryTrigger:`ml-xxs h-5.5`,input:`px-sm`}}}}),
|
|
886
|
+
`},variants:{size:{md:{countryTrigger:`ml-xxs h-6.5`,input:`px-md`},sm:{countryTrigger:`ml-xxs h-5.5`,input:`px-sm`}}}}),xD=[`disabled`,`aria-expanded`,`aria-label`],SD=[`src`],CD=[`id`,`value`,`disabled`,`readonly`,`aria-describedby`,`aria-busy`,`aria-invalid`,`aria-required`,`placeholder`,`name`],wD=(0,d.defineComponent)({inheritAttrs:!1,__name:`PhoneNumberField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({defaultCountryCode:{},preferredCountryCodes:{},size:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...wv,...Tv,...Ov(Ev,`placeholder`),...Dv,defaultCountryCode:`BE`,preferredCountryCodes:()=>[],size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e,{expose:t}){let n=e,r=/\d/g,i=(0,d.useModel)(e,`modelValue`),a=Z(),o=(0,d.useAttrs)(),s=n.id??(0,d.useId)(),c=(0,d.useTemplateRef)(`input`),l=(0,d.useTemplateRef)(`fieldWrapper`),u=(0,d.computed)(()=>l.value?.$el??null),{isError:f,ariaBusy:p,ariaDescribedBy:h,ariaInvalid:g,ariaRequired:_}=Sv(s,n),{contains:v}=(0,m.useFilter)(),y=(0,d.computed)(()=>bD({size:n.size})),b=(0,d.computed)(()=>a?.locale.value??navigator.language),x=(0,d.ref)(k()),S=(0,d.ref)(``),C=(0,d.computed)(()=>c_(x.value)),w=(0,d.computed)(()=>`+${_f(x.value)}`),T=(0,d.computed)(()=>l_(x.value,b.value)??x.value),ee=(0,d.computed)(()=>new hf(x.value));function te(e){let t=_f(x.value).toString();return yf(e,x.value).replace(`+${t}`,``).trim()}let E=(0,d.computed)(()=>{let e=vf(x.value,yD);return e===void 0?`000 00 00 00`:te(e.number).replace(r,`0`)}),ne=(0,d.computed)({get:()=>i.value===null?null:te(i.value),set:e=>{if(e===null||e===``){i.value=null;return}if(mf(e,x.value)===`TOO_LONG`){let e=structuredClone(i.value);i.value=``,(0,d.nextTick)(()=>{i.value=e});return}let t=`+${_f(x.value)} ${e}`;if(ee.value.reset(),ee.value.input(t),ee.value.isValid()){i.value=ee.value.getNumber()?.formatInternational()??t;return}i.value=t}});function D(e){return{type:`option`,value:e}}let O=(0,d.computed)(()=>{let e=n.preferredCountryCodes??[],t=S.value.trim(),r=gf(),i=t?r.filter(e=>A(e,t)):r,a={type:`separator`};if(e.length===0||t)return i.map(D);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(D),...c?[a]:[],...s.map(D)]});function k(){if(i.value===null)return n.defaultCountryCode??`BE`;let e=pf(i.value)??null;return e===null||e.country===void 0?n.defaultCountryCode??`BE`:e.country}function A(e,t){let n=l_(e,b.value)??``,r=t.toLowerCase();return v(_f(e).toLowerCase(),r.toLowerCase())||v(e.toLowerCase(),r.toLowerCase())||v(n.toLowerCase(),r.toLowerCase())}function j(e){let t=c_(e);return{description:{layout:`inline`,value:`+${_f(e)}`},left:t===null?null:{aspect:`rectangle`,src:t,type:`image`}}}function re(e){if(i.value===null){x.value=e;return}i.value=yf(i.value.replace(`+${_f(x.value)}`,`+${_f(e)}`),e),x.value=e}function ie(e){S.value=e}function ae(e){ne.value=e.target.value||null}return t({input:c}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,label:n.label,class:(0,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),for:(0,d.unref)(s),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)(Hv,{ref:`fieldWrapper`,"icon-left":n.iconLeft,"icon-right":n.iconRight,"is-loading":n.isLoading,"is-error":(0,d.unref)(f),"is-disabled":n.isDisabled,"is-readonly":n.isReadonly,size:n.size},{left:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(hy),{"model-value":x.value,items:O.value,"display-fn":e=>(0,d.unref)(l_)(e,b.value)??e,"get-item-config":j,"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":re,"onUpdate:search":ie},{trigger:(0,d.withCtx)(({isOpen:e})=>[(0,d.createElementVNode)(`button`,{class:(0,d.normalizeClass)(y.value.countryTrigger({size:n.size})),disabled:n.isDisabled,"aria-expanded":e,"aria-label":T.value,type:`button`},[C.value===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createElementBlock)(`img`,{key:0,src:C.value,class:(0,d.normalizeClass)(y.value.countryFlag()),alt:``},null,10,SD)),(0,d.createVNode)((0,d.unref)(Jt),{class:`size-3 shrink-0 text-tertiary`})],10,xD)]),_:1},8,[`model-value`,`items`,`display-fn`,`is-disabled`,`popover-anchor-reference-element`]),(0,d.createElementVNode)(`span`,{class:(0,d.normalizeClass)(y.value.dialCode())},(0,d.toDisplayString)(w.value),3)]),default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`input`,(0,d.mergeProps)((0,d.unref)(o),{id:(0,d.unref)(s),ref:`input`,value:ne.value,disabled:n.isDisabled,readonly:n.isReadonly,"aria-describedby":(0,d.unref)(h),"aria-busy":(0,d.unref)(p),"aria-invalid":(0,d.unref)(g),"aria-required":(0,d.unref)(_),placeholder:E.value,name:n.name??void 0,class:y.value.input({size:n.size}),type:`tel`,autocomplete:`tel`,"data-field-wrapper":``,onInput:ae}),null,16,CD)]),_: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`]))}}),TD={id:null,isLabelHidden:!1,description:null},[ED,DD]=L(`radioGroupItemContext`),OD=U({slots:{cardRoot:`
|
|
899
887
|
group/radio-group-item flex items-center justify-start rounded-md border
|
|
900
888
|
border-secondary p-lg outline-none
|
|
901
889
|
disabled:cursor-not-allowed
|
|
@@ -922,7 +910,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
922
910
|
group/radio-group-item flex items-center justify-start gap-x-sm
|
|
923
911
|
outline-none
|
|
924
912
|
disabled:cursor-not-allowed
|
|
925
|
-
`}}),
|
|
913
|
+
`}}),kD=(0,d.defineComponent)({__name:`RadioGroupIndicator`,setup(e){let{radioGroupStyle:t}=DD();return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.RadioGroupIndicator),{class:(0,d.normalizeClass)((0,d.unref)(t).indicator()),"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.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}))}}),AD=(0,d.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,d.computed)(()=>OD());return ED({radioGroupStyle:i}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(K,{"is-disabled":!n.isDisabled||n.disabledReason==null,label:n.disabledReason},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.RadioGroupItem),{id:n.id??void 0,disabled:n.isDisabled,value:n.value,class:(0,d.normalizeClass)(i.value.root()),onBlur:t[0]||=e=>r(`blur`),onFocus:t[1]||=e=>r(`focus`)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{align:`start`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(i.value.control())},[(0,d.createVNode)(kD)],2),(0,d.createVNode)(q,{class:(0,d.normalizeClass)(n.isLabelHidden&&`sr-only`),gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(G),{text:n.label,class:(0,d.normalizeClass)(i.value.label())},null,8,[`text`,`class`]),n.description?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:0,text:n.description,class:(0,d.normalizeClass)(i.value.description())},null,8,[`text`,`class`])):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`class`])]),_:1})]),_:1},8,[`id`,`disabled`,`value`,`class`])]),_:1},8,[`is-disabled`,`label`]))}}),jD=(0,d.defineComponent)({__name:`RadioGroupItem`,props:(0,d.mergeDefaults)({id:{},isLabelHidden:{type:Boolean},description:{},label:{},value:{},isDisabled:{type:Boolean},disabledReason:{}},{...TD}),setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(AD,(0,d.normalizeProps)((0,d.guardReactiveProps)(t)),null,16))}}),[MD,ND]=L(`radioGroupContext`),PD=(0,d.defineComponent)({__name:`RadioGroupRoot`,props:(0,d.mergeModels)({orientation:{default:`vertical`},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean,default:!1},disabledReason:{default:null},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,d.useModel)(e,`modelValue`);return MD({isDisabled:(0,d.computed)(()=>t.isDisabled),modelValue:n,orientation:(0,d.computed)(()=>t.orientation)}),(e,r)=>((0,d.openBlock)(),(0,d.createBlock)(K,{"is-disabled":!t.isDisabled||t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.RadioGroupRoot),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,orientation:t.orientation,disabled:t.isDisabled},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`orientation`,`disabled`])]),_:3},8,[`is-disabled`,`label`]))}}),FD=/Mobi|Android/i;function ID(){return FD.test(navigator.userAgent)}var LD=(0,d.defineComponent)({__name:`RelativeDateTime`,props:{dateTime:{},leadingText:{default:null}},setup(e){let t=e,n=(0,d.useAttrs)(),r=S.Temporal.Now.instant(),i=(0,C.useDateTimeFormat)(),a=(0,d.ref)(!0);function o(){ID()&&(a.value=!a.value)}return(e,s)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(K),{label:(0,d.unref)(i).toDateTime(t.dateTime,!0)},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`span`,(0,d.normalizeProps)((0,d.guardReactiveProps)((0,d.unref)(n))),[(0,d.createTextVNode)((0,d.toDisplayString)(t.leadingText)+` `,1),(0,d.createVNode)(WT,{value:(0,d.unref)(i).toDateTime(t.dateTime,!0),class:`whitespace-nowrap`,onClick:o},{default:(0,d.withCtx)(()=>[a.value?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(i).toRelativeTime(t.dateTime,(0,d.unref)(r))),1)],64)):((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[(0,d.createTextVNode)((0,d.toDisplayString)((0,d.unref)(i).toDateTime(t.dateTime,!0)),1)],64))]),_:1},8,[`value`])],16)]),_:1},8,[`label`]))}});function RD(){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){RD()&&this.log(`debug`,e,...t)}error(e,...t){this.log(`error`,e,...t)}info(e,...t){RD()&&this.log(`info`,e,...t)}warn(e,...t){this.log(`warn`,e,...t)}};var zD=/([a-z])([A-Z])/g,BD=/([A-Z]+)([A-Z][a-z])/g,VD=/[\u0300-\u036F]/g,HD=/[^\w\s-]/g,UD=/[\s_]+/g,WD=/^-+|-+$/g,GD=/<[^>]*>/g,KD=class{static camelToKebab(e){return e.replace(zD,`$1-$2`).replace(BD,`$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(VD,``).replace(HD,``).replace(UD,`-`).replace(WD,``)}static stripHtml(e){return e.replace(GD,``)}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)}...`}},qD=(0,d.defineComponent)({__name:`SearchField`,props:{search:{}},setup(e){let t=e,n=(0,d.useTemplateRef)(`textField`),r=(0,d.useId)(),i=(0,h.useI18n)();return it(`Mod+F`,()=>{n.value?.input?.focus()},{preventDefault:!0}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(zy),{id:(0,d.unref)(r),ref:`textField`,"model-value":t.search.search.value,placeholder:(0,d.unref)(i).t(`component.search_input.placeholder`),"icon-left":(0,d.unref)(tr),"aria-label":(0,d.unref)(i).t(`component.search_input.placeholder`),size:`sm`,class:`w-44`,"onUpdate:modelValue":n[1]||=e=>t.search.updateSearch(e??``)},{right:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(g.AnimatePresence),{initial:!1},{default:(0,d.withCtx)(()=>[(0,d.unref)(KD).isEmpty(t.search.search.value)?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{label:(0,d.unref)(i).t(`component.search_input.clear`),icon:(0,d.unref)(_r),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`]))}}),JD=50,YD=`search`;function XD(e){let t=e?.persistInUrl===!1?!1:e?.persistInUrl??YD,n=t===!0||typeof t==`string`?(0,b.useRouteQuery)(`search`,``,{mode:`replace`}):(0,d.ref)(``),r=(0,d.ref)(n.value),i=(0,d.ref)(!1),a=(0,d.computed)(()=>!KD.isEmpty(r.value)),o=null;function s(){n.value=``,r.value=``,i.value=!1,o&&clearTimeout(o)}(0,d.watch)(n,t=>{o&&clearTimeout(o),i.value=!0,o=setTimeout(()=>{r.value=t,i.value=!1},e?.debounceMs??JD)},{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[ZD,QD]=L(`switchContext`),$D=U({slots:{root:`
|
|
926
914
|
group/switch relative isolate h-5 w-8 overflow-hidden rounded-full border
|
|
927
915
|
border-solid border-gray-200 bg-quaternary px-xxs outline-offset-3
|
|
928
916
|
outline-brand-600 duration-200
|
|
@@ -943,7 +931,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
943
931
|
`,thumbIcon:`
|
|
944
932
|
size-2.5 text-gray-800
|
|
945
933
|
group-data-[state=checked]/switch:text-brand-600
|
|
946
|
-
`}}),$D=(0,d.defineComponent)({__name:`SwitchThumbIcon`,setup(e){let{isChecked:t,iconChecked:n,iconUnchecked:r,switchStyle:i}=ZD(),a=(0,d.computed)(()=>t.value?n.value:r.value);return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1,mode:`popLayout`},{default:(0,d.withCtx)(()=>[a.value===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:a.value?.name??String((0,d.unref)(t)),initial:{opacity:0,x:(0,d.unref)(t)?-8:8,filter:`blur(2px)`},animate:{opacity:1,scale:1,x:0,filter:`blur(0px)`},exit:{opacity:0,x:(0,d.unref)(t)?-8:8,filter:`blur(2px)`},transition:{duration:.25,type:`spring`,bounce:0}},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(a.value),{class:(0,d.normalizeClass)((0,d.unref)(i).thumbIcon())},null,8,[`class`]))]),_:1},8,[`initial`,`exit`]))]),_:1}))}}),eO=(0,d.defineComponent)({__name:`Switch`,props:(0,d.mergeModels)((0,d.mergeDefaults)({iconChecked:{},iconUnchecked:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{}},{...wv,...Tv,iconChecked:null,iconUnchecked:null}),{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),a=n.id??(0,d.useId)(),o=(0,d.computed)(()=>QD());return XD({isChecked:(0,d.computed)(()=>i.value),iconChecked:(0,d.computed)(()=>n.iconChecked??null),iconUnchecked:(0,d.computed)(()=>n.iconUnchecked??null),switchStyle:o}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(K,{"is-disabled":!n.isDisabled||n.disabledReason==null,label:n.disabledReason},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{align:`start`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.SwitchRoot),{id:(0,d.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,d.normalizeClass)(o.value.root()),onBlur:t[1]||=e=>r(`blur`)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.SwitchThumb),{class:(0,d.normalizeClass)(o.value.thumb())},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($D)]),_:1},8,[`class`])]),_:1},8,[`id`,`modelValue`,`disabled`,`data-invalid`,`class`]),(0,d.createElementVNode)(`div`,null,[n.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,class:(0,d.normalizeClass)([n.isLabelHidden&&`sr-only`]),gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`),(0,d.createVNode)((0,d.unref)(G),{for:n.for??(0,d.unref)(a),text:n.label,class:(0,d.normalizeClass)((0,d.unref)(ya)(`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,d.renderSlot)(e.$slots,`right`)]),_:3},8,[`class`])),(0,d.createVNode)(Wv,{hint:n.hint,for:n.for},null,8,[`hint`,`for`]),n.hideErrorMessage?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Uv,{key:1,"error-message":n.errorMessage,for:n.for},null,8,[`error-message`,`for`]))])]),_:3})]),_:3},8,[`is-disabled`,`label`]))}}),tO=(0,d.defineComponent)({__name:`ApiErrorState`,props:{error:{}},setup(e){let t=e,n=(0,h.useI18n)(),r=(0,d.computed)(()=>{let[e]=t.error.errors??[];return e??null});return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(UE),{title:r.value?.status??(0,d.unref)(n).t(`component.api_error_state.error_title`),description:r.value?.detail??(0,d.unref)(n).t(`component.api_error_state.error_description`)},null,8,[`title`,`description`]))}}),nO=(0,d.defineComponent)({__name:`ZodErrorState`,props:{error:{}},setup(e){let t=e,n=(0,h.useI18n)(),r=(0,p.useClipboard)(),i=(0,d.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(v.z.treeifyError(t.error),null,2))}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(UE),{"secondary-action":{label:i.value,onClick:a,type:`button`},description:(0,d.unref)(n).t(`component.zod_error_state.description`),title:(0,d.unref)(n).t(`component.zod_error_state.title`)},null,8,[`secondary-action`,`description`,`title`]))}}),rO=(0,d.defineComponent)({__name:`ErrorState`,props:{error:{}},setup(e){let t=e,n=(0,h.useI18n)();return(e,r)=>(0,d.unref)(rS).isExpectedApiError(t.error)?((0,d.openBlock)(),(0,d.createBlock)(tO,{key:0,error:t.error},null,8,[`error`])):(0,d.unref)(rS).isZodError(t.error)?((0,d.openBlock)(),(0,d.createBlock)(nO,{key:1,error:t.error},null,8,[`error`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(UE),{key:2,title:(0,d.unref)(n).t(`component.api_error_state.error_title`),description:(0,d.unref)(n).t(`component.api_error_state.error_description`)},null,8,[`title`,`description`]))}}),iO=(0,d.defineComponent)({__name:`TableSubgrid`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),{class:`col-span-full grid grid-cols-subgrid`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),[aO,oO]=L(`tableContext`),sO=(0,d.defineComponent)({__name:`TableBody`,setup(e){let{isScrollableVertically:t,variant:n}=oO(),r=(0,d.computed)(()=>t.value||n.value===`contained`);return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(iO,{class:(0,d.normalizeClass)([{"[&>*:last-child]:border-b-0":r.value},`group/body`])},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),cO={GROUP:3,HEADER:4,SUBGROUP:2},[lO,uO]=L(`tableGroupContext`),dO={class:`w-5`},fO=(0,d.defineComponent)({__name:`TableBodyGroup`,props:{defaultOpen:{type:Boolean,default:!0},headerCells:{},label:{}},setup(e){let t=e,{isScrolledFromLeft:n,registerGroup:r,unregisterGroup:i}=oO();return lO({isGroup:!0}),r(),(0,d.onBeforeUnmount)(()=>{i()}),(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.CollapsibleRoot),{as:iO,"default-open":t.defaultOpen,class:`group/collapsible`},{default:(0,d.withCtx)(({open:r})=>[(0,d.createVNode)(iO,{style:(0,d.normalizeStyle)({zIndex:(0,d.unref)(cO).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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.CollapsibleTrigger),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,{class:(0,d.normalizeClass)([{"border-r border-secondary":(0,d.unref)(n)},`sticky left-0 z-1 size-full bg-primary px-2xl outline-none group-hover/group:bg-secondary group-has-focus-visible/group:bg-tertiary group-data-[state=open]/collapsible:bg-secondary`])},[(0,d.createVNode)((0,d.unref)(R),{gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,dO,[(0,d.createVNode)((0,d.unref)(Jt),{class:(0,d.normalizeClass)([{"-rotate-90":!r},`size-3.5 text-disabled duration-150 group-hover/group:text-secondary`])},null,8,[`class`])]),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:`text-xs text-tertiary duration-150 group-hover/group:text-secondary`},null,8,[`text`])]),_:2},1024)],2)]),_:2},1024),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t.headerCells,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e),{key:t}))),128))]),_:2},1032,[`style`]),(0,d.createVNode)((0,d.unref)(m.CollapsibleContent),{as:iO,class:`origin-top-left overflow-clip data-[state=closed]:animate-[table-collapsible-up_150ms] data-[state=open]:animate-[table-collapsible-down_150ms]`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`default-open`]))}}),[pO,mO]=L(`tableBodyRowContext`),[hO,gO]=L(`tableSubGroupContext`),_O={class:`pointer-events-none relative z-1 flex size-full items-center`},vO=(0,d.defineComponent)({__name:`TableBodyRowCell`,setup(e){let{isScrolledFromLeft:t,variant:n}=oO(),{link:r}=mO({link:(0,d.computed)(()=>null)}),{isGroup:i}=uO({isGroup:!1}),{isSubGroup:a}=gO({isSubGroup:!1}),o=(0,d.computed)(()=>a?`first-of-type:pl-15`:i?`first-of-type:pl-10`:`first-of-type:pl-2xl`);return(e,i)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)([[{"first-of-type:border-r first-of-type:border-secondary":(0,d.unref)(t),"h-10":(0,d.unref)(n)===`full-page`,"h-9":(0,d.unref)(n)===`contained`},o.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,d.unref)(r)===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(y.RouterLink),{key:0,to:(0,d.unref)(r),tabindex:`-1`,class:`absolute inset-0 z-0`},null,8,[`to`])),(0,d.createElementVNode)(`div`,_O,[(0,d.renderSlot)(e.$slots,`default`)])],2))}}),yO=(0,d.defineComponent)({__name:`TableBodyRowActionsCell`,props:{actionModel:{}},setup(e){let t=e,n=(0,h.useI18n)(),{actions:r}=oO();return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)(vO,{class:`sticky right-0 z-1 flex items-center justify-end`,"data-row-actions":``},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Wo),{actions:(0,d.unref)(r),models:t.actionModel===null?[]:[t.actionModel],"current-context-only":!0,"popover-side":`bottom`,"popover-align":`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{"is-tooltip-disabled":!0,icon:(0,d.unref)(yn),label:(0,d.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}))}}),bO=(0,d.defineComponent)({__name:`TableBodyRow`,props:{actionModel:{default:null},ariaLabel:{default:null},link:{default:null}},setup(e){let t=e,n=(0,h.useI18n)(),{isGroupingEnabled:r,actions:i}=oO();return pO({link:(0,d.computed)(()=>t.link)}),(a,o)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Io),{actions:(0,d.unref)(i),"current-context-only":!0,models:t.actionModel===null?[]:[t.actionModel]},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Go),{actions:(0,d.unref)(i),models:t.actionModel===null?[]:[t.actionModel]},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(iO,{class:(0,d.normalizeClass)([{"border-b border-secondary has-[[data-row-actions]_[data-state=open]]:border-secondary/25 data-[state=open]:border-secondary/25":!(0,d.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,d.withCtx)(()=>[e.link===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(y.RouterLink),{key:0,to:e.link,"aria-label":e.ariaLabel??(0,d.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,d.renderSlot)(a.$slots,`default`),(0,d.unref)(i).length>0?((0,d.openBlock)(),(0,d.createBlock)(yO,{key:1,"action-model":t.actionModel},null,8,[`action-model`])):(0,d.createCommentVNode)(``,!0)]),_:3},8,[`class`])]),_:3},8,[`actions`,`models`])]),_:3},8,[`actions`,`models`]))}}),xO={class:`size-full px-5xl outline-none focus-visible:bg-tertiary`},SO={class:`w-5`},CO=(0,d.defineComponent)({__name:`TableBodySubGroup`,props:{defaultOpen:{type:Boolean,default:!0},label:{}},setup(e){let t=e;return hO({isSubGroup:!0}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.CollapsibleRoot),{as:iO,"default-open":t.defaultOpen},{default:(0,d.withCtx)(({open:n})=>[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)({zIndex:(0,d.unref)(cO).SUBGROUP}),class:`group/sub-group sticky top-18 col-span-full flex h-8 items-center bg-primary`},[(0,d.createVNode)((0,d.unref)(m.CollapsibleTrigger),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,xO,[(0,d.createVNode)((0,d.unref)(R),{gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,SO,[(0,d.createVNode)((0,d.unref)(Jt),{class:(0,d.normalizeClass)([{"-rotate-90":!n},`size-3.5 text-disabled duration-150 group-hover/sub-group:text-secondary`])},null,8,[`class`])]),(0,d.createVNode)((0,d.unref)(G),{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,d.createVNode)((0,d.unref)(m.CollapsibleContent),{as:iO,class:`origin-top-left overflow-clip data-[state=closed]:animate-[table-collapsible-up_150ms] data-[state=open]:animate-[table-collapsible-down_150ms]`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`default-open`]))}}),wO=[`disabled`],TO=(0,d.defineComponent)({__name:`TableHeaderCell`,props:{isResizable:{type:Boolean,default:!0},actionConfig:{default:null},centerContent:{type:Boolean,default:!1},columnIndex:{},columnKey:{},label:{}},setup(e){let t=e,n=(0,h.useI18n)(),{isColumnResizeDisabled:r,isGroupingEnabled:i,isResizingColumn:a,isScrolledFromLeft:o,sort:s,onColumnResizeFitToContent:c,onColumnResizeStart:l}=oO(),u=(0,d.useTemplateRef)(`cellEl`),f=(0,d.computed)(()=>s!==null&&s.existsSort(t.columnKey)),p=(0,d.computed)(()=>{if(!f.value)return null;let e=s?.getSort(t.columnKey)??null;return e===null?null:e.direction}),m=(0,d.computed)(()=>{if(!f.value)return null;switch(p.value){case`asc`:return It;case`desc`:return wt;default:return lr}});return(e,h)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{ref_key:`cellEl`,ref:u,class:(0,d.normalizeClass)([{"first-of-type:border-r first-of-type:border-secondary":(0,d.unref)(o),"justify-center":t.centerContent,"bg-secondary":!(0,d.unref)(i)},`group relative flex h-10 items-center overflow-hidden bg-primary px-xl first-of-type:sticky first-of-type:left-0 first-of-type:z-2 first-of-type:pl-2xl last-of-type:pr-2xl`])},[(0,d.createVNode)((0,d.unref)(R),{gap:`xs`},{default:(0,d.withCtx)(()=>[t.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)($),{key:0},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,{disabled:!f.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:h[0]||=e=>(0,d.unref)(s)?.toggleSort(t.columnKey)},[(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:`text-xs font-medium text-primary`},null,8,[`text`]),(0,d.createVNode)((0,d.unref)(g.AnimatePresence),{mode:`popLayout`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:p.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,d.withCtx)(()=>[m.value===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(m.value),{key:0,class:(0,d.normalizeClass)([[p.value===null?`text-disabled`:`text-primary`],`size-3 duration-150`])},null,8,[`class`]))]),_:1}))]),_:1})],8,wO)]),_:1})),(0,d.createVNode)((0,d.unref)(Wo),{actions:t.actionConfig?.actions??[],metadata:t.actionConfig?.metadata,"current-context-only":t.actionConfig?.currentContextOnly??!0,"popover-side":`bottom`,"popover-align":`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(yn),"is-tooltip-disabled":t.actionConfig?.label===void 0,label:t.actionConfig?.label??(0,d.unref)(n).t(`component.table.header_cell.options_label`),size:`sm`,variant:`tertiary`},null,8,[`icon`,`is-tooltip-disabled`,`label`])]),_:1},8,[`actions`,`metadata`,`current-context-only`])]),_:1}),t.isResizable&&!(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,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:h[1]||=(0,d.withModifiers)(e=>(0,d.unref)(l)(t.columnIndex,e.clientX,u.value),[`prevent`]),onDblclick:h[2]||=(0,d.withModifiers)(e=>(0,d.unref)(c)(t.columnIndex,u.value),[`prevent`])},[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)([{"scale-92":(0,d.unref)(a)},`h-5 w-1 rounded-full bg-fg-disabled opacity-0 duration-150 group-hover/handle:opacity-100`])},null,2)],32)):(0,d.createCommentVNode)(``,!0)],2))}}),EO=(0,d.defineComponent)({__name:`TableHeader`,setup(e){let t=(0,h.useI18n)(),{isGroupingEnabled:n,actions:r,headerActions:i}=oO();return(e,a)=>((0,d.openBlock)(),(0,d.createBlock)(iO,{style:(0,d.normalizeStyle)({zIndex:(0,d.unref)(cO).HEADER}),class:(0,d.normalizeClass)([{"border-b border-secondary":!(0,d.unref)(n)},`sticky top-0`])},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`),(0,d.unref)(r).length>0||(0,d.unref)(i).length>0?((0,d.openBlock)(),(0,d.createBlock)(TO,{key:0,"column-index":0,"is-resizable":!1,label:null,"action-config":{actions:(0,d.unref)(i)??[],label:(0,d.unref)(t).t(`component.table.settings_label`),currentContextOnly:!1},"column-key":``,class:`sticky right-0 z-1 h-full`},null,8,[`action-config`])):(0,d.createCommentVNode)(``,!0)]),_:3},8,[`style`,`class`]))}}),DO=(0,d.defineComponent)({__name:`TableHiddenResultsWarning`,setup(e){let t=(0,h.useI18n)(),{activeFilterCountIncludingSearch:n,onClearFiltersAndSearch:r}=oO();return(e,i)=>(0,d.unref)(n)>0?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,class:`p-xl`,justify:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(G),{text:(0,d.unref)(t).t(`component.table.hidden_results_warning.message`,{count:(0,d.unref)(n)}),class:`text-xs text-tertiary`},null,8,[`text`]),(0,d.createVNode)((0,d.unref)(g_),{label:(0,d.unref)(t).t(`component.table.empty_state.no_results.clear_filters_label`),size:`sm`,variant:`secondary`,onClick:(0,d.unref)(r)},null,8,[`label`,`onClick`])]),_:1})):(0,d.createCommentVNode)(``,!0)}}),OO=W((0,d.defineComponent)({__name:`TableLoading`,setup(e){let{gridTemplateColumns:t}=oO(),n=[`60%`,`70%`,`65%`,`75%`,`60%`,`70%`];function r(e,t){return n[(e*3+t)%n.length]}return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(iO,{style:(0,d.normalizeStyle)({gridTemplateColumns:(0,d.unref)(t)}),class:`z-10 grid w-full mask-b-to-transparent px-2xl`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(10,e=>(0,d.createVNode)(iO,{key:e,style:(0,d.normalizeStyle)({"--row-index":e-1}),class:`custom-skeleton-row py-lg`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(3,t=>(0,d.createVNode)((0,d.unref)(J),{key:t,style:(0,d.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`]]),kO={max:`auto`,min:`min-content`};function AO({max:e,min:t}){return e===`auto`?`minmax(${t}, auto)`:t===e?t:t===`min-content`?`fit-content(${e})`:`minmax(${t}, ${e})`}var jO=class{static columnSizesToGridTemplateColumns(e,t){let n=[...e.slice(0,-1),kO].map(AO).join(` `);return t?`${n} min-content`:n}};function MO(e,t){return`${e.map((e,n)=>n===t?`max-content`:`${e}px`).join(` `)} minmax(min-content, auto) min-content`}function NO(e,t,n,r,i){let a=(0,d.ref)(null),o=(0,d.ref)(null),s=(0,d.ref)(null),c=(0,d.ref)(null),l=(0,d.ref)(0),u=(0,d.ref)(0),m=(0,d.computed)(()=>c.value!==null),g=(0,d.computed)(()=>o.value===null?a.value??_():MO(o.value,s.value));function _(){return jO.columnSizesToGridTemplateColumns(e.value,!0)}(0,d.watch)([t,n,e],([e,t])=>{e===null||!t||b(e)});let v=0,y=(0,p.useDebounceFn)(e=>{b(e)},25);(0,p.useResizeObserver)(t,e=>{let n=e[0]?.borderBoxSize[0]?.inlineSize;n===void 0||n===v||(v=n,o.value===null&&t.value!==null&&y(t.value))},{box:`border-box`});async function b(e){a.value=null,await(0,d.nextTick)(),a.value=getComputedStyle(e).gridTemplateColumns}(0,d.watch)(()=>e.value.length,()=>{o.value=null,s.value=null,c.value=null});function x(t){return Array.from(t.parentElement?.children??[]).slice(0,e.value.length-1).map(e=>e.getBoundingClientRect().width)}function S(e,t,n){let r=x(n);o.value=r,c.value=e,l.value=t,u.value=r[e]}function C(e){if(c.value===null||o.value===null)return;let t=e.clientX-l.value,n=Math.max(50,u.value+t),r=[...o.value];r[c.value]=n,o.value=r}function w(){c.value=null}async function T(e,t){o.value===null&&(o.value=x(t)),s.value=e,await(0,d.nextTick)();let n=t.getBoundingClientRect().width,r=[...o.value];r[e]=n,o.value=r,s.value=null}function ee(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=>e.getBoundingClientRect().width);n.style.gridTemplateColumns=MO(i,null),o.value=i}document.addEventListener(`mousemove`,C),document.addEventListener(`mouseup`,w),(0,d.onBeforeUnmount)(()=>{document.removeEventListener(`mousemove`,C),document.removeEventListener(`mouseup`,w)});let te=(0,h.useI18n)();function E(){let n=t.value?.children[0];return n===void 0?[]:Array.from(n.children).slice(0,e.value.length-1)}let ne=(0,f.createAction)({id:`table-auto-fit-columns`,isApplicable:()=>!i.value,name:()=>te.t(`component.table.auto_fit_columns_action.name`),execute:()=>ee(E()),group:r.value??void 0,icon:()=>ar});return(0,f.useTemporaryActions)(ne),{isResizing:m,autoFitColumnsAction:ne,fitColumnToContent:T,gridTemplateColumns:g,startColumnResize:S}}function PO(){let e=(0,d.ref)(!1),t=(0,d.ref)(!0),n=(0,d.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}),new ResizeObserver(()=>r(e)).observe(e)}return{isScrollableVertically:n,isScrolledFromLeft:e,isScrolledToEnd:t,setScrollContainer:i}}var FO=(0,d.defineComponent)({__name:`TableRoot`,props:{hasActiveSearch:{type:Boolean,default:!1},isInitialized:{type:Boolean},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,d.ref)(null),{isScrollableVertically:a,isScrolledFromLeft:o,isScrolledToEnd:s,setScrollContainer:c}=PO(),l=(0,d.ref)(0),u=(0,d.computed)(()=>l.value>0),f=(0,d.computed)(()=>i.value?.children[0]??null),{isResizing:m,autoFitColumnsAction:h,fitColumnToContent:g,gridTemplateColumns:_,startColumnResize:v}=NO((0,d.computed)(()=>n.columnSizes),f,(0,d.computed)(()=>n.isInitialized),(0,d.computed)(()=>n.actionGroup),(0,d.computed)(()=>n.disableColumnResize)),y=(0,d.computed)(()=>(n.activeFilterCount??0)+ +!!n.hasActiveSearch);function b(){l.value+=1}function x(){--l.value}function S(){r(`clearFiltersAndSearch`)}return(0,p.useInfiniteScroll)(i,()=>{n.onNextPage?.()},{offset:{bottom:400}}),aO({isColumnResizeDisabled:(0,d.computed)(()=>n.disableColumnResize),isGroupingEnabled:(0,d.computed)(()=>u.value),isResizingColumn:m,isScrollableVertically:(0,d.computed)(()=>a.value),isScrolledFromLeft:(0,d.computed)(()=>o.value),isScrolledToEnd:(0,d.computed)(()=>s.value),actions:(0,d.computed)(()=>n.actions),activeFilterCountIncludingSearch:y,gridTemplateColumns:_,headerActions:(0,d.computed)(()=>[...n.headerActions,h]),registerGroup:b,setScrollContainer:e=>{i.value=e,c(e)},sort:n.sort,unregisterGroup:x,variant:(0,d.computed)(()=>n.variant),onClearFiltersAndSearch:S,onColumnResizeFitToContent:g,onColumnResizeStart:v}),(e,t)=>(0,d.renderSlot)(e.$slots,`default`)}}),[IO,LO]=L(`tableScrollContainerContext`),RO=(0,d.defineComponent)({__name:`TableScrollContainer`,props:{disableScroll:{type:Boolean,default:!1}},setup(e){let t=e,{gridTemplateColumns:n,setScrollContainer:r,variant:i}=oO(),a=LO(null),o=(0,d.useTemplateRef)(`containerEl`);return(0,d.onMounted)(()=>{o.value!==null&&(r(o.value),a!==null&&(a.value=o.value))}),(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{ref_key:`containerEl`,ref:o,class:(0,d.normalizeClass)([{"rounded-xl border border-secondary":(0,d.unref)(i)===`contained`,"overflow-auto":!t.disableScroll},`max-h-full w-full contain-layout contain-paint outline-none`])},[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)({gridTemplateColumns:(0,d.unref)(n)}),class:`grid`},[(0,d.renderSlot)(e.$slots,`default`)],4),(0,d.renderSlot)(e.$slots,`outside-grid`)],2))}});function zO(e,t){let n=(0,w.useVirtualizer)((0,d.computed)(()=>({count:e.value,estimateSize:()=>40,getScrollElement:()=>t.value,overscan:5}))),r=(0,d.computed)(()=>n.value.getVirtualItems()),i=(0,d.computed)(()=>n.value.getTotalSize()),a=(0,d.computed)(()=>r.value.at(0)?.start??0);return{paddingAfterPx:(0,d.computed)(()=>{let e=r.value.at(-1);return e==null?0:i.value-e.end}),paddingBeforePx:a,virtualItems:r}}var BO=(0,d.defineComponent)({__name:`Table`,props:{isFetchingNextPage:{type:Boolean},isLoading:{type:Boolean},columns:{},data:{},error:{},getActionModel:{},getKey:{},getLink:{type:[Function,null],default:null},groupHeaderCells:{},hasActiveSearch:{type:Boolean},actionGroup:{},actions:{},activeFilterCount:{default:0},disableColumnResize:{type:Boolean},headerActions:{},sort:{},variant:{},onNextPage:{}},emits:[`clearFilters`,`clearSearch`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),a=(0,d.shallowRef)(null);IO(a);let o=(0,d.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,d.computed)(()=>n.data),c=(0,d.computed)(()=>n.data),l=(0,d.computed)(()=>n.data),u=(0,d.computed)(()=>n.columns.map(e=>e.size??{max:`20rem`,min:`min-content`})),{paddingAfterPx:f,paddingBeforePx:p,virtualItems:m}=zO((0,d.computed)(()=>o.value===`flat`?s.value.length:0),a);(0,d.watch)(()=>n.data.length,(e,t)=>{e<t&&a.value?.scrollTo({top:0})});function g(){r(`clearFilters`),r(`clearSearch`)}return(t,r)=>((0,d.openBlock)(),(0,d.createBlock)(FO,{"column-sizes":u.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,"header-actions":n.headerActions,"action-group":n.actionGroup,"disable-column-resize":n.disableColumnResize,variant:n.variant,sort:n.sort,onClearFiltersAndSearch:g},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(RO,{"disable-scroll":n.data.length===0},{"outside-grid":(0,d.withCtx)(()=>[n.isLoading||n.isFetchingNextPage?((0,d.openBlock)(),(0,d.createBlock)(OO,{key:0})):(0,d.createCommentVNode)(``,!0),e.data.length>0?((0,d.openBlock)(),(0,d.createBlock)(DO,{key:1})):(0,d.createCommentVNode)(``,!0)]),default:(0,d.withCtx)(()=>[e.data.length>0||n.isLoading?((0,d.openBlock)(),(0,d.createBlock)(EO,{key:0},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.columns,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(TO,{key:e.key,"column-index":t,"is-resizable":t<n.columns.length-1,label:e.headerLabel,"center-content":e.centerHeaderContent??!1,"action-config":e.actionConfig,"column-key":e.key},null,8,[`column-index`,`is-resizable`,`label`,`center-content`,`action-config`,`column-key`]))),128))]),_:1})):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)(sO,null,{default:(0,d.withCtx)(()=>[o.value===`flat`?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[(0,d.unref)(p)>0?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,style:(0,d.normalizeStyle)({height:`${(0,d.unref)(p)}px`}),class:`col-span-full`},null,4)):(0,d.createCommentVNode)(``,!0),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(m),e=>((0,d.openBlock)(),(0,d.createBlock)(bO,{key:n.getKey(s.value[e.index]),"action-model":n.getActionModel?.(s.value[e.index]),link:n.getLink?.(s.value[e.index])??null},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.columns,t=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.component(s.value[e.index])),{key:t.key}))),128))]),_:2},1032,[`action-model`,`link`]))),128)),(0,d.unref)(f)>0?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:1,style:(0,d.normalizeStyle)({height:`${(0,d.unref)(f)}px`}),class:`col-span-full`},null,4)):(0,d.createCommentVNode)(``,!0)],64)):o.value===`with-sub-groups`?((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,{key:1},(0,d.renderList)(l.value,e=>((0,d.openBlock)(),(0,d.createBlock)(fO,{key:e.key,"default-open":e.defaultOpen,label:e.label},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.subGroups,e=>((0,d.openBlock)(),(0,d.createBlock)(CO,{key:e.key,"default-open":e.defaultOpen,label:e.label},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.items,e=>((0,d.openBlock)(),(0,d.createBlock)(bO,{key:n.getKey(e),"action-model":n.getActionModel?.(e),link:n.getLink?.(e)??null},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.columns,t=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.component(e)),{key:t.key}))),128))]),_:2},1032,[`action-model`,`link`]))),128))]),_:2},1032,[`default-open`,`label`]))),128))]),_:2},1032,[`default-open`,`label`]))),128)):((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,{key:2},(0,d.renderList)(c.value,e=>((0,d.openBlock)(),(0,d.createBlock)(fO,{key:e.key,"default-open":e.defaultOpen,label:e.label,"header-cells":n.groupHeaderCells?.(e)},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.items,e=>((0,d.openBlock)(),(0,d.createBlock)(bO,{key:n.getKey(e),"action-model":n.getActionModel?.(e),link:n.getLink?.(e)??null},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.columns,t=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.component(e)),{key:t.key}))),128))]),_:2},1032,[`action-model`,`link`]))),128))]),_:2},1032,[`default-open`,`label`,`header-cells`]))),128))]),_:1})]),_:1},8,[`disable-scroll`]),n.error===null?n.data.length===0&&!n.isLoading?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[n.activeFilterCount>0||n.hasActiveSearch?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(UE),{key:0,"secondary-action":{type:`button`,label:(0,d.unref)(i).t(`component.table.empty_state.no_results.clear_filters_label`),onClick:g},title:(0,d.unref)(i).t(`component.table.empty_state.no_results.title`),description:(0,d.unref)(i).t(`component.table.empty_state.no_results.description`),illustration:`cloud-search`,class:`mx-auto h-full max-w-96 py-xl`},null,8,[`secondary-action`,`title`,`description`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(UE),{key:1,title:(0,d.unref)(i).t(`component.table.empty_state.no_data.title`),description:(0,d.unref)(i).t(`component.table.empty_state.no_data.description`),illustration:`cloud-search`,class:`mx-auto h-full max-w-96 py-xl`},null,8,[`title`,`description`]))],64)):(0,d.createCommentVNode)(``,!0):(0,d.renderSlot)(t.$slots,`error`,{key:0,error:n.error},()=>[(0,d.createVNode)((0,d.unref)(rO),{error:n.error},null,8,[`error`])])]),_:3},8,[`column-sizes`,`actions`,`active-filter-count`,`has-active-search`,`on-next-page`,`is-initialized`,`header-actions`,`action-group`,`disable-column-resize`,`variant`,`sort`]))}}),VO=(0,d.defineComponent)({__name:`TableBodyRowCellInteractiveElement`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),{"as-child":!0,class:`pointer-events-auto`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),HO=(0,d.defineComponent)({__name:`TableBodyRowCellText`,props:{isPrimaryCell:{type:Boolean,default:!1},text:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`span`,{class:(0,d.normalizeClass)([{"font-medium":t.isPrimaryCell},`truncate text-xs text-secondary`])},(0,d.toDisplayString)(t.text),3))}}),UO={},WO={class:`last-of-type:pr-2xl last-of-type:pl-xl`};function GO(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`,WO,[(0,d.renderSlot)(e.$slots,`default`)])}var KO=W(UO,[[`render`,GO]]);function qO(){let e=(0,d.ref)(null),t=(0,d.ref)(null),n=(0,d.ref)(null),r=(0,d.ref)(0),i=(0,d.ref)(0),a=(0,d.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,d.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 f(){n.value!==null&&(n.value=null)}return document.addEventListener(`mousemove`,u),document.addEventListener(`mouseup`,f),(0,d.onBeforeUnmount)(()=>{document.removeEventListener(`mousemove`,u),document.removeEventListener(`mouseup`,f)}),{isResizingColumn:a,contentFitColumnIndex:t,fitAllColumnsToContent:c,fitColumnToContent:s,fixedWidths:e,resetWidths:l,startResize:o}}function JO(e,t,n){let r=(0,d.ref)(null);(0,d.watch)([n,t,e],([e,t])=>{e===null||!t||i(e)});async function i(e){r.value=null,await(0,d.nextTick)(),r.value=getComputedStyle(e).gridTemplateColumns}let a=0;return(0,p.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 YO(){return e=>e}var XO=(0,d.defineComponent)({__name:`TableCustomizationDialog`,props:{columnStates:{}},emits:[`close`,`columnStatesChange`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),a=(0,d.ref)(n.columnStates),o=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G_),{size:`xs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Z_),{title:(0,d.unref)(i).t(`component.table_customization.dialog.title`),description:(0,d.unref)(i).t(`component.table_customization.dialog.description`)},null,8,[`title`,`description`]),(0,d.createVNode)((0,d.unref)(Ox),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.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,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(a.value,e=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:e.column.key,class:`flex cursor-default items-center gap-x-md py-xs`},[(0,d.createVNode)((0,d.unref)(hn),{class:`size-4 shrink-0 cursor-grab text-fg-disabled duration-150 active:scale-90`,"data-drag-handle":``}),(0,d.createVNode)((0,d.unref)(G),{text:e.column.headerLabel,class:(0,d.normalizeClass)([{"text-secondary":e.isVisible,"text-fg-disabled":!e.isVisible},`text-xs font-medium duration-150`])},null,8,[`text`,`class`]),(0,d.createVNode)((0,d.unref)(HC),{"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,d.createVNode)((0,d.unref)(K_),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Y_),{label:(0,d.unref)(i).t(`component.table_customization.dialog.done`),onClick:l},null,8,[`label`])]),_:1})]),_:1}))}});function ZO(e){let t=(0,h.useI18n)(),n=U_().create(XO),r=(0,d.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,d.computed)(()=>r.value.filter(e=>e.isVisible).map(e=>e.column)),a=(0,f.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:()=>sn,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}}function QO(e){let t=(0,d.ref)(null),n=(0,d.ref)(!1),r=(0,d.ref)(!1),i=(0,d.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=e.getBoundingClientRect(),r=t.value.getBoundingClientRect();if(!(n.left<r.left||n.right>r.right))return;let i=n.left-r.left+t.value.scrollLeft-r.width/2+n.width/2;t.value.scrollTo({behavior:`smooth`,left:i})}let u=null;return(0,d.watch)(e.activeValue,()=>{(0,d.nextTick)(()=>{l()})}),(0,d.onMounted)(()=>{t.value!==null&&(o(),t.value.addEventListener(`scroll`,o),u=new ResizeObserver(o),u.observe(t.value))}),(0,d.onBeforeUnmount)(()=>{t.value!==null&&t.value.removeEventListener(`scroll`,o),u?.disconnect()}),{hasHorizontalOverflow:(0,d.computed)(()=>i.value),hasReachedHorizontalEnd:(0,d.computed)(()=>r.value),isScrolledHorizontally:(0,d.computed)(()=>n.value),scrollToActiveTab:l,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:a}}var[$O,ek]=L(`tabsContext`),tk=Ca({compoundVariants:[{isFullWidth:!0,class:{list:`w-auto`},variant:`button-border`}],slots:{base:`relative isolate overflow-hidden`,content:`outline-none`,dropdownIndicator:`absolute transition-opacity duration-200`,dropdownTrigger:`relative flex items-center justify-center`,indicator:`
|
|
934
|
+
`}}),eO=(0,d.defineComponent)({__name:`SwitchThumbIcon`,setup(e){let{isChecked:t,iconChecked:n,iconUnchecked:r,switchStyle:i}=QD(),a=(0,d.computed)(()=>t.value?n.value:r.value);return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.AnimatePresence),{initial:!1,mode:`popLayout`},{default:(0,d.withCtx)(()=>[a.value===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:a.value?.name??String((0,d.unref)(t)),initial:{opacity:0,x:(0,d.unref)(t)?-8:8,filter:`blur(2px)`},animate:{opacity:1,scale:1,x:0,filter:`blur(0px)`},exit:{opacity:0,x:(0,d.unref)(t)?-8:8,filter:`blur(2px)`},transition:{duration:.25,type:`spring`,bounce:0}},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(a.value),{class:(0,d.normalizeClass)((0,d.unref)(i).thumbIcon())},null,8,[`class`]))]),_:1},8,[`initial`,`exit`]))]),_:1}))}}),tO=(0,d.defineComponent)({__name:`Switch`,props:(0,d.mergeModels)((0,d.mergeDefaults)({iconChecked:{},iconUnchecked:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{}},{...wv,...Tv,iconChecked:null,iconUnchecked:null}),{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),a=n.id??(0,d.useId)(),o=(0,d.computed)(()=>$D());return ZD({isChecked:(0,d.computed)(()=>i.value),iconChecked:(0,d.computed)(()=>n.iconChecked??null),iconUnchecked:(0,d.computed)(()=>n.iconUnchecked??null),switchStyle:o}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(K,{"is-disabled":!n.isDisabled||n.disabledReason==null,label:n.disabledReason},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(R,{align:`start`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.SwitchRoot),{id:(0,d.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,d.normalizeClass)(o.value.root()),onBlur:t[1]||=e=>r(`blur`)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.SwitchThumb),{class:(0,d.normalizeClass)(o.value.thumb())},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(eO)]),_:1},8,[`class`])]),_:1},8,[`id`,`modelValue`,`disabled`,`data-invalid`,`class`]),(0,d.createElementVNode)(`div`,null,[n.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,class:(0,d.normalizeClass)([n.isLabelHidden&&`sr-only`]),gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`),(0,d.createVNode)((0,d.unref)(G),{for:n.for??(0,d.unref)(a),text:n.label,class:(0,d.normalizeClass)((0,d.unref)(ya)(`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,d.renderSlot)(e.$slots,`right`)]),_:3},8,[`class`])),(0,d.createVNode)(Gv,{hint:n.hint,for:n.for},null,8,[`hint`,`for`]),n.hideErrorMessage?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)(Wv,{key:1,"error-message":n.errorMessage,for:n.for},null,8,[`error-message`,`for`]))])]),_:3})]),_:3},8,[`is-disabled`,`label`]))}}),nO=(0,d.defineComponent)({__name:`ApiErrorState`,props:{error:{}},setup(e){let t=e,n=(0,h.useI18n)(),r=(0,d.computed)(()=>{let[e]=t.error.errors??[];return e??null});return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(WE),{title:r.value?.status??(0,d.unref)(n).t(`component.api_error_state.error_title`),description:r.value?.detail??(0,d.unref)(n).t(`component.api_error_state.error_description`)},null,8,[`title`,`description`]))}}),rO=(0,d.defineComponent)({__name:`ZodErrorState`,props:{error:{}},setup(e){let t=e,n=(0,h.useI18n)(),r=(0,p.useClipboard)(),i=(0,d.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(v.z.treeifyError(t.error),null,2))}return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(WE),{"secondary-action":{label:i.value,onClick:a,type:`button`},description:(0,d.unref)(n).t(`component.zod_error_state.description`),title:(0,d.unref)(n).t(`component.zod_error_state.title`)},null,8,[`secondary-action`,`description`,`title`]))}}),iO=(0,d.defineComponent)({__name:`ErrorState`,props:{error:{}},setup(e){let t=e,n=(0,h.useI18n)();return(e,r)=>(0,d.unref)(iS).isExpectedApiError(t.error)?((0,d.openBlock)(),(0,d.createBlock)(nO,{key:0,error:t.error},null,8,[`error`])):(0,d.unref)(iS).isZodError(t.error)?((0,d.openBlock)(),(0,d.createBlock)(rO,{key:1,error:t.error},null,8,[`error`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(WE),{key:2,title:(0,d.unref)(n).t(`component.api_error_state.error_title`),description:(0,d.unref)(n).t(`component.api_error_state.error_description`)},null,8,[`title`,`description`]))}}),aO=(0,d.defineComponent)({__name:`TableSubgrid`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),{class:`col-span-full grid grid-cols-subgrid`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),[oO,sO]=L(`tableContext`),cO=(0,d.defineComponent)({__name:`TableBody`,setup(e){let{isScrollableVertically:t,variant:n}=sO(),r=(0,d.computed)(()=>t.value||n.value===`contained`);return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(aO,{class:(0,d.normalizeClass)([{"[&>*:last-child]:border-b-0":r.value},`group/body`])},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),lO={GROUP:3,HEADER:4,SUBGROUP:2},[uO,dO]=L(`tableGroupContext`),fO={class:`w-5`},pO=(0,d.defineComponent)({__name:`TableBodyGroup`,props:{defaultOpen:{type:Boolean,default:!0},headerCells:{},label:{}},setup(e){let t=e,{isScrolledFromLeft:n,registerGroup:r,unregisterGroup:i}=sO();return uO({isGroup:!0}),r(),(0,d.onBeforeUnmount)(()=>{i()}),(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.CollapsibleRoot),{as:aO,"default-open":t.defaultOpen,class:`group/collapsible`},{default:(0,d.withCtx)(({open:r})=>[(0,d.createVNode)(aO,{style:(0,d.normalizeStyle)({zIndex:(0,d.unref)(lO).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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.CollapsibleTrigger),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,{class:(0,d.normalizeClass)([{"border-r border-secondary":(0,d.unref)(n)},`sticky left-0 z-1 size-full bg-primary px-2xl outline-none group-hover/group:bg-secondary group-has-focus-visible/group:bg-tertiary group-data-[state=open]/collapsible:bg-secondary`])},[(0,d.createVNode)((0,d.unref)(R),{gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,fO,[(0,d.createVNode)((0,d.unref)(Jt),{class:(0,d.normalizeClass)([{"-rotate-90":!r},`size-3.5 text-disabled duration-150 group-hover/group:text-secondary`])},null,8,[`class`])]),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:`text-xs text-tertiary duration-150 group-hover/group:text-secondary`},null,8,[`text`])]),_:2},1024)],2)]),_:2},1024),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(t.headerCells,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e),{key:t}))),128))]),_:2},1032,[`style`]),(0,d.createVNode)((0,d.unref)(m.CollapsibleContent),{as:aO,class:`origin-top-left overflow-clip data-[state=closed]:animate-[table-collapsible-up_150ms] data-[state=open]:animate-[table-collapsible-down_150ms]`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`default-open`]))}}),[mO,hO]=L(`tableBodyRowContext`),[gO,_O]=L(`tableSubGroupContext`),vO={class:`pointer-events-none relative z-1 flex size-full items-center`},yO=(0,d.defineComponent)({__name:`TableBodyRowCell`,setup(e){let{isScrolledFromLeft:t,variant:n}=sO(),{link:r}=hO({link:(0,d.computed)(()=>null)}),{isGroup:i}=dO({isGroup:!1}),{isSubGroup:a}=_O({isSubGroup:!1}),o=(0,d.computed)(()=>a?`first-of-type:pl-15`:i?`first-of-type:pl-10`:`first-of-type:pl-2xl`);return(e,i)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)([[{"first-of-type:border-r first-of-type:border-secondary":(0,d.unref)(t),"h-10":(0,d.unref)(n)===`full-page`,"h-9":(0,d.unref)(n)===`contained`},o.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,d.unref)(r)===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(y.RouterLink),{key:0,to:(0,d.unref)(r),tabindex:`-1`,class:`absolute inset-0 z-0`},null,8,[`to`])),(0,d.createElementVNode)(`div`,vO,[(0,d.renderSlot)(e.$slots,`default`)])],2))}}),bO=(0,d.defineComponent)({__name:`TableBodyRowActionsCell`,props:{actionModel:{}},setup(e){let t=e,n=(0,h.useI18n)(),{actions:r}=sO();return(e,i)=>((0,d.openBlock)(),(0,d.createBlock)(yO,{class:`sticky right-0 z-1 flex items-center justify-end`,"data-row-actions":``},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Wo),{actions:(0,d.unref)(r),models:t.actionModel===null?[]:[t.actionModel],"current-context-only":!0,"popover-side":`bottom`,"popover-align":`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{"is-tooltip-disabled":!0,icon:(0,d.unref)(yn),label:(0,d.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}))}}),xO=(0,d.defineComponent)({__name:`TableBodyRow`,props:{actionModel:{default:null},ariaLabel:{default:null},link:{default:null}},setup(e){let t=e,n=(0,h.useI18n)(),{isGroupingEnabled:r,actions:i}=sO();return mO({link:(0,d.computed)(()=>t.link)}),(a,o)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Io),{actions:(0,d.unref)(i),"current-context-only":!0,models:t.actionModel===null?[]:[t.actionModel]},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Go),{actions:(0,d.unref)(i),models:t.actionModel===null?[]:[t.actionModel]},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(aO,{class:(0,d.normalizeClass)([{"border-b border-secondary has-[[data-row-actions]_[data-state=open]]:border-secondary/25 data-[state=open]:border-secondary/25":!(0,d.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,d.withCtx)(()=>[e.link===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(y.RouterLink),{key:0,to:e.link,"aria-label":e.ariaLabel??(0,d.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,d.renderSlot)(a.$slots,`default`),(0,d.unref)(i).length>0?((0,d.openBlock)(),(0,d.createBlock)(bO,{key:1,"action-model":t.actionModel},null,8,[`action-model`])):(0,d.createCommentVNode)(``,!0)]),_:3},8,[`class`])]),_:3},8,[`actions`,`models`])]),_:3},8,[`actions`,`models`]))}}),SO={class:`size-full px-5xl outline-none focus-visible:bg-tertiary`},CO={class:`w-5`},wO=(0,d.defineComponent)({__name:`TableBodySubGroup`,props:{defaultOpen:{type:Boolean,default:!0},label:{}},setup(e){let t=e;return gO({isSubGroup:!0}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.CollapsibleRoot),{as:aO,"default-open":t.defaultOpen},{default:(0,d.withCtx)(({open:n})=>[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)({zIndex:(0,d.unref)(lO).SUBGROUP}),class:`group/sub-group sticky top-18 col-span-full flex h-8 items-center bg-primary`},[(0,d.createVNode)((0,d.unref)(m.CollapsibleTrigger),{"as-child":!0},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,SO,[(0,d.createVNode)((0,d.unref)(R),{gap:`none`},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,CO,[(0,d.createVNode)((0,d.unref)(Jt),{class:(0,d.normalizeClass)([{"-rotate-90":!n},`size-3.5 text-disabled duration-150 group-hover/sub-group:text-secondary`])},null,8,[`class`])]),(0,d.createVNode)((0,d.unref)(G),{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,d.createVNode)((0,d.unref)(m.CollapsibleContent),{as:aO,class:`origin-top-left overflow-clip data-[state=closed]:animate-[table-collapsible-up_150ms] data-[state=open]:animate-[table-collapsible-down_150ms]`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`default-open`]))}}),TO=[`disabled`],EO=(0,d.defineComponent)({__name:`TableHeaderCell`,props:{isResizable:{type:Boolean,default:!0},actionConfig:{default:null},centerContent:{type:Boolean,default:!1},columnIndex:{},columnKey:{},label:{}},setup(e){let t=e,n=(0,h.useI18n)(),{isColumnResizeDisabled:r,isGroupingEnabled:i,isResizingColumn:a,isScrolledFromLeft:o,sort:s,onColumnResizeFitToContent:c,onColumnResizeStart:l}=sO(),u=(0,d.useTemplateRef)(`cellEl`),f=(0,d.computed)(()=>s!==null&&s.existsSort(t.columnKey)),p=(0,d.computed)(()=>{if(!f.value)return null;let e=s?.getSort(t.columnKey)??null;return e===null?null:e.direction}),m=(0,d.computed)(()=>{if(!f.value)return null;switch(p.value){case`asc`:return It;case`desc`:return wt;default:return lr}});return(e,h)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{ref_key:`cellEl`,ref:u,class:(0,d.normalizeClass)([{"first-of-type:border-r first-of-type:border-secondary":(0,d.unref)(o),"justify-center":t.centerContent,"bg-secondary":!(0,d.unref)(i)},`group relative flex h-10 items-center overflow-hidden bg-primary px-xl first-of-type:sticky first-of-type:left-0 first-of-type:z-2 first-of-type:pl-2xl last-of-type:pr-2xl`])},[(0,d.createVNode)((0,d.unref)(R),{gap:`xs`},{default:(0,d.withCtx)(()=>[t.label===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)($),{key:0},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,{disabled:!f.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:h[0]||=e=>(0,d.unref)(s)?.toggleSort(t.columnKey)},[(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:`text-xs font-medium text-primary`},null,8,[`text`]),(0,d.createVNode)((0,d.unref)(g.AnimatePresence),{mode:`popLayout`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(g.Motion),{key:p.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,d.withCtx)(()=>[m.value===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(m.value),{key:0,class:(0,d.normalizeClass)([[p.value===null?`text-disabled`:`text-primary`],`size-3 duration-150`])},null,8,[`class`]))]),_:1}))]),_:1})],8,TO)]),_:1})),(0,d.createVNode)((0,d.unref)(Wo),{actions:t.actionConfig?.actions??[],metadata:t.actionConfig?.metadata,"current-context-only":t.actionConfig?.currentContextOnly??!0,"popover-side":`bottom`,"popover-align":`end`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Q),{icon:(0,d.unref)(yn),"is-tooltip-disabled":t.actionConfig?.label===void 0,label:t.actionConfig?.label??(0,d.unref)(n).t(`component.table.header_cell.options_label`),size:`sm`,variant:`tertiary`},null,8,[`icon`,`is-tooltip-disabled`,`label`])]),_:1},8,[`actions`,`metadata`,`current-context-only`])]),_:1}),t.isResizable&&!(0,d.unref)(r)?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,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:h[1]||=(0,d.withModifiers)(e=>(0,d.unref)(l)(t.columnIndex,e.clientX,u.value),[`prevent`]),onDblclick:h[2]||=(0,d.withModifiers)(e=>(0,d.unref)(c)(t.columnIndex,u.value),[`prevent`])},[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)([{"scale-92":(0,d.unref)(a)},`h-5 w-1 rounded-full bg-fg-disabled opacity-0 duration-150 group-hover/handle:opacity-100`])},null,2)],32)):(0,d.createCommentVNode)(``,!0)],2))}}),DO=(0,d.defineComponent)({__name:`TableHeader`,setup(e){let t=(0,h.useI18n)(),{isGroupingEnabled:n,actions:r,headerActions:i}=sO();return(e,a)=>((0,d.openBlock)(),(0,d.createBlock)(aO,{style:(0,d.normalizeStyle)({zIndex:(0,d.unref)(lO).HEADER}),class:(0,d.normalizeClass)([{"border-b border-secondary":!(0,d.unref)(n)},`sticky top-0`])},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`),(0,d.unref)(r).length>0||(0,d.unref)(i).length>0?((0,d.openBlock)(),(0,d.createBlock)(EO,{key:0,"column-index":0,"is-resizable":!1,label:null,"action-config":{actions:(0,d.unref)(i)??[],label:(0,d.unref)(t).t(`component.table.settings_label`),currentContextOnly:!1},"column-key":``,class:`sticky right-0 z-1 h-full`},null,8,[`action-config`])):(0,d.createCommentVNode)(``,!0)]),_:3},8,[`style`,`class`]))}}),OO=(0,d.defineComponent)({__name:`TableHiddenResultsWarning`,setup(e){let t=(0,h.useI18n)(),{activeFilterCountIncludingSearch:n,onClearFiltersAndSearch:r}=sO();return(e,i)=>(0,d.unref)(n)>0?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(R),{key:0,class:`p-xl`,justify:`center`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(G),{text:(0,d.unref)(t).t(`component.table.hidden_results_warning.message`,{count:(0,d.unref)(n)}),class:`text-xs text-tertiary`},null,8,[`text`]),(0,d.createVNode)((0,d.unref)(g_),{label:(0,d.unref)(t).t(`component.table.empty_state.no_results.clear_filters_label`),size:`sm`,variant:`secondary`,onClick:(0,d.unref)(r)},null,8,[`label`,`onClick`])]),_:1})):(0,d.createCommentVNode)(``,!0)}}),kO=W((0,d.defineComponent)({__name:`TableLoading`,setup(e){let{gridTemplateColumns:t}=sO(),n=[`60%`,`70%`,`65%`,`75%`,`60%`,`70%`];function r(e,t){return n[(e*3+t)%n.length]}return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)(aO,{style:(0,d.normalizeStyle)({gridTemplateColumns:(0,d.unref)(t)}),class:`z-10 grid w-full mask-b-to-transparent px-2xl`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(10,e=>(0,d.createVNode)(aO,{key:e,style:(0,d.normalizeStyle)({"--row-index":e-1}),class:`custom-skeleton-row py-lg`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(3,t=>(0,d.createVNode)((0,d.unref)(J),{key:t,style:(0,d.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`]]),AO={max:`auto`,min:`min-content`};function jO({max:e,min:t}){return e===`auto`?`minmax(${t}, auto)`:t===e?t:t===`min-content`?`fit-content(${e})`:`minmax(${t}, ${e})`}var MO=class{static columnSizesToGridTemplateColumns(e,t){let n=[...e.slice(0,-1),AO].map(jO).join(` `);return t?`${n} min-content`:n}};function NO(e,t){return`${e.map((e,n)=>n===t?`max-content`:`${e}px`).join(` `)} minmax(min-content, auto) min-content`}function PO(e,t,n,r,i){let a=(0,d.ref)(null),o=(0,d.ref)(null),s=(0,d.ref)(null),c=(0,d.ref)(null),l=(0,d.ref)(0),u=(0,d.ref)(0),m=(0,d.computed)(()=>c.value!==null),g=(0,d.computed)(()=>o.value===null?a.value??_():NO(o.value,s.value));function _(){return MO.columnSizesToGridTemplateColumns(e.value,!0)}(0,d.watch)([t,n,e],([e,t])=>{e===null||!t||b(e)});let v=0,y=(0,p.useDebounceFn)(e=>{b(e)},25);(0,p.useResizeObserver)(t,e=>{let n=e[0]?.borderBoxSize[0]?.inlineSize;n===void 0||n===v||(v=n,o.value===null&&t.value!==null&&y(t.value))},{box:`border-box`});async function b(e){a.value=null,await(0,d.nextTick)(),a.value=getComputedStyle(e).gridTemplateColumns}(0,d.watch)(()=>e.value.length,()=>{o.value=null,s.value=null,c.value=null});function x(t){return Array.from(t.parentElement?.children??[]).slice(0,e.value.length-1).map(e=>e.getBoundingClientRect().width)}function S(e,t,n){let r=x(n);o.value=r,c.value=e,l.value=t,u.value=r[e]}function C(e){if(c.value===null||o.value===null)return;let t=e.clientX-l.value,n=Math.max(50,u.value+t),r=[...o.value];r[c.value]=n,o.value=r}function w(){c.value=null}async function T(e,t){o.value===null&&(o.value=x(t)),s.value=e,await(0,d.nextTick)();let n=t.getBoundingClientRect().width,r=[...o.value];r[e]=n,o.value=r,s.value=null}function ee(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=>e.getBoundingClientRect().width);n.style.gridTemplateColumns=NO(i,null),o.value=i}document.addEventListener(`mousemove`,C),document.addEventListener(`mouseup`,w),(0,d.onBeforeUnmount)(()=>{document.removeEventListener(`mousemove`,C),document.removeEventListener(`mouseup`,w)});let te=(0,h.useI18n)();function E(){let n=t.value?.children[0];return n===void 0?[]:Array.from(n.children).slice(0,e.value.length-1)}let ne=(0,f.createAction)({id:`table-auto-fit-columns`,isApplicable:()=>!i.value,name:()=>te.t(`component.table.auto_fit_columns_action.name`),execute:()=>ee(E()),group:r.value??void 0,icon:()=>ar,keyboardShortcut:{key:`A`,shift:!0}});return(0,f.useTemporaryActions)(ne),{isResizing:m,autoFitColumnsAction:ne,fitColumnToContent:T,gridTemplateColumns:g,startColumnResize:S}}function FO(){let e=(0,d.ref)(!1),t=(0,d.ref)(!0),n=(0,d.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}),new ResizeObserver(()=>r(e)).observe(e)}return{isScrollableVertically:n,isScrolledFromLeft:e,isScrolledToEnd:t,setScrollContainer:i}}var IO=(0,d.defineComponent)({__name:`TableRoot`,props:{hasActiveSearch:{type:Boolean,default:!1},isInitialized:{type:Boolean},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,d.ref)(null),{isScrollableVertically:a,isScrolledFromLeft:o,isScrolledToEnd:s,setScrollContainer:c}=FO(),l=(0,d.ref)(0),u=(0,d.computed)(()=>l.value>0),f=(0,d.computed)(()=>i.value?.children[0]??null),{isResizing:m,autoFitColumnsAction:h,fitColumnToContent:g,gridTemplateColumns:_,startColumnResize:v}=PO((0,d.computed)(()=>n.columnSizes),f,(0,d.computed)(()=>n.isInitialized),(0,d.computed)(()=>n.actionGroup),(0,d.computed)(()=>n.disableColumnResize)),y=(0,d.computed)(()=>(n.activeFilterCount??0)+ +!!n.hasActiveSearch);function b(){l.value+=1}function x(){--l.value}function S(){r(`clearFiltersAndSearch`)}return(0,p.useInfiniteScroll)(i,()=>{n.onNextPage?.()},{offset:{bottom:400}}),oO({isColumnResizeDisabled:(0,d.computed)(()=>n.disableColumnResize),isGroupingEnabled:(0,d.computed)(()=>u.value),isResizingColumn:m,isScrollableVertically:(0,d.computed)(()=>a.value),isScrolledFromLeft:(0,d.computed)(()=>o.value),isScrolledToEnd:(0,d.computed)(()=>s.value),actions:(0,d.computed)(()=>n.actions),activeFilterCountIncludingSearch:y,gridTemplateColumns:_,headerActions:(0,d.computed)(()=>[...n.headerActions,h]),registerGroup:b,setScrollContainer:e=>{i.value=e,c(e)},sort:n.sort,unregisterGroup:x,variant:(0,d.computed)(()=>n.variant),onClearFiltersAndSearch:S,onColumnResizeFitToContent:g,onColumnResizeStart:v}),(e,t)=>(0,d.renderSlot)(e.$slots,`default`)}}),[LO,RO]=L(`tableScrollContainerContext`),zO=(0,d.defineComponent)({__name:`TableScrollContainer`,props:{disableScroll:{type:Boolean,default:!1}},setup(e){let t=e,{gridTemplateColumns:n,setScrollContainer:r,variant:i}=sO(),a=RO(null),o=(0,d.useTemplateRef)(`containerEl`);return(0,d.onMounted)(()=>{o.value!==null&&(r(o.value),a!==null&&(a.value=o.value))}),(e,r)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{ref_key:`containerEl`,ref:o,class:(0,d.normalizeClass)([{"rounded-xl border border-secondary":(0,d.unref)(i)===`contained`,"overflow-auto":!t.disableScroll},`max-h-full w-full contain-layout contain-paint outline-none`])},[(0,d.createElementVNode)(`div`,{style:(0,d.normalizeStyle)({gridTemplateColumns:(0,d.unref)(n)}),class:`grid`},[(0,d.renderSlot)(e.$slots,`default`)],4),(0,d.renderSlot)(e.$slots,`outside-grid`)],2))}});function BO(e,t){let n=(0,w.useVirtualizer)((0,d.computed)(()=>({count:e.value,estimateSize:()=>40,getScrollElement:()=>t.value,overscan:5}))),r=(0,d.computed)(()=>n.value.getVirtualItems()),i=(0,d.computed)(()=>n.value.getTotalSize()),a=(0,d.computed)(()=>r.value.at(0)?.start??0);return{paddingAfterPx:(0,d.computed)(()=>{let e=r.value.at(-1);return e==null?0:i.value-e.end}),paddingBeforePx:a,virtualItems:r}}var VO=(0,d.defineComponent)({__name:`Table`,props:{isFetchingNextPage:{type:Boolean},isLoading:{type:Boolean},columns:{},data:{},error:{},getActionModel:{},getKey:{},getLink:{type:[Function,null],default:null},groupHeaderCells:{},hasActiveSearch:{type:Boolean},actionGroup:{},actions:{},activeFilterCount:{default:0},disableColumnResize:{type:Boolean},headerActions:{},sort:{},variant:{},onNextPage:{}},emits:[`clearFilters`,`clearSearch`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),a=(0,d.shallowRef)(null);LO(a);let o=(0,d.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,d.computed)(()=>n.data),c=(0,d.computed)(()=>n.data),l=(0,d.computed)(()=>n.data),u=(0,d.computed)(()=>n.columns.map(e=>e.size??{max:`20rem`,min:`min-content`})),{paddingAfterPx:f,paddingBeforePx:p,virtualItems:m}=BO((0,d.computed)(()=>o.value===`flat`?s.value.length:0),a);(0,d.watch)(()=>n.data.length,(e,t)=>{e<t&&a.value?.scrollTo({top:0})});function g(){r(`clearFilters`),r(`clearSearch`)}return(t,r)=>((0,d.openBlock)(),(0,d.createBlock)(IO,{"column-sizes":u.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,"header-actions":n.headerActions,"action-group":n.actionGroup,"disable-column-resize":n.disableColumnResize,variant:n.variant,sort:n.sort,onClearFiltersAndSearch:g},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(zO,{"disable-scroll":n.data.length===0},{"outside-grid":(0,d.withCtx)(()=>[n.isLoading||n.isFetchingNextPage?((0,d.openBlock)(),(0,d.createBlock)(kO,{key:0})):(0,d.createCommentVNode)(``,!0),e.data.length>0?((0,d.openBlock)(),(0,d.createBlock)(OO,{key:1})):(0,d.createCommentVNode)(``,!0)]),default:(0,d.withCtx)(()=>[e.data.length>0||n.isLoading?((0,d.openBlock)(),(0,d.createBlock)(DO,{key:0},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.columns,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(EO,{key:e.key,"column-index":t,"is-resizable":t<n.columns.length-1,label:e.headerLabel,"center-content":e.centerHeaderContent??!1,"action-config":e.actionConfig,"column-key":e.key},null,8,[`column-index`,`is-resizable`,`label`,`center-content`,`action-config`,`column-key`]))),128))]),_:1})):(0,d.createCommentVNode)(``,!0),(0,d.createVNode)(cO,null,{default:(0,d.withCtx)(()=>[o.value===`flat`?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:0},[(0,d.unref)(p)>0?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:0,style:(0,d.normalizeStyle)({height:`${(0,d.unref)(p)}px`}),class:`col-span-full`},null,4)):(0,d.createCommentVNode)(``,!0),((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)((0,d.unref)(m),e=>((0,d.openBlock)(),(0,d.createBlock)(xO,{key:n.getKey(s.value[e.index]),"action-model":n.getActionModel?.(s.value[e.index]),link:n.getLink?.(s.value[e.index])??null},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.columns,t=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.component(s.value[e.index])),{key:t.key}))),128))]),_:2},1032,[`action-model`,`link`]))),128)),(0,d.unref)(f)>0?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:1,style:(0,d.normalizeStyle)({height:`${(0,d.unref)(f)}px`}),class:`col-span-full`},null,4)):(0,d.createCommentVNode)(``,!0)],64)):o.value===`with-sub-groups`?((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,{key:1},(0,d.renderList)(l.value,e=>((0,d.openBlock)(),(0,d.createBlock)(pO,{key:e.key,"default-open":e.defaultOpen,label:e.label},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.subGroups,e=>((0,d.openBlock)(),(0,d.createBlock)(wO,{key:e.key,"default-open":e.defaultOpen,label:e.label},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.items,e=>((0,d.openBlock)(),(0,d.createBlock)(xO,{key:n.getKey(e),"action-model":n.getActionModel?.(e),link:n.getLink?.(e)??null},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.columns,t=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.component(e)),{key:t.key}))),128))]),_:2},1032,[`action-model`,`link`]))),128))]),_:2},1032,[`default-open`,`label`]))),128))]),_:2},1032,[`default-open`,`label`]))),128)):((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,{key:2},(0,d.renderList)(c.value,e=>((0,d.openBlock)(),(0,d.createBlock)(pO,{key:e.key,"default-open":e.defaultOpen,label:e.label,"header-cells":n.groupHeaderCells?.(e)},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e.items,e=>((0,d.openBlock)(),(0,d.createBlock)(xO,{key:n.getKey(e),"action-model":n.getActionModel?.(e),link:n.getLink?.(e)??null},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(n.columns,t=>((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.component(e)),{key:t.key}))),128))]),_:2},1032,[`action-model`,`link`]))),128))]),_:2},1032,[`default-open`,`label`,`header-cells`]))),128))]),_:1})]),_:1},8,[`disable-scroll`]),n.error===null?n.data.length===0&&!n.isLoading?((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:1},[n.activeFilterCount>0||n.hasActiveSearch?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(WE),{key:0,"secondary-action":{type:`button`,label:(0,d.unref)(i).t(`component.table.empty_state.no_results.clear_filters_label`),onClick:g},title:(0,d.unref)(i).t(`component.table.empty_state.no_results.title`),description:(0,d.unref)(i).t(`component.table.empty_state.no_results.description`),illustration:`cloud-search`,class:`mx-auto h-full max-w-96 py-xl`},null,8,[`secondary-action`,`title`,`description`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(WE),{key:1,title:(0,d.unref)(i).t(`component.table.empty_state.no_data.title`),description:(0,d.unref)(i).t(`component.table.empty_state.no_data.description`),illustration:`cloud-search`,class:`mx-auto h-full max-w-96 py-xl`},null,8,[`title`,`description`]))],64)):(0,d.createCommentVNode)(``,!0):(0,d.renderSlot)(t.$slots,`error`,{key:0,error:n.error},()=>[(0,d.createVNode)((0,d.unref)(iO),{error:n.error},null,8,[`error`])])]),_:3},8,[`column-sizes`,`actions`,`active-filter-count`,`has-active-search`,`on-next-page`,`is-initialized`,`header-actions`,`action-group`,`disable-column-resize`,`variant`,`sort`]))}}),HO=(0,d.defineComponent)({__name:`TableBodyRowCellInteractiveElement`,setup(e){return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.Primitive),{"as-child":!0,class:`pointer-events-auto`},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3}))}}),UO=(0,d.defineComponent)({__name:`TableBodyRowCellText`,props:{isPrimaryCell:{type:Boolean,default:!1},text:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`span`,{class:(0,d.normalizeClass)([{"font-medium":t.isPrimaryCell},`truncate text-xs text-secondary`])},(0,d.toDisplayString)(t.text),3))}}),WO={},GO={class:`last-of-type:pr-2xl last-of-type:pl-xl`};function KO(e,t){return(0,d.openBlock)(),(0,d.createElementBlock)(`div`,GO,[(0,d.renderSlot)(e.$slots,`default`)])}var qO=W(WO,[[`render`,KO]]);function JO(){let e=(0,d.ref)(null),t=(0,d.ref)(null),n=(0,d.ref)(null),r=(0,d.ref)(0),i=(0,d.ref)(0),a=(0,d.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,d.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 f(){n.value!==null&&(n.value=null)}return document.addEventListener(`mousemove`,u),document.addEventListener(`mouseup`,f),(0,d.onBeforeUnmount)(()=>{document.removeEventListener(`mousemove`,u),document.removeEventListener(`mouseup`,f)}),{isResizingColumn:a,contentFitColumnIndex:t,fitAllColumnsToContent:c,fitColumnToContent:s,fixedWidths:e,resetWidths:l,startResize:o}}function YO(e,t,n){let r=(0,d.ref)(null);(0,d.watch)([n,t,e],([e,t])=>{e===null||!t||i(e)});async function i(e){r.value=null,await(0,d.nextTick)(),r.value=getComputedStyle(e).gridTemplateColumns}let a=0;return(0,p.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 XO(){return e=>e}var ZO=(0,d.defineComponent)({__name:`TableCustomizationDialog`,props:{columnStates:{}},emits:[`close`,`columnStatesChange`],setup(e,{emit:t}){let n=e,r=t,i=(0,h.useI18n)(),a=(0,d.ref)(n.columnStates),o=(0,d.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,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G_),{size:`xs`},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Z_),{title:(0,d.unref)(i).t(`component.table_customization.dialog.title`),description:(0,d.unref)(i).t(`component.table_customization.dialog.description`)},null,8,[`title`,`description`]),(0,d.createVNode)((0,d.unref)(kx),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.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,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(a.value,e=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{key:e.column.key,class:`flex cursor-default items-center gap-x-md py-xs`},[(0,d.createVNode)((0,d.unref)(hn),{class:`size-4 shrink-0 cursor-grab text-fg-disabled duration-150 active:scale-90`,"data-drag-handle":``}),(0,d.createVNode)((0,d.unref)(G),{text:e.column.headerLabel,class:(0,d.normalizeClass)([{"text-secondary":e.isVisible,"text-fg-disabled":!e.isVisible},`text-xs font-medium duration-150`])},null,8,[`text`,`class`]),(0,d.createVNode)((0,d.unref)(UC),{"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,d.createVNode)((0,d.unref)(K_),null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Y_),{label:(0,d.unref)(i).t(`component.table_customization.dialog.done`),onClick:l},null,8,[`label`])]),_:1})]),_:1}))}});function QO(e){let t=(0,h.useI18n)(),n=U_().create(ZO),r=(0,d.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,d.computed)(()=>r.value.filter(e=>e.isVisible).map(e=>e.column)),a=(0,f.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:()=>sn,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}}function $O(e){let t=(0,d.ref)(null),n=(0,d.ref)(!1),r=(0,d.ref)(!1),i=(0,d.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=e.getBoundingClientRect(),r=t.value.getBoundingClientRect();if(!(n.left<r.left||n.right>r.right))return;let i=n.left-r.left+t.value.scrollLeft-r.width/2+n.width/2;t.value.scrollTo({behavior:`smooth`,left:i})}let u=null;return(0,d.watch)(e.activeValue,()=>{(0,d.nextTick)(()=>{l()})}),(0,d.onMounted)(()=>{t.value!==null&&(o(),t.value.addEventListener(`scroll`,o),u=new ResizeObserver(o),u.observe(t.value))}),(0,d.onBeforeUnmount)(()=>{t.value!==null&&t.value.removeEventListener(`scroll`,o),u?.disconnect()}),{hasHorizontalOverflow:(0,d.computed)(()=>i.value),hasReachedHorizontalEnd:(0,d.computed)(()=>r.value),isScrolledHorizontally:(0,d.computed)(()=>n.value),scrollToActiveTab:l,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:a}}var[ek,tk]=L(`tabsContext`),nk=Ca({compoundVariants:[{isFullWidth:!0,class:{list:`w-auto`},variant:`button-border`}],slots:{base:`relative isolate overflow-hidden`,content:`outline-none`,dropdownIndicator:`absolute transition-opacity duration-200`,dropdownTrigger:`relative flex items-center justify-center`,indicator:`
|
|
947
935
|
absolute duration-200
|
|
948
936
|
group-data-[orientation=horizontal]:bottom-0
|
|
949
937
|
group-data-[orientation=horizontal]:w-(--reka-tabs-indicator-size)
|
|
@@ -963,7 +951,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
963
951
|
group-data-[orientation=horizontal]:h-full
|
|
964
952
|
group-data-[orientation=vertical]:w-full
|
|
965
953
|
`,indicatorInner:`
|
|
966
|
-
absolute inset-1 block rounded-sm bg-primary
|
|
954
|
+
absolute inset-1 block rounded-sm bg-primary shadow-sm outline-2
|
|
967
955
|
outline-transparent
|
|
968
956
|
group-has-focus-visible:outline-fg-brand-primary-alt
|
|
969
957
|
`,item:`
|
|
@@ -972,7 +960,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
972
960
|
data-[state=active]:text-secondary
|
|
973
961
|
data-[state=inactive]:text-quaternary
|
|
974
962
|
not-disabled:data-[state=inactive]:hover:text-tertiary
|
|
975
|
-
`,list:`relative w-fit gap-xs rounded-sm bg-tertiary`},"button-brand":{dropdownIndicator:`inset-0 rounded-sm bg-brand-primary-alt`,indicator:`
|
|
963
|
+
`,list:`relative w-fit gap-xs rounded-sm bg-tertiary/60`},"button-brand":{dropdownIndicator:`inset-0 rounded-sm bg-brand-primary-alt`,indicator:`
|
|
976
964
|
group-data-[orientation=horizontal]:h-full
|
|
977
965
|
group-data-[orientation=vertical]:w-full
|
|
978
966
|
`,indicatorInner:`block size-full rounded-sm bg-brand-primary-alt`,item:`
|
|
@@ -1006,13 +994,13 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
1006
994
|
border-secondary
|
|
1007
995
|
data-[orientation=horizontal]:border-b
|
|
1008
996
|
data-[orientation=vertical]:border-l
|
|
1009
|
-
`}}}});function nk(e){let t=0;function n(){return t++}let r=(0,d.shallowRef)([]),i=(0,d.computed)(()=>r.value.find(t=>t.value===e.value)??null);function a(e){let t=n();return r.value=[...r.value,{...e,priority:t}],t}function o(e){r.value=r.value.filter(t=>t.value!==e)}return{activeTab:i,registerTab:a,tabs:r,unregisterTab:o}}function rk(){return`ontouchstart`in window||navigator.maxTouchPoints>0}var ik=(0,d.defineComponent)({__name:`Tabs`,props:(0,d.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=rk(),r=(0,d.useModel)(e,`modelValue`),{hasHorizontalOverflow:i,hasReachedHorizontalEnd:a,isScrolledHorizontally:o,scrollToActiveTab:s,scrollToLeft:c,scrollToRight:l,setScrollContainerRef:u}=QO({activeValue:(0,d.computed)(()=>r.value)}),f=(0,d.ref)(null);function p(e){f.value=e}function h(){return f.value}let g=(0,d.computed)(()=>tk({isFullWidth:t.isFullWidth,underlineTabsHorizontalListPadding:t.underlineTabsHorizontalListPadding,variant:t.variant}));(0,d.onMounted)(()=>{s()});let{activeTab:_,registerTab:v,tabs:y,unregisterTab:b}=nk((0,d.computed)(()=>r.value));return $O({...vr(t),hasHorizontalOverflow:i,hasReachedHorizontalEnd:a,isScrolledHorizontally:o,isTouchDevice:n,activeTab:_,getAdaptiveDropdownRef:h,registerTab:v,scrollToLeft:c,scrollToRight:l,setAdaptiveDropdownRef:p,setScrollContainerRef:u,tabs:y,unregisterTab:b,variants:g}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsRoot),{modelValue:r.value,"onUpdate:modelValue":n[0]||=e=>r.value=e,orientation:t.orientation},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`orientation`]))}}),ak=(0,d.defineComponent)({__name:`TabsContent`,props:{value:{}},setup(e){let t=e,{variants:n}=ek();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsContent),{value:t.value,class:(0,d.normalizeClass)((0,d.unref)(n).content())},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`value`,`class`]))}}),ok=(0,d.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,{isTouchDevice:n,registerTab:r,unregisterTab:i,variants:a}=ek(),o=r({...t});return(0,d.onMounted)(()=>{}),(0,d.onBeforeUnmount)(()=>{i(t.value)}),(e,r)=>(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(K),{key:1,"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.TabsTrigger),{value:t.value,disabled:t.isDisabled,class:(0,d.normalizeClass)((0,d.unref)(a).item())},{default:(0,d.withCtx)(()=>[t.icon==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:(0,d.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),t.count==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(hD),{key:1,value:t.count.toString(),size:`md`},null,8,[`value`]))]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`is-disabled`,`label`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(K),{key:0,"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Xo),{priority:(0,d.unref)(o)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.TabsTrigger),{value:t.value,disabled:t.isDisabled,class:(0,d.normalizeClass)((0,d.unref)(a).item())},{default:(0,d.withCtx)(()=>[t.icon==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:(0,d.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),t.count==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(hD),{key:1,value:t.count.toString(),size:`md`},null,8,[`value`]))]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`priority`])]),_:1},8,[`is-disabled`,`label`]))}}),sk=(0,d.defineComponent)({__name:`TabsAdaptiveContentDropdownTriggerButton`,props:{activeButtonClasses:{},icon:{},label:{}},setup(e){let t=e;return(n,r)=>((0,d.openBlock)(),(0,d.createBlock)($,null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,{class:(0,d.normalizeClass)([[e.activeButtonClasses],`relative z-10 flex items-center gap-sm rounded-md px-md py-xs text-xs font-semibold duration-200`])},[t.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,d.createTextVNode)(` `+(0,d.toDisplayString)(t.label)+` `,1),(0,d.createVNode)((0,d.unref)(Jt),{class:`size-4`})],2)]),_:1}))}}),ck=(0,d.defineComponent)({__name:`TabsAdaptiveContentDropdown`,props:{hiddenTabsCount:{},tabs:{}},setup(e){let t=e,n=(0,h.useI18n)(),r=(0,d.ref)(null),i=(0,d.computed)(()=>[...t.tabs].slice(-t.hiddenTabsCount)),{activeTab:a,setAdaptiveDropdownRef:o,variant:s,variants:c}=ek(),{scheduleLayoutEvaluation:l}=Jo(),u=(0,d.computed)(()=>i.value.some(e=>e.value===a.value?.value)),f=(0,d.computed)(()=>u.value?a.value?.label??n.t(`component.tabs.adaptive_dropdown.trigger.label`):n.t(`component.tabs.adaptive_dropdown.trigger.label`)),p=(0,d.computed)(()=>u.value?a.value?.icon??null:null),g=(0,d.computed)(()=>({"bg-brand-primary text-brand-secondary":u.value&&s.value!==`button-border`,"text-quaternary":!u.value,"text-secondary":u.value&&s.value===`button-border`})),_=(0,m.injectTabsRootContext)();function v(e){_.changeModelValue(e)}return(0,d.watch)(a,()=>{l()}),(0,d.watch)(()=>t.hiddenTabsCount,()=>{if(t.hiddenTabsCount===0){o(null);return}o(r.value)}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Ar,{"popover-align":`end`},{trigger:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref_key:`adaptiveDropdownRef`,ref:r,class:(0,d.normalizeClass)((0,d.unref)(c).dropdownTrigger())},[(0,d.createVNode)(sk,{"active-button-classes":g.value,label:f.value,icon:p.value},null,8,[`active-button-classes`,`label`,`icon`])],2)]),content:(0,d.withCtx)(()=>[(0,d.createVNode)(q,{align:`center`,class:`w-full p-md`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(i.value,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DropdownMenuItem),{key:e.value,disabled:e.isDisabled,class:(0,d.normalizeClass)([(0,d.unref)(c).item({variant:`underline`}),`w-full`]),onSelect:()=>v(e.value)},{default:(0,d.withCtx)(()=>[e.icon==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.icon),{key:0,class:`size-4 shrink-0`})),e.label==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:1,text:e.label,class:`text-xs`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(e.label),1)]),_:2},1032,[`text`])),e.count==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(hD),{key:2,value:e.count.toString(),size:`md`},null,8,[`value`]))]),_:2},1032,[`disabled`,`class`,`onSelect`]))),128))]),_:1})]),_:1}))}}),lk=(0,d.defineComponent)({__name:`TabsIndicator`,props:{hiddenTabsCount:{},tabs:{}},setup(e){let t=e,{activeTab:n,getAdaptiveDropdownRef:r,variants:i}=ek(),a=(0,d.ref)(null),o=(0,d.computed)(()=>[...t.tabs].slice(-t.hiddenTabsCount)),s=(0,d.computed)(()=>o.value.some(e=>e.value===n.value?.value)),c=null,l=!1;function u(e){let t=r();t&&(l=!0,e.style.setProperty(`--reka-tabs-indicator-position`,`${t.offsetLeft}px`),e.style.setProperty(`--reka-tabs-indicator-size`,`${t.offsetWidth}px`),l=!1)}function f(){c?.disconnect(),c=null}return(0,d.watch)(s,e=>{e||f()}),(0,d.watch)(n,()=>{if(f(),t.hiddenTabsCount>0&&s.value){let e=a.value?.$el;if(!e)return;c=new MutationObserver(()=>{l||u(e)}),c.observe(e,{attributeFilter:[`style`],attributes:!0}),u(e)}}),(0,d.onBeforeUnmount)(()=>{f()}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsIndicator),{ref_key:`indicatorRef`,ref:a,class:(0,d.normalizeClass)((0,d.unref)(i).indicator())},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)((0,d.unref)(i).indicatorInner())},null,2)]),_:1},8,[`class`]))}}),uk={key:0,class:`absolute top-0 left-0 z-20 flex h-full items-center bg-linear-to-r from-primary to-transparent`},dk=[`aria-label`],fk=[`data-orientation`],pk={class:`h-full`},mk={key:1,class:`absolute top-0 right-0 z-20 flex h-full items-center bg-linear-to-l from-primary to-transparent`},hk=[`aria-label`],gk=(0,d.defineComponent)({__name:`TabsList`,setup(e){let t=(0,h.useI18n)(),n=(0,d.ref)(null),{hasHorizontalOverflow:r,hasReachedHorizontalEnd:i,isScrolledHorizontally:a,isTouchDevice:o,orientation:s,scrollToLeft:c,scrollToRight:l,setScrollContainerRef:u,tabs:f,variants:p}=ek();return(0,d.onMounted)(()=>{if(n.value===null)throw Error(`scrollContainerRef is null`);u(n.value)}),(e,u)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)((0,d.unref)(p).base())},[(0,d.unref)(o)&&(0,d.unref)(a)&&(0,d.unref)(r)&&(0,d.unref)(s)===`horizontal`?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,uk,[(0,d.createElementVNode)(`button`,{"aria-label":(0,d.unref)(t).t(`component.tabs.scroll_left`),class:`flex size-7 items-center justify-center rounded-md bg-primary text-secondary hover:bg-primary-hover`,tabindex:`-1`,type:`button`,onClick:u[0]||=(...e)=>(0,d.unref)(c)&&(0,d.unref)(c)(...e)},[...u[2]||=[(0,d.createElementVNode)(`svg`,{"aria-hidden":`true`,class:`size-4`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[(0,d.createElementVNode)(`path`,{d:`m15 18-6-6 6-6`})],-1)]],8,dk)])):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,{ref_key:`scrollContainerRef`,ref:n,class:(0,d.normalizeClass)((0,d.unref)(p).scrollContainer()),"data-orientation":(0,d.unref)(s)},[(0,d.unref)(o)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsList),{key:1,class:(0,d.normalizeClass)((0,d.unref)(p).list())},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`),(0,d.createVNode)((0,d.unref)(m.TabsIndicator),{class:(0,d.normalizeClass)((0,d.unref)(p).indicator())},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)((0,d.unref)(p).indicatorInner())},null,2)]),_:1},8,[`class`])]),_:3},8,[`class`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Yo),{key:0},{default:(0,d.withCtx)(({hiddenBlockCount:t})=>[(0,d.createElementVNode)(`div`,pk,[(0,d.createVNode)((0,d.unref)(m.TabsList),{class:(0,d.normalizeClass)((0,d.unref)(p).list())},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`),(0,d.createVNode)(lk,{"hidden-tabs-count":t,tabs:(0,d.unref)(f)},null,8,[`hidden-tabs-count`,`tabs`]),t>0?((0,d.openBlock)(),(0,d.createBlock)(ck,{key:0,"hidden-tabs-count":t,tabs:(0,d.unref)(f)},null,8,[`hidden-tabs-count`,`tabs`])):(0,d.createCommentVNode)(``,!0)]),_:2},1032,[`class`])])]),_:3}))],10,fk),(0,d.unref)(o)&&!(0,d.unref)(i)&&(0,d.unref)(r)&&(0,d.unref)(s)===`horizontal`?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,mk,[(0,d.createElementVNode)(`button`,{"aria-label":(0,d.unref)(t).t(`component.tabs.scroll_right`),class:`flex size-7 items-center justify-center rounded-md bg-primary text-secondary hover:bg-primary-hover`,tabindex:`-1`,type:`button`,onClick:u[1]||=(...e)=>(0,d.unref)(l)&&(0,d.unref)(l)(...e)},[...u[3]||=[(0,d.createElementVNode)(`svg`,{"aria-hidden":`true`,class:`size-4`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[(0,d.createElementVNode)(`path`,{d:`m9 18 6-6-6-6`})],-1)]],8,hk)])):(0,d.createCommentVNode)(``,!0)],2))}}),_k=(0,d.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,d.computed)(()=>n.name),a=rk();function o(e){e!==i.value&&r.replace({name:e})}let{hasHorizontalOverflow:s,hasReachedHorizontalEnd:c,isScrolledHorizontally:l,scrollToActiveTab:u,scrollToLeft:f,scrollToRight:p,setScrollContainerRef:h}=QO({activeValue:i}),g=(0,d.computed)(()=>tk({isFullWidth:t.isFullWidth,underlineTabsHorizontalListPadding:t.underlineTabsHorizontalListPadding,variant:t.variant}));(0,d.onMounted)(()=>{u()});let{activeTab:_,registerTab:v,tabs:b,unregisterTab:x}=nk(i),S=(0,d.ref)(null);function C(e){S.value=e}function w(){return S.value}return $O({isTouchDevice:a,...vr(t),hasHorizontalOverflow:s,hasReachedHorizontalEnd:c,isScrolledHorizontally:l,activeTab:_,getAdaptiveDropdownRef:w,registerTab:v,scrollToLeft:f,scrollToRight:p,setAdaptiveDropdownRef:C,setScrollContainerRef:h,tabs:b,unregisterTab:x,variants:g}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsRoot),{"model-value":i.value,orientation:t.orientation,"onUpdate:modelValue":o},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(gk,null,{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`model-value`,`orientation`]))}}),vk=(0,d.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,{isTouchDevice:n,registerTab:r,unregisterTab:i,variants:a}=ek(),o=(0,y.useRouter)(),s=(0,d.computed)(()=>o.resolve(t.to).name),c=r({...t,isDisabled:t.isDisabled,icon:t.icon,value:s.value});return(0,d.onBeforeUnmount)(()=>{i(s.value)}),(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(K),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)((0,d.unref)(n)?`div`:(0,d.unref)(Xo)),{priority:(0,d.unref)(c)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.TabsTrigger),{value:s.value,disabled:t.isDisabled,"as-child":!0,class:(0,d.normalizeClass)((0,d.unref)(a).item())},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(y.RouterLink),{to:t.to,replace:!0},{default:(0,d.withCtx)(()=>[t.icon==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:(0,d.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),t.count==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(hD),{key:1,value:t.count.toString(),size:`md`},null,8,[`value`]))]),_:1},8,[`to`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`priority`]))]),_:1},8,[`is-disabled`,`label`]))}}),yk=U({slots:{input:`
|
|
997
|
+
`}}}});function rk(e){let t=0;function n(){return t++}let r=(0,d.shallowRef)([]),i=(0,d.computed)(()=>r.value.find(t=>t.value===e.value)??null);function a(e){let t=n();return r.value=[...r.value,{...e,priority:t}],t}function o(e){r.value=r.value.filter(t=>t.value!==e)}return{activeTab:i,registerTab:a,tabs:r,unregisterTab:o}}function ik(){return`ontouchstart`in window||navigator.maxTouchPoints>0}var ak=(0,d.defineComponent)({__name:`Tabs`,props:(0,d.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=ik(),r=(0,d.useModel)(e,`modelValue`),{hasHorizontalOverflow:i,hasReachedHorizontalEnd:a,isScrolledHorizontally:o,scrollToActiveTab:s,scrollToLeft:c,scrollToRight:l,setScrollContainerRef:u}=$O({activeValue:(0,d.computed)(()=>r.value)}),f=(0,d.ref)(null);function p(e){f.value=e}function h(){return f.value}let g=(0,d.computed)(()=>nk({isFullWidth:t.isFullWidth,underlineTabsHorizontalListPadding:t.underlineTabsHorizontalListPadding,variant:t.variant}));(0,d.onMounted)(()=>{s()});let{activeTab:_,registerTab:v,tabs:y,unregisterTab:b}=rk((0,d.computed)(()=>r.value));return ek({...vr(t),hasHorizontalOverflow:i,hasReachedHorizontalEnd:a,isScrolledHorizontally:o,isTouchDevice:n,activeTab:_,getAdaptiveDropdownRef:h,registerTab:v,scrollToLeft:c,scrollToRight:l,setAdaptiveDropdownRef:p,setScrollContainerRef:u,tabs:y,unregisterTab:b,variants:g}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsRoot),{modelValue:r.value,"onUpdate:modelValue":n[0]||=e=>r.value=e,orientation:t.orientation},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`orientation`]))}}),ok=(0,d.defineComponent)({__name:`TabsContent`,props:{value:{}},setup(e){let t=e,{variants:n}=tk();return(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsContent),{value:t.value,class:(0,d.normalizeClass)((0,d.unref)(n).content())},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3},8,[`value`,`class`]))}}),sk=(0,d.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,{isTouchDevice:n,registerTab:r,unregisterTab:i,variants:a}=tk(),o=r({...t});return(0,d.onMounted)(()=>{}),(0,d.onBeforeUnmount)(()=>{i(t.value)}),(e,r)=>(0,d.unref)(n)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(K),{key:1,"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.TabsTrigger),{value:t.value,disabled:t.isDisabled,class:(0,d.normalizeClass)((0,d.unref)(a).item())},{default:(0,d.withCtx)(()=>[t.icon==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:(0,d.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),t.count==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(gD),{key:1,value:t.count.toString(),size:`md`},null,8,[`value`]))]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`is-disabled`,`label`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(K),{key:0,"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(Xo),{priority:(0,d.unref)(o)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.TabsTrigger),{value:t.value,disabled:t.isDisabled,class:(0,d.normalizeClass)((0,d.unref)(a).item())},{default:(0,d.withCtx)(()=>[t.icon==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:(0,d.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),t.count==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(gD),{key:1,value:t.count.toString(),size:`md`},null,8,[`value`]))]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`priority`])]),_:1},8,[`is-disabled`,`label`]))}}),ck=(0,d.defineComponent)({__name:`TabsAdaptiveContentDropdownTriggerButton`,props:{activeButtonClasses:{},icon:{},label:{}},setup(e){let t=e;return(n,r)=>((0,d.openBlock)(),(0,d.createBlock)($,null,{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`button`,{class:(0,d.normalizeClass)([[e.activeButtonClasses],`relative z-10 flex items-center gap-sm rounded-md px-md py-xs text-xs font-semibold duration-200`])},[t.icon===null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,d.createTextVNode)(` `+(0,d.toDisplayString)(t.label)+` `,1),(0,d.createVNode)((0,d.unref)(Jt),{class:`size-4`})],2)]),_:1}))}}),lk=(0,d.defineComponent)({__name:`TabsAdaptiveContentDropdown`,props:{hiddenTabsCount:{},tabs:{}},setup(e){let t=e,n=(0,h.useI18n)(),r=(0,d.ref)(null),i=(0,d.computed)(()=>[...t.tabs].slice(-t.hiddenTabsCount)),{activeTab:a,setAdaptiveDropdownRef:o,variant:s,variants:c}=tk(),{scheduleLayoutEvaluation:l}=Jo(),u=(0,d.computed)(()=>i.value.some(e=>e.value===a.value?.value)),f=(0,d.computed)(()=>u.value?a.value?.label??n.t(`component.tabs.adaptive_dropdown.trigger.label`):n.t(`component.tabs.adaptive_dropdown.trigger.label`)),p=(0,d.computed)(()=>u.value?a.value?.icon??null:null),g=(0,d.computed)(()=>({"bg-brand-primary text-brand-secondary":u.value&&s.value!==`button-border`,"text-quaternary":!u.value,"text-secondary":u.value&&s.value===`button-border`})),_=(0,m.injectTabsRootContext)();function v(e){_.changeModelValue(e)}return(0,d.watch)(a,()=>{l()}),(0,d.watch)(()=>t.hiddenTabsCount,()=>{if(t.hiddenTabsCount===0){o(null);return}o(r.value)}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Ar,{"popover-align":`end`},{trigger:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{ref_key:`adaptiveDropdownRef`,ref:r,class:(0,d.normalizeClass)((0,d.unref)(c).dropdownTrigger())},[(0,d.createVNode)(ck,{"active-button-classes":g.value,label:f.value,icon:p.value},null,8,[`active-button-classes`,`label`,`icon`])],2)]),content:(0,d.withCtx)(()=>[(0,d.createVNode)(q,{align:`center`,class:`w-full p-md`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(i.value,e=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.DropdownMenuItem),{key:e.value,disabled:e.isDisabled,class:(0,d.normalizeClass)([(0,d.unref)(c).item({variant:`underline`}),`w-full`]),onSelect:()=>v(e.value)},{default:(0,d.withCtx)(()=>[e.icon==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.icon),{key:0,class:`size-4 shrink-0`})),e.label==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(G),{key:1,text:e.label,class:`text-xs`},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(e.label),1)]),_:2},1032,[`text`])),e.count==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(gD),{key:2,value:e.count.toString(),size:`md`},null,8,[`value`]))]),_:2},1032,[`disabled`,`class`,`onSelect`]))),128))]),_:1})]),_:1}))}}),uk=(0,d.defineComponent)({__name:`TabsIndicator`,props:{hiddenTabsCount:{},tabs:{}},setup(e){let t=e,{activeTab:n,getAdaptiveDropdownRef:r,variants:i}=tk(),a=(0,d.ref)(null),o=(0,d.computed)(()=>[...t.tabs].slice(-t.hiddenTabsCount)),s=(0,d.computed)(()=>o.value.some(e=>e.value===n.value?.value)),c=null,l=!1;function u(e){let t=r();t&&(l=!0,e.style.setProperty(`--reka-tabs-indicator-position`,`${t.offsetLeft}px`),e.style.setProperty(`--reka-tabs-indicator-size`,`${t.offsetWidth}px`),l=!1)}function f(){c?.disconnect(),c=null}return(0,d.watch)(s,e=>{e||f()}),(0,d.watch)(n,()=>{if(f(),t.hiddenTabsCount>0&&s.value){let e=a.value?.$el;if(!e)return;c=new MutationObserver(()=>{l||u(e)}),c.observe(e,{attributeFilter:[`style`],attributes:!0}),u(e)}}),(0,d.onBeforeUnmount)(()=>{f()}),(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsIndicator),{ref_key:`indicatorRef`,ref:a,class:(0,d.normalizeClass)((0,d.unref)(i).indicator())},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)((0,d.unref)(i).indicatorInner())},null,2)]),_:1},8,[`class`]))}}),dk={key:0,class:`absolute top-0 left-0 z-20 flex h-full items-center bg-linear-to-r from-primary to-transparent`},fk=[`aria-label`],pk=[`data-orientation`],mk={class:`h-full`},hk={key:1,class:`absolute top-0 right-0 z-20 flex h-full items-center bg-linear-to-l from-primary to-transparent`},gk=[`aria-label`],_k=(0,d.defineComponent)({__name:`TabsList`,setup(e){let t=(0,h.useI18n)(),n=(0,d.ref)(null),{hasHorizontalOverflow:r,hasReachedHorizontalEnd:i,isScrolledHorizontally:a,isTouchDevice:o,orientation:s,scrollToLeft:c,scrollToRight:l,setScrollContainerRef:u,tabs:f,variants:p}=tk();return(0,d.onMounted)(()=>{if(n.value===null)throw Error(`scrollContainerRef is null`);u(n.value)}),(e,u)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)((0,d.unref)(p).base())},[(0,d.unref)(o)&&(0,d.unref)(a)&&(0,d.unref)(r)&&(0,d.unref)(s)===`horizontal`?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,dk,[(0,d.createElementVNode)(`button`,{"aria-label":(0,d.unref)(t).t(`component.tabs.scroll_left`),class:`flex size-7 items-center justify-center rounded-md bg-primary text-secondary hover:bg-primary-hover`,tabindex:`-1`,type:`button`,onClick:u[0]||=(...e)=>(0,d.unref)(c)&&(0,d.unref)(c)(...e)},[...u[2]||=[(0,d.createElementVNode)(`svg`,{"aria-hidden":`true`,class:`size-4`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[(0,d.createElementVNode)(`path`,{d:`m15 18-6-6 6-6`})],-1)]],8,fk)])):(0,d.createCommentVNode)(``,!0),(0,d.createElementVNode)(`div`,{ref_key:`scrollContainerRef`,ref:n,class:(0,d.normalizeClass)((0,d.unref)(p).scrollContainer()),"data-orientation":(0,d.unref)(s)},[(0,d.unref)(o)?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsList),{key:1,class:(0,d.normalizeClass)((0,d.unref)(p).list())},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`),(0,d.createVNode)((0,d.unref)(m.TabsIndicator),{class:(0,d.normalizeClass)((0,d.unref)(p).indicator())},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)((0,d.unref)(p).indicatorInner())},null,2)]),_:1},8,[`class`])]),_:3},8,[`class`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(Yo),{key:0},{default:(0,d.withCtx)(({hiddenBlockCount:t})=>[(0,d.createElementVNode)(`div`,mk,[(0,d.createVNode)((0,d.unref)(m.TabsList),{class:(0,d.normalizeClass)((0,d.unref)(p).list())},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`),(0,d.createVNode)(uk,{"hidden-tabs-count":t,tabs:(0,d.unref)(f)},null,8,[`hidden-tabs-count`,`tabs`]),t>0?((0,d.openBlock)(),(0,d.createBlock)(lk,{key:0,"hidden-tabs-count":t,tabs:(0,d.unref)(f)},null,8,[`hidden-tabs-count`,`tabs`])):(0,d.createCommentVNode)(``,!0)]),_:2},1032,[`class`])])]),_:3}))],10,pk),(0,d.unref)(o)&&!(0,d.unref)(i)&&(0,d.unref)(r)&&(0,d.unref)(s)===`horizontal`?((0,d.openBlock)(),(0,d.createElementBlock)(`div`,hk,[(0,d.createElementVNode)(`button`,{"aria-label":(0,d.unref)(t).t(`component.tabs.scroll_right`),class:`flex size-7 items-center justify-center rounded-md bg-primary text-secondary hover:bg-primary-hover`,tabindex:`-1`,type:`button`,onClick:u[1]||=(...e)=>(0,d.unref)(l)&&(0,d.unref)(l)(...e)},[...u[3]||=[(0,d.createElementVNode)(`svg`,{"aria-hidden":`true`,class:`size-4`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[(0,d.createElementVNode)(`path`,{d:`m9 18 6-6-6-6`})],-1)]],8,gk)])):(0,d.createCommentVNode)(``,!0)],2))}}),vk=(0,d.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,d.computed)(()=>n.name),a=ik();function o(e){e!==i.value&&r.replace({name:e})}let{hasHorizontalOverflow:s,hasReachedHorizontalEnd:c,isScrolledHorizontally:l,scrollToActiveTab:u,scrollToLeft:f,scrollToRight:p,setScrollContainerRef:h}=$O({activeValue:i}),g=(0,d.computed)(()=>nk({isFullWidth:t.isFullWidth,underlineTabsHorizontalListPadding:t.underlineTabsHorizontalListPadding,variant:t.variant}));(0,d.onMounted)(()=>{u()});let{activeTab:_,registerTab:v,tabs:b,unregisterTab:x}=rk(i),S=(0,d.ref)(null);function C(e){S.value=e}function w(){return S.value}return ek({isTouchDevice:a,...vr(t),hasHorizontalOverflow:s,hasReachedHorizontalEnd:c,isScrolledHorizontally:l,activeTab:_,getAdaptiveDropdownRef:w,registerTab:v,scrollToLeft:f,scrollToRight:p,setAdaptiveDropdownRef:C,setScrollContainerRef:h,tabs:b,unregisterTab:x,variants:g}),(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TabsRoot),{"model-value":i.value,orientation:t.orientation,"onUpdate:modelValue":o},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(_k,null,{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`model-value`,`orientation`]))}}),yk=(0,d.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,{isTouchDevice:n,registerTab:r,unregisterTab:i,variants:a}=tk(),o=(0,y.useRouter)(),s=(0,d.computed)(()=>o.resolve(t.to).name),c=r({...t,isDisabled:t.isDisabled,icon:t.icon,value:s.value});return(0,d.onBeforeUnmount)(()=>{i(s.value)}),(e,r)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(K),{"is-disabled":t.disabledReason==null,label:t.disabledReason},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)((0,d.unref)(n)?`div`:(0,d.unref)(Xo)),{priority:(0,d.unref)(c)},{default:(0,d.withCtx)(()=>[(0,d.createVNode)($,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.TabsTrigger),{value:s.value,disabled:t.isDisabled,"as-child":!0,class:(0,d.normalizeClass)((0,d.unref)(a).item())},{default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(y.RouterLink),{to:t.to,replace:!0},{default:(0,d.withCtx)(()=>[t.icon==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:`size-4 shrink-0`})),(0,d.createVNode)((0,d.unref)(G),{text:t.label,class:(0,d.normalizeClass)([{"sr-only":t.isLabelHidden},`text-xs`])},null,8,[`text`,`class`]),t.count==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(gD),{key:1,value:t.count.toString(),size:`md`},null,8,[`value`]))]),_:1},8,[`to`])]),_:1},8,[`value`,`disabled`,`class`])]),_:1})]),_:1},8,[`priority`]))]),_:1},8,[`is-disabled`,`label`]))}}),bk=U({slots:{input:`
|
|
1010
998
|
h-5 min-w-20 flex-1 bg-transparent text-xs text-primary outline-none
|
|
1011
999
|
placeholder:text-placeholder
|
|
1012
1000
|
read-only:cursor-default
|
|
1013
1001
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
1014
1002
|
disabled:placeholder:text-fg-disabled-subtle
|
|
1015
|
-
`},variants:{size:{md:{input:`px-xs`},sm:{input:`px-xs`}}}}),
|
|
1003
|
+
`},variants:{size:{md:{input:`px-xs`},sm:{input:`px-xs`}}}}),xk=(0,d.defineComponent)({__name:`TagsFieldTag`,props:{isDisabled:{type:Boolean},isReadonly:{type:Boolean},value:{}},setup(e){let t=e;return(e,n)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.TagsInputItemText),{class:`max-w-xs truncate text-xxs font-medium text-gray-700 dark:text-gray-300`}),!t.isDisabled&&!t.isReadonly?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.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,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(_r),{class:`size-3`})]),_:1})):(0,d.createCommentVNode)(``,!0)]),_:1},8,[`value`]))}}),Sk=(0,d.defineComponent)({inheritAttrs:!1,__name:`TagsField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({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:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...wv,...Tv,...Ov(Ev,`iconRight`),addOnBlur:!1,addOnPaste:!0,addOnTab:!1,allowDuplicate:!1,delimiter:`,`,max:null,size:`md`}),{modelValue:{required:!0},modelModifiers:{}}),emits:(0,d.mergeModels)([`blur`,`focus`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=(0,d.useModel)(e,`modelValue`),a=n.id??(0,d.useId)(),o=(0,d.useAttrs)(),s=(0,d.computed)(()=>bk({size:n.size})),{isError:c,ariaBusy:l,ariaDescribedBy:u,ariaInvalid:f,ariaRequired:p}=Sv(a,n);return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":n.errorMessage,"is-disabled":n.isDisabled,"is-required":n.isRequired,"disabled-reason":n.disabledReason,hint:n.hint,label:n.label,class:(0,d.normalizeClass)(n.class),style:(0,d.normalizeStyle)(n.style),for:(0,d.unref)(a),"help-text":n.helpText,"hide-error-message":n.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)(Hv,{"is-error":(0,d.unref)(c),"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,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`left`)]),right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.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":n.addOnBlur,"add-on-paste":n.addOnPaste,"add-on-tab":n.addOnTab,delimiter:n.delimiter,"allow-duplicate":n.allowDuplicate,class:`contents`},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(i.value,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(xk,{key:t,value:e,"is-disabled":n.isDisabled,"is-readonly":n.isReadonly},null,8,[`value`,`is-disabled`,`is-readonly`]))),128)),(0,d.createVNode)((0,d.unref)(m.TagsInputInput),(0,d.mergeProps)((0,d.unref)(o),{id:(0,d.unref)(a),disabled:n.isDisabled,readonly:n.isReadonly,placeholder:i.value.length===0?n.placeholder??void 0:void 0,"aria-describedby":(0,d.unref)(u),"aria-required":(0,d.unref)(p),"aria-busy":(0,d.unref)(l),"aria-invalid":(0,d.unref)(f),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`]))}}),Ck=U({slots:{root:`
|
|
1016
1004
|
group/textarea-field inline-flex w-full flex-col overflow-hidden
|
|
1017
1005
|
rounded-md border border-secondary bg-primary shadow-xs outline
|
|
1018
1006
|
outline-transparent duration-100
|
|
@@ -1029,7 +1017,7 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
1029
1017
|
read-only:cursor-default
|
|
1030
1018
|
disabled:cursor-not-allowed disabled:text-disabled
|
|
1031
1019
|
disabled:placeholder:text-fg-disabled-subtle
|
|
1032
|
-
`},variants:{resize:{"auto-vertical":{textarea:`resize-none`},none:{textarea:`resize-none`},vertical:{textarea:`resize-y`}}}}),
|
|
1020
|
+
`},variants:{resize:{"auto-vertical":{textarea:`resize-none`},none:{textarea:`resize-none`},vertical:{textarea:`resize-y`}}}}),wk=[`data-error`,`data-disabled`,`data-interactive`],Tk=[`id`,`value`,`aria-describedby`,`autocomplete`,`name`,`aria-required`,`readonly`,`aria-invalid`,`disabled`,`maxlength`,`placeholder`,`spellcheck`],Ek=(0,d.defineComponent)({inheritAttrs:!1,__name:`TextareaField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({isSpellCheckEnabled:{type:Boolean},maxHeight:{},maxLength:{},minHeight:{},placeholder:{},resize:{},isDisabled:{type:Boolean},disabledReason:{},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},autocomplete:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{}},{...wv,...Tv,...Dv,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,d.useModel)(e,`modelValue`),r=(0,d.computed)(()=>Ck({resize:t.resize})),i=(0,d.useTemplateRef)(`textarea`),a=(0,d.useAttrs)(),o=t.id??(0,d.useId)(),s=(0,d.computed)(()=>t.maxLength==null?null:`${n.value?.length??0}/${t.maxLength}`),c=(0,d.computed)(()=>s.value??t.hint),{isError:l,ariaDescribedBy:u,ariaInvalid:f,ariaRequired:p}=Sv(o,t),m=(0,d.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,d.watch)(()=>n.value,async()=>{await(0,d.nextTick)(),h()},{immediate:!0}),(0,d.onMounted)(()=>{h()}),(0,d.onMounted)(()=>{h()}),(e,i)=>((0,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:c.value,label:t.label,class:(0,d.normalizeClass)(t.class),style:(0,d.normalizeStyle)(t.style),for:(0,d.unref)(o),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createElementVNode)(`div`,{"data-error":(0,d.unref)(l)||void 0,"data-disabled":t.isDisabled||void 0,"data-interactive":!t.isDisabled&&!t.isReadonly||void 0,class:(0,d.normalizeClass)(r.value.root())},[(0,d.renderSlot)(e.$slots,`top`),(0,d.createElementVNode)(`textarea`,(0,d.mergeProps)((0,d.unref)(a),{id:(0,d.unref)(o),ref:`textarea`,value:n.value,"aria-describedby":(0,d.unref)(u),autocomplete:t.autocomplete??void 0,name:t.name??void 0,"aria-required":(0,d.unref)(p),readonly:t.isReadonly,"aria-invalid":(0,d.unref)(f),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,Tk),(0,d.renderSlot)(e.$slots,`bottom`)],10,wk)]),_:3},8,[`error-message`,`is-disabled`,`is-required`,`disabled-reason`,`hint`,`label`,`class`,`style`,`for`,`help-text`,`hide-error-message`]))}}),Dk=U({slots:{field:`flex h-full flex-1 items-center`,literal:`text-placeholder select-none`,segment:`
|
|
1033
1021
|
rounded-xs px-xxs text-primary tabular-nums caret-transparent duration-100
|
|
1034
1022
|
outline-none
|
|
1035
1023
|
group-data-disabled/field-wrapper:pointer-events-none
|
|
@@ -1041,6 +1029,6 @@ Example: <ConfigProvider :address-autocomplete-adapter="myAdapter"><AddressAutoc
|
|
|
1041
1029
|
focus:data-placeholder:text-primary
|
|
1042
1030
|
disabled:data-placeholder:text-fg-disabled-subtle
|
|
1043
1031
|
data-readonly:cursor-default
|
|
1044
|
-
`},variants:{size:{md:{field:`px-md text-xs`},sm:{field:`px-sm text-xs`}}}}),
|
|
1032
|
+
`},variants:{size:{md:{field:`px-md text-xs`},sm:{field:`px-sm text-xs`}}}}),Ok=(0,d.defineComponent)({inheritAttrs:!1,__name:`TimeField`,props:(0,d.mergeModels)((0,d.mergeDefaults)({granularity:{},size:{},step:{},stepSnapping:{type:Boolean},id:{},isReadonly:{type:Boolean},isRequired:{type:Boolean},name:{},class:{},style:{},isDisabled:{type:Boolean},disabledReason:{},isHorizontal:{type:Boolean},isLabelHidden:{type:Boolean},errorMessage:{},for:{},helpText:{},hideErrorMessage:{type:Boolean},hint:{},label:{},isLoading:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{}},{...wv,...Tv,...Ov(Ev,`placeholder`),granularity:`minute`,size:`md`,step:null,stepSnapping:!1}),{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,d.useModel)(e,`modelValue`),{hourCycle:r}=Z(),i=t.id??(0,d.useId)(),a=C.LocaleUtil.getCurrentLocale(),o=(0,d.useAttrs)(),{isError:s,ariaDescribedBy:c,ariaInvalid:l}=Sv(i,t),u=(0,d.computed)(()=>Dk({size:t.size})),f=(0,d.computed)(()=>{if(!(r.value===`locale-default`||r.value===null))return r.value===`12-hour`?12:24}),p=(0,d.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,d.openBlock)(),(0,d.createBlock)(Xv,{"error-message":t.errorMessage,"is-disabled":t.isDisabled,"is-required":t.isRequired,"disabled-reason":t.disabledReason,hint:t.hint,label:t.label,class:(0,d.normalizeClass)(t.class),style:(0,d.normalizeStyle)(t.style),for:(0,d.unref)(i),"help-text":t.helpText,"hide-error-message":t.hideErrorMessage,"is-label-hidden":t.isLabelHidden},{"label-left":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-left`)]),"label-right":(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`label-right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)(Hv,{"is-disabled":t.isDisabled,"is-error":(0,d.unref)(s),"is-loading":t.isLoading,"is-readonly":t.isReadonly,size:t.size},{right:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,`right`)]),default:(0,d.withCtx)(()=>[(0,d.createVNode)((0,d.unref)(m.TimeFieldRoot),(0,d.mergeProps)({id:(0,d.unref)(i),modelValue:p.value,"onUpdate:modelValue":n[0]||=e=>p.value=e},(0,d.unref)(o),{"aria-describedby":(0,d.unref)(c),"aria-invalid":(0,d.unref)(l),"aria-required":t.isRequired||void 0,class:u.value.field(),disabled:t.isDisabled,"hour-cycle":f.value,"is-invalid":(0,d.unref)(s),locale:(0,d.unref)(a),readonly:t.isReadonly,required:t.isRequired,"step-snapping":t.stepSnapping,step:t.step??void 0,granularity:t.granularity}),{default:(0,d.withCtx)(({segments:e})=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(e,({part:e,value:n})=>((0,d.openBlock)(),(0,d.createElementBlock)(d.Fragment,{key:e},[e===`literal`?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TimeFieldInput),{key:1,part:e,class:(0,d.normalizeClass)(u.value.literal())},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.toDisplayString)(n),1)]),_:2},1032,[`part`,`class`])):((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(m.TimeFieldInput),{key:0,part:e,class:(0,d.normalizeClass)(u.value.segment()),"data-readonly":t.isReadonly||void 0,"data-field-wrapper":``},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)((0,d.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-label-hidden`]))}}),[kk,Ak]=L(`timelineContext`),jk=Ca({slots:{connector:`flex-1 bg-quaternary`,content:`flex min-w-0 flex-1 flex-col`,icon:``,indicator:`
|
|
1045
1033
|
relative z-10 flex shrink-0 items-center justify-center rounded-full
|
|
1046
|
-
`,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`}}}}),
|
|
1034
|
+
`,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`}}}}),Mk=(0,d.defineComponent)({__name:`Timeline`,props:{size:{default:`md`},variant:{default:`solid`}},setup(e){let t=e,n=(0,d.computed)(()=>jk({size:t.size,variant:t.variant}));return kk({...vr(t),variants:n}),(e,t)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)(n.value.root())},[(0,d.renderSlot)(e.$slots,`default`)],2))}}),Nk=(0,d.defineComponent)({__name:`TimelineItem`,props:{isLast:{type:Boolean,default:!1},icon:{default:void 0}},setup(e){let t=e,{size:n,variant:r}=Ak(),i=(0,d.computed)(()=>jk({isLast:t.isLast,size:n.value,variant:r.value}));return(e,n)=>((0,d.openBlock)(),(0,d.createElementBlock)(`div`,{class:(0,d.normalizeClass)(i.value.item())},[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(i.value.itemTrack())},[(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(i.value.indicator())},[(0,d.renderSlot)(e.$slots,`indicator`,{},()=>[t.icon==null?(0,d.createCommentVNode)(``,!0):((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(t.icon),{key:0,class:(0,d.normalizeClass)(i.value.icon())},null,8,[`class`]))])],2),(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(i.value.connector())},null,2)],2),(0,d.createElementVNode)(`div`,{class:(0,d.normalizeClass)(i.value.content())},[(0,d.renderSlot)(e.$slots,`default`)],2)],2))}});function Pk(e,t){return(0,d.h)(e,t)}function Fk(e,t,n=0){return new Intl.NumberFormat(t,{maximumFractionDigits:n}).format(e)}function Ik(){let e=Z(),t=(0,d.computed)(()=>{let t=e.numberFormat?.value;return te(t)});return{format(e,n){return Fk(e,t.value,n)},locale:t}}function Lk(e){let t=(0,d.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,d.computed)(()=>t.value)}}exports.TableUtil=MO,exports.UIActionContextMenu=Io,exports.UIActionDropdownMenu=Wo,exports.UIActionFocus=Go,exports.UIActionTooltip=K,exports.UIActionTrigger=Ko,exports.UIAdaptiveContent=Yo,exports.UIAdaptiveContentBlock=Xo,exports.UIAddressAutocomplete=nb,exports.UIAnimateHeight=Wy,exports.UIApplicationLoadingView=cx,exports.UIApplicationOfflineWarning=fx,exports.UIApplicationProvider=jC,exports.UIApplicationSkipToMainContent=mx,exports.UIAutoFocus=J_,exports.UIAutocomplete=tb,exports.UIAutocompleteContent=eb,exports.UIAutocompleteOption=Xy,exports.UIAvatar=za,exports.UIAvatarGroup=Ha,exports.UIAvatarGroupAddButton=Ya,exports.UIAvatarLabel=Qa,exports.UIBadge=Lv,exports.UIBadgeDot=Nv,exports.UIBadgeGroup=Rv,exports.UIBadgeGroupTruncate=zv,exports.UIBadgeIcon=Pv,exports.UIBadgeLabel=Fv,exports.UIBadgeSeparator=qb,exports.UIBaseCheckbox=HC,exports.UIBreadcrumbItem=MC,exports.UIBreadcrumbItems=PC,exports.UIBreadcrumbSeparator=FC,exports.UIButton=g_,exports.UICheckbox=UC,exports.UICheckboxGroup=JC,exports.UICheckboxGroupCheckbox=KC,exports.UICheckboxGroupIndeterminateCheckbox=qC,exports.UIClickableElement=$,exports.UIColumnLayout=q,exports.UICommandMenu=Dx,exports.UIConfigProvider=Sf,exports.UIConfirmDialog=Q_,exports.UIContextMenu=wr,exports.UIContextMenuCheckboxItem=po,exports.UIDropdownMenuCheckboxItem=po,exports.UIContextMenuGroup=mo,exports.UIDropdownMenuGroup=mo,exports.UIContextMenuHeader=_o,exports.UIDropdownMenuHeader=_o,exports.UIContextMenuItem=vo,exports.UIDropdownMenuItem=vo,exports.UIContextMenuRadioGroup=yo,exports.UIDropdownMenuRadioGroup=yo,exports.UIContextMenuRadioItem=bo,exports.UIDropdownMenuRadioItem=bo,exports.UIContextMenuSeparator=Co,exports.UIDropdownMenuSeparator=Co,exports.UIContextMenuSub=wo,exports.UIDropdownMenuSub=wo,exports.UIContextMenuSubContent=Er,exports.UIContextMenuSubTrigger=Do,exports.UIDropdownMenuSubTrigger=Do,exports.UIDashboardPage=Pw,exports.UIDashboardPageActions=uw,exports.UIDashboardPageCenteredContent=XC,exports.UIDashboardPageCenteredContentHeader=ow,exports.UIDashboardPageCenteredContentScrollable=cw,exports.UIDashboardPageContainer=lw,exports.UIDashboardPageContent=dw,exports.UIDashboardPageDetailPaneCloseButton=Lw,exports.UIDashboardPageDetailPaneToggle=Rw,exports.UIDashboardPageHeader=Uw,exports.UIDashboardPageHeaderMasterActionButton=Ww,exports.UIDashboardPageLoadingState=Iw,exports.UIDateField=oT,exports.UIDatePicker=sT,exports.UIDateRangeField=PT,exports.UIDateRangePicker=HT,exports.UIDateTime=WT,exports.UIDetailList=GT,exports.UIDetailListGroup=$T,exports.UIDetailListGroupHeader=QT,exports.UIDetailListGroupHeaderCollapseArrowIcon=YT,exports.UIDetailListGroupHeaderCollapseInfo=XT,exports.UIDetailListGroupItem=eE,exports.UIDetailListGroupItemLabel=nE,exports.UIDetailListGroupItemValueBadge=rE,exports.UIDetailListGroupItemValueText=aE,exports.UIDetailListGroupSeparator=oE,exports.UIDialog=G_,exports.UIDialogBody=kx,exports.UIDialogContainer=Ax,exports.UIDialogFooter=K_,exports.UIDialogFooterCancel=q_,exports.UIDialogFooterPrimary=Y_,exports.UIDialogFooterSecondary=jx,exports.UIDialogFooterSubmit=Mx,exports.UIDialogHeader=Z_,exports.UIDot=no,exports.UIDropdownMenu=Ar,exports.UIDropdownMenuSubContent=Eo,exports.UIEmptyState=WE,exports.UIFeaturedIcon=QC,exports.UIForm=tv,exports.UIFormDialog=Ix,exports.UIFormDialogForm=Lx,exports.UIFormFieldGrid=D_,exports.UIFormFieldGroup=O_,exports.UIFormFieldSeperator=k_,exports.UIFormFieldSet=M_,exports.UIFormLayout=N_,exports.UIFormSubmitButton=_v,exports.UIIconButton=Q,exports.UIInputWrapper=Xv,exports.UIInteractable=GE,exports.UIKeyboardShortcut=Pr,exports.UILink=x_,exports.UILoader=qa,exports.UILogo=Mb,exports.UILogoWithText=$C,exports.UIMainContent=sD,exports.UIMainLayout=pD,exports.UIMainSidebar=rx,exports.UIMainSidebarFooterAccountCard=Tb,exports.UIMainSidebarFooterFeaturedCard=Ob,exports.UIMainSidebarGlobalSearch=kb,exports.UIMainSidebarHeaderContainer=Ab,exports.UIMainSidebarHeaderLogoWithText=Fb,exports.UIMainSidebarHeaderReturnToApp=Lb,exports.UIMainSidebarNavigationGroup=zb,exports.UIMainSidebarNavigationGroups=Bb,exports.UIMainSidebarNavigationLink=Kb,exports.UIMainSidebarNavigationLinkBadge=Jb,exports.UIMainSidebarNavigationLinkStatusDot=Qb,exports.UIMenuItem=fo,exports.UINumberBadge=gD,exports.UINumberField=vD,exports.UIPage=Dw,exports.UIPhoneNumberField=wD,exports.UIPopover=bv,exports.UIRadioGroup=PD,exports.UIRadioGroupItem=jD,exports.UIRelativeDateTime=LD,exports.UIRowLayout=R,exports.UIScrollable=ny,exports.UISearchField=qD,exports.UISelect=vy,exports.UISelectContent=my,exports.UISelectDropdown=hy,exports.UISelectOption=dy,exports.UISeparator=So,exports.UISkeletonItem=J,exports.UISwitch=tO,exports.UITable=VO,exports.UITableBody=cO,exports.UITableBodyGroup=pO,exports.UITableBodyRow=xO,exports.UITableBodyRowActionsCell=bO,exports.UITableBodyRowCell=yO,exports.UITableCell=yO,exports.UITableBodyRowCellInteractiveElement=HO,exports.UITableCellInteractiveElement=HO,exports.UITableBodyRowCellText=UO,exports.UITableCellText=UO,exports.UITableBodyRowGroupCell=qO,exports.UITableBodySubGroup=wO,exports.UITableHeader=DO,exports.UITableHeaderCell=EO,exports.UITableHiddenResultsWarning=OO,exports.UITableLoading=kO,exports.UITableRoot=IO,exports.UITableScrollContainer=zO,exports.UITableSubgrid=aO,exports.UITabs=ak,exports.UITabsContent=ok,exports.UITabsItem=sk,exports.UITabsList=_k,exports.UITabsRouterLink=vk,exports.UITabsRouterLinkItem=yk,exports.UITagsField=Sk,exports.UITagsFieldTag=xk,exports.UIText=G,exports.UITextField=zy,exports.UITextShimmer=ix,exports.UITextareaField=Ek,exports.UIThemeProvider=Sr,exports.UITimeField=Ok,exports.UITimeline=Mk,exports.UITimelineItem=Nk,exports.UIToastContainer=kC,exports.UITooltip=Ea,exports.UITooltipContent=Aa,exports.UITooltipProvider=AC,exports.UITooltipText=Na,exports.UITopBar=oD,exports.addressToFormattedAddress=Zo,exports.createAutocompleteOptions=Gy,exports.createComponent=Pk,exports.createSelectOptions=xv,exports.defineTableColumns=XO,exports.formattedAddressToString=Qo,exports.getLocaleFromNumberFormat=te,exports.toFormField=By,exports.tv=U,exports.uiLocales=u.t,exports.useDialogTriggerProps=Nx,exports.useInjectConfigContext=Z,exports.useInjectDetailPaneContext=pw,exports.useInjectFormContext=F_,exports.useInjectTableBodyRowContext=hO,exports.useInjectTableContext=sO,exports.useInjectTableGroupContext=dO,exports.useInjectTableScrollContainerContext=RO,exports.useInjectTableSubGroupContext=_O,exports.useIsReducedMotion=xf,exports.useIsTruncated=Ma,exports.useMainSidebar=Sb,exports.useNumberFormat=Ik,exports.useOverlay=U_,exports.useProvideDetailPaneContext=fw,exports.useProvideTableBodyRowContext=mO,exports.useProvideTableContext=oO,exports.useProvideTableGroupContext=uO,exports.useProvideTableScrollContainerContext=LO,exports.useProvideTableSubGroupContext=gO,exports.useSearch=XD,exports.useSort=Lk,exports.useTableColumnResize=JO,exports.useTableColumnWidths=PO,exports.useTableCustomizeColumns=QO,exports.useTableFrozenColumns=YO,exports.useTableScrollState=FO,exports.useTableVirtualScroller=BO,exports.useToast=OC,exports.useTopBarNavigation=Mw;
|