{"version":3,"file":"HomeLoadingScreen.CkiZ3Lla.mjs","names":["useState","useRef","useCallback","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","le","_e","p","c","init_jsx_runtime","de","window","fontStore","init_framer_BL70qLPA","RenderTarget","fonts","css","className","init_qQJxbtP7b","loadingLabel","progress","loadingLabelStyle","init_LoadingLabel","HomeLoadingScreen","ready","setReady","setProgress","canSkip","setCanSkip","root","coverBounds","setCoverBounds","canvas","reveal","layers","layer","startedAt","prioritized","fontsReady","settledSince","completedAt","displayed","previousMedia","check","pageLayers","largestArea","cover","layerStyle","bounds","left","top","right","bottom","area","previous","firstScreen","media","now","inventoryChanged","index","settledMedia","total","settled","allReady","elapsedEstimate","target","poll","skipTimer","style","init_HomeLoadingScreen"],"sources":["https:/framerusercontent.com/modules/rkOyvhnU1h2QtoeIbdYk/EuqZRkbqXAi3xQsFN5FE/qQJxbtP7b.js","https:/framerusercontent.com/modules/GrPQZb4DxLnzfedyrkam/apVqaGEpAcZyg1roc79f/LoadingLabel.js","https:/framerusercontent.com/modules/C6GwP3iT5CUsiLRaOjio/pyKCZN6kUyGNnwFMf8jj/HomeLoadingScreen.js"],"sourcesContent":["// Generated by Framer (ee97fff)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Geist-500\",\"GF;Geist-700\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Geist\",source:\"google\",style:\"normal\",uiFamilyName:\"Geist\",url:\"https://fonts.gstatic.com/s/geist/v5/gyBhhwUxId8gMGYQMKR3pzfaWI_RruM4mJPby1QNtA.woff2\",weight:\"500\"},{cssFamilyName:\"Geist\",source:\"google\",style:\"normal\",uiFamilyName:\"Geist\",url:\"https://fonts.gstatic.com/s/geist/v5/gyBhhwUxId8gMGYQMKR3pzfaWI_Re-Q4mJPby1QNtA.woff2\",weight:\"700\"}]}];export const css=['.framer-s2ii9 .framer-styles-preset-1463lqx:not(.rich-text-wrapper), .framer-s2ii9 .framer-styles-preset-1463lqx.rich-text-wrapper h3 { --framer-font-family: \"Geist\", \"Geist Placeholder\", sans-serif; --framer-font-family-bold: \"Geist\", \"Geist Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: calc(var(--framer-root-font-size, 1rem) * 1.13); --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-letter-spacing: -0.03em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 40px; --framer-text-alignment: left; --framer-text-color: var(--token-35ce533d-90fd-45de-b94b-75330adda861, #121212); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 1199px) and (min-width: 810px) { .framer-s2ii9 .framer-styles-preset-1463lqx:not(.rich-text-wrapper), .framer-s2ii9 .framer-styles-preset-1463lqx.rich-text-wrapper h3 { --framer-font-family: \"Geist\", \"Geist Placeholder\", sans-serif; --framer-font-family-bold: \"Geist\", \"Geist Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-letter-spacing: -0.03em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 40px; --framer-text-alignment: left; --framer-text-color: var(--token-35ce533d-90fd-45de-b94b-75330adda861, #121212); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-s2ii9 .framer-styles-preset-1463lqx:not(.rich-text-wrapper), .framer-s2ii9 .framer-styles-preset-1463lqx.rich-text-wrapper h3 { --framer-font-family: \"Geist\", \"Geist Placeholder\", sans-serif; --framer-font-family-bold: \"Geist\", \"Geist Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 17px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-letter-spacing: -0.03em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 40px; --framer-text-alignment: left; --framer-text-color: var(--token-35ce533d-90fd-45de-b94b-75330adda861, #121212); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-s2ii9\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","export const loadingLabelStyle={color:\"var(--token-972af2b6-d59f-423b-8bfd-42c3439d4c75, rgb(166, 166, 166))\",font:\"12px Geist Mono, monospace\"};export function loadingLabel(progress){return`Loading… ${progress}%`;}\nexport const __FramerMetadata__ = {\"exports\":{\"loadingLabelStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"loadingLabel\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoadingLabel.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useCallback,useLayoutEffect,useRef,useState}from\"react\";import{RenderTarget}from\"framer\";// @ts-ignore Framer resolves the extension-qualified sibling module at runtime.\nimport{loadingLabel,loadingLabelStyle}from\"https://framerusercontent.com/modules/GrPQZb4DxLnzfedyrkam/apVqaGEpAcZyg1roc79f/LoadingLabel.js\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function HomeLoadingScreen({style}){const[ready,setReady]=useState(false);const[progress,setProgress]=useState(0);const[canSkip,setCanSkip]=useState(false);const root=useRef(null);const[coverBounds,setCoverBounds]=useState(null);const canvas=RenderTarget.current()===RenderTarget.canvas;const reveal=useCallback(()=>{if(!window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches){const layers=document.querySelectorAll('[data-framer-name=\"Home Entrance Content\"]');for(const layer of layers){if(!layer.getClientRects().length)continue;layer.animate([{opacity:0,translate:\"0 20px\"},{opacity:1,translate:\"0 0px\"}],{duration:700,easing:\"cubic-bezier(0.28, 0.17, 0.3, 1)\"});}}setReady(true);},[]);useLayoutEffect(()=>{if(canvas||ready)return;const startedAt=performance.now();const prioritized=new WeakSet;let fontsReady=!document.fonts;let settledSince=0;let completedAt=0;let displayed=0;let previousMedia=[];const check=()=>{const pageLayers=document.querySelectorAll('[data-framer-name=\"Page Loading Content\"]');let largestArea=0;let cover=null;for(const layer of Array.from(pageLayers??[])){const layerStyle=getComputedStyle(layer);if(layerStyle.position===\"fixed\"||layerStyle.visibility===\"hidden\")continue;const bounds=layer.getBoundingClientRect();const left=Math.max(0,bounds.left);const top=Math.max(0,bounds.top);const right=Math.min(window.innerWidth,bounds.right);const bottom=Math.min(window.innerHeight,bounds.bottom);if(right<=left||bottom<=top)continue;const area=(right-left)*(bottom-top);if(area<=largestArea)continue;largestArea=area;cover={left,top,right:window.innerWidth-right,bottom:window.innerHeight-bottom};}setCoverBounds(previous=>previous?.left===cover?.left&&previous?.top===cover?.top&&previous?.right===cover?.right&&previous?.bottom===cover?.bottom?previous:cover);const firstScreen=Array.from(document.querySelectorAll(\"img, video\")).filter(media=>{const bounds=media.getBoundingClientRect();return bounds.width>0&&bounds.height>0&&bounds.bottom>0&&bounds.top<window.innerHeight&&bounds.right>0&&bounds.left<window.innerWidth&&media.getClientRects().length>0&&getComputedStyle(media).visibility===\"visible\";});const now=performance.now();const inventoryChanged=firstScreen.length!==previousMedia.length||firstScreen.some((media,index)=>media!==previousMedia[index]);previousMedia=firstScreen;const settledMedia=firstScreen.filter(media=>{if(!prioritized.has(media)){prioritized.add(media);if(media instanceof HTMLImageElement&&media.loading===\"lazy\")media.loading=\"eager\";if(media instanceof HTMLVideoElement)media.preload=\"auto\";}if(media instanceof HTMLImageElement)return media.complete&&Boolean(media.currentSrc||media.src);return media.readyState>=2||Boolean(media.error);}).length;const total=firstScreen.length+2;const settled=settledMedia+Number(fontsReady)+Number(document.readyState===\"complete\");if(inventoryChanged||settled!==total){settledSince=0;completedAt=0;}else if(!settledSince){settledSince=now;}const allReady=settledSince>0&&now-settledSince>=350;const elapsedEstimate=Math.floor(90*(1-Math.exp(-(now-startedAt)/2200)));const target=allReady?100:Math.min(97,Math.max(elapsedEstimate,Math.floor(100*settled/total)));displayed=Math.max(displayed,Math.min(target,displayed+8));setProgress(displayed===100&&!allReady?99:displayed);if(allReady&&displayed===100){if(!completedAt)completedAt=now;if(now-completedAt>=180){clearInterval(poll);clearTimeout(skipTimer);reveal();}}};const poll=window.setInterval(check,50);const skipTimer=window.setTimeout(()=>setCanSkip(true),15e3);check();document.fonts?.ready.then(()=>{fontsReady=true;});return()=>{clearInterval(poll);clearTimeout(skipTimer);};},[canvas,ready,reveal]);return /*#__PURE__*/_jsx(\"div\",{ref:root,style:{...style,pointerEvents:\"none\"},children:!ready&&!canvas&&/*#__PURE__*/_jsxs(\"div\",{role:\"status\",style:{position:\"fixed\",...coverBounds,zIndex:9,visibility:coverBounds?\"visible\":\"hidden\",display:\"grid\",placeItems:\"center\",pointerEvents:\"auto\",background:\"var(--token-c4c0c9d2-546e-4038-b872-dd5d46e58f89, #fff)\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`[data-framer-name=\"Home Intro Entrance\"] { translate: -200vw 0; }`}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{style:loadingLabelStyle,children:loadingLabel(progress)}),canSkip&&/*#__PURE__*/_jsx(\"button\",{onClick:reveal,style:{marginTop:12},children:\"Continue to site\"})]})]})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HomeLoadingScreen\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\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