PageSourceSearch

https://recork.org/_app/immutable/chunks/C7eVKYlM.js

js recork.org collected 2026-09-25 21:06:02 UTC 2,691 bytes, 2 lines download raw bytes

1import"./CWj6FrbW.js";import"./69_IOA4Y.js";import{p as B,o as F,A as O,x as P,y as j,h as q,i as I,a as h,b as K,B as b,l as e,k as f,m as u,c as y,r as g,t as S,z as W,q as _,f as G}from"./7a2fV5I9.js";import{i as H}from"./Dw-yaK-_.js";import{s as J}from"./CiyEWm25.js";import{t as x,f as Q}from"./SSgOjjKL.js";import{s as k}from"./3tOhmI7k.js";import{p as c,b as R}from"./DPBuKmzL.js";import{i as U}from"./CWFN-V6k.js";import{c as V,f as X}from"./Bre5lY_g.js";var Y=G('<div aria-modal="true" role="dialog" style="scrollbar-gutter: stable;"><div><!></div></div>');function ne(E,l){B(l,!1);let s=c(l,"show",12,!0),v=c(l,"size",8,"md"),C=c(l,"containerClassName",8,"p-3"),L=c(l,"className",8,"bg-white dark:bg-gray-900 rounded-4xl"),o=u(null),a=u(null);const N=t=>t==="full"?"w-full":t==="xs"?"w-[16rem]":t==="sm"?"w-[30rem]":t==="md"?"w-[42rem]":t==="lg"?"w-[56rem]":t==="xl"?"w-[70rem]":t==="2xl"?"w-[84rem]":t==="3xl"?"w-[100rem]":"w-[56rem]",p=t=>{t.key==="Escape"&&M()&&s(!1)},M=()=>{const t=document.getElementsByClassName("modal");return t.length&&t[t.length-1]===e(o)};F(()=>{});let n=u(),d=u();O(()=>{s(!1),e(a)&&e(a).deactivate(),e(o)&&e(o).parentNode===document.body&&document.body.removeChild(e(o))}),P(()=>(b(s()),e(o),e(a),e(n),e(d)),()=>{s()&&e(o)?(document.body.appendChild(e(o)),f(a,V(e(o),{allowOutsideClick:t=>t.target.closest("[data-sonner-toast]")!==null||t.target.closest(".modal-content")===null})),e(a).activate(),f(n,t=>{e(a)&&e(o)&&!e(o).contains(t.target)&&e(a).pause()}),f(d,()=>{e(a)&&e(a).unpause()}),document.addEventListener("pointerdown",e(n),!0),e(o).addEventListener("focusin",e(d)),window.addEventListener("keydown",p),document.body.style.overflow="hidden"):e(o)&&(e(a)&&(e(a).deactivate(),f(a,null)),e(n)&&document.removeEventListener("pointerdown",e(n),!0),e(d)&&e(o).removeEventListener("focusin",e(d)),window.removeEventListener("keydown",p),document.body.removeChild(e(o)),document.body.style.overflow="unset")}),j(),U();var w=q(),T=I(w);{var D=t=>{var r=Y(),i=y(r),A=y(i);J(A,l,"default",{},null),g(i),g(r),R(r,m=>f(o,m),()=>e(o)),S(m=>{k(r,1,`modal fixed top-0 right-0 left-0 bottom-0 bg-black/45 dark:bg-black/60 w-full h-screen max-h-[100dvh] ${C()??""}  flex justify-center z-9999 overflow-y-auto overscroll-contain`,"svelte-1vr5p4p"),k(i,1,`m-auto max-w-full ${m??""} ${v()!=="full"?"mx-2":""} shadow-3xl min-h-fit scrollbar-hidden ${L()??""} border border-white dark:border-gray-850`,"svelte-1vr5p4p")},[()=>(b(v()),W(()=>N(v())))]),x(1,i,()=>Q),_("mousedown",i,m=>{m.stopPropagation()}),x(1,r,()=>X,()=>({duration:10})),_("mousedown",r,()=>{s(!1)}),h(t,r)};H(T,t=>{s()&&t(D)})}h(E,w),K()}export{ne as M};
2//# sourceMappingURL=C7eVKYlM.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.