PageSourceSearch

https://arpege.fr/_nuxt/use-outside-click.4209bc90.js

js arpege.fr collected 2026-09-29 21:39:04 UTC 8,004 bytes, 4 lines download raw bytes

1import{ad as D,G as M,F as k,J as C,C as H,y as A,D as U,I as N,L as R,z as _}from"./entry.55d62c20.js";function E(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,E),r}var G=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(G||{}),W=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(W||{});function ie({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var l;let i=x(r,n),u=Object.assign(o,{props:i});if(e||t&2&&i.static)return w(u);if(t&1){let v=(l=i.unmount)==null||l?0:1;return E(v,{[0](){return null},[1](){return w({...o,props:{...i,hidden:!0,style:{display:"none"}}})}})}return w(u)}function w({props:e,attrs:t,slots:n,slot:r,name:o}){var l,i;let{as:u,...v}=B(e,["unmount","static"]),a=(l=n.default)==null?void 0:l.call(n,r),s={};if(r){let p=!1,m=[];for(let[f,c]of Object.entries(r))typeof c=="boolean"&&(p=!0),c===!0&&m.push(f);p&&(s["data-headlessui-state"]=m.join(" "))}if(u==="template"){if(a=S(a??[]),Object.keys(v).length>0||Object.keys(t).length>0){let[p,...m]=a??[];if(!X(p)||m.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(v).concat(Object.keys(t)).map(d=>d.trim()).filter((d,b,L)=>L.indexOf(d)===b).sort((d,b)=>d.localeCompare(b)).map(d=>`  - ${d}`).join(`
2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>`  - ${d}`).join(`
3`)].join(`
4`));let f=x((i=p.props)!=null?i:{},v),c=D(p,f);for(let d in f)d.startsWith("on")&&(c.props||(c.props={}),c.props[d]=f[d]);return c}return Array.isArray(a)&&a.length===1?a[0]:a}return M(u,Object.assign({},v,s),{default:()=>a})}function S(e){return e.flatMap(t=>t.type===k?S(t.children):[t])}function x(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...l){let i=n[r];for(let u of i){if(o instanceof Event&&o.defaultPrevented)return;u(o,...l)}}});return t}function ae(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function X(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let q=0;function z(){return++q}function se(){return z()}var J=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(J||{});function h(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let j=Symbol("Context");var K=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(K||{});function ce(){return V()!==null}function V(){return C(j,null)}function fe(e){H(j,e)}function O(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function de(e,t){let n=A(O(e.value.type,e.value.as));return U(()=>{n.value=O(e.value.type,e.value.as)}),N(()=>{var r;n.value||!h(t)||h(t)instanceof HTMLButtonElement&&!((r=h(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}class Y{constructor(){this.current=this.detect(),this.currentId=0}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>
4"u"?"server":"client"}}let P=new Y;function $(e){if(P.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=h(e);if(t)return t.ownerDocument}return document}let g=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Q=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Q||{}),Z=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Z||{}),ee=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ee||{});function T(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(g)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var F=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(F||{});function I(e,t=0){var n;return e===((n=$(e))==null?void 0:n.body)?!1:E(t,{[0](){return e.matches(g)},[1](){let r=e;for(;r!==null;){if(r.matches(g))return!0;r=r.parentElement}return!1}})}function pe(e){let t=$(e);R(()=>{t&&!I(t.activeElement,0)&&te(e)})}function te(e){e==null||e.focus({preventScroll:!0})}let ne=["textarea","input"].join(",");function re(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,ne))!=null?n:!1}function oe(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),l=t(r);if(o===null||l===null)return 0;let i=o.compareDocumentPosition(l);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ve(e,t){return le(T(),t,{relativeTo:e})}function le(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var l;let i=(l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?l:document,u=Array.isArray(e)?n?oe(e):e:T(e);o.length>0&&u.length>1&&(u=u.filter(c=>!o.includes(c))),r=r??i.activeElement;let v=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,u.indexOf(r))-1;if(t&4)return Math.max(0,u.indexOf(r))+1;if(t&8)return u.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=t&32?{preventScroll:!0}:{},p=0,m=u.length,f;do{if(p>=m||p+m<=0)return 0;let c=a+p;if(t&16)c=(c+m)%m;else{if(c<0)return 3;if(c>=m)return 1}f=u[c],f==null||f.focus(s),p+=v}while(f!==i.activeElement);return t&6&&re(f)&&f.select(),f.hasAttribute("tabindex")||f.setAttribute("tabindex","0"),2}function y(e,t,n){P.isServer||N(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function me(e,t,n=_(()=>!0)){function r(l,i){if(!n.value||l.defaultPrevented)return;let u=i(l);if(u===null||!u.getRootNode().contains(u))return;let v=function a(s){return typeof s=="function"?a(s()):Array.isArray(s)||s instanceof Set?s:[s]}(e);for(let a of v){if(a===null)continue;let s=a instanceof HTMLElement?a:h(a);if(s!=null&&s.contains(u)||l.composed&&l.composedPath().includes(s))return}return!I(u,F.Loose)&&u.tabIndex!==-1&&l.preventDefault(),t(l,u)}let o=A(null);y("mousedown",l=>{var i,u;n.value&&(o.value=((u=(i=l.composedPath)==null?void 0:i.call(l))==null?void 0:u[0])||l.target)},!0),y("click",l=>{!o.value||(r(l,()=>o.value),o.value=null)},!0),y("blur",l=>r(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}export{ce as C,ve as D,F,ie as H,oe as I,ae as K,G as N,le as O,I as S,B as T,J as a,de as b,fe as c,te as d,Q as e,Z as f,W as g,K as l,$ as m,P as n,h as o,V as p,se as t,E as u,pe as v,me as y};

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