import{_ as c}from"./currency-Dtag6qPd.js";import{_ as l}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as i,c as r,a as s,t as o,e as m,f as u,w as d,n as f,r as _,i as h}from"./runtime-core.esm-bundler-DzqFO6Tt.js";const x={data(){return{title:"",message:""}},props:["popup"],computed:{size(){return this.popup.params.size||"h-full w-full"}},mounted(){this.title=this.popup.params.title,this.message=this.popup.params.message},methods:{__:c,emitAction(n){this.popup.params.onAction!==void 0&&this.popup.params.onAction(n),this.popup.close()}}},g={class:"flex items-center justify-center flex-col flex-auto p-4"},w={key:0,class:"text-3xl font-body"},y={class:"py-4 text-center"},b={class:"action-buttons flex border-t justify-end items-center p-2"};function k(n,p,v,A,e,t){const a=_("ns-button");return i(),r("div",{id:"alert-popup",class:f([t.size,"w-6/7-screen md:w-4/7-screen lg:w-3/7-screen flex flex-col shadow-lg"])},[s("div",g,[e.title?(i(),r("h2",w,o(e.title),1)):m("",!0),s("p",y,o(e.message),1)]),s("div",b,[u(a,{onClick:p[0]||(p[0]=C=>t.emitAction(!0)),type:"info"},{default:d(()=>[h(o(t.__("Ok")),1)]),_:1})])],2)}const B=l(x,[["render",k]]);export{B as default};
