{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/lytAGcsXwTNqbGomZezW/4eh9PBOMPFjMk3stLUnC/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": "uGAA+F,SAASA,EAAaC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,SAAS,MAAM,CAAC,CAAC,CAAI,CAAQ,SAASE,EAAQH,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,UAAU,QAAQ,CAAC,CAAC,CAAI,CAAQ,SAASG,EAAaJ,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAAC,MAAAI,CAAK,EAAEJ,EAAM,OAAAK,EAAU,IAAI,CAAC,IAAMC,EAAUC,GAAG,CAAIA,EAAE,MAAM,UAAUH,EAAM,CAAG,EAAE,gBAAS,iBAAiB,UAAUE,CAAS,EAAQ,IAAI,SAAS,iBAAiB,UAAUA,CAAS,CAAE,EAAE,CAAC,CAAC,EAAsBL,EAAKF,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAE,CAAE,CAAQ,SAASQ,EAAkBT,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMS,EAAIC,EAAO,IAAI,EAAO,CAACC,EAASC,CAAW,EAAEC,EAAS,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAQC,EAAgBP,GAAG,CAAC,GAAK,CAAC,QAAAQ,EAAQ,QAAAC,CAAO,EAAET,EAAO,CAAC,OAAAU,EAAO,MAAAC,EAAM,KAAAC,EAAK,IAAAC,CAAG,EAAEX,EAAI,QAAQ,sBAAsB,EAAQY,EAAQN,GAASI,EAAKD,EAAM,GAASI,EAAQN,GAASI,EAAIH,EAAO,GAAGL,EAAY,CAAC,EAAES,EAAQ,GAAG,EAAEC,EAAQ,EAAE,CAAC,CAAE,EAAQC,EAAM,IAAI,CAACX,EAAY,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAE,EAAO,CAAC,EAAAY,EAAE,EAAAC,CAAC,EAAEd,EAAS,OAAoBV,EAAKF,EAAU,CAAC,GAAGC,EAAM,IAAIS,EAAI,YAAYK,EAAgB,aAAaS,EAAM,QAAQ,CAAC,EAAAC,EAAE,EAAAC,CAAC,EAAE,WAAW,CAAC,KAAK,SAAS,QAAQ,GAAG,KAAK,EAAE,UAAU,GAAG,CAAC,CAAC,CAAE,CAAE,CAAQ,SAASC,EAAwB3B,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMS,EAAIC,EAAO,IAAI,EAAO,CAACiB,EAAaC,CAAe,EAAEf,EAAS,EAAK,EAAE,OAAAR,EAAU,IAAI,CAAC,GAAGI,EAAI,QAAQ,CAAC,IAAMoB,EAAQpB,EAAI,QAAQ,WAAW,aAAaA,EAAI,QAAQmB,EAAgBC,CAAO,EAAEC,EAAO,WAAW,IAAI,CAACA,EAAO,SAAS,EAAEA,EAAO,QAAQ,CAAC,EAAEA,EAAO,SAAS,EAAEA,EAAO,QAAQ,CAAC,CAAE,EAAE,EAAE,EAAG,EAAE,CAAC,CAAC,EAAsB7B,EAAKF,EAAU,CAAC,GAAGC,EAAM,IAAIS,EAAI,MAAM,CAAC,GAAGT,EAAM,MAAM,UAAU2B,EAAa,SAAS,MAAS,CAAC,CAAC,CAAE,CAAE",
  "names": ["withClipPath", "Component", "props", "p", "withSVH", "withEscClick", "onTap", "ue", "onKeyDown", "e", "withMouseParallax", "ref", "pe", "position", "setPosition", "ye", "handleMouseMove", "clientX", "clientY", "height", "width", "left", "top", "middleX", "middleY", "reset", "x", "y", "withFirstChildContainer", "isFirstChild", "setIsFirstChild", "isFirst", "window"]
}
