{"version":3,"sources":["webpack:////Users/owenli/Documents/workspace/awi-wool-fe/src/views/blocks/newsletterRegistrationBlock/js/newsletterRegistrationBlock.js"],"names":["CLS","NewsletterRegistrationBlock","_createClass","element","_this","this","_classCallCheck","$element","$","$emailInput","find","concat","$sendButton","target","attr","on","event","preventDefault","val"],"mappings":"u4BAAA,IACMA,EAAM,8BAECC,4GAA2BC,CACvC,SAAAD,EAAYE,GAAS,IAAAC,EAAAC,kGAAAC,CAAAD,KAAAJ,GACpBI,KAAKE,SAAWC,EAAEL,GAClBE,KAAKI,YAAcJ,KAAKE,SAASG,KAAI,IAAAC,OAAKX,EAAG,iBAC7CK,KAAKO,YAAcP,KAAKE,SAASG,KAAI,IAAAC,OAAKX,EAAG,sBAE7C,IAAIa,EAASR,KAAKO,YAAYE,KAAK,eAEnCT,KAAKO,YAAYG,GAAG,QAAS,SAACC,GAC7BA,EAAMC,iBACNT,EAAEK,GAAQH,KAAI,uBAAwBQ,IAAId,EAAKK,YAAYS","file":"block-25.430117f348aedc9992ce.js","sourcesContent":["const NS = 'NewsletterRegistrationBlock';\nconst CLS = 'newsletterRegistrationBlock';\n\nexport class NewsletterRegistrationBlock {\n\tconstructor(element) {\n\t\tthis.$element = $(element);\n\t\tthis.$emailInput = this.$element.find(`.${CLS}-email-input`);\n\t\tthis.$sendButton = this.$element.find(`.${CLS}-email-sendButton`);\n\n\t\tlet target = this.$sendButton.attr('data-target');\n\n\t\tthis.$sendButton.on('click', (event) => {\n\t\t\tevent.preventDefault();\n\t\t\t$(target).find(`input[type='email']`).val(this.$emailInput.val());\n\t\t});\n\t}\n}\n"],"sourceRoot":""}