@sledge-app/react-instant-search 2.0.39 → 2.0.40
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.
|
@@ -6988,7 +6988,7 @@ const PaginationOrLoadMore = (props) => {
|
|
|
6988
6988
|
};
|
|
6989
6989
|
const FacetBlockSelected = React__default.memo(
|
|
6990
6990
|
(props) => {
|
|
6991
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
6991
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6992
6992
|
const {
|
|
6993
6993
|
label,
|
|
6994
6994
|
name,
|
|
@@ -7019,15 +7019,15 @@ const FacetBlockSelected = React__default.memo(
|
|
|
7019
7019
|
...filter_option_text_transform && { textTransform: filter_option_text_transform }
|
|
7020
7020
|
};
|
|
7021
7021
|
let value = valueProp;
|
|
7022
|
-
if (name
|
|
7023
|
-
if ((
|
|
7022
|
+
if ((_b = name == null ? void 0 : name.includes) == null ? void 0 : _b.call(name, HIERARCHICAL_FACET_OBJECT_ALIASES.collections)) {
|
|
7023
|
+
if ((_c = String(value)) == null ? void 0 : _c.includes(hierarchical_collections_separator)) {
|
|
7024
7024
|
let arrValue = String(value).split(hierarchical_collections_separator);
|
|
7025
7025
|
value = (arrValue == null ? void 0 : arrValue.length) ? arrValue.map((item) => {
|
|
7026
7026
|
var _a2;
|
|
7027
7027
|
return ((_a2 = parseFacetObject({ facet: item })) == null ? void 0 : _a2.collection_title) || item;
|
|
7028
7028
|
}).join(hierarchical_collections_separator) : valueProp;
|
|
7029
7029
|
} else {
|
|
7030
|
-
value = ((
|
|
7030
|
+
value = ((_d = parseFacetObject({ facet: valueProp })) == null ? void 0 : _d.collection_title) || valueProp;
|
|
7031
7031
|
}
|
|
7032
7032
|
}
|
|
7033
7033
|
let valueText = (languageSettings == null ? void 0 : languageSettings[value]) || value;
|
|
@@ -7052,17 +7052,17 @@ const FacetBlockSelected = React__default.memo(
|
|
|
7052
7052
|
}
|
|
7053
7053
|
});
|
|
7054
7054
|
}
|
|
7055
|
-
(
|
|
7055
|
+
(_e = getSettings == null ? void 0 : getSettings.delete_prefix) == null ? void 0 : _e.map((deletePrefix) => {
|
|
7056
7056
|
if (String(valueText).startsWith(deletePrefix))
|
|
7057
7057
|
valueText = String(valueText).replace(deletePrefix, "");
|
|
7058
7058
|
});
|
|
7059
7059
|
if (isRange) {
|
|
7060
7060
|
const getValueRange = new Set(value).size === 1 ? [value[0]] : value;
|
|
7061
|
-
valueText = (
|
|
7061
|
+
valueText = (_f = getValueRange == null ? void 0 : getValueRange.map((valueItem) => isPriceValue ? shopifyFormatMoney(valueItem * 100, money_format) : isSalePercent ? `${valueItem}%` : valueItem)) == null ? void 0 : _f.join(" - ");
|
|
7062
7062
|
} else {
|
|
7063
|
-
valueText = (
|
|
7063
|
+
valueText = (_g = String(valueText)) == null ? void 0 : _g.replaceAll(hierarchical_collections_separator, " > ");
|
|
7064
7064
|
}
|
|
7065
|
-
valueText = (
|
|
7065
|
+
valueText = (_h = String(valueText)) == null ? void 0 : _h.replaceAll("_", " ");
|
|
7066
7066
|
let aliases = {};
|
|
7067
7067
|
let aliasValue = "";
|
|
7068
7068
|
let aliasSeparator = "";
|