{"version":3,"file":"shared-lib.PoeAn0eh.mjs","names":[],"sources":["https:/framerusercontent.com/modules/q6x0ClPZnVR9MJzyNIIq/DorSzEFzLzdo86qS3xIh/siteMetadata.js"],"sourcesContent":["// Generated by Framer (aabb2d2)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:'<!-- Plugin: 607642 --> \\n  <script>\\n      const ranges = [{\"min\":0,\"max\":639,\"base\":360},{\"min\":640,\"max\":809,\"base\":0},{\"min\":810,\"max\":1199,\"base\":0},{\"min\":1200,\"max\":10000,\"base\":1200}];\\n      const container = document.body\\n      const handleResize = () => {\\n          if (ranges) {\\n              const range = ranges.find(range => window.innerWidth >= range.min && window.innerWidth <= range.max);\\n              if (range) {\\n                  if (range.base && range.base > 0) {\\n                      // Apply scaling for ranges with a base value\\n                      container.style.zoom = window.innerWidth / range.base;\\n                      container.style.width = range.base + \\'px\\';\\n                      container.style.overflowX = \\'hidden\\';\\n                  } else {\\n                      // Reset styles for ranges without base (normal responsive behavior)\\n                      container.style.zoom = \\'\\';\\n                      container.style.width = \\'\\';\\n                      container.style.overflowX = \\'\\';\\n                  }\\n              }\\n          }\\n      }\\n      window.addEventListener(\"resize\", handleResize);\\n      handleResize();\\n  </script>\\n          ',customHTMLHeadEnd:\"<!-- Meta Pixel Code -->\\n<script>\\n!function(f,b,e,v,n,t,s) {\\n  if (f.fbq) return;\\n  n = f.fbq = function() {\\n    n.callMethod ?\\n      n.callMethod.apply(n, arguments) : n.queue.push(arguments)\\n  };\\n  if (!f._fbq) f._fbq = n;\\n  n.push = n;\\n  n.loaded = !0;\\n  n.version = '2.0';\\n  n.queue = [];\\n  t = b.createElement(e);\\n  t.async = !0;\\n  t.src = v;\\n  s = b.getElementsByTagName(e)[0];\\n  s.parentNode.insertBefore(t, s);\\n}(window, document, 'script',\\n  'https://connect.facebook.net/en_US/fbevents.js');\\n\\nfbq('init', '771541279273207'); // \\nfbq('track', 'PageView');\\n</script>\\n<!-- End Meta Pixel Code -->\\n<!-- 1️⃣ Quiz Widget Styles -->\\n<link href=\\\"https://id.alg.academy/js/quiz-widget/quizWidgetLat.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\">\\n\\n<!-- 3️⃣ Quiz Widget Config + Loader -->\\n<script>\\nconsole.log('[Head] Widget init script running');\\n\\nwindow.GLOBAL_WIDGET_CONFIG = {\\n  selector: 'button[aria-label=\\\"open_quiz\\\"]',\\n  experimentType: 'LatamTest',\\n  landingType: 'LatamTest'\\n};\\n\\n(function() {\\n  const script = document.createElement('script');\\n  script.src = 'https://id.alg.academy/js/quiz-widget/quizWidgetLat.js';\\n  script.async = true;\\n  script.onload = function() {\\n    console.log('[Head] Widget script loaded');\\n    const init = () => {\\n      const btn = document.querySelector(window.GLOBAL_WIDGET_CONFIG.selector);\\n      console.log('[Head] Checking for button', btn);\\n      if (btn && typeof QuizWidget !== 'undefined') {\\n        console.log('[Head] Initializing widget');\\n        QuizWidget.init({\\n          selector: window.GLOBAL_WIDGET_CONFIG.selector,\\n          experimentType: window.GLOBAL_WIDGET_CONFIG.experimentType,\\n          landingType: window.GLOBAL_WIDGET_CONFIG.landingType,\\n          ymId: window.GLOBAL_WIDGET_CONFIG.ymId\\n        });\\n      } else {\\n        console.log('[Head] Retry init');\\n        setTimeout(init, 1000);\\n      }\\n    };\\n    init();\\n  };\\n  script.onerror = () => console.error('[Head] Failed to load widget script');\\n  document.head.appendChild(script);\\n})();\\n</script>\\n\\n<!-- 4️⃣ Fix modal position inside Framer -->\\n<script>\\n(function () {\\n  function movePopupOutOfBody() {\\n    const popup = document.getElementById('quiz-popup-container');\\n    if (popup && popup.parentElement !== document.documentElement) {\\n      document.documentElement.appendChild(popup);\\n      popup.style.position = 'fixed';\\n      popup.style.zIndex = '99999';\\n      popup.style.top = '0';\\n      popup.style.left = '0';\\n      console.log('[Head] Moved popup to <html>');\\n    }\\n  }\\n\\n  const observer = new MutationObserver(() => {\\n    const popup = document.getElementById('quiz-popup-container');\\n    if (popup) movePopupOutOfBody();\\n  });\\n\\n  document.addEventListener('DOMContentLoaded', () => {\\n    observer.observe(document.body, { childList: true, subtree: true });\\n    console.log('[Head] MutationObserver started');\\n  });\\n})();\\n</script>\\n<script src=\\\"https://d8e1sip48weik.cloudfront.net/lead-data-gather.js\\\" defer=\\\"\\\"></script>\\n\\n<!-- 🕵️‍♂️ FINAL LEAD TRACKER (Place in HEAD) -->\\n<script>\\n  // 1. Сразу сообщаем, что скрипт загрузился\\n  console.log('%c🔧 TRACKER: Скрипт инициализирован в HEAD', 'background: purple; color: white; font-size: 14px;');\\n\\n  window.addEventListener('DOMContentLoaded', function() {\\n    \\n    let leadSent = false;\\n    const SUCCESS_TEXT = \\\"Registro exitoso\\\"; // Текст успешного экрана\\n\\n    // Функция проверки текста\\n    function checkForSuccess(element) {\\n      if (leadSent || !element) return;\\n\\n      // Проверяем текст внутри элемента\\n      if (element.innerText && element.innerText.includes(SUCCESS_TEXT)) {\\n        console.log('%c✅ LEAD DETECTED! Текст найден.', 'background: green; color: white; font-size: 20px;');\\n        \\n        // Отправка в Facebook\\n        if (typeof fbq === 'function') {\\n          fbq('track', 'Lead');\\n          console.log('📡 Событие Lead отправлено в Facebook Pixel');\\n        } else {\\n          console.warn('⚠️ fbq не найден, но событие произошло');\\n        }\\n\\n        leadSent = true;\\n      }\\n    }\\n\\n    // 2. Запускаем \\\"ищейку\\\" элемента\\n    const findPopupInterval = setInterval(() => {\\n      // Ищем контейнер по ID. getElementById находит элементы даже если они перенесены в <html>\\n      const popup = document.getElementById('quiz-popup-container');\\n\\n      if (popup) {\\n        console.log('%c🔎 Попап найден! Начинаю слежку.', 'color: blue');\\n        clearInterval(findPopupInterval);\\n\\n        // Создаем наблюдателя за изменениями внутри попапа\\n        const observer = new MutationObserver(() => {\\n          checkForSuccess(popup);\\n          if (leadSent) observer.disconnect();\\n        });\\n\\n        observer.observe(popup, {\\n          childList: true,\\n          subtree: true,\\n          characterData: true,\\n          attributes: true\\n        });\\n        \\n        // На всякий случай проверяем прямо сейчас\\n        checkForSuccess(popup);\\n      }\\n    }, 1000); // Ищем контейнер каждую секунду\\n  });\\n</script>\",description:\"Clases\\xa0de\\xa0programaci\\xf3n\\xa0para\\xa0ni\\xf1os\\xa0y\\xa0adolescentes de\\xa08\\xa0a\\xa017\\xa0a\\xf1os\",favicon:\"https://framerusercontent.com/assets/xkeiO36Gl5BjJZ64BWYuTy9q8o.png\",robots:\"max-image-preview:large\",title:\"Algonova \"};}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;;;;;;;;;;;;;;;;;;;;;;;;;YAAmsC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA69J,YAAY,gGAAyG,QAAQ,sEAAsE,OAAO,0BAA0B,MAAM,YAAY"}