wickes-css2 2.111.0-why-not-add-refactor-fix.2 → 2.111.0

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 (40) hide show
  1. package/Readme.md +1 -2
  2. package/build/css/kitchen-plp-main.css +1 -1
  3. package/build/css/pdp-main-before-combine.css +1 -1
  4. package/build/css/pdp-main-non-critical.css +1 -1
  5. package/build/css/pdp-main.css +1 -1
  6. package/build/js/bloomreach-widget.min.js +1 -1
  7. package/build/js/emulation.min.js +8 -334
  8. package/build/js/page/{bloomreach-widget/complete-your-project-widget.js → bloomreach-widget.js} +359 -205
  9. package/package.json +1 -1
  10. package/src/components/.DS_Store +0 -0
  11. package/src/components/bloomreach/complete-card.hbs +32 -4
  12. package/src/components/pdp-price-actions.hbs +2 -2
  13. package/src/components/price-block-v2.hbs +0 -2
  14. package/src/data/data_kitchen-plp.json +7 -16
  15. package/src/js/emulation/bloomreach-widget-loading.js +2 -2
  16. package/src/js/emulation/mock.js +0 -309
  17. package/src/js/page/.DS_Store +0 -0
  18. package/src/js/page/{bloomreach-widget/complete-your-project-widget.js → bloomreach-widget.js} +359 -205
  19. package/src/page_product-details-bloomreach.html +1 -1
  20. package/src/page_product-details-with-global-search-v2.html +1 -2
  21. package/src/scss/components/bloomreach/_bloomreach.scss +0 -3
  22. package/src/scss/components/bloomreach/_complete-card.scss +38 -0
  23. package/src/scss/components/kitchen/_colour-swatches.scss +9 -3
  24. package/src/sitemap.html +4 -10
  25. package/build/js/page/bloomreach-widget/bloomreach-widget.js +0 -241
  26. package/build/js/page/bloomreach-widget/why-not-add-widget.js +0 -196
  27. package/src/components/bloomreach/why-not-add-card-skeleton.hbs +0 -14
  28. package/src/components/bloomreach/why-not-add-card.hbs +0 -73
  29. package/src/components/bloomreach/why-not-add-content.hbs +0 -41
  30. package/src/components/bloomreach/why-not-add-skeleton.hbs +0 -9
  31. package/src/components/bloomreach/why-not-add.hbs +0 -6
  32. package/src/components/reviews-rating.hbs +0 -22
  33. package/src/js/emulation/why-not-add-loading.js +0 -11
  34. package/src/js/emulation/why-not-add.js +0 -28
  35. package/src/js/page/bloomreach-widget/bloomreach-widget.js +0 -241
  36. package/src/js/page/bloomreach-widget/why-not-add-widget.js +0 -196
  37. package/src/page_product-details-with-why-not-add-single.html +0 -131
  38. package/src/scss/components/bloomreach/_reviews.scss +0 -60
  39. package/src/scss/components/bloomreach/_why-not-add-card.scss +0 -212
  40. package/src/scss/components/bloomreach/_why-not-add.scss +0 -143
@@ -4997,9 +4997,9 @@ var Wick = window.Wick || {};
4997
4997
  $(document).ready(function () {
4998
4998
  window.setTimeout(function () {
4999
4999
  var $container = $('[data-complete-widget]');
5000
- var contextKey = $container.data('mock-key');
5000
+ var contextKey = $container.data('context-key');
5001
5001
  var payloadData = Wick.FEMock.dataBloomreach[contextKey];
5002
- Wick.BloomreachWidget.init('completeYourProject', payloadData);
5002
+ Wick.BloomreachWidget.init(payloadData);
5003
5003
  }, 3000);
5004
5004
  });
5005
5005
 
@@ -5760,7 +5760,7 @@ function waitFor(getter, cb, opts) {
5760
5760
  });
5761
5761
  })();
5762
5762
 
5763
- },{"../page/utils/show-more-less":99}],52:[function(require,module,exports){
5763
+ },{"../page/utils/show-more-less":97}],52:[function(require,module,exports){
5764
5764
  "use strict";
5765
5765
 
5766
5766
  var Wick = Wick || {};
@@ -12932,294 +12932,6 @@ Wick.FEMock = {
12932
12932
  }));
12933
12933
  },
12934
12934
  dataBloomreach: {
12935
- whyNotAddRecommendationsSingle: {
12936
- recommendedProducts: [{
12937
- baseProduct: {
12938
- code: '153731',
12939
- name: 'Wickes Trade Paint Roller Set - 9in',
12940
- url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
12941
- purchasable: true,
12942
- productType: 'ProductModel',
12943
- isBaseProduct: false,
12944
- availabilityRestriction: 'NO_RESTRICTIONS',
12945
- fulfilmentType: 'STANDARD',
12946
- stock: {
12947
- stockLevelStatus: {
12948
- code: 'inStock'
12949
- }
12950
- },
12951
- fulfillmentAttributes: {
12952
- type: 'STANDARD'
12953
- },
12954
- images: [{
12955
- imageType: 'PRIMARY',
12956
- format: 'product',
12957
- url: 'https://placehold.co/68x68?text=roller',
12958
- altText: 'Wickes Trade Paint Roller Set - 9in'
12959
- }],
12960
- externalAverageRating: 5,
12961
- externalReviewCount: 100,
12962
- displayPrice: {
12963
- currencyIso: 'GBP',
12964
- value: 9999,
12965
- priceType: 'BUY',
12966
- formattedValue: '£9,999.00',
12967
- formattedPriceWithoutCurrencySymbol: '16',
12968
- currencySymbol: '£',
12969
- vatRatePercentage: 20,
12970
- valueInPence: 999900,
12971
- wasPrice: 30
12972
- },
12973
- displayPriceExclusiveVat: {
12974
- currencyIso: 'GBP',
12975
- value: 9998,
12976
- priceType: 'BUY',
12977
- formattedValue: '£9,998.00',
12978
- formattedPriceWithoutCurrencySymbol: '13.33',
12979
- currencySymbol: '£',
12980
- valueInPence: 999800,
12981
- wasPrice: 25
12982
- }
12983
- }
12984
- }]
12985
- },
12986
- whyNotAddRecommendations: {
12987
- recommendedProducts: [{
12988
- baseProduct: {
12989
- code: '153731',
12990
- name: 'Wickes Trade Paint Roller Set - 9in',
12991
- url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
12992
- purchasable: true,
12993
- productType: 'ProductModel',
12994
- isBaseProduct: false,
12995
- availabilityRestriction: 'NO_RESTRICTIONS',
12996
- fulfilmentType: 'STANDARD',
12997
- stock: {
12998
- stockLevelStatus: {
12999
- code: 'inStock'
13000
- }
13001
- },
13002
- fulfillmentAttributes: {
13003
- type: 'STANDARD'
13004
- },
13005
- images: [{
13006
- imageType: 'PRIMARY',
13007
- format: 'product',
13008
- url: 'https://placehold.co/68x68?text=roller',
13009
- altText: 'Wickes Trade Paint Roller Set - 9in'
13010
- }],
13011
- externalAverageRating: 5,
13012
- externalReviewCount: 100,
13013
- displayPrice: {
13014
- currencyIso: 'GBP',
13015
- value: 9999,
13016
- priceType: 'BUY',
13017
- formattedValue: '£9,999.00',
13018
- formattedPriceWithoutCurrencySymbol: '16',
13019
- currencySymbol: '£',
13020
- vatRatePercentage: 20,
13021
- valueInPence: 999900,
13022
- wasPrice: 3000
13023
- },
13024
- displayPriceExclusiveVat: {
13025
- currencyIso: 'GBP',
13026
- value: 9998,
13027
- priceType: 'BUY',
13028
- formattedValue: '£9,998.00',
13029
- formattedPriceWithoutCurrencySymbol: '13.33',
13030
- currencySymbol: '£',
13031
- valueInPence: 999800,
13032
- wasPrice: 2500
13033
- }
13034
- }
13035
- }, {
13036
- baseProduct: {
13037
- code: '349137',
13038
- name: 'Wickes Microfibre Paint Roller Sleeve - 9in',
13039
- url: '/Wickes-Microfibre-Paint-Roller-Sleeve---9in/p/349137',
13040
- purchasable: true,
13041
- productType: 'ProductModel',
13042
- isBaseProduct: false,
13043
- availabilityRestriction: 'NO_RESTRICTIONS',
13044
- fulfilmentType: 'STANDARD',
13045
- stock: {
13046
- stockLevelStatus: {
13047
- code: 'inStock'
13048
- }
13049
- },
13050
- fulfillmentAttributes: {
13051
- type: 'STANDARD'
13052
- },
13053
- images: [{
13054
- imageType: 'PRIMARY',
13055
- format: 'product',
13056
- url: 'https://placehold.co/68x68?text=sleeve',
13057
- altText: 'Wickes Microfibre Paint Roller Sleeve - 9in'
13058
- }],
13059
- externalAverageRating: 4.2,
13060
- externalReviewCount: 48,
13061
- displayPrice: {
13062
- currencyIso: 'GBP',
13063
- value: 9999,
13064
- priceType: 'BUY',
13065
- formattedValue: '£7.5220',
13066
- formattedPriceWithoutCurrencySymbol: '7.50',
13067
- currencySymbol: '£',
13068
- vatRatePercentage: 20,
13069
- valueInPence: 999900
13070
- },
13071
- displayPriceExclusiveVat: {
13072
- currencyIso: 'GBP',
13073
- value: 9998,
13074
- priceType: 'BUY',
13075
- formattedValue: '£6.25',
13076
- formattedPriceWithoutCurrencySymbol: '6.25',
13077
- currencySymbol: '£',
13078
- valueInPence: 999800
13079
- }
13080
- }
13081
- }, {
13082
- baseProduct: {
13083
- code: '221048',
13084
- name: 'Wickes Paint Tray - 9in',
13085
- url: '/Wickes-Paint-Tray---9in/p/221048',
13086
- purchasable: true,
13087
- productType: 'ProductModel',
13088
- isBaseProduct: false,
13089
- availabilityRestriction: 'NO_RESTRICTIONS',
13090
- fulfilmentType: 'STANDARD',
13091
- stock: {
13092
- stockLevelStatus: {
13093
- code: 'inStock'
13094
- }
13095
- },
13096
- fulfillmentAttributes: {
13097
- type: 'STANDARD'
13098
- },
13099
- images: [{
13100
- imageType: 'PRIMARY',
13101
- format: 'product',
13102
- url: 'https://placehold.co/68x68?text=tray',
13103
- altText: 'Wickes Paint Tray - 9in'
13104
- }],
13105
- externalAverageRating: 3.8,
13106
- externalReviewCount: 19,
13107
- displayPrice: {
13108
- currencyIso: 'GBP',
13109
- value: 4,
13110
- priceType: 'BUY',
13111
- formattedValue: '£4',
13112
- formattedPriceWithoutCurrencySymbol: '4',
13113
- currencySymbol: '£',
13114
- vatRatePercentage: 20,
13115
- valueInPence: 400
13116
- },
13117
- displayPriceExclusiveVat: {
13118
- currencyIso: 'GBP',
13119
- value: 3.33,
13120
- priceType: 'BUY',
13121
- formattedValue: '£3.33',
13122
- formattedPriceWithoutCurrencySymbol: '3.33',
13123
- currencySymbol: '£',
13124
- valueInPence: 333
13125
- }
13126
- }
13127
- }, {
13128
- baseProduct: {
13129
- code: '654221',
13130
- name: 'Wickes Professional Masking Tape - 48mm x 50m',
13131
- url: '/Wickes-Professional-Masking-Tape---48mm-x-50m/p/654221',
13132
- purchasable: true,
13133
- productType: 'ProductModel',
13134
- isBaseProduct: false,
13135
- availabilityRestriction: 'NO_RESTRICTIONS',
13136
- fulfilmentType: 'STANDARD',
13137
- stock: {
13138
- stockLevelStatus: {
13139
- code: 'inStock'
13140
- }
13141
- },
13142
- fulfillmentAttributes: {
13143
- type: 'STANDARD'
13144
- },
13145
- images: [{
13146
- imageType: 'PRIMARY',
13147
- format: 'product',
13148
- url: 'https://placehold.co/68x68?text=tape',
13149
- altText: 'Wickes Professional Masking Tape - 48mm x 50m'
13150
- }],
13151
- externalAverageRating: 4.6,
13152
- externalReviewCount: 72,
13153
- displayPrice: {
13154
- currencyIso: 'GBP',
13155
- value: 5.5,
13156
- priceType: 'BUY',
13157
- formattedValue: '£5.50',
13158
- formattedPriceWithoutCurrencySymbol: '5.50',
13159
- currencySymbol: '£',
13160
- vatRatePercentage: 20,
13161
- valueInPence: 550
13162
- },
13163
- displayPriceExclusiveVat: {
13164
- currencyIso: 'GBP',
13165
- value: 4.58,
13166
- priceType: 'BUY',
13167
- formattedValue: '£4.58',
13168
- formattedPriceWithoutCurrencySymbol: '4.58',
13169
- currencySymbol: '£',
13170
- valueInPence: 458
13171
- }
13172
- }
13173
- }, {
13174
- baseProduct: {
13175
- code: '782913',
13176
- name: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m Extra Long Product Name For Two Line Truncation Test',
13177
- url: '/Wickes-Dust-Sheet-Cotton-Twill---3-6m-x-2-7m/p/782913',
13178
- purchasable: true,
13179
- productType: 'ProductModel',
13180
- isBaseProduct: false,
13181
- availabilityRestriction: 'NO_RESTRICTIONS',
13182
- fulfilmentType: 'STANDARD',
13183
- stock: {
13184
- stockLevelStatus: {
13185
- code: 'inStock'
13186
- }
13187
- },
13188
- fulfillmentAttributes: {
13189
- type: 'STANDARD'
13190
- },
13191
- images: [{
13192
- imageType: 'PRIMARY',
13193
- format: 'product',
13194
- url: 'https://placehold.co/68x68?text=sheet',
13195
- altText: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m'
13196
- }],
13197
- externalAverageRating: 4.1,
13198
- externalReviewCount: 34,
13199
- displayPrice: {
13200
- currencyIso: 'GBP',
13201
- value: 12,
13202
- priceType: 'BUY',
13203
- formattedValue: '£12',
13204
- formattedPriceWithoutCurrencySymbol: '12',
13205
- currencySymbol: '£',
13206
- vatRatePercentage: 20,
13207
- valueInPence: 1200,
13208
- wasPrice: 18
13209
- },
13210
- displayPriceExclusiveVat: {
13211
- currencyIso: 'GBP',
13212
- value: 10,
13213
- priceType: 'BUY',
13214
- formattedValue: '£10',
13215
- formattedPriceWithoutCurrencySymbol: '10',
13216
- currencySymbol: '£',
13217
- valueInPence: 1000,
13218
- wasPrice: 15
13219
- }
13220
- }
13221
- }]
13222
- },
13223
12935
  completeYourProject3Recomendations: [{
13224
12936
  baseProduct: {
13225
12937
  code: '191018',
@@ -17261,7 +16973,7 @@ $(document).ready(function () {
17261
16973
  initStoreLocatorLoadMore();
17262
16974
  });
17263
16975
 
17264
- },{"../page/utils/loader":98}],88:[function(require,module,exports){
16976
+ },{"../page/utils/loader":96}],88:[function(require,module,exports){
17265
16977
  "use strict";
17266
16978
 
17267
16979
  var Wick = window.Wick || {};
@@ -17411,44 +17123,6 @@ window.ACC.app.isVatToggleAvailable = !!$('.switch-vat input').length;
17411
17123
  },{}],94:[function(require,module,exports){
17412
17124
  "use strict";
17413
17125
 
17414
- var Wick = window.Wick || {};
17415
- $(document).ready(function () {
17416
- window.setTimeout(function () {
17417
- var $container = $('[data-why-not-add-widget]');
17418
- var mockDataKey = $container.data('mock-key');
17419
- var payloadData = Wick.FEMock.dataBloomreach[mockDataKey];
17420
- Wick.BloomreachWidget.init('whyNotAdd', payloadData);
17421
- }, 3000);
17422
- });
17423
-
17424
- },{}],95:[function(require,module,exports){
17425
- "use strict";
17426
-
17427
- var Wick = window.Wick || {};
17428
- function simulateHybrisSendingHtml() {
17429
- var htmlFromHybris = Wick.FEMock.cartPDP;
17430
- window.dispatchEvent(new CustomEvent('productAddedToCart', {
17431
- detail: {
17432
- html: htmlFromHybris
17433
- }
17434
- }));
17435
- }
17436
- function bindWhyNotAddToCartEvent() {
17437
- $(window).off('addToCart.whyNotAddEmulation').on('addToCart.whyNotAddEmulation', function (_ref) {
17438
- var resolve = _ref.detail.resolve;
17439
- setTimeout(function () {
17440
- resolve();
17441
- simulateHybrisSendingHtml();
17442
- }, 3000);
17443
- });
17444
- }
17445
- $(document).ready(function () {
17446
- bindWhyNotAddToCartEvent();
17447
- });
17448
-
17449
- },{}],96:[function(require,module,exports){
17450
- "use strict";
17451
-
17452
17126
  var Wick = window.Wick = window.Wick || {};
17453
17127
  Wick.Wismo = function () {
17454
17128
  Wick.SnackBar.init();
@@ -17478,7 +17152,7 @@ Wick.Wismo = function () {
17478
17152
  });
17479
17153
  }();
17480
17154
 
17481
- },{}],97:[function(require,module,exports){
17155
+ },{}],95:[function(require,module,exports){
17482
17156
  "use strict";
17483
17157
 
17484
17158
  var Wick = Wick || {};
@@ -17557,7 +17231,7 @@ Wick.YourDetails = function () {
17557
17231
  });
17558
17232
  }();
17559
17233
 
17560
- },{}],98:[function(require,module,exports){
17234
+ },{}],96:[function(require,module,exports){
17561
17235
  "use strict";
17562
17236
 
17563
17237
  Object.defineProperty(exports, "__esModule", {
@@ -17583,7 +17257,7 @@ function hideLoader(loaderSelector) {
17583
17257
  $(defineLoaderWrapper(loaderSelector)).addClass(HIDDEN_CLASS_NAME);
17584
17258
  }
17585
17259
 
17586
- },{"../../../elements/loader.hbs":25}],99:[function(require,module,exports){
17260
+ },{"../../../elements/loader.hbs":25}],97:[function(require,module,exports){
17587
17261
  "use strict";
17588
17262
 
17589
17263
  Object.defineProperty(exports, "__esModule", {
@@ -17820,4 +17494,4 @@ function createShowMoreLess() {
17820
17494
  };
17821
17495
  }
17822
17496
 
17823
- },{"../../../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]);
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]);