ublo-lib 1.46.15 → 1.46.17
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.
|
@@ -8,11 +8,11 @@ import * as Messages from "./messages";
|
|
|
8
8
|
import * as Utils from "./utils";
|
|
9
9
|
import css from "./cookie-consent.module.css";
|
|
10
10
|
const { publicRuntimeConfig } = getConfig();
|
|
11
|
-
const { gaAccount, hotjar } = publicRuntimeConfig;
|
|
11
|
+
const { gaAccount, hotjar, enableCookieConsent } = publicRuntimeConfig;
|
|
12
12
|
const COOKIE_STORAGE = "cookie_allowed";
|
|
13
13
|
const CookieConsent = ({ lang, consent, updateConsent }) => {
|
|
14
14
|
const [mounted, setMounted] = React.useState(false);
|
|
15
|
-
const isEnabled = Boolean(gaAccount || hotjar);
|
|
15
|
+
const isEnabled = Boolean(enableCookieConsent || gaAccount || hotjar);
|
|
16
16
|
const cookieAllowed = (value) => () => {
|
|
17
17
|
updateConsent(value);
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-display.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/date-display.js"],"names":[],"mappings":"AAOA;;
|
|
1
|
+
{"version":3,"file":"date-display.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/date-display.js"],"names":[],"mappings":"AAOA;;4CA0CC"}
|
|
@@ -8,7 +8,7 @@ import css from "./date-display.module.css";
|
|
|
8
8
|
export default function DateDisplay({ className }) {
|
|
9
9
|
const [stay, setStay] = React.useState();
|
|
10
10
|
const { lang, metadata, config } = useUbloContext();
|
|
11
|
-
const { extend } = config.season;
|
|
11
|
+
const { extend, dateDisplay } = config.season;
|
|
12
12
|
const classes = classNames(css.display, {
|
|
13
13
|
[className]: className,
|
|
14
14
|
});
|
|
@@ -31,7 +31,7 @@ export default function DateDisplay({ className }) {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
}, [getStoredStay, metadata?.disableWeekpicker, updateStay]);
|
|
34
|
-
if (!extend || !stay || metadata?.disableWeekpicker)
|
|
34
|
+
if ((!extend && !dateDisplay) || !stay || metadata?.disableWeekpicker)
|
|
35
35
|
return null;
|
|
36
36
|
const formattedStay = Stay.formatStay(lang, stay);
|
|
37
37
|
return (_jsxs("div", { className: classes, children: [Messages.get(lang, "offers"), " ", _jsx("span", { className: css.dates, children: formattedStay })] }));
|