PageSourceSearch

https://app.overai.com/assets/Modal-DaBiovH7.js

js overai.com collected 2026-10-09 04:42:28 UTC 1,434 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-DiVRNtpo.js";import{t as n}from"./jsx-runtime-BdxMnOeJ.js";import{r}from"./dist-KbjI9FdB.js";import{a as i,c as a,d as o,f as s,m as c,n as l,r as u,s as d,t as f}from"./zIndex-CNpU3EMz.js";import{n as p}from"./useOverlayCloseListener-D4LdsyHv.js";var m=e(t(),1),h=n(),g=e=>{let t=e.onClose,{disableScope:n,enableScope:g}=r(),_=(0,m.useCallback)(()=>{e.isOpen&&t(`overlay-opened`)},[e.isOpen,t]);p(_),(0,m.useEffect)(()=>{if(e.isOpen&&!e.disableGlobalHotkeys)return n(`*`),()=>{g(`*`)}},[e.isOpen,e.disableGlobalHotkeys,n,g]);let{refs:v,floatingStyles:y,context:b}=a({open:e.isOpen,onOpenChange:(e,n,r)=>{e||t(r)},strategy:`fixed`}),{setFloating:x}=l(v),S={...y,zIndex:e.zIndex??f.MODAL,inset:0,margin:`auto`,width:`fit-content`,height:`fit-content`,maxWidth:`90vw`,maxHeight:`90vh`,overflow:`auto`,...e.style},C=d(b),w=c(b),{getFloatingProps:T}=s([C,w]),E=o();return e.isOpen?(0,h.jsxs)(i,{children:[(0,h.jsx)(`div`,{className:`fixed bottom-0 left-0 right-0 top-0 flex h-screen w-screen items-center justify-center bg-black/50`,style:{zIndex:(e.zIndex??f.MODAL)-1},"data-testid":`modal-backdrop`}),(0,h.jsx)(u,{context:b,modal:!0,children:(0,h.jsx)(`div`,{ref:x,style:S,"aria-labelledby":E,...T(),children:(0,h.jsx)(`div`,{className:`max-h-[90dvh] max-w-[90dvw] overflow-auto rounded-lg bg-base-100 shadow-lg`,children:e.children})})})]}):null};export{g 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.