@loczer/storefront-sdk 0.220.0 → 0.222.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/StorefrontContext.d.ts +2 -2
- package/dist/StorefrontProvider.d.ts +2 -2
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +118 -126
- package/dist/components/LanguageSelector/index.d.ts +7 -0
- package/dist/components/LanguageSelector/index.d.ts.map +1 -0
- package/dist/components/LanguageSelector/index.js +69 -0
- package/dist/components/StorefrontCartPanel/index.d.ts +3 -8
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -1
- package/dist/components/StorefrontCartPanel/index.js +65 -108
- package/dist/i18n/I18nProvider.d.ts +3 -2
- package/dist/i18n/I18nProvider.d.ts.map +1 -1
- package/dist/i18n/I18nProvider.js +61 -64
- package/dist/i18n/en.d.ts +3 -2
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +6 -5
- package/dist/i18n/fr.d.ts +3 -2
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +6 -5
- package/dist/i18n/languages.d.ts +15 -0
- package/dist/i18n/languages.d.ts.map +1 -0
- package/dist/i18n/languages.js +26 -0
- package/dist/index.d.ts +36 -24
- package/dist/index.js +50 -49
- package/dist/lib/cartSummary.d.ts +2 -5
- package/dist/lib/cartSummary.d.ts.map +1 -1
- package/dist/lib/cartSummary.js +5 -11
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +150 -148
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +236 -272
- package/dist/pages/ContractSaleDocumentPage.d.ts +2 -3
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
- package/dist/pages/ContractSaleDocumentPage.js +18 -17
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.js +38 -25
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +6 -2
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +48 -19
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +2 -2
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +95 -94
- package/package.json +1 -1
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts +0 -24
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts.map +0 -1
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +0 -158
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/i18n/languages.ts
|
|
2
|
+
var e = [{
|
|
3
|
+
code: "fr",
|
|
4
|
+
name: "Français",
|
|
5
|
+
flag: "🇫🇷"
|
|
6
|
+
}, {
|
|
7
|
+
code: "en",
|
|
8
|
+
name: "English",
|
|
9
|
+
flag: "🇬🇧"
|
|
10
|
+
}], t = e.map(({ code: e }) => e), n = (e) => {
|
|
11
|
+
if (typeof e != "string") return null;
|
|
12
|
+
let [n] = e.trim().toLowerCase().split(/[-_]/);
|
|
13
|
+
return t.includes(n) ? n : null;
|
|
14
|
+
}, r = (t) => {
|
|
15
|
+
if (!t?.length) return [...e];
|
|
16
|
+
let r = [], i = /* @__PURE__ */ new Set();
|
|
17
|
+
for (let a of t) {
|
|
18
|
+
let t = n(a);
|
|
19
|
+
if (!t || i.has(t)) continue;
|
|
20
|
+
let o = e.find((e) => e.code === t);
|
|
21
|
+
o && (r.push(o), i.add(t));
|
|
22
|
+
}
|
|
23
|
+
return r.length > 0 ? r : [...e];
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { e as STOREFRONT_I18N_LANGUAGES, t as STOREFRONT_I18N_LANGUAGE_CODES, n as normalizeStorefrontI18nLanguage, r as resolveStorefrontI18nLanguageOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -2145,6 +2145,14 @@ declare type JourneyType = "start" | "end";
|
|
|
2145
2145
|
|
|
2146
2146
|
export declare const Label: React_2.ForwardRefExoticComponent<React_2.LabelHTMLAttributes<HTMLLabelElement> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
2147
2147
|
|
|
2148
|
+
export declare function LanguageSelector({ languages, className, align, }: LanguageSelectorProps): JSX.Element | null;
|
|
2149
|
+
|
|
2150
|
+
export declare type LanguageSelectorProps = {
|
|
2151
|
+
languages?: readonly string[] | null;
|
|
2152
|
+
className?: string;
|
|
2153
|
+
align?: "start" | "center" | "end";
|
|
2154
|
+
};
|
|
2155
|
+
|
|
2148
2156
|
export declare function Layout({ storefrontConfiguration, storefrontProducts, }: LayoutProps): JSX.Element;
|
|
2149
2157
|
|
|
2150
2158
|
declare type LayoutProps = {
|
|
@@ -2232,7 +2240,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
|
2232
2240
|
startDate: string;
|
|
2233
2241
|
endDate: string;
|
|
2234
2242
|
openingHours: {
|
|
2235
|
-
day: 0 |
|
|
2243
|
+
day: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
2236
2244
|
openingSlots: {
|
|
2237
2245
|
start: string;
|
|
2238
2246
|
end: string;
|
|
@@ -2394,7 +2402,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
|
2394
2402
|
accessories: AccessoryProduct[];
|
|
2395
2403
|
bookingBikes: BikeProduct[];
|
|
2396
2404
|
bookingAccessories: AccessoryProduct[];
|
|
2397
|
-
language:
|
|
2405
|
+
language: "fr" | "en";
|
|
2398
2406
|
itineraries: {
|
|
2399
2407
|
slug: string;
|
|
2400
2408
|
title: Record<string, {
|
|
@@ -3295,6 +3303,16 @@ export declare const STOREFRONT_CHECKOUT_SUBMIT_ROUTE = "/api/public/storefront/
|
|
|
3295
3303
|
|
|
3296
3304
|
export declare const STOREFRONT_HERO_MODES: readonly ["current_booking_hero", "booking_bar_overlay_hero", "vertical_marquee_hero"];
|
|
3297
3305
|
|
|
3306
|
+
declare const STOREFRONT_I18N_LANGUAGES: readonly [{
|
|
3307
|
+
readonly code: "fr";
|
|
3308
|
+
readonly name: "Français";
|
|
3309
|
+
readonly flag: "🇫🇷";
|
|
3310
|
+
}, {
|
|
3311
|
+
readonly code: "en";
|
|
3312
|
+
readonly name: "English";
|
|
3313
|
+
readonly flag: "🇬🇧";
|
|
3314
|
+
}];
|
|
3315
|
+
|
|
3298
3316
|
export declare const STOREFRONT_IMAGE_ROUTE = "/api/public/storefront/images/get";
|
|
3299
3317
|
|
|
3300
3318
|
export declare const STOREFRONT_ITINERARIES_FEATURED_ROUTE = "/api/public/storefront/itineraries/featured";
|
|
@@ -3402,19 +3420,13 @@ export declare type StorefrontCartItem = {
|
|
|
3402
3420
|
quantity: number;
|
|
3403
3421
|
};
|
|
3404
3422
|
|
|
3405
|
-
export declare function StorefrontCartPanel({ lines, itemCount,
|
|
3423
|
+
export declare function StorefrontCartPanel({ lines, itemCount, baseUnitLabel, totalMinor, title, description, checkoutPath, showCheckoutAction, showClearAction, editable, summaryAddon, pricingSummary, stickyTopClassName, onQuantityChange, onRemove, onClear, }: StorefrontCartPanelProps): JSX.Element;
|
|
3406
3424
|
|
|
3407
3425
|
declare type StorefrontCartPanelProps = {
|
|
3408
3426
|
lines: StorefrontCartSummaryLine[];
|
|
3409
3427
|
itemCount: number;
|
|
3410
|
-
totalPerBaseUnitMinor: number;
|
|
3411
3428
|
baseUnitLabel: string;
|
|
3412
|
-
|
|
3413
|
-
discountedEstimatedTotalMinor?: number;
|
|
3414
|
-
discountAmountMinor?: number;
|
|
3415
|
-
lateReturnSurchargeMinor?: number;
|
|
3416
|
-
couponCode?: string;
|
|
3417
|
-
durationInBaseUnitLabel?: string;
|
|
3429
|
+
totalMinor?: number;
|
|
3418
3430
|
title?: string;
|
|
3419
3431
|
description?: string;
|
|
3420
3432
|
checkoutPath?: string;
|
|
@@ -3422,6 +3434,7 @@ declare type StorefrontCartPanelProps = {
|
|
|
3422
3434
|
showClearAction?: boolean;
|
|
3423
3435
|
editable?: boolean;
|
|
3424
3436
|
summaryAddon?: ReactNode;
|
|
3437
|
+
pricingSummary?: ReactNode;
|
|
3425
3438
|
stickyTopClassName?: string;
|
|
3426
3439
|
onQuantityChange?: (key: string, quantity: number) => void;
|
|
3427
3440
|
onRemove?: (key: string) => void;
|
|
@@ -3436,9 +3449,7 @@ export declare function StorefrontCartProvider({ storeSlug, products, children,
|
|
|
3436
3449
|
|
|
3437
3450
|
export declare type StorefrontCartSummary = {
|
|
3438
3451
|
lines: StorefrontCartSummaryLine[];
|
|
3439
|
-
|
|
3440
|
-
billableUnitCount?: number;
|
|
3441
|
-
estimatedTotalMinor?: number;
|
|
3452
|
+
totalMinor?: number;
|
|
3442
3453
|
};
|
|
3443
3454
|
|
|
3444
3455
|
export declare type StorefrontCartSummaryLine = StorefrontCartItem & {
|
|
@@ -3449,8 +3460,7 @@ export declare type StorefrontCartSummaryLine = StorefrontCartItem & {
|
|
|
3449
3460
|
productVariantDescription?: string;
|
|
3450
3461
|
productVariantIsSize: boolean;
|
|
3451
3462
|
unitPriceMinor: number;
|
|
3452
|
-
lineTotalMinor
|
|
3453
|
-
estimatedLineTotalMinor?: number;
|
|
3463
|
+
lineTotalMinor?: number;
|
|
3454
3464
|
availabilityStatus?: "AVAILABLE" | "LOW_STOCK" | "OUT_OF_STOCK";
|
|
3455
3465
|
insufficientCapacity?: boolean;
|
|
3456
3466
|
availabilityIssue?: StorefrontAvailabilityIssue;
|
|
@@ -3674,7 +3684,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
3674
3684
|
startDate: string;
|
|
3675
3685
|
endDate: string;
|
|
3676
3686
|
openingHours: {
|
|
3677
|
-
day: 0 |
|
|
3687
|
+
day: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
3678
3688
|
openingSlots: {
|
|
3679
3689
|
start: string;
|
|
3680
3690
|
end: string;
|
|
@@ -3748,7 +3758,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
3748
3758
|
startDate: string;
|
|
3749
3759
|
endDate: string;
|
|
3750
3760
|
openingHours: {
|
|
3751
|
-
day: 0 |
|
|
3761
|
+
day: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
3752
3762
|
openingSlots: {
|
|
3753
3763
|
start: string;
|
|
3754
3764
|
end: string;
|
|
@@ -4025,7 +4035,7 @@ export declare const storefrontEn: {
|
|
|
4025
4035
|
nav_products: string;
|
|
4026
4036
|
nav_itineraries: string;
|
|
4027
4037
|
nav_contact: string;
|
|
4028
|
-
|
|
4038
|
+
language_selector_label: string;
|
|
4029
4039
|
cta_book_now: string;
|
|
4030
4040
|
cta_book_short: string;
|
|
4031
4041
|
mobile_menu_open: string;
|
|
@@ -4201,7 +4211,7 @@ export declare const storefrontEn: {
|
|
|
4201
4211
|
cart_empty_description: string;
|
|
4202
4212
|
cart_line_meta: string;
|
|
4203
4213
|
remove_from_cart: string;
|
|
4204
|
-
|
|
4214
|
+
cart_total: string;
|
|
4205
4215
|
cart_clear: string;
|
|
4206
4216
|
booking_select_variant_cancel: string;
|
|
4207
4217
|
close_modal: string;
|
|
@@ -4223,6 +4233,7 @@ export declare const storefrontEn: {
|
|
|
4223
4233
|
checkout_subtitle: string;
|
|
4224
4234
|
checkout_summary_title: string;
|
|
4225
4235
|
checkout_summary_description: string;
|
|
4236
|
+
checkout_booking_subtotal: string;
|
|
4226
4237
|
checkout_estimated_duration: string;
|
|
4227
4238
|
checkout_estimated_total: string;
|
|
4228
4239
|
checkout_form_title: string;
|
|
@@ -4573,7 +4584,7 @@ export declare const storefrontFr: {
|
|
|
4573
4584
|
nav_products: string;
|
|
4574
4585
|
nav_itineraries: string;
|
|
4575
4586
|
nav_contact: string;
|
|
4576
|
-
|
|
4587
|
+
language_selector_label: string;
|
|
4577
4588
|
cta_book_now: string;
|
|
4578
4589
|
cta_book_short: string;
|
|
4579
4590
|
mobile_menu_open: string;
|
|
@@ -4750,7 +4761,7 @@ export declare const storefrontFr: {
|
|
|
4750
4761
|
cart_empty_description: string;
|
|
4751
4762
|
cart_line_meta: string;
|
|
4752
4763
|
remove_from_cart: string;
|
|
4753
|
-
|
|
4764
|
+
cart_total: string;
|
|
4754
4765
|
cart_clear: string;
|
|
4755
4766
|
booking_select_variant_cancel: string;
|
|
4756
4767
|
close_modal: string;
|
|
@@ -4772,6 +4783,7 @@ export declare const storefrontFr: {
|
|
|
4772
4783
|
checkout_subtitle: string;
|
|
4773
4784
|
checkout_summary_title: string;
|
|
4774
4785
|
checkout_summary_description: string;
|
|
4786
|
+
checkout_booking_subtotal: string;
|
|
4775
4787
|
checkout_estimated_duration: string;
|
|
4776
4788
|
checkout_estimated_total: string;
|
|
4777
4789
|
checkout_form_title: string;
|
|
@@ -5066,7 +5078,7 @@ export declare const storefrontHeroModeSchema: z.ZodEnum<{
|
|
|
5066
5078
|
vertical_marquee_hero: "vertical_marquee_hero";
|
|
5067
5079
|
}>;
|
|
5068
5080
|
|
|
5069
|
-
declare type StorefrontI18nLanguage =
|
|
5081
|
+
declare type StorefrontI18nLanguage = (typeof STOREFRONT_I18N_LANGUAGES)[number]["code"];
|
|
5070
5082
|
|
|
5071
5083
|
export declare type StorefrontImageRequestPayload = z.infer<typeof storefrontImageRequestSchema>;
|
|
5072
5084
|
|
|
@@ -6285,7 +6297,7 @@ export declare function useStorefrontConfig(): {
|
|
|
6285
6297
|
startDate: string;
|
|
6286
6298
|
endDate: string;
|
|
6287
6299
|
openingHours: {
|
|
6288
|
-
day: 0 |
|
|
6300
|
+
day: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
6289
6301
|
openingSlots: {
|
|
6290
6302
|
start: string;
|
|
6291
6303
|
end: string;
|
|
@@ -6521,7 +6533,7 @@ export declare function useStorefrontConfig(): {
|
|
|
6521
6533
|
startDate: string;
|
|
6522
6534
|
endDate: string;
|
|
6523
6535
|
openingHours: {
|
|
6524
|
-
day: 0 |
|
|
6536
|
+
day: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
6525
6537
|
openingSlots: {
|
|
6526
6538
|
start: string;
|
|
6527
6539
|
end: string;
|
package/dist/index.js
CHANGED
|
@@ -33,62 +33,63 @@ import { ROUTE as Un, requestSchema as Wn, responseSchema as Gn, storefrontTimeS
|
|
|
33
33
|
import { Footer as Jn } from "./components/Footer/index.js";
|
|
34
34
|
import { Badge as Yn, badgeVariants as Xn } from "./ui/badge.js";
|
|
35
35
|
import { Button as Zn, buttonVariants as Qn, storefrontButtonRadiusClassName as $n } from "./ui/button.js";
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { storefront as ur } from "./i18n/
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
36
|
+
import { LanguageSelector as er } from "./components/LanguageSelector/index.js";
|
|
37
|
+
import { StorefrontContext as tr, useOptionalStorefront as nr, useStorefront as rr, useStorefrontBookingProducts as ir, useStorefrontConfig as ar, useStorefrontItineraries as or, useStorefrontProducts as sr, useStorefrontWorkspaceLanguage as cr } from "./StorefrontContext.js";
|
|
38
|
+
import { Header as lr } from "./components/Header/index.js";
|
|
39
|
+
import { storefront as ur } from "./i18n/en.js";
|
|
40
|
+
import { storefront as dr } from "./i18n/fr.js";
|
|
41
|
+
import { PoweredByLoczerBadge as fr } from "./components/PoweredByLoczerBadge/index.js";
|
|
42
|
+
import { PlatformFooter as pr } from "./components/PlatformFooter/index.js";
|
|
43
|
+
import { useWhatsAppFloatingButton as mr } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
|
|
44
|
+
import { WhatsAppFloatingButton as hr } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
44
45
|
import "./components/WhatsAppFloatingButton/index.js";
|
|
45
|
-
import { Layout as
|
|
46
|
-
import { DelayedPlaceholder as
|
|
47
|
-
import { BookingPeriodProvider as
|
|
48
|
-
import { Label as
|
|
49
|
-
import { BookingStartDateField as
|
|
50
|
-
import { BookingStartTimeField as
|
|
51
|
-
import { BookingEndDateField as
|
|
52
|
-
import { BookingEndTimeField as
|
|
53
|
-
import { BookingTimeSlotsStatus as
|
|
54
|
-
import { BookingMobileDateDrawer as
|
|
55
|
-
import { BookingPeriodSelector as
|
|
56
|
-
import { BookingFlowSteps as
|
|
57
|
-
import { Input as
|
|
58
|
-
import { DeliveryAddressSelector as
|
|
59
|
-
import { Form as
|
|
60
|
-
import { Textarea as
|
|
61
|
-
import { ContactSection as
|
|
62
|
-
import { TestimonialsSection as
|
|
63
|
-
import { AboutSection as
|
|
64
|
-
import { AdminFloatingButton as
|
|
46
|
+
import { Layout as gr } from "./components/Layout/index.js";
|
|
47
|
+
import { DelayedPlaceholder as _r, DelayedReveal as vr } from "./components/DelayedReveal/index.js";
|
|
48
|
+
import { BookingPeriodProvider as yr, useBookingPeriod as br } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
49
|
+
import { Label as xr } from "./ui/label.js";
|
|
50
|
+
import { BookingStartDateField as Sr } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
51
|
+
import { BookingStartTimeField as Cr } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
52
|
+
import { BookingEndDateField as wr } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
53
|
+
import { BookingEndTimeField as Tr } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
54
|
+
import { BookingTimeSlotsStatus as Er } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
|
|
55
|
+
import { BookingMobileDateDrawer as Dr } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
|
|
56
|
+
import { BookingPeriodSelector as Or } from "./components/BookingPeriodSelector/index.js";
|
|
57
|
+
import { BookingFlowSteps as kr } from "./components/BookingFlowSteps/index.js";
|
|
58
|
+
import { Input as Ar } from "./ui/input.js";
|
|
59
|
+
import { DeliveryAddressSelector as jr } from "./components/DeliveryAddressSelector/index.js";
|
|
60
|
+
import { Form as Mr, FormControl as Nr, FormDescription as Pr, FormField as Fr, FormItem as Ir, FormLabel as Lr, FormMessage as Rr, useFormField as zr } from "./ui/form.js";
|
|
61
|
+
import { Textarea as Br } from "./ui/textarea.js";
|
|
62
|
+
import { ContactSection as Vr } from "./components/ContactSection/index.js";
|
|
63
|
+
import { TestimonialsSection as Hr } from "./components/TestimonialsSection/index.js";
|
|
64
|
+
import { AboutSection as Ur } from "./components/AboutSection/index.js";
|
|
65
|
+
import { AdminFloatingButton as Wr } from "./components/AdminFloatingButton/AdminFloatingButton.js";
|
|
65
66
|
import "./components/AdminFloatingButton/index.js";
|
|
66
|
-
import { ItineraryListItem as
|
|
67
|
-
import { ItineraryRouteMap as
|
|
68
|
-
import { ItinerariesSection as
|
|
67
|
+
import { ItineraryListItem as Gr } from "./components/Itineraries/ItineraryListItem.js";
|
|
68
|
+
import { ItineraryRouteMap as Kr } from "./components/Itineraries/ItineraryRouteMap.js";
|
|
69
|
+
import { ItinerariesSection as qr } from "./components/Itineraries/ItinerariesSection.js";
|
|
69
70
|
import "./components/Itineraries/index.js";
|
|
70
|
-
import { StepSectionTitle as
|
|
71
|
-
import { Card as
|
|
72
|
-
import { ProductWarningNotice as
|
|
73
|
-
import { StorefrontCartPanel as
|
|
74
|
-
import { ProductPriceBadge as
|
|
75
|
-
import { ContractSaleDocument as
|
|
71
|
+
import { StepSectionTitle as Jr } from "./components/StepSectionTitle/index.js";
|
|
72
|
+
import { Card as Yr, CardAction as Xr, CardContent as Zr, CardDescription as Qr, CardFooter as $r, CardHeader as ei, CardTitle as ti } from "./ui/card.js";
|
|
73
|
+
import { ProductWarningNotice as ni } from "./components/ProductWarningNotice/index.js";
|
|
74
|
+
import { StorefrontCartPanel as ri } from "./components/StorefrontCartPanel/index.js";
|
|
75
|
+
import { ProductPriceBadge as ii } from "./components/ProductPriceBadge/index.js";
|
|
76
|
+
import { ContractSaleDocument as ai } from "./components/ContractSaleDocument/Invoice.js";
|
|
76
77
|
import "./components/ContractSaleDocument/index.js";
|
|
77
|
-
import { RadioGroup as
|
|
78
|
+
import { RadioGroup as oi, RadioGroupItem as si } from "./ui/radio-group.js";
|
|
78
79
|
import "./pages/HomePage.js";
|
|
79
80
|
import "./pages/BookingPage.js";
|
|
80
81
|
import "./pages/ProductPage.js";
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
82
|
+
import ci from "./pages/ItinerariesPage.js";
|
|
83
|
+
import li, { loader as ui } from "./pages/ItineraryDetailsPage.js";
|
|
84
|
+
import di from "./pages/RentalTermsPage.js";
|
|
84
85
|
import "./pages/CheckoutPage.js";
|
|
85
86
|
import "./pages/CheckoutSuccessPage.js";
|
|
86
87
|
import "./pages/NotFoundPage.js";
|
|
87
|
-
import { accessories as
|
|
88
|
-
import
|
|
89
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
90
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
91
|
-
import
|
|
92
|
-
import { loader as
|
|
93
|
-
import { Select as
|
|
94
|
-
export { Di as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Hr as AboutSection, Ur as AdminFloatingButton, Fe as BOOKING_SEARCH_KEYS, Yn as Badge, Cr as BookingEndDateField, wr as BookingEndTimeField, Or as BookingFlowSteps, Er as BookingMobileDateDrawer, vr as BookingPeriodProvider, Dr as BookingPeriodSelector, xr as BookingStartDateField, Sr as BookingStartTimeField, Tr as BookingTimeSlotsStatus, Zn as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, Jr as Card, Yr as CardAction, Xr as CardContent, Zr as CardDescription, Qr as CardFooter, $r as CardHeader, ei as CardTitle, Br as ContactSection, ii as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Oi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, gr as DelayedPlaceholder, _r as DelayedReveal, Ar as DeliveryAddressSelector, Jn as Footer, jr as Form, Mr as FormControl, Nr as FormDescription, Pr as FormField, Fr as FormItem, Ir as FormLabel, Lr as FormMessage, ki as GET_CONTRACT_SALE_DOCUMENT_ROUTE, cr as Header, kr as Input, si as ItinerariesPage, Kr as ItinerariesSection, ci as ItineraryDetailsPage, Wr as ItineraryListItem, Gr as ItineraryRouteMap, br as Label, hr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, fr as PlatformFooter, dr as PoweredByLoczerBadge, ri as ProductPriceBadge, ti as ProductWarningNotice, Ft as ROUTE, ai as RadioGroup, oi as RadioGroupItem, ui as RentalTermsPage, Dn as STOREFRONT_AVAILABILITY_ROUTE, un as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, _e as STOREFRONT_HERO_MODES, Bn as STOREFRONT_IMAGE_ROUTE, Vt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Ht as STOREFRONT_ITINERARIES_LIST_ROUTE, Ut as STOREFRONT_ITINERARY_DETAIL_ROUTE, gn as STOREFRONT_PRODUCTS_ROUTE, Un as STOREFRONT_TIME_SLOTS_ROUTE, Ki as Select, qi as SelectContent, Ji as SelectGroup, Yi as SelectIcon, Xi as SelectItem, Zi as SelectItemIndicator, Qi as SelectItemText, $i as SelectLabel, ea as SelectScrollDownButton, ta as SelectScrollUpButton, na as SelectSeparator, ra as SelectTrigger, ia as SelectValue, qr as StepSectionTitle, ni as StorefrontCartPanel, bt as StorefrontCartProvider, er as StorefrontContext, Ie as TIME_OPTIONS, Vr as TestimonialsSection, zr as Textarea, mr as WhatsAppFloatingButton, Ai as acceptContractSaleDocumentRequestSchema, ji as acceptContractSaleDocumentResponseSchema, di as accessories, _ as accessoryProductSchema, Le as applyBookingParamsToSearch, de as assetIdSchema, Xn as badgeVariants, fe as baseAssetSchema, pe as baseAssetStatusSchema, me as baseBookingItemSchema, he as baseBookingSchema, ge as baseBookingStateSchema, v as bikeProductSchema, fi as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, Dt as buildPriceTierLabels, Ot as buildRentalPriceRows, On as buildStorefrontAvailabilityKey, Pt as buildStorefrontCartSummary, Vn as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, sn as buildWhatsAppHref, Qn as buttonVariants, kt as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, At as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, Ct as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, Mi as contractSaleDocumentAcceptanceInputSchema, pi as contractSaleDocumentAcceptanceLevelSchema, Ni as contractSaleDocumentAcceptanceRecordInputSchema, mi as contractSaleDocumentAcceptanceRecordSchema, hi as contractSaleDocumentAcceptanceSchema, gi as contractSaleDocumentAddressSchema, Pi as contractSaleDocumentApiAcceptanceRecordSchema, Fi as contractSaleDocumentApiAcceptanceSchema, Ii as contractSaleDocumentApiSchema, Li as contractSaleDocumentApiSignatureSchema, _i as contractSaleDocumentAppendixKindSchema, vi as contractSaleDocumentAppendixSchema, yi as contractSaleDocumentContactSchema, bi as contractSaleDocumentKindSchema, xi as contractSaleDocumentLanguageCodeSchema, Si as contractSaleDocumentLanguageSchema, Ci as contractSaleDocumentLineItemSchema, Ri as contractSaleDocumentReferenceSchema, zi as contractSaleDocumentReferenceTypeSchema, wi as contractSaleDocumentRentalSchema, Ti as contractSaleDocumentSchema, Bi as contractSaleDocumentSignatureInputSchema, Ei as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Re as createBookingPeriodConfigFromBookingEngineConfiguration, ze as createBookingPeriodConfigFromShopConfiguration, Be as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, kn as doesStorefrontAvailabilityDisplaySoldOut, Vi as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ot as findStorefrontInsurancePricingBike, st as findStorefrontProduct, ct as findStorefrontProductBySlug, wt as formatPriceMinor, jt as formatRentalUnitQuantity, Rt as formatStorefrontPhoneDisplay, Mt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, Tt as getAvailabilityVariant, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, lt as getCatalogProductBaseRateMinor, ut as getCatalogProductPaginationSort, dt as getCatalogProductSortFieldForPriceUnit, Hi as getContractSaleDocumentRequestSchema, Ui as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Et as getMinDayPriceMinor, Nt as getPricingUnitLabel, An as getStorefrontAvailabilityIssue, jn as getStorefrontAvailabilityStatus, ft as getStorefrontBaseDailyRateMinor, pt as getStorefrontCheckoutProductId, mt as getStorefrontProductSelectionDisplayName, ht as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Mn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, li as itineraryDetailsLoader, Gi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, Ge 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, Nn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, It as requestSchema, re as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, xt as resolveStorefrontCartItemProduct, zt as resolveStorefrontMapsHref, Bt as resolveStorefrontPhoneContact, cn as resolveStorefrontWhatsAppContact, ln as resolveStorefrontWhatsAppHref, Lt 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, In as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Ln as storefrontAvailabilityProductSchema, Pn as storefrontAvailabilityRequestSchema, Fn as storefrontAvailabilityResponseSchema, Rn as storefrontAvailabilityScheduleSchema, $n as storefrontButtonRadiusClassName, ve as storefrontCheckoutModeSchema, pn as storefrontCheckoutSubmitDeliveryRefinement, fn as storefrontCheckoutSubmitItemSchema, dn as storefrontCheckoutSubmitRequestBaseSchema, mn as storefrontCheckoutSubmitRequestSchema, hn as storefrontCheckoutSubmitResponseSchema, ye as storefrontConfigurationSchema, be as storefrontContentSchema, lr as storefrontEn, xe as storefrontFaqItemSchema, Se as storefrontFaqSchema, ur as storefrontFr, Ce as storefrontFulfillmentModeSchema, we as storefrontHeroModeSchema, Hn as storefrontImageRequestSchema, Te as storefrontInformationSchema, Wt as storefrontItinerariesFeaturedRequestSchema, Gt as storefrontItinerariesFeaturedResponseSchema, Kt as storefrontItinerariesListRequestSchema, qt as storefrontItinerariesListResponseSchema, Jt as storefrontItineraryBoundsSchema, Yt as storefrontItineraryCoordinateSchema, Xt as storefrontItineraryDetailRequestSchema, Zt as storefrontItineraryDetailResponseSchema, Qt as storefrontItineraryDetailSchema, $t as storefrontItineraryDifficultySchema, en as storefrontItineraryLocalizedStringSchema, tn as storefrontItineraryMetricsSchema, nn as storefrontItineraryPreviewSchema, rn as storefrontItineraryStepSchema, an as storefrontItinerarySummarySchema, on as storefrontItineraryTripTypeSchema, Ee as storefrontLocalizedRichTextSchema, De as storefrontModalMessageSchema, Oe as storefrontModulesSchema, _n as storefrontProductsRequestSchema, vn as storefrontProductsResponseSchema, yn as storefrontPublicAccessoryProductSchema, zn as storefrontPublicAvailabilityRecordSchema, bn as storefrontPublicBikeAvailabilityStatusSchema, xn as storefrontPublicBikeProductSchema, Sn as storefrontPublicProductDisplayModeSchema, Cn as storefrontPublicProductPriceSchema, wn as storefrontPublicProductVariantAttributeSchema, Tn as storefrontPublicProductVariantIdentifierSchema, En as storefrontPublicProductVariantSchema, ke as storefrontReviewsModuleSchema, Ae as storefrontRichTextSchema, Wi as storefrontRoutes, je as storefrontSettingsSchema, Me as storefrontShopSchema, Ne as storefrontStatusSchema, qn as storefrontTimeSlotJourneySchema, Kn as storefrontTimeSlotSchema, Wn as storefrontTimeSlotsRequestSchema, Gn as storefrontTimeSlotsResponseSchema, Pe as storefrontWorkspaceSchema, B as timeOfDaySchema, gt as toStorefrontAccessoryProducts, _t as toStorefrontBikeProducts, vt as toStorefrontBookingProducts, yt as toStorefrontBookingProductsCollections, yr as useBookingPeriod, Rr as useFormField, tr as useOptionalStorefront, nr as useStorefront, rr as useStorefrontBookingProducts, St as useStorefrontCart, ir as useStorefrontConfig, ar as useStorefrontItineraries, or as useStorefrontProducts, sr as useStorefrontWorkspaceLanguage, pr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
|
|
88
|
+
import { accessories as fi } from "./data/accessories.js";
|
|
89
|
+
import pi from "./data/bikes.js";
|
|
90
|
+
import { contractSaleDocumentAcceptanceLevelSchema as mi, contractSaleDocumentAcceptanceRecordSchema as hi, contractSaleDocumentAcceptanceSchema as gi, contractSaleDocumentAddressSchema as _i, contractSaleDocumentAppendixKindSchema as vi, contractSaleDocumentAppendixSchema as yi, contractSaleDocumentContactSchema as bi, contractSaleDocumentKindSchema as xi, contractSaleDocumentLanguageCodeSchema as Si, contractSaleDocumentLanguageSchema as Ci, contractSaleDocumentLineItemSchema as wi, contractSaleDocumentRentalSchema as Ti, contractSaleDocumentSchema as Ei, contractSaleDocumentSignatureSchema as Di } from "./lib/contractSaleDocument.js";
|
|
91
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Oi, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as ki, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Ai, acceptContractSaleDocumentRequestSchema as ji, acceptContractSaleDocumentResponseSchema as Mi, contractSaleDocumentAcceptanceInputSchema as Ni, contractSaleDocumentAcceptanceRecordInputSchema as Pi, contractSaleDocumentApiAcceptanceRecordSchema as Fi, contractSaleDocumentApiAcceptanceSchema as Ii, contractSaleDocumentApiSchema as Li, contractSaleDocumentApiSignatureSchema as Ri, contractSaleDocumentReferenceSchema as zi, contractSaleDocumentReferenceTypeSchema as Bi, contractSaleDocumentSignatureInputSchema as Vi, downloadContractSaleDocumentPdfRequestSchema as Hi, getContractSaleDocumentRequestSchema as Ui, getContractSaleDocumentResponseSchema as Wi } from "./lib/contractSaleDocumentApi.js";
|
|
92
|
+
import Gi from "./routes.js";
|
|
93
|
+
import { loader as Ki } from "./StorefrontProvider.js";
|
|
94
|
+
import { Select as qi, SelectContent as Ji, SelectGroup as Yi, SelectIcon as Xi, SelectItem as Zi, SelectItemIndicator as Qi, SelectItemText as $i, SelectLabel as ea, SelectScrollDownButton as ta, SelectScrollUpButton as na, SelectSeparator as ra, SelectTrigger as ia, SelectValue as aa } from "./ui/select.js";
|
|
95
|
+
export { Oi as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Ur as AboutSection, Wr as AdminFloatingButton, Fe as BOOKING_SEARCH_KEYS, Yn as Badge, wr as BookingEndDateField, Tr as BookingEndTimeField, kr as BookingFlowSteps, Dr as BookingMobileDateDrawer, yr as BookingPeriodProvider, Or as BookingPeriodSelector, Sr as BookingStartDateField, Cr as BookingStartTimeField, Er as BookingTimeSlotsStatus, Zn as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, Yr as Card, Xr as CardAction, Zr as CardContent, Qr as CardDescription, $r as CardFooter, ei as CardHeader, ti as CardTitle, Vr as ContactSection, ai as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, ki as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, _r as DelayedPlaceholder, vr as DelayedReveal, jr as DeliveryAddressSelector, Jn as Footer, Mr as Form, Nr as FormControl, Pr as FormDescription, Fr as FormField, Ir as FormItem, Lr as FormLabel, Rr as FormMessage, Ai as GET_CONTRACT_SALE_DOCUMENT_ROUTE, lr as Header, Ar as Input, ci as ItinerariesPage, qr as ItinerariesSection, li as ItineraryDetailsPage, Gr as ItineraryListItem, Kr as ItineraryRouteMap, xr as Label, er as LanguageSelector, gr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, pr as PlatformFooter, fr as PoweredByLoczerBadge, ii as ProductPriceBadge, ni as ProductWarningNotice, Ft as ROUTE, oi as RadioGroup, si as RadioGroupItem, di as RentalTermsPage, Dn as STOREFRONT_AVAILABILITY_ROUTE, un as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, _e as STOREFRONT_HERO_MODES, Bn as STOREFRONT_IMAGE_ROUTE, Vt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Ht as STOREFRONT_ITINERARIES_LIST_ROUTE, Ut as STOREFRONT_ITINERARY_DETAIL_ROUTE, gn as STOREFRONT_PRODUCTS_ROUTE, Un as STOREFRONT_TIME_SLOTS_ROUTE, qi as Select, Ji as SelectContent, Yi as SelectGroup, Xi as SelectIcon, Zi as SelectItem, Qi as SelectItemIndicator, $i as SelectItemText, ea as SelectLabel, ta as SelectScrollDownButton, na as SelectScrollUpButton, ra as SelectSeparator, ia as SelectTrigger, aa as SelectValue, Jr as StepSectionTitle, ri as StorefrontCartPanel, bt as StorefrontCartProvider, tr as StorefrontContext, Ie as TIME_OPTIONS, Hr as TestimonialsSection, Br as Textarea, hr as WhatsAppFloatingButton, ji as acceptContractSaleDocumentRequestSchema, Mi as acceptContractSaleDocumentResponseSchema, fi as accessories, _ as accessoryProductSchema, Le as applyBookingParamsToSearch, de as assetIdSchema, Xn as badgeVariants, fe as baseAssetSchema, pe as baseAssetStatusSchema, me as baseBookingItemSchema, he as baseBookingSchema, ge as baseBookingStateSchema, v as bikeProductSchema, pi as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, Dt as buildPriceTierLabels, Ot as buildRentalPriceRows, On as buildStorefrontAvailabilityKey, Pt as buildStorefrontCartSummary, Vn as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, sn as buildWhatsAppHref, Qn as buttonVariants, kt as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, At as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, Ct as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, Ni as contractSaleDocumentAcceptanceInputSchema, mi as contractSaleDocumentAcceptanceLevelSchema, Pi as contractSaleDocumentAcceptanceRecordInputSchema, hi as contractSaleDocumentAcceptanceRecordSchema, gi as contractSaleDocumentAcceptanceSchema, _i as contractSaleDocumentAddressSchema, Fi as contractSaleDocumentApiAcceptanceRecordSchema, Ii as contractSaleDocumentApiAcceptanceSchema, Li as contractSaleDocumentApiSchema, Ri as contractSaleDocumentApiSignatureSchema, vi as contractSaleDocumentAppendixKindSchema, yi as contractSaleDocumentAppendixSchema, bi as contractSaleDocumentContactSchema, xi as contractSaleDocumentKindSchema, Si as contractSaleDocumentLanguageCodeSchema, Ci as contractSaleDocumentLanguageSchema, wi as contractSaleDocumentLineItemSchema, zi as contractSaleDocumentReferenceSchema, Bi as contractSaleDocumentReferenceTypeSchema, Ti as contractSaleDocumentRentalSchema, Ei as contractSaleDocumentSchema, Vi as contractSaleDocumentSignatureInputSchema, Di as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Re as createBookingPeriodConfigFromBookingEngineConfiguration, ze as createBookingPeriodConfigFromShopConfiguration, Be as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, kn as doesStorefrontAvailabilityDisplaySoldOut, Hi as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ot as findStorefrontInsurancePricingBike, st as findStorefrontProduct, ct as findStorefrontProductBySlug, wt as formatPriceMinor, jt as formatRentalUnitQuantity, Rt as formatStorefrontPhoneDisplay, Mt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, Tt as getAvailabilityVariant, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, lt as getCatalogProductBaseRateMinor, ut as getCatalogProductPaginationSort, dt as getCatalogProductSortFieldForPriceUnit, Ui as getContractSaleDocumentRequestSchema, Wi as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Et as getMinDayPriceMinor, Nt as getPricingUnitLabel, An as getStorefrontAvailabilityIssue, jn as getStorefrontAvailabilityStatus, ft as getStorefrontBaseDailyRateMinor, pt as getStorefrontCheckoutProductId, mt as getStorefrontProductSelectionDisplayName, ht as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Mn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, ui as itineraryDetailsLoader, Ki as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, Ge 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, Nn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, It as requestSchema, re as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, xt as resolveStorefrontCartItemProduct, zt as resolveStorefrontMapsHref, Bt as resolveStorefrontPhoneContact, cn as resolveStorefrontWhatsAppContact, ln as resolveStorefrontWhatsAppHref, Lt 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, In as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Ln as storefrontAvailabilityProductSchema, Pn as storefrontAvailabilityRequestSchema, Fn as storefrontAvailabilityResponseSchema, Rn as storefrontAvailabilityScheduleSchema, $n as storefrontButtonRadiusClassName, ve as storefrontCheckoutModeSchema, pn as storefrontCheckoutSubmitDeliveryRefinement, fn as storefrontCheckoutSubmitItemSchema, dn as storefrontCheckoutSubmitRequestBaseSchema, mn as storefrontCheckoutSubmitRequestSchema, hn as storefrontCheckoutSubmitResponseSchema, ye as storefrontConfigurationSchema, be as storefrontContentSchema, ur as storefrontEn, xe as storefrontFaqItemSchema, Se as storefrontFaqSchema, dr as storefrontFr, Ce as storefrontFulfillmentModeSchema, we as storefrontHeroModeSchema, Hn as storefrontImageRequestSchema, Te as storefrontInformationSchema, Wt as storefrontItinerariesFeaturedRequestSchema, Gt as storefrontItinerariesFeaturedResponseSchema, Kt as storefrontItinerariesListRequestSchema, qt as storefrontItinerariesListResponseSchema, Jt as storefrontItineraryBoundsSchema, Yt as storefrontItineraryCoordinateSchema, Xt as storefrontItineraryDetailRequestSchema, Zt as storefrontItineraryDetailResponseSchema, Qt as storefrontItineraryDetailSchema, $t as storefrontItineraryDifficultySchema, en as storefrontItineraryLocalizedStringSchema, tn as storefrontItineraryMetricsSchema, nn as storefrontItineraryPreviewSchema, rn as storefrontItineraryStepSchema, an as storefrontItinerarySummarySchema, on as storefrontItineraryTripTypeSchema, Ee as storefrontLocalizedRichTextSchema, De as storefrontModalMessageSchema, Oe as storefrontModulesSchema, _n as storefrontProductsRequestSchema, vn as storefrontProductsResponseSchema, yn as storefrontPublicAccessoryProductSchema, zn as storefrontPublicAvailabilityRecordSchema, bn as storefrontPublicBikeAvailabilityStatusSchema, xn as storefrontPublicBikeProductSchema, Sn as storefrontPublicProductDisplayModeSchema, Cn as storefrontPublicProductPriceSchema, wn as storefrontPublicProductVariantAttributeSchema, Tn as storefrontPublicProductVariantIdentifierSchema, En as storefrontPublicProductVariantSchema, ke as storefrontReviewsModuleSchema, Ae as storefrontRichTextSchema, Gi as storefrontRoutes, je as storefrontSettingsSchema, Me as storefrontShopSchema, Ne as storefrontStatusSchema, qn as storefrontTimeSlotJourneySchema, Kn as storefrontTimeSlotSchema, Wn as storefrontTimeSlotsRequestSchema, Gn as storefrontTimeSlotsResponseSchema, Pe as storefrontWorkspaceSchema, B as timeOfDaySchema, gt as toStorefrontAccessoryProducts, _t as toStorefrontBikeProducts, vt as toStorefrontBookingProducts, yt as toStorefrontBookingProductsCollections, br as useBookingPeriod, zr as useFormField, nr as useOptionalStorefront, rr as useStorefront, ir as useStorefrontBookingProducts, St as useStorefrontCart, ar as useStorefrontConfig, or as useStorefrontItineraries, sr as useStorefrontProducts, cr as useStorefrontWorkspaceLanguage, mr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
|
|
@@ -10,17 +10,14 @@ export type StorefrontCartSummaryLine = StorefrontCartItem & {
|
|
|
10
10
|
productVariantDescription?: string;
|
|
11
11
|
productVariantIsSize: boolean;
|
|
12
12
|
unitPriceMinor: number;
|
|
13
|
-
lineTotalMinor
|
|
14
|
-
estimatedLineTotalMinor?: number;
|
|
13
|
+
lineTotalMinor?: number;
|
|
15
14
|
availabilityStatus?: "AVAILABLE" | "LOW_STOCK" | "OUT_OF_STOCK";
|
|
16
15
|
insufficientCapacity?: boolean;
|
|
17
16
|
availabilityIssue?: StorefrontAvailabilityIssue;
|
|
18
17
|
};
|
|
19
18
|
export type StorefrontCartSummary = {
|
|
20
19
|
lines: StorefrontCartSummaryLine[];
|
|
21
|
-
|
|
22
|
-
billableUnitCount?: number;
|
|
23
|
-
estimatedTotalMinor?: number;
|
|
20
|
+
totalMinor?: number;
|
|
24
21
|
};
|
|
25
22
|
export declare const buildStorefrontCartSummary: (params: {
|
|
26
23
|
items: StorefrontCartItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartSummary.d.ts","sourceRoot":"","sources":["../../src/lib/cartSummary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAClF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;AAE3E,OAAO,EAAkC,KAAK,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAE/F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AAIxE,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,GAAG;IAC3D,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,oBAAoB,EAAE,OAAO,CAAA;IAC7B,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,
|
|
1
|
+
{"version":3,"file":"cartSummary.d.ts","sourceRoot":"","sources":["../../src/lib/cartSummary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAClF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;AAE3E,OAAO,EAAkC,KAAK,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAE/F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AAIxE,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,GAAG;IAC3D,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,oBAAoB,EAAE,OAAO,CAAA;IAC7B,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,cAAc,CAAA;IAC/D,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,iBAAiB,CAAC,EAAE,2BAA2B,CAAA;CAChD,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,yBAAyB,EAAE,CAAA;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,QAAQ;IACjD,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,EAAE,6BAA6B,CAAA;IACvC,SAAS,EAAE,4BAA4B,CAAC,MAAM,CAAC,CAAA;IAC/C,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,KAAG,qBAyDH,CAAA"}
|
package/dist/lib/cartSummary.js
CHANGED
|
@@ -10,7 +10,7 @@ var o = (o) => {
|
|
|
10
10
|
if (!l) return null;
|
|
11
11
|
let u = c.productVariantId ? l.productVariants?.find((e) => e.id === c.productVariantId) : void 0;
|
|
12
12
|
if (c.productVariantId && !u) return null;
|
|
13
|
-
let d = u ? t(u) : void 0, f = l.prices ?? [], p = a(f, 1, o.priceUnit) ?? 0, m = n(l.name, o.language, o.fallbackLanguage), h = l.storefrontDisplayMode === "variants_as_products" && d?.label ? `${m} ${d.label}`.trim() : m, g = n(l.warning, o.language, o.fallbackLanguage).trim(), _ = u ? !!e(u, "size") : !1, v = typeof s == "number" ? a(f, s, o.priceUnit)
|
|
13
|
+
let d = u ? t(u) : void 0, f = l.prices ?? [], p = a(f, 1, o.priceUnit) ?? 0, m = n(l.name, o.language, o.fallbackLanguage), h = l.storefrontDisplayMode === "variants_as_products" && d?.label ? `${m} ${d.label}`.trim() : m, g = n(l.warning, o.language, o.fallbackLanguage).trim(), _ = u ? !!e(u, "size") : !1, v = typeof s == "number" ? a(f, s, o.priceUnit) : void 0, y = typeof v == "number" ? v * c.quantity : void 0;
|
|
14
14
|
return {
|
|
15
15
|
...c,
|
|
16
16
|
checkoutProductId: r(l),
|
|
@@ -20,20 +20,14 @@ var o = (o) => {
|
|
|
20
20
|
productVariantDescription: d?.description,
|
|
21
21
|
productVariantIsSize: _,
|
|
22
22
|
unitPriceMinor: p,
|
|
23
|
-
lineTotalMinor:
|
|
24
|
-
estimatedLineTotalMinor: y,
|
|
23
|
+
...typeof y == "number" ? { lineTotalMinor: y } : {},
|
|
25
24
|
availabilityStatus: "availabilityStatus" in l ? l.availabilityStatus : void 0
|
|
26
25
|
};
|
|
27
|
-
}).filter((e) => e !== null)
|
|
26
|
+
}).filter((e) => e !== null);
|
|
28
27
|
return typeof s == "number" ? {
|
|
29
28
|
lines: c,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
estimatedTotalMinor: c.reduce((e, t) => e + (t.estimatedLineTotalMinor ?? Math.round(t.lineTotalMinor * s)), 0)
|
|
33
|
-
} : {
|
|
34
|
-
lines: c,
|
|
35
|
-
totalPerBaseUnitMinor: l
|
|
36
|
-
};
|
|
29
|
+
totalMinor: c.reduce((e, t) => e + (t.lineTotalMinor ?? 0), 0)
|
|
30
|
+
} : { lines: c };
|
|
37
31
|
};
|
|
38
32
|
//#endregion
|
|
39
33
|
export { o as buildStorefrontCartSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookingPage.d.ts","sourceRoot":"","sources":["../../src/pages/BookingPage.tsx"],"names":[],"mappings":"AA6MA,MAAM,CAAC,OAAO,UAAU,WAAW,
|
|
1
|
+
{"version":3,"file":"BookingPage.d.ts","sourceRoot":"","sources":["../../src/pages/BookingPage.tsx"],"names":[],"mappings":"AA6MA,MAAM,CAAC,OAAO,UAAU,WAAW,4CAmrBlC"}
|