"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("uuid"),n=require("../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js");require("../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),exports.useDelayedDcFullscreenElemOpen=function(s){var t=s.isOpen,o=e.useState(!1),u=o[0],i=o[1],c=n.useDcFullscreenElemsCoordinator(),l=c.requestOpen,d=c.requestClose,p=e.useState((function(){return r.v4()}))[0];return e.useEffect((function(){t?l({setIsOpened:i,id:p}):d({setIsOpened:i,id:p})}),[t]),e.useEffect((function(){return function(){d({setIsOpened:i,id:p},!0)}}),[]),{delayedIsOpen:u}};
