{"version":3,"sources":["node_modules/tslib/tslib.es6.js","src/js/api.ts","src/js/ga4.ts","src/js/cart/cart.ts","src/js/cart/main.ts"],"names":["Number","isInteger","parseFloat","parseInt","__awaiter","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","__generator","body","verb","n","v","op","f","TypeError","g","_","y","t","call","label","ops","pop","trys","length","push","sent","Symbol","iterator","__values","o","s","m","i","__read","r","ar","error","__spreadArray","to","from","pack","arguments","l","Array","prototype","slice","concat","__assign","Object","assign","p","hasOwnProperty","API","_a","viewState","viewStateGenerator","viewStateEncrypted","cartItems","basketId","toString","productId","quantity","isNaN","fetch","response","_b","status","text","console","ajaxResponse","processAjaxResponse","Error","itemId","extensionsGroups","_c","extensions","_d","extensionsGroupsSplited","split","encodeURIComponent","extensionGroup","extensionValue","_e","match","curyIdRegex","curyTotMerchRegex","user6Regex","basketIdRegex","alternateIdRegex","invtIdRegex","itemIdRegex","listPriceRegex","salePriceRegex","quantitiesRegex","basketIds","alternateIds","invtIds","itemIds","listPrices","salePrices","quantities","exec","curyIdMatch","curyTotMerchMatch","user6Match","curyId","curyTotMerch","user6","newCartItems","alternateId","invtId","listPrice","salePrice","alert","currency","subtotal","subtotalPoints","GA4Utils","items","dataLayer","window","reduce","acc","item","price","ecommerce","event","event_value","event_items","map","id","item_id","google_business_vertical","mainItem","name","item_name","category","item_category","CartPage","bindElementHandlers","checkHTML","$","on","unorderedListElem","target","closest","itemPosition","dataset","position","basketid","pricePoints","pricepoints","quantityInput","document","getElementById","querySelector","oldValue","operation","newValue","QUANTITY_TOO_HIGH","onClickDeleteProduct","onUpdateQuantity","oldvalue","floatValue","QUANTITY_NOT_INTEGER","querySelectorAll","forEach","elem","readOnly","disabled","clearTimeout","timeout","setTimeout","log","TIME_TO_SAVE_AFTER_INPUT","oldBasketId","oldbasketid","itemid","invtid","extensiongroups","selectedextensions","onClickUndoRemoval","loading","formData","FormData","get","getAll","productIds","updateItemQuantity","toggleLoading","updateCartQuantities","err_1","currencySymbol","updateItemTotal","updateCartTotals","saveCartInSalesforce","location","reload","unorderedListElemInHeader","deleteItemFromCart","err_2","classList","add","setAttribute","removeAttribute","getAttribute","filter","style","display","oldQuantity","ga4Items","GA4Items","ga4Item","trackRemoveFromCartEvent","oldCartItemsCount","extensionsSplited","extensionsArray","toggleDeleted","addOneItemToCart","err_3","addedItemIndex","findIndex","trackAddToCartEvent","checkoutButton","checkoutButtonInHeader","viewBagButton","checkoutButtonInHeaderHref","href","viewBagButtonHref","remove","toggle","quantitySpanInHeader","bubbleCountSpanElem","newBubbleCount","innerHTML","totalElem","totalPointsElem","toFixed","toLocaleString","minimumFractionDigits","maximumFractionDigits","subtotalElem","subtotalHeaderElem","subtotalPointsElem","subtotalPointsHeaderElem","cartTotalElem","cartTotalHeaderElem","discountElem","discountHeaderElem","totalHeaderElem","cartPointsSubtotalElem","cartPointsSubtotalHeaderElem","isBMSMPromoActive","newDiscount","promoProps","discount","subtotalNumber","promoTiersLenght","promoTiers","minTotal","dollarOff","cartTotalString","discountString","totalString","hide","show","SalesforceAbandonedCartUtils","cartOrOrderData","cartItem","trim","sale_price","unique_id","trackCart","message","_i","optionalParams","isDevEnvironment","elementsIds","elementsSelectors","elementsIds_1","selector","elementsSelectors_1","onPageLoad"],"mappings":"oMAAA;;AAEA;;;AAGA;;;;;;;;oFALA,MCgPiBA,MAAM,CAACC,SAAS,GAACD,MAAM,CAACE,UAAU,GA7LtBF,MAAM,CAACG,QAAQ,CDkBrC,QAASC,EAAS,CAACC,CAAO,CAAEC,CAAU,CAAEC,CAAC,CAAEC,CAAS,CAAE,CACzD,QAASC,EAAK,CAACC,CAAK,CAAE,CAAE,MAAOA,EAAK,WAAYH,EAAC,CAAGG,CAAK,CAAG,GAAIH,EAAC,CAAC,SAAUI,CAAO,CAAE,CAAEA,CAAO,CAACD,CAAK,EAAI,EACxG,MAAO,KAAKH,CAAC,GAAKA,CAAC,CAAGK,OAAO,CAAC,E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ACb,cAAc,CACd,YAAY,CACZ,WAAW,CACX,SAAS,CACT,oBAAoB,CACpB,0BAA0B,CAC1B,CAEKC,CAAiB,CAAG,CACzB,wBAAwB,CACxB,0BAA0B,CAC1B,KAED,IAAiB,GAANpJ,EAAE,CAAIqJ,EAAA3P,EAAAyP,CAAW,CAAA,WAAA,oBAAjBnJ,CAAE,QAAA,CACPuB,QAAQ,CAACC,cAAc,CAACxB,CAAE,CAAC,EAC/B9D,OAAO,CAAChC,KAAK,CAAC,qBAAa8F,CAAE,iBAAc,0GAI7C,IAAuB,GAAZsJ,EAAQ,CAAIC,EAAA7P,EAAA0P,CAAiB,CAAA,WAAA,oBAA7BE,CAAQ,QAAA,CACb/H,QAAQ,CAACE,aAAa,CAAC6H,CAAQ,CAAC,EACpCpN,OAAO,CAAChC,KAAK,CAAC,oBAAYoP,CAAQ,iBAAc,uGAGlD,CAj9Bc9I,sBAAoB,CAAG,8BAA8B,CACrDA,mBAAiB,CAAG,iCAAiC,CACrDA,0BAAwB,CAAG,GAAI,CAGvCA,kBAAgB,GAAiB,CACjCA,mBAAiB,GAAiB,CAmClCA,SAAO,GAAiB,GA3ChC,GCAClB,MAAc,CAACkB,QAAQ,CAAGA,CAAQ,CAClClB,MAAc,CAACpE,GAAG,CAAGA,CAAG,CACxBoE,MAAc,CAAC2F,QAAQ,CAAG,EAAE,CAE7BtE,CAAC,CAAC,WAAM,MAAAH,EAAQ,CAACgJ,UAAU,GAAE","file":"../cart.min.js","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","export type CartResponse = {\n basketIds: string[]\n currency: string\n subtotal: string\n subtotalPoints: string\n newCartItems: CartItem[]\n}\n\nexport type CartItem = {\n basketId: string\n invtId: string\n itemId: string\n alternateId: string\n quantity: number\n listPrice: number\n salePrice: number\n}\n\nexport default class API {\n\n static viewState: string = ''\n static viewStateGenerator: string = ''\n static viewStateEncrypted: string = ''\n\n static async updateCartQuantities({\n viewState,\n viewStateGenerator,\n viewStateEncrypted,\n cartItems,\n }: {\n viewState: string\n viewStateGenerator: string\n viewStateEncrypted: string\n cartItems: {\n basketId: string\n productId: string\n quantity: number\n }[]\n }) {\n\n let body = `__VIEWSTATE=${viewState}` +\n `&__VIEWSTATEGENERATOR=${viewStateGenerator}` +\n `&__VIEWSTATEENCRYPTED=${viewStateEncrypted}` +\n `&actionType=CARTUPDATE` +\n `&posting=TRUE` +\n `&tSearchString=`\n\n for (let i = 0; i < cartItems.length; i++) {\n\n const basketId = cartItems[i].basketId.toString()\n const productId = cartItems[i].productId.toString()\n const quantity = Number.parseInt(cartItems[i].quantity.toString())\n\n if (!basketId || !productId || isNaN(quantity)) {\n continue\n }\n\n body += `&basketID=${basketId}&productID=${productId}&quantity=${quantity}`\n }\n\n const response = await fetch(`/ajax/cart.aspx`, {\n \"headers\": {\n \"content-type\": \"application/x-www-form-urlencoded\",\n },\n \"body\": body,\n \"method\": \"POST\",\n \"mode\": \"cors\",\n \"credentials\": \"include\",\n \"redirect\": \"follow\"\n })\n\n if (response.status !== 200) {\n console.error(`Something went wrong updating cart quatities (response.status: ${response.status}).`)\n return\n }\n\n const ajaxResponse = await response.text()\n\n return API.processAjaxResponse(ajaxResponse)\n }\n\n static async deleteItemFromCart({ basketId }: { basketId: string }) {\n\n if (!basketId) {\n throw new Error('[deleteItemFromCart] Missing basketId')\n }\n\n const response = await fetch(`/ajax/cart.aspx?posting=true&actionType=CARTDELETE&basketID=${basketId}`, {\n \"method\": \"GET\",\n \"mode\": \"cors\",\n \"credentials\": \"include\",\n \"redirect\": \"follow\"\n })\n\n if (response.status !== 200) {\n console.error(`[deleteItemFromCart] Something went wrong deleting product from cart (response.status: ${response.status}).`)\n return\n }\n\n const ajaxResponse = await response.text()\n\n return API.processAjaxResponse(ajaxResponse)\n }\n\n static async addOneItemToCart({\n itemId,\n extensionsGroups = '',\n extensions = [],\n quantity = '1'\n }: {\n itemId: string\n extensionsGroups: string\n extensions: string[]\n quantity: string\n }) {\n\n const extensionsGroupsSplited = extensionsGroups.split(';')\n\n let body = `&posting=TRUE` +\n `&actionType=CARTADD` +\n `&productID=${itemId}` +\n `&quantity=${quantity}` +\n `&productIDExtensionGroups=${encodeURIComponent(extensionsGroups)}`\n\n for (let i = 0; i < extensions.length; i++) {\n const extensionGroup = extensionsGroupsSplited[i]\n const extensionValue = extensions[i]\n if (extensionGroup && extensionValue) {\n body += `&${itemId}${extensionsGroupsSplited[i]}=${extensions[i]}`\n }\n }\n\n const result = await fetch(`/ajax/cart.aspx`, {\n \"headers\": {\n \"content-type\": \"application/x-www-form-urlencoded;\"\n },\n \"body\": body,\n \"method\": \"POST\",\n \"mode\": \"cors\",\n \"credentials\": \"include\"\n })\n\n const ajaxResponse = await result.text()\n\n return API.processAjaxResponse(ajaxResponse)\n }\n\n static processAjaxResponse(ajaxResponse: string) {\n\n const curyIdRegex = /(.*?)<\\/t0r0CuryID>/ // currency id (USD) \n const curyTotMerchRegex = /(.*?)<\\/t0r0CuryTotMerch>/ // subtotal \n const user6Regex = /(.*?)<\\/t0r0User6>/ // subtotal (points)\n\n const basketIdRegex = /(.*?)<\\/t1r\\dbasketid>/g\n const alternateIdRegex = /(.*?)<\\/t1r\\dalternateid>/g\n const invtIdRegex = /(.*?)<\\/t1r\\dinvtid>/g\n const itemIdRegex = /(.*?)<\\/t1r\\ditemid>/g\n const listPriceRegex = /(.*?)<\\/t1r\\dcurylistprice>/g\n const salePriceRegex = /(.*?)<\\/t1r\\dcuryslsprice>/g\n const quantitiesRegex = /(.*?)<\\/t1r\\dqtyord>/g\n\n const basketIds = []\n const alternateIds = []\n const invtIds = []\n const itemIds = []\n const listPrices = []\n const salePrices = []\n const quantities = []\n \n let match\n\n // Extract basketID values\n while ((match = basketIdRegex.exec(ajaxResponse)) !== null) {\n basketIds.push(match[1])\n }\n\n // Extract alternateID values\n while ((match = alternateIdRegex.exec(ajaxResponse)) !== null) {\n alternateIds.push(match[1])\n }\n\n // Extract invtID values\n while ((match = invtIdRegex.exec(ajaxResponse)) !== null) {\n invtIds.push(match[1])\n }\n\n // Extract itemID values\n while ((match = itemIdRegex.exec(ajaxResponse)) !== null) {\n itemIds.push(match[1])\n }\n\n // Extract list price values\n while ((match = listPriceRegex.exec(ajaxResponse)) !== null) {\n listPrices.push(match[1])\n }\n\n // Extract sale price values\n while ((match = salePriceRegex.exec(ajaxResponse)) !== null) {\n salePrices.push(match[1])\n }\n\n // Extract quantity values\n while ((match = quantitiesRegex.exec(ajaxResponse)) !== null) {\n quantities.push(match[1])\n }\n\n // Extract 't0r0CuryID' tag\n const curyIdMatch = curyIdRegex.exec(ajaxResponse)\n\n // Extract 't0r0CuryTotMerch' tag\n const curyTotMerchMatch = curyTotMerchRegex.exec(ajaxResponse)\n\n // Extract 't0r0User6' tag\n const user6Match = user6Regex.exec(ajaxResponse)\n\n const curyId = curyIdMatch[1]\n const curyTotMerch = curyTotMerchMatch[1]\n const user6 = user6Match[1]\n\n // console.log('[processAjaxResponse] basketIds:', basketIds)\n // console.log('[processAjaxResponse] curyId:', curyId)\n // console.log('[processAjaxResponse] curyTotMerch (subtotal):', curyTotMerch)\n // console.log('[processAjaxResponse] user6 (subtotalPoints):', user6)\n\n const newCartItems: CartItem[] = []\n\n // Build the cartItems array\n for (let i = 0; i < basketIds.length; i++) {\n const basketId = basketIds[i]\n const alternateId = alternateIds[i]\n const invtId = invtIds[i]\n const itemId = itemIds[i]\n const quantity = quantities[i]\n const listPrice = listPrices[i]\n const salePrice = salePrices[i]\n\n if (!basketId || !invtId || isNaN(Number.parseInt(quantity))) {\n continue\n }\n\n if (!Number.isInteger(Number.parseFloat(quantity))) {\n alert(`Quantity must be an integer. Received: ${quantity}`)\n return\n }\n\n newCartItems.push({\n basketId: basketId,\n invtId: invtId,\n itemId: itemId,\n alternateId: alternateId,\n quantity: Number.parseInt(quantity),\n listPrice: Number.parseFloat(listPrice),\n salePrice: Number.parseFloat(salePrice) || undefined\n })\n }\n\n const result: CartResponse = {\n basketIds: basketIds,\n currency: curyId,\n subtotal: curyTotMerch,\n subtotalPoints: user6,\n newCartItems: newCartItems\n }\n\n return result\n }\n}","export type GA4Item = {\n\n /**\n * @description The id of the item.\n * @example HB-124-01\n */\n item_id: string\n\n /**\n * @description The name of the item.\n * @example Westin Heavenly Bed\n */\n item_name: string\n\n /**\n * @description The affiliation of the item.\n * @example Westin Hotels and Resorts\n */\n affiliation: string\n\n /**\n * @description The price of the item with discount included.\n * @example 2546.25\n */\n price: number\n\n /**\n * @description The discount applied to the price of the item.\n * @example 848.75\n */\n discount: number\n\n /**\n * @description The extensions of the items, separated by `;`.\n * @example Cal King;Standard 8.75\\\"\n */\n item_variant: string\n\n /**\n * @description If it's a subscription product or not.\n * @example no\n */\n subscription: 'yes' | 'no'\n\n /**\n * @description The brand of the item.\n * @example Westin Store\n */\n item_brand: string\n\n /**\n * @description The category of the item.\n * @example The Heavenly® Bed\n */\n item_category: string\n\n /**\n * @description The quantity of the item.\n * @example 1\n */\n quantity: number\n\n /**\n * @description The index of the item.\n * @example 0\n */\n index: number\n\n /**\n * @description The id of the list where the item is.\n * @example TheHeavenlyBed\n */\n item_list_id: string\n\n /**\n * @description The name of the list where the item is.\n * @example The Heavenly® Bed\n */\n item_list_name: string\n}\n\nexport default class GA4Utils {\n\n\n /**\n * @description Tracks the \"add_to_cart\" event pushing the data to the dataLayer object.\n * The first item in the array will be considered the main item.\n */\n static trackAddToCartEvent = (items: GA4Item[]) => {\n const dataLayer = (window as any).dataLayer\n\n const value = items.reduce((acc, item) => acc + item.price * item.quantity, 0)\n\n dataLayer.push({ ecommerce: null })\n dataLayer.push({\n event: 'add_to_cart',\n ecommerce: {\n currency: 'USD',\n value: value,\n items: items\n },\n event_value: value,\n event_items: items.map((item) => ({\n id: item.item_id,\n google_business_vertical: 'retail'\n })),\n mainItem: {\n id: items[0].item_id,\n name: items[0].item_name,\n category: items[0].item_category,\n value: items[0].price\n }\n })\n }\n\n /**\n * @description Tracks the \"remove_from_cart\" event pushing the data to the dataLayer object.\n */\n static trackRemoveFromCartEvent = (items: GA4Item[]) => {\n const dataLayer = (window as any).dataLayer\n\n const value = items.reduce((acc, item) => acc + item.price * item.quantity, 0)\n\n dataLayer.push({ ecommerce: null })\n dataLayer.push({\n event: 'remove_from_cart',\n ecommerce: {\n currency: 'USD',\n value: value,\n items: items\n }\n })\n }\n}","import API, { CartItem, CartResponse } from \"../api\"\nimport GA4Utils from \"../ga4\"\n\nexport default class CartPage {\n\n\tprivate static QUANTITY_NOT_INTEGER = 'Quantity must be an integer.'\n\tprivate static QUANTITY_TOO_HIGH = 'Quantity must be less than 100.'\n\tprivate static TIME_TO_SAVE_AFTER_INPUT = 2000 // milliseconds\n\tprivate static timeout\n\n\tstatic isDevEnvironment: boolean = false\n\tstatic isBMSMPromoActive: boolean = false\n\tstatic siteName: string\n\tstatic siteDomainName: string\n\tstatic promoStart: string\n\tstatic promoEnd: string\n\n\tstatic promoProps: {\n\t\tpromoType: \"BMSM\" | \"GWP\" | \"BOGO\" | \"FS\" | \"pointsGwp\"\n\t\ttotal?: number\n\t\tsubTotal?: number\n\t\tdiscount?: number\n\t\tnewTotal?: number\n\t\tactive?: boolean\n\t\tpromoTiers?: {\n\t\t\tminTotal: number\n\t\t\tdollarOff: number\n\t\t}[]\n\t\tfreeGiftRemarkCopy?: string\n\t\tbogoPairs?: {\n\t\t\tmainSku: string\n\t\t\tsubSku: string\n\t\t\tgwpSku: string\n\t\t}[]\n\t\tgwpProps?: {\n sku: string\n name: string\n qty: number\n listPrice: number\n listPoints: number\n imgPath: string\n hasGwpInCart: boolean\n bannerCopy: string\n }\n\t}\n\n\tstatic loading: boolean = false\n\n\tstatic onPageLoad() {\n\t\tCartPage.bindElementHandlers()\n\t\tCartPage.checkHTML()\n\t}\n\n\tstatic bindElementHandlers() {\n\n\t\t// Increment/decrement quantity buttons\n\t\t$('.qtyBtn.left, .qtyBtn.right').on('click', (e) => {\n\n\t\t\tconst unorderedListElem = e.target.closest('ul.cart-item') as HTMLUListElement\n\n\t\t\tconst itemPosition = Number.parseInt(unorderedListElem.dataset.position)\n\t\t\tconst basketId = unorderedListElem.dataset.basketid\n\t\t\tconst price = Number.parseFloat(unorderedListElem.dataset.price)\n\t\t\tconst pricePoints = Number.parseInt(unorderedListElem.dataset.pricepoints)\n\n\t\t\tconst quantityInput = (document.getElementById(`item-${itemPosition}`).querySelector('input[name=\"quantity\"]') as HTMLInputElement)\n\n\t\t\tconst oldValue = Number.parseInt(quantityInput.value)\n\t\t\tlet operation = e.target.dataset.operation as ('increment' | 'decrement')\n\n\t\t\tlet newValue = oldValue\n\n\t\t\tif (operation === 'increment') {\n\n\t\t\t\tnewValue = oldValue + 1\n\n\t\t\t\tif (newValue > 99) {\n\t\t\t\t\talert(CartPage.QUANTITY_TOO_HIGH)\n\t\t\t\t\tnewValue = 99\n\t\t\t\t}\n\n\t\t\t} else if (operation === 'decrement') {\n\n\t\t\t\tnewValue = oldValue - 1\n\n\t\t\t\tif (newValue < 0) {\n\t\t\t\t\tnewValue = 0\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (newValue !== oldValue) {\n\n\t\t\t\t// If it's deleting the item...\n\t\t\t\tif (newValue <= 0) {\n\t\t\t\t\tCartPage.onClickDeleteProduct({\n\t\t\t\t\t\tbasketId: basketId,\n\t\t\t\t\t\titemPosition: itemPosition,\n\t\t\t\t\t\toldValue: oldValue.toString(),\n\t\t\t\t\t})\n\t\t\t\t}\n\t\n\t\t\t\t// If it's updating the item quantity...\n\t\t\t\telse {\n\t\t\t\t\tCartPage.onUpdateQuantity({\n\t\t\t\t\t\titemPosition: itemPosition,\n\t\t\t\t\t\toldValue: oldValue,\n\t\t\t\t\t\tnewValue: newValue,\n\t\t\t\t\t\tprice: price,\n\t\t\t\t\t\tpricePoints: pricePoints,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\t// Quantity input (on focus, save the old value)\n\t\t$('.quantity-input').on('focus', (e) => {\n\t\t\tconst quantityInput = e.target as HTMLInputElement\n\t\t\tconst value = Number.parseInt(quantityInput.value)\n\t\t\tquantityInput.dataset.oldvalue = value > 99\n\t\t\t\t? '99'\n\t\t\t\t: value < 1\n\t\t\t\t\t? '1'\n\t\t\t\t\t: value.toString()\n\t\t})\n\n\t\t// Quantity input (on focus out, restore last valid value if needed)\n\t\t$('.quantity-input').on('focusout', (e) => {\n\t\t\tconst quantityInput = e.target as HTMLInputElement\n\t\t\tconst floatValue = Number.parseFloat((e.target as HTMLInputElement).value)\n\t\t\tconst oldValue = Number.parseInt(quantityInput.dataset.oldvalue)\n\n\t\t\t// The condition below should match the 'input' event condition\n\t\t\tif (isNaN(floatValue) || !Number.isInteger(floatValue)) {\n\t\t\t\talert(CartPage.QUANTITY_NOT_INTEGER)\n\t\t\t\tquantityInput.value = oldValue.toString()\n\t\t\t}\n\t\t})\n\n\t\t// Quantity input\n\t\t$('.quantity-input').on('input', (e) => {\n\n\t\t\tconst unorderedListElem = e.target.closest('ul.cart-item') as HTMLUListElement\n\t\t\tconst itemPosition = Number.parseInt(unorderedListElem.dataset.position)\n\n\t\t\t// Disable the other inputs\n\t\t\tdocument.querySelectorAll('.quantity-input').forEach((elem: HTMLInputElement) => {\n\t\t\t\tif (elem !== e.target) {\n\t\t\t\t\telem.readOnly = true\n\t\t\t\t}\n\t\t\t})\n\n\t\t\t// Disable increment/decrement buttons\n\t\t\tdocument.querySelectorAll('.qtyBtn').forEach((elem: HTMLButtonElement) => {\n\t\t\t\telem.disabled = true\n\t\t\t})\n\n\t\t\t// Disable delete buttons\n\t\t\tdocument.querySelectorAll('.delete').forEach((elem: HTMLButtonElement) => {\n\t\t\t\telem.disabled = true\n\t\t\t})\n\n\t\t\tclearTimeout(CartPage.timeout)\n\n\t\t\tCartPage.timeout = setTimeout(() => {\n\n\t\t\t\tconst quantityInput = e.target as HTMLInputElement\n\t\t\t\tconst floatValue = Number.parseFloat((e.target as HTMLInputElement).value)\n\t\t\t\tlet newValue = Number.parseInt((e.target as HTMLInputElement).value)\n\n\t\t\t\tCartPage.log(`[input] floatValue ${floatValue}`)\n\t\t\t\tCartPage.log(`[input] newValue ${newValue}`)\n\n\t\t\t\t// The condition below should match the 'focusout' event condition\n\t\t\t\tif (isNaN(floatValue) || !Number.isInteger(floatValue)) {\t\n\n\t\t\t\t\t// Enable the other inputs\n\t\t\t\t\tdocument.querySelectorAll('.quantity-input').forEach((elem: HTMLInputElement) => {\n\t\t\t\t\t\tif (elem !== e.target) {\n\t\t\t\t\t\t\telem.readOnly = false\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\n\t\t\t\t\t// Enable increment/decrement buttons\n\t\t\t\t\tdocument.querySelectorAll('.qtyBtn').forEach((elem: HTMLButtonElement) => {\n\t\t\t\t\t\telem.disabled = false\n\t\t\t\t\t})\n\n\t\t\t\t\t// Enable delete buttons\n\t\t\t\t\tdocument.querySelectorAll('.delete').forEach((elem: HTMLButtonElement) => {\n\t\t\t\t\t\telem.disabled = false\n\t\t\t\t\t})\n\t\t\t\t\t\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\n\t\t\t\tconst basketId = unorderedListElem.dataset.basketid\n\t\t\t\tconst price = Number.parseFloat(unorderedListElem.dataset.price)\n\t\t\t\tconst pricePoints = Number.parseInt(unorderedListElem.dataset.pricepoints)\n\t\t\t\tconst oldValue = Number.parseInt(quantityInput.dataset.oldvalue)\n\t\t\t\t\n\t\t\t\tif (newValue < 0) {\n\t\t\t\t\tnewValue = 0\n\t\t\t\t}\n\n\t\t\t\tif (newValue > 99) {\n\t\t\t\t\talert(CartPage.QUANTITY_TOO_HIGH)\n\t\t\t\t\tnewValue = 99\n\t\t\t\t}\n\n\t\t\t\tif (newValue !== oldValue) {\n\n\t\t\t\t\t// If it's deleting the item...\n\t\t\t\t\tif (newValue <= 0) {\n\t\t\t\t\t\tCartPage.onClickDeleteProduct({\n\t\t\t\t\t\t\tbasketId: basketId,\n\t\t\t\t\t\t\titemPosition: itemPosition,\n\t\t\t\t\t\t\toldValue: oldValue.toString(),\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\n\t\t\t\t\t// If it's updating the item quantity...\n\t\t\t\t\telse {\n\t\t\t\t\t\tCartPage.onUpdateQuantity({\n\t\t\t\t\t\t\titemPosition: itemPosition,\n\t\t\t\t\t\t\toldValue: oldValue,\n\t\t\t\t\t\t\tnewValue: newValue,\n\t\t\t\t\t\t\tprice: price,\n\t\t\t\t\t\t\tpricePoints: pricePoints,\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\t// Enable the other inputs\n\t\t\t\t\tdocument.querySelectorAll('.quantity-input').forEach((elem: HTMLInputElement) => {\n\t\t\t\t\t\tif (elem !== e.target) {\n\t\t\t\t\t\t\telem.readOnly = false\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\n\t\t\t\t\t// Enable increment/decrement buttons\n\t\t\t\t\tdocument.querySelectorAll('.qtyBtn').forEach((elem: HTMLButtonElement) => {\n\t\t\t\t\t\telem.disabled = false\n\t\t\t\t\t})\n\n\t\t\t\t\t// Enable delete buttons\n\t\t\t\t\tdocument.querySelectorAll('.delete').forEach((elem: HTMLButtonElement) => {\n\t\t\t\t\t\telem.disabled = false\n\t\t\t\t\t})\n\t\t\t\t}\n\n\t\t\t}, CartPage.TIME_TO_SAVE_AFTER_INPUT)\n\t\t})\n\n\t\t// Delete button\n\t\t$('.delete').on('click', (e) => {\n\t\t\t\n\t\t\tconst unorderedListElem = e.target.closest('ul.cart-item') as HTMLUListElement\n\t\t\tconst itemPosition = Number.parseInt(unorderedListElem.dataset.position)\n\t\t\tconst basketId = unorderedListElem.dataset.basketid\n\t\t\tconst quantityInput = unorderedListElem.querySelector('input[name=\"quantity\"]') as HTMLInputElement\n\t\t\tconst oldValue = quantityInput.value\n\n\t\t\tCartPage.onClickDeleteProduct({\n\t\t\t\tbasketId: basketId,\n\t\t\t\titemPosition: itemPosition,\n\t\t\t\toldValue: oldValue\n\t\t\t})\n\t\t})\n\n\t\t// Undo button\n\t\t$('.undo').on('click', (e) => {\n\n\t\t\tconst unorderedListElem = e.target.closest('ul.cart-item') as HTMLUListElement\n\t\t\tconst itemPosition = Number.parseInt(unorderedListElem.dataset.position)\n\t\t\tconst oldBasketId = unorderedListElem.dataset.oldbasketid\n\t\t\tconst itemId = unorderedListElem.dataset.itemid\n\t\t\tconst invtId = unorderedListElem.dataset.invtid\n\t\t\tconst price = Number.parseFloat(unorderedListElem.dataset.price)\n\t\t\tconst pricePoints = Number.parseInt(unorderedListElem.dataset.pricepoints)\n\t\t\tconst extensionsGroups = unorderedListElem.dataset.extensiongroups\n\t\t\tconst extensions = unorderedListElem.dataset.selectedextensions\n\n\t\t\tCartPage.onClickUndoRemoval({\n\t\t\t\toldBasketId: oldBasketId,\n\t\t\t\titemPosition: itemPosition,\n\t\t\t\titemId: itemId,\n\t\t\t\tinvtId: invtId,\n\t\t\t\tprice: price,\n\t\t\t\tpricePoints: pricePoints,\n\t\t\t\textensionsGroups: extensionsGroups,\n\t\t\t\textensions: extensions\n\t\t\t})\n\t\t})\n\t}\n\n\tstatic async onUpdateQuantity({\n\t\titemPosition,\n\t\tnewValue,\n\t\toldValue,\n\t\tprice,\n\t\tpricePoints\n\t}: {\n\t\titemPosition: number\n\t\tnewValue: number\n\t\toldValue: number\n\t\tprice: number\n\t\tpricePoints: number\n\t}) {\n\n\t\tif (CartPage.loading) {\n\t\t\treturn\n\t\t}\n\n\t\tCartPage.log(`[onUpdateQuantity] itemPosition ${itemPosition}`)\n\t\tCartPage.log(`[onUpdateQuantity] newValue ${newValue}`)\n\t\tCartPage.log(`[onUpdateQuantity] oldValue ${oldValue}`)\n\t\tCartPage.log(`[onUpdateQuantity] price ${price}`)\n\t\tCartPage.log(`[onUpdateQuantity] pricePoints ${pricePoints}`)\n\n\t\tconst formData = new FormData(document.getElementById('OCForm1') as HTMLFormElement)\n\n\t\tconst viewState = encodeURIComponent(API.viewState || formData.get('__VIEWSTATE') as string)\n\t\tconst viewStateGenerator = encodeURIComponent(formData.get('__VIEWSTATEGENERATOR') as string)\n\t\tconst viewStateEncrypted = encodeURIComponent(formData.get('__VIEWSTATEENCRYPTED') as string)\n\n\t\tconst quantityInput = document.getElementById(`item-${itemPosition}`).querySelector('input[name=\"quantity\"]') as HTMLInputElement\n\n\t\tconst basketIds = Array.from(formData.getAll('basketID')) as string[]\n\t\tconst productIds = Array.from(formData.getAll('productID')) as string[]\n\t\tconst quantities = Array.from(formData.getAll('quantity')) as string[]\n\n\t\tconst cartItems: {\n\t\t\tbasketId: string\n\t\t\tproductId: string\n\t\t\tquantity: number\n\t\t}[] = []\n\n\t\tCartPage.log(`[onUpdateQuantity] Building the cart items array...`)\n\n\t\t// Build the cartItems array\n\t\tfor (let i = 0; i < basketIds.length; i++) {\n\t\t\tconst basketId = basketIds[i]\n\t\t\tconst productId = productIds[i]\n\t\t\tconst quantity = quantities[i]\n\n\t\t\tCartPage.log(`[onUpdateQuantity] (${i+1}) basketId ${basketId}`)\n\t\t\tCartPage.log(`[onUpdateQuantity] (${i+1}) productId ${productId}`)\n\t\t\tCartPage.log(`[onUpdateQuantity] (${i+1}) quantity ${quantity}`)\n\n\t\t\t// If it's the clicked item, update the quantity\n\t\t\tif (i === itemPosition - 1) {\n\n\t\t\t\tCartPage.updateItemQuantity(itemPosition, newValue.toString())\n\n\t\t\t\tcartItems.push({\n\t\t\t\t\tbasketId: basketId,\n\t\t\t\t\tproductId: productId,\n\t\t\t\t\tquantity: newValue\n\t\t\t\t})\n\t\t\t}\n\n\t\t\t// If it's not the clicked item, keep the same quantity\n\t\t\telse {\n\t\t\t\tcartItems.push({\n\t\t\t\t\tbasketId: basketId,\n\t\t\t\t\tproductId: productId,\n\t\t\t\t\tquantity: Number.parseInt(quantity)\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\n\t\tCartPage.toggleLoading(itemPosition)\n\n\t\tlet result: CartResponse\n\n\t\ttry {\n\t\t\tresult = await API.updateCartQuantities({\n\t\t\t\tviewState: viewState,\n\t\t\t\tviewStateGenerator: viewStateGenerator,\n\t\t\t\tviewStateEncrypted: viewStateEncrypted,\n\t\t\t\tcartItems: cartItems\n\t\t\t})\n\t\t} catch (err) {\n\t\t\tconsole.error(err)\n\t\t\tCartPage.updateItemQuantity(itemPosition, oldValue.toString())\n\t\t} finally {\n\t\t\tCartPage.toggleLoading(itemPosition)\n\t\t}\n\n\t\tif (!result) {\n\t\t\tCartPage.updateItemQuantity(itemPosition, oldValue.toString())\n\t\t\tconsole.error('[onClickUpdateQuantity] Failed to update cart quantities.')\n\t\t\treturn\n\t\t}\n\n\t\tquantityInput.dataset.oldvalue = newValue.toString()\n\n\t\tconst currency = result.currency\n\t\tconst subtotal = result.subtotal\n\t\tconst subtotalPoints = result.subtotalPoints\n\t\tconst newCartItems = result.newCartItems\n\n\t\tCartPage.log(`[onClickUpdateQuantity] currency ${currency}`)\n\t\tCartPage.log(`[onClickUpdateQuantity] subtotal ${subtotal}`)\n\t\tCartPage.log(`[onClickUpdateQuantity] subtotalPoints ${subtotalPoints}`)\n\t\tCartPage.log(`[onClickUpdateQuantity] newCartItems`, newCartItems)\n\n\t\tconst currencySymbol = '$'\n\n\t\tCartPage.updateItemTotal({\n\t\t\titemPosition: itemPosition,\n\t\t\tquantity: newValue,\n\t\t\tprice: price,\n\t\t\tpricePoints: pricePoints,\n\t\t\tcurrency: currencySymbol\n\t\t})\n\n\t\tCartPage.updateCartTotals({\n\t\t\tsubtotal: subtotal,\n\t\t\tsubtotalPoints: subtotalPoints,\n\t\t\tcurrency: currencySymbol\n\t\t})\n\n\t\tCartPage.saveCartInSalesforce(newCartItems)\n\n\t\t// If one or more items were added to the cart in another tab/page...\n\t\tif (newCartItems.length > cartItems.length) {\n\n\t\t\t// Reload the page\n\t\t\tdocument.location.reload()\n\t\t}\n\t}\n\n\tstatic async onClickDeleteProduct({\n\t\tbasketId,\n\t\titemPosition,\n\t\toldValue\n\t}: {\n\t\tbasketId: string\n\t\titemPosition: number\n\t\toldValue: string\n\t}) {\n\n\t\tif (CartPage.loading) {\n\t\t\treturn\n\t\t}\n\n\t\tCartPage.log(`[onClickDeleteProduct] Removing product from cart...`)\n\t\tCartPage.log(`[onClickDeleteProduct] basketId: ${basketId}`)\n\t\tCartPage.log(`[onClickDeleteProduct] itemPosition: ${itemPosition}`)\n\t\tCartPage.log(`[onClickDeleteProduct] oldValue: ${oldValue}`)\n\n\t\tconst unorderedListElem = document.getElementById(`item-${itemPosition}`)\n\t\tconst unorderedListElemInHeader = document.getElementById(`modal-item-${itemPosition}`)\n\t\tconst quantityInput = unorderedListElem.querySelector('input[name=\"quantity\"]') as HTMLInputElement\n\n\t\tCartPage.toggleLoading(itemPosition)\n\t\tCartPage.updateItemQuantity(itemPosition, '0')\n\n\t\tlet result: CartResponse\n\n\t\ttry {\n\t\t\tresult = await API.deleteItemFromCart({\n\t\t\t\tbasketId: basketId,\n\t\t\t})\n\t\t} catch (err) {\n\t\t\tconsole.error(err)\n\t\t\tCartPage.updateItemQuantity(itemPosition, oldValue)\n\t\t} finally {\n\t\t\tCartPage.toggleLoading(itemPosition)\n\t\t}\n\n\t\tif (!result) {\n\t\t\tconsole.error('Failed to delete product from cart.')\n\t\t\treturn\n\t\t}\n\n\t\tconst subtotal = result.subtotal\n\t\tconst subtotalPoints = result.subtotalPoints\n\t\tconst newCartItems = result.newCartItems\n\n\t\tCartPage.log(`[onClickDeleteProduct] Removed product from cart!`)\n\n\t\tCartPage.updateCartTotals({\n\t\t\tsubtotal: subtotal,\n\t\t\tsubtotalPoints: subtotalPoints,\n\t\t\tcurrency: '$'\n\t\t})\n\n\t\t// Add class \"deleted\" to UL\n\t\tunorderedListElem.classList.add('deleted')\n\t\tunorderedListElemInHeader.classList.add('deleted')\n\n\t\t// Remove the data-basketid property from the element (this basketid is no longer valid since the product was removed)\n\t\tdocument.querySelector(`[value=\"${basketId}\"]`).setAttribute('value', '')\n\t\tdocument.querySelectorAll(`[data-basketid=\"${basketId}\"]`).forEach((elem) => {\n\t\t\telem.setAttribute('data-oldbasketid', basketId)\n\t\t\telem.removeAttribute('data-basketid')\n\t\t})\n\n\t\t// Get remaining basket ids\n\t\tconst basketIds = Array.from(document.querySelectorAll('input[name=\"basketID\"]'))\n\t\t\t.map((elem) => elem.getAttribute('value'))\n\t\t\t.filter((basketId) => basketId !== '')\n\n\t\t// If the cart is empty...\n\t\tif (basketIds.length === 0) {\n\t\t\tdocument.getElementById('DIVNoItem').style.display = 'unset'\n\t\t\tdocument.getElementById('DIVcartSumItemsList').style.display = 'none'\n\t\t\tdocument.getElementById('DIVcartbtns').style.display = 'none'\n\t\t}\n\n\t\tconst oldQuantity = quantityInput.dataset.oldvalue\n\n\t\tconst ga4Items = (window as any).GA4Items\n\n\t\t// Update ga4Items array with new basket id\n\t\tga4Items[basketId] = {\n\t\t\t...ga4Items[basketId],\n\t\t\tquantity: Number.parseInt(oldQuantity)\n\t\t}\n\n\t\tconst ga4Item = ga4Items[basketId]\n\n\t\tif (ga4Item) {\n\t\t\tGA4Utils.trackRemoveFromCartEvent([ga4Item])\n\t\t} else {\n\t\t\tconsole.error(`[onClickDeleteProduct] GA4 item not found for basketId ${basketId}.`)\n\t\t}\n\n\t\tCartPage.saveCartInSalesforce(newCartItems)\n\n\t\tconst oldCartItemsCount = document.querySelectorAll('#cart-items-container ul.cart-item').length\n\n\t\t// If one or more items were added to the cart in another tab/page...\n\t\tif (newCartItems.length > oldCartItemsCount) {\n\n\t\t\t// Reload the page\n\t\t\tdocument.location.reload()\n\t\t}\n\t}\n\n\tstatic async onClickUndoRemoval({\n\t\toldBasketId,\n\t\titemPosition,\n\t\titemId,\n\t\tinvtId,\n\t\tprice,\n\t\tpricePoints,\n\t\textensionsGroups,\n\t\textensions\n\t}: {\n\t\toldBasketId: string\n\t\titemPosition: number\n\t\titemId: string\n\t\tinvtId: string\n\t\tprice: number\n\t\tpricePoints: number\n\t\textensionsGroups: string\n\t\textensions: string\n\t}) {\n\n\t\tif (CartPage.loading) {\n\t\t\treturn\n\t\t}\n\n\t\tCartPage.log(`[onClickUndoRemoval] Adding product back to cart...`)\n\t\tCartPage.log(`[onClickUndoRemoval] oldBasketId: ${oldBasketId}`)\n\t\tCartPage.log(`[onClickUndoRemoval] itemPosition: ${itemPosition}`)\n\t\tCartPage.log(`[onClickUndoRemoval] itemId: ${itemId}`)\n\t\tCartPage.log(`[onClickUndoRemoval] invtId: ${invtId}`)\n\t\tCartPage.log(`[onClickUndoRemoval] price: ${price}`)\n\t\tCartPage.log(`[onClickUndoRemoval] extensionsGroups: ${extensionsGroups}`)\n\t\tCartPage.log(`[onClickUndoRemoval] extensions: ${extensions}`)\n\n\t\tconst unorderedListElem = document.getElementById(`item-${itemPosition}`)\n\n\t\tconst quantityInput = unorderedListElem.querySelector(`input[name=\"quantity\"]`) as HTMLInputElement\n\n\t\tconst extensionsSplited = (extensions || '').split(';')\n\t\tconst extensionsArray = extensionsSplited[0] !== '' ? extensionsSplited : []\n\n\t\tconst oldQuantity = quantityInput.dataset.oldvalue\n\n\t\tCartPage.toggleLoading(itemPosition)\n\n\t\tCartPage.toggleDeleted(itemPosition)\n\n\t\tCartPage.updateItemQuantity(itemPosition, oldQuantity)\n\n\t\tlet result: CartResponse\n\n\t\ttry {\n\t\t\tresult = await API.addOneItemToCart({\n\t\t\t\titemId: itemId,\n\t\t\t\textensionsGroups: extensionsGroups,\n\t\t\t\textensions: extensionsArray,\n\t\t\t\tquantity: oldQuantity\n\t\t\t})\n\t\t} catch (err) {\n\t\t\tconsole.error(err)\n\t\t\tCartPage.toggleDeleted(itemPosition)\n\t\t\tCartPage.updateItemQuantity(itemPosition, '0')\n\t\t} finally {\n\t\t\tCartPage.toggleLoading(itemPosition)\n\t\t}\n\n\t\tconst basketIds = result.basketIds\n\t\tconst subtotal = result.subtotal\n\t\tconst subtotalPoints = result.subtotalPoints\n\t\tconst newCartItems = result.newCartItems\n\n\t\tCartPage.log(`[onClickUndoRemoval] newCartItems`, newCartItems)\n\n\t\t// Find the index of the added item\n\t\tconst addedItemIndex = newCartItems.findIndex(elem => elem.invtId === invtId)\n\n\t\t// Get the new basket id\n\t\tconst basketId = basketIds[addedItemIndex]\n\n\t\tif (!basketIds || !subtotal || !subtotalPoints) {\n\t\t\tconsole.error(`[onClickUndoRemoval] Something went wrong adding item back to cart.`)\n\t\t\tconsole.error(`[onClickUndoRemoval] basketId: ${basketId}`)\n\t\t\tconsole.error(`[onClickUndoRemoval] subtotal: ${subtotal}`)\n\t\t\tconsole.error(`[onClickUndoRemoval] subtotalPoints: ${subtotalPoints}`)\n\t\t\treturn\n\t\t}\n\n\t\tCartPage.log(`[onClickUndoRemoval] Added product back to cart!`)\n\t\tCartPage.log(`[onClickUndoRemoval] newCartItems.length ${newCartItems.length}`)\n\t\tCartPage.log(`[onClickUndoRemoval] basketId: ${basketId}`)\n\n\t\tCartPage.updateItemTotal({\n\t\t\titemPosition: itemPosition,\n\t\t\tquantity: Number.parseInt(oldQuantity),\n\t\t\tprice: price,\n\t\t\tpricePoints: pricePoints,\n\t\t\tcurrency: '$'\n\t\t})\n\n\t\tCartPage.updateCartTotals({\n\t\t\tsubtotal: subtotal,\n\t\t\tsubtotalPoints:\n\t\t\t\tsubtotalPoints,\n\t\t\tcurrency: '$'\n\t\t})\n\n\t\t// Add the basket id to the input\n\t\tdocument.querySelectorAll('input[name=\"basketID\"]')[itemPosition - 1].setAttribute('value', basketId)\n\n\t\t// Removed the old basket id (not needed anymore) and assign the new basket id\n\t\tdocument.querySelectorAll(`[data-oldbasketid=\"${oldBasketId}\"`).forEach((elem) => {\n\t\t\telem.removeAttribute('data-oldbasketid')\n\t\t\telem.setAttribute('data-basketid', basketId)\n\t\t})\n\n\t\t// Toggle items visibility in header cart dropdown\n\t\tif (document.getElementById('DIVNoItem').style.display) {\n\t\t\tdocument.getElementById('DIVNoItem').style.display = 'none'\n\t\t\tdocument.getElementById('DIVcartSumItemsList').style.display = 'unset'\n\t\t\tdocument.getElementById('DIVcartbtns').style.display = 'unset'\n\t\t}\n\n\t\tconst ga4Items = (window as any).GA4Items\n\n\t\t// Update ga4Items array with new basket id\n\t\tga4Items[basketId] = {\n\t\t\t...ga4Items[oldBasketId],\n\t\t\tquantity: Number.parseInt(oldQuantity)\n\t\t}\n\n\t\t// Delete the old basket id from the ga4Items array\n\t\tdelete ga4Items[oldBasketId]\n\n\t\t// Track the add_to_cart event\n\t\tconst ga4Item = ga4Items[basketId]\n\t\tGA4Utils.trackAddToCartEvent([ga4Item])\n\n\t\tCartPage.saveCartInSalesforce(newCartItems)\n\n\t\tconst oldCartItemsCount = document.querySelectorAll('#cart-items-container ul.cart-item').length\n\n\t\t// If one or more items were added to the cart in another tab/page...\n\t\tif (newCartItems.length > oldCartItemsCount) {\n\n\t\t\t// Reload the page\n\t\t\tdocument.location.reload()\n\t\t}\n\t}\n\n\tstatic toggleLoading(itemPosition: number | string) {\n\n\t\tconst unorderedListElem = document.getElementById(`item-${itemPosition}`)\n\t\tconst unorderedListElemInHeader = document.getElementById(`modal-item-${itemPosition}`)\n\n\t\tconst checkoutButton = (document.getElementById('btn_cart_checkout') as HTMLButtonElement)\n\t\tconst checkoutButtonInHeader = (document.querySelector('#DIVcartbtns .btn-main') as HTMLLinkElement)\n\t\tconst viewBagButton = (document.querySelector('#DIVcartbtns .btn-plain') as HTMLLinkElement)\n\n\t\tconst checkoutButtonInHeaderHref = checkoutButtonInHeader.href\n\t\tconst viewBagButtonHref = viewBagButton.href\n\n\t\tif (CartPage.loading) {\n\t\t\tCartPage.loading = false\n\n\t\t\t// Remove class \"loading\" from UL elements\n\t\t\tdocument.querySelectorAll('.cart-item').forEach((elem) => elem.classList.remove('loading'))\n\t\t\tdocument.querySelectorAll('.modal-cart-item').forEach((elem) => elem.classList.remove('loading'))\n\n\t\t\t// Enable buttons\n\t\t\tcheckoutButton.removeAttribute('disabled')\n\t\t\tcheckoutButtonInHeader.setAttribute('href', checkoutButtonInHeaderHref)\n\t\t\tviewBagButton.setAttribute('href', viewBagButtonHref)\n\n\t\t\t// Enable quantity inputs\n\t\t\tdocument.querySelectorAll('.quantity-input').forEach((elem: HTMLInputElement) => {\n\t\t\t\telem.readOnly = false\n\t\t\t})\n\n\t\t\t// Enable increment/decrement buttons\n\t\t\tdocument.querySelectorAll('.qtyBtn').forEach((elem: HTMLButtonElement) => {\n\t\t\t\telem.disabled = false\n\t\t\t})\n\n\t\t\t// Enable delete buttons\n\t\t\tdocument.querySelectorAll('.delete').forEach((elem: HTMLButtonElement) => {\n\t\t\t\telem.disabled = false\n\t\t\t})\n\n\t\t} else {\n\t\t\tCartPage.loading = true\n\n\t\t\t// Add class \"loading\" to UL\n\t\t\tunorderedListElem.classList.add('loading')\n\t\t\tunorderedListElemInHeader.classList.add('loading')\n\n\t\t\t// Disable buttons\n\t\t\tcheckoutButton.setAttribute('disabled', 'true')\n\t\t\tcheckoutButtonInHeader.removeAttribute('href')\n\t\t\tviewBagButton.removeAttribute('href')\n\n\t\t\t// Disable quantity inputs\n\t\t\tdocument.querySelectorAll('.quantity-input').forEach((elem: HTMLInputElement) => {\n\t\t\t\telem.readOnly = true\n\t\t\t})\n\n\t\t\t// Disable increment/decrement buttons\n\t\t\tdocument.querySelectorAll('.qtyBtn').forEach((elem: HTMLButtonElement) => {\n\t\t\t\telem.disabled = true\n\t\t\t})\n\n\t\t\t// Disable delete buttons\n\t\t\tdocument.querySelectorAll('.delete').forEach((elem: HTMLButtonElement) => {\n\t\t\t\telem.disabled = true\n\t\t\t})\n\t\t}\n\t}\n\n\tstatic toggleDeleted(itemPosition: number | string) {\n\n\t\tconst unorderedListElem = document.getElementById(`item-${itemPosition}`)\n\t\tconst unorderedListElemInHeader = document.getElementById(`modal-item-${itemPosition}`)\n\n\t\tunorderedListElem.classList.toggle('deleted')\n\t\tunorderedListElemInHeader.classList.toggle('deleted')\n\t}\n\n\tstatic updateItemQuantity(itemPosition: number, newValue: string) {\n\t\tconst unorderedListElem = document.getElementById(`item-${itemPosition}`)\n\t\tconst unorderedListElemInHeader = document.getElementById(`modal-item-${itemPosition}`)\n\n\t\tconst quantityInput = unorderedListElem.querySelector(`input[name=\"quantity\"]`) as HTMLInputElement\n\t\tconst quantitySpanInHeader = unorderedListElemInHeader.querySelector(`.Qty span`) as HTMLParagraphElement\n\n\t\tconst bubbleCountSpanElem = document.getElementById('bubble-cnt') as HTMLSpanElement\n\n\t\tlet newBubbleCount = 0\n\n\t\t// Update the quantity in the quantity input\n\t\tquantityInput.setAttribute('value', newValue)\n\t\tquantityInput.value = newValue\n\n\t\t// Update the quantity in the span in the header\n\t\tquantitySpanInHeader.innerHTML = newValue\n\n\t\t// Calculate new total count\n\t\tdocument.querySelectorAll('.quantity-input').forEach((elem: HTMLInputElement) => {\n\t\t\tnewBubbleCount += Number.parseInt(elem.value)\n\t\t})\n\n\t\t// Refresh bubble count element\n\t\tbubbleCountSpanElem.innerHTML = `${newBubbleCount}`\n\t}\n\n\tstatic updateItemTotal({\n\t\titemPosition,\n\t\tquantity,\n\t\tprice,\n\t\tpricePoints,\n\t\tcurrency\n\t}: {\n\t\titemPosition: number,\n\t\tquantity: number,\n\t\tprice: number,\n\t\tpricePoints: number,\n\t\tcurrency: '$'\n\t}) {\n\n\t\tconst unorderedListElem = document.getElementById(`item-${itemPosition}`)\n\t\tconst totalElem = unorderedListElem.querySelector('.Total.price-cash span') as HTMLParagraphElement\n\t\tconst totalPointsElem = unorderedListElem.querySelector('.Total.price-points span') as HTMLParagraphElement\n\n\t\ttotalElem.innerHTML = `${currency || ''}${Number.parseFloat((quantity * price).toFixed(2)).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`\n\t\ttotalPointsElem.innerHTML = `${(quantity * pricePoints).toLocaleString('en-US')} Points`\n\t}\n\n\tstatic updateCartTotals({\n\t\tsubtotal,\n\t\tsubtotalPoints,\n\t\tcurrency = '$'\n\t}: {\n\t\tsubtotal: string,\n\t\tsubtotalPoints: string,\n\t\tcurrency: '$'\n\t}) {\n\n\t\t// Elements used when there is no discount\n\t\tconst subtotalElem = document.getElementById('subtotalInUI')\n\t\tconst subtotalHeaderElem = document.getElementById('hdCashSubtotal')\n\t\tconst subtotalPointsElem = document.getElementById('subtotalPointsInUI')\n\t\tconst subtotalPointsHeaderElem = document.getElementById('hdPointsSubtotal')\n\n\t\t// Elements used when there is discount\n\t\tconst cartTotalElem = document.getElementById('carttotalInUI')\n\t\tconst cartTotalHeaderElem = document.getElementById('hdCartTotal')\n\t\tconst discountElem = document.getElementById('discountInUI')\n\t\tconst discountHeaderElem = document.getElementById('hdDiscount')\n\t\tconst totalElem = document.getElementById('totalInUI')\n\t\tconst totalHeaderElem = document.getElementById('hdTotal')\n\t\tconst cartPointsSubtotalElem = document.getElementById('cartPointsSubtotal')\n\t\tconst cartPointsSubtotalHeaderElem = document.getElementById('hdPointsSubtotalDiscount')\n\n\t\t// Update the elements\n\t\tsubtotalElem.innerHTML = `${currency || ''}${Number.parseFloat(subtotal).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) || ''}`\n\t\tsubtotalHeaderElem.innerHTML = `${currency || ''}${Number.parseFloat(subtotal).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) || ''}`\n\t\tsubtotalPointsElem.innerHTML = subtotalPoints ? `${Number.parseInt(subtotalPoints).toLocaleString('en-US')} Points` : ''\n\t\tsubtotalPointsHeaderElem.innerHTML = subtotalPoints ? `${Number.parseInt(subtotalPoints).toLocaleString('en-US')} Points` : ''\n\t\tcartPointsSubtotalElem.innerHTML = subtotalPoints ? `${Number.parseInt(subtotalPoints).toLocaleString('en-US')} Points` : ''\n\t\tcartPointsSubtotalHeaderElem.innerHTML = subtotalPoints ? `${Number.parseInt(subtotalPoints).toLocaleString('en-US')} Points` : ''\n\n\t\tif (CartPage.isBMSMPromoActive) {\n\n\t\t\t// Calculate new discount for BMSM promo\n\t\t\tlet newDiscount = CartPage.promoProps.discount || 0\n\t\n\t\t\tconst subtotalNumber = Number.parseFloat(subtotal)\n\t\n\t\t\tlet promoTiersLenght = CartPage.promoProps.promoTiers.length\n\t\t\tif (subtotalNumber < CartPage.promoProps.promoTiers[0].minTotal) {\n\t\t\t\tnewDiscount = 0\n\t\t\t} else if (subtotalNumber > CartPage.promoProps.promoTiers[promoTiersLenght - 1].minTotal) {\n\t\t\t\tnewDiscount = CartPage.promoProps.promoTiers[promoTiersLenght - 1].dollarOff\n\t\t\t} else {\n\t\t\t\tfor (let i = 0; i < promoTiersLenght - 1; i++) {\n\t\t\t\t\tif ((subtotalNumber > CartPage.promoProps.promoTiers[i].minTotal) && (subtotalNumber < CartPage.promoProps.promoTiers[i + 1].minTotal)) {\n\t\t\t\t\t\tnewDiscount = CartPage.promoProps.promoTiers[i].dollarOff\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tCartPage.promoProps.discount = newDiscount\n\n\t\t\tif (newDiscount > 0) {\n\n\t\t\t\tconst cartTotalString = `${currency || ''}${Number.parseFloat(subtotal).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) || ''}`\n\n\t\t\t\tconst discountString = newDiscount > 0 \n\t\t\t\t\t? `-${currency || ''}${newDiscount.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` \n\t\t\t\t\t: ''\n\n\t\t\t\tconst totalString = `${currency || ''}${Number.parseFloat((subtotalNumber - newDiscount).toFixed(2)).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) || ''}`\n\n\t\t\t\t// Update subtotals (with discount)\n\t\t\t\tcartTotalElem.innerHTML = cartTotalString\n\t\t\t\tcartTotalHeaderElem.innerHTML = cartTotalString\n\t\t\t\tdiscountElem.innerHTML = discountString\n\t\t\t\tdiscountHeaderElem.innerHTML = discountString\n\t\t\t\ttotalElem.innerHTML = totalString\n\t\t\t\ttotalHeaderElem.innerHTML = totalString\n\n\t\t\t\t// Hide totals without discount\n\t\t\t\t$('#cartULNoDiscount').hide()\n\t\t\t\t$('#hdULNoDiscount').hide()\n\n\t\t\t\t// Show totals with discount\n\t\t\t\t$('#cartULDiscount').show()\n\t\t\t\t$('#hdULDiscount').show()\n\n\t\t\t} else {\n\n\t\t\t\t// Hide totals with discount\n\t\t\t\t$('#cartULDiscount').hide()\n\t\t\t\t$('#hdULDiscount').hide()\n\n\t\t\t\t// Show totals without discount\n\t\t\t\t$('#cartULNoDiscount').show()\n\t\t\t\t$('#hdULNoDiscount').show()\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic saveCartInSalesforce(cartItems: CartItem[]) {\n\n\t\tconst SalesforceAbandonedCartUtils: SalesforceAbandonedCartUtils = ((window as any).SalesforceAbandonedCartUtils)\n\n\t\tif (!SalesforceAbandonedCartUtils) {\n\t\t\tconsole.error('SalesforceAbandonedCartUtils not found.')\n\t\t\treturn\n\t\t}\n\n\t\tSalesforceAbandonedCartUtils.cartOrOrderData = cartItems.map((cartItem) => ({\n\t\t\titem: cartItem.itemId.trim(),\n\t\t\tquantity: cartItem.quantity,\n\t\t\tprice: cartItem.listPrice,\n\t\t\tsale_price: (cartItem.salePrice < cartItem.listPrice) \n\t\t\t\t? cartItem.salePrice \n\t\t\t\t: undefined,\n\t\t\tunique_id: cartItem.alternateId \n\t\t\t\t? cartItem.alternateId \n\t\t\t\t: cartItem.invtId\n\t\t\t\t\t? cartItem.invtId\n\t\t\t\t\t: undefined\n\t\t}))\n\n\t\tSalesforceAbandonedCartUtils.trackCart()\n\t}\n\n\tstatic log(message: string, ...optionalParams: any[]) {\n\t\tif (CartPage.isDevEnvironment) {\n\t\t\tconsole.log(message, ...optionalParams)\n\t\t}\n\t}\n\n\tstatic checkHTML() {\n\n\t\tconst elementsIds = [\n\t\t\t'OCForm1',\n\t\t\t'DIVNoItem',\n\t\t\t'DIVcartSumItemsList',\n\t\t\t'DIVcartbtns',\n\t\t\t'btn_cart_checkout',\n\t\t\t'bubble-cnt',\n\t\t\t'subtotalInUI',\n\t\t\t'hdCashSubtotal',\n\t\t\t'subtotalPointsInUI',\n\t\t\t'hdPointsSubtotal',\n\t\t\t'carttotalInUI',\n\t\t\t'hdCartTotal',\n\t\t\t'discountInUI',\n\t\t\t'hdDiscount',\n\t\t\t'totalInUI',\n\t\t\t'hdTotal',\n\t\t\t'cartPointsSubtotal',\n\t\t\t'hdPointsSubtotalDiscount',\n\t\t]\n\n\t\tconst elementsSelectors = [\n\t\t\t'.Total.price-cash span',\n\t\t\t'.Total.price-points span',\n\t\t]\n\n\t\tfor (const id of elementsIds) {\n\t\t\tif (!document.getElementById(id)) {\n\t\t\t\tconsole.error(`Element \"#${id}\" not found.`)\n\t\t\t}\n\t\t}\n\n\t\tfor (const selector of elementsSelectors) {\n\t\t\tif (!document.querySelector(selector)) {\n\t\t\t\tconsole.error(`Element \"${selector}\" not found.`)\n\t\t\t}\n\t\t}\n\t}\n}\n\ninterface SalesforceAbandonedCartUtils {\n\n\tclientEmail: string\n\tcatalogId: string\n\tsubscriberKey: string\n\tcartOrOrderData: any[]\n\n\t/**\n\t * Defines if should log messages in the console.\n\t */\n\tdebug: boolean\n\n\t/**\n\t * Should be called as soon as possible.\n\t */\n\tsetOrganizationId: (salesforceOrganizationId: string) => void\n\n\t/**\n\t * Should be called as soon as possible.\n\t */\n\tsetCatalogId: (catalogId: string) => void\n\n\t/**\n\t * Should be called after the client enters his email in:\n\t * - The email subscription lightbox\n\t * - The email subscription in the footer\n\t * - The email subscription in the checkout page\n\t */\n\tsetClientEmail: (email: string) => void\n\n\t/**\n\t * Should be called after `setCatalogId` and `setClientEmail`.\n\t */\n\tsetSubscriberKey: () => void\n\n\t/**\n\t * Should be called for each new product added to the cart (after clicking \"Add to cart\").\n\t */\n\taddCartOrOrderData: ({ item, quantity, price, salePrice, uniqueId }: {\n\t\titem: any\n\t\tquantity: any\n\t\tprice: any\n\t\tsalePrice?: any\n\t\tuniqueId: any\n\t}) => void\n\n\t/**\n\t * Sends the cart data to Salesforce.\n\t */\n\ttrackCart: () => void;\n\n\t/**\n\t * Should be called if the order is completed by the client.\n\t */\n\ttrackConversion: () => void\n}","import CartPage from \"./cart\"\nimport API from \"../api\"\n\n(window as any).CartPage = CartPage;\n(window as any).API = API;\n(window as any).GA4Items = []\n\n$(() => CartPage.onPageLoad())"]}