{"version":3,"file":"open-closed-BODW85U4.js","sources":["../../../node_modules/@headlessui/vue/dist/utils/platform.js","../../../node_modules/@headlessui/vue/dist/hooks/use-document-event.js","../../../node_modules/@headlessui/vue/dist/hooks/use-window-event.js","../../../node_modules/@headlessui/vue/dist/hooks/use-outside-click.js","../../../node_modules/@headlessui/vue/dist/internal/open-closed.js"],"sourcesContent":["function t(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return/Android/gi.test(window.navigator.userAgent)}function n(){return t()||i()}export{i as isAndroid,t as isIOS,n as isMobile};\n","import{watchEffect as r}from\"vue\";import{env as m}from'../utils/env.js';function u(e,t,n){m.isServer||r(o=>{document.addEventListener(e,t,n),o(()=>document.removeEventListener(e,t,n))})}export{u as useDocumentEvent};\n","import{watchEffect as i}from\"vue\";import{env as r}from'../utils/env.js';function w(e,n,t){r.isServer||i(o=>{window.addEventListener(e,n,t),o(()=>window.removeEventListener(e,n,t))})}export{w as useWindowEvent};\n","import{computed as s,ref as E}from\"vue\";import{dom as p}from'../utils/dom.js';import{FocusableMode as d,isFocusableElement as C}from'../utils/focus-management.js';import{isMobile as T}from'../utils/platform.js';import{useDocumentEvent as i}from'./use-document-event.js';import{useWindowEvent as M}from'./use-window-event.js';function w(f,m,l=s(()=>!0)){function a(e,r){if(!l.value||e.defaultPrevented)return;let t=r(e);if(t===null||!t.getRootNode().contains(t))return;let c=function o(n){return typeof n==\"function\"?o(n()):Array.isArray(n)||n instanceof Set?n:[n]}(f);for(let o of c){if(o===null)continue;let n=o instanceof HTMLElement?o:p(o);if(n!=null&&n.contains(t)||e.composed&&e.composedPath().includes(n))return}return!C(t,d.Loose)&&t.tabIndex!==-1&&e.preventDefault(),m(e,t)}let u=E(null);i(\"pointerdown\",e=>{var r,t;l.value&&(u.value=((t=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:t[0])||e.target)},!0),i(\"mousedown\",e=>{var r,t;l.value&&(u.value=((t=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:t[0])||e.target)},!0),i(\"click\",e=>{T()||u.value&&(a(e,()=>u.value),u.value=null)},!0),i(\"touchend\",e=>a(e,()=>e.target instanceof HTMLElement?e.target:null),!0),M(\"blur\",e=>a(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}export{w as useOutsideClick};\n","import{inject as p,provide as r}from\"vue\";let n=Symbol(\"Context\");var i=(e=>(e[e.Open=1]=\"Open\",e[e.Closed=2]=\"Closed\",e[e.Closing=4]=\"Closing\",e[e.Opening=8]=\"Opening\",e))(i||{});function s(){return l()!==null}function l(){return p(n,null)}function t(o){r(n,o)}export{i as State,s as hasOpenClosed,l as useOpenClosed,t as useOpenClosedProvider};\n"],"names":["t","test","window","navigator","platform","maxTouchPoints","n","userAgent","u","e","c","isServer","r","o","document","addEventListener","removeEventListener","w","i","f","m","l","s","a","value","defaultPrevented","getRootNode","contains","Array","isArray","Set","HTMLElement","p","composed","composedPath","includes","C","d","Loose","tabIndex","preventDefault","E","call","target","n$1","M","activeElement","HTMLIFrameElement","Symbol","Open","Closed","Closing","Opening"],"mappings":"oIAAA,SAASA,IAAI,MAAM,WAAWC,KAAKC,OAAOC,UAAUC,WAAW,QAAQH,KAAKC,OAAOC,UAAUC,WAAWF,OAAOC,UAAUE,eAAe,CAAC,CAAiE,SAASC,IAAWN,OAAAA,KAAjE,YAAYC,KAAKC,OAAOC,UAAUI,UAAuC,CCA9J,SAASC,EAAEC,EAAET,EAAEM,GAAKI,EAAAC,UAAUC,GAAEC,IAAIC,SAASC,iBAAiBN,EAAET,EAAEM,GAAGO,GAAE,IAAIC,SAASE,oBAAoBP,EAAET,EAAEM,IAAE,GAAG,CCAjH,SAASW,EAAER,EAAEH,EAAEN,GAAKU,EAAAC,UAAUO,GAAEL,IAAIX,OAAOa,iBAAiBN,EAAEH,EAAEN,GAAGa,GAAE,IAAIX,OAAOc,oBAAoBP,EAAEH,EAAEN,IAAE,GA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