"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=require("../_util/classNames.js"),N=require("../_util/omit.js"),u=require("../_util/props-util/index.js"),C=require("../_util/transition.js"),i=require("../_util/type.js"),h=require("../_util/warning.js"),x=require("../config-provider/hooks/useConfigInject.js"),D=require("../tooltip/index.js"),T=require("../tooltip/Tooltip.js"),A=require("../tooltip/abstractTooltipProps.js"),b=require("./style/index.js"),$=require("../_util/props-util/initDefaultProps.js"),c=()=>({...A.default(),content:i.anyType(),title:i.anyType()}),E=e.defineComponent({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:$.default(c(),{...T.tooltipDefaultProps(),trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1}),setup(r,{expose:d,slots:n,attrs:p}){const l=e.ref();h.default(r.visible===void 0),d({getPopupDomNode:()=>l.value?.getPopupDomNode?.()});const{prefixCls:o,configProvider:f}=x.default("popover",r),[v,m]=b.default(o),y=e.computed(()=>f.getPrefixCls()),g=()=>{const{title:t=u.filterEmpty(n.title?.()),content:a=u.filterEmpty(n.content?.())}=r,s=!!(Array.isArray(t)?t.length:t),P=!!(Array.isArray(a)?a.length:t);return!s&&!P?null:e.createVNode(e.Fragment,null,[s&&e.createVNode("div",{class:`${o.value}-title`},[t]),e.createVNode("div",{class:`${o.value}-inner-content`},[a])])};return()=>{const t=q.default(r.overlayClassName,m.value);return v(e.createVNode(D.default,{...N.default(r,["title","content"]),...p,prefixCls:o.value,ref:l,overlayClassName:t,transitionName:C.getTransitionName(y.value,"zoom-big",r.transitionName),"data-popover-inject":!0},{title:g,default:n.default}))}}}),S=i.withInstall(E);exports.default=S;exports.popoverProps=c;
