{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/nlN1xeBtDmN4DSNHRjFY/5tuWefZKSWgnw0ihyDj0/PreLoaderConnector.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";export function PreLoaderConnector(props){const{duration,connectedFrame}=props;const[isVisible,setIsVisible]=React.useState(true);React.useEffect(()=>{const timer=setTimeout(()=>{setIsVisible(false);},duration*1e3);return()=>clearTimeout(timer);},[duration]);return /*#__PURE__*/_jsx(AnimatePresence,{children:isVisible&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:1},exit:{opacity:0,transition:{duration:0}},style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:9999,background:\"transparent\"},children:connectedFrame?.length>0&&connectedFrame.map((frame,index)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:/*#__PURE__*/React.cloneElement(frame,{style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})},index))})});}addPropertyControls(PreLoaderConnector,{duration:{type:ControlType.Number,title:\"Duration\",defaultValue:3,min:1,max:10,unit:\"s\",step:.1,displayStepper:true},connectedFrame:{type:ControlType.Array,title:\"Connect Frame\",propertyControl:{type:ControlType.ComponentInstance}}});\nexport const __FramerMetadata__ = {\"exports\":{\"PreLoaderConnector\":{\"type\":\"reactComponent\",\"name\":\"PreLoaderConnector\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PreLoaderConnector.map"],
  "mappings": "4HAAoL,SAASA,EAAmBC,EAAM,CAAC,GAAK,CAAC,SAAAC,EAAS,eAAAC,CAAc,EAAEF,EAAW,CAACG,EAAUC,CAAY,EAAQC,EAAS,EAAI,EAAE,OAAMC,EAAU,IAAI,CAAC,IAAMC,EAAM,WAAW,IAAI,CAACH,EAAa,EAAK,CAAE,EAAEH,EAAS,GAAG,EAAE,MAAM,IAAI,aAAaM,CAAK,CAAE,EAAE,CAACN,CAAQ,CAAC,EAAsBO,EAAKC,EAAgB,CAAC,SAASN,GAAwBK,EAAKE,EAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,SAAS,QAAQ,IAAI,EAAE,KAAK,EAAE,MAAM,QAAQ,OAAO,QAAQ,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,OAAO,KAAK,WAAW,aAAa,EAAE,SAASR,GAAgB,OAAO,GAAGA,EAAe,IAAI,CAACS,EAAMC,IAAqBJ,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,QAAQ,EAAE,SAA4BK,EAAaF,EAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,OAAO,CAAC,CAAC,CAAC,EAAEC,CAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAACE,EAAoBf,EAAmB,CAAC,SAAS,CAAC,KAAKgB,EAAY,OAAO,MAAM,WAAW,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,IAAI,KAAK,GAAG,eAAe,EAAI,EAAE,eAAe,CAAC,KAAKA,EAAY,MAAM,MAAM,gBAAgB,gBAAgB,CAAC,KAAKA,EAAY,iBAAiB,CAAC,CAAC,CAAC",
  "names": ["PreLoaderConnector", "props", "duration", "connectedFrame", "isVisible", "setIsVisible", "ye", "ue", "timer", "p", "AnimatePresence", "motion", "frame", "index", "q", "addPropertyControls", "ControlType"]
}
