"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("./Mask.js"),d=require("./MobilePopupInner.js"),p=require("./PopupInner.js"),v=require("./interface.js"),b=e.defineComponent({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:v.popupProps,setup(t,{attrs:r,slots:u,expose:a}){const i=e.shallowRef(!1),n=e.shallowRef(!1),l=e.shallowRef(),f=e.shallowRef();return e.watch([()=>t.visible,()=>t.mobile],()=>{i.value=t.visible,t.visible&&t.mobile&&(n.value=!0)},{immediate:!0,flush:"post"}),a({forceAlign:()=>{l.value?.forceAlign()},getElement:()=>l.value?.getElement()}),()=>{const o={...t,...r,visible:i.value},s=n.value?e.createVNode(d.default,{...o,mobile:t.mobile,ref:l},{default:u.default}):e.createVNode(p.default,{...o,ref:l},{default:u.default});return e.createVNode("div",{ref:f},[e.createVNode(c.default,o,null),s])}}});exports.default=b;
