import{M as e,P as t,W as n,b as r,d as i,ft as a,it as o,l as s,n as c,ot as l,q as u,r as d,st as f,t as p,w as m}from"../../client.js";var h=t(`<div><div role="dialog" tabindex="-1"><!></div></div>`),g={hash:`svelte-smp867`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-overlay.svelte-smp867 {background-color:var(--overlay-color-background, rgba(0, 0, 0, 0.5));inset:0;opacity:0;position:fixed;pointer-events:none;transition:opacity 0.4s ease, visibility 0ms 0.4s;z-index:var(--overlay-z-index, 4);}.mc-overlay.is-visible.svelte-smp867 {opacity:1;pointer-events:all;transition:opacity 0.4s ease, visibility 0ms;visibility:visible;}.mc-overlay-loader.svelte-smp867 {background-color:var(--overlay-color-background, rgba(0, 0, 0, 0.5));inset:0;opacity:0;position:fixed;pointer-events:none;transition:opacity 0.4s ease, visibility 0ms 0.4s;z-index:var(--overlay-z-index, 4);}.mc-overlay-loader.is-visible.svelte-smp867 {opacity:1;pointer-events:all;transition:opacity 0.4s ease, visibility 0ms;visibility:visible;}.mc-overlay-loader.svelte-smp867 {align-items:center;display:flex;justify-content:center;}`};function _(t,p){f(p,!0),r(t,g);let _=c(p,`isvisible`,7),v=c(p,`dialoglabel`,7),y=c(p,`onOverlayClick`,7),b=c(p,`class`,7),x=d(p,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`isvisible`,`dialoglabel`,`onOverlayClick`,`class`]);var S={get isvisible(){return _()},set isvisible(e){_(e),o()},get dialoglabel(){return v()},set dialoglabel(e){v(e),o()},get onOverlayClick(){return y()},set onOverlayClick(e){y(e),o()},get class(){return b()},set class(e){b(e),o()}},C=h();s(C,()=>({class:[`mc-overlay`,_()&&`is-visible`,b()],onclick:y(),...x}),void 0,void 0,void 0,`svelte-smp867`);var w=u(C);return m(u(w),p,`default`,{},null),a(w),a(C),n(()=>i(w,`aria-labelledby`,v())),e(t,C),l(S)}customElements.define(`m-overlay`,p(_,{isvisible:{attribute:`isvisible`,reflect:!0,type:`Boolean`},dialoglabel:{},onOverlayClick:{},class:{}},[`default`],[],{mode:`open`}));export{_ as default};
//# sourceMappingURL=Overlay.js.map