"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),i=require("@material-ui/core"),t=require("react"),s=require("classnames"),l=require("../../components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js"),n=require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),o=require("./DcTooltip.js"),a=require("./Tooltip.scss.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(s),d={medium:a.medium,large:a.large};exports.Tooltip=function(s){var c=s.children,v=s.disabled,D=s.title,p=s.interactive,m=void 0!==p&&p,y=s.className,T=s.size,h=void 0===T?"medium":T,j=s.enterDelay,I=void 0===j?100:j,b=s.leaveDelay,q=void 0===b?0:b,f=s.enterTouchDelay,x=void 0===f?700:f,C=s.leaveTouchDelay,_=void 0===C?1500:C,N=s.enterNextDelay,A=void 0===N?0:N,P=e.__rest(s,["children","disabled","title","interactive","className","size","enterDelay","leaveDelay","enterTouchDelay","leaveTouchDelay","enterNextDelay"]),F=l.useIsInsideDcApp(),g=n.useIsInsideDcFullscreenElem(),E=F&&!g?o.DcTooltip:i.Tooltip,L=v||!D?"":r.jsx("div",{className:a.title,children:D}),z={disableFocusListener:v,disableHoverListener:v,disableTouchListener:v},M=t.useMemo((function(){return{popper:u.default(a.root,d[h],y)}}),[y,h]);return r.jsx(E,e.__assign({title:L,interactive:m,classes:M,enterDelay:I,leaveDelay:q,enterTouchDelay:x,leaveTouchDelay:_,enterNextDelay:A},z,P,{children:c}))};
