{"version":3,"file":"KSC_Chrome_Preloader.BKMXtS4Z.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/GgX322mzokD22r37USII/CFGZzooytZ3n1lhqfEiR/KSC_Chrome_Preloader.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function Preloader({videoSrc}){const[loading,setLoading]=useState(true);useEffect(()=>{const maxWait=setTimeout(()=>setLoading(false),3e3);const handleLoad=()=>setLoading(false);window.addEventListener(\"load\",handleLoad);return()=>{clearTimeout(maxWait);window.removeEventListener(\"load\",handleLoad);};},[]);return /*#__PURE__*/_jsx(AnimatePresence,{children:loading&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(motion.div,{initial:{y:0},exit:{y:\"-100%\"},transition:{duration:.8,ease:[.65,0,.35,1]},style:{position:\"fixed\",inset:0,zIndex:9998,backgroundColor:\"#292626\"}},\"bg-panel\"),/*#__PURE__*/_jsx(motion.div,{initial:{opacity:1},exit:{opacity:0},transition:{duration:.3},style:{position:\"fixed\",inset:0,zIndex:9999,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"video\",{src:videoSrc,autoPlay:true,muted:true,playsInline:true,style:{width:100,height:\"auto\"}})},\"video-layer\")]})});}addPropertyControls(Preloader,{videoSrc:{type:ControlType.File,allowedFileTypes:[\"mp4\"],title:\"Video\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Preloader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./KSC_Chrome_Preloader.map"],"mappings":"qQAA2N,SAAwB,EAAU,CAAC,YAAU,CAAC,GAAK,CAAC,EAAQ,GAA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