{"version":3,"file":"shared-lib.CUeSAS-A.mjs","names":[],"sources":["https:/framerusercontent.com/modules/wh4iAypNbKAW9O9aLaoz/ikBpRp1PY0PYsGiUZzpJ/siteMetadata.js"],"sourcesContent":["// Generated by Framer (269977d)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<script>\\n// FINAL SCRIPT - \\\"Bait and Switch\\\" Method for Framer\\n// --- PART 1: Proactively fixes the HTML for \\\"Open in New Tab\\\" ---\\nfunction prepareLinks(node) {\\n    // Find all links inside the given element that haven't been prepared yet\\n    const linksToScan = node.querySelectorAll('a:not([data-link-prepared])');\\n\\n    linksToScan.forEach(link => {\\n        // Mark the link as prepared immediately to prevent re-processing\\n        link.dataset.linkPrepared = 'true';\\n\\n        // Use getAttribute to get the original, potentially broken href\\n        const originalHref = link.getAttribute('href');\\n        if (!originalHref) return;\\n\\n        try {\\n            // Use a dummy base for URL parsing as we only care about the path\\n            const url = new URL(originalHref, 'http://dummybase');\\n            const pathname = url.pathname;\\n\\n            // --- Your Custom Rules Go Here ---\\n            const isBrokenVideoLink = pathname.startsWith('/video-detail/');\\n            const isBrokenOnboardingLink = pathname.startsWith('/beta-onboarding-guide');\\n            const isBrokenHowToUseLink = pathname.startsWith('/how-to-use-sarahai'); // <-- NEW LINE ADDED\\n\\n            // --- Logic to Check and Fix Rules ---\\n            if (isBrokenVideoLink || isBrokenOnboardingLink || isBrokenHowToUseLink) { // <-- NEW RULE ADDED TO CHECK\\n                const correctedHref = '/docs' + pathname + url.search + url.hash;\\n                \\n                // IMPORTANT: Fix the href attribute directly.\\n                // This makes \\\"Open in New Tab\\\" work natively.\\n                link.setAttribute('href', correctedHref);\\n\\n                // Add a marker so our click handler knows to intercept this link.\\n                link.dataset.framerFix = 'true';\\n            }\\n        } catch (e) {\\n            // Ignore errors from invalid hrefs like \\\"mailto:\\\"\\n        }\\n    });\\n}\\n\\n// --- PART 2: Intercepts left-clicks to override Framer's router ---\\ndocument.addEventListener('click', function(event) {\\n    // Find the closest link element that has our special marker\\n    const linkElement = event.target.closest('a[data-framer-fix=\\\"true\\\"]');\\n\\n    if (linkElement) {\\n        // Only act on a simple left-click (no Ctrl, Cmd, Shift, or middle-mouse)\\n        if (!event.metaKey && !event.ctrlKey && !event.shiftKey && event.button === 0) {\\n            \\n            // Stop Framer's router from hijacking the click\\n            event.preventDefault();\\n            event.stopPropagation();\\n\\n            // Manually navigate to the correct URL, which is already in the href\\n            window.location.href = linkElement.href;\\n        }\\n    }\\n}, true); // Use 'true' to ensure our listener runs before Framer's\\n\\n// --- PART 3: The Observer to run the preparation logic on dynamic content ---\\nconst observer = new MutationObserver((mutationsList) => {\\n    for (const mutation of mutationsList) {\\n        if (mutation.type === 'childList') {\\n            mutation.addedNodes.forEach(node => {\\n                if (node.nodeType === 1) { // Check if it's an element\\n                    prepareLinks(node);\\n                }\\n            });\\n        }\\n    }\\n});\\n\\n// Start observing the entire document for changes\\nobserver.observe(document.body, { childList: true, subtree: true });\\n\\n// Also run once on initial load for any non-dynamic content\\ndocument.addEventListener('DOMContentLoaded', () => {\\n    prepareLinks(document.body);\\n});\\n</script>\\n\\n<script type=\\\"text/javascript\\\">\\n\\n  _linkedin_partner_id = \\\"8118322\\\";\\n\\n  window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];\\n\\n  window._linkedin_data_partner_ids.push(_linkedin_partner_id);\\n\\n</script>\\n\\n<script type=\\\"text/javascript\\\">\\n\\n  (function(l) {\\n\\n    if (!l){\\n\\n      window.lintrk = function(a,b){window.lintrk.q.push([a,b])};\\n\\n      window.lintrk.q=[];\\n\\n    }\\n\\n    var s = document.getElementsByTagName(\\\"script\\\")[0];\\n\\n    var b = document.createElement(\\\"script\\\");\\n\\n    b.type = \\\"text/javascript\\\"; b.async = true;\\n\\n    b.src = \\\"https://snap.licdn.com/li.lms-analytics/insight.min.js\\\";\\n\\n    s.parentNode.insertBefore(b, s);\\n\\n  })(window.lintrk);\\n\\n</script>\\n\\n<noscript>\\n\\n  <img height=\\\"1\\\" width=\\\"1\\\" style=\\\"display:none;\\\" alt=\\\"\\\" src=\\\"https://px.ads.linkedin.com/collect/?pid=8118322&amp;fmt=gif\\\">\\n\\n</noscript>\",customHTMLBodyStart:'<!-- Google Tag Manager (noscript) -->\\n<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-WSS3L8WK\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>\\n<!-- End Google Tag Manager (noscript) -->',customHTMLHeadStart:\"<!-- Google Tag Manager -->\\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\\n})(window,document,'script','dataLayer','GTM-WSS3L8WK');</script>\\n<!-- End Google Tag Manager -->\\n\\n<base href=\\\"https://thesarahai.com/\\\">\\n\\n<!-- Start of HubSpot Embed Code -->\\n<script type=\\\"text/javascript\\\" id=\\\"hs-script-loader\\\" async=\\\"\\\" defer=\\\"\\\" src=\\\"//js-eu1.hs-scripts.com/146153862.js\\\"></script>\\n<!-- End of HubSpot Embed Code -->\\n\\n<!-- Meta Pixel Code -->\\n<script>\\n!function(f,b,e,v,n,t,s)\\n{if(f.fbq)return;n=f.fbq=function(){n.callMethod?\\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};\\nif(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\\nn.queue=[];t=b.createElement(e);t.async=!0;\\nt.src=v;s=b.getElementsByTagName(e)[0];\\ns.parentNode.insertBefore(t,s)}(window, document,'script',\\n'https://connect.facebook.net/en_US/fbevents.js');\\nfbq('init', '1032681935744126');\\nfbq('track', 'PageView');\\n</script>\\n<noscript></noscript>\",description:\"Supercharge your workweek! Step into a new era of intelligent business management with sarahAI an AI Agent Platform designed to revolutionise the way you work.\",favicon:\"https://framerusercontent.com/assets/oNhtDsH3bmBWFGkLyh3izgQ4KU.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/FtUiqBtq74NXjzSnIfl4qfJLg.png\",title:\"sarahAI - AI Agent Platform Designed to Revolutionize The Way You Work.\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAo0I,oBAAoB;;4CAAwP,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAwrC,YAAY,kKAAkK,QAAQ,sEAAsE,OAAO,0BAA0B,YAAY,qEAAqE,MAAM,0EAA0E"}