@loczer/storefront-sdk 0.153.0 → 0.155.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/BookingPeriodSelector/index.d.ts +1 -1
- package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +25 -4
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +344 -192
- package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -1
- package/dist/components/Footer/businessHoursUtils.js +16 -16
- package/dist/components/StorefrontCartPanel/index.d.ts +2 -1
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -1
- package/dist/components/StorefrontCartPanel/index.js +68 -63
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +1 -0
- package/dist/i18n/fr.d.ts +1 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +1 -0
- package/dist/index.d.ts +78 -35
- package/dist/index.js +103 -100
- package/dist/lib/checkoutVerifyCoupon.d.ts +1 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts.map +1 -1
- package/dist/lib/checkoutVerifyCoupon.js +1 -0
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +56 -51
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +2 -2
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +16 -14
- package/dist/storefront.css +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.js +17 -17
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +8 -11
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +52 -86
- package/dist/ui/radio-group.d.ts +10 -7
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/radio-group.js +63 -45
- package/dist/ui/select.d.ts +29 -15
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +158 -232
- package/dist/ui/slot.d.ts +3 -7
- package/dist/ui/slot.d.ts.map +1 -1
- package/dist/ui/slot.js +47 -27
- package/dist/ui/theme.d.ts +9 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +24 -0
- package/dist/ui/tooltip.d.ts +30 -13
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +89 -60
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { storefrontCheckoutModeSchema as p, storefrontConfigurationSchema as h, storefrontContentSchema as d, storefrontFaqItemSchema as g, storefrontFaqSchema as T, storefrontFulfillmentModeSchema as
|
|
2
|
+
import { storefrontCheckoutModeSchema as p, storefrontConfigurationSchema as h, storefrontContentSchema as d, storefrontFaqItemSchema as g, storefrontFaqSchema as T, storefrontFulfillmentModeSchema as x, storefrontLocalizedRichTextSchema as P, storefrontModalMessageSchema as R, storefrontModulesSchema as D, storefrontReviewsModuleSchema as C, storefrontRichTextSchema as A, storefrontSettingsSchema as b, storefrontShopSchema as O, storefrontStatusSchema as E, storefrontWorkspaceSchema as k } from "./storefrontSchemas.js";
|
|
3
3
|
import { DEFAULT_STOREFRONT_PRESET as B, STOREFRONT_PRESETS as I, getStorefrontPreset as F } from "./data/config.js";
|
|
4
4
|
import { BOOKING_SEARCH_KEYS as M, TIME_OPTIONS as v, applyBookingParamsToSearch as U, createBookingPeriodConfigFromBookingEngineConfiguration as L, createBookingPeriodConfigFromStorefrontConfiguration as N, getBookingDurationLabel as q, getBookingDurationMinutes as V, getBookingParamsFromSearch as z, getBookingSessionStorageKey as H, getDefaultBookingParams as K, getDefaultBookingParamsForStorefrontConfiguration as W, pickBookingSearchParams as w, readBookingSearchParamsFromSessionStorage as G, readBookingSearchParamsFromStorage as J, resolveBookingSearchParams as Y, resolveBookingSearchParamsFromSessionStorage as j, writeBookingSearchParamsToSessionStorage as Q, writeBookingSearchParamsToStorage as X } from "./lib/booking.js";
|
|
5
5
|
import { StorefrontCartProvider as $, useStorefrontCart as ee } from "./lib/cart.js";
|
|
6
6
|
import { buildStorefrontCartSummary as te } from "./lib/cartSummary.js";
|
|
7
7
|
import { buildStorefrontProductSlug as ae, compareStorefrontAccessoryProducts as ce, compareStorefrontBikeProducts as ne, findStorefrontProduct as ie, findStorefrontProductBySlug as me, getStorefrontBaseDailyRateMinor as Se, getStorefrontCheckoutProductId as se, getStorefrontRepresentedVariantId as ue, toStorefrontAccessoryProducts as le, toStorefrontBikeProducts as fe } from "./lib/products.js";
|
|
8
8
|
import { buildDailyPriceRows as he, buildPriceTierLabels as de, calculateDailyPriceForQuantity as ge, formatStorefrontPriceMinor as Te } from "./lib/pricing.js";
|
|
9
|
-
import { formatPriceMinor as
|
|
9
|
+
import { formatPriceMinor as Pe, getAvailabilityVariant as Re, getMinDayPriceMinor as De } from "./lib/utils.js";
|
|
10
10
|
import { ROUTE as Ae, requestSchema as be, responseSchema as Oe } from "./lib/contactForm.js";
|
|
11
11
|
import { buildWhatsAppHref as ke, resolveStorefrontWhatsAppContact as ye, resolveStorefrontWhatsAppHref as Be } from "./lib/whatsapp.js";
|
|
12
12
|
import { ROUTE as Fe, requestDeliveryRefinement as _e, requestCheckoutItemSchema as Me, requestBaseSchema as ve, requestSchema as Ue, responseSchema as Le } from "./lib/checkoutSubmit.js";
|
|
13
13
|
import { ROUTE as qe, requestSchema as Ve, responseSchema as ze, storefrontPublicAccessoryProductSchema as He, storefrontPublicBikeAvailabilityStatusSchema as Ke, storefrontPublicBikeProductSchema as We, storefrontPublicProductDisplayModeSchema as we, storefrontPublicProductPriceSchema as Ge, storefrontPublicProductVariantAttributeSchema as Je, storefrontPublicProductVariantIdentifierSchema as Ye, storefrontPublicProductVariantSchema as je } from "./lib/storefrontProducts.js";
|
|
14
14
|
import { ROUTE as Xe, buildStorefrontAvailabilityKey as Ze, doesStorefrontAvailabilityDisplaySoldOut as $e, getStorefrontAvailabilityIssue as eo, getStorefrontAvailabilityStatus as oo, isStorefrontAvailabilityInsufficient as to, publicAvailabilityDisplayModeSchema as ro, shouldBlockStorefrontUnavailableItem as ao, storefrontAvailabilityProductSchema as co, requestSchema as no, responseSchema as io, storefrontAvailabilityScheduleSchema as mo, storefrontPublicAvailabilityRecordSchema as So } from "./lib/storefrontAvailability.js";
|
|
15
15
|
import { ROUTE as uo, buildStorefrontImageUrl as lo, requestSchema as fo } from "./lib/storefrontImage.js";
|
|
16
|
-
import { ROUTE as ho, timeSlotJourneySchema as go, storefrontTimeSlotSchema as To, requestSchema as
|
|
16
|
+
import { ROUTE as ho, timeSlotJourneySchema as go, storefrontTimeSlotSchema as To, requestSchema as xo, responseSchema as Po } from "./lib/storefrontTimeSlots.js";
|
|
17
17
|
import { Layout as Do } from "./components/Layout/index.js";
|
|
18
18
|
import { Footer as Ao } from "./components/Footer/index.js";
|
|
19
19
|
import { Header as Oo } from "./components/Header/index.js";
|
|
@@ -43,7 +43,7 @@ import "react-i18next";
|
|
|
43
43
|
import { getLocalizedEntry as St, getLocalizedValue as st } from "./localization.js";
|
|
44
44
|
import { Badge as lt, badgeVariants as ft } from "./ui/badge.js";
|
|
45
45
|
import { Button as ht, buttonVariants as dt } from "./ui/button.js";
|
|
46
|
-
import { Card as Tt, CardAction as
|
|
46
|
+
import { Card as Tt, CardAction as xt, CardContent as Pt, CardDescription as Rt, CardFooter as Dt, CardHeader as Ct, CardTitle as At } from "./ui/card.js";
|
|
47
47
|
import { loader as Ot, useOptionalStorefront as Et, useStorefront as kt, useStorefrontConfig as yt, useStorefrontProducts as Bt, useStorefrontWorkspaceLanguage as It } from "./StorefrontProvider.js";
|
|
48
48
|
import { RadioGroup as _t, RadioGroupItem as Mt } from "./ui/radio-group.js";
|
|
49
49
|
import "./chunks/pkg/ui/dist/ResponsiveDialog-D8YzB_3J.js";
|
|
@@ -57,51 +57,51 @@ import "./pages/checkout/types.js";
|
|
|
57
57
|
import { accessories as jt } from "./data/accessories.js";
|
|
58
58
|
import { default as Xt } from "./data/bikes.js";
|
|
59
59
|
import { contractSaleDocumentAcceptanceLevelSchema as $t, contractSaleDocumentAcceptanceRecordSchema as er, contractSaleDocumentAcceptanceSchema as or, contractSaleDocumentAddressSchema as tr, contractSaleDocumentContactSchema as rr, contractSaleDocumentKindSchema as ar, contractSaleDocumentLanguageCodeSchema as cr, contractSaleDocumentLanguageSchema as nr, contractSaleDocumentLineItemSchema as ir, contractSaleDocumentSchema as mr, contractSaleDocumentSignatureSchema as Sr } from "./lib/contractSaleDocument.js";
|
|
60
|
-
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as ur, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as lr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as fr, acceptContractSaleDocumentRequestSchema as pr, acceptContractSaleDocumentResponseSchema as hr, contractSaleDocumentAcceptanceInputSchema as dr, contractSaleDocumentAcceptanceRecordInputSchema as gr, contractSaleDocumentApiAcceptanceRecordSchema as Tr, contractSaleDocumentApiAcceptanceSchema as
|
|
60
|
+
import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as ur, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as lr, GET_CONTRACT_SALE_DOCUMENT_ROUTE as fr, acceptContractSaleDocumentRequestSchema as pr, acceptContractSaleDocumentResponseSchema as hr, contractSaleDocumentAcceptanceInputSchema as dr, contractSaleDocumentAcceptanceRecordInputSchema as gr, contractSaleDocumentApiAcceptanceRecordSchema as Tr, contractSaleDocumentApiAcceptanceSchema as xr, contractSaleDocumentApiSchema as Pr, contractSaleDocumentApiSignatureSchema as Rr, contractSaleDocumentReferenceSchema as Dr, contractSaleDocumentReferenceTypeSchema as Cr, contractSaleDocumentSignatureInputSchema as Ar, downloadContractSaleDocumentPdfRequestSchema as br, getContractSaleDocumentRequestSchema as Or, getContractSaleDocumentResponseSchema as Er } from "./lib/contractSaleDocumentApi.js";
|
|
61
61
|
import { storefront as yr } from "./i18n/en.js";
|
|
62
62
|
import { storefront as Ir } from "./i18n/fr.js";
|
|
63
63
|
import { default as _r } from "./routes.js";
|
|
64
64
|
import { Label as vr } from "./ui/label.js";
|
|
65
|
-
import { Select as Lr, SelectContent as Nr, SelectGroup as qr,
|
|
66
|
-
import { bookingCustomerInputSchema as
|
|
67
|
-
import { PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as
|
|
68
|
-
import { createLocalizedStringEntry as
|
|
69
|
-
import { priceSchema as
|
|
70
|
-
import { baseAssetSchema as
|
|
71
|
-
import { baseBookingItemSchema as
|
|
72
|
-
import { richTextJsonDocSchema as
|
|
73
|
-
import { currencyCodeSchema as
|
|
74
|
-
import { isoDateSchema as
|
|
75
|
-
import { fulfillmentModeSchema as
|
|
76
|
-
import { DEFAULT_PAYMENT_POLICIES as
|
|
77
|
-
import { BookingEndDateField as
|
|
78
|
-
import { BookingEndTimeField as
|
|
79
|
-
import { BookingPeriodProvider as
|
|
80
|
-
import { BookingStartDateField as
|
|
81
|
-
import { BookingStartTimeField as
|
|
65
|
+
import { Select as Lr, SelectContent as Nr, SelectGroup as qr, SelectIcon as Vr, SelectItem as zr, SelectItemIndicator as Hr, SelectItemText as Kr, SelectLabel as Wr, SelectScrollDownButton as wr, SelectScrollUpButton as Gr, SelectSeparator as Jr, SelectTrigger as Yr, SelectValue as jr } from "./ui/select.js";
|
|
66
|
+
import { bookingCustomerInputSchema as Xr, bookingDeliveryOptionSchema as Zr, bookingScheduleInputSchema as $r, cartItemInputSchema as ea, createBookingInputBaseSchema as oa, createBookingInputSchema as ta, validateBookingDeliveryAddress as ra } from "./chunks/pkg/booking-engine/dist/schemas/cart-inputs-ByBK0IVJ.js";
|
|
67
|
+
import { PRODUCT_VARIANT_CODE_IDENTIFIER_KIND as ca, PRODUCT_VARIANT_CODE_MAX_LENGTH as na, accessoryProductSchema as ia, bikeProductSchema as ma, eBikeProductSchema as Sa, isProductVariantCodeIdentifierKind as sa, productKindSchema as ua, productSchema as la, productStorefrontDisplayModeSchema as fa, productVariantAttributeSchema as pa, productVariantCodeSchema as ha, productVariantIdentifierSchema as da, productVariantSchema as ga } from "./chunks/pkg/booking-engine/dist/models/Product.shared-BiDGmurZ.js";
|
|
68
|
+
import { createLocalizedStringEntry as xa, getLocalizedStringValue as Pa, localizedStringArraySchema as Ra, localizedStringEntrySchema as Da, localizedStringSchema as Ca } from "./chunks/pkg/booking-engine/dist/models/LocalizedString--6q77SPQ.js";
|
|
69
|
+
import { priceSchema as ba, priceUnitSchema as Oa } from "./chunks/pkg/booking-engine/dist/models/Price-BlFRDHXV.js";
|
|
70
|
+
import { baseAssetSchema as ka, baseAssetStatusSchema as ya } from "./chunks/pkg/booking-engine/dist/schemas/base-asset-GJ9eIvIL.js";
|
|
71
|
+
import { baseBookingItemSchema as Ia, baseBookingSchema as Fa, baseBookingStateSchema as _a } from "./chunks/pkg/booking-engine/dist/schemas/base-booking-D9k8ehGi.js";
|
|
72
|
+
import { richTextJsonDocSchema as va, richTextSchema as Ua, richTextVersionSchema as La } from "./chunks/pkg/booking-engine/dist/schemas/rich-text-CqXhNDN3.js";
|
|
73
|
+
import { currencyCodeSchema as qa, currencyMinorUnitDigits as Va, majorToMinor as za, minorToMajor as Ha, moneyMinorSchema as Ka, signedMoneyMinorSchema as Wa } from "./chunks/pkg/booking-engine/dist/schemas/money-Dy4b9loa.js";
|
|
74
|
+
import { isoDateSchema as Ga, shopConfigurationSchema as Ja, shopExtraTimeSlotRuleSchema as Ya, shopOpeningDayIndexSchema as ja, shopOpeningDaySchema as Qa, shopOpeningHoursOverrideSchema as Xa, shopOpeningHoursPeriodSchema as Za, shopOpeningSlotSchema as $a, timeOfDaySchema as ec } from "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-DqNWstqT.js";
|
|
75
|
+
import { fulfillmentModeSchema as tc, publicBookingEngineConfigurationSchema as rc, publicCheckoutConfigurationSchema as ac, publicCheckoutDynamicOptionsSchema as cc } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-DKoak4s5.js";
|
|
76
|
+
import { DEFAULT_PAYMENT_POLICIES as ic, paymentPoliciesSchema as mc } from "./chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-BKlzwJJX.js";
|
|
77
|
+
import { BookingEndDateField as sc } from "./components/BookingPeriodSelector/components/BookingEndDateField.js";
|
|
78
|
+
import { BookingEndTimeField as lc } from "./components/BookingPeriodSelector/components/BookingEndTimeField.js";
|
|
79
|
+
import { BookingPeriodProvider as pc, useBookingPeriod as hc } from "./components/BookingPeriodSelector/BookingPeriodContext.js";
|
|
80
|
+
import { BookingStartDateField as gc } from "./components/BookingPeriodSelector/components/BookingStartDateField.js";
|
|
81
|
+
import { BookingStartTimeField as xc } from "./components/BookingPeriodSelector/components/BookingStartTimeField.js";
|
|
82
82
|
export {
|
|
83
83
|
ur as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE,
|
|
84
84
|
wo as AboutSection,
|
|
85
85
|
M as BOOKING_SEARCH_KEYS,
|
|
86
86
|
lt as Badge,
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
sc as BookingEndDateField,
|
|
88
|
+
lc as BookingEndTimeField,
|
|
89
89
|
Lo as BookingFlowSteps,
|
|
90
|
-
|
|
90
|
+
pc as BookingPeriodProvider,
|
|
91
91
|
vo as BookingPeriodSelector,
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
gc as BookingStartDateField,
|
|
93
|
+
xc as BookingStartTimeField,
|
|
94
94
|
ht as Button,
|
|
95
95
|
Tt as Card,
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
xt as CardAction,
|
|
97
|
+
Pt as CardContent,
|
|
98
98
|
Rt as CardDescription,
|
|
99
99
|
Dt as CardFooter,
|
|
100
100
|
Ct as CardHeader,
|
|
101
101
|
At as CardTitle,
|
|
102
102
|
zo as ContactSection,
|
|
103
103
|
ct as ContractSaleDocument,
|
|
104
|
-
|
|
104
|
+
ic as DEFAULT_PAYMENT_POLICIES,
|
|
105
105
|
B as DEFAULT_STOREFRONT_PRESET,
|
|
106
106
|
lr as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE,
|
|
107
107
|
ko as DelayedPlaceholder,
|
|
@@ -120,8 +120,8 @@ export {
|
|
|
120
120
|
Ut as Input,
|
|
121
121
|
vr as Label,
|
|
122
122
|
Do as Layout,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
ca as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND,
|
|
124
|
+
na as PRODUCT_VARIANT_CODE_MAX_LENGTH,
|
|
125
125
|
Io as PlatformFooter,
|
|
126
126
|
_o as PoweredByLoczerBadge,
|
|
127
127
|
ot as ProductPriceBadge,
|
|
@@ -138,13 +138,16 @@ export {
|
|
|
138
138
|
Lr as Select,
|
|
139
139
|
Nr as SelectContent,
|
|
140
140
|
qr as SelectGroup,
|
|
141
|
-
Vr as
|
|
142
|
-
zr as
|
|
143
|
-
Hr as
|
|
144
|
-
Kr as
|
|
145
|
-
Wr as
|
|
146
|
-
wr as
|
|
147
|
-
Gr as
|
|
141
|
+
Vr as SelectIcon,
|
|
142
|
+
zr as SelectItem,
|
|
143
|
+
Hr as SelectItemIndicator,
|
|
144
|
+
Kr as SelectItemText,
|
|
145
|
+
Wr as SelectLabel,
|
|
146
|
+
wr as SelectScrollDownButton,
|
|
147
|
+
Gr as SelectScrollUpButton,
|
|
148
|
+
Jr as SelectSeparator,
|
|
149
|
+
Yr as SelectTrigger,
|
|
150
|
+
jr as SelectValue,
|
|
148
151
|
Xo as StepSectionTitle,
|
|
149
152
|
$o as StorefrontCartPanel,
|
|
150
153
|
$ as StorefrontCartProvider,
|
|
@@ -155,19 +158,19 @@ export {
|
|
|
155
158
|
pr as acceptContractSaleDocumentRequestSchema,
|
|
156
159
|
hr as acceptContractSaleDocumentResponseSchema,
|
|
157
160
|
jt as accessories,
|
|
158
|
-
|
|
161
|
+
ia as accessoryProductSchema,
|
|
159
162
|
U as applyBookingParamsToSearch,
|
|
160
163
|
ft as badgeVariants,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
ka as baseAssetSchema,
|
|
165
|
+
ya as baseAssetStatusSchema,
|
|
166
|
+
Ia as baseBookingItemSchema,
|
|
167
|
+
Fa as baseBookingSchema,
|
|
168
|
+
_a as baseBookingStateSchema,
|
|
169
|
+
ma as bikeProductSchema,
|
|
167
170
|
Xt as bikes,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
Xr as bookingCustomerInputSchema,
|
|
172
|
+
Zr as bookingDeliveryOptionSchema,
|
|
173
|
+
$r as bookingScheduleInputSchema,
|
|
171
174
|
he as buildDailyPriceRows,
|
|
172
175
|
de as buildPriceTierLabels,
|
|
173
176
|
Ze as buildStorefrontAvailabilityKey,
|
|
@@ -177,7 +180,7 @@ export {
|
|
|
177
180
|
ke as buildWhatsAppHref,
|
|
178
181
|
dt as buttonVariants,
|
|
179
182
|
ge as calculateDailyPriceForQuantity,
|
|
180
|
-
|
|
183
|
+
ea as cartItemInputSchema,
|
|
181
184
|
it as cn,
|
|
182
185
|
ce as compareStorefrontAccessoryProducts,
|
|
183
186
|
ne as compareStorefrontBikeProducts,
|
|
@@ -188,8 +191,8 @@ export {
|
|
|
188
191
|
or as contractSaleDocumentAcceptanceSchema,
|
|
189
192
|
tr as contractSaleDocumentAddressSchema,
|
|
190
193
|
Tr as contractSaleDocumentApiAcceptanceRecordSchema,
|
|
191
|
-
|
|
192
|
-
|
|
194
|
+
xr as contractSaleDocumentApiAcceptanceSchema,
|
|
195
|
+
Pr as contractSaleDocumentApiSchema,
|
|
193
196
|
Rr as contractSaleDocumentApiSignatureSchema,
|
|
194
197
|
rr as contractSaleDocumentContactSchema,
|
|
195
198
|
ar as contractSaleDocumentKindSchema,
|
|
@@ -201,21 +204,21 @@ export {
|
|
|
201
204
|
mr as contractSaleDocumentSchema,
|
|
202
205
|
Ar as contractSaleDocumentSignatureInputSchema,
|
|
203
206
|
Sr as contractSaleDocumentSignatureSchema,
|
|
204
|
-
|
|
205
|
-
|
|
207
|
+
oa as createBookingInputBaseSchema,
|
|
208
|
+
ta as createBookingInputSchema,
|
|
206
209
|
L as createBookingPeriodConfigFromBookingEngineConfiguration,
|
|
207
210
|
N as createBookingPeriodConfigFromStorefrontConfiguration,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
xa as createLocalizedStringEntry,
|
|
212
|
+
qa as currencyCodeSchema,
|
|
213
|
+
Va as currencyMinorUnitDigits,
|
|
211
214
|
$e as doesStorefrontAvailabilityDisplaySoldOut,
|
|
212
215
|
br as downloadContractSaleDocumentPdfRequestSchema,
|
|
213
|
-
|
|
216
|
+
Sa as eBikeProductSchema,
|
|
214
217
|
ie as findStorefrontProduct,
|
|
215
218
|
me as findStorefrontProductBySlug,
|
|
216
|
-
|
|
219
|
+
Pe as formatPriceMinor,
|
|
217
220
|
Te as formatStorefrontPriceMinor,
|
|
218
|
-
|
|
221
|
+
tc as fulfillmentModeSchema,
|
|
219
222
|
Re as getAvailabilityVariant,
|
|
220
223
|
q as getBookingDurationLabel,
|
|
221
224
|
V as getBookingDurationMinutes,
|
|
@@ -226,7 +229,7 @@ export {
|
|
|
226
229
|
K as getDefaultBookingParams,
|
|
227
230
|
W as getDefaultBookingParamsForStorefrontConfiguration,
|
|
228
231
|
St as getLocalizedEntry,
|
|
229
|
-
|
|
232
|
+
Pa as getLocalizedStringValue,
|
|
230
233
|
st as getLocalizedValue,
|
|
231
234
|
De as getMinDayPriceMinor,
|
|
232
235
|
eo as getStorefrontAvailabilityIssue,
|
|
@@ -235,31 +238,31 @@ export {
|
|
|
235
238
|
se as getStorefrontCheckoutProductId,
|
|
236
239
|
F as getStorefrontPreset,
|
|
237
240
|
ue as getStorefrontRepresentedVariantId,
|
|
238
|
-
|
|
241
|
+
sa as isProductVariantCodeIdentifierKind,
|
|
239
242
|
to as isStorefrontAvailabilityInsufficient,
|
|
240
|
-
|
|
243
|
+
Ga as isoDateSchema,
|
|
241
244
|
Ot as loader,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
Ra as localizedStringArraySchema,
|
|
246
|
+
Da as localizedStringEntrySchema,
|
|
247
|
+
Ca as localizedStringSchema,
|
|
248
|
+
za as majorToMinor,
|
|
249
|
+
Ha as minorToMajor,
|
|
250
|
+
Ka as moneyMinorSchema,
|
|
251
|
+
mc as paymentPoliciesSchema,
|
|
249
252
|
w as pickBookingSearchParams,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
253
|
+
ba as priceSchema,
|
|
254
|
+
Oa as priceUnitSchema,
|
|
255
|
+
ua as productKindSchema,
|
|
256
|
+
la as productSchema,
|
|
257
|
+
fa as productStorefrontDisplayModeSchema,
|
|
258
|
+
pa as productVariantAttributeSchema,
|
|
259
|
+
ha as productVariantCodeSchema,
|
|
260
|
+
da as productVariantIdentifierSchema,
|
|
261
|
+
ga as productVariantSchema,
|
|
259
262
|
ro as publicAvailabilityDisplayModeSchema,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
+
rc as publicBookingEngineConfigurationSchema,
|
|
264
|
+
ac as publicCheckoutConfigurationSchema,
|
|
265
|
+
cc as publicCheckoutDynamicOptionsSchema,
|
|
263
266
|
G as readBookingSearchParamsFromSessionStorage,
|
|
264
267
|
J as readBookingSearchParamsFromStorage,
|
|
265
268
|
be as requestSchema,
|
|
@@ -268,18 +271,18 @@ export {
|
|
|
268
271
|
ye as resolveStorefrontWhatsAppContact,
|
|
269
272
|
Be as resolveStorefrontWhatsAppHref,
|
|
270
273
|
Oe as responseSchema,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
274
|
+
va as richTextJsonDocSchema,
|
|
275
|
+
Ua as richTextSchema,
|
|
276
|
+
La as richTextVersionSchema,
|
|
277
|
+
Ja as shopConfigurationSchema,
|
|
278
|
+
Ya as shopExtraTimeSlotRuleSchema,
|
|
279
|
+
ja as shopOpeningDayIndexSchema,
|
|
280
|
+
Qa as shopOpeningDaySchema,
|
|
281
|
+
Xa as shopOpeningHoursOverrideSchema,
|
|
282
|
+
Za as shopOpeningHoursPeriodSchema,
|
|
283
|
+
$a as shopOpeningSlotSchema,
|
|
281
284
|
ao as shouldBlockStorefrontUnavailableItem,
|
|
282
|
-
|
|
285
|
+
Wa as signedMoneyMinorSchema,
|
|
283
286
|
co as storefrontAvailabilityProductSchema,
|
|
284
287
|
no as storefrontAvailabilityRequestSchema,
|
|
285
288
|
io as storefrontAvailabilityResponseSchema,
|
|
@@ -296,9 +299,9 @@ export {
|
|
|
296
299
|
g as storefrontFaqItemSchema,
|
|
297
300
|
T as storefrontFaqSchema,
|
|
298
301
|
Ir as storefrontFr,
|
|
299
|
-
|
|
302
|
+
x as storefrontFulfillmentModeSchema,
|
|
300
303
|
fo as storefrontImageRequestSchema,
|
|
301
|
-
|
|
304
|
+
P as storefrontLocalizedRichTextSchema,
|
|
302
305
|
R as storefrontModalMessageSchema,
|
|
303
306
|
D as storefrontModulesSchema,
|
|
304
307
|
Ve as storefrontProductsRequestSchema,
|
|
@@ -320,13 +323,13 @@ export {
|
|
|
320
323
|
E as storefrontStatusSchema,
|
|
321
324
|
go as storefrontTimeSlotJourneySchema,
|
|
322
325
|
To as storefrontTimeSlotSchema,
|
|
323
|
-
|
|
324
|
-
|
|
326
|
+
xo as storefrontTimeSlotsRequestSchema,
|
|
327
|
+
Po as storefrontTimeSlotsResponseSchema,
|
|
325
328
|
k as storefrontWorkspaceSchema,
|
|
326
|
-
|
|
329
|
+
ec as timeOfDaySchema,
|
|
327
330
|
le as toStorefrontAccessoryProducts,
|
|
328
331
|
fe as toStorefrontBikeProducts,
|
|
329
|
-
|
|
332
|
+
hc as useBookingPeriod,
|
|
330
333
|
wt as useFormField,
|
|
331
334
|
Et as useOptionalStorefront,
|
|
332
335
|
kt as useStorefront,
|
|
@@ -335,7 +338,7 @@ export {
|
|
|
335
338
|
Bt as useStorefrontProducts,
|
|
336
339
|
It as useStorefrontWorkspaceLanguage,
|
|
337
340
|
jo as useWhatsAppFloatingButton,
|
|
338
|
-
|
|
341
|
+
ra as validateBookingDeliveryAddress,
|
|
339
342
|
Q as writeBookingSearchParamsToSessionStorage,
|
|
340
343
|
X as writeBookingSearchParamsToStorage
|
|
341
344
|
};
|
|
@@ -27,6 +27,7 @@ export declare const responseSchema: z.ZodObject<{
|
|
|
27
27
|
}>>;
|
|
28
28
|
subtotalMinor: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
totalMinor: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
lateReturnSurchargeMinor: z.ZodOptional<z.ZodNumber>;
|
|
30
31
|
coupon: z.ZodOptional<z.ZodObject<{
|
|
31
32
|
code: z.ZodString;
|
|
32
33
|
priceRuleId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutVerifyCoupon.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutVerifyCoupon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,KAAK,kDAAkD,CAAA;AAEpE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;iBAWxB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAE1D,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"checkoutVerifyCoupon.d.ts","sourceRoot":"","sources":["../../src/lib/checkoutVerifyCoupon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,KAAK,kDAAkD,CAAA;AAEpE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;iBAWxB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;iBAgBzB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -17,6 +17,7 @@ const i = "/api/public/storefront/checkout/verify-coupon", r = o.object({
|
|
|
17
17
|
reason: o.enum(["invalid", "not_applicable"]).optional(),
|
|
18
18
|
subtotalMinor: o.number().int().min(0).optional(),
|
|
19
19
|
totalMinor: o.number().int().min(0).optional(),
|
|
20
|
+
lateReturnSurchargeMinor: o.number().int().min(0).optional(),
|
|
20
21
|
coupon: o.object({
|
|
21
22
|
code: o.string().trim().min(1),
|
|
22
23
|
priceRuleId: o.string().trim().min(1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAuGA,MAAM,CAAC,OAAO,UAAU,YAAY,
|
|
1
|
+
{"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAuGA,MAAM,CAAC,OAAO,UAAU,YAAY,4CA6lBnC"}
|