{"version":3,"file":"Preloader.C5WuInkA.mjs","names":["useState","useMemo"],"sources":["https:/framerusercontent.com/modules/x3trUQt1ztKZ842tzHFL/qCiRTQXIVS5wBznRE9pL/Preloader.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";import{useMemo,useState}from\"react\";/**\n * Column Preloader\n *\n * Recreates the original canvas Preloader as a configurable code component.\n * Each panel is pinned to the top while its lower edge rises upward.\n *\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 800\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function Preloader(props){const{columns=5,fill=\"#050404\",startTime=0,stagger=.1,transition={type:\"tween\",duration:1,ease:[.96,-.02,.38,1.01],delay:0},showOnCanvas=false,style}=props;const isStatic=useIsStaticRenderer();const count=Math.min(24,Math.max(1,Math.round(columns)));const[complete,setComplete]=useState(false);const panelIndexes=useMemo(()=>Array.from({length:count},(_,index)=>index),[count]);if(complete||isStatic&&!showOnCanvas){return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",pointerEvents:\"none\"}});}const transitionDelay=typeof transition.delay===\"number\"?transition.delay:0;return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",overflow:\"hidden\",pointerEvents:\"none\",contain:\"layout paint\"},children:panelIndexes.map(index=>{const isLast=index===count-1;const panelTransition={...transition,delay:transitionDelay+startTime+index*stagger};return /*#__PURE__*/_jsx(motion.div,{initial:isStatic?false:{scaleY:1},animate:{scaleY:isStatic?1:0},transition:panelTransition,onAnimationComplete:isLast&&!isStatic?()=>setComplete(true):undefined,style:{flex:\"1 1 0\",minWidth:0,height:\"100%\",backgroundColor:fill,transformOrigin:\"50% 0%\",willChange:\"transform\"}},index);})});}addPropertyControls(Preloader,{columns:{type:ControlType.Number,title:\"Columns\",defaultValue:5,min:1,max:24,step:1,displayStepper:true},fill:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#050404\"},startTime:{type:ControlType.Number,title:\"Start Time\",defaultValue:0,min:0,max:10,step:.05,unit:\"s\"},stagger:{type:ControlType.Number,title:\"Stagger\",defaultValue:.1,min:0,max:2,step:.01,unit:\"s\"},transition:{type:ControlType.Transition,title:\"Transition\",defaultValue:{type:\"tween\",duration:1,ease:[.96,-.02,.38,1.01],delay:0}},showOnCanvas:{description:\"Made by [Volt Supply](https://volt.supply)\",type:ControlType.Boolean,title:\"Canvas\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});Preloader.displayName=\"Preloader\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Preloader\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"1200\",\"framerDisableUnlink\":\"\",\"framerIntrinsicHeight\":\"800\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Preloader.map"],"mappings":"0OAWG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,UAAQ,EAAE,OAAK,UAAU,YAAU,EAAE,UAAQ,GAAG,aAAW,CAAC,KAAK,QAAQ,SAAS,EAAE,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,CAAC,EAAE,eAAa,GAAM,SAAO,EAAY,EAAS,EAAoB,EAAQ,EAAM,KAAK,IAAI,GAAG,KAAK,IAAI,EAAE,KAAK,MAAM,CAAO,CAAC,CAAC,EAAO,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAQ,EAAaC,MAAY,MAAM,KAAK,CAAC,OAAO,CAAK,GAAG,EAAE,IAAQ,CAAK,EAAE,CAAC,CAAK,CAAC,EAAE,GAAG,GAAU,GAAU,CAAC,EAAc,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