wickes-css2 2.109.0-develop.5 → 2.109.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.
- package/Readme.md +0 -1
- package/build/css/components/card-product-banner.css +1 -1
- package/build/css/components/special-opening-schedule-v2.css +1 -1
- package/build/css/components/special-opening-schedule.css +1 -1
- package/build/css/emulation.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/my-account-main.css +1 -1
- package/build/css/pages/checkout-new.css +1 -1
- package/build/css/pages/page_merged-basket.css +1 -1
- package/build/css/pages/page_store-locator-details.css +1 -1
- package/build/css/pages/page_store-locator.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/js/basket.min.js +1 -1
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/emulation.min.js +340 -110
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/page/components/store-locator-cards.js +76 -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 +1 -1
- package/build/js/store-locator-cards.min.js +1 -0
- package/package.json +1 -1
- package/src/components/card-store-locator.hbs +70 -33
- package/src/components/card_bloomreach_media_banner.hbs +10 -0
- package/src/components/card_sponsor_banner.hbs +1 -1
- package/src/data/data_locators.json +441 -135
- package/src/data/data_search-results_v2.json +11 -0
- package/src/js/components/general/accordion.js +25 -2
- package/src/js/emulation/banner-placement-manager.js +235 -34
- package/src/js/emulation/gift-cards.js +1 -1
- package/src/js/emulation/store-locator-load-more.js +69 -0
- package/src/js/page/components/store-locator-cards.js +76 -0
- package/src/page_plp_bloomreach.html +81 -0
- package/src/page_plp_v2.html +5 -0
- package/src/page_store-locator-list.html +18 -28
- package/src/scss/components/_card-store-locator.scss +139 -32
- package/src/scss/components/card-product-banner.scss +35 -35
- package/src/scss/components/special-opening-schedule-v2.scss +2 -6
- package/src/scss/components/special-opening-schedule.scss +17 -4
- package/src/scss/emulation.scss +0 -6
- package/src/scss/pages/page_store-locator.scss +48 -26
- package/src/scss/store-locator-main.scss +15 -1
- package/src/sitemap.html +1 -0
- package/src/js/emulation/store-locator-list.js +0 -19
|
@@ -1430,6 +1430,39 @@ module.exports = HandlebarsCompiler.template({"1":function(container,depth0,help
|
|
|
1430
1430
|
},"useData":true});
|
|
1431
1431
|
|
|
1432
1432
|
},{"hbsfy/runtime":23}],25:[function(require,module,exports){
|
|
1433
|
+
// hbsfy compiled Handlebars template
|
|
1434
|
+
var HandlebarsCompiler = require('hbsfy/runtime');
|
|
1435
|
+
module.exports = HandlebarsCompiler.template({"1":function(container,depth0,helpers,partials,data) {
|
|
1436
|
+
return "d-none";
|
|
1437
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
1438
|
+
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
1439
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
1440
|
+
return parent[propertyName];
|
|
1441
|
+
}
|
|
1442
|
+
return undefined
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1445
|
+
return " <h2>"
|
|
1446
|
+
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"titleLoader") || (depth0 != null ? lookupProperty(depth0,"titleLoader") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"titleLoader","hash":{},"data":data,"loc":{"start":{"line":8,"column":12},"end":{"line":8,"column":27}}}) : helper)))
|
|
1447
|
+
+ "</h2>\n";
|
|
1448
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1449
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
1450
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
1451
|
+
return parent[propertyName];
|
|
1452
|
+
}
|
|
1453
|
+
return undefined
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
return "<div class=\"loader-wrapper "
|
|
1457
|
+
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"modifier") || (depth0 != null ? lookupProperty(depth0,"modifier") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"modifier","hash":{},"data":data,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":39}}}) : helper)))
|
|
1458
|
+
+ " "
|
|
1459
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"hidden") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":67}}})) != null ? stack1 : "")
|
|
1460
|
+
+ "\">\n <div class=\"loader-spinner\">\n <svg class=\"circular-loader\" viewBox=\"25 25 50 50\">\n <circle class=\"loader-path\" cx=\"50\" cy=\"50\" r=\"20\" fill=\"none\"/>\n </svg>\n </div>\n"
|
|
1461
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"titleLoader") : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":7,"column":4},"end":{"line":9,"column":11}}})) != null ? stack1 : "")
|
|
1462
|
+
+ "</div>\n";
|
|
1463
|
+
},"useData":true});
|
|
1464
|
+
|
|
1465
|
+
},{"hbsfy/runtime":23}],26:[function(require,module,exports){
|
|
1433
1466
|
"use strict";
|
|
1434
1467
|
|
|
1435
1468
|
function returnMembers() {
|
|
@@ -1475,7 +1508,7 @@ $(document).ready(function () {
|
|
|
1475
1508
|
initAccountHubFunctionality();
|
|
1476
1509
|
});
|
|
1477
1510
|
|
|
1478
|
-
},{}],
|
|
1511
|
+
},{}],27:[function(require,module,exports){
|
|
1479
1512
|
"use strict";
|
|
1480
1513
|
|
|
1481
1514
|
var ALREADY_EXIST_EMAIL = 'fe@wickes.co.uk';
|
|
@@ -1529,7 +1562,7 @@ $(document).ready(function () {
|
|
|
1529
1562
|
initAccountMembersFunctionality();
|
|
1530
1563
|
});
|
|
1531
1564
|
|
|
1532
|
-
},{}],
|
|
1565
|
+
},{}],28:[function(require,module,exports){
|
|
1533
1566
|
"use strict";
|
|
1534
1567
|
|
|
1535
1568
|
var validProjectListId = ['45d94c37-06b1-4961-9fae-89d9082bc97b', 'AAA123456', 'AA123456'];
|
|
@@ -1565,7 +1598,7 @@ $(document).ready(function () {
|
|
|
1565
1598
|
initAddProjectListId();
|
|
1566
1599
|
});
|
|
1567
1600
|
|
|
1568
|
-
},{}],
|
|
1601
|
+
},{}],29:[function(require,module,exports){
|
|
1569
1602
|
"use strict";
|
|
1570
1603
|
|
|
1571
1604
|
var Wick = Wick || {};
|
|
@@ -1610,7 +1643,7 @@ Wick.addToAnyCustomisation = {
|
|
|
1610
1643
|
};
|
|
1611
1644
|
Wick.addToAnyCustomisation.init();
|
|
1612
1645
|
|
|
1613
|
-
},{}],
|
|
1646
|
+
},{}],30:[function(require,module,exports){
|
|
1614
1647
|
"use strict";
|
|
1615
1648
|
|
|
1616
1649
|
var Wick = Wick || {};
|
|
@@ -1727,57 +1760,189 @@ Wick.Autocomplete = function () {
|
|
|
1727
1760
|
init();
|
|
1728
1761
|
}();
|
|
1729
1762
|
|
|
1730
|
-
},{}],
|
|
1763
|
+
},{}],31:[function(require,module,exports){
|
|
1731
1764
|
"use strict";
|
|
1732
1765
|
|
|
1733
1766
|
// Simulate prompt for input
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1767
|
+
|
|
1768
|
+
function parseSlots(value) {
|
|
1769
|
+
if (!value) {
|
|
1770
|
+
return [];
|
|
1771
|
+
}
|
|
1772
|
+
return String(value).split(',').map(function (item) {
|
|
1773
|
+
return parseInt(item.trim(), 10);
|
|
1774
|
+
}).filter(function (item) {
|
|
1775
|
+
return Number.isInteger(item) && item >= 0;
|
|
1776
|
+
});
|
|
1777
|
+
}
|
|
1778
|
+
function isBloomreachDisabled(slots) {
|
|
1779
|
+
return !slots.length || slots.every(function (s) {
|
|
1780
|
+
return s === 0;
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1783
|
+
function toggleHybrisProductBanners(inputs) {
|
|
1784
|
+
var banners = document.querySelectorAll('.card-product-banner');
|
|
1785
|
+
var disabled = isBloomreachDisabled(inputs.bloomreachSlots);
|
|
1786
|
+
banners.forEach(function (banner) {
|
|
1787
|
+
if (disabled) {
|
|
1788
|
+
banner.classList.remove('d-none');
|
|
1789
|
+
banner.classList.remove('card-product-banner--inactive');
|
|
1790
|
+
} else {
|
|
1791
|
+
banner.classList.add('d-none');
|
|
1792
|
+
banner.classList.add('card-product-banner--inactive');
|
|
1793
|
+
}
|
|
1794
|
+
});
|
|
1743
1795
|
}
|
|
1744
1796
|
function getPositionAttr() {
|
|
1745
1797
|
var isMobile = Wick.BannerPlacementManager.isMobileResolution();
|
|
1746
1798
|
return isMobile ? 'data-mobile-position' : 'data-desktop-position';
|
|
1747
1799
|
}
|
|
1748
|
-
function
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1800
|
+
function setUnifiedPosition(el, slot) {
|
|
1801
|
+
el.setAttribute('data-desktop-position', String(slot));
|
|
1802
|
+
el.setAttribute('data-mobile-position', String(slot));
|
|
1803
|
+
}
|
|
1804
|
+
function hasLegacyBanners() {
|
|
1805
|
+
return Boolean(document.querySelector('.card-product-banner') || document.querySelector('.card-sponsor-product') || document.querySelector('.card-sponsor-banner'));
|
|
1806
|
+
}
|
|
1807
|
+
function getInputs() {
|
|
1808
|
+
var hasLegacy = hasLegacyBanners();
|
|
1809
|
+
var bloomreachSlots = parseSlots(prompt('Enter Bloomreach Banner Slots (comma-separated):', '3') || '');
|
|
1810
|
+
if (!hasLegacy) {
|
|
1811
|
+
return {
|
|
1812
|
+
bloomreachSlots: bloomreachSlots,
|
|
1813
|
+
sponsorProductPositions: [],
|
|
1814
|
+
sponsorBannerPositions: [],
|
|
1815
|
+
productBannerPositions: []
|
|
1816
|
+
};
|
|
1817
|
+
}
|
|
1818
|
+
var productBannerPositions = prompt('Enter Product Banner Positions (comma-separated):', '2') || '';
|
|
1819
|
+
var sponsorProductPositions = prompt('Enter Sponsor Product Positions (comma-separated):', '6,7,8') || '';
|
|
1820
|
+
var sponsorBannerPositions = prompt('Enter Sponsor Banner Positions (comma-separated):', '10') || '';
|
|
1821
|
+
return {
|
|
1822
|
+
productBannerPositions: parseSlots(productBannerPositions),
|
|
1823
|
+
sponsorProductPositions: parseSlots(sponsorProductPositions),
|
|
1824
|
+
sponsorBannerPositions: parseSlots(sponsorBannerPositions),
|
|
1825
|
+
bloomreachSlots: bloomreachSlots
|
|
1826
|
+
};
|
|
1827
|
+
}
|
|
1828
|
+
function updateBannerPositions(selector, positions) {
|
|
1829
|
+
if (!(positions !== null && positions !== void 0 && positions.length)) {
|
|
1830
|
+
return;
|
|
1831
|
+
}
|
|
1832
|
+
var positionAttr = getPositionAttr();
|
|
1833
|
+
var elements = document.querySelectorAll(selector);
|
|
1834
|
+
elements.forEach(function (el, index) {
|
|
1835
|
+
if (positions[index] !== undefined) {
|
|
1836
|
+
el.setAttribute(positionAttr, String(positions[index]));
|
|
1753
1837
|
}
|
|
1754
1838
|
});
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1839
|
+
}
|
|
1840
|
+
function updatePositions(inputs) {
|
|
1841
|
+
updateBannerPositions('.card-product-banner', inputs.productBannerPositions);
|
|
1842
|
+
updateBannerPositions('.card-sponsor-product', inputs.sponsorProductPositions);
|
|
1843
|
+
updateBannerPositions('.card-sponsor-banner', inputs.sponsorBannerPositions);
|
|
1844
|
+
}
|
|
1845
|
+
function patchBannerPlacementManagerForBloomreachEmulation(inputs) {
|
|
1846
|
+
var _window$Wick, _inputs$bloomreachSlo;
|
|
1847
|
+
var manager = (_window$Wick = window.Wick) === null || _window$Wick === void 0 ? void 0 : _window$Wick.BannerPlacementManager;
|
|
1848
|
+
if (!manager || manager.__bloomreachEmulationPatched) {
|
|
1849
|
+
return;
|
|
1850
|
+
}
|
|
1851
|
+
var shouldDisableProductBanners = Boolean((_inputs$bloomreachSlo = inputs.bloomreachSlots) === null || _inputs$bloomreachSlo === void 0 ? void 0 : _inputs$bloomreachSlo.length);
|
|
1852
|
+
manager.el.bloomreachBanners = '.card-bloomreach-media-banner';
|
|
1853
|
+
manager.el.allBanners = shouldDisableProductBanners ? '.card-bloomreach-media-banner, .card-sponsor-banner, .card-sponsor-product' : '.card-product-banner, .card-bloomreach-media-banner, .card-sponsor-banner, .card-sponsor-product';
|
|
1854
|
+
manager.el.allListSlots = shouldDisableProductBanners ? '.product-card, .card-bloomreach-media-banner, .card-sponsor-banner, .card-sponsor-product' : '.product-card, .card-product-banner, .card-bloomreach-media-banner, .card-sponsor-banner, .card-sponsor-product';
|
|
1855
|
+
manager.classes.bloomreachBanners = 'card-bloomreach-media-banner';
|
|
1856
|
+
manager.getListSlots = function () {
|
|
1857
|
+
return $(manager.el.productsWrap).children(manager.el.allListSlots).filter(function () {
|
|
1858
|
+
if ($(this).hasClass(manager.classes.productBanners) || $(this).hasClass(manager.classes.bloomreachBanners)) {
|
|
1859
|
+
var position = manager.getBannerPosition(this);
|
|
1860
|
+
var productsCount = manager.getListLength();
|
|
1861
|
+
return position <= productsCount;
|
|
1862
|
+
}
|
|
1863
|
+
return true;
|
|
1864
|
+
});
|
|
1865
|
+
};
|
|
1866
|
+
manager.arrangeBannersInRightOrder = function () {
|
|
1867
|
+
var $allBanners = $(manager.el.allBanners);
|
|
1868
|
+
function getSameSlotInsertionOrder(el) {
|
|
1869
|
+
if ($(el).hasClass(manager.classes.bloomreachBanners)) {
|
|
1870
|
+
return 0;
|
|
1871
|
+
}
|
|
1872
|
+
if ($(el).hasClass(manager.classes.sponsorBanners)) {
|
|
1873
|
+
return 1;
|
|
1874
|
+
}
|
|
1875
|
+
if ($(el).hasClass(manager.classes.sponsorProducts)) {
|
|
1876
|
+
return 2;
|
|
1877
|
+
}
|
|
1878
|
+
if ($(el).hasClass(manager.classes.productBanners)) {
|
|
1879
|
+
return 3;
|
|
1880
|
+
}
|
|
1881
|
+
return 4;
|
|
1759
1882
|
}
|
|
1883
|
+
$allBanners.sort(function (a, b) {
|
|
1884
|
+
var positionA = manager.getBannerPosition(a);
|
|
1885
|
+
var positionB = manager.getBannerPosition(b);
|
|
1886
|
+
if (positionA !== positionB) {
|
|
1887
|
+
return positionA - positionB;
|
|
1888
|
+
}
|
|
1889
|
+
return getSameSlotInsertionOrder(a) - getSameSlotInsertionOrder(b);
|
|
1890
|
+
}).appendTo(manager.el.productsWrap);
|
|
1891
|
+
};
|
|
1892
|
+
manager.__bloomreachEmulationPatched = true;
|
|
1893
|
+
}
|
|
1894
|
+
function rebuildBloomreachBannersForEmulation(inputs) {
|
|
1895
|
+
var slots = inputs.bloomreachSlots || [];
|
|
1896
|
+
var productsWrap = document.querySelector('.products-list.products-list-v2');
|
|
1897
|
+
if (!productsWrap) {
|
|
1898
|
+
return;
|
|
1899
|
+
}
|
|
1900
|
+
var existingBanners = document.querySelectorAll('.card-bloomreach-media-banner');
|
|
1901
|
+
if (isBloomreachDisabled(slots)) {
|
|
1902
|
+
existingBanners.forEach(function (banner) {
|
|
1903
|
+
return banner.remove();
|
|
1904
|
+
});
|
|
1905
|
+
return;
|
|
1906
|
+
}
|
|
1907
|
+
if (!existingBanners.length) {
|
|
1908
|
+
return;
|
|
1909
|
+
}
|
|
1910
|
+
var template = existingBanners[0].cloneNode(true);
|
|
1911
|
+
existingBanners.forEach(function (banner) {
|
|
1912
|
+
return banner.remove();
|
|
1760
1913
|
});
|
|
1761
|
-
var
|
|
1762
|
-
|
|
1763
|
-
if (
|
|
1764
|
-
|
|
1765
|
-
|
|
1914
|
+
var fragment = document.createDocumentFragment();
|
|
1915
|
+
slots.forEach(function (slot) {
|
|
1916
|
+
if (slot === 0) return;
|
|
1917
|
+
var node = template.cloneNode(true);
|
|
1918
|
+
node.removeAttribute('data-slots');
|
|
1919
|
+
setUnifiedPosition(node, slot);
|
|
1920
|
+
fragment.appendChild(node);
|
|
1766
1921
|
});
|
|
1922
|
+
productsWrap.appendChild(fragment);
|
|
1767
1923
|
}
|
|
1768
|
-
function
|
|
1924
|
+
function applyBloomreachEmulation() {
|
|
1769
1925
|
var inputs = getInputs();
|
|
1770
1926
|
updatePositions(inputs);
|
|
1927
|
+
var isDisabled = isBloomreachDisabled(inputs.bloomreachSlots);
|
|
1928
|
+
toggleHybrisProductBanners(inputs);
|
|
1929
|
+
if (!isDisabled) {
|
|
1930
|
+
patchBannerPlacementManagerForBloomreachEmulation(inputs);
|
|
1931
|
+
}
|
|
1932
|
+
rebuildBloomreachBannersForEmulation(inputs);
|
|
1933
|
+
if (window.Wick && Wick.BannerPlacementManager && typeof Wick.BannerPlacementManager.checkProductsInColumn === 'function') {
|
|
1934
|
+
Wick.BannerPlacementManager.checkProductsInColumn();
|
|
1935
|
+
}
|
|
1771
1936
|
}
|
|
1772
1937
|
$(document).ready(function () {
|
|
1773
|
-
if ($('.
|
|
1938
|
+
if ($('.products-list.products-list-v2').length) {
|
|
1774
1939
|
setTimeout(function () {
|
|
1775
|
-
|
|
1940
|
+
applyBloomreachEmulation();
|
|
1776
1941
|
}, 100);
|
|
1777
1942
|
}
|
|
1778
1943
|
});
|
|
1779
1944
|
|
|
1780
|
-
},{}],
|
|
1945
|
+
},{}],32:[function(require,module,exports){
|
|
1781
1946
|
"use strict";
|
|
1782
1947
|
|
|
1783
1948
|
window.Wick = window.Wick || {};
|
|
@@ -3841,7 +4006,7 @@ Wick.BasketData = function () {
|
|
|
3841
4006
|
};
|
|
3842
4007
|
}();
|
|
3843
4008
|
|
|
3844
|
-
},{}],
|
|
4009
|
+
},{}],33:[function(require,module,exports){
|
|
3845
4010
|
"use strict";
|
|
3846
4011
|
|
|
3847
4012
|
var Wick = Wick || {};
|
|
@@ -3895,7 +4060,7 @@ var Wick = Wick || {};
|
|
|
3895
4060
|
bindEvents();
|
|
3896
4061
|
})();
|
|
3897
4062
|
|
|
3898
|
-
},{}],
|
|
4063
|
+
},{}],34:[function(require,module,exports){
|
|
3899
4064
|
"use strict";
|
|
3900
4065
|
|
|
3901
4066
|
var Wick = window.Wick = window.Wick || {};
|
|
@@ -4646,7 +4811,7 @@ Wick.BigWinsProto = function () {
|
|
|
4646
4811
|
init();
|
|
4647
4812
|
}();
|
|
4648
4813
|
|
|
4649
|
-
},{}],
|
|
4814
|
+
},{}],35:[function(require,module,exports){
|
|
4650
4815
|
"use strict";
|
|
4651
4816
|
|
|
4652
4817
|
(function () {
|
|
@@ -4703,7 +4868,7 @@ Wick.BigWinsProto = function () {
|
|
|
4703
4868
|
});
|
|
4704
4869
|
})();
|
|
4705
4870
|
|
|
4706
|
-
},{}],
|
|
4871
|
+
},{}],36:[function(require,module,exports){
|
|
4707
4872
|
"use strict";
|
|
4708
4873
|
|
|
4709
4874
|
var Wick = Wick || {};
|
|
@@ -4725,7 +4890,7 @@ Wick.ChatBot = function () {
|
|
|
4725
4890
|
init();
|
|
4726
4891
|
}();
|
|
4727
4892
|
|
|
4728
|
-
},{}],
|
|
4893
|
+
},{}],37:[function(require,module,exports){
|
|
4729
4894
|
"use strict";
|
|
4730
4895
|
|
|
4731
4896
|
window.Wick = window.Wick || {};
|
|
@@ -4741,7 +4906,7 @@ Wick.checkLocalEnv = function () {
|
|
|
4741
4906
|
};
|
|
4742
4907
|
}();
|
|
4743
4908
|
|
|
4744
|
-
},{}],
|
|
4909
|
+
},{}],38:[function(require,module,exports){
|
|
4745
4910
|
"use strict";
|
|
4746
4911
|
|
|
4747
4912
|
var Wick = Wick || {};
|
|
@@ -4776,7 +4941,7 @@ Wick.CheckoutData = function () {
|
|
|
4776
4941
|
};
|
|
4777
4942
|
}();
|
|
4778
4943
|
|
|
4779
|
-
},{}],
|
|
4944
|
+
},{}],39:[function(require,module,exports){
|
|
4780
4945
|
"use strict";
|
|
4781
4946
|
|
|
4782
4947
|
var Wick = Wick || {};
|
|
@@ -4808,7 +4973,7 @@ Wick.DeliveryDetails = function () {
|
|
|
4808
4973
|
bindEvents();
|
|
4809
4974
|
}();
|
|
4810
4975
|
|
|
4811
|
-
},{}],
|
|
4976
|
+
},{}],40:[function(require,module,exports){
|
|
4812
4977
|
"use strict";
|
|
4813
4978
|
|
|
4814
4979
|
var Wick = Wick || {};
|
|
@@ -4854,7 +5019,7 @@ Wick.PaymentDetails = function () {
|
|
|
4854
5019
|
bindEvents();
|
|
4855
5020
|
}();
|
|
4856
5021
|
|
|
4857
|
-
},{}],
|
|
5022
|
+
},{}],41:[function(require,module,exports){
|
|
4858
5023
|
"use strict";
|
|
4859
5024
|
|
|
4860
5025
|
var Wick = Wick || {};
|
|
@@ -4893,7 +5058,7 @@ Wick.CheckoutSignInEmulation = function () {
|
|
|
4893
5058
|
bindEvents();
|
|
4894
5059
|
}();
|
|
4895
5060
|
|
|
4896
|
-
},{}],
|
|
5061
|
+
},{}],42:[function(require,module,exports){
|
|
4897
5062
|
"use strict";
|
|
4898
5063
|
|
|
4899
5064
|
var Wick = Wick || {};
|
|
@@ -4976,7 +5141,7 @@ Wick.YourDetails = function () {
|
|
|
4976
5141
|
init();
|
|
4977
5142
|
}();
|
|
4978
5143
|
|
|
4979
|
-
},{}],
|
|
5144
|
+
},{}],43:[function(require,module,exports){
|
|
4980
5145
|
"use strict";
|
|
4981
5146
|
|
|
4982
5147
|
var Wick = Wick || {};
|
|
@@ -5000,7 +5165,7 @@ Wick.ClickAndCollectModal = function () {
|
|
|
5000
5165
|
});
|
|
5001
5166
|
}();
|
|
5002
5167
|
|
|
5003
|
-
},{}],
|
|
5168
|
+
},{}],44:[function(require,module,exports){
|
|
5004
5169
|
"use strict";
|
|
5005
5170
|
|
|
5006
5171
|
function showNotification() {
|
|
@@ -5017,7 +5182,7 @@ $(document).ready(function () {
|
|
|
5017
5182
|
showNotification();
|
|
5018
5183
|
});
|
|
5019
5184
|
|
|
5020
|
-
},{}],
|
|
5185
|
+
},{}],45:[function(require,module,exports){
|
|
5021
5186
|
"use strict";
|
|
5022
5187
|
|
|
5023
5188
|
function simulateHybrisSendingHtml() {
|
|
@@ -5042,7 +5207,7 @@ $(document).ready(function () {
|
|
|
5042
5207
|
bindResolveEvent(['CLOSE_JUST_ADDED', 'CLOSE_MINI_BASKET', 'MINI_BASKET_CHECKOUT', 'MINI_BASKET_VIEW_BASKET']);
|
|
5043
5208
|
});
|
|
5044
5209
|
|
|
5045
|
-
},{}],
|
|
5210
|
+
},{}],46:[function(require,module,exports){
|
|
5046
5211
|
"use strict";
|
|
5047
5212
|
|
|
5048
5213
|
var DS_EL = {
|
|
@@ -5173,7 +5338,7 @@ $(document).ready(function () {
|
|
|
5173
5338
|
initDateSelection();
|
|
5174
5339
|
});
|
|
5175
5340
|
|
|
5176
|
-
},{}],
|
|
5341
|
+
},{}],47:[function(require,module,exports){
|
|
5177
5342
|
"use strict";
|
|
5178
5343
|
|
|
5179
5344
|
var Wick = Wick || {};
|
|
@@ -5264,7 +5429,7 @@ $(document).ready(function () {
|
|
|
5264
5429
|
Wick.DefaultStoreProto.init();
|
|
5265
5430
|
});
|
|
5266
5431
|
|
|
5267
|
-
},{}],
|
|
5432
|
+
},{}],48:[function(require,module,exports){
|
|
5268
5433
|
"use strict";
|
|
5269
5434
|
|
|
5270
5435
|
var errorPoductId = '321312';
|
|
@@ -5306,7 +5471,7 @@ $(document).ready(function () {
|
|
|
5306
5471
|
initLocalFavouriteProductEvent();
|
|
5307
5472
|
});
|
|
5308
5473
|
|
|
5309
|
-
},{}],
|
|
5474
|
+
},{}],49:[function(require,module,exports){
|
|
5310
5475
|
"use strict";
|
|
5311
5476
|
|
|
5312
5477
|
var _showMoreLess = require("../page/utils/show-more-less");
|
|
@@ -5432,7 +5597,7 @@ function waitFor(getter, cb, opts) {
|
|
|
5432
5597
|
});
|
|
5433
5598
|
})();
|
|
5434
5599
|
|
|
5435
|
-
},{"../page/utils/show-more-less":
|
|
5600
|
+
},{"../page/utils/show-more-less":94}],50:[function(require,module,exports){
|
|
5436
5601
|
"use strict";
|
|
5437
5602
|
|
|
5438
5603
|
var Wick = Wick || {};
|
|
@@ -5471,7 +5636,7 @@ Wick.DeliveryDetails = function () {
|
|
|
5471
5636
|
bindEvents();
|
|
5472
5637
|
}();
|
|
5473
5638
|
|
|
5474
|
-
},{}],
|
|
5639
|
+
},{}],51:[function(require,module,exports){
|
|
5475
5640
|
"use strict";
|
|
5476
5641
|
|
|
5477
5642
|
var Wick = Wick || {};
|
|
@@ -5499,7 +5664,7 @@ Wick.FooterСurrentYear = function () {
|
|
|
5499
5664
|
init();
|
|
5500
5665
|
}();
|
|
5501
5666
|
|
|
5502
|
-
},{}],
|
|
5667
|
+
},{}],52:[function(require,module,exports){
|
|
5503
5668
|
"use strict";
|
|
5504
5669
|
|
|
5505
5670
|
var Wick = Wick || {};
|
|
@@ -5813,7 +5978,7 @@ Wick.Forms = function () {
|
|
|
5813
5978
|
};
|
|
5814
5979
|
}();
|
|
5815
5980
|
|
|
5816
|
-
},{}],
|
|
5981
|
+
},{}],53:[function(require,module,exports){
|
|
5817
5982
|
"use strict";
|
|
5818
5983
|
|
|
5819
5984
|
var Wick = Wick || {};
|
|
@@ -5852,7 +6017,7 @@ $(document).ready(function () {
|
|
|
5852
6017
|
Wick.GenerateProjectIdLocal.init();
|
|
5853
6018
|
});
|
|
5854
6019
|
|
|
5855
|
-
},{}],
|
|
6020
|
+
},{}],54:[function(require,module,exports){
|
|
5856
6021
|
"use strict";
|
|
5857
6022
|
|
|
5858
6023
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -6051,9 +6216,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
6051
6216
|
});
|
|
6052
6217
|
}
|
|
6053
6218
|
$(document).ready(function () {
|
|
6219
|
+
var _Wick$GiftCard;
|
|
6054
6220
|
mock.giftCards = [];
|
|
6055
6221
|
recomputeTotalsAndOrder();
|
|
6056
|
-
Wick.GiftCard.init({
|
|
6222
|
+
(_Wick$GiftCard = Wick.GiftCard) === null || _Wick$GiftCard === void 0 ? void 0 : _Wick$GiftCard.init({
|
|
6057
6223
|
giftCardsLimit: GIFT_CARDS_LIMIT,
|
|
6058
6224
|
errorCode: PAY_ERROR_CODE,
|
|
6059
6225
|
giftCards: mock.giftCards.slice()
|
|
@@ -6062,7 +6228,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
6062
6228
|
$(document).ready(initGiftCardMock);
|
|
6063
6229
|
})();
|
|
6064
6230
|
|
|
6065
|
-
},{}],
|
|
6231
|
+
},{}],55:[function(require,module,exports){
|
|
6066
6232
|
"use strict";
|
|
6067
6233
|
|
|
6068
6234
|
var suggestions = [{
|
|
@@ -6201,7 +6367,7 @@ $(document).ready(function () {
|
|
|
6201
6367
|
initLocalSearchBar();
|
|
6202
6368
|
});
|
|
6203
6369
|
|
|
6204
|
-
},{}],
|
|
6370
|
+
},{}],56:[function(require,module,exports){
|
|
6205
6371
|
"use strict";
|
|
6206
6372
|
|
|
6207
6373
|
var Wick = Wick || {};
|
|
@@ -6237,7 +6403,7 @@ Wick.GoogleMapsStoreInfo = function () {
|
|
|
6237
6403
|
init();
|
|
6238
6404
|
}();
|
|
6239
6405
|
|
|
6240
|
-
},{}],
|
|
6406
|
+
},{}],57:[function(require,module,exports){
|
|
6241
6407
|
"use strict";
|
|
6242
6408
|
|
|
6243
6409
|
var Wick = Wick || {};
|
|
@@ -6293,7 +6459,7 @@ $(document).ready(function () {
|
|
|
6293
6459
|
init();
|
|
6294
6460
|
});
|
|
6295
6461
|
|
|
6296
|
-
},{}],
|
|
6462
|
+
},{}],58:[function(require,module,exports){
|
|
6297
6463
|
"use strict";
|
|
6298
6464
|
|
|
6299
6465
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -6891,7 +7057,7 @@ if (!Array.prototype.reduce) {
|
|
|
6891
7057
|
});
|
|
6892
7058
|
}
|
|
6893
7059
|
|
|
6894
|
-
},{}],
|
|
7060
|
+
},{}],59:[function(require,module,exports){
|
|
6895
7061
|
"use strict";
|
|
6896
7062
|
|
|
6897
7063
|
$(document).ready(function () {
|
|
@@ -10562,7 +10728,7 @@ $(document).ready(function () {
|
|
|
10562
10728
|
}, 100);
|
|
10563
10729
|
});
|
|
10564
10730
|
|
|
10565
|
-
},{}],
|
|
10731
|
+
},{}],60:[function(require,module,exports){
|
|
10566
10732
|
"use strict";
|
|
10567
10733
|
|
|
10568
10734
|
var Wick = Wick || {};
|
|
@@ -10598,7 +10764,7 @@ Wick.orders = function () {
|
|
|
10598
10764
|
initialize();
|
|
10599
10765
|
}();
|
|
10600
10766
|
|
|
10601
|
-
},{}],
|
|
10767
|
+
},{}],61:[function(require,module,exports){
|
|
10602
10768
|
"use strict";
|
|
10603
10769
|
|
|
10604
10770
|
var Wick = Wick || {};
|
|
@@ -11459,7 +11625,7 @@ Wick.MainNavData = function () {
|
|
|
11459
11625
|
};
|
|
11460
11626
|
}();
|
|
11461
11627
|
|
|
11462
|
-
},{}],
|
|
11628
|
+
},{}],62:[function(require,module,exports){
|
|
11463
11629
|
"use strict";
|
|
11464
11630
|
|
|
11465
11631
|
window.Wick = window.Wick || {};
|
|
@@ -12474,7 +12640,7 @@ Wick.MiniBasketData = function () {
|
|
|
12474
12640
|
};
|
|
12475
12641
|
}();
|
|
12476
12642
|
|
|
12477
|
-
},{}],
|
|
12643
|
+
},{}],63:[function(require,module,exports){
|
|
12478
12644
|
"use strict";
|
|
12479
12645
|
|
|
12480
12646
|
var Wick = Wick || {};
|
|
@@ -12509,7 +12675,7 @@ Wick.ShoppingCart = function () {
|
|
|
12509
12675
|
};
|
|
12510
12676
|
}();
|
|
12511
12677
|
|
|
12512
|
-
},{}],
|
|
12678
|
+
},{}],64:[function(require,module,exports){
|
|
12513
12679
|
"use strict";
|
|
12514
12680
|
|
|
12515
12681
|
$(document).ready(function () {
|
|
@@ -12525,7 +12691,7 @@ $(document).ready(function () {
|
|
|
12525
12691
|
});
|
|
12526
12692
|
});
|
|
12527
12693
|
|
|
12528
|
-
},{}],
|
|
12694
|
+
},{}],65:[function(require,module,exports){
|
|
12529
12695
|
"use strict";
|
|
12530
12696
|
|
|
12531
12697
|
var Wick = window.Wick || {};
|
|
@@ -12568,7 +12734,7 @@ Wick.FEMock = {
|
|
|
12568
12734
|
cartPDPError: "\n <div class=\"custom-slider__wrap slider-mini-basket popover-mini-basket\">\n <div class=\"custom-slider__header\">\n <button class=\"btn btn-link p-0 link close-popup\" type=\"button\">\n <span class=\"icon-wrap\">\n <svg class=\"svg-inline--fa fa-angle-left fa-w-6\" aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"angle-left\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 192 512\" data-fa-i2svg=\"\">\n <path fill=\"currentColor\" d=\"M4.2 247.5L151 99.5c4.7-4.7 12.3-4.7 17 0l19.8 19.8c4.7 4.7 4.7 12.3 0 17L69.3 256l118.5 119.7c4.7 4.7 4.7 12.3 0 17L168 412.5c-4.7 4.7-12.3 4.7-17 0L4.2 264.5c-4.7-4.7-4.7-12.3 0-17z\"></path>\n </svg>\n </span>\n Continue Shopping\n </button>\n\n <button class=\"icon-wrap close-popup\" type=\"button\">\n <svg class=\"svg-inline--fa fa-times fa-w-10 icon\" aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"times\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\" data-fa-i2svg=\"\">\n <path fill=\"currentColor\" d=\"M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z\"></path>\n </svg>\n </button>\n </div>\n\n <div class=\"custom-slider__message\">\n <span class=\"icon-wrap error\">\n <svg class=\"svg-inline--fa fa-times-circle fa-w-16\" aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"times-circle\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" data-fa-i2svg=\"\">\n <path fill=\"currentColor\" d=\"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z\"></path>\n </svg>\n </span>\n\n <div class=\"messages popover-mini-basket__not-added\">\n <p class=\"messages__text\">\n Invalid quantity entered. Please enter a number to the field \u2018quantity\u2019.\n </p>\n </div>\n </div>\n\n <div class=\"products popover-mini-basket__cards-holder\">\n <div class=\"card product-card-preview\">\n <div class=\"products__item card__inner\" data-name=\"Blue Circle Ready To Use Postcrete - 20kg\" data-id=\"221100\" data-price=\"7.50\" data-position=\"0\">\n <a href=\"/Blue-Circle-Ready-To-Use-Postcrete---20kg/p/221100\" class=\"card__img-wrap card__img-wrap_link products__image\">\n <img loading=\"lazy\" class=\"product-img\" src=\"//media.wickes.co.uk/is/image/wickes/B3182_221100_00?$thumbnail$\" alt=\"Blue Circle Ready To Use Postcrete - 20kg\" title=\"Blue Circle Ready To Use Postcrete - 20kg\">\n </a>\n\n <div class=\"products__details\">\n <a href=\"/Blue-Circle-Ready-To-Use-Postcrete---20kg/p/221100\" class=\"title product-card__title\">\n Blue Circle Ready To Use Postcrete - 20kg\n </a>\n\n <p class=\"price\">\n <span class=\"product-card__price-value\">\xA37.50</span>\n </p>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"custom-slider__content\"></div>\n </div>\n "
|
|
12569
12735
|
};
|
|
12570
12736
|
|
|
12571
|
-
},{}],
|
|
12737
|
+
},{}],66:[function(require,module,exports){
|
|
12572
12738
|
"use strict";
|
|
12573
12739
|
|
|
12574
12740
|
function getOrdersHtmlByCurrentPage(_ref) {
|
|
@@ -12631,7 +12797,7 @@ $(document).ready(function () {
|
|
|
12631
12797
|
initMyOrdersEvent();
|
|
12632
12798
|
});
|
|
12633
12799
|
|
|
12634
|
-
},{}],
|
|
12800
|
+
},{}],67:[function(require,module,exports){
|
|
12635
12801
|
"use strict";
|
|
12636
12802
|
|
|
12637
12803
|
function initNotifyMeEmulation() {
|
|
@@ -12643,7 +12809,7 @@ $(document).ready(function () {
|
|
|
12643
12809
|
initNotifyMeEmulation();
|
|
12644
12810
|
});
|
|
12645
12811
|
|
|
12646
|
-
},{}],
|
|
12812
|
+
},{}],68:[function(require,module,exports){
|
|
12647
12813
|
"use strict";
|
|
12648
12814
|
|
|
12649
12815
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -12680,7 +12846,7 @@ Object.entries(paymentTypeSelectors).forEach(function (_ref) {
|
|
|
12680
12846
|
});
|
|
12681
12847
|
});
|
|
12682
12848
|
|
|
12683
|
-
},{}],
|
|
12849
|
+
},{}],69:[function(require,module,exports){
|
|
12684
12850
|
"use strict";
|
|
12685
12851
|
|
|
12686
12852
|
var Wick = window.Wick = window.Wick || {};
|
|
@@ -12774,7 +12940,7 @@ $(document).ready(function () {
|
|
|
12774
12940
|
}
|
|
12775
12941
|
});
|
|
12776
12942
|
|
|
12777
|
-
},{}],
|
|
12943
|
+
},{}],70:[function(require,module,exports){
|
|
12778
12944
|
"use strict";
|
|
12779
12945
|
|
|
12780
12946
|
function handleClickAndScroll(cta, elementToScroll) {
|
|
@@ -12794,7 +12960,7 @@ $(document).ready(function () {
|
|
|
12794
12960
|
handleClickAndScroll('.pdp-price-sale__value .pdp-price__excluding-delivery', '.pdp__fulfilment');
|
|
12795
12961
|
});
|
|
12796
12962
|
|
|
12797
|
-
},{}],
|
|
12963
|
+
},{}],71:[function(require,module,exports){
|
|
12798
12964
|
"use strict";
|
|
12799
12965
|
|
|
12800
12966
|
var Wick = Wick || {};
|
|
@@ -12880,7 +13046,7 @@ $(document).ready(function () {
|
|
|
12880
13046
|
initPersonalDetails();
|
|
12881
13047
|
});
|
|
12882
13048
|
|
|
12883
|
-
},{}],
|
|
13049
|
+
},{}],72:[function(require,module,exports){
|
|
12884
13050
|
"use strict";
|
|
12885
13051
|
|
|
12886
13052
|
function getHtmlByCurrentPage(_ref) {
|
|
@@ -12909,7 +13075,7 @@ $(document).ready(function () {
|
|
|
12909
13075
|
initPLPLoadMoreFunctionality();
|
|
12910
13076
|
});
|
|
12911
13077
|
|
|
12912
|
-
},{}],
|
|
13078
|
+
},{}],73:[function(require,module,exports){
|
|
12913
13079
|
"use strict";
|
|
12914
13080
|
|
|
12915
13081
|
var Wick = window.Wick = window.Wick || {};
|
|
@@ -13127,7 +13293,7 @@ Wick.MiniBasket = function () {
|
|
|
13127
13293
|
};
|
|
13128
13294
|
}();
|
|
13129
13295
|
|
|
13130
|
-
},{}],
|
|
13296
|
+
},{}],74:[function(require,module,exports){
|
|
13131
13297
|
"use strict";
|
|
13132
13298
|
|
|
13133
13299
|
var Wick = Wick || {};
|
|
@@ -13168,7 +13334,7 @@ $(document).ready(function () {
|
|
|
13168
13334
|
Wick.ProductCounter.bind();
|
|
13169
13335
|
});
|
|
13170
13336
|
|
|
13171
|
-
},{}],
|
|
13337
|
+
},{}],75:[function(require,module,exports){
|
|
13172
13338
|
"use strict";
|
|
13173
13339
|
|
|
13174
13340
|
var Wick = Wick || {};
|
|
@@ -13203,7 +13369,7 @@ $(document).ready(function () {
|
|
|
13203
13369
|
Wick.ProjectListMultiple.bindAll();
|
|
13204
13370
|
});
|
|
13205
13371
|
|
|
13206
|
-
},{}],
|
|
13372
|
+
},{}],76:[function(require,module,exports){
|
|
13207
13373
|
"use strict";
|
|
13208
13374
|
|
|
13209
13375
|
var Wick = window.Wick = window.Wick || {};
|
|
@@ -13490,7 +13656,7 @@ $(document).ready(function () {
|
|
|
13490
13656
|
init();
|
|
13491
13657
|
});
|
|
13492
13658
|
|
|
13493
|
-
},{}],
|
|
13659
|
+
},{}],77:[function(require,module,exports){
|
|
13494
13660
|
"use strict";
|
|
13495
13661
|
|
|
13496
13662
|
function initProjectShadowList() {
|
|
@@ -13552,7 +13718,7 @@ $(document).ready(function () {
|
|
|
13552
13718
|
initProjectShadowList();
|
|
13553
13719
|
});
|
|
13554
13720
|
|
|
13555
|
-
},{}],
|
|
13721
|
+
},{}],78:[function(require,module,exports){
|
|
13556
13722
|
"use strict";
|
|
13557
13723
|
|
|
13558
13724
|
function initQuizEmail() {
|
|
@@ -13572,7 +13738,7 @@ $(document).ready(function () {
|
|
|
13572
13738
|
initQuizEmail();
|
|
13573
13739
|
});
|
|
13574
13740
|
|
|
13575
|
-
},{}],
|
|
13741
|
+
},{}],79:[function(require,module,exports){
|
|
13576
13742
|
"use strict";
|
|
13577
13743
|
|
|
13578
13744
|
var Wick = Wick || {};
|
|
@@ -13672,7 +13838,7 @@ Wick.ReferenceField = function () {
|
|
|
13672
13838
|
init();
|
|
13673
13839
|
}();
|
|
13674
13840
|
|
|
13675
|
-
},{}],
|
|
13841
|
+
},{}],80:[function(require,module,exports){
|
|
13676
13842
|
"use strict";
|
|
13677
13843
|
|
|
13678
13844
|
var Wick = Wick || {};
|
|
@@ -13702,7 +13868,7 @@ Wick.RepaymentToggle = function () {
|
|
|
13702
13868
|
bindEvents();
|
|
13703
13869
|
}();
|
|
13704
13870
|
|
|
13705
|
-
},{}],
|
|
13871
|
+
},{}],81:[function(require,module,exports){
|
|
13706
13872
|
"use strict";
|
|
13707
13873
|
|
|
13708
13874
|
$(document).on('click', '.filter-results__clear', function () {
|
|
@@ -13711,7 +13877,7 @@ $(document).on('click', '.filter-results__clear', function () {
|
|
|
13711
13877
|
form.submit();
|
|
13712
13878
|
});
|
|
13713
13879
|
|
|
13714
|
-
},{}],
|
|
13880
|
+
},{}],82:[function(require,module,exports){
|
|
13715
13881
|
"use strict";
|
|
13716
13882
|
|
|
13717
13883
|
var Wick = Wick || {};
|
|
@@ -13737,7 +13903,7 @@ Wick.Selectable = function () {
|
|
|
13737
13903
|
bindEvents();
|
|
13738
13904
|
}();
|
|
13739
13905
|
|
|
13740
|
-
},{}],
|
|
13906
|
+
},{}],83:[function(require,module,exports){
|
|
13741
13907
|
"use strict";
|
|
13742
13908
|
|
|
13743
13909
|
var Wick = Wick || {};
|
|
@@ -13820,7 +13986,7 @@ $(document).ready(function () {
|
|
|
13820
13986
|
Wick.ShoppingList.bindAll();
|
|
13821
13987
|
});
|
|
13822
13988
|
|
|
13823
|
-
},{}],
|
|
13989
|
+
},{}],84:[function(require,module,exports){
|
|
13824
13990
|
"use strict";
|
|
13825
13991
|
|
|
13826
13992
|
var Wick = Wick || {};
|
|
@@ -13845,26 +14011,64 @@ Wick.SignUp = function () {
|
|
|
13845
14011
|
});
|
|
13846
14012
|
}();
|
|
13847
14013
|
|
|
13848
|
-
},{}],
|
|
14014
|
+
},{}],85:[function(require,module,exports){
|
|
13849
14015
|
"use strict";
|
|
13850
14016
|
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13854
|
-
var
|
|
13855
|
-
|
|
13856
|
-
|
|
13857
|
-
|
|
13858
|
-
|
|
13859
|
-
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
|
|
13865
|
-
|
|
14017
|
+
var _loader = require("../page/utils/loader");
|
|
14018
|
+
function initStoreLocatorLoadMore() {
|
|
14019
|
+
var PAGE_SIZE = 8;
|
|
14020
|
+
var SELECTORS = {
|
|
14021
|
+
cards: '.cards-store-list',
|
|
14022
|
+
btnMore: '.store-locator__load-button_more',
|
|
14023
|
+
loader: '.store-locator-loader'
|
|
14024
|
+
};
|
|
14025
|
+
var loaderPayload = {
|
|
14026
|
+
wrapper: 'body',
|
|
14027
|
+
hidden: true,
|
|
14028
|
+
modifier: 'store-locator-loader'
|
|
14029
|
+
};
|
|
14030
|
+
var $cards = $(SELECTORS.cards);
|
|
14031
|
+
var $btnMore = $(SELECTORS.btnMore);
|
|
14032
|
+
var visibleCount = PAGE_SIZE;
|
|
14033
|
+
function updateVisibility() {
|
|
14034
|
+
var _Wick$StoreCardsAlign;
|
|
14035
|
+
$cards.each(function (index) {
|
|
14036
|
+
$(this).toggle(index < visibleCount);
|
|
14037
|
+
});
|
|
14038
|
+
if (visibleCount >= $cards.length) {
|
|
14039
|
+
$btnMore.hide();
|
|
14040
|
+
} else {
|
|
14041
|
+
$btnMore.show();
|
|
14042
|
+
}
|
|
14043
|
+
(_Wick$StoreCardsAlign = Wick.StoreCardsAlign) === null || _Wick$StoreCardsAlign === void 0 ? void 0 : _Wick$StoreCardsAlign.align();
|
|
14044
|
+
}
|
|
14045
|
+
function loadMore() {
|
|
14046
|
+
(0, _loader.showLoader)(SELECTORS.loader);
|
|
14047
|
+
$btnMore.prop('disabled', true);
|
|
14048
|
+
setTimeout(function () {
|
|
14049
|
+
visibleCount += PAGE_SIZE;
|
|
14050
|
+
updateVisibility();
|
|
14051
|
+
(0, _loader.hideLoader)(SELECTORS.loader);
|
|
14052
|
+
$btnMore.prop('disabled', false).blur();
|
|
14053
|
+
}, 1000);
|
|
14054
|
+
}
|
|
14055
|
+
function init() {
|
|
14056
|
+
if (!$cards.length || !$btnMore.length) {
|
|
14057
|
+
return;
|
|
14058
|
+
}
|
|
14059
|
+
if (!$(SELECTORS.loader).length) {
|
|
14060
|
+
(0, _loader.appendLoader)(loaderPayload);
|
|
14061
|
+
}
|
|
14062
|
+
updateVisibility();
|
|
14063
|
+
$btnMore.on('click', loadMore);
|
|
14064
|
+
}
|
|
14065
|
+
init();
|
|
14066
|
+
}
|
|
14067
|
+
$(document).ready(function () {
|
|
14068
|
+
initStoreLocatorLoadMore();
|
|
14069
|
+
});
|
|
13866
14070
|
|
|
13867
|
-
},{}],
|
|
14071
|
+
},{"../page/utils/loader":93}],86:[function(require,module,exports){
|
|
13868
14072
|
"use strict";
|
|
13869
14073
|
|
|
13870
14074
|
var Wick = window.Wick || {};
|
|
@@ -13905,7 +14109,7 @@ $(document).ready(function () {
|
|
|
13905
14109
|
}, 250));
|
|
13906
14110
|
});
|
|
13907
14111
|
|
|
13908
|
-
},{}],
|
|
14112
|
+
},{}],87:[function(require,module,exports){
|
|
13909
14113
|
"use strict";
|
|
13910
14114
|
|
|
13911
14115
|
var Wick = Wick || {};
|
|
@@ -13927,7 +14131,7 @@ $(document).ready(function () {
|
|
|
13927
14131
|
Wick.addListToBasket.addAllProjectList();
|
|
13928
14132
|
});
|
|
13929
14133
|
|
|
13930
|
-
},{}],
|
|
14134
|
+
},{}],88:[function(require,module,exports){
|
|
13931
14135
|
"use strict";
|
|
13932
14136
|
|
|
13933
14137
|
var Wick = Wick || {};
|
|
@@ -13965,7 +14169,7 @@ Wick.User = function () {
|
|
|
13965
14169
|
};
|
|
13966
14170
|
}();
|
|
13967
14171
|
|
|
13968
|
-
},{}],
|
|
14172
|
+
},{}],89:[function(require,module,exports){
|
|
13969
14173
|
"use strict";
|
|
13970
14174
|
|
|
13971
14175
|
var suppressQuantityReportValidityOnBlur = false;
|
|
@@ -13992,14 +14196,14 @@ $(document).off('keydown.quantityValidation', '#quantity-field').on('keydown.qua
|
|
|
13992
14196
|
}, 150);
|
|
13993
14197
|
});
|
|
13994
14198
|
|
|
13995
|
-
},{}],
|
|
14199
|
+
},{}],90:[function(require,module,exports){
|
|
13996
14200
|
"use strict";
|
|
13997
14201
|
|
|
13998
14202
|
window.ACC = window.ACC || {};
|
|
13999
14203
|
window.ACC.app = window.ACC.app || {};
|
|
14000
14204
|
window.ACC.app.isVatToggleAvailable = !!$('.switch-vat input').length;
|
|
14001
14205
|
|
|
14002
|
-
},{}],
|
|
14206
|
+
},{}],91:[function(require,module,exports){
|
|
14003
14207
|
"use strict";
|
|
14004
14208
|
|
|
14005
14209
|
var Wick = window.Wick = window.Wick || {};
|
|
@@ -14031,7 +14235,7 @@ Wick.Wismo = function () {
|
|
|
14031
14235
|
});
|
|
14032
14236
|
}();
|
|
14033
14237
|
|
|
14034
|
-
},{}],
|
|
14238
|
+
},{}],92:[function(require,module,exports){
|
|
14035
14239
|
"use strict";
|
|
14036
14240
|
|
|
14037
14241
|
var Wick = Wick || {};
|
|
@@ -14110,7 +14314,33 @@ Wick.YourDetails = function () {
|
|
|
14110
14314
|
});
|
|
14111
14315
|
}();
|
|
14112
14316
|
|
|
14113
|
-
},{}],
|
|
14317
|
+
},{}],93:[function(require,module,exports){
|
|
14318
|
+
"use strict";
|
|
14319
|
+
|
|
14320
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14321
|
+
value: true
|
|
14322
|
+
});
|
|
14323
|
+
exports.appendLoader = appendLoader;
|
|
14324
|
+
exports.hideLoader = hideLoader;
|
|
14325
|
+
exports.showLoader = showLoader;
|
|
14326
|
+
var _loader = _interopRequireDefault(require("../../../elements/loader.hbs"));
|
|
14327
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14328
|
+
var defaultLoader = '.loader-wrapper';
|
|
14329
|
+
var HIDDEN_CLASS_NAME = 'd-none';
|
|
14330
|
+
function defineLoaderWrapper(loader) {
|
|
14331
|
+
return loader ? loader : defaultLoader;
|
|
14332
|
+
}
|
|
14333
|
+
function appendLoader(payload) {
|
|
14334
|
+
$(payload.wrapper).append((0, _loader["default"])(payload));
|
|
14335
|
+
}
|
|
14336
|
+
function showLoader(loaderSelector) {
|
|
14337
|
+
$(defineLoaderWrapper(loaderSelector)).removeClass(HIDDEN_CLASS_NAME);
|
|
14338
|
+
}
|
|
14339
|
+
function hideLoader(loaderSelector) {
|
|
14340
|
+
$(defineLoaderWrapper(loaderSelector)).addClass(HIDDEN_CLASS_NAME);
|
|
14341
|
+
}
|
|
14342
|
+
|
|
14343
|
+
},{"../../../elements/loader.hbs":25}],94:[function(require,module,exports){
|
|
14114
14344
|
"use strict";
|
|
14115
14345
|
|
|
14116
14346
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -14347,4 +14577,4 @@ function createShowMoreLess() {
|
|
|
14347
14577
|
};
|
|
14348
14578
|
}
|
|
14349
14579
|
|
|
14350
|
-
},{"../../../elements/btn.hbs":24}]},{},[
|
|
14580
|
+
},{"../../../elements/btn.hbs":24}]},{},[26,27,28,29,30,31,32,33,34,35,36,37,42,38,39,40,41,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,81,82,83,84,85,86,87,88,89,90,91,92]);
|