import{c as d,d as a,F as u,l as _,k as f,I as m,o,z as k,p as g,H as h,e as l,t as p}from"./createLucideIcon-DH2lOosf.js";/**
 * @license @lucide/vue v1.17.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],x=d("circle-alert",C);/**
 * @license @lucide/vue v1.17.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],I=d("circle-check-big",v);/**
 * @license @lucide/vue v1.17.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],A=d("info",b);/**
 * @license @lucide/vue v1.17.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],N=d("triangle-alert",K),$=(e,t)=>{const n=e.__vccOpts||e;for(const[s,y]of t)n[s]=y;return n},c=m({notifications:[],_nextId:1});function r(e,t,n){c.notifications.push({id:c._nextId++,type:e,message:null,title:null,messageKey:t,titleKey:n||null})}function w(e){return{danger:"AlertCircle",warning:"AlertTriangle",success:"CheckCircle",info:"Info"}[e]||"Info"}const j={error:(e,t)=>r("danger",e,t),warning:(e,t)=>r("warning",e,t),success:(e,t)=>r("success",e,t),info:(e,t)=>r("info",e,t)},z={components:{AlertCircle:x,AlertTriangle:N,CheckCircle:I,Info:A},setup(){function e(t){const n=c.notifications.findIndex(s=>s.id===t);n!==-1&&c.notifications.splice(n,1)}return{state:c,dismiss:e,iconFor:w}}},B={key:0,class:"notification-container"},M={class:"flex-grow-1"},F={key:0},T=["aria-label","onClick"];function L(e,t,n,s,y,q){return s.state.notifications.length>0?(o(),a("div",B,[(o(!0),a(u,null,_(s.state.notifications,i=>(o(),a("div",{key:i.id,class:k(["alert d-flex align-items-start gap-2 mb-2","alert-"+i.type]),role:"alert"},[(o(),g(h(s.iconFor(i.type)),{size:18,class:"icon flex-shrink-0 mt-1"})),l("div",M,[i.titleKey||i.title?(o(),a("div",F,[l("strong",null,p(i.titleKey?e.$t(i.titleKey):i.title),1)])):f("",!0),l("span",null,p(i.messageKey?e.$t(i.messageKey):i.message),1)]),l("button",{type:"button",class:"btn-close","aria-label":e.$t("_common.dismiss"),onClick:D=>s.dismiss(i.id)},null,8,T)],2))),128))])):f("",!0)}const E=$(z,[["render",L],["__scopeId","data-v-921526d4"]]);export{I as C,A as I,E as N,N as T,$ as _,x as a,j as n};
