@ancon/wildcat-utils 1.40.15 → 1.40.16
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("@ancon/wildcat-types"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("@ancon/wildcat-types"),v=require("./getCheckoutItemsMappedByTicketItemStatus.js");var C=(e=>(e.OrderConfirmedHostWillApproveAndProcess="orderConfirmedHostWillApproveAndProcess",e.OrderConfirmedRestaurantAdminWillAcceptSoon="orderConfirmedRestaurantAdminWillAcceptSoon",e.YourOrderHasBeenApprovedByHost="yourOrderHasBeenApprovedByHost",e.YourOrderIsBeingProcessed="yourOrderIsBeingProcessed",e.YourOrderWasCancelled="yourOrderWasCancelled",e.ProcessingPayment="processingPayment",e.YourOrderIsBeingPrepared="yourOrderIsBeingPrepared",e.YourOrderIsReadyToCollect="yourOrderIsReadyToCollect",e.YourOrderIsBeingDelivered="yourOrderIsBeingDelivered",e.YourOrderHasBeenCompleted="yourOrderHasBeenCompleted",e.YourOrderWillArriveAtYourTable="yourOrderWillArriveAtYourTable",e.ModifiedDeliveryStartTime="modifiedDeliveryStartTime",e.ModifiedPickUpTime="modifiedPickUpTime",e.YourOrderHasBeenAcceptedEstimatedDeliveryStartTime="yourOrderHasBeenAcceptedEstimatedDeliveryStartTime",e.YourOrderIsBeingPreparedEstimatedDeliveryStartTime="yourOrderIsBeingPreparedEstimatedDeliveryStartTime",e.YourOrderHasBeenAcceptedEstimatedTime="yourOrderHasBeenAcceptedEstimatedTime",e.YourOrderHasBeenAcceptedPickupTime="yourOrderHasBeenAcceptedPickupTime",e.DeliveryWasCompleted="deliveryWasCompleted",e.OneItemIsReadyToCollect="oneItemIsReadyToCollect",e.MultipleItemsAreReadyToCollect="multipleItemsAreReadyToCollect",e.EnjoyMealWhileOtherItemsBeingPrepared="enjoyMealWhileOtherItemsBeingPrepared",e.ThereWasAnError="thereWasAnError",e.YourOrderReadyToPickupFromLocker="yourOrderReadyToPickupFromLocker",e))(C||{});function T(e){switch(e){case r.CheckoutStatus.Error:return"thereWasAnError";case r.CheckoutStatus.Created:case r.CheckoutStatus.Ready:case r.CheckoutStatus.Processing:case r.CheckoutStatus.Authorized:return"yourOrderIsBeingProcessed";case r.CheckoutStatus.Canceled:return"yourOrderWasCancelled";case r.CheckoutStatus.Received:return"processingPayment";default:return null}}function B(e){switch(e){case r.TicketStatus.Pending:case r.TicketStatus.PendingAccept:return"yourOrderIsBeingProcessed";case r.TicketStatus.Preparing:return"yourOrderIsBeingPrepared";case r.TicketStatus.Ready:return"yourOrderIsReadyToCollect";case r.TicketStatus.Closed:return"yourOrderHasBeenCompleted";case r.TicketStatus.Canceled:return"yourOrderWasCancelled";default:throw new Error(`Unhandled ticket status "${e}" in getTranslationKeyByTicketStatus()`)}}function A(e){const{isHost:o,preOrderStatus:i,preOrderAttendeeStatus:d}=e;if(d===r.AttendeePreOrderStatus.Confirmed)switch(i){case r.PreOrderStatus.Started:return"orderConfirmedHostWillApproveAndProcess";case r.PreOrderStatus.Waiting:return o?"orderConfirmedRestaurantAdminWillAcceptSoon":"yourOrderHasBeenApprovedByHost"}return null}function I(e,{checkoutStatus:o,ticketStatus:i,customersFetchTableOrders:d}){const a=(e==null?void 0:e.orderFormat)===r.OrderFormat.Delivery,n=(e==null?void 0:e.orderFormat)===r.OrderFormat.TakeAway,t=(e==null?void 0:e.orderFormat)===r.OrderFormat.TableOrder;if(a||n||t&&!d)return!1;const s=o!=null,c=i!=null;if(s){const l=o===r.CheckoutStatus.Captured,u=o===r.CheckoutStatus.InProgress;return l||u}if(c){const l=i===r.TicketStatus.Preparing,u=i===r.TicketStatus.Ready;return l||u}return!1}function k(e,{checkoutStatus:o,ticketStatus:i,customersFetchTableOrders:d,pickupTimeUpdated:a,preOrderOptions:n},t){if(t&&I(e,{checkoutStatus:o,ticketStatus:i,customersFetchTableOrders:d})){if(t.ready>0)return t.ready<2?["oneItemIsReadyToCollect"]:["multipleItemsAreReadyToCollect",{count:t.ready}];if(t.done>0&&t.done<t.all)return["enjoyMealWhileOtherItemsBeingPrepared",{count:Math.max(0,t.all-t.done-t.ready)}]}if(i!=null)return[B(i)];if(n&&(o===r.CheckoutStatus.Created||o===r.CheckoutStatus.Authorized)){const g=A(n);if(g)return[g]}const s=(e==null?void 0:e.orderFormat)===r.OrderFormat.Delivery,c=T(o);if(c)return[c];const l=o===r.CheckoutStatus.Captured,u=o===r.CheckoutStatus.InProgress,m=o===r.CheckoutStatus.Done,P=o===r.CheckoutStatus.DeliveryInProgress,h=o===r.CheckoutStatus.ReadyToCollect,p=(e==null?void 0:e.orderFormat)===r.OrderFormat.EatIn,y=(e==null?void 0:e.orderFormat)===r.OrderFormat.TakeAway,O=(e==null?void 0:e.orderFormat)===r.OrderFormat.TableOrder,f=(e==null?void 0:e.orderFormat)===r.OrderFormat.BoxPickup;if(l)return O&&!d?["yourOrderWillArriveAtYourTable"]:s?a?["modifiedDeliveryStartTime"]:["yourOrderHasBeenAcceptedEstimatedDeliveryStartTime"]:a?["modifiedPickUpTime"]:["yourOrderHasBeenAcceptedPickupTime"];if(u){if(s)return a?["modifiedDeliveryStartTime"]:["yourOrderIsBeingPreparedEstimatedDeliveryStartTime"];if(t&&(p||y)){if(t.ready===t.all)return["yourOrderIsReadyToCollect"];if(t.done===t.all)return["yourOrderHasBeenCompleted"]}if(O){if(t){if(t.ready===t.all)return d?["yourOrderIsReadyToCollect"]:["yourOrderWillArriveAtYourTable"];if(t.done===t.all)return d?["yourOrderHasBeenCompleted"]:["yourOrderWillArriveAtYourTable"]}return a?["modifiedPickUpTime"]:d?["yourOrderIsBeingPrepared"]:["yourOrderWillArriveAtYourTable"]}return a?["modifiedPickUpTime"]:["yourOrderIsBeingPrepared"]}if(m)return p||y?["yourOrderHasBeenCompleted"]:s?["deliveryWasCompleted"]:["yourOrderHasBeenCompleted"];if(P&&f)switch(e==null?void 0:e.deliveryStatus){case r.CheckoutDeliveryStatus.PickedUp:return["yourOrderHasBeenCompleted"];case r.CheckoutDeliveryStatus.Delivered:return["yourOrderReadyToPickupFromLocker"];default:return["yourOrderIsBeingPrepared"]}if(h)return s?["yourOrderIsBeingDelivered"]:f?["yourOrderReadyToPickupFromLocker"]:["yourOrderIsReadyToCollect"];throw new Error("Could not resolve translation key in getTranslationKey()")}const S={orderConfirmedHostWillApproveAndProcess:()=>({title:`Order Confirmed!
|
|
2
2
|
The host will approve and process the pre-order.`,message:"Please contact the host if you want to edit your order."}),orderConfirmedRestaurantAdminWillAcceptSoon:()=>({title:`Order Confirmed!
|
|
3
|
-
The restaurant admin will accept your pre-order soon.`}),yourOrderHasBeenApprovedByHost:()=>({title:"Your order has been approved by host!",message:"The restaurant admin will accept and process the pre-order"}),yourOrderIsBeingProcessed:()=>({title:"Your order is being processed"}),yourOrderWasCancelled:()=>({title:"Your order was canceled",message:"Sorry. Your order could not go through."}),processingPayment:()=>({title:"Processing payment",message:"Please wait while your payment is being processed"}),yourOrderIsBeingPrepared:()=>({title:"Your order is now being prepared!",message:"We will let you know when it is ready for pickup."}),yourOrderIsReadyToCollect:()=>({title:"Your order is ready to be collected!",message:"Please go ahead and show this screen at the collection point"}),yourOrderIsBeingDelivered:()=>({title:"Your order is being delivered",message:"It will arrive at your door shortly. Enjoy your meal!"}),yourOrderHasBeenCompleted:()=>({title:"Enjoy your meal!",message:"Your order has been completed!"}),yourOrderWillArriveAtYourTable:()=>({title:"Your order has been accepted!",message:"It will arrive at your table shortly"}),modifiedDeliveryStartTime:()=>({title:"Your delivery time was modified",message:"Delivery will start at approximately 00:00."}),modifiedPickUpTime:()=>({title:"Your pickup time was modified",message:"Pickup time: 00:00"}),yourOrderHasBeenAcceptedEstimatedDeliveryStartTime:()=>({title:"Your order has been accepted",message:"Estimated delivery start time: 00:00"}),yourOrderIsBeingPreparedEstimatedDeliveryStartTime:()=>({title:"Your order is now being prepared!",message:"Estimated delivery start time: 00:00"}),yourOrderHasBeenAcceptedEstimatedTime:()=>({title:"Your order has been accepted",message:"Estimated time: 00:00"}),yourOrderHasBeenAcceptedPickupTime:()=>({title:"Your order has been accepted",message:"Pickup time: 00:00"}),deliveryWasCompleted:()=>({title:"Your order was completed",message:"Enjoy your meal!"}),oneItemIsReadyToCollect:()=>({title:"One item is ready to pick up!",message:"Please allow cashier or waiter to confirm that the prepared item has been successfully issued."}),multipleItemsAreReadyToCollect:()=>({title:"Multiple items are ready to pick up!",message:"Please allow cashier or waiter to confirm that the prepared items have been successfully issued."}),enjoyMealWhileOtherItemsBeingPrepared:({meta:e})=>({title:"Enjoy your meal while the rest of the items are being prepared!",message:`${e.count} more items are being prepared`}),thereWasAnError:()=>({title:"Checkout error",message:"There was an error with the checkout"}),yourOrderReadyToPickupFromLocker:()=>({title:"Your order is ready to pick up from the locker!"})};function
|
|
3
|
+
The restaurant admin will accept your pre-order soon.`}),yourOrderHasBeenApprovedByHost:()=>({title:"Your order has been approved by host!",message:"The restaurant admin will accept and process the pre-order"}),yourOrderIsBeingProcessed:()=>({title:"Your order is being processed"}),yourOrderWasCancelled:()=>({title:"Your order was canceled",message:"Sorry. Your order could not go through."}),processingPayment:()=>({title:"Processing payment",message:"Please wait while your payment is being processed"}),yourOrderIsBeingPrepared:()=>({title:"Your order is now being prepared!",message:"We will let you know when it is ready for pickup."}),yourOrderIsReadyToCollect:()=>({title:"Your order is ready to be collected!",message:"Please go ahead and show this screen at the collection point"}),yourOrderIsBeingDelivered:()=>({title:"Your order is being delivered",message:"It will arrive at your door shortly. Enjoy your meal!"}),yourOrderHasBeenCompleted:()=>({title:"Enjoy your meal!",message:"Your order has been completed!"}),yourOrderWillArriveAtYourTable:()=>({title:"Your order has been accepted!",message:"It will arrive at your table shortly"}),modifiedDeliveryStartTime:()=>({title:"Your delivery time was modified",message:"Delivery will start at approximately 00:00."}),modifiedPickUpTime:()=>({title:"Your pickup time was modified",message:"Pickup time: 00:00"}),yourOrderHasBeenAcceptedEstimatedDeliveryStartTime:()=>({title:"Your order has been accepted",message:"Estimated delivery start time: 00:00"}),yourOrderIsBeingPreparedEstimatedDeliveryStartTime:()=>({title:"Your order is now being prepared!",message:"Estimated delivery start time: 00:00"}),yourOrderHasBeenAcceptedEstimatedTime:()=>({title:"Your order has been accepted",message:"Estimated time: 00:00"}),yourOrderHasBeenAcceptedPickupTime:()=>({title:"Your order has been accepted",message:"Pickup time: 00:00"}),deliveryWasCompleted:()=>({title:"Your order was completed",message:"Enjoy your meal!"}),oneItemIsReadyToCollect:()=>({title:"One item is ready to pick up!",message:"Please allow cashier or waiter to confirm that the prepared item has been successfully issued."}),multipleItemsAreReadyToCollect:()=>({title:"Multiple items are ready to pick up!",message:"Please allow cashier or waiter to confirm that the prepared items have been successfully issued."}),enjoyMealWhileOtherItemsBeingPrepared:({meta:e})=>({title:"Enjoy your meal while the rest of the items are being prepared!",message:`${e.count} more items are being prepared`}),thereWasAnError:()=>({title:"Checkout error",message:"There was an error with the checkout"}),yourOrderReadyToPickupFromLocker:()=>({title:"Your order is ready to pick up from the locker!"})};function w(e,o){if(o)return;const i=v(e);return{all:i.all.length,ready:i.ready.length,done:i.done.length}}function Y(e,o,i=S){const{isSkipTicketStatus:d}=o,a=w((e==null?void 0:e.items)??[],d),[n,t]=k(e,o,a),s=i[n]({key:n,meta:t});if(!s)throw new Error("Could not resolve translation in getOrderStatusTexts()");return[s,n]}exports.TranslationKey=C;exports.default=Y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CheckoutStatus as o, OrderFormat as c, CheckoutDeliveryStatus as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
function
|
|
1
|
+
import { CheckoutStatus as o, OrderFormat as c, CheckoutDeliveryStatus as C, TicketStatus as s, AttendeePreOrderStatus as h, PreOrderStatus as B } from "@ancon/wildcat-types";
|
|
2
|
+
import T from "./getCheckoutItemsMappedByTicketItemStatus.mjs";
|
|
3
|
+
var w = /* @__PURE__ */ ((e) => (e.OrderConfirmedHostWillApproveAndProcess = "orderConfirmedHostWillApproveAndProcess", e.OrderConfirmedRestaurantAdminWillAcceptSoon = "orderConfirmedRestaurantAdminWillAcceptSoon", e.YourOrderHasBeenApprovedByHost = "yourOrderHasBeenApprovedByHost", e.YourOrderIsBeingProcessed = "yourOrderIsBeingProcessed", e.YourOrderWasCancelled = "yourOrderWasCancelled", e.ProcessingPayment = "processingPayment", e.YourOrderIsBeingPrepared = "yourOrderIsBeingPrepared", e.YourOrderIsReadyToCollect = "yourOrderIsReadyToCollect", e.YourOrderIsBeingDelivered = "yourOrderIsBeingDelivered", e.YourOrderHasBeenCompleted = "yourOrderHasBeenCompleted", e.YourOrderWillArriveAtYourTable = "yourOrderWillArriveAtYourTable", e.ModifiedDeliveryStartTime = "modifiedDeliveryStartTime", e.ModifiedPickUpTime = "modifiedPickUpTime", e.YourOrderHasBeenAcceptedEstimatedDeliveryStartTime = "yourOrderHasBeenAcceptedEstimatedDeliveryStartTime", e.YourOrderIsBeingPreparedEstimatedDeliveryStartTime = "yourOrderIsBeingPreparedEstimatedDeliveryStartTime", e.YourOrderHasBeenAcceptedEstimatedTime = "yourOrderHasBeenAcceptedEstimatedTime", e.YourOrderHasBeenAcceptedPickupTime = "yourOrderHasBeenAcceptedPickupTime", e.DeliveryWasCompleted = "deliveryWasCompleted", e.OneItemIsReadyToCollect = "oneItemIsReadyToCollect", e.MultipleItemsAreReadyToCollect = "multipleItemsAreReadyToCollect", e.EnjoyMealWhileOtherItemsBeingPrepared = "enjoyMealWhileOtherItemsBeingPrepared", e.ThereWasAnError = "thereWasAnError", e.YourOrderReadyToPickupFromLocker = "yourOrderReadyToPickupFromLocker", e))(w || {});
|
|
4
|
+
function Y(e) {
|
|
5
5
|
switch (e) {
|
|
6
6
|
case o.Error:
|
|
7
7
|
return "thereWasAnError";
|
|
@@ -14,13 +14,11 @@ function w(e, t) {
|
|
|
14
14
|
return "yourOrderWasCancelled";
|
|
15
15
|
case o.Received:
|
|
16
16
|
return "processingPayment";
|
|
17
|
-
case o.ReadyToCollect:
|
|
18
|
-
return t ? "yourOrderIsBeingDelivered" : "yourOrderIsReadyToCollect";
|
|
19
17
|
default:
|
|
20
18
|
return null;
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
|
-
function
|
|
21
|
+
function W(e) {
|
|
24
22
|
switch (e) {
|
|
25
23
|
case s.Pending:
|
|
26
24
|
case s.PendingAccept:
|
|
@@ -39,18 +37,18 @@ function Y(e) {
|
|
|
39
37
|
);
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
|
-
function
|
|
40
|
+
function H(e) {
|
|
43
41
|
const { isHost: t, preOrderStatus: i, preOrderAttendeeStatus: d } = e;
|
|
44
|
-
if (d ===
|
|
42
|
+
if (d === h.Confirmed)
|
|
45
43
|
switch (i) {
|
|
46
|
-
case
|
|
44
|
+
case B.Started:
|
|
47
45
|
return "orderConfirmedHostWillApproveAndProcess";
|
|
48
|
-
case
|
|
46
|
+
case B.Waiting:
|
|
49
47
|
return t ? "orderConfirmedRestaurantAdminWillAcceptSoon" : "yourOrderHasBeenApprovedByHost";
|
|
50
48
|
}
|
|
51
49
|
return null;
|
|
52
50
|
}
|
|
53
|
-
function
|
|
51
|
+
function k(e, {
|
|
54
52
|
checkoutStatus: t,
|
|
55
53
|
ticketStatus: i,
|
|
56
54
|
customersFetchTableOrders: d
|
|
@@ -69,14 +67,14 @@ function H(e, {
|
|
|
69
67
|
}
|
|
70
68
|
return !1;
|
|
71
69
|
}
|
|
72
|
-
function
|
|
70
|
+
function R(e, {
|
|
73
71
|
checkoutStatus: t,
|
|
74
72
|
ticketStatus: i,
|
|
75
73
|
customersFetchTableOrders: d,
|
|
76
74
|
pickupTimeUpdated: a,
|
|
77
75
|
preOrderOptions: l
|
|
78
76
|
}, r) {
|
|
79
|
-
if (r &&
|
|
77
|
+
if (r && k(e, {
|
|
80
78
|
checkoutStatus: t,
|
|
81
79
|
ticketStatus: i,
|
|
82
80
|
customersFetchTableOrders: d
|
|
@@ -96,19 +94,18 @@ function k(e, {
|
|
|
96
94
|
];
|
|
97
95
|
}
|
|
98
96
|
if (i != null)
|
|
99
|
-
return [
|
|
97
|
+
return [W(i)];
|
|
100
98
|
if (l && (t === o.Created || t === o.Authorized)) {
|
|
101
|
-
const
|
|
102
|
-
if (
|
|
103
|
-
return [
|
|
99
|
+
const P = H(l);
|
|
100
|
+
if (P)
|
|
101
|
+
return [P];
|
|
104
102
|
}
|
|
105
|
-
const n = (e == null ? void 0 : e.orderFormat) === c.Delivery, y =
|
|
106
|
-
t
|
|
107
|
-
n
|
|
103
|
+
const n = (e == null ? void 0 : e.orderFormat) === c.Delivery, y = Y(
|
|
104
|
+
t
|
|
108
105
|
);
|
|
109
106
|
if (y)
|
|
110
107
|
return [y];
|
|
111
|
-
const u = t === o.Captured, p = t === o.InProgress,
|
|
108
|
+
const u = t === o.Captured, p = t === o.InProgress, v = t === o.Done, A = t === o.DeliveryInProgress, I = t === o.ReadyToCollect, f = (e == null ? void 0 : e.orderFormat) === c.EatIn, O = (e == null ? void 0 : e.orderFormat) === c.TakeAway, g = (e == null ? void 0 : e.orderFormat) === c.TableOrder, m = (e == null ? void 0 : e.orderFormat) === c.BoxPickup;
|
|
112
109
|
if (u)
|
|
113
110
|
return g && !d ? [
|
|
114
111
|
"yourOrderWillArriveAtYourTable"
|
|
@@ -185,7 +182,7 @@ function k(e, {
|
|
|
185
182
|
/* YourOrderIsBeingPrepared */
|
|
186
183
|
];
|
|
187
184
|
}
|
|
188
|
-
if (
|
|
185
|
+
if (v)
|
|
189
186
|
return f || O ? [
|
|
190
187
|
"yourOrderHasBeenCompleted"
|
|
191
188
|
/* YourOrderHasBeenCompleted */
|
|
@@ -196,13 +193,34 @@ function k(e, {
|
|
|
196
193
|
"yourOrderHasBeenCompleted"
|
|
197
194
|
/* YourOrderHasBeenCompleted */
|
|
198
195
|
];
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
196
|
+
if (A && m)
|
|
197
|
+
switch (e == null ? void 0 : e.deliveryStatus) {
|
|
198
|
+
case C.PickedUp:
|
|
199
|
+
return [
|
|
200
|
+
"yourOrderHasBeenCompleted"
|
|
201
|
+
/* YourOrderHasBeenCompleted */
|
|
202
|
+
];
|
|
203
|
+
case C.Delivered:
|
|
204
|
+
return [
|
|
205
|
+
"yourOrderReadyToPickupFromLocker"
|
|
206
|
+
/* YourOrderReadyToPickupFromLocker */
|
|
207
|
+
];
|
|
208
|
+
default:
|
|
209
|
+
return [
|
|
210
|
+
"yourOrderIsBeingPrepared"
|
|
211
|
+
/* YourOrderIsBeingPrepared */
|
|
212
|
+
];
|
|
213
|
+
}
|
|
214
|
+
if (I)
|
|
215
|
+
return n ? [
|
|
216
|
+
"yourOrderIsBeingDelivered"
|
|
217
|
+
/* YourOrderIsBeingDelivered */
|
|
218
|
+
] : m ? [
|
|
204
219
|
"yourOrderReadyToPickupFromLocker"
|
|
205
220
|
/* YourOrderReadyToPickupFromLocker */
|
|
221
|
+
] : [
|
|
222
|
+
"yourOrderIsReadyToCollect"
|
|
223
|
+
/* YourOrderIsReadyToCollect */
|
|
206
224
|
];
|
|
207
225
|
throw new Error("Could not resolve translation key in getTranslationKey()");
|
|
208
226
|
}
|
|
@@ -299,26 +317,26 @@ The restaurant admin will accept your pre-order soon.`
|
|
|
299
317
|
title: "Your order is ready to pick up from the locker!"
|
|
300
318
|
})
|
|
301
319
|
};
|
|
302
|
-
function
|
|
320
|
+
function E(e, t) {
|
|
303
321
|
if (t)
|
|
304
322
|
return;
|
|
305
|
-
const i =
|
|
323
|
+
const i = T(e);
|
|
306
324
|
return {
|
|
307
325
|
all: i.all.length,
|
|
308
326
|
ready: i.ready.length,
|
|
309
327
|
done: i.done.length
|
|
310
328
|
};
|
|
311
329
|
}
|
|
312
|
-
function
|
|
313
|
-
const { isSkipTicketStatus: d } = t, a =
|
|
330
|
+
function F(e, t, i = D) {
|
|
331
|
+
const { isSkipTicketStatus: d } = t, a = E(
|
|
314
332
|
(e == null ? void 0 : e.items) ?? [],
|
|
315
333
|
d
|
|
316
|
-
), [l, r] =
|
|
334
|
+
), [l, r] = R(e, t, a), n = i[l]({ key: l, meta: r });
|
|
317
335
|
if (!n)
|
|
318
336
|
throw new Error("Could not resolve translation in getOrderStatusTexts()");
|
|
319
337
|
return [n, l];
|
|
320
338
|
}
|
|
321
339
|
export {
|
|
322
|
-
|
|
323
|
-
|
|
340
|
+
w as TranslationKey,
|
|
341
|
+
F as default
|
|
324
342
|
};
|