{"version":3,"file":"PreLoaderConnector.D6oWHO35.mjs","names":["React.useState","__esmMin","z","init_npm_react_18_3_1","_e","c","init_jsx_runtime","ce","AnimatePresence","init_framer_motion_DhsWWWsN","motion","addPropertyControls","init_framer_CaDWdxiz","ControlType","PreLoaderConnector","props","isVisible","setIsVisible","timer","duration","connectedFrame","frame","index","init_PreLoaderConnector"],"sources":["https:/framerusercontent.com/modules/IT4H4HYkTMNrQYZgWVJG/AbNsK7cigcrwKCzxU4lo/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\":[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