@loczer/storefront-sdk 0.193.0 → 0.194.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/chunks/pkg/booking-engine/dist/models/{Product.shared-cjcvMCMa.js → Product.shared-iVSHRdn4.js} +21 -21
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-CsOe0vXi.js → base-asset-BRQVuIes.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-Sjsqh31e.js → base-booking-Bhy2Kww1.js} +2 -2
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-C_ATjuc6.js → base-product-BJHQLX8t.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-B01h642r.js → insurance-CPeHsTss.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js +14 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +35 -53
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +35 -53
- package/dist/components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts +7 -0
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts.map +1 -0
- package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.js +29 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.js +11 -2
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +3 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +114 -110
- package/dist/index.d.ts +5 -0
- package/dist/index.js +70 -70
- package/dist/lib/booking.js +1 -1
- package/dist/lib/checkoutSubmit.js +2 -2
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +180 -152
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +263 -257
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas-D_yUBLa0.js +0 -14
package/dist/index.js
CHANGED
|
@@ -2,81 +2,81 @@
|
|
|
2
2
|
import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./chunks/pkg/booking-engine/dist/models/LocalizedString-D_TRgAdr.js";
|
|
3
3
|
import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./chunks/pkg/booking-engine/dist/schemas/money-CVoCY4of.js";
|
|
4
4
|
import { priceSchema as d, priceUnitSchema as f } from "./chunks/pkg/booking-engine/dist/models/Price-DCAgqkKh.js";
|
|
5
|
-
import {
|
|
6
|
-
import { richTextJsonDocSchema as
|
|
7
|
-
import { isoDateSchema as
|
|
8
|
-
import { DEFAULT_CANCELLATION_POLICY as
|
|
9
|
-
import { fulfillmentModeSchema as
|
|
10
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as
|
|
11
|
-
import { bookingInsuranceConsentSourceSchema as
|
|
12
|
-
import { baseAssetSchema as
|
|
13
|
-
import { baseBookingItemSchema as
|
|
14
|
-
import "./chunks/pkg/booking-engine/dist/schemas-
|
|
15
|
-
import { STOREFRONT_HERO_MODES as
|
|
16
|
-
import { BOOKING_SEARCH_KEYS as
|
|
17
|
-
import { CATALOG_PRODUCT_BASE_RATE_UNSET as
|
|
18
|
-
import { StorefrontCartProvider as
|
|
19
|
-
import { cn as
|
|
20
|
-
import { buildDailyPriceRows as
|
|
21
|
-
import { getLocalizedEntry as
|
|
22
|
-
import { buildStorefrontCartSummary as
|
|
23
|
-
import { ROUTE as
|
|
24
|
-
import { formatStorefrontPhoneDisplay as
|
|
25
|
-
import { buildWhatsAppHref as
|
|
26
|
-
import { ROUTE as
|
|
27
|
-
import { ROUTE as
|
|
28
|
-
import { ROUTE as
|
|
29
|
-
import { ROUTE as
|
|
30
|
-
import { ROUTE as
|
|
31
|
-
import { Footer as
|
|
32
|
-
import { Badge as
|
|
33
|
-
import { Button as
|
|
34
|
-
import { Header as
|
|
35
|
-
import { storefront as
|
|
36
|
-
import { storefront as
|
|
37
|
-
import { PoweredByLoczerBadge as
|
|
38
|
-
import { PlatformFooter as
|
|
39
|
-
import { useWhatsAppFloatingButton as
|
|
40
|
-
import { WhatsAppFloatingButton as
|
|
5
|
+
import { DEFAULT_PRODUCT_KIND as p, PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as m, PRODUCT_VARIANT_CODE_MAX_LENGTH as h, accessoryProductSchema as g, bikeProductSchema as _, eBikeProductSchema as v, isProductVariantCodeIdentifierKind as y, productInsuranceSchema as b, productKindSchema as x, productSchema as S, productStorefrontDisplayModeSchema as C, productVariantAttributeSchema as w, productVariantCodeSchema as T, productVariantIdentifierSchema as E, productVariantSchema as D } from "./chunks/pkg/booking-engine/dist/models/Product.shared-iVSHRdn4.js";
|
|
6
|
+
import { richTextJsonDocSchema as O, richTextSchema as k, richTextVersionSchema as A } from "./chunks/pkg/booking-engine/dist/schemas/rich-text-DTRh7U3z.js";
|
|
7
|
+
import { isoDateSchema as j, shopConfigurationSchema as M, shopExtraTimeSlotRuleSchema as N, shopOpeningDayIndexSchema as P, shopOpeningDaySchema as F, shopOpeningHoursOverrideSchema as I, shopOpeningHoursPeriodSchema as L, shopOpeningSlotSchema as R, timeOfDaySchema as z } from "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
|
|
8
|
+
import { DEFAULT_CANCELLATION_POLICY as B, DEFAULT_PAYMENT_POLICIES as V, cancellationPolicySchema as H, cancellationPolicyTierSchema as U, paymentPoliciesSchema as W } from "./chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-LnrhShqm.js";
|
|
9
|
+
import { fulfillmentModeSchema as G, publicBookingEngineConfigurationSchema as K, publicCheckoutConfigurationSchema as q, publicCheckoutDynamicOptionsSchema as J } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-CEM9mexX.js";
|
|
10
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as Y, bookingCustomerInputSchema as X, bookingDeliveryOptionSchema as Z, bookingScheduleInputSchema as Q, cartItemInputSchema as $, createBookingInputBaseSchema as ee, createBookingInputSchema as te, resolveBookingDeliveryOption as ne, validateBookingDeliveryAddress as re } from "./chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js";
|
|
11
|
+
import { bookingInsuranceConsentSourceSchema as ie, bookingInsuranceItemSnapshotSchema as ae, bookingInsuranceSnapshotSchema as oe, buildBookingInsuranceSnapshot as se, calculateInsuranceCalendarDays as ce, insuranceProviderSchema as le } from "./chunks/pkg/booking-engine/dist/schemas/insurance-CPeHsTss.js";
|
|
12
|
+
import { baseAssetSchema as ue, baseAssetStatusSchema as de } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-BRQVuIes.js";
|
|
13
|
+
import { baseBookingItemSchema as fe, baseBookingSchema as pe, baseBookingStateSchema as me } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-Bhy2Kww1.js";
|
|
14
|
+
import "./chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
|
|
15
|
+
import { STOREFRONT_HERO_MODES as he, storefrontCheckoutModeSchema as ge, storefrontConfigurationSchema as _e, storefrontContentSchema as ve, storefrontFaqItemSchema as ye, storefrontFaqSchema as be, storefrontFulfillmentModeSchema as xe, storefrontHeroModeSchema as Se, storefrontLocalizedRichTextSchema as Ce, storefrontModalMessageSchema as we, storefrontModulesSchema as Te, storefrontReviewsModuleSchema as Ee, storefrontRichTextSchema as De, storefrontSettingsSchema as Oe, storefrontShopSchema as ke, storefrontStatusSchema as Ae, storefrontWorkspaceSchema as je } from "./storefrontSchemas.js";
|
|
16
|
+
import { BOOKING_SEARCH_KEYS as Me, TIME_OPTIONS as Ne, applyBookingParamsToSearch as Pe, createBookingPeriodConfigFromBookingEngineConfiguration as Fe, createBookingPeriodConfigFromShopConfiguration as Ie, createBookingPeriodConfigFromStorefrontConfiguration as Le, getBookingDurationLabel as Re, getBookingDurationMinutes as ze, getBookingParamsFromSearch as Be, getBookingSessionStorageKey as Ve, getDefaultBookingParams as He, getDefaultBookingParamsForStorefrontConfiguration as Ue, pickBookingSearchParams as We, readBookingSearchParamsFromSessionStorage as Ge, readBookingSearchParamsFromStorage as Ke, resolveBookingSearchParams as qe, resolveBookingSearchParamsFromSessionStorage as Je, writeBookingSearchParamsToSessionStorage as Ye, writeBookingSearchParamsToStorage as Xe } from "./lib/booking.js";
|
|
17
|
+
import { CATALOG_PRODUCT_BASE_RATE_UNSET as Ze, buildStorefrontProductSlug as Qe, buildVariantStorefrontProductId as $e, compareCatalogProducts as et, compareStorefrontAccessoryProducts as tt, compareStorefrontBikeProducts as nt, findStorefrontProduct as rt, findStorefrontProductBySlug as it, getCatalogProductBaseRateMinor as at, getCatalogProductPaginationSort as ot, getCatalogProductSortFieldForPriceUnit as st, getStorefrontBaseDailyRateMinor as ct, getStorefrontCheckoutProductId as lt, getStorefrontRepresentedVariantId as ut, toStorefrontAccessoryProducts as dt, toStorefrontBikeProducts as ft, toStorefrontBookingProducts as pt, toStorefrontBookingProductsCollections as mt } from "./lib/products.js";
|
|
18
|
+
import { StorefrontCartProvider as ht, resolveStorefrontCartItemProduct as gt, useStorefrontCart as _t } from "./lib/cart.js";
|
|
19
|
+
import { cn as vt, formatPriceMinor as yt, getAvailabilityVariant as bt, getMinDayPriceMinor as xt } from "./lib/utils.js";
|
|
20
|
+
import { buildDailyPriceRows as St, buildPriceTierLabels as Ct, calculateDailyPriceForQuantity as wt, formatStorefrontPriceMinor as Tt } from "./lib/pricing.js";
|
|
21
|
+
import { getLocalizedEntry as Et, getLocalizedValue as Dt } from "./localization.js";
|
|
22
|
+
import { buildStorefrontCartSummary as Ot } from "./lib/cartSummary.js";
|
|
23
|
+
import { ROUTE as kt, requestSchema as At, responseSchema as jt } from "./lib/contactForm.js";
|
|
24
|
+
import { formatStorefrontPhoneDisplay as Mt, resolveStorefrontMapsHref as Nt, resolveStorefrontPhoneContact as Pt } from "./lib/storefrontContact.js";
|
|
25
|
+
import { buildWhatsAppHref as Ft, resolveStorefrontWhatsAppContact as It, resolveStorefrontWhatsAppHref as Lt } from "./lib/whatsapp.js";
|
|
26
|
+
import { ROUTE as Rt, requestBaseSchema as zt, requestCheckoutItemSchema as Bt, requestDeliveryRefinement as Vt, requestSchema as Ht, responseSchema as Ut } from "./lib/checkoutSubmit.js";
|
|
27
|
+
import { ROUTE as Wt, requestSchema as Gt, responseSchema as Kt, storefrontPublicAccessoryProductSchema as qt, storefrontPublicBikeAvailabilityStatusSchema as Jt, storefrontPublicBikeProductSchema as Yt, storefrontPublicProductDisplayModeSchema as Xt, storefrontPublicProductPriceSchema as Zt, storefrontPublicProductVariantAttributeSchema as Qt, storefrontPublicProductVariantIdentifierSchema as $t, storefrontPublicProductVariantSchema as en } from "./lib/storefrontProducts.js";
|
|
28
|
+
import { ROUTE as tn, buildStorefrontAvailabilityKey as nn, doesStorefrontAvailabilityDisplaySoldOut as rn, getStorefrontAvailabilityIssue as an, getStorefrontAvailabilityStatus as on, isStorefrontAvailabilityInsufficient as sn, publicAvailabilityDisplayModeSchema as cn, requestSchema as ln, responseSchema as un, shouldBlockStorefrontUnavailableItem as dn, storefrontAvailabilityProductSchema as fn, storefrontAvailabilityScheduleSchema as pn, storefrontPublicAvailabilityRecordSchema as mn } from "./lib/storefrontAvailability.js";
|
|
29
|
+
import { ROUTE as hn, buildStorefrontImageUrl as gn, requestSchema as _n } from "./lib/storefrontImage.js";
|
|
30
|
+
import { ROUTE as vn, requestSchema as yn, responseSchema as bn, storefrontTimeSlotSchema as xn, timeSlotJourneySchema as Sn } from "./lib/storefrontTimeSlots.js";
|
|
31
|
+
import { Footer as Cn } from "./components/Footer/index.js";
|
|
32
|
+
import { Badge as wn, badgeVariants as Tn } from "./ui/badge.js";
|
|
33
|
+
import { Button as En, buttonVariants as Dn } from "./ui/button.js";
|
|
34
|
+
import { Header as On } from "./components/Header/index.js";
|
|
35
|
+
import { storefront as kn } from "./i18n/en.js";
|
|
36
|
+
import { storefront as An } from "./i18n/fr.js";
|
|
37
|
+
import { PoweredByLoczerBadge as jn } from "./components/PoweredByLoczerBadge/index.js";
|
|
38
|
+
import { PlatformFooter as Mn } from "./components/PlatformFooter/index.js";
|
|
39
|
+
import { useWhatsAppFloatingButton as Nn } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
|
|
40
|
+
import { WhatsAppFloatingButton as Pn } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
41
41
|
import "./components/WhatsAppFloatingButton/index.js";
|
|
42
|
-
import { Layout as
|
|
43
|
-
import { DelayedPlaceholder as
|
|
44
|
-
import { BookingPeriodProvider as
|
|
45
|
-
import { Label as
|
|
46
|
-
import { BookingStartDateField as
|
|
47
|
-
import { BookingStartTimeField as
|
|
48
|
-
import { BookingEndDateField as
|
|
49
|
-
import { BookingEndTimeField as
|
|
50
|
-
import { BookingTimeSlotsStatus as
|
|
51
|
-
import { BookingMobileDateDrawer as
|
|
52
|
-
import { BookingPeriodSelector as
|
|
53
|
-
import { BookingFlowSteps as
|
|
54
|
-
import { Input as
|
|
55
|
-
import { DeliveryAddressSelector as
|
|
56
|
-
import { loader as
|
|
57
|
-
import { Form as
|
|
58
|
-
import { Textarea as
|
|
59
|
-
import { ContactSection as
|
|
60
|
-
import { TestimonialsSection as
|
|
61
|
-
import { AboutSection as
|
|
62
|
-
import { StepSectionTitle as
|
|
63
|
-
import { Card as
|
|
64
|
-
import { ProductWarningNotice as
|
|
65
|
-
import { StorefrontCartPanel as
|
|
66
|
-
import { ProductPriceBadge as
|
|
67
|
-
import { ContractSaleDocument as
|
|
42
|
+
import { Layout as Fn } from "./components/Layout/index.js";
|
|
43
|
+
import { DelayedPlaceholder as In, DelayedReveal as Ln } from "./components/DelayedReveal/index.js";
|
|
44
|
+
import { BookingPeriodProvider as Rn, useBookingPeriod as zn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
45
|
+
import { Label as Bn } from "./ui/label.js";
|
|
46
|
+
import { BookingStartDateField as Vn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
47
|
+
import { BookingStartTimeField as Hn } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
48
|
+
import { BookingEndDateField as Un } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
49
|
+
import { BookingEndTimeField as Wn } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
50
|
+
import { BookingTimeSlotsStatus as Gn } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
|
|
51
|
+
import { BookingMobileDateDrawer as Kn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
|
|
52
|
+
import { BookingPeriodSelector as qn } from "./components/BookingPeriodSelector/index.js";
|
|
53
|
+
import { BookingFlowSteps as Jn } from "./components/BookingFlowSteps/index.js";
|
|
54
|
+
import { Input as Yn } from "./ui/input.js";
|
|
55
|
+
import { DeliveryAddressSelector as Xn } from "./components/DeliveryAddressSelector/index.js";
|
|
56
|
+
import { loader as Zn, useOptionalStorefront as Qn, useStorefront as $n, useStorefrontBookingProducts as er, useStorefrontConfig as tr, useStorefrontProducts as nr, useStorefrontWorkspaceLanguage as rr } from "./StorefrontProvider.js";
|
|
57
|
+
import { Form as ir, FormControl as ar, FormDescription as or, FormField as sr, FormItem as cr, FormLabel as lr, FormMessage as ur, useFormField as dr } from "./ui/form.js";
|
|
58
|
+
import { Textarea as fr } from "./ui/textarea.js";
|
|
59
|
+
import { ContactSection as pr } from "./components/ContactSection/index.js";
|
|
60
|
+
import { TestimonialsSection as mr } from "./components/TestimonialsSection/index.js";
|
|
61
|
+
import { AboutSection as hr } from "./components/AboutSection/index.js";
|
|
62
|
+
import { StepSectionTitle as gr } from "./components/StepSectionTitle/index.js";
|
|
63
|
+
import { Card as _r, CardAction as vr, CardContent as yr, CardDescription as br, CardFooter as xr, CardHeader as Sr, CardTitle as Cr } from "./ui/card.js";
|
|
64
|
+
import { ProductWarningNotice as wr } from "./components/ProductWarningNotice/index.js";
|
|
65
|
+
import { StorefrontCartPanel as Tr } from "./components/StorefrontCartPanel/index.js";
|
|
66
|
+
import { ProductPriceBadge as Er } from "./components/ProductPriceBadge/index.js";
|
|
67
|
+
import { ContractSaleDocument as Dr } from "./components/ContractSaleDocument/Invoice.js";
|
|
68
68
|
import "./components/ContractSaleDocument/index.js";
|
|
69
|
-
import { RadioGroup as
|
|
69
|
+
import { RadioGroup as Or, RadioGroupItem as kr } from "./ui/radio-group.js";
|
|
70
70
|
import "./pages/HomePage.js";
|
|
71
71
|
import "./pages/BookingPage.js";
|
|
72
72
|
import "./pages/ProductPage.js";
|
|
73
73
|
import "./pages/CheckoutPage.js";
|
|
74
74
|
import "./pages/CheckoutSuccessPage.js";
|
|
75
75
|
import "./pages/NotFoundPage.js";
|
|
76
|
-
import { accessories as
|
|
77
|
-
import
|
|
78
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
79
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
80
|
-
import
|
|
81
|
-
import { Select as
|
|
82
|
-
export {
|
|
76
|
+
import { accessories as Ar } from "./data/accessories.js";
|
|
77
|
+
import jr from "./data/bikes.js";
|
|
78
|
+
import { contractSaleDocumentAcceptanceLevelSchema as Mr, contractSaleDocumentAcceptanceRecordSchema as Nr, contractSaleDocumentAcceptanceSchema as Pr, contractSaleDocumentAddressSchema as Fr, contractSaleDocumentAppendixKindSchema as Ir, contractSaleDocumentAppendixSchema as Lr, contractSaleDocumentContactSchema as Rr, contractSaleDocumentKindSchema as zr, contractSaleDocumentLanguageCodeSchema as Br, contractSaleDocumentLanguageSchema as Vr, contractSaleDocumentLineItemSchema as Hr, contractSaleDocumentRentalSchema as Ur, contractSaleDocumentSchema as Wr, contractSaleDocumentSignatureSchema as Gr } from "./lib/contractSaleDocument.js";
|
|
79
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Kr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as qr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Jr, acceptContractSaleDocumentRequestSchema as Yr, acceptContractSaleDocumentResponseSchema as Xr, contractSaleDocumentAcceptanceInputSchema as Zr, contractSaleDocumentAcceptanceRecordInputSchema as Qr, contractSaleDocumentApiAcceptanceRecordSchema as $r, contractSaleDocumentApiAcceptanceSchema as ei, contractSaleDocumentApiSchema as ti, contractSaleDocumentApiSignatureSchema as ni, contractSaleDocumentReferenceSchema as ri, contractSaleDocumentReferenceTypeSchema as ii, contractSaleDocumentSignatureInputSchema as ai, downloadContractSaleDocumentPdfRequestSchema as oi, getContractSaleDocumentRequestSchema as si, getContractSaleDocumentResponseSchema as ci } from "./lib/contractSaleDocumentApi.js";
|
|
80
|
+
import li from "./routes.js";
|
|
81
|
+
import { Select as ui, SelectContent as di, SelectGroup as fi, SelectIcon as pi, SelectItem as mi, SelectItemIndicator as hi, SelectItemText as gi, SelectLabel as _i, SelectScrollDownButton as vi, SelectScrollUpButton as yi, SelectSeparator as bi, SelectTrigger as xi, SelectValue as Si } from "./ui/select.js";
|
|
82
|
+
export { Kr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, hr as AboutSection, Me as BOOKING_SEARCH_KEYS, wn as Badge, Un as BookingEndDateField, Wn as BookingEndTimeField, Jn as BookingFlowSteps, Kn as BookingMobileDateDrawer, Rn as BookingPeriodProvider, qn as BookingPeriodSelector, Vn as BookingStartDateField, Hn as BookingStartTimeField, Gn as BookingTimeSlotsStatus, En as Button, Ze as CATALOG_PRODUCT_BASE_RATE_UNSET, _r as Card, vr as CardAction, yr as CardContent, br as CardDescription, xr as CardFooter, Sr as CardHeader, Cr as CardTitle, pr as ContactSection, Dr as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, qr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, In as DelayedPlaceholder, Ln as DelayedReveal, Xn as DeliveryAddressSelector, Cn as Footer, ir as Form, ar as FormControl, or as FormDescription, sr as FormField, cr as FormItem, lr as FormLabel, ur as FormMessage, Jr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, On as Header, Yn as Input, Bn as Label, Fn as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, Mn as PlatformFooter, jn as PoweredByLoczerBadge, Er as ProductPriceBadge, wr as ProductWarningNotice, kt as ROUTE, Or as RadioGroup, kr as RadioGroupItem, tn as STOREFRONT_AVAILABILITY_ROUTE, Rt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, he as STOREFRONT_HERO_MODES, hn as STOREFRONT_IMAGE_ROUTE, Wt as STOREFRONT_PRODUCTS_ROUTE, vn as STOREFRONT_TIME_SLOTS_ROUTE, ui as Select, di as SelectContent, fi as SelectGroup, pi as SelectIcon, mi as SelectItem, hi as SelectItemIndicator, gi as SelectItemText, _i as SelectLabel, vi as SelectScrollDownButton, yi as SelectScrollUpButton, bi as SelectSeparator, xi as SelectTrigger, Si as SelectValue, gr as StepSectionTitle, Tr as StorefrontCartPanel, ht as StorefrontCartProvider, Ne as TIME_OPTIONS, mr as TestimonialsSection, fr as Textarea, Pn as WhatsAppFloatingButton, Yr as acceptContractSaleDocumentRequestSchema, Xr as acceptContractSaleDocumentResponseSchema, Ar as accessories, g as accessoryProductSchema, Pe as applyBookingParamsToSearch, Tn as badgeVariants, ue as baseAssetSchema, de as baseAssetStatusSchema, fe as baseBookingItemSchema, pe as baseBookingSchema, me as baseBookingStateSchema, _ as bikeProductSchema, jr as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, St as buildDailyPriceRows, Ct as buildPriceTierLabels, nn as buildStorefrontAvailabilityKey, Ot as buildStorefrontCartSummary, gn as buildStorefrontImageUrl, Qe as buildStorefrontProductSlug, $e as buildVariantStorefrontProductId, Ft as buildWhatsAppHref, Dn as buttonVariants, wt as calculateDailyPriceForQuantity, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, vt as cn, et as compareCatalogProducts, tt as compareStorefrontAccessoryProducts, nt as compareStorefrontBikeProducts, Zr as contractSaleDocumentAcceptanceInputSchema, Mr as contractSaleDocumentAcceptanceLevelSchema, Qr as contractSaleDocumentAcceptanceRecordInputSchema, Nr as contractSaleDocumentAcceptanceRecordSchema, Pr as contractSaleDocumentAcceptanceSchema, Fr as contractSaleDocumentAddressSchema, $r as contractSaleDocumentApiAcceptanceRecordSchema, ei as contractSaleDocumentApiAcceptanceSchema, ti as contractSaleDocumentApiSchema, ni as contractSaleDocumentApiSignatureSchema, Ir as contractSaleDocumentAppendixKindSchema, Lr as contractSaleDocumentAppendixSchema, Rr as contractSaleDocumentContactSchema, zr as contractSaleDocumentKindSchema, Br as contractSaleDocumentLanguageCodeSchema, Vr as contractSaleDocumentLanguageSchema, Hr as contractSaleDocumentLineItemSchema, ri as contractSaleDocumentReferenceSchema, ii as contractSaleDocumentReferenceTypeSchema, Ur as contractSaleDocumentRentalSchema, Wr as contractSaleDocumentSchema, ai as contractSaleDocumentSignatureInputSchema, Gr as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Fe as createBookingPeriodConfigFromBookingEngineConfiguration, Ie as createBookingPeriodConfigFromShopConfiguration, Le as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, rn as doesStorefrontAvailabilityDisplaySoldOut, oi as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, rt as findStorefrontProduct, it as findStorefrontProductBySlug, yt as formatPriceMinor, Mt as formatStorefrontPhoneDisplay, Tt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, bt as getAvailabilityVariant, Re as getBookingDurationLabel, ze as getBookingDurationMinutes, Be as getBookingParamsFromSearch, Ve as getBookingSessionStorageKey, at as getCatalogProductBaseRateMinor, ot as getCatalogProductPaginationSort, st as getCatalogProductSortFieldForPriceUnit, si as getContractSaleDocumentRequestSchema, ci as getContractSaleDocumentResponseSchema, He as getDefaultBookingParams, Ue as getDefaultBookingParamsForStorefrontConfiguration, Et as getLocalizedEntry, t as getLocalizedStringValue, Dt as getLocalizedValue, xt as getMinDayPriceMinor, an as getStorefrontAvailabilityIssue, on as getStorefrontAvailabilityStatus, ct as getStorefrontBaseDailyRateMinor, lt as getStorefrontCheckoutProductId, ut as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, sn as isStorefrontAvailabilityInsufficient, j as isoDateSchema, Zn as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, We as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, cn as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ge as readBookingSearchParamsFromSessionStorage, Ke as readBookingSearchParamsFromStorage, At as requestSchema, ne as resolveBookingDeliveryOption, qe as resolveBookingSearchParams, Je as resolveBookingSearchParamsFromSessionStorage, gt as resolveStorefrontCartItemProduct, Nt as resolveStorefrontMapsHref, Pt as resolveStorefrontPhoneContact, It as resolveStorefrontWhatsAppContact, Lt as resolveStorefrontWhatsAppHref, jt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, dn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, fn as storefrontAvailabilityProductSchema, ln as storefrontAvailabilityRequestSchema, un as storefrontAvailabilityResponseSchema, pn as storefrontAvailabilityScheduleSchema, ge as storefrontCheckoutModeSchema, Vt as storefrontCheckoutSubmitDeliveryRefinement, Bt as storefrontCheckoutSubmitItemSchema, zt as storefrontCheckoutSubmitRequestBaseSchema, Ht as storefrontCheckoutSubmitRequestSchema, Ut as storefrontCheckoutSubmitResponseSchema, _e as storefrontConfigurationSchema, ve as storefrontContentSchema, kn as storefrontEn, ye as storefrontFaqItemSchema, be as storefrontFaqSchema, An as storefrontFr, xe as storefrontFulfillmentModeSchema, Se as storefrontHeroModeSchema, _n as storefrontImageRequestSchema, Ce as storefrontLocalizedRichTextSchema, we as storefrontModalMessageSchema, Te as storefrontModulesSchema, Gt as storefrontProductsRequestSchema, Kt as storefrontProductsResponseSchema, qt as storefrontPublicAccessoryProductSchema, mn as storefrontPublicAvailabilityRecordSchema, Jt as storefrontPublicBikeAvailabilityStatusSchema, Yt as storefrontPublicBikeProductSchema, Xt as storefrontPublicProductDisplayModeSchema, Zt as storefrontPublicProductPriceSchema, Qt as storefrontPublicProductVariantAttributeSchema, $t as storefrontPublicProductVariantIdentifierSchema, en as storefrontPublicProductVariantSchema, Ee as storefrontReviewsModuleSchema, De as storefrontRichTextSchema, li as storefrontRoutes, Oe as storefrontSettingsSchema, ke as storefrontShopSchema, Ae as storefrontStatusSchema, Sn as storefrontTimeSlotJourneySchema, xn as storefrontTimeSlotSchema, yn as storefrontTimeSlotsRequestSchema, bn as storefrontTimeSlotsResponseSchema, je as storefrontWorkspaceSchema, z as timeOfDaySchema, dt as toStorefrontAccessoryProducts, ft as toStorefrontBikeProducts, pt as toStorefrontBookingProducts, mt as toStorefrontBookingProductsCollections, zn as useBookingPeriod, dr as useFormField, Qn as useOptionalStorefront, $n as useStorefront, er as useStorefrontBookingProducts, _t as useStorefrontCart, tr as useStorefrontConfig, nr as useStorefrontProducts, rr as useStorefrontWorkspaceLanguage, Nn as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Ye as writeBookingSearchParamsToSessionStorage, Xe as writeBookingSearchParamsToStorage };
|
package/dist/lib/booking.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js";
|
|
2
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
2
|
+
import "../chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
|
|
3
3
|
import { getDefaultBookingPeriod as t, parseTimeToMinutes as n } from "./booking-period.js";
|
|
4
4
|
import { differenceInMinutes as r, format as i } from "date-fns";
|
|
5
5
|
//#region src/lib/booking.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-
|
|
1
|
+
import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-iVSHRdn4.js";
|
|
2
2
|
import { DEFAULT_BOOKING_DELIVERY_OPTION as t, bookingScheduleInputSchema as n } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1_Wmkca.js";
|
|
3
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
3
|
+
import "../chunks/pkg/booking-engine/dist/schemas-BfXM1Dgb.js";
|
|
4
4
|
import { storefrontFulfillmentModeSchema as r } from "../storefrontSchemas.js";
|
|
5
5
|
import { MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE as i, checkoutPaymentErrorCodeSchema as a } from "./checkoutPaymentDecision.js";
|
|
6
6
|
import { z as o } from "zod";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookingPage.d.ts","sourceRoot":"","sources":["../../src/pages/BookingPage.tsx"],"names":[],"mappings":"AA4QA,MAAM,CAAC,OAAO,UAAU,WAAW,
|
|
1
|
+
{"version":3,"file":"BookingPage.d.ts","sourceRoot":"","sources":["../../src/pages/BookingPage.tsx"],"names":[],"mappings":"AA4QA,MAAM,CAAC,OAAO,UAAU,WAAW,4CAsoBlC"}
|