System.register(["./index-legacy.DjPCm-Xr.js","./index-legacy.sLMPZLm9.js"],(function(e,t){"use strict";var n,r,a,o,l,i,s,p,u,c,v,d,$,g,C,f,h,m,x,y,R;return{setters:[e=>{n=e.q,r=e._,a=e.s,o=e.t,l=e.P},e=>{i=e._,s=e.$,p=e.a0,u=e.F,c=e.Z,v=e.j,d=e.i,$=e.p,g=e.d,C=e.P,f=e.o,h=e.w,m=e.b,x=e.D,y=e.l,R=e.a1}],execute:function(){e({a:function(e,n,r,a){var o;const l=null===(o=e[n])||void 0===o?void 0:o.call(e,r);return t(l)?l:null==a?void 0:a()},c:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=e;if(Array.isArray(e)&&(s=n(e)[0]),!s)return null;const p=i(s,t,l);return p.props=o?r(r({},p.props),t):p.props,a("object"!=typeof p.props.class),p},e:function(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}},t:function(e,t,n){c(i(e,r({},t)),n)}});const t=e=>(e||[]).some((e=>!s(e)||e.type!==p&&!(e.type===u&&!t(e.children))))?e:null;o("bottomLeft","bottomRight","topLeft","topRight"),e("f",(e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down")),e("g",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)})),e("d",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)})),e("b",((e,t,n)=>void 0!==n?n:`${e}-${t}`));const T=Symbol("PortalContextKey"),A=e("u",(function(e){$(T,{inTriggerContext:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0}).inTriggerContext,shouldRender:d((()=>{const{sPopupVisible:t,popupRef:n,forceRender:r,autoDestroy:a}=e||{};let o=!1;return(t||n||r)&&(o=!0),!t&&a&&(o=!1),o}))})}));e("P",g({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:l.func.isRequired,didUpdate:Function},setup(e,t){let n,{slots:r}=t,a=!0;const{shouldRender:o}=(()=>{A({},{inTriggerContext:!1});const e=v(T,{shouldRender:d((()=>!1)),inTriggerContext:!1});return{shouldRender:d((()=>e.shouldRender.value||!1===e.inTriggerContext))}})();function l(){o.value&&(n=e.getContainer())}C((()=>{a=!1,l()})),f((()=>{n||l()}));const i=h(o,(()=>{o.value&&!n&&(n=e.getContainer()),n&&i()}));return m((()=>{x((()=>{var t;o.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))}))})),()=>{var e;return o.value?a?null===(e=r.default)||void 0===e?void 0:e.call(r):n?y(R,{to:n},r):null:null}}}))}}}));
