@loczer/storefront-sdk 0.208.0 → 0.209.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 (61) hide show
  1. package/dist/StorefrontContext.d.ts +89 -0
  2. package/dist/StorefrontContext.d.ts.map +1 -1
  3. package/dist/StorefrontContext.js +8 -1
  4. package/dist/StorefrontProvider.d.ts +84 -0
  5. package/dist/StorefrontProvider.d.ts.map +1 -1
  6. package/dist/StorefrontProvider.js +55 -41
  7. package/dist/chunks/pkg/ui/dist/Map/{MapContent-CDeWtwKa.js → MapContent-TzYCv8ji.js} +109 -108
  8. package/dist/chunks/pkg/ui/dist/Map/constants-dF2KdJZy.js +8 -0
  9. package/dist/chunks/pkg/ui/dist/{Map-Cs7wgtH9.js → Map-ZM-ZOU9P.js} +1 -1
  10. package/dist/components/BookingBikeVariantDialog/index.js +15 -15
  11. package/dist/components/ContactSection/index.js +9 -9
  12. package/dist/components/Header/index.d.ts.map +1 -1
  13. package/dist/components/Header/index.js +72 -66
  14. package/dist/components/Itineraries/ItinerariesSection.d.ts +2 -0
  15. package/dist/components/Itineraries/ItinerariesSection.d.ts.map +1 -0
  16. package/dist/components/Itineraries/ItinerariesSection.js +81 -0
  17. package/dist/components/Itineraries/ItineraryListItem.d.ts +9 -0
  18. package/dist/components/Itineraries/ItineraryListItem.d.ts.map +1 -0
  19. package/dist/components/Itineraries/ItineraryListItem.js +100 -0
  20. package/dist/components/Itineraries/ItineraryRouteMap.d.ts +10 -0
  21. package/dist/components/Itineraries/ItineraryRouteMap.d.ts.map +1 -0
  22. package/dist/components/Itineraries/ItineraryRouteMap.js +67 -0
  23. package/dist/components/Itineraries/index.d.ts +4 -0
  24. package/dist/components/Itineraries/index.d.ts.map +1 -0
  25. package/dist/components/Itineraries/index.js +4 -0
  26. package/dist/components/Map/index.d.ts +12 -0
  27. package/dist/components/Map/index.d.ts.map +1 -1
  28. package/dist/components/Map/index.js +1 -1
  29. package/dist/i18n/en.d.ts +31 -0
  30. package/dist/i18n/en.d.ts.map +1 -1
  31. package/dist/i18n/en.js +31 -0
  32. package/dist/i18n/fr.d.ts +31 -0
  33. package/dist/i18n/fr.d.ts.map +1 -1
  34. package/dist/i18n/fr.js +31 -0
  35. package/dist/index.d.ts +763 -0
  36. package/dist/index.js +58 -51
  37. package/dist/lib/itineraryPresentation.d.ts +14 -0
  38. package/dist/lib/itineraryPresentation.d.ts.map +1 -0
  39. package/dist/lib/itineraryPresentation.js +26 -0
  40. package/dist/lib/storefrontItineraries.d.ts +418 -0
  41. package/dist/lib/storefrontItineraries.d.ts.map +1 -0
  42. package/dist/lib/storefrontItineraries.js +81 -0
  43. package/dist/pages/BookingPage.js +8 -8
  44. package/dist/pages/CheckoutPage.js +4 -4
  45. package/dist/pages/HomePage.d.ts.map +1 -1
  46. package/dist/pages/HomePage.js +111 -108
  47. package/dist/pages/ItinerariesPage.d.ts +2 -0
  48. package/dist/pages/ItinerariesPage.d.ts.map +1 -0
  49. package/dist/pages/ItinerariesPage.js +76 -0
  50. package/dist/pages/ItineraryDetailsPage.d.ts +66 -0
  51. package/dist/pages/ItineraryDetailsPage.d.ts.map +1 -0
  52. package/dist/pages/ItineraryDetailsPage.js +223 -0
  53. package/dist/pages/ProductPage.js +6 -6
  54. package/dist/pages/itineraries/ElevationProfile.d.ts +5 -0
  55. package/dist/pages/itineraries/ElevationProfile.d.ts.map +1 -0
  56. package/dist/pages/itineraries/ElevationProfile.js +59 -0
  57. package/dist/routes.d.ts.map +1 -1
  58. package/dist/routes.js +18 -10
  59. package/dist/storefront.css +1 -1
  60. package/package.json +1 -1
  61. package/dist/chunks/pkg/ui/dist/Map/constants-BNmiJXfg.js +0 -4
package/dist/index.js CHANGED
@@ -22,62 +22,69 @@ import { buildDailyPriceRows as Et, buildPriceTierLabels as Dt, calculateDailyPr
22
22
  import { buildStorefrontCartSummary as At } from "./lib/cartSummary.js";
23
23
  import { ROUTE as jt, requestSchema as Mt, responseSchema as Nt } from "./lib/contactForm.js";
24
24
  import { formatStorefrontPhoneDisplay as Pt, resolveStorefrontMapsHref as Ft, resolveStorefrontPhoneContact as It } from "./lib/storefrontContact.js";
25
- import { buildWhatsAppHref as Lt, resolveStorefrontWhatsAppContact as Rt, resolveStorefrontWhatsAppHref as zt } from "./lib/whatsapp.js";
26
- import { ROUTE as Bt, requestBaseSchema as Vt, requestCheckoutItemSchema as Ht, requestDeliveryRefinement as Ut, requestSchema as Wt, responseSchema as Gt } from "./lib/checkoutSubmit.js";
27
- import { ROUTE as Kt, requestSchema as qt, responseSchema as Jt, storefrontPublicAccessoryProductSchema as Yt, storefrontPublicBikeAvailabilityStatusSchema as Xt, storefrontPublicBikeProductSchema as Zt, storefrontPublicProductDisplayModeSchema as Qt, storefrontPublicProductPriceSchema as $t, storefrontPublicProductVariantAttributeSchema as en, storefrontPublicProductVariantIdentifierSchema as tn, storefrontPublicProductVariantSchema as nn } from "./lib/storefrontProducts.js";
28
- import { ROUTE as rn, buildStorefrontAvailabilityKey as an, doesStorefrontAvailabilityDisplaySoldOut as on, getStorefrontAvailabilityIssue as sn, getStorefrontAvailabilityStatus as cn, isStorefrontAvailabilityInsufficient as ln, publicAvailabilityDisplayModeSchema as un, requestSchema as dn, responseSchema as fn, shouldBlockStorefrontUnavailableItem as pn, storefrontAvailabilityProductSchema as mn, storefrontAvailabilityScheduleSchema as hn, storefrontPublicAvailabilityRecordSchema as gn } from "./lib/storefrontAvailability.js";
29
- import { ROUTE as _n, buildStorefrontImageUrl as vn, requestSchema as yn } from "./lib/storefrontImage.js";
30
- import { ROUTE as bn, requestSchema as xn, responseSchema as Sn, storefrontTimeSlotSchema as Cn, timeSlotJourneySchema as wn } from "./lib/storefrontTimeSlots.js";
31
- import { Footer as Tn } from "./components/Footer/index.js";
32
- import { Badge as En, badgeVariants as Dn } from "./ui/badge.js";
33
- import { Button as On, buttonVariants as kn, storefrontButtonRadiusClassName as An } from "./ui/button.js";
34
- import { Header as jn } from "./components/Header/index.js";
35
- import { storefront as Mn } from "./i18n/en.js";
36
- import { storefront as Nn } from "./i18n/fr.js";
37
- import { PoweredByLoczerBadge as Pn } from "./components/PoweredByLoczerBadge/index.js";
38
- import { PlatformFooter as Fn } from "./components/PlatformFooter/index.js";
39
- import { useWhatsAppFloatingButton as In } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
40
- import { WhatsAppFloatingButton as Ln } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
25
+ import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as Lt, STOREFRONT_ITINERARIES_LIST_ROUTE as Rt, STOREFRONT_ITINERARY_DETAIL_ROUTE as zt, storefrontItinerariesFeaturedRequestSchema as Bt, storefrontItinerariesFeaturedResponseSchema as Vt, storefrontItinerariesListRequestSchema as Ht, storefrontItinerariesListResponseSchema as Ut, storefrontItineraryBoundsSchema as Wt, storefrontItineraryCoordinateSchema as Gt, storefrontItineraryDetailRequestSchema as Kt, storefrontItineraryDetailResponseSchema as qt, storefrontItineraryDetailSchema as Jt, storefrontItineraryDifficultySchema as Yt, storefrontItineraryLocalizedStringSchema as Xt, storefrontItineraryMetricsSchema as Zt, storefrontItineraryPreviewSchema as Qt, storefrontItineraryStepSchema as $t, storefrontItinerarySummarySchema as en, storefrontItineraryTripTypeSchema as tn } from "./lib/storefrontItineraries.js";
26
+ import { buildWhatsAppHref as nn, resolveStorefrontWhatsAppContact as rn, resolveStorefrontWhatsAppHref as an } from "./lib/whatsapp.js";
27
+ import { ROUTE as on, requestBaseSchema as sn, requestCheckoutItemSchema as cn, requestDeliveryRefinement as ln, requestSchema as un, responseSchema as dn } from "./lib/checkoutSubmit.js";
28
+ import { ROUTE as fn, requestSchema as pn, responseSchema as mn, storefrontPublicAccessoryProductSchema as hn, storefrontPublicBikeAvailabilityStatusSchema as gn, storefrontPublicBikeProductSchema as _n, storefrontPublicProductDisplayModeSchema as vn, storefrontPublicProductPriceSchema as yn, storefrontPublicProductVariantAttributeSchema as bn, storefrontPublicProductVariantIdentifierSchema as xn, storefrontPublicProductVariantSchema as Sn } from "./lib/storefrontProducts.js";
29
+ import { ROUTE as Cn, buildStorefrontAvailabilityKey as wn, doesStorefrontAvailabilityDisplaySoldOut as Tn, getStorefrontAvailabilityIssue as En, getStorefrontAvailabilityStatus as Dn, isStorefrontAvailabilityInsufficient as On, publicAvailabilityDisplayModeSchema as kn, requestSchema as An, responseSchema as jn, shouldBlockStorefrontUnavailableItem as Mn, storefrontAvailabilityProductSchema as Nn, storefrontAvailabilityScheduleSchema as Pn, storefrontPublicAvailabilityRecordSchema as Fn } from "./lib/storefrontAvailability.js";
30
+ import { ROUTE as In, buildStorefrontImageUrl as Ln, requestSchema as Rn } from "./lib/storefrontImage.js";
31
+ import { ROUTE as zn, requestSchema as Bn, responseSchema as Vn, storefrontTimeSlotSchema as Hn, timeSlotJourneySchema as Un } from "./lib/storefrontTimeSlots.js";
32
+ import { Footer as Wn } from "./components/Footer/index.js";
33
+ import { Badge as Gn, badgeVariants as Kn } from "./ui/badge.js";
34
+ import { Button as qn, buttonVariants as Jn, storefrontButtonRadiusClassName as Yn } from "./ui/button.js";
35
+ import { StorefrontContext as Xn, useOptionalStorefront as Zn, useStorefront as Qn, useStorefrontBookingProducts as $n, useStorefrontConfig as er, useStorefrontItineraries as tr, useStorefrontProducts as nr, useStorefrontWorkspaceLanguage as rr } from "./StorefrontContext.js";
36
+ import { Header as ir } from "./components/Header/index.js";
37
+ import { storefront as ar } from "./i18n/en.js";
38
+ import { storefront as or } from "./i18n/fr.js";
39
+ import { PoweredByLoczerBadge as sr } from "./components/PoweredByLoczerBadge/index.js";
40
+ import { PlatformFooter as cr } from "./components/PlatformFooter/index.js";
41
+ import { useWhatsAppFloatingButton as lr } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
42
+ import { WhatsAppFloatingButton as ur } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
41
43
  import "./components/WhatsAppFloatingButton/index.js";
42
- import { Layout as Rn } from "./components/Layout/index.js";
43
- import { DelayedPlaceholder as zn, DelayedReveal as Bn } from "./components/DelayedReveal/index.js";
44
- import { BookingPeriodProvider as Vn, useBookingPeriod as Hn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
45
- import { Label as Un } from "./ui/label.js";
46
- import { BookingStartDateField as Wn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
47
- import { BookingStartTimeField as Gn } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
48
- import { BookingEndDateField as Kn } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
49
- import { BookingEndTimeField as qn } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
50
- import { BookingTimeSlotsStatus as Jn } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
51
- import { BookingMobileDateDrawer as Yn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
52
- import { BookingPeriodSelector as Xn } from "./components/BookingPeriodSelector/index.js";
53
- import { BookingFlowSteps as Zn } from "./components/BookingFlowSteps/index.js";
54
- import { Input as Qn } from "./ui/input.js";
55
- import { DeliveryAddressSelector as $n } from "./components/DeliveryAddressSelector/index.js";
56
- import { StorefrontContext as er, useOptionalStorefront as tr, useStorefront as nr, useStorefrontBookingProducts as rr, useStorefrontConfig as ir, useStorefrontProducts as ar, useStorefrontWorkspaceLanguage as or } from "./StorefrontContext.js";
57
- import { Form as sr, FormControl as cr, FormDescription as lr, FormField as ur, FormItem as dr, FormLabel as fr, FormMessage as pr, useFormField as mr } from "./ui/form.js";
58
- import { Textarea as hr } from "./ui/textarea.js";
59
- import { ContactSection as gr } from "./components/ContactSection/index.js";
60
- import { TestimonialsSection as _r } from "./components/TestimonialsSection/index.js";
61
- import { AboutSection as vr } from "./components/AboutSection/index.js";
62
- import { StepSectionTitle as yr } from "./components/StepSectionTitle/index.js";
63
- import { Card as br, CardAction as xr, CardContent as Sr, CardDescription as Cr, CardFooter as wr, CardHeader as Tr, CardTitle as Er } from "./ui/card.js";
64
- import { ProductWarningNotice as Dr } from "./components/ProductWarningNotice/index.js";
65
- import { StorefrontCartPanel as Or } from "./components/StorefrontCartPanel/index.js";
66
- import { ProductPriceBadge as kr } from "./components/ProductPriceBadge/index.js";
67
- import { ContractSaleDocument as Ar } from "./components/ContractSaleDocument/Invoice.js";
44
+ import { Layout as dr } from "./components/Layout/index.js";
45
+ import { DelayedPlaceholder as fr, DelayedReveal as pr } from "./components/DelayedReveal/index.js";
46
+ import { BookingPeriodProvider as mr, useBookingPeriod as hr } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
47
+ import { Label as gr } from "./ui/label.js";
48
+ import { BookingStartDateField as _r } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
49
+ import { BookingStartTimeField as vr } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
50
+ import { BookingEndDateField as yr } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
51
+ import { BookingEndTimeField as br } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
52
+ import { BookingTimeSlotsStatus as xr } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
53
+ import { BookingMobileDateDrawer as Sr } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
54
+ import { BookingPeriodSelector as Cr } from "./components/BookingPeriodSelector/index.js";
55
+ import { BookingFlowSteps as wr } from "./components/BookingFlowSteps/index.js";
56
+ import { Input as Tr } from "./ui/input.js";
57
+ import { DeliveryAddressSelector as Er } from "./components/DeliveryAddressSelector/index.js";
58
+ import { Form as Dr, FormControl as Or, FormDescription as kr, FormField as Ar, FormItem as jr, FormLabel as Mr, FormMessage as Nr, useFormField as Pr } from "./ui/form.js";
59
+ import { Textarea as Fr } from "./ui/textarea.js";
60
+ import { ContactSection as Ir } from "./components/ContactSection/index.js";
61
+ import { TestimonialsSection as Lr } from "./components/TestimonialsSection/index.js";
62
+ import { AboutSection as Rr } from "./components/AboutSection/index.js";
63
+ import { ItineraryListItem as zr } from "./components/Itineraries/ItineraryListItem.js";
64
+ import { ItineraryRouteMap as Br } from "./components/Itineraries/ItineraryRouteMap.js";
65
+ import { ItinerariesSection as Vr } from "./components/Itineraries/ItinerariesSection.js";
66
+ import "./components/Itineraries/index.js";
67
+ import { StepSectionTitle as Hr } from "./components/StepSectionTitle/index.js";
68
+ import { Card as Ur, CardAction as Wr, CardContent as Gr, CardDescription as Kr, CardFooter as qr, CardHeader as Jr, CardTitle as Yr } from "./ui/card.js";
69
+ import { ProductWarningNotice as Xr } from "./components/ProductWarningNotice/index.js";
70
+ import { StorefrontCartPanel as Zr } from "./components/StorefrontCartPanel/index.js";
71
+ import { ProductPriceBadge as Qr } from "./components/ProductPriceBadge/index.js";
72
+ import { ContractSaleDocument as $r } from "./components/ContractSaleDocument/Invoice.js";
68
73
  import "./components/ContractSaleDocument/index.js";
69
- import { RadioGroup as jr, RadioGroupItem as Mr } from "./ui/radio-group.js";
74
+ import { RadioGroup as ei, RadioGroupItem as ti } from "./ui/radio-group.js";
70
75
  import "./pages/HomePage.js";
71
76
  import "./pages/BookingPage.js";
72
77
  import "./pages/ProductPage.js";
78
+ import ni from "./pages/ItinerariesPage.js";
79
+ import ri, { loader as ii } from "./pages/ItineraryDetailsPage.js";
73
80
  import "./pages/CheckoutPage.js";
74
81
  import "./pages/CheckoutSuccessPage.js";
75
82
  import "./pages/NotFoundPage.js";
76
- import { accessories as Nr } from "./data/accessories.js";
77
- import Pr from "./data/bikes.js";
78
- import { contractSaleDocumentAcceptanceLevelSchema as Fr, contractSaleDocumentAcceptanceRecordSchema as Ir, contractSaleDocumentAcceptanceSchema as Lr, contractSaleDocumentAddressSchema as Rr, contractSaleDocumentAppendixKindSchema as zr, contractSaleDocumentAppendixSchema as Br, contractSaleDocumentContactSchema as Vr, contractSaleDocumentKindSchema as Hr, contractSaleDocumentLanguageCodeSchema as Ur, contractSaleDocumentLanguageSchema as Wr, contractSaleDocumentLineItemSchema as Gr, contractSaleDocumentRentalSchema as Kr, contractSaleDocumentSchema as qr, contractSaleDocumentSignatureSchema as Jr } from "./lib/contractSaleDocument.js";
79
- import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Yr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Xr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Zr, acceptContractSaleDocumentRequestSchema as Qr, acceptContractSaleDocumentResponseSchema as $r, contractSaleDocumentAcceptanceInputSchema as ei, contractSaleDocumentAcceptanceRecordInputSchema as ti, contractSaleDocumentApiAcceptanceRecordSchema as ni, contractSaleDocumentApiAcceptanceSchema as ri, contractSaleDocumentApiSchema as ii, contractSaleDocumentApiSignatureSchema as ai, contractSaleDocumentReferenceSchema as oi, contractSaleDocumentReferenceTypeSchema as si, contractSaleDocumentSignatureInputSchema as ci, downloadContractSaleDocumentPdfRequestSchema as li, getContractSaleDocumentRequestSchema as ui, getContractSaleDocumentResponseSchema as di } from "./lib/contractSaleDocumentApi.js";
80
- import fi from "./routes.js";
81
- import { loader as pi } from "./StorefrontProvider.js";
82
- import { Select as mi, SelectContent as hi, SelectGroup as gi, SelectIcon as _i, SelectItem as vi, SelectItemIndicator as yi, SelectItemText as bi, SelectLabel as xi, SelectScrollDownButton as Si, SelectScrollUpButton as Ci, SelectSeparator as wi, SelectTrigger as Ti, SelectValue as Ei } from "./ui/select.js";
83
- export { Yr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, vr as AboutSection, Ne as BOOKING_SEARCH_KEYS, En as Badge, Kn as BookingEndDateField, qn as BookingEndTimeField, Zn as BookingFlowSteps, Yn as BookingMobileDateDrawer, Vn as BookingPeriodProvider, Xn as BookingPeriodSelector, Wn as BookingStartDateField, Gn as BookingStartTimeField, Jn as BookingTimeSlotsStatus, On as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, br as Card, xr as CardAction, Sr as CardContent, Cr as CardDescription, wr as CardFooter, Tr as CardHeader, Er as CardTitle, gr as ContactSection, Ar as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, Xr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, zn as DelayedPlaceholder, Bn as DelayedReveal, $n as DeliveryAddressSelector, Tn as Footer, sr as Form, cr as FormControl, lr as FormDescription, ur as FormField, dr as FormItem, fr as FormLabel, pr as FormMessage, Zr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, jn as Header, Qn as Input, Un as Label, Rn as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, Fn as PlatformFooter, Pn as PoweredByLoczerBadge, kr as ProductPriceBadge, Dr as ProductWarningNotice, jt as ROUTE, jr as RadioGroup, Mr as RadioGroupItem, rn as STOREFRONT_AVAILABILITY_ROUTE, Bt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ge as STOREFRONT_HERO_MODES, _n as STOREFRONT_IMAGE_ROUTE, Kt as STOREFRONT_PRODUCTS_ROUTE, bn as STOREFRONT_TIME_SLOTS_ROUTE, mi as Select, hi as SelectContent, gi as SelectGroup, _i as SelectIcon, vi as SelectItem, yi as SelectItemIndicator, bi as SelectItemText, xi as SelectLabel, Si as SelectScrollDownButton, Ci as SelectScrollUpButton, wi as SelectSeparator, Ti as SelectTrigger, Ei as SelectValue, yr as StepSectionTitle, Or as StorefrontCartPanel, yt as StorefrontCartProvider, er as StorefrontContext, Pe as TIME_OPTIONS, _r as TestimonialsSection, hr as Textarea, Ln as WhatsAppFloatingButton, Qr as acceptContractSaleDocumentRequestSchema, $r as acceptContractSaleDocumentResponseSchema, Nr as accessories, g as accessoryProductSchema, Fe as applyBookingParamsToSearch, ue as assetIdSchema, Dn as badgeVariants, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, Pr as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, Et as buildDailyPriceRows, Dt as buildPriceTierLabels, an as buildStorefrontAvailabilityKey, At as buildStorefrontCartSummary, vn as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, Lt as buildWhatsAppHref, kn as buttonVariants, Ot as calculateDailyPriceForQuantity, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, St as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, ei as contractSaleDocumentAcceptanceInputSchema, Fr as contractSaleDocumentAcceptanceLevelSchema, ti as contractSaleDocumentAcceptanceRecordInputSchema, Ir as contractSaleDocumentAcceptanceRecordSchema, Lr as contractSaleDocumentAcceptanceSchema, Rr as contractSaleDocumentAddressSchema, ni as contractSaleDocumentApiAcceptanceRecordSchema, ri as contractSaleDocumentApiAcceptanceSchema, ii as contractSaleDocumentApiSchema, ai as contractSaleDocumentApiSignatureSchema, zr as contractSaleDocumentAppendixKindSchema, Br as contractSaleDocumentAppendixSchema, Vr as contractSaleDocumentContactSchema, Hr as contractSaleDocumentKindSchema, Ur as contractSaleDocumentLanguageCodeSchema, Wr as contractSaleDocumentLanguageSchema, Gr as contractSaleDocumentLineItemSchema, oi as contractSaleDocumentReferenceSchema, si as contractSaleDocumentReferenceTypeSchema, Kr as contractSaleDocumentRentalSchema, qr as contractSaleDocumentSchema, ci as contractSaleDocumentSignatureInputSchema, Jr as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Ie as createBookingPeriodConfigFromBookingEngineConfiguration, Le as createBookingPeriodConfigFromShopConfiguration, Re as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, on as doesStorefrontAvailabilityDisplaySoldOut, li as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, ot as findStorefrontProduct, st as findStorefrontProductBySlug, Ct as formatPriceMinor, Pt as formatStorefrontPhoneDisplay, kt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, wt as getAvailabilityVariant, ze as getBookingDurationLabel, Be as getBookingDurationMinutes, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, ct as getCatalogProductBaseRateMinor, lt as getCatalogProductPaginationSort, ut as getCatalogProductSortFieldForPriceUnit, ui as getContractSaleDocumentRequestSchema, di as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Tt as getMinDayPriceMinor, sn as getStorefrontAvailabilityIssue, cn as getStorefrontAvailabilityStatus, dt as getStorefrontBaseDailyRateMinor, ft as getStorefrontCheckoutProductId, pt as getStorefrontProductSelectionDisplayName, mt as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, ln as isStorefrontAvailabilityInsufficient, j as isoDateSchema, pi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, Ge 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, un as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, Mt as requestSchema, ne as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, bt as resolveStorefrontCartItemProduct, Ft as resolveStorefrontMapsHref, It as resolveStorefrontPhoneContact, Rt as resolveStorefrontWhatsAppContact, zt as resolveStorefrontWhatsAppHref, Nt 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, pn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, mn as storefrontAvailabilityProductSchema, dn as storefrontAvailabilityRequestSchema, fn as storefrontAvailabilityResponseSchema, hn as storefrontAvailabilityScheduleSchema, An as storefrontButtonRadiusClassName, _e as storefrontCheckoutModeSchema, Ut as storefrontCheckoutSubmitDeliveryRefinement, Ht as storefrontCheckoutSubmitItemSchema, Vt as storefrontCheckoutSubmitRequestBaseSchema, Wt as storefrontCheckoutSubmitRequestSchema, Gt as storefrontCheckoutSubmitResponseSchema, ve as storefrontConfigurationSchema, ye as storefrontContentSchema, Mn as storefrontEn, be as storefrontFaqItemSchema, xe as storefrontFaqSchema, Nn as storefrontFr, Se as storefrontFulfillmentModeSchema, Ce as storefrontHeroModeSchema, yn as storefrontImageRequestSchema, we as storefrontLocalizedRichTextSchema, Te as storefrontModalMessageSchema, Ee as storefrontModulesSchema, qt as storefrontProductsRequestSchema, Jt as storefrontProductsResponseSchema, Yt as storefrontPublicAccessoryProductSchema, gn as storefrontPublicAvailabilityRecordSchema, Xt as storefrontPublicBikeAvailabilityStatusSchema, Zt as storefrontPublicBikeProductSchema, Qt as storefrontPublicProductDisplayModeSchema, $t as storefrontPublicProductPriceSchema, en as storefrontPublicProductVariantAttributeSchema, tn as storefrontPublicProductVariantIdentifierSchema, nn as storefrontPublicProductVariantSchema, De as storefrontReviewsModuleSchema, Oe as storefrontRichTextSchema, fi as storefrontRoutes, ke as storefrontSettingsSchema, Ae as storefrontShopSchema, je as storefrontStatusSchema, wn as storefrontTimeSlotJourneySchema, Cn as storefrontTimeSlotSchema, xn as storefrontTimeSlotsRequestSchema, Sn as storefrontTimeSlotsResponseSchema, Me as storefrontWorkspaceSchema, z as timeOfDaySchema, ht as toStorefrontAccessoryProducts, gt as toStorefrontBikeProducts, _t as toStorefrontBookingProducts, vt as toStorefrontBookingProductsCollections, Hn as useBookingPeriod, mr as useFormField, tr as useOptionalStorefront, nr as useStorefront, rr as useStorefrontBookingProducts, xt as useStorefrontCart, ir as useStorefrontConfig, ar as useStorefrontProducts, or as useStorefrontWorkspaceLanguage, In as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
83
+ import { accessories as ai } from "./data/accessories.js";
84
+ import oi from "./data/bikes.js";
85
+ import { contractSaleDocumentAcceptanceLevelSchema as si, contractSaleDocumentAcceptanceRecordSchema as ci, contractSaleDocumentAcceptanceSchema as li, contractSaleDocumentAddressSchema as ui, contractSaleDocumentAppendixKindSchema as di, contractSaleDocumentAppendixSchema as fi, contractSaleDocumentContactSchema as pi, contractSaleDocumentKindSchema as mi, contractSaleDocumentLanguageCodeSchema as hi, contractSaleDocumentLanguageSchema as gi, contractSaleDocumentLineItemSchema as _i, contractSaleDocumentRentalSchema as vi, contractSaleDocumentSchema as yi, contractSaleDocumentSignatureSchema as bi } from "./lib/contractSaleDocument.js";
86
+ import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as xi, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Si, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Ci, acceptContractSaleDocumentRequestSchema as wi, acceptContractSaleDocumentResponseSchema as Ti, contractSaleDocumentAcceptanceInputSchema as Ei, contractSaleDocumentAcceptanceRecordInputSchema as Di, contractSaleDocumentApiAcceptanceRecordSchema as Oi, contractSaleDocumentApiAcceptanceSchema as ki, contractSaleDocumentApiSchema as Ai, contractSaleDocumentApiSignatureSchema as ji, contractSaleDocumentReferenceSchema as Mi, contractSaleDocumentReferenceTypeSchema as Ni, contractSaleDocumentSignatureInputSchema as Pi, downloadContractSaleDocumentPdfRequestSchema as Fi, getContractSaleDocumentRequestSchema as Ii, getContractSaleDocumentResponseSchema as Li } from "./lib/contractSaleDocumentApi.js";
87
+ import Ri from "./routes.js";
88
+ import { loader as zi } from "./StorefrontProvider.js";
89
+ import { Select as Bi, SelectContent as Vi, SelectGroup as Hi, SelectIcon as Ui, SelectItem as Wi, SelectItemIndicator as Gi, SelectItemText as Ki, SelectLabel as qi, SelectScrollDownButton as Ji, SelectScrollUpButton as Yi, SelectSeparator as Xi, SelectTrigger as Zi, SelectValue as Qi } from "./ui/select.js";
90
+ export { xi as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Rr as AboutSection, Ne as BOOKING_SEARCH_KEYS, Gn as Badge, yr as BookingEndDateField, br as BookingEndTimeField, wr as BookingFlowSteps, Sr as BookingMobileDateDrawer, mr as BookingPeriodProvider, Cr as BookingPeriodSelector, _r as BookingStartDateField, vr as BookingStartTimeField, xr as BookingTimeSlotsStatus, qn as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, Ur as Card, Wr as CardAction, Gr as CardContent, Kr as CardDescription, qr as CardFooter, Jr as CardHeader, Yr as CardTitle, Ir as ContactSection, $r as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, Si as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, fr as DelayedPlaceholder, pr as DelayedReveal, Er as DeliveryAddressSelector, Wn as Footer, Dr as Form, Or as FormControl, kr as FormDescription, Ar as FormField, jr as FormItem, Mr as FormLabel, Nr as FormMessage, Ci as GET_CONTRACT_SALE_DOCUMENT_ROUTE, ir as Header, Tr as Input, ni as ItinerariesPage, Vr as ItinerariesSection, ri as ItineraryDetailsPage, zr as ItineraryListItem, Br as ItineraryRouteMap, gr as Label, dr as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, cr as PlatformFooter, sr as PoweredByLoczerBadge, Qr as ProductPriceBadge, Xr as ProductWarningNotice, jt as ROUTE, ei as RadioGroup, ti as RadioGroupItem, Cn as STOREFRONT_AVAILABILITY_ROUTE, on as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ge as STOREFRONT_HERO_MODES, In as STOREFRONT_IMAGE_ROUTE, Lt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Rt as STOREFRONT_ITINERARIES_LIST_ROUTE, zt as STOREFRONT_ITINERARY_DETAIL_ROUTE, fn as STOREFRONT_PRODUCTS_ROUTE, zn as STOREFRONT_TIME_SLOTS_ROUTE, Bi as Select, Vi as SelectContent, Hi as SelectGroup, Ui as SelectIcon, Wi as SelectItem, Gi as SelectItemIndicator, Ki as SelectItemText, qi as SelectLabel, Ji as SelectScrollDownButton, Yi as SelectScrollUpButton, Xi as SelectSeparator, Zi as SelectTrigger, Qi as SelectValue, Hr as StepSectionTitle, Zr as StorefrontCartPanel, yt as StorefrontCartProvider, Xn as StorefrontContext, Pe as TIME_OPTIONS, Lr as TestimonialsSection, Fr as Textarea, ur as WhatsAppFloatingButton, wi as acceptContractSaleDocumentRequestSchema, Ti as acceptContractSaleDocumentResponseSchema, ai as accessories, g as accessoryProductSchema, Fe as applyBookingParamsToSearch, ue as assetIdSchema, Kn as badgeVariants, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, oi as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, Et as buildDailyPriceRows, Dt as buildPriceTierLabels, wn as buildStorefrontAvailabilityKey, At as buildStorefrontCartSummary, Ln as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, nn as buildWhatsAppHref, Jn as buttonVariants, Ot as calculateDailyPriceForQuantity, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, St as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, Ei as contractSaleDocumentAcceptanceInputSchema, si as contractSaleDocumentAcceptanceLevelSchema, Di as contractSaleDocumentAcceptanceRecordInputSchema, ci as contractSaleDocumentAcceptanceRecordSchema, li as contractSaleDocumentAcceptanceSchema, ui as contractSaleDocumentAddressSchema, Oi as contractSaleDocumentApiAcceptanceRecordSchema, ki as contractSaleDocumentApiAcceptanceSchema, Ai as contractSaleDocumentApiSchema, ji as contractSaleDocumentApiSignatureSchema, di as contractSaleDocumentAppendixKindSchema, fi as contractSaleDocumentAppendixSchema, pi as contractSaleDocumentContactSchema, mi as contractSaleDocumentKindSchema, hi as contractSaleDocumentLanguageCodeSchema, gi as contractSaleDocumentLanguageSchema, _i as contractSaleDocumentLineItemSchema, Mi as contractSaleDocumentReferenceSchema, Ni as contractSaleDocumentReferenceTypeSchema, vi as contractSaleDocumentRentalSchema, yi as contractSaleDocumentSchema, Pi as contractSaleDocumentSignatureInputSchema, bi as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Ie as createBookingPeriodConfigFromBookingEngineConfiguration, Le as createBookingPeriodConfigFromShopConfiguration, Re as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, Tn as doesStorefrontAvailabilityDisplaySoldOut, Fi as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, ot as findStorefrontProduct, st as findStorefrontProductBySlug, Ct as formatPriceMinor, Pt as formatStorefrontPhoneDisplay, kt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, wt as getAvailabilityVariant, ze as getBookingDurationLabel, Be as getBookingDurationMinutes, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, ct as getCatalogProductBaseRateMinor, lt as getCatalogProductPaginationSort, ut as getCatalogProductSortFieldForPriceUnit, Ii as getContractSaleDocumentRequestSchema, Li as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Tt as getMinDayPriceMinor, En as getStorefrontAvailabilityIssue, Dn as getStorefrontAvailabilityStatus, dt as getStorefrontBaseDailyRateMinor, ft as getStorefrontCheckoutProductId, pt as getStorefrontProductSelectionDisplayName, mt as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, On as isStorefrontAvailabilityInsufficient, j as isoDateSchema, ii as itineraryDetailsLoader, zi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, Ge 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, kn as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, Mt as requestSchema, ne as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, bt as resolveStorefrontCartItemProduct, Ft as resolveStorefrontMapsHref, It as resolveStorefrontPhoneContact, rn as resolveStorefrontWhatsAppContact, an as resolveStorefrontWhatsAppHref, Nt 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, Mn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Nn as storefrontAvailabilityProductSchema, An as storefrontAvailabilityRequestSchema, jn as storefrontAvailabilityResponseSchema, Pn as storefrontAvailabilityScheduleSchema, Yn as storefrontButtonRadiusClassName, _e as storefrontCheckoutModeSchema, ln as storefrontCheckoutSubmitDeliveryRefinement, cn as storefrontCheckoutSubmitItemSchema, sn as storefrontCheckoutSubmitRequestBaseSchema, un as storefrontCheckoutSubmitRequestSchema, dn as storefrontCheckoutSubmitResponseSchema, ve as storefrontConfigurationSchema, ye as storefrontContentSchema, ar as storefrontEn, be as storefrontFaqItemSchema, xe as storefrontFaqSchema, or as storefrontFr, Se as storefrontFulfillmentModeSchema, Ce as storefrontHeroModeSchema, Rn as storefrontImageRequestSchema, Bt as storefrontItinerariesFeaturedRequestSchema, Vt as storefrontItinerariesFeaturedResponseSchema, Ht as storefrontItinerariesListRequestSchema, Ut as storefrontItinerariesListResponseSchema, Wt as storefrontItineraryBoundsSchema, Gt as storefrontItineraryCoordinateSchema, Kt as storefrontItineraryDetailRequestSchema, qt as storefrontItineraryDetailResponseSchema, Jt as storefrontItineraryDetailSchema, Yt as storefrontItineraryDifficultySchema, Xt as storefrontItineraryLocalizedStringSchema, Zt as storefrontItineraryMetricsSchema, Qt as storefrontItineraryPreviewSchema, $t as storefrontItineraryStepSchema, en as storefrontItinerarySummarySchema, tn as storefrontItineraryTripTypeSchema, we as storefrontLocalizedRichTextSchema, Te as storefrontModalMessageSchema, Ee as storefrontModulesSchema, pn as storefrontProductsRequestSchema, mn as storefrontProductsResponseSchema, hn as storefrontPublicAccessoryProductSchema, Fn as storefrontPublicAvailabilityRecordSchema, gn as storefrontPublicBikeAvailabilityStatusSchema, _n as storefrontPublicBikeProductSchema, vn as storefrontPublicProductDisplayModeSchema, yn as storefrontPublicProductPriceSchema, bn as storefrontPublicProductVariantAttributeSchema, xn as storefrontPublicProductVariantIdentifierSchema, Sn as storefrontPublicProductVariantSchema, De as storefrontReviewsModuleSchema, Oe as storefrontRichTextSchema, Ri as storefrontRoutes, ke as storefrontSettingsSchema, Ae as storefrontShopSchema, je as storefrontStatusSchema, Un as storefrontTimeSlotJourneySchema, Hn as storefrontTimeSlotSchema, Bn as storefrontTimeSlotsRequestSchema, Vn as storefrontTimeSlotsResponseSchema, Me as storefrontWorkspaceSchema, z as timeOfDaySchema, ht as toStorefrontAccessoryProducts, gt as toStorefrontBikeProducts, _t as toStorefrontBookingProducts, vt as toStorefrontBookingProductsCollections, hr as useBookingPeriod, Pr as useFormField, Zn as useOptionalStorefront, Qn as useStorefront, $n as useStorefrontBookingProducts, xt as useStorefrontCart, er as useStorefrontConfig, tr as useStorefrontItineraries, nr as useStorefrontProducts, rr as useStorefrontWorkspaceLanguage, lr as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
@@ -0,0 +1,14 @@
1
+ import { StorefrontItineraryCoordinate, StorefrontItineraryLocalizedString } from './storefrontItineraries';
2
+ export declare const resolveItineraryText: (value: StorefrontItineraryLocalizedString | undefined, language: string, fallbackLanguage: string) => string;
3
+ export declare const formatItineraryDistance: (distanceMeters: number, locale: string) => string;
4
+ export declare const formatItineraryDuration: (durationSeconds: number) => string;
5
+ export declare const buildItineraryGeoJson: (coordinates: readonly StorefrontItineraryCoordinate[]) => {
6
+ type: "Feature";
7
+ properties: {};
8
+ geometry: {
9
+ type: "LineString";
10
+ coordinates: readonly ([number, number] | [number, number, number])[];
11
+ };
12
+ };
13
+ export declare const getItineraryBounds: (coordinates: readonly StorefrontItineraryCoordinate[]) => readonly [readonly [number, number], readonly [number, number]];
14
+ //# sourceMappingURL=itineraryPresentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"itineraryPresentation.d.ts","sourceRoot":"","sources":["../../src/lib/itineraryPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAA;AAGhH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,kCAAkC,GAAG,SAAS,EACrD,UAAU,MAAM,EAChB,kBAAkB,MAAM,KACvB,MASF,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,gBAAgB,MAAM,EAAE,QAAQ,MAAM,KAAG,MAEhF,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,iBAAiB,MAAM,KAAG,MAQjE,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,aAAa,SAAS,6BAA6B,EAAE;;;;;;;CAOzF,CAAA;AAEF,eAAO,MAAM,kBAAkB,GAC7B,aAAa,SAAS,6BAA6B,EAAE,KACpD,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAahE,CAAA"}
@@ -0,0 +1,26 @@
1
+ //#region src/lib/itineraryPresentation.ts
2
+ var e = (e, t, n) => {
3
+ let r = e?.[t]?.value;
4
+ if (typeof r == "string" && r.trim()) return r.trim();
5
+ let i = t.split("-")[0], a = i ? e?.[i]?.value : void 0;
6
+ if (typeof a == "string" && a.trim()) return a.trim();
7
+ let o = e?.[n]?.value;
8
+ return typeof o == "string" && o.trim() ? o.trim() : Object.values(e ?? {}).find((e) => e.value.trim())?.value.trim() ?? "";
9
+ }, t = (e, t) => `${new Intl.NumberFormat(t, { maximumFractionDigits: 1 }).format(e / 1e3)} km`, n = (e) => {
10
+ if (e <= 0) return "—";
11
+ let t = Math.max(1, Math.round(e / 60)), n = Math.floor(t / 60), r = t % 60;
12
+ return n === 0 ? `${r} min` : r === 0 ? `${n} h` : `${n} h ${String(r).padStart(2, "0")}`;
13
+ }, r = (e) => ({
14
+ type: "Feature",
15
+ properties: {},
16
+ geometry: {
17
+ type: "LineString",
18
+ coordinates: e
19
+ }
20
+ }), i = (e) => {
21
+ let t = e[0] ?? [0, 0], n = t[0], r = t[0], i = t[1], a = t[1];
22
+ for (let t of e) n = Math.min(n, t[0]), r = Math.max(r, t[0]), i = Math.min(i, t[1]), a = Math.max(a, t[1]);
23
+ return [[n, i], [r, a]];
24
+ };
25
+ //#endregion
26
+ export { r as buildItineraryGeoJson, t as formatItineraryDistance, n as formatItineraryDuration, i as getItineraryBounds, e as resolveItineraryText };