import{n as s}from"./plugin-vue2_normalizer.000ba15c.js";const i={danger:"text-danger",info:"text-primary"},r={data(){return{variantClasses:i}},computed:{confirm(){return this.$store.state.confirm}},methods:{cancelConfirm(){return this.$store.dispatch("confirm/close")}}};var a=function(){var e=this,t=e._self._c;return e.confirm.isOpen?t("div",{staticClass:"fixed inset-0 z-50 flex items-end justify-center p-2 sm:items-center"},[t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.cancelConfirm,expression:"cancelConfirm"}],staticClass:"w-full max-w-xs overflow-hidden rounded shadow-2xl bg-surface-1"},[t("header",{staticClass:"px-4 py-6 space-y-2 text-center"},[t("h2",{staticClass:"font-medium text-body"},[e._v(e._s(e.confirm.title))]),t("p",{staticClass:"text-small text-medium-emphasis"},[e._v(e._s(e.confirm.message))])]),t("footer",{staticClass:"grid grid-cols-2 border-t divide-x border-low-emphasis divide-low-emphasis"},[t("button",{staticClass:"inline-flex items-center justify-center h-12 px-4 font-medium transition ease-in-out text-small focus:outline-none text-high-emphasis duration-fast",on:{click:function(n){return e.cancelConfirm()}}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t("button",{staticClass:"inline-flex items-center justify-center h-12 px-4 font-medium transition ease-in-out text-small focus:outline-none duration-fast",class:e.variantClasses[e.confirm.variant?e.confirm.variant:"danger"],on:{click:function(n){return e.confirm.onConfirm()}}},[e._v(" "+e._s(e.__("Confirm"))+" ")])])])]):e._e()},o=[],c=s(r,a,o,!1,null,null,null,null);const f=c.exports;export{f as default};
