{"version":3,"file":"Overrides.5RSBQ_Or.mjs","names":["__esmMin","init_npm_react_18_3_1","c","init_jsx_runtime","withPullContainer","Component","props","withIntroHide","init_Overrides"],"sources":["https:/framerusercontent.com/modules/nRZ9lEuDgha21lfREbnt/LQmIAwcshndNpdtVWS2b/Overrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";export function withSliderVariant(Component){return props=>{const ref=useRef();const[variant,setVariant]=useState(\"Default\");useEffect(()=>{const observer=new IntersectionObserver(([entry])=>{if(entry.isIntersecting){setVariant(\"Visible\");}else{setVariant(\"Default\");}},{threshold:.1});if(ref.current){observer.observe(ref.current);}return()=>{if(ref.current){observer.unobserve(ref.current);observer.disconnect();}};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref,variant:variant});};}export function withPullContainer(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,marginRight:-1,marginBottom:-1}});};}export function withNegativeBottom(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,bottom:-1}});};}export function withHeightAuto(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,height:\"auto\"}});};}export function withViewportHeight(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,minHeight:\"100vh\"}});};}export function withIntroHide(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,pointerEvents:\"auto\"},animate:{y:[0,\"-100%\"]},transition:{duration:2,ease:[.86,0,.07,1],delay:1}});};}export function withEscTap(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});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withEscTap\":{\"type\":\"reactHoc\",\"name\":\"withEscTap\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIntroHide\":{\"type\":\"reactHoc\",\"name\":\"withIntroHide\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeightAuto\":{\"type\":\"reactHoc\",\"name\":\"withHeightAuto\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSliderVariant\":{\"type\":\"reactHoc\",\"name\":\"withSliderVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPullContainer\":{\"type\":\"reactHoc\",\"name\":\"withPullContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNegativeBottom\":{\"type\":\"reactHoc\",\"name\":\"withNegativeBottom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overrides.map"],"mappings":"A,2GAAykB,SAAgBI,EAAkB,EAAU,CAAC,MAAO,IAA4B,gBAAKC,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,YAAY,GAAG,aAAa,EAAE,CAAC,CAAC,CAAI,CAAyb,SAAgBC,EAAc,EAAU,CAAC,MAAO,IAA4B,gBAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,cAAc,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAI,C"}