{"version":3,"file":"Overrides.BWo7MqgM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/kqxOoemRpF6RI2guW8j1/rUn7NiVLfrcJIqTW1sDk/Overrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{RenderTarget}from\"framer\";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});};}function isValueSet(value){if(value===undefined||value===null)return false;const str=String(value).trim();if(str===\"\"||str===\"null\"||str===\"undefined\"||str===\"-\")return false;return true;}function isPriceLabel(val){if(typeof val!==\"string\")return false;const s=val.trim().toLowerCase();return s.includes(\"from\")||s.includes(\"starting\")||s.includes(\"@\")||s===\"rent\"||s===\"buy\";}function findPriceValue(children){if(children===undefined||children===null)return null;if(typeof children===\"string\"||typeof children===\"number\"){const val=String(children).trim();if(!isPriceLabel(val)&&val!==\"\"){return val;}return null;}if(Array.isArray(children)){for(const child of children){const val=findPriceValue(child);if(val!==null)return val;}}else if(typeof children===\"object\"&&children!==null&&children.props){if(children.props.text!==undefined){const text=children.props.text;if(text!==null&&text!==undefined){const s=String(text).trim();if(!isPriceLabel(s)&&s!==\"\"){return s;}}}if(children.props.value!==undefined){const val=children.props.value;if(val!==null&&val!==undefined){const s=String(val).trim();if(!isPriceLabel(s)&&s!==\"\"){return s;}}}if(children.props.children){return findPriceValue(children.props.children);}}return null;}export function withConditionalPrice(Component){return props=>{const priceVal=findPriceValue(props.children);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const show=isCanvas||isValueSet(priceVal);if(!show){return null;}return /*#__PURE__*/_jsx(Component,{...props});};}export function withConditionalRent(Component){return props=>{const priceVal=findPriceValue(props.children);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const show=isCanvas||isValueSet(priceVal);if(!show){return null;}return /*#__PURE__*/_jsx(Component,{...props});};}export function withConditionalBuy(Component){return props=>{const priceVal=findPriceValue(props.children);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const show=isCanvas||isValueSet(priceVal);if(!show){return null;}return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withConditionalPrice\":{\"type\":\"reactHoc\",\"name\":\"withConditionalPrice\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEscTap\":{\"type\":\"reactHoc\",\"name\":\"withEscTap\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNegativeBottom\":{\"type\":\"reactHoc\",\"name\":\"withNegativeBottom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeightAuto\":{\"type\":\"reactHoc\",\"name\":\"withHeightAuto\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSliderVariant\":{\"type\":\"reactHoc\",\"name\":\"withSliderVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIntroHide\":{\"type\":\"reactHoc\",\"name\":\"withIntroHide\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPullContainer\":{\"type\":\"reactHoc\",\"name\":\"withPullContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withConditionalRent\":{\"type\":\"reactHoc\",\"name\":\"withConditionalRent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withConditionalBuy\":{\"type\":\"reactHoc\",\"name\":\"withConditionalBuy\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overrides.map"],"mappings":"mKAA0mB,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,YAAY,GAAG,aAAa,GAAG,CAAC,CAAC,CAAoJ,SAAgB,EAAe,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,CAAC,CAAC,CAA4J,SAAgB,EAAc,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,cAAc,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,CAAI,SAAgB,EAAW,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,SAAO,EAAuL,OAAjL,MAAc,CAAC,IAAM,EAAU,GAAG,CAAI,EAAE,MAA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