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