{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/pIZnujHMDhMa26hFr9o2/LIxDvQjffpqI8s2hieMV/siteMetadata.js"],
  "sourcesContent": ["// Generated by Framer (c85c929)\nconst valuesByLocaleId={GmVvaRttN:{v0:\"Zaia - Automate support and sales with AI\",v1:\"Automate support and sales with Artificial Intelligence Employees that work for you.\"}};function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value)return value;}locale=locale.fallback;}}export default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<!-- End body (Framer) -->\\n<script>\\ndocument.addEventListener(\\\"DOMContentLoaded\\\", function () {\\n    const storedUTMs = localStorage.getItem(\\\"utm_params\\\");\\n    if (!storedUTMs) {\\n        console.log(\\\"Nenhuma UTM encontrada no localStorage\\\");\\n        return;\\n    }\\n\\n    const utmParams = JSON.parse(storedUTMs);\\n    console.log(\\\"UTMs recuperadas:\\\", utmParams); // Debug\\n\\n    // Fun\\xe7\\xe3o para processar links\\n    function processLink(link) {\\n        // Se j\\xe1 foi processado, n\\xe3o processa novamente\\n        if (link.dataset.utmProcessed === 'true') return;\\n        \\n        console.log(\\\"Processando link:\\\", link.href); // Debug\\n        \\n        const originalUrl = new URL(link.href);\\n        \\n        // Se for um link de purchase-plan, modifica para ir direto ao login\\n        if (originalUrl.pathname.includes('/auth/purchase-plan')) {\\n            // Captura todos os par\\xe2metros originais\\n            const planId = originalUrl.searchParams.get('planId');\\n            const planInterval = originalUrl.searchParams.get('planInterval');\\n            const successURL = originalUrl.searchParams.get('successURL');\\n            \\n            // Processa o successURL para adicionar UTMs\\n            let processedSuccessURL = successURL;\\n            if (successURL) {\\n                try {\\n                    const decodedSuccess = new URL(decodeURIComponent(successURL));\\n                    for (const [key, value] of Object.entries(utmParams)) {\\n                        decodedSuccess.searchParams.set(key, value);\\n                    }\\n                    processedSuccessURL = encodeURIComponent(decodedSuccess.toString());\\n                } catch (e) {\\n                    console.error(\\\"Erro ao processar successURL:\\\", e);\\n                }\\n            }\\n            \\n            // Constr\\xf3i a URL de purchase com todos os par\\xe2metros\\n            const purchaseParams = new URLSearchParams();\\n            if (planId) purchaseParams.set('planId', planId);\\n            if (planInterval) purchaseParams.set('planInterval', planInterval);\\n            if (processedSuccessURL) purchaseParams.set('successURL', processedSuccessURL);\\n            \\n            // Adiciona UTMs aos par\\xe2metros de purchase\\n            for (const [key, value] of Object.entries(utmParams)) {\\n                purchaseParams.set(key, value);\\n            }\\n            \\n            // Cria a URL de login com UTMs\\n            const loginUrl = new URL('https://platform.zaia.app/auth/login');\\n            \\n            // IMPORTANTE: Adiciona UTMs diretamente na URL de login\\n            for (const [key, value] of Object.entries(utmParams)) {\\n                loginUrl.searchParams.set(key, value);\\n            }\\n            \\n            // Adiciona o redirect com todos os par\\xe2metros\\n            loginUrl.searchParams.set('redirect', `/auth/purchase-plan?${purchaseParams.toString()}`);\\n            \\n            // Atualiza o href do link\\n            link.href = loginUrl.toString();\\n            link.dataset.utmProcessed = 'true';\\n            \\n            console.log(\\\"Link modificado para:\\\", link.href); // Debug\\n        }\\n    }\\n\\n    // Intercepta cliques para processar o link no momento exato\\n    document.body.addEventListener(\\\"click\\\", function (event) {\\n        const link = event.target.closest(\\\"a[href*='https://platform.zaia.app/auth/']\\\");\\n        if (link && link.href.includes('/auth/purchase-plan')) {\\n            event.preventDefault(); // Previne o comportamento padr\\xe3o\\n            \\n            processLink(link); // Processa o link\\n            \\n            // Agora navega para a URL modificada\\n            setTimeout(() => {\\n                window.location.href = link.href;\\n            }, 10);\\n        }\\n    }, true); // Usa capture phase\\n\\n    // Tamb\\xe9m processa ao passar o mouse para preparar o link\\n    document.body.addEventListener(\\\"mouseover\\\", function (event) {\\n        const link = event.target.closest(\\\"a[href*='https://platform.zaia.app/auth/']\\\");\\n        if (link && link.dataset.utmProcessed !== 'true') {\\n            processLink(link);\\n        }\\n    });\\n\\n    // Processa links existentes na p\\xe1gina\\n    setTimeout(() => {\\n        const allLinks = document.querySelectorAll(\\\"a[href*='https://platform.zaia.app/auth/purchase-plan']\\\");\\n        console.log(`Encontrados ${allLinks.length} links para processar`);\\n        allLinks.forEach(link => processLink(link));\\n    }, 100);\\n    \\n    // Observa mudan\\xe7as no DOM\\n    const observer = new MutationObserver(function(mutations) {\\n        mutations.forEach(function(mutation) {\\n            mutation.addedNodes.forEach(function(node) {\\n                if (node.nodeType === 1) {\\n                    const links = node.querySelectorAll ? node.querySelectorAll(\\\"a[href*='https://platform.zaia.app/auth/purchase-plan']\\\") : [];\\n                    links.forEach(link => processLink(link));\\n                    \\n                    if (node.tagName === 'A' && node.href && node.href.includes('https://platform.zaia.app/auth/purchase-plan')) {\\n                        processLink(node);\\n                    }\\n                }\\n            });\\n        });\\n    });\\n    \\n    observer.observe(document.body, {\\n        childList: true,\\n        subtree: true\\n    });\\n});\\n</script>\",customHTMLBodyStart:'<!-- Start body (Framer) -->\\n<script>\\n(function () {\\n    const urlParams = new URLSearchParams(window.location.search);\\n    const utmKeys = [\"utm_source\", \"utm_medium\", \"utm_campaign\", \"utm_term\", \"utm_content\"];\\n    const storedParams = {};\\n\\n    utmKeys.forEach(key => {\\n        const value = urlParams.get(key);\\n        if (value) {\\n            storedParams[key] = value;\\n        }\\n    });\\n\\n    if (Object.keys(storedParams).length > 0) {\\n        localStorage.setItem(\"utm_params\", JSON.stringify(storedParams));\\n        console.log(\"UTMs armazenadas:\", storedParams); // Debug\\n    }\\n})();\\n</script>\\n\\n',customHTMLHeadStart:\"<!-- Google Tag Manager -->\\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s);j.async=true;j.src=\\\"https://load.stape.zaia.app/423x2verhsvpo.js?\\\"+i;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','3st9p=aWQ9R1RNLU5RWkJSVlhU&apiKey=f97ec3dc');</script>\\n<!-- End Google Tag Manager -->\\n\\n<!-- Mida A/B Testing Script -->\\n<script type=\\\"text/javascript\\\" async=\\\"\\\" src=\\\"https://cdn.mida.so/js/optimize.js?key=bJVGmqv2YvVzJYlWgj9k3o\\\"></script>\",description:getLocalizedValue(\"v1\",activeLocale)??\"Automatize o suporte e vendas com Funcion\\xe1rios de Intelig\\xeancia Artificial que trabalham por voc\\xea.\",favicon:\"https://framerusercontent.com/assets/mfwyaUTpxarjYk9dPQTh80H1hzE.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/tHy7yBRFIBPWx1Ihqq9Vh50eBY.jpg\",title:getLocalizedValue(\"v0\",activeLocale)??\"Zaia - Automatize suporte e vendas com IA\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "AACA,IAAMA,EAAiB,CAAC,UAAU,CAAC,GAAG,4CAA4C,GAAG,sFAAsF,CAAC,EAAE,SAASC,EAAkBC,EAAIC,EAAO,CAAC,KAAMA,GAAO,CAAC,IAAMC,EAAOJ,EAAiBG,EAAO,EAAE,EAAE,GAAGC,EAAO,CAAC,IAAMC,EAAMD,EAAOF,CAAG,EAAE,GAAGG,EAAM,OAAOA,CAAM,CAACF,EAAOA,EAAO,QAAS,CAAC,CAAgB,SAARG,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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