@loczer/storefront-sdk 0.186.0 → 0.188.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/StorefrontProvider.d.ts +3 -0
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/chunks/booking-engine/dist/models/{Product.shared-CTuk4fiR.js → Product.shared-IYOeC3N7.js} +12 -10
- package/dist/chunks/booking-engine/dist/schemas/{base-asset-B_Dm8_Vk.js → base-asset-zsUj5_3O.js} +1 -1
- package/dist/chunks/booking-engine/dist/schemas/{base-booking-DW8AEPKo.js → base-booking-TzCge_mR.js} +2 -2
- package/dist/chunks/booking-engine/dist/schemas/{base-product-1H8l2aUv.js → base-product-DvFFzAcg.js} +1 -1
- package/dist/chunks/booking-engine/dist/schemas/{booking-engine-configuration-D02MRF9U.js → booking-engine-configuration-LnrhShqm.js} +4 -1
- package/dist/chunks/booking-engine/dist/schemas/{cart-inputs-j1yWfJxO.js → cart-inputs-B0HpcFe5.js} +1 -1
- package/dist/chunks/booking-engine/dist/schemas/{public-booking-engine-configuration-BnJ_H-p1.js → public-booking-engine-configuration-CEM9mexX.js} +1 -1
- package/dist/chunks/booking-engine/dist/schemas-BNUzqsci.js +13 -0
- package/dist/components/Header/index.js +30 -29
- package/dist/components/PlaygroundDevFloatingButton/index.d.ts.map +1 -1
- package/dist/components/PlaygroundDevFloatingButton/index.js +109 -102
- package/dist/components/StorefrontCancellationPolicyNotice/index.d.ts.map +1 -1
- package/dist/components/StorefrontCancellationPolicyNotice/index.js +51 -48
- package/dist/components/StorefrontInsuranceNotice/index.d.ts +9 -0
- package/dist/components/StorefrontInsuranceNotice/index.d.ts.map +1 -0
- package/dist/components/StorefrontInsuranceNotice/index.js +191 -0
- package/dist/i18n/en.d.ts +19 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +21 -2
- package/dist/i18n/fr.d.ts +20 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +24 -4
- package/dist/index.d.ts +86 -0
- package/dist/index.js +68 -68
- package/dist/lib/booking.js +2 -2
- package/dist/lib/checkoutSubmit.js +3 -3
- package/dist/lib/playgroundDevSettings.d.ts +3 -2
- package/dist/lib/playgroundDevSettings.d.ts.map +1 -1
- package/dist/lib/playgroundDevSettings.js +28 -27
- package/dist/lib/storefrontProducts.d.ts +16 -0
- package/dist/lib/storefrontProducts.d.ts.map +1 -1
- package/dist/lib/storefrontProducts.js +27 -22
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +264 -266
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +17 -0
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +28 -23
- package/package.json +1 -1
- package/dist/chunks/booking-engine/dist/schemas-DftrSnTE.js +0 -13
package/dist/index.d.ts
CHANGED
|
@@ -193,6 +193,7 @@ export declare const accessoryProductSchema: z.ZodObject<{
|
|
|
193
193
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
194
194
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
195
195
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
196
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
196
197
|
}, z.core.$strip>>;
|
|
197
198
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
198
199
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -415,6 +416,7 @@ export declare const bikeProductSchema: z.ZodObject<{
|
|
|
415
416
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
416
417
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
417
418
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
419
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
418
420
|
}, z.core.$strip>>;
|
|
419
421
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
420
422
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1487,6 +1489,7 @@ export declare const eBikeProductSchema: z.ZodObject<{
|
|
|
1487
1489
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
1488
1490
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1489
1491
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
1492
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
1490
1493
|
}, z.core.$strip>>;
|
|
1491
1494
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
1492
1495
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1892,6 +1895,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
|
1892
1895
|
languages?: string[] | undefined;
|
|
1893
1896
|
} | undefined;
|
|
1894
1897
|
content?: {
|
|
1898
|
+
heroMode: "current_booking_hero" | "booking_bar_overlay_hero" | "vertical_marquee_hero";
|
|
1895
1899
|
galleryImageIds: string[];
|
|
1896
1900
|
whatsappPhone1Enabled: boolean;
|
|
1897
1901
|
whatsappPhone2Enabled: boolean;
|
|
@@ -2116,6 +2120,14 @@ export declare interface ProductAccessory {
|
|
|
2116
2120
|
productVariants?: ProductVariant[];
|
|
2117
2121
|
}
|
|
2118
2122
|
|
|
2123
|
+
export declare type ProductInsurance = z.infer<typeof productInsuranceSchema>;
|
|
2124
|
+
|
|
2125
|
+
export declare const productInsuranceSchema: z.ZodObject<{
|
|
2126
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2127
|
+
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2128
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2129
|
+
}, z.core.$strip>;
|
|
2130
|
+
|
|
2119
2131
|
export declare type ProductKind = z.infer<typeof productKindSchema>;
|
|
2120
2132
|
|
|
2121
2133
|
export declare const productKindSchema: z.ZodEnum<{
|
|
@@ -2165,6 +2177,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2165
2177
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
2166
2178
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2167
2179
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2180
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2168
2181
|
}, z.core.$strip>>;
|
|
2169
2182
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
2170
2183
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2226,6 +2239,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2226
2239
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
2227
2240
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2228
2241
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2242
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2229
2243
|
}, z.core.$strip>>;
|
|
2230
2244
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
2231
2245
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2276,6 +2290,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2276
2290
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
2277
2291
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2278
2292
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2293
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2279
2294
|
}, z.core.$strip>>;
|
|
2280
2295
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
2281
2296
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2792,6 +2807,8 @@ export declare const STOREFRONT_AVAILABILITY_ROUTE = "/api/public/storefront/ava
|
|
|
2792
2807
|
|
|
2793
2808
|
export declare const STOREFRONT_CHECKOUT_SUBMIT_ROUTE = "/api/public/storefront/checkout/submit";
|
|
2794
2809
|
|
|
2810
|
+
export declare const STOREFRONT_HERO_MODES: readonly ["current_booking_hero", "booking_bar_overlay_hero", "vertical_marquee_hero"];
|
|
2811
|
+
|
|
2795
2812
|
export declare const STOREFRONT_IMAGE_ROUTE = "/api/public/storefront/images/get";
|
|
2796
2813
|
|
|
2797
2814
|
export declare const STOREFRONT_PRODUCTS_ROUTE = "/api/public/storefront/products";
|
|
@@ -3248,6 +3265,11 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
3248
3265
|
};
|
|
3249
3266
|
}, unknown>>;
|
|
3250
3267
|
content: z.ZodOptional<z.ZodObject<{
|
|
3268
|
+
heroMode: z.ZodDefault<z.ZodEnum<{
|
|
3269
|
+
current_booking_hero: "current_booking_hero";
|
|
3270
|
+
booking_bar_overlay_hero: "booking_bar_overlay_hero";
|
|
3271
|
+
vertical_marquee_hero: "vertical_marquee_hero";
|
|
3272
|
+
}>>;
|
|
3251
3273
|
tagline: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3252
3274
|
value: z.ZodString;
|
|
3253
3275
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -3354,6 +3376,11 @@ declare type StorefrontContactShop = Pick<StorefrontShop, "address" | "contactPh
|
|
|
3354
3376
|
export declare type StorefrontContent = z.infer<typeof storefrontContentSchema>;
|
|
3355
3377
|
|
|
3356
3378
|
export declare const storefrontContentSchema: z.ZodObject<{
|
|
3379
|
+
heroMode: z.ZodDefault<z.ZodEnum<{
|
|
3380
|
+
current_booking_hero: "current_booking_hero";
|
|
3381
|
+
booking_bar_overlay_hero: "booking_bar_overlay_hero";
|
|
3382
|
+
vertical_marquee_hero: "vertical_marquee_hero";
|
|
3383
|
+
}>>;
|
|
3357
3384
|
tagline: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3358
3385
|
value: z.ZodString;
|
|
3359
3386
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -3483,6 +3510,25 @@ export declare const storefrontEn: {
|
|
|
3483
3510
|
feature_delivery_description: string;
|
|
3484
3511
|
feature_guarantee_insurance_title: string;
|
|
3485
3512
|
feature_guarantee_insurance_description: string;
|
|
3513
|
+
insurance_info_aria_label: string;
|
|
3514
|
+
insurance_modal_title: string;
|
|
3515
|
+
insurance_modal_description: string;
|
|
3516
|
+
insurance_modal_pricing_title: string;
|
|
3517
|
+
insurance_modal_pricing_description: string;
|
|
3518
|
+
insurance_modal_muscular_bike: string;
|
|
3519
|
+
insurance_modal_electric_bike: string;
|
|
3520
|
+
insurance_modal_price_per_day: string;
|
|
3521
|
+
insurance_modal_price_range_per_day: string;
|
|
3522
|
+
insurance_modal_price_unavailable: string;
|
|
3523
|
+
insurance_modal_coverage_title: string;
|
|
3524
|
+
insurance_modal_coverage_accidental_damage: string;
|
|
3525
|
+
insurance_modal_coverage_assault_or_break_in: string;
|
|
3526
|
+
insurance_modal_coverage_secured_bike_theft: string;
|
|
3527
|
+
insurance_modal_claim_title: string;
|
|
3528
|
+
insurance_modal_claim_description: string;
|
|
3529
|
+
insurance_modal_exclusions_title: string;
|
|
3530
|
+
insurance_modal_exclusions_description: string;
|
|
3531
|
+
insurance_modal_terms_note: string;
|
|
3486
3532
|
cancellation_policy_teaser: string;
|
|
3487
3533
|
cancellation_policy_teaser_description: string;
|
|
3488
3534
|
cancellation_policy_info_aria_label: string;
|
|
@@ -3923,6 +3969,25 @@ export declare const storefrontFr: {
|
|
|
3923
3969
|
feature_delivery_description: string;
|
|
3924
3970
|
feature_guarantee_insurance_title: string;
|
|
3925
3971
|
feature_guarantee_insurance_description: string;
|
|
3972
|
+
insurance_info_aria_label: string;
|
|
3973
|
+
insurance_modal_title: string;
|
|
3974
|
+
insurance_modal_description: string;
|
|
3975
|
+
insurance_modal_pricing_title: string;
|
|
3976
|
+
insurance_modal_pricing_description: string;
|
|
3977
|
+
insurance_modal_muscular_bike: string;
|
|
3978
|
+
insurance_modal_electric_bike: string;
|
|
3979
|
+
insurance_modal_price_per_day: string;
|
|
3980
|
+
insurance_modal_price_range_per_day: string;
|
|
3981
|
+
insurance_modal_price_unavailable: string;
|
|
3982
|
+
insurance_modal_coverage_title: string;
|
|
3983
|
+
insurance_modal_coverage_accidental_damage: string;
|
|
3984
|
+
insurance_modal_coverage_assault_or_break_in: string;
|
|
3985
|
+
insurance_modal_coverage_secured_bike_theft: string;
|
|
3986
|
+
insurance_modal_claim_title: string;
|
|
3987
|
+
insurance_modal_claim_description: string;
|
|
3988
|
+
insurance_modal_exclusions_title: string;
|
|
3989
|
+
insurance_modal_exclusions_description: string;
|
|
3990
|
+
insurance_modal_terms_note: string;
|
|
3926
3991
|
cancellation_policy_teaser: string;
|
|
3927
3992
|
cancellation_policy_teaser_description: string;
|
|
3928
3993
|
cancellation_policy_info_aria_label: string;
|
|
@@ -4000,6 +4065,7 @@ export declare const storefrontFr: {
|
|
|
4000
4065
|
add_to_cart: string;
|
|
4001
4066
|
add_short: string;
|
|
4002
4067
|
cart_title: string;
|
|
4068
|
+
cart_items_count_zero: string;
|
|
4003
4069
|
cart_items_count_one: string;
|
|
4004
4070
|
cart_items_count_other: string;
|
|
4005
4071
|
cart_empty: string;
|
|
@@ -4286,6 +4352,14 @@ export declare const storefrontFulfillmentModeSchema: z.ZodEnum<{
|
|
|
4286
4352
|
delivery: "delivery";
|
|
4287
4353
|
}>;
|
|
4288
4354
|
|
|
4355
|
+
export declare type StorefrontHeroMode = z.infer<typeof storefrontHeroModeSchema>;
|
|
4356
|
+
|
|
4357
|
+
export declare const storefrontHeroModeSchema: z.ZodEnum<{
|
|
4358
|
+
current_booking_hero: "current_booking_hero";
|
|
4359
|
+
booking_bar_overlay_hero: "booking_bar_overlay_hero";
|
|
4360
|
+
vertical_marquee_hero: "vertical_marquee_hero";
|
|
4361
|
+
}>;
|
|
4362
|
+
|
|
4289
4363
|
declare type StorefrontI18nLanguage = "en" | "fr";
|
|
4290
4364
|
|
|
4291
4365
|
export declare type StorefrontImageRequestPayload = z.infer<typeof storefrontImageRequestSchema>;
|
|
@@ -4406,6 +4480,11 @@ export declare const storefrontProductsResponseSchema: z.ZodDiscriminatedUnion<[
|
|
|
4406
4480
|
quantity: z.ZodNumber;
|
|
4407
4481
|
currency: z.ZodOptional<z.ZodString>;
|
|
4408
4482
|
}, z.core.$strip>>>;
|
|
4483
|
+
insurance: z.ZodOptional<z.ZodObject<{
|
|
4484
|
+
enabled: z.ZodBoolean;
|
|
4485
|
+
pricePerDayMinor: z.ZodNumber;
|
|
4486
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
4487
|
+
}, z.core.$strip>>;
|
|
4409
4488
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4410
4489
|
value: z.ZodString;
|
|
4411
4490
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -4654,6 +4733,11 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
|
|
|
4654
4733
|
quantity: z.ZodNumber;
|
|
4655
4734
|
currency: z.ZodOptional<z.ZodString>;
|
|
4656
4735
|
}, z.core.$strip>>>;
|
|
4736
|
+
insurance: z.ZodOptional<z.ZodObject<{
|
|
4737
|
+
enabled: z.ZodBoolean;
|
|
4738
|
+
pricePerDayMinor: z.ZodNumber;
|
|
4739
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
4740
|
+
}, z.core.$strip>>;
|
|
4657
4741
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4658
4742
|
value: z.ZodString;
|
|
4659
4743
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -5070,6 +5154,7 @@ export declare function useStorefrontConfig(): {
|
|
|
5070
5154
|
languages?: string[] | undefined;
|
|
5071
5155
|
} | undefined;
|
|
5072
5156
|
content?: {
|
|
5157
|
+
heroMode: "current_booking_hero" | "booking_bar_overlay_hero" | "vertical_marquee_hero";
|
|
5073
5158
|
galleryImageIds: string[];
|
|
5074
5159
|
whatsappPhone1Enabled: boolean;
|
|
5075
5160
|
whatsappPhone2Enabled: boolean;
|
|
@@ -5293,6 +5378,7 @@ export declare function useStorefrontConfig(): {
|
|
|
5293
5378
|
languages?: string[] | undefined;
|
|
5294
5379
|
} | undefined;
|
|
5295
5380
|
content?: {
|
|
5381
|
+
heroMode: "current_booking_hero" | "booking_bar_overlay_hero" | "vertical_marquee_hero";
|
|
5296
5382
|
galleryImageIds: string[];
|
|
5297
5383
|
whatsappPhone1Enabled: boolean;
|
|
5298
5384
|
whatsappPhone2Enabled: boolean;
|
package/dist/index.js
CHANGED
|
@@ -2,79 +2,79 @@
|
|
|
2
2
|
import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./chunks/booking-engine/dist/models/LocalizedString-D_TRgAdr.js";
|
|
3
3
|
import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./chunks/booking-engine/dist/schemas/money-CVoCY4of.js";
|
|
4
4
|
import { priceSchema as d, priceUnitSchema as f } from "./chunks/booking-engine/dist/models/Price-DCAgqkKh.js";
|
|
5
|
-
import { PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as p, PRODUCT_VARIANT_CODE_MAX_LENGTH as m, accessoryProductSchema as h, bikeProductSchema as g, eBikeProductSchema as _, isProductVariantCodeIdentifierKind as v,
|
|
6
|
-
import { richTextJsonDocSchema as
|
|
7
|
-
import { isoDateSchema as
|
|
8
|
-
import { DEFAULT_CANCELLATION_POLICY as
|
|
9
|
-
import { fulfillmentModeSchema as
|
|
10
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as
|
|
11
|
-
import { baseAssetSchema as
|
|
12
|
-
import { baseBookingItemSchema as
|
|
13
|
-
import "./chunks/booking-engine/dist/schemas-
|
|
14
|
-
import { storefrontCheckoutModeSchema as
|
|
15
|
-
import { BOOKING_SEARCH_KEYS as
|
|
16
|
-
import { CATALOG_PRODUCT_BASE_RATE_UNSET as
|
|
17
|
-
import { StorefrontCartProvider as
|
|
18
|
-
import { cn as
|
|
19
|
-
import { buildDailyPriceRows as
|
|
20
|
-
import { getLocalizedEntry as
|
|
21
|
-
import { buildStorefrontCartSummary as
|
|
22
|
-
import { ROUTE as
|
|
23
|
-
import { formatStorefrontPhoneDisplay as
|
|
24
|
-
import { buildWhatsAppHref as
|
|
25
|
-
import { ROUTE as
|
|
26
|
-
import { ROUTE as
|
|
27
|
-
import { ROUTE as
|
|
28
|
-
import { ROUTE as
|
|
29
|
-
import { ROUTE as
|
|
30
|
-
import { Footer as
|
|
31
|
-
import { Badge as
|
|
32
|
-
import { Button as
|
|
33
|
-
import { Header as
|
|
34
|
-
import { storefront as
|
|
35
|
-
import { storefront as
|
|
36
|
-
import { PoweredByLoczerBadge as
|
|
37
|
-
import { PlatformFooter as
|
|
38
|
-
import { useWhatsAppFloatingButton as
|
|
39
|
-
import { WhatsAppFloatingButton as
|
|
5
|
+
import { PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as p, PRODUCT_VARIANT_CODE_MAX_LENGTH as m, accessoryProductSchema as h, bikeProductSchema as g, eBikeProductSchema as _, isProductVariantCodeIdentifierKind as v, productInsuranceSchema as y, productKindSchema as b, productSchema as x, productStorefrontDisplayModeSchema as S, productVariantAttributeSchema as C, productVariantCodeSchema as w, productVariantIdentifierSchema as T, productVariantSchema as E } from "./chunks/booking-engine/dist/models/Product.shared-IYOeC3N7.js";
|
|
6
|
+
import { richTextJsonDocSchema as D, richTextSchema as O, richTextVersionSchema as k } from "./chunks/booking-engine/dist/schemas/rich-text-DTRh7U3z.js";
|
|
7
|
+
import { isoDateSchema as A, shopConfigurationSchema as j, shopExtraTimeSlotRuleSchema as M, shopOpeningDayIndexSchema as N, shopOpeningDaySchema as P, shopOpeningHoursOverrideSchema as F, shopOpeningHoursPeriodSchema as I, shopOpeningSlotSchema as L, timeOfDaySchema as R } from "./chunks/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
|
|
8
|
+
import { DEFAULT_CANCELLATION_POLICY as z, DEFAULT_PAYMENT_POLICIES as B, cancellationPolicySchema as V, cancellationPolicyTierSchema as H, paymentPoliciesSchema as U } from "./chunks/booking-engine/dist/schemas/booking-engine-configuration-LnrhShqm.js";
|
|
9
|
+
import { fulfillmentModeSchema as W, publicBookingEngineConfigurationSchema as G, publicCheckoutConfigurationSchema as K, publicCheckoutDynamicOptionsSchema as q } from "./chunks/booking-engine/dist/schemas/public-booking-engine-configuration-CEM9mexX.js";
|
|
10
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as J, bookingCustomerInputSchema as Y, bookingDeliveryOptionSchema as X, bookingScheduleInputSchema as Z, cartItemInputSchema as Q, createBookingInputBaseSchema as $, createBookingInputSchema as ee, resolveBookingDeliveryOption as te, validateBookingDeliveryAddress as ne } from "./chunks/booking-engine/dist/schemas/cart-inputs-B0HpcFe5.js";
|
|
11
|
+
import { baseAssetSchema as re, baseAssetStatusSchema as ie } from "./chunks/booking-engine/dist/schemas/base-asset-zsUj5_3O.js";
|
|
12
|
+
import { baseBookingItemSchema as ae, baseBookingSchema as oe, baseBookingStateSchema as se } from "./chunks/booking-engine/dist/schemas/base-booking-TzCge_mR.js";
|
|
13
|
+
import "./chunks/booking-engine/dist/schemas-BNUzqsci.js";
|
|
14
|
+
import { STOREFRONT_HERO_MODES as ce, storefrontCheckoutModeSchema as le, storefrontConfigurationSchema as ue, storefrontContentSchema as de, storefrontFaqItemSchema as fe, storefrontFaqSchema as pe, storefrontFulfillmentModeSchema as me, storefrontHeroModeSchema as he, storefrontLocalizedRichTextSchema as ge, storefrontModalMessageSchema as _e, storefrontModulesSchema as ve, storefrontReviewsModuleSchema as ye, storefrontRichTextSchema as be, storefrontSettingsSchema as xe, storefrontShopSchema as Se, storefrontStatusSchema as Ce, storefrontWorkspaceSchema as we } from "./storefrontSchemas.js";
|
|
15
|
+
import { BOOKING_SEARCH_KEYS as Te, TIME_OPTIONS as Ee, applyBookingParamsToSearch as De, createBookingPeriodConfigFromBookingEngineConfiguration as Oe, createBookingPeriodConfigFromShopConfiguration as ke, createBookingPeriodConfigFromStorefrontConfiguration as Ae, getBookingDurationLabel as je, getBookingDurationMinutes as Me, getBookingParamsFromSearch as Ne, getBookingSessionStorageKey as Pe, getDefaultBookingParams as Fe, getDefaultBookingParamsForStorefrontConfiguration as Ie, pickBookingSearchParams as Le, readBookingSearchParamsFromSessionStorage as Re, readBookingSearchParamsFromStorage as ze, resolveBookingSearchParams as Be, resolveBookingSearchParamsFromSessionStorage as Ve, writeBookingSearchParamsToSessionStorage as He, writeBookingSearchParamsToStorage as Ue } from "./lib/booking.js";
|
|
16
|
+
import { CATALOG_PRODUCT_BASE_RATE_UNSET as We, buildStorefrontProductSlug as Ge, buildVariantStorefrontProductId as Ke, compareCatalogProducts as qe, compareStorefrontAccessoryProducts as Je, compareStorefrontBikeProducts as Ye, findStorefrontProduct as Xe, findStorefrontProductBySlug as Ze, getCatalogProductBaseRateMinor as Qe, getCatalogProductPaginationSort as $e, getCatalogProductSortFieldForPriceUnit as et, getStorefrontBaseDailyRateMinor as tt, getStorefrontCheckoutProductId as nt, getStorefrontRepresentedVariantId as rt, toStorefrontAccessoryProducts as it, toStorefrontBikeProducts as at, toStorefrontBookingProducts as ot, toStorefrontBookingProductsCollections as st } from "./lib/products.js";
|
|
17
|
+
import { StorefrontCartProvider as ct, resolveStorefrontCartItemProduct as lt, useStorefrontCart as ut } from "./lib/cart.js";
|
|
18
|
+
import { cn as dt, formatPriceMinor as ft, getAvailabilityVariant as pt, getMinDayPriceMinor as mt } from "./lib/utils.js";
|
|
19
|
+
import { buildDailyPriceRows as ht, buildPriceTierLabels as gt, calculateDailyPriceForQuantity as _t, formatStorefrontPriceMinor as vt } from "./lib/pricing.js";
|
|
20
|
+
import { getLocalizedEntry as yt, getLocalizedValue as bt } from "./localization.js";
|
|
21
|
+
import { buildStorefrontCartSummary as xt } from "./lib/cartSummary.js";
|
|
22
|
+
import { ROUTE as St, requestSchema as Ct, responseSchema as wt } from "./lib/contactForm.js";
|
|
23
|
+
import { formatStorefrontPhoneDisplay as Tt, resolveStorefrontMapsHref as Et, resolveStorefrontPhoneContact as Dt } from "./lib/storefrontContact.js";
|
|
24
|
+
import { buildWhatsAppHref as Ot, resolveStorefrontWhatsAppContact as kt, resolveStorefrontWhatsAppHref as At } from "./lib/whatsapp.js";
|
|
25
|
+
import { ROUTE as jt, requestBaseSchema as Mt, requestCheckoutItemSchema as Nt, requestDeliveryRefinement as Pt, requestSchema as Ft, responseSchema as It } from "./lib/checkoutSubmit.js";
|
|
26
|
+
import { ROUTE as Lt, requestSchema as Rt, responseSchema as zt, storefrontPublicAccessoryProductSchema as Bt, storefrontPublicBikeAvailabilityStatusSchema as Vt, storefrontPublicBikeProductSchema as Ht, storefrontPublicProductDisplayModeSchema as Ut, storefrontPublicProductPriceSchema as Wt, storefrontPublicProductVariantAttributeSchema as Gt, storefrontPublicProductVariantIdentifierSchema as Kt, storefrontPublicProductVariantSchema as qt } from "./lib/storefrontProducts.js";
|
|
27
|
+
import { ROUTE as Jt, buildStorefrontAvailabilityKey as Yt, doesStorefrontAvailabilityDisplaySoldOut as Xt, getStorefrontAvailabilityIssue as Zt, getStorefrontAvailabilityStatus as Qt, isStorefrontAvailabilityInsufficient as $t, publicAvailabilityDisplayModeSchema as en, requestSchema as tn, responseSchema as nn, shouldBlockStorefrontUnavailableItem as rn, storefrontAvailabilityProductSchema as an, storefrontAvailabilityScheduleSchema as on, storefrontPublicAvailabilityRecordSchema as sn } from "./lib/storefrontAvailability.js";
|
|
28
|
+
import { ROUTE as cn, buildStorefrontImageUrl as ln, requestSchema as un } from "./lib/storefrontImage.js";
|
|
29
|
+
import { ROUTE as dn, requestSchema as fn, responseSchema as pn, storefrontTimeSlotSchema as mn, timeSlotJourneySchema as hn } from "./lib/storefrontTimeSlots.js";
|
|
30
|
+
import { Footer as gn } from "./components/Footer/index.js";
|
|
31
|
+
import { Badge as _n, badgeVariants as vn } from "./ui/badge.js";
|
|
32
|
+
import { Button as yn, buttonVariants as bn } from "./ui/button.js";
|
|
33
|
+
import { Header as xn } from "./components/Header/index.js";
|
|
34
|
+
import { storefront as Sn } from "./i18n/en.js";
|
|
35
|
+
import { storefront as Cn } from "./i18n/fr.js";
|
|
36
|
+
import { PoweredByLoczerBadge as wn } from "./components/PoweredByLoczerBadge/index.js";
|
|
37
|
+
import { PlatformFooter as Tn } from "./components/PlatformFooter/index.js";
|
|
38
|
+
import { useWhatsAppFloatingButton as En } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
|
|
39
|
+
import { WhatsAppFloatingButton as Dn } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
40
40
|
import "./components/WhatsAppFloatingButton/index.js";
|
|
41
|
-
import { Layout as
|
|
42
|
-
import { DelayedPlaceholder as
|
|
43
|
-
import { BookingPeriodProvider as
|
|
44
|
-
import { Label as
|
|
45
|
-
import { BookingStartDateField as
|
|
46
|
-
import { BookingStartTimeField as
|
|
47
|
-
import { BookingEndDateField as
|
|
48
|
-
import { BookingEndTimeField as
|
|
49
|
-
import { BookingMobileDateDrawer as
|
|
50
|
-
import { BookingPeriodSelector as
|
|
51
|
-
import { BookingFlowSteps as
|
|
52
|
-
import { Input as
|
|
53
|
-
import { DeliveryAddressSelector as
|
|
54
|
-
import { loader as
|
|
55
|
-
import { Form as
|
|
56
|
-
import { Textarea as
|
|
57
|
-
import { ContactSection as
|
|
58
|
-
import { TestimonialsSection as
|
|
59
|
-
import { AboutSection as
|
|
60
|
-
import { StepSectionTitle as
|
|
61
|
-
import { Card as
|
|
62
|
-
import { ProductWarningNotice as
|
|
63
|
-
import { StorefrontCartPanel as
|
|
64
|
-
import { ProductPriceBadge as
|
|
65
|
-
import { ContractSaleDocument as
|
|
41
|
+
import { Layout as On } from "./components/Layout/index.js";
|
|
42
|
+
import { DelayedPlaceholder as kn, DelayedReveal as An } from "./components/DelayedReveal/index.js";
|
|
43
|
+
import { BookingPeriodProvider as jn, useBookingPeriod as Mn } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
44
|
+
import { Label as Nn } from "./ui/label.js";
|
|
45
|
+
import { BookingStartDateField as Pn } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
46
|
+
import { BookingStartTimeField as Fn } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
47
|
+
import { BookingEndDateField as In } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
48
|
+
import { BookingEndTimeField as Ln } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
49
|
+
import { BookingMobileDateDrawer as Rn } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
|
|
50
|
+
import { BookingPeriodSelector as zn } from "./components/BookingPeriodSelector/index.js";
|
|
51
|
+
import { BookingFlowSteps as Bn } from "./components/BookingFlowSteps/index.js";
|
|
52
|
+
import { Input as Vn } from "./ui/input.js";
|
|
53
|
+
import { DeliveryAddressSelector as Hn } from "./components/DeliveryAddressSelector/index.js";
|
|
54
|
+
import { loader as Un, useOptionalStorefront as Wn, useStorefront as Gn, useStorefrontBookingProducts as Kn, useStorefrontConfig as qn, useStorefrontProducts as Jn, useStorefrontWorkspaceLanguage as Yn } from "./StorefrontProvider.js";
|
|
55
|
+
import { Form as Xn, FormControl as Zn, FormDescription as Qn, FormField as $n, FormItem as er, FormLabel as tr, FormMessage as nr, useFormField as rr } from "./ui/form.js";
|
|
56
|
+
import { Textarea as ir } from "./ui/textarea.js";
|
|
57
|
+
import { ContactSection as ar } from "./components/ContactSection/index.js";
|
|
58
|
+
import { TestimonialsSection as or } from "./components/TestimonialsSection/index.js";
|
|
59
|
+
import { AboutSection as sr } from "./components/AboutSection/index.js";
|
|
60
|
+
import { StepSectionTitle as cr } from "./components/StepSectionTitle/index.js";
|
|
61
|
+
import { Card as lr, CardAction as ur, CardContent as dr, CardDescription as fr, CardFooter as pr, CardHeader as mr, CardTitle as hr } from "./ui/card.js";
|
|
62
|
+
import { ProductWarningNotice as gr } from "./components/ProductWarningNotice/index.js";
|
|
63
|
+
import { StorefrontCartPanel as _r } from "./components/StorefrontCartPanel/index.js";
|
|
64
|
+
import { ProductPriceBadge as vr } from "./components/ProductPriceBadge/index.js";
|
|
65
|
+
import { ContractSaleDocument as yr } from "./components/ContractSaleDocument/Invoice.js";
|
|
66
66
|
import "./components/ContractSaleDocument/index.js";
|
|
67
|
-
import { RadioGroup as
|
|
67
|
+
import { RadioGroup as br, RadioGroupItem as xr } from "./ui/radio-group.js";
|
|
68
68
|
import "./pages/HomePage.js";
|
|
69
69
|
import "./pages/BookingPage.js";
|
|
70
70
|
import "./pages/ProductPage.js";
|
|
71
71
|
import "./pages/CheckoutPage.js";
|
|
72
72
|
import "./pages/CheckoutSuccessPage.js";
|
|
73
73
|
import "./pages/NotFoundPage.js";
|
|
74
|
-
import { accessories as
|
|
75
|
-
import
|
|
76
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
77
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
78
|
-
import
|
|
79
|
-
import { Select as
|
|
80
|
-
export {
|
|
74
|
+
import { accessories as Sr } from "./data/accessories.js";
|
|
75
|
+
import Cr from "./data/bikes.js";
|
|
76
|
+
import { contractSaleDocumentAcceptanceLevelSchema as wr, contractSaleDocumentAcceptanceRecordSchema as Tr, contractSaleDocumentAcceptanceSchema as Er, contractSaleDocumentAddressSchema as Dr, contractSaleDocumentContactSchema as Or, contractSaleDocumentKindSchema as kr, contractSaleDocumentLanguageCodeSchema as Ar, contractSaleDocumentLanguageSchema as jr, contractSaleDocumentLineItemSchema as Mr, contractSaleDocumentSchema as Nr, contractSaleDocumentSignatureSchema as Pr } from "./lib/contractSaleDocument.js";
|
|
77
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Fr, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Ir, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Lr, acceptContractSaleDocumentRequestSchema as Rr, acceptContractSaleDocumentResponseSchema as zr, contractSaleDocumentAcceptanceInputSchema as Br, contractSaleDocumentAcceptanceRecordInputSchema as Vr, contractSaleDocumentApiAcceptanceRecordSchema as Hr, contractSaleDocumentApiAcceptanceSchema as Ur, contractSaleDocumentApiSchema as Wr, contractSaleDocumentApiSignatureSchema as Gr, contractSaleDocumentReferenceSchema as Kr, contractSaleDocumentReferenceTypeSchema as qr, contractSaleDocumentSignatureInputSchema as Jr, downloadContractSaleDocumentPdfRequestSchema as Yr, getContractSaleDocumentRequestSchema as Xr, getContractSaleDocumentResponseSchema as Zr } from "./lib/contractSaleDocumentApi.js";
|
|
78
|
+
import Qr from "./routes.js";
|
|
79
|
+
import { Select as $r, SelectContent as ei, SelectGroup as ti, SelectIcon as ni, SelectItem as ri, SelectItemIndicator as ii, SelectItemText as ai, SelectLabel as oi, SelectScrollDownButton as si, SelectScrollUpButton as ci, SelectSeparator as li, SelectTrigger as ui, SelectValue as di } from "./ui/select.js";
|
|
80
|
+
export { Fr as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, sr as AboutSection, Te as BOOKING_SEARCH_KEYS, _n as Badge, In as BookingEndDateField, Ln as BookingEndTimeField, Bn as BookingFlowSteps, Rn as BookingMobileDateDrawer, jn as BookingPeriodProvider, zn as BookingPeriodSelector, Pn as BookingStartDateField, Fn as BookingStartTimeField, yn as Button, We as CATALOG_PRODUCT_BASE_RATE_UNSET, lr as Card, ur as CardAction, dr as CardContent, fr as CardDescription, pr as CardFooter, mr as CardHeader, hr as CardTitle, ar as ContactSection, yr as ContractSaleDocument, J as DEFAULT_BOOKING_DELIVERY_OPTION, z as DEFAULT_CANCELLATION_POLICY, B as DEFAULT_PAYMENT_POLICIES, Ir as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, kn as DelayedPlaceholder, An as DelayedReveal, Hn as DeliveryAddressSelector, gn as Footer, Xn as Form, Zn as FormControl, Qn as FormDescription, $n as FormField, er as FormItem, tr as FormLabel, nr as FormMessage, Lr as GET_CONTRACT_SALE_DOCUMENT_ROUTE, xn as Header, Vn as Input, Nn as Label, On as Layout, p as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, m as PRODUCT_VARIANT_CODE_MAX_LENGTH, Tn as PlatformFooter, wn as PoweredByLoczerBadge, vr as ProductPriceBadge, gr as ProductWarningNotice, St as ROUTE, br as RadioGroup, xr as RadioGroupItem, Jt as STOREFRONT_AVAILABILITY_ROUTE, jt as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ce as STOREFRONT_HERO_MODES, cn as STOREFRONT_IMAGE_ROUTE, Lt as STOREFRONT_PRODUCTS_ROUTE, dn as STOREFRONT_TIME_SLOTS_ROUTE, $r as Select, ei as SelectContent, ti as SelectGroup, ni as SelectIcon, ri as SelectItem, ii as SelectItemIndicator, ai as SelectItemText, oi as SelectLabel, si as SelectScrollDownButton, ci as SelectScrollUpButton, li as SelectSeparator, ui as SelectTrigger, di as SelectValue, cr as StepSectionTitle, _r as StorefrontCartPanel, ct as StorefrontCartProvider, Ee as TIME_OPTIONS, or as TestimonialsSection, ir as Textarea, Dn as WhatsAppFloatingButton, Rr as acceptContractSaleDocumentRequestSchema, zr as acceptContractSaleDocumentResponseSchema, Sr as accessories, h as accessoryProductSchema, De as applyBookingParamsToSearch, vn as badgeVariants, re as baseAssetSchema, ie as baseAssetStatusSchema, ae as baseBookingItemSchema, oe as baseBookingSchema, se as baseBookingStateSchema, g as bikeProductSchema, Cr as bikes, Y as bookingCustomerInputSchema, X as bookingDeliveryOptionSchema, Z as bookingScheduleInputSchema, ht as buildDailyPriceRows, gt as buildPriceTierLabels, Yt as buildStorefrontAvailabilityKey, xt as buildStorefrontCartSummary, ln as buildStorefrontImageUrl, Ge as buildStorefrontProductSlug, Ke as buildVariantStorefrontProductId, Ot as buildWhatsAppHref, bn as buttonVariants, _t as calculateDailyPriceForQuantity, V as cancellationPolicySchema, H as cancellationPolicyTierSchema, Q as cartItemInputSchema, dt as cn, qe as compareCatalogProducts, Je as compareStorefrontAccessoryProducts, Ye as compareStorefrontBikeProducts, Br as contractSaleDocumentAcceptanceInputSchema, wr as contractSaleDocumentAcceptanceLevelSchema, Vr as contractSaleDocumentAcceptanceRecordInputSchema, Tr as contractSaleDocumentAcceptanceRecordSchema, Er as contractSaleDocumentAcceptanceSchema, Dr as contractSaleDocumentAddressSchema, Hr as contractSaleDocumentApiAcceptanceRecordSchema, Ur as contractSaleDocumentApiAcceptanceSchema, Wr as contractSaleDocumentApiSchema, Gr as contractSaleDocumentApiSignatureSchema, Or as contractSaleDocumentContactSchema, kr as contractSaleDocumentKindSchema, Ar as contractSaleDocumentLanguageCodeSchema, jr as contractSaleDocumentLanguageSchema, Mr as contractSaleDocumentLineItemSchema, Kr as contractSaleDocumentReferenceSchema, qr as contractSaleDocumentReferenceTypeSchema, Nr as contractSaleDocumentSchema, Jr as contractSaleDocumentSignatureInputSchema, Pr as contractSaleDocumentSignatureSchema, $ as createBookingInputBaseSchema, ee as createBookingInputSchema, Oe as createBookingPeriodConfigFromBookingEngineConfiguration, ke as createBookingPeriodConfigFromShopConfiguration, Ae as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, Xt as doesStorefrontAvailabilityDisplaySoldOut, Yr as downloadContractSaleDocumentPdfRequestSchema, _ as eBikeProductSchema, Xe as findStorefrontProduct, Ze as findStorefrontProductBySlug, ft as formatPriceMinor, Tt as formatStorefrontPhoneDisplay, vt as formatStorefrontPriceMinor, W as fulfillmentModeSchema, pt as getAvailabilityVariant, je as getBookingDurationLabel, Me as getBookingDurationMinutes, Ne as getBookingParamsFromSearch, Pe as getBookingSessionStorageKey, Qe as getCatalogProductBaseRateMinor, $e as getCatalogProductPaginationSort, et as getCatalogProductSortFieldForPriceUnit, Xr as getContractSaleDocumentRequestSchema, Zr as getContractSaleDocumentResponseSchema, Fe as getDefaultBookingParams, Ie as getDefaultBookingParamsForStorefrontConfiguration, yt as getLocalizedEntry, t as getLocalizedStringValue, bt as getLocalizedValue, mt as getMinDayPriceMinor, Zt as getStorefrontAvailabilityIssue, Qt as getStorefrontAvailabilityStatus, tt as getStorefrontBaseDailyRateMinor, nt as getStorefrontCheckoutProductId, rt as getStorefrontRepresentedVariantId, v as isProductVariantCodeIdentifierKind, $t as isStorefrontAvailabilityInsufficient, A as isoDateSchema, Un as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, U as paymentPoliciesSchema, Le as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, y as productInsuranceSchema, b as productKindSchema, x as productSchema, S as productStorefrontDisplayModeSchema, C as productVariantAttributeSchema, w as productVariantCodeSchema, T as productVariantIdentifierSchema, E as productVariantSchema, en as publicAvailabilityDisplayModeSchema, G as publicBookingEngineConfigurationSchema, K as publicCheckoutConfigurationSchema, q as publicCheckoutDynamicOptionsSchema, Re as readBookingSearchParamsFromSessionStorage, ze as readBookingSearchParamsFromStorage, Ct as requestSchema, te as resolveBookingDeliveryOption, Be as resolveBookingSearchParams, Ve as resolveBookingSearchParamsFromSessionStorage, lt as resolveStorefrontCartItemProduct, Et as resolveStorefrontMapsHref, Dt as resolveStorefrontPhoneContact, kt as resolveStorefrontWhatsAppContact, At as resolveStorefrontWhatsAppHref, wt as responseSchema, D as richTextJsonDocSchema, O as richTextSchema, k as richTextVersionSchema, j as shopConfigurationSchema, M as shopExtraTimeSlotRuleSchema, N as shopOpeningDayIndexSchema, P as shopOpeningDaySchema, F as shopOpeningHoursOverrideSchema, I as shopOpeningHoursPeriodSchema, L as shopOpeningSlotSchema, rn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, an as storefrontAvailabilityProductSchema, tn as storefrontAvailabilityRequestSchema, nn as storefrontAvailabilityResponseSchema, on as storefrontAvailabilityScheduleSchema, le as storefrontCheckoutModeSchema, Pt as storefrontCheckoutSubmitDeliveryRefinement, Nt as storefrontCheckoutSubmitItemSchema, Mt as storefrontCheckoutSubmitRequestBaseSchema, Ft as storefrontCheckoutSubmitRequestSchema, It as storefrontCheckoutSubmitResponseSchema, ue as storefrontConfigurationSchema, de as storefrontContentSchema, Sn as storefrontEn, fe as storefrontFaqItemSchema, pe as storefrontFaqSchema, Cn as storefrontFr, me as storefrontFulfillmentModeSchema, he as storefrontHeroModeSchema, un as storefrontImageRequestSchema, ge as storefrontLocalizedRichTextSchema, _e as storefrontModalMessageSchema, ve as storefrontModulesSchema, Rt as storefrontProductsRequestSchema, zt as storefrontProductsResponseSchema, Bt as storefrontPublicAccessoryProductSchema, sn as storefrontPublicAvailabilityRecordSchema, Vt as storefrontPublicBikeAvailabilityStatusSchema, Ht as storefrontPublicBikeProductSchema, Ut as storefrontPublicProductDisplayModeSchema, Wt as storefrontPublicProductPriceSchema, Gt as storefrontPublicProductVariantAttributeSchema, Kt as storefrontPublicProductVariantIdentifierSchema, qt as storefrontPublicProductVariantSchema, ye as storefrontReviewsModuleSchema, be as storefrontRichTextSchema, Qr as storefrontRoutes, xe as storefrontSettingsSchema, Se as storefrontShopSchema, Ce as storefrontStatusSchema, hn as storefrontTimeSlotJourneySchema, mn as storefrontTimeSlotSchema, fn as storefrontTimeSlotsRequestSchema, pn as storefrontTimeSlotsResponseSchema, we as storefrontWorkspaceSchema, R as timeOfDaySchema, it as toStorefrontAccessoryProducts, at as toStorefrontBikeProducts, ot as toStorefrontBookingProducts, st as toStorefrontBookingProductsCollections, Mn as useBookingPeriod, rr as useFormField, Wn as useOptionalStorefront, Gn as useStorefront, Kn as useStorefrontBookingProducts, ut as useStorefrontCart, qn as useStorefrontConfig, Jn as useStorefrontProducts, Yn as useStorefrontWorkspaceLanguage, En as useWhatsAppFloatingButton, ne as validateBookingDeliveryAddress, He as writeBookingSearchParamsToSessionStorage, Ue as writeBookingSearchParamsToStorage };
|
package/dist/lib/booking.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/booking-engine/dist/schemas/cart-inputs-
|
|
2
|
-
import "../chunks/booking-engine/dist/schemas-
|
|
1
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/booking-engine/dist/schemas/cart-inputs-B0HpcFe5.js";
|
|
2
|
+
import "../chunks/booking-engine/dist/schemas-BNUzqsci.js";
|
|
3
3
|
import { getDefaultBookingPeriod as t, parseTimeToMinutes as n } from "./booking-period.js";
|
|
4
4
|
import { differenceInMinutes as r, format as i } from "date-fns";
|
|
5
5
|
//#region src/lib/booking.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { productKindSchema as e } from "../chunks/booking-engine/dist/models/Product.shared-
|
|
2
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as t, bookingScheduleInputSchema as n } from "../chunks/booking-engine/dist/schemas/cart-inputs-
|
|
3
|
-
import "../chunks/booking-engine/dist/schemas-
|
|
1
|
+
import { productKindSchema as e } from "../chunks/booking-engine/dist/models/Product.shared-IYOeC3N7.js";
|
|
2
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as t, bookingScheduleInputSchema as n } from "../chunks/booking-engine/dist/schemas/cart-inputs-B0HpcFe5.js";
|
|
3
|
+
import "../chunks/booking-engine/dist/schemas-BNUzqsci.js";
|
|
4
4
|
import { storefrontFulfillmentModeSchema as r } from "../storefrontSchemas.js";
|
|
5
5
|
import { MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE as i, checkoutPaymentErrorCodeSchema as a } from "./checkoutPaymentDecision.js";
|
|
6
6
|
import { z as o } from "zod";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { StorefrontHeroMode } from '../storefrontSchemas';
|
|
2
|
+
export type PlaygroundHeroMode = StorefrontHeroMode;
|
|
2
3
|
export type PlaygroundDevSettings = {
|
|
3
|
-
heroMode: PlaygroundHeroMode;
|
|
4
|
+
heroMode: PlaygroundHeroMode | null;
|
|
4
5
|
};
|
|
5
6
|
export declare const DEFAULT_PLAYGROUND_DEV_SETTINGS: PlaygroundDevSettings;
|
|
6
7
|
export declare const isStorefrontPlaygroundRuntime: () => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playgroundDevSettings.d.ts","sourceRoot":"","sources":["../../src/lib/playgroundDevSettings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playgroundDevSettings.d.ts","sourceRoot":"","sources":["../../src/lib/playgroundDevSettings.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sBAAsB,CAAA;AAO7B,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAA;AAEnD,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAE,qBAE7C,CAAA;AAgBD,eAAO,MAAM,6BAA6B,eAOzC,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAO,qBAc5C,CAAA;AAMD,eAAO,MAAM,0BAA0B,GAAI,cAAc,qBAAqB,SAsB7E,CAAA;AAED,eAAO,MAAM,0BAA0B,YAEtC,CAAA;AAED,eAAO,MAAM,wBAAwB,6BAkCpC,CAAA"}
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { STOREFRONT_HERO_MODES as e } from "../storefrontSchemas.js";
|
|
2
|
+
import { useEffect as t, useState as n } from "react";
|
|
2
3
|
//#region src/lib/playgroundDevSettings.ts
|
|
3
|
-
var
|
|
4
|
-
if (!e || typeof e != "object") return
|
|
4
|
+
var r = "__LOCZER_STOREFRONT_PLAYGROUND__", i = "loczer-storefront-playground-dev-settings", a = "loczer:storefront-playground-dev-settings", o = { heroMode: null }, s = (t) => e.some((e) => e === t), c = (e) => {
|
|
5
|
+
if (!e || typeof e != "object") return o;
|
|
5
6
|
let t = e;
|
|
6
|
-
return { heroMode: t.heroMode
|
|
7
|
-
},
|
|
8
|
-
if (typeof window > "u" || !
|
|
7
|
+
return { heroMode: s(t.heroMode) ? t.heroMode : null };
|
|
8
|
+
}, l = () => typeof window > "u" ? !1 : window[r] === !0, u = () => {
|
|
9
|
+
if (typeof window > "u" || !l()) return o;
|
|
9
10
|
try {
|
|
10
|
-
let e = window.localStorage.getItem(
|
|
11
|
-
return e ?
|
|
11
|
+
let e = window.localStorage.getItem(i);
|
|
12
|
+
return e ? c(JSON.parse(e)) : o;
|
|
12
13
|
} catch {
|
|
13
|
-
return
|
|
14
|
+
return o;
|
|
14
15
|
}
|
|
15
|
-
},
|
|
16
|
-
if (typeof window > "u" || !
|
|
17
|
-
let t =
|
|
16
|
+
}, d = (e) => e.heroMode === o.heroMode, f = (e) => {
|
|
17
|
+
if (typeof window > "u" || !l()) return;
|
|
18
|
+
let t = c(e);
|
|
18
19
|
try {
|
|
19
|
-
|
|
20
|
+
d(t) ? window.localStorage.removeItem(i) : window.localStorage.setItem(i, JSON.stringify(t));
|
|
20
21
|
} catch {}
|
|
21
22
|
try {
|
|
22
|
-
window.dispatchEvent(new CustomEvent(
|
|
23
|
+
window.dispatchEvent(new CustomEvent(a, { detail: t }));
|
|
23
24
|
} catch {}
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
let [
|
|
28
|
-
return
|
|
29
|
-
if (!
|
|
25
|
+
}, p = () => {
|
|
26
|
+
f(o);
|
|
27
|
+
}, m = () => {
|
|
28
|
+
let [e, r] = n(() => u());
|
|
29
|
+
return t(() => {
|
|
30
|
+
if (!l()) return;
|
|
30
31
|
let e = (e) => {
|
|
31
|
-
e.key ===
|
|
32
|
+
e.key === i && r(u());
|
|
32
33
|
}, t = (e) => {
|
|
33
34
|
let t = e;
|
|
34
35
|
if (t.detail) {
|
|
35
|
-
|
|
36
|
+
r(c(t.detail));
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
+
r(u());
|
|
39
40
|
};
|
|
40
|
-
return window.addEventListener("storage", e), window.addEventListener(
|
|
41
|
-
window.removeEventListener("storage", e), window.removeEventListener(
|
|
41
|
+
return window.addEventListener("storage", e), window.addEventListener(a, t), () => {
|
|
42
|
+
window.removeEventListener("storage", e), window.removeEventListener(a, t);
|
|
42
43
|
};
|
|
43
|
-
}, []),
|
|
44
|
+
}, []), e;
|
|
44
45
|
};
|
|
45
46
|
//#endregion
|
|
46
|
-
export {
|
|
47
|
+
export { o as DEFAULT_PLAYGROUND_DEV_SETTINGS, l as isStorefrontPlaygroundRuntime, u as readPlaygroundDevSettings, p as resetPlaygroundDevSettings, m as usePlaygroundDevSettings, f as writePlaygroundDevSettings };
|
|
@@ -12,6 +12,12 @@ export declare const storefrontPublicProductPriceSchema: z.ZodObject<{
|
|
|
12
12
|
currency: z.ZodOptional<z.ZodString>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
export type StorefrontPublicProductPrice = z.infer<typeof storefrontPublicProductPriceSchema>;
|
|
15
|
+
export declare const storefrontPublicProductInsuranceSchema: z.ZodObject<{
|
|
16
|
+
enabled: z.ZodBoolean;
|
|
17
|
+
pricePerDayMinor: z.ZodNumber;
|
|
18
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type StorefrontPublicProductInsurance = z.infer<typeof storefrontPublicProductInsuranceSchema>;
|
|
15
21
|
export declare const storefrontPublicProductVariantIdentifierSchema: z.ZodObject<{
|
|
16
22
|
kind: z.ZodString;
|
|
17
23
|
value: z.ZodString;
|
|
@@ -114,6 +120,11 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
|
|
|
114
120
|
quantity: z.ZodNumber;
|
|
115
121
|
currency: z.ZodOptional<z.ZodString>;
|
|
116
122
|
}, z.core.$strip>>>;
|
|
123
|
+
insurance: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
enabled: z.ZodBoolean;
|
|
125
|
+
pricePerDayMinor: z.ZodNumber;
|
|
126
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
127
|
+
}, z.core.$strip>>;
|
|
117
128
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
118
129
|
value: z.ZodString;
|
|
119
130
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -268,6 +279,11 @@ export declare const responseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
268
279
|
quantity: z.ZodNumber;
|
|
269
280
|
currency: z.ZodOptional<z.ZodString>;
|
|
270
281
|
}, z.core.$strip>>>;
|
|
282
|
+
insurance: z.ZodOptional<z.ZodObject<{
|
|
283
|
+
enabled: z.ZodBoolean;
|
|
284
|
+
pricePerDayMinor: z.ZodNumber;
|
|
285
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
286
|
+
}, z.core.$strip>>;
|
|
271
287
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
272
288
|
value: z.ZodString;
|
|
273
289
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storefrontProducts.d.ts","sourceRoot":"","sources":["../../src/lib/storefrontProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAevB,eAAO,MAAM,kCAAkC;;;;;;;;;;;iBAK7C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAE7F,eAAO,MAAM,8CAA8C;;;iBAGzD,CAAA;AACF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8CAA8C,CAAC,CAAA;AAErH,eAAO,MAAM,6CAA6C;;;;iBAIxD,CAAA;AACF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAA;AAEnH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;iBAK/C,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AAEjG,eAAO,MAAM,4CAA4C;;;;EAAqD,CAAA;AAC9G,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4CAA4C,CAAC,CAAA;AACjH,eAAO,MAAM,8BAA8B;;;EAA6B,CAAA;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,eAAO,MAAM,iCAAiC,aAA2B,CAAA;AACzE,eAAO,MAAM,wCAAwC;;;EAGnD,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA;AAEzG,eAAO,MAAM,gCAAgC;;;;;;;;;;iBAUzC,CAAA;AACJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAEzF,eAAO,MAAM,iCAAiC
|
|
1
|
+
{"version":3,"file":"storefrontProducts.d.ts","sourceRoot":"","sources":["../../src/lib/storefrontProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAevB,eAAO,MAAM,kCAAkC;;;;;;;;;;;iBAK7C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAE7F,eAAO,MAAM,sCAAsC;;;;iBAIjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,8CAA8C;;;iBAGzD,CAAA;AACF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8CAA8C,CAAC,CAAA;AAErH,eAAO,MAAM,6CAA6C;;;;iBAIxD,CAAA;AACF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAA;AAEnH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;iBAK/C,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AAEjG,eAAO,MAAM,4CAA4C;;;;EAAqD,CAAA;AAC9G,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4CAA4C,CAAC,CAAA;AACjH,eAAO,MAAM,8BAA8B;;;EAA6B,CAAA;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,eAAO,MAAM,iCAAiC,aAA2B,CAAA;AACzE,eAAO,MAAM,wCAAwC;;;EAGnD,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA;AAEzG,eAAO,MAAM,gCAAgC;;;;;;;;;;iBAUzC,CAAA;AACJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAEzF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB5C,CAAA;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAE3F,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcjD,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAA;AAErG,eAAO,MAAM,KAAK,oCAAoC,CAAA;AAEtD,eAAO,MAAM,aAAa;;iBAExB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAC1D,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAA;AAE7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAYzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAC5D,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAA"}
|