{
  "version": 3,
  "sources": ["/cdn/shop/t/11/assets/custom.js?nocache=1792993284419"],
  "sourcesContent": ["/**\n * Include your custom JavaScript here.\n *\n * We also offer some hooks so you can plug your own logic. For instance, if you want to be notified when the variant\n * changes on product page, you can attach a listener to the document:\n *\n * document.addEventListener('variant:changed', function(event) {\n *   var variant = event.detail.variant; // Gives you access to the whole variant details\n * });\n *\n * You can also add a listener whenever a product is added to the cart:\n *\n * document.addEventListener('product:added', function(event) {\n *   var variant = event.detail.variant; // Get the variant that was added\n *   var quantity = event.detail.quantity; // Get the quantity that was added\n * });\n *\n * If you are an app developer and requires the theme to re-render the mini-cart, you can trigger your own event. If\n * you are adding a product, you need to trigger the \"product:added\" event, and make sure that you pass the quantity\n * that was added so the theme can properly update the quantity:\n *\n * document.documentElement.dispatchEvent(new CustomEvent('product:added', {\n *   bubbles: true,\n *   detail: {\n *     quantity: 1\n *   }\n * }));\n *\n * If you just want to force refresh the mini-cart without adding a specific product, you can trigger the event\n * \"cart:refresh\" in a similar way (in that case, passing the quantity is not necessary):\n *\n * document.documentElement.dispatchEvent(new CustomEvent('cart:refresh', {\n *   bubbles: true\n * }));\n */\n\n/* FootFeet: on collection pages, move sold-out products to the end of each product grid (Oct 2026) */\n(function () {\n  if (!window.theme || window.theme.pageType !== 'collection') return;\n  var busy = false;\n  function isSoldOut(item) { return !!item.querySelector('.product-item__action-button.button--disabled[disabled]'); }\n  function reorder() {\n    if (busy) return;\n    busy = true;\n    var parents = [];\n    document.querySelectorAll('#main .product-item').forEach(function (item) {\n      if (parents.indexOf(item.parentElement) === -1) parents.push(item.parentElement);\n    });\n    parents.forEach(function (parent) {\n      var items = Array.prototype.filter.call(parent.children, function (el) { return el.classList.contains('product-item'); });\n      var seenSoldOut = false, needed = false;\n      items.forEach(function (el) { if (isSoldOut(el)) { seenSoldOut = true; } else if (seenSoldOut) { needed = true; } });\n      if (!needed) return;\n      items.filter(isSoldOut).forEach(function (el) { parent.appendChild(el); });\n    });\n    busy = false;\n  }\n  document.addEventListener('DOMContentLoaded', reorder);\n  if (document.readyState !== 'loading') reorder();\n  var timer;\n  new MutationObserver(function () { clearTimeout(timer); timer = setTimeout(reorder, 50); })\n    .observe(document.getElementById('main') || document.body, { childList: true, subtree: true });\n})();\n"],
  "mappings": "CAqCC,UAAY,CACX,GAAI,CAAC,OAAO,OAAS,OAAO,MAAM,WAAa,aAAc,OAC7D,IAAI,KAAO,GACX,SAAS,UAAU,KAAM,CAAE,MAAO,CAAC,CAAC,KAAK,cAAc,yDAAyD,CAAG,CACnH,SAAS,SAAU,CACjB,GAAI,MACJ,MAAO,GACP,IAAI,QAAU,CAAC,EACf,SAAS,iBAAiB,qBAAqB,EAAE,QAAQ,SAAU,KAAM,CACnE,QAAQ,QAAQ,KAAK,aAAa,IAAM,IAAI,QAAQ,KAAK,KAAK,aAAa,CACjF,CAAC,EACD,QAAQ,QAAQ,SAAU,OAAQ,CAChC,IAAI,MAAQ,MAAM,UAAU,OAAO,KAAK,OAAO,SAAU,SAAU,GAAI,CAAE,OAAO,GAAG,UAAU,SAAS,cAAc,CAAG,CAAC,EACpH,YAAc,GAAO,OAAS,GAClC,MAAM,QAAQ,SAAU,GAAI,CAAM,UAAU,EAAE,EAAK,YAAc,GAAiB,cAAe,OAAS,GAAQ,CAAC,EAC9G,QACL,MAAM,OAAO,SAAS,EAAE,QAAQ,SAAU,GAAI,CAAE,OAAO,YAAY,EAAE,CAAG,CAAC,CAC3E,CAAC,EACD,KAAO,GACT,CACA,SAAS,iBAAiB,mBAAoB,OAAO,EACjD,SAAS,aAAe,WAAW,QAAQ,EAC/C,IAAI,MACJ,IAAI,iBAAiB,UAAY,CAAE,aAAa,KAAK,EAAG,MAAQ,WAAW,QAAS,EAAE,CAAG,CAAC,EACvF,QAAQ,SAAS,eAAe,MAAM,GAAK,SAAS,KAAM,CAAE,UAAW,GAAM,QAAS,EAAK,CAAC,CACjG,GAAG",
  "names": []
}
