@loczer/storefront-sdk 0.238.0 → 0.239.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/pkg/booking-engine/dist/models/{LocalizedString-D_TRgAdr.js → LocalizedString-JmOX62C3.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-CWP_qule.js → Product.shared-C_HehlKK.js} +3 -3
- package/dist/chunks/pkg/booking-engine/dist/models/types-ynW5hdp8.js +8 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-BhIOL2rP.js → base-asset-CFAxfmRW.js} +3 -3
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-BJXFzDM5.js → base-booking-CZOR9kya.js} +13 -12
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-product-QYQBl0fQ.js +4 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/{booking-engine-configuration-LnrhShqm.js → booking-engine-configuration-CxKlxKCo.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js +13 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-3lBblkB0.js → cart-inputs-D1KobIdr.js} +4 -4
- package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-DXc34Bzy.js → insurance-B-Vmdlxo.js} +3 -3
- package/dist/chunks/pkg/booking-engine/dist/schemas/{product-id--yyUTH1Y.js → product-id-ChdStzgp.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{public-booking-engine-configuration-CEM9mexX.js → public-booking-engine-configuration-BwWn9aK0.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js +17 -0
- package/dist/components/Footer/businessHoursStatus.js +1 -1
- package/dist/index.d.ts +21 -0
- package/dist/index.js +87 -86
- package/dist/lib/booking-period.js +1 -1
- package/dist/lib/booking.js +2 -2
- package/dist/lib/checkoutSubmit.d.ts.map +1 -1
- package/dist/lib/checkoutSubmit.js +45 -44
- package/dist/storefrontSchemas.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/pkg/booking-engine/dist/models/types-rIp4ReXN.js +0 -8
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-product-Bde9lJQD.js +0 -4
- package/dist/chunks/pkg/booking-engine/dist/schemas-JjiUWFIv.js +0 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nonEmptyKeySchema as e } from "./types-
|
|
1
|
+
import { nonEmptyKeySchema as e } from "./types-ynW5hdp8.js";
|
|
2
2
|
import { z as t } from "zod";
|
|
3
3
|
//#region ../booking-engine/dist/models/LocalizedString.js
|
|
4
4
|
var n = /^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/, r = /* @__PURE__ */ new Date("2025-01-01T00:00:00.000Z"), i = t.object({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { identifierSchema as e, isoDateTimeSchema as t } from "./types-
|
|
2
|
-
import { localizedStringArraySchema as n, localizedStringSchema as r } from "./LocalizedString-
|
|
1
|
+
import { identifierSchema as e, isoDateTimeSchema as t } from "./types-ynW5hdp8.js";
|
|
2
|
+
import { localizedStringArraySchema as n, localizedStringSchema as r } from "./LocalizedString-JmOX62C3.js";
|
|
3
3
|
import { moneyMinorSchema as i } from "../schemas/money-CVoCY4of.js";
|
|
4
4
|
import { priceSchema as a } from "./Price-DCAgqkKh.js";
|
|
5
|
-
import { productIdSchema as o } from "../schemas/product-id
|
|
5
|
+
import { productIdSchema as o } from "../schemas/product-id-ChdStzgp.js";
|
|
6
6
|
import { z as s } from "zod";
|
|
7
7
|
//#region ../booking-engine/dist/models/Product.shared.js
|
|
8
8
|
var c = s.enum([
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
//#region ../booking-engine/dist/models/types.js
|
|
3
|
+
var t = e.string().min(1, "Identifier cannot be empty"), n = e.string().regex(/^[a-fA-F0-9]{24}$/, "Identifier must be a MongoDB ObjectId"), r = e.string().min(1, "Record key cannot be empty"), i = e.string().datetime({
|
|
4
|
+
offset: !0,
|
|
5
|
+
message: "Value must be an ISO-8601 timestamp"
|
|
6
|
+
}), a = e.record(r, e.union([e.boolean(), e.number()]));
|
|
7
|
+
//#endregion
|
|
8
|
+
export { a as booleanNumberRecordSchema, t as identifierSchema, i as isoDateTimeSchema, r as nonEmptyKeySchema, n as objectIdStringSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { booleanNumberRecordSchema as e, identifierSchema as t, isoDateTimeSchema as n, objectIdStringSchema as r } from "../models/types-
|
|
2
|
-
import { productIdSchema as i } from "./product-id
|
|
3
|
-
import { productVariantIdentifierSchema as a } from "../models/Product.shared-
|
|
1
|
+
import { booleanNumberRecordSchema as e, identifierSchema as t, isoDateTimeSchema as n, objectIdStringSchema as r } from "../models/types-ynW5hdp8.js";
|
|
2
|
+
import { productIdSchema as i } from "./product-id-ChdStzgp.js";
|
|
3
|
+
import { productVariantIdentifierSchema as a } from "../models/Product.shared-C_HehlKK.js";
|
|
4
4
|
import { z as o } from "zod";
|
|
5
5
|
//#region ../booking-engine/dist/schemas/base-asset.js
|
|
6
6
|
var s = o.enum([
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { identifierSchema as e, isoDateTimeSchema as t, objectIdStringSchema as n
|
|
2
|
-
import { moneyMinorSchema as
|
|
3
|
-
import { productIdSchema as
|
|
4
|
-
import { productKindSchema as
|
|
1
|
+
import { identifierSchema as e, isoDateTimeSchema as t, objectIdStringSchema as n } from "../models/types-ynW5hdp8.js";
|
|
2
|
+
import { moneyMinorSchema as r } from "./money-CVoCY4of.js";
|
|
3
|
+
import { productIdSchema as i } from "./product-id-ChdStzgp.js";
|
|
4
|
+
import { productKindSchema as a } from "../models/Product.shared-C_HehlKK.js";
|
|
5
|
+
import { bookingReferenceSchema as o } from "./booking-reference-DLKcpIa4.js";
|
|
5
6
|
import { richTextSchema as s } from "./rich-text-DTRh7U3z.js";
|
|
6
|
-
import { cancellationPolicySchema as c } from "./booking-engine-configuration-
|
|
7
|
-
import { bookingInsuranceSnapshotSchema as l } from "./insurance-
|
|
7
|
+
import { cancellationPolicySchema as c } from "./booking-engine-configuration-CxKlxKCo.js";
|
|
8
|
+
import { bookingInsuranceSnapshotSchema as l } from "./insurance-B-Vmdlxo.js";
|
|
8
9
|
import { z as u } from "zod";
|
|
9
10
|
//#region ../booking-engine/dist/schemas/base-booking.js
|
|
10
11
|
var d = u.enum([
|
|
@@ -17,8 +18,8 @@ var d = u.enum([
|
|
|
17
18
|
"expired"
|
|
18
19
|
]), f = u.object({
|
|
19
20
|
_id: e,
|
|
20
|
-
productId:
|
|
21
|
-
kind:
|
|
21
|
+
productId: i,
|
|
22
|
+
kind: a,
|
|
22
23
|
qty: u.number().int().positive(),
|
|
23
24
|
productVariantId: e.optional()
|
|
24
25
|
}), p = u.object({
|
|
@@ -40,7 +41,7 @@ var d = u.enum([
|
|
|
40
41
|
message: s.optional()
|
|
41
42
|
}), m = u.object({
|
|
42
43
|
_id: n,
|
|
43
|
-
externalId:
|
|
44
|
+
externalId: o,
|
|
44
45
|
state: d,
|
|
45
46
|
shopId: e,
|
|
46
47
|
customer: p,
|
|
@@ -52,12 +53,12 @@ var d = u.enum([
|
|
|
52
53
|
items: u.array(f),
|
|
53
54
|
couponCode: u.string().min(1).optional(),
|
|
54
55
|
couponDiscountRate: u.number().min(0).max(1).optional(),
|
|
55
|
-
couponDiscountAmountUnits:
|
|
56
|
+
couponDiscountAmountUnits: r.optional(),
|
|
56
57
|
couponAutoApplied: u.boolean().optional(),
|
|
57
58
|
couponPriceRuleId: e.optional(),
|
|
58
|
-
lateReturnSurchargeUnits:
|
|
59
|
+
lateReturnSurchargeUnits: r.optional(),
|
|
59
60
|
insurance: l.optional(),
|
|
60
|
-
totalPriceUnits:
|
|
61
|
+
totalPriceUnits: r.optional(),
|
|
61
62
|
cancellationPolicySnapshot: c.optional(),
|
|
62
63
|
cancellationPolicyOverride: c.optional(),
|
|
63
64
|
createdAt: t,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { localizedStringSchema as e } from "../models/LocalizedString-
|
|
1
|
+
import { localizedStringSchema as e } from "../models/LocalizedString-JmOX62C3.js";
|
|
2
2
|
import { currencyCodeSchema as t } from "./money-CVoCY4of.js";
|
|
3
3
|
import { priceUnitSchema as n } from "../models/Price-DCAgqkKh.js";
|
|
4
4
|
import { shopConfigurationSchema as r } from "./shop-opening-hours-BlLD1gfz.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
//#region ../booking-engine/dist/schemas/booking-reference.js
|
|
3
|
+
var t = 4, n = /^[0-9]{2}(?:0[1-9]|1[0-2])$/, r = /^[0-9A-HJKMNP-TV-Z]{3}-[0-9]{2}(?:0[1-9]|1[0-2])-(?!0+$)[0-9]{4,}$/, i = e.string().regex(n, "Booking reference period must use the YYMM format."), a = e.string().trim().regex(r, "Booking reference must use the PREFIX-YYMM-NNNN format.");
|
|
4
|
+
function o(e) {
|
|
5
|
+
let t = String(e.startYear % 100).padStart(2, "0"), n = String(e.startMonth).padStart(2, "0");
|
|
6
|
+
return i.parse(`${t}${n}`);
|
|
7
|
+
}
|
|
8
|
+
function s(e) {
|
|
9
|
+
let t = e.workspaceTrackingPrefix.trim().toUpperCase(), n = i.parse(e.startYearMonth), r = String(e.sequenceValue).padStart(4, "0");
|
|
10
|
+
return a.parse(`${t}-${n}-${r}`);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as BOOKING_REFERENCE_COUNTER_MIN_DIGITS, r as BOOKING_REFERENCE_REGEX, n as BOOKING_REFERENCE_YEAR_MONTH_REGEX, a as bookingReferenceSchema, i as bookingReferenceYearMonthSchema, s as formatBookingReference, o as formatBookingReferenceYearMonth };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { identifierSchema as e } from "../models/types-
|
|
1
|
+
import { identifierSchema as e } from "../models/types-ynW5hdp8.js";
|
|
2
2
|
import { moneyMinorSchema as t } from "./money-CVoCY4of.js";
|
|
3
|
-
import { productIdSchema as n } from "./product-id
|
|
4
|
-
import "../models/Product.shared-
|
|
3
|
+
import { productIdSchema as n } from "./product-id-ChdStzgp.js";
|
|
4
|
+
import "../models/Product.shared-C_HehlKK.js";
|
|
5
5
|
import { richTextSchema as r } from "./rich-text-DTRh7U3z.js";
|
|
6
6
|
import { isoDateSchema as i, timeOfDaySchema as a } from "./shop-opening-hours-BlLD1gfz.js";
|
|
7
|
-
import { fulfillmentModeSchema as o } from "./public-booking-engine-configuration-
|
|
7
|
+
import { fulfillmentModeSchema as o } from "./public-booking-engine-configuration-BwWn9aK0.js";
|
|
8
8
|
import { z as s } from "zod";
|
|
9
9
|
//#region ../booking-engine/dist/schemas/cart-inputs.js
|
|
10
10
|
var c = s.object({
|
package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-DXc34Bzy.js → insurance-B-Vmdlxo.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { identifierSchema as e, isoDateTimeSchema as t } from "../models/types-
|
|
1
|
+
import { identifierSchema as e, isoDateTimeSchema as t } from "../models/types-ynW5hdp8.js";
|
|
2
2
|
import { moneyMinorSchema as n } from "./money-CVoCY4of.js";
|
|
3
|
-
import { productIdSchema as r } from "./product-id
|
|
4
|
-
import { productKindSchema as i } from "../models/Product.shared-
|
|
3
|
+
import { productIdSchema as r } from "./product-id-ChdStzgp.js";
|
|
4
|
+
import { productKindSchema as i } from "../models/Product.shared-C_HehlKK.js";
|
|
5
5
|
import { z as a } from "zod";
|
|
6
6
|
//#region ../booking-engine/dist/schemas/insurance.js
|
|
7
7
|
var o = a.enum(["sharelock", "morio"]), s = a.enum(["storefront", "staff"]), c = a.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { timeOfDaySchema as e } from "./shop-opening-hours-BlLD1gfz.js";
|
|
2
|
-
import { bookingEngineConfigurationSchema as t, checkoutConfigurationSchema as n } from "./booking-engine-configuration-
|
|
2
|
+
import { bookingEngineConfigurationSchema as t, checkoutConfigurationSchema as n } from "./booking-engine-configuration-CxKlxKCo.js";
|
|
3
3
|
import { z as r } from "zod";
|
|
4
4
|
//#region ../booking-engine/dist/schemas/public-booking-engine-configuration.js
|
|
5
5
|
var i = r.enum(["pickup", "delivery"]), a = r.object({
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./models/LocalizedString-JmOX62C3.js";
|
|
2
|
+
import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./schemas/money-CVoCY4of.js";
|
|
3
|
+
import { priceSchema as d, priceUnitSchema as f } from "./models/Price-DCAgqkKh.js";
|
|
4
|
+
import { productIdSchema as p } from "./schemas/product-id-ChdStzgp.js";
|
|
5
|
+
import { DEFAULT_PRODUCT_KIND as m, PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as h, PRODUCT_VARIANT_CODE_MAX_LENGTH as g, accessoryProductSchema as _, bikeProductSchema as v, eBikeProductSchema as y, isProductVariantCodeIdentifierKind as b, productInsuranceSchema as x, productKindSchema as S, productSchema as C, productStorefrontDisplayModeSchema as w, productVariantAttributeSchema as T, productVariantCodeSchema as E, productVariantIdentifierSchema as D, productVariantSchema as O } from "./models/Product.shared-C_HehlKK.js";
|
|
6
|
+
import { BOOKING_REFERENCE_COUNTER_MIN_DIGITS as k, BOOKING_REFERENCE_REGEX as A, BOOKING_REFERENCE_YEAR_MONTH_REGEX as j, bookingReferenceSchema as M, bookingReferenceYearMonthSchema as N, formatBookingReference as P, formatBookingReferenceYearMonth as F } from "./schemas/booking-reference-DLKcpIa4.js";
|
|
7
|
+
import { richTextJsonDocSchema as I, richTextSchema as L, richTextVersionSchema as R } from "./schemas/rich-text-DTRh7U3z.js";
|
|
8
|
+
import { isoDateSchema as z, shopConfigurationSchema as B, shopExtraTimeSlotRuleSchema as V, shopOpeningDayIndexSchema as H, shopOpeningDaySchema as U, shopOpeningHoursOverrideSchema as W, shopOpeningHoursPeriodSchema as G, shopOpeningSlotSchema as K, timeOfDaySchema as q } from "./schemas/shop-opening-hours-BlLD1gfz.js";
|
|
9
|
+
import { DEFAULT_CANCELLATION_POLICY as J, DEFAULT_PAYMENT_POLICIES as Y, cancellationPolicySchema as X, cancellationPolicyTierSchema as Z, paymentPoliciesSchema as Q } from "./schemas/booking-engine-configuration-CxKlxKCo.js";
|
|
10
|
+
import { fulfillmentModeSchema as $, publicBookingEngineConfigurationSchema as ee, publicCheckoutConfigurationSchema as te, publicCheckoutDynamicOptionsSchema as ne } from "./schemas/public-booking-engine-configuration-BwWn9aK0.js";
|
|
11
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as re, bookingCustomerInputSchema as ie, bookingDeliveryOptionSchema as ae, bookingScheduleInputSchema as oe, cartItemInputSchema as se, createBookingInputBaseSchema as ce, createBookingInputSchema as le, resolveBookingDeliveryOption as ue, validateBookingDeliveryAddress as de } from "./schemas/cart-inputs-D1KobIdr.js";
|
|
12
|
+
import { bookingInsuranceConsentSourceSchema as fe, bookingInsuranceItemSnapshotSchema as pe, bookingInsuranceSnapshotSchema as me, buildBookingInsuranceSnapshot as he, calculateInsuranceCalendarDays as ge, insuranceProviderSchema as _e } from "./schemas/insurance-B-Vmdlxo.js";
|
|
13
|
+
import { resolveOpeningHoursForDate as ve, resolveOpeningHoursPeriodForDate as ye } from "./utils/opening-hours-period-TCyLhzZw.js";
|
|
14
|
+
import "./schemas/base-product-QYQBl0fQ.js";
|
|
15
|
+
import { assetIdSchema as be, baseAssetSchema as xe, baseAssetStatusSchema as Se } from "./schemas/base-asset-CFAxfmRW.js";
|
|
16
|
+
import { baseBookingItemSchema as Ce, baseBookingSchema as we, baseBookingStateSchema as Te } from "./schemas/base-booking-CZOR9kya.js";
|
|
17
|
+
export { k as BOOKING_REFERENCE_COUNTER_MIN_DIGITS, A as BOOKING_REFERENCE_REGEX, j as BOOKING_REFERENCE_YEAR_MONTH_REGEX, re as DEFAULT_BOOKING_DELIVERY_OPTION, J as DEFAULT_CANCELLATION_POLICY, Y as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, _ as accessoryProductSchema, be as assetIdSchema, xe as baseAssetSchema, Se as baseAssetStatusSchema, Ce as baseBookingItemSchema, we as baseBookingSchema, Te as baseBookingStateSchema, v as bikeProductSchema, ie as bookingCustomerInputSchema, ae as bookingDeliveryOptionSchema, fe as bookingInsuranceConsentSourceSchema, pe as bookingInsuranceItemSnapshotSchema, me as bookingInsuranceSnapshotSchema, M as bookingReferenceSchema, N as bookingReferenceYearMonthSchema, oe as bookingScheduleInputSchema, he as buildBookingInsuranceSnapshot, ge as calculateInsuranceCalendarDays, X as cancellationPolicySchema, Z as cancellationPolicyTierSchema, se as cartItemInputSchema, ce as createBookingInputBaseSchema, le as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, y as eBikeProductSchema, P as formatBookingReference, F as formatBookingReferenceYearMonth, $ as fulfillmentModeSchema, t as getLocalizedStringValue, _e as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, z as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, Q as paymentPoliciesSchema, 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, ee as publicBookingEngineConfigurationSchema, te as publicCheckoutConfigurationSchema, ne as publicCheckoutDynamicOptionsSchema, ue as resolveBookingDeliveryOption, ve as resolveOpeningHoursForDate, ye as resolveOpeningHoursPeriodForDate, I as richTextJsonDocSchema, L as richTextSchema, R as richTextVersionSchema, B as shopConfigurationSchema, V as shopExtraTimeSlotRuleSchema, H as shopOpeningDayIndexSchema, U as shopOpeningDaySchema, W as shopOpeningHoursOverrideSchema, G as shopOpeningHoursPeriodSchema, K as shopOpeningSlotSchema, u as signedMoneyMinorSchema, q as timeOfDaySchema, de as validateBookingDeliveryAddress };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveOpeningHoursForDate as e } from "../../chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
|
|
2
|
-
import "../../chunks/pkg/booking-engine/dist/schemas-
|
|
2
|
+
import "../../chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
|
|
3
3
|
import { businessDateStringToDate as t, calendarDateToBusinessDateString as n, instantToBusinessDateTimeParts as r, normalizeBusinessDateString as i, parseTimeToMinutes as a } from "../../lib/booking-period.js";
|
|
4
4
|
//#region src/components/Footer/businessHoursStatus.ts
|
|
5
5
|
var o = 370, s = (e, r) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -623,6 +623,12 @@ export declare const bikes: ({
|
|
|
623
623
|
productVariants?: undefined;
|
|
624
624
|
})[];
|
|
625
625
|
|
|
626
|
+
export declare const BOOKING_REFERENCE_COUNTER_MIN_DIGITS = 4;
|
|
627
|
+
|
|
628
|
+
export declare const BOOKING_REFERENCE_REGEX: RegExp;
|
|
629
|
+
|
|
630
|
+
export declare const BOOKING_REFERENCE_YEAR_MONTH_REGEX: RegExp;
|
|
631
|
+
|
|
626
632
|
export declare const BOOKING_SEARCH_KEYS: readonly ["fulfillment", "start_date", "start_time", "end_date", "end_time", "start_address", "end_address"];
|
|
627
633
|
|
|
628
634
|
export declare type BookingCustomerInput = z.infer<typeof bookingCustomerInputSchema>;
|
|
@@ -893,6 +899,10 @@ export declare type BookingPeriodTimeSlotsStatus = "local" | "loading" | "ready"
|
|
|
893
899
|
|
|
894
900
|
export declare type BookingPeriodTranslator = (key: string, options?: Record<string, unknown>) => string;
|
|
895
901
|
|
|
902
|
+
export declare const bookingReferenceSchema: z.ZodString;
|
|
903
|
+
|
|
904
|
+
export declare const bookingReferenceYearMonthSchema: z.ZodString;
|
|
905
|
+
|
|
896
906
|
export declare type BookingRentalUnitSummary = {
|
|
897
907
|
priceUnit: PriceUnit_2;
|
|
898
908
|
billableUnitCount: number;
|
|
@@ -1840,6 +1850,17 @@ declare type FooterProps = {
|
|
|
1840
1850
|
|
|
1841
1851
|
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;
|
|
1842
1852
|
|
|
1853
|
+
export declare function formatBookingReference(params: {
|
|
1854
|
+
workspaceTrackingPrefix: string;
|
|
1855
|
+
startYearMonth: string;
|
|
1856
|
+
sequenceValue: number;
|
|
1857
|
+
}): string;
|
|
1858
|
+
|
|
1859
|
+
export declare function formatBookingReferenceYearMonth(params: {
|
|
1860
|
+
startYear: number;
|
|
1861
|
+
startMonth: number;
|
|
1862
|
+
}): string;
|
|
1863
|
+
|
|
1843
1864
|
export declare const formatPriceMinor: (valueMinor: MoneyMinor_2, language: string, { currency, minimumFractionDigits, maximumFractionDigits, }?: {
|
|
1844
1865
|
currency?: string;
|
|
1845
1866
|
minimumFractionDigits?: number;
|
package/dist/index.js
CHANGED
|
@@ -1,99 +1,100 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./chunks/pkg/booking-engine/dist/models/LocalizedString-
|
|
2
|
+
import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./chunks/pkg/booking-engine/dist/models/LocalizedString-JmOX62C3.js";
|
|
3
3
|
import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./chunks/pkg/booking-engine/dist/schemas/money-CVoCY4of.js";
|
|
4
4
|
import { priceSchema as d, priceUnitSchema as f } from "./chunks/pkg/booking-engine/dist/models/Price-DCAgqkKh.js";
|
|
5
|
-
import { productIdSchema as p } from "./chunks/pkg/booking-engine/dist/schemas/product-id
|
|
6
|
-
import { DEFAULT_PRODUCT_KIND as m, PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as h, PRODUCT_VARIANT_CODE_MAX_LENGTH as g, accessoryProductSchema as _, bikeProductSchema as v, eBikeProductSchema as y, isProductVariantCodeIdentifierKind as b, productInsuranceSchema as x, productKindSchema as S, productSchema as C, productStorefrontDisplayModeSchema as w, productVariantAttributeSchema as T, productVariantCodeSchema as E, productVariantIdentifierSchema as D, productVariantSchema as O } from "./chunks/pkg/booking-engine/dist/models/Product.shared-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import "./chunks/pkg/booking-engine/dist/schemas-
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { ROUTE as
|
|
31
|
-
import { ROUTE as
|
|
32
|
-
import { ROUTE as Hn,
|
|
33
|
-
import { ROUTE as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import { storefront as
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
5
|
+
import { productIdSchema as p } from "./chunks/pkg/booking-engine/dist/schemas/product-id-ChdStzgp.js";
|
|
6
|
+
import { DEFAULT_PRODUCT_KIND as m, PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as h, PRODUCT_VARIANT_CODE_MAX_LENGTH as g, accessoryProductSchema as _, bikeProductSchema as v, eBikeProductSchema as y, isProductVariantCodeIdentifierKind as b, productInsuranceSchema as x, productKindSchema as S, productSchema as C, productStorefrontDisplayModeSchema as w, productVariantAttributeSchema as T, productVariantCodeSchema as E, productVariantIdentifierSchema as D, productVariantSchema as O } from "./chunks/pkg/booking-engine/dist/models/Product.shared-C_HehlKK.js";
|
|
7
|
+
import { BOOKING_REFERENCE_COUNTER_MIN_DIGITS as k, BOOKING_REFERENCE_REGEX as A, BOOKING_REFERENCE_YEAR_MONTH_REGEX as j, bookingReferenceSchema as M, bookingReferenceYearMonthSchema as N, formatBookingReference as P, formatBookingReferenceYearMonth as F } from "./chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js";
|
|
8
|
+
import { richTextJsonDocSchema as I, richTextSchema as L, richTextVersionSchema as R } from "./chunks/pkg/booking-engine/dist/schemas/rich-text-DTRh7U3z.js";
|
|
9
|
+
import { isoDateSchema as z, shopConfigurationSchema as B, shopExtraTimeSlotRuleSchema as V, shopOpeningDayIndexSchema as H, shopOpeningDaySchema as U, shopOpeningHoursOverrideSchema as W, shopOpeningHoursPeriodSchema as G, shopOpeningSlotSchema as K, timeOfDaySchema as q } from "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
|
|
10
|
+
import { DEFAULT_CANCELLATION_POLICY as J, DEFAULT_PAYMENT_POLICIES as Y, cancellationPolicySchema as X, cancellationPolicyTierSchema as Z, paymentPoliciesSchema as Q } from "./chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-CxKlxKCo.js";
|
|
11
|
+
import { fulfillmentModeSchema as $, publicBookingEngineConfigurationSchema as ee, publicCheckoutConfigurationSchema as te, publicCheckoutDynamicOptionsSchema as ne } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-BwWn9aK0.js";
|
|
12
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as re, bookingCustomerInputSchema as ie, bookingDeliveryOptionSchema as ae, bookingScheduleInputSchema as oe, cartItemInputSchema as se, createBookingInputBaseSchema as ce, createBookingInputSchema as le, resolveBookingDeliveryOption as ue, validateBookingDeliveryAddress as de } from "./chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1KobIdr.js";
|
|
13
|
+
import { bookingInsuranceConsentSourceSchema as fe, bookingInsuranceItemSnapshotSchema as pe, bookingInsuranceSnapshotSchema as me, buildBookingInsuranceSnapshot as he, calculateInsuranceCalendarDays as ge, insuranceProviderSchema as _e } from "./chunks/pkg/booking-engine/dist/schemas/insurance-B-Vmdlxo.js";
|
|
14
|
+
import { resolveOpeningHoursForDate as ve, resolveOpeningHoursPeriodForDate as ye } from "./chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
|
|
15
|
+
import { assetIdSchema as be, baseAssetSchema as xe, baseAssetStatusSchema as Se } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-CFAxfmRW.js";
|
|
16
|
+
import { baseBookingItemSchema as Ce, baseBookingSchema as we, baseBookingStateSchema as Te } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-CZOR9kya.js";
|
|
17
|
+
import "./chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
|
|
18
|
+
import { STOREFRONT_HERO_MODES as Ee, storefrontCheckoutModeSchema as De, storefrontConfigurationSchema as Oe, storefrontContentSchema as ke, storefrontFaqItemSchema as Ae, storefrontFaqSchema as je, storefrontFulfillmentModeSchema as Me, storefrontHeroModeSchema as Ne, storefrontInformationSchema as Pe, storefrontLocalizedRichTextSchema as Fe, storefrontModalMessageSchema as Ie, storefrontModulesSchema as Le, storefrontReviewsModuleSchema as Re, storefrontRichTextSchema as ze, storefrontSettingsSchema as Be, storefrontShopSchema as Ve, storefrontStatusSchema as He, storefrontWorkspaceSchema as Ue } from "./storefrontSchemas.js";
|
|
19
|
+
import { BOOKING_SEARCH_KEYS as We, TIME_OPTIONS as Ge, applyBookingParamsToSearch as Ke, createBookingPeriodConfigFromBookingEngineConfiguration as qe, createBookingPeriodConfigFromShopConfiguration as Je, createBookingPeriodConfigFromStorefrontConfiguration as Ye, getBookingParamsFromSearch as Xe, getBookingSessionStorageKey as Ze, getDefaultBookingParams as Qe, getDefaultBookingParamsForStorefrontConfiguration as $e, pickBookingSearchParams as et, readBookingSearchParamsFromSessionStorage as tt, readBookingSearchParamsFromStorage as nt, resolveBookingSearchParams as rt, resolveBookingSearchParamsFromSessionStorage as it, writeBookingSearchParamsToSessionStorage as at, writeBookingSearchParamsToStorage as ot } from "./lib/booking.js";
|
|
20
|
+
import { getLocalizedEntry as st, getLocalizedValue as ct } from "./localization.js";
|
|
21
|
+
import { CATALOG_PRODUCT_BASE_RATE_UNSET as lt, buildStorefrontProductSlug as ut, buildVariantStorefrontProductId as dt, compareCatalogProducts as ft, compareStorefrontAccessoryProducts as pt, compareStorefrontBikeProducts as mt, findStorefrontInsurancePricingBike as ht, findStorefrontProduct as gt, findStorefrontProductBySlug as _t, getCatalogProductBaseRateMinor as vt, getCatalogProductPaginationSort as yt, getCatalogProductSortFieldForPriceUnit as bt, getStorefrontBaseDailyRateMinor as xt, getStorefrontCheckoutProductId as St, getStorefrontProductSelectionDisplayName as Ct, getStorefrontRepresentedVariantId as wt, toStorefrontAccessoryProducts as Tt, toStorefrontBikeProducts as Et, toStorefrontBookingProducts as Dt, toStorefrontBookingProductsCollections as Ot } from "./lib/products.js";
|
|
22
|
+
import { StorefrontCartProvider as kt, resolveStorefrontCartItemProduct as At, useStorefrontCart as jt } from "./lib/cart.js";
|
|
23
|
+
import { cn as Mt, formatPriceMinor as Nt, getAvailabilityVariant as Pt, getMinDayPriceMinor as Ft } from "./lib/utils.js";
|
|
24
|
+
import { buildPriceTierLabels as It, buildRentalPriceRows as Lt, calculateBookingRentalUnitSummary as Rt, calculateRentalPriceForQuantity as zt, formatRentalUnitQuantity as Bt, formatStorefrontPriceMinor as Vt, getPricingUnitLabel as Ht } from "./lib/pricing.js";
|
|
25
|
+
import { buildStorefrontCartSummary as Ut } from "./lib/cartSummary.js";
|
|
26
|
+
import { ROUTE as Wt, requestSchema as Gt, responseSchema as Kt } from "./lib/contactForm.js";
|
|
27
|
+
import { formatStorefrontPhoneDisplay as qt, resolveStorefrontMapsHref as Jt, resolveStorefrontPhoneContact as Yt } from "./lib/storefrontContact.js";
|
|
28
|
+
import { STOREFRONT_ITINERARIES_FEATURED_ROUTE as Xt, STOREFRONT_ITINERARIES_LIST_ROUTE as Zt, STOREFRONT_ITINERARY_DETAIL_ROUTE as Qt, storefrontItinerariesFeaturedRequestSchema as $t, storefrontItinerariesFeaturedResponseSchema as en, storefrontItinerariesListRequestSchema as tn, storefrontItinerariesListResponseSchema as nn, storefrontItineraryBoundsSchema as rn, storefrontItineraryCoordinateSchema as an, storefrontItineraryDetailRequestSchema as on, storefrontItineraryDetailResponseSchema as sn, storefrontItineraryDetailSchema as cn, storefrontItineraryDifficultySchema as ln, storefrontItineraryLocalizedStringSchema as un, storefrontItineraryMetricsSchema as dn, storefrontItineraryPreviewSchema as fn, storefrontItineraryStepSchema as pn, storefrontItinerarySummarySchema as mn, storefrontItineraryTripTypeSchema as hn } from "./lib/storefrontItineraries.js";
|
|
29
|
+
import { buildWhatsAppHref as gn, resolveStorefrontWhatsAppContact as _n, resolveStorefrontWhatsAppHref as vn } from "./lib/whatsapp.js";
|
|
30
|
+
import { ROUTE as yn, requestBaseSchema as bn, requestCheckoutItemSchema as xn, requestDeliveryRefinement as Sn, requestSchema as Cn, responseSchema as wn } from "./lib/checkoutSubmit.js";
|
|
31
|
+
import { ROUTE as Tn, requestSchema as En, responseSchema as Dn, storefrontPublicAccessoryProductSchema as On, storefrontPublicBikeAvailabilityStatusSchema as kn, storefrontPublicBikeProductSchema as An, storefrontPublicProductDisplayModeSchema as jn, storefrontPublicProductPriceSchema as Mn, storefrontPublicProductVariantAttributeSchema as Nn, storefrontPublicProductVariantIdentifierSchema as Pn, storefrontPublicProductVariantSchema as Fn } from "./lib/storefrontProducts.js";
|
|
32
|
+
import { ROUTE as In, buildStorefrontAvailabilityKey as Ln, doesStorefrontAvailabilityDisplaySoldOut as Rn, getStorefrontAvailabilityIssue as zn, getStorefrontAvailabilityStatus as Bn, isStorefrontAvailabilityInsufficient as Vn, publicAvailabilityDisplayModeSchema as Hn, requestSchema as Un, responseSchema as Wn, shouldBlockStorefrontUnavailableItem as Gn, storefrontAvailabilityProductSchema as Kn, storefrontAvailabilityScheduleSchema as qn, storefrontPublicAvailabilityRecordSchema as Jn } from "./lib/storefrontAvailability.js";
|
|
33
|
+
import { ROUTE as Yn, buildStorefrontImageUrl as Xn, requestSchema as Zn } from "./lib/storefrontImage.js";
|
|
34
|
+
import { ROUTE as Qn, requestSchema as $n, responseSchema as er, storefrontTimeSlotSchema as tr, timeSlotJourneySchema as nr } from "./lib/storefrontTimeSlots.js";
|
|
35
|
+
import { Footer as rr } from "./components/Footer/index.js";
|
|
36
|
+
import { Badge as ir, badgeVariants as ar } from "./ui/badge.js";
|
|
37
|
+
import { Button as or, buttonVariants as sr, storefrontButtonRadiusClassName as cr } from "./ui/button.js";
|
|
38
|
+
import { LanguageSelector as lr } from "./components/LanguageSelector/index.js";
|
|
39
|
+
import { StorefrontContext as ur, useOptionalStorefront as dr, useStorefront as fr, useStorefrontBookingProducts as pr, useStorefrontConfig as mr, useStorefrontItineraries as hr, useStorefrontProducts as gr, useStorefrontWorkspaceLanguage as _r } from "./StorefrontContext.js";
|
|
40
|
+
import { Header as vr } from "./components/Header/index.js";
|
|
41
|
+
import { storefront as yr } from "./i18n/en.js";
|
|
42
|
+
import { storefront as br } from "./i18n/fr.js";
|
|
43
|
+
import { PoweredByLoczerBadge as xr } from "./components/PoweredByLoczerBadge/index.js";
|
|
44
|
+
import { PlatformFooter as Sr } from "./components/PlatformFooter/index.js";
|
|
45
|
+
import { useWhatsAppFloatingButton as Cr } from "./components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js";
|
|
46
|
+
import { WhatsAppFloatingButton as wr } from "./components/WhatsAppFloatingButton/WhatsAppFloatingButton.js";
|
|
46
47
|
import "./components/WhatsAppFloatingButton/index.js";
|
|
47
|
-
import { Layout as
|
|
48
|
-
import { DelayedPlaceholder as
|
|
49
|
-
import { BookingPeriodProvider as
|
|
50
|
-
import { Label as
|
|
51
|
-
import { BookingStartDateField as
|
|
52
|
-
import { BookingStartTimeField as
|
|
53
|
-
import { BookingEndDateField as
|
|
54
|
-
import { BookingEndTimeField as
|
|
55
|
-
import { BookingTimeSlotsStatus as
|
|
56
|
-
import { BookingMobileDateDrawer as
|
|
57
|
-
import { BookingPeriodSelector as
|
|
58
|
-
import { BookingFlowSteps as
|
|
59
|
-
import { Input as
|
|
60
|
-
import { DeliveryAddressSelector as
|
|
61
|
-
import { Form as
|
|
62
|
-
import { Textarea as
|
|
63
|
-
import { ContactSection as
|
|
64
|
-
import { FaqSection as
|
|
65
|
-
import { TestimonialsSection as
|
|
66
|
-
import { AboutSection as
|
|
67
|
-
import { AdminFloatingButton as
|
|
48
|
+
import { Layout as Tr } from "./components/Layout/index.js";
|
|
49
|
+
import { DelayedPlaceholder as Er, DelayedReveal as Dr } from "./components/DelayedReveal/index.js";
|
|
50
|
+
import { BookingPeriodProvider as Or, useBookingPeriod as kr } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
51
|
+
import { Label as Ar } from "./ui/label.js";
|
|
52
|
+
import { BookingStartDateField as jr } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
53
|
+
import { BookingStartTimeField as Mr } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
54
|
+
import { BookingEndDateField as Nr } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
55
|
+
import { BookingEndTimeField as Pr } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
56
|
+
import { BookingTimeSlotsStatus as Fr } from "./components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js";
|
|
57
|
+
import { BookingMobileDateDrawer as Ir } from "./components/BookingPeriodSelector/components/BookingMobileDateDrawer.js";
|
|
58
|
+
import { BookingPeriodSelector as Lr } from "./components/BookingPeriodSelector/index.js";
|
|
59
|
+
import { BookingFlowSteps as Rr } from "./components/BookingFlowSteps/index.js";
|
|
60
|
+
import { Input as zr } from "./ui/input.js";
|
|
61
|
+
import { DeliveryAddressSelector as Br } from "./components/DeliveryAddressSelector/index.js";
|
|
62
|
+
import { Form as Vr, FormControl as Hr, FormDescription as Ur, FormField as Wr, FormItem as Gr, FormLabel as Kr, FormMessage as qr, useFormField as Jr } from "./ui/form.js";
|
|
63
|
+
import { Textarea as Yr } from "./ui/textarea.js";
|
|
64
|
+
import { ContactSection as Xr } from "./components/ContactSection/index.js";
|
|
65
|
+
import { FaqSection as Zr } from "./components/FaqSection/index.js";
|
|
66
|
+
import { TestimonialsSection as Qr } from "./components/TestimonialsSection/index.js";
|
|
67
|
+
import { AboutSection as $r } from "./components/AboutSection/index.js";
|
|
68
|
+
import { AdminFloatingButton as ei } from "./components/AdminFloatingButton/AdminFloatingButton.js";
|
|
68
69
|
import "./components/AdminFloatingButton/index.js";
|
|
69
|
-
import { ItineraryListItem as
|
|
70
|
-
import { ItineraryRouteMap as
|
|
71
|
-
import { ItinerariesSection as
|
|
70
|
+
import { ItineraryListItem as ti } from "./components/Itineraries/ItineraryListItem.js";
|
|
71
|
+
import { ItineraryRouteMap as ni } from "./components/Itineraries/ItineraryRouteMap.js";
|
|
72
|
+
import { ItinerariesSection as ri } from "./components/Itineraries/ItinerariesSection.js";
|
|
72
73
|
import "./components/Itineraries/index.js";
|
|
73
|
-
import { StepSectionTitle as
|
|
74
|
-
import { Card as
|
|
75
|
-
import { ProductWarningNotice as
|
|
76
|
-
import { StorefrontCartPanel as
|
|
77
|
-
import { ProductPriceBadge as
|
|
78
|
-
import { ContractSaleDocument as
|
|
74
|
+
import { StepSectionTitle as ii } from "./components/StepSectionTitle/index.js";
|
|
75
|
+
import { Card as ai, CardAction as oi, CardContent as si, CardDescription as ci, CardFooter as li, CardHeader as ui, CardTitle as di } from "./ui/card.js";
|
|
76
|
+
import { ProductWarningNotice as fi } from "./components/ProductWarningNotice/index.js";
|
|
77
|
+
import { StorefrontCartPanel as pi } from "./components/StorefrontCartPanel/index.js";
|
|
78
|
+
import { ProductPriceBadge as mi } from "./components/ProductPriceBadge/index.js";
|
|
79
|
+
import { ContractSaleDocument as hi } from "./components/ContractSaleDocument/Invoice.js";
|
|
79
80
|
import "./components/ContractSaleDocument/index.js";
|
|
80
|
-
import { SignatureInput as
|
|
81
|
-
import { RadioGroup as
|
|
81
|
+
import { SignatureInput as gi } from "./components/SignatureInput/index.js";
|
|
82
|
+
import { RadioGroup as _i, RadioGroupItem as vi } from "./ui/radio-group.js";
|
|
82
83
|
import "./pages/HomePage.js";
|
|
83
84
|
import "./pages/BookingPage.js";
|
|
84
85
|
import "./pages/ProductPage.js";
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
86
|
+
import yi from "./pages/ItinerariesPage.js";
|
|
87
|
+
import bi, { loader as xi } from "./pages/ItineraryDetailsPage.js";
|
|
88
|
+
import Si from "./pages/RentalTermsPage.js";
|
|
89
|
+
import Ci from "./pages/InsuranceTermsPage.js";
|
|
89
90
|
import "./pages/CheckoutPage.js";
|
|
90
91
|
import "./pages/CheckoutSuccessPage.js";
|
|
91
92
|
import "./pages/NotFoundPage.js";
|
|
92
|
-
import { accessories as
|
|
93
|
-
import
|
|
94
|
-
import { contractSaleDocumentAcceptanceLevelSchema as
|
|
95
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as
|
|
96
|
-
import
|
|
97
|
-
import { loader as
|
|
98
|
-
import { Select as
|
|
99
|
-
export { Ni as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, Kr as AboutSection, qr as AdminFloatingButton, Le as BOOKING_SEARCH_KEYS, Zn as Badge, Er as BookingEndDateField, Dr as BookingEndTimeField, jr as BookingFlowSteps, kr as BookingMobileDateDrawer, xr as BookingPeriodProvider, Ar as BookingPeriodSelector, wr as BookingStartDateField, Tr as BookingStartTimeField, Or as BookingTimeSlotsStatus, $n as Button, nt as CATALOG_PRODUCT_BASE_RATE_UNSET, Qr as Card, $r as CardAction, ei as CardContent, ti as CardDescription, ni as CardFooter, ri as CardHeader, ii as CardTitle, Ur as ContactSection, ci as ContractSaleDocument, X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Pi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, yr as DelayedPlaceholder, br as DelayedReveal, Nr as DeliveryAddressSelector, Wr as FaqSection, Xn as Footer, Pr as Form, Fr as FormControl, Ir as FormDescription, Lr as FormField, Rr as FormItem, zr as FormLabel, Br as FormMessage, Fi as GET_CONTRACT_SALE_DOCUMENT_ROUTE, dr as Header, Mr as Input, gi as InsuranceTermsPage, fi as ItinerariesPage, Xr as ItinerariesSection, pi as ItineraryDetailsPage, Jr as ItineraryListItem, Yr as ItineraryRouteMap, Cr as Label, nr as LanguageSelector, vr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, hr as PlatformFooter, mr as PoweredByLoczerBadge, si as ProductPriceBadge, ai as ProductWarningNotice, Lt as ROUTE, ui as RadioGroup, di as RadioGroupItem, hi as RentalTermsPage, kn as STOREFRONT_AVAILABILITY_ROUTE, fn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ye as STOREFRONT_HERO_MODES, Hn as STOREFRONT_IMAGE_ROUTE, Ut as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Wt as STOREFRONT_ITINERARIES_LIST_ROUTE, Gt as STOREFRONT_ITINERARY_DETAIL_ROUTE, vn as STOREFRONT_PRODUCTS_ROUTE, Gn as STOREFRONT_TIME_SLOTS_ROUTE, Qi as Select, $i as SelectContent, ea as SelectGroup, ta as SelectIcon, na as SelectItem, ra as SelectItemIndicator, ia as SelectItemText, aa as SelectLabel, oa as SelectScrollDownButton, sa as SelectScrollUpButton, ca as SelectSeparator, la as SelectTrigger, ua as SelectValue, li as SignatureInput, Zr as StepSectionTitle, oi as StorefrontCartPanel, St as StorefrontCartProvider, rr as StorefrontContext, Re as TIME_OPTIONS, Gr as TestimonialsSection, Hr as Textarea, _r as WhatsAppFloatingButton, Ii as acceptContractSaleDocumentRequestSchema, Li as acceptContractSaleDocumentResponseSchema, _i as accessories, _ as accessoryProductSchema, ze as applyBookingParamsToSearch, pe as assetIdSchema, Qn as badgeVariants, me as baseAssetSchema, he as baseAssetStatusSchema, ge as baseBookingItemSchema, _e as baseBookingSchema, ve as baseBookingStateSchema, v as bikeProductSchema, vi as bikes, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, kt as buildPriceTierLabels, At as buildRentalPriceRows, An as buildStorefrontAvailabilityKey, It as buildStorefrontCartSummary, Un as buildStorefrontImageUrl, rt as buildStorefrontProductSlug, it as buildVariantStorefrontProductId, ln as buildWhatsAppHref, er as buttonVariants, jt as calculateBookingRentalUnitSummary, le as calculateInsuranceCalendarDays, Mt as calculateRentalPriceForQuantity, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, Tt as cn, at as compareCatalogProducts, ot as compareStorefrontAccessoryProducts, st as compareStorefrontBikeProducts, Ri as contractSaleDocumentAcceptanceInputSchema, yi as contractSaleDocumentAcceptanceLevelSchema, zi as contractSaleDocumentAcceptanceRecordInputSchema, bi as contractSaleDocumentAcceptanceRecordSchema, xi as contractSaleDocumentAcceptanceSchema, Si as contractSaleDocumentAddressSchema, Bi as contractSaleDocumentApiAcceptanceRecordSchema, Vi as contractSaleDocumentApiAcceptanceSchema, Hi as contractSaleDocumentApiSchema, Ui as contractSaleDocumentApiSignatureSchema, Ci as contractSaleDocumentAppendixKindSchema, wi as contractSaleDocumentAppendixSchema, Ti as contractSaleDocumentContactSchema, Ei as contractSaleDocumentKindSchema, Di as contractSaleDocumentLanguageCodeSchema, Oi as contractSaleDocumentLanguageSchema, ki as contractSaleDocumentLineItemSchema, Wi as contractSaleDocumentReferenceSchema, Gi as contractSaleDocumentReferenceTypeSchema, Ai as contractSaleDocumentRentalSchema, ji as contractSaleDocumentSchema, Ki as contractSaleDocumentSignatureInputSchema, Mi as contractSaleDocumentSignatureSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, Be as createBookingPeriodConfigFromBookingEngineConfiguration, Ve as createBookingPeriodConfigFromShopConfiguration, He as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, jn as doesStorefrontAvailabilityDisplaySoldOut, qi as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ct as findStorefrontInsurancePricingBike, lt as findStorefrontProduct, ut as findStorefrontProductBySlug, Et as formatPriceMinor, Nt as formatRentalUnitQuantity, Bt as formatStorefrontPhoneDisplay, Pt as formatStorefrontPriceMinor, K as fulfillmentModeSchema, Dt as getAvailabilityVariant, Ue as getBookingParamsFromSearch, We as getBookingSessionStorageKey, dt as getCatalogProductBaseRateMinor, ft as getCatalogProductPaginationSort, pt as getCatalogProductSortFieldForPriceUnit, Ji as getContractSaleDocumentRequestSchema, Yi as getContractSaleDocumentResponseSchema, Ge as getDefaultBookingParams, Ke as getDefaultBookingParamsForStorefrontConfiguration, et as getLocalizedEntry, t as getLocalizedStringValue, tt as getLocalizedValue, Ot as getMinDayPriceMinor, Ft as getPricingUnitLabel, Mn as getStorefrontAvailabilityIssue, Nn as getStorefrontAvailabilityStatus, mt as getStorefrontBaseDailyRateMinor, ht as getStorefrontCheckoutProductId, gt as getStorefrontProductSelectionDisplayName, _t as getStorefrontRepresentedVariantId, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Pn as isStorefrontAvailabilityInsufficient, M as isoDateSchema, mi as itineraryDetailsLoader, Zi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, qe 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, Fn as publicAvailabilityDisplayModeSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, Je as readBookingSearchParamsFromSessionStorage, Ye as readBookingSearchParamsFromStorage, Rt as requestSchema, re as resolveBookingDeliveryOption, Xe as resolveBookingSearchParams, Ze as resolveBookingSearchParamsFromSessionStorage, de as resolveOpeningHoursForDate, fe as resolveOpeningHoursPeriodForDate, Ct as resolveStorefrontCartItemProduct, Vt as resolveStorefrontMapsHref, Ht as resolveStorefrontPhoneContact, un as resolveStorefrontWhatsAppContact, dn as resolveStorefrontWhatsAppHref, zt 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, Rn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, zn as storefrontAvailabilityProductSchema, In as storefrontAvailabilityRequestSchema, Ln as storefrontAvailabilityResponseSchema, Bn as storefrontAvailabilityScheduleSchema, tr as storefrontButtonRadiusClassName, be as storefrontCheckoutModeSchema, hn as storefrontCheckoutSubmitDeliveryRefinement, mn as storefrontCheckoutSubmitItemSchema, pn as storefrontCheckoutSubmitRequestBaseSchema, gn as storefrontCheckoutSubmitRequestSchema, _n as storefrontCheckoutSubmitResponseSchema, xe as storefrontConfigurationSchema, Se as storefrontContentSchema, fr as storefrontEn, Ce as storefrontFaqItemSchema, we as storefrontFaqSchema, pr as storefrontFr, Te as storefrontFulfillmentModeSchema, Ee as storefrontHeroModeSchema, Wn as storefrontImageRequestSchema, De as storefrontInformationSchema, Kt as storefrontItinerariesFeaturedRequestSchema, qt as storefrontItinerariesFeaturedResponseSchema, Jt as storefrontItinerariesListRequestSchema, Yt as storefrontItinerariesListResponseSchema, Xt as storefrontItineraryBoundsSchema, Zt as storefrontItineraryCoordinateSchema, Qt as storefrontItineraryDetailRequestSchema, $t as storefrontItineraryDetailResponseSchema, en as storefrontItineraryDetailSchema, tn as storefrontItineraryDifficultySchema, nn as storefrontItineraryLocalizedStringSchema, rn as storefrontItineraryMetricsSchema, an as storefrontItineraryPreviewSchema, on as storefrontItineraryStepSchema, sn as storefrontItinerarySummarySchema, cn as storefrontItineraryTripTypeSchema, Oe as storefrontLocalizedRichTextSchema, ke as storefrontModalMessageSchema, Ae as storefrontModulesSchema, yn as storefrontProductsRequestSchema, bn as storefrontProductsResponseSchema, xn as storefrontPublicAccessoryProductSchema, Vn as storefrontPublicAvailabilityRecordSchema, Sn as storefrontPublicBikeAvailabilityStatusSchema, Cn as storefrontPublicBikeProductSchema, wn as storefrontPublicProductDisplayModeSchema, Tn as storefrontPublicProductPriceSchema, En as storefrontPublicProductVariantAttributeSchema, Dn as storefrontPublicProductVariantIdentifierSchema, On as storefrontPublicProductVariantSchema, je as storefrontReviewsModuleSchema, Me as storefrontRichTextSchema, Xi as storefrontRoutes, Ne as storefrontSettingsSchema, Pe as storefrontShopSchema, Fe as storefrontStatusSchema, Yn as storefrontTimeSlotJourneySchema, Jn as storefrontTimeSlotSchema, Kn as storefrontTimeSlotsRequestSchema, qn as storefrontTimeSlotsResponseSchema, Ie as storefrontWorkspaceSchema, B as timeOfDaySchema, vt as toStorefrontAccessoryProducts, yt as toStorefrontBikeProducts, bt as toStorefrontBookingProducts, xt as toStorefrontBookingProductsCollections, Sr as useBookingPeriod, Vr as useFormField, ir as useOptionalStorefront, ar as useStorefront, or as useStorefrontBookingProducts, wt as useStorefrontCart, sr as useStorefrontConfig, cr as useStorefrontItineraries, lr as useStorefrontProducts, ur as useStorefrontWorkspaceLanguage, gr as useWhatsAppFloatingButton, ie as validateBookingDeliveryAddress, Qe as writeBookingSearchParamsToSessionStorage, $e as writeBookingSearchParamsToStorage };
|
|
93
|
+
import { accessories as wi } from "./data/accessories.js";
|
|
94
|
+
import Ti from "./data/bikes.js";
|
|
95
|
+
import { contractSaleDocumentAcceptanceLevelSchema as Ei, contractSaleDocumentAcceptanceRecordSchema as Di, contractSaleDocumentAcceptanceSchema as Oi, contractSaleDocumentAddressSchema as ki, contractSaleDocumentAppendixKindSchema as Ai, contractSaleDocumentAppendixSchema as ji, contractSaleDocumentContactSchema as Mi, contractSaleDocumentKindSchema as Ni, contractSaleDocumentLanguageCodeSchema as Pi, contractSaleDocumentLanguageSchema as Fi, contractSaleDocumentLineItemSchema as Ii, contractSaleDocumentRentalSchema as Li, contractSaleDocumentSchema as Ri, contractSaleDocumentSignatureSchema as zi } from "./lib/contractSaleDocument.js";
|
|
96
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Bi, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Vi, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Hi, acceptContractSaleDocumentRequestSchema as Ui, acceptContractSaleDocumentResponseSchema as Wi, contractSaleDocumentAcceptanceInputSchema as Gi, contractSaleDocumentAcceptanceRecordInputSchema as Ki, contractSaleDocumentApiAcceptanceRecordSchema as qi, contractSaleDocumentApiAcceptanceSchema as Ji, contractSaleDocumentApiSchema as Yi, contractSaleDocumentApiSignatureSchema as Xi, contractSaleDocumentReferenceSchema as Zi, contractSaleDocumentReferenceTypeSchema as Qi, contractSaleDocumentSignatureInputSchema as $i, downloadContractSaleDocumentPdfRequestSchema as ea, getContractSaleDocumentRequestSchema as ta, getContractSaleDocumentResponseSchema as na } from "./lib/contractSaleDocumentApi.js";
|
|
97
|
+
import ra from "./routes.js";
|
|
98
|
+
import { loader as ia } from "./StorefrontProvider.js";
|
|
99
|
+
import { Select as aa, SelectContent as oa, SelectGroup as sa, SelectIcon as ca, SelectItem as la, SelectItemIndicator as ua, SelectItemText as da, SelectLabel as fa, SelectScrollDownButton as pa, SelectScrollUpButton as ma, SelectSeparator as ha, SelectTrigger as ga, SelectValue as _a } from "./ui/select.js";
|
|
100
|
+
export { Bi as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, $r as AboutSection, ei as AdminFloatingButton, k as BOOKING_REFERENCE_COUNTER_MIN_DIGITS, A as BOOKING_REFERENCE_REGEX, j as BOOKING_REFERENCE_YEAR_MONTH_REGEX, We as BOOKING_SEARCH_KEYS, ir as Badge, Nr as BookingEndDateField, Pr as BookingEndTimeField, Rr as BookingFlowSteps, Ir as BookingMobileDateDrawer, Or as BookingPeriodProvider, Lr as BookingPeriodSelector, jr as BookingStartDateField, Mr as BookingStartTimeField, Fr as BookingTimeSlotsStatus, or as Button, lt as CATALOG_PRODUCT_BASE_RATE_UNSET, ai as Card, oi as CardAction, si as CardContent, ci as CardDescription, li as CardFooter, ui as CardHeader, di as CardTitle, Xr as ContactSection, hi as ContractSaleDocument, re as DEFAULT_BOOKING_DELIVERY_OPTION, J as DEFAULT_CANCELLATION_POLICY, Y as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, Vi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, Er as DelayedPlaceholder, Dr as DelayedReveal, Br as DeliveryAddressSelector, Zr as FaqSection, rr as Footer, Vr as Form, Hr as FormControl, Ur as FormDescription, Wr as FormField, Gr as FormItem, Kr as FormLabel, qr as FormMessage, Hi as GET_CONTRACT_SALE_DOCUMENT_ROUTE, vr as Header, zr as Input, Ci as InsuranceTermsPage, yi as ItinerariesPage, ri as ItinerariesSection, bi as ItineraryDetailsPage, ti as ItineraryListItem, ni as ItineraryRouteMap, Ar as Label, lr as LanguageSelector, Tr as Layout, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, Sr as PlatformFooter, xr as PoweredByLoczerBadge, mi as ProductPriceBadge, fi as ProductWarningNotice, Wt as ROUTE, _i as RadioGroup, vi as RadioGroupItem, Si as RentalTermsPage, In as STOREFRONT_AVAILABILITY_ROUTE, yn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, Ee as STOREFRONT_HERO_MODES, Yn as STOREFRONT_IMAGE_ROUTE, Xt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, Zt as STOREFRONT_ITINERARIES_LIST_ROUTE, Qt as STOREFRONT_ITINERARY_DETAIL_ROUTE, Tn as STOREFRONT_PRODUCTS_ROUTE, Qn as STOREFRONT_TIME_SLOTS_ROUTE, aa as Select, oa as SelectContent, sa as SelectGroup, ca as SelectIcon, la as SelectItem, ua as SelectItemIndicator, da as SelectItemText, fa as SelectLabel, pa as SelectScrollDownButton, ma as SelectScrollUpButton, ha as SelectSeparator, ga as SelectTrigger, _a as SelectValue, gi as SignatureInput, ii as StepSectionTitle, pi as StorefrontCartPanel, kt as StorefrontCartProvider, ur as StorefrontContext, Ge as TIME_OPTIONS, Qr as TestimonialsSection, Yr as Textarea, wr as WhatsAppFloatingButton, Ui as acceptContractSaleDocumentRequestSchema, Wi as acceptContractSaleDocumentResponseSchema, wi as accessories, _ as accessoryProductSchema, Ke as applyBookingParamsToSearch, be as assetIdSchema, ar as badgeVariants, xe as baseAssetSchema, Se as baseAssetStatusSchema, Ce as baseBookingItemSchema, we as baseBookingSchema, Te as baseBookingStateSchema, v as bikeProductSchema, Ti as bikes, ie as bookingCustomerInputSchema, ae as bookingDeliveryOptionSchema, fe as bookingInsuranceConsentSourceSchema, pe as bookingInsuranceItemSnapshotSchema, me as bookingInsuranceSnapshotSchema, M as bookingReferenceSchema, N as bookingReferenceYearMonthSchema, oe as bookingScheduleInputSchema, he as buildBookingInsuranceSnapshot, It as buildPriceTierLabels, Lt as buildRentalPriceRows, Ln as buildStorefrontAvailabilityKey, Ut as buildStorefrontCartSummary, Xn as buildStorefrontImageUrl, ut as buildStorefrontProductSlug, dt as buildVariantStorefrontProductId, gn as buildWhatsAppHref, sr as buttonVariants, Rt as calculateBookingRentalUnitSummary, ge as calculateInsuranceCalendarDays, zt as calculateRentalPriceForQuantity, X as cancellationPolicySchema, Z as cancellationPolicyTierSchema, se as cartItemInputSchema, Mt as cn, ft as compareCatalogProducts, pt as compareStorefrontAccessoryProducts, mt as compareStorefrontBikeProducts, Gi as contractSaleDocumentAcceptanceInputSchema, Ei as contractSaleDocumentAcceptanceLevelSchema, Ki as contractSaleDocumentAcceptanceRecordInputSchema, Di as contractSaleDocumentAcceptanceRecordSchema, Oi as contractSaleDocumentAcceptanceSchema, ki as contractSaleDocumentAddressSchema, qi as contractSaleDocumentApiAcceptanceRecordSchema, Ji as contractSaleDocumentApiAcceptanceSchema, Yi as contractSaleDocumentApiSchema, Xi as contractSaleDocumentApiSignatureSchema, Ai as contractSaleDocumentAppendixKindSchema, ji as contractSaleDocumentAppendixSchema, Mi as contractSaleDocumentContactSchema, Ni as contractSaleDocumentKindSchema, Pi as contractSaleDocumentLanguageCodeSchema, Fi as contractSaleDocumentLanguageSchema, Ii as contractSaleDocumentLineItemSchema, Zi as contractSaleDocumentReferenceSchema, Qi as contractSaleDocumentReferenceTypeSchema, Li as contractSaleDocumentRentalSchema, Ri as contractSaleDocumentSchema, $i as contractSaleDocumentSignatureInputSchema, zi as contractSaleDocumentSignatureSchema, ce as createBookingInputBaseSchema, le as createBookingInputSchema, qe as createBookingPeriodConfigFromBookingEngineConfiguration, Je as createBookingPeriodConfigFromShopConfiguration, Ye as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, Rn as doesStorefrontAvailabilityDisplaySoldOut, ea as downloadContractSaleDocumentPdfRequestSchema, y as eBikeProductSchema, ht as findStorefrontInsurancePricingBike, gt as findStorefrontProduct, _t as findStorefrontProductBySlug, P as formatBookingReference, F as formatBookingReferenceYearMonth, Nt as formatPriceMinor, Bt as formatRentalUnitQuantity, qt as formatStorefrontPhoneDisplay, Vt as formatStorefrontPriceMinor, $ as fulfillmentModeSchema, Pt as getAvailabilityVariant, Xe as getBookingParamsFromSearch, Ze as getBookingSessionStorageKey, vt as getCatalogProductBaseRateMinor, yt as getCatalogProductPaginationSort, bt as getCatalogProductSortFieldForPriceUnit, ta as getContractSaleDocumentRequestSchema, na as getContractSaleDocumentResponseSchema, Qe as getDefaultBookingParams, $e as getDefaultBookingParamsForStorefrontConfiguration, st as getLocalizedEntry, t as getLocalizedStringValue, ct as getLocalizedValue, Ft as getMinDayPriceMinor, Ht as getPricingUnitLabel, zn as getStorefrontAvailabilityIssue, Bn as getStorefrontAvailabilityStatus, xt as getStorefrontBaseDailyRateMinor, St as getStorefrontCheckoutProductId, Ct as getStorefrontProductSelectionDisplayName, wt as getStorefrontRepresentedVariantId, _e as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, Vn as isStorefrontAvailabilityInsufficient, z as isoDateSchema, xi as itineraryDetailsLoader, ia as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, Q as paymentPoliciesSchema, et 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, Hn as publicAvailabilityDisplayModeSchema, ee as publicBookingEngineConfigurationSchema, te as publicCheckoutConfigurationSchema, ne as publicCheckoutDynamicOptionsSchema, tt as readBookingSearchParamsFromSessionStorage, nt as readBookingSearchParamsFromStorage, Gt as requestSchema, ue as resolveBookingDeliveryOption, rt as resolveBookingSearchParams, it as resolveBookingSearchParamsFromSessionStorage, ve as resolveOpeningHoursForDate, ye as resolveOpeningHoursPeriodForDate, At as resolveStorefrontCartItemProduct, Jt as resolveStorefrontMapsHref, Yt as resolveStorefrontPhoneContact, _n as resolveStorefrontWhatsAppContact, vn as resolveStorefrontWhatsAppHref, Kt as responseSchema, I as richTextJsonDocSchema, L as richTextSchema, R as richTextVersionSchema, B as shopConfigurationSchema, V as shopExtraTimeSlotRuleSchema, H as shopOpeningDayIndexSchema, U as shopOpeningDaySchema, W as shopOpeningHoursOverrideSchema, G as shopOpeningHoursPeriodSchema, K as shopOpeningSlotSchema, Gn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Kn as storefrontAvailabilityProductSchema, Un as storefrontAvailabilityRequestSchema, Wn as storefrontAvailabilityResponseSchema, qn as storefrontAvailabilityScheduleSchema, cr as storefrontButtonRadiusClassName, De as storefrontCheckoutModeSchema, Sn as storefrontCheckoutSubmitDeliveryRefinement, xn as storefrontCheckoutSubmitItemSchema, bn as storefrontCheckoutSubmitRequestBaseSchema, Cn as storefrontCheckoutSubmitRequestSchema, wn as storefrontCheckoutSubmitResponseSchema, Oe as storefrontConfigurationSchema, ke as storefrontContentSchema, yr as storefrontEn, Ae as storefrontFaqItemSchema, je as storefrontFaqSchema, br as storefrontFr, Me as storefrontFulfillmentModeSchema, Ne as storefrontHeroModeSchema, Zn as storefrontImageRequestSchema, Pe as storefrontInformationSchema, $t as storefrontItinerariesFeaturedRequestSchema, en as storefrontItinerariesFeaturedResponseSchema, tn as storefrontItinerariesListRequestSchema, nn as storefrontItinerariesListResponseSchema, rn as storefrontItineraryBoundsSchema, an as storefrontItineraryCoordinateSchema, on as storefrontItineraryDetailRequestSchema, sn as storefrontItineraryDetailResponseSchema, cn as storefrontItineraryDetailSchema, ln as storefrontItineraryDifficultySchema, un as storefrontItineraryLocalizedStringSchema, dn as storefrontItineraryMetricsSchema, fn as storefrontItineraryPreviewSchema, pn as storefrontItineraryStepSchema, mn as storefrontItinerarySummarySchema, hn as storefrontItineraryTripTypeSchema, Fe as storefrontLocalizedRichTextSchema, Ie as storefrontModalMessageSchema, Le as storefrontModulesSchema, En as storefrontProductsRequestSchema, Dn as storefrontProductsResponseSchema, On as storefrontPublicAccessoryProductSchema, Jn as storefrontPublicAvailabilityRecordSchema, kn as storefrontPublicBikeAvailabilityStatusSchema, An as storefrontPublicBikeProductSchema, jn as storefrontPublicProductDisplayModeSchema, Mn as storefrontPublicProductPriceSchema, Nn as storefrontPublicProductVariantAttributeSchema, Pn as storefrontPublicProductVariantIdentifierSchema, Fn as storefrontPublicProductVariantSchema, Re as storefrontReviewsModuleSchema, ze as storefrontRichTextSchema, ra as storefrontRoutes, Be as storefrontSettingsSchema, Ve as storefrontShopSchema, He as storefrontStatusSchema, nr as storefrontTimeSlotJourneySchema, tr as storefrontTimeSlotSchema, $n as storefrontTimeSlotsRequestSchema, er as storefrontTimeSlotsResponseSchema, Ue as storefrontWorkspaceSchema, q as timeOfDaySchema, Tt as toStorefrontAccessoryProducts, Et as toStorefrontBikeProducts, Dt as toStorefrontBookingProducts, Ot as toStorefrontBookingProductsCollections, kr as useBookingPeriod, Jr as useFormField, dr as useOptionalStorefront, fr as useStorefront, pr as useStorefrontBookingProducts, jt as useStorefrontCart, mr as useStorefrontConfig, hr as useStorefrontItineraries, gr as useStorefrontProducts, _r as useStorefrontWorkspaceLanguage, Cr as useWhatsAppFloatingButton, de as validateBookingDeliveryAddress, at as writeBookingSearchParamsToSessionStorage, ot as writeBookingSearchParamsToStorage };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll as e } from "../chunks/_virtual/_rolldown/runtime-B5ovbsoX.js";
|
|
2
2
|
import { resolveOpeningHoursForDate as t } from "../chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
|
|
3
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
3
|
+
import "../chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
|
|
4
4
|
//#region src/lib/booking-period.ts
|
|
5
5
|
var n = /* @__PURE__ */ e({
|
|
6
6
|
adjustBookingPeriod: () => M,
|
package/dist/lib/booking.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-
|
|
2
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
1
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as e } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1KobIdr.js";
|
|
2
|
+
import "../chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
|
|
3
3
|
import { getDefaultBookingPeriod as t, parseTimeToMinutes as n } from "./booking-period.js";
|
|
4
4
|
import { format as r } from "date-fns";
|
|
5
5
|
//#region src/lib/booking.ts
|
|
@@ -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;AAWvB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqB5B,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"}
|
|
@@ -1,60 +1,61 @@
|
|
|
1
|
-
import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-
|
|
2
|
-
import {
|
|
3
|
-
import "../chunks/pkg/booking-engine/dist/schemas-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { productKindSchema as e } from "../chunks/pkg/booking-engine/dist/models/Product.shared-C_HehlKK.js";
|
|
2
|
+
import { bookingReferenceSchema as t } from "../chunks/pkg/booking-engine/dist/schemas/booking-reference-DLKcpIa4.js";
|
|
3
|
+
import { DEFAULT_BOOKING_DELIVERY_OPTION as n, bookingScheduleInputSchema as r } from "../chunks/pkg/booking-engine/dist/schemas/cart-inputs-D1KobIdr.js";
|
|
4
|
+
import "../chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
|
|
5
|
+
import { storefrontFulfillmentModeSchema as i } from "../storefrontSchemas.js";
|
|
6
|
+
import { z as a } from "zod";
|
|
6
7
|
//#region src/lib/checkoutSubmit.ts
|
|
7
|
-
var
|
|
8
|
+
var o = "/api/public/storefront/checkout/submit", s = a.object({
|
|
8
9
|
kind: e,
|
|
9
|
-
productId:
|
|
10
|
-
productVariantId:
|
|
11
|
-
quantity:
|
|
12
|
-
}),
|
|
13
|
-
storeSlug:
|
|
14
|
-
checkoutSessionId:
|
|
15
|
-
replacesCheckoutSessionId:
|
|
16
|
-
schedule:
|
|
17
|
-
fulfillment:
|
|
18
|
-
startAddress:
|
|
19
|
-
endAddress:
|
|
20
|
-
couponCode:
|
|
21
|
-
couponAutoApplied:
|
|
22
|
-
insuranceAccepted:
|
|
23
|
-
customer:
|
|
24
|
-
name:
|
|
25
|
-
email:
|
|
26
|
-
phone:
|
|
27
|
-
notes:
|
|
10
|
+
productId: a.string().trim().min(1),
|
|
11
|
+
productVariantId: a.string().trim().min(1).optional(),
|
|
12
|
+
quantity: a.number().int().positive()
|
|
13
|
+
}), c = a.object({
|
|
14
|
+
storeSlug: a.string().trim().min(1).toLowerCase(),
|
|
15
|
+
checkoutSessionId: a.string().trim().min(1).max(256).optional(),
|
|
16
|
+
replacesCheckoutSessionId: a.string().trim().min(1).max(256).optional(),
|
|
17
|
+
schedule: r,
|
|
18
|
+
fulfillment: i.default(n),
|
|
19
|
+
startAddress: a.string().trim().max(500).optional(),
|
|
20
|
+
endAddress: a.string().trim().max(500).optional(),
|
|
21
|
+
couponCode: a.string().trim().max(64).optional().or(a.literal("")),
|
|
22
|
+
couponAutoApplied: a.boolean().optional(),
|
|
23
|
+
insuranceAccepted: a.boolean().optional(),
|
|
24
|
+
customer: a.object({
|
|
25
|
+
name: a.string().trim().min(2),
|
|
26
|
+
email: a.string().trim().email(),
|
|
27
|
+
phone: a.string().trim().min(6),
|
|
28
|
+
notes: a.string().trim().max(2e3).optional().or(a.literal(""))
|
|
28
29
|
}),
|
|
29
|
-
items:
|
|
30
|
-
nowIso:
|
|
31
|
-
}),
|
|
30
|
+
items: a.array(s).min(1),
|
|
31
|
+
nowIso: a.string().datetime({ offset: !0 }).optional()
|
|
32
|
+
}), l = (e, t) => {
|
|
32
33
|
e.fulfillment === "delivery" && (e.startAddress?.trim() || t.addIssue({
|
|
33
|
-
code:
|
|
34
|
+
code: a.ZodIssueCode.custom,
|
|
34
35
|
message: "Delivery start address is required.",
|
|
35
36
|
path: ["startAddress"]
|
|
36
37
|
}));
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
code:
|
|
38
|
+
}, u = c.superRefine((e, t) => {
|
|
39
|
+
l(e, t), e.replacesCheckoutSessionId && !e.checkoutSessionId && t.addIssue({
|
|
40
|
+
code: a.ZodIssueCode.custom,
|
|
40
41
|
message: "A replacement checkout session requires a new checkout session id.",
|
|
41
42
|
path: ["checkoutSessionId"]
|
|
42
43
|
}), e.checkoutSessionId && e.replacesCheckoutSessionId === e.checkoutSessionId && t.addIssue({
|
|
43
|
-
code:
|
|
44
|
+
code: a.ZodIssueCode.custom,
|
|
44
45
|
message: "The new and replaced checkout session ids must differ.",
|
|
45
46
|
path: ["replacesCheckoutSessionId"]
|
|
46
47
|
});
|
|
47
|
-
}),
|
|
48
|
-
success:
|
|
49
|
-
message:
|
|
50
|
-
checkout:
|
|
51
|
-
bookingExternalId:
|
|
52
|
-
saleId:
|
|
53
|
-
nextPath:
|
|
54
|
-
successPath:
|
|
55
|
-
requiresPayment:
|
|
56
|
-
checkoutSessionId:
|
|
48
|
+
}), d = a.object({
|
|
49
|
+
success: a.boolean(),
|
|
50
|
+
message: a.string().optional(),
|
|
51
|
+
checkout: a.object({
|
|
52
|
+
bookingExternalId: t,
|
|
53
|
+
saleId: a.string().trim().min(1),
|
|
54
|
+
nextPath: a.string().trim().min(1),
|
|
55
|
+
successPath: a.string().trim().min(1),
|
|
56
|
+
requiresPayment: a.boolean(),
|
|
57
|
+
checkoutSessionId: a.string().trim().min(1).max(256).optional()
|
|
57
58
|
}).optional()
|
|
58
59
|
});
|
|
59
60
|
//#endregion
|
|
60
|
-
export {
|
|
61
|
+
export { o as ROUTE, c as requestBaseSchema, s as requestCheckoutItemSchema, l as requestDeliveryRefinement, u as requestSchema, d as responseSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { timeOfDaySchema as e } from "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
|
|
2
|
-
import { publicBookingEngineConfigurationSchema as t } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-
|
|
3
|
-
import "./chunks/pkg/booking-engine/dist/schemas-
|
|
2
|
+
import { publicBookingEngineConfigurationSchema as t } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-BwWn9aK0.js";
|
|
3
|
+
import "./chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
|
|
4
4
|
import { STOREFRONT_I18N_LANGUAGE_CODES as n } from "./i18n/languages.js";
|
|
5
5
|
import { z as r } from "zod";
|
|
6
6
|
//#region src/storefrontSchemas.ts
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z as e } from "zod";
|
|
2
|
-
//#region ../booking-engine/dist/models/types.js
|
|
3
|
-
var t = e.string().min(1, "Identifier cannot be empty"), n = e.string().trim().regex(/^[0-9A-HJKMNP-TV-Z]{26}$/i, "Identifier must be a ULID"), r = e.string().regex(/^[a-fA-F0-9]{24}$/, "Identifier must be a MongoDB ObjectId"), i = e.string().min(1, "Record key cannot be empty"), a = e.string().datetime({
|
|
4
|
-
offset: !0,
|
|
5
|
-
message: "Value must be an ISO-8601 timestamp"
|
|
6
|
-
}), o = e.record(i, e.union([e.boolean(), e.number()]));
|
|
7
|
-
//#endregion
|
|
8
|
-
export { o as booleanNumberRecordSchema, t as identifierSchema, a as isoDateTimeSchema, i as nonEmptyKeySchema, r as objectIdStringSchema, n as ulidStringSchema };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createLocalizedStringEntry as e, getLocalizedStringValue as t, localizedStringArraySchema as n, localizedStringEntrySchema as r, localizedStringSchema as i } from "./models/LocalizedString-D_TRgAdr.js";
|
|
2
|
-
import { currencyCodeSchema as a, currencyMinorUnitDigits as o, majorToMinor as s, minorToMajor as c, moneyMinorSchema as l, signedMoneyMinorSchema as u } from "./schemas/money-CVoCY4of.js";
|
|
3
|
-
import { priceSchema as d, priceUnitSchema as f } from "./models/Price-DCAgqkKh.js";
|
|
4
|
-
import { productIdSchema as p } from "./schemas/product-id--yyUTH1Y.js";
|
|
5
|
-
import { DEFAULT_PRODUCT_KIND as m, PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as h, PRODUCT_VARIANT_CODE_MAX_LENGTH as g, accessoryProductSchema as _, bikeProductSchema as v, eBikeProductSchema as y, isProductVariantCodeIdentifierKind as b, productInsuranceSchema as x, productKindSchema as S, productSchema as C, productStorefrontDisplayModeSchema as w, productVariantAttributeSchema as T, productVariantCodeSchema as E, productVariantIdentifierSchema as D, productVariantSchema as O } from "./models/Product.shared-CWP_qule.js";
|
|
6
|
-
import { richTextJsonDocSchema as k, richTextSchema as A, richTextVersionSchema as j } from "./schemas/rich-text-DTRh7U3z.js";
|
|
7
|
-
import { isoDateSchema as M, shopConfigurationSchema as N, shopExtraTimeSlotRuleSchema as P, shopOpeningDayIndexSchema as F, shopOpeningDaySchema as I, shopOpeningHoursOverrideSchema as L, shopOpeningHoursPeriodSchema as R, shopOpeningSlotSchema as z, timeOfDaySchema as B } from "./schemas/shop-opening-hours-BlLD1gfz.js";
|
|
8
|
-
import { DEFAULT_CANCELLATION_POLICY as V, DEFAULT_PAYMENT_POLICIES as H, cancellationPolicySchema as U, cancellationPolicyTierSchema as W, paymentPoliciesSchema as G } from "./schemas/booking-engine-configuration-LnrhShqm.js";
|
|
9
|
-
import { fulfillmentModeSchema as K, publicBookingEngineConfigurationSchema as q, publicCheckoutConfigurationSchema as J, publicCheckoutDynamicOptionsSchema as Y } from "./schemas/public-booking-engine-configuration-CEM9mexX.js";
|
|
10
|
-
import { DEFAULT_BOOKING_DELIVERY_OPTION as X, bookingCustomerInputSchema as Z, bookingDeliveryOptionSchema as Q, bookingScheduleInputSchema as $, cartItemInputSchema as ee, createBookingInputBaseSchema as te, createBookingInputSchema as ne, resolveBookingDeliveryOption as re, validateBookingDeliveryAddress as ie } from "./schemas/cart-inputs-3lBblkB0.js";
|
|
11
|
-
import { bookingInsuranceConsentSourceSchema as ae, bookingInsuranceItemSnapshotSchema as oe, bookingInsuranceSnapshotSchema as se, buildBookingInsuranceSnapshot as ce, calculateInsuranceCalendarDays as le, insuranceProviderSchema as ue } from "./schemas/insurance-DXc34Bzy.js";
|
|
12
|
-
import { resolveOpeningHoursForDate as de, resolveOpeningHoursPeriodForDate as fe } from "./utils/opening-hours-period-TCyLhzZw.js";
|
|
13
|
-
import "./schemas/base-product-Bde9lJQD.js";
|
|
14
|
-
import { assetIdSchema as pe, baseAssetSchema as me, baseAssetStatusSchema as he } from "./schemas/base-asset-BhIOL2rP.js";
|
|
15
|
-
import { baseBookingItemSchema as ge, baseBookingSchema as _e, baseBookingStateSchema as ve } from "./schemas/base-booking-BJXFzDM5.js";
|
|
16
|
-
export { X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, _ as accessoryProductSchema, pe as assetIdSchema, me as baseAssetSchema, he as baseAssetStatusSchema, ge as baseBookingItemSchema, _e as baseBookingSchema, ve as baseBookingStateSchema, v as bikeProductSchema, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, le as calculateInsuranceCalendarDays, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, y as eBikeProductSchema, K as fulfillmentModeSchema, t as getLocalizedStringValue, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, M as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, 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, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, re as resolveBookingDeliveryOption, de as resolveOpeningHoursForDate, fe as resolveOpeningHoursPeriodForDate, 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, u as signedMoneyMinorSchema, B as timeOfDaySchema, ie as validateBookingDeliveryAddress };
|