wickes-css2 2.105.0-develop.7 → 2.105.0-develop.8
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 +2 -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/my-account-v2.css +1 -1
- package/build/css/pages/page_discount.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 +10255 -10784
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/kitchen/kitchen-plp.min.js +9 -1
- 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/accordion.js +35 -0
- package/build/js/page/basket/basket-update-cart-action.js +56 -59
- package/build/js/page/basket/basket-update-cart.js +27 -27
- package/build/js/page/basket/basket-utils.js +33 -40
- package/build/js/page/basket/mini-basket-total.js +66 -70
- package/build/js/page/basket/quantity-change-handler.js +55 -73
- package/build/js/page/basket/update-quantity-operation.js +30 -39
- package/build/js/page/basket/update-quantity.js +62 -62
- package/build/js/page/basket-v2.js +229 -362
- package/build/js/page/billie-business-type.js +27 -27
- package/build/js/page/checkout-payment-details.js +299 -301
- package/build/js/page/components/discounts.js +36 -39
- package/build/js/page/components/mini-basket-slider.js +545 -604
- package/build/js/page/kitchen/plp-filters-chips.js +90 -0
- package/build/js/page/kitchen/plp-filters-mobile.js +72 -0
- package/build/js/page/kitchen/plp-filters-panel.js +119 -0
- package/build/js/page/kitchen/plp-filters-utils.js +65 -0
- package/build/js/page/kitchen/plp-filters.js +205 -0
- package/build/js/page/kitchen/sort-by.js +157 -0
- package/build/js/page/klarna-modal-scroll-disable.js +4 -4
- package/build/js/page/my-account.js +14 -29
- package/build/js/page/online-exclusive.js +30 -28
- package/build/js/page/tradePro-rewards.js +39 -69
- package/build/js/page/utils/copy-to-clipboard.js +47 -79
- package/build/js/page/utils/helpers.js +9 -14
- 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 +85 -143
- 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 +3 -6
- package/src/components/kitchen/filter-modal.hbs +13 -10
- package/src/components/kitchen/plp-filters.hbs +1 -3
- package/src/components/kitchen/sort-by.hbs +1 -1
- package/src/components/my-account/barcode.hbs +1 -3
- package/src/components/my-account/cards-swap.hbs +10 -0
- package/src/components/my-account/clipboard-code-card.hbs +3 -3
- package/src/components/my-account/discount.hbs +1 -1
- package/src/components/my-account/greetings.hbs +1 -1
- package/src/components/search-filter.hbs +112 -121
- package/src/data/data_plp_load-more.json +1 -1
- package/src/data/my-account/data_my-account.json +9 -0
- package/src/js/components/cards-swap.js +72 -0
- package/src/js/components/general/accordion.js +33 -44
- package/src/js/components/general/cart-slider.js +16 -19
- package/src/js/components/general/create-popup-slider.js +173 -168
- package/src/js/components/general/search-filter.js +21 -0
- package/src/js/components/share-project-list.js +53 -0
- package/src/js/emulation/big-wins.js +904 -1081
- package/src/js/emulation/billie-modal.js +19 -23
- package/src/js/emulation/checkout-payment-details.js +38 -47
- package/src/js/emulation/custom-slider-emulation.js +13 -17
- package/src/js/emulation/forms.js +323 -360
- package/src/js/emulation/mini-basket-data.js +923 -1051
- package/src/js/emulation/paymentLoader.js +17 -17
- package/src/js/emulation/pdf-file-loader.js +91 -89
- package/src/js/emulation/popover-mini-basket.js +239 -246
- package/src/js/emulation/project-list-pdp.js +316 -320
- package/src/js/emulation/repayment-toggle.js +24 -23
- package/src/js/emulation/selectable.js +18 -22
- package/src/js/emulation/wismo-details.js +31 -23
- package/src/js/page/accordion.js +35 -0
- package/src/js/page/basket/basket-update-cart-action.js +56 -59
- package/src/js/page/basket/basket-update-cart.js +27 -27
- package/src/js/page/basket/basket-utils.js +33 -40
- package/src/js/page/basket/mini-basket-total.js +66 -70
- package/src/js/page/basket/quantity-change-handler.js +55 -73
- package/src/js/page/basket/update-quantity-operation.js +30 -39
- package/src/js/page/basket/update-quantity.js +62 -62
- package/src/js/page/basket-v2.js +229 -362
- package/src/js/page/billie-business-type.js +27 -27
- package/src/js/page/checkout-payment-details.js +299 -301
- package/src/js/page/components/discounts.js +36 -39
- package/src/js/page/components/mini-basket-slider.js +545 -604
- package/src/js/page/kitchen/plp-filters-chips.js +90 -0
- package/src/js/page/kitchen/plp-filters-mobile.js +72 -0
- package/src/js/page/kitchen/plp-filters-panel.js +119 -0
- package/src/js/page/kitchen/plp-filters-utils.js +65 -0
- package/src/js/page/kitchen/plp-filters.js +205 -0
- package/src/js/page/kitchen/sort-by.js +157 -0
- package/src/js/page/klarna-modal-scroll-disable.js +4 -4
- package/src/js/page/my-account.js +14 -29
- package/src/js/page/online-exclusive.js +30 -28
- package/src/js/page/tradePro-rewards.js +39 -69
- package/src/js/page/utils/copy-to-clipboard.js +47 -79
- package/src/js/page/utils/helpers.js +9 -14
- package/src/page_empty-shared-project-list-bicester-hub.html +0 -4
- package/src/page_empty-shopping-list_guest.html +0 -1
- package/src/page_kitchen-plp.html +2 -2
- package/src/page_my-account-installer.html +1 -1
- package/src/page_my-account-trade-pro-carousel-double.html +127 -0
- package/src/page_my-account-trade-pro-carousel.html +134 -0
- package/src/page_my-account-trade-pro.html +1 -1
- package/src/page_my-shopping-list-add-notes.html +0 -1
- package/src/page_my-shopping-list-energy.html +0 -1
- package/src/page_my-shopping-list-hide-download.html +1 -2
- package/src/page_my-shopping-list-pdf.html +0 -2
- package/src/page_my-shopping-list-saved-ref.html +0 -1
- package/src/page_my-shopping-list-wisdom-oos-registered.html +0 -1
- package/src/page_my-shopping-list-wisdom-oos.html +0 -1
- package/src/page_my-shopping-list-wisdom-partial-registered.html +0 -1
- package/src/page_my-shopping-list-wisdom-registered.html +0 -1
- package/src/page_my-shopping-list-wisdom.html +0 -1
- package/src/page_my-shopping-list.html +0 -1
- package/src/page_my-shopping-list_not-register.html +0 -3
- package/src/page_plp-with-paint.html +7 -2
- package/src/page_plp.html +7 -2
- package/src/page_plp_v2-energy-efficiency.html +6 -1
- package/src/page_plp_v2-favourite-products.html +7 -6
- package/src/page_plp_v2-vat.html +7 -2
- package/src/page_plp_v2.html +9 -22
- package/src/page_product_search-vat.html +7 -2
- package/src/page_product_search.html +7 -2
- package/src/page_project-list-generate-project-list-ID.html +0 -3
- package/src/page_project-list-vat.html +0 -4
- package/src/page_project-list-with-new-share-popup-android.html +1 -3
- package/src/page_project-list-with-new-share-popup-ios.html +1 -3
- package/src/page_project-list-with-new-share-popup.html +1 -2
- package/src/page_search-results.html +7 -2
- package/src/page_shared-project-list-bicester-hub.html +1 -3
- package/src/page_tradepro-discount-app.html +1 -1
- package/src/page_tradepro-discount-double.html +109 -0
- package/src/page_tradepro-discount.html +36 -2
- package/src/scss/common/_common.scss +4 -5
- package/src/scss/components/_accordion.scss +3 -1
- package/src/scss/components/_custom-slider.scss +14 -15
- package/src/scss/components/_date-selection-add-new-styles.scss +7 -6
- package/src/scss/components/_date-selection.scss +1 -1
- package/src/scss/components/_popover-mini-basket.scss +3 -3
- package/src/scss/components/_search-filter.scss +15 -95
- package/src/scss/components/checkout-chip.scss +2 -2
- package/src/scss/components/checkout-payment-repayment-terms.scss +1 -1
- package/src/scss/components/{_filter-modal.scss → kitchen/_filter-modal.scss} +4 -55
- package/src/scss/components/{_plp-filters.scss → kitchen/_plp-filters.scss} +13 -31
- package/src/scss/components/my-account/_barcode.scss +8 -0
- package/src/scss/components/my-account/_cards-swap.scss +58 -0
- package/src/scss/components/my-account/_clipboard-code.scss +8 -0
- package/src/scss/components/my-account/_discount.scss +10 -0
- package/src/scss/globals/_global-components.scss +0 -3
- package/src/scss/helpers/_colors-semantic.scss +68 -68
- package/src/scss/helpers/_variables.scss +196 -242
- package/src/scss/kitchen-plp-main.scss +3 -0
- package/src/scss/main.scss +65 -65
- package/src/scss/pages/my-account-v2.scss +37 -0
- package/src/scss/pages/page_discount.scss +8 -4
- package/src/scss/pages/page_product-details-v2.scss +4 -1
- package/src/scss/pages/page_product_search.scss +1 -9
- package/src/scss/pages/page_products-list-combined.scss +24 -28
- package/src/scss/pages/page_products-list.scss +0 -8
- package/src/scss/pages/tradePro-rewards.scss +4 -3
- package/src/sitemap.html +3 -0
- package/build/js/page/filters/desktop-nav.js +0 -64
- package/build/js/page/filters/mobile-nav.js +0 -93
- package/build/js/page/filters/plp-filters-chips.js +0 -92
- package/build/js/page/filters/plp-filters-mobile.js +0 -150
- package/build/js/page/filters/plp-filters-panel.js +0 -123
- package/build/js/page/filters/plp-filters-utils.js +0 -66
- package/build/js/page/filters/plp-filters.js +0 -256
- package/build/js/page/filters/sort-by.js +0 -172
- package/build/js/page/search-filter.js +0 -62
- package/build/js/page/share-project-list.js +0 -57
- package/build/js/page/utils/show-more-less.js +0 -273
- package/build/js/plp-filters.min.js +0 -9
- package/build/js/search-filter.min.js +0 -1
- package/src/components/kitchen/filter-modal-content-kitchen.hbs +0 -10
- package/src/components/search-filter-modal-content.hbs +0 -102
- package/src/elements/btn.hbs +0 -7
- package/src/js/emulation/filters-emulation.js +0 -164
- package/src/js/emulation/product-counter.js +0 -50
- package/src/js/emulation/reset-filter-desktop.js +0 -5
- package/src/js/page/filters/desktop-nav.js +0 -64
- package/src/js/page/filters/mobile-nav.js +0 -93
- package/src/js/page/filters/plp-filters-chips.js +0 -92
- package/src/js/page/filters/plp-filters-mobile.js +0 -150
- package/src/js/page/filters/plp-filters-panel.js +0 -123
- package/src/js/page/filters/plp-filters-utils.js +0 -66
- package/src/js/page/filters/plp-filters.js +0 -256
- package/src/js/page/filters/sort-by.js +0 -172
- package/src/js/page/search-filter.js +0 -62
- package/src/js/page/share-project-list.js +0 -57
- package/src/js/page/utils/show-more-less.js +0 -273
- package/src/scss/components/_sort-by.scss +0 -190
|
@@ -1,341 +1,337 @@
|
|
|
1
|
-
var Wick = (window.Wick = window.Wick || {});
|
|
2
|
-
|
|
3
1
|
function returnErrorCreatePayload() {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
return {
|
|
3
|
+
message: 'Min. characters 5, max. characters 59, only use characters A-Z and 0-9'
|
|
4
|
+
};
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
function returnErrorSelectPayload() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
return {
|
|
9
|
+
message: 'Something went wrong'
|
|
10
|
+
};
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
function returnSuccessSelectPayload() {
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
],
|
|
14
|
+
return {
|
|
15
|
+
currentProjectList: {
|
|
16
|
+
name: 'Loremipsumdolorsitamet,consecteturadipiscingelit,seddoeiusmodtemporincididuntutlaboreetdoloremagnaaliqua.Utenimadminimveniam',
|
|
17
|
+
id: 123,
|
|
18
|
+
link: '/page_my-shopping-list.html',
|
|
19
|
+
isFull: true,
|
|
20
|
+
products: [
|
|
21
|
+
{
|
|
22
|
+
name: 'BoschPSB1800LI218VLiIonCordlessCombiDrillExamplewithlongtitleintworaws',
|
|
23
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_221100_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
24
|
+
itemTotal: '£2.00',
|
|
25
|
+
itemTotalExcVat: '£1.99',
|
|
26
|
+
quantity: 1,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
30
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_224661_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
31
|
+
itemTotal: '£1.00',
|
|
32
|
+
itemTotalExcVat: '£1.99',
|
|
33
|
+
quantity: 2,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
37
|
+
image: '//media.wickes.co.uk/is/image/wickes/M3549_144650_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
38
|
+
itemTotal: '£3.00',
|
|
39
|
+
itemTotalExcVat: '£1.99',
|
|
40
|
+
quantity: 3,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
44
|
+
image: '//media.wickes.co.uk/is/image/wickes/R1478_131881_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
45
|
+
itemTotal: '£3.00',
|
|
46
|
+
itemTotalExcVat: '£1.99',
|
|
47
|
+
quantity: 3,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
51
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_154100_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
52
|
+
itemTotal: '£3.00',
|
|
53
|
+
itemTotalExcVat: '£1.99',
|
|
54
|
+
quantity: 3,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
58
|
+
image: '//media.wickes.co.uk/is/image/wickes/R1478_131882_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
59
|
+
itemTotal: '£3.00',
|
|
60
|
+
itemTotalExcVat: '£1.99',
|
|
61
|
+
quantity: 3,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
65
|
+
image: '//media.wickes.co.uk/is/image/wickes/T3274_103040_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
66
|
+
itemTotal: '£3.00',
|
|
67
|
+
itemTotalExcVat: '£1.99',
|
|
68
|
+
quantity: 3,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
72
|
+
image: '//media.wickes.co.uk/is/image/wickes/T3274_103015_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
73
|
+
itemTotal: '£3.00',
|
|
74
|
+
itemTotalExcVat: '£1.99',
|
|
75
|
+
quantity: 3,
|
|
122
76
|
},
|
|
123
|
-
|
|
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
|
+
}
|
|
124
122
|
}
|
|
125
123
|
|
|
126
124
|
function returnSuccessCreatePayload() {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
],
|
|
125
|
+
return {
|
|
126
|
+
currentProjectList: {
|
|
127
|
+
name: 'Loremipsumdolorsitamet,consecteturadipiscingelit,seddoeiusmodtemporincididuntutlaboreetdoloremagnaaliqua.Utenimadminimveniam',
|
|
128
|
+
id: 123,
|
|
129
|
+
link: '/page_my-shopping-list.html',
|
|
130
|
+
isFull: true,
|
|
131
|
+
products: [
|
|
132
|
+
{
|
|
133
|
+
name: 'BoschPSB1800LI218VLiIonCordlessCombiDrillExamplewithlongtitleintworaws',
|
|
134
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_221100_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
135
|
+
itemTotal: '£2.00',
|
|
136
|
+
itemTotalExcVat: '£1.99',
|
|
137
|
+
quantity: 1,
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
141
|
+
image: '//media.wickes.co.uk/is/image/wickes/B3182_224661_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
142
|
+
itemTotal: '£1.00',
|
|
143
|
+
itemTotalExcVat: '£1.99',
|
|
144
|
+
quantity: 2,
|
|
233
145
|
},
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
146
|
+
{
|
|
147
|
+
name: 'Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long title in two raws',
|
|
148
|
+
image: '//media.wickes.co.uk/is/image/wickes/M3549_144650_00?$largeNormal$&defaultImage=wickes/2018-Wickes-Missing-Product-650x650',
|
|
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
|
+
}
|
|
237
235
|
}
|
|
238
236
|
|
|
239
237
|
function returnSuccessGetPayload(currentPage) {
|
|
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
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
};
|
|
238
|
+
return {
|
|
239
|
+
currentPage: currentPage,
|
|
240
|
+
pagesLength: 101,
|
|
241
|
+
projectLists: [
|
|
242
|
+
{
|
|
243
|
+
name: `Bathroom ${currentPage}`,
|
|
244
|
+
id: "bathroom",
|
|
245
|
+
isFull: true,
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: `Dining room ${currentPage}`,
|
|
249
|
+
id: "dining-room",
|
|
250
|
+
isFull: false
|
|
251
|
+
}, {
|
|
252
|
+
name: `Driveway ${currentPage}`,
|
|
253
|
+
id: "driveway",
|
|
254
|
+
isFull: false
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: `Floors ${currentPage}`,
|
|
258
|
+
id: "floors",
|
|
259
|
+
isFull: false
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: `Garage ${currentPage}`,
|
|
263
|
+
id: "garage",
|
|
264
|
+
isFull: true,
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
name: `Garden ${currentPage}`,
|
|
268
|
+
id: "garden",
|
|
269
|
+
isFull: false
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: `Garden shed ${currentPage}`,
|
|
273
|
+
id: "garden-shed",
|
|
274
|
+
isFull: false
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: `Gym ${currentPage}`,
|
|
278
|
+
id: "gym",
|
|
279
|
+
isFull: false
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: `Kids room ${currentPage}`,
|
|
283
|
+
id: "kids-room",
|
|
284
|
+
isFull: false
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: `Kitchen update ${currentPage}`,
|
|
288
|
+
id: "kitchen-update",
|
|
289
|
+
isFull: false
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: `Living room ${currentPage}`,
|
|
293
|
+
id: "living-room",
|
|
294
|
+
isFull: false
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
name: `Paint ${currentPage}`,
|
|
298
|
+
id: "paint",
|
|
299
|
+
isFull: true,
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
}
|
|
306
303
|
}
|
|
307
304
|
|
|
308
305
|
$(document).ready(function () {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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
|
-
});
|
|
306
|
+
function init() {
|
|
307
|
+
if (!$('.shop-list-modal').length) {
|
|
308
|
+
return;
|
|
338
309
|
}
|
|
339
310
|
|
|
340
|
-
|
|
311
|
+
$(Wick.SavingShoppingList.el.modalSavingToShopList).on('show.bs.modal', Wick.SavingShoppingList.init);
|
|
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();
|
|
341
337
|
});
|