@loczer/storefront-sdk 0.218.0 → 0.220.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BookingFlowPageLayout/index.d.ts +13 -0
- package/dist/components/BookingFlowPageLayout/index.d.ts.map +1 -0
- package/dist/components/BookingFlowPageLayout/index.js +35 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +10 -33
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -4
- package/dist/components/BookingPeriodSelector/index.d.ts +1 -1
- package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +0 -5
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +150 -159
- package/dist/components/Footer/BusinessHours.d.ts +2 -1
- package/dist/components/Footer/BusinessHours.d.ts.map +1 -1
- package/dist/components/Footer/BusinessHours.js +19 -18
- package/dist/components/Footer/businessHoursStatus.d.ts +25 -0
- package/dist/components/Footer/businessHoursStatus.d.ts.map +1 -0
- package/dist/components/Footer/businessHoursStatus.js +99 -0
- package/dist/components/Footer/businessHoursUtils.d.ts +2 -1
- package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -1
- package/dist/components/Footer/businessHoursUtils.js +52 -45
- package/dist/components/Footer/index.d.ts +2 -1
- package/dist/components/Footer/index.d.ts.map +1 -1
- package/dist/components/Footer/index.js +26 -25
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +2 -1
- package/dist/components/StorefrontCancellationPolicyNotice/index.d.ts.map +1 -1
- package/dist/components/StorefrontCancellationPolicyNotice/index.js +89 -86
- package/dist/components/StorefrontCartPanel/index.js +4 -4
- package/dist/components/StorefrontInsuranceNotice/index.d.ts +2 -1
- package/dist/components/StorefrontInsuranceNotice/index.d.ts.map +1 -1
- package/dist/components/StorefrontInsuranceNotice/index.js +155 -162
- package/dist/i18n/en.d.ts +7 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +8 -2
- package/dist/i18n/fr.d.ts +7 -1
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +8 -2
- package/dist/index.d.ts +24 -10
- package/dist/index.js +66 -66
- package/dist/lib/checkoutPaymentDecision.d.ts +2 -6
- package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -1
- package/dist/lib/checkoutPaymentDecision.js +3 -4
- package/dist/lib/checkoutSubmit.d.ts +0 -3
- package/dist/lib/checkoutSubmit.d.ts.map +1 -1
- package/dist/lib/checkoutSubmit.js +41 -43
- package/dist/lib/pricing.d.ts.map +1 -1
- package/dist/lib/pricing.js +3 -1
- package/dist/lib/products.d.ts +6 -0
- package/dist/lib/products.d.ts.map +1 -1
- package/dist/lib/products.js +36 -32
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +306 -335
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +172 -186
- package/dist/pages/HomePage.d.ts.map +1 -1
- package/dist/pages/HomePage.js +435 -378
- package/dist/storefront.css +1 -1
- package/package.json +1 -1
package/dist/i18n/en.js
CHANGED
|
@@ -20,6 +20,12 @@ var e = {
|
|
|
20
20
|
checkout_button: "Checkout",
|
|
21
21
|
storefront_popup_title_fallback: "Update",
|
|
22
22
|
status_open: "Currently open",
|
|
23
|
+
status_closed: "Closed",
|
|
24
|
+
status_hours_unavailable: "Hours unavailable",
|
|
25
|
+
status_opens_at: "Opens at {{time}}",
|
|
26
|
+
status_opens_at_tomorrow: "Opens at {{time}} tomorrow",
|
|
27
|
+
status_opens_on: "Opens {{weekday}} at {{time}}",
|
|
28
|
+
status_opens_on_date: "Opens {{date}} at {{time}}",
|
|
23
29
|
business_hours_modal_title: "Opening hours by season",
|
|
24
30
|
business_hours_modal_description: "See seasonal opening times and upcoming special hours.",
|
|
25
31
|
business_hours_google_maps_note: "Always check the latest hours on Google Maps to confirm hours.",
|
|
@@ -37,11 +43,10 @@ var e = {
|
|
|
37
43
|
insurance_modal_title: "Theft and accidental damage guarantee",
|
|
38
44
|
insurance_modal_description: "Optional protection that limits your costs after covered accidental damage or theft.",
|
|
39
45
|
insurance_modal_pricing_title: "Price by category",
|
|
40
|
-
insurance_modal_pricing_description: "The
|
|
46
|
+
insurance_modal_pricing_description: "The exact amount depends on the bike selected.",
|
|
41
47
|
insurance_modal_muscular_bike: "Regular bike",
|
|
42
48
|
insurance_modal_electric_bike: "Electric bike",
|
|
43
49
|
insurance_modal_price_per_day: "{{price}} per bike per day",
|
|
44
|
-
insurance_modal_price_range_per_day: "{{minimum_price}} to {{maximum_price}} per bike per day",
|
|
45
50
|
insurance_modal_price_unavailable: "Not currently offered",
|
|
46
51
|
insurance_modal_coverage_title: "What the guarantee covers",
|
|
47
52
|
insurance_modal_coverage_accidental_damage: "Accidental damage to the bike.",
|
|
@@ -59,6 +64,7 @@ var e = {
|
|
|
59
64
|
cancellation_policy_modal_description: "Refunds depend on how far in advance you cancel.",
|
|
60
65
|
cancellation_policy_modal_tier_deadline: "Up to {{duration}} in advance",
|
|
61
66
|
cancellation_policy_modal_tier_refund: "Refund of {{percentage}} of the total amount",
|
|
67
|
+
cancellation_policy_modal_disclaimer: "These are the standard cancellation conditions. Depending on your reservation, different conditions may be offered.",
|
|
62
68
|
cancellation_policy_duration_hours_one: "{{count}} hour",
|
|
63
69
|
cancellation_policy_duration_hours_other: "{{count}} hours",
|
|
64
70
|
cancellation_policy_duration_days_one: "{{count}} day",
|
package/dist/i18n/fr.d.ts
CHANGED
|
@@ -19,6 +19,12 @@ export declare const storefront: {
|
|
|
19
19
|
checkout_button: string;
|
|
20
20
|
storefront_popup_title_fallback: string;
|
|
21
21
|
status_open: string;
|
|
22
|
+
status_closed: string;
|
|
23
|
+
status_hours_unavailable: string;
|
|
24
|
+
status_opens_at: string;
|
|
25
|
+
status_opens_at_tomorrow: string;
|
|
26
|
+
status_opens_on: string;
|
|
27
|
+
status_opens_on_date: string;
|
|
22
28
|
business_hours_modal_title: string;
|
|
23
29
|
business_hours_modal_description: string;
|
|
24
30
|
business_hours_google_maps_note: string;
|
|
@@ -40,7 +46,6 @@ export declare const storefront: {
|
|
|
40
46
|
insurance_modal_muscular_bike: string;
|
|
41
47
|
insurance_modal_electric_bike: string;
|
|
42
48
|
insurance_modal_price_per_day: string;
|
|
43
|
-
insurance_modal_price_range_per_day: string;
|
|
44
49
|
insurance_modal_price_unavailable: string;
|
|
45
50
|
insurance_modal_coverage_title: string;
|
|
46
51
|
insurance_modal_coverage_accidental_damage: string;
|
|
@@ -58,6 +63,7 @@ export declare const storefront: {
|
|
|
58
63
|
cancellation_policy_modal_description: string;
|
|
59
64
|
cancellation_policy_modal_tier_deadline: string;
|
|
60
65
|
cancellation_policy_modal_tier_refund: string;
|
|
66
|
+
cancellation_policy_modal_disclaimer: string;
|
|
61
67
|
cancellation_policy_duration_hours_one: string;
|
|
62
68
|
cancellation_policy_duration_hours_other: string;
|
|
63
69
|
cancellation_policy_duration_days_one: string;
|
package/dist/i18n/fr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAogBtB,CAAA"}
|
package/dist/i18n/fr.js
CHANGED
|
@@ -20,6 +20,12 @@ var e = {
|
|
|
20
20
|
checkout_button: "Commander",
|
|
21
21
|
storefront_popup_title_fallback: "Information",
|
|
22
22
|
status_open: "Ouvert en ce moment",
|
|
23
|
+
status_closed: "Fermé",
|
|
24
|
+
status_hours_unavailable: "Horaires indisponibles",
|
|
25
|
+
status_opens_at: "Ouvre à {{time}}",
|
|
26
|
+
status_opens_at_tomorrow: "Ouvre demain à {{time}}",
|
|
27
|
+
status_opens_on: "Ouvre {{weekday}} à {{time}}",
|
|
28
|
+
status_opens_on_date: "Ouvre le {{date}} à {{time}}",
|
|
23
29
|
business_hours_modal_title: "Horaires par saison",
|
|
24
30
|
business_hours_modal_description: "Consultez les horaires par saison et les prochains horaires exceptionnels.",
|
|
25
31
|
business_hours_google_maps_note: "Vérifiez toujours les derniers horaires sur Google Maps pour confirmer les horaires.",
|
|
@@ -37,11 +43,10 @@ var e = {
|
|
|
37
43
|
insurance_modal_title: "Garantie casse et vol",
|
|
38
44
|
insurance_modal_description: "Une protection facultative pour limiter les frais en cas de dommage accidentel ou de vol couvert.",
|
|
39
45
|
insurance_modal_pricing_title: "Tarif par catégorie",
|
|
40
|
-
insurance_modal_pricing_description: "
|
|
46
|
+
insurance_modal_pricing_description: "Le montant exact dépend du vélo choisi.",
|
|
41
47
|
insurance_modal_muscular_bike: "Vélo musculaire",
|
|
42
48
|
insurance_modal_electric_bike: "Vélo électrique",
|
|
43
49
|
insurance_modal_price_per_day: "{{price}} par vélo et par jour",
|
|
44
|
-
insurance_modal_price_range_per_day: "De {{minimum_price}} à {{maximum_price}} par vélo et par jour",
|
|
45
50
|
insurance_modal_price_unavailable: "Non proposée actuellement",
|
|
46
51
|
insurance_modal_coverage_title: "Ce que la garantie couvre",
|
|
47
52
|
insurance_modal_coverage_accidental_damage: "La casse accidentelle du vélo.",
|
|
@@ -59,6 +64,7 @@ var e = {
|
|
|
59
64
|
cancellation_policy_modal_description: "Le remboursement dépend du délai entre l'annulation et le début de la réservation.",
|
|
60
65
|
cancellation_policy_modal_tier_deadline: "Jusqu'à {{duration}} à l'avance",
|
|
61
66
|
cancellation_policy_modal_tier_refund: "Remboursement de {{percentage}} du montant total",
|
|
67
|
+
cancellation_policy_modal_disclaimer: "Il s'agit des conditions d'annulation de base. Selon votre réservation, des conditions différentes pourront vous être proposées.",
|
|
62
68
|
cancellation_policy_duration_hours_one: "{{count}} heure",
|
|
63
69
|
cancellation_policy_duration_hours_other: "{{count}} heures",
|
|
64
70
|
cancellation_policy_duration_days_one: "{{count}} jour",
|
package/dist/index.d.ts
CHANGED
|
@@ -752,7 +752,6 @@ export declare interface BookingPeriodControllerOptions {
|
|
|
752
752
|
fetchTimeSlots?: BookingPeriodTimeSlotsFetcher;
|
|
753
753
|
onTimeSlotsAvailabilityChange?: (isAvailable: boolean) => void;
|
|
754
754
|
onTimeSlotsConfirmationChange?: (isConfirmed: boolean) => void;
|
|
755
|
-
selectionFlow?: BookingPeriodSelectionFlow;
|
|
756
755
|
withMobileDateDrawer?: boolean;
|
|
757
756
|
currencyCode?: string;
|
|
758
757
|
disableAutomaticTimeCorrection?: boolean;
|
|
@@ -784,7 +783,6 @@ export declare interface BookingPeriodControllerValue {
|
|
|
784
783
|
isHydrated: boolean;
|
|
785
784
|
openDatePickerOnFocus: boolean;
|
|
786
785
|
withMobileDateDrawer: boolean;
|
|
787
|
-
selectionFlow: BookingPeriodSelectionFlow;
|
|
788
786
|
isStartDatePopoverOpen: boolean;
|
|
789
787
|
setIsStartDatePopoverOpen: (open: boolean) => void;
|
|
790
788
|
isStartTimeSelectOpen: boolean;
|
|
@@ -817,13 +815,11 @@ export declare interface BookingPeriodControllerValue {
|
|
|
817
815
|
*/
|
|
818
816
|
updateStartTime: (value: string) => void;
|
|
819
817
|
selectStartDate: (date: Date | undefined, options?: {
|
|
820
|
-
openTimePicker?: boolean;
|
|
821
818
|
openEndDatePicker?: boolean;
|
|
822
819
|
close?: boolean;
|
|
823
820
|
}) => void;
|
|
824
821
|
selectStartTime: (value: string) => void;
|
|
825
822
|
selectEndDate: (date: Date | undefined, options?: {
|
|
826
|
-
openTimePicker?: boolean;
|
|
827
823
|
close?: boolean;
|
|
828
824
|
commit?: boolean;
|
|
829
825
|
}) => void;
|
|
@@ -869,8 +865,6 @@ declare type BookingPeriodProviderProps = BookingPeriodControllerOptions & {
|
|
|
869
865
|
children: ReactNode;
|
|
870
866
|
};
|
|
871
867
|
|
|
872
|
-
export declare type BookingPeriodSelectionFlow = "chained-times" | "dates-first";
|
|
873
|
-
|
|
874
868
|
export declare const BookingPeriodSelector: ({ className, ...options }: BookingPeriodSelectorProps) => JSX.Element;
|
|
875
869
|
|
|
876
870
|
declare type BookingPeriodSelectorProps = BookingPeriodControllerOptions & {
|
|
@@ -1760,11 +1754,13 @@ export declare const eBikeProductSchema: z.ZodObject<{
|
|
|
1760
1754
|
kind: z.ZodLiteral<"e-bike">;
|
|
1761
1755
|
}, z.core.$strip>;
|
|
1762
1756
|
|
|
1757
|
+
export declare function findStorefrontInsurancePricingBike<T extends StorefrontInsuranceCandidate>(bikes: readonly T[], kind: BikeProduct["kind"]): T | undefined;
|
|
1758
|
+
|
|
1763
1759
|
export declare const findStorefrontProduct: (id: string, products: StorefrontProductsCollections) => StorefrontProduct | null;
|
|
1764
1760
|
|
|
1765
1761
|
export declare const findStorefrontProductBySlug: (slug: string, products: StorefrontProductsCollections) => StorefrontProduct | null;
|
|
1766
1762
|
|
|
1767
|
-
export declare function Footer({ storeSlug, shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): JSX.Element;
|
|
1763
|
+
export declare function Footer({ storeSlug, shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, timeZone, }: FooterProps): JSX.Element;
|
|
1768
1764
|
|
|
1769
1765
|
declare type FooterProps = {
|
|
1770
1766
|
storeSlug?: string;
|
|
@@ -1773,6 +1769,7 @@ declare type FooterProps = {
|
|
|
1773
1769
|
whatsappPhoneDisplay?: string;
|
|
1774
1770
|
openingHours?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHours"];
|
|
1775
1771
|
openingHoursOverrides?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHoursOverrides"];
|
|
1772
|
+
timeZone?: string;
|
|
1776
1773
|
};
|
|
1777
1774
|
|
|
1778
1775
|
export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
|
|
@@ -3564,7 +3561,6 @@ export declare type StorefrontCheckoutSubmitResponsePayload = z.infer<typeof sto
|
|
|
3564
3561
|
export declare const storefrontCheckoutSubmitResponseSchema: z.ZodObject<{
|
|
3565
3562
|
success: z.ZodBoolean;
|
|
3566
3563
|
message: z.ZodOptional<z.ZodString>;
|
|
3567
|
-
errorCode: z.ZodOptional<z.ZodLiteral<"online_payment_provider_missing">>;
|
|
3568
3564
|
checkout: z.ZodOptional<z.ZodObject<{
|
|
3569
3565
|
bookingExternalId: z.ZodString;
|
|
3570
3566
|
saleId: z.ZodString;
|
|
@@ -4039,6 +4035,12 @@ export declare const storefrontEn: {
|
|
|
4039
4035
|
checkout_button: string;
|
|
4040
4036
|
storefront_popup_title_fallback: string;
|
|
4041
4037
|
status_open: string;
|
|
4038
|
+
status_closed: string;
|
|
4039
|
+
status_hours_unavailable: string;
|
|
4040
|
+
status_opens_at: string;
|
|
4041
|
+
status_opens_at_tomorrow: string;
|
|
4042
|
+
status_opens_on: string;
|
|
4043
|
+
status_opens_on_date: string;
|
|
4042
4044
|
business_hours_modal_title: string;
|
|
4043
4045
|
business_hours_modal_description: string;
|
|
4044
4046
|
business_hours_google_maps_note: string;
|
|
@@ -4060,7 +4062,6 @@ export declare const storefrontEn: {
|
|
|
4060
4062
|
insurance_modal_muscular_bike: string;
|
|
4061
4063
|
insurance_modal_electric_bike: string;
|
|
4062
4064
|
insurance_modal_price_per_day: string;
|
|
4063
|
-
insurance_modal_price_range_per_day: string;
|
|
4064
4065
|
insurance_modal_price_unavailable: string;
|
|
4065
4066
|
insurance_modal_coverage_title: string;
|
|
4066
4067
|
insurance_modal_coverage_accidental_damage: string;
|
|
@@ -4078,6 +4079,7 @@ export declare const storefrontEn: {
|
|
|
4078
4079
|
cancellation_policy_modal_description: string;
|
|
4079
4080
|
cancellation_policy_modal_tier_deadline: string;
|
|
4080
4081
|
cancellation_policy_modal_tier_refund: string;
|
|
4082
|
+
cancellation_policy_modal_disclaimer: string;
|
|
4081
4083
|
cancellation_policy_duration_hours_one: string;
|
|
4082
4084
|
cancellation_policy_duration_hours_other: string;
|
|
4083
4085
|
cancellation_policy_duration_days_one: string;
|
|
@@ -4581,6 +4583,12 @@ export declare const storefrontFr: {
|
|
|
4581
4583
|
checkout_button: string;
|
|
4582
4584
|
storefront_popup_title_fallback: string;
|
|
4583
4585
|
status_open: string;
|
|
4586
|
+
status_closed: string;
|
|
4587
|
+
status_hours_unavailable: string;
|
|
4588
|
+
status_opens_at: string;
|
|
4589
|
+
status_opens_at_tomorrow: string;
|
|
4590
|
+
status_opens_on: string;
|
|
4591
|
+
status_opens_on_date: string;
|
|
4584
4592
|
business_hours_modal_title: string;
|
|
4585
4593
|
business_hours_modal_description: string;
|
|
4586
4594
|
business_hours_google_maps_note: string;
|
|
@@ -4602,7 +4610,6 @@ export declare const storefrontFr: {
|
|
|
4602
4610
|
insurance_modal_muscular_bike: string;
|
|
4603
4611
|
insurance_modal_electric_bike: string;
|
|
4604
4612
|
insurance_modal_price_per_day: string;
|
|
4605
|
-
insurance_modal_price_range_per_day: string;
|
|
4606
4613
|
insurance_modal_price_unavailable: string;
|
|
4607
4614
|
insurance_modal_coverage_title: string;
|
|
4608
4615
|
insurance_modal_coverage_accidental_damage: string;
|
|
@@ -4620,6 +4627,7 @@ export declare const storefrontFr: {
|
|
|
4620
4627
|
cancellation_policy_modal_description: string;
|
|
4621
4628
|
cancellation_policy_modal_tier_deadline: string;
|
|
4622
4629
|
cancellation_policy_modal_tier_refund: string;
|
|
4630
|
+
cancellation_policy_modal_disclaimer: string;
|
|
4623
4631
|
cancellation_policy_duration_hours_one: string;
|
|
4624
4632
|
cancellation_policy_duration_hours_other: string;
|
|
4625
4633
|
cancellation_policy_duration_days_one: string;
|
|
@@ -5080,6 +5088,12 @@ export declare const storefrontInformationSchema: z.ZodObject<{
|
|
|
5080
5088
|
rentalTermsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5081
5089
|
}, z.core.$strip>;
|
|
5082
5090
|
|
|
5091
|
+
declare type StorefrontInsuranceCandidate = Pick<BikeProduct, "kind"> & {
|
|
5092
|
+
insurance?: {
|
|
5093
|
+
enabled: boolean;
|
|
5094
|
+
};
|
|
5095
|
+
};
|
|
5096
|
+
|
|
5083
5097
|
export declare const storefrontItinerariesFeaturedRequestSchema: z.ZodObject<{
|
|
5084
5098
|
storeSlug: z.ZodString;
|
|
5085
5099
|
}, z.core.$strip>;
|
package/dist/index.js
CHANGED
|
@@ -16,79 +16,79 @@ import "./chunks/pkg/booking-engine/dist/schemas-DGn2a1my.js";
|
|
|
16
16
|
import { STOREFRONT_HERO_MODES as _e, storefrontCheckoutModeSchema as ve, storefrontConfigurationSchema as ye, storefrontContentSchema as be, storefrontFaqItemSchema as xe, storefrontFaqSchema as Se, storefrontFulfillmentModeSchema as Ce, storefrontHeroModeSchema as we, storefrontInformationSchema as Te, storefrontLocalizedRichTextSchema as Ee, storefrontModalMessageSchema as De, storefrontModulesSchema as Oe, storefrontReviewsModuleSchema as ke, storefrontRichTextSchema as Ae, storefrontSettingsSchema as je, storefrontShopSchema as Me, storefrontStatusSchema as Ne, storefrontWorkspaceSchema as Pe } from "./storefrontSchemas.js";
|
|
17
17
|
import { BOOKING_SEARCH_KEYS as Fe, TIME_OPTIONS as Ie, applyBookingParamsToSearch as Le, createBookingPeriodConfigFromBookingEngineConfiguration as Re, createBookingPeriodConfigFromShopConfiguration as ze, createBookingPeriodConfigFromStorefrontConfiguration as Be, getBookingParamsFromSearch as Ve, getBookingSessionStorageKey as He, getDefaultBookingParams as Ue, getDefaultBookingParamsForStorefrontConfiguration as We, pickBookingSearchParams as Ge, readBookingSearchParamsFromSessionStorage as Ke, readBookingSearchParamsFromStorage as qe, resolveBookingSearchParams as Je, resolveBookingSearchParamsFromSessionStorage as Ye, writeBookingSearchParamsToSessionStorage as Xe, writeBookingSearchParamsToStorage as Ze } from "./lib/booking.js";
|
|
18
18
|
import { getLocalizedEntry as Qe, getLocalizedValue as $e } from "./localization.js";
|
|
19
|
-
import { CATALOG_PRODUCT_BASE_RATE_UNSET as et, buildStorefrontProductSlug as tt, buildVariantStorefrontProductId as nt, compareCatalogProducts as rt, compareStorefrontAccessoryProducts as it, compareStorefrontBikeProducts as at,
|
|
20
|
-
import { StorefrontCartProvider as
|
|
21
|
-
import { cn as
|
|
22
|
-
import { buildPriceTierLabels as
|
|
23
|
-
import { buildStorefrontCartSummary as
|
|
24
|
-
import { ROUTE as
|
|
25
|
-
import { formatStorefrontPhoneDisplay as
|
|
26
|
-
import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as
|
|
27
|
-
import { buildWhatsAppHref as
|
|
28
|
-
import { ROUTE as
|
|
29
|
-
import { ROUTE as
|
|
30
|
-
import { ROUTE as
|
|
31
|
-
import { ROUTE as
|
|
32
|
-
import { ROUTE as
|
|
33
|
-
import { Footer as
|
|
34
|
-
import { Badge as
|
|
35
|
-
import { Button as
|
|
36
|
-
import { StorefrontContext as
|
|
37
|
-
import { Header as
|
|
38
|
-
import { storefront as
|
|
39
|
-
import { storefront as
|
|
40
|
-
import { PoweredByLoczerBadge as
|
|
41
|
-
import { PlatformFooter as
|
|
42
|
-
import { useWhatsAppFloatingButton as
|
|
43
|
-
import { WhatsAppFloatingButton as
|
|
19
|
+
import { CATALOG_PRODUCT_BASE_RATE_UNSET as et, buildStorefrontProductSlug as tt, buildVariantStorefrontProductId as nt, compareCatalogProducts as rt, compareStorefrontAccessoryProducts as it, compareStorefrontBikeProducts as at, findStorefrontInsurancePricingBike as ot, findStorefrontProduct as st, findStorefrontProductBySlug as ct, getCatalogProductBaseRateMinor as lt, getCatalogProductPaginationSort as ut, getCatalogProductSortFieldForPriceUnit as dt, getStorefrontBaseDailyRateMinor as ft, getStorefrontCheckoutProductId as pt, getStorefrontProductSelectionDisplayName as mt, getStorefrontRepresentedVariantId as ht, toStorefrontAccessoryProducts as gt, toStorefrontBikeProducts as _t, toStorefrontBookingProducts as vt, toStorefrontBookingProductsCollections as yt } from "./lib/products.js";
|
|
20
|
+
import { StorefrontCartProvider as bt, resolveStorefrontCartItemProduct as xt, useStorefrontCart as St } from "./lib/cart.js";
|
|
21
|
+
import { cn as Ct, formatPriceMinor as wt, getAvailabilityVariant as Tt, getMinDayPriceMinor as Et } from "./lib/utils.js";
|
|
22
|
+
import { buildPriceTierLabels as Dt, buildRentalPriceRows as Ot, calculateBookingRentalUnitSummary as kt, calculateRentalPriceForQuantity as At, formatRentalUnitQuantity as jt, formatStorefrontPriceMinor as Mt, getPricingUnitLabel as Nt } from "./lib/pricing.js";
|
|
23
|
+
import { buildStorefrontCartSummary as Pt } from "./lib/cartSummary.js";
|
|
24
|
+
import { ROUTE as Ft, requestSchema as It, responseSchema as Lt } from "./lib/contactForm.js";
|
|
25
|
+
import { formatStorefrontPhoneDisplay as Rt, resolveStorefrontMapsHref as zt, resolveStorefrontPhoneContact as Bt } from "./lib/storefrontContact.js";
|
|
26
|
+
import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as Vt, STOREFRONT_ITINERARIES_LIST_ROUTE as Ht, STOREFRONT_ITINERARY_DETAIL_ROUTE as Ut, storefrontItinerariesFeaturedRequestSchema as Wt, storefrontItinerariesFeaturedResponseSchema as Gt, storefrontItinerariesListRequestSchema as Kt, storefrontItinerariesListResponseSchema as qt, storefrontItineraryBoundsSchema as Jt, storefrontItineraryCoordinateSchema as Yt, storefrontItineraryDetailRequestSchema as Xt, storefrontItineraryDetailResponseSchema as Zt, storefrontItineraryDetailSchema as Qt, storefrontItineraryDifficultySchema as $t, storefrontItineraryLocalizedStringSchema as en, storefrontItineraryMetricsSchema as tn, storefrontItineraryPreviewSchema as nn, storefrontItineraryStepSchema as rn, storefrontItinerarySummarySchema as an, storefrontItineraryTripTypeSchema as on } from "./lib/storefrontItineraries.js";
|
|
27
|
+
import { buildWhatsAppHref as sn, resolveStorefrontWhatsAppContact as cn, resolveStorefrontWhatsAppHref as ln } from "./lib/whatsapp.js";
|
|
28
|
+
import { ROUTE as un, requestBaseSchema as dn, requestCheckoutItemSchema as fn, requestDeliveryRefinement as pn, requestSchema as mn, responseSchema as hn } from "./lib/checkoutSubmit.js";
|
|
29
|
+
import { ROUTE as gn, requestSchema as _n, responseSchema as vn, storefrontPublicAccessoryProductSchema as yn, storefrontPublicBikeAvailabilityStatusSchema as bn, storefrontPublicBikeProductSchema as xn, storefrontPublicProductDisplayModeSchema as Sn, storefrontPublicProductPriceSchema as Cn, storefrontPublicProductVariantAttributeSchema as wn, storefrontPublicProductVariantIdentifierSchema as Tn, storefrontPublicProductVariantSchema as En } from "./lib/storefrontProducts.js";
|
|
30
|
+
import { ROUTE as Dn, buildStorefrontAvailabilityKey as On, doesStorefrontAvailabilityDisplaySoldOut as kn, getStorefrontAvailabilityIssue as An, getStorefrontAvailabilityStatus as jn, isStorefrontAvailabilityInsufficient as Mn, publicAvailabilityDisplayModeSchema as Nn, requestSchema as Pn, responseSchema as Fn, shouldBlockStorefrontUnavailableItem as In, storefrontAvailabilityProductSchema as Ln, storefrontAvailabilityScheduleSchema as Rn, storefrontPublicAvailabilityRecordSchema as zn } from "./lib/storefrontAvailability.js";
|
|
31
|
+
import { ROUTE as Bn, buildStorefrontImageUrl as Vn, requestSchema as Hn } from "./lib/storefrontImage.js";
|
|
32
|
+
import { ROUTE as Un, requestSchema as Wn, responseSchema as Gn, storefrontTimeSlotSchema as Kn, timeSlotJourneySchema as qn } from "./lib/storefrontTimeSlots.js";
|
|
33
|
+
import { Footer as Jn } from "./components/Footer/index.js";
|
|
34
|
+
import { Badge as Yn, badgeVariants as Xn } from "./ui/badge.js";
|
|
35
|
+
import { Button as Zn, buttonVariants as Qn, storefrontButtonRadiusClassName as $n } from "./ui/button.js";
|
|
36
|
+
import { StorefrontContext as er, useOptionalStorefront as tr, useStorefront as nr, useStorefrontBookingProducts as rr, useStorefrontConfig as ir, useStorefrontItineraries as ar, useStorefrontProducts as or, useStorefrontWorkspaceLanguage as sr } from "./StorefrontContext.js";
|
|
37
|
+
import { Header as cr } from "./components/Header/index.js";
|
|
38
|
+
import { storefront as lr } from "./i18n/en.js";
|
|
39
|
+
import { storefront as ur } from "./i18n/fr.js";
|
|
40
|
+
import { PoweredByLoczerBadge as dr } from "./components/PoweredByLoczerBadge/index.js";
|
|
41
|
+
import { PlatformFooter as fr } from "./components/PlatformFooter/index.js";
|
|
42
|
+
import { useWhatsAppFloatingButton as pr } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
|
|
43
|
+
import { WhatsAppFloatingButton as mr } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
44
44
|
import "./components/WhatsAppFloatingButton/index.js";
|
|
45
|
-
import { Layout as
|
|
46
|
-
import { DelayedPlaceholder as
|
|
47
|
-
import { BookingPeriodProvider as
|
|
48
|
-
import { Label as
|
|
49
|
-
import { BookingStartDateField as
|
|
50
|
-
import { BookingStartTimeField as
|
|
51
|
-
import { BookingEndDateField as
|
|
52
|
-
import { BookingEndTimeField as
|
|
53
|
-
import { BookingTimeSlotsStatus as
|
|
54
|
-
import { BookingMobileDateDrawer as
|
|
55
|
-
import { BookingPeriodSelector as
|
|
56
|
-
import { BookingFlowSteps as
|
|
57
|
-
import { Input as
|
|
58
|
-
import { DeliveryAddressSelector as
|
|
59
|
-
import { Form as
|
|
60
|
-
import { Textarea as
|
|
61
|
-
import { ContactSection as
|
|
62
|
-
import { TestimonialsSection as
|
|
63
|
-
import { AboutSection as
|
|
64
|
-
import { AdminFloatingButton as
|
|
45
|
+
import { Layout as hr } from "./components/Layout/index.js";
|
|
46
|
+
import { DelayedPlaceholder as gr, DelayedReveal as _r } from "./components/DelayedReveal/index.js";
|
|
47
|
+
import { BookingPeriodProvider as vr, useBookingPeriod as yr } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
48
|
+
import { Label as br } from "./ui/label.js";
|
|
49
|
+
import { BookingStartDateField as xr } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
50
|
+
import { BookingStartTimeField as Sr } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
51
|
+
import { BookingEndDateField as Cr } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
52
|
+
import { BookingEndTimeField as wr } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
53
|
+
import { BookingTimeSlotsStatus as Tr } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
|
|
54
|
+
import { BookingMobileDateDrawer as Er } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
|
|
55
|
+
import { BookingPeriodSelector as Dr } from "./components/BookingPeriodSelector/index.js";
|
|
56
|
+
import { BookingFlowSteps as Or } from "./components/BookingFlowSteps/index.js";
|
|
57
|
+
import { Input as kr } from "./ui/input.js";
|
|
58
|
+
import { DeliveryAddressSelector as Ar } from "./components/DeliveryAddressSelector/index.js";
|
|
59
|
+
import { Form as jr, FormControl as Mr, FormDescription as Nr, FormField as Pr, FormItem as Fr, FormLabel as Ir, FormMessage as Lr, useFormField as Rr } from "./ui/form.js";
|
|
60
|
+
import { Textarea as zr } from "./ui/textarea.js";
|
|
61
|
+
import { ContactSection as Br } from "./components/ContactSection/index.js";
|
|
62
|
+
import { TestimonialsSection as Vr } from "./components/TestimonialsSection/index.js";
|
|
63
|
+
import { AboutSection as Hr } from "./components/AboutSection/index.js";
|
|
64
|
+
import { AdminFloatingButton as Ur } from "./components/AdminFloatingButton/AdminFloatingButton.js";
|
|
65
65
|
import "./components/AdminFloatingButton/index.js";
|
|
66
|
-
import { ItineraryListItem as
|
|
67
|
-
import { ItineraryRouteMap as
|
|
68
|
-
import { ItinerariesSection as
|
|
66
|
+
import { ItineraryListItem as Wr } from "./components/Itineraries/ItineraryListItem.js";
|
|
67
|
+
import { ItineraryRouteMap as Gr } from "./components/Itineraries/ItineraryRouteMap.js";
|
|
68
|
+
import { ItinerariesSection as Kr } from "./components/Itineraries/ItinerariesSection.js";
|
|
69
69
|
import "./components/Itineraries/index.js";
|
|
70
|
-
import { StepSectionTitle as
|
|
71
|
-
import { Card as
|
|
72
|
-
import { ProductWarningNotice as
|
|
73
|
-
import { StorefrontCartPanel as
|
|
74
|
-
import { ProductPriceBadge as
|
|
75
|
-
import { ContractSaleDocument as
|
|
70
|
+
import { StepSectionTitle as qr } from "./components/StepSectionTitle/index.js";
|
|
71
|
+
import { Card as Jr, CardAction as Yr, CardContent as Xr, CardDescription as Zr, CardFooter as Qr, CardHeader as $r, CardTitle as ei } from "./ui/card.js";
|
|
72
|
+
import { ProductWarningNotice as ti } from "./components/ProductWarningNotice/index.js";
|
|
73
|
+
import { StorefrontCartPanel as ni } from "./components/StorefrontCartPanel/index.js";
|
|
74
|
+
import { ProductPriceBadge as ri } from "./components/ProductPriceBadge/index.js";
|
|
75
|
+
import { ContractSaleDocument as ii } from "./components/ContractSaleDocument/Invoice.js";
|
|
76
76
|
import "./components/ContractSaleDocument/index.js";
|
|
77
|
-
import { RadioGroup as
|
|
77
|
+
import { RadioGroup as ai, RadioGroupItem as oi } from "./ui/radio-group.js";
|
|
78
78
|
import "./pages/HomePage.js";
|
|
79
79
|
import "./pages/BookingPage.js";
|
|
80
80
|
import "./pages/ProductPage.js";
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
81
|
+
import si from "./pages/ItinerariesPage.js";
|
|
82
|
+
import ci, { loader as li } from "./pages/ItineraryDetailsPage.js";
|
|
83
|
+
import ui from "./pages/RentalTermsPage.js";
|
|
84
84
|
import "./pages/CheckoutPage.js";
|
|
85
85
|
import "./pages/CheckoutSuccessPage.js";
|
|
86
86
|
import "./pages/NotFoundPage.js";
|
|
87
|
-
import { accessories as
|
|
88
|
-
import
|
|
89
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
90
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
91
|
-
import
|
|
92
|
-
import { loader as
|
|
93
|
-
import { Select as
|
|
94
|
-
export { Ei as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Vr as AboutSection, Hr as AdminFloatingButton, Fe as BOOKING_SEARCH_KEYS, Jn as Badge, Sr as BookingEndDateField, Cr as BookingEndTimeField, Dr as BookingFlowSteps, Tr as BookingMobileDateDrawer, _r as BookingPeriodProvider, Er as BookingPeriodSelector, br as BookingStartDateField, xr as BookingStartTimeField, wr as BookingTimeSlotsStatus, Xn as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, qr as Card, Jr as CardAction, Yr as CardContent, Xr as CardDescription, Zr as CardFooter, Qr as CardHeader, $r as CardTitle, zr as ContactSection, ri as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Di as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, hr as DelayedPlaceholder, gr as DelayedReveal, kr as DeliveryAddressSelector, qn as Footer, Ar as Form, jr as FormControl, Mr as FormDescription, Nr as FormField, Pr as FormItem, Fr as FormLabel, Ir as FormMessage, Oi as GET_CONTRACT_SALE_DOCUMENT_ROUTE, sr as Header, Or as Input, oi as ItinerariesPage, Gr as ItinerariesSection, si as ItineraryDetailsPage, Ur as ItineraryListItem, Wr as ItineraryRouteMap, yr as Label, mr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, dr as PlatformFooter, ur as PoweredByLoczerBadge, ni as ProductPriceBadge, ei as ProductWarningNotice, Pt as ROUTE, ii as RadioGroup, ai as RadioGroupItem, li as RentalTermsPage, En as STOREFRONT_AVAILABILITY_ROUTE, ln as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, _e as STOREFRONT_HERO_MODES, zn as STOREFRONT_IMAGE_ROUTE, Bt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Vt as STOREFRONT_ITINERARIES_LIST_ROUTE, Ht as STOREFRONT_ITINERARY_DETAIL_ROUTE, hn as STOREFRONT_PRODUCTS_ROUTE, Hn as STOREFRONT_TIME_SLOTS_ROUTE, Gi as Select, Ki as SelectContent, qi as SelectGroup, Ji as SelectIcon, Yi as SelectItem, Xi as SelectItemIndicator, Zi as SelectItemText, Qi as SelectLabel, $i as SelectScrollDownButton, ea as SelectScrollUpButton, ta as SelectSeparator, na as SelectTrigger, ra as SelectValue, Kr as StepSectionTitle, ti as StorefrontCartPanel, yt as StorefrontCartProvider, $n as StorefrontContext, Ie as TIME_OPTIONS, Br as TestimonialsSection, Rr as Textarea, pr as WhatsAppFloatingButton, ki as acceptContractSaleDocumentRequestSchema, Ai as acceptContractSaleDocumentResponseSchema, ui as accessories, _ as accessoryProductSchema, Le as applyBookingParamsToSearch, de as assetIdSchema, Yn as badgeVariants, fe as baseAssetSchema, pe as baseAssetStatusSchema, me as baseBookingItemSchema, he as baseBookingSchema, ge as baseBookingStateSchema, v as bikeProductSchema, di as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, Et as buildPriceTierLabels, Dt as buildRentalPriceRows, Dn as buildStorefrontAvailabilityKey, Nt as buildStorefrontCartSummary, Bn as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, on as buildWhatsAppHref, Zn as buttonVariants, Ot as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, kt as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, St as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, ji as contractSaleDocumentAcceptanceInputSchema, fi as contractSaleDocumentAcceptanceLevelSchema, Mi as contractSaleDocumentAcceptanceRecordInputSchema, pi as contractSaleDocumentAcceptanceRecordSchema, mi as contractSaleDocumentAcceptanceSchema, hi as contractSaleDocumentAddressSchema, Ni as contractSaleDocumentApiAcceptanceRecordSchema, Pi as contractSaleDocumentApiAcceptanceSchema, Fi as contractSaleDocumentApiSchema, Ii as contractSaleDocumentApiSignatureSchema, gi as contractSaleDocumentAppendixKindSchema, _i as contractSaleDocumentAppendixSchema, vi as contractSaleDocumentContactSchema, yi as contractSaleDocumentKindSchema, bi as contractSaleDocumentLanguageCodeSchema, xi as contractSaleDocumentLanguageSchema, Si as contractSaleDocumentLineItemSchema, Li as contractSaleDocumentReferenceSchema, Ri as contractSaleDocumentReferenceTypeSchema, Ci as contractSaleDocumentRentalSchema, wi as contractSaleDocumentSchema, zi as contractSaleDocumentSignatureInputSchema, Ti as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Re as createBookingPeriodConfigFromBookingEngineConfiguration, ze as createBookingPeriodConfigFromShopConfiguration, Be as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, On as doesStorefrontAvailabilityDisplaySoldOut, Bi as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ot as findStorefrontProduct, st as findStorefrontProductBySlug, Ct as formatPriceMinor, At as formatRentalUnitQuantity, Lt as formatStorefrontPhoneDisplay, jt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, wt as getAvailabilityVariant, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, ct as getCatalogProductBaseRateMinor, lt as getCatalogProductPaginationSort, ut as getCatalogProductSortFieldForPriceUnit, Vi as getContractSaleDocumentRequestSchema, Hi as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Tt as getMinDayPriceMinor, Mt as getPricingUnitLabel, kn as getStorefrontAvailabilityIssue, An as getStorefrontAvailabilityStatus, dt as getStorefrontBaseDailyRateMinor, ft as getStorefrontCheckoutProductId, pt as getStorefrontProductSelectionDisplayName, mt as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, jn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, ci as itineraryDetailsLoader, Wi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, Ge as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, Mn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, Ft as requestSchema, re as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, bt as resolveStorefrontCartItemProduct, Rt as resolveStorefrontMapsHref, zt as resolveStorefrontPhoneContact, sn as resolveStorefrontWhatsAppContact, cn as resolveStorefrontWhatsAppHref, It as responseSchema, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, Fn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, In as storefrontAvailabilityProductSchema, Nn as storefrontAvailabilityRequestSchema, Pn as storefrontAvailabilityResponseSchema, Ln as storefrontAvailabilityScheduleSchema, Qn as storefrontButtonRadiusClassName, ve as storefrontCheckoutModeSchema, fn as storefrontCheckoutSubmitDeliveryRefinement, dn as storefrontCheckoutSubmitItemSchema, un as storefrontCheckoutSubmitRequestBaseSchema, pn as storefrontCheckoutSubmitRequestSchema, mn as storefrontCheckoutSubmitResponseSchema, ye as storefrontConfigurationSchema, be as storefrontContentSchema, cr as storefrontEn, xe as storefrontFaqItemSchema, Se as storefrontFaqSchema, lr as storefrontFr, Ce as storefrontFulfillmentModeSchema, we as storefrontHeroModeSchema, Vn as storefrontImageRequestSchema, Te as storefrontInformationSchema, Ut as storefrontItinerariesFeaturedRequestSchema, Wt as storefrontItinerariesFeaturedResponseSchema, Gt as storefrontItinerariesListRequestSchema, Kt as storefrontItinerariesListResponseSchema, qt as storefrontItineraryBoundsSchema, Jt as storefrontItineraryCoordinateSchema, Yt as storefrontItineraryDetailRequestSchema, Xt as storefrontItineraryDetailResponseSchema, Zt as storefrontItineraryDetailSchema, Qt as storefrontItineraryDifficultySchema, $t as storefrontItineraryLocalizedStringSchema, en as storefrontItineraryMetricsSchema, tn as storefrontItineraryPreviewSchema, nn as storefrontItineraryStepSchema, rn as storefrontItinerarySummarySchema, an as storefrontItineraryTripTypeSchema, Ee as storefrontLocalizedRichTextSchema, De as storefrontModalMessageSchema, Oe as storefrontModulesSchema, gn as storefrontProductsRequestSchema, _n as storefrontProductsResponseSchema, vn as storefrontPublicAccessoryProductSchema, Rn as storefrontPublicAvailabilityRecordSchema, yn as storefrontPublicBikeAvailabilityStatusSchema, bn as storefrontPublicBikeProductSchema, xn as storefrontPublicProductDisplayModeSchema, Sn as storefrontPublicProductPriceSchema, Cn as storefrontPublicProductVariantAttributeSchema, wn as storefrontPublicProductVariantIdentifierSchema, Tn as storefrontPublicProductVariantSchema, ke as storefrontReviewsModuleSchema, Ae as storefrontRichTextSchema, Ui as storefrontRoutes, je as storefrontSettingsSchema, Me as storefrontShopSchema, Ne as storefrontStatusSchema, Kn as storefrontTimeSlotJourneySchema, Gn as storefrontTimeSlotSchema, Un as storefrontTimeSlotsRequestSchema, Wn as storefrontTimeSlotsResponseSchema, Pe as storefrontWorkspaceSchema, B as timeOfDaySchema, ht as toStorefrontAccessoryProducts, gt as toStorefrontBikeProducts, _t as toStorefrontBookingProducts, vt as toStorefrontBookingProductsCollections, vr as useBookingPeriod, Lr as useFormField, er as useOptionalStorefront, tr as useStorefront, nr as useStorefrontBookingProducts, xt as useStorefrontCart, rr as useStorefrontConfig, ir as useStorefrontItineraries, ar as useStorefrontProducts, or as useStorefrontWorkspaceLanguage, fr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
|
|
87
|
+
import { accessories as di } from "./data/accessories.js";
|
|
88
|
+
import fi from "./data/bikes.js";
|
|
89
|
+
import { contractSaleDocumentAcceptanceLevelSchema as pi, contractSaleDocumentAcceptanceRecordSchema as mi, contractSaleDocumentAcceptanceSchema as hi, contractSaleDocumentAddressSchema as gi, contractSaleDocumentAppendixKindSchema as _i, contractSaleDocumentAppendixSchema as vi, contractSaleDocumentContactSchema as yi, contractSaleDocumentKindSchema as bi, contractSaleDocumentLanguageCodeSchema as xi, contractSaleDocumentLanguageSchema as Si, contractSaleDocumentLineItemSchema as Ci, contractSaleDocumentRentalSchema as wi, contractSaleDocumentSchema as Ti, contractSaleDocumentSignatureSchema as Ei } from "./lib/contractSaleDocument.js";
|
|
90
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Di, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Oi, GET_CONTRACT_SALE_DOCUMENT_ROUTE as ki, acceptContractSaleDocumentRequestSchema as Ai, acceptContractSaleDocumentResponseSchema as ji, contractSaleDocumentAcceptanceInputSchema as Mi, contractSaleDocumentAcceptanceRecordInputSchema as Ni, contractSaleDocumentApiAcceptanceRecordSchema as Pi, contractSaleDocumentApiAcceptanceSchema as Fi, contractSaleDocumentApiSchema as Ii, contractSaleDocumentApiSignatureSchema as Li, contractSaleDocumentReferenceSchema as Ri, contractSaleDocumentReferenceTypeSchema as zi, contractSaleDocumentSignatureInputSchema as Bi, downloadContractSaleDocumentPdfRequestSchema as Vi, getContractSaleDocumentRequestSchema as Hi, getContractSaleDocumentResponseSchema as Ui } from "./lib/contractSaleDocumentApi.js";
|
|
91
|
+
import Wi from "./routes.js";
|
|
92
|
+
import { loader as Gi } from "./StorefrontProvider.js";
|
|
93
|
+
import { Select as Ki, SelectContent as qi, SelectGroup as Ji, SelectIcon as Yi, SelectItem as Xi, SelectItemIndicator as Zi, SelectItemText as Qi, SelectLabel as $i, SelectScrollDownButton as ea, SelectScrollUpButton as ta, SelectSeparator as na, SelectTrigger as ra, SelectValue as ia } from "./ui/select.js";
|
|
94
|
+
export { Di as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Hr as AboutSection, Ur as AdminFloatingButton, Fe as BOOKING_SEARCH_KEYS, Yn as Badge, Cr as BookingEndDateField, wr as BookingEndTimeField, Or as BookingFlowSteps, Er as BookingMobileDateDrawer, vr as BookingPeriodProvider, Dr as BookingPeriodSelector, xr as BookingStartDateField, Sr as BookingStartTimeField, Tr as BookingTimeSlotsStatus, Zn as Button, et as CATALOG_PRODUCT_BASE_RATE_UNSET, Jr as Card, Yr as CardAction, Xr as CardContent, Zr as CardDescription, Qr as CardFooter, $r as CardHeader, ei as CardTitle, Br as ContactSection, ii as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Oi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, gr as DelayedPlaceholder, _r as DelayedReveal, Ar as DeliveryAddressSelector, Jn as Footer, jr as Form, Mr as FormControl, Nr as FormDescription, Pr as FormField, Fr as FormItem, Ir as FormLabel, Lr as FormMessage, ki as GET_CONTRACT_SALE_DOCUMENT_ROUTE, cr as Header, kr as Input, si as ItinerariesPage, Kr as ItinerariesSection, ci as ItineraryDetailsPage, Wr as ItineraryListItem, Gr as ItineraryRouteMap, br as Label, hr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, fr as PlatformFooter, dr as PoweredByLoczerBadge, ri as ProductPriceBadge, ti as ProductWarningNotice, Ft as ROUTE, ai as RadioGroup, oi as RadioGroupItem, ui as RentalTermsPage, Dn as STOREFRONT_AVAILABILITY_ROUTE, un as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, _e as STOREFRONT_HERO_MODES, Bn as STOREFRONT_IMAGE_ROUTE, Vt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Ht as STOREFRONT_ITINERARIES_LIST_ROUTE, Ut as STOREFRONT_ITINERARY_DETAIL_ROUTE, gn as STOREFRONT_PRODUCTS_ROUTE, Un as STOREFRONT_TIME_SLOTS_ROUTE, Ki as Select, qi as SelectContent, Ji as SelectGroup, Yi as SelectIcon, Xi as SelectItem, Zi as SelectItemIndicator, Qi as SelectItemText, $i as SelectLabel, ea as SelectScrollDownButton, ta as SelectScrollUpButton, na as SelectSeparator, ra as SelectTrigger, ia as SelectValue, qr as StepSectionTitle, ni as StorefrontCartPanel, bt as StorefrontCartProvider, er as StorefrontContext, Ie as TIME_OPTIONS, Vr as TestimonialsSection, zr as Textarea, mr as WhatsAppFloatingButton, Ai as acceptContractSaleDocumentRequestSchema, ji as acceptContractSaleDocumentResponseSchema, di as accessories, _ as accessoryProductSchema, Le as applyBookingParamsToSearch, de as assetIdSchema, Xn as badgeVariants, fe as baseAssetSchema, pe as baseAssetStatusSchema, me as baseBookingItemSchema, he as baseBookingSchema, ge as baseBookingStateSchema, v as bikeProductSchema, fi as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, Dt as buildPriceTierLabels, Ot as buildRentalPriceRows, On as buildStorefrontAvailabilityKey, Pt as buildStorefrontCartSummary, Vn as buildStorefrontImageUrl, tt as buildStorefrontProductSlug, nt as buildVariantStorefrontProductId, sn as buildWhatsAppHref, Qn as buttonVariants, kt as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, At as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, Ct as cn, rt as compareCatalogProducts, it as compareStorefrontAccessoryProducts, at as compareStorefrontBikeProducts, Mi as contractSaleDocumentAcceptanceInputSchema, pi as contractSaleDocumentAcceptanceLevelSchema, Ni as contractSaleDocumentAcceptanceRecordInputSchema, mi as contractSaleDocumentAcceptanceRecordSchema, hi as contractSaleDocumentAcceptanceSchema, gi as contractSaleDocumentAddressSchema, Pi as contractSaleDocumentApiAcceptanceRecordSchema, Fi as contractSaleDocumentApiAcceptanceSchema, Ii as contractSaleDocumentApiSchema, Li as contractSaleDocumentApiSignatureSchema, _i as contractSaleDocumentAppendixKindSchema, vi as contractSaleDocumentAppendixSchema, yi as contractSaleDocumentContactSchema, bi as contractSaleDocumentKindSchema, xi as contractSaleDocumentLanguageCodeSchema, Si as contractSaleDocumentLanguageSchema, Ci as contractSaleDocumentLineItemSchema, Ri as contractSaleDocumentReferenceSchema, zi as contractSaleDocumentReferenceTypeSchema, wi as contractSaleDocumentRentalSchema, Ti as contractSaleDocumentSchema, Bi as contractSaleDocumentSignatureInputSchema, Ei as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Re as createBookingPeriodConfigFromBookingEngineConfiguration, ze as createBookingPeriodConfigFromShopConfiguration, Be as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, kn as doesStorefrontAvailabilityDisplaySoldOut, Vi as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ot as findStorefrontInsurancePricingBike, st as findStorefrontProduct, ct as findStorefrontProductBySlug, wt as formatPriceMinor, jt as formatRentalUnitQuantity, Rt as formatStorefrontPhoneDisplay, Mt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, Tt as getAvailabilityVariant, Ve as getBookingParamsFromSearch, He as getBookingSessionStorageKey, lt as getCatalogProductBaseRateMinor, ut as getCatalogProductPaginationSort, dt as getCatalogProductSortFieldForPriceUnit, Hi as getContractSaleDocumentRequestSchema, Ui as getContractSaleDocumentResponseSchema, Ue as getDefaultBookingParams, We as getDefaultBookingParamsForStorefrontConfiguration, Qe as getLocalizedEntry, t as getLocalizedStringValue, $e as getLocalizedValue, Et as getMinDayPriceMinor, Nt as getPricingUnitLabel, An as getStorefrontAvailabilityIssue, jn as getStorefrontAvailabilityStatus, ft as getStorefrontBaseDailyRateMinor, pt as getStorefrontCheckoutProductId, mt as getStorefrontProductSelectionDisplayName, ht as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Mn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, li as itineraryDetailsLoader, Gi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, Ge as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, Nn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Ke as readBookingSearchParamsFromSessionStorage, qe as readBookingSearchParamsFromStorage, It as requestSchema, re as resolveBookingDeliveryOption, Je as resolveBookingSearchParams, Ye as resolveBookingSearchParamsFromSessionStorage, xt as resolveStorefrontCartItemProduct, zt as resolveStorefrontMapsHref, Bt as resolveStorefrontPhoneContact, cn as resolveStorefrontWhatsAppContact, ln as resolveStorefrontWhatsAppHref, Lt as responseSchema, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, In as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Ln as storefrontAvailabilityProductSchema, Pn as storefrontAvailabilityRequestSchema, Fn as storefrontAvailabilityResponseSchema, Rn as storefrontAvailabilityScheduleSchema, $n as storefrontButtonRadiusClassName, ve as storefrontCheckoutModeSchema, pn as storefrontCheckoutSubmitDeliveryRefinement, fn as storefrontCheckoutSubmitItemSchema, dn as storefrontCheckoutSubmitRequestBaseSchema, mn as storefrontCheckoutSubmitRequestSchema, hn as storefrontCheckoutSubmitResponseSchema, ye as storefrontConfigurationSchema, be as storefrontContentSchema, lr as storefrontEn, xe as storefrontFaqItemSchema, Se as storefrontFaqSchema, ur as storefrontFr, Ce as storefrontFulfillmentModeSchema, we as storefrontHeroModeSchema, Hn as storefrontImageRequestSchema, Te as storefrontInformationSchema, Wt as storefrontItinerariesFeaturedRequestSchema, Gt as storefrontItinerariesFeaturedResponseSchema, Kt as storefrontItinerariesListRequestSchema, qt as storefrontItinerariesListResponseSchema, Jt as storefrontItineraryBoundsSchema, Yt as storefrontItineraryCoordinateSchema, Xt as storefrontItineraryDetailRequestSchema, Zt as storefrontItineraryDetailResponseSchema, Qt as storefrontItineraryDetailSchema, $t as storefrontItineraryDifficultySchema, en as storefrontItineraryLocalizedStringSchema, tn as storefrontItineraryMetricsSchema, nn as storefrontItineraryPreviewSchema, rn as storefrontItineraryStepSchema, an as storefrontItinerarySummarySchema, on as storefrontItineraryTripTypeSchema, Ee as storefrontLocalizedRichTextSchema, De as storefrontModalMessageSchema, Oe as storefrontModulesSchema, _n as storefrontProductsRequestSchema, vn as storefrontProductsResponseSchema, yn as storefrontPublicAccessoryProductSchema, zn as storefrontPublicAvailabilityRecordSchema, bn as storefrontPublicBikeAvailabilityStatusSchema, xn as storefrontPublicBikeProductSchema, Sn as storefrontPublicProductDisplayModeSchema, Cn as storefrontPublicProductPriceSchema, wn as storefrontPublicProductVariantAttributeSchema, Tn as storefrontPublicProductVariantIdentifierSchema, En as storefrontPublicProductVariantSchema, ke as storefrontReviewsModuleSchema, Ae as storefrontRichTextSchema, Wi as storefrontRoutes, je as storefrontSettingsSchema, Me as storefrontShopSchema, Ne as storefrontStatusSchema, qn as storefrontTimeSlotJourneySchema, Kn as storefrontTimeSlotSchema, Wn as storefrontTimeSlotsRequestSchema, Gn as storefrontTimeSlotsResponseSchema, Pe as storefrontWorkspaceSchema, B as timeOfDaySchema, gt as toStorefrontAccessoryProducts, _t as toStorefrontBikeProducts, vt as toStorefrontBookingProducts, yt as toStorefrontBookingProductsCollections, yr as useBookingPeriod, Rr as useFormField, tr as useOptionalStorefront, nr as useStorefront, rr as useStorefrontBookingProducts, St as useStorefrontCart, ir as useStorefrontConfig, ar as useStorefrontItineraries, or as useStorefrontProducts, sr as useStorefrontWorkspaceLanguage, pr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Xe as writeBookingSearchParamsToSessionStorage, Ze as writeBookingSearchParamsToStorage };
|
|
@@ -2,13 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const ROUTE = "/api/public/storefront/checkout/payment-decision";
|
|
3
3
|
export declare const paymentDecisionModeSchema: z.ZodEnum<{
|
|
4
4
|
none: "none";
|
|
5
|
-
deposit: "deposit";
|
|
6
5
|
full: "full";
|
|
6
|
+
deposit: "deposit";
|
|
7
7
|
}>;
|
|
8
8
|
export type PaymentDecisionMode = z.infer<typeof paymentDecisionModeSchema>;
|
|
9
|
-
export declare const MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE = "online_payment_provider_missing";
|
|
10
|
-
export declare const checkoutPaymentErrorCodeSchema: z.ZodLiteral<"online_payment_provider_missing">;
|
|
11
|
-
export type CheckoutPaymentErrorCode = z.infer<typeof checkoutPaymentErrorCodeSchema>;
|
|
12
9
|
export declare const requestSchema: z.ZodObject<{
|
|
13
10
|
storeSlug: z.ZodString;
|
|
14
11
|
schedule: z.ZodObject<{
|
|
@@ -24,13 +21,12 @@ export type RequestPayload = z.infer<typeof requestSchema>;
|
|
|
24
21
|
export declare const responseSchema: z.ZodObject<{
|
|
25
22
|
success: z.ZodBoolean;
|
|
26
23
|
message: z.ZodOptional<z.ZodString>;
|
|
27
|
-
errorCode: z.ZodOptional<z.ZodLiteral<"online_payment_provider_missing">>;
|
|
28
24
|
decision: z.ZodOptional<z.ZodObject<{
|
|
29
25
|
shouldCollectOnlinePayment: z.ZodBoolean;
|
|
30
26
|
paymentMode: z.ZodEnum<{
|
|
31
27
|
none: "none";
|
|
32
|
-
deposit: "deposit";
|
|
33
28
|
full: "full";
|
|
29
|
+
deposit: "deposit";
|
|
34
30
|
}>;
|
|
35
31
|
calculatedAmountMinor: z.ZodNumber;
|
|
36
32
|
amountToCollectMinor: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutPaymentDecision.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutPaymentDecision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,KAAK,qDAAqD,CAAA;AAEvE,eAAO,MAAM,yBAAyB;;;;EAAsC,CAAA;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"checkoutPaymentDecision.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutPaymentDecision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,KAAK,qDAAqD,CAAA;AAEvE,eAAO,MAAM,yBAAyB;;;;EAAsC,CAAA;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E,eAAO,MAAM,aAAa;;;;;;;;;;iBAYxB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBzB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -4,7 +4,7 @@ var t = "/api/public/storefront/checkout/payment-decision", n = e.enum([
|
|
|
4
4
|
"none",
|
|
5
5
|
"deposit",
|
|
6
6
|
"full"
|
|
7
|
-
]), r =
|
|
7
|
+
]), r = e.object({
|
|
8
8
|
storeSlug: e.string().trim().min(1).toLowerCase(),
|
|
9
9
|
schedule: e.object({
|
|
10
10
|
startDate: e.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
@@ -14,10 +14,9 @@ var t = "/api/public/storefront/checkout/payment-decision", n = e.enum([
|
|
|
14
14
|
}),
|
|
15
15
|
estimatedTotalMinor: e.number().int().min(0),
|
|
16
16
|
nowIso: e.string().datetime({ offset: !0 }).optional()
|
|
17
|
-
}),
|
|
17
|
+
}), i = e.object({
|
|
18
18
|
success: e.boolean(),
|
|
19
19
|
message: e.string().optional(),
|
|
20
|
-
errorCode: i.optional(),
|
|
21
20
|
decision: e.object({
|
|
22
21
|
shouldCollectOnlinePayment: e.boolean(),
|
|
23
22
|
paymentMode: n,
|
|
@@ -38,4 +37,4 @@ var t = "/api/public/storefront/checkout/payment-decision", n = e.enum([
|
|
|
38
37
|
}).optional()
|
|
39
38
|
});
|
|
40
39
|
//#endregion
|
|
41
|
-
export {
|
|
40
|
+
export { t as ROUTE, n as paymentDecisionModeSchema, r as requestSchema, i as responseSchema };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE } from './checkoutPaymentDecision';
|
|
3
|
-
export { MISSING_ONLINE_PAYMENT_PROVIDER_ERROR_CODE };
|
|
4
2
|
export declare const ROUTE = "/api/public/storefront/checkout/submit";
|
|
5
3
|
export declare const requestCheckoutItemSchema: z.ZodObject<{
|
|
6
4
|
kind: any;
|
|
@@ -87,7 +85,6 @@ export type RequestPayload = z.infer<typeof requestSchema>;
|
|
|
87
85
|
export declare const responseSchema: z.ZodObject<{
|
|
88
86
|
success: z.ZodBoolean;
|
|
89
87
|
message: z.ZodOptional<z.ZodString>;
|
|
90
|
-
errorCode: z.ZodOptional<z.ZodLiteral<"online_payment_provider_missing">>;
|
|
91
88
|
checkout: z.ZodOptional<z.ZodObject<{
|
|
92
89
|
bookingExternalId: z.ZodString;
|
|
93
90
|
saleId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutSubmit.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutSubmit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"checkoutSubmit.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutSubmit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAUvB,eAAO,MAAM,KAAK,2CAA2C,CAAA;AAE7D,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAI3E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+B5B,CAAA;AAEF,eAAO,MAAM,yBAAyB,GACpC,SAAS;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EACxD,KAAK,CAAC,CAAC,aAAa,SAWrB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBxB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;iBAazB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
|