{"version":3,"file":"siteMetadata.x1aCPEyd.mjs","names":[],"sources":["https:/framerusercontent.com/modules/A8zSKyCfo2ifIhpJzq3w/KNVEGr3rEurh8Bhgy8nr/siteMetadata.js"],"sourcesContent":["// Generated by Framer (9805f18)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<!-- Mixpanel SDK (Load Once, Site-Wide) -->\\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// Initialize once\\nmixpanel.init('3a0beb16f9749069ec95b7fc93ce9032', {\\n  cookie_domain: '.luminasalud.com',\\n  cross_subdomain_cookie: true,\\n  secure_cookie: true\\n  });\\n// Identificaci\\xf3n persistente de usuarios\\n(function() {\\n  let userId = localStorage.getItem('lumina_user_id');\\n  \\n  if (!userId) {\\n    // Crear ID \\xfanico si no existe\\n    userId = 'user_' + Date.now() + '_' + Math.random().toString(36).substr(2, 9);\\n    localStorage.setItem('lumina_user_id', userId);\\n    \\n    // Primera visita\\n    mixpanel.track('First Visit', {\\n      user_id: userId,\\n      landing_page: window.location.pathname,\\n      referrer: document.referrer || 'direct'\\n    });\\n    console.log('👤 New user identified:', userId);\\n  }\\n  \\n  // Identificar en Mixpanel\\n  mixpanel.identify(userId);\\n  \\n  // Registrar propiedades persistentes\\n  mixpanel.register({\\n    user_id: userId,\\n    domain: window.location.hostname\\n  });\\n  \\n  console.log('👤 User identified:', userId);\\n})();\\n\\n// Track page views\\nwindow.addEventListener('load', function() {\\n  const pagePath = window.location.pathname;\\n  const isLandingPage = !document.referrer || !document.referrer.includes(window.location.hostname);\\n  \\n  console.log('📊 Page path:', pagePath);\\n  console.log('🔍 Is landing page:', isLandingPage);\\n  \\n  // Homepage tracking\\n  if (pagePath === '/') {\\n    if (isLandingPage) {\\n      mixpanel.track('Landing Page Viewed');\\n      console.log('🎯 Event fired: Landing Page Viewed');\\n    }\\n    mixpanel.track('Page Viewed: home');\\n    console.log('🎯 Event fired: Page Viewed: home');\\n  }\\n  // Empiezaya page\\n  else if (pagePath.includes('/empiezaya')) {\\n    mixpanel.track('Page Viewed: empiezaya');\\n    console.log('🎯 Event fired: Page Viewed: empiezaya');\\n    \\n    // Track form interaction\\n    setTimeout(function() {\\n      const iframe = document.querySelector('iframe[src*=\\\"tally.so\\\"]');\\n      if (iframe) {\\n        console.log('📝 Form iframe found, setting up listeners...');\\n        let formStartTracked = false;\\n        \\n        // Scroll tracking\\n        window.addEventListener('scroll', function() {\\n          if (!formStartTracked) {\\n            const iframeRect = iframe.getBoundingClientRect();\\n            if (iframeRect.top < window.innerHeight * 0.8 && iframeRect.bottom > 0) {\\n              mixpanel.track('Empieza Ya 2ndStep');\\n              console.log('🎯 Event fired: Empieza Ya 2ndStep (via scroll)');\\n              formStartTracked = true;\\n            }\\n          }\\n        });\\n        \\n        // Touch tracking (mobile)\\n        iframe.addEventListener('touchstart', function() {\\n          if (!formStartTracked) {\\n            mixpanel.track('Empieza Ya 2ndStep');\\n            console.log('🎯 Event fired: Empieza Ya 2ndStep (via touch)');\\n            formStartTracked = true;\\n          }\\n        }, { passive: true });\\n        \\n        // Click tracking\\n        iframe.addEventListener('click', function() {\\n          if (!formStartTracked) {\\n            mixpanel.track('Empieza Ya 2ndStep');\\n            console.log('🎯 Event fired: Empieza Ya 2ndStep (via click)');\\n            formStartTracked = true;\\n          }\\n        });\\n        \\n        // Tally message tracking\\n        window.addEventListener('message', function(e) {\\n          if (!formStartTracked && e.data && typeof e.data === 'string') {\\n            if (e.data.includes('Tally') || e.data.includes('tally')) {\\n              try {\\n                const data = JSON.parse(e.data);\\n                if (data.event && data.event.includes('Tally')) {\\n                  mixpanel.track('Empieza Ya 2ndStep');\\n                  console.log('🎯 Event fired: Empieza Ya 2ndStep (via Tally message)');\\n                  formStartTracked = true;\\n                }\\n              } catch(err) {\\n                // Not JSON, ignore\\n              }\\n            }\\n          }\\n        });\\n      } else {\\n        console.log('⚠️ Form iframe not found');\\n      }\\n    }, 1000);\\n  }\\n  // Success page\\n  else if (pagePath.includes('/success')) {\\n    mixpanel.track('Success Page');\\n    console.log('🎯 Event fired: Success Page');\\n  }\\n  // All other pages\\n  else {\\n    const pageName = pagePath.split('/').filter(Boolean).join('/') || 'home';\\n    mixpanel.track(`Page Viewed: ${pageName}`);\\n    console.log('🎯 Event fired: Page Viewed:', pageName);\\n  }\\n});\\n</script>\",customHTMLBodyStart:'<!-- Google Tag Manager (noscript) -->\\n<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-KLNGW7MK\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>\\n<!-- End Google Tag Manager (noscript) -->',customHTMLHeadEnd:'<script async=\"\" type=\"text/javascript\" src=\"https://static.klaviyo.com/onsite/js/RRzFFK/klaviyo.js?company_id=RRzFFK\"></script>\\n          <script type=\"text/javascript\"> \\n          //Initialize Klaviyo object on page load\\n          !function(){if(!window.klaviyo){window._klOnsite=window._klOnsite||[];try{window.klaviyo=new Proxy({},{get:function(n,i){return\"push\"===i?function(){var n;(n=window._klOnsite).push.apply(n,arguments)}:function(){for(var n=arguments.length,o=new Array(n),w=0;w<n;w++)o[w]=arguments[w];var t=\"function\"==typeof o[o.length-1]?o.pop():void 0,e=new Promise((function(n){window._klOnsite.push([i].concat(o,[function(i){t&&t(i),n(i)}]))}));return e}}})}catch(n){window.klaviyo=window.klaviyo||[],window.klaviyo.push=function(){var n;(n=window._klOnsite).push.apply(n,arguments)}}}}(); </script>',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-KLNGW7MK');</script>\\n<!-- End Google Tag Manager -->\",description:\"Lumina \\xb7 Tu aliado en la p\\xe9rdida de peso segura y efectiva\",favicon:\"https://framerusercontent.com/assets/nw6z3REL31glJzTYPbdUFFgkuU.svg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/kHvpW7ZEHjW25CMeEEOz76jnHM.png\",title:\"Lumina\"};}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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA86M,oBAAoB;;4CAAwP,kBAAkB;;;wlBAA0zB,oBAAoB;;;;;;iCAA4a,YAAY,6DAAmE,QAAQ,sEAAsE,OAAO,0BAA0B,YAAY,sEAAsE,MAAM,SAAS"}