{"version":3,"file":"shared-lib.PMwBkGBF.mjs","names":["useRef","useId","useState"],"sources":["https:/framerusercontent.com/modules/yEG1RnpFqArg3I6mNAJf/oh3QwE0ENQDhn1y6uAJs/jxSDezSIU.js","https:/framerusercontent.com/modules/6bF7yq6vC1Rjk9yzHK0a/Vx36V00PZLnI6YUWgWxv/AtYoursMotion.js"],"sourcesContent":["// Generated by Framer (7788242)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-HVnck .framer-styles-preset-1p4qlen:not(.rich-text-wrapper), .framer-HVnck .framer-styles-preset-1p4qlen.rich-text-wrapper a { --framer-link-hover-text-color: #da634d; --framer-link-text-color: #2e4439; --framer-link-text-decoration: none; transition-delay: 0s; transition-duration: 0.25s; transition-property: color; transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1); }\"];export const className=\"framer-HVnck\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef,useState,useId}from\"react\";import{RenderTarget}from\"framer\";const listeners=new Set;const heroes=new Map;const controls=new Map;function notify(){listeners.forEach(fn=>fn());}function useOwnRef(external){const ref=useRef(null);const setRef=node=>{ref.current=node;if(typeof external===\"function\")external(node);else if(external)external.current=node;};return[ref,setRef];}function usePresence(ref,kind,id){useEffect(()=>{const node=ref.current;if(!node||RenderTarget.current()===RenderTarget.canvas)return;const map=kind===\"hero\"?heroes:controls;const update=()=>{const rect=node.getBoundingClientRect();const visible=rect.width>0&&rect.height>0;const value=kind===\"hero\"?visible&&rect.bottom<0:visible&&rect.top<window.innerHeight+80&&rect.bottom>-80;if(map.get(id)!==value){map.set(id,value);notify();}};let frame=0;const schedule=()=>{if(!frame)frame=requestAnimationFrame(()=>{frame=0;update();});};update();window.addEventListener(\"scroll\",schedule,{passive:true});window.addEventListener(\"resize\",schedule);const observer=new ResizeObserver(schedule);observer.observe(node);return()=>{cancelAnimationFrame(frame);observer.disconnect();window.removeEventListener(\"scroll\",schedule);window.removeEventListener(\"resize\",schedule);map.delete(id);notify();};},[id]);}export function withHeroBoundary(Component){return /*#__PURE__*/forwardRef((props,external)=>{const[ref,setRef]=useOwnRef(external);const id=useId();usePresence(ref,\"hero\",id);return /*#__PURE__*/_jsx(Component,{...props,ref:setRef});});}export function withBookingZone(Component){return /*#__PURE__*/forwardRef((props,external)=>{const[ref,setRef]=useOwnRef(external);const id=useId();usePresence(ref,\"control\",id);return /*#__PURE__*/_jsx(Component,{...props,ref:setRef});});}export function withMobileBooking(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[visible,setVisible]=useState(false);useEffect(()=>{const update=()=>setVisible([...heroes.values()].some(Boolean)&&![...controls.values()].some(Boolean));listeners.add(update);update();return()=>{listeners.delete(update);};},[]);const canvas=RenderTarget.current()===RenderTarget.canvas;const shown=canvas||visible;return /*#__PURE__*/_jsx(Component,{...props,ref:ref,\"aria-hidden\":!shown,inert:!shown?\"\":undefined,style:{...props.style,opacity:shown?1:0,visibility:shown?\"visible\":\"hidden\",pointerEvents:shown?\"auto\":\"none\",paddingBottom:\"max(12px, env(safe-area-inset-bottom))\",transition:\"opacity 180ms ease, visibility 180ms ease\"}});});}export function withPhotoMotion(Component){return /*#__PURE__*/forwardRef((props,external)=>{const[ref,setRef]=useOwnRef(external);useEffect(()=>{const node=ref.current;if(!node||RenderTarget.current()===RenderTarget.canvas)return;const reduce=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const fine=window.matchMedia(\"(hover: hover) and (pointer: fine)\");let reveal;let zoom;const image=node.querySelector(\"img\");const observer=new IntersectionObserver(entries=>{if(!entries.some(e=>e.isIntersecting))return;observer.disconnect();if(!reduce.matches)reveal=node.animate([{clipPath:\"inset(0 0 8% 0)\",opacity:0},{clipPath:\"inset(0 0 0% 0)\",opacity:1}],{duration:550,easing:\"cubic-bezier(.22,1,.36,1)\"});},{threshold:.08});observer.observe(node);const hover=active=>{if(!image||reduce.matches||!fine.matches)return;const from=getComputedStyle(image).transform;zoom?.cancel();zoom=image.animate([{transform:from},{transform:active?\"scale(1.025)\":\"scale(1)\"}],{duration:450,easing:\"cubic-bezier(.22,1,.36,1)\",fill:\"forwards\"});};const enter=()=>hover(true),leave=()=>hover(false);const reset=()=>{reveal?.cancel();zoom?.cancel();};node.addEventListener(\"pointerenter\",enter);node.addEventListener(\"pointerleave\",leave);reduce.addEventListener(\"change\",reset);return()=>{observer.disconnect();reset();node.removeEventListener(\"pointerenter\",enter);node.removeEventListener(\"pointerleave\",leave);reduce.removeEventListener(\"change\",reset);};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRef});});}export function withButtonArrow(Component){return /*#__PURE__*/forwardRef((props,external)=>{const[ref,setRef]=useOwnRef(external);useEffect(()=>{const node=ref.current;if(!node||RenderTarget.current()===RenderTarget.canvas)return;const reduce=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const fine=window.matchMedia(\"(hover: hover) and (pointer: fine)\");const walker=document.createTreeWalker(node,NodeFilter.SHOW_TEXT);let text,span;while(text=walker.nextNode()){if(text.textContent?.includes(\"↗\")){const range=document.createRange();const index=text.textContent.indexOf(\"↗\");range.setStart(text,index);range.setEnd(text,index+1);span=document.createElement(\"span\");span.style.display=\"inline-block\";range.surroundContents(span);break;}}const move=active=>{if(span){span.style.transition=reduce.matches?\"none\":\"transform 220ms cubic-bezier(.22,1,.36,1)\";span.style.transform=active&&!reduce.matches?\"translate(3px,-3px)\":\"none\";}};const enter=()=>{if(fine.matches)move(true);},leave=()=>move(false),focus=()=>move(true);node.addEventListener(\"pointerenter\",enter);node.addEventListener(\"pointerleave\",leave);node.addEventListener(\"focusin\",focus);node.addEventListener(\"focusout\",leave);return()=>{node.removeEventListener(\"pointerenter\",enter);node.removeEventListener(\"pointerleave\",leave);node.removeEventListener(\"focusin\",focus);node.removeEventListener(\"focusout\",leave);if(span?.parentNode)span.replaceWith(...Array.from(span.childNodes));};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRef});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withBookingZone\":{\"type\":\"reactHoc\",\"name\":\"withBookingZone\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPhotoMotion\":{\"type\":\"reactHoc\",\"name\":\"withPhotoMotion\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withButtonArrow\":{\"type\":\"reactHoc\",\"name\":\"withButtonArrow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMobileBooking\":{\"type\":\"reactHoc\",\"name\":\"withMobileBooking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeroBoundary\":{\"type\":\"reactHoc\",\"name\":\"withHeroBoundary\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AtYoursMotion.map"],"mappings":"qOAC6B,EAAC,EAAU,UAAU,CAAC,CAAC,EAAe,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,CAAC,EAAe,EAAI,CAAC,uYAAuY,EAAe,EAAU,kBCD7U,SAAS,GAAQ,CAAC,EAAU,QAAQ,GAAI,EAAG,CAAC,CAAE,CAAC,SAAS,EAAU,EAAS,CAAC,IAAM,EAAIA,EAAO,IAAI,EAA+H,MAAM,CAAC,EAAvH,GAAM,CAAC,EAAI,QAAQ,EAAQ,OAAO,GAAW,WAAW,EAAS,CAAI,EAAU,IAAS,EAAS,QAAQ,EAAK,CAAmB,CAAE,CAAC,SAAS,EAAY,EAAI,EAAK,EAAG,CAAC,MAAc,CAAC,IAAM,EAAK,EAAI,QAAQ,GAAG,CAAC,GAAM,EAAa,QAAQ,IAAI,EAAa,OAAO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