{"version":3,"file":"shared-lib.yaaRA-_c.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vsFS0bgoWaFVopq2fhO1/f9Dfe06YLkVumKdHB9fg/siteMetadata.js"],"sourcesContent":["// Generated by Framer (569b461)\nexport default function metadata(params,activeLocale){return{customHTMLHeadStart:'<script>\\n(function () {\\n  if (typeof window === \"undefined\") return;\\n\\n  // EVITA FLICKER — esconde o HTML at\\xe9 decidir a variante\\n  document.documentElement.style.opacity = \"0\";\\n\\n  // === PATHS QUE O SCRIPT NUNCA DEVE MEXER ===\\n  const excludedPaths = [\"dani-fernandes\", \"/dani-fernandess\"];\\n\\n  // === CONFIG DOS EXPERIMENTOS GERENCIADOS PELO SCRIPT ===\\n  const experiments = [\\n    {\\n      // Teste entre duas URLs internas\\n      id: \"bpc-experiment\",\\n      variants: [\"/bpc\", \"/bpc-2\"],\\n      weights: [0.5, 0.5],\\n    },\\n    {\\n      // 50% fica na /finanzero, 50% vai para URL externa\\n      id: \"finanzero-experiment\",\\n      variants: [\\n        \"/finanzero\",\\n        \"https://aplicativo.koin.com.br/TNiu/su0elbaz\",\\n      ],\\n      weights: [0.5, 0.5],\\n    },\\n    {\\n      // 50% fica na /easycredito, 50% vai para URL externa\\n      id: \"easycredito-experiment\",\\n      variants: [\\n        \"/easycredito\",\\n        \"https://aplicativo.koin.com.br/TNiu/k3f9lag7\",\\n      ],\\n      weights: [0.5, 0.5],\\n    },\\n    {\\n      // 50% fica na /consumidor-positivo, 50% vai para URL externa\\n      id: \"consumidor-experiment\",\\n      variants: [\\n        \"/consumidor-positivo\",\\n        \"https://aplicativo.koin.com.br/TNiu/00024\",\\n      ],\\n      weights: [0.5, 0.5],\\n    },    \\n  ];\\n\\n  function normalizePath(path) {\\n    if (!path) return \"/\";\\n    if (path.length > 1 && path.endsWith(\"/\")) {\\n      return path.slice(0, -1);\\n    }\\n    return path;\\n  }\\n\\n  // Para checar se a URL atual participa de um experimento:\\n  // - se a variante for um path interno → usamos o pr\\xf3prio path\\n  // - se for uma URL externa → usamos apenas o pathname dela\\n  function getMatchPath(variant) {\\n    if (typeof variant !== \"string\") return null;\\n    if (variant.startsWith(\"http://\") || variant.startsWith(\"https://\")) {\\n      try {\\n        const u = new URL(variant);\\n        return normalizePath(u.pathname);\\n      } catch (e) {\\n        return null;\\n      }\\n    }\\n    return normalizePath(variant);\\n  }\\n\\n  function pickVariant(numVariants, weights) {\\n    if (!Array.isArray(weights) || weights.length !== numVariants) {\\n      return Math.floor(Math.random() * numVariants);\\n    }\\n\\n    const rnd = Math.random();\\n    let acc = 0;\\n\\n    for (let i = 0; i < numVariants; i++) {\\n      acc += weights[i];\\n      if (rnd < acc) return i;\\n    }\\n    return numVariants - 1;\\n  }\\n\\n  function safeGetItem(key) {\\n    try {\\n      return window.localStorage.getItem(key);\\n    } catch (e) {\\n      return null;\\n    }\\n  }\\n\\n  function safeSetItem(key, value) {\\n    try {\\n      window.localStorage.setItem(key, value);\\n    } catch (e) {}\\n  }\\n\\n  var currentPath = normalizePath(window.location.pathname);\\n\\n  // Se a URL atual \\xe9 controlada pelo plugin, o script sai fora\\n  if (excludedPaths.includes(currentPath)) {\\n    document.documentElement.style.opacity = \"1\";\\n    return;\\n  }\\n\\n  let participated = false;\\n\\n  experiments.forEach(function (exp) {\\n    const matchPaths = exp.variants\\n      .map(getMatchPath)\\n      .filter(Boolean); // remove nulos\\n\\n    if (!matchPaths.includes(currentPath)) return;\\n\\n    participated = true;\\n\\n    const storageKey = \"ab:\" + exp.id;\\n    let chosenVariant = safeGetItem(storageKey);\\n\\n    if (!chosenVariant) {\\n      const index = pickVariant(exp.variants.length, exp.weights);\\n      chosenVariant = exp.variants[index];\\n      safeSetItem(storageKey, chosenVariant);\\n      // Aqui daria pra disparar um evento pro GA/Tag Manager se quiser\\n    }\\n\\n    // Se a variante escolhida for URL externa:\\n    if (\\n      typeof chosenVariant === \"string\" &&\\n      (chosenVariant.startsWith(\"http://\") ||\\n        chosenVariant.startsWith(\"https://\"))\\n    ) {\\n      if (window.location.href !== chosenVariant) {\\n        window.location.replace(chosenVariant);\\n      } else {\\n        // j\\xe1 est\\xe1 na URL externa correta\\n        document.documentElement.style.opacity = \"1\";\\n      }\\n      return;\\n    }\\n\\n    // Caso contr\\xe1rio, \\xe9 um path interno\\n    const targetPath = normalizePath(chosenVariant);\\n    if (currentPath !== targetPath) {\\n      const url = new URL(window.location.href);\\n      url.pathname = targetPath;\\n      window.location.replace(url.toString());\\n    } else {\\n      // j\\xe1 est\\xe1 na variante interna correta\\n      document.documentElement.style.opacity = \"1\";\\n    }\\n  });\\n\\n  // Se a p\\xe1gina n\\xe3o participa de nenhum experimento, mostra o conte\\xfado\\n  if (!participated) {\\n    document.documentElement.style.opacity = \"1\";\\n  }\\n})();\\n</script>\\n\\n<!-- Plugin: 2433c2 --> \\n<script>\\n  // var scriptParams = {param1: \\'value1\\', param2: \\'value2\\'};\\n  var user_settings = {\\n  variantAUrl: \"https://credito.koin.com.br/consumidor-positivo\",\\n  variantBUrl: \"https://credito.koin.com.br/consumidor-positivo-2\",\\n  variantCUrl: \"https://credito.koin.com.br\",\\n  variantAPercentage: 50,\\n  variantBPercentage: 50,\\n  variantCPercentage: 0,\\n  sessionPersistence: false,\\n  seoProtection: false,\\n};\\n\\n</script>\\n\\n<script src=\"https://benjaminb212.github.io/ab-testing-script/script.min.js\"></script>\\n',description:\"Koin \\xe9 uma institui\\xe7\\xe3o de pagamento que desenvolve solu\\xe7\\xf5es para melhorar a vida das pessoas, democratizando o acesso a bens e servi\\xe7os.\",favicon:\"https://framerusercontent.com/assets/GI4DT2bHutOSlcfyZO9Fa5MYz6Y.svg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/Q8VHIoT5jg55uy8ek7x0kP1Z4Rc.jpg\",title:\"Koin | Boleto Parcelado, Pix Parcelado, Antifraude, Pix\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oDACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+iK,YAAY,2IAA6J,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,uEAAuE,MAAM,0DAA0D"}