"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("react/jsx-runtime"),n=require("@material-ui/core");require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js");var o=require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),i=require("../../effects/useDelayedDcFullscreenElemOpen.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(e),c=s(r),u=["onOpen","onClose","open","title","TransitionProps"];function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function a(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?p(Object(t),!0).forEach((function(r){l.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}exports.DcTooltip=function(e){var r=e.onOpen,s=e.onClose,l=e.open,p=e.title,f=e.TransitionProps,O=void 0===f?{}:f,d=c.default(e,u),b=i.useDelayedDcFullscreenElemOpen({isOpen:!!l}),j=b.delayedIsOpen,m=b.requestOpen,v=b.requestClose,P="boolean"==typeof l;return t.jsx(n.Tooltip,a(a({},d),{},{open:j,onOpen:function(e){null==r||r(e),P||m()},onClose:function(e){null==s||s(e),P||v()},TransitionProps:a(a({},O),{},{timeout:0}),title:t.jsx(o.IsInsideDcFullscreenElemProvider,{children:p})}))};
//# sourceMappingURL=DcTooltip.js.map
