@loczer/storefront-sdk 0.186.0 → 0.188.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 (42) hide show
  1. package/dist/StorefrontProvider.d.ts +3 -0
  2. package/dist/StorefrontProvider.d.ts.map +1 -1
  3. package/dist/chunks/booking-engine/dist/models/{Product.shared-CTuk4fiR.js → Product.shared-IYOeC3N7.js} +12 -10
  4. package/dist/chunks/booking-engine/dist/schemas/{base-asset-B_Dm8_Vk.js → base-asset-zsUj5_3O.js} +1 -1
  5. package/dist/chunks/booking-engine/dist/schemas/{base-booking-DW8AEPKo.js → base-booking-TzCge_mR.js} +2 -2
  6. package/dist/chunks/booking-engine/dist/schemas/{base-product-1H8l2aUv.js → base-product-DvFFzAcg.js} +1 -1
  7. package/dist/chunks/booking-engine/dist/schemas/{booking-engine-configuration-D02MRF9U.js → booking-engine-configuration-LnrhShqm.js} +4 -1
  8. package/dist/chunks/booking-engine/dist/schemas/{cart-inputs-j1yWfJxO.js → cart-inputs-B0HpcFe5.js} +1 -1
  9. package/dist/chunks/booking-engine/dist/schemas/{public-booking-engine-configuration-BnJ_H-p1.js → public-booking-engine-configuration-CEM9mexX.js} +1 -1
  10. package/dist/chunks/booking-engine/dist/schemas-BNUzqsci.js +13 -0
  11. package/dist/components/Header/index.js +30 -29
  12. package/dist/components/PlaygroundDevFloatingButton/index.d.ts.map +1 -1
  13. package/dist/components/PlaygroundDevFloatingButton/index.js +109 -102
  14. package/dist/components/StorefrontCancellationPolicyNotice/index.d.ts.map +1 -1
  15. package/dist/components/StorefrontCancellationPolicyNotice/index.js +51 -48
  16. package/dist/components/StorefrontInsuranceNotice/index.d.ts +9 -0
  17. package/dist/components/StorefrontInsuranceNotice/index.d.ts.map +1 -0
  18. package/dist/components/StorefrontInsuranceNotice/index.js +191 -0
  19. package/dist/i18n/en.d.ts +19 -0
  20. package/dist/i18n/en.d.ts.map +1 -1
  21. package/dist/i18n/en.js +21 -2
  22. package/dist/i18n/fr.d.ts +20 -0
  23. package/dist/i18n/fr.d.ts.map +1 -1
  24. package/dist/i18n/fr.js +24 -4
  25. package/dist/index.d.ts +86 -0
  26. package/dist/index.js +68 -68
  27. package/dist/lib/booking.js +2 -2
  28. package/dist/lib/checkoutSubmit.js +3 -3
  29. package/dist/lib/playgroundDevSettings.d.ts +3 -2
  30. package/dist/lib/playgroundDevSettings.d.ts.map +1 -1
  31. package/dist/lib/playgroundDevSettings.js +28 -27
  32. package/dist/lib/storefrontProducts.d.ts +16 -0
  33. package/dist/lib/storefrontProducts.d.ts.map +1 -1
  34. package/dist/lib/storefrontProducts.js +27 -22
  35. package/dist/pages/HomePage.d.ts.map +1 -1
  36. package/dist/pages/HomePage.js +264 -266
  37. package/dist/storefront.css +1 -1
  38. package/dist/storefrontSchemas.d.ts +17 -0
  39. package/dist/storefrontSchemas.d.ts.map +1 -1
  40. package/dist/storefrontSchemas.js +28 -23
  41. package/package.json +1 -1
  42. package/dist/chunks/booking-engine/dist/schemas-DftrSnTE.js +0 -13
package/dist/index.d.ts CHANGED
@@ -193,6 +193,7 @@ export declare const accessoryProductSchema: z.ZodObject<{
193
193
  insurance: z.ZodDefault<z.ZodObject<{
194
194
  enabled: z.ZodDefault<z.ZodBoolean>;
195
195
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
196
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
196
197
  }, z.core.$strip>>;
197
198
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
198
199
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -415,6 +416,7 @@ export declare const bikeProductSchema: z.ZodObject<{
415
416
  insurance: z.ZodDefault<z.ZodObject<{
416
417
  enabled: z.ZodDefault<z.ZodBoolean>;
417
418
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
419
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
418
420
  }, z.core.$strip>>;
419
421
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
420
422
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -1487,6 +1489,7 @@ export declare const eBikeProductSchema: z.ZodObject<{
1487
1489
  insurance: z.ZodDefault<z.ZodObject<{
1488
1490
  enabled: z.ZodDefault<z.ZodBoolean>;
1489
1491
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
1492
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
1490
1493
  }, z.core.$strip>>;
1491
1494
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
1492
1495
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -1892,6 +1895,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1892
1895
  languages?: string[] | undefined;
1893
1896
  } | undefined;
1894
1897
  content?: {
1898
+ heroMode: "current_booking_hero" | "booking_bar_overlay_hero" | "vertical_marquee_hero";
1895
1899
  galleryImageIds: string[];
1896
1900
  whatsappPhone1Enabled: boolean;
1897
1901
  whatsappPhone2Enabled: boolean;
@@ -2116,6 +2120,14 @@ export declare interface ProductAccessory {
2116
2120
  productVariants?: ProductVariant[];
2117
2121
  }
2118
2122
 
2123
+ export declare type ProductInsurance = z.infer<typeof productInsuranceSchema>;
2124
+
2125
+ export declare const productInsuranceSchema: z.ZodObject<{
2126
+ enabled: z.ZodDefault<z.ZodBoolean>;
2127
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2128
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
2129
+ }, z.core.$strip>;
2130
+
2119
2131
  export declare type ProductKind = z.infer<typeof productKindSchema>;
2120
2132
 
2121
2133
  export declare const productKindSchema: z.ZodEnum<{
@@ -2165,6 +2177,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2165
2177
  insurance: z.ZodDefault<z.ZodObject<{
2166
2178
  enabled: z.ZodDefault<z.ZodBoolean>;
2167
2179
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2180
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
2168
2181
  }, z.core.$strip>>;
2169
2182
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2170
2183
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2226,6 +2239,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2226
2239
  insurance: z.ZodDefault<z.ZodObject<{
2227
2240
  enabled: z.ZodDefault<z.ZodBoolean>;
2228
2241
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2242
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
2229
2243
  }, z.core.$strip>>;
2230
2244
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2231
2245
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2276,6 +2290,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2276
2290
  insurance: z.ZodDefault<z.ZodObject<{
2277
2291
  enabled: z.ZodDefault<z.ZodBoolean>;
2278
2292
  pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2293
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
2279
2294
  }, z.core.$strip>>;
2280
2295
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2281
2296
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2792,6 +2807,8 @@ export declare const STOREFRONT_AVAILABILITY_ROUTE = "/api/public/storefront/ava
2792
2807
 
2793
2808
  export declare const STOREFRONT_CHECKOUT_SUBMIT_ROUTE = "/api/public/storefront/checkout/submit";
2794
2809
 
2810
+ export declare const STOREFRONT_HERO_MODES: readonly ["current_booking_hero", "booking_bar_overlay_hero", "vertical_marquee_hero"];
2811
+
2795
2812
  export declare const STOREFRONT_IMAGE_ROUTE = "/api/public/storefront/images/get";
2796
2813
 
2797
2814
  export declare const STOREFRONT_PRODUCTS_ROUTE = "/api/public/storefront/products";
@@ -3248,6 +3265,11 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3248
3265
  };
3249
3266
  }, unknown>>;
3250
3267
  content: z.ZodOptional<z.ZodObject<{
3268
+ heroMode: z.ZodDefault<z.ZodEnum<{
3269
+ current_booking_hero: "current_booking_hero";
3270
+ booking_bar_overlay_hero: "booking_bar_overlay_hero";
3271
+ vertical_marquee_hero: "vertical_marquee_hero";
3272
+ }>>;
3251
3273
  tagline: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3252
3274
  value: z.ZodString;
3253
3275
  updatedAt: z.ZodCoercedDate<unknown>;
@@ -3354,6 +3376,11 @@ declare type StorefrontContactShop = Pick<StorefrontShop, "address" | "contactPh
3354
3376
  export declare type StorefrontContent = z.infer<typeof storefrontContentSchema>;
3355
3377
 
3356
3378
  export declare const storefrontContentSchema: z.ZodObject<{
3379
+ heroMode: z.ZodDefault<z.ZodEnum<{
3380
+ current_booking_hero: "current_booking_hero";
3381
+ booking_bar_overlay_hero: "booking_bar_overlay_hero";
3382
+ vertical_marquee_hero: "vertical_marquee_hero";
3383
+ }>>;
3357
3384
  tagline: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3358
3385
  value: z.ZodString;
3359
3386
  updatedAt: z.ZodCoercedDate<unknown>;
@@ -3483,6 +3510,25 @@ export declare const storefrontEn: {
3483
3510
  feature_delivery_description: string;
3484
3511
  feature_guarantee_insurance_title: string;
3485
3512
  feature_guarantee_insurance_description: string;
3513
+ insurance_info_aria_label: string;
3514
+ insurance_modal_title: string;
3515
+ insurance_modal_description: string;
3516
+ insurance_modal_pricing_title: string;
3517
+ insurance_modal_pricing_description: string;
3518
+ insurance_modal_muscular_bike: string;
3519
+ insurance_modal_electric_bike: string;
3520
+ insurance_modal_price_per_day: string;
3521
+ insurance_modal_price_range_per_day: string;
3522
+ insurance_modal_price_unavailable: string;
3523
+ insurance_modal_coverage_title: string;
3524
+ insurance_modal_coverage_accidental_damage: string;
3525
+ insurance_modal_coverage_assault_or_break_in: string;
3526
+ insurance_modal_coverage_secured_bike_theft: string;
3527
+ insurance_modal_claim_title: string;
3528
+ insurance_modal_claim_description: string;
3529
+ insurance_modal_exclusions_title: string;
3530
+ insurance_modal_exclusions_description: string;
3531
+ insurance_modal_terms_note: string;
3486
3532
  cancellation_policy_teaser: string;
3487
3533
  cancellation_policy_teaser_description: string;
3488
3534
  cancellation_policy_info_aria_label: string;
@@ -3923,6 +3969,25 @@ export declare const storefrontFr: {
3923
3969
  feature_delivery_description: string;
3924
3970
  feature_guarantee_insurance_title: string;
3925
3971
  feature_guarantee_insurance_description: string;
3972
+ insurance_info_aria_label: string;
3973
+ insurance_modal_title: string;
3974
+ insurance_modal_description: string;
3975
+ insurance_modal_pricing_title: string;
3976
+ insurance_modal_pricing_description: string;
3977
+ insurance_modal_muscular_bike: string;
3978
+ insurance_modal_electric_bike: string;
3979
+ insurance_modal_price_per_day: string;
3980
+ insurance_modal_price_range_per_day: string;
3981
+ insurance_modal_price_unavailable: string;
3982
+ insurance_modal_coverage_title: string;
3983
+ insurance_modal_coverage_accidental_damage: string;
3984
+ insurance_modal_coverage_assault_or_break_in: string;
3985
+ insurance_modal_coverage_secured_bike_theft: string;
3986
+ insurance_modal_claim_title: string;
3987
+ insurance_modal_claim_description: string;
3988
+ insurance_modal_exclusions_title: string;
3989
+ insurance_modal_exclusions_description: string;
3990
+ insurance_modal_terms_note: string;
3926
3991
  cancellation_policy_teaser: string;
3927
3992
  cancellation_policy_teaser_description: string;
3928
3993
  cancellation_policy_info_aria_label: string;
@@ -4000,6 +4065,7 @@ export declare const storefrontFr: {
4000
4065
  add_to_cart: string;
4001
4066
  add_short: string;
4002
4067
  cart_title: string;
4068
+ cart_items_count_zero: string;
4003
4069
  cart_items_count_one: string;
4004
4070
  cart_items_count_other: string;
4005
4071
  cart_empty: string;
@@ -4286,6 +4352,14 @@ export declare const storefrontFulfillmentModeSchema: z.ZodEnum<{
4286
4352
  delivery: "delivery";
4287
4353
  }>;
4288
4354
 
4355
+ export declare type StorefrontHeroMode = z.infer<typeof storefrontHeroModeSchema>;
4356
+
4357
+ export declare const storefrontHeroModeSchema: z.ZodEnum<{
4358
+ current_booking_hero: "current_booking_hero";
4359
+ booking_bar_overlay_hero: "booking_bar_overlay_hero";
4360
+ vertical_marquee_hero: "vertical_marquee_hero";
4361
+ }>;
4362
+
4289
4363
  declare type StorefrontI18nLanguage = "en" | "fr";
4290
4364
 
4291
4365
  export declare type StorefrontImageRequestPayload = z.infer<typeof storefrontImageRequestSchema>;
@@ -4406,6 +4480,11 @@ export declare const storefrontProductsResponseSchema: z.ZodDiscriminatedUnion<[
4406
4480
  quantity: z.ZodNumber;
4407
4481
  currency: z.ZodOptional<z.ZodString>;
4408
4482
  }, z.core.$strip>>>;
4483
+ insurance: z.ZodOptional<z.ZodObject<{
4484
+ enabled: z.ZodBoolean;
4485
+ pricePerDayMinor: z.ZodNumber;
4486
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
4487
+ }, z.core.$strip>>;
4409
4488
  features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
4410
4489
  value: z.ZodString;
4411
4490
  updatedAt: z.ZodCoercedDate<unknown>;
@@ -4654,6 +4733,11 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
4654
4733
  quantity: z.ZodNumber;
4655
4734
  currency: z.ZodOptional<z.ZodString>;
4656
4735
  }, z.core.$strip>>>;
4736
+ insurance: z.ZodOptional<z.ZodObject<{
4737
+ enabled: z.ZodBoolean;
4738
+ pricePerDayMinor: z.ZodNumber;
4739
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
4740
+ }, z.core.$strip>>;
4657
4741
  features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
4658
4742
  value: z.ZodString;
4659
4743
  updatedAt: z.ZodCoercedDate<unknown>;
@@ -5070,6 +5154,7 @@ export declare function useStorefrontConfig(): {
5070
5154
  languages?: string[] | undefined;
5071
5155
  } | undefined;
5072
5156
  content?: {
5157
+ heroMode: "current_booking_hero" | "booking_bar_overlay_hero" | "vertical_marquee_hero";
5073
5158
  galleryImageIds: string[];
5074
5159
  whatsappPhone1Enabled: boolean;
5075
5160
  whatsappPhone2Enabled: boolean;
@@ -5293,6 +5378,7 @@ export declare function useStorefrontConfig(): {
5293
5378
  languages?: string[] | undefined;
5294
5379
  } | undefined;
5295
5380
  content?: {
5381
+ heroMode: "current_booking_hero" | "booking_bar_overlay_hero" | "vertical_marquee_hero";
5296
5382
  galleryImageIds: string[];
5297
5383
  whatsappPhone1Enabled: boolean;
5298
5384
  whatsappPhone2Enabled: boolean;
package/dist/index.js CHANGED
@@ -2,79 +2,79 @@
2
2
  import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./chunks/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/booking-engine/dist/schemas/money-CVoCY4of.js";
4
4
  import { priceSchema as d, priceUnitSchema as f } from "./chunks/booking-engine/dist/models/Price-DCAgqkKh.js";
5
- import { PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as p, PRODUCT_VARIANT_CODE_MAX_LENGTH as m, accessoryProductSchema as h, bikeProductSchema as g, eBikeProductSchema as _, isProductVariantCodeIdentifierKind as v, productKindSchema as y, productSchema as b, productStorefrontDisplayModeSchema as x, productVariantAttributeSchema as S, productVariantCodeSchema as C, productVariantIdentifierSchema as w, productVariantSchema as T } from "./chunks/booking-engine/dist/models/Product.shared-CTuk4fiR.js";
6
- import { richTextJsonDocSchema as E, richTextSchema as D, richTextVersionSchema as O } from "./chunks/booking-engine/dist/schemas/rich-text-DTRh7U3z.js";
7
- import { isoDateSchema as k, shopConfigurationSchema as A, shopExtraTimeSlotRuleSchema as j, shopOpeningDayIndexSchema as M, shopOpeningDaySchema as N, shopOpeningHoursOverrideSchema as P, shopOpeningHoursPeriodSchema as F, shopOpeningSlotSchema as I, timeOfDaySchema as L } from "./chunks/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
8
- import { DEFAULT_CANCELLATION_POLICY as R, DEFAULT_PAYMENT_POLICIES as z, cancellationPolicySchema as B, cancellationPolicyTierSchema as V, paymentPoliciesSchema as H } from "./chunks/booking-engine/dist/schemas/booking-engine-configuration-D02MRF9U.js";
9
- import { fulfillmentModeSchema as U, publicBookingEngineConfigurationSchema as W, publicCheckoutConfigurationSchema as G, publicCheckoutDynamicOptionsSchema as K } from "./chunks/booking-engine/dist/schemas/public-booking-engine-configuration-BnJ_H-p1.js";
10
- import { DEFAULT_BOOKING_DELIVERY_OPTION as q, bookingCustomerInputSchema as J, bookingDeliveryOptionSchema as Y, bookingScheduleInputSchema as X, cartItemInputSchema as Z, createBookingInputBaseSchema as Q, createBookingInputSchema as $, resolveBookingDeliveryOption as ee, validateBookingDeliveryAddress as te } from "./chunks/booking-engine/dist/schemas/cart-inputs-j1yWfJxO.js";
11
- import { baseAssetSchema as ne, baseAssetStatusSchema as re } from "./chunks/booking-engine/dist/schemas/base-asset-B_Dm8_Vk.js";
12
- import { baseBookingItemSchema as ie, baseBookingSchema as ae, baseBookingStateSchema as oe } from "./chunks/booking-engine/dist/schemas/base-booking-DW8AEPKo.js";
13
- import "./chunks/booking-engine/dist/schemas-DftrSnTE.js";
14
- import { storefrontCheckoutModeSchema as se, storefrontConfigurationSchema as ce, storefrontContentSchema as le, storefrontFaqItemSchema as ue, storefrontFaqSchema as de, storefrontFulfillmentModeSchema as fe, storefrontLocalizedRichTextSchema as pe, storefrontModalMessageSchema as me, storefrontModulesSchema as he, storefrontReviewsModuleSchema as ge, storefrontRichTextSchema as _e, storefrontSettingsSchema as ve, storefrontShopSchema as ye, storefrontStatusSchema as be, storefrontWorkspaceSchema as xe } from "./storefrontSchemas.js";
15
- import { BOOKING_SEARCH_KEYS as Se, TIME_OPTIONS as Ce, applyBookingParamsToSearch as we, createBookingPeriodConfigFromBookingEngineConfiguration as Te, createBookingPeriodConfigFromShopConfiguration as Ee, createBookingPeriodConfigFromStorefrontConfiguration as De, getBookingDurationLabel as Oe, getBookingDurationMinutes as ke, getBookingParamsFromSearch as Ae, getBookingSessionStorageKey as je, getDefaultBookingParams as Me, getDefaultBookingParamsForStorefrontConfiguration as Ne, pickBookingSearchParams as Pe, readBookingSearchParamsFromSessionStorage as Fe, readBookingSearchParamsFromStorage as Ie, resolveBookingSearchParams as Le, resolveBookingSearchParamsFromSessionStorage as Re, writeBookingSearchParamsToSessionStorage as ze, writeBookingSearchParamsToStorage as Be } from "./lib/booking.js";
16
- import { CATALOG_PRODUCT_BASE_RATE_UNSET as Ve, buildStorefrontProductSlug as He, buildVariantStorefrontProductId as Ue, compareCatalogProducts as We, compareStorefrontAccessoryProducts as Ge, compareStorefrontBikeProducts as Ke, findStorefrontProduct as qe, findStorefrontProductBySlug as Je, getCatalogProductBaseRateMinor as Ye, getCatalogProductPaginationSort as Xe, getCatalogProductSortFieldForPriceUnit as Ze, getStorefrontBaseDailyRateMinor as Qe, getStorefrontCheckoutProductId as $e, getStorefrontRepresentedVariantId as et, toStorefrontAccessoryProducts as tt, toStorefrontBikeProducts as nt, toStorefrontBookingProducts as rt, toStorefrontBookingProductsCollections as it } from "./lib/products.js";
17
- import { StorefrontCartProvider as at, resolveStorefrontCartItemProduct as ot, useStorefrontCart as st } from "./lib/cart.js";
18
- import { cn as ct, formatPriceMinor as lt, getAvailabilityVariant as ut, getMinDayPriceMinor as dt } from "./lib/utils.js";
19
- import { buildDailyPriceRows as ft, buildPriceTierLabels as pt, calculateDailyPriceForQuantity as mt, formatStorefrontPriceMinor as ht } from "./lib/pricing.js";
20
- import { getLocalizedEntry as gt, getLocalizedValue as _t } from "./localization.js";
21
- import { buildStorefrontCartSummary as vt } from "./lib/cartSummary.js";
22
- import { ROUTE as yt, requestSchema as bt, responseSchema as xt } from "./lib/contactForm.js";
23
- import { formatStorefrontPhoneDisplay as St, resolveStorefrontMapsHref as Ct, resolveStorefrontPhoneContact as wt } from "./lib/storefrontContact.js";
24
- import { buildWhatsAppHref as Tt, resolveStorefrontWhatsAppContact as Et, resolveStorefrontWhatsAppHref as Dt } from "./lib/whatsapp.js";
25
- import { ROUTE as Ot, requestBaseSchema as kt, requestCheckoutItemSchema as At, requestDeliveryRefinement as jt, requestSchema as Mt, responseSchema as Nt } from "./lib/checkoutSubmit.js";
26
- import { ROUTE as Pt, requestSchema as Ft, responseSchema as It, storefrontPublicAccessoryProductSchema as Lt, storefrontPublicBikeAvailabilityStatusSchema as Rt, storefrontPublicBikeProductSchema as zt, storefrontPublicProductDisplayModeSchema as Bt, storefrontPublicProductPriceSchema as Vt, storefrontPublicProductVariantAttributeSchema as Ht, storefrontPublicProductVariantIdentifierSchema as Ut, storefrontPublicProductVariantSchema as Wt } from "./lib/storefrontProducts.js";
27
- import { ROUTE as Gt, buildStorefrontAvailabilityKey as Kt, doesStorefrontAvailabilityDisplaySoldOut as qt, getStorefrontAvailabilityIssue as Jt, getStorefrontAvailabilityStatus as Yt, isStorefrontAvailabilityInsufficient as Xt, publicAvailabilityDisplayModeSchema as Zt, requestSchema as Qt, responseSchema as $t, shouldBlockStorefrontUnavailableItem as en, storefrontAvailabilityProductSchema as tn, storefrontAvailabilityScheduleSchema as nn, storefrontPublicAvailabilityRecordSchema as rn } from "./lib/storefrontAvailability.js";
28
- import { ROUTE as an, buildStorefrontImageUrl as on, requestSchema as sn } from "./lib/storefrontImage.js";
29
- import { ROUTE as cn, requestSchema as ln, responseSchema as un, storefrontTimeSlotSchema as dn, timeSlotJourneySchema as fn } from "./lib/storefrontTimeSlots.js";
30
- import { Footer as pn } from "./components/Footer/index.js";
31
- import { Badge as mn, badgeVariants as hn } from "./ui/badge.js";
32
- import { Button as gn, buttonVariants as _n } from "./ui/button.js";
33
- import { Header as vn } from "./components/Header/index.js";
34
- import { storefront as yn } from "./i18n/en.js";
35
- import { storefront as bn } from "./i18n/fr.js";
36
- import { PoweredByLoczerBadge as xn } from "./components/PoweredByLoczerBadge/index.js";
37
- import { PlatformFooter as Sn } from "./components/PlatformFooter/index.js";
38
- import { useWhatsAppFloatingButton as Cn } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
39
- import { WhatsAppFloatingButton as wn } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
5
+ import { PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as p, PRODUCT_VARIANT_CODE_MAX_LENGTH as m, accessoryProductSchema as h, bikeProductSchema as g, eBikeProductSchema as _, isProductVariantCodeIdentifierKind as v, productInsuranceSchema as y, productKindSchema as b, productSchema as x, productStorefrontDisplayModeSchema as S, productVariantAttributeSchema as C, productVariantCodeSchema as w, productVariantIdentifierSchema as T, productVariantSchema as E } from "./chunks/booking-engine/dist/models/Product.shared-IYOeC3N7.js";
6
+ import { richTextJsonDocSchema as D, richTextSchema as O, richTextVersionSchema as k } from "./chunks/booking-engine/dist/schemas/rich-text-DTRh7U3z.js";
7
+ import { isoDateSchema as A, shopConfigurationSchema as j, shopExtraTimeSlotRuleSchema as M, shopOpeningDayIndexSchema as N, shopOpeningDaySchema as P, shopOpeningHoursOverrideSchema as F, shopOpeningHoursPeriodSchema as I, shopOpeningSlotSchema as L, timeOfDaySchema as R } from "./chunks/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
8
+ import { DEFAULT_CANCELLATION_POLICY as z, DEFAULT_PAYMENT_POLICIES as B, cancellationPolicySchema as V, cancellationPolicyTierSchema as H, paymentPoliciesSchema as U } from "./chunks/booking-engine/dist/schemas/booking-engine-configuration-LnrhShqm.js";
9
+ import { fulfillmentModeSchema as W, publicBookingEngineConfigurationSchema as G, publicCheckoutConfigurationSchema as K, publicCheckoutDynamicOptionsSchema as q } from "./chunks/booking-engine/dist/schemas/public-booking-engine-configuration-CEM9mexX.js";
10
+ import { DEFAULT_BOOKING_DELIVERY_OPTION as J, bookingCustomerInputSchema as Y, bookingDeliveryOptionSchema as X, bookingScheduleInputSchema as Z, cartItemInputSchema as Q, createBookingInputBaseSchema as $, createBookingInputSchema as ee, resolveBookingDeliveryOption as te, validateBookingDeliveryAddress as ne } from "./chunks/booking-engine/dist/schemas/cart-inputs-B0HpcFe5.js";
11
+ import { baseAssetSchema as re, baseAssetStatusSchema as ie } from "./chunks/booking-engine/dist/schemas/base-asset-zsUj5_3O.js";
12
+ import { baseBookingItemSchema as ae, baseBookingSchema as oe, baseBookingStateSchema as se } from "./chunks/booking-engine/dist/schemas/base-booking-TzCge_mR.js";
13
+ import "./chunks/booking-engine/dist/schemas-BNUzqsci.js";
14
+ import { STOREFRONT_HERO_MODES as ce, storefrontCheckoutModeSchema as le, storefrontConfigurationSchema as ue, storefrontContentSchema as de, storefrontFaqItemSchema as fe, storefrontFaqSchema as pe, storefrontFulfillmentModeSchema as me, storefrontHeroModeSchema as he, storefrontLocalizedRichTextSchema as ge, storefrontModalMessageSchema as _e, storefrontModulesSchema as ve, storefrontReviewsModuleSchema as ye, storefrontRichTextSchema as be, storefrontSettingsSchema as xe, storefrontShopSchema as Se, storefrontStatusSchema as Ce, storefrontWorkspaceSchema as we } from "./storefrontSchemas.js";
15
+ import { BOOKING_SEARCH_KEYS as Te, TIME_OPTIONS as Ee, applyBookingParamsToSearch as De, createBookingPeriodConfigFromBookingEngineConfiguration as Oe, createBookingPeriodConfigFromShopConfiguration as ke, createBookingPeriodConfigFromStorefrontConfiguration as Ae, getBookingDurationLabel as je, getBookingDurationMinutes as Me, getBookingParamsFromSearch as Ne, getBookingSessionStorageKey as Pe, getDefaultBookingParams as Fe, getDefaultBookingParamsForStorefrontConfiguration as Ie, pickBookingSearchParams as Le, readBookingSearchParamsFromSessionStorage as Re, readBookingSearchParamsFromStorage as ze, resolveBookingSearchParams as Be, resolveBookingSearchParamsFromSessionStorage as Ve, writeBookingSearchParamsToSessionStorage as He, writeBookingSearchParamsToStorage as Ue } from "./lib/booking.js";
16
+ import { CATALOG_PRODUCT_BASE_RATE_UNSET as We, buildStorefrontProductSlug as Ge, buildVariantStorefrontProductId as Ke, compareCatalogProducts as qe, compareStorefrontAccessoryProducts as Je, compareStorefrontBikeProducts as Ye, findStorefrontProduct as Xe, findStorefrontProductBySlug as Ze, getCatalogProductBaseRateMinor as Qe, getCatalogProductPaginationSort as $e, getCatalogProductSortFieldForPriceUnit as et, getStorefrontBaseDailyRateMinor as tt, getStorefrontCheckoutProductId as nt, getStorefrontRepresentedVariantId as rt, toStorefrontAccessoryProducts as it, toStorefrontBikeProducts as at, toStorefrontBookingProducts as ot, toStorefrontBookingProductsCollections as st } from "./lib/products.js";
17
+ import { StorefrontCartProvider as ct, resolveStorefrontCartItemProduct as lt, useStorefrontCart as ut } from "./lib/cart.js";
18
+ import { cn as dt, formatPriceMinor as ft, getAvailabilityVariant as pt, getMinDayPriceMinor as mt } from "./lib/utils.js";
19
+ import { buildDailyPriceRows as ht, buildPriceTierLabels as gt, calculateDailyPriceForQuantity as _t, formatStorefrontPriceMinor as vt } from "./lib/pricing.js";
20
+ import { getLocalizedEntry as yt, getLocalizedValue as bt } from "./localization.js";
21
+ import { buildStorefrontCartSummary as xt } from "./lib/cartSummary.js";
22
+ import { ROUTE as St, requestSchema as Ct, responseSchema as wt } from "./lib/contactForm.js";
23
+ import { formatStorefrontPhoneDisplay as Tt, resolveStorefrontMapsHref as Et, resolveStorefrontPhoneContact as Dt } from "./lib/storefrontContact.js";
24
+ import { buildWhatsAppHref as Ot, resolveStorefrontWhatsAppContact as kt, resolveStorefrontWhatsAppHref as At } from "./lib/whatsapp.js";
25
+ import { ROUTE as jt, requestBaseSchema as Mt, requestCheckoutItemSchema as Nt, requestDeliveryRefinement as Pt, requestSchema as Ft, responseSchema as It } from "./lib/checkoutSubmit.js";
26
+ import { ROUTE as Lt, requestSchema as Rt, responseSchema as zt, storefrontPublicAccessoryProductSchema as Bt, storefrontPublicBikeAvailabilityStatusSchema as Vt, storefrontPublicBikeProductSchema as Ht, storefrontPublicProductDisplayModeSchema as Ut, storefrontPublicProductPriceSchema as Wt, storefrontPublicProductVariantAttributeSchema as Gt, storefrontPublicProductVariantIdentifierSchema as Kt, storefrontPublicProductVariantSchema as qt } from "./lib/storefrontProducts.js";
27
+ import { ROUTE as Jt, buildStorefrontAvailabilityKey as Yt, doesStorefrontAvailabilityDisplaySoldOut as Xt, getStorefrontAvailabilityIssue as Zt, getStorefrontAvailabilityStatus as Qt, isStorefrontAvailabilityInsufficient as $t, publicAvailabilityDisplayModeSchema as en, requestSchema as tn, responseSchema as nn, shouldBlockStorefrontUnavailableItem as rn, storefrontAvailabilityProductSchema as an, storefrontAvailabilityScheduleSchema as on, storefrontPublicAvailabilityRecordSchema as sn } from "./lib/storefrontAvailability.js";
28
+ import { ROUTE as cn, buildStorefrontImageUrl as ln, requestSchema as un } from "./lib/storefrontImage.js";
29
+ import { ROUTE as dn, requestSchema as fn, responseSchema as pn, storefrontTimeSlotSchema as mn, timeSlotJourneySchema as hn } from "./lib/storefrontTimeSlots.js";
30
+ import { Footer as gn } from "./components/Footer/index.js";
31
+ import { Badge as _n, badgeVariants as vn } from "./ui/badge.js";
32
+ import { Button as yn, buttonVariants as bn } from "./ui/button.js";
33
+ import { Header as xn } from "./components/Header/index.js";
34
+ import { storefront as Sn } from "./i18n/en.js";
35
+ import { storefront as Cn } from "./i18n/fr.js";
36
+ import { PoweredByLoczerBadge as wn } from "./components/PoweredByLoczerBadge/index.js";
37
+ import { PlatformFooter as Tn } from "./components/PlatformFooter/index.js";
38
+ import { useWhatsAppFloatingButton as En } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
39
+ import { WhatsAppFloatingButton as Dn } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
40
40
  import "./components/WhatsAppFloatingButton/index.js";
41
- import { Layout as Tn } from "./components/Layout/index.js";
42
- import { DelayedPlaceholder as En, DelayedReveal as Dn } from "./components/DelayedReveal/index.js";
43
- import { BookingPeriodProvider as On, useBookingPeriod as kn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
44
- import { Label as An } from "./ui/label.js";
45
- import { BookingStartDateField as jn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
46
- import { BookingStartTimeField as Mn } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
47
- import { BookingEndDateField as Nn } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
48
- import { BookingEndTimeField as Pn } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
49
- import { BookingMobileDateDrawer as Fn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
50
- import { BookingPeriodSelector as In } from "./components/BookingPeriodSelector/index.js";
51
- import { BookingFlowSteps as Ln } from "./components/BookingFlowSteps/index.js";
52
- import { Input as Rn } from "./ui/input.js";
53
- import { DeliveryAddressSelector as zn } from "./components/DeliveryAddressSelector/index.js";
54
- import { loader as Bn, useOptionalStorefront as Vn, useStorefront as Hn, useStorefrontBookingProducts as Un, useStorefrontConfig as Wn, useStorefrontProducts as Gn, useStorefrontWorkspaceLanguage as Kn } from "./StorefrontProvider.js";
55
- import { Form as qn, FormControl as Jn, FormDescription as Yn, FormField as Xn, FormItem as Zn, FormLabel as Qn, FormMessage as $n, useFormField as er } from "./ui/form.js";
56
- import { Textarea as tr } from "./ui/textarea.js";
57
- import { ContactSection as nr } from "./components/ContactSection/index.js";
58
- import { TestimonialsSection as rr } from "./components/TestimonialsSection/index.js";
59
- import { AboutSection as ir } from "./components/AboutSection/index.js";
60
- import { StepSectionTitle as ar } from "./components/StepSectionTitle/index.js";
61
- import { Card as or, CardAction as sr, CardContent as cr, CardDescription as lr, CardFooter as ur, CardHeader as dr, CardTitle as fr } from "./ui/card.js";
62
- import { ProductWarningNotice as pr } from "./components/ProductWarningNotice/index.js";
63
- import { StorefrontCartPanel as mr } from "./components/StorefrontCartPanel/index.js";
64
- import { ProductPriceBadge as hr } from "./components/ProductPriceBadge/index.js";
65
- import { ContractSaleDocument as gr } from "./components/ContractSaleDocument/Invoice.js";
41
+ import { Layout as On } from "./components/Layout/index.js";
42
+ import { DelayedPlaceholder as kn, DelayedReveal as An } from "./components/DelayedReveal/index.js";
43
+ import { BookingPeriodProvider as jn, useBookingPeriod as Mn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
44
+ import { Label as Nn } from "./ui/label.js";
45
+ import { BookingStartDateField as Pn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
46
+ import { BookingStartTimeField as Fn } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
47
+ import { BookingEndDateField as In } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
48
+ import { BookingEndTimeField as Ln } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
49
+ import { BookingMobileDateDrawer as Rn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
50
+ import { BookingPeriodSelector as zn } from "./components/BookingPeriodSelector/index.js";
51
+ import { BookingFlowSteps as Bn } from "./components/BookingFlowSteps/index.js";
52
+ import { Input as Vn } from "./ui/input.js";
53
+ import { DeliveryAddressSelector as Hn } from "./components/DeliveryAddressSelector/index.js";
54
+ import { loader as Un, useOptionalStorefront as Wn, useStorefront as Gn, useStorefrontBookingProducts as Kn, useStorefrontConfig as qn, useStorefrontProducts as Jn, useStorefrontWorkspaceLanguage as Yn } from "./StorefrontProvider.js";
55
+ import { Form as Xn, FormControl as Zn, FormDescription as Qn, FormField as $n, FormItem as er, FormLabel as tr, FormMessage as nr, useFormField as rr } from "./ui/form.js";
56
+ import { Textarea as ir } from "./ui/textarea.js";
57
+ import { ContactSection as ar } from "./components/ContactSection/index.js";
58
+ import { TestimonialsSection as or } from "./components/TestimonialsSection/index.js";
59
+ import { AboutSection as sr } from "./components/AboutSection/index.js";
60
+ import { StepSectionTitle as cr } from "./components/StepSectionTitle/index.js";
61
+ import { Card as lr, CardAction as ur, CardContent as dr, CardDescription as fr, CardFooter as pr, CardHeader as mr, CardTitle as hr } from "./ui/card.js";
62
+ import { ProductWarningNotice as gr } from "./components/ProductWarningNotice/index.js";
63
+ import { StorefrontCartPanel as _r } from "./components/StorefrontCartPanel/index.js";
64
+ import { ProductPriceBadge as vr } from "./components/ProductPriceBadge/index.js";
65
+ import { ContractSaleDocument as yr } from "./components/ContractSaleDocument/Invoice.js";
66
66
  import "./components/ContractSaleDocument/index.js";
67
- import { RadioGroup as _r, RadioGroupItem as vr } from "./ui/radio-group.js";
67
+ import { RadioGroup as br, RadioGroupItem as xr } from "./ui/radio-group.js";
68
68
  import "./pages/HomePage.js";
69
69
  import "./pages/BookingPage.js";
70
70
  import "./pages/ProductPage.js";
71
71
  import "./pages/CheckoutPage.js";
72
72
  import "./pages/CheckoutSuccessPage.js";
73
73
  import "./pages/NotFoundPage.js";
74
- import { accessories as yr } from "./data/accessories.js";
75
- import br from "./data/bikes.js";
76
- import { contractSaleDocumentAcceptanceLevelSchema as xr, contractSaleDocumentAcceptanceRecordSchema as Sr, contractSaleDocumentAcceptanceSchema as Cr, contractSaleDocumentAddressSchema as wr, contractSaleDocumentContactSchema as Tr, contractSaleDocumentKindSchema as Er, contractSaleDocumentLanguageCodeSchema as Dr, contractSaleDocumentLanguageSchema as Or, contractSaleDocumentLineItemSchema as kr, contractSaleDocumentSchema as Ar, contractSaleDocumentSignatureSchema as jr } from "./lib/contractSaleDocument.js";
77
- import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Mr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Nr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Pr, acceptContractSaleDocumentRequestSchema as Fr, acceptContractSaleDocumentResponseSchema as Ir, contractSaleDocumentAcceptanceInputSchema as Lr, contractSaleDocumentAcceptanceRecordInputSchema as Rr, contractSaleDocumentApiAcceptanceRecordSchema as zr, contractSaleDocumentApiAcceptanceSchema as Br, contractSaleDocumentApiSchema as Vr, contractSaleDocumentApiSignatureSchema as Hr, contractSaleDocumentReferenceSchema as Ur, contractSaleDocumentReferenceTypeSchema as Wr, contractSaleDocumentSignatureInputSchema as Gr, downloadContractSaleDocumentPdfRequestSchema as Kr, getContractSaleDocumentRequestSchema as qr, getContractSaleDocumentResponseSchema as Jr } from "./lib/contractSaleDocumentApi.js";
78
- import Yr from "./routes.js";
79
- import { Select as Xr, SelectContent as Zr, SelectGroup as Qr, SelectIcon as $r, SelectItem as ei, SelectItemIndicator as ti, SelectItemText as ni, SelectLabel as ri, SelectScrollDownButton as ii, SelectScrollUpButton as ai, SelectSeparator as oi, SelectTrigger as si, SelectValue as ci } from "./ui/select.js";
80
- export { Mr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, ir as AboutSection, Se as BOOKING_SEARCH_KEYS, mn as Badge, Nn as BookingEndDateField, Pn as BookingEndTimeField, Ln as BookingFlowSteps, Fn as BookingMobileDateDrawer, On as BookingPeriodProvider, In as BookingPeriodSelector, jn as BookingStartDateField, Mn as BookingStartTimeField, gn as Button, Ve as CATALOG_PRODUCT_BASE_RATE_UNSET, or as Card, sr as CardAction, cr as CardContent, lr as CardDescription, ur as CardFooter, dr as CardHeader, fr as CardTitle, nr as ContactSection, gr as ContractSaleDocument, q as DEFAULT_BOOKING_DELIVERY_OPTION, R as DEFAULT_CANCELLATION_POLICY, z as DEFAULT_PAYMENT_POLICIES, Nr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, En as DelayedPlaceholder, Dn as DelayedReveal, zn as DeliveryAddressSelector, pn as Footer, qn as Form, Jn as FormControl, Yn as FormDescription, Xn as FormField, Zn as FormItem, Qn as FormLabel, $n as FormMessage, Pr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, vn as Header, Rn as Input, An as Label, Tn as Layout, p as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, m as PRODUCT_VARIANT_CODE_MAX_LENGTH, Sn as PlatformFooter, xn as PoweredByLoczerBadge, hr as ProductPriceBadge, pr as ProductWarningNotice, yt as ROUTE, _r as RadioGroup, vr as RadioGroupItem, Gt as STOREFRONT_AVAILABILITY_ROUTE, Ot as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, an as STOREFRONT_IMAGE_ROUTE, Pt as STOREFRONT_PRODUCTS_ROUTE, cn as STOREFRONT_TIME_SLOTS_ROUTE, Xr as Select, Zr as SelectContent, Qr as SelectGroup, $r as SelectIcon, ei as SelectItem, ti as SelectItemIndicator, ni as SelectItemText, ri as SelectLabel, ii as SelectScrollDownButton, ai as SelectScrollUpButton, oi as SelectSeparator, si as SelectTrigger, ci as SelectValue, ar as StepSectionTitle, mr as StorefrontCartPanel, at as StorefrontCartProvider, Ce as TIME_OPTIONS, rr as TestimonialsSection, tr as Textarea, wn as WhatsAppFloatingButton, Fr as acceptContractSaleDocumentRequestSchema, Ir as acceptContractSaleDocumentResponseSchema, yr as accessories, h as accessoryProductSchema, we as applyBookingParamsToSearch, hn as badgeVariants, ne as baseAssetSchema, re as baseAssetStatusSchema, ie as baseBookingItemSchema, ae as baseBookingSchema, oe as baseBookingStateSchema, g as bikeProductSchema, br as bikes, J as bookingCustomerInputSchema, Y as bookingDeliveryOptionSchema, X as bookingScheduleInputSchema, ft as buildDailyPriceRows, pt as buildPriceTierLabels, Kt as buildStorefrontAvailabilityKey, vt as buildStorefrontCartSummary, on as buildStorefrontImageUrl, He as buildStorefrontProductSlug, Ue as buildVariantStorefrontProductId, Tt as buildWhatsAppHref, _n as buttonVariants, mt as calculateDailyPriceForQuantity, B as cancellationPolicySchema, V as cancellationPolicyTierSchema, Z as cartItemInputSchema, ct as cn, We as compareCatalogProducts, Ge as compareStorefrontAccessoryProducts, Ke as compareStorefrontBikeProducts, Lr as contractSaleDocumentAcceptanceInputSchema, xr as contractSaleDocumentAcceptanceLevelSchema, Rr as contractSaleDocumentAcceptanceRecordInputSchema, Sr as contractSaleDocumentAcceptanceRecordSchema, Cr as contractSaleDocumentAcceptanceSchema, wr as contractSaleDocumentAddressSchema, zr as contractSaleDocumentApiAcceptanceRecordSchema, Br as contractSaleDocumentApiAcceptanceSchema, Vr as contractSaleDocumentApiSchema, Hr as contractSaleDocumentApiSignatureSchema, Tr as contractSaleDocumentContactSchema, Er as contractSaleDocumentKindSchema, Dr as contractSaleDocumentLanguageCodeSchema, Or as contractSaleDocumentLanguageSchema, kr as contractSaleDocumentLineItemSchema, Ur as contractSaleDocumentReferenceSchema, Wr as contractSaleDocumentReferenceTypeSchema, Ar as contractSaleDocumentSchema, Gr as contractSaleDocumentSignatureInputSchema, jr as contractSaleDocumentSignatureSchema, Q as createBookingInputBaseSchema, $ as createBookingInputSchema, Te as createBookingPeriodConfigFromBookingEngineConfiguration, Ee as createBookingPeriodConfigFromShopConfiguration, De as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, qt as doesStorefrontAvailabilityDisplaySoldOut, Kr as downloadContractSaleDocumentPdfRequestSchema, _ as eBikeProductSchema, qe as findStorefrontProduct, Je as findStorefrontProductBySlug, lt as formatPriceMinor, St as formatStorefrontPhoneDisplay, ht as formatStorefrontPriceMinor, U as fulfillmentModeSchema, ut as getAvailabilityVariant, Oe as getBookingDurationLabel, ke as getBookingDurationMinutes, Ae as getBookingParamsFromSearch, je as getBookingSessionStorageKey, Ye as getCatalogProductBaseRateMinor, Xe as getCatalogProductPaginationSort, Ze as getCatalogProductSortFieldForPriceUnit, qr as getContractSaleDocumentRequestSchema, Jr as getContractSaleDocumentResponseSchema, Me as getDefaultBookingParams, Ne as getDefaultBookingParamsForStorefrontConfiguration, gt as getLocalizedEntry, t as getLocalizedStringValue, _t as getLocalizedValue, dt as getMinDayPriceMinor, Jt as getStorefrontAvailabilityIssue, Yt as getStorefrontAvailabilityStatus, Qe as getStorefrontBaseDailyRateMinor, $e as getStorefrontCheckoutProductId, et as getStorefrontRepresentedVariantId, v as isProductVariantCodeIdentifierKind, Xt as isStorefrontAvailabilityInsufficient, k as isoDateSchema, Bn as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, H as paymentPoliciesSchema, Pe as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, y as productKindSchema, b as productSchema, x as productStorefrontDisplayModeSchema, S as productVariantAttributeSchema, C as productVariantCodeSchema, w as productVariantIdentifierSchema, T as productVariantSchema, Zt as publicAvailabilityDisplayModeSchema, W as publicBookingEngineConfigurationSchema, G as publicCheckoutConfigurationSchema, K as publicCheckoutDynamicOptionsSchema, Fe as readBookingSearchParamsFromSessionStorage, Ie as readBookingSearchParamsFromStorage, bt as requestSchema, ee as resolveBookingDeliveryOption, Le as resolveBookingSearchParams, Re as resolveBookingSearchParamsFromSessionStorage, ot as resolveStorefrontCartItemProduct, Ct as resolveStorefrontMapsHref, wt as resolveStorefrontPhoneContact, Et as resolveStorefrontWhatsAppContact, Dt as resolveStorefrontWhatsAppHref, xt as responseSchema, E as richTextJsonDocSchema, D as richTextSchema, O as richTextVersionSchema, A as shopConfigurationSchema, j as shopExtraTimeSlotRuleSchema, M as shopOpeningDayIndexSchema, N as shopOpeningDaySchema, P as shopOpeningHoursOverrideSchema, F as shopOpeningHoursPeriodSchema, I as shopOpeningSlotSchema, en as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, tn as storefrontAvailabilityProductSchema, Qt as storefrontAvailabilityRequestSchema, $t as storefrontAvailabilityResponseSchema, nn as storefrontAvailabilityScheduleSchema, se as storefrontCheckoutModeSchema, jt as storefrontCheckoutSubmitDeliveryRefinement, At as storefrontCheckoutSubmitItemSchema, kt as storefrontCheckoutSubmitRequestBaseSchema, Mt as storefrontCheckoutSubmitRequestSchema, Nt as storefrontCheckoutSubmitResponseSchema, ce as storefrontConfigurationSchema, le as storefrontContentSchema, yn as storefrontEn, ue as storefrontFaqItemSchema, de as storefrontFaqSchema, bn as storefrontFr, fe as storefrontFulfillmentModeSchema, sn as storefrontImageRequestSchema, pe as storefrontLocalizedRichTextSchema, me as storefrontModalMessageSchema, he as storefrontModulesSchema, Ft as storefrontProductsRequestSchema, It as storefrontProductsResponseSchema, Lt as storefrontPublicAccessoryProductSchema, rn as storefrontPublicAvailabilityRecordSchema, Rt as storefrontPublicBikeAvailabilityStatusSchema, zt as storefrontPublicBikeProductSchema, Bt as storefrontPublicProductDisplayModeSchema, Vt as storefrontPublicProductPriceSchema, Ht as storefrontPublicProductVariantAttributeSchema, Ut as storefrontPublicProductVariantIdentifierSchema, Wt as storefrontPublicProductVariantSchema, ge as storefrontReviewsModuleSchema, _e as storefrontRichTextSchema, Yr as storefrontRoutes, ve as storefrontSettingsSchema, ye as storefrontShopSchema, be as storefrontStatusSchema, fn as storefrontTimeSlotJourneySchema, dn as storefrontTimeSlotSchema, ln as storefrontTimeSlotsRequestSchema, un as storefrontTimeSlotsResponseSchema, xe as storefrontWorkspaceSchema, L as timeOfDaySchema, tt as toStorefrontAccessoryProducts, nt as toStorefrontBikeProducts, rt as toStorefrontBookingProducts, it as toStorefrontBookingProductsCollections, kn as useBookingPeriod, er as useFormField, Vn as useOptionalStorefront, Hn as useStorefront, Un as useStorefrontBookingProducts, st as useStorefrontCart, Wn as useStorefrontConfig, Gn as useStorefrontProducts, Kn as useStorefrontWorkspaceLanguage, Cn as useWhatsAppFloatingButton, te as validateBookingDeliveryAddress, ze as writeBookingSearchParamsToSessionStorage, Be as writeBookingSearchParamsToStorage };
74
+ import { accessories as Sr } from "./data/accessories.js";
75
+ import Cr from "./data/bikes.js";
76
+ import { contractSaleDocumentAcceptanceLevelSchema as wr, contractSaleDocumentAcceptanceRecordSchema as Tr, contractSaleDocumentAcceptanceSchema as Er, contractSaleDocumentAddressSchema as Dr, contractSaleDocumentContactSchema as Or, contractSaleDocumentKindSchema as kr, contractSaleDocumentLanguageCodeSchema as Ar, contractSaleDocumentLanguageSchema as jr, contractSaleDocumentLineItemSchema as Mr, contractSaleDocumentSchema as Nr, contractSaleDocumentSignatureSchema as Pr } from "./lib/contractSaleDocument.js";
77
+ import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Fr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Ir, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Lr, acceptContractSaleDocumentRequestSchema as Rr, acceptContractSaleDocumentResponseSchema as zr, contractSaleDocumentAcceptanceInputSchema as Br, contractSaleDocumentAcceptanceRecordInputSchema as Vr, contractSaleDocumentApiAcceptanceRecordSchema as Hr, contractSaleDocumentApiAcceptanceSchema as Ur, contractSaleDocumentApiSchema as Wr, contractSaleDocumentApiSignatureSchema as Gr, contractSaleDocumentReferenceSchema as Kr, contractSaleDocumentReferenceTypeSchema as qr, contractSaleDocumentSignatureInputSchema as Jr, downloadContractSaleDocumentPdfRequestSchema as Yr, getContractSaleDocumentRequestSchema as Xr, getContractSaleDocumentResponseSchema as Zr } from "./lib/contractSaleDocumentApi.js";
78
+ import Qr from "./routes.js";
79
+ import { Select as $r, SelectContent as ei, SelectGroup as ti, SelectIcon as ni, SelectItem as ri, SelectItemIndicator as ii, SelectItemText as ai, SelectLabel as oi, SelectScrollDownButton as si, SelectScrollUpButton as ci, SelectSeparator as li, SelectTrigger as ui, SelectValue as di } from "./ui/select.js";
80
+ export { Fr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, sr as AboutSection, Te as BOOKING_SEARCH_KEYS, _n as Badge, In as BookingEndDateField, Ln as BookingEndTimeField, Bn as BookingFlowSteps, Rn as BookingMobileDateDrawer, jn as BookingPeriodProvider, zn as BookingPeriodSelector, Pn as BookingStartDateField, Fn as BookingStartTimeField, yn as Button, We as CATALOG_PRODUCT_BASE_RATE_UNSET, lr as Card, ur as CardAction, dr as CardContent, fr as CardDescription, pr as CardFooter, mr as CardHeader, hr as CardTitle, ar as ContactSection, yr as ContractSaleDocument, J as DEFAULT_BOOKING_DELIVERY_OPTION, z as DEFAULT_CANCELLATION_POLICY, B as DEFAULT_PAYMENT_POLICIES, Ir as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, kn as DelayedPlaceholder, An as DelayedReveal, Hn as DeliveryAddressSelector, gn as Footer, Xn as Form, Zn as FormControl, Qn as FormDescription, $n as FormField, er as FormItem, tr as FormLabel, nr as FormMessage, Lr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, xn as Header, Vn as Input, Nn as Label, On as Layout, p as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, m as PRODUCT_VARIANT_CODE_MAX_LENGTH, Tn as PlatformFooter, wn as PoweredByLoczerBadge, vr as ProductPriceBadge, gr as ProductWarningNotice, St as ROUTE, br as RadioGroup, xr as RadioGroupItem, Jt as STOREFRONT_AVAILABILITY_ROUTE, jt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ce as STOREFRONT_HERO_MODES, cn as STOREFRONT_IMAGE_ROUTE, Lt as STOREFRONT_PRODUCTS_ROUTE, dn as STOREFRONT_TIME_SLOTS_ROUTE, $r as Select, ei as SelectContent, ti as SelectGroup, ni as SelectIcon, ri as SelectItem, ii as SelectItemIndicator, ai as SelectItemText, oi as SelectLabel, si as SelectScrollDownButton, ci as SelectScrollUpButton, li as SelectSeparator, ui as SelectTrigger, di as SelectValue, cr as StepSectionTitle, _r as StorefrontCartPanel, ct as StorefrontCartProvider, Ee as TIME_OPTIONS, or as TestimonialsSection, ir as Textarea, Dn as WhatsAppFloatingButton, Rr as acceptContractSaleDocumentRequestSchema, zr as acceptContractSaleDocumentResponseSchema, Sr as accessories, h as accessoryProductSchema, De as applyBookingParamsToSearch, vn as badgeVariants, re as baseAssetSchema, ie as baseAssetStatusSchema, ae as baseBookingItemSchema, oe as baseBookingSchema, se as baseBookingStateSchema, g as bikeProductSchema, Cr as bikes, Y as bookingCustomerInputSchema, X as bookingDeliveryOptionSchema, Z as bookingScheduleInputSchema, ht as buildDailyPriceRows, gt as buildPriceTierLabels, Yt as buildStorefrontAvailabilityKey, xt as buildStorefrontCartSummary, ln as buildStorefrontImageUrl, Ge as buildStorefrontProductSlug, Ke as buildVariantStorefrontProductId, Ot as buildWhatsAppHref, bn as buttonVariants, _t as calculateDailyPriceForQuantity, V as cancellationPolicySchema, H as cancellationPolicyTierSchema, Q as cartItemInputSchema, dt as cn, qe as compareCatalogProducts, Je as compareStorefrontAccessoryProducts, Ye as compareStorefrontBikeProducts, Br as contractSaleDocumentAcceptanceInputSchema, wr as contractSaleDocumentAcceptanceLevelSchema, Vr as contractSaleDocumentAcceptanceRecordInputSchema, Tr as contractSaleDocumentAcceptanceRecordSchema, Er as contractSaleDocumentAcceptanceSchema, Dr as contractSaleDocumentAddressSchema, Hr as contractSaleDocumentApiAcceptanceRecordSchema, Ur as contractSaleDocumentApiAcceptanceSchema, Wr as contractSaleDocumentApiSchema, Gr as contractSaleDocumentApiSignatureSchema, Or as contractSaleDocumentContactSchema, kr as contractSaleDocumentKindSchema, Ar as contractSaleDocumentLanguageCodeSchema, jr as contractSaleDocumentLanguageSchema, Mr as contractSaleDocumentLineItemSchema, Kr as contractSaleDocumentReferenceSchema, qr as contractSaleDocumentReferenceTypeSchema, Nr as contractSaleDocumentSchema, Jr as contractSaleDocumentSignatureInputSchema, Pr as contractSaleDocumentSignatureSchema, $ as createBookingInputBaseSchema, ee as createBookingInputSchema, Oe as createBookingPeriodConfigFromBookingEngineConfiguration, ke as createBookingPeriodConfigFromShopConfiguration, Ae as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, Xt as doesStorefrontAvailabilityDisplaySoldOut, Yr as downloadContractSaleDocumentPdfRequestSchema, _ as eBikeProductSchema, Xe as findStorefrontProduct, Ze as findStorefrontProductBySlug, ft as formatPriceMinor, Tt as formatStorefrontPhoneDisplay, vt as formatStorefrontPriceMinor, W as fulfillmentModeSchema, pt as getAvailabilityVariant, je as getBookingDurationLabel, Me as getBookingDurationMinutes, Ne as getBookingParamsFromSearch, Pe as getBookingSessionStorageKey, Qe as getCatalogProductBaseRateMinor, $e as getCatalogProductPaginationSort, et as getCatalogProductSortFieldForPriceUnit, Xr as getContractSaleDocumentRequestSchema, Zr as getContractSaleDocumentResponseSchema, Fe as getDefaultBookingParams, Ie as getDefaultBookingParamsForStorefrontConfiguration, yt as getLocalizedEntry, t as getLocalizedStringValue, bt as getLocalizedValue, mt as getMinDayPriceMinor, Zt as getStorefrontAvailabilityIssue, Qt as getStorefrontAvailabilityStatus, tt as getStorefrontBaseDailyRateMinor, nt as getStorefrontCheckoutProductId, rt as getStorefrontRepresentedVariantId, v as isProductVariantCodeIdentifierKind, $t as isStorefrontAvailabilityInsufficient, A as isoDateSchema, Un as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, U as paymentPoliciesSchema, Le as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, y as productInsuranceSchema, b as productKindSchema, x as productSchema, S as productStorefrontDisplayModeSchema, C as productVariantAttributeSchema, w as productVariantCodeSchema, T as productVariantIdentifierSchema, E as productVariantSchema, en as publicAvailabilityDisplayModeSchema, G as publicBookingEngineConfigurationSchema, K as publicCheckoutConfigurationSchema, q as publicCheckoutDynamicOptionsSchema, Re as readBookingSearchParamsFromSessionStorage, ze as readBookingSearchParamsFromStorage, Ct as requestSchema, te as resolveBookingDeliveryOption, Be as resolveBookingSearchParams, Ve as resolveBookingSearchParamsFromSessionStorage, lt as resolveStorefrontCartItemProduct, Et as resolveStorefrontMapsHref, Dt as resolveStorefrontPhoneContact, kt as resolveStorefrontWhatsAppContact, At as resolveStorefrontWhatsAppHref, wt as responseSchema, D as richTextJsonDocSchema, O as richTextSchema, k as richTextVersionSchema, j as shopConfigurationSchema, M as shopExtraTimeSlotRuleSchema, N as shopOpeningDayIndexSchema, P as shopOpeningDaySchema, F as shopOpeningHoursOverrideSchema, I as shopOpeningHoursPeriodSchema, L as shopOpeningSlotSchema, rn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, an as storefrontAvailabilityProductSchema, tn as storefrontAvailabilityRequestSchema, nn as storefrontAvailabilityResponseSchema, on as storefrontAvailabilityScheduleSchema, le as storefrontCheckoutModeSchema, Pt as storefrontCheckoutSubmitDeliveryRefinement, Nt as storefrontCheckoutSubmitItemSchema, Mt as storefrontCheckoutSubmitRequestBaseSchema, Ft as storefrontCheckoutSubmitRequestSchema, It as storefrontCheckoutSubmitResponseSchema, ue as storefrontConfigurationSchema, de as storefrontContentSchema, Sn as storefrontEn, fe as storefrontFaqItemSchema, pe as storefrontFaqSchema, Cn as storefrontFr, me as storefrontFulfillmentModeSchema, he as storefrontHeroModeSchema, un as storefrontImageRequestSchema, ge as storefrontLocalizedRichTextSchema, _e as storefrontModalMessageSchema, ve as storefrontModulesSchema, Rt as storefrontProductsRequestSchema, zt as storefrontProductsResponseSchema, Bt as storefrontPublicAccessoryProductSchema, sn as storefrontPublicAvailabilityRecordSchema, Vt as storefrontPublicBikeAvailabilityStatusSchema, Ht as storefrontPublicBikeProductSchema, Ut as storefrontPublicProductDisplayModeSchema, Wt as storefrontPublicProductPriceSchema, Gt as storefrontPublicProductVariantAttributeSchema, Kt as storefrontPublicProductVariantIdentifierSchema, qt as storefrontPublicProductVariantSchema, ye as storefrontReviewsModuleSchema, be as storefrontRichTextSchema, Qr as storefrontRoutes, xe as storefrontSettingsSchema, Se as storefrontShopSchema, Ce as storefrontStatusSchema, hn as storefrontTimeSlotJourneySchema, mn as storefrontTimeSlotSchema, fn as storefrontTimeSlotsRequestSchema, pn as storefrontTimeSlotsResponseSchema, we as storefrontWorkspaceSchema, R as timeOfDaySchema, it as toStorefrontAccessoryProducts, at as toStorefrontBikeProducts, ot as toStorefrontBookingProducts, st as toStorefrontBookingProductsCollections, Mn as useBookingPeriod, rr as useFormField, Wn as useOptionalStorefront, Gn as useStorefront, Kn as useStorefrontBookingProducts, ut as useStorefrontCart, qn as useStorefrontConfig, Jn as useStorefrontProducts, Yn as useStorefrontWorkspaceLanguage, En as useWhatsAppFloatingButton, ne as validateBookingDeliveryAddress, He as writeBookingSearchParamsToSessionStorage, Ue as writeBookingSearchParamsToStorage };
@@ -1,5 +1,5 @@
1
- import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/booking-engine/dist/schemas/cart-inputs-j1yWfJxO.js";
2
- import "../chunks/booking-engine/dist/schemas-DftrSnTE.js";
1
+ import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/booking-engine/dist/schemas/cart-inputs-B0HpcFe5.js";
2
+ import "../chunks/booking-engine/dist/schemas-BNUzqsci.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/booking-engine/dist/models/Product.shared-CTuk4fiR.js";
2
- import { DEFAULT_BOOKING_DELIVERY_OPTION as t, bookingScheduleInputSchema as n } from "../chunks/booking-engine/dist/schemas/cart-inputs-j1yWfJxO.js";
3
- import "../chunks/booking-engine/dist/schemas-DftrSnTE.js";
1
+ import { productKindSchema as e } from "../chunks/booking-engine/dist/models/Product.shared-IYOeC3N7.js";
2
+ import { DEFAULT_BOOKING_DELIVERY_OPTION as t, bookingScheduleInputSchema as n } from "../chunks/booking-engine/dist/schemas/cart-inputs-B0HpcFe5.js";
3
+ import "../chunks/booking-engine/dist/schemas-BNUzqsci.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";
@@ -1,6 +1,7 @@
1
- export type PlaygroundHeroMode = "current_booking_hero" | "booking_bar_overlay_hero" | "vertical_marquee_hero";
1
+ import { StorefrontHeroMode } from '../storefrontSchemas';
2
+ export type PlaygroundHeroMode = StorefrontHeroMode;
2
3
  export type PlaygroundDevSettings = {
3
- heroMode: PlaygroundHeroMode;
4
+ heroMode: PlaygroundHeroMode | null;
4
5
  };
5
6
  export declare const DEFAULT_PLAYGROUND_DEV_SETTINGS: PlaygroundDevSettings;
6
7
  export declare const isStorefrontPlaygroundRuntime: () => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"playgroundDevSettings.d.ts","sourceRoot":"","sources":["../../src/lib/playgroundDevSettings.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,kBAAkB,GAC1B,sBAAsB,GACtB,0BAA0B,GAC1B,uBAAuB,CAAA;AAE3B,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAE,qBAE7C,CAAA;AAgBD,eAAO,MAAM,6BAA6B,eAOzC,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAO,qBAc5C,CAAA;AAMD,eAAO,MAAM,0BAA0B,GAAI,cAAc,qBAAqB,SAsB7E,CAAA;AAED,eAAO,MAAM,0BAA0B,YAEtC,CAAA;AAED,eAAO,MAAM,wBAAwB,6BAkCpC,CAAA"}
1
+ {"version":3,"file":"playgroundDevSettings.d.ts","sourceRoot":"","sources":["../../src/lib/playgroundDevSettings.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sBAAsB,CAAA;AAO7B,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAA;AAEnD,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAE,qBAE7C,CAAA;AAgBD,eAAO,MAAM,6BAA6B,eAOzC,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAO,qBAc5C,CAAA;AAMD,eAAO,MAAM,0BAA0B,GAAI,cAAc,qBAAqB,SAsB7E,CAAA;AAED,eAAO,MAAM,0BAA0B,YAEtC,CAAA;AAED,eAAO,MAAM,wBAAwB,6BAkCpC,CAAA"}
@@ -1,46 +1,47 @@
1
- import { useEffect as e, useState as t } from "react";
1
+ import { STOREFRONT_HERO_MODES as e } from "../storefrontSchemas.js";
2
+ import { useEffect as t, useState as n } from "react";
2
3
  //#region src/lib/playgroundDevSettings.ts
3
- var n = "__LOCZER_STOREFRONT_PLAYGROUND__", r = "loczer-storefront-playground-dev-settings", i = "loczer:storefront-playground-dev-settings", a = { heroMode: "current_booking_hero" }, o = (e) => {
4
- if (!e || typeof e != "object") return a;
4
+ var r = "__LOCZER_STOREFRONT_PLAYGROUND__", i = "loczer-storefront-playground-dev-settings", a = "loczer:storefront-playground-dev-settings", o = { heroMode: null }, s = (t) => e.some((e) => e === t), c = (e) => {
5
+ if (!e || typeof e != "object") return o;
5
6
  let t = e;
6
- return { heroMode: t.heroMode === "booking_bar_overlay_hero" || t.heroMode === "vertical_marquee_hero" ? t.heroMode : "current_booking_hero" };
7
- }, s = () => typeof window > "u" ? !1 : window[n] === !0, c = () => {
8
- if (typeof window > "u" || !s()) return a;
7
+ return { heroMode: s(t.heroMode) ? t.heroMode : null };
8
+ }, l = () => typeof window > "u" ? !1 : window[r] === !0, u = () => {
9
+ if (typeof window > "u" || !l()) return o;
9
10
  try {
10
- let e = window.localStorage.getItem(r);
11
- return e ? o(JSON.parse(e)) : a;
11
+ let e = window.localStorage.getItem(i);
12
+ return e ? c(JSON.parse(e)) : o;
12
13
  } catch {
13
- return a;
14
+ return o;
14
15
  }
15
- }, l = (e) => e.heroMode === a.heroMode, u = (e) => {
16
- if (typeof window > "u" || !s()) return;
17
- let t = o(e);
16
+ }, d = (e) => e.heroMode === o.heroMode, f = (e) => {
17
+ if (typeof window > "u" || !l()) return;
18
+ let t = c(e);
18
19
  try {
19
- l(t) ? window.localStorage.removeItem(r) : window.localStorage.setItem(r, JSON.stringify(t));
20
+ d(t) ? window.localStorage.removeItem(i) : window.localStorage.setItem(i, JSON.stringify(t));
20
21
  } catch {}
21
22
  try {
22
- window.dispatchEvent(new CustomEvent(i, { detail: t }));
23
+ window.dispatchEvent(new CustomEvent(a, { detail: t }));
23
24
  } catch {}
24
- }, d = () => {
25
- u(a);
26
- }, f = () => {
27
- let [n, a] = t(() => c());
28
- return e(() => {
29
- if (!s()) return;
25
+ }, p = () => {
26
+ f(o);
27
+ }, m = () => {
28
+ let [e, r] = n(() => u());
29
+ return t(() => {
30
+ if (!l()) return;
30
31
  let e = (e) => {
31
- e.key === r && a(c());
32
+ e.key === i && r(u());
32
33
  }, t = (e) => {
33
34
  let t = e;
34
35
  if (t.detail) {
35
- a(o(t.detail));
36
+ r(c(t.detail));
36
37
  return;
37
38
  }
38
- a(c());
39
+ r(u());
39
40
  };
40
- return window.addEventListener("storage", e), window.addEventListener(i, t), () => {
41
- window.removeEventListener("storage", e), window.removeEventListener(i, t);
41
+ return window.addEventListener("storage", e), window.addEventListener(a, t), () => {
42
+ window.removeEventListener("storage", e), window.removeEventListener(a, t);
42
43
  };
43
- }, []), n;
44
+ }, []), e;
44
45
  };
45
46
  //#endregion
46
- export { a as DEFAULT_PLAYGROUND_DEV_SETTINGS, s as isStorefrontPlaygroundRuntime, c as readPlaygroundDevSettings, d as resetPlaygroundDevSettings, f as usePlaygroundDevSettings, u as writePlaygroundDevSettings };
47
+ export { o as DEFAULT_PLAYGROUND_DEV_SETTINGS, l as isStorefrontPlaygroundRuntime, u as readPlaygroundDevSettings, p as resetPlaygroundDevSettings, m as usePlaygroundDevSettings, f as writePlaygroundDevSettings };
@@ -12,6 +12,12 @@ export declare const storefrontPublicProductPriceSchema: z.ZodObject<{
12
12
  currency: z.ZodOptional<z.ZodString>;
13
13
  }, z.core.$strip>;
14
14
  export type StorefrontPublicProductPrice = z.infer<typeof storefrontPublicProductPriceSchema>;
15
+ export declare const storefrontPublicProductInsuranceSchema: z.ZodObject<{
16
+ enabled: z.ZodBoolean;
17
+ pricePerDayMinor: z.ZodNumber;
18
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
19
+ }, z.core.$strip>;
20
+ export type StorefrontPublicProductInsurance = z.infer<typeof storefrontPublicProductInsuranceSchema>;
15
21
  export declare const storefrontPublicProductVariantIdentifierSchema: z.ZodObject<{
16
22
  kind: z.ZodString;
17
23
  value: z.ZodString;
@@ -114,6 +120,11 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
114
120
  quantity: z.ZodNumber;
115
121
  currency: z.ZodOptional<z.ZodString>;
116
122
  }, z.core.$strip>>>;
123
+ insurance: z.ZodOptional<z.ZodObject<{
124
+ enabled: z.ZodBoolean;
125
+ pricePerDayMinor: z.ZodNumber;
126
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
127
+ }, z.core.$strip>>;
117
128
  features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
118
129
  value: z.ZodString;
119
130
  updatedAt: z.ZodCoercedDate<unknown>;
@@ -268,6 +279,11 @@ export declare const responseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
268
279
  quantity: z.ZodNumber;
269
280
  currency: z.ZodOptional<z.ZodString>;
270
281
  }, z.core.$strip>>>;
282
+ insurance: z.ZodOptional<z.ZodObject<{
283
+ enabled: z.ZodBoolean;
284
+ pricePerDayMinor: z.ZodNumber;
285
+ deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
286
+ }, z.core.$strip>>;
271
287
  features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
272
288
  value: z.ZodString;
273
289
  updatedAt: z.ZodCoercedDate<unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"storefrontProducts.d.ts","sourceRoot":"","sources":["../../src/lib/storefrontProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAevB,eAAO,MAAM,kCAAkC;;;;;;;;;;;iBAK7C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAE7F,eAAO,MAAM,8CAA8C;;;iBAGzD,CAAA;AACF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8CAA8C,CAAC,CAAA;AAErH,eAAO,MAAM,6CAA6C;;;;iBAIxD,CAAA;AACF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAA;AAEnH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;iBAK/C,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AAEjG,eAAO,MAAM,4CAA4C;;;;EAAqD,CAAA;AAC9G,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4CAA4C,CAAC,CAAA;AACjH,eAAO,MAAM,8BAA8B;;;EAA6B,CAAA;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,eAAO,MAAM,iCAAiC,aAA2B,CAAA;AACzE,eAAO,MAAM,wCAAwC;;;EAGnD,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA;AAEzG,eAAO,MAAM,gCAAgC;;;;;;;;;;iBAUzC,CAAA;AACJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAEzF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgB5C,CAAA;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAE3F,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,KAAK,oCAAoC,CAAA;AAEtD,eAAO,MAAM,aAAa;;iBAExB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAC1D,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAA;AAE7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAYzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAC5D,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAA"}
1
+ {"version":3,"file":"storefrontProducts.d.ts","sourceRoot":"","sources":["../../src/lib/storefrontProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAevB,eAAO,MAAM,kCAAkC;;;;;;;;;;;iBAK7C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAE7F,eAAO,MAAM,sCAAsC;;;;iBAIjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,8CAA8C;;;iBAGzD,CAAA;AACF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8CAA8C,CAAC,CAAA;AAErH,eAAO,MAAM,6CAA6C;;;;iBAIxD,CAAA;AACF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAA;AAEnH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;iBAK/C,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AAEjG,eAAO,MAAM,4CAA4C;;;;EAAqD,CAAA;AAC9G,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4CAA4C,CAAC,CAAA;AACjH,eAAO,MAAM,8BAA8B;;;EAA6B,CAAA;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,eAAO,MAAM,iCAAiC,aAA2B,CAAA;AACzE,eAAO,MAAM,wCAAwC;;;EAGnD,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA;AAEzG,eAAO,MAAM,gCAAgC;;;;;;;;;;iBAUzC,CAAA;AACJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAEzF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB5C,CAAA;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAE3F,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,KAAK,oCAAoC,CAAA;AAEtD,eAAO,MAAM,aAAa;;iBAExB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAC1D,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAA;AAE7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAYzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAC5D,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAA"}