wickes-css2 2.103.0-IC-976-pre-commit-lint.5 → 2.103.0-IC-976-pre-commit-lint.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (694) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/homepage-main.css +1 -1
  3. package/build/css/kitchen-plp-main.css +1 -1
  4. package/build/css/main.css +1 -1
  5. package/build/css/my-account-main-v2.css +1 -1
  6. package/build/css/my-account-main.css +1 -1
  7. package/build/css/pages/page_book-consultant-thank-you-new.css +1 -1
  8. package/build/css/pages/page_my-orders.css +1 -1
  9. package/build/css/pages/page_pre_home_thank-you.css +1 -1
  10. package/build/css/pages/page_top-rated.css +1 -1
  11. package/build/css/pdp-main-before-combine.css +1 -1
  12. package/build/css/pdp-main-non-critical.css +1 -1
  13. package/build/css/pdp-main.css +1 -1
  14. package/build/css/plp-main.css +1 -1
  15. package/build/css/store-locator-main.css +1 -1
  16. package/build/img/TradePaint.svg +14 -42
  17. package/build/img/apple-pay.svg +7 -12
  18. package/build/img/big-white-apple-pay.svg +5 -10
  19. package/build/img/billie-logo.svg +2 -4
  20. package/build/img/billie-modal.svg +2 -4
  21. package/build/img/billie-pdp.svg +9 -12
  22. package/build/img/billie-spinner.svg +3 -5
  23. package/build/img/billie.svg +1 -3
  24. package/build/img/clearpay-logo.svg +1 -6
  25. package/build/img/clearpay-spinner.svg +1 -4
  26. package/build/img/energy-efficiency/energy-marker.svg +1 -12
  27. package/build/img/google-spinner.svg +7 -14
  28. package/build/img/googlepay.svg +12 -23
  29. package/build/img/home-banner_arrow.svg +1 -7
  30. package/build/img/ic-menu.svg +1 -7
  31. package/build/img/ic_info_big.svg +1 -4
  32. package/build/img/klarna-big.svg +9 -18
  33. package/build/img/klarna-sm.svg +2 -5
  34. package/build/img/klarna-spinner.svg +1 -3
  35. package/build/img/logo-klarna.svg +2 -5
  36. package/build/img/mastercard.svg +3 -6
  37. package/build/img/payapal_text.svg +1 -6
  38. package/build/img/payment/checkout/applepay.svg +7 -12
  39. package/build/img/payment/checkout/billie.svg +2 -4
  40. package/build/img/payment/checkout/clearpay.svg +1 -5
  41. package/build/img/payment/checkout/googlepay.svg +12 -23
  42. package/build/img/payment/checkout/mastercard.svg +1 -13
  43. package/build/img/payment/checkout/paypal.svg +1 -37
  44. package/build/img/payment/checkout/visa.svg +1 -8
  45. package/build/img/payment/footer/applepay.svg +7 -12
  46. package/build/img/payment/footer/billie.svg +1 -3
  47. package/build/img/payment/footer/clearpay.svg +10 -18
  48. package/build/img/payment/footer/googlepay.svg +12 -23
  49. package/build/img/payment/footer/mastercard.svg +1 -13
  50. package/build/img/payment/footer/paypal.svg +1 -37
  51. package/build/img/payment/footer/visa.svg +1 -8
  52. package/build/img/paypal.svg +1 -8
  53. package/build/img/paypal_logo_loader_paypal.svg +1 -4
  54. package/build/img/paypal_logo_loader_pp.svg +1 -10
  55. package/build/img/placeholders/full-width-img.svg +1 -9
  56. package/build/img/placeholders/img-2-to-1.svg +1 -9
  57. package/build/img/placeholders/img-3-to-4.svg +1 -9
  58. package/build/img/placeholders/img-4-to-3.svg +1 -9
  59. package/build/img/proposition_arrow_click.svg +1 -7
  60. package/build/img/proposition_delivery.svg +1 -7
  61. package/build/img/proposition_price.svg +1 -7
  62. package/build/img/proposition_returns.svg +1 -7
  63. package/build/img/social-icon-facebook.svg +1 -8
  64. package/build/img/social-icon-instagram.svg +1 -15
  65. package/build/img/social-icon-pinterest.svg +1 -7
  66. package/build/img/socials/facebook.svg +1 -5
  67. package/build/img/socials/instagram.svg +1 -5
  68. package/build/img/socials/pinterest.svg +1 -5
  69. package/build/img/socials/tiktok.svg +1 -5
  70. package/build/img/socials/x-twitter.svg +1 -5
  71. package/build/img/socials/youtube.svg +1 -5
  72. package/build/img/socials_facebook_color.svg +1 -7
  73. package/build/img/socials_facebook_white_blue_color.svg +1 -5
  74. package/build/img/socials_info_big.svg +1 -7
  75. package/build/img/socials_instagram_color.svg +1 -16
  76. package/build/img/socials_pinterest_color.svg +1 -4
  77. package/build/img/socials_twitter_color.svg +1 -4
  78. package/build/img/socials_whatsapp_color.svg +1 -5
  79. package/build/img/socials_youtube_color.svg +1 -4
  80. package/build/img/stars.svg +1 -8
  81. package/build/img/visa-logo.svg +1 -3
  82. package/build/img/wickes-dc-logo.svg +13 -17
  83. package/build/img/wickes-logo-v2.svg +1 -15
  84. package/build/img/wickes-logo.svg +1 -36
  85. package/build/img/young-minds.svg +8 -10
  86. package/build/js/account-members.min.js +1 -1
  87. package/build/js/basket.min.js +2 -2
  88. package/build/js/bootstrap.bundle.min.js +1 -1
  89. package/build/js/bundle.min.js +1 -1
  90. package/build/js/checkout.min.js +2 -2
  91. package/build/js/emulation.min.js +10325 -11858
  92. package/build/js/general.bundle.min.js +1 -1
  93. package/build/js/iframeResizer.min.js +2 -2
  94. package/build/js/kitchen/kitchen-plp.min.js +1 -1
  95. package/build/js/merged-checkout.min.js +2 -2
  96. package/build/js/my-orders.min.js +1 -1
  97. package/build/js/page/accordion.js +29 -31
  98. package/build/js/page/account-deletion.js +13 -13
  99. package/build/js/page/account-hub.js +119 -128
  100. package/build/js/page/account-members.js +216 -229
  101. package/build/js/page/address-book.js +184 -186
  102. package/build/js/page/basket/add-project-list-id.js +130 -158
  103. package/build/js/page/basket/clearpay.js +17 -17
  104. package/build/js/page/basket/display-energy-efficiency.js +13 -13
  105. package/build/js/page/basket/gtm.js +54 -60
  106. package/build/js/page/basket/klarna.js +2 -2
  107. package/build/js/page/basket/paypal.js +33 -33
  108. package/build/js/page/basket/session-sync.js +5 -5
  109. package/build/js/page/basket/summary-mobile.js +16 -16
  110. package/build/js/page/basket/wisdom.js +39 -54
  111. package/build/js/page/basket-v2.js +261 -415
  112. package/build/js/page/basket.js +39 -42
  113. package/build/js/page/billie-business-type.js +22 -22
  114. package/build/js/page/business-account-form.js +12 -12
  115. package/build/js/page/business-pages.js +13 -0
  116. package/build/js/page/buying-guides-guttering.js +3 -3
  117. package/build/js/page/category-landing.js +11 -18
  118. package/build/js/page/change-password.js +99 -100
  119. package/build/js/page/checkout-confirmation-new.js +70 -127
  120. package/build/js/page/checkout-confirmation.js +6 -6
  121. package/build/js/page/checkout-delivery-address.js +32 -35
  122. package/build/js/page/checkout-delivery-details-loader.js +5 -2
  123. package/build/js/page/checkout-edit-address.js +1 -1
  124. package/build/js/page/checkout-payment-details.js +172 -170
  125. package/build/js/page/checkout-sign-in.js +11 -15
  126. package/build/js/page/checkout.js +1 -1
  127. package/build/js/page/cms-homepage.js +45 -87
  128. package/build/js/page/components/charity.js +120 -114
  129. package/build/js/page/components/csrf.js +4 -4
  130. package/build/js/page/components/discounts.js +39 -39
  131. package/build/js/page/components/favourite-product.js +113 -125
  132. package/build/js/page/components/global-search.js +192 -204
  133. package/build/js/page/components/modal-observer.js +46 -43
  134. package/build/js/page/components/order-summary.js +22 -26
  135. package/build/js/page/components/pagination.js +117 -124
  136. package/build/js/page/components/retry-action.js +2 -2
  137. package/build/js/page/components/saving-shopping-list.js +314 -381
  138. package/build/js/page/components/sticky-order-observer.js +39 -36
  139. package/build/js/page/components/voucher.js +47 -46
  140. package/build/js/page/copy-project-id.js +23 -23
  141. package/build/js/page/countdown-timer.js +6 -6
  142. package/build/js/page/default-store.js +34 -40
  143. package/build/js/page/design-appointment.js +3 -6
  144. package/build/js/page/energy-efficiency.js +25 -39
  145. package/build/js/page/finance-tabs.js +4 -4
  146. package/build/js/page/general/cookie.js +10 -20
  147. package/build/js/page/installation/calculator.js +16 -12
  148. package/build/js/page/installation/fi.js +71 -76
  149. package/build/js/page/installation/generic.js +20 -21
  150. package/build/js/page/installation/installation.js +22 -36
  151. package/build/js/page/installation/pdp-generic.js +9 -3
  152. package/build/js/page/installation/ti.js +24 -26
  153. package/build/js/page/installer-files-form.js +76 -98
  154. package/build/js/page/installer-form.js +447 -502
  155. package/build/js/page/installer-validation.js +761 -848
  156. package/build/js/page/instore-checkout.js +2 -2
  157. package/build/js/page/kitchen/card-carousel.js +21 -21
  158. package/build/js/page/kitchen/colour-swatches.js +149 -153
  159. package/build/js/page/kitchen/kitchen-card.js +64 -62
  160. package/build/js/page/kitchen/mobile-nav.js +27 -26
  161. package/build/js/page/kitchen/plp-filters-chips.js +70 -72
  162. package/build/js/page/kitchen/plp-filters-mobile.js +60 -64
  163. package/build/js/page/kitchen/plp-filters-panel.js +102 -106
  164. package/build/js/page/kitchen/plp-filters-utils.js +53 -54
  165. package/build/js/page/kitchen/plp-filters.js +194 -210
  166. package/build/js/page/kitchen/sort-by.js +149 -149
  167. package/build/js/page/klarna-modal-scroll-disable.js +4 -4
  168. package/build/js/page/merged-checkout.js +3 -6
  169. package/build/js/page/my-account.js +46 -44
  170. package/build/js/page/my-orders.js +149 -153
  171. package/build/js/page/online-exclusive.js +31 -28
  172. package/build/js/page/pdp-favourite.js +4 -4
  173. package/build/js/page/pdp-tile.js +4 -0
  174. package/build/js/page/pdp.js +37 -41
  175. package/build/js/page/personal-details.js +277 -307
  176. package/build/js/page/plp-cards-v2.js +25 -39
  177. package/build/js/page/plp-favourite.js +9 -9
  178. package/build/js/page/plp-img-v2.js +3 -2
  179. package/build/js/page/plp-load-more.js +66 -66
  180. package/build/js/page/plp.js +10 -9
  181. package/build/js/page/pre-home.js +144 -159
  182. package/build/js/page/project-list/generate-project-id.js +68 -77
  183. package/build/js/page/project-list-note.js +232 -234
  184. package/build/js/page/project-list.js +3 -2
  185. package/build/js/page/quiz.js +292 -292
  186. package/build/js/page/select-address.js +14 -27
  187. package/build/js/page/smart-banner.js +5 -8
  188. package/build/js/page/ti.js +42 -67
  189. package/build/js/page/top-rated.js +29 -36
  190. package/build/js/page/track-my-order.js +156 -172
  191. package/build/js/page/tradePro-rewards.js +36 -34
  192. package/build/js/page/utils/array-utils.js +10 -13
  193. package/build/js/page/utils/copy-to-clipboard.js +45 -45
  194. package/build/js/page/utils/create-event.js +8 -8
  195. package/build/js/page/utils/errorMesages.js +11 -12
  196. package/build/js/page/utils/helpers.js +9 -14
  197. package/build/js/page/utils/http-action.js +5 -4
  198. package/build/js/page/utils/loader.js +5 -5
  199. package/build/js/page/utils/routes.js +9 -9
  200. package/build/js/page/utils/url-query.js +4 -4
  201. package/build/js/page/utils/validation.js +96 -93
  202. package/build/js/page/wickes-dc.js +44 -51
  203. package/build/js/page/wismo.js +12 -12
  204. package/build/js/page/your-details.js +41 -77
  205. package/build/js/pdp-favourite-product.bundle.min.js +1 -1
  206. package/build/js/pdp.bundle.min.js +1 -1
  207. package/build/js/personal-details.min.js +1 -1
  208. package/build/js/plp-favourite-product.bundle.min.js +1 -1
  209. package/build/js/plp.bundle.min.js +1 -1
  210. package/build/js/project-list.min.js +16 -16
  211. package/build/js/pstrength.min.js +34 -28
  212. package/build/js/wickers.json +2069 -2069
  213. package/package.json +3 -8
  214. package/src/data/data_account-families.json +1 -1
  215. package/src/data/data_bathroom-installation.json +1 -1
  216. package/src/data/data_bathroom-ranges.json +14 -14
  217. package/src/data/data_business-pages.json +27 -27
  218. package/src/data/data_calendar.json +1 -7
  219. package/src/data/data_checkout-order.json +306 -306
  220. package/src/data/data_contact-us-form.json +17 -17
  221. package/src/data/data_contact-us-reasons.json +16 -16
  222. package/src/data/data_design-appointment.json +12 -27
  223. package/src/data/data_discounts.json +4 -4
  224. package/src/data/data_fdl-new-product.json +6 -6
  225. package/src/data/data_fdl-product.json +87 -75
  226. package/src/data/data_flooring-installation.json +6 -6
  227. package/src/data/data_great-quality.json +2 -2
  228. package/src/data/data_heating-plumbing.json +2 -2
  229. package/src/data/data_how-to_fit-corrugated-sheeting.json +258 -245
  230. package/src/data/data_journey-price-lists.json +1 -1
  231. package/src/data/data_kb-brouchure-requests.json +10 -10
  232. package/src/data/data_kitchen-brochure-request.json +1 -1
  233. package/src/data/data_kitchen-cabinets.json +1 -1
  234. package/src/data/data_kitchen-plp.json +18 -24
  235. package/src/data/data_kitchen-ranges.json +23 -21
  236. package/src/data/data_latest-offers.json +1044 -1044
  237. package/src/data/data_locators.json +132 -130
  238. package/src/data/data_next-steps.json +20 -20
  239. package/src/data/data_notification-page.json +24 -72
  240. package/src/data/data_online-ranges.json +1 -1
  241. package/src/data/data_page-category-hub.json +1 -1
  242. package/src/data/data_page-confirmation.json +9 -9
  243. package/src/data/data_page-project-multiple-list.json +18 -18
  244. package/src/data/data_pre-home.json +1082 -1090
  245. package/src/data/data_price-event-new.json +1 -1
  246. package/src/data/data_saved-project-list.json +8 -8
  247. package/src/data/data_seo-widgets.json +31 -31
  248. package/src/data/data_shopping-cart-v2.json +2 -1
  249. package/src/data/data_shopping-cart-with-energy.json +229 -229
  250. package/src/data/data_storage-solutions.json +99 -99
  251. package/src/data/data_tile-installation.json +1 -1
  252. package/src/data/data_top-rated-perfect-product.json +204 -204
  253. package/src/data/data_trade-essentials.json +1 -1
  254. package/src/data/data_tradePro_cards.json +1 -0
  255. package/src/data/data_user-address-saved.json +33 -33
  256. package/src/data/data_voucher_tradePro.json +5 -5
  257. package/src/data/data_wismo.json +12 -12
  258. package/src/data/how-to-guides/data-how_to_fit-bath-and-taps.json +2 -2
  259. package/src/data/how-to-guides/data_how-to-change-door-window-furniture.json +274 -274
  260. package/src/data/how-to-guides/data_how-to-fit-door-locks.json +8 -3
  261. package/src/data/how-to-guides/data_how-to-fit-worktop.json +13 -5
  262. package/src/data/how-to-guides/data_how-to-fit_basin-and-taps.json +6 -2
  263. package/src/data/how-to-guides/data_how-to-fit_bath-and-taps.json +10 -3
  264. package/src/data/how-to-guides/data_how-to-plumb-a-kitchen-appliance.json +7 -3
  265. package/src/data/how-to-guides/data_how-to-unblock-sink.json +7 -5
  266. package/src/data/how-to-guides/data_how-to_bleed-radiator.json +134 -134
  267. package/src/data/how-to-guides/data_how-to_build-raised-deck.json +4 -4
  268. package/src/data/how-to-guides/data_how-to_change-socket.json +2 -2
  269. package/src/data/how-to-guides/data_how-to_fit-guttering.json +282 -282
  270. package/src/data/how-to-guides/data_how-to_fit-toilet.json +2 -2
  271. package/src/data/how-to-guides/data_how-to_fit-wall-tiles.json +23 -77
  272. package/src/data/how-to-guides/data_how-to_fit-worktops.json +4 -3
  273. package/src/data/how-to-guides/data_how-to_fix-leaking-sink.json +3 -3
  274. package/src/data/how-to-guides/data_how-to_fix-leaking-tap.json +3 -3
  275. package/src/data/how-to-guides/data_how-to_garden-calendar.json +5 -4
  276. package/src/data/how-to-guides/data_how-to_grow-fruit-veg.json +3 -3
  277. package/src/data/how-to-guides/data_how-to_hang-internal-door.json +266 -266
  278. package/src/data/how-to-guides/data_how-to_install-artificial-grass.json +4 -3
  279. package/src/data/how-to-guides/data_how-to_install-base-wall-cabinets.json +4 -3
  280. package/src/data/how-to-guides/data_how-to_install-composite-decking.json +14 -6
  281. package/src/data/how-to-guides/data_how-to_install-deck-lighting.json +7 -4
  282. package/src/data/how-to-guides/data_how-to_install-fence.json +5 -5
  283. package/src/data/how-to-guides/data_how-to_insulate-loft.json +2 -2
  284. package/src/data/how-to-guides/data_how-to_lay-deck.json +6 -4
  285. package/src/data/how-to-guides/data_how-to_lay-laminate-flooring.json +8 -3
  286. package/src/data/how-to-guides/data_how-to_lay-maintain-turf.json +4 -4
  287. package/src/data/how-to-guides/data_how-to_lay-path.json +6 -5
  288. package/src/data/how-to-guides/data_how-to_lay-patio.json +5 -5
  289. package/src/data/how-to-guides/data_how-to_lay-solid-wood-flooring.json +8 -0
  290. package/src/data/how-to-guides/data_how-to_lay-vinyl-carpet-tiles.json +3 -3
  291. package/src/data/how-to-guides/data_how-to_paint-a-room.json +5 -5
  292. package/src/data/how-to-guides/data_how-to_plaster-wall.json +6 -8
  293. package/src/data/how-to-guides/data_how-to_plumb-kitchen-appliances.json +3 -3
  294. package/src/data/how-to-guides/data_how-to_prepare-interior-woodwork.json +5 -5
  295. package/src/data/how-to-guides/data_how-to_prepare-paint-exterior-walls.json +1 -1
  296. package/src/data/how-to-guides/data_how-to_prepare-wall-and-ceilings.json +9 -9
  297. package/src/data/how-to-guides/data_how-to_put_up_shelf.json +4 -4
  298. package/src/data/how-to-guides/data_how-to_remove-replace-tiles.json +3 -3
  299. package/src/data/how-to-guides/data_how-to_repair-wall.json +385 -384
  300. package/src/data/how-to-guides/data_how-to_tile-bathroom.json +4 -3
  301. package/src/data/how-to-guides/data_how-to_unblock-sink.json +3 -3
  302. package/src/data/how-to-guides/data_install-composite-decking.json +4 -4
  303. package/src/data/how-to-guides/data_planting-techniques.json +3 -3
  304. package/src/data/how-to-guides/fit-roofing-shingles.json +4 -4
  305. package/src/data/how-to-guides/hubs/data_how-to_hub_home.json +1 -1
  306. package/src/data/my-account/data_address-book.json +3 -12
  307. package/src/data/my-account/data_my-order.json +1 -1
  308. package/src/data/my-account/data_personal-details.json +8 -32
  309. package/src/data/navigation.json +805 -1016
  310. package/src/data/page_how-to-choose-your-doors.json +2 -1
  311. package/src/data/public/wickers.json +2069 -2069
  312. package/src/img/TradePaint.svg +14 -42
  313. package/src/img/apple-pay.svg +7 -12
  314. package/src/img/big-white-apple-pay.svg +5 -10
  315. package/src/img/billie-logo.svg +2 -4
  316. package/src/img/billie-modal.svg +2 -4
  317. package/src/img/billie-pdp.svg +9 -12
  318. package/src/img/billie-spinner.svg +3 -5
  319. package/src/img/billie.svg +1 -3
  320. package/src/img/clearpay-logo.svg +1 -6
  321. package/src/img/clearpay-spinner.svg +1 -4
  322. package/src/img/energy-efficiency/energy-marker.svg +1 -12
  323. package/src/img/google-spinner.svg +7 -14
  324. package/src/img/googlepay.svg +12 -23
  325. package/src/img/home-banner_arrow.svg +1 -7
  326. package/src/img/ic-menu.svg +1 -7
  327. package/src/img/ic_info_big.svg +1 -4
  328. package/src/img/klarna-big.svg +9 -18
  329. package/src/img/klarna-sm.svg +2 -5
  330. package/src/img/klarna-spinner.svg +1 -3
  331. package/src/img/logo-klarna.svg +2 -5
  332. package/src/img/mastercard.svg +3 -6
  333. package/src/img/payapal_text.svg +1 -6
  334. package/src/img/payment/checkout/applepay.svg +7 -12
  335. package/src/img/payment/checkout/billie.svg +2 -4
  336. package/src/img/payment/checkout/clearpay.svg +1 -5
  337. package/src/img/payment/checkout/googlepay.svg +12 -23
  338. package/src/img/payment/checkout/mastercard.svg +1 -13
  339. package/src/img/payment/checkout/paypal.svg +1 -37
  340. package/src/img/payment/checkout/visa.svg +1 -8
  341. package/src/img/payment/footer/applepay.svg +7 -12
  342. package/src/img/payment/footer/billie.svg +1 -3
  343. package/src/img/payment/footer/clearpay.svg +10 -18
  344. package/src/img/payment/footer/googlepay.svg +12 -23
  345. package/src/img/payment/footer/mastercard.svg +1 -13
  346. package/src/img/payment/footer/paypal.svg +1 -37
  347. package/src/img/payment/footer/visa.svg +1 -8
  348. package/src/img/paypal.svg +1 -8
  349. package/src/img/paypal_logo_loader_paypal.svg +1 -4
  350. package/src/img/paypal_logo_loader_pp.svg +1 -10
  351. package/src/img/placeholders/full-width-img.svg +1 -9
  352. package/src/img/placeholders/img-2-to-1.svg +1 -9
  353. package/src/img/placeholders/img-3-to-4.svg +1 -9
  354. package/src/img/placeholders/img-4-to-3.svg +1 -9
  355. package/src/img/proposition_arrow_click.svg +1 -7
  356. package/src/img/proposition_delivery.svg +1 -7
  357. package/src/img/proposition_price.svg +1 -7
  358. package/src/img/proposition_returns.svg +1 -7
  359. package/src/img/social-icon-facebook.svg +1 -8
  360. package/src/img/social-icon-instagram.svg +1 -15
  361. package/src/img/social-icon-pinterest.svg +1 -7
  362. package/src/img/socials/facebook.svg +1 -5
  363. package/src/img/socials/instagram.svg +1 -5
  364. package/src/img/socials/pinterest.svg +1 -5
  365. package/src/img/socials/tiktok.svg +1 -5
  366. package/src/img/socials/x-twitter.svg +1 -5
  367. package/src/img/socials/youtube.svg +1 -5
  368. package/src/img/socials_facebook_color.svg +1 -7
  369. package/src/img/socials_facebook_white_blue_color.svg +1 -5
  370. package/src/img/socials_info_big.svg +1 -7
  371. package/src/img/socials_instagram_color.svg +1 -16
  372. package/src/img/socials_pinterest_color.svg +1 -4
  373. package/src/img/socials_twitter_color.svg +1 -4
  374. package/src/img/socials_whatsapp_color.svg +1 -5
  375. package/src/img/socials_youtube_color.svg +1 -4
  376. package/src/img/stars.svg +1 -8
  377. package/src/img/visa-logo.svg +1 -3
  378. package/src/img/wickes-dc-logo.svg +13 -17
  379. package/src/img/wickes-logo-v2.svg +1 -15
  380. package/src/img/wickes-logo.svg +1 -36
  381. package/src/img/young-minds.svg +8 -10
  382. package/src/js/components/anchors-scroll.js +6 -9
  383. package/src/js/components/badge-cashback.js +6 -5
  384. package/src/js/components/banner-placement-manager.js +232 -269
  385. package/src/js/components/card-color-slider.js +29 -29
  386. package/src/js/components/card-slider.js +73 -78
  387. package/src/js/components/cards-slider.js +58 -64
  388. package/src/js/components/charity-donations.js +4 -3
  389. package/src/js/components/checkout_your-details.js +67 -68
  390. package/src/js/components/clamp.js +32 -47
  391. package/src/js/components/click-disable.js +7 -7
  392. package/src/js/components/date-selection.js +37 -50
  393. package/src/js/components/file-loader.js +33 -33
  394. package/src/js/components/finance.js +4 -3
  395. package/src/js/components/flatpickr.js +149 -135
  396. package/src/js/components/gallery-pdp.js +98 -97
  397. package/src/js/components/gallery-range.js +109 -107
  398. package/src/js/components/general/accordion.js +29 -31
  399. package/src/js/components/general/back-to-top.js +37 -40
  400. package/src/js/components/general/backdrop.js +15 -15
  401. package/src/js/components/general/cart-slider.js +12 -15
  402. package/src/js/components/general/clamp-content.js +80 -80
  403. package/src/js/components/general/clamp.js +38 -53
  404. package/src/js/components/general/clear-input.js +25 -25
  405. package/src/js/components/general/cookie-chat-back.js +13 -19
  406. package/src/js/components/general/cookies-policy.js +5 -5
  407. package/src/js/components/general/create-popup-slider.js +175 -169
  408. package/src/js/components/general/device-type.js +3 -3
  409. package/src/js/components/general/footer.js +52 -82
  410. package/src/js/components/general/handleAccordion.js +28 -28
  411. package/src/js/components/general/is-trade-pro.js +9 -15
  412. package/src/js/components/general/main-nav.js +8 -8
  413. package/src/js/components/general/main-navigation.js +73 -67
  414. package/src/js/components/general/mini-basket-slider.js +6 -6
  415. package/src/js/components/general/notification.js +40 -58
  416. package/src/js/components/general/offer-banner.js +58 -58
  417. package/src/js/components/general/scroll-disable.js +44 -45
  418. package/src/js/components/general/search-filter.js +16 -16
  419. package/src/js/components/general/search.js +29 -27
  420. package/src/js/components/general/snack-bar.js +11 -20
  421. package/src/js/components/general/sticky_header.js +7 -8
  422. package/src/js/components/general/switchVat.js +154 -154
  423. package/src/js/components/general/text-clamp.js +16 -14
  424. package/src/js/components/general/tooltips.js +2 -2
  425. package/src/js/components/general/validation.js +41 -47
  426. package/src/js/components/leave-event.js +113 -116
  427. package/src/js/components/loader.js +11 -11
  428. package/src/js/components/modal-slider.js +52 -57
  429. package/src/js/components/order-item-cc.js +69 -59
  430. package/src/js/components/pdp-read-more.js +11 -7
  431. package/src/js/components/pdp-video.js +2 -2
  432. package/src/js/components/pwdstrength.js +17 -13
  433. package/src/js/components/range-cards.js +12 -12
  434. package/src/js/components/range-types.js +11 -11
  435. package/src/js/components/scrollbar.js +20 -23
  436. package/src/js/components/share-project-list.js +5 -4
  437. package/src/js/components/show-more-less.js +2 -2
  438. package/src/js/components/similar-slider.js +10 -19
  439. package/src/js/components/sticky-aside.js +83 -84
  440. package/src/js/components/store-locator-facilities.js +15 -17
  441. package/src/js/components/tabs.js +17 -16
  442. package/src/js/components/toggle-password-visibility.js +50 -50
  443. package/src/js/components/tradepro-notification-copy.js +6 -5
  444. package/src/js/components/voucher-remove.js +2 -1
  445. package/src/js/components/wisdom.js +26 -35
  446. package/src/js/components/zoom.js +59 -67
  447. package/src/js/emulation/account-hub.js +40 -40
  448. package/src/js/emulation/account-members.js +36 -37
  449. package/src/js/emulation/add-project-list-id-local.js +18 -24
  450. package/src/js/emulation/add.to.any.customisation.js +38 -44
  451. package/src/js/emulation/autocomplete.js +114 -123
  452. package/src/js/emulation/banner-placement-manager.js +35 -40
  453. package/src/js/emulation/basket-data.js +2037 -2123
  454. package/src/js/emulation/basket.js +57 -58
  455. package/src/js/emulation/big-wins.js +903 -1079
  456. package/src/js/emulation/chat-bot.js +14 -14
  457. package/src/js/emulation/checkLocalEnv.js +4 -4
  458. package/src/js/emulation/checkout-delivery-details.js +25 -28
  459. package/src/js/emulation/checkout-payment-details.js +37 -46
  460. package/src/js/emulation/checkout-sign-in-emulation.js +33 -36
  461. package/src/js/emulation/checkout_your-details.js +46 -47
  462. package/src/js/emulation/click-and-collect-modal.js +20 -18
  463. package/src/js/emulation/cnc-notifications.js +10 -9
  464. package/src/js/emulation/custom-slider-emulation.js +17 -16
  465. package/src/js/emulation/date-selection.js +25 -25
  466. package/src/js/emulation/default-store.js +86 -92
  467. package/src/js/emulation/favourite-product-local.js +29 -31
  468. package/src/js/emulation/find-address.js +42 -41
  469. package/src/js/emulation/footer-date.js +3 -6
  470. package/src/js/emulation/forms.js +308 -352
  471. package/src/js/emulation/generate-project-id-local.js +23 -26
  472. package/src/js/emulation/global-search-local.js +122 -125
  473. package/src/js/emulation/google-maps-store-info.js +29 -25
  474. package/src/js/emulation/home-movers.js +49 -47
  475. package/src/js/emulation/input-file.js +558 -638
  476. package/src/js/emulation/kitchen-plp-data.js +3670 -4528
  477. package/src/js/emulation/loadMore.js +14 -13
  478. package/src/js/emulation/main-nav-data.js +848 -1058
  479. package/src/js/emulation/mini-basket.js +34 -34
  480. package/src/js/emulation/mini-cart.js +11 -12
  481. package/src/js/emulation/mock.js +23 -23
  482. package/src/js/emulation/my-orders-local.js +30 -30
  483. package/src/js/emulation/paymentLoader.js +16 -16
  484. package/src/js/emulation/pdf-file-loader.js +90 -88
  485. package/src/js/emulation/pdp.js +12 -18
  486. package/src/js/emulation/personal-details-local.js +56 -57
  487. package/src/js/emulation/plp-load-more.js +13 -16
  488. package/src/js/emulation/popover-mini-basket.js +238 -244
  489. package/src/js/emulation/project-list-multiple.js +18 -24
  490. package/src/js/emulation/project-list-pdp.js +316 -319
  491. package/src/js/emulation/project-list-print.js +40 -43
  492. package/src/js/emulation/quiz-local.js +11 -11
  493. package/src/js/emulation/reference-field.js +7 -2
  494. package/src/js/emulation/selectable.js +18 -19
  495. package/src/js/emulation/shopping-list.js +17 -19
  496. package/src/js/emulation/sign-up.js +21 -17
  497. package/src/js/emulation/store-locator-list.js +13 -11
  498. package/src/js/emulation/switchCalendar.js +8 -12
  499. package/src/js/emulation/total-amount-loader.js +13 -14
  500. package/src/js/emulation/user.js +32 -32
  501. package/src/js/emulation/vat-toggle.js +1 -1
  502. package/src/js/emulation/wickes-responsive.js +189 -178
  503. package/src/js/emulation/wismo-details.js +30 -22
  504. package/src/js/emulation/your-details.js +22 -34
  505. package/src/js/helpers/jquery.cookiebar.js +192 -270
  506. package/src/js/helpers/responsive.js +69 -69
  507. package/src/js/helpers/safari-back.js +4 -4
  508. package/src/js/libs/bootstrap.bundle.min.js +1 -1
  509. package/src/js/libs/iframeResizer.min.js +2 -2
  510. package/src/js/libs/jquery.pstrength.custom-1.2.0.js +34 -28
  511. package/src/js/libs/simplebar.js +3 -3
  512. package/src/js/page/accordion.js +29 -31
  513. package/src/js/page/account-deletion.js +13 -13
  514. package/src/js/page/account-hub.js +119 -128
  515. package/src/js/page/account-members.js +216 -229
  516. package/src/js/page/address-book.js +184 -186
  517. package/src/js/page/basket/add-project-list-id.js +130 -158
  518. package/src/js/page/basket/clearpay.js +17 -17
  519. package/src/js/page/basket/display-energy-efficiency.js +13 -13
  520. package/src/js/page/basket/gtm.js +54 -60
  521. package/src/js/page/basket/klarna.js +2 -2
  522. package/src/js/page/basket/paypal.js +33 -33
  523. package/src/js/page/basket/session-sync.js +5 -5
  524. package/src/js/page/basket/summary-mobile.js +16 -16
  525. package/src/js/page/basket/wisdom.js +39 -54
  526. package/src/js/page/basket-v2.js +261 -415
  527. package/src/js/page/basket.js +39 -42
  528. package/src/js/page/billie-business-type.js +22 -22
  529. package/src/js/page/business-account-form.js +12 -12
  530. package/src/js/page/business-pages.js +13 -0
  531. package/src/js/page/buying-guides-guttering.js +3 -3
  532. package/src/js/page/category-landing.js +11 -18
  533. package/src/js/page/change-password.js +99 -100
  534. package/src/js/page/checkout-confirmation-new.js +70 -127
  535. package/src/js/page/checkout-confirmation.js +6 -6
  536. package/src/js/page/checkout-delivery-address.js +32 -35
  537. package/src/js/page/checkout-delivery-details-loader.js +5 -2
  538. package/src/js/page/checkout-edit-address.js +1 -1
  539. package/src/js/page/checkout-payment-details.js +172 -170
  540. package/src/js/page/checkout-sign-in.js +11 -15
  541. package/src/js/page/checkout.js +1 -1
  542. package/src/js/page/cms-homepage.js +45 -87
  543. package/src/js/page/components/charity.js +120 -114
  544. package/src/js/page/components/csrf.js +4 -4
  545. package/src/js/page/components/discounts.js +39 -39
  546. package/src/js/page/components/favourite-product.js +113 -125
  547. package/src/js/page/components/global-search.js +192 -204
  548. package/src/js/page/components/modal-observer.js +46 -43
  549. package/src/js/page/components/order-summary.js +22 -26
  550. package/src/js/page/components/pagination.js +117 -124
  551. package/src/js/page/components/retry-action.js +2 -2
  552. package/src/js/page/components/saving-shopping-list.js +314 -381
  553. package/src/js/page/components/sticky-order-observer.js +39 -36
  554. package/src/js/page/components/voucher.js +47 -46
  555. package/src/js/page/copy-project-id.js +23 -23
  556. package/src/js/page/countdown-timer.js +6 -6
  557. package/src/js/page/default-store.js +34 -40
  558. package/src/js/page/design-appointment.js +3 -6
  559. package/src/js/page/energy-efficiency.js +25 -39
  560. package/src/js/page/finance-tabs.js +4 -4
  561. package/src/js/page/general/cookie.js +10 -20
  562. package/src/js/page/installation/calculator.js +16 -12
  563. package/src/js/page/installation/fi.js +71 -76
  564. package/src/js/page/installation/generic.js +20 -21
  565. package/src/js/page/installation/installation.js +22 -36
  566. package/src/js/page/installation/pdp-generic.js +9 -3
  567. package/src/js/page/installation/ti.js +24 -26
  568. package/src/js/page/installer-files-form.js +76 -98
  569. package/src/js/page/installer-form.js +447 -502
  570. package/src/js/page/installer-validation.js +761 -848
  571. package/src/js/page/instore-checkout.js +2 -2
  572. package/src/js/page/kitchen/card-carousel.js +21 -21
  573. package/src/js/page/kitchen/colour-swatches.js +149 -153
  574. package/src/js/page/kitchen/kitchen-card.js +64 -62
  575. package/src/js/page/kitchen/mobile-nav.js +27 -26
  576. package/src/js/page/kitchen/plp-filters-chips.js +70 -72
  577. package/src/js/page/kitchen/plp-filters-mobile.js +60 -64
  578. package/src/js/page/kitchen/plp-filters-panel.js +102 -106
  579. package/src/js/page/kitchen/plp-filters-utils.js +53 -54
  580. package/src/js/page/kitchen/plp-filters.js +194 -210
  581. package/src/js/page/kitchen/sort-by.js +149 -149
  582. package/src/js/page/klarna-modal-scroll-disable.js +4 -4
  583. package/src/js/page/merged-checkout.js +3 -6
  584. package/src/js/page/my-account.js +46 -44
  585. package/src/js/page/my-orders.js +149 -153
  586. package/src/js/page/online-exclusive.js +31 -28
  587. package/src/js/page/pdp-favourite.js +4 -4
  588. package/src/js/page/pdp-tile.js +4 -0
  589. package/src/js/page/pdp.js +37 -41
  590. package/src/js/page/personal-details.js +277 -307
  591. package/src/js/page/plp-cards-v2.js +25 -39
  592. package/src/js/page/plp-favourite.js +9 -9
  593. package/src/js/page/plp-img-v2.js +3 -2
  594. package/src/js/page/plp-load-more.js +66 -66
  595. package/src/js/page/plp.js +10 -9
  596. package/src/js/page/pre-home.js +144 -159
  597. package/src/js/page/project-list/generate-project-id.js +68 -77
  598. package/src/js/page/project-list-note.js +232 -234
  599. package/src/js/page/project-list.js +3 -2
  600. package/src/js/page/quiz.js +292 -292
  601. package/src/js/page/select-address.js +14 -27
  602. package/src/js/page/smart-banner.js +5 -8
  603. package/src/js/page/ti.js +42 -67
  604. package/src/js/page/top-rated.js +29 -36
  605. package/src/js/page/track-my-order.js +156 -172
  606. package/src/js/page/tradePro-rewards.js +36 -34
  607. package/src/js/page/utils/array-utils.js +10 -13
  608. package/src/js/page/utils/copy-to-clipboard.js +45 -45
  609. package/src/js/page/utils/create-event.js +8 -8
  610. package/src/js/page/utils/errorMesages.js +11 -12
  611. package/src/js/page/utils/helpers.js +9 -14
  612. package/src/js/page/utils/http-action.js +5 -4
  613. package/src/js/page/utils/loader.js +5 -5
  614. package/src/js/page/utils/routes.js +9 -9
  615. package/src/js/page/utils/url-query.js +4 -4
  616. package/src/js/page/utils/validation.js +96 -93
  617. package/src/js/page/wickes-dc.js +44 -51
  618. package/src/js/page/wismo.js +12 -12
  619. package/src/js/page/your-details.js +41 -77
  620. package/src/layouts/app_sticky_header.hbs +1 -0
  621. package/src/scss/barclays-paypage-combined.css +585 -585
  622. package/src/scss/barclays-paypage-desktop.css +496 -496
  623. package/src/scss/barclays-paypage-mobile.css +494 -494
  624. package/src/scss/category-main.scss +2 -8
  625. package/src/scss/common/_cat-common.scss +0 -1
  626. package/src/scss/common/_plp-common.scss +0 -1
  627. package/src/scss/components/_billie-modal.scss +2 -2
  628. package/src/scss/components/_card.scss +0 -1
  629. package/src/scss/components/_custom-slider.scss +6 -6
  630. package/src/scss/components/_find-a-store.scss +0 -1
  631. package/src/scss/components/_gallery-pdp-critical.scss +2 -2
  632. package/src/scss/components/_kitchen-card.scss +2 -2
  633. package/src/scss/components/_notifications-critical.scss +2 -2
  634. package/src/scss/components/_offer-banner.scss +0 -1
  635. package/src/scss/components/_order-summary.scss +1 -1
  636. package/src/scss/components/_page-overlay.scss +1 -1
  637. package/src/scss/components/_price-block.scss +0 -1
  638. package/src/scss/components/_price.scss +1 -1
  639. package/src/scss/components/_range-card.scss +1 -0
  640. package/src/scss/components/_recommended.scss +1 -0
  641. package/src/scss/components/_rewards.scss +1 -1
  642. package/src/scss/components/_share-list-modal.scss +1 -1
  643. package/src/scss/components/_shopping-list-note.scss +1 -1
  644. package/src/scss/components/_steps-three.scss +1 -1
  645. package/src/scss/components/_steps.scss +2 -2
  646. package/src/scss/components/_tc-generic.scss +1 -1
  647. package/src/scss/components/_thank-you-modal.scss +1 -3
  648. package/src/scss/components/_ti-total-area.scss +1 -1
  649. package/src/scss/components/_user-address-delivery.scss +1 -1
  650. package/src/scss/components/kitchen/_price.scss +1 -1
  651. package/src/scss/components/my-account/_contacts.scss +1 -3
  652. package/src/scss/components/special-opening-schedule-v2.scss +3 -3
  653. package/src/scss/components/special-opening-schedule.scss +2 -2
  654. package/src/scss/helpers/_colors-semantic.scss +120 -0
  655. package/src/scss/helpers/_variables.scss +155 -158
  656. package/src/scss/helpers/helpers-pdp-critical/_elements-critical-pdp.scss +0 -1
  657. package/src/scss/helpers/helpers-pdp-critical/_helpers-critical-pdp.scss +0 -4
  658. package/src/scss/libs/_bootstrap-extracted.scss +8 -26
  659. package/src/scss/libs/_cat-libs.scss +10 -10
  660. package/src/scss/libs/_font-awesome-icons.scss +0 -2
  661. package/src/scss/libs/_homepage-libs.scss +12 -12
  662. package/src/scss/libs/_plp-libs.scss +11 -11
  663. package/src/scss/libs/_skeleton.scss +5 -5
  664. package/src/scss/libs/_store-locator-libs.scss +1 -1
  665. package/src/scss/libs/flatpickr.scss +4 -4
  666. package/src/scss/libs/simplebar.css +3 -3
  667. package/src/scss/libs/swiper.css +384 -479
  668. package/src/scss/main.scss +70 -140
  669. package/src/scss/my-account-main-v2.scss +19 -38
  670. package/src/scss/my-account-main.scss +19 -38
  671. package/src/scss/pages/_checkout-confirmation-new.scss +2 -2
  672. package/src/scss/pages/_checkout-widget.scss +1 -1
  673. package/src/scss/pages/_checkout_your-details.scss +0 -1
  674. package/src/scss/pages/_facets.scss +86 -0
  675. package/src/scss/pages/checkout-new.scss +0 -1
  676. package/src/scss/pages/checkout.scss +0 -1
  677. package/src/scss/pages/iframe-paypage.scss +8 -9
  678. package/src/scss/pages/page_book-consultant-thank-you-new.scss +2 -2
  679. package/src/scss/pages/page_installer.scss +2 -2
  680. package/src/scss/pages/page_my-account_tradePro.scss +1 -1
  681. package/src/scss/pages/page_new-checkout_login-register.scss +1 -1
  682. package/src/scss/pages/page_pre_home_thank-you.scss +2 -2
  683. package/src/scss/pages/page_product-details-critical.scss +0 -1
  684. package/src/scss/pages/page_products-list-combined.scss +0 -4
  685. package/src/scss/pages/page_store-locator-details.scss +1 -1
  686. package/src/scss/pages/page_top-rated.scss +14 -14
  687. package/src/scss/pages/page_wismo-details.scss +1 -1
  688. package/src/scss/pages/tradePro-rewards-old.scss +1 -1
  689. package/src/scss/partials/_breadcrumbs-critical.scss +2 -2
  690. package/src/scss/partials/_breadcrumbs.scss +2 -2
  691. package/src/scss/partials/_header-critical.scss +1 -1
  692. package/src/scss/partials/_header.scss +1 -1
  693. package/src/scss/partials/_main-nav.scss +2 -2
  694. package/src/scss/store-locator-main.scss +0 -3
@@ -1,4 +1,4 @@
1
- import { updateEeaProducts, updateEeaCheckoutProducts, syncEeaProducts } from './basket/gtm';
1
+ import {updateEeaProducts, updateEeaCheckoutProducts, syncEeaProducts} from './basket/gtm';
2
2
  import {
3
3
  toggleWisdom,
4
4
  checkDeliveryStock,
@@ -6,31 +6,31 @@ import {
6
6
  createWisdom,
7
7
  changeWisdomWhenQuantityUpdated,
8
8
  checkDeliveryStockOnEnter,
9
- prettifyWisdomPostcode,
9
+ prettifyWisdomPostcode
10
10
  } from './basket/wisdom';
11
- import { updateOrderSummary } from './components/order-summary';
12
- import { checkVoucherCode, voucherRemove } from './components/voucher';
13
- import { updateKlarnaPlacements } from './basket/klarna';
14
- import { updateClearpayPlacements, updateClearpayVisibility } from './basket/clearpay';
15
- import { checkPayPalAvailability } from './basket/paypal';
11
+ import {updateOrderSummary} from './components/order-summary';
12
+ import {checkVoucherCode, voucherRemove} from './components/voucher';
13
+ import {updateKlarnaPlacements} from './basket/klarna';
14
+ import {updateClearpayPlacements, updateClearpayVisibility} from './basket/clearpay';
15
+ import {checkPayPalAvailability} from './basket/paypal';
16
16
  import {
17
17
  updateCharity,
18
18
  changeCharityPrice,
19
19
  setDefaultCharityValue,
20
20
  initCharityInteractions,
21
21
  } from './components/charity';
22
- import { callAction } from './utils/http-action';
23
- import { ROUTES } from './utils/routes';
22
+ import {callAction} from './utils/http-action';
23
+ import {ROUTES} from './utils/routes';
24
24
  import {
25
25
  getUniqBasketSessionId,
26
26
  updateBasketSession,
27
27
  addStorageCheckEvent,
28
28
  updateBasketDataQuantity,
29
- } from './basket/session-sync';
30
- import { displayEnergyEfficiency } from './basket/display-energy-efficiency';
31
- import { appendLoader, hideLoader, showLoader } from './utils/loader';
29
+ } from './basket/session-sync'
30
+ import {displayEnergyEfficiency} from "./basket/display-energy-efficiency";
31
+ import {appendLoader, hideLoader, showLoader} from "./utils/loader";
32
32
  import { initStickyObserver } from './components/sticky-order-observer';
33
- import { addClassToSummaryAside } from './basket/summary-mobile';
33
+ import {addClassToSummaryAside} from "./basket/summary-mobile";
34
34
 
35
35
  var Wick = window.Wick || {};
36
36
  Wick.BasketPage = {
@@ -107,15 +107,15 @@ Wick.BasketPage = {
107
107
  titleItems: '.checkout-title__items',
108
108
  wisdomPostcode: '.wisdom-postcode',
109
109
  orderItemQuantityControl: '.order-item__quantity-control',
110
- loader: '.basket-loader',
110
+ loader: '.basket-loader'
111
111
  },
112
112
  cartEntries: [],
113
113
  sessionId: getUniqBasketSessionId(),
114
114
  loaderPayload: {
115
115
  wrapper: 'body',
116
116
  hidden: true,
117
- titleLoader: 'Updating basket…',
118
- modifier: 'basket-loader',
117
+ titleLoader: "Updating basket…",
118
+ modifier: "basket-loader"
119
119
  },
120
120
  getEqualMapForUpdateCart: function (data) {
121
121
  return [
@@ -124,34 +124,34 @@ Wick.BasketPage = {
124
124
  itemValue: Wick.BasketPage.el.value,
125
125
  dataValue: data.subtotalWithoutCharity.formattedValue,
126
126
  value: data.subTotal.value,
127
- title: 'Items subtotal:',
127
+ title: 'Items subtotal:'
128
128
  },
129
129
  {
130
130
  item: Wick.BasketPage.el.vat,
131
131
  itemValue: Wick.BasketPage.el.value,
132
132
  dataValue: data.totalTax.formattedValue,
133
133
  value: data.totalTax.value,
134
- title: 'VAT:',
134
+ title: 'VAT:'
135
135
  },
136
136
  {
137
137
  item: Wick.BasketPage.el.cc,
138
138
  itemValue: Wick.BasketPage.el.value,
139
139
  dataValue: 'Free',
140
- title: 'Click & Collect:',
140
+ title: 'Click & Collect:'
141
141
  },
142
142
  {
143
143
  item: Wick.BasketPage.el.delivery,
144
144
  itemValue: Wick.BasketPage.el.value,
145
145
  dataValue: data.deliveryCost.formattedValue,
146
146
  value: data.deliveryCost.value,
147
- title: 'Delivery:',
147
+ title: 'Delivery:'
148
148
  },
149
149
  {
150
150
  item: Wick.BasketPage.el.charity,
151
151
  itemValue: Wick.BasketPage.el.value,
152
152
  dataValue: data.charityPrice.formattedValue,
153
153
  value: data.charityPrice.value,
154
- title: 'Charity donation:',
154
+ title: 'Charity donation:'
155
155
  },
156
156
  {
157
157
  item: Wick.BasketPage.el.discountItem,
@@ -197,24 +197,14 @@ Wick.BasketPage = {
197
197
  value = Number.parseInt(value, 10) + 1;
198
198
  if (value) {
199
199
  Wick.BasketPage.updateQuantity(quantityInput, value);
200
- Wick.BasketPage.debounceQuantityChange(
201
- entryNumber,
202
- value,
203
- quantityInput,
204
- context
205
- );
200
+ Wick.BasketPage.debounceQuantityChange(entryNumber, value, quantityInput, context);
206
201
  }
207
202
  break;
208
203
  case 'minus':
209
204
  value = Number.parseInt(value, 10) - 1;
210
205
  if (value > 0) {
211
206
  Wick.BasketPage.updateQuantity(quantityInput, value);
212
- Wick.BasketPage.debounceQuantityChange(
213
- entryNumber,
214
- value,
215
- quantityInput,
216
- context
217
- );
207
+ Wick.BasketPage.debounceQuantityChange(entryNumber, value, quantityInput, context);
218
208
  } else {
219
209
  Wick.BasketPage.removeQuantityDisable();
220
210
  }
@@ -228,22 +218,17 @@ Wick.BasketPage = {
228
218
  default:
229
219
  if (+value !== 0) {
230
220
  Wick.BasketPage.updateQuantity(quantityInput, value);
231
- Wick.BasketPage.debounceQuantityChange(
232
- entryNumber,
233
- value,
234
- quantityInput,
235
- context
236
- );
221
+ Wick.BasketPage.debounceQuantityChange(entryNumber, value, quantityInput, context);
237
222
  }
238
223
  break;
239
224
  }
240
225
 
241
226
  changeWisdomWhenQuantityUpdated(e, context);
242
- Wick.BasketPage.toggleItemTotal(context, +quantityInput.val());
227
+ Wick.BasketPage.toggleItemTotal(context, +quantityInput.val())
243
228
  },
244
229
  debounceQuantityChange: _.debounce(function (entryNumber, value, quantityInput, context) {
245
230
  showLoader(Wick.BasketPage.el.loader);
246
- Wick.BasketPage.updateQuantityAction(entryNumber, value, quantityInput, context);
231
+ Wick.BasketPage.updateQuantityAction(entryNumber, value, quantityInput, context)
247
232
  }, 500),
248
233
  updateQuantityAction: function (entryNumber, quantityToUpdate, quantityInput, context) {
249
234
  console.log('case(api) to update quantity', entryNumber, quantityToUpdate);
@@ -261,35 +246,32 @@ Wick.BasketPage = {
261
246
  Wick.BasketPage.removeQuantityDisable();
262
247
  hideLoader(Wick.BasketPage.el.loader);
263
248
  },
264
- };
249
+ }
265
250
 
266
251
  callAction(
267
- payload,
268
- Wick.BasketPage.updateAction,
269
- quantityToUpdate,
270
- quantityInput,
271
- context,
272
- (response) => {
273
- if (response.statusMessage === 'accConfirmedMsgs') {
274
- const basketSection = Wick.BasketPage.el.basketMainSection;
275
- $(document).trigger('EEUpdateCart', {
276
- cartEntryNumber: entryNumber,
277
- initialCartQuantity: response.quantity - response.quantityAdded,
278
- newCartQuantity: response.quantity,
279
- fulfillment: context.hasClass('charity-new')
280
- ? 'Delivery'
281
- : context.closest(basketSection).attr('data-type'),
282
- });
283
- }
284
- context.find(Wick.BasketPage.el.actionButton).removeClass('disabled');
285
- }
286
- );
252
+ payload,
253
+ Wick.BasketPage.updateAction,
254
+ quantityToUpdate,
255
+ quantityInput,
256
+ context,
257
+ (response) => {
258
+ if (response.statusMessage === 'accConfirmedMsgs') {
259
+ const basketSection = Wick.BasketPage.el.basketMainSection;
260
+ $(document).trigger("EEUpdateCart", {
261
+ cartEntryNumber: entryNumber,
262
+ initialCartQuantity: response.quantity - response.quantityAdded,
263
+ newCartQuantity: response.quantity,
264
+ fulfillment: context.hasClass('charity-new') ? 'Delivery' : context.closest(basketSection).attr('data-type'),
265
+ });
266
+ }
267
+ context.find(Wick.BasketPage.el.actionButton).removeClass('disabled');
268
+ });
287
269
  } else {
288
270
  Wick.BasketPage.updateQuantityOperation(
289
- quantityToUpdate,
290
- quantityInput,
291
- context,
292
- Wick.BasketData.updateQuantity
271
+ quantityToUpdate,
272
+ quantityInput,
273
+ context,
274
+ Wick.BasketData.updateQuantity
293
275
  );
294
276
  Wick.BasketPage.addQuantityDisable(context);
295
277
  setTimeout(() => {
@@ -299,14 +281,18 @@ Wick.BasketPage = {
299
281
  }
300
282
  },
301
283
  updateAction: function (response, quantityToUpdate, quantityInput, context, successCallback) {
302
- Wick.BasketPage.updateQuantityOperation(quantityToUpdate, quantityInput, context, response);
284
+ Wick.BasketPage.updateQuantityOperation(
285
+ quantityToUpdate,
286
+ quantityInput,
287
+ context,
288
+ response
289
+ );
303
290
  successCallback(response);
304
291
  },
305
292
  updateQuantityOperation: function (quantityToUpdate, quantityInput, context, data) {
306
293
  const charity = context.hasClass('charity-new'),
307
294
  negativeStatus = data.statusMessage !== 'accConfirmedMsgs',
308
- messageInfo =
309
- Wick.BasketPage.isMessageExist(data) && Wick.BasketPage.getMessageInfo(data);
295
+ messageInfo = Wick.BasketPage.isMessageExist(data) && Wick.BasketPage.getMessageInfo(data);
310
296
  let maxValue, minValue;
311
297
 
312
298
  if (!charity) {
@@ -316,7 +302,7 @@ Wick.BasketPage = {
316
302
 
317
303
  console.log('errorStatus:', negativeStatus);
318
304
 
319
- minValue = minValue === 0 ? 1 : minValue;
305
+ minValue === 0 ? minValue = 1 : minValue = minValue;
320
306
 
321
307
  if (negativeStatus) {
322
308
  Wick.BasketPage.updateCart(messageInfo);
@@ -336,11 +322,12 @@ Wick.BasketPage = {
336
322
  Wick.BasketPage.showNotification(data);
337
323
  Wick.BasketPage.updateCart(messageInfo);
338
324
  } else {
339
- Wick.BasketPage.updateItemTotal(data, context);
340
- Wick.BasketPage.updateCart(null, context);
325
+ Wick.BasketPage.updateItemTotal(data, context)
326
+ Wick.BasketPage.updateCart(null, context)
341
327
  }
342
328
  }
343
329
  }
330
+
344
331
  },
345
332
  isMessageExist: function (data) {
346
333
  return data.message && data.statusMessage;
@@ -349,12 +336,12 @@ Wick.BasketPage = {
349
336
  return {
350
337
  message: data.message,
351
338
  status: data.statusMessage,
352
- };
339
+ }
353
340
  },
354
341
  loadIndexing: function () {
355
342
  Wick.BasketPage.el.$orderItem.each(function (index) {
356
343
  $(this).attr('data-id', index);
357
- });
344
+ })
358
345
  },
359
346
  updateQuantity: function (quantityInput, accum) {
360
347
  quantityInput.val(accum);
@@ -384,7 +371,7 @@ Wick.BasketPage = {
384
371
  },
385
372
  updateCart: function (repaintData, context, charity, initial, callback) {
386
373
  console.log('case(api) to update cart');
387
- const info = { repaintData, context, charity, initial };
374
+ const info = {repaintData, context, charity, initial}
388
375
  const actionCallback = callback || Wick.BasketPage.updateCartAction;
389
376
 
390
377
  if (!Wick.checkLocalEnv) {
@@ -392,9 +379,9 @@ Wick.BasketPage = {
392
379
  url: ROUTES.BASKET_GET_CART,
393
380
  type: 'GET',
394
381
  complete: hideLoader(Wick.BasketPage.el.loader),
395
- };
382
+ }
396
383
 
397
- callAction(payload, actionCallback, info);
384
+ callAction(payload, actionCallback, info)
398
385
  } else {
399
386
  if (initial) {
400
387
  Wick.BasketPage.getCartEntries(Wick.BasketData.initialCartState);
@@ -408,8 +395,7 @@ Wick.BasketPage = {
408
395
  Wick.BasketPage.getEqualMapForUpdateCart(Wick.BasketData.updateCart)
409
396
  );
410
397
 
411
- !repaintData ||
412
- Wick.BasketPage.repaintOrderItems(Wick.BasketData.updateCart, repaintData);
398
+ !repaintData || Wick.BasketPage.repaintOrderItems(Wick.BasketData.updateCart, repaintData);
413
399
  !charity || Wick.BasketPage.addCharityEntryNumber(Wick.BasketData.updateCart);
414
400
 
415
401
  //update promotion when update quantity
@@ -417,16 +403,13 @@ Wick.BasketPage = {
417
403
  Wick.BasketPage.updatePromotion(Wick.BasketData.updateCart, context);
418
404
  }
419
405
 
420
- updateKlarnaPlacements(
421
- Wick.BasketData.updateCart.totalPrice.formattedPriceWithoutCurrencySymbol
422
- );
406
+ updateKlarnaPlacements(Wick.BasketData.updateCart.totalPrice.formattedPriceWithoutCurrencySymbol);
423
407
  updateClearpayPlacements(Wick.BasketData.updateCart.totalPrice.value);
424
408
  updateClearpayVisibility(Wick.BasketData.updateCart.totalPrice.value);
425
409
  Wick.BasketPage.addPotentialPromo(Wick.BasketData.updateCart);
426
410
  addClassToSummaryAside(Wick.BasketData.updateCart);
427
411
  Wick.BasketPage.getCartEntries(Wick.BasketData.updateCart);
428
- Wick.BasketPage.checkProductArrays(Wick.BasketData.updateCart) ||
429
- Wick.BasketPage.removeOrderItem(repaintData);
412
+ Wick.BasketPage.checkProductArrays(Wick.BasketData.updateCart) || Wick.BasketPage.removeOrderItem(repaintData);
430
413
  updateBasketSession();
431
414
  Wick.EnergyEfficiency && Wick.EnergyEfficiency.drawEnergyLabels();
432
415
  setTimeout(hideLoader, 1000);
@@ -434,26 +417,25 @@ Wick.BasketPage = {
434
417
  }
435
418
  },
436
419
  updateCartAction: function (response, info) {
437
- updateClearpayVisibility(response.totalPrice.value);
438
- addClassToSummaryAside(response);
420
+ updateClearpayVisibility(response.totalPrice.value)
421
+ addClassToSummaryAside(response)
439
422
  if (info.initial) {
440
423
  Wick.BasketPage.getCartEntries(response);
441
424
  } else {
442
425
  updateOrderSummary(response, Wick.BasketPage.getEqualMapForUpdateCart(response));
443
426
  if (info.repaintData) {
444
427
  if (info.repaintData.isChangeDelivery) {
445
- info.repaintData.cartEntry = Wick.BasketPage.cartEntries.filter(
446
- (entry) => entry.entryNumber === info.repaintData.cartEntryNumber
447
- )[0];
448
- $(document).trigger('EEUpdateDeliveryMode', info.repaintData);
428
+ info.repaintData.cartEntry = Wick.BasketPage.cartEntries
429
+ .filter(entry => entry.entryNumber === info.repaintData.cartEntryNumber)[0];
430
+ $(document).trigger("EEUpdateDeliveryMode", info.repaintData);
449
431
  }
450
432
 
451
- Wick.BasketPage.checkProductArrays(response)
452
- ? Wick.BasketPage.repaintOrderItems(response, info.repaintData)
453
- : (() => {
454
- $(Wick.BasketPage.el.orderItem).remove();
455
- Wick.BasketPage.removeOrderItem(info.repaintData);
456
- })();
433
+ Wick.BasketPage.checkProductArrays(response) ?
434
+ Wick.BasketPage.repaintOrderItems(response, info.repaintData) :
435
+ (() => {
436
+ $(Wick.BasketPage.el.orderItem).remove();
437
+ Wick.BasketPage.removeOrderItem(info.repaintData);
438
+ })();
457
439
  }
458
440
 
459
441
  !info.charity || Wick.BasketPage.addCharityEntryNumber(response);
@@ -467,59 +449,56 @@ Wick.BasketPage = {
467
449
  updateEeaProducts(response.deliveryOrderGroups, response.pickupOrderGroups);
468
450
  updateEeaCheckoutProducts(response.deliveryOrderGroups, response.pickupOrderGroups);
469
451
  syncEeaProducts();
470
- $(document).trigger('cartUpdate');
452
+ $(document).trigger("cartUpdate");
471
453
  Wick.BasketPage.getCartEntries(response);
472
454
  updateKlarnaPlacements(response.totalPrice.formattedPriceWithoutCurrencySymbol);
473
455
  updateClearpayPlacements(response.totalPrice.value);
474
456
  updateClearpayVisibility(response.totalPrice.value);
475
457
  updateBasketSession();
476
- Wick.EnergyEfficiency.drawEnergyLabels();
458
+ Wick.EnergyEfficiency.drawEnergyLabels()
477
459
  }
478
460
  },
479
461
  checkProductArrays(cart) {
480
462
  return cart.pickupUniqueItemsNumber || cart.deliveryUniqueItemsNumber;
481
463
  },
482
464
  getCartEntries(data) {
483
- Wick.BasketPage.cartEntries = data.deliveryOrderGroups
484
- .concat(data.pickupOrderGroups)
485
- .map((orderGroup) => orderGroup.entries)
486
- .flatMap((entries) => entries);
465
+ Wick.BasketPage.cartEntries = data.deliveryOrderGroups.concat(data.pickupOrderGroups)
466
+ .map(orderGroup => orderGroup.entries)
467
+ .flatMap(entries => entries);
487
468
  },
488
469
  addCharityEntryNumber: function (data) {
489
470
  let entryNumber;
490
- data.deliveryOrderGroups.forEach((order) => {
491
- order.entries.forEach((item) => {
492
- item.charity ? (entryNumber = item.entryNumber) : null;
493
- });
494
- });
471
+ data.deliveryOrderGroups.forEach(order => {
472
+ order.entries.forEach(item => {
473
+ item.charity ? entryNumber = item.entryNumber : null
474
+ })
475
+ })
495
476
  if ($(Wick.BasketPage.el.charityItem).find('input[name="entryNumber"]').length) {
496
- $(Wick.BasketPage.el.charityItem).find('input[name="entryNumber"]').val(entryNumber);
477
+ $(Wick.BasketPage.el.charityItem).find('input[name="entryNumber"]').val(entryNumber)
497
478
  } else {
498
479
  $(Wick.BasketPage.el.charityItem).prepend(
499
480
  `<input type="hidden" name="entryNumber" value="${entryNumber}">`
500
- );
481
+ )
501
482
  }
502
483
  },
503
484
  updatePromotion: function (data) {
504
485
  $(Wick.BasketPage.el.orderItem).each(function () {
505
- let itemNumber = { entryNumber: +$(this).attr('data-id') };
506
- $(this).find(Wick.BasketPage.el.orderItemOffers).remove();
507
- $(this)
508
- .find(Wick.BasketPage.el.orderItemInfo)
509
- .append(Wick.BasketPage.addPromotions(itemNumber, data));
510
- });
486
+ let itemNumber = {entryNumber: +$(this).attr('data-id')}
487
+ $(this).find(Wick.BasketPage.el.orderItemOffers).remove()
488
+ $(this).find(Wick.BasketPage.el.orderItemInfo).append(Wick.BasketPage.addPromotions(itemNumber, data));
489
+ })
511
490
  },
512
491
  showNotification: function (data) {
513
492
  let notificationType;
514
493
  switch (data.statusMessage) {
515
494
  case 'accConfirmedMsgs':
516
- notificationType = 'success';
495
+ notificationType = 'success'
517
496
  break;
518
497
  case 'accWarnMsgs':
519
- notificationType = 'warning';
498
+ notificationType = 'warning'
520
499
  break;
521
500
  case 'accErrorMsgs':
522
- notificationType = 'error';
501
+ notificationType = 'error'
523
502
  break;
524
503
  }
525
504
 
@@ -527,53 +506,47 @@ Wick.BasketPage = {
527
506
  text: data.message,
528
507
  container: '.notification-area',
529
508
  type: notificationType,
530
- closeBtn: true,
509
+ closeBtn: true
531
510
  });
511
+
532
512
  },
533
513
  hideUnusedDeliveryTypeCost: function (data, isVoucher) {
534
- $(Wick.BasketPage.el.delivery).show();
535
- $(Wick.BasketPage.el.cc).show();
514
+ $(Wick.BasketPage.el.delivery).show()
515
+ $(Wick.BasketPage.el.cc).show()
536
516
  if (isVoucher) {
537
517
  if (!data.deliveryOrder) {
538
- $(Wick.BasketPage.el.delivery).hide();
518
+ $(Wick.BasketPage.el.delivery).hide()
539
519
  } else if (!data.clickAndCollectOrder) {
540
- $(Wick.BasketPage.el.cc).hide();
520
+ $(Wick.BasketPage.el.cc).hide()
541
521
  }
542
522
  } else {
543
523
  if (data.clickAndCollectOnly) {
544
- $(Wick.BasketPage.el.delivery).hide();
524
+ $(Wick.BasketPage.el.delivery).hide()
545
525
  } else if (data.deliveryItemsQuantity > 0 && data.pickupItemsQuantity === 0) {
546
- $(Wick.BasketPage.el.cc).hide();
526
+ $(Wick.BasketPage.el.cc).hide()
547
527
  }
548
528
  }
549
529
  },
550
530
  paintActionButton: function () {
551
531
  $(Wick.BasketPage.el.basketMainSection).each(function () {
552
- if ($(this).attr('data-type') === 'Delivery') {
553
- $(this)
554
- .find(Wick.BasketPage.el.actionButton)
555
- .each(function () {
556
- $(this).removeClass(Wick.BasketPage.el.btnSelected);
557
- if (
558
- $(this).attr('data-type') === 'Delivery' ||
559
- $(this).attr('data-type') === 'Delivery Stock'
560
- ) {
561
- $(this).addClass(Wick.BasketPage.el.btnSelected);
562
- $(this).find('input').prop('checked', true);
563
- }
564
- });
565
- } else if ($(this).attr('data-type') === 'Click & Collect') {
566
- $(this)
567
- .find(Wick.BasketPage.el.actionButton)
568
- .each(function () {
569
- $(this).removeClass(Wick.BasketPage.el.btnSelected);
570
- if ($(this).attr('data-type') === 'Click & Collect') {
571
- $(this).addClass(Wick.BasketPage.el.btnSelected);
572
- $(this).find('input').prop('checked', true);
573
- }
574
- });
532
+ if ($(this).attr('data-type') === "Delivery") {
533
+ $(this).find(Wick.BasketPage.el.actionButton).each(function () {
534
+ $(this).removeClass(Wick.BasketPage.el.btnSelected);
535
+ if ($(this).attr('data-type') === "Delivery" || $(this).attr('data-type') === "Delivery Stock") {
536
+ $(this).addClass(Wick.BasketPage.el.btnSelected);
537
+ $(this).find('input').prop('checked', true);
538
+ }
539
+ })
540
+ } else if ($(this).attr('data-type') === "Click & Collect") {
541
+ $(this).find(Wick.BasketPage.el.actionButton).each(function () {
542
+ $(this).removeClass(Wick.BasketPage.el.btnSelected);
543
+ if ($(this).attr('data-type') === "Click & Collect") {
544
+ $(this).addClass(Wick.BasketPage.el.btnSelected);
545
+ $(this).find('input').prop('checked', true);
546
+ }
547
+ })
575
548
  }
576
- });
549
+ })
577
550
  },
578
551
  hideCCSectionInDelivery: function (context) {
579
552
  let delivery = context.find(Wick.BasketPage.el.deliveryMessage),
@@ -597,7 +570,7 @@ Wick.BasketPage = {
597
570
  ccOrderInfo.removeClass(Wick.BasketPage.el.ccOrderInfoHide);
598
571
 
599
572
  //hide wisdom if exist
600
- wisdom.length && wisdom.addClass(Wick.BasketPage.el.wisdomBlockHide);
573
+ wisdom.length && wisdom.addClass(Wick.BasketPage.el.wisdomBlockHide)
601
574
 
602
575
  context.find(Wick.BasketPage.el.storeUnselected).unbind();
603
576
  context.find(Wick.BasketPage.el.ccCloseLink).unbind();
@@ -605,17 +578,12 @@ Wick.BasketPage = {
605
578
  context.find(Wick.BasketPage.el.storeUnselected).on('click', (e) => e.preventDefault());
606
579
  context.find(Wick.BasketPage.el.ccCloseLink).on('click', function (e) {
607
580
  e.preventDefault();
608
- Wick.BasketPage.makeRadioActive(
609
- context.find(Wick.BasketPage.el.deliveryButtonInCC)
610
- );
581
+ Wick.BasketPage.makeRadioActive(context.find(Wick.BasketPage.el.deliveryButtonInCC));
611
582
  Wick.BasketPage.hideCCSectionInDelivery(context);
612
- });
583
+ })
613
584
  } else {
614
585
  Wick.BasketPage.makeRadioActive(this);
615
- $(this)
616
- .closest(Wick.BasketPage.el.orderItem)
617
- .find(Wick.BasketPage.el.wisdomClose)
618
- .trigger('click');
586
+ $(this).closest(Wick.BasketPage.el.orderItem).find(Wick.BasketPage.el.wisdomClose).trigger('click');
619
587
  }
620
588
  },
621
589
  changeMethodToDelivery: function (e) {
@@ -632,10 +600,10 @@ Wick.BasketPage = {
632
600
  cartEntryNumber: entryNumber,
633
601
  cartEntry: {},
634
602
  fulfilmentData: {
635
- fulfillmentType: 'Delivery',
603
+ fulfillmentType: 'Delivery'
636
604
  },
637
605
  isChangeDelivery: true,
638
- };
606
+ }
639
607
 
640
608
  //checkEnv
641
609
  if (!Wick.checkLocalEnv) {
@@ -643,10 +611,10 @@ Wick.BasketPage = {
643
611
  const payload = {
644
612
  url: `${ROUTES.BASKET_ADD_STOCK}/${entryNumber}/delivery`,
645
613
  type: 'PUT',
646
- };
647
- callAction(payload, Wick.BasketPage.updateDeliveryMethod, options);
614
+ }
615
+ callAction(payload, Wick.BasketPage.updateDeliveryMethod, options)
648
616
  } else {
649
- Wick.BasketPage.showNotification(Wick.BasketData.changeMethod);
617
+ Wick.BasketPage.showNotification(Wick.BasketData.changeMethod)
650
618
  Wick.BasketPage.updateCart(options);
651
619
  }
652
620
  } else {
@@ -656,10 +624,7 @@ Wick.BasketPage = {
656
624
  },
657
625
  changeMethodToCC: function () {
658
626
  let context = $(this).closest(Wick.BasketPage.el.orderItem),
659
- storeId = $(this)
660
- .closest(Wick.BasketPage.el.orderSectionCta)
661
- .find('.storeNamePost')
662
- .val(),
627
+ storeId = $(this).closest(Wick.BasketPage.el.orderSectionCta).find('.storeNamePost').val(),
663
628
  entryNumber = +context.attr('data-id'),
664
629
  quantity = context.find(Wick.BasketPage.el.quantityValue).val(),
665
630
  storeName;
@@ -668,18 +633,9 @@ Wick.BasketPage = {
668
633
  if ($(el).find('input').attr('value') === storeId) {
669
634
  storeName = $(el).find(Wick.BasketPage.el.storeNameText).text().trim();
670
635
  }
671
- });
636
+ })
672
637
 
673
- console.log(
674
- 'case(api) change to C&C method, entry -',
675
- entryNumber,
676
- 'storeId',
677
- storeId,
678
- 'qty-',
679
- quantity,
680
- 'storeName-',
681
- storeName
682
- );
638
+ console.log('case(api) change to C&C method, entry -', entryNumber, 'storeId', storeId, 'qty-', quantity, 'storeName-', storeName);
683
639
 
684
640
  const options = {
685
641
  cartEntryNumber: entryNumber,
@@ -690,7 +646,7 @@ Wick.BasketPage = {
690
646
  storeName: storeName,
691
647
  },
692
648
  isChangeDelivery: true,
693
- };
649
+ }
694
650
 
695
651
  //checkEnv
696
652
  if (!Wick.checkLocalEnv) {
@@ -702,18 +658,17 @@ Wick.BasketPage = {
702
658
  quantity: quantity,
703
659
  },
704
660
  type: 'PUT',
705
- };
706
- callAction(payload, Wick.BasketPage.updateDeliveryMethod, options);
661
+ }
662
+ callAction(payload, Wick.BasketPage.updateDeliveryMethod, options)
707
663
  } else {
708
- Wick.BasketPage.showNotification(Wick.BasketData.changeMethod);
664
+ Wick.BasketPage.showNotification(Wick.BasketData.changeMethod)
709
665
  Wick.BasketPage.updateCart(options);
710
666
  }
711
667
  },
712
668
  updateDeliveryMethod: function (response, options) {
713
- const messageInfo =
714
- Wick.BasketPage.isMessageExist(response) && Wick.BasketPage.getMessageInfo(response);
669
+ const messageInfo = Wick.BasketPage.isMessageExist(response) && Wick.BasketPage.getMessageInfo(response);
715
670
  Object.assign(options, messageInfo);
716
- Wick.BasketPage.showNotification(response);
671
+ Wick.BasketPage.showNotification(response)
717
672
  Wick.BasketPage.updateCart(options);
718
673
  },
719
674
  removeOrderItem: function (messageInfo) {
@@ -722,14 +677,13 @@ Wick.BasketPage = {
722
677
  status = messageInfo.status,
723
678
  link;
724
679
 
725
- link = `${currentLink}?notificationMessage=${message}&messageStatus=${status}`;
680
+ link = `${currentLink}?notificationMessage=${message}&messageStatus=${status}`
726
681
  window.location.replace(link);
727
682
  },
728
- repaintOrderItems: function (data) {
683
+ repaintOrderItems: function (data, message) {
729
684
  const ccGroup = data.pickupOrderGroups || [],
730
685
  deliveryGroup = data.deliveryOrderGroups || [];
731
- let type,
732
- itemDetails = {};
686
+ let type, itemDetails = {};
733
687
 
734
688
  $(Wick.BasketPage.el.orderItem).remove();
735
689
 
@@ -737,27 +691,19 @@ Wick.BasketPage = {
737
691
  type = 'cc';
738
692
  if ($(Wick.BasketPage.el.basketCCSection).length) {
739
693
  ccGroup.forEach((obj) => {
740
- obj.entries.forEach((item) => {
694
+ obj.entries.forEach(item => {
741
695
  itemDetails = {
742
- item,
743
- type,
744
- data,
696
+ item, type, data,
745
697
  };
746
- $(Wick.BasketPage.el.basketCCSection).append(
747
- Wick.BasketPage.createOrderItem(itemDetails)
748
- );
749
- });
750
- });
698
+ $(Wick.BasketPage.el.basketCCSection).append(Wick.BasketPage.createOrderItem(itemDetails));
699
+ })
700
+ })
751
701
  Wick.BasketPage.updateItemsCount(data, type);
752
702
  } else {
753
703
  if ($(Wick.BasketPage.el.basketDeliverySection)) {
754
- $(Wick.BasketPage.el.basketDeliverySection).after(
755
- Wick.BasketPage.createBasketSection(type, ccGroup, data)
756
- );
704
+ $(Wick.BasketPage.el.basketDeliverySection).after(Wick.BasketPage.createBasketSection(type, ccGroup, data))
757
705
  } else {
758
- $(Wick.BasketPage.el.content).prepend(
759
- Wick.BasketPage.createBasketSection(type, ccGroup, data)
760
- );
706
+ $(Wick.BasketPage.el.content).prepend(Wick.BasketPage.createBasketSection(type, ccGroup, data));
761
707
  }
762
708
  }
763
709
  } else {
@@ -765,33 +711,24 @@ Wick.BasketPage = {
765
711
  }
766
712
 
767
713
  if (deliveryGroup.length) {
768
- if (
769
- deliveryGroup.length === 1 &&
770
- deliveryGroup[0].entries.length === 1 &&
771
- deliveryGroup[0].entries[0].charity
772
- ) {
714
+ if (deliveryGroup.length === 1 && deliveryGroup[0].entries.length === 1 && deliveryGroup[0].entries[0].charity) {
773
715
  $(Wick.BasketPage.el.basketDeliverySection).remove();
774
716
  } else {
775
717
  type = 'delivery';
776
718
 
777
719
  if ($(Wick.BasketPage.el.basketDeliverySection).length) {
778
720
  deliveryGroup.forEach((obj) => {
779
- obj.entries.forEach((item) => {
721
+ obj.entries.forEach(item => {
780
722
  itemDetails = {
781
- item,
782
- type,
783
- data,
723
+ item, type, data,
784
724
  };
785
- $(Wick.BasketPage.el.basketDeliverySection).append(
786
- Wick.BasketPage.createOrderItem(itemDetails)
787
- );
788
- });
789
- });
725
+ $(Wick.BasketPage.el.basketDeliverySection).append(Wick.BasketPage.createOrderItem(itemDetails));
726
+ })
727
+
728
+ })
790
729
  Wick.BasketPage.updateItemsCount(data, type);
791
730
  } else {
792
- $(Wick.BasketPage.el.content).prepend(
793
- Wick.BasketPage.createBasketSection(type, deliveryGroup, data)
794
- );
731
+ $(Wick.BasketPage.el.content).prepend(Wick.BasketPage.createBasketSection(type, deliveryGroup, data));
795
732
  }
796
733
  }
797
734
  Wick.BasketPage.addCharityEntryNumber(data);
@@ -801,30 +738,27 @@ Wick.BasketPage = {
801
738
 
802
739
  $('.order-item').each(function () {
803
740
  let quantity = +$(this).find('.order-item__quantity-value').val();
804
- Wick.BasketPage.toggleItemTotal(this, quantity);
805
- });
741
+ Wick.BasketPage.toggleItemTotal(this, quantity)
742
+ })
806
743
 
807
744
  Wick.BasketPage.paintActionButton();
808
745
  checkPayPalAvailability(data);
809
746
  Wick.VatToggle.reapplyDisplayClass();
810
- $(document).trigger('cartRerender');
747
+ $(document).trigger("cartRerender");
811
748
  },
812
749
  createBasketSection: function (type, group, data) {
813
- type === 'cc' ? (type = 'Click & Collect') : (type = 'Delivery');
750
+ type === 'cc' ? type = 'Click & Collect' : type = 'Delivery';
814
751
  const orderItems = [];
815
752
  let itemDetails = {};
816
753
 
817
- group.forEach((obj) => {
818
- obj.entries.forEach((item) => {
819
- itemDetails = { item, type, data };
754
+ group.forEach(obj => {
755
+ obj.entries.forEach(item => {
756
+ itemDetails = {item, type, data};
820
757
  orderItems.push(Wick.BasketPage.createOrderItem(itemDetails));
821
- });
758
+ })
822
759
  });
823
760
 
824
- const itemsCount =
825
- type === 'Click & Collect'
826
- ? data.pickupUniqueItemsNumber
827
- : data.deliveryUniqueItemsNumber;
761
+ const itemsCount = type === 'Click & Collect' ? data.pickupUniqueItemsNumber : data.deliveryUniqueItemsNumber;
828
762
 
829
763
  return `
830
764
  <section class="basket__section" data-type="${type}">
@@ -838,23 +772,18 @@ Wick.BasketPage = {
838
772
  </div>
839
773
  ${orderItems.join('')}
840
774
  </section>
841
- `;
775
+ `
842
776
  },
843
777
  updateItemsCount: function (data, type) {
844
- const itemCount =
845
- type === 'cc' ? data.pickupUniqueItemsNumber : data.deliveryUniqueItemsNumber,
778
+ const itemCount = type === 'cc' ? data.pickupUniqueItemsNumber : data.deliveryUniqueItemsNumber,
846
779
  titleItemsText = `${itemCount} item${itemCount > 1 ? 's' : ''}`;
847
780
 
848
781
  if (type === 'cc') {
849
- $(Wick.BasketPage.el.basketCCSection)
850
- .find(Wick.BasketPage.el.titleItems)
851
- .text(titleItemsText);
782
+ $(Wick.BasketPage.el.basketCCSection).find(Wick.BasketPage.el.titleItems).text(titleItemsText)
852
783
  }
853
784
 
854
785
  if (type === 'delivery') {
855
- $(Wick.BasketPage.el.basketDeliverySection)
856
- .find(Wick.BasketPage.el.titleItems)
857
- .text(titleItemsText);
786
+ $(Wick.BasketPage.el.basketDeliverySection).find(Wick.BasketPage.el.titleItems).text(titleItemsText);
858
787
  }
859
788
  },
860
789
  createOrderItem: function (itemDetails) {
@@ -923,7 +852,7 @@ Wick.BasketPage = {
923
852
  currentItem.basePrice.value === 0
924
853
  ? '<span class="order-item__value">FREE</span>'
925
854
  : Wick.VatToggle.isToggleVatAvailable()
926
- ? `
855
+ ? `
927
856
  <div class="including-vat"><!--
928
857
  --><span class="order-item__value">${currentItem.basePrice.formattedValue}</span><!--
929
858
  --><div class="price-vat">Inc.VAT</div>
@@ -933,7 +862,7 @@ Wick.BasketPage = {
933
862
  --><div class="price-vat">Exc.VAT</div>
934
863
  </div>
935
864
  `
936
- : `<span class="order-item__value">${currentItem.basePrice.formattedValue}</span>`
865
+ : `<span class="order-item__value">${currentItem.basePrice.formattedValue}</span>`
937
866
  }
938
867
  </div>
939
868
  </div>
@@ -945,7 +874,7 @@ Wick.BasketPage = {
945
874
  currentItem.itemTotalWithoutDiscount.value === 0
946
875
  ? '<span class="order-item__value">FREE</span>'
947
876
  : Wick.VatToggle.isToggleVatAvailable()
948
- ? `
877
+ ? `
949
878
  <div class="including-vat"><!--
950
879
  --><span class="order-item__value">${currentItem.itemTotalWithoutDiscount.formattedValue}</span><!--
951
880
  --><div class="price-vat">Inc.VAT</div><!--
@@ -955,7 +884,7 @@ Wick.BasketPage = {
955
884
  --><div class="price-vat">Exc.VAT</div>
956
885
  </div>
957
886
  `
958
- : `<span class="order-item__value">${currentItem.itemTotalWithoutDiscount.formattedValue}</span>`
887
+ : `<span class="order-item__value">${currentItem.itemTotalWithoutDiscount.formattedValue}</span>`
959
888
  }
960
889
  </div>
961
890
  </div>
@@ -974,11 +903,13 @@ Wick.BasketPage = {
974
903
  ${Wick.BasketPage.createDeliveryMessage(currentItem, itemDetails.type)}
975
904
  ${Wick.BasketPage.createCCFinder(currentItem)}
976
905
  </div>
977
- `;
906
+ `
978
907
  }
979
908
  },
980
909
  createActionButton: function (item, type, section) {
981
- let available, title, dataType;
910
+ let available,
911
+ title,
912
+ dataType;
982
913
 
983
914
  if (type === 'cc') {
984
915
  title = 'Click & Collect';
@@ -998,7 +929,7 @@ Wick.BasketPage = {
998
929
  } else {
999
930
  title = 'Check Delivery Stock';
1000
931
  dataType = 'Delivery Stock';
1001
- type = 'delivery_stock';
932
+ type = "delivery_stock";
1002
933
  available = item.orderFulfilmentControls.availableForWickesFulfilment;
1003
934
  }
1004
935
  }
@@ -1018,61 +949,51 @@ Wick.BasketPage = {
1018
949
  <span>${title}</span>
1019
950
  </label>
1020
951
  </div>
1021
- `;
952
+ `
1022
953
  } else {
1023
- return '';
954
+ return ''
1024
955
  }
956
+
1025
957
  },
1026
958
  addPromotions: function (item, data) {
1027
959
  let arr = [];
1028
960
 
1029
- data.potentialProductPromotions &&
1030
- data.potentialProductPromotions.forEach((entry) => {
1031
- entry.consumedEntries.forEach((promo) => {
1032
- if (promo.orderEntryNumber === item.entryNumber) {
1033
- if (arr.length) {
1034
- let duplicate = arr.every((el) => {
1035
- return (
1036
- el !==
1037
- `<div class="order-item__promo">${entry.description}</div>`
1038
- );
1039
- });
1040
-
1041
- !duplicate ||
1042
- arr.push(
1043
- `<div class="order-item__promo">${entry.description}</div>`
1044
- );
1045
- } else {
1046
- arr.push(`<div class="order-item__promo">${entry.description}</div>`);
1047
- }
961
+ data.potentialProductPromotions && data.potentialProductPromotions.forEach((entry) => {
962
+ entry.consumedEntries.forEach((promo) => {
963
+ if (promo.orderEntryNumber === item.entryNumber) {
964
+ if (arr.length) {
965
+ let duplicate = arr.every((el) => {
966
+ return el !== `<div class="order-item__promo">${entry.description}</div>`
967
+ })
968
+
969
+ !duplicate || arr.push(`<div class="order-item__promo">${entry.description}</div>`);
970
+
971
+ } else {
972
+ arr.push(`<div class="order-item__promo">${entry.description}</div>`);
1048
973
  }
1049
- });
1050
- });
1051
-
1052
- data.appliedProductPromotions &&
1053
- data.appliedProductPromotions.forEach((entry) => {
1054
- entry.consumedEntries.forEach((promo) => {
1055
- if (promo.orderEntryNumber === item.entryNumber && entry.description) {
1056
- if (arr.length) {
1057
- let duplicate = arr.every((el) => {
1058
- return (
1059
- el !==
1060
- `<div class="order-item__promo">${entry.description}</div>`
1061
- );
1062
- });
1063
-
1064
- !duplicate ||
1065
- arr.push(
1066
- `<div class="order-item__promo">${entry.description}</div>`
1067
- );
1068
- } else {
1069
- arr.push(`<div class="order-item__promo">${entry.description}</div>`);
1070
- }
974
+ }
975
+ })
976
+
977
+ });
978
+
979
+ data.appliedProductPromotions && data.appliedProductPromotions.forEach((entry) => {
980
+ entry.consumedEntries.forEach((promo) => {
981
+ if (promo.orderEntryNumber === item.entryNumber && entry.description) {
982
+ if (arr.length) {
983
+ let duplicate = arr.every((el) => {
984
+ return el !== `<div class="order-item__promo">${entry.description}</div>`
985
+ })
986
+
987
+ !duplicate || arr.push(`<div class="order-item__promo">${entry.description}</div>`);
988
+
989
+ } else {
990
+ arr.push(`<div class="order-item__promo">${entry.description}</div>`);
1071
991
  }
1072
- });
1073
- });
992
+ }
993
+ })
994
+ });
1074
995
 
1075
- return arr.length ? `<div class="order-item__offers">${arr.join('')}</div>` : '';
996
+ return arr.length ? `<div class="order-item__offers">${arr.join('')}</div>` : ''
1076
997
  },
1077
998
  createPerMeterPrice: function (item) {
1078
999
  if (item.product.installationProduct) {
@@ -1096,20 +1017,16 @@ Wick.BasketPage = {
1096
1017
  }
1097
1018
  </div>
1098
1019
  </div>
1099
- `;
1020
+ `
1100
1021
  } else {
1101
- return '';
1022
+ return ''
1102
1023
  }
1103
1024
  },
1104
1025
  createDeliveryMessage: function (item, type) {
1105
1026
  if (type === 'delivery') {
1106
- let currentFulfillment = item.product.fulfillmentAttributes.supplierDelivered
1107
- ? 'SUPPLIER_DELIVERED'
1108
- : 'STANDARD',
1027
+ let currentFulfillment = item.product.fulfillmentAttributes.supplierDelivered ? 'SUPPLIER_DELIVERED' : 'STANDARD',
1109
1028
  productCode = item.product.code,
1110
- coincidenceFulfillmentValue = $(Wick.BasketPage.el.content)
1111
- .find(`#${productCode}_${currentFulfillment}`)
1112
- .val();
1029
+ coincidenceFulfillmentValue = $(Wick.BasketPage.el.content).find(`#${productCode}_${currentFulfillment}`).val()
1113
1030
 
1114
1031
  if (coincidenceFulfillmentValue) {
1115
1032
  return `
@@ -1119,12 +1036,12 @@ Wick.BasketPage = {
1119
1036
  ${coincidenceFulfillmentValue}
1120
1037
  </div>
1121
1038
  </div>
1122
- `;
1039
+ `
1123
1040
  } else {
1124
- return '';
1041
+ return ''
1125
1042
  }
1126
1043
  } else {
1127
- return '';
1044
+ return ''
1128
1045
  }
1129
1046
  },
1130
1047
  createCCFinder: function (item) {
@@ -1135,7 +1052,7 @@ Wick.BasketPage = {
1135
1052
  </div>
1136
1053
  ${Wick.BasketPage.createCCOrderInfo(item)}
1137
1054
  </div>
1138
- `;
1055
+ `
1139
1056
  },
1140
1057
  createCCOrderInfo: function (item) {
1141
1058
  if (item.updateable) {
@@ -1198,9 +1115,9 @@ Wick.BasketPage = {
1198
1115
  </div>
1199
1116
  </div>
1200
1117
  </div>
1201
- `;
1118
+ `
1202
1119
  } else {
1203
- return '';
1120
+ return ''
1204
1121
  }
1205
1122
  },
1206
1123
  checkStoreAvailability: function (store, item) {
@@ -1213,7 +1130,7 @@ Wick.BasketPage = {
1213
1130
  <a href="#" class="cc-order__change" ${item.updateable || 'style="display: none"'}>
1214
1131
  Change Store location
1215
1132
  </a>
1216
- `;
1133
+ `
1217
1134
  } else {
1218
1135
  return `
1219
1136
  <div class="cc-order__store-select">
@@ -1224,19 +1141,17 @@ Wick.BasketPage = {
1224
1141
  </a>
1225
1142
  </div>
1226
1143
  </div>
1227
- `;
1144
+ `
1228
1145
  }
1229
1146
  },
1230
1147
  removePromotion: function () {
1231
- $(this).closest(Wick.BasketPage.el.promo).remove();
1148
+ $(this).closest(Wick.BasketPage.el.promo).remove()
1232
1149
  },
1233
1150
  addPotentialPromo: function (data) {
1234
1151
  $(Wick.BasketPage.el.promo).remove();
1235
1152
 
1236
- if (
1237
- (data.potentialOrderPromotions && data.potentialOrderPromotions.length) ||
1238
- (data.appliedOrderPromotions && data.appliedOrderPromotions.length)
1239
- ) {
1153
+ if ((data.potentialOrderPromotions && data.potentialOrderPromotions.length)
1154
+ || (data.appliedOrderPromotions && data.appliedOrderPromotions.length)) {
1240
1155
  $(Wick.BasketPage.el.promoWrapper).append(Wick.BasketPage.createPotentialPromo(data));
1241
1156
  }
1242
1157
  },
@@ -1244,8 +1159,7 @@ Wick.BasketPage = {
1244
1159
  const arr = [];
1245
1160
  if (data.potentialOrderPromotions && data.potentialOrderPromotions.length) {
1246
1161
  data.potentialOrderPromotions.forEach((promo) => {
1247
- !promo.description ||
1248
- arr.push(`
1162
+ !promo.description || arr.push(`
1249
1163
  <div class="p-promotion">
1250
1164
  <div class="p-promotion__icon">
1251
1165
  <i class="icon fas fa-gift"></i>
@@ -1257,14 +1171,14 @@ Wick.BasketPage = {
1257
1171
  <i class="icon fas fa-times"></i>
1258
1172
  </div>
1259
1173
  </div>
1260
- `);
1261
- });
1174
+ `
1175
+ )
1176
+ })
1262
1177
  }
1263
1178
 
1264
1179
  if (data.appliedOrderPromotions && data.appliedOrderPromotions.length) {
1265
1180
  data.appliedOrderPromotions.forEach((promo) => {
1266
- !promo.description ||
1267
- arr.push(`
1181
+ !promo.description || arr.push(`
1268
1182
  <div class="p-promotion">
1269
1183
  <div class="p-promotion__icon">
1270
1184
  <i class="icon fas fa-gift"></i>
@@ -1276,15 +1190,14 @@ Wick.BasketPage = {
1276
1190
  <i class="icon fas fa-times"></i>
1277
1191
  </div>
1278
1192
  </div>
1279
- `);
1280
- });
1193
+ `
1194
+ )
1195
+ })
1281
1196
  }
1282
1197
  if ($(Wick.BasketPage.el.promoWrapper).length) {
1283
1198
  return arr.join('');
1284
1199
  } else {
1285
- $(Wick.BasketPage.el.checkoutHeader).before(
1286
- `<div class="checkout-header__promo">${arr.join('')}</div>`
1287
- );
1200
+ $(Wick.BasketPage.el.checkoutHeader).before(`<div class="checkout-header__promo">${arr.join('')}</div>`)
1288
1201
  }
1289
1202
  },
1290
1203
  limitingQuantityValue: function () {
@@ -1316,7 +1229,7 @@ Wick.BasketPage = {
1316
1229
  const collapsed = $(context).hasClass('collapsed');
1317
1230
  const accordionText = collapsed ? showText : hideText;
1318
1231
 
1319
- $(context).find(Wick.BasketPage.el.summaryAccordionText).text(accordionText);
1232
+ $(context).find(Wick.BasketPage.el.summaryAccordionText).text(accordionText)
1320
1233
  }, 150),
1321
1234
  changeOnBlur: function () {
1322
1235
  const context = $(this).closest(Wick.BasketPage.el.orderItem),
@@ -1346,60 +1259,29 @@ Wick.BasketPage = {
1346
1259
 
1347
1260
  $(Wick.BasketPage.el.content).find(quantityValue).prop('disabled', false);
1348
1261
  $(Wick.BasketPage.el.content).find(quantityButton).prop('disabled', false);
1349
- },
1262
+ }
1350
1263
  };
1351
1264
 
1352
1265
  $(document).on('cartUpdate', initStickyObserver);
1353
1266
 
1354
1267
  $(document).ready(function () {
1355
1268
  function init() {
1269
+
1356
1270
  if (!$('.page_basket.basket').length) {
1357
1271
  return;
1358
1272
  }
1359
1273
 
1360
1274
  addStorageCheckEvent();
1361
1275
  Wick.BasketPage.el.$voucherFormBtn.on('click', checkVoucherCode);
1362
- $(Wick.BasketPage.el.content).on(
1363
- 'click',
1364
- Wick.BasketPage.el.quantityButton,
1365
- Wick.BasketPage.updateItemQuantity
1366
- );
1367
- $(Wick.BasketPage.el.content).on(
1368
- 'click',
1369
- Wick.BasketPage.el.removeButton,
1370
- Wick.BasketPage.updateItemQuantity
1371
- );
1372
- $(Wick.BasketPage.el.content).on(
1373
- 'change',
1374
- Wick.BasketPage.el.quantityValue,
1375
- Wick.BasketPage.updateItemQuantity
1376
- );
1377
- $(Wick.BasketPage.el.content).on(
1378
- 'input',
1379
- Wick.BasketPage.el.quantityValue,
1380
- Wick.BasketPage.limitingQuantityValue
1381
- );
1382
- $(Wick.BasketPage.el.content).on(
1383
- 'click',
1384
- Wick.BasketPage.el.ccButton,
1385
- Wick.BasketPage.showCCSectionInDelivery
1386
- );
1387
- $(Wick.BasketPage.el.content).on(
1388
- 'focusout',
1389
- Wick.BasketPage.el.quantityValue,
1390
- Wick.BasketPage.changeOnBlur
1391
- );
1392
- $(Wick.BasketPage.el.content).on(
1393
- 'click',
1394
- Wick.BasketPage.el.deliveryButtonInCC,
1395
- Wick.BasketPage.changeMethodToDelivery
1396
- );
1397
- $(Wick.BasketPage.el.content).on(
1398
- 'click',
1399
- Wick.BasketPage.el.updateStoreButton,
1400
- Wick.BasketPage.changeMethodToCC
1401
- );
1402
- $(Wick.BasketPage.el.donationCartBtn).on('click', function (e) {
1276
+ $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.quantityButton, Wick.BasketPage.updateItemQuantity);
1277
+ $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.removeButton, Wick.BasketPage.updateItemQuantity);
1278
+ $(Wick.BasketPage.el.content).on('change', Wick.BasketPage.el.quantityValue, Wick.BasketPage.updateItemQuantity);
1279
+ $(Wick.BasketPage.el.content).on('input', Wick.BasketPage.el.quantityValue, Wick.BasketPage.limitingQuantityValue);
1280
+ $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.ccButton, Wick.BasketPage.showCCSectionInDelivery);
1281
+ $(Wick.BasketPage.el.content).on('focusout', Wick.BasketPage.el.quantityValue, Wick.BasketPage.changeOnBlur);
1282
+ $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.deliveryButtonInCC, Wick.BasketPage.changeMethodToDelivery);
1283
+ $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.updateStoreButton, Wick.BasketPage.changeMethodToCC);
1284
+ $(Wick.BasketPage.el.donationCartBtn).on('click', function(e) {
1403
1285
  e.preventDefault();
1404
1286
  const context = $(this).closest(Wick.BasketPage.el.charityItem);
1405
1287
  if (!context.hasClass('charity-added')) {
@@ -1409,53 +1291,17 @@ $(document).ready(function () {
1409
1291
  changeCharityPrice.call(this);
1410
1292
  }
1411
1293
  });
1412
- $(Wick.BasketPage.el.charityItem).on(
1413
- 'click',
1414
- Wick.BasketPage.el.removeButton,
1415
- updateCharity
1416
- );
1417
- $(Wick.BasketPage.el.orderSummary).on(
1418
- 'click',
1419
- Wick.BasketPage.el.voucherRemove,
1420
- voucherRemove
1421
- );
1422
- $(Wick.BasketPage.el.promoWrapper).on(
1423
- 'click',
1424
- Wick.BasketPage.el.promoClose,
1425
- Wick.BasketPage.removePromotion
1426
- );
1427
- $(Wick.BasketPage.el.content).on(
1428
- 'click',
1429
- Wick.BasketPage.el.deliveryStockButton,
1430
- toggleWisdom
1431
- );
1294
+ $(Wick.BasketPage.el.charityItem).on('click', Wick.BasketPage.el.removeButton, updateCharity);
1295
+ $(Wick.BasketPage.el.orderSummary).on('click', Wick.BasketPage.el.voucherRemove, voucherRemove);
1296
+ $(Wick.BasketPage.el.promoWrapper).on('click', Wick.BasketPage.el.promoClose, Wick.BasketPage.removePromotion);
1297
+ $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.deliveryStockButton, toggleWisdom);
1432
1298
  $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.wisdomClose, toggleWisdom);
1433
- $(Wick.BasketPage.el.content).on(
1434
- 'click',
1435
- Wick.BasketPage.el.wisdomCheck,
1436
- checkDeliveryStock
1437
- );
1438
- $(Wick.BasketPage.el.content).on(
1439
- 'keypress',
1440
- Wick.BasketPage.el.wisdomPostcode,
1441
- checkDeliveryStockOnEnter
1442
- );
1443
- $(Wick.BasketPage.el.content).on(
1444
- 'blur',
1445
- Wick.BasketPage.el.wisdomPostcode,
1446
- prettifyWisdomPostcode
1447
- );
1299
+ $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.wisdomCheck, checkDeliveryStock);
1300
+ $(Wick.BasketPage.el.content).on('keypress', Wick.BasketPage.el.wisdomPostcode, checkDeliveryStockOnEnter);
1301
+ $(Wick.BasketPage.el.content).on('blur', Wick.BasketPage.el.wisdomPostcode, prettifyWisdomPostcode);
1448
1302
  $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.wisdomAdd, addDeliveryStock);
1449
- $(Wick.BasketPage.el.content).on(
1450
- 'click',
1451
- Wick.BasketPage.el.changeLink,
1452
- Wick.Wisdom.onLinkChange
1453
- );
1454
- $(Wick.BasketPage.el.content).on(
1455
- 'click',
1456
- Wick.BasketPage.el.summaryAccordion,
1457
- Wick.BasketPage.changeAccordionText
1458
- );
1303
+ $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.changeLink, Wick.Wisdom.onLinkChange);
1304
+ $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.summaryAccordion, Wick.BasketPage.changeAccordionText);
1459
1305
  $('main').on('click', Wick.BasketPage.el.promoClose, Wick.BasketPage.removePromotion);
1460
1306
 
1461
1307
  $(Wick.BasketPage.el.voucherRemove).unbind('click');