wickes-css2 2.109.0-develop.6 → 2.109.0-develop.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +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 +367 -111
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/gift-cards.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/page/checkout-payment-details.js +95 -11
- package/build/js/page/components/gift-cards.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/build/js/toggle-password-visibility.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/components/checkout-payment-details-v2.hbs +4 -4
- package/src/components/checkout-payment-info-block.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/checkout-payment-details.js +34 -1
- package/src/js/emulation/gift-cards.js +1 -1
- package/src/js/emulation/store-locator-load-more.js +69 -0
- package/src/js/page/checkout-payment-details.js +95 -11
- package/src/js/page/components/gift-cards.js +1 -1
- 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,13 +4973,19 @@ 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
|
+
window.Wick = window.Wick || {};
|
|
4980
|
+
window.Wick.BillieData = window.Wick.BillieData || {};
|
|
4981
|
+
window.Wick.BillieData.billiePaymentTerms = ['30', '60', '90'];
|
|
4982
|
+
window.INIT_KLARNA_PAYMENT = window.INIT_KLARNA_PAYMENT || 'INIT_KLARNA_PAYMENT';
|
|
4983
|
+
window.INIT_BILLIE_PAYMENT = window.INIT_BILLIE_PAYMENT || 'INIT_BILLIE_PAYMENT';
|
|
4815
4984
|
Wick.PaymentDetails = function () {
|
|
4816
4985
|
var $btnEnterDetails = $('.btn-enter-details'),
|
|
4817
4986
|
isGuestPage = $('.page_checkout-payment-details_guest').length;
|
|
4987
|
+
var $billieInfo = $('.checkout-payment-details__billie .billie-info');
|
|
4988
|
+
var $klarnaInfo = $('.checkout-payment-details__klarna .klarna-info');
|
|
4818
4989
|
function bindEvents() {
|
|
4819
4990
|
$btnEnterDetails.on('click', function (e) {
|
|
4820
4991
|
e.preventDefault();
|
|
@@ -4850,11 +5021,31 @@ Wick.PaymentDetails = function () {
|
|
|
4850
5021
|
Wick.Forms.showValidationErrors(this);
|
|
4851
5022
|
return false;
|
|
4852
5023
|
});
|
|
5024
|
+
$(window).on(window.INIT_BILLIE_PAYMENT, function (e) {
|
|
5025
|
+
var detail = e.detail || e.originalEvent && e.originalEvent.detail || {};
|
|
5026
|
+
if (detail && detail.resolve) {
|
|
5027
|
+
$billieInfo.show();
|
|
5028
|
+
detail.resolve();
|
|
5029
|
+
}
|
|
5030
|
+
});
|
|
5031
|
+
$(window).on(window.INIT_KLARNA_PAYMENT, function (e) {
|
|
5032
|
+
var detail = e.detail || e.originalEvent && e.originalEvent.detail || {};
|
|
5033
|
+
if (detail && detail.resolve) {
|
|
5034
|
+
$klarnaInfo.show();
|
|
5035
|
+
detail.resolve();
|
|
5036
|
+
}
|
|
5037
|
+
});
|
|
5038
|
+
$(document).on('change', 'input[name="repaymentTerms"]', function () {
|
|
5039
|
+
var hasSelection = $('input[name="repaymentTerms"]:checked').length > 0;
|
|
5040
|
+
if (hasSelection) {
|
|
5041
|
+
$billieInfo.show();
|
|
5042
|
+
}
|
|
5043
|
+
});
|
|
4853
5044
|
}
|
|
4854
5045
|
bindEvents();
|
|
4855
5046
|
}();
|
|
4856
5047
|
|
|
4857
|
-
},{}],
|
|
5048
|
+
},{}],41:[function(require,module,exports){
|
|
4858
5049
|
"use strict";
|
|
4859
5050
|
|
|
4860
5051
|
var Wick = Wick || {};
|
|
@@ -4893,7 +5084,7 @@ Wick.CheckoutSignInEmulation = function () {
|
|
|
4893
5084
|
bindEvents();
|
|
4894
5085
|
}();
|
|
4895
5086
|
|
|
4896
|
-
},{}],
|
|
5087
|
+
},{}],42:[function(require,module,exports){
|
|
4897
5088
|
"use strict";
|
|
4898
5089
|
|
|
4899
5090
|
var Wick = Wick || {};
|
|
@@ -4976,7 +5167,7 @@ Wick.YourDetails = function () {
|
|
|
4976
5167
|
init();
|
|
4977
5168
|
}();
|
|
4978
5169
|
|
|
4979
|
-
},{}],
|
|
5170
|
+
},{}],43:[function(require,module,exports){
|
|
4980
5171
|
"use strict";
|
|
4981
5172
|
|
|
4982
5173
|
var Wick = Wick || {};
|
|
@@ -5000,7 +5191,7 @@ Wick.ClickAndCollectModal = function () {
|
|
|
5000
5191
|
});
|
|
5001
5192
|
}();
|
|
5002
5193
|
|
|
5003
|
-
},{}],
|
|
5194
|
+
},{}],44:[function(require,module,exports){
|
|
5004
5195
|
"use strict";
|
|
5005
5196
|
|
|
5006
5197
|
function showNotification() {
|
|
@@ -5017,7 +5208,7 @@ $(document).ready(function () {
|
|
|
5017
5208
|
showNotification();
|
|
5018
5209
|
});
|
|
5019
5210
|
|
|
5020
|
-
},{}],
|
|
5211
|
+
},{}],45:[function(require,module,exports){
|
|
5021
5212
|
"use strict";
|
|
5022
5213
|
|
|
5023
5214
|
function simulateHybrisSendingHtml() {
|
|
@@ -5042,7 +5233,7 @@ $(document).ready(function () {
|
|
|
5042
5233
|
bindResolveEvent(['CLOSE_JUST_ADDED', 'CLOSE_MINI_BASKET', 'MINI_BASKET_CHECKOUT', 'MINI_BASKET_VIEW_BASKET']);
|
|
5043
5234
|
});
|
|
5044
5235
|
|
|
5045
|
-
},{}],
|
|
5236
|
+
},{}],46:[function(require,module,exports){
|
|
5046
5237
|
"use strict";
|
|
5047
5238
|
|
|
5048
5239
|
var DS_EL = {
|
|
@@ -5173,7 +5364,7 @@ $(document).ready(function () {
|
|
|
5173
5364
|
initDateSelection();
|
|
5174
5365
|
});
|
|
5175
5366
|
|
|
5176
|
-
},{}],
|
|
5367
|
+
},{}],47:[function(require,module,exports){
|
|
5177
5368
|
"use strict";
|
|
5178
5369
|
|
|
5179
5370
|
var Wick = Wick || {};
|
|
@@ -5264,7 +5455,7 @@ $(document).ready(function () {
|
|
|
5264
5455
|
Wick.DefaultStoreProto.init();
|
|
5265
5456
|
});
|
|
5266
5457
|
|
|
5267
|
-
},{}],
|
|
5458
|
+
},{}],48:[function(require,module,exports){
|
|
5268
5459
|
"use strict";
|
|
5269
5460
|
|
|
5270
5461
|
var errorPoductId = '321312';
|
|
@@ -5306,7 +5497,7 @@ $(document).ready(function () {
|
|
|
5306
5497
|
initLocalFavouriteProductEvent();
|
|
5307
5498
|
});
|
|
5308
5499
|
|
|
5309
|
-
},{}],
|
|
5500
|
+
},{}],49:[function(require,module,exports){
|
|
5310
5501
|
"use strict";
|
|
5311
5502
|
|
|
5312
5503
|
var _showMoreLess = require("../page/utils/show-more-less");
|
|
@@ -5432,7 +5623,7 @@ function waitFor(getter, cb, opts) {
|
|
|
5432
5623
|
});
|
|
5433
5624
|
})();
|
|
5434
5625
|
|
|
5435
|
-
},{"../page/utils/show-more-less":
|
|
5626
|
+
},{"../page/utils/show-more-less":94}],50:[function(require,module,exports){
|
|
5436
5627
|
"use strict";
|
|
5437
5628
|
|
|
5438
5629
|
var Wick = Wick || {};
|
|
@@ -5471,7 +5662,7 @@ Wick.DeliveryDetails = function () {
|
|
|
5471
5662
|
bindEvents();
|
|
5472
5663
|
}();
|
|
5473
5664
|
|
|
5474
|
-
},{}],
|
|
5665
|
+
},{}],51:[function(require,module,exports){
|
|
5475
5666
|
"use strict";
|
|
5476
5667
|
|
|
5477
5668
|
var Wick = Wick || {};
|
|
@@ -5499,7 +5690,7 @@ Wick.FooterСurrentYear = function () {
|
|
|
5499
5690
|
init();
|
|
5500
5691
|
}();
|
|
5501
5692
|
|
|
5502
|
-
},{}],
|
|
5693
|
+
},{}],52:[function(require,module,exports){
|
|
5503
5694
|
"use strict";
|
|
5504
5695
|
|
|
5505
5696
|
var Wick = Wick || {};
|
|
@@ -5813,7 +6004,7 @@ Wick.Forms = function () {
|
|
|
5813
6004
|
};
|
|
5814
6005
|
}();
|
|
5815
6006
|
|
|
5816
|
-
},{}],
|
|
6007
|
+
},{}],53:[function(require,module,exports){
|
|
5817
6008
|
"use strict";
|
|
5818
6009
|
|
|
5819
6010
|
var Wick = Wick || {};
|
|
@@ -5852,7 +6043,7 @@ $(document).ready(function () {
|
|
|
5852
6043
|
Wick.GenerateProjectIdLocal.init();
|
|
5853
6044
|
});
|
|
5854
6045
|
|
|
5855
|
-
},{}],
|
|
6046
|
+
},{}],54:[function(require,module,exports){
|
|
5856
6047
|
"use strict";
|
|
5857
6048
|
|
|
5858
6049
|
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 +6242,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
6051
6242
|
});
|
|
6052
6243
|
}
|
|
6053
6244
|
$(document).ready(function () {
|
|
6245
|
+
var _Wick$GiftCard;
|
|
6054
6246
|
mock.giftCards = [];
|
|
6055
6247
|
recomputeTotalsAndOrder();
|
|
6056
|
-
Wick.GiftCard.init({
|
|
6248
|
+
(_Wick$GiftCard = Wick.GiftCard) === null || _Wick$GiftCard === void 0 ? void 0 : _Wick$GiftCard.init({
|
|
6057
6249
|
giftCardsLimit: GIFT_CARDS_LIMIT,
|
|
6058
6250
|
errorCode: PAY_ERROR_CODE,
|
|
6059
6251
|
giftCards: mock.giftCards.slice()
|
|
@@ -6062,7 +6254,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
6062
6254
|
$(document).ready(initGiftCardMock);
|
|
6063
6255
|
})();
|
|
6064
6256
|
|
|
6065
|
-
},{}],
|
|
6257
|
+
},{}],55:[function(require,module,exports){
|
|
6066
6258
|
"use strict";
|
|
6067
6259
|
|
|
6068
6260
|
var suggestions = [{
|
|
@@ -6201,7 +6393,7 @@ $(document).ready(function () {
|
|
|
6201
6393
|
initLocalSearchBar();
|
|
6202
6394
|
});
|
|
6203
6395
|
|
|
6204
|
-
},{}],
|
|
6396
|
+
},{}],56:[function(require,module,exports){
|
|
6205
6397
|
"use strict";
|
|
6206
6398
|
|
|
6207
6399
|
var Wick = Wick || {};
|
|
@@ -6237,7 +6429,7 @@ Wick.GoogleMapsStoreInfo = function () {
|
|
|
6237
6429
|
init();
|
|
6238
6430
|
}();
|
|
6239
6431
|
|
|
6240
|
-
},{}],
|
|
6432
|
+
},{}],57:[function(require,module,exports){
|
|
6241
6433
|
"use strict";
|
|
6242
6434
|
|
|
6243
6435
|
var Wick = Wick || {};
|
|
@@ -6293,7 +6485,7 @@ $(document).ready(function () {
|
|
|
6293
6485
|
init();
|
|
6294
6486
|
});
|
|
6295
6487
|
|
|
6296
|
-
},{}],
|
|
6488
|
+
},{}],58:[function(require,module,exports){
|
|
6297
6489
|
"use strict";
|
|
6298
6490
|
|
|
6299
6491
|
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 +7083,7 @@ if (!Array.prototype.reduce) {
|
|
|
6891
7083
|
});
|
|
6892
7084
|
}
|
|
6893
7085
|
|
|
6894
|
-
},{}],
|
|
7086
|
+
},{}],59:[function(require,module,exports){
|
|
6895
7087
|
"use strict";
|
|
6896
7088
|
|
|
6897
7089
|
$(document).ready(function () {
|
|
@@ -10562,7 +10754,7 @@ $(document).ready(function () {
|
|
|
10562
10754
|
}, 100);
|
|
10563
10755
|
});
|
|
10564
10756
|
|
|
10565
|
-
},{}],
|
|
10757
|
+
},{}],60:[function(require,module,exports){
|
|
10566
10758
|
"use strict";
|
|
10567
10759
|
|
|
10568
10760
|
var Wick = Wick || {};
|
|
@@ -10598,7 +10790,7 @@ Wick.orders = function () {
|
|
|
10598
10790
|
initialize();
|
|
10599
10791
|
}();
|
|
10600
10792
|
|
|
10601
|
-
},{}],
|
|
10793
|
+
},{}],61:[function(require,module,exports){
|
|
10602
10794
|
"use strict";
|
|
10603
10795
|
|
|
10604
10796
|
var Wick = Wick || {};
|
|
@@ -11459,7 +11651,7 @@ Wick.MainNavData = function () {
|
|
|
11459
11651
|
};
|
|
11460
11652
|
}();
|
|
11461
11653
|
|
|
11462
|
-
},{}],
|
|
11654
|
+
},{}],62:[function(require,module,exports){
|
|
11463
11655
|
"use strict";
|
|
11464
11656
|
|
|
11465
11657
|
window.Wick = window.Wick || {};
|
|
@@ -12474,7 +12666,7 @@ Wick.MiniBasketData = function () {
|
|
|
12474
12666
|
};
|
|
12475
12667
|
}();
|
|
12476
12668
|
|
|
12477
|
-
},{}],
|
|
12669
|
+
},{}],63:[function(require,module,exports){
|
|
12478
12670
|
"use strict";
|
|
12479
12671
|
|
|
12480
12672
|
var Wick = Wick || {};
|
|
@@ -12509,7 +12701,7 @@ Wick.ShoppingCart = function () {
|
|
|
12509
12701
|
};
|
|
12510
12702
|
}();
|
|
12511
12703
|
|
|
12512
|
-
},{}],
|
|
12704
|
+
},{}],64:[function(require,module,exports){
|
|
12513
12705
|
"use strict";
|
|
12514
12706
|
|
|
12515
12707
|
$(document).ready(function () {
|
|
@@ -12525,7 +12717,7 @@ $(document).ready(function () {
|
|
|
12525
12717
|
});
|
|
12526
12718
|
});
|
|
12527
12719
|
|
|
12528
|
-
},{}],
|
|
12720
|
+
},{}],65:[function(require,module,exports){
|
|
12529
12721
|
"use strict";
|
|
12530
12722
|
|
|
12531
12723
|
var Wick = window.Wick || {};
|
|
@@ -12568,7 +12760,7 @@ Wick.FEMock = {
|
|
|
12568
12760
|
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
12761
|
};
|
|
12570
12762
|
|
|
12571
|
-
},{}],
|
|
12763
|
+
},{}],66:[function(require,module,exports){
|
|
12572
12764
|
"use strict";
|
|
12573
12765
|
|
|
12574
12766
|
function getOrdersHtmlByCurrentPage(_ref) {
|
|
@@ -12631,7 +12823,7 @@ $(document).ready(function () {
|
|
|
12631
12823
|
initMyOrdersEvent();
|
|
12632
12824
|
});
|
|
12633
12825
|
|
|
12634
|
-
},{}],
|
|
12826
|
+
},{}],67:[function(require,module,exports){
|
|
12635
12827
|
"use strict";
|
|
12636
12828
|
|
|
12637
12829
|
function initNotifyMeEmulation() {
|
|
@@ -12643,7 +12835,7 @@ $(document).ready(function () {
|
|
|
12643
12835
|
initNotifyMeEmulation();
|
|
12644
12836
|
});
|
|
12645
12837
|
|
|
12646
|
-
},{}],
|
|
12838
|
+
},{}],68:[function(require,module,exports){
|
|
12647
12839
|
"use strict";
|
|
12648
12840
|
|
|
12649
12841
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -12680,7 +12872,7 @@ Object.entries(paymentTypeSelectors).forEach(function (_ref) {
|
|
|
12680
12872
|
});
|
|
12681
12873
|
});
|
|
12682
12874
|
|
|
12683
|
-
},{}],
|
|
12875
|
+
},{}],69:[function(require,module,exports){
|
|
12684
12876
|
"use strict";
|
|
12685
12877
|
|
|
12686
12878
|
var Wick = window.Wick = window.Wick || {};
|
|
@@ -12774,7 +12966,7 @@ $(document).ready(function () {
|
|
|
12774
12966
|
}
|
|
12775
12967
|
});
|
|
12776
12968
|
|
|
12777
|
-
},{}],
|
|
12969
|
+
},{}],70:[function(require,module,exports){
|
|
12778
12970
|
"use strict";
|
|
12779
12971
|
|
|
12780
12972
|
function handleClickAndScroll(cta, elementToScroll) {
|
|
@@ -12794,7 +12986,7 @@ $(document).ready(function () {
|
|
|
12794
12986
|
handleClickAndScroll('.pdp-price-sale__value .pdp-price__excluding-delivery', '.pdp__fulfilment');
|
|
12795
12987
|
});
|
|
12796
12988
|
|
|
12797
|
-
},{}],
|
|
12989
|
+
},{}],71:[function(require,module,exports){
|
|
12798
12990
|
"use strict";
|
|
12799
12991
|
|
|
12800
12992
|
var Wick = Wick || {};
|
|
@@ -12880,7 +13072,7 @@ $(document).ready(function () {
|
|
|
12880
13072
|
initPersonalDetails();
|
|
12881
13073
|
});
|
|
12882
13074
|
|
|
12883
|
-
},{}],
|
|
13075
|
+
},{}],72:[function(require,module,exports){
|
|
12884
13076
|
"use strict";
|
|
12885
13077
|
|
|
12886
13078
|
function getHtmlByCurrentPage(_ref) {
|
|
@@ -12909,7 +13101,7 @@ $(document).ready(function () {
|
|
|
12909
13101
|
initPLPLoadMoreFunctionality();
|
|
12910
13102
|
});
|
|
12911
13103
|
|
|
12912
|
-
},{}],
|
|
13104
|
+
},{}],73:[function(require,module,exports){
|
|
12913
13105
|
"use strict";
|
|
12914
13106
|
|
|
12915
13107
|
var Wick = window.Wick = window.Wick || {};
|
|
@@ -13127,7 +13319,7 @@ Wick.MiniBasket = function () {
|
|
|
13127
13319
|
};
|
|
13128
13320
|
}();
|
|
13129
13321
|
|
|
13130
|
-
},{}],
|
|
13322
|
+
},{}],74:[function(require,module,exports){
|
|
13131
13323
|
"use strict";
|
|
13132
13324
|
|
|
13133
13325
|
var Wick = Wick || {};
|
|
@@ -13168,7 +13360,7 @@ $(document).ready(function () {
|
|
|
13168
13360
|
Wick.ProductCounter.bind();
|
|
13169
13361
|
});
|
|
13170
13362
|
|
|
13171
|
-
},{}],
|
|
13363
|
+
},{}],75:[function(require,module,exports){
|
|
13172
13364
|
"use strict";
|
|
13173
13365
|
|
|
13174
13366
|
var Wick = Wick || {};
|
|
@@ -13203,7 +13395,7 @@ $(document).ready(function () {
|
|
|
13203
13395
|
Wick.ProjectListMultiple.bindAll();
|
|
13204
13396
|
});
|
|
13205
13397
|
|
|
13206
|
-
},{}],
|
|
13398
|
+
},{}],76:[function(require,module,exports){
|
|
13207
13399
|
"use strict";
|
|
13208
13400
|
|
|
13209
13401
|
var Wick = window.Wick = window.Wick || {};
|
|
@@ -13490,7 +13682,7 @@ $(document).ready(function () {
|
|
|
13490
13682
|
init();
|
|
13491
13683
|
});
|
|
13492
13684
|
|
|
13493
|
-
},{}],
|
|
13685
|
+
},{}],77:[function(require,module,exports){
|
|
13494
13686
|
"use strict";
|
|
13495
13687
|
|
|
13496
13688
|
function initProjectShadowList() {
|
|
@@ -13552,7 +13744,7 @@ $(document).ready(function () {
|
|
|
13552
13744
|
initProjectShadowList();
|
|
13553
13745
|
});
|
|
13554
13746
|
|
|
13555
|
-
},{}],
|
|
13747
|
+
},{}],78:[function(require,module,exports){
|
|
13556
13748
|
"use strict";
|
|
13557
13749
|
|
|
13558
13750
|
function initQuizEmail() {
|
|
@@ -13572,7 +13764,7 @@ $(document).ready(function () {
|
|
|
13572
13764
|
initQuizEmail();
|
|
13573
13765
|
});
|
|
13574
13766
|
|
|
13575
|
-
},{}],
|
|
13767
|
+
},{}],79:[function(require,module,exports){
|
|
13576
13768
|
"use strict";
|
|
13577
13769
|
|
|
13578
13770
|
var Wick = Wick || {};
|
|
@@ -13672,7 +13864,7 @@ Wick.ReferenceField = function () {
|
|
|
13672
13864
|
init();
|
|
13673
13865
|
}();
|
|
13674
13866
|
|
|
13675
|
-
},{}],
|
|
13867
|
+
},{}],80:[function(require,module,exports){
|
|
13676
13868
|
"use strict";
|
|
13677
13869
|
|
|
13678
13870
|
var Wick = Wick || {};
|
|
@@ -13702,7 +13894,7 @@ Wick.RepaymentToggle = function () {
|
|
|
13702
13894
|
bindEvents();
|
|
13703
13895
|
}();
|
|
13704
13896
|
|
|
13705
|
-
},{}],
|
|
13897
|
+
},{}],81:[function(require,module,exports){
|
|
13706
13898
|
"use strict";
|
|
13707
13899
|
|
|
13708
13900
|
$(document).on('click', '.filter-results__clear', function () {
|
|
@@ -13711,7 +13903,7 @@ $(document).on('click', '.filter-results__clear', function () {
|
|
|
13711
13903
|
form.submit();
|
|
13712
13904
|
});
|
|
13713
13905
|
|
|
13714
|
-
},{}],
|
|
13906
|
+
},{}],82:[function(require,module,exports){
|
|
13715
13907
|
"use strict";
|
|
13716
13908
|
|
|
13717
13909
|
var Wick = Wick || {};
|
|
@@ -13737,7 +13929,7 @@ Wick.Selectable = function () {
|
|
|
13737
13929
|
bindEvents();
|
|
13738
13930
|
}();
|
|
13739
13931
|
|
|
13740
|
-
},{}],
|
|
13932
|
+
},{}],83:[function(require,module,exports){
|
|
13741
13933
|
"use strict";
|
|
13742
13934
|
|
|
13743
13935
|
var Wick = Wick || {};
|
|
@@ -13820,7 +14012,7 @@ $(document).ready(function () {
|
|
|
13820
14012
|
Wick.ShoppingList.bindAll();
|
|
13821
14013
|
});
|
|
13822
14014
|
|
|
13823
|
-
},{}],
|
|
14015
|
+
},{}],84:[function(require,module,exports){
|
|
13824
14016
|
"use strict";
|
|
13825
14017
|
|
|
13826
14018
|
var Wick = Wick || {};
|
|
@@ -13845,26 +14037,64 @@ Wick.SignUp = function () {
|
|
|
13845
14037
|
});
|
|
13846
14038
|
}();
|
|
13847
14039
|
|
|
13848
|
-
},{}],
|
|
14040
|
+
},{}],85:[function(require,module,exports){
|
|
13849
14041
|
"use strict";
|
|
13850
14042
|
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13854
|
-
var
|
|
13855
|
-
|
|
13856
|
-
|
|
13857
|
-
|
|
13858
|
-
|
|
13859
|
-
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
|
|
13865
|
-
|
|
14043
|
+
var _loader = require("../page/utils/loader");
|
|
14044
|
+
function initStoreLocatorLoadMore() {
|
|
14045
|
+
var PAGE_SIZE = 8;
|
|
14046
|
+
var SELECTORS = {
|
|
14047
|
+
cards: '.cards-store-list',
|
|
14048
|
+
btnMore: '.store-locator__load-button_more',
|
|
14049
|
+
loader: '.store-locator-loader'
|
|
14050
|
+
};
|
|
14051
|
+
var loaderPayload = {
|
|
14052
|
+
wrapper: 'body',
|
|
14053
|
+
hidden: true,
|
|
14054
|
+
modifier: 'store-locator-loader'
|
|
14055
|
+
};
|
|
14056
|
+
var $cards = $(SELECTORS.cards);
|
|
14057
|
+
var $btnMore = $(SELECTORS.btnMore);
|
|
14058
|
+
var visibleCount = PAGE_SIZE;
|
|
14059
|
+
function updateVisibility() {
|
|
14060
|
+
var _Wick$StoreCardsAlign;
|
|
14061
|
+
$cards.each(function (index) {
|
|
14062
|
+
$(this).toggle(index < visibleCount);
|
|
14063
|
+
});
|
|
14064
|
+
if (visibleCount >= $cards.length) {
|
|
14065
|
+
$btnMore.hide();
|
|
14066
|
+
} else {
|
|
14067
|
+
$btnMore.show();
|
|
14068
|
+
}
|
|
14069
|
+
(_Wick$StoreCardsAlign = Wick.StoreCardsAlign) === null || _Wick$StoreCardsAlign === void 0 ? void 0 : _Wick$StoreCardsAlign.align();
|
|
14070
|
+
}
|
|
14071
|
+
function loadMore() {
|
|
14072
|
+
(0, _loader.showLoader)(SELECTORS.loader);
|
|
14073
|
+
$btnMore.prop('disabled', true);
|
|
14074
|
+
setTimeout(function () {
|
|
14075
|
+
visibleCount += PAGE_SIZE;
|
|
14076
|
+
updateVisibility();
|
|
14077
|
+
(0, _loader.hideLoader)(SELECTORS.loader);
|
|
14078
|
+
$btnMore.prop('disabled', false).blur();
|
|
14079
|
+
}, 1000);
|
|
14080
|
+
}
|
|
14081
|
+
function init() {
|
|
14082
|
+
if (!$cards.length || !$btnMore.length) {
|
|
14083
|
+
return;
|
|
14084
|
+
}
|
|
14085
|
+
if (!$(SELECTORS.loader).length) {
|
|
14086
|
+
(0, _loader.appendLoader)(loaderPayload);
|
|
14087
|
+
}
|
|
14088
|
+
updateVisibility();
|
|
14089
|
+
$btnMore.on('click', loadMore);
|
|
14090
|
+
}
|
|
14091
|
+
init();
|
|
14092
|
+
}
|
|
14093
|
+
$(document).ready(function () {
|
|
14094
|
+
initStoreLocatorLoadMore();
|
|
14095
|
+
});
|
|
13866
14096
|
|
|
13867
|
-
},{}],
|
|
14097
|
+
},{"../page/utils/loader":93}],86:[function(require,module,exports){
|
|
13868
14098
|
"use strict";
|
|
13869
14099
|
|
|
13870
14100
|
var Wick = window.Wick || {};
|
|
@@ -13905,7 +14135,7 @@ $(document).ready(function () {
|
|
|
13905
14135
|
}, 250));
|
|
13906
14136
|
});
|
|
13907
14137
|
|
|
13908
|
-
},{}],
|
|
14138
|
+
},{}],87:[function(require,module,exports){
|
|
13909
14139
|
"use strict";
|
|
13910
14140
|
|
|
13911
14141
|
var Wick = Wick || {};
|
|
@@ -13927,7 +14157,7 @@ $(document).ready(function () {
|
|
|
13927
14157
|
Wick.addListToBasket.addAllProjectList();
|
|
13928
14158
|
});
|
|
13929
14159
|
|
|
13930
|
-
},{}],
|
|
14160
|
+
},{}],88:[function(require,module,exports){
|
|
13931
14161
|
"use strict";
|
|
13932
14162
|
|
|
13933
14163
|
var Wick = Wick || {};
|
|
@@ -13965,7 +14195,7 @@ Wick.User = function () {
|
|
|
13965
14195
|
};
|
|
13966
14196
|
}();
|
|
13967
14197
|
|
|
13968
|
-
},{}],
|
|
14198
|
+
},{}],89:[function(require,module,exports){
|
|
13969
14199
|
"use strict";
|
|
13970
14200
|
|
|
13971
14201
|
var suppressQuantityReportValidityOnBlur = false;
|
|
@@ -13992,14 +14222,14 @@ $(document).off('keydown.quantityValidation', '#quantity-field').on('keydown.qua
|
|
|
13992
14222
|
}, 150);
|
|
13993
14223
|
});
|
|
13994
14224
|
|
|
13995
|
-
},{}],
|
|
14225
|
+
},{}],90:[function(require,module,exports){
|
|
13996
14226
|
"use strict";
|
|
13997
14227
|
|
|
13998
14228
|
window.ACC = window.ACC || {};
|
|
13999
14229
|
window.ACC.app = window.ACC.app || {};
|
|
14000
14230
|
window.ACC.app.isVatToggleAvailable = !!$('.switch-vat input').length;
|
|
14001
14231
|
|
|
14002
|
-
},{}],
|
|
14232
|
+
},{}],91:[function(require,module,exports){
|
|
14003
14233
|
"use strict";
|
|
14004
14234
|
|
|
14005
14235
|
var Wick = window.Wick = window.Wick || {};
|
|
@@ -14031,7 +14261,7 @@ Wick.Wismo = function () {
|
|
|
14031
14261
|
});
|
|
14032
14262
|
}();
|
|
14033
14263
|
|
|
14034
|
-
},{}],
|
|
14264
|
+
},{}],92:[function(require,module,exports){
|
|
14035
14265
|
"use strict";
|
|
14036
14266
|
|
|
14037
14267
|
var Wick = Wick || {};
|
|
@@ -14110,7 +14340,33 @@ Wick.YourDetails = function () {
|
|
|
14110
14340
|
});
|
|
14111
14341
|
}();
|
|
14112
14342
|
|
|
14113
|
-
},{}],
|
|
14343
|
+
},{}],93:[function(require,module,exports){
|
|
14344
|
+
"use strict";
|
|
14345
|
+
|
|
14346
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14347
|
+
value: true
|
|
14348
|
+
});
|
|
14349
|
+
exports.appendLoader = appendLoader;
|
|
14350
|
+
exports.hideLoader = hideLoader;
|
|
14351
|
+
exports.showLoader = showLoader;
|
|
14352
|
+
var _loader = _interopRequireDefault(require("../../../elements/loader.hbs"));
|
|
14353
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14354
|
+
var defaultLoader = '.loader-wrapper';
|
|
14355
|
+
var HIDDEN_CLASS_NAME = 'd-none';
|
|
14356
|
+
function defineLoaderWrapper(loader) {
|
|
14357
|
+
return loader ? loader : defaultLoader;
|
|
14358
|
+
}
|
|
14359
|
+
function appendLoader(payload) {
|
|
14360
|
+
$(payload.wrapper).append((0, _loader["default"])(payload));
|
|
14361
|
+
}
|
|
14362
|
+
function showLoader(loaderSelector) {
|
|
14363
|
+
$(defineLoaderWrapper(loaderSelector)).removeClass(HIDDEN_CLASS_NAME);
|
|
14364
|
+
}
|
|
14365
|
+
function hideLoader(loaderSelector) {
|
|
14366
|
+
$(defineLoaderWrapper(loaderSelector)).addClass(HIDDEN_CLASS_NAME);
|
|
14367
|
+
}
|
|
14368
|
+
|
|
14369
|
+
},{"../../../elements/loader.hbs":25}],94:[function(require,module,exports){
|
|
14114
14370
|
"use strict";
|
|
14115
14371
|
|
|
14116
14372
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -14347,4 +14603,4 @@ function createShowMoreLess() {
|
|
|
14347
14603
|
};
|
|
14348
14604
|
}
|
|
14349
14605
|
|
|
14350
|
-
},{"../../../elements/btn.hbs":24}]},{},[
|
|
14606
|
+
},{"../../../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]);
|