PageSourceSearch

https://soliton-sh.de/build/assets/Modal-GNBLqroo.js

js soliton-sh.de collected 2026-10-09 01:39:11 UTC 2,161 bytes, 1 lines download raw bytes

1import{r as i,s as h,p as x,I as g,D as b,c as k,o as B,a as t,d as m,f as d,k as u,z as f,T as y,n as C,y as E,e as z}from"./app-DTl5qutJ.js";const S={class:"fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50","scroll-region":""},M={__name:"Modal",props:{show:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},closeable:{type:Boolean,default:!0}},emits:["close"],setup(o,{emit:v}){const e=o,w=v,l=i(),n=i(e.show);h(()=>e.show,()=>{var s;e.show?(document.body.style.overflow="hidden",n.value=!0,(s=l.value)==null||s.showModal()):(document.body.style.overflow=null,setTimeout(()=>{var a;(a=l.value)==null||a.close(),n.value=!1},200))});const r=()=>{e.closeable&&w("close")},c=s=>{s.key==="Escape"&&e.show&&r()};x(()=>document.addEventListener("keydown",c)),g(()=>{document.removeEventListener("keydown",c),document.body.style.overflow=null});const p=b(()=>({sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"})[e.maxWidth]);return(s,a)=>(B(),k("dialog",{class:"z-50 m-0 min-h-full min-w-full overflow-y-auto bg-transparent backdrop:bg-transparent",ref_key:"dialog",ref:l},[t("div",S,[m(y,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:d(()=>[u(t("div",{class:"fixed inset-0 transform transition-all",onClick:r},a[0]||(a[0]=[t("div",{class:"absolute inset-0 bg-gray-500 opacity-75"},null,-1)]),512),[[f,o.show]])]),_:1}),m(y,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 translate-y-0 sm:scale-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:d(()=>[u(t("div",{class:C(["mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto",p.value])},[n.value?E(s.$slots,"default",{key:0}):z("",!0)],2),[[f,o.show]])]),_:3})])],512))}};export{M as default};

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.