ublo-lib 1.47.62 → 1.47.63
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-booking-links.d.ts","sourceRoot":"","sources":["../../../src/esf/hooks/use-booking-links.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"use-booking-links.d.ts","sourceRoot":"","sources":["../../../src/esf/hooks/use-booking-links.js"],"names":[],"mappings":"AAKA,uJAwDC"}
|
|
@@ -5,7 +5,6 @@ import * as Plausible from "../../future/components/plausible";
|
|
|
5
5
|
export default function useBookingLinks(cart, multipleVillages, setupCallback, channel = "ESF", cartChanged, skipRecap) {
|
|
6
6
|
const { breadcrumb, config, lang, path } = useUbloContext();
|
|
7
7
|
const hasLangPrefix = config.langPrefix.links;
|
|
8
|
-
const bookingLang = lang === "fr" ? "fr" : "en";
|
|
9
8
|
const handleCartChange = React.useCallback((cart, kind, eventType) => {
|
|
10
9
|
cartChanged?.(cart, kind, eventType);
|
|
11
10
|
const event = new CustomEvent("msem-cart-changed", {
|
|
@@ -16,13 +15,13 @@ export default function useBookingLinks(cart, multipleVillages, setupCallback, c
|
|
|
16
15
|
React.useEffect(() => {
|
|
17
16
|
const run = async () => {
|
|
18
17
|
await loadJS("https://widget.vente-en-ligne-esf.com/boutique/boutique.js", "boutique-js");
|
|
19
|
-
setupConfig(
|
|
18
|
+
setupConfig(lang, breadcrumb, cart, multipleVillages, hasLangPrefix, channel, handleCartChange, skipRecap);
|
|
20
19
|
setupDialogCleanup();
|
|
21
20
|
setupCallback?.();
|
|
22
21
|
};
|
|
23
22
|
run();
|
|
24
23
|
}, [
|
|
25
|
-
|
|
24
|
+
lang,
|
|
26
25
|
breadcrumb,
|
|
27
26
|
cart,
|
|
28
27
|
handleCartChange,
|