"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=Symbol("PortalContextKey"),s=(t,l={inTriggerContext:!0})=>{e.provide(n,{inTriggerContext:l.inTriggerContext,shouldRender:e.computed(()=>{const{sPopupVisible:r,popupRef:u,forceRender:i,autoDestroy:d}=t||{};let o=!1;return(r||u||i)&&(o=!0),!r&&d&&(o=!1),o})})},a=()=>{s({},{inTriggerContext:!1});const t=e.inject(n,{shouldRender:e.computed(()=>!1),inTriggerContext:!1});return{shouldRender:e.computed(()=>t.shouldRender.value||t.inTriggerContext===!1)}};exports.useInjectPortal=a;exports.useProvidePortal=s;
