{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/7Tsi2Tb5GXcfzXIlPxFZ/p24zkqbxrOTDyOmESxL5/Preloader.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 PreLoader(props){const{duration,backgroundColor,exitAnimation,exitSpeed,connectedFrame}=props;const[isVisible,setIsVisible]=React.useState(true);React.useEffect(()=>{setTimeout(()=>setIsVisible(false),duration*1e3)// Convert seconds to milliseconds\n;},[duration]);// Exit variants including Swipe Up Round and Swipe Down Round\nconst exitVariants={fadeOut:{opacity:0,transition:{duration:exitSpeed}},swipeUp:{y:\"-100vh\",transition:{duration:exitSpeed}},scaleDown:{scale:0,transition:{duration:exitSpeed}},slideLeft:{x:\"-100vw\",transition:{duration:exitSpeed}},slideRight:{x:\"100vw\",transition:{duration:exitSpeed}},rotateOut:{rotate:90,opacity:0,transition:{duration:exitSpeed}},swipeUpRound:{y:\"-100vh\",borderBottomLeftRadius:\"50%\",borderBottomRightRadius:\"50%\",transition:{duration:exitSpeed}},swipeDownRound:{y:\"100vh\",borderTopLeftRadius:\"50%\",borderTopRightRadius:\"50%\",transition:{duration:exitSpeed}}};// Container style for centering content, including connectedFrame\nconst containerStyle={display:\"flex\",justifyContent:\"center\",alignItems:\"center\",width:\"100%\",height:\"100%\",position:\"absolute\",top:\"0\",left:\"0\"};return /*#__PURE__*/_jsx(AnimatePresence,{children:isVisible&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:1},exit:exitVariants[exitAnimation],style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",backgroundColor:backgroundColor,zIndex:9999},children:/*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:(connectedFrame===null||connectedFrame===void 0?void 0:connectedFrame.length)>0&&connectedFrame.map((frame,index)=>/*#__PURE__*/_jsx(React.Fragment,{children:frame},index))})})});}addPropertyControls(PreLoader,{duration:{type:ControlType.Number,title:\"Duration\",defaultValue:3,min:1,max:10,unit:\"s\",step:.1,displayStepper:true},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#FFFFFF\"},exitAnimation:{type:ControlType.Enum,title:\"Exit Animation\",options:[\"fadeOut\",\"swipeUp\",\"scaleDown\",\"slideLeft\",\"slideRight\",\"rotateOut\",\"swipeUpRound\",\"swipeDownRound\"],optionTitles:[\"Fade Out\",\"Swipe Up\",\"Scale Down\",\"Slide Left\",\"Slide Right\",\"Rotate Out\",\"Swipe Up Round\",\"Swipe Down Round\"],defaultValue:\"fadeOut\"},exitSpeed:{type:ControlType.Number,title:\"Exit Speed\",defaultValue:.5,min:.1,max:2,unit:\"s\",step:.1,displayStepper:true},connectedFrame:{type:ControlType.Array,title:\"Connect Frame\",propertyControl:{type:ControlType.ComponentInstance}}});\nexport const __FramerMetadata__ = {\"exports\":{\"PreLoader\":{\"type\":\"reactComponent\",\"name\":\"PreLoader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Preloader.map"],
  "mappings": "gIAAAA,IAAoL,SAASC,EAAUC,EAAM,CAAC,GAAK,CAAC,SAAAC,EAAS,gBAAAC,EAAgB,cAAAC,EAAc,UAAAC,EAAU,eAAAC,CAAc,EAAEL,EAAW,CAACM,EAAUC,CAAY,EAAQC,EAAS,EAAI,EAAQC,EAAU,IAAI,CAAC,WAAW,IAAIF,EAAa,EAAK,EAAEN,EAAS,GAAG,CACjZ,EAAE,CAACA,CAAQ,CAAC,EACb,IAAMS,EAAa,CAAC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,SAASN,CAAS,CAAC,EAAE,QAAQ,CAAC,EAAE,SAAS,WAAW,CAAC,SAASA,CAAS,CAAC,EAAE,UAAU,CAAC,MAAM,EAAE,WAAW,CAAC,SAASA,CAAS,CAAC,EAAE,UAAU,CAAC,EAAE,SAAS,W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gB,EAAE,aAAa,CAAC,WAAW,WAAW,aAAa,aAAa,cAAc,aAAa,iBAAiB,kBAAkB,EAAE,aAAa,SAAS,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,aAAa,aAAa,GAAG,IAAI,GAAG,IAAI,EAAE,KAAK,IAAI,KAAK,GAAG,eAAe,EAAI,EAAE,eAAe,CAAC,KAAKA,EAAY,MAAM,MAAM,gBAAgB,gBAAgB,CAAC,KAAKA,EAAY,iBAAiB,CAAC,CAAC,CAAC",
  "names": ["init_ssg_sandbox_shims", "PreLoader", "props", "duration", "backgroundColor", "exitAnimation", "exitSpeed", "connectedFrame", "isVisible", "setIsVisible", "ye", "ue", "exitVariants", "containerStyle", "p", "AnimatePresence", "motion", "frame", "index", "x", "addPropertyControls", "ControlType"]
}
