{"version":3,"sources":["webpack:///./assets/javascripts/modules/components/GiftcardFormComponent.js","webpack:///./assets/javascripts/modules/components/NotifyMeComponent.js","webpack:///./assets/javascripts/modules/businessLogic/NotifyMeLogic.js"],"names":["GiftcardFormComponent","_classCallCheck","this","_possibleConstructorReturn","__proto__","Object","getPrototypeOf","call","Component","main","radioValuesRow","numberValueInput","giftcard","inputs","_iteratorNormalCompletion","_didIteratorError","_iteratorError","undefined","_step","_iterator","Symbol","iterator","next","done","input","value","checked","required","console","log","err","return","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_step2","_iterator2","_iteratorNormalCompletion3","_didIteratorError3","_iteratorError3","_step3","_iterator3","_this3","checkedRadioInputs","document","querySelector","SELECTORS","querySelectorAll","addEventListener","uncheckInputs","_iteratorNormalCompletion4","_didIteratorError4","_iteratorError4","_step4","_iterator4","handleGiftcardValue","bindCustomEvents","initFormHandler","checkGcTerms","_this","$","on","is","attr","removeClass","addClass","preventScrollEventOnFreeAmountInput","e","preventDefault","NotifyMeComponent","selecetedSizeClass","showFormClass","fixedBarNotifyClass","toBagBtn","notifyMeBtn","btnSize","sizesIntoSticky","unavailable","blockNotifyMe","selectedBtnSize","sizeLabel","hiddenInput","fixedBar","closeNotify","bool","formBlock","showClass","classList","add","remove","label","btnSizes","btn","dataset","size","selectedBtns","sizeLabels","dataLabel","notifyMeClass","_this2","sizeBtns","selectedClass","_loop","unselectAllSizes","changeSizeLabel","selectAllSizes","fixedBarNotifyMe","showForm","$emit","$customEvents","PRODUCT_EVENTS","sizechanged","button","notifyme","uniqueSize","trigger","length","ctaNotifyMe","errMess","errorMessage","isMobile","sizeNotSelected","setSizeErrorMessage","_this4","btns","_loop2","ctaToBag","_iteratorNormalCompletion5","_didIteratorError5","_iteratorError5","_step5","_iterator5","message","setAttribute","window","matchMedia","matches","_this5","closeBtn","NotifyMeLogic","render","ctaToBagHandler","mobileLayerHandler","sizeBarHandler","ctaNotifyMeHandler","mainTarget","error","container","form","submitNotifyBtn","TrackingComponent","addtowish","layerVisible","baseCode","data","addtocart","msg","find","text","$elem","variantCode","code","val","CLASSES","show","$matchMedia","BACKDROP_EVENTS","classes","inModal","inQuickBuy","ctx","$this","elemData","enabled","sizerequired","closest","serialize","prop","LOADER_EVENTS","showLocal","ajax","type","url","contentType","success","responseData","textStatus","jqXHR","html","indexOf","scroll","top","left","behavior","actions","addCartGiftCard","PAGE_LAYOUT_EVENTS","changed","hideLocal","addedtocart","errorThrown","$on","_ref","event","payload","updateProductCode","hideUnavailableForm","enableBtn","_ref2","dataType","remoteHref","isNaN","MODAL_EVENTS","unsafeContent","modalClass","info","xhr","arguments","inWishlistLayer","SIZES_EVENTS","sizesclose","layer","MENU_EVENTS","hideMenu","time","status","_ref3","showUnavailableForm","$form","$submitNotifyBtn","setTimeout","_ref4","enableForm","bindEvents"],"mappings":"oXAEqBA,cAWnB,SAAAA,IAAc,mGAAAC,CAAAC,KAAAF,oKAAAG,CAAAD,MAAAF,EAAAI,WAAAC,OAAAC,eAAAN,IAAAO,KAAAL,0UAXmCM,6CAG/C,OACIC,KAAM,iBACNC,eAAgB,iBAChBC,iBAAkB,iBAClBC,SAAU,uEAOFC,GAAO,IAAAC,GAAA,EAAAC,GAAA,EAAAC,OAAAC,EAAA,IACnB,QAAAC,EAAAC,EAAkBN,EAAlBO,OAAAC,cAAAP,GAAAI,EAAAC,EAAAG,QAAAC,MAAAT,GAAA,EAAyB,KAAhBU,EAAgBN,EAAAO,MACvBD,EAAME,SAAS,EACfF,EAAMG,UAAS,EACfC,QAAQC,IAAIL,EAAME,UAJD,MAAAI,GAAAf,GAAA,EAAAC,EAAAc,EAAA,aAAAhB,GAAAK,EAAAY,QAAAZ,EAAAY,SAAA,WAAAhB,EAAA,MAAAC,8CAOHH,GAAO,IAAAmB,GAAA,EAAAC,GAAA,EAAAC,OAAAjB,EAAA,IACvB,QAAAkB,EAAAC,EAAiBvB,EAAjBO,OAAAC,cAAAW,GAAAG,EAAAC,EAAAd,QAAAC,MAA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AAK,sBACfhK,QAAQsH,MAAM,cAAesE,EAAKC,gBAO1CvN,KAAKuM,IAAIvM,KAAK2G,cAAcC,eAAeG,SAAU,SAAAiH,GAAsBA,EAApBvB,MAAoB,IAAbC,EAAasB,EAAbtB,QAC7DlC,EAAIyD,oBAAoBvB,KAGzBhJ,EAAE,QAAQC,GAAG,SAAU6G,EAAI5H,UAAUsG,KAAM,SAASjF,GAEhDA,EAAEC,iBACF,IAAIgK,EAAQxK,EAAE1D,MACVoL,EAAM8C,EAAMrK,KAAK,UACjBsK,EAAmBD,EAAMvE,KAAKa,EAAI5H,UAAUuG,iBAE5C+E,EAAMvE,KAAK,UAAUK,OACvBQ,EAAI9D,MAAM8D,EAAI7D,cAAcqE,cAAcC,WAAanE,OAAQqH,IAGjEzK,EAAEwH,MACAC,KAAM,OACNC,IAAKA,EACL5B,KAAM0E,EAAMpD,YACZQ,QAAS,SAASpD,GAChBsC,EAAI9D,MAAM8D,EAAI7D,cAAcqE,cAAcoB,WAAatF,OAAQqH,IAE/DA,EAAiBrK,YAAY,SAC7BqK,EAAiBpK,SAAS,QAC1BqK,WAAY,WACXD,EAAiBrK,YAAY,SAC5B,OAEJkF,MAAO,SAASsE,GACd9C,EAAI7I,IAAI,0BACRwM,EAAiBpK,SAAS,cAOlC/D,KAAKuM,IAAIvM,KAAK2G,cAAcC,eAAeG,SAAU,SAAAsH,GAAsBA,EAApB5B,MAAoB,IAAbC,EAAa2B,EAAb3B,QAGxD3C,EAAOrG,EAAEgJ,GAASlD,KAAK,QACvBD,EAAY7F,EAAEgJ,GAASlD,KAAK,YAChCvD,EAAKqI,WAAWvE,EAAMR,sCAOxBvJ,KAAK2B,IAAI,gBACT3B,KAAKuO,sBAtSY9F","file":"components-NotifyMeComponent.chunks.js","sourcesContent":["import Component from '../abstracts/Component';\n\nexport default class GiftcardFormComponent extends Component {\n\n  get SELECTORS() {\n    return {\n        main: '.form-giftcard',\n        radioValuesRow: '.jsRadioValues',\n        numberValueInput: '.jsNumberValue',\n        giftcard: '.js-addtocart-giftcard',\n    };\n  }\n\n  constructor() {\n    super();\n  }\n  uncheckInputs(inputs){\n    for (let input of inputs){\n      input.checked= false;\n      input.required=false;\n      console.log(input.checked);\n    }\n  }\n  setRequiredInputs(inputs){\n    for(let input of inputs){\n      input.required = true;\n    }\n  }\n  isSettedRadioValue(inputs){\n    for(let input of inputs){\n      if(input.checked){\n        return true;\n      }\n    }\n  }\n  handleGiftcardValue() {\n      let valuesRow = document.querySelector(this.SELECTORS.radioValuesRow);\n      let checkedRadioInputs = valuesRow.querySelectorAll('input');\n      let numberValueInput   = document.querySelector(this.SELECTORS.numberValueInput);\n\n\n      numberValueInput.addEventListener('focus', () => {\n          this.uncheckInputs(checkedRadioInputs);\n          numberValueInput.required=true;\n      });\n      for(let input of checkedRadioInputs){\n          input.addEventListener('change',()=>{\n            numberValueInput.required = false;\n            numberValueInput.value = '';\n          });\n      }\n\n  }\n  initFormHandler(){\n    this.handleGiftcardValue();\n    this.bindCustomEvents();\n  }\n  render() {\n    this.log('Rendering...');\n    if(document.querySelector(this.SELECTORS.main)){\n      this.initFormHandler();\n    }\n\n    this.checkGcTerms(this);\n\n    let _this = this;\n    $(\"body\").on(\"change\", \"[name='gcTerms']\", function () {\n      _this.checkGcTerms(_this);\n    });\n  }\n\n  checkGcTerms(_this) {\n    if ($(\"[name='gcTerms']\").is(\":checked\")) {\n      $(_this.SELECTORS.giftcard).attr('disabled', false);\n      $(_this.SELECTORS.giftcard).removeClass(\"disabled\");\n    } else {\n      $(_this.SELECTORS.giftcard).attr('disabled', true);\n      $(_this.SELECTORS.giftcard).addClass(\"disabled\");\n    }\n  }\n\n  bindCustomEvents() {\n    this.preventScrollEventOnFreeAmountInput();\n  }\n\n  preventScrollEventOnFreeAmountInput(){\n    $(this.SELECTORS.numberValueInput).on('mousewheel', function (e) {\n      e.preventDefault();\n    })\n  }\n\n}\n","import Component from '../abstracts/Component';\nimport NotifyMeLogic from '../businessLogic/NotifyMeLogic';\n\nexport default class NotifyMeComponent extends Component {\n    \n    get SELECTORS() {\n        return {\n            main: '.c-sizes-row',\n            toBagBtn: '.jsToBagBtn',\n            notifyMeBtn : '.jsNotifyMeBtn',\n            btnSize: '.c-s-r__size',\n            sizesIntoSticky:'[data-into-sticky=\"true\"]',\n            unavailable: '[data-unavailable=\"true\"]',\n            blockNotifyMe: '.c-pdp-notifyme',\n            selectedBtnSize : '.selected-size',\n            sizeLabel: '.c-s-r__text__size-label',\n            hiddenInput: '#jsSizeSelectedInput',\n            fixedBar: '#jsFixedBar',\n            closeNotify: '.jsCloseNotify'\n        };\n    }\n    \n    constructor() {\n        super();\n        this.selecetedSizeClass = 'selected-size';\n        this.showFormClass = 'show-form';\n        this.fixedBarNotifyClass = 'notify-bar-mode';\n    }\n    showForm(bool){\n        let formBlock = document.querySelector(this.SELECTORS.blockNotifyMe);\n        let showClass = this.showFormClass;\n        if(!bool){\n            formBlock.classList.remove(showClass);\n        }else{\n            formBlock.classList.add(showClass);\n        }\n    }\n    selectAllSizes(label){\n        let btnSizes = document.querySelectorAll(this.SELECTORS.btnSize);\n        for( let btn of btnSizes){\n            if(btn.dataset.size == label)\n                btn.classList.add(this.selecetedSizeClass);\n        }\n    }\n    unselectAllSizes(){\n        let selectedBtns = document.querySelectorAll(this.SELECTORS.selectedBtnSize);\n        for( let btn of selectedBtns){\n            btn.classList.remove(this.selecetedSizeClass);\n        }\n    }\n    changeSizeLabel(label){\n        let sizeLabels= document.querySelectorAll(this.SELECTORS.sizeLabel);\n        for(let dataLabel of sizeLabels) {         \n          $(dataLabel).attr(\"data-size-selected\",label); //non dataLabel.dataset.sizeSelected = label; per IE11\n        }\n    }\n    fixedBarNotifyMe(bool){\n        let fixedBar = document.querySelector(this.SELECTORS.fixedBar);\n        \n        if(fixedBar) {\n          let notifyMeClass = this.fixedBarNotifyClass;\n        \n          if(bool === true){\n            fixedBar.classList.add(notifyMeClass);\n          }else{\n            fixedBar.classList.remove(notifyMeClass)\n          }\n        }\n    }\n    sizeBarHandler(){\n        let sizeBtns = document.querySelectorAll(this.SELECTORS.btnSize);\n        let hiddenInput = document.querySelector(this.SELECTORS.hiddenInput);\n        let selectedClass = this.selecetedSizeClass;\n        for(let size of sizeBtns){\n            let label = '--';\n            size.addEventListener('click',()=>{\n                label = size.dataset.size;\n                this.unselectAllSizes();\n                this.changeSizeLabel(label);\n                this.selectAllSizes(label);\n                hiddenInput.value= size.dataset.size;\n                let unavailable = size.dataset.unavailable == 'true';\n                this.fixedBarNotifyMe(unavailable);\n                this.showForm(unavailable);\n                size.classList.add(selectedClass);\n                this.$emit(this.$customEvents.PRODUCT_EVENTS.sizechanged,  {button: size});\n                this.$emit(this.$customEvents.PRODUCT_EVENTS.notifyme, size)\n            });\n            if(size.dataset.uniqueSize == 'true') $(size).trigger('click');\n        }\n    }\n    // unavailableHandler(){\n    //     let unavailableBtns = document.querySelectorAll(this.SELECTORS.unavailable);\n    //     let hiddenInput = document.querySelector(this.SELECTORS.hiddenInput);\n        \n    //     for(let unavailableBtn of unavailableBtns){\n    //         unavailableBtn.addEventListener('click',()=>{\n    //             hiddenInput.value= unavailableBtn.dataset.size;\n    //             this.fixedBarNotifyMe(true);\n    //             this.showForm(true);\n    //         })\n    //     }\n    // }\n    sizeNotSelected(){\n        let sizes = document.querySelectorAll(this.SELECTORS.selectedBtnSize);\n        if(sizes.length <= 0){\n            return true;\n        }else{\n            return false;\n        }\n    }\n    validateInputHidden(){\n        let hiddenInput = document.querySelector(this.SELECTORS.hiddenInput);\n        if(hiddenInput.value !==\"\"){\n            return true;\n        }\n    }\n    ctaNotifyMeHandler(){\n        let ctaNotifyMe = document.querySelector(this.SELECTORS.notifyMeBtn);\n        \n        if(ctaNotifyMe) {\n          let errMess = ctaNotifyMe.dataset.errorMessage;\n        \n          let handlerDesk = ()=>{\n            if(this.sizeNotSelected()){\n              console.log('no size selected');\n              this.setSizeErrorMessage(errMess);\n            }else{\n              this.setSizeErrorMessage('');\n            }\n          }\n          let handlerMobile = ()=>{\n            this.showForm(true);\n          }\n          if(this.isMobile()){\n            ctaNotifyMe.addEventListener('click',handlerMobile);\n          }else{\n            ctaNotifyMe.addEventListener('click',handlerDesk);\n          }\n        }\n    }\n    ctaToBagHandler(){\n        let btns = document.querySelectorAll(this.SELECTORS.toBagBtn);\n        for(let ctaToBag of btns){\n          let errMess = ctaToBag.dataset.errorMessage;\n          ctaToBag.addEventListener('click',()=>{\n            if(this.sizeNotSelected()){\n                console.log('no size selected');\n                this.setSizeErrorMessage(errMess);\n            }else{\n                this.setSizeErrorMessage('');\n            }\n          });\n        }\n    }\n    setSizeErrorMessage(message){\n        let mainSizeRow = document.querySelector(this.SELECTORS.main);\n        mainSizeRow.setAttribute('data-error-message',message);\n    }\n    isMobile(){\n        let mq = window.matchMedia('(max-width:767px)');\n        let isMobile = mq.matches;\n        return isMobile;\n    }\n    mobileLayerHandler(){\n        const closeBtn = document.querySelector(this.SELECTORS.closeNotify);\n        \n        if(this.isMobile()){\n            closeBtn.addEventListener('click',()=>{\n                this.showForm(false);\n            })\n        }\n    }\n    render() {\n        this.log(\"Rendering...\");\n        this.NotifyMeLogic = new NotifyMeLogic(this);\n        this.NotifyMeLogic.render();\n        if (document.querySelector(this.SELECTORS.main)) {\n\n            this.ctaToBagHandler();\n            this.mobileLayerHandler();\n            //this.unavailableHandler();\n            this.sizeBarHandler();\n            this.ctaNotifyMeHandler();\n        }\n    }\n}\n","import Component from \"../abstracts/Component\";\nimport GiftcardFormComponent from \"../components/GiftcardFormComponent\";\nimport TrackingComponent from '../components/TrackingComponent';\n\nexport default class NotifyMeLogic extends Component {\n\n  get SELECTORS() {\n    return {\n      main: '.js-addtocart',\n      error: '.js-addtocart-notification',\n      container: '.js-form-container',\n      form: '.js-notify-me',\n      giftcard: '.js-addtocart-giftcard',\n      submitNotifyBtn: '.js-submit',\n      addtowish: '.js-addremove-wishlist a'\n    }\n  }\n\n  get CLASSES() {\n    return {\n      layerVisible: 'show'\n    }\n  }\n\n  constructor() {\n    super();\n\n    this.mainTarget = $(this.SELECTORS.main);\n    this.error =  $(this.SELECTORS.error);\n    this.container = $(this.SELECTORS.container);\n    this.form = $(this.SELECTORS.form);\n    this.giftcard = $(this.SELECTORS.giftcard);\n    this.submitNotifyBtn = $(this.SELECTORS.submitNotifyBtn);\n    this.GiftcardFormComponent = new GiftcardFormComponent();\n    this.TrackingComponent = new TrackingComponent();\n  }\n\n  enableBtn(button) {\n    let baseCode = $(button).data('baseCode');\n    let addtocart = $(`${this.SELECTORS.main}[data-code=\"${baseCode}\"]`)\n    let msg = this.mainTarget.data('addtocart-label');\n    addtocart.removeClass('cta-selectsize');\n    addtocart.find('span').text(msg);\n    addtocart.data('enabled', true);\n  }\n\n  updateProductCode(button) {\n    let $elem = $(button);\n    let baseCode = $elem.data('baseCode');\n    let variantCode = $elem.data('code');\n    let addtocart = $(`${this.SELECTORS.main}[data-code=\"${baseCode}\"]`);\n    addtocart.data('code', variantCode );\n    let addtowish = $(`${this.SELECTORS.addtowish}[data-code=\"${baseCode}\"]`);\n    addtowish.data('code', variantCode );\n    this.log(variantCode);\n  }\n\n  // sizeNotification(ev) {\n  //   let $elem = $(ev.payload);\n  //   let msg = $elem.data('notification');\n  //   $elem.addClass('cta-selectsize');\n  //   $elem.find('span').text(msg);\n  // }\n\n  enableForm(code, baseCode) {\n    let form =  $(`${this.SELECTORS.container}[data-code=\"${baseCode}\"]`).find(this.SELECTORS.form);\n    let cta = form.find('.jsSubmitNotify');\n    form.find('#productcode').val(code);\n  }\n\n  showUnavailableForm(button) {\n    let code = $(button).data('baseCode');\n    $(`.notify-form[data-code=\"${code}\"]`).addClass(this.CLASSES.show);\n    if (this.$matchMedia('sm', null)) {\n      this.$emit(this.$customEvents.BACKDROP_EVENTS.show, {classes: 'dark', inModal: inQuickBuy});\n      $(`${this.SELECTORS.main}[data-product-code=\"${code}\"]`).data('enabled', false);\n    }\n  }\n\n  hideUnavailableForm(button) {\n    let code = $(button).data('baseCode');\n    $(`.notify-form[data-code=\"${code}\"]`).removeClass(this.CLASSES.show);\n  }\n\n  bindEvents() {\n    let ctx = this;\n\n    //click on addtocart\n    $('body').on('click.addToCart', ctx.SELECTORS.main, function(e) {\n      e.preventDefault();\n\n      let $this = $(this);\n      let elemData = $this.data();\n      let sendRequest = elemData.enabled || elemData.uniqueSize ;\n\n     if(!sendRequest) {\n       ctx.$emit(ctx.$customEvents.PRODUCT_EVENTS.sizerequired, $this)\n     } else {\n        ctx.$emit(ctx.$customEvents.PRODUCT_EVENTS.addtocart, {button: $this})\n      }\n    });\n\n    //click on addtocart giftcard\n    $('body').on('click.addToCartGiftcard', ctx.SELECTORS.giftcard, function(e) {\n      e.preventDefault();\n\n      let $this = $(this);\n      var form = $this.closest('form');\n      var elemData = form.serialize();\n      var trackData = {'formId': form.prop('id')};\n      ctx.$emit(ctx.$customEvents.LOADER_EVENTS.showLocal, {\n        button: $this,\n      });\n      $this.attr(\"disabled\", true);\n      $.ajax({\n        type : \"post\",\n        url : form.attr('action'),\n        data : elemData,\n        contentType : \"application/x-www-form-urlencoded\",\n        success : function(responseData, textStatus, jqXHR) {\n          form.html(responseData);\n          ctx.GiftcardFormComponent.initFormHandler();\n          if(responseData.indexOf('data-result=\"error\"') > 0) {\n            window.scroll({\n             top: 0,\n             left: 0,\n             behavior: 'smooth'\n            });\n            return;\n          }\n          if ($('#giftcardAddedAmount') != null && $('#giftcardAddedAmount').val() != null ) {\n            ctx.TrackingComponent.actions.addCartGiftCard($('#giftcardAddedAmount').val());\n          }\n          ctx.$emit(ctx.$customEvents.PAGE_LAYOUT_EVENTS.changed);\n          ctx.$emit(ctx.$customEvents.LOADER_EVENTS.hideLocal, { button: $this} )\n          // TODO logiche di animazione di wip da insierire, apertura layer cart e cambio label cta\n          ctx.$emit(ctx.$customEvents.PRODUCT_EVENTS.addedtocart);\n        },\n        error : function(jqXHR, textStatus, errorThrown) {\n          $this.attr(\"disabled\", false);\n          ctx.$emit(ctx.$customEvents.LOADER_EVENTS.hideLocal, { button: $this} )\n          // TODO logiche di animazione di wip da insierire\n        }\n      })\n\n    });\n\n    // this.$on(this.$customEvents.PRODUCT_EVENTS.sizerequired, (e) => {\n    //   this.sizeNotification(e);\n    // });\n\n    this.$on(this.$customEvents.PRODUCT_EVENTS.sizechanged, ({event, payload}) => {\n      ctx.updateProductCode(payload.button);\n      ctx.hideUnavailableForm(payload.button);\n      if (!$(payload.button).data('disabled')) {\n        ctx.enableBtn(payload.button);\n      }\n    });\n\n    this.$on(this.$customEvents.PRODUCT_EVENTS.addtocart, ({event, payload}) => {\n\n      let $elem = $(payload.button);\n      this.$emit(this.$customEvents.LOADER_EVENTS.showLocal, {\n        button: $elem,\n      });\n\n      $elem.attr(\"disabled\", true);\n\n      $.ajax({\n        url: $elem.data('href'),\n        data: $elem.data(),\n        dataType: \"html\",\n        success: function (data) {\n          if(data == 650){\n            var remoteHref = $elem.data('exceeded-cart-qty');\n            if(!isNaN($elem.data('product-code'))){\n              remoteHref = remoteHref + $elem.data('product-code');\n            }else if(!isNaN($elem.data('base-code'))){\n              remoteHref = remoteHref + $elem.data('base-code');\n            }else{\n              remoteHref = remoteHref + $elem.data('code');\n            }\n\n            $.ajax({\n              url: remoteHref,\n              dataType: \"html\",\n              success: function(html) {\n                $elem.attr(\"disabled\", false);\n                ctx.$emit(ctx.$customEvents.MODAL_EVENTS.show, {\n                  unsafeContent: html,\n                  modalClass: 'exceeded-cart-products'\n                })\n                console.info(\"[AddToCart] Exceed product max number on cart.\")\n              },\n              error: function(xhr) {\n                $elem.attr(\"disabled\", false);\n                console.error(\"[AddToCart]\", xhr, arguments);\n              }\n            });\n          }else {\n            $elem.attr(\"disabled\", false);\n            // TODO logiche di animazione di wip da insierire\n            console.log(data);\n            let inWishlistLayer = payload.inWishlistLayer;\n            ctx.$emit(ctx.$customEvents.PRODUCT_EVENTS.addedtocart, {\n              button: $elem,\n              inWishlistLayer: inWishlistLayer\n            });\n            ctx.$emit(ctx.$customEvents.PRODUCT_EVENTS.addedtocart);\n          }\n          ctx.$emit(ctx.$customEvents.LOADER_EVENTS.hideLocal, { button: $elem} );\n          ctx.$emit(ctx.$customEvents.SIZES_EVENTS.sizesclose, { layer: $('.js-sizes') } );\n          ctx.$emit(ctx.$customEvents.MENU_EVENTS.hideMenu, {time:3000}, '.action--quickcart' );\n        },\n        error: function (xhr) {\n          ctx.$emit(ctx.$customEvents.LOADER_EVENTS.hideLocal, { button: $elem} )\n\n          if (xhr.status == '510') {\n\n            var remoteHref = $elem.data('remote-unavailable') + $elem.data('code');\n\n            $.ajax({\n              url: remoteHref,\n              dataType: \"html\",\n              success: function(html) {\n                $elem.attr(\"disabled\", false);\n                ctx.$emit(ctx.$customEvents.MODAL_EVENTS.show, {\n                  unsafeContent: html,\n                  modalClass: 'product-not-available'\n                })\n              },\n              error: function(xhr) {\n                $elem.attr(\"disabled\", false);\n                console.error(\"[AddToCart]\", xhr, arguments);\n              }\n            });\n\n          } else {\n            //ctx.error.html(xhr.responseText);\n            $elem.attr(\"disabled\", false);\n            ctx.error.html('Error in addtocart');\n            console.error(\"[AddToCart]\", xhr, arguments);\n          }\n        }\n      });\n\n    });\n\n    this.$on(this.$customEvents.PRODUCT_EVENTS.notifyme, ({event, payload}) => {\n    \tctx.showUnavailableForm(payload);\n    });\n\n    $('body').on('submit', ctx.SELECTORS.form, function(e) {\n\n        e.preventDefault();\n        let $form = $(this);\n        let url = $form.attr('action');\n        let $submitNotifyBtn = $form.find(ctx.SELECTORS.submitNotifyBtn);\n\n        if ($form.find('#email').val()) {\n          ctx.$emit(ctx.$customEvents.LOADER_EVENTS.showLocal, { button: $submitNotifyBtn});\n        }\n\n        $.ajax({\n          type: \"POST\",\n          url: url,\n          data: $form.serialize(),\n          success: function(message){\n            ctx.$emit(ctx.$customEvents.LOADER_EVENTS.hideLocal, { button: $submitNotifyBtn} );\n\n            $submitNotifyBtn.removeClass('error');\n            $submitNotifyBtn.addClass('sent');\n            setTimeout( ()=>{\n            \t$submitNotifyBtn.removeClass('sent');\n            },2500);\n          },\n          error: function(xhr){\n            ctx.log('notifyMe submit error ');\n            $submitNotifyBtn.addClass('error');\n        }\n      });\n\n      });\n\n    //SET PRODUCT CODE TO INPUT ON SIZE CHANGE\n    this.$on(this.$customEvents.PRODUCT_EVENTS.notifyme, ({event, payload}) => {\n\n      //remove size layer, set code and open notifyme\n      let code = $(payload).data('code');\n      let baseCode =  $(payload).data('baseCode');\n      this.enableForm(code, baseCode);\n\n    })\n\n  }\n\n  render() {\n    this.log('Rendering...');\n    this.bindEvents();\n  }\n\n}\n\n"],"sourceRoot":""}