"use strict";const e=require("../../../../common/vendor.js");if(!Array){e.resolveComponent("uni-popup")()}Math;const t=e.defineComponent({__name:"mosowe-confirm-popup",props:{modelValue:{type:Boolean},title:{default:"提示"},message:{type:Boolean},hideCancel:{type:Boolean},confirmText:{default:"确认"},cancelText:{default:"取消"}},emits:["update:modelValue","cancel","confirm"],setup(t,n){var o=n.emit;const l=t,c=o,a=e.ref(null);e.watch((()=>l.modelValue),(()=>{l.modelValue?a.value.open():a.value.close()}));const u=e.getCurrentInstance().vnode.props,i=()=>{(null==u?void 0:u.onCancel)?c("cancel"):c("update:modelValue",!1)},d=()=>{(null==u?void 0:u.onConfirm)?c("confirm"):c("update:modelValue",!1)};return(t=null,n=null)=>e.e(new UTSJSONObject({a:l.title}),l.title?new UTSJSONObject({b:e.t(l.title)}):new UTSJSONObject({}),new UTSJSONObject({c:l.message?1:"",d:!l.hideCancel}),l.hideCancel?new UTSJSONObject({}):new UTSJSONObject({e:e.t(t.cancelText),f:e.o(i)}),new UTSJSONObject({g:e.t(t.confirmText),h:e.o(d),i:e.sr(a,"d12be9e5-0",new UTSJSONObject({k:"zoConfirmPopupRef"})),j:t.virtualHostId,k:e.p(new UTSJSONObject({"is-mask-click":!1,id:t.virtualHostId}))}))}}),n=e._export_sfc(t,[["__scopeId","data-v-d12be9e5"]]);wx.createComponent(n);
