{"version":3,"file":"Preloader.Y6GCkrSz.mjs","names":["useState","useMemo","__esmMin","pe","init_npm_react_18_3_1","_e","c","init_jsx_runtime","motion","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_BWFVvmND","useIsStaticRenderer","ControlType","Preloader","props","isStatic","count","columns","complete","setComplete","panelIndexes","index","showOnCanvas","style","transitionDelay","transition","isLast","panelTransition","startTime","stagger","fill","init_Preloader"],"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":"A,0OAWG,SAAwBc,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,SAAOC,EAAYC,EAASJ,EAAoB,EAAQK,EAAM,KAAK,IAAI,GAAG,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