PageSourceSearch

https://xmacna.ai/_nuxt/BclhCOHB.js

js xmacna.ai collected 2026-10-05 13:23:23 UTC 3,987 bytes, 4 lines download raw bytes

1import{a8 as I,a3 as j,a4 as O,b8 as N,a2 as P,F as T}from"./Bcc8-a-q.js";var g;let $=Symbol("headlessui.useid"),x=0;const z=(g=I)!=null?g:function(){return j($,()=>`${++x}`)()};function B(e){O($,e)}function D(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function w(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let l=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,w),l}var A=Object.defineProperty,H=(e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t,n)=>(H(e,typeof t!="symbol"?t+"":t,n),n);let R=class{constructor(){v(this,"current",this.detect()),v(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>"u"?"server":"client"}},J=new R;var F=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(F||{}),U=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(U||{});function K({visible:e=!0,features:t=0,ourProps:n,theirProps:l,...r}){var a;let s=k(l,n),u=Object.assign(r,{props:s});if(e||t&2&&s.static)return m(u);if(t&1){let f=(a=s.unmount)==null||a?0:1;return w(f,{0(){return null},1(){return m({...r,props:{...s,hidden:!0,style:{display:"none"}}})}})}return m(u)}function m({props:e,attrs:t,slots:n,slot:l,name:r}){var a,s;let{as:u,...f}=W(e,["unmount","static"]),o=(a=n.default)==null?void 0:a.call(n,l),y={};if(l){let d=!1,h=[];for(let[p,c]of Object.entries(l))typeof c=="boolean"&&(d=!0),c===!0&&h.push(p);d&&(y["data-headlessui-state"]=h.join(" "))}if(u==="template"){if(o=S(o??[]),Object.keys(f).length>0||Object.keys(t).length>0){let[d,...h]=o??[];if(!M(d)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(t)).map(i=>i.trim()).filter((i,b,E)=>E.indexOf(i)===b).sort((i,b)=>i.localeCompare(b)).map(i=>`  - ${i}`).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(i=>`  - ${i}`).join(`
3`)].join(`
4`));let p=k((s=d.props)!=null?s:{},f,y),c=N(d,p,!0);for(let i in p)i.startsWith("on")&&(c.props||(c.props={}),c.props[i]=p[i]);return c}return Array.isArray(o)&&o.length===1?o[0]:o}return P(u,Object.assign({},f,y),{default:()=>o})}function S(e){return e.flatMap(t=>t.type===T?S(t.children):[t])}function k(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let l of e)for(let r in l)r.startsWith("on")&&typeof l[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(l[r])):t[r]=l[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(l=>[l,void 0])));for(let l in n)Object.assign(t,{[l](r,...a){let s=n[l];for(let u of s){if(r instanceof Event&&r.defaultPrevented)return;u(r,...a)}}});return t}function L(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function W(e,t=[]){let n=Object.assign({},e);for(let l of t)l in n&&delete n[l];return n}function M(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let C=Symbol("Context");var V=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(V||{});function Q(){return Y()!==null}function Y(){return j(C,null)}function X(e){O(C,e)}export{K as A,L as E,F as N,U as S,W as T,V as a,Q as b,J as c,z as i,Y as l,D as o,B as s,X as t,w as u};

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