{"version":3,"file":"shared-lib.DUUn_bza.mjs","names":[],"sources":["https:/framerusercontent.com/modules/pC4xmp5qBzHDxELbVMIU/yaFOw2zsvO9avPLuHLuN/siteMetadata.js"],"sourcesContent":["// Generated by Framer (e1a43d5)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:\"<!-- Paste this right before your closing </head> tag -->\\n<script type=\\\"text/javascript\\\">\\n  (function (f, b) { if (!b.__SV) { var e, g, i, h; window.mixpanel = b; b._i = []; b.init = function (e, f, c) { function g(a, d) { var b = d.split(\\\".\\\"); 2 == b.length && ((a = a[b[0]]), (d = b[1])); a[d] = function () { a.push([d].concat(Array.prototype.slice.call(arguments, 0))); }; } var a = b; \\\"undefined\\\" !== typeof c ? (a = b[c] = []) : (c = \\\"mixpanel\\\"); a.people = a.people || []; a.toString = function (a) { var d = \\\"mixpanel\\\"; \\\"mixpanel\\\" !== c && (d += \\\".\\\" + c); a || (d += \\\" (stub)\\\"); return d; }; a.people.toString = function () { return a.toString(1) + \\\".people (stub)\\\"; }; i = \\\"disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove\\\".split( \\\" \\\"); for (h = 0; h < i.length; h++) g(a, i[h]); var j = \\\"set set_once union unset remove delete\\\".split(\\\" \\\"); a.get_group = function () { function b(c) { d[c] = function () { call2_args = arguments; call2 = [c].concat(Array.prototype.slice.call(call2_args, 0)); a.push([e, call2]); }; } for ( var d = {}, e = [\\\"get_group\\\"].concat( Array.prototype.slice.call(arguments, 0)), c = 0; c < j.length; c++) b(j[c]); return d; }; b._i.push([e, f, c]); }; b.__SV = 1.2; e = f.createElement(\\\"script\\\"); e.type = \\\"text/javascript\\\"; e.async = !0; e.src = \\\"undefined\\\" !== typeof MIXPANEL_CUSTOM_LIB_URL ? MIXPANEL_CUSTOM_LIB_URL : \\\"file:\\\" === f.location.protocol && \\\"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js\\\".match(/^\\\\/\\\\//) ? \\\"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js\\\" : \\\"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js\\\"; g = f.getElementsByTagName(\\\"script\\\")[0]; g.parentNode.insertBefore(e, g); } })(document, window.mixpanel || []);\\n\\n\\n\\n\\n// Meta Pixel\\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', '1590820768181691');\\n\\nfunction fbqEvent(eventName) {\\n    const eventId = \\\"event_\\\" + Math.random().toString(36).substring(2, 11);\\n    fbq('track', eventName, { eventID: eventId});\\n    \\n    // Get Facebook cookies\\n    const fbc = getSessionCookie('_fbc');\\n    const fbp = getSessionCookie('_fbp');\\n    \\n    // Build query parameters\\n    const params = new URLSearchParams(window.location.search);\\n    if (fbc) params.append('fbc', fbc);\\n    if (fbp) params.append('fbp', fbp);\\n    params.append('event_name', eventName);\\n    params.append('event_id', eventId);\\n    \\n    // Make the API call\\n    fetch(`https://api-ai.impresso.com/api/pixel/track-event?${params.toString()}`)\\n}\\n\\nfbqEvent('PageView');\\n\\n// Automatically get the root domain\\nfunction getRootDomain() {\\n    const domainParts = window.location.hostname.split('.');\\n    const domainLength = domainParts.length;\\n    if (domainLength > 2) {\\n        return domainParts.slice(-2).join('.');\\n    }\\n    return domainParts.join('.');\\n}\\n\\n// Set session cookie\\nfunction setSessionCookie(name, value) {\\n    const rootDomain = getRootDomain();\\n    const date = new Date();\\n    date.setFullYear(date.getFullYear() + 1); // Set expiration to 1 year from now\\n    const expires = date.toUTCString();\\n    document.cookie = `${name}=${value}; path=/; domain=.${rootDomain}; expires=${expires}; Secure; SameSite=Strict`;\\n}\\n\\n// Get session cookie\\nfunction getSessionCookie(name) {\\n    const cookies = document.cookie.split('; ');\\n    for (let i = 0; i < cookies.length; i++) {\\n        const [cookieName, cookieValue] = cookies[i].split('=');\\n        if (cookieName === name) {\\n            return cookieValue;\\n        }\\n    }\\n    return null;\\n}\\n\\n// Initialize Mixpanel with custom parameters and `loaded` callback\\nmixpanel.init('8ecbd883b5144ab15ae814f9bfdb2db8', {\\n    track_pageview: true,\\n    persistence: \\\"localStorage\\\",\\n    cross_subdomain_cookie: true,\\n    loaded: function(mixpanelInstance) {\\n        const distinctId = mixpanelInstance.get_distinct_id();\\n        const landingDistinctId = getSessionCookie('landing_mx_distinct_id');\\n        if (landingDistinctId == null) {\\n            setSessionCookie('landing_mx_distinct_id', distinctId);\\n        }\\n    }\\n});\\n\\n\\ndocument.addEventListener('DOMContentLoaded', () => {\\n    // Function to attach event listeners to links\\n    function attachLinkListeners() {\\n        // Select all anchor tags\\n        const aLinks = document.querySelectorAll('a[href*=\\\"https://app.impresso.com/auth_signup\\\"]');\\n        \\n        // Attach the event listener to each link\\n        aLinks.forEach(link => {\\n            // Remove any existing listeners first to prevent duplicates\\n            link.removeEventListener('click', handleLinkClick);\\n            // Use capture phase to ensure our handler runs before other handlers\\n            link.addEventListener('click', handleLinkClick, true);\\n        });\\n    }\\n\\n    // Function to handle the click event\\n    function handleLinkClick(event) {\\n        // Always prevent default first to stop any other navigation\\n        event.preventDefault();\\n        event.stopPropagation();\\n\\n        // Check if the link is set to open in a new tab\\n        const isNewTab = event.currentTarget.target === '_blank';\\n\\n        // Get the current URL path\\n        const currentPath = window.location.pathname;\\n\\n        // Map for currentPath to query string\\n        const pathToQueryMap = {\\n            '/ai-bg': '?start=magic_background',\\n            '/mockup': '?start=mockup', \\n            '/logomaker': '?start=logo',\\n            '/post-generator': '?start=social_post'\\n        };\\n\\n        // Determine the query string based on the current path\\n        let queryString = '';\\n        for (const path in pathToQueryMap) {\\n            if (currentPath.startsWith(path)) {\\n                queryString = pathToQueryMap[path];\\n                break;\\n            }\\n        }\\n\\n        // Construct the final URL\\n        const finalUrl = `https://app.impresso.com/auth_signup${queryString}`;\\n\\n        // Use setTimeout to ensure our navigation happens after other handlers\\n        setTimeout(() => {\\n            // Redirect to the link with the query string\\n            if (isNewTab) {\\n                window.open(finalUrl, '_blank');\\n            } else {\\n                window.location.href = finalUrl;\\n            }\\n        }, 0);\\n    }\\n\\n    // Initial attachment of event listeners\\n    attachLinkListeners();\\n\\n    // Create a MutationObserver to watch for DOM changes\\n    const observer = new MutationObserver(mutations => {\\n        mutations.forEach(mutation => {\\n            if (mutation.addedNodes.length) {\\n                attachLinkListeners();\\n            }\\n        });\\n    });\\n\\n    // Start observing the document with the configured parameters\\n    observer.observe(document.body, {\\n        childList: true,\\n        subtree: true\\n    });\\n\\n    // Handle history changes\\n    window.addEventListener('popstate', attachLinkListeners);\\n});\\n</script>\",description:\"Create AI Backgrounds, Photoshoots and Mockups for your products\",favicon:\"https://framerusercontent.com/assets/czRd8Ds76kg649JNNIObCoSTaCw.png\",robots:\"max-image-preview:large\",title:\"Impresso\"};}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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAqgP,YAAY,mEAAmE,QAAQ,uEAAuE,OAAO,0BAA0B,MAAM,WAAW"}