vendor: 3,676 bytes, lines 1-4
1import{$ as e,E as t,O as n,it as r,l as i,r as a,vt as o,z as s}from"./DGacKI6N.js";var c=Symbol(`headlessui.useid`),l=0,u=e??function(){return n(c,()=>`${++l}`)()};function d(e){if(e==null||e.value==null)return null;let t=e.value.$el??e.value;return t instanceof Node?t:null}function f(e,t,...n){if(e in t){let r=t[e];return typeof r==`function`?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(`, `)}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,f),r}function p(e,t){if(e)return e;let n=t??`button`;if(typeof n==`string`&&n.toLowerCase()===`button`)return`button`}function m(e,t){let n=o(p(e.value.type,e.value.as));return s(()=>{n.value=p(e.value.type,e.value.as)}),r(()=>{var e;n.value||d(t)&&d(t)instanceof HTMLButtonElement&&!((e=d(t))!=null&&e.hasAttribute(`type`))&&(n.value=`button`)}),n}var h=(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))(h||{}),g=(e=>(e[e.None=0]=`None`,e[e.RenderStrategy=1]=`RenderStrategy`,e[e.Static=2]=`Static`,e))(g||{}),_=(e=>(e[e.Unmount=0]=`Unmount`,e[e.Hidden=1]=`Hidden`,e))(_||{});function v({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...i}){var a;let o=x(r,n),s=Object.assign(i,{props:o});return e||t&2&&o.static?y(s):t&1?f((a=o.unmount)==null||a?0:1,{0(){return null},1(){return y({...i,props:{...o,hidden:!0,style:{display:`none`}}})}}):y(s)}function y({props:e,attrs:n,slots:r,slot:a,name:o}){let{as:s,...c}=C(e,[`unmount`,`static`]),l=r.default?.call(r,a),u={};if(a){let e=!1,t=[];for(let[n,r]of Object.entries(a))typeof r==`boolean`&&(e=!0),r===!0&&t.push(n);e&&(u[`data-headlessui-state`]=t.join(` `))}if(s===`template`){if(l=b(l??[]),Object.keys(c).length>0||Object.keys(n).length>0){let[e,...t]=l??[];if(!w(e)||t.length>0)throw Error([`Passing props on "template"!`,``,`The current component <${o} /> is rendering a "template".`,`However we need to passthrough the following props:`,Object.keys(c).concat(Object.keys(n)).map(e=>e.trim()).filter((e,t,n)=>n.indexOf(e)===t).sort((e,t)=>e.localeCompare(t)).map(e=>` - ${e}`).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(e=>` - ${e}`).join(` 3`)].join(` 4`));let r=x(e.props??{},c,u),a=i(e,r,!0);for(let e in r)e.startsWith(`on`)&&(a.props||={},a.props[e]=r[e]);return a}return Array.isArray(l)&&l.length===1?l[0]:l}return t(s,Object.assign({},c,u),{default:()=>l})}function b(e){return e.flatMap(e=>e.type===a?b(e.children):[e])}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 e in r)e.startsWith(`on`)&&typeof r[e]==`function`?(n[e]??(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t[`aria-disabled`])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let e in n)Object.assign(t,{[e](t,...r){let i=n[e];for(let e of i){if(t instanceof Event&&t.defaultPrevented)return;e(t,...r)}}});return t}function S(e){let t=Object.assign({},e);for(let e in t)t[e]===void 0&&delete t[e];return t}function C(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function w(e){return e==null?!1:typeof e.type==`string`||typeof e.type==`object`||typeof e.type==`function`}export{h as a,d as c,C as i,u as l,S as n,m as o,g as r,f as s,v as t};
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.