@loczer/storefront-sdk 0.197.0 → 0.199.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 (63) hide show
  1. package/dist/StorefrontContext.d.ts +483 -0
  2. package/dist/StorefrontContext.d.ts.map +1 -0
  3. package/dist/StorefrontContext.js +39 -0
  4. package/dist/StorefrontProvider.d.ts +6 -486
  5. package/dist/StorefrontProvider.d.ts.map +1 -1
  6. package/dist/StorefrontProvider.js +34 -67
  7. package/dist/chunks/pkg/ui/dist/{MorphingModalWizard-j1CgFGLe.js → MorphingModalWizard-DOH1GYVR.js} +1 -0
  8. package/dist/components/AboutSection/index.js +5 -5
  9. package/dist/components/BikeProductCard/index.d.ts +2 -1
  10. package/dist/components/BikeProductCard/index.d.ts.map +1 -1
  11. package/dist/components/BikeProductCard/index.js +28 -28
  12. package/dist/components/BookingBikeQuickAddCard/index.d.ts +19 -0
  13. package/dist/components/BookingBikeQuickAddCard/index.d.ts.map +1 -0
  14. package/dist/components/BookingBikeQuickAddCard/index.js +174 -0
  15. package/dist/components/BookingBikeVariantDialog/index.d.ts +5 -2
  16. package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -1
  17. package/dist/components/BookingBikeVariantDialog/index.js +85 -93
  18. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
  19. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +1 -1
  20. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
  21. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
  22. package/dist/components/ContactSection/index.js +107 -107
  23. package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -1
  24. package/dist/components/ContractSaleDocument/Invoice.js +117 -111
  25. package/dist/components/Header/index.js +4 -4
  26. package/dist/components/Layout/index.d.ts.map +1 -1
  27. package/dist/components/Layout/index.js +47 -40
  28. package/dist/components/PlatformFooter/index.js +1 -1
  29. package/dist/components/ProductPriceBadge/index.d.ts +2 -1
  30. package/dist/components/ProductPriceBadge/index.d.ts.map +1 -1
  31. package/dist/components/ProductPriceBadge/index.js +72 -70
  32. package/dist/components/TestimonialsSection/index.js +1 -1
  33. package/dist/i18n/en.d.ts +3 -0
  34. package/dist/i18n/en.d.ts.map +1 -1
  35. package/dist/i18n/en.js +3 -0
  36. package/dist/i18n/fr.d.ts +3 -0
  37. package/dist/i18n/fr.d.ts.map +1 -1
  38. package/dist/i18n/fr.js +3 -0
  39. package/dist/index.d.ts +19 -2
  40. package/dist/index.js +59 -58
  41. package/dist/lib/cartSummary.js +7 -7
  42. package/dist/lib/products.d.ts +6 -0
  43. package/dist/lib/products.d.ts.map +1 -1
  44. package/dist/lib/products.js +36 -32
  45. package/dist/lib/toast.d.ts +9 -0
  46. package/dist/lib/toast.d.ts.map +1 -0
  47. package/dist/lib/toast.js +13 -0
  48. package/dist/pages/BookingPage.d.ts.map +1 -1
  49. package/dist/pages/BookingPage.js +323 -396
  50. package/dist/pages/CheckoutPage.js +217 -217
  51. package/dist/pages/CheckoutPaymentPage.js +124 -124
  52. package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
  53. package/dist/pages/ContractSaleDocumentPage.js +83 -83
  54. package/dist/pages/ErrorPage.d.ts.map +1 -1
  55. package/dist/pages/ErrorPage.js +13 -13
  56. package/dist/pages/HomePage.js +6 -3
  57. package/dist/pages/NotFoundPage.js +1 -1
  58. package/dist/pages/ProductPage.d.ts.map +1 -1
  59. package/dist/pages/ProductPage.js +177 -165
  60. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +1 -1
  61. package/dist/storefront.css +1 -1
  62. package/dist/ui/button.js +3 -3
  63. package/package.json +3 -1
package/dist/index.js CHANGED
@@ -14,69 +14,70 @@ import { baseBookingItemSchema as fe, baseBookingSchema as pe, baseBookingStateS
14
14
  import "./chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
15
15
  import { STOREFRONT_HERO_MODES as he, storefrontCheckoutModeSchema as ge, storefrontConfigurationSchema as _e, storefrontContentSchema as ve, storefrontFaqItemSchema as ye, storefrontFaqSchema as be, storefrontFulfillmentModeSchema as xe, storefrontHeroModeSchema as Se, storefrontLocalizedRichTextSchema as Ce, storefrontModalMessageSchema as we, storefrontModulesSchema as Te, storefrontReviewsModuleSchema as Ee, storefrontRichTextSchema as De, storefrontSettingsSchema as Oe, storefrontShopSchema as ke, storefrontStatusSchema as Ae, storefrontWorkspaceSchema as je } from "./storefrontSchemas.js";
16
16
  import { BOOKING_SEARCH_KEYS as Me, TIME_OPTIONS as Ne, applyBookingParamsToSearch as Pe, createBookingPeriodConfigFromBookingEngineConfiguration as Fe, createBookingPeriodConfigFromShopConfiguration as Ie, createBookingPeriodConfigFromStorefrontConfiguration as Le, getBookingDurationLabel as Re, getBookingDurationMinutes as ze, getBookingParamsFromSearch as Be, getBookingSessionStorageKey as Ve, getDefaultBookingParams as He, getDefaultBookingParamsForStorefrontConfiguration as Ue, pickBookingSearchParams as We, readBookingSearchParamsFromSessionStorage as Ge, readBookingSearchParamsFromStorage as Ke, resolveBookingSearchParams as qe, resolveBookingSearchParamsFromSessionStorage as Je, writeBookingSearchParamsToSessionStorage as Ye, writeBookingSearchParamsToStorage as Xe } from "./lib/booking.js";
17
- import { CATALOG_PRODUCT_BASE_RATE_UNSET as Ze, buildStorefrontProductSlug as Qe, buildVariantStorefrontProductId as $e, compareCatalogProducts as et, compareStorefrontAccessoryProducts as tt, compareStorefrontBikeProducts as nt, findStorefrontProduct as rt, findStorefrontProductBySlug as it, getCatalogProductBaseRateMinor as at, getCatalogProductPaginationSort as ot, getCatalogProductSortFieldForPriceUnit as st, getStorefrontBaseDailyRateMinor as ct, getStorefrontCheckoutProductId as lt, getStorefrontRepresentedVariantId as ut, toStorefrontAccessoryProducts as dt, toStorefrontBikeProducts as ft, toStorefrontBookingProducts as pt, toStorefrontBookingProductsCollections as mt } from "./lib/products.js";
18
- import { StorefrontCartProvider as ht, resolveStorefrontCartItemProduct as gt, useStorefrontCart as _t } from "./lib/cart.js";
19
- import { cn as vt, formatPriceMinor as yt, getAvailabilityVariant as bt, getMinDayPriceMinor as xt } from "./lib/utils.js";
20
- import { buildDailyPriceRows as St, buildPriceTierLabels as Ct, calculateDailyPriceForQuantity as wt, formatStorefrontPriceMinor as Tt } from "./lib/pricing.js";
21
- import { getLocalizedEntry as Et, getLocalizedValue as Dt } from "./localization.js";
22
- import { buildStorefrontCartSummary as Ot } from "./lib/cartSummary.js";
23
- import { ROUTE as kt, requestSchema as At, responseSchema as jt } from "./lib/contactForm.js";
24
- import { formatStorefrontPhoneDisplay as Mt, resolveStorefrontMapsHref as Nt, resolveStorefrontPhoneContact as Pt } from "./lib/storefrontContact.js";
25
- import { buildWhatsAppHref as Ft, resolveStorefrontWhatsAppContact as It, resolveStorefrontWhatsAppHref as Lt } from "./lib/whatsapp.js";
26
- import { ROUTE as Rt, requestBaseSchema as zt, requestCheckoutItemSchema as Bt, requestDeliveryRefinement as Vt, requestSchema as Ht, responseSchema as Ut } from "./lib/checkoutSubmit.js";
27
- import { ROUTE as Wt, requestSchema as Gt, responseSchema as Kt, storefrontPublicAccessoryProductSchema as qt, storefrontPublicBikeAvailabilityStatusSchema as Jt, storefrontPublicBikeProductSchema as Yt, storefrontPublicProductDisplayModeSchema as Xt, storefrontPublicProductPriceSchema as Zt, storefrontPublicProductVariantAttributeSchema as Qt, storefrontPublicProductVariantIdentifierSchema as $t, storefrontPublicProductVariantSchema as en } from "./lib/storefrontProducts.js";
28
- import { ROUTE as tn, buildStorefrontAvailabilityKey as nn, doesStorefrontAvailabilityDisplaySoldOut as rn, getStorefrontAvailabilityIssue as an, getStorefrontAvailabilityStatus as on, isStorefrontAvailabilityInsufficient as sn, publicAvailabilityDisplayModeSchema as cn, requestSchema as ln, responseSchema as un, shouldBlockStorefrontUnavailableItem as dn, storefrontAvailabilityProductSchema as fn, storefrontAvailabilityScheduleSchema as pn, storefrontPublicAvailabilityRecordSchema as mn } from "./lib/storefrontAvailability.js";
29
- import { ROUTE as hn, buildStorefrontImageUrl as gn, requestSchema as _n } from "./lib/storefrontImage.js";
30
- import { ROUTE as vn, requestSchema as yn, responseSchema as bn, storefrontTimeSlotSchema as xn, timeSlotJourneySchema as Sn } from "./lib/storefrontTimeSlots.js";
31
- import { Footer as Cn } from "./components/Footer/index.js";
32
- import { Badge as wn, badgeVariants as Tn } from "./ui/badge.js";
33
- import { Button as En, buttonVariants as Dn } from "./ui/button.js";
34
- import { Header as On } from "./components/Header/index.js";
35
- import { storefront as kn } from "./i18n/en.js";
36
- import { storefront as An } from "./i18n/fr.js";
37
- import { PoweredByLoczerBadge as jn } from "./components/PoweredByLoczerBadge/index.js";
38
- import { PlatformFooter as Mn } from "./components/PlatformFooter/index.js";
39
- import { useWhatsAppFloatingButton as Nn } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
40
- import { WhatsAppFloatingButton as Pn } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
17
+ import { getLocalizedEntry as Ze, getLocalizedValue as Qe } from "./localization.js";
18
+ import { CATALOG_PRODUCT_BASE_RATE_UNSET as $e, buildStorefrontProductSlug as et, buildVariantStorefrontProductId as tt, compareCatalogProducts as nt, compareStorefrontAccessoryProducts as rt, compareStorefrontBikeProducts as it, findStorefrontProduct as at, findStorefrontProductBySlug as ot, getCatalogProductBaseRateMinor as st, getCatalogProductPaginationSort as ct, getCatalogProductSortFieldForPriceUnit as lt, getStorefrontBaseDailyRateMinor as ut, getStorefrontCheckoutProductId as dt, getStorefrontProductSelectionDisplayName as ft, getStorefrontRepresentedVariantId as pt, toStorefrontAccessoryProducts as mt, toStorefrontBikeProducts as ht, toStorefrontBookingProducts as gt, toStorefrontBookingProductsCollections as _t } from "./lib/products.js";
19
+ import { StorefrontCartProvider as vt, resolveStorefrontCartItemProduct as yt, useStorefrontCart as bt } from "./lib/cart.js";
20
+ import { cn as xt, formatPriceMinor as St, getAvailabilityVariant as Ct, getMinDayPriceMinor as wt } from "./lib/utils.js";
21
+ import { buildDailyPriceRows as Tt, buildPriceTierLabels as Et, calculateDailyPriceForQuantity as Dt, formatStorefrontPriceMinor as Ot } from "./lib/pricing.js";
22
+ import { buildStorefrontCartSummary as kt } from "./lib/cartSummary.js";
23
+ import { ROUTE as At, requestSchema as jt, responseSchema as Mt } from "./lib/contactForm.js";
24
+ import { formatStorefrontPhoneDisplay as Nt, resolveStorefrontMapsHref as Pt, resolveStorefrontPhoneContact as Ft } from "./lib/storefrontContact.js";
25
+ import { buildWhatsAppHref as It, resolveStorefrontWhatsAppContact as Lt, resolveStorefrontWhatsAppHref as Rt } from "./lib/whatsapp.js";
26
+ import { ROUTE as zt, requestBaseSchema as Bt, requestCheckoutItemSchema as Vt, requestDeliveryRefinement as Ht, requestSchema as Ut, responseSchema as Wt } from "./lib/checkoutSubmit.js";
27
+ import { ROUTE as Gt, requestSchema as Kt, responseSchema as qt, storefrontPublicAccessoryProductSchema as Jt, storefrontPublicBikeAvailabilityStatusSchema as Yt, storefrontPublicBikeProductSchema as Xt, storefrontPublicProductDisplayModeSchema as Zt, storefrontPublicProductPriceSchema as Qt, storefrontPublicProductVariantAttributeSchema as $t, storefrontPublicProductVariantIdentifierSchema as en, storefrontPublicProductVariantSchema as tn } from "./lib/storefrontProducts.js";
28
+ import { ROUTE as nn, buildStorefrontAvailabilityKey as rn, doesStorefrontAvailabilityDisplaySoldOut as an, getStorefrontAvailabilityIssue as on, getStorefrontAvailabilityStatus as sn, isStorefrontAvailabilityInsufficient as cn, publicAvailabilityDisplayModeSchema as ln, requestSchema as un, responseSchema as dn, shouldBlockStorefrontUnavailableItem as fn, storefrontAvailabilityProductSchema as pn, storefrontAvailabilityScheduleSchema as mn, storefrontPublicAvailabilityRecordSchema as hn } from "./lib/storefrontAvailability.js";
29
+ import { ROUTE as gn, buildStorefrontImageUrl as _n, requestSchema as vn } from "./lib/storefrontImage.js";
30
+ import { ROUTE as yn, requestSchema as bn, responseSchema as xn, storefrontTimeSlotSchema as Sn, timeSlotJourneySchema as Cn } from "./lib/storefrontTimeSlots.js";
31
+ import { Footer as wn } from "./components/Footer/index.js";
32
+ import { Badge as Tn, badgeVariants as En } from "./ui/badge.js";
33
+ import { Button as Dn, buttonVariants as On } from "./ui/button.js";
34
+ import { Header as kn } from "./components/Header/index.js";
35
+ import { storefront as An } from "./i18n/en.js";
36
+ import { storefront as jn } from "./i18n/fr.js";
37
+ import { PoweredByLoczerBadge as Mn } from "./components/PoweredByLoczerBadge/index.js";
38
+ import { PlatformFooter as Nn } from "./components/PlatformFooter/index.js";
39
+ import { useWhatsAppFloatingButton as Pn } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
40
+ import { WhatsAppFloatingButton as Fn } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
41
41
  import "./components/WhatsAppFloatingButton/index.js";
42
- import { Layout as Fn } from "./components/Layout/index.js";
43
- import { DelayedPlaceholder as In, DelayedReveal as Ln } from "./components/DelayedReveal/index.js";
44
- import { BookingPeriodProvider as Rn, useBookingPeriod as zn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
45
- import { Label as Bn } from "./ui/label.js";
46
- import { BookingStartDateField as Vn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
47
- import { BookingStartTimeField as Hn } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
48
- import { BookingEndDateField as Un } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
49
- import { BookingEndTimeField as Wn } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
50
- import { BookingTimeSlotsStatus as Gn } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
51
- import { BookingMobileDateDrawer as Kn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
52
- import { BookingPeriodSelector as qn } from "./components/BookingPeriodSelector/index.js";
53
- import { BookingFlowSteps as Jn } from "./components/BookingFlowSteps/index.js";
54
- import { Input as Yn } from "./ui/input.js";
55
- import { DeliveryAddressSelector as Xn } from "./components/DeliveryAddressSelector/index.js";
56
- import { loader as Zn, useOptionalStorefront as Qn, useStorefront as $n, useStorefrontBookingProducts as er, useStorefrontConfig as tr, useStorefrontProducts as nr, useStorefrontWorkspaceLanguage as rr } from "./StorefrontProvider.js";
57
- import { Form as ir, FormControl as ar, FormDescription as or, FormField as sr, FormItem as cr, FormLabel as lr, FormMessage as ur, useFormField as dr } from "./ui/form.js";
58
- import { Textarea as fr } from "./ui/textarea.js";
59
- import { ContactSection as pr } from "./components/ContactSection/index.js";
60
- import { TestimonialsSection as mr } from "./components/TestimonialsSection/index.js";
61
- import { AboutSection as hr } from "./components/AboutSection/index.js";
62
- import { StepSectionTitle as gr } from "./components/StepSectionTitle/index.js";
63
- import { Card as _r, CardAction as vr, CardContent as yr, CardDescription as br, CardFooter as xr, CardHeader as Sr, CardTitle as Cr } from "./ui/card.js";
64
- import { ProductWarningNotice as wr } from "./components/ProductWarningNotice/index.js";
65
- import { StorefrontCartPanel as Tr } from "./components/StorefrontCartPanel/index.js";
66
- import { ProductPriceBadge as Er } from "./components/ProductPriceBadge/index.js";
67
- import { ContractSaleDocument as Dr } from "./components/ContractSaleDocument/Invoice.js";
42
+ import { Layout as In } from "./components/Layout/index.js";
43
+ import { DelayedPlaceholder as Ln, DelayedReveal as Rn } from "./components/DelayedReveal/index.js";
44
+ import { BookingPeriodProvider as zn, useBookingPeriod as Bn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
45
+ import { Label as Vn } from "./ui/label.js";
46
+ import { BookingStartDateField as Hn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
47
+ import { BookingStartTimeField as Un } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
48
+ import { BookingEndDateField as Wn } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
49
+ import { BookingEndTimeField as Gn } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
50
+ import { BookingTimeSlotsStatus as Kn } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
51
+ import { BookingMobileDateDrawer as qn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
52
+ import { BookingPeriodSelector as Jn } from "./components/BookingPeriodSelector/index.js";
53
+ import { BookingFlowSteps as Yn } from "./components/BookingFlowSteps/index.js";
54
+ import { Input as Xn } from "./ui/input.js";
55
+ import { DeliveryAddressSelector as Zn } from "./components/DeliveryAddressSelector/index.js";
56
+ import { StorefrontContext as Qn, useOptionalStorefront as $n, useStorefront as er, useStorefrontBookingProducts as tr, useStorefrontConfig as nr, useStorefrontProducts as rr, useStorefrontWorkspaceLanguage as ir } from "./StorefrontContext.js";
57
+ import { Form as ar, FormControl as or, FormDescription as sr, FormField as cr, FormItem as lr, FormLabel as ur, FormMessage as dr, useFormField as fr } from "./ui/form.js";
58
+ import { Textarea as pr } from "./ui/textarea.js";
59
+ import { ContactSection as mr } from "./components/ContactSection/index.js";
60
+ import { TestimonialsSection as hr } from "./components/TestimonialsSection/index.js";
61
+ import { AboutSection as gr } from "./components/AboutSection/index.js";
62
+ import { StepSectionTitle as _r } from "./components/StepSectionTitle/index.js";
63
+ import { Card as vr, CardAction as yr, CardContent as br, CardDescription as xr, CardFooter as Sr, CardHeader as Cr, CardTitle as wr } from "./ui/card.js";
64
+ import { ProductWarningNotice as Tr } from "./components/ProductWarningNotice/index.js";
65
+ import { StorefrontCartPanel as Er } from "./components/StorefrontCartPanel/index.js";
66
+ import { ProductPriceBadge as Dr } from "./components/ProductPriceBadge/index.js";
67
+ import { ContractSaleDocument as Or } from "./components/ContractSaleDocument/Invoice.js";
68
68
  import "./components/ContractSaleDocument/index.js";
69
- import { RadioGroup as Or, RadioGroupItem as kr } from "./ui/radio-group.js";
69
+ import { RadioGroup as kr, RadioGroupItem as Ar } from "./ui/radio-group.js";
70
70
  import "./pages/HomePage.js";
71
71
  import "./pages/BookingPage.js";
72
72
  import "./pages/ProductPage.js";
73
73
  import "./pages/CheckoutPage.js";
74
74
  import "./pages/CheckoutSuccessPage.js";
75
75
  import "./pages/NotFoundPage.js";
76
- import { accessories as Ar } from "./data/accessories.js";
77
- import jr from "./data/bikes.js";
78
- import { contractSaleDocumentAcceptanceLevelSchema as Mr, contractSaleDocumentAcceptanceRecordSchema as Nr, contractSaleDocumentAcceptanceSchema as Pr, contractSaleDocumentAddressSchema as Fr, contractSaleDocumentAppendixKindSchema as Ir, contractSaleDocumentAppendixSchema as Lr, contractSaleDocumentContactSchema as Rr, contractSaleDocumentKindSchema as zr, contractSaleDocumentLanguageCodeSchema as Br, contractSaleDocumentLanguageSchema as Vr, contractSaleDocumentLineItemSchema as Hr, contractSaleDocumentRentalSchema as Ur, contractSaleDocumentSchema as Wr, contractSaleDocumentSignatureSchema as Gr } from "./lib/contractSaleDocument.js";
79
- import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Kr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as qr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Jr, acceptContractSaleDocumentRequestSchema as Yr, acceptContractSaleDocumentResponseSchema as Xr, contractSaleDocumentAcceptanceInputSchema as Zr, contractSaleDocumentAcceptanceRecordInputSchema as Qr, contractSaleDocumentApiAcceptanceRecordSchema as $r, contractSaleDocumentApiAcceptanceSchema as ei, contractSaleDocumentApiSchema as ti, contractSaleDocumentApiSignatureSchema as ni, contractSaleDocumentReferenceSchema as ri, contractSaleDocumentReferenceTypeSchema as ii, contractSaleDocumentSignatureInputSchema as ai, downloadContractSaleDocumentPdfRequestSchema as oi, getContractSaleDocumentRequestSchema as si, getContractSaleDocumentResponseSchema as ci } from "./lib/contractSaleDocumentApi.js";
80
- import li from "./routes.js";
81
- import { Select as ui, SelectContent as di, SelectGroup as fi, SelectIcon as pi, SelectItem as mi, SelectItemIndicator as hi, SelectItemText as gi, SelectLabel as _i, SelectScrollDownButton as vi, SelectScrollUpButton as yi, SelectSeparator as bi, SelectTrigger as xi, SelectValue as Si } from "./ui/select.js";
82
- export { Kr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, hr as AboutSection, Me as BOOKING_SEARCH_KEYS, wn as Badge, Un as BookingEndDateField, Wn as BookingEndTimeField, Jn as BookingFlowSteps, Kn as BookingMobileDateDrawer, Rn as BookingPeriodProvider, qn as BookingPeriodSelector, Vn as BookingStartDateField, Hn as BookingStartTimeField, Gn as BookingTimeSlotsStatus, En as Button, Ze as CATALOG_PRODUCT_BASE_RATE_UNSET, _r as Card, vr as CardAction, yr as CardContent, br as CardDescription, xr as CardFooter, Sr as CardHeader, Cr as CardTitle, pr as ContactSection, Dr as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, qr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, In as DelayedPlaceholder, Ln as DelayedReveal, Xn as DeliveryAddressSelector, Cn as Footer, ir as Form, ar as FormControl, or as FormDescription, sr as FormField, cr as FormItem, lr as FormLabel, ur as FormMessage, Jr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, On as Header, Yn as Input, Bn as Label, Fn as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, Mn as PlatformFooter, jn as PoweredByLoczerBadge, Er as ProductPriceBadge, wr as ProductWarningNotice, kt as ROUTE, Or as RadioGroup, kr as RadioGroupItem, tn as STOREFRONT_AVAILABILITY_ROUTE, Rt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, he as STOREFRONT_HERO_MODES, hn as STOREFRONT_IMAGE_ROUTE, Wt as STOREFRONT_PRODUCTS_ROUTE, vn as STOREFRONT_TIME_SLOTS_ROUTE, ui as Select, di as SelectContent, fi as SelectGroup, pi as SelectIcon, mi as SelectItem, hi as SelectItemIndicator, gi as SelectItemText, _i as SelectLabel, vi as SelectScrollDownButton, yi as SelectScrollUpButton, bi as SelectSeparator, xi as SelectTrigger, Si as SelectValue, gr as StepSectionTitle, Tr as StorefrontCartPanel, ht as StorefrontCartProvider, Ne as TIME_OPTIONS, mr as TestimonialsSection, fr as Textarea, Pn as WhatsAppFloatingButton, Yr as acceptContractSaleDocumentRequestSchema, Xr as acceptContractSaleDocumentResponseSchema, Ar as accessories, g as accessoryProductSchema, Pe as applyBookingParamsToSearch, Tn as badgeVariants, ue as baseAssetSchema, de as baseAssetStatusSchema, fe as baseBookingItemSchema, pe as baseBookingSchema, me as baseBookingStateSchema, _ as bikeProductSchema, jr as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, St as buildDailyPriceRows, Ct as buildPriceTierLabels, nn as buildStorefrontAvailabilityKey, Ot as buildStorefrontCartSummary, gn as buildStorefrontImageUrl, Qe as buildStorefrontProductSlug, $e as buildVariantStorefrontProductId, Ft as buildWhatsAppHref, Dn as buttonVariants, wt as calculateDailyPriceForQuantity, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, vt as cn, et as compareCatalogProducts, tt as compareStorefrontAccessoryProducts, nt as compareStorefrontBikeProducts, Zr as contractSaleDocumentAcceptanceInputSchema, Mr as contractSaleDocumentAcceptanceLevelSchema, Qr as contractSaleDocumentAcceptanceRecordInputSchema, Nr as contractSaleDocumentAcceptanceRecordSchema, Pr as contractSaleDocumentAcceptanceSchema, Fr as contractSaleDocumentAddressSchema, $r as contractSaleDocumentApiAcceptanceRecordSchema, ei as contractSaleDocumentApiAcceptanceSchema, ti as contractSaleDocumentApiSchema, ni as contractSaleDocumentApiSignatureSchema, Ir as contractSaleDocumentAppendixKindSchema, Lr as contractSaleDocumentAppendixSchema, Rr as contractSaleDocumentContactSchema, zr as contractSaleDocumentKindSchema, Br as contractSaleDocumentLanguageCodeSchema, Vr as contractSaleDocumentLanguageSchema, Hr as contractSaleDocumentLineItemSchema, ri as contractSaleDocumentReferenceSchema, ii as contractSaleDocumentReferenceTypeSchema, Ur as contractSaleDocumentRentalSchema, Wr as contractSaleDocumentSchema, ai as contractSaleDocumentSignatureInputSchema, Gr as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Fe as createBookingPeriodConfigFromBookingEngineConfiguration, Ie as createBookingPeriodConfigFromShopConfiguration, Le as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, rn as doesStorefrontAvailabilityDisplaySoldOut, oi as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, rt as findStorefrontProduct, it as findStorefrontProductBySlug, yt as formatPriceMinor, Mt as formatStorefrontPhoneDisplay, Tt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, bt as getAvailabilityVariant, Re as getBookingDurationLabel, ze as getBookingDurationMinutes, Be as getBookingParamsFromSearch, Ve as getBookingSessionStorageKey, at as getCatalogProductBaseRateMinor, ot as getCatalogProductPaginationSort, st as getCatalogProductSortFieldForPriceUnit, si as getContractSaleDocumentRequestSchema, ci as getContractSaleDocumentResponseSchema, He as getDefaultBookingParams, Ue as getDefaultBookingParamsForStorefrontConfiguration, Et as getLocalizedEntry, t as getLocalizedStringValue, Dt as getLocalizedValue, xt as getMinDayPriceMinor, an as getStorefrontAvailabilityIssue, on as getStorefrontAvailabilityStatus, ct as getStorefrontBaseDailyRateMinor, lt as getStorefrontCheckoutProductId, ut as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, sn as isStorefrontAvailabilityInsufficient, j as isoDateSchema, Zn as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, We as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, cn as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ge as readBookingSearchParamsFromSessionStorage, Ke as readBookingSearchParamsFromStorage, At as requestSchema, ne as resolveBookingDeliveryOption, qe as resolveBookingSearchParams, Je as resolveBookingSearchParamsFromSessionStorage, gt as resolveStorefrontCartItemProduct, Nt as resolveStorefrontMapsHref, Pt as resolveStorefrontPhoneContact, It as resolveStorefrontWhatsAppContact, Lt as resolveStorefrontWhatsAppHref, jt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, dn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, fn as storefrontAvailabilityProductSchema, ln as storefrontAvailabilityRequestSchema, un as storefrontAvailabilityResponseSchema, pn as storefrontAvailabilityScheduleSchema, ge as storefrontCheckoutModeSchema, Vt as storefrontCheckoutSubmitDeliveryRefinement, Bt as storefrontCheckoutSubmitItemSchema, zt as storefrontCheckoutSubmitRequestBaseSchema, Ht as storefrontCheckoutSubmitRequestSchema, Ut as storefrontCheckoutSubmitResponseSchema, _e as storefrontConfigurationSchema, ve as storefrontContentSchema, kn as storefrontEn, ye as storefrontFaqItemSchema, be as storefrontFaqSchema, An as storefrontFr, xe as storefrontFulfillmentModeSchema, Se as storefrontHeroModeSchema, _n as storefrontImageRequestSchema, Ce as storefrontLocalizedRichTextSchema, we as storefrontModalMessageSchema, Te as storefrontModulesSchema, Gt as storefrontProductsRequestSchema, Kt as storefrontProductsResponseSchema, qt as storefrontPublicAccessoryProductSchema, mn as storefrontPublicAvailabilityRecordSchema, Jt as storefrontPublicBikeAvailabilityStatusSchema, Yt as storefrontPublicBikeProductSchema, Xt as storefrontPublicProductDisplayModeSchema, Zt as storefrontPublicProductPriceSchema, Qt as storefrontPublicProductVariantAttributeSchema, $t as storefrontPublicProductVariantIdentifierSchema, en as storefrontPublicProductVariantSchema, Ee as storefrontReviewsModuleSchema, De as storefrontRichTextSchema, li as storefrontRoutes, Oe as storefrontSettingsSchema, ke as storefrontShopSchema, Ae as storefrontStatusSchema, Sn as storefrontTimeSlotJourneySchema, xn as storefrontTimeSlotSchema, yn as storefrontTimeSlotsRequestSchema, bn as storefrontTimeSlotsResponseSchema, je as storefrontWorkspaceSchema, z as timeOfDaySchema, dt as toStorefrontAccessoryProducts, ft as toStorefrontBikeProducts, pt as toStorefrontBookingProducts, mt as toStorefrontBookingProductsCollections, zn as useBookingPeriod, dr as useFormField, Qn as useOptionalStorefront, $n as useStorefront, er as useStorefrontBookingProducts, _t as useStorefrontCart, tr as useStorefrontConfig, nr as useStorefrontProducts, rr as useStorefrontWorkspaceLanguage, Nn as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Ye as writeBookingSearchParamsToSessionStorage, Xe as writeBookingSearchParamsToStorage };
76
+ import { accessories as jr } from "./data/accessories.js";
77
+ import Mr from "./data/bikes.js";
78
+ import { contractSaleDocumentAcceptanceLevelSchema as Nr, contractSaleDocumentAcceptanceRecordSchema as Pr, contractSaleDocumentAcceptanceSchema as Fr, contractSaleDocumentAddressSchema as Ir, contractSaleDocumentAppendixKindSchema as Lr, contractSaleDocumentAppendixSchema as Rr, contractSaleDocumentContactSchema as zr, contractSaleDocumentKindSchema as Br, contractSaleDocumentLanguageCodeSchema as Vr, contractSaleDocumentLanguageSchema as Hr, contractSaleDocumentLineItemSchema as Ur, contractSaleDocumentRentalSchema as Wr, contractSaleDocumentSchema as Gr, contractSaleDocumentSignatureSchema as Kr } from "./lib/contractSaleDocument.js";
79
+ import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as qr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Jr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Yr, acceptContractSaleDocumentRequestSchema as Xr, acceptContractSaleDocumentResponseSchema as Zr, contractSaleDocumentAcceptanceInputSchema as Qr, contractSaleDocumentAcceptanceRecordInputSchema as $r, contractSaleDocumentApiAcceptanceRecordSchema as ei, contractSaleDocumentApiAcceptanceSchema as ti, contractSaleDocumentApiSchema as ni, contractSaleDocumentApiSignatureSchema as ri, contractSaleDocumentReferenceSchema as ii, contractSaleDocumentReferenceTypeSchema as ai, contractSaleDocumentSignatureInputSchema as oi, downloadContractSaleDocumentPdfRequestSchema as si, getContractSaleDocumentRequestSchema as ci, getContractSaleDocumentResponseSchema as li } from "./lib/contractSaleDocumentApi.js";
80
+ import ui from "./routes.js";
81
+ import { loader as di } from "./StorefrontProvider.js";
82
+ import { Select as fi, SelectContent as pi, SelectGroup as mi, SelectIcon as hi, SelectItem as gi, SelectItemIndicator as _i, SelectItemText as vi, SelectLabel as yi, SelectScrollDownButton as bi, SelectScrollUpButton as xi, SelectSeparator as Si, SelectTrigger as Ci, SelectValue as wi } from "./ui/select.js";
83
+ export { qr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, gr as AboutSection, Me as BOOKING_SEARCH_KEYS, Tn as Badge, Wn as BookingEndDateField, Gn as BookingEndTimeField, Yn as BookingFlowSteps, qn as BookingMobileDateDrawer, zn as BookingPeriodProvider, Jn as BookingPeriodSelector, Hn as BookingStartDateField, Un as BookingStartTimeField, Kn as BookingTimeSlotsStatus, Dn as Button, $e as CATALOG_PRODUCT_BASE_RATE_UNSET, vr as Card, yr as CardAction, br as CardContent, xr as CardDescription, Sr as CardFooter, Cr as CardHeader, wr as CardTitle, mr as ContactSection, Or as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, Jr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, Ln as DelayedPlaceholder, Rn as DelayedReveal, Zn as DeliveryAddressSelector, wn as Footer, ar as Form, or as FormControl, sr as FormDescription, cr as FormField, lr as FormItem, ur as FormLabel, dr as FormMessage, Yr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, kn as Header, Xn as Input, Vn as Label, In as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, Nn as PlatformFooter, Mn as PoweredByLoczerBadge, Dr as ProductPriceBadge, Tr as ProductWarningNotice, At as ROUTE, kr as RadioGroup, Ar as RadioGroupItem, nn as STOREFRONT_AVAILABILITY_ROUTE, zt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, he as STOREFRONT_HERO_MODES, gn as STOREFRONT_IMAGE_ROUTE, Gt as STOREFRONT_PRODUCTS_ROUTE, yn as STOREFRONT_TIME_SLOTS_ROUTE, fi as Select, pi as SelectContent, mi as SelectGroup, hi as SelectIcon, gi as SelectItem, _i as SelectItemIndicator, vi as SelectItemText, yi as SelectLabel, bi as SelectScrollDownButton, xi as SelectScrollUpButton, Si as SelectSeparator, Ci as SelectTrigger, wi as SelectValue, _r as StepSectionTitle, Er as StorefrontCartPanel, vt as StorefrontCartProvider, Qn as StorefrontContext, Ne as TIME_OPTIONS, hr as TestimonialsSection, pr as Textarea, Fn as WhatsAppFloatingButton, Xr as acceptContractSaleDocumentRequestSchema, Zr as acceptContractSaleDocumentResponseSchema, jr as accessories, g as accessoryProductSchema, Pe as applyBookingParamsToSearch, En as badgeVariants, ue as baseAssetSchema, de as baseAssetStatusSchema, fe as baseBookingItemSchema, pe as baseBookingSchema, me as baseBookingStateSchema, _ as bikeProductSchema, Mr as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, Tt as buildDailyPriceRows, Et as buildPriceTierLabels, rn as buildStorefrontAvailabilityKey, kt as buildStorefrontCartSummary, _n as buildStorefrontImageUrl, et as buildStorefrontProductSlug, tt as buildVariantStorefrontProductId, It as buildWhatsAppHref, On as buttonVariants, Dt as calculateDailyPriceForQuantity, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, xt as cn, nt as compareCatalogProducts, rt as compareStorefrontAccessoryProducts, it as compareStorefrontBikeProducts, Qr as contractSaleDocumentAcceptanceInputSchema, Nr as contractSaleDocumentAcceptanceLevelSchema, $r as contractSaleDocumentAcceptanceRecordInputSchema, Pr as contractSaleDocumentAcceptanceRecordSchema, Fr as contractSaleDocumentAcceptanceSchema, Ir as contractSaleDocumentAddressSchema, ei as contractSaleDocumentApiAcceptanceRecordSchema, ti as contractSaleDocumentApiAcceptanceSchema, ni as contractSaleDocumentApiSchema, ri as contractSaleDocumentApiSignatureSchema, Lr as contractSaleDocumentAppendixKindSchema, Rr as contractSaleDocumentAppendixSchema, zr as contractSaleDocumentContactSchema, Br as contractSaleDocumentKindSchema, Vr as contractSaleDocumentLanguageCodeSchema, Hr as contractSaleDocumentLanguageSchema, Ur as contractSaleDocumentLineItemSchema, ii as contractSaleDocumentReferenceSchema, ai as contractSaleDocumentReferenceTypeSchema, Wr as contractSaleDocumentRentalSchema, Gr as contractSaleDocumentSchema, oi as contractSaleDocumentSignatureInputSchema, Kr as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Fe as createBookingPeriodConfigFromBookingEngineConfiguration, Ie as createBookingPeriodConfigFromShopConfiguration, Le as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, an as doesStorefrontAvailabilityDisplaySoldOut, si as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, at as findStorefrontProduct, ot as findStorefrontProductBySlug, St as formatPriceMinor, Nt as formatStorefrontPhoneDisplay, Ot as formatStorefrontPriceMinor, G as fulfillmentModeSchema, Ct as getAvailabilityVariant, Re as getBookingDurationLabel, ze as getBookingDurationMinutes, Be as getBookingParamsFromSearch, Ve as getBookingSessionStorageKey, st as getCatalogProductBaseRateMinor, ct as getCatalogProductPaginationSort, lt as getCatalogProductSortFieldForPriceUnit, ci as getContractSaleDocumentRequestSchema, li as getContractSaleDocumentResponseSchema, He as getDefaultBookingParams, Ue as getDefaultBookingParamsForStorefrontConfiguration, Ze as getLocalizedEntry, t as getLocalizedStringValue, Qe as getLocalizedValue, wt as getMinDayPriceMinor, on as getStorefrontAvailabilityIssue, sn as getStorefrontAvailabilityStatus, ut as getStorefrontBaseDailyRateMinor, dt as getStorefrontCheckoutProductId, ft as getStorefrontProductSelectionDisplayName, pt as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, cn as isStorefrontAvailabilityInsufficient, j as isoDateSchema, di as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, We as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, ln as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ge as readBookingSearchParamsFromSessionStorage, Ke as readBookingSearchParamsFromStorage, jt as requestSchema, ne as resolveBookingDeliveryOption, qe as resolveBookingSearchParams, Je as resolveBookingSearchParamsFromSessionStorage, yt as resolveStorefrontCartItemProduct, Pt as resolveStorefrontMapsHref, Ft as resolveStorefrontPhoneContact, Lt as resolveStorefrontWhatsAppContact, Rt as resolveStorefrontWhatsAppHref, Mt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, fn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, pn as storefrontAvailabilityProductSchema, un as storefrontAvailabilityRequestSchema, dn as storefrontAvailabilityResponseSchema, mn as storefrontAvailabilityScheduleSchema, ge as storefrontCheckoutModeSchema, Ht as storefrontCheckoutSubmitDeliveryRefinement, Vt as storefrontCheckoutSubmitItemSchema, Bt as storefrontCheckoutSubmitRequestBaseSchema, Ut as storefrontCheckoutSubmitRequestSchema, Wt as storefrontCheckoutSubmitResponseSchema, _e as storefrontConfigurationSchema, ve as storefrontContentSchema, An as storefrontEn, ye as storefrontFaqItemSchema, be as storefrontFaqSchema, jn as storefrontFr, xe as storefrontFulfillmentModeSchema, Se as storefrontHeroModeSchema, vn as storefrontImageRequestSchema, Ce as storefrontLocalizedRichTextSchema, we as storefrontModalMessageSchema, Te as storefrontModulesSchema, Kt as storefrontProductsRequestSchema, qt as storefrontProductsResponseSchema, Jt as storefrontPublicAccessoryProductSchema, hn as storefrontPublicAvailabilityRecordSchema, Yt as storefrontPublicBikeAvailabilityStatusSchema, Xt as storefrontPublicBikeProductSchema, Zt as storefrontPublicProductDisplayModeSchema, Qt as storefrontPublicProductPriceSchema, $t as storefrontPublicProductVariantAttributeSchema, en as storefrontPublicProductVariantIdentifierSchema, tn as storefrontPublicProductVariantSchema, Ee as storefrontReviewsModuleSchema, De as storefrontRichTextSchema, ui as storefrontRoutes, Oe as storefrontSettingsSchema, ke as storefrontShopSchema, Ae as storefrontStatusSchema, Cn as storefrontTimeSlotJourneySchema, Sn as storefrontTimeSlotSchema, bn as storefrontTimeSlotsRequestSchema, xn as storefrontTimeSlotsResponseSchema, je as storefrontWorkspaceSchema, z as timeOfDaySchema, mt as toStorefrontAccessoryProducts, ht as toStorefrontBikeProducts, gt as toStorefrontBookingProducts, _t as toStorefrontBookingProductsCollections, Bn as useBookingPeriod, fr as useFormField, $n as useOptionalStorefront, er as useStorefront, tr as useStorefrontBookingProducts, bt as useStorefrontCart, nr as useStorefrontConfig, rr as useStorefrontProducts, ir as useStorefrontWorkspaceLanguage, Pn as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Ye as writeBookingSearchParamsToSessionStorage, Xe as writeBookingSearchParamsToStorage };
@@ -1,19 +1,19 @@
1
1
  import { getProductVariantAttributeValue as e, getProductVariantDisplay as t } from "./productVariants.js";
2
- import { getStorefrontCheckoutProductId as n } from "./products.js";
3
- import { resolveStorefrontCartItemProduct as r } from "./cart.js";
4
- import { calculateDailyPriceForQuantity as i } from "./pricing.js";
5
- import { getLocalizedValue as a } from "../localization.js";
2
+ import { getLocalizedValue as n } from "../localization.js";
3
+ import { getStorefrontCheckoutProductId as r } from "./products.js";
4
+ import { resolveStorefrontCartItemProduct as i } from "./cart.js";
5
+ import { calculateDailyPriceForQuantity as a } from "./pricing.js";
6
6
  //#region src/lib/cartSummary.ts
7
7
  var o = (o) => {
8
8
  let s = typeof o.estimatedDays == "number" && Number.isFinite(o.estimatedDays) && o.estimatedDays > 0 ? Math.max(1, Math.floor(o.estimatedDays)) : void 0, c = o.items.map((c) => {
9
- let l = r(c, o.products);
9
+ let l = i(c, o.products);
10
10
  if (!l) return null;
11
11
  let u = c.productVariantId ? l.productVariants?.find((e) => e.id === c.productVariantId) : void 0;
12
12
  if (c.productVariantId && !u) return null;
13
- let d = u ? t(u) : void 0, f = l.prices ?? [], p = i(f, 1) ?? 0, m = a(l.name, o.language, o.fallbackLanguage), h = l.storefrontDisplayMode === "variants_as_products" && d?.label ? `${m} ${d.label}`.trim() : m, g = a(l.warning, o.language, o.fallbackLanguage).trim(), _ = u ? !!e(u, "size") : !1, v = typeof s == "number" ? i(f, s) ?? p * s : void 0, y = typeof v == "number" ? v * c.quantity : void 0;
13
+ let d = u ? t(u) : void 0, f = l.prices ?? [], p = a(f, 1) ?? 0, m = n(l.name, o.language, o.fallbackLanguage), h = l.storefrontDisplayMode === "variants_as_products" && d?.label ? `${m} ${d.label}`.trim() : m, g = n(l.warning, o.language, o.fallbackLanguage).trim(), _ = u ? !!e(u, "size") : !1, v = typeof s == "number" ? a(f, s) ?? p * s : void 0, y = typeof v == "number" ? v * c.quantity : void 0;
14
14
  return {
15
15
  ...c,
16
- checkoutProductId: n(l),
16
+ checkoutProductId: r(l),
17
17
  productName: h,
18
18
  ...g ? { productWarning: g } : {},
19
19
  productVariantLabel: d?.label,
@@ -7,6 +7,12 @@ export type AccessoryProduct = StorefrontPublicAccessoryProduct & {
7
7
  kind: "accessory";
8
8
  };
9
9
  export type StorefrontProduct = BikeProduct | AccessoryProduct;
10
+ export declare const getStorefrontProductSelectionDisplayName: ({ product, productVariantId, language, fallbackLanguage, }: {
11
+ product: StorefrontProduct;
12
+ productVariantId?: string;
13
+ language: string;
14
+ fallbackLanguage?: string;
15
+ }) => string;
10
16
  export declare const CATALOG_PRODUCT_BASE_RATE_UNSET = -1;
11
17
  export type CatalogProductSortPriceUnit = StorefrontPublicProductPrice["unit"];
12
18
  export type CatalogProductSortField = "kind" | "assetRelScore" | "baseHourlyRateMinor" | "baseHalfDayRateMinor" | "baseDailyRateMinor" | "baseWeeklyRateMinor" | "baseMonthlyRateMinor" | "externalId";
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/lib/products.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAE7B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAGtD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,2BAA2B,EAAE,MAA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,WAAW,EAK1F,CAAA;AAED,eAAO,MAAM,6BAA6B,GACxC,aAAa,gCAAgC,EAAE,KAC9C,gBAAgB,EAKlB,CAAA;AAED,eAAO,MAAM,qBAAqB,GAChC,IAAI,MAAM,EACV,UAAU,6BAA6B,KACtC,iBAAiB,GAAG,IAKtB,CAAA;AAED,eAAO,MAAM,2BAA2B,GACtC,MAAM,MAAM,EACZ,UAAU,6BAA6B,KACtC,iBAAiB,GAAG,IAKtB,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,SAAS,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,mBAAmB,CAAC,KAAG,MAC7D,CAAA;AAEjD,eAAO,MAAM,iCAAiC,GAC5C,SAAS,IAAI,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,KACvD,MAAM,GAAG,SAGX,CAAA"}
@@ -1,12 +1,16 @@
1
1
  import { getStorefrontProductVariantDisplay as e } from "./productVariants.js";
2
+ import { getLocalizedValue as t } from "../localization.js";
2
3
  //#region src/lib/products.ts
3
- var t = -1, n = {
4
+ var n = ({ product: n, productVariantId: r, language: i, fallbackLanguage: a }) => {
5
+ let o = t(n.name, i, a), s = r ? n.productVariants?.find((e) => e.id === r) : void 0, c = s ? e(s).label : "", l = n.storefrontDisplayMode === "variants_as_products" && n.representedVariantId === r;
6
+ return !c || l ? o : `${o} ${c}`.trim();
7
+ }, r = -1, i = {
4
8
  hour: "baseHourlyRateMinor",
5
9
  half_day: "baseHalfDayRateMinor",
6
10
  day: "baseDailyRateMinor",
7
11
  week: "baseWeeklyRateMinor",
8
12
  month: "baseMonthlyRateMinor"
9
- }, r = /[\u0300-\u036f]/g, i = /[^a-z0-9]+/g, a = /^-+|-+$/g, o = (e) => e.normalize("NFKD").replace(r, "").toLowerCase().replace(i, "-").replace(a, ""), s = (e) => e?.en?.value.trim() || (Object.values(e ?? {}).find((e) => e.value.trim().length > 0)?.value.trim() ?? ""), c = (e, t) => {
13
+ }, a = /[\u0300-\u036f]/g, o = /[^a-z0-9]+/g, s = /^-+|-+$/g, c = (e) => e.normalize("NFKD").replace(a, "").toLowerCase().replace(o, "-").replace(s, ""), l = (e) => e?.en?.value.trim() || (Object.values(e ?? {}).find((e) => e.value.trim().length > 0)?.value.trim() ?? ""), u = (e, t) => {
10
14
  let n = t.trim();
11
15
  return n ? Object.fromEntries(Object.entries(e).map(([e, t]) => {
12
16
  let r = t.value.trim();
@@ -15,31 +19,31 @@ var t = -1, n = {
15
19
  value: r ? `${r} ${n}`.trim() : t.value
16
20
  }];
17
21
  })) : e;
18
- }, l = ({ id: e, productShortCode: t, name: n }) => {
19
- let r = o(typeof t == "string" ? t.trim() : ""), i = o(s(n)), a = o(e);
22
+ }, d = ({ id: e, productShortCode: t, name: n }) => {
23
+ let r = c(typeof t == "string" ? t.trim() : ""), i = c(l(n)), a = c(e);
20
24
  return `product-${[r, i].filter((e) => e.length > 0).join("-") || a || "item"}`;
21
- }, u = (e, t) => `${e}__variant__${t}`, d = (t, n) => {
25
+ }, f = (e, t) => `${e}__variant__${t}`, p = (t, n) => {
22
26
  let r = t.checkoutProductId?.trim() || t.id, i = n.id.trim(), { label: a } = e(n);
23
27
  return {
24
28
  ...t,
25
- id: u(r, i),
29
+ id: f(r, i),
26
30
  checkoutProductId: r,
27
31
  representedVariantId: i,
28
- name: c(t.name, a),
32
+ name: u(t.name, a),
29
33
  productVariants: [n]
30
34
  };
31
- }, f = (e) => e.flatMap((e) => {
35
+ }, m = (e) => e.flatMap((e) => {
32
36
  if (e.storefrontDisplayMode !== "variants_as_products") return [e];
33
37
  let t = e.productVariants ?? [];
34
- return t.length === 0 ? [e] : t.map((t) => d(e, t));
35
- }), p = (e) => ({
36
- bikes: f(e.bikes),
37
- accessories: f(e.accessories)
38
- }), m = (e) => e === "e-bike" ? 0 : e === "bike" ? 1 : e === "accessory" ? 2 : 3, h = (e) => e.externalId?.trim() || e.id?.trim() || "";
39
- function g(e) {
40
- return n[e];
38
+ return t.length === 0 ? [e] : t.map((t) => p(e, t));
39
+ }), h = (e) => ({
40
+ bikes: m(e.bikes),
41
+ accessories: m(e.accessories)
42
+ }), g = (e) => e === "e-bike" ? 0 : e === "bike" ? 1 : e === "accessory" ? 2 : 3, _ = (e) => e.externalId?.trim() || e.id?.trim() || "";
43
+ function v(e) {
44
+ return i[e];
41
45
  }
42
- function _(e) {
46
+ function y(e) {
43
47
  return [
44
48
  {
45
49
  field: "kind",
@@ -50,7 +54,7 @@ function _(e) {
50
54
  order: "desc"
51
55
  },
52
56
  {
53
- field: g(e),
57
+ field: v(e),
54
58
  order: "desc"
55
59
  },
56
60
  {
@@ -59,23 +63,23 @@ function _(e) {
59
63
  }
60
64
  ];
61
65
  }
62
- function v(e, t = "day") {
66
+ function b(e, t = "day") {
63
67
  let n = e?.find((e) => e.unit === t && e.quantity === 1);
64
68
  return n ? n.value : -1;
65
69
  }
66
- function y(e) {
67
- return v(e, "day");
70
+ function x(e) {
71
+ return b(e, "day");
68
72
  }
69
- function b(e, t, n = {}) {
70
- let r = m(e.kind), i = m(t.kind);
73
+ function S(e, t, n = {}) {
74
+ let r = g(e.kind), i = g(t.kind);
71
75
  if (r !== i) return r - i;
72
76
  let a = (t.assetRelScore ?? 0) - (e.assetRelScore ?? 0);
73
77
  if (a !== 0) return a;
74
- let o = n.priceUnit ?? "day", s = v(t.prices, o) - v(e.prices, o);
75
- return s === 0 ? h(e).localeCompare(h(t)) : s;
78
+ let o = n.priceUnit ?? "day", s = b(t.prices, o) - b(e.prices, o);
79
+ return s === 0 ? _(e).localeCompare(_(t)) : s;
76
80
  }
77
- function x(e, t, n = {}) {
78
- return b({
81
+ function C(e, t, n = {}) {
82
+ return S({
79
83
  ...e,
80
84
  kind: e.kind === "e-bike" ? "e-bike" : "bike"
81
85
  }, {
@@ -83,8 +87,8 @@ function x(e, t, n = {}) {
83
87
  kind: t.kind === "e-bike" ? "e-bike" : "bike"
84
88
  }, n);
85
89
  }
86
- function S(e, t, n = {}) {
87
- return b({
90
+ function w(e, t, n = {}) {
91
+ return S({
88
92
  ...e,
89
93
  kind: "accessory"
90
94
  }, {
@@ -92,12 +96,12 @@ function S(e, t, n = {}) {
92
96
  kind: "accessory"
93
97
  }, n);
94
98
  }
95
- var C = (e) => e.map((e) => ({
99
+ var T = (e) => e.map((e) => ({
96
100
  ...e,
97
101
  kind: e.kind === "e-bike" ? "e-bike" : "bike"
98
- })), w = (e) => e.map((e) => ({
102
+ })), E = (e) => e.map((e) => ({
99
103
  ...e,
100
104
  kind: "accessory"
101
- })), T = (e, t) => t.bikes.find((t) => t.id === e) || (t.accessories.find((t) => t.id === e) ?? null), E = (e, t) => t.bikes.find((t) => t.slug === e) || (t.accessories.find((t) => t.slug === e) ?? null), D = (e) => e.checkoutProductId?.trim() || e.id, O = (e) => e.representedVariantId?.trim() || void 0;
105
+ })), D = (e, t) => t.bikes.find((t) => t.id === e) || (t.accessories.find((t) => t.id === e) ?? null), O = (e, t) => t.bikes.find((t) => t.slug === e) || (t.accessories.find((t) => t.slug === e) ?? null), k = (e) => e.checkoutProductId?.trim() || e.id, A = (e) => e.representedVariantId?.trim() || void 0;
102
106
  //#endregion
103
- export { t as CATALOG_PRODUCT_BASE_RATE_UNSET, l as buildStorefrontProductSlug, u as buildVariantStorefrontProductId, b as compareCatalogProducts, S as compareStorefrontAccessoryProducts, x as compareStorefrontBikeProducts, T as findStorefrontProduct, E as findStorefrontProductBySlug, v as getCatalogProductBaseRateMinor, _ as getCatalogProductPaginationSort, g as getCatalogProductSortFieldForPriceUnit, y as getStorefrontBaseDailyRateMinor, D as getStorefrontCheckoutProductId, O as getStorefrontRepresentedVariantId, w as toStorefrontAccessoryProducts, C as toStorefrontBikeProducts, f as toStorefrontBookingProducts, p as toStorefrontBookingProductsCollections };
107
+ export { r as CATALOG_PRODUCT_BASE_RATE_UNSET, d as buildStorefrontProductSlug, f as buildVariantStorefrontProductId, S as compareCatalogProducts, w as compareStorefrontAccessoryProducts, C as compareStorefrontBikeProducts, D as findStorefrontProduct, O as findStorefrontProductBySlug, b as getCatalogProductBaseRateMinor, y as getCatalogProductPaginationSort, v as getCatalogProductSortFieldForPriceUnit, x as getStorefrontBaseDailyRateMinor, k as getStorefrontCheckoutProductId, n as getStorefrontProductSelectionDisplayName, A as getStorefrontRepresentedVariantId, E as toStorefrontAccessoryProducts, T as toStorefrontBikeProducts, m as toStorefrontBookingProducts, h as toStorefrontBookingProductsCollections };
@@ -0,0 +1,9 @@
1
+ import { toast as sonnerToast, ExternalToast } from 'sonner';
2
+ export declare const STOREFRONT_TOASTER_ID = "loczer-storefront";
3
+ export declare const toast: {
4
+ dismiss: (id?: number | string) => string | number;
5
+ error: (message: Parameters<typeof sonnerToast.error>[0], options?: ExternalToast) => string | number;
6
+ loading: (message: Parameters<typeof sonnerToast.loading>[0], options?: ExternalToast) => string | number;
7
+ success: (message: Parameters<typeof sonnerToast.success>[0], options?: ExternalToast) => string | number;
8
+ };
9
+ //# sourceMappingURL=toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/lib/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAA;AAGjE,eAAO,MAAM,qBAAqB,sBAAsB,CAAA;AAOxD,eAAO,MAAM,KAAK;;qBAEC,UAAU,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,aAAa;uBAE9D,UAAU,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,aAAa;uBAElE,UAAU,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,aAAa;CAEtF,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { toast as e } from "sonner";
2
+ //#region src/lib/toast.ts
3
+ var t = "loczer-storefront", n = (e) => ({
4
+ ...e,
5
+ toasterId: t
6
+ }), r = {
7
+ dismiss: e.dismiss,
8
+ error: (t, r) => e.error(t, n(r)),
9
+ loading: (t, r) => e.loading(t, n(r)),
10
+ success: (t, r) => e.success(t, n(r))
11
+ };
12
+ //#endregion
13
+ export { t as STOREFRONT_TOASTER_ID, r as toast };
@@ -1 +1 @@
1
- {"version":3,"file":"BookingPage.d.ts","sourceRoot":"","sources":["../../src/pages/BookingPage.tsx"],"names":[],"mappings":"AA4QA,MAAM,CAAC,OAAO,UAAU,WAAW,4CAsoBlC"}
1
+ {"version":3,"file":"BookingPage.d.ts","sourceRoot":"","sources":["../../src/pages/BookingPage.tsx"],"names":[],"mappings":"AAsMA,MAAM,CAAC,OAAO,UAAU,WAAW,4CAunBlC"}