@bytebrand/fe-ui-core 4.1.169 → 4.1.171
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/package.json
CHANGED
|
@@ -10,6 +10,7 @@ import { priceRatings, priceRatingConfig } from '../constants/price';
|
|
|
10
10
|
import { GOOGLE_BUNDLE_COOKIES, HUNDRED } from '../constants/common';
|
|
11
11
|
import { offers } from '../constants';
|
|
12
12
|
import { FILTERS_IN_TITLE, MANUFACTURER_KEY, MAX_FILTERS_IN_TITLE, MODEL_KEY } from '../constants/Search';
|
|
13
|
+
import { SearchPage as SearchPageTranslate } from '../../locales/data';
|
|
13
14
|
|
|
14
15
|
const PRICE_DEFAULT = DROP_DOWN_GROUP[PRICE].defaultValue;
|
|
15
16
|
|
|
@@ -398,7 +399,11 @@ export const getSupportedImageFormat = (IMAGE_URL: string, vehicleID: string, im
|
|
|
398
399
|
return webpFeature ? `${vehicleImageURL}/${size}-cached.webp` : `${vehicleImageURL}/${size}-cached.jpeg`;
|
|
399
400
|
};
|
|
400
401
|
|
|
401
|
-
export function getChipFilterValue(
|
|
402
|
+
export function getChipFilterValue(
|
|
403
|
+
chip: any,
|
|
404
|
+
t: (key: string, options?: object) => string = (phrase: string, _?: object) => _get(SearchPageTranslate(chip), phrase.replace(':', '.'), phrase),
|
|
405
|
+
language: string = 'de'
|
|
406
|
+
) {
|
|
402
407
|
let filterValue: string;
|
|
403
408
|
let title: string;
|
|
404
409
|
let from: string;
|
|
@@ -554,5 +559,5 @@ export const updateCookieList = () => {
|
|
|
554
559
|
// grant FB cookies
|
|
555
560
|
if (isFBGranted && typeof window.fbq === 'function') window.fbq('consent', 'grant');
|
|
556
561
|
// grant Hotjar cookies
|
|
557
|
-
if (isHotjarGranted && typeof window.grantHotjarCookieConsent
|
|
562
|
+
if (isHotjarGranted && typeof window.grantHotjarCookieConsent === 'function') window.grantHotjarCookieConsent();
|
|
558
563
|
};
|