{"version":3,"file":"shared-lib.BpzaYBPy.mjs","names":[],"sources":["https:/framerusercontent.com/modules/pQjPuyAbvLefJl9hwJuh/NMRpbSf1Xu004WSjuI3J/siteMetadata.js"],"sourcesContent":["// Generated by Framer (9d1d4bc)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:'<script>\\n(function () {\\n  // --- KONFIG ---\\n  const DOMAINS = { pl: \"https://allintraders.com\", en: \"https://allintraders.ai\" };\\n\\n  // Mapa wyjątk\\xf3w PL→EN (bez końcowego slash)\\n  const MAP_PL_EN = {\\n    \"/kontakt\": \"/contact\",\\n    \"/o-nas\": \"/about-us\",\\n    \"/zapisz-sie\": \"/sign-up\",\\n    \"/rozmowa\": \"/conversation\",\\n    \"/konsultacja\": \"/consultation\",\\n    \"/zacznij\": \"/begin\",\\n    \"/dziekuje-pt\": \"/thank-you-pt\",\\n    \"/dziekuje-pt-ai\": \"/thank-you-pt-ai\",\\n    \"/polityka-plik\\xf3w-cookies\": \"/cookie-policy\",\\n    \"/polityka-prywatności\": \"/privacy-policy\",\\n    \"/regulamin-serwisu\": \"/terms-of-service\",\\n    \"/regulamin-produkt\\xf3w\": \"/product-regulations\",\\n    \"/informacja-o-przetwarzaniu-danych-osobowych\": \"/information-on-the-processing-of-personal-data\",\\n    \"/allincamp2025/regulamin-allin-camp-2025\": \"/allincamp2025/rules-and-regulations-allin-camp-2025\",\\n    \"/allincamp2025/regulamin-allin-camp-ppv\": \"/allincamp2025/rules-and-regulations-allin-camp-ppv\"\\n  };\\n  const MAP_EN_PL = {};\\n  Object.entries(MAP_PL_EN).forEach(([pl, en]) => { MAP_EN_PL[en] = pl; });\\n\\n  // --- NARZĘDZIA ---\\n  const norm = (p) => {\\n    if (!p) return \"/\";\\n    try { p = decodeURIComponent(p); } catch(e) {}\\n    p = p.replace(/\\\\/+$/,\"\");\\n    return p === \"\" ? \"/\" : p;\\n  };\\n  const enc = (p) => encodeURI(p || \"/\");\\n  const curLang = () => location.hostname.endsWith(\"allintraders.ai\") ? \"en\" : \"pl\";\\n\\n  function mapPathFor(targetLang) {\\n    const src = norm(location.pathname);\\n    return enc(targetLang === \"en\" ? (MAP_PL_EN[src] || src) : (MAP_EN_PL[src] || src));\\n  }\\n\\n  function buildUrl(targetLang) {\\n    return DOMAINS[targetLang] + mapPathFor(targetLang) + (location.search || \"\") + (location.hash || \"\");\\n  }\\n\\n  // Rozpoznaj, czy klik dotyczy EN/PL: po tekście lub po href domeny\\n  function detectTargetLangFromElement(el) {\\n    // 1) Jeśli to <a> i ma href z domeną – użyj domeny\\n    const a = el.closest && el.closest(\\'a[href]\\');\\n    if (a) {\\n      const href = a.getAttribute(\\'href\\') || \"\";\\n      if (href.includes(\"allintraders.ai\")) return \"en\";\\n      if (href.includes(\"allintraders.com\")) return \"pl\";\\n    }\\n    // 2) Fallback po tekście widocznym\\n    const txt = (el.innerText || el.textContent || \"\").trim().toUpperCase();\\n    if (txt === \"EN\") return \"en\";\\n    if (txt === \"PL\") return \"pl\";\\n    // 3) Jeśli przycisk zawiera w środku tekst EN/PL\\n    if (a) {\\n      const atxt = (a.innerText || a.textContent || \"\").trim().toUpperCase();\\n      if (atxt === \"EN\") return \"en\";\\n      if (atxt === \"PL\") return \"pl\";\\n    }\\n    return null;\\n  }\\n\\n  function handleClick(e) {\\n    const target = e.target;\\n    if (!target) return;\\n\\n    const lang = detectTargetLangFromElement(target);\\n    if (!lang) return; // nie dotyczy switchera\\n\\n    // Mamy cel – przejmujemy nawigację:\\n    e.preventDefault();\\n    e.stopPropagation();\\n    const url = buildUrl(lang);\\n    window.location.href = url;\\n  }\\n\\n  // Start\\n  document.addEventListener(\"DOMContentLoaded\", () => {\\n    // Delegacja kliknięć na całym body (działa dla przycisk\\xf3w, link\\xf3w, ikon, itp.)\\n    document.body.addEventListener(\"click\", handleClick, true);\\n\\n    // Dodatkowo podmień href-y (ładnie wygląda w status barze)\\n    const applyHref = () => {\\n      const opp = curLang() === \"pl\" ? \"en\" : \"pl\";\\n      const targetUrl = buildUrl(opp);\\n      const selector = curLang() === \"pl\"\\n        ? \\'a[href*=\"allintraders.ai\"], a:has(> *:not(a):contains(\"EN\"))\\'\\n        : \\'a[href*=\"allintraders.com\"], a:has(> *:not(a):contains(\"PL\"))\\';\\n      // Prosty wyb\\xf3r po domenie (pseudo :has nie jest wszędzie – więc najważniejsze są href-y)\\n      document.querySelectorAll(\\'a[href*=\"allintraders.ai\"], a[href*=\"allintraders.com\"]\\').forEach(a => {\\n        a.setAttribute(\\'href\\', targetUrl);\\n      });\\n    };\\n\\n    applyHref();\\n\\n    // Framer SPA: obserwuj zmiany i aktualizuj\\n    const mo = new MutationObserver(() => applyHref());\\n    mo.observe(document.body, { childList: true, subtree: true });\\n\\n    window.addEventListener(\"popstate\", applyHref);\\n    // awaryjnie kilka razy po starcie (hydracja)\\n    let n=0, i=setInterval(()=>{ applyHref(); if(++n>6) clearInterval(i); }, 500);\\n  });\\n})();\\n</script>\\n<!-- Plugin: c0fb0c --> \\n        <script type=\"text/javascript\">\\n        (function() {\\n          let s = document.createElement(\\'script\\');\\n          s.type = \\'text/javascript\\';\\n          s.async = true;\\n          s.src = \"https://forms.bestfreecdn.com/storage/js/forms-4817.js?v=1757580769421\";\\n          if (document.body) {\\n            document.body.appendChild(s);\\n          } else if (document.head) {\\n            document.head.appendChild(s);\\n          }\\n        })();\\n       </script>\\n<!-- Plugin: eb427g --> <script src=\"https://smartarget.online/loader.js?type=int&amp;u=efbb3c5a473bf36dcb3ffd6629cc9633f5d0cf2b&amp;source=framer_popup_forms\"></script>',customHTMLBodyStart:'<!-- Google Tag Manager (noscript) -->\\n<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-KK9D86MD\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>\\n<!-- End Google Tag Manager (noscript) -->\\n\\n\\n',customHTMLHeadEnd:\"<script id=\\\"Cookiebot\\\" src=\\\"https://consent.cookiebot.com/uc.js\\\" data-cbid=\\\"16002ea3-b336-4470-8da9-24166b3e31d4\\\" data-blockingmode=\\\"auto\\\" type=\\\"text/javascript\\\"></script>\\n\\n<!-- Meta Pixel Code -->\\n<script>\\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', '2977626699107630');\\nfbq('track', 'PageView');\\n</script>\\n<noscript></noscript>\",customHTMLHeadStart:\"<!-- Google tag (gtag.js) -->\\n<script async=\\\"\\\" src=\\\"https://www.googletagmanager.com/gtag/js?id=G-1F90NB9VTD\\\"></script>\\n<script>\\n  window.dataLayer = window.dataLayer || [];\\n  function gtag(){dataLayer.push(arguments);}\\n  gtag('js', new Date());\\n\\n  gtag('config', 'G-1F90NB9VTD');\\n</script>\",description:\"Education, strategies, and tools for traders. Forex, crypto, indices, and more—with a plan, support, and community. Enter the world of ALLinTraders.\",favicon:\"https://framerusercontent.com/assets/78qZFhAc2Geuwn3GNJKpNddIEQ.png\",robots:\"max-image-preview:large\",title:\"ALLinTraders\"};}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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4KAAq2J,oBAAoB;;;;;EAA8P,kBAAkB;;;;;;;;;;;;;;;uBAAssB,oBAAoB;;;;;;;;YAAiT,YAAY,uJAAuJ,QAAQ,sEAAsE,OAAO,0BAA0B,MAAM,eAAe"}