"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/extends"),t=require("react"),i=require("clsx"),r=require("react-popper-tooltip"),o=require("react-transition-group"),n=require("@prom-ui/core/Portal");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}})),t.default=e,Object.freeze(t)}var d=l(e),s=a(t),u=l(i),c={content:"M5WYU",arrow:"sHrj0",animation:"DYqdH",root:"Xkx-7",white:"_6gvS7",black:"e8sBo",enter:"amIjy",enterActive:"oLDm5",enterDone:"aZSAB",exit:"FtdvP",exitActive:"Vnj23",exitDone:"er4Mu"},v=function(e){var t=e.children,i=e.content,l=e.isVisible,a=e.onVisibleChange,v=e.classes,f=e.isRenderPortal,p=void 0===f||f,m=e.isCloseOnOutsideClick,g=void 0===m||m,b=e.isCloseOnTriggerHidden,w=void 0===b||b,y=e.isDefaultVisible,h=void 0!==y&&y,O=e.isFollowCursor,j=void 0!==O&&O,x=e.isInteractive,E=void 0!==x&&x,P=e.isShowArrow,C=void 0===P||P,T=e.delayHide,q=void 0===T?0:T,S=e.delayShow,A=void 0===S?0:S,D=e.trigger,H=void 0===D?"hover":D,N=e.placement,V=void 0===N?"auto":N,k=e.theme,R=void 0===k?"white":k,I=e.offset,z=void 0===I?[0,12]:I,F=e.padding,M=void 0===F?16:F,_=e.width,B=void 0===_?"auto":_,Y=e.zIndex,L=void 0===Y?5e3:Y,U=r.usePopperTooltip({trigger:H,placement:V,delayHide:q,delayShow:A,onVisibleChange:a,offset:z,defaultVisible:h,closeOnOutsideClick:g,closeOnTriggerHidden:w,visible:l,followCursor:j,interactive:E}),W=U.getArrowProps,X=U.getTooltipProps,Z=U.setTooltipRef,G=U.setTriggerRef,J=U.visible,K=s.useRef(null);return s.createElement(s.Fragment,null,s.cloneElement(t,{ref:G}),s.createElement(o.CSSTransition,{nodeRef:K,classNames:c,timeout:166,in:J,unmountOnExit:!0},s.createElement(n.Portal,{isActive:p},s.createElement("div",d.default({ref:function(e){K.current=e,Z(e)}},X({className:u.default(c.root,c[R],null==v?void 0:v.root),style:{width:B,zIndex:L}})),s.createElement("div",{className:u.default(c.animation,null==v?void 0:v.animation)},C&&s.createElement("div",W({className:u.default(c.arrow,null==v?void 0:v.arrow)})),s.createElement("div",{className:u.default(c.content,null==v?void 0:v.content),style:{padding:M}},i))))))};v.displayName="Tooltip",exports.Tooltip=v,require("./style.production.css");
