1import{_ as p}from"./nfD8S0Gd.js";import{d as f,r as h,C as x,f as w,c as v,j as a,E as l,p as b,i as y,k as g,g as n,W as k,X as z,o as r}from"#entry";const _={class:"@container relative"},N=f({__name:"Modal",props:{showCloseButton:{type:Boolean,default:!0},width:{default:600},opened:{type:Boolean,default:!1},zIndex:{default:9999}},emits:["on-close"],setup(i,{expose:d,emit:c}){const e=i,t=h(e.opened),u=c,m=()=>t.value=!0,s=()=>{t.value=!1,u("on-close")};return d({open:m,close:s}),x(t,o=>{document.body.classList.toggle("overflow-hidden",o)},{immediate:!0}),(o,C)=>w(t)?(r(),v(z,{key:0,to:"body"},[a("div",{class:"fixed w-screen h-dvh flex items-center justify-center z-(--z-index) p-6 left-0 top-0",style:l({"--z-index":e.zIndex}),role:"dialog","aria-modal":"true"},[a("div",{class:"absolute w-screen h-screen z-[9998] bg-black/80 backdrop-blur-sm left-0 top-0 animate-fade-in",role:"presentation",onClick:s}),a("div",{class:b(["relative z-[9999] max-h-full max-sm:max-h-[85dvh] overflow-y-auto bg-white rounded-xl p-6 w-(--modal-width) max-w-full flex flex-col gap-4 animate-scale-in-up",o.$attrs.class]),style:l({"--modal-width":`${e.width}px`}),role:"document"},[a("div",_,[e.showCloseButton?(r(),y("button",{key:0,class:"close-button absolute top-0 right-0 z-50 cursor-pointer","aria-label":"Close modal",onClick:s},[g(p,{name:"general/x-close",class:"text-grey-900 w-3 h-3 group-hover:text-grey-700 transition-all duration-300","aria-hidden":"true"})])):n("",!0),k(o.$slots,"default")])],6)],4)])):n("",!0)}});export{N as _};
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.