{"version":3,"file":"PreLoaderConnector.CyNHNzmD.mjs","names":["Image","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","React.useState"],"sources":["https:/framerusercontent.com/modules/g8FvlpT5EuJV8coOTf7d/wC7fgKJmoIQ8eIrv76c8/wmZEqp0yx.js","https:/framerusercontent.com/modules/ivF4nJiYpePwvgGiKvJs/5Qu0Nglpq77syCGcTQu0/PreLoaderConnector.js"],"sourcesContent":["// Generated by Framer (86f5ff9)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useOnVariantChange,useVariantState,withCSS,withFX,withOptimizedAppearEffect}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const ImageWithFXWithOptimizedAppearEffect=withOptimizedAppearEffect(withFX(Image));const cycleOrder=[\"w4tillrgy\",\"h0OxnBkBr\",\"LOgwjOwRC\"];const serializationHash=\"framer-r8NdT\";const variantClassNames={h0OxnBkBr:\"framer-v-1lb8flo\",LOgwjOwRC:\"framer-v-1v8s4w6\",w4tillrgy:\"framer-v-1xyp36d\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.9,ease:[.96,-.02,.38,1.01],type:\"tween\"};const transformTemplate1=(_,t)=>`translate(-50%, -50%) ${t}`;const transition2={delay:0,duration:2.1,ease:[.56,.22,.05,.99],type:\"tween\"};const animation={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,transition:transition2,x:0,y:0};const animation1={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:640};const transformTemplate2=(_,t)=>`translateX(-50%) ${t}`;const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"1\":\"w4tillrgy\",\"2\":\"h0OxnBkBr\",\"3\":\"LOgwjOwRC\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"w4tillrgy\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"w4tillrgy\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onAppear18b601=activeVariantCallback(async(...args)=>{await delay(()=>setVariant(\"h0OxnBkBr\"),1500);});const onAppear1fojsc0=activeVariantCallback(async(...args)=>{setVariant(\"LOgwjOwRC\");});useOnVariantChange(baseVariant,{default:onAppear18b601,h0OxnBkBr:onAppear1fojsc0,LOgwjOwRC:undefined});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1xyp36d\",className,classNames),\"data-framer-name\":\"1\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"w4tillrgy\",ref:refBinding,style:{...style},...addPropertyOverrides({h0OxnBkBr:{\"data-framer-name\":\"2\"},LOgwjOwRC:{\"data-framer-name\":\"3\",\"data-highlight\":undefined}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(ImageWithFXWithOptimizedAppearEffect,{__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,animate:animation,background:{alt:\"\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+((componentViewport?.height||939)*.5005324813631525-50)),pixelHeight:867,pixelWidth:1200,positionX:\"center\",positionY:\"center\",sizes:`min(${componentViewport?.width||\"100vw\"} / 8, 150px)`,src:\"https://framerusercontent.com/images/RVuCHReJ88zGUj4fB0fX9OY8xl4.png\",srcSet:\"https://framerusercontent.com/images/RVuCHReJ88zGUj4fB0fX9OY8xl4.png?scale-down-to=512 512w,https://framerusercontent.com/images/RVuCHReJ88zGUj4fB0fX9OY8xl4.png?scale-down-to=1024 1024w,https://framerusercontent.com/images/RVuCHReJ88zGUj4fB0fX9OY8xl4.png 1200w\"},className:\"framer-3eavj7\",\"data-framer-appear-id\":\"3eavj7\",initial:animation1,layoutDependency:layoutDependency,layoutId:\"tbshxWCQR\",optimized:true,transformTemplate:transformTemplate1,...addPropertyOverrides({LOgwjOwRC:{background:{alt:\"\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+-136),pixelHeight:867,pixelWidth:1200,positionX:\"center\",positionY:\"center\",sizes:`min(${componentViewport?.width||\"100vw\"} / 8, 150px)`,src:\"https://framerusercontent.com/images/RVuCHReJ88zGUj4fB0fX9OY8xl4.png\",srcSet:\"https://framerusercontent.com/images/RVuCHReJ88zGUj4fB0fX9OY8xl4.png?scale-down-to=512 512w,https://framerusercontent.com/images/RVuCHReJ88zGUj4fB0fX9OY8xl4.png?scale-down-to=1024 1024w,https://framerusercontent.com/images/RVuCHReJ88zGUj4fB0fX9OY8xl4.png 1200w\"},transformTemplate:transformTemplate2}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1g084ze\",\"data-framer-name\":\"BG\",layoutDependency:layoutDependency,layoutId:\"M54D6Sqhc\",style:{backgroundColor:\"rgb(10, 10, 10)\"}})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-r8NdT.framer-1yfq4w7, .framer-r8NdT .framer-1yfq4w7 { display: block; }\",\".framer-r8NdT.framer-1xyp36d { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: 939px; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: 1200px; }\",\".framer-r8NdT .framer-3eavj7 { aspect-ratio: 1.5 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 100px); left: 50%; max-width: 150px; overflow: visible; position: absolute; top: 50%; width: 13%; z-index: 1; }\",\".framer-r8NdT .framer-1g084ze { flex: 1 0 0px; height: 1px; overflow: visible; position: relative; width: 100%; z-index: 0; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-r8NdT.framer-1xyp36d { gap: 0px; } .framer-r8NdT.framer-1xyp36d > * { margin: 0px; margin-bottom: calc(0px / 2); margin-top: calc(0px / 2); } .framer-r8NdT.framer-1xyp36d > :first-child { margin-top: 0px; } .framer-r8NdT.framer-1xyp36d > :last-child { margin-bottom: 0px; } }\",\".framer-r8NdT.framer-v-1v8s4w6 .framer-3eavj7 { top: -136px; }\",\".framer-r8NdT.framer-v-1v8s4w6 .framer-1g084ze { flex: none; height: 2px; left: 0px; position: absolute; right: 0px; top: -2px; width: unset; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 939\n * @framerIntrinsicWidth 1200\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"h0OxnBkBr\":{\"layout\":[\"fixed\",\"fixed\"]},\"LOgwjOwRC\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerwmZEqp0yx=withCSS(Component,css,\"framer-r8NdT\");export default FramerwmZEqp0yx;FramerwmZEqp0yx.displayName=\"PreLoader\";FramerwmZEqp0yx.defaultProps={height:939,width:1200};addPropertyControls(FramerwmZEqp0yx,{variant:{options:[\"w4tillrgy\",\"h0OxnBkBr\",\"LOgwjOwRC\"],optionTitles:[\"1\",\"2\",\"3\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerwmZEqp0yx,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerwmZEqp0yx\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"h0OxnBkBr\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"LOgwjOwRC\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicHeight\":\"939\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"1200\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./wmZEqp0yx.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 PreLoaderConnector(props){const{duration,connectedFrame}=props;const[isVisible,setIsVisible]=React.useState(true);React.useEffect(()=>{const timer=setTimeout(()=>{setIsVisible(false);},duration*1e3);return()=>clearTimeout(timer);},[duration]);return /*#__PURE__*/_jsx(AnimatePresence,{children:isVisible&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:1},exit:{opacity:0,transition:{duration:0}},style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:9999,background:\"transparent\"},children:connectedFrame?.length>0&&connectedFrame.map((frame,index)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:/*#__PURE__*/React.cloneElement(frame,{style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})},index))})});}addPropertyControls(PreLoaderConnector,{duration:{type:ControlType.Number,title:\"Duration\",defaultValue:3,min:1,max:10,unit:\"s\",step:.1,displayStepper:true},connectedFrame:{type:ControlType.Array,title:\"Connect Frame\",propertyControl:{type:ControlType.ComponentInstance}}});\nexport const __FramerMetadata__ = {\"exports\":{\"PreLoaderConnector\":{\"type\":\"reactComponent\",\"name\":\"PreLoaderConnector\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PreLoaderConnector.map"],"mappings":"sYAC4rB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,mDAA3yB,IAAwO,IAAkE,IAA4B,CAAgC,EAAqC,EAA0B,EAAOA,EAAM,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,mBAAmB,CAA8L,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,KAAK,IAAI,KAAK,CAAC,KAA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