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