@loczer/storefront-sdk 0.236.0 → 0.237.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/components/FaqSection/index.d.ts +2 -0
- package/dist/components/FaqSection/index.d.ts.map +1 -0
- package/dist/components/FaqSection/index.js +76 -0
- package/dist/components/StorefrontCartPanel/index.d.ts +2 -1
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -1
- package/dist/components/StorefrontCartPanel/index.js +42 -38
- package/dist/components/StorefrontInsuranceNotice/index.d.ts.map +1 -1
- package/dist/components/StorefrontInsuranceNotice/index.js +3 -12
- package/dist/i18n/en.d.ts +3 -2
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +3 -2
- package/dist/i18n/fr.d.ts +3 -2
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +3 -2
- package/dist/index.d.ts +14 -5
- package/dist/index.js +27 -26
- package/dist/lib/storefrontProducts.d.ts +4 -0
- package/dist/lib/storefrontProducts.d.ts.map +1 -1
- package/dist/lib/storefrontProducts.js +2 -0
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +7 -0
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +397 -388
- package/dist/pages/checkout/components/CheckoutBookingPeriodSummary.d.ts +9 -0
- package/dist/pages/checkout/components/CheckoutBookingPeriodSummary.d.ts.map +1 -0
- package/dist/pages/checkout/components/CheckoutBookingPeriodSummary.js +83 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +3 -1
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +34 -32
- package/dist/storefront.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61,38 +61,39 @@ import { DeliveryAddressSelector as Nr } from "./components/DeliveryAddressSelec
|
|
|
61
61
|
import { Form as Pr, FormControl as Fr, FormDescription as Ir, FormField as Lr, FormItem as Rr, FormLabel as zr, FormMessage as Br, useFormField as Vr } from "./ui/form.js";
|
|
62
62
|
import { Textarea as Hr } from "./ui/textarea.js";
|
|
63
63
|
import { ContactSection as Ur } from "./components/ContactSection/index.js";
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
64
|
+
import { FaqSection as Wr } from "./components/FaqSection/index.js";
|
|
65
|
+
import { TestimonialsSection as Gr } from "./components/TestimonialsSection/index.js";
|
|
66
|
+
import { AboutSection as Kr } from "./components/AboutSection/index.js";
|
|
67
|
+
import { AdminFloatingButton as qr } from "./components/AdminFloatingButton/AdminFloatingButton.js";
|
|
67
68
|
import "./components/AdminFloatingButton/index.js";
|
|
68
|
-
import { ItineraryListItem as
|
|
69
|
-
import { ItineraryRouteMap as
|
|
70
|
-
import { ItinerariesSection as
|
|
69
|
+
import { ItineraryListItem as Jr } from "./components/Itineraries/ItineraryListItem.js";
|
|
70
|
+
import { ItineraryRouteMap as Yr } from "./components/Itineraries/ItineraryRouteMap.js";
|
|
71
|
+
import { ItinerariesSection as Xr } from "./components/Itineraries/ItinerariesSection.js";
|
|
71
72
|
import "./components/Itineraries/index.js";
|
|
72
|
-
import { StepSectionTitle as
|
|
73
|
-
import { Card as
|
|
74
|
-
import { ProductWarningNotice as
|
|
75
|
-
import { StorefrontCartPanel as
|
|
76
|
-
import { ProductPriceBadge as
|
|
77
|
-
import { ContractSaleDocument as
|
|
73
|
+
import { StepSectionTitle as Zr } from "./components/StepSectionTitle/index.js";
|
|
74
|
+
import { Card as Qr, CardAction as $r, CardContent as ei, CardDescription as ti, CardFooter as ni, CardHeader as ri, CardTitle as ii } from "./ui/card.js";
|
|
75
|
+
import { ProductWarningNotice as ai } from "./components/ProductWarningNotice/index.js";
|
|
76
|
+
import { StorefrontCartPanel as oi } from "./components/StorefrontCartPanel/index.js";
|
|
77
|
+
import { ProductPriceBadge as si } from "./components/ProductPriceBadge/index.js";
|
|
78
|
+
import { ContractSaleDocument as ci } from "./components/ContractSaleDocument/Invoice.js";
|
|
78
79
|
import "./components/ContractSaleDocument/index.js";
|
|
79
|
-
import { SignatureInput as
|
|
80
|
-
import { RadioGroup as
|
|
80
|
+
import { SignatureInput as li } from "./components/SignatureInput/index.js";
|
|
81
|
+
import { RadioGroup as ui, RadioGroupItem as di } from "./ui/radio-group.js";
|
|
81
82
|
import "./pages/HomePage.js";
|
|
82
83
|
import "./pages/BookingPage.js";
|
|
83
84
|
import "./pages/ProductPage.js";
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
85
|
+
import fi from "./pages/ItinerariesPage.js";
|
|
86
|
+
import pi, { loader as mi } from "./pages/ItineraryDetailsPage.js";
|
|
87
|
+
import hi from "./pages/RentalTermsPage.js";
|
|
88
|
+
import gi from "./pages/InsuranceTermsPage.js";
|
|
88
89
|
import "./pages/CheckoutPage.js";
|
|
89
90
|
import "./pages/CheckoutSuccessPage.js";
|
|
90
91
|
import "./pages/NotFoundPage.js";
|
|
91
|
-
import { accessories as
|
|
92
|
-
import
|
|
93
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
94
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
95
|
-
import
|
|
96
|
-
import { loader as
|
|
97
|
-
import { Select as
|
|
98
|
-
export { Mi as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Gr as AboutSection, Kr as AdminFloatingButton, Le as BOOKING_SEARCH_KEYS, Zn as Badge, Er as BookingEndDateField, Dr as BookingEndTimeField, jr as BookingFlowSteps, kr as BookingMobileDateDrawer, xr as BookingPeriodProvider, Ar as BookingPeriodSelector, wr as BookingStartDateField, Tr as BookingStartTimeField, Or as BookingTimeSlotsStatus, $n as Button, nt as CATALOG_PRODUCT_BASE_RATE_UNSET, Zr as Card, Qr as CardAction, $r as CardContent, ei as CardDescription, ti as CardFooter, ni as CardHeader, ri as CardTitle, Ur as ContactSection, si as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Ni as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, yr as DelayedPlaceholder, br as DelayedReveal, Nr as DeliveryAddressSelector, Xn as Footer, Pr as Form, Fr as FormControl, Ir as FormDescription, Lr as FormField, Rr as FormItem, zr as FormLabel, Br as FormMessage, Pi as GET_CONTRACT_SALE_DOCUMENT_ROUTE, dr as Header, Mr as Input, hi as InsuranceTermsPage, di as ItinerariesPage, Yr as ItinerariesSection, fi as ItineraryDetailsPage, qr as ItineraryListItem, Jr as ItineraryRouteMap, Cr as Label, nr as LanguageSelector, vr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, hr as PlatformFooter, mr as PoweredByLoczerBadge, oi as ProductPriceBadge, ii as ProductWarningNotice, Lt as ROUTE, li as RadioGroup, ui as RadioGroupItem, mi as RentalTermsPage, kn as STOREFRONT_AVAILABILITY_ROUTE, fn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ye as STOREFRONT_HERO_MODES, Hn as STOREFRONT_IMAGE_ROUTE, Ut as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Wt as STOREFRONT_ITINERARIES_LIST_ROUTE, Gt as STOREFRONT_ITINERARY_DETAIL_ROUTE, vn as STOREFRONT_PRODUCTS_ROUTE, Gn as STOREFRONT_TIME_SLOTS_ROUTE, Zi as Select, Qi as SelectContent, $i as SelectGroup, ea as SelectIcon, ta as SelectItem, na as SelectItemIndicator, ra as SelectItemText, ia as SelectLabel, aa as SelectScrollDownButton, oa as SelectScrollUpButton, sa as SelectSeparator, ca as SelectTrigger, la as SelectValue, ci as SignatureInput, Xr as StepSectionTitle, ai as StorefrontCartPanel, St as StorefrontCartProvider, rr as StorefrontContext, Re as TIME_OPTIONS, Wr as TestimonialsSection, Hr as Textarea, _r as WhatsAppFloatingButton, Fi as acceptContractSaleDocumentRequestSchema, Ii as acceptContractSaleDocumentResponseSchema, gi as accessories, _ as accessoryProductSchema, ze as applyBookingParamsToSearch, pe as assetIdSchema, Qn as badgeVariants, me as baseAssetSchema, he as baseAssetStatusSchema, ge as baseBookingItemSchema, _e as baseBookingSchema, ve as baseBookingStateSchema, v as bikeProductSchema, _i as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, kt as buildPriceTierLabels, At as buildRentalPriceRows, An as buildStorefrontAvailabilityKey, It as buildStorefrontCartSummary, Un as buildStorefrontImageUrl, rt as buildStorefrontProductSlug, it as buildVariantStorefrontProductId, ln as buildWhatsAppHref, er as buttonVariants, jt as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, Mt as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, Tt as cn, at as compareCatalogProducts, ot as compareStorefrontAccessoryProducts, st as compareStorefrontBikeProducts, Li as contractSaleDocumentAcceptanceInputSchema, vi as contractSaleDocumentAcceptanceLevelSchema, Ri as contractSaleDocumentAcceptanceRecordInputSchema, yi as contractSaleDocumentAcceptanceRecordSchema, bi as contractSaleDocumentAcceptanceSchema, xi as contractSaleDocumentAddressSchema, zi as contractSaleDocumentApiAcceptanceRecordSchema, Bi as contractSaleDocumentApiAcceptanceSchema, Vi as contractSaleDocumentApiSchema, Hi as contractSaleDocumentApiSignatureSchema, Si as contractSaleDocumentAppendixKindSchema, Ci as contractSaleDocumentAppendixSchema, wi as contractSaleDocumentContactSchema, Ti as contractSaleDocumentKindSchema, Ei as contractSaleDocumentLanguageCodeSchema, Di as contractSaleDocumentLanguageSchema, Oi as contractSaleDocumentLineItemSchema, Ui as contractSaleDocumentReferenceSchema, Wi as contractSaleDocumentReferenceTypeSchema, ki as contractSaleDocumentRentalSchema, Ai as contractSaleDocumentSchema, Gi as contractSaleDocumentSignatureInputSchema, ji as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Be as createBookingPeriodConfigFromBookingEngineConfiguration, Ve as createBookingPeriodConfigFromShopConfiguration, He as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, jn as doesStorefrontAvailabilityDisplaySoldOut, Ki as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ct as findStorefrontInsurancePricingBike, lt as findStorefrontProduct, ut as findStorefrontProductBySlug, Et as formatPriceMinor, Nt as formatRentalUnitQuantity, Bt as formatStorefrontPhoneDisplay, Pt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, Dt as getAvailabilityVariant, Ue as getBookingParamsFromSearch, We as getBookingSessionStorageKey, dt as getCatalogProductBaseRateMinor, ft as getCatalogProductPaginationSort, pt as getCatalogProductSortFieldForPriceUnit, qi as getContractSaleDocumentRequestSchema, Ji as getContractSaleDocumentResponseSchema, Ge as getDefaultBookingParams, Ke as getDefaultBookingParamsForStorefrontConfiguration, et as getLocalizedEntry, t as getLocalizedStringValue, tt as getLocalizedValue, Ot as getMinDayPriceMinor, Ft as getPricingUnitLabel, Mn as getStorefrontAvailabilityIssue, Nn as getStorefrontAvailabilityStatus, mt as getStorefrontBaseDailyRateMinor, ht as getStorefrontCheckoutProductId, gt as getStorefrontProductSelectionDisplayName, _t as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Pn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, pi as itineraryDetailsLoader, Xi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, qe as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, Fn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Je as readBookingSearchParamsFromSessionStorage, Ye as readBookingSearchParamsFromStorage, Rt as requestSchema, re as resolveBookingDeliveryOption, Xe as resolveBookingSearchParams, Ze as resolveBookingSearchParamsFromSessionStorage, de as resolveOpeningHoursForDate, fe as resolveOpeningHoursPeriodForDate, Ct as resolveStorefrontCartItemProduct, Vt as resolveStorefrontMapsHref, Ht as resolveStorefrontPhoneContact, un as resolveStorefrontWhatsAppContact, dn as resolveStorefrontWhatsAppHref, zt as responseSchema, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, Rn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, zn as storefrontAvailabilityProductSchema, In as storefrontAvailabilityRequestSchema, Ln as storefrontAvailabilityResponseSchema, Bn as storefrontAvailabilityScheduleSchema, tr as storefrontButtonRadiusClassName, be as storefrontCheckoutModeSchema, hn as storefrontCheckoutSubmitDeliveryRefinement, mn as storefrontCheckoutSubmitItemSchema, pn as storefrontCheckoutSubmitRequestBaseSchema, gn as storefrontCheckoutSubmitRequestSchema, _n as storefrontCheckoutSubmitResponseSchema, xe as storefrontConfigurationSchema, Se as storefrontContentSchema, fr as storefrontEn, Ce as storefrontFaqItemSchema, we as storefrontFaqSchema, pr as storefrontFr, Te as storefrontFulfillmentModeSchema, Ee as storefrontHeroModeSchema, Wn as storefrontImageRequestSchema, De as storefrontInformationSchema, Kt as storefrontItinerariesFeaturedRequestSchema, qt as storefrontItinerariesFeaturedResponseSchema, Jt as storefrontItinerariesListRequestSchema, Yt as storefrontItinerariesListResponseSchema, Xt as storefrontItineraryBoundsSchema, Zt as storefrontItineraryCoordinateSchema, Qt as storefrontItineraryDetailRequestSchema, $t as storefrontItineraryDetailResponseSchema, en as storefrontItineraryDetailSchema, tn as storefrontItineraryDifficultySchema, nn as storefrontItineraryLocalizedStringSchema, rn as storefrontItineraryMetricsSchema, an as storefrontItineraryPreviewSchema, on as storefrontItineraryStepSchema, sn as storefrontItinerarySummarySchema, cn as storefrontItineraryTripTypeSchema, Oe as storefrontLocalizedRichTextSchema, ke as storefrontModalMessageSchema, Ae as storefrontModulesSchema, yn as storefrontProductsRequestSchema, bn as storefrontProductsResponseSchema, xn as storefrontPublicAccessoryProductSchema, Vn as storefrontPublicAvailabilityRecordSchema, Sn as storefrontPublicBikeAvailabilityStatusSchema, Cn as storefrontPublicBikeProductSchema, wn as storefrontPublicProductDisplayModeSchema, Tn as storefrontPublicProductPriceSchema, En as storefrontPublicProductVariantAttributeSchema, Dn as storefrontPublicProductVariantIdentifierSchema, On as storefrontPublicProductVariantSchema, je as storefrontReviewsModuleSchema, Me as storefrontRichTextSchema, Yi as storefrontRoutes, Ne as storefrontSettingsSchema, Pe as storefrontShopSchema, Fe as storefrontStatusSchema, Yn as storefrontTimeSlotJourneySchema, Jn as storefrontTimeSlotSchema, Kn as storefrontTimeSlotsRequestSchema, qn as storefrontTimeSlotsResponseSchema, Ie as storefrontWorkspaceSchema, B as timeOfDaySchema, vt as toStorefrontAccessoryProducts, yt as toStorefrontBikeProducts, bt as toStorefrontBookingProducts, xt as toStorefrontBookingProductsCollections, Sr as useBookingPeriod, Vr as useFormField, ir as useOptionalStorefront, ar as useStorefront, or as useStorefrontBookingProducts, wt as useStorefrontCart, sr as useStorefrontConfig, cr as useStorefrontItineraries, lr as useStorefrontProducts, ur as useStorefrontWorkspaceLanguage, gr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Qe as writeBookingSearchParamsToSessionStorage, $e as writeBookingSearchParamsToStorage };
|
|
92
|
+
import { accessories as _i } from "./data/accessories.js";
|
|
93
|
+
import vi from "./data/bikes.js";
|
|
94
|
+
import { contractSaleDocumentAcceptanceLevelSchema as yi, contractSaleDocumentAcceptanceRecordSchema as bi, contractSaleDocumentAcceptanceSchema as xi, contractSaleDocumentAddressSchema as Si, contractSaleDocumentAppendixKindSchema as Ci, contractSaleDocumentAppendixSchema as wi, contractSaleDocumentContactSchema as Ti, contractSaleDocumentKindSchema as Ei, contractSaleDocumentLanguageCodeSchema as Di, contractSaleDocumentLanguageSchema as Oi, contractSaleDocumentLineItemSchema as ki, contractSaleDocumentRentalSchema as Ai, contractSaleDocumentSchema as ji, contractSaleDocumentSignatureSchema as Mi } from "./lib/contractSaleDocument.js";
|
|
95
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Ni, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Pi, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Fi, acceptContractSaleDocumentRequestSchema as Ii, acceptContractSaleDocumentResponseSchema as Li, contractSaleDocumentAcceptanceInputSchema as Ri, contractSaleDocumentAcceptanceRecordInputSchema as zi, contractSaleDocumentApiAcceptanceRecordSchema as Bi, contractSaleDocumentApiAcceptanceSchema as Vi, contractSaleDocumentApiSchema as Hi, contractSaleDocumentApiSignatureSchema as Ui, contractSaleDocumentReferenceSchema as Wi, contractSaleDocumentReferenceTypeSchema as Gi, contractSaleDocumentSignatureInputSchema as Ki, downloadContractSaleDocumentPdfRequestSchema as qi, getContractSaleDocumentRequestSchema as Ji, getContractSaleDocumentResponseSchema as Yi } from "./lib/contractSaleDocumentApi.js";
|
|
96
|
+
import Xi from "./routes.js";
|
|
97
|
+
import { loader as Zi } from "./StorefrontProvider.js";
|
|
98
|
+
import { Select as Qi, SelectContent as $i, SelectGroup as ea, SelectIcon as ta, SelectItem as na, SelectItemIndicator as ra, SelectItemText as ia, SelectLabel as aa, SelectScrollDownButton as oa, SelectScrollUpButton as sa, SelectSeparator as ca, SelectTrigger as la, SelectValue as ua } from "./ui/select.js";
|
|
99
|
+
export { Ni as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Kr as AboutSection, qr as AdminFloatingButton, Le as BOOKING_SEARCH_KEYS, Zn as Badge, Er as BookingEndDateField, Dr as BookingEndTimeField, jr as BookingFlowSteps, kr as BookingMobileDateDrawer, xr as BookingPeriodProvider, Ar as BookingPeriodSelector, wr as BookingStartDateField, Tr as BookingStartTimeField, Or as BookingTimeSlotsStatus, $n as Button, nt as CATALOG_PRODUCT_BASE_RATE_UNSET, Qr as Card, $r as CardAction, ei as CardContent, ti as CardDescription, ni as CardFooter, ri as CardHeader, ii as CardTitle, Ur as ContactSection, ci as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Pi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, yr as DelayedPlaceholder, br as DelayedReveal, Nr as DeliveryAddressSelector, Wr as FaqSection, Xn as Footer, Pr as Form, Fr as FormControl, Ir as FormDescription, Lr as FormField, Rr as FormItem, zr as FormLabel, Br as FormMessage, Fi as GET_CONTRACT_SALE_DOCUMENT_ROUTE, dr as Header, Mr as Input, gi as InsuranceTermsPage, fi as ItinerariesPage, Xr as ItinerariesSection, pi as ItineraryDetailsPage, Jr as ItineraryListItem, Yr as ItineraryRouteMap, Cr as Label, nr as LanguageSelector, vr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, hr as PlatformFooter, mr as PoweredByLoczerBadge, si as ProductPriceBadge, ai as ProductWarningNotice, Lt as ROUTE, ui as RadioGroup, di as RadioGroupItem, hi as RentalTermsPage, kn as STOREFRONT_AVAILABILITY_ROUTE, fn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ye as STOREFRONT_HERO_MODES, Hn as STOREFRONT_IMAGE_ROUTE, Ut as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Wt as STOREFRONT_ITINERARIES_LIST_ROUTE, Gt as STOREFRONT_ITINERARY_DETAIL_ROUTE, vn as STOREFRONT_PRODUCTS_ROUTE, Gn as STOREFRONT_TIME_SLOTS_ROUTE, Qi as Select, $i as SelectContent, ea as SelectGroup, ta as SelectIcon, na as SelectItem, ra as SelectItemIndicator, ia as SelectItemText, aa as SelectLabel, oa as SelectScrollDownButton, sa as SelectScrollUpButton, ca as SelectSeparator, la as SelectTrigger, ua as SelectValue, li as SignatureInput, Zr as StepSectionTitle, oi as StorefrontCartPanel, St as StorefrontCartProvider, rr as StorefrontContext, Re as TIME_OPTIONS, Gr as TestimonialsSection, Hr as Textarea, _r as WhatsAppFloatingButton, Ii as acceptContractSaleDocumentRequestSchema, Li as acceptContractSaleDocumentResponseSchema, _i as accessories, _ as accessoryProductSchema, ze as applyBookingParamsToSearch, pe as assetIdSchema, Qn as badgeVariants, me as baseAssetSchema, he as baseAssetStatusSchema, ge as baseBookingItemSchema, _e as baseBookingSchema, ve as baseBookingStateSchema, v as bikeProductSchema, vi as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, kt as buildPriceTierLabels, At as buildRentalPriceRows, An as buildStorefrontAvailabilityKey, It as buildStorefrontCartSummary, Un as buildStorefrontImageUrl, rt as buildStorefrontProductSlug, it as buildVariantStorefrontProductId, ln as buildWhatsAppHref, er as buttonVariants, jt as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, Mt as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, Tt as cn, at as compareCatalogProducts, ot as compareStorefrontAccessoryProducts, st as compareStorefrontBikeProducts, Ri as contractSaleDocumentAcceptanceInputSchema, yi as contractSaleDocumentAcceptanceLevelSchema, zi as contractSaleDocumentAcceptanceRecordInputSchema, bi as contractSaleDocumentAcceptanceRecordSchema, xi as contractSaleDocumentAcceptanceSchema, Si as contractSaleDocumentAddressSchema, Bi as contractSaleDocumentApiAcceptanceRecordSchema, Vi as contractSaleDocumentApiAcceptanceSchema, Hi as contractSaleDocumentApiSchema, Ui as contractSaleDocumentApiSignatureSchema, Ci as contractSaleDocumentAppendixKindSchema, wi as contractSaleDocumentAppendixSchema, Ti as contractSaleDocumentContactSchema, Ei as contractSaleDocumentKindSchema, Di as contractSaleDocumentLanguageCodeSchema, Oi as contractSaleDocumentLanguageSchema, ki as contractSaleDocumentLineItemSchema, Wi as contractSaleDocumentReferenceSchema, Gi as contractSaleDocumentReferenceTypeSchema, Ai as contractSaleDocumentRentalSchema, ji as contractSaleDocumentSchema, Ki as contractSaleDocumentSignatureInputSchema, Mi as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Be as createBookingPeriodConfigFromBookingEngineConfiguration, Ve as createBookingPeriodConfigFromShopConfiguration, He as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, jn as doesStorefrontAvailabilityDisplaySoldOut, qi as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ct as findStorefrontInsurancePricingBike, lt as findStorefrontProduct, ut as findStorefrontProductBySlug, Et as formatPriceMinor, Nt as formatRentalUnitQuantity, Bt as formatStorefrontPhoneDisplay, Pt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, Dt as getAvailabilityVariant, Ue as getBookingParamsFromSearch, We as getBookingSessionStorageKey, dt as getCatalogProductBaseRateMinor, ft as getCatalogProductPaginationSort, pt as getCatalogProductSortFieldForPriceUnit, Ji as getContractSaleDocumentRequestSchema, Yi as getContractSaleDocumentResponseSchema, Ge as getDefaultBookingParams, Ke as getDefaultBookingParamsForStorefrontConfiguration, et as getLocalizedEntry, t as getLocalizedStringValue, tt as getLocalizedValue, Ot as getMinDayPriceMinor, Ft as getPricingUnitLabel, Mn as getStorefrontAvailabilityIssue, Nn as getStorefrontAvailabilityStatus, mt as getStorefrontBaseDailyRateMinor, ht as getStorefrontCheckoutProductId, gt as getStorefrontProductSelectionDisplayName, _t as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Pn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, mi as itineraryDetailsLoader, Zi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, qe as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, Fn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Je as readBookingSearchParamsFromSessionStorage, Ye as readBookingSearchParamsFromStorage, Rt as requestSchema, re as resolveBookingDeliveryOption, Xe as resolveBookingSearchParams, Ze as resolveBookingSearchParamsFromSessionStorage, de as resolveOpeningHoursForDate, fe as resolveOpeningHoursPeriodForDate, Ct as resolveStorefrontCartItemProduct, Vt as resolveStorefrontMapsHref, Ht as resolveStorefrontPhoneContact, un as resolveStorefrontWhatsAppContact, dn as resolveStorefrontWhatsAppHref, zt as responseSchema, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, Rn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, zn as storefrontAvailabilityProductSchema, In as storefrontAvailabilityRequestSchema, Ln as storefrontAvailabilityResponseSchema, Bn as storefrontAvailabilityScheduleSchema, tr as storefrontButtonRadiusClassName, be as storefrontCheckoutModeSchema, hn as storefrontCheckoutSubmitDeliveryRefinement, mn as storefrontCheckoutSubmitItemSchema, pn as storefrontCheckoutSubmitRequestBaseSchema, gn as storefrontCheckoutSubmitRequestSchema, _n as storefrontCheckoutSubmitResponseSchema, xe as storefrontConfigurationSchema, Se as storefrontContentSchema, fr as storefrontEn, Ce as storefrontFaqItemSchema, we as storefrontFaqSchema, pr as storefrontFr, Te as storefrontFulfillmentModeSchema, Ee as storefrontHeroModeSchema, Wn as storefrontImageRequestSchema, De as storefrontInformationSchema, Kt as storefrontItinerariesFeaturedRequestSchema, qt as storefrontItinerariesFeaturedResponseSchema, Jt as storefrontItinerariesListRequestSchema, Yt as storefrontItinerariesListResponseSchema, Xt as storefrontItineraryBoundsSchema, Zt as storefrontItineraryCoordinateSchema, Qt as storefrontItineraryDetailRequestSchema, $t as storefrontItineraryDetailResponseSchema, en as storefrontItineraryDetailSchema, tn as storefrontItineraryDifficultySchema, nn as storefrontItineraryLocalizedStringSchema, rn as storefrontItineraryMetricsSchema, an as storefrontItineraryPreviewSchema, on as storefrontItineraryStepSchema, sn as storefrontItinerarySummarySchema, cn as storefrontItineraryTripTypeSchema, Oe as storefrontLocalizedRichTextSchema, ke as storefrontModalMessageSchema, Ae as storefrontModulesSchema, yn as storefrontProductsRequestSchema, bn as storefrontProductsResponseSchema, xn as storefrontPublicAccessoryProductSchema, Vn as storefrontPublicAvailabilityRecordSchema, Sn as storefrontPublicBikeAvailabilityStatusSchema, Cn as storefrontPublicBikeProductSchema, wn as storefrontPublicProductDisplayModeSchema, Tn as storefrontPublicProductPriceSchema, En as storefrontPublicProductVariantAttributeSchema, Dn as storefrontPublicProductVariantIdentifierSchema, On as storefrontPublicProductVariantSchema, je as storefrontReviewsModuleSchema, Me as storefrontRichTextSchema, Xi as storefrontRoutes, Ne as storefrontSettingsSchema, Pe as storefrontShopSchema, Fe as storefrontStatusSchema, Yn as storefrontTimeSlotJourneySchema, Jn as storefrontTimeSlotSchema, Kn as storefrontTimeSlotsRequestSchema, qn as storefrontTimeSlotsResponseSchema, Ie as storefrontWorkspaceSchema, B as timeOfDaySchema, vt as toStorefrontAccessoryProducts, yt as toStorefrontBikeProducts, bt as toStorefrontBookingProducts, xt as toStorefrontBookingProductsCollections, Sr as useBookingPeriod, Vr as useFormField, ir as useOptionalStorefront, ar as useStorefront, or as useStorefrontBookingProducts, wt as useStorefrontCart, sr as useStorefrontConfig, cr as useStorefrontItineraries, lr as useStorefrontProducts, ur as useStorefrontWorkspaceLanguage, gr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Qe as writeBookingSearchParamsToSessionStorage, $e as writeBookingSearchParamsToStorage };
|
|
@@ -121,6 +121,7 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
|
|
|
121
121
|
quantity: z.ZodNumber;
|
|
122
122
|
currency: z.ZodOptional<z.ZodString>;
|
|
123
123
|
}, z.core.$strip>>>;
|
|
124
|
+
depositAmount: z.ZodDefault<z.ZodNumber>;
|
|
124
125
|
insurance: z.ZodOptional<z.ZodObject<{
|
|
125
126
|
enabled: z.ZodBoolean;
|
|
126
127
|
pricePerDayMinor: z.ZodNumber;
|
|
@@ -200,6 +201,7 @@ export declare const storefrontPublicAccessoryProductSchema: z.ZodObject<{
|
|
|
200
201
|
quantity: z.ZodNumber;
|
|
201
202
|
currency: z.ZodOptional<z.ZodString>;
|
|
202
203
|
}, z.core.$strip>>;
|
|
204
|
+
depositAmount: z.ZodDefault<z.ZodNumber>;
|
|
203
205
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
204
206
|
value: z.ZodString;
|
|
205
207
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -281,6 +283,7 @@ export declare const responseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
281
283
|
quantity: z.ZodNumber;
|
|
282
284
|
currency: z.ZodOptional<z.ZodString>;
|
|
283
285
|
}, z.core.$strip>>>;
|
|
286
|
+
depositAmount: z.ZodDefault<z.ZodNumber>;
|
|
284
287
|
insurance: z.ZodOptional<z.ZodObject<{
|
|
285
288
|
enabled: z.ZodBoolean;
|
|
286
289
|
pricePerDayMinor: z.ZodNumber;
|
|
@@ -359,6 +362,7 @@ export declare const responseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
359
362
|
quantity: z.ZodNumber;
|
|
360
363
|
currency: z.ZodOptional<z.ZodString>;
|
|
361
364
|
}, z.core.$strip>>;
|
|
365
|
+
depositAmount: z.ZodDefault<z.ZodNumber>;
|
|
362
366
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
363
367
|
value: z.ZodString;
|
|
364
368
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storefrontProducts.d.ts","sourceRoot":"","sources":["../../src/lib/storefrontProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAevB,eAAO,MAAM,kCAAkC;;;;;;;;;;;iBAK7C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAE7F,eAAO,MAAM,sCAAsC;;;;;iBAKjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,8CAA8C;;;iBAGzD,CAAA;AACF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8CAA8C,CAAC,CAAA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAejD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,KAAK,oCAAoC,CAAA;AAEtD,eAAO,MAAM,aAAa;;iBAExB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAC1D,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAA;AAE7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAYzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAC5D,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAA"}
|
|
@@ -58,6 +58,7 @@ var t = e.object({
|
|
|
58
58
|
images: e.array(e.string().trim().min(1)).optional(),
|
|
59
59
|
primaryImageStyle: m.optional(),
|
|
60
60
|
prices: e.array(a).optional(),
|
|
61
|
+
depositAmount: e.number().int().min(0).default(0),
|
|
61
62
|
insurance: o.optional(),
|
|
62
63
|
features: e.array(n).optional(),
|
|
63
64
|
productVariants: e.array(l).min(1),
|
|
@@ -74,6 +75,7 @@ var t = e.object({
|
|
|
74
75
|
images: e.array(e.string().trim().min(1)).optional(),
|
|
75
76
|
primaryImageStyle: m.optional(),
|
|
76
77
|
prices: e.array(a),
|
|
78
|
+
depositAmount: e.number().int().min(0).default(0),
|
|
77
79
|
features: e.array(n).optional(),
|
|
78
80
|
productVariants: e.array(l).min(1),
|
|
79
81
|
storefrontDisplayMode: p.default("variant_selector")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAqFA,MAAM,CAAC,OAAO,UAAU,YAAY,
|
|
1
|
+
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAqFA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAspBnC"}
|
|
@@ -405,6 +405,13 @@ function p() {
|
|
|
405
405
|
vatAmountLabel: Nt,
|
|
406
406
|
vatRateLabel: Pt,
|
|
407
407
|
bookingTotalLabel: Dt,
|
|
408
|
+
bookingPeriod: z ? {
|
|
409
|
+
bookingPath: Z,
|
|
410
|
+
startDate: z.startDate,
|
|
411
|
+
startTime: z.startTime,
|
|
412
|
+
endDate: z.endDate,
|
|
413
|
+
endTime: z.endTime
|
|
414
|
+
} : void 0,
|
|
408
415
|
onQuantityChange: Ge,
|
|
409
416
|
onRemove: Ke,
|
|
410
417
|
coupon: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"AA4JA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CAi5B/B"}
|