{"version":3,"sources":["webpack:///scripts/plugin--search-filter-form--595c0887d70e58d63f71.js","webpack:///./client/src/core/components/search-filter-form/search-filter-form.js"],"names":["webpackJsonpHairCare","D:\\a\\1\\s\\node_modules\\babel-loader\\lib\\index.js??ref--12-0!D:\\a\\1\\s\\node_modules\\eslint-loader\\index.js??ref--12-1!D:\\a\\1\\s\\client\\src\\core\\components\\search-filter-form\\search-filter-form.js","module","exports","__webpack_require__","_classCallCheck","instance","Constructor","TypeError","Object","defineProperty","value","_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","key","protoProps","staticProps","prototype","_debug2","obj","__esModule","default","_debug","log","SearchFilterForm","form","options","this","init","addEventListener","changeHandler","bind","removeEventListener","event","submitOnChangeSelector","matches","submit","DEFAULTS"],"mappings":"AAAAA,sBAAsB,+BAEhBC,wNACA,SAAUC,EAAQC,EAASC,GAEjC,YAeA,SAASC,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAZhHC,OAAOC,eAAeP,EAAS,cAC9BQ,OAAO,GAGR,IAAIC,GAAe,WAAc,QAASC,GAAiBC,EAAQC,GAAS,IAAK,GAAIC,GAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CAAE,GAAIE,GAAaH,EAAMC,EAAIE,GAAWC,WAAaD,EAAWC,aAAc,EAAOD,EAAWE,cAAe,EAAU,SAAWF,KAAYA,EAAWG,UAAW,GAAMZ,OAAOC,eAAeI,EAAQI,EAAWI,IAAKJ,IAAiB,MAAO,UAAUX,EAAagB,EAAYC,GAAiJ,MAA9HD,IAAYV,EAAiBN,EAAYkB,UAAWF,GAAiBC,GAAaX,EAAiBN,EAAaiB,GAAqBjB,MCZhiB,yLDgBImB,EAEJ,SAAgCC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAASF,IAFlDG,GCf/BC,GAAM,aAAM,sBAEZC,E,WACL,WAAYC,EAAMC,GAAS,UAC1BC,KAAKF,KAAOA,EACZE,KAAKD,QAAUA,EAEfC,KAAKC,OACLL,EAAII,MD6CL,MAnBAvB,GAAaoB,IACZV,IAAK,OACLX,MAAO,WCzBPwB,KAAKF,KAAKI,iBAAiB,SAAUF,KAAKG,cAAcC,KAAKJ,UD6B7Db,IAAK,UACLX,MAAO,WC3BPwB,KAAKF,KAAKO,oBAAoB,SAAUL,KAAKG,cAAcC,KAAKJ,UD+BhEb,IAAK,gBACLX,MAAO,SC9BM8B,GAEZN,KAAKD,QAAQQ,wBACbD,EAAM3B,OAAO6B,QAAQR,KAAKD,QAAQQ,yBAElCP,KAAKF,KAAKW,aDgCLZ,IC3BRA,GAAiBa,UAChBH,wBAAwB,GDiCzBvC,EAAQ0B,QC9BOG","file":"scripts/plugin--search-filter-form--595c0887d70e58d63f71.js","sourcesContent":["webpackJsonpHairCare([\"plugin--search-filter-form\"],{\n\n/***/ \"D:\\\\a\\\\1\\\\s\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js??ref--12-0!D:\\\\a\\\\1\\\\s\\\\node_modules\\\\eslint-loader\\\\index.js??ref--12-1!D:\\\\a\\\\1\\\\s\\\\client\\\\src\\\\core\\\\components\\\\search-filter-form\\\\search-filter-form.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _debug = __webpack_require__(\"D:\\\\a\\\\1\\\\s\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js??ref--12-0!D:\\\\a\\\\1\\\\s\\\\node_modules\\\\eslint-loader\\\\index.js??ref--12-1!D:\\\\a\\\\1\\\\s\\\\node_modules\\\\debug\\\\src\\\\browser.js\");\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar log = (0, _debug2.default)(\"search-filter-form\");\n\nvar SearchFilterForm = function () {\n\tfunction SearchFilterForm(form, options) {\n\t\t_classCallCheck(this, SearchFilterForm);\n\n\t\tthis.form = form;\n\t\tthis.options = options;\n\n\t\tthis.init();\n\t\tlog(this);\n\t}\n\n\t_createClass(SearchFilterForm, [{\n\t\tkey: \"init\",\n\t\tvalue: function init() {\n\t\t\tthis.form.addEventListener(\"change\", this.changeHandler.bind(this));\n\t\t}\n\t}, {\n\t\tkey: \"unwatch\",\n\t\tvalue: function unwatch() {\n\t\t\tthis.form.removeEventListener(\"change\", this.changeHandler.bind(this));\n\t\t}\n\t}, {\n\t\tkey: \"changeHandler\",\n\t\tvalue: function changeHandler(event) {\n\t\t\tif (this.options.submitOnChangeSelector && event.target.matches(this.options.submitOnChangeSelector)) {\n\t\t\t\tthis.form.submit();\n\t\t\t}\n\t\t}\n\t}]);\n\n\treturn SearchFilterForm;\n}();\n\nSearchFilterForm.DEFAULTS = {\n\tsubmitOnChangeSelector: false\n};\n\nexports.default = SearchFilterForm;\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// scripts/plugin--search-filter-form--595c0887d70e58d63f71.js","import debug from \"debug\";\r\nconst log = debug(\"search-filter-form\");\r\n\r\nclass SearchFilterForm {\r\n\tconstructor(form, options) {\r\n\t\tthis.form = form;\r\n\t\tthis.options = options;\r\n\r\n\t\tthis.init();\r\n\t\tlog(this);\r\n\t}\r\n\tinit() {\r\n\t\tthis.form.addEventListener(\"change\", this.changeHandler.bind(this));\r\n\t}\r\n\tunwatch() {\r\n\t\tthis.form.removeEventListener(\"change\", this.changeHandler.bind(this));\r\n\t}\r\n\tchangeHandler(event) {\r\n\t\tif (\r\n\t\t\tthis.options.submitOnChangeSelector &&\r\n\t\t\tevent.target.matches(this.options.submitOnChangeSelector)\r\n\t\t) {\r\n\t\t\tthis.form.submit();\r\n\t\t}\r\n\t}\r\n}\r\n\r\nSearchFilterForm.DEFAULTS = {\r\n\tsubmitOnChangeSelector: false,\r\n};\r\n\r\nexport default SearchFilterForm;\r\n\n\n\n// WEBPACK FOOTER //\n// ./client/src/core/components/search-filter-form/search-filter-form.js"],"sourceRoot":""}