"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("clsx"),i=require("react-popper-tooltip"),r=require("react-transition-group"),o=require("@prom-ui/core/Portal");function n(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 l=a(e),s=n(t);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},d.apply(this,arguments)}var 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"},u=function(e){var t=e.children,n=e.content,a=e.isVisible,u=e.onVisibleChange,v=e.classes,f=e.isRenderPortal,p=void 0===f||f,m=e.isCloseOnOutsideClick,g=void 0===m||m,b=e.isCloseOnTriggerHidden,y=void 0===b||b,O=e.isDefaultVisible,h=void 0!==O&&O,w=e.isFollowCursor,j=void 0!==w&&w,P=e.isInteractive,x=void 0!==P&&P,E=e.isShowArrow,C=void 0===E||E,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,I=void 0===k?"white":k,z=e.offset,F=void 0===z?[0,12]:z,M=e.padding,R=void 0===M?16:M,_=e.width,B=void 0===_?"auto":_,Y=e.zIndex,L=void 0===Y?900:Y,U=i.usePopperTooltip({trigger:H,placement:V,delayHide:q,delayShow:A,onVisibleChange:u,offset:F,defaultVisible:h,closeOnOutsideClick:g,closeOnTriggerHidden:y,visible:a,followCursor:j,interactive:x}),W=U.getArrowProps,X=U.getTooltipProps,Z=U.setTooltipRef,G=U.setTriggerRef,J=U.visible;return l.createElement(l.Fragment,null,l.cloneElement(t,{ref:G}),l.createElement(r.CSSTransition,{classNames:c,timeout:166,in:J,unmountOnExit:!0},l.createElement(o.Portal,{isActive:p},l.createElement("div",d({ref:Z},X({className:s.default(c.root,c[I],null==v?void 0:v.root),style:{width:B,zIndex:L}})),l.createElement("div",{className:s.default(c.animation,null==v?void 0:v.animation)},C&&l.createElement("div",W({className:s.default(c.arrow,null==v?void 0:v.arrow)})),l.createElement("div",{className:s.default(c.content,null==v?void 0:v.content),style:{padding:R}},n))))))};u.displayName="Tooltip",exports.Tooltip=u,require("./style.production.css");
