@ancon/wildcat-utils 1.42.2 → 1.43.0-timezone-refactor.2
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/_baseIsEqual-12d01a44.mjs +169 -0
- package/_baseIsEqual-bcac9024.js +1 -0
- package/_baseIteratee-075c204c.js +1 -0
- package/_baseIteratee-4c4d0995.mjs +97 -0
- package/_baseSlice-4d543985.mjs +10 -0
- package/_baseSlice-e1b41ceb.js +1 -0
- package/_getTag-4e44633b.mjs +382 -0
- package/_getTag-b8923c48.js +1 -0
- package/checkout/getCheckoutOrderStatusTexts.js +1 -1
- package/checkout/getCheckoutOrderStatusTexts.mjs +7 -5
- package/checkout/index.js +1 -1
- package/checkout/index.mjs +49 -47
- package/checkout/isCheckoutItemsAreEqual.js +1 -1
- package/checkout/isCheckoutItemsAreEqual.mjs +14 -13
- package/date/createLocalTimezoneDate.d.ts +8 -0
- package/date/createLocalTimezoneDate.js +1 -0
- package/date/createLocalTimezoneDate.mjs +8 -0
- package/date/index.d.ts +2 -0
- package/date/index.js +1 -0
- package/date/index.mjs +5 -0
- package/identity-1bae7cf8.js +1 -0
- package/identity-6eafe87b.mjs +64 -0
- package/index.d.ts +2 -0
- package/index.js +1 -1
- package/index.mjs +103 -88
- package/license/getLicenseUIState.d.ts +1 -4
- package/license/getLicenseUIState.js +1 -1
- package/license/getLicenseUIState.mjs +5 -17
- package/license/index.d.ts +2 -2
- package/license/index.js +1 -1
- package/license/index.mjs +2 -5
- package/license/types.d.ts +1 -2
- package/license/types.js +1 -1
- package/license/types.mjs +1 -1
- package/logger/index.js +1 -1
- package/logger/index.mjs +8 -7
- package/logger/pascalCaseFormatter.js +1 -1
- package/logger/pascalCaseFormatter.mjs +21 -27
- package/order/getCheckOrderItemsMappedByTicketItemStatus.js +1 -1
- package/order/getCheckOrderItemsMappedByTicketItemStatus.mjs +15 -13
- package/order/getCheckOrderMinimumStatusTicketItem.js +1 -1
- package/order/getCheckOrderMinimumStatusTicketItem.mjs +19 -17
- package/order/index.js +1 -1
- package/order/index.mjs +11 -9
- package/outlet/getListOutletOpeningHoursTable.d.ts +1 -1
- package/outlet/getListOutletOpeningHoursTable.js +1 -1
- package/outlet/getListOutletOpeningHoursTable.mjs +134 -150
- package/outlet/getMomentFromDateAndTimeString.js +1 -1
- package/outlet/getMomentFromDateAndTimeString.mjs +1 -1
- package/outlet/getOutletActiveOpeningInterval.d.ts +2 -2
- package/outlet/getOutletAvailabilityInfo.js +1 -1
- package/outlet/getOutletAvailabilityInfo.mjs +8 -8
- package/outlet/getOutletCurrentActiveOperatingHour.js +1 -1
- package/outlet/getOutletCurrentActiveOperatingHour.mjs +16 -15
- package/outlet/getOutletCurrentAvailabilityInfo.js +1 -1
- package/outlet/getOutletCurrentAvailabilityInfo.mjs +27 -26
- package/outlet/getOutletCurrentClosingTimeText.js +1 -1
- package/outlet/getOutletCurrentClosingTimeText.mjs +13 -10
- package/outlet/getOutletDeliveryFee.js +1 -1
- package/outlet/getOutletDeliveryFee.mjs +5 -5
- package/outlet/getOutletFormattedAddress.d.ts +9 -1
- package/outlet/getOutletFormattedAddress.js +1 -1
- package/outlet/getOutletFormattedAddress.mjs +9 -4
- package/outlet/getOutletNextOpeningTagInformation.js +1 -1
- package/outlet/getOutletNextOpeningTagInformation.mjs +8 -7
- package/outlet/getOutletNextOpeningTimeText.js +1 -1
- package/outlet/getOutletNextOpeningTimeText.mjs +4 -2
- package/outlet/getOutletNextReadyToOrderTime.js +1 -1
- package/outlet/getOutletNextReadyToOrderTime.mjs +18 -21
- package/outlet/getOutletPickerTimesForDay.js +1 -1
- package/outlet/getOutletPickerTimesForDay.mjs +39 -39
- package/outlet/getOutletPickerTimesForWeek.js +1 -1
- package/outlet/getOutletPickerTimesForWeek.mjs +8 -6
- package/outlet/getOutletTagInformation.d.ts +1 -1
- package/outlet/getOutletTagInformation.js +1 -1
- package/outlet/getOutletTagInformation.mjs +68 -67
- package/outlet/getOutletTodayOpeningTimes.js +1 -1
- package/outlet/getOutletTodayOpeningTimes.mjs +37 -34
- package/outlet/getPartitionedOutletsList.js +1 -1
- package/outlet/getPartitionedOutletsList.mjs +4 -4
- package/outlet/getPickerIntervalsForDay.js +1 -1
- package/outlet/getPickerIntervalsForDay.mjs +24 -14
- package/outlet/getServiceIntervalEnd.d.ts +1 -1
- package/outlet/getServiceIntervalEnd.js +1 -1
- package/outlet/getServiceIntervalEnd.mjs +12 -10
- package/outlet/getServiceIntervalRange.d.ts +1 -2
- package/outlet/getServiceIntervalRange.js +1 -1
- package/outlet/getServiceIntervalRange.mjs +8 -12
- package/outlet/getServiceIntervalStart.d.ts +1 -1
- package/outlet/getServiceIntervalStart.js +1 -1
- package/outlet/getServiceIntervalStart.mjs +6 -7
- package/outlet/getServiceIntervalsForOrderFormat.d.ts +7 -8
- package/outlet/getStructuredOutletAddress.js +1 -1
- package/outlet/getStructuredOutletAddress.mjs +7 -7
- package/outlet/index.js +1 -1
- package/outlet/index.mjs +71 -66
- package/outlet/searchNextOpeningMoment.d.ts +1 -1
- package/outlet/searchNextOpeningMoment.js +1 -1
- package/outlet/searchNextOpeningMoment.mjs +52 -56
- package/outlet/serviceDateTimesFromOpeningHours.d.ts +3 -5
- package/outlet/serviceDateTimesFromOpeningHours.js +1 -1
- package/outlet/serviceDateTimesFromOpeningHours.mjs +342 -27
- package/outlet/types.d.ts +0 -2
- package/package.json +11 -1
- package/time/getEndTimeSpanOfTimePeriod.js +1 -1
- package/time/getEndTimeSpanOfTimePeriod.mjs +5 -9
- package/{toString-e631a957.mjs → toString-3b91b335.mjs} +12 -11
- package/toString-9eae9442.js +1 -0
- package/_baseIsEqual-39cef2eb.mjs +0 -530
- package/_baseIsEqual-b3df9240.js +0 -1
- package/_baseIteratee-13e892b8.mjs +0 -151
- package/_baseIteratee-be26bb18.js +0 -1
- package/toString-425512fc.js +0 -1
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as W } from "./shared/isWithinFlag.mjs";
|
|
2
2
|
import { default as V } from "./shared/generateId.mjs";
|
|
3
|
-
import { default as
|
|
3
|
+
import { default as q } from "./shared/wait.mjs";
|
|
4
4
|
import { default as K } from "./shared/kiloGramToGram.mjs";
|
|
5
5
|
import { default as Q } from "./shared/gramToKiloGram.mjs";
|
|
6
6
|
import { default as X } from "./shared/hooks/usePrevious.mjs";
|
|
@@ -13,21 +13,21 @@ import { default as ue } from "./outlet/getOutletAvailableOrderFormats.mjs";
|
|
|
13
13
|
import { default as de } from "./outlet/getOutletFormattedDistance.mjs";
|
|
14
14
|
import { default as ie } from "./outlet/isOutletAcceptingPreOrders.mjs";
|
|
15
15
|
import { default as xe } from "./outlet/getOutletDeliveryFee.mjs";
|
|
16
|
-
import { default as
|
|
16
|
+
import { default as ge } from "./outlet/getOutletTodayOpeningTimes.mjs";
|
|
17
17
|
import { default as Oe } from "./outlet/getOutletOrderFormats.mjs";
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
18
|
+
import { default as ke } from "./outlet/serviceDateTimesFromOpeningHours.mjs";
|
|
19
|
+
import { default as Te } from "./outlet/getPickerIntervalsForDay.mjs";
|
|
20
|
+
import { default as he } from "./outlet/getServiceIntervalRange.mjs";
|
|
21
21
|
import { default as Ae } from "./outlet/getServiceIntervalsForOrderFormat.mjs";
|
|
22
22
|
import { default as ye } from "./outlet/getOutletFormattedAddress.mjs";
|
|
23
23
|
import { default as ve } from "./outlet/getPartitionedOutletsList.mjs";
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
24
|
+
import { default as De } from "./outlet/getOutletPickerTimesForWeek.mjs";
|
|
25
|
+
import { default as Re } from "./outlet/getOutletPickerTimesForDay.mjs";
|
|
26
|
+
import { default as Le } from "./outlet/getOutletOrderPrepTime.mjs";
|
|
27
27
|
import { default as Ge } from "./outlet/getStructuredOutletAddress.mjs";
|
|
28
28
|
import { default as We } from "./outlet/getOutletNextOpeningTimeText.mjs";
|
|
29
29
|
import { default as Ve } from "./outlet/getOutletCurrentClosingTimeText.mjs";
|
|
30
|
-
import { default as
|
|
30
|
+
import { default as qe } from "./outlet/getOutletNextReadyToOrderTime.mjs";
|
|
31
31
|
import { default as Ke } from "./outlet/getOutletNextOpeningTagInformation.mjs";
|
|
32
32
|
import { default as Qe } from "./outlet/getOutletCurrentAvailabilityInfo.mjs";
|
|
33
33
|
import { default as Xe } from "./outlet/getExpressAvailableOrderFormats.mjs";
|
|
@@ -40,21 +40,21 @@ import { default as ut } from "./versioning/isVersionALessThanB.mjs";
|
|
|
40
40
|
import { default as dt } from "./versioning/cleanVersionString.mjs";
|
|
41
41
|
import { default as it } from "./api/getUrlAndParams.mjs";
|
|
42
42
|
import { default as xt } from "./api/getEndpointWithVersion.mjs";
|
|
43
|
-
import { default as
|
|
43
|
+
import { default as gt } from "./api/generateBackoffWithEqualJitter.mjs";
|
|
44
44
|
import { default as Ot } from "./api/isAcceptedResponse.mjs";
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
45
|
+
import { default as kt } from "./api/isNoContentResponse.mjs";
|
|
46
|
+
import { default as Tt } from "./api/APIFilterBuilder.mjs";
|
|
47
|
+
import { default as ht } from "./string/slugify.mjs";
|
|
48
48
|
import { default as At } from "./string/truncate.mjs";
|
|
49
49
|
import { default as yt } from "./string/getRandomAlphaNumericCode.mjs";
|
|
50
50
|
import { default as vt } from "./string/getParsedJSONFromString.mjs";
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
51
|
+
import { default as Dt } from "./color/lighten.mjs";
|
|
52
|
+
import { default as Rt } from "./color/brighten.mjs";
|
|
53
|
+
import { default as Lt } from "./color/darken.mjs";
|
|
54
54
|
import { default as Gt } from "./color/isDarkBackground.mjs";
|
|
55
55
|
import { default as Wt } from "./color/isColorsReadable.mjs";
|
|
56
56
|
import { default as Vt } from "./user/getFullName.mjs";
|
|
57
|
-
import { default as
|
|
57
|
+
import { default as qt } from "./user/getFullAddressString.mjs";
|
|
58
58
|
import { default as Kt } from "./user/getCustomerAddressFromGeocoderResult.mjs";
|
|
59
59
|
import { default as Qt } from "./user/getFormattedPhoneNumber.mjs";
|
|
60
60
|
import { default as Xt } from "./user/getStructuredCustomerAddress.mjs";
|
|
@@ -67,20 +67,20 @@ import { default as ur } from "./printing/isValidPrinter.mjs";
|
|
|
67
67
|
import { default as dr } from "./printing/isValidNetworkPrinter.mjs";
|
|
68
68
|
import { default as ir } from "./printing/isValidStarCloudPrinter.mjs";
|
|
69
69
|
import { default as xr } from "./printing/isTerminalPrinter.mjs";
|
|
70
|
-
import { default as
|
|
70
|
+
import { default as gr } from "./printing/isCloudPrintModeEnabled.mjs";
|
|
71
71
|
import { default as Or } from "./printing/createStarCloudScanHook.mjs";
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
72
|
+
import { default as kr } from "./number/randomIntFromInterval.mjs";
|
|
73
|
+
import { default as Tr } from "./tables/decodeTableQRPayload.mjs";
|
|
74
|
+
import { default as hr } from "./checkout/getCheckoutItemModifications.mjs";
|
|
75
75
|
import { default as Ar } from "./checkout/getCheckoutProductName.mjs";
|
|
76
76
|
import { TranslationKey as yr, default as Er } from "./checkout/getCheckoutOrderStatusTexts.mjs";
|
|
77
77
|
import { default as br } from "./checkout/getCheckoutItemsMappedByTicketItemStatus.mjs";
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
78
|
+
import { default as Nr } from "./checkout/isCheckoutOrderSummary.mjs";
|
|
79
|
+
import { default as Mr } from "./checkout/buildCheckoutRequestItem.mjs";
|
|
80
80
|
import { default as Hr } from "./checkout/getCheckoutGrandTotalAmount.mjs";
|
|
81
81
|
import { default as Ur } from "./checkout/getCheckoutRequestItemFromCheckoutItem.mjs";
|
|
82
82
|
import { default as Br } from "./checkout/isCheckoutItemsAreEqual.mjs";
|
|
83
|
-
import { default as
|
|
83
|
+
import { default as wr } from "./checkout/checkoutHasWallet.mjs";
|
|
84
84
|
import { default as zr } from "./checkout/getWalletMetaFromCheckout.mjs";
|
|
85
85
|
import { default as Jr } from "./checkout/isPreOrderServiceTime.mjs";
|
|
86
86
|
import { default as jr } from "./checkout/isPreOrderCheckout.mjs";
|
|
@@ -93,20 +93,20 @@ import { default as uo } from "./checkout/getCheckoutPenguinLockersMetaData.mjs"
|
|
|
93
93
|
import { default as mo } from "./checkout/getUniqueCheckoutPenguinDeliveryCodes.mjs";
|
|
94
94
|
import { default as po } from "./checkout/isWoltDeliveryInProgress.mjs";
|
|
95
95
|
import { default as no } from "./order/getCheckOrderItemsMappedByTicketItemStatus.mjs";
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
96
|
+
import { default as co } from "./order/getCheckOrderMinimumStatusTicketItem.mjs";
|
|
97
|
+
import { default as Po } from "./order/getMultiProductSubProductsTicketItems.mjs";
|
|
98
|
+
import { default as So } from "./currency/getFormattedCurrency.mjs";
|
|
99
|
+
import { default as Co } from "./inventory/isDetailedProductOutOfStock.mjs";
|
|
100
100
|
import { default as Fo } from "./inventory/isDetailedProductVariantOutOfStocks.mjs";
|
|
101
101
|
import { default as Io } from "./inventory/isMenuTreeProductOutOfStock.mjs";
|
|
102
102
|
import { default as Eo } from "./inventory/isDetailedProductUpSellsOutOfStock.mjs";
|
|
103
103
|
import { default as bo } from "./inventory/isUpSellProductOutStock.mjs";
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
104
|
+
import { default as No } from "./inventory/isDetailedProductOutletStockOutOfStock.mjs";
|
|
105
|
+
import { default as Mo } from "./inventory/getDetailedProductVariantStock.mjs";
|
|
106
106
|
import { default as Ho } from "./signalr/createUseSignalRHook.mjs";
|
|
107
107
|
import { default as Uo } from "./signalr/SignalR.mjs";
|
|
108
108
|
import { default as Bo } from "./error/createCodedError.mjs";
|
|
109
|
-
import { default as
|
|
109
|
+
import { default as wo } from "./error/isCodedError.mjs";
|
|
110
110
|
import { default as zo } from "./error/isNetworkError.mjs";
|
|
111
111
|
import { default as Jo } from "./error/isLockedError.mjs";
|
|
112
112
|
import { default as jo } from "./error/isNotFoundError.mjs";
|
|
@@ -120,24 +120,33 @@ import { default as la } from "./error/isBadGatewayError.mjs";
|
|
|
120
120
|
import { default as ma } from "./error/isServiceUnavailableError.mjs";
|
|
121
121
|
import { default as pa } from "./hangfire/isHangfireResponse.mjs";
|
|
122
122
|
import { default as na } from "./hangfire/isHangfireWorkerExpiredOrInvalidError.mjs";
|
|
123
|
-
import { default as
|
|
124
|
-
import { default as
|
|
125
|
-
import { default as
|
|
126
|
-
import { default as
|
|
123
|
+
import { default as ca } from "./hangfire/createHangfirePoller.mjs";
|
|
124
|
+
import { default as Pa } from "./hangfire/createMakeHangfireRequest.mjs";
|
|
125
|
+
import { default as Sa } from "./product/extractProductsFromMenuTree.mjs";
|
|
126
|
+
import { default as Ca } from "./product/calculateIngredientsCost.mjs";
|
|
127
127
|
import { default as Fa } from "./product/calculateAddonGroupCost.mjs";
|
|
128
128
|
import { default as Ia } from "./product/getAddonGroupInfoBySettings.mjs";
|
|
129
129
|
import { default as Ea } from "./product/calculateWeightProductPrice.mjs";
|
|
130
130
|
import { default as ba } from "./product/calculateProductWeightByPrice.mjs";
|
|
131
|
-
import { default as
|
|
132
|
-
import { default as
|
|
131
|
+
import { default as Na } from "./codec/base64URLEncode.mjs";
|
|
132
|
+
import { default as Ma } from "./codec/base64URLDecode.mjs";
|
|
133
133
|
import { default as Ha } from "./hashing/getSHA256Hash.mjs";
|
|
134
134
|
import { default as Ua } from "./preOrder/isPreOrderSharable.mjs";
|
|
135
135
|
import { default as Ba } from "./preOrder/isPreOrderLink.mjs";
|
|
136
|
-
import { default as
|
|
136
|
+
import { default as wa } from "./preOrder/isGroupPreOrder.mjs";
|
|
137
137
|
import { default as za } from "./phoneNumber/isPhoneNumberValid.mjs";
|
|
138
138
|
import { default as Ja } from "./phoneNumber/formatPhoneNumber.mjs";
|
|
139
|
-
import { default as ja
|
|
140
|
-
import { default as
|
|
139
|
+
import { default as ja } from "./license/getLicenseUIState.mjs";
|
|
140
|
+
import { default as Ya } from "./googleMap/getComponentNameFromGeocoderResult.mjs";
|
|
141
|
+
import { default as _a } from "./date/createLocalTimezoneDate.mjs";
|
|
142
|
+
import { default as ef } from "./time/toMinutes.mjs";
|
|
143
|
+
import { default as rf } from "./time/getNextTenthMinute.mjs";
|
|
144
|
+
import { default as af } from "./time/getPrevNthMinute.mjs";
|
|
145
|
+
import { default as sf } from "./time/getTimeSpanParts.mjs";
|
|
146
|
+
import { default as lf } from "./time/getEndTimeSpanOfTimePeriod.mjs";
|
|
147
|
+
import { default as mf } from "./time/createTimeSpan.mjs";
|
|
148
|
+
import { default as xf } from "./time/formatTimeSpan.mjs";
|
|
149
|
+
import { default as gf } from "./time/getDurationBetweenTimeSpans.mjs";
|
|
141
150
|
import "react";
|
|
142
151
|
import "moment";
|
|
143
152
|
import "@ancon/wildcat-types";
|
|
@@ -145,14 +154,15 @@ import "./outlet/constants.mjs";
|
|
|
145
154
|
import "./outlet/getOutletCurrentActiveOperatingHour.mjs";
|
|
146
155
|
import "./outlet/getMomentFromDateAndTimeString.mjs";
|
|
147
156
|
import "./outlet/searchNextOpeningMoment.mjs";
|
|
148
|
-
import "./_baseIteratee-
|
|
149
|
-
import "./
|
|
157
|
+
import "./_baseIteratee-4c4d0995.mjs";
|
|
158
|
+
import "./_getTag-4e44633b.mjs";
|
|
150
159
|
import "./isArray-0d9c7aaa.mjs";
|
|
151
|
-
import "./
|
|
160
|
+
import "./_baseIsEqual-12d01a44.mjs";
|
|
161
|
+
import "./identity-6eafe87b.mjs";
|
|
162
|
+
import "./toString-3b91b335.mjs";
|
|
152
163
|
import "./noop-378485d5.mjs";
|
|
164
|
+
import "./_baseSlice-4d543985.mjs";
|
|
153
165
|
import "./shared/constants.mjs";
|
|
154
|
-
import "./time/toMinutes.mjs";
|
|
155
|
-
import "./time/getNextTenthMinute.mjs";
|
|
156
166
|
import "./outlet/types.mjs";
|
|
157
167
|
import "./outlet/getSettingsForOrderFormat.mjs";
|
|
158
168
|
import "./outlet/getServiceIntervalStart.mjs";
|
|
@@ -161,7 +171,6 @@ import "./outlet/generatePickerTimesForDay.mjs";
|
|
|
161
171
|
import "./outlet/getServiceIntervalEnd.mjs";
|
|
162
172
|
import "./outlet/hoursAndMinutesToMinutes.mjs";
|
|
163
173
|
import "./outlet/getExpressServiceIntervalStart.mjs";
|
|
164
|
-
import "./time/getTimeSpanParts.mjs";
|
|
165
174
|
import "./outlet/getExpressServiceIntervalEnd.mjs";
|
|
166
175
|
import "compare-versions";
|
|
167
176
|
import "./api/types.mjs";
|
|
@@ -176,58 +185,64 @@ import "@microsoft/signalr";
|
|
|
176
185
|
import "google-libphonenumber";
|
|
177
186
|
import "./license/types.mjs";
|
|
178
187
|
export {
|
|
179
|
-
|
|
188
|
+
Tt as APIFilterBuilder,
|
|
180
189
|
eo as CheckoutPaymentErrorTranslationKey,
|
|
181
190
|
$t as LogLevel,
|
|
182
191
|
Zt as Logger,
|
|
183
192
|
Uo as SignalR,
|
|
184
193
|
yr as TranslationKey,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
194
|
+
Ma as base64URLDecode,
|
|
195
|
+
Na as base64URLEncode,
|
|
196
|
+
Rt as brighten,
|
|
197
|
+
Mr as buildCheckoutRequestItem,
|
|
189
198
|
Fa as calculateAddonGroupsCost,
|
|
190
|
-
|
|
199
|
+
Ca as calculateIngredientsCost,
|
|
191
200
|
ba as calculateProductWeightByPrice,
|
|
192
201
|
Ea as calculateWeightProductPrice,
|
|
193
|
-
|
|
202
|
+
wr as checkoutHasWallet,
|
|
194
203
|
dt as cleanVersionString,
|
|
195
204
|
Bo as createCodedError,
|
|
196
|
-
|
|
197
|
-
|
|
205
|
+
ca as createHangfirePoller,
|
|
206
|
+
_a as createLocalTimezoneDate,
|
|
207
|
+
Pa as createMakeHangfireRequest,
|
|
208
|
+
mf as createTimeSpan,
|
|
198
209
|
Ho as createUseSignalRHook,
|
|
199
210
|
Or as createUseStarCloudScanHook,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
211
|
+
Lt as darken,
|
|
212
|
+
Tr as decodeTableQRPayload,
|
|
213
|
+
Sa as extractProductsFromMenuTree,
|
|
203
214
|
Ja as formatPhoneNumber,
|
|
204
|
-
|
|
215
|
+
xf as formatTimeSpan,
|
|
216
|
+
gt as generateBackoffWithEqualJitter,
|
|
205
217
|
V as generateId,
|
|
206
218
|
Ia as getAddonGroupInfoBySettings,
|
|
207
219
|
no as getCheckOrderItemsMappedByTicketItemStatus,
|
|
208
|
-
|
|
220
|
+
co as getCheckOrderMinimumStatusTicketItem,
|
|
209
221
|
Hr as getCheckoutGrandTotalAmount,
|
|
210
|
-
|
|
222
|
+
hr as getCheckoutGroupedModifications,
|
|
211
223
|
br as getCheckoutItemsMappedByTicketItemStatus,
|
|
212
224
|
Er as getCheckoutOrderStatusTexts,
|
|
213
225
|
to as getCheckoutPaymentErrorTranslationTexts,
|
|
214
226
|
uo as getCheckoutPenguinLockersMetaData,
|
|
215
227
|
Ar as getCheckoutProductName,
|
|
216
228
|
Ur as getCheckoutRequestItemFromCheckoutItem,
|
|
217
|
-
|
|
229
|
+
Ya as getComponentNameFromGeocoderResult,
|
|
218
230
|
Kt as getCustomerAddressFromGeocoderResult,
|
|
219
|
-
|
|
231
|
+
Mo as getDetailedProductVariantStock,
|
|
232
|
+
gf as getDurationBetweenTimeSpans,
|
|
233
|
+
lf as getEndTimeSpanOfTimePeriod,
|
|
220
234
|
xt as getEndpointWithVersion,
|
|
221
235
|
aa as getErrorCode,
|
|
222
236
|
Xe as getExpressAvailableOrderFormats,
|
|
223
237
|
Ze as getExpressNextAvailabilityShiftTime,
|
|
224
|
-
|
|
238
|
+
So as getFormattedCurrency,
|
|
225
239
|
Qt as getFormattedPhoneNumber,
|
|
226
|
-
|
|
240
|
+
qt as getFullAddressString,
|
|
227
241
|
Vt as getFullName,
|
|
228
242
|
ja as getLicenseUIState,
|
|
229
243
|
$ as getListOutletOpeningHoursTable,
|
|
230
|
-
|
|
244
|
+
Po as getMultiProductSubProductsTicketItems,
|
|
245
|
+
rf as getNextTenthMinute,
|
|
231
246
|
$e as getOrderFormatAOTipSettings,
|
|
232
247
|
oe as getOutletAvailabilityInfo,
|
|
233
248
|
ue as getOutletAvailableOrderFormats,
|
|
@@ -239,24 +254,26 @@ export {
|
|
|
239
254
|
ft as getOutletMenuProductsSortCriteria,
|
|
240
255
|
Ke as getOutletNextOpeningTagInformation,
|
|
241
256
|
We as getOutletNextOpeningTimeText,
|
|
242
|
-
|
|
257
|
+
qe as getOutletNextReadyToOrderTime,
|
|
243
258
|
fe as getOutletOfflineOrderFormats,
|
|
244
259
|
Oe as getOutletOrderFormats,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
260
|
+
Le as getOutletOrderPreparationTime,
|
|
261
|
+
Re as getOutletPickerTimesForDay,
|
|
262
|
+
De as getOutletPickerTimesForWeek,
|
|
248
263
|
te as getOutletTagInformation,
|
|
249
|
-
|
|
264
|
+
ge as getOutletTodayOpeningTimes,
|
|
250
265
|
vt as getParsedJSONFromString,
|
|
251
266
|
ve as getPartitionedOutletsList,
|
|
252
|
-
|
|
267
|
+
Te as getPickerIntervalsForDay,
|
|
268
|
+
af as getPrevNthMinute,
|
|
253
269
|
fr as getPrinterType,
|
|
254
270
|
yt as getRandomAlphaNumericCode,
|
|
255
271
|
Ha as getSHA256Hash,
|
|
256
|
-
|
|
272
|
+
he as getServiceIntervalRange,
|
|
257
273
|
Ae as getServiceIntervalsForOrderFormat,
|
|
258
274
|
Xt as getStructuredCustomerAddress,
|
|
259
275
|
Ge as getStructuredOutletAddress,
|
|
276
|
+
sf as getTimeSpanParts,
|
|
260
277
|
fo as getTotalCheckoutItemsQuantity,
|
|
261
278
|
mo as getUniqueCheckoutPenguinDeliveryCodes,
|
|
262
279
|
it as getUrlAndParams,
|
|
@@ -268,28 +285,25 @@ export {
|
|
|
268
285
|
la as isBadGatewayError,
|
|
269
286
|
_r as isCheckoutAlreadyPaidStatus,
|
|
270
287
|
Br as isCheckoutItemsAreEqual,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
288
|
+
Nr as isCheckoutOrderSummary,
|
|
289
|
+
gr as isCloudPrintModeEnabled,
|
|
290
|
+
wo as isCodedError,
|
|
274
291
|
Wt as isColorsReadable,
|
|
275
292
|
Gt as isDarkBackground,
|
|
276
293
|
oo as isDeletingCheckoutAllowed,
|
|
277
|
-
|
|
278
|
-
|
|
294
|
+
Co as isDetailedProductOutOfStock,
|
|
295
|
+
No as isDetailedProductOutletStockOutOfStock,
|
|
279
296
|
Eo as isDetailedProductUpSellsOutOfStock,
|
|
280
297
|
Fo as isDetailedProductVariantOutOfStocks,
|
|
281
298
|
sa as isErrorWithStatusCode,
|
|
282
|
-
|
|
299
|
+
wa as isGroupPreOrder,
|
|
283
300
|
pa as isHangfireResponse,
|
|
284
301
|
na as isHangfireWorkerExpiredOrInvalidError,
|
|
285
|
-
Xa as isLicenseExpired,
|
|
286
|
-
Ya as isLicenseExtended,
|
|
287
|
-
Za as isLicenseTerminated,
|
|
288
302
|
Jo as isLockedError,
|
|
289
303
|
ot as isMenuTreeHierarchyProductAvailable,
|
|
290
304
|
Io as isMenuTreeProductOutOfStock,
|
|
291
305
|
zo as isNetworkError,
|
|
292
|
-
|
|
306
|
+
kt as isNoContentResponse,
|
|
293
307
|
jo as isNotFoundError,
|
|
294
308
|
ie as isOutletAcceptingPreOrders,
|
|
295
309
|
za as isPhoneNumberValid,
|
|
@@ -310,15 +324,16 @@ export {
|
|
|
310
324
|
W as isWithinFlag,
|
|
311
325
|
po as isWoltDeliveryInProgress,
|
|
312
326
|
K as kiloGramToGram,
|
|
313
|
-
|
|
327
|
+
Dt as lighten,
|
|
314
328
|
or as pascalCaseFormatter,
|
|
315
|
-
|
|
329
|
+
kr as randomIntFromInterval,
|
|
316
330
|
tr as sanitizeAsStringDict,
|
|
317
331
|
ra as serializeError,
|
|
318
|
-
|
|
319
|
-
|
|
332
|
+
ke as serviceDateTimesFromOpeningHours,
|
|
333
|
+
ht as slugify,
|
|
334
|
+
ef as toMinutes,
|
|
320
335
|
At as truncate,
|
|
321
336
|
Z as useMountedRef,
|
|
322
337
|
X as usePrevious,
|
|
323
|
-
|
|
338
|
+
q as wait
|
|
324
339
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { LicenseStatus } from '@ancon/wildcat-types';
|
|
2
2
|
import { LicenseUIState } from './types';
|
|
3
|
-
export
|
|
4
|
-
export declare function isLicenseExpired(licenseStatus: LicenseStatus): boolean;
|
|
5
|
-
export declare function isLicenseExtended(licenseStatus: LicenseStatus): boolean;
|
|
6
|
-
export default function getLicenseUIState(licenseState: LicenseStatus, endDate?: string, deleted?: string, daysToWarnExpiry?: number): LicenseUIState;
|
|
3
|
+
export default function getLicenseUIState(licenseState: LicenseStatus, endDate?: string, daysToWarnExpiry?: number): LicenseUIState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const r=require("moment"),e=require("@ancon/wildcat-types"),t=require("./types.js");function c(i,n,s=10){return(i&e.LicenseStatus.Terminated)===e.LicenseStatus.Terminated?t.LicenseUIState.Terminated:(i&e.LicenseStatus.Expired)===e.LicenseStatus.Expired?t.LicenseUIState.Expired:(i&e.LicenseStatus.Extended)===e.LicenseStatus.Extended?t.LicenseUIState.Extended:n&&r(n).diff(r(),"day")<=s?t.LicenseUIState.AboutToExpire:t.LicenseUIState.Valid}module.exports=c;
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import n from "moment";
|
|
2
|
-
import { LicenseStatus as
|
|
3
|
-
import { LicenseUIState as
|
|
4
|
-
function o
|
|
5
|
-
return (
|
|
6
|
-
}
|
|
7
|
-
function u(e) {
|
|
8
|
-
return (e & r.Expired) === r.Expired;
|
|
9
|
-
}
|
|
10
|
-
function m(e) {
|
|
11
|
-
return (e & r.Extended) === r.Extended;
|
|
12
|
-
}
|
|
13
|
-
function E(e, t, d, f = 10) {
|
|
14
|
-
return o(e) ? i.Terminated : u(e) ? i.Expired : m(e) ? i.Extended : d ? i.Deleted : t && n(t).diff(n(), "day") <= f ? i.AboutToExpire : i.Valid;
|
|
2
|
+
import { LicenseStatus as e } from "@ancon/wildcat-types";
|
|
3
|
+
import { LicenseUIState as r } from "./types.mjs";
|
|
4
|
+
function a(i, t, o = 10) {
|
|
5
|
+
return (i & e.Terminated) === e.Terminated ? r.Terminated : (i & e.Expired) === e.Expired ? r.Expired : (i & e.Extended) === e.Extended ? r.Extended : t && n(t).diff(n(), "day") <= o ? r.AboutToExpire : r.Valid;
|
|
15
6
|
}
|
|
16
7
|
export {
|
|
17
|
-
|
|
18
|
-
u as isLicenseExpired,
|
|
19
|
-
m as isLicenseExtended,
|
|
20
|
-
o as isLicenseTerminated
|
|
8
|
+
a as default
|
|
21
9
|
};
|
package/license/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import getLicenseUIState
|
|
2
|
-
export { getLicenseUIState
|
|
1
|
+
import getLicenseUIState from './getLicenseUIState';
|
|
2
|
+
export { getLicenseUIState };
|
package/license/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./getLicenseUIState.js");require("moment");require("@ancon/wildcat-types");require("./types.js");exports.getLicenseUIState=e
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./getLicenseUIState.js");require("moment");require("@ancon/wildcat-types");require("./types.js");exports.getLicenseUIState=e;
|
package/license/index.mjs
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as m } from "./getLicenseUIState.mjs";
|
|
2
2
|
import "moment";
|
|
3
3
|
import "@ancon/wildcat-types";
|
|
4
4
|
import "./types.mjs";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
d as isLicenseExpired,
|
|
8
|
-
m as isLicenseExtended,
|
|
9
|
-
o as isLicenseTerminated
|
|
6
|
+
m as getLicenseUIState
|
|
10
7
|
};
|
package/license/types.d.ts
CHANGED
package/license/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var d=(r=>(r[r.Valid=0]="Valid",r[r.AboutToExpire=1]="AboutToExpire",r[r.Extended=2]="Extended",r[r.Expired=3]="Expired",r[r.Terminated=4]="Terminated",r))(d||{});exports.LicenseUIState=d;
|
package/license/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var r = /* @__PURE__ */ ((d) => (d[d.Valid = 0] = "Valid", d[d.AboutToExpire = 1] = "AboutToExpire", d[d.Extended = 2] = "Extended", d[d.Expired = 3] = "Expired", d[d.Terminated = 4] = "Terminated", d
|
|
1
|
+
var r = /* @__PURE__ */ ((d) => (d[d.Valid = 0] = "Valid", d[d.AboutToExpire = 1] = "AboutToExpire", d[d.Extended = 2] = "Extended", d[d.Expired = 3] = "Expired", d[d.Terminated = 4] = "Terminated", d))(r || {});
|
|
2
2
|
export {
|
|
3
3
|
r as LicenseUIState
|
|
4
4
|
};
|
package/logger/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Logger.js"),r=require("./types.js"),t=require("./sanitizeAsStringDict.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Logger.js"),r=require("./types.js"),t=require("./sanitizeAsStringDict.js"),i=require("./pascalCaseFormatter.js");require("../string/truncate.js");require("../_baseSlice-e1b41ceb.js");require("../toString-9eae9442.js");require("../isArray-640f9811.js");exports.Logger=e;exports.LogLevel=r.LogLevel;exports.sanitizeAsStringDict=t;exports.pascalCaseFormatter=i;
|
package/logger/index.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as p } from "./Logger.mjs";
|
|
2
2
|
import { LogLevel as f } from "./types.mjs";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
3
|
+
import { default as l } from "./sanitizeAsStringDict.mjs";
|
|
4
|
+
import { default as x } from "./pascalCaseFormatter.mjs";
|
|
5
5
|
import "../string/truncate.mjs";
|
|
6
|
-
import "../
|
|
6
|
+
import "../_baseSlice-4d543985.mjs";
|
|
7
|
+
import "../toString-3b91b335.mjs";
|
|
7
8
|
import "../isArray-0d9c7aaa.mjs";
|
|
8
9
|
export {
|
|
9
10
|
f as LogLevel,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
p as Logger,
|
|
12
|
+
x as pascalCaseFormatter,
|
|
13
|
+
l as sanitizeAsStringDict
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const g=require("../_baseSlice-e1b41ceb.js"),R=require("../toString-9eae9442.js");require("../isArray-640f9811.js");function v(r,e,u){var o=r.length;return u=u===void 0?o:u,!e&&u>=o?r:g.baseSlice(r,e,u)}var C="\\ud800-\\udfff",S="\\u0300-\\u036f",A="\\ufe20-\\ufe2f",$="\\u20d0-\\u20ff",h=S+A+$,j="\\ufe0e\\ufe0f",y="\\u200d",F=RegExp("["+y+C+h+j+"]");function a(r){return F.test(r)}function M(r){return r.split("")}var i="\\ud800-\\udfff",q="\\u0300-\\u036f",O="\\ufe20-\\ufe2f",U="\\u20d0-\\u20ff",k=q+O+U,x="\\ufe0e\\ufe0f",H="["+i+"]",n="["+k+"]",s="\\ud83c[\\udffb-\\udfff]",J="(?:"+n+"|"+s+")",c="[^"+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",T="\\u200d",b=J+"?",p="["+x+"]?",V="(?:"+T+"(?:"+[c,d,l].join("|")+")"+p+b+")*",E=p+b+V,W="(?:"+[c+n+"?",n,d,l,H].join("|")+")",Z=RegExp(s+"(?="+s+")|"+W+E,"g");function _(r){return r.match(Z)||[]}function w(r){return a(r)?_(r):M(r)}function z(r){return function(e){e=R.toString(e);var u=a(e)?w(e):void 0,o=u?u[0]:e.charAt(0),t=u?v(u,1).join(""):e.slice(1);return o[r]()+t}}var K=z("toUpperCase");const f=K;function N(r){return r[0]==="_"?f(r.slice(1)):f(r)}function P(r){return typeof r=="object"?Object.entries(r).reduce((e,[u,o])=>{const m=u.split(".").map(N).join(".");return e[m]=o,e},{}):r}module.exports=P;
|
|
@@ -1,48 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as R } from "../_baseSlice-4d543985.mjs";
|
|
2
|
+
import { t as g } from "../toString-3b91b335.mjs";
|
|
2
3
|
import "../isArray-0d9c7aaa.mjs";
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
function v(r, e, u) {
|
|
11
|
-
var f = r.length;
|
|
12
|
-
return u = u === void 0 ? f : u, !e && u >= f ? r : R(r, e, u);
|
|
13
|
-
}
|
|
14
|
-
var C = "\\ud800-\\udfff", h = "\\u0300-\\u036f", A = "\\ufe20-\\ufe2f", S = "\\u20d0-\\u20ff", $ = h + A + S, j = "\\ufe0e\\ufe0f", y = "\\u200d", F = RegExp("[" + y + C + $ + j + "]");
|
|
15
|
-
function i(r) {
|
|
4
|
+
function v(r, e, o) {
|
|
5
|
+
var u = r.length;
|
|
6
|
+
return o = o === void 0 ? u : o, !e && o >= u ? r : R(r, e, o);
|
|
7
|
+
}
|
|
8
|
+
var C = "\\ud800-\\udfff", S = "\\u0300-\\u036f", A = "\\ufe20-\\ufe2f", $ = "\\u20d0-\\u20ff", h = S + A + $, j = "\\ufe0e\\ufe0f", y = "\\u200d", F = RegExp("[" + y + C + h + j + "]");
|
|
9
|
+
function s(r) {
|
|
16
10
|
return F.test(r);
|
|
17
11
|
}
|
|
18
12
|
function M(r) {
|
|
19
13
|
return r.split("");
|
|
20
14
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return r.match(
|
|
15
|
+
var i = "\\ud800-\\udfff", O = "\\u0300-\\u036f", U = "\\ufe20-\\ufe2f", k = "\\u20d0-\\u20ff", x = O + U + k, H = "\\ufe0e\\ufe0f", J = "[" + i + "]", f = "[" + x + "]", n = "\\ud83c[\\udffb-\\udfff]", T = "(?:" + f + "|" + n + ")", c = "[^" + i + "]", d = "(?:\\ud83c[\\udde6-\\uddff]){2}", l = "[\\ud800-\\udbff][\\udc00-\\udfff]", V = "\\u200d", m = T + "?", p = "[" + H + "]?", E = "(?:" + V + "(?:" + [c, d, l].join("|") + ")" + p + m + ")*", W = p + m + E, Z = "(?:" + [c + f + "?", f, d, l, J].join("|") + ")", q = RegExp(n + "(?=" + n + ")|" + Z + W, "g");
|
|
16
|
+
function w(r) {
|
|
17
|
+
return r.match(q) || [];
|
|
24
18
|
}
|
|
25
19
|
function z(r) {
|
|
26
|
-
return
|
|
20
|
+
return s(r) ? w(r) : M(r);
|
|
27
21
|
}
|
|
28
22
|
function K(r) {
|
|
29
23
|
return function(e) {
|
|
30
24
|
e = g(e);
|
|
31
|
-
var
|
|
32
|
-
return
|
|
25
|
+
var o = s(e) ? z(e) : void 0, u = o ? o[0] : e.charAt(0), t = o ? v(o, 1).join("") : e.slice(1);
|
|
26
|
+
return u[r]() + t;
|
|
33
27
|
};
|
|
34
28
|
}
|
|
35
29
|
var N = K("toUpperCase");
|
|
36
|
-
const
|
|
30
|
+
const a = N;
|
|
37
31
|
function P(r) {
|
|
38
|
-
return r[0] === "_" ?
|
|
32
|
+
return r[0] === "_" ? a(r.slice(1)) : a(r);
|
|
39
33
|
}
|
|
40
|
-
function
|
|
41
|
-
return typeof r == "object" ? Object.entries(r).reduce((e, [
|
|
42
|
-
const
|
|
43
|
-
return e[
|
|
34
|
+
function G(r) {
|
|
35
|
+
return typeof r == "object" ? Object.entries(r).reduce((e, [o, u]) => {
|
|
36
|
+
const b = o.split(".").map(P).join(".");
|
|
37
|
+
return e[b] = u, e;
|
|
44
38
|
}, {}) : r;
|
|
45
39
|
}
|
|
46
40
|
export {
|
|
47
|
-
|
|
41
|
+
G as default
|
|
48
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("@ancon/wildcat-types"),i=require("./getCheckOrderMinimumStatusTicketItem.js");require("./getMultiProductSubProductsTicketItems.js");require("../toString-
|
|
1
|
+
"use strict";const u=require("@ancon/wildcat-types"),i=require("./getCheckOrderMinimumStatusTicketItem.js");require("./getMultiProductSubProductsTicketItems.js");require("../toString-9eae9442.js");require("../isArray-640f9811.js");require("../_baseIteratee-075c204c.js");require("../_getTag-b8923c48.js");require("../_baseIsEqual-bcac9024.js");require("../identity-1bae7cf8.js");function a(s){return s.reduce((e,t)=>{const r=i(t);switch(r==null?void 0:r.status){case u.TicketItemStatus.Ready:e.ready.push(t);break;case u.TicketItemStatus.Closed:e.done.push(t);break}return e},{all:s,ready:[],done:[]})}module.exports=a;
|