wickes-css2 2.98.0-develop.1 → 2.98.0-develop.10

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 (142) hide show
  1. package/Readme.md +4 -3
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/components/checkout-payment-details-v2.css +1 -1
  4. package/build/css/components/global-search.css +1 -1
  5. package/build/css/components/loader.css +1 -1
  6. package/build/css/components/price-block-v2-critical.css +1 -1
  7. package/build/css/components/price-block-v2.css +1 -1
  8. package/build/css/homepage-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/my-account-v2.css +1 -1
  15. package/build/css/pages/page_home.css +1 -1
  16. package/build/css/pages/page_my-order.css +1 -1
  17. package/build/css/pages/page_my-orders.css +1 -1
  18. package/build/css/pages/page_wismo-details.css +1 -1
  19. package/build/css/pdp-main-before-combine.css +1 -1
  20. package/build/css/pdp-main-critical.css +1 -1
  21. package/build/css/pdp-main-non-critical.css +1 -1
  22. package/build/css/pdp-main.css +1 -1
  23. package/build/css/plp-main.css +1 -1
  24. package/build/css/store-locator-main.css +1 -1
  25. package/build/img/billie-logo.svg +4 -0
  26. package/build/img/billie-modal.svg +4 -0
  27. package/build/img/billie-pdp.svg +11 -0
  28. package/build/img/billie-spinner.svg +5 -0
  29. package/build/img/billie.svg +4 -0
  30. package/build/img/calm-primary-logo.png +0 -0
  31. package/build/img/payment/checkout/billie.svg +4 -0
  32. package/build/img/payment/footer/billie.svg +4 -0
  33. package/build/js/basket.min.js +2 -2
  34. package/build/js/bundle.min.js +1 -1
  35. package/build/js/checkout.min.js +1 -1
  36. package/build/js/emulation.min.js +23 -11
  37. package/build/js/general.bundle.min.js +1 -1
  38. package/build/js/merged-checkout.min.js +1 -1
  39. package/build/js/page/basket-v2.js +16 -7
  40. package/build/js/page/billie-business-type.js +34 -0
  41. package/build/js/page/checkout-payment-details.js +8 -0
  42. package/build/js/page/components/charity.js +58 -43
  43. package/build/js/page/components/modal-observer.js +51 -0
  44. package/build/js/page/smart-banner.js +4 -1
  45. package/build/js/pdp.bundle.min.js +1 -1
  46. package/build/js/plp.bundle.min.js +1 -1
  47. package/build/js/project-list.min.js +1 -1
  48. package/build/js/smart-banner.min.js +1 -1
  49. package/package.json +1 -9
  50. package/src/components/address-billie.hbs +42 -0
  51. package/src/components/address-postcode-look-up.hbs +2 -2
  52. package/src/components/basket-charity-donations-new.hbs +40 -0
  53. package/src/components/billie-modal.hbs +41 -0
  54. package/src/components/billie-online-messaging.hbs +14 -0
  55. package/src/components/checkout-edit-billing-address.hbs +20 -6
  56. package/src/components/checkout-payment-details-v2.hbs +94 -55
  57. package/src/components/checkout-payment-info-block.hbs +49 -0
  58. package/src/components/checkout-payment-option.hbs +40 -0
  59. package/src/components/checkout_payment-new.hbs +10 -1
  60. package/src/components/donation-cart-new.hbs +38 -0
  61. package/src/components/modal.hbs +4 -1
  62. package/src/components/my-account/active-orders/list-orders.hbs +1 -1
  63. package/src/components/my-account/active-orders/order.hbs +2 -0
  64. package/src/components/my-account/active-orders/payment-status.hbs +17 -0
  65. package/src/components/my-account/payment-status.hbs +19 -0
  66. package/src/components/my-account/saving-totaliser.hbs +52 -0
  67. package/src/components/order-summary.hbs +3 -0
  68. package/src/components/payment-loader.hbs +59 -21
  69. package/src/components/payments-checkout-v2.hbs +12 -6
  70. package/src/components/payments-checkout.hbs +6 -0
  71. package/src/components/payments.hbs +10 -4
  72. package/src/components/price-block-v2.hbs +13 -8
  73. package/src/components/smart-banner.hbs +1 -1
  74. package/src/components/wismo-payment.hbs +16 -0
  75. package/src/data/data_shopping-cart-v2.json +51 -0
  76. package/src/data/data_wismo.json +53 -0
  77. package/src/data/my-account/data_my-account.json +57 -0
  78. package/src/elements/radiobutton.hbs +7 -0
  79. package/src/img/billie-logo.svg +4 -0
  80. package/src/img/billie-modal.svg +4 -0
  81. package/src/img/billie-pdp.svg +11 -0
  82. package/src/img/billie-spinner.svg +5 -0
  83. package/src/img/billie.svg +4 -0
  84. package/src/img/calm-primary-logo.png +0 -0
  85. package/src/img/payment/checkout/billie.svg +4 -0
  86. package/src/img/payment/footer/billie.svg +4 -0
  87. package/src/js/components/general/notification.js +1 -1
  88. package/src/js/emulation/paymentLoader.js +22 -11
  89. package/src/js/page/basket-v2.js +16 -7
  90. package/src/js/page/billie-business-type.js +34 -0
  91. package/src/js/page/checkout-payment-details.js +8 -0
  92. package/src/js/page/components/charity.js +58 -43
  93. package/src/js/page/components/modal-observer.js +51 -0
  94. package/src/js/page/smart-banner.js +4 -1
  95. package/src/layouts/base.hbs +0 -3
  96. package/src/layouts/bicester-kitchen.hbs +0 -3
  97. package/src/layouts/my-account.hbs +0 -3
  98. package/src/page_basket-billie.html +54 -0
  99. package/src/page_checkout_confirmation-billie.html +339 -0
  100. package/src/page_checkout_delivery-address-customer-journey.html +2 -2
  101. package/src/page_my-account-trade-pro-components.html +27 -0
  102. package/src/page_my-account-trade-pro.html +7 -0
  103. package/src/page_my-account.html +1 -0
  104. package/src/page_my-order.html +1 -1
  105. package/src/page_payment-details-with-billie.html +67 -0
  106. package/src/page_product-details-billie.html +87 -0
  107. package/src/page_shopping-cart-v2.html +4 -3
  108. package/src/page_wismo-details.html +2 -2
  109. package/src/partials/head.hbs +1 -5
  110. package/src/scss/common/_app.scss +0 -1
  111. package/src/scss/common/_elements.scss +4 -0
  112. package/src/scss/components/_billie-modal.scss +181 -0
  113. package/src/scss/components/_billie-online-messaging.scss +46 -0
  114. package/src/scss/components/_charity-donations.scss +114 -186
  115. package/src/scss/components/_donation-cart-new.scss +192 -0
  116. package/src/scss/components/_payments-checkout.scss +2 -1
  117. package/src/scss/components/_payments-v2.scss +8 -0
  118. package/src/scss/components/_smart-banner.scss +4 -2
  119. package/src/scss/components/_tooltip.scss +19 -0
  120. package/src/scss/components/checkout-payment-details-v2.scss +237 -0
  121. package/src/scss/components/loader.scss +8 -0
  122. package/src/scss/components/my-account/_active-orders.scss +2 -0
  123. package/src/scss/components/my-account/_payment-status.scss +84 -0
  124. package/src/scss/components/my-account/_saving-totaliser.scss +175 -0
  125. package/src/scss/components/price-block-v2-critical.scss +4 -0
  126. package/src/scss/components/price-block-v2.scss +4 -0
  127. package/src/scss/globals/_global-components.scss +0 -1
  128. package/src/scss/main.scss +0 -1
  129. package/src/scss/pages/_checkout-confirmation-new.scss +10 -3
  130. package/src/scss/pages/checkout-new.scss +3 -0
  131. package/src/scss/pages/my-account-v2.scss +3 -0
  132. package/src/scss/pages/page_wismo-details.scss +1 -0
  133. package/src/scss/pdp-main-critical.scss +1 -1
  134. package/src/scss/pdp-main.scss +2 -0
  135. package/src/sitemap.html +32 -16
  136. package/src/components/google-banner.hbs +0 -29
  137. package/src/page_app_google_banner.html +0 -176
  138. package/src/page_my-account_tradePro-with-google-banner.html +0 -147
  139. package/src/page_product-details_google-banner.html +0 -124
  140. package/src/page_shopping-cart-charity.html +0 -56
  141. package/src/scss/components/_google_banner-critical.scss +0 -66
  142. package/src/scss/components/_google_banner.scss +0 -80
@@ -0,0 +1,5 @@
1
+ <svg width="111" height="38" viewBox="0 0 111 38" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Group">
3
+ <path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M24.1126 11.634C24.1126 13.086 23.953 14.675 23.6486 16.1599L23.6533 16.1552C26.5152 18.4111 28.2071 21.8351 28.2071 25.4578C28.2071 32.0125 22.7928 37.3473 16.1458 37.3473H0V11.8895C0 8.62159 1.38251 5.46225 3.79482 3.22538C6.04258 1.1445 8.97215 0 12.0419 0C12.3027 0 12.5688 0.00946354 12.8297 0.0236584C19.0465 0.411457 24.1126 5.61839 24.1126 11.634ZM11.1958 31.7857H16.1364C19.6701 31.7857 22.5464 28.9481 22.5464 25.4626C22.5464 23.7222 21.8357 22.1521 20.6852 21.0076C18.5051 25.1032 15.3966 28.6358 11.1958 31.7857ZM18.1907 14.6088C18.3456 13.7292 18.4663 12.6841 18.4663 11.6292C18.4663 8.5033 15.7787 5.784 12.477 5.58054C10.6835 5.46698 8.97687 6.07235 7.67178 7.28309C6.36642 8.49383 5.64631 10.1301 5.64631 11.8942V14.6088H18.1907ZM16.1364 19.1347H5.64631H5.6366V30.0879C10.6979 26.9049 14.1736 23.396 16.4891 19.1442C16.3731 19.1347 16.2524 19.1347 16.1364 19.1347ZM47.3827 0.657363V31.6106C47.3827 35.6968 49.6837 38 53.5751 38C55.1608 38 56.6496 37.6217 57.7035 37.1533L56.3596 32.9255C55.9777 33.0627 55.4943 33.157 54.9673 33.157C53.9087 33.157 53.5268 32.5943 53.5268 31.4216V0L47.3827 0.657363ZM62.2048 0.657363V31.6106C62.2048 35.6968 64.5059 38 68.3973 38C69.9829 38 71.4717 37.6217 72.5256 37.1533L71.1817 32.9255C70.7999 33.0627 70.3165 33.157 69.7895 33.157C68.7308 33.157 68.349 32.5943 68.349 31.4216V0L62.2048 0.657363ZM110.86 26.7493H95.1006C95.5743 31.7623 97.9478 33.3892 101.274 33.3892C103.502 33.3892 105.354 32.6939 107.539 31.209L110.053 34.5999C107.582 36.5532 104.546 37.8962 100.747 37.8962C92.9591 37.8962 88.7825 32.8358 88.7825 25.0751C88.7825 17.3144 92.819 11.9323 99.9397 11.9323C107.06 11.9323 111 16.5766 111 24.3325C111 24.973 110.94 25.7345 110.891 26.3477C110.88 26.4907 110.869 26.6257 110.86 26.7493ZM104.866 22.5827C104.866 18.5391 103.396 16.1273 99.9735 16.1273C97.1261 16.1273 95.3229 17.9858 94.9893 22.8618H104.866V22.5827ZM40.8387 3.71171C40.8387 5.70746 39.2677 7.28699 36.9908 7.28699V7.28226C34.7572 7.28226 33.191 5.75004 33.191 3.70698C33.191 1.66392 34.709 0.0843347 36.9908 0.0843347C39.2725 0.0843347 40.8387 1.71594 40.8387 3.71171ZM34.0069 12.052V37.0086H40.151V11.3993L34.0069 12.052ZM83.6587 3.71171C83.6587 5.70746 82.0878 7.28699 79.8109 7.28699V7.28226C77.5775 7.28226 76.011 5.75004 76.011 3.70698C76.011 1.66392 77.534 0.0843347 79.8109 0.0843347C82.0878 0.0843347 83.6587 1.71594 83.6587 3.71171ZM76.6687 12.052V37.0086H82.8129V11.3993L76.6687 12.052Z" fill="white"/>
4
+ </g>
5
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="48" height="30" viewBox="0 0 48 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="48" height="30" rx="3" fill="#1C1C1E"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.5745 12.7945C14.5745 13.2293 14.5266 13.705 14.4352 14.1496L14.4366 14.1482C15.296 14.8236 15.8041 15.8488 15.8041 16.9334C15.8041 18.8959 14.1782 20.4932 12.1821 20.4932H7.3335V12.871C7.3335 11.8926 7.74866 10.9467 8.47308 10.277C9.14808 9.65395 10.0278 9.31128 10.9497 9.31128C11.028 9.31128 11.1079 9.31411 11.1862 9.31836C13.0532 9.43447 14.5745 10.9934 14.5745 12.7945ZM10.6956 18.828H12.1792C13.2404 18.828 14.1042 17.9784 14.1042 16.9349C14.1042 16.4138 13.8907 15.9437 13.5452 15.601C12.8906 16.8273 11.9571 17.8849 10.6956 18.828ZM12.7962 13.6852C12.8427 13.4219 12.8789 13.1089 12.8789 12.7931C12.8789 11.8572 12.0718 11.043 11.0803 10.9821C10.5417 10.9481 10.0292 11.1294 9.63733 11.4919C9.24533 11.8544 9.02908 12.3443 9.02908 12.8724V13.6852H12.7962ZM12.1792 15.0403H9.02908H9.02616V18.3197C10.5461 17.3667 11.5898 16.3161 12.2852 15.0431C12.2503 15.0403 12.2141 15.0403 12.1792 15.0403ZM21.5625 9.5081V18.7756C21.5625 19.999 22.2535 20.6886 23.4221 20.6886C23.8982 20.6886 24.3453 20.5754 24.6618 20.4351L24.2582 19.1693C24.1436 19.2104 23.9984 19.2386 23.8402 19.2386C23.5222 19.2386 23.4076 19.0701 23.4076 18.719V9.31128L21.5625 9.5081ZM26.0136 9.5081V18.7756C26.0136 19.999 26.7046 20.6886 27.8732 20.6886C28.3493 20.6886 28.7964 20.5754 29.1129 20.4351L28.7093 19.1693C28.5947 19.2104 28.4495 19.2386 28.2912 19.2386C27.9733 19.2386 27.8587 19.0701 27.8587 18.719V9.31128L26.0136 9.5081ZM40.6247 17.3201H35.8922C36.0344 18.821 36.7472 19.3081 37.746 19.3081C38.4152 19.3081 38.9712 19.0999 39.6273 18.6554L40.3822 19.6706C39.6404 20.2554 38.7287 20.6575 37.5877 20.6575C35.2491 20.6575 33.9948 19.1424 33.9948 16.8189C33.9948 14.4953 35.207 12.8839 37.3453 12.8839C39.4837 12.8839 40.6667 14.2744 40.6667 16.5965C40.6667 16.7883 40.6486 17.0163 40.634 17.1999C40.6306 17.2427 40.6274 17.2831 40.6247 17.3201ZM38.8246 16.0726C38.8246 14.8619 38.3832 14.1399 37.3555 14.1399C36.5004 14.1399 35.9589 14.6963 35.8587 16.1562H38.8246V16.0726ZM19.5973 10.4226C19.5973 11.0201 19.1256 11.493 18.4418 11.493V11.4916C17.7711 11.4916 17.3007 11.0329 17.3007 10.4212C17.3007 9.80946 17.7566 9.33653 18.4418 9.33653C19.127 9.33653 19.5973 9.82504 19.5973 10.4226ZM17.5457 12.9197V20.3918H19.3908V12.7243L17.5457 12.9197ZM32.4562 10.4226C32.4562 11.0201 31.9844 11.493 31.3007 11.493V11.4916C30.63 11.4916 30.1596 11.0329 30.1596 10.4212C30.1596 9.80946 30.6169 9.33653 31.3007 9.33653C31.9844 9.33653 32.4562 9.82504 32.4562 10.4226ZM30.3571 12.9197V20.3918H32.2022V12.7243L30.3571 12.9197Z" fill="white"/>
4
+ </svg>
Binary file
@@ -0,0 +1,4 @@
1
+ <svg width="48" height="30" viewBox="0 0 48 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="48" height="30" rx="3" fill="#1C1C1E"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.5745 12.7948C14.5745 13.2295 14.5266 13.7053 14.4352 14.1499L14.4366 14.1484C15.296 14.8239 15.8041 15.849 15.8041 16.9337C15.8041 18.8962 14.1782 20.4934 12.1821 20.4934H7.3335V12.8713C7.3335 11.8929 7.74866 10.9469 8.47308 10.2772C9.14808 9.65419 10.0278 9.31152 10.9497 9.31152C11.028 9.31152 11.1079 9.31436 11.1862 9.31861C13.0532 9.43472 14.5745 10.9937 14.5745 12.7948ZM10.6956 18.8283H12.1792C13.2404 18.8283 14.1042 17.9787 14.1042 16.9351C14.1042 16.414 13.8907 15.9439 13.5452 15.6013C12.8906 16.8275 11.9571 17.8852 10.6956 18.8283ZM12.7962 13.6854C12.8427 13.4221 12.8789 13.1092 12.8789 12.7934C12.8789 11.8574 12.0718 11.0433 11.0803 10.9824C10.5417 10.9484 10.0292 11.1296 9.63733 11.4921C9.24533 11.8546 9.02908 12.3445 9.02908 12.8727V13.6854H12.7962ZM12.1792 15.0405H9.02908H9.02616V18.3199C10.5461 17.3669 11.5898 16.3164 12.2852 15.0434C12.2503 15.0405 12.2141 15.0405 12.1792 15.0405ZM21.5625 9.50834V18.7759C21.5625 19.9993 22.2535 20.6889 23.4221 20.6889C23.8982 20.6889 24.3453 20.5756 24.6618 20.4354L24.2582 19.1695C24.1436 19.2106 23.9984 19.2389 23.8402 19.2389C23.5222 19.2389 23.4076 19.0704 23.4076 18.7193V9.31152L21.5625 9.50834ZM26.0136 9.50834V18.7759C26.0136 19.9993 26.7046 20.6889 27.8732 20.6889C28.3493 20.6889 28.7964 20.5756 29.1129 20.4354L28.7093 19.1695C28.5947 19.2106 28.4495 19.2389 28.2912 19.2389C27.9733 19.2389 27.8587 19.0704 27.8587 18.7193V9.31152L26.0136 9.50834ZM40.6247 17.3204H35.8922C36.0344 18.8213 36.7472 19.3084 37.746 19.3084C38.4152 19.3084 38.9712 19.1002 39.6273 18.6556L40.3822 19.6709C39.6404 20.2557 38.7287 20.6578 37.5877 20.6578C35.2491 20.6578 33.9948 19.1427 33.9948 16.8191C33.9948 14.4955 35.207 12.8841 37.3453 12.8841C39.4837 12.8841 40.6667 14.2746 40.6667 16.5968C40.6667 16.7885 40.6486 17.0165 40.634 17.2001C40.6306 17.2429 40.6274 17.2834 40.6247 17.3204ZM38.8246 16.0729C38.8246 14.8622 38.3832 14.1401 37.3555 14.1401C36.5004 14.1401 35.9589 14.6965 35.8587 16.1564H38.8246V16.0729ZM19.5973 10.4228C19.5973 11.0204 19.1256 11.4933 18.4418 11.4933V11.4919C17.7711 11.4919 17.3007 11.0331 17.3007 10.4214C17.3007 9.80971 17.7566 9.33677 18.4418 9.33677C19.127 9.33677 19.5973 9.82528 19.5973 10.4228ZM17.5457 12.9199V20.392H19.3908V12.7245L17.5457 12.9199ZM32.4562 10.4228C32.4562 11.0204 31.9844 11.4933 31.3007 11.4933V11.4919C30.63 11.4919 30.1596 11.0331 30.1596 10.4214C30.1596 9.80971 30.6169 9.33677 31.3007 9.33677C31.9844 9.33677 32.4562 9.82528 32.4562 10.4228ZM30.3571 12.9199V20.392H32.2022V12.7245L30.3571 12.9199Z" fill="white"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="48" height="30" viewBox="0 0 48 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="48" height="30" rx="3" fill="#1C1C1E"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.5745 12.7945C14.5745 13.2293 14.5266 13.705 14.4352 14.1496L14.4366 14.1482C15.296 14.8236 15.8041 15.8488 15.8041 16.9334C15.8041 18.8959 14.1782 20.4932 12.1821 20.4932H7.3335V12.871C7.3335 11.8926 7.74866 10.9467 8.47308 10.277C9.14808 9.65395 10.0278 9.31128 10.9497 9.31128C11.028 9.31128 11.1079 9.31411 11.1862 9.31836C13.0532 9.43447 14.5745 10.9934 14.5745 12.7945ZM10.6956 18.828H12.1792C13.2404 18.828 14.1042 17.9784 14.1042 16.9349C14.1042 16.4138 13.8907 15.9437 13.5452 15.601C12.8906 16.8273 11.9571 17.8849 10.6956 18.828ZM12.7962 13.6852C12.8427 13.4219 12.8789 13.1089 12.8789 12.7931C12.8789 11.8572 12.0718 11.043 11.0803 10.9821C10.5417 10.9481 10.0292 11.1294 9.63733 11.4919C9.24533 11.8544 9.02908 12.3443 9.02908 12.8724V13.6852H12.7962ZM12.1792 15.0403H9.02908H9.02616V18.3197C10.5461 17.3667 11.5898 16.3161 12.2852 15.0431C12.2503 15.0403 12.2141 15.0403 12.1792 15.0403ZM21.5625 9.5081V18.7756C21.5625 19.999 22.2535 20.6886 23.4221 20.6886C23.8982 20.6886 24.3453 20.5754 24.6618 20.4351L24.2582 19.1693C24.1436 19.2104 23.9984 19.2386 23.8402 19.2386C23.5222 19.2386 23.4076 19.0701 23.4076 18.719V9.31128L21.5625 9.5081ZM26.0136 9.5081V18.7756C26.0136 19.999 26.7046 20.6886 27.8732 20.6886C28.3493 20.6886 28.7964 20.5754 29.1129 20.4351L28.7093 19.1693C28.5947 19.2104 28.4495 19.2386 28.2912 19.2386C27.9733 19.2386 27.8587 19.0701 27.8587 18.719V9.31128L26.0136 9.5081ZM40.6247 17.3201H35.8922C36.0344 18.821 36.7472 19.3081 37.746 19.3081C38.4152 19.3081 38.9712 19.0999 39.6273 18.6554L40.3822 19.6706C39.6404 20.2554 38.7287 20.6575 37.5877 20.6575C35.2491 20.6575 33.9948 19.1424 33.9948 16.8189C33.9948 14.4953 35.207 12.8839 37.3453 12.8839C39.4837 12.8839 40.6667 14.2744 40.6667 16.5965C40.6667 16.7883 40.6486 17.0163 40.634 17.1999C40.6306 17.2427 40.6274 17.2831 40.6247 17.3201ZM38.8246 16.0726C38.8246 14.8619 38.3832 14.1399 37.3555 14.1399C36.5004 14.1399 35.9589 14.6963 35.8587 16.1562H38.8246V16.0726ZM19.5973 10.4226C19.5973 11.0201 19.1256 11.493 18.4418 11.493V11.4916C17.7711 11.4916 17.3007 11.0329 17.3007 10.4212C17.3007 9.80946 17.7566 9.33653 18.4418 9.33653C19.127 9.33653 19.5973 9.82504 19.5973 10.4226ZM17.5457 12.9197V20.3918H19.3908V12.7243L17.5457 12.9197ZM32.4562 10.4226C32.4562 11.0201 31.9844 11.493 31.3007 11.493V11.4916C30.63 11.4916 30.1596 11.0329 30.1596 10.4212C30.1596 9.80946 30.6169 9.33653 31.3007 9.33653C31.9844 9.33653 32.4562 9.82504 32.4562 10.4226ZM30.3571 12.9197V20.3918H32.2022V12.7243L30.3571 12.9197Z" fill="white"/>
4
+ </svg>
@@ -20,7 +20,7 @@ Wick.Notification = (function(){
20
20
  }
21
21
 
22
22
  $(document).on('click', '.notification__close', function(){
23
- $(this).parents('.notification, .notification_app, .sticky-wrapper, .google_banner').remove();
23
+ $(this).parents('.notification, .notification_app, .sticky-wrapper').remove();
24
24
  });
25
25
 
26
26
  return {
@@ -1,14 +1,25 @@
1
- const paymentLoader = '.payment-loader';
2
- const paymentLoaderHideClass = 'payment-loader--hidden';
3
- const applePayButton = '.apple__button';
4
- const googlePayButton = '.google__button';
5
- const clearPayRadioButton = '#checkout-payment-details-clearpay';
1
+ const paymentLoader= '.payment-loader';
2
+ const paymentLoaderHideClass= 'payment-loader--hidden';
3
+ const paymentLoaderModal = '.payment-loader__modal'
4
+ const paymentTypeSelectors = {
5
+ apple: '.apple__button',
6
+ google: '.google__button',
7
+ clearpay: '#checkout-payment-details-clearpay',
8
+ billie: '#checkout-payment-details-billie, .billie__button',
9
+ paypal: '#checkout-payment-details-paypal'
10
+ };
6
11
 
7
- const showPaymentLoader = () => {
12
+ function showPaymentLoader(paymentType) {
13
+ $(paymentLoader).find(`${paymentLoaderModal} > div`).hide();
14
+ $(`.${paymentType}-checkout-logo`).show();
15
+ $(`${paymentLoader} .spinner`).show();
8
16
  $(paymentLoader).removeClass(paymentLoaderHideClass);
9
- setTimeout(() => $(paymentLoader).addClass(paymentLoaderHideClass), 1000);
10
- };
11
17
 
12
- $(document).on('click', applePayButton, showPaymentLoader);
13
- $(document).on('click', googlePayButton, showPaymentLoader);
14
- $(document).on('click', clearPayRadioButton, showPaymentLoader);
18
+ setTimeout(() => {
19
+ $(paymentLoader).addClass(paymentLoaderHideClass);
20
+ }, 1000);
21
+ }
22
+
23
+ Object.entries(paymentTypeSelectors).forEach(([type, triggerSelector]) => {
24
+ $(document).on('click', triggerSelector, () => showPaymentLoader(type));
25
+ });
@@ -16,8 +16,8 @@ import {checkPayPalAvailability} from './basket/paypal';
16
16
  import {
17
17
  updateCharity,
18
18
  changeCharityPrice,
19
- toggleCharityElements,
20
- setDefaultCharityValue
19
+ setDefaultCharityValue,
20
+ initCharityInteractions,
21
21
  } from './components/charity';
22
22
  import {callAction} from './utils/http-action';
23
23
  import {ROUTES} from './utils/routes';
@@ -29,8 +29,8 @@ import {
29
29
  } from './basket/session-sync'
30
30
  import {displayEnergyEfficiency} from "./basket/display-energy-efficiency";
31
31
  import {appendLoader, hideLoader, showLoader} from "./utils/loader";
32
- import {addClassToSummaryAside} from "./basket/summary-mobile";
33
32
  import { initStickyObserver } from './components/sticky-order-observer';
33
+ import {addClassToSummaryAside} from "./basket/summary-mobile";
34
34
 
35
35
  var Wick = window.Wick || {};
36
36
  Wick.BasketPage = {
@@ -80,7 +80,7 @@ Wick.BasketPage = {
80
80
  orderItemInfoOffers: 'order-item__info-offers',
81
81
  charityInput: '#donation',
82
82
  charityItem: '.charity-new',
83
- donationCartBtn: '.donation-cart__btn',
83
+ donationCartBtn: '.donation-cart__btn, .donation-cart-new__btn',
84
84
  checkoutWidgetDetails: '.checkout-widget__details',
85
85
  checkoutWidgetDetailsFlex: 'checkout-widget__details-flex',
86
86
  subtotal: '.checkout-widget__item-bold',
@@ -311,7 +311,6 @@ Wick.BasketPage = {
311
311
  } else {
312
312
  if (charity) {
313
313
  Wick.BasketPage.updateCart();
314
- quantityToUpdate === 0 && toggleCharityElements();
315
314
  } else {
316
315
  if (maxValue > 1 || minValue > 1) {
317
316
  if (quantityToUpdate > maxValue || quantityToUpdate < minValue) {
@@ -1282,8 +1281,16 @@ $(document).ready(function () {
1282
1281
  $(Wick.BasketPage.el.content).on('focusout', Wick.BasketPage.el.quantityValue, Wick.BasketPage.changeOnBlur);
1283
1282
  $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.deliveryButtonInCC, Wick.BasketPage.changeMethodToDelivery);
1284
1283
  $(Wick.BasketPage.el.content).on('click', Wick.BasketPage.el.updateStoreButton, Wick.BasketPage.changeMethodToCC);
1285
- $(Wick.BasketPage.el.charityInput).on('click', updateCharity);
1286
- $(Wick.BasketPage.el.donationCartBtn).on('click', changeCharityPrice);
1284
+ $(Wick.BasketPage.el.donationCartBtn).on('click', function(e) {
1285
+ e.preventDefault();
1286
+ const context = $(this).closest(Wick.BasketPage.el.charityItem);
1287
+ if (!context.hasClass('charity-added')) {
1288
+ updateCharity(this);
1289
+ context.addClass('charity-added');
1290
+ } else {
1291
+ changeCharityPrice.call(this);
1292
+ }
1293
+ });
1287
1294
  $(Wick.BasketPage.el.charityItem).on('click', Wick.BasketPage.el.removeButton, updateCharity);
1288
1295
  $(Wick.BasketPage.el.orderSummary).on('click', Wick.BasketPage.el.voucherRemove, voucherRemove);
1289
1296
  $(Wick.BasketPage.el.promoWrapper).on('click', Wick.BasketPage.el.promoClose, Wick.BasketPage.removePromotion);
@@ -1305,7 +1312,9 @@ $(document).ready(function () {
1305
1312
  '.summary__aside.collapse.show'
1306
1313
  );
1307
1314
  Wick.BasketPage.updateCart(...Array(3), true);
1315
+
1308
1316
  setDefaultCharityValue();
1317
+ initCharityInteractions();
1309
1318
  if (!$(Wick.BasketPage.el.loader).length) {
1310
1319
  appendLoader(Wick.BasketPage.loaderPayload);
1311
1320
  }
@@ -0,0 +1,34 @@
1
+ var Wick = window.Wick || {};
2
+
3
+ Wick.BusinessType = {
4
+ el: {
5
+ radios: 'input[name="businessType"]',
6
+ panels: '.radio-expanded-content'
7
+ },
8
+
9
+ refreshPanels() {
10
+ const $radios = $(this.el.radios);
11
+ const $panels = $(this.el.panels);
12
+ const selectedValue = $radios.filter(':checked').val();
13
+
14
+ $panels.hide();
15
+ $(`#${selectedValue}-fields`).show();
16
+ },
17
+
18
+ bindEvents() {
19
+ $(this.el.radios).on('change', this.refreshPanels.bind(this));
20
+ },
21
+
22
+ init() {
23
+ if (!$(this.el.radios).length) {
24
+ return;
25
+ }
26
+
27
+ this.refreshPanels();
28
+ this.bindEvents();
29
+ }
30
+ };
31
+
32
+ $(document).ready(function () {
33
+ Wick.BusinessType.init();
34
+ });
@@ -62,6 +62,14 @@ Wick.CheckoutPaymentDetails = (function() {
62
62
  case 'klarna':
63
63
  hideBillingAddres();
64
64
  break;
65
+ case 'billie':
66
+ detailsLabel = {
67
+ ...detailsLabel,
68
+ labelText: 'Name on Billie account',
69
+ buttonText: 'Pay with Billie'
70
+ }
71
+ changeLabelText(detailsLabel);
72
+ break;
65
73
  case 'clearpay':
66
74
  detailsLabel = {
67
75
  ...detailsLabel,
@@ -8,34 +8,47 @@ const charityEl = {
8
8
  charityInput: '#donation',
9
9
  charityTitleWrap: '.title-wrap',
10
10
  donationCart: '.donation-cart',
11
- donationCartBtn: '.donation-cart__btn',
12
- donationCartHolder: '.donation-cart__holder',
13
11
  donationCartHide: 'donation-cart__hide',
14
- donationCartValue: '.donation-cart__value',
12
+ donationCartBtn: '.donation-cart__btn, .donation-cart-new__btn',
13
+ donationCartBtnSelected: '.donation-cart-new__btn.btn-selected',
14
+ donationCartHolder: '.donation-cart__holder, .donation-cart-new__holder',
15
+ donationCartValue: '.donation-cart__value, .donation-cart-new__value',
15
16
  charityAdded: 'charity-added',
17
+ donationCartCostBlock: '.donation-cart-new__cost',
18
+ donationCartCostBlockHide: 'donation-cart-new__cost-hide',
19
+ donationCartRemove: '.donation-cart-new__cost .order-item__remove',
16
20
  }
17
21
 
18
- export function updateCharity() {
19
- //checkbox action
22
+ export function updateCharity(button) {
20
23
  if ($('#donation').attr('disabled') === 'disabled') {
21
- $('#donation').removeAttr('disabled')
24
+ $('#donation').removeAttr('disabled');
22
25
  } else {
23
26
  $('#donation').prop('disabled', (_, value) => !value);
24
27
  }
25
28
 
26
- const context = getCurrentCharityItem(this);
29
+ const context = getCurrentCharityItem(button);
27
30
  const productCode = getCurrentProductCode(context);
31
+ const quantity = getSelectedCharityAmount(button);
28
32
 
29
33
  showLoader('.basket-loader');
30
34
 
31
35
  if (context.hasClass(charityEl.charityAdded)) {
32
- $(this).removeAttr('checked');
36
+ $(button).removeAttr('checked');
33
37
  } else {
34
- $(this).attr('checked', 'checked');
35
- charityActionForAdd(productCode);
38
+ $(button).attr('checked', 'checked');
39
+ repaintCharityButton(button);
40
+ context
41
+ .find(charityEl.donationCartValue)
42
+ .text(quantity);
43
+ showDonationCostBlock(context);
44
+ charityActionForAdd(productCode, quantity);
36
45
  }
37
46
  }
38
47
 
48
+ function getSelectedCharityAmount(context) {
49
+ return $(context).data('value');
50
+ }
51
+
39
52
  function getCurrentCharityItem(context) {
40
53
  return $(context).closest(charityEl.charityItem);
41
54
  }
@@ -44,13 +57,13 @@ function getCurrentProductCode(context) {
44
57
  return context.find('input[name="productCode"]').val();
45
58
  }
46
59
 
47
- export function charityActionForAdd(value) {
60
+ export function charityActionForAdd(value, quantity) {
48
61
  if (!Wick.checkLocalEnv) {
49
62
  const payload = {
50
63
  url: ROUTES.CHARITY_ADD,
51
64
  queries: {
52
65
  productCodePost: value,
53
- qty: getDefaultCharityAmount(),
66
+ qty: quantity,
54
67
  },
55
68
  type: 'POST',
56
69
  };
@@ -61,19 +74,10 @@ export function charityActionForAdd(value) {
61
74
 
62
75
  callAction(payload, executeCharityAction, productInfo);
63
76
  } else {
64
- toggleCharityElements();
65
77
  Wick.BasketPage.updateCart(...Array(2), true);
66
78
  }
67
79
  }
68
80
 
69
- export function toggleCharityElements() {
70
- if ($(charityEl.charityItem).hasClass(charityEl.charityAdded)) {
71
- $(charityEl.charityInput).prop('checked', false);
72
- }
73
- $(charityEl.charityItem).toggleClass(charityEl.charityAdded);
74
- $(charityEl.charityItem).hasClass(charityEl.charityMultiple) && toggleMultipleCharityChoose($(charityEl.charityItem));
75
- }
76
-
77
81
  function executeCharityAction(response, productInfo) {
78
82
  if (response.addedProducts && response.addedProducts[0]) {
79
83
  productInfo.quantity = response.addedProducts[0].qty;
@@ -81,7 +85,6 @@ function executeCharityAction(response, productInfo) {
81
85
  }
82
86
 
83
87
  Wick.BasketPage.updateCart(...Array(2), true);
84
- toggleCharityElements();
85
88
  }
86
89
 
87
90
  export function changeCharityPrice() {
@@ -95,6 +98,7 @@ export function changeCharityPrice() {
95
98
 
96
99
  repaintCharityButton(this);
97
100
  $(charityEl.donationCartValue).text(charityValue);
101
+ showDonationCostBlock(context);
98
102
  charityActionForChangePrice(this);
99
103
  }
100
104
 
@@ -119,35 +123,46 @@ function repaintCharityButton(context) {
119
123
  $(context).removeClass(btnSecondary).addClass(btnSelected);
120
124
  }
121
125
 
122
- function resetCharityButton(context) {
123
- const donationButtons = $(context).find(charityEl.donationCartBtn);
124
- const btnSelected = 'btn-selected';
125
- const btnSecondary = 'btn-secondary';
126
- const defaultAmount = getDefaultCharityAmount();
127
-
128
- donationButtons.each((i, btn) => {
129
- $(btn).attr('data-value') === defaultAmount
130
- ? $(btn).removeClass(btnSecondary).addClass(btnSelected)
131
- : $(btn).removeClass(btnSelected).addClass(btnSecondary);
132
- })
133
- }
134
-
135
126
  function getDefaultCharityAmount() {
136
127
  const donationButtons = $(charityEl.charityItem).find(charityEl.donationCartBtn);
137
128
  return donationButtons.first().attr('data-value');
138
129
  }
139
130
 
131
+ export function setDefaultCharityValue() {
132
+ $(charityEl.donationCartBtnSelected).each(function() {
133
+ const $btn = $(this);
134
+ const $item = $btn.closest(charityEl.charityItem);
135
+ const value = $btn.data('value');
136
+
137
+ $item.find(charityEl.donationCartValue).text(value);
138
+ $item.find(charityEl.donationCartCostBlock)
139
+ .removeClass(charityEl.donationCartCostBlockHide);
140
+ });
141
+ }
142
+
143
+ function showDonationCostBlock($charity) {
144
+ $charity.find(charityEl.donationCartCostBlock)
145
+ .removeClass(charityEl.donationCartCostBlockHide);
146
+ }
147
+
140
148
  function resetCharityValue() {
141
149
  const defaultValue = getDefaultCharityAmount();
142
150
  $(charityEl.donationCartValue).text(defaultValue);
143
151
  }
144
152
 
145
- export function toggleMultipleCharityChoose(context) {
146
- context.find(charityEl.donationCart).toggleClass(charityEl.donationCartHide);
147
- resetCharityButton(context);
148
- resetCharityValue();
149
- }
150
-
151
- export function setDefaultCharityValue() {
152
- $(charityEl.charityItem).hasClass(charityEl.charityMultiple) && resetCharityValue();
153
+ export function initCharityInteractions() {
154
+ $(document).on('click', charityEl.donationCartRemove, function(e) {
155
+ e.preventDefault();
156
+
157
+ const $item = $(this).closest(charityEl.charityItem);
158
+ $item.removeClass(charityEl.charityAdded);
159
+ $item
160
+ .find(charityEl.donationCartCostBlock)
161
+ .addClass(charityEl.donationCartCostBlockHide);
162
+ $item
163
+ .find(charityEl.donationCartBtn)
164
+ .removeClass('btn-selected')
165
+ .addClass('btn-secondary');
166
+ resetCharityValue();
167
+ });
153
168
  }
@@ -0,0 +1,51 @@
1
+ var Wick = Wick || {};
2
+
3
+ Wick.ModalObserver = (function () {
4
+ const modal = $('.modal-scroll-observer');
5
+ modalContent = modal.find('.modal-content'),
6
+ modalBody = modal.find('.modal-body');
7
+
8
+ $(document).ready(function () {
9
+ if (!modal.length) {
10
+ return;
11
+ }
12
+
13
+ function updateScrollFades() {
14
+ const tolerance = 5;
15
+ const scrollTop = modalBody.scrollTop();
16
+ const scrollHeight = modalBody.prop('scrollHeight');
17
+ const visibleHeight = modalBody.outerHeight();
18
+
19
+ const isAtTop = scrollTop <= tolerance;
20
+ const isAtBottom = scrollTop + visibleHeight >= scrollHeight - tolerance;
21
+
22
+ let state;
23
+
24
+ if (isAtTop && isAtBottom) {
25
+ state = 'full';
26
+ } else if (isAtTop) {
27
+ state = 'top';
28
+ } else if (isAtBottom) {
29
+ state = 'bottom';
30
+ } else {
31
+ state = 'middle';
32
+ }
33
+
34
+ modalContent.attr('data-scroll-state', state);
35
+ }
36
+
37
+ modalBody.on('scroll', updateScrollFades);
38
+
39
+ modal.on('shown.bs.modal', function() {
40
+ updateScrollFades();
41
+ });
42
+
43
+ $(window).on('resize', function() {
44
+ if (modal.is(':visible')) {
45
+ updateScrollFades();
46
+ }
47
+ });
48
+
49
+ });
50
+
51
+ })();
@@ -21,10 +21,13 @@ Wick.SmartBanner = {
21
21
  $(Wick.SmartBanner.CLOSE_BUTTON_SELECTOR).on('click', Wick.SmartBanner.closeBanner);
22
22
  $(Wick.SmartBanner.OPEN_BUTTON_SELECTOR).on('click', Wick.SmartBanner.handleOpenClick);
23
23
  $(Wick.SmartBanner.INSTALL_BUTTON_SELECTOR).on('click', Wick.SmartBanner.handleInstallClick);
24
+ if ('scrollRestoration' in history) {
25
+ history.scrollRestoration = 'manual';
26
+ }
24
27
  },
25
28
 
26
29
  hideBanner: function () {
27
- $(Wick.SmartBanner.BANNER_SELECTOR).removeClass('show');
30
+ $(Wick.SmartBanner.BANNER_SELECTOR).addClass('hide');
28
31
  },
29
32
 
30
33
  closeBanner: function (e) {
@@ -9,9 +9,6 @@
9
9
  <!-- Google Tag Manager (noscript) -->
10
10
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M3LZ2SC" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
11
11
  <!-- End Google Tag Manager (noscript) -->
12
- {{#if googleBanner}}
13
- {{> google-banner}}
14
- {{/if}}
15
12
  {{#if smartBannerDIY}}
16
13
  {{> smart-banner
17
14
  logoUrl="https://eu-images.contentstack.com/v3/assets/blt176fda34ff2a0cbd/blt7d7f7424d4d70982/684c28b1ec8c98397d81a2cc/Wickes_logo.svg?branch=development"
@@ -13,9 +13,6 @@
13
13
  {{#unless hideBanner}}
14
14
  {{> offer-banner}}
15
15
  {{/unless}}
16
- {{#if googleBanner}}
17
- {{> google-banner}}
18
- {{/if}}
19
16
  {{#block "header"}}
20
17
  {{> header bicester="true" }}
21
18
  {{/block}}
@@ -20,9 +20,6 @@
20
20
  <!-- Google Tag Manager (noscript) -->
21
21
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M3LZ2SC" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
22
22
  <!-- End Google Tag Manager (noscript) -->
23
- {{#if googleBanner}}
24
- {{> google-banner}}
25
- {{/if}}
26
23
 
27
24
  {{#block "header"}}
28
25
  {{> header }}
@@ -0,0 +1,54 @@
1
+ {{#extend "basket-new" page_shopping-cart pageClass="page_basket basket" title="Basket-Billie" clearPayIcon=true pageBasket=true billieIcon=true}}
2
+ {{#content "head" mode="append"}}
3
+ <link type="text/css" rel="stylesheet" href="./css/pages/page_shopping-cart-v2.css">
4
+ <link type="text/css" rel="stylesheet" href="./css/pages/checkout-new.css">
5
+ {{/content}}
6
+ {{#content "heading"}}
7
+ <div class="notification-area pr-0 pl-0">
8
+ {{> notifications notification-page.warning-tiles-changed withCloseBtn="true"}}
9
+ </div>
10
+ <div class="checkout-header__promo">
11
+ {{#each shopping-cart-v2.potentialOrderPromotions}}
12
+ {{> potential-promotion}}
13
+ {{/each}}
14
+ </div>
15
+ {{> checkout-header shopping-cart-v2.header}}
16
+ {{/content}}
17
+ {{#content "aside"}}
18
+ {{> order-summary
19
+ shopping-cart-v2.checkout
20
+ id=1
21
+ title="Order Summary"
22
+ basket=true
23
+ clearPayIcon=clearPayIcon
24
+ billie-placement=true
25
+ clearpay-placement=true
26
+ klarna-placement=false
27
+ billieIcon=true
28
+ paymentsCheckoutV2=true
29
+ }}
30
+ {{> checkout-action mod="mounted"}}
31
+ {{> summary-payment paymentsCheckoutV2="true" billieIcon=true}}
32
+ {{> checkout-action mod="large"}}
33
+ {{/content}}
34
+ {{#content "main"}}
35
+ <input type="hidden" id="SUPPLIER_DELIVERED_7_DAYS" value="<b> Wickes Supplier </b> - Delivery within 7 days">
36
+ <input type="hidden" id="STANDARD" value="<b> STANDARD </b> - Delivery within 1 day">
37
+ <input type="hidden" id="canDisplayPayPalOnBasketPage" value="true">
38
+ {{#each shopping-cart-v2.sections }}
39
+ <section class="basket__section" data-type="{{type}}">
40
+ {{> checkout-section-title title=type items-count=items-count}}
41
+ {{#each items}}
42
+ {{> order-item}}
43
+ {{/each}}
44
+ </section>
45
+ {{/each}}
46
+ {{> charity-donations-multiple shopping-cart-v2.charityDonationMultiple}}
47
+ {{> checkout-action}}
48
+ {{/content}}
49
+ {{#content "foot" mode="append"}}
50
+ <script defer src="./js/basket.min.js"></script>
51
+ <script defer src="./js/page/components/modal-observer.js"></script>
52
+ {{> billie-modal }}
53
+ {{/content}}
54
+ {{/extend}}