{"version":3,"file":"shared-lib.CT3dni0k.mjs","names":["Fragment","useRef","useCallback"],"sources":["https:/framerusercontent.com/modules/owHsoXagccTn7S68RoS5/GfrRa07a8zLd9dYRFMen/mpxPr00Fw.js","https:/framerusercontent.com/modules/HGMRTcmdLUClwF6d6waK/SUsgm7m93qtVZMJPVPfe/StableScrollbar.js","https:/framerusercontent.com/modules/l5tBE4kYKMbTHfQqEamE/wmAamaUBOSifykj7D3bx/siteMetadata.js"],"sourcesContent":["// Generated by Framer (af78293)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-eVZ3w .framer-styles-preset-1hlov6b:not(.rich-text-wrapper), .framer-eVZ3w .framer-styles-preset-1hlov6b.rich-text-wrapper a { --framer-link-text-color: #ffffff; }\"];export const className=\"framer-eVZ3w\";\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,jsxs as _jsxs}from\"react/jsx-runtime\";import{Fragment,forwardRef,useCallback,useEffect,useRef}from\"react\";export function withStableScrollbar(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsxs(Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    html { scrollbar-gutter: stable; }\n                    @supports not (scrollbar-gutter: stable) {\n                        html { overflow-y: scroll; }\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{ref:ref,...props,style:props.style})]});});}const PHONE_BREAKPOINT=810;function normalizePath(pathname){if(!pathname)return\"/\";const stripped=pathname.replace(/\\/+$/,\"\");return stripped===\"\"?\"/\":stripped;}function clearUnderlineOnElement(element){element.style.setProperty(\"text-decoration\",\"none\",\"important\");element.style.setProperty(\"text-decoration-line\",\"none\",\"important\");element.style.setProperty(\"text-underline-offset\",\"auto\",\"important\");element.style.setProperty(\"text-decoration-thickness\",\"auto\",\"important\");element.style.setProperty(\"text-decoration-style\",\"solid\",\"important\");element.style.setProperty(\"text-decoration-color\",\"inherit\",\"important\");}function clearAnchorUnderline(anchor){clearUnderlineOnElement(anchor);const descendants=anchor.querySelectorAll(\"*\");descendants.forEach(node=>clearUnderlineOnElement(node));}function setAnchorUnderline(anchor){anchor.style.setProperty(\"text-decoration-line\",\"underline\");anchor.style.setProperty(\"text-decoration-style\",\"solid\");anchor.style.setProperty(\"text-decoration-color\",\"#FFFFFF\");anchor.style.setProperty(\"text-decoration-thickness\",\"auto\");anchor.style.setProperty(\"text-underline-offset\",\"auto\");}function getActiveLabelFromPath(pathname){const path=normalizePath(pathname).toLowerCase();if(path===\"/16-9\")return\"16:9\";if(path===\"/9-16\")return\"9:16\";if(path===\"/info\")return\"Info\";if(path===\"/stills\"||path.startsWith(\"/stills-\"))return\"Stills\";return\"\";}export function withActiveNavUnderline(Component){const StableWrapped=withStableScrollbar(Component);return /*#__PURE__*/forwardRef((props,ref)=>{const rootRef=useRef(null);const syncActiveUnderline=useCallback(()=>{if(typeof window===\"undefined\")return;const root=rootRef.current;if(!root)return;const anchors=Array.from(root.querySelectorAll(\"a[href]\"));anchors.forEach(clearAnchorUnderline);const activeLabel=getActiveLabelFromPath(window.location.pathname);if(!activeLabel)return;const activeAnchor=anchors.find(anchor=>(anchor.textContent||\"\").trim()===activeLabel);if(!activeAnchor)return;const suppressUnderline=activeLabel===\"16:9\"&&window.innerWidth<PHONE_BREAKPOINT;if(suppressUnderline){clearAnchorUnderline(activeAnchor);return;}setAnchorUnderline(activeAnchor);},[]);useEffect(()=>{if(typeof window===\"undefined\")return;const handleSync=()=>syncActiveUnderline();handleSync();const intervalId=window.setInterval(handleSync,200);window.addEventListener(\"resize\",handleSync);window.addEventListener(\"popstate\",handleSync);window.addEventListener(\"hashchange\",handleSync);const observer=typeof MutationObserver!==\"undefined\"?new MutationObserver(()=>{handleSync();}):null;if(observer&&rootRef.current){observer.observe(rootRef.current,{childList:true,subtree:true});}return()=>{window.clearInterval(intervalId);window.removeEventListener(\"resize\",handleSync);window.removeEventListener(\"popstate\",handleSync);window.removeEventListener(\"hashchange\",handleSync);observer?.disconnect();};},[syncActiveUnderline]);const setRefs=node=>{rootRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&\"current\"in ref){ref.current=node;}};return /*#__PURE__*/_jsx(StableWrapped,{ref:setRefs,...props,style:props.style});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withActiveNavUnderline\":{\"type\":\"reactHoc\",\"name\":\"withActiveNavUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStableScrollbar\":{\"type\":\"reactHoc\",\"name\":\"withStableScrollbar\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StableScrollbar.map","// Generated by Framer (4c7be26)\nexport default function metadata(params,activeLocale){return{robots:\"max-image-preview:large\",title:\"faromarca\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"0OAC6B,EAAC,EAAU,UAAU,CAAC,CAAC,EAAe,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,CAAC,EAAe,EAAI,CAAC,6KAA6K,EAAe,EAAU,kBCDpM,SAAgB,EAAoB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAA2B,EAAMA,EAAS,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;iBAK1R,CAAC,EAAe,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,MAAM,EAAM,KAAK,CAAC,CAAC,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