@loczer/storefront-sdk 0.238.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/chunks/pkg/booking-engine/dist/models/{LocalizedString-D_TRgAdr.js → LocalizedString-JmOX62C3.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-CWP_qule.js → Product.shared-C_HehlKK.js} +3 -3
- package/dist/chunks/pkg/booking-engine/dist/models/types-ynW5hdp8.js +8 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-BhIOL2rP.js → base-asset-CFAxfmRW.js} +3 -3
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-BJXFzDM5.js → base-booking-CZOR9kya.js} +13 -12
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-product-QYQBl0fQ.js +4 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/{booking-engine-configuration-LnrhShqm.js → booking-engine-configuration-CxKlxKCo.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js +13 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-3lBblkB0.js → cart-inputs-D1KobIdr.js} +4 -4
- package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-DXc34Bzy.js → insurance-B-Vmdlxo.js} +3 -3
- package/dist/chunks/pkg/booking-engine/dist/schemas/{product-id--yyUTH1Y.js → product-id-ChdStzgp.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{public-booking-engine-configuration-CEM9mexX.js → public-booking-engine-configuration-BwWn9aK0.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js +17 -0
- 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/Footer/businessHoursStatus.js +1 -1
- 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 +193 -0
- package/dist/index.js +87 -86
- package/dist/lib/booking-period.js +1 -1
- package/dist/lib/booking.js +2 -2
- package/dist/lib/checkoutSubmit.d.ts.map +1 -1
- package/dist/lib/checkoutSubmit.js +45 -44
- 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 +21 -17
- package/package.json +1 -1
- package/dist/chunks/pkg/booking-engine/dist/models/types-rIp4ReXN.js +0 -8
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-product-Bde9lJQD.js +0 -4
- package/dist/chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js +0 -16
|
@@ -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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nonEmptyKeySchema as e } from "./types-
|
|
1
|
+
import { nonEmptyKeySchema as e } from "./types-ynW5hdp8.js";
|
|
2
2
|
import { z as t } from "zod";
|
|
3
3
|
//#region ../booking-engine/dist/models/LocalizedString.js
|
|
4
4
|
var n = /^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/, r = /* @__PURE__ */ new Date("2025-01-01T00:00:00.000Z"), i = t.object({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { identifierSchema as e, isoDateTimeSchema as t } from "./types-
|
|
2
|
-
import { localizedStringArraySchema as n, localizedStringSchema as r } from "./LocalizedString-
|
|
1
|
+
import { identifierSchema as e, isoDateTimeSchema as t } from "./types-ynW5hdp8.js";
|
|
2
|
+
import { localizedStringArraySchema as n, localizedStringSchema as r } from "./LocalizedString-JmOX62C3.js";
|
|
3
3
|
import { moneyMinorSchema as i } from "../schemas/money-CVoCY4of.js";
|
|
4
4
|
import { priceSchema as a } from "./Price-DCAgqkKh.js";
|
|
5
|
-
import { productIdSchema as o } from "../schemas/product-id
|
|
5
|
+
import { productIdSchema as o } from "../schemas/product-id-ChdStzgp.js";
|
|
6
6
|
import { z as s } from "zod";
|
|
7
7
|
//#region ../booking-engine/dist/models/Product.shared.js
|
|
8
8
|
var c = s.enum([
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
//#region ../booking-engine/dist/models/types.js
|
|
3
|
+
var t = e.string().min(1, "Identifier cannot be empty"), n = e.string().regex(/^[a-fA-F0-9]{24}$/, "Identifier must be a MongoDB ObjectId"), r = e.string().min(1, "Record key cannot be empty"), i = e.string().datetime({
|
|
4
|
+
offset: !0,
|
|
5
|
+
message: "Value must be an ISO-8601 timestamp"
|
|
6
|
+
}), a = e.record(r, e.union([e.boolean(), e.number()]));
|
|
7
|
+
//#endregion
|
|
8
|
+
export { a as booleanNumberRecordSchema, t as identifierSchema, i as isoDateTimeSchema, r as nonEmptyKeySchema, n as objectIdStringSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { booleanNumberRecordSchema as e, identifierSchema as t, isoDateTimeSchema as n, objectIdStringSchema as r } from "../models/types-
|
|
2
|
-
import { productIdSchema as i } from "./product-id
|
|
3
|
-
import { productVariantIdentifierSchema as a } from "../models/Product.shared-
|
|
1
|
+
import { booleanNumberRecordSchema as e, identifierSchema as t, isoDateTimeSchema as n, objectIdStringSchema as r } from "../models/types-ynW5hdp8.js";
|
|
2
|
+
import { productIdSchema as i } from "./product-id-ChdStzgp.js";
|
|
3
|
+
import { productVariantIdentifierSchema as a } from "../models/Product.shared-C_HehlKK.js";
|
|
4
4
|
import { z as o } from "zod";
|
|
5
5
|
//#region ../booking-engine/dist/schemas/base-asset.js
|
|
6
6
|
var s = o.enum([
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { identifierSchema as e, isoDateTimeSchema as t, objectIdStringSchema as n
|
|
2
|
-
import { moneyMinorSchema as
|
|
3
|
-
import { productIdSchema as
|
|
4
|
-
import { productKindSchema as
|
|
1
|
+
import { identifierSchema as e, isoDateTimeSchema as t, objectIdStringSchema as n } from "../models/types-ynW5hdp8.js";
|
|
2
|
+
import { moneyMinorSchema as r } from "./money-CVoCY4of.js";
|
|
3
|
+
import { productIdSchema as i } from "./product-id-ChdStzgp.js";
|
|
4
|
+
import { productKindSchema as a } from "../models/Product.shared-C_HehlKK.js";
|
|
5
|
+
import { bookingReferenceSchema as o } from "./booking-reference-DLKcpIa4.js";
|
|
5
6
|
import { richTextSchema as s } from "./rich-text-DTRh7U3z.js";
|
|
6
|
-
import { cancellationPolicySchema as c } from "./booking-engine-configuration-
|
|
7
|
-
import { bookingInsuranceSnapshotSchema as l } from "./insurance-
|
|
7
|
+
import { cancellationPolicySchema as c } from "./booking-engine-configuration-CxKlxKCo.js";
|
|
8
|
+
import { bookingInsuranceSnapshotSchema as l } from "./insurance-B-Vmdlxo.js";
|
|
8
9
|
import { z as u } from "zod";
|
|
9
10
|
//#region ../booking-engine/dist/schemas/base-booking.js
|
|
10
11
|
var d = u.enum([
|
|
@@ -17,8 +18,8 @@ var d = u.enum([
|
|
|
17
18
|
"expired"
|
|
18
19
|
]), f = u.object({
|
|
19
20
|
_id: e,
|
|
20
|
-
productId:
|
|
21
|
-
kind:
|
|
21
|
+
productId: i,
|
|
22
|
+
kind: a,
|
|
22
23
|
qty: u.number().int().positive(),
|
|
23
24
|
productVariantId: e.optional()
|
|
24
25
|
}), p = u.object({
|
|
@@ -40,7 +41,7 @@ var d = u.enum([
|
|
|
40
41
|
message: s.optional()
|
|
41
42
|
}), m = u.object({
|
|
42
43
|
_id: n,
|
|
43
|
-
externalId:
|
|
44
|
+
externalId: o,
|
|
44
45
|
state: d,
|
|
45
46
|
shopId: e,
|
|
46
47
|
customer: p,
|
|
@@ -52,12 +53,12 @@ var d = u.enum([
|
|
|
52
53
|
items: u.array(f),
|
|
53
54
|
couponCode: u.string().min(1).optional(),
|
|
54
55
|
couponDiscountRate: u.number().min(0).max(1).optional(),
|
|
55
|
-
couponDiscountAmountUnits:
|
|
56
|
+
couponDiscountAmountUnits: r.optional(),
|
|
56
57
|
couponAutoApplied: u.boolean().optional(),
|
|
57
58
|
couponPriceRuleId: e.optional(),
|
|
58
|
-
lateReturnSurchargeUnits:
|
|
59
|
+
lateReturnSurchargeUnits: r.optional(),
|
|
59
60
|
insurance: l.optional(),
|
|
60
|
-
totalPriceUnits:
|
|
61
|
+
totalPriceUnits: r.optional(),
|
|
61
62
|
cancellationPolicySnapshot: c.optional(),
|
|
62
63
|
cancellationPolicyOverride: c.optional(),
|
|
63
64
|
createdAt: t,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { localizedStringSchema as e } from "../models/LocalizedString-
|
|
1
|
+
import { localizedStringSchema as e } from "../models/LocalizedString-JmOX62C3.js";
|
|
2
2
|
import { currencyCodeSchema as t } from "./money-CVoCY4of.js";
|
|
3
3
|
import { priceUnitSchema as n } from "../models/Price-DCAgqkKh.js";
|
|
4
4
|
import { shopConfigurationSchema as r } from "./shop-opening-hours-BlLD1gfz.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
//#region ../booking-engine/dist/schemas/booking-reference.js
|
|
3
|
+
var t = 4, n = /^[0-9]{2}(?:0[1-9]|1[0-2])$/, r = /^[0-9A-HJKMNP-TV-Z]{3}-[0-9]{2}(?:0[1-9]|1[0-2])-(?!0+$)[0-9]{4,}$/, i = e.string().regex(n, "Booking reference period must use the YYMM format."), a = e.string().trim().regex(r, "Booking reference must use the PREFIX-YYMM-NNNN format.");
|
|
4
|
+
function o(e) {
|
|
5
|
+
let t = String(e.startYear % 100).padStart(2, "0"), n = String(e.startMonth).padStart(2, "0");
|
|
6
|
+
return i.parse(`${t}${n}`);
|
|
7
|
+
}
|
|
8
|
+
function s(e) {
|
|
9
|
+
let t = e.workspaceTrackingPrefix.trim().toUpperCase(), n = i.parse(e.startYearMonth), r = String(e.sequenceValue).padStart(4, "0");
|
|
10
|
+
return a.parse(`${t}-${n}-${r}`);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as BOOKING_REFERENCE_COUNTER_MIN_DIGITS, r as BOOKING_REFERENCE_REGEX, n as BOOKING_REFERENCE_YEAR_MONTH_REGEX, a as bookingReferenceSchema, i as bookingReferenceYearMonthSchema, s as formatBookingReference, o as formatBookingReferenceYearMonth };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { identifierSchema as e } from "../models/types-
|
|
1
|
+
import { identifierSchema as e } from "../models/types-ynW5hdp8.js";
|
|
2
2
|
import { moneyMinorSchema as t } from "./money-CVoCY4of.js";
|
|
3
|
-
import { productIdSchema as n } from "./product-id
|
|
4
|
-
import "../models/Product.shared-
|
|
3
|
+
import { productIdSchema as n } from "./product-id-ChdStzgp.js";
|
|
4
|
+
import "../models/Product.shared-C_HehlKK.js";
|
|
5
5
|
import { richTextSchema as r } from "./rich-text-DTRh7U3z.js";
|
|
6
6
|
import { isoDateSchema as i, timeOfDaySchema as a } from "./shop-opening-hours-BlLD1gfz.js";
|
|
7
|
-
import { fulfillmentModeSchema as o } from "./public-booking-engine-configuration-
|
|
7
|
+
import { fulfillmentModeSchema as o } from "./public-booking-engine-configuration-BwWn9aK0.js";
|
|
8
8
|
import { z as s } from "zod";
|
|
9
9
|
//#region ../booking-engine/dist/schemas/cart-inputs.js
|
|
10
10
|
var c = s.object({
|
package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-DXc34Bzy.js → insurance-B-Vmdlxo.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { identifierSchema as e, isoDateTimeSchema as t } from "../models/types-
|
|
1
|
+
import { identifierSchema as e, isoDateTimeSchema as t } from "../models/types-ynW5hdp8.js";
|
|
2
2
|
import { moneyMinorSchema as n } from "./money-CVoCY4of.js";
|
|
3
|
-
import { productIdSchema as r } from "./product-id
|
|
4
|
-
import { productKindSchema as i } from "../models/Product.shared-
|
|
3
|
+
import { productIdSchema as r } from "./product-id-ChdStzgp.js";
|
|
4
|
+
import { productKindSchema as i } from "../models/Product.shared-C_HehlKK.js";
|
|
5
5
|
import { z as a } from "zod";
|
|
6
6
|
//#region ../booking-engine/dist/schemas/insurance.js
|
|
7
7
|
var o = a.enum(["sharelock", "morio"]), s = a.enum(["storefront", "staff"]), c = a.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { timeOfDaySchema as e } from "./shop-opening-hours-BlLD1gfz.js";
|
|
2
|
-
import { bookingEngineConfigurationSchema as t, checkoutConfigurationSchema as n } from "./booking-engine-configuration-
|
|
2
|
+
import { bookingEngineConfigurationSchema as t, checkoutConfigurationSchema as n } from "./booking-engine-configuration-CxKlxKCo.js";
|
|
3
3
|
import { z as r } from "zod";
|
|
4
4
|
//#region ../booking-engine/dist/schemas/public-booking-engine-configuration.js
|
|
5
5
|
var i = r.enum(["pickup", "delivery"]), a = r.object({
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./models/LocalizedString-JmOX62C3.js";
|
|
2
|
+
import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./schemas/money-CVoCY4of.js";
|
|
3
|
+
import { priceSchema as d, priceUnitSchema as f } from "./models/Price-DCAgqkKh.js";
|
|
4
|
+
import { productIdSchema as p } from "./schemas/product-id-ChdStzgp.js";
|
|
5
|
+
import { DEFAULT_PRODUCT_KIND as m, PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as h, PRODUCT_VARIANT_CODE_MAX_LENGTH as g, accessoryProductSchema as _, bikeProductSchema as v, eBikeProductSchema as y, isProductVariantCodeIdentifierKind as b, productInsuranceSchema as x, productKindSchema as S, productSchema as C, productStorefrontDisplayModeSchema as w, productVariantAttributeSchema as T, productVariantCodeSchema as E, productVariantIdentifierSchema as D, productVariantSchema as O } from "./models/Product.shared-C_HehlKK.js";
|
|
6
|
+
import { BOOKING_REFERENCE_COUNTER_MIN_DIGITS as k, BOOKING_REFERENCE_REGEX as A, BOOKING_REFERENCE_YEAR_MONTH_REGEX as j, bookingReferenceSchema as M, bookingReferenceYearMonthSchema as N, formatBookingReference as P, formatBookingReferenceYearMonth as F } from "./schemas/booking-reference-DLKcpIa4.js";
|
|
7
|
+
import { richTextJsonDocSchema as I, richTextSchema as L, richTextVersionSchema as R } from "./schemas/rich-text-DTRh7U3z.js";
|
|
8
|
+
import { isoDateSchema as z, shopConfigurationSchema as B, shopExtraTimeSlotRuleSchema as V, shopOpeningDayIndexSchema as H, shopOpeningDaySchema as U, shopOpeningHoursOverrideSchema as W, shopOpeningHoursPeriodSchema as G, shopOpeningSlotSchema as K, timeOfDaySchema as q } from "./schemas/shop-opening-hours-BlLD1gfz.js";
|
|
9
|
+
import { DEFAULT_CANCELLATION_POLICY as J, DEFAULT_PAYMENT_POLICIES as Y, cancellationPolicySchema as X, cancellationPolicyTierSchema as Z, paymentPoliciesSchema as Q } from "./schemas/booking-engine-configuration-CxKlxKCo.js";
|
|
10
|
+
import { fulfillmentModeSchema as $, publicBookingEngineConfigurationSchema as ee, publicCheckoutConfigurationSchema as te, publicCheckoutDynamicOptionsSchema as ne } from "./schemas/public-booking-engine-configuration-BwWn9aK0.js";
|
|
11
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as re, bookingCustomerInputSchema as ie, bookingDeliveryOptionSchema as ae, bookingScheduleInputSchema as oe, cartItemInputSchema as se, createBookingInputBaseSchema as ce, createBookingInputSchema as le, resolveBookingDeliveryOption as ue, validateBookingDeliveryAddress as de } from "./schemas/cart-inputs-D1KobIdr.js";
|
|
12
|
+
import { bookingInsuranceConsentSourceSchema as fe, bookingInsuranceItemSnapshotSchema as pe, bookingInsuranceSnapshotSchema as me, buildBookingInsuranceSnapshot as he, calculateInsuranceCalendarDays as ge, insuranceProviderSchema as _e } from "./schemas/insurance-B-Vmdlxo.js";
|
|
13
|
+
import { resolveOpeningHoursForDate as ve, resolveOpeningHoursPeriodForDate as ye } from "./utils/opening-hours-period-TCyLhzZw.js";
|
|
14
|
+
import "./schemas/base-product-QYQBl0fQ.js";
|
|
15
|
+
import { assetIdSchema as be, baseAssetSchema as xe, baseAssetStatusSchema as Se } from "./schemas/base-asset-CFAxfmRW.js";
|
|
16
|
+
import { baseBookingItemSchema as Ce, baseBookingSchema as we, baseBookingStateSchema as Te } from "./schemas/base-booking-CZOR9kya.js";
|
|
17
|
+
export { k as BOOKING_REFERENCE_COUNTER_MIN_DIGITS, A as BOOKING_REFERENCE_REGEX, j as BOOKING_REFERENCE_YEAR_MONTH_REGEX, re as DEFAULT_BOOKING_DELIVERY_OPTION, J as DEFAULT_CANCELLATION_POLICY, Y as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, _ as accessoryProductSchema, be as assetIdSchema, xe as baseAssetSchema, Se as baseAssetStatusSchema, Ce as baseBookingItemSchema, we as baseBookingSchema, Te as baseBookingStateSchema, v as bikeProductSchema, ie as bookingCustomerInputSchema, ae as bookingDeliveryOptionSchema, fe as bookingInsuranceConsentSourceSchema, pe as bookingInsuranceItemSnapshotSchema, me as bookingInsuranceSnapshotSchema, M as bookingReferenceSchema, N as bookingReferenceYearMonthSchema, oe as bookingScheduleInputSchema, he as buildBookingInsuranceSnapshot, ge as calculateInsuranceCalendarDays, X as cancellationPolicySchema, Z as cancellationPolicyTierSchema, se as cartItemInputSchema, ce as createBookingInputBaseSchema, le as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, y as eBikeProductSchema, P as formatBookingReference, F as formatBookingReferenceYearMonth, $ as fulfillmentModeSchema, t as getLocalizedStringValue, _e as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, z as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, Q as paymentPoliciesSchema, 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, ee as publicBookingEngineConfigurationSchema, te as publicCheckoutConfigurationSchema, ne as publicCheckoutDynamicOptionsSchema, ue as resolveBookingDeliveryOption, ve as resolveOpeningHoursForDate, ye as resolveOpeningHoursPeriodForDate, I as richTextJsonDocSchema, L as richTextSchema, R as richTextVersionSchema, B as shopConfigurationSchema, V as shopExtraTimeSlotRuleSchema, H as shopOpeningDayIndexSchema, U as shopOpeningDaySchema, W as shopOpeningHoursOverrideSchema, G as shopOpeningHoursPeriodSchema, K as shopOpeningSlotSchema, u as signedMoneyMinorSchema, q as timeOfDaySchema, de as validateBookingDeliveryAddress };
|
|
@@ -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"}
|