PageSourceSearch

https://scribvet.com/_nuxt/BAANxCAG.js

js scribvet.com collected 2026-10-04 21:45:10 UTC 3,479 bytes, 4 lines download raw bytes

1import{w as A,E as $,B as k,aG as S,y as P,F as T}from"./qqT0HmeE.js";var b;let w=Symbol("headlessui.useid"),D=0;const F=(b=$)!=null?b:function(){return k(w,()=>`${++D}`)()};function L(e){A(w,e)}function W(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 j(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let o=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(o,j),o}var U=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(U||{}),H=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(H||{});function C({visible:e=!0,features:t=0,ourProps:n,theirProps:o,...r}){var s;let i=O(o,n),u=Object.assign(r,{props:i});if(e||t&2&&i.static)return y(u);if(t&1){let f=(s=i.unmount)==null||s?0:1;return j(f,{0(){return null},1(){return y({...r,props:{...i,hidden:!0,style:{display:"none"}}})}})}return y(u)}function y({props:e,attrs:t,slots:n,slot:o,name:r}){var s,i;let{as:u,...f}=N(e,["unmount","static"]),l=(s=n.default)==null?void 0:s.call(n,o),m={};if(o){let c=!1,h=[];for(let[d,p]of Object.entries(o))typeof p=="boolean"&&(c=!0),p===!0&&h.push(d);c&&(m["data-headlessui-state"]=h.join(" "))}if(u==="template"){if(l=v(l??[]),Object.keys(f).length>0||Object.keys(t).length>0){let[c,...h]=l??[];if(!R(c)||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(a=>a.trim()).filter((a,g,E)=>E.indexOf(a)===g).sort((a,g)=>a.localeCompare(g)).map(a=>`  - ${a}`).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(a=>`  - ${a}`).join(`
3`)].join(`
4`));let d=O((i=c.props)!=null?i:{},f,m),p=S(c,d,!0);for(let a in d)a.startsWith("on")&&(p.props||(p.props={}),p.props[a]=d[a]);return p}return Array.isArray(l)&&l.length===1?l[0]:l}return P(u,Object.assign({},f,m),{default:()=>l})}function v(e){return e.flatMap(t=>t.type===T?v(t.children):[t])}function O(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let o of e)for(let r in o)r.startsWith("on")&&typeof o[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(o[r])):t[r]=o[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(t,{[o](r,...s){let i=n[o];for(let u of i){if(r instanceof Event&&r.defaultPrevented)return;u(r,...s)}}});return t}function G(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function N(e,t=[]){let n=Object.assign({},e);for(let o of t)o in n&&delete n[o];return n}function R(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var B=(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))(B||{});export{C as A,G as E,U as N,H as S,N as T,B as a,F as i,W as o,L as s,j 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.