"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js"),Math||o();const o=()=>"../Overlay/index.js",r=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!0},popDirection:{default:"bottom"},useMask:{type:Boolean,default:!0},isFullScreen:{type:Boolean,default:!0},overlayColor:{},drawerStyle:{default:()=>({})}},emits:["onOverlayClick"],setup(o,{expose:r,emit:i}){var t;const a=i,l=o,n=e.ref(),s=e.ref(),u=e.ref(!1),f=e.ref(l.drawerStyle[l.popDirection]||{});function p(e){a("onOverlayClick",e)}return e.watch((()=>l.visible),(e=>{e?u.value=!0:setTimeout((()=>{u.value=!1}),150)}),{immediate:!0}),r({drawerDomRef:n,overlayDomRef:null==(t=s.value)?void 0:t.overlayDomRef}),(o,r)=>e.e({a:e.unref(u)},e.unref(u)?{b:"bottom"===l.popDirection?1:"",c:"right"===l.popDirection?1:"",d:o.visible&&"bottom"===l.popDirection?1:"",e:o.visible&&"right"===l.popDirection?1:"",f:e.unref(f).minHeight,g:e.unref(f).maxHeight,h:e.unref(f).borderRadius,i:e.unref(f).boxShadow,j:e.unref(f).width}:{},{k:e.sr(s,"edaf0f9f-0",{k:"overlayDomInstanceRef"}),l:e.o$1(p),m:e.p({visible:l.visible,useMask:l.useMask,maskColor:l.overlayColor,isFullScreen:l.isFullScreen})})}}),i=e._export_sfc(r,[["__scopeId","data-v-edaf0f9f"]]);wx.createComponent(i);
