"use strict";const e=require("../common/src/instantiationDecorator.js"),o=require("../common/config.js"),i=require("./props.js"),n=require("../mixins/transition.js"),t=require("../mixins/using-custom-navbar.js"),r=require("../common/utils.wxs.js"),s=require("../../../../common/vendor.js"),a=`${o.prefix}-overlay`,l=e.uniComponent({name:a,options:{styleIsolation:"shared"},mixins:[n.transition(),t.useCustomNavbarBehavior],props:{...i.props},emits:["click","leaved"],data:()=>({prefix:o.prefix,classPrefix:a,computedStyle:"",_zIndex:11e3,tools:r.tools}),watch:{backgroundColor:{handler(e){this.computedStyle=e?`background-color: ${e};`:""},immediate:!0},zIndex:{handler(e){0!==e&&(this._zIndex=e)},immediate:!0}},methods:{handleClick(){this.$emit("click",{visible:!this.visible})},noop(){}}});const c=s._export_sfc(l,[["render",function(e,o,i,n,t,r){return s.e({a:e.realVisible&&e.preventScrollThrough},e.realVisible&&e.preventScrollThrough?{b:s.n(e.prefix+"-overlay "+e.transitionClass),c:s.s(e.tools._style(["--td-overlay-transition-duration:"+e.duration+"ms","z-index:"+e._zIndex,"top:"+e.distanceTop+"px",e.computedStyle,e.customStyle])),d:e.ariaRole||"button",e:e.ariaLabel||"关闭",f:s.o(((...o)=>e.handleClick&&e.handleClick(...o))),g:s.o(((...o)=>e.noop&&e.noop(...o))),h:s.o(((...o)=>e.onTransitionEnd&&e.onTransitionEnd(...o)))}:e.realVisible?{j:s.n(e.prefix+"-overlay "+e.transitionClass),k:s.s(e.tools._style(["z-index:"+e._zIndex,"top:"+e.distanceTop+"px",e.computedStyle,e.customStyle])),l:e.ariaRole||"button",m:e.ariaLabel||"关闭",n:s.o(((...o)=>e.handleClick&&e.handleClick(...o))),o:s.o(((...o)=>e.onTransitionEnd&&e.onTransitionEnd(...o)))}:{},{i:e.realVisible})}],["__scopeId","data-v-87948317"]]);wx.createComponent(c);
