1import{At as e,Ct as t,Mt as n,St as r,_n as i,bt as a,ei as o,ii as s,jr as c,wn as l,yt as u}from"./BPsVqlsv.js";import{t as d}from"./BwKsV0YZ.js";var f=[`role`],p={class:`min-w-0 flex-1`},m={key:0,class:`font-semibold`},h={key:1,class:`mt-3 flex gap-2`},g=[`aria-label`],_=Object.assign(n({__name:`UiAlert`,props:{tone:{default:`info`},title:{default:void 0},closable:{type:Boolean,default:!1},closeLabel:{default:`Close`}},emits:[`close`],setup(n,{emit:_}){let v=n,y=_,b={info:{icon:`mdi:information-outline`,box:`bg-info-50 text-info-700 ring-info-500/30`},success:{icon:`mdi:check-circle-outline`,box:`bg-success-50 text-success-700 ring-success-500/30`},warning:{icon:`mdi:alert-outline`,box:`bg-warning-50 text-warning-700 ring-warning-500/30`},error:{icon:`mdi:alert-circle-outline`,box:`bg-error-50 text-error-700 ring-error-500/30`}},x=u(()=>b[v.tone]),S=u(()=>v.tone===`error`||v.tone===`warning`?`alert`:`status`);return(u,_)=>{let v=d;return i(),t(`div`,{role:c(S),class:o([`flex gap-3 rounded-ui p-4 text-sm ring-1 ring-inset`,c(x).box]),"data-testid":`ui-alert`},[e(v,{name:c(x).icon,class:`mt-0.5 size-5 shrink-0`,"aria-hidden":`true`},null,8,[`name`]),a(`div`,p,[n.title?(i(),t(`p`,m,s(n.title),1)):r(``,!0),a(`div`,{class:o(n.title?`mt-1`:``)},[l(u.$slots,`default`)],2),u.$slots.actions?(i(),t(`div`,h,[l(u.$slots,`actions`)])):r(``,!0)]),n.closable?(i(),t(`button`,{key:0,type:`button`,class:`-m-1 h-fit cursor-pointer rounded-ui-sm p-1 hover:bg-black/5`,"aria-label":n.closeLabel,onClick:_[0]||=e=>y(`close`)},[e(v,{name:`mdi:close`,class:`size-4`,"aria-hidden":`true`})],8,g)):r(``,!0)],10,f)}}}),{__name:`UiAlert`});export{_ as t};
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.