{
  "version": 3,
  "sources": ["/cdn/shop/t/24/assets/swym-login-customizer.js?cv=20260824a"],
  "sourcesContent": ["// Swym Login Component Customizer\n// This script customizes the Swym login heading text globally\n\n(function () {\n  \"use strict\";\n\n  // Function to change the login heading text without visible transition\n  function changeLoginHeading() {\n    const loginHeadings = document.querySelectorAll(\n      \".swym-storefront-layout-login-heading\"\n    );\n    let changed = false;\n\n    loginHeadings.forEach(function (heading) {\n      if (heading.textContent !== \"Don't Lose Your Wishlist!\") {\n        // Hide the element completely to prevent visible transition\n        const originalDisplay = heading.style.display;\n        const originalVisibility = heading.style.visibility;\n        const originalOpacity = heading.style.opacity;\n\n        // Make it completely invisible\n        heading.style.display = \"none\";\n        heading.style.visibility = \"hidden\";\n        heading.style.opacity = \"0\";\n\n        // Change the text\n        heading.textContent = \"Don't Lose Your Wishlist!\";\n\n        // Show it again after a longer delay to ensure text change is complete\n        setTimeout(function () {\n          heading.style.display = originalDisplay || \"block\";\n          heading.style.visibility = originalVisibility || \"visible\";\n          heading.style.opacity = originalOpacity || \"1\";\n        }, 200);\n\n        changed = true;\n      }\n    });\n\n    return changed;\n  }\n\n  // Function to observe for Swym login components and change the heading\n  function observeSwymLoginComponents() {\n    const observer = new MutationObserver(function (mutations) {\n      let shouldCheck = false;\n\n      mutations.forEach(function (mutation) {\n        if (mutation.type === \"childList\") {\n          mutation.addedNodes.forEach(function (node) {\n            if (node.nodeType === 1) {\n              // Element node\n              // Check if the node itself is a login heading\n              if (\n                node.classList &&\n                node.classList.contains(\"swym-storefront-layout-login-heading\")\n              ) {\n                shouldCheck = true;\n              }\n              // Check if the node contains login headings\n              if (\n                node.querySelector &&\n                node.querySelector(\".swym-storefront-layout-login-heading\")\n              ) {\n                shouldCheck = true;\n              }\n            }\n          });\n        }\n      });\n\n      if (shouldCheck) {\n        changeLoginHeading();\n      }\n    });\n\n    // Start observing the document body for changes\n    observer.observe(document.body, {\n      childList: true,\n      subtree: true,\n    });\n\n    return observer;\n  }\n\n  // Initialize when DOM is ready\n  function init() {\n    // Start observing for Swym login components\n    observeSwymLoginComponents();\n\n    // Try to change existing elements immediately\n    changeLoginHeading();\n  }\n\n  // Run initialization\n  if (document.readyState === \"loading\") {\n    document.addEventListener(\"DOMContentLoaded\", init);\n  } else {\n    init();\n  }\n\n  // Listen for Swym events\n  document.addEventListener(\"swym:collections-loaded\", changeLoginHeading);\n\n  // Make function globally available for manual calls\n  window.changeSwymLoginHeading = changeLoginHeading;\n})();\n"],
  "mappings": "CAGC,UAAY,CACX,aAGA,SAAS,oBAAqB,CAC5B,MAAM,cAAgB,SAAS,iBAC7B,uCACF,EACA,IAAI,QAAU,GAEd,qBAAc,QAAQ,SAAU,QAAS,CACvC,GAAI,QAAQ,cAAgB,4BAA6B,CAEvD,MAAM,gBAAkB,QAAQ,MAAM,QAChC,mBAAqB,QAAQ,MAAM,WACnC,gBAAkB,QAAQ,MAAM,QAGtC,QAAQ,MAAM,QAAU,OACxB,QAAQ,MAAM,WAAa,SAC3B,QAAQ,MAAM,QAAU,IAGxB,QAAQ,YAAc,4BAGtB,WAAW,UAAY,CACrB,QAAQ,MAAM,QAAU,iBAAmB,QAC3C,QAAQ,MAAM,WAAa,oBAAsB,UACjD,QAAQ,MAAM,QAAU,iBAAmB,GAC7C,EAAG,GAAG,EAEN,QAAU,EACZ,CACF,CAAC,EAEM,OACT,CAGA,SAAS,4BAA6B,CACpC,MAAM,SAAW,IAAI,iBAAiB,SAAU,UAAW,CACzD,IAAI,YAAc,GAElB,UAAU,QAAQ,SAAU,SAAU,CAChC,SAAS,OAAS,aACpB,SAAS,WAAW,QAAQ,SAAU,KAAM,CACtC,KAAK,WAAa,IAIlB,KAAK,WACL,KAAK,UAAU,SAAS,sCAAsC,IAE9D,YAAc,IAId,KAAK,eACL,KAAK,cAAc,uCAAuC,IAE1D,YAAc,IAGpB,CAAC,CAEL,CAAC,EAEG,aACF,mBAAmB,CAEvB,CAAC,EAGD,gBAAS,QAAQ,SAAS,KAAM,CAC9B,UAAW,GACX,QAAS,EACX,CAAC,EAEM,QACT,CAGA,SAAS,MAAO,CAEd,2BAA2B,EAG3B,mBAAmB,CACrB,CAGI,SAAS,aAAe,UAC1B,SAAS,iBAAiB,mBAAoB,IAAI,EAElD,KAAK,EAIP,SAAS,iBAAiB,0BAA2B,kBAAkB,EAGvE,OAAO,uBAAyB,kBAClC,GAAG",
  "names": []
}
