1import{d as p,u as b,a as h,o,g as y,v,h as x,b as t,aU as C,c as l,n as c,x as r,t as s,e as i,W as m,T as _}from"./vendor-lxhXACKn.js";import B from"./Dialog-CvdkR9Dz.js";import"./formkit.theme-uoC4MDOU.js";import"./globalBasic-DCViCoV8.js";const k={class:"!p-6 flex flex-col justify-between w-full min-h-64"},w={class:"text-center flex flex-col justify-between h-full min-h-32"},L={key:1,id:"modal-header",class:"text-text-brand text-2xl font-bold"},R={key:2,id:"modal-content","aria-live":"polite",class:"text-text-secondary"},g={key:3,class:"text-red-700 mt-2 font-bold text-sm"},E={class:"inline-flex mt-6 w-full"},H=p({__name:"Confirm",props:{open:{type:Boolean,default:!1},icon:{},header:{},subHeader:{},irreversible:{type:Boolean}},emits:["close","cancel","confirm"],setup(N,{emit:u}){const{t:n}=b();h();const a=u,d=()=>{a("close"),a("cancel")},f=()=>{a("confirm"),a("close")};return(e,I)=>(o(),y(_,{to:"body"},[v(B,{open:!0,onClose:d,class:"max-w-[600px]",role:"dialog","aria-modal":"true","aria-labelledby":"modal-header","aria-describedby":"modal-content"},{content:x(()=>[t("div",k,[t("div",null,[C(e.$slots,"default",{},()=>[t("div",w,[e.icon?(o(),l("i",{key:0,class:c(["text-text-primary text-[3.75rem] mb-4",[e.icon,{"text-hp-error-900":e.irreversible}]]),"aria-hidden":"true"},null,2)):r("",!0),e.header?(o(),l("h2",L,s(e.header),1)):r("",!0),e.subHeader?(o(),l("div",R,s(e.subHeader),1)):r("",!0),e.irreversible?(o(),l("div",g,s(i(n)("PROMPT.IRREVERSIBLE")),1)):r("",!0)])])]),t("div",E,[t("button",{ref:"firstButton","aria-label":"Close modal",class:"btn-outline w-full mr-4",autofocus:"",onClick:m(d,["prevent","stop"])},s(i(n)("GLOBAL.CANCEL")),513),t("button",{"aria-label":"confirm button in Confirm component",class:c(["btn-primary ml-auto w-full",{"!bg-red-700":e.irreversible}]),onClick:m(f,["prevent","stop"])},s(i(n)("GLOBAL.CONFIRM")),3)])])]),_:3})]))}});export{H as default};
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.