@loczer/storefront-sdk 0.192.0 → 0.194.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-cjcvMCMa.js → Product.shared-iVSHRdn4.js} +21 -21
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-CsOe0vXi.js → base-asset-BRQVuIes.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-Sjsqh31e.js → base-booking-Bhy2Kww1.js} +2 -2
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-C_ATjuc6.js → base-product-BJHQLX8t.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-B01h642r.js → insurance-CPeHsTss.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js +14 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +35 -53
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +35 -53
- package/dist/components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts +7 -0
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.js +29 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.js +11 -2
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +3 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +114 -110
- package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.d.ts +10 -0
- package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.d.ts.map +1 -0
- package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.js +104 -0
- package/dist/components/ContractSaleDocument/Invoice.d.ts +2 -2
- package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/Invoice.js +182 -135
- package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +106 -138
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts +0 -2
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.js +32 -37
- package/dist/i18n/en.d.ts +4 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +4 -0
- package/dist/i18n/fr.d.ts +4 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +4 -0
- package/dist/index.d.ts +126 -9
- package/dist/index.js +70 -70
- package/dist/lib/booking.js +1 -1
- package/dist/lib/checkoutSubmit.js +2 -2
- package/dist/lib/contractSaleDocument.d.ts +44 -3
- package/dist/lib/contractSaleDocument.d.ts.map +1 -1
- package/dist/lib/contractSaleDocument.js +33 -17
- package/dist/lib/contractSaleDocumentApi.d.ts +54 -6
- package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
- package/dist/lib/contractSaleDocumentApi.js +41 -37
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +180 -152
- package/dist/pages/ContractSaleDocumentPage.d.ts +21 -9
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +263 -257
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas-D_yUBLa0.js +0 -14
package/dist/index.d.ts
CHANGED
|
@@ -126,16 +126,24 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
126
126
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
127
127
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
128
128
|
}, z.core.$strip>>;
|
|
129
|
-
|
|
129
|
+
appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
kind: z.ZodEnum<{
|
|
132
|
+
rental_contract: "rental_contract";
|
|
133
|
+
rental_terms: "rental_terms";
|
|
134
|
+
sale_terms: "sale_terms";
|
|
135
|
+
}>;
|
|
130
136
|
title: z.ZodString;
|
|
131
137
|
articles: z.ZodArray<z.ZodObject<{
|
|
132
138
|
id: z.ZodString;
|
|
133
139
|
title: z.ZodString;
|
|
134
140
|
body: z.ZodString;
|
|
141
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
135
142
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
136
143
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
144
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
137
145
|
}, z.core.$strip>>;
|
|
138
|
-
}, z.core.$strip
|
|
146
|
+
}, z.core.$strip>>>;
|
|
139
147
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
140
148
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
141
149
|
none: "none";
|
|
@@ -145,6 +153,14 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
145
153
|
notes: z.ZodOptional<z.ZodString>;
|
|
146
154
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
147
155
|
dueDate: z.ZodPreprocess<z.ZodDate>;
|
|
156
|
+
rental: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
bookingNumber: z.ZodString;
|
|
158
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
159
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
160
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
161
|
+
start: z.ZodPreprocess<z.ZodDate>;
|
|
162
|
+
end: z.ZodPreprocess<z.ZodDate>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
148
164
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
149
165
|
mode: z.ZodLiteral<"acceptance">;
|
|
150
166
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -724,6 +740,7 @@ export declare interface BookingPeriodControllerOptions {
|
|
|
724
740
|
bookingPeriodConfig?: BookingPeriodConfig;
|
|
725
741
|
fetchTimeSlots?: BookingPeriodTimeSlotsFetcher;
|
|
726
742
|
onTimeSlotsAvailabilityChange?: (isAvailable: boolean) => void;
|
|
743
|
+
onTimeSlotsConfirmationChange?: (isConfirmed: boolean) => void;
|
|
727
744
|
selectionFlow?: BookingPeriodSelectionFlow;
|
|
728
745
|
withMobileDateDrawer?: boolean;
|
|
729
746
|
currencyCode?: string;
|
|
@@ -774,6 +791,8 @@ export declare interface BookingPeriodControllerValue {
|
|
|
774
791
|
endTimeSlotsStatus: BookingPeriodTimeSlotsStatus;
|
|
775
792
|
retryStartTimeSlots: () => void;
|
|
776
793
|
retryEndTimeSlots: () => void;
|
|
794
|
+
hasAvailableTimeSlots: boolean;
|
|
795
|
+
hasConfirmedTimeSlots: boolean;
|
|
777
796
|
canCommitTimeSlots: boolean;
|
|
778
797
|
isStartToday: boolean;
|
|
779
798
|
isEndToday: boolean;
|
|
@@ -996,7 +1015,7 @@ export declare function ContactSection({ storeSlug }: {
|
|
|
996
1015
|
storeSlug: string;
|
|
997
1016
|
}): JSX.Element;
|
|
998
1017
|
|
|
999
|
-
export declare function ContractSaleDocument({ data: initialData,
|
|
1018
|
+
export declare function ContractSaleDocument({ data: initialData, showAppendices, withEnglishTranslation, heightMode, renderMode, publicDocumentUrl, onAccept, }: ContractSaleDocumentProps): JSX.Element;
|
|
1000
1019
|
|
|
1001
1020
|
export declare type ContractSaleDocumentAcceptance = z.infer<typeof contractSaleDocumentAcceptanceSchema>;
|
|
1002
1021
|
|
|
@@ -1146,16 +1165,24 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
|
|
|
1146
1165
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1147
1166
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1148
1167
|
}, z.core.$strip>>;
|
|
1149
|
-
|
|
1168
|
+
appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1169
|
+
id: z.ZodString;
|
|
1170
|
+
kind: z.ZodEnum<{
|
|
1171
|
+
rental_contract: "rental_contract";
|
|
1172
|
+
rental_terms: "rental_terms";
|
|
1173
|
+
sale_terms: "sale_terms";
|
|
1174
|
+
}>;
|
|
1150
1175
|
title: z.ZodString;
|
|
1151
1176
|
articles: z.ZodArray<z.ZodObject<{
|
|
1152
1177
|
id: z.ZodString;
|
|
1153
1178
|
title: z.ZodString;
|
|
1154
1179
|
body: z.ZodString;
|
|
1180
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
1155
1181
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
1156
1182
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
1183
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
1157
1184
|
}, z.core.$strip>>;
|
|
1158
|
-
}, z.core.$strip
|
|
1185
|
+
}, z.core.$strip>>>;
|
|
1159
1186
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1160
1187
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
1161
1188
|
none: "none";
|
|
@@ -1165,6 +1192,14 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
|
|
|
1165
1192
|
notes: z.ZodOptional<z.ZodString>;
|
|
1166
1193
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
1167
1194
|
dueDate: z.ZodPreprocess<z.ZodDate>;
|
|
1195
|
+
rental: z.ZodOptional<z.ZodObject<{
|
|
1196
|
+
bookingNumber: z.ZodString;
|
|
1197
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
1199
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
1200
|
+
start: z.ZodPreprocess<z.ZodDate>;
|
|
1201
|
+
end: z.ZodPreprocess<z.ZodDate>;
|
|
1202
|
+
}, z.core.$strip>>;
|
|
1168
1203
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1169
1204
|
mode: z.ZodLiteral<"acceptance">;
|
|
1170
1205
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -1187,6 +1222,35 @@ export declare const contractSaleDocumentApiSignatureSchema: z.ZodObject<{
|
|
|
1187
1222
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
1188
1223
|
}, z.core.$strip>;
|
|
1189
1224
|
|
|
1225
|
+
export declare type ContractSaleDocumentAppendix = z.infer<typeof contractSaleDocumentAppendixSchema>;
|
|
1226
|
+
|
|
1227
|
+
export declare type ContractSaleDocumentAppendixKind = z.infer<typeof contractSaleDocumentAppendixKindSchema>;
|
|
1228
|
+
|
|
1229
|
+
export declare const contractSaleDocumentAppendixKindSchema: z.ZodEnum<{
|
|
1230
|
+
rental_contract: "rental_contract";
|
|
1231
|
+
rental_terms: "rental_terms";
|
|
1232
|
+
sale_terms: "sale_terms";
|
|
1233
|
+
}>;
|
|
1234
|
+
|
|
1235
|
+
export declare const contractSaleDocumentAppendixSchema: z.ZodObject<{
|
|
1236
|
+
id: z.ZodString;
|
|
1237
|
+
kind: z.ZodEnum<{
|
|
1238
|
+
rental_contract: "rental_contract";
|
|
1239
|
+
rental_terms: "rental_terms";
|
|
1240
|
+
sale_terms: "sale_terms";
|
|
1241
|
+
}>;
|
|
1242
|
+
title: z.ZodString;
|
|
1243
|
+
articles: z.ZodArray<z.ZodObject<{
|
|
1244
|
+
id: z.ZodString;
|
|
1245
|
+
title: z.ZodString;
|
|
1246
|
+
body: z.ZodString;
|
|
1247
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
1248
|
+
translationTitle: z.ZodOptional<z.ZodString>;
|
|
1249
|
+
translationBody: z.ZodOptional<z.ZodString>;
|
|
1250
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
1251
|
+
}, z.core.$strip>>;
|
|
1252
|
+
}, z.core.$strip>;
|
|
1253
|
+
|
|
1190
1254
|
export declare type ContractSaleDocumentContact = z.infer<typeof contractSaleDocumentContactSchema>;
|
|
1191
1255
|
|
|
1192
1256
|
export declare const contractSaleDocumentContactSchema: z.ZodObject<{
|
|
@@ -1261,7 +1325,7 @@ export declare const contractSaleDocumentLineItemSchema: z.ZodObject<{
|
|
|
1261
1325
|
|
|
1262
1326
|
export declare type ContractSaleDocumentProps = {
|
|
1263
1327
|
data: ContractSaleDocumentData;
|
|
1264
|
-
|
|
1328
|
+
showAppendices?: boolean;
|
|
1265
1329
|
withEnglishTranslation?: boolean;
|
|
1266
1330
|
heightMode?: "parent" | "viewport";
|
|
1267
1331
|
renderMode?: "interactive" | "pdf";
|
|
@@ -1288,6 +1352,17 @@ export declare const contractSaleDocumentReferenceTypeSchema: z.ZodEnum<{
|
|
|
1288
1352
|
sale: "sale";
|
|
1289
1353
|
}>;
|
|
1290
1354
|
|
|
1355
|
+
export declare type ContractSaleDocumentRental = z.infer<typeof contractSaleDocumentRentalSchema>;
|
|
1356
|
+
|
|
1357
|
+
export declare const contractSaleDocumentRentalSchema: z.ZodObject<{
|
|
1358
|
+
bookingNumber: z.ZodString;
|
|
1359
|
+
start: z.ZodDate;
|
|
1360
|
+
end: z.ZodDate;
|
|
1361
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
1362
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
1364
|
+
}, z.core.$strip>;
|
|
1365
|
+
|
|
1291
1366
|
export declare const contractSaleDocumentSchema: z.ZodObject<{
|
|
1292
1367
|
id: z.ZodString;
|
|
1293
1368
|
kind: z.ZodEnum<{
|
|
@@ -1369,15 +1444,31 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
|
|
|
1369
1444
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1370
1445
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1371
1446
|
}, z.core.$strip>>;
|
|
1372
|
-
|
|
1447
|
+
appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1448
|
+
id: z.ZodString;
|
|
1449
|
+
kind: z.ZodEnum<{
|
|
1450
|
+
rental_contract: "rental_contract";
|
|
1451
|
+
rental_terms: "rental_terms";
|
|
1452
|
+
sale_terms: "sale_terms";
|
|
1453
|
+
}>;
|
|
1373
1454
|
title: z.ZodString;
|
|
1374
1455
|
articles: z.ZodArray<z.ZodObject<{
|
|
1375
1456
|
id: z.ZodString;
|
|
1376
1457
|
title: z.ZodString;
|
|
1377
1458
|
body: z.ZodString;
|
|
1459
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
1378
1460
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
1379
1461
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
1462
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
1380
1463
|
}, z.core.$strip>>;
|
|
1464
|
+
}, z.core.$strip>>>;
|
|
1465
|
+
rental: z.ZodOptional<z.ZodObject<{
|
|
1466
|
+
bookingNumber: z.ZodString;
|
|
1467
|
+
start: z.ZodDate;
|
|
1468
|
+
end: z.ZodDate;
|
|
1469
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
1470
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
1381
1472
|
}, z.core.$strip>>;
|
|
1382
1473
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1383
1474
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1539,6 +1630,8 @@ export declare const DEFAULT_CANCELLATION_POLICY: CancellationPolicy;
|
|
|
1539
1630
|
|
|
1540
1631
|
export declare const DEFAULT_PAYMENT_POLICIES: PaymentPolicies;
|
|
1541
1632
|
|
|
1633
|
+
export declare const DEFAULT_PRODUCT_KIND: "bike";
|
|
1634
|
+
|
|
1542
1635
|
export declare const DelayedPlaceholder: ({ value, className, reserveWidth, }: {
|
|
1543
1636
|
value: string;
|
|
1544
1637
|
className?: string;
|
|
@@ -1825,16 +1918,24 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
1825
1918
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1826
1919
|
taxExemptionReason: z.ZodOptional<z.ZodString>;
|
|
1827
1920
|
}, z.core.$strip>>;
|
|
1828
|
-
|
|
1921
|
+
appendices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1922
|
+
id: z.ZodString;
|
|
1923
|
+
kind: z.ZodEnum<{
|
|
1924
|
+
rental_contract: "rental_contract";
|
|
1925
|
+
rental_terms: "rental_terms";
|
|
1926
|
+
sale_terms: "sale_terms";
|
|
1927
|
+
}>;
|
|
1829
1928
|
title: z.ZodString;
|
|
1830
1929
|
articles: z.ZodArray<z.ZodObject<{
|
|
1831
1930
|
id: z.ZodString;
|
|
1832
1931
|
title: z.ZodString;
|
|
1833
1932
|
body: z.ZodString;
|
|
1933
|
+
bodyHtml: z.ZodOptional<z.ZodString>;
|
|
1834
1934
|
translationTitle: z.ZodOptional<z.ZodString>;
|
|
1835
1935
|
translationBody: z.ZodOptional<z.ZodString>;
|
|
1936
|
+
translationBodyHtml: z.ZodOptional<z.ZodString>;
|
|
1836
1937
|
}, z.core.$strip>>;
|
|
1837
|
-
}, z.core.$strip
|
|
1938
|
+
}, z.core.$strip>>>;
|
|
1838
1939
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
1839
1940
|
acceptanceLevel: z.ZodDefault<z.ZodEnum<{
|
|
1840
1941
|
none: "none";
|
|
@@ -1844,6 +1945,14 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
|
|
|
1844
1945
|
notes: z.ZodOptional<z.ZodString>;
|
|
1845
1946
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
1846
1947
|
dueDate: z.ZodPreprocess<z.ZodDate>;
|
|
1948
|
+
rental: z.ZodOptional<z.ZodObject<{
|
|
1949
|
+
bookingNumber: z.ZodString;
|
|
1950
|
+
pickupAddress: z.ZodOptional<z.ZodString>;
|
|
1951
|
+
returnAddress: z.ZodOptional<z.ZodString>;
|
|
1952
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
1953
|
+
start: z.ZodPreprocess<z.ZodDate>;
|
|
1954
|
+
end: z.ZodPreprocess<z.ZodDate>;
|
|
1955
|
+
}, z.core.$strip>>;
|
|
1847
1956
|
acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1848
1957
|
mode: z.ZodLiteral<"acceptance">;
|
|
1849
1958
|
date: z.ZodPreprocess<z.ZodDate>;
|
|
@@ -3911,6 +4020,10 @@ export declare const storefrontEn: {
|
|
|
3911
4020
|
docs_contract_sale_due_date_label: string;
|
|
3912
4021
|
docs_contract_sale_invoice_recipient_label: string;
|
|
3913
4022
|
docs_contract_sale_credit_note_recipient_label: string;
|
|
4023
|
+
docs_contract_sale_rental_details_title: string;
|
|
4024
|
+
docs_contract_sale_booking_number_label: string;
|
|
4025
|
+
docs_contract_sale_rental_start_label: string;
|
|
4026
|
+
docs_contract_sale_rental_end_label: string;
|
|
3914
4027
|
docs_contract_sale_description_label: string;
|
|
3915
4028
|
docs_contract_sale_quantity_label: string;
|
|
3916
4029
|
docs_contract_sale_unit_price_label: string;
|
|
@@ -4397,6 +4510,10 @@ export declare const storefrontFr: {
|
|
|
4397
4510
|
docs_contract_sale_due_date_label: string;
|
|
4398
4511
|
docs_contract_sale_invoice_recipient_label: string;
|
|
4399
4512
|
docs_contract_sale_credit_note_recipient_label: string;
|
|
4513
|
+
docs_contract_sale_rental_details_title: string;
|
|
4514
|
+
docs_contract_sale_booking_number_label: string;
|
|
4515
|
+
docs_contract_sale_rental_start_label: string;
|
|
4516
|
+
docs_contract_sale_rental_end_label: string;
|
|
4400
4517
|
docs_contract_sale_description_label: string;
|
|
4401
4518
|
docs_contract_sale_quantity_label: string;
|
|
4402
4519
|
docs_contract_sale_unit_price_label: string;
|
package/dist/index.js
CHANGED
|
@@ -2,81 +2,81 @@
|
|
|
2
2
|
import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./chunks/pkg/booking-engine/dist/models/LocalizedString-D_TRgAdr.js";
|
|
3
3
|
import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./chunks/pkg/booking-engine/dist/schemas/money-CVoCY4of.js";
|
|
4
4
|
import { priceSchema as d, priceUnitSchema as f } from "./chunks/pkg/booking-engine/dist/models/Price-DCAgqkKh.js";
|
|
5
|
-
import {
|
|
6
|
-
import { richTextJsonDocSchema as
|
|
7
|
-
import { isoDateSchema as
|
|
8
|
-
import { DEFAULT_CANCELLATION_POLICY as
|
|
9
|
-
import { fulfillmentModeSchema as
|
|
10
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as
|
|
11
|
-
import { bookingInsuranceConsentSourceSchema as
|
|
12
|
-
import { baseAssetSchema as
|
|
13
|
-
import { baseBookingItemSchema as
|
|
14
|
-
import "./chunks/pkg/booking-engine/dist/schemas-
|
|
15
|
-
import { STOREFRONT_HERO_MODES as
|
|
16
|
-
import { BOOKING_SEARCH_KEYS as
|
|
17
|
-
import { CATALOG_PRODUCT_BASE_RATE_UNSET as
|
|
18
|
-
import { StorefrontCartProvider as
|
|
19
|
-
import { cn as
|
|
20
|
-
import { buildDailyPriceRows as
|
|
21
|
-
import { getLocalizedEntry as
|
|
22
|
-
import { buildStorefrontCartSummary as
|
|
23
|
-
import { ROUTE as
|
|
24
|
-
import { formatStorefrontPhoneDisplay as
|
|
25
|
-
import { buildWhatsAppHref as
|
|
26
|
-
import { ROUTE as
|
|
27
|
-
import { ROUTE as
|
|
28
|
-
import { ROUTE as
|
|
29
|
-
import { ROUTE as
|
|
30
|
-
import { ROUTE as
|
|
31
|
-
import { Footer as
|
|
32
|
-
import { Badge as
|
|
33
|
-
import { Button as
|
|
34
|
-
import { Header as
|
|
35
|
-
import { storefront as
|
|
36
|
-
import { storefront as
|
|
37
|
-
import { PoweredByLoczerBadge as
|
|
38
|
-
import { PlatformFooter as
|
|
39
|
-
import { useWhatsAppFloatingButton as
|
|
40
|
-
import { WhatsAppFloatingButton as
|
|
5
|
+
import { DEFAULT_PRODUCT_KIND as p, PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as m, PRODUCT_VARIANT_CODE_MAX_LENGTH as h, accessoryProductSchema as g, bikeProductSchema as _, eBikeProductSchema as v, isProductVariantCodeIdentifierKind as y, productInsuranceSchema as b, productKindSchema as x, productSchema as S, productStorefrontDisplayModeSchema as C, productVariantAttributeSchema as w, productVariantCodeSchema as T, productVariantIdentifierSchema as E, productVariantSchema as D } from "./chunks/pkg/booking-engine/dist/models/Product.shared-iVSHRdn4.js";
|
|
6
|
+
import { richTextJsonDocSchema as O, richTextSchema as k, richTextVersionSchema as A } from "./chunks/pkg/booking-engine/dist/schemas/rich-text-DTRh7U3z.js";
|
|
7
|
+
import { isoDateSchema as j, shopConfigurationSchema as M, shopExtraTimeSlotRuleSchema as N, shopOpeningDayIndexSchema as P, shopOpeningDaySchema as F, shopOpeningHoursOverrideSchema as I, shopOpeningHoursPeriodSchema as L, shopOpeningSlotSchema as R, timeOfDaySchema as z } from "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
|
|
8
|
+
import { DEFAULT_CANCELLATION_POLICY as B, DEFAULT_PAYMENT_POLICIES as V, cancellationPolicySchema as H, cancellationPolicyTierSchema as U, paymentPoliciesSchema as W } from "./chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-LnrhShqm.js";
|
|
9
|
+
import { fulfillmentModeSchema as G, publicBookingEngineConfigurationSchema as K, publicCheckoutConfigurationSchema as q, publicCheckoutDynamicOptionsSchema as J } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-CEM9mexX.js";
|
|
10
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as Y, bookingCustomerInputSchema as X, bookingDeliveryOptionSchema as Z, bookingScheduleInputSchema as Q, cartItemInputSchema as $, createBookingInputBaseSchema as ee, createBookingInputSchema as te, resolveBookingDeliveryOption as ne, validateBookingDeliveryAddress as re } from "./chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js";
|
|
11
|
+
import { bookingInsuranceConsentSourceSchema as ie, bookingInsuranceItemSnapshotSchema as ae, bookingInsuranceSnapshotSchema as oe, buildBookingInsuranceSnapshot as se, calculateInsuranceCalendarDays as ce, insuranceProviderSchema as le } from "./chunks/pkg/booking-engine/dist/schemas/insurance-CPeHsTss.js";
|
|
12
|
+
import { baseAssetSchema as ue, baseAssetStatusSchema as de } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-BRQVuIes.js";
|
|
13
|
+
import { baseBookingItemSchema as fe, baseBookingSchema as pe, baseBookingStateSchema as me } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-Bhy2Kww1.js";
|
|
14
|
+
import "./chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
|
|
15
|
+
import { STOREFRONT_HERO_MODES as he, storefrontCheckoutModeSchema as ge, storefrontConfigurationSchema as _e, storefrontContentSchema as ve, storefrontFaqItemSchema as ye, storefrontFaqSchema as be, storefrontFulfillmentModeSchema as xe, storefrontHeroModeSchema as Se, storefrontLocalizedRichTextSchema as Ce, storefrontModalMessageSchema as we, storefrontModulesSchema as Te, storefrontReviewsModuleSchema as Ee, storefrontRichTextSchema as De, storefrontSettingsSchema as Oe, storefrontShopSchema as ke, storefrontStatusSchema as Ae, storefrontWorkspaceSchema as je } from "./storefrontSchemas.js";
|
|
16
|
+
import { BOOKING_SEARCH_KEYS as Me, TIME_OPTIONS as Ne, applyBookingParamsToSearch as Pe, createBookingPeriodConfigFromBookingEngineConfiguration as Fe, createBookingPeriodConfigFromShopConfiguration as Ie, createBookingPeriodConfigFromStorefrontConfiguration as Le, getBookingDurationLabel as Re, getBookingDurationMinutes as ze, getBookingParamsFromSearch as Be, getBookingSessionStorageKey as Ve, getDefaultBookingParams as He, getDefaultBookingParamsForStorefrontConfiguration as Ue, pickBookingSearchParams as We, readBookingSearchParamsFromSessionStorage as Ge, readBookingSearchParamsFromStorage as Ke, resolveBookingSearchParams as qe, resolveBookingSearchParamsFromSessionStorage as Je, writeBookingSearchParamsToSessionStorage as Ye, writeBookingSearchParamsToStorage as Xe } from "./lib/booking.js";
|
|
17
|
+
import { CATALOG_PRODUCT_BASE_RATE_UNSET as Ze, buildStorefrontProductSlug as Qe, buildVariantStorefrontProductId as $e, compareCatalogProducts as et, compareStorefrontAccessoryProducts as tt, compareStorefrontBikeProducts as nt, findStorefrontProduct as rt, findStorefrontProductBySlug as it, getCatalogProductBaseRateMinor as at, getCatalogProductPaginationSort as ot, getCatalogProductSortFieldForPriceUnit as st, getStorefrontBaseDailyRateMinor as ct, getStorefrontCheckoutProductId as lt, getStorefrontRepresentedVariantId as ut, toStorefrontAccessoryProducts as dt, toStorefrontBikeProducts as ft, toStorefrontBookingProducts as pt, toStorefrontBookingProductsCollections as mt } from "./lib/products.js";
|
|
18
|
+
import { StorefrontCartProvider as ht, resolveStorefrontCartItemProduct as gt, useStorefrontCart as _t } from "./lib/cart.js";
|
|
19
|
+
import { cn as vt, formatPriceMinor as yt, getAvailabilityVariant as bt, getMinDayPriceMinor as xt } from "./lib/utils.js";
|
|
20
|
+
import { buildDailyPriceRows as St, buildPriceTierLabels as Ct, calculateDailyPriceForQuantity as wt, formatStorefrontPriceMinor as Tt } from "./lib/pricing.js";
|
|
21
|
+
import { getLocalizedEntry as Et, getLocalizedValue as Dt } from "./localization.js";
|
|
22
|
+
import { buildStorefrontCartSummary as Ot } from "./lib/cartSummary.js";
|
|
23
|
+
import { ROUTE as kt, requestSchema as At, responseSchema as jt } from "./lib/contactForm.js";
|
|
24
|
+
import { formatStorefrontPhoneDisplay as Mt, resolveStorefrontMapsHref as Nt, resolveStorefrontPhoneContact as Pt } from "./lib/storefrontContact.js";
|
|
25
|
+
import { buildWhatsAppHref as Ft, resolveStorefrontWhatsAppContact as It, resolveStorefrontWhatsAppHref as Lt } from "./lib/whatsapp.js";
|
|
26
|
+
import { ROUTE as Rt, requestBaseSchema as zt, requestCheckoutItemSchema as Bt, requestDeliveryRefinement as Vt, requestSchema as Ht, responseSchema as Ut } from "./lib/checkoutSubmit.js";
|
|
27
|
+
import { ROUTE as Wt, requestSchema as Gt, responseSchema as Kt, storefrontPublicAccessoryProductSchema as qt, storefrontPublicBikeAvailabilityStatusSchema as Jt, storefrontPublicBikeProductSchema as Yt, storefrontPublicProductDisplayModeSchema as Xt, storefrontPublicProductPriceSchema as Zt, storefrontPublicProductVariantAttributeSchema as Qt, storefrontPublicProductVariantIdentifierSchema as $t, storefrontPublicProductVariantSchema as en } from "./lib/storefrontProducts.js";
|
|
28
|
+
import { ROUTE as tn, buildStorefrontAvailabilityKey as nn, doesStorefrontAvailabilityDisplaySoldOut as rn, getStorefrontAvailabilityIssue as an, getStorefrontAvailabilityStatus as on, isStorefrontAvailabilityInsufficient as sn, publicAvailabilityDisplayModeSchema as cn, requestSchema as ln, responseSchema as un, shouldBlockStorefrontUnavailableItem as dn, storefrontAvailabilityProductSchema as fn, storefrontAvailabilityScheduleSchema as pn, storefrontPublicAvailabilityRecordSchema as mn } from "./lib/storefrontAvailability.js";
|
|
29
|
+
import { ROUTE as hn, buildStorefrontImageUrl as gn, requestSchema as _n } from "./lib/storefrontImage.js";
|
|
30
|
+
import { ROUTE as vn, requestSchema as yn, responseSchema as bn, storefrontTimeSlotSchema as xn, timeSlotJourneySchema as Sn } from "./lib/storefrontTimeSlots.js";
|
|
31
|
+
import { Footer as Cn } from "./components/Footer/index.js";
|
|
32
|
+
import { Badge as wn, badgeVariants as Tn } from "./ui/badge.js";
|
|
33
|
+
import { Button as En, buttonVariants as Dn } from "./ui/button.js";
|
|
34
|
+
import { Header as On } from "./components/Header/index.js";
|
|
35
|
+
import { storefront as kn } from "./i18n/en.js";
|
|
36
|
+
import { storefront as An } from "./i18n/fr.js";
|
|
37
|
+
import { PoweredByLoczerBadge as jn } from "./components/PoweredByLoczerBadge/index.js";
|
|
38
|
+
import { PlatformFooter as Mn } from "./components/PlatformFooter/index.js";
|
|
39
|
+
import { useWhatsAppFloatingButton as Nn } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
|
|
40
|
+
import { WhatsAppFloatingButton as Pn } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
41
41
|
import "./components/WhatsAppFloatingButton/index.js";
|
|
42
|
-
import { Layout as
|
|
43
|
-
import { DelayedPlaceholder as
|
|
44
|
-
import { BookingPeriodProvider as
|
|
45
|
-
import { Label as
|
|
46
|
-
import { BookingStartDateField as
|
|
47
|
-
import { BookingStartTimeField as
|
|
48
|
-
import { BookingEndDateField as
|
|
49
|
-
import { BookingEndTimeField as
|
|
50
|
-
import { BookingTimeSlotsStatus as
|
|
51
|
-
import { BookingMobileDateDrawer as
|
|
52
|
-
import { BookingPeriodSelector as
|
|
53
|
-
import { BookingFlowSteps as
|
|
54
|
-
import { Input as
|
|
55
|
-
import { DeliveryAddressSelector as
|
|
56
|
-
import { loader as
|
|
57
|
-
import { Form as
|
|
58
|
-
import { Textarea as
|
|
59
|
-
import { ContactSection as
|
|
60
|
-
import { TestimonialsSection as
|
|
61
|
-
import { AboutSection as
|
|
62
|
-
import { StepSectionTitle as
|
|
63
|
-
import { Card as
|
|
64
|
-
import { ProductWarningNotice as
|
|
65
|
-
import { StorefrontCartPanel as
|
|
66
|
-
import { ProductPriceBadge as
|
|
67
|
-
import { ContractSaleDocument as
|
|
42
|
+
import { Layout as Fn } from "./components/Layout/index.js";
|
|
43
|
+
import { DelayedPlaceholder as In, DelayedReveal as Ln } from "./components/DelayedReveal/index.js";
|
|
44
|
+
import { BookingPeriodProvider as Rn, useBookingPeriod as zn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
45
|
+
import { Label as Bn } from "./ui/label.js";
|
|
46
|
+
import { BookingStartDateField as Vn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
47
|
+
import { BookingStartTimeField as Hn } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
48
|
+
import { BookingEndDateField as Un } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
49
|
+
import { BookingEndTimeField as Wn } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
50
|
+
import { BookingTimeSlotsStatus as Gn } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
|
|
51
|
+
import { BookingMobileDateDrawer as Kn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
|
|
52
|
+
import { BookingPeriodSelector as qn } from "./components/BookingPeriodSelector/index.js";
|
|
53
|
+
import { BookingFlowSteps as Jn } from "./components/BookingFlowSteps/index.js";
|
|
54
|
+
import { Input as Yn } from "./ui/input.js";
|
|
55
|
+
import { DeliveryAddressSelector as Xn } from "./components/DeliveryAddressSelector/index.js";
|
|
56
|
+
import { loader as Zn, useOptionalStorefront as Qn, useStorefront as $n, useStorefrontBookingProducts as er, useStorefrontConfig as tr, useStorefrontProducts as nr, useStorefrontWorkspaceLanguage as rr } from "./StorefrontProvider.js";
|
|
57
|
+
import { Form as ir, FormControl as ar, FormDescription as or, FormField as sr, FormItem as cr, FormLabel as lr, FormMessage as ur, useFormField as dr } from "./ui/form.js";
|
|
58
|
+
import { Textarea as fr } from "./ui/textarea.js";
|
|
59
|
+
import { ContactSection as pr } from "./components/ContactSection/index.js";
|
|
60
|
+
import { TestimonialsSection as mr } from "./components/TestimonialsSection/index.js";
|
|
61
|
+
import { AboutSection as hr } from "./components/AboutSection/index.js";
|
|
62
|
+
import { StepSectionTitle as gr } from "./components/StepSectionTitle/index.js";
|
|
63
|
+
import { Card as _r, CardAction as vr, CardContent as yr, CardDescription as br, CardFooter as xr, CardHeader as Sr, CardTitle as Cr } from "./ui/card.js";
|
|
64
|
+
import { ProductWarningNotice as wr } from "./components/ProductWarningNotice/index.js";
|
|
65
|
+
import { StorefrontCartPanel as Tr } from "./components/StorefrontCartPanel/index.js";
|
|
66
|
+
import { ProductPriceBadge as Er } from "./components/ProductPriceBadge/index.js";
|
|
67
|
+
import { ContractSaleDocument as Dr } from "./components/ContractSaleDocument/Invoice.js";
|
|
68
68
|
import "./components/ContractSaleDocument/index.js";
|
|
69
|
-
import { RadioGroup as
|
|
69
|
+
import { RadioGroup as Or, RadioGroupItem as kr } from "./ui/radio-group.js";
|
|
70
70
|
import "./pages/HomePage.js";
|
|
71
71
|
import "./pages/BookingPage.js";
|
|
72
72
|
import "./pages/ProductPage.js";
|
|
73
73
|
import "./pages/CheckoutPage.js";
|
|
74
74
|
import "./pages/CheckoutSuccessPage.js";
|
|
75
75
|
import "./pages/NotFoundPage.js";
|
|
76
|
-
import { accessories as
|
|
77
|
-
import
|
|
78
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
79
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
80
|
-
import
|
|
81
|
-
import { Select as
|
|
82
|
-
export {
|
|
76
|
+
import { accessories as Ar } from "./data/accessories.js";
|
|
77
|
+
import jr from "./data/bikes.js";
|
|
78
|
+
import { contractSaleDocumentAcceptanceLevelSchema as Mr, contractSaleDocumentAcceptanceRecordSchema as Nr, contractSaleDocumentAcceptanceSchema as Pr, contractSaleDocumentAddressSchema as Fr, contractSaleDocumentAppendixKindSchema as Ir, contractSaleDocumentAppendixSchema as Lr, contractSaleDocumentContactSchema as Rr, contractSaleDocumentKindSchema as zr, contractSaleDocumentLanguageCodeSchema as Br, contractSaleDocumentLanguageSchema as Vr, contractSaleDocumentLineItemSchema as Hr, contractSaleDocumentRentalSchema as Ur, contractSaleDocumentSchema as Wr, contractSaleDocumentSignatureSchema as Gr } from "./lib/contractSaleDocument.js";
|
|
79
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Kr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as qr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Jr, acceptContractSaleDocumentRequestSchema as Yr, acceptContractSaleDocumentResponseSchema as Xr, contractSaleDocumentAcceptanceInputSchema as Zr, contractSaleDocumentAcceptanceRecordInputSchema as Qr, contractSaleDocumentApiAcceptanceRecordSchema as $r, contractSaleDocumentApiAcceptanceSchema as ei, contractSaleDocumentApiSchema as ti, contractSaleDocumentApiSignatureSchema as ni, contractSaleDocumentReferenceSchema as ri, contractSaleDocumentReferenceTypeSchema as ii, contractSaleDocumentSignatureInputSchema as ai, downloadContractSaleDocumentPdfRequestSchema as oi, getContractSaleDocumentRequestSchema as si, getContractSaleDocumentResponseSchema as ci } from "./lib/contractSaleDocumentApi.js";
|
|
80
|
+
import li from "./routes.js";
|
|
81
|
+
import { Select as ui, SelectContent as di, SelectGroup as fi, SelectIcon as pi, SelectItem as mi, SelectItemIndicator as hi, SelectItemText as gi, SelectLabel as _i, SelectScrollDownButton as vi, SelectScrollUpButton as yi, SelectSeparator as bi, SelectTrigger as xi, SelectValue as Si } from "./ui/select.js";
|
|
82
|
+
export { Kr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, hr as AboutSection, Me as BOOKING_SEARCH_KEYS, wn as Badge, Un as BookingEndDateField, Wn as BookingEndTimeField, Jn as BookingFlowSteps, Kn as BookingMobileDateDrawer, Rn as BookingPeriodProvider, qn as BookingPeriodSelector, Vn as BookingStartDateField, Hn as BookingStartTimeField, Gn as BookingTimeSlotsStatus, En as Button, Ze as CATALOG_PRODUCT_BASE_RATE_UNSET, _r as Card, vr as CardAction, yr as CardContent, br as CardDescription, xr as CardFooter, Sr as CardHeader, Cr as CardTitle, pr as ContactSection, Dr as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, qr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, In as DelayedPlaceholder, Ln as DelayedReveal, Xn as DeliveryAddressSelector, Cn as Footer, ir as Form, ar as FormControl, or as FormDescription, sr as FormField, cr as FormItem, lr as FormLabel, ur as FormMessage, Jr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, On as Header, Yn as Input, Bn as Label, Fn as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, Mn as PlatformFooter, jn as PoweredByLoczerBadge, Er as ProductPriceBadge, wr as ProductWarningNotice, kt as ROUTE, Or as RadioGroup, kr as RadioGroupItem, tn as STOREFRONT_AVAILABILITY_ROUTE, Rt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, he as STOREFRONT_HERO_MODES, hn as STOREFRONT_IMAGE_ROUTE, Wt as STOREFRONT_PRODUCTS_ROUTE, vn as STOREFRONT_TIME_SLOTS_ROUTE, ui as Select, di as SelectContent, fi as SelectGroup, pi as SelectIcon, mi as SelectItem, hi as SelectItemIndicator, gi as SelectItemText, _i as SelectLabel, vi as SelectScrollDownButton, yi as SelectScrollUpButton, bi as SelectSeparator, xi as SelectTrigger, Si as SelectValue, gr as StepSectionTitle, Tr as StorefrontCartPanel, ht as StorefrontCartProvider, Ne as TIME_OPTIONS, mr as TestimonialsSection, fr as Textarea, Pn as WhatsAppFloatingButton, Yr as acceptContractSaleDocumentRequestSchema, Xr as acceptContractSaleDocumentResponseSchema, Ar as accessories, g as accessoryProductSchema, Pe as applyBookingParamsToSearch, Tn as badgeVariants, ue as baseAssetSchema, de as baseAssetStatusSchema, fe as baseBookingItemSchema, pe as baseBookingSchema, me as baseBookingStateSchema, _ as bikeProductSchema, jr as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, St as buildDailyPriceRows, Ct as buildPriceTierLabels, nn as buildStorefrontAvailabilityKey, Ot as buildStorefrontCartSummary, gn as buildStorefrontImageUrl, Qe as buildStorefrontProductSlug, $e as buildVariantStorefrontProductId, Ft as buildWhatsAppHref, Dn as buttonVariants, wt as calculateDailyPriceForQuantity, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, vt as cn, et as compareCatalogProducts, tt as compareStorefrontAccessoryProducts, nt as compareStorefrontBikeProducts, Zr as contractSaleDocumentAcceptanceInputSchema, Mr as contractSaleDocumentAcceptanceLevelSchema, Qr as contractSaleDocumentAcceptanceRecordInputSchema, Nr as contractSaleDocumentAcceptanceRecordSchema, Pr as contractSaleDocumentAcceptanceSchema, Fr as contractSaleDocumentAddressSchema, $r as contractSaleDocumentApiAcceptanceRecordSchema, ei as contractSaleDocumentApiAcceptanceSchema, ti as contractSaleDocumentApiSchema, ni as contractSaleDocumentApiSignatureSchema, Ir as contractSaleDocumentAppendixKindSchema, Lr as contractSaleDocumentAppendixSchema, Rr as contractSaleDocumentContactSchema, zr as contractSaleDocumentKindSchema, Br as contractSaleDocumentLanguageCodeSchema, Vr as contractSaleDocumentLanguageSchema, Hr as contractSaleDocumentLineItemSchema, ri as contractSaleDocumentReferenceSchema, ii as contractSaleDocumentReferenceTypeSchema, Ur as contractSaleDocumentRentalSchema, Wr as contractSaleDocumentSchema, ai as contractSaleDocumentSignatureInputSchema, Gr as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Fe as createBookingPeriodConfigFromBookingEngineConfiguration, Ie as createBookingPeriodConfigFromShopConfiguration, Le as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, rn as doesStorefrontAvailabilityDisplaySoldOut, oi as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, rt as findStorefrontProduct, it as findStorefrontProductBySlug, yt as formatPriceMinor, Mt as formatStorefrontPhoneDisplay, Tt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, bt as getAvailabilityVariant, Re as getBookingDurationLabel, ze as getBookingDurationMinutes, Be as getBookingParamsFromSearch, Ve as getBookingSessionStorageKey, at as getCatalogProductBaseRateMinor, ot as getCatalogProductPaginationSort, st as getCatalogProductSortFieldForPriceUnit, si as getContractSaleDocumentRequestSchema, ci as getContractSaleDocumentResponseSchema, He as getDefaultBookingParams, Ue as getDefaultBookingParamsForStorefrontConfiguration, Et as getLocalizedEntry, t as getLocalizedStringValue, Dt as getLocalizedValue, xt as getMinDayPriceMinor, an as getStorefrontAvailabilityIssue, on as getStorefrontAvailabilityStatus, ct as getStorefrontBaseDailyRateMinor, lt as getStorefrontCheckoutProductId, ut as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, sn as isStorefrontAvailabilityInsufficient, j as isoDateSchema, Zn as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, We as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, cn as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ge as readBookingSearchParamsFromSessionStorage, Ke as readBookingSearchParamsFromStorage, At as requestSchema, ne as resolveBookingDeliveryOption, qe as resolveBookingSearchParams, Je as resolveBookingSearchParamsFromSessionStorage, gt as resolveStorefrontCartItemProduct, Nt as resolveStorefrontMapsHref, Pt as resolveStorefrontPhoneContact, It as resolveStorefrontWhatsAppContact, Lt as resolveStorefrontWhatsAppHref, jt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, dn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, fn as storefrontAvailabilityProductSchema, ln as storefrontAvailabilityRequestSchema, un as storefrontAvailabilityResponseSchema, pn as storefrontAvailabilityScheduleSchema, ge as storefrontCheckoutModeSchema, Vt as storefrontCheckoutSubmitDeliveryRefinement, Bt as storefrontCheckoutSubmitItemSchema, zt as storefrontCheckoutSubmitRequestBaseSchema, Ht as storefrontCheckoutSubmitRequestSchema, Ut as storefrontCheckoutSubmitResponseSchema, _e as storefrontConfigurationSchema, ve as storefrontContentSchema, kn as storefrontEn, ye as storefrontFaqItemSchema, be as storefrontFaqSchema, An as storefrontFr, xe as storefrontFulfillmentModeSchema, Se as storefrontHeroModeSchema, _n as storefrontImageRequestSchema, Ce as storefrontLocalizedRichTextSchema, we as storefrontModalMessageSchema, Te as storefrontModulesSchema, Gt as storefrontProductsRequestSchema, Kt as storefrontProductsResponseSchema, qt as storefrontPublicAccessoryProductSchema, mn as storefrontPublicAvailabilityRecordSchema, Jt as storefrontPublicBikeAvailabilityStatusSchema, Yt as storefrontPublicBikeProductSchema, Xt as storefrontPublicProductDisplayModeSchema, Zt as storefrontPublicProductPriceSchema, Qt as storefrontPublicProductVariantAttributeSchema, $t as storefrontPublicProductVariantIdentifierSchema, en as storefrontPublicProductVariantSchema, Ee as storefrontReviewsModuleSchema, De as storefrontRichTextSchema, li as storefrontRoutes, Oe as storefrontSettingsSchema, ke as storefrontShopSchema, Ae as storefrontStatusSchema, Sn as storefrontTimeSlotJourneySchema, xn as storefrontTimeSlotSchema, yn as storefrontTimeSlotsRequestSchema, bn as storefrontTimeSlotsResponseSchema, je as storefrontWorkspaceSchema, z as timeOfDaySchema, dt as toStorefrontAccessoryProducts, ft as toStorefrontBikeProducts, pt as toStorefrontBookingProducts, mt as toStorefrontBookingProductsCollections, zn as useBookingPeriod, dr as useFormField, Qn as useOptionalStorefront, $n as useStorefront, er as useStorefrontBookingProducts, _t as useStorefrontCart, tr as useStorefrontConfig, nr as useStorefrontProducts, rr as useStorefrontWorkspaceLanguage, Nn as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Ye as writeBookingSearchParamsToSessionStorage, Xe as writeBookingSearchParamsToStorage };
|
package/dist/lib/booking.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js";
|
|
2
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
2
|
+
import "../chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
|
|
3
3
|
import { getDefaultBookingPeriod as t, parseTimeToMinutes as n } from "./booking-period.js";
|
|
4
4
|
import { differenceInMinutes as r, format as i } from "date-fns";
|
|
5
5
|
//#region src/lib/booking.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-
|
|
1
|
+
import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-iVSHRdn4.js";
|
|
2
2
|
import { DEFAULT_BOOKING_DELIVERY_OPTION as t, bookingScheduleInputSchema as n } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js";
|
|
3
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
3
|
+
import "../chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
|
|
4
4
|
import { storefrontFulfillmentModeSchema as r } from "../storefrontSchemas.js";
|
|
5
5
|
import { MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE as i, checkoutPaymentErrorCodeSchema as a } from "./checkoutPaymentDecision.js";
|
|
6
6
|
import { z as o } from "zod";
|