PageSourceSearch

https://headly.fly.dev/assets/keyboard-CG_ppj-g.js

js headly.fly.dev collected 2026-10-03 08:26:46 UTC 6,679 bytes, 5 lines download raw bytes

1import{r as l,R as y}from"./jsx-runtime-14KtCSxy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="df55338e-a6b5-4b3d-a00e-f32ef255cf27",e._sentryDebugIdIdentifier="sentry-dbid-df55338e-a6b5-4b3d-a00e-f32ef255cf27")}catch{}})();var I=Object.defineProperty,H=(e,t,n)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t,n)=>(H(e,typeof t!="symbol"?t+"":t,n),n);let T=class{constructor(){w(this,"current",this.detect()),w(this,"handoffState","pending"),w(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",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"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},p=new T,b=(e,t)=>{p.isServer?l.useEffect(e,t):l.useLayoutEffect(e,t)};function P(e){let t=l.useRef(e);return b(()=>{t.current=e},[e]),t}let R=function(e){let t=P(e);return y.useCallback((...n)=>t.current(...n),[t])};function k(){let[e,t]=l.useState(p.isHandoffComplete);return e&&p.isHandoffComplete===!1&&t(!1),l.useEffect(()=>{e!==!0&&t(!0)},[e]),l.useEffect(()=>p.handoff(),[]),e}var j;let W=(j=y.useId)!=null?j:function(){let e=k(),[t,n]=y.useState(e?()=>p.nextId():null);return b(()=>{t===null&&n(p.nextId())},[t]),t!=null?""+t:void 0};function C(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,C),r}function X(e){return p.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function O(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Y(e,t){let[n,r]=l.useState(()=>O(e));return b(()=>{r(O(e))},[e.type,e.as]),b(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let A=Symbol();function q(e,t=!0){return Object.assign(e,{[A]:t})}function z(...e){let t=l.useRef(e);l.useEffect(()=>{t.current=e},[e]);let n=R(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[A]))?void 0:n}function N(...e){return e.filter(Boolean).join(" ")}var L=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(L||{}),x=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(x||{});function G({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:c=!0,name:u}){let i=D(t,e);if(c)return h(i,n,r,u);let m=o??0;if(m&2){let{static:a=!1,...d}=i;if(a)return h(d,n,r,u)}if(m&1){let{unmount:a=!0,...d}=i;return C(a?0:1,{0(){return null},1(){return h({...d,hidden:!0,style:{display:"none"}},n,r,u)}})}return h(i,n,r,u)}function h(e,t={},n,r){let{as:o=n,children:c,refName:u="ref",...i}=E(e,["unmount","static"]),m=e.ref!==void 0?{[u]:e.ref}:{},a=typeof c=="function"?c(t):c;"className"in i&&i.className&&typeof i.className=="function"&&(i.className=i.className(t));let d={};if(t){let s=!1,g=[];for(let[v,f]of Object.entries(t))typeof f=="boolean"&&(s=!0),f===!0&&g.push(v);s&&(d["data-headlessui-state"]=g.join(" "))}if(o===l.Fragment&&Object.keys($(i)).length>0){if(!l.isValidElement(a)||Array.isArray(a)&&a.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(i).map(f=>`  - ${f}`).join(`
2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>`  - ${f}`).join(`
3`)].join(`
4`));let s=a.props,g=typeof(s==null?void 0:s.className)=="function"?(...f)=>N(s==null?void 0:s.className(...f),i.className):N(s==null?void 0:s.className,i.className),v=g?{className:g}:{};return l.cloneElement(a,Object.assign({},D(a.props,$(E(i,["ref"]))),d,m,F(a.ref,m.ref),v))}return l.createElement(o,Object.assign({},E(i,["ref"]),o!==l.Fragment&&m,o!==l.Fragment&&d),a)}function F(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function D(...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,...c){let u=n[r];for(let i of u){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;i(o,...c)}}});return t}function J(e){var t;return Object.assign(l.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function $(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function E(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function K(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&U(n)?!1:r}function U(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let S=l.createContext(null);S.displayName="OpenClosedContext";var B=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(B||{});function Q(){return l.useContext(S)}function Z({value:e,children:t}){return y.createElement(S.Provider,{value:e},t)}var M=(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))(M||{});export{Q as C,J as D,W as I,L as S,q as T,G as X,M as a,b,Z as c,B as d,X as e,P as f,p as g,N as h,x as j,k as l,R as o,K as r,Y as s,C as u,z as y};
5//# sourceMappingURL=keyboard-CG_ppj-g.js.map

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.