@bonlineza/luxity-lib 2.39.1 → 2.39.3
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/LuxityDesktopHeader.js +41 -13
- package/LuxityFooter.js +1 -2
- package/LuxityMobileHeader.js +41 -13
- package/build/bundle.css +1 -1
- package/build/bundle.js +50 -20
- package/package.json +1 -1
package/LuxityDesktopHeader.js
CHANGED
|
@@ -333,7 +333,9 @@
|
|
|
333
333
|
noResultsImage = _ref.noResultsImage,
|
|
334
334
|
showNoResults = _ref.showNoResults,
|
|
335
335
|
_ref$isLoading = _ref.isLoading,
|
|
336
|
-
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading
|
|
336
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
337
|
+
_ref$showCreateIntere = _ref.showCreateInterest,
|
|
338
|
+
showCreateInterest = _ref$showCreateIntere === void 0 ? true : _ref$showCreateIntere;
|
|
337
339
|
|
|
338
340
|
var _useState = React.useState(false),
|
|
339
341
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -560,9 +562,9 @@
|
|
|
560
562
|
className: "search-results__no-results-text"
|
|
561
563
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
562
564
|
className: "search-results__no-results-title"
|
|
563
|
-
}, "There are currently no products in stock that match your selection"), /*#__PURE__*/React__default.createElement("p", {
|
|
565
|
+
}, "There are currently no products in stock that match your selection"), showCreateInterest && /*#__PURE__*/React__default.createElement("p", {
|
|
564
566
|
className: "search-results__no-results-description"
|
|
565
|
-
}, "Create an interest now and receive instant notifications as your interests list."))), /*#__PURE__*/React__default.createElement("button", {
|
|
567
|
+
}, "Create an interest now and receive instant notifications as your interests list."))), showCreateInterest && /*#__PURE__*/React__default.createElement("button", {
|
|
566
568
|
type: "button",
|
|
567
569
|
className: "search-results__create-interest-button",
|
|
568
570
|
onClick: onCreateInterests
|
|
@@ -1036,6 +1038,8 @@
|
|
|
1036
1038
|
};
|
|
1037
1039
|
|
|
1038
1040
|
var useSearchClickOutside = function useSearchClickOutside(ref, searchResults, setCachedResults, setIsSearchFocused, setSearchResults) {
|
|
1041
|
+
var setSearchValue = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
1042
|
+
var setShowNoResults = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
|
|
1039
1043
|
React.useEffect(function () {
|
|
1040
1044
|
var handleClickOutside = function handleClickOutside(event) {
|
|
1041
1045
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
@@ -1044,7 +1048,15 @@
|
|
|
1044
1048
|
setSearchResults({
|
|
1045
1049
|
brands: [],
|
|
1046
1050
|
products: []
|
|
1047
|
-
});
|
|
1051
|
+
}); // Reset search value and no results state when closing
|
|
1052
|
+
|
|
1053
|
+
if (setSearchValue) {
|
|
1054
|
+
setSearchValue('');
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
if (setShowNoResults) {
|
|
1058
|
+
setShowNoResults(false);
|
|
1059
|
+
}
|
|
1048
1060
|
}
|
|
1049
1061
|
};
|
|
1050
1062
|
|
|
@@ -1052,11 +1064,19 @@
|
|
|
1052
1064
|
return function () {
|
|
1053
1065
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
1054
1066
|
};
|
|
1055
|
-
}, [ref, searchResults, setCachedResults, setIsSearchFocused, setSearchResults]);
|
|
1067
|
+
}, [ref, searchResults, setCachedResults, setIsSearchFocused, setSearchResults, setSearchValue, setShowNoResults]);
|
|
1056
1068
|
};
|
|
1057
1069
|
var useSearchInputChange = function useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults) {
|
|
1070
|
+
var app = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
1071
|
+
var productsUrl = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
|
|
1058
1072
|
return React.useCallback(function (event) {
|
|
1059
1073
|
var value = event.target.value;
|
|
1074
|
+
|
|
1075
|
+
if (app && productsUrl && value.trim().length > 0) {
|
|
1076
|
+
window.location.href = productsUrl;
|
|
1077
|
+
return;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1060
1080
|
setSearchValue(value);
|
|
1061
1081
|
setIsSearchFocused(true);
|
|
1062
1082
|
|
|
@@ -1072,19 +1092,24 @@
|
|
|
1072
1092
|
products: []
|
|
1073
1093
|
});
|
|
1074
1094
|
}
|
|
1075
|
-
}, [setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults]);
|
|
1095
|
+
}, [setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults, app, productsUrl]);
|
|
1076
1096
|
};
|
|
1077
1097
|
var useSearchInputFocus = function useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults) {
|
|
1078
1098
|
var handleSearchClick = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
|
|
1099
|
+
var setShowNoResults = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
1079
1100
|
return React.useCallback(function () {
|
|
1080
|
-
setIsSearchFocused(true);
|
|
1101
|
+
setIsSearchFocused(true); // Reset no results state when reopening search
|
|
1102
|
+
|
|
1103
|
+
if (setShowNoResults) {
|
|
1104
|
+
setShowNoResults(false);
|
|
1105
|
+
}
|
|
1081
1106
|
|
|
1082
1107
|
if (typeof handleSearchClick === 'function') {
|
|
1083
1108
|
handleSearchClick();
|
|
1084
1109
|
} else if (searchValue.trim().length >= 3) {
|
|
1085
1110
|
setSearchResults(cachedResults);
|
|
1086
1111
|
}
|
|
1087
|
-
}, [searchValue, setIsSearchFocused, cachedResults, setSearchResults, handleSearchClick]);
|
|
1112
|
+
}, [searchValue, setIsSearchFocused, cachedResults, setSearchResults, handleSearchClick, setShowNoResults]);
|
|
1088
1113
|
};
|
|
1089
1114
|
var useSearchInputKeyDown = function useSearchInputKeyDown(searchValue, immediateSearch, setIsSearchFocused) {
|
|
1090
1115
|
var setSearchValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
@@ -1154,7 +1179,9 @@
|
|
|
1154
1179
|
app = _ref.app,
|
|
1155
1180
|
categoryConfig = _ref.categoryConfig,
|
|
1156
1181
|
onCreateInterests = _ref.onCreateInterests,
|
|
1157
|
-
noResultsImage = _ref.noResultsImage
|
|
1182
|
+
noResultsImage = _ref.noResultsImage,
|
|
1183
|
+
_ref$showCreateIntere = _ref.showCreateInterest,
|
|
1184
|
+
showCreateInterest = _ref$showCreateIntere === void 0 ? true : _ref$showCreateIntere;
|
|
1158
1185
|
|
|
1159
1186
|
var _useState = React.useState(''),
|
|
1160
1187
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1239,8 +1266,8 @@
|
|
|
1239
1266
|
setCachedResults(results);
|
|
1240
1267
|
});
|
|
1241
1268
|
var immediateSearch = createImmediateSearch(setSearchValue, setSearchResults, onSearchSubmit);
|
|
1242
|
-
var handleChange = useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults);
|
|
1243
|
-
useSearchClickOutside(searchResultsRef, searchResults, setCachedResults, setIsSearchFocused, setSearchResults);
|
|
1269
|
+
var handleChange = useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults, app, productsUrl);
|
|
1270
|
+
useSearchClickOutside(searchResultsRef, searchResults, setCachedResults, setIsSearchFocused, setSearchResults, setSearchValue, setShowNoResults);
|
|
1244
1271
|
|
|
1245
1272
|
var handleSearchClick = function handleSearchClick() {
|
|
1246
1273
|
if (typeof onSearchBarClick === 'function') {
|
|
@@ -1251,7 +1278,7 @@
|
|
|
1251
1278
|
handleSearchFocus();
|
|
1252
1279
|
};
|
|
1253
1280
|
|
|
1254
|
-
var handleSearchFocus = useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults);
|
|
1281
|
+
var handleSearchFocus = useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults, undefined, setShowNoResults);
|
|
1255
1282
|
var handleKeyDown = useSearchInputKeyDown(searchValue, immediateSearch, setIsSearchFocused);
|
|
1256
1283
|
|
|
1257
1284
|
function addCategoryToElements(elements, categoryName) {
|
|
@@ -1381,7 +1408,8 @@
|
|
|
1381
1408
|
onCreateInterests: onCreateInterests,
|
|
1382
1409
|
noResultsImage: noResultsImage,
|
|
1383
1410
|
showNoResults: showNoResults,
|
|
1384
|
-
isLoading: searchLoading
|
|
1411
|
+
isLoading: searchLoading,
|
|
1412
|
+
showCreateInterest: showCreateInterest
|
|
1385
1413
|
}), /*#__PURE__*/React__default.createElement("nav", {
|
|
1386
1414
|
className: "navbar__nav-links navbar__nav-links--wrap"
|
|
1387
1415
|
}, renderDropdownLinks(), !!stores.length && /*#__PURE__*/React__default.createElement("li", {
|
package/LuxityFooter.js
CHANGED
|
@@ -1823,7 +1823,6 @@
|
|
|
1823
1823
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
1824
1824
|
return _formControl.current;
|
|
1825
1825
|
}
|
|
1826
|
-
//# sourceMappingURL=index.esm.mjs.map
|
|
1827
1826
|
|
|
1828
1827
|
var theme = {
|
|
1829
1828
|
breakpoints: ['40em', '52em', '64em'],
|
|
@@ -2224,7 +2223,7 @@
|
|
|
2224
2223
|
className: "footer__title-wrapper"
|
|
2225
2224
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2226
2225
|
className: "footer__newsletter-title"
|
|
2227
|
-
}, "Sign up
|
|
2226
|
+
}, "Sign up for our newsletter"), /*#__PURE__*/React__default.createElement("p", {
|
|
2228
2227
|
className: "footer__newsletter-text"
|
|
2229
2228
|
}, "By signing up you agree to our terms & conditions and privacy policy. You can unsubscribe anytime.")), /*#__PURE__*/React__default.createElement("div", {
|
|
2230
2229
|
className: "footer__newsletter-form"
|
package/LuxityMobileHeader.js
CHANGED
|
@@ -953,7 +953,9 @@
|
|
|
953
953
|
noResultsImage = _ref.noResultsImage,
|
|
954
954
|
showNoResults = _ref.showNoResults,
|
|
955
955
|
_ref$isLoading = _ref.isLoading,
|
|
956
|
-
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading
|
|
956
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
957
|
+
_ref$showCreateIntere = _ref.showCreateInterest,
|
|
958
|
+
showCreateInterest = _ref$showCreateIntere === void 0 ? true : _ref$showCreateIntere;
|
|
957
959
|
|
|
958
960
|
var _useState = React.useState(false),
|
|
959
961
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1180,9 +1182,9 @@
|
|
|
1180
1182
|
className: "search-results__no-results-text"
|
|
1181
1183
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
1182
1184
|
className: "search-results__no-results-title"
|
|
1183
|
-
}, "There are currently no products in stock that match your selection"), /*#__PURE__*/React__default.createElement("p", {
|
|
1185
|
+
}, "There are currently no products in stock that match your selection"), showCreateInterest && /*#__PURE__*/React__default.createElement("p", {
|
|
1184
1186
|
className: "search-results__no-results-description"
|
|
1185
|
-
}, "Create an interest now and receive instant notifications as your interests list."))), /*#__PURE__*/React__default.createElement("button", {
|
|
1187
|
+
}, "Create an interest now and receive instant notifications as your interests list."))), showCreateInterest && /*#__PURE__*/React__default.createElement("button", {
|
|
1186
1188
|
type: "button",
|
|
1187
1189
|
className: "search-results__create-interest-button",
|
|
1188
1190
|
onClick: onCreateInterests
|
|
@@ -1453,6 +1455,8 @@
|
|
|
1453
1455
|
};
|
|
1454
1456
|
|
|
1455
1457
|
var useSearchClickOutside = function useSearchClickOutside(ref, searchResults, setCachedResults, setIsSearchFocused, setSearchResults) {
|
|
1458
|
+
var setSearchValue = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
1459
|
+
var setShowNoResults = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
|
|
1456
1460
|
React.useEffect(function () {
|
|
1457
1461
|
var handleClickOutside = function handleClickOutside(event) {
|
|
1458
1462
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
@@ -1461,7 +1465,15 @@
|
|
|
1461
1465
|
setSearchResults({
|
|
1462
1466
|
brands: [],
|
|
1463
1467
|
products: []
|
|
1464
|
-
});
|
|
1468
|
+
}); // Reset search value and no results state when closing
|
|
1469
|
+
|
|
1470
|
+
if (setSearchValue) {
|
|
1471
|
+
setSearchValue('');
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
if (setShowNoResults) {
|
|
1475
|
+
setShowNoResults(false);
|
|
1476
|
+
}
|
|
1465
1477
|
}
|
|
1466
1478
|
};
|
|
1467
1479
|
|
|
@@ -1469,11 +1481,19 @@
|
|
|
1469
1481
|
return function () {
|
|
1470
1482
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
1471
1483
|
};
|
|
1472
|
-
}, [ref, searchResults, setCachedResults, setIsSearchFocused, setSearchResults]);
|
|
1484
|
+
}, [ref, searchResults, setCachedResults, setIsSearchFocused, setSearchResults, setSearchValue, setShowNoResults]);
|
|
1473
1485
|
};
|
|
1474
1486
|
var useSearchInputChange = function useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults) {
|
|
1487
|
+
var app = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
1488
|
+
var productsUrl = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
|
|
1475
1489
|
return React.useCallback(function (event) {
|
|
1476
1490
|
var value = event.target.value;
|
|
1491
|
+
|
|
1492
|
+
if (app && productsUrl && value.trim().length > 0) {
|
|
1493
|
+
window.location.href = productsUrl;
|
|
1494
|
+
return;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1477
1497
|
setSearchValue(value);
|
|
1478
1498
|
setIsSearchFocused(true);
|
|
1479
1499
|
|
|
@@ -1489,19 +1509,24 @@
|
|
|
1489
1509
|
products: []
|
|
1490
1510
|
});
|
|
1491
1511
|
}
|
|
1492
|
-
}, [setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults]);
|
|
1512
|
+
}, [setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults, app, productsUrl]);
|
|
1493
1513
|
};
|
|
1494
1514
|
var useSearchInputFocus = function useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults) {
|
|
1495
1515
|
var handleSearchClick = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
|
|
1516
|
+
var setShowNoResults = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
1496
1517
|
return React.useCallback(function () {
|
|
1497
|
-
setIsSearchFocused(true);
|
|
1518
|
+
setIsSearchFocused(true); // Reset no results state when reopening search
|
|
1519
|
+
|
|
1520
|
+
if (setShowNoResults) {
|
|
1521
|
+
setShowNoResults(false);
|
|
1522
|
+
}
|
|
1498
1523
|
|
|
1499
1524
|
if (typeof handleSearchClick === 'function') {
|
|
1500
1525
|
handleSearchClick();
|
|
1501
1526
|
} else if (searchValue.trim().length >= 3) {
|
|
1502
1527
|
setSearchResults(cachedResults);
|
|
1503
1528
|
}
|
|
1504
|
-
}, [searchValue, setIsSearchFocused, cachedResults, setSearchResults, handleSearchClick]);
|
|
1529
|
+
}, [searchValue, setIsSearchFocused, cachedResults, setSearchResults, handleSearchClick, setShowNoResults]);
|
|
1505
1530
|
};
|
|
1506
1531
|
var useSearchInputKeyDown = function useSearchInputKeyDown(searchValue, immediateSearch, setIsSearchFocused) {
|
|
1507
1532
|
var setSearchValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
@@ -1577,7 +1602,9 @@
|
|
|
1577
1602
|
categoryConfig = _ref.categoryConfig,
|
|
1578
1603
|
name = _ref.name,
|
|
1579
1604
|
onCreateInterests = _ref.onCreateInterests,
|
|
1580
|
-
noResultsImage = _ref.noResultsImage
|
|
1605
|
+
noResultsImage = _ref.noResultsImage,
|
|
1606
|
+
_ref$showCreateIntere = _ref.showCreateInterest,
|
|
1607
|
+
showCreateInterest = _ref$showCreateIntere === void 0 ? true : _ref$showCreateIntere;
|
|
1581
1608
|
|
|
1582
1609
|
var _useState = React.useState(false),
|
|
1583
1610
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1657,7 +1684,7 @@
|
|
|
1657
1684
|
setCachedResults(results);
|
|
1658
1685
|
});
|
|
1659
1686
|
var immediateSearch = createImmediateSearch(setSearchValue, setSearchResults, onSearchSubmit);
|
|
1660
|
-
var handleChange = useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults);
|
|
1687
|
+
var handleChange = useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults, app, productsUrl);
|
|
1661
1688
|
var handleKeyDown = useSearchInputKeyDown(searchValue, immediateSearch, setIsSearchFocused, setSearchValue);
|
|
1662
1689
|
React.useMemo(function () {
|
|
1663
1690
|
if (!initialSearchData) {
|
|
@@ -1666,8 +1693,8 @@
|
|
|
1666
1693
|
|
|
1667
1694
|
fetchInitialSearchData(initialSearchData, setInitialSearchView);
|
|
1668
1695
|
}, [initialSearchData, fetchInitialSearchData]);
|
|
1669
|
-
useSearchClickOutside(searchResultsRef, searchResults, setCachedResults, setIsSearchFocused, setSearchResults);
|
|
1670
|
-
var handleSearchFocus = useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults);
|
|
1696
|
+
useSearchClickOutside(searchResultsRef, searchResults, setCachedResults, setIsSearchFocused, setSearchResults, setSearchValue, setShowNoResults);
|
|
1697
|
+
var handleSearchFocus = useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults, undefined, setShowNoResults);
|
|
1671
1698
|
React.useEffect(function () {
|
|
1672
1699
|
if (showSearchBar && searchInputRef.current) {
|
|
1673
1700
|
searchInputRef.current.focus();
|
|
@@ -1890,7 +1917,8 @@
|
|
|
1890
1917
|
onCreateInterests: onCreateInterests,
|
|
1891
1918
|
noResultsImage: noResultsImage,
|
|
1892
1919
|
showNoResults: showNoResults,
|
|
1893
|
-
isLoading: searchLoading
|
|
1920
|
+
isLoading: searchLoading,
|
|
1921
|
+
showCreateInterest: showCreateInterest
|
|
1894
1922
|
}))), shop && /*#__PURE__*/React__default.createElement(LuxitySideNav, {
|
|
1895
1923
|
accordionIcon: accordionIcon,
|
|
1896
1924
|
logoSrc: logoSrc,
|
package/build/bundle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.interests__add-button{display:flex;flex-direction:row;gap:10px;width:100%}@media only screen and (max-width:879px){.interests__add-button{flex-direction:column}}.interests__section-wrapper{display:flex;flex-direction:column;width:100%}.interests__select-option{display:flex;flex-direction:column;margin-bottom:15px}.interests__title{font-family:El Messiri;font-size:16px;margin-bottom:10px}@charset "UTF-8";.currency-select-container{align-items:center;display:flex;margin-right:18px;position:relative}.currency-select-container .currency-flag{margin-right:5px}.currency-select-container .currency-flag img{height:15px;-o-object-fit:cover;object-fit:cover;width:20px}.currency-select-container .currency-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:transparent;border:none;color:#000;cursor:pointer;font-family:inherit;font-size:14px;margin:0;outline:none;padding:5px 15px 5px 5px}.currency-select-container .currency-select::-ms-expand{display:none}.currency-select-container .currency-select:focus{box-shadow:none;outline:none}.currency-select-container .currency-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.currency-select-container:after{color:#000;content:"▼";font-size:10px;pointer-events:none;position:absolute;right:0;top:50%;transform:translateY(-50%)}@media only screen and (max-width:879px){.currency-select-container .currency-select{appearance:menulist;-webkit-appearance:menulist;-moz-appearance:menulist;padding-right:0}.currency-select-container:after{display:none}}.currency-select-container.disabled{cursor:not-allowed;opacity:.7}.currency-select-container.disabled .currency-select{pointer-events:none}.navbar{box-shadow:2px 2px 10px #dfdede;display:flex;padding-bottom:10px;padding-top:20px;position:relative}@media only screen and (max-width:879px){.navbar{padding-top:12px}}.navbar__link-item--desktop{align-items:center;display:flex;height:35px;margin:auto 0;padding-top:5px}.navbar__mobile-wrapper{align-items:center;display:flex;flex-direction:column;padding-left:16px;padding-right:16px}.navbar__container{display:flex;margin:0 auto;max-width:1280px;padding-left:12px;padding-right:12px;width:100%}.navbar__body{flex-basis:60%}.navbar__wrapper{align-items:center;display:flex;gap:10px;justify-content:flex-start;width:100%}@media only screen and (max-width:879px){.navbar__wrapper .navbar__menu-icon-wrapper{margin-right:10px}.navbar__wrapper .navbar__logo{margin-left:0;margin-right:auto}.navbar__wrapper .navbar__icons-wrapper{align-items:center;display:flex;gap:20px;margin-left:auto}.navbar__wrapper .navbar__icons{align-items:center;display:flex;gap:20px;margin:0}.navbar__wrapper .navbar__icon{margin:0}}.navbar__product-search-wrapper{align-items:center;display:flex;justify-content:center;padding:0 20%;width:100%}@media only screen and (max-width:879px){.navbar__product-search-wrapper{padding:0}}.navbar__search-container{width:100%}.navbar__input-close-icon{height:auto;margin-bottom:10px;margin-left:10px;width:20px}@media only screen and (max-width:879px){.navbar__input-close-icon{margin-bottom:0;margin-left:0;width:15px}}.navbar__menu-icon{width:20px}.navbar__product-search{align-items:center;display:flex;max-width:545px;width:100%}.navbar__logo-wrapper{margin-right:18px;width:200px}.navbar__logo{width:200px}@media only screen and (max-width:879px){.navbar__logo{margin-left:10px;margin-top:5px;width:150px}}.navbar__form-input{align-items:center;background:transparent;border:none;display:flex;font-size:13px;outline:none;padding:8px;width:100%}.navbar__product-search{border:1px solid #dfdede;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__product-search{border:none;border-bottom:1px solid #dfdede;margin-bottom:0;margin-right:10px;margin-top:10px}}.navbar__section{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;width:100%}.navbar__link{display:inline-block;font-family:Martel Sans;font-size:14px;font-weight:700;margin-right:10px;overflow:hidden;text-transform:uppercase;transition:.3s ease-in-out}.navbar__link:after{background-color:#000;content:"";display:block;height:2px;transition:width .25s ease-out;width:0}.navbar__link:hover:after{width:100%}.navbar__link:hover .navbar__dropdown{animation:fadeInDropdown .3s ease-in-out;display:block}.navbar__dropdown{background-color:#fff;box-shadow:5px 5px 5px #dfdede;display:none;left:0;position:absolute;width:100%;z-index:999}@keyframes fadeInDropdown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.navbar__company-link{font-size:13px;font-weight:400;list-style:none;margin-left:18px;text-decoration:none}.navbar__company-block{align-items:center;background-color:#000;color:#fff;display:flex;font-weight:700;height:33px;justify-content:center;margin-right:0;padding:0 18px;text-transform:uppercase}.navbar__input-search-icon{height:auto;margin-left:1.125rem;margin-right:.375rem;width:15px}.navbar__nav-links{align-items:center;display:flex}.navbar__nav-links--wrap{flex-wrap:wrap}.navbar__icons{align-items:center;display:flex;height:40px;justify-content:flex-end;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__icons{display:block;height:20px;margin-bottom:0}}.navbar__icon{cursor:pointer;height:auto;margin-right:18px;width:20px}.navbar__icon.navbar__cart-icon{margin-right:0}.navbar__icon--app{cursor:pointer;height:auto;margin-left:12px;width:20px}@media only screen and (max-width:879px){.navbar__icon--app{margin-right:0}}.navbar__loyalty-icon{height:18px;position:absolute;right:-14px;top:-6px;width:18px}.navbar__cart-icon{position:relative}.navbar__cart-count{bottom:50%;font-size:13px;height:20px;left:60%;position:absolute;width:20px}.navbar__account-initials,.navbar__cart-count{align-items:center;background-color:#f2eeeb;border-radius:50%;color:#000;display:flex;justify-content:center}.navbar__account-initials{font-size:11px;font-weight:500;height:24px;text-transform:uppercase;width:24px}.footer__newsletter-section{align-items:center;background-color:#000;color:#fff;display:flex;justify-content:space-between;padding:2.265rem 0}@media only screen and (max-width:879px){.footer__newsletter-section{flex-direction:column}}.footer__newsletter-wrapper{align-items:center;display:flex;justify-content:space-between;margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__newsletter-wrapper{flex-direction:column}.footer__link-container{flex-basis:50%}}.footer__newsletter-icon{height:30px;position:absolute;right:0;top:0;width:32px}.footer__newsletter-form{flex-basis:50%;max-width:250px;position:relative}@media only screen and (max-width:879px){.footer__newsletter-form{display:block;margin-top:20px;max-width:100%;width:100%}}.footer__newsletter-title{font-family:Martel Sans,sans-serif;font-size:14px;font-weight:700;letter-spacing:3px;margin-bottom:1.125rem;text-transform:uppercase}.footer__newsletter-text{font-size:14px}.footer__form-input{background-color:#000;border:none;border-bottom:1px solid #fff;color:#fff;height:30px;outline:none;width:100%}.footer__form-input::-moz-placeholder{color:#fff;font-weight:400}.footer__form-input::placeholder{color:#fff;font-weight:400}.footer__form-errors{color:#fff;margin-top:5px}.footer__main-section{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:50px;margin-top:80px}.footer__link-title{font-family:El Messiri;font-size:16px;font-weight:700;margin-bottom:20px;text-transform:uppercase}@media only screen and (max-width:879px){.footer__link-title{margin-bottom:10px}}.footer__link-child{margin-top:25px}.footer__links{display:flex;flex-direction:column}.footer__link{color:#939393;cursor:pointer;font-family:Martel Sans;font-size:14px;line-height:20px;margin-bottom:7px;text-align:left;text-decoration:none}.footer__link:hover{color:#000;text-decoration:underline}@media only screen and (max-width:879px){.footer__link{margin-bottom:10px}}.footer__link-wrapper{align-items:center;display:flex;gap:5px}.footer__link-icon{height:30px;margin-bottom:18px}.footer__text{color:#939393;font-family:Martel Sans;font-size:14px;line-height:20px;margin-bottom:15px;text-align:left;text-decoration:none}.footer__store-hours{margin-top:35px}.footer__copyrights-section{border-top:1px solid;display:flex;justify-content:space-between;padding-bottom:20px;padding-top:20px}.footer__logo{height:30px;width:135px}.footer__payment-icons{align-items:center;display:flex;gap:8px}.footer__wrapper{margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__wrapper{padding:32px 0 0 24px}}.footer__wrapper--desktop{display:block}@media only screen and (max-width:879px){.footer__wrapper--desktop{display:none}}.footer__wrapper--mobile{display:none}@media only screen and (max-width:879px){.footer__wrapper--mobile{display:block;padding-top:30px}}.footer__copyright{font-size:10px;line-height:22px}.footer__copyright--mobile{display:none}@media only screen and (max-width:879px){.footer__copyright--mobile{display:block;padding:30px 10px 30px 0;text-align:center}}.footer__section-row{display:flex;gap:50%}@media only screen and (max-width:879px){.footer__section-row{gap:unset}}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.side-nav__overlay{background-color:rgba(78,73,73,.51);height:100%;opacity:0;position:fixed;top:0;transition:opacity .5s ease-out 0s,visibility .5s ease-out 0s;width:100%;z-index:99999}.side-nav__overlay--visible{opacity:1;visibility:visible}.side-nav__overlay--hidden{opacity:1;visibility:hidden}.side-nav__content{background-color:#fff;bottom:0;overflow-y:scroll;padding:1.5rem;position:fixed;top:0;transition:left .5s ease-in-out;width:80%;z-index:99999}.side-nav__content--hidden{display:none}.side-nav__content--open{left:0}.side-nav__content--closed{left:-100%}.side-nav__menu-title-wrapper{align-items:center;background-color:transparent;border:none;display:flex;justify-content:space-between;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{font-size:14px;font-weight:700;line-height:20px;text-transform:uppercase}.side-nav__accordion-icon{height:auto;width:15px}.side-nav__menu-item{margin-bottom:25px}.side-nav__close-icon{height:20px;margin-left:auto;width:20px}.side-nav__back-button-wrapper{align-items:center;display:flex;margin-bottom:25px}.side-nav__back-icon{height:20px;width:20px}.side-nav__back-button,.side-nav__sub-menu-title{font-weight:700;text-transform:uppercase}.side-nav__sub-menu-title{font-size:14px;margin-bottom:10px}.side-nav__elements{display:flex;flex-direction:column}.side-nav__element{color:#555;cursor:pointer;line-height:20px;margin-bottom:10px}.side-nav__element,.side-nav__sub-link{font-size:14px;font-weight:400;text-transform:capitalize}.side-nav__block-button{background-color:#000;color:#fff;font-weight:700;padding:10px 0;width:100%}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.side-nav__overlay{background-color:rgba(78,73,73,.51);height:100%;opacity:0;position:fixed;top:0;transition:opacity .5s ease-out 0s,visibility .5s ease-out 0s;width:100%;z-index:99999}.side-nav__overlay--visible{opacity:1;visibility:visible}.side-nav__overlay--hidden{opacity:1;visibility:hidden}.side-nav__content{background-color:#fff;bottom:0;overflow-y:scroll;padding:1.5rem;position:fixed;top:0;transition:left .5s ease-in-out;width:80%;z-index:99999}.side-nav__content--hidden{display:none}.side-nav__content--open{left:0}.side-nav__content--closed{left:-100%}.side-nav__menu-title-wrapper{align-items:center;background-color:transparent;border:none;display:flex;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{align-items:center;display:flex;font-size:14px;font-weight:700;justify-content:center;line-height:20px;text-transform:uppercase}.side-nav__menu-icon{display:flex;height:25px;margin-right:10px;width:25px}.side-nav__menu-divider{margin-bottom:40px}.side-nav__accordion-icon{height:auto;width:15px}.side-nav__menu-item{margin-bottom:25px}.side-nav__close-icon{height:20px;margin-left:auto;width:20px}.side-nav__back-button-wrapper{align-items:center;display:flex;margin-bottom:25px}.side-nav__back-icon{height:20px;width:20px}.side-nav__back-button,.side-nav__sub-menu-title{font-weight:700;text-transform:uppercase}.side-nav__sub-menu-title{font-size:14px;margin-bottom:10px}.side-nav__elements{display:flex;flex-direction:column}.side-nav__element{color:#555;cursor:pointer;line-height:20px;margin-bottom:10px}.side-nav__element,.side-nav__sub-link{font-size:14px;font-weight:400;text-transform:capitalize}.side-nav__block-button{background-color:#000;color:#fff;font-weight:700;padding:10px 0;width:100%}.stores-dropdown{align-items:flex-start;display:flex;font-family:Martel Sans;gap:20px;margin-left:auto;margin-right:auto;max-width:1280px;overflow-x:auto;padding:20px 15px}.stores-dropdown__image{height:200px;-o-object-fit:cover;object-fit:cover;width:100%}.stores-dropdown__store-details{flex-basis:20%}.stores-dropdown__title{font-family:El Messiri}.stores-dropdown__main-title,.stores-dropdown__title{font-size:16px;font-weight:400;letter-spacing:3px;margin-top:20px}.stores-dropdown__main-title{font-weight:700;margin-bottom:10px}.stores-dropdown__open-days{font-size:12px;font-weight:700;line-height:20px}.stores-dropdown__open-hours{font-size:12px;font-weight:400;line-height:20px}.stores-dropdown__queries-title{font-family:El Messiri;font-size:16px;font-weight:400;letter-spacing:3px}.stores-dropdown__contact-details{font-size:16px;font-weight:700}.stores-dropdown__view-more{cursor:pointer;font-size:14px;font-weight:400;margin-top:10px;text-transform:capitalize}@keyframes shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}.shimmer{animation:shimmer 1.2s ease-in-out infinite;background:linear-gradient(90deg,#f4f4f4 0,#dfdede 20%,#f4f4f4 40%,#f4f4f4);background-size:800px 104px}@media only screen and (max-width:1052px){.shimmer{background-size:600px 104px}}.search-results{background:#fff;border:1px solid #dfdede;border-radius:2px;box-shadow:0 2px 8px rgba(0,0,0,.08);display:flex;position:absolute;width:770px;z-index:50}@media only screen and (max-width:1052px){.search-results{border:none;box-shadow:none;flex-direction:column;left:0;right:0;top:100%;width:100%}}.search-results__section:first-child{border-right:1px solid #dfdede;flex:1;min-width:240px}.search-results__section:last-child{display:flex;flex:2;flex-direction:column}.search-results__section-header{align-items:center;display:flex;justify-content:space-between}.search-results__header{color:#000;font-family:Martel Sans;font-size:14px;font-weight:600;margin-bottom:0;padding:16px 20px;text-transform:uppercase}@media only screen and (max-width:1052px){.search-results__header{font-size:13px;padding:12px 16px}}.search-results__view-all-link{display:none}@media only screen and (max-width:879px){.search-results__view-all-link{color:#000;display:block;font-family:Martel Sans;font-size:14px;margin-right:20px}}.search-results__list{display:flex;flex-direction:column}.search-results__item{color:grey;font-family:Martel Sans;font-size:14px;padding:8px 20px;text-decoration:none}.search-results__product-list{display:flex;flex-direction:column;overflow-y:auto}.product-card{color:inherit;display:flex;padding:12px 20px;text-decoration:none;transition:background-color .15s ease}.product-card:hover{background-color:#f4f4f4}.product-card__image-container{border-radius:2px;flex-shrink:0;height:90px;margin-right:16px;overflow:hidden;width:90px}.product-card__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.product-card__details{display:flex;flex:1;flex-direction:column}.product-card__name{color:#000;font-family:Martel Sans;font-size:14px;line-height:1.4;margin-bottom:24px}.product-card__brand-name{font-weight:600}.product-card__info-row{align-items:flex-end;display:flex;justify-content:space-between}@media only screen and (max-width:879px){.product-card__info-row{align-items:flex-start;flex-direction:column}}.product-card__price-group{display:flex;flex-direction:column;gap:4px}.product-card__price{font-family:Martel Sans;font-size:14px;font-weight:600;line-height:1}.product-card__price--promotion{color:#000}.product-card__price--original{color:#939393;font-weight:400;text-decoration:line-through}.product-card__price-with-promotion{display:flex;flex-direction:column;gap:2px}.product-card__retail-price{color:#939393;font-family:Martel Sans;font-size:14px;text-decoration:line-through}.product-card__condition{color:#000;font-family:Martel Sans;font-size:13px;margin-right:20px;text-align:right}.product-card__condition-label{color:#939393;margin-right:4px}.search-results__view-all-button{background-color:#f2eeeb!important;border:none;color:#000;cursor:pointer;font-family:Martel Sans;font-size:13px;font-weight:400;padding:16px;text-align:center}@media only screen and (max-width:879px){.search-results__view-all-button{display:none}}.search-results__no-results{display:flex;flex-direction:column;width:100%}.search-results__no-results-content{align-items:flex-start;display:flex;gap:20px;padding:20px}@media only screen and (max-width:879px){.search-results__no-results-content{gap:16px;padding:16px}}@media only screen and (max-width:1052px){.search-results__no-results-content{align-items:flex-start;gap:12px;padding:16px 12px}}.search-results__no-results-image{border-radius:4px;flex-shrink:0;height:180px;overflow:hidden;width:180px}@media only screen and (max-width:879px){.search-results__no-results-image{height:120px;width:120px}}@media only screen and (max-width:1052px){.search-results__no-results-image{height:100px;width:100px}}.search-results__no-results-image img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.search-results__no-results-text{display:flex;flex:1;flex-direction:column;gap:12px;text-align:left}@media only screen and (max-width:1052px){.search-results__no-results-text{gap:8px}}.search-results__no-results-title{color:#000;font-family:Martel Sans;font-size:16px;font-weight:600;line-height:1.4;margin:0}@media only screen and (max-width:879px){.search-results__no-results-title{font-size:14px}}@media only screen and (max-width:1052px){.search-results__no-results-title{font-size:14px;line-height:1.3}}.search-results__no-results-description{color:#939393;font-family:Martel Sans;font-size:14px;line-height:1.5;margin:0}@media only screen and (max-width:879px){.search-results__no-results-description{font-size:13px}}@media only screen and (max-width:1052px){.search-results__no-results-description{font-size:12px;line-height:1.4}}.search-results__create-interest-button{background-color:#f2eeeb!important;border:none;color:#000;cursor:pointer;font-family:Martel Sans;font-size:13px;font-weight:400;padding:16px;text-align:center;width:100%}@media only screen and (max-width:879px){.search-results__create-interest-button{display:block}}@media only screen and (max-width:1052px){.search-results__create-interest-button{font-size:13px;margin-top:8px;padding:14px 16px}}.brand-skeleton{display:flex;flex-direction:column;width:100%}.brand-skeleton__item{background-color:#f4f4f4;border-radius:4px;height:32px;margin:8px 20px}.brand-skeleton__item:first-child{margin-top:0}@media only screen and (max-width:1052px){.brand-skeleton__item{height:28px;margin:6px 16px}}.product-skeleton{display:flex;gap:16px;padding:12px 20px}@media only screen and (max-width:1052px){.product-skeleton{gap:12px;padding:10px 16px}}.product-skeleton__image{background-color:#f4f4f4;border-radius:2px;flex-shrink:0;height:90px;width:90px}@media only screen and (max-width:1052px){.product-skeleton__image{height:70px;width:70px}}.product-skeleton__content{display:flex;flex:1;flex-direction:column;gap:12px}@media only screen and (max-width:1052px){.product-skeleton__content{gap:8px}}.product-skeleton__title{background-color:#f4f4f4;border-radius:4px;height:16px;width:100%}@media only screen and (max-width:1052px){.product-skeleton__title{height:14px}}.product-skeleton__subtitle{background-color:#f4f4f4;border-radius:4px;height:14px;width:80%}@media only screen and (max-width:1052px){.product-skeleton__subtitle{height:12px;width:70%}}.product-skeleton__price{background-color:#f4f4f4;border-radius:4px;height:14px;margin-top:auto;width:60%}@media only screen and (max-width:1052px){.product-skeleton__price{height:12px;width:50%}}.dropdown{display:flex;justify-content:space-between;margin-left:auto;margin-right:auto;max-width:1280px;min-height:500px;overflow-x:auto;padding:20px 0}.dropdown__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center;min-height:300px}.dropdown__column{flex:1;padding-left:12px}.dropdown__column:nth-child(2){flex:2}.dropdown__title{font-family:El Messiri;font-size:16px;font-weight:700;letter-spacing:3px;line-height:1;margin-bottom:20px;text-transform:uppercase}.dropdown__elements{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));max-height:800px;overflow-y:auto}.dropdown__brand-elements{-moz-column-count:3;column-count:3;max-height:800px}.dropdown__brand-element{cursor:pointer;margin-bottom:10px}.dropdown__element{flex-basis:33.33%;font-family:Martel Sans;font-size:14px;font-weight:400;margin-bottom:10px;text-transform:capitalize}.cover-spinner{align-items:center;background-color:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;min-height:400px;position:relative;top:50%;width:100%;z-index:9999}.cover-spinner:after{animation:spin 1.5s linear infinite;border:4px dotted #000;border-radius:50%;border-top-color:transparent;content:"";display:block;height:40px;position:absolute;width:40px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
|
1
|
+
.interests__add-button{display:flex;flex-direction:row;gap:10px;width:100%}@media only screen and (max-width:879px){.interests__add-button{flex-direction:column}}.interests__section-wrapper{display:flex;flex-direction:column;width:100%}.interests__select-option{display:flex;flex-direction:column;margin-bottom:15px}.interests__title{font-family:El Messiri;font-size:16px;margin-bottom:10px}.navbar{box-shadow:2px 2px 10px #dfdede;display:flex;padding-bottom:10px;padding-top:20px;position:relative}@media only screen and (max-width:879px){.navbar{padding-top:12px}}.navbar__link-item--desktop{align-items:center;display:flex;height:35px;margin:auto 0;padding-top:5px}.navbar__mobile-wrapper{align-items:center;display:flex;flex-direction:column;padding-left:16px;padding-right:16px}.navbar__container{display:flex;margin:0 auto;max-width:1280px;padding-left:12px;padding-right:12px;width:100%}.navbar__body{flex-basis:60%}.navbar__wrapper{align-items:center;display:flex;gap:10px;justify-content:flex-start;width:100%}@media only screen and (max-width:879px){.navbar__wrapper .navbar__menu-icon-wrapper{margin-right:10px}.navbar__wrapper .navbar__logo{margin-left:0;margin-right:auto}.navbar__wrapper .navbar__icons-wrapper{align-items:center;display:flex;gap:20px;margin-left:auto}.navbar__wrapper .navbar__icons{align-items:center;display:flex;gap:20px;margin:0}.navbar__wrapper .navbar__icon{margin:0}}.navbar__product-search-wrapper{align-items:center;display:flex;justify-content:center;padding:0 20%;width:100%}@media only screen and (max-width:879px){.navbar__product-search-wrapper{padding:0}}.navbar__search-container{width:100%}.navbar__input-close-icon{height:auto;margin-bottom:10px;margin-left:10px;width:20px}@media only screen and (max-width:879px){.navbar__input-close-icon{margin-bottom:0;margin-left:0;width:15px}}.navbar__menu-icon{width:20px}.navbar__product-search{align-items:center;display:flex;max-width:545px;width:100%}.navbar__logo-wrapper{margin-right:18px;width:200px}.navbar__logo{width:200px}@media only screen and (max-width:879px){.navbar__logo{margin-left:10px;margin-top:5px;width:150px}}.navbar__form-input{align-items:center;background:transparent;border:none;display:flex;font-size:13px;outline:none;padding:8px;width:100%}.navbar__product-search{border:1px solid #dfdede;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__product-search{border:none;border-bottom:1px solid #dfdede;margin-bottom:0;margin-right:10px;margin-top:10px}}.navbar__section{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;width:100%}.navbar__link{display:inline-block;font-family:Martel Sans;font-size:14px;font-weight:700;margin-right:10px;overflow:hidden;text-transform:uppercase;transition:.3s ease-in-out}.navbar__link:after{background-color:#000;content:"";display:block;height:2px;transition:width .25s ease-out;width:0}.navbar__link:hover:after{width:100%}.navbar__link:hover .navbar__dropdown{animation:fadeInDropdown .3s ease-in-out;display:block}.navbar__dropdown{background-color:#fff;box-shadow:5px 5px 5px #dfdede;display:none;left:0;position:absolute;width:100%;z-index:999}@keyframes fadeInDropdown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.navbar__company-link{font-size:13px;font-weight:400;list-style:none;margin-left:18px;text-decoration:none}.navbar__company-block{align-items:center;background-color:#000;color:#fff;display:flex;font-weight:700;height:33px;justify-content:center;margin-right:0;padding:0 18px;text-transform:uppercase}.navbar__input-search-icon{height:auto;margin-left:1.125rem;margin-right:.375rem;width:15px}.navbar__nav-links{align-items:center;display:flex}.navbar__nav-links--wrap{flex-wrap:wrap}.navbar__icons{align-items:center;display:flex;height:40px;justify-content:flex-end;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__icons{display:block;height:20px;margin-bottom:0}}.navbar__icon{cursor:pointer;height:auto;margin-right:18px;width:20px}.navbar__icon.navbar__cart-icon{margin-right:0}.navbar__icon--app{cursor:pointer;height:auto;margin-left:12px;width:20px}@media only screen and (max-width:879px){.navbar__icon--app{margin-right:0}}.navbar__loyalty-icon{height:18px;position:absolute;right:-14px;top:-6px;width:18px}.navbar__cart-icon{position:relative}.navbar__cart-count{bottom:50%;font-size:13px;height:20px;left:60%;position:absolute;width:20px}.navbar__account-initials,.navbar__cart-count{align-items:center;background-color:#f2eeeb;border-radius:50%;color:#000;display:flex;justify-content:center}.navbar__account-initials{font-size:11px;font-weight:500;height:24px;text-transform:uppercase;width:24px}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.side-nav__overlay{background-color:rgba(78,73,73,.51);height:100%;opacity:0;position:fixed;top:0;transition:opacity .5s ease-out 0s,visibility .5s ease-out 0s;width:100%;z-index:99999}.side-nav__overlay--visible{opacity:1;visibility:visible}.side-nav__overlay--hidden{opacity:1;visibility:hidden}.side-nav__content{background-color:#fff;bottom:0;overflow-y:scroll;padding:1.5rem;position:fixed;top:0;transition:left .5s ease-in-out;width:80%;z-index:99999}.side-nav__content--hidden{display:none}.side-nav__content--open{left:0}.side-nav__content--closed{left:-100%}.side-nav__menu-title-wrapper{align-items:center;background-color:transparent;border:none;display:flex;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{align-items:center;display:flex;font-size:14px;font-weight:700;justify-content:center;line-height:20px;text-transform:uppercase}.side-nav__menu-icon{display:flex;height:25px;margin-right:10px;width:25px}.side-nav__menu-divider{margin-bottom:40px}.side-nav__accordion-icon{height:auto;width:15px}.side-nav__menu-item{margin-bottom:25px}.side-nav__close-icon{height:20px;margin-left:auto;width:20px}.side-nav__back-button-wrapper{align-items:center;display:flex;margin-bottom:25px}.side-nav__back-icon{height:20px;width:20px}.side-nav__back-button,.side-nav__sub-menu-title{font-weight:700;text-transform:uppercase}.side-nav__sub-menu-title{font-size:14px;margin-bottom:10px}.side-nav__elements{display:flex;flex-direction:column}.side-nav__element{color:#555;cursor:pointer;line-height:20px;margin-bottom:10px}.side-nav__element,.side-nav__sub-link{font-size:14px;font-weight:400;text-transform:capitalize}.side-nav__block-button{background-color:#000;color:#fff;font-weight:700;padding:10px 0;width:100%}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.side-nav__overlay{background-color:rgba(78,73,73,.51);height:100%;opacity:0;position:fixed;top:0;transition:opacity .5s ease-out 0s,visibility .5s ease-out 0s;width:100%;z-index:99999}.side-nav__overlay--visible{opacity:1;visibility:visible}.side-nav__overlay--hidden{opacity:1;visibility:hidden}.side-nav__content{background-color:#fff;bottom:0;overflow-y:scroll;padding:1.5rem;position:fixed;top:0;transition:left .5s ease-in-out;width:80%;z-index:99999}.side-nav__content--hidden{display:none}.side-nav__content--open{left:0}.side-nav__content--closed{left:-100%}.side-nav__menu-title-wrapper{align-items:center;background-color:transparent;border:none;display:flex;justify-content:space-between;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{font-size:14px;font-weight:700;line-height:20px;text-transform:uppercase}.side-nav__accordion-icon{height:auto;width:15px}.side-nav__menu-item{margin-bottom:25px}.side-nav__close-icon{height:20px;margin-left:auto;width:20px}.side-nav__back-button-wrapper{align-items:center;display:flex;margin-bottom:25px}.side-nav__back-icon{height:20px;width:20px}.side-nav__back-button,.side-nav__sub-menu-title{font-weight:700;text-transform:uppercase}.side-nav__sub-menu-title{font-size:14px;margin-bottom:10px}.side-nav__elements{display:flex;flex-direction:column}.side-nav__element{color:#555;cursor:pointer;line-height:20px;margin-bottom:10px}.side-nav__element,.side-nav__sub-link{font-size:14px;font-weight:400;text-transform:capitalize}.side-nav__block-button{background-color:#000;color:#fff;font-weight:700;padding:10px 0;width:100%}@charset "UTF-8";.currency-select-container{align-items:center;display:flex;margin-right:18px;position:relative}.currency-select-container .currency-flag{margin-right:5px}.currency-select-container .currency-flag img{height:15px;-o-object-fit:cover;object-fit:cover;width:20px}.currency-select-container .currency-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:transparent;border:none;color:#000;cursor:pointer;font-family:inherit;font-size:14px;margin:0;outline:none;padding:5px 15px 5px 5px}.currency-select-container .currency-select::-ms-expand{display:none}.currency-select-container .currency-select:focus{box-shadow:none;outline:none}.currency-select-container .currency-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.currency-select-container:after{color:#000;content:"▼";font-size:10px;pointer-events:none;position:absolute;right:0;top:50%;transform:translateY(-50%)}@media only screen and (max-width:879px){.currency-select-container .currency-select{appearance:menulist;-webkit-appearance:menulist;-moz-appearance:menulist;padding-right:0}.currency-select-container:after{display:none}}.currency-select-container.disabled{cursor:not-allowed;opacity:.7}.currency-select-container.disabled .currency-select{pointer-events:none}.footer__newsletter-section{align-items:center;background-color:#000;color:#fff;display:flex;justify-content:space-between;padding:2.265rem 0}@media only screen and (max-width:879px){.footer__newsletter-section{flex-direction:column}}.footer__newsletter-wrapper{align-items:center;display:flex;justify-content:space-between;margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__newsletter-wrapper{flex-direction:column}.footer__link-container{flex-basis:50%}}.footer__newsletter-icon{height:30px;position:absolute;right:0;top:0;width:32px}.footer__newsletter-form{flex-basis:50%;max-width:250px;position:relative}@media only screen and (max-width:879px){.footer__newsletter-form{display:block;margin-top:20px;max-width:100%;width:100%}}.footer__newsletter-title{font-family:Martel Sans,sans-serif;font-size:14px;font-weight:700;letter-spacing:3px;margin-bottom:1.125rem;text-transform:uppercase}.footer__newsletter-text{font-size:14px}.footer__form-input{background-color:#000;border:none;border-bottom:1px solid #fff;color:#fff;height:30px;outline:none;width:100%}.footer__form-input::-moz-placeholder{color:#fff;font-weight:400}.footer__form-input::placeholder{color:#fff;font-weight:400}.footer__form-errors{color:#fff;margin-top:5px}.footer__main-section{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:50px;margin-top:80px}.footer__link-title{font-family:El Messiri;font-size:16px;font-weight:700;margin-bottom:20px;text-transform:uppercase}@media only screen and (max-width:879px){.footer__link-title{margin-bottom:10px}}.footer__link-child{margin-top:25px}.footer__links{display:flex;flex-direction:column}.footer__link{color:#939393;cursor:pointer;font-family:Martel Sans;font-size:14px;line-height:20px;margin-bottom:7px;text-align:left;text-decoration:none}.footer__link:hover{color:#000;text-decoration:underline}@media only screen and (max-width:879px){.footer__link{margin-bottom:10px}}.footer__link-wrapper{align-items:center;display:flex;gap:5px}.footer__link-icon{height:30px;margin-bottom:18px}.footer__text{color:#939393;font-family:Martel Sans;font-size:14px;line-height:20px;margin-bottom:15px;text-align:left;text-decoration:none}.footer__store-hours{margin-top:35px}.footer__copyrights-section{border-top:1px solid;display:flex;justify-content:space-between;padding-bottom:20px;padding-top:20px}.footer__logo{height:30px;width:135px}.footer__payment-icons{align-items:center;display:flex;gap:8px}.footer__wrapper{margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__wrapper{padding:32px 0 0 24px}}.footer__wrapper--desktop{display:block}@media only screen and (max-width:879px){.footer__wrapper--desktop{display:none}}.footer__wrapper--mobile{display:none}@media only screen and (max-width:879px){.footer__wrapper--mobile{display:block;padding-top:30px}}.footer__copyright{font-size:10px;line-height:22px}.footer__copyright--mobile{display:none}@media only screen and (max-width:879px){.footer__copyright--mobile{display:block;padding:30px 10px 30px 0;text-align:center}}.footer__section-row{display:flex;gap:50%}@media only screen and (max-width:879px){.footer__section-row{gap:unset}}.stores-dropdown{align-items:flex-start;display:flex;font-family:Martel Sans;gap:20px;margin-left:auto;margin-right:auto;max-width:1280px;overflow-x:auto;padding:20px 15px}.stores-dropdown__image{height:200px;-o-object-fit:cover;object-fit:cover;width:100%}.stores-dropdown__store-details{flex-basis:20%}.stores-dropdown__title{font-family:El Messiri}.stores-dropdown__main-title,.stores-dropdown__title{font-size:16px;font-weight:400;letter-spacing:3px;margin-top:20px}.stores-dropdown__main-title{font-weight:700;margin-bottom:10px}.stores-dropdown__open-days{font-size:12px;font-weight:700;line-height:20px}.stores-dropdown__open-hours{font-size:12px;font-weight:400;line-height:20px}.stores-dropdown__queries-title{font-family:El Messiri;font-size:16px;font-weight:400;letter-spacing:3px}.stores-dropdown__contact-details{font-size:16px;font-weight:700}.stores-dropdown__view-more{cursor:pointer;font-size:14px;font-weight:400;margin-top:10px;text-transform:capitalize}@keyframes shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}.shimmer{animation:shimmer 1.2s ease-in-out infinite;background:linear-gradient(90deg,#f4f4f4 0,#dfdede 20%,#f4f4f4 40%,#f4f4f4);background-size:800px 104px}@media only screen and (max-width:1052px){.shimmer{background-size:600px 104px}}.search-results{background:#fff;border:1px solid #dfdede;border-radius:2px;box-shadow:0 2px 8px rgba(0,0,0,.08);display:flex;position:absolute;width:770px;z-index:50}@media only screen and (max-width:1052px){.search-results{border:none;box-shadow:none;flex-direction:column;left:0;right:0;top:100%;width:100%}}.search-results__section:first-child{border-right:1px solid #dfdede;flex:1;min-width:240px}.search-results__section:last-child{display:flex;flex:2;flex-direction:column}.search-results__section-header{align-items:center;display:flex;justify-content:space-between}.search-results__header{color:#000;font-family:Martel Sans;font-size:14px;font-weight:600;margin-bottom:0;padding:16px 20px;text-transform:uppercase}@media only screen and (max-width:1052px){.search-results__header{font-size:13px;padding:12px 16px}}.search-results__view-all-link{display:none}@media only screen and (max-width:879px){.search-results__view-all-link{color:#000;display:block;font-family:Martel Sans;font-size:14px;margin-right:20px}}.search-results__list{display:flex;flex-direction:column}.search-results__item{color:grey;font-family:Martel Sans;font-size:14px;padding:8px 20px;text-decoration:none}.search-results__product-list{display:flex;flex-direction:column;overflow-y:auto}.product-card{color:inherit;display:flex;padding:12px 20px;text-decoration:none;transition:background-color .15s ease}.product-card:hover{background-color:#f4f4f4}.product-card__image-container{border-radius:2px;flex-shrink:0;height:90px;margin-right:16px;overflow:hidden;width:90px}.product-card__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.product-card__details{display:flex;flex:1;flex-direction:column}.product-card__name{color:#000;font-family:Martel Sans;font-size:14px;line-height:1.4;margin-bottom:24px}.product-card__brand-name{font-weight:600}.product-card__info-row{align-items:flex-end;display:flex;justify-content:space-between}@media only screen and (max-width:879px){.product-card__info-row{align-items:flex-start;flex-direction:column}}.product-card__price-group{display:flex;flex-direction:column;gap:4px}.product-card__price{font-family:Martel Sans;font-size:14px;font-weight:600;line-height:1}.product-card__price--promotion{color:#000}.product-card__price--original{color:#939393;font-weight:400;text-decoration:line-through}.product-card__price-with-promotion{display:flex;flex-direction:column;gap:2px}.product-card__retail-price{color:#939393;font-family:Martel Sans;font-size:14px;text-decoration:line-through}.product-card__condition{color:#000;font-family:Martel Sans;font-size:13px;margin-right:20px;text-align:right}.product-card__condition-label{color:#939393;margin-right:4px}.search-results__view-all-button{background-color:#f2eeeb!important;border:none;color:#000;cursor:pointer;font-family:Martel Sans;font-size:13px;font-weight:400;padding:16px;text-align:center}@media only screen and (max-width:879px){.search-results__view-all-button{display:none}}.search-results__no-results{display:flex;flex-direction:column;width:100%}.search-results__no-results-content{align-items:flex-start;display:flex;gap:20px;padding:20px}@media only screen and (max-width:879px){.search-results__no-results-content{gap:16px;padding:16px}}@media only screen and (max-width:1052px){.search-results__no-results-content{align-items:flex-start;gap:12px;padding:16px 12px}}.search-results__no-results-image{border-radius:4px;flex-shrink:0;height:180px;overflow:hidden;width:180px}@media only screen and (max-width:879px){.search-results__no-results-image{height:120px;width:120px}}@media only screen and (max-width:1052px){.search-results__no-results-image{height:100px;width:100px}}.search-results__no-results-image img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.search-results__no-results-text{display:flex;flex:1;flex-direction:column;gap:12px;text-align:left}@media only screen and (max-width:1052px){.search-results__no-results-text{gap:8px}}.search-results__no-results-title{color:#000;font-family:Martel Sans;font-size:16px;font-weight:600;line-height:1.4;margin:0}@media only screen and (max-width:879px){.search-results__no-results-title{font-size:14px}}@media only screen and (max-width:1052px){.search-results__no-results-title{font-size:14px;line-height:1.3}}.search-results__no-results-description{color:#939393;font-family:Martel Sans;font-size:14px;line-height:1.5;margin:0}@media only screen and (max-width:879px){.search-results__no-results-description{font-size:13px}}@media only screen and (max-width:1052px){.search-results__no-results-description{font-size:12px;line-height:1.4}}.search-results__create-interest-button{background-color:#f2eeeb!important;border:none;color:#000;cursor:pointer;font-family:Martel Sans;font-size:13px;font-weight:400;padding:16px;text-align:center;width:100%}@media only screen and (max-width:879px){.search-results__create-interest-button{display:block}}@media only screen and (max-width:1052px){.search-results__create-interest-button{font-size:13px;margin-top:8px;padding:14px 16px}}.brand-skeleton{display:flex;flex-direction:column;width:100%}.brand-skeleton__item{background-color:#f4f4f4;border-radius:4px;height:32px;margin:8px 20px}.brand-skeleton__item:first-child{margin-top:0}@media only screen and (max-width:1052px){.brand-skeleton__item{height:28px;margin:6px 16px}}.product-skeleton{display:flex;gap:16px;padding:12px 20px}@media only screen and (max-width:1052px){.product-skeleton{gap:12px;padding:10px 16px}}.product-skeleton__image{background-color:#f4f4f4;border-radius:2px;flex-shrink:0;height:90px;width:90px}@media only screen and (max-width:1052px){.product-skeleton__image{height:70px;width:70px}}.product-skeleton__content{display:flex;flex:1;flex-direction:column;gap:12px}@media only screen and (max-width:1052px){.product-skeleton__content{gap:8px}}.product-skeleton__title{background-color:#f4f4f4;border-radius:4px;height:16px;width:100%}@media only screen and (max-width:1052px){.product-skeleton__title{height:14px}}.product-skeleton__subtitle{background-color:#f4f4f4;border-radius:4px;height:14px;width:80%}@media only screen and (max-width:1052px){.product-skeleton__subtitle{height:12px;width:70%}}.product-skeleton__price{background-color:#f4f4f4;border-radius:4px;height:14px;margin-top:auto;width:60%}@media only screen and (max-width:1052px){.product-skeleton__price{height:12px;width:50%}}.dropdown{display:flex;justify-content:space-between;margin-left:auto;margin-right:auto;max-width:1280px;min-height:500px;overflow-x:auto;padding:20px 0}.dropdown__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center;min-height:300px}.dropdown__column{flex:1;padding-left:12px}.dropdown__column:nth-child(2){flex:2}.dropdown__title{font-family:El Messiri;font-size:16px;font-weight:700;letter-spacing:3px;line-height:1;margin-bottom:20px;text-transform:uppercase}.dropdown__elements{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));max-height:800px;overflow-y:auto}.dropdown__brand-elements{-moz-column-count:3;column-count:3;max-height:800px}.dropdown__brand-element{cursor:pointer;margin-bottom:10px}.dropdown__element{flex-basis:33.33%;font-family:Martel Sans;font-size:14px;font-weight:400;margin-bottom:10px;text-transform:capitalize}.cover-spinner{align-items:center;background-color:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;min-height:400px;position:relative;top:50%;width:100%;z-index:9999}.cover-spinner:after{animation:spin 1.5s linear infinite;border:4px dotted #000;border-radius:50%;border-top-color:transparent;content:"";display:block;height:40px;position:absolute;width:40px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
package/build/bundle.js
CHANGED
|
@@ -15136,7 +15136,6 @@
|
|
|
15136
15136
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
15137
15137
|
return _formControl.current;
|
|
15138
15138
|
}
|
|
15139
|
-
//# sourceMappingURL=index.esm.mjs.map
|
|
15140
15139
|
|
|
15141
15140
|
var _excluded$9 = ["ref"];
|
|
15142
15141
|
|
|
@@ -15563,7 +15562,7 @@
|
|
|
15563
15562
|
className: "footer__title-wrapper"
|
|
15564
15563
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15565
15564
|
className: "footer__newsletter-title"
|
|
15566
|
-
}, "Sign up
|
|
15565
|
+
}, "Sign up for our newsletter"), /*#__PURE__*/React__default.createElement("p", {
|
|
15567
15566
|
className: "footer__newsletter-text"
|
|
15568
15567
|
}, "By signing up you agree to our terms & conditions and privacy policy. You can unsubscribe anytime.")), /*#__PURE__*/React__default.createElement("div", {
|
|
15569
15568
|
className: "footer__newsletter-form"
|
|
@@ -15824,7 +15823,9 @@
|
|
|
15824
15823
|
noResultsImage = _ref.noResultsImage,
|
|
15825
15824
|
showNoResults = _ref.showNoResults,
|
|
15826
15825
|
_ref$isLoading = _ref.isLoading,
|
|
15827
|
-
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading
|
|
15826
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
15827
|
+
_ref$showCreateIntere = _ref.showCreateInterest,
|
|
15828
|
+
showCreateInterest = _ref$showCreateIntere === void 0 ? true : _ref$showCreateIntere;
|
|
15828
15829
|
|
|
15829
15830
|
var _useState = React.useState(false),
|
|
15830
15831
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -16051,9 +16052,9 @@
|
|
|
16051
16052
|
className: "search-results__no-results-text"
|
|
16052
16053
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
16053
16054
|
className: "search-results__no-results-title"
|
|
16054
|
-
}, "There are currently no products in stock that match your selection"), /*#__PURE__*/React__default.createElement("p", {
|
|
16055
|
+
}, "There are currently no products in stock that match your selection"), showCreateInterest && /*#__PURE__*/React__default.createElement("p", {
|
|
16055
16056
|
className: "search-results__no-results-description"
|
|
16056
|
-
}, "Create an interest now and receive instant notifications as your interests list."))), /*#__PURE__*/React__default.createElement("button", {
|
|
16057
|
+
}, "Create an interest now and receive instant notifications as your interests list."))), showCreateInterest && /*#__PURE__*/React__default.createElement("button", {
|
|
16057
16058
|
type: "button",
|
|
16058
16059
|
className: "search-results__create-interest-button",
|
|
16059
16060
|
onClick: onCreateInterests
|
|
@@ -16324,6 +16325,8 @@
|
|
|
16324
16325
|
};
|
|
16325
16326
|
|
|
16326
16327
|
var useSearchClickOutside = function useSearchClickOutside(ref, searchResults, setCachedResults, setIsSearchFocused, setSearchResults) {
|
|
16328
|
+
var setSearchValue = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
16329
|
+
var setShowNoResults = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
|
|
16327
16330
|
React.useEffect(function () {
|
|
16328
16331
|
var handleClickOutside = function handleClickOutside(event) {
|
|
16329
16332
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
@@ -16332,7 +16335,15 @@
|
|
|
16332
16335
|
setSearchResults({
|
|
16333
16336
|
brands: [],
|
|
16334
16337
|
products: []
|
|
16335
|
-
});
|
|
16338
|
+
}); // Reset search value and no results state when closing
|
|
16339
|
+
|
|
16340
|
+
if (setSearchValue) {
|
|
16341
|
+
setSearchValue('');
|
|
16342
|
+
}
|
|
16343
|
+
|
|
16344
|
+
if (setShowNoResults) {
|
|
16345
|
+
setShowNoResults(false);
|
|
16346
|
+
}
|
|
16336
16347
|
}
|
|
16337
16348
|
};
|
|
16338
16349
|
|
|
@@ -16340,11 +16351,19 @@
|
|
|
16340
16351
|
return function () {
|
|
16341
16352
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
16342
16353
|
};
|
|
16343
|
-
}, [ref, searchResults, setCachedResults, setIsSearchFocused, setSearchResults]);
|
|
16354
|
+
}, [ref, searchResults, setCachedResults, setIsSearchFocused, setSearchResults, setSearchValue, setShowNoResults]);
|
|
16344
16355
|
};
|
|
16345
16356
|
var useSearchInputChange = function useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults) {
|
|
16357
|
+
var app = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
16358
|
+
var productsUrl = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
|
|
16346
16359
|
return React.useCallback(function (event) {
|
|
16347
16360
|
var value = event.target.value;
|
|
16361
|
+
|
|
16362
|
+
if (app && productsUrl && value.trim().length > 0) {
|
|
16363
|
+
window.location.href = productsUrl;
|
|
16364
|
+
return;
|
|
16365
|
+
}
|
|
16366
|
+
|
|
16348
16367
|
setSearchValue(value);
|
|
16349
16368
|
setIsSearchFocused(true);
|
|
16350
16369
|
|
|
@@ -16360,19 +16379,24 @@
|
|
|
16360
16379
|
products: []
|
|
16361
16380
|
});
|
|
16362
16381
|
}
|
|
16363
|
-
}, [setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults]);
|
|
16382
|
+
}, [setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults, app, productsUrl]);
|
|
16364
16383
|
};
|
|
16365
16384
|
var useSearchInputFocus = function useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults) {
|
|
16366
16385
|
var handleSearchClick = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
|
|
16386
|
+
var setShowNoResults = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
16367
16387
|
return React.useCallback(function () {
|
|
16368
|
-
setIsSearchFocused(true);
|
|
16388
|
+
setIsSearchFocused(true); // Reset no results state when reopening search
|
|
16389
|
+
|
|
16390
|
+
if (setShowNoResults) {
|
|
16391
|
+
setShowNoResults(false);
|
|
16392
|
+
}
|
|
16369
16393
|
|
|
16370
16394
|
if (typeof handleSearchClick === 'function') {
|
|
16371
16395
|
handleSearchClick();
|
|
16372
16396
|
} else if (searchValue.trim().length >= 3) {
|
|
16373
16397
|
setSearchResults(cachedResults);
|
|
16374
16398
|
}
|
|
16375
|
-
}, [searchValue, setIsSearchFocused, cachedResults, setSearchResults, handleSearchClick]);
|
|
16399
|
+
}, [searchValue, setIsSearchFocused, cachedResults, setSearchResults, handleSearchClick, setShowNoResults]);
|
|
16376
16400
|
};
|
|
16377
16401
|
var useSearchInputKeyDown = function useSearchInputKeyDown(searchValue, immediateSearch, setIsSearchFocused) {
|
|
16378
16402
|
var setSearchValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
@@ -16442,7 +16466,9 @@
|
|
|
16442
16466
|
app = _ref.app,
|
|
16443
16467
|
categoryConfig = _ref.categoryConfig,
|
|
16444
16468
|
onCreateInterests = _ref.onCreateInterests,
|
|
16445
|
-
noResultsImage = _ref.noResultsImage
|
|
16469
|
+
noResultsImage = _ref.noResultsImage,
|
|
16470
|
+
_ref$showCreateIntere = _ref.showCreateInterest,
|
|
16471
|
+
showCreateInterest = _ref$showCreateIntere === void 0 ? true : _ref$showCreateIntere;
|
|
16446
16472
|
|
|
16447
16473
|
var _useState = React.useState(''),
|
|
16448
16474
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -16527,8 +16553,8 @@
|
|
|
16527
16553
|
setCachedResults(results);
|
|
16528
16554
|
});
|
|
16529
16555
|
var immediateSearch = createImmediateSearch(setSearchValue, setSearchResults, onSearchSubmit);
|
|
16530
|
-
var handleChange = useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults);
|
|
16531
|
-
useSearchClickOutside(searchResultsRef, searchResults, setCachedResults, setIsSearchFocused, setSearchResults);
|
|
16556
|
+
var handleChange = useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults, app, productsUrl);
|
|
16557
|
+
useSearchClickOutside(searchResultsRef, searchResults, setCachedResults, setIsSearchFocused, setSearchResults, setSearchValue, setShowNoResults);
|
|
16532
16558
|
|
|
16533
16559
|
var handleSearchClick = function handleSearchClick() {
|
|
16534
16560
|
if (typeof onSearchBarClick === 'function') {
|
|
@@ -16539,7 +16565,7 @@
|
|
|
16539
16565
|
handleSearchFocus();
|
|
16540
16566
|
};
|
|
16541
16567
|
|
|
16542
|
-
var handleSearchFocus = useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults);
|
|
16568
|
+
var handleSearchFocus = useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults, undefined, setShowNoResults);
|
|
16543
16569
|
var handleKeyDown = useSearchInputKeyDown(searchValue, immediateSearch, setIsSearchFocused);
|
|
16544
16570
|
|
|
16545
16571
|
function addCategoryToElements(elements, categoryName) {
|
|
@@ -16669,7 +16695,8 @@
|
|
|
16669
16695
|
onCreateInterests: onCreateInterests,
|
|
16670
16696
|
noResultsImage: noResultsImage,
|
|
16671
16697
|
showNoResults: showNoResults,
|
|
16672
|
-
isLoading: searchLoading
|
|
16698
|
+
isLoading: searchLoading,
|
|
16699
|
+
showCreateInterest: showCreateInterest
|
|
16673
16700
|
}), /*#__PURE__*/React__default.createElement("nav", {
|
|
16674
16701
|
className: "navbar__nav-links navbar__nav-links--wrap"
|
|
16675
16702
|
}, renderDropdownLinks(), !!stores.length && /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -17389,7 +17416,9 @@
|
|
|
17389
17416
|
categoryConfig = _ref.categoryConfig,
|
|
17390
17417
|
name = _ref.name,
|
|
17391
17418
|
onCreateInterests = _ref.onCreateInterests,
|
|
17392
|
-
noResultsImage = _ref.noResultsImage
|
|
17419
|
+
noResultsImage = _ref.noResultsImage,
|
|
17420
|
+
_ref$showCreateIntere = _ref.showCreateInterest,
|
|
17421
|
+
showCreateInterest = _ref$showCreateIntere === void 0 ? true : _ref$showCreateIntere;
|
|
17393
17422
|
|
|
17394
17423
|
var _useState = React.useState(false),
|
|
17395
17424
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17469,7 +17498,7 @@
|
|
|
17469
17498
|
setCachedResults(results);
|
|
17470
17499
|
});
|
|
17471
17500
|
var immediateSearch = createImmediateSearch(setSearchValue, setSearchResults, onSearchSubmit);
|
|
17472
|
-
var handleChange = useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults);
|
|
17501
|
+
var handleChange = useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults, app, productsUrl);
|
|
17473
17502
|
var handleKeyDown = useSearchInputKeyDown(searchValue, immediateSearch, setIsSearchFocused, setSearchValue);
|
|
17474
17503
|
React.useMemo(function () {
|
|
17475
17504
|
if (!initialSearchData) {
|
|
@@ -17478,8 +17507,8 @@
|
|
|
17478
17507
|
|
|
17479
17508
|
fetchInitialSearchData(initialSearchData, setInitialSearchView);
|
|
17480
17509
|
}, [initialSearchData, fetchInitialSearchData]);
|
|
17481
|
-
useSearchClickOutside(searchResultsRef, searchResults, setCachedResults, setIsSearchFocused, setSearchResults);
|
|
17482
|
-
var handleSearchFocus = useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults);
|
|
17510
|
+
useSearchClickOutside(searchResultsRef, searchResults, setCachedResults, setIsSearchFocused, setSearchResults, setSearchValue, setShowNoResults);
|
|
17511
|
+
var handleSearchFocus = useSearchInputFocus(searchValue, setIsSearchFocused, cachedResults, setSearchResults, undefined, setShowNoResults);
|
|
17483
17512
|
React.useEffect(function () {
|
|
17484
17513
|
if (showSearchBar && searchInputRef.current) {
|
|
17485
17514
|
searchInputRef.current.focus();
|
|
@@ -17702,7 +17731,8 @@
|
|
|
17702
17731
|
onCreateInterests: onCreateInterests,
|
|
17703
17732
|
noResultsImage: noResultsImage,
|
|
17704
17733
|
showNoResults: showNoResults,
|
|
17705
|
-
isLoading: searchLoading
|
|
17734
|
+
isLoading: searchLoading,
|
|
17735
|
+
showCreateInterest: showCreateInterest
|
|
17706
17736
|
}))), shop && /*#__PURE__*/React__default.createElement(LuxitySideNav, {
|
|
17707
17737
|
accordionIcon: accordionIcon,
|
|
17708
17738
|
logoSrc: logoSrc,
|