import{H as xe,i as zt,c as g,I as ye,J as tt,s as re,K as Et,L as Lt,p as _,M as Pe,N as St,d as G,m as H,O as be,a as T,P as U,b as Z,l as C,e as x,u as a,R as Tt,f as i,w as K,h as w,Q,S as O,g as X,o as d,q as ie,U as Te,V as se,k as v,W as Ot,n as P,F as oe,D as q,x as pe,y as at,t as Rt,X as Nt,Y as je,v as ne,Z as ze,z as te,r as Ut,j as We,B as Ee,A as Dt,$ as Ke,a0 as lt}from"./index-B6GODExW.js";xe&&Mt();const Vt=xe&&Pt();xe&&jt();xe&&Wt();function Mt(){return we().toUpperCase().indexOf("WINDOWS")>=0}function Pt(){return we().toUpperCase().indexOf("MAC")>=0}function jt(){const e=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"],r=we(),c=r.includes("Mac")&&"ontouchend"in document;return e.includes(r)||c}function Wt(){return we().toUpperCase().indexOf("ANDROID")>=0}function we(){return navigator.userAgentData?.platform||navigator.platform||"unknown"}function Kt(e,r,c={childList:!0,attributes:!0,characterData:!0}){if(zt)return;const t=new MutationObserver(r),l=g(()=>ye(e));return tt(()=>{l.value&&(Array.isArray(l.value)?l.value.forEach(n=>{t.observe(n,c)}):t.observe(l.value,c))}),re(l,()=>{if(l.value){if(Array.isArray(l.value)){l.value.forEach(n=>{t.observe(n,c)});return}t.observe(l.value,c)}},{deep:!0}),Et(()=>{t.disconnect()}),{observer:t}}function Ft(e,r,c={}){const{tm:t,locale:l}=Lt(),n=_(Pe(t(e)));return re(()=>l,()=>{n.value=Pe(t(e))}),{localeMessages:g(()=>St({},r,n.value,c))}}const Fe={link:{base:`
      inline-block cursor-pointer !leading-none transition
      text-{color} decoration-{color} underline-offset-4
      hover:text-{color}-lifted hover:decoration-{color}-lifted
      active:text-{color}-accented active:decoration-{color}-accented
      focus-visible:outline-medium focus-visible:rounded-small
      focus-visible:outline-offset-4 focus-visible:outline-{color}
    `,variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},underlined:{undefined:"hover:decoration-solid hover:underline",true:"decoration-solid underline",false:"no-underline"},defaultSlot:{true:"flex items-center no-underline hover:no-underline"},dashed:{true:"decoration-dashed hover:decoration-dashed"},dotted:{true:"decoration-dotted hover:decoration-dotted"},disabled:{true:"!text-{color}/(--vl-disabled-opacity) !no-underline cursor-not-allowed"},block:{true:"w-full"}}},defaults:{color:"primary",type:"link",size:"md",target:"_self",activeClass:"",exactActiveClass:"",ariaCurrentValue:"page",rel:"noopener noreferrer",underlined:void 0,block:!1,dashed:!1,custom:!1,replace:!1,disabled:!1,viewTransition:!1}},qt="ULink",Gt=["rel","href","target","data-test"],Ta=G({inheritAttrs:!1,__name:"ULink",props:H({label:{},to:{},href:{},size:{},color:{},type:{},activeClass:{},exactActiveClass:{},ariaCurrentValue:{},target:{},rel:{},underlined:{type:Boolean},dashed:{type:Boolean},dotted:{type:Boolean},disabled:{type:Boolean},block:{type:Boolean},custom:{type:Boolean},replace:{type:Boolean},viewTransition:{type:Boolean},config:{},dataTest:{}},{...X(Fe,qt),label:"",to:void 0}),emits:["click","mouseover","focus","blur","keydown"],setup(e,{expose:r,emit:c}){const t=e,l=c,n=be(),u=T("link"),b=g(()=>typeof t.to=="string"||typeof t.to=="object"),I=g(()=>t.to||"/"),$=g(()=>{const f={phone:"tel:",email:"mailto:",link:""};return t.href&&!t.disabled?`${f[t.type]}${t.href}`:void 0});function A(f){if(t.disabled){f.preventDefault(),f.stopPropagation();return}l("click",f)}function z(f){l("mouseover",f)}function B(f){l("focus",f)}function L(f){l("keydown",f)}function E(f){l("blur",f)}r({linkRef:u});const y=g(()=>({defaultSlot:U(n.default)})),{getDataTest:k,linkAttrs:h}=Z(Fe,y);return(f,j)=>b.value?(d(),C(a(Tt),i({key:0,ref:"link",to:I.value,custom:e.custom,replace:e.replace,target:e.target,"active-class":e.activeClass,"exact-active-class":e.exactActiveClass,"aria-current-value":e.ariaCurrentValue,"view-transition":e.viewTransition},a(h),{"data-test":a(k)(),tabindex:"0",onBlur:E,onFocus:B,onClick:A,onKeydown:L,onMouseover:z}),{default:K(D=>[w(f.$slots,"default",{isActive:D.isActive,isExactActive:D.isExactActive},()=>[Q(O(e.label),1)])]),_:3},16,["to","custom","replace","target","active-class","exact-active-class","aria-current-value","view-transition","data-test"])):(d(),x("a",i({key:1,ref:"link",rel:e.rel,href:$.value,target:e.target},a(h),{"data-test":a(k)(),tabindex:"0",onBlur:E,onFocus:B,onClick:A,onKeydown:L,onMouseover:z}),[w(f.$slots,"default",{},()=>[Q(O(e.label),1)])],16,Gt))}});function nt(e,r,c){return r?e.filter(t=>Le(t,c).toLowerCase().includes(r.toLowerCase())).sort((t,l)=>{const n=Le(t,c).indexOf(r),u=Le(l,c).indexOf(r);return n-u}):e}function Ht(e,r,c,t,l){return e.map(n=>{const u=n[t];if(Array.isArray(u))return{[l]:n[l],[t]:nt(u,r,c)}}).reduce((n,u)=>{if(!u)return n;const b=u[t];return Array.isArray(b)&&b.length?(n.push({groupLabel:String(u[l]||"")}),n.concat(b)):n},[])}function Le(e,r){const c=r?e[r]:e;return c!=="object"?String(c):""}const qe={button:{base:`
      flex items-center justify-center font-medium !leading-snug whitespace-nowrap
      border border-solid transition cursor-pointer
      focus-visible:outline-medium focus-visible:outline-offset-2 focus-visible:outline-{color}
      disabled:cursor-not-allowed disabled:outline-0 disabled:outline-offset-0
    `,variants:{size:{"2xs":"px-2 py-1 text-small gap-0.5",xs:"px-3 py-1.5 text-small gap-1",sm:"px-4 py-2 text-medium gap-1.5",md:"px-5 py-2.5 text-medium gap-1.5",lg:"px-6 py-3 text-large gap-1.5",xl:"px-7 py-3.5 text-large gap-2"},variant:{solid:`
          bg-{color} border-transparent text-inverted
          hover:bg-{color}-lifted
          active:bg-{color}-accented
          disabled:!bg-{color}/(--vl-disabled-opacity)
        `,outlined:`
          text-{color} border-{color}
          hover:text-{color}-lifted hover:border-{color}-lifted hover:bg-{color}-lifted/10
          active:text-{color}-accented active:border-{color}-accented active:bg-{color}-accented/15
          disabled:!text-{color}/(--vl-disabled-opacity) disabled:!bg-{color}/5 disabled:!border-{color}/(--vl-disabled-opacity)
        `,subtle:`
          text-{color} bg-{color}/5 border-{color}/15
          hover:text-{color}-lifted hover:bg-{color}-lifted/10
          active:text-{color}-accented active:bg-{color}-accented/15
          disabled:!text-{color}/(--vl-disabled-opacity) disabled:!bg-{color}/5 disabled:!border-{color}/10
        `,soft:`
          text-{color} bg-{color}/5 border-transparent
          hover:text-{color}-lifted hover:bg-{color}-lifted/10
          active:text-{color}-accented active:bg-{color}-accented/15
          disabled:!text-{color}/(--vl-disabled-opacity) disabled:!bg-{color}/5
        `,ghost:`
          text-{color} bg-transparent border-transparent
          hover:text-{color}-lifted hover:bg-{color}-lifted/10
          active:text-{color}-accented active:bg-{color}-accented/15
          disabled:!text-{color}/(--vl-disabled-opacity) disabled:!bg-transparent
        `},round:{false:"rounded-medium",true:"rounded-full"},loading:{true:"gap-0 pointer-events-none"},icon:{true:"gap-0"},label:{false:"gap-0"},block:{true:"w-full"}},compoundVariants:[{label:!1,leftIcon:!0,class:"gap-0"},{label:!1,rightIcon:!0,class:"gap-0"},{square:!0,size:"2xs",class:"p-1"},{square:!0,size:"xs",class:"p-1.5"},{square:!0,size:"sm",class:"p-2"},{square:!0,size:"md",class:"p-2.5"},{square:!0,size:"lg",class:"p-3"},{square:!0,size:"xl",class:"p-3.5"}]},loader:{base:"{ULoader}",defaults:{size:{"2xs":"sm",xs:"sm",sm:"md",md:"md",lg:"lg",xl:"lg"}}},leftIcon:"{UIcon} {>centerIcon} -ml-1",rightIcon:"{UIcon} {>centerIcon} -mr-1",centerIcon:{base:"{UIcon}",defaults:{size:{"2xs":"2xs",xs:"xs",sm:"sm",md:"sm",lg:"sm",xl:"sm"}}},invisible:"invisible w-0",defaults:{color:"primary",variant:"solid",tag:"button",size:"md",tabindex:0,round:!1,block:!1,square:!1,loading:!1,disabled:!1}},Zt="UButton",ot=G({inheritAttrs:!1,__name:"UButton",props:H({variant:{},color:{},size:{},label:{},tag:{},icon:{},leftIcon:{},rightIcon:{},tabindex:{},disabled:{type:Boolean},block:{type:Boolean},round:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},id:{},config:{},dataTest:{}},{...X(qe,Zt),label:""}),setup(e,{expose:r}){const c=e,t=be(),l=c.id||ie(),n=T("button"),u=_({}),b=_(0);re(()=>c.loading,(k,h)=>{const f=k&&h!==void 0;f&&n.value&&(b.value=n.value.offsetWidth),u.value={width:f?`${b.value}px`:null,paddingLeft:f?"0px":null,paddingRight:f?"0px":null}},{immediate:!0}),Te(()=>{c.loading&&n?.value?.blur()}),r({buttonRef:n});const I=g(()=>({icon:!!c.icon||!c.label&&U(t.default),leftIcon:!!c.leftIcon||U(t.left),rightIcon:!!c.rightIcon||U(t.right),label:!!c.label})),{getDataTest:$,buttonAttrs:A,loaderAttrs:z,leftIconAttrs:B,rightIconAttrs:L,centerIconAttrs:E,invisibleAttrs:y}=Z(qe,I);return(k,h)=>(d(),C(se(e.tag),i({id:a(l),ref:"button",disabled:e.disabled},a(A),{style:u.value,tabindex:e.loading?-1:e.tabindex,"data-test":a($)()}),{default:K(()=>[e.loading?(d(),C(Ot,i({key:0,loading:e.loading,color:"inherit",variant:"spinner"},a(z),{"data-test":a($)("loader")}),null,16,["loading","data-test"])):(d(),x(oe,{key:1},[w(k.$slots,"left",{iconName:e.leftIcon},()=>[e.leftIcon?(d(),C(P,i({key:0,color:"inherit",name:e.leftIcon},a(B)),null,16,["name"])):v("",!0)]),w(k.$slots,"default",{label:e.label,iconName:e.icon},()=>[e.icon?(d(),C(P,i({key:0,color:"inherit",name:e.icon},a(E)),null,16,["name"])):(d(),x(oe,{key:1},[Q(O(e.label),1)],64))]),w(k.$slots,"right",{iconName:e.rightIcon},()=>[e.rightIcon?(d(),C(P,i({key:0,name:e.rightIcon,color:"inherit"},a(L)),null,16,["name"])):v("",!0)])],64)),e.icon||e.loading?(d(),x("div",i({key:2,tabindex:"-1"},a(y),{textContent:"invisible"}),null,16)):v("",!0)]),_:3},16,["id","disabled","style","tabindex","data-test"]))}}),Xt="UDivider",Ge={wrapper:{base:"flex items-center justify-center",variants:{vertical:{true:"h-auto flex-col",false:"w-full flex-row"}}},divider:{base:"border-{color}",variants:{color:{neutral:"border-muted"},vertical:{true:"h-full",false:"w-full"},dashed:{true:"border-dashed"},dotted:{true:"border-dotted"}},compoundVariants:[{vertical:!0,size:"xs",class:"border-l"},{vertical:!0,size:"sm",class:"border-l-[2px]"},{vertical:!0,size:"md",class:"border-l-[3px]"},{vertical:!0,size:"lg",class:"border-l-[4px]"},{vertical:!0,size:"xl",class:"border-l-[5px]"},{vertical:!1,size:"xs",class:"border-t"},{vertical:!1,size:"sm",class:"border-t-[2px]"},{vertical:!1,size:"md",class:"border-t-[3px]"},{vertical:!1,size:"lg",class:"border-t-[4px]"},{vertical:!1,size:"xl",class:"border-t-[5px]"}]},dividerIcon:"{UIcon}",label:{base:"px-3 w-fit rounded-medium text-medium text-{color} shrink-0",variants:{color:{neutral:"text-lifted"},vertical:{true:"[writing-mode:vertical-lr]"}}},defaults:{color:"neutral",size:"xs",dashed:!1,dotted:!1,vertical:!1}},Jt=["data-test"],Qt=G({inheritAttrs:!1,__name:"UDivider",props:H({label:{},icon:{},size:{},color:{},dashed:{type:Boolean},dotted:{type:Boolean},vertical:{type:Boolean},config:{},dataTest:{}},{...X(Ge,Xt),label:""}),setup(e,{expose:r}){const c=e,t=T("wrapper");r({wrapperRef:t});const l=g(()=>({label:!!c.label})),{getDataTest:n,wrapperAttrs:u,dividerAttrs:b,dividerIconAttrs:I,labelAttrs:$}=Z(Ge,l);return(A,z)=>(d(),x("div",i({ref:"wrapper"},a(u),{"data-test":a(n)()}),[q("div",pe(at(a(b))),null,16),e.label||e.icon||a(U)(A.$slots.default)?(d(),x("div",pe(i({key:0},a($))),[e.icon&&!e.label?(d(),C(P,i({key:0,name:e.icon,size:"xl",color:"inherit"},a(I)),null,16,["name"])):v("",!0),w(A.$slots,"default",{label:e.label,iconName:e.icon},()=>[Q(O(e.label),1)])],16)):v("",!0),e.label||e.icon||a(U)(A.$slots.default)?(d(),x("div",pe(i({key:1},a(b))),null,16)):v("",!0)],16,Jt))}}),He={wrapper:{base:"flex w-full group/label",variants:{align:{topInside:"flex-col gap-0 relative",topWithDesc:"flex-col-reverse",top:"flex-col",right:"flex-row w-fit",left:"flex-row-reverse w-fit"},disabled:{true:"cursor-not-allowed"}},compoundVariants:[{align:["left","right"],size:"sm",class:"gap-2"},{align:["left","right"],size:"md",class:"gap-2.5"},{align:["left","right"],size:"lg",class:"gap-3"},{align:["left","right"],centred:!0,class:"items-center w-auto"},{align:"left",centred:!0,class:"justify-end"},{align:"right",centred:!0,class:"justify-start"},{align:["top","topWithDesc"],label:!0,class:"gap-2"}]},content:"flex",label:{base:"z-10 block !leading-none w-max transition",variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},align:{top:"font-medium",topInside:"font-normal absolute left-3 text-lifted",topWithDesc:"font-medium",left:"font-normal",right:"font-normal"},error:{true:"text-error group-focus-within/label:!text-error"},disabled:{true:"text-lifted cursor-not-allowed"}},compoundVariants:[{for:!0,disabled:!1,class:"hover:cursor-pointer"},{align:"topInside",size:"sm",class:"top-2 text-tiny"},{align:"topInside",size:"md",class:"top-2.5 text-small"},{align:"topInside",size:"lg",class:"top-2.5 text-medium"},{align:"topWithDesc",size:"sm",class:"-mt-px"},{align:"topWithDesc",size:"md",class:""},{align:"topWithDesc",size:"lg",class:"mt-px"},{align:["left","right"],size:"sm",class:"-mt-0.5 text-medium"},{align:["left","right"],size:"md",class:"text-medium"},{align:["left","right"],size:"lg",class:"mt-px text-large"},{align:["left","right"],centred:!1,class:"pt-1"},{align:"topInside",disabled:!1,class:"group-focus-within/label:text-primary"}]},description:{base:"font-normal text-lifted text-left !leading-tight",variants:{size:{sm:"text-tiny",md:"text-small",lg:"text-medium"},align:{top:"",topInside:"pl-3 mt-1.5",topWithDesc:"pt-0.5",left:"pt-0.5",right:"pt-0.5"}}},error:"{>description} text-error",defaults:{align:"top",size:"md",centred:!1,disabled:!1}},Yt="ULabel",Se={topWithDesc:"topWithDesc",left:"left",right:"right"},_t=["data-test"],ea=["data-test"],ta={key:0},aa=["data-test","textContent"],la=["data-test","textContent"],na=["data-test"],oa=["data-test","textContent"],ra=["data-test","textContent"],sa=G({inheritAttrs:!1,__name:"ULabel",props:H({label:{},for:{},id:{},description:{},error:{},align:{},size:{},disabled:{type:Boolean},centred:{type:Boolean},config:{},dataTest:{}},{...X(He,Yt),label:""}),emits:["click"],setup(e,{expose:r,emit:c}){const t=e,l=c,n=be(),u=t.id||ie(),b=T("wrapper"),I=T("label"),$=g(()=>t.align===Se.left||t.align===Se.right),A=g(()=>t.for?"label":"div"),z=g(()=>t.align===Se.topWithDesc),B=g(()=>I.value),L=g(()=>b.value),E=g(()=>!!t.error&&!t.disabled);function y(M){l("click",M)}r({labelElement:B,wrapperElement:L});const k=g(()=>({error:!!t.error&&!t.disabled,label:!!t.label||U(n.label,{label:t.label}),for:!!t.for})),{getDataTest:h,wrapperAttrs:f,contentAttrs:j,labelAttrs:D,descriptionAttrs:R,errorAttrs:S}=Z(He,k);return(M,ce)=>$.value||z.value?(d(),x("div",i({key:0,ref:"wrapper"},a(f),{"data-test":a(h)()}),[q("div",i(a(j),{"data-test":a(h)("content")}),[w(M.$slots,"default")],16,ea),e.label||a(U)(a(n).label,{label:e.label})||e.error||e.description?(d(),x("div",ta,[e.label||a(U)(a(n).label,{label:e.label})?(d(),C(se(A.value),i({key:0,id:a(u),ref:"label",for:t.for},a(D),{"data-test":a(h)("label"),onClick:y}),{default:K(()=>[w(M.$slots,"label",{label:e.label},()=>[Q(O(e.label),1)])]),_:3},16,["id","for","data-test"])):v("",!0),E.value?(d(),x("div",i({key:1},a(S),{"data-test":a(h)("error"),textContent:O(e.error)}),null,16,aa)):v("",!0),e.description&&!E.value?(d(),x("div",i({key:2},a(R),{"data-test":a(h)("description"),textContent:O(e.description)}),null,16,la)):v("",!0),w(M.$slots,"bottom")])):v("",!0)],16,_t)):(d(),x("div",i({key:1,ref:"wrapper"},a(f)),[e.label||a(U)(a(n).label,{label:e.label})?(d(),C(se(A.value),i({key:0,id:a(u)},a(D),{ref:"label",for:t.for,"data-test":a(h)("label"),onClick:y}),{default:K(()=>[w(M.$slots,"label",{label:e.label},()=>[Q(O(e.label),1)])]),_:3},16,["id","for","data-test"])):v("",!0),q("div",i(a(j),{"data-test":a(h)("content")}),[w(M.$slots,"default")],16,na),E.value?(d(),x("div",i({key:1},a(S),{"data-test":a(h)("error"),textContent:O(e.error)}),null,16,oa)):v("",!0),e.description&&!E.value?(d(),x("div",i({key:2},a(R),{"data-test":a(h)("description"),textContent:O(e.description)}),null,16,ra)):v("",!0),w(M.$slots,"bottom")],16))}}),Ze={inputLabel:{base:"{ULabel}",content:"w-full h-full",variants:{labelAlign:{right:"w-full",left:"w-full"}}},wrapper:{base:`
      flex gap-3 w-full px-3 relative bg-default transition
      border border-solid rounded-medium border-default outline-transparent
      hover:border-lifted hover:focus-within:border-primary focus-within:border-primary
      focus-within:outline focus-within:outline-small focus-within:outline-primary focus-within:transition
    `,variants:{error:{true:"!border-error focus-within:outline-error"},disabled:{true:"!border-default focus-within:outline-0 bg-lifted"}}},inputIcon:{base:"{UIcon}",defaults:{size:{sm:"xs",md:"sm",lg:"md"}}},leftIcon:"{UIcon} {>inputIcon} -mr-0.5",rightIcon:"{UIcon} {>inputIcon} -ml-0.5",leftSlot:"flex items-center",rightSlot:"flex items-center",input:{base:`
      block w-full py-2 font-normal !leading-none bg-transparent
      border-none rounded-inherit transition focus:outline-none
      placeholder:font-normal placeholder:text-muted
      disabled:text-accented disabled:cursor-not-allowed
    `,variants:{size:{sm:"text-small placeholder:text-small placeholder:font-normal",md:"text-medium placeholder:text-medium placeholder:font-normal",lg:"text-large placeholder:text-large placeholder:font-normal"},error:{true:"placeholder:text-error/50"},typePassword:{true:"tracking-widest [-webkit-text-security:disc]"}},compoundVariants:[{labelAlign:"topInside",label:!0,size:"sm",class:"pt-5"},{labelAlign:"topInside",label:!0,size:"md",class:"pt-6"},{labelAlign:"topInside",label:!0,size:"lg",class:"pt-7"}]},defaults:{size:"md",type:"text",inputmode:"text",labelAlign:"topInside",validationRule:"",readonly:!1,disabled:!1,autocomplete:!0}},ia="UInput",ca=["id","placeholder","type","readonly","disabled","maxlength","inputmode","autocomplete","data-test"],da=G({inheritAttrs:!1,__name:"UInput",props:H({modelValue:{},label:{},labelAlign:{},placeholder:{},description:{},error:{},size:{},leftIcon:{},rightIcon:{},maxLength:{},validationRule:{},type:{},inputmode:{},readonly:{type:Boolean},disabled:{type:Boolean},autocomplete:{type:Boolean},id:{},config:{},dataTest:{}},{...X(Ze,ia),modelValue:"",label:"",placeholder:""}),emits:["update:modelValue","change","click","focus","mousedown","blur","input","copy","paste","keydown"],setup(e,{expose:r,emit:c}){const t=e,l=c,n={integer:/\d*/g,number:/\d*\.?\d*/g,string:/[a-zA-Z]+/g,stringAndNumber:/[a-zA-Z0-9]+/g,symbol:/\D/g},u=be(),b=T("wrapper"),I=T("input"),$=T("leftSlotWrapper"),A=T("labelComponent"),z=g(()=>t.type==="password"),B=g({get:()=>t.modelValue,set:m=>l("update:modelValue",m)}),L=t.id||ie(),E=g(()=>t.autocomplete?t.type:"text");tt(()=>{ee(!0),le()});function y(m){const W=m.target;if(!W)return;let N=W.value;if(t.validationRule){const V=document.querySelector(`#${L}`);if(!V)return;N=n[t.validationRule]?ae(N,n[t.validationRule]):ae(N,t.validationRule),V.value=N}l("input",N)}function k(m){l("change",m)}function h(m){ee(!1),l("click",m)}function f(m){ee(!1),l("focus",m)}function j(m){ee(!0),l("blur",m)}function D(m){ee(!1),l("mousedown",m)}function R(m){l("paste",m)}function S(m){l("copy",m)}function M(m){l("keydown",m)}function ce(){I.value?.focus()}function ee(m){!t.autocomplete&&!t.readonly&&I.value&&(m?I.value.setAttribute("readonly","readonly"):I.value.removeAttribute("readonly"))}function ae(m,W){const N=new RegExp(W,"ig"),V=String(m).match(N);return V?V.join(""):""}Kt(b,m=>m.forEach(le),{childList:!0,characterData:!0,subtree:!0}),re([()=>t.leftIcon,()=>t.labelAlign,()=>t.size],le,{flush:"post"});function le(){const m=!U(u.left)&&!t.leftIcon;if(t.labelAlign==="top"||m){A.value?.labelElement&&(A.value.labelElement.style.left="");return}if($.value&&I.value&&A.value?.labelElement){const W=$.value.getBoundingClientRect().width,N=I.value.parentElement;let V=0,de=0;N&&(V=parseFloat(getComputedStyle(N).gap),de=parseFloat(getComputedStyle(N).paddingLeft)),A.value?.labelElement&&(A.value.labelElement.style.left=`${W+de+V}px`)}}r({inputRef:I});const Ie=g(()=>({error:!!t.error&&!t.disabled,label:!!t.label,typePassword:!!(B.value&&z.value)})),{getDataTest:Ae,inputAttrs:ke,wrapperAttrs:ge,inputLabelAttrs:ve,leftIconAttrs:J,leftSlotAttrs:he,rightIconAttrs:Ce,rightSlotAttrs:Be}=Z(Ze,Ie);return(m,W)=>(d(),C(sa,i({ref:"labelComponent",for:a(L),label:e.label,description:e.description,disabled:e.disabled,error:e.error,size:e.size,align:e.labelAlign,centred:""},a(ve)),{label:K(()=>[w(m.$slots,"label",{label:e.label})]),default:K(()=>[q("div",i({ref:"wrapper"},a(ge)),[a(U)(m.$slots.left,{iconName:e.leftIcon})||e.leftIcon?(d(),x("span",i({key:0},a(he),{ref:"leftSlotWrapper"}),[w(m.$slots,"left",{iconName:e.leftIcon},()=>[e.leftIcon?(d(),C(P,i({key:0,color:"neutral",name:e.leftIcon},a(J),{onClick:ce}),null,16,["name"])):v("",!0)])],16)):v("",!0),Rt(q("input",i({id:a(L),ref:"input","onUpdate:modelValue":W[0]||(W[0]=N=>B.value=N),placeholder:e.placeholder,type:E.value,readonly:e.readonly,disabled:e.disabled,maxlength:e.maxLength,inputmode:e.inputmode,autocomplete:e.autocomplete?"on":"off"},a(ke),{"data-test":a(Ae)(),onFocus:f,onBlur:j,onInput:y,onChange:k,onMousedown:D,onClick:h,onPaste:R,onCopy:S,onKeydown:M}),null,16,ca),[[Nt,B.value]]),a(U)(m.$slots.right,{iconName:e.rightIcon})||e.rightIcon?(d(),x("span",pe(i({key:1},a(Be))),[w(m.$slots,"right",{iconName:e.rightIcon},()=>[e.rightIcon?(d(),C(P,i({key:0,color:"neutral",name:e.rightIcon},a(Ce),{onClick:ce}),null,16,["name"])):v("",!0)])],16)):v("",!0)],16)]),_:3},16,["for","label","description","disabled","error","size","align"]))}}),ua="UInputSearch",Xe={searchInput:"{UInput}",searchInputWithButton:{base:"{UInput} {>searchInput}",wrapper:"pr-0"},inputIcon:{base:"{UIcon}",defaults:{size:{sm:"xs",md:"sm",lg:"md"}}},clearIcon:"{>inputIcon}",searchIcon:"{>inputIcon} -mr-1",searchButton:{base:"{UButton} rounded-l-none ml-2",defaults:{size:{sm:"xs",md:"sm",lg:"md"}}},defaults:{size:"md",labelAlign:"topInside",debounce:300,minLength:0,disabled:!1,readonly:!1,clearIcon:"close_small",searchIcon:"search"}},fa=G({inheritAttrs:!1,__name:"UInputSearch",props:H({label:{},modelValue:{},size:{},placeholder:{},labelAlign:{},description:{},error:{},minLength:{},searchButtonLabel:{},debounce:{},leftIcon:{},rightIcon:{},readonly:{type:Boolean},disabled:{type:Boolean},id:{},config:{},dataTest:{}},{...X(Xe,ua),modelValue:"",label:"",placeholder:""}),emits:["update:modelValue","clear","search"],setup(e,{expose:r,emit:c}){const t=e,l=c;let n=je(S=>{l("update:modelValue",S)},Number(t.debounce));const u=_(""),b=T("searchInput"),I=t.id||ie(),$=g(()=>b.value?.inputRef||null);Te(()=>{n=je(S=>{l("update:modelValue",S)},Number(t.debounce))}),Te(()=>{u.value=t.modelValue});function A(S){if(u.value=S,!S){n(S);return}S.length>=Number(t.minLength)&&n(S)}function z(){u.value&&u.value.length>=Number(t.minLength)&&l("search",u.value)}function B(){z()}function L(){z()}function E(){u.value="",l("update:modelValue",""),l("clear")}r({input:$});const{getDataTest:y,config:k,searchInputAttrs:h,searchInputWithButtonAttrs:f,searchIconAttrs:j,clearIconAttrs:D,searchButtonAttrs:R}=Z(Xe);return(S,M)=>(d(),C(da,i({id:a(I),ref:"searchInput","model-value":u.value,size:e.size,disabled:e.disabled,readonly:e.readonly,"label-align":e.labelAlign,label:e.label,error:e.error,description:e.description,placeholder:e.placeholder,inputmode:"search","left-icon":e.leftIcon},e.searchButtonLabel?a(f):a(h),{"data-test":a(y)(),"onUpdate:modelValue":A,onKeyup:ne(B,["enter"])}),{left:K(()=>[w(S.$slots,"left")]),right:K(()=>[u.value?(d(),C(P,i({key:0,interactive:"",color:"neutral",disabled:e.disabled,name:a(k).defaults.clearIcon},a(D),{"data-test":a(y)("clear"),onClick:E}),null,16,["disabled","name","data-test"])):v("",!0),w(S.$slots,"right",{iconName:e.rightIcon||a(k).defaults.searchIcon,searchButtonLabel:e.searchButtonLabel},()=>[e.searchButtonLabel?v("",!0):(d(),C(P,i({key:0,interactive:"",color:"neutral",disabled:e.disabled,name:e.rightIcon||a(k).defaults.searchIcon},a(j),{"data-test":a(y)("search-icon"),onClick:L}),null,16,["disabled","name","data-test"])),e.searchButtonLabel?(d(),C(ot,i({key:1,label:e.searchButtonLabel},a(R),{"data-test":a(y)("search-button"),onClick:L}),null,16,["label","data-test"])):v("",!0)])]),_:3},16,["id","model-value","size","disabled","readonly","label-align","label","error","description","placeholder","left-icon","data-test"]))}});function ma(e,r,c){const t=_(0),l=_(!1),n=g(()=>ye(e)),u=g(()=>ye(r)),b=g(()=>ye(c)),I=g(()=>{const y=u.value?.at(t.value)?.dataset?.groupLabel||"",k=2;if(y){const h=t.value-k;return u.value?.at(h)?.getBoundingClientRect()?.height||0}return u.value?.at(t.value)?.getBoundingClientRect()?.height||0}),$=g(()=>t.value*I.value||0);function A(){if(!b.value)return;const k=b.value.getBoundingClientRect().height/I.value-1,h=$.value-k*I.value;b.value.scrollTop<=h&&(b.value.scrollTop=h)}function z(){if(t.value<n.value.length-1){t.value++;const y=n.value[t.value].isSubGroup||n.value[t.value].groupLabel;b.value&&A(),n.value[t.value]&&y&&z()}l.value=!0}function B(){if(t.value>0){t.value--;const y=n.value[t.value].isSubGroup||n.value[t.value].groupLabel;b.value&&b.value.scrollTop>=$.value&&(b.value.scrollTop=$.value),n.value[t.value]&&y&&B()}else n.value[t.value]&&n.value[0].groupLabel&&z();l.value=!0}function L(y){t.value=y,l.value=!0}function E(){t.value=0,b.value&&(b.value.scrollTop=0)}return{pointer:t,pointerDirty:l,pointerSet:L,pointerReset:E,pointerBackward:B,pointerForward:z}}const Je="UListbox",pa=["data-test"],ba=["aria-multiselectable","aria-activedescendant"],ga=["role","aria-selected","aria-disabled","data-group-label"],va=["data-test","onClick","onMouseenter"],ha=["title","textContent"],ya=["aria-label","textContent"],xa=["aria-label","textContent"],wa=["textContent"],Ia=["data-test"],Aa=["textContent"],Oa=G({inheritAttrs:!1,__name:"UListbox",props:H({modelValue:{},search:{},options:{},searchable:{type:Boolean},multiple:{type:Boolean},labelKey:{},valueKey:{},groupLabelKey:{},groupValueKey:{},optionsLimit:{},addOption:{type:Boolean},size:{},color:{},visibleOptions:{},debounce:{},disabled:{type:Boolean},id:{},config:{},dataTest:{}},{...X(ze,Je),modelValue:"",options:()=>[]}),emits:["update:modelValue","add","clickOption","searchChange","searchBlur","update:search"],setup(e,{expose:r,emit:c}){const t=e,l=c,n=T("wrapper"),u=T("listbox-input"),b=T("option"),I=T("empty-option"),$=T("add-option"),A=_(""),z=_(t.search??""),{pointer:B,pointerDirty:L,pointerSet:E,pointerBackward:y,pointerForward:k,pointerReset:h}=ma(t.options,b,n),f=t.id||ie(),{localeMessages:j}=Ft(Je,ze.i18n,t?.config?.i18n),D=g({get:()=>z.value,set:s=>{l("update:search",s),z.value=s??""}}),R=g({get:()=>t.multiple&&!Array.isArray(t.modelValue)?t.modelValue?[t.modelValue]:[]:t.modelValue,set:s=>l("update:modelValue",s)}),S=g(()=>Vt?"(⌘ + Enter)":"(Ctrl + Enter)"),M=g(()=>t.multiple||void 0),ce=g(()=>B.value>=0?`${f}-${B.value}`:void 0),ee=s=>{if(!(s&&s.groupLabel)&&!s.divider)return!!J(s)},ae=g(()=>{const s=D.value.toLowerCase().trim();let p=[...t.options];return p=t.groupValueKey?Ht(p,s,t.labelKey,t.groupValueKey,t.groupLabelKey):nt(p,s,t.labelKey),p.slice(0,t.optionsLimit||p.length)});re(()=>[t.options,t.size,t.visibleOptions,t.searchable,D.value],()=>{Dt(()=>{const s=[...b.value||[],...$.value?[$.value]:[],...I.value?[I.value]:[]];t.visibleOptions&&s.slice(0,t.visibleOptions);const p=s.slice(0,t.visibleOptions).map(me=>{const Y=window.getComputedStyle(me),$e=parseFloat(Y.height||"0"),Bt=parseFloat(Y.marginTop||"0"),$t=parseFloat(Y.marginBottom||"0");return $e+Bt+$t}).reduce((me,Y)=>me+Y,0),o=getComputedStyle(n.value),F=parseFloat(o.paddingTop||"0"),ue=parseFloat(o.paddingBottom||"0"),It=parseFloat(o.borderTopWidth||"0"),At=parseFloat(o.borderBottomWidth||"0"),kt=parseFloat(o.gap||"0"),Ct=$.value?.getBoundingClientRect().height||0,fe=u.value?.input;let Ue=0,De=0,Ve=0,Me=0;if(fe){const me=getComputedStyle(fe),Y=fe.parentElement?getComputedStyle(fe.parentElement):void 0,$e=getComputedStyle(fe.parentElement?.parentElement?.parentElement);Ue=parseFloat(me.height||"0"),De=parseFloat($e.paddingTop||"0"),Ve=parseFloat(Y?.borderTop||"0"),Me=parseFloat(Y?.borderBottom||"0")}A.value=`${p+Ct+(t.searchable?kt:0)+F+ue+It+At+Ue+Ve+Me+De}px`})},{immediate:!0}),re(()=>t.multiple,(s,p)=>{s&&!p&&t.modelValue&&(R.value=[t.modelValue]),s&&!p&&!t.modelValue&&(R.value=[]);const o=t.modelValue;!s&&p&&o.length&&(R.value=o[0]),!s&&p&&!o.length&&(R.value="")});function le(){l("add")}function Ie(s){l("searchChange",s)}function Ae(){n.value?.focus()}function ke(){n.value?.focus()}function ge(s){return["isSubGroup","groupLabel","level","isHidden","onClick","divider"].includes(s)}function ve(s,p){if(t.disabled||s.disabled||s.groupLabel||p==="Tab"&&!L.value)return;const o=s[t.valueKey];if(t.valueKey in s&&!ge(t.valueKey)&&!t.multiple&&(R.value=o),t.valueKey in s&&!ge(t.valueKey)&&t.multiple){const F=R.value;R.value=J(s)?F.filter(ue=>!Ee(ue,o)):[...F,o]}}function J(s){return t.multiple?R.value.find(p=>Ee(p,s[t.valueKey])):Ee(R.value,s[t.valueKey])}function he(s=0){if(s>1)return`margin-left: ${.5*(s-1)}rem`}function Ce(s){return s.disabled?J(s)?wt.value:xt.value:J(s)?Oe.value:Re.value}function Be(s,p){const o=[];return J(p)&&o.push(Oe.value.class),s===B.value&&!J(p)&&o.push(yt.value.class),o}function m(s){t.options.length>0&&(ve(t.options[B.value],s),W(t.options[B.value])),h()}function W(s){const p={...s};delete p.onClick,typeof s.onClick=="function"&&s.onClick(p),l("clickOption",p)}function N(s){l("searchBlur",s)}r({pointer:B,pointerSet:E,pointerBackward:y,pointerForward:k,pointerReset:h,addPointerElement:m,optionsRef:b,listboxInputRef:u,wrapperRef:n});const{getDataTest:V,config:de,wrapperAttrs:rt,listboxInputAttrs:st,listAttrs:it,listItemAttrs:ct,addOptionLabelWrapperAttrs:dt,addOptionLabelAttrs:ut,addOptionLabelHotkeyAttrs:ft,addOptionButtonAttrs:mt,addOptionIconAttrs:pt,optionActiveAttrs:Oe,optionAttrs:Re,subGroupAttrs:bt,groupAttrs:gt,optionContentAttrs:Ne,optionDividerAttrs:vt,selectedIconAttrs:ht,optionHighlightedAttrs:yt,optionDisabledAttrs:xt,optionDisabledActiveAttrs:wt}=Z(ze);return(s,p)=>(d(),x("div",i({ref:"wrapper",tabindex:"1",style:{maxHeight:A.value}},a(rt),{"data-test":a(V)("list"),onKeydown:[p[2]||(p[2]=ne(te((...o)=>a(k)&&a(k)(...o),["self","prevent"]),["down"])),p[3]||(p[3]=ne(te((...o)=>a(y)&&a(y)(...o),["self","prevent"]),["up"])),p[4]||(p[4]=ne(te(o=>m("Enter"),["stop","self"]),["enter"]))]}),[e.searchable?(d(),C(fa,i({key:0,id:a(f),ref:"listbox-input",modelValue:D.value,"onUpdate:modelValue":p[0]||(p[0]=o=>D.value=o),placeholder:a(j).search,size:e.size,debounce:e.debounce},a(st),{"data-test":a(V)("search"),onBlur:N,onKeydown:[ne(te(ke,["self","prevent"]),["down"]),ne(te(Ae,["self","prevent"]),["up"])],"onUpdate:modelValue":Ie}),null,16,["id","modelValue","placeholder","size","debounce","data-test","onKeydown"])):v("",!0),q("ul",i(a(it),{role:"listbox","aria-multiselectable":M.value,"aria-activedescendant":ce.value}),[(d(!0),x(oe,null,Ut(ae.value,(o,F)=>(d(),x("li",i({key:F},{ref_for:!0},a(ct),{ref_for:!0,ref:"option",role:o&&o.groupLabel?void 0:"option","aria-selected":ee(o),"aria-disabled":!!o.disabled||void 0,"data-group-label":!!o.groupLabel}),[o.divider?(d(),C(Qt,i({key:0,ref_for:!0},a(vt)),null,16)):v("",!0),!(o&&(o.groupLabel||o.isSubGroup))&&!o.isHidden&&!o.divider?(d(),x("span",i({key:1,ref_for:!0},Ce(o),{"data-test":a(V)("option"),class:Be(F,o),onClick:ue=>(ve(o),W(o)),onMouseenter:te(ue=>a(E)(F),["self"])}),[w(s.$slots,"before-option",{option:o,index:F}),w(s.$slots,"option",{option:o,index:F},()=>[q("span",i({style:he(o.level)},{ref_for:!0},a(Ne),{title:String(o[e.labelKey]),textContent:O(o[e.labelKey])}),null,16,ha)]),w(s.$slots,"after-option",{option:o,index:F},()=>[J(o)?(d(),C(P,i({key:0,color:"inherit",name:a(de).defaults.selectedIcon},{ref_for:!0},a(ht)),null,16,["name"])):v("",!0)])],16,va)):v("",!0),o&&(o.groupLabel||o.isSubGroup)&&!o.isHidden?(d(),x(oe,{key:2},[o.groupLabel?(d(),x("div",i({key:0,role:"group","aria-label":o.groupLabel},{ref_for:!0},a(gt),{textContent:O(o.groupLabel)}),null,16,ya)):o.isSubGroup?(d(),x("div",i({key:1,role:"group","aria-label":String(o[e.labelKey]),style:he(o.level)},{ref_for:!0},a(bt),{textContent:O(o[e.labelKey])}),null,16,xa)):v("",!0)],64)):v("",!0)],16,ga))),128)),ae.value.length?v("",!0):(d(),x("li",i({key:0,ref:"empty-option",role:"option"},a(Re)),[w(s.$slots,"empty",{},()=>[q("span",i(a(Ne),{textContent:O(a(j).noDataToShow)}),null,16,wa)])],16)),e.addOption?(d(),x(oe,{key:1},[q("li",i({ref:"add-option",role:"option"},a(dt),{"data-test":a(V)("add"),onClick:le,onMouseenter:p[1]||(p[1]=te(o=>a(E)(ae.value.length+1),["self"]))}),[q("span",pe(at(a(ut))),[Q(O(a(j).add)+" ",1),q("span",i(a(ft),{textContent:O(S.value)}),null,16,Aa)],16)],16,Ia),We(ot,i({round:"",square:""},a(mt),{"data-test":a(V)("add-button"),onClick:le}),{default:K(()=>[We(P,i({color:"inherit",size:"xs",name:a(de).defaults.addOptionIcon},a(pt)),null,16,["name"])]),_:1},16,["data-test"])],64)):v("",!0)],16,ba)],16,pa))}}),ka="UCol",Qe={wrapper:{base:"flex flex-col",variants:{reverse:{false:"flex-col",true:"flex-col-reverse"},wrap:{true:"flex-wrap"},block:{true:"w-full"},grow:{true:"flex-grow"},shrink:{true:"flex-shrink"},gap:{none:"gap-0","3xs":"gap-0.5","2xs":"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-7","3xl":"gap-8"},align:{end:"items-end",start:"items-start",center:"items-center",stretch:"items-stretch",baseline:"items-baseline"},justify:{end:"justify-end",start:"justify-start",center:"justify-center",around:"justify-around",evenly:"justify-evenly",between:"justify-between"},content:{end:"content-end",start:"content-start",center:"content-center",around:"content-around",evenly:"content-evenly",normal:"content-normal",stretch:"content-stretch",between:"content-between",baseline:"content-baseline"}}},defaults:{gap:"md",align:"start",content:"start",justify:"start",tag:"div",wrap:!1,reverse:!1,block:!1,grow:!1,shrink:!1}},Ra=G({inheritAttrs:!1,__name:"UCol",props:H({gap:{},align:{},content:{},justify:{},reverse:{type:Boolean},wrap:{type:Boolean},block:{type:Boolean},grow:{type:Boolean},shrink:{type:Boolean},tag:{},config:{},dataTest:{}},{...X(Qe,ka)}),setup(e,{expose:r}){const c=T("wrapper");r({wrapperRef:c});const{getDataTest:t,wrapperAttrs:l}=Z(Qe);return(n,u)=>(d(),C(se(e.tag),i({ref:"wrapper"},a(l),{"data-test":a(t)()}),{default:K(()=>[w(n.$slots,"default")]),_:3},16,["data-test"]))}}),Ca="URow",Ye={wrapper:{base:"flex",variants:{reverse:{false:"flex-row",true:"flex-row-reverse"},wrap:{true:"flex-wrap"},block:{true:"w-full"},grow:{true:"flex-grow"},shrink:{true:"flex-shrink"},gap:{none:"gap-0","3xs":"gap-0.5","2xs":"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-7","3xl":"gap-8"},align:{end:"items-end",start:"items-start",center:"items-center",stretch:"items-stretch",baseline:"items-baseline"},justify:{end:"justify-end",start:"justify-start",center:"justify-center",around:"justify-around",evenly:"justify-evenly",between:"justify-between"},content:{end:"content-end",start:"content-start",center:"content-center",around:"content-around",evenly:"content-evenly",normal:"content-normal",stretch:"content-stretch",between:"content-between",baseline:"content-baseline"}}},defaults:{gap:"md",align:"start",content:"start",justify:"start",tag:"div",wrap:!1,block:!1,reverse:!1,grow:!1,shrink:!1}},Na=G({inheritAttrs:!1,__name:"URow",props:H({gap:{},align:{},content:{},justify:{},reverse:{type:Boolean},wrap:{type:Boolean},block:{type:Boolean},grow:{type:Boolean},shrink:{type:Boolean},tag:{},config:{},dataTest:{}},{...X(Ye,Ca)}),setup(e,{expose:r}){const c=T("wrapper");r({wrapperRef:c});const{getDataTest:t,wrapperAttrs:l}=Z(Ye);return(n,u)=>(d(),C(se(e.tag),i({ref:"wrapper"},a(l),{"data-test":a(t)()}),{default:K(()=>[w(n.$slots,"default")]),_:3},16,["data-test"]))}}),Ba="UBadge",_e={badge:{base:`
      inline-flex items-center justify-between py-1
      border border-solid rounded-medium !leading-none outline-hidden
    `,variants:{variant:{solid:"border-transparent text-inverted bg-{color}",outlined:"border-{color} text-{color}",subtle:"border-{color}/15 text-{color} bg-{color}/10",soft:"border-transparent text-{color} bg-{color}/10"},size:{sm:"gap-0.5 px-2 text-tiny",md:"gap-1 px-2.5 text-small",lg:"gap-1 px-3 text-medium"},round:{true:"rounded-full"},tabindex:{true:"cursor-pointer focus-visible:outline-medium focus-visible:outline-offset-2 focus-visible:outline-{color}"}}},badgeIcon:{base:"{UIcon}",defaults:{size:{sm:"3xs",md:"2xs",lg:"xs"}}},centerIcon:"{UIcon} {>badgeIcon}",leftIcon:"{UIcon} {>badgeIcon} -ml-0.5",rightIcon:"{UIcon} {>badgeIcon} -mr-0.5",defaults:{color:"primary",variant:"solid",tabindex:"-1",size:"md",round:!1}},$a=["id","data-test","tabindex"],Ua=G({inheritAttrs:!1,__name:"UBadge",props:H({label:{},variant:{},size:{},color:{},icon:{},leftIcon:{},rightIcon:{},round:{type:Boolean},tabindex:{},id:{},config:{},dataTest:{}},{...X(_e,Ba),label:""}),emits:["focus","keydown","blur","click"],setup(e,{expose:r,emit:c}){const t=e,l=c,n=be(),u=t.id||ie(),b=T("wrapper");function I(){l("focus")}function $(f){l("blur",f)}function A(f){l("keydown",f)}function z(f){l("click",f)}r({wrapperRef:b});const B=g(()=>({tabindex:!!~Number(t.tabindex),leftIcon:!!t.leftIcon||U(n.left),rightIcon:!!t.rightIcon||U(n.right)})),{getDataTest:L,badgeAttrs:E,leftIconAttrs:y,centerIconAttrs:k,rightIconAttrs:h}=Z(_e,B);return(f,j)=>(d(),x("div",i({id:a(u),ref:"wrapper"},a(E),{"data-test":a(L)(),tabindex:e.tabindex,onBlur:$,onFocus:I,onKeydown:A,onClick:z}),[w(f.$slots,"left",{iconName:e.leftIcon},()=>[e.leftIcon?(d(),C(P,i({key:0,name:e.leftIcon,color:"inherit"},a(y)),null,16,["name"])):v("",!0)]),w(f.$slots,"default",{label:e.label,iconName:e.icon},()=>[e.icon?(d(),C(P,i({key:0,name:e.icon,color:"inherit"},a(k)),null,16,["name"])):(d(),x(oe,{key:1},[Q(O(e.label),1)],64))]),w(f.$slots,"right",{iconName:e.rightIcon},()=>[e.rightIcon?(d(),C(P,i({key:0,name:e.rightIcon,color:"inherit"},a(h)),null,16,["name"])):v("",!0)])],16,$a))}}),za={free:"orderpaymenttermfree",onetime:"orderpaymenttermonetime",monthly:"orderpaymenttermmonthly",quarterly:"orderpaymenttermquarterly",semiannually:"orderpaymenttermsemiannually",annually:"orderpaymenttermannually",biennially:"orderpaymenttermbiennially",triennially:"orderpaymenttermtriennially"},Ea={free:"orderpaymenttermadjectivefree",onetime:"orderpaymenttermadjectiveonetime",monthly:"orderpaymenttermadjectivemonthly",quarterly:"orderpaymenttermadjectivequarterly",semiannually:"orderpaymenttermadjectivesemiannually",annually:"orderpaymenttermadjectiveannually",biennially:"orderpaymenttermadjectivebiennially",triennially:"orderpaymenttermadjectivetriennially"};function Da(e=""){let r="index.php",c="";return e.includes(".php")&&(r=e),e&&!e.includes(".php")&&(c=`?rp=/${e}`),Ke.getBaseUrl()+Ke.getBasePath()+"/"+r+c}function Va(e,r=""){return typeof e=="string"&&e!==""?e:typeof e=="number"?String(e):typeof e=="boolean"?String(Number(e)):r}function Ma(e){const r=e.split(".");if(r.length<2)return{name:e,tld:""};const c=r.slice(0,-1).join("."),t="."+r[r.length-1];return{name:c,tld:t}}function Pa(e){const r=za[e];return r?lt.t(r):e}function ja(e){const r=Ea[e];return r?lt.t(r):e}function Wa(e){return/^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z]{2,})+$/.test(e)}const Ka="",Fa="announcements",qa="knowledgebase",Ga="serverstatus.php",Ha="contact.php",Za="login",Xa="register.php",Ja="password/reset",Qa="store",Ya="cart.php?a=view",_a="cart.php?a=add&domain=transfer",el="knowledgebase/search/",La="UText",et={text:{base:`
      font-normal leading-normal
      [&_b]:font-bold [&_i]:italic [&_p]:font-normal
      [&_a:not([class])]:underline [&_a:not([class])]:underline-offset-4
      [&_a:not([class]):hover]:no-underline
      [&_ul]:font-normal [&_ol]:font-normal
      [&_ul]:leading-normal [&_ol]:leading-normal
      [&_ul]:list-inside [&_ol]:list-inside
      [&_ul]:list-disc [&_ol]:list-decimal
      [&_ul]:ml-2 [&_ol]:ml-2
    `,variants:{variant:{default:"text-{color}",lifted:"text-{color}-lifted",accented:"text-{color}-accented",muted:"text-{color}/(--vl-disabled-opacity)",inverted:"text-{color} brightness-125 dark:brightness-75"},color:{inherit:"text-inherit"},size:{xs:"text-tiny",sm:"text-small",md:"text-medium",lg:"text-large"},align:{left:"text-left",center:"text-center",right:"text-right"},weight:{light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},line:{true:"leading-none"},wrap:{true:"text-wrap wrap-anywhere",false:"text-nowrap"}},compoundVariants:[{color:"text",variant:"default",class:"text-default"},{color:"text",variant:"lifted",class:"text-lifted"},{color:"text",variant:"accented",class:"text-accented"},{color:"text",variant:"muted",class:"text-muted"},{color:"text",variant:"inverted",class:"text-inverted brightness-100 dark:brightness-100"}]},defaults:{color:"text",variant:"default",size:"md",align:"left",weight:"normal",tag:"div",line:!1,wrap:!0}},tl=G({inheritAttrs:!1,__name:"UText",props:H({label:{},size:{},align:{},variant:{},weight:{},color:{},tag:{},line:{type:Boolean},wrap:{type:Boolean},config:{},dataTest:{}},{...X(et,La)}),setup(e,{expose:r}){const c=T("text");r({textRef:c});const{getDataTest:t,textAttrs:l}=Z(et);return(n,u)=>(d(),C(se(e.tag),i({ref:"text"},a(l),{"data-test":a(t)()}),{default:K(()=>[w(n.$slots,"default",{},()=>[Q(O(e.label),1)])]),_:3},16,["data-test"]))}});export{_a as A,za as B,Va as C,Ya as D,Wa as E,Ka as U,Ta as _,Oa as a,Ra as b,Na as c,fa as d,ot as e,Ua as f,Da as g,el as h,Fa as i,qa as j,Ga as k,Ha as l,Za as m,Xa as n,Ja as o,tl as p,Qa as q,ja as r,Qt as s,Pa as t,Ft as u,da as v,Vt as w,Kt as x,sa as y,Ma as z};
