"use strict";const e=require("../common/src/instantiationDecorator.js"),o=require("../common/config.js"),s=require("./props.js"),r=require("../mixins/transition.js"),n=require("../mixins/using-custom-navbar.js"),l=require("../common/utils.wxs.js"),t=require("./computed.js"),i=require("../../../../common/vendor.js");delete s.props.visible;const a=`${o.prefix}-popup`,c=e.uniComponent({name:a,options:{styleIsolation:"shared"},externalClasses:[`${o.prefix}-class`,`${o.prefix}-class-content`],mixins:[r.transitionMixins,n.useCustomNavbarBehavior],components:{TOverlay:()=>"../overlay/overlay.js",TIcon:()=>"../icon/icon.js"},props:{...s.props},emits:["visible-change","leaved","update:visible"],data:()=>({prefix:o.prefix,classPrefix:a,popup:t.popup,tools:l.tools}),computed:{innerPreventScrollThrough(){const{preventScrollThrough:e,overlayProps:o}=this;return e||!!o&&!!o.preventScrollThrough}},methods:{noop(){},handleOverlayClick(){const{closeOnOverlayClick:e}=this;e&&(this.$emit("visible-change",{visible:!1,trigger:"overlay"}),this.$emit("update:visible",!1))},handleClose(){this.$emit("visible-change",{visible:!1,trigger:"close-btn"}),this.$emit("update:visible",!1)}}});if(!Array){(i.resolveComponent("t-icon")+i.resolveComponent("t-overlay"))()}Math||((()=>"../icon/icon.js")+(()=>"../overlay/overlay.js"))();const p=i._export_sfc(c,[["render",function(e,o,s,r,n,l){return i.e({a:e.realVisible},e.realVisible?i.e({b:e.innerPreventScrollThrough},e.innerPreventScrollThrough?i.e({c:e.closeBtn},e.closeBtn?{d:i.p({name:"close",size:"64rpx"})}:{},{e:i.r("close-btn",{class:e.classPrefix+"-slot"}),f:i.n(e.classPrefix+"__close"),g:i.o(((...o)=>e.handleClose&&e.handleClose(...o))),h:i.n(e.classPrefix+"__content "+e.tClassContent),i:i.o(((...o)=>e.noop&&e.noop(...o)))}):i.e({j:e.closeBtn},e.closeBtn?{k:i.p({name:"close",size:"64rpx"})}:{},{l:i.r("close-btn",{class:e.classPrefix+"-slot"}),m:i.n(e.classPrefix+"__close"),n:i.o(((...o)=>e.handleClose&&e.handleClose(...o))),o:i.n(e.classPrefix+"__content "+e.tClassContent)}),{p:i.s(e.tools._style([e.popup.getPopupStyles({zIndex:e.zIndex,distanceTop:e.distanceTop,placement:e.placement,duration:e.duration}),e.customStyle])),q:i.n(e.tools.cls(e.classPrefix,[e.placement])+" "+e.transitionClass+" "+e.tClass),r:i.o(((...o)=>e.onTransitionEnd&&e.onTransitionEnd(...o)))}):{},{s:e.showOverlay},e.showOverlay?{t:i.o((o=>e.handleOverlayClick(o,{tagId:"popup-overlay"}))),v:i.p({id:"popup-overlay",visible:e.visible,"using-custom-navbar":e.usingCustomNavbar,"custom-navbar-height":e.customNavbarHeight,"z-index":e.overlayProps&&e.overlayProps.zIndex||11e3,duration:e.overlayProps&&e.overlayProps.duration||300,"background-color":e.overlayProps&&e.overlayProps.backgroundColor||"","prevent-scroll-through":e.preventScrollThrough||!!e.overlayProps&&!!e.overlayProps.preventScrollThrough,"custom-style":e.overlayProps&&e.overlayProps.style||""})}:{})}],["__scopeId","data-v-cc2f844d"]]);wx.createComponent(p);
