import{D as e,M as t,P as n,S as r,V as i,W as a,Y as o,b as s,ft as c,it as l,j as u,l as d,n as f,nt as p,ot as m,q as h,r as g,st as _,t as v}from"../../client.js";import{E as y,c as b,x,z as S}from"../../components.js";import C from"../loader/Loader.js";var w=n(`<span class="mc-status-message__icon svelte-o2wjin"><!></span>`),T=n(`<div><!> <p class="mc-status-message__description svelte-o2wjin"> </p></div>`),E={hash:`svelte-o2wjin`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-status-message.svelte-o2wjin .mc-status-message__icon:where(.svelte-o2wjin) {fill:var(--status-message-color-icon-info, #0b96cc);color:var(--status-message-color-icon-info, #0b96cc);}.mc-status-message.svelte-o2wjin {display:inline-flex;gap:0.25rem;align-items:center;}.mc-status-message__icon.svelte-o2wjin {width:1.5rem;height:1.5rem;}.mc-status-message__description.svelte-o2wjin {margin:0;font-size:var(--font-size-100, 0.875rem);line-height:var(--line-height-s, 1.3);font-weight:var(--font-weight-regular, 400);color:var(--status-message-color-text, #404040);}.mc-status-message--success.svelte-o2wjin .mc-status-message__icon:where(.svelte-o2wjin) {fill:var(--status-message-color-icon-success, #3f9e10);color:var(--status-message-color-icon-success, #3f9e10);}.mc-status-message--error.svelte-o2wjin .mc-status-message__icon:where(.svelte-o2wjin) {fill:var(--status-message-color-icon-error, #ea302d);color:var(--status-message-color-icon-error, #ea302d);}.mc-status-message--warning.svelte-o2wjin .mc-status-message__icon:where(.svelte-o2wjin) {fill:var(--status-message-color-icon-warning, #ea7315);color:var(--status-message-color-icon-warning, #ea7315);}.mc-status-message--neutral.svelte-o2wjin .mc-status-message__icon:where(.svelte-o2wjin) {fill:var(--status-message-color-icon-neutral, #808080);color:var(--status-message-color-icon-neutral, #808080);}`};function D(n,v){_(v,!0),s(n,E);let D=f(v,`label`,7),O=f(v,`status`,7,`info`),k=f(v,`class`,7),A=g(v,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`label`,`status`,`class`]),j=[{status:`info`,component:y},{status:`success`,component:b},{status:`warning`,component:S},{status:`error`,component:x},{status:`neutral`,component:y}];function M(e){return j.find(t=>t.status===e)||j[0]}let N=p(()=>M(O()));var P={get label(){return D()},set label(e){D(e),l()},get status(){return O()},set status(e=`info`){O(e),l()},get class(){return k()},set class(e){k(e),l()}},F=T();d(F,()=>({class:[`mc-status-message`,`mc-status-message--${O()}`,k()],...A}),void 0,void 0,void 0,`svelte-o2wjin`);var I=h(F),L=e=>{var n=w();r(h(n),()=>i(N).component,(e,t)=>{t(e,{})}),c(n),t(e,n)},R=e=>{C(e,{size:`s`})};e(I,e=>{O()===`inprogress`?e(R,-1):e(L)});var z=o(I,2),B=h(z,!0);return c(z),c(F),a(()=>u(B,D())),t(n,F),m(P)}customElements.define(`m-status-message`,v(D,{label:{},status:{},class:{}},[],[],{mode:`open`}));
//# sourceMappingURL=StatusMessage.js.map