import{c as z,e as S,a as $,p as g,s as L,t as M,k as D,b as v,d as E,f as d,l as I,h as i,m as f,i as W,r as n,w as q}from"../../custom-element.js";import{i as A}from"../../if.js";import{c as B}from"../../svelte-component.js";import{a as G}from"../../attributes.js";import{h as p,i as H,j as J,e as K}from"../../Condition20.js";import{L as N}from"../loader/Loader.js";import"../../branches.js";var O=d('<span class="mc-status-message__icon svelte-o2wjin"><!></span>'),P=d('<div><!> <p class="mc-status-message__description svelte-o2wjin"> </p></div>');const Q={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 R(c,a){S(a,!0),$(c,Q);let r=g(a,"label",7),e=g(a,"status",7,"info"),w=I(a,["$$slots","$$events","$$legacy","$$host","label","status"]);const l=[{status:"info",component:p},{status:"success",component:H},{status:"warning",component:J},{status:"error",component:K},{status:"neutral",component:p}];function _(s){return l.find(t=>t.status===s)||l[0]}const h=q(()=>_(e()));var j={get label(){return r()},set label(s){r(s),f()},get status(){return e()},set status(s="info"){e(s),f()}},o=P();G(o,()=>({class:["mc-status-message",`mc-status-message--${e()}`],...w}),void 0,void 0,void 0,"svelte-o2wjin");var m=i(o);{var b=s=>{var t=O(),y=i(t);B(y,()=>W(h).component,(F,k)=>{k(F,{})}),n(t),v(s,t)},C=s=>{N(s,{size:"s"})};A(m,s=>{e()!=="inprogress"?s(b):s(C,-1)})}var u=L(m,2),x=i(u,!0);return n(u),n(o),M(()=>D(x,r())),v(c,o),E(j)}customElements.define("m-status-message",z(R,{label:{},status:{}},[],[],{mode:"open"}));
//# sourceMappingURL=StatusMessage.js.map
