import{n as o,M as r}from"./index-DDNMzpZj.js";const s={model:{prop:"show",event:"close"},components:{Modal:r},props:{show:{type:Boolean,required:!0},confirm:{type:Function,required:!0},text:{type:String,required:!0},button:{type:String,required:!0}},methods:{confirmAction(){this.confirm(),this.$emit("close",!1)}}};var i=function(){var t=this,e=t._self._c;return e("modal",{attrs:{show:t.show},on:{close:function(n){return t.$emit("close",!1)}},scopedSlots:t._u([{key:"header",fn:function(){return[e("h2",[t._v("Are you sure?")])]},proxy:!0}])},[e("p",{staticClass:"my-8"},[e("fa-icon",{staticClass:"text-red-400",attrs:{icon:["fas","exclamation-triangle"]}}),t._v(" "+t._s(t.text)+" ")],1),e("div",{staticClass:"flex flex-row justify-between"},[e("button",{staticClass:"btn btn-red",on:{click:function(n){return t.confirmAction()}}},[t._v(t._s(t.button))]),e("button",{staticClass:"btn btn-blue",on:{click:function(n){return t.$emit("close",!1)}}},[t._v("Close")])])])},c=[],a=o(s,i,c,!1,null,null);const f=a.exports;export{f as M};
