import{L as n,u,c as i,b as d,H as m,e as p,w as o,f as r,O as _,h as b,t as g,Q as f,G as x}from"./index-OSKNspXo.js";const w={class:"text-white",style:{"max-width":"90%"}},y={name:"alertGlobalComponent"},Q=Object.assign(y,{setup(C){const t=n(),{t:l}=u({useScope:"parent"}),s=i(()=>{let e=t.state.global.alertMessage;return e?l(e):""});function c(){t.commit("global/alertMessage","")}return(e,a)=>s.value?(p(),d(x,{key:0,bordered:"",class:"bg-red-6",style:{"border-radius":"10px"},"data-cy":"alert-global"},{default:o(()=>[r(_,{class:"flex justify-between"},{default:o(()=>[b("span",w,g(s.value),1),r(f,{name:"close",color:"white",class:"cursor-pointer",onClick:a[0]||(a[0]=h=>c()),size:"1.5rem"})]),_:1})]),_:1})):m("",!0)}});export{Q as _};
//# sourceMappingURL=alertGlobal-C6DL_YAw.js.map
