@octans/ui 1.6.1 → 1.6.2
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/lib.d.ts +9 -0
- package/dist/ui.js +1 -1
- package/dist/ui.umd.js +1 -1
- package/package.json +2 -2
package/dist/lib.d.ts
CHANGED
|
@@ -9,6 +9,15 @@ interface PluginOptions {
|
|
|
9
9
|
translations?: Record<string, TranslationDictionary>;
|
|
10
10
|
/** Locale to activate at install time. Defaults to `'en'`. */
|
|
11
11
|
locale?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Library-wide display time zone to activate at install time, as an IANA id
|
|
14
|
+
* (`'Australia/Sydney'`). Equivalent to calling `setTimezone` yourself.
|
|
15
|
+
*
|
|
16
|
+
* Left unset, dates render in the viewer's own clock. Affects DISPLAY only —
|
|
17
|
+
* a stored value is not reinterpreted. A zone this runtime does not know
|
|
18
|
+
* warns and falls back rather than throwing.
|
|
19
|
+
*/
|
|
20
|
+
timezone?: string;
|
|
12
21
|
}
|
|
13
22
|
export * from './components/all';
|
|
14
23
|
export { addCollection, addIcon } from '@iconify/vue';
|
package/dist/ui.js
CHANGED
|
@@ -20919,7 +20919,7 @@ function zS(e, t) {
|
|
|
20919
20919
|
//#region src/lib.ts
|
|
20920
20920
|
var BS = (e, t) => {
|
|
20921
20921
|
if (e.config.globalProperties.$t = lp, t?.translations) for (let [e, n] of Object.entries(t.translations)) ap(e, n);
|
|
20922
|
-
t?.locale && (op(t.locale), xf(t.locale));
|
|
20922
|
+
t?.locale && (op(t.locale), xf(t.locale)), t?.timezone && Cf(t.timezone);
|
|
20923
20923
|
for (let [n, r] of Object.entries(Pb)) VS(n, r) && e.component(t?.prefix ? jx(`${t.prefix}-${n}`) : n, r);
|
|
20924
20924
|
e.config.globalProperties.$ui = HS;
|
|
20925
20925
|
};
|
package/dist/ui.umd.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
${e||`200px`},
|
|
8
8
|
${t||`1fr`}
|
|
9
9
|
)
|
|
10
|
-
)`),r});return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,t.$style.Stats]),style:(0,e.normalizeStyle)(r.value)},[(0,e.renderSlot)(t.$slots,`default`)],6))}}),[[`__cssModules`,{$style:{Stats:`_Stats_dsaqp_1`}}]]),uv=[`onClick`],dv=R((0,e.defineComponent)({__name:`Tabs`,props:{selected:{},tabs:{default:()=>[]},indicator:{}},emits:[`update:selected`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.useSlots)(),o=(0,e.useCssModule)(),s={underline:`indicatorUnderline`,bar:`indicatorBar`},c=(0,e.computed)(()=>r.indicator?o[s[r.indicator]]:null),l=(0,e.ref)({}),u=(0,e.ref)(),d=(0,e.ref)([]),f=(0,e.ref)(null),p=(0,e.computed)(()=>r.tabs.filter(e=>l.value[e.value]));function m(t){return a.tab?a.tab({tab:t}):[t.label,t.badge?(0,e.h)(lp,{status:t.badgeStatus,progress:t.badgeProgress,class:o.Tab_badge},()=>t.badge):null]}let h=(0,e.defineComponent)({props:{tab:{type:Object,required:!0}},setup:e=>()=>m(e.tab)}),g=(0,e.computed)(()=>p.value.map(e=>({label:e.label,icon:e.value===r.selected?`mdi:check`:null,disabled:e.disabled,content:()=>m(e),onAction:()=>y(e)}))),_=(0,e.computed)(()=>p.value.some(e=>e.value===r.selected)),v=(0,e.computed)(()=>{let e=r.tabs.find(e=>e.value===r.selected);return _.value&&e?.label||``});function y(e){e.disabled||i(`update:selected`,e.value,e)}function b(){let e={},t=u.value?.getBoundingClientRect().width,n=150;d.value.forEach((i,a)=>{let o=r.tabs[a],s=i.offsetWidth;n+=s,e[o.value]=n>=(t||0)}),l.value=e}return(0,e.onMounted)(()=>{u.value&&(f.value=new ResizeObserver($f(b,100,{leading:!0,trailing:!0})),f.value.observe(u.value))}),(0,e.onBeforeUnmount)(()=>{f.value&&=(f.value.disconnect(),null)}),(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,(0,e.unref)(o).Tabs,c.value])},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(o).Tab_container),ref_key:`tabContainer`,ref:u},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.tabs,n=>((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:n.value,type:`button`,class:(0,e.normalizeClass)([(0,e.unref)(o).Tab,n.disabled&&(0,e.unref)(o).Tab__disabled,t.selected===n.value&&(0,e.unref)(o).Tab__selected]),onClick:e=>y(n),onMouseup:r[0]||=e=>e.currentTarget?.blur(),ref_for:!0,ref_key:`tabElements`,ref:d,style:(0,e.normalizeStyle)({visibility:l.value[n.value]?`hidden`:`visible`,position:l.value[n.value]?`absolute`:`relative`})},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(o).Tab_title)},[(0,e.createVNode)((0,e.unref)(h),{tab:n},null,8,[`tab`])],2),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(o).Tab_bar)},null,2)],46,uv))),128)),g.value.length>0?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(lo),{key:0,items:g.value,placement:`bottom-end`,class:(0,e.normalizeClass)([(0,e.unref)(o).TruncatedTabsButton,_.value&&(0,e.unref)(o).selected])},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(W),{type:`link`,icon:v.value?``:`mdi:dots-horizontal`,dropdown:!!v.value},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(v.value),1)]),_:1},8,[`icon`,`dropdown`])]),_:1},8,[`items`,`class`])):(0,e.createCommentVNode)(``,!0)],2)],2))}}),[[`__cssModules`,{$style:{indicatorUnderline:`_indicatorUnderline_1pw24_10`,indicatorBar:`_indicatorBar_1pw24_17`,Tab_container:`_Tab_container_1pw24_24`,Tab:`_Tab_1pw24_24`,Tab__disabled:`_Tab__disabled_1pw24_44`,Tab_title:`_Tab_title_1pw24_44`,Tab_bar:`_Tab_bar_1pw24_53`,Tab__selected:`_Tab__selected_1pw24_63`,Tab_badge:`_Tab_badge_1pw24_93`,TruncatedTabsButton:`_TruncatedTabsButton_1pw24_100`,selected:`_selected_1pw24_107`}}]]),fv={TextContainer:`_TextContainer_rpyk3_1`},pv={};function mv(t,n){return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,t.$style.TextContainer])},[(0,e.renderSlot)(t.$slots,`default`)],2)}var hv=R(pv,[[`render`,mv],[`__cssModules`,{$style:fv}]]),gv=[`src`,`alt`],_v=R((0,e.defineComponent)({__name:`Thumbnail`,props:{title:{},subtitle:{},url:{},alt:{},size:{default:`small`},noBorder:{type:Boolean,default:!1}},setup(t){let n=t,r=(0,e.ref)(!0);return(0,e.watch)(()=>n.url,e=>{!r.value&&e&&(r.value=!0)}),(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,n.$style.Thumbnail])},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([n.$style.Thumbnail__container,n.$style[`Thumbnail__${t.size}`],t.noBorder&&n.$style.Thumbnail__no_border])},[r.value?((0,e.openBlock)(),(0,e.createElementBlock)(`img`,{key:0,onError:i[0]||=e=>r.value=!1,class:(0,e.normalizeClass)(n.$style.Thumbnail__image),src:t.url,alt:t.alt},null,42,gv)):(0,e.createCommentVNode)(``,!0),!t.url||!r.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([n.$style.Thumbnail__placeholder,n.$style[`Thumbnail__placeholder__${t.size}`]])},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:image`})],2)):(0,e.createCommentVNode)(``,!0)],2),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Thumbnail__content)},[t.title?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)(n.$style.Thumbnail__heading)},(0,e.toDisplayString)(t.title),3)):(0,e.createCommentVNode)(``,!0),t.subtitle?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)(n.$style.Thumbnail__subtitle)},(0,e.toDisplayString)(t.subtitle),3)):(0,e.createCommentVNode)(``,!0),(0,e.renderSlot)(n.$slots,`default`)],2)],2))}}),[[`__cssModules`,{$style:{Thumbnail:`_Thumbnail_jh8fw_1`,Thumbnail__container:`_Thumbnail__container_jh8fw_4`,Thumbnail__image:`_Thumbnail__image_jh8fw_13`,Thumbnail__placeholder:`_Thumbnail__placeholder_jh8fw_17`,Thumbnail__placeholder__medium:`_Thumbnail__placeholder__medium_jh8fw_26`,Thumbnail__placeholder__large:`_Thumbnail__placeholder__large_jh8fw_29`,Thumbnail__placeholder__extraLarge:`_Thumbnail__placeholder__extraLarge_jh8fw_32`,Thumbnail__no_border:`_Thumbnail__no_border_jh8fw_35`,Thumbnail__content:`_Thumbnail__content_jh8fw_43`,Thumbnail__heading:`_Thumbnail__heading_jh8fw_48`,Thumbnail__subtitle:`_Thumbnail__subtitle_jh8fw_53`,Thumbnail__extraSmall:`_Thumbnail__extraSmall_jh8fw_58`,Thumbnail__small:`_Thumbnail__small_jh8fw_62`,Thumbnail__medium:`_Thumbnail__medium_jh8fw_66`,Thumbnail__large:`_Thumbnail__large_jh8fw_70`,Thumbnail__extraLarge:`_Thumbnail__extraLarge_jh8fw_74`}}]]),vv=R((0,e.defineComponent)({__name:`ProgressBar`,props:{value:{default:0}},setup(t){let n=t,r=(0,e.computed)(()=>yd(n.value,0,100));return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)(t.$style.ProgressBar)},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(t.$style.Track)},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(t.$style.InnerTrack)},null,2),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(t.$style.Bar),style:(0,e.normalizeStyle)(`width: `+r.value+`%`)},null,6)],2)],2))}}),[[`__cssModules`,{$style:{Track:`_Track_1rsbl_1`,InnerTrack:`_InnerTrack_1rsbl_8`,Bar:`_Bar_1rsbl_17`}}]]),yv=[`onClick`],bv=R((0,e.defineComponent)({__name:`Toast`,props:{item:{},contrasting:{type:Boolean,default:!0}},emits:[`remove`,`pause`,`resume`],setup(t){let n=t,r=(0,e.computed)(()=>typeof n.item.progress==`number`);return(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([n.$style.Toast,!t.contrasting&&n.$style.Toast_light,t.item.tone&&n.$style[`Toast_tone_`+t.item.tone]]),onMouseenter:i[1]||=e=>n.$emit(`pause`,t.item),onMouseleave:i[2]||=e=>n.$emit(`resume`,t.item)},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Content)},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Header)},[t.item.icon?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(z),{key:0,class:(0,e.normalizeClass)(n.$style.Header_icon),icon:t.item.icon},null,8,[`class`,`icon`])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Header_title)},(0,e.toDisplayString)(t.item.title),3),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Header_right)},[t.item.loading?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(go),{key:0,size:`small`,color:t.contrasting?`white`:``},null,8,[`color`])):((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(z),{key:1,class:(0,e.normalizeClass)(n.$style.Header_close),icon:`mdi:close`,onClick:i[0]||=e=>n.$emit(`remove`,t.item)},null,8,[`class`]))],2)],2),t.item.content?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)(n.$style.Body)},(0,e.toDisplayString)(t.item.content),3)):(0,e.createCommentVNode)(``,!0),r.value?((0,e.openBlock)(),(0,e.createBlock)(vv,{key:1,class:(0,e.normalizeClass)(n.$style.ProgressBar),value:t.item.progress||0},null,8,[`class`,`value`])):(0,e.createCommentVNode)(``,!0),t.item.actions&&t.item.actions.length?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:2,class:(0,e.normalizeClass)(n.$style.Actions)},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.item.actions,(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:r,class:(0,e.normalizeClass)(n.$style.Action),onClick:()=>t.onAction?.()},(0,e.toDisplayString)(t.label),11,yv))),128))],2)):(0,e.createCommentVNode)(``,!0)],2)],34))}}),[[`__cssModules`,{$style:{Toast:`_Toast_12rgn_1`,Toast_light:`_Toast_light_12rgn_22`,Toast_tone_success:`_Toast_tone_success_12rgn_29`,Header_icon:`_Header_icon_12rgn_32`,Toast_tone_warning:`_Toast_tone_warning_12rgn_36`,Toast_tone_error:`_Toast_tone_error_12rgn_43`,Toast_tone_info:`_Toast_tone_info_12rgn_50`,Content:`_Content_12rgn_57`,Header:`_Header_12rgn_32`,Header_title:`_Header_title_12rgn_73`,Header_right:`_Header_right_12rgn_81`,Header_close:`_Header_close_12rgn_85`,Body:`_Body_12rgn_94`,ProgressBar:`_ProgressBar_12rgn_99`,Actions:`_Actions_12rgn_103`,Action:`_Action_12rgn_103`}}]]),xv={success:`mdi:check-circle-outline`,warning:`mdi:alert-outline`,error:`mdi:close-circle-outline`,info:`mdi:information-outline`},Q=new class{nextId;items;config;timers;hosts;hostWatchers;constructor(){this.nextId=0,this.items=(0,e.reactive)([]),this.config=(0,e.reactive)({}),this.timers=new Map,this.hosts=0,this.hostWatchers=new Set}addItem(t){let n=(0,e.reactive)({title:``,loading:!1,duration:4500,...t,_id:this.nextId++,remove:()=>this.removeItem(n)});return n.tone&&!n.icon&&(n.icon=xv[n.tone]),!t.duration&&(typeof n.progress==`number`||n.loading||Array.isArray(n.actions)&&n.actions.length)&&(n.duration=0),n.duration&&this.startTimer(n,n.duration),this.items.push(n),n}startTimer(e,t){this.clearTimer(e);let n=t??(e.duration||4500);this.timers.set(e._id,{handle:setTimeout(()=>this.removeItem(e),n),startedAt:Date.now(),remaining:n})}pauseTimer(e){let t=this.timers.get(e._id);t&&(clearTimeout(t.handle),t.remaining-=Date.now()-t.startedAt)}resumeTimer(e){let t=this.timers.get(e._id);t&&(t.remaining>0?(t.startedAt=Date.now(),t.handle=setTimeout(()=>this.removeItem(e),t.remaining)):this.removeItem(e))}clearTimer(e){let t=this.timers.get(e._id);t&&(clearTimeout(t.handle),this.timers.delete(e._id))}removeItem(e){this.clearTimer(e);let t=this.items.indexOf(e);t>=0&&this.items.splice(t,1)}clearAll(){for(let e of this.timers.values())clearTimeout(e.handle);this.timers.clear(),this.items.splice(0)}configure(e){Object.assign(this.config,e)}addHost(){this.hosts++;for(let e of this.hostWatchers)e()}removeHost(){this.hosts=Math.max(0,this.hosts-1)}watchHosts(e){return this.hostWatchers.add(e),()=>{this.hostWatchers.delete(e)}}},Sv=R((0,e.defineComponent)({__name:`ToastManager`,props:{position:{default:`se`},offset:{default:0},contrasting:{type:Boolean,default:!0}},setup(t){let n=t,r=[`nw`,`n`,`ne`,`w`,`e`,`sw`,`s`,`se`];(0,e.onMounted)(()=>Q.addHost()),(0,e.onUnmounted)(()=>Q.removeHost());let i=(0,e.computed)(()=>{let e=Q.config.offset??n.offset;return{position:Q.config.position??n.position,offset:typeof e==`number`?{x:e,y:e}:{x:e.x||0,y:e.y||0},contrasting:Q.config.contrasting??n.contrasting}}),a=(0,e.computed)(()=>r.map(e=>{let t=Q.items.filter(t=>(t.position||i.value.position)===e);return e.startsWith(`n`)&&(t=t.slice().reverse()),{position:e,items:t}}).filter(e=>e.items.length));function o(e){let{x:t,y:n}=i.value.offset,r={};return e.startsWith(`n`)?r.top=n+`px`:e.startsWith(`s`)?r.bottom=n+`px`:r.top=`calc(50% + ${n}px)`,e.endsWith(`e`)?r.right=t+`px`:r.left=e.endsWith(`w`)?t+`px`:`calc(50% + ${t}px)`,r}function s(e){Q.removeItem(e)}function c(e){Q.pauseTimer(e)}function l(e){Q.resumeTimer(e)}return(t,n)=>((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.value,n=>((0,e.openBlock)(),(0,e.createBlock)(e.TransitionGroup,{key:n.position,tag:`div`,role:`status`,"aria-live":`polite`,class:(0,e.normalizeClass)([`UIElement`,t.$style.Stack,t.$style[`Stack_`+n.position]]),style:(0,e.normalizeStyle)(o(n.position)),"enter-active-class":t.$style.enterActive,"leave-active-class":t.$style.leaveActive,"enter-from-class":t.$style.enter,"leave-to-class":t.$style.leaveTo,"move-class":t.$style.moveTo},{default:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(n.items,t=>((0,e.openBlock)(),(0,e.createBlock)(bv,{key:t._id,item:t,contrasting:t.contrasting??i.value.contrasting,onRemove:s,onPause:c,onResume:l},null,8,[`item`,`contrasting`]))),128))]),_:2},1032,[`class`,`style`,`enter-active-class`,`leave-active-class`,`enter-from-class`,`leave-to-class`,`move-class`]))),128))}}),[[`__cssModules`,{$style:{Stack:`_Stack_emazc_1`,Stack_n:`_Stack_n_emazc_12`,Stack_s:`_Stack_s_emazc_13`,Stack_e:`_Stack_e_emazc_17`,Stack_w:`_Stack_w_emazc_18`,enterActive:`_enterActive_emazc_22`,leaveActive:`_leaveActive_emazc_23`,enter:`_enter_emazc_22`,leaveTo:`_leaveTo_emazc_30`,Stack_nw:`_Stack_nw_emazc_35`,Stack_ne:`_Stack_ne_emazc_37`,moveTo:`_moveTo_emazc_54`}}]]),Cv=null,wv=null;function Tv(){Cv?.unmount(),wv?.remove(),Cv=null,wv=null}Q.watchHosts(()=>{Cv&&Q.hosts>1&&queueMicrotask(Tv)});function Ev(){typeof document>`u`||Cv||Q.hosts>0||(wv=document.createElement(`div`),wv.id=`uiToastManager`,document.body.appendChild(wv),Cv=(0,e.createApp)(Sv),Cv.mount(wv))}function Dv(e){return Ev(),Q.addItem(e)}Dv.clearAll=()=>{Q.clearAll()},Dv.configure=e=>{Q.configure(e)};function Ov(e,t,n){return typeof e==`function`&&(e=e(t)),typeof e==`string`?{title:e}:e||{title:n}}Dv.promise=(e,t)=>{let n=Dv({loading:!0,...Ov(t.loading,void 0,`Loading..`)}),r=(e,t)=>{Object.assign(n,{loading:!1,progress:void 0,tone:t,icon:xv[t],...e});let r=e.duration??4500;r&&Q.startTimer(n,r)};return e.then(e=>r(Ov(t.success,e,`Done`),`success`),e=>r(Ov(t.error,e,`Something went wrong`),`error`)),n};var kv=[`value`,`disabled`,`readonly`,`aria-required`],Av=[`value`],jv=[`value`,`disabled`],Mv=[`value`],Nv=[`value`,`disabled`],Pv=[`value`],Fv=[`value`,`placeholder`,`disabled`,`readonly`,`aria-required`],Iv=[`disabled`],Lv=[`disabled`],Rv=`--:--`,zv=R((0,e.defineComponent)({__name:`TimePicker`,props:{label:{type:[String,Boolean],default:``},error:{type:[String,Boolean],default:``},helpText:{type:[String,Boolean]},helpTextHtml:{type:[String,Boolean]},helpLink:{type:[String,Boolean]},helpLinkIcon:{},helpLinkTooltip:{},placeholder:{default:``},prefixIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},modelValue:{default:`00:00:00`},modelFormat:{default:`HH:mm:ss`},minTime:{default:`00:00`},maxTime:{default:`23:59`},clearable:{type:Boolean,default:!1},width:{default:`full`},is24Hour:{type:Boolean,default:!1},minuteStep:{default:15},minuteStepStrict:{type:Boolean,default:!1},required:{type:Boolean},autoOpen:{type:Boolean,default:!0}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.useTemplateRef)(`timeInput`),o=(0,e.useTemplateRef)(`amButton`),s=(0,e.useTemplateRef)(`pmButton`),c=(0,e.ref)(0),l=(0,e.ref)(0),u=(0,e.ref)(!1),d=(0,e.ref)(!1),f=(0,e.computed)(()=>!r.disabled&&!r.readonly);(0,e.onMounted)(()=>{d.value=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)});let p=e=>{if(!e){u.value=!0,c.value=0,l.value=0;return}u.value=!1;let t=(0,V.default)(e,r.modelFormat,!0);if(t.isValid()){c.value=t.hour(),l.value=t.minute();return}let[n=0,i=0]=e.split(`:`).map(Number);c.value=isNaN(n)?0:n,l.value=isNaN(i)?0:i},m=()=>{u.value&&(u.value=!1,c.value=0,l.value=0)};(0,e.watch)(()=>r.modelValue,e=>{p(e)},{immediate:!0});let h=(0,e.computed)(()=>c.value<12),g=(0,e.computed)(()=>{let e=c.value;return r.is24Hour||(c.value===0?e=12:c.value>12&&(e=c.value-12)),`${String(e).padStart(2,`0`)}:${String(l.value).padStart(2,`0`)}`}),_=(0,e.computed)(()=>u.value?``:g.value),v=(0,e.computed)(()=>u.value?``:`${U(c.value)}:${U(l.value)}`),y=(0,e.computed)(()=>{if(u.value)return r.error;let e=`${U(c.value)}:${U(l.value)}`,t=r.minTime?.substring(0,5),n=r.maxTime?.substring(0,5);return t&&e<t?`Must be on or after ${t}`:n&&e>n?`Must be on or before ${n}`:r.error}),b=()=>{let e=(0,V.default)().hour(c.value).minute(l.value).second(0);i(`update:modelValue`,e.format(r.modelFormat))},x=()=>{f.value&&i(`update:modelValue`,null)},S=(t,n)=>{if(!a.value||!f.value)return;let i=a.value.selectionStart??0,u=a.value.selectionEnd??0;if([`left`,`right`].includes(n)){u===i&&n===`right`&&i===5&&(r.is24Hour||(h.value?o.value:s.value)?.focus());return}m();let d=n===`up`?1:-1;if(i<=2)c.value=(c.value+d+24)%24;else{let e=l.value;if(t.shiftKey){let e=l.value+d;l.value=(e+60)%60,(e>=60||e<0)&&(c.value=(c.value+d+24)%24)}else{let t=r.minuteStep;d>0?(l.value=(Math.floor(e/t)*t+t)%60,l.value<=e&&(c.value=(c.value+1+24)%24)):(l.value=(Math.ceil(e/t)*t-t+60)%60,l.value>=e&&(c.value=(c.value-1+24)%24))}}b(),(0,e.nextTick)(()=>{a.value&&a.value.setSelectionRange(i,u)})},C=e=>{let t=a.value;t&&(t.focus(),t.setSelectionRange(5,5),e.preventDefault())},w=t=>{let n=t.target;if(!f.value){n.value=_.value;return}m();let i=n.selectionStart??0,a=t.data,u=i;if(a===`:`||a===` `)i<=3?u=3:--u,t.preventDefault();else if(a&&/[0-9]/.test(a)){let e=parseInt(a,10);if(i<=2){let t=parseInt(g.value.substring(0,2),10),n;if(i===1&&e>(r.is24Hour?2:1))n=`0${e}`,u=3;else{let r=String(t).padStart(2,`0`);n=i===1?`${e}${r[1]}`:`${r[0]}${e}`}let a=parseInt(n,10);r.is24Hour?c.value=Math.min(a,23):(a=Math.max(1,Math.min(a,12)),h.value?c.value=a===12?0:a:c.value=a===12?12:a+12)}else{let t=String(l.value).padStart(2,`0`),n;i<=4?(n=`${e}${t[1]}`,u=4):n=`${t[0]}${e}`,l.value=Math.min(parseInt(n,10),59)}}else a&&!r.is24Hour&&[`a`,`p`].includes(a.toLowerCase())&&(a.toLowerCase()===`a`?O(`am`):O(`pm`),--u,u===5&&(0,e.nextTick)(()=>{(h.value?o.value:s.value)?.focus()}));b(),(0,e.nextTick)(()=>{n.value=g.value,n.setSelectionRange(u,u)})},T=()=>{a.value&&((a.value.selectionStart??0)<=2?a.value.setSelectionRange(0,2):a.value.setSelectionRange(3,5))},E=()=>{let e=r.minuteStep;if(!e||e<=0)return;let t=Math.round(l.value/e)*e;t>=60?(l.value=t%60,c.value=(c.value+Math.floor(t/60))%24):l.value=t},D=()=>{u.value||(r.minuteStepStrict&&E(),b())},O=(t,n=!1)=>{f.value&&(t===`am`&&!h.value?c.value-=12:t===`pm`&&h.value&&(c.value+=12),n&&(0,e.nextTick)(()=>{t===`am`?o.value?.focus():s.value?.focus()}),b())},k=(0,e.computed)(()=>c.value===0?12:c.value>12?c.value-12:c.value),A=(0,e.computed)(()=>{let e=parseInt(r.minTime.substring(0,2),10),t=parseInt(r.maxTime.substring(0,2),10),n=[];if(r.is24Hour)for(let r=0;r<24;r++)n.push({value:r,label:U(r),disabled:r<e||r>t});else for(let e=1;e<=12;e++)n.push({value:e,label:U(e),disabled:!1});return n}),j=(0,e.computed)(()=>{let e=r.minuteStep>0?r.minuteStep:1,t=new Set;for(let n=0;n<60;n+=e)t.add(n);t.add(l.value);let n=r.minTime.substring(0,5),i=r.maxTime.substring(0,5);return[...t].sort((e,t)=>e-t).map(e=>{let t=`${U(c.value)}:${U(e)}`;return{value:e,label:U(e),disabled:t<n||t>i}})}),M=e=>{m();let t=parseInt(e.target.value,10);r.is24Hour?c.value=t:h.value?c.value=t===12?0:t:c.value=t===12?12:t+12,b()},ee=e=>{m(),l.value=parseInt(e.target.value,10),b()},te=e=>{m(),O(e.target.value)},ne=e=>{if(!f.value)return;let t=e.target;if(!t.value){u.value=!0,i(`update:modelValue`,null);return}u.value=!1;let[n=0,r=0]=t.value.split(`:`).map(Number);c.value=isNaN(n)?0:n,l.value=isNaN(r)?0:r,b()};return(n,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(q),{label:t.label,error:y.value,"help-text":t.helpText,"help-text-html":t.helpTextHtml,"help-link":t.helpLink,"help-link-icon":t.helpLinkIcon,"help-link-tooltip":t.helpLinkTooltip,required:t.required},(0,e.createSlots)({default:(0,e.withCtx)(()=>[d.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)([n.$style.TimeInputWrapper,t.width===`full`&&n.$style.TimeInputWrapper__full,y.value&&n.$style.hasError])},[t.prefixIcon?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)(n.$style.PrefixIcon)},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:clock-outline`})],2)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`input`,{type:`time`,value:v.value,disabled:t.disabled,readonly:t.readonly,"aria-required":t.required||void 0,class:(0,e.normalizeClass)([n.$style.TimeInput,n.$style.NativeTimeInput]),onInput:ne,onBlur:D},null,42,kv),t.clearable&&f.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([n.$style.ClearAction,u.value&&n.$style.isHidden]),onClick:x},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:close-circle`})],2)):(0,e.createCommentVNode)(``,!0)],2)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([n.$style.TimeInputWrapper,t.width===`full`&&n.$style.TimeInputWrapper__full,y.value&&n.$style.hasError])},[t.prefixIcon?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(pi),{key:0,placement:`bottom-start`,"auto-trigger-toggle":``,"auto-hide":``,disabled:!f.value,"z-index":2005},{trigger:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([n.$style.PrefixIcon,f.value&&n.$style.PrefixIcon__clickable])},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:clock-outline`})],2)]),default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Dropdown)},[(0,e.createElementVNode)(`select`,{class:(0,e.normalizeClass)(n.$style.TimeSelect),value:t.is24Hour?c.value:k.value,onChange:M},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(A.value,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`option`,{key:t.value,value:t.value,disabled:t.disabled},(0,e.toDisplayString)(t.label),9,jv))),128))],42,Av),(0,e.createElementVNode)(`select`,{class:(0,e.normalizeClass)(n.$style.TimeSelect),value:l.value,onChange:ee},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(j.value,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`option`,{key:t.value,value:t.value,disabled:t.disabled},(0,e.toDisplayString)(t.label),9,Nv))),128))],42,Mv),t.is24Hour?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`select`,{key:0,class:(0,e.normalizeClass)(n.$style.TimeSelect),value:h.value?`am`:`pm`,onChange:te},[...r[12]||=[(0,e.createElementVNode)(`option`,{value:`am`},`AM`,-1),(0,e.createElementVNode)(`option`,{value:`pm`},`PM`,-1)]],42,Pv))],2)]),_:1},8,[`disabled`])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`input`,{ref_key:`timeInput`,ref:a,type:`text`,value:_.value,placeholder:t.placeholder||Rv,disabled:t.disabled,readonly:t.readonly,"aria-required":t.required||void 0,class:(0,e.normalizeClass)(n.$style.TimeInput),onInput:w,onKeydown:[r[0]||=(0,e.withKeys)((0,e.withModifiers)(e=>S(e,`up`),[`prevent`]),[`up`]),r[1]||=(0,e.withKeys)((0,e.withModifiers)(e=>S(e,`down`),[`prevent`]),[`down`]),r[2]||=(0,e.withKeys)(e=>S(e,`right`),[`right`]),r[3]||=(0,e.withKeys)(e=>S(e,`left`),[`left`])],onClick:T,onBlur:D},null,42,Fv),t.is24Hour?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([n.$style.AmPmToggle,n.$style.AmPmTogglePlain])},[u.value?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:0,class:(0,e.normalizeClass)(n.$style.AmPmPlaceholder)},` -- `,2)):(0,e.createCommentVNode)(``,!0),!u.value&&h.value?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:1,ref:`amButton`,type:`button`,disabled:!f.value,onKeydown:[r[4]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`pm`,!0),[`prevent`]),[`up`]),r[5]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`pm`,!0),[`prevent`]),[`down`]),r[6]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`pm`,!0),[`prevent`]),[`p`]),(0,e.withKeys)(C,[`left`]),(0,e.withKeys)(C,[`backspace`]),(0,e.withKeys)(C,[`delete`])],onClick:r[7]||=e=>O(`pm`)},` AM `,40,Iv)):(0,e.createCommentVNode)(``,!0),!u.value&&!h.value?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:2,ref:`pmButton`,type:`button`,disabled:!f.value,onKeydown:[r[8]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`am`,!0),[`prevent`]),[`up`]),r[9]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`am`,!0),[`prevent`]),[`down`]),r[10]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`am`,!0),[`prevent`]),[`a`]),(0,e.withKeys)(C,[`left`]),(0,e.withKeys)(C,[`backspace`]),(0,e.withKeys)(C,[`delete`])],onClick:r[11]||=e=>O(`am`)},` PM `,40,Lv)):(0,e.createCommentVNode)(``,!0)],2)),t.clearable&&f.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:2,class:(0,e.normalizeClass)([n.$style.ClearAction,u.value&&n.$style.isHidden]),onClick:x},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:close-circle`})],2)):(0,e.createCommentVNode)(``,!0)],2))]),_:2},[n.$slots.label?{name:`label`,fn:(0,e.withCtx)(t=>[(0,e.renderSlot)(n.$slots,`label`,(0,e.normalizeProps)((0,e.guardReactiveProps)(t)))]),key:`0`}:void 0,n.$slots.helpText?{name:`helpText`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`helpText`)]),key:`1`}:void 0]),1032,[`label`,`error`,`help-text`,`help-text-html`,`help-link`,`help-link-icon`,`help-link-tooltip`,`required`]))}}),[[`__cssModules`,{$style:{TimeInputWrapper:`_TimeInputWrapper_19700_1`,hasError:`_hasError_19700_13`,TimeInputWrapper__full:`_TimeInputWrapper__full_19700_19`,TimeInput:`_TimeInput_19700_1`,NativeTimeInput:`_NativeTimeInput_19700_48`,AmPmToggle:`_AmPmToggle_19700_52`,AmPmTogglePlain:`_AmPmTogglePlain_19700_60`,AmPmPlaceholder:`_AmPmPlaceholder_19700_78`,isHidden:`_isHidden_19700_83`,PrefixIcon:`_PrefixIcon_19700_87`,PrefixIcon__clickable:`_PrefixIcon__clickable_19700_95`,Dropdown:`_Dropdown_19700_102`,TimeSelect:`_TimeSelect_19700_113`,ClearAction:`_ClearAction_19700_124`}}]]),Bv=l({ZONE_COUNTRIES:()=>Vv,default:()=>Vv}),Vv,Hv=s((()=>{Vv={"Africa/Abidjan":`CI`,"Africa/Accra":`GH`,"Africa/Algiers":`DZ`,"Africa/Bissau":`GW`,"Africa/Cairo":`EG`,"Africa/Casablanca":`MA`,"Africa/Ceuta":`ES`,"Africa/El_Aaiun":`EH`,"Africa/Johannesburg":`ZA`,"Africa/Juba":`SS`,"Africa/Khartoum":`SD`,"Africa/Lagos":`NG`,"Africa/Maputo":`MZ`,"Africa/Monrovia":`LR`,"Africa/Nairobi":`KE`,"Africa/Ndjamena":`TD`,"Africa/Sao_Tome":`ST`,"Africa/Tripoli":`LY`,"Africa/Tunis":`TN`,"Africa/Windhoek":`NA`,"America/Adak":`US`,"America/Anchorage":`US`,"America/Araguaina":`BR`,"America/Argentina/Buenos_Aires":`AR`,"America/Argentina/Catamarca":`AR`,"America/Argentina/Cordoba":`AR`,"America/Argentina/Jujuy":`AR`,"America/Argentina/La_Rioja":`AR`,"America/Argentina/Mendoza":`AR`,"America/Argentina/Rio_Gallegos":`AR`,"America/Argentina/Salta":`AR`,"America/Argentina/San_Juan":`AR`,"America/Argentina/San_Luis":`AR`,"America/Argentina/Tucuman":`AR`,"America/Argentina/Ushuaia":`AR`,"America/Asuncion":`PY`,"America/Atikokan":`CA`,"America/Bahia":`BR`,"America/Bahia_Banderas":`MX`,"America/Barbados":`BB`,"America/Belem":`BR`,"America/Belize":`BZ`,"America/Blanc-Sablon":`CA`,"America/Boa_Vista":`BR`,"America/Bogota":`CO`,"America/Boise":`US`,"America/Cambridge_Bay":`CA`,"America/Campo_Grande":`BR`,"America/Cancun":`MX`,"America/Caracas":`VE`,"America/Cayenne":`GF`,"America/Chicago":`US`,"America/Chihuahua":`MX`,"America/Costa_Rica":`CR`,"America/Creston":`CA`,"America/Cuiaba":`BR`,"America/Curacao":`CW`,"America/Danmarkshavn":`GL`,"America/Dawson":`CA`,"America/Dawson_Creek":`CA`,"America/Denver":`US`,"America/Detroit":`US`,"America/Edmonton":`CA`,"America/Eirunepe":`BR`,"America/El_Salvador":`SV`,"America/Fort_Nelson":`CA`,"America/Fortaleza":`BR`,"America/Glace_Bay":`CA`,"America/Godthab":`GL`,"America/Goose_Bay":`CA`,"America/Grand_Turk":`TC`,"America/Guatemala":`GT`,"America/Guayaquil":`EC`,"America/Guyana":`GY`,"America/Halifax":`CA`,"America/Havana":`CU`,"America/Hermosillo":`MX`,"America/Indiana/Indianapolis":`US`,"America/Indiana/Knox":`US`,"America/Indiana/Marengo":`US`,"America/Indiana/Petersburg":`US`,"America/Indiana/Tell_City":`US`,"America/Indiana/Vevay":`US`,"America/Indiana/Vincennes":`US`,"America/Indiana/Winamac":`US`,"America/Inuvik":`CA`,"America/Iqaluit":`CA`,"America/Jamaica":`JM`,"America/Juneau":`US`,"America/Kentucky/Louisville":`US`,"America/Kentucky/Monticello":`US`,"America/La_Paz":`BO`,"America/Lima":`PE`,"America/Los_Angeles":`US`,"America/Maceio":`BR`,"America/Managua":`NI`,"America/Manaus":`BR`,"America/Martinique":`MQ`,"America/Matamoros":`MX`,"America/Mazatlan":`MX`,"America/Menominee":`US`,"America/Merida":`MX`,"America/Metlakatla":`US`,"America/Mexico_City":`MX`,"America/Miquelon":`PM`,"America/Moncton":`CA`,"America/Monterrey":`MX`,"America/Montevideo":`UY`,"America/Nassau":`BS`,"America/New_York":`US`,"America/Nipigon":`CA`,"America/Nome":`US`,"America/Noronha":`BR`,"America/North_Dakota/Beulah":`US`,"America/North_Dakota/Center":`US`,"America/North_Dakota/New_Salem":`US`,"America/Ojinaga":`MX`,"America/Panama":`PA`,"America/Pangnirtung":`CA`,"America/Paramaribo":`SR`,"America/Phoenix":`US`,"America/Port_of_Spain":`TT`,"America/Port-au-Prince":`HT`,"America/Porto_Velho":`BR`,"America/Puerto_Rico":`PR`,"America/Punta_Arenas":`CL`,"America/Rainy_River":`CA`,"America/Rankin_Inlet":`CA`,"America/Recife":`BR`,"America/Regina":`CA`,"America/Resolute":`CA`,"America/Rio_Branco":`BR`,"America/Santarem":`BR`,"America/Santiago":`CL`,"America/Santo_Domingo":`DO`,"America/Sao_Paulo":`BR`,"America/Scoresbysund":`GL`,"America/Sitka":`US`,"America/St_Johns":`CA`,"America/Swift_Current":`CA`,"America/Tegucigalpa":`HN`,"America/Thule":`GL`,"America/Thunder_Bay":`CA`,"America/Tijuana":`MX`,"America/Toronto":`CA`,"America/Vancouver":`CA`,"America/Whitehorse":`CA`,"America/Winnipeg":`CA`,"America/Yakutat":`US`,"America/Yellowknife":`CA`,"Antarctica/Casey":`AQ`,"Antarctica/Davis":`AQ`,"Antarctica/DumontDUrville":`AQ`,"Antarctica/Macquarie":`AU`,"Antarctica/Mawson":`AQ`,"Antarctica/Palmer":`AQ`,"Antarctica/Rothera":`AQ`,"Antarctica/Syowa":`AQ`,"Antarctica/Troll":`AQ`,"Antarctica/Vostok":`AQ`,"Asia/Almaty":`KZ`,"Asia/Amman":`JO`,"Asia/Anadyr":`RU`,"Asia/Aqtau":`KZ`,"Asia/Aqtobe":`KZ`,"Asia/Ashgabat":`TM`,"Asia/Atyrau":`KZ`,"Asia/Baghdad":`IQ`,"Asia/Baku":`AZ`,"Asia/Bangkok":`TH`,"Asia/Barnaul":`RU`,"Asia/Beirut":`LB`,"Asia/Bishkek":`KG`,"Asia/Brunei":`BN`,"Asia/Chita":`RU`,"Asia/Choibalsan":`MN`,"Asia/Colombo":`LK`,"Asia/Damascus":`SY`,"Asia/Dhaka":`BD`,"Asia/Dili":`TL`,"Asia/Dubai":`AE`,"Asia/Dushanbe":`TJ`,"Asia/Famagusta":`CY`,"Asia/Gaza":`PS`,"Asia/Hebron":`PS`,"Asia/Ho_Chi_Minh":`VN`,"Asia/Hong_Kong":`HK`,"Asia/Hovd":`MN`,"Asia/Irkutsk":`RU`,"Asia/Jakarta":`ID`,"Asia/Jayapura":`ID`,"Asia/Jerusalem":`IL`,"Asia/Kabul":`AF`,"Asia/Kamchatka":`RU`,"Asia/Karachi":`PK`,"Asia/Kathmandu":`NP`,"Asia/Khandyga":`RU`,"Asia/Kolkata":`IN`,"Asia/Krasnoyarsk":`RU`,"Asia/Kuala_Lumpur":`MY`,"Asia/Kuching":`MY`,"Asia/Macau":`MO`,"Asia/Magadan":`RU`,"Asia/Makassar":`ID`,"Asia/Manila":`PH`,"Asia/Nicosia":`CY`,"Asia/Novokuznetsk":`RU`,"Asia/Novosibirsk":`RU`,"Asia/Omsk":`RU`,"Asia/Oral":`KZ`,"Asia/Pontianak":`ID`,"Asia/Pyongyang":`KP`,"Asia/Qatar":`QA`,"Asia/Qostanay":`KZ`,"Asia/Qyzylorda":`KZ`,"Asia/Riyadh":`SA`,"Asia/Sakhalin":`RU`,"Asia/Samarkand":`UZ`,"Asia/Seoul":`KR`,"Asia/Shanghai":`CN`,"Asia/Singapore":`SG`,"Asia/Srednekolymsk":`RU`,"Asia/Taipei":`TW`,"Asia/Tashkent":`UZ`,"Asia/Tbilisi":`GE`,"Asia/Tehran":`IR`,"Asia/Thimphu":`BT`,"Asia/Tokyo":`JP`,"Asia/Tomsk":`RU`,"Asia/Ulaanbaatar":`MN`,"Asia/Urumqi":`CN`,"Asia/Ust-Nera":`RU`,"Asia/Vladivostok":`RU`,"Asia/Yakutsk":`RU`,"Asia/Yangon":`MM`,"Asia/Yekaterinburg":`RU`,"Asia/Yerevan":`AM`,"Atlantic/Azores":`PT`,"Atlantic/Bermuda":`BM`,"Atlantic/Canary":`ES`,"Atlantic/Cape_Verde":`CV`,"Atlantic/Faroe":`FO`,"Atlantic/Madeira":`PT`,"Atlantic/Reykjavik":`IS`,"Atlantic/South_Georgia":`GS`,"Atlantic/Stanley":`FK`,"Australia/Adelaide":`AU`,"Australia/Brisbane":`AU`,"Australia/Broken_Hill":`AU`,"Australia/Currie":`AU`,"Australia/Darwin":`AU`,"Australia/Eucla":`AU`,"Australia/Hobart":`AU`,"Australia/Lindeman":`AU`,"Australia/Lord_Howe":`AU`,"Australia/Melbourne":`AU`,"Australia/Perth":`AU`,"Australia/Sydney":`AU`,"Europe/Amsterdam":`NL`,"Europe/Andorra":`AD`,"Europe/Astrakhan":`RU`,"Europe/Athens":`GR`,"Europe/Belgrade":`RS`,"Europe/Berlin":`DE`,"Europe/Brussels":`BE`,"Europe/Bucharest":`RO`,"Europe/Budapest":`HU`,"Europe/Chisinau":`MD`,"Europe/Copenhagen":`DK`,"Europe/Dublin":`IE`,"Europe/Gibraltar":`GI`,"Europe/Helsinki":`FI`,"Europe/Istanbul":`TR`,"Europe/Kaliningrad":`RU`,"Europe/Kiev":`UA`,"Europe/Kirov":`RU`,"Europe/Lisbon":`PT`,"Europe/London":`GB`,"Europe/Luxembourg":`LU`,"Europe/Madrid":`ES`,"Europe/Malta":`MT`,"Europe/Minsk":`BY`,"Europe/Monaco":`MC`,"Europe/Moscow":`RU`,"Europe/Oslo":`NO`,"Europe/Paris":`FR`,"Europe/Prague":`CZ`,"Europe/Riga":`LV`,"Europe/Rome":`IT`,"Europe/Samara":`RU`,"Europe/Saratov":`RU`,"Europe/Simferopol":`RU`,"Europe/Sofia":`BG`,"Europe/Stockholm":`SE`,"Europe/Tallinn":`EE`,"Europe/Tirane":`AL`,"Europe/Ulyanovsk":`RU`,"Europe/Uzhgorod":`UA`,"Europe/Vienna":`AT`,"Europe/Vilnius":`LT`,"Europe/Volgograd":`RU`,"Europe/Warsaw":`PL`,"Europe/Zaporozhye":`UA`,"Europe/Zurich":`CH`,"Indian/Chagos":`IO`,"Indian/Christmas":`CX`,"Indian/Cocos":`CC`,"Indian/Kerguelen":`TF`,"Indian/Mahe":`SC`,"Indian/Maldives":`MV`,"Indian/Mauritius":`MU`,"Indian/Reunion":`RE`,"Pacific/Apia":`WS`,"Pacific/Auckland":`NZ`,"Pacific/Bougainville":`PG`,"Pacific/Chatham":`NZ`,"Pacific/Chuuk":`FM`,"Pacific/Easter":`CL`,"Pacific/Efate":`VU`,"Pacific/Enderbury":`KI`,"Pacific/Fakaofo":`TK`,"Pacific/Fiji":`FJ`,"Pacific/Funafuti":`TV`,"Pacific/Galapagos":`EC`,"Pacific/Gambier":`PF`,"Pacific/Guadalcanal":`SB`,"Pacific/Guam":`GU`,"Pacific/Honolulu":`US`,"Pacific/Kiritimati":`KI`,"Pacific/Kosrae":`FM`,"Pacific/Kwajalein":`MH`,"Pacific/Majuro":`MH`,"Pacific/Marquesas":`PF`,"Pacific/Nauru":`NR`,"Pacific/Niue":`NU`,"Pacific/Norfolk":`NF`,"Pacific/Noumea":`NC`,"Pacific/Pago_Pago":`AS`,"Pacific/Palau":`PW`,"Pacific/Pitcairn":`PN`,"Pacific/Pohnpei":`FM`,"Pacific/Port_Moresby":`PG`,"Pacific/Rarotonga":`CK`,"Pacific/Tahiti":`PF`,"Pacific/Tarawa":`KI`,"Pacific/Tongatapu":`TO`,"Pacific/Wake":`UM`,"Pacific/Wallis":`WF`}}));function Uv(){let e=Intl;if(typeof e.supportedValuesOf==`function`)try{return e.supportedValuesOf(`timeZone`)}catch{}return Qv}function Wv(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||`UTC`}catch{return`UTC`}}function Gv(e){if(!e)return!1;try{return new Intl.DateTimeFormat(`en`,{timeZone:e}),!0}catch{return!1}}function Kv(e,t,n){try{return new Intl.DateTimeFormat(n,{timeZone:e,timeZoneName:t}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??``}catch{return``}}function qv(e,t){return Kv(e,`longGeneric`,t)||Kv(e,`long`,t)}function Jv(e,t){return Kv(e,`shortOffset`,t)}function Yv(e){return e.replace(/_/g,` `).split(`/`).reverse().join(`, `)}async function Xv(e){let{ZONE_COUNTRIES:t}=await Promise.resolve().then(()=>(Hv(),Bv)),n=new Set(Uv()),r=new Map;for(let[e,i]of Object.entries(t)){if(!n.has(e))continue;let t=r.get(i);t?t.push(e):r.set(i,[e])}let i;try{i=new Intl.DisplayNames(e?[e]:void 0,{type:`region`})}catch{}return[...r.entries()].map(([e,t])=>({value:e,label:i?.of(e)??e,zones:t.sort((e,t)=>Yv(e).localeCompare(Yv(t)))})).sort((e,t)=>e.label.localeCompare(t.label))}async function Zv(e){let{ZONE_COUNTRIES:t}=await Promise.resolve().then(()=>(Hv(),Bv));return t[e]}var Qv=[`Pacific/Midway`,`Pacific/Honolulu`,`America/Anchorage`,`America/Los_Angeles`,`America/Denver`,`America/Chicago`,`America/New_York`,`America/Halifax`,`America/Sao_Paulo`,`Atlantic/Azores`,`UTC`,`Europe/London`,`Europe/Paris`,`Europe/Athens`,`Europe/Moscow`,`Asia/Dubai`,`Asia/Karachi`,`Asia/Kolkata`,`Asia/Dhaka`,`Asia/Bangkok`,`Asia/Shanghai`,`Asia/Tokyo`,`Australia/Brisbane`,`Australia/Sydney`,`Pacific/Auckland`],$v={key:1},ey=(0,e.defineComponent)({__name:`TimezonePicker`,props:{modelValue:{},label:{},error:{},helpText:{},helpTextHtml:{},helpLink:{},helpLinkIcon:{},helpLinkTooltip:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},guess:{type:Boolean,default:!1},groupByCountry:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},condensed:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.ref)(!1),o=(0,e.ref)(r.modelValue??null),s=(0,e.ref)(null),c=(0,e.ref)(null),l=(0,e.ref)(!1),u=(0,e.computed)(()=>Uv()),d=(0,e.computed)(()=>(c.value??[]).map(e=>({label:e.label,value:e.value}))),f=(0,e.computed)(()=>{if(r.groupByCountry){if(!s.value||!c.value)return[];let e=c.value.find(e=>e.value===s.value);return e?e.zones.map(p):[]}return u.value.map(p)});function p(e){return{label:`${Yv(e)} (${Jv(e)})`,value:e,description:`${qv(e)} · ${(0,V.default)().tz(e).format(`lll`)}`}}let m=(0,e.computed)(()=>{let e=r.modelValue;if(!e||!Gv(e))return null;let t=qv(e),n=Jv(e);return{title:Yv(e),description:t?`${t} (${n})`:n}});async function h(){if(!(!r.groupByCountry||c.value||l.value)){l.value=!0;try{c.value=await Xv()}finally{l.value=!1}}}async function g(e){r.groupByCountry&&(await h(),s.value=await Zv(e)??null)}function _(){r.disabled||r.readonly||(o.value=r.modelValue??Wv(),g(o.value),a.value=!0)}function v(){i(`update:modelValue`,o.value??void 0),a.value=!1}function y(e){o.value=e,r.inline&&i(`update:modelValue`,e)}function b(e){s.value=e;let t=(c.value?.find(t=>t.value===e))?.zones[0]??null;o.value=t,r.inline&&t&&i(`update:modelValue`,t)}return(0,e.watch)(()=>r.modelValue,e=>{r.inline&&(o.value=e??null),e&&g(e)}),(0,e.onMounted)(()=>{if(!r.modelValue&&r.guess){let e=Wv();i(`update:modelValue`,e),o.value=e,g(e)}else r.modelValue?g(r.modelValue):r.groupByCountry&&h()}),(n,r)=>t.inline?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(n_),{key:0},{default:(0,e.withCtx)(()=>[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.groupByCountry?(0,e.unref)(r_):`div`),{condensed:t.groupByCountry&&t.condensed?!0:void 0},{default:(0,e.withCtx)(()=>[t.groupByCountry?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Hg),{key:0,label:(0,e.unref)(K)(`ui.timezonePicker.location`),placeholder:(0,e.unref)(K)(`ui.timezonePicker.locationPlaceholder`),options:d.value,disabled:t.disabled||l.value,readonly:t.readonly,modelValue:s.value,searchable:``,"onUpdate:modelValue":b},null,8,[`label`,`placeholder`,`options`,`disabled`,`readonly`,`modelValue`])):(0,e.createCommentVNode)(``,!0),(0,e.createVNode)((0,e.unref)(Hg),{label:t.label??(0,e.unref)(K)(`ui.timezonePicker.timezone`),placeholder:(0,e.unref)(K)(`ui.timezonePicker.timezonePlaceholder`),options:f.value,modelValue:o.value,disabled:t.disabled,readonly:t.readonly,error:t.error,"help-text":t.helpText,"help-text-html":t.helpTextHtml,"help-link":t.helpLink,"help-link-icon":t.helpLinkIcon,"help-link-tooltip":t.helpLinkTooltip,searchable:``,"onUpdate:modelValue":y},null,8,[`label`,`placeholder`,`options`,`modelValue`,`disabled`,`readonly`,`error`,`help-text`,`help-text-html`,`help-link`,`help-link-icon`,`help-link-tooltip`])]),_:1},8,[`condensed`]))]),_:1})):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,$v,[(0,e.createVNode)((0,e.unref)(Fd),{title:(0,e.unref)(K)(`ui.timezonePicker.title`),visible:a.value,primaryAction:{label:(0,e.unref)(K)(`ui.timezonePicker.update`),disabled:!o.value,onAction:v},secondaryActions:[{label:(0,e.unref)(K)(`ui.timezonePicker.cancel`),onAction:()=>a.value=!1}],"overflow-visible":``,onClose:r[0]||=e=>a.value=!1},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n_),null,{default:(0,e.withCtx)(()=>[t.groupByCountry?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Hg),{key:0,label:(0,e.unref)(K)(`ui.timezonePicker.location`),placeholder:(0,e.unref)(K)(`ui.timezonePicker.locationPlaceholder`),options:d.value,disabled:l.value,modelValue:s.value,searchable:``,"onUpdate:modelValue":b},null,8,[`label`,`placeholder`,`options`,`disabled`,`modelValue`])):(0,e.createCommentVNode)(``,!0),(0,e.createVNode)((0,e.unref)(Hg),{label:(0,e.unref)(K)(`ui.timezonePicker.timezone`),placeholder:(0,e.unref)(K)(`ui.timezonePicker.timezonePlaceholder`),options:f.value,modelValue:o.value,searchable:``,"onUpdate:modelValue":y},null,8,[`label`,`placeholder`,`options`,`modelValue`])]),_:1})]),_:1},8,[`title`,`visible`,`primaryAction`,`secondaryActions`]),(0,e.createVNode)((0,e.unref)(T_),{error:t.error,"help-text":t.helpText,"help-text-html":t.helpTextHtml,"help-link":t.helpLink,"help-link-icon":t.helpLinkIcon,"help-link-tooltip":t.helpLinkTooltip,label:t.label,title:m.value&&m.value.title,description:m.value&&m.value.description,placeholder:(0,e.unref)(K)(`ui.timezonePicker.title`),disabled:t.disabled,readonly:t.readonly,onClick:_},null,8,[`error`,`help-text`,`help-text-html`,`help-link`,`help-link-icon`,`help-link-tooltip`,`label`,`title`,`description`,`placeholder`,`disabled`,`readonly`])]))}}),ty=[`aria-checked`,`aria-required`,`disabled`],ny=.62,ry=`mdi:check`,iy=`mdi:close`,ay=`var(--octans-primary)`,oy=`var(--octans-border-input)`,sy=R((0,e.defineComponent)({inheritAttrs:!1,__name:`ToggleSwitch`,props:{label:{type:[String,Boolean,null],default:void 0},error:{type:[String,Boolean,null],default:void 0},helpText:{type:[String,Boolean,null],default:void 0},helpTextHtml:{type:[String,Boolean,null],default:void 0},helpLink:{type:[String,Boolean,null],default:void 0},helpLinkIcon:{},helpLinkTooltip:{},required:{type:Boolean,default:!1},modelValue:{},trueValue:{default:!0},falseValue:{default:!1},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{default:void 0},colorOn:{default:void 0},colorOff:{default:void 0},size:{default:`medium`},icons:{type:Boolean,default:!0},iconOn:{default:void 0},iconOff:{default:void 0},iconColor:{default:void 0},iconColorOn:{default:void 0},iconColorOff:{default:void 0}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,i=(0,e.useAttrs)(),a=(0,e.computed)(()=>i.class),o=(0,e.computed)(()=>i.style),s=(0,e.computed)(()=>{let{class:e,style:t,...n}=i;return n}),c=t,l=(0,e.computed)(()=>c.modelValue===c.trueValue||c.checked),u={small:{width:42,height:24,knob:18},medium:{width:60,height:34,knob:26},large:{width:78,height:44,knob:34}},d=(0,e.computed)(()=>u[c.size]??u.medium),f=(0,e.computed)(()=>{let{width:e,height:t,knob:n}=d.value,r=(t-n)/2;return{"--ts-width":`${e}px`,"--ts-height":`${t}px`,"--ts-knob":`${n}px`,"--ts-pad":`${r}px`,"--ts-travel":`${e-t}px`}}),p=(0,e.computed)(()=>c.colorOn??c.color??ay),m=(0,e.computed)(()=>c.colorOff??oy),h=(0,e.computed)(()=>l.value?p.value:m.value),g=(0,e.computed)(()=>c.icons?l.value?c.iconOn??ry:c.iconOff??iy:null),_=(0,e.computed)(()=>`${Math.round(d.value.knob*ny)}px`),v=(0,e.computed)(()=>l.value?c.iconColorOn??c.iconColor??p.value:c.iconColorOff??c.iconColor??c.colorOff??`var(--octans-toggle-knob-icon)`);function y(){r(`update:modelValue`,l.value?c.falseValue:c.trueValue)}return(n,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(q),{label:t.label,error:t.error,"help-text":t.helpText,"help-text-html":t.helpTextHtml,"help-link":t.helpLink,"help-link-icon":t.helpLinkIcon,"help-link-tooltip":t.helpLinkTooltip,required:t.required,class:(0,e.normalizeClass)(a.value),style:(0,e.normalizeStyle)(o.value)},(0,e.createSlots)({default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([`UIElement`,n.$style.ToggleSwitch,t.disabled&&n.$style.disabled]),style:(0,e.normalizeStyle)(f.value)},[(0,e.createElementVNode)(`button`,(0,e.mergeProps)(s.value,{type:`button`,role:`switch`,"aria-checked":l.value,"aria-required":t.required||void 0,disabled:t.disabled,class:[n.$style.slider,l.value&&n.$style.checked],style:{backgroundColor:h.value},onClick:y}),[(0,e.createElementVNode)(`span`,{class:(0,e.normalizeClass)(n.$style.handle),"aria-hidden":`true`},[(0,e.renderSlot)(n.$slots,`handle`,{checked:l.value},()=>[g.value?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(z),{key:0,icon:g.value,size:_.value,style:(0,e.normalizeStyle)({color:v.value})},null,8,[`icon`,`size`,`style`])):(0,e.createCommentVNode)(``,!0)])],2)],16,ty)],6)]),_:2},[n.$slots.label?{name:`label`,fn:(0,e.withCtx)(t=>[(0,e.renderSlot)(n.$slots,`label`,(0,e.normalizeProps)((0,e.guardReactiveProps)(t)))]),key:`0`}:void 0,n.$slots.helpText?{name:`helpText`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`helpText`)]),key:`1`}:void 0]),1032,[`label`,`error`,`help-text`,`help-text-html`,`help-link`,`help-link-icon`,`help-link-tooltip`,`required`,`class`,`style`]))}}),[[`__cssModules`,{$style:{ToggleSwitch:`_ToggleSwitch_7y7rh_1`,disabled:`_disabled_7y7rh_7`,slider:`_slider_7y7rh_11`,handle:`_handle_7y7rh_37`,checked:`_checked_7y7rh_53`}}]]),cy=R((0,e.defineComponent)({__name:`LineClamper`,props:{lines:{default:2}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`p`,{class:(0,e.normalizeClass)([`UIElement`,n.$style.LineClamper]),style:(0,e.normalizeStyle)({"-webkit-line-clamp":t.lines})},[(0,e.renderSlot)(n.$slots,`default`)],6))}}),[[`__cssModules`,{$style:{LineClamper:`_LineClamper_1ctij_1`}}]]),ly=R((0,e.defineComponent)({inheritAttrs:!1,__name:`Sticky`,props:{offset:{default:0},position:{default:`top`},disabled:{type:Boolean,default:!1}},emits:[`update:stuck`],setup(t,{expose:n,emit:r}){let i=t,a=r,o=(0,e.ref)(),s=(0,e.ref)(),c=(0,e.ref)(!1),l=(0,e.computed)(()=>{if(i.disabled)return{};let e=typeof i.offset==`number`?`${i.offset}px`:i.offset;return i.position===`bottom`?{position:`sticky`,bottom:e}:{position:`sticky`,top:e}});function u(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e.overflowY+e.overflowX))return t;t=t.parentElement}return null}let d=null,f=0;function p(e){c.value!==e&&(c.value=e,a(`update:stuck`,e))}function m(){let e=o.value,t=s.value;if(!e||!t||i.disabled){p(!1);return}let n=getComputedStyle(e),r=i.position===`bottom`?n.bottom:n.top,a=parseFloat(r)||0,c=t.getBoundingClientRect(),l=d?.getBoundingClientRect(),u=.5;if(i.position===`bottom`){let e=l?l.bottom-d.clientTop:window.innerHeight;p(c.bottom>e-a+u)}else{let e=l?l.top+d.clientTop:0;p(c.top<e+a-u)}}function h(){f||=requestAnimationFrame(()=>{f=0,m()})}function g(){_();let e=o.value;if(!e||i.disabled){p(!1);return}d=u(e),d?.addEventListener(`scroll`,h,{passive:!0}),window.addEventListener(`scroll`,h,{passive:!0}),window.addEventListener(`resize`,h),m()}function _(){d?.removeEventListener(`scroll`,h),window.removeEventListener(`scroll`,h),window.removeEventListener(`resize`,h),d=null}return(0,e.onMounted)(g),(0,e.onBeforeUnmount)(()=>{_(),f&&cancelAnimationFrame(f)}),(0,e.watch)(()=>[i.disabled,i.position,i.offset],g),n({measure:m}),(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,[t.position===`top`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,ref_key:`sentinelEl`,ref:s,class:(0,e.normalizeClass)(n.$style.sentinel),"aria-hidden":`true`},null,2)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,(0,e.mergeProps)({ref_key:`rootEl`,ref:o},n.$attrs,{class:[`UIElement`,n.$style.Sticky,c.value&&`Sticky-stuck`],style:l.value}),[(0,e.renderSlot)(n.$slots,`default`,{stuck:c.value})],16),t.position===`bottom`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,ref_key:`sentinelEl`,ref:s,class:(0,e.normalizeClass)(n.$style.sentinel),"aria-hidden":`true`},null,2)):(0,e.createCommentVNode)(``,!0)],64))}}),[[`__cssModules`,{$style:{Sticky:`_Sticky_1x1cj_1`,sentinel:`_sentinel_1x1cj_5`}}]]),uy={key:0},dy=[`innerHTML`],fy=(0,e.defineComponent)({__name:`SyntaxHighlighter`,props:{code:{},language:{}},setup(t){let n=t,r=(0,e.computed)(()=>{if(!n.code||!n.language)return null;let e=window.Prism;if(!e)return console.warn(`SyntaxHighlighter: Prism.js is not loaded`),null;let t=e.languages[n.language];if(!t)throw Error(`SyntaxHighlighter: Unsupported Prism grammar "${n.language}"`);return e.highlight(n.code,t,n.language)}),i=(0,e.computed)(()=>`language-${n.language}`);return(n,a)=>t.code?((0,e.openBlock)(),(0,e.createElementBlock)(`pre`,{key:1,class:(0,e.normalizeClass)([`Prism`,i.value])},[(0,e.createElementVNode)(`code`,{class:(0,e.normalizeClass)(i.value),innerHTML:r.value},null,10,dy)],2)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,uy,`No code`))}}),py=R((0,e.defineComponent)({__name:`ResourceItem`,emits:[`click`],setup(t,{emit:n}){let r=n;return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,t.$style.ResourceItem]),onClick:n[0]||=e=>r(`click`)},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),[[`__cssModules`,{$style:{ResourceItem:`_ResourceItem_627rx_1`}}]]),my=R((0,e.defineComponent)({__name:`ResourceList`,props:{columns:{default:()=>[]},items:{default:()=>[]}},setup(t){let n=t,r=(0,e.useCssModule)(),i=(0,e.useSlots)(),a=(0,e.computed)(()=>({display:`grid`,gridTemplateColumns:`repeat(${n.columns.length}, 1fr)`}));function o(e){return ph(e.format||``)?r.ResourceList_cell__numeric:``}function s(e,t){return dh(t[e.key],e.format||``)}return(n,c)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,(0,e.unref)(r).ResourceList])},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(r).ResourceList_header),style:(0,e.normalizeStyle)(a.value)},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.columns,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.key,class:(0,e.normalizeClass)([(0,e.unref)(r).ResourceList_headerCell,o(t)])},(0,e.toDisplayString)(t.label),3))),128))],6),(0,e.unref)(i).item?((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,{key:0},(0,e.renderList)(t.items,t=>(0,e.renderSlot)(n.$slots,`item`,{item:t},void 0,void 0,t.id)),128)):((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,{key:1},(0,e.renderList)(t.items,n=>((0,e.openBlock)(),(0,e.createBlock)(py,{key:n.id,class:(0,e.normalizeClass)((0,e.unref)(r).ResourceList_row),style:(0,e.normalizeStyle)(a.value)},{default:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.columns,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.key,class:(0,e.normalizeClass)([(0,e.unref)(r).ResourceList_cell,o(t)])},(0,e.toDisplayString)(s(t,n)),3))),128))]),_:2},1032,[`class`,`style`]))),128))],2))}}),[[`__cssModules`,{$style:{ResourceList_header:`_ResourceList_header_1e833_1`,ResourceList_headerCell:`_ResourceList_headerCell_1e833_6`,ResourceList_row:`_ResourceList_row_1e833_10`,ResourceList_cell:`_ResourceList_cell_1e833_14`,ResourceList_cell__numeric:`_ResourceList_cell__numeric_1e833_18`}}]]),hy=l({ActionList:()=>lo,AppFrame:()=>sp,Badge:()=>lp,Banner:()=>pp,Button:()=>W,ButtonGroup:()=>Od,ButtonGroupItem:()=>Dd,Calendar:()=>yp,CalendarHeatmap:()=>Tp,Caption:()=>Ep,Card:()=>kp,CardSection:()=>Ap,Checkbox:()=>Np,CheckboxControl:()=>Mp,Choice:()=>jp,ChoiceList:()=>Bp,ColorPicker:()=>Sm,ColorSelector:()=>rh,DataTable:()=>kh,DatePicker:()=>Mh,Divider:()=>Fh,EventDelegator:()=>Md,FileInput:()=>dg,Filters:()=>e_,FooterHelp:()=>t_,FormLayout:()=>n_,FormLayoutGroup:()=>r_,Formatter:()=>xh,GlobalNav:()=>s_,GradientPicker:()=>Xm,Heading:()=>c_,Icon:()=>z,InlineError:()=>ef,KeyboardKey:()=>l_,Labelled:()=>q,Layout:()=>p_,LayoutSection:()=>m_,LayoutSectionAnnotated:()=>h_,LineClamper:()=>cy,Link:()=>__,List:()=>y_,ListItem:()=>v_,LoaderOverlay:()=>So,LoadingBar:()=>Io,MaybeMountingPortal:()=>xg,MaybeRouterLink:()=>b_,Modal:()=>Fd,ModalHost:()=>Rd,ModalSection:()=>zd,NavField:()=>T_,Navigation:()=>F_,OtpInput:()=>R_,Page:()=>z_,PageActions:()=>B_,PageLink:()=>__,Pagination:()=>Dh,Popover:()=>pi,Popper:()=>mi,PreventAutoComplete:()=>nf,ProgressBar:()=>H_,RadioButton:()=>Fp,RadioButtonControl:()=>Pp,RangeSlider:()=>q_,Rating:()=>Z_,ResourceItem:()=>py,ResourceList:()=>my,SaveBar:()=>Rf,SaveBarController:()=>Q_,ScrollPane:()=>tp,SegmentedControl:()=>zp,Select:()=>Hg,Sheet:()=>mg,SkeletonBodyText:()=>$_,SkeletonCard:()=>ev,SkeletonDisplayText:()=>ih,SkeletonPage:()=>tv,Spinner:()=>go,Splitter:()=>av,Stack:()=>sv,StackItem:()=>ov,Stat:()=>cv,StatGroup:()=>lv,Sticky:()=>ly,SyntaxHighlighter:()=>fy,Tabs:()=>dv,Tag:()=>_g,TextContainer:()=>hv,TextField:()=>bf,TextStyle:()=>ao,Thumbnail:()=>_v,TimePicker:()=>zv,TimezonePicker:()=>ey,ToastManager:()=>Sv,ToggleSwitch:()=>sy,Tooltip:()=>cp,UiProvider:()=>rp,UnstyledLink:()=>oo,alertModal:()=>Of,appFrameLayoutKey:()=>ip,confirmModal:()=>kf,genericModal:()=>Df,iconBadgeConfig:()=>to,isDatePickerType:()=>Nh,loader:()=>To,progress:()=>zo,promptModal:()=>Af,saveBar:()=>J,saveBarState:()=>Pf,toast:()=>Dv,useAppFrameLayout:()=>ap,useLoader:()=>Eo,useProgress:()=>Bo,useSaveBar:()=>Ff});function gy(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function _y(e){return function(t){return e?.[t]}}var vy=_y({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),yy=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,by=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function xy(e){return e=ju(e),e&&e.replace(yy,vy).replace(by,``)}var Sy=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Cy(e){return e.match(Sy)||[]}var wy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ty(e){return wy.test(e)}var Ey=`\\ud800-\\udfff`,Dy=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Oy=`\\u2700-\\u27bf`,ky=`a-z\\xdf-\\xf6\\xf8-\\xff`,Ay=`\\xac\\xb1\\xd7\\xf7`,jy=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,My=`\\u2000-\\u206f`,Ny=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Py=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Fy=`\\ufe0e\\ufe0f`,Iy=Ay+jy+My+Ny,Ly=`['’]`,Ry=`[`+Iy+`]`,zy=`[`+Dy+`]`,By=`\\d+`,Vy=`[`+Oy+`]`,Hy=`[`+ky+`]`,Uy=`[^`+Ey+Iy+By+Oy+ky+Py+`]`,Wy=`(?:`+zy+`|\\ud83c[\\udffb-\\udfff])`,Gy=`[^`+Ey+`]`,Ky=`(?:\\ud83c[\\udde6-\\uddff]){2}`,qy=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Jy=`[`+Py+`]`,Yy=`\\u200d`,Xy=`(?:`+Hy+`|`+Uy+`)`,Zy=`(?:`+Jy+`|`+Uy+`)`,Qy=`(?:`+Ly+`(?:d|ll|m|re|s|t|ve))?`,$y=`(?:`+Ly+`(?:D|LL|M|RE|S|T|VE))?`,eb=Wy+`?`,tb=`[`+Fy+`]?`,nb=`(?:`+Yy+`(?:`+[Gy,Ky,qy].join(`|`)+`)`+tb+eb+`)*`,rb=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,ib=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,ab=tb+eb+nb,ob=`(?:`+[Vy,Ky,qy].join(`|`)+`)`+ab,sb=RegExp([Jy+`?`+Hy+`+`+Qy+`(?=`+[Ry,Jy,`$`].join(`|`)+`)`,Zy+`+`+$y+`(?=`+[Ry,Jy+Xy,`$`].join(`|`)+`)`,Jy+`?`+Xy+`+`+Qy,Jy+`+`+$y,ib,rb,By,ob].join(`|`),`g`);function cb(e){return e.match(sb)||[]}function lb(e,t,n){return e=ju(e),t=n?void 0:t,t===void 0?Ty(e)?cb(e):Cy(e):e.match(t)||[]}var ub=RegExp(`['’]`,`g`);function db(e){return function(t){return gy(lb(xy(t).replace(ub,``)),e,``)}}var fb=db(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),pb=`data-octans-theme`,mb=`octans-theme`,hb=new Set,gb=`system`,_b=null;function vb(){return typeof document<`u`}function yb(){return!vb()||typeof window.matchMedia!=`function`?null:(_b||(_b=window.matchMedia(`(prefers-color-scheme: dark)`),_b.addEventListener(`change`,()=>{gb===`system`&&bb()})),_b)}function bb(){let e=Sb();for(let t of hb)t(e)}function xb(){return gb}function Sb(){return gb===`system`?yb()?.matches?`dark`:`light`:gb}function Cb(e){gb=e,vb()&&(e===`system`?document.documentElement.removeAttribute(pb):document.documentElement.setAttribute(pb,e)),bb()}function wb(){let e=Sb()===`dark`?`light`:`dark`;return Cb(e),e}function Tb(e){return hb.add(e),()=>hb.delete(e)}function Eb(e=mb){if(vb()){try{let t=window.localStorage.getItem(e);(t===`light`||t===`dark`||t===`system`)&&Cb(t)}catch{}Tb(()=>{try{window.localStorage.setItem(e,gb)}catch{}})}}var Db=[50,100,300,500,600,700],Ob=Object.fromEntries([{prefix:`neutral`,title:`Neutral`,steps:[0,50,100,200,300,400,500,600,700,800,900,950]},{prefix:`primary`,title:`Primary`,steps:[50,100,200,300,400,500,600,700,800,900]},{prefix:`secondary`,title:`Secondary`,steps:Db},{prefix:`tertiary`,title:`Tertiary`,steps:Db},{prefix:`info`,title:`Info`,steps:Db},{prefix:`success`,title:`Success`,steps:Db},{prefix:`warning`,title:`Warning`,steps:Db},{prefix:`error`,title:`Error`,steps:Db}].map(e=>[e.prefix,e])),$=(e,t)=>({name:e,kind:`color`,description:t}),kb=(e,t)=>({name:e,kind:`color`,description:t,derived:!0}),Ab=e=>Ob[e].steps.map(t=>$(`${e}-${t}`)),jb=(e,{states:t=!1}={})=>[$(e,`The solid ${e} fill`),$(`text-on-${e}`,`Content sitting on the ${e} fill`),$(`${e}-surface`,`Soft ${e}-tinted background`),$(`text-${e}`,`Readable ${e} text, on plain or soft surfaces`),...t?[kb(`${e}-hover`,`Fill shaded toward state-mix`),kb(`${e}-active`)]:[]],Mb=[{title:`Neutral ramp`,tier:`primitive`,description:`Greys. Semantic surface, text and border tokens draw on these.`,tokens:Ab(`neutral`)},{title:`Primary ramp`,tier:`primitive`,description:`The brand colour. Redefining this ramp rebrands the whole library, because the semantic primary tokens point at it.`,tokens:Ab(`primary`)},{title:`Secondary ramp`,tier:`primitive`,description:`The second brand colour — a quiet cousin of the primary.`,tokens:Ab(`secondary`)},{title:`Tertiary ramp`,tier:`primitive`,description:`The third brand colour — contrast and variety.`,tokens:Ab(`tertiary`)},{title:`Status ramps`,tier:`primitive`,tokens:[...Ab(`info`),...Ab(`success`),...Ab(`warning`),...Ab(`error`)]},{title:`Surfaces`,tier:`semantic`,tokens:[$(`surface`,`Cards, panels, the default background`),kb(`surface-raised`,`Menus, popovers, modals — above the surface`),$(`surface-sunken`,`Table headers, wells, code blocks`),$(`surface-neutral`,`Neutral chips on a surface — Badge, Tag`),$(`surface-app`,`The application background behind cards`),kb(`surface-hover`,`Hover wash over a surface`),kb(`surface-selected`,`Selected rows and items — the primary's soft tint`),kb(`surface-disabled`,`Disabled controls`),kb(`surface-control`,`Fill of neutral controls — default buttons, the Select control`),$(`surface-tooltip`,`Tooltip body`),$(`surface-nav`,`The app bar (GlobalNav) — its own chrome`),$(`overlay`,`Scrim behind modals`),$(`scrim`,`Veil over a region that is loading`)]},{title:`Text`,tier:`semantic`,tokens:[$(`text`,`Body text`),$(`text-subdued`,`Secondary text, help text, captions`),$(`text-disabled`,`Disabled labels`),$(`text-on-tooltip`,`Text inside a tooltip`),$(`text-on-nav`,`Text on the app bar`),kb(`text-link`,`Links — primary-coloured text`),kb(`text-link-hover`)]},{title:`Borders`,tier:`semantic`,tokens:[$(`border`,`Default dividers and outlines`),$(`border-strong`,`Heavier dividers — decorative`),$(`table-header-border`,`Rule under a DataTable or ResourceList header. Defaults to the row-rule weight; set to border-strong for a heavier bar`),$(`border-input`,`Control outlines — deliberately soft; set to neutral-500 for strict WCAG 1.4.11`),$(`border-error`),$(`border-focus`,`Focus outline colour`)]},{title:`Primary role`,tier:`semantic`,description:`Primary actions, active states, selection, links. Hover/active are derived from the fill via --octans-state-mix.`,tokens:[...jb(`primary`,{states:!0}),$(`focus-ring`,`Focus ring on inputs and buttons`),$(`state-mix`,`What hover/active fills shade toward — black in both themes, so pressed fills never pull away from their own labels`)]},{title:`Secondary role`,tier:`semantic`,description:`The second brand colour. The secondary Button renders its SOFT form (secondary-surface + text-secondary), keeping it quieter than the primary.`,tokens:jb(`secondary`,{states:!0})},{title:`Tertiary role`,tier:`semantic`,tokens:jb(`tertiary`,{states:!0})},{title:`Status roles`,tier:`semantic`,description:`Fills sit behind text-on-<role>, so they stay dark enough for white text in both themes. Use text-<role> for coloured text.`,tokens:[...jb(`info`),...jb(`success`),...jb(`warning`),...jb(`error`,{states:!0}),$(`tint-info`,`What a status tint (Badge, Banner) mixes from. Follows the fill`),$(`tint-success`,`Follows the success fill`),$(`tint-warning`,`The true amber, NOT the warning fill — that is the deep 700 step, chosen to carry white text, and dilutes to beige`),$(`tint-error`,`Follows the error fill`)]},{title:`Miscellaneous`,tier:`semantic`,tokens:[kb(`skeleton`,`Placeholder blocks in loading states`),$(`scrollbar-thumb`),kb(`scrollbar-thumb-hover`),$(`toggle-knob`,`ToggleSwitch knob. Stays light in dark mode, so it does not follow the theme`),$(`toggle-knob-icon`,`Unchecked icon on the ToggleSwitch knob. Fixed for the same reason`),$(`rating`,`Filled stars in a Rating. Brighter than the warning fill, which is deep enough to carry white text`)]},{title:`Elevation`,tier:`semantic`,description:`Redefined per theme — a black shadow is invisible on a dark surface.`,tokens:[{name:`shadow-sm`,kind:`shadow`},{name:`shadow-md`,kind:`shadow`},{name:`shadow-lg`,kind:`shadow`},{name:`shadow-control`,kind:`shadow`,description:`The hairline under a resting button or input`},{name:`shadow-overflow`,kind:`color`,description:`Edge fade on a ScrollPane with more content off screen. A colour, since it is one end of a gradient rather than a box-shadow`}]},{title:`Radii`,tier:`semantic`,description:`Role-named: field rounds hand-sized controls, box rounds containers. Two knobs make a theme — 0/0 is square, 8/16 is soft.`,tokens:[{name:`radius-field`,kind:`radius`,description:`Buttons, inputs, checkboxes, swatches`},{name:`radius-box`,kind:`radius`,description:`Cards, popovers, modals, tooltips`},{name:`radius-full`,kind:`radius`,description:`Pills and round buttons`}]},{title:`Badge & Banner`,tier:`semantic`,description:`How strongly a status Badge or Banner tints itself with its role colour. Two dials rather than one, because a badge is a small object that has to hold its own against the card it sits on and a banner is a large panel where the same strength stops being a background. The four surfaces under each are DERIVED from that component’s dial — move the dial and all four follow; set one directly only to make a single status sit apart.`,tokens:[{name:`badge-surface-strength`,kind:`percent`,description:`How much role colour a status Badge mixes in`},{name:`banner-surface-strength`,kind:`percent`,description:`How much role colour a status Banner mixes in`},{name:`badge-ink`,kind:`color`,description:`Forces one label colour on every status Badge. Unset = each status keeps its own text colour`},{name:`banner-ink`,kind:`color`,description:`Forces one label colour on every status Banner. Unset = each status keeps its own text colour`},{name:`badge-info-surface`,kind:`color`,description:`Derived from the Badge dial`},{name:`badge-success-surface`,kind:`color`,description:`Derived from the Badge dial`},{name:`badge-warning-surface`,kind:`color`,description:`Derived from the Badge dial`},{name:`badge-error-surface`,kind:`color`,description:`Derived from the Badge dial`},{name:`banner-info-surface`,kind:`color`,description:`Derived from the Banner dial`},{name:`banner-success-surface`,kind:`color`,description:`Derived from the Banner dial`},{name:`banner-warning-surface`,kind:`color`,description:`Derived from the Banner dial`},{name:`banner-error-surface`,kind:`color`,description:`Derived from the Banner dial`}]},{title:`Tabs`,tier:`semantic`,description:`The mark under the selected tab — the one part of a component that lives in the theme, so a product can carry the choice rather than set it in code. The defaults draw an underline; a rounded bar sitting on the divider is the same mark with different numbers (5px / rounded / offset -2px / gap 8px).`,tokens:[{name:`tabs-indicator-height`,kind:`length`,description:`Thickness of the mark`},{name:`tabs-indicator-radius`,kind:`radius`,description:`Rounding of the mark — 0 is a square rule`},{name:`tabs-indicator-offset`,kind:`length`,description:`Vertical shift; negative drops it onto the divider`},{name:`tabs-label-gap`,kind:`length`,description:`Space between the label and the mark`}]},{title:`Sheet`,tier:`semantic`,description:`How big a Sheet is and how fast it moves. In the theme rather than the global stylesheet for the same reason as the Tabs indicator: how wide a product’s sheets are, and whether they glide or snap, is a decision worth carrying rather than repeating at every call site. The size and the two durations are read by Sheet from the computed style — it slides by a transform it computes itself, so the numbers have to reach it as numbers — and are re-read each time a sheet opens.`,tokens:[{name:`sheet-size`,kind:`length`,description:`Default width of a left/right sheet, height of a top/bottom one`},{name:`sheet-padding`,kind:`length`,description:"Gutter that `<Sheet padded>` puts around its content"},{name:`sheet-in-duration`,kind:`duration`,description:`Default open animation; 0ms opens instantly`},{name:`sheet-out-duration`,kind:`duration`,description:`Default close animation; 0ms closes instantly`},{name:`sheet-footer-align`,kind:`keyword`,description:`How the footer slot lays its row out — any justify-content value`},{name:`sheet-footer-gap`,kind:`length`,description:`Space between items in a sheet footer`}]},{title:`Icons`,tier:`semantic`,description:`Two knobs an app sets once instead of passing props at every call site. Both defaults are what the library has always drawn, so setting either is opt-in and cannot silently move existing icons.`,tokens:[{name:`icon-size`,kind:`length`,description:"Size of an Icon with no `size` prop. 1em follows the surrounding font"},{name:`icon-valign`,kind:`length`,description:`Vertical alignment of every Icon; -0.125em suits icons inline with text`}]},{title:`Typography`,tier:`semantic`,tokens:[{name:`font`,kind:`font`},{name:`font-mono`,kind:`font`}]}];Mb.flatMap(e=>e.tokens.map(e=>e.name)),Object.fromEntries(Mb.flatMap(e=>e.tokens).map(e=>[e.name,e])),[`neutral`,`primary`,`secondary`,`tertiary`,`info`,`success`,`warning`,`error`].filter(e=>e!==`neutral`);var Nb=(e,t)=>{if(e.config.globalProperties.$t=Xd,t?.translations)for(let[e,n]of Object.entries(t.translations))Kd(e,n);t?.locale&&(qd(t.locale),dd(t.locale));for(let[n,r]of Object.entries(hy))Pb(n,r)&&e.component(t?.prefix?fb(`${t.prefix}-${n}`):n,r);e.config.globalProperties.$ui=Fb};function Pb(e,t){return/^[A-Z]/.test(e)?typeof t==`function`||typeof t==`object`&&!!t&&(`render`in t||`setup`in t||`__file`in t):!1}var Fb={components:hy,install:Nb,format:dh,setLocale:dd,translate:Xd,t:Xd,setTimezone:pd,getTimezone:md,setTranslations:Gd,addTranslations:Kd,setTranslationLocale:qd,getTranslationLocale:Jd,getAvailableLocales:Yd,setTheme:Cb,toggleTheme:wb,getResolvedTheme:Sb,getThemePreference:xb,onThemeChange:Tb,persistTheme:Eb,toast:Dv,modal:Df,alert:Of,confirm:kf,prompt:Af,progress:zo,loader:To,saveBar:J};return Fb});
|
|
10
|
+
)`),r});return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,t.$style.Stats]),style:(0,e.normalizeStyle)(r.value)},[(0,e.renderSlot)(t.$slots,`default`)],6))}}),[[`__cssModules`,{$style:{Stats:`_Stats_dsaqp_1`}}]]),uv=[`onClick`],dv=R((0,e.defineComponent)({__name:`Tabs`,props:{selected:{},tabs:{default:()=>[]},indicator:{}},emits:[`update:selected`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.useSlots)(),o=(0,e.useCssModule)(),s={underline:`indicatorUnderline`,bar:`indicatorBar`},c=(0,e.computed)(()=>r.indicator?o[s[r.indicator]]:null),l=(0,e.ref)({}),u=(0,e.ref)(),d=(0,e.ref)([]),f=(0,e.ref)(null),p=(0,e.computed)(()=>r.tabs.filter(e=>l.value[e.value]));function m(t){return a.tab?a.tab({tab:t}):[t.label,t.badge?(0,e.h)(lp,{status:t.badgeStatus,progress:t.badgeProgress,class:o.Tab_badge},()=>t.badge):null]}let h=(0,e.defineComponent)({props:{tab:{type:Object,required:!0}},setup:e=>()=>m(e.tab)}),g=(0,e.computed)(()=>p.value.map(e=>({label:e.label,icon:e.value===r.selected?`mdi:check`:null,disabled:e.disabled,content:()=>m(e),onAction:()=>y(e)}))),_=(0,e.computed)(()=>p.value.some(e=>e.value===r.selected)),v=(0,e.computed)(()=>{let e=r.tabs.find(e=>e.value===r.selected);return _.value&&e?.label||``});function y(e){e.disabled||i(`update:selected`,e.value,e)}function b(){let e={},t=u.value?.getBoundingClientRect().width,n=150;d.value.forEach((i,a)=>{let o=r.tabs[a],s=i.offsetWidth;n+=s,e[o.value]=n>=(t||0)}),l.value=e}return(0,e.onMounted)(()=>{u.value&&(f.value=new ResizeObserver($f(b,100,{leading:!0,trailing:!0})),f.value.observe(u.value))}),(0,e.onBeforeUnmount)(()=>{f.value&&=(f.value.disconnect(),null)}),(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,(0,e.unref)(o).Tabs,c.value])},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(o).Tab_container),ref_key:`tabContainer`,ref:u},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.tabs,n=>((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:n.value,type:`button`,class:(0,e.normalizeClass)([(0,e.unref)(o).Tab,n.disabled&&(0,e.unref)(o).Tab__disabled,t.selected===n.value&&(0,e.unref)(o).Tab__selected]),onClick:e=>y(n),onMouseup:r[0]||=e=>e.currentTarget?.blur(),ref_for:!0,ref_key:`tabElements`,ref:d,style:(0,e.normalizeStyle)({visibility:l.value[n.value]?`hidden`:`visible`,position:l.value[n.value]?`absolute`:`relative`})},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(o).Tab_title)},[(0,e.createVNode)((0,e.unref)(h),{tab:n},null,8,[`tab`])],2),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(o).Tab_bar)},null,2)],46,uv))),128)),g.value.length>0?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(lo),{key:0,items:g.value,placement:`bottom-end`,class:(0,e.normalizeClass)([(0,e.unref)(o).TruncatedTabsButton,_.value&&(0,e.unref)(o).selected])},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(W),{type:`link`,icon:v.value?``:`mdi:dots-horizontal`,dropdown:!!v.value},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(v.value),1)]),_:1},8,[`icon`,`dropdown`])]),_:1},8,[`items`,`class`])):(0,e.createCommentVNode)(``,!0)],2)],2))}}),[[`__cssModules`,{$style:{indicatorUnderline:`_indicatorUnderline_1pw24_10`,indicatorBar:`_indicatorBar_1pw24_17`,Tab_container:`_Tab_container_1pw24_24`,Tab:`_Tab_1pw24_24`,Tab__disabled:`_Tab__disabled_1pw24_44`,Tab_title:`_Tab_title_1pw24_44`,Tab_bar:`_Tab_bar_1pw24_53`,Tab__selected:`_Tab__selected_1pw24_63`,Tab_badge:`_Tab_badge_1pw24_93`,TruncatedTabsButton:`_TruncatedTabsButton_1pw24_100`,selected:`_selected_1pw24_107`}}]]),fv={TextContainer:`_TextContainer_rpyk3_1`},pv={};function mv(t,n){return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,t.$style.TextContainer])},[(0,e.renderSlot)(t.$slots,`default`)],2)}var hv=R(pv,[[`render`,mv],[`__cssModules`,{$style:fv}]]),gv=[`src`,`alt`],_v=R((0,e.defineComponent)({__name:`Thumbnail`,props:{title:{},subtitle:{},url:{},alt:{},size:{default:`small`},noBorder:{type:Boolean,default:!1}},setup(t){let n=t,r=(0,e.ref)(!0);return(0,e.watch)(()=>n.url,e=>{!r.value&&e&&(r.value=!0)}),(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,n.$style.Thumbnail])},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([n.$style.Thumbnail__container,n.$style[`Thumbnail__${t.size}`],t.noBorder&&n.$style.Thumbnail__no_border])},[r.value?((0,e.openBlock)(),(0,e.createElementBlock)(`img`,{key:0,onError:i[0]||=e=>r.value=!1,class:(0,e.normalizeClass)(n.$style.Thumbnail__image),src:t.url,alt:t.alt},null,42,gv)):(0,e.createCommentVNode)(``,!0),!t.url||!r.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([n.$style.Thumbnail__placeholder,n.$style[`Thumbnail__placeholder__${t.size}`]])},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:image`})],2)):(0,e.createCommentVNode)(``,!0)],2),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Thumbnail__content)},[t.title?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)(n.$style.Thumbnail__heading)},(0,e.toDisplayString)(t.title),3)):(0,e.createCommentVNode)(``,!0),t.subtitle?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)(n.$style.Thumbnail__subtitle)},(0,e.toDisplayString)(t.subtitle),3)):(0,e.createCommentVNode)(``,!0),(0,e.renderSlot)(n.$slots,`default`)],2)],2))}}),[[`__cssModules`,{$style:{Thumbnail:`_Thumbnail_jh8fw_1`,Thumbnail__container:`_Thumbnail__container_jh8fw_4`,Thumbnail__image:`_Thumbnail__image_jh8fw_13`,Thumbnail__placeholder:`_Thumbnail__placeholder_jh8fw_17`,Thumbnail__placeholder__medium:`_Thumbnail__placeholder__medium_jh8fw_26`,Thumbnail__placeholder__large:`_Thumbnail__placeholder__large_jh8fw_29`,Thumbnail__placeholder__extraLarge:`_Thumbnail__placeholder__extraLarge_jh8fw_32`,Thumbnail__no_border:`_Thumbnail__no_border_jh8fw_35`,Thumbnail__content:`_Thumbnail__content_jh8fw_43`,Thumbnail__heading:`_Thumbnail__heading_jh8fw_48`,Thumbnail__subtitle:`_Thumbnail__subtitle_jh8fw_53`,Thumbnail__extraSmall:`_Thumbnail__extraSmall_jh8fw_58`,Thumbnail__small:`_Thumbnail__small_jh8fw_62`,Thumbnail__medium:`_Thumbnail__medium_jh8fw_66`,Thumbnail__large:`_Thumbnail__large_jh8fw_70`,Thumbnail__extraLarge:`_Thumbnail__extraLarge_jh8fw_74`}}]]),vv=R((0,e.defineComponent)({__name:`ProgressBar`,props:{value:{default:0}},setup(t){let n=t,r=(0,e.computed)(()=>yd(n.value,0,100));return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)(t.$style.ProgressBar)},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(t.$style.Track)},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(t.$style.InnerTrack)},null,2),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(t.$style.Bar),style:(0,e.normalizeStyle)(`width: `+r.value+`%`)},null,6)],2)],2))}}),[[`__cssModules`,{$style:{Track:`_Track_1rsbl_1`,InnerTrack:`_InnerTrack_1rsbl_8`,Bar:`_Bar_1rsbl_17`}}]]),yv=[`onClick`],bv=R((0,e.defineComponent)({__name:`Toast`,props:{item:{},contrasting:{type:Boolean,default:!0}},emits:[`remove`,`pause`,`resume`],setup(t){let n=t,r=(0,e.computed)(()=>typeof n.item.progress==`number`);return(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([n.$style.Toast,!t.contrasting&&n.$style.Toast_light,t.item.tone&&n.$style[`Toast_tone_`+t.item.tone]]),onMouseenter:i[1]||=e=>n.$emit(`pause`,t.item),onMouseleave:i[2]||=e=>n.$emit(`resume`,t.item)},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Content)},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Header)},[t.item.icon?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(z),{key:0,class:(0,e.normalizeClass)(n.$style.Header_icon),icon:t.item.icon},null,8,[`class`,`icon`])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Header_title)},(0,e.toDisplayString)(t.item.title),3),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Header_right)},[t.item.loading?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(go),{key:0,size:`small`,color:t.contrasting?`white`:``},null,8,[`color`])):((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(z),{key:1,class:(0,e.normalizeClass)(n.$style.Header_close),icon:`mdi:close`,onClick:i[0]||=e=>n.$emit(`remove`,t.item)},null,8,[`class`]))],2)],2),t.item.content?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)(n.$style.Body)},(0,e.toDisplayString)(t.item.content),3)):(0,e.createCommentVNode)(``,!0),r.value?((0,e.openBlock)(),(0,e.createBlock)(vv,{key:1,class:(0,e.normalizeClass)(n.$style.ProgressBar),value:t.item.progress||0},null,8,[`class`,`value`])):(0,e.createCommentVNode)(``,!0),t.item.actions&&t.item.actions.length?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:2,class:(0,e.normalizeClass)(n.$style.Actions)},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.item.actions,(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:r,class:(0,e.normalizeClass)(n.$style.Action),onClick:()=>t.onAction?.()},(0,e.toDisplayString)(t.label),11,yv))),128))],2)):(0,e.createCommentVNode)(``,!0)],2)],34))}}),[[`__cssModules`,{$style:{Toast:`_Toast_12rgn_1`,Toast_light:`_Toast_light_12rgn_22`,Toast_tone_success:`_Toast_tone_success_12rgn_29`,Header_icon:`_Header_icon_12rgn_32`,Toast_tone_warning:`_Toast_tone_warning_12rgn_36`,Toast_tone_error:`_Toast_tone_error_12rgn_43`,Toast_tone_info:`_Toast_tone_info_12rgn_50`,Content:`_Content_12rgn_57`,Header:`_Header_12rgn_32`,Header_title:`_Header_title_12rgn_73`,Header_right:`_Header_right_12rgn_81`,Header_close:`_Header_close_12rgn_85`,Body:`_Body_12rgn_94`,ProgressBar:`_ProgressBar_12rgn_99`,Actions:`_Actions_12rgn_103`,Action:`_Action_12rgn_103`}}]]),xv={success:`mdi:check-circle-outline`,warning:`mdi:alert-outline`,error:`mdi:close-circle-outline`,info:`mdi:information-outline`},Q=new class{nextId;items;config;timers;hosts;hostWatchers;constructor(){this.nextId=0,this.items=(0,e.reactive)([]),this.config=(0,e.reactive)({}),this.timers=new Map,this.hosts=0,this.hostWatchers=new Set}addItem(t){let n=(0,e.reactive)({title:``,loading:!1,duration:4500,...t,_id:this.nextId++,remove:()=>this.removeItem(n)});return n.tone&&!n.icon&&(n.icon=xv[n.tone]),!t.duration&&(typeof n.progress==`number`||n.loading||Array.isArray(n.actions)&&n.actions.length)&&(n.duration=0),n.duration&&this.startTimer(n,n.duration),this.items.push(n),n}startTimer(e,t){this.clearTimer(e);let n=t??(e.duration||4500);this.timers.set(e._id,{handle:setTimeout(()=>this.removeItem(e),n),startedAt:Date.now(),remaining:n})}pauseTimer(e){let t=this.timers.get(e._id);t&&(clearTimeout(t.handle),t.remaining-=Date.now()-t.startedAt)}resumeTimer(e){let t=this.timers.get(e._id);t&&(t.remaining>0?(t.startedAt=Date.now(),t.handle=setTimeout(()=>this.removeItem(e),t.remaining)):this.removeItem(e))}clearTimer(e){let t=this.timers.get(e._id);t&&(clearTimeout(t.handle),this.timers.delete(e._id))}removeItem(e){this.clearTimer(e);let t=this.items.indexOf(e);t>=0&&this.items.splice(t,1)}clearAll(){for(let e of this.timers.values())clearTimeout(e.handle);this.timers.clear(),this.items.splice(0)}configure(e){Object.assign(this.config,e)}addHost(){this.hosts++;for(let e of this.hostWatchers)e()}removeHost(){this.hosts=Math.max(0,this.hosts-1)}watchHosts(e){return this.hostWatchers.add(e),()=>{this.hostWatchers.delete(e)}}},Sv=R((0,e.defineComponent)({__name:`ToastManager`,props:{position:{default:`se`},offset:{default:0},contrasting:{type:Boolean,default:!0}},setup(t){let n=t,r=[`nw`,`n`,`ne`,`w`,`e`,`sw`,`s`,`se`];(0,e.onMounted)(()=>Q.addHost()),(0,e.onUnmounted)(()=>Q.removeHost());let i=(0,e.computed)(()=>{let e=Q.config.offset??n.offset;return{position:Q.config.position??n.position,offset:typeof e==`number`?{x:e,y:e}:{x:e.x||0,y:e.y||0},contrasting:Q.config.contrasting??n.contrasting}}),a=(0,e.computed)(()=>r.map(e=>{let t=Q.items.filter(t=>(t.position||i.value.position)===e);return e.startsWith(`n`)&&(t=t.slice().reverse()),{position:e,items:t}}).filter(e=>e.items.length));function o(e){let{x:t,y:n}=i.value.offset,r={};return e.startsWith(`n`)?r.top=n+`px`:e.startsWith(`s`)?r.bottom=n+`px`:r.top=`calc(50% + ${n}px)`,e.endsWith(`e`)?r.right=t+`px`:r.left=e.endsWith(`w`)?t+`px`:`calc(50% + ${t}px)`,r}function s(e){Q.removeItem(e)}function c(e){Q.pauseTimer(e)}function l(e){Q.resumeTimer(e)}return(t,n)=>((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.value,n=>((0,e.openBlock)(),(0,e.createBlock)(e.TransitionGroup,{key:n.position,tag:`div`,role:`status`,"aria-live":`polite`,class:(0,e.normalizeClass)([`UIElement`,t.$style.Stack,t.$style[`Stack_`+n.position]]),style:(0,e.normalizeStyle)(o(n.position)),"enter-active-class":t.$style.enterActive,"leave-active-class":t.$style.leaveActive,"enter-from-class":t.$style.enter,"leave-to-class":t.$style.leaveTo,"move-class":t.$style.moveTo},{default:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(n.items,t=>((0,e.openBlock)(),(0,e.createBlock)(bv,{key:t._id,item:t,contrasting:t.contrasting??i.value.contrasting,onRemove:s,onPause:c,onResume:l},null,8,[`item`,`contrasting`]))),128))]),_:2},1032,[`class`,`style`,`enter-active-class`,`leave-active-class`,`enter-from-class`,`leave-to-class`,`move-class`]))),128))}}),[[`__cssModules`,{$style:{Stack:`_Stack_emazc_1`,Stack_n:`_Stack_n_emazc_12`,Stack_s:`_Stack_s_emazc_13`,Stack_e:`_Stack_e_emazc_17`,Stack_w:`_Stack_w_emazc_18`,enterActive:`_enterActive_emazc_22`,leaveActive:`_leaveActive_emazc_23`,enter:`_enter_emazc_22`,leaveTo:`_leaveTo_emazc_30`,Stack_nw:`_Stack_nw_emazc_35`,Stack_ne:`_Stack_ne_emazc_37`,moveTo:`_moveTo_emazc_54`}}]]),Cv=null,wv=null;function Tv(){Cv?.unmount(),wv?.remove(),Cv=null,wv=null}Q.watchHosts(()=>{Cv&&Q.hosts>1&&queueMicrotask(Tv)});function Ev(){typeof document>`u`||Cv||Q.hosts>0||(wv=document.createElement(`div`),wv.id=`uiToastManager`,document.body.appendChild(wv),Cv=(0,e.createApp)(Sv),Cv.mount(wv))}function Dv(e){return Ev(),Q.addItem(e)}Dv.clearAll=()=>{Q.clearAll()},Dv.configure=e=>{Q.configure(e)};function Ov(e,t,n){return typeof e==`function`&&(e=e(t)),typeof e==`string`?{title:e}:e||{title:n}}Dv.promise=(e,t)=>{let n=Dv({loading:!0,...Ov(t.loading,void 0,`Loading..`)}),r=(e,t)=>{Object.assign(n,{loading:!1,progress:void 0,tone:t,icon:xv[t],...e});let r=e.duration??4500;r&&Q.startTimer(n,r)};return e.then(e=>r(Ov(t.success,e,`Done`),`success`),e=>r(Ov(t.error,e,`Something went wrong`),`error`)),n};var kv=[`value`,`disabled`,`readonly`,`aria-required`],Av=[`value`],jv=[`value`,`disabled`],Mv=[`value`],Nv=[`value`,`disabled`],Pv=[`value`],Fv=[`value`,`placeholder`,`disabled`,`readonly`,`aria-required`],Iv=[`disabled`],Lv=[`disabled`],Rv=`--:--`,zv=R((0,e.defineComponent)({__name:`TimePicker`,props:{label:{type:[String,Boolean],default:``},error:{type:[String,Boolean],default:``},helpText:{type:[String,Boolean]},helpTextHtml:{type:[String,Boolean]},helpLink:{type:[String,Boolean]},helpLinkIcon:{},helpLinkTooltip:{},placeholder:{default:``},prefixIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},modelValue:{default:`00:00:00`},modelFormat:{default:`HH:mm:ss`},minTime:{default:`00:00`},maxTime:{default:`23:59`},clearable:{type:Boolean,default:!1},width:{default:`full`},is24Hour:{type:Boolean,default:!1},minuteStep:{default:15},minuteStepStrict:{type:Boolean,default:!1},required:{type:Boolean},autoOpen:{type:Boolean,default:!0}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.useTemplateRef)(`timeInput`),o=(0,e.useTemplateRef)(`amButton`),s=(0,e.useTemplateRef)(`pmButton`),c=(0,e.ref)(0),l=(0,e.ref)(0),u=(0,e.ref)(!1),d=(0,e.ref)(!1),f=(0,e.computed)(()=>!r.disabled&&!r.readonly);(0,e.onMounted)(()=>{d.value=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)});let p=e=>{if(!e){u.value=!0,c.value=0,l.value=0;return}u.value=!1;let t=(0,V.default)(e,r.modelFormat,!0);if(t.isValid()){c.value=t.hour(),l.value=t.minute();return}let[n=0,i=0]=e.split(`:`).map(Number);c.value=isNaN(n)?0:n,l.value=isNaN(i)?0:i},m=()=>{u.value&&(u.value=!1,c.value=0,l.value=0)};(0,e.watch)(()=>r.modelValue,e=>{p(e)},{immediate:!0});let h=(0,e.computed)(()=>c.value<12),g=(0,e.computed)(()=>{let e=c.value;return r.is24Hour||(c.value===0?e=12:c.value>12&&(e=c.value-12)),`${String(e).padStart(2,`0`)}:${String(l.value).padStart(2,`0`)}`}),_=(0,e.computed)(()=>u.value?``:g.value),v=(0,e.computed)(()=>u.value?``:`${U(c.value)}:${U(l.value)}`),y=(0,e.computed)(()=>{if(u.value)return r.error;let e=`${U(c.value)}:${U(l.value)}`,t=r.minTime?.substring(0,5),n=r.maxTime?.substring(0,5);return t&&e<t?`Must be on or after ${t}`:n&&e>n?`Must be on or before ${n}`:r.error}),b=()=>{let e=(0,V.default)().hour(c.value).minute(l.value).second(0);i(`update:modelValue`,e.format(r.modelFormat))},x=()=>{f.value&&i(`update:modelValue`,null)},S=(t,n)=>{if(!a.value||!f.value)return;let i=a.value.selectionStart??0,u=a.value.selectionEnd??0;if([`left`,`right`].includes(n)){u===i&&n===`right`&&i===5&&(r.is24Hour||(h.value?o.value:s.value)?.focus());return}m();let d=n===`up`?1:-1;if(i<=2)c.value=(c.value+d+24)%24;else{let e=l.value;if(t.shiftKey){let e=l.value+d;l.value=(e+60)%60,(e>=60||e<0)&&(c.value=(c.value+d+24)%24)}else{let t=r.minuteStep;d>0?(l.value=(Math.floor(e/t)*t+t)%60,l.value<=e&&(c.value=(c.value+1+24)%24)):(l.value=(Math.ceil(e/t)*t-t+60)%60,l.value>=e&&(c.value=(c.value-1+24)%24))}}b(),(0,e.nextTick)(()=>{a.value&&a.value.setSelectionRange(i,u)})},C=e=>{let t=a.value;t&&(t.focus(),t.setSelectionRange(5,5),e.preventDefault())},w=t=>{let n=t.target;if(!f.value){n.value=_.value;return}m();let i=n.selectionStart??0,a=t.data,u=i;if(a===`:`||a===` `)i<=3?u=3:--u,t.preventDefault();else if(a&&/[0-9]/.test(a)){let e=parseInt(a,10);if(i<=2){let t=parseInt(g.value.substring(0,2),10),n;if(i===1&&e>(r.is24Hour?2:1))n=`0${e}`,u=3;else{let r=String(t).padStart(2,`0`);n=i===1?`${e}${r[1]}`:`${r[0]}${e}`}let a=parseInt(n,10);r.is24Hour?c.value=Math.min(a,23):(a=Math.max(1,Math.min(a,12)),h.value?c.value=a===12?0:a:c.value=a===12?12:a+12)}else{let t=String(l.value).padStart(2,`0`),n;i<=4?(n=`${e}${t[1]}`,u=4):n=`${t[0]}${e}`,l.value=Math.min(parseInt(n,10),59)}}else a&&!r.is24Hour&&[`a`,`p`].includes(a.toLowerCase())&&(a.toLowerCase()===`a`?O(`am`):O(`pm`),--u,u===5&&(0,e.nextTick)(()=>{(h.value?o.value:s.value)?.focus()}));b(),(0,e.nextTick)(()=>{n.value=g.value,n.setSelectionRange(u,u)})},T=()=>{a.value&&((a.value.selectionStart??0)<=2?a.value.setSelectionRange(0,2):a.value.setSelectionRange(3,5))},E=()=>{let e=r.minuteStep;if(!e||e<=0)return;let t=Math.round(l.value/e)*e;t>=60?(l.value=t%60,c.value=(c.value+Math.floor(t/60))%24):l.value=t},D=()=>{u.value||(r.minuteStepStrict&&E(),b())},O=(t,n=!1)=>{f.value&&(t===`am`&&!h.value?c.value-=12:t===`pm`&&h.value&&(c.value+=12),n&&(0,e.nextTick)(()=>{t===`am`?o.value?.focus():s.value?.focus()}),b())},k=(0,e.computed)(()=>c.value===0?12:c.value>12?c.value-12:c.value),A=(0,e.computed)(()=>{let e=parseInt(r.minTime.substring(0,2),10),t=parseInt(r.maxTime.substring(0,2),10),n=[];if(r.is24Hour)for(let r=0;r<24;r++)n.push({value:r,label:U(r),disabled:r<e||r>t});else for(let e=1;e<=12;e++)n.push({value:e,label:U(e),disabled:!1});return n}),j=(0,e.computed)(()=>{let e=r.minuteStep>0?r.minuteStep:1,t=new Set;for(let n=0;n<60;n+=e)t.add(n);t.add(l.value);let n=r.minTime.substring(0,5),i=r.maxTime.substring(0,5);return[...t].sort((e,t)=>e-t).map(e=>{let t=`${U(c.value)}:${U(e)}`;return{value:e,label:U(e),disabled:t<n||t>i}})}),M=e=>{m();let t=parseInt(e.target.value,10);r.is24Hour?c.value=t:h.value?c.value=t===12?0:t:c.value=t===12?12:t+12,b()},ee=e=>{m(),l.value=parseInt(e.target.value,10),b()},te=e=>{m(),O(e.target.value)},ne=e=>{if(!f.value)return;let t=e.target;if(!t.value){u.value=!0,i(`update:modelValue`,null);return}u.value=!1;let[n=0,r=0]=t.value.split(`:`).map(Number);c.value=isNaN(n)?0:n,l.value=isNaN(r)?0:r,b()};return(n,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(q),{label:t.label,error:y.value,"help-text":t.helpText,"help-text-html":t.helpTextHtml,"help-link":t.helpLink,"help-link-icon":t.helpLinkIcon,"help-link-tooltip":t.helpLinkTooltip,required:t.required},(0,e.createSlots)({default:(0,e.withCtx)(()=>[d.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)([n.$style.TimeInputWrapper,t.width===`full`&&n.$style.TimeInputWrapper__full,y.value&&n.$style.hasError])},[t.prefixIcon?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)(n.$style.PrefixIcon)},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:clock-outline`})],2)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`input`,{type:`time`,value:v.value,disabled:t.disabled,readonly:t.readonly,"aria-required":t.required||void 0,class:(0,e.normalizeClass)([n.$style.TimeInput,n.$style.NativeTimeInput]),onInput:ne,onBlur:D},null,42,kv),t.clearable&&f.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([n.$style.ClearAction,u.value&&n.$style.isHidden]),onClick:x},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:close-circle`})],2)):(0,e.createCommentVNode)(``,!0)],2)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([n.$style.TimeInputWrapper,t.width===`full`&&n.$style.TimeInputWrapper__full,y.value&&n.$style.hasError])},[t.prefixIcon?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(pi),{key:0,placement:`bottom-start`,"auto-trigger-toggle":``,"auto-hide":``,disabled:!f.value,"z-index":2005},{trigger:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([n.$style.PrefixIcon,f.value&&n.$style.PrefixIcon__clickable])},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:clock-outline`})],2)]),default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)(n.$style.Dropdown)},[(0,e.createElementVNode)(`select`,{class:(0,e.normalizeClass)(n.$style.TimeSelect),value:t.is24Hour?c.value:k.value,onChange:M},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(A.value,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`option`,{key:t.value,value:t.value,disabled:t.disabled},(0,e.toDisplayString)(t.label),9,jv))),128))],42,Av),(0,e.createElementVNode)(`select`,{class:(0,e.normalizeClass)(n.$style.TimeSelect),value:l.value,onChange:ee},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(j.value,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`option`,{key:t.value,value:t.value,disabled:t.disabled},(0,e.toDisplayString)(t.label),9,Nv))),128))],42,Mv),t.is24Hour?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`select`,{key:0,class:(0,e.normalizeClass)(n.$style.TimeSelect),value:h.value?`am`:`pm`,onChange:te},[...r[12]||=[(0,e.createElementVNode)(`option`,{value:`am`},`AM`,-1),(0,e.createElementVNode)(`option`,{value:`pm`},`PM`,-1)]],42,Pv))],2)]),_:1},8,[`disabled`])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`input`,{ref_key:`timeInput`,ref:a,type:`text`,value:_.value,placeholder:t.placeholder||Rv,disabled:t.disabled,readonly:t.readonly,"aria-required":t.required||void 0,class:(0,e.normalizeClass)(n.$style.TimeInput),onInput:w,onKeydown:[r[0]||=(0,e.withKeys)((0,e.withModifiers)(e=>S(e,`up`),[`prevent`]),[`up`]),r[1]||=(0,e.withKeys)((0,e.withModifiers)(e=>S(e,`down`),[`prevent`]),[`down`]),r[2]||=(0,e.withKeys)(e=>S(e,`right`),[`right`]),r[3]||=(0,e.withKeys)(e=>S(e,`left`),[`left`])],onClick:T,onBlur:D},null,42,Fv),t.is24Hour?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([n.$style.AmPmToggle,n.$style.AmPmTogglePlain])},[u.value?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:0,class:(0,e.normalizeClass)(n.$style.AmPmPlaceholder)},` -- `,2)):(0,e.createCommentVNode)(``,!0),!u.value&&h.value?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:1,ref:`amButton`,type:`button`,disabled:!f.value,onKeydown:[r[4]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`pm`,!0),[`prevent`]),[`up`]),r[5]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`pm`,!0),[`prevent`]),[`down`]),r[6]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`pm`,!0),[`prevent`]),[`p`]),(0,e.withKeys)(C,[`left`]),(0,e.withKeys)(C,[`backspace`]),(0,e.withKeys)(C,[`delete`])],onClick:r[7]||=e=>O(`pm`)},` AM `,40,Iv)):(0,e.createCommentVNode)(``,!0),!u.value&&!h.value?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:2,ref:`pmButton`,type:`button`,disabled:!f.value,onKeydown:[r[8]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`am`,!0),[`prevent`]),[`up`]),r[9]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`am`,!0),[`prevent`]),[`down`]),r[10]||=(0,e.withKeys)((0,e.withModifiers)(e=>O(`am`,!0),[`prevent`]),[`a`]),(0,e.withKeys)(C,[`left`]),(0,e.withKeys)(C,[`backspace`]),(0,e.withKeys)(C,[`delete`])],onClick:r[11]||=e=>O(`am`)},` PM `,40,Lv)):(0,e.createCommentVNode)(``,!0)],2)),t.clearable&&f.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:2,class:(0,e.normalizeClass)([n.$style.ClearAction,u.value&&n.$style.isHidden]),onClick:x},[(0,e.createVNode)((0,e.unref)(z),{icon:`mdi:close-circle`})],2)):(0,e.createCommentVNode)(``,!0)],2))]),_:2},[n.$slots.label?{name:`label`,fn:(0,e.withCtx)(t=>[(0,e.renderSlot)(n.$slots,`label`,(0,e.normalizeProps)((0,e.guardReactiveProps)(t)))]),key:`0`}:void 0,n.$slots.helpText?{name:`helpText`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`helpText`)]),key:`1`}:void 0]),1032,[`label`,`error`,`help-text`,`help-text-html`,`help-link`,`help-link-icon`,`help-link-tooltip`,`required`]))}}),[[`__cssModules`,{$style:{TimeInputWrapper:`_TimeInputWrapper_19700_1`,hasError:`_hasError_19700_13`,TimeInputWrapper__full:`_TimeInputWrapper__full_19700_19`,TimeInput:`_TimeInput_19700_1`,NativeTimeInput:`_NativeTimeInput_19700_48`,AmPmToggle:`_AmPmToggle_19700_52`,AmPmTogglePlain:`_AmPmTogglePlain_19700_60`,AmPmPlaceholder:`_AmPmPlaceholder_19700_78`,isHidden:`_isHidden_19700_83`,PrefixIcon:`_PrefixIcon_19700_87`,PrefixIcon__clickable:`_PrefixIcon__clickable_19700_95`,Dropdown:`_Dropdown_19700_102`,TimeSelect:`_TimeSelect_19700_113`,ClearAction:`_ClearAction_19700_124`}}]]),Bv=l({ZONE_COUNTRIES:()=>Vv,default:()=>Vv}),Vv,Hv=s((()=>{Vv={"Africa/Abidjan":`CI`,"Africa/Accra":`GH`,"Africa/Algiers":`DZ`,"Africa/Bissau":`GW`,"Africa/Cairo":`EG`,"Africa/Casablanca":`MA`,"Africa/Ceuta":`ES`,"Africa/El_Aaiun":`EH`,"Africa/Johannesburg":`ZA`,"Africa/Juba":`SS`,"Africa/Khartoum":`SD`,"Africa/Lagos":`NG`,"Africa/Maputo":`MZ`,"Africa/Monrovia":`LR`,"Africa/Nairobi":`KE`,"Africa/Ndjamena":`TD`,"Africa/Sao_Tome":`ST`,"Africa/Tripoli":`LY`,"Africa/Tunis":`TN`,"Africa/Windhoek":`NA`,"America/Adak":`US`,"America/Anchorage":`US`,"America/Araguaina":`BR`,"America/Argentina/Buenos_Aires":`AR`,"America/Argentina/Catamarca":`AR`,"America/Argentina/Cordoba":`AR`,"America/Argentina/Jujuy":`AR`,"America/Argentina/La_Rioja":`AR`,"America/Argentina/Mendoza":`AR`,"America/Argentina/Rio_Gallegos":`AR`,"America/Argentina/Salta":`AR`,"America/Argentina/San_Juan":`AR`,"America/Argentina/San_Luis":`AR`,"America/Argentina/Tucuman":`AR`,"America/Argentina/Ushuaia":`AR`,"America/Asuncion":`PY`,"America/Atikokan":`CA`,"America/Bahia":`BR`,"America/Bahia_Banderas":`MX`,"America/Barbados":`BB`,"America/Belem":`BR`,"America/Belize":`BZ`,"America/Blanc-Sablon":`CA`,"America/Boa_Vista":`BR`,"America/Bogota":`CO`,"America/Boise":`US`,"America/Cambridge_Bay":`CA`,"America/Campo_Grande":`BR`,"America/Cancun":`MX`,"America/Caracas":`VE`,"America/Cayenne":`GF`,"America/Chicago":`US`,"America/Chihuahua":`MX`,"America/Costa_Rica":`CR`,"America/Creston":`CA`,"America/Cuiaba":`BR`,"America/Curacao":`CW`,"America/Danmarkshavn":`GL`,"America/Dawson":`CA`,"America/Dawson_Creek":`CA`,"America/Denver":`US`,"America/Detroit":`US`,"America/Edmonton":`CA`,"America/Eirunepe":`BR`,"America/El_Salvador":`SV`,"America/Fort_Nelson":`CA`,"America/Fortaleza":`BR`,"America/Glace_Bay":`CA`,"America/Godthab":`GL`,"America/Goose_Bay":`CA`,"America/Grand_Turk":`TC`,"America/Guatemala":`GT`,"America/Guayaquil":`EC`,"America/Guyana":`GY`,"America/Halifax":`CA`,"America/Havana":`CU`,"America/Hermosillo":`MX`,"America/Indiana/Indianapolis":`US`,"America/Indiana/Knox":`US`,"America/Indiana/Marengo":`US`,"America/Indiana/Petersburg":`US`,"America/Indiana/Tell_City":`US`,"America/Indiana/Vevay":`US`,"America/Indiana/Vincennes":`US`,"America/Indiana/Winamac":`US`,"America/Inuvik":`CA`,"America/Iqaluit":`CA`,"America/Jamaica":`JM`,"America/Juneau":`US`,"America/Kentucky/Louisville":`US`,"America/Kentucky/Monticello":`US`,"America/La_Paz":`BO`,"America/Lima":`PE`,"America/Los_Angeles":`US`,"America/Maceio":`BR`,"America/Managua":`NI`,"America/Manaus":`BR`,"America/Martinique":`MQ`,"America/Matamoros":`MX`,"America/Mazatlan":`MX`,"America/Menominee":`US`,"America/Merida":`MX`,"America/Metlakatla":`US`,"America/Mexico_City":`MX`,"America/Miquelon":`PM`,"America/Moncton":`CA`,"America/Monterrey":`MX`,"America/Montevideo":`UY`,"America/Nassau":`BS`,"America/New_York":`US`,"America/Nipigon":`CA`,"America/Nome":`US`,"America/Noronha":`BR`,"America/North_Dakota/Beulah":`US`,"America/North_Dakota/Center":`US`,"America/North_Dakota/New_Salem":`US`,"America/Ojinaga":`MX`,"America/Panama":`PA`,"America/Pangnirtung":`CA`,"America/Paramaribo":`SR`,"America/Phoenix":`US`,"America/Port_of_Spain":`TT`,"America/Port-au-Prince":`HT`,"America/Porto_Velho":`BR`,"America/Puerto_Rico":`PR`,"America/Punta_Arenas":`CL`,"America/Rainy_River":`CA`,"America/Rankin_Inlet":`CA`,"America/Recife":`BR`,"America/Regina":`CA`,"America/Resolute":`CA`,"America/Rio_Branco":`BR`,"America/Santarem":`BR`,"America/Santiago":`CL`,"America/Santo_Domingo":`DO`,"America/Sao_Paulo":`BR`,"America/Scoresbysund":`GL`,"America/Sitka":`US`,"America/St_Johns":`CA`,"America/Swift_Current":`CA`,"America/Tegucigalpa":`HN`,"America/Thule":`GL`,"America/Thunder_Bay":`CA`,"America/Tijuana":`MX`,"America/Toronto":`CA`,"America/Vancouver":`CA`,"America/Whitehorse":`CA`,"America/Winnipeg":`CA`,"America/Yakutat":`US`,"America/Yellowknife":`CA`,"Antarctica/Casey":`AQ`,"Antarctica/Davis":`AQ`,"Antarctica/DumontDUrville":`AQ`,"Antarctica/Macquarie":`AU`,"Antarctica/Mawson":`AQ`,"Antarctica/Palmer":`AQ`,"Antarctica/Rothera":`AQ`,"Antarctica/Syowa":`AQ`,"Antarctica/Troll":`AQ`,"Antarctica/Vostok":`AQ`,"Asia/Almaty":`KZ`,"Asia/Amman":`JO`,"Asia/Anadyr":`RU`,"Asia/Aqtau":`KZ`,"Asia/Aqtobe":`KZ`,"Asia/Ashgabat":`TM`,"Asia/Atyrau":`KZ`,"Asia/Baghdad":`IQ`,"Asia/Baku":`AZ`,"Asia/Bangkok":`TH`,"Asia/Barnaul":`RU`,"Asia/Beirut":`LB`,"Asia/Bishkek":`KG`,"Asia/Brunei":`BN`,"Asia/Chita":`RU`,"Asia/Choibalsan":`MN`,"Asia/Colombo":`LK`,"Asia/Damascus":`SY`,"Asia/Dhaka":`BD`,"Asia/Dili":`TL`,"Asia/Dubai":`AE`,"Asia/Dushanbe":`TJ`,"Asia/Famagusta":`CY`,"Asia/Gaza":`PS`,"Asia/Hebron":`PS`,"Asia/Ho_Chi_Minh":`VN`,"Asia/Hong_Kong":`HK`,"Asia/Hovd":`MN`,"Asia/Irkutsk":`RU`,"Asia/Jakarta":`ID`,"Asia/Jayapura":`ID`,"Asia/Jerusalem":`IL`,"Asia/Kabul":`AF`,"Asia/Kamchatka":`RU`,"Asia/Karachi":`PK`,"Asia/Kathmandu":`NP`,"Asia/Khandyga":`RU`,"Asia/Kolkata":`IN`,"Asia/Krasnoyarsk":`RU`,"Asia/Kuala_Lumpur":`MY`,"Asia/Kuching":`MY`,"Asia/Macau":`MO`,"Asia/Magadan":`RU`,"Asia/Makassar":`ID`,"Asia/Manila":`PH`,"Asia/Nicosia":`CY`,"Asia/Novokuznetsk":`RU`,"Asia/Novosibirsk":`RU`,"Asia/Omsk":`RU`,"Asia/Oral":`KZ`,"Asia/Pontianak":`ID`,"Asia/Pyongyang":`KP`,"Asia/Qatar":`QA`,"Asia/Qostanay":`KZ`,"Asia/Qyzylorda":`KZ`,"Asia/Riyadh":`SA`,"Asia/Sakhalin":`RU`,"Asia/Samarkand":`UZ`,"Asia/Seoul":`KR`,"Asia/Shanghai":`CN`,"Asia/Singapore":`SG`,"Asia/Srednekolymsk":`RU`,"Asia/Taipei":`TW`,"Asia/Tashkent":`UZ`,"Asia/Tbilisi":`GE`,"Asia/Tehran":`IR`,"Asia/Thimphu":`BT`,"Asia/Tokyo":`JP`,"Asia/Tomsk":`RU`,"Asia/Ulaanbaatar":`MN`,"Asia/Urumqi":`CN`,"Asia/Ust-Nera":`RU`,"Asia/Vladivostok":`RU`,"Asia/Yakutsk":`RU`,"Asia/Yangon":`MM`,"Asia/Yekaterinburg":`RU`,"Asia/Yerevan":`AM`,"Atlantic/Azores":`PT`,"Atlantic/Bermuda":`BM`,"Atlantic/Canary":`ES`,"Atlantic/Cape_Verde":`CV`,"Atlantic/Faroe":`FO`,"Atlantic/Madeira":`PT`,"Atlantic/Reykjavik":`IS`,"Atlantic/South_Georgia":`GS`,"Atlantic/Stanley":`FK`,"Australia/Adelaide":`AU`,"Australia/Brisbane":`AU`,"Australia/Broken_Hill":`AU`,"Australia/Currie":`AU`,"Australia/Darwin":`AU`,"Australia/Eucla":`AU`,"Australia/Hobart":`AU`,"Australia/Lindeman":`AU`,"Australia/Lord_Howe":`AU`,"Australia/Melbourne":`AU`,"Australia/Perth":`AU`,"Australia/Sydney":`AU`,"Europe/Amsterdam":`NL`,"Europe/Andorra":`AD`,"Europe/Astrakhan":`RU`,"Europe/Athens":`GR`,"Europe/Belgrade":`RS`,"Europe/Berlin":`DE`,"Europe/Brussels":`BE`,"Europe/Bucharest":`RO`,"Europe/Budapest":`HU`,"Europe/Chisinau":`MD`,"Europe/Copenhagen":`DK`,"Europe/Dublin":`IE`,"Europe/Gibraltar":`GI`,"Europe/Helsinki":`FI`,"Europe/Istanbul":`TR`,"Europe/Kaliningrad":`RU`,"Europe/Kiev":`UA`,"Europe/Kirov":`RU`,"Europe/Lisbon":`PT`,"Europe/London":`GB`,"Europe/Luxembourg":`LU`,"Europe/Madrid":`ES`,"Europe/Malta":`MT`,"Europe/Minsk":`BY`,"Europe/Monaco":`MC`,"Europe/Moscow":`RU`,"Europe/Oslo":`NO`,"Europe/Paris":`FR`,"Europe/Prague":`CZ`,"Europe/Riga":`LV`,"Europe/Rome":`IT`,"Europe/Samara":`RU`,"Europe/Saratov":`RU`,"Europe/Simferopol":`RU`,"Europe/Sofia":`BG`,"Europe/Stockholm":`SE`,"Europe/Tallinn":`EE`,"Europe/Tirane":`AL`,"Europe/Ulyanovsk":`RU`,"Europe/Uzhgorod":`UA`,"Europe/Vienna":`AT`,"Europe/Vilnius":`LT`,"Europe/Volgograd":`RU`,"Europe/Warsaw":`PL`,"Europe/Zaporozhye":`UA`,"Europe/Zurich":`CH`,"Indian/Chagos":`IO`,"Indian/Christmas":`CX`,"Indian/Cocos":`CC`,"Indian/Kerguelen":`TF`,"Indian/Mahe":`SC`,"Indian/Maldives":`MV`,"Indian/Mauritius":`MU`,"Indian/Reunion":`RE`,"Pacific/Apia":`WS`,"Pacific/Auckland":`NZ`,"Pacific/Bougainville":`PG`,"Pacific/Chatham":`NZ`,"Pacific/Chuuk":`FM`,"Pacific/Easter":`CL`,"Pacific/Efate":`VU`,"Pacific/Enderbury":`KI`,"Pacific/Fakaofo":`TK`,"Pacific/Fiji":`FJ`,"Pacific/Funafuti":`TV`,"Pacific/Galapagos":`EC`,"Pacific/Gambier":`PF`,"Pacific/Guadalcanal":`SB`,"Pacific/Guam":`GU`,"Pacific/Honolulu":`US`,"Pacific/Kiritimati":`KI`,"Pacific/Kosrae":`FM`,"Pacific/Kwajalein":`MH`,"Pacific/Majuro":`MH`,"Pacific/Marquesas":`PF`,"Pacific/Nauru":`NR`,"Pacific/Niue":`NU`,"Pacific/Norfolk":`NF`,"Pacific/Noumea":`NC`,"Pacific/Pago_Pago":`AS`,"Pacific/Palau":`PW`,"Pacific/Pitcairn":`PN`,"Pacific/Pohnpei":`FM`,"Pacific/Port_Moresby":`PG`,"Pacific/Rarotonga":`CK`,"Pacific/Tahiti":`PF`,"Pacific/Tarawa":`KI`,"Pacific/Tongatapu":`TO`,"Pacific/Wake":`UM`,"Pacific/Wallis":`WF`}}));function Uv(){let e=Intl;if(typeof e.supportedValuesOf==`function`)try{return e.supportedValuesOf(`timeZone`)}catch{}return Qv}function Wv(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||`UTC`}catch{return`UTC`}}function Gv(e){if(!e)return!1;try{return new Intl.DateTimeFormat(`en`,{timeZone:e}),!0}catch{return!1}}function Kv(e,t,n){try{return new Intl.DateTimeFormat(n,{timeZone:e,timeZoneName:t}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??``}catch{return``}}function qv(e,t){return Kv(e,`longGeneric`,t)||Kv(e,`long`,t)}function Jv(e,t){return Kv(e,`shortOffset`,t)}function Yv(e){return e.replace(/_/g,` `).split(`/`).reverse().join(`, `)}async function Xv(e){let{ZONE_COUNTRIES:t}=await Promise.resolve().then(()=>(Hv(),Bv)),n=new Set(Uv()),r=new Map;for(let[e,i]of Object.entries(t)){if(!n.has(e))continue;let t=r.get(i);t?t.push(e):r.set(i,[e])}let i;try{i=new Intl.DisplayNames(e?[e]:void 0,{type:`region`})}catch{}return[...r.entries()].map(([e,t])=>({value:e,label:i?.of(e)??e,zones:t.sort((e,t)=>Yv(e).localeCompare(Yv(t)))})).sort((e,t)=>e.label.localeCompare(t.label))}async function Zv(e){let{ZONE_COUNTRIES:t}=await Promise.resolve().then(()=>(Hv(),Bv));return t[e]}var Qv=[`Pacific/Midway`,`Pacific/Honolulu`,`America/Anchorage`,`America/Los_Angeles`,`America/Denver`,`America/Chicago`,`America/New_York`,`America/Halifax`,`America/Sao_Paulo`,`Atlantic/Azores`,`UTC`,`Europe/London`,`Europe/Paris`,`Europe/Athens`,`Europe/Moscow`,`Asia/Dubai`,`Asia/Karachi`,`Asia/Kolkata`,`Asia/Dhaka`,`Asia/Bangkok`,`Asia/Shanghai`,`Asia/Tokyo`,`Australia/Brisbane`,`Australia/Sydney`,`Pacific/Auckland`],$v={key:1},ey=(0,e.defineComponent)({__name:`TimezonePicker`,props:{modelValue:{},label:{},error:{},helpText:{},helpTextHtml:{},helpLink:{},helpLinkIcon:{},helpLinkTooltip:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},guess:{type:Boolean,default:!1},groupByCountry:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},condensed:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.ref)(!1),o=(0,e.ref)(r.modelValue??null),s=(0,e.ref)(null),c=(0,e.ref)(null),l=(0,e.ref)(!1),u=(0,e.computed)(()=>Uv()),d=(0,e.computed)(()=>(c.value??[]).map(e=>({label:e.label,value:e.value}))),f=(0,e.computed)(()=>{if(r.groupByCountry){if(!s.value||!c.value)return[];let e=c.value.find(e=>e.value===s.value);return e?e.zones.map(p):[]}return u.value.map(p)});function p(e){return{label:`${Yv(e)} (${Jv(e)})`,value:e,description:`${qv(e)} · ${(0,V.default)().tz(e).format(`lll`)}`}}let m=(0,e.computed)(()=>{let e=r.modelValue;if(!e||!Gv(e))return null;let t=qv(e),n=Jv(e);return{title:Yv(e),description:t?`${t} (${n})`:n}});async function h(){if(!(!r.groupByCountry||c.value||l.value)){l.value=!0;try{c.value=await Xv()}finally{l.value=!1}}}async function g(e){r.groupByCountry&&(await h(),s.value=await Zv(e)??null)}function _(){r.disabled||r.readonly||(o.value=r.modelValue??Wv(),g(o.value),a.value=!0)}function v(){i(`update:modelValue`,o.value??void 0),a.value=!1}function y(e){o.value=e,r.inline&&i(`update:modelValue`,e)}function b(e){s.value=e;let t=(c.value?.find(t=>t.value===e))?.zones[0]??null;o.value=t,r.inline&&t&&i(`update:modelValue`,t)}return(0,e.watch)(()=>r.modelValue,e=>{r.inline&&(o.value=e??null),e&&g(e)}),(0,e.onMounted)(()=>{if(!r.modelValue&&r.guess){let e=Wv();i(`update:modelValue`,e),o.value=e,g(e)}else r.modelValue?g(r.modelValue):r.groupByCountry&&h()}),(n,r)=>t.inline?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(n_),{key:0},{default:(0,e.withCtx)(()=>[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.groupByCountry?(0,e.unref)(r_):`div`),{condensed:t.groupByCountry&&t.condensed?!0:void 0},{default:(0,e.withCtx)(()=>[t.groupByCountry?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Hg),{key:0,label:(0,e.unref)(K)(`ui.timezonePicker.location`),placeholder:(0,e.unref)(K)(`ui.timezonePicker.locationPlaceholder`),options:d.value,disabled:t.disabled||l.value,readonly:t.readonly,modelValue:s.value,searchable:``,"onUpdate:modelValue":b},null,8,[`label`,`placeholder`,`options`,`disabled`,`readonly`,`modelValue`])):(0,e.createCommentVNode)(``,!0),(0,e.createVNode)((0,e.unref)(Hg),{label:t.label??(0,e.unref)(K)(`ui.timezonePicker.timezone`),placeholder:(0,e.unref)(K)(`ui.timezonePicker.timezonePlaceholder`),options:f.value,modelValue:o.value,disabled:t.disabled,readonly:t.readonly,error:t.error,"help-text":t.helpText,"help-text-html":t.helpTextHtml,"help-link":t.helpLink,"help-link-icon":t.helpLinkIcon,"help-link-tooltip":t.helpLinkTooltip,searchable:``,"onUpdate:modelValue":y},null,8,[`label`,`placeholder`,`options`,`modelValue`,`disabled`,`readonly`,`error`,`help-text`,`help-text-html`,`help-link`,`help-link-icon`,`help-link-tooltip`])]),_:1},8,[`condensed`]))]),_:1})):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,$v,[(0,e.createVNode)((0,e.unref)(Fd),{title:(0,e.unref)(K)(`ui.timezonePicker.title`),visible:a.value,primaryAction:{label:(0,e.unref)(K)(`ui.timezonePicker.update`),disabled:!o.value,onAction:v},secondaryActions:[{label:(0,e.unref)(K)(`ui.timezonePicker.cancel`),onAction:()=>a.value=!1}],"overflow-visible":``,onClose:r[0]||=e=>a.value=!1},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n_),null,{default:(0,e.withCtx)(()=>[t.groupByCountry?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Hg),{key:0,label:(0,e.unref)(K)(`ui.timezonePicker.location`),placeholder:(0,e.unref)(K)(`ui.timezonePicker.locationPlaceholder`),options:d.value,disabled:l.value,modelValue:s.value,searchable:``,"onUpdate:modelValue":b},null,8,[`label`,`placeholder`,`options`,`disabled`,`modelValue`])):(0,e.createCommentVNode)(``,!0),(0,e.createVNode)((0,e.unref)(Hg),{label:(0,e.unref)(K)(`ui.timezonePicker.timezone`),placeholder:(0,e.unref)(K)(`ui.timezonePicker.timezonePlaceholder`),options:f.value,modelValue:o.value,searchable:``,"onUpdate:modelValue":y},null,8,[`label`,`placeholder`,`options`,`modelValue`])]),_:1})]),_:1},8,[`title`,`visible`,`primaryAction`,`secondaryActions`]),(0,e.createVNode)((0,e.unref)(T_),{error:t.error,"help-text":t.helpText,"help-text-html":t.helpTextHtml,"help-link":t.helpLink,"help-link-icon":t.helpLinkIcon,"help-link-tooltip":t.helpLinkTooltip,label:t.label,title:m.value&&m.value.title,description:m.value&&m.value.description,placeholder:(0,e.unref)(K)(`ui.timezonePicker.title`),disabled:t.disabled,readonly:t.readonly,onClick:_},null,8,[`error`,`help-text`,`help-text-html`,`help-link`,`help-link-icon`,`help-link-tooltip`,`label`,`title`,`description`,`placeholder`,`disabled`,`readonly`])]))}}),ty=[`aria-checked`,`aria-required`,`disabled`],ny=.62,ry=`mdi:check`,iy=`mdi:close`,ay=`var(--octans-primary)`,oy=`var(--octans-border-input)`,sy=R((0,e.defineComponent)({inheritAttrs:!1,__name:`ToggleSwitch`,props:{label:{type:[String,Boolean,null],default:void 0},error:{type:[String,Boolean,null],default:void 0},helpText:{type:[String,Boolean,null],default:void 0},helpTextHtml:{type:[String,Boolean,null],default:void 0},helpLink:{type:[String,Boolean,null],default:void 0},helpLinkIcon:{},helpLinkTooltip:{},required:{type:Boolean,default:!1},modelValue:{},trueValue:{default:!0},falseValue:{default:!1},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{default:void 0},colorOn:{default:void 0},colorOff:{default:void 0},size:{default:`medium`},icons:{type:Boolean,default:!0},iconOn:{default:void 0},iconOff:{default:void 0},iconColor:{default:void 0},iconColorOn:{default:void 0},iconColorOff:{default:void 0}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,i=(0,e.useAttrs)(),a=(0,e.computed)(()=>i.class),o=(0,e.computed)(()=>i.style),s=(0,e.computed)(()=>{let{class:e,style:t,...n}=i;return n}),c=t,l=(0,e.computed)(()=>c.modelValue===c.trueValue||c.checked),u={small:{width:42,height:24,knob:18},medium:{width:60,height:34,knob:26},large:{width:78,height:44,knob:34}},d=(0,e.computed)(()=>u[c.size]??u.medium),f=(0,e.computed)(()=>{let{width:e,height:t,knob:n}=d.value,r=(t-n)/2;return{"--ts-width":`${e}px`,"--ts-height":`${t}px`,"--ts-knob":`${n}px`,"--ts-pad":`${r}px`,"--ts-travel":`${e-t}px`}}),p=(0,e.computed)(()=>c.colorOn??c.color??ay),m=(0,e.computed)(()=>c.colorOff??oy),h=(0,e.computed)(()=>l.value?p.value:m.value),g=(0,e.computed)(()=>c.icons?l.value?c.iconOn??ry:c.iconOff??iy:null),_=(0,e.computed)(()=>`${Math.round(d.value.knob*ny)}px`),v=(0,e.computed)(()=>l.value?c.iconColorOn??c.iconColor??p.value:c.iconColorOff??c.iconColor??c.colorOff??`var(--octans-toggle-knob-icon)`);function y(){r(`update:modelValue`,l.value?c.falseValue:c.trueValue)}return(n,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(q),{label:t.label,error:t.error,"help-text":t.helpText,"help-text-html":t.helpTextHtml,"help-link":t.helpLink,"help-link-icon":t.helpLinkIcon,"help-link-tooltip":t.helpLinkTooltip,required:t.required,class:(0,e.normalizeClass)(a.value),style:(0,e.normalizeStyle)(o.value)},(0,e.createSlots)({default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([`UIElement`,n.$style.ToggleSwitch,t.disabled&&n.$style.disabled]),style:(0,e.normalizeStyle)(f.value)},[(0,e.createElementVNode)(`button`,(0,e.mergeProps)(s.value,{type:`button`,role:`switch`,"aria-checked":l.value,"aria-required":t.required||void 0,disabled:t.disabled,class:[n.$style.slider,l.value&&n.$style.checked],style:{backgroundColor:h.value},onClick:y}),[(0,e.createElementVNode)(`span`,{class:(0,e.normalizeClass)(n.$style.handle),"aria-hidden":`true`},[(0,e.renderSlot)(n.$slots,`handle`,{checked:l.value},()=>[g.value?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(z),{key:0,icon:g.value,size:_.value,style:(0,e.normalizeStyle)({color:v.value})},null,8,[`icon`,`size`,`style`])):(0,e.createCommentVNode)(``,!0)])],2)],16,ty)],6)]),_:2},[n.$slots.label?{name:`label`,fn:(0,e.withCtx)(t=>[(0,e.renderSlot)(n.$slots,`label`,(0,e.normalizeProps)((0,e.guardReactiveProps)(t)))]),key:`0`}:void 0,n.$slots.helpText?{name:`helpText`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`helpText`)]),key:`1`}:void 0]),1032,[`label`,`error`,`help-text`,`help-text-html`,`help-link`,`help-link-icon`,`help-link-tooltip`,`required`,`class`,`style`]))}}),[[`__cssModules`,{$style:{ToggleSwitch:`_ToggleSwitch_7y7rh_1`,disabled:`_disabled_7y7rh_7`,slider:`_slider_7y7rh_11`,handle:`_handle_7y7rh_37`,checked:`_checked_7y7rh_53`}}]]),cy=R((0,e.defineComponent)({__name:`LineClamper`,props:{lines:{default:2}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`p`,{class:(0,e.normalizeClass)([`UIElement`,n.$style.LineClamper]),style:(0,e.normalizeStyle)({"-webkit-line-clamp":t.lines})},[(0,e.renderSlot)(n.$slots,`default`)],6))}}),[[`__cssModules`,{$style:{LineClamper:`_LineClamper_1ctij_1`}}]]),ly=R((0,e.defineComponent)({inheritAttrs:!1,__name:`Sticky`,props:{offset:{default:0},position:{default:`top`},disabled:{type:Boolean,default:!1}},emits:[`update:stuck`],setup(t,{expose:n,emit:r}){let i=t,a=r,o=(0,e.ref)(),s=(0,e.ref)(),c=(0,e.ref)(!1),l=(0,e.computed)(()=>{if(i.disabled)return{};let e=typeof i.offset==`number`?`${i.offset}px`:i.offset;return i.position===`bottom`?{position:`sticky`,bottom:e}:{position:`sticky`,top:e}});function u(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e.overflowY+e.overflowX))return t;t=t.parentElement}return null}let d=null,f=0;function p(e){c.value!==e&&(c.value=e,a(`update:stuck`,e))}function m(){let e=o.value,t=s.value;if(!e||!t||i.disabled){p(!1);return}let n=getComputedStyle(e),r=i.position===`bottom`?n.bottom:n.top,a=parseFloat(r)||0,c=t.getBoundingClientRect(),l=d?.getBoundingClientRect(),u=.5;if(i.position===`bottom`){let e=l?l.bottom-d.clientTop:window.innerHeight;p(c.bottom>e-a+u)}else{let e=l?l.top+d.clientTop:0;p(c.top<e+a-u)}}function h(){f||=requestAnimationFrame(()=>{f=0,m()})}function g(){_();let e=o.value;if(!e||i.disabled){p(!1);return}d=u(e),d?.addEventListener(`scroll`,h,{passive:!0}),window.addEventListener(`scroll`,h,{passive:!0}),window.addEventListener(`resize`,h),m()}function _(){d?.removeEventListener(`scroll`,h),window.removeEventListener(`scroll`,h),window.removeEventListener(`resize`,h),d=null}return(0,e.onMounted)(g),(0,e.onBeforeUnmount)(()=>{_(),f&&cancelAnimationFrame(f)}),(0,e.watch)(()=>[i.disabled,i.position,i.offset],g),n({measure:m}),(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,[t.position===`top`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,ref_key:`sentinelEl`,ref:s,class:(0,e.normalizeClass)(n.$style.sentinel),"aria-hidden":`true`},null,2)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,(0,e.mergeProps)({ref_key:`rootEl`,ref:o},n.$attrs,{class:[`UIElement`,n.$style.Sticky,c.value&&`Sticky-stuck`],style:l.value}),[(0,e.renderSlot)(n.$slots,`default`,{stuck:c.value})],16),t.position===`bottom`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,ref_key:`sentinelEl`,ref:s,class:(0,e.normalizeClass)(n.$style.sentinel),"aria-hidden":`true`},null,2)):(0,e.createCommentVNode)(``,!0)],64))}}),[[`__cssModules`,{$style:{Sticky:`_Sticky_1x1cj_1`,sentinel:`_sentinel_1x1cj_5`}}]]),uy={key:0},dy=[`innerHTML`],fy=(0,e.defineComponent)({__name:`SyntaxHighlighter`,props:{code:{},language:{}},setup(t){let n=t,r=(0,e.computed)(()=>{if(!n.code||!n.language)return null;let e=window.Prism;if(!e)return console.warn(`SyntaxHighlighter: Prism.js is not loaded`),null;let t=e.languages[n.language];if(!t)throw Error(`SyntaxHighlighter: Unsupported Prism grammar "${n.language}"`);return e.highlight(n.code,t,n.language)}),i=(0,e.computed)(()=>`language-${n.language}`);return(n,a)=>t.code?((0,e.openBlock)(),(0,e.createElementBlock)(`pre`,{key:1,class:(0,e.normalizeClass)([`Prism`,i.value])},[(0,e.createElementVNode)(`code`,{class:(0,e.normalizeClass)(i.value),innerHTML:r.value},null,10,dy)],2)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,uy,`No code`))}}),py=R((0,e.defineComponent)({__name:`ResourceItem`,emits:[`click`],setup(t,{emit:n}){let r=n;return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,t.$style.ResourceItem]),onClick:n[0]||=e=>r(`click`)},[(0,e.renderSlot)(t.$slots,`default`)],2))}}),[[`__cssModules`,{$style:{ResourceItem:`_ResourceItem_627rx_1`}}]]),my=R((0,e.defineComponent)({__name:`ResourceList`,props:{columns:{default:()=>[]},items:{default:()=>[]}},setup(t){let n=t,r=(0,e.useCssModule)(),i=(0,e.useSlots)(),a=(0,e.computed)(()=>({display:`grid`,gridTemplateColumns:`repeat(${n.columns.length}, 1fr)`}));function o(e){return ph(e.format||``)?r.ResourceList_cell__numeric:``}function s(e,t){return dh(t[e.key],e.format||``)}return(n,c)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`UIElement`,(0,e.unref)(r).ResourceList])},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)((0,e.unref)(r).ResourceList_header),style:(0,e.normalizeStyle)(a.value)},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.columns,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.key,class:(0,e.normalizeClass)([(0,e.unref)(r).ResourceList_headerCell,o(t)])},(0,e.toDisplayString)(t.label),3))),128))],6),(0,e.unref)(i).item?((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,{key:0},(0,e.renderList)(t.items,t=>(0,e.renderSlot)(n.$slots,`item`,{item:t},void 0,void 0,t.id)),128)):((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,{key:1},(0,e.renderList)(t.items,n=>((0,e.openBlock)(),(0,e.createBlock)(py,{key:n.id,class:(0,e.normalizeClass)((0,e.unref)(r).ResourceList_row),style:(0,e.normalizeStyle)(a.value)},{default:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.columns,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.key,class:(0,e.normalizeClass)([(0,e.unref)(r).ResourceList_cell,o(t)])},(0,e.toDisplayString)(s(t,n)),3))),128))]),_:2},1032,[`class`,`style`]))),128))],2))}}),[[`__cssModules`,{$style:{ResourceList_header:`_ResourceList_header_1e833_1`,ResourceList_headerCell:`_ResourceList_headerCell_1e833_6`,ResourceList_row:`_ResourceList_row_1e833_10`,ResourceList_cell:`_ResourceList_cell_1e833_14`,ResourceList_cell__numeric:`_ResourceList_cell__numeric_1e833_18`}}]]),hy=l({ActionList:()=>lo,AppFrame:()=>sp,Badge:()=>lp,Banner:()=>pp,Button:()=>W,ButtonGroup:()=>Od,ButtonGroupItem:()=>Dd,Calendar:()=>yp,CalendarHeatmap:()=>Tp,Caption:()=>Ep,Card:()=>kp,CardSection:()=>Ap,Checkbox:()=>Np,CheckboxControl:()=>Mp,Choice:()=>jp,ChoiceList:()=>Bp,ColorPicker:()=>Sm,ColorSelector:()=>rh,DataTable:()=>kh,DatePicker:()=>Mh,Divider:()=>Fh,EventDelegator:()=>Md,FileInput:()=>dg,Filters:()=>e_,FooterHelp:()=>t_,FormLayout:()=>n_,FormLayoutGroup:()=>r_,Formatter:()=>xh,GlobalNav:()=>s_,GradientPicker:()=>Xm,Heading:()=>c_,Icon:()=>z,InlineError:()=>ef,KeyboardKey:()=>l_,Labelled:()=>q,Layout:()=>p_,LayoutSection:()=>m_,LayoutSectionAnnotated:()=>h_,LineClamper:()=>cy,Link:()=>__,List:()=>y_,ListItem:()=>v_,LoaderOverlay:()=>So,LoadingBar:()=>Io,MaybeMountingPortal:()=>xg,MaybeRouterLink:()=>b_,Modal:()=>Fd,ModalHost:()=>Rd,ModalSection:()=>zd,NavField:()=>T_,Navigation:()=>F_,OtpInput:()=>R_,Page:()=>z_,PageActions:()=>B_,PageLink:()=>__,Pagination:()=>Dh,Popover:()=>pi,Popper:()=>mi,PreventAutoComplete:()=>nf,ProgressBar:()=>H_,RadioButton:()=>Fp,RadioButtonControl:()=>Pp,RangeSlider:()=>q_,Rating:()=>Z_,ResourceItem:()=>py,ResourceList:()=>my,SaveBar:()=>Rf,SaveBarController:()=>Q_,ScrollPane:()=>tp,SegmentedControl:()=>zp,Select:()=>Hg,Sheet:()=>mg,SkeletonBodyText:()=>$_,SkeletonCard:()=>ev,SkeletonDisplayText:()=>ih,SkeletonPage:()=>tv,Spinner:()=>go,Splitter:()=>av,Stack:()=>sv,StackItem:()=>ov,Stat:()=>cv,StatGroup:()=>lv,Sticky:()=>ly,SyntaxHighlighter:()=>fy,Tabs:()=>dv,Tag:()=>_g,TextContainer:()=>hv,TextField:()=>bf,TextStyle:()=>ao,Thumbnail:()=>_v,TimePicker:()=>zv,TimezonePicker:()=>ey,ToastManager:()=>Sv,ToggleSwitch:()=>sy,Tooltip:()=>cp,UiProvider:()=>rp,UnstyledLink:()=>oo,alertModal:()=>Of,appFrameLayoutKey:()=>ip,confirmModal:()=>kf,genericModal:()=>Df,iconBadgeConfig:()=>to,isDatePickerType:()=>Nh,loader:()=>To,progress:()=>zo,promptModal:()=>Af,saveBar:()=>J,saveBarState:()=>Pf,toast:()=>Dv,useAppFrameLayout:()=>ap,useLoader:()=>Eo,useProgress:()=>Bo,useSaveBar:()=>Ff});function gy(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function _y(e){return function(t){return e?.[t]}}var vy=_y({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),yy=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,by=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function xy(e){return e=ju(e),e&&e.replace(yy,vy).replace(by,``)}var Sy=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Cy(e){return e.match(Sy)||[]}var wy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ty(e){return wy.test(e)}var Ey=`\\ud800-\\udfff`,Dy=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Oy=`\\u2700-\\u27bf`,ky=`a-z\\xdf-\\xf6\\xf8-\\xff`,Ay=`\\xac\\xb1\\xd7\\xf7`,jy=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,My=`\\u2000-\\u206f`,Ny=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Py=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Fy=`\\ufe0e\\ufe0f`,Iy=Ay+jy+My+Ny,Ly=`['’]`,Ry=`[`+Iy+`]`,zy=`[`+Dy+`]`,By=`\\d+`,Vy=`[`+Oy+`]`,Hy=`[`+ky+`]`,Uy=`[^`+Ey+Iy+By+Oy+ky+Py+`]`,Wy=`(?:`+zy+`|\\ud83c[\\udffb-\\udfff])`,Gy=`[^`+Ey+`]`,Ky=`(?:\\ud83c[\\udde6-\\uddff]){2}`,qy=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Jy=`[`+Py+`]`,Yy=`\\u200d`,Xy=`(?:`+Hy+`|`+Uy+`)`,Zy=`(?:`+Jy+`|`+Uy+`)`,Qy=`(?:`+Ly+`(?:d|ll|m|re|s|t|ve))?`,$y=`(?:`+Ly+`(?:D|LL|M|RE|S|T|VE))?`,eb=Wy+`?`,tb=`[`+Fy+`]?`,nb=`(?:`+Yy+`(?:`+[Gy,Ky,qy].join(`|`)+`)`+tb+eb+`)*`,rb=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,ib=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,ab=tb+eb+nb,ob=`(?:`+[Vy,Ky,qy].join(`|`)+`)`+ab,sb=RegExp([Jy+`?`+Hy+`+`+Qy+`(?=`+[Ry,Jy,`$`].join(`|`)+`)`,Zy+`+`+$y+`(?=`+[Ry,Jy+Xy,`$`].join(`|`)+`)`,Jy+`?`+Xy+`+`+Qy,Jy+`+`+$y,ib,rb,By,ob].join(`|`),`g`);function cb(e){return e.match(sb)||[]}function lb(e,t,n){return e=ju(e),t=n?void 0:t,t===void 0?Ty(e)?cb(e):Cy(e):e.match(t)||[]}var ub=RegExp(`['’]`,`g`);function db(e){return function(t){return gy(lb(xy(t).replace(ub,``)),e,``)}}var fb=db(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),pb=`data-octans-theme`,mb=`octans-theme`,hb=new Set,gb=`system`,_b=null;function vb(){return typeof document<`u`}function yb(){return!vb()||typeof window.matchMedia!=`function`?null:(_b||(_b=window.matchMedia(`(prefers-color-scheme: dark)`),_b.addEventListener(`change`,()=>{gb===`system`&&bb()})),_b)}function bb(){let e=Sb();for(let t of hb)t(e)}function xb(){return gb}function Sb(){return gb===`system`?yb()?.matches?`dark`:`light`:gb}function Cb(e){gb=e,vb()&&(e===`system`?document.documentElement.removeAttribute(pb):document.documentElement.setAttribute(pb,e)),bb()}function wb(){let e=Sb()===`dark`?`light`:`dark`;return Cb(e),e}function Tb(e){return hb.add(e),()=>hb.delete(e)}function Eb(e=mb){if(vb()){try{let t=window.localStorage.getItem(e);(t===`light`||t===`dark`||t===`system`)&&Cb(t)}catch{}Tb(()=>{try{window.localStorage.setItem(e,gb)}catch{}})}}var Db=[50,100,300,500,600,700],Ob=Object.fromEntries([{prefix:`neutral`,title:`Neutral`,steps:[0,50,100,200,300,400,500,600,700,800,900,950]},{prefix:`primary`,title:`Primary`,steps:[50,100,200,300,400,500,600,700,800,900]},{prefix:`secondary`,title:`Secondary`,steps:Db},{prefix:`tertiary`,title:`Tertiary`,steps:Db},{prefix:`info`,title:`Info`,steps:Db},{prefix:`success`,title:`Success`,steps:Db},{prefix:`warning`,title:`Warning`,steps:Db},{prefix:`error`,title:`Error`,steps:Db}].map(e=>[e.prefix,e])),$=(e,t)=>({name:e,kind:`color`,description:t}),kb=(e,t)=>({name:e,kind:`color`,description:t,derived:!0}),Ab=e=>Ob[e].steps.map(t=>$(`${e}-${t}`)),jb=(e,{states:t=!1}={})=>[$(e,`The solid ${e} fill`),$(`text-on-${e}`,`Content sitting on the ${e} fill`),$(`${e}-surface`,`Soft ${e}-tinted background`),$(`text-${e}`,`Readable ${e} text, on plain or soft surfaces`),...t?[kb(`${e}-hover`,`Fill shaded toward state-mix`),kb(`${e}-active`)]:[]],Mb=[{title:`Neutral ramp`,tier:`primitive`,description:`Greys. Semantic surface, text and border tokens draw on these.`,tokens:Ab(`neutral`)},{title:`Primary ramp`,tier:`primitive`,description:`The brand colour. Redefining this ramp rebrands the whole library, because the semantic primary tokens point at it.`,tokens:Ab(`primary`)},{title:`Secondary ramp`,tier:`primitive`,description:`The second brand colour — a quiet cousin of the primary.`,tokens:Ab(`secondary`)},{title:`Tertiary ramp`,tier:`primitive`,description:`The third brand colour — contrast and variety.`,tokens:Ab(`tertiary`)},{title:`Status ramps`,tier:`primitive`,tokens:[...Ab(`info`),...Ab(`success`),...Ab(`warning`),...Ab(`error`)]},{title:`Surfaces`,tier:`semantic`,tokens:[$(`surface`,`Cards, panels, the default background`),kb(`surface-raised`,`Menus, popovers, modals — above the surface`),$(`surface-sunken`,`Table headers, wells, code blocks`),$(`surface-neutral`,`Neutral chips on a surface — Badge, Tag`),$(`surface-app`,`The application background behind cards`),kb(`surface-hover`,`Hover wash over a surface`),kb(`surface-selected`,`Selected rows and items — the primary's soft tint`),kb(`surface-disabled`,`Disabled controls`),kb(`surface-control`,`Fill of neutral controls — default buttons, the Select control`),$(`surface-tooltip`,`Tooltip body`),$(`surface-nav`,`The app bar (GlobalNav) — its own chrome`),$(`overlay`,`Scrim behind modals`),$(`scrim`,`Veil over a region that is loading`)]},{title:`Text`,tier:`semantic`,tokens:[$(`text`,`Body text`),$(`text-subdued`,`Secondary text, help text, captions`),$(`text-disabled`,`Disabled labels`),$(`text-on-tooltip`,`Text inside a tooltip`),$(`text-on-nav`,`Text on the app bar`),kb(`text-link`,`Links — primary-coloured text`),kb(`text-link-hover`)]},{title:`Borders`,tier:`semantic`,tokens:[$(`border`,`Default dividers and outlines`),$(`border-strong`,`Heavier dividers — decorative`),$(`table-header-border`,`Rule under a DataTable or ResourceList header. Defaults to the row-rule weight; set to border-strong for a heavier bar`),$(`border-input`,`Control outlines — deliberately soft; set to neutral-500 for strict WCAG 1.4.11`),$(`border-error`),$(`border-focus`,`Focus outline colour`)]},{title:`Primary role`,tier:`semantic`,description:`Primary actions, active states, selection, links. Hover/active are derived from the fill via --octans-state-mix.`,tokens:[...jb(`primary`,{states:!0}),$(`focus-ring`,`Focus ring on inputs and buttons`),$(`state-mix`,`What hover/active fills shade toward — black in both themes, so pressed fills never pull away from their own labels`)]},{title:`Secondary role`,tier:`semantic`,description:`The second brand colour. The secondary Button renders its SOFT form (secondary-surface + text-secondary), keeping it quieter than the primary.`,tokens:jb(`secondary`,{states:!0})},{title:`Tertiary role`,tier:`semantic`,tokens:jb(`tertiary`,{states:!0})},{title:`Status roles`,tier:`semantic`,description:`Fills sit behind text-on-<role>, so they stay dark enough for white text in both themes. Use text-<role> for coloured text.`,tokens:[...jb(`info`),...jb(`success`),...jb(`warning`),...jb(`error`,{states:!0}),$(`tint-info`,`What a status tint (Badge, Banner) mixes from. Follows the fill`),$(`tint-success`,`Follows the success fill`),$(`tint-warning`,`The true amber, NOT the warning fill — that is the deep 700 step, chosen to carry white text, and dilutes to beige`),$(`tint-error`,`Follows the error fill`)]},{title:`Miscellaneous`,tier:`semantic`,tokens:[kb(`skeleton`,`Placeholder blocks in loading states`),$(`scrollbar-thumb`),kb(`scrollbar-thumb-hover`),$(`toggle-knob`,`ToggleSwitch knob. Stays light in dark mode, so it does not follow the theme`),$(`toggle-knob-icon`,`Unchecked icon on the ToggleSwitch knob. Fixed for the same reason`),$(`rating`,`Filled stars in a Rating. Brighter than the warning fill, which is deep enough to carry white text`)]},{title:`Elevation`,tier:`semantic`,description:`Redefined per theme — a black shadow is invisible on a dark surface.`,tokens:[{name:`shadow-sm`,kind:`shadow`},{name:`shadow-md`,kind:`shadow`},{name:`shadow-lg`,kind:`shadow`},{name:`shadow-control`,kind:`shadow`,description:`The hairline under a resting button or input`},{name:`shadow-overflow`,kind:`color`,description:`Edge fade on a ScrollPane with more content off screen. A colour, since it is one end of a gradient rather than a box-shadow`}]},{title:`Radii`,tier:`semantic`,description:`Role-named: field rounds hand-sized controls, box rounds containers. Two knobs make a theme — 0/0 is square, 8/16 is soft.`,tokens:[{name:`radius-field`,kind:`radius`,description:`Buttons, inputs, checkboxes, swatches`},{name:`radius-box`,kind:`radius`,description:`Cards, popovers, modals, tooltips`},{name:`radius-full`,kind:`radius`,description:`Pills and round buttons`}]},{title:`Badge & Banner`,tier:`semantic`,description:`How strongly a status Badge or Banner tints itself with its role colour. Two dials rather than one, because a badge is a small object that has to hold its own against the card it sits on and a banner is a large panel where the same strength stops being a background. The four surfaces under each are DERIVED from that component’s dial — move the dial and all four follow; set one directly only to make a single status sit apart.`,tokens:[{name:`badge-surface-strength`,kind:`percent`,description:`How much role colour a status Badge mixes in`},{name:`banner-surface-strength`,kind:`percent`,description:`How much role colour a status Banner mixes in`},{name:`badge-ink`,kind:`color`,description:`Forces one label colour on every status Badge. Unset = each status keeps its own text colour`},{name:`banner-ink`,kind:`color`,description:`Forces one label colour on every status Banner. Unset = each status keeps its own text colour`},{name:`badge-info-surface`,kind:`color`,description:`Derived from the Badge dial`},{name:`badge-success-surface`,kind:`color`,description:`Derived from the Badge dial`},{name:`badge-warning-surface`,kind:`color`,description:`Derived from the Badge dial`},{name:`badge-error-surface`,kind:`color`,description:`Derived from the Badge dial`},{name:`banner-info-surface`,kind:`color`,description:`Derived from the Banner dial`},{name:`banner-success-surface`,kind:`color`,description:`Derived from the Banner dial`},{name:`banner-warning-surface`,kind:`color`,description:`Derived from the Banner dial`},{name:`banner-error-surface`,kind:`color`,description:`Derived from the Banner dial`}]},{title:`Tabs`,tier:`semantic`,description:`The mark under the selected tab — the one part of a component that lives in the theme, so a product can carry the choice rather than set it in code. The defaults draw an underline; a rounded bar sitting on the divider is the same mark with different numbers (5px / rounded / offset -2px / gap 8px).`,tokens:[{name:`tabs-indicator-height`,kind:`length`,description:`Thickness of the mark`},{name:`tabs-indicator-radius`,kind:`radius`,description:`Rounding of the mark — 0 is a square rule`},{name:`tabs-indicator-offset`,kind:`length`,description:`Vertical shift; negative drops it onto the divider`},{name:`tabs-label-gap`,kind:`length`,description:`Space between the label and the mark`}]},{title:`Sheet`,tier:`semantic`,description:`How big a Sheet is and how fast it moves. In the theme rather than the global stylesheet for the same reason as the Tabs indicator: how wide a product’s sheets are, and whether they glide or snap, is a decision worth carrying rather than repeating at every call site. The size and the two durations are read by Sheet from the computed style — it slides by a transform it computes itself, so the numbers have to reach it as numbers — and are re-read each time a sheet opens.`,tokens:[{name:`sheet-size`,kind:`length`,description:`Default width of a left/right sheet, height of a top/bottom one`},{name:`sheet-padding`,kind:`length`,description:"Gutter that `<Sheet padded>` puts around its content"},{name:`sheet-in-duration`,kind:`duration`,description:`Default open animation; 0ms opens instantly`},{name:`sheet-out-duration`,kind:`duration`,description:`Default close animation; 0ms closes instantly`},{name:`sheet-footer-align`,kind:`keyword`,description:`How the footer slot lays its row out — any justify-content value`},{name:`sheet-footer-gap`,kind:`length`,description:`Space between items in a sheet footer`}]},{title:`Icons`,tier:`semantic`,description:`Two knobs an app sets once instead of passing props at every call site. Both defaults are what the library has always drawn, so setting either is opt-in and cannot silently move existing icons.`,tokens:[{name:`icon-size`,kind:`length`,description:"Size of an Icon with no `size` prop. 1em follows the surrounding font"},{name:`icon-valign`,kind:`length`,description:`Vertical alignment of every Icon; -0.125em suits icons inline with text`}]},{title:`Typography`,tier:`semantic`,tokens:[{name:`font`,kind:`font`},{name:`font-mono`,kind:`font`}]}];Mb.flatMap(e=>e.tokens.map(e=>e.name)),Object.fromEntries(Mb.flatMap(e=>e.tokens).map(e=>[e.name,e])),[`neutral`,`primary`,`secondary`,`tertiary`,`info`,`success`,`warning`,`error`].filter(e=>e!==`neutral`);var Nb=(e,t)=>{if(e.config.globalProperties.$t=Xd,t?.translations)for(let[e,n]of Object.entries(t.translations))Kd(e,n);t?.locale&&(qd(t.locale),dd(t.locale)),t?.timezone&&pd(t.timezone);for(let[n,r]of Object.entries(hy))Pb(n,r)&&e.component(t?.prefix?fb(`${t.prefix}-${n}`):n,r);e.config.globalProperties.$ui=Fb};function Pb(e,t){return/^[A-Z]/.test(e)?typeof t==`function`||typeof t==`object`&&!!t&&(`render`in t||`setup`in t||`__file`in t):!1}var Fb={components:hy,install:Nb,format:dh,setLocale:dd,translate:Xd,t:Xd,setTimezone:pd,getTimezone:md,setTranslations:Gd,addTranslations:Kd,setTranslationLocale:qd,getTranslationLocale:Jd,getAvailableLocales:Yd,setTheme:Cb,toggleTheme:wb,getResolvedTheme:Sb,getThemePreference:xb,onThemeChange:Tb,persistTheme:Eb,toast:Dv,modal:Df,alert:Of,confirm:kf,prompt:Af,progress:zo,loader:To,saveBar:J};return Fb});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octans/ui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "A Vue 3 component library \u2014 accessible, themeable UI primitives and application shell components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"check:tokens": "node scripts/build-token-usage.mjs --check",
|
|
67
67
|
"build": "pnpm run build-lib",
|
|
68
68
|
"build-lib": "vp build --config vite.config-lib.ts && vp build --config vite.config-umd.ts",
|
|
69
|
-
"verify": "pnpm run lint && pnpm run type-check && pnpm run test && pnpm run check:contrast && pnpm run check:icons && pnpm run check:tokens && pnpm run build-lib",
|
|
69
|
+
"verify": "pnpm run format:check && pnpm run lint && pnpm run type-check && pnpm run test && pnpm run check:contrast && pnpm run check:icons && pnpm run check:tokens && pnpm run build-lib",
|
|
70
70
|
"prepublishOnly": "pnpm run verify",
|
|
71
71
|
"tag": "package-version-git-tag --push"
|
|
72
72
|
},
|