@loczer/storefront-sdk 0.239.0 → 0.240.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 +54 -0
- package/dist/StorefrontContext.d.ts.map +1 -1
- package/dist/StorefrontProvider.d.ts +27 -0
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +1 -1
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/SignatureModal.js +79 -54
- package/dist/components/FaqSection/index.d.ts.map +1 -1
- package/dist/components/FaqSection/index.js +44 -26
- package/dist/components/SignatureInput/index.js +2 -1
- package/dist/components/SignatureInput.d.ts.map +1 -1
- package/dist/components/StorefrontInformationDocument/index.d.ts +4 -0
- package/dist/components/StorefrontInformationDocument/index.d.ts.map +1 -1
- package/dist/components/StorefrontInformationDocument/index.js +20 -11
- package/dist/i18n/en.js +1 -1
- package/dist/i18n/fr.js +1 -1
- package/dist/index.d.ts +172 -0
- package/dist/index.js +73 -73
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +152 -151
- package/dist/pages/InsuranceTermsPage.d.ts.map +1 -1
- package/dist/pages/InsuranceTermsPage.js +18 -16
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +2 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.js +17 -14
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +89 -0
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +19 -15
- package/package.json +1 -1
|
@@ -176,6 +176,15 @@ export declare function useStorefrontConfig(): {
|
|
|
176
176
|
updatedAt: Date;
|
|
177
177
|
autoTranslated?: boolean | undefined;
|
|
178
178
|
}>;
|
|
179
|
+
additionalLink?: {
|
|
180
|
+
label: Record<string, {
|
|
181
|
+
[x: string]: unknown;
|
|
182
|
+
value: string;
|
|
183
|
+
updatedAt: Date;
|
|
184
|
+
autoTranslated?: boolean | undefined;
|
|
185
|
+
}>;
|
|
186
|
+
href: string;
|
|
187
|
+
} | undefined;
|
|
179
188
|
}[];
|
|
180
189
|
deliveries: {
|
|
181
190
|
id: string;
|
|
@@ -191,6 +200,15 @@ export declare function useStorefrontConfig(): {
|
|
|
191
200
|
updatedAt: Date;
|
|
192
201
|
autoTranslated?: boolean | undefined;
|
|
193
202
|
}>;
|
|
203
|
+
additionalLink?: {
|
|
204
|
+
label: Record<string, {
|
|
205
|
+
[x: string]: unknown;
|
|
206
|
+
value: string;
|
|
207
|
+
updatedAt: Date;
|
|
208
|
+
autoTranslated?: boolean | undefined;
|
|
209
|
+
}>;
|
|
210
|
+
href: string;
|
|
211
|
+
} | undefined;
|
|
194
212
|
}[];
|
|
195
213
|
booking: {
|
|
196
214
|
id: string;
|
|
@@ -206,6 +224,15 @@ export declare function useStorefrontConfig(): {
|
|
|
206
224
|
updatedAt: Date;
|
|
207
225
|
autoTranslated?: boolean | undefined;
|
|
208
226
|
}>;
|
|
227
|
+
additionalLink?: {
|
|
228
|
+
label: Record<string, {
|
|
229
|
+
[x: string]: unknown;
|
|
230
|
+
value: string;
|
|
231
|
+
updatedAt: Date;
|
|
232
|
+
autoTranslated?: boolean | undefined;
|
|
233
|
+
}>;
|
|
234
|
+
href: string;
|
|
235
|
+
} | undefined;
|
|
209
236
|
}[];
|
|
210
237
|
};
|
|
211
238
|
tagline?: Record<string, {
|
|
@@ -418,6 +445,15 @@ export declare function useStorefrontConfig(): {
|
|
|
418
445
|
updatedAt: Date;
|
|
419
446
|
autoTranslated?: boolean | undefined;
|
|
420
447
|
}>;
|
|
448
|
+
additionalLink?: {
|
|
449
|
+
label: Record<string, {
|
|
450
|
+
[x: string]: unknown;
|
|
451
|
+
value: string;
|
|
452
|
+
updatedAt: Date;
|
|
453
|
+
autoTranslated?: boolean | undefined;
|
|
454
|
+
}>;
|
|
455
|
+
href: string;
|
|
456
|
+
} | undefined;
|
|
421
457
|
}[];
|
|
422
458
|
deliveries: {
|
|
423
459
|
id: string;
|
|
@@ -433,6 +469,15 @@ export declare function useStorefrontConfig(): {
|
|
|
433
469
|
updatedAt: Date;
|
|
434
470
|
autoTranslated?: boolean | undefined;
|
|
435
471
|
}>;
|
|
472
|
+
additionalLink?: {
|
|
473
|
+
label: Record<string, {
|
|
474
|
+
[x: string]: unknown;
|
|
475
|
+
value: string;
|
|
476
|
+
updatedAt: Date;
|
|
477
|
+
autoTranslated?: boolean | undefined;
|
|
478
|
+
}>;
|
|
479
|
+
href: string;
|
|
480
|
+
} | undefined;
|
|
436
481
|
}[];
|
|
437
482
|
booking: {
|
|
438
483
|
id: string;
|
|
@@ -448,6 +493,15 @@ export declare function useStorefrontConfig(): {
|
|
|
448
493
|
updatedAt: Date;
|
|
449
494
|
autoTranslated?: boolean | undefined;
|
|
450
495
|
}>;
|
|
496
|
+
additionalLink?: {
|
|
497
|
+
label: Record<string, {
|
|
498
|
+
[x: string]: unknown;
|
|
499
|
+
value: string;
|
|
500
|
+
updatedAt: Date;
|
|
501
|
+
autoTranslated?: boolean | undefined;
|
|
502
|
+
}>;
|
|
503
|
+
href: string;
|
|
504
|
+
} | undefined;
|
|
451
505
|
}[];
|
|
452
506
|
};
|
|
453
507
|
tagline?: Record<string, {
|
|
@@ -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"}
|
|
@@ -157,6 +157,15 @@ export declare const loader: ({ ctx, params }: import('@rpcbase/client').LoaderA
|
|
|
157
157
|
updatedAt: Date;
|
|
158
158
|
autoTranslated?: boolean | undefined;
|
|
159
159
|
}>;
|
|
160
|
+
additionalLink?: {
|
|
161
|
+
label: Record<string, {
|
|
162
|
+
[x: string]: unknown;
|
|
163
|
+
value: string;
|
|
164
|
+
updatedAt: Date;
|
|
165
|
+
autoTranslated?: boolean | undefined;
|
|
166
|
+
}>;
|
|
167
|
+
href: string;
|
|
168
|
+
} | undefined;
|
|
160
169
|
}[];
|
|
161
170
|
deliveries: {
|
|
162
171
|
id: string;
|
|
@@ -172,6 +181,15 @@ export declare const loader: ({ ctx, params }: import('@rpcbase/client').LoaderA
|
|
|
172
181
|
updatedAt: Date;
|
|
173
182
|
autoTranslated?: boolean | undefined;
|
|
174
183
|
}>;
|
|
184
|
+
additionalLink?: {
|
|
185
|
+
label: Record<string, {
|
|
186
|
+
[x: string]: unknown;
|
|
187
|
+
value: string;
|
|
188
|
+
updatedAt: Date;
|
|
189
|
+
autoTranslated?: boolean | undefined;
|
|
190
|
+
}>;
|
|
191
|
+
href: string;
|
|
192
|
+
} | undefined;
|
|
175
193
|
}[];
|
|
176
194
|
booking: {
|
|
177
195
|
id: string;
|
|
@@ -187,6 +205,15 @@ export declare const loader: ({ ctx, params }: import('@rpcbase/client').LoaderA
|
|
|
187
205
|
updatedAt: Date;
|
|
188
206
|
autoTranslated?: boolean | undefined;
|
|
189
207
|
}>;
|
|
208
|
+
additionalLink?: {
|
|
209
|
+
label: Record<string, {
|
|
210
|
+
[x: string]: unknown;
|
|
211
|
+
value: string;
|
|
212
|
+
updatedAt: Date;
|
|
213
|
+
autoTranslated?: boolean | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
href: string;
|
|
216
|
+
} | undefined;
|
|
190
217
|
}[];
|
|
191
218
|
};
|
|
192
219
|
tagline?: Record<string, {
|
|
@@ -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"}
|
|
@@ -56,7 +56,7 @@ function d({ saleDocument: d, items: f, subtotal: p, tax: m, total: h, formatDat
|
|
|
56
56
|
className: "flex flex-grow flex-col px-4 md:px-8",
|
|
57
57
|
children: [
|
|
58
58
|
v && /* @__PURE__ */ i("header", {
|
|
59
|
-
className: o("grid", C ? "mb-
|
|
59
|
+
className: o("grid", C ? "mb-2 gap-3" : "mb-3 gap-6"),
|
|
60
60
|
children: [/* @__PURE__ */ i("div", {
|
|
61
61
|
className: o("grid md:grid-cols-2", C ? "gap-3 md:gap-4" : "gap-6 md:gap-8"),
|
|
62
62
|
children: [/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ i("h1", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignatureModal.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/SignatureModal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAA;AAOnF,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,CAAC,SAAS,EAAE,6BAA6B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CAC3E,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SignatureModal.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/SignatureModal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAA;AAOnF,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,CAAC,SAAS,EAAE,6BAA6B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CAC3E,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,mBAAmB,2CA+H9E"}
|
|
@@ -2,99 +2,124 @@ import { Button as e } from "../../ui/button.js";
|
|
|
2
2
|
import { Label as t } from "../../ui/label.js";
|
|
3
3
|
import { Input as n } from "../../ui/input.js";
|
|
4
4
|
import { SignatureInput as r } from "../SignatureInput/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { useTranslation as
|
|
5
|
+
import { useEffect as i, useState as a } from "react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import { useTranslation as c } from "react-i18next";
|
|
8
8
|
//#region src/components/ContractSaleDocument/SignatureModal.tsx
|
|
9
|
-
function
|
|
10
|
-
let { t:
|
|
11
|
-
if (!
|
|
12
|
-
window.alert(
|
|
9
|
+
function l({ isOpen: l, onClose: u, onSave: d }) {
|
|
10
|
+
let { t: f } = c(), [p, m] = a(""), [h, g] = a(""), [_, v] = a(null), [y, b] = a(!1), x = !p || !h || !_ || y, S = async () => {
|
|
11
|
+
if (!_) {
|
|
12
|
+
window.alert(f("docs_contract_sale_signature_validation_signature"));
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
if (!
|
|
16
|
-
window.alert(
|
|
15
|
+
if (!p || !h) {
|
|
16
|
+
window.alert(f("docs_contract_sale_signature_validation_identity"));
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
b(!0);
|
|
20
20
|
try {
|
|
21
|
-
await
|
|
21
|
+
await d({
|
|
22
22
|
mode: "signature",
|
|
23
|
-
name:
|
|
24
|
-
phone:
|
|
25
|
-
signature:
|
|
23
|
+
name: p,
|
|
24
|
+
phone: h,
|
|
25
|
+
signature: _,
|
|
26
26
|
date: /* @__PURE__ */ new Date()
|
|
27
|
-
}),
|
|
27
|
+
}), u();
|
|
28
28
|
} catch (e) {
|
|
29
29
|
console.error("Failed to save contract document signature", e);
|
|
30
|
-
let t = e instanceof Error && e.message.trim().length > 0 ? e.message :
|
|
30
|
+
let t = e instanceof Error && e.message.trim().length > 0 ? e.message : f("docs_contract_sale_signature_submit_error");
|
|
31
31
|
window.alert(t);
|
|
32
32
|
} finally {
|
|
33
|
-
|
|
33
|
+
b(!1);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
return i(() => {
|
|
37
|
+
if (!l) return;
|
|
38
|
+
let e = (e) => {
|
|
39
|
+
x || e.key !== "Enter" || !e.metaKey && !e.ctrlKey || (e.preventDefault(), S());
|
|
40
|
+
};
|
|
41
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
42
|
+
}, [
|
|
43
|
+
S,
|
|
44
|
+
l,
|
|
45
|
+
x
|
|
46
|
+
]), /* @__PURE__ */ o("div", {
|
|
47
|
+
className: `fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4 transition-opacity ${l ? "pointer-events-auto opacity-100 visible" : "pointer-events-none opacity-0 invisible"}`,
|
|
48
|
+
"aria-hidden": !l,
|
|
49
|
+
children: /* @__PURE__ */ s("div", {
|
|
40
50
|
className: "w-full max-w-lg rounded-xl border border-border bg-card p-6 shadow-xl",
|
|
41
51
|
children: [
|
|
42
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ o("h2", {
|
|
43
53
|
className: "mb-4 text-2xl font-bold text-card-foreground",
|
|
44
|
-
children:
|
|
54
|
+
children: f("docs_contract_sale_signature_modal_title")
|
|
45
55
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ s("div", {
|
|
47
57
|
className: "space-y-4",
|
|
48
58
|
children: [
|
|
49
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o(t, {
|
|
50
60
|
htmlFor: "signature-name",
|
|
51
61
|
className: "text-card-foreground",
|
|
52
|
-
children:
|
|
53
|
-
}), /* @__PURE__ */
|
|
62
|
+
children: f("docs_contract_sale_signature_name_label")
|
|
63
|
+
}), /* @__PURE__ */ o(n, {
|
|
54
64
|
type: "text",
|
|
55
65
|
id: "signature-name",
|
|
56
|
-
value:
|
|
57
|
-
onChange: (e) =>
|
|
66
|
+
value: p,
|
|
67
|
+
onChange: (e) => m(e.target.value),
|
|
58
68
|
className: "mt-1",
|
|
59
|
-
disabled:
|
|
69
|
+
disabled: y
|
|
60
70
|
})] }),
|
|
61
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o(t, {
|
|
62
72
|
htmlFor: "signature-phone",
|
|
63
73
|
className: "text-card-foreground",
|
|
64
|
-
children:
|
|
65
|
-
}), /* @__PURE__ */
|
|
74
|
+
children: f("docs_contract_sale_signature_phone_label")
|
|
75
|
+
}), /* @__PURE__ */ o(n, {
|
|
66
76
|
type: "tel",
|
|
67
77
|
id: "signature-phone",
|
|
68
|
-
value:
|
|
69
|
-
onChange: (e) =>
|
|
78
|
+
value: h,
|
|
79
|
+
onChange: (e) => g(e.target.value),
|
|
70
80
|
className: "mt-1",
|
|
71
|
-
disabled:
|
|
81
|
+
disabled: y
|
|
72
82
|
})] }),
|
|
73
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o(t, {
|
|
74
84
|
htmlFor: "signature-canvas",
|
|
75
85
|
className: "mb-1 text-card-foreground",
|
|
76
|
-
children: /* @__PURE__ */
|
|
77
|
-
}), /* @__PURE__ */
|
|
78
|
-
value:
|
|
79
|
-
onChange:
|
|
80
|
-
clearLabel:
|
|
81
|
-
ariaLabel:
|
|
86
|
+
children: /* @__PURE__ */ o("span", { children: f("docs_contract_sale_signature_canvas_label") })
|
|
87
|
+
}), /* @__PURE__ */ o(r, {
|
|
88
|
+
value: _,
|
|
89
|
+
onChange: v,
|
|
90
|
+
clearLabel: f("docs_contract_sale_signature_clear"),
|
|
91
|
+
ariaLabel: f("docs_contract_sale_signature_canvas_label"),
|
|
82
92
|
id: "signature-canvas",
|
|
83
|
-
disabled:
|
|
93
|
+
disabled: y
|
|
84
94
|
})] })
|
|
85
95
|
]
|
|
86
96
|
}),
|
|
87
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ s("div", {
|
|
88
98
|
className: "mt-6 flex justify-end gap-4",
|
|
89
|
-
children: [/* @__PURE__ */
|
|
90
|
-
onClick:
|
|
99
|
+
children: [/* @__PURE__ */ o(e, {
|
|
100
|
+
onClick: u,
|
|
91
101
|
variant: "secondary",
|
|
92
|
-
disabled:
|
|
93
|
-
children:
|
|
94
|
-
}), /* @__PURE__ */
|
|
95
|
-
onClick: () => void
|
|
96
|
-
disabled:
|
|
97
|
-
|
|
102
|
+
disabled: y,
|
|
103
|
+
children: f("docs_contract_sale_modal_cancel")
|
|
104
|
+
}), /* @__PURE__ */ s(e, {
|
|
105
|
+
onClick: () => void S(),
|
|
106
|
+
disabled: x,
|
|
107
|
+
"aria-keyshortcuts": "Meta+Enter Control+Enter",
|
|
108
|
+
children: [/* @__PURE__ */ o("span", { children: f(y ? "docs_contract_sale_signature_modal_saving" : "docs_contract_sale_signature_modal_submit") }), /* @__PURE__ */ s("kbd", {
|
|
109
|
+
"aria-hidden": "true",
|
|
110
|
+
className: "hidden h-5 shrink-0 select-none items-center gap-1 rounded border border-current/35 px-1.5 font-mono text-[10px] font-medium opacity-90 sm:inline-flex",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ o("span", {
|
|
113
|
+
className: "text-xs",
|
|
114
|
+
children: "⌘"
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ o("span", { children: "+" }),
|
|
117
|
+
/* @__PURE__ */ o("span", {
|
|
118
|
+
className: "-mt-[2px] inline-block",
|
|
119
|
+
children: "↵"
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
})]
|
|
98
123
|
})]
|
|
99
124
|
})
|
|
100
125
|
]
|
|
@@ -102,4 +127,4 @@ function c({ isOpen: c, onClose: l, onSave: u }) {
|
|
|
102
127
|
});
|
|
103
128
|
}
|
|
104
129
|
//#endregion
|
|
105
|
-
export {
|
|
130
|
+
export { l as SignatureModal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FaqSection/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FaqSection/index.tsx"],"names":[],"mappings":"AAyEA,wBAAgB,UAAU,mDAkDzB"}
|
|
@@ -2,53 +2,71 @@ import { getLocalizedValue as e } from "../../localization.js";
|
|
|
2
2
|
import { useStorefront as t } from "../../StorefrontContext.js";
|
|
3
3
|
import { useState as n } from "react";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Link as a } from "@rpcbase/router";
|
|
6
|
+
import { useTranslation as o } from "react-i18next";
|
|
7
|
+
import { ArrowRight as s, ChevronDown as c } from "lucide-react";
|
|
8
|
+
import { Accordion as l } from "@base-ui/react/accordion";
|
|
8
9
|
//#region src/components/FaqSection/index.tsx
|
|
9
|
-
var
|
|
10
|
+
var u = [
|
|
10
11
|
"general",
|
|
11
12
|
"deliveries",
|
|
12
13
|
"booking"
|
|
13
14
|
];
|
|
14
|
-
function
|
|
15
|
-
let [t,
|
|
16
|
-
return /* @__PURE__ */ r(
|
|
15
|
+
function d({ items: e }) {
|
|
16
|
+
let [t, o] = n([]);
|
|
17
|
+
return /* @__PURE__ */ r(l.Root, {
|
|
17
18
|
className: "w-full",
|
|
18
19
|
value: t,
|
|
19
|
-
onValueChange:
|
|
20
|
+
onValueChange: o,
|
|
20
21
|
keepMounted: !0,
|
|
21
22
|
"data-testid": "storefront-faq-column",
|
|
22
|
-
children: e.map((e) => /* @__PURE__ */ i(
|
|
23
|
+
children: e.map((e) => /* @__PURE__ */ i(l.Item, {
|
|
23
24
|
value: e.id,
|
|
24
25
|
className: "border-b border-slate-200",
|
|
25
|
-
children: [/* @__PURE__ */ r(
|
|
26
|
+
children: [/* @__PURE__ */ r(l.Header, {
|
|
26
27
|
className: "flex",
|
|
27
|
-
children: /* @__PURE__ */ i(
|
|
28
|
-
className: "flex w-full flex-1 items-center justify-between gap-4 py-4 text-left text-
|
|
29
|
-
children: [/* @__PURE__ */ r("span", { children: e.question }), /* @__PURE__ */ r(
|
|
30
|
-
className: "
|
|
31
|
-
|
|
28
|
+
children: /* @__PURE__ */ i(l.Trigger, {
|
|
29
|
+
className: "group flex w-full flex-1 items-center justify-between gap-4 py-4 text-left text-base font-semibold text-slate-950 transition-colors hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[panel-open]:text-primary",
|
|
30
|
+
children: [/* @__PURE__ */ r("span", { children: e.question }), /* @__PURE__ */ r("span", {
|
|
31
|
+
className: "grid size-7 shrink-0 place-items-center rounded-full border border-slate-200 bg-white text-slate-500 transition-colors group-hover:border-primary/30 group-hover:text-primary group-data-[panel-open]:border-primary/30 group-data-[panel-open]:text-primary",
|
|
32
|
+
children: /* @__PURE__ */ r(c, {
|
|
33
|
+
className: "size-4 transition-transform duration-200 group-data-[panel-open]:rotate-180",
|
|
34
|
+
"aria-hidden": "true"
|
|
35
|
+
})
|
|
32
36
|
})]
|
|
33
37
|
})
|
|
34
|
-
}), /* @__PURE__ */ r(
|
|
38
|
+
}), /* @__PURE__ */ r(l.Panel, {
|
|
35
39
|
keepMounted: !0,
|
|
36
40
|
className: "h-[var(--accordion-panel-height)] overflow-hidden transition-[height,opacity] duration-200 ease-out data-[ending-style]:h-0 data-[ending-style]:opacity-0 data-[starting-style]:h-0 data-[starting-style]:opacity-0",
|
|
37
|
-
children: /* @__PURE__ */
|
|
38
|
-
className: "
|
|
39
|
-
children: /* @__PURE__ */ r("
|
|
41
|
+
children: /* @__PURE__ */ i("div", {
|
|
42
|
+
className: "pb-4",
|
|
43
|
+
children: [/* @__PURE__ */ r("p", {
|
|
44
|
+
className: "whitespace-pre-line text-sm leading-6 text-slate-700 sm:text-base sm:leading-7",
|
|
45
|
+
children: /* @__PURE__ */ r("span", { children: e.answer })
|
|
46
|
+
}), e.additionalLink ? /* @__PURE__ */ i(a, {
|
|
47
|
+
to: e.additionalLink.href,
|
|
48
|
+
className: "mt-3 flex w-fit items-center gap-1.5 text-sm font-medium text-primary underline decoration-primary/30 underline-offset-4 transition-colors hover:decoration-primary",
|
|
49
|
+
children: [/* @__PURE__ */ r("span", { children: e.additionalLink.label }), /* @__PURE__ */ r(s, {
|
|
50
|
+
className: "size-4",
|
|
51
|
+
"aria-hidden": "true"
|
|
52
|
+
})]
|
|
53
|
+
}) : null]
|
|
40
54
|
})
|
|
41
55
|
})]
|
|
42
56
|
}, e.id))
|
|
43
57
|
});
|
|
44
58
|
}
|
|
45
|
-
function
|
|
46
|
-
let { i18n: n, t:
|
|
47
|
-
let i = e(r.question, n.language,
|
|
59
|
+
function f() {
|
|
60
|
+
let { i18n: n, t: a } = o(), { storefrontConfiguration: s } = t(), c = s.workspace?.workspaceLanguage, l = s.content?.faq, f = u.flatMap((t) => (l?.[t] ?? []).flatMap((r) => {
|
|
61
|
+
let i = e(r.question, n.language, c).trim(), a = e(r.answer, n.language, c).trim(), o = r.additionalLink ? e(r.additionalLink.label, n.language, c).trim() : "", s = r.additionalLink?.href.trim() ?? "";
|
|
48
62
|
return i && a ? [{
|
|
49
63
|
id: `${t}-${r.id}`,
|
|
50
64
|
question: i,
|
|
51
|
-
answer: a
|
|
65
|
+
answer: a,
|
|
66
|
+
...o && s ? { additionalLink: {
|
|
67
|
+
label: o,
|
|
68
|
+
href: s
|
|
69
|
+
} } : {}
|
|
52
70
|
}] : [];
|
|
53
71
|
}));
|
|
54
72
|
if (f.length === 0) return null;
|
|
@@ -63,14 +81,14 @@ function u() {
|
|
|
63
81
|
className: "text-center",
|
|
64
82
|
children: /* @__PURE__ */ r("h2", {
|
|
65
83
|
className: "text-3xl font-semibold tracking-tight text-slate-950",
|
|
66
|
-
children: /* @__PURE__ */ r("span", { children:
|
|
84
|
+
children: /* @__PURE__ */ r("span", { children: a("faq_section_title") })
|
|
67
85
|
})
|
|
68
86
|
}), /* @__PURE__ */ i("div", {
|
|
69
87
|
className: "mx-auto mt-8 grid max-w-6xl grid-cols-1 gap-x-8 gap-y-0 lg:grid-cols-2",
|
|
70
|
-
children: [/* @__PURE__ */ r(
|
|
88
|
+
children: [/* @__PURE__ */ r(d, { items: f.slice(0, p) }), /* @__PURE__ */ r(d, { items: f.slice(p) })]
|
|
71
89
|
})]
|
|
72
90
|
})
|
|
73
91
|
});
|
|
74
92
|
}
|
|
75
93
|
//#endregion
|
|
76
|
-
export {
|
|
94
|
+
export { f as FaqSection };
|
|
@@ -14,7 +14,7 @@ function d({ value: d, onChange: f, clearLabel: p, ariaLabel: m, id: h, disabled
|
|
|
14
14
|
let e = y.current?.getCanvas();
|
|
15
15
|
if (!e || typeof PointerEvent > "u") return;
|
|
16
16
|
let t = (t) => {
|
|
17
|
-
t.isPrimary && e.setPointerCapture(t.pointerId);
|
|
17
|
+
t.isPrimary && (e.focus({ preventScroll: !0 }), e.setPointerCapture(t.pointerId));
|
|
18
18
|
}, n = (t) => {
|
|
19
19
|
e.hasPointerCapture(t.pointerId) && e.releasePointerCapture(t.pointerId);
|
|
20
20
|
};
|
|
@@ -36,6 +36,7 @@ function d({ value: d, onChange: f, clearLabel: p, ariaLabel: m, id: h, disabled
|
|
|
36
36
|
id: h,
|
|
37
37
|
"aria-label": m,
|
|
38
38
|
"aria-disabled": g,
|
|
39
|
+
tabIndex: g ? void 0 : -1,
|
|
39
40
|
className: o("absolute inset-0 h-full w-full touch-none", g && "pointer-events-none")
|
|
40
41
|
},
|
|
41
42
|
onEnd: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignatureInput.d.ts","sourceRoot":"","sources":["../../src/components/SignatureInput.tsx"],"names":[],"mappings":"AAYA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,EAAE,EACF,QAAgB,EAChB,SAAS,EACT,MAAM,GACP,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SignatureInput.d.ts","sourceRoot":"","sources":["../../src/components/SignatureInput.tsx"],"names":[],"mappings":"AAYA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,EAAE,EACF,QAAgB,EAChB,SAAS,EACT,MAAM,GACP,EAAE,mBAAmB,2CAiHrB"}
|
|
@@ -3,6 +3,10 @@ export declare function formatStorefrontInformationDocumentDate({ language, time
|
|
|
3
3
|
timeZone?: string;
|
|
4
4
|
value?: string | null;
|
|
5
5
|
}): string;
|
|
6
|
+
export declare function StorefrontInformationDocumentBody({ contentHtml, unavailableLabel, }: {
|
|
7
|
+
contentHtml: string;
|
|
8
|
+
unavailableLabel: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
export declare function StorefrontInformationDocument({ title, description, effectiveDateLabel, contentHtml, unavailableLabel, }: {
|
|
7
11
|
title: string;
|
|
8
12
|
description: string;
|
|
@@ -1 +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,
|
|
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,iCAAiC,CAAC,EAChD,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;CACzB,2CAWA;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,2CAgCA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { cn as n } from "@rpcbase/ui";
|
|
3
3
|
//#region src/components/StorefrontInformationDocument/index.tsx
|
|
4
|
-
var r = n("
|
|
4
|
+
var r = n("text-[0.9375rem] leading-7 text-slate-700 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
5
|
function i({ language: e, timeZone: t, value: n }) {
|
|
6
6
|
return n ? new Intl.DateTimeFormat(e, {
|
|
7
7
|
day: "numeric",
|
|
@@ -10,7 +10,16 @@ function i({ language: e, timeZone: t, value: n }) {
|
|
|
10
10
|
timeZone: t || "UTC"
|
|
11
11
|
}).format(new Date(n)) : "";
|
|
12
12
|
}
|
|
13
|
-
function a({
|
|
13
|
+
function a({ contentHtml: t, unavailableLabel: n }) {
|
|
14
|
+
return t ? /* @__PURE__ */ e("div", {
|
|
15
|
+
className: r,
|
|
16
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
17
|
+
}) : /* @__PURE__ */ e("p", {
|
|
18
|
+
className: "border-l-2 border-slate-300 pl-5 text-base leading-8 text-slate-600",
|
|
19
|
+
children: /* @__PURE__ */ e("span", { children: n })
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function o({ title: r, description: i, effectiveDateLabel: o, contentHtml: s, unavailableLabel: c }) {
|
|
14
23
|
return /* @__PURE__ */ e("section", {
|
|
15
24
|
className: "min-h-[70vh] bg-white",
|
|
16
25
|
children: /* @__PURE__ */ e("div", {
|
|
@@ -26,23 +35,23 @@ function a({ title: i, description: a, effectiveDateLabel: o, contentHtml: s, un
|
|
|
26
35
|
}) : null,
|
|
27
36
|
/* @__PURE__ */ e("h1", {
|
|
28
37
|
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:
|
|
38
|
+
children: /* @__PURE__ */ e("span", { children: r })
|
|
30
39
|
}),
|
|
31
40
|
/* @__PURE__ */ e("p", {
|
|
32
41
|
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:
|
|
42
|
+
children: /* @__PURE__ */ e("span", { children: i })
|
|
34
43
|
})
|
|
35
44
|
]
|
|
36
|
-
}),
|
|
37
|
-
className:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
}), /* @__PURE__ */ e("div", {
|
|
46
|
+
className: "mt-10 sm:mt-12",
|
|
47
|
+
children: /* @__PURE__ */ e(a, {
|
|
48
|
+
contentHtml: s,
|
|
49
|
+
unavailableLabel: c
|
|
50
|
+
})
|
|
42
51
|
})]
|
|
43
52
|
})
|
|
44
53
|
})
|
|
45
54
|
});
|
|
46
55
|
}
|
|
47
56
|
//#endregion
|
|
48
|
-
export {
|
|
57
|
+
export { o as StorefrontInformationDocument, a as StorefrontInformationDocumentBody, i as formatStorefrontInformationDocumentDate };
|
package/dist/i18n/en.js
CHANGED
|
@@ -398,7 +398,7 @@ var e = {
|
|
|
398
398
|
insurance_terms_title: "Insurance",
|
|
399
399
|
insurance_terms_description: "Read about the insurance offered by {{shop_name}}.",
|
|
400
400
|
insurance_terms_effective_date: "Version in effect on {{date}}.",
|
|
401
|
-
insurance_terms_unavailable: "
|
|
401
|
+
insurance_terms_unavailable: "{{shop_name}} has not produced this document yet.",
|
|
402
402
|
footer_contact_title: "Contact",
|
|
403
403
|
footer_whatsapp_link: "WhatsApp",
|
|
404
404
|
footer_hours_title: "Opening hours",
|
package/dist/i18n/fr.js
CHANGED
|
@@ -399,7 +399,7 @@ var e = {
|
|
|
399
399
|
insurance_terms_title: "Assurance",
|
|
400
400
|
insurance_terms_description: "Consultez les informations sur l’assurance proposée par {{shop_name}}.",
|
|
401
401
|
insurance_terms_effective_date: "Version en vigueur au {{date}}.",
|
|
402
|
-
insurance_terms_unavailable: "
|
|
402
|
+
insurance_terms_unavailable: "{{shop_name}} n’a pas encore produit ce document.",
|
|
403
403
|
footer_contact_title: "Contact",
|
|
404
404
|
footer_whatsapp_link: "WhatsApp",
|
|
405
405
|
footer_hours_title: "Horaires d’ouverture",
|