import{c as b,e as y,a as f,p as r,t as u,j as g,n as x,b as z,d as _,f as h,l as $,h as n,m as v,r as d}from"../../custom-element.js";import{a as L}from"../../attributes.js";import{L as j}from"../loader/Loader.js";import"../../if.js";import"../../branches.js";var k=h("<div><div><!></div></div>");const w={hash:"svelte-111c1z1",code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-loading-loader.svelte-111c1z1 {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-loading-loader.is-visible.svelte-111c1z1 {opacity:1;pointer-events:all;transition:opacity 0.4s ease, visibility 0ms;visibility:visible;}.mc-loading-loader.svelte-111c1z1 {align-items:center;display:flex;justify-content:center;}`};function B(l,e){y(e,!0),f(l,w);let s=r(e,"isvisible",7),t=r(e,"text",7),c=$(e,["$$slots","$$events","$$legacy","$$host","isvisible","text"]);var m={get isvisible(){return s()},set isvisible(o){s(o),v()},get text(){return t()},set text(o){t(o),v()}},i=k(),a=n(i);L(a,()=>({role:"dialog",tabindex:"-1","aria-label":t(),...c}),void 0,void 0,void 0,"svelte-111c1z1");var p=n(a);return j(p,{size:"l",appearance:"inverse",get text(){return t()}}),d(a),d(i),u(()=>g(i,1,x(["mc-loading-loader",s()&&"is-visible"]),"svelte-111c1z1")),z(l,i),_(m)}customElements.define("m-loading-overlay",b(B,{isvisible:{attribute:"isvisible",reflect:!0,type:"Boolean"},text:{}},[],[],{mode:"open"}));
//# sourceMappingURL=LoadingOverlay.js.map
