Viewing File: /usr/local/cpanel/base/frontend/jupiter/koality/_nuxt/DPX3lXZf.js

import{bf as kt,aY as Ft,s as E,bg as qt,A as F,i as pe,bh as ft,be as Dt,bi as Ke,aZ as Lt,aQ as dt,bj as Tt,bk as Ne,aP as Mt,aO as pt,bl as $t,d as ce,af as he,y as De,bm as J,b2 as ze,bn as Be,bo as It,bp as Nt,bq as ke,br as Ge,o as T,c as ee,w as ue,ag as U,k as A,ai as ve,Z as Wt,bs as Vt,al as gt,bt as mt,e as ae,ah as ge,bu as Ht,bv as jt,bw as ie,bx as Yt,by as Xt,a as ht,E as vt,b0 as Ut,ao as Kt,bz as Gt,aq as Zt,aD as Qt,bA as Jt,bB as en,bC as tn,b as nn,D as de,_ as Ze,aS as on,p as we,at as Qe,bD as rn}from"./EJiqiqZX.js";const sn=Ft(()=>{const e=F(new Map),t=F(),n=E(()=>{for(const r of e.value.values())if(r)return!0;return!1}),i=qt({scrollBody:F(!0)});let o=null;const s=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Ke&&o?.(),t.value=void 0};return pe(n,(r,c)=>{if(!ft)return;if(!r){c&&s();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,f={padding:u,margin:0},l=i.scrollBody?.value?typeof i.scrollBody.value=="object"?Dt({padding:i.scrollBody.value.padding===!0?u:i.scrollBody.value.padding,margin:i.scrollBody.value.margin===!0?u:i.scrollBody.value.margin},f):f:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof l.padding=="number"?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin=="number"?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),Ke&&(o=Lt(document,"touchmove",a=>an(a),{passive:!1})),dt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Mi(e){const t=Math.random().toString(36).substring(2,7),n=sn();n.value.set(t,e??!1);const i=E({get:()=>n.value.get(t)??!1,set:o=>n.value.set(t,o)});return kt(()=>{n.value.delete(t)}),i}function yt(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:yt(n)}}function an(e){const t=e||window.event,n=t.target;return n instanceof Element&&yt(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function $i(e){return E(()=>Tt(e)?!!Ne(e)?.closest("form"):!0)}var ln=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},oe=new WeakMap,be=new WeakMap,xe={},Fe=0,wt=function(e){return e&&(e.host||wt(e.parentNode))},cn=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=wt(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},un=function(e,t,n,i){var o=cn(t,Array.isArray(e)?e:[e]);xe[n]||(xe[n]=new WeakMap);var s=xe[n],r=[],c=new Set,u=new Set(o),f=function(a){!a||c.has(a)||(c.add(a),f(a.parentNode))};o.forEach(f);var l=function(a){!a||u.has(a)||Array.prototype.forEach.call(a.children,function(p){if(c.has(p))l(p);else try{var d=p.getAttribute(i),g=d!==null&&d!=="false",m=(oe.get(p)||0)+1,h=(s.get(p)||0)+1;oe.set(p,m),s.set(p,h),r.push(p),m===1&&g&&be.set(p,!0),h===1&&p.setAttribute(n,"true"),g||p.setAttribute(i,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return l(t),c.clear(),Fe++,function(){r.forEach(function(a){var p=oe.get(a)-1,d=s.get(a)-1;oe.set(a,p),s.set(a,d),p||(be.has(a)||a.removeAttribute(i),be.delete(a)),d||a.removeAttribute(n)}),Fe--,Fe||(oe=new WeakMap,oe=new WeakMap,be=new WeakMap,xe={})}},fn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=ln(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),un(i,o,n,"aria-hidden")):function(){return null}};function Ii(e){let t;pe(()=>Ne(e),n=>{n?t=fn(n):t&&t()}),Mt(()=>{t&&t()})}function dn(e){const t=F(),n=E(()=>t.value?.width??0),i=E(()=>t.value?.height??0);return pt(()=>{const o=Ne(e);if(o){t.value={width:o.offsetWidth,height:o.offsetHeight};const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const c=r[0];let u,f;if("borderBoxSize"in c){const l=c.borderBoxSize,a=Array.isArray(l)?l[0]:l;u=a.inlineSize,f=a.blockSize}else u=o.offsetWidth,f=o.offsetHeight;t.value={width:u,height:f}});return s.observe(o,{box:"border-box"}),()=>s.unobserve(o)}else t.value=void 0}),{width:n,height:i}}const pn=$t(()=>F([]));function gn(){const e=pn();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=Je(e.value,t),e.value.unshift(t)},remove(t){e.value=Je(e.value,t),e.value[0]?.resume()}}}function Je(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function mn(e){return e.filter(t=>t.tagName!=="A")}var hn=ce({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,i=t,{currentRef:o,currentElement:s}=he(),r=F(null),c=gn(),u=Wt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});De(l=>{if(!ft)return;const a=s.value;if(!n.trapped)return;function p(h){if(u.paused||!a)return;const v=h.target;a.contains(v)?r.value=v:J(r.value,{select:!0})}function d(h){if(u.paused||!a)return;const v=h.relatedTarget;v!==null&&(a.contains(v)||J(r.value,{select:!0}))}function g(h){a.contains(r.value)||J(a)}document.addEventListener("focusin",p),document.addEventListener("focusout",d);const m=new MutationObserver(g);a&&m.observe(a,{childList:!0,subtree:!0}),l(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",d),m.disconnect()})}),De(async l=>{const a=s.value;if(await dt(),!a)return;c.add(u);const p=ze();if(!a.contains(p)){const g=new CustomEvent(Be,Ge);a.addEventListener(Be,m=>i("mountAutoFocus",m)),a.dispatchEvent(g),g.defaultPrevented||(It(mn(Nt(a)),{select:!0}),ze()===p&&J(a))}l(()=>{a.removeEventListener(Be,h=>i("mountAutoFocus",h));const g=new CustomEvent(ke,Ge),m=h=>{i("unmountAutoFocus",h)};a.addEventListener(ke,m),a.dispatchEvent(g),setTimeout(()=>{g.defaultPrevented||J(p??document.body,{select:!0}),a.removeEventListener(ke,m),c.remove(u)},0)})});function f(l){if(!n.loop&&!n.trapped||u.paused)return;const a=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,p=ze();if(a&&p){const d=l.currentTarget,[g,m]=Vt(d);g&&m?!l.shiftKey&&p===m?(l.preventDefault(),n.loop&&J(g,{select:!0})):l.shiftKey&&p===g&&(l.preventDefault(),n.loop&&J(m,{select:!0})):p===d&&l.preventDefault()}}return(l,a)=>(T(),ee(A(ve),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":l.asChild,as:l.as,onKeydown:f},{default:ue(()=>[U(l.$slots,"default")]),_:3},8,["as-child","as"]))}}),Ni=hn;const[bt,vn]=gt("PopperRoot");var yn=ce({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=F();return vn({anchor:t,onAnchorChange:n=>t.value=n}),(n,i)=>U(n.$slots,"default")}}),Wi=yn,wn=ce({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:i}=he(),o=bt();return mt(()=>{o.onAnchorChange(t.reference??i.value)}),(s,r)=>(T(),ee(A(ve),{ref:A(n),as:s.as,"as-child":s.asChild},{default:ue(()=>[U(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),Vi=wn;const bn={key:0,d:"M0 0L6 6L12 0"},xn={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var An=ce({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return he(),(n,i)=>(T(),ee(A(ve),ge(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:ue(()=>[U(n.$slots,"default",{},()=>[n.rounded?(T(),ae("path",xn)):(T(),ae("path",bn))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),Sn=An;function Cn(e){return e!==null}function On(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:o}=t,r=o.arrow?.centerOffset!==0,c=r?0:e.arrowWidth,u=r?0:e.arrowHeight,[f,l]=Le(n),a={start:"0%",center:"50%",end:"100%"}[l],p=(o.arrow?.x??0)+c/2,d=(o.arrow?.y??0)+u/2;let g="",m="";return f==="bottom"?(g=r?a:`${p}px`,m=`${-u}px`):f==="top"?(g=r?a:`${p}px`,m=`${i.floating.height+u}px`):f==="right"?(g=`${-u}px`,m=r?a:`${d}px`):f==="left"&&(g=`${i.floating.width+u}px`,m=r?a:`${d}px`),{data:{x:g,y:m}}}}}function Le(e){const[t,n="center"]=e.split("-");return[t,n]}const En=["top","right","bottom","left"],Z=Math.min,M=Math.max,Se=Math.round,Ae=Math.floor,j=e=>({x:e,y:e}),Pn={left:"right",right:"left",bottom:"top",top:"bottom"},Rn={start:"end",end:"start"};function Te(e,t,n){return M(e,Z(t,n))}function K(e,t){return typeof e=="function"?e(t):e}function G(e){return e.split("-")[0]}function fe(e){return e.split("-")[1]}function We(e){return e==="x"?"y":"x"}function Ve(e){return e==="y"?"height":"width"}const _n=new Set(["top","bottom"]);function H(e){return _n.has(G(e))?"y":"x"}function He(e){return We(H(e))}function zn(e,t,n){n===void 0&&(n=!1);const i=fe(e),o=He(e),s=Ve(o);let r=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=Ce(r)),[r,Ce(r)]}function Bn(e){const t=Ce(e);return[Me(e),t,Me(t)]}function Me(e){return e.replace(/start|end/g,t=>Rn[t])}const et=["left","right"],tt=["right","left"],kn=["top","bottom"],Fn=["bottom","top"];function qn(e,t,n){switch(e){case"top":case"bottom":return n?t?tt:et:t?et:tt;case"left":case"right":return t?kn:Fn;default:return[]}}function Dn(e,t,n,i){const o=fe(e);let s=qn(G(e),n==="start",i);return o&&(s=s.map(r=>r+"-"+o),t&&(s=s.concat(s.map(Me)))),s}function Ce(e){return e.replace(/left|right|bottom|top/g,t=>Pn[t])}function Ln(e){return{top:0,right:0,bottom:0,left:0,...e}}function xt(e){return typeof e!="number"?Ln(e):{top:e,right:e,bottom:e,left:e}}function Oe(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function nt(e,t,n){let{reference:i,floating:o}=e;const s=H(t),r=He(t),c=Ve(r),u=G(t),f=s==="y",l=i.x+i.width/2-o.width/2,a=i.y+i.height/2-o.height/2,p=i[c]/2-o[c]/2;let d;switch(u){case"top":d={x:l,y:i.y-o.height};break;case"bottom":d={x:l,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:a};break;case"left":d={x:i.x-o.width,y:a};break;default:d={x:i.x,y:i.y}}switch(fe(t)){case"start":d[r]-=p*(n&&f?-1:1);break;case"end":d[r]+=p*(n&&f?-1:1);break}return d}async function Tn(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:s,rects:r,elements:c,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:l="viewport",elementContext:a="floating",altBoundary:p=!1,padding:d=0}=K(t,e),g=xt(d),h=c[p?a==="floating"?"reference":"floating":a],v=Oe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:l,strategy:u})),w=a==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),b=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Oe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:u}):w);return{top:(v.top-S.top+g.top)/b.y,bottom:(S.bottom-v.bottom+g.bottom)/b.y,left:(v.left-S.left+g.left)/b.x,right:(S.right-v.right+g.right)/b.x}}const Mn=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,c=s.filter(Boolean),u=await(r.isRTL==null?void 0:r.isRTL(t));let f=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:a}=nt(f,i,u),p=i,d={},g=0;for(let h=0;h<c.length;h++){var m;const{name:v,fn:w}=c[h],{x:y,y:b,data:S,reset:O}=await w({x:l,y:a,initialPlacement:i,placement:p,strategy:o,middlewareData:d,rects:f,platform:{...r,detectOverflow:(m=r.detectOverflow)!=null?m:Tn},elements:{reference:e,floating:t}});l=y??l,a=b??a,d={...d,[v]:{...d[v],...S}},O&&g<=50&&(g++,typeof O=="object"&&(O.placement&&(p=O.placement),O.rects&&(f=O.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:o}):O.rects),{x:l,y:a}=nt(f,p,u)),h=-1)}return{x:l,y:a,placement:p,strategy:o,middlewareData:d}},$n=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:s,platform:r,elements:c,middlewareData:u}=t,{element:f,padding:l=0}=K(e,t)||{};if(f==null)return{};const a=xt(l),p={x:n,y:i},d=He(o),g=Ve(d),m=await r.getDimensions(f),h=d==="y",v=h?"top":"left",w=h?"bottom":"right",y=h?"clientHeight":"clientWidth",b=s.reference[g]+s.reference[d]-p[d]-s.floating[g],S=p[d]-s.reference[d],O=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let x=O?O[y]:0;(!x||!await(r.isElement==null?void 0:r.isElement(O)))&&(x=c.floating[y]||s.floating[g]);const R=b/2-S/2,k=x/2-m[g]/2-1,P=Z(a[v],k),q=Z(a[w],k),_=P,D=x-m[g]-q,B=x/2-m[g]/2+R,I=Te(_,B,D),L=!u.arrow&&fe(o)!=null&&B!==I&&s.reference[g]/2-(B<_?P:q)-m[g]/2<0,C=L?B<_?B-_:B-D:0;return{[d]:p[d]+C,data:{[d]:I,centerOffset:B-I-C,...L&&{alignmentOffset:C}},reset:L}}}),In=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:s,rects:r,initialPlacement:c,platform:u,elements:f}=t,{mainAxis:l=!0,crossAxis:a=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...h}=K(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=G(o),w=H(c),y=G(c)===c,b=await(u.isRTL==null?void 0:u.isRTL(f.floating)),S=p||(y||!m?[Ce(c)]:Bn(c)),O=g!=="none";!p&&O&&S.push(...Dn(c,m,g,b));const x=[c,...S],R=await u.detectOverflow(t,h),k=[];let P=((i=s.flip)==null?void 0:i.overflows)||[];if(l&&k.push(R[v]),a){const B=zn(o,r,b);k.push(R[B[0]],R[B[1]])}if(P=[...P,{placement:o,overflows:k}],!k.every(B=>B<=0)){var q,_;const B=(((q=s.flip)==null?void 0:q.index)||0)+1,I=x[B];if(I&&(!(a==="alignment"?w!==H(I):!1)||P.every(z=>H(z.placement)===w?z.overflows[0]>0:!0)))return{data:{index:B,overflows:P},reset:{placement:I}};let L=(_=P.filter(C=>C.overflows[0]<=0).sort((C,z)=>C.overflows[1]-z.overflows[1])[0])==null?void 0:_.placement;if(!L)switch(d){case"bestFit":{var D;const C=(D=P.filter(z=>{if(O){const V=H(z.placement);return V===w||V==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,Bt)=>V+Bt,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:D[0];C&&(L=C);break}case"initialPlacement":L=c;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function it(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ot(e){return En.some(t=>e[t]>=0)}const Nn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:o="referenceHidden",...s}=K(e,t);switch(o){case"referenceHidden":{const r=await i.detectOverflow(t,{...s,elementContext:"reference"}),c=it(r,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:ot(c)}}}case"escaped":{const r=await i.detectOverflow(t,{...s,altBoundary:!0}),c=it(r,n.floating);return{data:{escapedOffsets:c,escaped:ot(c)}}}default:return{}}}}},At=new Set(["left","top"]);async function Wn(e,t){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=G(n),c=fe(n),u=H(n)==="y",f=At.has(r)?-1:1,l=s&&u?-1:1,a=K(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:g}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof g=="number"&&(d=c==="end"?g*-1:g),u?{x:d*l,y:p*f}:{x:p*f,y:d*l}}const Vn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:s,placement:r,middlewareData:c}=t,u=await Wn(t,e);return r===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:r}}}}},Hn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o,platform:s}=t,{mainAxis:r=!0,crossAxis:c=!1,limiter:u={fn:v=>{let{x:w,y}=v;return{x:w,y}}},...f}=K(e,t),l={x:n,y:i},a=await s.detectOverflow(t,f),p=H(G(o)),d=We(p);let g=l[d],m=l[p];if(r){const v=d==="y"?"top":"left",w=d==="y"?"bottom":"right",y=g+a[v],b=g-a[w];g=Te(y,g,b)}if(c){const v=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=m+a[v],b=m-a[w];m=Te(y,m,b)}const h=u.fn({...t,[d]:g,[p]:m});return{...h,data:{x:h.x-n,y:h.y-i,enabled:{[d]:r,[p]:c}}}}}},jn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:s,middlewareData:r}=t,{offset:c=0,mainAxis:u=!0,crossAxis:f=!0}=K(e,t),l={x:n,y:i},a=H(o),p=We(a);let d=l[p],g=l[a];const m=K(c,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){const y=p==="y"?"height":"width",b=s.reference[p]-s.floating[y]+h.mainAxis,S=s.reference[p]+s.reference[y]-h.mainAxis;d<b?d=b:d>S&&(d=S)}if(f){var v,w;const y=p==="y"?"width":"height",b=At.has(G(o)),S=s.reference[a]-s.floating[y]+(b&&((v=r.offset)==null?void 0:v[a])||0)+(b?0:h.crossAxis),O=s.reference[a]+s.reference[y]+(b?0:((w=r.offset)==null?void 0:w[a])||0)-(b?h.crossAxis:0);g<S?g=S:g>O&&(g=O)}return{[p]:d,[a]:g}}}},Yn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:s,platform:r,elements:c}=t,{apply:u=()=>{},...f}=K(e,t),l=await r.detectOverflow(t,f),a=G(o),p=fe(o),d=H(o)==="y",{width:g,height:m}=s.floating;let h,v;a==="top"||a==="bottom"?(h=a,v=p===(await(r.isRTL==null?void 0:r.isRTL(c.floating))?"start":"end")?"left":"right"):(v=a,h=p==="end"?"top":"bottom");const w=m-l.top-l.bottom,y=g-l.left-l.right,b=Z(m-l[h],w),S=Z(g-l[v],y),O=!t.middlewareData.shift;let x=b,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=y),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(x=w),O&&!p){const P=M(l.left,0),q=M(l.right,0),_=M(l.top,0),D=M(l.bottom,0);d?R=g-2*(P!==0||q!==0?P+q:M(l.left,l.right)):x=m-2*(_!==0||D!==0?_+D:M(l.top,l.bottom))}await u({...t,availableWidth:R,availableHeight:x});const k=await r.getDimensions(c.floating);return g!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function Ee(){return typeof window<"u"}function ne(e){return je(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){var t;return(t=(je(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function je(e){return Ee()?e instanceof Node||e instanceof $(e).Node:!1}function N(e){return Ee()?e instanceof Element||e instanceof $(e).Element:!1}function Y(e){return Ee()?e instanceof HTMLElement||e instanceof $(e).HTMLElement:!1}function rt(e){return!Ee()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $(e).ShadowRoot}const Xn=new Set(["inline","contents"]);function ye(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!Xn.has(o)}const Un=new Set(["table","td","th"]);function Kn(e){return Un.has(ne(e))}const Gn=[":popover-open",":modal"];function Pe(e){return Gn.some(t=>{try{return e.matches(t)}catch{return!1}})}const Zn=["transform","translate","scale","rotate","perspective"],Qn=["transform","translate","scale","rotate","perspective","filter"],Jn=["paint","layout","strict","content"];function Ye(e){const t=Xe(),n=N(e)?W(e):e;return Zn.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Qn.some(i=>(n.willChange||"").includes(i))||Jn.some(i=>(n.contain||"").includes(i))}function ei(e){let t=Q(e);for(;Y(t)&&!le(t);){if(Ye(t))return t;if(Pe(t))return null;t=Q(t)}return null}function Xe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ti=new Set(["html","body","#document"]);function le(e){return ti.has(ne(e))}function W(e){return $(e).getComputedStyle(e)}function Re(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(ne(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rt(e)&&e.host||X(e);return rt(t)?t.host:t}function St(e){const t=Q(e);return le(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&ye(t)?t:St(t)}function me(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=St(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),r=$(o);if(s){const c=$e(r);return t.concat(r,r.visualViewport||[],ye(o)?o:[],c&&n?me(c):[])}return t.concat(o,me(o,[],n))}function $e(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ct(e){const t=W(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=Y(e),s=o?e.offsetWidth:n,r=o?e.offsetHeight:i,c=Se(n)!==s||Se(i)!==r;return c&&(n=s,i=r),{width:n,height:i,$:c}}function Ue(e){return N(e)?e:e.contextElement}function se(e){const t=Ue(e);if(!Y(t))return j(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:s}=Ct(t);let r=(s?Se(n.width):n.width)/i,c=(s?Se(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const ni=j(0);function Ot(e){const t=$(e);return!Xe()||!t.visualViewport?ni:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ii(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$(e)?!1:t}function te(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ue(e);let r=j(1);t&&(i?N(i)&&(r=se(i)):r=se(e));const c=ii(s,n,i)?Ot(s):j(0);let u=(o.left+c.x)/r.x,f=(o.top+c.y)/r.y,l=o.width/r.x,a=o.height/r.y;if(s){const p=$(s),d=i&&N(i)?$(i):i;let g=p,m=$e(g);for(;m&&i&&d!==g;){const h=se(m),v=m.getBoundingClientRect(),w=W(m),y=v.left+(m.clientLeft+parseFloat(w.paddingLeft))*h.x,b=v.top+(m.clientTop+parseFloat(w.paddingTop))*h.y;u*=h.x,f*=h.y,l*=h.x,a*=h.y,u+=y,f+=b,g=$(m),m=$e(g)}}return Oe({width:l,height:a,x:u,y:f})}function _e(e,t){const n=Re(e).scrollLeft;return t?t.left+n:te(X(e)).left+n}function Et(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-_e(e,n),o=n.top+t.scrollTop;return{x:i,y:o}}function oi(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const s=o==="fixed",r=X(i),c=t?Pe(t.floating):!1;if(i===r||c&&s)return n;let u={scrollLeft:0,scrollTop:0},f=j(1);const l=j(0),a=Y(i);if((a||!a&&!s)&&((ne(i)!=="body"||ye(r))&&(u=Re(i)),Y(i))){const d=te(i);f=se(i),l.x=d.x+i.clientLeft,l.y=d.y+i.clientTop}const p=r&&!a&&!s?Et(r,u):j(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+l.x+p.x,y:n.y*f.y-u.scrollTop*f.y+l.y+p.y}}function ri(e){return Array.from(e.getClientRects())}function si(e){const t=X(e),n=Re(e),i=e.ownerDocument.body,o=M(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=M(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+_e(e);const c=-n.scrollTop;return W(i).direction==="rtl"&&(r+=M(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:c}}const st=25;function ai(e,t){const n=$(e),i=X(e),o=n.visualViewport;let s=i.clientWidth,r=i.clientHeight,c=0,u=0;if(o){s=o.width,r=o.height;const l=Xe();(!l||l&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const f=_e(i);if(f<=0){const l=i.ownerDocument,a=l.body,p=getComputedStyle(a),d=l.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(i.clientWidth-a.clientWidth-d);g<=st&&(s-=g)}else f<=st&&(s+=f);return{width:s,height:r,x:c,y:u}}const li=new Set(["absolute","fixed"]);function ci(e,t){const n=te(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=Y(e)?se(e):j(1),r=e.clientWidth*s.x,c=e.clientHeight*s.y,u=o*s.x,f=i*s.y;return{width:r,height:c,x:u,y:f}}function at(e,t,n){let i;if(t==="viewport")i=ai(e,n);else if(t==="document")i=si(X(e));else if(N(t))i=ci(t,n);else{const o=Ot(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Oe(i)}function Pt(e,t){const n=Q(e);return n===t||!N(n)||le(n)?!1:W(n).position==="fixed"||Pt(n,t)}function ui(e,t){const n=t.get(e);if(n)return n;let i=me(e,[],!1).filter(c=>N(c)&&ne(c)!=="body"),o=null;const s=W(e).position==="fixed";let r=s?Q(e):e;for(;N(r)&&!le(r);){const c=W(r),u=Ye(r);!u&&c.position==="fixed"&&(o=null),(s?!u&&!o:!u&&c.position==="static"&&!!o&&li.has(o.position)||ye(r)&&!u&&Pt(e,r))?i=i.filter(l=>l!==r):o=c,r=Q(r)}return t.set(e,i),i}function fi(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const r=[...n==="clippingAncestors"?Pe(t)?[]:ui(t,this._c):[].concat(n),i],c=r[0],u=r.reduce((f,l)=>{const a=at(t,l,o);return f.top=M(a.top,f.top),f.right=Z(a.right,f.right),f.bottom=Z(a.bottom,f.bottom),f.left=M(a.left,f.left),f},at(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function di(e){const{width:t,height:n}=Ct(e);return{width:t,height:n}}function pi(e,t,n){const i=Y(t),o=X(t),s=n==="fixed",r=te(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=j(0);function f(){u.x=_e(o)}if(i||!i&&!s)if((ne(t)!=="body"||ye(o))&&(c=Re(t)),i){const d=te(t,!0,s,t);u.x=d.x+t.clientLeft,u.y=d.y+t.clientTop}else o&&f();s&&!i&&o&&f();const l=o&&!i&&!s?Et(o,c):j(0),a=r.left+c.scrollLeft-u.x-l.x,p=r.top+c.scrollTop-u.y-l.y;return{x:a,y:p,width:r.width,height:r.height}}function qe(e){return W(e).position==="static"}function lt(e,t){if(!Y(e)||W(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function Rt(e,t){const n=$(e);if(Pe(e))return n;if(!Y(e)){let o=Q(e);for(;o&&!le(o);){if(N(o)&&!qe(o))return o;o=Q(o)}return n}let i=lt(e,t);for(;i&&Kn(i)&&qe(i);)i=lt(i,t);return i&&le(i)&&qe(i)&&!Ye(i)?n:i||ei(e)||n}const gi=async function(e){const t=this.getOffsetParent||Rt,n=this.getDimensions,i=await n(e.floating);return{reference:pi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function mi(e){return W(e).direction==="rtl"}const hi={convertOffsetParentRelativeRectToViewportRelativeRect:oi,getDocumentElement:X,getClippingRect:fi,getOffsetParent:Rt,getElementRects:gi,getClientRects:ri,getDimensions:di,getScale:se,isElement:N,isRTL:mi};function _t(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vi(e,t){let n=null,i;const o=X(e);function s(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function r(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const f=e.getBoundingClientRect(),{left:l,top:a,width:p,height:d}=f;if(c||t(),!p||!d)return;const g=Ae(a),m=Ae(o.clientWidth-(l+p)),h=Ae(o.clientHeight-(a+d)),v=Ae(l),y={rootMargin:-g+"px "+-m+"px "+-h+"px "+-v+"px",threshold:M(0,Z(1,u))||1};let b=!0;function S(O){const x=O[0].intersectionRatio;if(x!==u){if(!b)return r();x?r(!1,x):i=setTimeout(()=>{r(!1,1e-7)},1e3)}x===1&&!_t(f,e.getBoundingClientRect())&&r(),b=!1}try{n=new IntersectionObserver(S,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return r(!0),s}function yi(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,f=Ue(e),l=o||s?[...f?me(f):[],...me(t)]:[];l.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const a=f&&c?vi(f,n):null;let p=-1,d=null;r&&(d=new ResizeObserver(v=>{let[w]=v;w&&w.target===f&&d&&(d.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=d)==null||y.observe(t)})),n()}),f&&!u&&d.observe(f),d.observe(t));let g,m=u?te(e):null;u&&h();function h(){const v=te(e);m&&!_t(m,v)&&n(),m=v,g=requestAnimationFrame(h)}return n(),()=>{var v;l.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),a?.(),(v=d)==null||v.disconnect(),d=null,u&&cancelAnimationFrame(g)}}const wi=Vn,bi=Hn,ct=In,xi=Yn,Ai=Nn,Si=$n,Ci=jn,Oi=(e,t,n)=>{const i=new Map,o={platform:hi,...n},s={...o.platform,_c:i};return Mn(e,t,{...o,platform:s})};function Ei(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ie(e){if(Ei(e)){const t=e.$el;return je(t)&&ne(t)==="#comment"?null:t}return e}function re(e){return typeof e=="function"?e():A(e)}function Pi(e){return{name:"arrow",options:e,fn(t){const n=Ie(re(e.element));return n==null?{}:Si({element:n,padding:e.padding}).fn(t)}}}function zt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ut(e,t){const n=zt(e);return Math.round(t*n)/n}function Ri(e,t,n){n===void 0&&(n={});const i=n.whileElementsMounted,o=E(()=>{var x;return(x=re(n.open))!=null?x:!0}),s=E(()=>re(n.middleware)),r=E(()=>{var x;return(x=re(n.placement))!=null?x:"bottom"}),c=E(()=>{var x;return(x=re(n.strategy))!=null?x:"absolute"}),u=E(()=>{var x;return(x=re(n.transform))!=null?x:!0}),f=E(()=>Ie(e.value)),l=E(()=>Ie(t.value)),a=F(0),p=F(0),d=F(c.value),g=F(r.value),m=Yt({}),h=F(!1),v=E(()=>{const x={position:d.value,left:"0",top:"0"};if(!l.value)return x;const R=ut(l.value,a.value),k=ut(l.value,p.value);return u.value?{...x,transform:"translate("+R+"px, "+k+"px)",...zt(l.value)>=1.5&&{willChange:"transform"}}:{position:d.value,left:R+"px",top:k+"px"}});let w;function y(){if(f.value==null||l.value==null)return;const x=o.value;Oi(f.value,l.value,{middleware:s.value,placement:r.value,strategy:c.value}).then(R=>{a.value=R.x,p.value=R.y,d.value=R.strategy,g.value=R.placement,m.value=R.middlewareData,h.value=x!==!1})}function b(){typeof w=="function"&&(w(),w=void 0)}function S(){if(b(),i===void 0){y();return}if(f.value!=null&&l.value!=null){w=i(f.value,l.value,y);return}}function O(){o.value||(h.value=!1)}return pe([s,r,c,o],y,{flush:"sync"}),pe([f,l],S,{flush:"sync"}),pe(o,O,{flush:"sync"}),Ht()&&jt(b),{x:ie(a),y:ie(p),strategy:ie(d),placement:ie(g),middlewareData:ie(m),isPositioned:ie(h),floatingStyles:v,update:y}}const _i={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[zi,Bi]=gt("PopperContent");var ki=ce({inheritAttrs:!1,__name:"PopperContent",props:Ut({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{..._i}),emits:["placed"],setup(e,{emit:t}){const n=e,i=t,o=bt(),{forwardRef:s,currentElement:r}=he(),c=F(),u=F(),{width:f,height:l}=dn(u),a=E(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=E(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),d=E(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),g=E(()=>({padding:p.value,boundary:d.value.filter(Cn),altBoundary:d.value.length>0})),m=E(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),h=Xt(()=>[wi({mainAxis:n.sideOffset+l.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&ct({...g.value,...m.value}),n.avoidCollisions&&bi({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Ci():void 0,...g.value}),!n.prioritizePosition&&n.avoidCollisions&&ct({...g.value,...m.value}),xi({...g.value,apply:({elements:_,rects:D,availableWidth:B,availableHeight:I})=>{const{width:L,height:C}=D.reference,z=_.floating.style;z.setProperty("--reka-popper-available-width",`${B}px`),z.setProperty("--reka-popper-available-height",`${I}px`),z.setProperty("--reka-popper-anchor-width",`${L}px`),z.setProperty("--reka-popper-anchor-height",`${C}px`)}}),u.value&&Pi({element:u.value,padding:n.arrowPadding}),On({arrowWidth:f.value,arrowHeight:l.value}),n.hideWhenDetached&&Ai({strategy:"referenceHidden",...g.value})]),v=E(()=>n.reference??o.anchor.value),{floatingStyles:w,placement:y,isPositioned:b,middlewareData:S}=Ri(v,c,{strategy:n.positionStrategy,placement:a,whileElementsMounted:(..._)=>yi(..._,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:h}),O=E(()=>Le(y.value)[0]),x=E(()=>Le(y.value)[1]);mt(()=>{b.value&&i("placed")});const R=E(()=>S.value.arrow?.centerOffset!==0),k=F("");De(()=>{r.value&&(k.value=window.getComputedStyle(r.value).zIndex)});const P=E(()=>S.value.arrow?.x??0),q=E(()=>S.value.arrow?.y??0);return Bi({placedSide:O,onArrowChange:_=>u.value=_,arrowX:P,arrowY:q,shouldHideArrow:R}),(_,D)=>(T(),ae("div",{ref_key:"floatingRef",ref:c,"data-reka-popper-content-wrapper":"",style:vt({...A(w),transform:A(b)?A(w).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:k.value,"--reka-popper-transform-origin":[A(S).transformOrigin?.x,A(S).transformOrigin?.y].join(" "),...A(S).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[ht(A(ve),ge({ref:A(s)},_.$attrs,{"as-child":n.asChild,as:_.as,"data-side":O.value,"data-align":x.value,style:{animation:A(b)?void 0:"none"}}),{default:ue(()=>[U(_.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),Hi=ki;const Fi={top:"bottom",right:"left",bottom:"top",left:"right"};var qi=ce({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=he(),n=zi(),i=E(()=>Fi[n.placedSide.value]);return(o,s)=>(T(),ae("span",{ref:r=>{A(n).onArrowChange(r)},style:vt({position:"absolute",left:A(n).arrowX?.value?`${A(n).arrowX?.value}px`:void 0,top:A(n).arrowY?.value?`${A(n).arrowY?.value}px`:void 0,[i.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[A(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[A(n).placedSide.value],visibility:A(n).shouldHideArrow.value?"hidden":void 0})},[ht(Sn,ge(o.$attrs,{ref:A(t),style:{display:"block"},as:o.as,"as-child":o.asChild,rounded:o.rounded,width:o.width,height:o.height}),{default:ue(()=>[U(o.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),ji=qi;const Di={slots:{root:"relative inline-flex items-center",base:["w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leading:"absolute inset-y-0 start-0 flex items-center",leadingIcon:"shrink-0 text-dimmed",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailing:"absolute inset-y-0 end-0 flex items-center",trailingIcon:"shrink-0 text-dimmed"},variants:{fieldGroup:{horizontal:{root:"group has-focus-visible:z-[1]",base:"group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"},vertical:{root:"group has-focus-visible:z-[1]",base:"group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"}},size:{xs:{base:"px-2 py-1 text-xs gap-1",leading:"ps-2",trailing:"pe-2",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},sm:{base:"px-2.5 py-1.5 text-xs gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},md:{base:"px-2.5 py-1.5 text-sm gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},lg:{base:"px-3 py-2 text-sm gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},xl:{base:"px-3 py-2 text-base gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-6",leadingAvatarSize:"xs",trailingIcon:"size-6"}},variant:{outline:"text-highlighted bg-default ring ring-inset ring-accented",soft:"text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",subtle:"text-highlighted bg-elevated ring ring-inset ring-accented",ghost:"text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",none:"text-highlighted bg-transparent"},color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},leading:{true:""},trailing:{true:""},loading:{true:""},highlight:{true:""},type:{file:"file:me-1.5 file:font-medium file:text-muted file:outline-none"}},compoundVariants:[{color:"primary",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"},{color:"secondary",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"},{color:"success",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"},{color:"info",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"},{color:"warning",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"},{color:"error",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"},{color:"primary",highlight:!0,class:"ring ring-inset ring-primary"},{color:"secondary",highlight:!0,class:"ring ring-inset ring-secondary"},{color:"success",highlight:!0,class:"ring ring-inset ring-success"},{color:"info",highlight:!0,class:"ring ring-inset ring-info"},{color:"warning",highlight:!0,class:"ring ring-inset ring-warning"},{color:"error",highlight:!0,class:"ring ring-inset ring-error"},{color:"neutral",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"},{color:"neutral",highlight:!0,class:"ring ring-inset ring-inverted"},{leading:!0,size:"xs",class:"ps-7"},{leading:!0,size:"sm",class:"ps-8"},{leading:!0,size:"md",class:"ps-9"},{leading:!0,size:"lg",class:"ps-10"},{leading:!0,size:"xl",class:"ps-11"},{trailing:!0,size:"xs",class:"pe-7"},{trailing:!0,size:"sm",class:"pe-8"},{trailing:!0,size:"md",class:"pe-9"},{trailing:!0,size:"lg",class:"pe-10"},{trailing:!0,size:"xl",class:"pe-11"},{loading:!0,leading:!0,class:{leadingIcon:"animate-spin"}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:"animate-spin"}}],defaultVariants:{size:"md",color:"primary",variant:"outline"}},Li=["id","type","value","name","placeholder","disabled","required","autocomplete"],Yi=Object.assign({inheritAttrs:!1},{__name:"UInput",props:{as:{type:null,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},type:{type:null,required:!1,default:"text"},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},autocomplete:{type:null,required:!1,default:"off"},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},modelModifiers:{type:Object,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:["update:modelValue","blur","change"],setup(e,{expose:t,emit:n}){const i=e,o=n,s=Kt(),r=Gt(i,"modelValue",o,{defaultValue:i.defaultValue}),c=Zt(),{emitFormBlur:u,emitFormInput:f,emitFormChange:l,size:a,color:p,id:d,name:g,highlight:m,disabled:h,emitFormFocus:v,ariaAttrs:w}=Qt(i,{deferInputValidation:!0}),{orientation:y,size:b}=Jt(i),{isLeading:S,isTrailing:O,leadingIconName:x,trailingIconName:R}=en(i),k=E(()=>b.value||a.value),P=E(()=>Qe({extend:Qe(Di),...c.ui?.input||{}})({type:i.type,color:p.value,variant:i.variant,size:k?.value,loading:i.loading,highlight:m.value,leading:S.value||!!i.avatar||!!s.leading,trailing:O.value||!!s.trailing,fieldGroup:y.value})),q=tn("inputRef");function _(C){i.modelModifiers?.trim&&(C=C?.trim()??null),(i.modelModifiers?.number||i.type==="number")&&(C=rn(C)),i.modelModifiers?.nullable&&(C||=null),i.modelModifiers?.optional&&(C||=void 0),r.value=C,f()}function D(C){i.modelModifiers?.lazy||_(C.target.value)}function B(C){const z=C.target.value;i.modelModifiers?.lazy&&_(z),i.modelModifiers?.trim&&(C.target.value=z.trim()),l(),o("change",C)}function I(C){u(),o("blur",C)}function L(){i.autofocus&&q.value?.focus()}return pt(()=>{setTimeout(()=>{L()},i.autofocusDelay)}),t({inputRef:q}),(C,z)=>(T(),ee(A(ve),{as:e.as,"data-slot":"root",class:de(P.value.root({class:[i.ui?.root,i.class]}))},{default:ue(()=>[nn("input",ge({id:A(d),ref_key:"inputRef",ref:q,type:e.type,value:A(r),name:A(g),placeholder:e.placeholder,"data-slot":"base",class:P.value.base({class:i.ui?.base}),disabled:A(h),required:e.required,autocomplete:e.autocomplete},{...C.$attrs,...A(w)},{onInput:D,onBlur:I,onChange:B,onFocus:z[0]||(z[0]=(...V)=>A(v)&&A(v)(...V))}),null,16,Li),U(C.$slots,"default",{ui:P.value}),A(S)||e.avatar||s.leading?(T(),ae("span",{key:0,"data-slot":"leading",class:de(P.value.leading({class:i.ui?.leading}))},[U(C.$slots,"leading",{ui:P.value},()=>[A(S)&&A(x)?(T(),ee(Ze,{key:0,name:A(x),"data-slot":"leadingIcon",class:de(P.value.leadingIcon({class:i.ui?.leadingIcon}))},null,8,["name","class"])):e.avatar?(T(),ee(on,ge({key:1,size:i.ui?.leadingAvatarSize||P.value.leadingAvatarSize()},e.avatar,{"data-slot":"leadingAvatar",class:P.value.leadingAvatar({class:i.ui?.leadingAvatar})}),null,16,["size","class"])):we("",!0)])],2)):we("",!0),A(O)||s.trailing?(T(),ae("span",{key:1,"data-slot":"trailing",class:de(P.value.trailing({class:i.ui?.trailing}))},[U(C.$slots,"trailing",{ui:P.value},()=>[A(R)?(T(),ee(Ze,{key:0,name:A(R),"data-slot":"trailingIcon",class:de(P.value.trailingIcon({class:i.ui?.trailingIcon}))},null,8,["name","class"])):we("",!0)])],2)):we("",!0)]),_:3},8,["as","class"]))}});export{Ni as F,Vi as P,Yi as _,ji as a,Wi as b,Mi as c,Hi as d,_i as e,Ii as f,$i as u};
Back to Directory File Manager