{"version":3,"file":"Preloader.c1M0HCQr.mjs","names":["React.useState","React.Fragment"],"sources":["https:/framerusercontent.com/modules/nKkSAwbGIdKaKtfy6tvt/QtTGUFwmUy3mBg7tcCvw/Hig.js","https:/framerusercontent.com/modules/UaGrmCq6HOwBdiInZcIC/g5cSLoPia47NkQEyshyH/Preloader.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{Frame,addPropertyControls,ControlType}from\"framer\";export function TextSelectionColor(props){const{backgroundColor,textColor}=props;return /*#__PURE__*/_jsxs(Frame,{background:\"\",style:{width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                ::selection {\n                    background: ${backgroundColor};\n                    color: ${textColor};\n                }\n                `}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",color:textColor,overflow:\"auto\",userSelect:\"text\"},children:props.children})]});}TextSelectionColor.defaultProps={backgroundColor:\"#a0a0a0\",textColor:\"#ffffff\",children:\"Select some of this text to see the custom selection colors.\"};addPropertyControls(TextSelectionColor,{backgroundColor:{title:\"Background\",type:ControlType.Color,defaultValue:\"#a0a0a0\"},textColor:{title:\"Text Color\",type:ControlType.Color,defaultValue:\"#ffffff\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"TextSelectionColor\":{\"type\":\"reactComponent\",\"name\":\"TextSelectionColor\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hig.map","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":"8PAAmH,SAAgB,EAAmB,EAAM,CAAC,GAAK,CAAC,kBAAgB,aAAW,EAAM,OAAoB,EAAM,EAAM,CAAC,WAAW,GAAG,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;kCAElS,EAAgB;6BACrB,EAAU;;kBAErB,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,MAAM,EAAU,SAAS,OAAO,WAAW,OAAO,CAAC,SAAS,EAAM,SAAS,CAAC,CAAC,CAAC,CAAC,kBALrG,IAA0D,CAK6C,EAAmB,aAAa,CAAC,gBAAgB,UAAU,UAAU,UAAU,SAAS,+DAA+D,CAAC,EAAoB,EAAmB,CAAC,gBAAgB,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,UAAU,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,CAAC,ICLpV,SAAgB,EAAU,EAAM,CAAC,GAAK,CAAC,WAAS,kBAAgB,gBAAc,YAAU,kBAAgB,EAAW,CAAC,EAAU,GAAcA,EAAe,GAAK,CAAC,MAAoB,CAAC,eAAe,EAAa,GAAM,CAAC,EAAS,IAAI,EAChZ,CAAC,EAAS,CAAC,CACd,IAAM,EAAa,CAAC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,EAAU,CAAC,CAAC,QAAQ,CAAC,EA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