{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/LrEILDqTkfazWCljbHLc/O6sC4qN2txb6DwgyjO5B/Custom_Overrides.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";import React from\"react\";import{useState,useEffect}from\"react\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}export function withHover(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,whileHover:{scale:1.05}});};}export function withRandomColor(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});};}export function withLogChild(Component){return props=>{const{children,...rest}=props;console.log(children);console.log(rest);React.Children.map(children,child=>{console.log(child);});return /*#__PURE__*/_jsx(Component,{...rest,children:children});};}export function withHighZIndex(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{zIndex:9999,width:\"100%\",height:\"100vh\"}});};}export function withBannerPosition(Component){return props=>{const[topPosition,setTopPosition]=useState(()=>{const bannerVisibility=localStorage.getItem(\"bannerVisibility\");return bannerVisibility===\"true\"||bannerVisibility===null?51:0;});useEffect(()=>{const bannerVisibility=localStorage.getItem(\"bannerVisibility\");setTopPosition(bannerVisibility===\"true\"||bannerVisibility===null?51:0);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{top:topPosition,width:\"100%\"}});};}// Override to apply border-radius to nested SVG elements\nexport function withSvgBorderRadius(Component){return props=>{React.useEffect(()=>{const heroAnimationElement=document.querySelector(\"#hero-animation\");if(heroAnimationElement){let observer;// Function to check for <dotlottie-player> and apply styles\nconst checkAndApplyStyles=()=>{const dotLottiePlayer=heroAnimationElement.querySelector(\"dotlottie-player\");if(dotLottiePlayer){// Access the shadow root of <dotlottie-player>\nconst dotLottieShadowRoot=dotLottiePlayer.shadowRoot;if(dotLottieShadowRoot){// Find the SVG inside the shadow root\nconst svgElement=dotLottieShadowRoot.querySelector(\"svg\");if(svgElement){// Apply border-radius to the SVG\nsvgElement.style.borderRadius=\"15px\";// Clean up observer\nif(observer)observer.disconnect();}else{// SVG not yet available, observe shadow root\nconst svgObserver=new MutationObserver(()=>{const svg=dotLottieShadowRoot.querySelector(\"svg\");if(svg){svg.style.borderRadius=\"15px\";svgObserver.disconnect();if(observer)observer.disconnect();}});svgObserver.observe(dotLottieShadowRoot,{childList:true,subtree:true});}}}};// Initial check\ncheckAndApplyStyles();// Set up observer to watch for the <dotlottie-player> element\nobserver=new MutationObserver(()=>{checkAndApplyStyles();});observer.observe(heroAnimationElement,{childList:true,subtree:true});// Clean up the observer when the component unmounts\nreturn()=>{if(observer)observer.disconnect();};}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}// Override to hide an image inside #hero-section 3 seconds after <dotlottie-player> loads inside #hero-animation\nexport function withPlaceholderImage(Component){return props=>{React.useEffect(()=>{const heroAnimationElement=document.querySelector(\"#hero-animation\");const heroSectionElement=document.querySelector(\"#hero-section\");if(heroAnimationElement&&heroSectionElement){let observer;let timeoutId;// Function to check for <dotlottie-player> and hide the image after delay\nconst checkAndHideImage=()=>{const dotLottiePlayer=heroAnimationElement.querySelector(\"dotlottie-player\");const placeholderImage=heroSectionElement.querySelector(\"img\");if(dotLottiePlayer&&placeholderImage){// Disconnect the observer since our task is about to complete\nif(observer)observer.disconnect();// Wait for 3 seconds before hiding the image\ntimeoutId=setTimeout(()=>{// Hide the placeholder image\nplaceholderImage.style.display=\"none\";},3e3)// 3000 milliseconds = 3 seconds\n;}};// Initial check\ncheckAndHideImage();// Set up observer to watch for changes within #hero-animation\nobserver=new MutationObserver(()=>{checkAndHideImage();});observer.observe(heroAnimationElement,{childList:true,subtree:true});// Clean up the observer and timeout when the component unmounts\nreturn()=>{if(observer)observer.disconnect();if(timeoutId)clearTimeout(timeoutId);};}else{console.warn(\"Element with id #hero-animation or #hero-section not found.\");}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withAspectRatioPadding(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,position:\"relative\",width:\"100%\",height:\"unset\",minHeight:\"unset\",paddingTop:\"56.25%\",overflow:\"hidden\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withBannerPosition\":{\"type\":\"reactHoc\",\"name\":\"withBannerPosition\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSvgBorderRadius\":{\"type\":\"reactHoc\",\"name\":\"withSvgBorderRadius\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAspectRatioPadding\":{\"type\":\"reactHoc\",\"name\":\"withAspectRatioPadding\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHighZIndex\":{\"type\":\"reactHoc\",\"name\":\"withHighZIndex\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPlaceholderImage\":{\"type\":\"reactHoc\",\"name\":\"withPlaceholderImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLogChild\":{\"type\":\"reactHoc\",\"name\":\"withLogChild\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Custom_Overrides.map"],
  "mappings": "kIAAAA,IACA,IAAMC,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EAC1C,SAASC,EAAoBC,EAAU,CAAC,OAAOC,IAAQC,EAAM,UAAU,IAAI,CAAC,IAAMC,EAAqB,SAAS,cAAc,iBAAiB,EAAE,GAAGA,EAAqB,CAAC,IAAIC,EAC/KC,EAAoB,IAAI,CAAC,IAAMC,EAAgBH,EAAqB,cAAc,kBAAkB,EAAE,GAAGG,EAAgB,CAC/H,IAAMC,EAAoBD,EAAgB,WAAW,GAAGC,EAAoB,CAC5E,IAAMC,EAAWD,EAAoB,cAAc,KAAK,EAAE,GAAGC,EAC7DA,EAAW,MAAM,aAAa,OAC3BJ,GAASA,EAAS,WAAW,MAAO,CACvC,IAAMK,EAAY,IAAI,iBAAiB,IAAI,CAAC,IAAMC,EAAIH,EAAoB,cAAc,KAAK,EAAKG,IAAKA,EAAI,MAAM,aAAa,OAAOD,EAAY,WAAW,EAAKL,GAASA,EAAS,WAAW,EAAG,CAAC,EAAEK,EAAY,QAAQF,EAAoB,CAAC,UAAU,GAAK,QAAQ,EAAI,CAAC,CAAE,CAAC,CAAC,CAAC,EAC9Q,OAAAF,EAAoB,EACpBD,EAAS,IAAI,iBAAiB,IAAI,CAACC,EAAoB,CAAE,CAAC,EAAED,EAAS,QAAQD,EAAqB,CAAC,UAAU,GAAK,QAAQ,EAAI,CAAC,EACzH,IAAI,CAAIC,GAASA,EAAS,WAAW,CAAE,CAAE,CAAC,EAAE,CAAC,CAAC,EAAsBO,EAAKX,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI,CAS+H,SAASW,EAAuBC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,SAAS,WAAW,MAAM,OAAO,OAAO,QAAQ,UAAU,QAAQ,WAAW,SAAS,SAAS,QAAQ,CAAC,CAAC,CAAI",
  "names": ["init_ssg_sandbox_shims", "useStore", "createStore", "withSvgBorderRadius", "Component", "props", "e", "heroAnimationElement", "observer", "checkAndApplyStyles", "dotLottiePlayer", "dotLottieShadowRoot", "svgElement", "svgObserver", "svg", "p", "withAspectRatioPadding", "Component", "props", "p"]
}
