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
|
@@ -1,32 +1,144 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
const DS_EL = {
|
|
2
|
+
cell: '.calendar__cell_cnt',
|
|
3
|
+
dateSelection: '.date-selection',
|
|
4
|
+
loader: '.rapid-loader',
|
|
5
|
+
title: '.delivery-btn .title',
|
|
6
|
+
subtitle: '.delivery-btn .subtitle',
|
|
7
|
+
infoIcon: '.rapid-info-icon',
|
|
8
|
+
image: '.delivery-btn__image',
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const DS_CLASSES = {
|
|
12
|
+
selectedCell: 'calendar__cell_selected',
|
|
13
|
+
isSelected: 'date-selection_selected',
|
|
14
|
+
rapidCell: 'calendar__cell_rapid',
|
|
15
|
+
hidden: 'd-none',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
let rapidLoaderShown = false;
|
|
19
|
+
let isDateSelected = false;
|
|
20
|
+
|
|
21
|
+
function generateRapidEstimate() {
|
|
22
|
+
const scenario = Math.floor(Math.random() * 4);
|
|
23
|
+
|
|
24
|
+
switch (scenario) {
|
|
25
|
+
case 0: {
|
|
26
|
+
const mins = Math.floor(Math.random() * 59) + 1;
|
|
27
|
+
const padded = String(mins).padStart(2, '0');
|
|
28
|
+
const word = mins === 1 ? 'minute' : 'minutes';
|
|
29
|
+
return `Delivered in as little as <br>${padded} ${word} for £10.00`;
|
|
30
|
+
}
|
|
31
|
+
case 1: {
|
|
32
|
+
const mins = Math.floor(Math.random() * 60);
|
|
33
|
+
const padded = String(mins).padStart(2, '0');
|
|
34
|
+
const word = mins === 1 ? 'minute' : 'minutes';
|
|
35
|
+
const minutePart = mins === 0 ? '00 minutes' : `${padded} ${word}`;
|
|
36
|
+
return `Delivered in as little as <br>1 hour ${minutePart} for £10.00`;
|
|
37
|
+
}
|
|
38
|
+
case 2: {
|
|
39
|
+
const mins = Math.floor(Math.random() * 60);
|
|
40
|
+
const padded = String(mins).padStart(2, '0');
|
|
41
|
+
const word = mins === 1 ? 'minute' : 'minutes';
|
|
42
|
+
const minutePart = mins === 0 ? '00 minutes' : `${padded} ${word}`;
|
|
43
|
+
return `Delivered in as little as <br>2 hours ${minutePart} for £10.00`;
|
|
44
|
+
}
|
|
45
|
+
default:
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function updateDeliveryInfo() {
|
|
51
|
+
const $subtitle = $(DS_EL.subtitle);
|
|
52
|
+
const $infoIcon = $subtitle.find(DS_EL.infoIcon).detach();
|
|
53
|
+
const estimate = generateRapidEstimate();
|
|
54
|
+
|
|
55
|
+
if (estimate) {
|
|
56
|
+
$subtitle.html(estimate);
|
|
57
|
+
$infoIcon.removeClass(DS_CLASSES.hidden);
|
|
58
|
+
} else {
|
|
59
|
+
$subtitle.html('Delivery within 3 hours for <b>£10.00');
|
|
60
|
+
$infoIcon.addClass(DS_CLASSES.hidden);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
$subtitle.append($infoIcon);
|
|
64
|
+
$infoIcon.filter('[data-toggle="tooltip"]').tooltip();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function showRapidLoader() {
|
|
68
|
+
const $self = $(DS_EL.dateSelection);
|
|
69
|
+
const $loader = $(DS_EL.loader);
|
|
70
|
+
$loader.removeClass(DS_CLASSES.hidden);
|
|
71
|
+
|
|
72
|
+
setTimeout(() => {
|
|
73
|
+
$loader.addClass(DS_CLASSES.hidden);
|
|
74
|
+
$self.addClass(DS_CLASSES.isSelected);
|
|
75
|
+
updateRapidInfo();
|
|
76
|
+
}, 3000);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function updateNonRapidInfo() {
|
|
80
|
+
const $title = $(DS_EL.title);
|
|
81
|
+
const $subtitle = $(DS_EL.subtitle);
|
|
82
|
+
const $infoIcon = $subtitle.find(DS_EL.infoIcon).detach();
|
|
83
|
+
const $image = $(DS_EL.image);
|
|
84
|
+
|
|
85
|
+
$title.text('Next or Named day delivery');
|
|
86
|
+
$subtitle.html('Delivery between 7am - 7pm for £12.00');
|
|
87
|
+
$infoIcon.addClass(DS_CLASSES.hidden);
|
|
88
|
+
$subtitle.append($infoIcon);
|
|
89
|
+
$image.addClass(DS_CLASSES.hidden);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function updateRapidInfo() {
|
|
93
|
+
const $title = $(DS_EL.title);
|
|
94
|
+
const $image = $(DS_EL.image);
|
|
95
|
+
|
|
96
|
+
$title.text('Rapid delivery');
|
|
97
|
+
$image.removeClass(DS_CLASSES.hidden);
|
|
98
|
+
updateDeliveryInfo();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function selectTimeSlot(e) {
|
|
102
|
+
const $self = $(DS_EL.dateSelection);
|
|
103
|
+
const $cell = $(e.target).closest(DS_EL.cell);
|
|
104
|
+
const isRapid = $cell.hasClass(DS_CLASSES.rapidCell);
|
|
105
|
+
|
|
106
|
+
$(DS_EL.cell).removeClass(DS_CLASSES.selectedCell);
|
|
107
|
+
$cell.addClass(DS_CLASSES.selectedCell);
|
|
13
108
|
$self.trigger('selected');
|
|
14
109
|
isDateSelected = true;
|
|
15
|
-
};
|
|
16
110
|
|
|
17
|
-
|
|
111
|
+
if (isRapid) {
|
|
112
|
+
if (!rapidLoaderShown) {
|
|
113
|
+
rapidLoaderShown = true;
|
|
114
|
+
showRapidLoader();
|
|
115
|
+
return;
|
|
116
|
+
} else {
|
|
117
|
+
$self.addClass(DS_CLASSES.isSelected);
|
|
118
|
+
updateRapidInfo();
|
|
119
|
+
}
|
|
120
|
+
} else {
|
|
121
|
+
$self.addClass(DS_CLASSES.isSelected);
|
|
122
|
+
updateNonRapidInfo();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function initDateSelection() {
|
|
127
|
+
const $self = $(DS_EL.dateSelection);
|
|
128
|
+
|
|
18
129
|
if (!$self.length) {
|
|
19
|
-
|
|
130
|
+
return;
|
|
20
131
|
}
|
|
21
132
|
|
|
22
|
-
$self.on('click', cell, selectTimeSlot);
|
|
23
|
-
|
|
133
|
+
$self.on('click', DS_EL.cell, selectTimeSlot);
|
|
134
|
+
}
|
|
24
135
|
|
|
25
|
-
|
|
136
|
+
var Wick = window.Wick || {};
|
|
26
137
|
|
|
27
|
-
|
|
28
|
-
isDateSelected:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
138
|
+
Wick.DateSelection = {
|
|
139
|
+
isDateSelected: () => isDateSelected,
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
$(document).ready(function () {
|
|
143
|
+
initDateSelection();
|
|
144
|
+
});
|
|
@@ -323,6 +323,18 @@ Wick.Forms = (function () {
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
if ($(form).is('.notify-me-form')) {
|
|
327
|
+
if ($(form).find('#notify-me-email').val().length) {
|
|
328
|
+
return false;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
if ($(form).is('.add-list-id__form')) {
|
|
333
|
+
if ($(form).find('#project-id').val().length) {
|
|
334
|
+
return false;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
326
338
|
if ($(form).is('.header-search')) {
|
|
327
339
|
window.location.href = './page_search-results.html';
|
|
328
340
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
window.Wick = window.Wick || {};
|
|
2
2
|
Wick.MiniBasketData = (function () {
|
|
3
3
|
return {
|
|
4
4
|
updateQuantity: {
|
|
@@ -874,14 +874,14 @@ Wick.MiniBasketData = (function () {
|
|
|
874
874
|
clickAndCollectOnly: false,
|
|
875
875
|
deliveryItemsQuantity: 1,
|
|
876
876
|
pickupItemsQuantity: 2,
|
|
877
|
-
freeDelivery:
|
|
877
|
+
freeDelivery: false,
|
|
878
878
|
subtotalWithoutCharity: {
|
|
879
879
|
value: 19.0,
|
|
880
880
|
formattedValue: '£19.00',
|
|
881
881
|
currencyIso: 'GBP',
|
|
882
882
|
formattedPriceWithoutCurrencySymbol: '19.00',
|
|
883
883
|
},
|
|
884
|
-
messageForFreeDelivery:
|
|
884
|
+
messageForFreeDelivery: null,
|
|
885
885
|
pickupOrderGroups: [
|
|
886
886
|
{
|
|
887
887
|
entries: [
|