{
  "version": 3,
  "sources": ["/cdn/shop/t/311/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  // 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\n\n  /**\n   * MiradeWeb Gender Switch\n   */\n\n  let miradeWebGenderSwitch = document.querySelector('.miradeweb-gender-switch');\n\n  if (miradeWebGenderSwitch) {\n    const miradeWebGenderSwitchIconInit = () => {\n      // Update switch button based on the featured gender\n      const featuredGender = document.querySelector('.product__gallery_desktop .product__media').getAttribute('data-media-gender');\n\n      if (featuredGender == 'woman') {\n        miradeWebGenderSwitch.dataset.gender = 'man';\n      } else {\n        miradeWebGenderSwitch.dataset.gender = 'woman';\n      }\n    };\n\n    const miradeWebGenderSwitchInit = () => {\n      let productGalleryMobileMan = document.querySelector('.product__gallery_mobile_man');\n      let productGalleryMobileWoman = document.querySelector('.product__gallery_mobile_woman');\n      \n      // MiradeWeb Gender Switch Click Event Handler\n      miradeWebGenderSwitch.addEventListener('click', function() {\n        let gender = this.dataset.gender;\n    \n        if (gender == 'woman') {\n          this.dataset.gender = 'man';\n    \n          document.querySelectorAll('.product__gallery_desktop .product__media[data-media-gender=\"man\"]').forEach(item => {\n            item.style.display = 'block';\n          });\n    \n          // productGalleryMobileMan.style.display = 'block';\n          productGalleryMobileMan.classList.remove('hide-carousel');\n    \n          document.querySelectorAll('.product__gallery_desktop .product__media[data-media-gender=\"woman\"]').forEach(item => {\n            item.style.display = 'none';\n          });\n    \n          // productGalleryMobileWoman.style.display = 'none';\n          productGalleryMobileWoman.classList.add('hide-carousel');\n        } else if (gender == 'man') {\n          this.dataset.gender = 'woman';\n  \n          document.querySelectorAll('.product__gallery_desktop .product__media[data-media-gender=\"woman\"]').forEach(item => {\n            item.style.display = 'block';\n          });\n    \n          // productGalleryMobileWoman.style.display = 'block';\n          productGalleryMobileWoman.classList.remove('hide-carousel');\n    \n          document.querySelectorAll('.product__gallery_desktop .product__media[data-media-gender=\"man\"]').forEach(item => {\n            item.style.display = 'none';\n          });\n    \n          // productGalleryMobileMan.style.display = 'none';\n          productGalleryMobileMan.classList.add('hide-carousel');\n        }\n      });\n  \n      // Trigger switch button on page load\n      miradeWebGenderSwitch.click();\n    }\n  \n    // Init MiradeWeb Gender Switch Icon\n    miradeWebGenderSwitchIconInit();\n\n    // Init MiradeWeb Gender Switch\n    setTimeout(function() {\n      miradeWebGenderSwitchInit();\n    }, 400);\n  }\n\n})();\n"],
  "mappings": "CAWC,UAAW,CA+DV,IAAI,sBAAwB,SAAS,cAAc,0BAA0B,EAE7E,GAAI,sBAAuB,CACzB,MAAM,8BAAgC,IAAM,CAEnB,SAAS,cAAc,2CAA2C,EAAE,aAAa,mBAAmB,GAErG,QACpB,sBAAsB,QAAQ,OAAS,MAEvC,sBAAsB,QAAQ,OAAS,OAE3C,EAEM,0BAA4B,IAAM,CACtC,IAAI,wBAA0B,SAAS,cAAc,8BAA8B,EAC/E,0BAA4B,SAAS,cAAc,gCAAgC,EAGvF,sBAAsB,iBAAiB,QAAS,UAAW,CACzD,IAAI,OAAS,KAAK,QAAQ,OAEtB,QAAU,SACZ,KAAK,QAAQ,OAAS,MAEtB,SAAS,iBAAiB,oEAAoE,EAAE,QAAQ,MAAQ,CAC9G,KAAK,MAAM,QAAU,OACvB,CAAC,EAGD,wBAAwB,UAAU,OAAO,eAAe,EAExD,SAAS,iBAAiB,sEAAsE,EAAE,QAAQ,MAAQ,CAChH,KAAK,MAAM,QAAU,MACvB,CAAC,EAGD,0BAA0B,UAAU,IAAI,eAAe,GAC9C,QAAU,QACnB,KAAK,QAAQ,OAAS,QAEtB,SAAS,iBAAiB,sEAAsE,EAAE,QAAQ,MAAQ,CAChH,KAAK,MAAM,QAAU,OACvB,CAAC,EAGD,0BAA0B,UAAU,OAAO,eAAe,EAE1D,SAAS,iBAAiB,oEAAoE,EAAE,QAAQ,MAAQ,CAC9G,KAAK,MAAM,QAAU,MACvB,CAAC,EAGD,wBAAwB,UAAU,IAAI,eAAe,EAEzD,CAAC,EAGD,sBAAsB,MAAM,CAC9B,EAGA,8BAA8B,EAG9B,WAAW,UAAW,CACpB,0BAA0B,CAC5B,EAAG,GAAG,CACR,CAEF,GAAG",
  "names": []
}
