@tmsoft/webphone 2.0.27 → 2.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -73,7 +73,7 @@ Duration=160`,contentType:"application/dtmf-relay",contentDisposition:"signal"}}
|
|
|
73
73
|
`)].join(`
|
|
74
74
|
`))}return()=>s.value||n.value||o.value?tr(t.default({present:o.value})[0],{ref:c=>{const u=Bt(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?i.value=u.firstElementChild:i.value=u),u}}):null}}),Ll=J({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:r}){return()=>{if(!r.default)return null;const n=Il(r.default()),s=n.findIndex(l=>l.type!==nt);if(s===-1)return n;const i=n[s];delete i.props?.ref;const o=i.props?fe(t,i.props):t,a=fr({...i,props:{}},o);return n.length===1?a:(n[s]=a,n)}}}),Zy=["area","img","input"],Be=J({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:r}){const n=e.asChild?"template":e.as;return typeof n=="string"&&Zy.includes(n)?()=>tr(n,t):n!=="template"?()=>tr(e.as,t,{default:r.default}):()=>tr(Ll,t,{default:r.default})}});function Fl(){const e=L();return{primitiveElement:e,currentElement:W(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Bt(e))}}var[xn,Xy]=xt("DialogRoot"),Qy=J({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 r=e,n=ys(r,"open",t,{defaultValue:r.defaultOpen,passive:r.open===void 0}),s=L(),i=L(),{modal:o}=St(r);return Xy({open:n,modal:o,openModal:()=>{n.value=!0},onOpenChange:a=>{n.value=a},onOpenToggle:()=>{n.value=!n.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:i}),(a,l)=>Z(a.$slots,"default",{open:f(n),close:()=>n.value=!1})}}),eb=J({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Te();const r=xn();return(n,s)=>($(),z(f(Be),fe(t,{type:n.as==="button"?"button":void 0,onClick:s[0]||(s[0]=i=>f(r).onOpenChange(!1))}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["type"]))}}),tb="dismissableLayer.pointerDownOutside",rb="dismissableLayer.focusOutside";function Ap(e,t){const r=t.closest("[data-dismissable-layer]"),n=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(r&&(n===r||s.indexOf(n)<s.indexOf(r)))}function nb(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=L(!1),i=L(()=>{});return Qe(o=>{if(!Tt||!Se(r))return;const a=async c=>{const u=c.target;if(!(!t?.value||!u)){if(Ap(t.value,u)){s.value=!1;return}if(c.target&&!s.value){let g=function(){El(tb,e,p)};var d=g;const p={originalEvent:c};c.pointerType==="touch"?(n.removeEventListener("click",i.value),i.value=g,n.addEventListener("click",i.value,{once:!0})):g()}else n.removeEventListener("click",i.value);s.value=!1}},l=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);o(()=>{window.clearTimeout(l),n.removeEventListener("pointerdown",a),n.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{Se(r)&&(s.value=!0)}}}function sb(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=L(!1);return Qe(i=>{if(!Tt||!Se(r))return;const o=async a=>{if(!t?.value)return;await dt(),await dt();const l=a.target;!t.value||!l||Ap(t.value,l)||a.target&&!s.value&&El(rb,e,{originalEvent:a})};n.addEventListener("focusin",o),i(()=>n.removeEventListener("focusin",o))}),{onFocusCapture:()=>{Se(r)&&(s.value=!0)},onBlurCapture:()=>{Se(r)&&(s.value=!1)}}}var ir=qr({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),Vl=J({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const r=e,n=t,{forwardRef:s,currentElement:i}=Te(),o=W(()=>i.value?.ownerDocument??globalThis.document),a=W(()=>ir.layersRoot),l=W(()=>i.value?Array.from(a.value).indexOf(i.value):-1),c=W(()=>ir.layersWithOutsidePointerEventsDisabled.size>0),u=W(()=>{const g=Array.from(a.value),[m]=[...ir.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(m);return l.value>=y}),d=nb(async g=>{const m=[...ir.branches].some(y=>y?.contains(g.target));!u.value||m||(n("pointerDownOutside",g),n("interactOutside",g),await dt(),g.defaultPrevented||n("dismiss"))},i),p=sb(g=>{[...ir.branches].some(m=>m?.contains(g.target))||(n("focusOutside",g),n("interactOutside",g),g.defaultPrevented||n("dismiss"))},i);return Cy("Escape",g=>{l.value===a.value.size-1&&(n("escapeKeyDown",g),g.defaultPrevented||n("dismiss"))}),Qe(g=>{i.value&&(r.disableOutsidePointerEvents&&(ir.layersWithOutsidePointerEventsDisabled.size===0&&(ir.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),ir.layersWithOutsidePointerEventsDisabled.add(i.value)),a.value.add(i.value),g(()=>{r.disableOutsidePointerEvents&&ir.layersWithOutsidePointerEventsDisabled.size===1&&!Al(ir.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=ir.originalBodyPointerEvents)}))}),Qe(g=>{g(()=>{i.value&&(a.value.delete(i.value),ir.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(g,m)=>($(),z(f(Be),{ref:f(s),"as-child":g.asChild,as:g.as,"data-dismissable-layer":"",style:gt({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:f(p).onFocusCapture,onBlurCapture:f(p).onBlurCapture,onPointerdownCapture:f(d).onPointerDownCapture},{default:R(()=>[Z(g.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),ib=ey(()=>L([]));function ob(){const e=ib();return{add(t){const r=e.value[0];t!==r&&r?.pause(),e.value=Ip(e.value,t),e.value.unshift(t)},remove(t){e.value=Ip(e.value,t),e.value[0]?.resume()}}}function Ip(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}var jl="focusScope.autoFocusOnMount",Ul="focusScope.autoFocusOnUnmount",Rp={bubbles:!1,cancelable:!0};function ab(e,{select:t=!1}={}){const r=Ut();for(const n of e)if(Tn(n,{select:t}),Ut()!==r)return!0}function lb(e){const t=kp(e);return[$p(t,e),$p(t.reverse(),e)]}function kp(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function $p(e,t){for(const r of e)if(!cb(r,{upTo:t}))return r}function cb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ub(e){return e instanceof HTMLInputElement&&"select"in e}function Tn(e,{select:t=!1}={}){if(e&&e.focus){const r=Ut();e.focus({preventScroll:!0}),e!==r&&ub(e)&&t&&e.select()}}var Dp=J({__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 r=e,n=t,{currentRef:s,currentElement:i}=Te(),o=L(null),a=ob(),l=qr({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Qe(u=>{if(!Tt)return;const d=i.value;if(!r.trapped)return;function p(S){if(l.paused||!d)return;const v=S.target;d.contains(v)?o.value=v:Tn(o.value,{select:!0})}function g(S){if(l.paused||!d)return;const v=S.relatedTarget;v!==null&&(d.contains(v)||Tn(o.value,{select:!0}))}function m(S){d.contains(o.value)||Tn(d)}document.addEventListener("focusin",p),document.addEventListener("focusout",g);const y=new MutationObserver(m);d&&y.observe(d,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),y.disconnect()})}),Qe(async u=>{const d=i.value;if(await dt(),!d)return;a.add(l);const p=Ut();if(!d.contains(p)){const g=new CustomEvent(jl,Rp);d.addEventListener(jl,m=>n("mountAutoFocus",m)),d.dispatchEvent(g),g.defaultPrevented||(ab(kp(d),{select:!0}),Ut()===p&&Tn(d))}u(()=>{d.removeEventListener(jl,y=>n("mountAutoFocus",y));const g=new CustomEvent(Ul,Rp),m=y=>{n("unmountAutoFocus",y)};d.addEventListener(Ul,m),d.dispatchEvent(g),setTimeout(()=>{g.defaultPrevented||Tn(p??document.body,{select:!0}),d.removeEventListener(Ul,m),a.remove(l)},0)})});function c(u){if(!r.loop&&!r.trapped||l.paused)return;const d=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,p=Ut();if(d&&p){const g=u.currentTarget,[m,y]=lb(g);m&&y?!u.shiftKey&&p===y?(u.preventDefault(),r.loop&&Tn(m,{select:!0})):u.shiftKey&&p===m&&(u.preventDefault(),r.loop&&Tn(y,{select:!0})):p===g&&u.preventDefault()}}return(u,d)=>($(),z(f(Be),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:c},{default:R(()=>[Z(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),Pp=["Enter"," "],db=["ArrowDown","PageUp","Home"],fb=["ArrowUp","PageDown","End"],lx=[...db,...fb],cx={ltr:[...Pp,"ArrowRight"],rtl:[...Pp,"ArrowLeft"]};function pb(e){return e?"open":"closed"}function Op(e){const t=Ut();for(const r of e)if(r===t||(r.focus(),Ut()!==t))return}var Hp=J({__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 r=e,n=t,s=xn(),{forwardRef:i,currentElement:o}=Te();return s.titleId||(s.titleId=_s(void 0,"reka-dialog-title")),s.descriptionId||(s.descriptionId=_s(void 0,"reka-dialog-description")),We(()=>{s.contentElement=o,Ut()!==document.body&&(s.triggerElement.value=Ut())}),(a,l)=>($(),z(f(Dp),{"as-child":"",loop:"",trapped:r.trapFocus,onMountAutoFocus:l[5]||(l[5]=c=>n("openAutoFocus",c)),onUnmountAutoFocus:l[6]||(l[6]=c=>n("closeAutoFocus",c))},{default:R(()=>[M(f(Vl),fe({id:f(s).contentId,ref:f(i),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":f(s).descriptionId,"aria-labelledby":f(s).titleId,"data-state":f(pb)(f(s).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=c=>f(s).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=c=>n("escapeKeyDown",c)),onFocusOutside:l[2]||(l[2]=c=>n("focusOutside",c)),onInteractOutside:l[3]||(l[3]=c=>n("interactOutside",c)),onPointerDownOutside:l[4]||(l[4]=c=>n("pointerDownOutside",c))}),{default:R(()=>[Z(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),hb=J({__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 r=e,n=t,s=xn(),i=ko(n),{forwardRef:o,currentElement:a}=Te();return xp(a),(l,c)=>($(),z(Hp,fe({...r,...f(i)},{ref:f(o),"trap-focus":f(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(u.preventDefault(),f(s).triggerElement.value?.focus())}),onPointerDownOutside:c[1]||(c[1]=u=>{const d=u.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0;(d.button===2||p)&&u.preventDefault()}),onFocusOutside:c[2]||(c[2]=u=>{u.preventDefault()})}),{default:R(()=>[Z(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),gb=J({__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 r=e,n=ko(t);Te();const s=xn(),i=L(!1),o=L(!1);return(a,l)=>($(),z(Hp,fe({...r,...f(n)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:l[0]||(l[0]=c=>{c.defaultPrevented||(i.value||f(s).triggerElement.value?.focus(),c.preventDefault()),i.value=!1,o.value=!1}),onInteractOutside:l[1]||(l[1]=c=>{c.defaultPrevented||(i.value=!0,c.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const u=c.target;f(s).triggerElement.value?.contains(u)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.value&&c.preventDefault()})}),{default:R(()=>[Z(a.$slots,"default")]),_:3},16))}}),vb=J({__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 r=e,n=t,s=xn(),i=ko(n),{forwardRef:o}=Te();return(a,l)=>($(),z(f(Cn),{present:a.forceMount||f(s).open.value},{default:R(()=>[f(s).modal.value?($(),z(hb,fe({key:0,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:R(()=>[Z(a.$slots,"default")]),_:3},16)):($(),z(gb,fe({key:1,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:R(()=>[Z(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),mb=J({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=xn();return yp(!0),Te(),(r,n)=>($(),z(f(Be),{as:r.as,"as-child":r.asChild,"data-state":f(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:R(()=>[Z(r.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),wb=J({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=xn(),{forwardRef:r}=Te();return(n,s)=>f(t)?.modal.value?($(),z(f(Cn),{key:0,present:n.forceMount||f(t).open.value},{default:R(()=>[M(mb,fe(n.$attrs,{ref:f(r),as:n.as,"as-child":n.asChild}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):$e("v-if",!0)}}),zl=J({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=Dl();return(r,n)=>f(t)||r.forceMount?($(),z(Sa,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[Z(r.$slots,"default")],8,["to","disabled","defer"])):$e("v-if",!0)}}),yb=J({__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(r,n)=>($(),z(f(zl),lr(er(t)),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),bb=J({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,r=xn();return Te(),(n,s)=>($(),z(f(Be),fe(t,{id:f(r).titleId}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["id"]))}}),Mp="data-reka-collection-item";function Qr(e={}){const{key:t="",isProvider:r=!1}=e,n=`${t}CollectionProvider`;let s;r?(s={collectionRef:L(),itemMap:L(new Map)},as(n,s)):s=Rt(n);const i=(l=!1)=>{const c=s.collectionRef.value;if(!c)return[];const u=Array.from(c.querySelectorAll(`[${Mp}]`)),d=Array.from(s.itemMap.value.values()).sort((p,g)=>u.indexOf(p.ref)-u.indexOf(g.ref));return l?d:d.filter(p=>p.ref.dataset.disabled!=="")},o=J({name:"CollectionSlot",inheritAttrs:!1,setup(l,{slots:c,attrs:u}){const{primitiveElement:d,currentElement:p}=Fl();return ke(p,()=>{s.collectionRef.value=p.value}),()=>tr(Ll,{ref:d,...u},c)}}),a=J({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(l,{slots:c,attrs:u}){const{primitiveElement:d,currentElement:p}=Fl();return Qe(g=>{if(p.value){const m=va(p.value);s.itemMap.value.set(m,{ref:p.value,value:l.value}),g(()=>s.itemMap.value.delete(m))}}),()=>tr(Ll,{...u,[Mp]:"",ref:d},c)}});return{getItems:i,reactiveItems:W(()=>Array.from(s.itemMap.value.values())),itemMapSize:W(()=>s.itemMap.value.size),CollectionSlot:o,CollectionItem:a}}var Wl=J({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>($(),z(f(Be),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:R(()=>[Z(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),qp=J({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:r,currentElement:n}=Fl();return ke(W(()=>t.checked??t.value),(s,i)=>{if(!n.value)return;const o=n.value,a=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(l&&s!==i){const c=new Event("input",{bubbles:!0}),u=new Event("change",{bubbles:!0});l.call(o,s),o.dispatchEvent(c),o.dispatchEvent(u)}}),(s,i)=>($(),z(Wl,fe({ref_key:"primitiveElement",ref:r},{...t,...s.$attrs},{as:"input"}),null,16))}}),_b=J({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,r=W(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),n=W(()=>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,i)=>typeof s=="object"?Object.entries(s).map(([o,a])=>({name:`${t.name}[${i}][${o}]`,value:a})):{name:`${t.name}[${i}]`,value:s}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([s,i])=>({name:`${t.name}[${s}]`,value:i})):[]);return(s,i)=>($(),me(Ne,null,[$e(" We render single input if it's required "),r.value?($(),z(qp,fe({key:s.name},{...t,...s.$attrs},{name:s.name,value:s.value}),null,16,["name","value"])):($(!0),me(Ne,{key:1},Qt(n.value,o=>($(),z(qp,fe({key:o.name},{ref_for:!0},{...t,...s.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))],2112))}}),[Np,Sb]=xt("PopperRoot"),Bp=J({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=L();return Sb({anchor:t,onAnchorChange:r=>t.value=r}),(r,n)=>Z(r.$slots,"default")}}),Lp=J({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r,currentElement:n}=Te(),s=Np();return ba(()=>{s.onAnchorChange(t.reference??n.value)}),(i,o)=>($(),z(f(Be),{ref:f(r),as:i.as,"as-child":i.asChild},{default:R(()=>[Z(i.$slots,"default")]),_:3},8,["as","as-child"]))}}),Cb={key:0,d:"M0 0L6 6L12 0"},xb={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"},Tb=J({__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 Te(),(r,n)=>($(),z(f(Be),fe(t,{width:r.width,height:r.height,viewBox:r.asChild?void 0:"0 0 12 6",preserveAspectRatio:r.asChild?void 0:"none"}),{default:R(()=>[Z(r.$slots,"default",{},()=>[r.rounded?($(),me("path",xb)):($(),me("path",Cb))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}});function Eb(e){return e!==null}function Ab(e){return{name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:s}=t,i=s.arrow?.centerOffset!==0,o=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[l,c]=Kl(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(s.arrow?.x??0)+o/2,p=(s.arrow?.y??0)+a/2;let g="",m="";return l==="bottom"?(g=i?u:`${d}px`,m=`${-a}px`):l==="top"?(g=i?u:`${d}px`,m=`${n.floating.height+a}px`):l==="right"?(g=`${-a}px`,m=i?u:`${p}px`):l==="left"&&(g=`${n.floating.width+a}px`,m=i?u:`${p}px`),{data:{x:g,y:m}}}}}function Kl(e){const[t,r="center"]=e.split("-");return[t,r]}var Ib=["top","right","bottom","left"],En=Math.min,zt=Math.max,Oo=Math.round,Ho=Math.floor,Ar=e=>({x:e,y:e}),Rb={left:"right",right:"left",bottom:"top",top:"bottom"};function Gl(e,t,r){return zt(e,En(t,r))}function en(e,t){return typeof e=="function"?e(t):e}function tn(e){return e.split("-")[0]}function Ss(e){return e.split("-")[1]}function Jl(e){return e==="x"?"y":"x"}function Yl(e){return e==="y"?"height":"width"}function Ir(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Zl(e){return Jl(Ir(e))}function kb(e,t,r){r===void 0&&(r=!1);const n=Ss(e),s=Zl(e),i=Yl(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Mo(o)),[o,Mo(o)]}function $b(e){const t=Mo(e);return[Xl(e),t,Xl(t)]}function Xl(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Fp=["left","right"],Vp=["right","left"],Db=["top","bottom"],Pb=["bottom","top"];function Ob(e,t,r){switch(e){case"top":case"bottom":return r?t?Vp:Fp:t?Fp:Vp;case"left":case"right":return t?Db:Pb;default:return[]}}function Hb(e,t,r,n){const s=Ss(e);let i=Ob(tn(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Xl)))),i}function Mo(e){const t=tn(e);return Rb[t]+e.slice(t.length)}function Mb(e){return{top:0,right:0,bottom:0,left:0,...e}}function jp(e){return typeof e!="number"?Mb(e):{top:e,right:e,bottom:e,left:e}}function qo(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Up(e,t,r){let{reference:n,floating:s}=e;const i=Ir(t),o=Zl(t),a=Yl(o),l=tn(t),c=i==="y",u=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2;let g;switch(l){case"top":g={x:u,y:n.y-s.height};break;case"bottom":g={x:u,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:d};break;case"left":g={x:n.x-s.width,y:d};break;default:g={x:n.x,y:n.y}}switch(Ss(t)){case"start":g[o]-=p*(r&&c?-1:1);break;case"end":g[o]+=p*(r&&c?-1:1);break}return g}async function qb(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=en(t,e),m=jp(g),y=a[p?d==="floating"?"reference":"floating":d],S=qo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=d==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},b=qo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:_,strategy:l}):v);return{top:(S.top-b.top+m.top)/w.y,bottom:(b.bottom-S.bottom+m.bottom)/w.y,left:(S.left-b.left+m.left)/w.x,right:(b.right-S.right+m.right)/w.x}}var Nb=50,Bb=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:qb},l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Up(c,n,l),p=n,g=0;const m={};for(let y=0;y<i.length;y++){const S=i[y];if(!S)continue;const{name:v,fn:_}=S,{x:w,y:b,data:C,reset:I}=await _({x:u,y:d,initialPlacement:n,placement:p,strategy:s,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=w??u,d=b??d,m[v]={...m[v],...C},I&&g<Nb&&(g++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):I.rects),{x:u,y:d}=Up(c,p,l)),y=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:m}},Lb=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=en(e,t)||{};if(c==null)return{};const d=jp(u),p={x:r,y:n},g=Zl(s),m=Yl(g),y=await o.getDimensions(c),S=g==="y",v=S?"top":"left",_=S?"bottom":"right",w=S?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[g]-p[g]-i.floating[m],C=p[g]-i.reference[g],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let H=I?I[w]:0;(!H||!await(o.isElement==null?void 0:o.isElement(I)))&&(H=a.floating[w]||i.floating[m]);const h=b/2-C/2,O=H/2-y[m]/2-1,P=En(d[v],O),x=En(d[_],O),E=P,T=H-y[m]-x,q=H/2-y[m]/2+h,F=Gl(E,q,T),B=!l.arrow&&Ss(s)!=null&&q!==F&&i.reference[m]/2-(q<E?P:x)-y[m]/2<0,K=B?q<E?q-E:q-T:0;return{[g]:p[g]+K,data:{[g]:F,centerOffset:q-F-K,...B&&{alignmentOffset:K}},reset:B}}}),Fb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...S}=en(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=tn(s),_=Ir(a),w=tn(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=p||(w||!y?[Mo(a)]:$b(a)),I=m!=="none";!p&&I&&C.push(...Hb(a,y,m,b));const H=[a,...C],h=await l.detectOverflow(t,S),O=[];let P=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&O.push(h[v]),d){const q=kb(s,o,b);O.push(h[q[0]],h[q[1]])}if(P=[...P,{placement:s,overflows:O}],!O.every(q=>q<=0)){var x,E;const q=(((x=i.flip)==null?void 0:x.index)||0)+1,F=H[q];if(F&&(!(d==="alignment"&&_!==Ir(F))||P.every(K=>Ir(K.placement)===_?K.overflows[0]>0:!0)))return{data:{index:q,overflows:P},reset:{placement:F}};let B=(E=P.filter(K=>K.overflows[0]<=0).sort((K,oe)=>K.overflows[1]-oe.overflows[1])[0])==null?void 0:E.placement;if(!B)switch(g){case"bestFit":{var T;const K=(T=P.filter(oe=>{if(I){const Ee=Ir(oe.placement);return Ee===_||Ee==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(Ee=>Ee>0).reduce((Ee,X)=>Ee+X,0)]).sort((oe,Ee)=>oe[1]-Ee[1])[0])==null?void 0:T[0];K&&(B=K);break}case"initialPlacement":B=a;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function zp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wp(e){return Ib.some(t=>e[t]>=0)}var Vb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:s="referenceHidden",...i}=en(e,t);switch(s){case"referenceHidden":{const o=zp(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Wp(o)}}}case"escaped":{const o=zp(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:o,escaped:Wp(o)}}}default:return{}}}}},Kp=new Set(["left","top"]);async function jb(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=tn(r),a=Ss(r),l=Ir(r)==="y",c=Kp.has(o)?-1:1,u=i&&l?-1:1,d=en(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),l?{x:g*u,y:p*c}:{x:p*c,y:g*u}}var Ub=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await jb(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},zb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:_,y:w}=v;return{x:_,y:w}}},...c}=en(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=Ir(tn(s)),g=Jl(p);let m=u[g],y=u[p];if(o){const v=g==="y"?"top":"left",_=g==="y"?"bottom":"right",w=m+d[v],b=m-d[_];m=Gl(w,m,b)}if(a){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",w=y+d[v],b=y-d[_];y=Gl(w,y,b)}const S=l.fn({...t,[g]:m,[p]:y});return{...S,data:{x:S.x-r,y:S.y-n,enabled:{[g]:o,[p]:a}}}}}},Wb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=en(e,t),u={x:r,y:n},d=Ir(s),p=Jl(d);let g=u[p],m=u[d];const y=en(a,t),S=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const w=p==="y"?"height":"width",b=i.reference[p]-i.floating[w]+S.mainAxis,C=i.reference[p]+i.reference[w]-S.mainAxis;g<b?g=b:g>C&&(g=C)}if(c){var v,_;const w=p==="y"?"width":"height",b=Kp.has(tn(s)),C=i.reference[d]-i.floating[w]+(b&&((v=o.offset)==null?void 0:v[d])||0)+(b?0:S.crossAxis),I=i.reference[d]+i.reference[w]+(b?0:((_=o.offset)==null?void 0:_[d])||0)-(b?S.crossAxis:0);m<C?m=C:m>I&&(m=I)}return{[p]:g,[d]:m}}}},Kb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=en(e,t),u=await o.detectOverflow(t,c),d=tn(s),p=Ss(s),g=Ir(s)==="y",{width:m,height:y}=i.floating;let S,v;d==="top"||d==="bottom"?(S=d,v=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,S=p==="end"?"top":"bottom");const _=y-u.top-u.bottom,w=m-u.left-u.right,b=En(y-u[S],_),C=En(m-u[v],w),I=!t.middlewareData.shift;let H=b,h=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(h=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(H=_),I&&!p){const P=zt(u.left,0),x=zt(u.right,0),E=zt(u.top,0),T=zt(u.bottom,0);g?h=m-2*(P!==0||x!==0?P+x:zt(u.left,u.right)):H=y-2*(E!==0||T!==0?E+T:zt(u.top,u.bottom))}await l({...t,availableWidth:h,availableHeight:H});const O=await o.getDimensions(a.floating);return m!==O.width||y!==O.height?{reset:{rects:!0}}:{}}}};function No(){return typeof window<"u"}function zn(e){return Ql(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rr(e){var t;return(t=(Ql(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ql(e){return No()?e instanceof Node||e instanceof Wt(e).Node:!1}function vr(e){return No()?e instanceof Element||e instanceof Wt(e).Element:!1}function rn(e){return No()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function Gp(e){return!No()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function gi(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=mr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function Gb(e){return/^(table|td|th)$/.test(zn(e))}function Bo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Jb=/transform|translate|scale|rotate|perspective|filter/,Yb=/paint|layout|strict|content/,Wn=e=>!!e&&e!=="none",ec;function tc(e){const t=vr(e)?mr(e):e;return Wn(t.transform)||Wn(t.translate)||Wn(t.scale)||Wn(t.rotate)||Wn(t.perspective)||!rc()&&(Wn(t.backdropFilter)||Wn(t.filter))||Jb.test(t.willChange||"")||Yb.test(t.contain||"")}function Zb(e){let t=An(e);for(;rn(t)&&!Cs(t);){if(tc(t))return t;if(Bo(t))return null;t=An(t)}return null}function rc(){return ec==null&&(ec=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ec}function Cs(e){return/^(html|body|#document)$/.test(zn(e))}function mr(e){return Wt(e).getComputedStyle(e)}function Lo(e){return vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function An(e){if(zn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gp(e)&&e.host||Rr(e);return Gp(t)?t.host:t}function Jp(e){const t=An(e);return Cs(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&gi(t)?t:Jp(t)}function vi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Jp(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Wt(s);if(i){const a=nc(o);return t.concat(o,o.visualViewport||[],gi(s)?s:[],a&&r?vi(a):[])}else return t.concat(s,vi(s,[],r))}function nc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yp(e){const t=mr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=rn(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=Oo(r)!==i||Oo(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function sc(e){return vr(e)?e:e.contextElement}function xs(e){const t=sc(e);if(!rn(t))return Ar(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=Yp(t);let o=(i?Oo(r.width):r.width)/n,a=(i?Oo(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Xb=Ar(0);function Zp(e){const t=Wt(e);return!rc()||!t.visualViewport?Xb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qb(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Wt(e)?!1:t}function Kn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=sc(e);let o=Ar(1);t&&(n?vr(n)&&(o=xs(n)):o=xs(e));const a=Qb(i,r,n)?Zp(i):Ar(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const p=Wt(i),g=n&&vr(n)?Wt(n):n;let m=p,y=nc(m);for(;y&&n&&g!==m;){const S=xs(y),v=y.getBoundingClientRect(),_=mr(y),w=v.left+(y.clientLeft+parseFloat(_.paddingLeft))*S.x,b=v.top+(y.clientTop+parseFloat(_.paddingTop))*S.y;l*=S.x,c*=S.y,u*=S.x,d*=S.y,l+=w,c+=b,m=Wt(y),y=nc(m)}}return qo({width:u,height:d,x:l,y:c})}function Fo(e,t){const r=Lo(e).scrollLeft;return t?t.left+r:Kn(Rr(e)).left+r}function Xp(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Fo(e,r),y:r.top+t.scrollTop}}function e1(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=Rr(n),a=t?Bo(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Ar(1);const u=Ar(0),d=rn(n);if((d||!d&&!i)&&((zn(n)!=="body"||gi(o))&&(l=Lo(n)),d)){const g=Kn(n);c=xs(n),u.x=g.x+n.clientLeft,u.y=g.y+n.clientTop}const p=o&&!d&&!i?Xp(o,l):Ar(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function t1(e){return Array.from(e.getClientRects())}function r1(e){const t=Rr(e),r=Lo(e),n=e.ownerDocument.body,s=zt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=zt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Fo(e);const a=-r.scrollTop;return mr(n).direction==="rtl"&&(o+=zt(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}var Qp=25;function n1(e,t){const r=Wt(e),n=Rr(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=rc();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const c=Fo(n);if(c<=0){const u=n.ownerDocument,d=u.body,p=getComputedStyle(d),g=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-g);m<=Qp&&(i-=m)}else c<=Qp&&(i+=c);return{width:i,height:o,x:a,y:l}}function s1(e,t){const r=Kn(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=rn(e)?xs(e):Ar(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:s*i.x,y:n*i.y}}function eh(e,t,r){let n;if(t==="viewport")n=n1(e,r);else if(t==="document")n=r1(Rr(e));else if(vr(t))n=s1(t,r);else{const s=Zp(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return qo(n)}function th(e,t){const r=An(e);return r===t||!vr(r)||Cs(r)?!1:mr(r).position==="fixed"||th(r,t)}function i1(e,t){const r=t.get(e);if(r)return r;let n=vi(e,[],!1).filter(a=>vr(a)&&zn(a)!=="body"),s=null;const i=mr(e).position==="fixed";let o=i?An(e):e;for(;vr(o)&&!Cs(o);){const a=mr(o),l=tc(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&s&&(s.position==="absolute"||s.position==="fixed")||gi(o)&&!l&&th(e,o))?n=n.filter(c=>c!==o):s=a,o=An(o)}return t.set(e,n),n}function o1(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?Bo(t)?[]:i1(t,this._c):[].concat(r),n],o=eh(t,i[0],s);let a=o.top,l=o.right,c=o.bottom,u=o.left;for(let d=1;d<i.length;d++){const p=eh(t,i[d],s);a=zt(p.top,a),l=En(p.right,l),c=En(p.bottom,c),u=zt(p.left,u)}return{width:l-u,height:c-a,x:u,y:a}}function a1(e){const{width:t,height:r}=Yp(e);return{width:t,height:r}}function l1(e,t,r){const n=rn(t),s=Rr(t),i=r==="fixed",o=Kn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ar(0);function c(){l.x=Fo(s)}if(n||!n&&!i)if((zn(t)!=="body"||gi(s))&&(a=Lo(t)),n){const d=Kn(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else s&&c();i&&!n&&s&&c();const u=s&&!n&&!i?Xp(s,a):Ar(0);return{x:o.left+a.scrollLeft-l.x-u.x,y:o.top+a.scrollTop-l.y-u.y,width:o.width,height:o.height}}function ic(e){return mr(e).position==="static"}function rh(e,t){if(!rn(e)||mr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Rr(e)===r&&(r=r.ownerDocument.body),r}function nh(e,t){const r=Wt(e);if(Bo(e))return r;if(!rn(e)){let s=An(e);for(;s&&!Cs(s);){if(vr(s)&&!ic(s))return s;s=An(s)}return r}let n=rh(e,t);for(;n&&Gb(n)&&ic(n);)n=rh(n,t);return n&&Cs(n)&&ic(n)&&!tc(n)?r:n||Zb(e)||r}var c1=async function(e){const t=this.getOffsetParent||nh,r=this.getDimensions,n=await r(e.floating);return{reference:l1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function u1(e){return mr(e).direction==="rtl"}var d1={convertOffsetParentRelativeRectToViewportRelativeRect:e1,getDocumentElement:Rr,getClippingRect:o1,getOffsetParent:nh,getElementRects:c1,getClientRects:t1,getDimensions:a1,getScale:xs,isElement:vr,isRTL:u1};function sh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function f1(e,t){let r=null,n;const s=Rr(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:g}=c;if(a||t(),!p||!g)return;const m=Ho(d),y=Ho(s.clientWidth-(u+p)),S=Ho(s.clientHeight-(d+g)),v=Ho(u),_={rootMargin:-m+"px "+-y+"px "+-S+"px "+-v+"px",threshold:zt(0,En(1,l))||1};let w=!0;function b(C){const I=C[0].intersectionRatio;if(I!==l){if(!w)return o();I?o(!1,I):n=setTimeout(()=>{o(!1,1e-7)},1e3)}I===1&&!sh(c,e.getBoundingClientRect())&&o(),w=!1}try{r=new IntersectionObserver(b,{..._,root:s.ownerDocument})}catch{r=new IntersectionObserver(b,_)}r.observe(e)}return o(!0),i}function p1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=sc(e),u=s||i?[...c?vi(c):[],...t?vi(t):[]]:[];u.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const d=c&&a?f1(c,r):null;let p=-1,g=null;o&&(g=new ResizeObserver(v=>{let[_]=v;_&&_.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!l&&g.observe(c),t&&g.observe(t));let m,y=l?Kn(e):null;l&&S();function S(){const v=Kn(e);y&&!sh(y,v)&&r(),y=v,m=requestAnimationFrame(S)}return r(),()=>{var v;u.forEach(_=>{s&&_.removeEventListener("scroll",r),i&&_.removeEventListener("resize",r)}),d?.(),(v=g)==null||v.disconnect(),g=null,l&&cancelAnimationFrame(m)}}var h1=Ub,g1=zb,ih=Fb,v1=Kb,m1=Vb,w1=Lb,y1=Wb,b1=(e,t,r)=>{const n=new Map,s={platform:d1,...r},i={...s.platform,_c:n};return Bb(e,t,{...s,platform:i})};function _1(e){return e!=null&&typeof e=="object"&&"$el"in e}function oc(e){if(_1(e)){const t=e.$el;return Ql(t)&&zn(t)==="#comment"?null:t}return e}function Ts(e){return typeof e=="function"?e():f(e)}function S1(e){return{name:"arrow",options:e,fn(t){const r=oc(Ts(e.element));return r==null?{}:w1({element:r,padding:e.padding}).fn(t)}}}function oh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ah(e,t){const r=oh(e);return Math.round(t*r)/r}function C1(e,t,r){r===void 0&&(r={});const n=r.whileElementsMounted,s=W(()=>{var H;return(H=Ts(r.open))!=null?H:!0}),i=W(()=>Ts(r.middleware)),o=W(()=>{var H;return(H=Ts(r.placement))!=null?H:"bottom"}),a=W(()=>{var H;return(H=Ts(r.strategy))!=null?H:"absolute"}),l=W(()=>{var H;return(H=Ts(r.transform))!=null?H:!0}),c=W(()=>oc(e.value)),u=W(()=>oc(t.value)),d=L(0),p=L(0),g=L(a.value),m=L(o.value),y=et({}),S=L(!1),v=W(()=>{const H={position:g.value,left:"0",top:"0"};if(!u.value)return H;const h=ah(u.value,d.value),O=ah(u.value,p.value);return l.value?{...H,transform:"translate("+h+"px, "+O+"px)",...oh(u.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:h+"px",top:O+"px"}});let _;function w(){if(c.value==null||u.value==null)return;const H=s.value;b1(c.value,u.value,{middleware:i.value,placement:o.value,strategy:a.value}).then(h=>{d.value=h.x,p.value=h.y,g.value=h.strategy,m.value=h.placement,y.value=h.middlewareData,S.value=H!==!1})}function b(){typeof _=="function"&&(_(),_=void 0)}function C(){if(b(),n===void 0){w();return}if(c.value!=null&&u.value!=null){_=n(c.value,u.value,w);return}}function I(){s.value||(S.value=!1)}return ke([i,o,a,s],w,{flush:"sync"}),ke([c,u],C,{flush:"sync"}),ke(s,I,{flush:"sync"}),Ii()&&oa(b),{x:Nr(d),y:Nr(p),strategy:Nr(g),placement:Nr(m),middlewareData:Nr(y),isPositioned:Nr(S),floatingStyles:v,update:w}}var x1={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[T1,E1]=xt("PopperContent"),lh=J({inheritAttrs:!1,__name:"PopperContent",props:Nu({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},hideShiftedArrow:{type:Boolean,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}},{...x1}),emits:["placed"],setup(e,{emit:t}){const r=e,n=t,s=Np(),{forwardRef:i,currentElement:o}=Te(),a=L(),l=L(),{width:c,height:u}=Tp(l),d=W(()=>r.side+(r.align!=="center"?`-${r.align}`:"")),p=W(()=>typeof r.collisionPadding=="number"?r.collisionPadding:{top:0,right:0,bottom:0,left:0,...r.collisionPadding}),g=W(()=>Array.isArray(r.collisionBoundary)?r.collisionBoundary:[r.collisionBoundary]),m=W(()=>({padding:p.value,boundary:g.value.filter(Eb),altBoundary:g.value.length>0})),y=W(()=>({mainAxis:r.sideFlip,crossAxis:r.alignFlip})),S=Xw(()=>[h1({mainAxis:r.sideOffset+u.value,alignmentAxis:r.alignOffset}),r.prioritizePosition&&r.avoidCollisions&&ih({...m.value,...y.value}),r.avoidCollisions&&g1({mainAxis:!0,crossAxis:!!r.prioritizePosition,limiter:r.sticky==="partial"?y1():void 0,...m.value}),!r.prioritizePosition&&r.avoidCollisions&&ih({...m.value,...y.value}),v1({...m.value,apply:({elements:P,rects:x,availableWidth:E,availableHeight:T})=>{const{width:q,height:F}=x.reference,B=P.floating.style;B.setProperty("--reka-popper-available-width",`${E}px`),B.setProperty("--reka-popper-available-height",`${T}px`),B.setProperty("--reka-popper-anchor-width",`${q}px`),B.setProperty("--reka-popper-anchor-height",`${F}px`)}}),l.value&&S1({element:l.value,padding:r.arrowPadding}),Ab({arrowWidth:c.value,arrowHeight:u.value}),r.hideWhenDetached&&m1({strategy:"referenceHidden",...m.value})]),{floatingStyles:v,placement:_,isPositioned:w,middlewareData:b,update:C}=C1(W(()=>r.reference??s.anchor.value),a,{strategy:r.positionStrategy,placement:d,whileElementsMounted:(...P)=>p1(...P,{layoutShift:!r.disableUpdateOnLayoutShift,animationFrame:r.updatePositionStrategy==="always"}),middleware:S}),I=W(()=>Kl(_.value)[0]),H=W(()=>Kl(_.value)[1]);ba(()=>{w.value&&n("placed")});const h=W(()=>{const P=b.value.arrow?.centerOffset!==0;return r.hideShiftedArrow&&P}),O=L("");return Qe(()=>{o.value&&(O.value=window.getComputedStyle(o.value).zIndex)}),E1({placedSide:I,onArrowChange:P=>l.value=P,arrowX:W(()=>b.value.arrow?.x??0),arrowY:W(()=>b.value.arrow?.y??0),shouldHideArrow:h}),(P,x)=>($(),me("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",style:gt({...f(v),transform:f(w)?f(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O.value,"--reka-popper-transform-origin":[f(b).transformOrigin?.x,f(b).transformOrigin?.y].join(" "),...f(b).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[M(f(Be),fe({ref:f(i)},P.$attrs,{"as-child":r.asChild,as:P.as,"data-side":I.value,"data-align":H.value,style:{animation:f(w)?void 0:"none"}}),{default:R(()=>[Z(P.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),A1={top:"bottom",right:"left",bottom:"top",left:"right"},I1=J({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}=Te(),r=T1(),n=W(()=>A1[r.placedSide.value]);return(s,i)=>($(),me("span",{ref:o=>{f(r).onArrowChange(o)},style:gt({position:"absolute",left:f(r).arrowX?.value?`${f(r).arrowX?.value}px`:void 0,top:f(r).arrowY?.value?`${f(r).arrowY?.value}px`:void 0,[n.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f(r).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f(r).placedSide.value],visibility:f(r).shouldHideArrow.value?"hidden":void 0})},[M(Tb,fe(s.$attrs,{ref:f(t),style:{display:"block"},as:s.as,"as-child":s.asChild,rounded:s.rounded,width:s.width,height:s.height}),{default:R(()=>[Z(s.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}});function ch(e){const t=To({nonce:L()});return W(()=>e?.value||t.nonce?.value)}function R1(e=[],t,r){const n=[...e];return n[r]=t,n.sort((s,i)=>s-i)}function uh(e,t,r){return hi(100/(r-t)*(e-t),0,100)}function k1(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function $1(e,t){if(e.length===1)return 0;const r=e.map(s=>Math.abs(s-t)),n=Math.min(...r);return r.indexOf(n)}function D1(e,t,r){const n=e/2;return(n-ac([0,50],[0,n])(t)*r)*r}function P1(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function O1(e,t){if(t>0){const r=P1(e);return Math.min(...r)>=t}return!0}function ac(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function H1(e){return(String(e).split(".")[1]||"").length}function M1(e,t){const r=10**t;return Math.round(e*r)/r}var dh=["PageUp","PageDown"],fh=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ph={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageUp","ArrowUp","ArrowLeft"]},[hh,gh]=xt(["SliderVertical","SliderHorizontal"]),q1=J({__name:"SliderHorizontal",props:{dir:{type:String,required:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,dir:o,inverted:a}=St(r),{forwardRef:l,currentElement:c}=Te(),u=Es(),d=L(),p=L(),g=W(()=>o?.value!=="rtl"&&!a.value||o?.value!=="ltr"&&a.value);function m(y,S){const v=p.value||c.value.getBoundingClientRect(),_=[...u.thumbElements.value][u.valueIndexToChangeRef.value],w=u.thumbAlignment.value==="contain"?_.clientWidth:0;!d.value&&!S&&u.thumbAlignment.value==="contain"&&(d.value=y.clientX-_.getBoundingClientRect().left);const b=ac([0,v.width-w],g.value?[i.value,s.value]:[s.value,i.value]);return p.value=v,b(S?y.clientX-v.left-w/2:y.clientX-v.left-(d.value??0))}return gh({startEdge:W(()=>g.value?"left":"right"),endEdge:W(()=>g.value?"right":"left"),direction:W(()=>g.value?1:-1),size:"width"}),(y,S)=>($(),z(vh,{ref:f(l),dir:f(o),"data-orientation":"horizontal",style:gt({"--reka-slider-thumb-transform":!g.value&&f(u).thumbAlignment.value==="overflow"?"translateX(50%)":"translateX(-50%)"}),onSlideStart:S[0]||(S[0]=v=>{n("slideStart",m(v,!0))}),onSlideMove:S[1]||(S[1]=v=>{n("slideMove",m(v))}),onSlideEnd:S[2]||(S[2]=()=>{p.value=void 0,d.value=void 0,n("slideEnd")}),onStepKeyDown:S[3]||(S[3]=v=>{const _=g.value?"from-left":"from-right";n("stepKeyDown",v,f(ph)[_].includes(v.key)?-1:1)}),onEndKeyDown:S[4]||(S[4]=v=>n("endKeyDown",v)),onHomeKeyDown:S[5]||(S[5]=v=>n("homeKeyDown",v))},{default:R(()=>[Z(y.$slots,"default")]),_:3},8,["dir","style"]))}}),N1=J({__name:"SliderVertical",props:{min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,inverted:o}=St(r),a=Es(),{forwardRef:l,currentElement:c}=Te(),u=L(),d=L(),p=W(()=>!o.value);function g(m,y){const S=d.value||c.value.getBoundingClientRect(),v=[...a.thumbElements.value][a.valueIndexToChangeRef.value],_=a.thumbAlignment.value==="contain"?v.clientHeight:0;!u.value&&!y&&a.thumbAlignment.value==="contain"&&(u.value=m.clientY-v.getBoundingClientRect().top);const w=ac([0,S.height-_],p.value?[s.value,i.value]:[i.value,s.value]),b=y?m.clientY-S.top-_/2:m.clientY-S.top-(u.value??0);return d.value=S,w(b)}return gh({startEdge:W(()=>p.value?"bottom":"top"),endEdge:W(()=>p.value?"top":"bottom"),direction:W(()=>p.value?1:-1),size:"height"}),(m,y)=>($(),z(vh,{ref:f(l),"data-orientation":"vertical",style:gt({"--reka-slider-thumb-transform":!p.value&&f(a).thumbAlignment.value==="overflow"?"translateY(-50%)":"translateY(50%)"}),onSlideStart:y[0]||(y[0]=S=>{n("slideStart",g(S,!0))}),onSlideMove:y[1]||(y[1]=S=>{n("slideMove",g(S))}),onSlideEnd:y[2]||(y[2]=()=>{d.value=void 0,u.value=void 0,n("slideEnd")}),onStepKeyDown:y[3]||(y[3]=S=>{const v=p.value?"from-bottom":"from-top";n("stepKeyDown",S,f(ph)[v].includes(S.key)?-1:1)}),onEndKeyDown:y[4]||(y[4]=S=>n("endKeyDown",S)),onHomeKeyDown:y[5]||(y[5]=S=>n("homeKeyDown",S))},{default:R(()=>[Z(m.$slots,"default")]),_:3},8,["style"]))}}),[Es,B1]=xt("SliderRoot"),L1=J({inheritAttrs:!1,__name:"SliderRoot",props:{defaultValue:{type:Array,required:!1,default:()=>[0]},modelValue:{type:[Array,null],required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},inverted:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},minStepsBetweenThumbs:{type:Number,required:!1,default:0},thumbAlignment:{type:String,required:!1,default:"contain"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,{min:s,max:i,step:o,minStepsBetweenThumbs:a,orientation:l,disabled:c,thumbAlignment:u,dir:d}=St(r),p=Ml(d),{forwardRef:g,currentElement:m}=Te(),y=Sp(m),{CollectionSlot:S}=Qr({isProvider:!0}),v=ys(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0}),_=W(()=>Array.isArray(v.value)?[...v.value]:[]),w=L(0),b=L(_.value);function C(P){h(P,$1(_.value,P))}function I(P){h(P,w.value)}function H(){const P=b.value[w.value];_.value[w.value]!==P&&n("valueCommit",qe(_.value))}function h(P,x,{commit:E}={commit:!1}){const T=H1(o.value),q=hi(M1(Math.round((P-s.value)/o.value)*o.value+s.value,T),s.value,i.value),F=R1(_.value,q,x);if(O1(F,a.value*o.value)){w.value=F.indexOf(q);const B=String(F)!==String(v.value);B&&E&&n("valueCommit",F),B&&(O.value[w.value]?.focus(),v.value=F)}}const O=L([]);return B1({modelValue:v,currentModelValue:_,valueIndexToChangeRef:w,thumbElements:O,orientation:l,min:s,max:i,disabled:c,thumbAlignment:u}),(P,x)=>($(),z(f(S),null,{default:R(()=>[($(),z(Gs(f(l)==="horizontal"?q1:N1),fe(P.$attrs,{ref:f(g),"as-child":P.asChild,as:P.as,min:f(s),max:f(i),dir:f(p),inverted:P.inverted,"aria-disabled":f(c),"data-disabled":f(c)?"":void 0,onPointerdown:x[0]||(x[0]=()=>{f(c)||(b.value=_.value)}),onSlideStart:x[1]||(x[1]=E=>!f(c)&&C(E)),onSlideMove:x[2]||(x[2]=E=>!f(c)&&I(E)),onSlideEnd:x[3]||(x[3]=E=>!f(c)&&H()),onHomeKeyDown:x[4]||(x[4]=E=>!f(c)&&h(f(s),0,{commit:!0})),onEndKeyDown:x[5]||(x[5]=E=>!f(c)&&h(f(i),_.value.length-1,{commit:!0})),onStepKeyDown:x[6]||(x[6]=(E,T)=>{if(!f(c)){const q=f(dh).includes(E.key)||E.shiftKey&&f(fh).includes(E.key)?10:1,F=w.value,B=_.value[F];h(B+f(o)*q*T,F,{commit:!0})}})}),{default:R(()=>[Z(P.$slots,"default",{modelValue:f(v)}),f(y)&&P.name?($(),z(f(_b),{key:0,type:"number",value:f(v),name:P.name,required:P.required,disabled:f(c),step:f(o)},null,8,["value","name","required","disabled","step"])):$e("v-if",!0)]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}))}}),vh=J({__name:"SliderImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,s=Es();return(i,o)=>($(),z(f(Be),fe({"data-slider-impl":""},r,{onKeydown:o[0]||(o[0]=a=>{a.key==="Home"?(n("homeKeyDown",a),a.preventDefault()):a.key==="End"?(n("endKeyDown",a),a.preventDefault()):f(dh).concat(f(fh)).includes(a.key)&&(n("stepKeyDown",a),a.preventDefault())}),onPointerdown:o[1]||(o[1]=a=>{const l=a.target;l.setPointerCapture(a.pointerId),a.preventDefault(),f(s).thumbElements.value.includes(l)?l.focus():n("slideStart",a)}),onPointermove:o[2]||(o[2]=a=>{a.target.hasPointerCapture(a.pointerId)&&n("slideMove",a)}),onPointerup:o[3]||(o[3]=a=>{const l=a.target;l.hasPointerCapture(a.pointerId)&&(l.releasePointerCapture(a.pointerId),n("slideEnd",a))})}),{default:R(()=>[Z(i.$slots,"default")]),_:3},16))}}),F1=J({__name:"SliderRange",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=Es(),r=hh();Te();const n=W(()=>t.currentModelValue.value.map(o=>uh(o,t.min.value,t.max.value))),s=W(()=>t.currentModelValue.value.length>1?Math.min(...n.value):0),i=W(()=>100-Math.max(...n.value,0));return(o,a)=>($(),z(f(Be),{"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value,"as-child":o.asChild,as:o.as,style:gt({[f(r).startEdge.value]:`${s.value}%`,[f(r).endEdge.value]:`${i.value}%`})},{default:R(()=>[Z(o.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}}),V1=J({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=Es(),n=hh(),{forwardRef:s,currentElement:i}=Te(),{CollectionItem:o}=Qr(),a=W(()=>r.modelValue?.value?.[t.index]),l=W(()=>a.value===void 0?0:uh(a.value,r.min.value??0,r.max.value??100)),c=W(()=>k1(t.index,r.modelValue?.value?.length??0)),u=Tp(i),d=W(()=>u[n.size].value),p=W(()=>r.thumbAlignment.value==="overflow"||!d.value?0:D1(d.value,l.value,n.direction.value)),g=Dl();return We(()=>{r.thumbElements.value.push(i.value)}),kt(()=>{const m=r.thumbElements.value.findIndex(y=>y===i.value)??-1;r.thumbElements.value.splice(m,1)}),(m,y)=>($(),z(f(o),null,{default:R(()=>[M(f(Be),fe(m.$attrs,{ref:f(s),role:"slider",tabindex:f(r).disabled.value?void 0:0,"aria-label":m.$attrs["aria-label"]||c.value,"data-disabled":f(r).disabled.value?"":void 0,"data-orientation":f(r).orientation.value,"aria-valuenow":a.value,"aria-valuemin":f(r).min.value,"aria-valuemax":f(r).max.value,"aria-orientation":f(r).orientation.value,"as-child":m.asChild,as:m.as,style:{transform:"var(--reka-slider-thumb-transform)",position:"absolute",[f(n).startEdge.value]:`calc(${l.value}% + ${p.value}px)`,display:!f(g)&&a.value===void 0?"none":void 0},onFocus:y[0]||(y[0]=()=>{f(r).valueIndexToChangeRef.value=m.index})}),{default:R(()=>[Z(m.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),j1=J({__name:"SliderThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{getItems:r}=Qr(),{forwardRef:n,currentElement:s}=Te(),i=W(()=>s.value?r(!0).findIndex(o=>o.ref===s.value):-1);return(o,a)=>($(),z(V1,fe({ref:f(n)},t,{index:i.value}),{default:R(()=>[Z(o.$slots,"default")]),_:3},16,["index"]))}}),U1=J({__name:"SliderTrack",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=Es();return Te(),(r,n)=>($(),z(f(Be),{"as-child":r.asChild,as:r.as,"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value},{default:R(()=>[Z(r.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),z1=J({__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 Te(),(r,n)=>($(),z(f(Be),fe(t,{onMousedown:n[0]||(n[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),[Kt,W1]=xt("ScrollAreaRoot"),K1=J({__name:"ScrollAreaRoot",props:{type:{type:String,required:!1,default:"hover"},dir:{type:String,required:!1},scrollHideDelay:{type:Number,required:!1,default:600},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,n=L(0),s=L(0),i=L(),o=L(),a=L(),l=L(),c=L(!1),u=L(!1),{type:d,dir:p,scrollHideDelay:g}=St(r),m=Ml(p);function y(){i.value?.scrollTo({top:0})}function S(){i.value?.scrollTo({top:0,left:0})}t({viewport:i,scrollTop:y,scrollTopLeft:S});const{forwardRef:v,currentElement:_}=Te();return W1({type:d,dir:m,scrollHideDelay:g,scrollArea:_,viewport:i,onViewportChange:w=>{i.value=w||void 0},content:o,onContentChange:w=>{o.value=w},scrollbarX:a,scrollbarXEnabled:c,scrollbarY:l,scrollbarYEnabled:u,onScrollbarXChange:w=>{a.value=w||void 0},onScrollbarYChange:w=>{l.value=w||void 0},onScrollbarXEnabledChange:w=>{c.value=w},onScrollbarYEnabledChange:w=>{u.value=w},onCornerWidthChange:w=>{n.value=w},onCornerHeightChange:w=>{s.value=w}}),(w,b)=>($(),z(f(Be),{ref:f(v),"as-child":r.asChild,as:w.as,dir:f(m),style:gt({position:"relative","--reka-scroll-area-corner-width":`${n.value}px`,"--reka-scroll-area-corner-height":`${s.value}px`})},{default:R(()=>[Z(w.$slots,"default")]),_:3},8,["as-child","as","dir","style"]))}}),G1=J({__name:"ScrollAreaCornerImpl",setup(e){const t=Kt(),r=L(0),n=L(0),s=W(()=>!!r.value&&!!n.value);function i(){const a=t.scrollbarX.value?.offsetHeight||0;t.onCornerHeightChange(a),n.value=a}function o(){const a=t.scrollbarY.value?.offsetWidth||0;t.onCornerWidthChange(a),r.value=a}return Un(t.scrollbarX.value,i),Un(t.scrollbarY.value,o),ke(()=>t.scrollbarX.value,i),ke(()=>t.scrollbarY.value,o),(a,l)=>s.value?($(),z(f(Be),fe({key:0,style:{width:`${r.value}px`,height:`${n.value}px`,position:"absolute",right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:0}},a.$parent?.$props),{default:R(()=>[Z(a.$slots,"default")]),_:3},16,["style"])):$e("v-if",!0)}}),J1=J({__name:"ScrollAreaCorner",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r}=Te(),n=Kt(),s=W(()=>!!n.scrollbarX.value&&!!n.scrollbarY.value),i=W(()=>n.type.value!=="scroll"&&s.value);return(o,a)=>i.value?($(),z(G1,fe({key:0},t,{ref:f(r)}),{default:R(()=>[Z(o.$slots,"default")]),_:3},16)):$e("v-if",!0)}});function mh(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Vo(e){const t=wh(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function wh(e,t){const r=e/t;return Number.isNaN(r)?0:r}function Y1(e,t=()=>{}){let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function s(){const i={left:e.scrollLeft,top:e.scrollTop},o=r.left!==i.left,a=r.top!==i.top;(o||a)&&t(),r=i,n=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(n)}function yh(e,t,r="ltr"){const n=Vo(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,o=t.content-t.viewport,a=i-n,l=r==="ltr"?[0,o]:[o*-1,0],c=hi(e,l[0],l[1]);return mh([0,o],[0,a])(c)}function jo(e){return e?Number.parseInt(e,10):0}function Z1(e,t,r,n="ltr"){const s=Vo(r),i=s/2,o=t||i,a=s-o,l=r.scrollbar.paddingStart+o,c=r.scrollbar.size-r.scrollbar.paddingEnd-a,u=r.content-r.viewport,d=n==="ltr"?[0,u]:[u*-1,0];return mh([l,c],d)(e)}function bh(e,t){return e>0&&e<t}var X1=J({__name:"ScrollAreaScrollbarX",setup(e){const t=Kt(),r=Uo(),{forwardRef:n,currentElement:s}=Te();We(()=>{s.value&&t.onScrollbarXChange(s.value)});const i=W(()=>r.sizes.value);return(o,a)=>($(),z(_h,{ref:f(n),"is-horizontal":!0,"data-orientation":"horizontal",style:gt({bottom:0,left:f(t).dir.value==="rtl"?"var(--reka-scroll-area-corner-width)":0,right:f(t).dir.value==="ltr"?"var(--reka-scroll-area-corner-width)":0,"--reka-scroll-area-thumb-width":i.value?`${f(Vo)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.x))},{default:R(()=>[Z(o.$slots,"default")]),_:3},8,["style"]))}}),Q1=J({__name:"ScrollAreaScrollbarY",setup(e){const t=Kt(),r=Uo(),{forwardRef:n,currentElement:s}=Te();We(()=>{s.value&&t.onScrollbarYChange(s.value)});const i=W(()=>r.sizes.value);return(o,a)=>($(),z(_h,{ref:f(n),"is-horizontal":!1,"data-orientation":"vertical",style:gt({top:0,right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:"var(--reka-scroll-area-corner-height)","--reka-scroll-area-thumb-height":i.value?`${f(Vo)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.y))},{default:R(()=>[Z(o.$slots,"default")]),_:3},8,["style"]))}}),lc=J({__name:"ScrollAreaScrollbarAuto",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Kt(),r=mi(),{forwardRef:n}=Te(),s=L(!1),i=$l(()=>{if(t.viewport.value){const o=t.viewport.value.offsetWidth<t.viewport.value.scrollWidth,a=t.viewport.value.offsetHeight<t.viewport.value.scrollHeight;s.value=r.isHorizontal.value?o:a}},10);return We(()=>i()),Un(t.viewport,i),Un(t.content,i),(o,a)=>($(),z(f(Cn),{present:o.forceMount||s.value},{default:R(()=>[M(cc,fe(o.$attrs,{ref:f(n),"data-state":s.value?"visible":"hidden"}),{default:R(()=>[Z(o.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),e2=J({inheritAttrs:!1,__name:"ScrollAreaScrollbarGlimpse",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Kt(),r=mi(),{forwardRef:n}=Te(),{state:s,dispatch:i}=Bl("hidden",{hidden:{POINTER_ENTER:"glimpse",SCROLL:"scrolling"},glimpse:{HIDE:"hidden",POINTER_LEAVE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"glimpse"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=W(()=>s.value!=="hidden");function a(){i("POINTER_ENTER")}function l(){i("POINTER_LEAVE")}const c=$l(()=>i("SCROLL_END"),100);return Qe(u=>{if(s.value==="glimpse"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);u(()=>{window.clearTimeout(d)})}}),Qe(u=>{if(s.value==="idle"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);u(()=>{window.clearTimeout(d)})}}),Qe(u=>{const d=t.viewport.value,p=r.isHorizontal.value?"scrollLeft":"scrollTop";if(d){let g=d[p];const m=()=>{const y=d[p];g!==y&&(i("SCROLL"),c()),g=y};d.addEventListener("scroll",m),u(()=>{d.removeEventListener("scroll",m)})}}),We(()=>{const u=t.scrollArea.value;u&&(u.addEventListener("pointerenter",a),u.addEventListener("pointerleave",l))}),kt(()=>{const u=t.scrollArea.value;u&&(u.removeEventListener("pointerenter",a),u.removeEventListener("pointerleave",l))}),(u,d)=>($(),z(f(Cn),{present:u.forceMount||o.value},{default:R(()=>[M(lc,fe(u.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:R(()=>[Z(u.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),t2=J({inheritAttrs:!1,__name:"ScrollAreaScrollbarHover",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Kt(),{forwardRef:r}=Te();let n;const s=L(!1);function i(){window.clearTimeout(n),s.value=!0}function o(){n=window.setTimeout(()=>{s.value=!1},t.scrollHideDelay.value)}return We(()=>{const a=t.scrollArea.value;a&&(a.addEventListener("pointerenter",i),a.addEventListener("pointerleave",o))}),kt(()=>{const a=t.scrollArea.value;a&&(window.clearTimeout(n),a.removeEventListener("pointerenter",i),a.removeEventListener("pointerleave",o))}),(a,l)=>($(),z(f(Cn),{present:a.forceMount||s.value},{default:R(()=>[M(lc,fe(a.$attrs,{ref:f(r),"data-state":s.value?"visible":"hidden"}),{default:R(()=>[Z(a.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),r2=J({__name:"ScrollAreaScrollbarScroll",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Kt(),r=mi(),{forwardRef:n}=Te(),{state:s,dispatch:i}=Bl("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=W(()=>s.value!=="hidden");Qe(l=>{if(s.value==="idle"){const c=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);l(()=>{window.clearTimeout(c)})}});const a=$l(()=>i("SCROLL_END"),100);return Qe(l=>{const c=t.viewport.value,u=r.isHorizontal.value?"scrollLeft":"scrollTop";if(c){let d=c[u];const p=()=>{const g=c[u];d!==g&&(i("SCROLL"),a()),d=g};c.addEventListener("scroll",p),l(()=>{c.removeEventListener("scroll",p)})}}),(l,c)=>($(),z(f(Cn),{present:l.forceMount||o.value},{default:R(()=>[M(cc,fe(l.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:R(()=>[Z(l.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),[mi,n2]=xt("ScrollAreaScrollbar"),s2=J({inheritAttrs:!1,__name:"ScrollAreaScrollbar",props:{orientation:{type:String,required:!1,default:"vertical"},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,{forwardRef:r}=Te(),n=Kt(),s=W(()=>t.orientation==="horizontal");ke(s,()=>{s.value?n.onScrollbarXEnabledChange(!0):n.onScrollbarYEnabledChange(!0)},{immediate:!0}),kt(()=>{n.onScrollbarXEnabledChange(!1),n.onScrollbarYEnabledChange(!1)});const{orientation:i,forceMount:o,asChild:a,as:l}=St(t);return n2({orientation:i,forceMount:o,isHorizontal:s,as:l,asChild:a}),(c,u)=>f(n).type.value==="hover"?($(),z(t2,fe({key:0},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:R(()=>[Z(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="scroll"?($(),z(r2,fe({key:1},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:R(()=>[Z(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="glimpse"?($(),z(e2,fe({key:2},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:R(()=>[Z(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="auto"?($(),z(lc,fe({key:3},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:R(()=>[Z(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="always"?($(),z(cc,fe({key:4},c.$attrs,{ref:f(r),"data-state":"visible"}),{default:R(()=>[Z(c.$slots,"default")]),_:3},16)):$e("v-if",!0)}}),[Uo,i2]=xt("ScrollAreaScrollbarVisible"),cc=J({__name:"ScrollAreaScrollbarVisible",setup(e){const t=Kt(),r=mi(),{forwardRef:n}=Te(),s=L({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),i=W(()=>{const v=wh(s.value.viewport,s.value.content);return v>0&&v<1}),o=L(),a=L(0);function l(v,_){if(g.value){const w=t.viewport.value.scrollLeft+v.deltaY;t.viewport.value.scrollLeft=w,bh(w,_)&&v.preventDefault()}else{const w=t.viewport.value.scrollTop+v.deltaY;t.viewport.value.scrollTop=w,bh(w,_)&&v.preventDefault()}}function c(v,_){g.value?a.value=_.x:a.value=_.y}function u(v){a.value=0}function d(v){s.value=v}function p(v,_){return Z1(v,a.value,s.value,_)}const g=W(()=>r.isHorizontal.value);function m(v){g.value?t.viewport.value.scrollLeft=p(v,t.dir.value):t.viewport.value.scrollTop=p(v)}function y(){if(g.value){if(t.viewport.value&&o.value){const v=t.viewport.value.scrollLeft,_=yh(v,s.value,t.dir.value);o.value.style.transform=`translate3d(${_}px, 0, 0)`}}else if(t.viewport.value&&o.value){const v=t.viewport.value.scrollTop,_=yh(v,s.value);o.value.style.transform=`translate3d(0, ${_}px, 0)`}}function S(v){o.value=v}return i2({sizes:s,hasThumb:i,handleWheelScroll:l,handleThumbDown:c,handleThumbUp:u,handleSizeChange:d,onThumbPositionChange:y,onThumbChange:S,onDragScroll:m}),(v,_)=>g.value?($(),z(X1,fe({key:0},v.$attrs,{ref:f(n)}),{default:R(()=>[Z(v.$slots,"default")]),_:3},16)):($(),z(Q1,fe({key:1},v.$attrs,{ref:f(n)}),{default:R(()=>[Z(v.$slots,"default")]),_:3},16))}}),_h=J({__name:"ScrollAreaScrollbarImpl",props:{isHorizontal:{type:Boolean,required:!0}},emits:["onDragScroll","onWheelScroll","onThumbPointerDown"],setup(e,{emit:t}){const r=e,n=t,s=Kt(),i=Uo(),o=mi(),{forwardRef:a,currentElement:l}=Te(),c=L(""),u=L();function d(v){u.value&&n("onDragScroll",{x:v.clientX-u.value?.left,y:v.clientY-u.value?.top})}function p(v){v.button===0&&(v.target.setPointerCapture(v.pointerId),u.value=l.value.getBoundingClientRect(),c.value=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",s.viewport&&(s.viewport.value.style.scrollBehavior="auto"),d(v))}function g(v){d(v)}function m(v){const _=v.target;_.hasPointerCapture(v.pointerId)&&_.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=c.value,s.viewport&&(s.viewport.value.style.scrollBehavior=""),u.value=void 0}function y(v){const _=v.target,w=l.value?.contains(_),b=i.sizes.value.content-i.sizes.value.viewport;w&&i.handleWheelScroll(v,b)}We(()=>{document.addEventListener("wheel",y,{passive:!1})}),kt(()=>{document.removeEventListener("wheel",y)});function S(){l.value&&(r.isHorizontal?i.handleSizeChange({content:s.viewport.value?.scrollWidth??0,viewport:s.viewport.value?.offsetWidth??0,scrollbar:{size:l.value.clientWidth??0,paddingStart:jo(getComputedStyle(l.value).paddingLeft),paddingEnd:jo(getComputedStyle(l.value).paddingRight)}}):i.handleSizeChange({content:s.viewport.value?.scrollHeight??0,viewport:s.viewport.value?.offsetHeight??0,scrollbar:{size:l.value?.clientHeight??0,paddingStart:jo(getComputedStyle(l.value).paddingTop),paddingEnd:jo(getComputedStyle(l.value).paddingBottom)}}),i.onThumbPositionChange())}return Un(l,S),Un(s.content,S),(v,_)=>($(),z(f(Be),{ref:f(a),style:{position:"absolute"},"data-scrollbarimpl":"",as:f(o).as.value,"as-child":f(o).asChild.value,onPointerdown:p,onPointermove:g,onPointerup:m},{default:R(()=>[Z(v.$slots,"default")]),_:3},8,["as","as-child"]))}}),o2=J({__name:"ScrollAreaThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=Kt(),n=Uo();function s(d){const p=d.target.getBoundingClientRect(),g=d.clientX-p.left,m=d.clientY-p.top;n.handleThumbDown(d,{x:g,y:m})}function i(d){n.handleThumbUp(d)}const{forwardRef:o,currentElement:a}=Te(),l=L(),c=W(()=>r.viewport.value);function u(){l.value||(l.value=Y1(c.value,n.onThumbPositionChange),n.onThumbPositionChange())}return by(W(()=>n.sizes.value),()=>{n.onThumbChange(a.value),c.value&&(n.onThumbPositionChange(),c.value.addEventListener("scroll",u))}),kt(()=>{c.value.removeEventListener("scroll",u),r.viewport.value?.removeEventListener("scroll",u)}),(d,p)=>($(),z(f(Be),{ref:f(o),"data-state":f(n).hasThumb?"visible":"hidden",style:{width:"var(--reka-scroll-area-thumb-width)",height:"var(--reka-scroll-area-thumb-height)"},"as-child":t.asChild,as:d.as,onPointerdown:s,onPointerup:i},{default:R(()=>[Z(d.$slots,"default")]),_:3},8,["data-state","as-child","as"]))}}),a2=J({inheritAttrs:!1,__name:"ScrollAreaViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,{nonce:n}=St(r),s=ch(n),i=Kt(),o=L();We(()=>{i.onViewportChange(o.value),i.onContentChange(l.value)}),t({viewportElement:o});const{forwardRef:a,currentElement:l}=Te();return(c,u)=>($(),me(Ne,null,[re("div",fe({ref_key:"viewportElement",ref:o,"data-reka-scroll-area-viewport":"",style:{overflowX:f(i).scrollbarXEnabled.value?"scroll":"hidden",overflowY:f(i).scrollbarYEnabled.value?"scroll":"hidden"}},c.$attrs,{tabindex:0}),[M(f(Be),{ref:f(a),style:gt({minWidth:f(i).scrollbarXEnabled.value?"fit-content":void 0}),"as-child":r.asChild,as:c.as},{default:R(()=>[Z(c.$slots,"default")]),_:3},8,["style","as-child","as"])],16),M(f(Be),{as:"style",nonce:f(s)},{default:R(()=>u[0]||(u[0]=[Oe(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-reka-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),l2=[" ","Enter","ArrowUp","ArrowDown"],c2=[" ","Enter"],ux=10;function wi(e,t,r){return e===void 0?!1:Array.isArray(e)?e.some(n=>uc(n,t,r)):uc(e,t,r)}function uc(e,t,r){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof r=="function"?r(e,t):typeof r=="string"?e?.[r]===t?.[r]:Zw(e,t)}function u2(e){return e==null||e===""||Array.isArray(e)&&e.length===0}var d2={key:0,value:""},[In,Sh]=xt("SelectRoot"),f2=J({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=e,n=t,{required:s,disabled:i,multiple:o,dir:a}=St(r),l=ys(r,"modelValue",n,{defaultValue:r.defaultValue??(o.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),c=ys(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),u=L(),d=L(),p=L({x:0,y:0}),g=W(()=>o.value&&Array.isArray(l.value)?l.value?.length===0:Al(l.value));Qr({isProvider:!0});const m=Ml(a),y=Sp(u),S=L(new Set),v=W(()=>Array.from(S.value).map(b=>b.value).join(";"));function _(b){if(o.value){const C=Array.isArray(l.value)?[...l.value]:[],I=C.findIndex(H=>uc(H,b,r.by));I===-1?C.push(b):C.splice(I,1),l.value=[...C]}else l.value=b}function w(b){return Array.from(S.value).find(C=>wi(b,C.value,r.by))}return Sh({triggerElement:u,onTriggerChange:b=>{u.value=b},valueElement:d,onValueElementChange:b=>{d.value=b},contentId:"",modelValue:l,onValueChange:_,by:r.by,open:c,multiple:o,required:s,onOpenChange:b=>{c.value=b},dir:m,triggerPointerDownPosRef:p,disabled:i,isEmptyModelValue:g,optionsSet:S,onOptionAdd:b=>{const C=w(b.value);C&&S.value.delete(C),S.value.add(b)},onOptionRemove:b=>{const C=w(b.value);C&&S.value.delete(C)}}),(b,C)=>($(),z(f(Bp),null,{default:R(()=>[Z(b.$slots,"default",{modelValue:f(l),open:f(c)}),f(y)?($(),z(p2,{key:v.value,"aria-hidden":"true",tabindex:"-1",multiple:f(o),required:f(s),name:b.name,autocomplete:b.autocomplete,disabled:f(i),value:f(l)},{default:R(()=>[f(Al)(f(l))?($(),me("option",d2)):$e("v-if",!0),($(!0),me(Ne,null,Qt(Array.from(S.value),I=>($(),me("option",fe({key:I.value??""},{ref_for:!0},I),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):$e("v-if",!0)]),_:3}))}}),p2=J({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,r=L(),n=In();ke(()=>t.value,(i,o)=>{const a=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==o&&l&&r.value){const c=new Event("change",{bubbles:!0});l.call(r.value,i),r.value.dispatchEvent(c)}});function s(i){n.onValueChange(i.target.value)}return(i,o)=>($(),z(f(Wl),{"as-child":""},{default:R(()=>[re("select",fe({ref_key:"selectElement",ref:r},t,{onInput:s}),[Z(i.$slots,"default")],16)]),_:3}))}}),h2=J({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},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,default:10},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,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}},setup(e){const t=Zr(e);return(r,n)=>($(),z(f(lh),fe(f(t),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),g2={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Gn,Ch]=xt("SelectContent"),v2=J({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},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},hideShiftedArrow:{type:Boolean,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},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=In();Hy(),yp(r.bodyLock);const{CollectionSlot:i,getItems:o}=Qr(),a=L();xp(a);const{search:l,handleTypeaheadSearch:c}=Ep(),u=L(),d=L(),p=L(),g=L(!1),m=L(!1),y=L(!1);function S(){d.value&&a.value&&Op([d.value,a.value])}ke(g,()=>{S()});const{onOpenChange:v,triggerPointerDownPosRef:_}=s;Qe(C=>{if(!a.value)return;let I={x:0,y:0};const H=O=>{I={x:Math.abs(Math.round(O.pageX)-(_.value?.x??0)),y:Math.abs(Math.round(O.pageY)-(_.value?.y??0))}},h=O=>{O.pointerType!=="touch"&&(I.x<=10&&I.y<=10?O.preventDefault():a.value?.contains(O.target)||v(!1),document.removeEventListener("pointermove",H),_.value=null)};_.value!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",h,{capture:!0,once:!0})),C(()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",h,{capture:!0})})});function w(C){const I=C.ctrlKey||C.altKey||C.metaKey;if(C.key==="Tab"&&C.preventDefault(),!I&&C.key.length===1&&c(C.key,o()),["ArrowUp","ArrowDown","Home","End"].includes(C.key)){let H=[...o().map(h=>h.ref)];if(["ArrowUp","End"].includes(C.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(C.key)){const h=C.target,O=H.indexOf(h);H=H.slice(O+1)}setTimeout(()=>Op(H)),C.preventDefault()}}const b=Zr(W(()=>r.position==="popper"?r:{}).value);return Ch({content:a,viewport:u,onViewportChange:C=>{u.value=C},itemRefCallback:(C,I,H)=>{const h=!m.value&&!H,O=wi(s.modelValue.value,I,s.by);if(s.multiple.value){if(y.value)return;(O||h)&&(d.value=C,O&&(y.value=!0))}else(O||h)&&(d.value=C);h&&(m.value=!0)},selectedItem:d,selectedItemText:p,onItemLeave:()=>{a.value?.focus()},itemTextRefCallback:(C,I,H)=>{const h=!m.value&&!H;(wi(s.modelValue.value,I,s.by)||h)&&(p.value=C)},focusSelectedItem:S,position:r.position,isPositioned:g,searchRef:l}),(C,I)=>($(),z(f(i),null,{default:R(()=>[M(f(Dp),{"as-child":"",onMountAutoFocus:I[6]||(I[6]=xr(()=>{},["prevent"])),onUnmountAutoFocus:I[7]||(I[7]=H=>{n("closeAutoFocus",H),!H.defaultPrevented&&(f(s).triggerElement.value?.focus({preventScroll:!0}),H.preventDefault())})},{default:R(()=>[M(f(Vl),{"as-child":"","disable-outside-pointer-events":C.disableOutsidePointerEvents,onFocusOutside:I[2]||(I[2]=xr(()=>{},["prevent"])),onDismiss:I[3]||(I[3]=H=>f(s).onOpenChange(!1)),onEscapeKeyDown:I[4]||(I[4]=H=>n("escapeKeyDown",H)),onPointerDownOutside:I[5]||(I[5]=H=>n("pointerDownOutside",H))},{default:R(()=>[($(),z(Gs(C.position==="popper"?h2:w2),fe({...C.$attrs,...f(b)},{id:f(s).contentId,ref:H=>{const h=f(Bt)(H);h?.hasAttribute("data-reka-popper-content-wrapper")?a.value=h.firstElementChild:a.value=h},role:"listbox","data-state":f(s).open.value?"open":"closed",dir:f(s).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:I[0]||(I[0]=xr(()=>{},["prevent"])),onPlaced:I[1]||(I[1]=H=>g.value=!0),onKeydown:w}),{default:R(()=>[Z(C.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),[dc,m2]=xt("SelectItemAlignedPosition"),w2=J({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const r=e,n=t,{getItems:s}=Qr(),i=In(),o=Gn(),a=L(!1),l=L(!0),c=L(),{forwardRef:u,currentElement:d}=Te(),{viewport:p,selectedItem:g,selectedItemText:m,focusSelectedItem:y}=o;function S(){if(i.triggerElement.value&&i.valueElement.value&&c.value&&d.value&&p?.value&&g?.value&&m?.value){const w=i.triggerElement.value.getBoundingClientRect(),b=d.value.getBoundingClientRect(),C=i.valueElement.value.getBoundingClientRect(),I=m.value.getBoundingClientRect();if(i.dir.value!=="rtl"){const Q=I.left-b.left,le=C.left-Q,Ie=w.left-le,ye=w.width+Ie,be=Math.max(ye,b.width),He=window.innerWidth-10,Ue=hi(le,10,Math.max(10,He-be));c.value.style.minWidth=`${ye}px`,c.value.style.left=`${Ue}px`}else{const Q=b.right-I.right,le=window.innerWidth-C.right-Q,Ie=window.innerWidth-w.right-le,ye=w.width+Ie,be=Math.max(ye,b.width),He=window.innerWidth-10,Ue=hi(le,10,Math.max(10,He-be));c.value.style.minWidth=`${ye}px`,c.value.style.right=`${Ue}px`}const H=s().map(Q=>Q.ref),h=window.innerHeight-20,O=p.value.scrollHeight,P=window.getComputedStyle(d.value),x=Number.parseInt(P.borderTopWidth,10),E=Number.parseInt(P.paddingTop,10),T=Number.parseInt(P.borderBottomWidth,10),q=Number.parseInt(P.paddingBottom,10),F=x+E+O+q+T,B=Math.min(g.value.offsetHeight*5,F),K=window.getComputedStyle(p.value),oe=Number.parseInt(K.paddingTop,10),Ee=Number.parseInt(K.paddingBottom,10),X=w.top+w.height/2-10,V=h-X,Y=g.value.offsetHeight/2,D=g.value.offsetTop+Y,ne=x+E+D,G=F-ne;if(ne<=X){const Q=g.value===H[H.length-1];c.value.style.bottom="0px";const le=d.value.clientHeight-p.value.offsetTop-p.value.offsetHeight,Ie=ne+Math.max(V,Y+(Q?Ee:0)+le+T);c.value.style.height=`${Ie}px`}else{const Q=g.value===H[0];c.value.style.top="0px";const le=Math.max(X,x+p.value.offsetTop+(Q?oe:0)+Y)+G;c.value.style.height=`${le}px`,p.value.scrollTop=ne-X+p.value.offsetTop}c.value.style.margin="10px 0",c.value.style.minHeight=`${B}px`,c.value.style.maxHeight=`${h}px`,n("placed"),requestAnimationFrame(()=>a.value=!0)}}const v=L("");We(async()=>{await dt(),S(),d.value&&(v.value=window.getComputedStyle(d.value).zIndex)});function _(w){w&&l.value===!0&&(S(),y?.(),l.value=!1)}return Un(i.triggerElement,()=>{S()}),m2({contentWrapper:c,shouldExpandOnScrollRef:a,onScrollButtonChange:_}),(w,b)=>($(),me("div",{ref_key:"contentWrapperElement",ref:c,style:gt({display:"flex",flexDirection:"column",position:"fixed",zIndex:v.value})},[M(f(Be),fe({ref:f(u),style:{boxSizing:"border-box",maxHeight:"100%"}},{...w.$attrs,...r}),{default:R(()=>[Z(w.$slots,"default")]),_:3},16)],4))}}),y2=J({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return Sh(e.context),Ch(g2),(t,r)=>Z(t.$slots,"default")}}),b2={key:1},_2=J({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},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},hideShiftedArrow:{type:Boolean,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},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=Xr(r,t),s=In(),i=L();We(()=>{i.value=new DocumentFragment});const o=L(),a=W(()=>r.forceMount||s.open.value),l=L(a.value);return ke(a,()=>{setTimeout(()=>l.value=a.value)}),(c,u)=>a.value||l.value||o.value?.present?($(),z(f(Cn),{key:0,ref_key:"presenceRef",ref:o,present:a.value},{default:R(()=>[M(v2,lr(er({...f(n),...c.$attrs})),{default:R(()=>[Z(c.$slots,"default")]),_:3},16)]),_:3},8,["present"])):i.value?($(),me("div",b2,[($(),z(Sa,{to:i.value},[M(y2,{context:f(s)},{default:R(()=>[Z(c.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):$e("v-if",!0)}}),[dx,S2]=xt("SelectGroup"),C2=J({__name:"SelectGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=_s(void 0,"reka-select-group");return S2({id:r}),(n,s)=>($(),z(f(Be),fe({role:"group"},t,{"aria-labelledby":f(r)}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),x2=J({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>($(),z(f(Be),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:R(()=>[Z(t.$slots,"default",{},()=>[r[0]||(r[0]=Oe("▼"))])]),_:3},8,["as","as-child"]))}}),[xh,T2]=xt("SelectItem"),E2=J({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=t,{disabled:s}=St(r),i=In(),o=Gn(),{forwardRef:a,currentElement:l}=Te(),{CollectionItem:c}=Qr(),u=W(()=>wi(i.modelValue?.value,r.value,i.by)),d=L(!1),p=L(r.textValue??""),g=_s(void 0,"reka-select-item-text"),m="select.select";async function y(b){b.defaultPrevented||El(m,S,{originalEvent:b,value:r.value})}async function S(b){await dt(),n("select",b),!b.defaultPrevented&&(s.value||(i.onValueChange(r.value),i.multiple.value||i.onOpenChange(!1)))}async function v(b){await dt(),!b.defaultPrevented&&(s.value?o.onItemLeave?.():b.currentTarget?.focus({preventScroll:!0}))}async function _(b){await dt(),!b.defaultPrevented&&b.currentTarget===Ut()&&o.onItemLeave?.()}async function w(b){await dt(),!b.defaultPrevented&&(o.searchRef?.value!==""&&b.key===" "||(c2.includes(b.key)&&y(b),b.key===" "&&b.preventDefault()))}if(r.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return We(()=>{l.value&&o.itemRefCallback(l.value,r.value,r.disabled)}),T2({value:r.value,disabled:s,textId:g,isSelected:u,onItemTextChange:b=>{p.value=((p.value||b?.textContent)??"").trim()}}),(b,C)=>($(),z(f(c),{value:{textValue:p.value}},{default:R(()=>[M(f(Be),{ref:f(a),role:"option","aria-labelledby":f(g),"data-highlighted":d.value?"":void 0,"aria-selected":u.value,"data-state":u.value?"checked":"unchecked","aria-disabled":f(s)||void 0,"data-disabled":f(s)?"":void 0,tabindex:f(s)?void 0:-1,as:b.as,"as-child":b.asChild,onFocus:C[0]||(C[0]=I=>d.value=!0),onBlur:C[1]||(C[1]=I=>d.value=!1),onPointerup:y,onPointerdown:C[2]||(C[2]=I=>{I.currentTarget.focus({preventScroll:!0})}),onTouchend:C[3]||(C[3]=xr(()=>{},["prevent","stop"])),onPointermove:v,onPointerleave:_,onKeydown:w},{default:R(()=>[Z(b.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),A2=J({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=xh();return(n,s)=>f(r).isSelected.value?($(),z(f(Be),fe({key:0,"aria-hidden":"true"},t),{default:R(()=>[Z(n.$slots,"default")]),_:3},16)):$e("v-if",!0)}}),I2=J({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=In(),n=Gn(),s=xh(),{forwardRef:i,currentElement:o}=Te(),a=W(()=>({value:s.value,disabled:s.disabled.value,textContent:o.value?.textContent??s.value?.toString()??""}));return We(()=>{o.value&&(s.onItemTextChange(o.value),n.itemTextRefCallback(o.value,s.value,s.disabled.value),r.onOptionAdd(a.value))}),kt(()=>{r.onOptionRemove(a.value)}),(l,c)=>($(),z(f(Be),fe({id:f(s).textId,ref:f(i)},{...t,...l.$attrs}),{default:R(()=>[Z(l.$slots,"default")]),_:3},16,["id"]))}}),R2=J({__name:"SelectPortal",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(r,n)=>($(),z(f(zl),lr(er(t)),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),Th=J({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const r=t,{getItems:n}=Qr(),s=Gn(),i=L(null);function o(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}Qe(()=>{n().map(c=>c.ref).find(c=>c===Ut())?.scrollIntoView({block:"nearest"})});function a(){i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}function l(){s.onItemLeave?.(),i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}return fs(()=>o()),(c,u)=>($(),z(f(Be),fe({"aria-hidden":"true",style:{flexShrink:0}},c.$parent?.$props,{onPointerdown:a,onPointermove:l,onPointerleave:u[0]||(u[0]=()=>{o()})}),{default:R(()=>[Z(c.$slots,"default")]),_:3},16))}}),k2=J({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gn(),r=t.position==="item-aligned"?dc():void 0,{forwardRef:n,currentElement:s}=Te(),i=L(!1);return Qe(o=>{if(t.viewport?.value&&t.isPositioned?.value){let c=function(){const u=l.scrollHeight-l.clientHeight;i.value=Math.ceil(l.scrollTop)<u};var a=c;const l=t.viewport.value;c(),l.addEventListener("scroll",c),o(()=>l.removeEventListener("scroll",c))}}),ke(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?($(),z(Th,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:c}=f(t);l?.value&&c?.value&&(l.value.scrollTop=l.value.scrollTop+c.value.offsetHeight)})},{default:R(()=>[Z(o.$slots,"default")]),_:3},512)):$e("v-if",!0)}}),$2=J({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gn(),r=t.position==="item-aligned"?dc():void 0,{forwardRef:n,currentElement:s}=Te(),i=L(!1);return Qe(o=>{if(t.viewport?.value&&t.isPositioned?.value){let c=function(){i.value=l.scrollTop>0};var a=c;const l=t.viewport.value;c(),l.addEventListener("scroll",c),o(()=>l.removeEventListener("scroll",c))}}),ke(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?($(),z(Th,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:c}=f(t);l?.value&&c?.value&&(l.value.scrollTop=l.value.scrollTop-c.value.offsetHeight)})},{default:R(()=>[Z(o.$slots,"default")]),_:3},512)):$e("v-if",!0)}}),D2=J({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=In(),{forwardRef:n,currentElement:s}=Te(),i=W(()=>r.disabled?.value||t.disabled);r.contentId||(r.contentId=_s(void 0,"reka-select-content")),We(()=>{r.onTriggerChange(s.value)});const{getItems:o}=Qr(),{search:a,handleTypeaheadSearch:l,resetTypeahead:c}=Ep();function u(){i.value||(r.onOpenChange(!0),c())}function d(p){u(),r.triggerPointerDownPosRef.value={x:Math.round(p.pageX),y:Math.round(p.pageY)}}return(p,g)=>($(),z(f(Lp),{"as-child":"",reference:p.reference},{default:R(()=>[M(f(Be),{ref:f(n),role:"combobox",type:p.as==="button"?"button":void 0,"aria-controls":f(r).contentId,"aria-expanded":f(r).open.value||!1,"aria-required":f(r).required?.value,"aria-autocomplete":"none",disabled:i.value,dir:f(r)?.dir.value,"data-state":f(r)?.open.value?"open":"closed","data-disabled":i.value?"":void 0,"data-placeholder":f(u2)(f(r).modelValue?.value)?"":void 0,"as-child":p.asChild,as:p.as,onClick:g[0]||(g[0]=m=>{m?.currentTarget?.focus()}),onPointerdown:g[1]||(g[1]=m=>{if(m.pointerType==="touch")return m.preventDefault();const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(d(m),m.preventDefault())}),onPointerup:g[2]||(g[2]=xr(m=>{m.pointerType==="touch"&&d(m)},["prevent"])),onKeydown:g[3]||(g[3]=m=>{const y=f(a)!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&y&&m.key===" "||(f(l)(m.key,f(o)()),f(l2).includes(m.key)&&(u(),m.preventDefault()))})},{default:R(()=>[Z(p.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]),_:3},8,["reference"]))}}),P2=J({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:r,currentElement:n}=Te(),s=In();We(()=>{s.valueElement=n});const i=W(()=>{let a=[];const l=Array.from(s.optionsSet.value),c=u=>l.find(d=>wi(u,d.value,s.by));return Array.isArray(s.modelValue.value)?a=s.modelValue.value.map(u=>c(u)?.textContent??""):a=[c(s.modelValue.value)?.textContent??""],a.filter(Boolean)}),o=W(()=>i.value.length?i.value.join(", "):t.placeholder);return(a,l)=>($(),z(f(Be),{ref:f(r),as:a.as,"as-child":a.asChild,style:{pointerEvents:"none"},"data-placeholder":i.value.length?void 0:t.placeholder},{default:R(()=>[Z(a.$slots,"default",{selectedLabel:i.value,modelValue:f(s).modelValue.value},()=>[Oe(De(o.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),O2=J({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:r}=St(t),n=ch(r),s=Gn(),i=s.position==="item-aligned"?dc():void 0,{forwardRef:o,currentElement:a}=Te();We(()=>{s?.onViewportChange(a.value)});const l=L(0);function c(u){const d=u.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:g}=i??{};if(p?.value&&g?.value){const m=Math.abs(l.value-d.scrollTop);if(m>0){const y=window.innerHeight-20,S=Number.parseFloat(g.value.style.minHeight),v=Number.parseFloat(g.value.style.height),_=Math.max(S,v);if(_<y){const w=_+m,b=Math.min(y,w),C=w-b;g.value.style.height=`${b}px`,g.value.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,g.value.style.justifyContent="flex-end")}}}l.value=d.scrollTop}return(u,d)=>($(),me(Ne,null,[M(f(Be),fe({ref:f(o),"data-reka-select-viewport":"",role:"presentation"},{...u.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:c}),{default:R(()=>[Z(u.$slots,"default")]),_:3},16),M(f(Be),{as:"style",nonce:f(n)},{default:R(()=>d[0]||(d[0]=[Oe(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),H2=J({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=["horizontal","vertical"];function n(a){return r.includes(a)}const s=W(()=>n(t.orientation)?t.orientation:"horizontal"),i=W(()=>s.value==="vertical"?t.orientation:void 0),o=W(()=>t.decorative?{role:"none"}:{"aria-orientation":i.value,role:"separator"});return(a,l)=>($(),z(f(Be),fe({as:a.as,"as-child":a.asChild,"data-orientation":s.value},o.value),{default:R(()=>[Z(a.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),M2=J({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(r,n)=>($(),z(H2,lr(er(t)),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),q2=J({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return Te(),(r,n)=>($(),z(f(I1),lr(er(t)),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),[zo,N2]=xt("TooltipProvider"),B2=J({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const{delayDuration:t,skipDelayDuration:r,disableHoverableContent:n,disableClosingTrigger:s,ignoreNonKeyboardFocus:i,disabled:o,content:a}=St(e);Te();const l=L(!0),c=L(!1),{start:u,stop:d}=hp(()=>{l.value=!0},r,{immediate:!1});return N2({isOpenDelayed:l,delayDuration:t,onOpen(){d(),l.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:n,disableClosingTrigger:s,disabled:o,ignoreNonKeyboardFocus:i,content:a}),(p,g)=>Z(p.$slots,"default")}}),Eh="tooltip.open",[Wo,L2]=xt("TooltipRoot"),F2=J({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const r=e,n=t;Te();const s=zo(),i=W(()=>r.disableHoverableContent??s.disableHoverableContent.value),o=W(()=>r.disableClosingTrigger??s.disableClosingTrigger.value),a=W(()=>r.disabled??s.disabled.value),l=W(()=>r.delayDuration??s.delayDuration.value),c=W(()=>r.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),u=ys(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0});ke(u,w=>{s.onClose&&(w?(s.onOpen(),document.dispatchEvent(new CustomEvent(Eh))):s.onClose())});const d=L(!1),p=L(),g=W(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:m,stop:y}=hp(()=>{d.value=!0,u.value=!0},l,{immediate:!1});function S(){y(),d.value=!1,u.value=!0}function v(){y(),u.value=!1}function _(){m()}return L2({contentId:"",open:u,stateAttribute:g,trigger:p,onTriggerChange(w){p.value=w},onTriggerEnter(){s.isOpenDelayed.value?_():S()},onTriggerLeave(){i.value?v():y()},onOpen:S,onClose:v,disableHoverableContent:i,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:c}),(w,b)=>($(),z(f(Bp),null,{default:R(()=>[Z(w.$slots,"default",{open:f(u)})]),_:3}))}}),Ah=J({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},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,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Wo(),i=zo(),{forwardRef:o,currentElement:a}=Te(),l=W(()=>r.ariaLabel||a.value?.textContent),c=W(()=>{const{ariaLabel:u,...d}=r;return wp(d,i.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return We(()=>{Dt(window,"scroll",u=>{u.target?.contains(s.trigger.value)&&s.onClose()}),Dt(window,Eh,s.onClose)}),(u,d)=>($(),z(f(Vl),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=p=>n("escapeKeyDown",p)),onPointerDownOutside:d[1]||(d[1]=p=>{f(s).disableClosingTrigger.value&&f(s).trigger.value?.contains(p.target)&&p.preventDefault(),n("pointerDownOutside",p)}),onFocusOutside:d[2]||(d[2]=xr(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=p=>f(s).onClose())},{default:R(()=>[M(f(lh),fe({ref:f(o),"data-state":f(s).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:R(()=>[Z(u.$slots,"default"),M(f(Wl),{id:f(s).contentId,role:"tooltip"},{default:R(()=>[Oe(De(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),V2=J({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,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}},setup(e){const t=Zr(e),{forwardRef:r,currentElement:n}=Te(),{trigger:s,onClose:i}=Wo(),o=zo(),{isPointerInTransit:a,onPointerExit:l}=My(s,n);return o.isPointerInTransitRef=a,l(()=>{i()}),(c,u)=>($(),z(Ah,fe({ref:f(r)},f(t)),{default:R(()=>[Z(c.$slots,"default")]),_:3},16))}}),j2=J({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,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}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Wo(),i=Xr(r,n),{forwardRef:o}=Te();return(a,l)=>($(),z(f(Cn),{present:a.forceMount||f(s).open.value},{default:R(()=>[($(),z(Gs(f(s).disableHoverableContent.value?Ah:V2),fe({ref:f(o)},f(i)),{default:R(()=>[Z(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),U2=J({__name:"TooltipPortal",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(r,n)=>($(),z(f(zl),lr(er(t)),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),z2=J({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=Wo(),n=zo();r.contentId||(r.contentId=_s(void 0,"reka-tooltip-content"));const{forwardRef:s,currentElement:i}=Te(),o=L(!1),a=L(!1),l=W(()=>r.disabled.value?{}:{click:y,focus:g,pointermove:d,pointerleave:p,pointerdown:u,blur:m});We(()=>{r.onTriggerChange(i.value)});function c(){setTimeout(()=>{o.value=!1},1)}function u(){r.open&&!r.disableClosingTrigger.value&&r.onClose(),o.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(S){S.pointerType!=="touch"&&!a.value&&!n.isPointerInTransitRef.value&&(r.onTriggerEnter(),a.value=!0)}function p(){r.onTriggerLeave(),a.value=!1}function g(S){o.value||r.ignoreNonKeyboardFocus.value&&!S.target.matches?.(":focus-visible")||r.onOpen()}function m(){r.onClose()}function y(){r.disableClosingTrigger.value||r.onClose()}return(S,v)=>($(),z(f(Lp),{"as-child":"",reference:S.reference},{default:R(()=>[M(f(Be),fe({ref:f(s),"aria-describedby":f(r).open.value?f(r).contentId:void 0,"data-state":f(r).stateAttribute.value,as:S.as,"as-child":t.asChild,"data-grace-area-trigger":""},Mu(l.value)),{default:R(()=>[Z(S.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),W2=J({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(r,n)=>($(),z(f(Be),{"data-slot":"button",as:e.as,"as-child":e.asChild,class:Xe(f(tt)(f(K2)({variant:e.variant,size:e.size}),t.class))},{default:R(()=>[Z(r.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),ot=W2;const K2=Ww("wp:inline-flex wp:items-center wp:justify-center wp:gap-2 wp:whitespace-nowrap wp:rounded-md wp:text-sm wp:font-medium wp:transition-all wp:disabled:pointer-events-none wp:disabled:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg:not([class*='size-'])]:size-4 wp:shrink-0 wp:[&_svg]:shrink-0 wp:outline-none wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px] wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",{variants:{variant:{default:"wp:bg-primary wp:text-primary-foreground wp:hover:bg-primary/90",destructive:"wp:bg-destructive wp:text-white wp:hover:bg-destructive/90 wp:focus-visible:ring-destructive/20 wp:dark:focus-visible:ring-destructive/40 wp:dark:bg-destructive/60",outline:"wp:border wp:bg-background wp:shadow-xs wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:bg-input/30 wp:dark:border-input wp:dark:hover:bg-input/50",secondary:"wp:bg-secondary wp:text-secondary-foreground wp:hover:bg-secondary/80",ghost:"wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:hover:bg-accent/50",link:"wp:text-primary wp:underline-offset-4 wp:hover:underline"},size:{default:"wp:h-9 wp:px-4 wp:py-2 wp:has-[>svg]:px-3",sm:"wp:h-8 wp:rounded-md wp:gap-1.5 wp:px-3 wp:has-[>svg]:px-2.5",lg:"wp:h-10 wp:rounded-md wp:px-6 wp:has-[>svg]:px-4",icon:"wp:size-9","icon-sm":"wp:size-8","icon-lg":"wp:size-10"}},defaultVariants:{variant:"default",size:"default"}});var G2={class:"webphone-keypad wp:grid wp:grid-cols-3 wp:gap-y-3 wp:gap-x-6 wp:px-4 wp:py-2 wp:mx-auto wp:place-items-center"},J2=J({__name:"KeyPad",setup(e){const t=Rt("webphone"),{sendDTMF:r}=Rt("sip"),{playDtmf:n}=Hf(),s=["1","2","3","4","5","6","7","8","9","*","0","#"],i=o=>{n(o),t.callStatus==="connected"?r(o):t.appendKeypad(o)};return(o,a)=>($(),me("div",G2,[($(),me(Ne,null,Qt(s,l=>M(f(ot),{key:l,onClick:c=>i(l),variant:"ghost",size:"icon",class:"webphone-keypad__key wp:flex wp:items-center wp:justify-center wp:h-12 wp:w-full wp:rounded-xs wp:text-2xl wp:bg-neutral-100 wp:dark:bg-neutral-700 wp:hover:bg-neutral-200 wp:dark:hover:bg-neutral-600 wp:hover:text-primary wp:dark:hover:text-neutral-100 wp:text-primary wp:dark:text-white wp:transition-all wp:duration-150 wp:active:scale-95 wp:font-light montserrat","data-key":l},{default:R(()=>[Oe(De(l),1)]),_:2},1032,["onClick","data-key"])),64))]))}}),Y2=J2;var Ih=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Z2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),X2=e=>{const t=Z2(e);return t.charAt(0).toUpperCase()+t.slice(1)},Q2=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Rh=e=>e==="";var yi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var e_=({name:e,iconNode:t,absoluteStrokeWidth:r,"absolute-stroke-width":n,strokeWidth:s,"stroke-width":i,size:o=yi.width,color:a=yi.stroke,...l},{slots:c})=>tr("svg",{...yi,...l,width:o,height:o,stroke:a,"stroke-width":Rh(r)||Rh(n)||r===!0||n===!0?Number(s||i||yi["stroke-width"])*24/Number(o):s||i||yi["stroke-width"],class:Q2("lucide",l.class,...e?[`lucide-${Ih(X2(e))}-icon`,`lucide-${Ih(e)}`]:["lucide-icon"])},[...t.map(u=>tr(...u)),...c.default?[c.default()]:[]]);var ut=(e,t)=>(r,{slots:n,attrs:s})=>tr(e_,{...s,...r,iconNode:t,name:e},n);var kh=ut("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);var $h=ut("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Dh=ut("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var t_=ut("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var fc=ut("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);var r_=ut("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);var n_=ut("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);var s_=ut("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var i_=ut("phone-incoming",[["path",{d:"M16 2v6h6",key:"1mfrl5"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var o_=ut("phone-missed",[["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var a_=ut("phone-outgoing",[["path",{d:"m16 8 6-6",key:"oawc05"}],["path",{d:"M22 8V2h-6",key:"oqy2zc"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var Ph=ut("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var l_=ut("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);var c_=ut("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var u_=ut("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var d_=ut("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);var Oh=ut("voicemail",[["circle",{cx:"6",cy:"12",r:"4",key:"1ehtga"}],["circle",{cx:"18",cy:"12",r:"4",key:"4vafl8"}],["line",{x1:"6",x2:"18",y1:"16",y2:"16",key:"pmt8us"}]]);var Hh=ut("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);var pc=ut("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),f_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"};function p_(e,t){return $(),me("svg",f_,[...t[0]||(t[0]=[za('<g clip-path="url(#a)"><path fill="currentColor" d="m1.913 7.003.035.49c0 .605.49 1.095 1.095 1.095.015 0 1.08-.14 1.08-.14a1.1 1.1 0 0 0 1.07-1.07l.075-.655c1.192-.463 2.33-.465 3.47-.005l.072.657c.01.585.485 1.06 1.07 1.07 0 0 1.065.14 1.08.14.605 0 1.095-.49 1.095-1.07l.038-.537c0-.575-.23-1.12-.65-1.54-1.91-1.91-6.973-1.908-8.88 0-.418.417-.65.965-.648 1.562zM10.94 5.94c.285.285.443.653.44 1.015l-.037.538a.39.39 0 0 1-.368.387s-1.057-.137-1.072-.137a.4.4 0 0 1-.388-.388c0-.015-.1-.92-.1-.92a.35.35 0 0 0-.207-.282c-1.43-.64-2.913-.643-4.408-.003a.36.36 0 0 0-.212.288s-.103.907-.103.917a.386.386 0 0 1-.387.388c-.015 0-1.073.137-1.073.137a.395.395 0 0 1-.37-.41l-.035-.49c0-.385.155-.755.44-1.04 1.74-1.74 6.383-1.497 7.88 0"></path></g><circle cx="7" cy="7" r="6.6" stroke="currentColor" stroke-width=".8"></circle><defs><clipPath id="a"><path fill="#fff" d="M7 13 1 7l6-6 6 6z"></path></clipPath></defs>',3)])])}var hc={render:p_},h_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 9 9"};function g_(e,t){return $(),me("svg",h_,[...t[0]||(t[0]=[re("g",{"clip-path":"url(#a)"},[re("path",{fill:"currentColor",d:"M0 8.625V6a3.38 3.38 0 0 1 3.375-3.375h1.811V2.03a.75.75 0 0 1 1.28-.53l2.206 2.205a1.125 1.125 0 0 1 0 1.59L6.466 7.5a.75.75 0 0 1-1.28-.53v-.595H3a2.25 2.25 0 0 0-2.25 2.25.375.375 0 0 1-.75 0M5.936 3a.375.375 0 0 1-.375.375H3.375A2.63 2.63 0 0 0 .75 6v.643A3 3 0 0 1 3 5.625h2.561A.375.375 0 0 1 5.936 6v.97l2.205-2.205a.375.375 0 0 0 0-.53L5.936 2.03z"})],-1),re("defs",null,[re("clipPath",{id:"a"},[re("path",{fill:"#fff",d:"M0 0h9v9H0z"})])],-1)])])}var v_={render:g_},m_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function w_(e,t){return $(),me("svg",m_,[...t[0]||(t[0]=[za('<g clip-path="url(#a)"><path fill="currentColor" d="m13.499 13.495.321-.371a1.095 1.095 0 0 0 0-1.549c-.01-.01-.862-.665-.862-.665a1.1 1.1 0 0 0-1.514 0l-.516.41c-1.17-.516-1.976-1.318-2.457-2.45l.414-.516a1.09 1.09 0 0 0 0-1.513s-.654-.852-.665-.863c-.428-.427-1.12-.427-1.53-.017l-.407.353c-.407.407-.63.955-.63 1.549 0 2.701 3.582 6.279 6.28 6.279.59 0 1.141-.223 1.562-.647zM6.364 7.863c0-.403.148-.774.406-1.029l.407-.354a.39.39 0 0 1 .534-.014s.65.845.661.856a.4.4 0 0 1 0 .548c-.01.01-.58.721-.58.721a.35.35 0 0 0-.053.347c.559 1.463 1.605 2.513 3.115 3.118a.36.36 0 0 0 .354-.053l.72-.576a.386.386 0 0 1 .549 0c.01.01.855.66.855.66a.395.395 0 0 1-.028.552l-.322.372a1.47 1.47 0 0 1-1.046.424c-2.46 0-5.572-3.454-5.572-5.572"></path></g><circle cx="9.899" cy="9.899" r="6.6" stroke="currentColor" stroke-width=".8" transform="rotate(-135 9.9 9.9)"></circle><defs><clipPath id="a"><path fill="#fff" d="M14.143 5.657v8.485H5.658V5.657z"></path></clipPath></defs>',3)])])}var y_={render:w_},b_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"2.8 2.8 14.2 14.2"};function __(e,t){return $(),me("svg",b_,[...t[0]||(t[0]=[re("circle",{cx:"9.899",cy:"9.899",r:"6.6",stroke:"currentColor","stroke-width":".8",transform:"rotate(-135 9.9 9.9)"},null,-1),re("path",{fill:"currentColor",d:"M13.634 8.18a.66.66 0 0 0-.729.094l-.585.591a1.663 1.663 0 0 0-1.653-1.531h-3C6.747 7.334 6 8.08 6 9v2a1.67 1.67 0 0 0 1.667 1.667h3c.876 0 1.589-.683 1.654-1.543l.585.585.036.03a.66.66 0 0 0 .692.063.66.66 0 0 0 .366-.591V8.77a.66.66 0 0 0-.366-.592M10.667 12h-3c-.552 0-1-.449-1-1V9c0-.551.448-1 1-1h3c.551 0 1 .449 1 1v2c0 .551-.449 1-1 1m1.666-1.806v-.396l1-1.01.009 2.413z"},null,-1)])])}var S_={render:__},C_=["data-call-status"],x_={key:0,class:"webphone-actions__idle wp:!w-full wp:flex wp:flex-col wp:items-center wp:space-y-2 wp:mb-4"},T_={key:2,class:"webphone-actions__connected wp:w-full wp:flex wp:flex-col wp:items-center wp:gap-3"},E_={class:"webphone-actions__row wp:flex wp:items-center wp:gap-6"},A_={key:4,class:"webphone-actions__transfer-state wp:absolute wp:inset-x-0 wp:bottom-full wp:mb-2 wp:flex wp:justify-center wp:gap-2"},I_=J({__name:"CallActions",props:{destination:{},isVideo:{type:Boolean}},emits:["transfer","completeTransfer","cancelTransfer"],setup(e,{emit:t}){const r=Rt("webphone"),{makeCall:n,hangupCall:s,answerCall:i,toggleMute:o,toggleHold:a}=Rt("sip"),l=e,c=t,u=W(()=>!!r.transferInProgress),d=W(()=>l.destination||r.keypadValue||r.lastDialedNumber||""),p=W(()=>l.isVideo?d.value?/^[0-9*#]{1,5}$/.test(d.value):!0:!1),g=async v=>{try{l.destination?await n(l.destination,v):r.keypadValue?await n(r.keypadValue,v):r.lastDialedNumber&&(r.keypadValue=r.lastDialedNumber)}catch(_){if(console.error("Error initiating call:",_),v){let w="No se pudo acceder a la cámara.";const b=_ instanceof Error?_.name:String(_);b==="NotReadableError"?w="La cámara parece estar en uso por otra aplicación (ej: Zoom, Meet) o no se puede acceder al hardware.":b==="NotAllowedError"||b==="PermissionDeniedError"?w="Permiso de cámara denegado. Por favor, permita el acceso a la cámara.":b==="NotFoundError"?w="No se detectó ninguna cámara en el sistema.":w+=" "+(_ instanceof Error?_.message:String(_)),confirm(`${w}
|
|
75
75
|
|
|
76
|
-
¿Desea realizar la llamada solo con AUDIO?`)&&g(!1)}else alert("Error al iniciar la llamada: "+(_ instanceof Error?_.message:String(_)))}},m=(v=!1)=>{i(v)},y=W(()=>{const v={};return r.channels.forEach(_=>{const w=_.status==="connected"||_.status==="calling"||_.status==="incoming";v[_.id]=w?"wp:text-[var(--color-red)]":"wp:text-[var(--color-avaible)]"}),v}),S=W(()=>y.value[r.activeChannelId]??"wp:text-[var(--p-primary-color)]");return(v,_)=>($(),me("div",{class:"webphone-actions wp:flex wp:justify-center wp:items-center wp:gap-2 wp:px-4 wp:relative wp:mb-4","data-call-status":f(r).callStatus},[f(r).callStatus==="idle"?($(),me("div",x_,[M(f(ot),{variant:"default",size:"icon",onClick:_[0]||(_[0]=w=>g(!1)),disabled:!l.destination&&(!f(r).keypadValue||!/^[+]?[0-9*#]+$/.test(f(r).keypadValue))&&!f(r).lastDialedNumber,"aria-label":"Audio Call",class:"webphone-actions__button webphone-actions__button--call wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-[color:var(--p-primary-color)]/80 wp:to-[color:var(--p-primary-color)]/100 wp:hover:from-[color:var(--p-primary-color)]/75 wp:hover:to-[color:var(--p-primary-color)]"},{default:R(()=>[M(f(y_),{class:"webphone-actions__button-icon wp:size-8 wp:text-white"}),_[7]||(_[7]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Llamar",-1))]),_:1},8,["disabled"]),p.value?($(),z(f(ot),{key:0,variant:"outline",size:"icon",onClick:_[1]||(_[1]=w=>g(!0)),disabled:!l.destination&&(!f(r).keypadValue||!/^[+]?[0-9*#]+$/.test(f(r).keypadValue))&&!f(r).lastDialedNumber,"aria-label":"Video Call",class:"webphone-actions__button webphone-actions__button--video wp:w-full wp:px-4 wp:bg-transparent wp:border wp:border-primary wp:hover:bg-[var(--p-primary-color)]/8"},{default:R(()=>[M(f(S_),{class:Xe(["webphone-actions__button-icon wp:size-6 wp:text-primary",S.value])},null,8,["class"]),_[8]||(_[8]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-primary"}," Video llamada a extensiones ",-1))]),_:1},8,["disabled"])):$e("",!0)])):$e("",!0),f(r).callStatus==="incoming"?($(),me(Ne,{key:1},[f(r).activeChannel?.hasVideo?($(),z(f(ot),{key:0,variant:"default",size:"icon",onClick:_[2]||(_[2]=w=>m(!0)),class:"webphone-actions__button webphone-actions__button--answer-video wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:bg-transparent wp:hover:bg-[var(--p-primary-color)]/10","aria-label":"Answer Video"},{default:R(()=>[M(f(d_),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-[var(--p-primary-color)]"})]),_:1})):$e("",!0),M(f(ot),{variant:"default",size:"icon",onClick:_[3]||(_[3]=w=>m(!1)),class:"webphone-actions__button webphone-actions__button--answer wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:bg-transparent wp:hover:bg-[var(--p-primary-color)]/10","aria-label":"Answer"},{default:R(()=>[M(f(Ph),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-[var(--p-primary-color)]"})]),_:1}),M(f(ot),{variant:"destructive",size:"icon",onClick:f(s),"aria-label":"Reject",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--reject wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:R(()=>[M(f(hc),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1},8,["onClick"])],64)):$e("",!0),f(r).callStatus==="connected"?($(),me("div",T_,[re("div",E_,[M(f(ot),{variant:f(r).isMuted?"destructive":"secondary",size:"icon",onClick:f(o),"aria-label":"Mute",class:"webphone-actions__button webphone-actions__button--mute wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:R(()=>[f(r).isMuted?($(),z(f(r_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-disconnected"})):($(),z(f(n_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),M(f(ot),{variant:(f(r).isHeld,"secondary"),size:"icon",onClick:f(a),"aria-label":"Hold",class:"webphone-actions__button webphone-actions__button--hold wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:R(()=>[f(r).isHeld?($(),z(f(l_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-hold"})):($(),z(f(s_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),u.value?$e("",!0):($(),z(f(ot),{key:0,variant:"secondary",size:"icon",onClick:_[4]||(_[4]=w=>c("transfer")),"aria-label":"Transfer",class:"webphone-actions__button webphone-actions__button--transfer wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:R(()=>[M(f(v_),{class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"})]),_:1}))]),M(f(ot),{size:"icon",onClick:f(s),"aria-label":"Hangup",class:"webphone-actions__button webphone-actions__button--hangup wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:R(()=>[M(f(hc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),_[9]||(_[9]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1},8,["onClick"])])):$e("",!0),f(r).callStatus==="calling"?($(),z(f(ot),{key:3,variant:"destructive",size:"lg",onClick:f(s),"aria-label":"Cancel",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--cancel wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:R(()=>[M(f(hc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),_[10]||(_[10]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1},8,["onClick"])):$e("",!0),u.value&&f(r).callStatus==="connected"?($(),me("div",A_,[M(f(ot),{variant:"default",size:"sm",onClick:_[5]||(_[5]=w=>c("completeTransfer")),class:"webphone-actions__button webphone-actions__button--complete-transfer wp:gap-2 wp:bg-status-available wp:hover:bg-status-available/90 wp:text-white"},{default:R(()=>[M(f($h),{class:"wp:w-4 wp:h-4"}),_[11]||(_[11]=Oe(" Completar Transferencia ",-1))]),_:1}),M(f(ot),{variant:"destructive",size:"sm",onClick:_[6]||(_[6]=w=>c("cancelTransfer")),class:"webphone-actions__button webphone-actions__button--cancel-transfer wp:gap-2"},{default:R(()=>[M(f(pc),{class:"wp:w-4 wp:h-4"}),_[12]||(_[12]=Oe(" Cancelar ",-1))]),_:1})])):$e("",!0)],8,C_))}}),R_=I_,k_=J({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=ys(r,"modelValue",t,{passive:!0,defaultValue:r.defaultValue});return(s,i)=>Vi(($(),me("input",{"onUpdate:modelValue":i[0]||(i[0]=o=>Ge(n)?n.value=o:null),"data-slot":"input",class:Xe(f(tt)("wp:file:text-foreground wp:placeholder:text-muted-foreground wp:selection:bg-primary wp:selection:text-primary-foreground wp:dark:bg-input/30 wp:border-blue-500 wp:h-9 wp:w-full wp:min-w-0 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-1 wp:text-base wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:file:inline-flex wp:file:h-7 wp:file:border-0 wp:file:bg-transparent wp:file:text-sm wp:file:font-medium wp:disabled:pointer-events-none wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:md:text-sm","wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px]","wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",r.class))},null,2)),[[si,f(n)]])}}),gc=k_,$_=J({__name:"Kbd",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("kbd",{class:Xe(f(tt)("wp:bg-muted wp:text-muted-foreground wp:pointer-events-none wp:inline-flex wp:h-5 wp:w-fit wp:min-w-5 wp:items-center wp:justify-center wp:gap-1 wp:rounded-sm wp:px-1 wp:font-sans wp:text-xs wp:font-medium wp:select-none","wp:[&_svg:not([class*='size-'])]:size-3","wp:[[data-slot=tooltip-content]_&]:bg-background/20 wp:[[data-slot=tooltip-content]_&]:text-background wp:dark:[[data-slot=tooltip-content]_&]:bg-background/10",t.class))},[Z(r.$slots,"default")],2))}}),kr=$_,D_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function P_(e,t){return $(),me("svg",D_,[...t[0]||(t[0]=[re("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.076-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.144.223c.192.26.44.468.726.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.75 1.75 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.93 1.93 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.143.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.03-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.797-.008l.07.043c.244.163.445.384.589.645a1.93 1.93 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.74 1.74 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zm-2.03-1.943c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222a1.97 1.97 0 0 0 1.569.803c.292 0 .58-.067.844-.196.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1)])])}var O_={render:P_},H_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function M_(e,t){return $(),me("svg",H_,[...t[0]||(t[0]=[re("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.74 1.74 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.92 1.92 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.142.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.75 1.75 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.384.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.029-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.964.027.056.047.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.708 14.6c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222c.19.26.44.468.725.607a1.92 1.92 0 0 0 1.688 0c.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1),re("path",{stroke:"currentColor","stroke-linecap":"round",d:"M2 16.293 16.293 2"},null,-1)])])}var q_={render:M_},N_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"};function B_(e,t){return $(),me("svg",N_,[...t[0]||(t[0]=[re("path",{fill:"currentColor",d:"M9.75 1H4.5c-.678 0-1.314.302-1.743.828L.513 4.578a2.26 2.26 0 0 0 0 2.844l2.243 2.75A2.24 2.24 0 0 0 4.5 11h5.25C10.99 11 12 9.99 12 8.75v-5.5C12 2.01 10.99 1 9.75 1m1.75 7.75c0 .965-.785 1.75-1.75 1.75H4.5a1.74 1.74 0 0 1-1.356-.644L.901 7.106a1.755 1.755 0 0 1 0-2.212l2.243-2.75A1.74 1.74 0 0 1 4.5 1.499h5.25c.965 0 1.75.785 1.75 1.75zM8.927 4.427 7.354 6l1.573 1.573a.25.25 0 0 1-.354.353L7 6.355 5.427 7.926a.25.25 0 0 1-.354 0 .25.25 0 0 1 0-.353L6.646 6 5.073 4.427a.25.25 0 0 1 .354-.353L7 5.646l1.573-1.572a.25.25 0 0 1 .353.353z"},null,-1)])])}var L_={render:B_},F_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 23"};function V_(e,t){return $(),me("svg",F_,[...t[0]||(t[0]=[re("path",{stroke:"currentColor","stroke-miterlimit":"22.926","stroke-width":"1.2",d:"m12.317 2.51 15.123-.027c2.609 1.773 1.65 19.836 0 18.746l-15.124.026zM1.593 2.484h1.45V21.29h-1.45c-1.79-2.697-1.79-17.855 0-18.806ZM6.244.25h3.078a1.573 1.573 0 0 1 1.574 1.566v18.902a1.58 1.58 0 0 1-1.574 1.574H6.244a1.58 1.58 0 0 1-1.574-1.576v-18.9A1.573 1.573 0 0 1 6.244.25Z","clip-rule":"evenodd"},null,-1)])])}var vc={render:V_},j_=J({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Xr(e,t);return(n,s)=>($(),z(f(F2),fe({"data-slot":"tooltip"},f(r)),{default:R(i=>[Z(n.$slots,"default",lr(er(i)))]),_:3},16))}}),Ko=j_,U_=J({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Xr(Nt(r,"class"),n);return(i,o)=>($(),z(f(U2),null,{default:R(()=>[M(f(j2),fe({"data-slot":"tooltip-content"},{...f(s),...i.$attrs},{class:f(tt)("wp:bg-foreground wp:text-background wp:animate-in wp:fade-in-0 wp:zoom-in-95 wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=closed]:zoom-out-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:z-50 wp:w-fit wp:rounded-md wp:px-3 wp:py-1.5 wp:text-xs wp:text-balance",r.class)}),{default:R(()=>[Z(i.$slots,"default"),M(f(q2),{class:"wp:bg-foreground wp:fill-foreground wp:z-50 wp:size-2.5 wp:translate-y-[calc(-50%_-_2px)] wp:rotate-45 wp:rounded-[2px]"})]),_:3},16,["class"])]),_:3}))}}),Go=U_,z_=J({__name:"TooltipProvider",props:{delayDuration:{default:0},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},content:{}},setup(e){const t=e;return(r,n)=>($(),z(f(B2),lr(er(t)),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),Jo=z_,W_=J({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),z(f(z2),fe({"data-slot":"tooltip-trigger"},t),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),Yo=W_,K_=["data-call-status"],G_={class:"webphone-display__connected-status-label wp:flex wp:gap-2 wp:items-center"},J_={class:"webphone-display__duration wp:ibrad wp:font-semibold wp:text-sm"},Y_={key:2,class:"webphone-display__dialer wp:w-full wp:flex wp:items-center wp:justify-center wp:min-h-10"},Z_={class:"webphone-display__dialer-field wp:relative"},X_={class:"webphone-display__suggestions wp:absolute wp:bottom-full wp:left-0 wp:w-full wp:z-50 wp:bg-popover wp:text-popover-foreground wp:shadow-md wp:rounded-md wp:border wp:mb-1 wp:max-h-40 wp:overflow-y-auto"},Q_=["onMousedown"],eS={class:"webphone-display__contact-content wp:flex wp:flex-col wp:min-w-0"},tS={class:"webphone-display__contact-name wp:truncate"},rS={class:"webphone-display__contact-number wp:text-xs wp:text-muted-foreground wp:truncate"},nS={key:3,class:"webphone-display__connected-summary wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2 wp:w-full"},sS={class:"webphone-display__caller wp:flex wp:flex-col wp:items-center wp:gap-1"},iS={class:"webphone-display__caller-row wp:flex wp:items-center wp:gap-2"},oS={key:0,class:"webphone-display__caller-number wp:text-[10px] wp:text-muted-foreground"},aS={key:4,class:"webphone-display__non-idle wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2 wp:min-h-10"},lS={class:"webphone-display__non-idle-row wp:flex wp:items-center wp:gap-4"},cS={class:"webphone-display__non-idle-caller wp:flex wp:flex-col wp:items-center"},uS={class:"webphone-display__non-idle-name wp:text-md wp:font-bold wp:text-neutral-800 wp:dark:text-white"},dS={key:0,class:"webphone-display__non-idle-number wp:text-sm wp:text-muted-foreground"},fS=J({__name:"CallDisplay",props:{allowInput:{type:Boolean,default:!0},isWebCall:{type:Boolean,default:!1},user:{},contacts:{default:()=>[]},channelId:{default:void 0}},setup(e){const t=Rt("webphone"),r=Rt("sip"),n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",s=e,i=W(()=>s.channelId!==void 0?t.channels.find(h=>h.id===s.channelId):t.activeChannel),o=W(()=>{if(!t.isConnected)return"wp:text-status-disconnected";const h=i.value;return h&&h.status!=="idle"?h.isHeld||h.status==="held"?"wp:text-status-hold":h.status==="incoming"?"wp:text-status-incoming":"wp:text-primary":"wp:text-primary"}),a=L(!1),l=L(null),c=L(null);_y(l,()=>{a.value=!1});const u=W({get:()=>i.value?.keypadValue||"",set:h=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:h})}}),d=W(()=>/^[+]?[0-9*#]+$/.test(u.value)),p=W(()=>{if(!u.value)return s.contacts.slice(0,10);const h=u.value.toLowerCase(),O=[];for(const P of s.contacts)if((P.name.toLowerCase().includes(h)||P.number.includes(h))&&(O.push(P),O.length>=10))break;return O}),g=h=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:h.number}),a.value=!1,r.makeCall(h.number)},m=()=>{!u.value||!d.value||(a.value=!1,r.makeCall(u.value))};ke(u,()=>{a.value=!0});const y=()=>{u.value&&d.value&&m()},S=()=>{a.value=!1},v=()=>{a.value=!0},_=()=>{setTimeout(()=>{a.value=!1},150)},w=L(Date.now());wy(()=>{w.value=Date.now()},1e3);const b=W(()=>{const h=i.value?.startTime,O=i.value?.status||"idle";if(!h||O!=="connected")return"00:00:00";const P=Math.floor((w.value-h)/1e3);return P<0?"00:00:00":`${Math.floor(P/3600).toString().padStart(2,"0")}:${Math.floor(P%3600/60).toString().padStart(2,"0")}:${(P%60).toString().padStart(2,"0")}`}),C=W(()=>{const h=i.value,O=h?.status||"idle";return O==="idle"?"Disponible":O==="calling"?"Llamando...":h?.isHeld?`En espera - ${h.remoteNumber||h.keypadValue||"Unknown"}`:O==="connected"?"Conectado":O.charAt(0).toUpperCase()+O.slice(1)}),I=W(()=>{const h=i.value,O=h?.remoteNumber||h?.keypadValue,P=h?.remoteDisplayName;if(!O)return"Unknown";if(!O)return console.log("[CallDisplay] ⚠️ No hay número"),"Unknown";const x=s.contacts?.find(T=>(console.log("[CallDisplay] Comparando con:",T.name,"-",T.number),T.number===O?(console.log("[CallDisplay] ✅ Coincidencia exacta encontrada:",T.name),!0):O.endsWith(T.number)||T.number.endsWith(O)?(console.log("[CallDisplay] ✅ Coincidencia parcial encontrada:",T.name),!0):!1)),E=x?x.name:P||O;return console.log("[CallDisplay] 📱 Resultado final:",E),E}),H=W(()=>{const h=i.value;return h?.remoteNumber||h?.keypadValue||""});return(h,O)=>($(),me("div",{class:"webphone-display wp:flex wp:flex-col wp:items-center wp:px-4 wp:space-y-8","data-call-status":i.value?.status||"idle"},[(i.value?.status||"idle")==="connected"?($(),me("div",{key:0,class:Xe([o.value,"webphone-display__connected-status wp:w-full wp:flex wp:items-center wp:justify-between wp:gap-2 wp:text-3xl wp:font-light wp:mb-5"])},[re("div",G_,[M(f(vc),{class:"webphone-display__connected-status-icon wp:w-4 wp:h-4"}),O[2]||(O[2]=re("span",{class:"webphone-display__connected-status-text wp:text-sm wp:montserrat wp:font-bold"},"En llamada",-1))]),re("span",J_,De(b.value),1)],2)):$e("",!0),s.user?($(),me("span",{key:1,class:Xe([o.value,"webphone-display__user wp:font-bold wp:text-lg wp:flex wp:items-center wp:gap-2 wp:transition-colors wp:duration-300"])},[M(f(vc),{class:"webphone-display__user-icon wp:size-6 wp:shrink-0 montserrat"}),Oe(" "+De(s.user)+" ",1),(i.value?.status||"idle")!=="connected"?($(),me("div",{key:0,class:Xe([o.value,"webphone-display__status-text wp:font-bold wp:tracking-wider wp:text-sm wp:text-[var(--color-primary)] montserrat"])},De(C.value),3)):$e("",!0)],2)):$e("",!0),(i.value?.status||"idle")==="idle"&&s.allowInput?($(),me("div",Y_,[re("div",{class:"webphone-display__dialer-container wp:relative wp:w-full wp:max-w-80",ref_key:"containerRef",ref:l},[re("div",Z_,[M(f(Jo),null,{default:R(()=>[M(f(Ko),null,{default:R(()=>[M(f(Yo),{"as-child":""},{default:R(()=>[M(f(ot),{onClick:f(t).toggleKeypad,variant:"ghost",size:"icon",class:Xe(f(tt)("webphone-display__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"))},{default:R(()=>[f(t).isKeypadVisible?($(),z(f(O_),{key:0,class:"webphone-display__keypad-toggle-icon wp:size-6"})):($(),z(f(q_),{key:1,class:"webphone-display__keypad-toggle-icon wp:size-6"}))]),_:1},8,["onClick","class"])]),_:1}),M(f(Go),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[re("span",null,De(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1}),M(f(gc),{ref_key:"inputRef",ref:c,modelValue:u.value,"onUpdate:modelValue":O[0]||(O[0]=P=>u.value=P),onFocus:v,onBlur:_,onKeydown:[ol(y,["enter"]),ol(S,["escape"])],placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-display__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),re("div",{class:"webphone-display__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:O[1]||(O[1]=xr(P=>f(t).backspaceKeypad(),["stop"]))},[M(f(L_),{class:"webphone-display__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),Vi(re("div",X_,[d.value?($(),me("div",{key:0,class:"webphone-display__suggestion webphone-display__suggestion--raw wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onMousedown:xr(m,["prevent"])},[M(f(Ph),{class:"webphone-display__suggestion-icon wp:w-4 wp:h-4 wp:shrink-0"}),re("span",null,"Marcar "+De(u.value),1)],32)):$e("",!0),($(!0),me(Ne,null,Qt(p.value,P=>($(),me("div",{key:P.number,class:"webphone-display__suggestion webphone-display__suggestion--contact wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onMousedown:xr(x=>g(P),["prevent"])},[re("div",{class:Xe(f(tt)("webphone-display__contact-badge wp:flex wp:items-center wp:justify-center wp:w-6 wp:h-6 wp:rounded-full wp:shrink-0",P.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":P.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":P.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":P.type==="tool"?"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400":"wp:bg-neutral-100 wp:text-neutral-600 wp:dark:bg-neutral-800 wp:dark:text-neutral-400"))},[P.type==="extension"?($(),z(f(kh),{key:0,class:"wp:w-3 wp:h-3"})):P.type==="contact"?($(),z(f(fc),{key:1,class:"wp:w-3 wp:h-3"})):P.type==="voicemail"?($(),z(f(Oh),{key:2,class:"wp:w-3 wp:h-3"})):P.type==="tool"?($(),z(f(Hh),{key:3,class:"wp:w-3 wp:h-3"})):($(),z(f(fc),{key:4,class:"wp:w-3 wp:h-3"}))],2),re("div",eS,[re("span",tS,De(P.name),1),re("span",rS,De(P.number),1)])],40,Q_))),128))],512),[[co,a.value&&u.value&&(p.value.length>0||d.value)]])],512)])):(i.value?.status||"idle")==="connected"?($(),me("div",nS,[re("div",sS,[re("div",iS,[re("div",{class:Xe([o.value,"webphone-display__caller-name wp:text-xs"])}," En llamada con "+De(I.value),3),e.isWebCall?$e("",!0):($(),z(f(Jo),{key:0},{default:R(()=>[M(f(Ko),null,{default:R(()=>[M(f(Yo),{"as-child":""}),M(f(Go),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[re("span",null,De(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1}))]),I.value!==H.value?($(),me("div",oS,De(H.value),1)):$e("",!0)])])):(i.value?.status||"idle")!=="idle"?($(),me("div",aS,[re("div",lS,[re("div",cS,[re("div",uS,De(I.value),1),I.value!==H.value?($(),me("div",dS,De(H.value),1)):$e("",!0)]),M(f(Jo),null,{default:R(()=>[M(f(Ko),null,{default:R(()=>[M(f(Yo),{"as-child":""}),M(f(Go),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[re("span",null,De(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1})])])):$e("",!0)],8,K_))}}),pS=fS,hS=J({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Xr(e,t);return(n,s)=>($(),z(f(Qy),fe({"data-slot":"dialog"},f(r)),{default:R(i=>[Z(n.$slots,"default",lr(er(i)))]),_:3},16))}}),mc=hS,gS=J({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(wb),fe({"data-slot":"dialog-overlay"},f(r),{class:f(tt)("wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:fixed wp:inset-0 wp:z-50 wp:bg-black/80",t.class)}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["class"]))}}),vS=gS,mS=J({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=Xr(Nt(r,"class"),n);return(i,o)=>($(),z(f(yb),null,{default:R(()=>[M(vS),M(f(vb),fe({"data-slot":"dialog-content"},{...i.$attrs,...f(s)},{class:f(tt)("wp:bg-background wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:fixed wp:top-[50%] wp:left-[50%] wp:z-50 wp:grid wp:w-full wp:max-w-[calc(100%-2rem)] wp:translate-x-[-50%] wp:translate-y-[-50%] wp:gap-4 wp:rounded-lg wp:border wp:p-6 wp:shadow-lg wp:duration-200 wp:sm:max-w-lg",r.class)}),{default:R(()=>[Z(i.$slots,"default"),e.showCloseButton?($(),z(f(eb),{key:0,"data-slot":"dialog-close",class:"wp:ring-offset-background wp:focus:ring-ring wp:data-[state=open]:bg-accent wp:data-[state=open]:text-muted-foreground wp:absolute wp:top-4 wp:right-4 wp:rounded-xs wp:opacity-70 wp:transition-opacity wp:hover:opacity-100 wp:focus:ring-2 wp:focus:ring-offset-2 wp:focus:outline-hidden wp:disabled:pointer-events-none wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4"},{default:R(()=>[M(f(pc)),o[0]||(o[0]=re("span",{class:"wp:sr-only"},"Close",-1))]),_:1})):$e("",!0)]),_:3},16,["class"])]),_:3}))}}),wc=mS,wS=J({__name:"DialogFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("div",{"data-slot":"dialog-footer",class:Xe(f(tt)("wp:flex wp:flex-col-reverse wp:gap-2 wp:sm:flex-row wp:sm:justify-end",t.class))},[Z(r.$slots,"default")],2))}}),Mh=wS,yS=J({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("div",{"data-slot":"dialog-header",class:Xe(f(tt)("wp:flex wp:flex-col wp:gap-2 wp:text-center wp:sm:text-left",t.class))},[Z(r.$slots,"default")],2))}}),yc=yS,bS=J({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Zr(Nt(t,"class"));return(n,s)=>($(),z(f(bb),fe({"data-slot":"dialog-title"},f(r),{class:f(tt)("wp:text-lg wp:leading-none wp:font-semibold",t.class)}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["class"]))}}),bc=bS,_S=J({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=Xr(e,t);return(n,s)=>($(),z(f(f2),fe({"data-slot":"select"},f(r)),{default:R(i=>[Z(n.$slots,"default",lr(er(i)))]),_:3},16))}}),qh=_S,SS=J({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Xr(Nt(r,"class"),n);return(i,o)=>($(),z(f(R2),null,{default:R(()=>[M(f(_2),fe({"data-slot":"select-content"},{...i.$attrs,...f(s)},{class:f(tt)("wp:bg-popover wp:text-popover-foreground wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:relative wp:z-50 wp:max-h-(--reka-select-content-available-height) wp:min-w-[8rem] wp:overflow-x-hidden wp:overflow-y-auto wp:rounded-md wp:border wp:shadow-md",e.position==="popper"&&"wp:data-[side=bottom]:translate-y-1 wp:data-[side=left]:-translate-x-1 wp:data-[side=right]:translate-x-1 wp:data-[side=top]:-translate-y-1",r.class)}),{default:R(()=>[M(f(RS)),M(f(O2),{class:Xe(f(tt)("wp:p-1",e.position==="popper"&&"wp:h-[var(--reka-select-trigger-height)] wp:w-full wp:min-w-[var(--reka-select-trigger-width)] wp:scroll-my-1"))},{default:R(()=>[Z(i.$slots,"default")]),_:3},8,["class"]),M(f(AS))]),_:3},16,["class"])]),_:3}))}}),Nh=SS,CS=J({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),z(f(C2),fe({"data-slot":"select-group"},t),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),Bh=CS,xS={class:"wp:absolute wp:right-2 wp:flex wp:size-3.5 wp:items-center wp:justify-center"},TS=J({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Zr(Nt(t,"class"));return(n,s)=>($(),z(f(E2),fe({"data-slot":"select-item"},f(r),{class:f(tt)("wp:focus:bg-accent wp:focus:text-accent-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:relative wp:flex wp:w-full wp:cursor-default wp:items-center wp:gap-2 wp:rounded-sm wp:py-1.5 wp:pr-8 wp:pl-2 wp:text-sm wp:outline-hidden wp:select-none wp:data-[disabled]:pointer-events-none wp:data-[disabled]:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4 wp:*:[span]:last:flex wp:*:[span]:last:items-center wp:*:[span]:last:gap-2",t.class)}),{default:R(()=>[re("span",xS,[M(f(A2),null,{default:R(()=>[Z(n.$slots,"indicator-icon",{},()=>[M(f($h),{class:"wp:size-4"})])]),_:3})]),M(f(I2),null,{default:R(()=>[Z(n.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),Lh=TS,ES=J({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Zr(Nt(t,"class"));return(n,s)=>($(),z(f(k2),fe({"data-slot":"select-scroll-down-button"},f(r),{class:f(tt)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:R(()=>[Z(n.$slots,"default",{},()=>[M(f(Dh),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),AS=ES,IS=J({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Zr(Nt(t,"class"));return(n,s)=>($(),z(f($2),fe({"data-slot":"select-scroll-up-button"},f(r),{class:f(tt)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:R(()=>[Z(n.$slots,"default",{},()=>[M(f(t_),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),RS=IS,kS=J({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},size:{default:"default"}},setup(e){const t=e,r=Zr(Nt(t,"class","size"));return(n,s)=>($(),z(f(D2),fe({"data-slot":"select-trigger","data-size":e.size},f(r),{class:f(tt)("wp:border-input wp:data-[placeholder]:text-muted-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive wp:dark:bg-input/30 wp:dark:hover:bg-input/50 wp:flex wp:w-fit wp:items-center wp:justify-between wp:gap-2 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-2 wp:text-sm wp:whitespace-nowrap wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:data-[size=default]:h-9 wp:data-[size=sm]:h-8 wp:*:data-[slot=select-value]:line-clamp-1 wp:*:data-[slot=select-value]:flex wp:*:data-[slot=select-value]:items-center wp:*:data-[slot=select-value]:gap-2 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4",t.class)}),{default:R(()=>[Z(n.$slots,"default"),M(f(x2),{"as-child":""},{default:R(()=>[M(f(Dh),{class:"wp:size-4 wp:opacity-50"})]),_:1})]),_:3},16,["data-size","class"]))}}),Fh=kS,$S=J({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),z(f(P2),fe({"data-slot":"select-value"},t),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),Vh=$S,DS=J({__name:"Slider",props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,s=Xr(Nt(r,"class"),n);return(i,o)=>($(),z(f(L1),fe({"data-slot":"slider",class:f(tt)("wp:relative wp:flex wp:w-full wp:touch-none wp:items-center wp:select-none wp:data-[disabled]:opacity-50 wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:min-h-44 wp:data-[orientation=vertical]:w-auto wp:data-[orientation=vertical]:flex-col",r.class)},f(s)),{default:R(({modelValue:a})=>[M(f(U1),{"data-slot":"slider-track",class:"wp:bg-muted wp:relative wp:grow wp:overflow-hidden wp:rounded-full wp:data-[orientation=horizontal]:h-1.5 wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-1.5"},{default:R(()=>[M(f(F1),{"data-slot":"slider-range",class:"wp:bg-primary wp:absolute wp:data-[orientation=horizontal]:h-full wp:data-[orientation=vertical]:w-full"})]),_:1}),($(!0),me(Ne,null,Qt(a,(l,c)=>($(),z(f(j1),{key:c,"data-slot":"slider-thumb",class:"wp:bg-white wp:border-primary wp:ring-ring/50 wp:block wp:size-4 wp:shrink-0 wp:rounded-full wp:border wp:shadow-sm wp:transition-[color,box-shadow] wp:hover:ring-4 wp:focus-visible:ring-4 wp:focus-visible:outline-hidden wp:disabled:pointer-events-none wp:disabled:opacity-50"}))),128))]),_:1},16,["class"]))}}),jh=DS,PS=J({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(z1),fe({"data-slot":"label"},f(r),{class:f(tt)("wp:flex wp:items-center wp:gap-2 wp:text-sm wp:leading-none wp:font-medium wp:select-none wp:group-data-[disabled=true]:pointer-events-none wp:group-data-[disabled=true]:opacity-50 wp:peer-disabled:cursor-not-allowed wp:peer-disabled:opacity-50",t.class)}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["class"]))}}),As=PS,OS=J({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(M2),fe({"data-slot":"separator"},f(r),{class:f(tt)("wp:bg-border wp:shrink-0 wp:data-[orientation=horizontal]:h-px wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-px",t.class)}),null,16,["class"]))}}),HS=OS,MS={class:"wp:flex wp:flex-col wp:gap-6 wp:py-4"},qS={class:"wp:flex wp:flex-col wp:gap-2"},NS={class:"wp:flex wp:flex-col wp:gap-2"},BS={class:"wp:flex wp:flex-col wp:gap-4"},LS={class:"wp:flex wp:justify-between"},FS={class:"wp:text-sm wp:text-muted-foreground"},VS={class:"wp:flex wp:flex-col wp:gap-4"},jS={class:"wp:flex wp:justify-between"},US={class:"wp:text-sm wp:text-muted-foreground"},zS={class:"wp:flex wp:flex-col wp:gap-3"},WS={class:"wp:grid wp:grid-cols-2 wp:gap-2 wp:text-sm"},KS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},GS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},JS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},YS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},ZS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},XS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},QS=J({__name:"AudioSettingsDialog",props:{visible:{type:Boolean}},emits:["update:visible"],setup(e,{emit:t}){const r=t,n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",{setVolume:s,setOutputDevice:i,setInputDevice:o,setNotificationVolume:a}=Rt("sip"),l=L([]),c=L([]),u=Io("webphone-input-device",""),d=Io("webphone-output-device",""),p=Io("webphone-volume",100),g=Io("webphone-notification-volume",100),m=async()=>{try{await navigator.mediaDevices.getUserMedia({audio:!0});const b=await navigator.mediaDevices.enumerateDevices();l.value=b.filter(H=>H.kind==="audioinput").map((H,h)=>({deviceId:H.deviceId,label:H.label||`Microphone ${h+1}`})),c.value=b.filter(H=>H.kind==="audiooutput").map((H,h)=>({deviceId:H.deviceId,label:H.label||`Speaker ${h+1}`}));const C=l.value.some(H=>H.deviceId===u.value);(!u.value||!C)&&l.value.length>0&&(u.value=l.value[0]?.deviceId??"");const I=c.value.some(H=>H.deviceId===d.value);(!d.value||!I)&&c.value.length>0&&(d.value=c.value[0]?.deviceId??""),u.value&&o(u.value),d.value&&i(d.value)}catch(b){console.error("Error loading devices",b)}},y=b=>{const C=String(b);u.value=C,o(C)},S=b=>{const C=String(b);d.value=C,i(C)},v=(b,C=35)=>b.length<=C?b:b.substring(0,C)+"...",_=W({get:()=>[p.value],set:b=>{p.value=b[0],s(p.value)}}),w=W({get:()=>[g.value],set:b=>{g.value=b[0],a(g.value)}});return We(()=>{m(),s(p.value),a(g.value)}),(b,C)=>e.visible?($(),z(f(mc),{key:0,open:e.visible,"onUpdate:open":C[5]||(C[5]=I=>r("update:visible",I))},{default:R(()=>[M(f(wc),{class:"wp:sm:max-w-sm"},{default:R(()=>[M(f(yc),null,{default:R(()=>[M(f(bc),null,{default:R(()=>[...C[6]||(C[6]=[Oe("Audio Settings",-1)])]),_:1})]),_:1}),re("div",MS,[re("div",qS,[M(f(As),null,{default:R(()=>[...C[7]||(C[7]=[Oe("Microphone",-1)])]),_:1}),M(f(qh),{modelValue:f(u),"onUpdate:modelValue":[C[0]||(C[0]=I=>Ge(u)?u.value=I:null),y]},{default:R(()=>[M(f(Fh),{class:"wp:w-full"},{default:R(()=>[M(f(Vh),{placeholder:"Select Microphone"})]),_:1}),M(f(Nh),null,{default:R(()=>[M(f(Bh),null,{default:R(()=>[($(!0),me(Ne,null,Qt(l.value,I=>($(),z(f(Lh),{key:I.deviceId,value:I.deviceId,title:I.label},{default:R(()=>[Oe(De(v(I.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),re("div",NS,[M(f(As),null,{default:R(()=>[...C[8]||(C[8]=[Oe("Speaker",-1)])]),_:1}),M(f(qh),{modelValue:f(d),"onUpdate:modelValue":[C[1]||(C[1]=I=>Ge(d)?d.value=I:null),S]},{default:R(()=>[M(f(Fh),{class:"wp:w-full"},{default:R(()=>[M(f(Vh),{placeholder:"Select Speaker"})]),_:1}),M(f(Nh),null,{default:R(()=>[M(f(Bh),null,{default:R(()=>[($(!0),me(Ne,null,Qt(c.value,I=>($(),z(f(Lh),{key:I.deviceId,value:I.deviceId,title:I.label},{default:R(()=>[Oe(De(v(I.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),re("div",BS,[re("div",LS,[M(f(As),null,{default:R(()=>[...C[9]||(C[9]=[Oe("Media Volume",-1)])]),_:1}),re("span",FS,De(f(p))+"%",1)]),M(f(jh),{modelValue:_.value,"onUpdate:modelValue":C[2]||(C[2]=I=>_.value=I),max:100,step:1},null,8,["modelValue"])]),re("div",VS,[re("div",jS,[M(f(As),null,{default:R(()=>[...C[10]||(C[10]=[Oe("Notification Volume",-1)])]),_:1}),re("span",US,De(f(g))+"%",1)]),M(f(jh),{modelValue:w.value,"onUpdate:modelValue":C[3]||(C[3]=I=>w.value=I),max:100,step:1},null,8,["modelValue"])]),M(f(HS)),re("div",zS,[M(f(As),{class:"wp:text-base"},{default:R(()=>[...C[11]||(C[11]=[Oe("Atajos de teclado",-1)])]),_:1}),re("div",WS,[re("div",KS,[C[12]||(C[12]=re("span",{class:"wp:text-muted-foreground"},"Historial",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"H",1)]),_:1})]),re("div",GS,[C[13]||(C[13]=re("span",{class:"wp:text-muted-foreground"},"Configuración",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+",",1)]),_:1})]),re("div",JS,[C[14]||(C[14]=re("span",{class:"wp:text-muted-foreground"},"Teclado",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"K",1)]),_:1})]),re("div",YS,[C[15]||(C[15]=re("span",{class:"wp:text-muted-foreground"},"Línea 1",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"1",1)]),_:1})]),re("div",ZS,[C[16]||(C[16]=re("span",{class:"wp:text-muted-foreground"},"Línea 2",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"2",1)]),_:1})]),re("div",XS,[C[17]||(C[17]=re("span",{class:"wp:text-muted-foreground"},"Línea 3",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"3",1)]),_:1})])])])]),M(f(Mh),null,{default:R(()=>[M(f(ot),{variant:"secondary",onClick:C[4]||(C[4]=I=>r("update:visible",!1))},{default:R(()=>[...C[18]||(C[18]=[Oe("Close",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):$e("",!0)}}),eC=QS,tC=J({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(s2),fe({"data-slot":"scroll-area-scrollbar"},f(r),{class:f(tt)("wp:flex wp:touch-none wp:p-px wp:transition-colors wp:select-none",e.orientation==="vertical"&&"wp:h-full wp:w-2.5 wp:border-l wp:border-l-transparent",e.orientation==="horizontal"&&"wp:h-2.5 wp:flex-col wp:border-t wp:border-t-transparent",t.class)}),{default:R(()=>[M(f(o2),{"data-slot":"scroll-area-thumb",class:"wp:bg-border wp:relative wp:flex-1 wp:rounded-full"})]),_:1},16,["class"]))}}),rC=tC,nC=J({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(K1),fe({"data-slot":"scroll-area"},f(r),{class:f(tt)("wp:relative",t.class)}),{default:R(()=>[M(f(a2),{"data-slot":"scroll-area-viewport",class:"wp:focus-visible:ring-ring/50 wp:size-full wp:rounded-[inherit] wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:focus-visible:outline-1"},{default:R(()=>[Z(n.$slots,"default")]),_:3}),M(rC),M(f(J1))]),_:3},16,["class"]))}}),Uh=nC,sC={class:"wp:relative wp:my-2"},iC={class:"wp:flex wp:flex-col wp:gap-2"},oC=["onClick"],aC={class:"wp:flex wp:items-center wp:gap-3"},lC={class:"wp:flex wp:flex-col"},cC={class:"wp:text-sm wp:font-medium"},uC={class:"wp:text-[10px] wp:text-muted-foreground"},dC={class:"wp:flex wp:flex-col wp:items-end"},fC={key:0,class:"wp:text-xs wp:font-mono wp:text-muted-foreground"},pC={class:"wp:text-[10px] wp:text-muted-foreground wp:capitalize"},hC={key:0,class:"wp:text-center wp:text-muted-foreground wp:py-8"},gC={key:1,class:"wp:text-center wp:text-muted-foreground wp:py-8"},vC=J({__name:"CallHistoryDialog",props:{visible:{type:Boolean},contacts:{}},emits:["update:visible","call"],setup(e,{emit:t}){const r=e,n=t,s=Rt("webphone"),i=L(""),o=p=>{if(!r.contacts)return p;const g=r.contacts.find(m=>m.number===p);return g?g.name:p},a=W(()=>{if(!i.value)return s.callHistory;const p=i.value.toLowerCase();return s.callHistory.filter(g=>{const m=o(g.number).toLowerCase(),y=g.number.toLowerCase();return m.includes(p)||y.includes(p)})}),l=p=>p===0?"":`${Math.floor(p/60)}:${(p%60).toString().padStart(2,"0")}`,c=p=>p.direction==="incoming"?p.status==="missed"?o_:i_:a_,u=p=>p.status==="missed"?"wp:text-red-500":p.direction==="incoming"?"wp:text-green-500":"wp:text-blue-500",d=p=>{n("update:visible",!1),n("call",p)};return(p,g)=>e.visible?($(),z(f(mc),{key:0,open:e.visible,"onUpdate:open":g[1]||(g[1]=m=>n("update:visible",m))},{default:R(()=>[M(f(wc),{class:"wp:sm:max-w-sm"},{default:R(()=>[M(f(yc),null,{default:R(()=>[M(f(bc),null,{default:R(()=>[...g[2]||(g[2]=[Oe("Call History",-1)])]),_:1})]),_:1}),re("div",sC,[M(f(c_),{class:"wp:absolute wp:left-2 wp:top-2.5 wp:h-4 wp:w-4 wp:text-muted-foreground"}),M(f(gc),{modelValue:i.value,"onUpdate:modelValue":g[0]||(g[0]=m=>i.value=m),placeholder:"Search history...",class:"wp:pl-8"},null,8,["modelValue"])]),M(f(Uh),{class:"wp:h-[60vh] wp:pr-4"},{default:R(()=>[re("div",iC,[($(!0),me(Ne,null,Qt(a.value,m=>($(),me("div",{key:m.id,class:"wp:flex wp:items-center wp:justify-between wp:p-2 wp:rounded-lg wp:hover:bg-accent wp:cursor-pointer wp:transition-colors",onClick:y=>d(m.number)},[re("div",aC,[($(),z(Gs(c(m)),{class:Xe([u(m),"wp:w-4 wp:h-4"])},null,8,["class"])),re("div",lC,[re("span",cC,De(o(m.number)),1),re("span",uC,De(new Date(m.startTime).toLocaleString()),1)])]),re("div",dC,[m.duration>0?($(),me("span",fC,De(l(m.duration)),1)):$e("",!0),re("span",pC,De(m.status),1)])],8,oC))),128)),f(s).callHistory.length===0?($(),me("div",hC," No call history ")):a.value.length===0?($(),me("div",gC," No results found ")):$e("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):$e("",!0)}}),mC=vC,wC={class:"wp:grid wp:gap-4 wp:py-4"},yC={class:"wp:grid wp:gap-2 wp:relative"},bC={class:"wp:relative"},_C={key:0,class:"wp:absolute wp:top-full wp:left-0 wp:right-0 wp:mt-1 wp:bg-popover wp:border wp:rounded-md wp:shadow-lg wp:z-50 wp:max-h-60 wp:overflow-auto"},SC={class:"wp:p-1"},CC=["onClick"],xC={class:"wp:flex wp:flex-col wp:min-w-0 wp:flex-1"},TC={class:"wp:font-medium wp:text-sm wp:truncate"},EC={class:"wp:text-xs wp:text-muted-foreground"},AC=J({__name:"TransferDialog",props:{visible:{type:Boolean},contacts:{default:()=>[]}},emits:["update:visible","transfer"],setup(e,{emit:t}){const r=e,n=t,s=L(""),i=L(!1),o=L(null);ke(()=>r.visible,p=>{p&&(s.value="",i.value=!1)}),ke(s,p=>{i.value=p.length>0&&a.value.length>0});const a=W(()=>{if(!s.value)return r.contacts;const p=s.value.toLowerCase();return r.contacts.filter(g=>g.name.toLowerCase().includes(p)||g.number.includes(p))}),l=p=>{s.value=p.number,i.value=!1},c=()=>{s.value="",i.value=!1,o.value?.focus()},u=p=>{const g=s.value.trim();g&&(n("transfer",g,p),n("update:visible",!1),s.value="",i.value=!1)},d=p=>{p.key==="Enter"&&s.value.trim()?(p.preventDefault(),u("blind")):p.key==="Escape"&&(i.value=!1)};return(p,g)=>e.visible?($(),z(f(mc),{key:0,open:e.visible,"onUpdate:open":g[5]||(g[5]=m=>n("update:visible",m))},{default:R(()=>[M(f(wc),{class:"wp:sm:max-w-md"},{default:R(()=>[M(f(yc),null,{default:R(()=>[M(f(bc),null,{default:R(()=>[...g[6]||(g[6]=[Oe("Transferir Llamada",-1)])]),_:1})]),_:1}),re("div",wC,[re("div",yC,[M(f(As),{for:"transfer-input"},{default:R(()=>[...g[7]||(g[7]=[Oe("Número o Contacto",-1)])]),_:1}),re("div",bC,[M(f(gc),{id:"transfer-input",ref_key:"inputRef",ref:o,modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=m=>s.value=m),type:"text",placeholder:"Escribe un número o busca un contacto...",class:"wp:pr-8",onKeydown:d,onFocus:g[1]||(g[1]=m=>i.value=s.value.length>0&&a.value.length>0),autocomplete:"off"},null,8,["modelValue"]),s.value?($(),z(f(ot),{key:0,variant:"ghost",size:"icon",class:"wp:absolute wp:right-0 wp:top-0 wp:h-full wp:w-8 wp:hover:bg-transparent",onClick:c},{default:R(()=>[M(f(pc),{class:"wp:h-4 wp:w-4"})]),_:1})):$e("",!0)]),i.value&&a.value.length>0?($(),me("div",_C,[M(f(Uh),{class:"wp:max-h-60"},{default:R(()=>[re("div",SC,[($(!0),me(Ne,null,Qt(a.value,m=>($(),me("div",{key:m.number,class:"wp:flex wp:items-center wp:gap-2 wp:p-2 wp:rounded-sm wp:cursor-pointer wp:hover:bg-accent wp:transition-colors",onClick:y=>l(m)},[m.type?($(),me("div",{key:0,class:Xe(f(tt)("wp:flex wp:items-center wp:justify-center wp:w-8 wp:h-8 wp:rounded-full wp:shrink-0",m.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":m.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":m.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400"))},[m.type==="extension"?($(),z(f(kh),{key:0,class:"wp:w-4 wp:h-4"})):m.type==="contact"?($(),z(f(fc),{key:1,class:"wp:w-4 wp:h-4"})):m.type==="voicemail"?($(),z(f(Oh),{key:2,class:"wp:w-4 wp:h-4"})):($(),z(f(Hh),{key:3,class:"wp:w-4 wp:h-4"}))],2)):$e("",!0),re("div",xC,[re("span",TC,De(m.name),1),re("span",EC,De(m.number),1)])],8,CC))),128))])]),_:1})])):$e("",!0),g[8]||(g[8]=re("p",{class:"wp:text-xs wp:text-muted-foreground"}," Presiona Enter para transferir directamente ",-1))])]),M(f(Mh),{class:"wp:flex-col wp:gap-2 sm:wp:flex-row"},{default:R(()=>[M(f(ot),{variant:"secondary",onClick:g[2]||(g[2]=m=>n("update:visible",!1)),class:"wp:w-full sm:wp:w-auto"},{default:R(()=>[...g[9]||(g[9]=[Oe(" Cancelar ",-1)])]),_:1}),M(f(ot),{onClick:g[3]||(g[3]=m=>u("blind")),disabled:!s.value.trim(),variant:"outline",class:"wp:w-full sm:wp:flex-1"},{default:R(()=>[...g[10]||(g[10]=[Oe(" Transferencia Ciega ",-1)])]),_:1},8,["disabled"]),M(f(ot),{onClick:g[4]||(g[4]=m=>u("attended")),disabled:!s.value.trim(),class:"wp:w-full sm:wp:flex-1"},{default:R(()=>[...g[11]||(g[11]=[Oe(" Con Consulta ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"])):$e("",!0)}}),IC=AC,RC=J({__name:"DocumentPip",props:{remoteStream:{},localStream:{},hasVideo:{type:Boolean},remoteNumber:{},isConnected:{type:Boolean},callStatus:{},isMuted:{type:Boolean},isHeld:{type:Boolean},destination:{},isVideo:{type:Boolean},active:{type:Boolean},autoOpenOnBlur:{type:Boolean}},emits:["transfer","update:active","hangup","answer","toggleMute","toggleHold"],setup(e,{expose:t,emit:r}){const n=e,s=r,i=L(!1),o=L(!1),a=L(null),l=L(0),c=L(null);let u=null;We(()=>{i.value="documentPictureInPicture"in window,document.addEventListener("visibilitychange",d)}),kt(()=>{document.removeEventListener("visibilitychange",d),g(),x()});const d=()=>{n.callStatus==="idle"||!i.value||document.hidden&&!o.value&&n.autoOpenOnBlur!==!1&&setTimeout(()=>{document.hidden&&!o.value&&P()},100)},p=()=>{c.value||(l.value=0,c.value=setInterval(()=>{l.value++},1e3))},g=()=>{c.value&&(clearInterval(c.value),c.value=null)},m=T=>{const q=Math.floor(T/60),F=T%60;return`${q.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}`};ke(()=>n.callStatus,(T,q)=>{T==="connected"&&q!=="connected"?p():T==="idle"&&q!=="idle"&&(g(),o.value&&x())},{immediate:!0}),ke(()=>n.isConnected,T=>{!T&&o.value&&(g(),x())}),ke(()=>[n.callStatus,n.isMuted,n.isHeld],()=>{a.value&&(I(a.value.document),b(a.value.document))});const y=W(()=>i.value&&n.isConnected),S={phone:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>',phoneOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" transform="rotate(135 12 12)"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',mic:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',micOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="2" x2="22" y1="2" y2="22"/><path d="M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"/><path d="M5 10v2a7 7 0 0 0 12 5"/><path d="M15 9.34V5a3 3 0 0 0-5.68-1.33"/><path d="M9 9v3a3 3 0 0 0 5.12 2.12"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',pause:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/></svg>',play:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3"/></svg>',transfer:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 3 4 4-4 4"/><path d="M20 7H4"/><path d="m8 21-4-4 4-4"/><path d="M4 17h16"/></svg>',video:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'},v=T=>{const q=T.createElement("style");q.textContent=`
|
|
76
|
+
¿Desea realizar la llamada solo con AUDIO?`)&&g(!1)}else alert("Error al iniciar la llamada: "+(_ instanceof Error?_.message:String(_)))}},m=(v=!1)=>{i(v)},y=W(()=>{const v={};return r.channels.forEach(_=>{const w=_.status==="connected"||_.status==="calling"||_.status==="incoming";v[_.id]=w?"wp:text-[var(--color-red)]":"wp:text-[var(--color-avaible)]"}),v}),S=W(()=>y.value[r.activeChannelId]??"wp:text-[var(--p-primary-color)]");return(v,_)=>($(),me("div",{class:"webphone-actions wp:flex wp:justify-center wp:items-center wp:gap-2 wp:px-4 wp:relative wp:mb-4","data-call-status":f(r).callStatus},[f(r).callStatus==="idle"?($(),me("div",x_,[M(f(ot),{variant:"default",size:"icon",onClick:_[0]||(_[0]=w=>g(!1)),disabled:!l.destination&&(!f(r).keypadValue||!/^[+]?[0-9*#]+$/.test(f(r).keypadValue))&&!f(r).lastDialedNumber,"aria-label":"Audio Call",class:"webphone-actions__button webphone-actions__button--call wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-[color:var(--p-primary-color)]/80 wp:to-[color:var(--p-primary-color)]/100 wp:hover:from-[color:var(--p-primary-color)]/75 wp:hover:to-[color:var(--p-primary-color)]"},{default:R(()=>[M(f(y_),{class:"webphone-actions__button-icon wp:size-8 wp:text-white"}),_[7]||(_[7]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Llamar",-1))]),_:1},8,["disabled"]),p.value?($(),z(f(ot),{key:0,variant:"outline",size:"icon",onClick:_[1]||(_[1]=w=>g(!0)),disabled:!l.destination&&(!f(r).keypadValue||!/^[+]?[0-9*#]+$/.test(f(r).keypadValue))&&!f(r).lastDialedNumber,"aria-label":"Video Call",class:"webphone-actions__button webphone-actions__button--video wp:w-full wp:px-4 wp:bg-transparent wp:border wp:border-primary wp:hover:bg-[var(--p-primary-color)]/8"},{default:R(()=>[M(f(S_),{class:Xe(["webphone-actions__button-icon wp:size-6 wp:text-primary",S.value])},null,8,["class"]),_[8]||(_[8]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-primary"}," Video llamada a extensiones ",-1))]),_:1},8,["disabled"])):$e("",!0)])):$e("",!0),f(r).callStatus==="incoming"?($(),me(Ne,{key:1},[f(r).activeChannel?.hasVideo?($(),z(f(ot),{key:0,variant:"default",size:"icon",onClick:_[2]||(_[2]=w=>m(!0)),class:"webphone-actions__button webphone-actions__button--answer-video wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:bg-transparent wp:hover:bg-[var(--p-primary-color)]/10","aria-label":"Answer Video"},{default:R(()=>[M(f(d_),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-[var(--p-primary-color)]"})]),_:1})):$e("",!0),M(f(ot),{variant:"default",size:"icon",onClick:_[3]||(_[3]=w=>m(!1)),class:"webphone-actions__button webphone-actions__button--answer wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:bg-transparent wp:hover:bg-[var(--p-primary-color)]/10","aria-label":"Answer"},{default:R(()=>[M(f(Ph),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-[var(--p-primary-color)]"})]),_:1}),M(f(ot),{variant:"destructive",size:"icon",onClick:f(s),"aria-label":"Reject",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--reject wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:R(()=>[M(f(hc),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1},8,["onClick"])],64)):$e("",!0),f(r).callStatus==="connected"?($(),me("div",T_,[re("div",E_,[M(f(ot),{variant:f(r).isMuted?"destructive":"secondary",size:"icon",onClick:f(o),"aria-label":"Mute",class:"webphone-actions__button webphone-actions__button--mute wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:R(()=>[f(r).isMuted?($(),z(f(r_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-disconnected"})):($(),z(f(n_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),M(f(ot),{variant:(f(r).isHeld,"secondary"),size:"icon",onClick:f(a),"aria-label":"Hold",class:"webphone-actions__button webphone-actions__button--hold wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:R(()=>[f(r).isHeld?($(),z(f(l_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-hold"})):($(),z(f(s_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),u.value?$e("",!0):($(),z(f(ot),{key:0,variant:"secondary",size:"icon",onClick:_[4]||(_[4]=w=>c("transfer")),"aria-label":"Transfer",class:"webphone-actions__button webphone-actions__button--transfer wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:R(()=>[M(f(v_),{class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"})]),_:1}))]),M(f(ot),{size:"icon",onClick:f(s),"aria-label":"Hangup",class:"webphone-actions__button webphone-actions__button--hangup wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:R(()=>[M(f(hc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),_[9]||(_[9]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1},8,["onClick"])])):$e("",!0),f(r).callStatus==="calling"?($(),z(f(ot),{key:3,variant:"destructive",size:"lg",onClick:f(s),"aria-label":"Cancel",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--cancel wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:R(()=>[M(f(hc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),_[10]||(_[10]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1},8,["onClick"])):$e("",!0),u.value&&f(r).callStatus==="connected"?($(),me("div",A_,[M(f(ot),{variant:"default",size:"sm",onClick:_[5]||(_[5]=w=>c("completeTransfer")),class:"webphone-actions__button webphone-actions__button--complete-transfer wp:gap-2 wp:bg-status-available wp:hover:bg-status-available/90 wp:text-white"},{default:R(()=>[M(f($h),{class:"wp:w-4 wp:h-4"}),_[11]||(_[11]=Oe(" Completar Transferencia ",-1))]),_:1}),M(f(ot),{variant:"destructive",size:"sm",onClick:_[6]||(_[6]=w=>c("cancelTransfer")),class:"webphone-actions__button webphone-actions__button--cancel-transfer wp:gap-2"},{default:R(()=>[M(f(pc),{class:"wp:w-4 wp:h-4"}),_[12]||(_[12]=Oe(" Cancelar ",-1))]),_:1})])):$e("",!0)],8,C_))}}),R_=I_,k_=J({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=ys(r,"modelValue",t,{passive:!0,defaultValue:r.defaultValue});return(s,i)=>Vi(($(),me("input",{"onUpdate:modelValue":i[0]||(i[0]=o=>Ge(n)?n.value=o:null),"data-slot":"input",class:Xe(f(tt)("wp:file:text-foreground wp:placeholder:text-muted-foreground wp:selection:bg-primary wp:selection:text-primary-foreground wp:dark:bg-input/30 wp:border-blue-500 wp:h-9 wp:w-full wp:min-w-0 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-1 wp:text-base wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:file:inline-flex wp:file:h-7 wp:file:border-0 wp:file:bg-transparent wp:file:text-sm wp:file:font-medium wp:disabled:pointer-events-none wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:md:text-sm","wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px]","wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",r.class))},null,2)),[[si,f(n)]])}}),gc=k_,$_=J({__name:"Kbd",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("kbd",{class:Xe(f(tt)("wp:bg-muted wp:text-muted-foreground wp:pointer-events-none wp:inline-flex wp:h-5 wp:w-fit wp:min-w-5 wp:items-center wp:justify-center wp:gap-1 wp:rounded-sm wp:px-1 wp:font-sans wp:text-xs wp:font-medium wp:select-none","wp:[&_svg:not([class*='size-'])]:size-3","wp:[[data-slot=tooltip-content]_&]:bg-background/20 wp:[[data-slot=tooltip-content]_&]:text-background wp:dark:[[data-slot=tooltip-content]_&]:bg-background/10",t.class))},[Z(r.$slots,"default")],2))}}),kr=$_,D_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function P_(e,t){return $(),me("svg",D_,[...t[0]||(t[0]=[re("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.076-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.144.223c.192.26.44.468.726.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.75 1.75 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.93 1.93 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.143.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.03-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.797-.008l.07.043c.244.163.445.384.589.645a1.93 1.93 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.74 1.74 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zm-2.03-1.943c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222a1.97 1.97 0 0 0 1.569.803c.292 0 .58-.067.844-.196.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1)])])}var O_={render:P_},H_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function M_(e,t){return $(),me("svg",H_,[...t[0]||(t[0]=[re("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.74 1.74 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.92 1.92 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.142.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.75 1.75 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.384.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.029-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.964.027.056.047.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.708 14.6c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222c.19.26.44.468.725.607a1.92 1.92 0 0 0 1.688 0c.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1),re("path",{stroke:"currentColor","stroke-linecap":"round",d:"M2 16.293 16.293 2"},null,-1)])])}var q_={render:M_},N_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"};function B_(e,t){return $(),me("svg",N_,[...t[0]||(t[0]=[re("path",{fill:"currentColor",d:"M9.75 1H4.5c-.678 0-1.314.302-1.743.828L.513 4.578a2.26 2.26 0 0 0 0 2.844l2.243 2.75A2.24 2.24 0 0 0 4.5 11h5.25C10.99 11 12 9.99 12 8.75v-5.5C12 2.01 10.99 1 9.75 1m1.75 7.75c0 .965-.785 1.75-1.75 1.75H4.5a1.74 1.74 0 0 1-1.356-.644L.901 7.106a1.755 1.755 0 0 1 0-2.212l2.243-2.75A1.74 1.74 0 0 1 4.5 1.499h5.25c.965 0 1.75.785 1.75 1.75zM8.927 4.427 7.354 6l1.573 1.573a.25.25 0 0 1-.354.353L7 6.355 5.427 7.926a.25.25 0 0 1-.354 0 .25.25 0 0 1 0-.353L6.646 6 5.073 4.427a.25.25 0 0 1 .354-.353L7 5.646l1.573-1.572a.25.25 0 0 1 .353.353z"},null,-1)])])}var L_={render:B_},F_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 23"};function V_(e,t){return $(),me("svg",F_,[...t[0]||(t[0]=[re("path",{stroke:"currentColor","stroke-miterlimit":"22.926","stroke-width":"1.2",d:"m12.317 2.51 15.123-.027c2.609 1.773 1.65 19.836 0 18.746l-15.124.026zM1.593 2.484h1.45V21.29h-1.45c-1.79-2.697-1.79-17.855 0-18.806ZM6.244.25h3.078a1.573 1.573 0 0 1 1.574 1.566v18.902a1.58 1.58 0 0 1-1.574 1.574H6.244a1.58 1.58 0 0 1-1.574-1.576v-18.9A1.573 1.573 0 0 1 6.244.25Z","clip-rule":"evenodd"},null,-1)])])}var vc={render:V_},j_=J({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Xr(e,t);return(n,s)=>($(),z(f(F2),fe({"data-slot":"tooltip"},f(r)),{default:R(i=>[Z(n.$slots,"default",lr(er(i)))]),_:3},16))}}),Ko=j_,U_=J({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Xr(Nt(r,"class"),n);return(i,o)=>($(),z(f(U2),null,{default:R(()=>[M(f(j2),fe({"data-slot":"tooltip-content"},{...f(s),...i.$attrs},{class:f(tt)("wp:bg-foreground wp:text-background wp:animate-in wp:fade-in-0 wp:zoom-in-95 wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=closed]:zoom-out-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:z-50 wp:w-fit wp:rounded-md wp:px-3 wp:py-1.5 wp:text-xs wp:text-balance",r.class)}),{default:R(()=>[Z(i.$slots,"default"),M(f(q2),{class:"wp:bg-foreground wp:fill-foreground wp:z-50 wp:size-2.5 wp:translate-y-[calc(-50%_-_2px)] wp:rotate-45 wp:rounded-[2px]"})]),_:3},16,["class"])]),_:3}))}}),Go=U_,z_=J({__name:"TooltipProvider",props:{delayDuration:{default:0},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},content:{}},setup(e){const t=e;return(r,n)=>($(),z(f(B2),lr(er(t)),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),Jo=z_,W_=J({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),z(f(z2),fe({"data-slot":"tooltip-trigger"},t),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),Yo=W_,K_=["data-call-status"],G_={class:"webphone-display__connected-status-label wp:flex wp:gap-2 wp:items-center"},J_={class:"webphone-display__duration wp:ibrad wp:font-semibold wp:text-sm"},Y_={key:2,class:"webphone-display__dialer wp:w-full wp:flex wp:items-center wp:justify-center wp:min-h-10"},Z_={class:"webphone-display__dialer-field wp:relative"},X_={class:"webphone-display__suggestions wp:absolute wp:bottom-full wp:left-0 wp:w-full wp:z-50 wp:bg-popover wp:text-popover-foreground wp:shadow-md wp:rounded-md wp:border wp:mb-1 wp:max-h-40 wp:overflow-y-auto"},Q_=["onMousedown"],eS={class:"webphone-display__contact-content wp:flex wp:flex-col wp:min-w-0"},tS={class:"webphone-display__contact-name wp:truncate"},rS={class:"webphone-display__contact-number wp:text-xs wp:text-muted-foreground wp:truncate"},nS={key:3,class:"webphone-display__connected-summary wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2 wp:w-full"},sS={class:"webphone-display__caller wp:flex wp:flex-col wp:items-center wp:gap-1"},iS={class:"webphone-display__caller-row wp:flex wp:items-center wp:gap-2"},oS={key:0,class:"webphone-display__caller-number wp:text-[10px] wp:text-muted-foreground"},aS={key:4,class:"webphone-display__non-idle wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2 wp:min-h-10"},lS={class:"webphone-display__non-idle-row wp:flex wp:items-center wp:gap-4"},cS={class:"webphone-display__non-idle-caller wp:flex wp:flex-col wp:items-center"},uS={class:"webphone-display__non-idle-name wp:text-md wp:font-bold wp:text-neutral-800 wp:dark:text-white"},dS={key:0,class:"webphone-display__non-idle-number wp:text-sm wp:text-muted-foreground"},fS=J({__name:"CallDisplay",props:{allowInput:{type:Boolean,default:!0},isWebCall:{type:Boolean,default:!1},user:{},contacts:{default:()=>[]},channelId:{default:void 0}},setup(e){const t=Rt("webphone"),r=Rt("sip"),n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",s=e,i=W(()=>s.channelId!==void 0?t.channels.find(h=>h.id===s.channelId):t.activeChannel),o=W(()=>{if(!t.isConnected)return"wp:text-status-disconnected";const h=i.value;return h&&h.status!=="idle"?h.isHeld||h.status==="held"?"wp:text-status-hold":h.status==="incoming"?"wp:text-status-incoming":"wp:text-primary":"wp:text-primary"}),a=L(!1),l=L(null),c=L(null);_y(l,()=>{a.value=!1});const u=W({get:()=>i.value?.keypadValue||"",set:h=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:h})}}),d=W(()=>/^[+]?[0-9*#]+$/.test(u.value)),p=W(()=>{if(!u.value)return s.contacts.slice(0,10);const h=u.value.toLowerCase(),O=[];for(const P of s.contacts)if((P.name.toLowerCase().includes(h)||P.number.includes(h))&&(O.push(P),O.length>=10))break;return O}),g=h=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:h.number}),a.value=!1,r.makeCall(h.number)},m=()=>{!u.value||!d.value||(a.value=!1,r.makeCall(u.value))};ke(u,()=>{a.value=!0});const y=()=>{u.value&&d.value&&m()},S=()=>{a.value=!1},v=()=>{a.value=!0},_=()=>{setTimeout(()=>{a.value=!1},150)},w=L(Date.now());wy(()=>{w.value=Date.now()},1e3);const b=W(()=>{const h=i.value?.startTime,O=i.value?.status||"idle";if(!h||O!=="connected")return"00:00:00";const P=Math.floor((w.value-h)/1e3);return P<0?"00:00:00":`${Math.floor(P/3600).toString().padStart(2,"0")}:${Math.floor(P%3600/60).toString().padStart(2,"0")}:${(P%60).toString().padStart(2,"0")}`}),C=W(()=>{const h=i.value,O=h?.status||"idle";return O==="idle"?"Disponible":O==="calling"?"Llamando...":h?.isHeld?`En espera - ${h.remoteNumber||h.keypadValue||"Unknown"}`:O==="connected"?"Conectado":O.charAt(0).toUpperCase()+O.slice(1)}),I=W(()=>{const h=i.value,O=h?.remoteNumber||h?.keypadValue,P=h?.remoteDisplayName;if(!O)return"Unknown";if(!O)return console.log("[CallDisplay] ⚠️ No hay número"),"Unknown";const x=s.contacts?.find(T=>(console.log("[CallDisplay] Comparando con:",T.name,"-",T.number),T.number===O?(console.log("[CallDisplay] ✅ Coincidencia exacta encontrada:",T.name),!0):O.endsWith(T.number)||T.number.endsWith(O)?(console.log("[CallDisplay] ✅ Coincidencia parcial encontrada:",T.name),!0):!1)),E=x?x.name:P||O;return console.log("[CallDisplay] 📱 Resultado final:",E),E}),H=W(()=>{const h=i.value;return h?.remoteNumber||h?.keypadValue||""});return(h,O)=>($(),me("div",{class:"webphone-display wp:flex wp:flex-col wp:items-center wp:px-4 wp:space-y-8","data-call-status":i.value?.status||"idle"},[(i.value?.status||"idle")==="connected"?($(),me("div",{key:0,class:Xe([o.value,"webphone-display__connected-status wp:w-full wp:flex wp:items-center wp:justify-between wp:gap-2 wp:text-3xl wp:font-light wp:mb-5"])},[re("div",G_,[M(f(vc),{class:"webphone-display__connected-status-icon wp:w-4 wp:h-4"}),O[2]||(O[2]=re("span",{class:"webphone-display__connected-status-text wp:text-sm wp:montserrat wp:font-bold"},"En llamada",-1))]),re("span",J_,De(b.value),1)],2)):$e("",!0),s.user?($(),me("span",{key:1,class:Xe([o.value,"webphone-display__user wp:font-bold wp:text-lg wp:flex wp:items-center wp:gap-2 wp:transition-colors wp:duration-300"])},[M(f(vc),{class:"webphone-display__user-icon wp:size-6 wp:shrink-0 montserrat"}),Oe(" "+De(s.user)+" ",1),(i.value?.status||"idle")==="connected"?($(),me("div",{key:0,class:Xe([o.value,"webphone-display__status-text wp:font-bold wp:tracking-wider wp:text-sm wp:text-[var(--color-primary)] montserrat"])},De(C.value),3)):$e("",!0)],2)):$e("",!0),(i.value?.status||"idle")==="idle"&&s.allowInput?($(),me("div",Y_,[re("div",{class:"webphone-display__dialer-container wp:relative wp:w-full wp:max-w-80",ref_key:"containerRef",ref:l},[re("div",Z_,[M(f(Jo),null,{default:R(()=>[M(f(Ko),null,{default:R(()=>[M(f(Yo),{"as-child":""},{default:R(()=>[M(f(ot),{onClick:f(t).toggleKeypad,variant:"ghost",size:"icon",class:Xe(f(tt)("webphone-display__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"))},{default:R(()=>[f(t).isKeypadVisible?($(),z(f(O_),{key:0,class:"webphone-display__keypad-toggle-icon wp:size-6"})):($(),z(f(q_),{key:1,class:"webphone-display__keypad-toggle-icon wp:size-6"}))]),_:1},8,["onClick","class"])]),_:1}),M(f(Go),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[re("span",null,De(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1}),M(f(gc),{ref_key:"inputRef",ref:c,modelValue:u.value,"onUpdate:modelValue":O[0]||(O[0]=P=>u.value=P),onFocus:v,onBlur:_,onKeydown:[ol(y,["enter"]),ol(S,["escape"])],placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-display__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),re("div",{class:"webphone-display__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:O[1]||(O[1]=xr(P=>f(t).backspaceKeypad(),["stop"]))},[M(f(L_),{class:"webphone-display__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),Vi(re("div",X_,[d.value?($(),me("div",{key:0,class:"webphone-display__suggestion webphone-display__suggestion--raw wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onMousedown:xr(m,["prevent"])},[M(f(Ph),{class:"webphone-display__suggestion-icon wp:w-4 wp:h-4 wp:shrink-0"}),re("span",null,"Marcar "+De(u.value),1)],32)):$e("",!0),($(!0),me(Ne,null,Qt(p.value,P=>($(),me("div",{key:P.number,class:"webphone-display__suggestion webphone-display__suggestion--contact wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onMousedown:xr(x=>g(P),["prevent"])},[re("div",{class:Xe(f(tt)("webphone-display__contact-badge wp:flex wp:items-center wp:justify-center wp:w-6 wp:h-6 wp:rounded-full wp:shrink-0",P.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":P.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":P.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":P.type==="tool"?"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400":"wp:bg-neutral-100 wp:text-neutral-600 wp:dark:bg-neutral-800 wp:dark:text-neutral-400"))},[P.type==="extension"?($(),z(f(kh),{key:0,class:"wp:w-3 wp:h-3"})):P.type==="contact"?($(),z(f(fc),{key:1,class:"wp:w-3 wp:h-3"})):P.type==="voicemail"?($(),z(f(Oh),{key:2,class:"wp:w-3 wp:h-3"})):P.type==="tool"?($(),z(f(Hh),{key:3,class:"wp:w-3 wp:h-3"})):($(),z(f(fc),{key:4,class:"wp:w-3 wp:h-3"}))],2),re("div",eS,[re("span",tS,De(P.name),1),re("span",rS,De(P.number),1)])],40,Q_))),128))],512),[[co,a.value&&u.value&&(p.value.length>0||d.value)]])],512)])):(i.value?.status||"idle")==="connected"?($(),me("div",nS,[re("div",sS,[re("div",iS,[re("div",{class:Xe([o.value,"webphone-display__caller-name wp:text-xs"])}," En llamada con "+De(I.value),3),e.isWebCall?$e("",!0):($(),z(f(Jo),{key:0},{default:R(()=>[M(f(Ko),null,{default:R(()=>[M(f(Yo),{"as-child":""}),M(f(Go),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[re("span",null,De(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1}))]),I.value!==H.value?($(),me("div",oS,De(H.value),1)):$e("",!0)])])):(i.value?.status||"idle")!=="idle"?($(),me("div",aS,[re("div",lS,[re("div",cS,[re("div",uS,De(I.value),1),I.value!==H.value?($(),me("div",dS,De(H.value),1)):$e("",!0)]),M(f(Jo),null,{default:R(()=>[M(f(Ko),null,{default:R(()=>[M(f(Yo),{"as-child":""}),M(f(Go),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[re("span",null,De(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1})])])):$e("",!0)],8,K_))}}),pS=fS,hS=J({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Xr(e,t);return(n,s)=>($(),z(f(Qy),fe({"data-slot":"dialog"},f(r)),{default:R(i=>[Z(n.$slots,"default",lr(er(i)))]),_:3},16))}}),mc=hS,gS=J({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(wb),fe({"data-slot":"dialog-overlay"},f(r),{class:f(tt)("wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:fixed wp:inset-0 wp:z-50 wp:bg-black/80",t.class)}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["class"]))}}),vS=gS,mS=J({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=Xr(Nt(r,"class"),n);return(i,o)=>($(),z(f(yb),null,{default:R(()=>[M(vS),M(f(vb),fe({"data-slot":"dialog-content"},{...i.$attrs,...f(s)},{class:f(tt)("wp:bg-background wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:fixed wp:top-[50%] wp:left-[50%] wp:z-50 wp:grid wp:w-full wp:max-w-[calc(100%-2rem)] wp:translate-x-[-50%] wp:translate-y-[-50%] wp:gap-4 wp:rounded-lg wp:border wp:p-6 wp:shadow-lg wp:duration-200 wp:sm:max-w-lg",r.class)}),{default:R(()=>[Z(i.$slots,"default"),e.showCloseButton?($(),z(f(eb),{key:0,"data-slot":"dialog-close",class:"wp:ring-offset-background wp:focus:ring-ring wp:data-[state=open]:bg-accent wp:data-[state=open]:text-muted-foreground wp:absolute wp:top-4 wp:right-4 wp:rounded-xs wp:opacity-70 wp:transition-opacity wp:hover:opacity-100 wp:focus:ring-2 wp:focus:ring-offset-2 wp:focus:outline-hidden wp:disabled:pointer-events-none wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4"},{default:R(()=>[M(f(pc)),o[0]||(o[0]=re("span",{class:"wp:sr-only"},"Close",-1))]),_:1})):$e("",!0)]),_:3},16,["class"])]),_:3}))}}),wc=mS,wS=J({__name:"DialogFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("div",{"data-slot":"dialog-footer",class:Xe(f(tt)("wp:flex wp:flex-col-reverse wp:gap-2 wp:sm:flex-row wp:sm:justify-end",t.class))},[Z(r.$slots,"default")],2))}}),Mh=wS,yS=J({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("div",{"data-slot":"dialog-header",class:Xe(f(tt)("wp:flex wp:flex-col wp:gap-2 wp:text-center wp:sm:text-left",t.class))},[Z(r.$slots,"default")],2))}}),yc=yS,bS=J({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Zr(Nt(t,"class"));return(n,s)=>($(),z(f(bb),fe({"data-slot":"dialog-title"},f(r),{class:f(tt)("wp:text-lg wp:leading-none wp:font-semibold",t.class)}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["class"]))}}),bc=bS,_S=J({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=Xr(e,t);return(n,s)=>($(),z(f(f2),fe({"data-slot":"select"},f(r)),{default:R(i=>[Z(n.$slots,"default",lr(er(i)))]),_:3},16))}}),qh=_S,SS=J({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Xr(Nt(r,"class"),n);return(i,o)=>($(),z(f(R2),null,{default:R(()=>[M(f(_2),fe({"data-slot":"select-content"},{...i.$attrs,...f(s)},{class:f(tt)("wp:bg-popover wp:text-popover-foreground wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:relative wp:z-50 wp:max-h-(--reka-select-content-available-height) wp:min-w-[8rem] wp:overflow-x-hidden wp:overflow-y-auto wp:rounded-md wp:border wp:shadow-md",e.position==="popper"&&"wp:data-[side=bottom]:translate-y-1 wp:data-[side=left]:-translate-x-1 wp:data-[side=right]:translate-x-1 wp:data-[side=top]:-translate-y-1",r.class)}),{default:R(()=>[M(f(RS)),M(f(O2),{class:Xe(f(tt)("wp:p-1",e.position==="popper"&&"wp:h-[var(--reka-select-trigger-height)] wp:w-full wp:min-w-[var(--reka-select-trigger-width)] wp:scroll-my-1"))},{default:R(()=>[Z(i.$slots,"default")]),_:3},8,["class"]),M(f(AS))]),_:3},16,["class"])]),_:3}))}}),Nh=SS,CS=J({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),z(f(C2),fe({"data-slot":"select-group"},t),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),Bh=CS,xS={class:"wp:absolute wp:right-2 wp:flex wp:size-3.5 wp:items-center wp:justify-center"},TS=J({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Zr(Nt(t,"class"));return(n,s)=>($(),z(f(E2),fe({"data-slot":"select-item"},f(r),{class:f(tt)("wp:focus:bg-accent wp:focus:text-accent-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:relative wp:flex wp:w-full wp:cursor-default wp:items-center wp:gap-2 wp:rounded-sm wp:py-1.5 wp:pr-8 wp:pl-2 wp:text-sm wp:outline-hidden wp:select-none wp:data-[disabled]:pointer-events-none wp:data-[disabled]:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4 wp:*:[span]:last:flex wp:*:[span]:last:items-center wp:*:[span]:last:gap-2",t.class)}),{default:R(()=>[re("span",xS,[M(f(A2),null,{default:R(()=>[Z(n.$slots,"indicator-icon",{},()=>[M(f($h),{class:"wp:size-4"})])]),_:3})]),M(f(I2),null,{default:R(()=>[Z(n.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),Lh=TS,ES=J({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Zr(Nt(t,"class"));return(n,s)=>($(),z(f(k2),fe({"data-slot":"select-scroll-down-button"},f(r),{class:f(tt)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:R(()=>[Z(n.$slots,"default",{},()=>[M(f(Dh),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),AS=ES,IS=J({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Zr(Nt(t,"class"));return(n,s)=>($(),z(f($2),fe({"data-slot":"select-scroll-up-button"},f(r),{class:f(tt)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:R(()=>[Z(n.$slots,"default",{},()=>[M(f(t_),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),RS=IS,kS=J({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},size:{default:"default"}},setup(e){const t=e,r=Zr(Nt(t,"class","size"));return(n,s)=>($(),z(f(D2),fe({"data-slot":"select-trigger","data-size":e.size},f(r),{class:f(tt)("wp:border-input wp:data-[placeholder]:text-muted-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive wp:dark:bg-input/30 wp:dark:hover:bg-input/50 wp:flex wp:w-fit wp:items-center wp:justify-between wp:gap-2 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-2 wp:text-sm wp:whitespace-nowrap wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:data-[size=default]:h-9 wp:data-[size=sm]:h-8 wp:*:data-[slot=select-value]:line-clamp-1 wp:*:data-[slot=select-value]:flex wp:*:data-[slot=select-value]:items-center wp:*:data-[slot=select-value]:gap-2 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4",t.class)}),{default:R(()=>[Z(n.$slots,"default"),M(f(x2),{"as-child":""},{default:R(()=>[M(f(Dh),{class:"wp:size-4 wp:opacity-50"})]),_:1})]),_:3},16,["data-size","class"]))}}),Fh=kS,$S=J({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),z(f(P2),fe({"data-slot":"select-value"},t),{default:R(()=>[Z(r.$slots,"default")]),_:3},16))}}),Vh=$S,DS=J({__name:"Slider",props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,s=Xr(Nt(r,"class"),n);return(i,o)=>($(),z(f(L1),fe({"data-slot":"slider",class:f(tt)("wp:relative wp:flex wp:w-full wp:touch-none wp:items-center wp:select-none wp:data-[disabled]:opacity-50 wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:min-h-44 wp:data-[orientation=vertical]:w-auto wp:data-[orientation=vertical]:flex-col",r.class)},f(s)),{default:R(({modelValue:a})=>[M(f(U1),{"data-slot":"slider-track",class:"wp:bg-muted wp:relative wp:grow wp:overflow-hidden wp:rounded-full wp:data-[orientation=horizontal]:h-1.5 wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-1.5"},{default:R(()=>[M(f(F1),{"data-slot":"slider-range",class:"wp:bg-primary wp:absolute wp:data-[orientation=horizontal]:h-full wp:data-[orientation=vertical]:w-full"})]),_:1}),($(!0),me(Ne,null,Qt(a,(l,c)=>($(),z(f(j1),{key:c,"data-slot":"slider-thumb",class:"wp:bg-white wp:border-primary wp:ring-ring/50 wp:block wp:size-4 wp:shrink-0 wp:rounded-full wp:border wp:shadow-sm wp:transition-[color,box-shadow] wp:hover:ring-4 wp:focus-visible:ring-4 wp:focus-visible:outline-hidden wp:disabled:pointer-events-none wp:disabled:opacity-50"}))),128))]),_:1},16,["class"]))}}),jh=DS,PS=J({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(z1),fe({"data-slot":"label"},f(r),{class:f(tt)("wp:flex wp:items-center wp:gap-2 wp:text-sm wp:leading-none wp:font-medium wp:select-none wp:group-data-[disabled=true]:pointer-events-none wp:group-data-[disabled=true]:opacity-50 wp:peer-disabled:cursor-not-allowed wp:peer-disabled:opacity-50",t.class)}),{default:R(()=>[Z(n.$slots,"default")]),_:3},16,["class"]))}}),As=PS,OS=J({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(M2),fe({"data-slot":"separator"},f(r),{class:f(tt)("wp:bg-border wp:shrink-0 wp:data-[orientation=horizontal]:h-px wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-px",t.class)}),null,16,["class"]))}}),HS=OS,MS={class:"wp:flex wp:flex-col wp:gap-6 wp:py-4"},qS={class:"wp:flex wp:flex-col wp:gap-2"},NS={class:"wp:flex wp:flex-col wp:gap-2"},BS={class:"wp:flex wp:flex-col wp:gap-4"},LS={class:"wp:flex wp:justify-between"},FS={class:"wp:text-sm wp:text-muted-foreground"},VS={class:"wp:flex wp:flex-col wp:gap-4"},jS={class:"wp:flex wp:justify-between"},US={class:"wp:text-sm wp:text-muted-foreground"},zS={class:"wp:flex wp:flex-col wp:gap-3"},WS={class:"wp:grid wp:grid-cols-2 wp:gap-2 wp:text-sm"},KS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},GS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},JS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},YS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},ZS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},XS={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},QS=J({__name:"AudioSettingsDialog",props:{visible:{type:Boolean}},emits:["update:visible"],setup(e,{emit:t}){const r=t,n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",{setVolume:s,setOutputDevice:i,setInputDevice:o,setNotificationVolume:a}=Rt("sip"),l=L([]),c=L([]),u=Io("webphone-input-device",""),d=Io("webphone-output-device",""),p=Io("webphone-volume",100),g=Io("webphone-notification-volume",100),m=async()=>{try{await navigator.mediaDevices.getUserMedia({audio:!0});const b=await navigator.mediaDevices.enumerateDevices();l.value=b.filter(H=>H.kind==="audioinput").map((H,h)=>({deviceId:H.deviceId,label:H.label||`Microphone ${h+1}`})),c.value=b.filter(H=>H.kind==="audiooutput").map((H,h)=>({deviceId:H.deviceId,label:H.label||`Speaker ${h+1}`}));const C=l.value.some(H=>H.deviceId===u.value);(!u.value||!C)&&l.value.length>0&&(u.value=l.value[0]?.deviceId??"");const I=c.value.some(H=>H.deviceId===d.value);(!d.value||!I)&&c.value.length>0&&(d.value=c.value[0]?.deviceId??""),u.value&&o(u.value),d.value&&i(d.value)}catch(b){console.error("Error loading devices",b)}},y=b=>{const C=String(b);u.value=C,o(C)},S=b=>{const C=String(b);d.value=C,i(C)},v=(b,C=35)=>b.length<=C?b:b.substring(0,C)+"...",_=W({get:()=>[p.value],set:b=>{p.value=b[0],s(p.value)}}),w=W({get:()=>[g.value],set:b=>{g.value=b[0],a(g.value)}});return We(()=>{m(),s(p.value),a(g.value)}),(b,C)=>e.visible?($(),z(f(mc),{key:0,open:e.visible,"onUpdate:open":C[5]||(C[5]=I=>r("update:visible",I))},{default:R(()=>[M(f(wc),{class:"wp:sm:max-w-sm"},{default:R(()=>[M(f(yc),null,{default:R(()=>[M(f(bc),null,{default:R(()=>[...C[6]||(C[6]=[Oe("Audio Settings",-1)])]),_:1})]),_:1}),re("div",MS,[re("div",qS,[M(f(As),null,{default:R(()=>[...C[7]||(C[7]=[Oe("Microphone",-1)])]),_:1}),M(f(qh),{modelValue:f(u),"onUpdate:modelValue":[C[0]||(C[0]=I=>Ge(u)?u.value=I:null),y]},{default:R(()=>[M(f(Fh),{class:"wp:w-full"},{default:R(()=>[M(f(Vh),{placeholder:"Select Microphone"})]),_:1}),M(f(Nh),null,{default:R(()=>[M(f(Bh),null,{default:R(()=>[($(!0),me(Ne,null,Qt(l.value,I=>($(),z(f(Lh),{key:I.deviceId,value:I.deviceId,title:I.label},{default:R(()=>[Oe(De(v(I.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),re("div",NS,[M(f(As),null,{default:R(()=>[...C[8]||(C[8]=[Oe("Speaker",-1)])]),_:1}),M(f(qh),{modelValue:f(d),"onUpdate:modelValue":[C[1]||(C[1]=I=>Ge(d)?d.value=I:null),S]},{default:R(()=>[M(f(Fh),{class:"wp:w-full"},{default:R(()=>[M(f(Vh),{placeholder:"Select Speaker"})]),_:1}),M(f(Nh),null,{default:R(()=>[M(f(Bh),null,{default:R(()=>[($(!0),me(Ne,null,Qt(c.value,I=>($(),z(f(Lh),{key:I.deviceId,value:I.deviceId,title:I.label},{default:R(()=>[Oe(De(v(I.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),re("div",BS,[re("div",LS,[M(f(As),null,{default:R(()=>[...C[9]||(C[9]=[Oe("Media Volume",-1)])]),_:1}),re("span",FS,De(f(p))+"%",1)]),M(f(jh),{modelValue:_.value,"onUpdate:modelValue":C[2]||(C[2]=I=>_.value=I),max:100,step:1},null,8,["modelValue"])]),re("div",VS,[re("div",jS,[M(f(As),null,{default:R(()=>[...C[10]||(C[10]=[Oe("Notification Volume",-1)])]),_:1}),re("span",US,De(f(g))+"%",1)]),M(f(jh),{modelValue:w.value,"onUpdate:modelValue":C[3]||(C[3]=I=>w.value=I),max:100,step:1},null,8,["modelValue"])]),M(f(HS)),re("div",zS,[M(f(As),{class:"wp:text-base"},{default:R(()=>[...C[11]||(C[11]=[Oe("Atajos de teclado",-1)])]),_:1}),re("div",WS,[re("div",KS,[C[12]||(C[12]=re("span",{class:"wp:text-muted-foreground"},"Historial",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"H",1)]),_:1})]),re("div",GS,[C[13]||(C[13]=re("span",{class:"wp:text-muted-foreground"},"Configuración",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+",",1)]),_:1})]),re("div",JS,[C[14]||(C[14]=re("span",{class:"wp:text-muted-foreground"},"Teclado",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"K",1)]),_:1})]),re("div",YS,[C[15]||(C[15]=re("span",{class:"wp:text-muted-foreground"},"Línea 1",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"1",1)]),_:1})]),re("div",ZS,[C[16]||(C[16]=re("span",{class:"wp:text-muted-foreground"},"Línea 2",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"2",1)]),_:1})]),re("div",XS,[C[17]||(C[17]=re("span",{class:"wp:text-muted-foreground"},"Línea 3",-1)),M(f(kr),null,{default:R(()=>[Oe(De(f(n))+"3",1)]),_:1})])])])]),M(f(Mh),null,{default:R(()=>[M(f(ot),{variant:"secondary",onClick:C[4]||(C[4]=I=>r("update:visible",!1))},{default:R(()=>[...C[18]||(C[18]=[Oe("Close",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):$e("",!0)}}),eC=QS,tC=J({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(s2),fe({"data-slot":"scroll-area-scrollbar"},f(r),{class:f(tt)("wp:flex wp:touch-none wp:p-px wp:transition-colors wp:select-none",e.orientation==="vertical"&&"wp:h-full wp:w-2.5 wp:border-l wp:border-l-transparent",e.orientation==="horizontal"&&"wp:h-2.5 wp:flex-col wp:border-t wp:border-t-transparent",t.class)}),{default:R(()=>[M(f(o2),{"data-slot":"scroll-area-thumb",class:"wp:bg-border wp:relative wp:flex-1 wp:rounded-full"})]),_:1},16,["class"]))}}),rC=tC,nC=J({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),z(f(K1),fe({"data-slot":"scroll-area"},f(r),{class:f(tt)("wp:relative",t.class)}),{default:R(()=>[M(f(a2),{"data-slot":"scroll-area-viewport",class:"wp:focus-visible:ring-ring/50 wp:size-full wp:rounded-[inherit] wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:focus-visible:outline-1"},{default:R(()=>[Z(n.$slots,"default")]),_:3}),M(rC),M(f(J1))]),_:3},16,["class"]))}}),Uh=nC,sC={class:"wp:relative wp:my-2"},iC={class:"wp:flex wp:flex-col wp:gap-2"},oC=["onClick"],aC={class:"wp:flex wp:items-center wp:gap-3"},lC={class:"wp:flex wp:flex-col"},cC={class:"wp:text-sm wp:font-medium"},uC={class:"wp:text-[10px] wp:text-muted-foreground"},dC={class:"wp:flex wp:flex-col wp:items-end"},fC={key:0,class:"wp:text-xs wp:font-mono wp:text-muted-foreground"},pC={class:"wp:text-[10px] wp:text-muted-foreground wp:capitalize"},hC={key:0,class:"wp:text-center wp:text-muted-foreground wp:py-8"},gC={key:1,class:"wp:text-center wp:text-muted-foreground wp:py-8"},vC=J({__name:"CallHistoryDialog",props:{visible:{type:Boolean},contacts:{}},emits:["update:visible","call"],setup(e,{emit:t}){const r=e,n=t,s=Rt("webphone"),i=L(""),o=p=>{if(!r.contacts)return p;const g=r.contacts.find(m=>m.number===p);return g?g.name:p},a=W(()=>{if(!i.value)return s.callHistory;const p=i.value.toLowerCase();return s.callHistory.filter(g=>{const m=o(g.number).toLowerCase(),y=g.number.toLowerCase();return m.includes(p)||y.includes(p)})}),l=p=>p===0?"":`${Math.floor(p/60)}:${(p%60).toString().padStart(2,"0")}`,c=p=>p.direction==="incoming"?p.status==="missed"?o_:i_:a_,u=p=>p.status==="missed"?"wp:text-red-500":p.direction==="incoming"?"wp:text-green-500":"wp:text-blue-500",d=p=>{n("update:visible",!1),n("call",p)};return(p,g)=>e.visible?($(),z(f(mc),{key:0,open:e.visible,"onUpdate:open":g[1]||(g[1]=m=>n("update:visible",m))},{default:R(()=>[M(f(wc),{class:"wp:sm:max-w-sm"},{default:R(()=>[M(f(yc),null,{default:R(()=>[M(f(bc),null,{default:R(()=>[...g[2]||(g[2]=[Oe("Call History",-1)])]),_:1})]),_:1}),re("div",sC,[M(f(c_),{class:"wp:absolute wp:left-2 wp:top-2.5 wp:h-4 wp:w-4 wp:text-muted-foreground"}),M(f(gc),{modelValue:i.value,"onUpdate:modelValue":g[0]||(g[0]=m=>i.value=m),placeholder:"Search history...",class:"wp:pl-8"},null,8,["modelValue"])]),M(f(Uh),{class:"wp:h-[60vh] wp:pr-4"},{default:R(()=>[re("div",iC,[($(!0),me(Ne,null,Qt(a.value,m=>($(),me("div",{key:m.id,class:"wp:flex wp:items-center wp:justify-between wp:p-2 wp:rounded-lg wp:hover:bg-accent wp:cursor-pointer wp:transition-colors",onClick:y=>d(m.number)},[re("div",aC,[($(),z(Gs(c(m)),{class:Xe([u(m),"wp:w-4 wp:h-4"])},null,8,["class"])),re("div",lC,[re("span",cC,De(o(m.number)),1),re("span",uC,De(new Date(m.startTime).toLocaleString()),1)])]),re("div",dC,[m.duration>0?($(),me("span",fC,De(l(m.duration)),1)):$e("",!0),re("span",pC,De(m.status),1)])],8,oC))),128)),f(s).callHistory.length===0?($(),me("div",hC," No call history ")):a.value.length===0?($(),me("div",gC," No results found ")):$e("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):$e("",!0)}}),mC=vC,wC={class:"wp:grid wp:gap-4 wp:py-4"},yC={class:"wp:grid wp:gap-2 wp:relative"},bC={class:"wp:relative"},_C={key:0,class:"wp:absolute wp:top-full wp:left-0 wp:right-0 wp:mt-1 wp:bg-popover wp:border wp:rounded-md wp:shadow-lg wp:z-50 wp:max-h-60 wp:overflow-auto"},SC={class:"wp:p-1"},CC=["onClick"],xC={class:"wp:flex wp:flex-col wp:min-w-0 wp:flex-1"},TC={class:"wp:font-medium wp:text-sm wp:truncate"},EC={class:"wp:text-xs wp:text-muted-foreground"},AC=J({__name:"TransferDialog",props:{visible:{type:Boolean},contacts:{default:()=>[]}},emits:["update:visible","transfer"],setup(e,{emit:t}){const r=e,n=t,s=L(""),i=L(!1),o=L(null);ke(()=>r.visible,p=>{p&&(s.value="",i.value=!1)}),ke(s,p=>{i.value=p.length>0&&a.value.length>0});const a=W(()=>{if(!s.value)return r.contacts;const p=s.value.toLowerCase();return r.contacts.filter(g=>g.name.toLowerCase().includes(p)||g.number.includes(p))}),l=p=>{s.value=p.number,i.value=!1},c=()=>{s.value="",i.value=!1,o.value?.focus()},u=p=>{const g=s.value.trim();g&&(n("transfer",g,p),n("update:visible",!1),s.value="",i.value=!1)},d=p=>{p.key==="Enter"&&s.value.trim()?(p.preventDefault(),u("blind")):p.key==="Escape"&&(i.value=!1)};return(p,g)=>e.visible?($(),z(f(mc),{key:0,open:e.visible,"onUpdate:open":g[5]||(g[5]=m=>n("update:visible",m))},{default:R(()=>[M(f(wc),{class:"wp:sm:max-w-md"},{default:R(()=>[M(f(yc),null,{default:R(()=>[M(f(bc),null,{default:R(()=>[...g[6]||(g[6]=[Oe("Transferir Llamada",-1)])]),_:1})]),_:1}),re("div",wC,[re("div",yC,[M(f(As),{for:"transfer-input"},{default:R(()=>[...g[7]||(g[7]=[Oe("Número o Contacto",-1)])]),_:1}),re("div",bC,[M(f(gc),{id:"transfer-input",ref_key:"inputRef",ref:o,modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=m=>s.value=m),type:"text",placeholder:"Escribe un número o busca un contacto...",class:"wp:pr-8",onKeydown:d,onFocus:g[1]||(g[1]=m=>i.value=s.value.length>0&&a.value.length>0),autocomplete:"off"},null,8,["modelValue"]),s.value?($(),z(f(ot),{key:0,variant:"ghost",size:"icon",class:"wp:absolute wp:right-0 wp:top-0 wp:h-full wp:w-8 wp:hover:bg-transparent",onClick:c},{default:R(()=>[M(f(pc),{class:"wp:h-4 wp:w-4"})]),_:1})):$e("",!0)]),i.value&&a.value.length>0?($(),me("div",_C,[M(f(Uh),{class:"wp:max-h-60"},{default:R(()=>[re("div",SC,[($(!0),me(Ne,null,Qt(a.value,m=>($(),me("div",{key:m.number,class:"wp:flex wp:items-center wp:gap-2 wp:p-2 wp:rounded-sm wp:cursor-pointer wp:hover:bg-accent wp:transition-colors",onClick:y=>l(m)},[m.type?($(),me("div",{key:0,class:Xe(f(tt)("wp:flex wp:items-center wp:justify-center wp:w-8 wp:h-8 wp:rounded-full wp:shrink-0",m.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":m.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":m.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400"))},[m.type==="extension"?($(),z(f(kh),{key:0,class:"wp:w-4 wp:h-4"})):m.type==="contact"?($(),z(f(fc),{key:1,class:"wp:w-4 wp:h-4"})):m.type==="voicemail"?($(),z(f(Oh),{key:2,class:"wp:w-4 wp:h-4"})):($(),z(f(Hh),{key:3,class:"wp:w-4 wp:h-4"}))],2)):$e("",!0),re("div",xC,[re("span",TC,De(m.name),1),re("span",EC,De(m.number),1)])],8,CC))),128))])]),_:1})])):$e("",!0),g[8]||(g[8]=re("p",{class:"wp:text-xs wp:text-muted-foreground"}," Presiona Enter para transferir directamente ",-1))])]),M(f(Mh),{class:"wp:flex-col wp:gap-2 sm:wp:flex-row"},{default:R(()=>[M(f(ot),{variant:"secondary",onClick:g[2]||(g[2]=m=>n("update:visible",!1)),class:"wp:w-full sm:wp:w-auto"},{default:R(()=>[...g[9]||(g[9]=[Oe(" Cancelar ",-1)])]),_:1}),M(f(ot),{onClick:g[3]||(g[3]=m=>u("blind")),disabled:!s.value.trim(),variant:"outline",class:"wp:w-full sm:wp:flex-1"},{default:R(()=>[...g[10]||(g[10]=[Oe(" Transferencia Ciega ",-1)])]),_:1},8,["disabled"]),M(f(ot),{onClick:g[4]||(g[4]=m=>u("attended")),disabled:!s.value.trim(),class:"wp:w-full sm:wp:flex-1"},{default:R(()=>[...g[11]||(g[11]=[Oe(" Con Consulta ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"])):$e("",!0)}}),IC=AC,RC=J({__name:"DocumentPip",props:{remoteStream:{},localStream:{},hasVideo:{type:Boolean},remoteNumber:{},isConnected:{type:Boolean},callStatus:{},isMuted:{type:Boolean},isHeld:{type:Boolean},destination:{},isVideo:{type:Boolean},active:{type:Boolean},autoOpenOnBlur:{type:Boolean}},emits:["transfer","update:active","hangup","answer","toggleMute","toggleHold"],setup(e,{expose:t,emit:r}){const n=e,s=r,i=L(!1),o=L(!1),a=L(null),l=L(0),c=L(null);let u=null;We(()=>{i.value="documentPictureInPicture"in window,document.addEventListener("visibilitychange",d)}),kt(()=>{document.removeEventListener("visibilitychange",d),g(),x()});const d=()=>{n.callStatus==="idle"||!i.value||document.hidden&&!o.value&&n.autoOpenOnBlur!==!1&&setTimeout(()=>{document.hidden&&!o.value&&P()},100)},p=()=>{c.value||(l.value=0,c.value=setInterval(()=>{l.value++},1e3))},g=()=>{c.value&&(clearInterval(c.value),c.value=null)},m=T=>{const q=Math.floor(T/60),F=T%60;return`${q.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}`};ke(()=>n.callStatus,(T,q)=>{T==="connected"&&q!=="connected"?p():T==="idle"&&q!=="idle"&&(g(),o.value&&x())},{immediate:!0}),ke(()=>n.isConnected,T=>{!T&&o.value&&(g(),x())}),ke(()=>[n.callStatus,n.isMuted,n.isHeld],()=>{a.value&&(I(a.value.document),b(a.value.document))});const y=W(()=>i.value&&n.isConnected),S={phone:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>',phoneOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" transform="rotate(135 12 12)"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',mic:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',micOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="2" x2="22" y1="2" y2="22"/><path d="M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"/><path d="M5 10v2a7 7 0 0 0 12 5"/><path d="M15 9.34V5a3 3 0 0 0-5.68-1.33"/><path d="M9 9v3a3 3 0 0 0 5.12 2.12"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',pause:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/></svg>',play:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3"/></svg>',transfer:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 3 4 4-4 4"/><path d="M20 7H4"/><path d="m8 21-4-4 4-4"/><path d="M4 17h16"/></svg>',video:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'},v=T=>{const q=T.createElement("style");q.textContent=`
|
|
77
77
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
78
78
|
|
|
79
79
|
body {
|