@loczer/storefront-sdk 0.213.0 → 0.214.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/StorefrontContext.d.ts +18 -0
- package/dist/StorefrontContext.d.ts.map +1 -1
- package/dist/StorefrontProvider.d.ts +9 -0
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/chunks/pkg/ui/dist/Drawer/{index-CSvSVP_J.js → index-Dp62Y2o5.js} +10 -7
- package/dist/chunks/pkg/ui/dist/{ResponsiveDialog-BVwhTZQo.js → ResponsiveDialog-BJ0RG6gh.js} +1 -1
- package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -1
- package/dist/components/BookingBikeVariantDialog/index.js +22 -27
- package/dist/components/Footer/index.d.ts +2 -1
- package/dist/components/Footer/index.d.ts.map +1 -1
- package/dist/components/Footer/index.js +64 -58
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +1 -0
- package/dist/components/PlatformFooter/index.js +6 -6
- package/dist/components/StorefrontCancellationPolicyNotice/index.js +1 -1
- package/dist/components/StorefrontInsuranceNotice/index.js +1 -1
- package/dist/components/StorefrontPopupMessages/index.js +1 -1
- package/dist/i18n/en.d.ts +6 -3
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +6 -3
- package/dist/i18n/fr.d.ts +6 -3
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +6 -3
- package/dist/index.d.ts +64 -7
- package/dist/index.js +69 -68
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +1 -0
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +1 -0
- package/dist/pages/RentalTermsPage.d.ts +2 -0
- package/dist/pages/RentalTermsPage.d.ts.map +1 -0
- package/dist/pages/RentalTermsPage.js +52 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +14 -10
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +19 -0
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +39 -35
- package/package.json +1 -1
|
@@ -236,6 +236,15 @@ export declare function useStorefrontConfig(): {
|
|
|
236
236
|
autoTranslated?: boolean | undefined;
|
|
237
237
|
}> | undefined;
|
|
238
238
|
} | undefined;
|
|
239
|
+
information?: {
|
|
240
|
+
rentalTerms?: {
|
|
241
|
+
version: 1;
|
|
242
|
+
json: string;
|
|
243
|
+
html: string;
|
|
244
|
+
text: string;
|
|
245
|
+
} | undefined;
|
|
246
|
+
rentalTermsUpdatedAt?: string | null | undefined;
|
|
247
|
+
} | undefined;
|
|
239
248
|
modules?: {
|
|
240
249
|
reviews?: {
|
|
241
250
|
enabled: boolean;
|
|
@@ -463,6 +472,15 @@ export declare function useStorefrontConfig(): {
|
|
|
463
472
|
autoTranslated?: boolean | undefined;
|
|
464
473
|
}> | undefined;
|
|
465
474
|
} | undefined;
|
|
475
|
+
information?: {
|
|
476
|
+
rentalTerms?: {
|
|
477
|
+
version: 1;
|
|
478
|
+
json: string;
|
|
479
|
+
html: string;
|
|
480
|
+
text: string;
|
|
481
|
+
} | undefined;
|
|
482
|
+
rentalTermsUpdatedAt?: string | null | undefined;
|
|
483
|
+
} | undefined;
|
|
466
484
|
modules?: {
|
|
467
485
|
reviews?: {
|
|
468
486
|
enabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorefrontContext.d.ts","sourceRoot":"","sources":["../src/StorefrontContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAGzG,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,uBAAuB,EAAE,uBAAuB,CAAA;IAChD,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,WAAW,EAAE,gBAAgB,EAAE,CAAA;IAC/B,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,kBAAkB,EAAE,gBAAgB,EAAE,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,sBAAsB,CAAA;IAChC,WAAW,EAAE,0BAA0B,EAAE,CAAA;IACzC,mBAAmB,EAAE,0BAA0B,EAAE,CAAA;CAClD,CAAA;AAUD,eAAO,MAAM,iBAAiB,6CAEmC,CAAA;AAKjE,wBAAgB,aAAa,2BAQ5B;AAED,wBAAgB,qBAAqB,uCAEpC;AAED,wBAAgB,mBAAmB
|
|
1
|
+
{"version":3,"file":"StorefrontContext.d.ts","sourceRoot":"","sources":["../src/StorefrontContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAGzG,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,uBAAuB,EAAE,uBAAuB,CAAA;IAChD,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,WAAW,EAAE,gBAAgB,EAAE,CAAA;IAC/B,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,kBAAkB,EAAE,gBAAgB,EAAE,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,sBAAsB,CAAA;IAChC,WAAW,EAAE,0BAA0B,EAAE,CAAA;IACzC,mBAAmB,EAAE,0BAA0B,EAAE,CAAA;CAClD,CAAA;AAUD,eAAO,MAAM,iBAAiB,6CAEmC,CAAA;AAKjE,wBAAgB,aAAa,2BAQ5B;AAED,wBAAgB,qBAAqB,uCAEpC;AAED,wBAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlC;AAED,wBAAgB,8BAA8B,IAAI,sBAAsB,CAGvE;AAED,wBAAgB,qBAAqB;;;EAGpC;AAED,wBAAgB,4BAA4B;;;EAG3C;AAED,wBAAgB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGvC"}
|
|
@@ -217,6 +217,15 @@ export declare const loader: ({ ctx, params }: import('@rpcbase/client').LoaderA
|
|
|
217
217
|
autoTranslated?: boolean | undefined;
|
|
218
218
|
}> | undefined;
|
|
219
219
|
} | undefined;
|
|
220
|
+
information?: {
|
|
221
|
+
rentalTerms?: {
|
|
222
|
+
version: 1;
|
|
223
|
+
json: string;
|
|
224
|
+
html: string;
|
|
225
|
+
text: string;
|
|
226
|
+
} | undefined;
|
|
227
|
+
rentalTermsUpdatedAt?: string | null | undefined;
|
|
228
|
+
} | undefined;
|
|
220
229
|
modules?: {
|
|
221
230
|
reviews?: {
|
|
222
231
|
enabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorefrontProvider.d.ts","sourceRoot":"","sources":["../src/StorefrontProvider.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"StorefrontProvider.d.ts","sourceRoot":"","sources":["../src/StorefrontProvider.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiFA,CAAA;AAGnB,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAqBzC;AAED,cAAc,qBAAqB,CAAA"}
|
|
@@ -69,11 +69,14 @@ var h = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.Backdrop
|
|
|
69
69
|
}));
|
|
70
70
|
h.displayName = "DrawerOverlay";
|
|
71
71
|
var g = r.forwardRef(({ className: u, children: d, overlayClassName: f, showHandle: m = !0, ...g }, _) => {
|
|
72
|
-
let v = r.useContext(c), y = r.useContext(l);
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
let v = r.useContext(c), y = r.useContext(l), [b, x] = r.useState(y.open);
|
|
73
|
+
r.useEffect(() => {
|
|
74
|
+
y.open && x(!0);
|
|
75
|
+
}, [y.open]), t(y.open && y.modal === !0);
|
|
76
|
+
let S = e("bg-background pointer-events-auto fixed z-50 flex flex-col gap-4 shadow-lg outline-none", "group/drawer-content data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=top]:slide-in-from-top data-[vaul-drawer-direction=top]:data-[closed]:slide-out-to-top", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:max-h-[95dvh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=bottom]:slide-in-from-bottom data-[vaul-drawer-direction=bottom]:data-[closed]:slide-out-to-bottom", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:slide-in-from-right data-[vaul-drawer-direction=right]:data-[closed]:slide-out-to-right data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:slide-in-from-left data-[vaul-drawer-direction=left]:data-[closed]:slide-out-to-left data-[vaul-drawer-direction=left]:sm:max-w-sm", u), C = m ? /* @__PURE__ */ a("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }) : null;
|
|
75
77
|
return /* @__PURE__ */ a(n, {
|
|
76
78
|
enabled: y.open,
|
|
79
|
+
keepMounted: b,
|
|
77
80
|
inline: /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("div", {
|
|
78
81
|
"data-slot": "drawer-overlay",
|
|
79
82
|
className: e("pointer-events-auto fixed inset-0 z-50 bg-black/80 outline-none data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0", f),
|
|
@@ -87,11 +90,11 @@ var g = r.forwardRef(({ className: u, children: d, overlayClassName: f, showHand
|
|
|
87
90
|
role: "dialog",
|
|
88
91
|
"aria-modal": "true",
|
|
89
92
|
"data-vaul-drawer-direction": v,
|
|
90
|
-
className:
|
|
93
|
+
className: S,
|
|
91
94
|
"data-open": "",
|
|
92
95
|
"data-state": "open",
|
|
93
96
|
...g,
|
|
94
|
-
children: [
|
|
97
|
+
children: [C, /* @__PURE__ */ a("div", {
|
|
95
98
|
"data-slot": "drawer-content-inner",
|
|
96
99
|
children: d
|
|
97
100
|
})]
|
|
@@ -107,13 +110,13 @@ var g = r.forwardRef(({ className: u, children: d, overlayClassName: f, showHand
|
|
|
107
110
|
role: "dialog",
|
|
108
111
|
"aria-modal": "true",
|
|
109
112
|
"data-vaul-drawer-direction": v,
|
|
110
|
-
className:
|
|
113
|
+
className: S,
|
|
111
114
|
render: (e, t) => /* @__PURE__ */ a("div", {
|
|
112
115
|
...e,
|
|
113
116
|
"data-state": t.open ? "open" : "closed"
|
|
114
117
|
}),
|
|
115
118
|
...g,
|
|
116
|
-
children: [
|
|
119
|
+
children: [C, /* @__PURE__ */ a(s.Content, {
|
|
117
120
|
"data-slot": "drawer-content-inner",
|
|
118
121
|
children: d
|
|
119
122
|
})]
|
package/dist/chunks/pkg/ui/dist/{ResponsiveDialog-BVwhTZQo.js → ResponsiveDialog-BJ0RG6gh.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn as e } from "./lib/utils-DXB19bzk.js";
|
|
2
2
|
import { Dialog as t, DialogClose as n, DialogContent as r, DialogDescription as i, DialogFooter as a, DialogHeader as o, DialogTitle as s, DialogTrigger as c } from "./Dialog-CczmPDwY.js";
|
|
3
|
-
import { Drawer as l, DrawerClose as u, DrawerContent as d, DrawerDescription as f, DrawerFooter as p, DrawerHeader as m, DrawerTitle as h, DrawerTrigger as g } from "./Drawer/index-
|
|
3
|
+
import { Drawer as l, DrawerClose as u, DrawerContent as d, DrawerDescription as f, DrawerFooter as p, DrawerHeader as m, DrawerTitle as h, DrawerTrigger as g } from "./Drawer/index-Dp62Y2o5.js";
|
|
4
4
|
import { useMediaQuery as _ } from "./lib/useMediaQuery-CrZFwD6A.js";
|
|
5
5
|
import * as v from "react";
|
|
6
6
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BookingBikeVariantDialog/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAiB3D,KAAK,iCAAiC,GAAG,iBAAiB,GAAG;IAC3D,kBAAkB,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,cAAc,CAAA;CAChE,CAAA;AAWD,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,iCAAiC,GAAG,IAAI,CAAA;IACjD,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,2BAA2B,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;IAClE,sBAAsB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;IACvD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5D,CAAA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,2BAA2B,EAC3B,sBAAsB,EACtB,WAAmB,EACnB,YAAY,GACb,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BookingBikeVariantDialog/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAiB3D,KAAK,iCAAiC,GAAG,iBAAiB,GAAG;IAC3D,kBAAkB,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,cAAc,CAAA;CAChE,CAAA;AAWD,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,iCAAiC,GAAG,IAAI,CAAA;IACjD,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,2BAA2B,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;IAClE,sBAAsB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;IACvD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5D,CAAA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,2BAA2B,EAC3B,sBAAsB,EACtB,WAAmB,EACnB,YAAY,GACb,EAAE,6BAA6B,kDA2O/B"}
|
|
@@ -4,7 +4,7 @@ import { getAvailabilityVariant as i } from "../../lib/utils.js";
|
|
|
4
4
|
import { Badge as a } from "../../ui/badge.js";
|
|
5
5
|
import { Button as o } from "../../ui/button.js";
|
|
6
6
|
import { useStorefrontWorkspaceLanguage as s } from "../../StorefrontContext.js";
|
|
7
|
-
import { RESPONSIVE_DIALOG_MOBILE_MEDIA_QUERY as c, ResponsiveDialog as l, ResponsiveDialogContent as u, ResponsiveDialogDescription as d, ResponsiveDialogFooter as f, ResponsiveDialogHeader as p, ResponsiveDialogTitle as m } from "../../chunks/pkg/ui/dist/ResponsiveDialog-
|
|
7
|
+
import { RESPONSIVE_DIALOG_MOBILE_MEDIA_QUERY as c, ResponsiveDialog as l, ResponsiveDialogContent as u, ResponsiveDialogDescription as d, ResponsiveDialogFooter as f, ResponsiveDialogHeader as p, ResponsiveDialogTitle as m } from "../../chunks/pkg/ui/dist/ResponsiveDialog-BJ0RG6gh.js";
|
|
8
8
|
import { Input as h } from "../../ui/input.js";
|
|
9
9
|
import { ProductWarningNotice as g } from "../ProductWarningNotice/index.js";
|
|
10
10
|
import { ProductPriceBadge as _ } from "../ProductPriceBadge/index.js";
|
|
@@ -30,7 +30,7 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
|
|
|
30
30
|
...n,
|
|
31
31
|
[e]: t
|
|
32
32
|
}));
|
|
33
|
-
}, G = r(j.name, z.language, V), K = r(j.description, z.language, V), q = r(j.warning, z.language, V), J = typeof j.images?.[0] == "string" ? j.images[0].trim() : "", Y = v(j.primaryImageStyle), X = i(j.availabilityStatus), Z = j.features
|
|
33
|
+
}, G = r(j.name, z.language, V), K = r(j.description, z.language, V), q = r(j.warning, z.language, V), J = typeof j.images?.[0] == "string" ? j.images[0].trim() : "", Y = v(j.primaryImageStyle), X = i(j.availabilityStatus), Z = j.features ?? [], Q = Z.slice(0, 4), $ = j.productVariants ?? [], ee = $.some((t) => !!e(t, "size")) ? R("product_size_label") : R("product_variant_label");
|
|
34
34
|
return /* @__PURE__ */ x(l, {
|
|
35
35
|
open: h,
|
|
36
36
|
onOpenChange: N,
|
|
@@ -41,10 +41,10 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
|
|
|
41
41
|
mobileClassName: "max-h-[95dvh] gap-0",
|
|
42
42
|
children: /* @__PURE__ */ S("div", {
|
|
43
43
|
"data-testid": "storefront-booking-bike-dialog",
|
|
44
|
-
className: "flex max-h-[
|
|
44
|
+
className: "flex max-h-[calc(95dvh-1.5rem)] min-h-0 flex-col sm:max-h-[92dvh]",
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ S(p, {
|
|
47
|
-
className: "border-b border-slate-200 px-5 py-4 text-left sm:px-6",
|
|
47
|
+
className: "shrink-0 border-b border-slate-200 px-5 py-4 text-left sm:px-6",
|
|
48
48
|
children: [/* @__PURE__ */ x(m, {
|
|
49
49
|
className: "text-left text-lg font-semibold text-slate-950",
|
|
50
50
|
children: /* @__PURE__ */ x("span", { children: G })
|
|
@@ -54,7 +54,8 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
|
|
|
54
54
|
})]
|
|
55
55
|
}),
|
|
56
56
|
/* @__PURE__ */ x("div", {
|
|
57
|
-
className: "overflow-y-auto",
|
|
57
|
+
className: "min-h-0 overflow-y-auto",
|
|
58
|
+
"data-testid": "storefront-booking-bike-dialog-scroll",
|
|
58
59
|
children: /* @__PURE__ */ S("div", {
|
|
59
60
|
className: "grid gap-5 px-5 py-5 sm:grid-cols-[minmax(0,0.92fr)_minmax(0,1.08fr)] sm:px-6",
|
|
60
61
|
children: [/* @__PURE__ */ S("div", {
|
|
@@ -89,14 +90,14 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
|
|
|
89
90
|
openOnHover: j.kind !== "accessory"
|
|
90
91
|
})]
|
|
91
92
|
}),
|
|
92
|
-
!B &&
|
|
93
|
+
!B && Q.length > 0 ? /* @__PURE__ */ S("div", {
|
|
93
94
|
className: "grid gap-2",
|
|
94
95
|
children: [/* @__PURE__ */ x("p", {
|
|
95
96
|
className: "text-sm font-semibold text-slate-950",
|
|
96
97
|
children: /* @__PURE__ */ x("span", { children: R("product_features_title") })
|
|
97
98
|
}), /* @__PURE__ */ x("ul", {
|
|
98
99
|
className: "grid gap-1.5 text-sm text-slate-700",
|
|
99
|
-
children:
|
|
100
|
+
children: Q.map((e, t) => /* @__PURE__ */ S("li", {
|
|
100
101
|
className: "inline-flex items-start gap-2",
|
|
101
102
|
children: [/* @__PURE__ */ x(D, {
|
|
102
103
|
className: "mt-0.5 h-4 w-4 text-success",
|
|
@@ -121,39 +122,33 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
|
|
|
121
122
|
})]
|
|
122
123
|
}) : null,
|
|
123
124
|
B && Z.length > 0 ? /* @__PURE__ */ S("details", {
|
|
124
|
-
className: "
|
|
125
|
+
className: "w-full",
|
|
125
126
|
children: [/* @__PURE__ */ S("summary", {
|
|
126
|
-
className: "flex cursor-pointer list-none items-center justify-between gap-
|
|
127
|
+
className: "flex cursor-pointer list-none items-center justify-between gap-2 border-b border-slate-200 pb-2 text-left text-base font-semibold text-slate-950 transition-colors hover:text-primary [&::-webkit-details-marker]:hidden",
|
|
127
128
|
children: [/* @__PURE__ */ x("span", { children: R("product_features_title") }), /* @__PURE__ */ x(k, {
|
|
128
|
-
className: "h-4 w-4 shrink-0
|
|
129
|
+
className: "h-4 w-4 shrink-0",
|
|
129
130
|
"aria-hidden": "true"
|
|
130
131
|
})]
|
|
131
132
|
}), /* @__PURE__ */ x("div", {
|
|
132
|
-
className: "
|
|
133
|
+
className: "pt-3",
|
|
133
134
|
children: /* @__PURE__ */ x("ul", {
|
|
134
|
-
className: "
|
|
135
|
-
children: Z.map((e, t) => /* @__PURE__ */
|
|
136
|
-
className: "inline-flex items-start gap-2",
|
|
137
|
-
children: [/* @__PURE__ */ x(D, {
|
|
138
|
-
className: "mt-0.5 h-4 w-4 text-success",
|
|
139
|
-
"aria-hidden": "true"
|
|
140
|
-
}), /* @__PURE__ */ x("span", { children: r(e, z.language, V) })]
|
|
141
|
-
}, `${j.id}-mobile-${t}`))
|
|
135
|
+
className: "list-inside list-disc space-y-1 text-base text-slate-600",
|
|
136
|
+
children: Z.map((e, t) => /* @__PURE__ */ x("li", { children: /* @__PURE__ */ x("span", { children: r(e, z.language, V) }) }, `${j.id}-mobile-${t}`))
|
|
142
137
|
})
|
|
143
138
|
})]
|
|
144
139
|
}) : null,
|
|
145
140
|
B ? /* @__PURE__ */ x(g, { warning: q }) : null,
|
|
146
141
|
/* @__PURE__ */ x("p", {
|
|
147
142
|
className: "text-2xs font-medium uppercase tracking-[0.18em] text-slate-500",
|
|
148
|
-
children: /* @__PURE__ */ x("span", { children:
|
|
143
|
+
children: /* @__PURE__ */ x("span", { children: ee })
|
|
149
144
|
}),
|
|
150
145
|
/* @__PURE__ */ x("div", {
|
|
151
|
-
className: "grid gap-2",
|
|
152
|
-
children:
|
|
146
|
+
className: "grid sm:gap-2",
|
|
147
|
+
children: $.map((e) => {
|
|
153
148
|
let r = `storefront-booking-bike-dialog-variant-option-${j.id}-${e.id}`.toLowerCase(), { label: i, description: s } = t(e), c = n(e), l = H[e.id] ?? "1", u = F?.(e.id) === !0, d = P?.(e.id) ?? null;
|
|
154
149
|
return /* @__PURE__ */ S("div", {
|
|
155
150
|
"data-testid": r,
|
|
156
|
-
className: T("flex items-center justify-between gap-
|
|
151
|
+
className: T("flex items-center justify-between gap-3 border-b border-slate-100 py-1.5 last:border-b-0", "sm:rounded-2xl sm:border sm:border-slate-200 sm:bg-slate-50 sm:px-3 sm:py-2.5 sm:last:border-b"),
|
|
157
152
|
children: [/* @__PURE__ */ S("div", {
|
|
158
153
|
className: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
159
154
|
children: [
|
|
@@ -181,7 +176,7 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
|
|
|
181
176
|
}) : null
|
|
182
177
|
]
|
|
183
178
|
}), /* @__PURE__ */ S("div", {
|
|
184
|
-
className: "flex shrink-0 items-center gap-2",
|
|
179
|
+
className: "flex shrink-0 items-center sm:gap-2",
|
|
185
180
|
children: [/* @__PURE__ */ x(M, {
|
|
186
181
|
quantity: l,
|
|
187
182
|
ariaLabel: R("quantity_label"),
|
|
@@ -190,7 +185,7 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
|
|
|
190
185
|
}), /* @__PURE__ */ S(o, {
|
|
191
186
|
type: "button",
|
|
192
187
|
size: "sm",
|
|
193
|
-
className: "shrink-0 gap-1.5 rounded-xl px-3",
|
|
188
|
+
className: T("h-8 shrink-0 gap-1 rounded-l-none px-2 text-xs", "sm:h-9 sm:gap-1.5 sm:rounded-xl sm:px-3 sm:text-sm"),
|
|
194
189
|
"data-testid": `storefront-booking-bike-dialog-variant-add-${j.id}-${e.id}`.toLowerCase(),
|
|
195
190
|
disabled: I,
|
|
196
191
|
onClick: () => {
|
|
@@ -210,7 +205,7 @@ function j({ open: h, product: j, onOpenChange: N, getVariantAvailabilityLabel:
|
|
|
210
205
|
})
|
|
211
206
|
}),
|
|
212
207
|
/* @__PURE__ */ x(f, {
|
|
213
|
-
className: "border-t border-slate-200 px-5 py-4 sm:px-6",
|
|
208
|
+
className: "shrink-0 border-t border-slate-200 px-5 py-4 sm:px-6",
|
|
214
209
|
children: /* @__PURE__ */ x(o, {
|
|
215
210
|
type: "button",
|
|
216
211
|
variant: "outline",
|
|
@@ -237,7 +232,7 @@ function M({ ariaLabel: e, onQuantityChange: t, quantity: n, testIdPrefix: r })
|
|
|
237
232
|
t(n ? String(A(n)) : "");
|
|
238
233
|
},
|
|
239
234
|
onBlur: () => t(String(A(n))),
|
|
240
|
-
className: "h-
|
|
235
|
+
className: T("h-8 w-9 rounded-r-none border-r-0 px-1 text-center text-sm focus-visible:z-10", "sm:h-9 sm:w-16 sm:rounded-md sm:border-r sm:px-3 sm:text-base"),
|
|
241
236
|
"aria-label": e,
|
|
242
237
|
"data-testid": `${r}-value`
|
|
243
238
|
})
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { StorefrontConfiguration, StorefrontShop } from '../../storefrontSchemas';
|
|
2
2
|
type FooterProps = {
|
|
3
|
+
storeSlug?: string;
|
|
3
4
|
shop?: StorefrontShop;
|
|
4
5
|
whatsappHref?: string;
|
|
5
6
|
whatsappPhoneDisplay?: string;
|
|
6
7
|
openingHours?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHours"];
|
|
7
8
|
openingHoursOverrides?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHoursOverrides"];
|
|
8
9
|
};
|
|
9
|
-
export declare function Footer({ shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function Footer({ storeSlug, shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAWtF,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,CAAC,EAAE,uBAAuB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,CAAA;IAC/E,qBAAqB,CAAC,EAAE,uBAAuB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,uBAAuB,CAAC,CAAA;CAClG,CAAA;AAyCD,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,qBAAqB,GACtB,EAAE,WAAW,2CAoJb"}
|
|
@@ -3,30 +3,31 @@ import n from "../../chunks/assets/whatsapp-m5e0vjnZ.js";
|
|
|
3
3
|
import { MISSING_SHOP_ADDRESS as r, MISSING_SHOP_EMAIL as i, MISSING_SHOP_PHONE_NUMBER as a } from "../../lib/storefrontMissingValues.js";
|
|
4
4
|
import { BusinessHours as o } from "./BusinessHours.js";
|
|
5
5
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { Link as l } from "@rpcbase/router";
|
|
7
|
+
import { useTranslation as u } from "react-i18next";
|
|
8
|
+
import { cn as d } from "@rpcbase/ui";
|
|
9
|
+
import { Clock as f, Mail as p, MapPin as m, Phone as h } from "lucide-react";
|
|
9
10
|
//#region src/components/Footer/index.tsx
|
|
10
|
-
var
|
|
11
|
+
var g = "group inline-flex gap-2 text-sm font-normal text-slate-600 decoration-current underline-offset-4 transition-colors hover:text-slate-800 hover:underline", _ = "inline-flex text-sm font-normal text-slate-600 decoration-current underline-offset-4 transition-colors hover:text-slate-800 hover:underline", v = "mt-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center text-current transition-colors", y = (e) => (Math.trunc(e) % 7 + 7) % 7, b = (e) => Array.isArray(e) ? e.map((e) => ({
|
|
11
12
|
name: e.name,
|
|
12
13
|
startDate: e.startDate,
|
|
13
14
|
endDate: e.endDate,
|
|
14
15
|
openingHours: e.openingHours.map((e) => ({
|
|
15
|
-
day:
|
|
16
|
+
day: y(e.day),
|
|
16
17
|
openingSlots: e.openingSlots.map((e) => ({
|
|
17
18
|
start: e.start,
|
|
18
19
|
end: e.end
|
|
19
20
|
}))
|
|
20
21
|
}))
|
|
21
|
-
})) : [],
|
|
22
|
+
})) : [], x = (e) => Array.isArray(e) ? e.map((e) => ({
|
|
22
23
|
date: e.date,
|
|
23
24
|
openingSlots: e.openingSlots.map((e) => ({
|
|
24
25
|
start: e.start,
|
|
25
26
|
end: e.end
|
|
26
27
|
}))
|
|
27
28
|
})) : [];
|
|
28
|
-
function
|
|
29
|
-
let { t:
|
|
29
|
+
function S({ storeSlug: y, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, openingHours: T, openingHoursOverrides: E }) {
|
|
30
|
+
let { t: D } = u(), O = t(S), k = S?.emailAddress?.trim() ?? "", A = S?.address?.trim() ?? "", j = e(S), M = b(T), N = x(E), P = M.length > 0, F = y?.trim() || S?.slug?.trim() || "", I = F ? `/${encodeURIComponent(F)}/rental-terms` : "rental-terms";
|
|
30
31
|
return /* @__PURE__ */ s("footer", {
|
|
31
32
|
className: "border-t bg-white",
|
|
32
33
|
children: /* @__PURE__ */ c("div", {
|
|
@@ -36,28 +37,33 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
|
|
|
36
37
|
className: "space-y-2",
|
|
37
38
|
children: [/* @__PURE__ */ s("p", {
|
|
38
39
|
className: "text-sm font-semibold text-slate-950",
|
|
39
|
-
children: /* @__PURE__ */ s("span", { children:
|
|
40
|
-
}), /* @__PURE__ */ s("
|
|
41
|
-
className: "
|
|
42
|
-
|
|
40
|
+
children: /* @__PURE__ */ s("span", { children: D("footer_information_title") })
|
|
41
|
+
}), /* @__PURE__ */ s("nav", {
|
|
42
|
+
className: "grid gap-2",
|
|
43
|
+
"aria-label": D("footer_information_title"),
|
|
44
|
+
children: /* @__PURE__ */ s(l, {
|
|
45
|
+
className: _,
|
|
46
|
+
to: I,
|
|
47
|
+
children: /* @__PURE__ */ s("span", { children: D("rental_terms_title") })
|
|
48
|
+
})
|
|
43
49
|
})]
|
|
44
50
|
}),
|
|
45
51
|
/* @__PURE__ */ c("div", {
|
|
46
52
|
className: "space-y-2",
|
|
47
53
|
children: [/* @__PURE__ */ s("p", {
|
|
48
54
|
className: "text-sm font-semibold text-slate-950",
|
|
49
|
-
children: /* @__PURE__ */ s("span", { children:
|
|
55
|
+
children: /* @__PURE__ */ s("span", { children: D("footer_contact_title") })
|
|
50
56
|
}), /* @__PURE__ */ c("div", {
|
|
51
57
|
className: "grid gap-2",
|
|
52
58
|
children: [
|
|
53
|
-
|
|
54
|
-
className:
|
|
55
|
-
href:
|
|
59
|
+
C ? /* @__PURE__ */ c("a", {
|
|
60
|
+
className: d(g, "items-center"),
|
|
61
|
+
href: C,
|
|
56
62
|
target: "_blank",
|
|
57
63
|
rel: "noreferrer",
|
|
58
64
|
children: [
|
|
59
65
|
/* @__PURE__ */ s("span", {
|
|
60
|
-
className:
|
|
66
|
+
className: d(v, "h-5 w-5"),
|
|
61
67
|
children: /* @__PURE__ */ s("img", {
|
|
62
68
|
src: n,
|
|
63
69
|
className: "h-5 w-5 shrink-0",
|
|
@@ -65,72 +71,72 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
|
|
|
65
71
|
"aria-hidden": "true"
|
|
66
72
|
})
|
|
67
73
|
}),
|
|
68
|
-
/* @__PURE__ */ s("span", { children:
|
|
69
|
-
|
|
74
|
+
/* @__PURE__ */ s("span", { children: D("footer_whatsapp_link") }),
|
|
75
|
+
w ? /* @__PURE__ */ s("span", {
|
|
70
76
|
className: "text-slate-500",
|
|
71
|
-
children:
|
|
77
|
+
children: w
|
|
72
78
|
}) : null
|
|
73
79
|
]
|
|
74
80
|
}) : null,
|
|
75
|
-
|
|
76
|
-
className:
|
|
77
|
-
href:
|
|
78
|
-
"aria-label":
|
|
81
|
+
O ? /* @__PURE__ */ c("a", {
|
|
82
|
+
className: d(g, "items-center"),
|
|
83
|
+
href: O.href,
|
|
84
|
+
"aria-label": O.phoneDisplay,
|
|
79
85
|
children: [/* @__PURE__ */ s("span", {
|
|
80
|
-
className:
|
|
81
|
-
children: /* @__PURE__ */ s(
|
|
86
|
+
className: v,
|
|
87
|
+
children: /* @__PURE__ */ s(h, {
|
|
82
88
|
className: "h-4 w-4",
|
|
83
89
|
"aria-hidden": "true"
|
|
84
90
|
})
|
|
85
|
-
}), /* @__PURE__ */ s("span", { children:
|
|
91
|
+
}), /* @__PURE__ */ s("span", { children: O.phoneDisplay })]
|
|
86
92
|
}) : /* @__PURE__ */ c("div", {
|
|
87
|
-
className:
|
|
93
|
+
className: d(g, "items-center text-destructive hover:text-destructive hover:no-underline"),
|
|
88
94
|
children: [/* @__PURE__ */ s("span", {
|
|
89
|
-
className:
|
|
90
|
-
children: /* @__PURE__ */ s(
|
|
95
|
+
className: v,
|
|
96
|
+
children: /* @__PURE__ */ s(h, {
|
|
91
97
|
className: "h-4 w-4",
|
|
92
98
|
"aria-hidden": "true"
|
|
93
99
|
})
|
|
94
100
|
}), /* @__PURE__ */ s("span", { children: a })]
|
|
95
101
|
}),
|
|
96
|
-
|
|
97
|
-
className:
|
|
98
|
-
href: `mailto:${
|
|
99
|
-
"aria-label":
|
|
102
|
+
k ? /* @__PURE__ */ c("a", {
|
|
103
|
+
className: d(g, "items-center"),
|
|
104
|
+
href: `mailto:${k}`,
|
|
105
|
+
"aria-label": k,
|
|
100
106
|
children: [/* @__PURE__ */ s("span", {
|
|
101
|
-
className:
|
|
102
|
-
children: /* @__PURE__ */ s(
|
|
107
|
+
className: v,
|
|
108
|
+
children: /* @__PURE__ */ s(p, {
|
|
103
109
|
className: "h-4 w-4",
|
|
104
110
|
"aria-hidden": "true"
|
|
105
111
|
})
|
|
106
|
-
}), /* @__PURE__ */ s("span", { children:
|
|
112
|
+
}), /* @__PURE__ */ s("span", { children: k })]
|
|
107
113
|
}) : /* @__PURE__ */ c("div", {
|
|
108
|
-
className:
|
|
114
|
+
className: d(g, "items-center text-destructive hover:text-destructive hover:no-underline"),
|
|
109
115
|
children: [/* @__PURE__ */ s("span", {
|
|
110
|
-
className:
|
|
111
|
-
children: /* @__PURE__ */ s(
|
|
116
|
+
className: v,
|
|
117
|
+
children: /* @__PURE__ */ s(p, {
|
|
112
118
|
className: "h-4 w-4",
|
|
113
119
|
"aria-hidden": "true"
|
|
114
120
|
})
|
|
115
121
|
}), /* @__PURE__ */ s("span", { children: i })]
|
|
116
122
|
}),
|
|
117
|
-
|
|
118
|
-
className:
|
|
119
|
-
href:
|
|
123
|
+
j && A ? /* @__PURE__ */ c("a", {
|
|
124
|
+
className: d(g, "items-start"),
|
|
125
|
+
href: j,
|
|
120
126
|
target: "_blank",
|
|
121
127
|
rel: "noreferrer",
|
|
122
128
|
children: [/* @__PURE__ */ s("span", {
|
|
123
|
-
className:
|
|
124
|
-
children: /* @__PURE__ */ s(
|
|
129
|
+
className: v,
|
|
130
|
+
children: /* @__PURE__ */ s(m, {
|
|
125
131
|
className: "h-4 w-4",
|
|
126
132
|
"aria-hidden": "true"
|
|
127
133
|
})
|
|
128
|
-
}), /* @__PURE__ */ s("span", { children:
|
|
134
|
+
}), /* @__PURE__ */ s("span", { children: A })]
|
|
129
135
|
}) : /* @__PURE__ */ c("div", {
|
|
130
|
-
className:
|
|
136
|
+
className: d(g, "items-start text-destructive hover:text-destructive hover:no-underline"),
|
|
131
137
|
children: [/* @__PURE__ */ s("span", {
|
|
132
|
-
className:
|
|
133
|
-
children: /* @__PURE__ */ s(
|
|
138
|
+
className: v,
|
|
139
|
+
children: /* @__PURE__ */ s(m, {
|
|
134
140
|
className: "h-4 w-4",
|
|
135
141
|
"aria-hidden": "true"
|
|
136
142
|
})
|
|
@@ -143,24 +149,24 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
|
|
|
143
149
|
className: "space-y-2",
|
|
144
150
|
children: [/* @__PURE__ */ s("p", {
|
|
145
151
|
className: "text-sm font-semibold text-slate-950",
|
|
146
|
-
children: /* @__PURE__ */ s("span", { children:
|
|
147
|
-
}),
|
|
148
|
-
openingHours:
|
|
149
|
-
openingHoursOverrides:
|
|
152
|
+
children: /* @__PURE__ */ s("span", { children: D("footer_hours_title") })
|
|
153
|
+
}), P ? /* @__PURE__ */ s(o, {
|
|
154
|
+
openingHours: M,
|
|
155
|
+
openingHoursOverrides: N
|
|
150
156
|
}) : /* @__PURE__ */ c("div", {
|
|
151
157
|
className: "grid gap-1 text-sm text-slate-700",
|
|
152
158
|
children: [/* @__PURE__ */ c("p", {
|
|
153
159
|
className: "inline-flex items-center gap-2",
|
|
154
|
-
children: [/* @__PURE__ */ s(
|
|
160
|
+
children: [/* @__PURE__ */ s(f, {
|
|
155
161
|
className: "h-4 w-4 text-slate-400",
|
|
156
162
|
"aria-hidden": "true"
|
|
157
|
-
}), /* @__PURE__ */ s("span", { children:
|
|
163
|
+
}), /* @__PURE__ */ s("span", { children: D("footer_hours_week") })]
|
|
158
164
|
}), /* @__PURE__ */ c("p", {
|
|
159
165
|
className: "inline-flex items-center gap-2",
|
|
160
|
-
children: [/* @__PURE__ */ s(
|
|
166
|
+
children: [/* @__PURE__ */ s(f, {
|
|
161
167
|
className: "h-4 w-4 text-slate-400",
|
|
162
168
|
"aria-hidden": "true"
|
|
163
|
-
}), /* @__PURE__ */ s("span", { children:
|
|
169
|
+
}), /* @__PURE__ */ s("span", { children: D("footer_hours_weekend") })]
|
|
164
170
|
})]
|
|
165
171
|
})]
|
|
166
172
|
})
|
|
@@ -169,4 +175,4 @@ function b({ shop: _, whatsappHref: b, whatsappPhoneDisplay: x, openingHours: S,
|
|
|
169
175
|
});
|
|
170
176
|
}
|
|
171
177
|
//#endregion
|
|
172
|
-
export {
|
|
178
|
+
export { S as Footer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAA;AAGvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAItE,KAAK,WAAW,GAAG;IACjB,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;IACjD,kBAAkB,EAAE,6BAA6B,CAAA;CAClD,CAAA;AAED,wBAAgB,MAAM,CAAC,EACrB,uBAAuB,EACvB,kBAAkB,GACnB,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAA;AAGvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAItE,KAAK,WAAW,GAAG;IACjB,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;IACjD,kBAAkB,EAAE,6BAA6B,CAAA;CAClD,CAAA;AAED,wBAAgB,MAAM,CAAC,EACrB,uBAAuB,EACvB,kBAAkB,GACnB,EAAE,WAAW,2CAkEb"}
|
|
@@ -4,12 +4,12 @@ import { useTranslation as r } from "react-i18next";
|
|
|
4
4
|
//#region src/components/PlatformFooter/index.tsx
|
|
5
5
|
var i = "https://loczer.com", a = 2025, o = {
|
|
6
6
|
en: {
|
|
7
|
-
|
|
8
|
-
privacy: "privacy-policy"
|
|
7
|
+
legalMentions: "en/legal-notice",
|
|
8
|
+
privacy: "en/privacy-policy"
|
|
9
9
|
},
|
|
10
10
|
fr: {
|
|
11
|
-
|
|
12
|
-
privacy: "politique-de-confidentialite"
|
|
11
|
+
legalMentions: "fr/mentions-legales",
|
|
12
|
+
privacy: "fr/politique-de-confidentialite"
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
function s() {
|
|
@@ -34,10 +34,10 @@ function s() {
|
|
|
34
34
|
className: "flex flex-wrap items-center gap-x-4 gap-y-1 sm:justify-end",
|
|
35
35
|
children: [/* @__PURE__ */ t("a", {
|
|
36
36
|
className: "hover:text-white",
|
|
37
|
-
href: `${i}/${l.
|
|
37
|
+
href: `${i}/${l.legalMentions}`,
|
|
38
38
|
target: "_blank",
|
|
39
39
|
rel: "noopener noreferrer",
|
|
40
|
-
children: /* @__PURE__ */ t("span", { children: s("
|
|
40
|
+
children: /* @__PURE__ */ t("span", { children: s("platform_footer_legal_mentions") })
|
|
41
41
|
}), /* @__PURE__ */ t("a", {
|
|
42
42
|
className: "hover:text-white",
|
|
43
43
|
href: `${i}/${l.privacy}`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button as e } from "../../ui/button.js";
|
|
2
|
-
import { ResponsiveDialog as t, ResponsiveDialogContent as n, ResponsiveDialogDescription as r, ResponsiveDialogFooter as i, ResponsiveDialogHeader as a, ResponsiveDialogTitle as o } from "../../chunks/pkg/ui/dist/ResponsiveDialog-
|
|
2
|
+
import { ResponsiveDialog as t, ResponsiveDialogContent as n, ResponsiveDialogDescription as r, ResponsiveDialogFooter as i, ResponsiveDialogHeader as a, ResponsiveDialogTitle as o } from "../../chunks/pkg/ui/dist/ResponsiveDialog-BJ0RG6gh.js";
|
|
3
3
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
4
|
import { useSearchParams as l } from "@rpcbase/router";
|
|
5
5
|
import { useTranslation as u } from "react-i18next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formatStorefrontPriceMinor as e } from "../../lib/pricing.js";
|
|
2
2
|
import { Button as t } from "../../ui/button.js";
|
|
3
|
-
import { ResponsiveDialog as n, ResponsiveDialogContent as r, ResponsiveDialogDescription as i, ResponsiveDialogFooter as a, ResponsiveDialogHeader as o, ResponsiveDialogTitle as s } from "../../chunks/pkg/ui/dist/ResponsiveDialog-
|
|
3
|
+
import { ResponsiveDialog as n, ResponsiveDialogContent as r, ResponsiveDialogDescription as i, ResponsiveDialogFooter as a, ResponsiveDialogHeader as o, ResponsiveDialogTitle as s } from "../../chunks/pkg/ui/dist/ResponsiveDialog-BJ0RG6gh.js";
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
5
|
import { useSearchParams as u } from "@rpcbase/router";
|
|
6
6
|
import { useTranslation as d } from "react-i18next";
|
|
@@ -2,7 +2,7 @@ import { getLocalizedEntry as e, getLocalizedValue as t } from "../../localizati
|
|
|
2
2
|
import { buildStorefrontImageUrl as n } from "../../lib/storefrontImage.js";
|
|
3
3
|
import { Button as r } from "../../ui/button.js";
|
|
4
4
|
import { isAutomationRuntime as i } from "../../lib/isAutomationRuntime.js";
|
|
5
|
-
import { ResponsiveDialog as a, ResponsiveDialogContent as o, ResponsiveDialogDescription as s, ResponsiveDialogFooter as c, ResponsiveDialogHeader as l, ResponsiveDialogTitle as u } from "../../chunks/pkg/ui/dist/ResponsiveDialog-
|
|
5
|
+
import { ResponsiveDialog as a, ResponsiveDialogContent as o, ResponsiveDialogDescription as s, ResponsiveDialogFooter as c, ResponsiveDialogHeader as l, ResponsiveDialogTitle as u } from "../../chunks/pkg/ui/dist/ResponsiveDialog-BJ0RG6gh.js";
|
|
6
6
|
import { useEffect as d, useState as f } from "react";
|
|
7
7
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
8
|
import { useLocation as h, useParams as g } from "@rpcbase/router";
|