{"version":3,"file":"Overrides.CbPphKTj.mjs","names":[],"sources":["https:/framerusercontent.com/modules/zrDvtFQpjpdRnByzLUsM/QWLxtRmV7v86TI6oOre2/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\":{\"withIntroHide\":{\"type\":\"reactHoc\",\"name\":\"withIntroHide\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSliderVariant\":{\"type\":\"reactHoc\",\"name\":\"withSliderVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPullContainer\":{\"type\":\"reactHoc\",\"name\":\"withPullContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEscTap\":{\"type\":\"reactHoc\",\"name\":\"withEscTap\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeightAuto\":{\"type\":\"reactHoc\",\"name\":\"withHeightAuto\",\"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":"kHAAykB,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,YAAY,GAAG,aAAa,EAAE,CAAC,CAAC,CAAI,CAAiJ,SAAgB,EAAe,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,MAAM,CAAC,CAAC,CAAI,CAAyJ,SAAgB,EAAc,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,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,CAAC,SAAgB,EAAW,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,SAAO,EAAuL,OAAjL,MAAc,CAAC,IAAM,EAAU,GAAG,CAAI,EAAE,MAAM,UAAU,EAAM,CAAG,EAAiD,OAA/C,SAAS,iBAAiB,UAAU,CAAS,MAAY,SAAS,iBAAiB,UAAU,CAAS,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAE,CAAE,iBAAtoD,IAA6C"}