{"version":3,"file":"Overrides.So1QRGGO.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vEm8s7Iv4GYRFMFBd5yq/ju4QGyOK3Q7VMolqv9Cc/Overrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";export function withClipPath(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,overflow:\"clip\"}});};}export function withSVH(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,minHeight:\"100svh\"}});};}export function withEscClick(Component){return props=>{const{onTap}=props;useEffect(()=>{const onKeyDown=e=>{if(e.key===\"Escape\"){onTap();}};document.addEventListener(\"keydown\",onKeyDown);return()=>document.addEventListener(\"keydown\",onKeyDown);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withMouseParallax(Component){return props=>{const ref=useRef(null);const[position,setPosition]=useState({x:0,y:0});const handleMouseMove=e=>{const{clientX,clientY}=e;const{height,width,left,top}=ref.current.getBoundingClientRect();const middleX=clientX-(left+width/2);const middleY=clientY-(top+height/2);setPosition({x:middleX*.2,y:middleY*.2});};const reset=()=>{setPosition({x:0,y:0});};const{x,y}=position;return /*#__PURE__*/_jsx(Component,{...props,ref:ref,onMouseMove:handleMouseMove,onMouseLeave:reset,animate:{x,y},transition:{type:\"spring\",damping:40,mass:1,stiffness:500}});};}export function withFirstChildContainer(Component){return props=>{const ref=useRef(null);const[isFirstChild,setIsFirstChild]=useState(false);useEffect(()=>{if(ref.current){const isFirst=ref.current.parentNode.firstChild===ref.current;setIsFirstChild(isFirst);window.setTimeout(()=>{window.scrollTo(0,window.scrollY+1);window.scrollTo(0,window.scrollY-1);},10);}},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,marginTop:isFirstChild?\"-200px\":undefined}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSVH\":{\"type\":\"reactHoc\",\"name\":\"withSVH\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFirstChildContainer\":{\"type\":\"reactHoc\",\"name\":\"withFirstChildContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMouseParallax\":{\"type\":\"reactHoc\",\"name\":\"withMouseParallax\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withClipPath\":{\"type\":\"reactHoc\",\"name\":\"withClipPath\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEscClick\":{\"type\":\"reactHoc\",\"name\":\"withEscClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overrides.map"],"mappings":"mNAAwF,SAAgB,EAAa,EAAU,CAAC,MAAO,CAAA,GAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,MAAO,CAAC,EAAC,AAAI,UAAgB,EAAQ,EAAU,CAAC,MAAO,CAAA,GAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,UAAU,QAAS,CAAC,EAAC,AAAI,UAAgB,EAAa,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,GAAK,CAAC,QAAM,CAAC,EAAuL,MAAjL,GAAU,IAAI,CAAC,IAAM,EAAU,GAAG,CAAC,AAAG,EAAE,MAAM,UAAU,GAAO,AAAG,EAAgD,MAA/C,UAAS,iBAAiB,UAAU,EAAU,CAAO,IAAI,SAAS,iBAAiB,UAAU,EAAU,AAAE,EAAC,CAAE,EAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,CAAM,EAAC,AAAE,CAAE,UAAgB,EAAkB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,IAAM,EAAI,EAAO,KAAK,CAAM,CAAC,EAAS,EAAY,CAAC,EAAS,CAAC,EAAE,EAAE,EAAE,CAAE,EAAC,CAAO,EAAgB,GAAG,CAAC,GAAK,CAAC,UAAQ,UAAQ,CAAC,EAAO,CAAC,SAAO,QAAM,OAAK,MAAI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