import{s as S,f as r,ad as w,y as o,b0 as N,K as T,ac as P,ae as k,z as B,D as H}from"./index-DT8qTvyx.js";var j=function(a){S(t,a);function t(e){return a.call(this,e)||this}return t.prototype.renderBody=function(){var e=this.props,m=e.render,l=e.classnames,d=e.body,C=e.className,n=e.wrapperComponent,p=e.inline,c=e.style,u=e.data,y=e.themeCss,h=e.wrapperCustomStyle,i=e.id,f=n||(p?"span":"div");return r.createElement(f,{className:l("TooltipWrapper",C,{"TooltipWrapper--inline":p},w(o(o({},this.props),{name:"baseControlClassName",id:i,themeCss:y})),w(o(o({},this.props),{name:"wrapperCustomStyle",id:i,themeCss:h}))),style:N(c,u)},m("body",d))},t.prototype.render=function(){var e=this.props,m=e.classPrefix,l=e.classnames,d=e.tooltipClassName,C=e.tooltipTheme,n=e.container,p=e.placement,c=e.rootClose,u=e.tooltipStyle,y=e.title,h=e.content,i=e.tooltip,f=e.mouseEnterDelay,D=e.mouseLeaveDelay,E=e.trigger,W=e.offset,_=e.showArrow,x=e.disabled,L=e.enterable,v=e.data,s=e.env,R=e.popOverContainer,A=e.wrapperCustomStyle,b=e.id,g=e.themeCss,O={title:T(y,v),content:T(h||i,v),style:N(u,v),placement:p,trigger:E,rootClose:c,container:n!==void 0?n:R||(s==null?void 0:s.getModalContainer),tooltipTheme:C,tooltipClassName:l(d,w(o(o({},this.props),{name:"tooltipControlClassName",id:b,themeCss:g}))),mouseEnterDelay:f,mouseLeaveDelay:D,offset:W,showArrow:_,disabled:x,enterable:L,filterHtml:s.filterHtml};return r.createElement(r.Fragment,null,r.createElement(P,{classPrefix:m,classnames:l,tooltip:O},this.renderBody()),r.createElement(k,o({},this.props,{config:{wrapperCustomStyle:A,id:b,themeCss:g,classNames:[{key:"baseControlClassName"},{key:"tooltipControlClassName"}]},env:s})))},t.defaultProps={placement:"top",trigger:"hover",rootClose:!0,mouseEnterDelay:0,mouseLeaveDelay:200,inline:!1,wrap:!1,tooltipTheme:"light"},t}(r.Component),F=function(a){S(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t=B([H({type:"tooltip-wrapper"})],t),t}(j);export{F as TooltipWrapperRenderer,j as default};
