wickes-css2 2.113.0-develop.1 → 2.113.0-develop.11
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/global-search.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/store-locator-facilities.css +1 -1
- package/build/css/components/store-locator-lookup.css +1 -1
- package/build/css/components/tile-calculator.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/checkout.css +1 -1
- package/build/css/pages/my-account-v2.css +1 -1
- package/build/css/pages/my-account.css +1 -1
- package/build/css/pages/page_address-book.css +1 -1
- package/build/css/pages/page_checkout_delivery-new.css +1 -1
- package/build/css/pages/page_default-store.css +1 -1
- package/build/css/pages/page_discount.css +1 -1
- package/build/css/pages/page_fi.css +1 -1
- package/build/css/pages/page_in-store-checkout.css +1 -1
- package/build/css/pages/page_merged-basket.css +1 -1
- package/build/css/pages/page_my-order.css +1 -1
- package/build/css/pages/page_my-orders.css +1 -1
- package/build/css/pages/page_product-details-critical.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_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/pages/page_ti.css +1 -1
- package/build/css/pages/tradePro-discount.css +1 -1
- package/build/css/pages/tradePro-rewards-old.css +1 -1
- package/build/css/pages/tradePro-rewards.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/shopping-list-pdf.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/img/emulation/low-trees.png +0 -0
- package/build/img/emulation/overhead-power-cables.png +0 -0
- package/build/img/emulation/parked-vehicles.png +0 -0
- package/build/img/emulation/traffic-access-issues.png +0 -0
- package/build/img/emulation/walls-or-fences.png +0 -0
- package/build/js/account-members.min.js +1 -1
- package/build/js/add-project-list-id.min.js +1 -1
- package/build/js/address-book.min.js +1 -1
- package/build/js/basket.min.js +2 -2
- package/build/js/bloomreach-widget.min.js +1 -1
- package/build/js/bundle.min.js +1 -1
- package/build/js/change-password.min.js +1 -1
- package/build/js/checkout.min.js +2 -2
- package/build/js/emulation.min.js +456 -3270
- 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/package-bulk-add.min.js +1 -0
- package/build/js/page/bloomreach-widget/bloomreach-recommendation-carousel-widget.js +318 -0
- package/build/js/page/bloomreach-widget/bloomreach-widget-core.js +370 -0
- package/build/js/page/bloomreach-widget/bloomreach-widget-tracking.js +16 -13
- package/build/js/page/bloomreach-widget/bloomreach-widget.js +8 -237
- package/build/js/page/bloomreach-widget/complete-your-project/cards.js +308 -0
- package/build/js/page/bloomreach-widget/complete-your-project/config.js +60 -0
- package/build/js/page/bloomreach-widget/complete-your-project/model.js +140 -0
- package/build/js/page/bloomreach-widget/complete-your-project/presenter.js +69 -0
- package/build/js/page/bloomreach-widget/complete-your-project/quantity.js +80 -0
- package/build/js/page/bloomreach-widget/complete-your-project/view.js +179 -0
- package/build/js/page/bloomreach-widget/complete-your-project/widget.js +185 -0
- package/build/js/page/bloomreach-widget/dont-forget-widget.js +15 -0
- package/build/js/page/bloomreach-widget/why-not-add-widget.js +10 -228
- package/build/js/page/plp-load-more.js +81 -66
- package/build/js/page/ripple/bulk-add.js +71 -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/validation.js +1 -1
- package/build/js/pdp.bundle.min.js +2 -2
- package/build/js/personal-details.min.js +1 -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 +2 -2
- package/build/js/quiz.min.js +1 -1
- package/build/js/track-my-order.min.js +1 -1
- package/package.json +4 -2
- package/src/badges-ripple.html +120 -0
- package/src/badges.html +9 -18
- package/src/components/base/button.hbs +7 -0
- package/src/components/bloomreach/complete-your-project-skeleton.hbs +21 -0
- package/src/components/bloomreach/complete-your-project.hbs +6 -21
- package/src/components/bloomreach/why-not-add-card-skeleton.hbs +2 -2
- package/src/components/bloomreach/why-not-add-card.hbs +79 -60
- package/src/components/bloomreach/why-not-add-content.hbs +3 -3
- package/src/components/bloomreach/why-not-add.hbs +1 -1
- package/src/components/date-selection.hbs +19 -10
- package/src/components/fulfilment-accordions.hbs +1 -1
- package/src/components/heavy-banners-wrapper.hbs +21 -0
- package/src/components/image-accordion.hbs +18 -0
- package/src/components/kitchen/price.hbs +49 -29
- package/src/components/kitchen/strip-stickers.hbs +9 -3
- 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/price-badges.hbs +12 -10
- package/src/components/price-block-v2.hbs +274 -202
- package/src/components/product-main-info-v2.hbs +2 -0
- package/src/components/suite-includes.hbs +66 -0
- package/src/components/suite-product-card.hbs +47 -0
- 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_heavy-banner.json +29 -0
- package/src/data/data_suite-includes-products.json +134 -0
- package/src/data/my-account/data_my-account.json +1 -1
- package/src/data/my-account/data_my-order.json +1 -1
- package/src/data/my-account/data_my-orders.json +1 -1
- package/src/img/emulation/low-trees.png +0 -0
- package/src/img/emulation/overhead-power-cables.png +0 -0
- package/src/img/emulation/parked-vehicles.png +0 -0
- package/src/img/emulation/traffic-access-issues.png +0 -0
- package/src/img/emulation/walls-or-fences.png +0 -0
- package/src/js/components/banner-placement-manager.js +25 -9
- package/src/js/components/general/cart-slider.js +41 -4
- package/src/js/components/general/image-accordion.js +54 -0
- package/src/js/components/general/switchVat.js +8 -1
- 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 +219 -188
- package/src/js/emulation/complete-your-project-loading.js +16 -0
- package/src/js/emulation/custom-slider-emulation.js +21 -8
- package/src/js/emulation/date-selection.js +2 -2
- package/src/js/emulation/dont-forget-loading.js +36 -0
- package/src/js/emulation/just-added-scenarios-emulation.js +131 -0
- package/src/js/emulation/mini-basket.js +34 -34
- package/src/js/emulation/mock.js +429 -4
- package/src/js/emulation/plp-load-more.js +13 -4
- package/src/js/emulation/postcode-checker.js +11 -0
- package/src/js/emulation/why-not-add-loading.js +14 -3
- package/src/js/emulation/why-not-add.js +12 -14
- package/src/js/page/bloomreach-widget/bloomreach-recommendation-carousel-widget.js +318 -0
- package/src/js/page/bloomreach-widget/bloomreach-widget-core.js +370 -0
- package/src/js/page/bloomreach-widget/bloomreach-widget-tracking.js +16 -13
- package/src/js/page/bloomreach-widget/bloomreach-widget.js +8 -237
- package/src/js/page/bloomreach-widget/complete-your-project/cards.js +308 -0
- package/src/js/page/bloomreach-widget/complete-your-project/config.js +60 -0
- package/src/js/page/bloomreach-widget/complete-your-project/model.js +140 -0
- package/src/js/page/bloomreach-widget/complete-your-project/presenter.js +69 -0
- package/src/js/page/bloomreach-widget/complete-your-project/quantity.js +80 -0
- package/src/js/page/bloomreach-widget/complete-your-project/view.js +179 -0
- package/src/js/page/bloomreach-widget/complete-your-project/widget.js +185 -0
- package/src/js/page/bloomreach-widget/dont-forget-widget.js +15 -0
- package/src/js/page/bloomreach-widget/why-not-add-widget.js +10 -228
- package/src/js/page/plp-load-more.js +81 -66
- package/src/js/page/ripple/bulk-add.js +71 -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/validation.js +1 -1
- 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_big-bulky-delivery-details.html +272 -0
- package/src/page_checkout_premium-delivery-details.html +2 -2
- package/src/page_product-details-banner.html +1 -3
- package/src/page_product-details-big-wins-disabled-delivery.html +1 -3
- package/src/page_product-details-big-wins-non-registered.html +1 -3
- package/src/page_product-details-big-wins-out-nearest.html +1 -3
- package/src/page_product-details-big-wins-unhappy.html +1 -3
- package/src/page_product-details-big-wins.html +1 -3
- package/src/page_product-details-billie.html +1 -3
- package/src/page_product-details-calculator.html +1 -3
- package/src/page_product-details-cashback-v2.html +1 -3
- package/src/page_product-details-clearpay.html +1 -3
- package/src/page_product-details-cnc-error-notification.html +1 -3
- package/src/page_product-details-cnc-success-notification-vat.html +1 -4
- package/src/page_product-details-cnc-success-notification.html +1 -3
- package/src/page_product-details-default-store.html +1 -3
- package/src/page_product-details-energy-efficiency.html +1 -3
- package/src/page_product-details-flooring-with-pr-placeholder.html +1 -3
- package/src/page_product-details-flooring.html +1 -3
- package/src/page_product-details-gallery-actual.html +1 -3
- package/src/page_product-details-mfe-calculator.html +1 -3
- package/src/page_product-details-mtm-doors.html +1 -3
- package/src/page_product-details-only-clearpay.html +1 -3
- package/src/page_product-details-paint-mixing.html +1 -3
- package/src/page_product-details-ripple-gallery.html +121 -0
- package/src/page_product-details-saved-pl.html +1 -3
- package/src/page_product-details-suite-includes-banners.html +139 -0
- package/src/page_product-details-suite-includes-billie.html +128 -0
- package/src/page_product-details-suite-includes-klarna.html +120 -0
- package/src/page_product-details-suite-includes-vat.html +126 -0
- package/src/page_product-details-suite-includes.html +122 -0
- package/src/page_product-details-tile-steps-klarna-widget-with-method-ids.html +1 -3
- package/src/page_product-details-tile-steps-logout.html +1 -3
- package/src/page_product-details-tile-steps-no-new-project-list.html +1 -3
- package/src/page_product-details-tile-steps-with-klarna.html +1 -3
- package/src/page_product-details-tile-steps.html +1 -3
- package/src/page_product-details-v2.html +1 -3
- package/src/page_product-details-vat.html +1 -3
- package/src/page_product-details-wisdom-mcfc-registered.html +1 -3
- package/src/page_product-details-wisdom-mcfc.html +1 -3
- package/src/page_product-details-wisdom-oos-registered.html +1 -3
- package/src/page_product-details-wisdom-oos.html +1 -3
- package/src/page_product-details-wisdom-registered.html +1 -3
- package/src/page_product-details-wisdom.html +1 -3
- package/src/page_product-details-with-favourite.html +1 -3
- package/src/page_product-details-with-global-search-v2.html +6 -9
- package/src/page_product-details-with-why-not-add-single.html +2 -1
- package/src/page_product-details_no-previous-default.html +1 -3
- package/src/scss/components/_cards-slider.scss +3 -1
- package/src/scss/components/_checkout_order.scss +2 -1
- package/src/scss/components/_date-selection-add-new-styles.scss +29 -0
- package/src/scss/components/_heavy-banners.scss +216 -0
- package/src/scss/components/_image-accordion.scss +54 -0
- package/src/scss/components/_kitchen-card.scss +1 -0
- package/src/scss/components/_lines-group.scss +1 -1
- package/src/scss/components/_package-card.scss +63 -0
- package/src/scss/components/_package-plp.scss +88 -0
- package/src/scss/components/_postcode-checker.scss +115 -0
- package/src/scss/components/_price-badges-critical.scss +10 -0
- package/src/scss/components/_price-badges.scss +10 -0
- package/src/scss/components/_price-block-critical.scss +1 -0
- package/src/scss/components/_price-block.scss +1 -0
- package/src/scss/components/_sticky-element-appearance.scss +6 -2
- package/src/scss/components/_suite-includes.scss +141 -0
- package/src/scss/components/_suite-product-card.scss +98 -0
- 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 +1 -0
- package/src/scss/components/bloomreach/_card-shared.scss +24 -0
- package/src/scss/components/bloomreach/_complete-card.scss +1 -9
- package/src/scss/components/bloomreach/_reviews.scss +0 -2
- package/src/scss/components/bloomreach/_why-not-add-card.scss +137 -10
- package/src/scss/components/bloomreach/_why-not-add.scss +31 -2
- package/src/scss/components/energy-efficiency.scss +2 -2
- package/src/scss/components/global-search.scss +6 -2
- 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/_active-orders.scss +9 -9
- package/src/scss/components/price-block-v2-critical.scss +58 -0
- package/src/scss/components/price-block-v2.scss +58 -0
- package/src/scss/helpers/helpers-pdp-critical/_helpers-critical-pdp.scss +13 -8
- package/src/scss/libs/_bootstrap-extracted.scss +5 -0
- package/src/scss/main.scss +1 -0
- package/src/scss/pages/iframe-paypage.scss +9 -11
- package/src/scss/pages/page_checkout_delivery-new.scss +4 -0
- package/src/scss/pages/page_cms_homepage.scss +10 -4
- package/src/scss/pages/page_installation.scss +2 -2
- package/src/scss/pages/page_online-exclusive.scss +7 -3
- package/src/scss/pages/page_product-details-v2-critical.scss +216 -109
- package/src/scss/pages/page_product-details-v2.scss +168 -107
- package/src/scss/pages/page_product-details.scss +11 -0
- package/src/scss/pages/page_top-rated.scss +38 -23
- package/src/scss/pdp-main-critical.scss +1 -0
- package/src/scss/pdp-main.scss +6 -0
- package/src/scss/plp-main.scss +5 -0
- 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/build/js/page/bloomreach-widget/complete-your-project-widget.js +0 -1100
- package/src/js/page/bloomreach-widget/complete-your-project-widget.js +0 -1100
- package/src/scss/components/kitchen/strip-stickers.scss +0 -18
- package/src/scss/components/strip-stickers.scss +0 -18
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPLETE_YOUR_PROJECT_EL as EL,
|
|
3
|
+
COMPLETE_YOUR_PROJECT_TEMPLATES as TEMPLATES,
|
|
4
|
+
} from './config';
|
|
5
|
+
|
|
6
|
+
export function createCompleteYourProjectView(model, presenter) {
|
|
7
|
+
function getCtaText(selectedCount) {
|
|
8
|
+
if (!selectedCount) {
|
|
9
|
+
return 'Add product(s) to basket';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return `Add ${selectedCount} product${selectedCount > 1 ? 's' : ''} to basket`;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function setCtaText($button, text) {
|
|
16
|
+
const $text = $button.find(Wick.BloomreachWidget.el.loadingButtonText);
|
|
17
|
+
|
|
18
|
+
if ($text.length) {
|
|
19
|
+
$text.text(text);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
$button.text(text);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function renderWidget($container) {
|
|
27
|
+
const $content = $container.children(EL.widgetContent).first().length
|
|
28
|
+
? $container.children(EL.widgetContent).first()
|
|
29
|
+
: $container.find(EL.widgetContent).first();
|
|
30
|
+
const recommendations = model.getRecommendations();
|
|
31
|
+
|
|
32
|
+
if (!$content.length || !recommendations.length) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
$content.html(TEMPLATES.wrapper());
|
|
37
|
+
|
|
38
|
+
const $wrapper = $content.find(EL.widgetWrapper);
|
|
39
|
+
|
|
40
|
+
recommendations.forEach(function (recommendation, index) {
|
|
41
|
+
const product = presenter.getProductRenderData(recommendation.baseProduct, index);
|
|
42
|
+
|
|
43
|
+
$wrapper.append(TEMPLATES.card(product));
|
|
44
|
+
$wrapper.children(EL.completeCard).last().attr(EL.recommendationIndexAttr, index);
|
|
45
|
+
|
|
46
|
+
if (index === 0 && recommendations.length > 1) {
|
|
47
|
+
$wrapper.append(TEMPLATES.divider());
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const isSwitchVat = !!(window.ACC && window.ACC.app && window.ACC.app.isVatToggleAvailable);
|
|
52
|
+
|
|
53
|
+
$content.append(TEMPLATES.summary({ 'switch-vat': isSwitchVat }));
|
|
54
|
+
$container.show();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function updateSummary($root, response = {}) {
|
|
58
|
+
const totalPriceExclusiveVat = response.totalPriceExclusiveVat || response.totalExcVatPrice;
|
|
59
|
+
const totalWasPriceExclusiveVat =
|
|
60
|
+
response.totalWasPriceExclusiveVat || response.totalExcVatWasPrice;
|
|
61
|
+
const { vatInc, vatExc } = Wick.BloomreachWidget.el;
|
|
62
|
+
const $price = $root.find(EL.summaryPriceValue);
|
|
63
|
+
const $salePrice = $root.find(EL.summarySalePrice);
|
|
64
|
+
const $total = $root.find(EL.summaryTotal);
|
|
65
|
+
|
|
66
|
+
if (!$price.length) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (response.totalWasPrice) {
|
|
71
|
+
$total.addClass('complete-widget__total-sale');
|
|
72
|
+
|
|
73
|
+
const $priceInc = $price.find(vatInc);
|
|
74
|
+
|
|
75
|
+
if ($priceInc.length) {
|
|
76
|
+
$priceInc.text(response.totalWasPrice);
|
|
77
|
+
$price.find(vatExc).text(totalWasPriceExclusiveVat || response.totalWasPrice);
|
|
78
|
+
$salePrice.find(vatInc).text(response.totalPrice || '');
|
|
79
|
+
$salePrice.find(vatExc).text(totalPriceExclusiveVat || response.totalPrice || '');
|
|
80
|
+
} else {
|
|
81
|
+
$price.text(response.totalWasPrice);
|
|
82
|
+
$salePrice.text(response.totalPrice || '');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
$salePrice.show();
|
|
86
|
+
Wick.BloomreachWidget.reapplyVatDisplay();
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
$total.removeClass('complete-widget__total-sale');
|
|
91
|
+
|
|
92
|
+
const $priceInc = $price.find(vatInc);
|
|
93
|
+
|
|
94
|
+
if ($priceInc.length) {
|
|
95
|
+
$priceInc.text(response.totalPrice || '£0.00');
|
|
96
|
+
$price.find(vatExc).text(totalPriceExclusiveVat || response.totalPrice || '£0.00');
|
|
97
|
+
$salePrice.find(vatInc).text('');
|
|
98
|
+
$salePrice.find(vatExc).text('');
|
|
99
|
+
$salePrice.hide();
|
|
100
|
+
} else {
|
|
101
|
+
$price.text(response.totalPrice || '£0.00');
|
|
102
|
+
$salePrice.text('').hide();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
Wick.BloomreachWidget.reapplyVatDisplay();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function updateCta($root) {
|
|
109
|
+
const selectedCount = $root.find(EL.cardCheckbox).filter(':checked').length;
|
|
110
|
+
const $cta = $root.find(EL.ctaButton);
|
|
111
|
+
|
|
112
|
+
if (!$cta.length) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
$cta.prop('disabled', !selectedCount);
|
|
117
|
+
setCtaText($cta, getCtaText(selectedCount));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function setInitialSummary($root) {
|
|
121
|
+
const firstItem = model.getSelectedItems($root)[0];
|
|
122
|
+
|
|
123
|
+
if (!firstItem || !firstItem.product) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const product = firstItem.product;
|
|
128
|
+
const displayPrice = Wick.BloomreachWidget.getDisplayPrice(product);
|
|
129
|
+
const priceExcVat = Wick.BloomreachWidget.getDisplayPriceExcVat(product);
|
|
130
|
+
const wasPriceFormatted = Wick.BloomreachWidget.getWasPriceFormatted(product);
|
|
131
|
+
|
|
132
|
+
updateSummary($root, {
|
|
133
|
+
totalPrice: Wick.BloomreachWidget.getPriceFormattedValue(displayPrice) || '£0.00',
|
|
134
|
+
totalWasPrice: wasPriceFormatted || null,
|
|
135
|
+
totalPriceExclusiveVat: Wick.BloomreachWidget.getPriceFormattedValue(priceExcVat),
|
|
136
|
+
totalWasPriceExclusiveVat: Wick.BloomreachWidget.getExcVatWasPrice(product) || null,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function alignBlock(selector, $root) {
|
|
141
|
+
const $els = $root.find(selector);
|
|
142
|
+
|
|
143
|
+
$els.css('min-height', '');
|
|
144
|
+
|
|
145
|
+
if (!$els.length || Wick.Responsive.getCurrentBreakpoint() !== 'up-lg') {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
let maxHeight = 0;
|
|
150
|
+
|
|
151
|
+
$els.each(function () {
|
|
152
|
+
maxHeight = Math.max(maxHeight, $(this).height());
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
if (maxHeight > 0) {
|
|
156
|
+
$els.css('min-height', maxHeight + 'px');
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function alignCardBlocks($root) {
|
|
161
|
+
alignBlock(EL.titleEl, $root);
|
|
162
|
+
alignBlock(EL.optionsEl, $root);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function resetWidgetState($root) {
|
|
166
|
+
$root.find(EL.cardCheckbox).prop('checked', false);
|
|
167
|
+
$root.find(EL.completeCard).removeClass(EL.selectedClass);
|
|
168
|
+
$root.find(EL.quantityInput).val(1).data(EL.previousQuantityData, 1);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return {
|
|
172
|
+
renderWidget,
|
|
173
|
+
updateSummary,
|
|
174
|
+
updateCta,
|
|
175
|
+
setInitialSummary,
|
|
176
|
+
alignCardBlocks,
|
|
177
|
+
resetWidgetState,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
var Wick = window.Wick || {};
|
|
2
|
+
|
|
3
|
+
import { createLoadingButton } from '../../utils/create-loading-button';
|
|
4
|
+
import { createToast } from '../../utils/create-toast';
|
|
5
|
+
import { createBloomreachWidget } from '../bloomreach-widget-core';
|
|
6
|
+
import { createBloomreachWidgetTracking } from '../bloomreach-widget-tracking';
|
|
7
|
+
import {
|
|
8
|
+
COMPLETE_YOUR_PROJECT_EL as EL,
|
|
9
|
+
COMPLETE_YOUR_PROJECT_EVENTS as EVENTS,
|
|
10
|
+
COMPLETE_YOUR_PROJECT_TEMPLATES as TEMPLATES,
|
|
11
|
+
} from './config';
|
|
12
|
+
import { createCompleteYourProjectModel } from './model';
|
|
13
|
+
import { createCompleteYourProjectPresenter } from './presenter';
|
|
14
|
+
import { createCompleteYourProjectView } from './view';
|
|
15
|
+
import { createCompleteYourProjectCards } from './cards';
|
|
16
|
+
|
|
17
|
+
const model = createCompleteYourProjectModel();
|
|
18
|
+
const presenter = createCompleteYourProjectPresenter();
|
|
19
|
+
const view = createCompleteYourProjectView(model, presenter);
|
|
20
|
+
const tracking = createBloomreachWidgetTracking();
|
|
21
|
+
|
|
22
|
+
let loadingButton = null;
|
|
23
|
+
let toast = null;
|
|
24
|
+
let cards = null;
|
|
25
|
+
|
|
26
|
+
function ensureServices() {
|
|
27
|
+
if (!toast) {
|
|
28
|
+
toast = createToast({
|
|
29
|
+
template: TEMPLATES.notification,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (!loadingButton) {
|
|
34
|
+
loadingButton = createLoadingButton();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function handleBulkAddToCartResponse(response) {
|
|
39
|
+
const bulkData = response && response.bulkAddToCartData;
|
|
40
|
+
|
|
41
|
+
if (!bulkData) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
toast.show({
|
|
46
|
+
type: bulkData.messageType,
|
|
47
|
+
text: bulkData.messageText,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function dispatchCalculateTotal($root) {
|
|
52
|
+
view.updateCta($root);
|
|
53
|
+
|
|
54
|
+
const selectedItems = model.getSelectedItems($root);
|
|
55
|
+
|
|
56
|
+
return Wick.BloomreachWidget.dispatchWidgetEvent(EVENTS.calculateTotal, {
|
|
57
|
+
entries: model.toSelectedEntries(selectedItems),
|
|
58
|
+
}).then(function (response) {
|
|
59
|
+
view.updateSummary($root, response);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function dispatchAddToCart($root, $button, selectedItems) {
|
|
64
|
+
loadingButton.start($button);
|
|
65
|
+
|
|
66
|
+
return Wick.BloomreachWidget.dispatchWidgetEvent(EVENTS.addToCart, {
|
|
67
|
+
entries: model.toAddToCartEntries(selectedItems),
|
|
68
|
+
})
|
|
69
|
+
.then(function (response) {
|
|
70
|
+
handleBulkAddToCartResponse(response);
|
|
71
|
+
|
|
72
|
+
if (Wick.MiniBasketSliderFE) {
|
|
73
|
+
Wick.MiniBasketSliderFE.isMiniBasketLoaded = false;
|
|
74
|
+
}
|
|
75
|
+
})
|
|
76
|
+
.catch(function () {
|
|
77
|
+
handleBulkAddToCartResponse({
|
|
78
|
+
bulkAddToCartData: {
|
|
79
|
+
messageType: 'error',
|
|
80
|
+
messageText: 'Selected product(s) were not added to basket',
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
})
|
|
84
|
+
.finally(function () {
|
|
85
|
+
loadingButton.stop($button);
|
|
86
|
+
view.updateCta($root);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function bindAddToCart($root) {
|
|
91
|
+
$root.off('click.bloomreachAddToCart', EL.ctaButton);
|
|
92
|
+
$root.on('click.bloomreachAddToCart', EL.ctaButton, function (event) {
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
|
|
95
|
+
const $button = $(this);
|
|
96
|
+
|
|
97
|
+
if ($button.prop('disabled') || loadingButton.isLoading($button)) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const selectedItems = model.getSelectedItems($root);
|
|
102
|
+
const trackingItems = model.toTrackingItems(selectedItems);
|
|
103
|
+
|
|
104
|
+
if (trackingItems.length) {
|
|
105
|
+
tracking.trackAddToCart(trackingItems);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
dispatchAddToCart($root, $button, selectedItems);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function bindVatToggle() {
|
|
113
|
+
if (Wick.BloomreachWidget.bindVatToggle) {
|
|
114
|
+
Wick.BloomreachWidget.bindVatToggle('completeYourProjectVatToggle');
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function initRenderedWidget($container) {
|
|
119
|
+
ensureServices();
|
|
120
|
+
|
|
121
|
+
const $completeWidget = $container.find(EL.completeWidget).first();
|
|
122
|
+
|
|
123
|
+
if (!$completeWidget.length) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
Wick.BloomreachWidget.removeBlankTargets($completeWidget);
|
|
128
|
+
Wick.BloomreachWidget.drawRating($completeWidget);
|
|
129
|
+
cards.bindCardSelection($completeWidget);
|
|
130
|
+
cards.bindDropdowns();
|
|
131
|
+
cards.bindDropdownValidation($completeWidget);
|
|
132
|
+
bindAddToCart($completeWidget);
|
|
133
|
+
cards.bindProductTracking($completeWidget);
|
|
134
|
+
bindVatToggle();
|
|
135
|
+
cards.initQuantityFields($completeWidget);
|
|
136
|
+
|
|
137
|
+
$completeWidget.find(EL.dropdownRoot).removeClass(EL.dropdownErrorClass);
|
|
138
|
+
|
|
139
|
+
view.alignCardBlocks($completeWidget);
|
|
140
|
+
view.updateCta($completeWidget);
|
|
141
|
+
view.setInitialSummary($completeWidget);
|
|
142
|
+
Wick.BloomreachWidget.reapplyVatDisplay();
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
cards = createCompleteYourProjectCards({
|
|
146
|
+
model,
|
|
147
|
+
presenter,
|
|
148
|
+
view,
|
|
149
|
+
tracking,
|
|
150
|
+
calculateTotal: dispatchCalculateTotal,
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
const Widget = createBloomreachWidget({
|
|
154
|
+
el: EL,
|
|
155
|
+
tracking,
|
|
156
|
+
setPayload(payloadData) {
|
|
157
|
+
model.setRecommendations(payloadData);
|
|
158
|
+
},
|
|
159
|
+
renderWidget($container) {
|
|
160
|
+
cards.resetDropdownState();
|
|
161
|
+
view.renderWidget($container);
|
|
162
|
+
},
|
|
163
|
+
initRenderedWidget,
|
|
164
|
+
getViewTargets($containers) {
|
|
165
|
+
return [$containers.find(EL.titleEl).get(0), $containers.find(EL.ctaButton).get(-1)];
|
|
166
|
+
},
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
$(document).ready(function () {
|
|
170
|
+
Wick.Responsive.onResize(function () {
|
|
171
|
+
$(EL.widgetContainer).each(function () {
|
|
172
|
+
const $completeWidget = $(this).find(EL.completeWidget);
|
|
173
|
+
|
|
174
|
+
if ($completeWidget.length) {
|
|
175
|
+
view.alignCardBlocks($completeWidget);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
window.addEventListener('pagehide', function () {
|
|
182
|
+
cards.resetBackForwardState();
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
export default Widget;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createBloomreachRecommendationCarouselWidget } from './bloomreach-recommendation-carousel-widget';
|
|
2
|
+
|
|
3
|
+
const DontForgetWidget = createBloomreachRecommendationCarouselWidget({
|
|
4
|
+
namespace: 'dontForget',
|
|
5
|
+
title: 'Don’t forget',
|
|
6
|
+
modifier: 'why-not-add--dont-forget',
|
|
7
|
+
widgetContainer: '.custom-slider.just-added .custom-slider__wrap',
|
|
8
|
+
appendToContainer: true,
|
|
9
|
+
doNotShowAddedProductPopup: true,
|
|
10
|
+
disableAfterSuccess: true,
|
|
11
|
+
disableAfterFailure: true,
|
|
12
|
+
addToCartError: 'Product has not been added to basket',
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export default DontForgetWidget;
|
|
@@ -1,230 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
'bloomreach/why-not-add',
|
|
12
|
-
require('../../../components/bloomreach/why-not-add.hbs')
|
|
13
|
-
);
|
|
14
|
-
Handlebars.registerPartial(
|
|
15
|
-
'bloomreach/why-not-add-skeleton',
|
|
16
|
-
require('../../../components/bloomreach/why-not-add-skeleton.hbs')
|
|
17
|
-
);
|
|
18
|
-
Handlebars.registerPartial(
|
|
19
|
-
'bloomreach/why-not-add-card-skeleton',
|
|
20
|
-
require('../../../components/bloomreach/why-not-add-card-skeleton.hbs')
|
|
21
|
-
);
|
|
22
|
-
Handlebars.registerPartial(
|
|
23
|
-
'bloomreach/why-not-add-card',
|
|
24
|
-
require('../../../components/bloomreach/why-not-add-card.hbs')
|
|
25
|
-
);
|
|
26
|
-
Handlebars.registerPartial('reviews-rating', require('../../../components/reviews-rating.hbs'));
|
|
27
|
-
|
|
28
|
-
const whyNotAddTemplate = require('../../../components/bloomreach/why-not-add-content.hbs');
|
|
29
|
-
|
|
30
|
-
const WhyNotAddWidget = {
|
|
31
|
-
ADD_TO_CART_EVENT: 'addToCart',
|
|
32
|
-
|
|
33
|
-
products: [],
|
|
34
|
-
sliders: [],
|
|
35
|
-
loadingButton: null,
|
|
36
|
-
tracking: createBloomreachWidgetTracking(),
|
|
37
|
-
|
|
38
|
-
el: {
|
|
39
|
-
cta: '.why-not-add-card__cta',
|
|
40
|
-
next: '[data-why-not-add-next]',
|
|
41
|
-
pagination: '[data-why-not-add-pagination]',
|
|
42
|
-
productCard: '.why-not-add-card',
|
|
43
|
-
productCodeAttr: 'data-product-code',
|
|
44
|
-
productLink: '.why-not-add-card__title',
|
|
45
|
-
prev: '[data-why-not-add-prev]',
|
|
46
|
-
root: '[data-why-not-add]',
|
|
47
|
-
slider: '[data-why-not-add-slider]',
|
|
48
|
-
widgetContainer: '[data-why-not-add-widget]',
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
normalizeProducts(payloadData) {
|
|
52
|
-
return Wick.BloomreachWidget.normalizePayload(payloadData)
|
|
53
|
-
.map(function (item) {
|
|
54
|
-
return item.baseProduct || item;
|
|
55
|
-
})
|
|
56
|
-
.slice(0, 5);
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
renderWidget($container, payloadData) {
|
|
60
|
-
const products = WhyNotAddWidget.normalizeProducts(payloadData);
|
|
61
|
-
|
|
62
|
-
if (!products.length) {
|
|
63
|
-
$container.empty().hide();
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
WhyNotAddWidget.products = products;
|
|
68
|
-
|
|
69
|
-
$container
|
|
70
|
-
.html(
|
|
71
|
-
whyNotAddTemplate({
|
|
72
|
-
products: products.map(Wick.BloomreachWidget.getProductRenderData),
|
|
73
|
-
isSingleProduct: products.length === 1,
|
|
74
|
-
})
|
|
75
|
-
)
|
|
76
|
-
.show();
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
destroySliders() {
|
|
80
|
-
WhyNotAddWidget.sliders.forEach(function (slider) {
|
|
81
|
-
if (slider && slider.destroy) {
|
|
82
|
-
slider.destroy(true, true);
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
WhyNotAddWidget.sliders = [];
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
initSliders($root) {
|
|
90
|
-
WhyNotAddWidget.destroySliders();
|
|
91
|
-
|
|
92
|
-
$root.find(WhyNotAddWidget.el.slider).each(function () {
|
|
93
|
-
const $slider = $(this);
|
|
94
|
-
const $widget = $slider.closest(WhyNotAddWidget.el.root);
|
|
95
|
-
const slidesCount = $slider.find('.swiper-slide').length;
|
|
96
|
-
|
|
97
|
-
if (slidesCount <= 1) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const slider = new Swiper(this, {
|
|
102
|
-
roundLengths: true,
|
|
103
|
-
slidesPerView: 1,
|
|
104
|
-
spaceBetween: 12,
|
|
105
|
-
watchOverflow: true,
|
|
106
|
-
navigation: {
|
|
107
|
-
nextEl: $widget.find(WhyNotAddWidget.el.next)[0],
|
|
108
|
-
prevEl: $widget.find(WhyNotAddWidget.el.prev)[0],
|
|
109
|
-
disabledClass: 'why-not-add__arrow--disabled',
|
|
110
|
-
},
|
|
111
|
-
pagination: {
|
|
112
|
-
el: $widget.find(WhyNotAddWidget.el.pagination)[0],
|
|
113
|
-
clickable: true,
|
|
114
|
-
renderBullet(index, className) {
|
|
115
|
-
return `<button class="${className}" type="button" aria-label="Go to slide ${
|
|
116
|
-
index + 1
|
|
117
|
-
}"></button>`;
|
|
118
|
-
},
|
|
119
|
-
bulletClass: 'why-not-add__pagination-item',
|
|
120
|
-
bulletActiveClass: 'why-not-add__pagination-item--active',
|
|
121
|
-
},
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
WhyNotAddWidget.sliders.push(slider);
|
|
125
|
-
});
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
bindProductTracking($root) {
|
|
129
|
-
$root.off('click.bloomreachWidgetTracking', WhyNotAddWidget.el.productLink);
|
|
130
|
-
$root.on('click.bloomreachWidgetTracking', WhyNotAddWidget.el.productLink, function () {
|
|
131
|
-
const productCode = $(this)
|
|
132
|
-
.closest(WhyNotAddWidget.el.productCard)
|
|
133
|
-
.attr(WhyNotAddWidget.el.productCodeAttr);
|
|
134
|
-
|
|
135
|
-
WhyNotAddWidget.tracking.trackClick(productCode);
|
|
136
|
-
});
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
bindAddToCart($root) {
|
|
140
|
-
$root.off('click.whyNotAdd', WhyNotAddWidget.el.cta);
|
|
141
|
-
$root.on('click.whyNotAdd', WhyNotAddWidget.el.cta, function (event) {
|
|
142
|
-
event.preventDefault();
|
|
143
|
-
|
|
144
|
-
const $button = $(this);
|
|
145
|
-
const $card = $button.closest(WhyNotAddWidget.el.productCard);
|
|
146
|
-
const productCode = $card.attr(WhyNotAddWidget.el.productCodeAttr);
|
|
147
|
-
|
|
148
|
-
if (!productCode || WhyNotAddWidget.loadingButton.isLoading($button)) {
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
const payload = {
|
|
153
|
-
productCode,
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
WhyNotAddWidget.tracking.trackAddToCart([
|
|
157
|
-
{
|
|
158
|
-
item_id: productCode,
|
|
159
|
-
sku: productCode,
|
|
160
|
-
},
|
|
161
|
-
]);
|
|
162
|
-
|
|
163
|
-
WhyNotAddWidget.loadingButton.start($button);
|
|
164
|
-
|
|
165
|
-
Wick.BloomreachWidget.dispatchWidgetEvent(WhyNotAddWidget.ADD_TO_CART_EVENT, payload)
|
|
166
|
-
.then(function () {
|
|
167
|
-
WhyNotAddWidget.loadingButton.stop($button);
|
|
168
|
-
Wick.MiniBasketSliderFE.isMiniBasketLoaded = false;
|
|
169
|
-
})
|
|
170
|
-
.catch(function () {
|
|
171
|
-
WhyNotAddWidget.loadingButton.stop($button);
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
bindVatToggle() {
|
|
177
|
-
if (Wick.BloomreachWidget.bindVatToggle) {
|
|
178
|
-
Wick.BloomreachWidget.bindVatToggle('whyNotAddVatToggle');
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
initRenderedWidget($container) {
|
|
183
|
-
const $root = $container.find(WhyNotAddWidget.el.root);
|
|
184
|
-
|
|
185
|
-
if (!$root.length) {
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
if (!WhyNotAddWidget.loadingButton) {
|
|
190
|
-
WhyNotAddWidget.loadingButton = createLoadingButton({
|
|
191
|
-
text: Wick.BloomreachWidget.el.loadingButtonText,
|
|
192
|
-
loader: Wick.BloomreachWidget.el.loadingButtonLoader,
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
Wick.BloomreachWidget.removeBlankTargets($root);
|
|
197
|
-
|
|
198
|
-
Wick.BloomreachWidget.drawRating($root);
|
|
199
|
-
WhyNotAddWidget.initSliders($root);
|
|
200
|
-
WhyNotAddWidget.bindAddToCart($root);
|
|
201
|
-
WhyNotAddWidget.bindProductTracking($root);
|
|
202
|
-
WhyNotAddWidget.bindVatToggle();
|
|
203
|
-
Wick.BloomreachWidget.reapplyVatDisplay();
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
init(payloadData) {
|
|
207
|
-
const $containers = $(WhyNotAddWidget.el.widgetContainer);
|
|
208
|
-
|
|
209
|
-
WhyNotAddWidget.tracking.setPayload(payloadData);
|
|
210
|
-
|
|
211
|
-
if (!payloadData) {
|
|
212
|
-
$containers.empty().hide();
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
$containers.each(function () {
|
|
217
|
-
const $container = $(this);
|
|
218
|
-
|
|
219
|
-
WhyNotAddWidget.renderWidget($container, payloadData);
|
|
220
|
-
WhyNotAddWidget.initRenderedWidget($container);
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
WhyNotAddWidget.tracking.observeView([
|
|
224
|
-
$containers.find(WhyNotAddWidget.el.productLink).get(0),
|
|
225
|
-
$containers.find(WhyNotAddWidget.el.cta).get(0),
|
|
226
|
-
]);
|
|
227
|
-
},
|
|
228
|
-
};
|
|
1
|
+
import { createBloomreachRecommendationCarouselWidget } from './bloomreach-recommendation-carousel-widget';
|
|
2
|
+
|
|
3
|
+
const WhyNotAddWidget = createBloomreachRecommendationCarouselWidget({
|
|
4
|
+
namespace: 'whyNotAdd',
|
|
5
|
+
title: 'Why not add',
|
|
6
|
+
widgetContainer: '[data-why-not-add-widget]',
|
|
7
|
+
disableAfterSuccess: false,
|
|
8
|
+
disableAfterFailure: false,
|
|
9
|
+
hideBadge: true,
|
|
10
|
+
});
|
|
229
11
|
|
|
230
12
|
export default WhyNotAddWidget;
|