{"version":3,"file":"shared-lib.Dhj5YAJP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/tFeQjw3fGkg9EuSM7g3b/wwGPuaL3DUDRRxmRf5TX/siteMetadata.js"],"sourcesContent":["// Generated by Framer (7d01136)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<script>\\n  console.log('📊 Page Tracking: Starting...');\\n  \\n  let retryCount = 0;\\n  const maxRetries = 30;\\n  \\n  function waitForStatsigClient() {\\n    retryCount++;\\n    console.log(`📊 Waiting for Statsig client (attempt ${retryCount}/${maxRetries})`);\\n    \\n    if (window.statsig && window.statsig.logEvent) {\\n      console.log('✅ Statsig client ready! Setting up tracking...');\\n      setupPageTracking();\\n    } else if (retryCount < maxRetries) {\\n      setTimeout(waitForStatsigClient, 500);\\n    } else {\\n      console.error('❌ Statsig client not ready after', maxRetries, 'attempts');\\n    }\\n  }\\n  \\n  function setupPageTracking() {\\n    // Track initial page load\\n    trackPageVisit('initial_load');\\n    \\n    // Track navigation changes\\n    let currentUrl = window.location.href;\\n    console.log('📊 Monitoring URL changes from:', currentUrl);\\n    \\n    setInterval(() => {\\n      if (window.location.href !== currentUrl) {\\n        console.log('🔄 URL changed:', currentUrl, '→', window.location.href);\\n        currentUrl = window.location.href;\\n        trackPageVisit('navigation');\\n      }\\n    }, 1000);\\n    \\n    console.log('✅ Page tracking setup complete');\\n  }\\n  \\n  function trackPageVisit(source) {\\n    if (window.statsig && window.statsig.logEvent) {\\n      // Use separate value and metadata parameters\\n      const eventValue = 1; // Simple numeric value\\n      const eventMetadata = {\\n        url: window.location.href,\\n        pathname: window.location.pathname,\\n        search: window.location.search,\\n        hash: window.location.hash,\\n        referrer: document.referrer || null,\\n        page_title: document.title,\\n        viewport_width: window.innerWidth,\\n        viewport_height: window.innerHeight,\\n        source: source,\\n        timestamp: new Date().toISOString()\\n      };\\n      \\n      try {\\n        console.log('📊 Logging page visit with metadata:', eventMetadata);\\n        \\n        // Correct Statsig logEvent format: (eventName, value, metadata)\\n        window.statsig.logEvent('page_visit', eventValue, eventMetadata);\\n        \\n        console.log('✅ Page visit logged successfully!');\\n      } catch (error) {\\n        console.error('❌ Failed to log page visit:', error);\\n      }\\n    } else {\\n      console.error('❌ Statsig client not available for tracking');\\n    }\\n  }\\n  \\n  // Start waiting for client\\n  waitForStatsigClient();\\n</script>\",customHTMLBodyStart:\"<script>\\n  console.log('📊 Page Tracking: Starting...');\\n  \\n  let retryCount = 0;\\n  const maxRetries = 30;\\n  \\n  function waitForStatsigClient() {\\n    retryCount++;\\n    console.log(`📊 Waiting for Statsig client (attempt ${retryCount}/${maxRetries})`);\\n    \\n    if (window.statsig && window.statsig.logEvent) {\\n      console.log('✅ Statsig client ready! Setting up tracking...');\\n      setupPageTracking();\\n    } else if (retryCount < maxRetries) {\\n      setTimeout(waitForStatsigClient, 500);\\n    } else {\\n      console.error('❌ Statsig client not ready after', maxRetries, 'attempts');\\n    }\\n  }\\n  \\n  function setupPageTracking() {\\n    // Track initial page load\\n    trackPageVisit('initial_load');\\n    \\n    // Track navigation changes\\n    let currentUrl = window.location.href;\\n    console.log('📊 Monitoring URL changes from:', currentUrl);\\n    \\n    setInterval(() => {\\n      if (window.location.href !== currentUrl) {\\n        console.log('🔄 URL changed:', currentUrl, '→', window.location.href);\\n        currentUrl = window.location.href;\\n        trackPageVisit('navigation');\\n      }\\n    }, 1000);\\n    \\n    console.log('✅ Page tracking setup complete');\\n  }\\n  \\n  function trackPageVisit(source) {\\n    if (window.statsig && window.statsig.logEvent) {\\n      try {\\n        // Method 1: Simple page visit with URL as value\\n        console.log('📊 Logging page visit - URL:', window.location.pathname);\\n        window.statsig.logEvent(\\n          'page_visit',\\n          window.location.pathname,  // String value - the page path\\n          {\\n            url: window.location.href,\\n            search: window.location.search,\\n            hash: window.location.hash,\\n            referrer: document.referrer || null,\\n            page_title: document.title,\\n            viewport_width: window.innerWidth,\\n            viewport_height: window.innerHeight,\\n            source: source,\\n            timestamp: new Date().toISOString()\\n          }\\n        );\\n        console.log('✅ Page visit logged successfully!');\\n        \\n      } catch (error) {\\n        console.error('❌ Failed to log page visit:', error);\\n        console.error('❌ Error details:', error.message);\\n      }\\n    } else {\\n      console.error('❌ Statsig client not available for tracking');\\n    }\\n  }\\n  \\n  // Start waiting for client\\n  waitForStatsigClient();\\n</script>\",customHTMLHeadEnd:\"<!-- 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-5GX3MGBZ');</script>\\n<!-- End Google Tag Manager -->\\n\\n<!-- <script src=\\\"https://cdn.jsdelivr.net/npm/@statsig/js-client@3/build/statsig-js-client+session-replay+web-analytics.min.js?apikey=client-1pQWc8MGDgARualYBAbQEx7KaJ7T0HbtapW0glJV4b5\\\"></script> -->\\n\\n<script src=\\\"https://cdn.jsdelivr.net/npm/@statsig/js-client@3/build/statsig-js-client+session-replay+web-analytics.min.js?apikey=client-1pQWc8MGDgARualYBAbQEx7KaJ7T0HbtapW0glJV4b5\\\"></script>\\n<script>\\n  console.log('🔧 Statsig script loaded, initializing client...');\\n  \\n  // Wait for Statsig to be available, then create client\\n  function initializeStatsigClient() {\\n    if (window.Statsig && window.Statsig.StatsigClient) {\\n      console.log('✅ Creating Statsig client...');\\n      \\n      try {\\n        // Create the client instance\\n        const client = new window.Statsig.StatsigClient('client-1pQWc8MGDgARualYBAbQEx7KaJ7T0HbtapW0glJV4b5', {\\n          userID: 'user-' + Math.random().toString(36).substr(2, 9)\\n        });\\n        \\n        console.log('🔧 Client created, initializing...');\\n        \\n        // Initialize the client\\n        client.initializeAsync().then(() => {\\n          console.log('✅ Statsig client initialized successfully!');\\n          window.statsig = client; // Make available globally\\n          window.statsigReady = true;\\n        }).catch((error) => {\\n          console.error('❌ Statsig initialization failed:', error);\\n        });\\n        \\n      } catch (error) {\\n        console.error('❌ Failed to create Statsig client:', error);\\n      }\\n    } else {\\n      console.log('⏳ Waiting for Statsig...');\\n      setTimeout(initializeStatsigClient, 100);\\n    }\\n  }\\n  \\n  // Start initialization\\n  initializeStatsigClient();\\n</script>\",description:\"NewDays Cognitive Health\",favicon:\"https://framerusercontent.com/assets/7rVufso8FcwhxfLeMV1AQpXJDGw.png\",robots:\"max-image-preview:large\",title:\"NewDays\"};}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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAq4E,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAi2E,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAolE,YAAY,2BAA2B,QAAQ,uEAAuE,OAAO,0BAA0B,MAAM,UAAU,AAAE"}