import{J as u,o as m,y as _,f as t,d as a,t as i,Q as y,e as l,g as c,A as s}from"./index.b636aed2.js";import{B as g}from"./base-modal.6775f33c.js";const v={class:"confirmation__modal__title"},q={class:"confirmation__modal__content"},x={class:"confirmation__modal__action-wrapper"},h={__name:"confirmation-modal",props:{cancelHandler:{required:!1,type:Function},cancelText:{default:"\u062E\u06CC\u0631",required:!1,type:String},confirmHandler:{required:!0,type:Function},confirmText:{default:"\u0628\u0644\u0647",required:!1,type:String},isActive:{default:!1,required:!0,type:Boolean},isLoading:{default:!1,required:!1,type:Boolean},name:{required:!0,type:String},title:{default:"\u062A\u0648\u062C\u0647",required:!1,type:String}},emits:["close"],setup(e,{emit:r}){const n=e;u();function d(){if(n.cancelHandler)return n.cancelHandler();o()}function o(){r("close")}return(f,B)=>(m(),_(g,{onClose:o,"is-active":e.isActive,name:e.name,class:"confirmation__modal"},{default:t(()=>[a("div",v,i(e.title),1),a("div",q,[y(f.$slots,"default")]),a("div",x,[l(s,{"is-bordered":!0,onClick:d,disabled:e.isLoading,class:"confirmation__modal__action-btn"},{default:t(()=>[c(i(e.cancelText),1)]),_:1},8,["disabled"]),l(s,{class:"confirmation__modal__action-btn",disabled:e.isLoading,onClick:e.confirmHandler},{default:t(()=>[c(i(e.confirmText),1)]),_:1},8,["disabled","onClick"])])]),_:3},8,["is-active","name"]))}};export{h as _};
