@loczer/storefront-sdk 0.176.0 → 0.178.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/chunks/ui/dist/Map/{MapContent-BqCzk6pD.js → MapContent-DUHBHUBa.js} +7 -7
- package/dist/chunks/ui/dist/Map/constants-DlJEohkl.js +4 -0
- package/dist/chunks/ui/dist/{Map-Cqn7INdm.js → Map-_kbTiMe4.js} +7 -7
- package/dist/chunks/ui/dist/Spinner/index-SbbUxcsT.js +48 -0
- package/dist/components/BookingBikeVariantDialog/index.js +12 -12
- package/dist/components/ContractSaleDocument/Invoice.js +1 -1
- package/dist/components/Map/index.js +1 -1
- package/dist/components/StorefrontCancellationPolicyNotice/index.js +11 -11
- package/dist/components/StorefrontCartPanel/index.js +7 -7
- package/dist/components/TestimonialsSection/index.d.ts.map +1 -1
- package/dist/components/TestimonialsSection/index.js +108 -117
- package/dist/components/payment/MollieCardFieldsForm.d.ts.map +1 -1
- package/dist/components/payment/MollieCardFieldsForm.js +16 -15
- package/dist/components/payment/StripeCardFieldsForm.d.ts.map +1 -1
- package/dist/components/payment/StripeCardFieldsForm.js +11 -10
- package/dist/lib/nameInitials.d.ts +3 -0
- package/dist/lib/nameInitials.d.ts.map +1 -0
- package/dist/lib/nameInitials.js +19 -0
- package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPaymentPage.js +42 -41
- package/dist/pages/CheckoutSuccessPage.js +11 -11
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
- package/dist/pages/ContractSaleDocumentPage.js +25 -24
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +37 -37
- package/dist/pages/PaymentLinkPage.d.ts.map +1 -1
- package/dist/pages/PaymentLinkPage.js +44 -43
- package/dist/pages/PaymentLinkSuccessPage.d.ts.map +1 -1
- package/dist/pages/PaymentLinkSuccessPage.js +15 -14
- package/dist/pages/ProductPage.js +1 -1
- package/dist/pages/checkout/components/CheckoutCouponCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutCouponCard.js +36 -35
- package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +10 -9
- package/dist/storefront.css +1 -1
- package/package.json +3 -2
- package/dist/chunks/ui/dist/Map/constants-AiBwXZf6.js +0 -4
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { useState as f, useRef as j, useEffect as
|
|
2
|
+
import { useState as f, useRef as j, useEffect as L, useMemo as K } from "react";
|
|
3
3
|
import { toast as G } from "@rpcbase/client";
|
|
4
4
|
import { useParams as J, useNavigate as Q, useSearchParams as V, Link as N } from "@rpcbase/router";
|
|
5
5
|
import { loadStripe as W } from "@stripe/stripe-js";
|
|
6
6
|
import { Elements as Z, useStripe as ee } from "@stripe/react-stripe-js";
|
|
7
|
-
import {
|
|
7
|
+
import { Spinner as te } from "../chunks/ui/dist/Spinner/index-SbbUxcsT.js";
|
|
8
|
+
import { AlertTriangle as O, ShieldCheck as re, CheckCircle2 as se, XCircle as ne, CircleDashed as ce, ArrowRight as ae } from "lucide-react";
|
|
8
9
|
import { useTranslation as E } from "react-i18next";
|
|
9
10
|
import { apiPost as ie } from "../lib/apiCall.js";
|
|
10
11
|
import { ROUTE as oe, responseSchema as le } from "../lib/checkoutPaymentSession.js";
|
|
@@ -14,9 +15,9 @@ import { MollieCardFieldsForm as de } from "../components/payment/MollieCardFiel
|
|
|
14
15
|
import { StripeCardFieldsForm as pe } from "../components/payment/StripeCardFieldsForm.js";
|
|
15
16
|
import { Button as S } from "../ui/button.js";
|
|
16
17
|
import { Card as y } from "../ui/card.js";
|
|
17
|
-
const he = {}, _e = () => he?.RB_PUBLIC_STRIPE_PUBLISHABLE_KEY?.trim() ?? "", fe = _e(), ye = 20, xe = 2500, ge = (t, u,
|
|
18
|
+
const he = {}, _e = () => he?.RB_PUBLIC_STRIPE_PUBLISHABLE_KEY?.trim() ?? "", fe = _e(), ye = 20, xe = 2500, ge = (t, u, c) => {
|
|
18
19
|
try {
|
|
19
|
-
return new Intl.NumberFormat(
|
|
20
|
+
return new Intl.NumberFormat(c, {
|
|
20
21
|
style: "currency",
|
|
21
22
|
currency: u.toUpperCase()
|
|
22
23
|
}).format(t / 100);
|
|
@@ -28,16 +29,16 @@ function ke({
|
|
|
28
29
|
clientSecret: t,
|
|
29
30
|
onSuccess: u
|
|
30
31
|
}) {
|
|
31
|
-
const { t:
|
|
32
|
+
const { t: c } = E(), _ = ee();
|
|
32
33
|
return /* @__PURE__ */ e(
|
|
33
34
|
pe,
|
|
34
35
|
{
|
|
35
36
|
requireEmail: !1,
|
|
36
|
-
submitLabel:
|
|
37
|
-
submittingLabel:
|
|
37
|
+
submitLabel: c("checkout_payment_authorize_button"),
|
|
38
|
+
submittingLabel: c("checkout_payment_authorizing_button"),
|
|
38
39
|
onSubmit: async ({ paymentMethodId: x }) => {
|
|
39
40
|
if (!_)
|
|
40
|
-
throw new Error(
|
|
41
|
+
throw new Error(c("secure_payment_link.errors.stripe_not_ready"));
|
|
41
42
|
const m = await _.confirmCardPayment(
|
|
42
43
|
t,
|
|
43
44
|
{
|
|
@@ -45,10 +46,10 @@ function ke({
|
|
|
45
46
|
}
|
|
46
47
|
);
|
|
47
48
|
if (m.error)
|
|
48
|
-
throw new Error(m.error.message ??
|
|
49
|
+
throw new Error(m.error.message ?? c("secure_payment_link.errors.payment_failed"));
|
|
49
50
|
const r = m.paymentIntent?.status;
|
|
50
51
|
if (r !== "succeeded" && r !== "processing" && r !== "requires_capture")
|
|
51
|
-
throw new Error(
|
|
52
|
+
throw new Error(c("secure_payment_link.errors.payment_failed"));
|
|
52
53
|
u();
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -57,42 +58,42 @@ function ke({
|
|
|
57
58
|
function be() {
|
|
58
59
|
const { t } = E();
|
|
59
60
|
return /* @__PURE__ */ n("div", { className: "flex min-h-48 items-center justify-center gap-2 text-sm text-slate-600", children: [
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
+
/* @__PURE__ */ e(te, { className: "size-4", "aria-hidden": "true" }),
|
|
61
62
|
/* @__PURE__ */ e("span", { children: t("secure_payment_link.form.loading_session") })
|
|
62
63
|
] });
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
const { t, i18n: u } = E(), { storeSlug:
|
|
65
|
+
function Fe() {
|
|
66
|
+
const { t, i18n: u } = E(), { storeSlug: c } = J(), _ = Q(), { clear: x } = me(), [m] = V(), [r, d] = f(null), [q, g] = f(!0), [I, k] = f(null), [D, X] = f(0), [A, U] = f(0), b = j(!1), l = j(null), p = m.get("checkout_session_id")?.trim() ?? "", $ = new URLSearchParams(m.toString());
|
|
66
67
|
$.delete("checkout_session_id");
|
|
67
|
-
const h = ue($).toString(), v = `/${
|
|
68
|
-
if (!
|
|
68
|
+
const h = ue($).toString(), v = `/${c ?? ""}/checkout${h ? `?${h}` : ""}`, P = `/${c ?? ""}/checkout/success${h ? `?${h}` : ""}`, R = async (a) => {
|
|
69
|
+
if (!c || !p)
|
|
69
70
|
throw new Error(t("checkout_payment_return_missing_session"));
|
|
70
71
|
const s = await ie(
|
|
71
72
|
oe,
|
|
72
73
|
{
|
|
73
|
-
storeSlug:
|
|
74
|
+
storeSlug: c,
|
|
74
75
|
checkoutSessionId: p,
|
|
75
76
|
returnSearch: h || void 0,
|
|
76
|
-
cardToken:
|
|
77
|
+
cardToken: a
|
|
77
78
|
}
|
|
78
79
|
);
|
|
79
80
|
return le.parse(s);
|
|
80
81
|
}, C = async () => {
|
|
81
82
|
b.current || (b.current = !0, G.success(t("checkout_success_toast")), await _(P, { replace: !0 }), x());
|
|
82
83
|
};
|
|
83
|
-
|
|
84
|
+
L(() => {
|
|
84
85
|
b.current = !1, l.current = null, d(null), g(!0), U(0);
|
|
85
|
-
}, [p]),
|
|
86
|
-
if (!
|
|
86
|
+
}, [p]), L(() => {
|
|
87
|
+
if (!c || !p) {
|
|
87
88
|
l.current = null, d(null), k(t("checkout_payment_return_missing_session")), g(!1);
|
|
88
89
|
return;
|
|
89
90
|
}
|
|
90
|
-
let
|
|
91
|
+
let a = !1;
|
|
91
92
|
const s = l.current === null;
|
|
92
93
|
return g(s), k(null), (async () => {
|
|
93
94
|
try {
|
|
94
95
|
const i = await R();
|
|
95
|
-
if (
|
|
96
|
+
if (a) return;
|
|
96
97
|
if (!i.success) {
|
|
97
98
|
l.current = null, d(null), k(i.message || t("checkout_payment_return_status_error"));
|
|
98
99
|
return;
|
|
@@ -101,31 +102,31 @@ function Be() {
|
|
|
101
102
|
const F = i.paymentStatus;
|
|
102
103
|
(F === "authorized" || F === "succeeded") && !b.current && await C();
|
|
103
104
|
} catch (i) {
|
|
104
|
-
if (
|
|
105
|
+
if (a) return;
|
|
105
106
|
console.error("Failed to fetch checkout payment session", i), l.current = null, d(null), k(t("checkout_payment_return_status_error"));
|
|
106
107
|
} finally {
|
|
107
|
-
!
|
|
108
|
+
!a && s && g(!1);
|
|
108
109
|
}
|
|
109
110
|
})(), () => {
|
|
110
|
-
|
|
111
|
+
a = !0;
|
|
111
112
|
};
|
|
112
|
-
}, [p, x, _, h, D,
|
|
113
|
+
}, [p, x, _, h, D, c, P, t]);
|
|
113
114
|
const o = r?.paymentStatus ?? "pending";
|
|
114
|
-
|
|
115
|
+
L(() => {
|
|
115
116
|
if (o !== "pending" || r?.providerType === "stripe_connect_oauth" || A >= ye || !r?.payment?.id) return;
|
|
116
|
-
const
|
|
117
|
+
const a = window.setTimeout(() => {
|
|
117
118
|
U((s) => s + 1), X((s) => s + 1);
|
|
118
119
|
}, xe);
|
|
119
120
|
return () => {
|
|
120
|
-
window.clearTimeout(
|
|
121
|
+
window.clearTimeout(a);
|
|
121
122
|
};
|
|
122
123
|
}, [o, A, r?.payment?.id, r?.providerType]);
|
|
123
|
-
const
|
|
124
|
-
const
|
|
125
|
-
return !
|
|
124
|
+
const z = K(() => {
|
|
125
|
+
const a = r?.stripePublishableKey?.trim() || fe;
|
|
126
|
+
return !a || !r?.stripeAccountId ? null : W(a, {
|
|
126
127
|
stripeAccount: r.stripeAccountId
|
|
127
128
|
});
|
|
128
|
-
}, [r?.stripeAccountId, r?.stripePublishableKey]),
|
|
129
|
+
}, [r?.stripeAccountId, r?.stripePublishableKey]), M = K(() => {
|
|
129
130
|
if (r?.clientSecret)
|
|
130
131
|
return {
|
|
131
132
|
clientSecret: r.clientSecret
|
|
@@ -149,11 +150,11 @@ function Be() {
|
|
|
149
150
|
] }),
|
|
150
151
|
/* @__PURE__ */ e(N, { to: v, children: /* @__PURE__ */ e(S, { variant: "outline", children: /* @__PURE__ */ e("span", { children: t("checkout_payment_return_back_to_checkout") }) }) })
|
|
151
152
|
] }) }) });
|
|
152
|
-
const B = typeof r.amountMinor == "number" && r.currency ? ge(r.amountMinor, r.currency, u.language) : null, w = o === "authorized" || o === "succeeded",
|
|
153
|
+
const B = typeof r.amountMinor == "number" && r.currency ? ge(r.amountMinor, r.currency, u.language) : null, w = o === "authorized" || o === "succeeded", T = o === "failed" || o === "cancelled", Y = w ? se : T ? ne : ce, H = w ? "text-success" : T ? "text-destructive" : "text-warning";
|
|
153
154
|
return /* @__PURE__ */ e("div", { className: "mx-auto max-w-5xl px-4 py-10 sm:px-6", children: /* @__PURE__ */ n("div", { className: "grid gap-6 lg:grid-cols-[1fr_1fr]", children: [
|
|
154
155
|
/* @__PURE__ */ e(y, { className: "border-slate-200 bg-white p-5 shadow-sm", children: /* @__PURE__ */ n("div", { className: "space-y-5", children: [
|
|
155
|
-
/* @__PURE__ */ n("div", { className: "inline-flex items-center gap-2 rounded-full border border-
|
|
156
|
-
/* @__PURE__ */ e(
|
|
156
|
+
/* @__PURE__ */ n("div", { className: "inline-flex items-center gap-2 rounded-full border border-success-border bg-success-subtle px-3 py-1 text-xs font-medium text-success", children: [
|
|
157
|
+
/* @__PURE__ */ e(re, { className: "h-3.5 w-3.5", "aria-hidden": "true" }),
|
|
157
158
|
/* @__PURE__ */ e("span", { children: t("secure_payment_link.secured_badge") })
|
|
158
159
|
] }),
|
|
159
160
|
/* @__PURE__ */ n("div", { children: [
|
|
@@ -171,7 +172,7 @@ function Be() {
|
|
|
171
172
|
] }) : null
|
|
172
173
|
] })
|
|
173
174
|
] }) }),
|
|
174
|
-
/* @__PURE__ */ e(y, { className: "border-slate-200 bg-white p-5 shadow-sm", children: w ||
|
|
175
|
+
/* @__PURE__ */ e(y, { className: "border-slate-200 bg-white p-5 shadow-sm", children: w || T ? /* @__PURE__ */ n("div", { className: "space-y-6 text-center", children: [
|
|
175
176
|
/* @__PURE__ */ e("div", { className: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-slate-100", children: /* @__PURE__ */ e(Y, { className: `h-6 w-6 ${H}`, "aria-hidden": "true" }) }),
|
|
176
177
|
/* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
177
178
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: t(`secure_payment_link.success_titles.${o}`) }) }),
|
|
@@ -191,8 +192,8 @@ function Be() {
|
|
|
191
192
|
testmode: r.testmode === !0,
|
|
192
193
|
submitLabel: t("checkout_payment_authorize_button"),
|
|
193
194
|
submittingLabel: t("checkout_payment_authorizing_button"),
|
|
194
|
-
onSubmit: async (
|
|
195
|
-
const s = await R(
|
|
195
|
+
onSubmit: async (a) => {
|
|
196
|
+
const s = await R(a);
|
|
196
197
|
if (!s.success)
|
|
197
198
|
throw new Error(s.message || t("secure_payment_link.errors.payment_failed"));
|
|
198
199
|
if (l.current = s, d(s), s.paymentStatus === "authorized" || s.paymentStatus === "succeeded") {
|
|
@@ -206,7 +207,7 @@ function Be() {
|
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
) : /* @__PURE__ */ e("p", { className: "text-sm text-destructive", children: /* @__PURE__ */ e("span", { children: t("secure_payment_link.errors.session_failed") }) })
|
|
209
|
-
] }) : r.providerType === "stripe_connect_oauth" ? !r.clientSecret || !
|
|
210
|
+
] }) : r.providerType === "stripe_connect_oauth" ? !r.clientSecret || !z || !M ? /* @__PURE__ */ e("p", { className: "text-sm text-destructive", children: /* @__PURE__ */ e("span", { children: t("secure_payment_link.errors.missing_publishable_key") }) }) : /* @__PURE__ */ e(Z, { stripe: z, options: M, children: /* @__PURE__ */ e(
|
|
210
211
|
ke,
|
|
211
212
|
{
|
|
212
213
|
clientSecret: r.clientSecret,
|
|
@@ -218,5 +219,5 @@ function Be() {
|
|
|
218
219
|
] }) });
|
|
219
220
|
}
|
|
220
221
|
export {
|
|
221
|
-
|
|
222
|
+
Fe as default
|
|
222
223
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import { useParams as m, useSearchParams as h, Link as a } from "@rpcbase/router";
|
|
3
|
-
import { CheckCircle2 as
|
|
3
|
+
import { CheckCircle2 as u, ArrowRight as d } from "lucide-react";
|
|
4
4
|
import { useTranslation as x } from "react-i18next";
|
|
5
5
|
import { resolveBookingSearchParamsFromSessionStorage as p } from "../lib/booking.js";
|
|
6
6
|
import { Button as o } from "../ui/button.js";
|
|
7
|
-
function
|
|
8
|
-
const { t: s } = x(), { storeSlug:
|
|
9
|
-
return /* @__PURE__ */ e("div", { className: "mx-auto max-w-3xl px-4 py-14 sm:px-6", children: /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */ e("div", { className: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-
|
|
7
|
+
function N() {
|
|
8
|
+
const { t: s } = x(), { storeSlug: c } = m(), [i] = h(), t = p(i, c).toString(), l = `/${c ?? ""}/booking${t ? `?${t}` : ""}`, n = `/${c ?? ""}${t ? `?${t}` : ""}`;
|
|
9
|
+
return /* @__PURE__ */ e("div", { className: "mx-auto max-w-3xl px-4 py-14 sm:px-6", children: /* @__PURE__ */ r("div", { className: "rounded-xl border border-slate-200 bg-white p-5 shadow-sm sm:p-6", children: [
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-success-subtle text-success", children: /* @__PURE__ */ e(u, { className: "h-6 w-6", "aria-hidden": "true" }) }),
|
|
11
11
|
/* @__PURE__ */ e("h1", { className: "mt-6 text-center text-2xl font-semibold tracking-tight text-slate-950", children: /* @__PURE__ */ e("span", { children: s("checkout_success_title") }) }),
|
|
12
12
|
/* @__PURE__ */ e("p", { className: "mt-2 text-center text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: s("checkout_success_description") }) }),
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */ e(a, { to:
|
|
15
|
-
/* @__PURE__ */ e(a, { to: n, children: /* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ r("div", { className: "mt-8 flex flex-col gap-3 sm:flex-row sm:justify-center", children: [
|
|
14
|
+
/* @__PURE__ */ e(a, { to: l, children: /* @__PURE__ */ e(o, { variant: "outline", className: "w-full sm:w-auto", children: /* @__PURE__ */ e("span", { children: s("checkout_success_back_to_products") }) }) }),
|
|
15
|
+
/* @__PURE__ */ e(a, { to: n, children: /* @__PURE__ */ r(o, { className: "w-full gap-2 sm:w-auto", children: [
|
|
16
16
|
/* @__PURE__ */ e("span", { children: s("checkout_success_back_home") }),
|
|
17
|
-
/* @__PURE__ */ e(
|
|
17
|
+
/* @__PURE__ */ e(d, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
18
18
|
] }) })
|
|
19
19
|
] })
|
|
20
20
|
] }) });
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
N as default
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContractSaleDocumentPage.d.ts","sourceRoot":"","sources":["../../src/pages/ContractSaleDocumentPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContractSaleDocumentPage.d.ts","sourceRoot":"","sources":["../../src/pages/ContractSaleDocumentPage.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAmC,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAsLnG,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEA,CAAA;AAYnB,MAAM,CAAC,OAAO,UAAU,wBAAwB,4CAqP/C"}
|
|
@@ -4,8 +4,9 @@ import { Menu as _ } from "@base-ui/react/menu";
|
|
|
4
4
|
import { toast as D } from "@rpcbase/client";
|
|
5
5
|
import { cn as K } from "@rpcbase/ui";
|
|
6
6
|
import { useLoaderData as B, useLocation as H, useNavigate as W, Link as I } from "@rpcbase/router";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { Spinner as J } from "../chunks/ui/dist/Spinner/index-SbbUxcsT.js";
|
|
8
|
+
import { ArrowLeft as $, Download as Q, ChevronDown as V } from "lucide-react";
|
|
9
|
+
import { useTranslation as j } from "react-i18next";
|
|
9
10
|
import { apiPost as X, apiGet as Y } from "../lib/apiCall.js";
|
|
10
11
|
import { ContractSaleDocument as M } from "../components/ContractSaleDocument/Invoice.js";
|
|
11
12
|
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Z, acceptContractSaleDocumentResponseSchema as ee, contractSaleDocumentApiSchema as te, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as ne, GET_CONTRACT_SALE_DOCUMENT_ROUTE as oe, getContractSaleDocumentResponseSchema as re } from "../lib/contractSaleDocumentApi.js";
|
|
@@ -47,9 +48,9 @@ const S = (e) => new URLSearchParams(e).get("pdf") === "1", C = (e) => v(new URL
|
|
|
47
48
|
}
|
|
48
49
|
return e.match(/filename="([^"]+)"/i)?.[1] ?? e.match(/filename=([^;]+)/i)?.[1]?.trim() ?? s;
|
|
49
50
|
}, A = (e) => /* @__PURE__ */ t(
|
|
50
|
-
|
|
51
|
+
J,
|
|
51
52
|
{
|
|
52
|
-
className: "
|
|
53
|
+
className: "size-4",
|
|
53
54
|
"aria-hidden": "true",
|
|
54
55
|
"data-testid": e
|
|
55
56
|
}
|
|
@@ -63,7 +64,7 @@ function me({
|
|
|
63
64
|
selectedLanguage: e,
|
|
64
65
|
onChange: n
|
|
65
66
|
}) {
|
|
66
|
-
const { t: o } =
|
|
67
|
+
const { t: o } = j(), [a, s] = b(!1), c = F.find((r) => r.code === e) ?? ue;
|
|
67
68
|
return /* @__PURE__ */ g(_.Root, { open: a, onOpenChange: s, children: [
|
|
68
69
|
/* @__PURE__ */ t(
|
|
69
70
|
_.Trigger,
|
|
@@ -80,7 +81,7 @@ function me({
|
|
|
80
81
|
"data-testid": "contract-sale-document-language-trigger",
|
|
81
82
|
children: [
|
|
82
83
|
/* @__PURE__ */ t("span", { children: c.code }),
|
|
83
|
-
/* @__PURE__ */ t(
|
|
84
|
+
/* @__PURE__ */ t(V, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
84
85
|
]
|
|
85
86
|
}
|
|
86
87
|
)
|
|
@@ -131,7 +132,7 @@ function me({
|
|
|
131
132
|
) })
|
|
132
133
|
] });
|
|
133
134
|
}
|
|
134
|
-
const
|
|
135
|
+
const Ce = (async ({ ctx: e, params: n }) => {
|
|
135
136
|
const o = typeof n.storeSlug == "string" ? n.storeSlug.trim().toLowerCase() : "", a = typeof n.referenceId == "string" ? n.referenceId.trim() : "", s = typeof n.saleDocumentId == "string" ? n.saleDocumentId.trim() : "", c = se(e), r = ce(e);
|
|
136
137
|
if (!o || !a || !s)
|
|
137
138
|
return {
|
|
@@ -182,20 +183,20 @@ const Se = (async ({ ctx: e, params: n }) => {
|
|
|
182
183
|
error: null
|
|
183
184
|
};
|
|
184
185
|
}
|
|
185
|
-
}),
|
|
186
|
+
}), z = (e) => {
|
|
186
187
|
const n = te.safeParse(e);
|
|
187
188
|
return n.success ? n.data : null;
|
|
188
189
|
};
|
|
189
|
-
function
|
|
190
|
-
const { t: e, i18n: n } =
|
|
191
|
-
|
|
192
|
-
), [E, R] = b(null), [
|
|
190
|
+
function Ee() {
|
|
191
|
+
const { t: e, i18n: n } = j(), o = B(), a = H(), s = W(), { storeSlug: c, referenceId: r, saleDocumentId: d } = o, p = o.pdfMode || S(a.search), [w, N] = b(
|
|
192
|
+
z(o.document)
|
|
193
|
+
), [E, R] = b(null), [y, k] = b(!1), [L, x] = b(o.error), f = C(a.search) ?? v(w?.language?.customer) ?? o.documentLanguage ?? v(n.language) ?? "fr", U = c && r && d ? de(c, r, d, f) : null, O = c && r && d ? ie(c, r, d, f) : "";
|
|
193
194
|
T(() => {
|
|
194
|
-
|
|
195
|
+
N(z(o.document)), x(o.error);
|
|
195
196
|
}, [o.document, o.error]), T(() => {
|
|
196
197
|
v(n.language) !== f && n.changeLanguage(f);
|
|
197
198
|
}, [n, f]);
|
|
198
|
-
const
|
|
199
|
+
const q = (u) => {
|
|
199
200
|
if (u === f)
|
|
200
201
|
return;
|
|
201
202
|
n.changeLanguage(u);
|
|
@@ -207,7 +208,7 @@ function Ce() {
|
|
|
207
208
|
if (!w)
|
|
208
209
|
return /* @__PURE__ */ t("div", { className: "mx-auto max-w-3xl px-4 py-14 sm:px-6", children: /* @__PURE__ */ t(ae, { className: "border-slate-200 bg-white p-5 shadow-sm sm:p-6", children: /* @__PURE__ */ g("div", { className: "space-y-4", children: [
|
|
209
210
|
/* @__PURE__ */ t("h1", { className: "text-lg font-semibold text-slate-950", children: /* @__PURE__ */ t("span", { children: e("docs_contract_sale_not_found_title") }) }),
|
|
210
|
-
/* @__PURE__ */ t("p", { className: "text-sm text-destructive", children: /* @__PURE__ */ t("span", { children:
|
|
211
|
+
/* @__PURE__ */ t("p", { className: "text-sm text-destructive", children: /* @__PURE__ */ t("span", { children: L ?? e("docs_contract_sale_load_error") }) }),
|
|
211
212
|
/* @__PURE__ */ t(I, { to: `/${c ?? ""}`, children: /* @__PURE__ */ g(P, { className: "gap-2", children: [
|
|
212
213
|
/* @__PURE__ */ t($, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
213
214
|
/* @__PURE__ */ t("span", { children: e("docs_contract_sale_back_to_storefront") })
|
|
@@ -223,7 +224,7 @@ function Ce() {
|
|
|
223
224
|
}
|
|
224
225
|
) });
|
|
225
226
|
const G = async () => {
|
|
226
|
-
if (!U ||
|
|
227
|
+
if (!U || y)
|
|
227
228
|
return;
|
|
228
229
|
k(!0);
|
|
229
230
|
const u = D.loading(e("docs_contract_sale_preparing_pdf"), {
|
|
@@ -257,12 +258,12 @@ function Ce() {
|
|
|
257
258
|
/* @__PURE__ */ t("span", { children: e("docs_contract_sale_back_to_storefront") })
|
|
258
259
|
] }),
|
|
259
260
|
/* @__PURE__ */ g("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
260
|
-
|
|
261
|
+
L ? /* @__PURE__ */ t("span", { className: "max-w-[min(44vw,24rem)] truncate text-right text-sm text-destructive", children: L }) : E === "signature" ? /* @__PURE__ */ t("span", { className: "max-w-[min(44vw,24rem)] truncate text-right text-sm text-slate-600", children: e("docs_contract_sale_submitting_signature") }) : E === "acceptance" ? /* @__PURE__ */ t("span", { className: "max-w-[min(44vw,24rem)] truncate text-right text-sm text-slate-600", children: e("docs_contract_sale_submitting_acceptance") }) : null,
|
|
261
262
|
/* @__PURE__ */ t(
|
|
262
263
|
me,
|
|
263
264
|
{
|
|
264
265
|
selectedLanguage: f,
|
|
265
|
-
onChange:
|
|
266
|
+
onChange: q
|
|
266
267
|
}
|
|
267
268
|
),
|
|
268
269
|
U ? /* @__PURE__ */ g(
|
|
@@ -271,14 +272,14 @@ function Ce() {
|
|
|
271
272
|
variant: "outline",
|
|
272
273
|
size: "sm",
|
|
273
274
|
type: "button",
|
|
274
|
-
disabled:
|
|
275
|
+
disabled: y,
|
|
275
276
|
onClick: () => {
|
|
276
277
|
G();
|
|
277
278
|
},
|
|
278
279
|
className: "h-9 bg-background/80 px-3",
|
|
279
280
|
"data-testid": "contract-sale-document-download-pdf",
|
|
280
281
|
children: [
|
|
281
|
-
|
|
282
|
+
y ? A("contract-sale-document-download-spinner") : /* @__PURE__ */ t(Q, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
282
283
|
/* @__PURE__ */ t("span", { className: "hidden sm:inline", children: e("docs_contract_sale_download_pdf") }),
|
|
283
284
|
/* @__PURE__ */ t("span", { className: "sm:hidden", children: "PDF" })
|
|
284
285
|
]
|
|
@@ -318,12 +319,12 @@ function Ce() {
|
|
|
318
319
|
if (!l.success) {
|
|
319
320
|
const h = l.message ?? i;
|
|
320
321
|
if (l.document)
|
|
321
|
-
return
|
|
322
|
+
return N(l.document), x(h), l.document;
|
|
322
323
|
throw new Error(h);
|
|
323
324
|
}
|
|
324
325
|
if (!l.document)
|
|
325
326
|
throw new Error(i);
|
|
326
|
-
return
|
|
327
|
+
return N(l.document), x(null), l.document;
|
|
327
328
|
} catch (m) {
|
|
328
329
|
console.error("Failed to submit storefront contract sale document acceptance", m);
|
|
329
330
|
const l = m instanceof Error && m.message.trim().length > 0 ? m.message : i;
|
|
@@ -337,6 +338,6 @@ function Ce() {
|
|
|
337
338
|
] });
|
|
338
339
|
}
|
|
339
340
|
export {
|
|
340
|
-
|
|
341
|
-
|
|
341
|
+
Ee as default,
|
|
342
|
+
Ce as loader
|
|
342
343
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"AA6GA,MAAM,CAAC,OAAO,UAAU,QAAQ,
|
|
1
|
+
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"AA6GA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CA2qB/B"}
|
package/dist/pages/HomePage.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useMemo as h, useState as b, useRef as je, useEffect as Ue } from "reac
|
|
|
3
3
|
import { useMediaQuery as Ve } from "@rpcbase/client";
|
|
4
4
|
import { useParams as ze, useLocation as Ye, useSearchParams as Qe, useNavigate as We, Link as M } from "@rpcbase/router";
|
|
5
5
|
import { cn as m } from "@rpcbase/ui";
|
|
6
|
-
import { Clock as Ke, MapPin as Ge, ShieldCheck as Je, Umbrella as Xe, Truck as Ze, ArrowRight as z, Bike as
|
|
6
|
+
import { Clock as Ke, MapPin as Ge, ShieldCheck as Je, Umbrella as Xe, Truck as Ze, ArrowRight as z, Bike as ce } from "lucide-react";
|
|
7
7
|
import { useTranslation as et } from "react-i18next";
|
|
8
8
|
import W from "../chunks/assets/playground-hero-preview.svg-DNbSwXV5.js";
|
|
9
9
|
import { getAvailabilityVariant as tt } from "../lib/utils.js";
|
|
@@ -12,11 +12,11 @@ import { getLocalizedValue as A } from "../localization.js";
|
|
|
12
12
|
import { AboutSection as rt } from "../components/AboutSection/index.js";
|
|
13
13
|
import { BikeProductCard as st } from "../components/BikeProductCard/index.js";
|
|
14
14
|
import { ContactSection as it } from "../components/ContactSection/index.js";
|
|
15
|
-
import { ProductPriceBadge as
|
|
15
|
+
import { ProductPriceBadge as de } from "../components/ProductPriceBadge/index.js";
|
|
16
16
|
import { ProductWarningNotice as lt } from "../components/ProductWarningNotice/index.js";
|
|
17
17
|
import { resolveStorefrontCancellationPolicyTeaserTier as nt, StorefrontCancellationPolicyNotice as ot } from "../components/StorefrontCancellationPolicyNotice/index.js";
|
|
18
|
-
import { TestimonialsSection as
|
|
19
|
-
import { BookingPeriodProvider as
|
|
18
|
+
import { TestimonialsSection as ct } from "../components/TestimonialsSection/index.js";
|
|
19
|
+
import { BookingPeriodProvider as dt } from "../components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
20
20
|
import { BookingStartDateField as mt } from "../components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
21
21
|
import { BookingStartTimeField as ht } from "../components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
22
22
|
import { BookingEndDateField as pt } from "../components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
@@ -38,12 +38,12 @@ const ue = (a) => String(a).padStart(2, "0"), fe = "text-2xs font-semibold upper
|
|
|
38
38
|
const i = a.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
39
39
|
if (!i)
|
|
40
40
|
return;
|
|
41
|
-
const l = Number(i[1]), p = Number(i[2]),
|
|
42
|
-
if (!(Number.isNaN(o.getTime()) || o.getFullYear() !== l || o.getMonth() !== p - 1 || o.getDate() !==
|
|
41
|
+
const l = Number(i[1]), p = Number(i[2]), c = Number(i[3]), o = new Date(l, p - 1, c);
|
|
42
|
+
if (!(Number.isNaN(o.getTime()) || o.getFullYear() !== l || o.getMonth() !== p - 1 || o.getDate() !== c))
|
|
43
43
|
return o;
|
|
44
44
|
}, Ct = (a) => {
|
|
45
45
|
const i = a.length > 0 ? a : [W];
|
|
46
|
-
return Array.from({ length: Pt }, (l, p) => Array.from({ length: ve }, (
|
|
46
|
+
return Array.from({ length: Pt }, (l, p) => Array.from({ length: ve }, (c, o) => {
|
|
47
47
|
const u = p * ve + o;
|
|
48
48
|
return {
|
|
49
49
|
aspectRatio: Q[(u + p) % Q.length] ?? Q[0],
|
|
@@ -51,30 +51,30 @@ const ue = (a) => String(a).padStart(2, "0"), fe = "text-2xs font-semibold upper
|
|
|
51
51
|
};
|
|
52
52
|
}));
|
|
53
53
|
};
|
|
54
|
-
function
|
|
55
|
-
const { t: a, i18n: i } = et(), { storeSlug: l } = ze(), p = Ye(), { storefrontConfiguration:
|
|
54
|
+
function ca() {
|
|
55
|
+
const { t: a, i18n: i } = et(), { storeSlug: l } = ze(), p = Ye(), { storefrontConfiguration: c } = yt(), o = c.workspace?.workspaceLanguage, { bikes: u, accessories: K } = wt(), [R] = Qe(), _e = We(), f = h(
|
|
56
56
|
() => ut(R, l),
|
|
57
57
|
[R, l]
|
|
58
58
|
), x = h(() => at(l), [l]), ke = h(
|
|
59
|
-
() => ft(
|
|
60
|
-
[
|
|
61
|
-
),
|
|
62
|
-
() => xt(
|
|
63
|
-
[
|
|
64
|
-
), N = h(() => E(
|
|
65
|
-
() => E(
|
|
66
|
-
[
|
|
67
|
-
), v =
|
|
68
|
-
() => vt(f,
|
|
69
|
-
[
|
|
59
|
+
() => ft(c),
|
|
60
|
+
[c]
|
|
61
|
+
), d = h(
|
|
62
|
+
() => xt(c),
|
|
63
|
+
[c]
|
|
64
|
+
), N = h(() => E(d.start_date), [d.start_date]), ye = h(
|
|
65
|
+
() => E(d.end_date) ?? N,
|
|
66
|
+
[d.end_date, N]
|
|
67
|
+
), v = c.settings.fulfillmentModes.includes("delivery"), G = c.settings.deliveryDisabledReason.trim(), we = !!nt(c.bookingEngine.cancellationPolicy), q = h(
|
|
68
|
+
() => vt(f, d),
|
|
69
|
+
[d, f]
|
|
70
70
|
), [w, J] = b(
|
|
71
71
|
() => q.fulfillment === "delivery" && v ? "delivery" : "pickup"
|
|
72
72
|
), [L, Se] = b(
|
|
73
73
|
() => E(f.get("start_date")) ?? N
|
|
74
|
-
), [F, Pe] = b(() => f.get("start_time") ??
|
|
74
|
+
), [F, Pe] = b(() => f.get("start_time") ?? d.start_time), [O, Ce] = b(() => {
|
|
75
75
|
const t = E(f.get("start_date")) ?? N;
|
|
76
76
|
return E(f.get("end_date")) ?? t ?? ye;
|
|
77
|
-
}), [$, De] = b(() => f.get("end_time") ??
|
|
77
|
+
}), [$, De] = b(() => f.get("end_time") ?? d.end_time), [S, I] = b(() => q.start_address), [P, H] = b(() => q.end_address), j = je(null), Ae = h(() => u.slice(0, 4), [u]), { heroMode: X } = kt(), C = X === "vertical_marquee_hero", _ = X === "booking_bar_overlay_hero" || C, Z = Ve("(min-width: 1024px)"), Ee = _t(l), Be = h(
|
|
78
78
|
() => ({
|
|
79
79
|
startDate: a("booking_start_date"),
|
|
80
80
|
pickStartDate: a("booking_start_date"),
|
|
@@ -90,15 +90,15 @@ function da() {
|
|
|
90
90
|
return bt(new URLSearchParams(), {
|
|
91
91
|
fulfillment: w === "delivery" && v ? "delivery" : "pickup",
|
|
92
92
|
start_date: Ne(n),
|
|
93
|
-
start_time: F ||
|
|
93
|
+
start_time: F || d.start_time,
|
|
94
94
|
end_date: Ne(s),
|
|
95
|
-
end_time: $ ||
|
|
95
|
+
end_time: $ || d.end_time,
|
|
96
96
|
start_address: S,
|
|
97
97
|
end_address: P
|
|
98
98
|
});
|
|
99
99
|
}, [
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
d.end_time,
|
|
101
|
+
d.start_time,
|
|
102
102
|
N,
|
|
103
103
|
v,
|
|
104
104
|
P,
|
|
@@ -149,16 +149,16 @@ function da() {
|
|
|
149
149
|
/* @__PURE__ */ e("h1", { className: "mt-4 text-3xl font-semibold tracking-tight sm:text-4xl", children: /* @__PURE__ */ e("span", { children: a("hero_title", { fallback: x.hero_title }) }) }),
|
|
150
150
|
/* @__PURE__ */ e("p", { className: "mt-3 text-sm text-slate-700 sm:text-base", children: /* @__PURE__ */ e("span", { children: a("hero_description", { fallback: x.hero_description }) }) }),
|
|
151
151
|
/* @__PURE__ */ e("div", { className: m("mt-6", !_ && "rounded-xl border bg-white/70 p-3"), children: /* @__PURE__ */ r("ul", { className: m("space-y-3", _ && "space-y-2"), children: [
|
|
152
|
-
/* @__PURE__ */ e(ot, { policy:
|
|
152
|
+
/* @__PURE__ */ e(ot, { policy: c.bookingEngine.cancellationPolicy }),
|
|
153
153
|
/* @__PURE__ */ r("li", { className: m("flex items-start gap-3", !_ && we && "border-t border-slate-200/70 pt-3"), children: [
|
|
154
|
-
/* @__PURE__ */ e(Je, { className: "mt-0.5 h-5 w-5 text-
|
|
154
|
+
/* @__PURE__ */ e(Je, { className: "mt-0.5 h-5 w-5 text-success", "aria-hidden": "true" }),
|
|
155
155
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-0.5", children: [
|
|
156
156
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-slate-950", children: /* @__PURE__ */ e("span", { children: a("feature_secure_payment_title") }) }),
|
|
157
157
|
/* @__PURE__ */ e("p", { className: "text-xs text-slate-600", children: /* @__PURE__ */ e("span", { children: a("feature_secure_payment_description") }) })
|
|
158
158
|
] })
|
|
159
159
|
] }),
|
|
160
|
-
|
|
161
|
-
/* @__PURE__ */ e(Xe, { className: "mt-0.5 h-5 w-5 text-
|
|
160
|
+
/* @__PURE__ */ r("li", { className: m("flex items-start gap-3", !_ && "border-t border-slate-200/70 pt-3"), children: [
|
|
161
|
+
/* @__PURE__ */ e(Xe, { className: "mt-0.5 h-5 w-5 text-success", "aria-hidden": "true" }),
|
|
162
162
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-0.5", children: [
|
|
163
163
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-slate-950", children: /* @__PURE__ */ e("span", { children: a("feature_guarantee_insurance_title") }) }),
|
|
164
164
|
/* @__PURE__ */ e("p", { className: "text-xs text-slate-600", children: /* @__PURE__ */ e("span", { children: a("feature_guarantee_insurance_description") }) })
|
|
@@ -177,7 +177,7 @@ function da() {
|
|
|
177
177
|
showSubmitButton: n = !1,
|
|
178
178
|
submitButtonClassName: s
|
|
179
179
|
}) => /* @__PURE__ */ e(
|
|
180
|
-
|
|
180
|
+
dt,
|
|
181
181
|
{
|
|
182
182
|
...Me,
|
|
183
183
|
labelClassName: fe,
|
|
@@ -436,7 +436,7 @@ function da() {
|
|
|
436
436
|
{
|
|
437
437
|
className: m("relative block aspect-[1618/1000] overflow-hidden rounded-xl", D.className),
|
|
438
438
|
style: D.style,
|
|
439
|
-
children: g ? /* @__PURE__ */ e("img", { src: g, alt: k, className: "absolute inset-0 h-full w-full object-contain p-1", loading: "lazy" }) : /* @__PURE__ */ e("span", { className: "absolute inset-0 flex items-center justify-center text-slate-400", children: /* @__PURE__ */ e(
|
|
439
|
+
children: g ? /* @__PURE__ */ e("img", { src: g, alt: k, className: "absolute inset-0 h-full w-full object-contain p-1", loading: "lazy" }) : /* @__PURE__ */ e("span", { className: "absolute inset-0 flex items-center justify-center text-slate-400", children: /* @__PURE__ */ e(ce, { className: "h-8 w-8", "aria-hidden": "true" }) })
|
|
440
440
|
}
|
|
441
441
|
)
|
|
442
442
|
}
|
|
@@ -451,7 +451,7 @@ function da() {
|
|
|
451
451
|
children: /* @__PURE__ */ e("span", { children: k })
|
|
452
452
|
}
|
|
453
453
|
),
|
|
454
|
-
/* @__PURE__ */ e(
|
|
454
|
+
/* @__PURE__ */ e(de, { prices: t.prices, className: "self-start" }),
|
|
455
455
|
/* @__PURE__ */ e("span", { className: "line-clamp-2 text-xs text-slate-600", children: y })
|
|
456
456
|
] }),
|
|
457
457
|
/* @__PURE__ */ r("span", { className: "flex flex-wrap items-center gap-x-2 gap-y-1", children: [
|
|
@@ -503,7 +503,7 @@ function da() {
|
|
|
503
503
|
{
|
|
504
504
|
className: m("relative aspect-[1618/1000] overflow-hidden rounded-xl", g.className),
|
|
505
505
|
style: g.style,
|
|
506
|
-
children: y ? /* @__PURE__ */ e("img", { src: y, alt: n, className: "absolute inset-0 h-full w-full object-contain p-1", loading: "lazy" }) : /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center text-slate-400", children: /* @__PURE__ */ e(
|
|
506
|
+
children: y ? /* @__PURE__ */ e("img", { src: y, alt: n, className: "absolute inset-0 h-full w-full object-contain p-1", loading: "lazy" }) : /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center text-slate-400", children: /* @__PURE__ */ e(ce, { className: "h-8 w-8", "aria-hidden": "true" }) })
|
|
507
507
|
}
|
|
508
508
|
),
|
|
509
509
|
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
@@ -511,15 +511,15 @@ function da() {
|
|
|
511
511
|
/* @__PURE__ */ e("p", { className: "line-clamp-2 text-xs text-slate-600", children: /* @__PURE__ */ e("span", { children: s }) }),
|
|
512
512
|
/* @__PURE__ */ e(lt, { warning: k, className: "mt-1" })
|
|
513
513
|
] }),
|
|
514
|
-
/* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-2", children: /* @__PURE__ */ e(
|
|
514
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-2", children: /* @__PURE__ */ e(de, { prices: t.prices }) })
|
|
515
515
|
] }, t.id);
|
|
516
516
|
}) })
|
|
517
517
|
] }),
|
|
518
518
|
/* @__PURE__ */ e(rt, { preset: x }),
|
|
519
|
-
/* @__PURE__ */ e(
|
|
519
|
+
/* @__PURE__ */ e(ct, {}),
|
|
520
520
|
/* @__PURE__ */ e(it, { preset: x, storeSlug: l ?? "" })
|
|
521
521
|
] });
|
|
522
522
|
}
|
|
523
523
|
export {
|
|
524
|
-
|
|
524
|
+
ca as default
|
|
525
525
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentLinkPage.d.ts","sourceRoot":"","sources":["../../src/pages/PaymentLinkPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaymentLinkPage.d.ts","sourceRoot":"","sources":["../../src/pages/PaymentLinkPage.tsx"],"names":[],"mappings":"AA4DA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4DA,CAAA;AA0CnB,MAAM,CAAC,OAAO,UAAU,eAAe,4CAsStC"}
|