@ancon/wildcat-utils 1.43.0-timezone-refactor.2 → 1.43.0-timezone-refactor.4

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.
Files changed (79) hide show
  1. package/currency/getFormattedCurrency.js +1 -1
  2. package/currency/getFormattedCurrency.mjs +1 -1
  3. package/currency/getFormattedCurrencyPostfix.d.ts +1 -1
  4. package/currency/getFormattedCurrencyPostfix.js +1 -1
  5. package/currency/getFormattedCurrencyPostfix.mjs +1 -1
  6. package/currency/index.d.ts +2 -1
  7. package/currency/index.js +1 -1
  8. package/currency/index.mjs +4 -3
  9. package/date/createLocalTimezoneDate.js +1 -1
  10. package/date/createLocalTimezoneDate.mjs +5 -5
  11. package/date/createLocalTimezoneMoment.d.ts +9 -0
  12. package/date/createLocalTimezoneMoment.js +1 -0
  13. package/date/createLocalTimezoneMoment.mjs +8 -0
  14. package/date/index.d.ts +2 -1
  15. package/date/index.js +1 -1
  16. package/date/index.mjs +3 -1
  17. package/index.d.ts +1 -0
  18. package/index.js +1 -1
  19. package/index.mjs +279 -269
  20. package/license/getLicenseUIState.d.ts +4 -1
  21. package/license/getLicenseUIState.js +1 -1
  22. package/license/getLicenseUIState.mjs +17 -5
  23. package/license/index.d.ts +2 -2
  24. package/license/index.js +1 -1
  25. package/license/index.mjs +5 -2
  26. package/license/types.d.ts +2 -1
  27. package/license/types.js +1 -1
  28. package/license/types.mjs +1 -1
  29. package/outlet/getExpressAvailableOrderFormats.js +1 -1
  30. package/outlet/getExpressAvailableOrderFormats.mjs +34 -40
  31. package/outlet/getExpressNextAvailabilityShiftTime.d.ts +2 -2
  32. package/outlet/getExpressNextAvailabilityShiftTime.js +1 -1
  33. package/outlet/getExpressNextAvailabilityShiftTime.mjs +15 -22
  34. package/outlet/getExpressServiceIntervalEnd.d.ts +2 -2
  35. package/outlet/getExpressServiceIntervalEnd.js +1 -1
  36. package/outlet/getExpressServiceIntervalEnd.mjs +5 -11
  37. package/outlet/getExpressServiceIntervalStart.d.ts +2 -2
  38. package/outlet/getExpressServiceIntervalStart.js +1 -1
  39. package/outlet/getExpressServiceIntervalStart.mjs +5 -11
  40. package/outlet/getListOutletOpeningHoursTable.js +1 -1
  41. package/outlet/getListOutletOpeningHoursTable.mjs +62 -61
  42. package/outlet/getOutletActiveOpeningInterval.js +1 -1
  43. package/outlet/getOutletActiveOpeningInterval.mjs +15 -12
  44. package/outlet/getOutletAvailabilityInfo.js +1 -1
  45. package/outlet/getOutletAvailabilityInfo.mjs +23 -25
  46. package/outlet/getOutletCurrentAvailabilityInfo.js +1 -1
  47. package/outlet/getOutletCurrentAvailabilityInfo.mjs +2 -2
  48. package/outlet/getOutletCurrentClosingTimeText.js +1 -1
  49. package/outlet/getOutletCurrentClosingTimeText.mjs +8 -7
  50. package/outlet/getOutletNextOpeningTagInformation.js +1 -1
  51. package/outlet/getOutletNextOpeningTagInformation.mjs +2 -2
  52. package/outlet/getOutletNextOpeningTimeText.js +1 -1
  53. package/outlet/getOutletNextOpeningTimeText.mjs +10 -10
  54. package/outlet/getOutletNextReadyToOrderTime.js +1 -1
  55. package/outlet/getOutletNextReadyToOrderTime.mjs +1 -1
  56. package/outlet/getOutletPickerTimesForDay.js +1 -1
  57. package/outlet/getOutletPickerTimesForDay.mjs +1 -1
  58. package/outlet/getOutletPickerTimesForWeek.js +1 -1
  59. package/outlet/getOutletPickerTimesForWeek.mjs +1 -1
  60. package/outlet/getOutletTagInformation.js +1 -1
  61. package/outlet/getOutletTagInformation.mjs +51 -53
  62. package/outlet/getOutletTodayOpeningTimes.js +1 -1
  63. package/outlet/getOutletTodayOpeningTimes.mjs +20 -19
  64. package/outlet/getPickerIntervalsForDay.js +1 -1
  65. package/outlet/getPickerIntervalsForDay.mjs +16 -18
  66. package/outlet/index.js +1 -1
  67. package/outlet/index.mjs +1 -1
  68. package/outlet/searchNextOpeningMoment.js +1 -1
  69. package/outlet/searchNextOpeningMoment.mjs +49 -52
  70. package/package.json +21 -1
  71. package/ticketItem/index.d.ts +3 -0
  72. package/ticketItem/index.js +1 -0
  73. package/ticketItem/index.mjs +7 -0
  74. package/ticketItem/isTicketItemClosed.d.ts +9 -0
  75. package/ticketItem/isTicketItemClosed.js +1 -0
  76. package/ticketItem/isTicketItemClosed.mjs +7 -0
  77. package/ticketItem/isTicketItemReady.d.ts +6 -0
  78. package/ticketItem/isTicketItemReady.js +1 -0
  79. package/ticketItem/isTicketItemReady.mjs +7 -0
package/index.mjs CHANGED
@@ -1,152 +1,156 @@
1
- import { default as W } from "./shared/isWithinFlag.mjs";
2
- import { default as V } from "./shared/generateId.mjs";
3
- import { default as q } from "./shared/wait.mjs";
4
- import { default as K } from "./shared/kiloGramToGram.mjs";
5
- import { default as Q } from "./shared/gramToKiloGram.mjs";
6
- import { default as X } from "./shared/hooks/usePrevious.mjs";
7
- import { default as Z } from "./shared/hooks/useMountedRef.mjs";
8
- import { default as $ } from "./outlet/getListOutletOpeningHoursTable.mjs";
9
- import { default as te } from "./outlet/getOutletTagInformation.mjs";
10
- import { default as oe } from "./outlet/getOutletAvailabilityInfo.mjs";
11
- import { default as fe } from "./outlet/getOutletOfflineOrderFormats.mjs";
12
- import { default as ue } from "./outlet/getOutletAvailableOrderFormats.mjs";
1
+ import { default as U } from "./shared/isWithinFlag.mjs";
2
+ import { default as B } from "./shared/generateId.mjs";
3
+ import { default as w } from "./shared/wait.mjs";
4
+ import { default as z } from "./shared/kiloGramToGram.mjs";
5
+ import { default as J } from "./shared/gramToKiloGram.mjs";
6
+ import { default as j } from "./shared/hooks/usePrevious.mjs";
7
+ import { default as Y } from "./shared/hooks/useMountedRef.mjs";
8
+ import { default as _ } from "./outlet/getListOutletOpeningHoursTable.mjs";
9
+ import { default as ee } from "./outlet/getOutletTagInformation.mjs";
10
+ import { default as re } from "./outlet/getOutletAvailabilityInfo.mjs";
11
+ import { default as ae } from "./outlet/getOutletOfflineOrderFormats.mjs";
12
+ import { default as se } from "./outlet/getOutletAvailableOrderFormats.mjs";
13
13
  import { default as de } from "./outlet/getOutletFormattedDistance.mjs";
14
- import { default as ie } from "./outlet/isOutletAcceptingPreOrders.mjs";
15
- import { default as xe } from "./outlet/getOutletDeliveryFee.mjs";
16
- import { default as ge } from "./outlet/getOutletTodayOpeningTimes.mjs";
17
- import { default as Oe } from "./outlet/getOutletOrderFormats.mjs";
14
+ import { default as me } from "./outlet/isOutletAcceptingPreOrders.mjs";
15
+ import { default as pe } from "./outlet/getOutletDeliveryFee.mjs";
16
+ import { default as ne } from "./outlet/getOutletTodayOpeningTimes.mjs";
17
+ import { default as ge } from "./outlet/getOutletOrderFormats.mjs";
18
18
  import { default as ke } from "./outlet/serviceDateTimesFromOpeningHours.mjs";
19
19
  import { default as Te } from "./outlet/getPickerIntervalsForDay.mjs";
20
- import { default as he } from "./outlet/getServiceIntervalRange.mjs";
21
- import { default as Ae } from "./outlet/getServiceIntervalsForOrderFormat.mjs";
22
- import { default as ye } from "./outlet/getOutletFormattedAddress.mjs";
23
- import { default as ve } from "./outlet/getPartitionedOutletsList.mjs";
24
- import { default as De } from "./outlet/getOutletPickerTimesForWeek.mjs";
20
+ import { default as Ce } from "./outlet/getServiceIntervalRange.mjs";
21
+ import { default as Fe } from "./outlet/getServiceIntervalsForOrderFormat.mjs";
22
+ import { default as Ae } from "./outlet/getOutletFormattedAddress.mjs";
23
+ import { default as Ee } from "./outlet/getPartitionedOutletsList.mjs";
24
+ import { default as be } from "./outlet/getOutletPickerTimesForWeek.mjs";
25
25
  import { default as Re } from "./outlet/getOutletPickerTimesForDay.mjs";
26
- import { default as Le } from "./outlet/getOutletOrderPrepTime.mjs";
27
- import { default as Ge } from "./outlet/getStructuredOutletAddress.mjs";
28
- import { default as We } from "./outlet/getOutletNextOpeningTimeText.mjs";
29
- import { default as Ve } from "./outlet/getOutletCurrentClosingTimeText.mjs";
30
- import { default as qe } from "./outlet/getOutletNextReadyToOrderTime.mjs";
31
- import { default as Ke } from "./outlet/getOutletNextOpeningTagInformation.mjs";
32
- import { default as Qe } from "./outlet/getOutletCurrentAvailabilityInfo.mjs";
33
- import { default as Xe } from "./outlet/getExpressAvailableOrderFormats.mjs";
34
- import { default as Ze } from "./outlet/getExpressNextAvailabilityShiftTime.mjs";
35
- import { default as $e } from "./outlet/getOrderFormatAOTipSettings.mjs";
36
- import { default as tt } from "./outlet/isAOTippingEnabledForOrderFormat.mjs";
37
- import { default as ot } from "./outlet/isMenuTreeHierarchyProductAvailable.mjs";
38
- import { default as ft } from "./outlet/getOutletMenuProductsSortCriteria.mjs";
39
- import { default as ut } from "./versioning/isVersionALessThanB.mjs";
26
+ import { default as Ne } from "./outlet/getOutletOrderPrepTime.mjs";
27
+ import { default as He } from "./outlet/getStructuredOutletAddress.mjs";
28
+ import { default as Ue } from "./outlet/getOutletNextOpeningTimeText.mjs";
29
+ import { default as Be } from "./outlet/getOutletCurrentClosingTimeText.mjs";
30
+ import { default as we } from "./outlet/getOutletNextReadyToOrderTime.mjs";
31
+ import { default as ze } from "./outlet/getOutletNextOpeningTagInformation.mjs";
32
+ import { default as Je } from "./outlet/getOutletCurrentAvailabilityInfo.mjs";
33
+ import { default as je } from "./outlet/getExpressAvailableOrderFormats.mjs";
34
+ import { default as Ye } from "./outlet/getExpressNextAvailabilityShiftTime.mjs";
35
+ import { default as _e } from "./outlet/getOrderFormatAOTipSettings.mjs";
36
+ import { default as et } from "./outlet/isAOTippingEnabledForOrderFormat.mjs";
37
+ import { default as rt } from "./outlet/isMenuTreeHierarchyProductAvailable.mjs";
38
+ import { default as at } from "./outlet/getOutletMenuProductsSortCriteria.mjs";
39
+ import { default as st } from "./versioning/isVersionALessThanB.mjs";
40
40
  import { default as dt } from "./versioning/cleanVersionString.mjs";
41
- import { default as it } from "./api/getUrlAndParams.mjs";
42
- import { default as xt } from "./api/getEndpointWithVersion.mjs";
43
- import { default as gt } from "./api/generateBackoffWithEqualJitter.mjs";
44
- import { default as Ot } from "./api/isAcceptedResponse.mjs";
41
+ import { default as mt } from "./api/getUrlAndParams.mjs";
42
+ import { default as pt } from "./api/getEndpointWithVersion.mjs";
43
+ import { default as nt } from "./api/generateBackoffWithEqualJitter.mjs";
44
+ import { default as gt } from "./api/isAcceptedResponse.mjs";
45
45
  import { default as kt } from "./api/isNoContentResponse.mjs";
46
46
  import { default as Tt } from "./api/APIFilterBuilder.mjs";
47
- import { default as ht } from "./string/slugify.mjs";
48
- import { default as At } from "./string/truncate.mjs";
49
- import { default as yt } from "./string/getRandomAlphaNumericCode.mjs";
50
- import { default as vt } from "./string/getParsedJSONFromString.mjs";
51
- import { default as Dt } from "./color/lighten.mjs";
47
+ import { default as Ct } from "./string/slugify.mjs";
48
+ import { default as Ft } from "./string/truncate.mjs";
49
+ import { default as At } from "./string/getRandomAlphaNumericCode.mjs";
50
+ import { default as Et } from "./string/getParsedJSONFromString.mjs";
51
+ import { default as bt } from "./color/lighten.mjs";
52
52
  import { default as Rt } from "./color/brighten.mjs";
53
- import { default as Lt } from "./color/darken.mjs";
54
- import { default as Gt } from "./color/isDarkBackground.mjs";
55
- import { default as Wt } from "./color/isColorsReadable.mjs";
56
- import { default as Vt } from "./user/getFullName.mjs";
57
- import { default as qt } from "./user/getFullAddressString.mjs";
58
- import { default as Kt } from "./user/getCustomerAddressFromGeocoderResult.mjs";
59
- import { default as Qt } from "./user/getFormattedPhoneNumber.mjs";
60
- import { default as Xt } from "./user/getStructuredCustomerAddress.mjs";
61
- import { default as Zt } from "./logger/Logger.mjs";
62
- import { LogLevel as $t } from "./logger/types.mjs";
63
- import { default as tr } from "./logger/sanitizeAsStringDict.mjs";
64
- import { default as or } from "./logger/pascalCaseFormatter.mjs";
65
- import { default as fr } from "./printing/getPrinterType.mjs";
66
- import { default as ur } from "./printing/isValidPrinter.mjs";
53
+ import { default as Nt } from "./color/darken.mjs";
54
+ import { default as Ht } from "./color/isDarkBackground.mjs";
55
+ import { default as Ut } from "./color/isColorsReadable.mjs";
56
+ import { default as Bt } from "./user/getFullName.mjs";
57
+ import { default as wt } from "./user/getFullAddressString.mjs";
58
+ import { default as zt } from "./user/getCustomerAddressFromGeocoderResult.mjs";
59
+ import { default as Jt } from "./user/getFormattedPhoneNumber.mjs";
60
+ import { default as jt } from "./user/getStructuredCustomerAddress.mjs";
61
+ import { default as Yt } from "./logger/Logger.mjs";
62
+ import { LogLevel as _t } from "./logger/types.mjs";
63
+ import { default as er } from "./logger/sanitizeAsStringDict.mjs";
64
+ import { default as rr } from "./logger/pascalCaseFormatter.mjs";
65
+ import { default as ar } from "./printing/getPrinterType.mjs";
66
+ import { default as sr } from "./printing/isValidPrinter.mjs";
67
67
  import { default as dr } from "./printing/isValidNetworkPrinter.mjs";
68
- import { default as ir } from "./printing/isValidStarCloudPrinter.mjs";
69
- import { default as xr } from "./printing/isTerminalPrinter.mjs";
70
- import { default as gr } from "./printing/isCloudPrintModeEnabled.mjs";
71
- import { default as Or } from "./printing/createStarCloudScanHook.mjs";
68
+ import { default as mr } from "./printing/isValidStarCloudPrinter.mjs";
69
+ import { default as pr } from "./printing/isTerminalPrinter.mjs";
70
+ import { default as nr } from "./printing/isCloudPrintModeEnabled.mjs";
71
+ import { default as gr } from "./printing/createStarCloudScanHook.mjs";
72
72
  import { default as kr } from "./number/randomIntFromInterval.mjs";
73
73
  import { default as Tr } from "./tables/decodeTableQRPayload.mjs";
74
- import { default as hr } from "./checkout/getCheckoutItemModifications.mjs";
75
- import { default as Ar } from "./checkout/getCheckoutProductName.mjs";
76
- import { TranslationKey as yr, default as Er } from "./checkout/getCheckoutOrderStatusTexts.mjs";
77
- import { default as br } from "./checkout/getCheckoutItemsMappedByTicketItemStatus.mjs";
78
- import { default as Nr } from "./checkout/isCheckoutOrderSummary.mjs";
74
+ import { default as Cr } from "./checkout/getCheckoutItemModifications.mjs";
75
+ import { default as Fr } from "./checkout/getCheckoutProductName.mjs";
76
+ import { TranslationKey as Ar, default as yr } from "./checkout/getCheckoutOrderStatusTexts.mjs";
77
+ import { default as vr } from "./checkout/getCheckoutItemsMappedByTicketItemStatus.mjs";
78
+ import { default as Dr } from "./checkout/isCheckoutOrderSummary.mjs";
79
79
  import { default as Mr } from "./checkout/buildCheckoutRequestItem.mjs";
80
- import { default as Hr } from "./checkout/getCheckoutGrandTotalAmount.mjs";
81
- import { default as Ur } from "./checkout/getCheckoutRequestItemFromCheckoutItem.mjs";
82
- import { default as Br } from "./checkout/isCheckoutItemsAreEqual.mjs";
83
- import { default as wr } from "./checkout/checkoutHasWallet.mjs";
84
- import { default as zr } from "./checkout/getWalletMetaFromCheckout.mjs";
85
- import { default as Jr } from "./checkout/isPreOrderServiceTime.mjs";
86
- import { default as jr } from "./checkout/isPreOrderCheckout.mjs";
87
- import { default as Yr } from "./checkout/isUpdatingCheckoutAllowed.mjs";
88
- import { default as _r } from "./checkout/isCheckoutAlreadyPaidStatus.mjs";
89
- import { CheckoutPaymentErrorTranslationKey as eo, default as to } from "./checkout/getCheckoutPaymentErrorTranslationTexts.mjs";
90
- import { default as oo } from "./checkout/isDeletingCheckoutAllowed.mjs";
91
- import { default as fo } from "./checkout/getTotalCheckoutItemsQuantity.mjs";
92
- import { default as uo } from "./checkout/getCheckoutPenguinLockersMetaData.mjs";
93
- import { default as mo } from "./checkout/getUniqueCheckoutPenguinDeliveryCodes.mjs";
94
- import { default as po } from "./checkout/isWoltDeliveryInProgress.mjs";
95
- import { default as no } from "./order/getCheckOrderItemsMappedByTicketItemStatus.mjs";
80
+ import { default as Lr } from "./checkout/getCheckoutGrandTotalAmount.mjs";
81
+ import { default as Gr } from "./checkout/getCheckoutRequestItemFromCheckoutItem.mjs";
82
+ import { default as Wr } from "./checkout/isCheckoutItemsAreEqual.mjs";
83
+ import { default as Vr } from "./checkout/checkoutHasWallet.mjs";
84
+ import { default as qr } from "./checkout/getWalletMetaFromCheckout.mjs";
85
+ import { default as Kr } from "./checkout/isPreOrderServiceTime.mjs";
86
+ import { default as Qr } from "./checkout/isPreOrderCheckout.mjs";
87
+ import { default as Xr } from "./checkout/isUpdatingCheckoutAllowed.mjs";
88
+ import { default as Zr } from "./checkout/isCheckoutAlreadyPaidStatus.mjs";
89
+ import { CheckoutPaymentErrorTranslationKey as $r, default as eo } from "./checkout/getCheckoutPaymentErrorTranslationTexts.mjs";
90
+ import { default as ro } from "./checkout/isDeletingCheckoutAllowed.mjs";
91
+ import { default as ao } from "./checkout/getTotalCheckoutItemsQuantity.mjs";
92
+ import { default as so } from "./checkout/getCheckoutPenguinLockersMetaData.mjs";
93
+ import { default as lo } from "./checkout/getUniqueCheckoutPenguinDeliveryCodes.mjs";
94
+ import { default as io } from "./checkout/isWoltDeliveryInProgress.mjs";
95
+ import { default as xo } from "./order/getCheckOrderItemsMappedByTicketItemStatus.mjs";
96
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
- import { default as Fo } from "./inventory/isDetailedProductVariantOutOfStocks.mjs";
101
- import { default as Io } from "./inventory/isMenuTreeProductOutOfStock.mjs";
102
- import { default as Eo } from "./inventory/isDetailedProductUpSellsOutOfStock.mjs";
103
- import { default as bo } from "./inventory/isUpSellProductOutStock.mjs";
104
- import { default as No } from "./inventory/isDetailedProductOutletStockOutOfStock.mjs";
105
- import { default as Mo } from "./inventory/getDetailedProductVariantStock.mjs";
106
- import { default as Ho } from "./signalr/createUseSignalRHook.mjs";
107
- import { default as Uo } from "./signalr/SignalR.mjs";
108
- import { default as Bo } from "./error/createCodedError.mjs";
109
- import { default as wo } from "./error/isCodedError.mjs";
110
- import { default as zo } from "./error/isNetworkError.mjs";
111
- import { default as Jo } from "./error/isLockedError.mjs";
112
- import { default as jo } from "./error/isNotFoundError.mjs";
113
- import { default as Yo } from "./error/isAPIError.mjs";
114
- import { default as _o } from "./error/isSerializedAPIError.mjs";
115
- import { default as ea } from "./error/isSerializedCodedError.mjs";
116
- import { default as ra } from "./error/serializeError.mjs";
117
- import { default as aa } from "./error/getErrorCode.mjs";
118
- import { default as sa } from "./error/isErrorWithStatusCode.mjs";
97
+ import { default as Oo } from "./order/getMultiProductSubProductsTicketItems.mjs";
98
+ import { default as Po } from "./currency/getFormattedCurrency.mjs";
99
+ import { default as So } from "./currency/getFormattedCurrencyPostfix.mjs";
100
+ import { default as ho } from "./inventory/isDetailedProductOutOfStock.mjs";
101
+ import { default as Io } from "./inventory/isDetailedProductVariantOutOfStocks.mjs";
102
+ import { default as yo } from "./inventory/isMenuTreeProductOutOfStock.mjs";
103
+ import { default as vo } from "./inventory/isDetailedProductUpSellsOutOfStock.mjs";
104
+ import { default as Do } from "./inventory/isUpSellProductOutStock.mjs";
105
+ import { default as Mo } from "./inventory/isDetailedProductOutletStockOutOfStock.mjs";
106
+ import { default as Lo } from "./inventory/getDetailedProductVariantStock.mjs";
107
+ import { default as Go } from "./signalr/createUseSignalRHook.mjs";
108
+ import { default as Wo } from "./signalr/SignalR.mjs";
109
+ import { default as Vo } from "./error/createCodedError.mjs";
110
+ import { default as qo } from "./error/isCodedError.mjs";
111
+ import { default as Ko } from "./error/isNetworkError.mjs";
112
+ import { default as Qo } from "./error/isLockedError.mjs";
113
+ import { default as Xo } from "./error/isNotFoundError.mjs";
114
+ import { default as Zo } from "./error/isAPIError.mjs";
115
+ import { default as $o } from "./error/isSerializedAPIError.mjs";
116
+ import { default as ta } from "./error/isSerializedCodedError.mjs";
117
+ import { default as oa } from "./error/serializeError.mjs";
118
+ import { default as fa } from "./error/getErrorCode.mjs";
119
+ import { default as ua } from "./error/isErrorWithStatusCode.mjs";
119
120
  import { default as la } from "./error/isBadGatewayError.mjs";
120
- import { default as ma } from "./error/isServiceUnavailableError.mjs";
121
- import { default as pa } from "./hangfire/isHangfireResponse.mjs";
122
- import { default as na } from "./hangfire/isHangfireWorkerExpiredOrInvalidError.mjs";
123
- import { default as ca } from "./hangfire/createHangfirePoller.mjs";
121
+ import { default as ia } from "./error/isServiceUnavailableError.mjs";
122
+ import { default as xa } from "./hangfire/isHangfireResponse.mjs";
123
+ import { default as ca } from "./hangfire/isHangfireWorkerExpiredOrInvalidError.mjs";
124
+ import { default as Oa } from "./hangfire/createHangfirePoller.mjs";
124
125
  import { default as Pa } from "./hangfire/createMakeHangfireRequest.mjs";
125
126
  import { default as Sa } from "./product/extractProductsFromMenuTree.mjs";
126
- import { default as Ca } from "./product/calculateIngredientsCost.mjs";
127
- import { default as Fa } from "./product/calculateAddonGroupCost.mjs";
128
- import { default as Ia } from "./product/getAddonGroupInfoBySettings.mjs";
129
- import { default as Ea } from "./product/calculateWeightProductPrice.mjs";
130
- import { default as ba } from "./product/calculateProductWeightByPrice.mjs";
131
- import { default as Na } from "./codec/base64URLEncode.mjs";
132
- import { default as Ma } from "./codec/base64URLDecode.mjs";
133
- import { default as Ha } from "./hashing/getSHA256Hash.mjs";
134
- import { default as Ua } from "./preOrder/isPreOrderSharable.mjs";
135
- import { default as Ba } from "./preOrder/isPreOrderLink.mjs";
136
- import { default as wa } from "./preOrder/isGroupPreOrder.mjs";
137
- import { default as za } from "./phoneNumber/isPhoneNumberValid.mjs";
138
- import { default as Ja } from "./phoneNumber/formatPhoneNumber.mjs";
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";
127
+ import { default as ha } from "./product/calculateIngredientsCost.mjs";
128
+ import { default as Ia } from "./product/calculateAddonGroupCost.mjs";
129
+ import { default as ya } from "./product/getAddonGroupInfoBySettings.mjs";
130
+ import { default as va } from "./product/calculateWeightProductPrice.mjs";
131
+ import { default as Da } from "./product/calculateProductWeightByPrice.mjs";
132
+ import { default as Ma } from "./codec/base64URLEncode.mjs";
133
+ import { default as La } from "./codec/base64URLDecode.mjs";
134
+ import { default as Ga } from "./hashing/getSHA256Hash.mjs";
135
+ import { default as Wa } from "./preOrder/isPreOrderSharable.mjs";
136
+ import { default as Va } from "./preOrder/isPreOrderLink.mjs";
137
+ import { default as qa } from "./preOrder/isGroupPreOrder.mjs";
138
+ import { default as Ka } from "./phoneNumber/isPhoneNumberValid.mjs";
139
+ import { default as Qa } from "./phoneNumber/formatPhoneNumber.mjs";
140
+ import { default as Xa, isLicenseExpired as Ya, isLicenseExtended as Za, isLicenseTerminated as _a } from "./license/getLicenseUIState.mjs";
141
+ import { default as ef } from "./googleMap/getComponentNameFromGeocoderResult.mjs";
142
+ import { default as rf } from "./date/createLocalTimezoneDate.mjs";
143
+ import { default as af } from "./date/createLocalTimezoneMoment.mjs";
144
+ import { default as sf } from "./time/toMinutes.mjs";
145
+ import { default as df } from "./time/getNextTenthMinute.mjs";
146
+ import { default as mf } from "./time/getPrevNthMinute.mjs";
147
+ import { default as xf } from "./time/getTimeSpanParts.mjs";
148
+ import { default as cf } from "./time/getEndTimeSpanOfTimePeriod.mjs";
149
+ import { default as Of } from "./time/createTimeSpan.mjs";
150
+ import { default as Pf } from "./time/formatTimeSpan.mjs";
151
+ import { default as Sf } from "./time/getDurationBetweenTimeSpans.mjs";
152
+ import { default as hf } from "./ticketItem/isTicketItemReady.mjs";
153
+ import { default as If } from "./ticketItem/isTicketItemClosed.mjs";
150
154
  import "react";
151
155
  import "moment";
152
156
  import "@ancon/wildcat-types";
@@ -179,161 +183,167 @@ import "dayjs";
179
183
  import "@ancon/wildcat-printing";
180
184
  import "./printing/types.mjs";
181
185
  import "axios";
182
- import "./currency/getFormattedCurrencyPostfix.mjs";
183
186
  import "react-redux";
184
187
  import "@microsoft/signalr";
185
188
  import "google-libphonenumber";
186
189
  import "./license/types.mjs";
187
190
  export {
188
191
  Tt as APIFilterBuilder,
189
- eo as CheckoutPaymentErrorTranslationKey,
190
- $t as LogLevel,
191
- Zt as Logger,
192
- Uo as SignalR,
193
- yr as TranslationKey,
194
- Ma as base64URLDecode,
195
- Na as base64URLEncode,
192
+ $r as CheckoutPaymentErrorTranslationKey,
193
+ _t as LogLevel,
194
+ Yt as Logger,
195
+ Wo as SignalR,
196
+ Ar as TranslationKey,
197
+ La as base64URLDecode,
198
+ Ma as base64URLEncode,
196
199
  Rt as brighten,
197
200
  Mr as buildCheckoutRequestItem,
198
- Fa as calculateAddonGroupsCost,
199
- Ca as calculateIngredientsCost,
200
- ba as calculateProductWeightByPrice,
201
- Ea as calculateWeightProductPrice,
202
- wr as checkoutHasWallet,
201
+ Ia as calculateAddonGroupsCost,
202
+ ha as calculateIngredientsCost,
203
+ Da as calculateProductWeightByPrice,
204
+ va as calculateWeightProductPrice,
205
+ Vr as checkoutHasWallet,
203
206
  dt as cleanVersionString,
204
- Bo as createCodedError,
205
- ca as createHangfirePoller,
206
- _a as createLocalTimezoneDate,
207
+ Vo as createCodedError,
208
+ Oa as createHangfirePoller,
209
+ rf as createLocalTimezoneDate,
210
+ af as createLocalTimezoneMoment,
207
211
  Pa as createMakeHangfireRequest,
208
- mf as createTimeSpan,
209
- Ho as createUseSignalRHook,
210
- Or as createUseStarCloudScanHook,
211
- Lt as darken,
212
+ Of as createTimeSpan,
213
+ Go as createUseSignalRHook,
214
+ gr as createUseStarCloudScanHook,
215
+ Nt as darken,
212
216
  Tr as decodeTableQRPayload,
213
217
  Sa as extractProductsFromMenuTree,
214
- Ja as formatPhoneNumber,
215
- xf as formatTimeSpan,
216
- gt as generateBackoffWithEqualJitter,
217
- V as generateId,
218
- Ia as getAddonGroupInfoBySettings,
219
- no as getCheckOrderItemsMappedByTicketItemStatus,
218
+ Qa as formatPhoneNumber,
219
+ Pf as formatTimeSpan,
220
+ nt as generateBackoffWithEqualJitter,
221
+ B as generateId,
222
+ ya as getAddonGroupInfoBySettings,
223
+ xo as getCheckOrderItemsMappedByTicketItemStatus,
220
224
  co as getCheckOrderMinimumStatusTicketItem,
221
- Hr as getCheckoutGrandTotalAmount,
222
- hr as getCheckoutGroupedModifications,
223
- br as getCheckoutItemsMappedByTicketItemStatus,
224
- Er as getCheckoutOrderStatusTexts,
225
- to as getCheckoutPaymentErrorTranslationTexts,
226
- uo as getCheckoutPenguinLockersMetaData,
227
- Ar as getCheckoutProductName,
228
- Ur as getCheckoutRequestItemFromCheckoutItem,
229
- Ya as getComponentNameFromGeocoderResult,
230
- Kt as getCustomerAddressFromGeocoderResult,
231
- Mo as getDetailedProductVariantStock,
232
- gf as getDurationBetweenTimeSpans,
233
- lf as getEndTimeSpanOfTimePeriod,
234
- xt as getEndpointWithVersion,
235
- aa as getErrorCode,
236
- Xe as getExpressAvailableOrderFormats,
237
- Ze as getExpressNextAvailabilityShiftTime,
238
- So as getFormattedCurrency,
239
- Qt as getFormattedPhoneNumber,
240
- qt as getFullAddressString,
241
- Vt as getFullName,
242
- ja as getLicenseUIState,
243
- $ as getListOutletOpeningHoursTable,
244
- Po as getMultiProductSubProductsTicketItems,
245
- rf as getNextTenthMinute,
246
- $e as getOrderFormatAOTipSettings,
247
- oe as getOutletAvailabilityInfo,
248
- ue as getOutletAvailableOrderFormats,
249
- Qe as getOutletCurrentAvailabilityInfo,
250
- Ve as getOutletCurrentClosingTimeText,
251
- xe as getOutletDeliveryFee,
252
- ye as getOutletFormattedAddress,
225
+ Lr as getCheckoutGrandTotalAmount,
226
+ Cr as getCheckoutGroupedModifications,
227
+ vr as getCheckoutItemsMappedByTicketItemStatus,
228
+ yr as getCheckoutOrderStatusTexts,
229
+ eo as getCheckoutPaymentErrorTranslationTexts,
230
+ so as getCheckoutPenguinLockersMetaData,
231
+ Fr as getCheckoutProductName,
232
+ Gr as getCheckoutRequestItemFromCheckoutItem,
233
+ ef as getComponentNameFromGeocoderResult,
234
+ zt as getCustomerAddressFromGeocoderResult,
235
+ Lo as getDetailedProductVariantStock,
236
+ Sf as getDurationBetweenTimeSpans,
237
+ cf as getEndTimeSpanOfTimePeriod,
238
+ pt as getEndpointWithVersion,
239
+ fa as getErrorCode,
240
+ je as getExpressAvailableOrderFormats,
241
+ Ye as getExpressNextAvailabilityShiftTime,
242
+ Po as getFormattedCurrency,
243
+ So as getFormattedCurrencyPostfix,
244
+ Jt as getFormattedPhoneNumber,
245
+ wt as getFullAddressString,
246
+ Bt as getFullName,
247
+ Xa as getLicenseUIState,
248
+ _ as getListOutletOpeningHoursTable,
249
+ Oo as getMultiProductSubProductsTicketItems,
250
+ df as getNextTenthMinute,
251
+ _e as getOrderFormatAOTipSettings,
252
+ re as getOutletAvailabilityInfo,
253
+ se as getOutletAvailableOrderFormats,
254
+ Je as getOutletCurrentAvailabilityInfo,
255
+ Be as getOutletCurrentClosingTimeText,
256
+ pe as getOutletDeliveryFee,
257
+ Ae as getOutletFormattedAddress,
253
258
  de as getOutletFormattedDistance,
254
- ft as getOutletMenuProductsSortCriteria,
255
- Ke as getOutletNextOpeningTagInformation,
256
- We as getOutletNextOpeningTimeText,
257
- qe as getOutletNextReadyToOrderTime,
258
- fe as getOutletOfflineOrderFormats,
259
- Oe as getOutletOrderFormats,
260
- Le as getOutletOrderPreparationTime,
259
+ at as getOutletMenuProductsSortCriteria,
260
+ ze as getOutletNextOpeningTagInformation,
261
+ Ue as getOutletNextOpeningTimeText,
262
+ we as getOutletNextReadyToOrderTime,
263
+ ae as getOutletOfflineOrderFormats,
264
+ ge as getOutletOrderFormats,
265
+ Ne as getOutletOrderPreparationTime,
261
266
  Re as getOutletPickerTimesForDay,
262
- De as getOutletPickerTimesForWeek,
263
- te as getOutletTagInformation,
264
- ge as getOutletTodayOpeningTimes,
265
- vt as getParsedJSONFromString,
266
- ve as getPartitionedOutletsList,
267
+ be as getOutletPickerTimesForWeek,
268
+ ee as getOutletTagInformation,
269
+ ne as getOutletTodayOpeningTimes,
270
+ Et as getParsedJSONFromString,
271
+ Ee as getPartitionedOutletsList,
267
272
  Te as getPickerIntervalsForDay,
268
- af as getPrevNthMinute,
269
- fr as getPrinterType,
270
- yt as getRandomAlphaNumericCode,
271
- Ha as getSHA256Hash,
272
- he as getServiceIntervalRange,
273
- Ae as getServiceIntervalsForOrderFormat,
274
- Xt as getStructuredCustomerAddress,
275
- Ge as getStructuredOutletAddress,
276
- sf as getTimeSpanParts,
277
- fo as getTotalCheckoutItemsQuantity,
278
- mo as getUniqueCheckoutPenguinDeliveryCodes,
279
- it as getUrlAndParams,
280
- zr as getWalletMetaFromCheckout,
281
- Q as gramToKiloGram,
282
- tt as isAOTippingEnabledForOrderFormat,
283
- Yo as isAPIError,
284
- Ot as isAcceptedResponse,
273
+ mf as getPrevNthMinute,
274
+ ar as getPrinterType,
275
+ At as getRandomAlphaNumericCode,
276
+ Ga as getSHA256Hash,
277
+ Ce as getServiceIntervalRange,
278
+ Fe as getServiceIntervalsForOrderFormat,
279
+ jt as getStructuredCustomerAddress,
280
+ He as getStructuredOutletAddress,
281
+ xf as getTimeSpanParts,
282
+ ao as getTotalCheckoutItemsQuantity,
283
+ lo as getUniqueCheckoutPenguinDeliveryCodes,
284
+ mt as getUrlAndParams,
285
+ qr as getWalletMetaFromCheckout,
286
+ J as gramToKiloGram,
287
+ et as isAOTippingEnabledForOrderFormat,
288
+ Zo as isAPIError,
289
+ gt as isAcceptedResponse,
285
290
  la as isBadGatewayError,
286
- _r as isCheckoutAlreadyPaidStatus,
287
- Br as isCheckoutItemsAreEqual,
288
- Nr as isCheckoutOrderSummary,
289
- gr as isCloudPrintModeEnabled,
290
- wo as isCodedError,
291
- Wt as isColorsReadable,
292
- Gt as isDarkBackground,
293
- oo as isDeletingCheckoutAllowed,
294
- Co as isDetailedProductOutOfStock,
295
- No as isDetailedProductOutletStockOutOfStock,
296
- Eo as isDetailedProductUpSellsOutOfStock,
297
- Fo as isDetailedProductVariantOutOfStocks,
298
- sa as isErrorWithStatusCode,
299
- wa as isGroupPreOrder,
300
- pa as isHangfireResponse,
301
- na as isHangfireWorkerExpiredOrInvalidError,
302
- Jo as isLockedError,
303
- ot as isMenuTreeHierarchyProductAvailable,
304
- Io as isMenuTreeProductOutOfStock,
305
- zo as isNetworkError,
291
+ Zr as isCheckoutAlreadyPaidStatus,
292
+ Wr as isCheckoutItemsAreEqual,
293
+ Dr as isCheckoutOrderSummary,
294
+ nr as isCloudPrintModeEnabled,
295
+ qo as isCodedError,
296
+ Ut as isColorsReadable,
297
+ Ht as isDarkBackground,
298
+ ro as isDeletingCheckoutAllowed,
299
+ ho as isDetailedProductOutOfStock,
300
+ Mo as isDetailedProductOutletStockOutOfStock,
301
+ vo as isDetailedProductUpSellsOutOfStock,
302
+ Io as isDetailedProductVariantOutOfStocks,
303
+ ua as isErrorWithStatusCode,
304
+ qa as isGroupPreOrder,
305
+ xa as isHangfireResponse,
306
+ ca as isHangfireWorkerExpiredOrInvalidError,
307
+ Ya as isLicenseExpired,
308
+ Za as isLicenseExtended,
309
+ _a as isLicenseTerminated,
310
+ Qo as isLockedError,
311
+ rt as isMenuTreeHierarchyProductAvailable,
312
+ yo as isMenuTreeProductOutOfStock,
313
+ Ko as isNetworkError,
306
314
  kt as isNoContentResponse,
307
- jo as isNotFoundError,
308
- ie as isOutletAcceptingPreOrders,
309
- za as isPhoneNumberValid,
310
- jr as isPreOrderCheckout,
311
- Ba as isPreOrderLink,
312
- Jr as isPreOrderServiceTime,
313
- Ua as isPreOrderSharable,
314
- _o as isSerializedAPIError,
315
- ea as isSerializedCodedError,
316
- ma as isServiceUnavailableError,
317
- xr as isTerminalPrinter,
318
- bo as isUpSellProductOutOfStock,
319
- Yr as isUpdatingCheckoutAllowed,
315
+ Xo as isNotFoundError,
316
+ me as isOutletAcceptingPreOrders,
317
+ Ka as isPhoneNumberValid,
318
+ Qr as isPreOrderCheckout,
319
+ Va as isPreOrderLink,
320
+ Kr as isPreOrderServiceTime,
321
+ Wa as isPreOrderSharable,
322
+ $o as isSerializedAPIError,
323
+ ta as isSerializedCodedError,
324
+ ia as isServiceUnavailableError,
325
+ pr as isTerminalPrinter,
326
+ If as isTicketItemClosed,
327
+ hf as isTicketItemReady,
328
+ Do as isUpSellProductOutOfStock,
329
+ Xr as isUpdatingCheckoutAllowed,
320
330
  dr as isValidNetworkPrinter,
321
- ur as isValidPrinter,
322
- ir as isValidStarCloudPrinter,
323
- ut as isVersionALessThanB,
324
- W as isWithinFlag,
325
- po as isWoltDeliveryInProgress,
326
- K as kiloGramToGram,
327
- Dt as lighten,
328
- or as pascalCaseFormatter,
331
+ sr as isValidPrinter,
332
+ mr as isValidStarCloudPrinter,
333
+ st as isVersionALessThanB,
334
+ U as isWithinFlag,
335
+ io as isWoltDeliveryInProgress,
336
+ z as kiloGramToGram,
337
+ bt as lighten,
338
+ rr as pascalCaseFormatter,
329
339
  kr as randomIntFromInterval,
330
- tr as sanitizeAsStringDict,
331
- ra as serializeError,
340
+ er as sanitizeAsStringDict,
341
+ oa as serializeError,
332
342
  ke as serviceDateTimesFromOpeningHours,
333
- ht as slugify,
334
- ef as toMinutes,
335
- At as truncate,
336
- Z as useMountedRef,
337
- X as usePrevious,
338
- q as wait
343
+ Ct as slugify,
344
+ sf as toMinutes,
345
+ Ft as truncate,
346
+ Y as useMountedRef,
347
+ j as usePrevious,
348
+ w as wait
339
349
  };
@@ -1,3 +1,6 @@
1
1
  import { LicenseStatus } from '@ancon/wildcat-types';
2
2
  import { LicenseUIState } from './types';
3
- export default function getLicenseUIState(licenseState: LicenseStatus, endDate?: string, daysToWarnExpiry?: number): LicenseUIState;
3
+ export declare function isLicenseTerminated(licenseStatus: LicenseStatus): boolean;
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;
@@ -1 +1 @@
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
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("moment"),i=require("@ancon/wildcat-types"),t=require("./types.js");function s(e){return(e&i.LicenseStatus.Terminated)===i.LicenseStatus.Terminated}function c(e){return(e&i.LicenseStatus.Expired)===i.LicenseStatus.Expired}function u(e){return(e&i.LicenseStatus.Extended)===i.LicenseStatus.Extended}function o(e,n,d,a=10){return s(e)?t.LicenseUIState.Terminated:c(e)?t.LicenseUIState.Expired:u(e)?t.LicenseUIState.Extended:d?t.LicenseUIState.Deleted:n&&r(n).diff(r(),"day")<=a?t.LicenseUIState.AboutToExpire:t.LicenseUIState.Valid}exports.default=o;exports.isLicenseExpired=c;exports.isLicenseExtended=u;exports.isLicenseTerminated=s;