wickes-css2 2.112.0-develop.1 → 2.112.0-dont-forget-widget.1

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 (353) hide show
  1. package/Readme.md +1 -1
  2. package/build/css/account-families-main.css +1 -1
  3. package/build/css/category-main.css +1 -1
  4. package/build/css/components/card-product-banner.css +1 -1
  5. package/build/css/components/card-store-locator-v2.css +1 -1
  6. package/build/css/components/special-opening-schedule-v2.css +1 -1
  7. package/build/css/homepage-main.css +1 -1
  8. package/build/css/kitchen-plp-main.css +1 -1
  9. package/build/css/main.css +1 -1
  10. package/build/css/my-account-main-v2.css +1 -1
  11. package/build/css/my-account-main.css +1 -1
  12. package/build/css/pages/checkout-new.css +1 -1
  13. package/build/css/pages/checkout.css +1 -1
  14. package/build/css/pages/home-movers.css +1 -1
  15. package/build/css/pages/my-account-v2.css +1 -1
  16. package/build/css/pages/my-account.css +1 -1
  17. package/build/css/pages/oldweb_header.css +1 -1
  18. package/build/css/pages/page_act-trade-pro.css +1 -1
  19. package/build/css/pages/page_book-consultant-thank-you-new.css +1 -1
  20. package/build/css/pages/page_checkout-payment-details.css +1 -1
  21. package/build/css/pages/page_checkout_delivery-new.css +1 -1
  22. package/build/css/pages/page_content.css +1 -1
  23. package/build/css/pages/page_default-store.css +1 -1
  24. package/build/css/pages/page_fdl-management.css +1 -1
  25. package/build/css/pages/page_fi.css +1 -1
  26. package/build/css/pages/page_forgotten-password.css +1 -1
  27. package/build/css/pages/page_home.css +1 -1
  28. package/build/css/pages/page_in-store-checkout.css +1 -1
  29. package/build/css/pages/page_installer_form.css +1 -1
  30. package/build/css/pages/page_kitchen-claims.css +1 -1
  31. package/build/css/pages/page_merged-basket.css +1 -1
  32. package/build/css/pages/page_my-order.css +1 -1
  33. package/build/css/pages/page_my-orders.css +1 -1
  34. package/build/css/pages/page_new-checkout-forgot.css +1 -1
  35. package/build/css/pages/page_online-exclusive.css +1 -1
  36. package/build/css/pages/page_pre_home.css +1 -1
  37. package/build/css/pages/page_pre_home_thank-you.css +1 -1
  38. package/build/css/pages/page_product-details-v2.css +1 -1
  39. package/build/css/pages/page_product_search.css +1 -1
  40. package/build/css/pages/page_products-list-combined.css +1 -1
  41. package/build/css/pages/page_products-list.css +1 -1
  42. package/build/css/pages/page_registration.css +1 -1
  43. package/build/css/pages/page_shopping-cart-v2.css +1 -1
  44. package/build/css/pages/page_shopping-cart.css +1 -1
  45. package/build/css/pages/page_store-locator-details.css +1 -1
  46. package/build/css/pages/page_thankyou.css +1 -1
  47. package/build/css/pages/page_ti.css +1 -1
  48. package/build/css/pages/page_top-rated.css +1 -1
  49. package/build/css/pages/page_upd-pass.css +1 -1
  50. package/build/css/pages/page_wismo-details.css +1 -1
  51. package/build/css/pages/page_wismo-orders.css +1 -1
  52. package/build/css/pages/sticky_header.css +1 -1
  53. package/build/css/pages/tradePro-signup.css +1 -1
  54. package/build/css/pdp-main-before-combine.css +1 -1
  55. package/build/css/pdp-main-critical.css +1 -1
  56. package/build/css/pdp-main-non-critical.css +1 -1
  57. package/build/css/pdp-main.css +1 -1
  58. package/build/css/plp-main.css +1 -1
  59. package/build/css/shopping-list-pdf.css +1 -1
  60. package/build/css/store-locator-main.css +1 -1
  61. package/build/img/premium-delivery.png +0 -0
  62. package/build/img/premium-delivery.svg +1 -0
  63. package/build/js/bloomreach-widget.min.js +1 -1
  64. package/build/js/emulation.min.js +389 -11
  65. package/build/js/page/bloomreach-widget/bloomreach-widget.js +241 -0
  66. package/build/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +205 -359
  67. package/build/js/page/bloomreach-widget/why-not-add-widget.js +196 -0
  68. package/package.json +3 -5
  69. package/src/components/banner-news.hbs +5 -1
  70. package/src/components/bloomreach/complete-card.hbs +4 -32
  71. package/src/components/bloomreach/why-not-add-card-skeleton.hbs +14 -0
  72. package/src/components/bloomreach/why-not-add-card.hbs +73 -0
  73. package/src/components/bloomreach/why-not-add-content.hbs +41 -0
  74. package/src/components/bloomreach/why-not-add-skeleton.hbs +9 -0
  75. package/src/components/bloomreach/why-not-add.hbs +6 -0
  76. package/src/components/date-selection.hbs +33 -10
  77. package/src/components/delivery-types.hbs +5 -0
  78. package/src/components/pdp-price-actions.hbs +2 -2
  79. package/src/components/price-block-v2.hbs +2 -0
  80. package/src/components/reviews-rating.hbs +22 -0
  81. package/src/data/my-account/data_my-account.json +6 -26
  82. package/src/data/my-account/data_my-order.json +43 -0
  83. package/src/data/my-account/data_my-orders.json +15 -1
  84. package/src/img/premium-delivery.png +0 -0
  85. package/src/img/premium-delivery.svg +1 -0
  86. package/src/js/emulation/bloomreach-widget-loading.js +2 -2
  87. package/src/js/emulation/date-selection.js +59 -2
  88. package/src/js/emulation/mock.js +309 -0
  89. package/src/js/emulation/why-not-add-loading.js +11 -0
  90. package/src/js/emulation/why-not-add.js +28 -0
  91. package/src/js/page/bloomreach-widget/bloomreach-widget.js +241 -0
  92. package/src/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +205 -359
  93. package/src/js/page/bloomreach-widget/why-not-add-widget.js +196 -0
  94. package/src/page_checkout_premium-delivery-details.html +161 -0
  95. package/src/page_product-details-bloomreach.html +1 -1
  96. package/src/page_product-details-with-global-search-v2.html +2 -1
  97. package/src/page_product-details-with-why-not-add-single.html +131 -0
  98. package/src/scss/category-main.scss +5 -7
  99. package/src/scss/common/_app.scss +1 -1
  100. package/src/scss/common/_rewards-counter.scss +1 -2
  101. package/src/scss/common/_typography.scss +1 -1
  102. package/src/scss/common/_vat-toggle.scss +1 -1
  103. package/src/scss/components/_add-list-id.scss +0 -1
  104. package/src/scss/components/_advice-inspiration-critical.scss +2 -2
  105. package/src/scss/components/_advice-inspiration.scss +2 -3
  106. package/src/scss/components/_anchor-nav.scss +1 -1
  107. package/src/scss/components/_aside-accordion.scss +0 -5
  108. package/src/scss/components/_aside-nav.scss +1 -1
  109. package/src/scss/components/_aside-nav2.scss +0 -2
  110. package/src/scss/components/_autocomplete.scss +0 -1
  111. package/src/scss/components/_banner-2.scss +1 -1
  112. package/src/scss/components/_banner-info.scss +1 -1
  113. package/src/scss/components/_banner.scss +0 -2
  114. package/src/scss/components/_barcode.scss +0 -1
  115. package/src/scss/components/_big-wins-critical.scss +8 -9
  116. package/src/scss/components/_big-wins.scss +25 -32
  117. package/src/scss/components/_billie-modal.scss +5 -6
  118. package/src/scss/components/_billie-online-messaging.scss +2 -2
  119. package/src/scss/components/_card.scss +1 -5
  120. package/src/scss/components/_cards-slider.scss +1 -1
  121. package/src/scss/components/_category-tree.scss +2 -2
  122. package/src/scss/components/_charity-donations.scss +7 -7
  123. package/src/scss/components/_checkout-action.scss +0 -2
  124. package/src/scss/components/_checkout_order.scss +1 -1
  125. package/src/scss/components/_colour-block.scss +0 -2
  126. package/src/scss/components/_cookies-policy.scss +1 -1
  127. package/src/scss/components/_copy-project-id.scss +0 -1
  128. package/src/scss/components/_date-selection-add-new-styles.scss +30 -7
  129. package/src/scss/components/_date-selection.scss +32 -12
  130. package/src/scss/components/_donation-cart-new.scss +6 -6
  131. package/src/scss/components/_donation-cart.scss +3 -4
  132. package/src/scss/components/_favourite-product.scss +1 -1
  133. package/src/scss/components/_gallery-critical.scss +3 -3
  134. package/src/scss/components/_gallery-pdp-critical.scss +4 -4
  135. package/src/scss/components/_gallery-pdp.scss +2 -2
  136. package/src/scss/components/_gallery.scss +2 -2
  137. package/src/scss/components/_hero.scss +0 -1
  138. package/src/scss/components/_home-banner.scss +1 -1
  139. package/src/scss/components/_kitchen-card.scss +4 -4
  140. package/src/scss/components/_lines-group.scss +0 -1
  141. package/src/scss/components/_marketing-preferences.scss +1 -1
  142. package/src/scss/components/_merge-basket-options.scss +0 -1
  143. package/src/scss/components/_modal-box.scss +5 -5
  144. package/src/scss/components/_new-checkout-form.scss +1 -1
  145. package/src/scss/components/_notifications-critical.scss +1 -3
  146. package/src/scss/components/_order-item-cc.scss +6 -7
  147. package/src/scss/components/_order-item.scss +11 -12
  148. package/src/scss/components/_order-line-shop-list.scss +2 -2
  149. package/src/scss/components/_order-line.scss +3 -3
  150. package/src/scss/components/_page-overlay.scss +3 -9
  151. package/src/scss/components/_payment-transactions.scss +5 -5
  152. package/src/scss/components/_payments.scss +0 -1
  153. package/src/scss/components/_pdp-cta.scss +0 -4
  154. package/src/scss/components/_pdp-info-v2.scss +2 -5
  155. package/src/scss/components/_popular-categories.scss +0 -2
  156. package/src/scss/components/_potential-promotion.scss +1 -1
  157. package/src/scss/components/_price-badges-critical.scss +0 -1
  158. package/src/scss/components/_price-badges.scss +0 -2
  159. package/src/scss/components/_price-tooltip.scss +3 -2
  160. package/src/scss/components/_price.scss +2 -2
  161. package/src/scss/components/_product-card-critical.scss +1 -2
  162. package/src/scss/components/_product-card.scss +3 -5
  163. package/src/scss/components/_product-main-info.scss +4 -5
  164. package/src/scss/components/_project-list-multiple.scss +4 -4
  165. package/src/scss/components/_project-list-total.scss +1 -1
  166. package/src/scss/components/_proposition.scss +2 -2
  167. package/src/scss/components/_range-card.scss +1 -3
  168. package/src/scss/components/_range-types.scss +2 -2
  169. package/src/scss/components/_recommended.scss +1 -5
  170. package/src/scss/components/_rewards.scss +1 -1
  171. package/src/scss/components/_saving-shopping-list-modal.scss +1 -2
  172. package/src/scss/components/_seo-widgets.scss +1 -2
  173. package/src/scss/components/_share-list-modal.scss +1 -2
  174. package/src/scss/components/_shop-colour.scss +1 -1
  175. package/src/scss/components/_shopping-list-note.scss +2 -2
  176. package/src/scss/components/_smart-banner.scss +4 -5
  177. package/src/scss/components/_snack-bar.scss +2 -2
  178. package/src/scss/components/_steps-three.scss +3 -3
  179. package/src/scss/components/_steps.scss +2 -2
  180. package/src/scss/components/_sticky-element-appearance.scss +2 -2
  181. package/src/scss/components/_tables.scss +1 -2
  182. package/src/scss/components/_tabs.scss +0 -1
  183. package/src/scss/components/_tc-generic-floor.scss +3 -3
  184. package/src/scss/components/_tc-generic.scss +4 -4
  185. package/src/scss/components/_thank-you-modal.scss +3 -1
  186. package/src/scss/components/_ti-floor.scss +3 -4
  187. package/src/scss/components/_ti-header.scss +2 -2
  188. package/src/scss/components/_ti-radio.scss +4 -4
  189. package/src/scss/components/_ti-total-area.scss +10 -10
  190. package/src/scss/components/_tile-banner.scss +1 -1
  191. package/src/scss/components/_tile-product.scss +3 -4
  192. package/src/scss/components/_tooltip.scss +2 -2
  193. package/src/scss/components/_trade-offers.scss +0 -1
  194. package/src/scss/components/_tradepro-discount-banner.scss +0 -1
  195. package/src/scss/components/_user-address-delivery.scss +1 -3
  196. package/src/scss/components/_user-address.scss +1 -1
  197. package/src/scss/components/_usp-component.scss +0 -1
  198. package/src/scss/components/_voucher-accordion.scss +3 -3
  199. package/src/scss/components/_wisdom-critical.scss +2 -3
  200. package/src/scss/components/_wisdom.scss +6 -9
  201. package/src/scss/components/_your-details.scss +0 -1
  202. package/src/scss/components/account-families/_add-members.scss +1 -3
  203. package/src/scss/components/account-families/_member-card.scss +3 -3
  204. package/src/scss/components/bloomreach/_bloomreach.scss +3 -0
  205. package/src/scss/components/bloomreach/_complete-card.scss +0 -38
  206. package/src/scss/components/bloomreach/_reviews.scss +60 -0
  207. package/src/scss/components/bloomreach/_why-not-add-card.scss +212 -0
  208. package/src/scss/components/bloomreach/_why-not-add.scss +143 -0
  209. package/src/scss/components/card-store-locator-v2.scss +0 -1
  210. package/src/scss/components/card_v2.scss +3 -7
  211. package/src/scss/components/checkout-loader-modal.scss +0 -1
  212. package/src/scss/components/energy-efficiency.scss +6 -6
  213. package/src/scss/components/global-search.scss +14 -14
  214. package/src/scss/components/kitchen/_chips.scss +7 -6
  215. package/src/scss/components/kitchen/_filter-card.scss +1 -1
  216. package/src/scss/components/kitchen/_sort-by.scss +2 -3
  217. package/src/scss/components/kitchen/strip-stickers.scss +1 -1
  218. package/src/scss/components/loader.scss +5 -6
  219. package/src/scss/components/my-account/_active-orders.scss +6 -6
  220. package/src/scss/components/my-account/_consignment-info.scss +3 -3
  221. package/src/scss/components/my-account/_contacts.scss +2 -2
  222. package/src/scss/components/my-account/_menu.scss +2 -2
  223. package/src/scss/components/my-account/_mobile-nav.scss +4 -4
  224. package/src/scss/components/my-account/_order-process.scss +3 -3
  225. package/src/scss/components/my-account/_order-status.scss +3 -3
  226. package/src/scss/components/my-account/_orders-nav.scss +1 -1
  227. package/src/scss/components/my-account/_payment-status.scss +2 -2
  228. package/src/scss/components/my-account/_saving-totaliser.scss +8 -7
  229. package/src/scss/components/my-account/_shipment.scss +2 -2
  230. package/src/scss/components/pdf-loader.scss +1 -2
  231. package/src/scss/components/price-block-v2-critical.scss +0 -1
  232. package/src/scss/components/price-block-v2.scss +0 -3
  233. package/src/scss/components/store-locator-v2-details.scss +2 -2
  234. package/src/scss/components/strip-stickers.scss +1 -1
  235. package/src/scss/helpers/_elements.scss +0 -1
  236. package/src/scss/helpers/_mixins.scss +5 -5
  237. package/src/scss/helpers/_store-locator-elements.scss +0 -1
  238. package/src/scss/helpers/_typography.scss +3 -3
  239. package/src/scss/helpers/_utilities.scss +0 -1
  240. package/src/scss/helpers/helpers-pdp-critical/_CTAs-critical-pdp.scss +1 -1
  241. package/src/scss/helpers/helpers-pdp-critical/_elements-critical-pdp.scss +0 -1
  242. package/src/scss/helpers/helpers-pdp-critical/_helpers-critical-pdp.scss +1 -1
  243. package/src/scss/helpers/helpers-pdp-critical/_typography-critical-pdp.scss +4 -4
  244. package/src/scss/libs/_bootstrap-extracted.scss +42 -12
  245. package/src/scss/libs/_cat-libs.scss +10 -10
  246. package/src/scss/libs/_font-awesome-icons.scss +133 -113
  247. package/src/scss/libs/_homepage-libs.scss +12 -12
  248. package/src/scss/libs/_plp-libs.scss +11 -11
  249. package/src/scss/libs/_skeleton.scss +4 -4
  250. package/src/scss/libs/_store-locator-libs.scss +1 -1
  251. package/src/scss/libs/flatpickr.scss +6 -6
  252. package/src/scss/my-account-main-v2.scss +19 -19
  253. package/src/scss/my-account-main.scss +19 -19
  254. package/src/scss/pages/_checkout-confirmation.scss +1 -3
  255. package/src/scss/pages/_checkout-sign-in.scss +1 -2
  256. package/src/scss/pages/_checkout-tradepro.scss +3 -4
  257. package/src/scss/pages/_checkout-widget.scss +10 -16
  258. package/src/scss/pages/_checkout_delivery-details.scss +1 -3
  259. package/src/scss/pages/_checkout_edit-delivery-address.scss +0 -1
  260. package/src/scss/pages/_checkout_terms-and-conditions.scss +0 -1
  261. package/src/scss/pages/_checkout_your-details.scss +1 -1
  262. package/src/scss/pages/_contact-us.scss +0 -1
  263. package/src/scss/pages/_facets.scss +0 -2
  264. package/src/scss/pages/_my-account_address-details.scss +0 -3
  265. package/src/scss/pages/_my-account_change-email.scss +0 -1
  266. package/src/scss/pages/_my-account_new.scss +25 -31
  267. package/src/scss/pages/_my-account_order-details.scss +1 -1
  268. package/src/scss/pages/_my-account_order-history.scss +1 -2
  269. package/src/scss/pages/_my-account_personal-details.scss +0 -5
  270. package/src/scss/pages/_my-account_profile.scss +1 -2
  271. package/src/scss/pages/_my-account_your-account.scss +0 -1
  272. package/src/scss/pages/_page_category-landing.scss +3 -2
  273. package/src/scss/pages/bicester-header.scss +0 -1
  274. package/src/scss/pages/checkout-new.scss +7 -2
  275. package/src/scss/pages/checkout.scss +4 -5
  276. package/src/scss/pages/home-movers.scss +1 -1
  277. package/src/scss/pages/iframe-paypage.scss +44 -44
  278. package/src/scss/pages/my-account.scss +3 -3
  279. package/src/scss/pages/oldweb_header.scss +5 -6
  280. package/src/scss/pages/page_account-deletion.scss +1 -1
  281. package/src/scss/pages/page_act-trade-pro.scss +0 -1
  282. package/src/scss/pages/page_address-book.scss +0 -1
  283. package/src/scss/pages/page_bathroom-trends.scss +0 -1
  284. package/src/scss/pages/page_book-consultant-thank-you-new.scss +3 -5
  285. package/src/scss/pages/page_checkout-payment-details.scss +2 -5
  286. package/src/scss/pages/page_checkout_delivery-new.scss +1 -1
  287. package/src/scss/pages/page_cms_homepage.scss +1 -1
  288. package/src/scss/pages/page_contact-us.scss +1 -1
  289. package/src/scss/pages/page_content.scss +0 -4
  290. package/src/scss/pages/page_default-store.scss +2 -3
  291. package/src/scss/pages/page_empty-basket.scss +0 -5
  292. package/src/scss/pages/page_fdl-management.scss +0 -1
  293. package/src/scss/pages/page_fi.scss +0 -2
  294. package/src/scss/pages/page_home.scss +0 -2
  295. package/src/scss/pages/page_hotspot-guttering.scss +0 -1
  296. package/src/scss/pages/page_in-store-checkout.scss +1 -3
  297. package/src/scss/pages/page_installer.scss +3 -5
  298. package/src/scss/pages/page_installer_form.scss +0 -1
  299. package/src/scss/pages/page_kitchen-claims.scss +2 -5
  300. package/src/scss/pages/page_kitchen-list.scss +1 -1
  301. package/src/scss/pages/page_marketing-preferences.scss +1 -1
  302. package/src/scss/pages/page_merged-basket.scss +2 -2
  303. package/src/scss/pages/page_my-account_tradePro.scss +1 -1
  304. package/src/scss/pages/page_my-order.scss +15 -15
  305. package/src/scss/pages/page_my-orders.scss +2 -2
  306. package/src/scss/pages/page_new-checkout_login-register.scss +1 -2
  307. package/src/scss/pages/page_no-results.scss +1 -2
  308. package/src/scss/pages/page_online-exclusive.scss +6 -6
  309. package/src/scss/pages/page_personal-details.scss +2 -2
  310. package/src/scss/pages/page_pre_home.scss +7 -7
  311. package/src/scss/pages/page_pre_home_thank-you.scss +2 -2
  312. package/src/scss/pages/page_product-details-critical.scss +0 -1
  313. package/src/scss/pages/page_product-details-v2-critical.scss +1 -2
  314. package/src/scss/pages/page_product-details.scss +0 -1
  315. package/src/scss/pages/page_products-list-phone.scss +0 -7
  316. package/src/scss/pages/page_products-list.scss +2 -2
  317. package/src/scss/pages/page_quiz.scss +3 -3
  318. package/src/scss/pages/page_rate-review.scss +0 -3
  319. package/src/scss/pages/page_registration.scss +0 -3
  320. package/src/scss/pages/page_store-locator-details.scss +2 -2
  321. package/src/scss/pages/page_ti.scss +1 -5
  322. package/src/scss/pages/page_top-rated.scss +5 -5
  323. package/src/scss/pages/page_track-my-order.scss +1 -1
  324. package/src/scss/pages/page_track_your_order.scss +5 -5
  325. package/src/scss/pages/page_upd-pass.scss +0 -1
  326. package/src/scss/pages/page_wismo-details.scss +8 -8
  327. package/src/scss/pages/page_wismo-order-history.scss +3 -3
  328. package/src/scss/pages/page_wismo-orders.scss +7 -7
  329. package/src/scss/pages/print_quiz.scss +3 -1
  330. package/src/scss/pages/sticky_header.scss +5 -6
  331. package/src/scss/pages/tradePro-about.scss +1 -1
  332. package/src/scss/pages/tradePro-discount.scss +1 -2
  333. package/src/scss/pages/tradePro-rewards-old.scss +4 -3
  334. package/src/scss/pages/tradePro-signup.scss +3 -5
  335. package/src/scss/partials/_breadcrumbs-critical.scss +2 -2
  336. package/src/scss/partials/_breadcrumbs.scss +2 -2
  337. package/src/scss/partials/_footer-v2.scss +2 -2
  338. package/src/scss/partials/_footer.scss +4 -4
  339. package/src/scss/partials/_footer_checkout-new.scss +1 -1
  340. package/src/scss/partials/_footer_checkout.scss +1 -1
  341. package/src/scss/partials/_header-critical.scss +6 -9
  342. package/src/scss/partials/_header.scss +7 -9
  343. package/src/scss/partials/_header_checkout.scss +2 -2
  344. package/src/scss/partials/_main-nav.scss +7 -11
  345. package/src/scss/partials/_sign-up.scss +3 -3
  346. package/src/scss/shopping-list-pdf.scss +1 -1
  347. package/src/sitemap.html +12 -4
  348. package/src/components/.DS_Store +0 -0
  349. package/src/img/.DS_Store +0 -0
  350. package/src/img/placeholders/.DS_Store +0 -0
  351. package/src/js/page/.DS_Store +0 -0
  352. package/src/scss/.DS_Store +0 -0
  353. package/src/scss/pages/.DS_Store +0 -0
@@ -97,7 +97,21 @@
97
97
  },
98
98
  "totalPrice": "920.75",
99
99
  "totalItemCount": 7,
100
- "orderDate": "21st November 2024 4:32 PM"
100
+ "orderDate": "21st November 2024 4:32 PM",
101
+ "shipmentDetails": [
102
+ {
103
+ "shipmentIcon": "fas fa-shipping-fast",
104
+ "shipmentTitle": "Premium Delivery from Southampton store",
105
+ "shipmentInfo": "Dispatched. Delivery — By 12 PM - 12th Apr 2026",
106
+ "itemsCount": 1
107
+ },
108
+ {
109
+ "shipmentIcon": "fas fa-box-alt",
110
+ "shipmentTitle": "Supplier Delivery",
111
+ "shipmentInfo": "Order placed. These item(s) will be delivered within 14 days after receiving your order confirmation. Supplier will contact you with additional information.",
112
+ "itemsCount": 3
113
+ }
114
+ ]
101
115
  },
102
116
  {
103
117
  "orderId": "940564923",
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><g clip-path="url(#a)"><circle cx="19.828" cy="12.892" r="6.953" stroke="#99b5cf" stroke-width="1.112"/><rect width="1.112" height="2.503" x="19.272" y="5.661" fill="#99b5cf" rx=".556"/><rect width="1.112" height="2.503" x="12.32" y="13.448" fill="#99b5cf" rx=".556" transform="rotate(-90 12.32 13.448)"/><path fill="#99b5cf" d="M1.056 21.513a.556.556 0 1 1 0-1.112H4.95v1.112z"/><rect width="1.112" height="2.503" x="24.834" y="13.448" fill="#99b5cf" rx=".556" transform="rotate(-90 24.834 13.448)"/><rect width="1.112" height="2.503" x="14.127" y="8.116" fill="#99b5cf" rx=".556" transform="rotate(-45 14.127 8.116)"/><rect width="1.112" height="2.503" fill="#99b5cf" rx=".556" transform="rotate(225 10.734 5.935)scale(-1 1)"/><rect width="1.112" height="2.503" fill="#99b5cf" rx=".556" transform="rotate(45 2.994 34.94)scale(-1 1)"/><rect width="1.112" height="3.428" fill="#99b5cf" rx=".556" transform="matrix(1 0 0 -1 19.272 12.844)"/><rect width="1.112" height="2.781" fill="#99b5cf" rx=".556" transform="matrix(0 -1 -1 0 19.78 13.448)"/><rect width="1.112" height="2.503" x="25.583" y="17.721" fill="#99b5cf" rx=".556" transform="rotate(135 25.583 17.72)"/><rect width="1.112" height="2.503" x="19.272" y="17.898" fill="#99b5cf" rx=".556"/><rect width="1.669" height="1.669" x="18.994" y="12.058" fill="#99b5cf" rx=".834"/><path fill="#99b5cf" d="M1.056 24.85a.556.556 0 1 1 0-1.112H4.95v1.113zM1.056 28.188a.556.556 0 1 1 0-1.112H4.95v1.112zM1.056 31.525a.556.556 0 1 1 0-1.112H4.95v1.112z"/><path fill="#99b5cf" fill-rule="evenodd" d="M10.86 35.419a2.98 2.98 0 0 1 2.266 1.044H8.593a2.98 2.98 0 0 1 2.266-1.044m.864-20.024c1.027 3.329 4.047 5.785 7.668 5.968l.436.012a8.49 8.49 0 0 0 8.107-5.98h4.547c1.229 0 2.225.997 2.225 2.226v4.435q.115-.026.246-.051a14 14 0 0 1 2.376-.253c1.902-.038 4.365.319 6.418 1.97 1.286 1.035 2.179 2.954 2.804 4.863.634 1.938 1.03 3.99 1.254 5.41.21 1.33-.837 2.468-2.146 2.468h-2.353a4.52 4.52 0 0 0-3.847-2.568l-.232-.005a4.52 4.52 0 0 0-4.08 2.573H14.94a4.52 4.52 0 0 0-3.847-2.568l-.233-.005a4.52 4.52 0 0 0-4.073 2.557 2.226 2.226 0 0 1-1.975-2.21v-2.71h5.005a.557.557 0 0 0 0-1.114H4.811V28.19h2.92a.557.557 0 0 0 0-1.113H4.81v-2.224h5.005a.556.556 0 1 0 0-1.112H4.811v-2.226h8.065a.556.556 0 0 0 0-1.113H4.811v-2.78c0-1.229.996-2.226 2.225-2.226zm27.503 20.024a2.98 2.98 0 0 1 2.266 1.044H36.96a2.98 2.98 0 0 1 2.268-1.044M37.48 24.715a.945.945 0 0 0-.965.953v4.263c0 .537.436.973.973.973h4.728c.53 0 .997-.44.95-1.017a8 8 0 0 0-.355-1.814c-.23-.703-.617-1.482-1.278-2.043-1.17-.993-2.79-1.24-3.707-1.3z" clip-rule="evenodd"/><circle cx="10.86" cy="38.408" r="3.476" fill="#fff" stroke="#99b5cf" stroke-width="1.53"/><circle cx="10.86" cy="38.408" r="1.738" fill="#fff" stroke="#99b5cf" stroke-width="1.112"/><circle cx="39.226" cy="38.408" r="3.476" fill="#fff" stroke="#99b5cf" stroke-width="1.53"/><circle cx="39.226" cy="38.408" r="1.738" stroke="#99b5cf" stroke-width="1.112"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h48v48H0z"/></clipPath></defs></svg>
@@ -3,9 +3,9 @@ var Wick = window.Wick || {};
3
3
  $(document).ready(function () {
4
4
  window.setTimeout(function () {
5
5
  const $container = $('[data-complete-widget]');
6
- const contextKey = $container.data('context-key');
6
+ const contextKey = $container.data('mock-key');
7
7
  const payloadData = Wick.FEMock.dataBloomreach[contextKey];
8
8
 
9
- Wick.BloomreachWidget.init(payloadData);
9
+ Wick.BloomreachWidget.init('completeYourProject', payloadData);
10
10
  }, 3000);
11
11
  });
@@ -6,12 +6,14 @@ const DS_EL = {
6
6
  subtitle: '.delivery-btn .subtitle',
7
7
  infoIcon: '.rapid-info-icon',
8
8
  image: '.delivery-btn__image',
9
+ premiumImage: '.delivery-btn__image--premium',
9
10
  };
10
11
 
11
12
  const DS_CLASSES = {
12
13
  selectedCell: 'calendar__cell_selected',
13
14
  isSelected: 'date-selection_selected',
14
- rapidCell: 'calendar__cell_rapid',
15
+ rapidCell: 'calendar-rapid-day',
16
+ premiumCell: 'calendar-premium-day',
15
17
  hidden: 'd-none',
16
18
  };
17
19
 
@@ -98,17 +100,72 @@ function updateRapidInfo() {
98
100
  updateDeliveryInfo();
99
101
  }
100
102
 
103
+ function getPremiumOrdinal(day) {
104
+ if (day > 3 && day < 21) return 'th';
105
+ switch (day % 10) {
106
+ case 1:
107
+ return 'st';
108
+ case 2:
109
+ return 'nd';
110
+ case 3:
111
+ return 'rd';
112
+ default:
113
+ return 'th';
114
+ }
115
+ }
116
+
117
+ function formatPremiumDate() {
118
+ const tomorrow = new Date();
119
+ tomorrow.setDate(tomorrow.getDate() + 1);
120
+ const day = tomorrow.getDate();
121
+ const month = tomorrow.toLocaleString('en-GB', { month: 'long' });
122
+ const year = tomorrow.getFullYear();
123
+ return `${day}${getPremiumOrdinal(day)} ${month} ${year}`;
124
+ }
125
+
126
+ function updatePremiumDeliveryBlock() {
127
+ const $timeHead = $('.delivery-block .checkout-order .order-block__time-head');
128
+ if (!$timeHead.length) return;
129
+
130
+ const $span = $timeHead.find('> span').first();
131
+ const $icon = $span.find('.iconHead').detach();
132
+
133
+ $span.empty().append($icon).append(` By 12 PM `);
134
+ $span.append($('<span class="boldDate">').text(`- ${formatPremiumDate()}`));
135
+ $timeHead.find('.order-block__time-head-info').text('Delivery date');
136
+ }
137
+
138
+ function updatePremiumInfo() {
139
+ const $title = $(DS_EL.title);
140
+ const $subtitle = $(DS_EL.subtitle);
141
+ const $infoIcon = $subtitle.find(DS_EL.infoIcon).detach();
142
+ const $image = $(DS_EL.image);
143
+ const $premiumImage = $(DS_EL.premiumImage);
144
+
145
+ $title.text('Premium delivery');
146
+ $subtitle.html('Delivered tomorrow morning for &pound;12.00');
147
+ $infoIcon.addClass(DS_CLASSES.hidden);
148
+ $subtitle.append($infoIcon);
149
+ $image.addClass(DS_CLASSES.hidden);
150
+ $premiumImage.removeClass(DS_CLASSES.hidden);
151
+ updatePremiumDeliveryBlock();
152
+ }
153
+
101
154
  function selectTimeSlot(e) {
102
155
  const $self = $(DS_EL.dateSelection);
103
156
  const $cell = $(e.target).closest(DS_EL.cell);
104
157
  const isRapid = $cell.hasClass(DS_CLASSES.rapidCell);
158
+ const isPremiumCell = $cell.hasClass(DS_CLASSES.premiumCell);
105
159
 
106
160
  $(DS_EL.cell).removeClass(DS_CLASSES.selectedCell);
107
161
  $cell.addClass(DS_CLASSES.selectedCell);
108
162
  $self.trigger('selected');
109
163
  isDateSelected = true;
110
164
 
111
- if (isRapid) {
165
+ if (isPremiumCell) {
166
+ $self.addClass(DS_CLASSES.isSelected);
167
+ updatePremiumInfo();
168
+ } else if (isRapid) {
112
169
  if (!rapidLoaderShown) {
113
170
  rapidLoaderShown = true;
114
171
  showRapidLoader();
@@ -9,6 +9,315 @@ Wick.FEMock = {
9
9
  );
10
10
  },
11
11
  dataBloomreach: {
12
+ whyNotAddRecommendationsSingle: {
13
+ recommendedProducts: [
14
+ {
15
+ baseProduct: {
16
+ code: '153731',
17
+ name: 'Wickes Trade Paint Roller Set - 9in',
18
+ url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
19
+ purchasable: true,
20
+ productType: 'ProductModel',
21
+ isBaseProduct: false,
22
+ availabilityRestriction: 'NO_RESTRICTIONS',
23
+ fulfilmentType: 'STANDARD',
24
+ stock: {
25
+ stockLevelStatus: {
26
+ code: 'inStock',
27
+ },
28
+ },
29
+ fulfillmentAttributes: {
30
+ type: 'STANDARD',
31
+ },
32
+ images: [
33
+ {
34
+ imageType: 'PRIMARY',
35
+ format: 'product',
36
+ url: 'https://placehold.co/68x68?text=roller',
37
+ altText: 'Wickes Trade Paint Roller Set - 9in',
38
+ },
39
+ ],
40
+ externalAverageRating: 5,
41
+ externalReviewCount: 100,
42
+ displayPrice: {
43
+ currencyIso: 'GBP',
44
+ value: 9999,
45
+ priceType: 'BUY',
46
+ formattedValue: '£9,999.00',
47
+ formattedPriceWithoutCurrencySymbol: '16',
48
+ currencySymbol: '£',
49
+ vatRatePercentage: 20,
50
+ valueInPence: 999900,
51
+ wasPrice: 30,
52
+ },
53
+ displayPriceExclusiveVat: {
54
+ currencyIso: 'GBP',
55
+ value: 9998,
56
+ priceType: 'BUY',
57
+ formattedValue: '£9,998.00',
58
+ formattedPriceWithoutCurrencySymbol: '13.33',
59
+ currencySymbol: '£',
60
+ valueInPence: 999800,
61
+ wasPrice: 25,
62
+ },
63
+ },
64
+ },
65
+ ],
66
+ },
67
+ whyNotAddRecommendations: {
68
+ recommendedProducts: [
69
+ {
70
+ baseProduct: {
71
+ code: '153731',
72
+ name: 'Wickes Trade Paint Roller Set - 9in',
73
+ url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
74
+ purchasable: true,
75
+ productType: 'ProductModel',
76
+ isBaseProduct: false,
77
+ availabilityRestriction: 'NO_RESTRICTIONS',
78
+ fulfilmentType: 'STANDARD',
79
+ stock: {
80
+ stockLevelStatus: {
81
+ code: 'inStock',
82
+ },
83
+ },
84
+ fulfillmentAttributes: {
85
+ type: 'STANDARD',
86
+ },
87
+ images: [
88
+ {
89
+ imageType: 'PRIMARY',
90
+ format: 'product',
91
+ url: 'https://placehold.co/68x68?text=roller',
92
+ altText: 'Wickes Trade Paint Roller Set - 9in',
93
+ },
94
+ ],
95
+ externalAverageRating: 5,
96
+ externalReviewCount: 100,
97
+
98
+ displayPrice: {
99
+ currencyIso: 'GBP',
100
+ value: 9999,
101
+ priceType: 'BUY',
102
+ formattedValue: '£9,999.00',
103
+ formattedPriceWithoutCurrencySymbol: '16',
104
+ currencySymbol: '£',
105
+ vatRatePercentage: 20,
106
+ valueInPence: 999900,
107
+ wasPrice: 3000,
108
+ },
109
+ displayPriceExclusiveVat: {
110
+ currencyIso: 'GBP',
111
+ value: 9998,
112
+ priceType: 'BUY',
113
+ formattedValue: '£9,998.00',
114
+ formattedPriceWithoutCurrencySymbol: '13.33',
115
+ currencySymbol: '£',
116
+ valueInPence: 999800,
117
+ wasPrice: 2500,
118
+ },
119
+ },
120
+ },
121
+ {
122
+ baseProduct: {
123
+ code: '349137',
124
+ name: 'Wickes Microfibre Paint Roller Sleeve - 9in',
125
+ url: '/Wickes-Microfibre-Paint-Roller-Sleeve---9in/p/349137',
126
+ purchasable: true,
127
+ productType: 'ProductModel',
128
+ isBaseProduct: false,
129
+ availabilityRestriction: 'NO_RESTRICTIONS',
130
+ fulfilmentType: 'STANDARD',
131
+ stock: {
132
+ stockLevelStatus: {
133
+ code: 'inStock',
134
+ },
135
+ },
136
+ fulfillmentAttributes: {
137
+ type: 'STANDARD',
138
+ },
139
+ images: [
140
+ {
141
+ imageType: 'PRIMARY',
142
+ format: 'product',
143
+ url: 'https://placehold.co/68x68?text=sleeve',
144
+ altText: 'Wickes Microfibre Paint Roller Sleeve - 9in',
145
+ },
146
+ ],
147
+ externalAverageRating: 4.2,
148
+ externalReviewCount: 48,
149
+ displayPrice: {
150
+ currencyIso: 'GBP',
151
+ value: 9999,
152
+ priceType: 'BUY',
153
+ formattedValue: '£7.5220',
154
+ formattedPriceWithoutCurrencySymbol: '7.50',
155
+ currencySymbol: '£',
156
+ vatRatePercentage: 20,
157
+ valueInPence: 999900,
158
+ },
159
+ displayPriceExclusiveVat: {
160
+ currencyIso: 'GBP',
161
+ value: 9998,
162
+ priceType: 'BUY',
163
+ formattedValue: '£6.25',
164
+ formattedPriceWithoutCurrencySymbol: '6.25',
165
+ currencySymbol: '£',
166
+ valueInPence: 999800,
167
+ },
168
+ },
169
+ },
170
+ {
171
+ baseProduct: {
172
+ code: '221048',
173
+ name: 'Wickes Paint Tray - 9in',
174
+ url: '/Wickes-Paint-Tray---9in/p/221048',
175
+ purchasable: true,
176
+ productType: 'ProductModel',
177
+ isBaseProduct: false,
178
+ availabilityRestriction: 'NO_RESTRICTIONS',
179
+ fulfilmentType: 'STANDARD',
180
+ stock: {
181
+ stockLevelStatus: {
182
+ code: 'inStock',
183
+ },
184
+ },
185
+ fulfillmentAttributes: {
186
+ type: 'STANDARD',
187
+ },
188
+ images: [
189
+ {
190
+ imageType: 'PRIMARY',
191
+ format: 'product',
192
+ url: 'https://placehold.co/68x68?text=tray',
193
+ altText: 'Wickes Paint Tray - 9in',
194
+ },
195
+ ],
196
+ externalAverageRating: 3.8,
197
+ externalReviewCount: 19,
198
+ displayPrice: {
199
+ currencyIso: 'GBP',
200
+ value: 4,
201
+ priceType: 'BUY',
202
+ formattedValue: '£4',
203
+ formattedPriceWithoutCurrencySymbol: '4',
204
+ currencySymbol: '£',
205
+ vatRatePercentage: 20,
206
+ valueInPence: 400,
207
+ },
208
+ displayPriceExclusiveVat: {
209
+ currencyIso: 'GBP',
210
+ value: 3.33,
211
+ priceType: 'BUY',
212
+ formattedValue: '£3.33',
213
+ formattedPriceWithoutCurrencySymbol: '3.33',
214
+ currencySymbol: '£',
215
+ valueInPence: 333,
216
+ },
217
+ },
218
+ },
219
+ {
220
+ baseProduct: {
221
+ code: '654221',
222
+ name: 'Wickes Professional Masking Tape - 48mm x 50m',
223
+ url: '/Wickes-Professional-Masking-Tape---48mm-x-50m/p/654221',
224
+ purchasable: true,
225
+ productType: 'ProductModel',
226
+ isBaseProduct: false,
227
+ availabilityRestriction: 'NO_RESTRICTIONS',
228
+ fulfilmentType: 'STANDARD',
229
+ stock: {
230
+ stockLevelStatus: {
231
+ code: 'inStock',
232
+ },
233
+ },
234
+ fulfillmentAttributes: {
235
+ type: 'STANDARD',
236
+ },
237
+ images: [
238
+ {
239
+ imageType: 'PRIMARY',
240
+ format: 'product',
241
+ url: 'https://placehold.co/68x68?text=tape',
242
+ altText: 'Wickes Professional Masking Tape - 48mm x 50m',
243
+ },
244
+ ],
245
+ externalAverageRating: 4.6,
246
+ externalReviewCount: 72,
247
+ displayPrice: {
248
+ currencyIso: 'GBP',
249
+ value: 5.5,
250
+ priceType: 'BUY',
251
+ formattedValue: '£5.50',
252
+ formattedPriceWithoutCurrencySymbol: '5.50',
253
+ currencySymbol: '£',
254
+ vatRatePercentage: 20,
255
+ valueInPence: 550,
256
+ },
257
+ displayPriceExclusiveVat: {
258
+ currencyIso: 'GBP',
259
+ value: 4.58,
260
+ priceType: 'BUY',
261
+ formattedValue: '£4.58',
262
+ formattedPriceWithoutCurrencySymbol: '4.58',
263
+ currencySymbol: '£',
264
+ valueInPence: 458,
265
+ },
266
+ },
267
+ },
268
+ {
269
+ baseProduct: {
270
+ code: '782913',
271
+ name: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m Extra Long Product Name For Two Line Truncation Test',
272
+ url: '/Wickes-Dust-Sheet-Cotton-Twill---3-6m-x-2-7m/p/782913',
273
+ purchasable: true,
274
+ productType: 'ProductModel',
275
+ isBaseProduct: false,
276
+ availabilityRestriction: 'NO_RESTRICTIONS',
277
+ fulfilmentType: 'STANDARD',
278
+ stock: {
279
+ stockLevelStatus: {
280
+ code: 'inStock',
281
+ },
282
+ },
283
+ fulfillmentAttributes: {
284
+ type: 'STANDARD',
285
+ },
286
+ images: [
287
+ {
288
+ imageType: 'PRIMARY',
289
+ format: 'product',
290
+ url: 'https://placehold.co/68x68?text=sheet',
291
+ altText: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m',
292
+ },
293
+ ],
294
+ externalAverageRating: 4.1,
295
+ externalReviewCount: 34,
296
+ displayPrice: {
297
+ currencyIso: 'GBP',
298
+ value: 12,
299
+ priceType: 'BUY',
300
+ formattedValue: '£12',
301
+ formattedPriceWithoutCurrencySymbol: '12',
302
+ currencySymbol: '£',
303
+ vatRatePercentage: 20,
304
+ valueInPence: 1200,
305
+ wasPrice: 18,
306
+ },
307
+ displayPriceExclusiveVat: {
308
+ currencyIso: 'GBP',
309
+ value: 10,
310
+ priceType: 'BUY',
311
+ formattedValue: '£10',
312
+ formattedPriceWithoutCurrencySymbol: '10',
313
+ currencySymbol: '£',
314
+ valueInPence: 1000,
315
+ wasPrice: 15,
316
+ },
317
+ },
318
+ },
319
+ ],
320
+ },
12
321
  completeYourProject3Recomendations: [
13
322
  {
14
323
  baseProduct: {
@@ -0,0 +1,11 @@
1
+ var Wick = window.Wick || {};
2
+
3
+ $(document).ready(function () {
4
+ window.setTimeout(function () {
5
+ const $container = $('[data-why-not-add-widget]');
6
+ const mockDataKey = $container.data('mock-key');
7
+ const payloadData = Wick.FEMock.dataBloomreach[mockDataKey];
8
+
9
+ Wick.BloomreachWidget.init('whyNotAdd', payloadData);
10
+ }, 3000);
11
+ });
@@ -0,0 +1,28 @@
1
+ var Wick = window.Wick || {};
2
+
3
+ function simulateHybrisSendingHtml() {
4
+ const htmlFromHybris = Wick.FEMock.cartPDP;
5
+
6
+ window.dispatchEvent(
7
+ new CustomEvent('productAddedToCart', {
8
+ detail: {
9
+ html: htmlFromHybris,
10
+ },
11
+ })
12
+ );
13
+ }
14
+
15
+ function bindWhyNotAddToCartEvent() {
16
+ $(window)
17
+ .off('addToCart.whyNotAddEmulation')
18
+ .on('addToCart.whyNotAddEmulation', function ({ detail: { resolve } }) {
19
+ setTimeout(function () {
20
+ resolve();
21
+ simulateHybrisSendingHtml();
22
+ }, 3000);
23
+ });
24
+ }
25
+
26
+ $(document).ready(function () {
27
+ bindWhyNotAddToCartEvent();
28
+ });