@loczer/storefront-sdk 0.223.0 → 0.224.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/StorefrontContext.d.ts +14 -0
  2. package/dist/StorefrontContext.d.ts.map +1 -1
  3. package/dist/StorefrontProvider.d.ts +7 -0
  4. package/dist/StorefrontProvider.d.ts.map +1 -1
  5. package/dist/components/Footer/index.d.ts +2 -1
  6. package/dist/components/Footer/index.d.ts.map +1 -1
  7. package/dist/components/Footer/index.js +32 -28
  8. package/dist/components/Layout/index.d.ts.map +1 -1
  9. package/dist/components/Layout/index.js +47 -45
  10. package/dist/components/StorefrontInformationDocument/index.d.ts +13 -0
  11. package/dist/components/StorefrontInformationDocument/index.d.ts.map +1 -0
  12. package/dist/components/StorefrontInformationDocument/index.js +48 -0
  13. package/dist/i18n/en.d.ts +4 -0
  14. package/dist/i18n/en.d.ts.map +1 -1
  15. package/dist/i18n/en.js +4 -0
  16. package/dist/i18n/fr.d.ts +4 -0
  17. package/dist/i18n/fr.d.ts.map +1 -1
  18. package/dist/i18n/fr.js +4 -0
  19. package/dist/index.d.ts +53 -1
  20. package/dist/index.js +9 -8
  21. package/dist/lib/contractSaleDocument.d.ts +3 -0
  22. package/dist/lib/contractSaleDocument.d.ts.map +1 -1
  23. package/dist/lib/contractSaleDocument.js +1 -0
  24. package/dist/lib/contractSaleDocumentApi.d.ts +3 -0
  25. package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
  26. package/dist/lib/richText.d.ts +3 -0
  27. package/dist/lib/richText.d.ts.map +1 -0
  28. package/dist/lib/richText.js +19 -0
  29. package/dist/pages/ContractSaleDocumentPage.d.ts +1 -1
  30. package/dist/pages/InsuranceTermsPage.d.ts +2 -0
  31. package/dist/pages/InsuranceTermsPage.d.ts.map +1 -0
  32. package/dist/pages/InsuranceTermsPage.js +22 -0
  33. package/dist/pages/RentalTermsPage.d.ts.map +1 -1
  34. package/dist/pages/RentalTermsPage.js +15 -46
  35. package/dist/routes.d.ts.map +1 -1
  36. package/dist/routes.js +14 -10
  37. package/dist/storefrontSchemas.d.ts +14 -0
  38. package/dist/storefrontSchemas.d.ts.map +1 -1
  39. package/dist/storefrontSchemas.js +3 -1
  40. package/package.json +1 -1
@@ -244,6 +244,13 @@ export declare function useStorefrontConfig(): {
244
244
  text: string;
245
245
  } | undefined;
246
246
  rentalTermsUpdatedAt?: string | null | undefined;
247
+ insuranceTerms?: {
248
+ version: 1;
249
+ json: string;
250
+ html: string;
251
+ text: string;
252
+ } | undefined;
253
+ insuranceTermsUpdatedAt?: string | null | undefined;
247
254
  } | undefined;
248
255
  modules?: {
249
256
  reviews?: {
@@ -480,6 +487,13 @@ export declare function useStorefrontConfig(): {
480
487
  text: string;
481
488
  } | undefined;
482
489
  rentalTermsUpdatedAt?: string | null | undefined;
490
+ insuranceTerms?: {
491
+ version: 1;
492
+ json: string;
493
+ html: string;
494
+ text: string;
495
+ } | undefined;
496
+ insuranceTermsUpdatedAt?: string | null | undefined;
483
497
  } | undefined;
484
498
  modules?: {
485
499
  reviews?: {
@@ -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,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlC;AAED,wBAAgB,8BAA8B,IAAI,sBAAsB,CAGvE;AAED,wBAAgB,qBAAqB;;;EAGpC;AAED,wBAAgB,4BAA4B;;;EAG3C;AAED,wBAAgB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGvC"}
@@ -225,6 +225,13 @@ export declare const loader: ({ ctx, params }: import('@rpcbase/client').LoaderA
225
225
  text: string;
226
226
  } | undefined;
227
227
  rentalTermsUpdatedAt?: string | null | undefined;
228
+ insuranceTerms?: {
229
+ version: 1;
230
+ json: string;
231
+ html: string;
232
+ text: string;
233
+ } | undefined;
234
+ insuranceTermsUpdatedAt?: string | null | undefined;
228
235
  } | undefined;
229
236
  modules?: {
230
237
  reviews?: {
@@ -1 +1 @@
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"}
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"}
@@ -7,7 +7,8 @@ type FooterProps = {
7
7
  openingHours?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHours"];
8
8
  openingHoursOverrides?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHoursOverrides"];
9
9
  timeZone?: string;
10
+ showInsuranceTerms?: boolean;
10
11
  };
11
- export declare function Footer({ storeSlug, shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, timeZone, }: FooterProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function Footer({ storeSlug, shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, timeZone, showInsuranceTerms, }: FooterProps): import("react/jsx-runtime").JSX.Element;
12
13
  export {};
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAetF,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;IACjG,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,qBAAqB,EACrB,QAAQ,GACT,EAAE,WAAW,2CAqJb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAetF,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;IACjG,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAA;AAED,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,qBAAqB,EACrB,QAAQ,EACR,kBAA0B,GAC3B,EAAE,WAAW,2CA6Jb"}
@@ -10,8 +10,8 @@ import { cn as p } from "@rpcbase/ui";
10
10
  import { Clock as m, Mail as h, MapPin as g, Phone as _ } from "lucide-react";
11
11
  //#region src/components/Footer/index.tsx
12
12
  var v = "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", y = "inline-flex text-sm font-normal text-slate-600 decoration-current underline-offset-4 transition-colors hover:text-slate-800 hover:underline", b = "mt-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center text-current transition-colors";
13
- function x({ storeSlug: x, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, openingHours: T, openingHoursOverrides: E, timeZone: D }) {
14
- let { t: O } = f(), k = t(S), A = S?.emailAddress?.trim() ?? "", j = S?.address?.trim() ?? "", M = e(S), N = o(T), P = s(E), F = N.length > 0, I = x?.trim() || S?.slug?.trim() || "", L = I ? `/${encodeURIComponent(I)}/rental-terms` : "rental-terms";
13
+ function x({ storeSlug: x, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, openingHours: T, openingHoursOverrides: E, timeZone: D, showInsuranceTerms: O = !1 }) {
14
+ let { t: k } = f(), A = t(S), j = S?.emailAddress?.trim() ?? "", M = S?.address?.trim() ?? "", N = e(S), P = o(T), F = s(E), I = P.length > 0, L = x?.trim() || S?.slug?.trim() || "", R = L ? `/${encodeURIComponent(L)}/rental-terms` : "rental-terms", z = L ? `/${encodeURIComponent(L)}/insurance-terms` : "insurance-terms";
15
15
  return /* @__PURE__ */ l("footer", {
16
16
  className: "border-t bg-white",
17
17
  children: /* @__PURE__ */ u("div", {
@@ -21,22 +21,26 @@ function x({ storeSlug: x, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, op
21
21
  className: "space-y-2",
22
22
  children: [/* @__PURE__ */ l("p", {
23
23
  className: "text-sm font-semibold text-slate-950",
24
- children: /* @__PURE__ */ l("span", { children: O("footer_information_title") })
25
- }), /* @__PURE__ */ l("nav", {
24
+ children: /* @__PURE__ */ l("span", { children: k("footer_information_title") })
25
+ }), /* @__PURE__ */ u("nav", {
26
26
  className: "grid gap-2",
27
- "aria-label": O("footer_information_title"),
28
- children: /* @__PURE__ */ l(d, {
27
+ "aria-label": k("footer_information_title"),
28
+ children: [/* @__PURE__ */ l(d, {
29
29
  className: y,
30
- to: L,
31
- children: /* @__PURE__ */ l("span", { children: O("rental_terms_title") })
32
- })
30
+ to: R,
31
+ children: /* @__PURE__ */ l("span", { children: k("rental_terms_title") })
32
+ }), O ? /* @__PURE__ */ l(d, {
33
+ className: y,
34
+ to: z,
35
+ children: /* @__PURE__ */ l("span", { children: k("insurance_terms_title") })
36
+ }) : null]
33
37
  })]
34
38
  }),
35
39
  /* @__PURE__ */ u("div", {
36
40
  className: "space-y-2",
37
41
  children: [/* @__PURE__ */ l("p", {
38
42
  className: "text-sm font-semibold text-slate-950",
39
- children: /* @__PURE__ */ l("span", { children: O("footer_contact_title") })
43
+ children: /* @__PURE__ */ l("span", { children: k("footer_contact_title") })
40
44
  }), /* @__PURE__ */ u("div", {
41
45
  className: "grid gap-2",
42
46
  children: [
@@ -55,24 +59,24 @@ function x({ storeSlug: x, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, op
55
59
  "aria-hidden": "true"
56
60
  })
57
61
  }),
58
- /* @__PURE__ */ l("span", { children: O("footer_whatsapp_link") }),
62
+ /* @__PURE__ */ l("span", { children: k("footer_whatsapp_link") }),
59
63
  w ? /* @__PURE__ */ l("span", {
60
64
  className: "text-slate-500",
61
65
  children: w
62
66
  }) : null
63
67
  ]
64
68
  }) : null,
65
- k ? /* @__PURE__ */ u("a", {
69
+ A ? /* @__PURE__ */ u("a", {
66
70
  className: p(v, "items-center"),
67
- href: k.href,
68
- "aria-label": k.phoneDisplay,
71
+ href: A.href,
72
+ "aria-label": A.phoneDisplay,
69
73
  children: [/* @__PURE__ */ l("span", {
70
74
  className: b,
71
75
  children: /* @__PURE__ */ l(_, {
72
76
  className: "h-4 w-4",
73
77
  "aria-hidden": "true"
74
78
  })
75
- }), /* @__PURE__ */ l("span", { children: k.phoneDisplay })]
79
+ }), /* @__PURE__ */ l("span", { children: A.phoneDisplay })]
76
80
  }) : /* @__PURE__ */ u("div", {
77
81
  className: p(v, "items-center text-destructive hover:text-destructive hover:no-underline"),
78
82
  children: [/* @__PURE__ */ l("span", {
@@ -83,17 +87,17 @@ function x({ storeSlug: x, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, op
83
87
  })
84
88
  }), /* @__PURE__ */ l("span", { children: a })]
85
89
  }),
86
- A ? /* @__PURE__ */ u("a", {
90
+ j ? /* @__PURE__ */ u("a", {
87
91
  className: p(v, "items-center"),
88
- href: `mailto:${A}`,
89
- "aria-label": A,
92
+ href: `mailto:${j}`,
93
+ "aria-label": j,
90
94
  children: [/* @__PURE__ */ l("span", {
91
95
  className: b,
92
96
  children: /* @__PURE__ */ l(h, {
93
97
  className: "h-4 w-4",
94
98
  "aria-hidden": "true"
95
99
  })
96
- }), /* @__PURE__ */ l("span", { children: A })]
100
+ }), /* @__PURE__ */ l("span", { children: j })]
97
101
  }) : /* @__PURE__ */ u("div", {
98
102
  className: p(v, "items-center text-destructive hover:text-destructive hover:no-underline"),
99
103
  children: [/* @__PURE__ */ l("span", {
@@ -104,9 +108,9 @@ function x({ storeSlug: x, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, op
104
108
  })
105
109
  }), /* @__PURE__ */ l("span", { children: i })]
106
110
  }),
107
- M && j ? /* @__PURE__ */ u("a", {
111
+ N && M ? /* @__PURE__ */ u("a", {
108
112
  className: p(v, "items-start"),
109
- href: M,
113
+ href: N,
110
114
  target: "_blank",
111
115
  rel: "noreferrer",
112
116
  children: [/* @__PURE__ */ l("span", {
@@ -115,7 +119,7 @@ function x({ storeSlug: x, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, op
115
119
  className: "h-4 w-4",
116
120
  "aria-hidden": "true"
117
121
  })
118
- }), /* @__PURE__ */ l("span", { children: j })]
122
+ }), /* @__PURE__ */ l("span", { children: M })]
119
123
  }) : /* @__PURE__ */ u("div", {
120
124
  className: p(v, "items-start text-destructive hover:text-destructive hover:no-underline"),
121
125
  children: [/* @__PURE__ */ l("span", {
@@ -133,10 +137,10 @@ function x({ storeSlug: x, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, op
133
137
  className: "space-y-2",
134
138
  children: [/* @__PURE__ */ l("p", {
135
139
  className: "text-sm font-semibold text-slate-950",
136
- children: /* @__PURE__ */ l("span", { children: O("footer_hours_title") })
137
- }), F ? /* @__PURE__ */ l(c, {
138
- openingHours: N,
139
- openingHoursOverrides: P,
140
+ children: /* @__PURE__ */ l("span", { children: k("footer_hours_title") })
141
+ }), I ? /* @__PURE__ */ l(c, {
142
+ openingHours: P,
143
+ openingHoursOverrides: F,
140
144
  timeZone: D ?? S?.timeZone ?? "UTC"
141
145
  }) : /* @__PURE__ */ u("div", {
142
146
  className: "grid gap-1 text-sm text-slate-700",
@@ -145,13 +149,13 @@ function x({ storeSlug: x, shop: S, whatsappHref: C, whatsappPhoneDisplay: w, op
145
149
  children: [/* @__PURE__ */ l(m, {
146
150
  className: "h-4 w-4 text-slate-400",
147
151
  "aria-hidden": "true"
148
- }), /* @__PURE__ */ l("span", { children: O("footer_hours_week") })]
152
+ }), /* @__PURE__ */ l("span", { children: k("footer_hours_week") })]
149
153
  }), /* @__PURE__ */ u("p", {
150
154
  className: "inline-flex items-center gap-2",
151
155
  children: [/* @__PURE__ */ l(m, {
152
156
  className: "h-4 w-4 text-slate-400",
153
157
  "aria-hidden": "true"
154
- }), /* @__PURE__ */ l("span", { children: O("footer_hours_weekend") })]
158
+ }), /* @__PURE__ */ l("span", { children: k("footer_hours_weekend") })]
155
159
  })]
156
160
  })]
157
161
  })
@@ -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,2CAmEb"}
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;AAIvE,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,2CAsEb"}
@@ -7,63 +7,65 @@ import { PlaygroundDevFloatingButton as a } from "../PlaygroundDevFloatingButton
7
7
  import { StorefrontPopupMessages as o } from "../StorefrontPopupMessages/index.js";
8
8
  import { WhatsAppFloatingButton as s } from "../WhatsAppFloatingButton/WhatsAppFloatingButton.js";
9
9
  import "../WhatsAppFloatingButton/index.js";
10
- import { STOREFRONT_TOASTER_ID as c } from "../../lib/toast.js";
11
- import { Provider as l } from "../../ui/tooltip.js";
12
- import { useEffect as u } from "react";
13
- import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
14
- import { RootProvider as m } from "@rpcbase/client";
15
- import { Outlet as h, useLocation as g, useParams as _ } from "@rpcbase/router";
16
- import { useTranslation as v } from "react-i18next";
17
- import { Toaster as y } from "sonner";
10
+ import { hasStorefrontRichTextContent as c } from "../../lib/richText.js";
11
+ import { STOREFRONT_TOASTER_ID as l } from "../../lib/toast.js";
12
+ import { Provider as u } from "../../ui/tooltip.js";
13
+ import { useEffect as d } from "react";
14
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
15
+ import { RootProvider as h } from "@rpcbase/client";
16
+ import { Outlet as g, useLocation as _, useParams as v } from "@rpcbase/router";
17
+ import { useTranslation as y } from "react-i18next";
18
+ import { Toaster as b } from "sonner";
18
19
  //#region src/components/Layout/index.tsx
19
- function b({ storefrontConfiguration: b, storefrontProducts: x }) {
20
- let { storeSlug: S, referenceId: C } = _(), w = g(), { i18n: T } = v();
21
- u(() => {
20
+ function x({ storefrontConfiguration: x, storefrontProducts: S }) {
21
+ let { storeSlug: C, referenceId: w } = v(), T = _(), { i18n: E } = y();
22
+ d(() => {
22
23
  document.documentElement.setAttribute("data-hydrated", "true");
23
24
  }, []);
24
- let E = t({
25
- storefrontConfiguration: b,
26
- language: T.language
27
- }), D = E?.href, O = typeof C == "string" && C.trim().length > 0, k = O && new URLSearchParams(w.search).get("pdf") === "1";
28
- return /* @__PURE__ */ p(m, { children: [/* @__PURE__ */ f(y, {
29
- id: c,
25
+ let D = t({
26
+ storefrontConfiguration: x,
27
+ language: E.language
28
+ }), O = D?.href, k = typeof w == "string" && w.trim().length > 0, A = k && new URLSearchParams(T.search).get("pdf") === "1";
29
+ return /* @__PURE__ */ m(h, { children: [/* @__PURE__ */ p(b, {
30
+ id: l,
30
31
  closeButton: !0,
31
32
  position: "bottom-center",
32
33
  theme: "dark"
33
- }), /* @__PURE__ */ f(l, { children: /* @__PURE__ */ f(e, {
34
- storeSlug: S ?? "",
35
- products: x,
36
- children: /* @__PURE__ */ f("div", {
37
- className: `loczer-storefront flex w-full min-w-0 flex-col overflow-x-clip bg-background text-foreground ${O && !k ? "h-dvh overflow-hidden" : "min-h-screen"}`,
38
- children: O ? /* @__PURE__ */ f("main", {
39
- className: `flex-1 ${k ? "bg-white" : "overflow-hidden"}`,
40
- children: /* @__PURE__ */ f(h, {})
41
- }) : /* @__PURE__ */ p(d, { children: [
42
- /* @__PURE__ */ f(r, {
43
- storefrontConfiguration: b,
44
- whatsappHref: D,
45
- whatsappPhoneDisplay: E?.phoneDisplay
34
+ }), /* @__PURE__ */ p(u, { children: /* @__PURE__ */ p(e, {
35
+ storeSlug: C ?? "",
36
+ products: S,
37
+ children: /* @__PURE__ */ p("div", {
38
+ className: `loczer-storefront flex w-full min-w-0 flex-col overflow-x-clip bg-background text-foreground ${k && !A ? "h-dvh overflow-hidden" : "min-h-screen"}`,
39
+ children: k ? /* @__PURE__ */ p("main", {
40
+ className: `flex-1 ${A ? "bg-white" : "overflow-hidden"}`,
41
+ children: /* @__PURE__ */ p(g, {})
42
+ }) : /* @__PURE__ */ m(f, { children: [
43
+ /* @__PURE__ */ p(r, {
44
+ storefrontConfiguration: x,
45
+ whatsappHref: O,
46
+ whatsappPhoneDisplay: D?.phoneDisplay
46
47
  }),
47
- /* @__PURE__ */ f("main", {
48
+ /* @__PURE__ */ p("main", {
48
49
  className: "min-w-0 flex-1",
49
- children: /* @__PURE__ */ f(h, {})
50
+ children: /* @__PURE__ */ p(g, {})
50
51
  }),
51
- /* @__PURE__ */ f(n, {
52
- storeSlug: S,
53
- shop: b?.shop,
54
- whatsappHref: D,
55
- whatsappPhoneDisplay: E?.phoneDisplay,
56
- openingHours: b?.bookingEngine.shop.openingHours,
57
- openingHoursOverrides: b?.bookingEngine.shop.openingHoursOverrides,
58
- timeZone: b?.bookingEngine.shop.timeZone
52
+ /* @__PURE__ */ p(n, {
53
+ storeSlug: C,
54
+ shop: x?.shop,
55
+ whatsappHref: O,
56
+ whatsappPhoneDisplay: D?.phoneDisplay,
57
+ openingHours: x?.bookingEngine.shop.openingHours,
58
+ openingHoursOverrides: x?.bookingEngine.shop.openingHoursOverrides,
59
+ timeZone: x?.bookingEngine.shop.timeZone,
60
+ showInsuranceTerms: c(x?.information?.insuranceTerms)
59
61
  }),
60
- /* @__PURE__ */ f(i, {}),
61
- D && b?.content?.showWhatsappFloatingButton !== !1 ? /* @__PURE__ */ f(s, { href: D }) : null,
62
- /* @__PURE__ */ f(a, {}),
63
- /* @__PURE__ */ f(o, { storefrontConfiguration: b })
62
+ /* @__PURE__ */ p(i, {}),
63
+ O && x?.content?.showWhatsappFloatingButton !== !1 ? /* @__PURE__ */ p(s, { href: O }) : null,
64
+ /* @__PURE__ */ p(a, {}),
65
+ /* @__PURE__ */ p(o, { storefrontConfiguration: x })
64
66
  ] })
65
67
  })
66
68
  }) })] });
67
69
  }
68
70
  //#endregion
69
- export { b as Layout };
71
+ export { x as Layout };
@@ -0,0 +1,13 @@
1
+ export declare function formatStorefrontInformationDocumentDate({ language, timeZone, value, }: {
2
+ language: string;
3
+ timeZone?: string;
4
+ value?: string | null;
5
+ }): string;
6
+ export declare function StorefrontInformationDocument({ title, description, effectiveDateLabel, contentHtml, unavailableLabel, }: {
7
+ title: string;
8
+ description: string;
9
+ effectiveDateLabel?: string;
10
+ contentHtml: string;
11
+ unavailableLabel: string;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StorefrontInformationDocument/index.tsx"],"names":[],"mappings":"AAwBA,wBAAgB,uCAAuC,CAAC,EACtD,QAAQ,EACR,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB,UASA;AAED,wBAAgB,6BAA6B,CAAC,EAC5C,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;CACzB,2CAoCA"}
@@ -0,0 +1,48 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import { cn as n } from "@rpcbase/ui";
3
+ //#region src/components/StorefrontInformationDocument/index.tsx
4
+ var r = n("mt-10 text-[0.9375rem] leading-7 text-slate-700 sm:mt-12 sm:text-base sm:leading-8", "[&_a]:font-medium [&_a]:text-primary [&_a]:underline [&_a]:decoration-primary/30 [&_a]:underline-offset-4 [&_a:hover]:decoration-primary", "[&_blockquote]:my-6 [&_blockquote]:border-l-2 [&_blockquote]:border-slate-300 [&_blockquote]:pl-5 [&_blockquote]:text-slate-600", "[&_code]:rounded [&_code]:bg-slate-100 [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:text-sm [&_code]:text-slate-900", "[&_h1]:mt-10 [&_h1]:border-t [&_h1]:border-slate-200 [&_h1]:pt-8 [&_h1]:font-serif [&_h1]:text-2xl [&_h1]:font-normal [&_h1]:leading-tight [&_h1]:tracking-tight [&_h1]:text-slate-950 sm:[&_h1]:mt-12 sm:[&_h1]:pt-9 sm:[&_h1]:text-3xl", "[&_h1:first-child]:mt-0 [&_h1:first-child]:border-t-0 [&_h1:first-child]:pt-0", "[&_h2]:mt-10 [&_h2]:border-t [&_h2]:border-slate-200 [&_h2]:pt-8 [&_h2]:font-serif [&_h2]:text-xl [&_h2]:font-normal [&_h2]:leading-tight [&_h2]:tracking-tight [&_h2]:text-slate-950 sm:[&_h2]:mt-12 sm:[&_h2]:pt-9 sm:[&_h2]:text-2xl", "[&_h2:first-child]:mt-0 [&_h2:first-child]:border-t-0 [&_h2:first-child]:pt-0", "[&_h3]:mt-8 [&_h3]:font-serif [&_h3]:text-lg [&_h3]:font-normal [&_h3]:leading-tight [&_h3]:tracking-tight [&_h3]:text-slate-950", "[&_hr]:my-10 [&_hr]:border-slate-200", "[&_img]:my-8 [&_img]:max-w-full", "[&_li]:pl-1 [&_ol]:my-5 [&_ol]:list-decimal [&_ol]:space-y-2 [&_ol]:pl-6", "[&_p]:my-4 [&_p]:whitespace-pre-wrap", "[&_strong]:font-semibold [&_strong]:text-slate-950", "[&_table]:my-8 [&_table]:w-full [&_table]:border-collapse [&_table]:text-sm", "[&_td]:border [&_td]:border-slate-200 [&_td]:p-3 [&_td]:align-top", "[&_th]:border [&_th]:border-slate-200 [&_th]:bg-slate-50 [&_th]:p-3 [&_th]:text-left [&_th]:font-semibold [&_th]:text-slate-950", "[&_ul]:my-5 [&_ul]:list-disc [&_ul]:space-y-2 [&_ul]:pl-6");
5
+ function i({ language: e, timeZone: t, value: n }) {
6
+ return n ? new Intl.DateTimeFormat(e, {
7
+ day: "numeric",
8
+ month: "long",
9
+ year: "numeric",
10
+ timeZone: t || "UTC"
11
+ }).format(new Date(n)) : "";
12
+ }
13
+ function a({ title: i, description: a, effectiveDateLabel: o, contentHtml: s, unavailableLabel: c }) {
14
+ return /* @__PURE__ */ e("section", {
15
+ className: "min-h-[70vh] bg-white",
16
+ children: /* @__PURE__ */ e("div", {
17
+ className: "mx-auto max-w-7xl px-4 sm:px-6",
18
+ children: /* @__PURE__ */ t("article", {
19
+ className: "mx-auto max-w-3xl py-10 sm:py-14",
20
+ children: [/* @__PURE__ */ t("header", {
21
+ className: "border-b border-slate-200 pb-8 sm:pb-10",
22
+ children: [
23
+ o ? /* @__PURE__ */ e("p", {
24
+ className: "text-sm text-slate-500",
25
+ children: /* @__PURE__ */ e("span", { children: o })
26
+ }) : null,
27
+ /* @__PURE__ */ e("h1", {
28
+ className: n("font-serif text-4xl font-normal leading-tight tracking-tight text-slate-950 sm:text-5xl", o && "mt-3"),
29
+ children: /* @__PURE__ */ e("span", { children: i })
30
+ }),
31
+ /* @__PURE__ */ e("p", {
32
+ className: "mt-4 max-w-2xl text-base leading-7 text-slate-600 sm:text-lg sm:leading-8",
33
+ children: /* @__PURE__ */ e("span", { children: a })
34
+ })
35
+ ]
36
+ }), s ? /* @__PURE__ */ e("div", {
37
+ className: r,
38
+ dangerouslySetInnerHTML: { __html: s }
39
+ }) : /* @__PURE__ */ e("p", {
40
+ className: "mt-10 border-l-2 border-slate-300 pl-5 text-base leading-8 text-slate-600 sm:mt-12",
41
+ children: /* @__PURE__ */ e("span", { children: c })
42
+ })]
43
+ })
44
+ })
45
+ });
46
+ }
47
+ //#endregion
48
+ export { a as StorefrontInformationDocument, i as formatStorefrontInformationDocumentDate };
package/dist/i18n/en.d.ts CHANGED
@@ -386,6 +386,10 @@ export declare const storefront: {
386
386
  rental_terms_description: string;
387
387
  rental_terms_effective_date: string;
388
388
  rental_terms_unavailable: string;
389
+ insurance_terms_title: string;
390
+ insurance_terms_description: string;
391
+ insurance_terms_effective_date: string;
392
+ insurance_terms_unavailable: string;
389
393
  footer_contact_title: string;
390
394
  footer_whatsapp_link: string;
391
395
  footer_hours_title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAogBtB,CAAA"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwgBtB,CAAA"}
package/dist/i18n/en.js CHANGED
@@ -387,6 +387,10 @@ var e = {
387
387
  rental_terms_description: "These terms govern bookings and rentals provided by {{shop_name}}.",
388
388
  rental_terms_effective_date: "Version in effect on {{date}}.",
389
389
  rental_terms_unavailable: "The rental terms have not been published yet.",
390
+ insurance_terms_title: "Insurance",
391
+ insurance_terms_description: "Read about the insurance offered by {{shop_name}}.",
392
+ insurance_terms_effective_date: "Version in effect on {{date}}.",
393
+ insurance_terms_unavailable: "The insurance document has not been published yet.",
390
394
  footer_contact_title: "Contact",
391
395
  footer_whatsapp_link: "WhatsApp",
392
396
  footer_hours_title: "Opening hours",
package/dist/i18n/fr.d.ts CHANGED
@@ -387,6 +387,10 @@ export declare const storefront: {
387
387
  rental_terms_description: string;
388
388
  rental_terms_effective_date: string;
389
389
  rental_terms_unavailable: string;
390
+ insurance_terms_title: string;
391
+ insurance_terms_description: string;
392
+ insurance_terms_effective_date: string;
393
+ insurance_terms_unavailable: string;
390
394
  footer_contact_title: string;
391
395
  footer_whatsapp_link: string;
392
396
  footer_hours_title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqgBtB,CAAA"}
1
+ {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAygBtB,CAAA"}
package/dist/i18n/fr.js CHANGED
@@ -388,6 +388,10 @@ var e = {
388
388
  rental_terms_description: "Ces conditions encadrent les réservations et locations proposées par {{shop_name}}.",
389
389
  rental_terms_effective_date: "Version en vigueur au {{date}}.",
390
390
  rental_terms_unavailable: "Les conditions générales de location n’ont pas encore été publiées.",
391
+ insurance_terms_title: "Assurance",
392
+ insurance_terms_description: "Consultez les informations sur l’assurance proposée par {{shop_name}}.",
393
+ insurance_terms_effective_date: "Version en vigueur au {{date}}.",
394
+ insurance_terms_unavailable: "Le document d’assurance n’a pas encore été publié.",
391
395
  footer_contact_title: "Contact",
392
396
  footer_whatsapp_link: "WhatsApp",
393
397
  footer_hours_title: "Horaires d’ouverture",
package/dist/index.d.ts CHANGED
@@ -129,6 +129,7 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
129
129
  kind: z.ZodEnum<{
130
130
  rental_contract: "rental_contract";
131
131
  rental_terms: "rental_terms";
132
+ insurance_terms: "insurance_terms";
132
133
  sale_terms: "sale_terms";
133
134
  }>;
134
135
  title: z.ZodString;
@@ -1183,6 +1184,7 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
1183
1184
  kind: z.ZodEnum<{
1184
1185
  rental_contract: "rental_contract";
1185
1186
  rental_terms: "rental_terms";
1187
+ insurance_terms: "insurance_terms";
1186
1188
  sale_terms: "sale_terms";
1187
1189
  }>;
1188
1190
  title: z.ZodString;
@@ -1242,6 +1244,7 @@ export declare type ContractSaleDocumentAppendixKind = z.infer<typeof contractSa
1242
1244
  export declare const contractSaleDocumentAppendixKindSchema: z.ZodEnum<{
1243
1245
  rental_contract: "rental_contract";
1244
1246
  rental_terms: "rental_terms";
1247
+ insurance_terms: "insurance_terms";
1245
1248
  sale_terms: "sale_terms";
1246
1249
  }>;
1247
1250
 
@@ -1250,6 +1253,7 @@ export declare const contractSaleDocumentAppendixSchema: z.ZodObject<{
1250
1253
  kind: z.ZodEnum<{
1251
1254
  rental_contract: "rental_contract";
1252
1255
  rental_terms: "rental_terms";
1256
+ insurance_terms: "insurance_terms";
1253
1257
  sale_terms: "sale_terms";
1254
1258
  }>;
1255
1259
  title: z.ZodString;
@@ -1462,6 +1466,7 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
1462
1466
  kind: z.ZodEnum<{
1463
1467
  rental_contract: "rental_contract";
1464
1468
  rental_terms: "rental_terms";
1469
+ insurance_terms: "insurance_terms";
1465
1470
  sale_terms: "sale_terms";
1466
1471
  }>;
1467
1472
  title: z.ZodString;
@@ -1760,7 +1765,7 @@ export declare const findStorefrontProduct: (id: string, products: StorefrontPro
1760
1765
 
1761
1766
  export declare const findStorefrontProductBySlug: (slug: string, products: StorefrontProductsCollections) => StorefrontProduct | null;
1762
1767
 
1763
- export declare function Footer({ storeSlug, shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, timeZone, }: FooterProps): JSX.Element;
1768
+ export declare function Footer({ storeSlug, shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, timeZone, showInsuranceTerms, }: FooterProps): JSX.Element;
1764
1769
 
1765
1770
  declare type FooterProps = {
1766
1771
  storeSlug?: string;
@@ -1770,6 +1775,7 @@ declare type FooterProps = {
1770
1775
  openingHours?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHours"];
1771
1776
  openingHoursOverrides?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHoursOverrides"];
1772
1777
  timeZone?: string;
1778
+ showInsuranceTerms?: boolean;
1773
1779
  };
1774
1780
 
1775
1781
  export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
@@ -1922,6 +1928,7 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
1922
1928
  kind: z.ZodEnum<{
1923
1929
  rental_contract: "rental_contract";
1924
1930
  rental_terms: "rental_terms";
1931
+ insurance_terms: "insurance_terms";
1925
1932
  sale_terms: "sale_terms";
1926
1933
  }>;
1927
1934
  title: z.ZodString;
@@ -2046,6 +2053,8 @@ export declare type InsuranceQuoteItemInput = {
2046
2053
  };
2047
2054
  };
2048
2055
 
2056
+ export declare function InsuranceTermsPage(): JSX.Element;
2057
+
2049
2058
  export declare type IsoDate = z.infer<typeof isoDateSchema>;
2050
2059
 
2051
2060
  export declare const isoDateSchema: z.ZodString;
@@ -2387,6 +2396,13 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
2387
2396
  text: string;
2388
2397
  } | undefined;
2389
2398
  rentalTermsUpdatedAt?: string | null | undefined;
2399
+ insuranceTerms?: {
2400
+ version: 1;
2401
+ json: string;
2402
+ html: string;
2403
+ text: string;
2404
+ } | undefined;
2405
+ insuranceTermsUpdatedAt?: string | null | undefined;
2390
2406
  } | undefined;
2391
2407
  modules?: {
2392
2408
  reviews?: {
@@ -3893,6 +3909,13 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3893
3909
  text: z.ZodString;
3894
3910
  }, z.core.$strict>>;
3895
3911
  rentalTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3912
+ insuranceTerms: z.ZodOptional<z.ZodObject<{
3913
+ version: z.ZodLiteral<1>;
3914
+ json: z.ZodString;
3915
+ html: z.ZodString;
3916
+ text: z.ZodString;
3917
+ }, z.core.$strict>>;
3918
+ insuranceTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3896
3919
  }, z.core.$strip>>;
3897
3920
  modules: z.ZodOptional<z.ZodObject<{
3898
3921
  reviews: z.ZodOptional<z.ZodObject<{
@@ -4412,6 +4435,10 @@ export declare const storefrontEn: {
4412
4435
  rental_terms_description: string;
4413
4436
  rental_terms_effective_date: string;
4414
4437
  rental_terms_unavailable: string;
4438
+ insurance_terms_title: string;
4439
+ insurance_terms_description: string;
4440
+ insurance_terms_effective_date: string;
4441
+ insurance_terms_unavailable: string;
4415
4442
  footer_contact_title: string;
4416
4443
  footer_whatsapp_link: string;
4417
4444
  footer_hours_title: string;
@@ -4962,6 +4989,10 @@ export declare const storefrontFr: {
4962
4989
  rental_terms_description: string;
4963
4990
  rental_terms_effective_date: string;
4964
4991
  rental_terms_unavailable: string;
4992
+ insurance_terms_title: string;
4993
+ insurance_terms_description: string;
4994
+ insurance_terms_effective_date: string;
4995
+ insurance_terms_unavailable: string;
4965
4996
  footer_contact_title: string;
4966
4997
  footer_whatsapp_link: string;
4967
4998
  footer_hours_title: string;
@@ -5098,6 +5129,13 @@ export declare const storefrontInformationSchema: z.ZodObject<{
5098
5129
  text: z.ZodString;
5099
5130
  }, z.core.$strict>>;
5100
5131
  rentalTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5132
+ insuranceTerms: z.ZodOptional<z.ZodObject<{
5133
+ version: z.ZodLiteral<1>;
5134
+ json: z.ZodString;
5135
+ html: z.ZodString;
5136
+ text: z.ZodString;
5137
+ }, z.core.$strict>>;
5138
+ insuranceTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5101
5139
  }, z.core.$strip>;
5102
5140
 
5103
5141
  declare type StorefrontInsuranceCandidate = Pick<BikeProduct, "kind"> & {
@@ -6444,6 +6482,13 @@ export declare function useStorefrontConfig(): {
6444
6482
  text: string;
6445
6483
  } | undefined;
6446
6484
  rentalTermsUpdatedAt?: string | null | undefined;
6485
+ insuranceTerms?: {
6486
+ version: 1;
6487
+ json: string;
6488
+ html: string;
6489
+ text: string;
6490
+ } | undefined;
6491
+ insuranceTermsUpdatedAt?: string | null | undefined;
6447
6492
  } | undefined;
6448
6493
  modules?: {
6449
6494
  reviews?: {
@@ -6680,6 +6725,13 @@ export declare function useStorefrontConfig(): {
6680
6725
  text: string;
6681
6726
  } | undefined;
6682
6727
  rentalTermsUpdatedAt?: string | null | undefined;
6728
+ insuranceTerms?: {
6729
+ version: 1;
6730
+ json: string;
6731
+ html: string;
6732
+ text: string;
6733
+ } | undefined;
6734
+ insuranceTermsUpdatedAt?: string | null | undefined;
6683
6735
  } | undefined;
6684
6736
  modules?: {
6685
6737
  reviews?: {
package/dist/index.js CHANGED
@@ -82,14 +82,15 @@ import "./pages/ProductPage.js";
82
82
  import ci from "./pages/ItinerariesPage.js";
83
83
  import li, { loader as ui } from "./pages/ItineraryDetailsPage.js";
84
84
  import di from "./pages/RentalTermsPage.js";
85
+ import fi from "./pages/InsuranceTermsPage.js";
85
86
  import "./pages/CheckoutPage.js";
86
87
  import "./pages/CheckoutSuccessPage.js";
87
88
  import "./pages/NotFoundPage.js";
88
- import { accessories as fi } from "./data/accessories.js";
89
- import pi from "./data/bikes.js";
90
- import { contractSaleDocumentAcceptanceLevelSchema as mi, contractSaleDocumentAcceptanceRecordSchema as hi, contractSaleDocumentAcceptanceSchema as gi, contractSaleDocumentAddressSchema as _i, contractSaleDocumentAppendixKindSchema as vi, contractSaleDocumentAppendixSchema as yi, contractSaleDocumentContactSchema as bi, contractSaleDocumentKindSchema as xi, contractSaleDocumentLanguageCodeSchema as Si, contractSaleDocumentLanguageSchema as Ci, contractSaleDocumentLineItemSchema as wi, contractSaleDocumentRentalSchema as Ti, contractSaleDocumentSchema as Ei, contractSaleDocumentSignatureSchema as Di } from "./lib/contractSaleDocument.js";
91
- import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Oi, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as ki, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Ai, acceptContractSaleDocumentRequestSchema as ji, acceptContractSaleDocumentResponseSchema as Mi, contractSaleDocumentAcceptanceInputSchema as Ni, contractSaleDocumentAcceptanceRecordInputSchema as Pi, contractSaleDocumentApiAcceptanceRecordSchema as Fi, contractSaleDocumentApiAcceptanceSchema as Ii, contractSaleDocumentApiSchema as Li, contractSaleDocumentApiSignatureSchema as Ri, contractSaleDocumentReferenceSchema as zi, contractSaleDocumentReferenceTypeSchema as Bi, contractSaleDocumentSignatureInputSchema as Vi, downloadContractSaleDocumentPdfRequestSchema as Hi, getContractSaleDocumentRequestSchema as Ui, getContractSaleDocumentResponseSchema as Wi } from "./lib/contractSaleDocumentApi.js";
92
- import Gi from "./routes.js";
93
- import { loader as Ki } from "./StorefrontProvider.js";
94
- import { Select as qi, SelectContent as Ji, SelectGroup as Yi, SelectIcon as Xi, SelectItem as Zi, SelectItemIndicator as Qi, SelectItemText as $i, SelectLabel as ea, SelectScrollDownButton as ta, SelectScrollUpButton as na, SelectSeparator as ra, SelectTrigger as ia, SelectValue as aa } from "./ui/select.js";
95
- export { Oi as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Ur as AboutSection, Wr as AdminFloatingButton, Fe as BOOKING_SEARCH_KEYS, Yn as Badge, wr as BookingEndDateField, Tr as BookingEndTimeField, kr as BookingFlowSteps, Dr as BookingMobileDateDrawer, yr as BookingPeriodProvider, Or as BookingPeriodSelector, Sr as BookingStartDateField, Cr as BookingStartTimeField, Er as BookingTimeSlotsStatus, Zn as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, Yr as Card, Xr as CardAction, Zr as CardContent, Qr as CardDescription, $r as CardFooter, ei as CardHeader, ti as CardTitle, Vr as ContactSection, ai as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, ki as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, _r as DelayedPlaceholder, vr as DelayedReveal, jr as DeliveryAddressSelector, Jn as Footer, Mr as Form, Nr as FormControl, Pr as FormDescription, Fr as FormField, Ir as FormItem, Lr as FormLabel, Rr as FormMessage, Ai as GET_CONTRACT_SALE_DOCUMENT_ROUTE, lr as Header, Ar as Input, ci as ItinerariesPage, qr as ItinerariesSection, li as ItineraryDetailsPage, Gr as ItineraryListItem, Kr as ItineraryRouteMap, xr as Label, er as LanguageSelector, gr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, pr as PlatformFooter, fr as PoweredByLoczerBadge, ii as ProductPriceBadge, ni as ProductWarningNotice, Ft as ROUTE, oi as RadioGroup, si as RadioGroupItem, di as RentalTermsPage, Dn as STOREFRONT_AVAILABILITY_ROUTE, un as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, _e as STOREFRONT_HERO_MODES, Bn as STOREFRONT_IMAGE_ROUTE, Vt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Ht as STOREFRONT_ITINERARIES_LIST_ROUTE, Ut as STOREFRONT_ITINERARY_DETAIL_ROUTE, gn as STOREFRONT_PRODUCTS_ROUTE, Un as STOREFRONT_TIME_SLOTS_ROUTE, qi as Select, Ji as SelectContent, Yi as SelectGroup, Xi as SelectIcon, Zi as SelectItem, Qi as SelectItemIndicator, $i as SelectItemText, ea as SelectLabel, ta as SelectScrollDownButton, na as SelectScrollUpButton, ra as SelectSeparator, ia as SelectTrigger, aa as SelectValue, Jr as StepSectionTitle, ri as StorefrontCartPanel, bt as StorefrontCartProvider, tr as StorefrontContext, Ie as TIME_OPTIONS, Hr as TestimonialsSection, Br as Textarea, hr as WhatsAppFloatingButton, ji as acceptContractSaleDocumentRequestSchema, Mi as acceptContractSaleDocumentResponseSchema, fi as accessories, _ as accessoryProductSchema, Le as applyBookingParamsToSearch, de as assetIdSchema, Xn as badgeVariants, fe as baseAssetSchema, pe as baseAssetStatusSchema, me as baseBookingItemSchema, he as baseBookingSchema, ge as baseBookingStateSchema, v as bikeProductSchema, pi as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, Dt as buildPriceTierLabels, Ot as buildRentalPriceRows, On as buildStorefrontAvailabilityKey, Pt as buildStorefrontCartSummary, Vn as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, sn as buildWhatsAppHref, Qn as buttonVariants, kt as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, At as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, Ct as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, Ni as contractSaleDocumentAcceptanceInputSchema, mi as contractSaleDocumentAcceptanceLevelSchema, Pi as contractSaleDocumentAcceptanceRecordInputSchema, hi as contractSaleDocumentAcceptanceRecordSchema, gi as contractSaleDocumentAcceptanceSchema, _i as contractSaleDocumentAddressSchema, Fi as contractSaleDocumentApiAcceptanceRecordSchema, Ii as contractSaleDocumentApiAcceptanceSchema, Li as contractSaleDocumentApiSchema, Ri as contractSaleDocumentApiSignatureSchema, vi as contractSaleDocumentAppendixKindSchema, yi as contractSaleDocumentAppendixSchema, bi as contractSaleDocumentContactSchema, xi as contractSaleDocumentKindSchema, Si as contractSaleDocumentLanguageCodeSchema, Ci as contractSaleDocumentLanguageSchema, wi as contractSaleDocumentLineItemSchema, zi as contractSaleDocumentReferenceSchema, Bi as contractSaleDocumentReferenceTypeSchema, Ti as contractSaleDocumentRentalSchema, Ei as contractSaleDocumentSchema, Vi as contractSaleDocumentSignatureInputSchema, Di as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Re as createBookingPeriodConfigFromBookingEngineConfiguration, ze as createBookingPeriodConfigFromShopConfiguration, Be as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, kn as doesStorefrontAvailabilityDisplaySoldOut, Hi as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ot as findStorefrontInsurancePricingBike, st as findStorefrontProduct, ct as findStorefrontProductBySlug, wt as formatPriceMinor, jt as formatRentalUnitQuantity, Rt as formatStorefrontPhoneDisplay, Mt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, Tt as getAvailabilityVariant, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, lt as getCatalogProductBaseRateMinor, ut as getCatalogProductPaginationSort, dt as getCatalogProductSortFieldForPriceUnit, Ui as getContractSaleDocumentRequestSchema, Wi as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Et as getMinDayPriceMinor, Nt as getPricingUnitLabel, An as getStorefrontAvailabilityIssue, jn as getStorefrontAvailabilityStatus, ft as getStorefrontBaseDailyRateMinor, pt as getStorefrontCheckoutProductId, mt as getStorefrontProductSelectionDisplayName, ht as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Mn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, ui as itineraryDetailsLoader, Ki as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, Ge as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, Nn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, It as requestSchema, re as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, xt as resolveStorefrontCartItemProduct, zt as resolveStorefrontMapsHref, Bt as resolveStorefrontPhoneContact, cn as resolveStorefrontWhatsAppContact, ln as resolveStorefrontWhatsAppHref, Lt as responseSchema, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, In as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Ln as storefrontAvailabilityProductSchema, Pn as storefrontAvailabilityRequestSchema, Fn as storefrontAvailabilityResponseSchema, Rn as storefrontAvailabilityScheduleSchema, $n as storefrontButtonRadiusClassName, ve as storefrontCheckoutModeSchema, pn as storefrontCheckoutSubmitDeliveryRefinement, fn as storefrontCheckoutSubmitItemSchema, dn as storefrontCheckoutSubmitRequestBaseSchema, mn as storefrontCheckoutSubmitRequestSchema, hn as storefrontCheckoutSubmitResponseSchema, ye as storefrontConfigurationSchema, be as storefrontContentSchema, ur as storefrontEn, xe as storefrontFaqItemSchema, Se as storefrontFaqSchema, dr as storefrontFr, Ce as storefrontFulfillmentModeSchema, we as storefrontHeroModeSchema, Hn as storefrontImageRequestSchema, Te as storefrontInformationSchema, Wt as storefrontItinerariesFeaturedRequestSchema, Gt as storefrontItinerariesFeaturedResponseSchema, Kt as storefrontItinerariesListRequestSchema, qt as storefrontItinerariesListResponseSchema, Jt as storefrontItineraryBoundsSchema, Yt as storefrontItineraryCoordinateSchema, Xt as storefrontItineraryDetailRequestSchema, Zt as storefrontItineraryDetailResponseSchema, Qt as storefrontItineraryDetailSchema, $t as storefrontItineraryDifficultySchema, en as storefrontItineraryLocalizedStringSchema, tn as storefrontItineraryMetricsSchema, nn as storefrontItineraryPreviewSchema, rn as storefrontItineraryStepSchema, an as storefrontItinerarySummarySchema, on as storefrontItineraryTripTypeSchema, Ee as storefrontLocalizedRichTextSchema, De as storefrontModalMessageSchema, Oe as storefrontModulesSchema, _n as storefrontProductsRequestSchema, vn as storefrontProductsResponseSchema, yn as storefrontPublicAccessoryProductSchema, zn as storefrontPublicAvailabilityRecordSchema, bn as storefrontPublicBikeAvailabilityStatusSchema, xn as storefrontPublicBikeProductSchema, Sn as storefrontPublicProductDisplayModeSchema, Cn as storefrontPublicProductPriceSchema, wn as storefrontPublicProductVariantAttributeSchema, Tn as storefrontPublicProductVariantIdentifierSchema, En as storefrontPublicProductVariantSchema, ke as storefrontReviewsModuleSchema, Ae as storefrontRichTextSchema, Gi as storefrontRoutes, je as storefrontSettingsSchema, Me as storefrontShopSchema, Ne as storefrontStatusSchema, qn as storefrontTimeSlotJourneySchema, Kn as storefrontTimeSlotSchema, Wn as storefrontTimeSlotsRequestSchema, Gn as storefrontTimeSlotsResponseSchema, Pe as storefrontWorkspaceSchema, B as timeOfDaySchema, gt as toStorefrontAccessoryProducts, _t as toStorefrontBikeProducts, vt as toStorefrontBookingProducts, yt as toStorefrontBookingProductsCollections, br as useBookingPeriod, zr as useFormField, nr as useOptionalStorefront, rr as useStorefront, ir as useStorefrontBookingProducts, St as useStorefrontCart, ar as useStorefrontConfig, or as useStorefrontItineraries, sr as useStorefrontProducts, cr as useStorefrontWorkspaceLanguage, mr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
89
+ import { accessories as pi } from "./data/accessories.js";
90
+ import mi from "./data/bikes.js";
91
+ import { contractSaleDocumentAcceptanceLevelSchema as hi, contractSaleDocumentAcceptanceRecordSchema as gi, contractSaleDocumentAcceptanceSchema as _i, contractSaleDocumentAddressSchema as vi, contractSaleDocumentAppendixKindSchema as yi, contractSaleDocumentAppendixSchema as bi, contractSaleDocumentContactSchema as xi, contractSaleDocumentKindSchema as Si, contractSaleDocumentLanguageCodeSchema as Ci, contractSaleDocumentLanguageSchema as wi, contractSaleDocumentLineItemSchema as Ti, contractSaleDocumentRentalSchema as Ei, contractSaleDocumentSchema as Di, contractSaleDocumentSignatureSchema as Oi } from "./lib/contractSaleDocument.js";
92
+ import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as ki, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Ai, GET_CONTRACT_SALE_DOCUMENT_ROUTE as ji, acceptContractSaleDocumentRequestSchema as Mi, acceptContractSaleDocumentResponseSchema as Ni, contractSaleDocumentAcceptanceInputSchema as Pi, contractSaleDocumentAcceptanceRecordInputSchema as Fi, contractSaleDocumentApiAcceptanceRecordSchema as Ii, contractSaleDocumentApiAcceptanceSchema as Li, contractSaleDocumentApiSchema as Ri, contractSaleDocumentApiSignatureSchema as zi, contractSaleDocumentReferenceSchema as Bi, contractSaleDocumentReferenceTypeSchema as Vi, contractSaleDocumentSignatureInputSchema as Hi, downloadContractSaleDocumentPdfRequestSchema as Ui, getContractSaleDocumentRequestSchema as Wi, getContractSaleDocumentResponseSchema as Gi } from "./lib/contractSaleDocumentApi.js";
93
+ import Ki from "./routes.js";
94
+ import { loader as qi } from "./StorefrontProvider.js";
95
+ import { Select as Ji, SelectContent as Yi, SelectGroup as Xi, SelectIcon as Zi, SelectItem as Qi, SelectItemIndicator as $i, SelectItemText as ea, SelectLabel as ta, SelectScrollDownButton as na, SelectScrollUpButton as ra, SelectSeparator as ia, SelectTrigger as aa, SelectValue as oa } from "./ui/select.js";
96
+ export { ki as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Ur as AboutSection, Wr as AdminFloatingButton, Fe as BOOKING_SEARCH_KEYS, Yn as Badge, wr as BookingEndDateField, Tr as BookingEndTimeField, kr as BookingFlowSteps, Dr as BookingMobileDateDrawer, yr as BookingPeriodProvider, Or as BookingPeriodSelector, Sr as BookingStartDateField, Cr as BookingStartTimeField, Er as BookingTimeSlotsStatus, Zn as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, Yr as Card, Xr as CardAction, Zr as CardContent, Qr as CardDescription, $r as CardFooter, ei as CardHeader, ti as CardTitle, Vr as ContactSection, ai as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Ai as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, _r as DelayedPlaceholder, vr as DelayedReveal, jr as DeliveryAddressSelector, Jn as Footer, Mr as Form, Nr as FormControl, Pr as FormDescription, Fr as FormField, Ir as FormItem, Lr as FormLabel, Rr as FormMessage, ji as GET_CONTRACT_SALE_DOCUMENT_ROUTE, lr as Header, Ar as Input, fi as InsuranceTermsPage, ci as ItinerariesPage, qr as ItinerariesSection, li as ItineraryDetailsPage, Gr as ItineraryListItem, Kr as ItineraryRouteMap, xr as Label, er as LanguageSelector, gr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, pr as PlatformFooter, fr as PoweredByLoczerBadge, ii as ProductPriceBadge, ni as ProductWarningNotice, Ft as ROUTE, oi as RadioGroup, si as RadioGroupItem, di as RentalTermsPage, Dn as STOREFRONT_AVAILABILITY_ROUTE, un as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, _e as STOREFRONT_HERO_MODES, Bn as STOREFRONT_IMAGE_ROUTE, Vt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Ht as STOREFRONT_ITINERARIES_LIST_ROUTE, Ut as STOREFRONT_ITINERARY_DETAIL_ROUTE, gn as STOREFRONT_PRODUCTS_ROUTE, Un as STOREFRONT_TIME_SLOTS_ROUTE, Ji as Select, Yi as SelectContent, Xi as SelectGroup, Zi as SelectIcon, Qi as SelectItem, $i as SelectItemIndicator, ea as SelectItemText, ta as SelectLabel, na as SelectScrollDownButton, ra as SelectScrollUpButton, ia as SelectSeparator, aa as SelectTrigger, oa as SelectValue, Jr as StepSectionTitle, ri as StorefrontCartPanel, bt as StorefrontCartProvider, tr as StorefrontContext, Ie as TIME_OPTIONS, Hr as TestimonialsSection, Br as Textarea, hr as WhatsAppFloatingButton, Mi as acceptContractSaleDocumentRequestSchema, Ni as acceptContractSaleDocumentResponseSchema, pi as accessories, _ as accessoryProductSchema, Le as applyBookingParamsToSearch, de as assetIdSchema, Xn as badgeVariants, fe as baseAssetSchema, pe as baseAssetStatusSchema, me as baseBookingItemSchema, he as baseBookingSchema, ge as baseBookingStateSchema, v as bikeProductSchema, mi as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, Dt as buildPriceTierLabels, Ot as buildRentalPriceRows, On as buildStorefrontAvailabilityKey, Pt as buildStorefrontCartSummary, Vn as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, sn as buildWhatsAppHref, Qn as buttonVariants, kt as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, At as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, Ct as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, Pi as contractSaleDocumentAcceptanceInputSchema, hi as contractSaleDocumentAcceptanceLevelSchema, Fi as contractSaleDocumentAcceptanceRecordInputSchema, gi as contractSaleDocumentAcceptanceRecordSchema, _i as contractSaleDocumentAcceptanceSchema, vi as contractSaleDocumentAddressSchema, Ii as contractSaleDocumentApiAcceptanceRecordSchema, Li as contractSaleDocumentApiAcceptanceSchema, Ri as contractSaleDocumentApiSchema, zi as contractSaleDocumentApiSignatureSchema, yi as contractSaleDocumentAppendixKindSchema, bi as contractSaleDocumentAppendixSchema, xi as contractSaleDocumentContactSchema, Si as contractSaleDocumentKindSchema, Ci as contractSaleDocumentLanguageCodeSchema, wi as contractSaleDocumentLanguageSchema, Ti as contractSaleDocumentLineItemSchema, Bi as contractSaleDocumentReferenceSchema, Vi as contractSaleDocumentReferenceTypeSchema, Ei as contractSaleDocumentRentalSchema, Di as contractSaleDocumentSchema, Hi as contractSaleDocumentSignatureInputSchema, Oi as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Re as createBookingPeriodConfigFromBookingEngineConfiguration, ze as createBookingPeriodConfigFromShopConfiguration, Be as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, kn as doesStorefrontAvailabilityDisplaySoldOut, Ui as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ot as findStorefrontInsurancePricingBike, st as findStorefrontProduct, ct as findStorefrontProductBySlug, wt as formatPriceMinor, jt as formatRentalUnitQuantity, Rt as formatStorefrontPhoneDisplay, Mt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, Tt as getAvailabilityVariant, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, lt as getCatalogProductBaseRateMinor, ut as getCatalogProductPaginationSort, dt as getCatalogProductSortFieldForPriceUnit, Wi as getContractSaleDocumentRequestSchema, Gi as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Et as getMinDayPriceMinor, Nt as getPricingUnitLabel, An as getStorefrontAvailabilityIssue, jn as getStorefrontAvailabilityStatus, ft as getStorefrontBaseDailyRateMinor, pt as getStorefrontCheckoutProductId, mt as getStorefrontProductSelectionDisplayName, ht as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Mn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, ui as itineraryDetailsLoader, qi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, Ge as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, Nn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, It as requestSchema, re as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, xt as resolveStorefrontCartItemProduct, zt as resolveStorefrontMapsHref, Bt as resolveStorefrontPhoneContact, cn as resolveStorefrontWhatsAppContact, ln as resolveStorefrontWhatsAppHref, Lt as responseSchema, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, In as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Ln as storefrontAvailabilityProductSchema, Pn as storefrontAvailabilityRequestSchema, Fn as storefrontAvailabilityResponseSchema, Rn as storefrontAvailabilityScheduleSchema, $n as storefrontButtonRadiusClassName, ve as storefrontCheckoutModeSchema, pn as storefrontCheckoutSubmitDeliveryRefinement, fn as storefrontCheckoutSubmitItemSchema, dn as storefrontCheckoutSubmitRequestBaseSchema, mn as storefrontCheckoutSubmitRequestSchema, hn as storefrontCheckoutSubmitResponseSchema, ye as storefrontConfigurationSchema, be as storefrontContentSchema, ur as storefrontEn, xe as storefrontFaqItemSchema, Se as storefrontFaqSchema, dr as storefrontFr, Ce as storefrontFulfillmentModeSchema, we as storefrontHeroModeSchema, Hn as storefrontImageRequestSchema, Te as storefrontInformationSchema, Wt as storefrontItinerariesFeaturedRequestSchema, Gt as storefrontItinerariesFeaturedResponseSchema, Kt as storefrontItinerariesListRequestSchema, qt as storefrontItinerariesListResponseSchema, Jt as storefrontItineraryBoundsSchema, Yt as storefrontItineraryCoordinateSchema, Xt as storefrontItineraryDetailRequestSchema, Zt as storefrontItineraryDetailResponseSchema, Qt as storefrontItineraryDetailSchema, $t as storefrontItineraryDifficultySchema, en as storefrontItineraryLocalizedStringSchema, tn as storefrontItineraryMetricsSchema, nn as storefrontItineraryPreviewSchema, rn as storefrontItineraryStepSchema, an as storefrontItinerarySummarySchema, on as storefrontItineraryTripTypeSchema, Ee as storefrontLocalizedRichTextSchema, De as storefrontModalMessageSchema, Oe as storefrontModulesSchema, _n as storefrontProductsRequestSchema, vn as storefrontProductsResponseSchema, yn as storefrontPublicAccessoryProductSchema, zn as storefrontPublicAvailabilityRecordSchema, bn as storefrontPublicBikeAvailabilityStatusSchema, xn as storefrontPublicBikeProductSchema, Sn as storefrontPublicProductDisplayModeSchema, Cn as storefrontPublicProductPriceSchema, wn as storefrontPublicProductVariantAttributeSchema, Tn as storefrontPublicProductVariantIdentifierSchema, En as storefrontPublicProductVariantSchema, ke as storefrontReviewsModuleSchema, Ae as storefrontRichTextSchema, Ki as storefrontRoutes, je as storefrontSettingsSchema, Me as storefrontShopSchema, Ne as storefrontStatusSchema, qn as storefrontTimeSlotJourneySchema, Kn as storefrontTimeSlotSchema, Wn as storefrontTimeSlotsRequestSchema, Gn as storefrontTimeSlotsResponseSchema, Pe as storefrontWorkspaceSchema, B as timeOfDaySchema, gt as toStorefrontAccessoryProducts, _t as toStorefrontBikeProducts, vt as toStorefrontBookingProducts, yt as toStorefrontBookingProductsCollections, br as useBookingPeriod, zr as useFormField, nr as useOptionalStorefront, rr as useStorefront, ir as useStorefrontBookingProducts, St as useStorefrontCart, ar as useStorefrontConfig, or as useStorefrontItineraries, sr as useStorefrontProducts, cr as useStorefrontWorkspaceLanguage, mr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
@@ -44,6 +44,7 @@ export declare const contractSaleDocumentTermArticleSchema: z.ZodObject<{
44
44
  export declare const contractSaleDocumentAppendixKindSchema: z.ZodEnum<{
45
45
  rental_contract: "rental_contract";
46
46
  rental_terms: "rental_terms";
47
+ insurance_terms: "insurance_terms";
47
48
  sale_terms: "sale_terms";
48
49
  }>;
49
50
  export declare const contractSaleDocumentAppendixSchema: z.ZodObject<{
@@ -51,6 +52,7 @@ export declare const contractSaleDocumentAppendixSchema: z.ZodObject<{
51
52
  kind: z.ZodEnum<{
52
53
  rental_contract: "rental_contract";
53
54
  rental_terms: "rental_terms";
55
+ insurance_terms: "insurance_terms";
54
56
  sale_terms: "sale_terms";
55
57
  }>;
56
58
  title: z.ZodString;
@@ -208,6 +210,7 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
208
210
  kind: z.ZodEnum<{
209
211
  rental_contract: "rental_contract";
210
212
  rental_terms: "rental_terms";
213
+ insurance_terms: "insurance_terms";
211
214
  sale_terms: "sale_terms";
212
215
  }>;
213
216
  title: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"contractSaleDocument.d.ts","sourceRoot":"","sources":["../../src/lib/contractSaleDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAA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,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAC7F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAA;AAC3G,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AACjG,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAC/F,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAA;AAC7G,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AACrG,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA"}
@@ -25,6 +25,7 @@ var n = t.string().trim().min(1), r = t.object({
25
25
  }), o = t.enum([
26
26
  "rental_contract",
27
27
  "rental_terms",
28
+ "insurance_terms",
28
29
  "sale_terms"
29
30
  ]), s = t.object({
30
31
  id: t.string().trim().min(1),
@@ -122,6 +122,7 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
122
122
  kind: z.ZodEnum<{
123
123
  rental_contract: "rental_contract";
124
124
  rental_terms: "rental_terms";
125
+ insurance_terms: "insurance_terms";
125
126
  sale_terms: "sale_terms";
126
127
  }>;
127
128
  title: z.ZodString;
@@ -289,6 +290,7 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
289
290
  kind: z.ZodEnum<{
290
291
  rental_contract: "rental_contract";
291
292
  rental_terms: "rental_terms";
293
+ insurance_terms: "insurance_terms";
292
294
  sale_terms: "sale_terms";
293
295
  }>;
294
296
  title: z.ZodString;
@@ -443,6 +445,7 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
443
445
  kind: z.ZodEnum<{
444
446
  rental_contract: "rental_contract";
445
447
  rental_terms: "rental_terms";
448
+ insurance_terms: "insurance_terms";
446
449
  sale_terms: "sale_terms";
447
450
  }>;
448
451
  title: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"contractSaleDocumentApi.d.ts","sourceRoot":"","sources":["../../src/lib/contractSaleDocumentApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsBvB,eAAO,MAAM,uCAAuC;;;EAA8B,CAAA;AAClF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAEvG,eAAO,MAAM,mCAAmC;;;;;;;;iBAK9C,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAE/F,eAAO,MAAM,uCAAuC;;;iBAElD,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAEvG,eAAO,MAAM,sCAAsC;;;;;;iBAEjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,6CAA6C;;;;;;;;;2BAGxD,CAAA;AACF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAA;AAEnH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQxC,CAA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,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAA;AAEnG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;iBAMlD,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAEvG,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKnD,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { StorefrontRichText } from '../storefrontSchemas';
2
+ export declare function hasStorefrontRichTextContent(value: StorefrontRichText | null | undefined): boolean;
3
+ //# sourceMappingURL=richText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"richText.d.ts","sourceRoot":"","sources":["../../src/lib/richText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAqB9D,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,GAC3C,OAAO,CAUT"}
@@ -0,0 +1,19 @@
1
+ //#region src/lib/richText.ts
2
+ function e(e) {
3
+ return typeof e == "object" && !!e && !Array.isArray(e);
4
+ }
5
+ function t(n) {
6
+ return n.type === "text" ? typeof n.text == "string" && n.text.replace(/\u00a0/g, " ").trim().length > 0 : n.type === "image" || n.type === "horizontalRule" || n.type === "table" || Array.isArray(n.content) && n.content.some((n) => e(n) && t(n));
7
+ }
8
+ function n(n) {
9
+ if (!n) return !1;
10
+ if (n.text.replace(/\u00a0/g, " ").trim().length > 0) return !0;
11
+ try {
12
+ let r = JSON.parse(n.json);
13
+ return e(r) && t(r);
14
+ } catch {
15
+ return !1;
16
+ }
17
+ }
18
+ //#endregion
19
+ export { n as hasStorefrontRichTextContent };
@@ -82,7 +82,7 @@ export declare const loader: ({ ctx, params, request }: ContractSaleDocumentLoad
82
82
  }[];
83
83
  appendices: {
84
84
  id: string;
85
- kind: "rental_contract" | "rental_terms" | "sale_terms";
85
+ kind: "rental_contract" | "rental_terms" | "insurance_terms" | "sale_terms";
86
86
  title: string;
87
87
  articles: {
88
88
  id: string;
@@ -0,0 +1,2 @@
1
+ export default function InsuranceTermsPage(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=InsuranceTermsPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InsuranceTermsPage.d.ts","sourceRoot":"","sources":["../../src/pages/InsuranceTermsPage.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAsBzC"}
@@ -0,0 +1,22 @@
1
+ import { useStorefront as e } from "../StorefrontContext.js";
2
+ import { hasStorefrontRichTextContent as t } from "../lib/richText.js";
3
+ import { StorefrontInformationDocument as n, formatStorefrontInformationDocumentDate as r } from "../components/StorefrontInformationDocument/index.js";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import { useTranslation as a } from "react-i18next";
6
+ //#region src/pages/InsuranceTermsPage.tsx
7
+ function o() {
8
+ let { t: o, i18n: s } = a(), { storefrontConfiguration: c } = e(), l = c.information?.insuranceTerms, u = t(l) ? l?.html.trim() ?? "" : "", d = r({
9
+ language: s.resolvedLanguage || s.language || "en",
10
+ timeZone: c.shop.timeZone,
11
+ value: c.information?.insuranceTermsUpdatedAt
12
+ });
13
+ return /* @__PURE__ */ i(n, {
14
+ title: o("insurance_terms_title"),
15
+ description: o("insurance_terms_description", { shop_name: c.shop.name }),
16
+ effectiveDateLabel: d ? o("insurance_terms_effective_date", { date: d }) : void 0,
17
+ contentHtml: u,
18
+ unavailableLabel: o("insurance_terms_unavailable")
19
+ });
20
+ }
21
+ //#endregion
22
+ export { o as default };
@@ -1 +1 @@
1
- {"version":3,"file":"RentalTermsPage.d.ts","sourceRoot":"","sources":["../../src/pages/RentalTermsPage.tsx"],"names":[],"mappings":"AA8CA,MAAM,CAAC,OAAO,UAAU,eAAe,4CA8CtC"}
1
+ {"version":3,"file":"RentalTermsPage.d.ts","sourceRoot":"","sources":["../../src/pages/RentalTermsPage.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,eAAe,4CAoBtC"}
@@ -1,52 +1,21 @@
1
1
  import { useStorefront as e } from "../StorefrontContext.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { useTranslation as r } from "react-i18next";
4
- import { cn as i } from "@rpcbase/ui";
2
+ import { StorefrontInformationDocument as t, formatStorefrontInformationDocumentDate as n } from "../components/StorefrontInformationDocument/index.js";
3
+ import { jsx as r } from "react/jsx-runtime";
4
+ import { useTranslation as i } from "react-i18next";
5
5
  //#region src/pages/RentalTermsPage.tsx
6
- var a = i("mt-10 text-[0.9375rem] leading-7 text-slate-700 sm:mt-12 sm:text-base sm:leading-8", "[&_a]:font-medium [&_a]:text-primary [&_a]:underline [&_a]:decoration-primary/30 [&_a]:underline-offset-4 [&_a:hover]:decoration-primary", "[&_blockquote]:my-6 [&_blockquote]:border-l-2 [&_blockquote]:border-slate-300 [&_blockquote]:pl-5 [&_blockquote]:text-slate-600", "[&_code]:rounded [&_code]:bg-slate-100 [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:text-sm [&_code]:text-slate-900", "[&_h1]:mt-10 [&_h1]:border-t [&_h1]:border-slate-200 [&_h1]:pt-8 [&_h1]:font-serif [&_h1]:text-2xl [&_h1]:font-normal [&_h1]:leading-tight [&_h1]:tracking-tight [&_h1]:text-slate-950 sm:[&_h1]:mt-12 sm:[&_h1]:pt-9 sm:[&_h1]:text-3xl", "[&_h1:first-child]:mt-0 [&_h1:first-child]:border-t-0 [&_h1:first-child]:pt-0", "[&_h2]:mt-10 [&_h2]:border-t [&_h2]:border-slate-200 [&_h2]:pt-8 [&_h2]:font-serif [&_h2]:text-xl [&_h2]:font-normal [&_h2]:leading-tight [&_h2]:tracking-tight [&_h2]:text-slate-950 sm:[&_h2]:mt-12 sm:[&_h2]:pt-9 sm:[&_h2]:text-2xl", "[&_h2:first-child]:mt-0 [&_h2:first-child]:border-t-0 [&_h2:first-child]:pt-0", "[&_h3]:mt-8 [&_h3]:font-serif [&_h3]:text-lg [&_h3]:font-normal [&_h3]:leading-tight [&_h3]:tracking-tight [&_h3]:text-slate-950", "[&_hr]:my-10 [&_hr]:border-slate-200", "[&_img]:my-8 [&_img]:max-w-full", "[&_li]:pl-1 [&_ol]:my-5 [&_ol]:list-decimal [&_ol]:space-y-2 [&_ol]:pl-6", "[&_p]:my-4 [&_p]:whitespace-pre-wrap", "[&_strong]:font-semibold [&_strong]:text-slate-950", "[&_table]:my-8 [&_table]:w-full [&_table]:border-collapse [&_table]:text-sm", "[&_td]:border [&_td]:border-slate-200 [&_td]:p-3 [&_td]:align-top", "[&_th]:border [&_th]:border-slate-200 [&_th]:bg-slate-50 [&_th]:p-3 [&_th]:text-left [&_th]:font-semibold [&_th]:text-slate-950", "[&_ul]:my-5 [&_ul]:list-disc [&_ul]:space-y-2 [&_ul]:pl-6"), o = ({ language: e, timeZone: t, value: n }) => n ? new Intl.DateTimeFormat(e, {
7
- day: "numeric",
8
- month: "long",
9
- year: "numeric",
10
- timeZone: t || "UTC"
11
- }).format(new Date(n)) : "";
12
- function s() {
13
- let { t: s, i18n: c } = r(), { storefrontConfiguration: l } = e(), u = l.information?.rentalTerms, d = u?.text.trim() ? u.html.trim() : "", f = o({
14
- language: c.resolvedLanguage || c.language || "en",
15
- timeZone: l.shop.timeZone,
16
- value: l.information?.rentalTermsUpdatedAt
6
+ function a() {
7
+ let { t: a, i18n: o } = i(), { storefrontConfiguration: s } = e(), c = s.information?.rentalTerms, l = c?.text.trim() ? c.html.trim() : "", u = n({
8
+ language: o.resolvedLanguage || o.language || "en",
9
+ timeZone: s.shop.timeZone,
10
+ value: s.information?.rentalTermsUpdatedAt
17
11
  });
18
- return /* @__PURE__ */ t("section", {
19
- className: "min-h-[70vh] bg-white",
20
- children: /* @__PURE__ */ t("div", {
21
- className: "mx-auto max-w-7xl px-4 sm:px-6",
22
- children: /* @__PURE__ */ n("article", {
23
- className: "mx-auto max-w-3xl py-10 sm:py-14",
24
- children: [/* @__PURE__ */ n("header", {
25
- className: "border-b border-slate-200 pb-8 sm:pb-10",
26
- children: [
27
- f ? /* @__PURE__ */ t("p", {
28
- className: "text-sm text-slate-500",
29
- children: /* @__PURE__ */ t("span", { children: s("rental_terms_effective_date", { date: f }) })
30
- }) : null,
31
- /* @__PURE__ */ t("h1", {
32
- className: i("font-serif text-4xl font-normal leading-tight tracking-tight text-slate-950 sm:text-5xl", f && "mt-3"),
33
- children: /* @__PURE__ */ t("span", { children: s("rental_terms_title") })
34
- }),
35
- /* @__PURE__ */ t("p", {
36
- className: "mt-4 max-w-2xl text-base leading-7 text-slate-600 sm:text-lg sm:leading-8",
37
- children: /* @__PURE__ */ t("span", { children: s("rental_terms_description", { shop_name: l.shop.name }) })
38
- })
39
- ]
40
- }), d ? /* @__PURE__ */ t("div", {
41
- className: a,
42
- dangerouslySetInnerHTML: { __html: d }
43
- }) : /* @__PURE__ */ t("p", {
44
- className: "mt-10 border-l-2 border-slate-300 pl-5 text-base leading-8 text-slate-600 sm:mt-12",
45
- children: /* @__PURE__ */ t("span", { children: s("rental_terms_unavailable") })
46
- })]
47
- })
48
- })
12
+ return /* @__PURE__ */ r(t, {
13
+ title: a("rental_terms_title"),
14
+ description: a("rental_terms_description", { shop_name: s.shop.name }),
15
+ effectiveDateLabel: u ? a("rental_terms_effective_date", { date: u }) : void 0,
16
+ contentHtml: l,
17
+ unavailableLabel: a("rental_terms_unavailable")
49
18
  });
50
19
  }
51
20
  //#endregion
52
- export { s as default };
21
+ export { a as default };
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.tsx"],"names":[],"mappings":";AAiCA,wBAyBC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.tsx"],"names":[],"mappings":";AAkCA,wBA0BC"}
package/dist/routes.js CHANGED
@@ -3,10 +3,10 @@ import t from "./pages/ErrorPage.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { Route as i, lazyRoute as a } from "@rpcbase/router";
5
5
  //#region src/routes.tsx
6
- var o = a(() => import("./StorefrontProvider.js")), s = a(() => import("./pages/HomePage.js")), c = a(() => import("./pages/BookingPage.js")), l = a(() => import("./pages/ProductPage.js")), u = a(() => import("./pages/ItinerariesPage.js")), d = a(() => import("./pages/ItineraryDetailsPage.js")), f = a(() => import("./pages/RentalTermsPage.js")), p = a(() => import("./pages/CheckoutPage.js")), m = a(() => import("./pages/CheckoutPaymentPage.js")), h = a(() => import("./pages/CheckoutSuccessPage.js")), g = a(() => import("./pages/ContractSaleDocumentPage.js")), _ = a(() => import("./pages/PaymentLinkPage.js")), v = a(() => import("./pages/PaymentLinkSuccessPage.js")), y = a(() => import("./pages/NotFoundPage.js")), b = ({ currentParams: e, nextParams: t, defaultShouldRevalidate: n }) => e.storeSlug !== t.storeSlug && n, x = /* @__PURE__ */ r(i, {
6
+ var o = a(() => import("./StorefrontProvider.js")), s = a(() => import("./pages/HomePage.js")), c = a(() => import("./pages/BookingPage.js")), l = a(() => import("./pages/ProductPage.js")), u = a(() => import("./pages/ItinerariesPage.js")), d = a(() => import("./pages/ItineraryDetailsPage.js")), f = a(() => import("./pages/RentalTermsPage.js")), p = a(() => import("./pages/InsuranceTermsPage.js")), m = a(() => import("./pages/CheckoutPage.js")), h = a(() => import("./pages/CheckoutPaymentPage.js")), g = a(() => import("./pages/CheckoutSuccessPage.js")), _ = a(() => import("./pages/ContractSaleDocumentPage.js")), v = a(() => import("./pages/PaymentLinkPage.js")), y = a(() => import("./pages/PaymentLinkSuccessPage.js")), b = a(() => import("./pages/NotFoundPage.js")), x = ({ currentParams: e, nextParams: t, defaultShouldRevalidate: n }) => e.storeSlug !== t.storeSlug && n, S = /* @__PURE__ */ r(i, {
7
7
  path: ":storeSlug/*",
8
8
  ...o,
9
- shouldRevalidate: b,
9
+ shouldRevalidate: x,
10
10
  errorElement: /* @__PURE__ */ n(e, { children: /* @__PURE__ */ n(t, {}) }),
11
11
  children: [
12
12
  /* @__PURE__ */ n(i, {
@@ -34,34 +34,38 @@ var o = a(() => import("./StorefrontProvider.js")), s = a(() => import("./pages/
34
34
  ...f
35
35
  }),
36
36
  /* @__PURE__ */ n(i, {
37
- path: "checkout",
37
+ path: "insurance-terms",
38
38
  ...p
39
39
  }),
40
40
  /* @__PURE__ */ n(i, {
41
- path: "checkout/payment",
41
+ path: "checkout",
42
42
  ...m
43
43
  }),
44
44
  /* @__PURE__ */ n(i, {
45
- path: "checkout/success",
45
+ path: "checkout/payment",
46
46
  ...h
47
47
  }),
48
48
  /* @__PURE__ */ n(i, {
49
- path: "docs/:referenceId/:saleDocumentId",
49
+ path: "checkout/success",
50
50
  ...g
51
51
  }),
52
52
  /* @__PURE__ */ n(i, {
53
- path: "secure-payment-link/:token",
53
+ path: "docs/:referenceId/:saleDocumentId",
54
54
  ..._
55
55
  }),
56
56
  /* @__PURE__ */ n(i, {
57
- path: "secure-payment-link/:token/success",
57
+ path: "secure-payment-link/:token",
58
58
  ...v
59
59
  }),
60
60
  /* @__PURE__ */ n(i, {
61
- path: "*",
61
+ path: "secure-payment-link/:token/success",
62
62
  ...y
63
+ }),
64
+ /* @__PURE__ */ n(i, {
65
+ path: "*",
66
+ ...b
63
67
  })
64
68
  ]
65
69
  });
66
70
  //#endregion
67
- export { x as default };
71
+ export { S as default };
@@ -19,6 +19,13 @@ export declare const storefrontInformationSchema: z.ZodObject<{
19
19
  text: z.ZodString;
20
20
  }, z.core.$strict>>;
21
21
  rentalTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ insuranceTerms: z.ZodOptional<z.ZodObject<{
23
+ version: z.ZodLiteral<1>;
24
+ json: z.ZodString;
25
+ html: z.ZodString;
26
+ text: z.ZodString;
27
+ }, z.core.$strict>>;
28
+ insuranceTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
29
  }, z.core.$strip>;
23
30
  export type StorefrontInformation = z.infer<typeof storefrontInformationSchema>;
24
31
  export declare const storefrontStatusSchema: z.ZodEnum<{
@@ -606,6 +613,13 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
606
613
  text: z.ZodString;
607
614
  }, z.core.$strict>>;
608
615
  rentalTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ insuranceTerms: z.ZodOptional<z.ZodObject<{
617
+ version: z.ZodLiteral<1>;
618
+ json: z.ZodString;
619
+ html: z.ZodString;
620
+ text: z.ZodString;
621
+ }, z.core.$strict>>;
622
+ insuranceTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
623
  }, z.core.$strip>>;
610
624
  modules: z.ZodOptional<z.ZodObject<{
611
625
  reviews: z.ZodOptional<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"storefrontSchemas.d.ts","sourceRoot":"","sources":["../src/storefrontSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA0BvB,eAAO,MAAM,wBAAwB;;;;;kBAO1B,CAAA;AACX,eAAO,MAAM,iCAAiC;;;;;mBAE5C,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;iBAGtC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AA0C/E,eAAO,MAAM,sBAAsB;;;EAAuC,CAAA;AAC1E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,e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AEvE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
@@ -15,7 +15,9 @@ var i = r.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone n
15
15
  text: r.string()
16
16
  }).strict(), l = r.record(r.string().min(2), c).refine((e) => Object.keys(e).length > 0, { message: "Add at least one translation." }), u = r.object({
17
17
  rentalTerms: c.optional(),
18
- rentalTermsUpdatedAt: r.string().datetime({ offset: !0 }).nullable().optional()
18
+ rentalTermsUpdatedAt: r.string().datetime({ offset: !0 }).nullable().optional(),
19
+ insuranceTerms: c.optional(),
20
+ insuranceTermsUpdatedAt: r.string().datetime({ offset: !0 }).nullable().optional()
19
21
  }), d = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), f = (e) => {
20
22
  let t = e.trim(), n = t.split(/\n+/).map((e) => e.trim()).filter(Boolean), r = n.length > 0 ? n.map((e) => ({
21
23
  type: "paragraph",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loczer/storefront-sdk",
3
- "version": "0.223.0",
3
+ "version": "0.224.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"