wickes-css2 2.107.0-ripple.2 → 2.107.0-ripple.21
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.
- package/build/css/category-main.css +1 -1
- package/build/css/components/card-product-banner.css +1 -1
- package/build/css/components/checkout-chip.css +1 -1
- package/build/css/components/checkout-payment-details-v2.css +1 -1
- package/build/css/components/price-block-v2-critical.css +1 -1
- package/build/css/components/price-block-v2.css +1 -1
- package/build/css/components/special-opening-schedule-v2.css +1 -1
- package/build/css/components/special-opening-schedule.css +1 -1
- package/build/css/emulation.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/kitchen-plp-main.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/my-account-main.css +1 -1
- package/build/css/pages/checkout-new.css +1 -1
- package/build/css/pages/my-account-v2.css +1 -1
- package/build/css/pages/page_checkout_delivery-new.css +1 -1
- package/build/css/pages/page_merged-basket.css +1 -1
- package/build/css/pages/page_personal-details.css +1 -1
- package/build/css/pages/page_product-details-v2-critical.css +1 -1
- package/build/css/pages/page_product-details-v2.css +1 -1
- package/build/css/pages/page_product-details.css +1 -1
- package/build/css/pages/page_products-list-combined.css +1 -1
- package/build/css/pages/page_products-list.css +1 -1
- package/build/css/pages/page_shopping-cart-v2.css +1 -1
- package/build/css/pages/page_store-locator-details.css +1 -1
- package/build/css/pages/page_store-locator.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-critical.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/js/account-hub.min.js +1 -1
- package/build/js/basket.min.js +2 -2
- package/build/js/bloomreach-widget.min.js +1 -0
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +2 -2
- package/build/js/components/general/accordion.js +69 -0
- package/build/js/components/general/back-to-top.js +45 -0
- package/build/js/components/general/backdrop.js +23 -0
- package/build/js/components/general/cart-slider.js +36 -0
- package/build/js/components/general/clamp-content.js +95 -0
- package/build/js/components/general/clamp.js +216 -0
- package/build/js/components/general/clear-input.js +33 -0
- package/build/js/components/general/cookie-chat-back.js +51 -0
- package/build/js/components/general/cookies-policy.js +9 -0
- package/build/js/components/general/create-popup-slider.js +194 -0
- package/build/js/components/general/device-type.js +6 -0
- package/build/js/components/general/footer.js +67 -0
- package/build/js/components/general/handleAccordion.js +35 -0
- package/build/js/components/general/image-accordion.js +54 -0
- package/build/js/components/general/is-trade-pro.js +38 -0
- package/build/js/components/general/main-nav.js +16 -0
- package/build/js/components/general/main-navigation.js +275 -0
- package/build/js/components/general/notification.js +70 -0
- package/build/js/components/general/offer-banner.js +74 -0
- package/build/js/components/general/scroll-disable.js +54 -0
- package/build/js/components/general/search.js +43 -0
- package/build/js/components/general/snack-bar.js +160 -0
- package/build/js/components/general/sticky_header.js +62 -0
- package/build/js/components/general/switchVat.js +161 -0
- package/build/js/components/general/text-clamp.js +102 -0
- package/build/js/components/general/tooltips.js +8 -0
- package/build/js/components/general/validation.js +48 -0
- package/build/js/emulation.min.js +3377 -164
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/gift-cards.min.js +1 -1
- package/build/js/kitchen/kitchen-plp.min.js +1 -1
- package/build/js/merged-checkout.min.js +2 -2
- package/build/js/mini-basket-slider.min.js +1 -1
- package/build/js/package-bulk-add.min.js +1 -0
- package/build/js/page/basket/mini-basket-total.js +17 -2
- package/build/js/page/bloomreach-widget.js +1148 -0
- package/build/js/page/checkout-payment-details.js +12 -1
- package/build/js/page/checkout.js +1 -1
- package/build/js/page/components/notify-me.js +99 -0
- package/build/js/page/components/order-summary.js +35 -0
- package/build/js/page/plp-load-more.js +81 -66
- package/build/js/page/ripple/bulk-add.js +63 -0
- package/build/js/page/ripple/package-bulk-add.js +43 -0
- package/build/js/page/ripple/postcode-checker.js +83 -0
- package/build/js/page/ripple/thumb-gallery.js +168 -0
- package/build/js/page/utils/create-count-stepper.js +30 -9
- package/build/js/page/utils/create-loading-button.js +37 -0
- package/build/js/page/utils/create-toast.js +79 -0
- package/build/js/page/utils/custom-dropdown.js +80 -0
- package/build/js/pdp-count-stepper.min.js +1 -1
- package/build/js/pdp.bundle.min.js +2 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/postcode-checker.min.js +1 -0
- package/build/js/project-list.min.js +1 -1
- package/build/js/saving-shopping-list.min.js +1 -1
- package/build/js/wickes-dc.js +1 -0
- package/package.json +1 -4
- package/src/badges-ripple.html +120 -0
- package/src/badges.html +9 -18
- package/src/components/base/button.hbs +23 -5
- package/src/components/bloomreach/complete-card-dropdown.hbs +47 -0
- package/src/components/bloomreach/complete-card-skeleton.hbs +19 -0
- package/src/components/bloomreach/complete-card.hbs +138 -0
- package/src/components/bloomreach/complete-divider.hbs +3 -0
- package/src/components/bloomreach/complete-summary-skeleton.hbs +12 -0
- package/src/components/bloomreach/complete-summary.hbs +43 -0
- package/src/components/bloomreach/complete-wrapper.hbs +1 -0
- package/src/components/bloomreach/complete-your-project.hbs +21 -0
- package/src/components/card-store-locator.hbs +70 -33
- package/src/components/card_bloomreach_media_banner.hbs +10 -0
- package/src/components/card_product_banner_v2.hbs +4 -1
- package/src/components/card_sponsor_banner.hbs +4 -1
- package/src/components/cart-voucher.hbs +10 -1
- package/src/components/checkout_order-summary-new.hbs +11 -2
- package/src/components/click-and-collect-modal.hbs +0 -14
- package/src/components/date-selection.hbs +1 -1
- package/src/components/delivery-types.hbs +11 -3
- package/src/components/fulfilment-accordions.hbs +1 -1
- package/src/components/gift-cards.hbs +1 -1
- package/src/components/injected-content.hbs +6 -1
- package/src/components/kitchen/price.hbs +49 -29
- package/src/components/kitchen/strip-stickers.hbs +9 -3
- package/src/components/modal.hbs +1 -1
- package/src/components/modals/notify-me-modal.hbs +76 -0
- package/src/components/order-item.hbs +18 -5
- package/src/components/order-summary.hbs +2 -2
- package/src/components/package-card.hbs +30 -0
- package/src/components/pdp-price-actions.hbs +17 -0
- package/src/components/postcode-checker.hbs +24 -0
- package/src/components/potential-promotion.hbs +12 -3
- package/src/components/price-badges.hbs +14 -0
- package/src/components/price-block-v2.hbs +91 -31
- package/src/components/product-main-info-v2.hbs +2 -0
- package/src/components/sponsor-top-banner.hbs +10 -0
- package/src/components/suite-includes.hbs +43 -12
- package/src/components/suite-product-card.hbs +37 -15
- package/src/components/thumb-gallery.hbs +23 -0
- package/src/data/data_badges.json +143 -0
- package/src/data/data_bathroom-plp.json +814 -0
- package/src/data/data_delivery-address-v2.json +1 -1
- package/src/data/data_locators.json +441 -135
- package/src/data/data_search-results_v2.json +20 -2
- package/src/data/data_shopping-cart-v2.json +23 -5
- package/src/data/data_spr_injected_content.json +4 -0
- package/src/data/data_suite-includes-products.json +73 -2
- package/src/elements/checkbox.hbs +8 -1
- package/src/js/components/banner-placement-manager.js +25 -9
- package/src/js/components/general/accordion.js +25 -2
- package/src/js/components/general/cart-slider.js +19 -6
- package/src/js/components/package-card.js +69 -0
- package/src/js/components/store-locator-cards.js +76 -0
- package/src/js/emulation/banner-placement-manager.js +285 -53
- package/src/js/emulation/bloomreach-widget-calculations.js +132 -0
- package/src/js/emulation/bloomreach-widget-loading.js +11 -0
- package/src/js/emulation/checkout-delivery-details.js +28 -25
- package/src/js/emulation/custom-slider-emulation.js +1 -1
- package/src/js/emulation/date-selection.js +136 -24
- package/src/js/emulation/forms.js +12 -0
- package/src/js/emulation/gift-cards.js +1 -1
- package/src/js/emulation/mini-basket-data.js +3 -3
- package/src/js/emulation/mock.js +3112 -4
- package/src/js/emulation/notify-me.js +9 -0
- package/src/js/emulation/plp-load-more.js +13 -4
- package/src/js/emulation/postcode-checker.js +11 -0
- package/src/js/emulation/store-locator-load-more.js +69 -0
- package/src/js/emulation/switchCalendar.js +12 -8
- package/src/js/page/basket/mini-basket-total.js +17 -2
- package/src/js/page/bloomreach-widget.js +1148 -0
- package/src/js/page/checkout-payment-details.js +12 -1
- package/src/js/page/checkout.js +1 -1
- package/src/js/page/components/notify-me.js +99 -0
- package/src/js/page/components/order-summary.js +35 -0
- package/src/js/page/plp-load-more.js +81 -66
- package/src/js/page/ripple/bulk-add.js +63 -0
- package/src/js/page/ripple/package-bulk-add.js +43 -0
- package/src/js/page/ripple/postcode-checker.js +83 -0
- package/src/js/page/ripple/thumb-gallery.js +168 -0
- package/src/js/page/utils/create-count-stepper.js +30 -9
- package/src/js/page/utils/create-loading-button.js +37 -0
- package/src/js/page/utils/create-toast.js +79 -0
- package/src/js/page/utils/custom-dropdown.js +80 -0
- package/src/page_bathroom-plp-vat.html +81 -0
- package/src/page_bathroom-plp-without-load-more.html +83 -0
- package/src/page_bathroom-plp.html +98 -0
- package/src/page_checkout_next-day-delivery-details.html +2 -2
- package/src/page_checkout_payment-details-v2-asm.html +1 -1
- package/src/page_checkout_payment-details-v2.html +1 -1
- package/src/page_checkout_payment-details_with-card-loader.html +1 -1
- package/src/page_checkout_payment-details_with-klarna-loader.html +1 -1
- package/src/page_checkout_payment-details_with-loader-v2.html +1 -1
- package/src/page_checkout_rapid-delivery-details.html +7 -5
- package/src/page_klarna_payment-details_with-klarna.html +1 -1
- package/src/page_my-account-installer-carousel.html +131 -0
- package/src/page_payment-details-with-billie.html +1 -1
- package/src/page_payment-details-with-clearpay.html +1 -1
- package/src/page_payment-details-with-gift-card.html +1 -1
- package/src/page_payment-details_with_apple-pay.html +1 -1
- package/src/page_payment-details_with_google-pay.html +1 -1
- package/src/page_plp_bloomreach.html +81 -0
- package/src/page_plp_v2.html +6 -0
- package/src/page_product-details-banner.html +1 -4
- package/src/page_product-details-big-wins-disabled-delivery.html +1 -4
- package/src/page_product-details-big-wins-non-registered.html +1 -4
- package/src/page_product-details-big-wins-out-nearest.html +1 -4
- package/src/page_product-details-big-wins-unhappy.html +1 -4
- package/src/page_product-details-big-wins.html +1 -4
- package/src/page_product-details-billie.html +1 -4
- package/src/page_product-details-bloomreach.html +130 -0
- package/src/page_product-details-calculator.html +1 -4
- package/src/page_product-details-cashback-v2.html +1 -4
- package/src/page_product-details-clearpay.html +1 -4
- package/src/page_product-details-cnc-error-notification.html +1 -4
- package/src/page_product-details-cnc-success-notification-vat.html +1 -5
- package/src/page_product-details-cnc-success-notification.html +1 -4
- package/src/page_product-details-default-store.html +1 -4
- package/src/page_product-details-energy-efficiency.html +1 -4
- package/src/page_product-details-flooring-with-pr-placeholder.html +1 -4
- package/src/page_product-details-flooring.html +1 -4
- package/src/page_product-details-gallery-actual.html +1 -4
- package/src/page_product-details-mfe-calculator.html +10 -7
- package/src/page_product-details-minimum-v2.html +0 -1
- package/src/page_product-details-mtm-doors.html +1 -4
- package/src/page_product-details-only-clearpay.html +1 -4
- package/src/page_product-details-paint-mixing.html +1 -4
- package/src/page_product-details-ripple-gallery.html +119 -0
- package/src/page_product-details-saved-pl.html +1 -4
- package/src/page_product-details-suite-includes-banners.html +139 -0
- package/src/page_product-details-suite-includes-vat.html +126 -0
- package/src/page_product-details-suite-includes.html +32 -20
- package/src/page_product-details-tile-steps-klarna-widget-with-method-ids.html +1 -4
- package/src/page_product-details-tile-steps-logout.html +1 -4
- package/src/page_product-details-tile-steps-no-new-project-list.html +1 -4
- package/src/page_product-details-tile-steps-with-klarna.html +1 -4
- package/src/page_product-details-tile-steps.html +1 -4
- package/src/page_product-details-v2.html +1 -4
- package/src/page_product-details-vat.html +1 -4
- package/src/page_product-details-wisdom-mcfc-registered.html +1 -4
- package/src/page_product-details-wisdom-mcfc.html +1 -4
- package/src/page_product-details-wisdom-oos-registered.html +1 -4
- package/src/page_product-details-wisdom-oos.html +1 -4
- package/src/page_product-details-wisdom-registered.html +1 -4
- package/src/page_product-details-wisdom.html +1 -4
- package/src/page_product-details-with-favourite.html +1 -4
- package/src/page_product-details-with-global-search-v2.html +8 -4
- package/src/page_product-details_no-previous-default.html +1 -4
- package/src/page_shopping-cart-v2-vat.html +2 -1
- package/src/page_store-locator-list.html +17 -28
- package/src/page_track-my-order-result.html +1 -0
- package/src/partials/scripts.hbs +1 -0
- package/src/scss/common/_CTAs.scss +7 -3
- package/src/scss/common/_common.scss +1 -0
- package/src/scss/common/_elements.scss +13 -1
- package/src/scss/common/_loading-button.scss +49 -0
- package/src/scss/components/_card-store-locator.scss +139 -32
- package/src/scss/components/_custom-slider.scss +18 -0
- package/src/scss/components/_date-selection-add-new-styles.scss +43 -1
- package/src/scss/components/_image-accordion.scss +5 -2
- package/src/scss/components/_kitchen-card.scss +5 -4
- package/src/scss/components/_notifications.scss +86 -5
- package/src/scss/components/_notify-me-modal.scss +139 -0
- package/src/scss/components/_order-summary.scss +25 -12
- package/src/scss/components/_package-card.scss +63 -0
- package/src/scss/components/_package-plp.scss +88 -0
- package/src/scss/components/_pdp-action-v2-critical.scss +12 -0
- package/src/scss/components/_pdp-action-v2.scss +12 -0
- package/src/scss/components/_postcode-checker.scss +115 -0
- package/src/scss/components/_price-badges-critical.scss +10 -1
- package/src/scss/components/_price-badges.scss +10 -2
- package/src/scss/components/_price-block-critical.scss +11 -3
- package/src/scss/components/_price-block.scss +15 -4
- package/src/scss/components/_suite-includes.scss +29 -26
- package/src/scss/components/_suite-product-card.scss +33 -23
- package/src/scss/components/_thumb-gallery-critical.scss +34 -0
- package/src/scss/components/_thumb-gallery.scss +192 -0
- package/src/scss/components/bloomreach/_bloomreach.scss +3 -0
- package/src/scss/components/bloomreach/_complete-card-dropdown.scss +174 -0
- package/src/scss/components/bloomreach/_complete-card.scss +402 -0
- package/src/scss/components/bloomreach/_complete-your-project.scss +207 -0
- package/src/scss/components/card-product-banner.scss +35 -27
- package/src/scss/components/checkout-chip.scss +1 -0
- package/src/scss/components/checkout-payment-details-v2.scss +12 -0
- package/src/scss/components/kitchen/_price.scss +10 -0
- package/src/scss/components/kitchen/_strip-stickers.scss +46 -0
- package/src/scss/components/my-account/_clipboard-code.scss +4 -0
- package/src/scss/components/price-block-v2-critical.scss +54 -1
- package/src/scss/components/price-block-v2.scss +54 -3
- package/src/scss/components/special-opening-schedule-v2.scss +2 -6
- package/src/scss/components/special-opening-schedule.scss +17 -4
- package/src/scss/emulation.scss +0 -6
- package/src/scss/helpers/_CTAs.scss +15 -5
- package/src/scss/helpers/_variables.scss +1 -0
- package/src/scss/pages/page_checkout_delivery-new.scss +36 -0
- package/src/scss/pages/page_product-details-v2-critical.scss +217 -111
- package/src/scss/pages/page_product-details-v2.scss +200 -109
- package/src/scss/pages/page_product-details.scss +0 -2
- package/src/scss/pages/page_products-list-combined.scss +8 -1
- package/src/scss/pages/page_products-list.scss +8 -1
- package/src/scss/pages/page_shopping-cart-v2.scss +34 -10
- package/src/scss/pages/page_store-locator.scss +48 -26
- package/src/scss/pdp-main-critical.scss +1 -1
- package/src/scss/pdp-main.scss +5 -1
- package/src/scss/plp-main.scss +5 -0
- package/src/scss/store-locator-main.scss +15 -1
- package/src/sitemap.html +15 -0
- package/build/css/components/kitchen/strip-stickers.css +0 -1
- package/build/css/components/strip-stickers.css +0 -1
- package/src/js/emulation/store-locator-list.js +0 -19
- package/src/scss/components/kitchen/strip-stickers.scss +0 -18
- package/src/scss/components/strip-stickers.scss +0 -18
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
},
|
|
9
9
|
"potentialOrderPromotions": [
|
|
10
10
|
{
|
|
11
|
-
"description": "Spend over £200 on Bathroom Lighting and save £10.0"
|
|
11
|
+
"description": "Spend over £200 on Bathroom Lighting and save £10.0",
|
|
12
|
+
"descriptionExcVat": "Spend over £150 on Bathroom Lighting and save £10.0"
|
|
12
13
|
},
|
|
13
14
|
{
|
|
14
|
-
"description": "Spend over 2500 pound and get £2500 discount"
|
|
15
|
+
"description": "Spend over 2500 pound and get £2500 discount",
|
|
16
|
+
"descriptionExcVat": "Spend over 2000 pound and get £2000 discount"
|
|
15
17
|
}
|
|
16
18
|
],
|
|
17
19
|
"checkout": {
|
|
@@ -43,23 +45,28 @@
|
|
|
43
45
|
"discounts": [
|
|
44
46
|
{
|
|
45
47
|
"text": "Voucher abcd applies and giving 20% off",
|
|
48
|
+
"textExcVat": "Voucher abcd applies and giving 18% off",
|
|
46
49
|
"isDeletable": true
|
|
47
50
|
},
|
|
48
51
|
{
|
|
49
52
|
"text": "Voucher 20% off",
|
|
53
|
+
"textExcVat": "Voucher 18% off",
|
|
50
54
|
"isDeletable": true
|
|
51
55
|
},
|
|
52
56
|
{
|
|
53
|
-
"text": "Buy 4 for 3"
|
|
57
|
+
"text": "Buy 4 for 3",
|
|
58
|
+
"textExcVat": "Buy 5 for 3"
|
|
54
59
|
},
|
|
55
60
|
{
|
|
56
61
|
"text": "Online only offer"
|
|
57
62
|
},
|
|
58
63
|
{
|
|
59
|
-
"text": "2 for £35"
|
|
64
|
+
"text": "2 for £35",
|
|
65
|
+
"textExcVat": "2 for £30"
|
|
60
66
|
},
|
|
61
67
|
{
|
|
62
|
-
"text": "Offer price equivalent to £17.50 per item"
|
|
68
|
+
"text": "Offer price equivalent to £17.50 per item",
|
|
69
|
+
"textExcVat": "Offer price equivalent to £15.50 per item"
|
|
63
70
|
}
|
|
64
71
|
],
|
|
65
72
|
"total": {
|
|
@@ -86,6 +93,10 @@
|
|
|
86
93
|
"Buy 2 for 3 — Add 1 to qualify",
|
|
87
94
|
"Buy 2 for 3 — Add 1 to qualify"
|
|
88
95
|
],
|
|
96
|
+
"offersExcVat": [
|
|
97
|
+
"Buy 2 for 4 — Add 2 to qualify",
|
|
98
|
+
"Buy 2 for 4 — Add 2 to qualify"
|
|
99
|
+
],
|
|
89
100
|
"pricePerSQM": {
|
|
90
101
|
"value": "12"
|
|
91
102
|
},
|
|
@@ -1049,6 +1060,10 @@
|
|
|
1049
1060
|
"Buy 2 for 3 — Add 1 to qualify",
|
|
1050
1061
|
"Buy 2 for 3 — Add 1 to qualify"
|
|
1051
1062
|
],
|
|
1063
|
+
"offersExcVat": [
|
|
1064
|
+
"Buy 2 for 4 — Add 2 to qualify",
|
|
1065
|
+
"Buy 2 for 4 — Add 2 to qualify"
|
|
1066
|
+
],
|
|
1052
1067
|
"message": "Purchased 12 times since your last visit 1 day ago",
|
|
1053
1068
|
"infoTimeHead": "Available for Collection",
|
|
1054
1069
|
"address": "Watford",
|
|
@@ -1109,6 +1124,9 @@
|
|
|
1109
1124
|
"totalMobile": "16",
|
|
1110
1125
|
"offers": [
|
|
1111
1126
|
"Buy 2 Wickes Romano Bathroom Door Handle - Polished Chrome 1 Pair, Wickes Romano Locking Door Handle - Satin Nickel 1 Pair, Wickes Passage Door Knob Set - Brass 1 Pair for £8 - Add 1 to qualify"
|
|
1127
|
+
],
|
|
1128
|
+
"offersExcVat": [
|
|
1129
|
+
"Buy 2 Wickes Romano Bathroom Door Handle - Polished Chrome 1 Pair, Wickes Romano Locking Door Handle - Satin Nickel 1 Pair, Wickes Passage Door Knob Set - Brass 1 Pair for £7 - Add 1 to qualify"
|
|
1112
1130
|
]
|
|
1113
1131
|
},
|
|
1114
1132
|
{
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
"name": "Essentials TEST",
|
|
8
8
|
"keyword": "plaster",
|
|
9
9
|
"bannerType": "image_url",
|
|
10
|
+
"src": "https://placehold.co/1200x200?text=Injected+Banner+Desktop",
|
|
11
|
+
"mobile-src": "https://placehold.co/600x200?text=Injected+Banner+Mobile",
|
|
12
|
+
"href": "/sitemap.html",
|
|
13
|
+
"alt": "Wickes Essentials",
|
|
10
14
|
"htmlText": "<img src=\"https://media.wickes.co.uk/is/image/wickes/28120-Feb-Trade-Essentials-Homepage-Full-Width?&extend=0,0,0,0&fmt=png8\" usemap=\"#hotspot-map-186857\"><map name=\"hotspot-map-186857\"><area shape=\"rect\" coords=\"0,0,1400,400\" href=\"https://www.wickes.co.uk/trade/trade-offers\" alt=\"Wickes Essentials\"></map>",
|
|
11
15
|
"dateEnd": "Fri Jan 12 20:06:43 UTC 1001968",
|
|
12
16
|
"id": "186857"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"altText": "Washstand"
|
|
9
9
|
},
|
|
10
10
|
"price": 60,
|
|
11
|
+
"price-vat": 61,
|
|
11
12
|
"quantity": 1
|
|
12
13
|
},
|
|
13
14
|
{
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
"altText": "Toilet"
|
|
18
19
|
},
|
|
19
20
|
"price": 60,
|
|
21
|
+
"price-vat": 61,
|
|
20
22
|
"quantity": 1
|
|
21
23
|
},
|
|
22
24
|
{
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
"altText": "Shower"
|
|
27
29
|
},
|
|
28
30
|
"price": 60,
|
|
31
|
+
"price-vat": 61,
|
|
29
32
|
"quantity": 1
|
|
30
33
|
},
|
|
31
34
|
{
|
|
@@ -35,8 +38,72 @@
|
|
|
35
38
|
"altText": "Shower tray"
|
|
36
39
|
},
|
|
37
40
|
"price": 60,
|
|
41
|
+
"price-vat": 61,
|
|
42
|
+
"quantity": 1
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"title": "Wickes Plated Basin Waste Kit - Chrome",
|
|
46
|
+
"image": {
|
|
47
|
+
"url": "https://placehold.co/51x51?text=basin-waste",
|
|
48
|
+
"altText": "Basin waste"
|
|
49
|
+
},
|
|
50
|
+
"price": 60,
|
|
51
|
+
"price-vat": 61,
|
|
52
|
+
"quantity": 1
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"title": "Wickes Chrome Shower Tray Waste - 50mm",
|
|
56
|
+
"image": {
|
|
57
|
+
"url": "https://placehold.co/51x51?text=shower-waste",
|
|
58
|
+
"altText": "Shower waste"
|
|
59
|
+
},
|
|
60
|
+
"price": 60,
|
|
61
|
+
"price-vat": 61,
|
|
62
|
+
"quantity": 1
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"suite-products-promo": [
|
|
66
|
+
{
|
|
67
|
+
"title": "Wickes Portland 2 Tap Hole Ceramic Bathroom Basin with Full Pedestal - 550mm",
|
|
68
|
+
"image": {
|
|
69
|
+
"url": "https://placehold.co/51x51?text=washstand",
|
|
70
|
+
"altText": "Washstand"
|
|
71
|
+
},
|
|
72
|
+
"price": 60,
|
|
73
|
+
"price-vat": 61,
|
|
74
|
+
"quantity": 1
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"title": "Wickes Portland Close Coupled Toilet Pan, Cistern & Seat",
|
|
78
|
+
"image": {
|
|
79
|
+
"url": "https://placehold.co/51x51?text=toilet",
|
|
80
|
+
"altText": "Toilet"
|
|
81
|
+
},
|
|
82
|
+
"price": 60,
|
|
83
|
+
"price-vat": 61,
|
|
84
|
+
"quantity": 1
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"title": "Wickes Portland 2 Tap Hole Ceramic Bathroom Basin with Full Pedestal - 550mm",
|
|
88
|
+
"image": {
|
|
89
|
+
"url": "https://placehold.co/51x51?text=shower",
|
|
90
|
+
"altText": "Shower"
|
|
91
|
+
},
|
|
92
|
+
"price": 60,
|
|
93
|
+
"price-vat": 61,
|
|
94
|
+
"quantity": 1
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"title": "Wickes Chrome Quadrant Sliding Shower Enclosure - 800 x 800mm",
|
|
98
|
+
"image": {
|
|
99
|
+
"url": "https://placehold.co/51x51?text=shower-tray",
|
|
100
|
+
"altText": "Shower tray"
|
|
101
|
+
},
|
|
102
|
+
"price": 60,
|
|
103
|
+
"price-vat": 61,
|
|
38
104
|
"quantity": 1,
|
|
39
|
-
"
|
|
105
|
+
"was_price": "89.95",
|
|
106
|
+
"was_price-vat": "90.95"
|
|
40
107
|
},
|
|
41
108
|
{
|
|
42
109
|
"title": "Wickes Plated Basin Waste Kit - Chrome",
|
|
@@ -45,6 +112,7 @@
|
|
|
45
112
|
"altText": "Basin waste"
|
|
46
113
|
},
|
|
47
114
|
"price": 60,
|
|
115
|
+
"price-vat": 61,
|
|
48
116
|
"quantity": 1
|
|
49
117
|
},
|
|
50
118
|
{
|
|
@@ -54,10 +122,13 @@
|
|
|
54
122
|
"altText": "Shower waste"
|
|
55
123
|
},
|
|
56
124
|
"price": 60,
|
|
125
|
+
"price-vat": 61,
|
|
57
126
|
"quantity": 1
|
|
58
127
|
}
|
|
59
128
|
],
|
|
60
129
|
"was_price": 480,
|
|
61
|
-
"
|
|
130
|
+
"was_price-vat": 481,
|
|
131
|
+
"price": 316,
|
|
132
|
+
"price-vat": 317
|
|
62
133
|
}
|
|
63
134
|
}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
<label
|
|
1
|
+
<label
|
|
2
|
+
for="{{id}}"
|
|
3
|
+
class="chb
|
|
4
|
+
{{#if required}}form-row__label_required{{/if}}
|
|
5
|
+
{{#if inactive-message}}chb-inactive{{/if}}
|
|
6
|
+
{{#if action}}chb--action{{/if}}
|
|
7
|
+
"
|
|
8
|
+
>
|
|
2
9
|
<input
|
|
3
10
|
type="checkbox"
|
|
4
11
|
value="{{value}}"
|
|
@@ -59,6 +59,8 @@ Wick.BannerPlacementManager = {
|
|
|
59
59
|
Wick.BannerPlacementManager.hideBannerDueLimit(banner, index);
|
|
60
60
|
Wick.BannerPlacementManager.moveBannerToSpecifiedPosition(banner);
|
|
61
61
|
});
|
|
62
|
+
|
|
63
|
+
$(window).trigger('productBannerPositionChanged');
|
|
62
64
|
},
|
|
63
65
|
moveBannerToSpecifiedPosition(banner) {
|
|
64
66
|
const $listSlots = Wick.BannerPlacementManager.getListSlots();
|
|
@@ -268,7 +270,21 @@ Wick.BannerPlacementManager = {
|
|
|
268
270
|
window.dispatchEvent(sponsorAdsEvent);
|
|
269
271
|
});
|
|
270
272
|
},
|
|
271
|
-
init() {
|
|
273
|
+
init(options = {}) {
|
|
274
|
+
if (options) {
|
|
275
|
+
$.extend(Wick.BannerPlacementManager.el, options);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
Wick.BannerPlacementManager.el.$products = $(Wick.BannerPlacementManager.el.productCard);
|
|
279
|
+
|
|
280
|
+
const hasBanners = Wick.BannerPlacementManager.getBannersAmount();
|
|
281
|
+
const hasTopBanner = $(Wick.BannerPlacementManager.el.sponsorTopBanner).length;
|
|
282
|
+
const hasProducts = Wick.BannerPlacementManager.getProductsAmount();
|
|
283
|
+
|
|
284
|
+
if ((!hasBanners && !hasTopBanner) || !hasProducts) {
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
|
|
272
288
|
Wick.Responsive.onResize(function () {
|
|
273
289
|
if (
|
|
274
290
|
Wick.BannerPlacementManager.currentBreakpoint !==
|
|
@@ -285,21 +301,21 @@ Wick.BannerPlacementManager = {
|
|
|
285
301
|
Wick.BannerPlacementManager.dispatchSponsorAdsDisplayedEvent();
|
|
286
302
|
Wick.BannerPlacementManager.isEventSent = true;
|
|
287
303
|
}
|
|
288
|
-
|
|
289
|
-
$(window).trigger('productBannerPositionChanged');
|
|
290
304
|
}
|
|
291
305
|
});
|
|
292
306
|
},
|
|
293
307
|
};
|
|
294
308
|
|
|
295
309
|
$(document).ready(function () {
|
|
296
|
-
const
|
|
297
|
-
const
|
|
298
|
-
const hasProducts = Wick.BannerPlacementManager.getProductsAmount();
|
|
310
|
+
const isPackagePlp = $('.package-plp__cards').length > 0;
|
|
311
|
+
const options = {};
|
|
299
312
|
|
|
300
|
-
if (
|
|
301
|
-
|
|
313
|
+
if (isPackagePlp) {
|
|
314
|
+
options.productCard = '.package-card';
|
|
315
|
+
options.productsWrap = '.package-plp__cards';
|
|
316
|
+
options.allListSlots = '.package-card, .card-product-banner, .card-sponsor-banner';
|
|
317
|
+
options.allBanners = '.card-product-banner, .card-sponsor-banner';
|
|
302
318
|
}
|
|
303
319
|
|
|
304
|
-
Wick.BannerPlacementManager.init();
|
|
320
|
+
Wick.BannerPlacementManager.init(options);
|
|
305
321
|
});
|
|
@@ -3,10 +3,18 @@ Wick.Accordion = (function () {
|
|
|
3
3
|
var accordionRoot = '.accordion',
|
|
4
4
|
accordionToggler = '.accordion__header',
|
|
5
5
|
accordionIcon = '.accordion__action',
|
|
6
|
+
accordionBottomClose = '.opening-times-accordion__close',
|
|
6
7
|
accordionContent = '.accordion__content',
|
|
7
8
|
collapsed = 'accordion_collapsed',
|
|
8
9
|
$asideAccordion = $('.aside-accordion .js-toggle-aside-accordion');
|
|
9
10
|
|
|
11
|
+
function toggleAccordion($acc) {
|
|
12
|
+
if (!$acc.length) return;
|
|
13
|
+
|
|
14
|
+
$acc.toggleClass(collapsed);
|
|
15
|
+
$acc.children(accordionContent).stop(true, true).slideToggle(200);
|
|
16
|
+
}
|
|
17
|
+
|
|
10
18
|
function getTriggerSelector($acc) {
|
|
11
19
|
return $acc.attr('data-action-element') === 'icon' ? accordionIcon : accordionToggler;
|
|
12
20
|
}
|
|
@@ -20,8 +28,19 @@ Wick.Accordion = (function () {
|
|
|
20
28
|
|
|
21
29
|
if (!$trigger.is(triggerSel)) return;
|
|
22
30
|
|
|
23
|
-
$acc
|
|
24
|
-
|
|
31
|
+
toggleAccordion($acc);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function onAccordionBottomCloseClick(e) {
|
|
35
|
+
e.preventDefault();
|
|
36
|
+
|
|
37
|
+
var $trigger = $(e.currentTarget);
|
|
38
|
+
var $acc = $trigger.closest(accordionRoot);
|
|
39
|
+
if (!$acc.length) return;
|
|
40
|
+
|
|
41
|
+
if (!$acc.hasClass(collapsed)) {
|
|
42
|
+
toggleAccordion($acc);
|
|
43
|
+
}
|
|
25
44
|
}
|
|
26
45
|
|
|
27
46
|
function init() {
|
|
@@ -29,6 +48,10 @@ Wick.Accordion = (function () {
|
|
|
29
48
|
.off('click.wickAccordion', accordionToggler + ',' + accordionIcon)
|
|
30
49
|
.on('click.wickAccordion', accordionToggler + ',' + accordionIcon, onAccordionClick);
|
|
31
50
|
|
|
51
|
+
$(document)
|
|
52
|
+
.off('click.wickAccordionClose', accordionBottomClose)
|
|
53
|
+
.on('click.wickAccordionClose', accordionBottomClose, onAccordionBottomCloseClick);
|
|
54
|
+
|
|
32
55
|
$asideAccordion.off('click.wickAsideAccordion').on('click.wickAsideAccordion', function () {
|
|
33
56
|
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
34
57
|
if ($(this).text().toLowerCase() !== 'useful links') {
|
|
@@ -5,17 +5,30 @@ createPopupSlider({
|
|
|
5
5
|
sliderSelector: '.custom-slider.just-added',
|
|
6
6
|
onAppendEvent: 'productAddedToCart',
|
|
7
7
|
onAppend: function (event, { showSlider, handleScroll, el }) {
|
|
8
|
+
Wick.MiniBasketSliderFE.isMiniBasketLoaded = false;
|
|
9
|
+
|
|
10
|
+
if (event.detail.bulkAddToCartData) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
if (!$('.custom-slider.just-added').length) {
|
|
9
15
|
$('body').append(cartSliderHTML);
|
|
10
16
|
}
|
|
17
|
+
|
|
11
18
|
const htmlContent = event.detail.html;
|
|
12
|
-
|
|
19
|
+
|
|
20
|
+
if (htmlContent) {
|
|
21
|
+
$(el.slider).append(htmlContent);
|
|
22
|
+
}
|
|
23
|
+
|
|
13
24
|
showSlider();
|
|
14
|
-
|
|
15
|
-
$(el.sliderWrap).
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
|
|
26
|
+
if ($(el.sliderWrap).length) {
|
|
27
|
+
$(el.sliderWrap).on(
|
|
28
|
+
'scroll',
|
|
29
|
+
_.debounce(() => handleScroll(el.sliderWrap), 100)
|
|
30
|
+
);
|
|
31
|
+
}
|
|
19
32
|
},
|
|
20
33
|
onClose: function () {
|
|
21
34
|
Wick.MiniBasketSliderFE.cartEntries = [];
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var Wick = Wick || {};
|
|
2
|
+
|
|
3
|
+
Wick.PackageCards = (function () {
|
|
4
|
+
const SELECTORS = {
|
|
5
|
+
packageCard: '.package-card',
|
|
6
|
+
bannerCards: '.card-product-banner, .card-sponsor-banner, .card-bloomreach-media-banner',
|
|
7
|
+
packageCardStickers: '.package-card__stickers',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const CLASSES = {
|
|
11
|
+
stickersRow: 'has-stickers-row',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function formRows(cardsData) {
|
|
15
|
+
const rows = {};
|
|
16
|
+
|
|
17
|
+
$.each(cardsData, (_, item) => {
|
|
18
|
+
const topPosition = Math.round(item.$card.offset().top);
|
|
19
|
+
|
|
20
|
+
if (!rows[topPosition]) {
|
|
21
|
+
rows[topPosition] = [];
|
|
22
|
+
}
|
|
23
|
+
rows[topPosition].push(item);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
return rows;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function alignGridRows() {
|
|
30
|
+
const gridItemsSelector = `${SELECTORS.packageCard}, ${SELECTORS.bannerCards}`;
|
|
31
|
+
const $cards = $(gridItemsSelector);
|
|
32
|
+
|
|
33
|
+
if (!$cards.length) return;
|
|
34
|
+
|
|
35
|
+
const cardsData = $.map($cards, (card) => ({
|
|
36
|
+
$card: $(card),
|
|
37
|
+
$stickers: $(card).find(SELECTORS.packageCardStickers),
|
|
38
|
+
}));
|
|
39
|
+
|
|
40
|
+
$.each(cardsData, (_, item) => {
|
|
41
|
+
item.$card.removeClass(CLASSES.stickersRow);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const rows = formRows(cardsData);
|
|
45
|
+
|
|
46
|
+
$.each(Object.values(rows), (_, rowItems) => {
|
|
47
|
+
const rowHasStickers = rowItems.some(
|
|
48
|
+
(item) => item.$stickers.length > 0 && item.$stickers.html().trim() !== ''
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
if (rowHasStickers) {
|
|
52
|
+
$.each(rowItems, (_, item) => {
|
|
53
|
+
item.$card.addClass(CLASSES.stickersRow);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
$(document).ready(function () {
|
|
60
|
+
alignGridRows();
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
$(window).on('resize', _.debounce(alignGridRows, 50));
|
|
64
|
+
$(window).on('productBannerPositionChanged', alignGridRows);
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
alignGridRows,
|
|
68
|
+
};
|
|
69
|
+
})();
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var Wick = Wick || {};
|
|
2
|
+
|
|
3
|
+
Wick.StoreCardsAlign = (function () {
|
|
4
|
+
const SELECTORS = {
|
|
5
|
+
card: '.card-store',
|
|
6
|
+
info: '.card-store__info',
|
|
7
|
+
accordionHeader: '.opening-times-accordion__header',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
let resizeTimeout;
|
|
11
|
+
|
|
12
|
+
function alignCardInfoHeights() {
|
|
13
|
+
const rows = [];
|
|
14
|
+
|
|
15
|
+
$(SELECTORS.card).each(function () {
|
|
16
|
+
const $card = $(this);
|
|
17
|
+
const top = $card.offset().top;
|
|
18
|
+
|
|
19
|
+
let row = rows.find((r) => Math.abs(r.top - top) < 5);
|
|
20
|
+
|
|
21
|
+
if (!row) {
|
|
22
|
+
row = { top: top, items: [] };
|
|
23
|
+
rows.push(row);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
row.items.push($card);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
rows.forEach((row) => {
|
|
30
|
+
let maxHeight = 0;
|
|
31
|
+
|
|
32
|
+
// reset
|
|
33
|
+
row.items.forEach(($card) => {
|
|
34
|
+
$card.find(SELECTORS.info).css('min-height', '');
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// find max
|
|
38
|
+
row.items.forEach(($card) => {
|
|
39
|
+
const h = $card.find(SELECTORS.info).outerHeight();
|
|
40
|
+
if (h > maxHeight) maxHeight = h;
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// apply
|
|
44
|
+
row.items.forEach(($card) => {
|
|
45
|
+
$card.find(SELECTORS.info).css('min-height', maxHeight + 'px');
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function bindEvents() {
|
|
51
|
+
// load
|
|
52
|
+
$(window).on('load', alignCardInfoHeights);
|
|
53
|
+
|
|
54
|
+
// resize
|
|
55
|
+
$(window).on('resize', () => {
|
|
56
|
+
clearTimeout(resizeTimeout);
|
|
57
|
+
resizeTimeout = setTimeout(alignCardInfoHeights, 100);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// accordion
|
|
61
|
+
$(document).on('click', SELECTORS.accordionHeader, () => {
|
|
62
|
+
setTimeout(alignCardInfoHeights, 0);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function init() {
|
|
67
|
+
bindEvents();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
init();
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
init,
|
|
74
|
+
align: alignCardInfoHeights,
|
|
75
|
+
};
|
|
76
|
+
})();
|