{"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(\"
\" + this.printPrice(discountPrice._amount) + \"
\");\n\t\t\t\t} else {\n\t\t\t\t\tprice.total = displayPrice._amount;\n\t\t\t\t}\n\n\t\t\t\tif (displayPrice._amount >= 0) {\n\t\t\t\t\tpriceHtml.push(\"<\" + tagPrice[priceCssClass] + \" class=\\\"\" + priceCssClass + \"\\\">\" + this.printPrice(displayPrice._amount) + \"\");\n\t\t\t\t}\n\n\t\t\t\tprice.html = priceHtml.join(\"\");\n\t\t\t}\n\n\t\t\treturn price;\n\t\t}\n\t}, {\n\t\tkey: \"sortBy\",\n\t\tvalue: function sortBy(type) {\n\t\t\tvar getNumberOrNull = function getNumberOrNull(name) {\n\t\t\t\treturn name.match(/\\d+(\\.\\d+)?/) ? parseFloat(name.match(/\\d+(\\.\\d+)?/)[0]) : null;\n\t\t\t};\n\t\t\tvar sortMethod = {\n\t\t\t\tASC: function ASC(a, b) {\n\t\t\t\t\tvar numA = getNumberOrNull(a.dataset.sortName);\n\t\t\t\t\tvar numB = getNumberOrNull(b.dataset.sortName);\n\t\t\t\t\tif (numA === null && numB === null) {\n\t\t\t\t\t\treturn a.dataset.sortName.localeCompare(b.dataset.sortName);\n\t\t\t\t\t} else if (numA === null) {\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t} else if (numB === null) {\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn numA - numB;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tDESC: function DESC(a, b) {\n\t\t\t\t\tvar numA = getNumberOrNull(a.dataset.sortName);\n\t\t\t\t\tvar numB = getNumberOrNull(b.dataset.sortName);\n\t\t\t\t\tif (numA === null && numB === null) {\n\t\t\t\t\t\treturn b.dataset.sortName.localeCompare(a.dataset.sortName);\n\t\t\t\t\t} else if (numA === null) {\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t} else if (numB === null) {\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn numB - numA;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tRECENTLY: function RECENTLY(a, b) {\n\t\t\t\t\tvar numA = getNumberOrNull(a.dataset.sortRecently);\n\t\t\t\t\tvar numB = getNumberOrNull(b.dataset.sortRecently);\n\t\t\t\t\treturn numB - numA;\n\t\t\t\t},\n\t\t\t\tPOPULAR: function POPULAR(a, b) {\n\t\t\t\t\tvar numA = getNumberOrNull(a.dataset.sortPopular);\n\t\t\t\t\tvar numB = getNumberOrNull(b.dataset.sortPopular);\n\t\t\t\t\treturn numB - numA;\n\t\t\t\t}\n\t\t\t};\n\t\t\tArray.from(this.$element.find('[data-product-code]')).sort(sortMethod[type]).forEach(function (item, index) {\n\t\t\t\titem.style.order = index;\n\t\t\t});\n\t\t\tthis.$scrollToTop.scrollTop(0);\n\t\t}\n\t}, {\n\t\tkey: \"updateView\",\n\t\tvalue: function updateView(quickOrderItems) {\n\t\t\tvar _this11 = this;\n\n\t\t\tthis.$lineItems.append(quickOrderItems.filter(function (item) {\n\t\t\t\treturn !(item.DisplayName || '').includes('N/A');\n\t\t\t}).map(function (quickOrderItem) {\n\t\t\t\tvar DisplayName = quickOrderItem.DisplayName,\n\t\t\t\t RecentlyOrderDate = quickOrderItem.RecentlyOrderDate,\n\t\t\t\t TotalOrdered = quickOrderItem.TotalOrdered,\n\t\t\t\t IsInStock = quickOrderItem.IsInStock,\n\t\t\t\t ColorImageUrl = quickOrderItem.ColorImageUrl,\n\t\t\t\t _quickOrderItem$Produ = quickOrderItem.ProductPrice,\n\t\t\t\t ProductPrice = _quickOrderItem$Produ === undefined ? {} : _quickOrderItem$Produ,\n\t\t\t\t ProductCode = quickOrderItem.ProductCode,\n\t\t\t\t ProductSku = quickOrderItem.ProductSku,\n\t\t\t\t ForStockistOnly = quickOrderItem.ForStockistOnly,\n\t\t\t\t ProductAvailableQuantity = quickOrderItem.ProductAvailableQuantity;\n\n\t\t\t\tvar _getDisplayPrice2 = _this11.getDisplayPrice(ProductPrice, IsInStock),\n\t\t\t\t saving = _getDisplayPrice2.saving,\n\t\t\t\t total = _getDisplayPrice2.total;\n\n\t\t\t\tvar cssOutOfStock = IsInStock ? \"\" : \"product-item--is-oos\";\n\t\t\t\tvar cssForStockistOnly = ForStockistOnly ? \"product-item--is-stockist\" : \"\";\n\t\t\t\tvar swatchColour = ColorImageUrl ? \"\" : \"\";\n\t\t\t\tvar recentyHtml = RecentlyOrderDate ? '
recently ordered
' : \"\";\n\t\t\t\tvar stockHtml = IsInStock ? \"\" : \"
\" + _this11.options.outOfStockText + \"
\";\n\t\t\t\tvar onlyStockistHtml = ForStockistOnly ? \"
\" + _this11.options.onlyStockistText + \"
\" : \"\";\n\t\t\t\tvar $lineItem = (0, _jquery2.default)(\"\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\" + swatchColour + \"\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t
\" + (DisplayName || \"\") + \"
\\n\\t\\t\\t\\t\\t\\t\\t\" + recentyHtml + \"\\n\\t\\t\\t\\t\\t\\t\\t\" + stockHtml + \"\\n\\t\\t\\t\\t\\t\\t\\t\" + onlyStockistHtml + \"\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t
\\n\\t\\t\\t\");\n\n\t\t\t\t// Quantity\n\t\t\t\tnew _quantityInput2.default($lineItem.find(\"[quantity-input]\")).init();\n\n\t\t\t\tvar $messageError = $lineItem.find(\"[data-message-error]\");\n\t\t\t\t$lineItem.find(\".quantity-input\").on(\"change\", function () {\n\t\t\t\t\t$messageError.text(\"\");\n\t\t\t\t\t$messageError.prop(\"hidden\", true);\n\t\t\t\t}).on(\"limit\", function () {\n\t\t\t\t\t$messageError.text(_this11.options.reachLimitText);\n\t\t\t\t\t$messageError.prop(\"hidden\", false);\n\t\t\t\t});\n\n\t\t\t\t// Clickable\n\t\t\t\t_this11.actionMode({\n\t\t\t\t\tdetail: function detail() {\n\t\t\t\t\t\t$lineItem.find(\".product-item__image, .product-item__infor\").on(\"click\", function () {\n\t\t\t\t\t\t\t_this11.bindingData(quickOrderItem);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn $lineItem;\n\t\t\t}));\n\t\t}\n\t}, {\n\t\tkey: \"bindingData\",\n\t\tvalue: function bindingData(item) {\n\t\t\titem.SizeSku = [item.ProductSize, \"Sku: \" + item.ProductSku].filter(function (data) {\n\t\t\t\treturn !!data;\n\t\t\t}).join(\" | \");\n\t\t\t(0, _jquery2.default)(\"[data-quick-order-binding]\").each(function (i, element) {\n\t\t\t\tvar quickOrderBinding = element.dataset.quickOrderBinding;\n\n\t\t\t\tvar beforeHeight = (0, _jquery2.default)(element).outerHeight();\n\t\t\t\t(0, _jquery2.default)(element).html(item[quickOrderBinding]);\n\t\t\t\t(0, _jquery2.default)(element).css({ height: \"auto\", transition: \"0.3s\" });\n\t\t\t\tvar afterHeight = (0, _jquery2.default)(element).outerHeight();\n\t\t\t\t(0, _jquery2.default)(element).css({ height: beforeHeight + \"px\" });\n\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t(0, _jquery2.default)(element).css({ height: afterHeight + \"px\" });\n\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t(0, _jquery2.default)(element).css({ height: \"\", transition: \"\", opacity: \"\" });\n\t\t\t\t\t}, 500);\n\t\t\t\t}, 100);\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: \"show\",\n\t\tvalue: function show() {\n\t\t\tvar _this12 = this;\n\n\t\t\tthis.$html.attr('data-scroll-top', this.$html.scrollTop());\n\t\t\tthis.$html.addClass(CLASS.SCROLL_DISABLE);\n\n\t\t\tthis.$element.addClass(\"active\");\n\t\t\tsetTimeout(function () {\n\t\t\t\t_this12.$element.addClass(\"show\");\n\t\t\t}, 100);\n\t\t}\n\t}, {\n\t\tkey: \"hide\",\n\t\tvalue: function hide() {\n\t\t\tvar _this13 = this;\n\n\t\t\tthis.$element.removeClass(\"show\");\n\t\t\tthis.$html.css({ 'scroll-behavior': 'unset' });\n\t\t\tthis.$html.removeClass(CLASS.SCROLL_DISABLE);\n\t\t\tthis.$html.scrollTop(this.$html.attr('data-scroll-top'));\n\n\t\t\tsetTimeout(function () {\n\t\t\t\t_this13.$element.removeClass(\"active\");\n\t\t\t\t_this13.$html.css({ 'scroll-behavior': '' });\n\t\t\t\t_this13.$html.removeAttr('data-scroll-top');\n\t\t\t}, 500);\n\t\t}\n\t}, {\n\t\tkey: \"isElementInView\",\n\t\tvalue: function isElementInView($element) {\n\t\t\tvar rect = $element[0].getBoundingClientRect();\n\t\t\tvar windowHeight = (0, _jquery2.default)(window).height();\n\n\t\t\treturn rect.bottom >= 0 && rect.bottom <= windowHeight;\n\t\t}\n\t}, {\n\t\tkey: \"actionMode\",\n\t\tvalue: function actionMode(_ref8) {\n\t\t\tvar _ref8$listing = _ref8.listing,\n\t\t\t listing = _ref8$listing === undefined ? function () {} : _ref8$listing,\n\t\t\t _ref8$detail = _ref8.detail,\n\t\t\t detail = _ref8$detail === undefined ? function () {} : _ref8$detail;\n\n\t\t\tif (this.$element.hasClass(\"quick-order--product-detail\")) {\n\t\t\t\tdetail();\n\t\t\t} else {\n\t\t\t\tlisting();\n\t\t\t}\n\t\t}\n\t}]);\n\n\treturn QuickOrder;\n}();\n\nQuickOrder.DEFAULTS = {\n\taddToCartMultipleApiEndpoint: (0, _jquery2.default)(\"meta[name=\\\"site.addToCartMultipleApiEndpoint\\\"]\").attr(\"content\"),\n\tnotificationElementSelector: \"[data-add-to-cart-notification]\",\n\tquickOrderEndPoint: (0, _jquery2.default)(\"meta[name=\\\"site.quickOrderEndPoint\\\"]\").attr(\"content\"),\n\tquickOrderItemPerBatchAddToCart: (0, _jquery2.default)(\"meta[name=\\\"site.quickOrderItemPerBatchAddToCart\\\"]\").attr(\"content\"),\n\ttriggerQuickOrder: \"[data-trigger-quick-order]\",\n\tcartSelector: \"[data-update-cart]\",\n\tstickyBottomTarget: \"[data-quick-order-sticky-bottom]\",\n\tstickyBottomPoint: \"[data-quick-order-sticky-bottom-point]\",\n\tscrollToTop: \"[data-scroll-to-top]\",\n\tslotContent: \"[data-slot-content]\",\n\tsearchName: \"[data-search-name]\",\n\tcloseModal: \"[close-modal]\",\n\tlineItems: \"[data-line-items]\",\n\taddToCart: \"[data-add-to-cart]\",\n\tsubtotal: \"[data-subtotal]\",\n\tsaving: \"[data-saving]\",\n\treachLimitText: \"Reach Limit\",\n\toutOfStockText: \"Out of stock\",\n\tonlyStockistText: \"Only available to stocklists\",\n\tcartLink: \"[data-cart-link]\",\n\taddToCartText: \"Add selected to cart\",\n\tpushLayerElements: \"[data-quick-order-analytics-trigger]\",\n\tdiscountSaving: \"[data-discount-saving]\"\n};\n\nexports.default = QuickOrder;\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// scripts/plugin--quick-order--6bb1accf8c6c2b7c4347.js","export default class QuantityInput {\r\n\tconstructor(element) {\r\n\t\tthis.$element = $(element);\r\n\t\tthis.$minus = this.$element.find(\".quantity-minus\");\r\n\t\tthis.$plus = this.$element.find(\".quantity-plus\");\r\n\t\tthis.$input = this.$element.find(\".quantity-input\");\r\n\t\tthis.max = Number.parseInt(this.$element.attr(\"data-max\") || 0);\r\n\t\telement[0].QuantityInput = this;\r\n\r\n\t\tthis.watch();\r\n\t}\r\n\r\n\twatch() {\r\n\t\tthis.$minus.on(\"click\", () => {\r\n\t\t\tconst _quanty = Number.parseInt(this.$input.val());\r\n\t\t\tif (_quanty) {\r\n\t\t\t\tthis.$input.val(_quanty - 1);\r\n\t\t\t\tthis.triggerEvent(this.$input);\r\n\t\t\t}\r\n\t\t\tthis.updateButtons();\r\n\t\t});\r\n\r\n\t\tthis.$plus.on(\"click\", () => {\r\n\t\t\tthis.max = Number.parseInt(this.$element.attr(\"data-max\") || 0);\r\n\t\t\tconst _quanty = Number.parseInt(this.$input.val());\r\n\t\t\tif (_quanty < this.max) {\r\n\t\t\t\tthis.$input.val(_quanty + 1);\r\n\t\t\t\tthis.triggerEvent(this.$input);\r\n\t\t\t}\r\n\t\t\tthis.updateButtons();\r\n\t\t});\r\n\r\n\t\tthis.$input.on(\"change\", () => {\r\n\t\t\tthis.updateButtons();\r\n\t\t});\r\n\t}\r\n\r\n\tinit() {\r\n\t\tif (!this.$input.val()) {\r\n\t\t\tthis.$input.val(0);\r\n\t\t}\r\n\t\tthis.$minus.addClass(\"disabled\");\r\n\t}\r\n\r\n\treset() {\r\n\t\tthis.$input.val(0);\r\n\t\tthis.updateButtons();\r\n\t}\r\n\r\n\tupdateButtons() {\r\n\t\tthis.max = Number.parseInt(this.$element.attr(\"data-max\") || 0);\r\n\t\tconst _quanty = Number.parseInt(this.$input.val() || 0);\r\n\t\tthis.$minus.removeClass(\"disabled\");\r\n\t\tthis.$plus.removeClass(\"disabled\");\r\n\r\n\t\tif (_quanty === 0) {\r\n\t\t\tthis.$minus.addClass(\"disabled\");\r\n\t\t\tthis.$input.val(0);\r\n\t\t} else if (_quanty >= this.max) {\r\n\t\t\tthis.$plus.addClass(\"disabled\");\r\n\t\t\tthis.$input.val(this.max);\r\n\t\t\tthis.$input.trigger(\"limit\");\r\n\t\t}\r\n\t}\r\n\r\n\ttriggerEvent($element) {\r\n\t\t$element.trigger(\"change\");\r\n\t}\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./client/src/core/components/quick-order/quantity-input.js","import $ from \"jquery\";\r\nimport debug from \"debug\";\r\nimport QuantityInput from \"./quantity-input\";\r\nimport { GAServices } from \"../../services/ga-services\";\r\n\r\nconst log = debug(\"quick-order-modal\");\r\nconst CLASS = {\r\n\tSUCCESS: \"is-submitted\",\r\n\tLOADING: \"is-loading\",\r\n\tPROGRESS: \"is-submitting\",\r\n\tSCROLL_DISABLE: \"u-scroll-y-disabled\",\r\n\tLOADING_ADD_TO_CART: \"is-loading-add-to-cart\",\r\n\tSTICKY_BOTTOM: \"is-sticky-bottom\",\r\n\tNOT_MATCH: \"is-not-match\",\r\n};\r\n\r\nclass QuickOrder {\r\n\tconstructor(element, options) {\r\n\t\tthis.$element = $(element);\r\n\t\tthis.options = options;\r\n\t\tthis.$html = $(\"html\");\r\n\t\tthis.initializeElements();\r\n\t\tthis.initializeState();\r\n\t\tthis.bindEvents();\r\n\t\tthis.created();\r\n\t\tlog(this);\r\n\t}\r\n\r\n\tinitializeElements() {\r\n\t\tconst opts = this.options;\r\n\t\tthis.closeModal = this.$element.find(opts.closeModal);\r\n\t\tthis.$lineItems = this.$element.find(opts.lineItems);\r\n\t\tthis.$searchName = this.$element.find(opts.searchName);\r\n\t\tthis.$subtotal = this.$element.find(opts.subtotal);\r\n\t\tthis.$saving = this.$element.find(opts.saving);\r\n\t\tthis.$addToCart = this.$element.find(opts.addToCart);\r\n\t\tthis.$notificationElement = document.querySelector(opts.notificationElementSelector);\r\n\t\tthis.$cart = document.querySelector(opts.cartSelector);\r\n\t\tthis.$updateEventTarget = this.$cart || this.$notificationElement;\r\n\t\tthis.$scrollToTop = this.$element.find(opts.scrollToTop);\r\n\t\tthis.$stickyBottomTarget = this.$element.find(opts.stickyBottomTarget);\r\n\t\tthis.$stickyBottomPoint = this.$element.find(opts.stickyBottomPoint);\r\n\t\tthis.$headerCartLink = $(this.options.cartLink);\r\n\t\tthis.$pushLayerElements = $(this.options.pushLayerElements);\r\n\t\tthis.$discountSaving = $(this.options.discountSaving);\r\n\t}\r\n\r\n\tinitializeState() {\r\n\t\tthis.addToCartData = {\r\n\t\t\titems: [],\r\n\t\t\ttotalItem: 0,\r\n\t\t};\r\n\t\tthis.quickOrderItems = [];\r\n\t\tthis.$progressBar = this.progressBar();\r\n\t\tthis.$lineItems.html(\"\");\r\n\t\tthis.$lineItems.removeClass(CLASS.NOT_MATCH);\r\n\t\tthis.topItem = null;\r\n\t}\r\n\r\n\tbindEvents() {\r\n\t\tthis.actionMode({\r\n\t\t\tlisting: () => {\r\n\t\t\t\t$(\"body\").on(\"click\", this.options.triggerQuickOrder, this.triggerQuickOrder.bind(this));\r\n\t\t\t},\r\n\t\t\tdetail: () => {\r\n\t\t\t\t$(document).on(\"scroll\", () => {\r\n\t\t\t\t\tif (this.addToCartData.items.length) {\r\n\t\t\t\t\t\t$(this.$stickyBottomTarget).toggleClass(CLASS.STICKY_BOTTOM, !this.isElementInView(this.$stickyBottomPoint));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$(this.$stickyBottomTarget).toggleClass(CLASS.STICKY_BOTTOM, false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.$element.on(\"click\", this.options.closeModal, this.hide.bind(this));\r\n\t\t$(document).on(\"click\", this.hideDropdown.bind(this));\r\n\t\tthis.$element.on(\"click\", \"[sort-by]\", this.toggleDropdown.bind(this));\r\n\t\tthis.$element.on(\"change\", this.updateFooter.bind(this));\r\n\t\tthis.$element.find(\"[emit-sort-by]\").on(\"click\", this.sortItems.bind(this));\r\n\t\tthis.$searchName.on(\"input\", this.fn.debounce(this.onSearch.bind(this), 300));\r\n\t\tthis.$addToCart.on(\"click\", this.addToCart.bind(this));\r\n\t\tthis.$element.on(\"click\", this.options.pushLayerElements, this.handleLayerElements);\r\n\t}\r\n\r\n\ttriggerQuickOrder(event) {\r\n\t\tevent.preventDefault();\r\n\t\t$(event.currentTarget).addClass(CLASS.PROGRESS);\r\n\t\tthis.options.code = event.currentTarget.dataset.triggerQuickOrder;\r\n\t\tthis.$gaTrackingItem = $(event.currentTarget).closest('[ga-tracking-item]');\r\n\t\tthis.initializeState();\r\n\t\tthis.$element.addClass(CLASS.LOADING);\r\n\t\tconst url = `${this.options.quickOrderEndPoint}&code=${this.options.code}`;\r\n\t\tthis.fetchData(url, () => {\r\n\t\t\t$(event.currentTarget).removeClass(CLASS.PROGRESS);\r\n\t\t\tthis.onAfterFirstFetchData();\r\n\t\t}).then(() => this.onAfterLastFetchData());\r\n\t\tGAServices.selectItem(event.currentTarget, false);\r\n\t}\r\n\r\n\tonSearch(event) {\r\n\t\tconst term = event.currentTarget.value.trim();\r\n\t\tconst filterValue = term.toLowerCase();\r\n\t\tconst itemMatch = Array.from(this.$lineItems.find(\"[data-filter]\")).filter((item) => {\r\n\t\t\tconst { filter, productSku } = item.dataset;\r\n\t\t\tconst isMatch = filter.toLowerCase().includes(filterValue) || productSku === filterValue;\r\n\t\t\t$(item).toggleClass(CLASS.NOT_MATCH, !isMatch);\r\n\t\t\treturn isMatch;\r\n\t\t});\r\n\r\n\t\tthis.$lineItems.toggleClass(CLASS.NOT_MATCH, !itemMatch.length);\r\n\t\tthis.updateFooter();\r\n\t\titemMatch.length && this.searchPushDataLayer(term);\r\n\t}\r\n\r\n\tsearchPushDataLayer(term) {\r\n\t\tif (term) {\r\n\t\t\twindow.dataLayer = window.dataLayer || [];\r\n\t\t\twindow.dataLayer.push({\r\n\t\t\t\tevent: \"view_search_results\",\r\n\t\t\t\tsearch_term: term,\r\n\t\t\t\tposition: \"Quick Order\",\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\thandleLayerElements(event) {\r\n\t\tconst value = $(event.currentTarget).attr(\"data-tracking\");\r\n\t\tif (value) {\r\n\t\t\tconst data = JSON.parse(value);\r\n\t\t\twindow.dataLayer = window.dataLayer || [];\r\n\t\t\twindow.dataLayer.push(data);\r\n\t\t}\r\n\t}\r\n\r\n\tsortItems(event) {\r\n\t\tthis.$element.find(\"[emit-sort-by]\").removeClass(\"active\");\r\n\t\t$(event.currentTarget).addClass(\"active\");\r\n\t\tthis.sortBy($(event.currentTarget).attr(\"emit-sort-by\"));\r\n\t}\r\n\r\n\thideDropdown() {\r\n\t\tthis.$element.find(\"[sort-by-dropdown]\").removeClass(\"show\");\r\n\t}\r\n\r\n\ttoggleDropdown(event) {\r\n\t\tevent.stopPropagation();\r\n\t\tthis.$element.find(\"[sort-by-dropdown]\").toggleClass(\"show\");\r\n\t}\r\n\r\n\tupdateFooter() {\r\n\t\tlet estimatedSubtotal = 0;\r\n\t\tlet estimatedSaving = 0;\r\n\t\tthis.addToCartData = { totalItem: 0, items: [] };\r\n\t\tthis.$element.find(\".product-item\").each((i, lineItem) => {\r\n\t\t\tconst $quantityInput = $(lineItem).find(\"[quantity-input] input\");\r\n\t\t\tconst quantity = Number.parseInt($quantityInput.val());\r\n\r\n\t\t\tif (quantity) {\r\n\t\t\t\tconst { productCode, total, saving, status } = lineItem.dataset;\r\n\t\t\t\testimatedSubtotal += Number.parseFloat(total) * quantity;\r\n\t\t\t\testimatedSaving += Number.parseFloat(saving) * quantity;\r\n\t\t\t\tthis.addToCartData.totalItem += quantity;\r\n\t\t\t\tthis.addToCartData.items.push({\r\n\t\t\t\t\tcode: productCode,\r\n\t\t\t\t\tquantity: quantity,\r\n\t\t\t\t\tstatus: status,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.$saving.text(this.printPrice(estimatedSaving));\r\n\t\tthis.$discountSaving.prop(\"hidden\", estimatedSaving == 0);\r\n\t\tthis.$subtotal.text(this.printPrice(estimatedSubtotal));\r\n\t\tthis.updateAddToCartButton();\r\n\t\tthis.actionMode({\r\n\t\t\tdetail: () => {\r\n\t\t\t\tif (!this.isElementInView(this.$stickyBottomPoint)) {\r\n\t\t\t\t\t$(this.$stickyBottomTarget).toggleClass(CLASS.STICKY_BOTTOM, !!this.addToCartData.items.length);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tupdateAddToCartButton() {\r\n\t\tconst text = `${this.options.addToCartText}${this.addToCartData.totalItem ? ` (${this.addToCartData.totalItem})` : \"\"}`;\r\n\t\tconst isDisabled = this.addToCartData.totalItem ? false : true;\r\n\t\tthis.$addToCart.find(\".button__label\").text(text);\r\n\t\tthis.$addToCart.toggleClass(\"disabled\", isDisabled);\r\n\t}\r\n\r\n\tcreated() {\r\n\t\tthis.$element.addClass(CLASS.LOADING);\r\n\t\tthis.actionMode({\r\n\t\t\tdetail: () => {\r\n\t\t\t\tif (this.options.code) {\r\n\t\t\t\t\tconst url = `${this.options.quickOrderEndPoint}&code=${this.options.code}`;\r\n\t\t\t\t\tthis.fetchData(url, () => this.onAfterFirstFetchData())\r\n\t\t\t\t\t\t.then(() => this.onAfterLastFetchData());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.bindingSlotContent();\r\n\t}\r\n\r\n\tbindingSlotContent() {\r\n\t\t$(this.options.slotContent).each((i, element) => {\r\n\t\t\tconst $closest = $(element.dataset.slotContent);\r\n\t\t\t$closest.html($(element).children());\r\n\t\t\t$(element).remove();\r\n\t\t});\r\n\t}\r\n\r\n\tgetDatalayer() {\r\n\t\tlet product = {};\r\n\t\tthis.actionMode({\r\n\t\t\tdetail: () => {\r\n\t\t\t\tproduct = window.datalayerDataSource;\r\n\t\t\t\tconst dataItemList = GAServices.getItemListName(product.item_id);\r\n\t\t\t\tproduct = Object.assign({}, product, dataItemList);\r\n\t\t\t},\r\n\t\t\tlisting: () => {\r\n\t\t\t\tproduct = GAServices.getAttributesWithPrefix($(this.$gaTrackingItem), 'ga-');\r\n\t\t\t}\r\n\t\t});\r\n\t\tlet datalayer = [];\r\n\t\tif (Object.keys(product).length) {\r\n\t\t\tthis.quantity = parseInt(product.quantity);\r\n\t\t\tGAServices.saveListItemsName(product);\r\n\t\t\tconst saved = ['index', 'item_list_name', 'list_category', 'list_category2', 'list_category3'];\r\n\t\t\tdatalayer = Object.fromEntries(\r\n\t\t\t\tObject.entries(product).filter(([key]) => saved.includes(key))\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn datalayer;\r\n\t}\r\n\r\n\taddToCart() {\r\n\t\tif (!this.addToCartData.items.length || this.$addToCart.hasClass(CLASS.PROGRESS)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.$addToCart.addClass(CLASS.PROGRESS);\r\n\t\tthis.$element.addClass(CLASS.LOADING_ADD_TO_CART);\r\n\t\tconst productSize = Number.parseInt(this.options.quickOrderItemPerBatchAddToCart || 50);\r\n\t\tconst paramList = [];\r\n\t\tconst convertData = (data) => {\r\n\t\t\tconst maps = {\r\n\t\t\t\tindex: \"index\",\r\n\t\t\t\titem_list_name: \"itemListName\",\r\n\t\t\t\tlist_category: \"listCategory\",\r\n\t\t\t\tlist_category2: \"listCategory2\",\r\n\t\t\t\tlist_category3: \"listCategory3\",\r\n\t\t\t};\r\n\r\n\t\t\treturn Object.keys(maps).reduce((acc, key) => {\r\n\t\t\t\tacc[maps[key]] = data[key];\r\n\t\t\t\treturn acc;\r\n\t\t\t}, {});\r\n\t\t};\r\n\r\n\t\tfor (let batch = 0; batch < this.addToCartData.items.length; batch += productSize) {\r\n\t\t\tconst items = this.addToCartData.items.slice(batch, batch + productSize);\r\n\t\t\tparamList.push(Object.assign({ items }, convertData(this.getDatalayer())));\r\n\t\t}\r\n\r\n\t\tthis.$progressBar.init({\r\n\t\t\ttotalItem: this.addToCartData.totalItem,\r\n\t\t});\r\n\r\n\t\tthis.postAddToCartByBatch(paramList)\r\n\t\t\t.then(this.handleCartAdditionResponse.bind(this))\r\n\t\t\t.finally(() => {\r\n\t\t\t\tthis.$addToCart.removeClass(CLASS.PROGRESS);\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.$element.removeClass(CLASS.LOADING_ADD_TO_CART);\r\n\t\t\t\t}, 2000);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpostAddToCartByBatch(paramList = [], index = 0, responseData = []) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\tconst param = paramList[index];\r\n\t\t\tif (param) {\r\n\t\t\t\tthis.postAddToCart(param).then((res) => {\r\n\t\t\t\t\tif (res.Success) {\r\n\t\t\t\t\t\tthis.$progressBar.batchDone({\r\n\t\t\t\t\t\t\tcompletedItem: param.items.reduce((acc, { quantity }) => acc + quantity, 0)\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresponseData.push(res);\r\n\t\t\t\t\tthis.postAddToCartByBatch(paramList, index + 1, responseData)\r\n\t\t\t\t\t\t.then(resolve)\r\n\t\t\t\t\t\t.catch(reject);\r\n\t\t\t\t}).catch(reject);\r\n\t\t\t} else {\r\n\t\t\t\tresolve(responseData);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tpostAddToCart(param) {\r\n\t\treturn this.fn.API.post(this.options.addToCartMultipleApiEndpoint, param);\r\n\t}\r\n\r\n\thandleCartAdditionResponse(res) {\r\n\t\tconst data = {\r\n\t\t\tAddToCartResults: res.reduce((acc, cur) => [...acc, ...cur.AddToCartResults], []),\r\n\t\t\tItemsInCart: Math.max(...res.reduce((acc, cur) => [...acc, cur.ItemsInCart], [])),\r\n\t\t\tSuccess: res.reduce((acc, cur) => acc && cur.Success, true)\r\n\t\t};\r\n\t\tthis.onAfterAddToCart(data);\r\n\t}\r\n\r\n\tprogressBar() {\r\n\t\tif (this.$progressBar) return this.$progressBar;\r\n\r\n\t\tconst $progressBar = this.$element.find(\"[quick-order-progress-bar]\");\r\n\t\tconst $message = this.$element.find(\"[quick-order-progress-bar-message]\");\r\n\t\tlet _totalItem = 1;\r\n\t\tlet _completedItem = 0;\r\n\r\n\t\tconst updateView = () => {\r\n\t\t\tconst width = `${_completedItem / _totalItem * 100}%`;\r\n\t\t\t$progressBar.css({ width });\r\n\t\t\t$message.html(`Add to cart (${_completedItem}/${_totalItem})`);\r\n\t\t};\r\n\r\n\t\treturn {\r\n\t\t\tinit({ completedItem = 0, totalItem = 1 }) {\r\n\t\t\t\t$progressBar.css({ width: 0 });\r\n\t\t\t\t_completedItem = completedItem;\r\n\t\t\t\t_totalItem = totalItem;\r\n\t\t\t\tupdateView();\r\n\t\t\t},\r\n\t\t\tbatchDone({ completedItem }) {\r\n\t\t\t\t_completedItem += completedItem;\r\n\t\t\t\tupdateView();\r\n\t\t\t},\r\n\t\t};\r\n\t}\r\n\r\n\tonAfterAddToCart({ AddToCartResults, ItemsInCart, Success }) {\r\n\t\tconst items = [];\r\n\t\tconst addToCartItems = this.addToCartData.items.reduce((acc, cur) => {\r\n\t\t\tacc[cur.code] = cur;\r\n\t\t\treturn acc;\r\n\t\t}, {});\r\n\t\tconst itemsInValid = (AddToCartResults || []).filter(({ Code, ValidationMessages, EntriesAddedToCart, ItemAddedDatalayer }) => {\r\n\t\t\tconst $lineItem = this.$element.find(`[data-product-code=\"${Code}\"]`);\r\n\t\t\tconst $quantityInput = $lineItem.find(\"[quantity-input]\");\r\n\t\t\tconst $messageError = $lineItem.find(\"[data-message-error]\");\r\n\r\n\t\t\tif (!EntriesAddedToCart) {\r\n\t\t\t\t$messageError.text(ValidationMessages[0]);\r\n\t\t\t\t$messageError.prop(\"hidden\", false);\r\n\t\t\t\treturn true;\r\n\r\n\t\t\t} else {\r\n\t\t\t\t$quantityInput[0] && $quantityInput[0].QuantityInput.reset();\r\n\t\t\t\t$messageError.prop(\"hidden\", true);\r\n\t\t\t\tconst filteredData = GAServices.filterEmptyData(ItemAddedDatalayer);\r\n\t\t\t\tfilteredData.quantity = addToCartItems[Code].quantity || filteredData.quantity;\r\n\t\t\t\titems.push(filteredData);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tif (items.length) {\r\n\t\t\tconst dataTracking = {\r\n\t\t\t\tevent: 'add_to_cart',\r\n\t\t\t\tadd_type: \"quickorder\",\r\n\t\t\t\tecommerce: {\r\n\t\t\t\t\tcurrency: $('body').data('currency'),\r\n\t\t\t\t\titems,\r\n\t\t\t\t\tvalue: '',\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tdataTracking.ecommerce.value = items.reduce((acc, cur) => acc + cur.price * cur.quantity, 0).toFixed(2);\r\n\t\t\tGAServices.trackingGA(dataTracking);\r\n\t\t}\r\n\r\n\t\tthis.$addToCart.toggleClass(CLASS.SUCCESS, Success);\r\n\t\tsetTimeout(() => this.$addToCart.removeClass(CLASS.SUCCESS), 4000);\r\n\t\tthis.updateCartHeader(ItemsInCart);\r\n\t\tthis.$updateEventTarget.dispatchEvent(\r\n\t\t\tnew CustomEvent(\"updateCart\", {\r\n\t\t\t\tbubbles: false,\r\n\t\t\t\tdetail: {\r\n\t\t\t\t\tcount: ItemsInCart,\r\n\t\t\t\t},\r\n\t\t\t})\r\n\t\t);\r\n\r\n\t\tif (itemsInValid.length) {\r\n\t\t\tconst $messageVisible = this.$element.find(\"[data-message-error]:visible\");\r\n\t\t\t$messageVisible.length && $messageVisible[0].scrollIntoView({ behavior: \"smooth\", block: \"center\", inline: \"nearest\" });\r\n\t\t} else {\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tthis.hide();\r\n\t\t\t}, 2000);\r\n\t\t}\r\n\r\n\t\tthis.updateFooter();\r\n\t}\r\n\r\n\tupdateCartHeader(ItemsInCart) {\r\n\t\tlet $cartCount = this.$headerCartLink.find(\".count\");\r\n\t\tif ($cartCount.length) {\r\n\t\t\t$cartCount.html(ItemsInCart);\r\n\t\t} else {\r\n\t\t\t$cartCount = $(`${ItemsInCart}`);\r\n\t\t\tthis.$headerCartLink.append($cartCount);\r\n\t\t}\r\n\t}\r\n\r\n\tfetchData(nextUrl, onAfterFirstFetchData) {\r\n\t\treturn new Promise((resolve) => {\r\n\t\t\tthis.fn.API.get(nextUrl).then((data) => {\r\n\t\t\t\tthis.quickOrderItems.push(...data.QuickOrderItems);\r\n\t\t\t\tthis.updateView(data.QuickOrderItems);\r\n\t\t\t\tif (onAfterFirstFetchData) {\r\n\t\t\t\t\tonAfterFirstFetchData();\r\n\t\t\t\t}\r\n\t\t\t\tif (data.Next) {\r\n\t\t\t\t\tthis.fetchData(data.Next).then(resolve);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresolve();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tonAfterFirstFetchData() {\r\n\t\tthis.updateTopContent();\r\n\t\tthis.updateOrderItems();\r\n\t\tthis.updateFooter();\r\n\t\tthis.$searchName.val('');\r\n\t\tthis.actionMode({ listing: this.show.bind(this) });\r\n\t}\r\n\r\n\tonAfterLastFetchData() {\r\n\t\tthis.updateTopContent();\r\n\t\tthis.updateOrderItems();\r\n\t\tthis.$element.removeClass(CLASS.LOADING);\r\n\t}\r\n\r\n\tupdateOrderItems() {\r\n\t\tconst $productCodes = this.$element.find('[data-product-code]');\r\n\t\tconst hasSortRecently = Array.from($productCodes).find(item => item.dataset.sortRecently);\r\n\t\tconst hasSortPolular = Array.from($productCodes).find(item => item.dataset.sortPopular);\r\n\t\tconst $sortRecently = this.$element.find(\"[emit-sort-by='RECENTLY']\");\r\n\t\tconst $sortPolular = this.$element.find(\"[emit-sort-by='POPULAR']\");\r\n\t\tconst $sortAsc = this.$element.find(\"[emit-sort-by='ASC']\");\r\n\r\n\t\t$sortRecently.toggleClass(\"is-disabled\", !hasSortRecently);\r\n\t\t$sortPolular.toggleClass(\"is-disabled\", !hasSortPolular);\r\n\r\n\t\tif (hasSortRecently) {\r\n\t\t\t$sortRecently.trigger(\"click\");\r\n\t\t} else {\r\n\t\t\t$sortAsc.trigger(\"click\");\r\n\t\t}\r\n\t}\r\n\r\n\tupdateTopContent() {\r\n\t\tif (this.topItem) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.topItem = this.quickOrderItems.find((item) => item.ProductCode === this.options.code);\r\n\t\tif (this.topItem) {\r\n\t\t\tconst { html } = this.getDisplayPrice(\r\n\t\t\t\tthis.topItem.ProductPrice || {},\r\n\t\t\t\tthis.topItem.IsInStock,\r\n\t\t\t\t{\r\n\t\t\t\t\tcssCurrent: \"product-price__discount\",\r\n\t\t\t\t\tcssPrevious: \"product-price__original\",\r\n\t\t\t\t},\r\n\t\t\t\ttrue\r\n\t\t\t);\r\n\t\t\tthis.topItem.HtmlPrice = html;\r\n\t\t\tthis.topItem.SmallThumbnail = `${this.topItem.TeaserImage.AltTag}`;\r\n\r\n\t\t\t$(\"[data-quick-order-top]\").each((i, element) => {\r\n\t\t\t\tconst { quickOrderTop } = element.dataset;\r\n\t\t\t\t$(element).html(this.topItem[quickOrderTop]);\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tfixPrice(price) {\r\n\t\treturn Number(price).toFixed(2);\r\n\t}\r\n\r\n\tprintPrice(price) {\r\n\t\treturn `$${this.fixPrice(price)}`;\r\n\t}\r\n\r\n\tgetDisplayPrice(ProductPrice, IsInStock, config = {}, forceShowPrice = false) {\r\n\t\tconst {\r\n\t\t\tHasPrice,\r\n\t\t\tShowPricesIncludingTax,\r\n\t\t\tDisplayPriceIncTax,\r\n\t\t\tDisplayPrice,\r\n\t\t\tDiscountDisplayPrice\r\n\t\t} = ProductPrice;\r\n\t\tconst {\r\n\t\t\tcssCurrent = \"item-current\",\r\n\t\t\tcssPrevious = \"item-previous\"\r\n\t\t} = config;\r\n\t\tconst priceHtml = [];\r\n\t\tconst price = {\r\n\t\t\thtml: \"\",\r\n\t\t\ttotal: 0,\r\n\t\t\tsaving: 0,\r\n\t\t};\r\n\t\tif (IsInStock && (forceShowPrice || HasPrice)) {\r\n\t\t\tconst displayPrice = ShowPricesIncludingTax ? DisplayPriceIncTax : DisplayPrice;\r\n\t\t\tconst priceCssClass = DiscountDisplayPrice ? cssPrevious : cssCurrent;\r\n\t\t\tconst tagPrice = {\r\n\t\t\t\t[cssPrevious]: \"del\",\r\n\t\t\t\t[cssCurrent]: \"div\"\r\n\t\t\t};\r\n\r\n\t\t\tif (DiscountDisplayPrice) {\r\n\t\t\t\tlet discountPrice = \"\";\r\n\t\t\t\tif (ShowPricesIncludingTax) {\r\n\t\t\t\t\tdiscountPrice = DiscountDisplayPrice.DiscountPriceIncTax || DisplayPrice;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdiscountPrice = DiscountDisplayPrice.DiscountPrice || DisplayPrice;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tprice.total = discountPrice._amount;\r\n\t\t\t\tprice.saving = displayPrice._amount - discountPrice._amount;\r\n\t\t\t\tpriceHtml.push(`
${this.printPrice(discountPrice._amount)}
`);\r\n\t\t\t} else {\r\n\t\t\t\tprice.total = displayPrice._amount;\r\n\t\t\t}\r\n\r\n\t\t\tif (displayPrice._amount >= 0) {\r\n\t\t\t\tpriceHtml.push(`<${tagPrice[priceCssClass]} class=\"${priceCssClass}\">${this.printPrice(displayPrice._amount)}`);\r\n\t\t\t}\r\n\r\n\t\t\tprice.html = priceHtml.join(\"\");\r\n\t\t}\r\n\r\n\t\treturn price;\r\n\r\n\t}\r\n\r\n\tsortBy(type) {\r\n\t\tconst getNumberOrNull = (name) => name.match(/\\d+(\\.\\d+)?/) ? parseFloat(name.match(/\\d+(\\.\\d+)?/)[0]) : null;\r\n\t\tconst sortMethod = {\r\n\t\t\tASC: (a, b) => {\r\n\t\t\t\tconst numA = getNumberOrNull(a.dataset.sortName);\r\n\t\t\t\tconst numB = getNumberOrNull(b.dataset.sortName);\r\n\t\t\t\tif (numA === null && numB === null) {\r\n\t\t\t\t\treturn a.dataset.sortName.localeCompare(b.dataset.sortName);\r\n\t\t\t\t} else if (numA === null) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else if (numB === null) {\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn numA - numB;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tDESC: (a, b) => {\r\n\t\t\t\tconst numA = getNumberOrNull(a.dataset.sortName);\r\n\t\t\t\tconst numB = getNumberOrNull(b.dataset.sortName);\r\n\t\t\t\tif (numA === null && numB === null) {\r\n\t\t\t\t\treturn b.dataset.sortName.localeCompare(a.dataset.sortName);\r\n\t\t\t\t} else if (numA === null) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else if (numB === null) {\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn numB - numA;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tRECENTLY: (a, b) => {\r\n\t\t\t\tconst numA = getNumberOrNull(a.dataset.sortRecently);\r\n\t\t\t\tconst numB = getNumberOrNull(b.dataset.sortRecently);\r\n\t\t\t\treturn numB - numA;\r\n\t\t\t},\r\n\t\t\tPOPULAR: (a, b) => {\r\n\t\t\t\tconst numA = getNumberOrNull(a.dataset.sortPopular);\r\n\t\t\t\tconst numB = getNumberOrNull(b.dataset.sortPopular);\r\n\t\t\t\treturn numB - numA;\r\n\t\t\t}\r\n\t\t};\r\n\t\tArray.from(this.$element.find('[data-product-code]'))\r\n\t\t\t.sort(sortMethod[type])\r\n\t\t\t.forEach((item, index) => {\r\n\t\t\t\titem.style.order = index;\r\n\t\t\t});\r\n\t\tthis.$scrollToTop.scrollTop(0);\r\n\t}\r\n\r\n\tupdateView(quickOrderItems) {\r\n\t\tthis.$lineItems.append(quickOrderItems.filter((item) => !(item.DisplayName || '').includes('N/A')).map((quickOrderItem) => {\r\n\t\t\tconst {\r\n\t\t\t\tDisplayName,\r\n\t\t\t\tRecentlyOrderDate,\r\n\t\t\t\tTotalOrdered,\r\n\t\t\t\tIsInStock,\r\n\t\t\t\tColorImageUrl,\r\n\t\t\t\tProductPrice = {},\r\n\t\t\t\tProductCode,\r\n\t\t\t\tProductSku,\r\n\t\t\t\tForStockistOnly,\r\n\t\t\t\tProductAvailableQuantity } = quickOrderItem;\r\n\t\t\tconst { saving, total } = this.getDisplayPrice(ProductPrice, IsInStock);\r\n\t\t\tconst cssOutOfStock = IsInStock ? \"\" : \"product-item--is-oos\";\r\n\t\t\tconst cssForStockistOnly = ForStockistOnly ? \"product-item--is-stockist\" : \"\";\r\n\t\t\tconst swatchColour = ColorImageUrl ? `` : \"\";\r\n\t\t\tconst recentyHtml = RecentlyOrderDate ? '
recently ordered
' : \"\";\r\n\t\t\tconst stockHtml = IsInStock ? \"\" : `
${this.options.outOfStockText}
`;\r\n\t\t\tconst onlyStockistHtml = ForStockistOnly ? `
${this.options.onlyStockistText}
` : \"\";\r\n\t\t\tconst $lineItem = $(`\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t${swatchColour}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
${DisplayName || \"\"}
\r\n\t\t\t\t\t\t\t${recentyHtml}\r\n\t\t\t\t\t\t\t${stockHtml}\r\n\t\t\t\t\t\t\t${onlyStockistHtml}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t`);\r\n\r\n\t\t\t// Quantity\r\n\t\t\t(new QuantityInput($lineItem.find(\"[quantity-input]\"))).init();\r\n\r\n\t\t\tconst $messageError = $lineItem.find(\"[data-message-error]\");\r\n\t\t\t$lineItem.find(\".quantity-input\")\r\n\t\t\t\t.on(\"change\", () => {\r\n\t\t\t\t\t$messageError.text(\"\");\r\n\t\t\t\t\t$messageError.prop(\"hidden\", true);\r\n\t\t\t\t})\r\n\t\t\t\t.on(\"limit\", () => {\r\n\t\t\t\t\t$messageError.text(this.options.reachLimitText);\r\n\t\t\t\t\t$messageError.prop(\"hidden\", false);\r\n\t\t\t\t});\r\n\r\n\t\t\t// Clickable\r\n\t\t\tthis.actionMode({\r\n\t\t\t\tdetail: () => {\r\n\t\t\t\t\t$lineItem.find(\".product-item__image, .product-item__infor\").on(\"click\", () => {\r\n\t\t\t\t\t\tthis.bindingData(quickOrderItem);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\treturn $lineItem;\r\n\t\t}));\r\n\t}\r\n\r\n\tbindingData(item) {\r\n\t\titem.SizeSku = [item.ProductSize, `Sku: ${item.ProductSku}`].filter(data => !!data).join(\" | \");\r\n\t\t$(\"[data-quick-order-binding]\").each((i, element) => {\r\n\t\t\tconst { quickOrderBinding } = element.dataset;\r\n\t\t\tconst beforeHeight = $(element).outerHeight();\r\n\t\t\t$(element).html(item[quickOrderBinding]);\r\n\t\t\t$(element).css({ height: \"auto\", transition: \"0.3s\" });\r\n\t\t\tconst afterHeight = $(element).outerHeight();\r\n\t\t\t$(element).css({ height: beforeHeight + \"px\" });\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\t$(element).css({ height: afterHeight + \"px\" });\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t$(element).css({ height: \"\", transition: \"\", opacity: \"\" });\r\n\t\t\t\t}, 500);\r\n\t\t\t}, 100);\r\n\t\t});\r\n\t}\r\n\r\n\tshow() {\r\n\t\tthis.$html.attr('data-scroll-top', this.$html.scrollTop());\r\n\t\tthis.$html.addClass(CLASS.SCROLL_DISABLE);\r\n\r\n\t\tthis.$element.addClass(\"active\");\r\n\t\tsetTimeout(() => {\r\n\t\t\tthis.$element.addClass(\"show\");\r\n\t\t}, 100);\r\n\t}\r\n\r\n\thide() {\r\n\t\tthis.$element.removeClass(\"show\");\r\n\t\tthis.$html.css({ 'scroll-behavior': 'unset'});\r\n\t\tthis.$html.removeClass(CLASS.SCROLL_DISABLE);\r\n\t\tthis.$html.scrollTop(this.$html.attr('data-scroll-top'));\r\n\r\n\t\tsetTimeout(() => {\r\n\t\t\tthis.$element.removeClass(\"active\");\r\n\t\t\tthis.$html.css({ 'scroll-behavior': ''});\r\n\t\t\tthis.$html.removeAttr('data-scroll-top');\r\n\t\t}, 500);\r\n\t}\r\n\r\n\tisElementInView($element) {\r\n\t\tconst rect = $element[0].getBoundingClientRect();\r\n\t\tconst windowHeight = $(window).height();\r\n\r\n\t\treturn rect.bottom >= 0 && rect.bottom <= windowHeight;\r\n\t};\r\n\r\n\tactionMode({ listing = () => { }, detail = () => { } }) {\r\n\t\tif (this.$element.hasClass(\"quick-order--product-detail\")) {\r\n\t\t\tdetail();\r\n\t\t} else {\r\n\t\t\tlisting();\r\n\t\t}\r\n\t}\r\n}\r\n\r\nQuickOrder.DEFAULTS = {\r\n\taddToCartMultipleApiEndpoint: $(`meta[name=\"site.addToCartMultipleApiEndpoint\"]`).attr(\"content\"),\r\n\tnotificationElementSelector: \"[data-add-to-cart-notification]\",\r\n\tquickOrderEndPoint: $(`meta[name=\"site.quickOrderEndPoint\"]`).attr(\"content\"),\r\n\tquickOrderItemPerBatchAddToCart: $(`meta[name=\"site.quickOrderItemPerBatchAddToCart\"]`).attr(\"content\"),\r\n\ttriggerQuickOrder: \"[data-trigger-quick-order]\",\r\n\tcartSelector: \"[data-update-cart]\",\r\n\tstickyBottomTarget: \"[data-quick-order-sticky-bottom]\",\r\n\tstickyBottomPoint: \"[data-quick-order-sticky-bottom-point]\",\r\n\tscrollToTop: \"[data-scroll-to-top]\",\r\n\tslotContent: \"[data-slot-content]\",\r\n\tsearchName: \"[data-search-name]\",\r\n\tcloseModal: \"[close-modal]\",\r\n\tlineItems: \"[data-line-items]\",\r\n\taddToCart: \"[data-add-to-cart]\",\r\n\tsubtotal: \"[data-subtotal]\",\r\n\tsaving: \"[data-saving]\",\r\n\treachLimitText: \"Reach Limit\",\r\n\toutOfStockText: \"Out of stock\",\r\n\tonlyStockistText: \"Only available to stocklists\",\r\n\tcartLink: \"[data-cart-link]\",\r\n\taddToCartText: \"Add selected to cart\",\r\n\tpushLayerElements: \"[data-quick-order-analytics-trigger]\",\r\n\tdiscountSaving: \"[data-discount-saving]\",\r\n};\r\n\r\nexport default QuickOrder;\r\n\n\n\n// WEBPACK FOOTER //\n// ./client/src/core/components/quick-order/quick-order.js"],"sourceRoot":""}