@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.
Files changed (51) hide show
  1. package/dist/StorefrontContext.d.ts +54 -0
  2. package/dist/StorefrontContext.d.ts.map +1 -1
  3. package/dist/StorefrontProvider.d.ts +27 -0
  4. package/dist/StorefrontProvider.d.ts.map +1 -1
  5. package/dist/chunks/pkg/booking-engine/dist/models/{LocalizedString-D_TRgAdr.js → LocalizedString-JmOX62C3.js} +1 -1
  6. package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-CWP_qule.js → Product.shared-C_HehlKK.js} +3 -3
  7. package/dist/chunks/pkg/booking-engine/dist/models/types-ynW5hdp8.js +8 -0
  8. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-BhIOL2rP.js → base-asset-CFAxfmRW.js} +3 -3
  9. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-BJXFzDM5.js → base-booking-CZOR9kya.js} +13 -12
  10. package/dist/chunks/pkg/booking-engine/dist/schemas/base-product-QYQBl0fQ.js +4 -0
  11. package/dist/chunks/pkg/booking-engine/dist/schemas/{booking-engine-configuration-LnrhShqm.js → booking-engine-configuration-CxKlxKCo.js} +1 -1
  12. package/dist/chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js +13 -0
  13. package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-3lBblkB0.js → cart-inputs-D1KobIdr.js} +4 -4
  14. package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-DXc34Bzy.js → insurance-B-Vmdlxo.js} +3 -3
  15. package/dist/chunks/pkg/booking-engine/dist/schemas/{product-id--yyUTH1Y.js → product-id-ChdStzgp.js} +1 -1
  16. package/dist/chunks/pkg/booking-engine/dist/schemas/{public-booking-engine-configuration-CEM9mexX.js → public-booking-engine-configuration-BwWn9aK0.js} +1 -1
  17. package/dist/chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js +17 -0
  18. package/dist/components/ContractSaleDocument/InvoiceDetails.js +1 -1
  19. package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -1
  20. package/dist/components/ContractSaleDocument/SignatureModal.js +79 -54
  21. package/dist/components/FaqSection/index.d.ts.map +1 -1
  22. package/dist/components/FaqSection/index.js +44 -26
  23. package/dist/components/Footer/businessHoursStatus.js +1 -1
  24. package/dist/components/SignatureInput/index.js +2 -1
  25. package/dist/components/SignatureInput.d.ts.map +1 -1
  26. package/dist/components/StorefrontInformationDocument/index.d.ts +4 -0
  27. package/dist/components/StorefrontInformationDocument/index.d.ts.map +1 -1
  28. package/dist/components/StorefrontInformationDocument/index.js +20 -11
  29. package/dist/i18n/en.js +1 -1
  30. package/dist/i18n/fr.js +1 -1
  31. package/dist/index.d.ts +193 -0
  32. package/dist/index.js +87 -86
  33. package/dist/lib/booking-period.js +1 -1
  34. package/dist/lib/booking.js +2 -2
  35. package/dist/lib/checkoutSubmit.d.ts.map +1 -1
  36. package/dist/lib/checkoutSubmit.js +45 -44
  37. package/dist/pages/CheckoutPage.d.ts.map +1 -1
  38. package/dist/pages/CheckoutPage.js +152 -151
  39. package/dist/pages/InsuranceTermsPage.d.ts.map +1 -1
  40. package/dist/pages/InsuranceTermsPage.js +18 -16
  41. package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +2 -1
  42. package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -1
  43. package/dist/pages/checkout/components/CheckoutDetailsCard.js +17 -14
  44. package/dist/storefront.css +1 -1
  45. package/dist/storefrontSchemas.d.ts +89 -0
  46. package/dist/storefrontSchemas.d.ts.map +1 -1
  47. package/dist/storefrontSchemas.js +21 -17
  48. package/package.json +1 -1
  49. package/dist/chunks/pkg/booking-engine/dist/models/types-rIp4ReXN.js +0 -8
  50. package/dist/chunks/pkg/booking-engine/dist/schemas/base-product-Bde9lJQD.js +0 -4
  51. package/dist/chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js +0 -16
@@ -104,6 +104,15 @@ export declare const storefrontWorkspaceSchema: z.ZodObject<{
104
104
  languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
105
  }, z.core.$strip>;
106
106
  export type StorefrontWorkspace = z.infer<typeof storefrontWorkspaceSchema>;
107
+ export declare const storefrontFaqAdditionalLinkSchema: z.ZodObject<{
108
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
109
+ value: z.ZodString;
110
+ updatedAt: z.ZodCoercedDate<unknown>;
111
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
112
+ }, z.core.$loose>>;
113
+ href: z.ZodString;
114
+ }, z.core.$strip>;
115
+ export type StorefrontFaqAdditionalLink = z.infer<typeof storefrontFaqAdditionalLinkSchema>;
107
116
  export declare const storefrontFaqItemSchema: z.ZodObject<{
108
117
  id: z.ZodString;
109
118
  question: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -116,6 +125,14 @@ export declare const storefrontFaqItemSchema: z.ZodObject<{
116
125
  updatedAt: z.ZodCoercedDate<unknown>;
117
126
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
118
127
  }, z.core.$loose>>;
128
+ additionalLink: z.ZodOptional<z.ZodObject<{
129
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
130
+ value: z.ZodString;
131
+ updatedAt: z.ZodCoercedDate<unknown>;
132
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
133
+ }, z.core.$loose>>;
134
+ href: z.ZodString;
135
+ }, z.core.$strip>>;
119
136
  }, z.core.$strip>;
120
137
  export type StorefrontFaqItem = z.infer<typeof storefrontFaqItemSchema>;
121
138
  export declare const storefrontModalMessageSchema: z.ZodObject<{
@@ -156,6 +173,14 @@ export declare const storefrontFaqSchema: z.ZodObject<{
156
173
  updatedAt: z.ZodCoercedDate<unknown>;
157
174
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
158
175
  }, z.core.$loose>>;
176
+ additionalLink: z.ZodOptional<z.ZodObject<{
177
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
178
+ value: z.ZodString;
179
+ updatedAt: z.ZodCoercedDate<unknown>;
180
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
181
+ }, z.core.$loose>>;
182
+ href: z.ZodString;
183
+ }, z.core.$strip>>;
159
184
  }, z.core.$strip>>>;
160
185
  deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
161
186
  id: z.ZodString;
@@ -169,6 +194,14 @@ export declare const storefrontFaqSchema: z.ZodObject<{
169
194
  updatedAt: z.ZodCoercedDate<unknown>;
170
195
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
171
196
  }, z.core.$loose>>;
197
+ additionalLink: z.ZodOptional<z.ZodObject<{
198
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
199
+ value: z.ZodString;
200
+ updatedAt: z.ZodCoercedDate<unknown>;
201
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
202
+ }, z.core.$loose>>;
203
+ href: z.ZodString;
204
+ }, z.core.$strip>>;
172
205
  }, z.core.$strip>>>;
173
206
  booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
174
207
  id: z.ZodString;
@@ -182,6 +215,14 @@ export declare const storefrontFaqSchema: z.ZodObject<{
182
215
  updatedAt: z.ZodCoercedDate<unknown>;
183
216
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
184
217
  }, z.core.$loose>>;
218
+ additionalLink: z.ZodOptional<z.ZodObject<{
219
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
220
+ value: z.ZodString;
221
+ updatedAt: z.ZodCoercedDate<unknown>;
222
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
223
+ }, z.core.$loose>>;
224
+ href: z.ZodString;
225
+ }, z.core.$strip>>;
185
226
  }, z.core.$strip>>>;
186
227
  }, z.core.$strip>;
187
228
  export type StorefrontFaq = z.infer<typeof storefrontFaqSchema>;
@@ -255,6 +296,14 @@ export declare const storefrontContentSchema: z.ZodObject<{
255
296
  updatedAt: z.ZodCoercedDate<unknown>;
256
297
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
257
298
  }, z.core.$loose>>;
299
+ additionalLink: z.ZodOptional<z.ZodObject<{
300
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
301
+ value: z.ZodString;
302
+ updatedAt: z.ZodCoercedDate<unknown>;
303
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
304
+ }, z.core.$loose>>;
305
+ href: z.ZodString;
306
+ }, z.core.$strip>>;
258
307
  }, z.core.$strip>>>;
259
308
  deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
260
309
  id: z.ZodString;
@@ -268,6 +317,14 @@ export declare const storefrontContentSchema: z.ZodObject<{
268
317
  updatedAt: z.ZodCoercedDate<unknown>;
269
318
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
270
319
  }, z.core.$loose>>;
320
+ additionalLink: z.ZodOptional<z.ZodObject<{
321
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
322
+ value: z.ZodString;
323
+ updatedAt: z.ZodCoercedDate<unknown>;
324
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
325
+ }, z.core.$loose>>;
326
+ href: z.ZodString;
327
+ }, z.core.$strip>>;
271
328
  }, z.core.$strip>>>;
272
329
  booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
273
330
  id: z.ZodString;
@@ -281,6 +338,14 @@ export declare const storefrontContentSchema: z.ZodObject<{
281
338
  updatedAt: z.ZodCoercedDate<unknown>;
282
339
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
283
340
  }, z.core.$loose>>;
341
+ additionalLink: z.ZodOptional<z.ZodObject<{
342
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
343
+ value: z.ZodString;
344
+ updatedAt: z.ZodCoercedDate<unknown>;
345
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
346
+ }, z.core.$loose>>;
347
+ href: z.ZodString;
348
+ }, z.core.$strip>>;
284
349
  }, z.core.$strip>>>;
285
350
  }, z.core.$strip>>;
286
351
  }, z.core.$strip>;
@@ -574,6 +639,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
574
639
  updatedAt: z.ZodCoercedDate<unknown>;
575
640
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
576
641
  }, z.core.$loose>>;
642
+ additionalLink: z.ZodOptional<z.ZodObject<{
643
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
644
+ value: z.ZodString;
645
+ updatedAt: z.ZodCoercedDate<unknown>;
646
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
647
+ }, z.core.$loose>>;
648
+ href: z.ZodString;
649
+ }, z.core.$strip>>;
577
650
  }, z.core.$strip>>>;
578
651
  deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
579
652
  id: z.ZodString;
@@ -587,6 +660,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
587
660
  updatedAt: z.ZodCoercedDate<unknown>;
588
661
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
589
662
  }, z.core.$loose>>;
663
+ additionalLink: z.ZodOptional<z.ZodObject<{
664
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
665
+ value: z.ZodString;
666
+ updatedAt: z.ZodCoercedDate<unknown>;
667
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
668
+ }, z.core.$loose>>;
669
+ href: z.ZodString;
670
+ }, z.core.$strip>>;
590
671
  }, z.core.$strip>>>;
591
672
  booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
592
673
  id: z.ZodString;
@@ -600,6 +681,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
600
681
  updatedAt: z.ZodCoercedDate<unknown>;
601
682
  autoTranslated: z.ZodOptional<z.ZodBoolean>;
602
683
  }, z.core.$loose>>;
684
+ additionalLink: z.ZodOptional<z.ZodObject<{
685
+ label: z.ZodRecord<z.ZodString, z.ZodObject<{
686
+ value: z.ZodString;
687
+ updatedAt: z.ZodCoercedDate<unknown>;
688
+ autoTranslated: z.ZodOptional<z.ZodBoolean>;
689
+ }, z.core.$loose>>;
690
+ href: z.ZodString;
691
+ }, z.core.$strip>>;
603
692
  }, z.core.$strip>>>;
604
693
  }, z.core.$strip>>;
605
694
  }, z.core.$strip>>;
@@ -1 +1 @@
1
- {"version":3,"file":"storefrontSchemas.d.ts","sourceRoot":"","sources":["../src/storefrontSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA0BvB,eAAO,MAAM,wBAAwB;;;;;kBAO1B,CAAA;AACX,eAAO,MAAM,iCAAiC;;;;;mBAE5C,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;iBAKtC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AA0C/E,eAAO,MAAM,sBAAsB;;;EAAuC,CAAA;AAC1E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,eAAO,MAAM,4BAA4B;;;EAAqE,CAAA;AAC9G,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEjF,eAAO,MAAM,+BAA+B;;;EAAiC,CAAA;AAC7E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEvF,eAAO,MAAM,qBAAqB,wFAIxB,CAAA;AACV,eAAO,MAAM,wBAAwB;;;;EAAgC,CAAA;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAIzE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;iBAOnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEzE,eAAO,MAAM,oB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { timeOfDaySchema as e } from "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
2
- import { publicBookingEngineConfigurationSchema as t } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-CEM9mexX.js";
3
- import "./chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js";
2
+ import { publicBookingEngineConfigurationSchema as t } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-BwWn9aK0.js";
3
+ import "./chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
4
4
  import { STOREFRONT_I18N_LANGUAGE_CODES as n } from "./i18n/languages.js";
5
5
  import { z as r } from "zod";
6
6
  //#region src/storefrontSchemas.ts
@@ -70,10 +70,14 @@ var i = r.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone n
70
70
  workspaceLanguage: r.enum(n).optional(),
71
71
  languages: r.array(r.string().min(1)).optional()
72
72
  }), T = r.object({
73
+ label: s,
74
+ href: r.string().trim().min(1)
75
+ }), E = r.object({
73
76
  id: r.string().min(1),
74
77
  question: s,
75
- answer: s
76
- }), E = r.object({
78
+ answer: s,
79
+ additionalLink: T.optional()
80
+ }), D = r.object({
77
81
  id: r.string().min(1),
78
82
  enabled: r.boolean().default(!0),
79
83
  showOnEachVisit: r.boolean().default(!1),
@@ -83,11 +87,11 @@ var i = r.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone n
83
87
  subtitle: o.optional(),
84
88
  message: p.optional(),
85
89
  imageIds: r.array(r.string().min(1)).default([])
86
- }), D = r.object({
87
- general: r.array(T).default([]),
88
- deliveries: r.array(T).default([]),
89
- booking: r.array(T).default([])
90
90
  }), O = r.object({
91
+ general: r.array(E).default([]),
92
+ deliveries: r.array(E).default([]),
93
+ booking: r.array(E).default([])
94
+ }), k = r.object({
91
95
  heroMode: b.default("current_booking_hero"),
92
96
  tagline: o.optional(),
93
97
  logoSquareImageId: r.string().min(1).optional(),
@@ -99,27 +103,27 @@ var i = r.string().trim().regex(/^\+[1-9]\d{1,14}$/, { message: "Invalid phone n
99
103
  whatsappPhone2Enabled: r.boolean().default(!1),
100
104
  whatsappMessage: o.optional(),
101
105
  showWhatsappFloatingButton: r.boolean().default(!0),
102
- modalMessages: r.array(E).default([]),
103
- faq: D.default({
106
+ modalMessages: r.array(D).default([]),
107
+ faq: O.default({
104
108
  general: [],
105
109
  deliveries: [],
106
110
  booking: []
107
111
  })
108
- }), k = r.object({
112
+ }), A = r.object({
109
113
  enabled: r.boolean(),
110
114
  showRecentReviewsOnStorefront: r.boolean()
111
- }), A = r.object({
112
- reviews: k.optional(),
113
- insurance: r.object({ enabled: r.boolean() }).optional()
114
115
  }), j = r.object({
116
+ reviews: A.optional(),
117
+ insurance: r.object({ enabled: r.boolean() }).optional()
118
+ }), M = r.object({
115
119
  storeSlug: r.string().min(1),
116
120
  workspace: w.optional(),
117
121
  shop: C,
118
122
  settings: S,
119
123
  bookingEngine: h,
120
- content: O.optional(),
124
+ content: k.optional(),
121
125
  information: u.optional(),
122
- modules: A.optional()
126
+ modules: j.optional()
123
127
  });
124
128
  //#endregion
125
- export { y as STOREFRONT_HERO_MODES, _ as storefrontCheckoutModeSchema, j as storefrontConfigurationSchema, O as storefrontContentSchema, T as storefrontFaqItemSchema, D as storefrontFaqSchema, v as storefrontFulfillmentModeSchema, b as storefrontHeroModeSchema, u as storefrontInformationSchema, l as storefrontLocalizedRichTextSchema, E as storefrontModalMessageSchema, A as storefrontModulesSchema, k as storefrontReviewsModuleSchema, c as storefrontRichTextSchema, S as storefrontSettingsSchema, C as storefrontShopSchema, g as storefrontStatusSchema, w as storefrontWorkspaceSchema };
129
+ export { y as STOREFRONT_HERO_MODES, _ as storefrontCheckoutModeSchema, M as storefrontConfigurationSchema, k as storefrontContentSchema, T as storefrontFaqAdditionalLinkSchema, E as storefrontFaqItemSchema, O as storefrontFaqSchema, v as storefrontFulfillmentModeSchema, b as storefrontHeroModeSchema, u as storefrontInformationSchema, l as storefrontLocalizedRichTextSchema, D as storefrontModalMessageSchema, j as storefrontModulesSchema, A as storefrontReviewsModuleSchema, c as storefrontRichTextSchema, S as storefrontSettingsSchema, C as storefrontShopSchema, g as storefrontStatusSchema, w as storefrontWorkspaceSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loczer/storefront-sdk",
3
- "version": "0.238.0",
3
+ "version": "0.240.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -1,8 +0,0 @@
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().trim().regex(/^[0-9A-HJKMNP-TV-Z]{26}$/i, "Identifier must be a ULID"), r = e.string().regex(/^[a-fA-F0-9]{24}$/, "Identifier must be a MongoDB ObjectId"), i = e.string().min(1, "Record key cannot be empty"), a = e.string().datetime({
4
- offset: !0,
5
- message: "Value must be an ISO-8601 timestamp"
6
- }), o = e.record(i, e.union([e.boolean(), e.number()]));
7
- //#endregion
8
- export { o as booleanNumberRecordSchema, t as identifierSchema, a as isoDateTimeSchema, i as nonEmptyKeySchema, r as objectIdStringSchema, n as ulidStringSchema };
@@ -1,4 +0,0 @@
1
- import "../models/LocalizedString-D_TRgAdr.js";
2
- import "../models/Price-DCAgqkKh.js";
3
- import "./product-id--yyUTH1Y.js";
4
- import "../models/Product.shared-CWP_qule.js";
@@ -1,16 +0,0 @@
1
- import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./models/LocalizedString-D_TRgAdr.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--yyUTH1Y.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-CWP_qule.js";
6
- import { richTextJsonDocSchema as k, richTextSchema as A, richTextVersionSchema as j } from "./schemas/rich-text-DTRh7U3z.js";
7
- import { isoDateSchema as M, shopConfigurationSchema as N, shopExtraTimeSlotRuleSchema as P, shopOpeningDayIndexSchema as F, shopOpeningDaySchema as I, shopOpeningHoursOverrideSchema as L, shopOpeningHoursPeriodSchema as R, shopOpeningSlotSchema as z, timeOfDaySchema as B } from "./schemas/shop-opening-hours-BlLD1gfz.js";
8
- import { DEFAULT_CANCELLATION_POLICY as V, DEFAULT_PAYMENT_POLICIES as H, cancellationPolicySchema as U, cancellationPolicyTierSchema as W, paymentPoliciesSchema as G } from "./schemas/booking-engine-configuration-LnrhShqm.js";
9
- import { fulfillmentModeSchema as K, publicBookingEngineConfigurationSchema as q, publicCheckoutConfigurationSchema as J, publicCheckoutDynamicOptionsSchema as Y } from "./schemas/public-booking-engine-configuration-CEM9mexX.js";
10
- import { DEFAULT_BOOKING_DELIVERY_OPTION as X, bookingCustomerInputSchema as Z, bookingDeliveryOptionSchema as Q, bookingScheduleInputSchema as $, cartItemInputSchema as ee, createBookingInputBaseSchema as te, createBookingInputSchema as ne, resolveBookingDeliveryOption as re, validateBookingDeliveryAddress as ie } from "./schemas/cart-inputs-3lBblkB0.js";
11
- import { bookingInsuranceConsentSourceSchema as ae, bookingInsuranceItemSnapshotSchema as oe, bookingInsuranceSnapshotSchema as se, buildBookingInsuranceSnapshot as ce, calculateInsuranceCalendarDays as le, insuranceProviderSchema as ue } from "./schemas/insurance-DXc34Bzy.js";
12
- import { resolveOpeningHoursForDate as de, resolveOpeningHoursPeriodForDate as fe } from "./utils/opening-hours-period-TCyLhzZw.js";
13
- import "./schemas/base-product-Bde9lJQD.js";
14
- import { assetIdSchema as pe, baseAssetSchema as me, baseAssetStatusSchema as he } from "./schemas/base-asset-BhIOL2rP.js";
15
- import { baseBookingItemSchema as ge, baseBookingSchema as _e, baseBookingStateSchema as ve } from "./schemas/base-booking-BJXFzDM5.js";
16
- export { X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H 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, pe as assetIdSchema, me as baseAssetSchema, he as baseAssetStatusSchema, ge as baseBookingItemSchema, _e as baseBookingSchema, ve as baseBookingStateSchema, v as bikeProductSchema, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, le as calculateInsuranceCalendarDays, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, y as eBikeProductSchema, K as fulfillmentModeSchema, t as getLocalizedStringValue, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, M as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G 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, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, re as resolveBookingDeliveryOption, de as resolveOpeningHoursForDate, fe as resolveOpeningHoursPeriodForDate, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, u as signedMoneyMinorSchema, B as timeOfDaySchema, ie as validateBookingDeliveryAddress };