PageSourceSearch

https://www.solid-ui.com/_build/assets/5OEKFZ5A-BFJ72VVY.js

js solid-ui.com collected 2026-09-24 10:38:24 UTC 3,451 bytes, 1 lines download raw bytes

1import{d as w,E as k,q as x,j as f,s as I,c as P}from"./index-DvQraQr3.js";import{v as L,f as E,A as B,Q as F,o as _,b as p,m as K,G as M,H as N}from"./web-Daoi1TEa.js";import{b as T}from"./R5675YMU-DknHYXiZ.js";import{D as A,l as o}from"./3NI6FTA2-CQeuLCvd.js";import{P as S}from"./5WXHJDCZ-9j09M0KL.js";import{m as H}from"./index-BNK4pR0r.js";function R(r){const t=i=>{i.key===k.Escape&&r.onEscapeKeyDown?.(i)};L(()=>{if(T(r.isDisabled))return;const i=r.ownerDocument?.()??w();i.addEventListener("keydown",t),E(()=>{i.removeEventListener("keydown",t)})})}var g="interactOutside.pointerDownOutside",b="interactOutside.focusOutside";function U(r,t){let i,s=x;const c=()=>w(t()),u=e=>r.onPointerDownOutside?.(e),m=e=>r.onFocusOutside?.(e),v=e=>r.onInteractOutside?.(e),y=e=>{const n=e.target;return!(n instanceof HTMLElement)||n.closest(`[${A}]`)||!f(c(),n)||f(t(),n)?!1:!r.shouldExcludeElement?.(n)},D=e=>{function n(){const a=t(),d=e.target;if(!a||!d||!y(e))return;const O=P([u,v]);d.addEventListener(g,O,{once:!0});const C=new CustomEvent(g,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:e.button===2||I(e)&&e.button===0}});d.dispatchEvent(C)}e.pointerType==="touch"?(c().removeEventListener("click",n),s=n,c().addEventListener("click",n,{once:!0})):n()},l=e=>{const n=t(),a=e.target;if(!n||!a||!y(e))return;const d=P([m,v]);a.addEventListener(b,d,{once:!0});const O=new CustomEvent(b,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:!1}});a.dispatchEvent(O)};L(()=>{T(r.isDisabled)||(i=window.setTimeout(()=>{c().addEventListener("pointerdown",D,!0)},0),c().addEventListener("focusin",l,!0),E(()=>{window.clearTimeout(i),c().removeEventListener("click",s),c().removeEventListener("pointerdown",D,!0),c().removeEventListener("focusin",l,!0)}))})}var h=M();function V(){return N(h)}function Y(r){let t;const i=V(),[s,c]=B(r,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),u=new Set([]),m=e=>{u.add(e);const n=i?.registerNestedLayer(e);return()=>{u.delete(e),n?.()}};U({shouldExcludeElement:e=>t?s.excludedElements?.some(n=>f(n(),e))||[...u].some(n=>f(n,e)):!1,onPointerDownOutside:e=>{!t||o.isBelowPointerBlockingLayer(t)||!s.bypassTopMostLayerCheck&&!o.isTopMostLayer(t)||(s.onPointerDownOutside?.(e),s.onInteractOutside?.(e),e.defaultPrevented||s.onDismiss?.())},onFocusOutside:e=>{s.onFocusOutside?.(e),s.onInteractOutside?.(e),e.defaultPrevented||s.onDismiss?.()}},()=>t),R({ownerDocument:()=>w(t),onEscapeKeyDown:e=>{!t||!o.isTopMostLayer(t)||(s.onEscapeKeyDown?.(e),!e.defaultPrevented&&s.onDismiss&&(e.preventDefault(),s.onDismiss()))}}),F(()=>{if(!t)return;o.addLayer({node:t,isPointerBlocking:s.disableOutsidePointerEvents,dismiss:s.onDismiss});const e=i?.registerNestedLayer(t);o.assignPointerEventToLayers(),o.disableBodyPointerEvents(t),E(()=>{t&&(o.removeLayer(t),e?.(),o.assignPointerEventToLayers(),o.restoreBodyPointerEvents(t))})}),L(_([()=>t,()=>s.disableOutsidePointerEvents],([e,n])=>{if(!e)return;const a=o.find(e);a&&a.isPointerBlocking!==n&&(a.isPointerBlocking=n,o.assignPointerEventToLayers()),n&&o.disableBodyPointerEvents(e),E(()=>{o.restoreBodyPointerEvents(e)})},{defer:!0}));const l={registerNestedLayer:m};return p(h.Provider,{value:l,get children(){return p(S,K({as:"div",ref(e){var n=H(a=>t=a,s.ref);typeof n=="function"&&n(e)}},c))}})}export{Y as D,U as c};

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.