import"./index-DhgIrZpo.chunk.mjs";import{c as h,m as _,d as g,e as f,f as y,g as m,i as v}from"./index-Dk4MzVw6.chunk.mjs";import{d as w,c as s,a as t,o as n,l as r,h as o,g as x,n as c,u as d,k as N,b as l}from"./runtime-dom.esm-bundler-Dyqpejx9.chunk.mjs";const $=["role"],A={key:0,class:"notecard__heading"},b={class:"notecard__text"},k=w({__name:"NcNoteCard",props:{heading:{default:void 0},showAlert:{type:Boolean},text:{default:void 0},type:{default:"warning"}},setup(i){const e=i,p=s(()=>e.showAlert||e.type==="error"),u=s(()=>{switch(e.type){case"error":return y;case"success":return f;case"info":return g;case"warning":default:return _}});return(a,B)=>(n(),t("div",{class:c(["notecard",{[`notecard--${a.type}`]:a.type,"notecard--legacy":d(v)}]),role:p.value?"alert":"note"},[r(a.$slots,"icon",{},()=>[x(d(m),{path:u.value,class:c(["notecard__icon",{"notecard__icon--heading":a.heading}]),inline:""},null,8,["path","class"])],!0),o("div",null,[a.heading?(n(),t("p",A,l(a.heading),1)):N("",!0),r(a.$slots,"default",{},()=>[o("p",b,l(a.text),1)],!0)])],10,$))}}),V=h(k,[["__scopeId","data-v-7e4656f9"]]);export{V as N}; //# sourceMappingURL=NcNoteCard-C6JdnZUp-D73c8eHL.chunk.mjs.map