@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.
- package/dist/StorefrontProvider.d.ts +18 -15
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/StorefrontProvider.js +24 -34
- package/dist/chunks/booking-engine/dist/models/{Product.shared-CJ6vPb6n.js → Product.shared-CTuk4fiR.js} +2 -2
- package/dist/chunks/booking-engine/dist/schemas/{base-asset-PqhtKnZA.js → base-asset-B_Dm8_Vk.js} +1 -1
- package/dist/chunks/booking-engine/dist/schemas/{base-booking-BM3jZzqu.js → base-booking-DW8AEPKo.js} +1 -1
- package/dist/chunks/booking-engine/dist/schemas/{base-product-BJd4ttMP.js → base-product-1H8l2aUv.js} +1 -1
- package/dist/chunks/booking-engine/dist/{schemas-BNlwu75Z.js → schemas-34QQv0EH.js} +4 -4
- package/dist/chunks/ui/dist/Map/{MapContent--PwVTg2W.js → MapContent-QPkuTBvK.js} +2 -2
- package/dist/chunks/ui/dist/Map/{constants-DqrK8UkE.js → constants-BNmiJXfg.js} +1 -1
- package/dist/chunks/ui/dist/{Map-B45AxZ-D.js → Map-BXmRf5Ep.js} +3 -3
- package/dist/chunks/ui/dist/static/strings-1T2w7LqX.js +4 -0
- package/dist/components/AboutSection/index.d.ts +1 -6
- package/dist/components/AboutSection/index.d.ts.map +1 -1
- package/dist/components/AboutSection/index.js +43 -39
- package/dist/components/ContactSection/index.d.ts +1 -3
- package/dist/components/ContactSection/index.d.ts.map +1 -1
- package/dist/components/ContactSection/index.js +222 -164
- package/dist/components/Footer/index.d.ts +3 -4
- package/dist/components/Footer/index.d.ts.map +1 -1
- package/dist/components/Footer/index.js +98 -69
- package/dist/components/FulfillmentSection/index.d.ts.map +1 -1
- package/dist/components/FulfillmentSection/index.js +17 -16
- package/dist/components/Header/index.d.ts +1 -3
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +77 -72
- package/dist/components/Layout/index.d.ts +3 -1
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +45 -47
- package/dist/components/Map/index.js +1 -1
- package/dist/components/ProductPriceBadge/index.d.ts.map +1 -1
- package/dist/components/ProductPriceBadge/index.js +68 -60
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/fr.js +1 -1
- package/dist/index.d.ts +151 -150
- package/dist/index.js +62 -62
- package/dist/lib/cart.d.ts +4 -1
- package/dist/lib/cart.d.ts.map +1 -1
- package/dist/lib/cart.js +64 -40
- package/dist/lib/cartSummary.d.ts.map +1 -1
- package/dist/lib/cartSummary.js +4 -3
- package/dist/lib/checkoutSubmit.js +2 -2
- package/dist/lib/productVariants.d.ts.map +1 -1
- package/dist/lib/productVariants.js +20 -9
- package/dist/lib/storefrontAddress.d.ts +5 -0
- package/dist/lib/storefrontAddress.d.ts.map +1 -0
- package/dist/lib/storefrontAddress.js +24 -0
- package/dist/lib/storefrontAvailability.d.ts +6 -6
- package/dist/lib/storefrontContact.d.ts +10 -0
- package/dist/lib/storefrontContact.d.ts.map +1 -0
- package/dist/lib/storefrontContact.js +24 -0
- package/dist/lib/storefrontMissingValues.d.ts +5 -0
- package/dist/lib/storefrontMissingValues.d.ts.map +1 -0
- package/dist/lib/storefrontMissingValues.js +4 -0
- package/dist/lib/storefrontProducts.d.ts +23 -21
- package/dist/lib/storefrontProducts.d.ts.map +1 -1
- package/dist/lib/storefrontProducts.js +7 -5
- package/dist/lib/whatsapp.d.ts +8 -6
- package/dist/lib/whatsapp.d.ts.map +1 -1
- package/dist/lib/whatsapp.js +16 -43
- package/dist/pages/BookingPage.js +36 -36
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +126 -128
- package/dist/pages/ProductPage.js +160 -160
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +14 -12
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +3 -2
- package/dist/ui/radio-group.d.ts +1 -1
- package/package.json +7 -6
- package/dist/chunks/ui/dist/static/strings-CPnO-KbA.js +0 -4
- package/dist/data/config.d.ts +0 -15
- package/dist/data/config.d.ts.map +0 -1
- package/dist/data/config.js +0 -24
- package/dist/static/strings.d.ts +0 -2
- package/dist/static/strings.d.ts.map +0 -1
- package/dist/static/strings.js +0 -4
|
@@ -1,62 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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
|
|
12
|
-
import { useEffect as
|
|
13
|
-
import { Fragment as
|
|
14
|
-
import { RootProvider as
|
|
15
|
-
import { Outlet as
|
|
16
|
-
import { useTranslation as
|
|
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
|
|
19
|
-
let { storeSlug: b, referenceId: x } =
|
|
20
|
-
|
|
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 =
|
|
24
|
-
|
|
25
|
-
storefrontConfiguration: y,
|
|
22
|
+
let w = t({
|
|
23
|
+
storefrontConfiguration: v,
|
|
26
24
|
language: C.language
|
|
27
|
-
}),
|
|
28
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
storefrontConfiguration:
|
|
39
|
-
whatsappHref:
|
|
40
|
-
whatsappPhoneDisplay:
|
|
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__ */
|
|
40
|
+
/* @__PURE__ */ d("main", {
|
|
43
41
|
className: "flex-1",
|
|
44
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ d(m, {})
|
|
45
43
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
whatsappHref:
|
|
49
|
-
whatsappPhoneDisplay:
|
|
50
|
-
openingHours:
|
|
51
|
-
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__ */
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
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 {
|
|
60
|
+
export { v as Layout };
|
|
@@ -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;
|
|
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
|
|
9
|
-
import { Mail as
|
|
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
|
|
14
|
-
typeof window > "u" || window.dispatchEvent(new CustomEvent(
|
|
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 } =
|
|
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
|
-
},
|
|
19
|
-
O || (
|
|
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
|
-
|
|
21
|
+
H(), A(null);
|
|
26
22
|
}, G = () => {
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
},
|
|
34
|
+
}, de = (e) => {
|
|
35
35
|
let t = e.relatedTarget ?? document.activeElement;
|
|
36
|
-
|
|
36
|
+
ue(t) || W();
|
|
37
37
|
};
|
|
38
38
|
if (o(() => {
|
|
39
39
|
if (typeof window > "u") return () => {
|
|
40
|
-
|
|
40
|
+
H();
|
|
41
41
|
};
|
|
42
42
|
let e = (e) => {
|
|
43
|
-
e.detail?.id !== T && (
|
|
43
|
+
e.detail?.id !== T && (H(), A(null), M(!1));
|
|
44
44
|
};
|
|
45
|
-
return window.addEventListener(
|
|
46
|
-
window.removeEventListener(
|
|
45
|
+
return window.addEventListener(_, e), () => {
|
|
46
|
+
window.removeEventListener(_, e), H();
|
|
47
47
|
};
|
|
48
48
|
}, [T]), o(() => {
|
|
49
|
-
if (
|
|
49
|
+
if (k !== "hover" || typeof window > "u") return;
|
|
50
50
|
let e = (e) => {
|
|
51
51
|
if (K(e.target)) {
|
|
52
|
-
|
|
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
|
-
|
|
62
|
+
H(), A(null);
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
M(!1);
|
|
66
|
-
}, [O]), !
|
|
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-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
className: "
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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(
|
|
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(
|
|
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:
|
|
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
|
-
|
|
161
|
+
pe()
|
|
148
162
|
]
|
|
149
163
|
});
|
|
150
164
|
return O ? /* @__PURE__ */ d(h.Root, {
|
|
151
165
|
open: j,
|
|
152
166
|
onOpenChange: (e) => {
|
|
153
|
-
e ?
|
|
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:
|
|
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:
|
|
206
|
+
open: L,
|
|
193
207
|
onOpenChange: (e) => {
|
|
194
|
-
e ?
|
|
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:
|
|
204
|
-
"aria-expanded":
|
|
205
|
-
|
|
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 ?
|
|
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
|
-
}),
|
|
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:
|
|
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(),
|
|
235
|
+
e.stopPropagation(), H();
|
|
228
236
|
},
|
|
229
237
|
onClick: (e) => {
|
|
230
238
|
e.stopPropagation();
|
|
231
239
|
},
|
|
232
|
-
onMouseEnter:
|
|
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
|
-
|
|
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
|
|
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",
|