{"version":3,"sources":["webpack:///scripts/plugin--mini-cart--a8019cef9d9c67173a3d.js","webpack:///./client/src/core/components/mini-cart/mini-cart.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\\mini-cart\\mini-cart.js","module","exports","__webpack_require__","_interopRequireDefault","obj","__esModule","default","_toConsumableArray","arr","Array","isArray","i","arr2","length","from","_classCallCheck","instance","Constructor","TypeError","Object","defineProperty","value","_createClass","defineProperties","target","props","descriptor","enumerable","configurable","writable","key","protoProps","staticProps","prototype","_jquery2","_jquery","_debug2","_debug","log","MiniCart","element","options","this","beforeUnload","reloadButton","querySelector","reloadButtonSelector","ajaxSlot","ajaxSlotSelector","ajaxError","ajaxErrorSelector","ajaxLoading","ajaxLoadingSelector","modal","document","modalSelector","forms","querySelectorAll","formInstanceSelector","opened","watch","addEventListener","onOpen","bind","transitionOut","closeWithoutTransition","reloadCart","transitionHandler","mod","window","event","hidden","getStatus","nextAnimationFrame","transitionIn","func","requestAnimationFrame","classList","remove","transitionClass","add","onClosed","dispatchEvent","CustomEvent","bubbles","formInstances","map","form","data","Promise","allSettled","getPendingStatus","then","getCart","fetch","endpoint","response","ok","text","reject","html","parser","DOMParser","staleCart","freshCart","parseFromString","append","body","firstChild","catch","DEFAULTS"],"mappings":"AAAAA,sBAAsB,sBAEhBC,sMACA,SAAUC,EAAQC,EAASC,GAEjC,YAiBA,SAASC,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAASF,GAEvF,QAASG,GAAmBC,GAAO,GAAIC,MAAMC,QAAQF,GAAM,CAAE,IAAK,GAAIG,GAAI,EAAGC,EAAOH,MAAMD,EAAIK,QAASF,EAAIH,EAAIK,OAAQF,IAAOC,EAAKD,GAAKH,EAAIG,EAAM,OAAOC,GAAe,MAAOH,OAAMK,KAAKN,GAE1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C,IAAK,YACLT,MAAO,WCnCI,WACLgE,EAAgB3C,KAAKc,MAAM8B,IAAI,SAACC,GACrC,OAAO,aAAEA,GAAMC,KAAK,gBAGNC,SAAQC,WACtBL,EAAcC,IAAI,SAACtE,GAClB,MAAOA,GAAS2E,sBAIXC,KAAK,WACXtD,EAAI,WACJ,EAAKuD,eDuCN/D,IAAK,aACLT,MAAO,WCnCPqB,KAAKS,YAAYoB,QAAS,EAC1B7B,KAAKO,UAAUsB,QAAS,EAExB7B,KAAKmD,aDuCL/D,IAAK,UACLT,MAAO,WCrCC,UAERyE,OAAMpD,KAAKD,QAAQsD,UACjBH,KAAK,SAACI,GAEN,MAAIA,GAASC,GACLD,EAASE,OAEVT,QAAQU,OAAOH,KACpBJ,KAAK,SAACQ,GAIR,GAAI,EAAKzC,OAAQ,CAChB,GAAM0C,GAAS,GAAIC,WACbC,EAAY,EAAKxD,SAASF,cAAc,IAC9C0D,IAAaA,EAAUzB,QACvB,IAAM0B,GAAYH,EAAOI,gBAAgBL,EAAM,YAC/C,GAAKrD,SAAS2D,OAAOF,EAAUG,KAAKC,YACpC,EAAK7D,SAASwB,QAAS,EACvB,EAAKpB,YAAYoB,QAAS,EAC1B,EAAKtB,UAAUsB,QAAS,KAGvBsC,MAAM,WACRvE,EAAI,SACJ,EAAKa,YAAYoB,QAAS,EACtB,EAAK5B,eACR,EAAKM,UAAUsB,QAAS,SD0CrBhC,ICpCRA,GAASuE,UACR/B,gBAAiB,0BD0ClB9E,EAAQK,QCvCOiC","file":"scripts/plugin--mini-cart--a8019cef9d9c67173a3d.js","sourcesContent":["webpackJsonpHairCare([\"plugin--mini-cart\"],{\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\\\\mini-cart\\\\mini-cart.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 _jquery = __webpack_require__(\"external \\\"jQuery\\\"\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\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 _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\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)(\"mini-cart\");\n\nvar MiniCart = function () {\n\tfunction MiniCart(element, options) {\n\t\t_classCallCheck(this, MiniCart);\n\n\t\tthis.element = element;\n\t\tthis.options = options;\n\t\tthis.beforeUnload = true;\n\t\tthis.reloadButton = element.querySelector(this.options.reloadButtonSelector);\n\t\tthis.ajaxSlot = element.querySelector(this.options.ajaxSlotSelector);\n\t\tthis.ajaxError = element.querySelector(this.options.ajaxErrorSelector);\n\t\tthis.ajaxLoading = element.querySelector(this.options.ajaxLoadingSelector);\n\t\tthis.modal = document.querySelector(this.options.modalSelector);\n\t\tthis.forms = [].concat(_toConsumableArray(document.querySelectorAll(this.options.formInstanceSelector)));\n\n\t\tthis.opened = false;\n\n\t\tlog(this);\n\n\t\tthis.watch();\n\t}\n\n\t_createClass(MiniCart, [{\n\t\tkey: \"watch\",\n\t\tvalue: function watch() {\n\t\t\tthis.modal.addEventListener('cart_opened', this.onOpen.bind(this));\n\t\t\tthis.modal.addEventListener(\"start_cart_close\", this.transitionOut.bind(this));\n\n\t\t\t// modal may close itself, e.g. on pageshow\n\t\t\tthis.modal.addEventListener('cart_closed', this.closeWithoutTransition.bind(this));\n\n\t\t\tthis.reloadButton.addEventListener('click', this.reloadCart.bind(this));\n\t\t\tthis.element.addEventListener(\"transitionend\", this.transitionHandler.bind(this));\n\n\t\t\tvar mod = this;\n\t\t\twindow.addEventListener(\"beforeunload\", function (event) {\n\t\t\t\tmod.beforeUnload = false;\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"onOpen\",\n\t\tvalue: function onOpen() {\n\t\t\tthis.opened = true;\n\t\t\tthis.ajaxSlot.hidden = true;\n\t\t\tthis.ajaxLoading.hidden = false;\n\t\t\tthis.ajaxError.hidden = true;\n\n\t\t\tthis.getStatus();\n\t\t\tthis.nextAnimationFrame(this.transitionIn.bind(this));\n\t\t}\n\t}, {\n\t\tkey: \"nextAnimationFrame\",\n\t\tvalue: function nextAnimationFrame(func) {\n\t\t\twindow.requestAnimationFrame(function () {\n\t\t\t\twindow.requestAnimationFrame(func);\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"transitionIn\",\n\t\tvalue: function transitionIn() {\n\t\t\tthis.element.classList.remove(this.options.transitionClass);\n\t\t}\n\t}, {\n\t\tkey: \"transitionOut\",\n\t\tvalue: function transitionOut() {\n\t\t\tthis.opened = false;\n\t\t\tthis.element.classList.add(this.options.transitionClass);\n\t\t\t// Transition handler takes it from here\n\t\t}\n\t}, {\n\t\tkey: \"transitionHandler\",\n\t\tvalue: function transitionHandler(event) {\n\t\t\tif (event.target !== this.element) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tvar isClosing = !this.opened;\n\t\t\tif (isClosing) {\n\t\t\t\tlog('closed');\n\t\t\t\tthis.onClosed();\n\n\t\t\t\tthis.element.dispatchEvent(new CustomEvent(\"close_cart\", {\n\t\t\t\t\tbubbles: true\n\t\t\t\t}));\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: \"closeWithoutTransition\",\n\t\tvalue: function closeWithoutTransition() {\n\t\t\tthis.opened = false;\n\t\t\tthis.onClosed();\n\t\t\tthis.element.classList.add(this.options.transitionClass);\n\t\t}\n\t}, {\n\t\tkey: \"onClosed\",\n\t\tvalue: function onClosed() {\n\t\t\tthis.ajaxSlot.hidden = true;\n\t\t\tthis.ajaxLoading.hidden = false;\n\t\t\tthis.ajaxError.hidden = true;\n\t\t}\n\t}, {\n\t\tkey: \"getStatus\",\n\t\tvalue: function getStatus() {\n\t\t\tvar _this = this;\n\n\t\t\tvar formInstances = this.forms.map(function (form) {\n\t\t\t\treturn (0, _jquery2.default)(form).data('__addToCart');\n\t\t\t});\n\n\t\t\tvar status = Promise.allSettled(formInstances.map(function (instance) {\n\t\t\t\treturn instance.getPendingStatus();\n\t\t\t}));\n\n\t\t\tstatus.then(function () {\n\t\t\t\tlog('settled');\n\t\t\t\t_this.getCart();\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"reloadCart\",\n\t\tvalue: function reloadCart() {\n\t\t\tthis.ajaxLoading.hidden = false;\n\t\t\tthis.ajaxError.hidden = true;\n\n\t\t\tthis.getCart();\n\t\t}\n\t}, {\n\t\tkey: \"getCart\",\n\t\tvalue: function getCart() {\n\t\t\tvar _this2 = this;\n\n\t\t\tfetch(this.options.endpoint).then(function (response) {\n\t\t\t\t// log({response});\n\t\t\t\tif (response.ok) {\n\t\t\t\t\treturn response.text();\n\t\t\t\t}\n\t\t\t\treturn Promise.reject(response);\n\t\t\t}).then(function (html) {\n\t\t\t\t// log({html});\n\n\t\t\t\t// Do nothing if the modal has been closed\n\t\t\t\tif (_this2.opened) {\n\t\t\t\t\tvar parser = new DOMParser();\n\t\t\t\t\tvar staleCart = _this2.ajaxSlot.querySelector('*');\n\t\t\t\t\tstaleCart && staleCart.remove();\n\t\t\t\t\tvar freshCart = parser.parseFromString(html, 'text/html');\n\t\t\t\t\t_this2.ajaxSlot.append(freshCart.body.firstChild);\n\t\t\t\t\t_this2.ajaxSlot.hidden = false;\n\t\t\t\t\t_this2.ajaxLoading.hidden = true;\n\t\t\t\t\t_this2.ajaxError.hidden = true;\n\t\t\t\t}\n\t\t\t}).catch(function () {\n\t\t\t\tlog('error');\n\t\t\t\t_this2.ajaxLoading.hidden = true;\n\t\t\t\tif (_this2.beforeUnload) {\n\t\t\t\t\t_this2.ajaxError.hidden = false;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}]);\n\n\treturn MiniCart;\n}();\n\nMiniCart.DEFAULTS = {\n\ttransitionClass: \"mini-cart--is-off-view\"\n};\n\nexports.default = MiniCart;\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// scripts/plugin--mini-cart--a8019cef9d9c67173a3d.js","import $ from 'jquery';\r\nimport debug from \"debug\";\r\n\r\nconst log = debug(\"mini-cart\");\r\n\r\nclass MiniCart {\r\n\tconstructor(element, options) {\r\n\t\tthis.element = element;\r\n\t\tthis.options = options;\r\n\t\tthis.beforeUnload = true;\r\n\t\tthis.reloadButton = element.querySelector(this.options.reloadButtonSelector);\r\n\t\tthis.ajaxSlot = element.querySelector(this.options.ajaxSlotSelector);\r\n\t\tthis.ajaxError = element.querySelector(this.options.ajaxErrorSelector);\r\n\t\tthis.ajaxLoading = element.querySelector(this.options.ajaxLoadingSelector);\r\n\t\tthis.modal = document.querySelector(this.options.modalSelector);\r\n\t\tthis.forms = [... document.querySelectorAll(this.options.formInstanceSelector)];\r\n\r\n\t\tthis.opened = false;\r\n\r\n\t\tlog(this);\r\n\r\n\t\tthis.watch();\r\n\t}\r\n\r\n\twatch() {\r\n\t\tthis.modal.addEventListener('cart_opened', this.onOpen.bind(this));\r\n\t\tthis.modal.addEventListener(\"start_cart_close\", this.transitionOut.bind(this));\r\n\r\n\t\t// modal may close itself, e.g. on pageshow\r\n\t\tthis.modal.addEventListener('cart_closed', this.closeWithoutTransition.bind(this));\r\n\r\n\t\tthis.reloadButton.addEventListener('click', this.reloadCart.bind(this));\r\n\t\tthis.element.addEventListener(\"transitionend\", this.transitionHandler.bind(this));\r\n\r\n\t\tvar mod = this;\r\n\t\twindow.addEventListener(\"beforeunload\", function( event ) {\t\t\r\n\t\t\tmod.beforeUnload = false;\r\n\t\t});\r\n\t}\r\n\r\n\tonOpen(){\r\n\t\tthis.opened = true;\r\n\t\tthis.ajaxSlot.hidden = true;\r\n\t\tthis.ajaxLoading.hidden = false;\r\n\t\tthis.ajaxError.hidden = true;\r\n\r\n\t\tthis.getStatus();\r\n\t\tthis.nextAnimationFrame(this.transitionIn.bind(this));\r\n\t}\r\n\r\n\tnextAnimationFrame(func) {\r\n\t\twindow.requestAnimationFrame(()=>{\r\n\t\t\twindow.requestAnimationFrame(func);\r\n\t\t});\r\n\t}\r\n\r\n\ttransitionIn() {\r\n\t\tthis.element.classList.remove(this.options.transitionClass);\r\n\t}\r\n\r\n\ttransitionOut() {\r\n\t\tthis.opened = false;\r\n\t\tthis.element.classList.add(this.options.transitionClass);\r\n\t\t// Transition handler takes it from here\r\n\t}\r\n\r\n\ttransitionHandler(event) {\r\n\t\tif (event.target !== this.element) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tconst isClosing = !this.opened;\r\n\t\tif(isClosing) {\r\n\t\t\tlog('closed');\r\n\t\t\tthis.onClosed();\r\n\r\n\t\t\tthis.element.dispatchEvent(\r\n\t\t\t\tnew CustomEvent(\"close_cart\", {\r\n\t\t\t\t\tbubbles: true,\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tcloseWithoutTransition() {\r\n\t\tthis.opened = false;\r\n\t\tthis.onClosed();\r\n\t\tthis.element.classList.add(this.options.transitionClass);\r\n\t}\r\n\r\n\tonClosed() {\r\n\t\tthis.ajaxSlot.hidden = true;\r\n\t\tthis.ajaxLoading.hidden = false;\r\n\t\tthis.ajaxError.hidden = true;\r\n\t}\r\n\r\n\tgetStatus() {\r\n\t\tconst formInstances = this.forms.map((form)=>{\r\n\t\t\treturn $(form).data('__addToCart');\r\n\t\t});\r\n\r\n\t\tconst status = Promise.allSettled(\r\n\t\t\tformInstances.map((instance) =>{\r\n\t\t\t\treturn instance.getPendingStatus();\r\n\t\t\t})\r\n\t\t);\r\n\r\n\t\tstatus.then(()=>{\r\n\t\t\tlog('settled');\r\n\t\t\tthis.getCart();\r\n\t\t});\r\n\t}\r\n\r\n\treloadCart() {\r\n\t\tthis.ajaxLoading.hidden = false;\r\n\t\tthis.ajaxError.hidden = true;\r\n\r\n\t\tthis.getCart();\r\n\t}\r\n\r\n\tgetCart(){\r\n\r\n\t\tfetch(this.options.endpoint)\r\n\t\t\t.then((response)=>{\r\n\t\t\t\t// log({response});\r\n\t\t\t\tif (response.ok) {\r\n\t\t\t\t\treturn response.text();\r\n\t\t\t\t}\r\n\t\t\t\treturn Promise.reject(response);\r\n\t\t\t}).then((html)=>{\r\n\t\t\t\t// log({html});\r\n\r\n\t\t\t\t// Do nothing if the modal has been closed\r\n\t\t\t\tif (this.opened) {\r\n\t\t\t\t\tconst parser = new DOMParser();\r\n\t\t\t\t\tconst staleCart = this.ajaxSlot.querySelector('*');\r\n\t\t\t\t\tstaleCart && staleCart.remove();\r\n\t\t\t\t\tconst freshCart = parser.parseFromString(html, 'text/html');\r\n\t\t\t\t\tthis.ajaxSlot.append(freshCart.body.firstChild);\r\n\t\t\t\t\tthis.ajaxSlot.hidden = false;\r\n\t\t\t\t\tthis.ajaxLoading.hidden = true;\r\n\t\t\t\t\tthis.ajaxError.hidden = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t}).catch(()=>{\r\n\t\t\t\tlog('error');\r\n\t\t\t\tthis.ajaxLoading.hidden = true;\r\n\t\t\t\tif (this.beforeUnload) {\r\n\t\t\t\t\tthis.ajaxError.hidden = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n}\r\n\r\nMiniCart.DEFAULTS = {\r\n\ttransitionClass: \"mini-cart--is-off-view\"\r\n};\r\n\r\nexport default MiniCart;\r\n\n\n\n// WEBPACK FOOTER //\n// ./client/src/core/components/mini-cart/mini-cart.js"],"sourceRoot":""}