"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),n=require("react/jsx-runtime"),r=require("@material-ui/core");require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js");var o=require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),s=require("../../effects/useDelayedDcFullscreenElemOpen.js");exports.DcTooltip=function(i){var t=i.onOpen,l=i.onClose,u=i.open,c=i.title,p=i.TransitionProps,a=void 0===p?{}:p,d=e.__rest(i,["onOpen","onClose","open","title","TransitionProps"]),m=s.useDelayedDcFullscreenElemOpen({isOpen:!!u}),v=m.delayedIsOpen,D=m.requestOpen,C=m.requestClose,_="boolean"==typeof u;return n.jsx(r.Tooltip,e.__assign({},d,{open:v,onOpen:function(e){null==t||t(e),_||D()},onClose:function(e){null==l||l(e),_||C()},TransitionProps:e.__assign(e.__assign({},a),{timeout:0}),title:n.jsx(o.IsInsideDcFullscreenElemProvider,{children:c})}))};
