{"version":3,"file":"shared-lib.Bad7dgdF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/wh4iAypNbKAW9O9aLaoz/HFDfu6yHs5ev1Xiq80g8/siteMetadata.js"],"sourcesContent":["// Generated by Framer (6d0c662)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<script>\\n// FINAL SCRIPT - \\\"Bait and Switch\\\" Method for Framer\\n// This version is now safe for external links (e.g., social media)\\n\\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\\n\\n            // --- NEW FIX FOR EXTERNAL LINKS ---\\n            // If the url.host is not 'dummybase', it means the link was\\n            // an absolute URL (e.g., https://twitter.com).\\n            // We must stop processing it and leave it alone.\\n            if (url.host !== 'dummybase') {\\n                return; // Stop and do nothing to this link\\n            }\\n            // --- END NEW FIX ---\\n\\n\\n            const pathname = url.pathname;\\n\\n            // --- Your Custom Rules Go Here ---\\n\\n            // GROUP 1: Rules for links that need the /docs prefix\\n            const needsDocsPrefix = pathname.startsWith('/video-detail/') ||\\n                                    pathname.startsWith('/beta-onboarding-guide') ||\\n                                    pathname.startsWith('/how-to-use-sarahai');\\n\\n            // GROUP 2: A list of ALL other VALID root-level pages.\\n            // We list these so the script knows *not* to \\\"fix\\\" them.\\n            const isKnownRootPage = pathname === '/' ||\\n                pathname.startsWith('/docs') || // The parent folder itself\\n                pathname.startsWith('/blog') || // The parent page itself\\n                pathname.startsWith('/data-privacy') ||\\n                pathname.startsWith('/home-page-thankyou') ||\\n                \\n                // --- Pages from your site structure ---\\n                pathname.startsWith('/waiting-list-page') ||\\n                pathname.startsWith('/waiting-list-page-thankyou') ||\\n                pathname.startsWith('/privacy-policy-page') ||\\n                pathname.startsWith('/stripe-compliance') ||\\n                pathname.startsWith('/terms-of-service-page') ||\\n                pathname.startsWith('/start') ||\\n                pathname.startsWith('/logo') || pathname.startsWith('/home-new') || pathname.startsWith('/book-demo') || pathname.startsWith('/book-demo-thankyou') ||\\n                \\n                // --- Ignored DRAFT page ---\\n                pathname.startsWith('/videos-old') ||\\n                \\n                // --- Standard ignores ---\\n                pathname.startsWith('/?') || // For search queries\\n                pathname.startsWith('/#'); // For on-page anchor links\\n\\n            // --- Logic to Check and Fix Rules ---\\n            let correctedHref = null; // Use a variable to store the result\\n\\n            if (needsDocsPrefix) {\\n                // FIX 1: This link belongs in the /docs folder\\n                correctedHref = '/docs' + pathname + url.search + url.hash;\\n            } else if (!isKnownRootPage) {\\n                // FIX 2: If it's NOT a docs link AND NOT a known valid page,\\n                // it must be a broken article slug. Add the /article-list prefix.\\n                correctedHref = '/blog' + pathname + url.search + url.hash;\\n            }\\n            // If the link IS a known root page, correctedHref stays null and no fix is applied.\\n\\n\\n            // --- Apply the fix if one was found ---\\n            if (correctedHref) {\\n                // IMPORTANT: Fix the href attribute directly.\\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\\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 ---\\n// (This part remains unchanged)\\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 ---\\n// (This part remains unchanged)\\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>\",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:\"Automate tasks, meetings, and emails with SarahAI - an AI Executive Assistant that works via WhatsApp & voice. Built for SMEs and professionals.\",favicon:\"https://framerusercontent.com/assets/oNhtDsH3bmBWFGkLyh3izgQ4KU.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/FtUiqBtq74NXjzSnIfl4qfJLg.png\",title:\"SarahAI – Your AI Executive Assistant & Virtual Business Assistant\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oDACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAk2L,oBAAoB;;4CAAwP,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAwrC,YAAY,mJAAmJ,QAAQ,sEAAsE,OAAO,0BAA0B,YAAY,qEAAqE,MAAM,qEAAqE"}