{
  "version": 3,
  "sources": ["/cdn/shop/t/57/assets/spiral-live-recovery-bypass.js?scv=fightedge-live-recovery-20260602c"],
  "sourcesContent": ["(() => {\n  if (window.__spiralLiveRecoveryBypassLoaded) return;\n  window.__spiralLiveRecoveryBypassLoaded = true;\n\n  const path = window.location.pathname.replace(/\\/+$/, \"\") || \"/\";\n  const HOMEPAGE_RECOVERY_SECTION_IDS = [\n    \"spiral-codex-homepage-tiktok-clean-v1\",\n    \"template--24028505079844__spiral_codex_homepage_tiktok_clean_v1_2026_06_13T17_37_36_840Z\",\n    \"spiral_codex_homepage_tiktok_clean_v1_2026_06_13T17_37_36_840Z\",\n    \"template--24028505079844__spiral_codex_homepage_tiktok_clean_v1_2026_06_10T22_29_34Z\",\n    \"spiral_codex_homepage_tiktok_clean_v1_2026_06_10T22_29_34Z\",\n    \"template--24028505079844__spiral_codex_homepage_tiktok_clean_v1_2026_06_02T17_43_14Z\",\n    \"spiral_codex_homepage_tiktok_clean_v1_2026_06_02T17_43_14Z\",\n    \"template--24028505079844__spiral_codex_homepage_tiktok_clean_v1_1780417785352\",\n    \"spiral_codex_homepage_tiktok_clean_v1_1780417785352\",\n  ];\n  const HOMEPAGE_RECOVERY_TARGET = \"A Complete Training System for the Next Generation of Fighters.\";\n\n  function injectAboutLogoFix() {\n    if (document.getElementById(\"spiral-live-recovery-about-fix\")) return;\n    const style = document.createElement(\"style\");\n    style.id = \"spiral-live-recovery-about-fix\";\n    style.textContent = `\n      .sc-about-brand img {\n        width: 54px !important;\n        height: 54px !important;\n        max-width: 54px !important;\n        max-height: 54px !important;\n        flex: 0 0 54px !important;\n        object-fit: contain !important;\n        filter: none !important;\n      }\n    `;\n    document.head.appendChild(style);\n  }\n\n  async function fetchSectionHtml(url) {\n    const response = await fetch(url, {\n      credentials: \"same-origin\",\n      cache: \"no-store\",\n      headers: { Accept: \"text/html\" },\n    });\n    if (!response.ok) return \"\";\n    return response.text();\n  }\n\n  function rerunScripts(root) {\n    root.querySelectorAll(\"script\").forEach((oldScript) => {\n      const nextScript = document.createElement(\"script\");\n      for (const attribute of oldScript.attributes) {\n        nextScript.setAttribute(attribute.name, attribute.value);\n      }\n      nextScript.textContent = oldScript.textContent || \"\";\n      oldScript.replaceWith(nextScript);\n    });\n  }\n\n  async function replaceSection(section, url, expectedText) {\n    if (!section) return false;\n    const html = await fetchSectionHtml(url);\n    if (!html || (expectedText && !html.includes(expectedText))) return false;\n    const template = document.createElement(\"template\");\n    template.innerHTML = html.trim();\n    const nextSection = template.content.firstElementChild;\n    if (nextSection && nextSection.matches(\".spiral-codex-homepage-section, .shopify-section\")) {\n      section.replaceWith(nextSection);\n      rerunScripts(nextSection);\n      return true;\n    }\n    section.innerHTML = html;\n    rerunScripts(section);\n    return true;\n  }\n\n  async function repairHomepage() {\n    if (path !== \"/\") return;\n    const section = document.querySelector(\".spiral-codex-homepage-section\");\n    if (!section) return;\n\n    const text = section.textContent || \"\";\n    const html = section.innerHTML || \"\";\n    const needsRepair =\n      !text.includes(HOMEPAGE_RECOVERY_TARGET)\n      || text.includes(\"Spot the real problem before it costs you the round.\")\n      || text.includes(\"Build Your Order\")\n      || text.includes(\"Build your order\")\n      || text.includes(\"From UFC stars to world champions, elite fighters are paying attention to Spiral Combat.\")\n      || html.includes(\"/t/34/assets/spiral-codex-homepage.css\")\n      || html.includes(\"/t/34/assets/spiral-codex-homepage.js\")\n      || html.includes('href=\"#start-here\" data-sticky-checkout')\n      || !text.includes(\"Need a private opponent blueprint for camp?\")\n      || !text.includes(\"About Spiral Combat\");\n\n    if (!needsRepair) return;\n\n    for (const sectionId of HOMEPAGE_RECOVERY_SECTION_IDS) {\n      const replaced = await replaceSection(\n        section,\n        `/?section_id=${encodeURIComponent(sectionId)}`,\n        HOMEPAGE_RECOVERY_TARGET,\n      );\n      if (replaced) return;\n    }\n  }\n\n  async function repairAboutPage() {\n    if (path !== \"/pages/about-spiral-combat\") return;\n    injectAboutLogoFix();\n    const section = document.querySelector('[id^=\"shopify-section-template--\"][id$=\"__main\"]');\n    if (!section) return;\n    await replaceSection(section, `${window.location.pathname}?section_id=spiral-about-page`, \"sc-about-page\");\n    injectAboutLogoFix();\n  }\n\n  async function repairFightEdgePage() {\n    if (path !== \"/pages/fightedge\") return;\n    const section = document.querySelector('[id^=\"shopify-section-template--\"][id$=\"__main\"]');\n    if (!section) return;\n    await replaceSection(\n      section,\n      `${window.location.pathname}?section_id=spiral-fightedge-native-page`,\n      \"data-fightedge-native-root\"\n    );\n  }\n\n  async function run() {\n    await repairHomepage();\n    await repairAboutPage();\n    await repairFightEdgePage();\n  }\n\n  if (document.readyState === \"loading\") {\n    document.addEventListener(\"DOMContentLoaded\", run, { once: true });\n  } else {\n    void run();\n  }\n})();\n"],
  "mappings": "CAAC,IAAM,CACL,GAAI,OAAO,iCAAkC,OAC7C,OAAO,iCAAmC,GAE1C,MAAM,KAAO,OAAO,SAAS,SAAS,QAAQ,OAAQ,EAAE,GAAK,IACvD,8BAAgC,CACpC,wCACA,2FACA,iEACA,uFACA,6DACA,uFACA,6DACA,gFACA,qDACF,EACM,yBAA2B,kEAEjC,SAAS,oBAAqB,CAC5B,GAAI,SAAS,eAAe,gCAAgC,EAAG,OAC/D,MAAM,MAAQ,SAAS,cAAc,OAAO,EAC5C,MAAM,GAAK,iCACX,MAAM,YAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAWpB,SAAS,KAAK,YAAY,KAAK,CACjC,CAEA,eAAe,iBAAiB,IAAK,CACnC,MAAM,SAAW,MAAM,MAAM,IAAK,CAChC,YAAa,cACb,MAAO,WACP,QAAS,CAAE,OAAQ,WAAY,CACjC,CAAC,EACD,OAAK,SAAS,GACP,SAAS,KAAK,EADI,EAE3B,CAEA,SAAS,aAAa,KAAM,CAC1B,KAAK,iBAAiB,QAAQ,EAAE,QAAS,WAAc,CACrD,MAAM,WAAa,SAAS,cAAc,QAAQ,EAClD,UAAW,aAAa,UAAU,WAChC,WAAW,aAAa,U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