PageSourceSearch

http://quickie.ai/_nuxt/DL92LACO.js

js quickie.ai collected 2026-10-04 11:50:27 UTC 45,003 bytes, 1 lines download raw bytes

1import{bl as at,e as k,bm as nt,r as T,bn as $e,m as N,aY as Fe,aA as st,bo as _e,aZ as rt,x as he,k as lt,b4 as ot,ba as Me,R as B,ac as it,ag as ut,ad as dt,J as q,z as l,ab as V,K as w,o as m,w as x,L as S,Q as j,bp as ct,B as ft,$ as Oe,bq as G,aa as ae,br as fe,bs as pt,bt as vt,bu as pe,bv as Ie,bw as gt,ak as ue,b as U,at as mt,bx as qe,aw as Pe,H as z,au as ge,ax as me,ay as yt,af as bt,b3 as Re,c as M,M as ye,N as ht,q as A,by as qt,bz as wt,i as Te,bA as xt,bB as Ve,bC as _t,f as Z,bD as we,bE as le,bF as Ot,bG as It,bH as Et,E as de,F as ce,aK as Le,aL as Ne,G as Y,O as oe,I,a5 as je,t as L,aJ as zt,aM as At,a as ie,aW as Dt,l as Ee,bI as ze,bJ as Ct,d as H,bK as kt,bL as St,bM as Bt,aG as $t,av as Ft,aH as Mt,aI as Pt,v as Ae,b5 as Rt,P as Tt}from"./BNmgGlBy.js";const Vt=["INPUT","TEXTAREA"];function ja(e,t,a,n={}){if(!t||n.enableIgnoredElement&&Vt.includes(t.nodeName))return null;const{arrowKeyOptions:s="both",attributeName:o="[data-reka-collection-item]",itemsArray:c=[],loop:u=!0,dir:i="ltr",preventScroll:f=!0,focus:r=!1}=n,[d,p,v,g,y,b]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],h=v||g,_=d||p;if(!y&&!b&&(!h&&!_||s==="vertical"&&_||s==="horizontal"&&h))return null;const E=a?Array.from(a.querySelectorAll(o)):c;if(!E.length)return null;f&&e.preventDefault();let $=null;return _||h?$=We(E,t,{goForward:h?g:i==="ltr"?d:p,loop:u}):y?$=E.at(0)||null:b&&($=E.at(-1)||null),r&&$?.focus(),$}function We(e,t,a,n=e.length){if(--n===0)return null;const s=e.indexOf(t),o=a.goForward?s+1:s-1;if(!a.loop&&(o<0||o>=e.length))return null;const c=(o+e.length)%e.length,u=e[c];return u?u.hasAttribute("disabled")&&u.getAttribute("disabled")!=="false"?We(e,u,a,n):u:null}const Lt=at(()=>{const e=T(new Map),t=T(),a=k(()=>{for(const c of e.value.values())if(c)return!0;return!1}),n=$e({scrollBody:T(!0)});let s=null;const o=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",_e&&s?.(),t.value=void 0};return N(a,(c,u)=>{if(!Fe)return;if(!c){u&&o();return}t.value===void 0&&(t.value=document.body.style.overflow);const i=window.innerWidth-document.documentElement.clientWidth,f={padding:i,margin:0},r=n.scrollBody?.value?typeof n.scrollBody.value=="object"?st({padding:n.scrollBody.value.padding===!0?i:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?i:n.scrollBody.value.margin},f):f:{padding:0,margin:0};i>0&&(document.body.style.paddingRight=typeof r.padding=="number"?`${r.padding}px`:String(r.padding),document.body.style.marginRight=typeof r.margin=="number"?`${r.margin}px`:String(r.margin),document.documentElement.style.setProperty("--scrollbar-width",`${i}px`),document.body.style.overflow="hidden"),_e&&(s=rt(document,"touchmove",d=>jt(d),{passive:!1})),he(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Nt(e){const t=Math.random().toString(36).substring(2,7),a=Lt();a.value.set(t,e??!1);const n=k({get:()=>a.value.get(t)??!1,set:s=>a.value.set(t,s)});return nt(()=>{a.value.delete(t)}),n}function He(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 a=e.parentNode;return!(a instanceof Element)||a.tagName==="BODY"?!1:He(a)}}function jt(e){const t=e||window.event,a=t.target;return a instanceof Element&&He(a)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Wa(e){const t=$e({dir:T("ltr")});return k(()=>e?.value||t.dir?.value||"ltr")}var Wt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Q=new WeakMap,se=new WeakMap,re={},ve=0,Ke=function(e){return e&&(e.host||Ke(e.parentNode))},Ht=function(e,t){return t.map(function(a){if(e.contains(a))return a;var n=Ke(a);return n&&e.contains(n)?n:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},Kt=function(e,t,a,n){var s=Ht(t,Array.isArray(e)?e:[e]);re[a]||(re[a]=new WeakMap);var o=re[a],c=[],u=new Set,i=new Set(s),f=function(d){!d||u.has(d)||(u.add(d),f(d.parentNode))};
1s.forEach(f);var r=function(d){!d||i.has(d)||Array.prototype.forEach.call(d.children,function(p){if(u.has(p))r(p);else try{var v=p.getAttribute(n),g=v!==null&&v!=="false",y=(Q.get(p)||0)+1,b=(o.get(p)||0)+1;Q.set(p,y),o.set(p,b),c.push(p),y===1&&g&&se.set(p,!0),b===1&&p.setAttribute(a,"true"),g||p.setAttribute(n,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return r(t),u.clear(),ve++,function(){c.forEach(function(d){var p=Q.get(d)-1,v=o.get(d)-1;Q.set(d,p),o.set(d,v),p||(se.has(d)||d.removeAttribute(n),se.delete(d)),v||d.removeAttribute(a)}),ve--,ve||(Q=new WeakMap,Q=new WeakMap,se=new WeakMap,re={})}},Ut=function(e,t,a){a===void 0&&(a="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=Wt(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live], script"))),Kt(n,s,a,"aria-hidden")):function(){return null}};function Yt(e){let t;N(()=>ot(e),a=>{a?t=Ut(a):t&&t()}),lt(()=>{t&&t()})}function be(e,t="reka"){return e||`${t}-${Me?.()}`}const[W,Xt]=it("DialogRoot");var Gt=B({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const a=e,s=ut(a,"open",t,{defaultValue:a.defaultOpen,passive:a.open===void 0}),o=T(),c=T(),{modal:u}=dt(a);return Xt({open:s,modal:u,openModal:()=>{s.value=!0},onOpenChange:i=>{s.value=i},onOpenToggle:()=>{s.value=!s.value},contentId:"",titleId:"",descriptionId:"",triggerElement:o,contentElement:c}),(i,f)=>q(i.$slots,"default",{open:l(s),close:()=>s.value=!1})}}),Jt=Gt,Qt=B({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;V();const a=W();return(n,s)=>(m(),w(l(j),S(t,{type:n.as==="button"?"button":void 0,onClick:s[0]||(s[0]=o=>l(a).onOpenChange(!1))}),{default:x(()=>[q(n.$slots,"default")]),_:3},16,["type"]))}}),Zt=Qt;const ea=ct(()=>T([]));function ta(){const e=ea();return{add(t){const a=e.value[0];t!==a&&a?.pause(),e.value=De(e.value,t),e.value.unshift(t)},remove(t){e.value=De(e.value,t),e.value[0]?.resume()}}}function De(e,t){const a=[...e],n=a.indexOf(t);return n!==-1&&a.splice(n,1),a}function aa(e){return e.filter(t=>t.tagName!=="A")}var na=B({__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 a=e,n=t,{currentRef:s,currentElement:o}=V(),c=T(null),u=ta(),i=ft({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Oe(r=>{if(!Fe)return;const d=o.value;if(!a.trapped)return;function p(b){if(i.paused||!d)return;const h=b.target;d.contains(h)?c.value=h:G(c.value,{select:!0})}function v(b){if(i.paused||!d)return;const h=b.relatedTarget;h!==null&&(d.contains(h)||G(c.value,{select:!0}))}function g(b){d.contains(c.value)||G(d)}document.addEventListener("focusin",p),document.addEventListener("focusout",v);const y=new MutationObserver(g);d&&y.observe(d,{childList:!0,subtree:!0}),r(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),y.disconnect()})}),Oe(async r=>{const d=o.value;if(await he(),!d)return;u.add(i);const p=ae();if(!d.contains(p)){const g=new CustomEvent(fe,Ie);d.addEventListener(fe,y=>n("mountAutoFocus",y)),d.dispatchEvent(g),g.defaultPrevented||(pt(aa(vt(d)),{select:!0}),ae()===p&&G(d))}r(()=>{d.removeEventListener(fe,b=>n("mountAutoFocus",b));const g=new CustomEvent(pe,Ie),y=b=>{n("unmountAutoFocus",b)};d.addEventListener(pe,y),d.dispatchEvent(g),setTimeout(()=>{g.defaultPrevented||G(p??document.body,{select:!0}),d.removeEventListener(pe,y),u.remove(i)},0)})});function f(r){if(!a.loop&&!a.trapped||i.paused)return;const d=r.key==="Tab"&&!r.altKey&&!r.ctrlKey&&!r.metaKey,p=ae();if(d&&p){const v=r.currentTarget,[g,y]=gt(v);g&&y?!r.shiftKey&&p===y?(r.preventDefault(),a.loop&&G(g,{select:!0})):r.shiftKey&&p===g&&(r.preventDefault(),a.loop&&G(y,{select:!0})):p===v&&r.preventDefault()}}return(r,d)=>(m(),w(l(j),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":r.asChild,as:r.as,onKeydown:f},{default:x(()=>[q(r.$slots,"default")]),_:3},8,["as-child","as"]))}}),sa=na;function ra(e){return e?"open":"closed"}var la=B({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,s=W(),{forwardRef:o,currentElement:c}=V();return s.titleId||=be(void 0,"reka-dialog-title"),s.descriptionId||=be(void 0,"reka-dialog-description"),ue(()=>{s.contentElement=c,ae()!==document.body&&(s.triggerElement.value=ae())}),(u,i)=>(m(),w(l(sa),{"as-child":"",loop:"",trapped:a.trapFocus,onMountAutoFocus:i[5]||(i[5]=f=>n("openAutoFocus",f)),onUnmountAutoFocus:i[6]||(i[6]=f=>n("closeAutoFocus",f))},{default:x(()=>[U(l(mt),S({id:l(s).contentId,ref:l(o),as:u.as,"as-child":u.asChild,"disable-outside-pointer-events":u.disableOutsidePointerEvents,role:"dialog","aria-describedby":l(s).descriptionId,"aria-labelledby":l(s).titleId,"data-state":l(ra)(l(s).open.value)},u.$attrs,{onDismiss:i[0]||(i[0]=f=>l(s).onOpenChange(!1)),onEscapeKeyDown:i[1]||(i[1]=f=>n("escapeKeyDown",f)),onFocusOutside:i[2]||(i[2]=f=>n("focusOutside",f)),onInteractOutside:i[3]||(i[3]=f=>n("interactOutside",f)),onPointerDownOutside:i[4]||(i[4]=f=>n("pointerDownOutside",f))}),{default:x(()=>[q(u.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Ue=la,oa=B({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,s=W(),o=qe(n),{forwardRef:c,currentElement:u}=V();return Yt(u),(i,f)=>(m(),w(Ue,S({...a,...l(o)},{ref:l(c),"trap-focus":l(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:f[0]||(f[0]=r=>{r.defaultPrevented||(r.preventDefault(),l(s).triggerElement.value?.focus())}),onPointerDownOutside:f[1]||(f[1]=r=>{const d=r.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0;(d.button===2||p)&&r.preventDefault()}),onFocusOutside:f[2]||(f[2]=r=>{r.preventDefault()})}),{default:x(()=>[q(i.$slots,"default")]),_:3},16,["trap-focus"]))}}),ia=oa,ua=B({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,s=qe(t);V();const o=W(),c=T(!1),u=T(!1);return(i,f)=>(m(),w(Ue,S({...a,...l(s)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:f[0]||(f[0]=r=>{r.defaultPrevented||(c.value||l(o).triggerElement.value?.focus(),r.preventDefault()),c.value=!1,u.value=!1}),onInteractOutside:f[1]||(f[1]=r=>{r.defaultPrevented||(c.value=!0,r.detail.originalEvent.type==="pointerdown"&&(u.value=!0));const d=r.target;l(o).triggerElement.value?.contains(d)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&u.value&&r.preventDefault()})}),{default:x(()=>[q(i.$slots,"default")]),_:3},16))}}),da=ua,ca=B({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,s=W(),o=qe(n),{forwardRef:c}=V();return(u,i)=>(m(),w(l(Pe),{present:u.forceMount||l(s).open.value},{default:x(()=>[l(s).modal.value?(m(),w(ia,S({key:0,ref:l(c)},{...a,...l(o),...u.$attrs}),{default:x(()=>[q(u.$slots,"default")]),_:3},16)):(m(),w(da,S({key:1,ref:l(c)},{...a,...l(o),...u.$attrs}),{default:x(()=>[q(u.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),fa=ca,pa=B({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;V();const a=W();return(n,s)=>(m(),w(l(j),S(t,{id:l(a).descriptionId}),{default:x(()=>[q(n.$slots,"default")]),_:3},16,["id"]))}}),Ce=pa,va=B({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=W();return Nt(!0),V(),(a,n)=>(m(),w(l(j),{as:a.as,"as-child":a.asChild,"data-state":l(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:x(()=>[q(a.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),ga=va,ma=B({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=W(),{forwardRef:a}=V();return(n,s)=>l(t)?.modal.value?(m(),w(l(Pe),{key:0,present:n.forceMount||l(t).open.value},{default:x(()=>[U(ga,S(n.$attrs,{ref:l(a),as:n.as,"as-child":n.asChild}),{default:x(()=>[q(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):z("v-if",!0)}}),ke=ma,ya=B({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(a,n)=>(m(),w(l(yt),ge(me(t)),{default:x(()=>[q(a.$slots,"default")]),_:3},16))}}),ba=ya,ha=B({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,a=W();return V(),(n,s)=>(m(),w(l(j),S(t,{id:l(a).titleId}),{default:x(()=>[q(n.$slots,"default")]),_:3},16,["id"]))}}),Se=ha,qa=B({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,a=W(),{forwardRef:n,currentElement:s}=V();return a.contentId||=be(void 0,"reka-dialog-content"),ue(()=>{a.triggerElement.value=s.value}),(o,c)=>(m(),w(l(j),S(t,{ref:l(n),type:o.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":l(a).open.value||!1,"aria-controls":l(a).open.value?l(a).contentId:void 0,"data-state":l(a).open.value?"open":"closed",onClick:l(a).onOpenToggle}),{default:x(()=>[q(o.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),wa=qa,xa=B({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:a,currentElement:n}=bt(),s=k(()=>t.checked??t.value);return N(s,(o,c)=>{if(!n.value)return;const u=n.value,i=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(i,"value").set;if(r&&o!==c){const d=new Event("input",{bubbles:!0}),p=new Event("change",{bubbles:!0});r.call(u,o),u.dispatchEvent(d),u.dispatchEvent(p)}}),(o,c)=>(m(),w(Re,S({ref_key:"primitiveElement",ref:a},{...t,...o.$attrs},{as:"input"}),null,16))}}),Be=xa,_a=B({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,a=k(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),n=k(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((s,o)=>typeof s=="object"?Object.entries(s).map(([c,u])=>({name:`${t.name}[${o}][${c}]`,value:u})):{name:`${t.name}[${o}]`,value:s}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([s,o])=>({name:`${t.name}[${s}]`,value:o})):[]);return(s,o)=>(m(),M(ye,null,[z(" We render single input if it's required "),a.value?(m(),w(Be,S({key:s.name},{...t,...s.$attrs},{name:s.name,value:s.value}),null,16,["name","value"])):(m(!0),M(ye,{key:1},ht(n.value,c=>(m(),w(Be,S({key:c.name},{ref_for:!0},{...t,...s.$attrs},{name:c.name,value:c.value}),null,16,["name","value"]))),128))],2112))}}),Ha=_a,Oa=B({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return V(),(a,n)=>(m(),w(l(j),S(t,{onMousedown:n[0]||(n[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:x(()=>[q(a.$slots,"default")]),_:3},16))}}),Ia=Oa;function Ea(e={}){const{inheritAttrs:t=!0}=e,a=A(),n=B({setup(o,{slots:c}){return()=>{a.value=c.default}}}),s=B({inheritAttrs:t,props:e.props,setup(o,{attrs:c,slots:u}){return()=>{var i;a.value;const f=(i=a.value)==null?void 0:i.call(a,{...e.props==null?za(c):o,$slots:u});return t&&f?.length===1?f[0]:f}}});return qt({define:n,reuse:s},[n,s])}function za(e){const t={};for(const a in e)t[wt(a)]=e[a];return t}const ne=_t?window:void 0;function J(e){var t;const a=Z(e);return(t=a?.$el)!=null?t:a}function K(...e){const t=[],a=()=>{t.forEach(u=>u()),t.length=0},n=(u,i,f,r)=>(u.addEventListener(i,f,r),()=>u.removeEventListener(i,f,r)),s=k(()=>{const u=le(Z(e[0])).filter(i=>i!=null);return u.every(i=>
1typeof i!="string")?u:void 0}),o=It(()=>{var u,i;return[(i=(u=s.value)==null?void 0:u.map(f=>J(f)))!=null?i:[ne].filter(f=>f!=null),le(Z(s.value?e[1]:e[0])),le(l(s.value?e[2]:e[1])),Z(s.value?e[3]:e[2])]},([u,i,f,r])=>{if(a(),!u?.length||!i?.length||!f?.length)return;const d=Et(r)?{...r}:r;t.push(...u.flatMap(p=>i.flatMap(v=>f.map(g=>n(p,v,g,d)))))},{flush:"post"}),c=()=>{o(),a()};return we(a),c}function Aa(){const e=A(!1),t=Te();return t&&ue(()=>{e.value=!0},t),e}function Ye(e){const t=Aa();return k(()=>(t.value,!!e()))}function Xe(e,t,a={}){const{window:n=ne,...s}=a;let o;const c=Ye(()=>n&&"MutationObserver"in n),u=()=>{o&&(o.disconnect(),o=void 0)},i=k(()=>{const p=Z(e),v=le(p).map(J).filter(Ot);return new Set(v)}),f=N(i,p=>{u(),c.value&&p.size&&(o=new MutationObserver(t),p.forEach(v=>o.observe(v,s)))},{immediate:!0,flush:"post"}),r=()=>o?.takeRecords(),d=()=>{f(),u()};return we(d),{isSupported:c,stop:d,takeRecords:r}}function Da(e){return JSON.parse(JSON.stringify(e))}function Ge(e,t,a={}){const{window:n=ne,...s}=a;let o;const c=Ye(()=>n&&"ResizeObserver"in n),u=()=>{o&&(o.disconnect(),o=void 0)},i=k(()=>{const d=Z(e);return Array.isArray(d)?d.map(p=>J(p)):[J(d)]}),f=N(i,d=>{if(u(),c.value&&n){o=new ResizeObserver(t);for(const p of d)p&&o.observe(p,s)}},{immediate:!0,flush:"post"}),r=()=>{u(),f()};return we(r),{isSupported:c,stop:r}}function Ka(e,t={}){const{reset:a=!0,windowResize:n=!0,windowScroll:s=!0,immediate:o=!0,updateTiming:c="sync"}=t,u=A(0),i=A(0),f=A(0),r=A(0),d=A(0),p=A(0),v=A(0),g=A(0);function y(){const h=J(e);if(!h){a&&(u.value=0,i.value=0,f.value=0,r.value=0,d.value=0,p.value=0,v.value=0,g.value=0);return}const _=h.getBoundingClientRect();u.value=_.height,i.value=_.bottom,f.value=_.left,r.value=_.right,d.value=_.top,p.value=_.width,v.value=_.x,g.value=_.y}function b(){c==="sync"?y():c==="next-frame"&&requestAnimationFrame(()=>y())}return Ge(e,b),N(()=>J(e),h=>!h&&b()),Xe(e,b,{attributeFilter:["style","class"]}),s&&K("scroll",b,{capture:!0,passive:!0}),n&&K("resize",b,{passive:!0}),Ve(()=>{o&&b()}),{height:u,bottom:i,left:f,right:r,top:d,width:p,x:v,y:g,update:b}}const Ca={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function ka(e={}){const{type:t="page",touch:a=!0,resetOnTouchEnds:n=!1,initialValue:s={x:0,y:0},window:o=ne,target:c=o,scroll:u=!0,eventFilter:i}=e;let f=null,r=0,d=0;const p=A(s.x),v=A(s.y),g=A(null),y=typeof t=="function"?t:Ca[t],b=O=>{const R=y(O);f=O,R&&([p.value,v.value]=R,g.value="mouse"),o&&(r=o.scrollX,d=o.scrollY)},h=O=>{if(O.touches.length>0){const R=y(O.touches[0]);R&&([p.value,v.value]=R,g.value="touch")}},_=()=>{if(!f||!o)return;const O=y(f);f instanceof MouseEvent&&O&&(p.value=O[0]+o.scrollX-r,v.value=O[1]+o.scrollY-d)},E=()=>{p.value=s.x,v.value=s.y},$=i?O=>i(()=>b(O),{}):O=>b(O),C=i?O=>i(()=>h(O),{}):O=>h(O),P=i?()=>i(()=>_(),{}):()=>_();if(c){const O={passive:!0};K(c,["mousemove","dragover"],$,O),a&&t!=="movement"&&(K(c,["touchstart","touchmove"],C,O),n&&K(c,"touchend",E,O)),u&&t==="page"&&K(o,"scroll",P,O)}return{x:p,y:v,sourceType:g}}function Ua(e,t={}){const{windowResize:a=!0,windowScroll:n=!0,handleOutside:s=!0,window:o=ne}=t,c=t.type||"page",{x:u,y:i,sourceType:f}=ka(t),r=A(e??o?.document.body),d=A(0),p=A(0),v=A(0),g=A(0),y=A(0),b=A(0),h=A(!0);function _(){if(!o)return;const C=J(r);if(!C||!(C instanceof Element))return;const{left:P,top:O,width:R,height:ee}=C.getBoundingClientRect();v.value=P+(c==="page"?o.pageXOffset:0),g.value=O+(c==="page"?o.pageYOffset:0),y.value=ee,b.value=R;const F=u.value-v.value,X=i.value-g.value;h.value=R===0||ee===0||F<0||X<0||F>R||X>ee,(s||!h.value)&&(d.value=F,p.value=X)}const E=[];function $(){E.forEach(C=>C()),E.length=0}if(Ve(()=>{_()}),o){const{stop:C}=Ge(r,_),{stop:P}=Xe(r,_,{attributeFilter:["style","class"]}),O=N([r,u,i],_);E.push(C,P,O),K(document,"mouseleave",()=>h.value=!0,{passive:!0}),n&&E.push(K("scroll",_,{capture:!0,passive:!0})),a&&E.push(K("resize",_,{passive:!0}))}return{x:u,y:i,sourceType:f,elementX:d,elementY:p,elementPositionX:v,elementPositionY:g,elementHeight:y,elementWidth:b,isOutside:h,stop:$}}function Sa(e,t,a,n={}){var s,o,c;const{clone:u=!1,passive:i=!1,eventName:f,deep:r=!1,defaultValue:d,shouldEmit:p}=n,v=Te(),g=a||v?.emit||((s=v?.$emit)==null?void 0:s.bind(v))||((c=(o=v?.proxy)==null?void 0:o.$emit)==null?void 0:c.bind(v?.proxy));let y=f;y=y||`update:${t.toString()}`;const b=E=>u?typeof u=="function"?u(E):Da(E):E,h=()=>xt(e[t])?b(e[t]):d,_=E=>{p?p(E)&&g(y,E):g(y,E)};if(i){const E=h(),$=T(E);let C=!1;return N(()=>e[t],P=>{C||(C=!0,$.value=b(P),he(()=>C=!1))}),N($,P=>{!C&&(P!==e[t]||r)&&_(P)},{deep:r}),$}else return k({get(){return h()},set(E){_(E)}})}const Ba={slots:{base:"font-medium inline-flex items-center",label:"truncate",leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailingIcon:"shrink-0"},variants:{fieldGroup:{horizontal:"not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",vertical:"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"}
1,color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{solid:"",outline:"",soft:"",subtle:""},size:{xs:{base:"text-[8px]/3 px-1 py-0.5 gap-1 rounded-sm",leadingIcon:"size-3",leadingAvatarSize:"3xs",trailingIcon:"size-3"},sm:{base:"text-[10px]/3 px-1.5 py-1 gap-1 rounded-sm",leadingIcon:"size-3",leadingAvatarSize:"3xs",trailingIcon:"size-3"},md:{base:"text-xs px-2 py-1 gap-1 rounded-md",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},lg:{base:"text-sm px-2 py-1 gap-1.5 rounded-md",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},xl:{base:"text-base px-2.5 py-1 gap-1.5 rounded-md",leadingIcon:"size-6",leadingAvatarSize:"2xs",trailingIcon:"size-6"}},square:{true:""}},compoundVariants:[{color:"primary",variant:"solid",class:"bg-primary text-inverted"},{color:"secondary",variant:"solid",class:"bg-secondary text-inverted"},{color:"success",variant:"solid",class:"bg-success text-inverted"},{color:"info",variant:"solid",class:"bg-info text-inverted"},{color:"warning",variant:"solid",class:"bg-warning text-inverted"},{color:"error",variant:"solid",class:"bg-error text-inverted"},{color:"primary",variant:"outline",class:"text-primary ring ring-inset ring-primary/50"},{color:"secondary",variant:"outline",class:"text-secondary ring ring-inset ring-secondary/50"},{color:"success",variant:"outline",class:"text-success ring ring-inset ring-success/50"},{color:"info",variant:"outline",class:"text-info ring ring-inset ring-info/50"},{color:"warning",variant:"outline",class:"text-warning ring ring-inset ring-warning/50"},{color:"error",variant:"outline",class:"text-error ring ring-inset ring-error/50"},{color:"primary",variant:"soft",class:"bg-primary/10 text-primary"},{color:"secondary",variant:"soft",class:"bg-secondary/10 text-secondary"},{color:"success",variant:"soft",class:"bg-success/10 text-success"},{color:"info",variant:"soft",class:"bg-info/10 text-info"},{color:"warning",variant:"soft",class:"bg-warning/10 text-warning"},{color:"error",variant:"soft",class:"bg-error/10 text-error"},{color:"primary",variant:"subtle",class:"bg-primary/10 text-primary ring ring-inset ring-primary/25"},{color:"secondary",variant:"subtle",class:"bg-secondary/10 text-secondary ring ring-inset ring-secondary/25"},{color:"success",variant:"subtle",class:"bg-success/10 text-success ring ring-inset ring-success/25"},{color:"info",variant:"subtle",class:"bg-info/10 text-info ring ring-inset ring-info/25"},{color:"warning",variant:"subtle",class:"bg-warning/10 text-warning ring ring-inset ring-warning/25"},{color:"error",variant:"subtle",class:"bg-error/10 text-error ring ring-inset ring-error/25"},{color:"neutral",variant:"solid",class:"text-inverted bg-inverted"},{color:"neutral",variant:"outline",class:"ring ring-inset ring-accented text-default bg-default"},{color:"neutral",variant:"soft",class:"text-default bg-elevated"},{color:"neutral",variant:"subtle",class:"ring ring-inset ring-accented text-default bg-elevated"},{size:"xs",square:!0,class:"p-0.5"},{size:"sm",square:!0,class:"p-1"},{size:"md",square:!0,class:"p-1"},{size:"lg",square:!0,class:"p-1"},{size:"xl",square:!0,class:"p-1"}],defaultVariants:{color:"primary",variant:"solid",size:"md"}},Ya={__name:"UBadge",props:{as:{type:null,required:!1,default:"span"},label:{type:[String,Number],required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},icon:{type:[String,Object],required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:[String,Object],required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:[String,Object],required:!1}},setup(e){const t=e,a=de(),n=ce(),{orientation:s,size:o}=Le(t),{isLeading:c,isTrailing:u,leadingIconName:i,trailingIconName:f}=Ne(t),r=k(()=>Y({extend:Y(Ba),...n.ui?.badge||{}})({color:t.color,variant:t.variant,size:o.value||t.size,square:t.square||!a.default&&!t.label,fieldGroup:s.value}));return(d,p)=>(m(),w(l(j),{as:e.as,"data-slot":"base",class:I(r.value.base({class:[t.ui?.base,t.class]}))},{default:x(()=>[q(d.$slots,"leading",{ui:r.value},()=>[l(c)&&l(i)?(m(),w(oe,{key:0,name:l(i),"data-slot":"leadingIcon",class:I(r.value.leadingIcon({class:t.ui?.leadingIcon}))}
1,null,8,["name","class"])):e.avatar?(m(),w(je,S({key:1,size:t.ui?.leadingAvatarSize||r.value.leadingAvatarSize()},e.avatar,{"data-slot":"leadingAvatar",class:r.value.leadingAvatar({class:t.ui?.leadingAvatar})}),null,16,["size","class"])):z("",!0)]),q(d.$slots,"default",{ui:r.value},()=>[e.label!==void 0&&e.label!==null?(m(),M("span",{key:0,"data-slot":"label",class:I(r.value.label({class:t.ui?.label}))},L(e.label),3)):z("",!0)]),q(d.$slots,"trailing",{ui:r.value},()=>[l(u)&&l(f)?(m(),w(oe,{key:0,name:l(f),"data-slot":"trailingIcon",class:I(r.value.trailingIcon({class:t.ui?.trailingIcon}))},null,8,["name","class"])):z("",!0)])]),_:3},8,["as","class"]))}},$a={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"}},Fa=["id","type","value","name","placeholder","disabled","required","autocomplete"],Xa=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:[String,Object],required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:[String,Object],required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:[String,Object],required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:[String,Object],required:!1}},emits:["update:modelValue","blur","change"],setup(e,{expose:t,emit:a}){const n=e,s=a,o=de(),c=Sa(n,"modelValue",s,{defaultValue:n.defaultValue}),u=ce(),{emitFormBlur:i,emitFormInput:f,emitFormChange:r,size:d,color:p,id:v,name:g,highlight:y,disabled:b,emitFormFocus:h,ariaAttrs:_}=zt(n,{deferInputValidation:!0}
1),{orientation:E,size:$}=Le(n),{isLeading:C,isTrailing:P,leadingIconName:O,trailingIconName:R}=Ne(n),ee=k(()=>$.value||d.value),F=k(()=>Y({extend:Y($a),...u.ui?.input||{}})({type:n.type,color:p.value,variant:n.variant,size:ee?.value,loading:n.loading,highlight:y.value,leading:C.value||!!n.avatar||!!o.leading,trailing:P.value||!!o.trailing,fieldGroup:E.value})),X=At("inputRef");function xe(D){n.modelModifiers?.trim&&(D=D?.trim()??null),(n.modelModifiers?.number||n.type==="number")&&(D=Dt(D)),n.modelModifiers?.nullable&&(D||=null),n.modelModifiers?.optional&&(D||=void 0),c.value=D,f()}function Je(D){n.modelModifiers?.lazy||xe(D.target.value)}function Qe(D){const te=D.target.value;n.modelModifiers?.lazy&&xe(te),n.modelModifiers?.trim&&(D.target.value=te.trim()),r(),s("change",D)}function Ze(D){i(),s("blur",D)}function et(){n.autofocus&&X.value?.focus()}return ue(()=>{setTimeout(()=>{et()},n.autofocusDelay)}),t({inputRef:X}),(D,te)=>(m(),w(l(j),{as:e.as,"data-slot":"root",class:I(F.value.root({class:[n.ui?.root,n.class]}))},{default:x(()=>[ie("input",S({id:l(v),ref_key:"inputRef",ref:X,type:e.type,value:l(c),name:l(g),placeholder:e.placeholder,"data-slot":"base",class:F.value.base({class:n.ui?.base}),disabled:l(b),required:e.required,autocomplete:e.autocomplete},{...D.$attrs,...l(_)},{onInput:Je,onBlur:Ze,onChange:Qe,onFocus:te[0]||(te[0]=(...tt)=>l(h)&&l(h)(...tt))}),null,16,Fa),q(D.$slots,"default",{ui:F.value}),l(C)||e.avatar||o.leading?(m(),M("span",{key:0,"data-slot":"leading",class:I(F.value.leading({class:n.ui?.leading}))},[q(D.$slots,"leading",{ui:F.value},()=>[l(C)&&l(O)?(m(),w(oe,{key:0,name:l(O),"data-slot":"leadingIcon",class:I(F.value.leadingIcon({class:n.ui?.leadingIcon}))}
1,null,8,["name","class"])):e.avatar?(m(),w(je,S({key:1,size:n.ui?.leadingAvatarSize||F.value.leadingAvatarSize()},e.avatar,{"data-slot":"leadingAvatar",class:F.value.leadingAvatar({class:n.ui?.leadingAvatar})}),null,16,["size","class"])):z("",!0)])],2)):z("",!0),l(P)||o.trailing?(m(),M("span",{key:1,"data-slot":"trailing",class:I(F.value.trailing({class:n.ui?.trailing}))},[q(D.$slots,"trailing",{ui:F.value},()=>[l(R)?(m(),w(oe,{key:0,name:l(R),"data-slot":"trailingIcon",class:I(F.value.trailingIcon({class:n.ui?.trailingIcon}))},null,8,["name","class"])):z("",!0)])],2)):z("",!0)]),_:3},8,["as","class"]))}}),Ma={slots:{root:"",wrapper:"",labelWrapper:"flex content-center items-center justify-between",label:"block font-medium text-default",container:"mt-1 relative",description:"text-muted",error:"mt-2 text-error",hint:"text-muted",help:"mt-2 text-muted"},variants:{size:{xs:{root:"text-xs"},sm:{root:"text-xs"},md:{root:"text-sm"},lg:{root:"text-sm"},xl:{root:"text-base"}},required:{true:{label:"after:content-['*'] after:ms-0.5 after:text-error"}}},defaultVariants:{size:"md"}},Pa=["id"],Ra=["id"],Ta=["id"],Va=["id"],Ga={__name:"UFormField",props:{as:{type:null,required:!1},name:{type:String,required:!1},errorPattern:{type:null,required:!1},label:{type:String,required:!1},description:{type:String,required:!1},help:{type:String,required:!1},error:{type:[Boolean,String],required:!1},hint:{type:String,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},eagerValidation:{type:Boolean,required:!1},validateOnInputDelay:{type:Number,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(e){const t=e,a=de(),n=ce(),s=k(()=>Y({extend:Y(Ma),...n.ui?.formField||{}})({size:t.size,required:t.required})),o=Ee(kt,null),c=k(()=>t.error||o?.value?.find(r=>r.name===t.name||t.errorPattern&&r.name?.match(t.errorPattern))?.message),u=T(Me()),i=u.value,f=Ee(St,void 0);return N(u,()=>{f&&t.name&&(f.value[t.name]={id:u.value,pattern:t.errorPattern})},{immediate:!0}),ze(Bt,u),ze(Ct,k(()=>({error:c.value,name:t.name,size:t.size,eagerValidation:t.eagerValidation,validateOnInputDelay:t.validateOnInputDelay,errorPattern:t.errorPattern,hint:t.hint,description:t.description,help:t.help,ariaId:i}))),(r,d)=>(m(),w(l(j),{as:e.as,"data-slot":"root",class:I(s.value.root({class:[t.ui?.root,t.class]}))},{default:x(()=>[ie("div",{"data-slot":"wrapper",class:I(s.value.wrapper({class:t.ui?.wrapper}))},[e.label||a.label?(m(),M("div",{key:0,"data-slot":"labelWrapper",class:I(s.value.labelWrapper({class:t.ui?.labelWrapper}))},[U(l(Ia),{for:u.value,"data-slot":"label",class:I(s.value.label({class:t.ui?.label}))},{default:x(()=>[q(r.$slots,"label",{label:e.label},()=>[H(L(e.label),1)])]),_:3},8,["for","class"]),e.hint||a.hint?(m(),M("span",{key:0,id:`${l(i)}-hint`,"data-slot":"hint",class:I(s.value.hint({class:t.ui?.hint}))},[q(r.$slots,"hint",{hint:e.hint},()=>[H(L(e.hint),1)])],10,Pa)):z("",!0)],2)):z("",!0),e.description||a.description?(m(),M("p",{key:1,id:`${l(i)}-description`,"data-slot":"description",class:I(s.value.description({class:t.ui?.description}))},[q(r.$slots,"description",{description:e.description},()=>[H(L(e.description),1)])],10,Ra)):z("",!0)],2),ie("div",{class:I([(e.label||!!a.label||e.description||!!a.description)&&s.value.container({class:t.ui?.container})])},[q(r.$slots,"default",{error:c.value}),typeof c.value=="string"&&c.value||a.error?(m(),M("div",{key:0,id:`${l(i)}-error`,"data-slot":"error",class:I(s.value.error({class:t.ui?.error}))},[q(r.$slots,"error",{error:c.value},()=>[H(L(c.value),1)])],10,Ta)):e.help||a.help?(m(),M("div",{key:1,id:`${l(i)}-help`,"data-slot":"help",class:I(s.value.help({class:t.ui?.help}))},[q(r.$slots,"help",{help:e.help},()=>[H(L(e.help),1)])],10,Va)):z("",!0)],2)]),_:3},8,["as","class"]))}},La={slots:{overlay:"fixed inset-0",content:"bg-default divide-y divide-default flex flex-col focus:outline-none",header:"flex items-center gap-1.5 p-4 sm:px-6 min-h-16",wrapper:"",body:"flex-1 p-4 sm:p-6",footer:"flex items-center gap-1.5 p-4 sm:px-6",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",close:"absolute top-4 end-4"},variants:{transition:{true:{overlay:"data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",content:"data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"}},fullscreen:{true:{content:"inset-0"},false:{content:"w-[calc(100vw-2rem)] max-w-lg rounded-lg shadow-lg ring ring-default"}},overlay:{true:{overlay:"bg-elevated/75"}},scrollable:{true:{overlay:"overflow-y-auto",content:"relative"},false:{content:"fixed",body:"overflow-y-auto"}}},compoundVariants:[{scrollable:!0,fullscreen:!1,class:{overlay:"grid place-items-center p-4 sm:py-8"}},{scrollable:!1,fullscreen:!1,class:{content:"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] overflow-hidden"}}]},Ja={__name:"UModal",props:{title:{type:String,required:!1},description:{type:String,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},scrollable:{type:Boolean,required:!1},transition:{type:Boolean,required:!1,default:!0},fullscreen:{type:Boolean,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:[String,Object],required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:null,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["after:leave","after:enter","close:prevent","update:open"],setup(e,{emit:t}){const a=e,n=t,s=de(),{t:o}=$t(),c=ce(),u=Ft(Mt(a,"open","defaultOpen","modal"),n),i=Pt(Ae(()=>a.portal)),f=Ae(()=>a.content),r=k(()=>
1a.dismissible?a.scrollable?{pointerDownOutside:g=>{const y=g.detail.originalEvent,b=y.target;(y.offsetX>b.clientWidth||y.offsetY>b.clientHeight)&&g.preventDefault()}}:{}:["pointerDownOutside","interactOutside","escapeKeyDown"].reduce((y,b)=>(y[b]=h=>{h.preventDefault(),n("close:prevent")},y),{})),[d,p]=Ea(),v=k(()=>Y({extend:Y(La),...c.ui?.modal||{}})({transition:a.transition,fullscreen:a.fullscreen,overlay:a.overlay,scrollable:a.scrollable}));return(g,y)=>(m(),w(l(Jt),ge(me(l(u))),{default:x(({open:b,close:h})=>[U(l(d),null,{default:x(()=>[U(l(fa),S({"data-slot":"content",class:v.value.content({class:[!s.default&&a.class,a.ui?.content]})},f.value,{onAfterEnter:y[0]||(y[0]=_=>n("after:enter")),onAfterLeave:y[1]||(y[1]=_=>n("after:leave"))},Rt(r.value)),{default:x(()=>[s.content&&(e.title||s.title||e.description||s.description)?(m(),w(l(Re),{key:0},{default:x(()=>[e.title||s.title?(m(),w(l(Se),{key:0},{default:x(()=>[q(g.$slots,"title",{},()=>[H(L(e.title),1)])]),_:3})):z("",!0),e.description||s.description?(m(),w(l(Ce),{key:1},{default:x(()=>[q(g.$slots,"description",{},()=>[H(L(e.description),1)])]),_:3})):z("",!0)]),_:3})):z("",!0),q(g.$slots,"content",{close:h},()=>[s.header||e.title||s.title||e.description||s.description||a.close||s.close?(m(),M("div",{key:0,"data-slot":"header",class:I(v.value.header({class:a.ui?.header}))},[q(g.$slots,"header",{close:h},()=>[ie("div",{"data-slot":"wrapper",class:I(v.value.wrapper({class:a.ui?.wrapper}))},[e.title||s.title?(m(),w(l(Se),{key:0,"data-slot":"title",class:I(v.value.title({class:a.ui?.title}))},{default:x(()=>[q(g.$slots,"title",{},()=>[H(L(e.title),1)])]),_:3},8,["class"])):z("",!0),e.description||s.description?(m(),w(l(Ce),{key:1,"data-slot":"description",class:I(v.value.description({class:a.ui?.description}))},{default:x(()=>[q(g.$slots,"description",{},()=>[H(L(e.description),1)])]),_:3},8,["class"])):z("",!0)],2),q(g.$slots,"actions"),a.close||s.close?(m(),w(l(Zt),{key:0,"as-child":""},{default:x(()=>[q(g.$slots,"close",{ui:v.value},()=>[a.close?(m(),w(Tt,S({key:0,icon:e.closeIcon||l(c).ui.icons.close,color:"neutral",variant:"ghost","aria-label":l(o)("modal.close")},typeof a.close=="object"?a.close:{},{"data-slot":"close",class:v.value.close({class:a.ui?.close})}),null,16,["icon","aria-label","class"])):z("",!0)])]),_:2},1024)):z("",!0)])],2)):z("",!0),s.body?(m(),M("div",{key:1,"data-slot":"body",class:I(v.value.body({class:a.ui?.body}))},[q(g.$slots,"body",{close:h})],2)):z("",!0),s.footer?(m(),M("div",{key:2,"data-slot":"footer",class:I(v.value.footer({class:a.ui?.footer}))},[q(g.$slots,"footer",{close:h})],2)):z("",!0)])]),_:2},1040,["class"])]),_:2},1024),s.default?(m(),w(l(wa),{key:0,"as-child":"",class:I(a.class)},{default:x(()=>[q(g.$slots,"default",{open:b})]),_:2},1032,["class"])):z("",!0),U(l(ba),ge(me(l(i))),{default:x(()=>[e.scrollable?(m(),w(l(ke),{key:0,"data-slot":"overlay",class:I(v.value.overlay({class:a.ui?.overlay}))},{default:x(()=>[U(l(p))]),_:1},8,["class"])):(m(),M(ye,{key:1},[e.overlay?(m(),w(l(ke),{key:0,"data-slot":"overlay",class:I(v.value.overlay({class:a.ui?.overlay}))},null,8,["class"])):z("",!0),U(l(p))],64))]),_:1},16)]),_:3},16))}};export{wa as D,sa as F,Ia as L,Ha as V,Ya as _,Ga as a,Ja as b,Ea as c,Xa as d,Wa as e,be as f,Nt as g,Yt as h,Ka as i,K as j,ja as k,Sa as l,ba as m,ke as n,fa as o,Se as p,Ce as q,Zt as r,Jt as s,Ua as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.