{
  "version": 3,
  "sources": ["/cdn/shop/t/2/assets/custom.js?enable_js_minification=1"],
  "sourcesContent": ["/*\n* Pipeline Theme\n*\n* Use this file to add custom Javascript to Pipeline.  Keeping your custom\n* Javascript in this fill will make it easier to update Pipeline. In order\n* to use this file you will need to open layout/theme.liquid and uncomment\n* the custom.js script import line near the bottom of the file.\n*\n*/\n\n\n(function() {\n\n  // Below are example event listeners.  They listen for theme events that Pipeline\n  // fires in order to make it easier for you to add customizations.\n\n  // Keep your scripts inside this IIFE function call to avoid leaking your\n  // variables into the global scope.\n\n\n  document.addEventListener('theme:variant:change', function(event) {\n    // You might use something like this to write a pre-order feature or a\n    // custom swatch feature.\n    var variant = event.detail.variant;\n    var container = event.target;\n    if (variant) {\n      // console.log('Container \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 \u2193');\n      // console.log(container);\n      // console.log('Variant \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 \u2193');\n      // console.log(variant);\n      // ... update some element on the page\n    }\n  });\n\n\n\n// Custom JS to hide size selector on selecting unstitched\n\n\n\ndocument.addEventListener('theme:variant:change', function(event) {\n    // You might use something like this to write a pre-order feature or a\n    // custom swatch feature.\n    var variant = event.detail.variant;\n    var container = event.target;\n    var sizeselector = document.querySelector('[data-select-label=\"Size\"]');\n\n    // Check of variant title includes a size\n\n    if (variant.title.includes('/ XS') || variant.title.includes('/ S') || variant.title.includes('/ M') || variant.title.includes('/ L') || variant.title.includes('/ XL') || variant.title.includes('XXL')  ) {\n      var size_in_title = true;\n    } else {\n      var size_in_title = false;\n    }\n\n\n    // console.log(\"size_in_title:\", size_in_title)\n    // console.log(\"variant.title:\", variant.title)\n\n    // Hide sizes when selected variant is UNSTITCHED & Unstitched is not a part of Sizes\n    \n    if (variant) {\n      if (variant.title.includes('UNSTITCHED') && size_in_title !== false ) {\n        sizeselector.style.opacity = \"0\";\n        sizeselector.style.height = \"0\";\n        console.log(\"Hiding sizes Selceto\", variant);\n       } else {\n         sizeselector.style.opacity = \"1\";\n         sizeselector.style.height = \"auto\";\n       }   \n\n      // ... update some element on the page\n    }\n  });\n    // document.addEventListener('theme:cart:change', function(event) {\n    //   var cart = event.detail.cart;\n    //   if (cart) {\n    //     console.log('Cart \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 \u2193');\n    //     console.log(cart);\n    //     // ... update an app or a custom shipping caluclator\n    //   }\n    // });\n  // Fired when page loads to update header values\n    // document.addEventListener('theme:cart:init', (e) => {\n    //   console.log('theme:cart:init');\n    //   console.log(e);\n    // });\n\n  // Debounced scroll listeners.  Up and down only fire on direction changes\n  // These events are useful for creating sticky elements and popups.\n    // document.addEventListener('theme:scroll', e => { console.log(e); });\n    // document.addEventListener('theme:scroll:up', e => { console.log(e); });\n    // document.addEventListener('theme:scroll:down', e => { console.log(e); });\n\n  // Debounced resize listener to bundle changes that trigger document reflow\n    // document.addEventListener('theme:resize', e => { console.log(e); });\n\n  // Locks and unlocks page scroll for modals and drawers\n  // These are commented out because firing them will lock the page scroll\n  // the lock event must set `detail` to the modal or drawer body so the \n  // scroll locking code knows what element should maintain scoll. \n  // document.dispatchEvent(new CustomEvent('theme:scroll:lock', {bubbles: true, detail: scrollableInnerElement}));\n  // document.dispatchEvent(new CustomEvent('theme:scroll:unlock', {bubbles: true}));\n\n\n  // ^^ Keep your scripts inside this IIFE function call to avoid leaking your\n  // variables into the global scope.\n})();\n"],
  "mappings": "CAWC,UAAW,CASV,SAAS,iBAAiB,uBAAwB,SAAS,MAAO,CAGhE,IAAI,QAAU,MAAM,OAAO,QACvB,UAAY,MAAM,MAQxB,CAAC,EAQH,SAAS,iBAAiB,uBAAwB,SAAS,MAAO,CAG9D,IAAI,QAAU,MAAM,OAAO,QACvB,UAAY,MAAM,OAClB,aAAe,SAAS,cAAc,4BAA4B,EAItE,GAAI,QAAQ,MAAM,SAAS,MAAM,GAAK,QAAQ,MAAM,SAAS,KAAK,GAAK,QAAQ,MAAM,SAAS,KAAK,GAAK,QAAQ,MAAM,SAAS,KAAK,GAAK,QAAQ,MAAM,SAAS,MAAM,GAAK,QAAQ,MAAM,SAAS,KAAK,EACrM,IAAI,cAAgB,OAEpB,KAAI,cAAgB,GASlB,UACE,QAAQ,MAAM,SAAS,YAAY,GAAK,gBAAkB,IAC5D,aAAa,MAAM,QAAU,IAC7B,aAAa,MAAM,OAAS,IAC5B,QAAQ,IAAI,uBAAwB,OAAO,IAE1C,aAAa,MAAM,QAAU,IAC7B,aAAa,MAAM,OAAS,QAKnC,CAAC,CAkCH,GAAG",
  "names": []
}
