@loczer/storefront-sdk 0.209.0 → 0.211.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/node_modules/@date-fns/tz/date/index-DAbcklF5.js +1 -0
- package/dist/chunks/pkg/booking-engine/dist/node_modules/@date-fns/tz/date/mini-CSEBo1ZP.js +60 -0
- package/dist/chunks/pkg/booking-engine/dist/node_modules/@date-fns/tz/index--u3Qf-qy.js +4 -0
- package/dist/chunks/pkg/booking-engine/dist/node_modules/@date-fns/tz/tz/index-CEcibV-H.js +1 -0
- package/dist/chunks/pkg/booking-engine/dist/node_modules/@date-fns/tz/tzOffset/index-COlDDdap.js +22 -0
- package/dist/chunks/pkg/booking-engine/dist/pricing-BJaynUu_.js +3 -0
- package/dist/chunks/pkg/booking-engine/dist/utils/schedule-ssRov9xe.js +39 -0
- package/dist/chunks/pkg/booking-engine/dist/utils/timezone-B6XIbBPz.js +79 -0
- package/dist/components/AdminFloatingButton/AdminFloatingButton.d.ts +7 -0
- package/dist/components/AdminFloatingButton/AdminFloatingButton.d.ts.map +1 -0
- package/dist/components/AdminFloatingButton/AdminFloatingButton.js +36 -0
- package/dist/components/AdminFloatingButton/index.d.ts +3 -0
- package/dist/components/AdminFloatingButton/index.d.ts.map +1 -0
- package/dist/components/AdminFloatingButton/index.js +2 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +213 -213
- package/dist/components/ContactSection/index.d.ts.map +1 -1
- package/dist/components/ContactSection/index.js +4 -7
- package/dist/components/Header/index.js +1 -0
- package/dist/components/PlaygroundDevFloatingButton/index.d.ts.map +1 -1
- package/dist/components/PlaygroundDevFloatingButton/index.js +121 -100
- package/dist/components/ProductPriceBadge/index.d.ts.map +1 -1
- package/dist/components/ProductPriceBadge/index.js +86 -80
- package/dist/components/StorefrontCartPanel/index.d.ts +4 -4
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -1
- package/dist/components/StorefrontCartPanel/index.js +10 -9
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts +2 -3
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts.map +1 -1
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js +7 -81
- package/dist/i18n/en.d.ts +11 -7
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +13 -9
- package/dist/i18n/fr.d.ts +11 -7
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +13 -9
- package/dist/index.d.ts +62 -39
- package/dist/index.js +68 -66
- package/dist/lib/booking.d.ts +0 -6
- package/dist/lib/booking.d.ts.map +1 -1
- package/dist/lib/booking.js +51 -65
- package/dist/lib/cartSummary.d.ts +5 -3
- package/dist/lib/cartSummary.d.ts.map +1 -1
- package/dist/lib/cartSummary.js +7 -7
- package/dist/lib/floatingButtonCollision.d.ts +20 -0
- package/dist/lib/floatingButtonCollision.d.ts.map +1 -0
- package/dist/lib/floatingButtonCollision.js +72 -0
- package/dist/lib/pricing.d.ts +18 -6
- package/dist/lib/pricing.d.ts.map +1 -1
- package/dist/lib/pricing.js +45 -29
- package/dist/lib/useDraggableFloatingButton.d.ts +7 -0
- package/dist/lib/useDraggableFloatingButton.d.ts.map +1 -0
- package/dist/lib/useDraggableFloatingButton.js +107 -0
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +205 -201
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +195 -191
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +2 -2
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +4 -4
- package/dist/storefront.css +1 -1
- package/dist/ui/day-picker.js +1 -1
- package/package.json +1 -1
package/dist/i18n/fr.d.ts
CHANGED
|
@@ -137,12 +137,18 @@ export declare const storefront: {
|
|
|
137
137
|
price_then: string;
|
|
138
138
|
price_details_aria_label: string;
|
|
139
139
|
price_table_title: string;
|
|
140
|
-
|
|
141
|
-
price_table_day_other: string;
|
|
142
|
-
price_table_per_day: string;
|
|
140
|
+
price_table_per_unit: string;
|
|
143
141
|
price_table_contact_prompt: string;
|
|
142
|
+
price_unit_hour_one: string;
|
|
143
|
+
price_unit_hour_other: string;
|
|
144
|
+
price_unit_half_day_one: string;
|
|
145
|
+
price_unit_half_day_other: string;
|
|
144
146
|
price_unit_day_one: string;
|
|
145
147
|
price_unit_day_other: string;
|
|
148
|
+
price_unit_week_one: string;
|
|
149
|
+
price_unit_week_other: string;
|
|
150
|
+
price_unit_month_one: string;
|
|
151
|
+
price_unit_month_other: string;
|
|
146
152
|
products_title: string;
|
|
147
153
|
products_description: string;
|
|
148
154
|
products_page_title: string;
|
|
@@ -163,7 +169,7 @@ export declare const storefront: {
|
|
|
163
169
|
cart_empty_description: string;
|
|
164
170
|
cart_line_meta: string;
|
|
165
171
|
remove_from_cart: string;
|
|
166
|
-
|
|
172
|
+
cart_total_per_unit: string;
|
|
167
173
|
cart_clear: string;
|
|
168
174
|
booking_select_variant_cancel: string;
|
|
169
175
|
close_modal: string;
|
|
@@ -185,8 +191,7 @@ export declare const storefront: {
|
|
|
185
191
|
checkout_subtitle: string;
|
|
186
192
|
checkout_summary_title: string;
|
|
187
193
|
checkout_summary_description: string;
|
|
188
|
-
|
|
189
|
-
checkout_estimated_days_other: string;
|
|
194
|
+
checkout_estimated_duration: string;
|
|
190
195
|
checkout_estimated_total: string;
|
|
191
196
|
checkout_form_title: string;
|
|
192
197
|
checkout_form_description: string;
|
|
@@ -349,7 +354,6 @@ export declare const storefront: {
|
|
|
349
354
|
contact_form_phone_placeholder: string;
|
|
350
355
|
contact_form_message_label: string;
|
|
351
356
|
contact_form_message_placeholder: string;
|
|
352
|
-
contact_form_privacy_hint: string;
|
|
353
357
|
contact_form_submit_button: string;
|
|
354
358
|
contact_form_submitting_button: string;
|
|
355
359
|
contact_form_success_toast: string;
|
package/dist/i18n/fr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgftB,CAAA"}
|
package/dist/i18n/fr.js
CHANGED
|
@@ -134,16 +134,22 @@ var e = {
|
|
|
134
134
|
availability_checking: "Vérification de la disponibilité",
|
|
135
135
|
availability_remaining_count_one: "{{count}} disponible",
|
|
136
136
|
availability_remaining_count_other: "{{count}} disponibles",
|
|
137
|
-
price_from: "À partir de {{price}} /
|
|
137
|
+
price_from: "À partir de {{price}} / {{unit}}",
|
|
138
138
|
price_then: "puis {{price}}",
|
|
139
139
|
price_details_aria_label: "Voir le détail des tarifs pour {{price}}",
|
|
140
140
|
price_table_title: "Tarifs de location",
|
|
141
|
-
|
|
142
|
-
price_table_day_other: "{{count}} jours",
|
|
143
|
-
price_table_per_day: "{{price}}/j",
|
|
141
|
+
price_table_per_unit: "{{price}}/{{unit}}",
|
|
144
142
|
price_table_contact_prompt: "Pour une réservation spécifique ou une longue durée, n'hésitez pas à nous contacter.",
|
|
143
|
+
price_unit_hour_one: "heure",
|
|
144
|
+
price_unit_hour_other: "heures",
|
|
145
|
+
price_unit_half_day_one: "demi-journée",
|
|
146
|
+
price_unit_half_day_other: "demi-journées",
|
|
145
147
|
price_unit_day_one: "jour",
|
|
146
148
|
price_unit_day_other: "jours",
|
|
149
|
+
price_unit_week_one: "semaine",
|
|
150
|
+
price_unit_week_other: "semaines",
|
|
151
|
+
price_unit_month_one: "mois",
|
|
152
|
+
price_unit_month_other: "mois",
|
|
147
153
|
products_title: "Notre gamme de vélos",
|
|
148
154
|
products_description: "Parcourez les vélos et réservez en quelques clics.",
|
|
149
155
|
products_page_title: "Choisissez vos vélos",
|
|
@@ -162,9 +168,9 @@ var e = {
|
|
|
162
168
|
cart_empty: "Votre panier est vide.",
|
|
163
169
|
cart_empty_title: "Votre panier est vide",
|
|
164
170
|
cart_empty_description: "Ajoutez un vélo (et des accessoires) pour continuer.",
|
|
165
|
-
cart_line_meta: "Qté {{quantity}} · {{price}} /
|
|
171
|
+
cart_line_meta: "Qté {{quantity}} · {{price}} / {{unit}}",
|
|
166
172
|
remove_from_cart: "Retirer du panier",
|
|
167
|
-
|
|
173
|
+
cart_total_per_unit: "Total / {{unit}}",
|
|
168
174
|
cart_clear: "Vider le panier",
|
|
169
175
|
booking_select_variant_cancel: "Annuler",
|
|
170
176
|
close_modal: "Fermer",
|
|
@@ -186,8 +192,7 @@ var e = {
|
|
|
186
192
|
checkout_subtitle: "Confirmez vos informations et le paiement · {{duration}}",
|
|
187
193
|
checkout_summary_title: "Récapitulatif",
|
|
188
194
|
checkout_summary_description: "Panier et récap des montants.",
|
|
189
|
-
|
|
190
|
-
checkout_estimated_days_other: "Durée estimée : {{count}} jours",
|
|
195
|
+
checkout_estimated_duration: "Durée estimée",
|
|
191
196
|
checkout_estimated_total: "Total de la réservation",
|
|
192
197
|
checkout_form_title: "Vos informations",
|
|
193
198
|
checkout_form_description: "Renseignez vos coordonnées pour votre réservation. N'hésitez pas à ajouter toute information utile dans les notes.",
|
|
@@ -350,7 +355,6 @@ var e = {
|
|
|
350
355
|
contact_form_phone_placeholder: "+33 6 00 00 00 00",
|
|
351
356
|
contact_form_message_label: "Message",
|
|
352
357
|
contact_form_message_placeholder: "Comment peut-on vous aider ?",
|
|
353
|
-
contact_form_privacy_hint: "On utilise vos infos uniquement pour répondre.",
|
|
354
358
|
contact_form_submit_button: "Envoyer",
|
|
355
359
|
contact_form_submitting_button: "Envoi…",
|
|
356
360
|
contact_form_success_toast: "Message envoyé.",
|
package/dist/index.d.ts
CHANGED
|
@@ -253,6 +253,13 @@ declare type AddressAutocompleteLocationRestriction = {
|
|
|
253
253
|
west: number;
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
+
export declare const AdminFloatingButton: ({ href, onClick }: AdminFloatingButtonProps) => JSX.Element | null;
|
|
257
|
+
|
|
258
|
+
export declare type AdminFloatingButtonProps = {
|
|
259
|
+
href: string;
|
|
260
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
261
|
+
};
|
|
262
|
+
|
|
256
263
|
export declare const applyBookingParamsToSearch: (searchParams: URLSearchParams, booking: Partial<StorefrontBookingParams>) => URLSearchParams;
|
|
257
264
|
|
|
258
265
|
export declare const assetIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -871,6 +878,11 @@ export declare type BookingPeriodTimeSlotsStatus = "local" | "loading" | "ready"
|
|
|
871
878
|
|
|
872
879
|
export declare type BookingPeriodTranslator = (key: string, options?: Record<string, unknown>) => string;
|
|
873
880
|
|
|
881
|
+
export declare type BookingRentalUnitSummary = {
|
|
882
|
+
priceUnit: PriceUnit_2;
|
|
883
|
+
billableUnitCount: number;
|
|
884
|
+
};
|
|
885
|
+
|
|
874
886
|
export declare type BookingScheduleInput = z.infer<typeof bookingScheduleInputSchema>;
|
|
875
887
|
|
|
876
888
|
export declare const bookingScheduleInputSchema: z.ZodObject<{
|
|
@@ -908,9 +920,9 @@ export declare function buildBookingInsuranceSnapshot(input: {
|
|
|
908
920
|
items: InsuranceQuoteItemInput[];
|
|
909
921
|
}): BookingInsuranceSnapshot;
|
|
910
922
|
|
|
911
|
-
export declare function
|
|
923
|
+
export declare function buildPriceTierLabels(prices: StorefrontPublicProductPrice[] | undefined, locale: string, t: TFunction, priceUnit?: PriceUnit_2): string[];
|
|
912
924
|
|
|
913
|
-
export declare function
|
|
925
|
+
export declare function buildRentalPriceRows(prices: StorefrontPublicProductPrice[] | undefined, locale: string, priceUnit?: PriceUnit_2): RentalPriceRow[];
|
|
914
926
|
|
|
915
927
|
export declare const buildStorefrontAvailabilityKey: (productId: string, productVariantId?: string | null) => string;
|
|
916
928
|
|
|
@@ -919,7 +931,8 @@ export declare const buildStorefrontCartSummary: (params: {
|
|
|
919
931
|
language: string;
|
|
920
932
|
fallbackLanguage?: string;
|
|
921
933
|
products: StorefrontProductsCollections;
|
|
922
|
-
|
|
934
|
+
priceUnit: StorefrontPublicProductPrice["unit"];
|
|
935
|
+
billableUnitCount?: number;
|
|
923
936
|
}) => StorefrontCartSummary;
|
|
924
937
|
|
|
925
938
|
export declare const buildStorefrontImageUrl: (imageId: string, storeSlug: string, width?: number) => string;
|
|
@@ -945,10 +958,12 @@ export declare const buttonVariants: (props?: ({
|
|
|
945
958
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
946
959
|
} & ClassProp) | undefined) => string;
|
|
947
960
|
|
|
948
|
-
export declare function
|
|
961
|
+
export declare function calculateBookingRentalUnitSummary(booking: StorefrontBookingParams, pricing: PricingConfiguration, timeZone?: string): BookingRentalUnitSummary | null;
|
|
949
962
|
|
|
950
963
|
export declare function calculateInsuranceCalendarDays(start: Date, end: Date, timeZone?: string): number;
|
|
951
964
|
|
|
965
|
+
export declare function calculateRentalPriceForQuantity(prices: StorefrontPublicProductPrice[] | undefined, unitCount: number, priceUnit?: PriceUnit_2): number | null;
|
|
966
|
+
|
|
952
967
|
export declare type CancellationPolicy = z.infer<typeof cancellationPolicySchema>;
|
|
953
968
|
|
|
954
969
|
export declare const cancellationPolicySchema: z.ZodObject<{
|
|
@@ -1617,12 +1632,6 @@ export declare const currencyCodeSchema: z.ZodEnum<{
|
|
|
1617
1632
|
|
|
1618
1633
|
export declare function currencyMinorUnitDigits(_currency: CurrencyCode): number;
|
|
1619
1634
|
|
|
1620
|
-
export declare type DailyPriceRow = {
|
|
1621
|
-
dayCount: number;
|
|
1622
|
-
totalPriceLabel: string;
|
|
1623
|
-
perDayPriceLabel: string;
|
|
1624
|
-
};
|
|
1625
|
-
|
|
1626
1635
|
export declare const DEFAULT_BOOKING_DELIVERY_OPTION: "pickup";
|
|
1627
1636
|
|
|
1628
1637
|
export declare const DEFAULT_CANCELLATION_POLICY: CancellationPolicy;
|
|
@@ -1768,6 +1777,8 @@ export declare const formatPriceMinor: (valueMinor: MoneyMinor_2, language: stri
|
|
|
1768
1777
|
maximumFractionDigits?: number;
|
|
1769
1778
|
}) => string;
|
|
1770
1779
|
|
|
1780
|
+
export declare function formatRentalUnitQuantity(quantity: number, priceUnit: PriceUnit_2, locale: string, t: TFunction): string;
|
|
1781
|
+
|
|
1771
1782
|
export declare const formatStorefrontPhoneDisplay: (phone: string, country?: string) => string;
|
|
1772
1783
|
|
|
1773
1784
|
export declare const formatStorefrontPriceMinor: (valueMinor: number, locale: string, { currency }?: {
|
|
@@ -1800,14 +1811,6 @@ export declare const getAvailabilityVariant: (status: string | undefined) => {
|
|
|
1800
1811
|
variant: "secondary" | "outline" | "destructive";
|
|
1801
1812
|
};
|
|
1802
1813
|
|
|
1803
|
-
export declare const getBookingDurationLabel: (booking: StorefrontBookingParams) => {
|
|
1804
|
-
hours: number;
|
|
1805
|
-
minutes: number;
|
|
1806
|
-
label: string;
|
|
1807
|
-
};
|
|
1808
|
-
|
|
1809
|
-
export declare const getBookingDurationMinutes: (booking: StorefrontBookingParams) => number;
|
|
1810
|
-
|
|
1811
1814
|
export declare const getBookingParamsFromSearch: (searchParams: URLSearchParams, fallback?: Partial<StorefrontBookingParams>) => StorefrontBookingParams;
|
|
1812
1815
|
|
|
1813
1816
|
export declare const getBookingSessionStorageKey: (storeSlug?: string) => string;
|
|
@@ -1983,6 +1986,8 @@ export declare const getMinDayPriceMinor: (prices: Array<{
|
|
|
1983
1986
|
unit?: string;
|
|
1984
1987
|
}>) => MoneyMinor_2 | null;
|
|
1985
1988
|
|
|
1989
|
+
export declare function getPricingUnitLabel(priceUnit: PriceUnit_2, t: TFunction, count?: number): string;
|
|
1990
|
+
|
|
1986
1991
|
export declare const getStorefrontAvailabilityIssue: (record: StorefrontPublicAvailabilityRecord | undefined) => StorefrontAvailabilityIssue | undefined;
|
|
1987
1992
|
|
|
1988
1993
|
export declare const getStorefrontAvailabilityStatus: (record: StorefrontPublicAvailabilityRecord | undefined) => "AVAILABLE" | "LOW_STOCK" | "OUT_OF_STOCK";
|
|
@@ -2549,6 +2554,8 @@ export declare const priceSchema: z.ZodObject<{
|
|
|
2549
2554
|
|
|
2550
2555
|
export declare type PriceUnit = z.infer<typeof priceUnitSchema>;
|
|
2551
2556
|
|
|
2557
|
+
declare type PriceUnit_2 = StorefrontPublicProductPrice["unit"];
|
|
2558
|
+
|
|
2552
2559
|
export declare const priceUnitSchema: z.ZodEnum<{
|
|
2553
2560
|
day: "day";
|
|
2554
2561
|
half_day: "half_day";
|
|
@@ -2557,6 +2564,8 @@ export declare const priceUnitSchema: z.ZodEnum<{
|
|
|
2557
2564
|
week: "week";
|
|
2558
2565
|
}>;
|
|
2559
2566
|
|
|
2567
|
+
declare type PricingConfiguration = StorefrontConfiguration["bookingEngine"]["pricing"];
|
|
2568
|
+
|
|
2560
2569
|
export declare const PRODUCT_VARIANT_CODE_IDENTIFIER_KIND = "variant_code";
|
|
2561
2570
|
|
|
2562
2571
|
export declare const PRODUCT_VARIANT_CODE_MAX_LENGTH = 3;
|
|
@@ -3003,6 +3012,12 @@ export declare const readBookingSearchParamsFromSessionStorage: (storeSlug?: str
|
|
|
3003
3012
|
|
|
3004
3013
|
export declare const readBookingSearchParamsFromStorage: (storage: BookingSearchStorage, storeSlug?: string) => URLSearchParams;
|
|
3005
3014
|
|
|
3015
|
+
export declare type RentalPriceRow = {
|
|
3016
|
+
unitCount: number;
|
|
3017
|
+
totalPriceLabel: string;
|
|
3018
|
+
perUnitPriceLabel: string;
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3006
3021
|
export declare type RequestPayload = z.infer<typeof requestSchema>;
|
|
3007
3022
|
|
|
3008
3023
|
export declare const requestSchema: z.ZodObject<{
|
|
@@ -3371,19 +3386,19 @@ export declare type StorefrontCartItem = {
|
|
|
3371
3386
|
quantity: number;
|
|
3372
3387
|
};
|
|
3373
3388
|
|
|
3374
|
-
export declare function StorefrontCartPanel({ lines, itemCount,
|
|
3389
|
+
export declare function StorefrontCartPanel({ lines, itemCount, totalPerBaseUnitMinor, baseUnitLabel, estimatedTotalMinor, discountedEstimatedTotalMinor, discountAmountMinor, lateReturnSurchargeMinor, couponCode, durationInBaseUnitLabel, title, description, checkoutPath, showCheckoutAction, showClearAction, editable, summaryAddon, stickyTopClassName, onQuantityChange, onRemove, onClear, }: StorefrontCartPanelProps): JSX.Element;
|
|
3375
3390
|
|
|
3376
3391
|
declare type StorefrontCartPanelProps = {
|
|
3377
3392
|
lines: StorefrontCartSummaryLine[];
|
|
3378
3393
|
itemCount: number;
|
|
3379
|
-
|
|
3380
|
-
|
|
3394
|
+
totalPerBaseUnitMinor: number;
|
|
3395
|
+
baseUnitLabel: string;
|
|
3381
3396
|
estimatedTotalMinor?: number;
|
|
3382
3397
|
discountedEstimatedTotalMinor?: number;
|
|
3383
3398
|
discountAmountMinor?: number;
|
|
3384
3399
|
lateReturnSurchargeMinor?: number;
|
|
3385
3400
|
couponCode?: string;
|
|
3386
|
-
|
|
3401
|
+
durationInBaseUnitLabel?: string;
|
|
3387
3402
|
title?: string;
|
|
3388
3403
|
description?: string;
|
|
3389
3404
|
checkoutPath?: string;
|
|
@@ -3405,8 +3420,8 @@ export declare function StorefrontCartProvider({ storeSlug, products, children,
|
|
|
3405
3420
|
|
|
3406
3421
|
export declare type StorefrontCartSummary = {
|
|
3407
3422
|
lines: StorefrontCartSummaryLine[];
|
|
3408
|
-
|
|
3409
|
-
|
|
3423
|
+
totalPerBaseUnitMinor: number;
|
|
3424
|
+
billableUnitCount?: number;
|
|
3410
3425
|
estimatedTotalMinor?: number;
|
|
3411
3426
|
};
|
|
3412
3427
|
|
|
@@ -4106,12 +4121,18 @@ export declare const storefrontEn: {
|
|
|
4106
4121
|
price_then: string;
|
|
4107
4122
|
price_details_aria_label: string;
|
|
4108
4123
|
price_table_title: string;
|
|
4109
|
-
|
|
4110
|
-
price_table_day_other: string;
|
|
4111
|
-
price_table_per_day: string;
|
|
4124
|
+
price_table_per_unit: string;
|
|
4112
4125
|
price_table_contact_prompt: string;
|
|
4126
|
+
price_unit_hour_one: string;
|
|
4127
|
+
price_unit_hour_other: string;
|
|
4128
|
+
price_unit_half_day_one: string;
|
|
4129
|
+
price_unit_half_day_other: string;
|
|
4113
4130
|
price_unit_day_one: string;
|
|
4114
4131
|
price_unit_day_other: string;
|
|
4132
|
+
price_unit_week_one: string;
|
|
4133
|
+
price_unit_week_other: string;
|
|
4134
|
+
price_unit_month_one: string;
|
|
4135
|
+
price_unit_month_other: string;
|
|
4115
4136
|
products_title: string;
|
|
4116
4137
|
products_description: string;
|
|
4117
4138
|
products_page_title: string;
|
|
@@ -4131,7 +4152,7 @@ export declare const storefrontEn: {
|
|
|
4131
4152
|
cart_empty_description: string;
|
|
4132
4153
|
cart_line_meta: string;
|
|
4133
4154
|
remove_from_cart: string;
|
|
4134
|
-
|
|
4155
|
+
cart_total_per_unit: string;
|
|
4135
4156
|
cart_clear: string;
|
|
4136
4157
|
booking_select_variant_cancel: string;
|
|
4137
4158
|
close_modal: string;
|
|
@@ -4153,8 +4174,7 @@ export declare const storefrontEn: {
|
|
|
4153
4174
|
checkout_subtitle: string;
|
|
4154
4175
|
checkout_summary_title: string;
|
|
4155
4176
|
checkout_summary_description: string;
|
|
4156
|
-
|
|
4157
|
-
checkout_estimated_days_other: string;
|
|
4177
|
+
checkout_estimated_duration: string;
|
|
4158
4178
|
checkout_estimated_total: string;
|
|
4159
4179
|
checkout_form_title: string;
|
|
4160
4180
|
checkout_form_description: string;
|
|
@@ -4317,7 +4337,6 @@ export declare const storefrontEn: {
|
|
|
4317
4337
|
contact_form_phone_placeholder: string;
|
|
4318
4338
|
contact_form_message_label: string;
|
|
4319
4339
|
contact_form_message_placeholder: string;
|
|
4320
|
-
contact_form_privacy_hint: string;
|
|
4321
4340
|
contact_form_submit_button: string;
|
|
4322
4341
|
contact_form_submitting_button: string;
|
|
4323
4342
|
contact_form_success_toast: string;
|
|
@@ -4630,12 +4649,18 @@ export declare const storefrontFr: {
|
|
|
4630
4649
|
price_then: string;
|
|
4631
4650
|
price_details_aria_label: string;
|
|
4632
4651
|
price_table_title: string;
|
|
4633
|
-
|
|
4634
|
-
price_table_day_other: string;
|
|
4635
|
-
price_table_per_day: string;
|
|
4652
|
+
price_table_per_unit: string;
|
|
4636
4653
|
price_table_contact_prompt: string;
|
|
4654
|
+
price_unit_hour_one: string;
|
|
4655
|
+
price_unit_hour_other: string;
|
|
4656
|
+
price_unit_half_day_one: string;
|
|
4657
|
+
price_unit_half_day_other: string;
|
|
4637
4658
|
price_unit_day_one: string;
|
|
4638
4659
|
price_unit_day_other: string;
|
|
4660
|
+
price_unit_week_one: string;
|
|
4661
|
+
price_unit_week_other: string;
|
|
4662
|
+
price_unit_month_one: string;
|
|
4663
|
+
price_unit_month_other: string;
|
|
4639
4664
|
products_title: string;
|
|
4640
4665
|
products_description: string;
|
|
4641
4666
|
products_page_title: string;
|
|
@@ -4656,7 +4681,7 @@ export declare const storefrontFr: {
|
|
|
4656
4681
|
cart_empty_description: string;
|
|
4657
4682
|
cart_line_meta: string;
|
|
4658
4683
|
remove_from_cart: string;
|
|
4659
|
-
|
|
4684
|
+
cart_total_per_unit: string;
|
|
4660
4685
|
cart_clear: string;
|
|
4661
4686
|
booking_select_variant_cancel: string;
|
|
4662
4687
|
close_modal: string;
|
|
@@ -4678,8 +4703,7 @@ export declare const storefrontFr: {
|
|
|
4678
4703
|
checkout_subtitle: string;
|
|
4679
4704
|
checkout_summary_title: string;
|
|
4680
4705
|
checkout_summary_description: string;
|
|
4681
|
-
|
|
4682
|
-
checkout_estimated_days_other: string;
|
|
4706
|
+
checkout_estimated_duration: string;
|
|
4683
4707
|
checkout_estimated_total: string;
|
|
4684
4708
|
checkout_form_title: string;
|
|
4685
4709
|
checkout_form_description: string;
|
|
@@ -4842,7 +4866,6 @@ export declare const storefrontFr: {
|
|
|
4842
4866
|
contact_form_phone_placeholder: string;
|
|
4843
4867
|
contact_form_message_label: string;
|
|
4844
4868
|
contact_form_message_placeholder: string;
|
|
4845
|
-
contact_form_privacy_hint: string;
|
|
4846
4869
|
contact_form_submit_button: string;
|
|
4847
4870
|
contact_form_submitting_button: string;
|
|
4848
4871
|
contact_form_success_toast: string;
|
|
@@ -6645,10 +6668,10 @@ export declare function useStorefrontProducts(): {
|
|
|
6645
6668
|
export declare function useStorefrontWorkspaceLanguage(): StorefrontI18nLanguage;
|
|
6646
6669
|
|
|
6647
6670
|
export declare const useWhatsAppFloatingButton: (options?: WhatsAppFloatingButtonOptions) => {
|
|
6648
|
-
href: string | undefined;
|
|
6649
6671
|
containerRef: RefObject<HTMLDivElement | null>;
|
|
6650
6672
|
bubbleRef: RefObject<HTMLDivElement | null>;
|
|
6651
6673
|
onLinkClick: MouseEventHandler<HTMLAnchorElement>;
|
|
6674
|
+
href: string | undefined;
|
|
6652
6675
|
};
|
|
6653
6676
|
|
|
6654
6677
|
export declare function validateBookingDeliveryAddress(input: BookingDeliveryAddressInput, ctx: z.RefinementCtx): void;
|
package/dist/index.js
CHANGED
|
@@ -13,78 +13,80 @@ import { assetIdSchema as ue, baseAssetSchema as de, baseAssetStatusSchema as fe
|
|
|
13
13
|
import { baseBookingItemSchema as pe, baseBookingSchema as me, baseBookingStateSchema as he } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-Bhy2Kww1.js";
|
|
14
14
|
import "./chunks/pkg/booking-engine/dist/schemas-C2PdkXfm.js";
|
|
15
15
|
import { STOREFRONT_HERO_MODES as ge, storefrontCheckoutModeSchema as _e, storefrontConfigurationSchema as ve, storefrontContentSchema as ye, storefrontFaqItemSchema as be, storefrontFaqSchema as xe, storefrontFulfillmentModeSchema as Se, storefrontHeroModeSchema as Ce, storefrontLocalizedRichTextSchema as we, storefrontModalMessageSchema as Te, storefrontModulesSchema as Ee, storefrontReviewsModuleSchema as De, storefrontRichTextSchema as Oe, storefrontSettingsSchema as ke, storefrontShopSchema as Ae, storefrontStatusSchema as je, storefrontWorkspaceSchema as Me } from "./storefrontSchemas.js";
|
|
16
|
-
import { BOOKING_SEARCH_KEYS as Ne, TIME_OPTIONS as Pe, applyBookingParamsToSearch as Fe, createBookingPeriodConfigFromBookingEngineConfiguration as Ie, createBookingPeriodConfigFromShopConfiguration as Le, createBookingPeriodConfigFromStorefrontConfiguration as Re,
|
|
17
|
-
import { getLocalizedEntry as
|
|
18
|
-
import { CATALOG_PRODUCT_BASE_RATE_UNSET as
|
|
19
|
-
import { StorefrontCartProvider as
|
|
20
|
-
import { cn as
|
|
21
|
-
import {
|
|
22
|
-
import { buildStorefrontCartSummary as
|
|
23
|
-
import { ROUTE as
|
|
24
|
-
import { formatStorefrontPhoneDisplay as
|
|
25
|
-
import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as
|
|
26
|
-
import { buildWhatsAppHref as
|
|
27
|
-
import { ROUTE as
|
|
28
|
-
import { ROUTE as
|
|
29
|
-
import { ROUTE as
|
|
30
|
-
import { ROUTE as
|
|
31
|
-
import { ROUTE as
|
|
32
|
-
import { Footer as
|
|
33
|
-
import { Badge as
|
|
34
|
-
import { Button as
|
|
35
|
-
import { StorefrontContext as
|
|
36
|
-
import { Header as
|
|
37
|
-
import { storefront as
|
|
38
|
-
import { storefront as
|
|
39
|
-
import { PoweredByLoczerBadge as
|
|
40
|
-
import { PlatformFooter as
|
|
41
|
-
import { useWhatsAppFloatingButton as
|
|
42
|
-
import { WhatsAppFloatingButton as
|
|
16
|
+
import { BOOKING_SEARCH_KEYS as Ne, TIME_OPTIONS as Pe, applyBookingParamsToSearch as Fe, createBookingPeriodConfigFromBookingEngineConfiguration as Ie, createBookingPeriodConfigFromShopConfiguration as Le, createBookingPeriodConfigFromStorefrontConfiguration as Re, getBookingParamsFromSearch as ze, getBookingSessionStorageKey as Be, getDefaultBookingParams as Ve, getDefaultBookingParamsForStorefrontConfiguration as He, pickBookingSearchParams as Ue, readBookingSearchParamsFromSessionStorage as We, readBookingSearchParamsFromStorage as Ge, resolveBookingSearchParams as Ke, resolveBookingSearchParamsFromSessionStorage as qe, writeBookingSearchParamsToSessionStorage as Je, writeBookingSearchParamsToStorage as Ye } from "./lib/booking.js";
|
|
17
|
+
import { getLocalizedEntry as Xe, getLocalizedValue as Ze } from "./localization.js";
|
|
18
|
+
import { CATALOG_PRODUCT_BASE_RATE_UNSET as Qe, buildStorefrontProductSlug as $e, buildVariantStorefrontProductId as et, compareCatalogProducts as tt, compareStorefrontAccessoryProducts as nt, compareStorefrontBikeProducts as rt, findStorefrontProduct as it, findStorefrontProductBySlug as at, getCatalogProductBaseRateMinor as ot, getCatalogProductPaginationSort as st, getCatalogProductSortFieldForPriceUnit as ct, getStorefrontBaseDailyRateMinor as lt, getStorefrontCheckoutProductId as ut, getStorefrontProductSelectionDisplayName as dt, getStorefrontRepresentedVariantId as ft, toStorefrontAccessoryProducts as pt, toStorefrontBikeProducts as mt, toStorefrontBookingProducts as ht, toStorefrontBookingProductsCollections as gt } from "./lib/products.js";
|
|
19
|
+
import { StorefrontCartProvider as _t, resolveStorefrontCartItemProduct as vt, useStorefrontCart as yt } from "./lib/cart.js";
|
|
20
|
+
import { cn as bt, formatPriceMinor as xt, getAvailabilityVariant as St, getMinDayPriceMinor as Ct } from "./lib/utils.js";
|
|
21
|
+
import { buildPriceTierLabels as wt, buildRentalPriceRows as Tt, calculateBookingRentalUnitSummary as Et, calculateRentalPriceForQuantity as Dt, formatRentalUnitQuantity as Ot, formatStorefrontPriceMinor as kt, getPricingUnitLabel as At } from "./lib/pricing.js";
|
|
22
|
+
import { buildStorefrontCartSummary as jt } from "./lib/cartSummary.js";
|
|
23
|
+
import { ROUTE as Mt, requestSchema as Nt, responseSchema as Pt } from "./lib/contactForm.js";
|
|
24
|
+
import { formatStorefrontPhoneDisplay as Ft, resolveStorefrontMapsHref as It, resolveStorefrontPhoneContact as Lt } from "./lib/storefrontContact.js";
|
|
25
|
+
import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as Rt, STOREFRONT_ITINERARIES_LIST_ROUTE as zt, STOREFRONT_ITINERARY_DETAIL_ROUTE as Bt, storefrontItinerariesFeaturedRequestSchema as Vt, storefrontItinerariesFeaturedResponseSchema as Ht, storefrontItinerariesListRequestSchema as Ut, storefrontItinerariesListResponseSchema as Wt, storefrontItineraryBoundsSchema as Gt, storefrontItineraryCoordinateSchema as Kt, storefrontItineraryDetailRequestSchema as qt, storefrontItineraryDetailResponseSchema as Jt, storefrontItineraryDetailSchema as Yt, storefrontItineraryDifficultySchema as Xt, storefrontItineraryLocalizedStringSchema as Zt, storefrontItineraryMetricsSchema as Qt, storefrontItineraryPreviewSchema as $t, storefrontItineraryStepSchema as en, storefrontItinerarySummarySchema as tn, storefrontItineraryTripTypeSchema as nn } from "./lib/storefrontItineraries.js";
|
|
26
|
+
import { buildWhatsAppHref as rn, resolveStorefrontWhatsAppContact as an, resolveStorefrontWhatsAppHref as on } from "./lib/whatsapp.js";
|
|
27
|
+
import { ROUTE as sn, requestBaseSchema as cn, requestCheckoutItemSchema as ln, requestDeliveryRefinement as un, requestSchema as dn, responseSchema as fn } from "./lib/checkoutSubmit.js";
|
|
28
|
+
import { ROUTE as pn, requestSchema as mn, responseSchema as hn, storefrontPublicAccessoryProductSchema as gn, storefrontPublicBikeAvailabilityStatusSchema as _n, storefrontPublicBikeProductSchema as vn, storefrontPublicProductDisplayModeSchema as yn, storefrontPublicProductPriceSchema as bn, storefrontPublicProductVariantAttributeSchema as xn, storefrontPublicProductVariantIdentifierSchema as Sn, storefrontPublicProductVariantSchema as Cn } from "./lib/storefrontProducts.js";
|
|
29
|
+
import { ROUTE as wn, buildStorefrontAvailabilityKey as Tn, doesStorefrontAvailabilityDisplaySoldOut as En, getStorefrontAvailabilityIssue as Dn, getStorefrontAvailabilityStatus as On, isStorefrontAvailabilityInsufficient as kn, publicAvailabilityDisplayModeSchema as An, requestSchema as jn, responseSchema as Mn, shouldBlockStorefrontUnavailableItem as Nn, storefrontAvailabilityProductSchema as Pn, storefrontAvailabilityScheduleSchema as Fn, storefrontPublicAvailabilityRecordSchema as In } from "./lib/storefrontAvailability.js";
|
|
30
|
+
import { ROUTE as Ln, buildStorefrontImageUrl as Rn, requestSchema as zn } from "./lib/storefrontImage.js";
|
|
31
|
+
import { ROUTE as Bn, requestSchema as Vn, responseSchema as Hn, storefrontTimeSlotSchema as Un, timeSlotJourneySchema as Wn } from "./lib/storefrontTimeSlots.js";
|
|
32
|
+
import { Footer as Gn } from "./components/Footer/index.js";
|
|
33
|
+
import { Badge as Kn, badgeVariants as qn } from "./ui/badge.js";
|
|
34
|
+
import { Button as Jn, buttonVariants as Yn, storefrontButtonRadiusClassName as Xn } from "./ui/button.js";
|
|
35
|
+
import { StorefrontContext as Zn, useOptionalStorefront as Qn, useStorefront as $n, useStorefrontBookingProducts as er, useStorefrontConfig as tr, useStorefrontItineraries as nr, useStorefrontProducts as rr, useStorefrontWorkspaceLanguage as ir } from "./StorefrontContext.js";
|
|
36
|
+
import { Header as ar } from "./components/Header/index.js";
|
|
37
|
+
import { storefront as or } from "./i18n/en.js";
|
|
38
|
+
import { storefront as sr } from "./i18n/fr.js";
|
|
39
|
+
import { PoweredByLoczerBadge as cr } from "./components/PoweredByLoczerBadge/index.js";
|
|
40
|
+
import { PlatformFooter as lr } from "./components/PlatformFooter/index.js";
|
|
41
|
+
import { useWhatsAppFloatingButton as ur } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
|
|
42
|
+
import { WhatsAppFloatingButton as dr } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
43
43
|
import "./components/WhatsAppFloatingButton/index.js";
|
|
44
|
-
import { Layout as
|
|
45
|
-
import { DelayedPlaceholder as
|
|
46
|
-
import { BookingPeriodProvider as
|
|
47
|
-
import { Label as
|
|
48
|
-
import { BookingStartDateField as
|
|
49
|
-
import { BookingStartTimeField as
|
|
50
|
-
import { BookingEndDateField as
|
|
51
|
-
import { BookingEndTimeField as
|
|
52
|
-
import { BookingTimeSlotsStatus as
|
|
53
|
-
import { BookingMobileDateDrawer as
|
|
54
|
-
import { BookingPeriodSelector as
|
|
55
|
-
import { BookingFlowSteps as
|
|
56
|
-
import { Input as
|
|
57
|
-
import { DeliveryAddressSelector as
|
|
58
|
-
import { Form as
|
|
59
|
-
import { Textarea as
|
|
60
|
-
import { ContactSection as
|
|
61
|
-
import { TestimonialsSection as
|
|
62
|
-
import { AboutSection as
|
|
63
|
-
import {
|
|
64
|
-
import
|
|
65
|
-
import {
|
|
44
|
+
import { Layout as fr } from "./components/Layout/index.js";
|
|
45
|
+
import { DelayedPlaceholder as pr, DelayedReveal as mr } from "./components/DelayedReveal/index.js";
|
|
46
|
+
import { BookingPeriodProvider as hr, useBookingPeriod as gr } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
47
|
+
import { Label as _r } from "./ui/label.js";
|
|
48
|
+
import { BookingStartDateField as vr } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
49
|
+
import { BookingStartTimeField as yr } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
50
|
+
import { BookingEndDateField as br } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
51
|
+
import { BookingEndTimeField as xr } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
52
|
+
import { BookingTimeSlotsStatus as Sr } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
|
|
53
|
+
import { BookingMobileDateDrawer as Cr } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
|
|
54
|
+
import { BookingPeriodSelector as wr } from "./components/BookingPeriodSelector/index.js";
|
|
55
|
+
import { BookingFlowSteps as Tr } from "./components/BookingFlowSteps/index.js";
|
|
56
|
+
import { Input as Er } from "./ui/input.js";
|
|
57
|
+
import { DeliveryAddressSelector as Dr } from "./components/DeliveryAddressSelector/index.js";
|
|
58
|
+
import { Form as Or, FormControl as kr, FormDescription as Ar, FormField as jr, FormItem as Mr, FormLabel as Nr, FormMessage as Pr, useFormField as Fr } from "./ui/form.js";
|
|
59
|
+
import { Textarea as Ir } from "./ui/textarea.js";
|
|
60
|
+
import { ContactSection as Lr } from "./components/ContactSection/index.js";
|
|
61
|
+
import { TestimonialsSection as Rr } from "./components/TestimonialsSection/index.js";
|
|
62
|
+
import { AboutSection as zr } from "./components/AboutSection/index.js";
|
|
63
|
+
import { AdminFloatingButton as Br } from "./components/AdminFloatingButton/AdminFloatingButton.js";
|
|
64
|
+
import "./components/AdminFloatingButton/index.js";
|
|
65
|
+
import { ItineraryListItem as Vr } from "./components/Itineraries/ItineraryListItem.js";
|
|
66
|
+
import { ItineraryRouteMap as Hr } from "./components/Itineraries/ItineraryRouteMap.js";
|
|
67
|
+
import { ItinerariesSection as Ur } from "./components/Itineraries/ItinerariesSection.js";
|
|
66
68
|
import "./components/Itineraries/index.js";
|
|
67
|
-
import { StepSectionTitle as
|
|
68
|
-
import { Card as
|
|
69
|
-
import { ProductWarningNotice as
|
|
70
|
-
import { StorefrontCartPanel as
|
|
71
|
-
import { ProductPriceBadge as
|
|
72
|
-
import { ContractSaleDocument as
|
|
69
|
+
import { StepSectionTitle as Wr } from "./components/StepSectionTitle/index.js";
|
|
70
|
+
import { Card as Gr, CardAction as Kr, CardContent as qr, CardDescription as Jr, CardFooter as Yr, CardHeader as Xr, CardTitle as Zr } from "./ui/card.js";
|
|
71
|
+
import { ProductWarningNotice as Qr } from "./components/ProductWarningNotice/index.js";
|
|
72
|
+
import { StorefrontCartPanel as $r } from "./components/StorefrontCartPanel/index.js";
|
|
73
|
+
import { ProductPriceBadge as ei } from "./components/ProductPriceBadge/index.js";
|
|
74
|
+
import { ContractSaleDocument as ti } from "./components/ContractSaleDocument/Invoice.js";
|
|
73
75
|
import "./components/ContractSaleDocument/index.js";
|
|
74
|
-
import { RadioGroup as
|
|
76
|
+
import { RadioGroup as ni, RadioGroupItem as ri } from "./ui/radio-group.js";
|
|
75
77
|
import "./pages/HomePage.js";
|
|
76
78
|
import "./pages/BookingPage.js";
|
|
77
79
|
import "./pages/ProductPage.js";
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
+
import ii from "./pages/ItinerariesPage.js";
|
|
81
|
+
import ai, { loader as oi } from "./pages/ItineraryDetailsPage.js";
|
|
80
82
|
import "./pages/CheckoutPage.js";
|
|
81
83
|
import "./pages/CheckoutSuccessPage.js";
|
|
82
84
|
import "./pages/NotFoundPage.js";
|
|
83
|
-
import { accessories as
|
|
84
|
-
import
|
|
85
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
86
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
87
|
-
import
|
|
88
|
-
import { loader as
|
|
89
|
-
import { Select as
|
|
90
|
-
export { xi as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Rr as AboutSection, Ne as BOOKING_SEARCH_KEYS, Gn as Badge, yr as BookingEndDateField, br as BookingEndTimeField, wr as BookingFlowSteps, Sr as BookingMobileDateDrawer, mr as BookingPeriodProvider, Cr as BookingPeriodSelector, _r as BookingStartDateField, vr as BookingStartTimeField, xr as BookingTimeSlotsStatus, qn as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, Ur as Card, Wr as CardAction, Gr as CardContent, Kr as CardDescription, qr as CardFooter, Jr as CardHeader, Yr as CardTitle, Ir as ContactSection, $r as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, Si as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, fr as DelayedPlaceholder, pr as DelayedReveal, Er as DeliveryAddressSelector, Wn as Footer, Dr as Form, Or as FormControl, kr as FormDescription, Ar as FormField, jr as FormItem, Mr as FormLabel, Nr as FormMessage, Ci as GET_CONTRACT_SALE_DOCUMENT_ROUTE, ir as Header, Tr as Input, ni as ItinerariesPage, Vr as ItinerariesSection, ri as ItineraryDetailsPage, zr as ItineraryListItem, Br as ItineraryRouteMap, gr as Label, dr as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, cr as PlatformFooter, sr as PoweredByLoczerBadge, Qr as ProductPriceBadge, Xr as ProductWarningNotice, jt as ROUTE, ei as RadioGroup, ti as RadioGroupItem, Cn as STOREFRONT_AVAILABILITY_ROUTE, on as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ge as STOREFRONT_HERO_MODES, In as STOREFRONT_IMAGE_ROUTE, Lt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Rt as STOREFRONT_ITINERARIES_LIST_ROUTE, zt as STOREFRONT_ITINERARY_DETAIL_ROUTE, fn as STOREFRONT_PRODUCTS_ROUTE, zn as STOREFRONT_TIME_SLOTS_ROUTE, Bi as Select, Vi as SelectContent, Hi as SelectGroup, Ui as SelectIcon, Wi as SelectItem, Gi as SelectItemIndicator, Ki as SelectItemText, qi as SelectLabel, Ji as SelectScrollDownButton, Yi as SelectScrollUpButton, Xi as SelectSeparator, Zi as SelectTrigger, Qi as SelectValue, Hr as StepSectionTitle, Zr as StorefrontCartPanel, yt as StorefrontCartProvider, Xn as StorefrontContext, Pe as TIME_OPTIONS, Lr as TestimonialsSection, Fr as Textarea, ur as WhatsAppFloatingButton, wi as acceptContractSaleDocumentRequestSchema, Ti as acceptContractSaleDocumentResponseSchema, ai as accessories, g as accessoryProductSchema, Fe as applyBookingParamsToSearch, ue as assetIdSchema, Kn as badgeVariants, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, oi as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, Et as buildDailyPriceRows, Dt as buildPriceTierLabels, wn as buildStorefrontAvailabilityKey, At as buildStorefrontCartSummary, Ln as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, nn as buildWhatsAppHref, Jn as buttonVariants, Ot as calculateDailyPriceForQuantity, ce as calculateInsuranceCalendarDays, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, St as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, Ei as contractSaleDocumentAcceptanceInputSchema, si as contractSaleDocumentAcceptanceLevelSchema, Di as contractSaleDocumentAcceptanceRecordInputSchema, ci as contractSaleDocumentAcceptanceRecordSchema, li as contractSaleDocumentAcceptanceSchema, ui as contractSaleDocumentAddressSchema, Oi as contractSaleDocumentApiAcceptanceRecordSchema, ki as contractSaleDocumentApiAcceptanceSchema, Ai as contractSaleDocumentApiSchema, ji as contractSaleDocumentApiSignatureSchema, di as contractSaleDocumentAppendixKindSchema, fi as contractSaleDocumentAppendixSchema, pi as contractSaleDocumentContactSchema, mi as contractSaleDocumentKindSchema, hi as contractSaleDocumentLanguageCodeSchema, gi as contractSaleDocumentLanguageSchema, _i as contractSaleDocumentLineItemSchema, Mi as contractSaleDocumentReferenceSchema, Ni as contractSaleDocumentReferenceTypeSchema, vi as contractSaleDocumentRentalSchema, yi as contractSaleDocumentSchema, Pi as contractSaleDocumentSignatureInputSchema, bi as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Ie as createBookingPeriodConfigFromBookingEngineConfiguration, Le as createBookingPeriodConfigFromShopConfiguration, Re as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, Tn as doesStorefrontAvailabilityDisplaySoldOut, Fi as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, ot as findStorefrontProduct, st as findStorefrontProductBySlug, Ct as formatPriceMinor, Pt as formatStorefrontPhoneDisplay, kt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, wt as getAvailabilityVariant, ze as getBookingDurationLabel, Be as getBookingDurationMinutes, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, ct as getCatalogProductBaseRateMinor, lt as getCatalogProductPaginationSort, ut as getCatalogProductSortFieldForPriceUnit, Ii as getContractSaleDocumentRequestSchema, Li as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Tt as getMinDayPriceMinor, En as getStorefrontAvailabilityIssue, Dn as getStorefrontAvailabilityStatus, dt as getStorefrontBaseDailyRateMinor, ft as getStorefrontCheckoutProductId, pt as getStorefrontProductSelectionDisplayName, mt as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, On as isStorefrontAvailabilityInsufficient, j as isoDateSchema, ii as itineraryDetailsLoader, zi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, Ge as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, kn as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, Mt as requestSchema, ne as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, bt as resolveStorefrontCartItemProduct, Ft as resolveStorefrontMapsHref, It as resolveStorefrontPhoneContact, rn as resolveStorefrontWhatsAppContact, an as resolveStorefrontWhatsAppHref, Nt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, Mn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Nn as storefrontAvailabilityProductSchema, An as storefrontAvailabilityRequestSchema, jn as storefrontAvailabilityResponseSchema, Pn as storefrontAvailabilityScheduleSchema, Yn as storefrontButtonRadiusClassName, _e as storefrontCheckoutModeSchema, ln as storefrontCheckoutSubmitDeliveryRefinement, cn as storefrontCheckoutSubmitItemSchema, sn as storefrontCheckoutSubmitRequestBaseSchema, un as storefrontCheckoutSubmitRequestSchema, dn as storefrontCheckoutSubmitResponseSchema, ve as storefrontConfigurationSchema, ye as storefrontContentSchema, ar as storefrontEn, be as storefrontFaqItemSchema, xe as storefrontFaqSchema, or as storefrontFr, Se as storefrontFulfillmentModeSchema, Ce as storefrontHeroModeSchema, Rn as storefrontImageRequestSchema, Bt as storefrontItinerariesFeaturedRequestSchema, Vt as storefrontItinerariesFeaturedResponseSchema, Ht as storefrontItinerariesListRequestSchema, Ut as storefrontItinerariesListResponseSchema, Wt as storefrontItineraryBoundsSchema, Gt as storefrontItineraryCoordinateSchema, Kt as storefrontItineraryDetailRequestSchema, qt as storefrontItineraryDetailResponseSchema, Jt as storefrontItineraryDetailSchema, Yt as storefrontItineraryDifficultySchema, Xt as storefrontItineraryLocalizedStringSchema, Zt as storefrontItineraryMetricsSchema, Qt as storefrontItineraryPreviewSchema, $t as storefrontItineraryStepSchema, en as storefrontItinerarySummarySchema, tn as storefrontItineraryTripTypeSchema, we as storefrontLocalizedRichTextSchema, Te as storefrontModalMessageSchema, Ee as storefrontModulesSchema, pn as storefrontProductsRequestSchema, mn as storefrontProductsResponseSchema, hn as storefrontPublicAccessoryProductSchema, Fn as storefrontPublicAvailabilityRecordSchema, gn as storefrontPublicBikeAvailabilityStatusSchema, _n as storefrontPublicBikeProductSchema, vn as storefrontPublicProductDisplayModeSchema, yn as storefrontPublicProductPriceSchema, bn as storefrontPublicProductVariantAttributeSchema, xn as storefrontPublicProductVariantIdentifierSchema, Sn as storefrontPublicProductVariantSchema, De as storefrontReviewsModuleSchema, Oe as storefrontRichTextSchema, Ri as storefrontRoutes, ke as storefrontSettingsSchema, Ae as storefrontShopSchema, je as storefrontStatusSchema, Un as storefrontTimeSlotJourneySchema, Hn as storefrontTimeSlotSchema, Bn as storefrontTimeSlotsRequestSchema, Vn as storefrontTimeSlotsResponseSchema, Me as storefrontWorkspaceSchema, z as timeOfDaySchema, ht as toStorefrontAccessoryProducts, gt as toStorefrontBikeProducts, _t as toStorefrontBookingProducts, vt as toStorefrontBookingProductsCollections, hr as useBookingPeriod, Pr as useFormField, Zn as useOptionalStorefront, Qn as useStorefront, $n as useStorefrontBookingProducts, xt as useStorefrontCart, er as useStorefrontConfig, tr as useStorefrontItineraries, nr as useStorefrontProducts, rr as useStorefrontWorkspaceLanguage, lr as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
|
|
85
|
+
import { accessories as si } from "./data/accessories.js";
|
|
86
|
+
import ci from "./data/bikes.js";
|
|
87
|
+
import { contractSaleDocumentAcceptanceLevelSchema as li, contractSaleDocumentAcceptanceRecordSchema as ui, contractSaleDocumentAcceptanceSchema as di, contractSaleDocumentAddressSchema as fi, contractSaleDocumentAppendixKindSchema as pi, contractSaleDocumentAppendixSchema as mi, contractSaleDocumentContactSchema as hi, contractSaleDocumentKindSchema as gi, contractSaleDocumentLanguageCodeSchema as _i, contractSaleDocumentLanguageSchema as vi, contractSaleDocumentLineItemSchema as yi, contractSaleDocumentRentalSchema as bi, contractSaleDocumentSchema as xi, contractSaleDocumentSignatureSchema as Si } from "./lib/contractSaleDocument.js";
|
|
88
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Ci, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as wi, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Ti, acceptContractSaleDocumentRequestSchema as Ei, acceptContractSaleDocumentResponseSchema as Di, contractSaleDocumentAcceptanceInputSchema as Oi, contractSaleDocumentAcceptanceRecordInputSchema as ki, contractSaleDocumentApiAcceptanceRecordSchema as Ai, contractSaleDocumentApiAcceptanceSchema as ji, contractSaleDocumentApiSchema as Mi, contractSaleDocumentApiSignatureSchema as Ni, contractSaleDocumentReferenceSchema as Pi, contractSaleDocumentReferenceTypeSchema as Fi, contractSaleDocumentSignatureInputSchema as Ii, downloadContractSaleDocumentPdfRequestSchema as Li, getContractSaleDocumentRequestSchema as Ri, getContractSaleDocumentResponseSchema as zi } from "./lib/contractSaleDocumentApi.js";
|
|
89
|
+
import Bi from "./routes.js";
|
|
90
|
+
import { loader as Vi } from "./StorefrontProvider.js";
|
|
91
|
+
import { Select as Hi, SelectContent as Ui, SelectGroup as Wi, SelectIcon as Gi, SelectItem as Ki, SelectItemIndicator as qi, SelectItemText as Ji, SelectLabel as Yi, SelectScrollDownButton as Xi, SelectScrollUpButton as Zi, SelectSeparator as Qi, SelectTrigger as $i, SelectValue as ea } from "./ui/select.js";
|
|
92
|
+
export { Ci as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, zr as AboutSection, Br as AdminFloatingButton, Ne as BOOKING_SEARCH_KEYS, Kn as Badge, br as BookingEndDateField, xr as BookingEndTimeField, Tr as BookingFlowSteps, Cr as BookingMobileDateDrawer, hr as BookingPeriodProvider, wr as BookingPeriodSelector, vr as BookingStartDateField, yr as BookingStartTimeField, Sr as BookingTimeSlotsStatus, Jn as Button, Qe as CATALOG_PRODUCT_BASE_RATE_UNSET, Gr as Card, Kr as CardAction, qr as CardContent, Jr as CardDescription, Yr as CardFooter, Xr as CardHeader, Zr as CardTitle, Lr as ContactSection, ti as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, wi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, pr as DelayedPlaceholder, mr as DelayedReveal, Dr as DeliveryAddressSelector, Gn as Footer, Or as Form, kr as FormControl, Ar as FormDescription, jr as FormField, Mr as FormItem, Nr as FormLabel, Pr as FormMessage, Ti as GET_CONTRACT_SALE_DOCUMENT_ROUTE, ar as Header, Er as Input, ii as ItinerariesPage, Ur as ItinerariesSection, ai as ItineraryDetailsPage, Vr as ItineraryListItem, Hr as ItineraryRouteMap, _r as Label, fr as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, lr as PlatformFooter, cr as PoweredByLoczerBadge, ei as ProductPriceBadge, Qr as ProductWarningNotice, Mt as ROUTE, ni as RadioGroup, ri as RadioGroupItem, wn as STOREFRONT_AVAILABILITY_ROUTE, sn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ge as STOREFRONT_HERO_MODES, Ln as STOREFRONT_IMAGE_ROUTE, Rt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, zt as STOREFRONT_ITINERARIES_LIST_ROUTE, Bt as STOREFRONT_ITINERARY_DETAIL_ROUTE, pn as STOREFRONT_PRODUCTS_ROUTE, Bn as STOREFRONT_TIME_SLOTS_ROUTE, Hi as Select, Ui as SelectContent, Wi as SelectGroup, Gi as SelectIcon, Ki as SelectItem, qi as SelectItemIndicator, Ji as SelectItemText, Yi as SelectLabel, Xi as SelectScrollDownButton, Zi as SelectScrollUpButton, Qi as SelectSeparator, $i as SelectTrigger, ea as SelectValue, Wr as StepSectionTitle, $r as StorefrontCartPanel, _t as StorefrontCartProvider, Zn as StorefrontContext, Pe as TIME_OPTIONS, Rr as TestimonialsSection, Ir as Textarea, dr as WhatsAppFloatingButton, Ei as acceptContractSaleDocumentRequestSchema, Di as acceptContractSaleDocumentResponseSchema, si as accessories, g as accessoryProductSchema, Fe as applyBookingParamsToSearch, ue as assetIdSchema, qn as badgeVariants, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, ci as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, wt as buildPriceTierLabels, Tt as buildRentalPriceRows, Tn as buildStorefrontAvailabilityKey, jt as buildStorefrontCartSummary, Rn as buildStorefrontImageUrl, $e as buildStorefrontProductSlug, et as buildVariantStorefrontProductId, rn as buildWhatsAppHref, Yn as buttonVariants, Et as calculateBookingRentalUnitSummary, ce as calculateInsuranceCalendarDays, Dt as calculateRentalPriceForQuantity, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, bt as cn, tt as compareCatalogProducts, nt as compareStorefrontAccessoryProducts, rt as compareStorefrontBikeProducts, Oi as contractSaleDocumentAcceptanceInputSchema, li as contractSaleDocumentAcceptanceLevelSchema, ki as contractSaleDocumentAcceptanceRecordInputSchema, ui as contractSaleDocumentAcceptanceRecordSchema, di as contractSaleDocumentAcceptanceSchema, fi as contractSaleDocumentAddressSchema, Ai as contractSaleDocumentApiAcceptanceRecordSchema, ji as contractSaleDocumentApiAcceptanceSchema, Mi as contractSaleDocumentApiSchema, Ni as contractSaleDocumentApiSignatureSchema, pi as contractSaleDocumentAppendixKindSchema, mi as contractSaleDocumentAppendixSchema, hi as contractSaleDocumentContactSchema, gi as contractSaleDocumentKindSchema, _i as contractSaleDocumentLanguageCodeSchema, vi as contractSaleDocumentLanguageSchema, yi as contractSaleDocumentLineItemSchema, Pi as contractSaleDocumentReferenceSchema, Fi as contractSaleDocumentReferenceTypeSchema, bi as contractSaleDocumentRentalSchema, xi as contractSaleDocumentSchema, Ii as contractSaleDocumentSignatureInputSchema, Si as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Ie as createBookingPeriodConfigFromBookingEngineConfiguration, Le as createBookingPeriodConfigFromShopConfiguration, Re as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, En as doesStorefrontAvailabilityDisplaySoldOut, Li as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, it as findStorefrontProduct, at as findStorefrontProductBySlug, xt as formatPriceMinor, Ot as formatRentalUnitQuantity, Ft as formatStorefrontPhoneDisplay, kt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, St as getAvailabilityVariant, ze as getBookingParamsFromSearch, Be as getBookingSessionStorageKey, ot as getCatalogProductBaseRateMinor, st as getCatalogProductPaginationSort, ct as getCatalogProductSortFieldForPriceUnit, Ri as getContractSaleDocumentRequestSchema, zi as getContractSaleDocumentResponseSchema, Ve as getDefaultBookingParams, He as getDefaultBookingParamsForStorefrontConfiguration, Xe as getLocalizedEntry, t as getLocalizedStringValue, Ze as getLocalizedValue, Ct as getMinDayPriceMinor, At as getPricingUnitLabel, Dn as getStorefrontAvailabilityIssue, On as getStorefrontAvailabilityStatus, lt as getStorefrontBaseDailyRateMinor, ut as getStorefrontCheckoutProductId, dt as getStorefrontProductSelectionDisplayName, ft as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, kn as isStorefrontAvailabilityInsufficient, j as isoDateSchema, oi as itineraryDetailsLoader, Vi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, Ue 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, An as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, We as readBookingSearchParamsFromSessionStorage, Ge as readBookingSearchParamsFromStorage, Nt as requestSchema, ne as resolveBookingDeliveryOption, Ke as resolveBookingSearchParams, qe as resolveBookingSearchParamsFromSessionStorage, vt as resolveStorefrontCartItemProduct, It as resolveStorefrontMapsHref, Lt as resolveStorefrontPhoneContact, an as resolveStorefrontWhatsAppContact, on as resolveStorefrontWhatsAppHref, Pt 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, Nn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Pn as storefrontAvailabilityProductSchema, jn as storefrontAvailabilityRequestSchema, Mn as storefrontAvailabilityResponseSchema, Fn as storefrontAvailabilityScheduleSchema, Xn as storefrontButtonRadiusClassName, _e as storefrontCheckoutModeSchema, un as storefrontCheckoutSubmitDeliveryRefinement, ln as storefrontCheckoutSubmitItemSchema, cn as storefrontCheckoutSubmitRequestBaseSchema, dn as storefrontCheckoutSubmitRequestSchema, fn as storefrontCheckoutSubmitResponseSchema, ve as storefrontConfigurationSchema, ye as storefrontContentSchema, or as storefrontEn, be as storefrontFaqItemSchema, xe as storefrontFaqSchema, sr as storefrontFr, Se as storefrontFulfillmentModeSchema, Ce as storefrontHeroModeSchema, zn as storefrontImageRequestSchema, Vt as storefrontItinerariesFeaturedRequestSchema, Ht as storefrontItinerariesFeaturedResponseSchema, Ut as storefrontItinerariesListRequestSchema, Wt as storefrontItinerariesListResponseSchema, Gt as storefrontItineraryBoundsSchema, Kt as storefrontItineraryCoordinateSchema, qt as storefrontItineraryDetailRequestSchema, Jt as storefrontItineraryDetailResponseSchema, Yt as storefrontItineraryDetailSchema, Xt as storefrontItineraryDifficultySchema, Zt as storefrontItineraryLocalizedStringSchema, Qt as storefrontItineraryMetricsSchema, $t as storefrontItineraryPreviewSchema, en as storefrontItineraryStepSchema, tn as storefrontItinerarySummarySchema, nn as storefrontItineraryTripTypeSchema, we as storefrontLocalizedRichTextSchema, Te as storefrontModalMessageSchema, Ee as storefrontModulesSchema, mn as storefrontProductsRequestSchema, hn as storefrontProductsResponseSchema, gn as storefrontPublicAccessoryProductSchema, In as storefrontPublicAvailabilityRecordSchema, _n as storefrontPublicBikeAvailabilityStatusSchema, vn as storefrontPublicBikeProductSchema, yn as storefrontPublicProductDisplayModeSchema, bn as storefrontPublicProductPriceSchema, xn as storefrontPublicProductVariantAttributeSchema, Sn as storefrontPublicProductVariantIdentifierSchema, Cn as storefrontPublicProductVariantSchema, De as storefrontReviewsModuleSchema, Oe as storefrontRichTextSchema, Bi as storefrontRoutes, ke as storefrontSettingsSchema, Ae as storefrontShopSchema, je as storefrontStatusSchema, Wn as storefrontTimeSlotJourneySchema, Un as storefrontTimeSlotSchema, Vn as storefrontTimeSlotsRequestSchema, Hn as storefrontTimeSlotsResponseSchema, Me as storefrontWorkspaceSchema, z as timeOfDaySchema, pt as toStorefrontAccessoryProducts, mt as toStorefrontBikeProducts, ht as toStorefrontBookingProducts, gt as toStorefrontBookingProductsCollections, gr as useBookingPeriod, Fr as useFormField, Qn as useOptionalStorefront, $n as useStorefront, er as useStorefrontBookingProducts, yt as useStorefrontCart, tr as useStorefrontConfig, nr as useStorefrontItineraries, rr as useStorefrontProducts, ir as useStorefrontWorkspaceLanguage, ur as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Je as writeBookingSearchParamsToSessionStorage, Ye as writeBookingSearchParamsToStorage };
|
package/dist/lib/booking.d.ts
CHANGED
|
@@ -35,11 +35,5 @@ export declare const resolveBookingSearchParams: (searchParams: URLSearchParams,
|
|
|
35
35
|
storeSlug?: string;
|
|
36
36
|
}) => URLSearchParams;
|
|
37
37
|
export declare const resolveBookingSearchParamsFromSessionStorage: (searchParams: URLSearchParams, storeSlug?: string) => URLSearchParams;
|
|
38
|
-
export declare const getBookingDurationMinutes: (booking: StorefrontBookingParams) => number;
|
|
39
|
-
export declare const getBookingDurationLabel: (booking: StorefrontBookingParams) => {
|
|
40
|
-
hours: number;
|
|
41
|
-
minutes: number;
|
|
42
|
-
label: string;
|
|
43
|
-
};
|
|
44
38
|
export {};
|
|
45
39
|
//# sourceMappingURL=booking.d.ts.map
|