"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(t){var s=t.isOpen,o=e.useState(!1),u=o[0],i=o[1],c=n.useDcFullscreenElemsCoordinator(),d=c.requestOpen,l=c.requestClose,p=e.useState((function(){return r.v4()}))[0];return e.useEffect((function(){s?d({setIsOpened:i,id:p}):l({setIsOpened:i,id:p})}),[s]),e.useEffect((function(){return function(){l({setIsOpened:i,id:p},!0)}}),[]),{delayedIsOpen:u,requestOpen:function(){return d({setIsOpened:i,id:p})},requestClose:function(e){return l({setIsOpened:i,id:p},e)}}};
