"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 l(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 a=l(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:"OAIu0",arrow:"zAGk6",animation:"N9MJt",root:"Wl-Xm",white:"oB2Pd",black:"kSaUV",enter:"t5jYJ",enterActive:"A3Dwj",enterDone:"-J0vk",exit:"mHKey",exitActive:"UibNa",exitDone:"MIlrs"},u=function(e){var t=e.children,n=e.content,l=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,O=void 0===b||b,y=e.isDefaultVisible,w=void 0!==y&&y,h=e.isFollowCursor,j=void 0!==h&&h,P=e.isInteractive,E=void 0!==P&&P,x=e.isShowArrow,C=void 0===x||x,T=e.delayHide,A=void 0===T?0:T,N=e.delayShow,k=void 0===N?0:N,q=e.trigger,S=void 0===q?"hover":q,V=e.placement,D=void 0===V?"auto":V,H=e.theme,I=void 0===H?"white":H,z=e.offset,J=void 0===z?[0,12]:z,M=e.padding,R=void 0===M?16:M,F=e.width,U=void 0===F?"auto":F,_=e.zIndex,B=void 0===_?900:_,G=i.usePopperTooltip({trigger:S,placement:D,delayHide:A,delayShow:k,onVisibleChange:u,offset:J,defaultVisible:w,closeOnOutsideClick:g,closeOnTriggerHidden:O,visible:l,followCursor:j,interactive:E}),K=G.getArrowProps,W=G.getTooltipProps,X=G.setTooltipRef,Y=G.setTriggerRef,L=G.visible;return a.createElement(a.Fragment,null,a.cloneElement(t,{ref:Y}),a.createElement(r.CSSTransition,{classNames:c,timeout:166,in:L,unmountOnExit:!0},a.createElement(o.Portal,{isActive:p},a.createElement("div",d({ref:X},W({className:s.default(c.root,c[I],null==v?void 0:v.root),style:{width:U,zIndex:B}})),a.createElement("div",{className:s.default(c.animation,null==v?void 0:v.animation)},C&&a.createElement("div",K({className:s.default(c.arrow,null==v?void 0:v.arrow)})),a.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.v2.css");
