@ancon/wildcat-utils 1.55.0-check-optimizations.3 → 1.56.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/check/getOrganizedCheckItemModifications.d.ts +2 -2
- package/check/getOrganizedCheckItemModifications.js +1 -1
- package/check/getOrganizedCheckItemModifications.mjs +68 -74
- package/check/getUniqueCheckItemModificationId.d.ts +2 -2
- package/check/getUniqueCheckItemModificationId.js +1 -1
- package/check/getUniqueCheckItemModificationId.mjs +5 -5
- package/checkout/getCheckoutAdyenAmount.d.ts +9 -0
- package/checkout/getCheckoutAdyenAmount.js +1 -0
- package/checkout/getCheckoutAdyenAmount.mjs +13 -0
- package/checkout/getCheckoutGrandTotalAmount.d.ts +6 -2
- package/checkout/getCheckoutGrandTotalAmount.js +1 -1
- package/checkout/getCheckoutGrandTotalAmount.mjs +8 -6
- package/checkout/getCheckoutMinimumOrderDifferenceAmount.d.ts +7 -0
- package/checkout/getCheckoutMinimumOrderDifferenceAmount.js +1 -0
- package/checkout/getCheckoutMinimumOrderDifferenceAmount.mjs +12 -0
- package/checkout/index.d.ts +3 -1
- package/checkout/index.js +1 -1
- package/checkout/index.mjs +59 -55
- package/checkout/types.d.ts +5 -0
- package/index.js +1 -1
- package/index.mjs +231 -225
- package/multilingual/createLocalizedCheckDetails.d.ts +2 -2
- package/multilingual/createLocalizedCheckDetails.js +1 -1
- package/multilingual/createLocalizedCheckDetails.mjs +27 -31
- package/package.json +16 -1
- package/signalr/SignalR.d.ts +3 -1
- package/signalr/SignalR.js +1 -1
- package/signalr/SignalR.mjs +93 -86
- package/signalr/createUseSignalRHook.js +1 -1
- package/signalr/createUseSignalRHook.mjs +38 -36
- package/signalr/index.d.ts +4 -3
- package/signalr/index.js +1 -1
- package/signalr/index.mjs +6 -4
- package/signalr/types.d.ts +12 -0
- package/signalr/useSignalRGroup.d.ts +13 -0
- package/signalr/useSignalRGroup.js +1 -0
- package/signalr/useSignalRGroup.mjs +13 -0
package/index.mjs
CHANGED
|
@@ -7,12 +7,12 @@ import { default as ee } from "./shared/gramToKiloGram.mjs";
|
|
|
7
7
|
import { default as re } from "./shared/hooks/usePrevious.mjs";
|
|
8
8
|
import { default as ae } from "./shared/hooks/useMountedRef.mjs";
|
|
9
9
|
import { default as se } from "./outlet/getListOutletOpeningHoursTable.mjs";
|
|
10
|
-
import { default as
|
|
10
|
+
import { default as de } from "./outlet/getOutletTagInformation.mjs";
|
|
11
11
|
import { default as me } from "./outlet/getOutletAvailabilityInfo.mjs";
|
|
12
12
|
import { default as pe } from "./outlet/getOutletOfflineOrderFormats.mjs";
|
|
13
13
|
import { default as ne } from "./outlet/getOutletAvailableOrderFormats.mjs";
|
|
14
14
|
import { default as ge } from "./outlet/getOutletFormattedDistance.mjs";
|
|
15
|
-
import { default as
|
|
15
|
+
import { default as Ce } from "./outlet/isOutletAcceptingPreOrders.mjs";
|
|
16
16
|
import { default as ke } from "./outlet/isOutletAcceptingPreOrdersWhenClosed.mjs";
|
|
17
17
|
import { default as Pe } from "./outlet/getOutletDeliveryFee.mjs";
|
|
18
18
|
import { default as Ae } from "./outlet/getOutletTodayOpeningTimes.mjs";
|
|
@@ -34,12 +34,12 @@ import { default as et } from "./outlet/getOutletNextOpeningTagInformation.mjs";
|
|
|
34
34
|
import { default as rt } from "./outlet/getOutletCurrentAvailabilityInfo.mjs";
|
|
35
35
|
import { default as at } from "./outlet/getExpressAvailableOrderFormats.mjs";
|
|
36
36
|
import { default as st } from "./outlet/getExpressNextAvailabilityShiftTime.mjs";
|
|
37
|
-
import { default as
|
|
37
|
+
import { default as dt } from "./outlet/getOrderFormatAOTipSettings.mjs";
|
|
38
38
|
import { default as mt } from "./outlet/isAOTippingEnabledForOrderFormat.mjs";
|
|
39
39
|
import { default as pt } from "./outlet/isMenuTreeHierarchyProductAvailable.mjs";
|
|
40
40
|
import { default as nt } from "./outlet/getOutletMenuProductsSortCriteria.mjs";
|
|
41
41
|
import { default as gt } from "./outlet/getOutletNextServiceTimeOffset.mjs";
|
|
42
|
-
import { default as
|
|
42
|
+
import { default as Ct } from "./versioning/isVersionALessThanB.mjs";
|
|
43
43
|
import { default as kt } from "./versioning/cleanVersionString.mjs";
|
|
44
44
|
import { default as Pt } from "./api/getUrlAndParams.mjs";
|
|
45
45
|
import { default as At } from "./api/getEndpointWithVersion.mjs";
|
|
@@ -59,12 +59,12 @@ import { default as er } from "./string/getParsedJSONFromString.mjs";
|
|
|
59
59
|
import { default as rr } from "./string/base64Encode.mjs";
|
|
60
60
|
import { default as ar } from "./string/base64Decode.mjs";
|
|
61
61
|
import { default as sr } from "./string/getNameInitials.mjs";
|
|
62
|
-
import { default as
|
|
62
|
+
import { default as dr } from "./color/lighten.mjs";
|
|
63
63
|
import { default as mr } from "./color/brighten.mjs";
|
|
64
64
|
import { default as pr } from "./color/darken.mjs";
|
|
65
65
|
import { default as nr } from "./color/isDarkBackground.mjs";
|
|
66
66
|
import { default as gr } from "./color/isColorsReadable.mjs";
|
|
67
|
-
import { default as
|
|
67
|
+
import { default as Cr } from "./color/isColorsEqual.mjs";
|
|
68
68
|
import { default as kr } from "./color/getLuminance.mjs";
|
|
69
69
|
import { default as Pr } from "./color/toHsl.mjs";
|
|
70
70
|
import { default as Ar } from "./color/hslToHex.mjs";
|
|
@@ -90,111 +90,114 @@ import { default as lo } from "./checkout/getCheckoutItemModifications.mjs";
|
|
|
90
90
|
import { default as io } from "./checkout/getCheckoutProductName.mjs";
|
|
91
91
|
import { TranslationKey as xo, default as no } from "./checkout/getCheckoutOrderStatusTexts.mjs";
|
|
92
92
|
import { default as go } from "./checkout/getCheckoutItemsMappedByTicketItemStatus.mjs";
|
|
93
|
-
import { default as
|
|
93
|
+
import { default as Co } from "./checkout/isCheckoutOrderSummary.mjs";
|
|
94
94
|
import { default as ko } from "./checkout/buildCheckoutRequestItem.mjs";
|
|
95
95
|
import { default as Po } from "./checkout/getCheckoutGrandTotalAmount.mjs";
|
|
96
|
-
import { default as Ao } from "./checkout/
|
|
97
|
-
import { default as Io } from "./checkout/
|
|
98
|
-
import { default as Ro } from "./checkout/
|
|
99
|
-
import { default as Fo } from "./checkout/
|
|
100
|
-
import { default as Lo } from "./checkout/
|
|
101
|
-
import { default as bo } from "./checkout/
|
|
102
|
-
import { default as Go } from "./checkout/
|
|
103
|
-
import { default as Uo } from "./checkout/
|
|
104
|
-
import {
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as wo } from "./checkout/
|
|
107
|
-
import { default as Jo } from "./checkout/
|
|
108
|
-
import { default as Xo } from "./checkout/
|
|
109
|
-
import { default as Zo } from "./checkout/
|
|
110
|
-
import { default as $o } from "./checkout/
|
|
111
|
-
import { default as ta } from "./checkout/
|
|
112
|
-
import { default as oa } from "./checkout/
|
|
113
|
-
import { default as fa } from "./checkout/
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as la } from "./checkout/
|
|
116
|
-
import { default as ia } from "./checkout/
|
|
117
|
-
import { default as xa } from "./checkout/
|
|
118
|
-
import { default as ca } from "./
|
|
119
|
-
import { default as Ta } from "./
|
|
120
|
-
import { default as
|
|
121
|
-
import { default as Sa } from "./
|
|
122
|
-
import { default as ha } from "./
|
|
123
|
-
import { default as Ea } from "./currency/
|
|
124
|
-
import { default as Ma } from "./
|
|
125
|
-
import { default as ya } from "./
|
|
126
|
-
import { default as Da } from "./inventory/
|
|
127
|
-
import { default as va } from "./inventory/
|
|
128
|
-
import { default as Na } from "./inventory/
|
|
129
|
-
import { default as _a } from "./inventory/
|
|
130
|
-
import { default as Wa } from "./inventory/
|
|
131
|
-
import { default as Ha } from "./inventory/
|
|
132
|
-
import { default as Va } from "./
|
|
133
|
-
import { default as wa } from "./
|
|
134
|
-
import { default as Ja } from "./
|
|
135
|
-
import { default as Xa } from "./
|
|
136
|
-
import { default as Za } from "./
|
|
137
|
-
import { default as $a } from "./error/
|
|
138
|
-
import { default as tf } from "./error/
|
|
139
|
-
import { default as of } from "./error/
|
|
140
|
-
import { default as ff } from "./error/
|
|
141
|
-
import { default as
|
|
142
|
-
import { default as lf } from "./error/
|
|
143
|
-
import { default as pf } from "./error/
|
|
144
|
-
import { default as nf } from "./error/
|
|
145
|
-
import { default as gf } from "./error/
|
|
146
|
-
import { default as
|
|
147
|
-
import { default as kf } from "./error/
|
|
148
|
-
import { default as Pf } from "./error/
|
|
149
|
-
import {
|
|
150
|
-
import { default as
|
|
151
|
-
import { default as
|
|
152
|
-
import { default as Lf } from "./
|
|
153
|
-
import { default as bf } from "./
|
|
154
|
-
import { default as Gf } from "./hangfire/
|
|
155
|
-
import { default as Uf } from "./
|
|
156
|
-
import { default as Bf } from "./
|
|
157
|
-
import { default as zf } from "./
|
|
158
|
-
import { default as qf } from "./product/
|
|
159
|
-
import { default as Qf } from "./product/
|
|
160
|
-
import { default as Kf } from "./product/
|
|
161
|
-
import { default as Yf } from "./
|
|
162
|
-
import { default as jf } from "./
|
|
163
|
-
import { default as es } from "./
|
|
164
|
-
import { default as rs } from "./
|
|
165
|
-
import { default as as } from "./
|
|
166
|
-
import { default as ss } from "./
|
|
167
|
-
import { default as
|
|
168
|
-
import { default as ms } from "./
|
|
169
|
-
import { default as ps
|
|
170
|
-
import { default as
|
|
171
|
-
import { default as
|
|
172
|
-
import { default as Ss } from "./
|
|
173
|
-
import { default as hs } from "./
|
|
174
|
-
import { default as Es } from "./date/
|
|
175
|
-
import { default as Ms } from "./date/
|
|
176
|
-
import { default as ys } from "./date/
|
|
177
|
-
import { default as Ds } from "./date/
|
|
178
|
-
import { default as vs } from "./
|
|
179
|
-
import { default as Ns } from "./
|
|
180
|
-
import { default as _s } from "./
|
|
181
|
-
import { default as Ws } from "./time/
|
|
182
|
-
import { default as Hs } from "./time/
|
|
183
|
-
import { default as Vs } from "./time/
|
|
184
|
-
import { default as ws } from "./time/
|
|
185
|
-
import { default as Js } from "./time/
|
|
186
|
-
import { default as Xs } from "./time/
|
|
187
|
-
import { default as Zs } from "./time/
|
|
188
|
-
import { default as $s } from "./
|
|
189
|
-
import { default as
|
|
190
|
-
import { default as
|
|
191
|
-
import { default as
|
|
192
|
-
import { default as
|
|
193
|
-
import { default as
|
|
194
|
-
import { default as
|
|
195
|
-
import { default as
|
|
196
|
-
import { default as
|
|
197
|
-
import {
|
|
96
|
+
import { default as Ao } from "./checkout/getCheckoutAdyenAmount.mjs";
|
|
97
|
+
import { default as Io } from "./checkout/getCheckoutMinimumOrderDifferenceAmount.mjs";
|
|
98
|
+
import { default as Ro } from "./checkout/getCheckoutRequestItemFromCheckoutItem.mjs";
|
|
99
|
+
import { default as Fo } from "./checkout/isCheckoutItemsAreEqual.mjs";
|
|
100
|
+
import { default as Lo } from "./checkout/checkoutHasWallet.mjs";
|
|
101
|
+
import { default as bo } from "./checkout/getWalletMetaFromCheckout.mjs";
|
|
102
|
+
import { default as Go } from "./checkout/isPreOrderServiceTime.mjs";
|
|
103
|
+
import { default as Uo } from "./checkout/isPreOrderCheckout.mjs";
|
|
104
|
+
import { default as Bo } from "./checkout/isUpdatingCheckoutAllowed.mjs";
|
|
105
|
+
import { default as zo } from "./checkout/isCheckoutAlreadyPaidStatus.mjs";
|
|
106
|
+
import { CheckoutPaymentErrorTranslationKey as qo, default as wo } from "./checkout/getCheckoutPaymentErrorTranslationTexts.mjs";
|
|
107
|
+
import { default as Jo } from "./checkout/isDeletingCheckoutAllowed.mjs";
|
|
108
|
+
import { default as Xo } from "./checkout/getTotalCheckoutItemsQuantity.mjs";
|
|
109
|
+
import { default as Zo } from "./checkout/getCheckoutPenguinLockersMetaData.mjs";
|
|
110
|
+
import { default as $o } from "./checkout/getUniqueCheckoutPenguinDeliveryCodes.mjs";
|
|
111
|
+
import { default as ta } from "./checkout/isWoltDeliveryInProgress.mjs";
|
|
112
|
+
import { default as oa } from "./checkout/isWalletTopUpCheckoutItem.mjs";
|
|
113
|
+
import { default as fa } from "./checkout/isWalletTopUpCheckout.mjs";
|
|
114
|
+
import { default as ua } from "./checkout/getCheckoutWalletTopUpMetaData.mjs";
|
|
115
|
+
import { default as la } from "./checkout/isGiftCardCheckout.mjs";
|
|
116
|
+
import { default as ia } from "./checkout/isGiftCardCheckoutItem.mjs";
|
|
117
|
+
import { default as xa } from "./checkout/getCheckoutGiftCardMetaData.mjs";
|
|
118
|
+
import { default as ca } from "./checkout/getCheckoutGiftCardRecipientsMetaData.mjs";
|
|
119
|
+
import { default as Ta } from "./checkout/getCheckoutGuestGroupsMetaData.mjs";
|
|
120
|
+
import { default as Oa } from "./order/getCheckOrderItemsMappedByTicketItemStatus.mjs";
|
|
121
|
+
import { default as Sa } from "./order/getCheckOrderMinimumStatusTicketItem.mjs";
|
|
122
|
+
import { default as ha } from "./order/getMultiProductSubProductsTicketItems.mjs";
|
|
123
|
+
import { default as Ea } from "./currency/getFormattedCurrency.mjs";
|
|
124
|
+
import { default as Ma } from "./currency/getFormattedCurrencyPostfix.mjs";
|
|
125
|
+
import { default as ya } from "./currency/placeCurrencySymbol.mjs";
|
|
126
|
+
import { default as Da } from "./inventory/isDetailedProductOutOfStock.mjs";
|
|
127
|
+
import { default as va } from "./inventory/isDetailedProductVariantOutOfStocks.mjs";
|
|
128
|
+
import { default as Na } from "./inventory/isMenuTreeProductOutOfStock.mjs";
|
|
129
|
+
import { default as _a } from "./inventory/isDetailedProductUpSellsOutOfStock.mjs";
|
|
130
|
+
import { default as Wa } from "./inventory/isUpSellProductOutStock.mjs";
|
|
131
|
+
import { default as Ha } from "./inventory/isDetailedProductOutletStockOutOfStock.mjs";
|
|
132
|
+
import { default as Va } from "./inventory/getDetailedProductVariantStock.mjs";
|
|
133
|
+
import { default as wa } from "./inventory/isAddonProductOutOfStock.mjs";
|
|
134
|
+
import { default as Ja } from "./signalr/createUseSignalRHook.mjs";
|
|
135
|
+
import { default as Xa } from "./signalr/SignalR.mjs";
|
|
136
|
+
import { default as Za } from "./signalr/useSignalRGroup.mjs";
|
|
137
|
+
import { default as $a } from "./error/createCodedError.mjs";
|
|
138
|
+
import { default as tf } from "./error/isCodedError.mjs";
|
|
139
|
+
import { default as of } from "./error/isNetworkError.mjs";
|
|
140
|
+
import { default as ff } from "./error/isLockedError.mjs";
|
|
141
|
+
import { default as uf } from "./error/isNotFoundError.mjs";
|
|
142
|
+
import { default as lf } from "./error/isAPIError.mjs";
|
|
143
|
+
import { default as pf } from "./error/isSerializedAPIError.mjs";
|
|
144
|
+
import { default as nf } from "./error/isSerializedCodedError.mjs";
|
|
145
|
+
import { default as gf } from "./error/serializeError.mjs";
|
|
146
|
+
import { default as Cf } from "./error/getErrorCode.mjs";
|
|
147
|
+
import { default as kf } from "./error/isErrorWithStatusCode.mjs";
|
|
148
|
+
import { default as Pf } from "./error/isBadGatewayError.mjs";
|
|
149
|
+
import { default as Af } from "./error/isServiceUnavailableError.mjs";
|
|
150
|
+
import { default as If } from "./error/isTooManyRequestsError.mjs";
|
|
151
|
+
import { default as Rf } from "./error/isUpgradeRequiredError.mjs";
|
|
152
|
+
import { DEFAULT_RATE_LIMIT_RETRY_AFTER_MS as Ff, RATE_LIMIT_EXCEEDED_CODE as Df, default as Lf } from "./error/getRateLimit.mjs";
|
|
153
|
+
import { default as bf } from "./error/isRateLimitError.mjs";
|
|
154
|
+
import { default as Gf } from "./hangfire/isHangfireResponse.mjs";
|
|
155
|
+
import { default as Uf } from "./hangfire/isHangfireWorkerExpiredOrInvalidError.mjs";
|
|
156
|
+
import { default as Bf } from "./hangfire/createHangfirePoller.mjs";
|
|
157
|
+
import { default as zf } from "./hangfire/createMakeHangfireRequest.mjs";
|
|
158
|
+
import { default as qf } from "./product/extractProductsFromMenuTree.mjs";
|
|
159
|
+
import { default as Qf } from "./product/calculateIngredientsCost.mjs";
|
|
160
|
+
import { default as Kf } from "./product/calculateAddonGroupCost.mjs";
|
|
161
|
+
import { default as Yf } from "./product/getAddonGroupInfoBySettings.mjs";
|
|
162
|
+
import { default as jf } from "./product/calculateWeightProductPrice.mjs";
|
|
163
|
+
import { default as es } from "./product/calculateProductWeightByPrice.mjs";
|
|
164
|
+
import { default as rs } from "./codec/base64URLEncode.mjs";
|
|
165
|
+
import { default as as } from "./codec/base64URLDecode.mjs";
|
|
166
|
+
import { default as ss } from "./hashing/getSHA256Hash.mjs";
|
|
167
|
+
import { default as ds } from "./preOrder/isPreOrderSharable.mjs";
|
|
168
|
+
import { default as ms } from "./preOrder/isPreOrderLink.mjs";
|
|
169
|
+
import { default as ps } from "./preOrder/isGroupPreOrder.mjs";
|
|
170
|
+
import { default as ns } from "./phoneNumber/isPhoneNumberValid.mjs";
|
|
171
|
+
import { default as gs } from "./phoneNumber/formatPhoneNumber.mjs";
|
|
172
|
+
import { default as Cs, isLicenseExpired as Os, isLicenseExtended as ks, isLicenseTerminated as Ss } from "./license/getLicenseUIState.mjs";
|
|
173
|
+
import { default as hs } from "./googleMap/getComponentNameFromGeocoderResult.mjs";
|
|
174
|
+
import { default as Es } from "./date/createLocalTimezoneDate.mjs";
|
|
175
|
+
import { default as Ms } from "./date/createLocalTimezoneMoment.mjs";
|
|
176
|
+
import { default as ys } from "./date/getFormattedUTCDateTime.mjs";
|
|
177
|
+
import { default as Ds } from "./date/convertToLocalTimezone.mjs";
|
|
178
|
+
import { default as vs } from "./date/convertToSpecificTimezone.mjs";
|
|
179
|
+
import { default as Ns } from "./date/getTimezoneUtcOffsetDifference.mjs";
|
|
180
|
+
import { default as _s } from "./date/isDSTShiftPresentInRange.mjs";
|
|
181
|
+
import { default as Ws } from "./time/toMinutes.mjs";
|
|
182
|
+
import { default as Hs } from "./time/getNextTenthMinute.mjs";
|
|
183
|
+
import { default as Vs } from "./time/getPrevNthMinute.mjs";
|
|
184
|
+
import { default as ws } from "./time/getTimeSpanParts.mjs";
|
|
185
|
+
import { default as Js } from "./time/getEndTimeSpanOfTimePeriod.mjs";
|
|
186
|
+
import { default as Xs } from "./time/createTimeSpan.mjs";
|
|
187
|
+
import { default as Zs } from "./time/formatTimeSpan.mjs";
|
|
188
|
+
import { default as $s } from "./time/getDurationBetweenTimeSpans.mjs";
|
|
189
|
+
import { default as tu } from "./time/convertSecondsToTimeSpan.mjs";
|
|
190
|
+
import { default as ou } from "./time/convertTimeSpanToSeconds.mjs";
|
|
191
|
+
import { default as fu } from "./ticketItem/isTicketItemReady.mjs";
|
|
192
|
+
import { default as uu } from "./ticketItem/isTicketItemClosed.mjs";
|
|
193
|
+
import { default as lu } from "./quantity/getFormattedQuantity.mjs";
|
|
194
|
+
import { default as iu } from "./checkAuditLog/isPayAndGoCheckAuditLogAction.mjs";
|
|
195
|
+
import { default as xu } from "./checkAuditLog/getCheckAuditLogProductName.mjs";
|
|
196
|
+
import { default as cu } from "./zReport/getZReportPaymentMethodDisplayName.mjs";
|
|
197
|
+
import { default as Tu } from "./multilingual/createLocalizedCheckDetails.mjs";
|
|
198
|
+
import { default as Ou, deobfuscateMPSQrPayload as ku } from "./mpsGiftCard/decodeMPSGiftCardQr.mjs";
|
|
199
|
+
import { default as Pu } from "./mpsGiftCard/resolveMPSGiftCardScanAction.mjs";
|
|
200
|
+
import { MPSQrScanActionType as Au } from "./mpsGiftCard/types.mjs";
|
|
198
201
|
import "react";
|
|
199
202
|
import "moment";
|
|
200
203
|
import "@ancon/wildcat-types";
|
|
@@ -236,95 +239,97 @@ import "./license/types.mjs";
|
|
|
236
239
|
import "bson";
|
|
237
240
|
export {
|
|
238
241
|
qt as APIFilterBuilder,
|
|
239
|
-
|
|
240
|
-
|
|
242
|
+
qo as CheckoutPaymentErrorTranslationKey,
|
|
243
|
+
Ff as DEFAULT_RATE_LIMIT_RETRY_AFTER_MS,
|
|
241
244
|
Ur as LogLevel,
|
|
242
245
|
Gr as Logger,
|
|
243
|
-
|
|
244
|
-
|
|
246
|
+
Au as MPSQrScanActionType,
|
|
247
|
+
Df as RATE_LIMIT_EXCEEDED_CODE,
|
|
245
248
|
Lt as RATE_LIMIT_MAX_ATTEMPTS,
|
|
246
249
|
vt as RATE_LIMIT_MAX_BACKOFF_MS,
|
|
247
250
|
bt as RATE_LIMIT_MAX_RETRY_AFTER_MS,
|
|
248
|
-
|
|
251
|
+
Xa as SignalR,
|
|
249
252
|
xo as TranslationKey,
|
|
250
253
|
ar as base64Decode,
|
|
251
254
|
rr as base64Encode,
|
|
252
|
-
|
|
253
|
-
|
|
255
|
+
as as base64URLDecode,
|
|
256
|
+
rs as base64URLEncode,
|
|
254
257
|
V as bitmaskToIds,
|
|
255
258
|
mr as brighten,
|
|
256
259
|
ko as buildCheckoutRequestItem,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
Kf as calculateAddonGroupsCost,
|
|
261
|
+
Qf as calculateIngredientsCost,
|
|
262
|
+
es as calculateProductWeightByPrice,
|
|
263
|
+
jf as calculateWeightProductPrice,
|
|
264
|
+
Lo as checkoutHasWallet,
|
|
262
265
|
kt as cleanVersionString,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
266
|
+
tu as convertSecondsToTimeSpan,
|
|
267
|
+
ou as convertTimeSpanToSeconds,
|
|
268
|
+
Ds as convertToLocalTimezone,
|
|
269
|
+
vs as convertToSpecificTimezone,
|
|
270
|
+
$a as createCodedError,
|
|
271
|
+
Bf as createHangfirePoller,
|
|
272
|
+
Es as createLocalTimezoneDate,
|
|
273
|
+
Ms as createLocalTimezoneMoment,
|
|
274
|
+
Tu as createLocalizedCheckDetails,
|
|
275
|
+
zf as createMakeHangfireRequest,
|
|
276
|
+
Xs as createTimeSpan,
|
|
277
|
+
Ja as createUseSignalRHook,
|
|
275
278
|
ro as createUseStarCloudScanHook,
|
|
276
279
|
pr as darken,
|
|
277
|
-
|
|
280
|
+
Ou as decodeMPSGiftCardQr,
|
|
278
281
|
so as decodeTableQRPayload,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
282
|
+
ku as deobfuscateMPSQrPayload,
|
|
283
|
+
qf as extractProductsFromMenuTree,
|
|
284
|
+
gs as formatPhoneNumber,
|
|
285
|
+
Zs as formatTimeSpan,
|
|
283
286
|
It as generateBackoffWithEqualJitter,
|
|
284
287
|
Ft as generateBackoffWithFullJitter,
|
|
285
288
|
Rt as generateBackoffWithVariableJitter,
|
|
286
289
|
K as generateId,
|
|
287
|
-
|
|
290
|
+
Yf as getAddonGroupInfoBySettings,
|
|
288
291
|
q as getBitValue,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
xu as getCheckAuditLogProductName,
|
|
293
|
+
Oa as getCheckOrderItemsMappedByTicketItemStatus,
|
|
294
|
+
Sa as getCheckOrderMinimumStatusTicketItem,
|
|
295
|
+
Ao as getCheckoutAdyenAmount,
|
|
296
|
+
xa as getCheckoutGiftCardMetaData,
|
|
297
|
+
ca as getCheckoutGiftCardRecipientsMetaData,
|
|
294
298
|
Po as getCheckoutGrandTotalAmount,
|
|
295
299
|
lo as getCheckoutGroupedModifications,
|
|
296
|
-
|
|
300
|
+
Ta as getCheckoutGuestGroupsMetaData,
|
|
297
301
|
go as getCheckoutItemsMappedByTicketItemStatus,
|
|
302
|
+
Io as getCheckoutMinimumOrderDifferenceAmount,
|
|
298
303
|
no as getCheckoutOrderStatusTexts,
|
|
299
|
-
|
|
300
|
-
|
|
304
|
+
wo as getCheckoutPaymentErrorTranslationTexts,
|
|
305
|
+
Zo as getCheckoutPenguinLockersMetaData,
|
|
301
306
|
io as getCheckoutProductName,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
307
|
+
Ro as getCheckoutRequestItemFromCheckoutItem,
|
|
308
|
+
ua as getCheckoutWalletTopUpMetaData,
|
|
309
|
+
hs as getComponentNameFromGeocoderResult,
|
|
305
310
|
Fr as getCustomerAddressFromGeocoderResult,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
311
|
+
Va as getDetailedProductVariantStock,
|
|
312
|
+
$s as getDurationBetweenTimeSpans,
|
|
313
|
+
Js as getEndTimeSpanOfTimePeriod,
|
|
309
314
|
At as getEndpointWithVersion,
|
|
310
|
-
|
|
315
|
+
Cf as getErrorCode,
|
|
311
316
|
at as getExpressAvailableOrderFormats,
|
|
312
317
|
st as getExpressNextAvailabilityShiftTime,
|
|
313
|
-
|
|
314
|
-
|
|
318
|
+
Ea as getFormattedCurrency,
|
|
319
|
+
Ma as getFormattedCurrencyPostfix,
|
|
315
320
|
Lr as getFormattedPhoneNumber,
|
|
316
|
-
|
|
317
|
-
|
|
321
|
+
lu as getFormattedQuantity,
|
|
322
|
+
ys as getFormattedUTCDateTime,
|
|
318
323
|
Rr as getFullAddressString,
|
|
319
324
|
Ir as getFullName,
|
|
320
|
-
|
|
325
|
+
Cs as getLicenseUIState,
|
|
321
326
|
se as getListOutletOpeningHoursTable,
|
|
322
327
|
kr as getLuminance,
|
|
323
328
|
Qt as getMediaImageClosestSize,
|
|
324
|
-
|
|
329
|
+
ha as getMultiProductSubProductsTicketItems,
|
|
325
330
|
sr as getNameInitials,
|
|
326
|
-
|
|
327
|
-
|
|
331
|
+
Hs as getNextTenthMinute,
|
|
332
|
+
dt as getOrderFormatAOTipSettings,
|
|
328
333
|
me as getOutletAvailabilityInfo,
|
|
329
334
|
ne as getOutletAvailableOrderFormats,
|
|
330
335
|
rt as getOutletCurrentAvailabilityInfo,
|
|
@@ -342,109 +347,110 @@ export {
|
|
|
342
347
|
qe as getOutletOrderPreparationTime,
|
|
343
348
|
ze as getOutletPickerTimesForDay,
|
|
344
349
|
Be as getOutletPickerTimesForWeek,
|
|
345
|
-
|
|
350
|
+
de as getOutletTagInformation,
|
|
346
351
|
Ae as getOutletTodayOpeningTimes,
|
|
347
352
|
er as getParsedJSONFromString,
|
|
348
353
|
Ue as getPartitionedOutletsList,
|
|
349
354
|
Fe as getPickerIntervalsForDay,
|
|
350
|
-
|
|
355
|
+
Vs as getPrevNthMinute,
|
|
351
356
|
qr as getPrinterType,
|
|
352
357
|
jt as getRandomAlphaNumericCode,
|
|
353
|
-
|
|
358
|
+
Lf as getRateLimit,
|
|
354
359
|
Nt as getRateLimitRetryDelay,
|
|
355
|
-
|
|
360
|
+
ss as getSHA256Hash,
|
|
356
361
|
Le as getServiceIntervalRange,
|
|
357
362
|
be as getServiceIntervalsForOrderFormat,
|
|
358
363
|
br as getStructuredCustomerAddress,
|
|
359
364
|
Qe as getStructuredOutletAddress,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
365
|
+
ws as getTimeSpanParts,
|
|
366
|
+
Ns as getTimezoneUtcOffsetDifference,
|
|
367
|
+
Xo as getTotalCheckoutItemsQuantity,
|
|
368
|
+
$o as getUniqueCheckoutPenguinDeliveryCodes,
|
|
364
369
|
Pt as getUrlAndParams,
|
|
365
|
-
|
|
366
|
-
|
|
370
|
+
bo as getWalletMetaFromCheckout,
|
|
371
|
+
cu as getZReportPaymentMethodDisplayName,
|
|
367
372
|
ee as gramToKiloGram,
|
|
368
373
|
Ar as hslToHex,
|
|
369
374
|
w as idsToBitmask,
|
|
370
375
|
mt as isAOTippingEnabledForOrderFormat,
|
|
371
|
-
|
|
376
|
+
lf as isAPIError,
|
|
372
377
|
Ut as isAcceptedResponse,
|
|
373
|
-
|
|
374
|
-
|
|
378
|
+
wa as isAddonProductOutOfStock,
|
|
379
|
+
Pf as isBadGatewayError,
|
|
375
380
|
Q as isBitSet,
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
381
|
+
zo as isCheckoutAlreadyPaidStatus,
|
|
382
|
+
Fo as isCheckoutItemsAreEqual,
|
|
383
|
+
Co as isCheckoutOrderSummary,
|
|
379
384
|
eo as isCloudPrintModeEnabled,
|
|
380
|
-
|
|
381
|
-
|
|
385
|
+
tf as isCodedError,
|
|
386
|
+
Cr as isColorsEqual,
|
|
382
387
|
gr as isColorsReadable,
|
|
383
|
-
|
|
388
|
+
_s as isDSTShiftPresentInRange,
|
|
384
389
|
nr as isDarkBackground,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
390
|
+
Jo as isDeletingCheckoutAllowed,
|
|
391
|
+
Da as isDetailedProductOutOfStock,
|
|
392
|
+
Ha as isDetailedProductOutletStockOutOfStock,
|
|
393
|
+
_a as isDetailedProductUpSellsOutOfStock,
|
|
394
|
+
va as isDetailedProductVariantOutOfStocks,
|
|
395
|
+
kf as isErrorWithStatusCode,
|
|
396
|
+
la as isGiftCardCheckout,
|
|
397
|
+
ia as isGiftCardCheckoutItem,
|
|
398
|
+
ps as isGroupPreOrder,
|
|
399
|
+
Gf as isHangfireResponse,
|
|
400
|
+
Uf as isHangfireWorkerExpiredOrInvalidError,
|
|
401
|
+
Os as isLicenseExpired,
|
|
402
|
+
ks as isLicenseExtended,
|
|
403
|
+
Ss as isLicenseTerminated,
|
|
404
|
+
ff as isLockedError,
|
|
400
405
|
pt as isMenuTreeHierarchyProductAvailable,
|
|
401
|
-
|
|
402
|
-
|
|
406
|
+
Na as isMenuTreeProductOutOfStock,
|
|
407
|
+
of as isNetworkError,
|
|
403
408
|
Bt as isNoContentResponse,
|
|
404
|
-
|
|
405
|
-
|
|
409
|
+
uf as isNotFoundError,
|
|
410
|
+
Ce as isOutletAcceptingPreOrders,
|
|
406
411
|
ke as isOutletAcceptingPreOrdersWhenClosed,
|
|
407
412
|
zt as isPartialContentResponse,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
iu as isPayAndGoCheckAuditLogAction,
|
|
414
|
+
ns as isPhoneNumberValid,
|
|
415
|
+
Uo as isPreOrderCheckout,
|
|
416
|
+
ms as isPreOrderLink,
|
|
417
|
+
Go as isPreOrderServiceTime,
|
|
418
|
+
ds as isPreOrderSharable,
|
|
419
|
+
bf as isRateLimitError,
|
|
415
420
|
Gt as isRateLimitWaitTooLong,
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
421
|
+
pf as isSerializedAPIError,
|
|
422
|
+
nf as isSerializedCodedError,
|
|
423
|
+
Af as isServiceUnavailableError,
|
|
419
424
|
jr as isTerminalPrinter,
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
425
|
+
uu as isTicketItemClosed,
|
|
426
|
+
fu as isTicketItemReady,
|
|
427
|
+
If as isTooManyRequestsError,
|
|
428
|
+
Wa as isUpSellProductOutOfStock,
|
|
429
|
+
Bo as isUpdatingCheckoutAllowed,
|
|
430
|
+
Rf as isUpgradeRequiredError,
|
|
426
431
|
Kr as isValidNetworkPrinter,
|
|
427
432
|
Qr as isValidPrinter,
|
|
428
433
|
Yr as isValidStarCloudPrinter,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
434
|
+
Ct as isVersionALessThanB,
|
|
435
|
+
fa as isWalletTopUpCheckout,
|
|
436
|
+
oa as isWalletTopUpCheckoutItem,
|
|
432
437
|
H as isWithinFlag,
|
|
433
|
-
|
|
438
|
+
ta as isWoltDeliveryInProgress,
|
|
434
439
|
j as kiloGramToGram,
|
|
435
|
-
|
|
440
|
+
dr as lighten,
|
|
436
441
|
zr as pascalCaseFormatter,
|
|
437
|
-
|
|
442
|
+
ya as placeCurrencySymbol,
|
|
438
443
|
ao as randomIntFromInterval,
|
|
439
|
-
|
|
444
|
+
Pu as resolveMPSGiftCardScanAction,
|
|
440
445
|
Br as sanitizeAsStringDict,
|
|
441
|
-
|
|
446
|
+
gf as serializeError,
|
|
442
447
|
Re as serviceDateTimesFromOpeningHours,
|
|
443
448
|
Kt as slugify,
|
|
444
449
|
Pr as toHsl,
|
|
445
|
-
|
|
450
|
+
Ws as toMinutes,
|
|
446
451
|
Yt as truncate,
|
|
447
452
|
ae as useMountedRef,
|
|
448
453
|
re as usePrevious,
|
|
454
|
+
Za as useSignalRGroup,
|
|
449
455
|
Y as wait
|
|
450
456
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CheckDetails } from '@ancon/wildcat-types';
|
|
2
2
|
/**
|
|
3
3
|
* This creates localized check details by replacing following properties with localized values based on current app language.
|
|
4
4
|
* Affected properties on each check item (and its sub-items):
|
|
@@ -12,5 +12,5 @@ import { CheckDetailsV2 } from '@ancon/wildcat-types';
|
|
|
12
12
|
* @param locale - locale to be used for localization
|
|
13
13
|
* @returns localized check details
|
|
14
14
|
*/
|
|
15
|
-
declare function createLocalizedCheckDetails(checkDetails:
|
|
15
|
+
declare function createLocalizedCheckDetails(checkDetails: CheckDetails, locale: string): CheckDetails;
|
|
16
16
|
export default createLocalizedCheckDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const l=require("@ancon/wildcat-types");function u(e){switch(e){case"sv":return l.IETFLanguageTag.Swedish;case"nb":return l.IETFLanguageTag.Norwegian;case"en":return l.IETFLanguageTag.English;default:return null}}function s(e,c){var i,o;const t=e,a=(i=e.localizedProductNames)==null?void 0:i[c],n=(o=e.localizedVariantNames)==null?void 0:o[c];return a&&(t.productName=a),n&&(t.variantName=n),t}function m(e,c){var i,o;const t=e,a=(i=e.localizedNames)==null?void 0:i[c],n=(o=e.localizedReplacementNames)==null?void 0:o[c];return a&&(t.name=a),n&&(t.replacementName=n),t}function z(e,c){const t=e;return t.product=s(e.product,c),t}function d(e,c){const t=e,{product:a,modifications:n,addOnProducts:i,subCheckItems:o}=e;return t.product=s(a,c),n.length&&(t.modifications=n.map(r=>m(r,c))),i!=null&&i.length&&(t.addOnProducts=i.map(r=>z(r,c))),o.length&&(t.subCheckItems=o.map(r=>d(r,c))),t}function f(e,c){const t=u(c);if(t){const a=e;return a.items=e.items.map(n=>d(n,t)),a}return e}module.exports=f;
|