@loczer/storefront-sdk 0.182.0 → 0.183.0

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.
Files changed (77) hide show
  1. package/dist/StorefrontProvider.d.ts +18 -15
  2. package/dist/StorefrontProvider.d.ts.map +1 -1
  3. package/dist/StorefrontProvider.js +24 -34
  4. package/dist/chunks/booking-engine/dist/models/{Product.shared-CJ6vPb6n.js → Product.shared-CTuk4fiR.js} +2 -2
  5. package/dist/chunks/booking-engine/dist/schemas/{base-asset-PqhtKnZA.js → base-asset-B_Dm8_Vk.js} +1 -1
  6. package/dist/chunks/booking-engine/dist/schemas/{base-booking-BM3jZzqu.js → base-booking-DW8AEPKo.js} +1 -1
  7. package/dist/chunks/booking-engine/dist/schemas/{base-product-BJd4ttMP.js → base-product-1H8l2aUv.js} +1 -1
  8. package/dist/chunks/booking-engine/dist/{schemas-BNlwu75Z.js → schemas-34QQv0EH.js} +4 -4
  9. package/dist/chunks/ui/dist/Map/{MapContent--PwVTg2W.js → MapContent-QPkuTBvK.js} +2 -2
  10. package/dist/chunks/ui/dist/Map/{constants-DqrK8UkE.js → constants-BNmiJXfg.js} +1 -1
  11. package/dist/chunks/ui/dist/{Map-B45AxZ-D.js → Map-BXmRf5Ep.js} +3 -3
  12. package/dist/chunks/ui/dist/static/strings-1T2w7LqX.js +4 -0
  13. package/dist/components/AboutSection/index.d.ts +1 -6
  14. package/dist/components/AboutSection/index.d.ts.map +1 -1
  15. package/dist/components/AboutSection/index.js +43 -39
  16. package/dist/components/ContactSection/index.d.ts +1 -3
  17. package/dist/components/ContactSection/index.d.ts.map +1 -1
  18. package/dist/components/ContactSection/index.js +222 -164
  19. package/dist/components/Footer/index.d.ts +3 -4
  20. package/dist/components/Footer/index.d.ts.map +1 -1
  21. package/dist/components/Footer/index.js +98 -69
  22. package/dist/components/FulfillmentSection/index.d.ts.map +1 -1
  23. package/dist/components/FulfillmentSection/index.js +17 -16
  24. package/dist/components/Header/index.d.ts +1 -3
  25. package/dist/components/Header/index.d.ts.map +1 -1
  26. package/dist/components/Header/index.js +77 -72
  27. package/dist/components/Layout/index.d.ts +3 -1
  28. package/dist/components/Layout/index.d.ts.map +1 -1
  29. package/dist/components/Layout/index.js +45 -47
  30. package/dist/components/Map/index.js +1 -1
  31. package/dist/components/ProductPriceBadge/index.d.ts.map +1 -1
  32. package/dist/components/ProductPriceBadge/index.js +68 -60
  33. package/dist/i18n/I18nProvider.js +1 -1
  34. package/dist/i18n/fr.js +1 -1
  35. package/dist/index.d.ts +151 -150
  36. package/dist/index.js +62 -62
  37. package/dist/lib/cart.d.ts +4 -1
  38. package/dist/lib/cart.d.ts.map +1 -1
  39. package/dist/lib/cart.js +64 -40
  40. package/dist/lib/cartSummary.d.ts.map +1 -1
  41. package/dist/lib/cartSummary.js +4 -3
  42. package/dist/lib/checkoutSubmit.js +2 -2
  43. package/dist/lib/productVariants.d.ts.map +1 -1
  44. package/dist/lib/productVariants.js +20 -9
  45. package/dist/lib/storefrontAddress.d.ts +5 -0
  46. package/dist/lib/storefrontAddress.d.ts.map +1 -0
  47. package/dist/lib/storefrontAddress.js +24 -0
  48. package/dist/lib/storefrontAvailability.d.ts +6 -6
  49. package/dist/lib/storefrontContact.d.ts +10 -0
  50. package/dist/lib/storefrontContact.d.ts.map +1 -0
  51. package/dist/lib/storefrontContact.js +24 -0
  52. package/dist/lib/storefrontMissingValues.d.ts +5 -0
  53. package/dist/lib/storefrontMissingValues.d.ts.map +1 -0
  54. package/dist/lib/storefrontMissingValues.js +4 -0
  55. package/dist/lib/storefrontProducts.d.ts +23 -21
  56. package/dist/lib/storefrontProducts.d.ts.map +1 -1
  57. package/dist/lib/storefrontProducts.js +7 -5
  58. package/dist/lib/whatsapp.d.ts +8 -6
  59. package/dist/lib/whatsapp.d.ts.map +1 -1
  60. package/dist/lib/whatsapp.js +16 -43
  61. package/dist/pages/BookingPage.js +36 -36
  62. package/dist/pages/HomePage.d.ts.map +1 -1
  63. package/dist/pages/HomePage.js +126 -128
  64. package/dist/pages/ProductPage.js +160 -160
  65. package/dist/storefront.css +1 -1
  66. package/dist/storefrontSchemas.d.ts +14 -12
  67. package/dist/storefrontSchemas.d.ts.map +1 -1
  68. package/dist/storefrontSchemas.js +3 -2
  69. package/dist/ui/radio-group.d.ts +1 -1
  70. package/package.json +7 -6
  71. package/dist/chunks/ui/dist/static/strings-CPnO-KbA.js +0 -4
  72. package/dist/data/config.d.ts +0 -15
  73. package/dist/data/config.d.ts.map +0 -1
  74. package/dist/data/config.js +0 -24
  75. package/dist/static/strings.d.ts +0 -2
  76. package/dist/static/strings.d.ts.map +0 -1
  77. package/dist/static/strings.js +0 -4
@@ -1,62 +1,60 @@
1
- import { getStorefrontPreset as e } from "../../data/config.js";
2
- import { StorefrontCartProvider as t } from "../../lib/cart.js";
3
- import { resolveStorefrontWhatsAppContact as n } from "../../lib/whatsapp.js";
4
- import { Footer as r } from "../Footer/index.js";
5
- import { Header as i } from "../Header/index.js";
6
- import { PlatformFooter as a } from "../PlatformFooter/index.js";
7
- import { PlaygroundDevFloatingButton as o } from "../PlaygroundDevFloatingButton/index.js";
8
- import { StorefrontPopupMessages as s } from "../StorefrontPopupMessages/index.js";
9
- import { WhatsAppFloatingButton as c } from "../WhatsAppFloatingButton/WhatsAppFloatingButton.js";
1
+ import { StorefrontCartProvider as e } from "../../lib/cart.js";
2
+ import { resolveStorefrontWhatsAppContact as t } from "../../lib/whatsapp.js";
3
+ import { Footer as n } from "../Footer/index.js";
4
+ import { Header as r } from "../Header/index.js";
5
+ import { PlatformFooter as i } from "../PlatformFooter/index.js";
6
+ import { PlaygroundDevFloatingButton as a } from "../PlaygroundDevFloatingButton/index.js";
7
+ import { StorefrontPopupMessages as o } from "../StorefrontPopupMessages/index.js";
8
+ import { WhatsAppFloatingButton as s } from "../WhatsAppFloatingButton/WhatsAppFloatingButton.js";
10
9
  import "../WhatsAppFloatingButton/index.js";
11
- import { Provider as l } from "../../ui/tooltip.js";
12
- import { useEffect as u } from "react";
13
- import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
14
- import { RootProvider as m } from "@rpcbase/client";
15
- import { Outlet as h, useLocation as g, useParams as _ } from "@rpcbase/router";
16
- import { useTranslation as v } from "react-i18next";
10
+ import { Provider as c } from "../../ui/tooltip.js";
11
+ import { useEffect as l } from "react";
12
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
13
+ import { RootProvider as p } from "@rpcbase/client";
14
+ import { Outlet as m, useLocation as h, useParams as g } from "@rpcbase/router";
15
+ import { useTranslation as _ } from "react-i18next";
17
16
  //#region src/components/Layout/index.tsx
18
- function y({ storefrontConfiguration: y }) {
19
- let { storeSlug: b, referenceId: x } = _(), S = g(), { i18n: C } = v();
20
- u(() => {
17
+ function v({ storefrontConfiguration: v, storefrontProducts: y }) {
18
+ let { storeSlug: b, referenceId: x } = g(), S = h(), { i18n: C } = _();
19
+ l(() => {
21
20
  document.documentElement.setAttribute("data-hydrated", "true");
22
21
  }, []);
23
- let w = e(b), T = n({
24
- preset: w,
25
- storefrontConfiguration: y,
22
+ let w = t({
23
+ storefrontConfiguration: v,
26
24
  language: C.language
27
- }), E = T?.href, D = typeof x == "string" && x.trim().length > 0, O = D && new URLSearchParams(S.search).get("pdf") === "1";
28
- return /* @__PURE__ */ f(m, { children: /* @__PURE__ */ f(l, { children: /* @__PURE__ */ f(t, {
25
+ }), T = w?.href, E = typeof x == "string" && x.trim().length > 0, D = E && new URLSearchParams(S.search).get("pdf") === "1";
26
+ return /* @__PURE__ */ d(p, { children: /* @__PURE__ */ d(c, { children: /* @__PURE__ */ d(e, {
29
27
  storeSlug: b ?? "",
30
- children: /* @__PURE__ */ f("div", {
31
- className: `loczer-storefront flex flex-col bg-background text-foreground ${D && !O ? "h-dvh overflow-hidden" : "min-h-screen"}`,
32
- children: D ? /* @__PURE__ */ f("main", {
33
- className: `flex-1 ${O ? "bg-white" : "overflow-hidden"}`,
34
- children: /* @__PURE__ */ f(h, {})
35
- }) : /* @__PURE__ */ p(d, { children: [
36
- /* @__PURE__ */ f(i, {
37
- preset: w,
38
- storefrontConfiguration: y,
39
- whatsappHref: E,
40
- whatsappPhoneDisplay: T?.phoneDisplay
28
+ products: y,
29
+ children: /* @__PURE__ */ d("div", {
30
+ className: `loczer-storefront flex flex-col bg-background text-foreground ${E && !D ? "h-dvh overflow-hidden" : "min-h-screen"}`,
31
+ children: E ? /* @__PURE__ */ d("main", {
32
+ className: `flex-1 ${D ? "bg-white" : "overflow-hidden"}`,
33
+ children: /* @__PURE__ */ d(m, {})
34
+ }) : /* @__PURE__ */ f(u, { children: [
35
+ /* @__PURE__ */ d(r, {
36
+ storefrontConfiguration: v,
37
+ whatsappHref: T,
38
+ whatsappPhoneDisplay: w?.phoneDisplay
41
39
  }),
42
- /* @__PURE__ */ f("main", {
40
+ /* @__PURE__ */ d("main", {
43
41
  className: "flex-1",
44
- children: /* @__PURE__ */ f(h, {})
42
+ children: /* @__PURE__ */ d(m, {})
45
43
  }),
46
- /* @__PURE__ */ f(r, {
47
- preset: w,
48
- whatsappHref: E,
49
- whatsappPhoneDisplay: T?.phoneDisplay,
50
- openingHours: y?.bookingEngine.shop.openingHours,
51
- openingHoursOverrides: y?.bookingEngine.shop.openingHoursOverrides
44
+ /* @__PURE__ */ d(n, {
45
+ shop: v?.shop,
46
+ whatsappHref: T,
47
+ whatsappPhoneDisplay: w?.phoneDisplay,
48
+ openingHours: v?.bookingEngine.shop.openingHours,
49
+ openingHoursOverrides: v?.bookingEngine.shop.openingHoursOverrides
52
50
  }),
53
- /* @__PURE__ */ f(a, {}),
54
- E && y?.content?.showWhatsappFloatingButton !== !1 ? /* @__PURE__ */ f(c, { href: E }) : null,
55
- /* @__PURE__ */ f(o, {}),
56
- /* @__PURE__ */ f(s, { storefrontConfiguration: y })
51
+ /* @__PURE__ */ d(i, {}),
52
+ T && v?.content?.showWhatsappFloatingButton !== !1 ? /* @__PURE__ */ d(s, { href: T }) : null,
53
+ /* @__PURE__ */ d(a, {}),
54
+ /* @__PURE__ */ d(o, { storefrontConfiguration: v })
57
55
  ] })
58
56
  })
59
57
  }) }) });
60
58
  }
61
59
  //#endregion
62
- export { y as Layout };
60
+ export { v as Layout };
@@ -1,4 +1,4 @@
1
- import { Map as e } from "../../chunks/ui/dist/Map-B45AxZ-D.js";
1
+ import { Map as e } from "../../chunks/ui/dist/Map-BXmRf5Ep.js";
2
2
  import { createMarkerElement as t } from "./createMarkerElement.js";
3
3
  //#region src/components/Map/index.tsx
4
4
  var n = e;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProductPriceBadge/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAA;AAmBhF,KAAK,sBAAsB,GAAG;IAC5B,MAAM,CAAC,EAAE,4BAA4B,EAAE,CAAA;IACvC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,sCAAsC,sBAAsB,mDAgW7F,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProductPriceBadge/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAA;AAoBhF,KAAK,sBAAsB,GAAG;IAC5B,MAAM,CAAC,EAAE,4BAA4B,EAAE,CAAA;IACvC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,sCAAsC,sBAAsB,mDA4W7F,CAAA"}
@@ -5,51 +5,51 @@ import { useEffect as o, useId as s, useRef as c, useState as l } from "react";
5
5
  import { Fragment as ee, jsx as u, jsxs as d } from "react/jsx-runtime";
6
6
  import { cn as f } from "@rpcbase/ui";
7
7
  import { useMediaQuery as p } from "@rpcbase/client";
8
- import { useTranslation as m } from "react-i18next";
9
- import { Mail as te, Phone as ne, TrendingDown as re } from "lucide-react";
8
+ import { useTranslation as te } from "react-i18next";
9
+ import { Info as ne, Mail as re, Phone as ie, TrendingDown as m } from "lucide-react";
10
10
  import { Drawer as h } from "@base-ui/react/drawer";
11
11
  import { Popover as g } from "@base-ui/react/popover";
12
12
  //#region src/components/ProductPriceBadge/index.tsx
13
- var _ = 180, ie = "(max-width: 767px)", v = "loczer:storefront:product-price-popover-open", ae = (e) => typeof Node < "u" && e instanceof Node, y = (e) => {
14
- typeof window > "u" || window.dispatchEvent(new CustomEvent(v, { detail: { id: e } }));
13
+ var ae = 180, oe = "(max-width: 767px)", _ = "loczer:storefront:product-price-popover-open", v = (e) => typeof Node < "u" && e instanceof Node, y = (e) => {
14
+ typeof window > "u" || window.dispatchEvent(new CustomEvent(_, { detail: { id: e } }));
15
15
  }, b = ({ prices: b, minPriceMinor: x, className: S }) => {
16
- let { t: C, i18n: w } = m(), T = s(), E = a(), oe = p(ie), D = p("(hover: none), (pointer: coarse)"), O = !!(oe || D), [k, A] = l(!1), [j, M] = l(!1), N = c(null), P = c(null), F = c(null), I = t(b, w.language, C), L = e(b, w.language), R = I[0], z = I[1], B = () => {
16
+ let { t: C, i18n: w } = te(), T = s(), E = a(), se = p(oe), D = p("(hover: none), (pointer: coarse)"), O = !!(se || D), [k, A] = l(null), [j, M] = l(!1), N = c(null), P = c(null), F = c(null), I = c(null), L = k !== null, R = t(b, w.language, C), z = e(b, w.language), B = R[0], V = R[1], H = () => {
17
17
  N.current &&= (clearTimeout(N.current), null);
18
- }, V = () => {
19
- O || (B(), A(!0), y(T));
20
- }, H = () => {
21
- B(), A(!1);
22
- }, U = () => {
23
- B(), M(!0), y(T);
18
+ }, U = (e) => {
19
+ O || (H(), A((t) => t === "click" ? t : e), y(T));
24
20
  }, W = () => {
25
- M(!1);
21
+ H(), A(null);
26
22
  }, G = () => {
27
- k || V();
28
- }, K = (e) => ae(e) ? !!(P.current?.contains(e) || F.current?.contains(e)) : !1, q = (e) => {
29
- K(e) || (B(), N.current = setTimeout(() => {
30
- A(!1), N.current = null;
31
- }, _));
23
+ H(), M(!0), y(T);
24
+ }, ce = () => {
25
+ M(!1);
26
+ }, le = () => {
27
+ L || U("hover");
28
+ }, ue = (e) => v(e) ? !!(P.current?.contains(e) || I.current?.contains(e)) : !1, K = (e) => v(e) ? !!(F.current?.contains(e) || I.current?.contains(e)) : !1, q = (e) => {
29
+ k !== "hover" || K(e) || (H(), N.current = setTimeout(() => {
30
+ A((e) => e === "hover" ? null : e), N.current = null;
31
+ }, ae));
32
32
  }, J = (e) => {
33
33
  q(e?.relatedTarget);
34
- }, se = (e) => {
34
+ }, de = (e) => {
35
35
  let t = e.relatedTarget ?? document.activeElement;
36
- K(t) || H();
36
+ ue(t) || W();
37
37
  };
38
38
  if (o(() => {
39
39
  if (typeof window > "u") return () => {
40
- B();
40
+ H();
41
41
  };
42
42
  let e = (e) => {
43
- e.detail?.id !== T && (B(), A(!1), M(!1));
43
+ e.detail?.id !== T && (H(), A(null), M(!1));
44
44
  };
45
- return window.addEventListener(v, e), () => {
46
- window.removeEventListener(v, e), B();
45
+ return window.addEventListener(_, e), () => {
46
+ window.removeEventListener(_, e), H();
47
47
  };
48
48
  }, [T]), o(() => {
49
- if (!k || typeof window > "u") return;
49
+ if (k !== "hover" || typeof window > "u") return;
50
50
  let e = (e) => {
51
51
  if (K(e.target)) {
52
- B();
52
+ H();
53
53
  return;
54
54
  }
55
55
  N.current || q(e.target);
@@ -59,26 +59,40 @@ var _ = 180, ie = "(max-width: 767px)", v = "loczer:storefront:product-price-pop
59
59
  };
60
60
  }, [k]), o(() => {
61
61
  if (O) {
62
- B(), A(!1);
62
+ H(), A(null);
63
63
  return;
64
64
  }
65
65
  M(!1);
66
- }, [O]), !R) return typeof x == "number" ? /* @__PURE__ */ u(r, {
66
+ }, [O]), !B) return typeof x == "number" ? /* @__PURE__ */ u(r, {
67
67
  variant: "outline",
68
68
  className: f("border-slate-200 bg-white text-slate-700", S),
69
69
  children: /* @__PURE__ */ u("span", { children: C("price_from", { price: n(x, w.language) }) })
70
70
  }) : null;
71
- let Y = f(i({ variant: "outline" }), "gap-1.5 border-slate-200 bg-white text-slate-700 transition hover:border-slate-300 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/15", L.length > 0 && "cursor-help", S), X = E?.storefrontConfiguration.shop.emailAddress?.trim(), Z = E?.storefrontConfiguration.shop.contactPhone1?.trim(), ce = !!(X || Z), Q = () => /* @__PURE__ */ d(ee, { children: [/* @__PURE__ */ u("span", {
72
- className: "font-semibold",
73
- children: R
74
- }), z ? /* @__PURE__ */ d("span", {
75
- className: "inline-flex items-center gap-1 text-slate-500",
76
- children: [/* @__PURE__ */ u(re, {
77
- className: "h-3 w-3",
78
- strokeWidth: 2.4,
79
- "aria-hidden": "true"
80
- }), /* @__PURE__ */ u("span", { children: C("price_then", { price: z }) })]
81
- }) : null] }), le = () => ce ? /* @__PURE__ */ d("div", {
71
+ let Y = f(i({ variant: "outline" }), "gap-1.5 border-slate-200 bg-white text-slate-700 outline-none transition hover:border-slate-300 hover:text-slate-950 focus:border-slate-200 focus:outline-none focus:ring-0 focus:ring-transparent focus:ring-offset-0 focus-visible:border-slate-200 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-transparent focus-visible:ring-offset-0", z.length > 0 && "cursor-pointer", S), X = E?.storefrontConfiguration.shop.emailAddress?.trim(), Z = E?.storefrontConfiguration.shop.contactPhone1?.trim(), fe = !!(X || Z), Q = () => /* @__PURE__ */ d(ee, { children: [
72
+ /* @__PURE__ */ u("span", {
73
+ className: "font-semibold",
74
+ children: B
75
+ }),
76
+ V ? /* @__PURE__ */ d("span", {
77
+ className: "inline-flex items-center gap-1 text-slate-500",
78
+ children: [/* @__PURE__ */ u(m, {
79
+ className: "h-3 w-3",
80
+ strokeWidth: 2.4,
81
+ "aria-hidden": "true"
82
+ }), /* @__PURE__ */ u("span", { children: C("price_then", { price: V }) })]
83
+ }) : null,
84
+ z.length > 0 ? /* @__PURE__ */ u("span", {
85
+ ref: F,
86
+ className: "inline-flex shrink-0 items-center text-slate-500",
87
+ onMouseEnter: () => U("hover"),
88
+ onMouseMove: le,
89
+ onMouseLeave: J,
90
+ children: /* @__PURE__ */ u(ne, {
91
+ className: "h-3 w-3",
92
+ "aria-hidden": "true"
93
+ })
94
+ }) : null
95
+ ] }), pe = () => fe ? /* @__PURE__ */ d("div", {
82
96
  className: "border-t border-slate-200 pt-2 text-slate-600",
83
97
  children: [/* @__PURE__ */ u("p", {
84
98
  className: "leading-snug",
@@ -88,7 +102,7 @@ var _ = 180, ie = "(max-width: 767px)", v = "loczer:storefront:product-price-pop
88
102
  children: [Z ? /* @__PURE__ */ d("a", {
89
103
  className: "inline-flex min-w-0 items-center gap-1 font-medium text-slate-800 underline-offset-4 hover:underline",
90
104
  href: `tel:${Z}`,
91
- children: [/* @__PURE__ */ u(ne, {
105
+ children: [/* @__PURE__ */ u(ie, {
92
106
  className: "h-3 w-3 shrink-0",
93
107
  "aria-hidden": "true"
94
108
  }), /* @__PURE__ */ u("span", {
@@ -98,7 +112,7 @@ var _ = 180, ie = "(max-width: 767px)", v = "loczer:storefront:product-price-pop
98
112
  }) : null, X ? /* @__PURE__ */ d("a", {
99
113
  className: "inline-flex min-w-0 items-center gap-1 font-medium text-slate-800 underline-offset-4 hover:underline",
100
114
  href: `mailto:${X}`,
101
- children: [/* @__PURE__ */ u(te, {
115
+ children: [/* @__PURE__ */ u(re, {
102
116
  className: "h-3 w-3 shrink-0",
103
117
  "aria-hidden": "true"
104
118
  }), /* @__PURE__ */ u("span", {
@@ -116,7 +130,7 @@ var _ = 180, ie = "(max-width: 767px)", v = "loczer:storefront:product-price-pop
116
130
  }) : null,
117
131
  /* @__PURE__ */ u("ul", {
118
132
  className: f("grid gap-1 text-slate-600", t === "drawer" && "gap-1.5"),
119
- children: L.map(({ dayCount: e, totalPriceLabel: n, perDayPriceLabel: r }) => {
133
+ children: z.map(({ dayCount: e, totalPriceLabel: n, perDayPriceLabel: r }) => {
120
134
  let i = C("price_table_day", { count: e }), a = C("price_table_per_day", { price: r });
121
135
  return /* @__PURE__ */ u("li", { children: /* @__PURE__ */ d("div", {
122
136
  className: "flex items-baseline gap-2",
@@ -144,20 +158,20 @@ var _ = 180, ie = "(max-width: 767px)", v = "loczer:storefront:product-price-pop
144
158
  }) }, e);
145
159
  })
146
160
  }),
147
- le()
161
+ pe()
148
162
  ]
149
163
  });
150
164
  return O ? /* @__PURE__ */ d(h.Root, {
151
165
  open: j,
152
166
  onOpenChange: (e) => {
153
- e ? U() : W();
167
+ e ? G() : ce();
154
168
  },
155
169
  swipeDirection: "down",
156
170
  children: [/* @__PURE__ */ u(h.Trigger, {
157
171
  ref: P,
158
172
  type: "button",
159
173
  className: Y,
160
- "aria-label": C("price_details_aria_label", { price: R }),
174
+ "aria-label": C("price_details_aria_label", { price: B }),
161
175
  "aria-expanded": j,
162
176
  onClick: (e) => {
163
177
  e.stopPropagation();
@@ -189,47 +203,41 @@ var _ = 180, ie = "(max-width: 767px)", v = "loczer:storefront:product-price-pop
189
203
  })
190
204
  })] })]
191
205
  }) : /* @__PURE__ */ d(g.Root, {
192
- open: k,
206
+ open: L,
193
207
  onOpenChange: (e) => {
194
- e ? V() : H();
208
+ e ? U("click") : W();
195
209
  },
196
210
  children: [/* @__PURE__ */ u(g.Trigger, {
197
211
  ref: P,
198
212
  type: "button",
199
- openOnHover: !0,
200
- delay: 0,
201
- closeDelay: _,
202
213
  className: Y,
203
- "aria-label": C("price_details_aria_label", { price: R }),
204
- "aria-expanded": k,
205
- onMouseEnter: V,
206
- onMouseMove: G,
207
- onMouseLeave: J,
208
- onBlur: se,
214
+ "aria-label": C("price_details_aria_label", { price: B }),
215
+ "aria-expanded": L,
216
+ onBlur: de,
209
217
  onClick: (e) => {
210
- e.preventDefault(), e.stopPropagation(), k ? H() : V();
218
+ e.preventDefault(), e.stopPropagation(), k === "click" ? W() : U("click");
211
219
  },
212
220
  onPointerDown: (e) => {
213
221
  e.stopPropagation();
214
222
  },
215
223
  children: Q()
216
- }), L.length > 0 ? /* @__PURE__ */ u(g.Portal, { children: /* @__PURE__ */ u(g.Positioner, {
224
+ }), z.length > 0 ? /* @__PURE__ */ u(g.Portal, { children: /* @__PURE__ */ u(g.Positioner, {
217
225
  side: "top",
218
226
  align: "end",
219
227
  sideOffset: 8,
220
228
  collisionPadding: 12,
221
229
  className: "pointer-events-auto z-[70] outline-none",
222
230
  children: /* @__PURE__ */ u(g.Popup, {
223
- ref: F,
231
+ ref: I,
224
232
  initialFocus: !1,
225
233
  className: "w-64 rounded-xl border border-slate-200 bg-white p-3 text-slate-950 shadow-xl outline-none data-[closed]:animate-out data-[closed]:fade-out-0 data-[closed]:zoom-out-95 data-[open]:animate-in data-[open]:fade-in-0 data-[open]:zoom-in-95",
226
234
  onPointerDown: (e) => {
227
- e.stopPropagation(), B();
235
+ e.stopPropagation(), H();
228
236
  },
229
237
  onClick: (e) => {
230
238
  e.stopPropagation();
231
239
  },
232
- onMouseEnter: V,
240
+ onMouseEnter: H,
233
241
  onMouseLeave: J,
234
242
  children: $(!0, "popover")
235
243
  })
@@ -73,7 +73,7 @@ var c = "storefront", l = "loczer_storefront_lng", u = "loczer_storefront_lng",
73
73
  defaultNS: c,
74
74
  interpolation: { escapeValue: !1 },
75
75
  react: { useSuspense: !1 },
76
- initImmediate: !1
76
+ initAsync: !1
77
77
  }), n;
78
78
  }, E = null, D = null, O = (e, t) => {
79
79
  if (E && D === t) return E;
package/dist/i18n/fr.js CHANGED
@@ -74,7 +74,7 @@ var e = {
74
74
  },
75
75
  availability_in_stock: "Disponible",
76
76
  availability_low_stock: "Stock faible",
77
- availability_out_of_stock: "Rupture de stock",
77
+ availability_out_of_stock: "Rupture",
78
78
  availability_quantity_unavailable: "Quantité indisponible",
79
79
  availability_checking: "Vérification de la disponibilité",
80
80
  availability_remaining_count_one: "{{count}} disponible",