{"version":3,"sources":["webpack:///scripts/plugin--quick-order--6bb1accf8c6c2b7c4347.js","webpack:///./client/src/core/components/quick-order/quantity-input.js","webpack:///./client/src/core/components/quick-order/quick-order.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\\quick-order\\quantity-input.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","QuantityInput","element","this","$element","$","$minus","find","$plus","$input","max","Number","parseInt","attr","watch","on","_quanty","val","triggerEvent","updateButtons","addClass","removeClass","trigger","default","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\\quick-order\\quick-order.js","_interopRequireDefault","obj","__esModule","_defineProperty","_toConsumableArray","arr","Array","isArray","arr2","from","_slicedToArray","sliceIterator","_arr","_n","_d","_e","undefined","_s","_i","Symbol","iterator","next","done","push","err","_jquery2","_jquery","_debug2","_debug","_quantityInput2","_quantityInput","log","CLASS","SUCCESS","LOADING","PROGRESS","SCROLL_DISABLE","LOADING_ADD_TO_CART","STICKY_BOTTOM","NOT_MATCH","QuickOrder","options","$html","initializeElements","initializeState","bindEvents","created","opts","closeModal","$lineItems","lineItems","$searchName","searchName","$subtotal","subtotal","$saving","saving","$addToCart","addToCart","$notificationElement","document","querySelector","notificationElementSelector","$cart","cartSelector","$updateEventTarget","$scrollToTop","scrollToTop","$stickyBottomTarget","stickyBottomTarget","$stickyBottomPoint","stickyBottomPoint","$headerCartLink","cartLink","$pushLayerElements","pushLayerElements","$discountSaving","discountSaving","addToCartData","items","totalItem","quickOrderItems","$progressBar","progressBar","html","topItem","actionMode","listing","triggerQuickOrder","bind","detail","toggleClass","isElementInView","hide","hideDropdown","toggleDropdown","updateFooter","sortItems","fn","debounce","onSearch","handleLayerElements","event","preventDefault","currentTarget","code","dataset","$gaTrackingItem","closest","url","quickOrderEndPoint","fetchData","onAfterFirstFetchData","then","onAfterLastFetchData","GAServices","selectItem","term","trim","filterValue","toLowerCase","itemMatch","filter","item","productSku","isMatch","includes","searchPushDataLayer","window","dataLayer","search_term","position","data","JSON","parse","sortBy","stopPropagation","estimatedSubtotal","estimatedSaving","each","lineItem","$quantityInput","quantity","productCode","total","status","parseFloat","text","printPrice","prop","updateAddToCartButton","addToCartText","isDisabled","bindingSlotContent","slotContent","children","remove","product","datalayerDataSource","dataItemList","getItemListName","item_id","assign","getAttributesWithPrefix","datalayer","keys","saveListItemsName","saved","fromEntries","entries","hasClass","productSize","quickOrderItemPerBatchAddToCart","paramList","batch","slice","maps","index","item_list_name","list_category","list_category2","list_category3","reduce","acc","getDatalayer","init","postAddToCartByBatch","handleCartAdditionResponse","finally","setTimeout","responseData","Promise","resolve","reject","param","postAddToCart","res","Success","batchDone","completedItem","catch","API","post","addToCartMultipleApiEndpoint","AddToCartResults","cur","ItemsInCart","Math","onAfterAddToCart","$message","_totalItem","_completedItem","updateView","width","css","_ref6","addToCartItems","itemsInValid","Code","ValidationMessages","EntriesAddedToCart","ItemAddedDatalayer","$lineItem","$messageError","reset","filteredData","filterEmptyData","dataTracking","add_type","ecommerce","currency","price","toFixed","trackingGA","updateCartHeader","dispatchEvent","CustomEvent","bubbles","count","$messageVisible","scrollIntoView","behavior","block","inline","$cartCount","append","nextUrl","get","QuickOrderItems","Next","updateTopContent","updateOrderItems","show","$productCodes","hasSortRecently","sortRecently","hasSortPolular","sortPopular","$sortRecently","$sortPolular","$sortAsc","ProductCode","getDisplayPrice","ProductPrice","IsInStock","cssCurrent","cssPrevious","HtmlPrice","SmallThumbnail","TeaserImage","SmallThumbnailUrl","AltTag","quickOrderTop","fixPrice","config","forceShowPrice","HasPrice","ShowPricesIncludingTax","DisplayPriceIncTax","DisplayPrice","DiscountDisplayPrice","priceHtml","displayPrice","priceCssClass","tagPrice","discountPrice","DiscountPriceIncTax","DiscountPrice","_amount","join","type","getNumberOrNull","name","match","sortMethod","ASC","a","b","numA","sortName","numB","localeCompare","DESC","RECENTLY","POPULAR","sort","forEach","style","order","scrollTop","DisplayName","map","quickOrderItem","RecentlyOrderDate","TotalOrdered","ColorImageUrl","ProductSku","ForStockistOnly","ProductAvailableQuantity","cssOutOfStock","cssForStockistOnly","swatchColour","recentyHtml","stockHtml","outOfStockText","onlyStockistHtml","onlyStockistText","Date","getTime","reachLimitText","bindingData","SizeSku","ProductSize","quickOrderBinding","beforeHeight","outerHeight","height","transition","afterHeight","opacity","removeAttr","rect","getBoundingClientRect","windowHeight","bottom","_ref8","DEFAULTS"],"mappings":"AAAAA,sBAAsB,wBAEhBC,6MACA,SAAUC,EAAQC,EAASC,GAEjC,YASA,SAASC,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCANhHC,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,MCZ3gBmB,E,WACpB,WAAYC,GAAS,UACpBC,KAAKC,SAAWC,EAAEH,GAClBC,KAAKG,OAASH,KAAKC,SAASG,KAAK,mBACjCJ,KAAKK,MAAQL,KAAKC,SAASG,KAA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N,SAASiB,YAAY,UAC1B,EAAK8C,MAAM4K,KAAM,kBAAmB,KACpC,EAAK5K,MAAM0S,WAAW,oBACpB,QFkOHhX,IAAK,kBACLX,MAAO,SEhOQkB,GACf,GAAM0W,GAAO1W,EAAS,GAAG2W,wBACnBC,GAAe,aAAEvN,QAAQgN,QAE/B,OAAOK,GAAKG,QAAU,GAAKH,EAAKG,QAAUD,KFmO1CnX,IAAK,aACLX,MAAO,SAAoBgY,GEjO4B,QAA3ClQ,cAA2C,OAAjC,aAAiC,MAAtBG,aAAsB,OAAb,aAAa,CACnDhH,MAAKC,SAAS+L,SAAS,+BAC1BhF,IAEAH,QF2OK/C,IEtORA,GAAWkT,UACV/I,8BAA8B,+DAAoDvN,KAAK,WACvF0E,4BAA6B,kCAC7BgD,oBAAoB,qDAA0C1H,KAAK,WACnEwL,iCAAiC,kEAAuDxL,KAAK,WAC7FoG,kBAAmB,6BACnBxB,aAAc,qBACdK,mBAAoB,mCACpBE,kBAAmB,yCACnBJ,YAAa,uBACbuF,YAAa,sBACbtG,WAAY,qBACZJ,WAAY,gBACZE,UAAW,oBACXQ,UAAW,qBACXJ,SAAU,kBACVE,OAAQ,gBACRiR,eAAgB,cAChBL,eAAgB,eAChBE,iBAAkB,+BAClB7P,SAAU,mBACV8E,cAAe,uBACf5E,kBAAmB,uCACnBE,eAAgB,0BF4OjB5H,EAAQ6C,QEzOO0C","file":"scripts/plugin--quick-order--6bb1accf8c6c2b7c4347.js","sourcesContent":["webpackJsonpHairCare([\"plugin--quick-order\"],{\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\\\\quick-order\\\\quantity-input.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\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar QuantityInput = function () {\n\tfunction QuantityInput(element) {\n\t\t_classCallCheck(this, QuantityInput);\n\n\t\tthis.$element = $(element);\n\t\tthis.$minus = this.$element.find(\".quantity-minus\");\n\t\tthis.$plus = this.$element.find(\".quantity-plus\");\n\t\tthis.$input = this.$element.find(\".quantity-input\");\n\t\tthis.max = Number.parseInt(this.$element.attr(\"data-max\") || 0);\n\t\telement[0].QuantityInput = this;\n\n\t\tthis.watch();\n\t}\n\n\t_createClass(QuantityInput, [{\n\t\tkey: \"watch\",\n\t\tvalue: function watch() {\n\t\t\tvar _this = this;\n\n\t\t\tthis.$minus.on(\"click\", function () {\n\t\t\t\tvar _quanty = Number.parseInt(_this.$input.val());\n\t\t\t\tif (_quanty) {\n\t\t\t\t\t_this.$input.val(_quanty - 1);\n\t\t\t\t\t_this.triggerEvent(_this.$input);\n\t\t\t\t}\n\t\t\t\t_this.updateButtons();\n\t\t\t});\n\n\t\t\tthis.$plus.on(\"click\", function () {\n\t\t\t\t_this.max = Number.parseInt(_this.$element.attr(\"data-max\") || 0);\n\t\t\t\tvar _quanty = Number.parseInt(_this.$input.val());\n\t\t\t\tif (_quanty < _this.max) {\n\t\t\t\t\t_this.$input.val(_quanty + 1);\n\t\t\t\t\t_this.triggerEvent(_this.$input);\n\t\t\t\t}\n\t\t\t\t_this.updateButtons();\n\t\t\t});\n\n\t\t\tthis.$input.on(\"change\", function () {\n\t\t\t\t_this.updateButtons();\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"init\",\n\t\tvalue: function init() {\n\t\t\tif (!this.$input.val()) {\n\t\t\t\tthis.$input.val(0);\n\t\t\t}\n\t\t\tthis.$minus.addClass(\"disabled\");\n\t\t}\n\t}, {\n\t\tkey: \"reset\",\n\t\tvalue: function reset() {\n\t\t\tthis.$input.val(0);\n\t\t\tthis.updateButtons();\n\t\t}\n\t}, {\n\t\tkey: \"updateButtons\",\n\t\tvalue: function updateButtons() {\n\t\t\tthis.max = Number.parseInt(this.$element.attr(\"data-max\") || 0);\n\t\t\tvar _quanty = Number.parseInt(this.$input.val() || 0);\n\t\t\tthis.$minus.removeClass(\"disabled\");\n\t\t\tthis.$plus.removeClass(\"disabled\");\n\n\t\t\tif (_quanty === 0) {\n\t\t\t\tthis.$minus.addClass(\"disabled\");\n\t\t\t\tthis.$input.val(0);\n\t\t\t} else if (_quanty >= this.max) {\n\t\t\t\tthis.$plus.addClass(\"disabled\");\n\t\t\t\tthis.$input.val(this.max);\n\t\t\t\tthis.$input.trigger(\"limit\");\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: \"triggerEvent\",\n\t\tvalue: function triggerEvent($element) {\n\t\t\t$element.trigger(\"change\");\n\t\t}\n\t}]);\n\n\treturn QuantityInput;\n}();\n\nexports.default = QuantityInput;\n\n/***/ }),\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\\\\quick-order\\\\quick-order.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\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\nvar _quantityInput = __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\\\\client\\\\src\\\\core\\\\components\\\\quick-order\\\\quantity-input.js\");\n\nvar _quantityInput2 = _interopRequireDefault(_quantityInput);\n\nvar _gaServices = __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\\\\client\\\\src\\\\core\\\\services\\\\ga-services.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return 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)(\"quick-order-modal\");\nvar CLASS = {\n\tSUCCESS: \"is-submitted\",\n\tLOADING: \"is-loading\",\n\tPROGRESS: \"is-submitting\",\n\tSCROLL_DISABLE: \"u-scroll-y-disabled\",\n\tLOADING_ADD_TO_CART: \"is-loading-add-to-cart\",\n\tSTICKY_BOTTOM: \"is-sticky-bottom\",\n\tNOT_MATCH: \"is-not-match\"\n};\n\nvar QuickOrder = function () {\n\tfunction QuickOrder(element, options) {\n\t\t_classCallCheck(this, QuickOrder);\n\n\t\tthis.$element = (0, _jquery2.default)(element);\n\t\tthis.options = options;\n\t\tthis.$html = (0, _jquery2.default)(\"html\");\n\t\tthis.initializeElements();\n\t\tthis.initializeState();\n\t\tthis.bindEvents();\n\t\tthis.created();\n\t\tlog(this);\n\t}\n\n\t_createClass(QuickOrder, [{\n\t\tkey: \"initializeElements\",\n\t\tvalue: function initializeElements() {\n\t\t\tvar opts = this.options;\n\t\t\tthis.closeModal = this.$element.find(opts.closeModal);\n\t\t\tthis.$lineItems = this.$element.find(opts.lineItems);\n\t\t\tthis.$searchName = this.$element.find(opts.searchName);\n\t\t\tthis.$subtotal = this.$element.find(opts.subtotal);\n\t\t\tthis.$saving = this.$element.find(opts.saving);\n\t\t\tthis.$addToCart = this.$element.find(opts.addToCart);\n\t\t\tthis.$notificationElement = document.querySelector(opts.notificationElementSelector);\n\t\t\tthis.$cart = document.querySelector(opts.cartSelector);\n\t\t\tthis.$updateEventTarget = this.$cart || this.$notificationElement;\n\t\t\tthis.$scrollToTop = this.$element.find(opts.scrollToTop);\n\t\t\tthis.$stickyBottomTarget = this.$element.find(opts.stickyBottomTarget);\n\t\t\tthis.$stickyBottomPoint = this.$element.find(opts.stickyBottomPoint);\n\t\t\tthis.$headerCartLink = (0, _jquery2.default)(this.options.cartLink);\n\t\t\tthis.$pushLayerElements = (0, _jquery2.default)(this.options.pushLayerElements);\n\t\t\tthis.$discountSaving = (0, _jquery2.default)(this.options.discountSaving);\n\t\t}\n\t}, {\n\t\tkey: \"initializeState\",\n\t\tvalue: function initializeState() {\n\t\t\tthis.addToCartData = {\n\t\t\t\titems: [],\n\t\t\t\ttotalItem: 0\n\t\t\t};\n\t\t\tthis.quickOrderItems = [];\n\t\t\tthis.$progressBar = this.progressBar();\n\t\t\tthis.$lineItems.html(\"\");\n\t\t\tthis.$lineItems.removeClass(CLASS.NOT_MATCH);\n\t\t\tthis.topItem = null;\n\t\t}\n\t}, {\n\t\tkey: \"bindEvents\",\n\t\tvalue: function bindEvents() {\n\t\t\tvar _this = this;\n\n\t\t\tthis.actionMode({\n\t\t\t\tlisting: function listing() {\n\t\t\t\t\t(0, _jquery2.default)(\"body\").on(\"click\", _this.options.triggerQuickOrder, _this.triggerQuickOrder.bind(_this));\n\t\t\t\t},\n\t\t\t\tdetail: function detail() {\n\t\t\t\t\t(0, _jquery2.default)(document).on(\"scroll\", function () {\n\t\t\t\t\t\tif (_this.addToCartData.items.length) {\n\t\t\t\t\t\t\t(0, _jquery2.default)(_this.$stickyBottomTarget).toggleClass(CLASS.STICKY_BOTTOM, !_this.isElementInView(_this.$stickyBottomPoint));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t(0, _jquery2.default)(_this.$stickyBottomTarget).toggleClass(CLASS.STICKY_BOTTOM, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tthis.$element.on(\"click\", this.options.closeModal, this.hide.bind(this));\n\t\t\t(0, _jquery2.default)(document).on(\"click\", this.hideDropdown.bind(this));\n\t\t\tthis.$element.on(\"click\", \"[sort-by]\", this.toggleDropdown.bind(this));\n\t\t\tthis.$element.on(\"change\", this.updateFooter.bind(this));\n\t\t\tthis.$element.find(\"[emit-sort-by]\").on(\"click\", this.sortItems.bind(this));\n\t\t\tthis.$searchName.on(\"input\", this.fn.debounce(this.onSearch.bind(this), 300));\n\t\t\tthis.$addToCart.on(\"click\", this.addToCart.bind(this));\n\t\t\tthis.$element.on(\"click\", this.options.pushLayerElements, this.handleLayerElements);\n\t\t}\n\t}, {\n\t\tkey: \"triggerQuickOrder\",\n\t\tvalue: function triggerQuickOrder(event) {\n\t\t\tvar _this2 = this;\n\n\t\t\tevent.preventDefault();\n\t\t\t(0, _jquery2.default)(event.currentTarget).addClass(CLASS.PROGRESS);\n\t\t\tthis.options.code = event.currentTarget.dataset.triggerQuickOrder;\n\t\t\tthis.$gaTrackingItem = (0, _jquery2.default)(event.currentTarget).closest('[ga-tracking-item]');\n\t\t\tthis.initializeState();\n\t\t\tthis.$element.addClass(CLASS.LOADING);\n\t\t\tvar url = this.options.quickOrderEndPoint + \"&code=\" + this.options.code;\n\t\t\tthis.fetchData(url, function () {\n\t\t\t\t(0, _jquery2.default)(event.currentTarget).removeClass(CLASS.PROGRESS);\n\t\t\t\t_this2.onAfterFirstFetchData();\n\t\t\t}).then(function () {\n\t\t\t\treturn _this2.onAfterLastFetchData();\n\t\t\t});\n\t\t\t_gaServices.GAServices.selectItem(event.currentTarget, false);\n\t\t}\n\t}, {\n\t\tkey: \"onSearch\",\n\t\tvalue: function onSearch(event) {\n\t\t\tvar term = event.currentTarget.value.trim();\n\t\t\tvar filterValue = term.toLowerCase();\n\t\t\tvar itemMatch = Array.from(this.$lineItems.find(\"[data-filter]\")).filter(function (item) {\n\t\t\t\tvar _item$dataset = item.dataset,\n\t\t\t\t filter = _item$dataset.filter,\n\t\t\t\t productSku = _item$dataset.productSku;\n\n\t\t\t\tvar isMatch = filter.toLowerCase().includes(filterValue) || productSku === filterValue;\n\t\t\t\t(0, _jquery2.default)(item).toggleClass(CLASS.NOT_MATCH, !isMatch);\n\t\t\t\treturn isMatch;\n\t\t\t});\n\n\t\t\tthis.$lineItems.toggleClass(CLASS.NOT_MATCH, !itemMatch.length);\n\t\t\tthis.updateFooter();\n\t\t\titemMatch.length && this.searchPushDataLayer(term);\n\t\t}\n\t}, {\n\t\tkey: \"searchPushDataLayer\",\n\t\tvalue: function searchPushDataLayer(term) {\n\t\t\tif (term) {\n\t\t\t\twindow.dataLayer = window.dataLayer || [];\n\t\t\t\twindow.dataLayer.push({\n\t\t\t\t\tevent: \"view_search_results\",\n\t\t\t\t\tsearch_term: term,\n\t\t\t\t\tposition: \"Quick Order\"\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: \"handleLayerElements\",\n\t\tvalue: function handleLayerElements(event) {\n\t\t\tvar value = (0, _jquery2.default)(event.currentTarget).attr(\"data-tracking\");\n\t\t\tif (value) {\n\t\t\t\tvar data = JSON.parse(value);\n\t\t\t\twindow.dataLayer = window.dataLayer || [];\n\t\t\t\twindow.dataLayer.push(data);\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: \"sortItems\",\n\t\tvalue: function sortItems(event) {\n\t\t\tthis.$element.find(\"[emit-sort-by]\").removeClass(\"active\");\n\t\t\t(0, _jquery2.default)(event.currentTarget).addClass(\"active\");\n\t\t\tthis.sortBy((0, _jquery2.default)(event.currentTarget).attr(\"emit-sort-by\"));\n\t\t}\n\t}, {\n\t\tkey: \"hideDropdown\",\n\t\tvalue: function hideDropdown() {\n\t\t\tthis.$element.find(\"[sort-by-dropdown]\").removeClass(\"show\");\n\t\t}\n\t}, {\n\t\tkey: \"toggleDropdown\",\n\t\tvalue: function toggleDropdown(event) {\n\t\t\tevent.stopPropagation();\n\t\t\tthis.$element.find(\"[sort-by-dropdown]\").toggleClass(\"show\");\n\t\t}\n\t}, {\n\t\tkey: \"updateFooter\",\n\t\tvalue: function updateFooter() {\n\t\t\tvar _this3 = this;\n\n\t\t\tvar estimatedSubtotal = 0;\n\t\t\tvar estimatedSaving = 0;\n\t\t\tthis.addToCartData = { totalItem: 0, items: [] };\n\t\t\tthis.$element.find(\".product-item\").each(function (i, lineItem) {\n\t\t\t\tvar $quantityInput = (0, _jquery2.default)(lineItem).find(\"[quantity-input] input\");\n\t\t\t\tvar quantity = Number.parseInt($quantityInput.val());\n\n\t\t\t\tif (quantity) {\n\t\t\t\t\tvar _lineItem$dataset = lineItem.dataset,\n\t\t\t\t\t productCode = _lineItem$dataset.productCode,\n\t\t\t\t\t total = _lineItem$dataset.total,\n\t\t\t\t\t saving = _lineItem$dataset.saving,\n\t\t\t\t\t status = _lineItem$dataset.status;\n\n\t\t\t\t\testimatedSubtotal += Number.parseFloat(total) * quantity;\n\t\t\t\t\testimatedSaving += Number.parseFloat(saving) * quantity;\n\t\t\t\t\t_this3.addToCartData.totalItem += quantity;\n\t\t\t\t\t_this3.addToCartData.items.push({\n\t\t\t\t\t\tcode: productCode,\n\t\t\t\t\t\tquantity: quantity,\n\t\t\t\t\t\tstatus: status\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tthis.$saving.text(this.printPrice(estimatedSaving));\n\t\t\tthis.$discountSaving.prop(\"hidden\", estimatedSaving == 0);\n\t\t\tthis.$subtotal.text(this.printPrice(estimatedSubtotal));\n\t\t\tthis.updateAddToCartButton();\n\t\t\tthis.actionMode({\n\t\t\t\tdetail: function detail() {\n\t\t\t\t\tif (!_this3.isElementInView(_this3.$stickyBottomPoint)) {\n\t\t\t\t\t\t(0, _jquery2.default)(_this3.$stickyBottomTarget).toggleClass(CLASS.STICKY_BOTTOM, !!_this3.addToCartData.items.length);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"updateAddToCartButton\",\n\t\tvalue: function updateAddToCartButton() {\n\t\t\tvar text = \"\" + this.options.addToCartText + (this.addToCartData.totalItem ? \" (\" + this.addToCartData.totalItem + \")\" : \"\");\n\t\t\tvar isDisabled = this.addToCartData.totalItem ? false : true;\n\t\t\tthis.$addToCart.find(\".button__label\").text(text);\n\t\t\tthis.$addToCart.toggleClass(\"disabled\", isDisabled);\n\t\t}\n\t}, {\n\t\tkey: \"created\",\n\t\tvalue: function created() {\n\t\t\tvar _this4 = this;\n\n\t\t\tthis.$element.addClass(CLASS.LOADING);\n\t\t\tthis.actionMode({\n\t\t\t\tdetail: function detail() {\n\t\t\t\t\tif (_this4.options.code) {\n\t\t\t\t\t\tvar url = _this4.options.quickOrderEndPoint + \"&code=\" + _this4.options.code;\n\t\t\t\t\t\t_this4.fetchData(url, function () {\n\t\t\t\t\t\t\treturn _this4.onAfterFirstFetchData();\n\t\t\t\t\t\t}).then(function () {\n\t\t\t\t\t\t\treturn _this4.onAfterLastFetchData();\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.bindingSlotContent();\n\t\t}\n\t}, {\n\t\tkey: \"bindingSlotContent\",\n\t\tvalue: function bindingSlotContent() {\n\t\t\t(0, _jquery2.default)(this.options.slotContent).each(function (i, element) {\n\t\t\t\tvar $closest = (0, _jquery2.default)(element.dataset.slotContent);\n\t\t\t\t$closest.html((0, _jquery2.default)(element).children());\n\t\t\t\t(0, _jquery2.default)(element).remove();\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"getDatalayer\",\n\t\tvalue: function getDatalayer() {\n\t\t\tvar _this5 = this;\n\n\t\t\tvar product = {};\n\t\t\tthis.actionMode({\n\t\t\t\tdetail: function detail() {\n\t\t\t\t\tproduct = window.datalayerDataSource;\n\t\t\t\t\tvar dataItemList = _gaServices.GAServices.getItemListName(product.item_id);\n\t\t\t\t\tproduct = Object.assign({}, product, dataItemList);\n\t\t\t\t},\n\t\t\t\tlisting: function listing() {\n\t\t\t\t\tproduct = _gaServices.GAServices.getAttributesWithPrefix((0, _jquery2.default)(_this5.$gaTrackingItem), 'ga-');\n\t\t\t\t}\n\t\t\t});\n\t\t\tvar datalayer = [];\n\t\t\tif (Object.keys(product).length) {\n\t\t\t\tthis.quantity = parseInt(product.quantity);\n\t\t\t\t_gaServices.GAServices.saveListItemsName(product);\n\t\t\t\tvar saved = ['index', 'item_list_name', 'list_category', 'list_category2', 'list_category3'];\n\t\t\t\tdatalayer = Object.fromEntries(Object.entries(product).filter(function (_ref) {\n\t\t\t\t\tvar _ref2 = _slicedToArray(_ref, 1),\n\t\t\t\t\t key = _ref2[0];\n\n\t\t\t\t\treturn saved.includes(key);\n\t\t\t\t}));\n\t\t\t}\n\n\t\t\treturn datalayer;\n\t\t}\n\t}, {\n\t\tkey: \"addToCart\",\n\t\tvalue: function addToCart() {\n\t\t\tvar _this6 = this;\n\n\t\t\tif (!this.addToCartData.items.length || this.$addToCart.hasClass(CLASS.PROGRESS)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.$addToCart.addClass(CLASS.PROGRESS);\n\t\t\tthis.$element.addClass(CLASS.LOADING_ADD_TO_CART);\n\t\t\tvar productSize = Number.parseInt(this.options.quickOrderItemPerBatchAddToCart || 50);\n\t\t\tvar paramList = [];\n\t\t\tvar convertData = function convertData(data) {\n\t\t\t\tvar maps = {\n\t\t\t\t\tindex: \"index\",\n\t\t\t\t\titem_list_name: \"itemListName\",\n\t\t\t\t\tlist_category: \"listCategory\",\n\t\t\t\t\tlist_category2: \"listCategory2\",\n\t\t\t\t\tlist_category3: \"listCategory3\"\n\t\t\t\t};\n\n\t\t\t\treturn Object.keys(maps).reduce(function (acc, key) {\n\t\t\t\t\tacc[maps[key]] = data[key];\n\t\t\t\t\treturn acc;\n\t\t\t\t}, {});\n\t\t\t};\n\n\t\t\tfor (var batch = 0; batch < this.addToCartData.items.length; batch += productSize) {\n\t\t\t\tvar items = this.addToCartData.items.slice(batch, batch + productSize);\n\t\t\t\tparamList.push(Object.assign({ items: items }, convertData(this.getDatalayer())));\n\t\t\t}\n\n\t\t\tthis.$progressBar.init({\n\t\t\t\ttotalItem: this.addToCartData.totalItem\n\t\t\t});\n\n\t\t\tthis.postAddToCartByBatch(paramList).then(this.handleCartAdditionResponse.bind(this)).finally(function () {\n\t\t\t\t_this6.$addToCart.removeClass(CLASS.PROGRESS);\n\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t_this6.$element.removeClass(CLASS.LOADING_ADD_TO_CART);\n\t\t\t\t}, 2000);\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"postAddToCartByBatch\",\n\t\tvalue: function postAddToCartByBatch() {\n\t\t\tvar paramList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n\t\t\tvar _this7 = this;\n\n\t\t\tvar index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\t\t\tvar responseData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n\n\t\t\treturn new Promise(function (resolve, reject) {\n\t\t\t\tvar param = paramList[index];\n\t\t\t\tif (param) {\n\t\t\t\t\t_this7.postAddToCart(param).then(function (res) {\n\t\t\t\t\t\tif (res.Success) {\n\t\t\t\t\t\t\t_this7.$progressBar.batchDone({\n\t\t\t\t\t\t\t\tcompletedItem: param.items.reduce(function (acc, _ref3) {\n\t\t\t\t\t\t\t\t\tvar quantity = _ref3.quantity;\n\t\t\t\t\t\t\t\t\treturn acc + quantity;\n\t\t\t\t\t\t\t\t}, 0)\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresponseData.push(res);\n\t\t\t\t\t\t_this7.postAddToCartByBatch(paramList, index + 1, responseData).then(resolve).catch(reject);\n\t\t\t\t\t}).catch(reject);\n\t\t\t\t} else {\n\t\t\t\t\tresolve(responseData);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"postAddToCart\",\n\t\tvalue: function postAddToCart(param) {\n\t\t\treturn this.fn.API.post(this.options.addToCartMultipleApiEndpoint, param);\n\t\t}\n\t}, {\n\t\tkey: \"handleCartAdditionResponse\",\n\t\tvalue: function handleCartAdditionResponse(res) {\n\t\t\tvar data = {\n\t\t\t\tAddToCartResults: res.reduce(function (acc, cur) {\n\t\t\t\t\treturn [].concat(_toConsumableArray(acc), _toConsumableArray(cur.AddToCartResults));\n\t\t\t\t}, []),\n\t\t\t\tItemsInCart: Math.max.apply(Math, _toConsumableArray(res.reduce(function (acc, cur) {\n\t\t\t\t\treturn [].concat(_toConsumableArray(acc), [cur.ItemsInCart]);\n\t\t\t\t}, []))),\n\t\t\t\tSuccess: res.reduce(function (acc, cur) {\n\t\t\t\t\treturn acc && cur.Success;\n\t\t\t\t}, true)\n\t\t\t};\n\t\t\tthis.onAfterAddToCart(data);\n\t\t}\n\t}, {\n\t\tkey: \"progressBar\",\n\t\tvalue: function progressBar() {\n\t\t\tif (this.$progressBar) return this.$progressBar;\n\n\t\t\tvar $progressBar = this.$element.find(\"[quick-order-progress-bar]\");\n\t\t\tvar $message = this.$element.find(\"[quick-order-progress-bar-message]\");\n\t\t\tvar _totalItem = 1;\n\t\t\tvar _completedItem = 0;\n\n\t\t\tvar updateView = function updateView() {\n\t\t\t\tvar width = _completedItem / _totalItem * 100 + \"%\";\n\t\t\t\t$progressBar.css({ width: width });\n\t\t\t\t$message.html(\"Add to cart (\" + _completedItem + \"/\" + _totalItem + \")\");\n\t\t\t};\n\n\t\t\treturn {\n\t\t\t\tinit: function init(_ref4) {\n\t\t\t\t\tvar _ref4$completedItem = _ref4.completedItem,\n\t\t\t\t\t completedItem = _ref4$completedItem === undefined ? 0 : _ref4$completedItem,\n\t\t\t\t\t _ref4$totalItem = _ref4.totalItem,\n\t\t\t\t\t totalItem = _ref4$totalItem === undefined ? 1 : _ref4$totalItem;\n\n\t\t\t\t\t$progressBar.css({ width: 0 });\n\t\t\t\t\t_completedItem = completedItem;\n\t\t\t\t\t_totalItem = totalItem;\n\t\t\t\t\tupdateView();\n\t\t\t\t},\n\t\t\t\tbatchDone: function batchDone(_ref5) {\n\t\t\t\t\tvar completedItem = _ref5.completedItem;\n\n\t\t\t\t\t_completedItem += completedItem;\n\t\t\t\t\tupdateView();\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t}, {\n\t\tkey: \"onAfterAddToCart\",\n\t\tvalue: function onAfterAddToCart(_ref6) {\n\t\t\tvar _this8 = this;\n\n\t\t\tvar AddToCartResults = _ref6.AddToCartResults,\n\t\t\t ItemsInCart = _ref6.ItemsInCart,\n\t\t\t Success = _ref6.Success;\n\n\t\t\tvar items = [];\n\t\t\tvar addToCartItems = this.addToCartData.items.reduce(function (acc, cur) {\n\t\t\t\tacc[cur.code] = cur;\n\t\t\t\treturn acc;\n\t\t\t}, {});\n\t\t\tvar itemsInValid = (AddToCartResults || []).filter(function (_ref7) {\n\t\t\t\tvar Code = _ref7.Code,\n\t\t\t\t ValidationMessages = _ref7.ValidationMessages,\n\t\t\t\t EntriesAddedToCart = _ref7.EntriesAddedToCart,\n\t\t\t\t ItemAddedDatalayer = _ref7.ItemAddedDatalayer;\n\n\t\t\t\tvar $lineItem = _this8.$element.find(\"[data-product-code=\\\"\" + Code + \"\\\"]\");\n\t\t\t\tvar $quantityInput = $lineItem.find(\"[quantity-input]\");\n\t\t\t\tvar $messageError = $lineItem.find(\"[data-message-error]\");\n\n\t\t\t\tif (!EntriesAddedToCart) {\n\t\t\t\t\t$messageError.text(ValidationMessages[0]);\n\t\t\t\t\t$messageError.prop(\"hidden\", false);\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\t$quantityInput[0] && $quantityInput[0].QuantityInput.reset();\n\t\t\t\t\t$messageError.prop(\"hidden\", true);\n\t\t\t\t\tvar filteredData = _gaServices.GAServices.filterEmptyData(ItemAddedDatalayer);\n\t\t\t\t\tfilteredData.quantity = addToCartItems[Code].quantity || filteredData.quantity;\n\t\t\t\t\titems.push(filteredData);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (items.length) {\n\t\t\t\tvar dataTracking = {\n\t\t\t\t\tevent: 'add_to_cart',\n\t\t\t\t\tadd_type: \"quickorder\",\n\t\t\t\t\tecommerce: {\n\t\t\t\t\t\tcurrency: (0, _jquery2.default)('body').data('currency'),\n\t\t\t\t\t\titems: items,\n\t\t\t\t\t\tvalue: ''\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tdataTracking.ecommerce.value = items.reduce(function (acc, cur) {\n\t\t\t\t\treturn acc + cur.price * cur.quantity;\n\t\t\t\t}, 0).toFixed(2);\n\t\t\t\t_gaServices.GAServices.trackingGA(dataTracking);\n\t\t\t}\n\n\t\t\tthis.$addToCart.toggleClass(CLASS.SUCCESS, Success);\n\t\t\tsetTimeout(function () {\n\t\t\t\treturn _this8.$addToCart.removeClass(CLASS.SUCCESS);\n\t\t\t}, 4000);\n\t\t\tthis.updateCartHeader(ItemsInCart);\n\t\t\tthis.$updateEventTarget.dispatchEvent(new CustomEvent(\"updateCart\", {\n\t\t\t\tbubbles: false,\n\t\t\t\tdetail: {\n\t\t\t\t\tcount: ItemsInCart\n\t\t\t\t}\n\t\t\t}));\n\n\t\t\tif (itemsInValid.length) {\n\t\t\t\tvar $messageVisible = this.$element.find(\"[data-message-error]:visible\");\n\t\t\t\t$messageVisible.length && $messageVisible[0].scrollIntoView({ behavior: \"smooth\", block: \"center\", inline: \"nearest\" });\n\t\t\t} else {\n\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t_this8.hide();\n\t\t\t\t}, 2000);\n\t\t\t}\n\n\t\t\tthis.updateFooter();\n\t\t}\n\t}, {\n\t\tkey: \"updateCartHeader\",\n\t\tvalue: function updateCartHeader(ItemsInCart) {\n\t\t\tvar $cartCount = this.$headerCartLink.find(\".count\");\n\t\t\tif ($cartCount.length) {\n\t\t\t\t$cartCount.html(ItemsInCart);\n\t\t\t} else {\n\t\t\t\t$cartCount = (0, _jquery2.default)(\"\" + ItemsInCart + \"\");\n\t\t\t\tthis.$headerCartLink.append($cartCount);\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: \"fetchData\",\n\t\tvalue: function fetchData(nextUrl, onAfterFirstFetchData) {\n\t\t\tvar _this9 = this;\n\n\t\t\treturn new Promise(function (resolve) {\n\t\t\t\t_this9.fn.API.get(nextUrl).then(function (data) {\n\t\t\t\t\tvar _quickOrderItems;\n\n\t\t\t\t\t(_quickOrderItems = _this9.quickOrderItems).push.apply(_quickOrderItems, _toConsumableArray(data.QuickOrderItems));\n\t\t\t\t\t_this9.updateView(data.QuickOrderItems);\n\t\t\t\t\tif (onAfterFirstFetchData) {\n\t\t\t\t\t\tonAfterFirstFetchData();\n\t\t\t\t\t}\n\t\t\t\t\tif (data.Next) {\n\t\t\t\t\t\t_this9.fetchData(data.Next).then(resolve);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresolve();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"onAfterFirstFetchData\",\n\t\tvalue: function onAfterFirstFetchData() {\n\t\t\tthis.updateTopContent();\n\t\t\tthis.updateOrderItems();\n\t\t\tthis.updateFooter();\n\t\t\tthis.$searchName.val('');\n\t\t\tthis.actionMode({ listing: this.show.bind(this) });\n\t\t}\n\t}, {\n\t\tkey: \"onAfterLastFetchData\",\n\t\tvalue: function onAfterLastFetchData() {\n\t\t\tthis.updateTopContent();\n\t\t\tthis.updateOrderItems();\n\t\t\tthis.$element.removeClass(CLASS.LOADING);\n\t\t}\n\t}, {\n\t\tkey: \"updateOrderItems\",\n\t\tvalue: function updateOrderItems() {\n\t\t\tvar $productCodes = this.$element.find('[data-product-code]');\n\t\t\tvar hasSortRecently = Array.from($productCodes).find(function (item) {\n\t\t\t\treturn item.dataset.sortRecently;\n\t\t\t});\n\t\t\tvar hasSortPolular = Array.from($productCodes).find(function (item) {\n\t\t\t\treturn item.dataset.sortPopular;\n\t\t\t});\n\t\t\tvar $sortRecently = this.$element.find(\"[emit-sort-by='RECENTLY']\");\n\t\t\tvar $sortPolular = this.$element.find(\"[emit-sort-by='POPULAR']\");\n\t\t\tvar $sortAsc = this.$element.find(\"[emit-sort-by='ASC']\");\n\n\t\t\t$sortRecently.toggleClass(\"is-disabled\", !hasSortRecently);\n\t\t\t$sortPolular.toggleClass(\"is-disabled\", !hasSortPolular);\n\n\t\t\tif (hasSortRecently) {\n\t\t\t\t$sortRecently.trigger(\"click\");\n\t\t\t} else {\n\t\t\t\t$sortAsc.trigger(\"click\");\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: \"updateTopContent\",\n\t\tvalue: function updateTopContent() {\n\t\t\tvar _this10 = this;\n\n\t\t\tif (this.topItem) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.topItem = this.quickOrderItems.find(function (item) {\n\t\t\t\treturn item.ProductCode === _this10.options.code;\n\t\t\t});\n\t\t\tif (this.topItem) {\n\t\t\t\tvar _getDisplayPrice = this.getDisplayPrice(this.topItem.ProductPrice || {}, this.topItem.IsInStock, {\n\t\t\t\t\tcssCurrent: \"product-price__discount\",\n\t\t\t\t\tcssPrevious: \"product-price__original\"\n\t\t\t\t}, true),\n\t\t\t\t html = _getDisplayPrice.html;\n\n\t\t\t\tthis.topItem.HtmlPrice = html;\n\t\t\t\tthis.topItem.SmallThumbnail = \"\";\n\n\t\t\t\t(0, _jquery2.default)(\"[data-quick-order-top]\").each(function (i, element) {\n\t\t\t\t\tvar quickOrderTop = element.dataset.quickOrderTop;\n\n\t\t\t\t\t(0, _jquery2.default)(element).html(_this10.topItem[quickOrderTop]);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: \"fixPrice\",\n\t\tvalue: function fixPrice(price) {\n\t\t\treturn Number(price).toFixed(2);\n\t\t}\n\t}, {\n\t\tkey: \"printPrice\",\n\t\tvalue: function printPrice(price) {\n\t\t\treturn \"$\" + this.fixPrice(price);\n\t\t}\n\t}, {\n\t\tkey: \"getDisplayPrice\",\n\t\tvalue: function getDisplayPrice(ProductPrice, IsInStock) {\n\t\t\tvar config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\t\t\tvar forceShowPrice = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\t\t\tvar HasPrice = ProductPrice.HasPrice,\n\t\t\t ShowPricesIncludingTax = ProductPrice.ShowPricesIncludingTax,\n\t\t\t DisplayPriceIncTax = ProductPrice.DisplayPriceIncTax,\n\t\t\t DisplayPrice = ProductPrice.DisplayPrice,\n\t\t\t DiscountDisplayPrice = ProductPrice.DiscountDisplayPrice;\n\t\t\tvar _config$cssCurrent = config.cssCurrent,\n\t\t\t cssCurrent = _config$cssCurrent === undefined ? \"item-current\" : _config$cssCurrent,\n\t\t\t _config$cssPrevious = config.cssPrevious,\n\t\t\t cssPrevious = _config$cssPrevious === undefined ? \"item-previous\" : _config$cssPrevious;\n\n\t\t\tvar priceHtml = [];\n\t\t\tvar price = {\n\t\t\t\thtml: \"\",\n\t\t\t\ttotal: 0,\n\t\t\t\tsaving: 0\n\t\t\t};\n\t\t\tif (IsInStock && (forceShowPrice || HasPrice)) {\n\t\t\t\tvar _tagPrice;\n\n\t\t\t\tvar displayPrice = ShowPricesIncludingTax ? DisplayPriceIncTax : DisplayPrice;\n\t\t\t\tvar priceCssClass = DiscountDisplayPrice ? cssPrevious : cssCurrent;\n\t\t\t\tvar tagPrice = (_tagPrice = {}, _defineProperty(_tagPrice, cssPrevious, \"del\"), _defineProperty(_tagPrice, cssCurrent, \"div\"), _tagPrice);\n\n\t\t\t\tif (DiscountDisplayPrice) {\n\t\t\t\t\tvar discountPrice = \"\";\n\t\t\t\t\tif (ShowPricesIncludingTax) {\n\t\t\t\t\t\tdiscountPrice = DiscountDisplayPrice.DiscountPriceIncTax || DisplayPrice;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdiscountPrice = DiscountDisplayPrice.DiscountPrice || DisplayPrice;\n\t\t\t\t\t}\n\n\t\t\t\t\tprice.total = discountPrice._amount;\n\t\t\t\t\tprice.saving = displayPrice._amount - discountPrice._amount;\n\t\t\t\t\tpriceHtml.push(\"