{"version":3,"file":"Preloader.DA8MfKfh.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/vpWd1EBMbZPZRSUXMgKI/001xEZZqaAX21sIGs6Oo/Preloader.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useEffect,useRef,useState}from\"react\";const PATH=\"M84.0671 16.2757L77.2667 17.2318L84.0671 18.1876L84.3146 18.1544L84.5452 18.0592L84.743 17.9073L84.8949 17.7095L84.9905 17.4789L85.0228 17.2318L84.9905 16.9843L84.8949 16.7534L84.743 16.5555L84.5452 16.404L84.3146 16.3084L84.0671 16.2757ZM8.33151 13.9483V12.4525L8.55253 10.9728L8.9892 9.54148L9.632 8.1909L10.4673 6.9496L11.4768 5.8453L12.6502 4.89456L13.9254 4.14042L15.3112 3.5771L21.5872 1.55268L26.3993 0.000538037H13.1999L11.4768 0.113534L9.78349 0.450453L8.14856 1.0055L6.59972 1.76916L5.1643 2.72818L3.86629 3.86683L2.72764 5.16484L1.7682 6.60068L1.00496 8.1491L0.449915 9.78402L0.112996 11.4777L0 13.2004L0.112996 14.9231L0.449915 16.6168L1.00496 18.2517L1.7682 19.8001L2.72764 21.236L3.86629 22.534L5.1643 23.6722L6.59972 24.6316L8.14856 25.3953L9.78349 25.9503L11.4768 26.2869L13.1999 26.3999H26.3993L15.3112 22.8237L13.9254 22.26L12.6378 21.4988L11.4768 20.5555L10.4673 19.4508L9.632 18.2099L8.9892 16.8593L8.55253 15.428L8.33151 13.9483ZM58.8549 26.2488H60.585L59.619 25.9371C57.9625 25.4023 56.3057 24.8684 54.6492 24.3341C52.8905 23.767 51.1149 23.2567 49.3665 22.6573C49.2382 22.6134 49.1103 22.5687 48.9824 22.524C46.7299 21.7327 44.066 20.8705 42.4017 19.0642C41.8206 18.4338 41.4129 17.6648 41.0764 16.8821C40.9949 16.6925 40.9179 16.5017 40.843 16.3092C39.4129 12.6358 38.7747 8.72774 37.9729 4.88628C37.6832 3.49928 37.4634 2.13464 37.2987 0.725287C37.1658 -0.417507 36.5859 -0.138534 36.5859 1.06841V18.1876H36.5648V24.3792L36.5859 24.3895V25.2273C36.5859 25.5811 36.5764 26.2504 37.0615 26.25C42.9067 26.2467 48.7519 26.2488 54.597 26.2488H55.446H58.8549ZM93.0365 21.5882L94.5886 26.3999V13.2004L94.4756 11.4777L94.1387 9.78402L93.5836 8.1491L92.82 6.60068L91.861 5.16484L90.7223 3.86683L89.4243 2.72818L87.9885 1.76916L86.44 1.0055L84.8051 0.450453L83.1114 0.113534L81.3888 0.000538037L79.6661 0.113534L77.9724 0.450453L76.3374 1.0055L74.789 1.76916L73.3532 2.72818L72.0552 3.86683L70.9165 5.16484L69.9575 6.60068L69.1938 8.1491L68.6388 9.78402L68.3023 11.4777L68.1889 13.2004V26.3999L71.7654 15.3121L72.3288 13.926L73.0903 12.6383L74.0336 11.4773L75.1379 10.4678L76.3792 9.63295L77.7298 8.98974L79.1611 8.55307L80.6408 8.33204H82.1367L83.6164 8.55307L85.0477 8.98974L86.3982 9.63295L87.6391 10.4678L88.7439 11.4773L89.6942 12.6511L90.4487 13.926L91.012 15.3121L93.0365 21.5882ZM128.643 9.42393V0.390023L125.067 7.97857L124.503 8.92724L123.742 9.80845L122.798 10.6031L121.694 11.294L120.453 11.8656L119.102 12.3055L117.671 12.6044L116.192 12.7555H114.695L113.216 12.6044L111.785 12.3055L110.434 11.8656L109.193 11.294L108.089 10.6031L107.138 9.79975L106.384 8.92724L105.82 7.97857L103.796 3.68347L102.244 0.390023V9.42393L102.357 10.6031L102.693 11.7621L103.249 12.8813L104.012 13.9409L104.971 14.9235L106.11 15.8117L107.408 16.5911L108.844 17.2476L110.392 17.7703L112.027 18.1499L113.721 18.3804L114.14 18.3995L115.444 26.3816L116.747 18.3995L117.166 18.3804L118.86 18.1499L120.495 17.7703L122.043 17.2476L123.479 16.5911L124.777 15.8117L125.915 14.9235L126.875 13.9409L127.638 12.8813L128.193 11.7621L128.53 10.6031L128.643 9.42393Z\";function Logo({color,size}){return /*#__PURE__*/_jsx(\"svg\",{width:size*(129/27),height:size,viewBox:\"0 0 129 27\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-label\":\"CLAY\",children:/*#__PURE__*/_jsx(\"path\",{d:PATH,fill:color})});}/**\n * Clay Preloader\n *\n * @framerIntrinsicWidth 320\n * @framerIntrinsicHeight 180\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ClayPreloader(props){const isStatic=useIsStaticRenderer();const{backgroundColor=\"#F2EAE2\",logoColor=\"#87623E\",logoSize=64,minDisplayMs=1500,revealDuration=1400,dismissDuration=1e3,lockScroll=true}=props;if(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",background:backgroundColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\",borderRadius:\"inherit\"},children:/*#__PURE__*/_jsx(Logo,{color:logoColor,size:logoSize})});}return /*#__PURE__*/_jsx(Runtime,{backgroundColor:backgroundColor,logoColor:logoColor,logoSize:logoSize,minDisplayMs:minDisplayMs,revealDuration:revealDuration,dismissDuration:dismissDuration,lockScroll:lockScroll});}function Runtime({backgroundColor,logoColor,logoSize,minDisplayMs,revealDuration,dismissDuration,lockScroll}){const[done,setDone]=useState(false);const[removed,setRemoved]=useState(false);const start=useRef(0);if(start.current===0&&typeof performance!==\"undefined\"){start.current=performance.now();}useEffect(()=>{if(typeof window===\"undefined\")return;if(lockScroll){document.documentElement.style.overflow=\"hidden\";document.body.style.overflow=\"hidden\";}let dismissT;let removeT;const dismiss=()=>{const remaining=Math.max(0,minDisplayMs-(performance.now()-start.current));dismissT=window.setTimeout(()=>{setDone(true);if(lockScroll){document.documentElement.style.overflow=\"\";document.body.style.overflow=\"\";}removeT=window.setTimeout(()=>setRemoved(true),dismissDuration+200);},remaining);};if(document.readyState===\"complete\")dismiss();else window.addEventListener(\"load\",dismiss,{once:true});const failsafe=window.setTimeout(dismiss,8e3);return()=>{window.removeEventListener(\"load\",dismiss);clearTimeout(dismissT);clearTimeout(removeT);clearTimeout(failsafe);if(lockScroll){document.documentElement.style.overflow=\"\";document.body.style.overflow=\"\";}};},[minDisplayMs,dismissDuration,lockScroll]);if(removed)return null;const overlay={position:\"fixed\",top:0,left:0,right:0,bottom:0,background:backgroundColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:99999,transform:done?\"translateY(-100%)\":\"translateY(0)\",opacity:done?0:1,transition:`transform ${dismissDuration}ms cubic-bezier(0.76, 0, 0.24, 1), opacity ${Math.round(dismissDuration*.6)}ms ease ${Math.round(dismissDuration*.4)}ms`,pointerEvents:done?\"none\":\"auto\"};const logoWrap={opacity:0,clipPath:\"inset(0 100% 0 0)\",WebkitClipPath:\"inset(0 100% 0 0)\",animation:`clay-preloader-reveal ${revealDuration}ms cubic-bezier(0.65, 0, 0.35, 1) 200ms forwards`,transform:\"translateY(-2vh)\"};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:0,height:0},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes clay-preloader-reveal {\n                    0% { opacity: 0; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }\n                    15% { opacity: 1; }\n                    100% { opacity: 1; clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{style:overlay,\"aria-hidden\":done,children:/*#__PURE__*/_jsx(\"div\",{style:logoWrap,children:/*#__PURE__*/_jsx(Logo,{color:logoColor,size:logoSize})})})]});}addPropertyControls(ClayPreloader,{backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F2EAE2\"},logoColor:{type:ControlType.Color,title:\"Logo\",defaultValue:\"#87623E\"},logoSize:{type:ControlType.Number,title:\"Logo Size\",defaultValue:64,min:24,max:200,step:1,unit:\"px\"},lockScroll:{type:ControlType.Boolean,title:\"Lock Scroll\",defaultValue:true},minDisplayMs:{type:ControlType.Number,title:\"Min Display\",defaultValue:1500,min:0,max:5e3,step:100,unit:\"ms\"},revealDuration:{type:ControlType.Number,title:\"Reveal\",defaultValue:1400,min:400,max:3e3,step:100,unit:\"ms\"},dismissDuration:{type:ControlType.Number,title:\"Exit\",defaultValue:1e3,min:300,max:2500,step:100,unit:\"ms\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ClayPreloader\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"320\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"180\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Preloader.map"],"mappings":"oNAA8qG,SAAS,EAAK,CAAC,QAAM,QAAM,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAY,IAAI,GAAV,EAAc,OAAO,EAAK,QAAQ,aAAa,KAAK,OAAO,MAAM,6BAA6B,aAAa,OAAO,SAAsB,EAAK,OAAO,CAAC,EAAE,EAAK,KAAK,CAAK,CAAC,CAAC,CAAC,CAAE,CAQx5G,SAAwB,EAAc,EAAM,CAAC,IAAM,EAAS,EAAoB,EAAO,CAAC,kBAAgB,UAAU,YAAU,UAAU,WAAS,GAAG,eAAa,KAAK,iBAAe,KAAK,kBAAgB,IAAI,aAAW,IAAM,EAA6S,OAApS,EAA8B,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,WAAW,EAAgB,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,SAAS,SAAS,aAAa,SAAS,EAAE,SAAsB,EAAK,EAAK,CAAC,MAAM,EAAU,KAAK,CAAQ,CAAC,CAAC,CAAC,EAAuB,EAAK,EAAQ,CAAiB,kBAA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