wickes-css2 2.112.0-develop.4 → 2.112.0-develop.7

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.
Files changed (66) hide show
  1. package/Readme.md +1 -1
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/components/global-search.css +1 -1
  4. package/build/css/homepage-main.css +1 -1
  5. package/build/css/kitchen-plp-main.css +1 -1
  6. package/build/css/main.css +1 -1
  7. package/build/css/my-account-main-v2.css +1 -1
  8. package/build/css/my-account-main.css +1 -1
  9. package/build/css/pages/page_product-details-critical.css +1 -1
  10. package/build/css/pages/page_product-details.css +1 -1
  11. package/build/css/pdp-main-before-combine.css +1 -1
  12. package/build/css/pdp-main-critical.css +1 -1
  13. package/build/css/pdp-main-non-critical.css +1 -1
  14. package/build/css/pdp-main.css +1 -1
  15. package/build/css/plp-main.css +1 -1
  16. package/build/css/store-locator-main.css +1 -1
  17. package/build/js/basket.min.js +1 -1
  18. package/build/js/bloomreach-widget.min.js +1 -1
  19. package/build/js/emulation.min.js +664 -38
  20. package/build/js/page/basket-v2.js +29 -20
  21. package/build/js/page/bloomreach-widget/bloomreach-widget.js +250 -0
  22. package/build/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +205 -359
  23. package/build/js/page/bloomreach-widget/why-not-add-widget.js +198 -0
  24. package/package.json +1 -5
  25. package/src/components/bloomreach/complete-card.hbs +4 -32
  26. package/src/components/bloomreach/why-not-add-card-skeleton.hbs +14 -0
  27. package/src/components/bloomreach/why-not-add-card.hbs +73 -0
  28. package/src/components/bloomreach/why-not-add-content.hbs +41 -0
  29. package/src/components/bloomreach/why-not-add-skeleton.hbs +9 -0
  30. package/src/components/bloomreach/why-not-add.hbs +6 -0
  31. package/src/components/my-account/order.hbs +6 -1
  32. package/src/components/order-item.hbs +7 -7
  33. package/src/components/pdp-price-actions.hbs +2 -2
  34. package/src/components/potential-promotion.hbs +4 -4
  35. package/src/components/price-badges.hbs +12 -0
  36. package/src/components/price-block-v2.hbs +5 -12
  37. package/src/components/reviews-rating.hbs +22 -0
  38. package/src/components/share-list-modal-without-social-icons.hbs +2 -2
  39. package/src/components/share-list-modal.hbs +7 -3
  40. package/src/data/data_shopping-cart-v2.json +46 -2
  41. package/src/data/data_shopping-cart-with-energy.json +26 -2
  42. package/src/data/my-account/data_my-order.json +8 -0
  43. package/src/js/emulation/basket-data.js +312 -0
  44. package/src/js/emulation/bloomreach-widget-loading.js +2 -2
  45. package/src/js/emulation/mock.js +309 -0
  46. package/src/js/emulation/shopping-list.js +40 -49
  47. package/src/js/emulation/why-not-add-loading.js +11 -0
  48. package/src/js/emulation/why-not-add.js +28 -0
  49. package/src/js/page/basket-v2.js +29 -20
  50. package/src/js/page/bloomreach-widget/bloomreach-widget.js +250 -0
  51. package/src/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +205 -359
  52. package/src/js/page/bloomreach-widget/why-not-add-widget.js +198 -0
  53. package/src/page_product-details-bloomreach.html +1 -1
  54. package/src/page_product-details-with-global-search-v2.html +2 -1
  55. package/src/page_product-details-with-why-not-add-single.html +131 -0
  56. package/src/page_track-my-order-result.html +1 -0
  57. package/src/scss/components/_tradepro-discount-banner.scss +10 -14
  58. package/src/scss/components/bloomreach/_bloomreach.scss +3 -0
  59. package/src/scss/components/bloomreach/_complete-card.scss +0 -38
  60. package/src/scss/components/bloomreach/_reviews.scss +60 -0
  61. package/src/scss/components/bloomreach/_why-not-add-card.scss +223 -0
  62. package/src/scss/components/bloomreach/_why-not-add.scss +143 -0
  63. package/src/scss/components/global-search.scss +0 -6
  64. package/src/scss/pages/page_product-details-critical.scss +7 -0
  65. package/src/scss/pages/page_product-details.scss +7 -0
  66. package/src/sitemap.html +10 -4
@@ -2020,6 +2020,18 @@ Wick.BasketData = function () {
2020
2020
  currencyIso: 'GBP',
2021
2021
  formattedPriceWithoutCurrencySymbol: '4'
2022
2022
  },
2023
+ displayBasePrice: {
2024
+ value: 5.0,
2025
+ formattedValue: '£5.00',
2026
+ currencyIso: 'GBP',
2027
+ formattedPriceWithoutCurrencySymbol: '5.00'
2028
+ },
2029
+ displayBasePriceExclusiveVat: {
2030
+ value: 4,
2031
+ formattedValue: '£4',
2032
+ currencyIso: 'GBP',
2033
+ formattedPriceWithoutCurrencySymbol: '4'
2034
+ },
2023
2035
  totalPrice: {
2024
2036
  currencyIso: 'GBP',
2025
2037
  value: 3700.0,
@@ -2340,6 +2352,18 @@ Wick.BasketData = function () {
2340
2352
  currencyIso: 'GBP',
2341
2353
  formattedPriceWithoutCurrencySymbol: '3600'
2342
2354
  },
2355
+ displayItemTotalWithoutDiscount: {
2356
+ value: 3700.0,
2357
+ formattedValue: '£3700.00',
2358
+ currencyIso: 'GBP',
2359
+ formattedPriceWithoutCurrencySymbol: '3700.00'
2360
+ },
2361
+ displayItemTotalWithoutDiscountExclusiveVat: {
2362
+ value: 3600,
2363
+ formattedValue: '£3600',
2364
+ currencyIso: 'GBP',
2365
+ formattedPriceWithoutCurrencySymbol: '3600'
2366
+ },
2343
2367
  appliedPromotions: null,
2344
2368
  tilingInstallationData: null,
2345
2369
  flooringInstallationData: null,
@@ -2425,6 +2449,18 @@ Wick.BasketData = function () {
2425
2449
  currencyIso: 'GBP',
2426
2450
  formattedPriceWithoutCurrencySymbol: '99'
2427
2451
  },
2452
+ displayBasePrice: {
2453
+ value: 100.0,
2454
+ formattedValue: '£100',
2455
+ currencyIso: 'GBP',
2456
+ formattedPriceWithoutCurrencySymbol: '100'
2457
+ },
2458
+ displayBasePriceExclusiveVat: {
2459
+ value: 99,
2460
+ formattedValue: '£99',
2461
+ currencyIso: 'GBP',
2462
+ formattedPriceWithoutCurrencySymbol: '99'
2463
+ },
2428
2464
  product: {
2429
2465
  code: '221100',
2430
2466
  name: 'Blue Circle Ready To Use Postcrete - 20kg',
@@ -2476,6 +2512,18 @@ Wick.BasketData = function () {
2476
2512
  currencyIso: 'GBP',
2477
2513
  formattedPriceWithoutCurrencySymbol: '99'
2478
2514
  },
2515
+ displayItemTotalWithoutDiscount: {
2516
+ value: 100.0,
2517
+ formattedValue: '£100',
2518
+ currencyIso: 'GBP',
2519
+ formattedPriceWithoutCurrencySymbol: '100'
2520
+ },
2521
+ displayItemTotalWithoutDiscountExclusiveVat: {
2522
+ value: 99,
2523
+ formattedValue: '£99',
2524
+ currencyIso: 'GBP',
2525
+ formattedPriceWithoutCurrencySymbol: '99'
2526
+ },
2479
2527
  orderFulfilmentControls: {
2480
2528
  availableForDelivery: true,
2481
2529
  availableForCollection: true,
@@ -2505,6 +2553,18 @@ Wick.BasketData = function () {
2505
2553
  currencyIso: 'GBP',
2506
2554
  formattedPriceWithoutCurrencySymbol: '23'
2507
2555
  },
2556
+ displayBasePrice: {
2557
+ value: 24.0,
2558
+ formattedValue: '£24',
2559
+ currencyIso: 'GBP',
2560
+ formattedPriceWithoutCurrencySymbol: '24'
2561
+ },
2562
+ displayBasePriceExclusiveVat: {
2563
+ value: 23,
2564
+ formattedValue: '£23',
2565
+ currencyIso: 'GBP',
2566
+ formattedPriceWithoutCurrencySymbol: '23'
2567
+ },
2508
2568
  product: {
2509
2569
  code: '109450',
2510
2570
  name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
@@ -2553,6 +2613,18 @@ Wick.BasketData = function () {
2553
2613
  currencyIso: 'GBP',
2554
2614
  formattedPriceWithoutCurrencySymbol: '23'
2555
2615
  },
2616
+ displayItemTotalWithoutDiscount: {
2617
+ value: 24.0,
2618
+ formattedValue: '£24',
2619
+ currencyIso: 'GBP',
2620
+ formattedPriceWithoutCurrencySymbol: '24'
2621
+ },
2622
+ displayItemTotalWithoutDiscountExclusiveVat: {
2623
+ value: 23,
2624
+ formattedValue: '£23',
2625
+ currencyIso: 'GBP',
2626
+ formattedPriceWithoutCurrencySymbol: '23'
2627
+ },
2556
2628
  orderFulfilmentControls: {
2557
2629
  availableForDelivery: true,
2558
2630
  availableForCollection: true,
@@ -2573,6 +2645,18 @@ Wick.BasketData = function () {
2573
2645
  currencyIso: 'GBP',
2574
2646
  formattedPriceWithoutCurrencySymbol: '0'
2575
2647
  },
2648
+ displayBasePrice: {
2649
+ value: 0.0,
2650
+ formattedValue: '£0',
2651
+ currencyIso: 'GBP',
2652
+ formattedPriceWithoutCurrencySymbol: '0'
2653
+ },
2654
+ displayBasePriceExclusiveVat: {
2655
+ value: 0,
2656
+ formattedValue: '£0',
2657
+ currencyIso: 'GBP',
2658
+ formattedPriceWithoutCurrencySymbol: '0'
2659
+ },
2576
2660
  product: {
2577
2661
  code: '103123',
2578
2662
  name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
@@ -2627,6 +2711,18 @@ Wick.BasketData = function () {
2627
2711
  currencyIso: 'GBP',
2628
2712
  formattedPriceWithoutCurrencySymbol: '0'
2629
2713
  },
2714
+ displayItemTotalWithoutDiscount: {
2715
+ value: 0.0,
2716
+ formattedValue: '£0',
2717
+ currencyIso: 'GBP',
2718
+ formattedPriceWithoutCurrencySymbol: '0'
2719
+ },
2720
+ displayItemTotalWithoutDiscountExclusiveVat: {
2721
+ value: 0,
2722
+ formattedValue: '£0',
2723
+ currencyIso: 'GBP',
2724
+ formattedPriceWithoutCurrencySymbol: '0'
2725
+ },
2630
2726
  orderFulfilmentControls: {
2631
2727
  availableForDelivery: true,
2632
2728
  availableForCollection: true,
@@ -2657,6 +2753,18 @@ Wick.BasketData = function () {
2657
2753
  currencyIso: 'GBP',
2658
2754
  formattedPriceWithoutCurrencySymbol: '24'
2659
2755
  },
2756
+ displayBasePrice: {
2757
+ value: 25.0,
2758
+ formattedValue: '£25',
2759
+ currencyIso: 'GBP',
2760
+ formattedPriceWithoutCurrencySymbol: '25'
2761
+ },
2762
+ displayBasePriceExclusiveVat: {
2763
+ value: 24,
2764
+ formattedValue: '£24',
2765
+ currencyIso: 'GBP',
2766
+ formattedPriceWithoutCurrencySymbol: '24'
2767
+ },
2660
2768
  product: {
2661
2769
  code: '109451',
2662
2770
  name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
@@ -2713,6 +2821,18 @@ Wick.BasketData = function () {
2713
2821
  currencyIso: 'GBP',
2714
2822
  formattedPriceWithoutCurrencySymbol: '24'
2715
2823
  },
2824
+ displayItemTotalWithoutDiscount: {
2825
+ value: 25.0,
2826
+ formattedValue: '£25',
2827
+ currencyIso: 'GBP',
2828
+ formattedPriceWithoutCurrencySymbol: '25'
2829
+ },
2830
+ displayItemTotalWithoutDiscountExclusiveVat: {
2831
+ value: 24,
2832
+ formattedValue: '£24',
2833
+ currencyIso: 'GBP',
2834
+ formattedPriceWithoutCurrencySymbol: '24'
2835
+ },
2716
2836
  orderFulfilmentControls: {
2717
2837
  availableForDelivery: true,
2718
2838
  availableForCollection: true,
@@ -2733,6 +2853,18 @@ Wick.BasketData = function () {
2733
2853
  currencyIso: 'GBP',
2734
2854
  formattedPriceWithoutCurrencySymbol: '24'
2735
2855
  },
2856
+ displayBasePrice: {
2857
+ value: 25.0,
2858
+ formattedValue: '£25',
2859
+ currencyIso: 'GBP',
2860
+ formattedPriceWithoutCurrencySymbol: '25'
2861
+ },
2862
+ displayBasePriceExclusiveVat: {
2863
+ value: 24,
2864
+ formattedValue: '£24',
2865
+ currencyIso: 'GBP',
2866
+ formattedPriceWithoutCurrencySymbol: '24'
2867
+ },
2736
2868
  product: {
2737
2869
  code: '123143',
2738
2870
  name: '6 Wickes General Purpose Claw test',
@@ -2778,6 +2910,18 @@ Wick.BasketData = function () {
2778
2910
  currencyIso: 'GBP',
2779
2911
  formattedPriceWithoutCurrencySymbol: '24'
2780
2912
  },
2913
+ displayItemTotalWithoutDiscount: {
2914
+ value: 25.0,
2915
+ formattedValue: '£25',
2916
+ currencyIso: 'GBP',
2917
+ formattedPriceWithoutCurrencySymbol: '25'
2918
+ },
2919
+ displayItemTotalWithoutDiscountExclusiveVat: {
2920
+ value: 24,
2921
+ formattedValue: '£24',
2922
+ currencyIso: 'GBP',
2923
+ formattedPriceWithoutCurrencySymbol: '24'
2924
+ },
2781
2925
  orderFulfilmentControls: {
2782
2926
  availableForDelivery: true,
2783
2927
  availableForCollection: true,
@@ -2879,6 +3023,18 @@ Wick.BasketData = function () {
2879
3023
  currencyIso: 'GBP',
2880
3024
  formattedPriceWithoutCurrencySymbol: '99'
2881
3025
  },
3026
+ displayBasePrice: {
3027
+ value: 100.0,
3028
+ formattedValue: '£100',
3029
+ currencyIso: 'GBP',
3030
+ formattedPriceWithoutCurrencySymbol: '100'
3031
+ },
3032
+ displayBasePriceExclusiveVat: {
3033
+ value: 99,
3034
+ formattedValue: '£99',
3035
+ currencyIso: 'GBP',
3036
+ formattedPriceWithoutCurrencySymbol: '99'
3037
+ },
2882
3038
  product: {
2883
3039
  code: '221100',
2884
3040
  name: 'Blue Circle Ready To Use Postcrete - 20kg',
@@ -2930,6 +3086,18 @@ Wick.BasketData = function () {
2930
3086
  currencyIso: 'GBP',
2931
3087
  formattedPriceWithoutCurrencySymbol: '99'
2932
3088
  },
3089
+ displayItemTotalWithoutDiscount: {
3090
+ value: 100.0,
3091
+ formattedValue: '£100',
3092
+ currencyIso: 'GBP',
3093
+ formattedPriceWithoutCurrencySymbol: '100'
3094
+ },
3095
+ displayItemTotalWithoutDiscountExclusiveVat: {
3096
+ value: 99,
3097
+ formattedValue: '£99',
3098
+ currencyIso: 'GBP',
3099
+ formattedPriceWithoutCurrencySymbol: '99'
3100
+ },
2933
3101
  orderFulfilmentControls: {
2934
3102
  availableForDelivery: true,
2935
3103
  availableForCollection: true,
@@ -2959,6 +3127,18 @@ Wick.BasketData = function () {
2959
3127
  currencyIso: 'GBP',
2960
3128
  formattedPriceWithoutCurrencySymbol: '23'
2961
3129
  },
3130
+ displayBasePrice: {
3131
+ value: 24.0,
3132
+ formattedValue: '£24',
3133
+ currencyIso: 'GBP',
3134
+ formattedPriceWithoutCurrencySymbol: '24'
3135
+ },
3136
+ displayBasePriceExclusiveVat: {
3137
+ value: 23,
3138
+ formattedValue: '£23',
3139
+ currencyIso: 'GBP',
3140
+ formattedPriceWithoutCurrencySymbol: '23'
3141
+ },
2962
3142
  product: {
2963
3143
  code: '109450',
2964
3144
  name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
@@ -3007,6 +3187,18 @@ Wick.BasketData = function () {
3007
3187
  currencyIso: 'GBP',
3008
3188
  formattedPriceWithoutCurrencySymbol: '23'
3009
3189
  },
3190
+ displayItemTotalWithoutDiscount: {
3191
+ value: 24.0,
3192
+ formattedValue: '£24',
3193
+ currencyIso: 'GBP',
3194
+ formattedPriceWithoutCurrencySymbol: '24'
3195
+ },
3196
+ displayItemTotalWithoutDiscountExclusiveVat: {
3197
+ value: 23,
3198
+ formattedValue: '£23',
3199
+ currencyIso: 'GBP',
3200
+ formattedPriceWithoutCurrencySymbol: '23'
3201
+ },
3010
3202
  orderFulfilmentControls: {
3011
3203
  availableForDelivery: true,
3012
3204
  availableForCollection: true,
@@ -3027,6 +3219,18 @@ Wick.BasketData = function () {
3027
3219
  currencyIso: 'GBP',
3028
3220
  formattedPriceWithoutCurrencySymbol: '0'
3029
3221
  },
3222
+ displayBasePrice: {
3223
+ value: 0.0,
3224
+ formattedValue: '£0',
3225
+ currencyIso: 'GBP',
3226
+ formattedPriceWithoutCurrencySymbol: '0'
3227
+ },
3228
+ displayBasePriceExclusiveVat: {
3229
+ value: 0,
3230
+ formattedValue: '£0',
3231
+ currencyIso: 'GBP',
3232
+ formattedPriceWithoutCurrencySymbol: '0'
3233
+ },
3030
3234
  product: {
3031
3235
  code: '103123',
3032
3236
  name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
@@ -3081,6 +3285,18 @@ Wick.BasketData = function () {
3081
3285
  currencyIso: 'GBP',
3082
3286
  formattedPriceWithoutCurrencySymbol: '0'
3083
3287
  },
3288
+ displayItemTotalWithoutDiscount: {
3289
+ value: 0.0,
3290
+ formattedValue: '£0',
3291
+ currencyIso: 'GBP',
3292
+ formattedPriceWithoutCurrencySymbol: '0'
3293
+ },
3294
+ displayItemTotalWithoutDiscountExclusiveVat: {
3295
+ value: 0,
3296
+ formattedValue: '£0',
3297
+ currencyIso: 'GBP',
3298
+ formattedPriceWithoutCurrencySymbol: '0'
3299
+ },
3084
3300
  orderFulfilmentControls: {
3085
3301
  availableForDelivery: true,
3086
3302
  availableForCollection: true,
@@ -3111,6 +3327,18 @@ Wick.BasketData = function () {
3111
3327
  currencyIso: 'GBP',
3112
3328
  formattedPriceWithoutCurrencySymbol: '24'
3113
3329
  },
3330
+ displayBasePrice: {
3331
+ value: 25.0,
3332
+ formattedValue: '£25',
3333
+ currencyIso: 'GBP',
3334
+ formattedPriceWithoutCurrencySymbol: '25'
3335
+ },
3336
+ displayBasePriceExclusiveVat: {
3337
+ value: 24,
3338
+ formattedValue: '£24',
3339
+ currencyIso: 'GBP',
3340
+ formattedPriceWithoutCurrencySymbol: '24'
3341
+ },
3114
3342
  product: {
3115
3343
  code: '109451',
3116
3344
  name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
@@ -3167,6 +3395,18 @@ Wick.BasketData = function () {
3167
3395
  currencyIso: 'GBP',
3168
3396
  formattedPriceWithoutCurrencySymbol: '24'
3169
3397
  },
3398
+ displayItemTotalWithoutDiscount: {
3399
+ value: 25.0,
3400
+ formattedValue: '£25',
3401
+ currencyIso: 'GBP',
3402
+ formattedPriceWithoutCurrencySymbol: '25'
3403
+ },
3404
+ displayItemTotalWithoutDiscountExclusiveVat: {
3405
+ value: 24,
3406
+ formattedValue: '£24',
3407
+ currencyIso: 'GBP',
3408
+ formattedPriceWithoutCurrencySymbol: '24'
3409
+ },
3170
3410
  orderFulfilmentControls: {
3171
3411
  availableForDelivery: true,
3172
3412
  availableForCollection: true,
@@ -3187,6 +3427,18 @@ Wick.BasketData = function () {
3187
3427
  currencyIso: 'GBP',
3188
3428
  formattedPriceWithoutCurrencySymbol: '24'
3189
3429
  },
3430
+ displayBasePrice: {
3431
+ value: 25.0,
3432
+ formattedValue: '£25',
3433
+ currencyIso: 'GBP',
3434
+ formattedPriceWithoutCurrencySymbol: '25'
3435
+ },
3436
+ displayBasePriceExclusiveVat: {
3437
+ value: 24,
3438
+ formattedValue: '£24',
3439
+ currencyIso: 'GBP',
3440
+ formattedPriceWithoutCurrencySymbol: '24'
3441
+ },
3190
3442
  product: {
3191
3443
  code: '123143',
3192
3444
  name: '6 Wickes General Purpose Claw test',
@@ -3232,6 +3484,18 @@ Wick.BasketData = function () {
3232
3484
  currencyIso: 'GBP',
3233
3485
  formattedPriceWithoutCurrencySymbol: '24'
3234
3486
  },
3487
+ displayItemTotalWithoutDiscount: {
3488
+ value: 25.0,
3489
+ formattedValue: '£25',
3490
+ currencyIso: 'GBP',
3491
+ formattedPriceWithoutCurrencySymbol: '25'
3492
+ },
3493
+ displayItemTotalWithoutDiscountExclusiveVat: {
3494
+ value: 24,
3495
+ formattedValue: '£24',
3496
+ currencyIso: 'GBP',
3497
+ formattedPriceWithoutCurrencySymbol: '24'
3498
+ },
3235
3499
  orderFulfilmentControls: {
3236
3500
  availableForDelivery: true,
3237
3501
  availableForCollection: true,
@@ -3293,6 +3557,18 @@ Wick.BasketData = function () {
3293
3557
  currencyIso: 'GBP',
3294
3558
  formattedPriceWithoutCurrencySymbol: '17'
3295
3559
  },
3560
+ displayBasePrice: {
3561
+ value: 18.0,
3562
+ formattedValue: '£18.00',
3563
+ currencyIso: 'GBP',
3564
+ formattedPriceWithoutCurrencySymbol: '18.00'
3565
+ },
3566
+ displayBasePriceExclusiveVat: {
3567
+ value: 17,
3568
+ formattedValue: '£17',
3569
+ currencyIso: 'GBP',
3570
+ formattedPriceWithoutCurrencySymbol: '17'
3571
+ },
3296
3572
  totalPrice: {
3297
3573
  currencyIso: 'GBP',
3298
3574
  value: 36.0,
@@ -3743,6 +4019,18 @@ Wick.BasketData = function () {
3743
4019
  currencyIso: 'GBP',
3744
4020
  formattedPriceWithoutCurrencySymbol: '35'
3745
4021
  },
4022
+ displayItemTotalWithoutDiscount: {
4023
+ value: 36.0,
4024
+ formattedValue: '£36.00',
4025
+ currencyIso: 'GBP',
4026
+ formattedPriceWithoutCurrencySymbol: '36.00'
4027
+ },
4028
+ displayItemTotalWithoutDiscountExclusiveVat: {
4029
+ value: 35,
4030
+ formattedValue: '£35',
4031
+ currencyIso: 'GBP',
4032
+ formattedPriceWithoutCurrencySymbol: '35'
4033
+ },
3746
4034
  appliedPromotions: null,
3747
4035
  tilingInstallationData: null,
3748
4036
  flooringInstallationData: null,
@@ -3793,6 +4081,18 @@ Wick.BasketData = function () {
3793
4081
  currencyIso: 'GBP',
3794
4082
  formattedPriceWithoutCurrencySymbol: '3'
3795
4083
  },
4084
+ displayBasePrice: {
4085
+ value: 4.0,
4086
+ formattedValue: '£4.00',
4087
+ currencyIso: 'GBP',
4088
+ formattedPriceWithoutCurrencySymbol: '4.00'
4089
+ },
4090
+ displayBasePriceExclusiveVat: {
4091
+ value: 3,
4092
+ formattedValue: '£3',
4093
+ currencyIso: 'GBP',
4094
+ formattedPriceWithoutCurrencySymbol: '3'
4095
+ },
3796
4096
  totalPrice: {
3797
4097
  currencyIso: 'GBP',
3798
4098
  value: 24.0,
@@ -3993,6 +4293,18 @@ Wick.BasketData = function () {
3993
4293
  currencyIso: 'GBP',
3994
4294
  formattedPriceWithoutCurrencySymbol: '23'
3995
4295
  },
4296
+ displayItemTotalWithoutDiscount: {
4297
+ value: 24.0,
4298
+ formattedValue: '£24.00',
4299
+ currencyIso: 'GBP',
4300
+ formattedPriceWithoutCurrencySymbol: '24.00'
4301
+ },
4302
+ displayItemTotalWithoutDiscountExclusiveVat: {
4303
+ value: 23,
4304
+ formattedValue: '£23',
4305
+ currencyIso: 'GBP',
4306
+ formattedPriceWithoutCurrencySymbol: '23'
4307
+ },
3996
4308
  appliedPromotions: null,
3997
4309
  tilingInstallationData: null,
3998
4310
  flooringInstallationData: null,
@@ -4997,9 +5309,9 @@ var Wick = window.Wick || {};
4997
5309
  $(document).ready(function () {
4998
5310
  window.setTimeout(function () {
4999
5311
  var $container = $('[data-complete-widget]');
5000
- var contextKey = $container.data('context-key');
5312
+ var contextKey = $container.data('mock-key');
5001
5313
  var payloadData = Wick.FEMock.dataBloomreach[contextKey];
5002
- Wick.BloomreachWidget.init(payloadData);
5314
+ Wick.BloomreachWidget.init('completeYourProject', payloadData);
5003
5315
  }, 3000);
5004
5316
  });
5005
5317
 
@@ -5760,7 +6072,7 @@ function waitFor(getter, cb, opts) {
5760
6072
  });
5761
6073
  })();
5762
6074
 
5763
- },{"../page/utils/show-more-less":97}],52:[function(require,module,exports){
6075
+ },{"../page/utils/show-more-less":99}],52:[function(require,module,exports){
5764
6076
  "use strict";
5765
6077
 
5766
6078
  var Wick = Wick || {};
@@ -12932,6 +13244,294 @@ Wick.FEMock = {
12932
13244
  }));
12933
13245
  },
12934
13246
  dataBloomreach: {
13247
+ whyNotAddRecommendationsSingle: {
13248
+ recommendedProducts: [{
13249
+ baseProduct: {
13250
+ code: '153731',
13251
+ name: 'Wickes Trade Paint Roller Set - 9in',
13252
+ url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
13253
+ purchasable: true,
13254
+ productType: 'ProductModel',
13255
+ isBaseProduct: false,
13256
+ availabilityRestriction: 'NO_RESTRICTIONS',
13257
+ fulfilmentType: 'STANDARD',
13258
+ stock: {
13259
+ stockLevelStatus: {
13260
+ code: 'inStock'
13261
+ }
13262
+ },
13263
+ fulfillmentAttributes: {
13264
+ type: 'STANDARD'
13265
+ },
13266
+ images: [{
13267
+ imageType: 'PRIMARY',
13268
+ format: 'product',
13269
+ url: 'https://placehold.co/68x68?text=roller',
13270
+ altText: 'Wickes Trade Paint Roller Set - 9in'
13271
+ }],
13272
+ externalAverageRating: 5,
13273
+ externalReviewCount: 100,
13274
+ displayPrice: {
13275
+ currencyIso: 'GBP',
13276
+ value: 9999,
13277
+ priceType: 'BUY',
13278
+ formattedValue: '£9,999.00',
13279
+ formattedPriceWithoutCurrencySymbol: '16',
13280
+ currencySymbol: '£',
13281
+ vatRatePercentage: 20,
13282
+ valueInPence: 999900,
13283
+ wasPrice: 30
13284
+ },
13285
+ displayPriceExclusiveVat: {
13286
+ currencyIso: 'GBP',
13287
+ value: 9998,
13288
+ priceType: 'BUY',
13289
+ formattedValue: '£9,998.00',
13290
+ formattedPriceWithoutCurrencySymbol: '13.33',
13291
+ currencySymbol: '£',
13292
+ valueInPence: 999800,
13293
+ wasPrice: 25
13294
+ }
13295
+ }
13296
+ }]
13297
+ },
13298
+ whyNotAddRecommendations: {
13299
+ recommendedProducts: [{
13300
+ baseProduct: {
13301
+ code: '153731',
13302
+ name: 'Wickes Trade Paint Roller Set - 9in',
13303
+ url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
13304
+ purchasable: true,
13305
+ productType: 'ProductModel',
13306
+ isBaseProduct: false,
13307
+ availabilityRestriction: 'NO_RESTRICTIONS',
13308
+ fulfilmentType: 'STANDARD',
13309
+ stock: {
13310
+ stockLevelStatus: {
13311
+ code: 'inStock'
13312
+ }
13313
+ },
13314
+ fulfillmentAttributes: {
13315
+ type: 'STANDARD'
13316
+ },
13317
+ images: [{
13318
+ imageType: 'PRIMARY',
13319
+ format: 'product',
13320
+ url: 'https://placehold.co/68x68?text=roller',
13321
+ altText: 'Wickes Trade Paint Roller Set - 9in'
13322
+ }],
13323
+ externalAverageRating: 5,
13324
+ externalReviewCount: 100,
13325
+ displayPrice: {
13326
+ currencyIso: 'GBP',
13327
+ value: 9999,
13328
+ priceType: 'BUY',
13329
+ formattedValue: '£9,999.00',
13330
+ formattedPriceWithoutCurrencySymbol: '16',
13331
+ currencySymbol: '£',
13332
+ vatRatePercentage: 20,
13333
+ valueInPence: 999900,
13334
+ wasPrice: 3000
13335
+ },
13336
+ displayPriceExclusiveVat: {
13337
+ currencyIso: 'GBP',
13338
+ value: 9998,
13339
+ priceType: 'BUY',
13340
+ formattedValue: '£9,998.00',
13341
+ formattedPriceWithoutCurrencySymbol: '13.33',
13342
+ currencySymbol: '£',
13343
+ valueInPence: 999800,
13344
+ wasPrice: 2500
13345
+ }
13346
+ }
13347
+ }, {
13348
+ baseProduct: {
13349
+ code: '349137',
13350
+ name: 'Wickes Microfibre Paint Roller Sleeve - 9in',
13351
+ url: '/Wickes-Microfibre-Paint-Roller-Sleeve---9in/p/349137',
13352
+ purchasable: true,
13353
+ productType: 'ProductModel',
13354
+ isBaseProduct: false,
13355
+ availabilityRestriction: 'NO_RESTRICTIONS',
13356
+ fulfilmentType: 'STANDARD',
13357
+ stock: {
13358
+ stockLevelStatus: {
13359
+ code: 'inStock'
13360
+ }
13361
+ },
13362
+ fulfillmentAttributes: {
13363
+ type: 'STANDARD'
13364
+ },
13365
+ images: [{
13366
+ imageType: 'PRIMARY',
13367
+ format: 'product',
13368
+ url: 'https://placehold.co/68x68?text=sleeve',
13369
+ altText: 'Wickes Microfibre Paint Roller Sleeve - 9in'
13370
+ }],
13371
+ externalAverageRating: 4.2,
13372
+ externalReviewCount: 48,
13373
+ displayPrice: {
13374
+ currencyIso: 'GBP',
13375
+ value: 9999,
13376
+ priceType: 'BUY',
13377
+ formattedValue: '£7.5220',
13378
+ formattedPriceWithoutCurrencySymbol: '7.50',
13379
+ currencySymbol: '£',
13380
+ vatRatePercentage: 20,
13381
+ valueInPence: 999900
13382
+ },
13383
+ displayPriceExclusiveVat: {
13384
+ currencyIso: 'GBP',
13385
+ value: 9998,
13386
+ priceType: 'BUY',
13387
+ formattedValue: '£6.25',
13388
+ formattedPriceWithoutCurrencySymbol: '6.25',
13389
+ currencySymbol: '£',
13390
+ valueInPence: 999800
13391
+ }
13392
+ }
13393
+ }, {
13394
+ baseProduct: {
13395
+ code: '221048',
13396
+ name: 'Wickes Paint Tray - 9in',
13397
+ url: '/Wickes-Paint-Tray---9in/p/221048',
13398
+ purchasable: true,
13399
+ productType: 'ProductModel',
13400
+ isBaseProduct: false,
13401
+ availabilityRestriction: 'NO_RESTRICTIONS',
13402
+ fulfilmentType: 'STANDARD',
13403
+ stock: {
13404
+ stockLevelStatus: {
13405
+ code: 'inStock'
13406
+ }
13407
+ },
13408
+ fulfillmentAttributes: {
13409
+ type: 'STANDARD'
13410
+ },
13411
+ images: [{
13412
+ imageType: 'PRIMARY',
13413
+ format: 'product',
13414
+ url: 'https://placehold.co/68x68?text=tray',
13415
+ altText: 'Wickes Paint Tray - 9in'
13416
+ }],
13417
+ externalAverageRating: 3.8,
13418
+ externalReviewCount: 19,
13419
+ displayPrice: {
13420
+ currencyIso: 'GBP',
13421
+ value: 4,
13422
+ priceType: 'BUY',
13423
+ formattedValue: '£4',
13424
+ formattedPriceWithoutCurrencySymbol: '4',
13425
+ currencySymbol: '£',
13426
+ vatRatePercentage: 20,
13427
+ valueInPence: 400
13428
+ },
13429
+ displayPriceExclusiveVat: {
13430
+ currencyIso: 'GBP',
13431
+ value: 3.33,
13432
+ priceType: 'BUY',
13433
+ formattedValue: '£3.33',
13434
+ formattedPriceWithoutCurrencySymbol: '3.33',
13435
+ currencySymbol: '£',
13436
+ valueInPence: 333
13437
+ }
13438
+ }
13439
+ }, {
13440
+ baseProduct: {
13441
+ code: '654221',
13442
+ name: 'Wickes Professional Masking Tape - 48mm x 50m',
13443
+ url: '/Wickes-Professional-Masking-Tape---48mm-x-50m/p/654221',
13444
+ purchasable: true,
13445
+ productType: 'ProductModel',
13446
+ isBaseProduct: false,
13447
+ availabilityRestriction: 'NO_RESTRICTIONS',
13448
+ fulfilmentType: 'STANDARD',
13449
+ stock: {
13450
+ stockLevelStatus: {
13451
+ code: 'inStock'
13452
+ }
13453
+ },
13454
+ fulfillmentAttributes: {
13455
+ type: 'STANDARD'
13456
+ },
13457
+ images: [{
13458
+ imageType: 'PRIMARY',
13459
+ format: 'product',
13460
+ url: 'https://placehold.co/68x68?text=tape',
13461
+ altText: 'Wickes Professional Masking Tape - 48mm x 50m'
13462
+ }],
13463
+ externalAverageRating: 4.6,
13464
+ externalReviewCount: 72,
13465
+ displayPrice: {
13466
+ currencyIso: 'GBP',
13467
+ value: 5.5,
13468
+ priceType: 'BUY',
13469
+ formattedValue: '£5.50',
13470
+ formattedPriceWithoutCurrencySymbol: '5.50',
13471
+ currencySymbol: '£',
13472
+ vatRatePercentage: 20,
13473
+ valueInPence: 550
13474
+ },
13475
+ displayPriceExclusiveVat: {
13476
+ currencyIso: 'GBP',
13477
+ value: 4.58,
13478
+ priceType: 'BUY',
13479
+ formattedValue: '£4.58',
13480
+ formattedPriceWithoutCurrencySymbol: '4.58',
13481
+ currencySymbol: '£',
13482
+ valueInPence: 458
13483
+ }
13484
+ }
13485
+ }, {
13486
+ baseProduct: {
13487
+ code: '782913',
13488
+ name: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m Extra Long Product Name For Two Line Truncation Test',
13489
+ url: '/Wickes-Dust-Sheet-Cotton-Twill---3-6m-x-2-7m/p/782913',
13490
+ purchasable: true,
13491
+ productType: 'ProductModel',
13492
+ isBaseProduct: false,
13493
+ availabilityRestriction: 'NO_RESTRICTIONS',
13494
+ fulfilmentType: 'STANDARD',
13495
+ stock: {
13496
+ stockLevelStatus: {
13497
+ code: 'inStock'
13498
+ }
13499
+ },
13500
+ fulfillmentAttributes: {
13501
+ type: 'STANDARD'
13502
+ },
13503
+ images: [{
13504
+ imageType: 'PRIMARY',
13505
+ format: 'product',
13506
+ url: 'https://placehold.co/68x68?text=sheet',
13507
+ altText: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m'
13508
+ }],
13509
+ externalAverageRating: 4.1,
13510
+ externalReviewCount: 34,
13511
+ displayPrice: {
13512
+ currencyIso: 'GBP',
13513
+ value: 12,
13514
+ priceType: 'BUY',
13515
+ formattedValue: '£12',
13516
+ formattedPriceWithoutCurrencySymbol: '12',
13517
+ currencySymbol: '£',
13518
+ vatRatePercentage: 20,
13519
+ valueInPence: 1200,
13520
+ wasPrice: 18
13521
+ },
13522
+ displayPriceExclusiveVat: {
13523
+ currencyIso: 'GBP',
13524
+ value: 10,
13525
+ priceType: 'BUY',
13526
+ formattedValue: '£10',
13527
+ formattedPriceWithoutCurrencySymbol: '10',
13528
+ currencySymbol: '£',
13529
+ valueInPence: 1000,
13530
+ wasPrice: 15
13531
+ }
13532
+ }
13533
+ }]
13534
+ },
12935
13535
  completeYourProject3Recomendations: [{
12936
13536
  baseProduct: {
12937
13537
  code: '191018',
@@ -16813,6 +17413,7 @@ Wick.Selectable = function () {
16813
17413
 
16814
17414
  var Wick = Wick || {};
16815
17415
  Wick.ShoppingList = {
17416
+ invalidEmailMessage: 'Please enter a valid email address',
16816
17417
  bindAll: function bindAll() {
16817
17418
  Wick.ShoppingList.bindButtons();
16818
17419
  },
@@ -16836,50 +17437,37 @@ Wick.ShoppingList = {
16836
17437
  var forms = new Array();
16837
17438
  forms.push($('#share-via-email'));
16838
17439
  $('.share-via-email-box').each(function () {
16839
- forms.push($(this).find('[type="email"]'));
17440
+ forms.push($(this).find('[name="share-list-modal"]'));
16840
17441
  });
16841
17442
  return forms;
16842
17443
  },
16843
- isFormsValid: function isFormsValid(forms) {
16844
- var oneFieldFilledIn = false;
17444
+ clearValidationErrors: function clearValidationErrors(forms) {
16845
17445
  forms.forEach(function (form) {
16846
- if ($(form).val() !== '') {
16847
- oneFieldFilledIn = true;
16848
- }
17446
+ window.Wick.Validation.removeValidationError(form);
17447
+ });
17448
+ },
17449
+ isFormsValid: function isFormsValid(forms) {
17450
+ Wick.ShoppingList.clearValidationErrors(forms);
17451
+ var oneFieldFilledIn = forms.some(function (form) {
17452
+ return $(form).val() !== '';
16849
17453
  });
16850
17454
  if (!oneFieldFilledIn) {
16851
- Wick.ShoppingList.showEmptyFormsWarning(forms[0]);
17455
+ window.Wick.Validation.displayValidationError(forms[0], Wick.ShoppingList.invalidEmailMessage);
16852
17456
  return false;
16853
17457
  }
16854
17458
  var isFormsValid = true;
16855
- forms.forEach(function (form) {
16856
- console.log(form[0]);
16857
- if (!form[0].checkValidity()) {
16858
- Wick.ShoppingList.showInvalidEmailWarning(form);
17459
+ forms.filter(function (form) {
17460
+ return $(form).val() !== '';
17461
+ }).forEach(function (form) {
17462
+ if (window.Wick.Validation.isValidEmail($(form).val())) {
17463
+ window.Wick.Validation.removeValidationError(form);
17464
+ } else {
17465
+ window.Wick.Validation.displayValidationError(form, Wick.ShoppingList.invalidEmailMessage);
16859
17466
  isFormsValid = false;
16860
17467
  }
16861
17468
  });
16862
17469
  return isFormsValid;
16863
17470
  },
16864
- showEmptyFormsWarning: function showEmptyFormsWarning(form) {
16865
- form.prop('required', true);
16866
- try {
16867
- form.get(0).reportValidity();
16868
- } catch (e) {
16869
- Wick.ShoppingList.resetFormErrors();
16870
- form.closest('.form-row').addClass('form-row_validation-error');
16871
- form.closest('.form-row__field').append('<div class="form-row__error">Please fill in the field</div>');
16872
- }
16873
- },
16874
- showInvalidEmailWarning: function showInvalidEmailWarning(form) {
16875
- try {
16876
- form.get(0).reportValidity();
16877
- } catch (e) {
16878
- Wick.ShoppingList.resetFormErrors();
16879
- form.closest('.form-row').addClass('form-row_validation-error');
16880
- form.closest('.form-row__field').append('<div class="form-row__error">Please fill in the field</div>');
16881
- }
16882
- },
16883
17471
  resetFormErrors: function resetFormErrors() {
16884
17472
  $('#share-list-form .form-row').each(function () {
16885
17473
  $(this).removeClass('form-row_validation-error');
@@ -16973,7 +17561,7 @@ $(document).ready(function () {
16973
17561
  initStoreLocatorLoadMore();
16974
17562
  });
16975
17563
 
16976
- },{"../page/utils/loader":96}],88:[function(require,module,exports){
17564
+ },{"../page/utils/loader":98}],88:[function(require,module,exports){
16977
17565
  "use strict";
16978
17566
 
16979
17567
  var Wick = window.Wick || {};
@@ -17123,6 +17711,44 @@ window.ACC.app.isVatToggleAvailable = !!$('.switch-vat input').length;
17123
17711
  },{}],94:[function(require,module,exports){
17124
17712
  "use strict";
17125
17713
 
17714
+ var Wick = window.Wick || {};
17715
+ $(document).ready(function () {
17716
+ window.setTimeout(function () {
17717
+ var $container = $('[data-why-not-add-widget]');
17718
+ var mockDataKey = $container.data('mock-key');
17719
+ var payloadData = Wick.FEMock.dataBloomreach[mockDataKey];
17720
+ Wick.BloomreachWidget.init('whyNotAdd', payloadData);
17721
+ }, 3000);
17722
+ });
17723
+
17724
+ },{}],95:[function(require,module,exports){
17725
+ "use strict";
17726
+
17727
+ var Wick = window.Wick || {};
17728
+ function simulateHybrisSendingHtml() {
17729
+ var htmlFromHybris = Wick.FEMock.cartPDP;
17730
+ window.dispatchEvent(new CustomEvent('productAddedToCart', {
17731
+ detail: {
17732
+ html: htmlFromHybris
17733
+ }
17734
+ }));
17735
+ }
17736
+ function bindWhyNotAddToCartEvent() {
17737
+ $(window).off('addToCart.whyNotAddEmulation').on('addToCart.whyNotAddEmulation', function (_ref) {
17738
+ var resolve = _ref.detail.resolve;
17739
+ setTimeout(function () {
17740
+ resolve();
17741
+ simulateHybrisSendingHtml();
17742
+ }, 3000);
17743
+ });
17744
+ }
17745
+ $(document).ready(function () {
17746
+ bindWhyNotAddToCartEvent();
17747
+ });
17748
+
17749
+ },{}],96:[function(require,module,exports){
17750
+ "use strict";
17751
+
17126
17752
  var Wick = window.Wick = window.Wick || {};
17127
17753
  Wick.Wismo = function () {
17128
17754
  Wick.SnackBar.init();
@@ -17152,7 +17778,7 @@ Wick.Wismo = function () {
17152
17778
  });
17153
17779
  }();
17154
17780
 
17155
- },{}],95:[function(require,module,exports){
17781
+ },{}],97:[function(require,module,exports){
17156
17782
  "use strict";
17157
17783
 
17158
17784
  var Wick = Wick || {};
@@ -17231,7 +17857,7 @@ Wick.YourDetails = function () {
17231
17857
  });
17232
17858
  }();
17233
17859
 
17234
- },{}],96:[function(require,module,exports){
17860
+ },{}],98:[function(require,module,exports){
17235
17861
  "use strict";
17236
17862
 
17237
17863
  Object.defineProperty(exports, "__esModule", {
@@ -17257,7 +17883,7 @@ function hideLoader(loaderSelector) {
17257
17883
  $(defineLoaderWrapper(loaderSelector)).addClass(HIDDEN_CLASS_NAME);
17258
17884
  }
17259
17885
 
17260
- },{"../../../elements/loader.hbs":25}],97:[function(require,module,exports){
17886
+ },{"../../../elements/loader.hbs":25}],99:[function(require,module,exports){
17261
17887
  "use strict";
17262
17888
 
17263
17889
  Object.defineProperty(exports, "__esModule", {
@@ -17494,4 +18120,4 @@ function createShowMoreLess() {
17494
18120
  };
17495
18121
  }
17496
18122
 
17497
- },{"../../../elements/btn.hbs":24}]},{},[26,27,28,29,30,31,32,33,34,35,36,37,38,39,44,40,41,42,43,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,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]);
18123
+ },{"../../../elements/btn.hbs":24}]},{},[26,27,28,29,30,31,32,33,34,35,36,37,38,39,44,40,41,42,43,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,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97]);