{"version":3,"file":"shared-lib.DdUmoA6P.mjs","names":[],"sources":["https:/framerusercontent.com/modules/hDreS9XD1QdwTFO4pzZl/Zjc43gzfYIPfu5odJvU8/siteMetadata.js"],"sourcesContent":["// Generated by Framer (b9489e0)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:\"<script>\\ndocument.addEventListener('DOMContentLoaded', function() {\\n    console.log('UTM handler initialized');\\n    \\n    // Function to get UTMs from URL or storage\\n    function getUTMParameters() {\\n        // First try to get from URL\\n        const searchParams = new URLSearchParams(window.location.search);\\n        const utmParams = {};\\n        let hasNewUTMs = false;\\n        \\n        ['utm_source', 'utm_campaign', 'utm_medium', 'utm_content'].forEach(param => {\\n            const value = searchParams.get(param);\\n            if (value) {\\n                const key = param.replace('utm_', '');\\n                utmParams[key] = value;\\n                hasNewUTMs = true;\\n            }\\n        });\\n        \\n        // If we found UTMs in URL, save them to sessionStorage\\n        if (hasNewUTMs) {\\n            sessionStorage.setItem('utmParams', JSON.stringify(utmParams));\\n            return utmParams;\\n        }\\n        \\n        // If no UTMs in URL, try to get from sessionStorage\\n        const storedUTMs = sessionStorage.getItem('utmParams');\\n        if (storedUTMs) {\\n            return JSON.parse(storedUTMs);\\n        }\\n        \\n        // If no UTMs anywhere, return empty object\\n        return {};\\n    }\\n    \\n    // Get UTMs (either from URL or storage)\\n    const utmParams = getUTMParameters();\\n    console.log('UTM Parameters:', utmParams);\\n    \\n    // Listen for the form iframe\\n    window.addEventListener('message', function(event) {\\n        if (event.origin !== 'https://sbaform-eight.vercel.app') return;\\n        \\n        console.log('Received message:', event.data);\\n        \\n        if (event.data.type === 'FORM_READY') {\\n            console.log('Form is ready, sending UTMs:', utmParams);\\n            \\n            const iframe = document.getElementById('formIframe');\\n            if (iframe) {\\n                iframe.contentWindow.postMessage({\\n                    type: 'UTM_PARAMS',\\n                    params: utmParams\\n                }, 'https://sbaform-eight.vercel.app');\\n            } else {\\n                console.error('Form iframe not found');\\n            }\\n        }\\n    });\\n});\\n</script>\",description:\"Get consistent cash flow with a DFY Solar Business. Our team takes care of all the building and scaling.\",favicon:\"https://framerusercontent.com/assets/P63SNZONjTDYuEpEJKXufBSUiEs.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/YdfGEWXCQe3prt2R6UJcizGWq8.png\",title:\"Solar Boss Automations\"};}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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA0oE,YAAY,2GAA2G,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,sEAAsE,MAAM,yBAAyB,AAAE"}