import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Y as n,cr as r,k as i,sr as a}from"./axios-v6FV69Ne.js";import{t as o}from"./tooltip-aAycUXp4.js";var s=e(t());r();var c=function(e){return e?typeof e==`function`?e():e:null},l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},u=function(e){var t=e.title,n=e.content,r=e.prefixCls;return s.createElement(s.Fragment,null,t&&s.createElement(`div`,{className:`${r}-title`},c(t)),s.createElement(`div`,{className:`${r}-inner-content`},c(n)))},d=s.forwardRef(function(e,t){var r=e.prefixCls,c=e.title,d=e.content,f=e._overlay,p=e.placement,m=p===void 0?`top`:p,h=e.trigger,g=h===void 0?`hover`:h,_=e.mouseEnterDelay,v=_===void 0?.1:_,y=e.mouseLeaveDelay,b=y===void 0?.1:y,x=e.overlayStyle,S=x===void 0?{}:x,C=l(e,[`prefixCls`,`title`,`content`,`_overlay`,`placement`,`trigger`,`mouseEnterDelay`,`mouseLeaveDelay`,`overlayStyle`]),w=s.useContext(n).getPrefixCls,T=w(`popover`,r),E=w(),D=s.useMemo(function(){return f||(!c&&!d?null:s.createElement(u,{prefixCls:T,title:c,content:d}))},[f,c,d,T]);return s.createElement(o,a({placement:m,trigger:g,mouseEnterDelay:v,mouseLeaveDelay:b,overlayStyle:S},C,{prefixCls:T,ref:t,overlay:D,transitionName:i(E,`zoom-big`,C.transitionName)}))});export{c as n,d as t};