@loczer/storefront-sdk 0.237.0 → 0.239.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 (50) hide show
  1. package/dist/chunks/pkg/booking-engine/dist/models/{LocalizedString-D_TRgAdr.js → LocalizedString-JmOX62C3.js} +1 -1
  2. package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-CWP_qule.js → Product.shared-C_HehlKK.js} +3 -3
  3. package/dist/chunks/pkg/booking-engine/dist/models/types-ynW5hdp8.js +8 -0
  4. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-BhIOL2rP.js → base-asset-CFAxfmRW.js} +3 -3
  5. package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-BJXFzDM5.js → base-booking-CZOR9kya.js} +13 -12
  6. package/dist/chunks/pkg/booking-engine/dist/schemas/base-product-QYQBl0fQ.js +4 -0
  7. package/dist/chunks/pkg/booking-engine/dist/schemas/{booking-engine-configuration-LnrhShqm.js → booking-engine-configuration-CxKlxKCo.js} +1 -1
  8. package/dist/chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js +13 -0
  9. package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-3lBblkB0.js → cart-inputs-D1KobIdr.js} +4 -4
  10. package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-DXc34Bzy.js → insurance-B-Vmdlxo.js} +3 -3
  11. package/dist/chunks/pkg/booking-engine/dist/schemas/{product-id--yyUTH1Y.js → product-id-ChdStzgp.js} +1 -1
  12. package/dist/chunks/pkg/booking-engine/dist/schemas/{public-booking-engine-configuration-CEM9mexX.js → public-booking-engine-configuration-BwWn9aK0.js} +1 -1
  13. package/dist/chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js +17 -0
  14. package/dist/components/Footer/businessHoursStatus.js +1 -1
  15. package/dist/components/Layout/index.d.ts.map +1 -1
  16. package/dist/components/Layout/index.js +38 -26
  17. package/dist/components/StorefrontCartPanel/index.d.ts +2 -1
  18. package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -1
  19. package/dist/components/StorefrontCartPanel/index.js +24 -24
  20. package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts +4 -2
  21. package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts.map +1 -1
  22. package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.js +8 -8
  23. package/dist/i18n/en.d.ts +3 -0
  24. package/dist/i18n/en.d.ts.map +1 -1
  25. package/dist/i18n/en.js +3 -0
  26. package/dist/i18n/fr.d.ts +3 -0
  27. package/dist/i18n/fr.d.ts.map +1 -1
  28. package/dist/i18n/fr.js +3 -0
  29. package/dist/index.d.ts +33 -3
  30. package/dist/index.js +87 -86
  31. package/dist/lib/booking-period.js +1 -1
  32. package/dist/lib/booking.js +2 -2
  33. package/dist/lib/checkoutSubmit.d.ts.map +1 -1
  34. package/dist/lib/checkoutSubmit.js +45 -44
  35. package/dist/pages/CheckoutPage.d.ts.map +1 -1
  36. package/dist/pages/CheckoutPage.js +198 -184
  37. package/dist/pages/checkout/components/CheckoutLoadingSkeleton.d.ts.map +1 -1
  38. package/dist/pages/checkout/components/CheckoutLoadingSkeleton.js +10 -6
  39. package/dist/pages/checkout/components/CheckoutMobileSummaryDrawer.d.ts +13 -0
  40. package/dist/pages/checkout/components/CheckoutMobileSummaryDrawer.d.ts.map +1 -0
  41. package/dist/pages/checkout/components/CheckoutMobileSummaryDrawer.js +95 -0
  42. package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +4 -1
  43. package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -1
  44. package/dist/pages/checkout/components/CheckoutSummaryColumn.js +22 -20
  45. package/dist/storefront.css +1 -1
  46. package/dist/storefrontSchemas.js +2 -2
  47. package/package.json +1 -1
  48. package/dist/chunks/pkg/booking-engine/dist/models/types-rIp4ReXN.js +0 -8
  49. package/dist/chunks/pkg/booking-engine/dist/schemas/base-product-Bde9lJQD.js +0 -4
  50. package/dist/chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js +0 -16
package/dist/index.d.ts CHANGED
@@ -623,6 +623,12 @@ export declare const bikes: ({
623
623
  productVariants?: undefined;
624
624
  })[];
625
625
 
626
+ export declare const BOOKING_REFERENCE_COUNTER_MIN_DIGITS = 4;
627
+
628
+ export declare const BOOKING_REFERENCE_REGEX: RegExp;
629
+
630
+ export declare const BOOKING_REFERENCE_YEAR_MONTH_REGEX: RegExp;
631
+
626
632
  export declare const BOOKING_SEARCH_KEYS: readonly ["fulfillment", "start_date", "start_time", "end_date", "end_time", "start_address", "end_address"];
627
633
 
628
634
  export declare type BookingCustomerInput = z.infer<typeof bookingCustomerInputSchema>;
@@ -893,6 +899,10 @@ export declare type BookingPeriodTimeSlotsStatus = "local" | "loading" | "ready"
893
899
 
894
900
  export declare type BookingPeriodTranslator = (key: string, options?: Record<string, unknown>) => string;
895
901
 
902
+ export declare const bookingReferenceSchema: z.ZodString;
903
+
904
+ export declare const bookingReferenceYearMonthSchema: z.ZodString;
905
+
896
906
  export declare type BookingRentalUnitSummary = {
897
907
  priceUnit: PriceUnit_2;
898
908
  billableUnitCount: number;
@@ -1840,6 +1850,17 @@ declare type FooterProps = {
1840
1850
 
1841
1851
  export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
1842
1852
 
1853
+ export declare function formatBookingReference(params: {
1854
+ workspaceTrackingPrefix: string;
1855
+ startYearMonth: string;
1856
+ sequenceValue: number;
1857
+ }): string;
1858
+
1859
+ export declare function formatBookingReferenceYearMonth(params: {
1860
+ startYear: number;
1861
+ startMonth: number;
1862
+ }): string;
1863
+
1843
1864
  export declare const formatPriceMinor: (valueMinor: MoneyMinor_2, language: string, { currency, minimumFractionDigits, maximumFractionDigits, }?: {
1844
1865
  currency?: string;
1845
1866
  minimumFractionDigits?: number;
@@ -3572,7 +3593,7 @@ export declare type StorefrontCartItem = {
3572
3593
  quantity: number;
3573
3594
  };
3574
3595
 
3575
- export declare function StorefrontCartPanel({ lines, itemCount, baseUnitLabel, totalMinor, title, description, headerAddon, checkoutPath, showCheckoutAction, showClearAction, editable, summaryAddon, pricingSummary, stickyTopClassName, onQuantityChange, onRemove, onClear, }: StorefrontCartPanelProps): JSX.Element;
3596
+ export declare function StorefrontCartPanel({ lines, itemCount, baseUnitLabel, totalMinor, title, description, headerAddon, checkoutPath, showCheckoutAction, showClearAction, editable, summaryAddon, pricingSummary, presentation, stickyTopClassName, onQuantityChange, onRemove, onClear, }: StorefrontCartPanelProps): JSX.Element;
3576
3597
 
3577
3598
  declare type StorefrontCartPanelProps = {
3578
3599
  lines: StorefrontCartSummaryLine[];
@@ -3588,6 +3609,7 @@ declare type StorefrontCartPanelProps = {
3588
3609
  editable?: boolean;
3589
3610
  summaryAddon?: ReactNode;
3590
3611
  pricingSummary?: ReactNode;
3612
+ presentation?: "card" | "flat";
3591
3613
  stickyTopClassName?: string;
3592
3614
  onQuantityChange?: (key: string, quantity: number) => void;
3593
3615
  onRemove?: (key: string) => void;
@@ -4388,6 +4410,9 @@ export declare const storefrontEn: {
4388
4410
  checkout_booking_period_edit: string;
4389
4411
  checkout_summary_title: string;
4390
4412
  checkout_summary_description: string;
4413
+ checkout_mobile_summary_button: string;
4414
+ checkout_mobile_submit: string;
4415
+ checkout_mobile_continue_to_payment: string;
4391
4416
  checkout_booking_subtotal: string;
4392
4417
  checkout_estimated_duration: string;
4393
4418
  checkout_estimated_total: string;
@@ -4947,6 +4972,9 @@ export declare const storefrontFr: {
4947
4972
  checkout_booking_period_edit: string;
4948
4973
  checkout_summary_title: string;
4949
4974
  checkout_summary_description: string;
4975
+ checkout_mobile_summary_button: string;
4976
+ checkout_mobile_submit: string;
4977
+ checkout_mobile_continue_to_payment: string;
4950
4978
  checkout_booking_subtotal: string;
4951
4979
  checkout_estimated_duration: string;
4952
4980
  checkout_estimated_total: string;
@@ -6993,13 +7021,15 @@ export declare function validateBookingDeliveryAddress(input: BookingDeliveryAdd
6993
7021
 
6994
7022
  declare type Weekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
6995
7023
 
6996
- export declare const WhatsAppFloatingButton: (props: WhatsAppFloatingButtonProps) => JSX.Element | null;
7024
+ export declare const WhatsAppFloatingButton: ({ avoidMobileBottomBar, ...options }: WhatsAppFloatingButtonProps) => JSX.Element | null;
6997
7025
 
6998
7026
  export declare interface WhatsAppFloatingButtonOptions {
6999
7027
  href?: string;
7000
7028
  }
7001
7029
 
7002
- declare type WhatsAppFloatingButtonProps = WhatsAppFloatingButtonOptions;
7030
+ declare type WhatsAppFloatingButtonProps = WhatsAppFloatingButtonOptions & {
7031
+ avoidMobileBottomBar?: boolean;
7032
+ };
7003
7033
 
7004
7034
  export declare const writeBookingSearchParamsToSessionStorage: (storeSlug: string | undefined, booking: Partial<StorefrontBookingParams> | URLSearchParams) => void;
7005
7035
 
package/dist/index.js CHANGED
@@ -1,99 +1,100 @@
1
1
  /* empty css */
2
- import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./chunks/pkg/booking-engine/dist/models/LocalizedString-D_TRgAdr.js";
2
+ import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./chunks/pkg/booking-engine/dist/models/LocalizedString-JmOX62C3.js";
3
3
  import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./chunks/pkg/booking-engine/dist/schemas/money-CVoCY4of.js";
4
4
  import { priceSchema as d, priceUnitSchema as f } from "./chunks/pkg/booking-engine/dist/models/Price-DCAgqkKh.js";
5
- import { productIdSchema as p } from "./chunks/pkg/booking-engine/dist/schemas/product-id--yyUTH1Y.js";
6
- 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 "./chunks/pkg/booking-engine/dist/models/Product.shared-CWP_qule.js";
7
- import { richTextJsonDocSchema as k, richTextSchema as A, richTextVersionSchema as j } from "./chunks/pkg/booking-engine/dist/schemas/rich-text-DTRh7U3z.js";
8
- 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 "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
9
- import { DEFAULT_CANCELLATION_POLICY as V, DEFAULT_PAYMENT_POLICIES as H, cancellationPolicySchema as U, cancellationPolicyTierSchema as W, paymentPoliciesSchema as G } from "./chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-LnrhShqm.js";
10
- import { fulfillmentModeSchema as K, publicBookingEngineConfigurationSchema as q, publicCheckoutConfigurationSchema as J, publicCheckoutDynamicOptionsSchema as Y } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-CEM9mexX.js";
11
- 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 "./chunks/pkg/booking-engine/dist/schemas/cart-inputs-3lBblkB0.js";
12
- import { bookingInsuranceConsentSourceSchema as ae, bookingInsuranceItemSnapshotSchema as oe, bookingInsuranceSnapshotSchema as se, buildBookingInsuranceSnapshot as ce, calculateInsuranceCalendarDays as le, insuranceProviderSchema as ue } from "./chunks/pkg/booking-engine/dist/schemas/insurance-DXc34Bzy.js";
13
- import { resolveOpeningHoursForDate as de, resolveOpeningHoursPeriodForDate as fe } from "./chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
14
- import { assetIdSchema as pe, baseAssetSchema as me, baseAssetStatusSchema as he } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-BhIOL2rP.js";
15
- import { baseBookingItemSchema as ge, baseBookingSchema as _e, baseBookingStateSchema as ve } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-BJXFzDM5.js";
16
- import "./chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js";
17
- import { STOREFRONT_HERO_MODES as ye, storefrontCheckoutModeSchema as be, storefrontConfigurationSchema as xe, storefrontContentSchema as Se, storefrontFaqItemSchema as Ce, storefrontFaqSchema as we, storefrontFulfillmentModeSchema as Te, storefrontHeroModeSchema as Ee, storefrontInformationSchema as De, storefrontLocalizedRichTextSchema as Oe, storefrontModalMessageSchema as ke, storefrontModulesSchema as Ae, storefrontReviewsModuleSchema as je, storefrontRichTextSchema as Me, storefrontSettingsSchema as Ne, storefrontShopSchema as Pe, storefrontStatusSchema as Fe, storefrontWorkspaceSchema as Ie } from "./storefrontSchemas.js";
18
- import { BOOKING_SEARCH_KEYS as Le, TIME_OPTIONS as Re, applyBookingParamsToSearch as ze, createBookingPeriodConfigFromBookingEngineConfiguration as Be, createBookingPeriodConfigFromShopConfiguration as Ve, createBookingPeriodConfigFromStorefrontConfiguration as He, getBookingParamsFromSearch as Ue, getBookingSessionStorageKey as We, getDefaultBookingParams as Ge, getDefaultBookingParamsForStorefrontConfiguration as Ke, pickBookingSearchParams as qe, readBookingSearchParamsFromSessionStorage as Je, readBookingSearchParamsFromStorage as Ye, resolveBookingSearchParams as Xe, resolveBookingSearchParamsFromSessionStorage as Ze, writeBookingSearchParamsToSessionStorage as Qe, writeBookingSearchParamsToStorage as $e } from "./lib/booking.js";
19
- import { getLocalizedEntry as et, getLocalizedValue as tt } from "./localization.js";
20
- import { CATALOG_PRODUCT_BASE_RATE_UNSET as nt, buildStorefrontProductSlug as rt, buildVariantStorefrontProductId as it, compareCatalogProducts as at, compareStorefrontAccessoryProducts as ot, compareStorefrontBikeProducts as st, findStorefrontInsurancePricingBike as ct, findStorefrontProduct as lt, findStorefrontProductBySlug as ut, getCatalogProductBaseRateMinor as dt, getCatalogProductPaginationSort as ft, getCatalogProductSortFieldForPriceUnit as pt, getStorefrontBaseDailyRateMinor as mt, getStorefrontCheckoutProductId as ht, getStorefrontProductSelectionDisplayName as gt, getStorefrontRepresentedVariantId as _t, toStorefrontAccessoryProducts as vt, toStorefrontBikeProducts as yt, toStorefrontBookingProducts as bt, toStorefrontBookingProductsCollections as xt } from "./lib/products.js";
21
- import { StorefrontCartProvider as St, resolveStorefrontCartItemProduct as Ct, useStorefrontCart as wt } from "./lib/cart.js";
22
- import { cn as Tt, formatPriceMinor as Et, getAvailabilityVariant as Dt, getMinDayPriceMinor as Ot } from "./lib/utils.js";
23
- import { buildPriceTierLabels as kt, buildRentalPriceRows as At, calculateBookingRentalUnitSummary as jt, calculateRentalPriceForQuantity as Mt, formatRentalUnitQuantity as Nt, formatStorefrontPriceMinor as Pt, getPricingUnitLabel as Ft } from "./lib/pricing.js";
24
- import { buildStorefrontCartSummary as It } from "./lib/cartSummary.js";
25
- import { ROUTE as Lt, requestSchema as Rt, responseSchema as zt } from "./lib/contactForm.js";
26
- import { formatStorefrontPhoneDisplay as Bt, resolveStorefrontMapsHref as Vt, resolveStorefrontPhoneContact as Ht } from "./lib/storefrontContact.js";
27
- import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as Ut, STOREFRONT_ITINERARIES_LIST_ROUTE as Wt, STOREFRONT_ITINERARY_DETAIL_ROUTE as Gt, storefrontItinerariesFeaturedRequestSchema as Kt, storefrontItinerariesFeaturedResponseSchema as qt, storefrontItinerariesListRequestSchema as Jt, storefrontItinerariesListResponseSchema as Yt, storefrontItineraryBoundsSchema as Xt, storefrontItineraryCoordinateSchema as Zt, storefrontItineraryDetailRequestSchema as Qt, storefrontItineraryDetailResponseSchema as $t, storefrontItineraryDetailSchema as en, storefrontItineraryDifficultySchema as tn, storefrontItineraryLocalizedStringSchema as nn, storefrontItineraryMetricsSchema as rn, storefrontItineraryPreviewSchema as an, storefrontItineraryStepSchema as on, storefrontItinerarySummarySchema as sn, storefrontItineraryTripTypeSchema as cn } from "./lib/storefrontItineraries.js";
28
- import { buildWhatsAppHref as ln, resolveStorefrontWhatsAppContact as un, resolveStorefrontWhatsAppHref as dn } from "./lib/whatsapp.js";
29
- import { ROUTE as fn, requestBaseSchema as pn, requestCheckoutItemSchema as mn, requestDeliveryRefinement as hn, requestSchema as gn, responseSchema as _n } from "./lib/checkoutSubmit.js";
30
- import { ROUTE as vn, requestSchema as yn, responseSchema as bn, storefrontPublicAccessoryProductSchema as xn, storefrontPublicBikeAvailabilityStatusSchema as Sn, storefrontPublicBikeProductSchema as Cn, storefrontPublicProductDisplayModeSchema as wn, storefrontPublicProductPriceSchema as Tn, storefrontPublicProductVariantAttributeSchema as En, storefrontPublicProductVariantIdentifierSchema as Dn, storefrontPublicProductVariantSchema as On } from "./lib/storefrontProducts.js";
31
- import { ROUTE as kn, buildStorefrontAvailabilityKey as An, doesStorefrontAvailabilityDisplaySoldOut as jn, getStorefrontAvailabilityIssue as Mn, getStorefrontAvailabilityStatus as Nn, isStorefrontAvailabilityInsufficient as Pn, publicAvailabilityDisplayModeSchema as Fn, requestSchema as In, responseSchema as Ln, shouldBlockStorefrontUnavailableItem as Rn, storefrontAvailabilityProductSchema as zn, storefrontAvailabilityScheduleSchema as Bn, storefrontPublicAvailabilityRecordSchema as Vn } from "./lib/storefrontAvailability.js";
32
- import { ROUTE as Hn, buildStorefrontImageUrl as Un, requestSchema as Wn } from "./lib/storefrontImage.js";
33
- import { ROUTE as Gn, requestSchema as Kn, responseSchema as qn, storefrontTimeSlotSchema as Jn, timeSlotJourneySchema as Yn } from "./lib/storefrontTimeSlots.js";
34
- import { Footer as Xn } from "./components/Footer/index.js";
35
- import { Badge as Zn, badgeVariants as Qn } from "./ui/badge.js";
36
- import { Button as $n, buttonVariants as er, storefrontButtonRadiusClassName as tr } from "./ui/button.js";
37
- import { LanguageSelector as nr } from "./components/LanguageSelector/index.js";
38
- import { StorefrontContext as rr, useOptionalStorefront as ir, useStorefront as ar, useStorefrontBookingProducts as or, useStorefrontConfig as sr, useStorefrontItineraries as cr, useStorefrontProducts as lr, useStorefrontWorkspaceLanguage as ur } from "./StorefrontContext.js";
39
- import { Header as dr } from "./components/Header/index.js";
40
- import { storefront as fr } from "./i18n/en.js";
41
- import { storefront as pr } from "./i18n/fr.js";
42
- import { PoweredByLoczerBadge as mr } from "./components/PoweredByLoczerBadge/index.js";
43
- import { PlatformFooter as hr } from "./components/PlatformFooter/index.js";
44
- import { useWhatsAppFloatingButton as gr } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
45
- import { WhatsAppFloatingButton as _r } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
5
+ import { productIdSchema as p } from "./chunks/pkg/booking-engine/dist/schemas/product-id-ChdStzgp.js";
6
+ 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 "./chunks/pkg/booking-engine/dist/models/Product.shared-C_HehlKK.js";
7
+ import { BOOKING_REFERENCE_COUNTER_MIN_DIGITS as k, BOOKING_REFERENCE_REGEX as A, BOOKING_REFERENCE_YEAR_MONTH_REGEX as j, bookingReferenceSchema as M, bookingReferenceYearMonthSchema as N, formatBookingReference as P, formatBookingReferenceYearMonth as F } from "./chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js";
8
+ import { richTextJsonDocSchema as I, richTextSchema as L, richTextVersionSchema as R } from "./chunks/pkg/booking-engine/dist/schemas/rich-text-DTRh7U3z.js";
9
+ import { isoDateSchema as z, shopConfigurationSchema as B, shopExtraTimeSlotRuleSchema as V, shopOpeningDayIndexSchema as H, shopOpeningDaySchema as U, shopOpeningHoursOverrideSchema as W, shopOpeningHoursPeriodSchema as G, shopOpeningSlotSchema as K, timeOfDaySchema as q } from "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
10
+ import { DEFAULT_CANCELLATION_POLICY as J, DEFAULT_PAYMENT_POLICIES as Y, cancellationPolicySchema as X, cancellationPolicyTierSchema as Z, paymentPoliciesSchema as Q } from "./chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-CxKlxKCo.js";
11
+ import { fulfillmentModeSchema as $, publicBookingEngineConfigurationSchema as ee, publicCheckoutConfigurationSchema as te, publicCheckoutDynamicOptionsSchema as ne } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-BwWn9aK0.js";
12
+ import { DEFAULT_BOOKING_DELIVERY_OPTION as re, bookingCustomerInputSchema as ie, bookingDeliveryOptionSchema as ae, bookingScheduleInputSchema as oe, cartItemInputSchema as se, createBookingInputBaseSchema as ce, createBookingInputSchema as le, resolveBookingDeliveryOption as ue, validateBookingDeliveryAddress as de } from "./chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1KobIdr.js";
13
+ import { bookingInsuranceConsentSourceSchema as fe, bookingInsuranceItemSnapshotSchema as pe, bookingInsuranceSnapshotSchema as me, buildBookingInsuranceSnapshot as he, calculateInsuranceCalendarDays as ge, insuranceProviderSchema as _e } from "./chunks/pkg/booking-engine/dist/schemas/insurance-B-Vmdlxo.js";
14
+ import { resolveOpeningHoursForDate as ve, resolveOpeningHoursPeriodForDate as ye } from "./chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
15
+ import { assetIdSchema as be, baseAssetSchema as xe, baseAssetStatusSchema as Se } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-CFAxfmRW.js";
16
+ import { baseBookingItemSchema as Ce, baseBookingSchema as we, baseBookingStateSchema as Te } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-CZOR9kya.js";
17
+ import "./chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
18
+ import { STOREFRONT_HERO_MODES as Ee, storefrontCheckoutModeSchema as De, storefrontConfigurationSchema as Oe, storefrontContentSchema as ke, storefrontFaqItemSchema as Ae, storefrontFaqSchema as je, storefrontFulfillmentModeSchema as Me, storefrontHeroModeSchema as Ne, storefrontInformationSchema as Pe, storefrontLocalizedRichTextSchema as Fe, storefrontModalMessageSchema as Ie, storefrontModulesSchema as Le, storefrontReviewsModuleSchema as Re, storefrontRichTextSchema as ze, storefrontSettingsSchema as Be, storefrontShopSchema as Ve, storefrontStatusSchema as He, storefrontWorkspaceSchema as Ue } from "./storefrontSchemas.js";
19
+ import { BOOKING_SEARCH_KEYS as We, TIME_OPTIONS as Ge, applyBookingParamsToSearch as Ke, createBookingPeriodConfigFromBookingEngineConfiguration as qe, createBookingPeriodConfigFromShopConfiguration as Je, createBookingPeriodConfigFromStorefrontConfiguration as Ye, getBookingParamsFromSearch as Xe, getBookingSessionStorageKey as Ze, getDefaultBookingParams as Qe, getDefaultBookingParamsForStorefrontConfiguration as $e, pickBookingSearchParams as et, readBookingSearchParamsFromSessionStorage as tt, readBookingSearchParamsFromStorage as nt, resolveBookingSearchParams as rt, resolveBookingSearchParamsFromSessionStorage as it, writeBookingSearchParamsToSessionStorage as at, writeBookingSearchParamsToStorage as ot } from "./lib/booking.js";
20
+ import { getLocalizedEntry as st, getLocalizedValue as ct } from "./localization.js";
21
+ import { CATALOG_PRODUCT_BASE_RATE_UNSET as lt, buildStorefrontProductSlug as ut, buildVariantStorefrontProductId as dt, compareCatalogProducts as ft, compareStorefrontAccessoryProducts as pt, compareStorefrontBikeProducts as mt, findStorefrontInsurancePricingBike as ht, findStorefrontProduct as gt, findStorefrontProductBySlug as _t, getCatalogProductBaseRateMinor as vt, getCatalogProductPaginationSort as yt, getCatalogProductSortFieldForPriceUnit as bt, getStorefrontBaseDailyRateMinor as xt, getStorefrontCheckoutProductId as St, getStorefrontProductSelectionDisplayName as Ct, getStorefrontRepresentedVariantId as wt, toStorefrontAccessoryProducts as Tt, toStorefrontBikeProducts as Et, toStorefrontBookingProducts as Dt, toStorefrontBookingProductsCollections as Ot } from "./lib/products.js";
22
+ import { StorefrontCartProvider as kt, resolveStorefrontCartItemProduct as At, useStorefrontCart as jt } from "./lib/cart.js";
23
+ import { cn as Mt, formatPriceMinor as Nt, getAvailabilityVariant as Pt, getMinDayPriceMinor as Ft } from "./lib/utils.js";
24
+ import { buildPriceTierLabels as It, buildRentalPriceRows as Lt, calculateBookingRentalUnitSummary as Rt, calculateRentalPriceForQuantity as zt, formatRentalUnitQuantity as Bt, formatStorefrontPriceMinor as Vt, getPricingUnitLabel as Ht } from "./lib/pricing.js";
25
+ import { buildStorefrontCartSummary as Ut } from "./lib/cartSummary.js";
26
+ import { ROUTE as Wt, requestSchema as Gt, responseSchema as Kt } from "./lib/contactForm.js";
27
+ import { formatStorefrontPhoneDisplay as qt, resolveStorefrontMapsHref as Jt, resolveStorefrontPhoneContact as Yt } from "./lib/storefrontContact.js";
28
+ import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as Xt, STOREFRONT_ITINERARIES_LIST_ROUTE as Zt, STOREFRONT_ITINERARY_DETAIL_ROUTE as Qt, storefrontItinerariesFeaturedRequestSchema as $t, storefrontItinerariesFeaturedResponseSchema as en, storefrontItinerariesListRequestSchema as tn, storefrontItinerariesListResponseSchema as nn, storefrontItineraryBoundsSchema as rn, storefrontItineraryCoordinateSchema as an, storefrontItineraryDetailRequestSchema as on, storefrontItineraryDetailResponseSchema as sn, storefrontItineraryDetailSchema as cn, storefrontItineraryDifficultySchema as ln, storefrontItineraryLocalizedStringSchema as un, storefrontItineraryMetricsSchema as dn, storefrontItineraryPreviewSchema as fn, storefrontItineraryStepSchema as pn, storefrontItinerarySummarySchema as mn, storefrontItineraryTripTypeSchema as hn } from "./lib/storefrontItineraries.js";
29
+ import { buildWhatsAppHref as gn, resolveStorefrontWhatsAppContact as _n, resolveStorefrontWhatsAppHref as vn } from "./lib/whatsapp.js";
30
+ import { ROUTE as yn, requestBaseSchema as bn, requestCheckoutItemSchema as xn, requestDeliveryRefinement as Sn, requestSchema as Cn, responseSchema as wn } from "./lib/checkoutSubmit.js";
31
+ import { ROUTE as Tn, requestSchema as En, responseSchema as Dn, storefrontPublicAccessoryProductSchema as On, storefrontPublicBikeAvailabilityStatusSchema as kn, storefrontPublicBikeProductSchema as An, storefrontPublicProductDisplayModeSchema as jn, storefrontPublicProductPriceSchema as Mn, storefrontPublicProductVariantAttributeSchema as Nn, storefrontPublicProductVariantIdentifierSchema as Pn, storefrontPublicProductVariantSchema as Fn } from "./lib/storefrontProducts.js";
32
+ import { ROUTE as In, buildStorefrontAvailabilityKey as Ln, doesStorefrontAvailabilityDisplaySoldOut as Rn, getStorefrontAvailabilityIssue as zn, getStorefrontAvailabilityStatus as Bn, isStorefrontAvailabilityInsufficient as Vn, publicAvailabilityDisplayModeSchema as Hn, requestSchema as Un, responseSchema as Wn, shouldBlockStorefrontUnavailableItem as Gn, storefrontAvailabilityProductSchema as Kn, storefrontAvailabilityScheduleSchema as qn, storefrontPublicAvailabilityRecordSchema as Jn } from "./lib/storefrontAvailability.js";
33
+ import { ROUTE as Yn, buildStorefrontImageUrl as Xn, requestSchema as Zn } from "./lib/storefrontImage.js";
34
+ import { ROUTE as Qn, requestSchema as $n, responseSchema as er, storefrontTimeSlotSchema as tr, timeSlotJourneySchema as nr } from "./lib/storefrontTimeSlots.js";
35
+ import { Footer as rr } from "./components/Footer/index.js";
36
+ import { Badge as ir, badgeVariants as ar } from "./ui/badge.js";
37
+ import { Button as or, buttonVariants as sr, storefrontButtonRadiusClassName as cr } from "./ui/button.js";
38
+ import { LanguageSelector as lr } from "./components/LanguageSelector/index.js";
39
+ import { StorefrontContext as ur, useOptionalStorefront as dr, useStorefront as fr, useStorefrontBookingProducts as pr, useStorefrontConfig as mr, useStorefrontItineraries as hr, useStorefrontProducts as gr, useStorefrontWorkspaceLanguage as _r } from "./StorefrontContext.js";
40
+ import { Header as vr } from "./components/Header/index.js";
41
+ import { storefront as yr } from "./i18n/en.js";
42
+ import { storefront as br } from "./i18n/fr.js";
43
+ import { PoweredByLoczerBadge as xr } from "./components/PoweredByLoczerBadge/index.js";
44
+ import { PlatformFooter as Sr } from "./components/PlatformFooter/index.js";
45
+ import { useWhatsAppFloatingButton as Cr } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
46
+ import { WhatsAppFloatingButton as wr } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
46
47
  import "./components/WhatsAppFloatingButton/index.js";
47
- import { Layout as vr } from "./components/Layout/index.js";
48
- import { DelayedPlaceholder as yr, DelayedReveal as br } from "./components/DelayedReveal/index.js";
49
- import { BookingPeriodProvider as xr, useBookingPeriod as Sr } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
50
- import { Label as Cr } from "./ui/label.js";
51
- import { BookingStartDateField as wr } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
52
- import { BookingStartTimeField as Tr } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
53
- import { BookingEndDateField as Er } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
54
- import { BookingEndTimeField as Dr } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
55
- import { BookingTimeSlotsStatus as Or } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
56
- import { BookingMobileDateDrawer as kr } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
57
- import { BookingPeriodSelector as Ar } from "./components/BookingPeriodSelector/index.js";
58
- import { BookingFlowSteps as jr } from "./components/BookingFlowSteps/index.js";
59
- import { Input as Mr } from "./ui/input.js";
60
- import { DeliveryAddressSelector as Nr } from "./components/DeliveryAddressSelector/index.js";
61
- import { Form as Pr, FormControl as Fr, FormDescription as Ir, FormField as Lr, FormItem as Rr, FormLabel as zr, FormMessage as Br, useFormField as Vr } from "./ui/form.js";
62
- import { Textarea as Hr } from "./ui/textarea.js";
63
- import { ContactSection as Ur } from "./components/ContactSection/index.js";
64
- import { FaqSection as Wr } from "./components/FaqSection/index.js";
65
- import { TestimonialsSection as Gr } from "./components/TestimonialsSection/index.js";
66
- import { AboutSection as Kr } from "./components/AboutSection/index.js";
67
- import { AdminFloatingButton as qr } from "./components/AdminFloatingButton/AdminFloatingButton.js";
48
+ import { Layout as Tr } from "./components/Layout/index.js";
49
+ import { DelayedPlaceholder as Er, DelayedReveal as Dr } from "./components/DelayedReveal/index.js";
50
+ import { BookingPeriodProvider as Or, useBookingPeriod as kr } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
51
+ import { Label as Ar } from "./ui/label.js";
52
+ import { BookingStartDateField as jr } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
53
+ import { BookingStartTimeField as Mr } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
54
+ import { BookingEndDateField as Nr } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
55
+ import { BookingEndTimeField as Pr } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
56
+ import { BookingTimeSlotsStatus as Fr } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
57
+ import { BookingMobileDateDrawer as Ir } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
58
+ import { BookingPeriodSelector as Lr } from "./components/BookingPeriodSelector/index.js";
59
+ import { BookingFlowSteps as Rr } from "./components/BookingFlowSteps/index.js";
60
+ import { Input as zr } from "./ui/input.js";
61
+ import { DeliveryAddressSelector as Br } from "./components/DeliveryAddressSelector/index.js";
62
+ import { Form as Vr, FormControl as Hr, FormDescription as Ur, FormField as Wr, FormItem as Gr, FormLabel as Kr, FormMessage as qr, useFormField as Jr } from "./ui/form.js";
63
+ import { Textarea as Yr } from "./ui/textarea.js";
64
+ import { ContactSection as Xr } from "./components/ContactSection/index.js";
65
+ import { FaqSection as Zr } from "./components/FaqSection/index.js";
66
+ import { TestimonialsSection as Qr } from "./components/TestimonialsSection/index.js";
67
+ import { AboutSection as $r } from "./components/AboutSection/index.js";
68
+ import { AdminFloatingButton as ei } from "./components/AdminFloatingButton/AdminFloatingButton.js";
68
69
  import "./components/AdminFloatingButton/index.js";
69
- import { ItineraryListItem as Jr } from "./components/Itineraries/ItineraryListItem.js";
70
- import { ItineraryRouteMap as Yr } from "./components/Itineraries/ItineraryRouteMap.js";
71
- import { ItinerariesSection as Xr } from "./components/Itineraries/ItinerariesSection.js";
70
+ import { ItineraryListItem as ti } from "./components/Itineraries/ItineraryListItem.js";
71
+ import { ItineraryRouteMap as ni } from "./components/Itineraries/ItineraryRouteMap.js";
72
+ import { ItinerariesSection as ri } from "./components/Itineraries/ItinerariesSection.js";
72
73
  import "./components/Itineraries/index.js";
73
- import { StepSectionTitle as Zr } from "./components/StepSectionTitle/index.js";
74
- import { Card as Qr, CardAction as $r, CardContent as ei, CardDescription as ti, CardFooter as ni, CardHeader as ri, CardTitle as ii } from "./ui/card.js";
75
- import { ProductWarningNotice as ai } from "./components/ProductWarningNotice/index.js";
76
- import { StorefrontCartPanel as oi } from "./components/StorefrontCartPanel/index.js";
77
- import { ProductPriceBadge as si } from "./components/ProductPriceBadge/index.js";
78
- import { ContractSaleDocument as ci } from "./components/ContractSaleDocument/Invoice.js";
74
+ import { StepSectionTitle as ii } from "./components/StepSectionTitle/index.js";
75
+ import { Card as ai, CardAction as oi, CardContent as si, CardDescription as ci, CardFooter as li, CardHeader as ui, CardTitle as di } from "./ui/card.js";
76
+ import { ProductWarningNotice as fi } from "./components/ProductWarningNotice/index.js";
77
+ import { StorefrontCartPanel as pi } from "./components/StorefrontCartPanel/index.js";
78
+ import { ProductPriceBadge as mi } from "./components/ProductPriceBadge/index.js";
79
+ import { ContractSaleDocument as hi } from "./components/ContractSaleDocument/Invoice.js";
79
80
  import "./components/ContractSaleDocument/index.js";
80
- import { SignatureInput as li } from "./components/SignatureInput/index.js";
81
- import { RadioGroup as ui, RadioGroupItem as di } from "./ui/radio-group.js";
81
+ import { SignatureInput as gi } from "./components/SignatureInput/index.js";
82
+ import { RadioGroup as _i, RadioGroupItem as vi } from "./ui/radio-group.js";
82
83
  import "./pages/HomePage.js";
83
84
  import "./pages/BookingPage.js";
84
85
  import "./pages/ProductPage.js";
85
- import fi from "./pages/ItinerariesPage.js";
86
- import pi, { loader as mi } from "./pages/ItineraryDetailsPage.js";
87
- import hi from "./pages/RentalTermsPage.js";
88
- import gi from "./pages/InsuranceTermsPage.js";
86
+ import yi from "./pages/ItinerariesPage.js";
87
+ import bi, { loader as xi } from "./pages/ItineraryDetailsPage.js";
88
+ import Si from "./pages/RentalTermsPage.js";
89
+ import Ci from "./pages/InsuranceTermsPage.js";
89
90
  import "./pages/CheckoutPage.js";
90
91
  import "./pages/CheckoutSuccessPage.js";
91
92
  import "./pages/NotFoundPage.js";
92
- import { accessories as _i } from "./data/accessories.js";
93
- import vi from "./data/bikes.js";
94
- import { contractSaleDocumentAcceptanceLevelSchema as yi, contractSaleDocumentAcceptanceRecordSchema as bi, contractSaleDocumentAcceptanceSchema as xi, contractSaleDocumentAddressSchema as Si, contractSaleDocumentAppendixKindSchema as Ci, contractSaleDocumentAppendixSchema as wi, contractSaleDocumentContactSchema as Ti, contractSaleDocumentKindSchema as Ei, contractSaleDocumentLanguageCodeSchema as Di, contractSaleDocumentLanguageSchema as Oi, contractSaleDocumentLineItemSchema as ki, contractSaleDocumentRentalSchema as Ai, contractSaleDocumentSchema as ji, contractSaleDocumentSignatureSchema as Mi } from "./lib/contractSaleDocument.js";
95
- import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Ni, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Pi, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Fi, acceptContractSaleDocumentRequestSchema as Ii, acceptContractSaleDocumentResponseSchema as Li, contractSaleDocumentAcceptanceInputSchema as Ri, contractSaleDocumentAcceptanceRecordInputSchema as zi, contractSaleDocumentApiAcceptanceRecordSchema as Bi, contractSaleDocumentApiAcceptanceSchema as Vi, contractSaleDocumentApiSchema as Hi, contractSaleDocumentApiSignatureSchema as Ui, contractSaleDocumentReferenceSchema as Wi, contractSaleDocumentReferenceTypeSchema as Gi, contractSaleDocumentSignatureInputSchema as Ki, downloadContractSaleDocumentPdfRequestSchema as qi, getContractSaleDocumentRequestSchema as Ji, getContractSaleDocumentResponseSchema as Yi } from "./lib/contractSaleDocumentApi.js";
96
- import Xi from "./routes.js";
97
- import { loader as Zi } from "./StorefrontProvider.js";
98
- import { Select as Qi, SelectContent as $i, SelectGroup as ea, SelectIcon as ta, SelectItem as na, SelectItemIndicator as ra, SelectItemText as ia, SelectLabel as aa, SelectScrollDownButton as oa, SelectScrollUpButton as sa, SelectSeparator as ca, SelectTrigger as la, SelectValue as ua } from "./ui/select.js";
99
- export { Ni as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Kr as AboutSection, qr as AdminFloatingButton, Le as BOOKING_SEARCH_KEYS, Zn as Badge, Er as BookingEndDateField, Dr as BookingEndTimeField, jr as BookingFlowSteps, kr as BookingMobileDateDrawer, xr as BookingPeriodProvider, Ar as BookingPeriodSelector, wr as BookingStartDateField, Tr as BookingStartTimeField, Or as BookingTimeSlotsStatus, $n as Button, nt as CATALOG_PRODUCT_BASE_RATE_UNSET, Qr as Card, $r as CardAction, ei as CardContent, ti as CardDescription, ni as CardFooter, ri as CardHeader, ii as CardTitle, Ur as ContactSection, ci as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Pi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, yr as DelayedPlaceholder, br as DelayedReveal, Nr as DeliveryAddressSelector, Wr as FaqSection, Xn as Footer, Pr as Form, Fr as FormControl, Ir as FormDescription, Lr as FormField, Rr as FormItem, zr as FormLabel, Br as FormMessage, Fi as GET_CONTRACT_SALE_DOCUMENT_ROUTE, dr as Header, Mr as Input, gi as InsuranceTermsPage, fi as ItinerariesPage, Xr as ItinerariesSection, pi as ItineraryDetailsPage, Jr as ItineraryListItem, Yr as ItineraryRouteMap, Cr as Label, nr as LanguageSelector, vr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, hr as PlatformFooter, mr as PoweredByLoczerBadge, si as ProductPriceBadge, ai as ProductWarningNotice, Lt as ROUTE, ui as RadioGroup, di as RadioGroupItem, hi as RentalTermsPage, kn as STOREFRONT_AVAILABILITY_ROUTE, fn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ye as STOREFRONT_HERO_MODES, Hn as STOREFRONT_IMAGE_ROUTE, Ut as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Wt as STOREFRONT_ITINERARIES_LIST_ROUTE, Gt as STOREFRONT_ITINERARY_DETAIL_ROUTE, vn as STOREFRONT_PRODUCTS_ROUTE, Gn as STOREFRONT_TIME_SLOTS_ROUTE, Qi as Select, $i as SelectContent, ea as SelectGroup, ta as SelectIcon, na as SelectItem, ra as SelectItemIndicator, ia as SelectItemText, aa as SelectLabel, oa as SelectScrollDownButton, sa as SelectScrollUpButton, ca as SelectSeparator, la as SelectTrigger, ua as SelectValue, li as SignatureInput, Zr as StepSectionTitle, oi as StorefrontCartPanel, St as StorefrontCartProvider, rr as StorefrontContext, Re as TIME_OPTIONS, Gr as TestimonialsSection, Hr as Textarea, _r as WhatsAppFloatingButton, Ii as acceptContractSaleDocumentRequestSchema, Li as acceptContractSaleDocumentResponseSchema, _i as accessories, _ as accessoryProductSchema, ze as applyBookingParamsToSearch, pe as assetIdSchema, Qn as badgeVariants, me as baseAssetSchema, he as baseAssetStatusSchema, ge as baseBookingItemSchema, _e as baseBookingSchema, ve as baseBookingStateSchema, v as bikeProductSchema, vi as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, kt as buildPriceTierLabels, At as buildRentalPriceRows, An as buildStorefrontAvailabilityKey, It as buildStorefrontCartSummary, Un as buildStorefrontImageUrl, rt as buildStorefrontProductSlug, it as buildVariantStorefrontProductId, ln as buildWhatsAppHref, er as buttonVariants, jt as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, Mt as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, Tt as cn, at as compareCatalogProducts, ot as compareStorefrontAccessoryProducts, st as compareStorefrontBikeProducts, Ri as contractSaleDocumentAcceptanceInputSchema, yi as contractSaleDocumentAcceptanceLevelSchema, zi as contractSaleDocumentAcceptanceRecordInputSchema, bi as contractSaleDocumentAcceptanceRecordSchema, xi as contractSaleDocumentAcceptanceSchema, Si as contractSaleDocumentAddressSchema, Bi as contractSaleDocumentApiAcceptanceRecordSchema, Vi as contractSaleDocumentApiAcceptanceSchema, Hi as contractSaleDocumentApiSchema, Ui as contractSaleDocumentApiSignatureSchema, Ci as contractSaleDocumentAppendixKindSchema, wi as contractSaleDocumentAppendixSchema, Ti as contractSaleDocumentContactSchema, Ei as contractSaleDocumentKindSchema, Di as contractSaleDocumentLanguageCodeSchema, Oi as contractSaleDocumentLanguageSchema, ki as contractSaleDocumentLineItemSchema, Wi as contractSaleDocumentReferenceSchema, Gi as contractSaleDocumentReferenceTypeSchema, Ai as contractSaleDocumentRentalSchema, ji as contractSaleDocumentSchema, Ki as contractSaleDocumentSignatureInputSchema, Mi as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Be as createBookingPeriodConfigFromBookingEngineConfiguration, Ve as createBookingPeriodConfigFromShopConfiguration, He as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, jn as doesStorefrontAvailabilityDisplaySoldOut, qi as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ct as findStorefrontInsurancePricingBike, lt as findStorefrontProduct, ut as findStorefrontProductBySlug, Et as formatPriceMinor, Nt as formatRentalUnitQuantity, Bt as formatStorefrontPhoneDisplay, Pt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, Dt as getAvailabilityVariant, Ue as getBookingParamsFromSearch, We as getBookingSessionStorageKey, dt as getCatalogProductBaseRateMinor, ft as getCatalogProductPaginationSort, pt as getCatalogProductSortFieldForPriceUnit, Ji as getContractSaleDocumentRequestSchema, Yi as getContractSaleDocumentResponseSchema, Ge as getDefaultBookingParams, Ke as getDefaultBookingParamsForStorefrontConfiguration, et as getLocalizedEntry, t as getLocalizedStringValue, tt as getLocalizedValue, Ot as getMinDayPriceMinor, Ft as getPricingUnitLabel, Mn as getStorefrontAvailabilityIssue, Nn as getStorefrontAvailabilityStatus, mt as getStorefrontBaseDailyRateMinor, ht as getStorefrontCheckoutProductId, gt as getStorefrontProductSelectionDisplayName, _t as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Pn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, mi as itineraryDetailsLoader, Zi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, qe as pickBookingSearchParams, 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, Fn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Je as readBookingSearchParamsFromSessionStorage, Ye as readBookingSearchParamsFromStorage, Rt as requestSchema, re as resolveBookingDeliveryOption, Xe as resolveBookingSearchParams, Ze as resolveBookingSearchParamsFromSessionStorage, de as resolveOpeningHoursForDate, fe as resolveOpeningHoursPeriodForDate, Ct as resolveStorefrontCartItemProduct, Vt as resolveStorefrontMapsHref, Ht as resolveStorefrontPhoneContact, un as resolveStorefrontWhatsAppContact, dn as resolveStorefrontWhatsAppHref, zt as responseSchema, 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, Rn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, zn as storefrontAvailabilityProductSchema, In as storefrontAvailabilityRequestSchema, Ln as storefrontAvailabilityResponseSchema, Bn as storefrontAvailabilityScheduleSchema, tr as storefrontButtonRadiusClassName, be as storefrontCheckoutModeSchema, hn as storefrontCheckoutSubmitDeliveryRefinement, mn as storefrontCheckoutSubmitItemSchema, pn as storefrontCheckoutSubmitRequestBaseSchema, gn as storefrontCheckoutSubmitRequestSchema, _n as storefrontCheckoutSubmitResponseSchema, xe as storefrontConfigurationSchema, Se as storefrontContentSchema, fr as storefrontEn, Ce as storefrontFaqItemSchema, we as storefrontFaqSchema, pr as storefrontFr, Te as storefrontFulfillmentModeSchema, Ee as storefrontHeroModeSchema, Wn as storefrontImageRequestSchema, De as storefrontInformationSchema, Kt as storefrontItinerariesFeaturedRequestSchema, qt as storefrontItinerariesFeaturedResponseSchema, Jt as storefrontItinerariesListRequestSchema, Yt as storefrontItinerariesListResponseSchema, Xt as storefrontItineraryBoundsSchema, Zt as storefrontItineraryCoordinateSchema, Qt as storefrontItineraryDetailRequestSchema, $t as storefrontItineraryDetailResponseSchema, en as storefrontItineraryDetailSchema, tn as storefrontItineraryDifficultySchema, nn as storefrontItineraryLocalizedStringSchema, rn as storefrontItineraryMetricsSchema, an as storefrontItineraryPreviewSchema, on as storefrontItineraryStepSchema, sn as storefrontItinerarySummarySchema, cn as storefrontItineraryTripTypeSchema, Oe as storefrontLocalizedRichTextSchema, ke as storefrontModalMessageSchema, Ae as storefrontModulesSchema, yn as storefrontProductsRequestSchema, bn as storefrontProductsResponseSchema, xn as storefrontPublicAccessoryProductSchema, Vn as storefrontPublicAvailabilityRecordSchema, Sn as storefrontPublicBikeAvailabilityStatusSchema, Cn as storefrontPublicBikeProductSchema, wn as storefrontPublicProductDisplayModeSchema, Tn as storefrontPublicProductPriceSchema, En as storefrontPublicProductVariantAttributeSchema, Dn as storefrontPublicProductVariantIdentifierSchema, On as storefrontPublicProductVariantSchema, je as storefrontReviewsModuleSchema, Me as storefrontRichTextSchema, Xi as storefrontRoutes, Ne as storefrontSettingsSchema, Pe as storefrontShopSchema, Fe as storefrontStatusSchema, Yn as storefrontTimeSlotJourneySchema, Jn as storefrontTimeSlotSchema, Kn as storefrontTimeSlotsRequestSchema, qn as storefrontTimeSlotsResponseSchema, Ie as storefrontWorkspaceSchema, B as timeOfDaySchema, vt as toStorefrontAccessoryProducts, yt as toStorefrontBikeProducts, bt as toStorefrontBookingProducts, xt as toStorefrontBookingProductsCollections, Sr as useBookingPeriod, Vr as useFormField, ir as useOptionalStorefront, ar as useStorefront, or as useStorefrontBookingProducts, wt as useStorefrontCart, sr as useStorefrontConfig, cr as useStorefrontItineraries, lr as useStorefrontProducts, ur as useStorefrontWorkspaceLanguage, gr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Qe as writeBookingSearchParamsToSessionStorage, $e as writeBookingSearchParamsToStorage };
93
+ import { accessories as wi } from "./data/accessories.js";
94
+ import Ti from "./data/bikes.js";
95
+ import { contractSaleDocumentAcceptanceLevelSchema as Ei, contractSaleDocumentAcceptanceRecordSchema as Di, contractSaleDocumentAcceptanceSchema as Oi, contractSaleDocumentAddressSchema as ki, contractSaleDocumentAppendixKindSchema as Ai, contractSaleDocumentAppendixSchema as ji, contractSaleDocumentContactSchema as Mi, contractSaleDocumentKindSchema as Ni, contractSaleDocumentLanguageCodeSchema as Pi, contractSaleDocumentLanguageSchema as Fi, contractSaleDocumentLineItemSchema as Ii, contractSaleDocumentRentalSchema as Li, contractSaleDocumentSchema as Ri, contractSaleDocumentSignatureSchema as zi } from "./lib/contractSaleDocument.js";
96
+ import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Bi, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Vi, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Hi, acceptContractSaleDocumentRequestSchema as Ui, acceptContractSaleDocumentResponseSchema as Wi, contractSaleDocumentAcceptanceInputSchema as Gi, contractSaleDocumentAcceptanceRecordInputSchema as Ki, contractSaleDocumentApiAcceptanceRecordSchema as qi, contractSaleDocumentApiAcceptanceSchema as Ji, contractSaleDocumentApiSchema as Yi, contractSaleDocumentApiSignatureSchema as Xi, contractSaleDocumentReferenceSchema as Zi, contractSaleDocumentReferenceTypeSchema as Qi, contractSaleDocumentSignatureInputSchema as $i, downloadContractSaleDocumentPdfRequestSchema as ea, getContractSaleDocumentRequestSchema as ta, getContractSaleDocumentResponseSchema as na } from "./lib/contractSaleDocumentApi.js";
97
+ import ra from "./routes.js";
98
+ import { loader as ia } from "./StorefrontProvider.js";
99
+ import { Select as aa, SelectContent as oa, SelectGroup as sa, SelectIcon as ca, SelectItem as la, SelectItemIndicator as ua, SelectItemText as da, SelectLabel as fa, SelectScrollDownButton as pa, SelectScrollUpButton as ma, SelectSeparator as ha, SelectTrigger as ga, SelectValue as _a } from "./ui/select.js";
100
+ export { Bi as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, $r as AboutSection, ei as AdminFloatingButton, k as BOOKING_REFERENCE_COUNTER_MIN_DIGITS, A as BOOKING_REFERENCE_REGEX, j as BOOKING_REFERENCE_YEAR_MONTH_REGEX, We as BOOKING_SEARCH_KEYS, ir as Badge, Nr as BookingEndDateField, Pr as BookingEndTimeField, Rr as BookingFlowSteps, Ir as BookingMobileDateDrawer, Or as BookingPeriodProvider, Lr as BookingPeriodSelector, jr as BookingStartDateField, Mr as BookingStartTimeField, Fr as BookingTimeSlotsStatus, or as Button, lt as CATALOG_PRODUCT_BASE_RATE_UNSET, ai as Card, oi as CardAction, si as CardContent, ci as CardDescription, li as CardFooter, ui as CardHeader, di as CardTitle, Xr as ContactSection, hi as ContractSaleDocument, re as DEFAULT_BOOKING_DELIVERY_OPTION, J as DEFAULT_CANCELLATION_POLICY, Y as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Vi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, Er as DelayedPlaceholder, Dr as DelayedReveal, Br as DeliveryAddressSelector, Zr as FaqSection, rr as Footer, Vr as Form, Hr as FormControl, Ur as FormDescription, Wr as FormField, Gr as FormItem, Kr as FormLabel, qr as FormMessage, Hi as GET_CONTRACT_SALE_DOCUMENT_ROUTE, vr as Header, zr as Input, Ci as InsuranceTermsPage, yi as ItinerariesPage, ri as ItinerariesSection, bi as ItineraryDetailsPage, ti as ItineraryListItem, ni as ItineraryRouteMap, Ar as Label, lr as LanguageSelector, Tr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, Sr as PlatformFooter, xr as PoweredByLoczerBadge, mi as ProductPriceBadge, fi as ProductWarningNotice, Wt as ROUTE, _i as RadioGroup, vi as RadioGroupItem, Si as RentalTermsPage, In as STOREFRONT_AVAILABILITY_ROUTE, yn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, Ee as STOREFRONT_HERO_MODES, Yn as STOREFRONT_IMAGE_ROUTE, Xt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Zt as STOREFRONT_ITINERARIES_LIST_ROUTE, Qt as STOREFRONT_ITINERARY_DETAIL_ROUTE, Tn as STOREFRONT_PRODUCTS_ROUTE, Qn as STOREFRONT_TIME_SLOTS_ROUTE, aa as Select, oa as SelectContent, sa as SelectGroup, ca as SelectIcon, la as SelectItem, ua as SelectItemIndicator, da as SelectItemText, fa as SelectLabel, pa as SelectScrollDownButton, ma as SelectScrollUpButton, ha as SelectSeparator, ga as SelectTrigger, _a as SelectValue, gi as SignatureInput, ii as StepSectionTitle, pi as StorefrontCartPanel, kt as StorefrontCartProvider, ur as StorefrontContext, Ge as TIME_OPTIONS, Qr as TestimonialsSection, Yr as Textarea, wr as WhatsAppFloatingButton, Ui as acceptContractSaleDocumentRequestSchema, Wi as acceptContractSaleDocumentResponseSchema, wi as accessories, _ as accessoryProductSchema, Ke as applyBookingParamsToSearch, be as assetIdSchema, ar as badgeVariants, xe as baseAssetSchema, Se as baseAssetStatusSchema, Ce as baseBookingItemSchema, we as baseBookingSchema, Te as baseBookingStateSchema, v as bikeProductSchema, Ti as bikes, ie as bookingCustomerInputSchema, ae as bookingDeliveryOptionSchema, fe as bookingInsuranceConsentSourceSchema, pe as bookingInsuranceItemSnapshotSchema, me as bookingInsuranceSnapshotSchema, M as bookingReferenceSchema, N as bookingReferenceYearMonthSchema, oe as bookingScheduleInputSchema, he as buildBookingInsuranceSnapshot, It as buildPriceTierLabels, Lt as buildRentalPriceRows, Ln as buildStorefrontAvailabilityKey, Ut as buildStorefrontCartSummary, Xn as buildStorefrontImageUrl, ut as buildStorefrontProductSlug, dt as buildVariantStorefrontProductId, gn as buildWhatsAppHref, sr as buttonVariants, Rt as calculateBookingRentalUnitSummary, ge as calculateInsuranceCalendarDays, zt as calculateRentalPriceForQuantity, X as cancellationPolicySchema, Z as cancellationPolicyTierSchema, se as cartItemInputSchema, Mt as cn, ft as compareCatalogProducts, pt as compareStorefrontAccessoryProducts, mt as compareStorefrontBikeProducts, Gi as contractSaleDocumentAcceptanceInputSchema, Ei as contractSaleDocumentAcceptanceLevelSchema, Ki as contractSaleDocumentAcceptanceRecordInputSchema, Di as contractSaleDocumentAcceptanceRecordSchema, Oi as contractSaleDocumentAcceptanceSchema, ki as contractSaleDocumentAddressSchema, qi as contractSaleDocumentApiAcceptanceRecordSchema, Ji as contractSaleDocumentApiAcceptanceSchema, Yi as contractSaleDocumentApiSchema, Xi as contractSaleDocumentApiSignatureSchema, Ai as contractSaleDocumentAppendixKindSchema, ji as contractSaleDocumentAppendixSchema, Mi as contractSaleDocumentContactSchema, Ni as contractSaleDocumentKindSchema, Pi as contractSaleDocumentLanguageCodeSchema, Fi as contractSaleDocumentLanguageSchema, Ii as contractSaleDocumentLineItemSchema, Zi as contractSaleDocumentReferenceSchema, Qi as contractSaleDocumentReferenceTypeSchema, Li as contractSaleDocumentRentalSchema, Ri as contractSaleDocumentSchema, $i as contractSaleDocumentSignatureInputSchema, zi as contractSaleDocumentSignatureSchema, ce as createBookingInputBaseSchema, le as createBookingInputSchema, qe as createBookingPeriodConfigFromBookingEngineConfiguration, Je as createBookingPeriodConfigFromShopConfiguration, Ye as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, Rn as doesStorefrontAvailabilityDisplaySoldOut, ea as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ht as findStorefrontInsurancePricingBike, gt as findStorefrontProduct, _t as findStorefrontProductBySlug, P as formatBookingReference, F as formatBookingReferenceYearMonth, Nt as formatPriceMinor, Bt as formatRentalUnitQuantity, qt as formatStorefrontPhoneDisplay, Vt as formatStorefrontPriceMinor, $ as fulfillmentModeSchema, Pt as getAvailabilityVariant, Xe as getBookingParamsFromSearch, Ze as getBookingSessionStorageKey, vt as getCatalogProductBaseRateMinor, yt as getCatalogProductPaginationSort, bt as getCatalogProductSortFieldForPriceUnit, ta as getContractSaleDocumentRequestSchema, na as getContractSaleDocumentResponseSchema, Qe as getDefaultBookingParams, $e as getDefaultBookingParamsForStorefrontConfiguration, st as getLocalizedEntry, t as getLocalizedStringValue, ct as getLocalizedValue, Ft as getMinDayPriceMinor, Ht as getPricingUnitLabel, zn as getStorefrontAvailabilityIssue, Bn as getStorefrontAvailabilityStatus, xt as getStorefrontBaseDailyRateMinor, St as getStorefrontCheckoutProductId, Ct as getStorefrontProductSelectionDisplayName, wt as getStorefrontRepresentedVariantId, _e as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Vn as isStorefrontAvailabilityInsufficient, z as isoDateSchema, xi as itineraryDetailsLoader, ia as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, Q as paymentPoliciesSchema, et as pickBookingSearchParams, 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, Hn as publicAvailabilityDisplayModeSchema, ee as publicBookingEngineConfigurationSchema, te as publicCheckoutConfigurationSchema, ne as publicCheckoutDynamicOptionsSchema, tt as readBookingSearchParamsFromSessionStorage, nt as readBookingSearchParamsFromStorage, Gt as requestSchema, ue as resolveBookingDeliveryOption, rt as resolveBookingSearchParams, it as resolveBookingSearchParamsFromSessionStorage, ve as resolveOpeningHoursForDate, ye as resolveOpeningHoursPeriodForDate, At as resolveStorefrontCartItemProduct, Jt as resolveStorefrontMapsHref, Yt as resolveStorefrontPhoneContact, _n as resolveStorefrontWhatsAppContact, vn as resolveStorefrontWhatsAppHref, Kt as responseSchema, I as richTextJsonDocSchema, L as richTextSchema, R as richTextVersionSchema, B as shopConfigurationSchema, V as shopExtraTimeSlotRuleSchema, H as shopOpeningDayIndexSchema, U as shopOpeningDaySchema, W as shopOpeningHoursOverrideSchema, G as shopOpeningHoursPeriodSchema, K as shopOpeningSlotSchema, Gn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Kn as storefrontAvailabilityProductSchema, Un as storefrontAvailabilityRequestSchema, Wn as storefrontAvailabilityResponseSchema, qn as storefrontAvailabilityScheduleSchema, cr as storefrontButtonRadiusClassName, De as storefrontCheckoutModeSchema, Sn as storefrontCheckoutSubmitDeliveryRefinement, xn as storefrontCheckoutSubmitItemSchema, bn as storefrontCheckoutSubmitRequestBaseSchema, Cn as storefrontCheckoutSubmitRequestSchema, wn as storefrontCheckoutSubmitResponseSchema, Oe as storefrontConfigurationSchema, ke as storefrontContentSchema, yr as storefrontEn, Ae as storefrontFaqItemSchema, je as storefrontFaqSchema, br as storefrontFr, Me as storefrontFulfillmentModeSchema, Ne as storefrontHeroModeSchema, Zn as storefrontImageRequestSchema, Pe as storefrontInformationSchema, $t as storefrontItinerariesFeaturedRequestSchema, en as storefrontItinerariesFeaturedResponseSchema, tn as storefrontItinerariesListRequestSchema, nn as storefrontItinerariesListResponseSchema, rn as storefrontItineraryBoundsSchema, an as storefrontItineraryCoordinateSchema, on as storefrontItineraryDetailRequestSchema, sn as storefrontItineraryDetailResponseSchema, cn as storefrontItineraryDetailSchema, ln as storefrontItineraryDifficultySchema, un as storefrontItineraryLocalizedStringSchema, dn as storefrontItineraryMetricsSchema, fn as storefrontItineraryPreviewSchema, pn as storefrontItineraryStepSchema, mn as storefrontItinerarySummarySchema, hn as storefrontItineraryTripTypeSchema, Fe as storefrontLocalizedRichTextSchema, Ie as storefrontModalMessageSchema, Le as storefrontModulesSchema, En as storefrontProductsRequestSchema, Dn as storefrontProductsResponseSchema, On as storefrontPublicAccessoryProductSchema, Jn as storefrontPublicAvailabilityRecordSchema, kn as storefrontPublicBikeAvailabilityStatusSchema, An as storefrontPublicBikeProductSchema, jn as storefrontPublicProductDisplayModeSchema, Mn as storefrontPublicProductPriceSchema, Nn as storefrontPublicProductVariantAttributeSchema, Pn as storefrontPublicProductVariantIdentifierSchema, Fn as storefrontPublicProductVariantSchema, Re as storefrontReviewsModuleSchema, ze as storefrontRichTextSchema, ra as storefrontRoutes, Be as storefrontSettingsSchema, Ve as storefrontShopSchema, He as storefrontStatusSchema, nr as storefrontTimeSlotJourneySchema, tr as storefrontTimeSlotSchema, $n as storefrontTimeSlotsRequestSchema, er as storefrontTimeSlotsResponseSchema, Ue as storefrontWorkspaceSchema, q as timeOfDaySchema, Tt as toStorefrontAccessoryProducts, Et as toStorefrontBikeProducts, Dt as toStorefrontBookingProducts, Ot as toStorefrontBookingProductsCollections, kr as useBookingPeriod, Jr as useFormField, dr as useOptionalStorefront, fr as useStorefront, pr as useStorefrontBookingProducts, jt as useStorefrontCart, mr as useStorefrontConfig, hr as useStorefrontItineraries, gr as useStorefrontProducts, _r as useStorefrontWorkspaceLanguage, Cr as useWhatsAppFloatingButton, de as validateBookingDeliveryAddress, at as writeBookingSearchParamsToSessionStorage, ot as writeBookingSearchParamsToStorage };
@@ -1,6 +1,6 @@
1
1
  import { __exportAll as e } from "../chunks/_virtual/_rolldown/runtime-B5ovbsoX.js";
2
2
  import { resolveOpeningHoursForDate as t } from "../chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
3
- import "../chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js";
3
+ import "../chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
4
4
  //#region src/lib/booking-period.ts
5
5
  var n = /* @__PURE__ */ e({
6
6
  adjustBookingPeriod: () => M,
@@ -1,5 +1,5 @@
1
- import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-3lBblkB0.js";
2
- import "../chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js";
1
+ import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1KobIdr.js";
2
+ import "../chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
3
3
  import { getDefaultBookingPeriod as t, parseTimeToMinutes as n } from "./booking-period.js";
4
4
  import { format as r } from "date-fns";
5
5
  //#region src/lib/booking.ts
@@ -1 +1 @@
1
- {"version":3,"file":"checkoutSubmit.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutSubmit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAUvB,eAAO,MAAM,KAAK,2CAA2C,CAAA;AAE7D,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAI3E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqB5B,CAAA;AAEF,eAAO,MAAM,yBAAyB,GACpC,SAAS;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EACxD,KAAK,CAAC,CAAC,aAAa,SAWrB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBxB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;iBAazB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"checkoutSubmit.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutSubmit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAWvB,eAAO,MAAM,KAAK,2CAA2C,CAAA;AAE7D,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAI3E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqB5B,CAAA;AAEF,eAAO,MAAM,yBAAyB,GACpC,SAAS;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EACxD,KAAK,CAAC,CAAC,aAAa,SAWrB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBxB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;iBAazB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -1,60 +1,61 @@
1
- import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-CWP_qule.js";
2
- import { DEFAULT_BOOKING_DELIVERY_OPTION as t, bookingScheduleInputSchema as n } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-3lBblkB0.js";
3
- import "../chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js";
4
- import { storefrontFulfillmentModeSchema as r } from "../storefrontSchemas.js";
5
- import { z as i } from "zod";
1
+ import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-C_HehlKK.js";
2
+ import { bookingReferenceSchema as t } from "../chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js";
3
+ import { DEFAULT_BOOKING_DELIVERY_OPTION as n, bookingScheduleInputSchema as r } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1KobIdr.js";
4
+ import "../chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
5
+ import { storefrontFulfillmentModeSchema as i } from "../storefrontSchemas.js";
6
+ import { z as a } from "zod";
6
7
  //#region src/lib/checkoutSubmit.ts
7
- var a = "/api/public/storefront/checkout/submit", o = i.object({
8
+ var o = "/api/public/storefront/checkout/submit", s = a.object({
8
9
  kind: e,
9
- productId: i.string().trim().min(1),
10
- productVariantId: i.string().trim().min(1).optional(),
11
- quantity: i.number().int().positive()
12
- }), s = i.object({
13
- storeSlug: i.string().trim().min(1).toLowerCase(),
14
- checkoutSessionId: i.string().trim().min(1).max(256).optional(),
15
- replacesCheckoutSessionId: i.string().trim().min(1).max(256).optional(),
16
- schedule: n,
17
- fulfillment: r.default(t),
18
- startAddress: i.string().trim().max(500).optional(),
19
- endAddress: i.string().trim().max(500).optional(),
20
- couponCode: i.string().trim().max(64).optional().or(i.literal("")),
21
- couponAutoApplied: i.boolean().optional(),
22
- insuranceAccepted: i.boolean().optional(),
23
- customer: i.object({
24
- name: i.string().trim().min(2),
25
- email: i.string().trim().email(),
26
- phone: i.string().trim().min(6),
27
- notes: i.string().trim().max(2e3).optional().or(i.literal(""))
10
+ productId: a.string().trim().min(1),
11
+ productVariantId: a.string().trim().min(1).optional(),
12
+ quantity: a.number().int().positive()
13
+ }), c = a.object({
14
+ storeSlug: a.string().trim().min(1).toLowerCase(),
15
+ checkoutSessionId: a.string().trim().min(1).max(256).optional(),
16
+ replacesCheckoutSessionId: a.string().trim().min(1).max(256).optional(),
17
+ schedule: r,
18
+ fulfillment: i.default(n),
19
+ startAddress: a.string().trim().max(500).optional(),
20
+ endAddress: a.string().trim().max(500).optional(),
21
+ couponCode: a.string().trim().max(64).optional().or(a.literal("")),
22
+ couponAutoApplied: a.boolean().optional(),
23
+ insuranceAccepted: a.boolean().optional(),
24
+ customer: a.object({
25
+ name: a.string().trim().min(2),
26
+ email: a.string().trim().email(),
27
+ phone: a.string().trim().min(6),
28
+ notes: a.string().trim().max(2e3).optional().or(a.literal(""))
28
29
  }),
29
- items: i.array(o).min(1),
30
- nowIso: i.string().datetime({ offset: !0 }).optional()
31
- }), c = (e, t) => {
30
+ items: a.array(s).min(1),
31
+ nowIso: a.string().datetime({ offset: !0 }).optional()
32
+ }), l = (e, t) => {
32
33
  e.fulfillment === "delivery" && (e.startAddress?.trim() || t.addIssue({
33
- code: i.ZodIssueCode.custom,
34
+ code: a.ZodIssueCode.custom,
34
35
  message: "Delivery start address is required.",
35
36
  path: ["startAddress"]
36
37
  }));
37
- }, l = s.superRefine((e, t) => {
38
- c(e, t), e.replacesCheckoutSessionId && !e.checkoutSessionId && t.addIssue({
39
- code: i.ZodIssueCode.custom,
38
+ }, u = c.superRefine((e, t) => {
39
+ l(e, t), e.replacesCheckoutSessionId && !e.checkoutSessionId && t.addIssue({
40
+ code: a.ZodIssueCode.custom,
40
41
  message: "A replacement checkout session requires a new checkout session id.",
41
42
  path: ["checkoutSessionId"]
42
43
  }), e.checkoutSessionId && e.replacesCheckoutSessionId === e.checkoutSessionId && t.addIssue({
43
- code: i.ZodIssueCode.custom,
44
+ code: a.ZodIssueCode.custom,
44
45
  message: "The new and replaced checkout session ids must differ.",
45
46
  path: ["replacesCheckoutSessionId"]
46
47
  });
47
- }), u = i.object({
48
- success: i.boolean(),
49
- message: i.string().optional(),
50
- checkout: i.object({
51
- bookingExternalId: i.string().trim().min(1),
52
- saleId: i.string().trim().min(1),
53
- nextPath: i.string().trim().min(1),
54
- successPath: i.string().trim().min(1),
55
- requiresPayment: i.boolean(),
56
- checkoutSessionId: i.string().trim().min(1).max(256).optional()
48
+ }), d = a.object({
49
+ success: a.boolean(),
50
+ message: a.string().optional(),
51
+ checkout: a.object({
52
+ bookingExternalId: t,
53
+ saleId: a.string().trim().min(1),
54
+ nextPath: a.string().trim().min(1),
55
+ successPath: a.string().trim().min(1),
56
+ requiresPayment: a.boolean(),
57
+ checkoutSessionId: a.string().trim().min(1).max(256).optional()
57
58
  }).optional()
58
59
  });
59
60
  //#endregion
60
- export { a as ROUTE, s as requestBaseSchema, o as requestCheckoutItemSchema, c as requestDeliveryRefinement, l as requestSchema, u as responseSchema };
61
+ export { o as ROUTE, c as requestBaseSchema, s as requestCheckoutItemSchema, l as requestDeliveryRefinement, u as requestSchema, d as responseSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAqFA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAspBnC"}
1
+ {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAsFA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAorBnC"}