let e=require("vue");var t=Symbol(`PortalContextKey`),n=(n,r={inTriggerContext:!0})=>{(0,e.provide)(t,{inTriggerContext:r.inTriggerContext,shouldRender:(0,e.computed)(()=>{let{sPopupVisible:e,popupRef:t,forceRender:r,autoDestroy:i}=n||{},a=!1;return(e||t||r)&&(a=!0),!e&&i&&(a=!1),a})})},r=()=>{n({},{inTriggerContext:!1});let r=(0,e.inject)(t,{shouldRender:(0,e.computed)(()=>!1),inTriggerContext:!1});return{shouldRender:(0,e.computed)(()=>r.shouldRender.value||r.inTriggerContext===!1)}};exports.useInjectPortal=r,exports.useProvidePortal=n;