1import{b5 as I,a3 as t,o,e as c,w as y,c as r,U as s,a7 as f,k as a,a as $,d as A,t as _,b,b6 as w,aO as F,aJ as L,ar as N,F as S,cg as V,ak as z,bz as P,b7 as E,x as O,m as T,bc as j,bd as D}from"./6ebOEy8Y.js";const G=F({name:"Alert",components:{IconHover:P,IconClose:z,IconInfoCircleFill:V,IconCheckCircleFill:S,IconExclamationCircleFill:N,IconCloseCircleFill:L},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},title:String,banner:{type:Boolean,default:!1},center:{type:Boolean,default:!1}},emits:{close:e=>!0,afterClose:()=>!0},setup(e,{slots:l,emit:i}){const n=E("alert"),p=O(!0),v=C=>{p.value=!1,i("close",C)},d=()=>{i("afterClose")},m=T(()=>[n,`${n}-${e.type}`,{[`${n}-with-title`]:!!(e.title||l.title),[`${n}-banner`]:e.banner,[`${n}-center`]:e.center}]);return{prefixCls:n,cls:m,visible:p,handleClose:v,handleAfterLeave:d}}});function H(e,l,i,n,p,v){const d=t("icon-info-circle-fill"),m=t("icon-check-circle-fill"),C=t("icon-exclamation-circle-fill"),k=t("icon-close-circle-fill"),h=t("icon-close"),g=t("icon-hover");return o(),c(w,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:y(()=>[e.visible?(o(),r("div",{key:0,role:"alert",class:s(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(o(),r("div",{key:0,class:s(`${e.prefixCls}-icon`)},[f(e.$slots,"icon",{},()=>[e.type==="info"?(o(),c(d,{key:0})):e.type==="success"?(o(),c(m,{key:1})):e.type==="warning"?(o(),c(C,{key:2})):e.type==="error"?(o(),c(k,{key:3})):a("v-if",!0)])],2)):a("v-if",!0),$("div",{class:s(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(o(),r("div",{key:0,class:s(`${e.prefixCls}-title`)},[f(e.$slots,"title",{},()=>[A(_(e.title),1)])],2)):a("v-if",!0),$("div",{class:s(`${e.prefixCls}-content`)},[f(e.$slots,"default")],2)],2),e.$slots.action?(o(),r("div",{key:1,class:s(`${e.prefixCls}-action`)},[f(e.$slots,"action")],2)):a("v-if",!0),e.closable?(o(),r("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:s(`${e.prefixCls}-close-btn`),onClick:l[0]||(l[0]=(...B)=>e.handleClose&&e.handleClose(...B))},[f(e.$slots,"close-element",{},()=>[b(g,null,{default:y(()=>[b(h)]),_:1})])],2)):a("v-if",!0)],2)):a("v-if",!0)]),_:3},8,["onAfterLeave"])}var u=I(G,[["render",H]]);const U=Object.assign(u,{install:(e,l)=>{j(e,l);const i=D(l);e.component(i+u.name,u)}});export{U as A};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.