wickes-css2 2.105.0-develop.3 → 2.105.0-develop.5
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/Readme.md +1 -2
- package/build/css/category-main.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/page_product_search.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/tradePro-rewards.css +1 -1
- package/build/css/pdp-main-before-combine.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/basket.min.js +2 -2
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +2 -2
- package/build/js/emulation.min.js +12125 -11596
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/kitchen/kitchen-plp.min.js +1 -9
- package/build/js/merged-checkout.min.js +2 -2
- package/build/js/mini-basket-slider.min.js +1 -1
- package/build/js/my-account.min.js +1 -1
- package/build/js/page/basket/basket-update-cart-action.js +59 -56
- package/build/js/page/basket/basket-update-cart.js +27 -27
- package/build/js/page/basket/basket-utils.js +40 -33
- package/build/js/page/basket/mini-basket-total.js +70 -66
- package/build/js/page/basket/quantity-change-handler.js +73 -55
- package/build/js/page/basket/update-quantity-operation.js +39 -30
- package/build/js/page/basket/update-quantity.js +62 -62
- package/build/js/page/basket-v2.js +362 -229
- package/build/js/page/billie-business-type.js +27 -27
- package/build/js/page/checkout-payment-details.js +301 -299
- package/build/js/page/components/discounts.js +39 -36
- package/build/js/page/components/mini-basket-slider.js +604 -545
- package/build/js/page/filters/desktop-nav.js +64 -0
- package/build/js/page/filters/mobile-nav.js +93 -0
- package/build/js/page/filters/plp-filters-chips.js +92 -0
- package/build/js/page/filters/plp-filters-mobile.js +150 -0
- package/build/js/page/filters/plp-filters-panel.js +123 -0
- package/build/js/page/filters/plp-filters-utils.js +66 -0
- package/build/js/page/filters/plp-filters.js +256 -0
- package/build/js/page/filters/sort-by.js +172 -0
- package/build/js/page/klarna-modal-scroll-disable.js +4 -4
- package/build/js/page/online-exclusive.js +28 -30
- package/build/js/page/search-filter.js +62 -0
- package/build/js/page/share-project-list.js +57 -0
- package/build/js/page/tradePro-rewards.js +69 -39
- package/build/js/page/utils/copy-to-clipboard.js +79 -47
- package/build/js/page/utils/helpers.js +14 -9
- package/build/js/page/utils/show-more-less.js +273 -0
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +143 -85
- package/build/js/tradePro-rewards.min.js +1 -1
- package/package.json +3 -3
- package/src/components/.DS_Store +0 -0
- package/src/components/accordion.hbs +2 -2
- package/src/components/kitchen/dropdown.hbs +6 -3
- package/src/components/kitchen/filter-modal-content-kitchen.hbs +10 -0
- package/src/components/kitchen/filter-modal.hbs +10 -13
- package/src/components/kitchen/plp-filters.hbs +3 -1
- package/src/components/kitchen/sort-by.hbs +1 -1
- package/src/components/search-filter-modal-content.hbs +102 -0
- package/src/components/search-filter.hbs +121 -112
- package/src/data/data_plp_load-more.json +1 -1
- package/src/elements/btn.hbs +7 -0
- package/src/js/components/general/accordion.js +38 -29
- package/src/js/components/general/cart-slider.js +19 -16
- package/src/js/components/general/create-popup-slider.js +168 -173
- package/src/js/emulation/big-wins.js +1081 -904
- package/src/js/emulation/billie-modal.js +23 -19
- package/src/js/emulation/checkout-payment-details.js +47 -38
- package/src/js/emulation/custom-slider-emulation.js +17 -13
- package/src/js/emulation/filters-emulation.js +164 -0
- package/src/js/emulation/forms.js +360 -323
- package/src/js/emulation/mini-basket-data.js +1051 -923
- package/src/js/emulation/paymentLoader.js +17 -17
- package/src/js/emulation/pdf-file-loader.js +89 -91
- package/src/js/emulation/popover-mini-basket.js +246 -239
- package/src/js/emulation/product-counter.js +50 -0
- package/src/js/emulation/project-list-pdp.js +320 -316
- package/src/js/emulation/repayment-toggle.js +23 -24
- package/src/js/emulation/reset-filter-desktop.js +5 -0
- package/src/js/emulation/selectable.js +22 -18
- package/src/js/emulation/wismo-details.js +23 -31
- package/src/js/page/basket/basket-update-cart-action.js +59 -56
- package/src/js/page/basket/basket-update-cart.js +27 -27
- package/src/js/page/basket/basket-utils.js +40 -33
- package/src/js/page/basket/mini-basket-total.js +70 -66
- package/src/js/page/basket/quantity-change-handler.js +73 -55
- package/src/js/page/basket/update-quantity-operation.js +39 -30
- package/src/js/page/basket/update-quantity.js +62 -62
- package/src/js/page/basket-v2.js +362 -229
- package/src/js/page/billie-business-type.js +27 -27
- package/src/js/page/checkout-payment-details.js +301 -299
- package/src/js/page/components/discounts.js +39 -36
- package/src/js/page/components/mini-basket-slider.js +604 -545
- package/src/js/page/filters/desktop-nav.js +64 -0
- package/src/js/page/filters/mobile-nav.js +93 -0
- package/src/js/page/filters/plp-filters-chips.js +92 -0
- package/src/js/page/filters/plp-filters-mobile.js +150 -0
- package/src/js/page/filters/plp-filters-panel.js +123 -0
- package/src/js/page/filters/plp-filters-utils.js +66 -0
- package/src/js/page/filters/plp-filters.js +256 -0
- package/src/js/page/filters/sort-by.js +172 -0
- package/src/js/page/klarna-modal-scroll-disable.js +4 -4
- package/src/js/page/online-exclusive.js +28 -30
- package/src/js/page/search-filter.js +62 -0
- package/src/js/page/share-project-list.js +57 -0
- package/src/js/page/tradePro-rewards.js +69 -39
- package/src/js/page/utils/copy-to-clipboard.js +79 -47
- package/src/js/page/utils/helpers.js +14 -9
- package/src/js/page/utils/show-more-less.js +273 -0
- package/src/page_empty-shared-project-list-bicester-hub.html +4 -0
- package/src/page_empty-shopping-list_guest.html +1 -0
- package/src/page_kitchen-plp.html +2 -2
- package/src/page_my-shopping-list-add-notes.html +1 -0
- package/src/page_my-shopping-list-energy.html +1 -0
- package/src/page_my-shopping-list-hide-download.html +2 -1
- package/src/page_my-shopping-list-pdf.html +2 -0
- package/src/page_my-shopping-list-saved-ref.html +1 -0
- package/src/page_my-shopping-list-wisdom-oos-registered.html +1 -0
- package/src/page_my-shopping-list-wisdom-oos.html +1 -0
- package/src/page_my-shopping-list-wisdom-partial-registered.html +1 -0
- package/src/page_my-shopping-list-wisdom-registered.html +1 -0
- package/src/page_my-shopping-list-wisdom.html +1 -0
- package/src/page_my-shopping-list.html +1 -0
- package/src/page_my-shopping-list_not-register.html +3 -0
- package/src/page_plp-with-paint.html +2 -7
- package/src/page_plp.html +2 -7
- package/src/page_plp_v2-energy-efficiency.html +1 -6
- package/src/page_plp_v2-favourite-products.html +6 -7
- package/src/page_plp_v2-vat.html +2 -7
- package/src/page_plp_v2.html +22 -9
- package/src/page_product_search-vat.html +2 -7
- package/src/page_product_search.html +2 -7
- package/src/page_project-list-generate-project-list-ID.html +3 -0
- package/src/page_project-list-vat.html +4 -0
- package/src/page_project-list-with-new-share-popup-android.html +3 -1
- package/src/page_project-list-with-new-share-popup-ios.html +3 -1
- package/src/page_project-list-with-new-share-popup.html +2 -1
- package/src/page_search-results.html +2 -7
- package/src/page_shared-project-list-bicester-hub.html +3 -1
- package/src/scss/common/_common.scss +5 -4
- package/src/scss/components/_accordion.scss +1 -3
- package/src/scss/components/_custom-slider.scss +15 -14
- package/src/scss/components/_date-selection-add-new-styles.scss +6 -7
- package/src/scss/components/_date-selection.scss +1 -1
- package/src/scss/components/{kitchen/_filter-modal.scss → _filter-modal.scss} +55 -4
- package/src/scss/components/{kitchen/_plp-filters.scss → _plp-filters.scss} +31 -13
- package/src/scss/components/_popover-mini-basket.scss +3 -3
- package/src/scss/components/_search-filter.scss +95 -15
- package/src/scss/components/_sort-by.scss +190 -0
- package/src/scss/components/checkout-chip.scss +2 -2
- package/src/scss/components/checkout-payment-repayment-terms.scss +1 -1
- package/src/scss/globals/_global-components.scss +3 -0
- package/src/scss/helpers/_colors-semantic.scss +68 -68
- package/src/scss/helpers/_variables.scss +242 -196
- package/src/scss/kitchen-plp-main.scss +0 -3
- package/src/scss/main.scss +65 -65
- package/src/scss/pages/page_product-details-v2.scss +1 -4
- package/src/scss/pages/page_product_search.scss +9 -1
- package/src/scss/pages/page_products-list-combined.scss +28 -24
- package/src/scss/pages/page_products-list.scss +8 -0
- package/src/scss/pages/tradePro-rewards.scss +3 -4
- package/build/js/page/accordion.js +0 -35
- package/build/js/page/kitchen/plp-filters-chips.js +0 -90
- package/build/js/page/kitchen/plp-filters-mobile.js +0 -72
- package/build/js/page/kitchen/plp-filters-panel.js +0 -119
- package/build/js/page/kitchen/plp-filters-utils.js +0 -65
- package/build/js/page/kitchen/plp-filters.js +0 -205
- package/build/js/page/kitchen/sort-by.js +0 -157
- package/src/js/components/general/search-filter.js +0 -21
- package/src/js/components/share-project-list.js +0 -53
- package/src/js/page/accordion.js +0 -35
- package/src/js/page/kitchen/plp-filters-chips.js +0 -90
- package/src/js/page/kitchen/plp-filters-mobile.js +0 -72
- package/src/js/page/kitchen/plp-filters-panel.js +0 -119
- package/src/js/page/kitchen/plp-filters-utils.js +0 -65
- package/src/js/page/kitchen/plp-filters.js +0 -205
- package/src/js/page/kitchen/sort-by.js +0 -157
|
@@ -1,337 +1,341 @@
|
|
|
1
|
+
var Wick = (window.Wick = window.Wick || {});
|
|
2
|
+
|
|
1
3
|
function returnErrorCreatePayload() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
return {
|
|
5
|
+
message: 'Min. characters 5, max. characters 59, only use characters A-Z and 0-9',
|
|
6
|
+
};
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
function returnErrorSelectPayload() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
return {
|
|
11
|
+
message: 'Something went wrong',
|
|
12
|
+
};
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
function returnSuccessSelectPayload() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
16
|
+
return {
|
|
17
|
+
currentProjectList: {
|
|
18
|
+
name: 'Loremipsumdolorsitamet,consecteturadipiscingelit,seddoeiusmodtemporincididuntutlaboreetdoloremagnaaliqua.Utenimadminimveniam',
|
|
19
|
+
id: 123,
|
|
20
|
+
link: '/page_my-shopping-list.html',
|
|
21
|
+
isFull: true,
|
|
22
|
+
products: [
|
|
23
|
+
{
|
|
24
|
+
name: 'BoschPSB1800LI218VLiIonCordlessCombiDrillExamplewithlongtitleintworaws',
|
|
25
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_221100_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
26
|
+
itemTotal: '£2.00',
|
|
27
|
+
itemTotalExcVat: '£1.99',
|
|
28
|
+
quantity: 1,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
32
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_224661_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
33
|
+
itemTotal: '£1.00',
|
|
34
|
+
itemTotalExcVat: '£1.99',
|
|
35
|
+
quantity: 2,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
39
|
+
image: '//media.wickes.co.uk/is/image/wickes/M3549_144650_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
40
|
+
itemTotal: '£3.00',
|
|
41
|
+
itemTotalExcVat: '£1.99',
|
|
42
|
+
quantity: 3,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
46
|
+
image: '//media.wickes.co.uk/is/image/wickes/R1478_131881_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
47
|
+
itemTotal: '£3.00',
|
|
48
|
+
itemTotalExcVat: '£1.99',
|
|
49
|
+
quantity: 3,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
53
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_154100_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
54
|
+
itemTotal: '£3.00',
|
|
55
|
+
itemTotalExcVat: '£1.99',
|
|
56
|
+
quantity: 3,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
60
|
+
image: '//media.wickes.co.uk/is/image/wickes/R1478_131882_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
61
|
+
itemTotal: '£3.00',
|
|
62
|
+
itemTotalExcVat: '£1.99',
|
|
63
|
+
quantity: 3,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
67
|
+
image: '//media.wickes.co.uk/is/image/wickes/T3274_103040_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
68
|
+
itemTotal: '£3.00',
|
|
69
|
+
itemTotalExcVat: '£1.99',
|
|
70
|
+
quantity: 3,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
74
|
+
image: '//media.wickes.co.uk/is/image/wickes/T3274_103015_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
75
|
+
itemTotal: '£3.00',
|
|
76
|
+
itemTotalExcVat: '£1.99',
|
|
77
|
+
quantity: 3,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
81
|
+
image: '//media.wickes.co.uk/is/image/wickes/T3274_103043_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
82
|
+
itemTotal: '£3.00',
|
|
83
|
+
itemTotalExcVat: '£1.99',
|
|
84
|
+
quantity: 3,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
88
|
+
image: '//media.wickes.co.uk/is/image/wickes/O0032_109450_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
89
|
+
itemTotal: '£3.00',
|
|
90
|
+
itemTotalExcVat: '£1.99',
|
|
91
|
+
quantity: 3,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
95
|
+
image: '//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
96
|
+
itemTotal: '£3.00',
|
|
97
|
+
itemTotalExcVat: '£1.99',
|
|
98
|
+
quantity: 3,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
102
|
+
image: '//media.wickes.co.uk/is/image/wickes/GPID_5000030119_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
103
|
+
itemTotal: '£3.00',
|
|
104
|
+
itemTotalExcVat: '£1.99',
|
|
105
|
+
quantity: 3,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
109
|
+
image: '//media.wickes.co.uk/is/image/wickes/X0041_165857_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
110
|
+
itemTotal: '£3.00',
|
|
111
|
+
itemTotalExcVat: '£1.99',
|
|
112
|
+
quantity: 3,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
116
|
+
image: '//media.wickes.co.uk/is/image/wickes/R0486_180900_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
117
|
+
itemTotal: '£3.00',
|
|
118
|
+
itemTotalExcVat: '£1.99',
|
|
119
|
+
quantity: 3,
|
|
120
|
+
},
|
|
121
|
+
],
|
|
76
122
|
},
|
|
77
|
-
|
|
78
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
79
|
-
image: '//media.wickes.co.uk/is/image/wickes/T3274_103043_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
80
|
-
itemTotal: '£3.00',
|
|
81
|
-
itemTotalExcVat: '£1.99',
|
|
82
|
-
quantity: 3,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
86
|
-
image: '//media.wickes.co.uk/is/image/wickes/O0032_109450_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
87
|
-
itemTotal: '£3.00',
|
|
88
|
-
itemTotalExcVat: '£1.99',
|
|
89
|
-
quantity: 3,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
93
|
-
image: '//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
94
|
-
itemTotal: '£3.00',
|
|
95
|
-
itemTotalExcVat: '£1.99',
|
|
96
|
-
quantity: 3,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
100
|
-
image: '//media.wickes.co.uk/is/image/wickes/GPID_5000030119_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
101
|
-
itemTotal: '£3.00',
|
|
102
|
-
itemTotalExcVat: '£1.99',
|
|
103
|
-
quantity: 3,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
107
|
-
image: '//media.wickes.co.uk/is/image/wickes/X0041_165857_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
108
|
-
itemTotal: '£3.00',
|
|
109
|
-
itemTotalExcVat: '£1.99',
|
|
110
|
-
quantity: 3,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
114
|
-
image: '//media.wickes.co.uk/is/image/wickes/R0486_180900_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
115
|
-
itemTotal: '£3.00',
|
|
116
|
-
itemTotalExcVat: '£1.99',
|
|
117
|
-
quantity: 3,
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
},
|
|
121
|
-
}
|
|
123
|
+
};
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
function returnSuccessCreatePayload() {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
127
|
+
return {
|
|
128
|
+
currentProjectList: {
|
|
129
|
+
name: 'Loremipsumdolorsitamet,consecteturadipiscingelit,seddoeiusmodtemporincididuntutlaboreetdoloremagnaaliqua.Utenimadminimveniam',
|
|
130
|
+
id: 123,
|
|
131
|
+
link: '/page_my-shopping-list.html',
|
|
132
|
+
isFull: true,
|
|
133
|
+
products: [
|
|
134
|
+
{
|
|
135
|
+
name: 'BoschPSB1800LI218VLiIonCordlessCombiDrillExamplewithlongtitleintworaws',
|
|
136
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_221100_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
137
|
+
itemTotal: '£2.00',
|
|
138
|
+
itemTotalExcVat: '£1.99',
|
|
139
|
+
quantity: 1,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
143
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_224661_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
144
|
+
itemTotal: '£1.00',
|
|
145
|
+
itemTotalExcVat: '£1.99',
|
|
146
|
+
quantity: 2,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
150
|
+
image: '//media.wickes.co.uk/is/image/wickes/M3549_144650_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
151
|
+
itemTotal: '£3.00',
|
|
152
|
+
itemTotalExcVat: '£1.99',
|
|
153
|
+
quantity: 3,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
157
|
+
image: '//media.wickes.co.uk/is/image/wickes/R1478_131881_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
158
|
+
itemTotal: '£3.00',
|
|
159
|
+
itemTotalExcVat: '£1.99',
|
|
160
|
+
quantity: 3,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
164
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_154100_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
165
|
+
itemTotal: '£3.00',
|
|
166
|
+
itemTotalExcVat: '£1.99',
|
|
167
|
+
quantity: 3,
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
171
|
+
image: '//media.wickes.co.uk/is/image/wickes/R1478_131882_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
172
|
+
itemTotal: '£3.00',
|
|
173
|
+
itemTotalExcVat: '£1.99',
|
|
174
|
+
quantity: 3,
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
178
|
+
image: '//media.wickes.co.uk/is/image/wickes/T3274_103040_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
179
|
+
itemTotal: '£3.00',
|
|
180
|
+
itemTotalExcVat: '£1.99',
|
|
181
|
+
quantity: 3,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
185
|
+
image: '//media.wickes.co.uk/is/image/wickes/T3274_103015_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
186
|
+
itemTotal: '£3.00',
|
|
187
|
+
itemTotalExcVat: '£1.99',
|
|
188
|
+
quantity: 3,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
192
|
+
image: '//media.wickes.co.uk/is/image/wickes/T3274_103043_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
193
|
+
itemTotal: '£3.00',
|
|
194
|
+
itemTotalExcVat: '£1.99',
|
|
195
|
+
quantity: 3,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
199
|
+
image: '//media.wickes.co.uk/is/image/wickes/O0032_109450_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
200
|
+
itemTotal: '£3.00',
|
|
201
|
+
itemTotalExcVat: '£1.99',
|
|
202
|
+
quantity: 3,
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
206
|
+
image: '//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
207
|
+
itemTotal: '£3.00',
|
|
208
|
+
itemTotalExcVat: '£1.99',
|
|
209
|
+
quantity: 3,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
213
|
+
image: '//media.wickes.co.uk/is/image/wickes/GPID_5000030119_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
214
|
+
itemTotal: '£3.00',
|
|
215
|
+
itemTotalExcVat: '£1.99',
|
|
216
|
+
quantity: 3,
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
220
|
+
image: '//media.wickes.co.uk/is/image/wickes/X0041_165857_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
221
|
+
itemTotal: '£3.00',
|
|
222
|
+
itemTotalExcVat: '£1.99',
|
|
223
|
+
quantity: 3,
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
227
|
+
image: '//media.wickes.co.uk/is/image/wickes/R0486_180900_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
228
|
+
itemTotal: '£3.00',
|
|
229
|
+
itemTotalExcVat: '£1.99',
|
|
230
|
+
quantity: 3,
|
|
231
|
+
},
|
|
232
|
+
],
|
|
145
233
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
itemTotal: '£3.00',
|
|
150
|
-
itemTotalExcVat: '£1.99',
|
|
151
|
-
quantity: 3,
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
155
|
-
image: '//media.wickes.co.uk/is/image/wickes/R1478_131881_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
156
|
-
itemTotal: '£3.00',
|
|
157
|
-
itemTotalExcVat: '£1.99',
|
|
158
|
-
quantity: 3,
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
162
|
-
image: '//media.wickes.co.uk/is/image/wickes/B3182_154100_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
163
|
-
itemTotal: '£3.00',
|
|
164
|
-
itemTotalExcVat: '£1.99',
|
|
165
|
-
quantity: 3,
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
169
|
-
image: '//media.wickes.co.uk/is/image/wickes/R1478_131882_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
170
|
-
itemTotal: '£3.00',
|
|
171
|
-
itemTotalExcVat: '£1.99',
|
|
172
|
-
quantity: 3,
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
176
|
-
image: '//media.wickes.co.uk/is/image/wickes/T3274_103040_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
177
|
-
itemTotal: '£3.00',
|
|
178
|
-
itemTotalExcVat: '£1.99',
|
|
179
|
-
quantity: 3,
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
183
|
-
image: '//media.wickes.co.uk/is/image/wickes/T3274_103015_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
184
|
-
itemTotal: '£3.00',
|
|
185
|
-
itemTotalExcVat: '£1.99',
|
|
186
|
-
quantity: 3,
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
190
|
-
image: '//media.wickes.co.uk/is/image/wickes/T3274_103043_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
191
|
-
itemTotal: '£3.00',
|
|
192
|
-
itemTotalExcVat: '£1.99',
|
|
193
|
-
quantity: 3,
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
197
|
-
image: '//media.wickes.co.uk/is/image/wickes/O0032_109450_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
198
|
-
itemTotal: '£3.00',
|
|
199
|
-
itemTotalExcVat: '£1.99',
|
|
200
|
-
quantity: 3,
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
204
|
-
image: '//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
205
|
-
itemTotal: '£3.00',
|
|
206
|
-
itemTotalExcVat: '£1.99',
|
|
207
|
-
quantity: 3,
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
211
|
-
image: '//media.wickes.co.uk/is/image/wickes/GPID_5000030119_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
212
|
-
itemTotal: '£3.00',
|
|
213
|
-
itemTotalExcVat: '£1.99',
|
|
214
|
-
quantity: 3,
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
218
|
-
image: '//media.wickes.co.uk/is/image/wickes/X0041_165857_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
219
|
-
itemTotal: '£3.00',
|
|
220
|
-
itemTotalExcVat: '£1.99',
|
|
221
|
-
quantity: 3,
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
225
|
-
image: '//media.wickes.co.uk/is/image/wickes/R0486_180900_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
226
|
-
itemTotal: '£3.00',
|
|
227
|
-
itemTotalExcVat: '£1.99',
|
|
228
|
-
quantity: 3,
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
},
|
|
232
|
-
projectListLength: 10,
|
|
233
|
-
maxAmountOfProjects: 2,
|
|
234
|
-
}
|
|
234
|
+
projectListLength: 10,
|
|
235
|
+
maxAmountOfProjects: 2,
|
|
236
|
+
};
|
|
235
237
|
}
|
|
236
238
|
|
|
237
239
|
function returnSuccessGetPayload(currentPage) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
240
|
+
return {
|
|
241
|
+
currentPage: currentPage,
|
|
242
|
+
pagesLength: 101,
|
|
243
|
+
projectLists: [
|
|
244
|
+
{
|
|
245
|
+
name: `Bathroom ${currentPage}`,
|
|
246
|
+
id: 'bathroom',
|
|
247
|
+
isFull: true,
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: `Dining room ${currentPage}`,
|
|
251
|
+
id: 'dining-room',
|
|
252
|
+
isFull: false,
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
name: `Driveway ${currentPage}`,
|
|
256
|
+
id: 'driveway',
|
|
257
|
+
isFull: false,
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: `Floors ${currentPage}`,
|
|
261
|
+
id: 'floors',
|
|
262
|
+
isFull: false,
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: `Garage ${currentPage}`,
|
|
266
|
+
id: 'garage',
|
|
267
|
+
isFull: true,
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: `Garden ${currentPage}`,
|
|
271
|
+
id: 'garden',
|
|
272
|
+
isFull: false,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: `Garden shed ${currentPage}`,
|
|
276
|
+
id: 'garden-shed',
|
|
277
|
+
isFull: false,
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: `Gym ${currentPage}`,
|
|
281
|
+
id: 'gym',
|
|
282
|
+
isFull: false,
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: `Kids room ${currentPage}`,
|
|
286
|
+
id: 'kids-room',
|
|
287
|
+
isFull: false,
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: `Kitchen update ${currentPage}`,
|
|
291
|
+
id: 'kitchen-update',
|
|
292
|
+
isFull: false,
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
name: `Living room ${currentPage}`,
|
|
296
|
+
id: 'living-room',
|
|
297
|
+
isFull: false,
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: `Paint ${currentPage}`,
|
|
301
|
+
id: 'paint',
|
|
302
|
+
isFull: true,
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
};
|
|
303
306
|
}
|
|
304
307
|
|
|
305
308
|
$(document).ready(function () {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
+
function init() {
|
|
310
|
+
if (!$('.shop-list-modal').length || !Wick.SavingShoppingList) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
$(Wick.SavingShoppingList?.el.modalSavingToShopList).on(
|
|
314
|
+
'show.bs.modal',
|
|
315
|
+
Wick.SavingShoppingList.init
|
|
316
|
+
);
|
|
317
|
+
$(window).on(Wick.SavingShoppingList.CREATE_PROJECT_LIST_EVENT, function (e) {
|
|
318
|
+
setTimeout(() => {
|
|
319
|
+
e.detail.payload.projectListName.length >= 5
|
|
320
|
+
? e.detail.resolve(returnSuccessCreatePayload())
|
|
321
|
+
: e.detail.reject(returnErrorCreatePayload());
|
|
322
|
+
}, 1000);
|
|
323
|
+
});
|
|
324
|
+
$(window).on(Wick.SavingShoppingList.SELECT_PROJECT_LIST_EVENT, function (e) {
|
|
325
|
+
setTimeout(() => {
|
|
326
|
+
e.detail.payload.projectListId === 'dining-room'
|
|
327
|
+
? e.detail.reject(returnErrorSelectPayload())
|
|
328
|
+
: e.detail.resolve(returnSuccessSelectPayload());
|
|
329
|
+
}, 1000);
|
|
330
|
+
});
|
|
331
|
+
$(window).on(Wick.SavingShoppingList.GET_PROJECT_LISTS_EVENT, function (e) {
|
|
332
|
+
setTimeout(() => {
|
|
333
|
+
e.detail.payload.page === 4
|
|
334
|
+
? e.detail.reject(returnErrorSelectPayload())
|
|
335
|
+
: e.detail.resolve(returnSuccessGetPayload(e.detail.payload.page));
|
|
336
|
+
}, 1000);
|
|
337
|
+
});
|
|
309
338
|
}
|
|
310
339
|
|
|
311
|
-
|
|
312
|
-
$(window).on(Wick.SavingShoppingList.CREATE_PROJECT_LIST_EVENT, function (e) {
|
|
313
|
-
setTimeout(() => {
|
|
314
|
-
e.detail.payload.projectListName.length >= 5
|
|
315
|
-
? e.detail.resolve(returnSuccessCreatePayload())
|
|
316
|
-
: e.detail.reject(returnErrorCreatePayload());
|
|
317
|
-
}, 1000);
|
|
318
|
-
|
|
319
|
-
});
|
|
320
|
-
$(window).on(Wick.SavingShoppingList.SELECT_PROJECT_LIST_EVENT, function (e) {
|
|
321
|
-
setTimeout(() => {
|
|
322
|
-
e.detail.payload.projectListId === "dining-room"
|
|
323
|
-
? e.detail.reject(returnErrorSelectPayload())
|
|
324
|
-
: e.detail.resolve(returnSuccessSelectPayload())
|
|
325
|
-
}, 1000);
|
|
326
|
-
});
|
|
327
|
-
$(window).on(Wick.SavingShoppingList.GET_PROJECT_LISTS_EVENT, function (e) {
|
|
328
|
-
setTimeout(() => {
|
|
329
|
-
e.detail.payload.page === 4
|
|
330
|
-
? e.detail.reject(returnErrorSelectPayload())
|
|
331
|
-
: e.detail.resolve(returnSuccessGetPayload(e.detail.payload.page))
|
|
332
|
-
}, 1000);
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
init();
|
|
340
|
+
init();
|
|
337
341
|
});
|