const e=require("../_util/type.js"),t=require("../_util/warning.js"),n=require("../_util/classNames.js"),r=require("../_util/omit.js"),i=require("../_util/props-util/initDefaultProps.js"),a=require("../_util/props-util/index.js"),o=require("../config-provider/hooks/useConfigInject.js"),s=require("../_util/transition.js"),c=require("../tooltip/abstractTooltipProps.js"),l=require("../tooltip/Tooltip.js"),u=require("../tooltip/index.js"),d=require("./style/index.js");let f=require("vue");var p=()=>({...c.default(),content:e.anyType(),title:e.anyType()}),m=(0,f.defineComponent)({compatConfig:{MODE:3},name:`APopover`,inheritAttrs:!1,props:i.default(p(),{...l.tooltipDefaultProps(),trigger:`hover`,placement:`top`,mouseEnterDelay:.1,mouseLeaveDelay:.1}),setup(e,{expose:i,slots:c,attrs:l}){let p=(0,f.ref)();t.default(e.visible===void 0,`popover`,"`visible` will be removed in next major version, please use `open` instead."),i({getPopupDomNode:()=>p.value?.getPopupDomNode?.()});let{prefixCls:m,configProvider:h}=o.default(`popover`,e),[g,_]=d.default(m),v=(0,f.computed)(()=>h.getPrefixCls()),y=()=>{let{title:t=a.filterEmpty(c.title?.()),content:n=a.filterEmpty(c.content?.())}=e,r=!!(Array.isArray(t)?t.length:t),i=!!(Array.isArray(n)?n.length:t);return!r&&!i?null:(0,f.createVNode)(f.Fragment,null,[r&&(0,f.createVNode)(`div`,{class:`${m.value}-title`},[t]),(0,f.createVNode)(`div`,{class:`${m.value}-inner-content`},[n])])};return()=>{let t=n.default(e.overlayClassName,_.value);return g((0,f.createVNode)(u.default,{...r.default(e,[`title`,`content`]),...l,prefixCls:m.value,ref:p,overlayClassName:t,transitionName:s.getTransitionName(v.value,`zoom-big`,e.transitionName),"data-popover-inject":!0},{title:y,default:c.default}))}}}),h=e.withInstall(m);exports.default=h,exports.popoverProps=p;