{"version":3,"file":"Overrides.DcL62YSL.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/9aCfwDCsPLRJpYdUQyJ4/snbxke5CYTlnGAOh2rqP/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 withFlexGrow(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,flexGrow:1}});};}export function withMarginTopAuto(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,marginTop:\"auto\"}});};}export function withMarginAuto(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,margin:\"auto\"}});};}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 withPointerHover(Component){return props=>{const[visible,setVisible]=useState(true);useEffect(()=>{const query=window.matchMedia(\"(hover: hover)\");setVisible(query.matches);const onChange=e=>setVisible(e.matches);query.addEventListener(\"change\",onChange);return()=>query.removeEventListener(\"change\",onChange);},[]);console.log(visible);return visible?/*#__PURE__*/_jsx(Component,{...props}):null;};}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\"}},\"withNegativeBottom\":{\"type\":\"reactHoc\",\"name\":\"withNegativeBottom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSliderVariant\":{\"type\":\"reactHoc\",\"name\":\"withSliderVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIntroHide\":{\"type\":\"reactHoc\",\"name\":\"withIntroHide\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeightAuto\":{\"type\":\"reactHoc\",\"name\":\"withHeightAuto\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFlexGrow\":{\"type\":\"reactHoc\",\"name\":\"withFlexGrow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMarginAuto\":{\"type\":\"reactHoc\",\"name\":\"withMarginAuto\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPullContainer\":{\"type\":\"reactHoc\",\"name\":\"withPullContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPointerHover\":{\"type\":\"reactHoc\",\"name\":\"withPointerHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMarginTopAuto\":{\"type\":\"reactHoc\",\"name\":\"withMarginTopAuto\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overrides.map"],"mappings":"8IAAwF,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,GAAQ,CAAM,CAAC,EAAQ,GAAYC,EAAS,UAAU,CAA2S,OAA1S,MAA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