@sledge-app/react-instant-search 2.0.60 → 2.0.61
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/dist/components/SearchResultWidget/components/FacetBlockSelected.d.ts.map +1 -1
- package/dist/sledge-react-instant-search.cjs +1 -1
- package/dist/sledge-react-instant-search.cjs.map +1 -1
- package/dist/sledge-react-instant-search.js +3 -1
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/package.json +1 -1
|
@@ -7071,6 +7071,7 @@ const FacetBlockSelected = React__default.memo(
|
|
|
7071
7071
|
handleFilterChange,
|
|
7072
7072
|
allowedFilterSlider
|
|
7073
7073
|
} = props;
|
|
7074
|
+
const { isJsVersion, locale } = React__default.useContext(SledgeContext) || {};
|
|
7074
7075
|
const { money_format: money_format_props } = generalDataSettings || {};
|
|
7075
7076
|
const { separator: hierarchical_collections_separator } = hierarchicalCollectionsSettings || {};
|
|
7076
7077
|
const {
|
|
@@ -7134,7 +7135,8 @@ const FacetBlockSelected = React__default.memo(
|
|
|
7134
7135
|
if (getSettings == null ? void 0 : getSettings.rounded)
|
|
7135
7136
|
money_format = (_f = money_format == null ? void 0 : money_format.replace) == null ? void 0 : _f.call(money_format, /\{\{\s*amount[^}]*\}\}/g, "{{amount_no_decimals}}");
|
|
7136
7137
|
const getValueRange = new Set(value).size === 1 ? [value[0]] : value;
|
|
7137
|
-
|
|
7138
|
+
const selectedLocale = isJsVersion ? selectedLocaleJs() : locale;
|
|
7139
|
+
valueText = (_g = getValueRange == null ? void 0 : getValueRange.map((valueItem) => isPriceValue ? shopifyFormatMoney(valueItem * 100, money_format, selectedLocale) : isSalePercent ? `${valueItem}%` : valueItem)) == null ? void 0 : _g.join(" - ");
|
|
7138
7140
|
} else {
|
|
7139
7141
|
valueText = (_h = String(valueText)) == null ? void 0 : _h.replaceAll(hierarchical_collections_separator, " > ");
|
|
7140
7142
|
}
|