"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../utils/env.js"),o=e.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},height:{type:String,default:"fit-content"},closeByClickOutside:{type:Boolean,default:!0},borderRadius:{type:String,default:"0px"},title:{type:String,default:""},showHeaderCloseButton:{type:Boolean,default:!1},showFooterSubmitButton:{type:Boolean,default:!1},submitButtonContent:{type:String,default:()=>e.Wt.t("确定")}},emits:["onOpen","onClose","onSubmit"],setup(o,{emit:n}){const s=o,i=n,u=e.ref();e.watch((()=>s.show),((o,n)=>{if(o!==n)switch(o){case!0:i("onOpen",u),e.nextTick$1((()=>{t.isH5&&!t.isUniFrameWork&&s.closeByClickOutside&&e.O.listen({domRefs:u.value,handler:r})}));break;case!1:i("onClose",u)}}));const r=()=>{(t.isUniFrameWork||t.isH5)&&i("onClose",u)},a=()=>{i("onSubmit"),r()};return(n,i)=>e.e({a:s.show},s.show?e.e({b:!e.unref(t.isPC)},e.unref(t.isPC)?{}:e.e({c:o.title||o.showHeaderCloseButton},o.title||o.showHeaderCloseButton?e.e({d:o.title},o.title?{e:e.t(o.title)}:{},{f:o.showHeaderCloseButton},o.showHeaderCloseButton?{g:e.t(e.unref(e.Wt).t("关闭")),h:e.o$1(r)}:{}):{},{i:o.showFooterSubmitButton},o.showFooterSubmitButton?{j:e.t(o.submitButtonContent),k:e.o$1(a)}:{},{l:e.n(!e.unref(t.isPC)&&"bottom-popup-h5-main"),m:s.height,n:s.borderRadius,o:s.borderRadius,p:e.o$1((()=>{})),q:e.n(!e.unref(t.isPC)&&"bottom-popup-h5"),r:e.n(!e.unref(t.isPC)&&s.modal&&"bottom-popup-modal"),s:e.n(e.unref(t.isUniFrameWork)&&"bottom-popup-uni"),t:e.o$1(r)})):{})}}),n=e._export_sfc(o,[["__scopeId","data-v-9106e42b"]]);wx.createComponent(n);
