import{A as e,D as t,E as n,I as r,O as i,Xt as a,et as o,k as s,ot as c,qt as l,rt as u}from"./vue-vendor-DMUmTARL.js";import{as as d,is as f,os as p,rs as m}from"./icons-vendor-Buq6V-Ga.js";import{Tt as h}from"./index-y6crcKNt.js";var g=[`role`,`aria-live`],_={class:`zf-info-card__icon`,"aria-hidden":`true`},v={class:`zf-info-card__body`},y={key:0,class:`zf-info-card__title`},b={class:`zf-info-card__content`},x=h(r({__name:`ZInfoCard`,props:{title:{default:``},type:{default:`info`},size:{default:`md`},ariaRole:{default:void 0},ariaLive:{default:void 0}},setup(r){let h=r,x=n(()=>{switch(h.type){case`success`:return p;case`warning`:return d;case`danger`:return f;default:return m}}),S=n(()=>h.ariaRole?h.ariaRole:h.type===`warning`||h.type===`danger`?`alert`:`status`),C=n(()=>h.ariaLive?h.ariaLive:h.type===`danger`?`assertive`:`polite`);return(n,d)=>(o(),e(`div`,{class:l([`zf-info-card`,[`zf-info-card--${r.type}`,`zf-info-card--${r.size}`,{"is-titleless":!r.title}]]),role:S.value,"aria-live":C.value},[t(`div`,_,[u(n.$slots,`icon`,{},()=>[(o(),i(c(x.value)))],!0)]),t(`div`,v,[r.title?(o(),e(`div`,y,a(r.title),1)):s(``,!0),t(`div`,b,[u(n.$slots,`default`,{},void 0,!0)])])],10,g))}}),[[`__scopeId`,`data-v-a61c56aa`]]);export{x as t};