"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../utils/env.js"),n=e.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1},isHeaderShow:{type:Boolean,default:!0},isFooterShow:{type:Boolean,default:!0},background:{type:Boolean,default:!0},title:{type:String,default:""},center:{type:Boolean,default:!1}},emits:["update:show","submit"],setup(n,{emit:o}){const r="outside",u="inside",a=n,i=e.ref(!1),s=e.ref(!0),f=e.ref(!0),l=e.ref(!0),d=e.ref("");e.watchEffect((()=>{i.value=a.show,d.value=a.title,s.value=a.isHeaderShow,f.value=a.isFooterShow,l.value=a.background}));const c=o,p=e=>{e===r&&m()},m=()=>{i.value=!i.value,c("update:show",i.value)},v=()=>{c("submit"),m()};return(o,a)=>e.e({a:e.unref(i)},e.unref(i)?e.e({b:e.unref(s)},e.unref(s)?{c:e.t(e.unref(d)),d:e.o$1(m)}:{},{e:e.n(e.unref(t.isUniFrameWork)&&e.unref(t.isH5)?"dialog-main-content-uniapp":""),f:e.unref(f)},e.unref(f)?{g:e.t(e.unref(e.Wt).t("component.取消")),h:e.o$1(m),i:e.t(e.unref(e.Wt).t("component.确定")),j:e.o$1(v)}:{},{k:e.n(e.unref(l)?"":"dialog-main-back"),l:e.o$1((e=>p(u))),m:e.n(e.unref(t.isPC)?"":"dialog-h5"),n:e.n(n.center?"center":""),o:e.o$1((e=>p(r)))}):{})}}),o=e._export_sfc(n,[["__scopeId","data-v-07925a1b"]]);wx.createComponent(o);
