@loczer/storefront-sdk 0.177.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.js +36 -36
- 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,8 +1,8 @@
|
|
|
1
1
|
import { jsx as y, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { Component as J, useRef as
|
|
2
|
+
import { Component as J, useRef as C, useState as B, useEffect as g } from "react";
|
|
3
3
|
import { COORDS as q } from "../static/strings-lR4Uv4ze.js";
|
|
4
4
|
import { cn as L } from "../lib/utils-B6zhukbw.js";
|
|
5
|
-
import { DEFAULT_MAP_SKELETON_COLOR as K } from "./constants-
|
|
5
|
+
import { DEFAULT_MAP_SKELETON_COLOR as K } from "./constants-DlJEohkl.js";
|
|
6
6
|
let M = null;
|
|
7
7
|
const U = async () => (M || (M = Promise.all([
|
|
8
8
|
// import("mapbox-gl/dist/esm-min/mapbox-gl.js"),
|
|
@@ -17,7 +17,7 @@ const U = async () => (M || (M = Promise.all([
|
|
|
17
17
|
markers: c = [],
|
|
18
18
|
routeGeoJson: s,
|
|
19
19
|
polygonGeoJson: m,
|
|
20
|
-
routeEndpointsToFetch:
|
|
20
|
+
routeEndpointsToFetch: E,
|
|
21
21
|
className: F,
|
|
22
22
|
style: k,
|
|
23
23
|
interactive: I = !0,
|
|
@@ -28,7 +28,7 @@ const U = async () => (M || (M = Promise.all([
|
|
|
28
28
|
onMapMoveOrZoom: S,
|
|
29
29
|
skeletonColor: H = K
|
|
30
30
|
}) => {
|
|
31
|
-
const v =
|
|
31
|
+
const v = C(null), w = C(null), [e, R] = B(null), j = C([]), A = C(n), [z, x] = B(null), [D, O] = B(!1), N = C(!1), P = L("relative overflow-clip w-full h-full", F);
|
|
32
32
|
return g(() => {
|
|
33
33
|
if (!v.current || e) return;
|
|
34
34
|
let o = !1, r = null;
|
|
@@ -167,9 +167,9 @@ const U = async () => (M || (M = Promise.all([
|
|
|
167
167
|
}
|
|
168
168
|
}));
|
|
169
169
|
}, [e, m]), g(() => {
|
|
170
|
-
if (!e || !e.isStyleLoaded() || !
|
|
170
|
+
if (!e || !e.isStyleLoaded() || !E || E.coordinates.length < 2)
|
|
171
171
|
return;
|
|
172
|
-
const { profile: o = "cycling", coordinates: r } =
|
|
172
|
+
const { profile: o = "cycling", coordinates: r } = E, t = "route-fetched", d = "route-layer-fetched";
|
|
173
173
|
return (async () => {
|
|
174
174
|
if (!i) return;
|
|
175
175
|
const a = r.map((p) => {
|
|
@@ -203,7 +203,7 @@ const U = async () => (M || (M = Promise.all([
|
|
|
203
203
|
})(), () => {
|
|
204
204
|
e && e.isStyleLoaded() && (e.getLayer(d) && e.removeLayer(d), e.getSource(t) && e.removeSource(t));
|
|
205
205
|
};
|
|
206
|
-
}, [e,
|
|
206
|
+
}, [e, E]), z ? /* @__PURE__ */ y("div", { className: P, style: k, children: /* @__PURE__ */ y("div", { className: L("flex h-full w-full items-center justify-center text-center text-sm text-gray-500"), children: z }) }) : /* @__PURE__ */ _("div", { className: P, style: k, children: [
|
|
207
207
|
/* @__PURE__ */ y(
|
|
208
208
|
"div",
|
|
209
209
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import { lazy as b, useRef as N, useState as h, useEffect as k, Suspense as C } from "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
import { isAutomationRuntime as
|
|
5
|
-
import { DEFAULT_MAP_SKELETON_COLOR as f } from "./Map/constants-
|
|
6
|
-
const
|
|
3
|
+
import { cn as I } from "./lib/utils-B6zhukbw.js";
|
|
4
|
+
import { isAutomationRuntime as x } from "./lib/isAutomationRuntime-Cu2aNI6_.js";
|
|
5
|
+
import { DEFAULT_MAP_SKELETON_COLOR as f } from "./Map/constants-DlJEohkl.js";
|
|
6
|
+
const E = ({ className: t, style: n, color: o }) => /* @__PURE__ */ y("div", { className: I("relative overflow-clip w-full h-full", t), style: n, children: [
|
|
7
7
|
/* @__PURE__ */ e(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
@@ -13,10 +13,10 @@ const x = ({ className: t, style: n, color: o }) => /* @__PURE__ */ y("div", { c
|
|
|
13
13
|
}
|
|
14
14
|
),
|
|
15
15
|
/* @__PURE__ */ e("div", { className: "h-full w-full transition-opacity duration-500 ease-out pointer-events-none opacity-0" })
|
|
16
|
-
] }), O = b(() => import("./Map/MapContent-
|
|
16
|
+
] }), O = b(() => import("./Map/MapContent-DUHBHUBa.js")), A = (t) => {
|
|
17
17
|
const n = N(null), [o, p] = h(!1);
|
|
18
18
|
k(() => {
|
|
19
|
-
if (
|
|
19
|
+
if (x())
|
|
20
20
|
return;
|
|
21
21
|
let u = !1, s = null, r = null, i = null;
|
|
22
22
|
const a = () => {
|
|
@@ -36,7 +36,7 @@ const x = ({ className: t, style: n, color: o }) => /* @__PURE__ */ y("div", { c
|
|
|
36
36
|
};
|
|
37
37
|
}, [o]);
|
|
38
38
|
const c = /* @__PURE__ */ e(
|
|
39
|
-
|
|
39
|
+
E,
|
|
40
40
|
{
|
|
41
41
|
className: t.className,
|
|
42
42
|
style: t.style,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "../lib/utils-B6zhukbw.js";
|
|
3
|
+
function o({ className: r, ...a }) {
|
|
4
|
+
return /* @__PURE__ */ e(
|
|
5
|
+
"span",
|
|
6
|
+
{
|
|
7
|
+
className: s("relative inline-flex size-4 shrink-0 items-center justify-center", r),
|
|
8
|
+
"data-slot": "spinner",
|
|
9
|
+
...a,
|
|
10
|
+
children: /* @__PURE__ */ n(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
"aria-hidden": "true",
|
|
14
|
+
className: "size-full animate-spin",
|
|
15
|
+
fill: "none",
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ e(
|
|
19
|
+
"circle",
|
|
20
|
+
{
|
|
21
|
+
className: "opacity-20",
|
|
22
|
+
cx: "12",
|
|
23
|
+
cy: "12",
|
|
24
|
+
"data-spinner-layer": "track",
|
|
25
|
+
r: "9",
|
|
26
|
+
stroke: "currentColor",
|
|
27
|
+
strokeWidth: "2.5"
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ e(
|
|
31
|
+
"path",
|
|
32
|
+
{
|
|
33
|
+
d: "M12 3a9 9 0 0 1 9 9",
|
|
34
|
+
"data-spinner-layer": "arc",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
strokeLinecap: "round",
|
|
37
|
+
strokeWidth: "2.5"
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
o as Spinner
|
|
48
|
+
};
|
|
@@ -20,10 +20,10 @@ function ke({
|
|
|
20
20
|
product: a,
|
|
21
21
|
onOpenChange: p,
|
|
22
22
|
getVariantAvailabilityLabel: u,
|
|
23
|
-
isVariantOutOfCapacity:
|
|
23
|
+
isVariantOutOfCapacity: c,
|
|
24
24
|
onAddVariant: g
|
|
25
25
|
}) {
|
|
26
|
-
const { t: s, i18n: n } = Z(), r = K(T),
|
|
26
|
+
const { t: s, i18n: n } = Z(), r = K(T), d = ie(), [P, v] = O({});
|
|
27
27
|
if (q(() => {
|
|
28
28
|
!a || !o || v(
|
|
29
29
|
(a.productVariants ?? []).reduce((t, l) => (t[l.id] = 1, t), {})
|
|
@@ -35,7 +35,7 @@ function ke({
|
|
|
35
35
|
...b,
|
|
36
36
|
[t]: Math.max(1, Math.floor(l))
|
|
37
37
|
}));
|
|
38
|
-
}, y = m(a.name, n.language,
|
|
38
|
+
}, y = m(a.name, n.language, d), z = m(a.description, n.language, d), w = m(a.warning, n.language, d), k = typeof a.images?.[0] == "string" ? a.images[0].trim() : "", _ = ae(a.primaryImageStyle), h = te(a.availabilityStatus), f = a.features?.slice(0, 4) ?? [], C = a.productVariants ?? [], A = C.some((t) => !!J(t, "size")), M = s(A ? "product_size_label" : "product_variant_label");
|
|
39
39
|
return /* @__PURE__ */ e(G, { open: o, onOpenChange: p, children: /* @__PURE__ */ e(
|
|
40
40
|
W,
|
|
41
41
|
{
|
|
@@ -73,8 +73,8 @@ function ke({
|
|
|
73
73
|
!r && f.length > 0 ? /* @__PURE__ */ i("div", { className: "grid gap-2", children: [
|
|
74
74
|
/* @__PURE__ */ e("p", { className: "text-sm font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: s("product_features_title") }) }),
|
|
75
75
|
/* @__PURE__ */ e("ul", { className: "grid gap-1.5 text-sm text-slate-700", children: f.map((t, l) => /* @__PURE__ */ i("li", { className: "inline-flex items-start gap-2", children: [
|
|
76
|
-
/* @__PURE__ */ e(I, { className: "mt-0.5 h-4 w-4 text-
|
|
77
|
-
/* @__PURE__ */ e("span", { children: m(t, n.language,
|
|
76
|
+
/* @__PURE__ */ e(I, { className: "mt-0.5 h-4 w-4 text-success", "aria-hidden": "true" }),
|
|
77
|
+
/* @__PURE__ */ e("span", { children: m(t, n.language, d) })
|
|
78
78
|
] }, `${a.id}-${l}`)) })
|
|
79
79
|
] }) : null,
|
|
80
80
|
r ? null : /* @__PURE__ */ e(B, { warning: w })
|
|
@@ -90,14 +90,14 @@ function ke({
|
|
|
90
90
|
/* @__PURE__ */ e(V, { className: "h-4 w-4 shrink-0 transition-transform group-open:rotate-45", "aria-hidden": "true" })
|
|
91
91
|
] }),
|
|
92
92
|
/* @__PURE__ */ e("div", { className: "border-t border-slate-200 px-3 py-3", children: /* @__PURE__ */ e("ul", { className: "grid gap-1.5 text-sm text-slate-700", children: f.map((t, l) => /* @__PURE__ */ i("li", { className: "inline-flex items-start gap-2", children: [
|
|
93
|
-
/* @__PURE__ */ e(I, { className: "mt-0.5 h-4 w-4 text-
|
|
94
|
-
/* @__PURE__ */ e("span", { children: m(t, n.language,
|
|
93
|
+
/* @__PURE__ */ e(I, { className: "mt-0.5 h-4 w-4 text-success", "aria-hidden": "true" }),
|
|
94
|
+
/* @__PURE__ */ e("span", { children: m(t, n.language, d) })
|
|
95
95
|
] }, `${a.id}-mobile-${l}`)) }) })
|
|
96
96
|
] }) : null,
|
|
97
97
|
r ? /* @__PURE__ */ e(B, { warning: w }) : null,
|
|
98
98
|
/* @__PURE__ */ e("p", { className: "text-2xs font-medium uppercase tracking-[0.18em] text-slate-500", children: /* @__PURE__ */ e("span", { children: M }) }),
|
|
99
99
|
/* @__PURE__ */ e("div", { className: "grid gap-2", children: C.map((t) => {
|
|
100
|
-
const l = `storefront-booking-bike-dialog-variant-option-${a.id}-${t.id}`.toLowerCase(), { label: b, description: $ } = ee(t), D = P[t.id] ?? 1, Q =
|
|
100
|
+
const l = `storefront-booking-bike-dialog-variant-option-${a.id}-${t.id}`.toLowerCase(), { label: b, description: $ } = ee(t), D = P[t.id] ?? 1, Q = c?.(t.id) === !0, L = u?.(t.id) ?? null;
|
|
101
101
|
return /* @__PURE__ */ i(
|
|
102
102
|
"div",
|
|
103
103
|
{
|
|
@@ -165,7 +165,7 @@ function le({
|
|
|
165
165
|
increaseAriaLabel: a,
|
|
166
166
|
onQuantityChange: p,
|
|
167
167
|
quantity: u,
|
|
168
|
-
testIdPrefix:
|
|
168
|
+
testIdPrefix: c
|
|
169
169
|
}) {
|
|
170
170
|
const g = (s, n) => {
|
|
171
171
|
const r = n?.metaKey || n?.ctrlKey ? 10 : 1;
|
|
@@ -180,7 +180,7 @@ function le({
|
|
|
180
180
|
size: "icon",
|
|
181
181
|
className: "h-9 w-9 font-semibold",
|
|
182
182
|
"aria-label": o,
|
|
183
|
-
"data-testid": `${
|
|
183
|
+
"data-testid": `${c}-decrement`,
|
|
184
184
|
onClick: (s) => g(-1, s),
|
|
185
185
|
children: /* @__PURE__ */ e("span", { children: "-" })
|
|
186
186
|
}
|
|
@@ -193,7 +193,7 @@ function le({
|
|
|
193
193
|
value: u,
|
|
194
194
|
className: "h-9 w-12 text-center",
|
|
195
195
|
"aria-live": "polite",
|
|
196
|
-
"data-testid": `${
|
|
196
|
+
"data-testid": `${c}-value`
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
199
|
/* @__PURE__ */ e(
|
|
@@ -204,7 +204,7 @@ function le({
|
|
|
204
204
|
size: "icon",
|
|
205
205
|
className: "h-9 w-9 font-semibold",
|
|
206
206
|
"aria-label": a,
|
|
207
|
-
"data-testid": `${
|
|
207
|
+
"data-testid": `${c}-increment`,
|
|
208
208
|
onClick: (s) => g(1, s),
|
|
209
209
|
children: /* @__PURE__ */ e("span", { children: "+" })
|
|
210
210
|
}
|
|
@@ -357,7 +357,7 @@ function ut({
|
|
|
357
357
|
{
|
|
358
358
|
ref: W,
|
|
359
359
|
className: "fixed bottom-0 left-0 right-0 z-30 flex items-center justify-center border-t border-border bg-background/70 p-4 backdrop-blur-xl backdrop-saturate-125 supports-[backdrop-filter]:bg-background/55",
|
|
360
|
-
children: oe ? /* @__PURE__ */ R("div", { className: "flex items-center gap-2 px-6 py-3 text-sm font-semibold text-
|
|
360
|
+
children: oe ? /* @__PURE__ */ R("div", { className: "flex items-center gap-2 px-6 py-3 text-sm font-semibold text-success", children: [
|
|
361
361
|
/* @__PURE__ */ a(Ne, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
362
362
|
/* @__PURE__ */ a("p", { className: "text-center", children: oe })
|
|
363
363
|
] }) : /* @__PURE__ */ a(
|
|
@@ -5,9 +5,9 @@ import { cn as v } from "@rpcbase/ui";
|
|
|
5
5
|
import { CheckCircle2 as w, Info as d } from "lucide-react";
|
|
6
6
|
import { useTranslation as T } from "react-i18next";
|
|
7
7
|
import { Button as D } from "../../ui/button.js";
|
|
8
|
-
const C = 0.95, m = (a) => a.tiers.length === 0 ? [] : [...a.tiers].sort((
|
|
8
|
+
const C = 0.95, m = (a) => a.tiers.length === 0 ? [] : [...a.tiers].sort((s, t) => s.upToHours - t.upToHours), H = (a) => m(a).find((t) => t.refundPercentage >= C) ?? null, R = (a, s) => {
|
|
9
9
|
try {
|
|
10
|
-
return new Intl.NumberFormat(
|
|
10
|
+
return new Intl.NumberFormat(s, {
|
|
11
11
|
style: "percent",
|
|
12
12
|
maximumFractionDigits: 2
|
|
13
13
|
}).format(a);
|
|
@@ -17,17 +17,17 @@ const C = 0.95, m = (a) => a.tiers.length === 0 ? [] : [...a.tiers].sort((l, t)
|
|
|
17
17
|
};
|
|
18
18
|
function O({
|
|
19
19
|
policy: a,
|
|
20
|
-
className:
|
|
20
|
+
className: s
|
|
21
21
|
}) {
|
|
22
22
|
const { t, i18n: p } = T(), [u, r] = f(!1), h = m(a), o = H(a);
|
|
23
23
|
if (!o)
|
|
24
24
|
return null;
|
|
25
|
-
const c = (
|
|
26
|
-
const i = Math.max(1, Math.round(
|
|
25
|
+
const c = (l) => {
|
|
26
|
+
const i = Math.max(1, Math.round(l));
|
|
27
27
|
return i >= 72 && i % 24 === 0 ? t("cancellation_policy_duration_days", { count: i / 24 }) : t("cancellation_policy_duration_hours", { count: i });
|
|
28
28
|
};
|
|
29
|
-
return /* @__PURE__ */ n("li", { className: v("flex items-start gap-3",
|
|
30
|
-
/* @__PURE__ */ e(w, { className: "mt-0.5 h-5 w-5 shrink-0 text-
|
|
29
|
+
return /* @__PURE__ */ n("li", { className: v("flex items-start gap-3", s), "data-testid": "storefront-cancellation-policy-notice", children: [
|
|
30
|
+
/* @__PURE__ */ e(w, { className: "mt-0.5 h-5 w-5 shrink-0 text-success", "aria-hidden": "true" }),
|
|
31
31
|
/* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: [
|
|
32
32
|
/* @__PURE__ */ n("div", { className: "flex min-w-0 items-start gap-1.5", children: [
|
|
33
33
|
/* @__PURE__ */ e("p", { className: "min-w-0 text-sm font-medium text-slate-950", children: /* @__PURE__ */ e("span", { children: t("cancellation_policy_teaser", { duration: c(o.upToHours) }) }) }),
|
|
@@ -59,18 +59,18 @@ function O({
|
|
|
59
59
|
/* @__PURE__ */ e(b, { className: "text-left text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: t("cancellation_policy_modal_description") }) })
|
|
60
60
|
] })
|
|
61
61
|
] }) }),
|
|
62
|
-
/* @__PURE__ */ e("div", { className: "overflow-y-auto px-5 py-5 sm:px-6", children: /* @__PURE__ */ e("dl", { className: "grid gap-3", children: h.map((
|
|
62
|
+
/* @__PURE__ */ e("div", { className: "overflow-y-auto px-5 py-5 sm:px-6", children: /* @__PURE__ */ e("dl", { className: "grid gap-3", children: h.map((l) => /* @__PURE__ */ n(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
65
|
className: "rounded-lg border border-slate-200 bg-slate-50 px-4 py-3",
|
|
66
66
|
children: [
|
|
67
|
-
/* @__PURE__ */ e("dt", { className: "text-sm font-medium text-slate-950", children: /* @__PURE__ */ e("span", { children: t("cancellation_policy_modal_tier_deadline", { duration: c(
|
|
67
|
+
/* @__PURE__ */ e("dt", { className: "text-sm font-medium text-slate-950", children: /* @__PURE__ */ e("span", { children: t("cancellation_policy_modal_tier_deadline", { duration: c(l.upToHours) }) }) }),
|
|
68
68
|
/* @__PURE__ */ e("dd", { className: "mt-1 text-sm text-slate-600", children: /* @__PURE__ */ e("span", { children: t("cancellation_policy_modal_tier_refund", {
|
|
69
|
-
percentage: R(
|
|
69
|
+
percentage: R(l.refundPercentage, p.language)
|
|
70
70
|
}) }) })
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
|
-
`${
|
|
73
|
+
`${l.upToHours}-${l.refundPercentage}`
|
|
74
74
|
)) }) }),
|
|
75
75
|
/* @__PURE__ */ e(y, { className: "border-t border-slate-200 px-5 py-4 sm:px-6", children: /* @__PURE__ */ e(
|
|
76
76
|
D,
|
|
@@ -14,12 +14,12 @@ function ee({
|
|
|
14
14
|
itemCount: _,
|
|
15
15
|
totalPerDayMinor: v,
|
|
16
16
|
estimatedDays: p,
|
|
17
|
-
estimatedTotalMinor:
|
|
17
|
+
estimatedTotalMinor: u,
|
|
18
18
|
discountedEstimatedTotalMinor: w,
|
|
19
19
|
discountAmountMinor: i,
|
|
20
20
|
lateReturnSurchargeMinor: c,
|
|
21
21
|
couponCode: k,
|
|
22
|
-
durationLabel:
|
|
22
|
+
durationLabel: h,
|
|
23
23
|
title: j,
|
|
24
24
|
description: x,
|
|
25
25
|
checkoutPath: f,
|
|
@@ -96,14 +96,14 @@ function ee({
|
|
|
96
96
|
/* @__PURE__ */ e("p", { className: "text-slate-700", children: /* @__PURE__ */ e("span", { children: t("cart_total_per_day") }) }),
|
|
97
97
|
/* @__PURE__ */ e("p", { className: "font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: r(v, s.language) }) })
|
|
98
98
|
] }),
|
|
99
|
-
typeof p == "number" && typeof
|
|
99
|
+
typeof p == "number" && typeof u == "number" ? /* @__PURE__ */ l(F, { children: [
|
|
100
100
|
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 text-sm", children: [
|
|
101
101
|
/* @__PURE__ */ e("p", { className: "text-slate-700", children: /* @__PURE__ */ e("span", { children: t("checkout_estimated_days", { count: p }) }) }),
|
|
102
|
-
|
|
102
|
+
h ? /* @__PURE__ */ e(m, { variant: "outline", className: "border-slate-200 bg-white text-slate-700", children: /* @__PURE__ */ e("span", { children: h }) }) : null
|
|
103
103
|
] }),
|
|
104
104
|
typeof i == "number" && i > 0 ? /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 text-sm", children: [
|
|
105
|
-
/* @__PURE__ */ e("p", { className: "text-
|
|
106
|
-
/* @__PURE__ */ e("p", { className: "font-semibold text-
|
|
105
|
+
/* @__PURE__ */ e("p", { className: "text-success", children: /* @__PURE__ */ e("span", { children: t("checkout_coupon_discount", { code: k ?? "" }) }) }),
|
|
106
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-success", children: /* @__PURE__ */ e("span", { children: `-${r(i, s.language)}` }) })
|
|
107
107
|
] }) : null,
|
|
108
108
|
typeof c == "number" && c > 0 ? /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 text-sm", children: [
|
|
109
109
|
/* @__PURE__ */ e("p", { className: "text-slate-700", children: /* @__PURE__ */ e("span", { children: t("checkout_late_return_fee") }) }),
|
|
@@ -111,7 +111,7 @@ function ee({
|
|
|
111
111
|
] }) : null,
|
|
112
112
|
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 text-sm", children: [
|
|
113
113
|
/* @__PURE__ */ e("p", { className: "text-slate-700", children: /* @__PURE__ */ e("span", { children: t("checkout_estimated_total") }) }),
|
|
114
|
-
/* @__PURE__ */ e("p", { className: "font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: r(w ??
|
|
114
|
+
/* @__PURE__ */ e("p", { className: "font-semibold text-slate-950", children: /* @__PURE__ */ e("span", { children: r(w ?? u, s.language) }) })
|
|
115
115
|
] })
|
|
116
116
|
] }) : null,
|
|
117
117
|
/* @__PURE__ */ l("div", { className: "grid gap-2", children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TestimonialsSection/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TestimonialsSection/index.tsx"],"names":[],"mappings":"AA+KA,eAAO,MAAM,mBAAmB,sDAmP/B,CAAA"}
|