@loczer/storefront-sdk 0.187.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/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/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 +19 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +21 -2
- package/dist/index.d.ts +62 -0
- package/dist/index.js +68 -68
- package/dist/lib/booking.js +2 -2
- package/dist/lib/checkoutSubmit.js +3 -3
- 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 +284 -288
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/booking-engine/dist/schemas-DftrSnTE.js +0 -13
package/dist/i18n/fr.js
CHANGED
|
@@ -22,14 +22,33 @@ var e = {
|
|
|
22
22
|
feature_delivery_title: "Livraison disponible",
|
|
23
23
|
feature_delivery_description: "Demandez les options de livraison à votre adresse.",
|
|
24
24
|
feature_guarantee_insurance_title: "Garantie et Assurance",
|
|
25
|
-
feature_guarantee_insurance_description: "Vous pouvez souscrire
|
|
25
|
+
feature_guarantee_insurance_description: "Vous pouvez souscrire une garantie casse et vol adaptée au vélo loué",
|
|
26
|
+
insurance_info_aria_label: "Afficher les conditions de la garantie casse et vol",
|
|
27
|
+
insurance_modal_title: "Garantie casse et vol",
|
|
28
|
+
insurance_modal_description: "Une protection facultative pour limiter les frais en cas de dommage accidentel ou de vol couvert.",
|
|
29
|
+
insurance_modal_pricing_title: "Tarif par catégorie",
|
|
30
|
+
insurance_modal_pricing_description: "La garantie est facturée pour chaque vélo et pour chaque jour de location.",
|
|
31
|
+
insurance_modal_muscular_bike: "Vélo musculaire",
|
|
32
|
+
insurance_modal_electric_bike: "Vélo électrique",
|
|
33
|
+
insurance_modal_price_per_day: "{{price}} par vélo et par jour",
|
|
34
|
+
insurance_modal_price_range_per_day: "De {{minimum_price}} à {{maximum_price}} par vélo et par jour",
|
|
35
|
+
insurance_modal_price_unavailable: "Non proposée actuellement",
|
|
36
|
+
insurance_modal_coverage_title: "Ce que la garantie couvre",
|
|
37
|
+
insurance_modal_coverage_accidental_damage: "La casse accidentelle du vélo.",
|
|
38
|
+
insurance_modal_coverage_assault_or_break_in: "Le vol par agression ou à la suite d'une effraction.",
|
|
39
|
+
insurance_modal_coverage_secured_bike_theft: "Le vol d'un vélo attaché à un point fixe avec l'antivol fourni.",
|
|
40
|
+
insurance_modal_claim_title: "En cas de sinistre",
|
|
41
|
+
insurance_modal_claim_description: "Prévenez immédiatement le magasin. En cas de vol, déposez plainte sans délai et transmettez le récépissé. Une franchise peut rester à votre charge.",
|
|
42
|
+
insurance_modal_exclusions_title: "Principales exclusions",
|
|
43
|
+
insurance_modal_exclusions_description: "Usure normale, crevaisons, accessoires amovibles, dommages intentionnels ou liés à une mauvaise utilisation, et vol d'un vélo non attaché.",
|
|
44
|
+
insurance_modal_terms_note: "Les plafonds, franchises, justificatifs et exclusions indiqués au moment de la souscription et dans le contrat de location prévalent.",
|
|
26
45
|
cancellation_policy_teaser: "Annulation et remboursement* jusqu'à {{duration}} à l'avance",
|
|
27
46
|
cancellation_policy_teaser_description: "Vous pouvez annuler ou modifier votre réservation jusqu'à {{duration}} avant son début",
|
|
28
47
|
cancellation_policy_info_aria_label: "Afficher les conditions d'annulation",
|
|
29
48
|
cancellation_policy_modal_title: "Conditions d'annulation",
|
|
30
49
|
cancellation_policy_modal_description: "Le remboursement dépend du délai entre l'annulation et le début de la réservation.",
|
|
31
50
|
cancellation_policy_modal_tier_deadline: "Jusqu'à {{duration}} à l'avance",
|
|
32
|
-
cancellation_policy_modal_tier_refund: "Remboursement de {{percentage}}",
|
|
51
|
+
cancellation_policy_modal_tier_refund: "Remboursement de {{percentage}} du montant total",
|
|
33
52
|
cancellation_policy_duration_hours_one: "{{count}} heure",
|
|
34
53
|
cancellation_policy_duration_hours_other: "{{count}} heures",
|
|
35
54
|
cancellation_policy_duration_days_one: "{{count}} jour",
|
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>;
|
|
@@ -2117,6 +2120,14 @@ export declare interface ProductAccessory {
|
|
|
2117
2120
|
productVariants?: ProductVariant[];
|
|
2118
2121
|
}
|
|
2119
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
|
+
|
|
2120
2131
|
export declare type ProductKind = z.infer<typeof productKindSchema>;
|
|
2121
2132
|
|
|
2122
2133
|
export declare const productKindSchema: z.ZodEnum<{
|
|
@@ -2166,6 +2177,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2166
2177
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
2167
2178
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2168
2179
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2180
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2169
2181
|
}, z.core.$strip>>;
|
|
2170
2182
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
2171
2183
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2227,6 +2239,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2227
2239
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
2228
2240
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2229
2241
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2242
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2230
2243
|
}, z.core.$strip>>;
|
|
2231
2244
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
2232
2245
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2277,6 +2290,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2277
2290
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
2278
2291
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2279
2292
|
pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
|
|
2293
|
+
deductibleAmountMinor: z.ZodDefault<z.ZodNumber>;
|
|
2280
2294
|
}, z.core.$strip>>;
|
|
2281
2295
|
bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
|
|
2282
2296
|
bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3496,6 +3510,25 @@ export declare const storefrontEn: {
|
|
|
3496
3510
|
feature_delivery_description: string;
|
|
3497
3511
|
feature_guarantee_insurance_title: string;
|
|
3498
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;
|
|
3499
3532
|
cancellation_policy_teaser: string;
|
|
3500
3533
|
cancellation_policy_teaser_description: string;
|
|
3501
3534
|
cancellation_policy_info_aria_label: string;
|
|
@@ -3936,6 +3969,25 @@ export declare const storefrontFr: {
|
|
|
3936
3969
|
feature_delivery_description: string;
|
|
3937
3970
|
feature_guarantee_insurance_title: string;
|
|
3938
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;
|
|
3939
3991
|
cancellation_policy_teaser: string;
|
|
3940
3992
|
cancellation_policy_teaser_description: string;
|
|
3941
3993
|
cancellation_policy_info_aria_label: string;
|
|
@@ -4428,6 +4480,11 @@ export declare const storefrontProductsResponseSchema: z.ZodDiscriminatedUnion<[
|
|
|
4428
4480
|
quantity: z.ZodNumber;
|
|
4429
4481
|
currency: z.ZodOptional<z.ZodString>;
|
|
4430
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>>;
|
|
4431
4488
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4432
4489
|
value: z.ZodString;
|
|
4433
4490
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -4676,6 +4733,11 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
|
|
|
4676
4733
|
quantity: z.ZodNumber;
|
|
4677
4734
|
currency: z.ZodOptional<z.ZodString>;
|
|
4678
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>>;
|
|
4679
4741
|
features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4680
4742
|
value: z.ZodString;
|
|
4681
4743
|
updatedAt: z.ZodCoercedDate<unknown>;
|
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 { STOREFRONT_HERO_MODES 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";
|
|
@@ -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"}
|
|
@@ -16,22 +16,26 @@ var t = e.object({
|
|
|
16
16
|
quantity: e.number().positive(),
|
|
17
17
|
currency: e.string().trim().min(1).optional()
|
|
18
18
|
}), o = e.object({
|
|
19
|
+
enabled: e.boolean(),
|
|
20
|
+
pricePerDayMinor: e.number().int().min(0),
|
|
21
|
+
deductibleAmountMinor: e.number().int().min(0).default(0)
|
|
22
|
+
}), s = e.object({
|
|
19
23
|
kind: e.string().trim().min(1),
|
|
20
24
|
value: e.string().trim().min(1)
|
|
21
|
-
}),
|
|
25
|
+
}), c = e.object({
|
|
22
26
|
key: e.string().trim().min(1),
|
|
23
27
|
label: e.string().trim().min(1).optional(),
|
|
24
28
|
value: e.string().trim().min(1)
|
|
25
|
-
}),
|
|
29
|
+
}), l = e.object({
|
|
26
30
|
id: e.string().trim().min(1),
|
|
27
31
|
computedName: e.string().trim().min(1),
|
|
28
|
-
attributes: e.array(
|
|
29
|
-
identifiers: e.array(
|
|
30
|
-
}),
|
|
32
|
+
attributes: e.array(c).default([]),
|
|
33
|
+
identifiers: e.array(s).default([])
|
|
34
|
+
}), u = e.enum([
|
|
31
35
|
"AVAILABLE",
|
|
32
36
|
"LOW_STOCK",
|
|
33
37
|
"OUT_OF_STOCK"
|
|
34
|
-
]),
|
|
38
|
+
]), d = e.enum(["bike", "e-bike"]), f = e.string().trim().min(1), p = e.enum(["variant_selector", "variants_as_products"]), m = e.object({
|
|
35
39
|
bgMode: e.enum([
|
|
36
40
|
"transparent",
|
|
37
41
|
"solid",
|
|
@@ -41,45 +45,46 @@ var t = e.object({
|
|
|
41
45
|
needsLightBorder: e.boolean().default(!1),
|
|
42
46
|
confidence: e.number().min(0).max(1).optional(),
|
|
43
47
|
analyzerVersion: e.number().int().min(1).optional()
|
|
44
|
-
}).refine((e) => e.bgMode !== "solid" || !!e.bgColor, { message: "bgColor is required when bgMode is solid." }),
|
|
48
|
+
}).refine((e) => e.bgMode !== "solid" || !!e.bgColor, { message: "bgColor is required when bgMode is solid." }), h = e.object({
|
|
45
49
|
id: e.string().trim().min(1),
|
|
46
50
|
checkoutProductId: e.string().trim().min(1).optional(),
|
|
47
51
|
representedVariantId: e.string().trim().min(1).optional(),
|
|
48
|
-
slug:
|
|
49
|
-
kind:
|
|
52
|
+
slug: f,
|
|
53
|
+
kind: d.optional(),
|
|
50
54
|
name: n,
|
|
51
55
|
description: n.optional(),
|
|
52
56
|
warning: n.optional(),
|
|
53
57
|
images: e.array(e.string().trim().min(1)).optional(),
|
|
54
|
-
primaryImageStyle:
|
|
58
|
+
primaryImageStyle: m.optional(),
|
|
55
59
|
prices: e.array(a).optional(),
|
|
60
|
+
insurance: o.optional(),
|
|
56
61
|
features: e.array(n).optional(),
|
|
57
|
-
productVariants: e.array(
|
|
58
|
-
storefrontDisplayMode:
|
|
59
|
-
availabilityStatus:
|
|
60
|
-
}),
|
|
62
|
+
productVariants: e.array(l).min(1),
|
|
63
|
+
storefrontDisplayMode: p.default("variant_selector"),
|
|
64
|
+
availabilityStatus: u.optional()
|
|
65
|
+
}), g = e.object({
|
|
61
66
|
id: e.string().trim().min(1),
|
|
62
67
|
checkoutProductId: e.string().trim().min(1).optional(),
|
|
63
68
|
representedVariantId: e.string().trim().min(1).optional(),
|
|
64
|
-
slug:
|
|
69
|
+
slug: f,
|
|
65
70
|
name: n,
|
|
66
71
|
description: n.optional(),
|
|
67
72
|
warning: n.optional(),
|
|
68
73
|
images: e.array(e.string().trim().min(1)).optional(),
|
|
69
|
-
primaryImageStyle:
|
|
74
|
+
primaryImageStyle: m.optional(),
|
|
70
75
|
prices: e.array(a),
|
|
71
76
|
features: e.array(n).optional(),
|
|
72
|
-
productVariants: e.array(
|
|
73
|
-
storefrontDisplayMode:
|
|
74
|
-
}),
|
|
77
|
+
productVariants: e.array(l).min(1),
|
|
78
|
+
storefrontDisplayMode: p.default("variant_selector")
|
|
79
|
+
}), _ = "/api/public/storefront/products", v = e.object({ storeSlug: e.string().trim().min(1).toLowerCase() }), y = e.discriminatedUnion("success", [e.object({
|
|
75
80
|
success: e.literal(!0),
|
|
76
81
|
products: e.object({
|
|
77
|
-
bikes: e.array(
|
|
78
|
-
accessories: e.array(
|
|
82
|
+
bikes: e.array(h).default([]),
|
|
83
|
+
accessories: e.array(g).default([])
|
|
79
84
|
})
|
|
80
85
|
}), e.object({
|
|
81
86
|
success: e.literal(!1),
|
|
82
87
|
message: e.string().optional()
|
|
83
88
|
})]);
|
|
84
89
|
//#endregion
|
|
85
|
-
export {
|
|
90
|
+
export { _ as ROUTE, v as requestSchema, y as responseSchema, g as storefrontPublicAccessoryProductSchema, u as storefrontPublicBikeAvailabilityStatusSchema, d as storefrontPublicBikeKindSchema, h as storefrontPublicBikeProductSchema, m as storefrontPublicImageStyleSchema, p as storefrontPublicProductDisplayModeSchema, o as storefrontPublicProductInsuranceSchema, a as storefrontPublicProductPriceSchema, f as storefrontPublicProductSlugSchema, c as storefrontPublicProductVariantAttributeSchema, s as storefrontPublicProductVariantIdentifierSchema, l as storefrontPublicProductVariantSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../src/pages/HomePage.tsx"],"names":[],"mappings":"AA4GA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CAwrB/B"}
|