@loczer/storefront-sdk 0.239.0 → 0.241.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.
- package/dist/StorefrontContext.d.ts +54 -0
- package/dist/StorefrontContext.d.ts.map +1 -1
- package/dist/StorefrontProvider.d.ts +27 -0
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-C_HehlKK.js → Product.shared-VisFafx-.js} +6 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-CFAxfmRW.js → base-asset-BuqI-BM_.js} +2 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-CZOR9kya.js → base-booking-gCY-ZP5p.js} +2 -2
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-QYQBl0fQ.js → base-product-r04ZJglB.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-D1KobIdr.js → cart-inputs-ps94yuAR.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-B-Vmdlxo.js → insurance-XwIj1m3Z.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/{schemas-lb2iTDMd.js → schemas-7yx45S2o.js} +6 -6
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +1 -1
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/SignatureModal.js +79 -54
- package/dist/components/FaqSection/index.d.ts.map +1 -1
- package/dist/components/FaqSection/index.js +44 -26
- package/dist/components/Footer/businessHoursStatus.js +1 -1
- package/dist/components/SignatureInput/index.js +2 -1
- package/dist/components/SignatureInput.d.ts.map +1 -1
- package/dist/components/StorefrontInformationDocument/index.d.ts +4 -0
- package/dist/components/StorefrontInformationDocument/index.d.ts.map +1 -1
- package/dist/components/StorefrontInformationDocument/index.js +20 -11
- package/dist/i18n/en.js +1 -1
- package/dist/i18n/fr.js +1 -1
- package/dist/index.d.ts +185 -6
- package/dist/index.js +79 -79
- package/dist/lib/booking-period.d.ts.map +1 -1
- package/dist/lib/booking-period.js +12 -12
- package/dist/lib/booking.js +2 -2
- package/dist/lib/checkoutSubmit.js +3 -3
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +152 -151
- package/dist/pages/InsuranceTermsPage.d.ts.map +1 -1
- package/dist/pages/InsuranceTermsPage.js +18 -16
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +2 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.js +17 -14
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +89 -0
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +20 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,98 +3,98 @@ import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localize
|
|
|
3
3
|
import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./chunks/pkg/booking-engine/dist/schemas/money-CVoCY4of.js";
|
|
4
4
|
import { priceSchema as d, priceUnitSchema as f } from "./chunks/pkg/booking-engine/dist/models/Price-DCAgqkKh.js";
|
|
5
5
|
import { productIdSchema as p } from "./chunks/pkg/booking-engine/dist/schemas/product-id-ChdStzgp.js";
|
|
6
|
-
import { DEFAULT_PRODUCT_KIND as m, PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as h, PRODUCT_VARIANT_CODE_MAX_LENGTH as g, accessoryProductSchema as _, bikeProductSchema as v, eBikeProductSchema as y, isProductVariantCodeIdentifierKind as b, productInsuranceSchema as x, productKindSchema as S, productSchema as C, productStorefrontDisplayModeSchema as w, productVariantAttributeSchema as T, productVariantCodeSchema as E, productVariantIdentifierSchema as D, productVariantSchema as O } from "./chunks/pkg/booking-engine/dist/models/Product.shared-
|
|
6
|
+
import { DEFAULT_PRODUCT_KIND as m, PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as h, PRODUCT_VARIANT_CODE_MAX_LENGTH as g, accessoryProductSchema as _, bikeProductSchema as v, eBikeProductSchema as y, isProductVariantCodeIdentifierKind as b, productInsuranceSchema as x, productKindSchema as S, productSchema as C, productStorefrontDisplayModeSchema as w, productVariantAttributeSchema as T, productVariantCodeSchema as E, productVariantIdentifierSchema as D, productVariantSchema as O } from "./chunks/pkg/booking-engine/dist/models/Product.shared-VisFafx-.js";
|
|
7
7
|
import { BOOKING_REFERENCE_COUNTER_MIN_DIGITS as k, BOOKING_REFERENCE_REGEX as A, BOOKING_REFERENCE_YEAR_MONTH_REGEX as j, bookingReferenceSchema as M, bookingReferenceYearMonthSchema as N, formatBookingReference as P, formatBookingReferenceYearMonth as F } from "./chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js";
|
|
8
8
|
import { richTextJsonDocSchema as I, richTextSchema as L, richTextVersionSchema as R } from "./chunks/pkg/booking-engine/dist/schemas/rich-text-DTRh7U3z.js";
|
|
9
9
|
import { isoDateSchema as z, shopConfigurationSchema as B, shopExtraTimeSlotRuleSchema as V, shopOpeningDayIndexSchema as H, shopOpeningDaySchema as U, shopOpeningHoursOverrideSchema as W, shopOpeningHoursPeriodSchema as G, shopOpeningSlotSchema as K, timeOfDaySchema as q } from "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
|
|
10
10
|
import { DEFAULT_CANCELLATION_POLICY as J, DEFAULT_PAYMENT_POLICIES as Y, cancellationPolicySchema as X, cancellationPolicyTierSchema as Z, paymentPoliciesSchema as Q } from "./chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-CxKlxKCo.js";
|
|
11
11
|
import { fulfillmentModeSchema as $, publicBookingEngineConfigurationSchema as ee, publicCheckoutConfigurationSchema as te, publicCheckoutDynamicOptionsSchema as ne } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-BwWn9aK0.js";
|
|
12
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as re, bookingCustomerInputSchema as ie, bookingDeliveryOptionSchema as ae, bookingScheduleInputSchema as oe, cartItemInputSchema as se, createBookingInputBaseSchema as ce, createBookingInputSchema as le, resolveBookingDeliveryOption as ue, validateBookingDeliveryAddress as de } from "./chunks/pkg/booking-engine/dist/schemas/cart-inputs-
|
|
13
|
-
import { bookingInsuranceConsentSourceSchema as fe, bookingInsuranceItemSnapshotSchema as pe, bookingInsuranceSnapshotSchema as me, buildBookingInsuranceSnapshot as he, calculateInsuranceCalendarDays as ge, insuranceProviderSchema as _e } from "./chunks/pkg/booking-engine/dist/schemas/insurance-
|
|
12
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as re, bookingCustomerInputSchema as ie, bookingDeliveryOptionSchema as ae, bookingScheduleInputSchema as oe, cartItemInputSchema as se, createBookingInputBaseSchema as ce, createBookingInputSchema as le, resolveBookingDeliveryOption as ue, validateBookingDeliveryAddress as de } from "./chunks/pkg/booking-engine/dist/schemas/cart-inputs-ps94yuAR.js";
|
|
13
|
+
import { bookingInsuranceConsentSourceSchema as fe, bookingInsuranceItemSnapshotSchema as pe, bookingInsuranceSnapshotSchema as me, buildBookingInsuranceSnapshot as he, calculateInsuranceCalendarDays as ge, insuranceProviderSchema as _e } from "./chunks/pkg/booking-engine/dist/schemas/insurance-XwIj1m3Z.js";
|
|
14
14
|
import { resolveOpeningHoursForDate as ve, resolveOpeningHoursPeriodForDate as ye } from "./chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
|
|
15
|
-
import { assetIdSchema as be, baseAssetSchema as xe, baseAssetStatusSchema as Se } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-
|
|
16
|
-
import { baseBookingItemSchema as Ce, baseBookingSchema as we, baseBookingStateSchema as Te } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-
|
|
17
|
-
import "./chunks/pkg/booking-engine/dist/schemas-
|
|
18
|
-
import { STOREFRONT_HERO_MODES as Ee, storefrontCheckoutModeSchema as De, storefrontConfigurationSchema as Oe, storefrontContentSchema as ke,
|
|
19
|
-
import { BOOKING_SEARCH_KEYS as
|
|
20
|
-
import { getLocalizedEntry as
|
|
21
|
-
import { CATALOG_PRODUCT_BASE_RATE_UNSET as
|
|
22
|
-
import { StorefrontCartProvider as
|
|
23
|
-
import { cn as
|
|
24
|
-
import { buildPriceTierLabels as
|
|
25
|
-
import { buildStorefrontCartSummary as
|
|
26
|
-
import { ROUTE as
|
|
27
|
-
import { formatStorefrontPhoneDisplay as
|
|
28
|
-
import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as
|
|
29
|
-
import { buildWhatsAppHref as
|
|
30
|
-
import { ROUTE as
|
|
31
|
-
import { ROUTE as
|
|
32
|
-
import { ROUTE as
|
|
33
|
-
import { ROUTE as
|
|
34
|
-
import { ROUTE as
|
|
35
|
-
import { Footer as
|
|
36
|
-
import { Badge as
|
|
37
|
-
import { Button as
|
|
38
|
-
import { LanguageSelector as
|
|
39
|
-
import { StorefrontContext as
|
|
40
|
-
import { Header as
|
|
41
|
-
import { storefront as
|
|
42
|
-
import { storefront as
|
|
43
|
-
import { PoweredByLoczerBadge as
|
|
44
|
-
import { PlatformFooter as
|
|
45
|
-
import { useWhatsAppFloatingButton as
|
|
46
|
-
import { WhatsAppFloatingButton as
|
|
15
|
+
import { assetIdSchema as be, baseAssetSchema as xe, baseAssetStatusSchema as Se } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-BuqI-BM_.js";
|
|
16
|
+
import { baseBookingItemSchema as Ce, baseBookingSchema as we, baseBookingStateSchema as Te } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-gCY-ZP5p.js";
|
|
17
|
+
import "./chunks/pkg/booking-engine/dist/schemas-7yx45S2o.js";
|
|
18
|
+
import { STOREFRONT_HERO_MODES as Ee, storefrontCheckoutModeSchema as De, storefrontConfigurationSchema as Oe, storefrontContentSchema as ke, storefrontFaqAdditionalLinkSchema as Ae, storefrontFaqItemSchema as je, storefrontFaqSchema as Me, storefrontFulfillmentModeSchema as Ne, storefrontHeroModeSchema as Pe, storefrontInformationSchema as Fe, storefrontLocalizedRichTextSchema as Ie, storefrontModalMessageSchema as Le, storefrontModulesSchema as Re, storefrontReviewsModuleSchema as ze, storefrontRichTextSchema as Be, storefrontSettingsSchema as Ve, storefrontShopSchema as He, storefrontStatusSchema as Ue, storefrontWorkspaceSchema as We } from "./storefrontSchemas.js";
|
|
19
|
+
import { BOOKING_SEARCH_KEYS as Ge, TIME_OPTIONS as Ke, applyBookingParamsToSearch as qe, createBookingPeriodConfigFromBookingEngineConfiguration as Je, createBookingPeriodConfigFromShopConfiguration as Ye, createBookingPeriodConfigFromStorefrontConfiguration as Xe, getBookingParamsFromSearch as Ze, getBookingSessionStorageKey as Qe, getDefaultBookingParams as $e, getDefaultBookingParamsForStorefrontConfiguration as et, pickBookingSearchParams as tt, readBookingSearchParamsFromSessionStorage as nt, readBookingSearchParamsFromStorage as rt, resolveBookingSearchParams as it, resolveBookingSearchParamsFromSessionStorage as at, writeBookingSearchParamsToSessionStorage as ot, writeBookingSearchParamsToStorage as st } from "./lib/booking.js";
|
|
20
|
+
import { getLocalizedEntry as ct, getLocalizedValue as lt } from "./localization.js";
|
|
21
|
+
import { CATALOG_PRODUCT_BASE_RATE_UNSET as ut, buildStorefrontProductSlug as dt, buildVariantStorefrontProductId as ft, compareCatalogProducts as pt, compareStorefrontAccessoryProducts as mt, compareStorefrontBikeProducts as ht, findStorefrontInsurancePricingBike as gt, findStorefrontProduct as _t, findStorefrontProductBySlug as vt, getCatalogProductBaseRateMinor as yt, getCatalogProductPaginationSort as bt, getCatalogProductSortFieldForPriceUnit as xt, getStorefrontBaseDailyRateMinor as St, getStorefrontCheckoutProductId as Ct, getStorefrontProductSelectionDisplayName as wt, getStorefrontRepresentedVariantId as Tt, toStorefrontAccessoryProducts as Et, toStorefrontBikeProducts as Dt, toStorefrontBookingProducts as Ot, toStorefrontBookingProductsCollections as kt } from "./lib/products.js";
|
|
22
|
+
import { StorefrontCartProvider as At, resolveStorefrontCartItemProduct as jt, useStorefrontCart as Mt } from "./lib/cart.js";
|
|
23
|
+
import { cn as Nt, formatPriceMinor as Pt, getAvailabilityVariant as Ft, getMinDayPriceMinor as It } from "./lib/utils.js";
|
|
24
|
+
import { buildPriceTierLabels as Lt, buildRentalPriceRows as Rt, calculateBookingRentalUnitSummary as zt, calculateRentalPriceForQuantity as Bt, formatRentalUnitQuantity as Vt, formatStorefrontPriceMinor as Ht, getPricingUnitLabel as Ut } from "./lib/pricing.js";
|
|
25
|
+
import { buildStorefrontCartSummary as Wt } from "./lib/cartSummary.js";
|
|
26
|
+
import { ROUTE as Gt, requestSchema as Kt, responseSchema as qt } from "./lib/contactForm.js";
|
|
27
|
+
import { formatStorefrontPhoneDisplay as Jt, resolveStorefrontMapsHref as Yt, resolveStorefrontPhoneContact as Xt } from "./lib/storefrontContact.js";
|
|
28
|
+
import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as Zt, STOREFRONT_ITINERARIES_LIST_ROUTE as Qt, STOREFRONT_ITINERARY_DETAIL_ROUTE as $t, storefrontItinerariesFeaturedRequestSchema as en, storefrontItinerariesFeaturedResponseSchema as tn, storefrontItinerariesListRequestSchema as nn, storefrontItinerariesListResponseSchema as rn, storefrontItineraryBoundsSchema as an, storefrontItineraryCoordinateSchema as on, storefrontItineraryDetailRequestSchema as sn, storefrontItineraryDetailResponseSchema as cn, storefrontItineraryDetailSchema as ln, storefrontItineraryDifficultySchema as un, storefrontItineraryLocalizedStringSchema as dn, storefrontItineraryMetricsSchema as fn, storefrontItineraryPreviewSchema as pn, storefrontItineraryStepSchema as mn, storefrontItinerarySummarySchema as hn, storefrontItineraryTripTypeSchema as gn } from "./lib/storefrontItineraries.js";
|
|
29
|
+
import { buildWhatsAppHref as _n, resolveStorefrontWhatsAppContact as vn, resolveStorefrontWhatsAppHref as yn } from "./lib/whatsapp.js";
|
|
30
|
+
import { ROUTE as bn, requestBaseSchema as xn, requestCheckoutItemSchema as Sn, requestDeliveryRefinement as Cn, requestSchema as wn, responseSchema as Tn } from "./lib/checkoutSubmit.js";
|
|
31
|
+
import { ROUTE as En, requestSchema as Dn, responseSchema as On, storefrontPublicAccessoryProductSchema as kn, storefrontPublicBikeAvailabilityStatusSchema as An, storefrontPublicBikeProductSchema as jn, storefrontPublicProductDisplayModeSchema as Mn, storefrontPublicProductPriceSchema as Nn, storefrontPublicProductVariantAttributeSchema as Pn, storefrontPublicProductVariantIdentifierSchema as Fn, storefrontPublicProductVariantSchema as In } from "./lib/storefrontProducts.js";
|
|
32
|
+
import { ROUTE as Ln, buildStorefrontAvailabilityKey as Rn, doesStorefrontAvailabilityDisplaySoldOut as zn, getStorefrontAvailabilityIssue as Bn, getStorefrontAvailabilityStatus as Vn, isStorefrontAvailabilityInsufficient as Hn, publicAvailabilityDisplayModeSchema as Un, requestSchema as Wn, responseSchema as Gn, shouldBlockStorefrontUnavailableItem as Kn, storefrontAvailabilityProductSchema as qn, storefrontAvailabilityScheduleSchema as Jn, storefrontPublicAvailabilityRecordSchema as Yn } from "./lib/storefrontAvailability.js";
|
|
33
|
+
import { ROUTE as Xn, buildStorefrontImageUrl as Zn, requestSchema as Qn } from "./lib/storefrontImage.js";
|
|
34
|
+
import { ROUTE as $n, requestSchema as er, responseSchema as tr, storefrontTimeSlotSchema as nr, timeSlotJourneySchema as rr } from "./lib/storefrontTimeSlots.js";
|
|
35
|
+
import { Footer as ir } from "./components/Footer/index.js";
|
|
36
|
+
import { Badge as ar, badgeVariants as or } from "./ui/badge.js";
|
|
37
|
+
import { Button as sr, buttonVariants as cr, storefrontButtonRadiusClassName as lr } from "./ui/button.js";
|
|
38
|
+
import { LanguageSelector as ur } from "./components/LanguageSelector/index.js";
|
|
39
|
+
import { StorefrontContext as dr, useOptionalStorefront as fr, useStorefront as pr, useStorefrontBookingProducts as mr, useStorefrontConfig as hr, useStorefrontItineraries as gr, useStorefrontProducts as _r, useStorefrontWorkspaceLanguage as vr } from "./StorefrontContext.js";
|
|
40
|
+
import { Header as yr } from "./components/Header/index.js";
|
|
41
|
+
import { storefront as br } from "./i18n/en.js";
|
|
42
|
+
import { storefront as xr } from "./i18n/fr.js";
|
|
43
|
+
import { PoweredByLoczerBadge as Sr } from "./components/PoweredByLoczerBadge/index.js";
|
|
44
|
+
import { PlatformFooter as Cr } from "./components/PlatformFooter/index.js";
|
|
45
|
+
import { useWhatsAppFloatingButton as wr } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
|
|
46
|
+
import { WhatsAppFloatingButton as Tr } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
47
47
|
import "./components/WhatsAppFloatingButton/index.js";
|
|
48
|
-
import { Layout as
|
|
49
|
-
import { DelayedPlaceholder as
|
|
50
|
-
import { BookingPeriodProvider as
|
|
51
|
-
import { Label as
|
|
52
|
-
import { BookingStartDateField as
|
|
53
|
-
import { BookingStartTimeField as
|
|
54
|
-
import { BookingEndDateField as
|
|
55
|
-
import { BookingEndTimeField as
|
|
56
|
-
import { BookingTimeSlotsStatus as
|
|
57
|
-
import { BookingMobileDateDrawer as
|
|
58
|
-
import { BookingPeriodSelector as
|
|
59
|
-
import { BookingFlowSteps as
|
|
60
|
-
import { Input as
|
|
61
|
-
import { DeliveryAddressSelector as
|
|
62
|
-
import { Form as
|
|
63
|
-
import { Textarea as
|
|
64
|
-
import { ContactSection as
|
|
65
|
-
import { FaqSection as
|
|
66
|
-
import { TestimonialsSection as
|
|
67
|
-
import { AboutSection as
|
|
68
|
-
import { AdminFloatingButton as
|
|
48
|
+
import { Layout as Er } from "./components/Layout/index.js";
|
|
49
|
+
import { DelayedPlaceholder as Dr, DelayedReveal as Or } from "./components/DelayedReveal/index.js";
|
|
50
|
+
import { BookingPeriodProvider as kr, useBookingPeriod as Ar } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
51
|
+
import { Label as jr } from "./ui/label.js";
|
|
52
|
+
import { BookingStartDateField as Mr } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
53
|
+
import { BookingStartTimeField as Nr } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
54
|
+
import { BookingEndDateField as Pr } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
55
|
+
import { BookingEndTimeField as Fr } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
56
|
+
import { BookingTimeSlotsStatus as Ir } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
|
|
57
|
+
import { BookingMobileDateDrawer as Lr } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
|
|
58
|
+
import { BookingPeriodSelector as Rr } from "./components/BookingPeriodSelector/index.js";
|
|
59
|
+
import { BookingFlowSteps as zr } from "./components/BookingFlowSteps/index.js";
|
|
60
|
+
import { Input as Br } from "./ui/input.js";
|
|
61
|
+
import { DeliveryAddressSelector as Vr } from "./components/DeliveryAddressSelector/index.js";
|
|
62
|
+
import { Form as Hr, FormControl as Ur, FormDescription as Wr, FormField as Gr, FormItem as Kr, FormLabel as qr, FormMessage as Jr, useFormField as Yr } from "./ui/form.js";
|
|
63
|
+
import { Textarea as Xr } from "./ui/textarea.js";
|
|
64
|
+
import { ContactSection as Zr } from "./components/ContactSection/index.js";
|
|
65
|
+
import { FaqSection as Qr } from "./components/FaqSection/index.js";
|
|
66
|
+
import { TestimonialsSection as $r } from "./components/TestimonialsSection/index.js";
|
|
67
|
+
import { AboutSection as ei } from "./components/AboutSection/index.js";
|
|
68
|
+
import { AdminFloatingButton as ti } from "./components/AdminFloatingButton/AdminFloatingButton.js";
|
|
69
69
|
import "./components/AdminFloatingButton/index.js";
|
|
70
|
-
import { ItineraryListItem as
|
|
71
|
-
import { ItineraryRouteMap as
|
|
72
|
-
import { ItinerariesSection as
|
|
70
|
+
import { ItineraryListItem as ni } from "./components/Itineraries/ItineraryListItem.js";
|
|
71
|
+
import { ItineraryRouteMap as ri } from "./components/Itineraries/ItineraryRouteMap.js";
|
|
72
|
+
import { ItinerariesSection as ii } from "./components/Itineraries/ItinerariesSection.js";
|
|
73
73
|
import "./components/Itineraries/index.js";
|
|
74
|
-
import { StepSectionTitle as
|
|
75
|
-
import { Card as
|
|
76
|
-
import { ProductWarningNotice as
|
|
77
|
-
import { StorefrontCartPanel as
|
|
78
|
-
import { ProductPriceBadge as
|
|
79
|
-
import { ContractSaleDocument as
|
|
74
|
+
import { StepSectionTitle as ai } from "./components/StepSectionTitle/index.js";
|
|
75
|
+
import { Card as oi, CardAction as si, CardContent as ci, CardDescription as li, CardFooter as ui, CardHeader as di, CardTitle as fi } from "./ui/card.js";
|
|
76
|
+
import { ProductWarningNotice as pi } from "./components/ProductWarningNotice/index.js";
|
|
77
|
+
import { StorefrontCartPanel as mi } from "./components/StorefrontCartPanel/index.js";
|
|
78
|
+
import { ProductPriceBadge as hi } from "./components/ProductPriceBadge/index.js";
|
|
79
|
+
import { ContractSaleDocument as gi } from "./components/ContractSaleDocument/Invoice.js";
|
|
80
80
|
import "./components/ContractSaleDocument/index.js";
|
|
81
|
-
import { SignatureInput as
|
|
82
|
-
import { RadioGroup as
|
|
81
|
+
import { SignatureInput as _i } from "./components/SignatureInput/index.js";
|
|
82
|
+
import { RadioGroup as vi, RadioGroupItem as yi } from "./ui/radio-group.js";
|
|
83
83
|
import "./pages/HomePage.js";
|
|
84
84
|
import "./pages/BookingPage.js";
|
|
85
85
|
import "./pages/ProductPage.js";
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
86
|
+
import bi from "./pages/ItinerariesPage.js";
|
|
87
|
+
import xi, { loader as Si } from "./pages/ItineraryDetailsPage.js";
|
|
88
|
+
import Ci from "./pages/RentalTermsPage.js";
|
|
89
|
+
import wi from "./pages/InsuranceTermsPage.js";
|
|
90
90
|
import "./pages/CheckoutPage.js";
|
|
91
91
|
import "./pages/CheckoutSuccessPage.js";
|
|
92
92
|
import "./pages/NotFoundPage.js";
|
|
93
|
-
import { accessories as
|
|
94
|
-
import
|
|
95
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
96
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
97
|
-
import
|
|
98
|
-
import { loader as
|
|
99
|
-
import { Select as
|
|
100
|
-
export { Bi as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, $r as AboutSection, ei as AdminFloatingButton, k as BOOKING_REFERENCE_COUNTER_MIN_DIGITS, A as BOOKING_REFERENCE_REGEX, j as BOOKING_REFERENCE_YEAR_MONTH_REGEX, We as BOOKING_SEARCH_KEYS, ir as Badge, Nr as BookingEndDateField, Pr as BookingEndTimeField, Rr as BookingFlowSteps, Ir as BookingMobileDateDrawer, Or as BookingPeriodProvider, Lr as BookingPeriodSelector, jr as BookingStartDateField, Mr as BookingStartTimeField, Fr as BookingTimeSlotsStatus, or as Button, lt as CATALOG_PRODUCT_BASE_RATE_UNSET, ai as Card, oi as CardAction, si as CardContent, ci as CardDescription, li as CardFooter, ui as CardHeader, di as CardTitle, Xr as ContactSection, hi as ContractSaleDocument, re as DEFAULT_BOOKING_DELIVERY_OPTION, J as DEFAULT_CANCELLATION_POLICY, Y as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Vi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, Er as DelayedPlaceholder, Dr as DelayedReveal, Br as DeliveryAddressSelector, Zr as FaqSection, rr as Footer, Vr as Form, Hr as FormControl, Ur as FormDescription, Wr as FormField, Gr as FormItem, Kr as FormLabel, qr as FormMessage, Hi as GET_CONTRACT_SALE_DOCUMENT_ROUTE, vr as Header, zr as Input, Ci as InsuranceTermsPage, yi as ItinerariesPage, ri as ItinerariesSection, bi as ItineraryDetailsPage, ti as ItineraryListItem, ni as ItineraryRouteMap, Ar as Label, lr as LanguageSelector, Tr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, Sr as PlatformFooter, xr as PoweredByLoczerBadge, mi as ProductPriceBadge, fi as ProductWarningNotice, Wt as ROUTE, _i as RadioGroup, vi as RadioGroupItem, Si as RentalTermsPage, In as STOREFRONT_AVAILABILITY_ROUTE, yn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, Ee as STOREFRONT_HERO_MODES, Yn as STOREFRONT_IMAGE_ROUTE, Xt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Zt as STOREFRONT_ITINERARIES_LIST_ROUTE, Qt as STOREFRONT_ITINERARY_DETAIL_ROUTE, Tn as STOREFRONT_PRODUCTS_ROUTE, Qn as STOREFRONT_TIME_SLOTS_ROUTE, aa as Select, oa as SelectContent, sa as SelectGroup, ca as SelectIcon, la as SelectItem, ua as SelectItemIndicator, da as SelectItemText, fa as SelectLabel, pa as SelectScrollDownButton, ma as SelectScrollUpButton, ha as SelectSeparator, ga as SelectTrigger, _a as SelectValue, gi as SignatureInput, ii as StepSectionTitle, pi as StorefrontCartPanel, kt as StorefrontCartProvider, ur as StorefrontContext, Ge as TIME_OPTIONS, Qr as TestimonialsSection, Yr as Textarea, wr as WhatsAppFloatingButton, Ui as acceptContractSaleDocumentRequestSchema, Wi as acceptContractSaleDocumentResponseSchema, wi as accessories, _ as accessoryProductSchema, Ke as applyBookingParamsToSearch, be as assetIdSchema, ar as badgeVariants, xe as baseAssetSchema, Se as baseAssetStatusSchema, Ce as baseBookingItemSchema, we as baseBookingSchema, Te as baseBookingStateSchema, v as bikeProductSchema, Ti as bikes, ie as bookingCustomerInputSchema, ae as bookingDeliveryOptionSchema, fe as bookingInsuranceConsentSourceSchema, pe as bookingInsuranceItemSnapshotSchema, me as bookingInsuranceSnapshotSchema, M as bookingReferenceSchema, N as bookingReferenceYearMonthSchema, oe as bookingScheduleInputSchema, he as buildBookingInsuranceSnapshot, It as buildPriceTierLabels, Lt as buildRentalPriceRows, Ln as buildStorefrontAvailabilityKey, Ut as buildStorefrontCartSummary, Xn as buildStorefrontImageUrl, ut as buildStorefrontProductSlug, dt as buildVariantStorefrontProductId, gn as buildWhatsAppHref, sr as buttonVariants, Rt as calculateBookingRentalUnitSummary, ge as calculateInsuranceCalendarDays, zt as calculateRentalPriceForQuantity, X as cancellationPolicySchema, Z as cancellationPolicyTierSchema, se as cartItemInputSchema, Mt as cn, ft as compareCatalogProducts, pt as compareStorefrontAccessoryProducts, mt as compareStorefrontBikeProducts, Gi as contractSaleDocumentAcceptanceInputSchema, Ei as contractSaleDocumentAcceptanceLevelSchema, Ki as contractSaleDocumentAcceptanceRecordInputSchema, Di as contractSaleDocumentAcceptanceRecordSchema, Oi as contractSaleDocumentAcceptanceSchema, ki as contractSaleDocumentAddressSchema, qi as contractSaleDocumentApiAcceptanceRecordSchema, Ji as contractSaleDocumentApiAcceptanceSchema, Yi as contractSaleDocumentApiSchema, Xi as contractSaleDocumentApiSignatureSchema, Ai as contractSaleDocumentAppendixKindSchema, ji as contractSaleDocumentAppendixSchema, Mi as contractSaleDocumentContactSchema, Ni as contractSaleDocumentKindSchema, Pi as contractSaleDocumentLanguageCodeSchema, Fi as contractSaleDocumentLanguageSchema, Ii as contractSaleDocumentLineItemSchema, Zi as contractSaleDocumentReferenceSchema, Qi as contractSaleDocumentReferenceTypeSchema, Li as contractSaleDocumentRentalSchema, Ri as contractSaleDocumentSchema, $i as contractSaleDocumentSignatureInputSchema, zi as contractSaleDocumentSignatureSchema, ce as createBookingInputBaseSchema, le as createBookingInputSchema, qe as createBookingPeriodConfigFromBookingEngineConfiguration, Je as createBookingPeriodConfigFromShopConfiguration, Ye as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, Rn as doesStorefrontAvailabilityDisplaySoldOut, ea as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ht as findStorefrontInsurancePricingBike, gt as findStorefrontProduct, _t as findStorefrontProductBySlug, P as formatBookingReference, F as formatBookingReferenceYearMonth, Nt as formatPriceMinor, Bt as formatRentalUnitQuantity, qt as formatStorefrontPhoneDisplay, Vt as formatStorefrontPriceMinor, $ as fulfillmentModeSchema, Pt as getAvailabilityVariant, Xe as getBookingParamsFromSearch, Ze as getBookingSessionStorageKey, vt as getCatalogProductBaseRateMinor, yt as getCatalogProductPaginationSort, bt as getCatalogProductSortFieldForPriceUnit, ta as getContractSaleDocumentRequestSchema, na as getContractSaleDocumentResponseSchema, Qe as getDefaultBookingParams, $e as getDefaultBookingParamsForStorefrontConfiguration, st as getLocalizedEntry, t as getLocalizedStringValue, ct as getLocalizedValue, Ft as getMinDayPriceMinor, Ht as getPricingUnitLabel, zn as getStorefrontAvailabilityIssue, Bn as getStorefrontAvailabilityStatus, xt as getStorefrontBaseDailyRateMinor, St as getStorefrontCheckoutProductId, Ct as getStorefrontProductSelectionDisplayName, wt as getStorefrontRepresentedVariantId, _e as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Vn as isStorefrontAvailabilityInsufficient, z as isoDateSchema, xi as itineraryDetailsLoader, ia as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, Q as paymentPoliciesSchema, et as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, Hn as publicAvailabilityDisplayModeSchema, ee as publicBookingEngineConfigurationSchema, te as publicCheckoutConfigurationSchema, ne as publicCheckoutDynamicOptionsSchema, tt as readBookingSearchParamsFromSessionStorage, nt as readBookingSearchParamsFromStorage, Gt as requestSchema, ue as resolveBookingDeliveryOption, rt as resolveBookingSearchParams, it as resolveBookingSearchParamsFromSessionStorage, ve as resolveOpeningHoursForDate, ye as resolveOpeningHoursPeriodForDate, At as resolveStorefrontCartItemProduct, Jt as resolveStorefrontMapsHref, Yt as resolveStorefrontPhoneContact, _n as resolveStorefrontWhatsAppContact, vn as resolveStorefrontWhatsAppHref, Kt as responseSchema, I as richTextJsonDocSchema, L as richTextSchema, R as richTextVersionSchema, B as shopConfigurationSchema, V as shopExtraTimeSlotRuleSchema, H as shopOpeningDayIndexSchema, U as shopOpeningDaySchema, W as shopOpeningHoursOverrideSchema, G as shopOpeningHoursPeriodSchema, K as shopOpeningSlotSchema, Gn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Kn as storefrontAvailabilityProductSchema, Un as storefrontAvailabilityRequestSchema, Wn as storefrontAvailabilityResponseSchema, qn as storefrontAvailabilityScheduleSchema, cr as storefrontButtonRadiusClassName, De as storefrontCheckoutModeSchema, Sn as storefrontCheckoutSubmitDeliveryRefinement, xn as storefrontCheckoutSubmitItemSchema, bn as storefrontCheckoutSubmitRequestBaseSchema, Cn as storefrontCheckoutSubmitRequestSchema, wn as storefrontCheckoutSubmitResponseSchema, Oe as storefrontConfigurationSchema, ke as storefrontContentSchema, yr as storefrontEn, Ae as storefrontFaqItemSchema, je as storefrontFaqSchema, br as storefrontFr, Me as storefrontFulfillmentModeSchema, Ne as storefrontHeroModeSchema, Zn as storefrontImageRequestSchema, Pe as storefrontInformationSchema, $t as storefrontItinerariesFeaturedRequestSchema, en as storefrontItinerariesFeaturedResponseSchema, tn as storefrontItinerariesListRequestSchema, nn as storefrontItinerariesListResponseSchema, rn as storefrontItineraryBoundsSchema, an as storefrontItineraryCoordinateSchema, on as storefrontItineraryDetailRequestSchema, sn as storefrontItineraryDetailResponseSchema, cn as storefrontItineraryDetailSchema, ln as storefrontItineraryDifficultySchema, un as storefrontItineraryLocalizedStringSchema, dn as storefrontItineraryMetricsSchema, fn as storefrontItineraryPreviewSchema, pn as storefrontItineraryStepSchema, mn as storefrontItinerarySummarySchema, hn as storefrontItineraryTripTypeSchema, Fe as storefrontLocalizedRichTextSchema, Ie as storefrontModalMessageSchema, Le as storefrontModulesSchema, En as storefrontProductsRequestSchema, Dn as storefrontProductsResponseSchema, On as storefrontPublicAccessoryProductSchema, Jn as storefrontPublicAvailabilityRecordSchema, kn as storefrontPublicBikeAvailabilityStatusSchema, An as storefrontPublicBikeProductSchema, jn as storefrontPublicProductDisplayModeSchema, Mn as storefrontPublicProductPriceSchema, Nn as storefrontPublicProductVariantAttributeSchema, Pn as storefrontPublicProductVariantIdentifierSchema, Fn as storefrontPublicProductVariantSchema, Re as storefrontReviewsModuleSchema, ze as storefrontRichTextSchema, ra as storefrontRoutes, Be as storefrontSettingsSchema, Ve as storefrontShopSchema, He as storefrontStatusSchema, nr as storefrontTimeSlotJourneySchema, tr as storefrontTimeSlotSchema, $n as storefrontTimeSlotsRequestSchema, er as storefrontTimeSlotsResponseSchema, Ue as storefrontWorkspaceSchema, q as timeOfDaySchema, Tt as toStorefrontAccessoryProducts, Et as toStorefrontBikeProducts, Dt as toStorefrontBookingProducts, Ot as toStorefrontBookingProductsCollections, kr as useBookingPeriod, Jr as useFormField, dr as useOptionalStorefront, fr as useStorefront, pr as useStorefrontBookingProducts, jt as useStorefrontCart, mr as useStorefrontConfig, hr as useStorefrontItineraries, gr as useStorefrontProducts, _r as useStorefrontWorkspaceLanguage, Cr as useWhatsAppFloatingButton, de as validateBookingDeliveryAddress, at as writeBookingSearchParamsToSessionStorage, ot as writeBookingSearchParamsToStorage };
|
|
93
|
+
import { accessories as Ti } from "./data/accessories.js";
|
|
94
|
+
import Ei from "./data/bikes.js";
|
|
95
|
+
import { contractSaleDocumentAcceptanceLevelSchema as Di, contractSaleDocumentAcceptanceRecordSchema as Oi, contractSaleDocumentAcceptanceSchema as ki, contractSaleDocumentAddressSchema as Ai, contractSaleDocumentAppendixKindSchema as ji, contractSaleDocumentAppendixSchema as Mi, contractSaleDocumentContactSchema as Ni, contractSaleDocumentKindSchema as Pi, contractSaleDocumentLanguageCodeSchema as Fi, contractSaleDocumentLanguageSchema as Ii, contractSaleDocumentLineItemSchema as Li, contractSaleDocumentRentalSchema as Ri, contractSaleDocumentSchema as zi, contractSaleDocumentSignatureSchema as Bi } from "./lib/contractSaleDocument.js";
|
|
96
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Vi, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Hi, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Ui, acceptContractSaleDocumentRequestSchema as Wi, acceptContractSaleDocumentResponseSchema as Gi, contractSaleDocumentAcceptanceInputSchema as Ki, contractSaleDocumentAcceptanceRecordInputSchema as qi, contractSaleDocumentApiAcceptanceRecordSchema as Ji, contractSaleDocumentApiAcceptanceSchema as Yi, contractSaleDocumentApiSchema as Xi, contractSaleDocumentApiSignatureSchema as Zi, contractSaleDocumentReferenceSchema as Qi, contractSaleDocumentReferenceTypeSchema as $i, contractSaleDocumentSignatureInputSchema as ea, downloadContractSaleDocumentPdfRequestSchema as ta, getContractSaleDocumentRequestSchema as na, getContractSaleDocumentResponseSchema as ra } from "./lib/contractSaleDocumentApi.js";
|
|
97
|
+
import ia from "./routes.js";
|
|
98
|
+
import { loader as aa } from "./StorefrontProvider.js";
|
|
99
|
+
import { Select as oa, SelectContent as sa, SelectGroup as ca, SelectIcon as la, SelectItem as ua, SelectItemIndicator as da, SelectItemText as fa, SelectLabel as pa, SelectScrollDownButton as ma, SelectScrollUpButton as ha, SelectSeparator as ga, SelectTrigger as _a, SelectValue as va } from "./ui/select.js";
|
|
100
|
+
export { Vi as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, ei as AboutSection, ti as AdminFloatingButton, k as BOOKING_REFERENCE_COUNTER_MIN_DIGITS, A as BOOKING_REFERENCE_REGEX, j as BOOKING_REFERENCE_YEAR_MONTH_REGEX, Ge as BOOKING_SEARCH_KEYS, ar as Badge, Pr as BookingEndDateField, Fr as BookingEndTimeField, zr as BookingFlowSteps, Lr as BookingMobileDateDrawer, kr as BookingPeriodProvider, Rr as BookingPeriodSelector, Mr as BookingStartDateField, Nr as BookingStartTimeField, Ir as BookingTimeSlotsStatus, sr as Button, ut as CATALOG_PRODUCT_BASE_RATE_UNSET, oi as Card, si as CardAction, ci as CardContent, li as CardDescription, ui as CardFooter, di as CardHeader, fi as CardTitle, Zr as ContactSection, gi as ContractSaleDocument, re as DEFAULT_BOOKING_DELIVERY_OPTION, J as DEFAULT_CANCELLATION_POLICY, Y as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Hi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, Dr as DelayedPlaceholder, Or as DelayedReveal, Vr as DeliveryAddressSelector, Qr as FaqSection, ir as Footer, Hr as Form, Ur as FormControl, Wr as FormDescription, Gr as FormField, Kr as FormItem, qr as FormLabel, Jr as FormMessage, Ui as GET_CONTRACT_SALE_DOCUMENT_ROUTE, yr as Header, Br as Input, wi as InsuranceTermsPage, bi as ItinerariesPage, ii as ItinerariesSection, xi as ItineraryDetailsPage, ni as ItineraryListItem, ri as ItineraryRouteMap, jr as Label, ur as LanguageSelector, Er as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, Cr as PlatformFooter, Sr as PoweredByLoczerBadge, hi as ProductPriceBadge, pi as ProductWarningNotice, Gt as ROUTE, vi as RadioGroup, yi as RadioGroupItem, Ci as RentalTermsPage, Ln as STOREFRONT_AVAILABILITY_ROUTE, bn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, Ee as STOREFRONT_HERO_MODES, Xn as STOREFRONT_IMAGE_ROUTE, Zt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Qt as STOREFRONT_ITINERARIES_LIST_ROUTE, $t as STOREFRONT_ITINERARY_DETAIL_ROUTE, En as STOREFRONT_PRODUCTS_ROUTE, $n as STOREFRONT_TIME_SLOTS_ROUTE, oa as Select, sa as SelectContent, ca as SelectGroup, la as SelectIcon, ua as SelectItem, da as SelectItemIndicator, fa as SelectItemText, pa as SelectLabel, ma as SelectScrollDownButton, ha as SelectScrollUpButton, ga as SelectSeparator, _a as SelectTrigger, va as SelectValue, _i as SignatureInput, ai as StepSectionTitle, mi as StorefrontCartPanel, At as StorefrontCartProvider, dr as StorefrontContext, Ke as TIME_OPTIONS, $r as TestimonialsSection, Xr as Textarea, Tr as WhatsAppFloatingButton, Wi as acceptContractSaleDocumentRequestSchema, Gi as acceptContractSaleDocumentResponseSchema, Ti as accessories, _ as accessoryProductSchema, qe as applyBookingParamsToSearch, be as assetIdSchema, or as badgeVariants, xe as baseAssetSchema, Se as baseAssetStatusSchema, Ce as baseBookingItemSchema, we as baseBookingSchema, Te as baseBookingStateSchema, v as bikeProductSchema, Ei as bikes, ie as bookingCustomerInputSchema, ae as bookingDeliveryOptionSchema, fe as bookingInsuranceConsentSourceSchema, pe as bookingInsuranceItemSnapshotSchema, me as bookingInsuranceSnapshotSchema, M as bookingReferenceSchema, N as bookingReferenceYearMonthSchema, oe as bookingScheduleInputSchema, he as buildBookingInsuranceSnapshot, Lt as buildPriceTierLabels, Rt as buildRentalPriceRows, Rn as buildStorefrontAvailabilityKey, Wt as buildStorefrontCartSummary, Zn as buildStorefrontImageUrl, dt as buildStorefrontProductSlug, ft as buildVariantStorefrontProductId, _n as buildWhatsAppHref, cr as buttonVariants, zt as calculateBookingRentalUnitSummary, ge as calculateInsuranceCalendarDays, Bt as calculateRentalPriceForQuantity, X as cancellationPolicySchema, Z as cancellationPolicyTierSchema, se as cartItemInputSchema, Nt as cn, pt as compareCatalogProducts, mt as compareStorefrontAccessoryProducts, ht as compareStorefrontBikeProducts, Ki as contractSaleDocumentAcceptanceInputSchema, Di as contractSaleDocumentAcceptanceLevelSchema, qi as contractSaleDocumentAcceptanceRecordInputSchema, Oi as contractSaleDocumentAcceptanceRecordSchema, ki as contractSaleDocumentAcceptanceSchema, Ai as contractSaleDocumentAddressSchema, Ji as contractSaleDocumentApiAcceptanceRecordSchema, Yi as contractSaleDocumentApiAcceptanceSchema, Xi as contractSaleDocumentApiSchema, Zi as contractSaleDocumentApiSignatureSchema, ji as contractSaleDocumentAppendixKindSchema, Mi as contractSaleDocumentAppendixSchema, Ni as contractSaleDocumentContactSchema, Pi as contractSaleDocumentKindSchema, Fi as contractSaleDocumentLanguageCodeSchema, Ii as contractSaleDocumentLanguageSchema, Li as contractSaleDocumentLineItemSchema, Qi as contractSaleDocumentReferenceSchema, $i as contractSaleDocumentReferenceTypeSchema, Ri as contractSaleDocumentRentalSchema, zi as contractSaleDocumentSchema, ea as contractSaleDocumentSignatureInputSchema, Bi as contractSaleDocumentSignatureSchema, ce as createBookingInputBaseSchema, le as createBookingInputSchema, Je as createBookingPeriodConfigFromBookingEngineConfiguration, Ye as createBookingPeriodConfigFromShopConfiguration, Xe as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, zn as doesStorefrontAvailabilityDisplaySoldOut, ta as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, gt as findStorefrontInsurancePricingBike, _t as findStorefrontProduct, vt as findStorefrontProductBySlug, P as formatBookingReference, F as formatBookingReferenceYearMonth, Pt as formatPriceMinor, Vt as formatRentalUnitQuantity, Jt as formatStorefrontPhoneDisplay, Ht as formatStorefrontPriceMinor, $ as fulfillmentModeSchema, Ft as getAvailabilityVariant, Ze as getBookingParamsFromSearch, Qe as getBookingSessionStorageKey, yt as getCatalogProductBaseRateMinor, bt as getCatalogProductPaginationSort, xt as getCatalogProductSortFieldForPriceUnit, na as getContractSaleDocumentRequestSchema, ra as getContractSaleDocumentResponseSchema, $e as getDefaultBookingParams, et as getDefaultBookingParamsForStorefrontConfiguration, ct as getLocalizedEntry, t as getLocalizedStringValue, lt as getLocalizedValue, It as getMinDayPriceMinor, Ut as getPricingUnitLabel, Bn as getStorefrontAvailabilityIssue, Vn as getStorefrontAvailabilityStatus, St as getStorefrontBaseDailyRateMinor, Ct as getStorefrontCheckoutProductId, wt as getStorefrontProductSelectionDisplayName, Tt as getStorefrontRepresentedVariantId, _e as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Hn as isStorefrontAvailabilityInsufficient, z as isoDateSchema, Si as itineraryDetailsLoader, aa as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, Q as paymentPoliciesSchema, tt as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, Un as publicAvailabilityDisplayModeSchema, ee as publicBookingEngineConfigurationSchema, te as publicCheckoutConfigurationSchema, ne as publicCheckoutDynamicOptionsSchema, nt as readBookingSearchParamsFromSessionStorage, rt as readBookingSearchParamsFromStorage, Kt as requestSchema, ue as resolveBookingDeliveryOption, it as resolveBookingSearchParams, at as resolveBookingSearchParamsFromSessionStorage, ve as resolveOpeningHoursForDate, ye as resolveOpeningHoursPeriodForDate, jt as resolveStorefrontCartItemProduct, Yt as resolveStorefrontMapsHref, Xt as resolveStorefrontPhoneContact, vn as resolveStorefrontWhatsAppContact, yn as resolveStorefrontWhatsAppHref, qt as responseSchema, I as richTextJsonDocSchema, L as richTextSchema, R as richTextVersionSchema, B as shopConfigurationSchema, V as shopExtraTimeSlotRuleSchema, H as shopOpeningDayIndexSchema, U as shopOpeningDaySchema, W as shopOpeningHoursOverrideSchema, G as shopOpeningHoursPeriodSchema, K as shopOpeningSlotSchema, Kn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, qn as storefrontAvailabilityProductSchema, Wn as storefrontAvailabilityRequestSchema, Gn as storefrontAvailabilityResponseSchema, Jn as storefrontAvailabilityScheduleSchema, lr as storefrontButtonRadiusClassName, De as storefrontCheckoutModeSchema, Cn as storefrontCheckoutSubmitDeliveryRefinement, Sn as storefrontCheckoutSubmitItemSchema, xn as storefrontCheckoutSubmitRequestBaseSchema, wn as storefrontCheckoutSubmitRequestSchema, Tn as storefrontCheckoutSubmitResponseSchema, Oe as storefrontConfigurationSchema, ke as storefrontContentSchema, br as storefrontEn, Ae as storefrontFaqAdditionalLinkSchema, je as storefrontFaqItemSchema, Me as storefrontFaqSchema, xr as storefrontFr, Ne as storefrontFulfillmentModeSchema, Pe as storefrontHeroModeSchema, Qn as storefrontImageRequestSchema, Fe as storefrontInformationSchema, en as storefrontItinerariesFeaturedRequestSchema, tn as storefrontItinerariesFeaturedResponseSchema, nn as storefrontItinerariesListRequestSchema, rn as storefrontItinerariesListResponseSchema, an as storefrontItineraryBoundsSchema, on as storefrontItineraryCoordinateSchema, sn as storefrontItineraryDetailRequestSchema, cn as storefrontItineraryDetailResponseSchema, ln as storefrontItineraryDetailSchema, un as storefrontItineraryDifficultySchema, dn as storefrontItineraryLocalizedStringSchema, fn as storefrontItineraryMetricsSchema, pn as storefrontItineraryPreviewSchema, mn as storefrontItineraryStepSchema, hn as storefrontItinerarySummarySchema, gn as storefrontItineraryTripTypeSchema, Ie as storefrontLocalizedRichTextSchema, Le as storefrontModalMessageSchema, Re as storefrontModulesSchema, Dn as storefrontProductsRequestSchema, On as storefrontProductsResponseSchema, kn as storefrontPublicAccessoryProductSchema, Yn as storefrontPublicAvailabilityRecordSchema, An as storefrontPublicBikeAvailabilityStatusSchema, jn as storefrontPublicBikeProductSchema, Mn as storefrontPublicProductDisplayModeSchema, Nn as storefrontPublicProductPriceSchema, Pn as storefrontPublicProductVariantAttributeSchema, Fn as storefrontPublicProductVariantIdentifierSchema, In as storefrontPublicProductVariantSchema, ze as storefrontReviewsModuleSchema, Be as storefrontRichTextSchema, ia as storefrontRoutes, Ve as storefrontSettingsSchema, He as storefrontShopSchema, Ue as storefrontStatusSchema, rr as storefrontTimeSlotJourneySchema, nr as storefrontTimeSlotSchema, er as storefrontTimeSlotsRequestSchema, tr as storefrontTimeSlotsResponseSchema, We as storefrontWorkspaceSchema, q as timeOfDaySchema, Et as toStorefrontAccessoryProducts, Dt as toStorefrontBikeProducts, Ot as toStorefrontBookingProducts, kt as toStorefrontBookingProductsCollections, Ar as useBookingPeriod, Yr as useFormField, fr as useOptionalStorefront, pr as useStorefront, mr as useStorefrontBookingProducts, Mt as useStorefrontCart, hr as useStorefrontConfig, gr as useStorefrontItineraries, _r as useStorefrontProducts, vr as useStorefrontWorkspaceLanguage, wr as useWhatsAppFloatingButton, de as validateBookingDeliveryAddress, ot as writeBookingSearchParamsToSessionStorage, st as writeBookingSearchParamsToStorage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking-period.d.ts","sourceRoot":"","sources":["../../src/lib/booking-period.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAE/C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,OAAO,CAAA;IACZ,YAAY,EAAE,gBAAgB,EAAE,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,gBAAgB,EAAE,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,eAAe,EAAE,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,EAAE,CAAA;AAEpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,mBAAmB,EAAE,MAAM,CAAA;IAC3B,qBAAqB,EA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AAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,WAAW,6BAA6B;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,WAAW,EAAE,OAAO,CAAA;IACpB,gBAAgB,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,CAAA;IAC9D,cAAc,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,8BAA8B;IAC7C,aAAa,CAAC,EAAE,IAAI,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,mBAAmB,CAAA;CAC5B;AAED,eAAO,MAAM,mBAAmB,GAAI,QAAQ,kBAAkB,EAAE,SAAS,8BAA8B,KAAG,6BA8FzG,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll as e } from "../chunks/_virtual/_rolldown/runtime-B5ovbsoX.js";
|
|
2
2
|
import { resolveOpeningHoursForDate as t } from "../chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
|
|
3
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
3
|
+
import "../chunks/pkg/booking-engine/dist/schemas-7yx45S2o.js";
|
|
4
4
|
//#region src/lib/booking-period.ts
|
|
5
5
|
var n = /* @__PURE__ */ e({
|
|
6
6
|
adjustBookingPeriod: () => M,
|
|
@@ -149,7 +149,7 @@ var n = /* @__PURE__ */ e({
|
|
|
149
149
|
let n = e.startMinutes, r = e.endMinutes - o;
|
|
150
150
|
return r < n ? !1 : t >= n && t <= r;
|
|
151
151
|
}) : !1;
|
|
152
|
-
}, y = s.days.find((e) => !e.isClosed && e.openingSlots.length)?.day ?? s.days[0]?.day ?? 0, b = c.days.find((e) => !e.isClosed && e.openingSlots.length)?.day ?? c.days[0]?.day ?? 0, x = Math.ceil(Math.max(0, s.defaultOpeningMinutes) / o) * o, S = g(y) ?? x, C = S
|
|
152
|
+
}, y = s.days.find((e) => !e.isClosed && e.openingSlots.length)?.day ?? s.days[0]?.day ?? 0, b = c.days.find((e) => !e.isClosed && e.openingSlots.length)?.day ?? c.days[0]?.day ?? 0, x = Math.ceil(Math.max(0, s.defaultOpeningMinutes) / o) * o, S = g(y) ?? x, C = S, w = Math.floor(Math.max(0, s.defaultClosingMinutes - o) / o) * o, T = _(y) ?? w;
|
|
153
153
|
(!Number.isFinite(C) || C > T) && (C = S), Number.isFinite(C) || (C = Math.max(0, s.defaultOpeningMinutes));
|
|
154
154
|
let E = Math.max(0, C), D = Math.max(E, T);
|
|
155
155
|
return {
|
|
@@ -242,20 +242,20 @@ var n = /* @__PURE__ */ e({
|
|
|
242
242
|
minutesFromMidnight: r
|
|
243
243
|
};
|
|
244
244
|
}, D = (e) => {
|
|
245
|
-
let t = e.referenceDate ?? /* @__PURE__ */ new Date(), n = h(e.config), { baseDate:
|
|
246
|
-
startDate:
|
|
247
|
-
startTime:
|
|
248
|
-
endDate:
|
|
249
|
-
endTime:
|
|
245
|
+
let t = e.referenceDate ?? /* @__PURE__ */ new Date(), n = h(e.config), { baseDate: i } = E(t, n), a = new Date(i.getTime()), o = new Date(i.getTime()), s = C(a), c = s ? A(s) : n.defaultWeekday, l = n.getFirstStartMinutesForWeekday(c, null, { dateString: s }), u = typeof l == "number" ? r(l) : n.defaultStartTime, d = n.defaultEndTime, f = M({
|
|
246
|
+
startDate: a,
|
|
247
|
+
startTime: u,
|
|
248
|
+
endDate: o,
|
|
249
|
+
endTime: d
|
|
250
250
|
}, {
|
|
251
251
|
referenceDate: t,
|
|
252
252
|
config: e.config
|
|
253
|
-
}),
|
|
253
|
+
}), p = f.startDateString ? k(f.startDateString) : a, m = f.shouldResetEnd ? new Date(p.getTime()) : f.endDateString ? k(f.endDateString) : o, g = f.startTime ?? u, _ = f.endTime ?? d;
|
|
254
254
|
return {
|
|
255
|
-
startDate: new Date(
|
|
256
|
-
startTime:
|
|
257
|
-
endDate: new Date(
|
|
258
|
-
endTime:
|
|
255
|
+
startDate: new Date(p.getTime()),
|
|
256
|
+
startTime: g,
|
|
257
|
+
endDate: new Date(m.getTime()),
|
|
258
|
+
endTime: _
|
|
259
259
|
};
|
|
260
260
|
}, O = (e, t) => {
|
|
261
261
|
if (e) return typeof e == "string" ? S(e) : C(e);
|
package/dist/lib/booking.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-
|
|
2
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
1
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-ps94yuAR.js";
|
|
2
|
+
import "../chunks/pkg/booking-engine/dist/schemas-7yx45S2o.js";
|
|
3
3
|
import { getDefaultBookingPeriod as t, parseTimeToMinutes as n } from "./booking-period.js";
|
|
4
4
|
import { format as r } from "date-fns";
|
|
5
5
|
//#region src/lib/booking.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-
|
|
1
|
+
import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-VisFafx-.js";
|
|
2
2
|
import { bookingReferenceSchema as t } from "../chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js";
|
|
3
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as n, bookingScheduleInputSchema as r } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-
|
|
4
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
3
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as n, bookingScheduleInputSchema as r } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-ps94yuAR.js";
|
|
4
|
+
import "../chunks/pkg/booking-engine/dist/schemas-7yx45S2o.js";
|
|
5
5
|
import { storefrontFulfillmentModeSchema as i } from "../storefrontSchemas.js";
|
|
6
6
|
import { z as a } from "zod";
|
|
7
7
|
//#region src/lib/checkoutSubmit.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAsFA,MAAM,CAAC,OAAO,UAAU,YAAY,
|
|
1
|
+
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAsFA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAwrBnC"}
|