{"version":3,"file":"shared-lib.CB5l63JM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/AmXMyttxDQNv2iDTeCTT/YTIMnlsGIVY25mEgxa4H/siteMetadata.js"],"sourcesContent":["// Generated by Framer (aabb2d2)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:'<script type=\"text/javascript\">\\n  // Flag para evitar multiples ejecuciones\\n  if (!window._mixpanelTracked) {\\n    window._mixpanelTracked = {\\n      landing_clientes: false,\\n      landing_farmacias: false,\\n      _initialized: false,\\n      _trackingLandingClientes: false,\\n      _trackingLandingFarmacias: false\\n    };\\n  }\\n\\n  // Funcion para trackear eventos de forma segura\\n  function safeTrack(eventName, properties, once = true) {\\n    if (once && window._mixpanelTracked[eventName]) {\\n      return;\\n    }\\n\\n    if (once) {\\n      window._mixpanelTracked[eventName] = true;\\n    }\\n\\n    function waitForMixpanel(retries) {\\n      if (retries <= 0) {\\n        return;\\n      }\\n      \\n      if (window.mixpanel && typeof window.mixpanel.track === \\'function\\') {\\n        const isRealMixpanel = !window.mixpanel._i || window.mixpanel.__loaded;\\n        \\n        if (isRealMixpanel) {\\n          try {\\n            window.mixpanel.track(eventName, properties);\\n          } catch (error) {\\n            console.error(\\'Error tracking \\' + eventName, error);\\n          }\\n        } else {\\n          setTimeout(() => waitForMixpanel(retries - 1), 200);\\n        }\\n      } else {\\n        setTimeout(() => waitForMixpanel(retries - 1), 200);\\n      }\\n    }\\n\\n    waitForMixpanel(25);\\n  }\\n\\n  // Trackear landing_clientes (pagina principal /)\\n  function trackLandingClientes() {\\n    if (window._mixpanelTracked._trackingLandingClientes || window._mixpanelTracked.landing_clientes) {\\n      return;\\n    }\\n    \\n    window._mixpanelTracked._trackingLandingClientes = true;\\n    \\n    const currentPath = window.location.pathname;\\n    const isLandingPage = currentPath === \"/\" || currentPath === \"\";\\n    \\n    if (isLandingPage && \\n        (window.location.hostname === \"www.farmatouch.com\" || \\n         window.location.hostname === \"farmatouch.com\")) {\\n      safeTrack(\"landing_clientes\", {\\n        page: currentPath,\\n        url: window.location.href,\\n        hostname: window.location.hostname,\\n        timestamp: new Date().toISOString(),\\n      });\\n    } else {\\n      window._mixpanelTracked._trackingLandingClientes = false;\\n    }\\n  }\\n\\n  // Trackear landing_farmacias (pagina /farmacia)\\n  function trackLandingFarmacias() {\\n    if (window._mixpanelTracked._trackingLandingFarmacias || window._mixpanelTracked.landing_farmacias) {\\n      return;\\n    }\\n    \\n    window._mixpanelTracked._trackingLandingFarmacias = true;\\n    \\n    const currentPath = window.location.pathname;\\n    const isFarmaciaPage = currentPath === \"/farmacia\" || currentPath === \"/farmacia/\";\\n    \\n    if (isFarmaciaPage && \\n        (window.location.hostname === \"www.farmatouch.com\" || \\n         window.location.hostname === \"farmatouch.com\")) {\\n      safeTrack(\"landing_farmacias\", {\\n        page: currentPath,\\n        url: window.location.href,\\n        hostname: window.location.hostname,\\n        timestamp: new Date().toISOString(),\\n      });\\n    } else {\\n      window._mixpanelTracked._trackingLandingFarmacias = false;\\n    }\\n  }\\n\\n  // Trackear clics en botones especificos\\n  function setupClickTracking() {\\n    document.addEventListener(\"click\", (event) => {\\n      const targetLabels = [\\n        \"landing_inicia_tu_pedido\",\\n        \"landing_burger_cliente\",\\n        \"landing_burger_farmacias\",\\n        \"landing_burguer_faqs\",\\n        \"landing_burger_nav_farmacias\",\\n        \"landing_burguer_nav_faqs\",\\n        \"llanding_burguer_nav_faqs\",\\n        \"desp clien tab\"\\n      ];\\n      \\n      let found = null;\\n      let current = event.target;\\n      let depth = 0;\\n      \\n      while (current && current !== document.body && depth < 20) {\\n        const ariaLabel = current.getAttribute(\"aria-label\");\\n        const dataFramerName = current.getAttribute(\"data-framer-name\");\\n        \\n        if (ariaLabel && targetLabels.includes(ariaLabel)) {\\n          found = { label: ariaLabel, element: current };\\n          break;\\n        }\\n        if (dataFramerName && targetLabels.includes(dataFramerName)) {\\n          found = { label: dataFramerName, element: current };\\n          break;\\n        }\\n        \\n        current = current.parentElement;\\n        depth++;\\n      }\\n      \\n      if (!found) {\\n        for (const label of targetLabels) {\\n          const elements = document.querySelectorAll(\\'[aria-label=\"\\' + label + \\'\"]\\');\\n          for (const el of elements) {\\n            if (el.contains(event.target)) {\\n              found = { label: label, element: el };\\n              break;\\n            }\\n          }\\n          if (found) break;\\n          \\n          const elementsDF = document.querySelectorAll(\\'[data-framer-name=\"\\' + label + \\'\"]\\');\\n          for (const el of elementsDF) {\\n            if (el.contains(event.target)) {\\n              found = { label: label, element: el };\\n              break;\\n            }\\n          }\\n          if (found) break;\\n        }\\n      }\\n      \\n      if (!found) return;\\n\\n      const ariaLabel = found.label;\\n      const target = found.element;\\n\\n      if (ariaLabel === \"landing_inicia_tu_pedido\") {\\n        safeTrack(\"landing_inicia_tu_pedido\", {\\n          page: window.location.pathname,\\n          url: window.location.href,\\n          element: ariaLabel,\\n          tag: target.tagName.toLowerCase(),\\n          href: target.getAttribute(\"href\") || (target.querySelector(\"a\") ? target.querySelector(\"a\").getAttribute(\"href\") : null),\\n          timestamp: new Date().toISOString(),\\n        }, false);\\n        return;\\n      }\\n\\n      if (ariaLabel === \"landing_burger_cliente\" || ariaLabel === \"desp clien tab\") {\\n        safeTrack(\"landing_burger_cliente\", {\\n          page: window.location.pathname,\\n          url: window.location.href,\\n          element: \"landing_burger_cliente\",\\n          tag: target.tagName.toLowerCase(),\\n          href: target.getAttribute(\"href\") || (target.querySelector(\"a\") ? target.querySelector(\"a\").getAttribute(\"href\") : null),\\n          timestamp: new Date().toISOString(),\\n        }, false);\\n        return;\\n      }\\n\\n      if (ariaLabel === \"landing_burger_farmacias\" || ariaLabel === \"landing_burguer_faqs\") {\\n        // Solo trackear landing_burger_farmacias si estamos en la pagina /farmacia\\n        const currentPath = window.location.pathname;\\n        const isFarmaciaPage = currentPath === \"/farmacia\" || currentPath === \"/farmacia/\";\\n        \\n        if (isFarmaciaPage) {\\n          safeTrack(\"landing_burger_farmacias\", {\\n            page: window.location.pathname,\\n            url: window.location.href,\\n            element: \"landing_burger_farmacias\",\\n            tag: target.tagName.toLowerCase(),\\n            href: target.getAttribute(\"href\") || (target.querySelector(\"a\") ? target.querySelector(\"a\").getAttribute(\"href\") : null),\\n            timestamp: new Date().toISOString(),\\n          }, false);\\n        }\\n        return;\\n      }\\n\\n      if (ariaLabel === \"landing_burger_nav_farmacias\") {\\n        safeTrack(\"landing_burger_nav_farmacias\", {\\n          page: window.location.pathname,\\n          url: window.location.href,\\n          element: ariaLabel,\\n          tag: target.tagName.toLowerCase(),\\n          href: target.getAttribute(\"href\") || (target.querySelector(\"a\") ? target.querySelector(\"a\").getAttribute(\"href\") : null),\\n          timestamp: new Date().toISOString(),\\n        }, false);\\n        return;\\n      }\\n\\n      if (ariaLabel === \"landing_burguer_nav_faqs\" || ariaLabel === \"llanding_burguer_nav_faqs\") {\\n        safeTrack(\"landing_burguer_nav_faqs\", {\\n          page: window.location.pathname,\\n          url: window.location.href,\\n          element: \"landing_burguer_nav_faqs\",\\n          tag: target.tagName.toLowerCase(),\\n          href: target.getAttribute(\"href\") || (target.querySelector(\"a\") ? target.querySelector(\"a\").getAttribute(\"href\") : null),\\n          timestamp: new Date().toISOString(),\\n        }, false);\\n        return;\\n      }\\n    });\\n  }\\n\\n  // Inicializar\\n  if (!window._mixpanelTracked._initialized) {\\n    window._mixpanelTracked._initialized = true;\\n    \\n    if (document.readyState === \\'loading\\') {\\n      document.addEventListener(\"DOMContentLoaded\", function() {\\n        trackLandingClientes();\\n        trackLandingFarmacias();\\n        setupClickTracking();\\n      });\\n    } else {\\n      trackLandingClientes();\\n      trackLandingFarmacias();\\n      setupClickTracking();\\n    }\\n  }\\n</script>\\n',customHTMLHeadEnd:'<script type=\"text/javascript\">\\n  (function(f,b){\\n    if(!b.__SV){\\n      var e,g,i,h;\\n      window.mixpanel=b;\\n      b._i=[];\\n      b.init=function(e,f,c){\\n        function g(a,d){\\n          var b=d.split(\".\");\\n          2==b.length&&(a=a[b[0]],d=b[1]);\\n          a[d]=function(){\\n            a.push([d].concat(Array.prototype.slice.call(arguments,0)))\\n          }\\n        }\\n        var a=b;\\n        \"undefined\"!==typeof c?a=b[c]=[]:c=\"mixpanel\";\\n        a.people=a.people||[];\\n        a.toString=function(a){\\n          var d=\"mixpanel\";\\n          \"mixpanel\"!==c&&(d+=\".\"+c);\\n          a||(d+=\" (stub)\");\\n          return d\\n        };\\n        a.people.toString=function(){\\n          return a.toString(1)+\".people (stub)\"\\n        };\\n        i=\"disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user\".split(\" \");\\n        for(h=0;h<i.length;h++)g(a,i[h]);\\n        b._i.push([e,f,c])\\n      };\\n      b.__SV=1.2;\\n      e=f.createElement(\"script\");\\n      e.type=\"text/javascript\";\\n      e.async=!0;\\n      e.src=\"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js\";\\n      g=f.getElementsByTagName(\"script\")[0];\\n      g.parentNode.insertBefore(e,g)\\n    }\\n  })(document,window.mixpanel||[]);\\n  mixpanel.init(\"3e2fad47149dabd32f4c614d9cf32e1f\");\\n</script>',description:\"La nueva forma de ir a la farmacia. Ped\\xed tus medicamentos con receta o de venta libre de manera f\\xe1cil y segura.\",favicon:\"https://framerusercontent.com/assets/k0Mw69F0lvwudg4a4UmKutOWlyo.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/tQUwinRoB1jvVCa18nwYN3Zo54A.png\",title:\"Farmatouch\"};}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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuzQ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA4+C,YAAY,kHAAwH,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,uEAAuE,MAAM,aAAa"}